aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Marshall <tdm.code@gmail.com>2018-03-06 23:28:59 +0100
committerTom Marshall <tdm.code@gmail.com>2018-03-06 23:28:59 +0100
commitcfe7878b590cacb3e28085a10db8cc68dcc26636 (patch)
treece54521f5dae6bf6f8dfcf51becc5da3de48d5c7
parenta4bf73261a7cac2bdd32e915b53449e82f86f288 (diff)
downloadandroid_external_one-true-awk-lineage-15.1.tar.gz
android_external_one-true-awk-lineage-15.1.tar.bz2
android_external_one-true-awk-lineage-15.1.zip
awk: Add libawk_main for recovery and fixup symbolslineage-15.1
Change-Id: I9d7c1c224db05ae523b081b82a588d5e7ac0bf6d
-rw-r--r--Android.bp6
-rw-r--r--proto.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index aed5304..f8a5d7e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,3 +41,9 @@ cc_binary {
stem: "awk",
vendor: true,
}
+
+cc_library_static {
+ name: "libawk_main",
+ defaults: ["awk-defaults"],
+ cflags: ["-Dmain=awk_main"],
+}
diff --git a/proto.h b/proto.h
index 9a657ef..e185200 100644
--- a/proto.h
+++ b/proto.h
@@ -22,6 +22,12 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/
+#define execute awk_execute
+#define yyerror awk_yyerror
+#define yylex awk_yylex
+#define tfree awk_tfree
+#define hash awk_hash
+
extern int yywrap(void);
extern void setfname(Cell *);
extern int constnode(Node *);