[DEV] build and execute again

This commit is contained in:
2018-06-28 00:09:15 +02:00
parent 1b59eb8c8e
commit f882c9fedc
19 changed files with 52 additions and 29 deletions

View File

@@ -9,6 +9,7 @@
#include <rabbit/rabbit.hpp>
#include <rabbit-std/sqstdaux.hpp>
#include <assert.h>
#include <rabbit/StackInfos.hpp>
void sqstd_printcallstack(rabbit::VirtualMachine* v)
{

View File

@@ -136,7 +136,7 @@ static int64_t _file_constructor(rabbit::VirtualMachine* v)
bool owns = true;
SQFile *f;
SQFILE newf;
if(sq_gettype(v,2) == rabbit::OT_STRING && sq_gettype(v,3) == OT_STRING) {
if(sq_gettype(v,2) == rabbit::OT_STRING && sq_gettype(v,3) == rabbit::OT_STRING) {
sq_getstring(v, 2, &filename);
sq_getstring(v, 3, &mode);
newf = sqstd_fopen(filename, mode);

View File

@@ -8,6 +8,7 @@
#pragma once
#include <rabbit/rabbit.hpp>
#include <rabbit/RegFunction.hpp>
RABBIT_API rabbit::Result sqstd_register_mathlib(rabbit::VirtualMachine* v);

View File

@@ -7,6 +7,8 @@
*/
#pragma once
#include <rabbit/RegFunction.hpp>
int64_t _stream_readblob(rabbit::VirtualMachine* v);
int64_t _stream_readline(rabbit::VirtualMachine* v);
int64_t _stream_readn(rabbit::VirtualMachine* v);

View File

@@ -7,6 +7,8 @@
*/
#pragma once
#include <rabbit/RegFunction.hpp>
typedef unsigned int SQRexBool;
typedef struct SQRex SQRex;

View File

@@ -27,6 +27,8 @@
#define screname rename
#endif
#include <rabbit/RegFunction.hpp>
static int64_t _system_getenv(rabbit::VirtualMachine* v)
{
const rabbit::Char *s;