#
c9fc29cf |
| 04-Sep-2023 |
espie <espie@openbsd.org> |
GC old code that was originally implemented to facilitate adoption by other BSDs, which never happened, so make things simpler for further development.
Ditches config.h entirely since it gets reduce
GC old code that was originally implemented to facilitate adoption by other BSDs, which never happened, so make things simpler for further development.
Ditches config.h entirely since it gets reduced to 2 defines.
okay tb@
show more ...
|
#
d4eb5638 |
| 10-Aug-2023 |
espie <espie@openbsd.org> |
Add support for .VARIABLES, to which I have use. This is an extension but also exists in gnu-make. okay millert@, kn@, thfr@ (I've added an XXX comment on top of the patch you've seen, no actual furt
Add support for .VARIABLES, to which I have use. This is an extension but also exists in gnu-make. okay millert@, kn@, thfr@ (I've added an XXX comment on top of the patch you've seen, no actual further code change)
show more ...
|
#
fe82cac0 |
| 09-Jun-2022 |
espie <espie@openbsd.org> |
point developers to the other place where the remaining flags values are defined (nice gotcha when you come back to the code after a few months).
|
#
97d15dd1 |
| 22-Dec-2019 |
espie <espie@openbsd.org> |
we also have "VAR_*" constants in parsevar with totally different meanings. Rename to avoid ambiguity - VAR_IS_SHELL (in var.c): the SHELL variable, which has specific POSIX semantics - VAR_SHELL (in
we also have "VAR_*" constants in parsevar with totally different meanings. Rename to avoid ambiguity - VAR_IS_SHELL (in var.c): the SHELL variable, which has specific POSIX semantics - VAR_SHELL (in parsevar.c): assign the result of running the command to the variable.
no actual code change
show more ...
|
#
91797de1 |
| 21-Dec-2019 |
espie <espie@openbsd.org> |
yet another mostly cosmetic diff - rename context into localvars, which is more meaningful and less generic - instantiate the random rumbling at the start of gnode.h with actual variable names - expl
yet another mostly cosmetic diff - rename context into localvars, which is more meaningful and less generic - instantiate the random rumbling at the start of gnode.h with actual variable names - explain and group gnode.h variables better - make some comments terser/more meaningful
okay millert@
show more ...
|
#
83f3589b |
| 23-Oct-2016 |
espie <espie@openbsd.org> |
add !!= feedback and okay millert@
|
#
f6402cca |
| 14-Oct-2016 |
natano <natano@openbsd.org> |
Implement the ${<D} and ${<F} variables, as documented in the manual. They are equivalent to ${<:H} and ${<:T} repectively, however the former variants are more portable, as they are understood by GN
Implement the ${<D} and ${<F} variables, as documented in the manual. They are equivalent to ${<:H} and ${<:T} repectively, however the former variants are more portable, as they are understood by GNU, FreeBSD and NetBSD make too.
absence of those variables reported by Dario Niedermann <dnied at tiscali.it> ok millert espie
show more ...
|
#
297f6755 |
| 27-Sep-2015 |
guenther <guenther@openbsd.org> |
Mark all the error printing functions as printf-like; fix two format mismatches this revealed
ok espie@
|
#
e2ff9f51 |
| 12-May-2014 |
espie <espie@openbsd.org> |
adjust to ohash being in libutil now, and to the interface changes. fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice)
adjust to ohash being in libutil now, and to the interface changes. fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice) move the rest of lst.lib stuff into its own directory.
show more ...
|
#
23925f35 |
| 29-Jan-2014 |
espie <espie@openbsd.org> |
I'm a bit dyslexic. Found out by Jan Klemkow. Thanks.
|
#
51d4905b |
| 06-Jan-2014 |
espie <espie@openbsd.org> |
this actually requires a comment. I would never have figured it out if it wasn't for the arm error.
|
#
0adf6829 |
| 06-Jan-2014 |
espie <espie@openbsd.org> |
fix error messages, avoid dereferencing null pointers. - the code becomes too indented, pull it into a separate function - add an extra hint, the current_gnode. - specifically, variables may be expan
fix error messages, avoid dereferencing null pointers. - the code becomes too indented, pull it into a separate function - add an extra hint, the current_gnode. - specifically, variables may be expanded during target: prereq solving in Suff_FindDeps, this is after parsing, not during command execution, and the only actual indication with have is that we're resolving a prereq of.
(this ought to fix mk35, and partially solve mk34)
show more ...
|
#
1f89b472 |
| 23-Apr-2013 |
espie <espie@openbsd.org> |
remove TIMESTAMP abstraction layer, prodded by theo. while there, clean up includes. use strtoll for ar timestamps (pretty much unused in reality, more standard conforming than anything)
use idea fr
remove TIMESTAMP abstraction layer, prodded by theo. while there, clean up includes. use strtoll for ar timestamps (pretty much unused in reality, more standard conforming than anything)
use idea from Todd to adapt to time_t being 32 bits OR 64 bits (pedantically correct: INT_MIN would work just fine up to 1910 or so...)
okay millert@, gone thru a make build.
show more ...
|
#
6a6cb55f |
| 15-Feb-2013 |
espie <espie@openbsd.org> |
turns out if a line ends with a $, the var module will run off the cliff while expanding it. shows up very prominently with MALLOC_OPTIONS=S
Problem found by jasper@
okay'd by jasper@ and kind-of d
turns out if a line ends with a $, the var module will run off the cliff while expanding it. shows up very prominently with MALLOC_OPTIONS=S
Problem found by jasper@
okay'd by jasper@ and kind-of duh'd by miod@
show more ...
|
#
76c67f06 |
| 09-Oct-2012 |
espie <espie@openbsd.org> |
new interface: look in command lines for variables that indicate a list of targets is actually separate targets.
|
#
1bae8e1f |
| 02-Oct-2012 |
espie <espie@openbsd.org> |
more changes, discussed and tested by various people. - put back some job control, turns out it's necessary when we don't run a shell. - zap old #ifdef CLEANUP code... probably doesn't even compile.
more changes, discussed and tested by various people. - put back some job control, turns out it's necessary when we don't run a shell. - zap old #ifdef CLEANUP code... probably doesn't even compile. - kill most of the OP_LIB code. Just keep a wee little bit for compatibility (deprecated .LIBS and .INCLUDES, warns for weird dependencies instead of erroring out). - much improved debugging and -p output: sort variables, targets, rules, output stuff in a nicer format mimicing input. - better error message when no command is found, explain where the target comes from. - sort final error list by file. - show system files in errors as <bsd.prog.mk> - reincorporate random delay, that was dropped - optimize siginfo output by not regenerating the whole string each time. - finish zapping old LocationInfo field that's no longer used.
show more ...
|
#
c1007ea2 |
| 25-Aug-2012 |
espie <espie@openbsd.org> |
- make wrong variable specs (unterminated) parse errors. - add info to be able to pinpoint parse errors at runtime. - let job runners abort when a parse error happens while expanding a variable durin
- make wrong variable specs (unterminated) parse errors. - add info to be able to pinpoint parse errors at runtime. - let job runners abort when a parse error happens while expanding a variable during execution - fix an infinite loop when compiling without FEATURE_RECVARS.
okay millert@, krw@ the very few errors found out by this (less than 10 over src/X/ports) fixed trivially beforehand, as requested by deraadt@
show more ...
|
#
f4f0b16a |
| 22-Mar-2012 |
espie <espie@openbsd.org> |
minor cleanup: error messages include lineno and fileno together, so recognize that and create a struct Location_ for it.
mostly from Jonathan Calmels, a few nits from me.
okay otto@
|
#
7739c128 |
| 20-Jun-2011 |
espie <espie@openbsd.org> |
fix a segfault found by jasper@ ok miod@, otto@, jasper@
|
#
bb4544df |
| 19-Jul-2010 |
espie <espie@openbsd.org> |
Correct $OpenBSD$ stuff
|
#
3c4acb25 |
| 25-Apr-2010 |
espie <espie@openbsd.org> |
pure whitespace cleanup
|
#
80629fe7 |
| 13-May-2009 |
espie <espie@openbsd.org> |
fix loopvar debug prints. Issue reported by naddy@
|
#
7c635cc4 |
| 09-Nov-2008 |
tobias <tobias@openbsd.org> |
typo fixed (overriden -> overridden)
ok espie, jmc
|
#
3d97cd1a |
| 17-Nov-2007 |
espie <espie@openbsd.org> |
simplify dynamic variable handling a great deal: first remove all usage of Varq_Append by building the string directly. then replace `common' handling with specialized handling for dynamic strings (s
simplify dynamic variable handling a great deal: first remove all usage of Varq_Append by building the string directly. then replace `common' handling with specialized handling for dynamic strings (since they no longer need a buffer). Finally, identify the place where the variable value needs to be copied because it's going to be free'd or erased soon, and finally, use simple char* pointers.
Shaves about 80 bytes off every gnode structure, and kills quite a few unnecessary malloc()s as well.
show more ...
|
#
e2318646 |
| 04-Nov-2007 |
espie <espie@openbsd.org> |
prevent gcc from complaining
|