Print this page
libiberty/testsuite: Avoid conflicting getline()

@@ -44,11 +44,11 @@
 /* Safely read a single line of arbitrary length from standard input.  */
 
 #define LINELEN 80
 
 static void
-getline(buf)
+_getline(buf)
      struct line *buf;
 {
   char *data = buf->data;
   size_t alloc = buf->alloced;
   size_t count = 0;

@@ -194,16 +194,16 @@
 
   for (;;)
     {
       const char *inp;
       
-      getline (&format);
+      _getline (&format);
       if (feof (stdin))
         break;
 
-      getline (&input);
-      getline (&expect);
+      _getline (&input);
+      _getline (&expect);
 
       inp = protect_end (input.data);
 
       tests++;
 

@@ -320,11 +320,11 @@
         }
       free (result);
 
       if (no_params)
         {
-          getline (&expect);
+          _getline (&expect);
           result = cplus_demangle (inp, DMGL_ANSI|DMGL_TYPES);
 
           if (result
               ? strcmp (result, expect.data)
               : strcmp (input.data, expect.data))