(self, filedata)
| 194 | return filedata |
| 195 | |
| 196 | def removedirectives(self, filedata): |
| 197 | for i in range(len(filedata)): |
| 198 | line = filedata[i].lstrip() |
| 199 | if line.startswith('#'): |
| 200 | # these cannot be removed on their own so skip them |
| 201 | if line.startswith('#if') or line.startswith('#endif') or line.startswith('#el'): |
| 202 | continue |
| 203 | self.replaceandrun('remove preprocessor directive', filedata, i, '') |
| 204 | |
| 205 | def removeblocks(self, filedata): |
| 206 | if len(filedata) < 3: |