diff options
author | Justus Winter <[email protected]> | 2016-06-21 10:12:56 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-21 14:18:32 +0000 |
commit | 5fbbc4b334a73150e709a4802cac99abd8ada61d (patch) | |
tree | 9dd52ac294387f5a182669a491954c6e1c58aa3a /common/t-name-value.c | |
parent | gpgscm: Improve error reporting. (diff) | |
download | gnupg-5fbbc4b334a73150e709a4802cac99abd8ada61d.tar.gz gnupg-5fbbc4b334a73150e709a4802cac99abd8ada61d.zip |
gpgscm: Use native string searching functions.
* tests/gpgscm/ffi-private.h: Handle character arguments.
* tests/gpgscm/ffi.c (do_string_index): New function.
(do_string_rindex): Likewise.
(do_string_contains): Likewise.
(ffi_init): Define new functions.
* tests/gpgscm/ffi.scm (ffi-define): New macro.
* tests/gpgscm/lib.scm (string-index): Use native function,
demonstrate behavior.
(string-rindex): Likewise.
(string-contains?): Likewise.
Demonstrate behavior of various other functions.
(read-all): Rework so that it can handle large files.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/t-name-value.c')
0 files changed, 0 insertions, 0 deletions