Bernhard M. Wiedemann
1c1590d6c0
Drop build date from generated file
...
for reproducible builds.
Without this, dagcheck.c in the debugsource package
varies across builds.
2025-10-08 12:32:13 +01:00
Tim Angus
d49ea96203
Don't add quotes when not needed for LCC process spawning
2025-09-19 16:15:41 +01:00
Tim Angus
f976711fb4
Fix various warnings
2025-09-07 17:03:20 +01:00
Tim Angus
787bdba0ec
Rewrite the LCC process spawning code on Windows, to handle file names containing spaces
2025-08-12 20:10:46 +01:00
Tim Angus
d89925ffba
Fix a few misleading indentation warnings
2025-07-13 22:57:33 +01:00
Tim Angus
d793e38f58
Expand buffers to prevent potential truncation
2025-07-13 13:29:50 +01:00
Tim Angus
aea99aa3a3
Replace various sprintf calls with snprintf calls
2025-07-13 13:29:50 +01:00
Tim Angus
c9697a0104
Rename LCC constexpr function to constantexpr, avoiding C23 keyword clash
2025-03-08 13:00:48 +00:00
Zack Middleton
5ede35d8dd
Fix building QVMs on Linux with Windows line endings
...
On non-Windows, compiling QVM tools failed if dagcheck.md had CRLF line
endings and compiling QVMs failed if game source had CRLF line endings.
Also made Windows open the files as binary (no automatic CRLF to LF) so
it behaves the same as on non-Windows.
2023-12-26 23:26:47 -05:00
Tim Angus
8e74119d0f
Avoid platform sed differences
2020-09-08 13:25:50 +01:00
Tim Angus
909ab13aeb
Make LCC path resolution more robust
2020-08-29 21:40:57 +01:00
Bernhard M. Wiedemann
a96f32eba2
q3rcc: Allow to override build date
...
Allow to override __DATE__ and __TIME__ with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
This behavior is what gcc already does.
2019-07-11 14:20:31 +01:00
David CARLIER
76ec9fb6bd
Few LCC memory fixes.
2017-12-15 18:08:23 -06:00
Edward Betts
fe42b8653d
Correct spelling mistakes.
2017-11-22 01:40:20 -06:00
Thomas Köppe
18d6c8fda2
[botlib] Use floating point absolute value rather than truncate to integer
2016-07-25 18:36:31 +01:00
Thomas Köppe
9a5add2b60
[tools/asm/q3asm.c] Remove 'abs(unsigned)', which is unnecessary and potentially wrong
2016-07-25 18:35:33 +01:00
Victor Roemer
398dea397c
Fix Makefile for OSX
...
Bump base SDK from 10.5 -> 10.7
Just use the builtin __APPLE__
2016-06-12 17:17:33 -04:00
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
945f01d4af
more '\n' business
...
From /dev/humancontroller.
2012-06-19 15:14:57 +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
Thilo Schulz
2eb9975334
Fix nasty crash bug
2011-05-09 21:47:41 +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
Ludwig Nussel
368a3be2a6
64bit Windows fix (patch by Marcus Meissner)
2010-04-16 09:29:34 +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
Ryan C. Gordon
79fadbf271
Fixed compiler warning (glibc complains if you don't check getcwd() retval).
2009-09-15 05:50:55 +00:00
Ryan C. Gordon
d03120f0b0
Fixed a compiler warning on Apple's GCC.
2009-09-15 05:34:16 +00:00
Ryan C. Gordon
94657a2a2a
Make q3asm's CodeError print to stderr.
...
Fixes Bugzilla #3845 .
2009-09-14 23:51:35 +00:00
Zachary Slater
fa3f044257
This patch from Monk fixes the q3asm help screen
...
Bugzilla bug 3986
http://bugzilla.icculus.org/show_bug.cgi?id=3986
2009-06-14 21:45:55 +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
31c24bd0d2
* (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)
...
* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
2007-11-02 23:36:23 +00:00