Skip to content

Commit

Permalink
avoid STRING_IS_NULL usage in main that makes MSWin32 fail, don't kno…
Browse files Browse the repository at this point in the history
…w why

git-svn-id: https://svn.parrot.org/parrot/trunk@44106 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
NotFound authored and NotFound committed Feb 17, 2010
1 parent 70d9b06 commit 891d5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ main(int argc, char * argv[])
PMC *env = pmc_new(interp, enum_class_Env);
STRING *path = VTABLE_get_string_keyed_str(interp, env,
Parrot_str_new_constant(interp, "PARROT_LIBRARY"));
if (!STRING_IS_NULL(path) && Parrot_str_length(interp, path) > 0)
if (!STRING_is_null(interp, path) && Parrot_str_length(interp, path) > 0)
Parrot_lib_add_path(interp, path, PARROT_LIB_PATH_LIBRARY);
path = VTABLE_get_string_keyed_str(interp, env,
Parrot_str_new_constant(interp, "PARROT_INCLUDE"));
if (!STRING_IS_NULL(path) && Parrot_str_length(interp, path) > 0)
if (!STRING_is_null(interp, path) && Parrot_str_length(interp, path) > 0)
Parrot_lib_add_path(interp, path, PARROT_LIB_PATH_INCLUDE);
}

Expand Down

0 comments on commit 891d5f1

Please sign in to comment.