global-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Global-commit] global/gtags-cscope gtags-cscope.c


From: Shigio YAMAGUCHI
Subject: [Global-commit] global/gtags-cscope gtags-cscope.c
Date: Thu, 08 Jun 2006 16:13:20 +0000

CVSROOT:        /sources/global
Module name:    global
Changes by:     Shigio YAMAGUCHI <shigio>       06/06/08 16:13:20

Modified files:
        gtags-cscope   : gtags-cscope.c 

Log message:
        Renamed function name getline() -> get_line() to avoid the following 
error:
        > gtags-cscope.c:52: error: conflicting types for 'getline'
        > /usr/include/bits/stdio.h:103: error: previous definition of 
'getline' was here

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/global/gtags-cscope/gtags-cscope.c?cvsroot=global&r1=1.1&r2=1.2

Patches:
Index: gtags-cscope.c
===================================================================
RCS file: /sources/global/global/gtags-cscope/gtags-cscope.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- gtags-cscope.c      8 Jun 2006 00:28:22 -0000       1.1
+++ gtags-cscope.c      8 Jun 2006 16:13:20 -0000       1.2
@@ -49,7 +49,7 @@
 static void check_dbpath(void);
 static void get_global_path(void);
 int main(int, char **);
-static char *getline(void);
+static char *get_line(void);
 static void update(void);
 static void command_help(void);
 static void command_loop(void);
@@ -161,7 +161,7 @@
        return 0;
 }
 char *
-getline()
+get_line()
 {
        STATIC_STRBUF(sb);
        char *p;
@@ -221,7 +221,7 @@
        char *line, *opt = "";
 
        print_case_distinction();
-       while ((line = getline()) != NULL) {
+       while ((line = get_line()) != NULL) {
                switch (com = *line++) {        
                /*
                 * Control command




reply via email to

[Prev in Thread] Current Thread [Next in Thread]