Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 14 of 14) sorted by relevance

/bootable/recovery/edify/
Dexpr.h43 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 …]
Dexpr.c36 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 …]
Dparser.y40 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;
Dmain.c170 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/
Dinstall.c41 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 …]
Dupdater.c30 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/
Drecovery.c149 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/
Ddump_diskconfig.c26 main(int argc, char *argv[]) in main() argument
30 if (argc < 2) { in main()
/bootable/diskinstaller/editdisklbl/
Deditdisklbl.c55 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/
Dadd-property-tag.c66 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()
Dcheck-lost+found.c47 int main(int argc, char **argv) { in main() argument
/bootable/recovery/minui/
Dmkfont.c4 int main(int argc, char *argv) in main() argument
/bootable/recovery/mtdutils/
Dflash_image.c51 int main(int argc, char **argv) { in main() argument
57 if (argc != 3) { in main()
/bootable/diskinstaller/
Dinstaller.c368 main(int argc, char *argv[]) in main() argument
384 while ((x = getopt (argc, argv, "thdc:l:p:")) != EOF) { in main()