summaryrefslogtreecommitdiffstats
path: root/src/paste.c
AgeCommit message (Collapse)AuthorLines
2005-05-14Update FSF postal mail address.Jim Meyering-1/+1
2005-05-14Update FSF postal mail address.Jim Meyering-1/+1
2005-04-11(paste_serial): Don't assume fopen does not return stdin.Paul Eggert-2/+3
2005-03-28(longopts): Use NULL, not `0'.Jim Meyering-4/+4
2004-09-21Remove unused "case 0".Paul Eggert-3/+0
2004-09-03Output correct errno-related diagnostic on "paste" I/O errors.Paul Eggert-12/+37
(write_error, xputchar): New functions. (paste_parallel): Use correct errno value after input error. (paste_parallel, paste_serial): Report errno value after output error.
2004-09-03(paste_parallel): Improve replacement for ENDLIST and CLOSED.Paul Eggert-14/+10
2004-09-02(dummy_closed, CLOSED, dummy_endlist, ENDLIST): Remove;Paul Eggert-21/+20
it's not portable C to assume FILE is a complete type. (paste_parallel): Use null instead of ENDLIST, and an explicit boolean instead of CLOSED.
2004-08-03(paste_parallel, paste_serial, main): Use bool for booleans.Paul Eggert-17/+18
2004-01-23(paste_parallel): Declare local, chr, to be of typeJim Meyering-1/+1
`int', not `char', since it must hold EOF. This bug would make paste infloop on some systems.
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering-3/+4
(usage): Don't bother normalizing exit status since the arg is already the correct exit status now.
2004-01-09Use `bool' (not int) as the type for a fewJim Meyering-59/+45
global variables. (collapse_escapes): Rewrite to set globals rather than modifying its parameter. Use size_t (not int) for all counters and related index variables. (paste_parallel): Remove needless complexity of using xrealloc in the loop; just allocate the buffers up front. Free the two temporary buffers. Move declarations of locals `down' into scope where used. (paste_serial): Remove `register' attributes. (main): Simplify delim-related code. Free `delims', now that it's malloc'd.
2003-11-06whoops. One more.Jim Meyering-1/+1
2003-11-06(paste_parallel): Use `sizeof *var' rather than hard-coding `sizeof FILE*'.Jim Meyering-1/+1
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering-2/+2
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-23(paste_serial): Save errno after input error,Jim Meyering-1/+4
to report proper errno value. Based on a patch from Paul Eggert.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering-2/+2
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering-1/+1
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering-1/+1
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-08-27(paste_parallel): Don't output `EOF' (aka -1) as a `char'.Jim Meyering-2/+7
This would happen for nonempty files not ending with a newline.
2003-07-23Don't include headers already included by system.h:Jim Meyering-1/+0
Don't include closeout.h.
2003-06-17(main): Call initialize_main.Jim Meyering-0/+1
2003-04-11Remove anachronistic casts of xmalloc,Jim Meyering-6/+5
xrealloc, and xcalloc return values and of xrealloc's first argument.
2002-10-12(paste_parallel): Declare local var, `delims_saved', to beJim Meyering-1/+1
of type size_t, since that's the way it's used and avoids a warning.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering-2/+2
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering-1/+1
2001-12-03(usage): Merge lone "\n" into adjacent string.Jim Meyering-3/+0
2001-12-01Reflect renaming to, and new usage of these macros:Jim Meyering-2/+2
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering-4/+2
instead of hard-coding --help and --version descriptions.
2001-11-23Factor out some common strings to make translation easier.Jim Meyering-2/+11
Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says: Mandatory arguments to long options are mandatory for short options too.
2001-11-04(usage): Say thatJim Meyering-1/+2
``Mandatory arguments to long options are mandatory for short options too.\n\''
2001-08-13(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering-1/+1
`and'.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-2/+3
2000-01-21Correct copying notice to use GPL, per author's request.Jim Meyering-23/+20
(AUTHORS): Add djm.
1999-08-22(paste_parallel): Use IF_LINT macro instead of #ifdef lint...Jim Meyering-5/+1
1999-04-04Standardize --help and --version processing.Jim Meyering-4/+6
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering-1/+1
1999-04-03Insert AUTHORS definition.Jim Meyering-0/+2
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering-1/+1
1999-04-03define PROGRAM_NAMEJim Meyering-0/+3
1999-03-04Include long-options.hJim Meyering-18/+5
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-01-14Don't prototype usage as static.Jim Meyering-1/+1
1998-09-19update bug-reporting addressJim Meyering-1/+1
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering-23/+23
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering-23/+23
1998-04-12Use STREQ rather than strcmpJim Meyering-3/+3
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering-5/+2
(paste_parallel): Cast first arg of xrealloc to char*.
1997-10-07indent cpp directives to reflect nestingJim Meyering-1/+1
1997-10-07update bug-reporting addressJim Meyering-1/+1
1997-02-01bracket bug address with <> and append a periodJim Meyering-1/+1