X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcsharpexec.c;h=b94505f3c65eaabf7aa23d665b76a2bc3f233cc5;hb=72c48440c1f459e2659270598b771c69e9c08994;hp=6c25ecd1ea8a542625a061c125ba18266257980b;hpb=136b57a7fdd137b610932c774d8ff9edbcfab580;p=gnulib.git diff --git a/lib/csharpexec.c b/lib/csharpexec.c index 6c25ecd1e..b94505f3c 100644 --- a/lib/csharpexec.c +++ b/lib/csharpexec.c @@ -1,5 +1,5 @@ /* Execute a C# program. - Copyright (C) 2003-2005 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 @@ -16,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include /* Specification. */ @@ -29,7 +27,7 @@ #include "execute.h" #include "sh-quote.h" -#include "xallocsa.h" +#include "xmalloca.h" #include "error.h" #include "gettext.h" @@ -126,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"; @@ -152,7 +150,7 @@ execute_csharp_using_pnet (const char *assembly_path, err = executer ("ilrun", "ilrun", argv, private_data); - freesa (argv); + freea (argv); return err; } @@ -190,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; @@ -214,7 +212,7 @@ execute_csharp_using_mono (const char *assembly_path, /* Reset MONO_PATH. */ reset_monopath (old_monopath); - freesa (argv); + freea (argv); return err; } @@ -251,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; @@ -275,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; }