diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-03 07:33:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-03 07:33:31 +0200 |
commit | 9362c381072627b08ca42d6d9f909f9597902dfa (patch) | |
tree | 0ce35b3bdef1d078a6d3714b7a3ce6a69d54105b /src/extract/libgamma-method-extract | |
parent | info: m (diff) | |
download | libgamma-9362c381072627b08ca42d6d9f909f9597902dfa.tar.gz libgamma-9362c381072627b08ca42d6d9f909f9597902dfa.tar.bz2 libgamma-9362c381072627b08ca42d6d9f909f9597902dfa.tar.xz |
m fixes + print all crtc info , except connector type and subpixel order, in the test
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/extract/libgamma-method-extract')
-rwxr-xr-x | src/extract/libgamma-method-extract | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extract/libgamma-method-extract b/src/extract/libgamma-method-extract index 88c41f0..fd4266c 100755 --- a/src/extract/libgamma-method-extract +++ b/src/extract/libgamma-method-extract @@ -42,7 +42,7 @@ def list_enum(prefix, *blacklist): def list_struct(name): global data - data = data[data.find('\ntypedef struct ' + name):] + data = data[data.find('\ntypedef struct ' + name + '\n'):] data = data[:data.find('\n}')] test1 = lambda line : line.startswith(' ') and line.endswith(';') test2 = lambda line : ' * ' not in line @@ -52,7 +52,7 @@ def list_struct(name): def type_struct(name): global data - data = data[data.find('\ntypedef struct ' + name):] + data = data[data.find('\ntypedef struct ' + name + '\n'):] data = data[:data.find('\n}')] test1 = lambda line : line.startswith(' ') test2 = lambda line : ' * ' not in line @@ -69,7 +69,7 @@ def type_struct(name): def doc_typedef(name): global data - data = data[:data.find('\ntypedef ' + name):] + data = data[:data.find('\ntypedef ' + name + '\n'):] data = data[:data.rfind('\n */')] data = data[data.rfind('/**\n') + len('/**\n'):] data = [line[3:] for line in data.split('\n')] @@ -78,7 +78,7 @@ def doc_typedef(name): def doc_define(): global data - data = data[:data.find('\n#define ' + sys.argv[2])] + data = data[:data.find('\n#define ' + sys.argv[2] + ' ')] data = data[:data.rfind('\n */')] data = data[data.rfind('/**\n') + len('/**\n'):] data = [line[3:] for line in data.split('\n')] @@ -96,7 +96,7 @@ def doc_enum(): def doc_struct(name): global data - data = data[data.find('\ntypedef struct ' + name):] + data = data[data.find('\ntypedef struct ' + name + '\n'):] data = data[:data.find('\n}')] test1 = lambda line : line.startswith(' ') test2 = lambda line : ' * ' not in line |