http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45864

           Summary: system.h is crufty maybe? Raise the level fo ANSI C89?
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jay.kr...@cornell.edu


I recently found a compiler that didn't like spaces
after the # in preprocessor directives.


In system.h:
 Do any systems lack stddef.h? (it is in ANSI C89)
 Do any systems lack #define NULL? (ditto)
 Do any systems lack limits.h? (ditto)
 Ditto:
   string.h? time.h? (ditto)
   errno declared in errno.h? (ditto)
   SEEK_SET, SEEK_CUR, SEEK_END (ditto)
   F_OK, X_OK, W_OK, R_OK
   O_RDONLY, O_WRONLY
   atof, atol, free, getenv, strstr, abort, offsetof? (ditto)
   malloc, calloc, realloc? (ditto)
   Posixy systems that gcc can be hosted on: getcwd, getwd, sbrk?


I wonder if all the compability stuff needs to stay.
  Along with suggesting a new one -- no spaces after #.


I wonder if the _unlocked stuff is worthwhile.
  One should be sure to have reasonably large inputs/outputs, not
  just getchar one at a time, for example.


Maybe some of this is for "header-less" environments?
I grant, getting headers for cross build scenarios can be a pain.
But I do need the libraries anyway.


 - Jay

Reply via email to