[Scummvm-cvs-logs] CVS: residual/lua/src lvm.c,1.2,1.3

Joost Peters joostp at users.sourceforge.net
Sun Mar 21 07:28:01 CET 2004


Update of /cvsroot/scummvm/residual/lua/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16208/lua/src

Modified Files:
	lvm.c 
Log Message:
Preliminary BE/Mac support.

To compile on Mac OSX: edit the Makefile and uncomment the OSX LIBS/CXXFLAGS additions (and comment out the -lGL -lGLU line)
and edit lua/src/lvm.c to use the Big Endian macro.


Index: lvm.c
===================================================================
RCS file: /cvsroot/scummvm/residual/lua/src/lvm.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- lvm.c	22 Aug 2003 13:07:40 -0000	1.2
+++ lvm.c	21 Mar 2004 15:16:57 -0000	1.3
@@ -28,7 +28,13 @@
 
 
 #define skip_word(pc)	(pc+=2)
+
+/* Little Endian */
 #define get_word(pc)	(*((unsigned short*)(pc)))
+
+/* Big Endian */
+/*#define get_word(pc)    ((*((pc)+1)<<8)|(*(pc))) */
+
 #define next_word(pc)   (pc+=2, get_word(pc-2))
 
 





More information about the Scummvm-git-logs mailing list