DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/usr.bin/tail Makefile extern.h forward.c read.c reverse.c tail.c

From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Mar 2005 13:37:33 -0800 (PST)

cpressey    2005/03/01 13:37:33 PST

DragonFly src repository

  Modified files:
    usr.bin/tail         Makefile extern.h forward.c read.c 
                         reverse.c tail.c 
  Raise WARNS to 6:
  - Remove NOTSET from the STYLE enumeration.  Use a new flag
    variable in main(), style_set, for this purpose.
  - The ARG() macro is rather large and unwieldy, so replace it with
    an equivalent function, getarg().
  - Rename a function to avoid conflict with a local variable inside
    that function.  Rename another function for consistency.
  - Rename locals to avoid conflict with library function names.
  - Sprinkle `const'.
  - Use ssize_t instead of u_int to record line length.
  - Ensure several local variables are initialized.
  - Some explicit checks against NULL and 0.
  - Add $DragonFly$ to Makefile.
  Revision  Changes    Path
  1.2       +2 -0      src/usr.bin/tail/Makefile
  1.6       +5 -5      src/usr.bin/tail/extern.h
  1.6       +10 -7     src/usr.bin/tail/forward.c
  1.4       +8 -8      src/usr.bin/tail/read.c
  1.4       +4 -4      src/usr.bin/tail/reverse.c
  1.6       +51 -42    src/usr.bin/tail/tail.c


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