trimmed whitespace in m4 files

This commit is contained in:
hyung-hwan 2023-01-15 02:25:09 +09:00
parent 08b37897a9
commit 15eaabcc5e
2 changed files with 208 additions and 208 deletions

View File

@ -22,11 +22,11 @@
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
/* /*
* Do NOT edit utl-str.c. Edit utl-str.c.m4 instead. * Do NOT edit utl-str.c. Edit utl-str.c.m4 instead.
* *
* Generate utl-str.c with m4 * Generate utl-str.c with m4
* $ m4 utl-str.c.m4 > utl-str.c * $ m4 utl-str.c.m4 > utl-str.c
*/ */
#include "hio-prv.h" #include "hio-prv.h"
@ -34,57 +34,57 @@
static int match_uch_class (const hio_uch_t* pp, hio_uch_t sc, int* matched) static int match_uch_class (const hio_uch_t* pp, hio_uch_t sc, int* matched)
{ {
if (hio_comp_ucstr_bcstr_limited(pp, "[:upper:]", 9, 0) == 0) if (hio_comp_ucstr_bcstr_limited(pp, "[:upper:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_upper(sc); *matched = hio_is_uch_upper(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:lower:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:lower:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_lower(sc); *matched = hio_is_uch_lower(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:alpha:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:alpha:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_alpha(sc); *matched = hio_is_uch_alpha(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:digit:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:digit:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_digit(sc); *matched = hio_is_uch_digit(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:xdigit:]", 10, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:xdigit:]", 10, 0) == 0)
{ {
*matched = hio_is_uch_xdigit(sc); *matched = hio_is_uch_xdigit(sc);
return 10; return 10;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:alnum:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:alnum:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_alnum(sc); *matched = hio_is_uch_alnum(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:space:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:space:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_space(sc); *matched = hio_is_uch_space(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:print:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:print:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_print(sc); *matched = hio_is_uch_print(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:graph:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:graph:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_graph(sc); *matched = hio_is_uch_graph(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:cntrl:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:cntrl:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_cntrl(sc); *matched = hio_is_uch_cntrl(sc);
return 9; return 9;
} }
else if (hio_comp_ucstr_bcstr_limited(pp, "[:punct:]", 9, 0) == 0) else if (hio_comp_ucstr_bcstr_limited(pp, "[:punct:]", 9, 0) == 0)
{ {
*matched = hio_is_uch_punct(sc); *matched = hio_is_uch_punct(sc);
return 9; return 9;
@ -95,57 +95,57 @@ static int match_uch_class (const hio_uch_t* pp, hio_uch_t sc, int* matched)
static int match_bch_class (const hio_bch_t* pp, hio_bch_t sc, int* matched) static int match_bch_class (const hio_bch_t* pp, hio_bch_t sc, int* matched)
{ {
if (hio_comp_bcstr_limited(pp, "[:upper:]", 9, 0) == 0) if (hio_comp_bcstr_limited(pp, "[:upper:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_upper(sc); *matched = hio_is_bch_upper(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:lower:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:lower:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_lower(sc); *matched = hio_is_bch_lower(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:alpha:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:alpha:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_alpha(sc); *matched = hio_is_bch_alpha(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:digit:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:digit:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_digit(sc); *matched = hio_is_bch_digit(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:xdigit:]", 10, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:xdigit:]", 10, 0) == 0)
{ {
*matched = hio_is_bch_xdigit(sc); *matched = hio_is_bch_xdigit(sc);
return 10; return 10;
} }
else if (hio_comp_bcstr_limited(pp, "[:alnum:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:alnum:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_alnum(sc); *matched = hio_is_bch_alnum(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:space:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:space:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_space(sc); *matched = hio_is_bch_space(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:print:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:print:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_print(sc); *matched = hio_is_bch_print(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:graph:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:graph:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_graph(sc); *matched = hio_is_bch_graph(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:cntrl:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:cntrl:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_cntrl(sc); *matched = hio_is_bch_cntrl(sc);
return 9; return 9;
} }
else if (hio_comp_bcstr_limited(pp, "[:punct:]", 9, 0) == 0) else if (hio_comp_bcstr_limited(pp, "[:punct:]", 9, 0) == 0)
{ {
*matched = hio_is_bch_punct(sc); *matched = hio_is_bch_punct(sc);
return 9; return 9;

File diff suppressed because it is too large Load Diff