From 326f1a190d0079d9028b2a55e3847d3542bc5252 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 16 Dec 2010 12:15:34 -0500
Subject: [PATCH] Fix declarator parsing: allow numbers in var names again.

---
 pyopencl/tools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/tools.py b/pyopencl/tools.py
index 3efbeaaf..ecb92c35 100644
--- a/pyopencl/tools.py
+++ b/pyopencl/tools.py
@@ -184,7 +184,7 @@ def parse_c_arg(c_arg):
 
     # process and remove declarator
     import re
-    decl_re = re.compile(r"(\**)\s*([_a-zA-Z]+)(\s*\[[ 0-9]*\])*\s*$")
+    decl_re = re.compile(r"(\**)\s*([_a-zA-Z0-9]+)(\s*\[[ 0-9]*\])*\s*$")
     decl_match = decl_re.search(c_arg)
 
     if decl_match is None:
-- 
GitLab