projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: standardize public include guards
[babeltrace.git]
/
extras
/
gen-babeltrace-h.py
diff --git
a/extras/gen-babeltrace-h.py
b/extras/gen-babeltrace-h.py
index 75d328febbf85af36c92f0fc63b26ce9303834fc..b83f262a8bee4b621d51820e6138dc96ed1b1960 100644
(file)
--- a/
extras/gen-babeltrace-h.py
+++ b/
extras/gen-babeltrace-h.py
@@
-70,8
+70,8
@@
def _main():
with open('include/Makefile.am') as f:
sections = _get_sections(f)
with open('include/Makefile.am') as f:
sections = _get_sections(f)
- print('''#ifndef BABELTRACE_BABELTRACE_H
-#define BABELTRACE_BABELTRACE_H
+ print('''#ifndef BABELTRACE
2
_BABELTRACE_H
+#define BABELTRACE
2
_BABELTRACE_H
/*
* Babeltrace API
/*
* Babeltrace API
@@
-98,7
+98,7
@@
def _main():
*/
''')
print(_c_includes_from_sections(sections))
*/
''')
print(_c_includes_from_sections(sections))
- print('#endif /* BABELTRACE_BABELTRACE_H */')
+ print('#endif /* BABELTRACE
2
_BABELTRACE_H */')
if __name__ == '__main__':
if __name__ == '__main__':
This page took
0.026259 seconds
and
4
git commands to generate.