gschem

globals.h

Go to the documentation of this file.
00001 /* -*- geda-c -*-
00002  * gEDA - GPL Electronic Design Automation
00003  * gschem - gEDA Schematic Capture
00004  * Copyright (C) 1998-2010 Ales Hvezda
00005  * Copyright (C) 1998-2011 gEDA Contributors (see ChangeLog for details)
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 
00022 #ifndef H_GSCHEM_GLOBALS_H
00023 #define H_GSCHEM_GLOBALS_H
00024 
00025 
00026 /* window list */
00027 extern GList *global_window_list;
00028 
00029 /* Manager for recently used files */
00030 GtkRecentManager *recent_manager;
00031 
00032 /* colors */
00033 extern GdkColor white;
00034 extern GdkColor black;
00035 
00036 extern char *rc_filename; 
00037 extern char *output_filename;
00038 
00039 
00040 extern int do_logging;
00041 extern int logging_dest;
00042 
00043 
00044 /* command line options */
00045 extern int quiet_mode;
00046 extern int verbose_mode;
00047 extern int auto_place_mode;
00048 
00049 #define MAX_BUFFERS     5
00050 /* Global buffers */
00051 extern GList *object_buffer[MAX_BUFFERS];
00052 
00053 /* Hooks */
00054 extern SCM complex_place_list_changed_hook;
00055 
00056 #include "gettext.h"
00057 #ifdef ENABLE_NLS
00058 # ifdef gettext_noop
00059 #  define N_(String) gettext_noop (String)
00060 # else
00061 #  define N_(String) (String)
00062 # endif
00063 #else
00064 # define N_(String) (String)
00065 #endif
00066 
00067 /*
00068  * __attribute__((unused)) is a gcc extension so define
00069  * a portable macro, ATTRIBUTE_UNUSED, to use instead
00070  */
00071 #ifndef GCC_VERSION
00072 #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
00073 #endif /* GCC_VERSION */
00074 
00075 #if GCC_VERSION > 2007
00076 #define ATTRIBUTE_UNUSED __attribute__((unused))
00077 #else
00078 #define ATTRIBUTE_UNUSED
00079 #endif
00080 
00081 /*EK* used by prototype.h */
00082 #include "../include/x_states.h"
00083 
00084 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines