mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
remove double underscores
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4bc044c982
commit
a9a5a69b73
|
@ -3,9 +3,11 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
ifndef = re.compile("#ifndef \_(.*)\_H\_")
|
ifndef = re.compile("#ifndef \_(.*)\_H\_")
|
||||||
defn = re.compile("#define \_(.*)\_H\_")
|
doubleu = re.compile("#(.*) (.*)\_\_H\_")
|
||||||
endif = re.compile("#endif /\* \_(.*)\_H\_")
|
#doubleu2 = re.compile("#define (.*)\_\_H\_")
|
||||||
|
defn = re.compile("#define \_(.*)\_H\_")
|
||||||
|
endif = re.compile("#endif /\* \_(.*)\_H\_")
|
||||||
|
|
||||||
|
|
||||||
def fix_hdr(file):
|
def fix_hdr(file):
|
||||||
|
@ -16,6 +18,16 @@ def fix_hdr(file):
|
||||||
line = ins.readline()
|
line = ins.readline()
|
||||||
found = False
|
found = False
|
||||||
while line:
|
while line:
|
||||||
|
m = doubleu.search(line)
|
||||||
|
if m:
|
||||||
|
ous.write("#")
|
||||||
|
ous.write(m.group(1))
|
||||||
|
ous.write(" ")
|
||||||
|
ous.write(m.group(2))
|
||||||
|
ous.write("_H_\n")
|
||||||
|
line = ins.readline()
|
||||||
|
found = True
|
||||||
|
continue
|
||||||
m = ifndef.search(line)
|
m = ifndef.search(line)
|
||||||
if m:
|
if m:
|
||||||
print m.group(1)
|
print m.group(1)
|
||||||
|
|
|
@ -18,8 +18,8 @@ Notes:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#ifndef Z3__H_
|
#ifndef Z3_H_
|
||||||
#define Z3__H_
|
#define Z3_H_
|
||||||
|
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
#include"z3_macros.h"
|
#include"z3_macros.h"
|
||||||
|
|
|
@ -22,8 +22,8 @@ Notes:
|
||||||
#include"rational.h"
|
#include"rational.h"
|
||||||
#include"z3_macros.h"
|
#include"z3_macros.h"
|
||||||
|
|
||||||
#ifndef Z3_PRIVATE__H_
|
#ifndef Z3_PRIVATE_H_
|
||||||
#define Z3_PRIVATE__H_
|
#define Z3_PRIVATE_H_
|
||||||
|
|
||||||
|
|
||||||
#ifndef CAMLIDL
|
#ifndef CAMLIDL
|
||||||
|
|
|
@ -16,8 +16,8 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#ifndef SCOPED_PROOF__H_
|
#ifndef SCOPED_PROOF_H_
|
||||||
#define SCOPED_PROOF__H_
|
#define SCOPED_PROOF_H_
|
||||||
|
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@ Author:
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
#ifndef DDNF__H_
|
#ifndef DDNF_H_
|
||||||
#define DDNF__H_
|
#define DDNF_H_
|
||||||
|
|
||||||
#include "ast.h"
|
#include "ast.h"
|
||||||
#include "lbool.h"
|
#include "lbool.h"
|
||||||
|
|
Loading…
Reference in a new issue