Mercurial > vim
comparison src/regexp.c @ 25306:078edc1821bf v8.2.3190
patch 8.2.3190: error messages are spread out
Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 20 21:07:36 2021 +0200
patch 8.2.3190: error messages are spread out
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Jul 2021 21:15:05 +0200 |
parents | 7334bf933510 |
children | 1e6da8364a02 |
comparison
equal
deleted
inserted
replaced
25305:4032f1628500 | 25306:078edc1821bf |
---|---|
1357 // For NFA matcher we don't check the magic | 1357 // For NFA matcher we don't check the magic |
1358 return FALSE; | 1358 return FALSE; |
1359 | 1359 |
1360 if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC) | 1360 if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC) |
1361 { | 1361 { |
1362 emsg(_(e_re_corr)); | 1362 emsg(_(e_corrupted_regexp_program)); |
1363 return TRUE; | 1363 return TRUE; |
1364 } | 1364 } |
1365 return FALSE; | 1365 return FALSE; |
1366 } | 1366 } |
1367 | 1367 |
1980 #endif | 1980 #endif |
1981 | 1981 |
1982 // Be paranoid... | 1982 // Be paranoid... |
1983 if ((source == NULL && expr == NULL) || dest == NULL) | 1983 if ((source == NULL && expr == NULL) || dest == NULL) |
1984 { | 1984 { |
1985 emsg(_(e_null)); | 1985 emsg(_(e_null_argument)); |
1986 return 0; | 1986 return 0; |
1987 } | 1987 } |
1988 if (prog_magic_wrong()) | 1988 if (prog_magic_wrong()) |
1989 return 0; | 1989 return 0; |
1990 src = source; | 1990 src = source; |
2287 break; | 2287 break; |
2288 } | 2288 } |
2289 else if (*s == NUL) // we hit NUL. | 2289 else if (*s == NUL) // we hit NUL. |
2290 { | 2290 { |
2291 if (copy) | 2291 if (copy) |
2292 iemsg(_(e_re_damg)); | 2292 iemsg(_(e_damaged_match_string)); |
2293 goto exit; | 2293 goto exit; |
2294 } | 2294 } |
2295 else | 2295 else |
2296 { | 2296 { |
2297 if (backslash && (*s == CAR || *s == '\\')) | 2297 if (backslash && (*s == CAR || *s == '\\')) |