aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii2020-11-15 19:26:38 +0200
committerEli Zaretskii2020-11-15 19:26:38 +0200
commit286c63277287a52148d8b9a8b57979d1d04d2ed0 (patch)
tree2dd4c44d4cb49fb375f325affd21a270c566a872 /lib-src
parent4ec740866a65761fa1318400f299b2d591b05acf (diff)
downloademacs-286c63277287a52148d8b9a8b57979d1d04d2ed0.tar.gz
emacs-286c63277287a52148d8b9a8b57979d1d04d2ed0.zip
Reformat argument commentary in etags.c
* lib-src/etags.c (pfnote, consider_token, C_entries): Resurrect original format of comments to function arguments.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c36
1 files changed, 16 insertions, 20 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 8babe926db1..f761a7b7c33 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1973,14 +1973,13 @@ make_tag (const char *name, /* tag name, or NULL if unnamed */
1973 1973
1974/* Record a tag. */ 1974/* Record a tag. */
1975static void 1975static void
1976pfnote (char *name, bool is_func, char *linestart, ptrdiff_t linelen, 1976pfnote (char *name, /* tag name, or NULL if unnamed */
1977 intmax_t lno, intmax_t cno) 1977 bool is_func, /* tag is a function */
1978 /* tag name, or NULL if unnamed */ 1978 char *linestart, /* start of the line where tag is */
1979 /* tag is a function */ 1979 ptrdiff_t linelen, /* length of the line where tag is */
1980 /* start of the line where tag is */ 1980 intmax_t lno, /* line number */
1981 /* length of the line where tag is */ 1981 intmax_t cno) /* character number */
1982 /* line number */ 1982
1983 /* character number */
1984{ 1983{
1985 register node *np; 1984 register node *np;
1986 1985
@@ -2904,15 +2903,13 @@ static void make_C_tag (bool);
2904 */ 2903 */
2905 2904
2906static bool 2905static bool
2907consider_token (char *str, ptrdiff_t len, int c, int *c_extp, 2906consider_token (char *str, /* IN: token pointer */
2908 ptrdiff_t bracelev, ptrdiff_t parlev, bool *is_func_or_var) 2907 ptrdiff_t len, /* IN: token length */
2909 /* IN: token pointer */ 2908 int c, /* IN: first char after the token */
2910 /* IN: token length */ 2909 int *c_extp, /* IN, OUT: C extensions mask */
2911 /* IN: first char after the token */ 2910 ptrdiff_t bracelev, /* IN: brace level */
2912 /* IN, OUT: C extensions mask */ 2911 ptrdiff_t parlev, /* IN: parenthesis level */
2913 /* IN: brace level */ 2912 bool *is_func_or_var) /* OUT: function or variable found */
2914 /* IN: parenthesis level */
2915 /* OUT: function or variable found */
2916{ 2913{
2917 /* When structdef is stagseen, scolonseen, or snone with bracelev > 0, 2914 /* When structdef is stagseen, scolonseen, or snone with bracelev > 0,
2918 structtype is the type of the preceding struct-like keyword, and 2915 structtype is the type of the preceding struct-like keyword, and
@@ -3311,9 +3308,8 @@ perhaps_more_input (FILE *inf)
3311 * C syntax and adds them to the list. 3308 * C syntax and adds them to the list.
3312 */ 3309 */
3313static void 3310static void
3314C_entries (int c_ext, FILE *inf) 3311C_entries (int c_ext, /* extension of C */
3315 /* extension of C */ 3312 FILE *inf) /* input file */
3316 /* input file */
3317{ 3313{
3318 char c; /* latest char read; '\0' for end of line */ 3314 char c; /* latest char read; '\0' for end of line */
3319 char *lp; /* pointer one beyond the character `c' */ 3315 char *lp; /* pointer one beyond the character `c' */