~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/ExitCB.C

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: ExitCB.C,v 1.19 2000/12/11 12:21:47 zeller Exp $
 
1
// $Id$
2
2
// Exit Callbacks
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
27
27
// or send a mail to the DDD developers <ddd@gnu.org>.
28
28
 
29
29
char ExitCB_rcsid[] = 
30
 
    "$Id: ExitCB.C,v 1.19 2000/12/11 12:21:47 zeller Exp $";
 
30
    "$Id$";
31
31
 
32
32
#include <stdlib.h>
33
 
#include <unistd.h>
 
33
#include <unistd.h>             // environ, execvp()
34
34
#include <stdio.h>              // perror()
35
35
#include <Xm/Xm.h>
36
36
#include <Xm/MessageB.h>
39
39
#include "ExitCB.h"
40
40
#include "verify.h"
41
41
 
42
 
extern char **environ;
 
42
extern "C" char **environ;
43
43
 
44
44
// Callbacks
45
45
 
68
68
}
69
69
 
70
70
// Save argv
71
 
void register_argv(const char *argv[])
 
71
void register_argv(const char * const argv[])
72
72
{
73
73
    int argc = 0;
74
74
    while (argv[argc] != 0)