Add -ng suffix to CLI output

This commit is contained in:
Saúl Ibarra Corretgé 2023-11-22 23:52:16 +01:00
parent 1dcb61b521
commit 5e4d45a9d4
4 changed files with 5 additions and 5 deletions

2
qjs.c
View file

@ -269,7 +269,7 @@ static const JSMallocFunctions trace_mf = {
void help(void)
{
printf("QuickJS version %s\n"
printf("QuickJS-ng version %s\n"
"usage: " PROG_NAME " [options] [file [args]]\n"
"-h --help list options\n"
"-e --eval EXPR evaluate EXPR\n"

4
qjsc.c
View file

@ -312,7 +312,7 @@ static const char main_c_template2[] =
void help(void)
{
printf("QuickJS Compiler version %s\n"
printf("QuickJS-ng Compiler version %s\n"
"usage: " PROG_NAME " [options] [files]\n"
"\n"
"options are:\n"
@ -437,7 +437,7 @@ int main(int argc, char **argv)
/* loader for ES6 modules */
JS_SetModuleLoaderFunc(rt, NULL, jsc_module_loader, NULL);
fprintf(fo, "/* File generated automatically by the QuickJS compiler. */\n"
fprintf(fo, "/* File generated automatically by the QuickJS-ng compiler. */\n"
"\n"
);

View file

@ -5936,7 +5936,7 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s)
void JS_DumpMemoryUsage(FILE *fp, const JSMemoryUsage *s, JSRuntime *rt)
{
fprintf(fp, "QuickJS memory usage -- %s version, %d-bit, malloc limit: %"PRId64"\n\n",
fprintf(fp, "QuickJS-ng memory usage -- %s version, %d-bit, malloc limit: %"PRId64"\n\n",
JS_GetVersion(), (int)sizeof(void *) * 8, (int64_t)(ssize_t)s->malloc_limit);
#if 1
if (rt) {

View file

@ -1075,7 +1075,7 @@ import * as os from "os";
}
function cmd_start() {
std.puts('QuickJS - Type "\\h" for help\n');
std.puts('QuickJS-ng - Type "\\h" for help\n');
cmd_readline_start();
}