Goober5000
|
ff675c3653
|
New method of handling quotes and comments that examines lines character by character like most languages do, instead of just searching for the start of a comment. If a comment character is inside a quoted string, it will not kick off a new comment. (This actually fixes the core design flaw that caused semicolons to truncate messages, so the $semicolon tag is technically no longer necessary. It will still be kept, of course.) Fixes Mantis #3001.
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10492 387891d4-d844-0410-90c0-e4c51a9137d3
|
2014-03-14 19:50:32 +10:00 |
|
Goober5000
|
0eb5606527
|
the #define already has a (char)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10491 387891d4-d844-0410-90c0-e4c51a9137d3
|
2014-03-14 19:50:31 +10:00 |
|
niffiwan
|
7d846defa5
|
Coverity 110733[01]: Negative array index read in get_string_or_variable()
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10218 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-12-15 12:23:02 +10:00 |
|
Goober5000
|
f3c902c39b
|
add wing_bash_ship_name, which handles the hash symbol thing, accommodates Blue Planet's capship trick, and works in FRED and while we're at it, do a little bit of const'ing
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10198 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-12-08 19:52:57 +10:00 |
|
niffiwan
|
f301cefe2c
|
redo r9978 with BUF-1 instead of x[BUF+1]
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9994 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-10-31 19:25:03 +10:00 |
|
niffiwan
|
f5757f8591
|
Coverity 1093664: Out-of-bounds write
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9978 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-10-27 13:51:49 +10:00 |
|
niffiwan
|
0e561c822a
|
Coverity 1093500: Missing break in switch
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9977 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-10-27 13:51:49 +10:00 |
|
Goober5000
|
bce047db1e
|
fix handling of multi-line comments, and add !* and *! as a possible option
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9945 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-10-16 19:46:02 +10:00 |
|
Goober5000
|
69e1d4e36b
|
the adjustment should be fixed this way, since most people don't count from 0 to n-1
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9846 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-29 22:12:22 +10:00 |
|
The_E
|
52381d05db
|
Small adjustment to the error message here to minimize confusion
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9844 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-29 22:12:22 +10:00 |
|
The_E
|
16e60920cf
|
Changes an Assert to an Assertion in order to provide better feedback in case stuff_int_list fails due to too many entries in the passed list of integers
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9843 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-29 22:12:22 +10:00 |
|
Goober5000
|
8cf10e86f8
|
remove Bobboau's "better error messages" which were never fully implemented and are more distracting than helpful
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9802 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-20 19:46:41 +10:00 |
|
Goober5000
|
138e6b853f
|
yeesh... a veritable cascade of const-correctness
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9783 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-13 20:18:32 +10:00 |
|
Goober5000
|
3550b720cb
|
remove requirement that game_settings.tbl should specify a campaign filename with an extension
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9771 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-09-13 20:18:31 +10:00 |
|
Goober5000
|
8926a4de06
|
Yarn's patch to make version checking work correctly
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9640 387891d4-d844-0410-90c0-e4c51a9137d3
|
2013-06-11 19:22:14 +10:00 |
|
Goober5000
|
2e2c1afe38
|
there is actually a way to check for extra sound values per Mantis #2048, and here it is
|
2012-12-17 05:54:18 +00:00 |
|
Goober5000
|
bc26caba28
|
follow-up to 9355: since we have a version of get_string that accepts SCP_string, just use that
|
2012-11-19 05:36:05 +00:00 |
|
The_E
|
def96b21d2
|
Increase the buffer size for stuff_string_list(SCP_vector<SCP_string>) to 2048. If this function was used with substrings longer than NAME_LENGTH, this would cause stack corruption due to a buffer overrun.
|
2012-11-18 17:58:05 +00:00 |
|
Goober5000
|
acac926656
|
update const-correctness
|
2012-10-01 03:19:31 +00:00 |
|
Goober5000
|
fcbf33aeab
|
some const stuff, useful for the sounds patch
|
2012-07-26 07:46:35 +00:00 |
|
Goober5000
|
a687fbbf1b
|
this is a slightly modified version of m!m's patch for Mantis #2688
|
2012-07-15 18:48:42 +00:00 |
|
Goober5000
|
fdd685fb8a
|
we want to truncate based on number of lines, not number of characters
also, we want to truncate the FRED error message boxes too
(this is a better fix for Mantis #2658)
|
2012-07-14 06:23:45 +00:00 |
|
Echelon9
|
bd405ee457
|
GCC warning: converting to non-pointer type 'char' from NULL
|
2012-05-27 13:32:08 +00:00 |
|
Goober5000
|
1d4dee495a
|
if we are ignoring whitespace and we encounter a newline, don't eat it
|
2012-05-15 01:27:38 +00:00 |
|
Goober5000
|
63a78e79fd
|
modular credits.tbl, courtesy of m!m
(with a few tiny tweaks)
|
2012-04-12 03:49:47 +00:00 |
|
niffiwan
|
5a873d6646
|
Fix gcc compile error with yet more const ness
|
2012-03-08 10:55:22 +00:00 |
|
Goober5000
|
b146b10403
|
MOAR const-correctness!
|
2012-03-08 08:12:56 +00:00 |
|
Goober5000
|
7d4fd7ee2a
|
convert briefing and debriefing to use SCP_string
|
2012-03-07 05:23:21 +00:00 |
|
Goober5000
|
5127340279
|
per discussion with mjn.mixael, fix error function so that it doesn't break on messages that are too long
|
2012-03-07 01:52:30 +00:00 |
|
Goober5000
|
1e23f07948
|
fix the algorithm for trimming whitespace
|
2012-03-06 05:11:55 +00:00 |
|
Goober5000
|
0d3f28e8d4
|
enhance vsprintf for SCP_string to be more intelligent in how it handles specifiers
|
2012-03-05 09:09:15 +00:00 |
|
Goober5000
|
97002e90ca
|
use SCP_string internally in stuff_and_malloc_string to remove the need for huge temporary buffers
also fix a Volition derp with the function prototype: if you're mallocing a string, you don't need a maximum length
|
2012-03-05 06:20:23 +00:00 |
|
Goober5000
|
79e4c58064
|
just derping along
|
2012-03-05 05:49:25 +00:00 |
|
Goober5000
|
d22ad134fd
|
a vsprintf equivalent is useful
|
2012-03-05 05:24:15 +00:00 |
|
Echelon9
|
9ae918ead4
|
Fix SCP_string parselo code - std::string.c_str() function means it's a string being passed to Error(), not the whole std::string object
|
2012-03-04 07:50:47 +00:00 |
|
Goober5000
|
e2ccd37673
|
derp
|
2012-03-04 06:54:56 +00:00 |
|
Goober5000
|
83b09269f4
|
add variants of replace_one and replace_all
|
2012-03-04 03:59:29 +00:00 |
|
Goober5000
|
02def13365
|
add SCP_string variants of parselo functions
|
2012-03-04 00:20:09 +00:00 |
|
Goober5000
|
abeb98a566
|
change stuff_vector to stuff_vec3d for clarity, since "vector" now refers to a dynamic list and "vec3d" now refers to the three-float struct
|
2012-03-02 04:26:44 +00:00 |
|
IssMneur
|
e496117892
|
From CommanderDJ: add check_for_eoln() to parselo.cpp.
|
2011-12-09 05:48:35 +00:00 |
|
The_E
|
531a7c71bb
|
Revert 7791. Something went wrong there.
|
2011-09-24 18:31:20 +00:00 |
|
The_E
|
a982eb153d
|
Remove more useless encryption stuff. NOTE FOR PROJECT FILE MAINTAINERS: parse/encrypt.(cpp|h) should no longer be part of the project.
|
2011-09-24 17:37:12 +00:00 |
|
IssMneur
|
dedd73a3f5
|
Lets try this again without templates that VC6 doesn't like (this time for real).
Use const strings in split_str.
|
2011-09-12 05:14:58 +00:00 |
|
Goober5000
|
3597538bde
|
revert 7705... it did, in fact, contain templates that VC6 doesn't like
|
2011-09-12 05:01:57 +00:00 |
|
IssMneur
|
10809783f9
|
Lets try this again without templates that VC6 doesn't like.
Use const strings in split_str.
|
2011-09-12 04:03:56 +00:00 |
|
The_E
|
834e383c26
|
Marking a bunch of PVS Studio warnings as false alarms. While the warnings are technically correct, none of these are in places where performance matters.
|
2011-09-04 12:31:33 +00:00 |
|
Goober5000
|
7931831cbe
|
add dynamic vector stuffing
|
2011-08-28 03:31:46 +00:00 |
|
Echelon9
|
a248a37d58
|
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
|
2011-08-24 13:37:01 +00:00 |
|
Goober5000
|
f492ce292c
|
revert 7508, which MSVC6 doesn't like
|
2011-08-22 07:58:00 +00:00 |
|
IssMneur
|
80d3b0ed84
|
- make split_str use const strings were appropriate.
- make brief_color_text_init use const strings where appropriate.
|
2011-08-21 17:05:04 +00:00 |
|