aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-08 10:01:45 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-08 10:01:45 +1000
commit93ae00e8e50b9c1319ff478cbecbf482bf6d217e (patch)
treefaef9470f4fa7c575b96a746984ad3daaf1ddf03 /fallback.h
parentd7eb084b9d0c48ea23cf5774beefa12119adc2e8 (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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fallback.h b/fallback.h
index ff67f68f..42bc3b37 100644
--- a/fallback.h
+++ b/fallback.h
@@ -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