~ubuntu-branches/ubuntu/vivid/tin/vivid

« back to all changes in this revision

Viewing changes to src/prompt.c

  • Committer: Package Import Robot
  • Author(s): Marco d'Itri
  • Date: 2012-01-06 15:04:11 UTC
  • mfrom: (1.2.17)
  • Revision ID: package-import@ubuntu.com-20120106150411-vftxaked1sscxt1t
Tags: 1:2.1.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *  Updated   : 2011-03-25
7
7
 *  Notes     :
8
8
 *
9
 
 * Copyright (c) 1991-2011 Iain Lea <iain@bricbrac.de>
 
9
 * Copyright (c) 1991-2012 Iain Lea <iain@bricbrac.de>
10
10
 * All rights reserved.
11
11
 *
12
12
 * Redistribution and use in source and binary forms, with or without
310
310
#endif /* MULTIBYTE_ABLE && !NO_LOCALE */
311
311
 
312
312
        var += adjust;
313
 
        size += adjust;
314
313
        var_orig = var;
315
314
 
316
315
        /*
440
439
        char prompt[LEN];
441
440
        int *variable = option_table[option].variable;
442
441
        int old_value = *variable;
 
442
        int opt_count = 0;
443
443
 
 
444
        while (option_table[option].opt_list[opt_count] != NULL)
 
445
                ++opt_count;
444
446
        fmt_option_prompt(prompt, sizeof(prompt), TRUE, option);
445
 
        *variable = prompt_list(option_row(option), 0, *variable, option_table[option].txt->help, prompt, option_table[option].opt_list, option_table[option].opt_count);
 
447
        *variable = prompt_list(option_row(option), 0, *variable, option_table[option].txt->help, prompt, option_table[option].opt_list, opt_count);
446
448
        return *variable != old_value;
447
449
}
448
450