diff options
author | 2015-08-31 19:03:44 +0000 | |
---|---|---|
committer | 2015-08-31 19:03:44 +0000 | |
commit | 1643e97b330d6c0f47e8643e52b12c6887a89f81 (patch) | |
tree | e5ce2ea7884d84305207da1af3fcfc400e5deadc /tools/aidl/aidl.cpp | |
parent | 2b83384f44ffa30d1d3d61ded9ac4f83a275b77d (diff) | |
parent | 2f77417cce18a4e9247b1ad96682131974a32863 (diff) |
Merge "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 0df9f065381a..d77f2b13dd97 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -936,7 +936,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; @@ -1066,7 +1066,7 @@ compile_aidl(Options& options) return err; } -static int +int preprocess_aidl(const Options& options) { vector<string> lines; @@ -1138,24 +1138,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; -} |