Up to [local] / src / usr.bin / make
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.49 / (download) - annotate - [select for diffs], Mon Sep 4 11:35:11 2023 UTC (9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
HEAD
Changes since 1.48: +26 -397 lines
Diff to previous 1.48 (colored) to selected 1.39 (colored)
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@
Revision 1.48 / (download) - annotate - [select for diffs], Sun Aug 30 12:16:04 2020 UTC (3 years, 9 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.47: +13 -16 lines
Diff to previous 1.47 (colored) to selected 1.39 (colored)
Fix :S with anchors and replacement gnezdo noticed that :S/old_string/new_string/ variable modifiers such as :S/^sth/&/ and :S/sth$/&/ with an anchor in the old_string and an & in the new_string don't work as documented (and expected) since they replace & with old_string including the anchors. This is because get_spatternarg() deals with skipping the anchors in pattern->lhs only after having replaced any '&' in the buffer that will eventually become new_string with pattern->lhs. Fix this by moving the logic of skipping the anchors from get_spatternarg() into common_get_patternarg() so it is done before & is handled. ok millert
Revision 1.47 / (download) - annotate - [select for diffs], Mon Jul 10 07:10:29 2017 UTC (6 years, 11 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.39 (colored)
Also check for NUL termination at the first character of tstr in the error path of VarModifiers_Apply(). This prevents a sporadic crash in make's regress target t41. OK espie@
Revision 1.46 / (download) - annotate - [select for diffs], Fri Feb 24 23:38:47 2017 UTC (7 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.45: +31 -11 lines
Diff to previous 1.45 (colored) to selected 1.39 (colored)
add support for variables in the lhs of SYSV modifiers. lack of support noted by naddy@ source, xenocara, and ports still build without a hitch. okay naddy@
Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 25 14:17:45 2017 UTC (7 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.39 (colored)
off-by-one, leading to segfaults. Trivial fix. reported by jasper@
Revision 1.44 / (download) - annotate - [select for diffs], Sun Oct 2 17:42:31 2016 UTC (7 years, 8 months ago) by tb
Branch: MAIN
Changes since 1.43: +8 -4 lines
Diff to previous 1.43 (colored) to selected 1.39 (colored)
Avoid two printf("%s", NULL) with 'make -d v'. improvements & ok espie, earlier version ok deraadt
Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 15 06:19:22 2015 UTC (8 years, 6 months ago) by daniel
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.42: +1 -13 lines
Diff to previous 1.42 (colored) to selected 1.39 (colored)
unifdef MAKE_BOOTSTRAP now that Makefile.boot is gone. ok espie@
Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored) to selected 1.39 (colored)
Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope ok krw millert
Revision 1.41 / (download) - annotate - [select for diffs], Fri Jan 23 22:35:58 2015 UTC (9 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.40: +11 -11 lines
Diff to previous 1.40 (colored) to selected 1.39 (colored)
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@
Revision 1.40 / (download) - annotate - [select for diffs], Fri Jan 23 13:18:40 2015 UTC (9 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.39: +15 -14 lines
Diff to previous 1.39 (colored)
remove a bunch of dangerous casts (useless casts from void * to something else, in some cases by adding extra temporary variables. IMO, it's much better practice to do void *a; int *p = a; *p = 42; rather than void *a; *(int *)a = 42; okay miod@... to be revisited for some possible const additions later.
Revision 1.39 / (download) - annotate - [selected], Sun Sep 21 13:43:25 2014 UTC (9 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored)
plug a small memory leak, fairly infrequent.
Revision 1.38 / (download) - annotate - [select for diffs], Sun May 18 08:08:50 2014 UTC (10 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.39 (colored)
a bit more reallocarray (and kill ecalloc, which isn't used) okay chl@
Revision 1.37 / (download) - annotate - [select for diffs], Mon May 12 19:11:19 2014 UTC (10 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.39 (colored)
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.
Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 22 08:26:31 2014 UTC (10 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.39 (colored)
effectively use emult_realloc, okay guenther@
Revision 1.35 / (download) - annotate - [select for diffs], Fri Nov 22 15:47:35 2013 UTC (10 years, 6 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) to selected 1.39 (colored)
wrappers for is*/to* that make damn sure their arguments are cast to unsigned chars. okay deraadt@
Revision 1.34 / (download) - annotate - [select for diffs], Tue Nov 12 17:44:03 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.39 (colored)
Do not use a char as index, unless first making it unsigned. (signed char, ya know) ok espie
Revision 1.33 / (download) - annotate - [select for diffs], Thu Oct 18 17:54:43 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored) to selected 1.39 (colored)
numerous error message fixes: - do ^C checking differently: don't record sent signals, but when jobs die, recheck whether we received/have pending a INT/QUIT/TERM/HUP signal. Then don't display our process group "normally", instead group together everything dying by signal/shell dying by signal (just give the target names). - make certain we always handle signals before dying from "other conditions" - have the parser messages look more like normal messages - remove double error messages from some parser errors - make sure unclosed variables ARE errors when some modifiers are present - keep track of the base directory we're run from, so that submakes can get shortened directories... - make sure the whole error message including silent command fits into a reasonable length. okay millert@
Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 12 13:20:11 2012 UTC (11 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.31: +13 -2 lines
Diff to previous 1.31 (colored) to selected 1.39 (colored)
fix infinite loops on regexps that match the empty word, which is especially bad during runtime as we trap ^C. For instance ${A:C/-*//g}. Problem found by rpe@ Do the same as other modern tools: advance by one char and repeat, so that there's at most one empty word match at each position. okay millert@
Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 21 07:55:20 2012 UTC (11 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.39 (colored)
major overhaul of the way make handle jobs, inspired by dpb: instead of forking a "job" per target, and having that job further fork separate commands, have make maintain a list of jobs, indexed by pid of currently running commands, and handle process termination continuation-style. This has lots of benefits: - make is responsible for most printing, so we no longer need pipes nor job control: make -j jobs see the tty. - no more special-casing for jobs that don't really execute anything. - unify code for make -jn and make -B, including signal handlers and job waiting. So make -n, make -q, +cmd now run commands in the same way in all cases. - unified more accurate error-reporting, as make knows precisely which command failed. Commands are tagged with their lines, and we display failing commands in silent mode. - fine-grained "expensive" command handling (recursion limiter). Do it per-command instead of per-target. Moreover, signal response is now simpler, as we just block the signals in a small critical sections, test for events, and sigpause (thanks a lot to guenther@ and millert@), so running make is now almost always paused without any busy-waiting. Thanks to everyone who tested and gave input.
Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 16 14:18:25 2011 UTC (12 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored) to selected 1.39 (colored)
recommit, now that release is done (handle sysv if bsd is incorrect, may make more extensive plans later)
Revision 1.29 / (download) - annotate - [select for diffs], Sat Jul 30 21:02:13 2011 UTC (12 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored) to selected 1.39 (colored)
deemed unsafe by theo, will wait after 5.0
Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 29 13:39:00 2011 UTC (12 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored) to selected 1.39 (colored)
systemV trumps our modifiers. fixes a case encountered by jeremy@ full fix not prudent at this time. okay millert@, otto@
Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 19 19:46:44 2010 UTC (13 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored) to selected 1.39 (colored)
Correct $OpenBSD$ stuff
Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 19 19:30:38 2010 UTC (13 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.25: +47 -11 lines
Diff to previous 1.25 (colored) to selected 1.39 (colored)
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., toto: @for i in ${VAR:QL} ...
Revision 1.25 / (download) - annotate - [select for diffs], Sat Nov 3 15:42:11 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.39 (colored)
fix some lint FALLTHROUGH
Revision 1.24 / (download) - annotate - [select for diffs], Mon Sep 17 09:44:20 2007 UTC (16 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) to selected 1.39 (colored)
zap more spaces at end of line
Revision 1.23 / (download) - annotate - [select for diffs], Mon Sep 17 09:28:36 2007 UTC (16 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.22: +20 -20 lines
Diff to previous 1.22 (colored) to selected 1.39 (colored)
kill extra spaces at end of line
Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 16 12:02:38 2007 UTC (16 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.21: +763 -754 lines
Diff to previous 1.21 (colored) to selected 1.39 (colored)
reindent varmodifiers.c, no binary change
Revision 1.21 / (download) - annotate - [select for diffs], Sun Sep 16 12:01:11 2007 UTC (16 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.39 (colored)
remove warnings
Revision 1.20 / (download) - annotate - [select for diffs], Sun Sep 16 09:46:14 2007 UTC (16 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.19: +0 -0 lines
Diff to previous 1.19 (colored) to selected 1.39 (colored)
remove dead code: #define RECHECK is always on
Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 30 09:51:53 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored) to selected 1.39 (colored)
everywhere except in Var_Parse, we always add/append variables to the 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@
Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 24 18:58:48 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored) to selected 1.39 (colored)
simplify computations in the var module: instead of advancing a char * 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@
Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 24 18:56:15 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.16: +0 -0 lines
Diff to previous 1.16 (colored) to selected 1.39 (colored)
move the code that grabs a value in Var_Parse in its own function, 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@
Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 24 18:52:47 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.15: +0 -0 lines
Diff to previous 1.15 (colored) to selected 1.39 (colored)
change Var_ParseSkip API to increment the position instead of returning a length, simplifies code. (warns a bit, symptom of some further issues to fix). okay millert@
Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 20 12:32:45 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.14: +10 -9 lines
Diff to previous 1.14 (colored) to selected 1.39 (colored)
big clean-up patch: - 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.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 15 20:43:23 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored) to selected 1.39 (colored)
fixes 4286. back & forth between fgs and me.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Apr 7 13:11:36 2004 UTC (20 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.12: +57 -204 lines
Diff to previous 1.12 (colored) to selected 1.39 (colored)
ISO function declarations, trim a few comments, rename a few variables to more explicit/more consistent names. okay otto@
Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 7 18:33:08 2003 UTC (20 years, 8 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.39 (colored)
- check if result is valid before using it. - correctly set *freePtr, not freePtr. input and ok espie@.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:12 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.10: +2 -6 lines
Diff to previous 1.10 (colored) to selected 1.39 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 7 12:19:46 2001 UTC (22 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.9: +16 -4 lines
Diff to previous 1.9 (colored) to selected 1.39 (colored)
Repair regular expression substitution. Even though the code can share some common parts, there is an important difference I had missed.
Revision 1.9 / (download) - annotate - [select for diffs], Wed May 23 12:34:52 2001 UTC (23 years ago) by espie
Branch: MAIN
Changes since 1.8: +165 -162 lines
Diff to previous 1.8 (colored) to selected 1.39 (colored)
Mostly clean-up: - cut up those huge include files into separate interfaces for all modules. Put the interface documentation there, and not with the implementation. - light-weight includes for needed concrete types (lst_t.h, timestamp_t.h). - cut out some more logically separate parts: cmd_exec, varname, parsevar, timestamp. - put all error handling functions together, so that we will be able to clean them up. - more systematic naming: functioni to handle interval, function to handle string. - put the init/end code apart to minimize coupling. - kill weird types like ReturnStatus and Boolean. Use standard bool (with a fallback for non-iso systems) - better interface documentation for lots of subsystems. As a result, make compilation goes somewhat faster (5%, even considering the largish BSD copyrights to read). The corresponding preprocessed source goes down from 1,5M to 1M. A few minor code changes as well: Parse_DoVar is no longer destructive. Parse_IsVar functionality is folded into Parse_DoVar (as it knows what an assignment is), a few more interval handling functions. Avoid calling XXX_End when they do nothing, just #define XXX_End to nothing. Parse_DoVar is slightly more general: it will handle compound assignments as long as they make sense, e.g., VAR +!= cmd will work. As a side effect, VAR++=value now triggers an error (two + in assignment). - this stuff doesn't occur in portable Makefiles. - writing VAR++ = value or VAR+ +=value disambiguates it. - this is a good thing, it uncovered a bug in bsd.port.mk. Tested by naddy@. Okayed millert@. I'll handle the fallback if there is any. This went through a full make build anyways, including isakmpd (without mickey's custom binutils, as he didn't see fit to share it with me).
Revision 1.8 / (download) - annotate - [select for diffs], Mon May 7 22:59:33 2001 UTC (23 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.7: +40 -34 lines
Diff to previous 1.7 (colored) to selected 1.39 (colored)
some complex situations need those functions to be reentrant, hence no static VarPatterns... Old make could use dynamic variables because everything was jumbled into one single function.
Revision 1.7 / (download) - annotate - [select for diffs], Thu May 3 13:41:13 2001 UTC (23 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.6: +1072 -787 lines
Diff to previous 1.6 (colored) to selected 1.39 (colored)
Synch with my current work. Numerous changes: - generate can build several tables - style cleanup - statistics code - use variable names throughout (struct Name) - recursive variables everywhere - faster parser (pass buffer along instead of allocating multiple copies) - correct parser. Handles comments everywhere, and ; correctly - more string intervals - simplified dir.c, less recursion. - extended for loops - sinclude() - finished removing extra junk from Lst_* - handles ${@D} and friends in a simpler way - cleaned up and modular VarModifiers handling. - recognizes some gnu Makefile usages and errors out about them. Additionally, some extra functionality is defined by FEATURES. The set of functionalities is currently hardcoded to OpenBSD defaults, but this may include support for some NetBSD extensions, like ODE modifiers. Backed by miod@ and millert@, who finally got sick of my endless patches...
Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 14 13:36:46 2000 UTC (23 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.5: +33 -33 lines
Diff to previous 1.5 (colored) to selected 1.39 (colored)
Clean-up, systematic use of UNUSED, white space...
Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 14 13:35:38 2000 UTC (23 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.4: +20 -18 lines
Diff to previous 1.4 (colored) to selected 1.39 (colored)
Two new functions: iterate_words: light-weight equivalent to brk_string, which does not need to copy the string, and does not do \ interpretation which are only needed for the string. escape_dup: handles escape sequence in a systematic way. This speeds up variable modifiers. This also makes .for loops more consistent, as they use the same definition of `a word' as the rest of make.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 24 21:57:28 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.39 (colored)
Oops.
Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 17 23:54:26 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.2: +9 -9 lines
Diff to previous 1.2 (colored) to selected 1.39 (colored)
FALLTHRU -> FALLTHROUGH, requested by miod@ and style(9)
Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 17 23:26:51 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.1: +11 -5 lines
Diff to previous 1.1 (colored) to selected 1.39 (colored)
- let VarModifiers_Apply accept NULL string gracefully, - simplify Var_Parse: use varfind, then leverage on the result to recognize `special case' dynamic parsing. VarModifiers_Apply need to be called on NULL strings, to be able to parse modifiers applied to non-existent variables. (Alternately, we could call VarModifiers_Apply on a dummy string, but this is less efficient).
Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 17 23:09:06 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Diff to selected 1.39 (colored)
Major unobfuscation: split var modifiers handling to a separate file. This does finally make var handling somewhat readable.