diff options
| author | cremno <[email protected]> | 2014-03-12 17:35:06 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-03-12 17:56:08 +0100 |
| commit | e4afd5374fb07c7afb967ee51ff8317b831fcd55 (patch) | |
| tree | a8c35b4f088cdc07425076d32f5d602bba2bea54 /src/array.c | |
| parent | f85e5a80dc9e1e8128332e55e83f431b3c0fbe55 (diff) | |
| download | mruby-e4afd5374fb07c7afb967ee51ff8317b831fcd55.tar.gz mruby-e4afd5374fb07c7afb967ee51ff8317b831fcd55.zip | |
add mrb_strlen_lit which makes _lit macros safer
strlen(3) + string literal is usually optimized but strlen(3) doesn't
check if its argument is really a string literal. This is important for
mruby's _static functions to which some _lit macros are expanded (string
literals have static storage). See comment for some additional info.
remove unnecessary parentheses
Diffstat (limited to 'src/array.c')
0 files changed, 0 insertions, 0 deletions
