Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
9975f197
Commit
9975f197
authored
May 19, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new global constants
parent
0fa3f2a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
global.constant
conf/global.constant
+2
-0
constants.cc
util/constants.cc
+11
-1
constants.hh
util/constants.hh
+1
-0
No files found.
conf/global.constant
View file @
9975f197
...
...
@@ -10,4 +10,6 @@ useSalt:true
BS_STR:MIN
BS_IA:MIN
BS_IH:MIN
#true or false
USE_ASHE:true
other:1
util/constants.cc
View file @
9975f197
...
...
@@ -108,7 +108,17 @@ globalConstants initGlobalConstants(){
POINT
assert
(
0
);
}
}
else
{
}
else
if
(
head
==
"USE_ASHE"
)
{
std
::
string
sub
=
line
.
substr
(
index
+
1
);
if
(
sub
==
"true"
){
res
.
USE_ASHE
=
true
;
}
else
if
(
sub
==
"false"
){
res
.
USE_ASHE
=
false
;
}
else
{
POINT
assert
(
0
);
}
}
else
{
POINT
assert
(
0
);
}
...
...
util/constants.hh
View file @
9975f197
...
...
@@ -21,6 +21,7 @@ struct globalConstants{
int
BS_STR
;
int
BS_IA
;
int
BS_IH
;
bool
USE_ASHE
;
std
::
string
logFile
;
/*file name for log*/
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment