From 9362c381072627b08ca42d6d9f909f9597902dfa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 07:33:31 +0200 Subject: m fixes + print all crtc info , except connector type and subpixel order, in the test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/extract/libgamma-method-extract | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/extract') 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 -- cgit v1.2.3-70-g09d2