summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2007-09-17reindentMarc Espie
2007-09-17reindent, zap useless commentsMarc Espie
2007-09-17kill += 1, -= 1 -> ++, --Marc Espie
2007-09-16finish reindenting str.cMarc Espie
2007-09-16remove some totally useless commentsMarc Espie
2007-09-16remove some of the complexity of Str_Matchi by separating code intoMarc Espie
range_match and star_match to handle special characters. reindent.
2007-09-16reindentMarc Espie
2007-09-16reindentMarc Espie
2007-09-16remove old debug code nothing usesMarc Espie
2007-09-16reindent compat.cMarc Espie
2007-09-16reindent targ.cMarc Espie
2007-09-16rename dirSearchPath -> defaultPath, and openDirectories -> knownDirectoriesMarc Espie
2007-09-16minor reindent issuesMarc Espie
2007-09-16rename Path to less misleading PathEntry. Get rid of typedef.Marc Espie
2007-09-16rename Targ_FmtTime into time_to_string and move it, as it's not relatedMarc Espie
to target nodes at all (reduces modules inter-dependencies)
2007-09-16reindent varmodifiers.c, no binary changeMarc Espie
2007-09-16remove warningsMarc Espie
2007-09-16reuse free_hashMarc Espie
2007-09-16reindent arch.cMarc Espie
2007-09-16kill .SHELL, make doesn't even support it in non-parallel mode.Marc Espie
2007-09-16move free_ohash function so that we can reuse it.Marc Espie
2007-09-16first step towards sanity: take the functions common to parallel/not parallelMarc Espie
make outside of make.c and job.c, and create an engine.c file to hold them.
2007-09-16scaffolding to recognize special targets/sources using ohash functions.Marc Espie
2007-09-16cut up dir.c into dir.c/direxpand.c as there is very little interface betweenMarc Espie
two modules that do different things.
2007-09-16more dead code: we always define LIBRARIES and INCLUDESMarc Espie
2007-09-16remove dead code: #define RECHECK is always onMarc Espie
2007-09-03use calloc() for the sake of regularity, prompted by deraadt@Marc Espie
Note that I *still* fill every pointer with explicit NULL, for portability. filling with 0 bytes is not necessarily the same as NULL pointers.
2007-08-05fix curly in targets... broke it and no-one saw the difference, so it'sMarc Espie
probably not used that often.
2007-07-30introduce a Var_Substi to substitute on intervals.Marc Espie
Since we don't really know how to change Var_Subst and dependent functions, we cheat, and copy the string to a buffer instead. Clean-up the parser a bit: reorganize the include files lookup function: introduce a resolve_include_filename function that figures out the full name of the file, introduce a handle_include_file that does all the include file handling, and rename the functions into handle_xxx_include, so that we can remove most comments. Rename ParseIsCond into handle_bsd_command, cut most of its code into constituent functions. Semantic changes: - follow the rules that, if an optional construct does not parse correctly, then it's not a real extension, and give the normal parser a chance to figure it out. If the syntax checks out, semantic errors ARE real errors. - allow variables to not be defined in include file names, no reason not to. okay miod@
2007-07-30everywhere except in Var_Parse, we always add/append variables to theMarc Espie
VAR_GLOBAL context, so make it the common case: rename the basic functions to Var_Set_with_ctxt/Var_Append_with_ctxt, define Var_Set and Var_Append as macros that specify VAR_GLOBAL, and use these. okay miod@
2007-07-30local is always true, so zap it.Marc Espie
okay miod@
2007-07-30now that it's clean enough, one can extract some common code fromMarc Espie
Var_Parse and Var_ParseSkip (the code that figures out the variable name up to eventual modifiers). okay miod@
2007-07-30clean-up. Basically:Marc Espie
- remove globals curdir and objdir, stuff them into a structure, and pass it around to the relevant functions. - cut up most of main code into functions: figure_out_MACHINE/ARCH, figure_out_CURDIR, setup_CURDIR_OBJDIR, setup_VPATH, no_fd_limits, read_makefile_list, read_all_make_rules... - simplify the code used to figure out curdir/objdir. No semantic changes. okay miod@
2007-07-30separate and name functions to add target nodes to the graph.Marc Espie
okay miod@
2007-07-30simplify the handling of assignment operators, by introducing a VAR_INVALIDMarc Espie
state and using it, leading to a simpler loop and less code. okay miod@
2007-07-29reindent, no code changeMarc Espie
2007-07-24reindent, no binary changeMarc Espie
2007-07-24reindent (no binary change)Marc Espie
2007-07-24reformat to 8 chars tab, zap unneeded comment (no binary change)Marc Espie
2007-07-24zap unused variableMarc Espie
2007-07-24simplify computations in the var module: instead of advancing a char *Marc Espie
and keeping track of a length, we just advance the char *, and ditch the length. We can still get the length at the end of the top-level functions to satisfy existing interfaces. Much simpler code, less error-prone. Okay millert@
2007-07-24move the code that grabs a value in Var_Parse in its own function,Marc Espie
get_expanded_value. Extend the code a bit to be much more thorough in case of a recursive expansion: shows exactly the cycle of variable names involved. okay millert@
2007-07-24change Var_ParseSkip API to increment the position instead of returning aMarc Espie
length, simplifies code. (warns a bit, symptom of some further issues to fix). okay millert@
2007-07-22make sure loop variables use their own buffers.Marc Espie
(causes .for loops to give weird results very infrequently, memory handling was slightly wrong, but not enough to break things thoroughly). noticed by naddy@
2007-07-21even though gcc doesn't reuse the utsname space, it could. Ensure MACHINEMarc Espie
stays defined.
2007-07-21zap unneeded stuffMarc Espie
2007-07-20big clean-up patch:Marc Espie
- rename a few functions in var.c to names that make more sense. - introduce Var_Deletei because it makes more sense. - rewrite .for loops to use a local LoopVar construct to avoid looking up more stuff. - reformat var.c to near K&R - rewrite most comments in var.c shown to a few people. millert@ gave me his okay since it passes through ports correctly.
2007-07-20reorder stuff in var.c so that the next patch is more readable.Marc Espie
2007-07-17comment snicky usage of strchrMarc Espie
2007-07-09espie, you have got to be jokingTheo de Raadt