From 38c0f7e028d57f0d0bfb6eef386f6e4101052201 Mon Sep 17 00:00:00 2001 From: "noelallen@google.com" Date: Thu, 2 Jun 2011 01:16:30 +0000 Subject: Add idl_c_proto for generating 'C' style prototypes from IDL Updated idl_log to provide Log/LogTag (which add the log type tag) Remove stale switches to idl_lexer.py Add Regex based Replace function to Node to replace $KEY$ with a property on that node Added quick resolution of typeinfo by adding typeinfo member to IDLNode Added idl_c_proto.py which defines a set of function which take an IDL Node then generate the 'C' style equivelent. BUG= http://code.google.com/p/chromium/issues/detail?id=84272 TEST= python idl_c_proto.py Review URL: http://codereview.chromium.org/7085014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87567 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/generators/idl_log.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ppapi/generators/idl_log.py') diff --git a/ppapi/generators/idl_log.py b/ppapi/generators/idl_log.py index 7aa4510..1c30aa9 100644 --- a/ppapi/generators/idl_log.py +++ b/ppapi/generators/idl_log.py @@ -27,6 +27,12 @@ class IDLLog(object): self.log = [] def Log(self, msg): + line = "%s\n" % (msg) + if self.console: self.out.write(line) + if self.capture: + self.log.append(msg) + + def LogTag(self, msg): line = "%s%s\n" % (self.name, msg) if self.console: self.out.write(line) if self.capture: -- cgit v1.1