User:Bugman/subsystems: Difference between revisions

Jump to navigation Jump to search
→‎Script: Improved the staticSubsystemClassId() parsing.
(Undo revision 115087 by Bugman (talk))
(→‎Script: Improved the staticSubsystemClassId() parsing.)
Line 779: Line 779:


         # Loop over the file contents.
         # Loop over the file contents.
        in_decl = False
         for i in range(len(lines)):
         for i in range(len(lines)):
            # The start of the declaration.
            if search("^class %s : " % self.name, lines[i]):
                in_decl = True
                continue
            # Skip the line.
            if not in_decl:
                continue
            # Out of the declaration.
            if search("^};", lines[i]):
                in_decl = False
                continue
             # The static subsystem class ID.
             # The static subsystem class ID.
             if search("static const char\* staticSubsystemClassId()", lines[i]):
             if search("static const char\* staticSubsystemClassId()", lines[i]):

Navigation menu