diff options
author | Mark Murray <markm@FreeBSD.org> | 2003-11-14 08:06:58 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2003-11-14 08:06:58 +0000 |
commit | e78baaa1739cb7f3ccfb716226e061dc1f9b0c19 (patch) | |
tree | b716379eaa3786d042d9e58f2f7033a4c58e6af9 /devel/noweb/files/patch-c_modules.nw | |
parent | Add a missing ':' to the ESDPLUGIN PLIST_SUB. I missed this in my commit (diff) |
Small bug fix. This is of strong relevance to the Axiom port which
I hope to commit in a week or three.
Notes
Notes:
svn path=/head/; revision=93937
Diffstat (limited to 'devel/noweb/files/patch-c_modules.nw')
-rw-r--r-- | devel/noweb/files/patch-c_modules.nw | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/noweb/files/patch-c_modules.nw b/devel/noweb/files/patch-c_modules.nw new file mode 100644 index 000000000000..c46d2d83ca8a --- /dev/null +++ b/devel/noweb/files/patch-c_modules.nw @@ -0,0 +1,21 @@ +--- c/modules.nw.orig Wed Mar 28 14:44:00 2001 ++++ c/modules.nw Mon Nov 10 09:25:05 2003 +@@ -197,11 +197,17 @@ + out as a special case. + This change probably blows the case where the module being expanded is + empty. ++ ++If the lookup fails then the module (or chunk) is an undefined name. ++We complain about it but want to output the original source. ++We just wrap it in the bogus chunk name in the angle brackets ++that it must have had in the input and output it. (Tim Daly Nov 13, 2002) + <<expand a module>>= + newmod = lookup(p->contents); + if (newmod==NULL) { +- errormsg (Error, "undefined chunk name: @<<%s@>>", p->contents); ++ errormsg (Error, "ignoring undefined chunk name: @<<%s@>>", p->contents); + error=Error; ++ printf("@<<%s@>>",p->contents); + } else { + int retcode; + if (*locformat == 0 && partial_distance == 0) { |