Added ARGC, ARGV, ENVIRON, PROCINFO to StdAwk. Still pending setioattr and getioattr

This commit is contained in:
2012-08-07 09:56:53 +00:00
parent 02a72ee8e7
commit 1c1cb83bb1
4 changed files with 254 additions and 31 deletions

View File

@ -119,6 +119,12 @@ public:
void clearConsoleOutputs ();
protected:
int make_additional_globals (Run* run);
int build_argcv (Run* run);
int build_environ (Run* run);
int __build_environ (Run* run, void* envptr);
int build_procinfo (Run* run);
// intrinsic functions
int rand (Run& run, Value& ret, const Value* args, size_t nargs,
const char_t* name, size_t len);