nasmlib: introduce string helpers
commitc7e8f1bf6faff60c16dbbc920c3a36c2251ab3ab
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 11 Oct 2009 12:51:31 +0000 (11 16:51 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Tue, 13 Oct 2009 15:42:01 +0000 (13 19:42 +0400)
treee95fa0108bd668aba459e357d903a57ac0fda160
parent9ccabd2922788ee96be1c808050aefaa79c9490f
nasmlib: introduce string helpers

To make code more compact we introduce the
following string helpers:

1) nasm_scip_spaces - skip leading spaces
2) nasm_skip_word - skip leading non-spaces
3) nasm_zap_spaces - zap leading spaces with zero
4) nasm_zap_spaces_rev - zap spaces in reverse order

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
nasmlib.c
nasmlib.h