SCO lint.

This commit is contained in:
John Gilmore
1991-11-22 20:44:50 +00:00
parent 1a5a8f2a3e
commit 3ae444f844
4 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,9 @@
Fri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com) Fri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com)
* infptrace.c, language.h: Lint. * buildsym.c, coredep.c, mem-break.c, xcoffread.c: Put <stdio.h>
first, before defs.h.
* config/mh-i386sco: Override compiler to gcc, print warning.
* infptrace.c, language.h, utils.c: Lint.
* m2-exp.y: #undef MAX and MIN in case system includes set them. * m2-exp.y: #undef MAX and MIN in case system includes set them.
* xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of * xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of
{BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid {BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid

View File

@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
They originated in dbxread.c of gdb-4.2, and were split out to They originated in dbxread.c of gdb-4.2, and were split out to
make xcoffread.c more maintainable by sharing code. */ make xcoffread.c more maintainable by sharing code. */
#include <stdio.h>
#include "defs.h" #include "defs.h"
#include "obstack.h" #include "obstack.h"
#include "symtab.h" #include "symtab.h"
@ -31,7 +32,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "gdbcore.h" /* for bfd stuff for symfile.h */ #include "gdbcore.h" /* for bfd stuff for symfile.h */
#include "symfile.h" /* Needed for "struct complaint" */ #include "symfile.h" /* Needed for "struct complaint" */
#include "stab.gnu.h" /* We always use GNU stabs, not native */ #include "stab.gnu.h" /* We always use GNU stabs, not native */
#include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>

View File

@ -20,13 +20,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* core.c is supposed to be the more machine-independent aspects of this; /* core.c is supposed to be the more machine-independent aspects of this;
this file is more machine-specific. */ this file is more machine-specific. */
#include "defs.h"
#include "gdbcore.h"
#include <stdio.h> #include <stdio.h>
/* These are needed on various systems to expand REGISTER_U_ADDR. */
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include "defs.h"
#include "gdbcore.h"
/* These are needed on various systems to expand REGISTER_U_ADDR. */
#ifndef USG #ifndef USG
#include <sys/dir.h> #include <sys/dir.h>
#include <sys/file.h> #include <sys/file.h>

View File

@ -19,11 +19,10 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include "defs.h" #include "defs.h"
#include "bfd.h" #include "bfd.h"
#include <stdio.h>
/* AIX COFF names have a preceeding dot `.' */ /* AIX COFF names have a preceeding dot `.' */
#define NAMES_HAVE_DOT 1 #define NAMES_HAVE_DOT 1