Skip to content

Commit d4db771

Browse files
committed
patch 8.0.0081
Problem: Inconsistent function names. Solution: Rename do_cscope to ex_cscope. Clean up comments.
1 parent b6be3ea commit d4db771

File tree

5 files changed

+46
-107
lines changed

5 files changed

+46
-107
lines changed

src/ex_cmds.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ EX(CMD_cquit, "cquit", ex_cquit,
391391
EX(CMD_crewind, "crewind", ex_cc,
392392
RANGE|NOTADR|COUNT|TRLBAR|BANG,
393393
ADDR_LINES),
394-
EX(CMD_cscope, "cscope", do_cscope,
394+
EX(CMD_cscope, "cscope", ex_cscope,
395395
EXTRA|NOTRLCOM|XFILE,
396396
ADDR_LINES),
397-
EX(CMD_cstag, "cstag", do_cstag,
397+
EX(CMD_cstag, "cstag", ex_cstag,
398398
BANG|TRLBAR|WORD1,
399399
ADDR_LINES),
400400
EX(CMD_cunmap, "cunmap", ex_unmap,
@@ -745,7 +745,7 @@ EX(CMD_lchdir, "lchdir", ex_cd,
745745
EX(CMD_lclose, "lclose", ex_cclose,
746746
RANGE|NOTADR|COUNT|TRLBAR,
747747
ADDR_LINES),
748-
EX(CMD_lcscope, "lcscope", do_cscope,
748+
EX(CMD_lcscope, "lcscope", ex_cscope,
749749
EXTRA|NOTRLCOM|XFILE,
750750
ADDR_LINES),
751751
EX(CMD_ldo, "ldo", ex_listdo,
@@ -1249,7 +1249,7 @@ EX(CMD_scriptnames, "scriptnames", ex_scriptnames,
12491249
EX(CMD_scriptencoding, "scriptencoding", ex_scriptencoding,
12501250
WORD1|TRLBAR|CMDWIN,
12511251
ADDR_LINES),
1252-
EX(CMD_scscope, "scscope", do_scscope,
1252+
EX(CMD_scscope, "scscope", ex_scscope,
12531253
EXTRA|NOTRLCOM,
12541254
ADDR_LINES),
12551255
EX(CMD_set, "set", ex_set,

src/ex_docmd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ static void ex_popup(exarg_T *eap);
243243
# define ex_helpfind ex_ni
244244
#endif
245245
#ifndef FEAT_CSCOPE
246-
# define do_cscope ex_ni
247-
# define do_scscope ex_ni
248-
# define do_cstag ex_ni
246+
# define ex_cscope ex_ni
247+
# define ex_scscope ex_ni
248+
# define ex_cstag ex_ni
249249
#endif
250250
#ifndef FEAT_SYN_HL
251251
# define ex_syntax ex_ni
@@ -10427,7 +10427,7 @@ ex_tag_cmd(exarg_T *eap, char_u *name)
1042710427
#ifdef FEAT_CSCOPE
1042810428
if (p_cst && *eap->arg != NUL)
1042910429
{
10430-
do_cstag(eap);
10430+
ex_cstag(eap);
1043110431
return;
1043210432
}
1043310433
#endif

0 commit comments

Comments
 (0)