diff options
| author | 2015-09-01 16:50:53 +0000 | |
|---|---|---|
| committer | 2015-09-01 16:50:53 +0000 | |
| commit | f9d0740352eff66fdb9a69f4313b0850a871dcd9 (patch) | |
| tree | 14d942fae464f4a4aacd21109f62fc2cedb87639 /tools/aidl/aidl.cpp | |
| parent | fead6f025bafca5af922f4c644a00c0dca297413 (diff) | |
| parent | f7ea7c7b26dd129895c59be3b241d3676556fc42 (diff) | |
am f7ea7c7b: am 1643e97b: Merge "aidl: Pull main() into dedicated file"
* commit 'f7ea7c7b26dd129895c59be3b241d3676556fc42':
aidl: Pull main() into dedicated file
Diffstat (limited to 'tools/aidl/aidl.cpp')
| -rw-r--r-- | tools/aidl/aidl.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp index 991c5b8497d7..a4ecb758046e 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -933,7 +933,7 @@ check_and_assign_method_ids(const char * filename, interface_item_type* first_it } // ========================================================== -static int +int compile_aidl(Options& options) { int err = 0, N; @@ -1063,7 +1063,7 @@ compile_aidl(Options& options) return err; } -static int +int preprocess_aidl(const Options& options) { vector<string> lines; @@ -1135,24 +1135,3 @@ preprocess_aidl(const Options& options) close(fd); return 0; } - -// ========================================================== -int -main(int argc, const char **argv) -{ - Options options; - int result = parse_options(argc, argv, &options); - if (result) { - return result; - } - - switch (options.task) - { - case COMPILE_AIDL: - return compile_aidl(options); - case PREPROCESS_AIDL: - return preprocess_aidl(options); - } - fprintf(stderr, "aidl: internal error\n"); - return 1; -} |