diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2014-04-29 21:56:49 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-29 17:51:09 -0300 |
commit | 2e4613aecc712eb5e893d341da5f571f932376d5 (patch) | |
tree | 41f6b1c751181319d88cc0fdb7aed61bf732701d /src/if_cscope.c | |
parent | 046debb9359c85e2f2bc5c6d9481dac0025c6a80 (diff) | |
download | rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.gz rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.bz2 rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.zip |
Remove NUL macro
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 2f283774fc..dc0768f278 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -181,11 +181,11 @@ void set_context_in_cscope_cmd(expand_T *xp, char_u *arg, cmdidx_T cmdidx) ? EXP_SCSCOPE_SUBCMD : EXP_CSCOPE_SUBCMD; /* (part of) subcommand already typed */ - if (*arg != NUL) { + if (*arg != '\0') { p = skiptowhite(arg); - if (*p != NUL) { /* past first word */ + if (*p != '\0') { /* past first word */ xp->xp_pattern = skipwhite(p); - if (*skiptowhite(xp->xp_pattern) != NUL) + if (*skiptowhite(xp->xp_pattern) != '\0') xp->xp_context = EXPAND_NOTHING; else if (STRNICMP(arg, "add", p - arg) == 0) xp->xp_context = EXPAND_FILES; @@ -262,7 +262,7 @@ void do_cstag(exarg_T *eap) { int ret = FALSE; - if (*eap->arg == NUL) { + if (*eap->arg == '\0') { (void)EMSG(_("E562: Usage: cstag <ident>")); return; } @@ -598,7 +598,7 @@ static int cs_check_for_connections(void) static int cs_check_for_tags(void) { - return p_tags[0] != NUL && curbuf->b_p_tags != NULL; + return p_tags[0] != '\0' && curbuf->b_p_tags != NULL; } /* cs_check_for_tags */ /* @@ -960,7 +960,7 @@ static int cs_find(exarg_T *eap) * spaces to correctly display the quickfix/location list window's title. */ for (i = 0; i < eap_arg_len; ++i) - if (NUL == eap->arg[i]) + if ('\0' == eap->arg[i]) eap->arg[i] = ' '; return cs_find_common(opt, pat, eap->forceit, TRUE, @@ -1881,11 +1881,11 @@ static int cs_read_prompt(int i) if (buf != NULL) { /* append character to the message */ buf[bufpos++] = ch; - buf[bufpos] = NUL; + buf[bufpos] = '\0'; if (bufpos >= epromptlen && strcmp(&buf[bufpos - epromptlen], eprompt) == 0) { /* remove eprompt from buf */ - buf[bufpos - epromptlen] = NUL; + buf[bufpos - epromptlen] = '\0'; /* print message to user */ (void)EMSG2(cs_emsg, buf); @@ -1896,7 +1896,7 @@ static int cs_read_prompt(int i) /* clear buf */ bufpos = 0; - buf[bufpos] = NUL; + buf[bufpos] = '\0'; } } } @@ -1906,7 +1906,7 @@ static int cs_read_prompt(int i) ch = getc(csinfo[i].fr_fp); if (ch == EOF) { PERROR("cs_read_prompt EOF"); - if (buf != NULL && buf[0] != NUL) + if (buf != NULL && buf[0] != '\0') (void)EMSG2(cs_emsg, buf); else if (p_csverbose) cs_reading_emsg(i); /* don't have additional information */ @@ -2159,7 +2159,7 @@ static char *cs_resolve_file(int i, char *name) ) { fullname = xmalloc(len); (void)sprintf(fullname, "%s/%s", csinfo[i].ppath, name); - } else if (csdir != NULL && csinfo[i].fname != NULL && *csdir != NUL) { + } else if (csdir != NULL && csinfo[i].fname != NULL && *csdir != '\0') { /* Check for csdir to be non empty to avoid empty path concatenated to * cscope output. */ fullname = (char *)concat_fnames(csdir, (char_u *)name, TRUE); |