~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/nl.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* nl -- number lines of files
2
 
   Copyright (C) 1989, 1992, 1995-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1989-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
33
33
#include "quote.h"
34
34
#include "xstrtol.h"
35
35
 
36
 
/* The official name of this program (e.g., no `g' prefix).  */
 
36
/* The official name of this program (e.g., no 'g' prefix).  */
37
37
#define PROGRAM_NAME "nl"
38
38
 
39
39
#define AUTHORS \
176
176
usage (int status)
177
177
{
178
178
  if (status != EXIT_SUCCESS)
179
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
180
 
             program_name);
 
179
    emit_try_help ();
181
180
  else
182
181
    {
183
182
      printf (_("\
238
237
}
239
238
 
240
239
/* Set the command line flag TYPEP and possibly the regex pointer REGEXP,
241
 
   according to `optarg'.  */
 
240
   according to 'optarg'.  */
242
241
 
243
242
static bool
244
243
build_type_arg (char const **typep,
320
319
  putchar ('\n');
321
320
}
322
321
 
323
 
/* Process a regular text line in `line_buf'. */
 
322
/* Process a regular text line in 'line_buf'. */
324
323
 
325
324
static void
326
325
proc_text (void)
371
370
  fwrite (line_buf.buffer, sizeof (char), line_buf.length, stdout);
372
371
}
373
372
 
374
 
/* Return the type of line in `line_buf'. */
 
373
/* Return the type of line in 'line_buf'. */
375
374
 
376
375
static enum section
377
376
check_section (void)