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

« back to all changes in this revision

Viewing changes to src/skels/multiple_fill_array_default.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
 
else /* set the default value */
2
 
  {
3
 
    if (! args_info->@option_var_name@_arg && ! args_info->@option_var_name@_given)
4
 
      {
5
 
        args_info->@option_var_name@_arg = (@type@ *) malloc (sizeof (@type@));
6
 
        args_info->@option_var_name@_arg [0] = @default_value@;
7
 
        args_info->@option_var_name@_orig = (char **) malloc (sizeof (char *));
8
 
        args_info->@option_var_name@_orig [0] = NULL;
9
 
      }
10
 
  }