aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lex
Commit message (Collapse)AuthorAgeFilesLines
* packages: rename elftoolchain to toolchain, add more thingsLexi Winter2025-05-281-0/+1
| | | | | | | | | | | | | | Rename the existing "elftoolchain" package to "toolchain", and move everything which is gated by MK_TOOLCHAIN (e.g. lex, yacc, ...) to the toolchain package. This means we have one package called "toolchain" which contains all the development-related utilities which are not compilers or already part of some other package (e.g., llvm). Reviewed by: des, emaste Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50286
* Retire MK_PROFILE infrastructureEd Maste2024-11-121-5/+0
| | | | | | | | | | It was disabled by default in fe52b7f60ef4. We planned to (but did not) remove the option before FreeBSD 14. Remove it now, for FreeBSD 15. Relnotes: Yes Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31558
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-1/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-166-6/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Additions to targets/pseudo/host-toolsSimon J. Gerraty2023-04-272-0/+17
| | | | | More tools needed to be built for Linux. These are the ones that "just work".
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-0/+1
|
* usr.bin/lex: regenerate bootstrap files after d37f81e35bAlex Richardson2021-04-212-18/+6
| | | | Reviewed by: jkim
* Revert "contrib/flex: Drop local __dead2 patch"Alex Richardson2021-04-212-6/+18
| | | | | | | | I missed the review comment to commit the changes separately, will reland in multiple smaller commits. Requested By: jkim This reverts commit bbd421cdf6d8c6102e6fd3979c5bec21ace3c2e3.
* contrib/flex: Drop local __dead2 patchAlex Richardson2021-04-202-18/+6
| | | | | | | | | | Upstream flex has added a yynoreturn, so this diff is no longer needed. Partially reverts r181269. Also regenerate the pre-generated files that are used for bootstrapping. Reviewed By: jkim Differential Revision: https://reviews.freebsd.org/D29679
* flex: Regen bootstrap filesJung-uk Kim2021-04-194-14/+18
| | | | | | | | | This also partially reverts r326025 (8a16b7a18f5d). I do not see any point of adding SPDX tag in generated file. MFC after: 3 days Submitted by: Dan McGregor <dan.mcgregor@usask.ca> (initial version) Differential Revision: https://reviews.freebsd.org/D28596
* MFV: r362286Jung-uk Kim2020-06-189-3008/+3428
|\ | | | | | | | | | | | | Merge flex 2.6.4. Notes: svn path=/head/; revision=362333
| * import vanilla flex version 2.5.35vendor/flex/2.5.35Baptiste Daroussin2011-11-2828-22407/+0
| | | | | | | | | | | | | | | | | | Reviewed by: cognet Approved by: cognet Notes: svn path=/vendor/flex/dist/; revision=228072 svn path=/vendor/flex/2.5.35/; revision=228075; tag=vendor/flex/2.5.35
| * Virgin import of Flex v2.5.4David E. O'Brien1999-10-275-64/+105
| | | | | | | | Notes: svn path=/vendor/flex/dist/; revision=52552
* | Disable new clang 10.0.0 warnings about misleading indentation in flex.Dimitry Andric2020-01-311-0/+2
| | | | | | | | | | | | | | | | | | | | As this is contributed code with very messy indentation, which will almost certainly never be upgraded, just disable the warning. MFC after: 3 days Notes: svn path=/projects/clang1000-import/; revision=357345
* | Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* | Fix broken SPDX comment in usr.bin/lex/initparse.cAlex Richardson2018-02-071-1/+1
| | | | | | | | | | | | | | Approved By: jhb (mentor) Notes: svn path=/head/; revision=328979
* | General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* | DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | | | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* | Adopt SRCTOP in usr.binWarner Losh2017-03-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence on: arch@ (twice) Notes: svn path=/head/; revision=315170
* | Use NULL instead of 0 for pointers.Marcelo Araujo2016-04-192-4/+4
| | | | | | | | | | | | | | | | | | realloc will return NULL in case it cannot allocate memory. MFC after: 2 weeks. Notes: svn path=/head/; revision=298241
* | DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-10/+0
| | | | | | | | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* | META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* | META_MODE: Remove DEP_MACHINE from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | | | | | | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288228
* | META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | | | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* | Add META_MODE support.Simon J. Gerraty2015-06-132-0/+41
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * | dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * | Merge sync of headSimon J. Gerraty2015-05-272-4/+3
| |\ \ | |/ / |/| | | | | Notes: svn path=/projects/bmake/; revision=283595
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge from headSimon J. Gerraty2013-09-0531-15377/+9874
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-222-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Add a ${CP} alias for copying files in the build.Will Andrews2015-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users build FreeBSD as non-root in Perforce workspaces. By default, Perforce sets files read-only unless they're explicitly being edited. As a result, the -f argument must be used to cp in order to override the read-only flag when copying source files to object directories. Bare use of 'cp' should be avoided in the future. Update all current users of 'cp' in the src tree. Reviewed by: emaste MFC after: 1 week Sponsored by: Spectra Logic Notes: svn path=/head/; revision=277273
* | | | | | Workaround help2man defficiency that prevents mandoc from renderingBaptiste Daroussin2014-11-231-3/+2
| |_|_|/ / |/| | | | | | | | | | | | | | Notes: svn path=/head/; revision=274932
* | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | Connect flex 2.5.37 to the build and bump __FreeBSD_version.Jung-uk Kim2013-05-2131-15377/+9874
| |/ / |/| | | | | | | | Notes: svn path=/head/; revision=250881
* | | Correct double "the the"Eitan Adler2012-09-141-1/+1
|/ / | | | | | | | | | | | | | | Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=240518
* | Fix error reported by mandoc.Joel Dahl2012-05-231-2/+1
| | | | | | | | Notes: svn path=/head/; revision=235853
* | Parenthesize args in yyless() and unput() replacement textJens Schweikhardt2012-04-101-3/+3
| | | | | | | | | | | | | | | | | | so they are safer when used with expressions. MFC after: 1 week Notes: svn path=/head/; revision=234101
* | Spelling fixes for usr.bin/Ulrich Spörlein2011-12-303-4/+6
| | | | | | | | Notes: svn path=/head/; revision=228992
* | Replace char copyright[] by static const char copyright[].Ed Schouten2011-12-101-1/+1
| | | | | | | | | | | | | | It seems the latter is used throughout the tree. Notes: svn path=/head/; revision=228394
* | Fix typos - remove duplicate "the".Rebecca Cran2011-02-211-1/+1
| | | | | | | | | | | | | | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218909
* | Unbreak the test target by re-generating the initial scannerUlrich Spörlein2010-11-092-183/+207
| | | | | | | | | | | | | | | | | | | | | | 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 :/ Notes: svn path=/head/; revision=215040
* | flex: add missing ifdef magic to create/hide prototypesUlrich Spörlein2010-10-241-1/+23
| | | | | | | | | | | | | | | | | | | | This unbreaks build for some software with higher WARNS flags. Reviewed by: rpaulo PR: bin/139319 (parts already committed in previous revision) Notes: svn path=/head/; revision=214272
* | Don't define the input() function ifdef YY_NO_INPUT.Rui Paulo2010-10-131-0/+2
| | | | | | | | | | | | | | | | | | This was previously done for the input() function. Submitted by: Norberto Lopes <nblopes.ml at gmail.com> Notes: svn path=/head/; revision=213764
* | Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-022-0/+4
| | | | | | | | | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* | Let both yacc and lex generate code that passes -Wold-style-definition.Ed Schouten2009-12-302-6/+6
| | | | | | | | | | | | | | | | Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments. Notes: svn path=/head/; revision=201289