tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
usr.bin
/
make
/
at
trash-bin2
2 folders
77 files
PSD.doc
make searches for makefile before Makefile; from raf czlonka
4 years ago
lst.lib
gc lst_ForEachNodeWhile, which isn't actually in use anywhere
10 years ago
Makefile
make the choice of engine explicit
6 years ago
arch.c
introduce a "Buf_Reinit" function for handling static buffers that can be reused throughout running make. Instead of recreating buffers of dubious appropriate size, have one single buffer for various stages of parsing.
6 years ago
arch.h
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)
13 years ago
buf.c
introduce a "Buf_Reinit" function for handling static buffers that can be reused throughout running make. Instead of recreating buffers of dubious appropriate size, have one single buffer for various stages of parsing.
6 years ago
buf.h
introduce a "Buf_Reinit" function for handling static buffers that can be reused throughout running make. Instead of recreating buffers of dubious appropriate size, have one single buffer for various stages of parsing.
6 years ago
cmd_exec.c
turns out there WAS something fishy in signal handling in the "generic" reaper. Specifically, the sigprocmask/wait/sigsuspend dance is correct for the main process, BUT you have to remember to reset the signal mask to something sane for the child (this was a duh! moment, that bug is very stupid)
6 years ago
cmd_exec.h
Correct $OpenBSD$ stuff
15 years ago
compat.c
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
compat.h
make the choice of engine explicit
6 years ago
cond.c
rename a few variable/functions to have better names. adjust comments to be more meaningful reorder predecessors/successors fields in an order that makes more sense to me.
6 years ago
cond.h
Correct $OpenBSD$ stuff
15 years ago
cond_int.h
Correct $OpenBSD$ stuff
15 years ago
config.h
remove unused defines ok gnezdo@
4 years ago
defines.h
make sure we use stdbool.h Mostly diff by Daniel Dickman, who told me to commit in his stead, as he's tied up at work.
10 years ago
dir.c
small obvious cleanups: - remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static
9 years ago
dir.h
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)
13 years ago
direxpand.c
small obvious cleanups: - remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static
9 years ago
direxpand.h
two small changes: - allow variables in SysV modifiers, as requested by matthieu@ (since recursive variables are an extension, this just extends the extension) - variation on :Q called :QL (quote list), which does quote every character EXCEPT for whitespace. e.g.,
15 years ago
dump.c
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
dump.h
a wee little bit more cleanup (more const and remove noise from CDIAGFLAGS... -pedantic kind of requires -std=c99 here to avoid LL warnings) okay miod@, millert@
11 years ago
engine.c
Zap unused variables/functions under /usr/src/*bin/
4 years ago
engine.h
introduce a JOB_KEEPERROR flag so that the logic for moving jobs to availableJobs/errorJobs happens just once
6 years ago
enginechoice.c
better if I commit the version which actually includes the header ;)
5 years ago
enginechoice.h
somehow I forgot to add copyright and to include the right prototypes. No actual code change (checked with cmp)
5 years ago
error.c
Mark all the error printing functions as printf-like; fix two format mismatches this revealed
10 years ago
error.h
Mark all the error printing functions as printf-like; fix two format mismatches this revealed
10 years ago
expandchildren.c
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
expandchildren.h
move a large chunk of suff.c into its own file (independent functions which are not really directly related to suffix handling), so that I can eventually understand how this whole thing works.
6 years ago
extern.h
simplify the way we account for different jobs: - have a simple variable "sequential" that counts whether we are running more than one job (for the expensive heuristics) - don't expose various things globally, just have a set_noparallel() for the parser - preallocate exactly enough job structures and record them in availableJobs - keep one job on the side for .INTERRUPT
6 years ago
for.c
Fix a case where we could go off the end of the buffer. Crash found by Sergey Bronnikov using afl-fuzz. Based on a diff from and OK by espie@
8 years ago
for.h
Correct $OpenBSD$ stuff
15 years ago
garray.h
- give a specific value to OP_ERROR that doesn't occur in nature - define OP_ZERO as zero, to make some function calls obvious - split ParseDoOp into two functions: ParseDoOp that only deals with : :: ! and ParseDoSpecial that only deals with special nodes. This simplifies both functions accordingly - always initialize special_op
6 years ago
generate.c
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.
9 years ago
gnode.h
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
init.c
turns out there WAS something fishy in signal handling in the "generic" reaper. Specifically, the sigprocmask/wait/sigsuspend dance is correct for the main process, BUT you have to remember to reset the signal mask to something sane for the child (this was a duh! moment, that bug is very stupid)
6 years ago
init.h
Correct $OpenBSD$ stuff
15 years ago
job.c
kill dead line okay millert@
5 years ago
job.h
Init_Sigset() isn't a prototype without the void! obvious warning fix
5 years ago
location.h
minor cleanup: error messages include lineno and fileno together, so recognize that and create a struct Location_ for it.
14 years ago
lowparse.c
small obvious cleanups: - remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static
9 years ago
lowparse.h
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.
13 years ago
lst.h
warn about proper usage of Lst_Destroy.
5 years ago
lst_t.h
Correct $OpenBSD$ stuff
15 years ago
main.c
make the choice of engine explicit
6 years ago
main.h
simplify the way we account for different jobs: - have a simple variable "sequential" that counts whether we are running more than one job (for the expensive heuristics) - don't expose various things globally, just have a set_noparallel() for the parser - preallocate exactly enough job structures and record them in availableJobs - keep one job on the side for .INTERRUPT
6 years ago
make.1
man pages: add missing commas between subordinate and main clauses
4 years ago
make.c
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
make.h
make the choice of engine explicit
6 years ago
memory.c
a bit more reallocarray (and kill ecalloc, which isn't used) okay chl@
12 years ago
memory.h
GC old cruft. noticed and patch Michael W. Bombardieri
8 years ago
node_int.h
- SPECIAL_DEPRECATED -> SPECIAL_NOTHING - nodes for .POSIX and .SCCS_GET (which don't do anything) - zap remaining suffix crud.
13 years ago
parse.c
put back Lst_Destroy(paths) where it belongs noticed by jsg@
5 years ago
parse.h
fix duplicate targets in target list for good: split previous groupling fix in two. Catch 22: we have to dedup targets very early so that commands get attached correctly, but we can't figure out the grouplings heuristics until we have all commands...
10 years ago
parsevar.c
add !!= feedback and okay millert@
9 years ago
parsevar.h
Correct $OpenBSD$ stuff
15 years ago
pathnames.h
GC some old stuff okay millert@
6 years ago
regress.c
exit needs stdlib, switch to "return 0" to fix.
10 years ago
stats.c
pure reindent
12 years ago
stats.h
Correct $OpenBSD$ stuff
15 years ago
str.c
document brk_string slightly better remove the comment about .MAKE, since that's only true when called from main, and explain about the other parameters
6 years ago
str.h
Correct $OpenBSD$ stuff
15 years ago
suff.c
make the choice of engine explicit
6 years ago
suff.h
move a large chunk of suff.c into its own file (independent functions which are not really directly related to suffix handling), so that I can eventually understand how this whole thing works.
6 years ago
symtable.h
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
6 years ago
targ.c
remove OP_* for deprecated keywords (document that :: still uses OP_INVISIBLE)
6 years ago
targ.h
make the choice of engine explicit
6 years ago
targequiv.c
rename a few variable/functions to have better names. adjust comments to be more meaningful reorder predecessors/successors fields in an order that makes more sense to me.
6 years ago
targequiv.h
Correct $OpenBSD$ stuff
15 years ago
timestamp.c
as checked through thorough tests, youngest->mtime == ctime, so ditch the extra field.
13 years ago
timestamp.h
as checked through thorough tests, youngest->mtime == ctime, so ditch the extra field.
13 years ago
var.c
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.
6 years ago
var.h
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
6 years ago
var_int.h
Correct $OpenBSD$ stuff
15 years ago
varmodifiers.c
Fix :S with anchors and replacement
5 years ago
varmodifiers.h
Correct $OpenBSD$ stuff
15 years ago
varname.c
- 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.
13 years ago
varname.h
two small changes: - allow variables in SysV modifiers, as requested by matthieu@ (since recursive variables are an extension, this just extends the extension) - variation on :Q called :QL (quote list), which does quote every character EXCEPT for whitespace. e.g.,
15 years ago