gnetlist

globals.c

Go to the documentation of this file.
00001 /* gEDA - GPL Electronic Design Automation
00002  * gnetlist - gEDA Netlist 
00003  * Copyright (C) 1998-2010 Ales Hvezda
00004  * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details)
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00021 #include <config.h>
00022 
00023 #include <stdio.h>
00024 
00025 #include <libgeda/libgeda.h>
00026 
00027 #include "../include/globals.h"
00028 #include "../include/prototype.h"
00029 
00030 #ifdef HAVE_LIBDMALLOC
00031 #include <dmalloc.h>
00032 #endif
00033 
00034 char *rc_filename = NULL; 
00035 
00036 int logfile_fd=-1;
00037 int logging_dest=LOG_WINDOW;
00038 
00039 /* netlist specific variables */
00040 NETLIST *netlist_head=NULL;
00041 NETLIST *graphical_netlist_head=NULL; /* Special objects with 
00042                      graphical=1 attribute */
00043 char *guile_proc=NULL; 
00044 
00045 
00046 /* command line arguments */
00047 int list_backends=FALSE;
00048 int verbose_mode=FALSE;
00049 int interactive_mode=FALSE;
00050 int quiet_mode=FALSE;
00051 
00052 /* what kind of netlist are we generating? see define.h for #defs */
00053 int netlist_mode=gEDA;
00054 char *output_filename=NULL;
00055 
00056 /* scheme expression to evaluate before loading of rc files */
00057 SCM pre_rc_list = SCM_EOL;
00058 
00059 /* scheme expression to evaluate before loading of the backend */
00060 SCM pre_backend_list = SCM_EOL;
00061 
00062 /* scheme expression to evaluate after loading of the backend but
00063  * before the execution of the backend procedure */
00064 SCM post_backend_list = SCM_EOL;
00065 
00066 /* List of input filenames */
00067 GSList *input_files;
00068 
00069 /* Parameters passed to the backend from the command line */
00070 GSList *backend_params = NULL;  
 All Data Structures Files Functions Variables Defines