Lines Matching defs:toks
123 char **toks;
128 if ( next_line_tokens( &buf, &buflen, &toks ) != 2 ||
129 strcasecmp( toks[ 0 ], "version" ) != 0 ) {
130 free_strarray( toks );
133 version = atoi( toks[ 1 ] );
134 free_strarray( toks );
254 char **toks;
264 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
265 free_strarray( toks );
271 free_strarray( toks );
274 so->so_objtypeprompt = toks[ 0 ];
275 free( (char *)toks );
281 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) < 1 ) {
282 free_strarray( toks );
286 for ( i = 0; toks[ i ] != NULL; ++i ) {
288 if ( strcasecmp( toks[ i ], sobjoptions[ j ] ) == 0 ) {
293 free_strarray( toks );
299 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
300 free_strarray( toks );
304 so->so_prompt = toks[ 0 ];
305 free( (char *)toks );
310 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
311 free_strarray( toks );
315 so->so_filterprefix = toks[ 0 ];
316 free( (char *)toks );
321 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
322 free_strarray( toks );
326 so->so_filtertag = toks[ 0 ];
327 free( (char *)toks );
332 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
333 free_strarray( toks );
337 so->so_defaultselectattr = toks[ 0 ];
338 free( (char *)toks );
343 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
344 free_strarray( toks );
348 so->so_defaultselecttext = toks[ 0 ];
349 free( (char *)toks );
354 if (( tokcnt = next_line_tokens( bufp, blenp, &toks )) != 1 ) {
355 free_strarray( toks );
359 if ( !strcasecmp(toks[ 0 ], "subtree" )) {
361 } else if ( !strcasecmp(toks[ 0 ], "onelevel" )) {
363 } else if ( !strcasecmp(toks[ 0 ], "base" )) {
369 free_strarray( toks );
376 while (( tokcnt = next_line_tokens( bufp, blenp, &toks )) > 0 ) {
378 free_strarray( toks );
384 free_strarray( toks );
388 ( *sa )->sa_attrlabel = toks[ 0 ];
389 ( *sa )->sa_attr = toks[ 1 ];
390 ( *sa )->sa_selectattr = toks[ 3 ];
391 ( *sa )->sa_selecttext = toks[ 4 ];
394 for ( i = (int) strlen( toks[ 2 ] ) - 1, j = 0; i >= 0; i--, j++ ) {
395 if ( toks[ 2 ][ i ] == '1' ) {
399 free( toks[ 2 ] );
400 free( ( char * ) toks );
409 while (( tokcnt = next_line_tokens( bufp, blenp, &toks )) > 0 ) {
411 free_strarray( toks );
417 free_strarray( toks );
421 ( *sm )->sm_matchprompt = toks[ 0 ];
422 ( *sm )->sm_filter = toks[ 1 ];
423 free( ( char * ) toks );