X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcsharpexec.c;h=b94505f3c65eaabf7aa23d665b76a2bc3f233cc5;hb=d2d412207bf7ceffe7ad8bdd29c8355ae3781258;hp=e33071859823933b5c57d61a1826e5decfa45cf4;hpb=99099106c3c1cb16ed1e91be970332fe225e278b;p=gnulib.git diff --git a/lib/csharpexec.c b/lib/csharpexec.c index e33071859..b94505f3c 100644 --- a/lib/csharpexec.c +++ b/lib/csharpexec.c @@ -1,5 +1,5 @@ /* Execute a C# program. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify @@ -27,7 +27,7 @@ #include "execute.h" #include "sh-quote.h" -#include "xallocsa.h" +#include "xmalloca.h" #include "error.h" #include "gettext.h" @@ -124,7 +124,7 @@ execute_csharp_using_pnet (const char *assembly_path, bool err; argc = 1 + 2 * libdirs_count + 1 + nargs; - argv = (char **) xallocsa ((argc + 1) * sizeof (char *)); + argv = (char **) xmalloca ((argc + 1) * sizeof (char *)); argp = argv; *argp++ = "ilrun"; @@ -150,7 +150,7 @@ execute_csharp_using_pnet (const char *assembly_path, err = executer ("ilrun", "ilrun", argv, private_data); - freesa (argv); + freea (argv); return err; } @@ -188,7 +188,7 @@ execute_csharp_using_mono (const char *assembly_path, if (mono_present) { char *old_monopath; - char **argv = (char **) xallocsa ((2 + nargs + 1) * sizeof (char *)); + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); unsigned int i; bool err; @@ -212,7 +212,7 @@ execute_csharp_using_mono (const char *assembly_path, /* Reset MONO_PATH. */ reset_monopath (old_monopath); - freesa (argv); + freea (argv); return err; } @@ -249,7 +249,7 @@ execute_csharp_using_sscli (const char *assembly_path, if (clix_present) { char *old_clixpath; - char **argv = (char **) xallocsa ((2 + nargs + 1) * sizeof (char *)); + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); unsigned int i; bool err; @@ -273,7 +273,7 @@ execute_csharp_using_sscli (const char *assembly_path, /* Reset clix' PATH variable. */ reset_clixpath (old_clixpath); - freesa (argv); + freea (argv); return err; }