diff options
| author | Prashanth Mundkur | 2018-08-30 14:05:54 -0700 |
|---|---|---|
| committer | Prashanth Mundkur | 2018-08-30 14:19:34 -0700 |
| commit | 2dd89e3b26cbf4c31d47aa4a978ade28914acb24 (patch) | |
| tree | 9ef8737844bbfe8333328e3f3b50a27863e67292 /lib/sail.h | |
| parent | dee068786b2ef0b0d57fc02ca042e176c74db9b0 (diff) | |
Annotate the RISC-V prelude for C builtins.
Add some builtins to the C sail lib.
Enable some gcc warnings.
Diffstat (limited to 'lib/sail.h')
| -rw-r--r-- | lib/sail.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -77,6 +77,7 @@ bool eq_string(const sail_string, const sail_string); bool EQUAL(sail_string)(const sail_string, const sail_string); void concat_str(sail_string *stro, const sail_string str1, const sail_string str2); +bool string_startswith(sail_string s, sail_string prefix); /* ***** Sail integers ***** */ @@ -319,6 +320,11 @@ unit prerr_real(const sail_string, const real); void random_real(real *rop, unit); +/* ***** String utilities ***** */ + +void string_length(sail_int *len, sail_string s); +void string_drop(sail_string *dst, sail_string s, sail_int len); + /* ***** Printing ***** */ void string_of_int(sail_string *str, const sail_int i); |
