Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Jun 17, 2015
1 parent e3e4ca1 commit 5ab2a66
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions picoc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* picoc main program - this varies depending on your operating system and
* 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 "LICENSE.h"

/* platform-dependent code for running programs is in this file */

Expand All @@ -12,6 +12,8 @@
#include <stdio.h>
#include <string.h>

#include "LICENSE.h"

/* Override via STACKSIZE environment variable */
/* stack space */
#define PICOC_STACK_SIZE (128000*4)
Expand All @@ -25,11 +27,12 @@ int main(int argc, char **argv)

if (argc < 2 || strcmp(argv[ParamCount], "-h") == 0) {
printf(PICOC_VERSION " \n"
"Format: picoc <file1.c>... [- <arg1>...] : run a program, calls main() as the entry point\n"
" picoc -s <file1.c>... [- <arg1>...] : run a script, runs the program without calling main()\n"
" picoc -i : interactive mode, Ctrl+d to exit\n"
" picoc -c : copyright info\n"
" picoc -h : this help message\n");
"Format:\n\n"
"> picoc <file1.c>... [- <arg1>...] : run a program, calls main() as the entry point\n"
"> picoc -s <file1.c>... [- <arg1>...] : run a script, runs the program without calling main()\n"
"> picoc -i : interactive mode, Ctrl+d to exit\n"
"> picoc -c : copyright info\n"
"> picoc -h : this help message\n");
return 0;
}

Expand Down

0 comments on commit 5ab2a66

Please sign in to comment.