include config.h

convert #if USE_INTEL_ASM to #ifdef USE_INTEL_ASM
add cl_math.S to math_ASM

unfortunatly, snd_mixa.o isn't being built. Haven't figured that one out yet
This commit is contained in:
Bill Currie 2000-08-20 00:38:32 +00:00
parent a4856e8b01
commit 4047bd947f
136 changed files with 584 additions and 67 deletions

View file

@ -85,7 +85,7 @@ surfcache_t *D_CacheSurface (msurface_t *surface, int miplevel);
extern int D_MipLevelForScale (float scale);
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
extern void D_PolysetAff8Start (void);
extern void D_PolysetAff8End (void);
#endif

View file

@ -54,7 +54,7 @@ void VID_UnlockBuffer (void);
#endif
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
#define UNALIGNED_OK 1 // set to 0 if unaligned accesses are not supported
#else
#define UNALIGNED_OK 0

View file

@ -140,7 +140,7 @@ void R_DrawSurfaceBlock16 (void);
void R_DrawSurfaceBlock8 (void);
texture_t *R_TextureAnimation (texture_t *base);
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
void R_DrawSurfaceBlock8_mip0 (void);
void R_DrawSurfaceBlock8_mip1 (void);

View file

@ -40,7 +40,7 @@ EXTRA_PROGRAMS= uquake-ggi uquake-mgl uquake-sdl uquake-svga uquake-x11 \
noinst_LIBRARIES= libqfsys.a libqfsnd.a libqfcd.a libqfnet.a
if ASM_ARCH
math_ASM= math.S
math_ASM= math.S cl_math.S
soft_ASM= d_draw.S d_draw16.S d_parta.S d_polysa.S d_scana.S d_spr8.S \
d_varsa.S r_aclipa.S r_aliasa.S r_drawa.S r_edgea.S r_varsa.S \
surf16.s surf8.s

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <dpmi.h>
#include "quakedef.h"
#include "dosisms.h"

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
void CDAudio_Play(byte track, qboolean looping)

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <windows.h>
#include "quakedef.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// chase.c -- chase camera code
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
cvar_t chase_back = {"chase_back", "100"};

View file

@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
void CL_FinishTimeDemo (void);

View file

@ -22,6 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
/*

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cl_main.c -- client main loop
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
// we need to declare some mouse variables here, because the menu system

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cl_parse.c -- parse a message received from the server
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
char *svc_strings[] =

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cl_tent.c -- client side temporary entities
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
int num_temp_entities;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cmd.c -- Quake script command processing module
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
void Cmd_ForwardToServer (void);

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// common.c -- misc functions used in client and server
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#define NUM_SAFE_ARGVS 7

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// conproc.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <windows.h>
#include "conproc.h"
#include "quakedef.h"

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// console.c
#ifdef NeXT
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <libc.h>
#endif
#ifndef _MSC_VER

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* crc.c */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "crc.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// cvar.c -- dynamic variable tracking
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
cvar_t *cvar_vars;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_edge.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_clear: clears a specified rectangle to the specified color
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_init.c: rasterization driver initialization
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"
@ -145,7 +149,7 @@ void D_SetupFrame (void)
for (i=0 ; i<(NUM_MIPS-1) ; i++)
d_scalemip[i] = basemip[i] * d_mipscale.value;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
if (d_subdiv16.value)
d_drawspans = D_DrawSpans16;
else

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_modech.c: called when mode has just changed
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"
@ -36,7 +40,7 @@ D_Patch
*/
void D_Patch (void)
{
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
static qboolean protectset8 = false;

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"
@ -49,7 +53,7 @@ void D_StartParticles (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
==============

View file

@ -25,6 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// d_polyset.c: routines for drawing sets of polygons sharing the same
// texture (used for Alias models)
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"
@ -120,7 +124,7 @@ void D_PolysetSetEdgeTable (void);
void D_RasterizeAliasPolySmooth (void);
void D_PolysetScanLeftEdge (int height);
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -416,7 +420,7 @@ void D_PolysetUpdateTables (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
===================
@ -484,7 +488,7 @@ void D_PolysetScanLeftEdge (int height)
} while (--height);
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*
@ -526,7 +530,7 @@ void D_PolysetSetUpForLineScan(fixed8_t startvertu, fixed8_t startvertv,
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -578,7 +582,7 @@ void D_PolysetCalcGradients (int skinwidth)
r_zistepy = (int)((t1 * p00_minus_p20 - t0 * p10_minus_p20) *
ystepdenominv);
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
a_sstepxfrac = r_sstepx << 16;
a_tstepxfrac = r_tstepx << 16;
#else
@ -589,7 +593,7 @@ void D_PolysetCalcGradients (int skinwidth)
a_ststepxwhole = skinwidth * (r_tstepx >> 16) + (r_sstepx >> 16);
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
#if 0
@ -609,7 +613,7 @@ void InitGel (byte *palette)
#endif
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -679,7 +683,7 @@ void D_PolysetDrawSpans8 (spanpackage_t *pspanpackage)
pspanpackage++;
} while (pspanpackage->count != -999999);
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*
@ -759,7 +763,7 @@ void D_RasterizeAliasPolySmooth (void)
d_ptex = (byte *)r_affinetridesc.pskin + (plefttop[2] >> 16) +
(plefttop[3] >> 16) * r_affinetridesc.skinwidth;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_sfrac = (plefttop[2] & 0xFFFF) << 16;
d_tfrac = (plefttop[3] & 0xFFFF) << 16;
#else
@ -794,7 +798,7 @@ void D_RasterizeAliasPolySmooth (void)
D_PolysetSetUpForLineScan(plefttop[0], plefttop[1],
pleftbottom[0], pleftbottom[1]);
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_pzbasestep = (d_zwidth + ubasestep) << 1;
d_pzextrastep = d_pzbasestep + 2;
#else
@ -819,7 +823,7 @@ void D_RasterizeAliasPolySmooth (void)
d_ptexbasestep = ((r_sstepy + r_sstepx * ubasestep) >> 16) +
((r_tstepy + r_tstepx * ubasestep) >> 16) *
r_affinetridesc.skinwidth;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_sfracbasestep = (r_sstepy + r_sstepx * ubasestep) << 16;
d_tfracbasestep = (r_tstepy + r_tstepx * ubasestep) << 16;
#else
@ -832,7 +836,7 @@ void D_RasterizeAliasPolySmooth (void)
d_ptexextrastep = ((r_sstepy + r_sstepx * d_countextrastep) >> 16) +
((r_tstepy + r_tstepx * d_countextrastep) >> 16) *
r_affinetridesc.skinwidth;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_sfracextrastep = (r_sstepy + r_sstepx*d_countextrastep) << 16;
d_tfracextrastep = (r_tstepy + r_tstepx*d_countextrastep) << 16;
#else
@ -895,7 +899,7 @@ void D_RasterizeAliasPolySmooth (void)
d_pdestbasestep = screenwidth + ubasestep;
d_pdestextrastep = d_pdestbasestep + 1;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_pzbasestep = (d_zwidth + ubasestep) << 1;
d_pzextrastep = d_pzbasestep + 2;
#else
@ -912,7 +916,7 @@ void D_RasterizeAliasPolySmooth (void)
d_ptexbasestep = ((r_sstepy + r_sstepx * ubasestep) >> 16) +
((r_tstepy + r_tstepx * ubasestep) >> 16) *
r_affinetridesc.skinwidth;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_sfracbasestep = (r_sstepy + r_sstepx * ubasestep) << 16;
d_tfracbasestep = (r_tstepy + r_tstepx * ubasestep) << 16;
#else
@ -925,7 +929,7 @@ void D_RasterizeAliasPolySmooth (void)
d_ptexextrastep = ((r_sstepy + r_sstepx * d_countextrastep) >> 16) +
((r_tstepy + r_tstepx * d_countextrastep) >> 16) *
r_affinetridesc.skinwidth;
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
d_sfracextrastep = ((r_sstepy+r_sstepx*d_countextrastep) & 0xFFFF)<<16;
d_tfracextrastep = ((r_tstepy+r_tstepx*d_countextrastep) & 0xFFFF)<<16;
#else

View file

@ -25,6 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"
@ -94,7 +98,7 @@ void D_WarpScreen (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
=============
@ -115,7 +119,7 @@ void D_DrawTurbulent8Span (void)
} while (--r_turb_spancount > 0);
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*
@ -251,7 +255,7 @@ void Turbulent8 (espan_t *pspan)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
=============
@ -389,7 +393,7 @@ void D_DrawSpans8 (espan_t *pspan)
#endif
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
=============

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_sky.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"

View file

@ -24,6 +24,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"
@ -31,7 +35,7 @@ static int sprite_height;
static int minindex, maxindex;
static sspan_t *sprite_spans;
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
=====================

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_surf.c: rasterization driver surface heap manager
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"
#include "r_local.h"

View file

@ -19,7 +19,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_vars.c: global refresh variables
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
@ -46,5 +50,5 @@ short *d_pzbuffer;
unsigned int d_zrowbytes;
unsigned int d_zwidth;
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// d_zpoint.c: software driver module for drawing z-buffered points
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "d_local.h"

View file

@ -28,6 +28,10 @@
$Id$
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <quakedef.h>
#include <stdlib.h>

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/segments.h>
#include <go32.h>
#include <unistd.h>

View file

@ -25,6 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
typedef struct {

View file

@ -21,6 +21,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// draw.c -- this is the only file outside the refresh that touches the
// vid buffer
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#define GL_COLOR_INDEX8_EXT 0x80E5

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// gl_mesh.c: triangle model functions
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
/*

View file

@ -22,6 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// models are the only shared resource between a client and server running
// on the same machine.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
model_t *loadmodel;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_efrag.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
mnode_t *r_pefragtopnode;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_light.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
int r_dlightframecount;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_main.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
entity_t r_worldentity;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_misc.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_surf.c: surface-related refresh code
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
int skytexturenum;

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// screen.c -- master for refresh, status bar, console, chat, notify, etc
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
/*

View file

@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#ifdef GLTEST

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/stat.h>

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/stat.h>

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// gl_vidnt.c -- NT GL vid component
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "winquake.h"
#include "resource.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// gl_warp.c -- sky and water polygons
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
extern model_t *loadmodel;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// host.c -- coordinates spawning and killing of local servers
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -22,6 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
extern cvar_t pausable;

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// in_mouse.c -- dos mouse code
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "dosisms.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// in_null.c -- for systems without a mouse
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
void IN_Init (void)

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// in_sun.c -- SUN/X mouse input handler
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>

View file

@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// in_win.c -- windows 95 mouse and joystick code
// 02/21/97 JCB Added extended DirectInput code to support external controllers.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <dinput.h>
#include "quakedef.h"
#include "winquake.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
/*

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <math.h>
#include "quakedef.h"
@ -181,7 +185,7 @@ void BOPS_Error (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
==================
@ -565,7 +569,7 @@ int GreatestCommonDivisor (int i1, int i2)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
// TODO: move to nonintel.c

View file

@ -30,6 +30,10 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <string.h> /* XoXus: needed for memset call */
#ifndef _UINT32_H

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#ifdef _WIN32

View file

@ -22,6 +22,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// models are the only shared resource between a client and server running
// on the same machine.
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <dpmi.h>
//#include "types.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <go32.h>
#include "mpdosock.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_loop.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_bw.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <dpmi.h>

View file

@ -32,6 +32,10 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <mdfour.h>
unsigned Com_BlockChecksum (void *buffer, int length)

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_comx.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <dos.h>
#include <dpmi.h>

View file

@ -24,6 +24,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef BAN_TEST
#if defined(_WIN32)
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <windows.h>
#elif defined (NeXT)
#include <sys/socket.h>

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_loop.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_ipx.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <dpmi.h>

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_loop.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_loop.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_main.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_vcr.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_mpath.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <dpmi.h>
#include "quakedef.h"
#include "mpdosock.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_loop.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_ser.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_ser.h"
#include "dosisms.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_udp.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include <sys/types.h>

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_vcr.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_vcr.h"

View file

@ -17,6 +17,10 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "net_loop.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_wins.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "winquake.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// net_wipx.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "winquake.h"
#include <wsipx.h>

View file

@ -21,11 +21,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// nonintel.c: code for non-Intel processors only
//
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -60,5 +64,5 @@ void R_SurfacePatch (void)
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM

View file

@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#define RETURN_EDICT(e) (((int *)pr_globals)[OFS_RETURN] = EDICT_TO_PROG(e))

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sv_edict.c -- entity dictionary
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
dprograms_t *progs;

View file

@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"
@ -96,7 +100,7 @@ void R_Alias_clip_z (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
void R_Alias_clip_left (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
{

View file

@ -24,6 +24,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h" // FIXME: shouldn't be needed (is needed for patch
@ -454,7 +458,7 @@ void R_AliasTransformFinalVert (finalvert_t *fv, auxvert_t *av,
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -738,7 +742,7 @@ void R_AliasDrawModel (alight_t *plighting)
}
else
{
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
D_Aff8Patch (currententity->colormap);
#endif
}

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_bsp.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -24,6 +24,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h" // FIXME: shouldn't need to include this
@ -74,7 +78,7 @@ int r_ceilv1;
qboolean r_lastvertvalid;
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================
@ -356,7 +360,7 @@ void R_ClipEdge (mvertex_t *pv0, mvertex_t *pv1, clipplane_t *clip)
R_EmitEdge (pv0, pv1);
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
@ -162,7 +166,7 @@ void R_BeginEdgeFrame (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
==============
@ -205,10 +209,6 @@ addedge:
} while ((edgestoadd = next_edge) != NULL);
}
#endif // !USE_INTEL_ASM
#if !USE_INTEL_ASM
/*
==============
@ -225,10 +225,6 @@ void R_RemoveEdges (edge_t *pedge)
} while ((pedge = pedge->nextremove) != NULL);
}
#endif // !USE_INTEL_ASM
#if !USE_INTEL_ASM
/*
==============
@ -295,7 +291,7 @@ pushback:
}
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*
@ -454,7 +450,7 @@ void R_TrailingEdge (surf_t *surf, edge_t *edge)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
==============
@ -620,7 +616,7 @@ void R_GenerateSpans (void)
R_CleanupSpan ();
}
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM
/*

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_efrag.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_light.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_main.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
@ -230,7 +234,7 @@ void R_Init (void)
R_InitParticles ();
// TODO: collect 386-specific code in one place
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
Sys_MakeCodeWriteable ((long)R_EdgeCodeStart,
(long)R_EdgeCodeEnd - (long)R_EdgeCodeStart);
#endif // USE_INTEL_ASM
@ -462,7 +466,7 @@ void R_ViewChanged (vrect_t *pvrect, int lineadj, float aspect)
r_fov_greater_than_90 = true;
// TODO: collect 386-specific code in one place
#if USE_INTEL_ASM
#ifdef USE_INTEL_ASM
if (r_pixbytes == 1)
{
Sys_MakeCodeWriteable ((long)R_Surf8Start,

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_misc.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
@ -292,7 +296,7 @@ void R_TransformFrustum (void)
}
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================

View file

@ -18,6 +18,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_sky.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
#include "d_local.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// r_sprite.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include <config.h>
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"
@ -337,7 +341,7 @@ void R_DrawSurface (void)
//=============================================================================
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
/*
================

View file

@ -23,9 +23,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# include "config.h"
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#if !USE_INTEL_ASM
#ifndef USE_INTEL_ASM
// all global and static refresh variables are collected in a contiguous block
// to avoid cache conflicts.
@ -39,5 +43,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
int r_bmodelactive;
#endif // !USE_INTEL_ASM
#endif // USE_INTEL_ASM

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// sbar.c -- status bar code
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"

View file

@ -19,6 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// screen.c -- master for refresh, status bar, console, chat, notify, etc
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "quakedef.h"
#include "r_local.h"

View file

@ -30,6 +30,7 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <quakedef.h>
//#include <qtypes.h>
#include <sound.h>

Some files were not shown because too many files have changed in this diff Show more