2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 //%% (c) Copyright 1993, 1994 Hewlett-Packard Company
24 //%% (c) Copyright 1993, 1994 International Business Machines Corp.
25 //%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
26 //%% (c) Copyright 1993, 1994 Novell, Inc.
27 //%% $XConsortium: eclipse.C /main/3 1995/10/23 10:31:20 rswiston $
29 * @(#)eclipse.C 1.3 93/09/07
30 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
33 #include "ttdtprocid.h"
34 #include "ttdtutils.h"
36 TtDtProcIDEclipse::TtDtProcIDEclipse(
37 const char *procID2Install,
41 static const char *here = "TtDtProcIDEclipse::TtDtProcIDEclipse()";
43 _occultedProcID = tt_default_procid();
44 *status = tt_ptr_error( _occultedProcID );
45 if (*status != TT_OK) {
47 if ((procID2Install == 0) && (*status == TT_ERR_NOMP)) {
49 // There is no default procid to eclipse. OK.
53 ttDtPrintStatus( here, "tt_default_procid()", *status);
57 if (procID2Install != 0) {
58 *status = tt_default_procid_set( procID2Install );
59 if (*status != TT_OK) {
60 ttDtPrintStatus( here, "tt_default_procid_set()",
62 tt_free( (caddr_t)_occultedProcID );
68 TtDtProcIDEclipse::~TtDtProcIDEclipse()
70 static const char *here = "TtDtProcIDEclipse::~TtDtProcIDEclipse()";
72 if (_occultedProcID != 0) {
73 Tt_status status = tt_default_procid_set( _occultedProcID );
74 if (status != TT_OK) {
75 ttDtPrintStatus( here, "tt_default_procid_set()",
78 tt_free( (caddr_t)_occultedProcID );