diff options
author | axel <axel@liljencrantz.se> | 2006-06-08 10:01:45 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-08 10:01:45 +1000 |
commit | 93ae00e8e50b9c1319ff478cbecbf482bf6d217e (patch) | |
tree | faef9470f4fa7c575b96a746984ad3daaf1ddf03 /fallback.h | |
parent | d7eb084b9d0c48ea23cf5774beefa12119adc2e8 (diff) |
Do input validation in various functions in function.c and complete.c
darcs-hash:20060608000145-ac50b-1088c3f5e3c1ad2759c13400e5dda2d21858fedc.gz
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -17,6 +17,19 @@ #endif /** + Make sure __func__ is defined to some string. This should be the + currently compiled function, but not all compilers support this + feature. +*/ +#if __STDC_VERSION__ < 199901L +# if __GNUC__ >= 2 +# define __func__ __FUNCTION__ +# else +# define __func__ "<unknown>" +# endif +#endif + +/** Under curses, tputs expects an int (*func)(char) as its last parameter, but in ncurses, tputs expects a int (*func)(int) as its last parameter. tputs_arg_t is defined to always be what tputs |