Commit Graph

51 Commits (e46ba2a7068c19ae827df0a4f4eaeade472ee967)

Author SHA1 Message Date
Kadah_Coba 8520d4676a FIRE-17774: Expose Boost exceptions to preproc output 2016-02-05 21:40:55 -08:00
Kadah_Coba 1f52508d75 FIRE-17764: Add timestamps to preprocessor compile info 2016-02-04 21:02:54 -08:00
Ansariel 10ea19427f FIRE-16637: LSL pre-processor fix for lazy lists by Sei Lisa 2015-10-27 18:36:32 +01:00
Ansariel d300a88bcc Fix preprocessor memory leak and make string introduced in previous two commits localizable 2015-10-21 09:12:29 +02:00
Kadah_Coba a399a4aba0 FIRE-16492: Added preproc support to recompile all scripts functions 2015-10-20 22:42:11 -07:00
Ansariel 488d009483 FIRE-16732: Script fails to compile: Exception caught trying to match the regular expressions; fix bei Sei Lisa 2015-08-31 09:44:47 +02:00
Ansariel bcb8e6db37 Backed out changeset: e45855f7e443 - forgot credit 2015-08-31 09:44:13 +02:00
Ansariel 50f0b725ae FIRE-16732: Script fails to compile: Exception caught trying to match the regular expressions 2015-08-31 09:42:00 +02:00
Ansariel 3d2e684f9b FIRE-16637: LSL preprocessor fails to optimize switch statements; patch by Sei Lisa 2015-08-15 19:22:14 +02:00
kadah.coba@gmail.com a68e1c7179 Pulled a fix from FIRE-10173 for bug with recompile button not always working 2015-06-09 23:10:17 -07:00
Ansariel 84fbd0558c FIRE-16034: Some symbols confuse the optimizer; patch by Sei Lisa 2015-05-06 10:29:10 +02:00
Ansariel e6680806cd More fixing in FSLSLProprocessor for "not-supported" case 2015-04-29 11:45:04 +02:00
Ansariel 218985e3e0 Cleaning up FSLSLPreprocessor 2015-04-29 11:12:42 +02:00
Ansariel 760be77eb5 Fix method signatures in FSLSLProprocessor for "not-supported" case 2015-04-28 20:40:43 +02:00
Ricky Curtice 97b1492c67 Enabled translation of the messages returned by the preprocessor code.
I made no judgement on the verbosity of the code, though it seems very noisy to me, and simply took all the strings, touched them up, and moved them out.

I initially tried to place the strings in a file more specific to the script editor, but the translation system could never find them.  So I gave up and placed them in the global string definition file.
2015-04-27 21:20:49 -07:00
Ricky Curtice 023be744cf Correctly named the logging operations. 2015-04-27 00:04:48 -07:00
Ricky Curtice 494a0252aa FIRE-9337: Added ability to disable the FS Preprocessor on a per-script basis.
Initially I tried to use a "#pragma"-esque marker, but LSL chokes on the hash. So I moved to the simple hack of using a special-form comment.

I also started out by trying to detect the marker in the first non-whitespace line.  After some thought I realized that this might conflict with some people's editors or other things they like to add to their scripts.
To correct for this I had two options - go through all the effort of skipping commented blocks, or just simply scan the entire script for that character sequence.  I chose the latter because it is far simpler to code, even though it is more open to abuse.  The abuse, that of putting the tag in arbitrary locations in the script, can be mitigated by having the documentation state that the marker is to be located at the beginning of the script on its own line.

Because of the added scope restrictions that came about because I wrapped a block of code in an 'if' statement, I would up making the treatment of the "err" variable more consistent.  Instead of some places using the function-scoped variable and some using deeper-placed name overrides the code now just creates said variable whereever needed.
2015-04-26 23:41:55 -07:00
Nicky 2f2b586094 Exception safe memory handling, also the old version did alloc with new[] and used plain delete for deallocation. 2015-04-24 00:46:16 +02:00
Ansariel b0651f907d FIRE-15748: Follow-up fix for LSL preprocessor by Sei Lisa 2015-03-24 20:12:16 +01:00
Ansariel 455ab804eb FIRE-15748: Follow-up fix for LSL preprocessor not optimizing out unreferenced functions if files are included; fix by Sei Lisa 2015-03-23 01:18:05 +01:00
Ansariel 2a7b1ab96f FIRE-15748: Follow-up fix for LSL preprocessor not optimizing out unreferenced functions if files are included; fix by Sei Lisa 2015-03-22 20:20:02 +01:00
Ansariel bc1bb101cf FIRE-15748: LSL preprocessor not optimizing out unreferenced functions if files are included; fix by Sei Lisa 2015-03-21 12:48:11 +01:00
Sei Lisa 5481fcf1a4 Tweak the predefined type cast macros to allow commas. Report the correct line in the preprocessor errors. 2015-03-17 16:54:53 +01:00
Ansariel ffbefc2749 FIRE-10172: Fix LSL script editor error handling - by Sei Lisa; with slight modifications to meet our coding guidelines and let the comment textbox scroll to the end automatically 2015-03-17 13:47:50 +01:00
Ansariel e875c7e6ef Encapsulate LSL proprocessor error output in display_error() if we already have it 2015-03-13 09:39:16 +01:00
Ansariel 7b85669cec FIRE-10517: Fix for LSL preprocessor failing to properly handle nested switch statements; fix by Sei Lisa 2015-03-13 09:06:02 +01:00
Ansariel 9ec6e34ee1 FIRE-12046: Fix lsl preprocessor problems parsing double-quoted text while handling lazy lists; fix by Sei Lisa 2015-03-12 19:20:57 +01:00
Ansariel fdb2bae18e FIRE-15693: Preprocessor doesn't optimize out functions or variables if they appear in strings; patch by Sei Lisa 2015-03-11 09:27:54 +01:00
Ansariel a09e87b8cf FIRE-8149, FIRE-9155, FIRE-10595, FIRE-15320 and FIRE-10016: Fix various issues with the LSL preprocessor; fix provided by Sei Lisa 2015-03-11 00:30:23 +01:00
Ansariel 9b33512e3a More simplifications to FSLSLPreprocessor 2015-03-09 12:03:31 +01:00
Ansariel 7deeedf4d3 A few BOOL -> bool conversions in FSLSLPreprocessor 2015-03-09 11:41:35 +01:00
Ansariel 01546c430e FIRE-7791 / FIRE-15681: LSL preprocessor getting confused by double slashes in strings and multiline strings; Patch by Sei Lisa 2015-03-09 09:57:56 +01:00
Ansariel a45088cb6b Merge LL V3.7.11 2015-01-12 12:54:15 +01:00
Ansariel 82d306084b Refactor some stuff in LSL preprocessor 2015-01-06 20:11:15 +01:00
Ansariel eb9269863f FIRE-7514: Script in external editor needs to be saved twice to be updated in internal editor 2015-01-05 10:10:28 +01:00
Tank_Master 8863d9beaf Compile fixes 2014-06-09 23:27:05 -07:00
Tonya Souther 88c76d1585 FIRE-10903: LSL preprocessor causes syntax error if #included file does not end with blank line. Patch from Krashnburn Resident. 2014-02-02 09:44:31 -06:00
Northspring 17a0af4b42 Minor CPP wording adjustments 2013-12-16 22:07:51 +01:00
Tank_Master f1d2900b06 Add/correct @file to FS files 2013-11-23 20:43:03 -08:00
Ansariel 706b885155 More build fixes 2013-07-10 13:16:58 +02:00
Cinders 705c3078cf More various script editor improvements 2013-05-20 21:52:24 -06:00
Nicky 7893cf238d Add ndfile.h into llapr.h so it is visible where needed. Add typedef apr_file_t tFiletype to LLAPRFile and then use this in all classes instead of apr_file_t, this way we can swap between LLAPRFile and ndFile with use a typedef 2013-01-23 02:25:14 +01:00
Tank_Master 1762586923 Merge LL 3.4.4 beta 1, but left tcmalloc enabled. 2012-12-21 01:14:38 -08:00
Ansariel f5e8276b22 Added fscommon.cpp/h as central location for common used functions and moved reportToNearbyChat() there 2012-11-13 14:35:32 +01:00
Nicky ec7c1cf32e FIRE-6193; fix for newer boost versions. 2012-05-02 22:11:11 +02:00
Liny 34d223148f Fix for FIRE-6119 (Spinners broken after preprocessor merge). Please test for linux/mac breakage on preproc, chatbar_as_cmdline's calc command and math in spinners. 2012-04-23 18:53:21 -07:00
Tonya Souther 2fc0d6dacc Fixed initializer for __AGENTNAME__ LSL preprocessor macro. 2012-04-23 16:13:50 -05:00
Nicky be8136be19 Fix crash in LLCalc::evalString, see FIRE-4381. 2012-03-29 19:39:07 +02:00
Nicky d998580e10 argument to mono_directive must be const string, or passing temporaries to it is forbidden by C++. 2012-03-29 02:11:02 +02:00
Tank_Master 42595a7175 update APR call 2012-03-28 13:06:36 -07:00