aboutsummaryrefslogtreecommitdiffstats
path: root/src/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/expr.c b/src/expr.c
index 19475f349..aaa82d3d2 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -331,7 +331,7 @@ main (int argc, char **argv)
atexit (close_stdout);
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE_NAME, VERSION,
- usage, AUTHORS, (char const *) NULL);
+ usage, AUTHORS, (char const *) nullptr);
/* The above handles --help and --version.
Since there is no other invocation of getopt, handle '--' here. */
@@ -470,7 +470,7 @@ tostring (VALUE *v)
{
case integer:
{
- char *s = mpz_get_str (NULL, 10, v->u.i);
+ char *s = mpz_get_str (nullptr, 10, v->u.i);
mpz_clear (v->u.i);
v->u.s = s;
v->type = string;
@@ -527,12 +527,12 @@ getsize (mpz_t i)
}
/* Return true and advance if the next token matches STR exactly.
- STR must not be NULL. */
+ STR must not be null. */
static bool
nextarg (char const *str)
{
- if (*args == NULL)
+ if (*args == nullptr)
return false;
else
{
@@ -596,13 +596,13 @@ docolon (VALUE *sv, VALUE *pv)
tostring (pv);
re_regs.num_regs = 0;
- re_regs.start = NULL;
- re_regs.end = NULL;
+ re_regs.start = nullptr;
+ re_regs.end = nullptr;
- re_buffer.buffer = NULL;
+ re_buffer.buffer = nullptr;
re_buffer.allocated = 0;
re_buffer.fastmap = fastmap;
- re_buffer.translate = NULL;
+ re_buffer.translate = nullptr;
re_syntax_options =
RE_SYNTAX_POSIX_BASIC & ~RE_CONTEXT_INVALID_DUP & ~RE_NO_EMPTY_RANGES;
errmsg = re_compile_pattern (pv->u.s, strlen (pv->u.s), &re_buffer);
@@ -652,7 +652,7 @@ docolon (VALUE *sv, VALUE *pv)
free (re_regs.start);
free (re_regs.end);
}
- re_buffer.fastmap = NULL;
+ re_buffer.fastmap = nullptr;
regfree (&re_buffer);
return v;
}