]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Reflect renaming: readline -> readlinebuffer.
authorJim Meyering <jim@meyering.net>
Wed, 18 Jun 2003 07:37:29 +0000 (07:37 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 18 Jun 2003 07:37:29 +0000 (07:37 +0000)
src/comm.c
src/join.c
src/nl.c
src/uniq.c

index 02066ec9139595455f1c742b8a561a706e0b4955..26716dfc19d9c369520bf2a8e568dc8a4ec2d88a 100644 (file)
@@ -159,7 +159,7 @@ compare_files (char **infiles)
          return 1;
        }
 
-      thisline[i] = readline (thisline[i], streams[i]);
+      thisline[i] = readlinebuffer (thisline[i], streams[i]);
     }
 
   while (thisline[0] || thisline[1])
@@ -199,9 +199,9 @@ compare_files (char **infiles)
       /* Step the file the line came from.
         If the files match, step both files.  */
       if (order >= 0)
-       thisline[1] = readline (thisline[1], streams[1]);
+       thisline[1] = readlinebuffer (thisline[1], streams[1]);
       if (order <= 0)
-       thisline[0] = readline (thisline[0], streams[0]);
+       thisline[0] = readlinebuffer (thisline[0], streams[0]);
     }
 
   /* Free all storage and close all input streams. */
index c04a69ccdded9a3a5e2c279c3f109b3725329b57..f6d9b06a0d4e6d1120d4f9cfcdefd61f49348c69 100644 (file)
@@ -260,7 +260,7 @@ get_line (FILE *fp, struct line *line)
 {
   initbuffer (&line->buf);
 
-  if (! readline (&line->buf, fp))
+  if (! readlinebuffer (&line->buf, fp))
     {
       free (line->buf.buffer);
       line->buf.buffer = NULL;
index bb3adfd56ff49721db26534d41562abd5b8e78ea..4f372d0d8fe43fe799c5193f0ba61a372c1932fd 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -401,7 +401,7 @@ check_section (void)
 static void
 process_file (FILE *fp)
 {
-  while (readline (&line_buf, fp))
+  while (readlinebuffer (&line_buf, fp))
     {
       switch ((int) check_section ())
        {
index c945be3915d8e2789c77f490f0b3325eb983dca1..e5d74d68a4bae650a55c0df86119c448335bc5ee 100644 (file)
@@ -302,7 +302,7 @@ check_file (const char *infile, const char *outfile)
        {
          char *thisfield;
          size_t thislen;
-         if (readline (thisline, istream) == 0)
+         if (readlinebuffer (thisline, istream) == 0)
            break;
          thisfield = find_field (thisline);
          thislen = thisline->length - 1 - (thisfield - thisline->buffer);
@@ -325,7 +325,7 @@ check_file (const char *infile, const char *outfile)
       int match_count = 0;
       int first_delimiter = 1;
 
-      if (readline (prevline, istream) == 0)
+      if (readlinebuffer (prevline, istream) == 0)
        goto closefiles;
       prevfield = find_field (prevline);
       prevlen = prevline->length - 1 - (prevfield - prevline->buffer);
@@ -335,7 +335,7 @@ check_file (const char *infile, const char *outfile)
          bool match;
          char *thisfield;
          size_t thislen;
-         if (readline (thisline, istream) == 0)
+         if (readlinebuffer (thisline, istream) == 0)
            break;
          thisfield = find_field (thisline);
          thislen = thisline->length - 1 - (thisfield - thisline->buffer);