summaryrefslogtreecommitdiff
path: root/to.do
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-05 18:00:12 -0500
committerWill Estes <westes575@gmail.com>2015-12-05 18:50:53 -0500
commite0877888da128c7a1fcb24f5a7b5959c54631e18 (patch)
tree01840925f9868764a6e15c6bb3a4b281127f42d9 /to.do
parent3a1d84cfc0988a3dbdba7a440571e987cb68973a (diff)
Use NULL rather than (type *) 0.
Diffstat (limited to 'to.do')
-rw-r--r--to.do/unicode/main.c6
-rw-r--r--to.do/unicode/scan.l4
2 files changed, 5 insertions, 5 deletions
diff --git a/to.do/unicode/main.c b/to.do/unicode/main.c
index eee3c3e..ca38e10 100644
--- a/to.do/unicode/main.c
+++ b/to.do/unicode/main.c
@@ -908,9 +908,9 @@ void readin()
{
static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;";
static char yy_nostdinit[] =
- "FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;";
+ "FILE *yyin = NULL, *yyout = NULL;";
- line_directive_out( (FILE *) 0, 1 );
+ line_directive_out(NULL, 1);
if ( yyparse() )
{
@@ -1155,7 +1155,7 @@ void set_up_initial_allocations()
dss = allocate_int_ptr_array( current_max_dfas );
dfaacc = allocate_dfaacc_union( current_max_dfas );
- nultrans = (int *) 0;
+ nultrans = NULL;
}
diff --git a/to.do/unicode/scan.l b/to.do/unicode/scan.l
index d7bda22..34cac77 100644
--- a/to.do/unicode/scan.l
+++ b/to.do/unicode/scan.l
@@ -109,7 +109,7 @@ LEXOPT [aceknopr]
^"%x"{NAME}? return XSCDECL;
^"%{".*{NL} {
++linenum;
- line_directive_out( (FILE *) 0, 1 );
+ line_directive_out(NULL, 1);
indented_code = false;
BEGIN(CODEBLOCK);
}
@@ -120,7 +120,7 @@ LEXOPT [aceknopr]
sectnum = 2;
bracelevel = 0;
mark_defs1();
- line_directive_out( (FILE *) 0, 1 );
+ line_directive_out(NULL, 1);
BEGIN(SECT2PROLOG);
return SECTEND;
}