~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to demos/vinstall.c

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <cdk.h>
 
1
/* $Id: vinstall.c,v 1.13 2005/12/27 12:36:06 tom Exp $ */
 
2
 
 
3
#include <cdk_test.h>
2
4
 
3
5
#ifdef HAVE_XCURSES
4
6
char *XCursesProgramName="vinstall";
86
88
   if (filename == 0)
87
89
   {
88
90
      fprintf (stderr, "Usage: %s %s\n", argv[0], FPUsage);
89
 
      exit (EXIT_FAILURE);
 
91
      ExitProgram (EXIT_FAILURE);
90
92
   }
91
93
 
92
94
   /* Open the file list file and read it in. */
94
96
   if (count == 0)
95
97
   {
96
98
      fprintf (stderr, "%s: Input filename <%s> is empty.\n", argv[0], filename);
97
 
      exit (EXIT_FAILURE);
 
99
      ExitProgram (EXIT_FAILURE);
98
100
   }
99
101
 
100
102
  /*
187
189
      destroyCDKLabel (titleWin);
188
190
      destroyCDKScreen (cdkScreen);
189
191
      endCDK();
190
 
      exit (EXIT_FAILURE);
 
192
      ExitProgram (EXIT_FAILURE);
191
193
   }
192
194
 
193
195
  /*
201
203
      destroyCDKLabel (titleWin);
202
204
      destroyCDKScreen (cdkScreen);
203
205
      endCDK();
204
 
      exit (EXIT_FAILURE);
 
206
      ExitProgram (EXIT_FAILURE);
205
207
   }
206
208
 
207
209
   /* Create the histogram. */
359
361
   destroyCDKSwindow (installOutput);
360
362
   destroyCDKScreen (cdkScreen);
361
363
   endCDK();
362
 
   exit (EXIT_SUCCESS);
 
364
   ExitProgram (EXIT_SUCCESS);
363
365
}
364
366
 
365
367
/*