patches/uClibc/0.9.30/200-getline-already-declared.patch
author Johannes Stezenbach <js@sig21.net>
Tue Oct 30 00:36:20 2012 +0000 (2012-10-30)
changeset 3096 d1766c2273d1
permissions -rw-r--r--
scripts/functions: use patch -i instead of IO redirection

This makes the patch name show up on the command line
logged by CT_DoExecLog so it's easier to see
what is going on. The -i for patch is specified
by Posix and supported by GNU patch and busybox patch.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[yann.morin.1998@free.fr: remove now-useless debug message]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <20121030103620.GB8303@sig21.net>
Patchwork-Id: 195418
titus@2627
     1
--- uClibc-0.9.30.orig/extra/scripts/unifdef.c	2008-04-28 01:10:00.000000000 +0200
titus@2627
     2
+++ uClibc-0.9.30/extra/scripts/unifdef.c	2011-08-21 09:42:21.000000000 +0200
titus@2627
     3
@@ -206,7 +206,7 @@
titus@2627
     4
 static void             error(const char *);
titus@2627
     5
 static int              findsym(const char *);
titus@2627
     6
 static void             flushline(bool);
titus@2627
     7
-static Linetype         getline(void);
titus@2627
     8
+static Linetype         getlinetype(void);
titus@2627
     9
 static Linetype         ifeval(const char **);
titus@2627
    10
 static void             ignoreoff(void);
titus@2627
    11
 static void             ignoreon(void);
titus@2627
    12
@@ -512,7 +512,7 @@
titus@2627
    13
 
titus@2627
    14
 	for (;;) {
titus@2627
    15
 		linenum++;
titus@2627
    16
-		lineval = getline();
titus@2627
    17
+		lineval = getlinetype();
titus@2627
    18
 		trans_table[ifstate[depth]][lineval]();
titus@2627
    19
 		debug("process %s -> %s depth %d",
titus@2627
    20
 		    linetype_name[lineval],
titus@2627
    21
@@ -526,7 +526,7 @@
titus@2627
    22
  * help from skipcomment().
titus@2627
    23
  */
titus@2627
    24
 static Linetype
titus@2627
    25
-getline(void)
titus@2627
    26
+getlinetype(void)
titus@2627
    27
 {
titus@2627
    28
 	const char *cp;
titus@2627
    29
 	int cursym;