Clean header includes
This commit is contained in:
@@ -66,7 +66,7 @@ enum {DOUBLE_POINTED=1, INVALID_CHAR, INVALID_PARENTHESIS, INVALID_OPERATION};
|
||||
#define P(x)
|
||||
#endif
|
||||
|
||||
double atof(char* s, int size)
|
||||
static double atof(char* s, int size)
|
||||
{
|
||||
int neg = 0;
|
||||
double res = 0;
|
||||
@@ -94,7 +94,7 @@ double atof(char* s, int size)
|
||||
return res;
|
||||
}
|
||||
|
||||
void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
|
||||
void ParseExp::ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
|
||||
{
|
||||
char* temp;
|
||||
bool pointed = false;
|
||||
@@ -256,7 +256,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
|
||||
return ;
|
||||
}
|
||||
|
||||
double EvaluateExpr(struct parse_opt* root, bool del)
|
||||
double ParseExp::EvaluateExpr(struct parse_opt* root, bool del)
|
||||
{
|
||||
double l, r;
|
||||
char type;
|
||||
@@ -304,6 +304,7 @@ double EvaluateExpr(struct parse_opt* root, bool del)
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
using namespace ParseExp;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user