Make headers freestanding

This commit is contained in:
Kp 2013-10-26 03:40:50 +00:00
parent 9e1c33cca3
commit 8ed99faf5c
31 changed files with 97 additions and 2 deletions

View File

@ -19,10 +19,15 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _CLIPPER_H
#define _CLIPPER_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif
struct g3s_codes;
struct g3s_point;
extern void free_temp_point(g3s_point *p);
extern g3s_point **clip_polygon(g3s_point **src,g3s_point **dest,int *nv,g3s_codes *cc);
extern void init_free_points(void);

View File

@ -21,6 +21,12 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#define MAX_POINTS_IN_POLY 100
#include "maths.h"
struct vms_vector;
struct vms_matrix;
struct g3s_point;
extern int Canvas_width,Canvas_height; //the actual width & height
extern fix Canv_w2,Canv_h2; //fixed-point width,height/2

View File

@ -1,5 +1,6 @@
#pragma once
#include "segment.h"
#include "editor/editor.h"
extern segment *Cursegp; // Pointer to current segment in the mine, the one to which things happen.
#ifdef DXX_BUILD_DESCENT_II

View File

@ -24,6 +24,10 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct grs_canvas;
struct editor_view;
struct segment;
void meddraw_init_views( grs_canvas * canvas);
void draw_world(grs_canvas *screen_canvas,editor_view *v,segment *mine_ptr,int depth);
void find_segments(short x,short y,grs_canvas *screen_canvas,editor_view *v,segment *mine_ptr,int depth);

View File

@ -24,6 +24,9 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct segment;
struct vms_matrix;
void GetMouseRotation( int idx, int idy, vms_matrix * RotMat );
extern int Gameview_lockstep; //In medmisc.c
int ToggleLockstep();

View File

@ -24,6 +24,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct vms_vector;
extern void sort_seg_list(int n_segs,short *segnumlist,vms_vector *pos);
#ifdef __cplusplus

View File

@ -27,6 +27,7 @@ extern "C" {
#endif
struct d_event;
struct vms_angvec;
int objpage_grab_current(int n);
int objpage_goto_first();

View File

@ -24,6 +24,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct segment;
extern void assign_light_to_side(segment *sp, int sidenum);
extern void assign_default_lighting_all(void);
extern void stretch_uvs_from_curedge(segment *segp, int side);

View File

@ -21,6 +21,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _PALETTE_H
#define _PALETTE_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,10 +20,14 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _PCX_H
#define _PCX_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif
struct grs_bitmap;
#define PCX_ERROR_NONE 0
#define PCX_ERROR_OPENING 1
#define PCX_ERROR_NO_HEADER 2

View File

@ -2,6 +2,8 @@
#ifndef _STRIO_H
#define _STRIO_H
#include <physfs.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -27,6 +27,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct grs_bitmap;
struct grs_canvas;
struct grs_font;
struct window;
typedef struct {

View File

@ -20,6 +20,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _AUTOMAP_H
#define _AUTOMAP_H
#include "pstypes.h"
#include "segment.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -32,7 +35,9 @@ extern void automap_clear_visited();
extern ubyte Automap_visited[MAX_SEGMENTS];
#if defined(DXX_BUILD_DESCENT_II)
#include "object.h"
struct object;
struct vms_vector;
void DropBuddyMarker(object *objp);
void InitMarkerInput();
int MarkerInputMessage(int key);

View File

@ -21,10 +21,14 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _CONTROLS_H
#define _CONTROLS_H
#include "maths.h"
#ifdef __cplusplus
extern "C" {
#endif
struct object;
void read_flying_controls( object * obj );
#if defined(DXX_BUILD_DESCENT_II)

View File

@ -7,6 +7,8 @@
#ifndef _ESCORT_H
#define _ESCORT_H
#include "maths.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -21,10 +21,16 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _FIREBALL_H
#define _FIREBALL_H
#include <physfs.h>
#include "maths.h"
#ifdef __cplusplus
extern "C" {
#endif
struct object;
struct vms_vector;
// explosion types
#define ET_SPARKS 0 //little sparks, like when laser hits wall
#define ET_MULTI_START 1 //first part of multi-part explosion

View File

@ -21,6 +21,10 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _GAMEMINE_H
#define _GAMEMINE_H
#include <physfs.h>
#include "maths.h"
#include "vecmat.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,6 +20,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _GAMEPAL_H
#define _GAMEPAL_H
#include "inferno.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -21,6 +21,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _GAMESAVE_H
#define _GAMESAVE_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct object;
#define HOSTAGE_SIZE i2f(5) // 3d size of a hostage
#define MAX_HOSTAGE_TYPES 1 //only one hostage bitmap

View File

@ -21,6 +21,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _KMATRIX_H
#define _KMATRIX_H
#include "maths.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,6 +20,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _LASER_H
#define _LASER_H
#include "maths.h"
#include "vecmat.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -21,10 +21,16 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _LIGHTING_H
#define _LIGHTING_H
#include "maths.h"
#include "segment.h"
#ifdef __cplusplus
extern "C" {
#endif
struct g3s_lrgb;
struct object;
#define MAX_LIGHT 0x10000 // max value
#define MIN_LIGHT_DIST (F1_0*4)

View File

@ -21,10 +21,15 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _MULTIBOT_H
#define _MULTIBOT_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif
struct object;
struct vms_vector;
#if defined(DXX_BUILD_DESCENT_I)
#define MAX_ROBOTS_CONTROLLED 3
#elif defined(DXX_BUILD_DESCENT_II)

View File

@ -25,6 +25,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#include "sounds.h"
#include "hash.h"
#include "inferno.h"
#include "gr.h"
#ifdef __cplusplus
extern "C" {

View File

@ -21,7 +21,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _SEGPOINTS_H
#define _SEGPOINTS_H
#include "3d.h"
#include "segment.h"
struct g3s_point;
extern g3s_point Segment_points[MAX_VERTICES];

View File

@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct vms_vector;
void free_light_table();
void free_height_array();
void load_terrain(const char *filename);

View File

@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
extern "C" {
#endif
struct grs_bitmap;
int texmerge_init(int num_cached_textures);
grs_bitmap *texmerge_get_cached_bitmap(int tmap_bottom, int tmap_top);
void texmerge_close();

View File

@ -20,6 +20,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#ifndef _TITLES_H
#define _TITLES_H
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -20,10 +20,15 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
// Local include file for texture map library.
#include "maths.h"
#include "pstypes.h"
#ifdef __cplusplus
extern "C" {
#endif
struct g3ds_tmap;
extern int prevmod(int val,int modulus);
extern int succmod(int val,int modulus);
extern void texture_map_flat(g3ds_tmap *t,int color);

View File

@ -1,6 +1,9 @@
#ifndef _CUSTOM_H
#define _CUSTOM_H
#include "pstypes.h"
#include "piggy.h"
/* from piggy.c */
#define DBM_FLAG_LARGE 128 // Flags added onto the flags struct in b
#define DBM_FLAG_ABM 64