Skip to content

Commit 9f2abb6

Browse files
committed
Revert "Temporary fix: Add missing backslashes to REG_OPEN_LEGAL_OPTION"
This reverts commit 2dc74d0.
1 parent 3789230 commit 9f2abb6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

generate_docs.py

-10
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,6 @@ def split_header_to_chunks(path: Path) -> List[Chunk]:
363363
# Remove other stuff.
364364
code = code.replace('\n// Options\n\n//#define PHNT_NO_INLINE_INIT_STRING\n', '\n\n\n\n')
365365

366-
# Temporary fix.
367-
if path.name == 'ntregapi.h':
368-
code = code.replace(R'''#define REG_OPEN_LEGAL_OPTION
369-
(REG_OPTION_RESERVED | REG_OPTION_BACKUP_RESTORE |
370-
REG_OPTION_OPEN_LINK | REG_OPTION_DONT_VIRTUALIZE)
371-
''', R'''#define REG_OPEN_LEGAL_OPTION \
372-
(REG_OPTION_RESERVED | REG_OPTION_BACKUP_RESTORE | \
373-
REG_OPTION_OPEN_LINK | REG_OPTION_DONT_VIRTUALIZE)
374-
''')
375-
376366
# Add custom markers.
377367
code = re.sub(r'^// (begin|end)_', r'@\g<0>', code, flags=re.MULTILINE)
378368
code = re.sub(r'^#include <(pshpack\d+|poppack)\.h>$', r'@\g<0>', code, flags=re.MULTILINE)

0 commit comments

Comments
 (0)