/usr/include/paragui/paragui.h is in libparagui1.1-dev 1.1.8-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | /*
ParaGUI - crossplatform widgetset
Copyright (C) 2000,2001,2002 Alexander Pipelka
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Alexander Pipelka
pipelka@teleweb.at
Last Update: $Author: braindead $
Update Date: $Date: 2004/04/17 20:39:07 $
Source File: $Source: /cvsroot/paragui/paragui/include/paragui.h,v $
CVS/RCS Revision: $Revision: 1.3.6.5.2.9 $
Status: $State: Exp $
*/
/**
@file paragui.h
The main include file.
This include file sets up the basic configuration for
a ParaGUI enabled application. It includes all dependend
headers (SDL,...) and defines some macros used by many
other files.
@author Alexander Pipelka
*/
#ifndef PARAGUI_H
#define PARAGUI_H
//
// SDL includes
//
#include "SDL.h"
#include "SDL_thread.h"
//
// undefine PACKAGE, VERSION (collision with others)
//
#undef PACKAGE
#undef VERSION
#define PG_VERSIONNUM(X, Y, Z) ((X)*10000 + (Y)*100 + (Z))
//
// include system configuration
//
#if (defined(WIN32) || defined(__WIN32__)) && (defined(__MINGW32__) || defined(_MSC_VER) || defined(__BCPLUSPLUS__) || defined(__MWERKS__))
#include "paraconfig_win32.h"
#elif defined(__MACOS__) // MacOS
#include "paraconfig_macos.h"
#else // GNU
#include "paraconfig_gnu.h"
#endif
//
// STL map / hash_map
//
#define MAP_INC <map>
#define STL_MAP std::map
//
// Modelled after g++ stdc++ v3
//
#if defined(EXCEPTIONS_ENABLED) || defined(__EXCEPTIONS)
#define PG_TRY try
#define PG_CATCH_ALL catch(...)
#define PG_THROW(_ex_) throw _ex_
#define PG_RETHROW throw
#define PG_NOTHROW throw()
#define PG_UNWIND(action) catch(...) {action; throw;}
#define PG_CATCH(_ex_, _name_) catch(_ex_& _name_)
#else
#define PG_TRY
#define PG_CATCH_ALL if (false)
#define PG_THROW(_ex_)
#define PG_RETHROW
#define PG_NOTHROW
#define PG_UNWIND
#define PG_CATCH(_ex_, _name_) if (false)
#endif
//
// Replacement for strdup
//
#ifndef HAVE_STRDUP
extern "C" {
char* strdup(const char* s);
}
#endif
//
// Replacement for fnmatch
//
#ifndef HAVE_FNMATCH
extern "C" {
/* Bits set in the FLAGS argument to `fnmatch'. */
#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
#define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD)
/* Value returned by `fnmatch' if STRING does not match PATTERN. */
#define FNM_NOMATCH 1
int fnmatch(const char *, const char *, int);
}
#else
#include <fnmatch.h>
#endif
/**
Internal widget ID.
All internal widget ID's start at this value.
*/
#define PG_WIDGETID_INTERNAL 10000
/**
calculate the minimum of 2 values
*/
#define PG_MAX(a, b) ((a<b) ? b : a)
/**
calculate the maximum of 2 values
*/
#define PG_MIN(a, b) ((a<b) ? a : b)
#endif // PARAGUI_H
|