recipes/unifdef/files/unifdef.c : more modern glibc expose getline from
authorGraeme Gregory <dp@xora.org.uk>
Tue, 28 Apr 2009 10:18:36 +0000 (11:18 +0100)
committerGraeme Gregory <dp@xora.org.uk>
Tue, 28 Apr 2009 10:18:36 +0000 (11:18 +0100)
stdio.h rename the function so not to cause a clash

recipes/unifdef/files/unifdef.c

index 552025e..977e682 100644 (file)
@@ -206,7 +206,7 @@ static void             done(void);
 static void             error(const char *);
 static int              findsym(const char *);
 static void             flushline(bool);
-static Linetype         getline(void);
+static Linetype         parseline(void);
 static Linetype         ifeval(const char **);
 static void             ignoreoff(void);
 static void             ignoreon(void);
@@ -512,7 +512,7 @@ process(void)
 
        for (;;) {
                linenum++;
-               lineval = getline();
+               lineval = parseline();
                trans_table[ifstate[depth]][lineval]();
                debug("process %s -> %s depth %d",
                    linetype_name[lineval],
@@ -526,7 +526,7 @@ process(void)
  * help from skipcomment().
  */
 static Linetype
-getline(void)
+parseline(void)
 {
        const char *cp;
        int cursym;