]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
Readline-6.3 patch 5
authorChet Ramey <chet.ramey@case.edu>
Mon, 14 Apr 2014 20:37:21 +0000 (16:37 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 14 Apr 2014 20:37:21 +0000 (16:37 -0400)
patchlevel
rltypedefs.h

index 626a945e08fbd8926846afabedb8740ebf1720c7..e0ba09d8b5a8bfb97125732919b6d1c27b11b2b2 100644 (file)
@@ -1,3 +1,3 @@
 # Do not edit -- exists only for use by patch
 
-4
+5
index b113ee6e996ab013e87e32be7bdd1e2d3fd14901..f9f5cd3a5b64d8b1a64c6eeaf6c17ddba1f7e6ff 100644 (file)
 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)