src/util/show_help.c
/*
 * We have an open file, and we're pointed at the right topic.  So
 * read in all the lines in the topic and make a list of them.
 */
We have an open file, and we're pointed at the right topic.  So
read in all the lines in the topic and make a list of them.
We have an open file and we ' re pointed at the right topic . So read in all the lines in the topic and make a list of them .
static int read_topic(char ***array)
{
    int token, rc;
    while (1) {
        token = prte_show_help_yylex();
        switch (token) {
        case PRTE_SHOW_HELP_PARSE_MESSAGE:
            rc = prte_argv_append_nosize(array, prte_show_help_yytext);
            if (rc != PRTE_SUCCESS) {
                return rc;
            }
            break;
        default:
            return PRTE_SUCCESS;
        }
    }
}
static int read_topic ( char * * * array ) { int token , rc ; while ( 1 ) { token = prte_show_help_yylex ( ) ; switch ( token ) { case PRTE_SHOW_HELP_PARSE_MESSAGE : rc = prte_argv_append_nosize ( array , prte_show_help_yytext ) ; if ( rc != PRTE_SUCCESS ) { return rc ; } break ; default : return PRTE_SUCCESS ; } } }
We have an open file, and we're pointed at the right topic.
We have an open file and we ' re pointed at the right topic .
/* prte_argv_append_nosize does strdup(prte_show_help_yytext) */ /* Never get here */