Commit Graph

84 Commits

Author SHA1 Message Date
Melanie Thielker
2c3a1995fc Publish a method on ICompiler to generate the CIL assembly path
Cause group deeding to apply next owner perms
2009-06-21 18:38:12 +00:00
Jeff Ames
a23d64dec1 Formatting cleanup. 2009-06-10 04:28:56 +00:00
Jeff Ames
a7fcacf8f3 Formatting cleanup. Ignore some generated files. 2009-06-09 18:07:35 +00:00
Mike Mazur
cda6b24668 Skip lone ident statments or for-loop assignments
SL's LSL supports lone idents:

    integer x;
    x;

as well as lone idents in for-loop assignments:

    for (x; x < 10; x++) { ... }

while those are errors in C# (MONO at least). This patch skips lone
idents in such places.

Fixes Mantis #3042.
2009-06-07 10:22:55 +00:00
Mike Mazur
48bc2f3a42 Allow empty assignment in for-loop
For loops with no assignment are no longer syntax errors. For example,
this is now valid:

    for ( ; i < 10; i++) { ... }

Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs.

Fixes Mantis #2501. Fixes Mantis #2884.
2009-06-07 10:22:41 +00:00
Melanie Thielker
9f932a4205 Thank you, thomax, for a patch to provide finer-grained access control to
scripting.
Fixes Mantis #2862
2009-06-05 09:47:42 +00:00
Jeff Ames
840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
Dr Scofield
1d02636c27 cleaning out warnings.
NOTE: we currently have a gazillion warnings caused stuff flagged as
"obsolete" (OGS1 stuff) --- what's up with that?
2009-05-22 14:57:00 +00:00
Melanie Thielker
fb3d5770dd Make the LSL HTTP server create and give out URLs to scripts 2009-05-13 20:32:14 +00:00
Melanie Thielker
0377ddb5de Add events to IScriptEngine to notify scripting modules of the removal
of objects from the scene, and of scripts from objects. This facilitates
the development of modules that can register prims with externall servers
for inbound email and XMLRPC. Currently implemented in XEngine only.
Also applying cmickeyb's compiler locking patch, since it seems risk-free.
2009-04-10 19:07:41 +00:00
Melanie Thielker
f17732346e Fix a nullref when compiling non-LSL scripts 2009-04-02 16:27:16 +00:00
Justin Clarke Casey
3fe010d716 * minor: remove one mono compiler warning 2009-03-27 20:03:20 +00:00
Melanie Thielker
706a2df516 Read the .map files in on sim startup. Also clean them up when an assembly
is deleted.
2009-03-26 15:06:20 +00:00
Melanie Thielker
eb6c1ae0c1 Avoid preprocessing scripts on region restart just to generate the line
number map. Instead, write the map to a file for later use. That is not
yet used, so currently runtime errors after a sim restart will have wrong
line numbers
2009-03-26 14:49:39 +00:00
Dr Scofield
0bb3d2e6d7 cleanup 2009-03-25 07:36:56 +00:00
Melanie Thielker
c268b71f4b Thank you, dslake, for a patch that speeds up the Delete Old Files option
in the compiler. Committed with changes.
Fixes Mantis #3325
2009-03-24 12:18:31 +00:00
Justin Clarke Casey
acad0328b2 * Make all coded defaults match settings in OpenSim.ini.example
* In most cases, the setting in OpenSim.ini.example is taken as the canonical one since this is the file virtually everyone ends up using
* OpenSim will start up with a blank OpenSim.ini, in which case sqlite is the default database (as before)
2009-03-11 18:02:22 +00:00
Mike Mazur
8606d7d126 Remove chained tests in BasicGridTest.cs.
It's good practice to isolate unit tests so their outcome (pass/fail)
does not depend on whether another test has been run/passed/failed. A
method is used to populate the DB independently for each test, and a
TearDown method cleans up the database after each test.

Also adding extra comment in C-style comment test.
2009-03-11 00:33:34 +00:00
Justin Clarke Casey
36e648a37a * minor: Remove most mono compiler warnings 2009-02-25 20:53:02 +00:00
Mike Mazur
64c14d2475 Allow /* C-style comments */ in LSL scripts.
This fixes Mantis #3199. opensim-libs SVN r87 contains the corresponding
changes.
2009-02-25 05:37:57 +00:00
Charles Krinke
ed7256ac0c Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:
Deals with the multiple warning side affect introduced earlier.
2009-02-25 04:29:02 +00:00
Jeff Ames
f175cb7e8c Update svn properties, add copyright headers, minor formatting cleanup. 2009-02-23 10:36:16 +00:00
Charles Krinke
08c76989a7 Mantis#3187. Thank you kindly, DoranZemlja for a patch that:
Adds a warning for an LSL construct that exploits a
popular list memory saving hack.
2009-02-23 02:43:51 +00:00
Charles Krinke
8f55b9d735 Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
2009-02-22 20:52:55 +00:00
Jeff Ames
818af9d482 Refactor log4net logger handling in script engine. (#3148) 2009-02-22 01:26:18 +00:00
Mike Mazur
a42499c947 Thanks DoranZemlja for a patch implementing non-shortcircuiting in
logical and and logical or in LSL. Fixes Mantis #3174.
2009-02-20 07:40:36 +00:00
Melanie Thielker
0086f9bd92 Fix the windows sharing violations on script crossings 2009-02-18 22:32:25 +00:00
Dr Scofield
d97dd2bdb4 cleanup 2009-02-16 20:13:59 +00:00
Dr Scofield
4e1f060dd1 From: alan webb <alan_webb@us.ibm.com> & dr scofield <drscofield@xyzzyxyzzy.net>
This changeset fixes a rather nasty script compile bug that manifests
itself under heavy load.
2009-02-16 20:01:54 +00:00
Mike Mazur
9a33a4733e Thanks Tommi Laukkanen for a patch that allows the
CSCodeGeneratorTest.TestStringsWithEscapedQuotesAndComments unit test to
pass on Windows. Fixes Mantis #3104.
2009-02-09 00:59:02 +00:00
Dr Scofield
9b66108081 This changeset is the step 1 of 2 in refactoring
OpenSim.Region.Environment into a "framework" part and a modules only
part. This first changeset refactors OpenSim.Region.Environment.Scenes,
OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces
into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region
modules in OpenSim.Region.Environment.

The next step will be to move region modules up from
OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and
then sort out which modules are really core modules and which should
move out to forge.

I've been very careful to NOT BREAK anything. i hope i've
succeeded. as this is the work of a whole week i hope i managed to
keep track with the applied patches of the last week --- could any of
you that did check in stuff have a look at whether it survived? thx!
2009-02-06 16:55:34 +00:00
Homer Horwitz
7083be07b0 Allow empty statements in LSL (; followed by ;). Fixes Mantis#2320 2008-12-07 19:20:45 +00:00
Melanie Thielker
4636e5fc01 Remove a line of debug info in XEngine that i missed 2008-12-03 03:28:28 +00:00
Melanie Thielker
5a7ffb7298 Remove some of the XEngine chattiness 2008-12-02 12:12:50 +00:00
Melanie Thielker
af5e9147f0 Start scripts in attachments only after a successful attach. Elimininate
a gratuitious asset fetch when region crossing.
2008-11-29 14:16:09 +00:00
Dr Scofield
dd37fbb137 fixing warnings in YProlog language support 2008-11-17 11:16:24 +00:00
Teravus Ovares
c453a41fb5 * Set defaults on the allowed LSL Compilers to 'lsl' unless you've specified otherwise. 2008-11-12 04:49:06 +00:00
Melanie Thielker
833f5e8bed Refactor IEventReceiver back into IScriptEngine 2008-11-08 02:24:34 +00:00
Justin Clarke Casey
1e527f3e86 * Fix test failure in CSCodeGeneratorTest.TestJumps()
* Need new NoOp(); generated part
* Not Homer's fault - this test ain't running under Windows! (needs fixing!)
2008-11-06 23:32:39 +00:00
Melanie Thielker
9e4fc8e03a Mantis #2571
Thank you, idb, for a patch that fixes the jump function in LSL.
2008-11-06 23:10:49 +00:00
Mike Mazur
6e14d1005a Prefix LSL variables which are C# keywords with @ instead of _ when translating from LSL to C#. Thanks idb for the patch. Fix issue 2546. 2008-11-04 01:30:39 +00:00
Melanie Thielker
44852158f2 Mantis #2518
Thank you, idb, for a patch that fixes the conflicts of lsl identifiers
with c# keywords
2008-11-01 23:50:19 +00:00
Melanie Thielker
8d2ec1ac71 Adapt tests to new friendly errors and correct line numbers 2008-10-07 22:25:55 +00:00
Melanie Thielker
638cce09d1 Restore "friendly errors" to the XEngine 2008-10-07 21:59:56 +00:00
Melanie Thielker
1f8888a287 Update unit tests 2008-09-27 05:58:52 +00:00
Melanie Thielker
85068dae60 Add friendly error messages to both engines. 2008-09-27 05:31:43 +00:00
Melanie Thielker
ec16750a87 Mantis #2277
Patch up a type name change in libomv. Thanks for tracking that down, idb
2008-09-26 23:38:59 +00:00
Melanie Thielker
d8c470343e Compiler Connection! One world, one compiler! 2008-09-26 16:11:53 +00:00
Jeff Ames
3f79e6b3e7 Update svn properties, formatting cleanup. 2008-09-23 23:14:00 +00:00
Melanie Thielker
d95794d05c Refactor XEngine parser as per suggestions from mikem 2008-09-23 13:28:17 +00:00