summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2014-04-14 16:37:21 -0400
committerChet Ramey <chet.ramey@case.edu>2014-04-14 16:37:21 -0400
commit835a39225c6bd4784c0d7f775b0cd44dd7c57f35 (patch)
treea97dcc71f3254086264d2f75ecc2d3584edf54ba
parent1abb2c1b882a5f6cd40b4a2e7608be4ef1d0216e (diff)
downloadreadline-835a39225c6bd4784c0d7f775b0cd44dd7c57f35.tar.gz
Readline-6.3 patch 5
-rw-r--r--patchlevel2
-rw-r--r--rltypedefs.h19
2 files changed, 20 insertions, 1 deletions
diff --git a/patchlevel b/patchlevel
index 626a945..e0ba09d 100644
--- a/patchlevel
+++ b/patchlevel
@@ -1,3 +1,3 @@
# Do not edit -- exists only for use by patch
-4
+5
diff --git a/rltypedefs.h b/rltypedefs.h
index b113ee6..f9f5cd3 100644
--- a/rltypedefs.h
+++ b/rltypedefs.h
@@ -26,6 +26,25 @@
extern "C" {
#endif
+/* Old-style, attempt to mark as deprecated in some way people will notice. */
+
+#if !defined (_FUNCTION_DEF)
+# define _FUNCTION_DEF
+
+#if defined(__GNUC__) || defined(__clang__)
+typedef int Function () __attribute__ ((deprecated));
+typedef void VFunction () __attribute__ ((deprecated));
+typedef char *CPFunction () __attribute__ ((deprecated));
+typedef char **CPPFunction () __attribute__ ((deprecated));
+#else
+typedef int Function ();
+typedef void VFunction ();
+typedef char *CPFunction ();
+typedef char **CPPFunction ();
+#endif
+
+#endif /* _FUNCTION_DEF */
+
/* New style. */
#if !defined (_RL_FUNCTION_TYPEDEF)