Dan Hirsch
|
14a5c5c1ef
|
Test suite now builds
|
2014-01-04 23:13:35 +01:00 |
|
Dan Hirsch
|
ee751a97c1
|
Added CSharp code generator for test suite generator
|
2014-01-04 23:13:35 +01:00 |
|
Dan Hirsch
|
a219ffc45d
|
Have a typemap for uint8_t*
|
2014-01-04 23:13:35 +01:00 |
|
Dan Hirsch
|
cbdff5fbc0
|
Added basic scons/swig bindings
|
2014-01-04 23:13:35 +01:00 |
|
Dan Hirsch
|
d78cde3830
|
Added csharp builder to scons
|
2014-01-04 23:13:35 +01:00 |
|
Meredith L. Patterson
|
b808658613
|
add info about php bindings
|
2013-12-22 09:48:24 -08:00 |
|
TQ Hirsch
|
1d693e4f16
|
Merge pull request #86 from abiggerhammer/php-bindings
Php bindings
|
2013-12-22 09:45:41 -08:00 |
|
Meredith L. Patterson
|
ecfe8a64d6
|
tidying php-bindings directory and travis output
|
2013-12-22 18:27:59 +01:00 |
|
Meredith L. Patterson
|
10dffd3ee4
|
trying to fix missing function name for call_action
|
2013-12-22 18:12:12 +01:00 |
|
Meredith L. Patterson
|
9ea27e9203
|
let's see what config travis uses, shall we?
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
500257d111
|
remove spurious TSRMLS_CC
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
c52e8bdbf0
|
no, it's perl that needs 2.0.8
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
d6dbf4ba41
|
SWIG doesn't like adding TSRMLS_* macros to fn decls, so TSRMLS_FETCH it is
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
c67391cfbb
|
what happens when we call hpt_to_php with TSRMLS_CC?
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
bb58af5738
|
ok, outside of the init block then
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
838bf54aa0
|
what happens if we declare tsrm_ls explicitly at global scope?
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
1f256ac7c8
|
this may be fixed on 2.0.4 but not 2.0.8? https://groups.google.com/forum/#!topic/librets/uN0UKRO7juE
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
203bb85b65
|
apparently zts needs a TSRMLS_C declaration for invocations of zend_exception_get_default()
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
80eed33825
|
use only zend_throw_exception, not SWIG exception wrappers
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
8286ce087d
|
hpt_to_php needs TSRMLS_FETCH too; update swig to version perl uses
|
2013-12-22 18:12:11 +01:00 |
|
Meredith L. Patterson
|
4826607e67
|
add TSRMLS_FETCH at top of blocks that need tsrm_ls
|
2013-12-22 18:10:47 +01:00 |
|
Meredith L. Patterson
|
f9eebda673
|
fix segfault with optimized code; initialize TSRM stuff
|
2013-12-22 18:10:47 +01:00 |
|
Meredith L. Patterson
|
b9ce12f3b6
|
Great PHP Symbol Renaming; debug build works, optimised build segfaults. is it gcc? fuck it all and let travis sort it out
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
bd48af7b90
|
implement predicate; decruft; quiet phpunit
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
c2cde65764
|
xor uses correct version of ch_range; commented out broken underlying C bits of leftrec
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
2730d9ffd7
|
fix ch_range; confirm action works with sequences too
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
6c9410d8de
|
action works! need to clean up xor and ch_range, and write attr_bool
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
53a661442e
|
swap order of params for hpt_to_php
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
34ad3f58fa
|
h_tt_php registered as resource, now to work out how to decode them
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
3ba14c01f1
|
call_action does what it should, now just need to figure out what to do with that resource
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
ab23a29b0e
|
refactor hpt_to_php to eliminate code duplication
|
2013-12-22 18:09:26 +01:00 |
|
Meredith L. Patterson
|
aae140a420
|
map SWIG argument correctly
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
42b25f4784
|
refactor SWIG PHP definitions into their own file
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
8c074420f7
|
redefine in() and not_in() in terms of action with 'chr'
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
de02a2450b
|
decrufted tests that rely on h_ch; still need to do h_action and h_attr_bool
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
a09bd53286
|
Fixed sequence, choice, h_in and h_not_in. ChRange needs its output coerced to char and we're good.
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
4735d17908
|
ActionTest has something wrong with its argument.
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
96470902e2
|
all tests written.
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
60d096bc16
|
more tests written, need to fix that retval problem stat
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
5c5a10b5c1
|
sepby also plagued by sequence/choice return issues
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
a234bdfab3
|
still more tests failing because sequence/choice don't return right
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
eb2855dcb4
|
h_repeat_n's test is failing for the same reason as h_many
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
eef5378f16
|
h_many1's test is failing for the same reason as h_many
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
e9de06636d
|
h_many is failing because of the problem with choice not returning results correctly
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
a10572e751
|
AFAIK h_xor just needs h_ch_range working correctly
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
0c9ab03fd7
|
h_difference works
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
378710844b
|
h_butnot is fine
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
80d4460e6e
|
choice isn't putting its results in the right place either
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
1ce63c26ec
|
sequence is definitely broken, results aren't landing in output array
|
2013-12-22 18:09:25 +01:00 |
|
Meredith L. Patterson
|
fc71e12bea
|
nothing_p works; EndTest's failure case is producing an empty array (successful but empty sequence), success case is *also* producing an empty array
|
2013-12-22 18:09:25 +01:00 |
|