Commit e123336b authored by Steven Fuller's avatar Steven Fuller

Removed -fwritable-strings

parent cd368182
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
* Game able to cope at any virtual resolution in software mode. OpenGL * Game able to cope at any virtual resolution in software mode. OpenGL
handles this transparently handles this transparently
* Audio support using OpenAL * Audio support using OpenAL
- Problem is, that SDL and OpenAL would need pthread, which with SVGAlib is
a no-go... oh well.
* Add support for the Mac version, if possible * Add support for the Mac version, if possible
* Network support! * Network support!
* Fully compile with no warnings/errors using -Wall -ansi -pedantic * Fully compile with no warnings/errors using -Wall -ansi -pedantic
* Port to: Linux/SVGAlib, Linux/X, Linux/OpenGL, DOS/Allegro, Win32/GDI,
Win32/DX, Win32/D3D, Win32/OpenGL, BeOS?, MacOS?
* Ease in using demos. Playing demos from files, recording to files, batch
playing, and so on.
CC = gcc CC = gcc
#CFLAGS = -Wall -O6 -fomit-frame-pointer -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -DUSEVGA #CFLAGS = -Wall -O6 -fomit-frame-pointer -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -DUSEVGA
CFLAGS = -g -DUSEVGA -fwritable-strings CFLAGS = -g -DUSEVGA
#CFLAGS = -Os -fwritable-strings #CFLAGS = -Os -fwritable-strings
#CFLAGS = -g -Wall -DUSEVGA -DDEBUG #CFLAGS = -g -Wall -DUSEVGA -DDEBUG
#CFLAGS = -g -DUSEVGA -DDEBUG #CFLAGS = -g -DUSEVGA -DDEBUG
...@@ -10,7 +10,7 @@ OBJS = objs.o misc.o id_ca.o id_in.o id_sd.o id_vl.o id_vh.o id_us.o \ ...@@ -10,7 +10,7 @@ OBJS = objs.o misc.o id_ca.o id_in.o id_sd.o id_vl.o id_vh.o id_us.o \
wl_inter.o wl_menu.o wl_play.o wl_state.o wl_text.o wl_main.o \ wl_inter.o wl_menu.o wl_play.o wl_state.o wl_text.o wl_main.o \
wl_debug.o wl_debug.o
LFLAGS = -lm -lvga LFLAGS = -lm -lvga
#LFLAGS = -lm -lvga ElectricFence-2.2.2/libefence.a -lpthread #LFLAGS = -lm -lvga ElectricFence-2.2.2/libefence.a -lpthread
NASM = nasm NASM = nasm
......
...@@ -10,7 +10,12 @@ some sort of garbage collection ...@@ -10,7 +10,12 @@ some sort of garbage collection
the right place the right place
* every structure that is read/written must be PACKED, with datatypes * every structure that is read/written must be PACKED, with datatypes
specifically set! (ie, no int, but short or long int) specifically set! (ie, no int, but short or long int)
* is that memory intro screen needed anymore? probably not * or at least have PACKED versions of read/write structures, and transfer
to/from just for reading, so only not-packed structures are used during
actual gameplay/etc.
* is that memory intro screen needed anymore? probably not, although it
would be nice to show what version is loaded, but doom just printed text
* then, what about PG13? OH NO!!!!
* fix the input code, everything is spread out... ideally everything should * fix the input code, everything is spread out... ideally everything should
work the same, let the input handler do it all instead work the same, let the input handler do it all instead
* when viewsize is around 20, sprites end up being drawn over the border. * when viewsize is around 20, sprites end up being drawn over the border.
...@@ -26,11 +31,10 @@ version than a spanish version ...@@ -26,11 +31,10 @@ version than a spanish version
* fix status bar gfx junk, and those tiles that do not wish to be extracted * fix status bar gfx junk, and those tiles that do not wish to be extracted
* Use either US_CheckParm or MS_CheckParm. * Use either US_CheckParm or MS_CheckParm.
* perhaps rename UPLOAD * perhaps rename UPLOAD
TOO MANY #IFDEF. * TOO MANY #IFDEFs
and upload builds with lots of wl6 code anyway (sound references were just * and upload builds with lots of wl6 code anyway (sound references were just
ifdefed ifndefed out)
* verify if the sounds and graphics are correctly numbered, once again... * verify if the sounds and graphics are correctly numbered, once again...
* remove -fwritable-strings
* find out why shareware version produces these messages: * find out why shareware version produces these messages:
CA_FarRead only read 471 out of 1671 CA_FarRead only read 471 out of 1671
Trying to free null audio chunk 207! Trying to free null audio chunk 207!
......
...@@ -111,11 +111,12 @@ int US_CheckParm(char *parm,char **strings) ...@@ -111,11 +111,12 @@ int US_CheckParm(char *parm,char **strings)
// supported. // supported.
// //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
void US_Print(char *s) void US_Print(char *str)
{ {
char c, *se; char c, *se, *s, *sz = strdup(str);
word w,h; word w, h;
s = sz;
while (*s) while (*s)
{ {
se = s; se = s;
...@@ -140,6 +141,8 @@ void US_Print(char *s) ...@@ -140,6 +141,8 @@ void US_Print(char *s)
else else
PrintX += w; PrintX += w;
} }
free(sz);
} }
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
...@@ -228,10 +231,13 @@ void US_CPrintLine(char *s) ...@@ -228,10 +231,13 @@ void US_CPrintLine(char *s)
// supported. // supported.
// //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
void US_CPrint(char *s) void US_CPrint(char *str)
{ {
char c, *se; /* Functions like to pass a string constant */
char c, *se, *s, *sz = strdup(str);
s = sz;
while (*s) while (*s)
{ {
se = s; se = s;
...@@ -248,6 +254,8 @@ void US_CPrint(char *s) ...@@ -248,6 +254,8 @@ void US_CPrint(char *s)
s++; s++;
} }
} }
free(sz);
} }
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
...@@ -305,7 +313,7 @@ US_DrawWindow(word x,word y,word w,word h) ...@@ -305,7 +313,7 @@ US_DrawWindow(word x,word y,word w,word h)
// USL_XORICursor() - XORs the I-bar text cursor. Used by US_LineInput() // USL_XORICursor() - XORs the I-bar text cursor. Used by US_LineInput()
// //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
static void USL_XORICursor(int x,int y,char *s,word cursor) static void USL_XORICursor(int x, int y, char *s, word cursor)
{ {
static boolean status; // VGA doesn't XOR... static boolean status; // VGA doesn't XOR...
char buf[MaxString]; char buf[MaxString];
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
/* WL6 = 1 */ /* WL6 = 1 */
/* SDM = 2 */ /* SDM = 2 */
/* SOD = 3 */ /* SOD = 3 */
#define WMODE 3 #define WMODE 1
#if WMODE == 0 #if WMODE == 0
/* #define SPEAR */ /* #define SPEAR */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment