diff options
author | rubidium <rubidium@openttd.org> | 2014-09-19 20:06:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-19 20:06:51 +0000 |
commit | 79ca66eb673c710432d1f4e51af70730a09a82c8 (patch) | |
tree | 5c26b5456711549c69e6d7c74b6e966072670cb6 /src/3rdparty/squirrel/include | |
parent | bd0cd31d4b4e13dcf99c3b4170069d9eb08a91cf (diff) | |
download | openttd-79ca66eb673c710432d1f4e51af70730a09a82c8.tar.xz |
(svn r26853) -Cleanup [Squirrel]: remove some stuff that we never did and especially never should use
Diffstat (limited to 'src/3rdparty/squirrel/include')
-rw-r--r-- | src/3rdparty/squirrel/include/sqstdblob.h | 12 | ||||
-rw-r--r-- | src/3rdparty/squirrel/include/sqstdio.h | 45 | ||||
-rw-r--r-- | src/3rdparty/squirrel/include/sqstdsystem.h | 7 |
3 files changed, 0 insertions, 64 deletions
diff --git a/src/3rdparty/squirrel/include/sqstdblob.h b/src/3rdparty/squirrel/include/sqstdblob.h deleted file mode 100644 index d493157ec..000000000 --- a/src/3rdparty/squirrel/include/sqstdblob.h +++ /dev/null @@ -1,12 +0,0 @@ -/* see copyright notice in squirrel.h */ -#ifndef _SQSTDBLOB_H_ -#define _SQSTDBLOB_H_ - -SQUserPointer sqstd_createblob(HSQUIRRELVM v, SQInteger size); -SQRESULT sqstd_getblob(HSQUIRRELVM v,SQInteger idx,SQUserPointer *ptr); -SQInteger sqstd_getblobsize(HSQUIRRELVM v,SQInteger idx); - -SQRESULT sqstd_register_bloblib(HSQUIRRELVM v); - -#endif /*_SQSTDBLOB_H_*/ - diff --git a/src/3rdparty/squirrel/include/sqstdio.h b/src/3rdparty/squirrel/include/sqstdio.h deleted file mode 100644 index bae55f85e..000000000 --- a/src/3rdparty/squirrel/include/sqstdio.h +++ /dev/null @@ -1,45 +0,0 @@ -/* see copyright notice in squirrel.h */ -#ifndef _SQSTDIO_H_ -#define _SQSTDIO_H_ - -#define SQSTD_STREAM_TYPE_TAG 0x80000000 - -struct SQStream { - virtual ~SQStream() {} - virtual SQInteger Read(void *buffer, SQInteger size) = 0; - virtual SQInteger Write(void *buffer, SQInteger size) = 0; - virtual SQInteger Flush() = 0; - virtual SQInteger Tell() = 0; - virtual SQInteger Len() = 0; - virtual SQInteger Seek(SQInteger offset, SQInteger origin) = 0; - virtual bool IsValid() = 0; - virtual bool EOS() = 0; -}; - -#define SQ_SEEK_CUR 0 -#define SQ_SEEK_END 1 -#define SQ_SEEK_SET 2 - -typedef void* SQFILE; - -SQFILE sqstd_fopen(const SQChar *,const SQChar *); -SQInteger sqstd_fread(SQUserPointer, SQInteger, SQInteger, SQFILE); -SQInteger sqstd_fwrite(const SQUserPointer, SQInteger, SQInteger, SQFILE); -SQInteger sqstd_fseek(SQFILE , SQInteger , SQInteger); -SQInteger sqstd_ftell(SQFILE); -SQInteger sqstd_fflush(SQFILE); -SQInteger sqstd_fclose(SQFILE); -SQInteger sqstd_feof(SQFILE); - -SQRESULT sqstd_createfile(HSQUIRRELVM v, SQFILE file,SQBool own); -SQRESULT sqstd_getfile(HSQUIRRELVM v, SQInteger idx, SQFILE *file); - -//compiler helpers -SQRESULT sqstd_loadfile(HSQUIRRELVM v,const SQChar *filename,SQBool printerror); -SQRESULT sqstd_dofile(HSQUIRRELVM v,const SQChar *filename,SQBool retval,SQBool printerror); -SQRESULT sqstd_writeclosuretofile(HSQUIRRELVM v,const SQChar *filename); - -SQRESULT sqstd_register_iolib(HSQUIRRELVM v); - -#endif /*_SQSTDIO_H_*/ - diff --git a/src/3rdparty/squirrel/include/sqstdsystem.h b/src/3rdparty/squirrel/include/sqstdsystem.h deleted file mode 100644 index 552ba178c..000000000 --- a/src/3rdparty/squirrel/include/sqstdsystem.h +++ /dev/null @@ -1,7 +0,0 @@ -/* see copyright notice in squirrel.h */ -#ifndef _SQSTD_SYSTEMLIB_H_ -#define _SQSTD_SYSTEMLIB_H_ - -SQInteger sqstd_register_systemlib(HSQUIRRELVM v); - -#endif /* _SQSTD_SYSTEMLIB_H_ */ |