Commit graph

62 commits

Author SHA1 Message Date
Zack Middleton
9e03e606cd Merge pull request #108 from Pan7/memmove
No unix memmove for MSVC
2015-06-18 13:13:25 -05:00
Tim Angus
68dbb8a1bb Commit newly generated gram.c 2015-06-06 23:06:19 +01:00
Tim Angus
01275693a6 Fix cppcheck warning 2015-06-06 22:56:45 +01:00
Pan7
16c67b96c2 No unix memmove for msvc 2015-01-17 18:15:03 +01:00
Zack Middleton
e7c7ca1309 Merge pull request #100 from Pan7/q3lcc
q3lcc option -lcppdir and -lrccdir.

Enabled using `q3lcc -Wo-lrccdir=/path/to/dir -Wo-cppdir=/path/to/dir`.
2015-01-07 19:45:12 -06:00
Zack Middleton
bd2af6e4ea Use MSVC mode marcos for creat in q3cpp on Windows
Using unix mode 0666 for creat was causing crashes when compiled with MSVC.
So use the marcos recommended by MSDN. MinGW also has the marcos, so apply
to Windows builds in general.
2015-01-07 19:27:59 -06:00
Zack Middleton
aa1aad928e Merge pull request #98 from Pan7/lcc
Windows header files for q3lcc
2015-01-07 19:31:51 -06:00
Zack Middleton
010821384c Merge pull request #97 from Pan7/outp
Renaming outp to outbufp because outp() is an existing function
2015-01-07 19:27:53 -06:00
Jun Woong
8469c40c2b Stop LCC from warning about null pointer conversion to function pointer
Fixed LCC to correctly diagnose expressions with NPC. It no longer reports messages such as

    warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent
2015-01-06 23:43:04 -06:00
Pan7
c4f851668b q3lcc option -lcppdir and -lrccdir 2015-01-07 03:43:18 +01:00
Pan7
a82fb6d1b1 Windows header files for q3lcc 2014-12-26 23:33:52 +01:00
Pan7
6de3f51c23 Renaming outp to outbufp because outp() is an existing function 2014-12-26 12:52:10 +01:00
/dev/humancontroller
9d626b6a12 drop some useless return statements 2013-05-30 15:43:21 -05:00
Mikael Pettersson
1c66e30e7e Fix memmove()
[The lcc source] overrides the libc memmove() with its own implementation,
but that implementation fails to follow the specification. In particular,
it returns NULL rather than memmove()'s first parameter.

GCC now optimizes based on this aspect of the specification, so things go
wrong at runtime.

[Text & patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56881#c8]
2013-04-14 20:08:08 +01:00
Tim Angus
d201443350 Remove a few name tags 2013-02-16 21:03:56 +00:00
Zack Middleton
f3e7012bdb REFACTOR [a vs an]
From /dev/humancontroller.
2012-06-18 16:31:16 +00:00
Thilo Schulz
52aed503b5 Bug 5146 - Remove last of warnings under gcc 4.6.1 for Linux, patch by q3urt.undead@gmail.com 2011-08-05 13:33:15 +00:00
Zachary Slater
5e0d0efd2e http://www.angryflower.com/aposter.html
(minor English issues, most of which are via /dev/humancontroller)
2011-02-09 05:51:33 +00:00
Thilo Schulz
f6ea5315f7 Fix a warning 2011-02-04 14:19:51 +00:00
Tim Angus
5004ada284 * Fix some warnings in lcc compile 2009-10-25 23:44:20 +00:00
Tim Angus
8e04904375 * Make LCC's handling of -D arguments on windows consistent with other plaftorms 2009-10-15 11:36:51 +00:00
Tim Angus
72dea0a184 * Fix some new GCC 4.3 warnings
* Fix many many strict aliasing warnings, now that it's re-enabled
2008-11-10 23:55:22 +00:00
Ludwig Nussel
c754d6fdfb fix strict aliasing issues
Patch by Przemysław Iskra (#3805)
2008-11-03 17:03:54 +00:00
Tim Angus
2c0861c1ce * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend
<TylerSchwend@gmail.com>)
* (bug 3623) COMMAND is mapped to the ALT key (Matthias <Kapffer@macbay.de>)
* (bug 3665) Typo error in FS_FOpenFileByMode function (TsT <tst2006@gmail.com>)
* (bug 3669) Some files left out of Solaris Packages (Vincent Cojot
  <vincent@cojot.name>)
* (bug 3680) server quit messages (Ben Millwood)
* (bug 3682) Maps with >1024 models cause a segfault (misantropia
  <bnoordhuis@gmail.com>)
* (bug 3683) R_FindShader(): negative lightmap indexes cause stray pointers
  (misantropia <bnoordhuis@gmail.com>)
* (bug 3688) q3asm potential segfault fix and other changes (TsT
  <tst2006@gmail.com>)
* (bug 3695) Not allowing to write file with lib extention (.dll/.so/...) (TsT
  <tst2006@gmail.com>)
* (bug 3696) make-macosx-ub.sh outdated by revision 1340; test for Tiger not
   working (Matthias <Kapffer@macbay.de>)
* (bug 3698) #error reported as warning in q3cpp (and no #warning support)
  (Ben Millwood)
* (bug 3703) restoring the valued pre-SDL window behaviour (/dev/humancontroller
  <devhc97@gmail.com>)
2008-07-05 23:50:38 +00:00
Tony J. White =
f222785168 * (bug 3611) prevent global symbol conflict on some systems (Mac OS X) for
lcc's getopt (Ben Millwood)
2008-04-23 17:39:39 +00:00
Tim Angus
2052b94adc * Remove redundant win32 code in LCC which drew -I flags from the "include"
environment variable
2007-09-15 00:02:50 +00:00
Tim Angus
c7c2ee1b84 * Improve Makefile startup time
+ Merge q3asm and q3lcc Makefiles into the core Makefile
  + Don't find .d files, create a list from .o
  + .asm files now depend on q3lcc
  + .qvm files now depend on q3asm
* IMPORTANT NOTE: do a "make distclean" if you have problems
2007-09-12 23:37:33 +00:00
Tim Angus
fb76f57887 * Obsolete files 2007-09-05 19:46:23 +00:00
Ludwig Nussel
88b2b82b00 SunOS -> sunos (patch by Vincent Cojot) 2006-04-23 20:59:06 +00:00
Tim Angus
4f55e9f989 * Fix a warning introduced by the recent LCC fix 2006-03-24 16:28:07 +00:00
Tim Angus
ffc78a67ba * LCC bug fix from the how-the-fuck-did-that-ever-work? department 2006-03-21 21:58:39 +00:00
Tim Angus
9f427d8852 * Fix a bug where q3cpp's include paths were not set correctly 2006-01-15 21:17:03 +00:00
Tim Angus
e74947be2c * x86 OS X support 2006-01-15 15:22:13 +00:00
Ryan C. Gordon
b06643f41d Fixed compiler warning about uninitialized variables. 2006-01-14 09:16:16 +00:00
Tim Angus
310190a466 * Support for MinGW cross compilation 2005-12-29 00:04:41 +00:00
Ryan C. Gordon
820f41162e Another "long double" ... 2005-12-01 10:59:50 +00:00
Ryan C. Gordon
4517e7a34b Fixed some compiler warnings in lcc...mostly "long double" stuff. 2005-11-28 09:53:09 +00:00
Ryan C. Gordon
807ba08558 Must explicitly define MACOS_X here or lcc won't build on the Mac. 2005-11-28 09:50:55 +00:00
Tim Angus
382c6adb54 * Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
* Remove -gfull from linux section in Makefile -- it's darwin only
* Cast away some warnings that surfaced from using "new" AL headers
* Various whitespace and consistency fixes
2005-11-26 15:01:28 +00:00
Ryan C. Gordon
721b9a7d01 Mac OS X work...lots of little changes that touch a lot of random places.
Still work to be done, but this at least matches the PowerPC Linux status
 now.

MacOS-specific directory (and XCode project) is gone...this now uses SDL,
 OpenAL, and the Unix Makefiles.

--ryan.
2005-11-26 07:46:21 +00:00
Tim Angus
bbf2e36b5b * I'm so anal 2005-11-06 16:51:28 +00:00
Tim Angus
f20cca46e8 * Install the tools on every build, so a distclean isn't necessary if the tool
source changes now
* Basically rewrote the lcc Makefile to be more sane
* Removed various bits of lcc that weren't built/needed
2005-11-06 16:50:58 +00:00
Tim Angus
2cc87dfc9d * Removed the last of the binary target stuff from lcc (hopefully) 2005-11-02 16:05:14 +00:00
Tim Angus
2d2df7682d * Removed the lcc self tests -- there are none that test bytecode 2005-11-02 15:28:16 +00:00
Tim Angus
8b63fdab58 * Fix for lcc on windows so that it can execute files with spaces in them 2005-11-02 02:08:29 +00:00
Tim Angus
87cd6f8a93 * Split off q_platform.h from q_shared.h
* Removed lcc PATH hack and replaced with something slightly less hacky
* Removed all platform specific hostfiles from lcc and replaced with bytecode.c
  (from ankon)
* Turned lcc option "-S" on permanently
* Improved q3cpp so that it recursively adds include dirs to its list
2005-11-01 22:09:15 +00:00
Tim Angus
acf1f46a2b * More Solaris work 2005-11-01 16:05:06 +00:00
Tim Angus
0a3e96af77 * Further work on the Solaris port from Vincent S. Cojot 2005-10-31 16:46:05 +00:00
Tim Angus
c5bdb034f2 * Beginnings of Solaris support from Vincent S. Cojot
* Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO
2005-10-29 22:05:20 +00:00
Tim Angus
f455a27edd * Use platform headers to source various libc prototypes instead of unsafe
static ones (from vapier)
2005-10-26 23:08:56 +00:00