projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update.
[chise/xemacs-chise.git-]
/
lib-src
/
make-docfile.c
diff --git
a/lib-src/make-docfile.c
b/lib-src/make-docfile.c
index
2ccf4eb
..
4cbe8c2
100644
(file)
--- a/
lib-src/make-docfile.c
+++ b/
lib-src/make-docfile.c
@@
-477,6
+477,12
@@
write_c_args (FILE *out, const char *func, char *buff, int minargs,
in_ident = 0;
just_spaced = 0;
}
in_ident = 0;
just_spaced = 0;
}
+ /* If the character is carriage return, escape it for the C compiler. */
+ else if (c == '\n')
+ {
+ putc('\\', out);
+ putc('\n', out);
+ }
else if (c != ' ' || ! just_spaced)
{
if (c >= 'a' && c <= 'z')
else if (c != ' ' || ! just_spaced)
{
if (c >= 'a' && c <= 'z')
@@
-509,7
+515,7
@@
scan_c_file (const char *filename, const char *mode)
register int defvarperbufferflag = 0;
register int defvarflag;
int minargs, maxargs;
register int defvarperbufferflag = 0;
register int defvarflag;
int minargs, maxargs;
- int l = strlen (filename);
+ size_t l = strlen (filename);
char f[MAXPATHLEN];
if (l > sizeof (f))
char f[MAXPATHLEN];
if (l > sizeof (f))