| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
this clear by constifying the return value.
Obtained from: DragonFlyBSD
Notes:
svn path=/head/; revision=146581
|
| |
|
|
|
|
|
|
|
| |
to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
Notes:
svn path=/head/; revision=146580
|
| |
|
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.237)
Notes:
svn path=/head/; revision=146145
|
| |
|
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.233)
Notes:
svn path=/head/; revision=146141
|
| |
|
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.232)
Notes:
svn path=/head/; revision=146134
|
| |
|
|
|
|
|
|
|
| |
from globals.h into var.h.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.209)
Notes:
svn path=/head/; revision=146062
|
| |
|
|
|
|
|
|
|
|
|
| |
context (and only in one place to substitute the .for variable). Therefor
there is no need to pass the context as a parameter.
Patch: 7.197
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146048
|
| |
|
|
|
|
|
|
| |
Patch: 7.196
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146047
|
| |
|
|
|
|
|
|
|
|
| |
that are now used only in var.c from var.h to var.c
Patches: 7.193,7.194
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146045
|
| |
|
|
|
|
|
|
| |
Patch: 7.192
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146039
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
take everything after -- as either a macro assignment or a target.
Note that make still reorders arguments before --: anything starting
with a dash is considered an option, anything which contains an equal
sign is considered a macro assignment and everything else a target.
This still is not POSIX with regard to the options, but it will probably
not change because it has been make's behaviour for ages.
Add a new function Var_Match() that correctly skips a macro call by just
doing the same as Var_Subst() but without producing output. This will help
making the parser more robust.
Patches: 7.190,7.191
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146038
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
only one variable and Var_Subst() which substitutes all. Split out the
test whether a variable should not be expanded into match_var().
Make access to the input string consistently using str[]. Remove two
unused functions: Var_GetTail() and Var_GetHead().
Patches: 7.184-7.189
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146027
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
make macro into the environment of programs executed by make. This
has approximately the same function as gmake's export directive.
The form of a pseudo target was deliberately choosen to minimize work
for POSIX compatibility (Makefiles are not allowed to use any targets
starting with a dot and consisting only of uppercase letters except those
specified in the standard when they want POSIX compatible behaviour, so
such a Makefile can never contain .EXPORTVAR.)
Change the handling of macros coming from the environment: instead
of asking the environment for each variable we could not find otherwise
put all the environment variables in a special variable environment just
at start up.
This has been tested on the ports cluster by kris.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=145971
|
| |
|
|
|
|
|
|
|
|
|
| |
Store a Buf object in struct VarPattern instead of a char * and a length.
Patch: 7.158
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143966
|
| |
|
|
|
|
|
|
|
|
|
| |
out common code.
Patch: 7.156
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143964
|
| |
|
|
|
|
|
|
|
| |
Patch: 7.155
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143963
|
| |
|
|
|
|
|
|
|
| |
Patch: 7.154 (partly)
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143962
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Remove unreachable code for VAR_NOSUBST - it was never set.
Replace redundant code with calls to VarGetPattern().
Patch: 7.143-7.145
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143955
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143377
|
| |
|
|
|
|
|
|
|
| |
Patch: 0.18, 0.8, 7.110
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=143276
|
| |
|
|
|
|
|
|
|
|
|
| |
of a char *.
Patch: 7.49
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=142457
|
| |
|
|
|
|
|
|
|
| |
where appropriate.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=141460
|
| |
|
|
|
|
|
|
|
| |
until Var_Subst is fixed.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=141268
|
| |
|
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=141252
|
| |
|
|
|
|
|
|
|
|
| |
itself. This will ease constification (think of what 'const Ptr foo'
means if Ptr is a pointer to a struct).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=141133
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that get included just where they are needed. All headers include the
headers that they need to compile (just with an empty .c file). Sort
includes alphabetically where apropriate and fix some duplicate commenting
for struct Job, struct GNode and struct Shell by removing one version and
inlining the comments into the structure declaration (the comments have been
somewhat outdated).
This patch does not contain functional changes (checked with md5).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=141104
|
| |
|
|
|
|
|
| |
to change to size_t in a couple of other places too.
Notes:
svn path=/head/; revision=138346
|
| |
|
|
|
|
|
|
|
|
|
| |
and the sizeof operator, missing empty lines, void casts, extra empty lines.
Checked by: diff on make *.o lst.lib/*.o
Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly)
Notes:
svn path=/head/; revision=138232
|
|
|
to var_modify.c, for readability. constify some low hanging fruit (string
manipulation functions) and the upper layers appropriately. No longer use
the private strstr(3) implementation, while changing string code.
Tested by: lots of successful make buildworld.
Notes:
svn path=/head/; revision=106106
|