Konstantin8105 / c4go

Transpiling C code to Go code
MIT License
363 stars 37 forks source link

stdlib.bsearch #152

Closed Konstantin8105 closed 4 years ago

Konstantin8105 commented 5 years ago

Add test and implementation on Go for function stdlib.bsearch Description: https://en.cppreference.com/w/c/algorithm/bsearch File for test code add : c4go/tests/stdlib.c

Konstantin8105 commented 5 years ago

How to run test for that issue:

go test -v -tags=integration -run=TestIntegrationScripts/tests/stdlib.c
go test -v -run=TestCSTD
rjalfa commented 5 years ago

Can you tell what standard you are following exactly? Do you have a list of all the function signatures for the standard library?

Konstantin8105 commented 5 years ago

Dear @rjalfa , In according to https://github.com/Konstantin8105/c4go/blob/44a79fa6145545d7bf9786eb423940aa22eed835/preprocessor/compiler.go#L3 Used some default standart by clang. No, I haven't list of all function signature of CSTD.