x48/src/resources.h
Gwenhael Le Moine e59ca61c98 import of sources from latest release found on Sourceforge
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2015-07-26 11:16:05 +02:00

99 lines
3 KiB
C

/*
* This file is part of x48, an emulator of the HP-48sx Calculator.
* Copyright (C) 1994 Eddie C. Dost (ecd@dressler.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Log: resources.h,v $
* Revision 1.3 1995/01/11 18:20:01 ecd
* major update to support HP48 G/GX
*
* Revision 1.2 1994/12/07 20:16:41 ecd
* added more resource get functions
*
* Revision 1.2 1994/12/07 20:16:41 ecd
* added more resource get functions
*
* Revision 1.1 1994/12/07 10:16:15 ecd
* Initial revision
*
*
* $Id: resources.h,v 1.3 1995/01/11 18:20:01 ecd Exp ecd $
*/
#ifndef _RESOURCES_H
#define _RESOURCES_H 1
#include "global.h"
#include <X11/Xlib.h>
#include <X11/Xresource.h>
extern int verbose;
extern int quiet;
extern int useTerminal;
extern int useSerial;
extern int useXShm;
extern int useDebugger;
extern int netbook;
extern int throttle;
extern char *serialLine;
extern int initialize;
extern int resetOnStartup;
extern char *romFileName;
extern char *homeDirectory;
extern char *progname;
extern char *res_name;
extern char *res_class;
extern XrmDatabase rdb;
extern void usage __ProtoType__ ((void));
extern void show_version __ProtoType__ ((void));
extern void show_copyright __ProtoType__ ((void));
extern void show_warranty __ProtoType__ ((void));
extern void get_resources __ProtoType__ ((void));
extern char * get_string_resource_from_db __ProtoType__ ((XrmDatabase db,
char *name,
char *class));
extern char * get_string_resource __ProtoType__ ((char *name,
char *class));
extern int get_boolean_resource __ProtoType__ ((char *name,
char *class));
extern int get_mnemonic_resource __ProtoType__ ((char *name,
char *class));
extern Visual * get_visual_resource __ProtoType__ ((Display *dpy,
char *name,
char *class,
unsigned int *depth));
extern XFontStruct * get_font_resource __ProtoType__ ((Display *dpy,
char *res_name,
char *res_class));
#ifndef isupper
# define isupper(c) ((c) >= 'A' && (c) <= 'Z')
#endif
#ifndef islower
# define islower(c) ((c) >= 'a' && (c) <= 'z')
#endif
#ifndef _tolower
# define _tolower(c) ((c) - 'A' + 'a')
#endif
#ifndef _toupper
# define _toupper(c) ((c) - 'a' + 'A')
#endif
#endif /* !_RESOURCES_H */