2 * gEDA - GPL Electronic Design Automation
3 * gschem - gEDA Schematic Capture
4 * Copyright (C) 1998-2010 Ales Hvezda
5 * Copyright (C) 1998-2011 gEDA Contributors (see ChangeLog for details)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef H_GSCHEM_GLOBALS_H
23 #define H_GSCHEM_GLOBALS_H
27 extern GList
*global_window_list
;
29 /* Manager for recently used files */
30 GtkRecentManager
*recent_manager
;
33 extern GdkColor white
;
34 extern GdkColor black
;
36 extern char *rc_filename
;
37 extern char *output_filename
;
40 extern int do_logging
;
41 extern int logging_dest
;
44 /* command line options */
45 extern int quiet_mode
;
46 extern int verbose_mode
;
47 extern int auto_place_mode
;
51 extern GList
*object_buffer
[MAX_BUFFERS
];
54 extern SCM complex_place_list_changed_hook
;
59 # define N_(String) gettext_noop (String)
61 # define N_(String) (String)
64 # define N_(String) (String)
68 * __attribute__((unused)) is a gcc extension so define
69 * a portable macro, ATTRIBUTE_UNUSED, to use instead
72 #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
73 #endif /* GCC_VERSION */
75 #if GCC_VERSION > 2007
76 #define ATTRIBUTE_UNUSED __attribute__((unused))
78 #define ATTRIBUTE_UNUSED
81 /*EK* used by prototype.h */
82 #include "../include/x_states.h"