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

« back to all changes in this revision

Viewing changes to src/skels/free_list.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
 
if (@list_name@_list)
2
 
  {
3
 
    struct @type@_list *tmp;
4
 
    while (@list_name@_list)
5
 
      {
6
 
        tmp = @list_name@_list;
7
 
@IF@ string_list @THEN@
8
 
        free (@list_name@_list->arg);
9
 
@ENDIF@
10
 
        free (@list_name@_list->orig);
11
 
        @list_name@_list = @list_name@_list->next;
12
 
        free (tmp);
13
 
      }
14
 
  }
 
1
free_list (@list_name@_list, @IF@ string_list @THEN@ 1 @ELSE@ 0 @ENDIF@);