summaryrefslogtreecommitdiffstats
path: root/edify/expr.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-08-21 19:36:11 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-08-21 19:36:11 +0200
commit93fa4b677cac9288e936915f15ca8e5f76a4e4b6 (patch)
tree2aa9d806b2c6f235ea79780f6f5452927fd80df7 /edify/expr.h
parentMerge "Fix potential crash" (diff)
parentedify: Switch to C++. (diff)
downloadandroid_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar.gz
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar.bz2
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar.lz
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar.xz
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.tar.zst
android_bootable_recovery-93fa4b677cac9288e936915f15ca8e5f76a4e4b6.zip
Diffstat (limited to 'edify/expr.h')
-rw-r--r--edify/expr.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/edify/expr.h b/edify/expr.h
index a9ed2f9c5..36f8e9612 100644
--- a/edify/expr.h
+++ b/edify/expr.h
@@ -21,10 +21,6 @@
#include "yydefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define MAX_STRING_LEN 1024
typedef struct Expr Expr;
@@ -59,7 +55,7 @@ typedef Value* (*Function)(const char* name, State* state,
struct Expr {
Function fn;
- char* name;
+ const char* name;
int argc;
Expr** argv;
int start, end;
@@ -166,8 +162,4 @@ void FreeValue(Value* v);
int parse_string(const char* str, Expr** root, int* error_count);
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
#endif // _EXPRESSION_H