Commit Graph

41 Commits

Author SHA1 Message Date
cb71daec12 Code inclusion rework that include several changes (#58):
All checks were successful
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
616b2eeae3 Cleanup the headers a bit.
All checks were successful
The build was successful.
2019-06-29 11:50:01 +02:00
2ef2b6265c Never disable IO library.
All checks were successful
The build was successful.
2019-06-29 11:10:50 +02:00
3dcc908788 Enable threading.
All checks were successful
The build was successful.
2019-06-27 20:52:37 +02:00
bd24aa0605 Correct more compiler warnings.
All checks were successful
The build was successful.
2019-06-19 09:31:40 +02:00
bffd44a7b4 Get rid of some annoying compiler warnings.
All checks were successful
The build was successful.
2019-06-17 09:51:37 +02:00
173bac16ad Add missing definitions.
All checks were successful
The build was successful.
2019-06-16 19:54:42 +02:00
5c824ec67d Do not set any recursion depth limit.
All checks were successful
The build was successful.
2019-06-10 12:11:55 +02:00
f2116a6461 Always use HTTPS when possible.
All checks were successful
The build was successful.
2019-05-15 20:02:39 +02:00
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.
All checks were successful
The build was successful.
2019-04-10 09:45:00 +02:00
243faf4373 Header cleanup.
All checks were successful
The build was successful.
2019-03-24 09:38:52 +01:00
accde59f9e Cleanup header.
All checks were successful
The build was successful.
2019-03-24 09:32:27 +01:00
fa295b9437 It's callback, not callable.
All checks were successful
The build was successful.
2019-03-24 09:31:19 +01:00
a87471e1e3 The empty() function is useless in Aer.
All checks were successful
The build was successful.
2019-03-24 09:22:10 +01:00
9ee0f1954c Do not omit the floating point.
All checks were successful
The build was successful.
Every modern hardware, including embedded devices, should support floating point numbers.
2018-09-07 06:38:32 +02:00
cb8ddaab5f This is obsolete.
All checks were successful
The build was successful.
2018-09-05 21:54:52 +02:00
3887aa69a6 Never disable hash functions.
All checks were successful
The build was successful.
2018-09-05 21:46:25 +02:00
c3a4c8de77 Never disable builtin functions.
All checks were successful
The build was successful.
2018-09-05 20:47:07 +02:00
11ba0ce738 No need to store output length in VM.
All checks were successful
The build was successful.
2018-09-05 18:33:53 +02:00
d793d3ed70 Rename PH7_VmGenericError() to PH7_VmThrowError()
All checks were successful
The build was successful.
2018-09-04 08:54:48 +02:00
dc0a55c8c0 Cleanup old error handler.
All checks were successful
The build was successful.
2018-09-04 08:38:41 +02:00
fd4206a227 Remove error_log() builtin function and corresponding PH7_VM_CONFIG_ERR_LOG_HANDLER.
All checks were successful
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
461ee00034 Allow to use PH7_CTX_DEPRECATED.
All checks were successful
The build was successful.
2018-08-30 13:47:01 +02:00
6a14e88973 Remove unused definition.
Some checks reported errors
The build has failed.
2018-08-27 20:22:23 +02:00
ab5ee94f99 API function rename.
All checks were successful
The build was successful.
2018-08-26 19:18:33 +02:00
4dbd3ea412 New memory subsystem.
All checks were successful
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
c83d6e13fc Removing xExec.
All checks were successful
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
039fde099f Compile Aer code or chunk of code.
All checks were successful
The build was successful.
2018-08-16 09:34:18 +02:00
f9946e9842 Reimplement filegroup() and fileowner() as builtin function, #42.
All checks were successful
The build was successful.
2018-08-15 21:58:21 +02:00
16ea44372f Dictionary correction.
All checks were successful
The build was successful.
2018-08-15 21:35:44 +02:00
ac1dee48c9 Reimplement fileinode() as builtin function, #42.
All checks were successful
The build was successful.
2018-08-15 21:28:59 +02:00
b642858044 Add missing definition
All checks were successful
The build was successful.
2018-08-15 20:20:56 +02:00
b94a23d580 Get rid of PH7 ident
All checks were successful
The build was successful.
2018-08-15 20:03:39 +02:00
26b1675021 API function rename
All checks were successful
The build was successful.
2018-08-14 17:43:43 +02:00
ece036b214 Rework the entry point
All checks were successful
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
ef2ea60a60 Treat whole file as P# source code. Fixes #24. 2018-07-28 18:28:19 +02:00
e2aa774a6a Reimplement SyRealPath(); fix build. 2018-07-23 20:45:30 +02:00
52d9616503 Revert d937d0c825 2018-07-23 19:39:21 +02:00
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
e7b78be8e5 Fix #15, merge from fix_debug_backtrace branch (#18) 2018-07-22 19:24:00 +01:00
abb91a9874 Reorganize the repository for new build system 2018-07-20 22:35:09 +02:00