This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes]


   Personally, I don't know what the obstacles are for switching to
   C99 (technical, FSF policy?).

GNU policy is that it is OK to use C99, from the GNU Coding Standards,
Calling System Functions:

| Historically, C implementations differed substantially, and many
| systems lacked a full implementation of ANSI/ISO C89.  Nowadays,
| however, very few systems lack a C89 compiler and GNU C supports
| almost all of C99.  Similarly, most systems implement POSIX.1-1993
| libraries and tools, and many have POSIX.1-2001.

| Hence, there is little reason to support old C or non-POSIX systems,
| and you may want to take advantage of C99 and POSIX-1.2001 to write
| clearer, more portable, or faster code.  You should use standard
| interfaces where possible; but if GNU extensions make your program
| more maintainable, powerful, or otherwise better, don't hesitate to
| use them.  In any case, don't make your own declaration of system
| functions; that's a recipe for conflict.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]