/bootable/recovery/edify/ |
D | expr.h | 43 int argc, Expr* argv[]); 48 int argc; member 56 char* Literal(const char* name, State* state, int argc, Expr* argv[]); 61 char* ConcatFn(const char* name, State* state, int argc, Expr* argv[]); 62 char* LogicalAndFn(const char* name, State* state, int argc, Expr* argv[]); 63 char* LogicalOrFn(const char* name, State* state, int argc, Expr* argv[]); 64 char* LogicalNotFn(const char* name, State* state, int argc, Expr* argv[]); 65 char* SubstringFn(const char* name, State* state, int argc, Expr* argv[]); 66 char* EqualityFn(const char* name, State* state, int argc, Expr* argv[]); 67 char* InequalityFn(const char* name, State* state, int argc, Expr* argv[]); [all …]
|
D | expr.c | 36 return expr->fn(expr->name, state, expr->argc, expr->argv); in Evaluate() 39 char* ConcatFn(const char* name, State* state, int argc, Expr* argv[]) { in ConcatFn() argument 40 if (argc == 0) { in ConcatFn() 43 char** strings = malloc(argc * sizeof(char*)); in ConcatFn() 45 for (i = 0; i < argc; ++i) { in ConcatFn() 50 for (i = 0; i < argc; ++i) { in ConcatFn() 60 for (i = 0; i < argc; ++i) { in ConcatFn() 67 for (i = 0; i < argc; ++i) { in ConcatFn() 73 char* IfElseFn(const char* name, State* state, int argc, Expr* argv[]) { in IfElseFn() argument 74 if (argc != 2 && argc != 3) { in IfElseFn() [all …]
|
D | parser.y | 40 int argc; member 72 $$->argc = 0; 99 $$->argc = $3.argc; 107 $$.argc = 0; 111 $$.argc = 1; 116 $$.argc = $1.argc + 1; 117 $$.argv = realloc($$.argv, $$.argc * sizeof(Expr*)); 118 $$.argv[$$.argc-1] = $3;
|
D | main.c | 170 for (i = 0; i < n->argc; ++i) { in ExprDump() 175 int main(int argc, char** argv) { in main() argument 179 if (argc == 1) { in main()
|
/bootable/recovery/updater/ |
D | install.c | 41 char* MountFn(const char* name, State* state, int argc, Expr* argv[]) { in MountFn() argument 43 if (argc != 3) { in MountFn() 44 return ErrorAbort(state, "%s() expects 3 args, got %d", name, argc); in MountFn() 103 char* IsMountedFn(const char* name, State* state, int argc, Expr* argv[]) { in IsMountedFn() argument 105 if (argc != 1) { in IsMountedFn() 106 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in IsMountedFn() 131 char* UnmountFn(const char* name, State* state, int argc, Expr* argv[]) { in UnmountFn() argument 133 if (argc != 1) { in UnmountFn() 134 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in UnmountFn() 164 char* FormatFn(const char* name, State* state, int argc, Expr* argv[]) { in FormatFn() argument [all …]
|
D | updater.c | 30 int main(int argc, char** argv) { in main() argument 31 if (argc != 4) { in main() 32 fprintf(stderr, "unexpected number of arguments (%d)\n", argc); in main()
|
/bootable/recovery/ |
D | recovery.c | 149 get_args(int *argc, char ***argv) { in get_args() argument 163 if (*argc <= 1) { in get_args() 169 for (*argc = 1; *argc < MAX_ARGS; ++*argc) { in get_args() 171 (*argv)[*argc] = strdup(arg); in get_args() 180 if (*argc <= 1) { in get_args() 188 for (*argc = 1; *argc < MAX_ARGS; ++*argc) { in get_args() 190 (*argv)[*argc] = strdup(strtok(buf, "\r\n")); // Strip newline. in get_args() 203 for (i = 1; i < *argc; ++i) { in get_args() 390 main(int argc, char **argv) in main() argument 400 get_args(&argc, &argv); in main() [all …]
|
/bootable/diskinstaller/libdiskconfig/ |
D | dump_diskconfig.c | 26 main(int argc, char *argv[]) in main() argument 30 if (argc < 2) { in main()
|
/bootable/diskinstaller/editdisklbl/ |
D | editdisklbl.c | 55 parse_args(int argc, char *argv[], struct disk_info **dinfo, int *test, in parse_args() argument 64 while ((x = getopt (argc, argv, "thl:i:")) != EOF) { in parse_args() 93 if (optind >= argc) { in parse_args() 126 while (optind < argc) { in parse_args() 167 main(int argc, char *argv[]) in main() argument 174 if (parse_args(argc, argv, &dinfo, &test, &verbose)) in main()
|
/bootable/recovery/tools/ota/ |
D | add-property-tag.c | 66 int main(int argc, char **argv) { in main() argument 73 while ((opt = getopt(argc, argv, "f:p:rn")) != -1) { in main() 83 if (argc != optind + 1) { in main()
|
D | check-lost+found.c | 47 int main(int argc, char **argv) { in main() argument
|
/bootable/recovery/minui/ |
D | mkfont.c | 4 int main(int argc, char *argv) in main() argument
|
/bootable/recovery/mtdutils/ |
D | flash_image.c | 51 int main(int argc, char **argv) { in main() argument 57 if (argc != 3) { in main()
|
/bootable/diskinstaller/ |
D | installer.c | 368 main(int argc, char *argv[]) in main() argument 384 while ((x = getopt (argc, argv, "thdc:l:p:")) != EOF) { in main()
|