mirror of
https://github.com/mirror/make.git
synced 2025-03-02 22:00:40 +08:00
Fix the origin regression test.
Remove sample code from make.h I accidentally left behind.
This commit is contained in:
parent
be5b33e876
commit
59306b0223
15
make.h
15
make.h
@ -387,21 +387,6 @@ struct floc
|
|||||||
#define STRING_SIZE_TUPLE(_s) (_s), (sizeof (_s)-1)
|
#define STRING_SIZE_TUPLE(_s) (_s), (sizeof (_s)-1)
|
||||||
|
|
||||||
|
|
||||||
/* Fancy processing for variadic functions in both ANSI and pre-ANSI
|
|
||||||
compilers. */
|
|
||||||
#if HAVE_STDARG_H
|
|
||||||
# include <stdarg.h>
|
|
||||||
# define VA_START(a, f) va_start(a, f)
|
|
||||||
#else
|
|
||||||
# if HAVE_VARARGS_H
|
|
||||||
# include <varargs.h>
|
|
||||||
# define VA_START(a, f) va_start(a)
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
#ifndef VA_START
|
|
||||||
error no variadic api
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* We have to have both stdarg.h or varargs.h AND v*printf or doprnt to use
|
/* We have to have both stdarg.h or varargs.h AND v*printf or doprnt to use
|
||||||
variadic versions of these functions. */
|
variadic versions of these functions. */
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ open(MAKEFILE,"> $makefile");
|
|||||||
|
|
||||||
print MAKEFILE <<EOF;
|
print MAKEFILE <<EOF;
|
||||||
foo := bletch garf
|
foo := bletch garf
|
||||||
auto_var = udef CC $homevar MAKE foo CFLAGS WHITE \@
|
auto_var = udef CC MAKETEST MAKE foo CFLAGS WHITE \@
|
||||||
av = \$(foreach var, \$(auto_var), \$(origin \$(var)) )
|
av = \$(foreach var, \$(auto_var), \$(origin \$(var)) )
|
||||||
override WHITE := BLACK
|
override WHITE := BLACK
|
||||||
all: auto
|
all: auto
|
||||||
|
Loading…
Reference in New Issue
Block a user