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/indent.c | |
parent | 046debb9359c85e2f2bc5c6d9481dac0025c6a80 (diff) | |
download | rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.gz rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.bz2 rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.zip |
Remove NUL macro
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/indent.c b/src/indent.c index 10530b71f8..05db6838b7 100644 --- a/src/indent.c +++ b/src/indent.c @@ -418,7 +418,7 @@ int get_number_indent(linenr_T lnum) vim_regfree(regmatch.regprog); } - if ((pos.lnum == 0) || (*ml_get_pos(&pos) == NUL)) { + if ((pos.lnum == 0) || (*ml_get_pos(&pos) == '\0')) { return -1; } getvcol(curwin, &pos, &col, NULL, NULL); @@ -548,29 +548,29 @@ int get_lisp_indent(void) continue; } - for (that = ml_get_curline(); *that != NUL; ++that) { + for (that = ml_get_curline(); *that != '\0'; ++that) { if (*that == ';') { - while (*(that + 1) != NUL) { + while (*(that + 1) != '\0') { that++; } continue; } if (*that == '\\') { - if (*(that + 1) != NUL) { + if (*(that + 1) != '\0') { that++; } continue; } - if ((*that == '"') && (*(that + 1) != NUL)) { + if ((*that == '"') && (*(that + 1) != '\0')) { while (*++that && *that != '"') { // Skipping escaped characters in the string if (*that == '\\') { - if (*++that == NUL) { + if (*++that == '\0') { break; } - if (that[1] == NUL) { + if (that[1] == '\0') { that++; break; } @@ -649,7 +649,7 @@ int get_lisp_indent(void) if (((*that == ')') || (*that == ']')) && !quotecount) { parencount--; } - if ((*that == '\\') && (*(that + 1) != NUL)) { + if ((*that == '\\') && (*(that + 1) != '\0')) { amount += lbr_chartabsize_adv(&that, (colnr_T)amount); } @@ -684,7 +684,7 @@ static int lisp_match(char_u *p) int len; char_u *word = p_lispwords; - while (*word != NUL) { + while (*word != '\0') { (void)copy_option_part(&word, buf, LSIZE, ","); len = (int)STRLEN(buf); |