Branch: Tag:

2016-12-17

2016-12-17 13:05:44 by Martin Nilsson <nilsson@fastmail.com>

Removed WC_ISSPACE macro indirection.

1922:      #define PUSH_STRING0(X,Y,Z) add_quoted_string( X,Y,0,Z)   #define PUSH_STRING_SHIFT(X,Y,Z,A) add_quoted_string(X,Y,Z,A) - #define WC_ISSPACE wide_isspace +    #define WC_ISIDCHAR wide_isidchar   /*    * Generic macros
2277:    }    /* FALL_THROUGH */    default: -  if (WC_ISSPACE(DATA(pos-1))) { +  if (wide_isspace(DATA(pos-1))) {    SKIPWHITE();    continue;    }
2756:   {    size_t e;    for(e=0; e<l;) { -  if (WC_ISSPACE(INDEX_PCHARP(a, e)) || +  if (wide_isspace(INDEX_PCHARP(a, e)) ||    INDEX_PCHARP(a, e)=='"' || INDEX_PCHARP(a, e)=='\\') {    if (e) {    string_builder_append(s, a, e);
2787:    }    } else {    /* White space. */ -  while ((e < l) && WC_ISSPACE(INDEX_PCHARP(a, e))) { +  while ((e < l) && wide_isspace(INDEX_PCHARP(a, e))) {    e++;    }    if (e != l) {
2866:    string_builder_putchar(&tmp, '"');    }else{    /* Strip leading and trailing white-space. */ -  while(l && WC_ISSPACE(EXTRACT_PCHARP(a))) +  while(l && wide_isspace(EXTRACT_PCHARP(a)))    INC_PCHARP(a,1),l--;    -  while(l && WC_ISSPACE(INDEX_PCHARP(a,l-1))) +  while(l && wide_isspace(INDEX_PCHARP(a,l-1)))    l--;       if(argument & (DEF_ARG_NOPRESPACE | DEF_ARG_NOPOSTSPACE))