#include <rz_util.h>
#include <rz_main.h>
#include <rz_socket.h>
Go to the source code of this file.
◆ rz_main_rz_run()
Definition at line 25 of file rz-run.c.
28 if (argc == 1 || !strcmp(
argv[1],
"-h")) {
29 printf(
"Usage: rz-run -v|-t|script.rr2 [directive ..]\n");
33 if (!strcmp(
argv[1],
"-v")) {
37 if (!strcmp(
file,
"-t")) {
49 bool noMoreDirectives =
false;
50 int directiveIndex = 0;
52 for (
i = *
file ? 1 : 2;
i < argc;
i++) {
53 if (!strcmp(
argv[
i],
"--")) {
54 noMoreDirectives =
true;
57 if (noMoreDirectives) {
58 const char *word =
argv[
i];
59 char *
line = directiveIndex
75 printf(
"error while configuring the environment.\n");
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
static static fork const void static count static fd const char const char static newpath char char argv
RZ_API int rz_main_version_print(const char *program)
RZ_API void rz_run_free(RzRunProfile *r)
RZ_API RzRunProfile * rz_run_new(const char *str)
RZ_API const char * rz_run_help(void)
RZ_API bool rz_run_parseline(RzRunProfile *p, const char *b)
RZ_API int rz_run_start(RzRunProfile *p)
RZ_API int rz_run_config_env(RzRunProfile *p)
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
References argv, eprintf, free(), i, setup::line, NULL, p, printf(), rz_main_version_print(), rz_run_config_env(), rz_run_free(), rz_run_help(), rz_run_new(), rz_run_parseline(), rz_run_start(), and rz_str_newf().
Referenced by MAIN_NAME().