[svn:parrot] r39842 - trunk/compilers/imcc
petdance at svn.parrot.org
petdance at svn.parrot.org
Tue Jun 30 14:45:10 UTC 2009
Author: petdance
Date: Tue Jun 30 14:45:08 2009
New Revision: 39842
URL: https://trac.parrot.org/parrot/changeset/39842
Log:
use NULL when you mean NULL
Modified:
trunk/compilers/imcc/main.c
Modified: trunk/compilers/imcc/main.c
==============================================================================
--- trunk/compilers/imcc/main.c Tue Jun 30 11:00:05 2009 (r39841)
+++ trunk/compilers/imcc/main.c Tue Jun 30 14:45:08 2009 (r39842)
@@ -408,13 +408,13 @@
break;
case 't':
if (opt.opt_arg && is_all_hex_digits(opt.opt_arg))
- SET_TRACE(strtoul(opt.opt_arg, 0, 16));
+ SET_TRACE(strtoul(opt.opt_arg, NULL, 16));
else
SET_TRACE(PARROT_TRACE_OPS_FLAG);
break;
case 'd':
if (opt.opt_arg && is_all_hex_digits(opt.opt_arg)) {
- IMCC_INFO(interp)->debug = strtoul(opt.opt_arg, 0, 16);
+ IMCC_INFO(interp)->debug = strtoul(opt.opt_arg, NULL, 16);
}
else {
IMCC_INFO(interp)->debug++;
@@ -422,7 +422,7 @@
break;
case 'D':
if (opt.opt_arg && is_all_hex_digits(opt.opt_arg)) {
- SET_DEBUG(strtoul(opt.opt_arg, 0, 16));
+ SET_DEBUG(strtoul(opt.opt_arg, NULL, 16));
}
else
SET_DEBUG(PARROT_MEM_STAT_DEBUG_FLAG);
@@ -828,7 +828,7 @@
PackFile_pack(interp, interp->code->base.pf, packed);
if (STREQ(output_file, "-"))
fp = stdout;
- else if ((fp = fopen(output_file, "wb")) == 0)
+ else if ((fp = fopen(output_file, "wb")) == NULL)
IMCC_fatal_standalone(interp, EXCEPTION_EXTERNAL_ERROR,
"Couldn't open %s\n", output_file);
More information about the parrot-commits
mailing list