Not quite done yet, two more commits after this should do it for common

though..
This commit is contained in:
Joseph Carter 2000-03-24 12:43:07 +00:00
parent 4c0fdad618
commit 0e457bf091
25 changed files with 554 additions and 365 deletions

View file

@ -1,24 +1,31 @@
/* /*
net.h - interface to the networking layer net.h
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or interface to the networking layer
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef __NET_H #ifndef __NET_H

View file

@ -1,25 +1,33 @@
/* /*
net_chan.c - network channel net_chan.c
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or network channel
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include <qtypes.h> #include <qtypes.h>
#include <quakedef.h> #include <quakedef.h>
#include <cvar.h> #include <cvar.h>
@ -33,7 +41,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _WIN32 #ifdef _WIN32
#include "winquake.h" #include <winquake.h>
#endif #endif
#define PACKET_HEADER 8 #define PACKET_HEADER 8

View file

@ -1,28 +1,33 @@
/* /*
net_com.c - MD4-based checksum utility functions net_com.c
MD4-based checksum utility functions
Copyright (C) 1999,2000 contributors of the QuakeForge project Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors Please see the file "AUTHORS" for a list of contributors
Author: Jeff Teunissen <d2deek@pmail.net> Author: Jeff Teunissen <d2deek@pmail.net>
Date: 01 Jan 2000 Date: 01 Jan 2000
This file is part of the QuakeForge utility library. 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 free software; you can redistribute it and/or This program is distributed in the hope that it will be useful,
modify it under the terms of the GNU General Public License but WITHOUT ANY WARRANTY; without even the implied warranty of
as published by the Free Software Foundation; either version 2 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, See the GNU General Public License for more details.
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:
You should have received a copy of the GNU General Public License Free Software Foundation, Inc.
along with this program; if not, write to the Free Software 59 Temple Place - Suite 330
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Boston, MA 02111-1307, USA
$Id$
*/ */
#include <mdfour.h> #include <mdfour.h>
@ -31,11 +36,7 @@ unsigned Com_BlockChecksum (void *buffer, int length)
{ {
int digest[4]; int digest[4];
unsigned val; unsigned val;
// struct mdfour md;
// mdfour_begin (&md);
// mdfour_update (&md, (unsigned char *) buffer, length);
// mdfour_result (&md, (unsigned char *) digest);
mdfour ( (unsigned char *) digest, (unsigned char *) buffer, length ); mdfour ( (unsigned char *) digest, (unsigned char *) buffer, length );
val = digest[0] ^ digest[1] ^ digest[2] ^ digest[3]; val = digest[0] ^ digest[1] ^ digest[2] ^ digest[3];
@ -45,10 +46,5 @@ unsigned Com_BlockChecksum (void *buffer, int length)
void Com_BlockFullChecksum (void *buffer, int len, unsigned char *outbuf) void Com_BlockFullChecksum (void *buffer, int len, unsigned char *outbuf)
{ {
// struct mdfour md;
// mdfour_begin (&md);
// mdfour_update (&md, (unsigned char *) buffer, len);
// mdfour_result (&md, outbuf);
mdfour ( outbuf, (unsigned char *) buffer, len ); mdfour ( outbuf, (unsigned char *) buffer, len );
} }

View file

@ -1,23 +1,32 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_ser.h
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_ser.h
#ifndef _NET_SER_H #ifndef _NET_SER_H
#define _NET_SER_H #define _NET_SER_H

View file

@ -1,33 +1,40 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_udp.c
Portions Copyright (C) 1999,2000 Nelson Rush.
Portions Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1999,2000 Nelson Rush.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_udp.c
#include "qtypes.h" #include <qtypes.h>
#include "quakedef.h" #include <quakedef.h>
#include "net.h" #include <net.h>
#include "sys.h" #include <sys.h>
#include "console.h" #include <console.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
@ -63,7 +70,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#undef model_t #undef model_t
#ifdef _WIN32 #ifdef _WIN32
# include "winquake.h" # include <winquake.h>
# undef EWOULDBLOCK # undef EWOULDBLOCK
# define EWOULDBLOCK WSAEWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK
#endif #endif

View file

@ -1,23 +1,32 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_udp.h
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_udp.h
int UDP_Init (void); int UDP_Init (void);
void UDP_Shutdown (void); void UDP_Shutdown (void);
@ -37,3 +46,4 @@ int UDP_GetAddrFromName (char *name, struct qsockaddr *addr);
int UDP_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); int UDP_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2);
int UDP_GetSocketPort (struct qsockaddr *addr); int UDP_GetSocketPort (struct qsockaddr *addr);
int UDP_SetSocketPort (struct qsockaddr *addr, int port); int UDP_SetSocketPort (struct qsockaddr *addr, int port);

View file

@ -1,27 +1,36 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_udp6.c
Portions Copyright (C) 1999,2000 Nelson Rush.
Portions Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 Nelson Rush.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 2000 Marcus Sundberg [mackan@stacken.kth.se]
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_udp.c
#include "quakedef.h" #include <quakedef.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
@ -54,7 +63,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#undef model_t #undef model_t
#ifdef _WIN32 #ifdef _WIN32
# include "winquake.h" # include <winquake.h>
# undef EWOULDBLOCK # undef EWOULDBLOCK
# define EWOULDBLOCK WSAEWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK
#endif #endif

View file

@ -1,23 +1,32 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_wins.h
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_wins.h
int WINS_Init (void); int WINS_Init (void);
void WINS_Shutdown (void); void WINS_Shutdown (void);
@ -37,3 +46,4 @@ int WINS_GetAddrFromName (char *name, struct qsockaddr *addr);
int WINS_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); int WINS_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2);
int WINS_GetSocketPort (struct qsockaddr *addr); int WINS_GetSocketPort (struct qsockaddr *addr);
int WINS_SetSocketPort (struct qsockaddr *addr, int port); int WINS_SetSocketPort (struct qsockaddr *addr, int port);

View file

@ -1,23 +1,29 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. net_wipx.h
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to:
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// net_wipx.h
int WIPX_Init (void); int WIPX_Init (void);
void WIPX_Shutdown (void); void WIPX_Shutdown (void);
@ -37,3 +43,4 @@ int WIPX_GetAddrFromName (char *name, struct qsockaddr *addr);
int WIPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); int WIPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2);
int WIPX_GetSocketPort (struct qsockaddr *addr); int WIPX_GetSocketPort (struct qsockaddr *addr);
int WIPX_SetSocketPort (struct qsockaddr *addr, int port); int WIPX_SetSocketPort (struct qsockaddr *addr, int port);

View file

@ -1,33 +1,38 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. nonintel.c
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or code for non-Intel processors only
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
//
// nonintel.c: code for non-Intel processors only
//
#include "quakedef.h" #include <quakedef.h>
#ifdef UQUAKE #ifdef UQUAKE
#include "r_local.h" #include <r_local.h>
#include "d_local.h" #include <d_local.h>
#endif // UQUAKE #endif // UQUAKE
#if !id386 #if !id386

View file

@ -1,28 +1,35 @@
/* /*
Copyright (C) 1999,2000 contributors of the QuakeForge project nozip.h
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1999,2000 contributors of the QuakeForge project
but WITHOUT ANY WARRANTY; without even the implied warranty of Please see the file "AUTHORS" for a list of contributors
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// comndef.h -- general definitions
#ifndef _NOZIP_H #ifndef _NOZIP_H
#define _NOZIP_H #define _NOZIP_H
#include "config.h" #include <config.h>
#ifndef HAS_ZLIB #ifndef HAS_ZLIB
#define gzFile FILE #define gzFile FILE

View file

@ -6,7 +6,6 @@
Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors Please see the file "AUTHORS" for a list of contributors
Portions Copyright (C) 1999,2000 Nelson Rush.
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
@ -22,9 +21,11 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to: along with this program; if not, write to:
Free Software Foundation, Inc. Free Software Foundation, Inc.
59 Temple Place - Suite 330 59 Temple Place - Suite 330
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
$Id$
*/ */
#include <string.h> #include <string.h>

View file

@ -1,3 +1,32 @@
/*
phys.h
(description)
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/
// edict->movetype values // edict->movetype values
#define MOVETYPE_NONE 0 // never moves #define MOVETYPE_NONE 0 // never moves
#define MOVETYPE_ANGLENOCLIP 1 #define MOVETYPE_ANGLENOCLIP 1

View file

@ -3,14 +3,12 @@
Dynamic shared object loader Dynamic shared object loader
Copyright (C) 1999, 2000 contributors of the QuakeForge project Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors Please see the file "AUTHORS" for a list of contributors
Author: Zephaniah E. Hull <mwarp@whitestar.soark.net> Author: Zephaniah E. Hull <mwarp@whitestar.soark.net>
Date: 11 Feb 2000 Date: 11 Feb 2000
This file is part of the QuakeForge Core system.
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 as published by the Free Software Foundation; either version 2
@ -25,9 +23,11 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to: along with this program; if not, write to:
Free Software Foundation, Inc. Free Software Foundation, Inc.
59 Temple Place - Suite 330 59 Temple Place - Suite 330
Boston, MA 02111-1307, USA. Boston, MA 02111-1307, USA
$Id$
*/ */
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@ -35,7 +35,7 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <sys/param.h> #include <sys/param.h>
#else #else
#include "input.h" #include <input.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
@ -49,7 +49,6 @@
#define LIBDIR #define LIBDIR
#endif #endif
//cvar_t drv_path = {"drv_path", ".:" LIBDIR "/quakeforge"};
cvar_t *fs_drvpath; cvar_t *fs_drvpath;
input_pi *IN; input_pi *IN;

View file

@ -1,24 +1,30 @@
/* /*
plugin.h plugin.h
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1999,2000 contributors of the QuakeForge project
but WITHOUT ANY WARRANTY; without even the implied warranty of Please see the file "AUTHORS" for a list of contributors
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef __MODULES__ #ifndef __MODULES__

View file

@ -1,28 +1,36 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pmove.c
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include "qtypes.h" #include <qtypes.h>
#include "quakedef.h" #include <quakedef.h>
#include "mathlib.h" #include <mathlib.h>
movevars_t movevars; movevars_t movevars;

View file

@ -1,24 +1,31 @@
/* /*
pmove.h pmove.h
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef __PMOVE_H #ifndef __PMOVE_H

View file

@ -1,23 +1,31 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pmove_simple.h
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef __PMOVE_SIMPLE_H #ifndef __PMOVE_SIMPLE_H

View file

@ -1,29 +1,37 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pmovetst.c
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include "qtypes.h" #include <qtypes.h>
#include "quakedef.h" #include <quakedef.h>
#include "sys.h" #include <sys.h>
#include "mathlib.h" #include <mathlib.h>
#include "console.h" #include <console.h>
static hull_t box_hull; static hull_t box_hull;
static dclipnode_t box_clipnodes[6]; static dclipnode_t box_clipnodes[6];

View file

@ -1,24 +1,32 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pr_cmds.c
Copyright (C) 1999,2000 contributors of the QuakeForge project
Portions Copyright (C) 1999,2000 Nelson Rush.
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 Nelson Rush.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include <ctype.h> #include <ctype.h>

View file

@ -1,23 +1,31 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pr_comp.h
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
// this file is shared by quake and qcc // this file is shared by quake and qcc

View file

@ -1,25 +1,32 @@
/* /*
pr_edict.c - entity dictionary pr_edict.c
Copyright (C) 1996-1997 Id Software, Inc.
Copyright (C) 1999,2000 contributors of the QuakeForge project
Portions Copyright (C) 1999,2000 Nelson Rush.
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or entity dictionary
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 Nelson Rush.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include <ctype.h> #include <ctype.h>

View file

@ -1,23 +1,31 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. pr_exec.c
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#include <ctype.h> #include <ctype.h>

View file

@ -1,33 +1,41 @@
/* /*
Copyright (C) 1996-1997 Id Software, Inc. progs.h
Copyright (C) 1999,2000 contributors of the QuakeForge project
Please see the file "AUTHORS" for a list of contributors
This program is free software; you can redistribute it and/or (description)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef _PROGS_H #ifndef _PROGS_H
#define _PROGS_H #define _PROGS_H
#include "pr_comp.h" // defs shared with qcc #include <pr_comp.h> // defs shared with qcc
#ifdef UQUAKE #ifdef UQUAKE
#include "../uquake/progdefs.h" // generated by program cdefs #include <../uquake/progdefs.h> // generated by program cdefs
#elif defined(QUAKEWORLD) #elif defined(QUAKEWORLD)
#include "../qw_server/progdefs.h" // generated by program cdefs #include <../qw_server/progdefs.h> // generated by program cdefs
#endif #endif
typedef union eval_s typedef union eval_s

View file

@ -1,22 +1,31 @@
/* /*
protocol.h - communications protocol (quake1) protocol.h
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or communications protocol (quake1)
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, Copyright (C) 1996-1997 Id Software, Inc.
but WITHOUT ANY WARRANTY; without even the implied warranty of Copyright (C) 1999,2000 contributors of the QuakeForge project
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please see the file "AUTHORS" for a list of contributors
See the GNU General Public License for more details. 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.
You should have received a copy of the GNU General Public License This program is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/ */
#ifndef __protocol_h #ifndef __protocol_h