Mercurial > emacs
comparison lib-src/etags.c @ 74768:75794203c470
(C_entries): DEFUN names were longer by one: corrected.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Wed, 20 Dec 2006 10:41:29 +0000 |
parents | e3d189507be0 |
children | 96636bda161b |
comparison
equal
deleted
inserted
replaced
74767:89d09601ddf8 | 74768:75794203c470 |
---|---|
39 * If you want to add support for a new language, start by looking at the LUA | 39 * If you want to add support for a new language, start by looking at the LUA |
40 * language, which is the simplest. Alternatively, consider shipping a | 40 * language, which is the simplest. Alternatively, consider shipping a |
41 * configuration file containing regexp definitions for etags. | 41 * configuration file containing regexp definitions for etags. |
42 */ | 42 */ |
43 | 43 |
44 char pot_etags_version[] = "@(#) pot revision number is $Revision: 17.22 $"; | 44 char pot_etags_version[] = "@(#) pot revision number is 17.23"; |
45 | 45 |
46 #define TRUE 1 | 46 #define TRUE 1 |
47 #define FALSE 0 | 47 #define FALSE 0 |
48 | 48 |
49 #ifdef DEBUG | 49 #ifdef DEBUG |
3161 | 3161 |
3162 static void | 3162 static void |
3163 make_C_tag (isfun) | 3163 make_C_tag (isfun) |
3164 bool isfun; | 3164 bool isfun; |
3165 { | 3165 { |
3166 /* This function should never be called when token.valid is FALSE, but | 3166 /* This function is never called when token.valid is FALSE, but |
3167 we must protect against invalid input or internal errors. */ | 3167 we must protect against invalid input or internal errors. */ |
3168 if (!DEBUG && !token.valid) | 3168 if (!DEBUG && !token.valid) |
3169 return; | 3169 return; |
3170 | 3170 |
3171 if (token.valid) | 3171 if (token.valid) |
3491 if (defun) | 3491 if (defun) |
3492 { | 3492 { |
3493 off += 1; | 3493 off += 1; |
3494 len -= 1; | 3494 len -= 1; |
3495 } | 3495 } |
3496 len = toklen; | |
3497 linebuffer_setlen (&token_name, len); | 3496 linebuffer_setlen (&token_name, len); |
3498 strncpy (token_name.buffer, | 3497 strncpy (token_name.buffer, |
3499 newlb.buffer + off, len); | 3498 newlb.buffer + off, len); |
3500 token_name.buffer[len] = '\0'; | 3499 token_name.buffer[len] = '\0'; |
3501 if (defun) | 3500 if (defun) |