/* Execute a C# program.
- Copyright (C) 2003-2005 Free Software Foundation, Inc.
+ Copyright (C) 2003-2007 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify
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 <config.h>
-#endif
+#include <config.h>
#include <alloca.h>
/* Specification. */
#include "execute.h"
#include "sh-quote.h"
-#include "xallocsa.h"
+#include "xmalloca.h"
#include "error.h"
#include "gettext.h"
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";
err = executer ("ilrun", "ilrun", argv, private_data);
- freesa (argv);
+ freea (argv);
return err;
}
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;
/* Reset MONO_PATH. */
reset_monopath (old_monopath);
- freesa (argv);
+ freea (argv);
return err;
}
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;
/* Reset clix' PATH variable. */
reset_clixpath (old_clixpath);
- freesa (argv);
+ freea (argv);
return err;
}