1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
/* rep.c -- read-eval-print front end
$Id$ */
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "rep.h"
#include "build.h"
#include <string.h>
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
int
main(int argc, char **argv)
{
DEFSTRING (rep, "rep/user");
int exit_status;
char *prog_name = *argv++;
argc--;
#ifdef HAVE_SETLOCALE
setlocale (LC_ALL, "");
#endif
rep_init (prog_name, &argc, &argv, 0, 0);
rep_call_with_barrier (rep_load_environment, rep_VAL (&rep),
rep_TRUE, 0, 0, 0);
exit_status = rep_top_level_exit ();
rep_kill();
return exit_status;
}
|