summaryrefslogtreecommitdiffstats
path: root/progs/tests/functions.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-11-08 15:35:46 +0000
committerBrian Paul <[email protected]>2002-11-08 15:35:46 +0000
commitd1efbf04562be8b9fb4417ebde005532736003ea (patch)
tree57e840c3ce55182d678370be1dcec41bc9377b86 /progs/tests/functions.py
parent6e40539490082d37791bcc2678598718641918af (diff)
implemented automatic code gen and individual function validation
Diffstat (limited to 'progs/tests/functions.py')
-rw-r--r--progs/tests/functions.py56
1 files changed, 0 insertions, 56 deletions
diff --git a/progs/tests/functions.py b/progs/tests/functions.py
deleted file mode 100644
index d1a8cc3434c..00000000000
--- a/progs/tests/functions.py
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/env python
-
-# $Id: functions.py,v 1.1 2001/11/18 23:16:56 brianp Exp $
-
-# Helper for the getprocaddress.c test.
-
-
-import string
-
-def PrintHead():
- print """
-static const char *functions[] = {"""
-
-
-def PrintTail():
- print"""
- NULL
-};
-"""
-
-
-def PrintFunctions(specFile):
-
- # init some vars
- prevCategory = ''
- funcName = ''
-
- f = open(specFile)
- for line in f.readlines():
-
- # split line into tokens
- tokens = string.split(line)
-
- if len(tokens) > 0 and line[0] != '#':
-
- if tokens[0] == 'name':
- if funcName != '':
- if category != prevCategory:
- print ' "-%s",' % category
- prevCategory = category
-
- print ' "gl%s",' % funcName
- funcName = tokens[1]
-
- elif tokens[0] == 'category':
- category = tokens[1]
-
- #endif
- #endif
- #endfor
-#enddef
-
-
-PrintHead()
-PrintFunctions("../bin/APIspec")
-PrintTail()