Piotr Likoski
843c2d67d9
I am pretty sure we want to use the number of elements in array in this place, not the actual size of array.
The size of a structure is greater than the sum of its parts because of what is called packing. A particular processor has a preferred data size that it works with. Most modern processors' preferred size if 32-bits (4 bytes).
1 year ago
Piotr Likoski
33b0f20573
Check the snprintf() return value.
1 year ago
David Carlier
d96dcdf1e0
Little build warning removal
1 year ago
Rafal Kupiec
376b9510a9
Fix typos, formatting.
1 year ago
Rafal Kupiec
ad49b81b33
Add support for HTTP/2.0 protocol version.
1 year ago
Rafal Kupiec
171456beb4
Release all elements in object allocation table.
1 year ago
Rafal Kupiec
563c10bd20
Do not omit floating point.
1 year ago
Rafal Kupiec
2e695a9d35
Link dynamically with libC.
1 year ago
Rafal Kupiec
2ef2b6265c
Never disable IO library.
1 year ago
Rafal Kupiec
a6d89da16b
Do not support old libC.
1 year ago
Rafal Kupiec
48d5088265
Enable the magic number protection.
1 year ago
Rafal Kupiec
3dcc908788
Enable threading.
1 year ago
Rafal Kupiec
4881ddf6de
Pass compatible pointer type.
1 year ago
Rafal Kupiec
312fb97db6
Another FS-related bugfix to make compiler happy.
1 year ago
Rafal Kupiec
0a2f1133d5
Do not use pointer for file path.
1 year ago
Rafal Kupiec
647454b98d
Another signedness correction.
1 year ago
Rafal Kupiec
72782b147a
Do not convert between data pointers and function pointers.
1 year ago
Rafal Kupiec
edb62ed692
Correct signedness.
1 year ago
Rafal Kupiec
8b2086402e
Fix all compiler warnings in AerScript compiler.
1 year ago
Rafal Kupiec
dcf37af75e
Implement a NULL-coalescing '??' operator.
1 year ago
Rafal Kupiec
3045bd2d88
Update lexer. Add missing operators.
1 year ago
Rafal Kupiec
19d0628afc
Do not try to duplicate an array when source equals to destination.
1 year ago
Rafal Kupiec
59811ac742
Completely rely on the compiler.
1 year ago
Rafal Kupiec
e40dc34026
Pass proper line number from compiler to the virtual machine.
1 year ago
Rafal Kupiec
ca51e2a5da
Add comments.
1 year ago
Rafal Kupiec
bd24aa0605
Correct more compiler warnings.
1 year ago
Rafal Kupiec
690213e0c7
Do not use a pointer for temporary value.
1 year ago
Rafal Kupiec
0be38392bd
Correct variable types, to make compiler silent.
1 year ago
Rafal Kupiec
bffd44a7b4
Get rid of some annoying compiler warnings.
1 year ago
Rafal Kupiec
8d0c128d22
Fix comparison of integer expressions of different signedness.
1 year ago
Rafal Kupiec
c7b6e76d0d
Get rid of unused variables/labels/etc.
1 year ago
Rafal Kupiec
8985044054
Remove some unused variables.
1 year ago
Rafal Kupiec
010bdd7331
Properly destroy temporary memory object. Fix memory leak.
1 year ago
Rafal Kupiec
0bef248298
Implement PH7_VmDestroyMemObj() to forcibly destroy a memory object.
1 year ago
Rafal Kupiec
d09a33da55
Do not duplicate variable name in this case.
This should save a lot of memory on many method calls.
1 year ago
Rafal Kupiec
673796d878
Add missing function description.
1 year ago
Rafal Kupiec
4723128b74
Implement PH7_MemObjIsNull().
1 year ago
Rafal Kupiec
0ef6b449c6
Make a free slot in operator precedence for NULL-coalescing operator.
1 year ago
Rafal Kupiec
5c824ec67d
Do not set any recursion depth limit.
1 year ago
Rafal Kupiec
9aa192db69
Remove unused argument from PH7_MemObjInitFromVoid().
1 year ago
Rafal Kupiec
fdba2c0a5c
Set data type to void, not just NULL.
1 year ago
Rafal Kupiec
6c277c1eca
Allow implicitly-typed variable declarations inside 'for' and 'foreach' loops.
1 year ago
Rafal Kupiec
0327c3130f
Do not allow to initialize an implicitly-typed variable with an array initializer.
1 year ago
Rafal Kupiec
78c416c6b8
Implement the implicit 'auto' type.
An implicitly typed local variable is strongly typed just as if it had been declared the type, but the compiler determines the type. The following two declarations of $i are functionally equivalent:
int $i = 10; // Explicitly typed.
auto $i = 10; // Implicitly typed.
1 year ago
Rafal Kupiec
cbe4f29909
Define 'auto' keyword.
1 year ago
Rafal Kupiec
a00d30afa2
Set NULL data type instead of throwing an error.
1 year ago
Rafal Kupiec
65aaf7be67
Correct error message.
1 year ago
Rafal Kupiec
43a1f135cc
Set correct variable type if NULL or not set at all.
1 year ago
Rafal Kupiec
343c25ca77
Fix for the segmentation fault.
1 year ago
Rafal Kupiec
46458d1e1b
Prefix variable name by dollar '$' sign.
1 year ago