diff --git a/compilers/imcc/imcc.l b/compilers/imcc/imcc.l index 86d25f7e89..237071529e 100644 --- a/compilers/imcc/imcc.l +++ b/compilers/imcc/imcc.l @@ -1320,9 +1320,9 @@ determine_input_file_type(ARGMOD(imc_info_t * imcc), ARGIN(STRING *sourcefile)) } } else { - /*if (Parrot_stat_info_intval(imcc->interp, sourcefile, STAT_ISDIR)) + if (Parrot_file_stat_intval(imcc->interp, sourcefile, STAT_ISDIR)) Parrot_ex_throw_from_c_args(imcc->interp, NULL, EXCEPTION_EXTERNAL_ERROR, - "imcc_compile_file: '%Ss' is a directory\n", sourcefile);*/ + "imcc_compile_file: '%Ss' is a directory\n", sourcefile); handle = PIO_OPEN(imcc->interp, sourcefile, PIO_F_READ); if (handle == PIO_INVALID_HANDLE) diff --git a/compilers/imcc/imclexer.c b/compilers/imcc/imclexer.c index 703f3a581c..cd6ad25b0e 100644 --- a/compilers/imcc/imclexer.c +++ b/compilers/imcc/imclexer.c @@ -5504,9 +5504,9 @@ determine_input_file_type(ARGMOD(imc_info_t * imcc), ARGIN(STRING *sourcefile)) } } else { - /*if (Parrot_stat_info_intval(imcc->interp, sourcefile, STAT_ISDIR)) + if (Parrot_file_stat_intval(imcc->interp, sourcefile, STAT_ISDIR)) Parrot_ex_throw_from_c_args(imcc->interp, NULL, EXCEPTION_EXTERNAL_ERROR, - "imcc_compile_file: '%Ss' is a directory\n", sourcefile);*/ + "imcc_compile_file: '%Ss' is a directory\n", sourcefile); handle = PIO_OPEN(imcc->interp, sourcefile, PIO_F_READ); if (handle == PIO_INVALID_HANDLE)