aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-21 15:57:55 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-23 14:00:09 +0100
commiteae6727325111e596b49bb04337a467e8833397c (patch)
tree7be92bb7cb7cf1575ca0c714b8c7012fd25d6555 /src/nvim/regexp.c
parent7121241e5cecbd741795aec37a3cb1203c8e9f34 (diff)
downloadrneovim-eae6727325111e596b49bb04337a467e8833397c.tar.gz
rneovim-eae6727325111e596b49bb04337a467e8833397c.tar.bz2
rneovim-eae6727325111e596b49bb04337a467e8833397c.zip
refactor: remove os_errmsg and os_msg functions
Instead replace them with fprintf and printf.
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index 87f28a4379..d8bfc64c06 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -5865,8 +5865,8 @@ static bool regmatch(uint8_t *scan, const proftime_T *tm, int *timed_out)
#ifdef REGEXP_DEBUG
if (scan != NULL && regnarrate) {
- os_errmsg((char *)regprop(scan));
- os_errmsg("(\n");
+ fprintf(stderr, "%s", (char *)regprop(scan));
+ fprintf(stderr, "%s", "(\n");
}
#endif
@@ -5892,18 +5892,18 @@ static bool regmatch(uint8_t *scan, const proftime_T *tm, int *timed_out)
#ifdef REGEXP_DEBUG
if (regnarrate) {
- os_errmsg((char *)regprop(scan));
- os_errmsg("...\n");
+ fprintf(stderr, "%s", (char *)regprop(scan));
+ fprintf(stderr, "%s", "...\n");
if (re_extmatch_in != NULL) {
int i;
- os_errmsg(_("External submatches:\n"));
+ fprintf(stderr, _("External submatches:\n"));
for (i = 0; i < NSUBEXP; i++) {
- os_errmsg(" \"");
+ fprintf(stderr, "%s", " \"");
if (re_extmatch_in->matches[i] != NULL) {
- os_errmsg((char *)re_extmatch_in->matches[i]);
+ fprintf(stderr, "%s", (char *)re_extmatch_in->matches[i]);
}
- os_errmsg("\"\n");
+ fprintf(stderr, "%s", "\"\n");
}
}
}