• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #include "hcs_compiler.h"
10 #include "hcs_decompiler.h"
11 #include "hcs_option.h"
12 
main(int32_t argc,char * argv[])13 int32_t main(int32_t argc, char *argv[])
14 {
15     int32_t status = DoOption(argc, argv);
16     if (status != NOERR) {
17         return status;
18     }
19 
20     if (HcsOptDecompile()) {
21         status = HcsDoDecompile();
22     } else {
23         status = HcsDoCompile();
24     }
25 
26     return status ? EFAIL : NOERR;
27 }
28