Commit Graph

76 Commits

Author SHA1 Message Date
Eitan Adler
96240c89f0 Correct double "the the"
Approved by:	cperciva
MFC after:	3 days
2012-09-14 21:28:56 +00:00
Joel Dahl
b59864441e Fix error reported by mandoc. 2012-05-23 18:41:45 +00:00
Jens Schweikhardt
da4b9d2971 Parenthesize args in yyless() and unput() replacement text
so they are safer when used with expressions.

MFC after:	1 week
2012-04-10 15:29:28 +00:00
Ulrich Spörlein
487ac9ac21 Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
Ed Schouten
516c8ed9dd Replace char copyright[] by static const char copyright[].
It seems the latter is used throughout the tree.
2011-12-10 18:11:06 +00:00
Rebecca Cran
6bccea7c2b Fix typos - remove duplicate "the".
PR:	bin/154928
Submitted by:	Eitan Adler <lists at eitanadler.com>
MFC after: 	3 days
2011-02-21 09:01:34 +00:00
Ulrich Spörlein
91109a91ba Unbreak the test target by re-generating the initial scanner
using an updated flex(1) binary.

Also ignore the changing $FreeBSD$ ID lines when doing the diff.
This needs additional obfuscation, to not upset the svn precommit
hooks :/
2010-11-09 18:28:11 +00:00
Ulrich Spörlein
16dc6e122a flex: add missing ifdef magic to create/hide prototypes
This unbreaks build for some software with higher WARNS flags.

Reviewed by:	rpaulo
PR:		bin/139319 (parts already committed in previous revision)
2010-10-24 15:31:41 +00:00
Rui Paulo
60982546cd Don't define the input() function ifdef YY_NO_INPUT.
This was previously done for the input() function.

Submitted by:	Norberto Lopes <nblopes.ml at gmail.com>
2010-10-13 10:31:32 +00:00
Ed Schouten
b7946da96b Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
Ed Schouten
a6c287f615 Let both yacc and lex generate code that passes -Wold-style-definition.
Both these tools emit code where several functions have no `void'
keyword placed in the arugment list when the function has no arguments.
2009-12-30 22:46:08 +00:00
Colin Percival
f9bcf9cabf Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible.

This commit eliminates 117 false positive bug reports of the form
"allocate memory; error out if pointer is NULL; use pointer".
2008-08-04 01:25:48 +00:00
David Malone
9bcce8a03e I missed some "register"s in non-dot-C files. 2008-06-08 19:59:15 +00:00
David Malone
48f6b9b8b1 De-register declarations. 2008-06-04 19:50:34 +00:00
Ruslan Ermilov
4f6d329f1e - Convert NO_INSTALLLIB option to a new syntax: makefiles should
test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB.  The old
  NO_INSTALLLIB is still supported as several makefiles set it.

- While here, fix an install when instructed not to install libs
  (usr.bin/lex/lib/Makefile).

PR:		bin/114200
Submitted by:	Henrik Brix Andersen
2007-10-20 19:01:50 +00:00
Ruslan Ermilov
5740a2b62d Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
Ruslan Ermilov
ab7a294721 NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
2004-12-21 09:33:47 +00:00
Ruslan Ermilov
a35d88931c For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
Alexander Kabaev
9eaa475e3e Stop the practice of installing external headers into GCC-specific directory.
Install FlexLexer.h into /usr/include directly.
2004-07-30 00:08:15 +00:00
Giorgos Keramidas
dca30d0f35 Correct a minor syntax mistake.
PR:		docs/67458
Submitted by:	Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after:	3 days
2004-07-07 21:27:44 +00:00
Josef El-Rayes
55cc37447a Replace <iostream.h> with <iostream> to remove annoying warning
of using deprecated header.

Approved by:    dwhite, simon(mentor)
Reviewed by:    mlaier
Submitted by:   Stefan Farfeleder <stefan@fafoe.narf.at>
PR:             bin/63781
2004-03-11 10:43:35 +00:00
Jacques Vidrine
d48ff1e438 Mark a function as `unused' in generated code. (Sometimes it is used,
sometimes it is not, depending upon the input grammar.)
2004-01-06 19:03:44 +00:00
Jacques Vidrine
d179cf2207 Work around a `label defined but not used' warning in *generated* code. 2004-01-06 18:54:55 +00:00
Alexander Kabaev
e9f8ce2eea Point to the new C++ include files location. 2003-07-11 05:30:58 +00:00
Jens Schweikhardt
9d5abbddbf Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
d64ada501a Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
Jens Schweikhardt
57bd0fc6e8 english(4) police. 2002-12-27 12:15:40 +00:00
David E. O'Brien
6c1739987a Catch up with the ISO-C++ standard.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-09-09 02:58:42 +00:00
Philippe Charnier
93b0017f88 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
David E. O'Brien
e026a48c34 Consistently use FBSDID 2002-06-30 05:25:07 +00:00
Ruslan Ermilov
c7b111cba8 Added new bsd.incs.mk which handles installing of header files
via INCS.  Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files.  Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1.  Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

	kerberos5/lib/libtelnet/Makefile
	lib/libbz2/Makefile
	lib/libdevinfo/Makefile
	lib/libform/Makefile
	lib/libisc/Makefile
	lib/libmenu/Makefile
	lib/libmilter/Makefile
	lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD.  Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".
2002-05-12 16:01:00 +00:00
Ruslan Ermilov
c86f28d27b Back out rev. 1.6 (NOLIB bootstrap helper) OBE'd by Makefile.inc1,v 1.96.
PR:		bin/36417
Submitted by:	Eugene Grosbein <eugen@www.svzserv.kemerovo.su>
2002-03-28 10:53:49 +00:00
Dima Dorfman
5222969570 ``recognized -> recognize'' where appropriate.
Obtained from:	OpenBSD
2001-08-23 21:13:31 +00:00
Ruslan Ermilov
8af1452cf8 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
Assar Westerlund
dbda0a3480 revert last commit. using %option nounput is better
noted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-07-22 23:14:33 +00:00
Assar Westerlund
04625dfc30 add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
2001-07-21 19:47:17 +00:00
Dima Dorfman
f247324df7 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
Ruslan Ermilov
63914212f0 Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:29:59 +00:00
Dima Dorfman
70d51341bf mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
Ruslan Ermilov
dc12be5258 MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
Bruce Evans
58de7a0d92 Install Flexlexer.h with mode 444. 1999-12-17 07:49:03 +00:00
Dmitrij Tejblum
d5a53b4fe6 Generate skel.c at build time. 1999-11-20 15:41:43 +00:00
David E. O'Brien
b60b8d23b8 Add more verbage explaining the "-I" option and its behavior.
Submitted by:	Archie Cobbs <archie@whistle.com>
1999-10-27 20:21:03 +00:00
David E. O'Brien
2db7675cc2 After a proper import we now have both the original RCS tags + our own.
(also now clearer in ``cvs log'' that we are at version 2.5.4)
1999-10-27 07:56:49 +00:00
David E. O'Brien
4698d64d69 Add $FreeBSD$'s 1999-10-27 07:47:42 +00:00
Peter Wemm
a1a4f1a0d8 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Dmitrij Tejblum
ab1c32cc13 Backed out "fix for PR 7575". It was bogus. 1998-10-01 19:40:27 +00:00
Poul-Henning Kamp
9cd4d748f9 /usr/src/usr.bin/lex/Makefile puts FlexLexer.h into /usr/include/g++,
but flex still generates "#include <FlexLexer.h".  As a result,
C++ sources flex generates failed to be compiled.

PR:		7575
Reviewed by:	phk
Submitted by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
1998-08-14 06:35:37 +00:00
Peter Hawkins
a1fca66a0b Submitted by: Peter Hawkins thepish@freebsd.org
Small man page fix (missing ']' in [:alpha:] example)
1998-06-11 02:14:58 +00:00