javar/jdk8-analysis/src/launcher/version_comp.c
/*
 *      Modeled after strcmp(), compare two strings (as in the grammar defined
 *      in Appendix A of JSR 56).  If both strings can be interpreted as
 *      Java ints, do a numeric comparison, else it is strcmp().
 */
Modeled after strcmp(), compare two strings (as in the grammar defined
in Appendix A of JSR 56).  If both strings can be interpreted as
Java ints, do a numeric comparison, else it is strcmp().
Modeled after strcmp () compare two strings ( as in the grammar defined in Appendix A of JSR 56 ) . If both strings can be interpreted as Java ints do a numeric comparison else it is strcmp () .
static int
comp_string(const char *s1, const char *s2)
{
    jint v1, v2;
    if (isjavaint(s1, &v1) && isjavaint(s2, &v2))
        return ((int)(v1 - v2));
    else
        return (JLI_StrCmp(s1, s2));
}
static int comp_string ( const char * s1 , const char * s2 ) { jint v1 , v2 ; if ( isjavaint ( s1 , & v1 ) && isjavaint ( s2 , & v2 ) ) return ( ( int ) ( v1 - v2 ) ) ; else return ( JLI_StrCmp ( s1 , s2 ) ) ; }
Modeled after strcmp(), compare two strings (as in the grammar defined
      in Appendix A of JSR 56).
Modeled after strcmp () compare two strings ( as in the grammar defined in Appendix A of JSR 56 ) .