File: rep.c

package info (click to toggle)
librep 0.92.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 4,116 kB
  • ctags: 2,915
  • sloc: ansic: 31,305; lisp: 11,265; sh: 10,704; makefile: 462; sed: 93
file content (38 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (6)
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;
}