2 * gEDA - GPL Electronic Design Automation
3 * gschem - gEDA Schematic Capture
4 * Copyright (C) 1998-2010 Ales Hvezda
5 * Copyright (C) 1998-2020 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 extern 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
;
50 #define MAX_BUFFERS (5)
51 #define CLIPBOARD_BUFFER (0)
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 # define GETTEXT_CONTEXT_GLUE "\004"
69 # define pgettext(Msgctxt, Msgid) \
70 pgettext_aux (Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid)
71 static inline const char *
72 pgettext_aux (const char *msg_ctxt_id
, const char *msgid
)
74 const char *translation
= gettext (msg_ctxt_id
);
75 if (translation
== msg_ctxt_id
)
83 * __attribute__((unused)) is a gcc extension so define
84 * a portable macro, ATTRIBUTE_UNUSED, to use instead
87 #define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
88 #endif /* GCC_VERSION */
90 #if GCC_VERSION > 2007
91 #define ATTRIBUTE_UNUSED __attribute__((unused))
93 #define ATTRIBUTE_UNUSED
96 /*EK* used by prototype.h */
97 #include "../include/x_states.h"