Summary(uk.UTF-8): Транслятор English <--> декларації C/C++
Name: cdecl
Version: 2.5
-Release: 28
+Release: 29
License: distributable
Group: Development/Tools
Source0: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/%{name}-%{version}.tar.gz
# Source0-md5: 29895dab52e85b2474a59449e07b7996
Patch0: %{name}-misc.patch
+Patch1: getline.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: readline-devel >= 4.2
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
bison -y cdgram.y && mv -f y.tab.c cdgram.c
--- /dev/null
+--- cdecl-2.5/cdecl.c~ 2016-10-18 19:39:15.000000000 +0200
++++ cdecl-2.5/cdecl.c 2016-10-18 19:40:38.931448163 +0200
+@@ -91,7 +91,7 @@
+ #ifdef USE_READLINE
+ # include <readline/readline.h>
+ /* prototypes for functions related to readline() */
+- char * getline();
++ char * cdecl_getline();
+ char ** attempt_completion(char *, int, int);
+ char * keyword_completion(char *, int);
+ char * command_completion(char *, int);
+@@ -375,7 +375,7 @@
+ static char *line_read = NULL;
+
+ /* Read a string, and return a pointer to it. Returns NULL on EOF. */
+-char * getline ()
++char * cdecl_getline ()
+ {
+ /* If the buffer has already been allocated, return the memory
+ to the free pool. */
+@@ -887,7 +887,7 @@
+
+ if (!quiet) (void) printf("Type `help' or `?' for help\n");
+ ret = 0;
+- while ((line = getline())) {
++ while ((line = cdecl_getline())) {
+ if (!strcmp(line, "quit") || !strcmp(line, "exit")) {
+ free(line);
+ return ret;