aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-09-29 04:10:07 +0200
committerMichael Bien <[email protected]>2009-09-29 04:10:07 +0200
commit842f684ed4e900fbc54dd00e92c58a0fe2d8ce04 (patch)
treecc7bd4a69107c20cf2611b6729a19820c0c90a7c /etc
parent0ac4a12fb74de16f41ee9ad46e917b45523bbac4 (diff)
temporary added GL3 headers, we should use JOGL's headers in future.
continued with clCreateContextFromType impl.
Diffstat (limited to 'etc')
-rw-r--r--etc/FunctionParamUncommenter.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/FunctionParamUncommenter.java b/etc/FunctionParamUncommenter.java
index e774121f..456bd281 100644
--- a/etc/FunctionParamUncommenter.java
+++ b/etc/FunctionParamUncommenter.java
@@ -10,7 +10,7 @@ import java.util.regex.Pattern;
import static java.util.regex.Pattern.*;
/**
- * Build setup utility. Uncomments funcion param names in header files.
+ * Build setup utility. Uncomments funcion parameter names in header files.
*
* before:
* foo(int /x bar x/ )
@@ -21,15 +21,13 @@ import static java.util.regex.Pattern.*;
* @author Michael Bien
*/
public class FunctionParamUncommenter {
-//(\(.*\))* cl\w+\(([^\)]+)\)
-
-// final static String x = "\\s*(const)?\\w+\\s* \\**\\s+ (/\\*) \\s+[^\\*]+ (\\*/)";
final static Pattern PARAMS_PATTERN
- = compile("cl\\w+ \\( ( \\s* [^\\)]+ ) \\)", MULTILINE|COMMENTS);
+ = compile("cl\\w+ \\( ( \\s* [^;]+ ) \\)", MULTILINE|COMMENTS);
final static Pattern COMMENT_PATTERN
- = compile("\\s*(const)?\\w+\\s* \\**\\s+ (/\\*) \\s+[^\\*]+ (\\*/)", MULTILINE|COMMENTS);
+ = compile("\\s*(const)?\\w+\\s* \\**\\s+ (/\\*) \\s+[^\\*\\[]+ (\\*/)", MULTILINE|COMMENTS);
+ //^ array size in param name causes some problems
public static void main(String[] args) throws FileNotFoundException, IOException {
uncomment("/home/mbien/NetBeansProjects/JOGL/jocl/resources/CL/cl.h", false);