add: pointers, & and * keywords

stack is now long long :sadge:
This commit is contained in:
2024-01-22 19:49:14 +01:00
parent 64f8ecdbb3
commit 827937e4dc
9 changed files with 49 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ int dprintf(int stream, const char * format, ...) {
int wrote = vsprintf(buf, format, args);
struct sockaddr name = {0};
int len = 0;
if (getsockname(stream, &name, &len) == WSAENOTSOCK) {
if (getsockname(stream, &name, &len) != 0) {
_write(stream, buf, sizeof(buf));
}
else {
@@ -89,7 +89,7 @@ int pasm_run_script(const char *filename, char **file, size_t lines, int _fstrea
fstream = _fstream;
if (filename && read_script(filename, &file, &lines) == 1)
return 1;
return 1;
if (init_state() == 1) {
dprintf(fstream, "Failed to initialize the interpreter.\n");
free_script(file);