javar/jdk8-analysis/src/launcher/version_comp.c
/*
 *      Return true if this is a valid element (as defined in JSR 56).
 *      An element is the intersection (and) of multiple simple-elements.
 */
Return true if this is a valid element (as defined in JSR 56).
An element is the intersection (and) of multiple simple-elements.
Return true if this is a valid element ( as defined in JSR 56 ) . An element is the intersection ( and ) of multiple simple - elements .
static int
valid_element(char *element)
{
    char        *end;
    if ((element == NULL) || (JLI_StrLen(element) == 0))
        return (0);
    do {
        if ((end = JLI_StrChr(element, '&')) != NULL)
            *end = '\0';
        if (!valid_simple_element(element))
            return (0);
        if (end != NULL)
            element = end + 1;
    } while (end != NULL);
    return (1);
}
static int valid_element ( char * element ) { char * end ; if ( ( element == NULL ) || ( JLI_StrLen ( element ) == 0 ) ) return ( 0 ) ; do { if ( ( end = JLI_StrChr ( element , ' ' ) ) != NULL ) * end = ' \0 ' ; if ( ! valid_simple_element ( element ) ) return ( 0 ) ; if ( end != NULL ) element = end + 1 ; } while ( end != NULL ) ; return ( 1 ) ; }
Return true if this is a valid element (as defined in JSR 56).
Return true if this is a valid element ( as defined in JSR 56 ) .