~ubuntu-branches/ubuntu/maverick/glbsp/maverick

« back to all changes in this revision

Viewing changes to src/system.h

  • Committer: Bazaar Package Importer
  • Author(s): Darren Salt
  • Date: 2008-01-30 13:33:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080130133349-kgojg33vyiu8xbvp
Tags: 2.24-1
* New upstream release.
* Bumped the lib soname and the library package name due to one silly
  little binary incompatibility caused by changes in an exported struct.
  (Safe; nothing else currently in the archive has ever used libglbsp2.)
* Removed my patches since they're all applied upstream.
* Updated the list of documentation files.
* Build-time changes:
  - Switched from dh_movefiles to dh_install.
  - Updated my makefile to cope with upstream changes.
  - Corrected for debian-rules-ignores-make-clean-error.
  - Corrected for substvar-source-version-is-deprecated.
  - Link libglbsp, rather than glbsp, with libm and libz.
* Fixed shlibdeps. (Closes: #460387)
* Bumped standards version to 3.7.3 (no other changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//------------------------------------------------------------------------
 
2
// SYSTEM : Bridging code
 
3
//------------------------------------------------------------------------
 
4
//
 
5
//  GL-Friendly Node Builder (C) 2000-2007 Andrew Apted
 
6
//
 
7
//  Based on 'BSP 2.3' by Colin Reed, Lee Killough and others.
 
8
//
 
9
//  This program is free software; you can redistribute it and/or
 
10
//  modify it under the terms of the GNU General Public License
 
11
//  as published by the Free Software Foundation; either version 2
 
12
//  of the License, or (at your option) any later version.
 
13
//
 
14
//  This program is distributed in the hope that it will be useful,
 
15
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
//  GNU General Public License for more details.
 
18
//
 
19
//------------------------------------------------------------------------
 
20
 
 
21
#ifndef __GLBSP_SYSTEM_H__
 
22
#define __GLBSP_SYSTEM_H__
 
23
 
 
24
#include "glbsp.h"
 
25
 
 
26
 
 
27
// use this for inlining.  Usually defined in the makefile.
 
28
#ifndef INLINE_G
 
29
#define INLINE_G  /* nothing */
 
30
#endif
 
31
 
 
32
 
 
33
// internal storage of node building parameters
 
34
 
 
35
extern const nodebuildinfo_t *cur_info;
 
36
extern const nodebuildfuncs_t *cur_funcs;
 
37
extern volatile nodebuildcomms_t *cur_comms;
 
38
 
 
39
 
 
40
/* ----- function prototypes ---------------------------- */
 
41
 
 
42
// fatal error messages (these don't return)
 
43
void FatalError(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
44
void InternalError(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
45
 
 
46
// display normal messages & warnings to the screen
 
47
void PrintMsg(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
48
void PrintVerbose(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
49
void PrintWarn(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
50
void PrintMiniWarn(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
51
 
 
52
// set message for certain errors
 
53
void SetErrorMsg(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
54
 
 
55
// endian handling
 
56
void InitEndian(void);
 
57
uint16_g Endian_U16(uint16_g);
 
58
uint32_g Endian_U32(uint32_g);
 
59
 
 
60
// these are only used for debugging
 
61
void InitDebug(void);
 
62
void TermDebug(void);
 
63
void PrintDebug(const char *str, ...) GCCATTR((format (printf, 1, 2)));
 
64
 
 
65
// macros for the display stuff
 
66
#define DisplayOpen        (* cur_funcs->display_open)
 
67
#define DisplaySetTitle    (* cur_funcs->display_setTitle)
 
68
#define DisplaySetBar      (* cur_funcs->display_setBar)
 
69
#define DisplaySetBarLimit (* cur_funcs->display_setBarLimit)
 
70
#define DisplaySetBarText  (* cur_funcs->display_setBarText)
 
71
#define DisplayClose       (* cur_funcs->display_close)
 
72
 
 
73
#define DisplayTicker      (* cur_funcs->ticker)
 
74
 
 
75
 
 
76
#endif /* __GLBSP_SYSTEM_H__ */