Commit Graph

37 Commits

Author SHA1 Message Date
Johan Karlsson
5ceb03e494 Our bsd.*.mk only supports 6 WARNS levels and we should not use higher values
until it does.

Approved by:	re (dwhite)
2005-06-30 11:56:31 +00:00
Ruslan Ermilov
4b25405336 Fix build on sparc64. 2005-02-27 19:37:51 +00:00
Alexey Zelkin
3e71d6fa8a Remove unused now stuff, also set WARNS to 8 2005-02-27 16:25:14 +00:00
Alexey Zelkin
5605146f8f Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean.

Also following changes were done:

. Remove of outdated support for generating of include files for
  NLS catalogs being generated.
. Integrate my old code optimizations
. ANSI'fy prototypes
. Remove duplicate defines, and cleanup includes
. Remove first (unused) argument from error() function
. Const'ify (gencat now WARNS=8 clean)
. Convert corrupt() and nomem() functions to macros
. Add *temporary* note what '-new' command line argument is
  deprecated now (instead of exiting with error message)

WARNING: format of generated .cat files is changed!

XXX: re-add support for *updating* of .cat files, NetBSD has this
functionality disabled

Obtained from:	NetBSD (mostly)
2005-02-27 16:23:14 +00:00
Alexey Zelkin
3559895440 Avoid unconditional increasing of variable leading to SIGSEGV, if req'd
parameter for -lang is missing.
2005-02-01 16:01:55 +00:00
Ruslan Ermilov
a866e17077 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
Ruslan Ermilov
557b7fa148 Deal with double whitespace. 2004-07-03 00:24:45 +00:00
Ruslan Ermilov
6a3e8b0adc Mechanically kill hard sentence breaks. 2004-07-02 22:22:35 +00:00
David Xu
71f2362aa4 Check NULL pointer to avoid SIGSEGV 2002-12-24 07:40:10 +00:00
Tim J. Robbins
5204b700b3 Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
Philippe Charnier
3a8d2936c6 Add FBSDID. Spelling. Remove unused includes. Check more malloc failures. 2002-03-26 12:39:08 +00:00
Alexey Zelkin
e0c90a7bd5 * Don't SEGFAULT on attempt to write nothing (if no source files were
specified)
* Don't print currline if it's NULL

MFC after: 3 days
2002-02-13 13:00:33 +00:00
Mark Murray
91bd71d206 Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
Dima Dorfman
5b9380f477 Fix grammar in AUTHORS section. 2001-11-23 14:37:27 +00:00
Ruslan Ermilov
d628d776c4 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
Sheldon Hearn
42abf713c9 can not -> cannot 2001-08-08 18:32:06 +00:00
Dima Dorfman
f247324df7 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
Dima Dorfman
f6751868e4 Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
where necessary.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-30 05:39:36 +00:00
Dima Dorfman
948a3f54a7 Include missing header files which define functions for which gcc has
builtins (e.g., exit).

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-24 19:41:18 +00:00
Alexey Zelkin
75c84bca41 Optimize gencat(1) sources in same manner as its libc part some time ago:
. remove SYSV compatibility bits
. sort #include's
. ifdef unused code
. cleanup BDECFLAGS warnings
. fixed few typos in diagnostics messages
. style(9) fixes

as part of this cleanup I have changed all K&R declarations to ANSI style.
Main reason for doing that was great mix of declarations used here - clean
ASNI , clean K&R, ifdef'ed (both).

Reviewed by:	ache (mostly)
2001-02-08 16:38:16 +00:00
Ruslan Ermilov
f4d874a1db mdoc(7) police: do not split author names in the AUTHORS section. 2000-11-22 09:35:58 +00:00
Andrey A. Chernov
38d3d2d67c Fix octal numbers parsing
PR:		19950
Submitted by:	Alexey Klimov <klim@unique.kiev.ua>
2000-07-15 17:17:33 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Mike Pritchard
a4cab7d390 Various man page cleanup:
- Sort xrefs
- Be consistent with section names as outlines in mdoc(7).
- Other misc mdoc cleanup.

PR:		doc/13144
Submitted by:	Alexey M. Zelkin <phantom@cris.net>
1999-08-15 08:25:34 +00:00
Warner Losh
96846ff646 More egcs warning fixes:
o main returns int not void
	o use return 0 at end of main when needed
	o use braces to avoid potentially ambiguous else
	o don't default to type int
	o #ifdef 0 -> #if 0

Reviewed by: obrien and chuckr
1999-04-25 22:37:58 +00:00
Joseph Koshy
cb474aac07 Updated gencat(1) page from T. Lambert:
"Here is a new gencat(1) man page.  It contains examples
  and information not in the current man page (e.g., file
  format) per the X/Open documentation.  It also updates some
  aspects of the X/Open documentation (e.g., the X/Open
  document neglects to say how to embed a $quote character
  into a string)."

Submitted by: Terry Lambert <tlambert@primenet.com>
Review and small corrections by:	jkoshy
1998-11-18 04:30:53 +00:00
Bruce Evans
c513aafea1 Fixed printf format errors. 1998-08-02 15:18:45 +00:00
Andrey A. Chernov
d95038c45e Add (unsigned char) cast to ctype macros 1998-04-30 10:31:38 +00:00
Wolfram Schneider
634a86ba38 Install gencat.1 manpage.
Obtained from: OpenBSD.
1997-09-14 20:23:02 +00:00
Philippe Charnier
64dacdb6b2 Use err(3), remove unused variables. 1997-07-08 11:05:59 +00:00
Peter Wemm
c115df18cd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Andrey A. Chernov
9263e09a24 Add \' to valid escapes list to be compatible with printf
2.2 candidate
1996-12-15 23:55:03 +00:00
Jordan K. Hubbard
6193bf6046 Accept escaped quotes in msg catalogs. 1995-08-26 18:37:49 +00:00
Andrey A. Chernov
ee0aa83a01 Fix lseek arg by including unistd.h 1995-06-17 04:07:09 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Jordan K. Hubbard
4633c1ace8 Add the gencat command for creating message catalog fodder for the new
catgets* routines.
Obtained from: NetBSD
1995-03-30 12:49:09 +00:00