mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
d7d18e4e43
C99 6.7.4p3 and 6.7.4p6 set some constraints on what can be done in inline functions and how they can be declared. In particular, any function declared inline must also be defined in the same translation unit. To comply with that, remove inline specifiers from function declarations in header files when the functions are not also defined in those header files. Sun Studio 11 on Solaris 9 is stricter than C99 and does not allow references to static identifiers in extern inline functions. Make the configure script detect this and define NONSTATIC_INLINE accordingly in config.h. Then use that in the definitions of all non-static inline functions. Document the restrictions and this scheme in doc/hacking.txt. |
||
---|---|---|
.. | ||
beos | ||
os2 | ||
riscos | ||
unix | ||
win32 | ||
ascii.h | ||
generic.h | ||
getifaddrs.c | ||
getifaddrs.h | ||
Makefile | ||
newwin.c | ||
newwin.h | ||
osdep.c | ||
osdep.h | ||
signals.c | ||
signals.h | ||
stat.h | ||
stub.c | ||
stub.h | ||
sysname.c | ||
sysname.h | ||
system.h | ||
types.h |