#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass literate-article
-\language default
+\language english
\inputencoding default
\fontscheme default
\graphics default
\newline
if (noweb_try(0))
\newline
- output_error(1, 0, "noweb");
+ output_error(1, err_line, "noweb");
\newline
}
\newline
\newline
"This can't happen:",
\newline
- "non-numeric line number in"
+ "non-numeric line number in"
+\newline
+};
+\newline
+
+\newline
+char *noweb_msgs_mimic_gcc[] = {
+\newline
+ ": unescaped << in documentation chunk"
\newline
};
\newline
< <\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
-> >, or any of the above strings.
+> >, or any of the above strings
\layout Scrap
<<Function bodies>>=
\newline
{
\newline
- char *s, *b;
+ char *s, *t, *b;
\newline
- int i;
+ int i;
\newline
-
+
\newline
b = buffer[buf_line];
+\newline
+ err_line = 0;
+\newline
+
+\newline
+ for (i=0; i<1; i++) {
+\newline
+ s = (char *)strstr (b, noweb_msgs_mimic_gcc[i]);
+\newline
+ if (s != NULL) {
+\newline
+ t = (char *)strchr(buffer[buf_line], ':');
+\newline
+ err_line = atoi(t+1);
+\newline
+ t = buffer[buf_line];
+\newline
+ ++s;
+\newline
+ while (*(t++) = *(s++));
+\newline
+ return 1;
+\newline
+ }
+\newline
+ }
\newline
s = (char *)strstr(b, "<<");
\newline
\newline
s = (char *)strstr(s+2, ">>");
\newline
- if (s != NULL)
+ if (s != NULL) {
\newline
return 1;
\newline
- } else {
+ }
\newline
- for (i=0; i<12; i++) {
+ } else {
\newline
- s = (char *)strstr (b, noweb_msgs[i]);
+ for (i = 0; i < 12; ++i) {
\newline
- if (s != NULL)
+ s = (char *)strstr (b, noweb_msgs[i]);
\newline
- break;
+ if (s != NULL) {
\newline
- }
+ return 1;
\newline
- if (s != NULL)
+ }
\newline
- return 1;
+ }
\newline
}
\newline
\newline
if (noweb_try(0))
\newline
- output_error(1, 0, "noweb");
+ output_error(1, err_line, "noweb");
\newline
else if (xlc_try(0))
\newline
\newline
if (last_buf_line == 0 && noweb_try(0)) {
\newline
- output_error(1, 0, "noweb");
+ output_error(1, err_line, "noweb");
\newline
continue;
\newline
#!/bin/sh
\newline
notangle -Rbuild-script $1 | sh
+\layout LyX-Code
+
\the_end