Moved time header includes, comment tweaks

This commit is contained in:
2023-01-13 15:39:22 +00:00
parent 65e5905011
commit 0649a141dd
7 changed files with 9 additions and 16 deletions

View File

@@ -1,8 +1,10 @@
#include "lib_standard.h"
#include "toy_common.h"
#include "memory.h"
#include <time.h>
#include <sys/time.h>
static int nativeClock(Interpreter* interpreter, LiteralArray* arguments) {
//no arguments
if (arguments->count != 0) {

View File

@@ -1,9 +1,10 @@
#include "lib_timer.h"
#include "toy_common.h"
#include "memory.h"
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
//GOD DAMN IT: https://stackoverflow.com/questions/15846762/timeval-subtract-explanation
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y) {

View File

@@ -100,7 +100,7 @@ int main(int argc, const char* argv[]) {
return 0;
}
//TODO: remove this when the interpreter meets the specification
//version
if (command.verbose) {
printf(NOTICE "Toy Programming Language Version %d.%d.%d\n" RESET, TOY_VERSION_MAJOR, TOY_VERSION_MINOR, TOY_VERSION_PATCH);
}