~ubuntu-branches/ubuntu/hardy/gengetopt/hardy

« back to all changes in this revision

Viewing changes to src/skels/required_option.h_skel

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-01-29 14:55:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080129145540-bkah1bl330gpelmh
Tags: 2.22-1ubuntu1
* Merge with Debian; remaining changes:
  - Fix build failures with g++-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
@IF@ checkrange @THEN@
2
 
if (check_multiple_option_occurrences(@package_var_name@, args_info->@option_var_name@_given, args_info->@option_var_name@_min, args_info->@option_var_name@_max, "@option_descr@"))
 
2
if (@mode_condition@check_multiple_option_occurrences(@package_var_name@, args_info->@option_var_name@_given, args_info->@option_var_name@_min, args_info->@option_var_name@_max, "@option_descr@"))
3
3
   error = 1;
4
4
 
5
5
@ELSE@
6
 
if (! args_info->@option_var_name@_given)
 
6
if (@mode_condition@! args_info->@option_var_name@_given)
7
7
  {
8
8
    fprintf (stderr, "%s: @option_descr@ option required%s\n", @package_var_name@, (additional_error ? additional_error : ""));
9
9
    error = 1;