Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
r-lyeh
committed
Jul 13, 2015
1 parent
45db566
commit eb17602
Showing
1,231 changed files
with
520,853 additions
and
1 deletion.
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
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,17 @@ | ||
#include <objectscript.h> | ||
#include <os-binder.h> | ||
|
||
float test(float a, float b){ return a + b; } | ||
|
||
int main( int argc, const char **argv ) | ||
{ | ||
if( argc <= 1 ) return -1; | ||
|
||
using namespace ObjectScript; | ||
OS * os = OS::create(); | ||
//os->setGlobal(def("test", test)); // use binder | ||
//os->eval("print(test(2, 3))"); // outputs: 5 | ||
os->require(argv[1]); | ||
os->release(); | ||
return 0; | ||
} |
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,3 @@ | ||
cl /Feos.exe main.cc -I objectscript\src objectscript\src\ext-json\*.c* objectscript\src\ext-datetime\*.c* objectscript\src\ext-url\*.c* objectscript\src\ext-process\*.c* objectscript\src\ext-filesystem\*.c* objectscript\src\ext-base64\*.c* objectscript\src\ext-hashlib\*.cpp objectscript\src\ext-hashlib\sha\*.c* objectscript\src\ext-hashlib\md5\*.c* objectscript\src\ext-hashlib\des\*.c* objectscript\src\ext-hashlib\crc32\*.c* objectscript\src\objectscript.cpp objectscript\src\os-heap.c* -DOS_CURL_DISABLED -DOS_SQLITE3_DISABLED -DOS_ICONV_DISABLED -DOS_REGEXP_DISABLED -DOS_ODBO_DISABLED -DOS_ZLIB_DISABLED /Ox /Oy /MT /DNDEBUG | ||
|
||
del *.obj |
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,33 @@ | ||
*.osc | ||
*.ost | ||
*.tmp | ||
win/os-fcgi/Release/ | ||
win/os-fcgi/Debug/ | ||
win/os-fcgi/DebugPrice/ | ||
win/os-fcgi/bin-Release/ | ||
win/os-fcgi/bin-Debug/ | ||
win/os-fcgi/bin-DebugPrice/ | ||
win/os-fcgi/ipch/ | ||
win/os-fcgi/x64/Release/ | ||
win/os-fcgi/x64/Debug/ | ||
win/os-fcgi/x64/bin-Release/ | ||
win/os-fcgi/x64/bin-Debug/ | ||
win/os-fcgi/cache-osc/ | ||
win/os/Release/ | ||
win/os/Debug/ | ||
win/os/DebugPrice/ | ||
win/os/bin-Release/ | ||
win/os/bin-Debug/ | ||
win/os/bin-DebugPrice/ | ||
win/os/ipch/ | ||
win/os/x64/Release/ | ||
win/os/x64/Debug/ | ||
win/os/x64/bin-Release/ | ||
win/os/x64/bin-Debug/ | ||
win/os/cache-osc/ | ||
win/ipch/ | ||
*.opensdf | ||
*.sdf | ||
*.suo | ||
*.vcxproj.user | ||
build |
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,23 @@ | ||
// This file is distributed under GPLv3 licence | ||
// Author: Gorelov Grigory (gorelov@grigory.info) | ||
// | ||
// Contacts and other info are on the WEB page: grigory.info/MPFDParser | ||
|
||
|
||
#include "Exception.h" | ||
|
||
MPFD::Exception::Exception(std::string error) { | ||
Error = error; | ||
} | ||
|
||
MPFD::Exception::Exception(const MPFD::Exception& orig) { | ||
Error = orig.Error; | ||
} | ||
|
||
MPFD::Exception::~Exception() { | ||
|
||
} | ||
|
||
std::string MPFD::Exception::GetError() { | ||
return Error; | ||
} |
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,32 @@ | ||
// This file is distributed under GPLv3 licence | ||
// Author: Gorelov Grigory (gorelov@grigory.info) | ||
// | ||
// Contacts and other info are on the WEB page: grigory.info/MPFDParser | ||
|
||
|
||
#ifndef _EXCEPTION_H | ||
#define _EXCEPTION_H | ||
|
||
#include <string> | ||
// #include <iostream> | ||
#include <errno.h> | ||
|
||
|
||
namespace MPFD { | ||
|
||
class Exception { | ||
public: | ||
Exception(std::string error); | ||
Exception(const Exception& orig); | ||
virtual ~Exception(); | ||
|
||
std::string GetError(); | ||
|
||
private: | ||
std::string Error; | ||
|
||
}; | ||
} | ||
|
||
#endif /* _EXCEPTION_H */ | ||
|
Oops, something went wrong.