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

« back to all changes in this revision

Viewing changes to demos/command.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: command.c,v 1.16 2005/12/27 18:11:54 tom Exp $ */
 
2
 
 
3
#include <cdk_test.h>
2
4
 
3
5
#ifdef HAVE_XCURSES
4
6
char *XCursesProgramName="command";
128
130
                commandEntry->exitType == vESCAPE_HIT)
129
131
      {
130
132
         /* All done. */
 
133
         freeChar (upper);
 
134
 
 
135
         while (history.count-- > 0)
 
136
            free (history.command[history.count]);
 
137
 
131
138
         destroyCDKEntry (commandEntry);
132
139
         destroyCDKSwindow (commandOutput);
133
 
         freeChar (upper);
 
140
         destroyCDKScreen (cdkscreen);
 
141
 
134
142
         endCDK();
135
 
         exit (EXIT_SUCCESS);
 
143
 
 
144
         ExitProgram (EXIT_SUCCESS);
136
145
      }
137
146
      else if (strcmp (command, "clear") == 0)
138
147
      {