int quoted = val[1] == '"' && val[len] == '"';
int quoted = val[1] == '"' && val[len] == '"' && len > 1;
var_defines( char *const* e, int preprocess ){    string buf[1];    string_new( buf );	for( ; *e; e++ )	{	    char *val;# ifdef OS_MAC	    /* On the mac (MPW), the var=val is actually var\0val */	    /* Think different. */		    if( ( val = strchr( *e, '=' ) ) || ( val = *e + strlen( *e ) ) )# else	    if( val = strchr( *e, '=' ) )# endif	    {		LIST *l = L0;		char *pp, *p;# ifdef OPT_NO_EXTERNAL_VARIABLE_SPLIT                char split = '\0';# else# ifdef OS_MAC		char split = ',';# else		char split = ' ';# endif# endif                size_t len = strlen(val + 1);                int quoted = val[1] == '"' && val[len] == '"';                                if ( quoted && preprocess )                {                    string_append_range( buf, val + 2, val + len );                    l = list_new( l, newstr( buf->value ) );                    string_truncate( buf, 0 );                }                else                {                    /* Split *PATH at :'s, not spaces */                    if( val - 4 >= *e )                    {                        if( !strncmp( val - 4, "PATH", 4 ) ||                            !strncmp( val - 4, "Path", 4 ) ||                            !strncmp( val - 4, "path", 4 ) )			    split = SPLITPATH;                    }                    /* Do the split */                    for(                        pp = val + 1;                        preprocess && (p = strchr( pp, split )) != 0;                        pp = p + 1 )                    {                        string_append_range( buf, pp, p );                        l = list_new( l, newstr( buf->value ) );                        string_truncate( buf, 0 );                    }                    l = list_new( l, newstr( pp ) );                }		/* Get name */                string_append_range( buf, *e, val );		var_set( buf->value, l, VAR_SET );                string_truncate( buf, 0 );	    }	}        string_free( buf );}