From: dmt AT bigfoot DOT com (Jeff W./DMT) Newsgroups: comp.os.msdos.djgpp Subject: Re: random weird bug =) Date: Sat, 07 Feb 1998 20:20:25 GMT Organization: ZipLink -- America's Hottest ISP Lines: 59 Message-ID: <34dca0fe.280423@news.ziplink.net> References: <34dc15a3 DOT 261940 AT news DOT ziplink DOT net> <6bhc9d$ml3$1 AT news DOT ox DOT ac DOT uk> NNTP-Posting-Host: chi-ip-1-89.ziplink.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On 7 Feb 1998 10:16:13 GMT, George Foot wrote: >I suspect that something further up your .c file is causing this, for >example a `const' modifier or `inline', or something similar. What >comes before this function definition in the file? >-- >george DOT foot AT merton DOT oxford DOT ac DOT uk I have the following before the function prototypes in my header file: #define MAX_X 500 #define MAX_Y 500 typedef unsigned char byte; struct TileType { int tile; int flag; }; struct ObjType { int tile; int flag; int Active; } and the following variables/declarations before my main() procedure: #include "mapedit.h" #include "mapgfx.h" #include #include struct TileType Map[MAX_Y][MAX_X]; struct ObjType Obj[MAX_Y][MAX_X]; int x,y; byte CurrTile; int MaxTiles; BITMAP *Buffer; DATAFILE *Data; --Jeff W. "The finding of DMT in normal human body fluids opens up interesting moral and legal questions. Since DMT is illegal, as is 'any substance, compound or mixture' containing DMT, it would seem that we are all guilty of possesion of a controlled substance" -Jonathon Ott My weird, trippy page: http://www.geocities.com/SunsetStrip/Alley/3450/index.html