consistent include guards

This commit is contained in:
River Tarnell 2008-08-07 14:23:49 +00:00
parent dbfbc1c16e
commit 912ddf6f47
4 changed files with 18 additions and 10 deletions

View file

@ -1,3 +1,6 @@
#ifndef AFEVAL_H
#define AFEVAL_H
#include "afparser.h"
#include "afutils.h"
// #include "aftypes.h"
@ -38,3 +41,5 @@ class FilterEvaluator {
// typedef AFPData (*AFPFunction) (vector<AFPData>);
vector<string> getOpsForType( string type );
#endif /* !AFEVAL_H */

View file

@ -1,9 +1,10 @@
#ifndef AFPARSER_H
#define AFPARSER_H
#include "aftypes.h"
#include <vector>
#include "afutils.h"
#ifndef PARSER
#define PARSER
vector<AFPToken> af_parse( string code );
bool isDigitOrDot( char chr );
@ -14,4 +15,5 @@ vector<string> getKeywords();
bool isKeyword( string id );
bool isValidOp( string op );
#endif
#endif /* !AFPARSER_H */

View file

@ -1,10 +1,11 @@
#ifndef AFTYPES_H
#define AFTYPES_H
#include <string>
#include <vector>
using namespace std;
#ifndef T_NONE
#define T_NONE 0
#define T_ID 1
#define T_KEYWORD 2
@ -79,4 +80,4 @@ class AFPException :exception {
bool isInVector( string needle, vector<string> haystack );
#endif
#endif /* !AFTYPES_H */

View file

@ -1,9 +1,9 @@
#ifndef AFUTILS_H
#define AFUTILS_H
#include "aftypes.h"
#include <vector>
#ifndef UTILS
#define UTILS
AFPData af_boolInvert( AFPData value );
AFPData af_pow( AFPData base, AFPData exponent );
AFPData af_keywordIn( AFPData needle, AFPData haystack );
@ -15,4 +15,4 @@ AFPData af_sum( AFPData a, AFPData b );
AFPData af_sub( AFPData a, AFPData b );
AFPData af_keyword( string keyword, AFPData a, AFPData b );
#endif
#endif /* !AFUTILS_H */