javar/jdk8-analysis/src/launcher/version_comp.c
/*
 *      Checks if release is acceptable by the specification version-string.
 *      Return true if this version-string (as defined in JSR 56) forms
 *      an acceptable match. A version-string is the union (or) of multiple
 *      elements.
 */
Checks if release is acceptable by the specification version-string.
Return true if this version-string (as defined in JSR 56) forms
an acceptable match. A version-string is the union (or) of multiple
elements.
Checks if release is acceptable by the specification version - string . Return true if this version - string ( as defined in JSR 56 ) forms an acceptable match . A version - string is the union ( or ) of multiple elements .
int
JLI_AcceptableRelease(const char *release, char *version_string)
{
    char        *vs;
    char        *m1;
    char        *end;
    m1 = vs = JLI_StringDup(version_string);
    do {
        if ((end = JLI_StrChr(vs, ' ')) != NULL)
            *end = '\0';
        if (acceptable_element(release, vs)) {
            JLI_MemFree(m1);
            return (1);
        }
        if (end != NULL)
            vs = end + 1;
    } while (end != NULL);
    JLI_MemFree(m1);
    return (0);
}
int JLI_AcceptableRelease ( const char * release , char * version_string ) { char * vs ; char * m1 ; char * end ; m1 = vs = JLI_StringDup ( version_string ) ; do { if ( ( end = JLI_StrChr ( vs , ' ' ) ) != NULL ) * end = ' \0 ' ; if ( acceptable_element ( release , vs ) ) { JLI_MemFree ( m1 ) ; return ( 1 ) ; } if ( end != NULL ) vs = end + 1 ; } while ( end != NULL ) ; JLI_MemFree ( m1 ) ; return ( 0 ) ; }
Checks if release is acceptable by the specification version-string.
Checks if release is acceptable by the specification version - string .