patches/uClibc/0.9.30/200-getline-already-declared.patch
author David Holsgrove <david.holsgrove@xilinx.com>
Thu Oct 04 13:26:14 2012 +1000 (2012-10-04)
changeset 3075 aadd4647dd91
permissions -rw-r--r--
scripts/functions: add a generic custom location infrastructure

Add a generic custom location infrastructure (inspired by the one in
kernel/linux) to allow the user to use custom tarballs or directories
for any component.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
[yann.morin.1998@free.fr: move config option, improve help text, fix API doc]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <131c163c69f9cc81d2be.1349931191@localhost.localdomain>
PatchWork-Id: 190784
Message-Id: <0bbaba9190a76ba97f72.1349931192@localhost.localdomain>
PatchWork-Id: 190785
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;