From 842f684ed4e900fbc54dd00e92c58a0fe2d8ce04 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 29 Sep 2009 04:10:07 +0200 Subject: temporary added GL3 headers, we should use JOGL's headers in future. continued with clCreateContextFromType impl. --- etc/FunctionParamUncommenter.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'etc/FunctionParamUncommenter.java') 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); -- cgit v1.2.3