aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii2022-11-27 15:43:39 +0200
committerEli Zaretskii2022-11-27 15:43:39 +0200
commit6f0906be5115e88dc70eb655326bccbbcfbb42b8 (patch)
tree2f0da4667b520ebb4000a23a324cbb1de40db8b4 /lib-src
parentd48bb4874bc6cd3e69c7a15fc3c91cc141025c51 (diff)
downloademacs-6f0906be5115e88dc70eb655326bccbbcfbb42b8.tar.gz
emacs-6f0906be5115e88dc70eb655326bccbbcfbb42b8.zip
; Fix last change in etags.c
* lib-src/etags.c (cleanup_tags_file): Renamed from clean_matched_file_tag. * test/manual/etags/CTAGS.good_update: * test/manual/etags/CTAGS.good_crlf: Update to match the test.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index b6f51dfa83f..d1d20858cdd 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -399,7 +399,7 @@ static void free_fdesc (fdesc *);
399static void pfnote (char *, bool, char *, ptrdiff_t, intmax_t, intmax_t); 399static void pfnote (char *, bool, char *, ptrdiff_t, intmax_t, intmax_t);
400static void invalidate_nodes (fdesc *, node **); 400static void invalidate_nodes (fdesc *, node **);
401static void put_entries (node *); 401static void put_entries (node *);
402static void clean_matched_file_tag (char const * const, char const * const); 402static void cleanup_tags_file (char const * const, char const * const);
403 403
404static void do_move_file (const char *, const char *); 404static void do_move_file (const char *, const char *);
405static char *concat (const char *, const char *, const char *); 405static char *concat (const char *, const char *, const char *);
@@ -1392,7 +1392,7 @@ main (int argc, char **argv)
1392 default: 1392 default:
1393 continue; /* the for loop */ 1393 continue; /* the for loop */
1394 } 1394 }
1395 clean_matched_file_tag (tagfile, argbuffer[i].what); 1395 cleanup_tags_file (tagfile, argbuffer[i].what);
1396 } 1396 }
1397 append_to_tagfile = true; 1397 append_to_tagfile = true;
1398 } 1398 }
@@ -1442,7 +1442,7 @@ main (int argc, char **argv)
1442 * Equivalent to: mv tags OTAGS;grep -Fv ' filename ' OTAGS >tags;rm OTAGS 1442 * Equivalent to: mv tags OTAGS;grep -Fv ' filename ' OTAGS >tags;rm OTAGS
1443 */ 1443 */
1444static void 1444static void
1445clean_matched_file_tag (const char* tagfile, const char* match_file_name) 1445cleanup_tags_file (const char* tagfile, const char* match_file_name)
1446{ 1446{
1447 FILE *otags_f = fopen ("OTAGS", "wb"); 1447 FILE *otags_f = fopen ("OTAGS", "wb");
1448 FILE *tag_f = fopen (tagfile, "rb"); 1448 FILE *tag_f = fopen (tagfile, "rb");
@@ -7275,7 +7275,8 @@ get_lispy_tag (register char *bp)
7275 * appended to `filebuf'. 7275 * appended to `filebuf'.
7276 */ 7276 */
7277static ptrdiff_t 7277static ptrdiff_t
7278readline_internal (linebuffer *lbp, FILE *stream, char const *filename, const bool leave_cr) 7278readline_internal (linebuffer *lbp, FILE *stream, char const *filename,
7279 const bool leave_cr)
7279{ 7280{
7280 char *buffer = lbp->buffer; 7281 char *buffer = lbp->buffer;
7281 char *p = lbp->buffer; 7282 char *p = lbp->buffer;