5 Patch-ID: readline63-005
7 Bug-Reported-by: Juergen Daubert <jue@jue.li>
8 Bug-Reference-ID: <20140303180430.GA7346@jue.netz>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00002.html
13 There are still applications using the deprecated Function/VFunction/etc.
14 typedefs in rltypedefs.h. This patch restores the typedefs, but attempts
15 to mark them as deprecated using gcc/clang attributes. Thanks to Max Horn
18 Patch (apply with `patch -p0'):
20 *** ../readline-6.3-patched/rltypedefs.h 2011-03-26 14:53:31.000000000 -0400
21 --- rltypedefs.h 2014-04-10 11:30:45.000000000 -0400
27 + /* Old-style, attempt to mark as deprecated in some way people will notice. */
29 + #if !defined (_FUNCTION_DEF)
30 + # define _FUNCTION_DEF
32 + #if defined(__GNUC__) || defined(__clang__)
33 + typedef int Function () __attribute__ ((deprecated));
34 + typedef void VFunction () __attribute__ ((deprecated));
35 + typedef char *CPFunction () __attribute__ ((deprecated));
36 + typedef char **CPPFunction () __attribute__ ((deprecated));
38 + typedef int Function ();
39 + typedef void VFunction ();
40 + typedef char *CPFunction ();
41 + typedef char **CPPFunction ();
44 + #endif /* _FUNCTION_DEF */
48 *** ../readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
49 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
52 # Do not edit -- exists only for use by patch
56 # Do not edit -- exists only for use by patch