Mercurial > vim
comparison src/ex_cmds.c @ 10299:7b2f95633e28 v8.0.0046
commit https://github.com/vim/vim/commit/7756e7465d627ff9cd01e59625484a8c302ef853
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 21 20:35:37 2016 +0200
patch 8.0.0046
Problem: Using NUL instead of NULL.
Solution: Change to NULL. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 21 Oct 2016 22:45:04 +0200 |
parents | c036c0f636d5 |
children | 59d01e335858 |
comparison
equal
deleted
inserted
replaced
10298:2bd1bb7d9e5a | 10299:7b2f95633e28 |
---|---|
6906 t1 = gettail(f1); | 6906 t1 = gettail(f1); |
6907 if (fnamencmp(f1, f2, t1 - f1) != 0) | 6907 if (fnamencmp(f1, f2, t1 - f1) != 0) |
6908 continue; | 6908 continue; |
6909 e1 = vim_strrchr(t1, '.'); | 6909 e1 = vim_strrchr(t1, '.'); |
6910 e2 = vim_strrchr(gettail(f2), '.'); | 6910 e2 = vim_strrchr(gettail(f2), '.'); |
6911 if (e1 == NUL || e2 == NUL) | 6911 if (e1 == NULL || e2 == NULL) |
6912 continue; | 6912 continue; |
6913 if (fnamecmp(e1, ".txt") != 0 | 6913 if (fnamecmp(e1, ".txt") != 0 |
6914 && fnamecmp(e1, fname + 4) != 0) | 6914 && fnamecmp(e1, fname + 4) != 0) |
6915 { | 6915 { |
6916 /* Not .txt and not .abx, remove it. */ | 6916 /* Not .txt and not .abx, remove it. */ |
8203 p = vim_strchr(last, '='); | 8203 p = vim_strchr(last, '='); |
8204 | 8204 |
8205 /* :sign define {name} {args}... {last}= | 8205 /* :sign define {name} {args}... {last}= |
8206 * | | | 8206 * | | |
8207 * last p */ | 8207 * last p */ |
8208 if (p == NUL) | 8208 if (p == NULL) |
8209 { | 8209 { |
8210 /* Expand last argument name (before equal sign). */ | 8210 /* Expand last argument name (before equal sign). */ |
8211 xp->xp_pattern = last; | 8211 xp->xp_pattern = last; |
8212 switch (cmd_idx) | 8212 switch (cmd_idx) |
8213 { | 8213 { |