File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
luaj-2.0.3/src/core/org/luaj/vm2/lib
src/main/java/dan200/computercraft/core/lua Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1919 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2020 * THE SOFTWARE.
2121 ******************************************************************************/
22- package dan200 . computercraft . core . lua ;
22+ package org . luaj . vm2 . lib ;
2323
2424import org .luaj .vm2 .LuaInteger ;
2525import org .luaj .vm2 .LuaTable ;
2626import org .luaj .vm2 .LuaValue ;
2727import org .luaj .vm2 .Varargs ;
28- import org .luaj .vm2 .lib .TwoArgFunction ;
29- import org .luaj .vm2 .lib .VarArgFunction ;
30- import org .luaj .vm2 .lib .ZeroArgFunction ;
3128
3229/**
3330 * Subclass of LibFunction that implements the Lua standard {@code bit32} library.
3431 */
35- public class LuaJBit32Lib extends ZeroArgFunction
32+ public class Bit32Lib extends ZeroArgFunction
3633{
37- @ Override
3834 public LuaValue call ( )
3935 {
4036 LuaTable t = new LuaTable ();
@@ -50,7 +46,6 @@ public LuaValue call( )
5046
5147 public static final class Bit32LibV extends VarArgFunction
5248 {
53- @ Override
5449 public Varargs invoke ( Varargs args )
5550 {
5651 switch ( opcode )
@@ -126,7 +121,6 @@ public Varargs invoke( Varargs args )
126121
127122 public static final class Bit32Lib2 extends TwoArgFunction
128123 {
129- @ Override
130124 public LuaValue call ( LuaValue arg1 , LuaValue arg2 )
131125 {
132126 switch ( opcode )
Original file line number Diff line number Diff line change 1717import dan200 .computercraft .core .computer .MainThread ;
1818
1919import org .luaj .vm2 .*;
20+ import org .luaj .vm2 .lib .Bit32Lib ;
2021import org .luaj .vm2 .lib .OneArgFunction ;
2122import org .luaj .vm2 .lib .VarArgFunction ;
2223import org .luaj .vm2 .lib .ZeroArgFunction ;
@@ -54,7 +55,7 @@ public LuaJLuaMachine( Computer computer )
5455
5556 // Create an environment to run in
5657 m_globals = JsePlatform .debugGlobals ();
57- m_globals .load ( new LuaJBit32Lib () );
58+ m_globals .load ( new Bit32Lib () );
5859 m_loadString = m_globals .get ("loadstring" );
5960 m_assert = m_globals .get ("assert" );
6061
You can’t perform that action at this time.
0 commit comments