Mercurial > emacs
comparison lib-src/etags.c @ 10990:c0ceaa45ded7
* etags.c (process_file): free (filename) after using it.
(readline_internal): Do not access the char before start of line.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Mon, 13 Mar 1995 10:47:58 +0000 |
parents | 32f98b512dd9 |
children | 3cf67df24e7f |
comparison
equal
deleted
inserted
replaced
10989:f4693d66f90c | 10990:c0ceaa45ded7 |
---|---|
29 #endif | 29 #endif |
30 * | 30 * |
31 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. | 31 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. |
32 */ | 32 */ |
33 | 33 |
34 char pot_etags_version[] = "@(#) pot revision number is 11.25"; | 34 char pot_etags_version[] = "@(#) pot revision number is 11.26"; |
35 | 35 |
36 #define TRUE 1 | 36 #define TRUE 1 |
37 #define FALSE 0 | 37 #define FALSE 0 |
38 #ifndef DEBUG | 38 #ifndef DEBUG |
39 # define DEBUG FALSE | 39 # define DEBUG FALSE |
1042 /* file is a filename relative to cwd. Make it relative | 1042 /* file is a filename relative to cwd. Make it relative |
1043 to the directory of the tags file. */ | 1043 to the directory of the tags file. */ |
1044 filename = relative_filename (file, tagfiledir); | 1044 filename = relative_filename (file, tagfiledir); |
1045 } | 1045 } |
1046 fprintf (tagf, "\f\n%s,%d\n", filename, total_size_of_entries (head)); | 1046 fprintf (tagf, "\f\n%s,%d\n", filename, total_size_of_entries (head)); |
1047 free (filename); | |
1047 put_entries (head); | 1048 put_entries (head); |
1048 free_tree (head); | 1049 free_tree (head); |
1049 head = NULL; | 1050 head = NULL; |
1050 } | 1051 } |
1051 } | 1052 } |
3446 chars_deleted = 0; | 3447 chars_deleted = 0; |
3447 break; | 3448 break; |
3448 } | 3449 } |
3449 if (c == '\n') | 3450 if (c == '\n') |
3450 { | 3451 { |
3451 if (p[-1] == '\r' && p > buffer) | 3452 if (p > buffer && p[-1] == '\r') |
3452 { | 3453 { |
3453 *--p = '\0'; | 3454 *--p = '\0'; |
3454 chars_deleted = 2; | 3455 chars_deleted = 2; |
3455 } | 3456 } |
3456 else | 3457 else |