[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob org/nongnu/libvob/lava/Demo.java vob/uti...
From: |
Benja Fallenstein |
Subject: |
[Gzz-commits] libvob org/nongnu/libvob/lava/Demo.java vob/uti... |
Date: |
Sat, 19 Apr 2003 11:07:04 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Benja Fallenstein <address@hidden> 03/04/19 11:07:04
Modified files:
org/nongnu/libvob/lava: Demo.java
vob/util : dbg.py
Log message:
Dbg can now be given as a system property: -Ddbg=<comma separated list
of classes>
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/lava/Demo.java.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/util/dbg.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/lava/Demo.java
diff -u libvob/org/nongnu/libvob/lava/Demo.java:1.5
libvob/org/nongnu/libvob/lava/Demo.java:1.6
--- libvob/org/nongnu/libvob/lava/Demo.java:1.5 Sun Apr 6 10:18:28 2003
+++ libvob/org/nongnu/libvob/lava/Demo.java Sat Apr 19 11:07:04 2003
@@ -51,7 +51,9 @@
+ "I just use it to sound impressive. This is "
+ "really about linebreaking :-) ) -- UPDATE: "
+ "it means using an attack against a person "
- + "as an 'argument' against what the person said.";
+ + "as an 'argument' against what the person said. "
+ + "The word I knew for this so far is, "
+ + "'argumentum ad personam.'";
for(int i=0; i<string.length(); i++) {
if((i+1) % 30 == 0)
Index: libvob/vob/util/dbg.py
diff -u libvob/vob/util/dbg.py:1.1 libvob/vob/util/dbg.py:1.2
--- libvob/vob/util/dbg.py:1.1 Thu Apr 10 10:00:19 2003
+++ libvob/vob/util/dbg.py Sat Apr 19 11:07:04 2003
@@ -22,7 +22,10 @@
# Jython:
-# Provide variables for and read commandline debug options.
+# Provide variables for and read commandline debug options;
+# recognize 'dbg' and 'gldbg' system properties as
+# comma-separated lists of Java classes and GL debug
+# variables that should be turned on.
# python imports
import re
@@ -53,4 +56,21 @@
prop = System.getProperties()
prop.setProperty(m.group(1), m.group(2))
System.setProperties(prop)
+ readSystemProperties()
+def readSystemProperties():
+ dbg = System.getProperty("dbg")
+ gldbg = System.getProperty("gldbg")
+
+ if dbg:
+ for a in dbg.split(','):
+ cls = java.lang.Class.forName(a)
+ cls.dbg = 1
+
+ if gldbg:
+ GL.loadLib()
+ for a in gldbg.split(','):
+ print "Setting GL debug ",a
+ GL.setDebugVar(a, 1)
+
+readSystemProperties()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] libvob org/nongnu/libvob/lava/Demo.java vob/uti...,
Benja Fallenstein <=