-
-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is Squirrel 3.0.7 from squirrel-lang.org.
- Loading branch information
Showing
50 changed files
with
5,620 additions
and
3,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ | |
20 | ||
30 | ||
40 | ||
Ops: 8673 | ||
Ops: 8725 | ||
|
||
--Std-- | ||
abs(-21): 21 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
Copyright (c) 2003-2011 Alberto Demichelis | ||
Copyright (c) 2003-2015 Alberto Demichelis | ||
|
||
This software is provided 'as-is', without any | ||
express or implied warranty. In no event will the | ||
authors be held liable for any damages arising from | ||
the use of this software. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
Permission is granted to anyone to use this software | ||
for any purpose, including commercial applications, | ||
and to alter it and redistribute it freely, subject | ||
to the following restrictions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
1. The origin of this software must not be | ||
misrepresented; you must not claim that | ||
you wrote the original software. If you | ||
use this software in a product, an | ||
acknowledgment in the product | ||
documentation would be appreciated but is | ||
not required. | ||
|
||
2. Altered source versions must be plainly | ||
marked as such, and must not be | ||
misrepresented as being the original | ||
software. | ||
|
||
3. This notice may not be removed or | ||
altered from any source distribution. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
----------------------------------------------------- | ||
END OF COPYRIGHT |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* see copyright notice in squirrel.h */ | ||
#ifndef _SQSTDBLOB_H_ | ||
#define _SQSTDBLOB_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
SQUIRREL_API SQUserPointer sqstd_createblob(HSQUIRRELVM v, SQInteger size); | ||
SQUIRREL_API SQRESULT sqstd_getblob(HSQUIRRELVM v,SQInteger idx,SQUserPointer *ptr); | ||
SQUIRREL_API SQInteger sqstd_getblobsize(HSQUIRRELVM v,SQInteger idx); | ||
|
||
SQUIRREL_API SQRESULT sqstd_register_bloblib(HSQUIRRELVM v); | ||
|
||
#ifdef __cplusplus | ||
} /*extern "C"*/ | ||
#endif | ||
|
||
#endif /*_SQSTDBLOB_H_*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* see copyright notice in squirrel.h */ | ||
#ifndef _SQSTDIO_H_ | ||
#define _SQSTDIO_H_ | ||
|
||
#ifdef __cplusplus | ||
|
||
#define SQSTD_STREAM_TYPE_TAG 0x80000000 | ||
|
||
struct 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; | ||
}; | ||
|
||
extern "C" { | ||
#endif | ||
|
||
#define SQ_SEEK_CUR 0 | ||
#define SQ_SEEK_END 1 | ||
#define SQ_SEEK_SET 2 | ||
|
||
typedef void* SQFILE; | ||
|
||
SQUIRREL_API SQFILE sqstd_fopen(const SQChar *,const SQChar *); | ||
SQUIRREL_API SQInteger sqstd_fread(SQUserPointer, SQInteger, SQInteger, SQFILE); | ||
SQUIRREL_API SQInteger sqstd_fwrite(const SQUserPointer, SQInteger, SQInteger, SQFILE); | ||
SQUIRREL_API SQInteger sqstd_fseek(SQFILE , SQInteger , SQInteger); | ||
SQUIRREL_API SQInteger sqstd_ftell(SQFILE); | ||
SQUIRREL_API SQInteger sqstd_fflush(SQFILE); | ||
SQUIRREL_API SQInteger sqstd_fclose(SQFILE); | ||
SQUIRREL_API SQInteger sqstd_feof(SQFILE); | ||
|
||
SQUIRREL_API SQRESULT sqstd_createfile(HSQUIRRELVM v, SQFILE file,SQBool own); | ||
SQUIRREL_API SQRESULT sqstd_getfile(HSQUIRRELVM v, SQInteger idx, SQFILE *file); | ||
|
||
//compiler helpers | ||
SQUIRREL_API SQRESULT sqstd_loadfile(HSQUIRRELVM v,const SQChar *filename,SQBool printerror); | ||
SQUIRREL_API SQRESULT sqstd_dofile(HSQUIRRELVM v,const SQChar *filename,SQBool retval,SQBool printerror); | ||
SQUIRREL_API SQRESULT sqstd_writeclosuretofile(HSQUIRRELVM v,const SQChar *filename); | ||
|
||
SQUIRREL_API SQRESULT sqstd_register_iolib(HSQUIRRELVM v); | ||
|
||
#ifdef __cplusplus | ||
} /*extern "C"*/ | ||
#endif | ||
|
||
#endif /*_SQSTDIO_H_*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* see copyright notice in squirrel.h */ | ||
#ifndef _SQSTD_SYSTEMLIB_H_ | ||
#define _SQSTD_SYSTEMLIB_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
SQUIRREL_API SQInteger sqstd_register_systemlib(HSQUIRRELVM v); | ||
|
||
#ifdef __cplusplus | ||
} /*extern "C"*/ | ||
#endif | ||
|
||
#endif /* _SQSTD_SYSTEMLIB_H_ */ |
Oops, something went wrong.