Updated copyright text/header in most source files.
[geda-gaf/peter-b.git] / gsymcheck / src / g_register.c
blob1c09bb6983eadefd9c20b3ad2eaa9ad79975ef43
1 /* gEDA - GPL Electronic Design Automation
2 * gsymcheck - gEDA Symbol Check
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-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/struct.h"
38 #include "../include/prototype.h"
40 void
41 g_register_funcs(void)
43 /* general functions */
44 scm_c_define_gsubr ("quit", 0, 0, 0, g_quit);
45 scm_c_define_gsubr ("exit", 0, 0, 0, g_quit);
47 /* gsymcheckrc functions */
48 scm_c_define_gsubr ("gsymcheck-version", 1, 0, 0, g_rc_gsymcheck_version);
52 SCM
53 g_quit(void)
55 gsymcheck_quit();
56 exit(0);