1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-005
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 Patch-ID: readline63-005
11 Bug-Reported-by: Juergen Daubert <jue@jue.li>
12 Bug-Reference-ID: <20140303180430.GA7346@jue.netz>
13 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00002.html
17 There are still applications using the deprecated Function/VFunction/etc.
18 typedefs in rltypedefs.h. This patch restores the typedefs, but attempts
19 to mark them as deprecated using gcc/clang attributes. Thanks to Max Horn
22 Patch (apply with `patch -p0'):
24 *** a/readline-6.3-patched/rltypedefs.h 2011-03-26 14:53:31.000000000 -0400
25 --- b/rltypedefs.h 2014-04-10 11:30:45.000000000 -0400
31 + /* Old-style, attempt to mark as deprecated in some way people will notice. */
33 + #if !defined (_FUNCTION_DEF)
34 + # define _FUNCTION_DEF
36 + #if defined(__GNUC__) || defined(__clang__)
37 + typedef int Function () __attribute__ ((deprecated));
38 + typedef void VFunction () __attribute__ ((deprecated));
39 + typedef char *CPFunction () __attribute__ ((deprecated));
40 + typedef char **CPPFunction () __attribute__ ((deprecated));
42 + typedef int Function ();
43 + typedef void VFunction ();
44 + typedef char *CPFunction ();
45 + typedef char **CPPFunction ();
48 + #endif /* _FUNCTION_DEF */
52 *** a/readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
53 --- b/patchlevel 2014-03-21 08:28:40.000000000 -0400
56 # Do not edit -- exists only for use by patch
60 # Do not edit -- exists only for use by patch