minor formatting
This commit is contained in:
parent
e3e4ca1d68
commit
5ab2a6660e
17
picoc.c
17
picoc.c
|
@ -1,9 +1,9 @@
|
||||||
/* picoc main program - this varies depending on your operating system and
|
/* picoc main program - this varies depending on your operating system and
|
||||||
* how you're using picoc */
|
* how you're using picoc */
|
||||||
|
|
||||||
/* include only picoc.h here - should be able to use it with only the external interfaces, no internals from interpreter.h */
|
/* include only picoc.h here - should be able to use it with only the
|
||||||
|
external interfaces, no internals from interpreter.h */
|
||||||
#include "picoc.h"
|
#include "picoc.h"
|
||||||
#include "LICENSE.h"
|
|
||||||
|
|
||||||
/* platform-dependent code for running programs is in this file */
|
/* platform-dependent code for running programs is in this file */
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "LICENSE.h"
|
||||||
|
|
||||||
/* Override via STACKSIZE environment variable */
|
/* Override via STACKSIZE environment variable */
|
||||||
/* stack space */
|
/* stack space */
|
||||||
#define PICOC_STACK_SIZE (128000*4)
|
#define PICOC_STACK_SIZE (128000*4)
|
||||||
|
@ -25,11 +27,12 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (argc < 2 || strcmp(argv[ParamCount], "-h") == 0) {
|
if (argc < 2 || strcmp(argv[ParamCount], "-h") == 0) {
|
||||||
printf(PICOC_VERSION " \n"
|
printf(PICOC_VERSION " \n"
|
||||||
"Format: picoc <file1.c>... [- <arg1>...] : run a program, calls main() as the entry point\n"
|
"Format:\n\n"
|
||||||
" picoc -s <file1.c>... [- <arg1>...] : run a script, runs the program without calling main()\n"
|
"> picoc <file1.c>... [- <arg1>...] : run a program, calls main() as the entry point\n"
|
||||||
" picoc -i : interactive mode, Ctrl+d to exit\n"
|
"> picoc -s <file1.c>... [- <arg1>...] : run a script, runs the program without calling main()\n"
|
||||||
" picoc -c : copyright info\n"
|
"> picoc -i : interactive mode, Ctrl+d to exit\n"
|
||||||
" picoc -h : this help message\n");
|
"> picoc -c : copyright info\n"
|
||||||
|
"> picoc -h : this help message\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue