Commit 554d39be authored by Juanma Barranquero's avatar Juanma Barranquero

* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".

parent 1eb5ca1c
2010-07-23 Juanma Barranquero <lekktu@gmail.com>
* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
2010-07-20 Juanma Barranquero <lekktu@gmail.com>
* emacsclient.c (get_current_dir_name, w32_get_resource)
......
......@@ -488,7 +488,7 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs)
/* In C code, `default' is a reserved word, so we spell it
`defalt'; unmangle that here. */
if (strncmp (ident_start, "defalt", ident_length) == 0)
if (ident_length == 6 && strncmp (ident_start, "defalt", 6) == 0)
fprintf (out, "DEFAULT");
else
while (ident_length-- > 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment