diff options
author | Jeff Ames | 2008-05-16 01:22:11 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-16 01:22:11 +0000 |
commit | 65c5efe43b68700bad94076d4cd421160203c5de (patch) | |
tree | 589b56649ed02f4942671fd6e51c6dc43f682e0d /OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |
parent | Thank you very much, mjm for : (diff) | |
download | opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.zip opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.gz opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.bz2 opensim-SC_OLD-65c5efe43b68700bad94076d4cd421160203c5de.tar.xz |
Formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index e031c01..c8c51f8 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -493,7 +493,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
493 | 493 | ||
494 | // now, this makes the math easier | 494 | // now, this makes the math easier |
495 | int remove=end+1-start; | 495 | int remove=end+1-start; |
496 | 496 | ||
497 | ret=new Object[m_data.Length-remove]; | 497 | ret=new Object[m_data.Length-remove]; |
498 | if (ret.Length == 0) | 498 | if (ret.Length == 0) |
499 | return new list(ret); | 499 | return new list(ret); |
@@ -519,7 +519,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
519 | // NOTE that either index may still be negative after | 519 | // NOTE that either index may still be negative after |
520 | // adding the length, so we must take additional | 520 | // adding the length, so we must take additional |
521 | // measures to protect against this. Note also that | 521 | // measures to protect against this. Note also that |
522 | // after normalisation the negative indices are no | 522 | // after normalisation the negative indices are no |
523 | // longer relative to the end of the list. | 523 | // longer relative to the end of the list. |
524 | 524 | ||
525 | if (start < 0) | 525 | if (start < 0) |
@@ -533,7 +533,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
533 | } | 533 | } |
534 | 534 | ||
535 | // The conventional case is start <= end | 535 | // The conventional case is start <= end |
536 | // NOTE that the case of an empty list is | 536 | // NOTE that the case of an empty list is |
537 | // dealt with by the initial test. Start | 537 | // dealt with by the initial test. Start |
538 | // less than end is taken to be the most | 538 | // less than end is taken to be the most |
539 | // common case. | 539 | // common case. |
@@ -553,7 +553,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
553 | { | 553 | { |
554 | end = m_data.Length - 1; | 554 | end = m_data.Length - 1; |
555 | } | 555 | } |
556 | 556 | ||
557 | // Sublist still starts before the beginning of the list | 557 | // Sublist still starts before the beginning of the list |
558 | if (start < 0) | 558 | if (start < 0) |
559 | { | 559 | { |
@@ -561,7 +561,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
561 | } | 561 | } |
562 | 562 | ||
563 | ret = new object[end - start + 1]; | 563 | ret = new object[end - start + 1]; |
564 | 564 | ||
565 | Array.Copy(m_data, start, ret, 0, end - start + 1); | 565 | Array.Copy(m_data, start, ret, 0, end - start + 1); |
566 | 566 | ||
567 | return new list(ret); | 567 | return new list(ret); |
@@ -580,7 +580,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
580 | { | 580 | { |
581 | result = new list(); | 581 | result = new list(); |
582 | // If start is still negative, then the whole of | 582 | // If start is still negative, then the whole of |
583 | // the existing list is returned. This case is | 583 | // the existing list is returned. This case is |
584 | // only admitted if end is also still negative. | 584 | // only admitted if end is also still negative. |
585 | if (start < 0) | 585 | if (start < 0) |
586 | { | 586 | { |
@@ -593,7 +593,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
593 | result = GetSublist(0,end); | 593 | result = GetSublist(0,end); |
594 | } | 594 | } |
595 | 595 | ||
596 | // If start is outside of list, then just return | 596 | // If start is outside of list, then just return |
597 | // the prefix, whatever it is. | 597 | // the prefix, whatever it is. |
598 | if (start >= m_data.Length) | 598 | if (start >= m_data.Length) |
599 | { | 599 | { |
@@ -896,7 +896,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
896 | } | 896 | } |
897 | } | 897 | } |
898 | 898 | ||
899 | #endregion | 899 | #endregion |
900 | 900 | ||
901 | public string ToPrettyString() | 901 | public string ToPrettyString() |
902 | { | 902 | { |
@@ -962,7 +962,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
962 | } | 962 | } |
963 | 963 | ||
964 | // | 964 | // |
965 | // BELOW IS WORK IN PROGRESS... IT WILL CHANGE, SO DON'T USE YET! :) | 965 | // BELOW IS WORK IN PROGRESS... IT WILL CHANGE, SO DON'T USE YET! :) |
966 | // | 966 | // |
967 | 967 | ||
968 | public struct StringTest | 968 | public struct StringTest |
@@ -1103,7 +1103,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1103 | } | 1103 | } |
1104 | } | 1104 | } |
1105 | 1105 | ||
1106 | 1106 | ||
1107 | 1107 | ||
1108 | static public implicit operator String(LSLString s) | 1108 | static public implicit operator String(LSLString s) |
1109 | { | 1109 | { |
@@ -1267,7 +1267,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1267 | i.value++; | 1267 | i.value++; |
1268 | return i; | 1268 | return i; |
1269 | } | 1269 | } |
1270 | 1270 | ||
1271 | 1271 | ||
1272 | public static LSLInteger operator --(LSLInteger i) | 1272 | public static LSLInteger operator --(LSLInteger i) |
1273 | { | 1273 | { |