Commit Graph
41 Commits
Author SHA1 Message Date
belliash cb71daec12 Code inclusion rework that include several changes (#58):
The build was successful.
* include() builtin function allows now to include a chunk of code, eg. a body of some loop
 * include() allows to load and execute file several times
 * require() still allows to include file just once and included file must have a valid OOP syntax
 * both functions will throw E_ERROR when impossible to include specified file
2019-11-27 20:07:50 +01:00
belliash 616b2eeae3 Cleanup the headers a bit.
The build was successful.
2019-06-29 11:50:01 +02:00
belliash 2ef2b6265c Never disable IO library.
The build was successful.
2019-06-29 11:10:50 +02:00
belliash 3dcc908788 Enable threading.
The build was successful.
2019-06-27 20:52:37 +02:00
belliash bd24aa0605 Correct more compiler warnings.
The build was successful.
2019-06-19 09:31:40 +02:00
belliash bffd44a7b4 Get rid of some annoying compiler warnings.
The build was successful.
2019-06-17 09:51:37 +02:00
belliash 173bac16ad Add missing definitions.
The build was successful.
2019-06-16 19:54:42 +02:00
belliash 5c824ec67d Do not set any recursion depth limit.
The build was successful.
2019-06-10 12:11:55 +02:00
belliash f2116a6461 Always use HTTPS when possible.
The build was successful.
2019-05-15 20:02:39 +02:00
belliash d8f9db8f9a Proper implementation of is_callback() & is_callable(). First one only performs a check if variable type is callback, while the second checks if function exists and if can be called.
The build was successful.
2019-04-10 09:45:00 +02:00
belliash 243faf4373 Header cleanup.
The build was successful.
2019-03-24 09:38:52 +01:00
belliash accde59f9e Cleanup header.
The build was successful.
2019-03-24 09:32:27 +01:00
belliash fa295b9437 It's callback, not callable.
The build was successful.
2019-03-24 09:31:19 +01:00
belliash a87471e1e3 The empty() function is useless in Aer.
The build was successful.
2019-03-24 09:22:10 +01:00
belliash 9ee0f1954c Do not omit the floating point.
The build was successful.
Every modern hardware, including embedded devices, should support floating point numbers.
2018-09-07 06:38:32 +02:00
belliash cb8ddaab5f This is obsolete.
The build was successful.
2018-09-05 21:54:52 +02:00
belliash 3887aa69a6 Never disable hash functions.
The build was successful.
2018-09-05 21:46:25 +02:00
belliash c3a4c8de77 Never disable builtin functions.
The build was successful.
2018-09-05 20:47:07 +02:00
belliash 11ba0ce738 No need to store output length in VM.
The build was successful.
2018-09-05 18:33:53 +02:00
belliash d793d3ed70 Rename PH7_VmGenericError() to PH7_VmThrowError()
The build was successful.
2018-09-04 08:54:48 +02:00
belliash dc0a55c8c0 Cleanup old error handler.
The build was successful.
2018-09-04 08:38:41 +02:00
belliash fd4206a227 Remove error_log() builtin function and corresponding PH7_VM_CONFIG_ERR_LOG_HANDLER.
The build was successful.
It was not fully implemented and such feature should be implemented in separate module or on developers own.
2018-09-03 19:03:05 +02:00
belliash 461ee00034 Allow to use PH7_CTX_DEPRECATED.
The build was successful.
2018-08-30 13:47:01 +02:00
belliash 6a14e88973 Remove unused definition.
The build has failed.
2018-08-27 20:22:23 +02:00
belliash ab5ee94f99 API function rename.
The build was successful.
2018-08-26 19:18:33 +02:00
belliash 4dbd3ea412 New memory subsystem.
The build was successful.
This is a new memory subsystem implementing heap calculations as well as new builtin functions:
 * get_memory_usage()
 * get_memory_peak_usage()
 * get_memory_limit()
It also allows to set an upper memory limit, ensuring that processed script will not be able to allocate more memory from OS.
New subsystem is based on work done in 'memory_limit' branch. Big thanks to devnexen!
This finally fixes #25.
2018-08-18 19:24:38 +02:00
belliash c83d6e13fc Removing xExec.
The build was successful.
First of all, VFS is not a right place for this, finally it was not implemented anyway.
2018-08-16 21:37:34 +02:00
belliash 039fde099f Compile Aer code or chunk of code.
The build was successful.
2018-08-16 09:34:18 +02:00
belliash f9946e9842 Reimplement filegroup() and fileowner() as builtin function, #42.
The build was successful.
2018-08-15 21:58:21 +02:00
belliash 16ea44372f Dictionary correction.
The build was successful.
2018-08-15 21:35:44 +02:00
belliash ac1dee48c9 Reimplement fileinode() as builtin function, #42.
The build was successful.
2018-08-15 21:28:59 +02:00
belliash b642858044 Add missing definition
The build was successful.
2018-08-15 20:20:56 +02:00
belliash b94a23d580 Get rid of PH7 ident
The build was successful.
2018-08-15 20:03:39 +02:00
belliash 26b1675021 API function rename
The build was successful.
2018-08-14 17:43:43 +02:00
belliash ece036b214 Rework the entry point
The build was successful.
* some functions were not used and have been removed
 * some parameters seemed to be useless and have been removed
 * code cleanup
2018-08-14 13:45:27 +02:00
belliash ef2ea60a60 Treat whole file as P# source code. Fixes #24. 2018-07-28 18:28:19 +02:00
belliash e2aa774a6a Reimplement SyRealPath(); fix build. 2018-07-23 20:45:30 +02:00
belliash 52d9616503 Revert d937d0c825 2018-07-23 19:39:21 +02:00
devnexen dba8e5098f fixing in the vm context instead, making the feature available in case realpath could be implemented as well 2018-07-23 06:07:27 +01:00
devnexen e7b78be8e5 Fix #15, merge from fix_debug_backtrace branch (#18) 2018-07-22 19:24:00 +01:00
belliash abb91a9874 Reorganize the repository for new build system 2018-07-20 22:35:09 +02:00