summary refs log tree commit diff stats
path: root/win32/ext/lua-wdk/lua-wdk.patch
blob: 5ba3415c209b2de91071448421ef0ee0d1aeaa20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -ruN --strip-trailing-cr lua-5.2.0.orig/src/lopcodes.h lua-5.2.0/src/lopcodes.h
--- lua-5.2.0.orig/src/lopcodes.h	2011-07-15 15:50:28 +0200
+++ lua-5.2.0/src/lopcodes.h	2012-01-10 15:41:33 +0100
@@ -269,7 +269,8 @@
   OpArgK   /* argument is a constant or register/constant */
 };
 
-LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
+/* LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; */
+const lu_byte luaP_opmodes[NUM_OPCODES];
 
 #define getOpMode(m)	(cast(enum OpMode, luaP_opmodes[m] & 3))
 #define getBMode(m)	(cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3))
@@ -278,7 +279,8 @@
 #define testTMode(m)	(luaP_opmodes[m] & (1 << 7))
 
 
-LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
+/* LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; */
+const char *const luaP_opnames[NUM_OPCODES+1];  /* opcode names */
 
 
 /* number of list items to accumulate before a SETLIST instruction */
diff -ruN --strip-trailing-cr lua-5.2.0.orig/src/lundump.h lua-5.2.0/src/lundump.h
--- lua-5.2.0.orig/src/lundump.h	2011-05-06 16:35:16 +0200
+++ lua-5.2.0/src/lundump.h	2012-01-10 15:39:37 +0100
@@ -17,7 +17,8 @@
 LUAI_FUNC void luaU_header (lu_byte* h);
 
 /* dump one chunk; from ldump.c */
-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
+/* LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); */
+LUALIB_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip);
 
 /* data to catch conversion errors */
 #define LUAC_TAIL		"\x19\x93\r\n\x1a\n"
ion with Audacious) - a working toolchain (compiler, binutils, etc). ------------------------------------------------ What if I get errors about u8 not being defined? Sorry to hear that, it appears your linux distribution neglected to install essential headers on your system. On Debian & Ubuntu, apt-get install pciutils-dev should make it happy. ======== COMMANDS X-Sys 2 has the following implemented commands: /XSYS & /EXSYS - Output current version, either to channel or echoed on screen. /CPUINFO & /ECPUINFO - Echoes or says current cpu statistics /SYSUPTIME & /ESYSUPTIME - Echoes or says current uptime /OSINFO & /EOSINFO - Echoes or says various OS statistics /SOUND & /ESOUND - Echoes or says the current sound card, as determined by ALSA /NETDATA & /ENETDATA - Echoes or says total amount transferred through a network interface. Use like: `/netdata eth0' (where eth0 is a network interface) /NETSTREAM & /ENETSTREAM - Echoes or says amount of bandwidth being used. Use like: `/netstream eth0' (where eth0 is a network interface) /DISKINFO & /EDISKINFO - Echoes or says free space on partitions. The DISK command has a few arguments as follows: ALL - Displays every partitions /mount - Displays free space for that specific mount point No arguments just displays total free space /MEMINFO & /EMEMINFO - Echoes or says memory information. /VIDEO & /EVIDEO - Echoes or says the current video card on the PCI bus /ETHER & /EETHER - Echoes or says the current network card on the PCI bus /DISTRO & /EDISTRO - Echoes or says which distro you're running If this doesn't work for your distro, look for a *-release file or similar in /etc E-mail this to chainsaw@gentoo.org and the big one: /SYSINFO & /ESYSINFO - Complete system information! Two output control commands: /XSYS2FORMAT , No arguments, it will print just the current formatting string. It will take any arguments to it as the formatting string. The formatting string can consist of any letter/numbers, and is used to format the output. The following special symbols can be used: %B : Bold %Cnn : Foreground Color, where nn is a number corresponding to a mIRC color %Cnn,nn : Foreground,Background Color %R : Reverse Foreground/Background Colors %O : Reset Color and Format (thats an 'oh' not a 'zero (0)') %C : Reset Color %U : Underline /PLAYING will either print or allow you to set the text for /np. The default is now_playing, but you can set this to whatever text you prefer. /PERCENTAGES will allow you to set whether to use percentages in plugin output or not. Percentages are enabled by default. Use a zero value to disable, and a non-zero value to enable. If unsure, use 1. /NP & /ENP - Reports what's currently playing in Audacious. ==== BUGS (none known) E-mail me your bug reports at chainsaw@gentoo.org Please include the following information: - what architecture you are using (amd64, ia64, parisc, ppc, ppc64, sparc, sparc64 or x86) - what linux distribution you are using (Gentoo 2007.1, Fedora Core 8, etc) - what compiler you have used to compile X-Sys, i.e. gcc (GCC) 4.1.2 (Gentoo 4.1.2) - what version of X-Sys you are using ======= Thanks! Remember, everything here is: (C) 2003, 2004, 2005 by Michael Shoup (C) 2005, 2006, 2007 by Tony Vroon All Rights Reserved. Visit http://dev.gentoo.org/~chainsaw/xsys/ for release information. Feel free to e-mail me for feature requests, or see if I'm online on irc.freenode.net