History log of /src/usr.bin/gencat/gencat.c |
Revision | | Date | Author | Comments |
1.36 |
| 27-Nov-2013 |
apb | Use LIST_FOREACH, LIST_NEXT, etc., instead of direct access to the internals of queue.h structs.
|
1.35 |
| 09-Mar-2012 |
ginsbach | branches: 1.35.2; Improve the handling of quoted messages. - warn about messages with an unexpected quote character - warn about extra characters after a quote character - warn about an unterminated quoted message
|
1.34 |
| 29-Dec-2011 |
wiz | Make usage() match man page.
|
1.33 |
| 29-Dec-2011 |
christos | Make msgfile optional like other OS's
|
1.32 |
| 21-Sep-2011 |
christos | branches: 1.32.2; PR/45385: Henning Petersen: Swapped arguments in lseek
|
1.31 |
| 04-Sep-2011 |
joerg | static + __dead
|
1.30 |
| 13-Jul-2009 |
roy | Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
|
1.29 |
| 16-Apr-2009 |
tron | Fix build problem on big endian ports where ntohl() doesn't convert the argument to "uint32_t" automatically.
|
1.28 |
| 12-Apr-2009 |
lukem | fix sign-compare issues
|
1.27 |
| 18-Feb-2009 |
christos | - long -> size_t - don't allocate memory before the negative check is done CID 4722
|
1.26 |
| 04-Nov-2008 |
ginsbach | branches: 1.26.2; Change for standards compliance: - Store an empty string in the catalog when the message text is empty an a <blank> (space or tab) field separator is present.
Standards: The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition
|
1.25 |
| 28-Apr-2008 |
martin | branches: 1.25.6; 1.25.8; 1.25.10; Remove clause 3 and 4 from TNF licenses
|
1.24 |
| 21-Nov-2007 |
ginsbach | branches: 1.24.6; Changes for standards compliance: - Accept "-" for msgfile (STDIN) and catfile (STDOUT)
- Merge msgfile into formatted catfile. The catfile is created if it does not exist (current behavior). If the catfile exists, its messages are included in the new catfile. Collisions between set and message numbers cause the msgfile message text to replace the existing message text.
(The $delset directive now makes more sense.)
Standards: The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition
- Replace corrupt()/nomem() with errx(). The replaced routines called local error() -> warning() which prints an input file line number. This probably makes no sense for these conditions (it is not a syntax error in msgfile). Line numbers are completely nonsense when dealing with reading a formatted catfile.
- Modify warning() to only print line number when reading from a message file. Also print the current file being processed.
- Don't issue a warning when processing a line with only a message number and no trailing space. This is valid and will delete any existing message with that number from the current set.
- Reset lineno for each msgfile processed.
|
1.23 |
| 11-Oct-2007 |
ginsbach | More code clean up (KNF): de-__P and ANSI'ify function declarations
|
1.22 |
| 10-Oct-2007 |
ginsbach | - add const qualifiers where necessary - remove unnecessary argument from error(); first argument was always NULL [changes mostly from FreeBSD]
|
1.21 |
| 06-Oct-2007 |
ginsbach | Changes for standards compliance: - "If no $set directive is specified in a message text source file, all messages shall be located in an implementation-defined default message set NL_SETD." - The n argument to $delset indicates the set number which should be in the range 1 to NL_SETMAX.
Standards: The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition
|
1.20 |
| 30-Mar-2006 |
dsl | branches: 1.20.6; 1.20.12; 1.20.14; MCDelSet() contains an infinite loop! I suspect it has never, ever, ever been asked to delete anything that exists. Also neither it, nor MCDelMsg() below free() the set and msg structures. Found by Coverty SID:54
|
1.19 |
| 05-Jan-2004 |
jmmv | Homogenize usage messages: make the 'usage' word all lowercase, as this seems to be the most common practice in our tree.
|
1.18 |
| 27-Oct-2003 |
lukem | Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
|
1.17 |
| 24-Apr-2002 |
bjh21 | ... and in NetBSD-current, <netinet/in.h> needs <sys/types.h>.
|
1.16 |
| 24-Apr-2002 |
bjh21 | On NetBSD, <arpa/inet.h> needs <netinet/in.h>. POSIX-2001 says it shouldn't, but cope anyway.
|
1.15 |
| 24-Apr-2002 |
bjh21 | Include <arpa/inet.h> to get htonl(). This is necessary on Solaris, and POSIX says that's the right header for it.
|
1.14 |
| 31-Jan-2002 |
tv | Roll in fixes to permit cross-compiling from non-NetBSD hosts. This round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
|
1.13 |
| 29-Jan-2002 |
tv | Make almost all tools compile and run properly on non-NetBSD hosts. (In particular, most tools now run correctly on Solaris 7.)
|
1.12 |
| 23-Sep-2001 |
yamt | enable checking limit of setid and msgid.
|
1.11 |
| 20-Sep-2001 |
yamt | fix possible 1-byte overflow.
|
1.10 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
1.9 |
| 09-Oct-1998 |
itohy | The range of the argument of ctype(3) functions is not that of "char", but "unsigned char" plus EOF. The original code may cause troubles processing 8-bit code files.
|
1.8 |
| 28-Apr-1998 |
mjacob | Clean up some quote handling
|
1.7 |
| 19-Oct-1997 |
lukem | WARNSify
|
1.6 |
| 08-Oct-1997 |
jtc | Fix tipo inherited from old version of TNF copyright template.
|
1.5 |
| 09-Feb-1997 |
veego | RCS id police.
|
1.4 |
| 09-Feb-1997 |
veego | Add missing ; Fix pr #3201.
|
1.3 |
| 13-May-1996 |
jtc | New message catalog compiler implementation that generates a more efficient machine independent external format. The new format is like what is used on svr4 systems, except it uses fixed sized fields and a constant byte order.
|
1.2 |
| 21-Mar-1996 |
jtc | Be pedantic, main() returns int in C.
|
1.1 |
| 29-May-1994 |
jtc | gencat, used to create message catalogs
|
1.20.14.1 |
| 25-Aug-2009 |
snj | Pull up following revision(s) (requested by plunky in ticket #1354): bin/pax/options.c: revision 1.105 via patch usr.bin/ctags/C.c: revision 1.19 usr.bin/ctags/ctags.h: revision 1.9 usr.bin/ctags/fortran.c: revision 1.11 usr.bin/ctags/lisp.c: revision 1.11 usr.bin/ctags/print.c: revision 1.10 usr.bin/ctags/yacc.c: revision 1.12 usr.bin/gencat/gencat.c: revision 1.30 via patch Rename internal getline() function to get_line() so it does not conflict with the soon to be added getline(3) libc function.
|
1.20.12.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.20.12.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.20.6.1 |
| 25-Aug-2009 |
snj | Pull up following revision(s) (requested by plunky in ticket #1354): bin/pax/options.c: revision 1.105 via patch usr.bin/ctags/C.c: revision 1.19 usr.bin/ctags/ctags.h: revision 1.9 usr.bin/ctags/fortran.c: revision 1.11 usr.bin/ctags/lisp.c: revision 1.11 usr.bin/ctags/print.c: revision 1.10 usr.bin/ctags/yacc.c: revision 1.12 usr.bin/gencat/gencat.c: revision 1.30 via patch Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
|
1.24.6.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.25.10.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.25.8.1 |
| 14-Aug-2009 |
snj | Pull up following revision(s) (requested by roy in ticket #885): bin/pax/options.c: revision 1.105 dist/nawk/maketab.c: revision 1.12 dist/nawk/proctab.c: revision 1.11 dist/nawk/proto.h: revision 1.9 dist/nawk/run.c: revision 1.29 usr.bin/ctags/C.c: revision 1.19 usr.bin/ctags/ctags.h: revision 1.9 usr.bin/ctags/fortran.c: revision 1.11 usr.bin/ctags/lisp.c: revision 1.11 usr.bin/ctags/print.c: revision 1.10 usr.bin/ctags/yacc.c: revision 1.12 usr.bin/gencat/gencat.c: revision 1.30 Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
|
1.25.6.1 |
| 14-Aug-2009 |
snj | Pull up following revision(s) (requested by roy in ticket #885): bin/pax/options.c: revision 1.105 dist/nawk/maketab.c: revision 1.12 dist/nawk/proctab.c: revision 1.11 dist/nawk/proto.h: revision 1.9 dist/nawk/run.c: revision 1.29 usr.bin/ctags/C.c: revision 1.19 usr.bin/ctags/ctags.h: revision 1.9 usr.bin/ctags/fortran.c: revision 1.11 usr.bin/ctags/lisp.c: revision 1.11 usr.bin/ctags/print.c: revision 1.10 usr.bin/ctags/yacc.c: revision 1.12 usr.bin/gencat/gencat.c: revision 1.30 Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
|
1.26.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.32.2.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.32.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.35.2.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|