diff options
author | Roland McGrath <roland@gnu.org> | 2002-04-19 21:03:31 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-04-19 21:03:31 +0000 |
commit | 59652c09a871b0a635b1ac9d265252a3db4e4064 (patch) | |
tree | e13f8e25bcf091d1587bb86b8f3ad489276abf7e | |
parent | 0fdd0e025a97e0ad27e537638e784b801d6c1ff5 (diff) |
2002-04-19 Roland McGrath <roland@frob.com>
* gensym.awk: Emit \n\ at the end of lines inside strings.
* Makefile.in (%.symc: %.sym): Depend on gensym.awk.
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | gensym.awk | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in index 6302253..2212756 100644 --- a/Makefile.in +++ b/Makefile.in @@ -426,8 +426,8 @@ vpath configure $(srcdir) # # Building foo.h from foo.sym: -%.symc: %.sym - $(AWK) -f $(srcdir)/gensym.awk $< >$*.symc +%.symc: %.sym $(srcdir)/gensym.awk + $(AWK) -f $(word 2,$^) $< > $@ %.symc.o: %.symc $(CC) -S $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS-$@) -x c -o $@ $< %.h: %.symc.o @@ -34,7 +34,7 @@ BEGIN { # Take an arbitrarily complex C symbol or expression and constantize it. /^expr/ { - print "__asm (\""; + print "__asm (\"\\n\\"; if ($3 == "") printf "* %s mAgIc%%0\" : : \"i\" (%s));\n", $2, $2; else @@ -43,7 +43,7 @@ BEGIN { # Output a symbol defining the size of a C structure. /^size/ { - print "__asm (\""; + print "__asm (\"\\n\\"; if ($4 == "") printf "* %s_SIZE mAgIc%%0\" : : \"i\" (sizeof(struct %s)));\n", toupper($3), $2; @@ -54,7 +54,7 @@ BEGIN { # Output a symbol defining the byte offset of an element of a C structure. /^offset/ { - print "__asm (\""; + print "__asm (\"\\n\\"; if ($5 == "") { printf "* %s_%s mAgIc%%0\" : : \"i\" (&((struct %s*)0)->%s));\n", @@ -75,4 +75,3 @@ BEGIN { END { print "}" } - |