Updated copyright text/header in most source files.
[geda-gaf/peter-b.git] / utils / gschlas / g_register.c
blobdf10073e51950d020fdbd3f288642b4b089b4920
1 /* gEDA - GPL Electronic Design Automation
2 * gschlas - gEDA Load and Save
3 * Copyright (C) 2002-2010 Ales Hvezda
4 * Copyright (C) 2002-2010 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <config.h>
23 #include <stdio.h>
24 #include <sys/stat.h>
25 #ifdef HAVE_STDLIB_H
26 #include <stdlib.h>
27 #endif
28 #ifdef HAVE_ASSERT_H
29 #include <assert.h>
30 #endif
31 #ifdef HAVE_UNISTD_H
32 #include <unistd.h>
33 #endif
35 #include <libgeda/libgeda.h>
37 #include "../include/prototype.h"
39 #ifdef HAVE_LIBDMALLOC
40 #include <dmalloc.h>
41 #endif
43 void
44 g_register_funcs(void)
46 /* general functions */
47 scm_c_define_gsubr ("quit", 0, 0, 0, g_quit);
48 scm_c_define_gsubr ("exit", 0, 0, 0, g_quit);
50 /* gsymcheckrc functions */
51 scm_c_define_gsubr ("gschlas-version", 1, 0, 0, g_rc_gschlas_version);
52 scm_c_define_gsubr ("force-boundingbox", 1, 0, 0, g_rc_force_boundingbox);
55 SCM
56 g_quit(void)
58 gschlas_quit();
59 exit(0);