mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Merge branch 'master' into autotools-conversion
This commit is contained in:
commit
90e61dda5f
56 changed files with 307 additions and 186 deletions
|
@ -1,5 +1,5 @@
|
||||||
# $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
|
# $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
|
||||||
RELEASE = Release 2.3.1a
|
RELEASE = Release 2.3.2a
|
||||||
PRODUCT = CDE
|
PRODUCT = CDE
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|
|
@ -242,19 +242,6 @@ extern int errno;
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "imakemdep.h"
|
#include "imakemdep.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* This define of strerror is copied from (and should be identical to)
|
|
||||||
* Xos.h, which we don't want to include here for bootstrapping reasons.
|
|
||||||
*/
|
|
||||||
#if defined(X_NOT_STDC_ENV) || (defined(sun) && !defined(SVR4))
|
|
||||||
# ifndef strerror
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
extern int sys_nerr;
|
|
||||||
# define strerror(n) \
|
|
||||||
(((n) >= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error")
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Common Desktop Environment Version 2.3.1a (devel)
|
Common Desktop Environment Version 2.3.2a (devel)
|
||||||
|
|
||||||
(c) Copyright 1993-2012 The Open Group
|
(c) Copyright 1993-2012 The Open Group
|
||||||
(c) Copyright 2012-2020 CDE Project contributors, see CONTRIBUTORS for details
|
(c) Copyright 2012-2021 CDE Project contributors, see CONTRIBUTORS for details
|
||||||
|
|
||||||
Project Website: http://cdesktopenv.sourceforge.net/
|
Project Website: http://cdesktopenv.sourceforge.net/
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!-- $TOG: HELPEnt.sgm /main/12 1999/10/12 09:35:15 mgreess $ -->
|
<!-- $TOG: HELPEnt.sgm /main/12 1999/10/12 09:35:15 mgreess $ -->
|
||||||
<!ENTITY CDEcopyright "<GlossTerm Role=nogloss>Common Desktop Environment 2.3.1a</GlossTerm>,
|
<!ENTITY CDEcopyright "<GlossTerm Role=nogloss>Common Desktop Environment 2.3.2a</GlossTerm>,
|
||||||
|
|
||||||
© Copyright 1993-2012 The Open Group
|
© Copyright 1993-2012 The Open Group
|
||||||
© Copyright 2012-2020 CDE Project contributors, see CONTRIBUTORS for details
|
© Copyright 2012-2020 CDE Project contributors, see CONTRIBUTORS for details
|
||||||
|
|
|
@ -52,13 +52,13 @@ extern "C" {
|
||||||
|
|
||||||
#define DtVERSION 2
|
#define DtVERSION 2
|
||||||
#define DtREVISION 3
|
#define DtREVISION 3
|
||||||
#define DtUPDATE_LEVEL 1
|
#define DtUPDATE_LEVEL 2
|
||||||
|
|
||||||
#define DtVERSION_NUMBER (DtVERSION * 10000 + \
|
#define DtVERSION_NUMBER (DtVERSION * 10000 + \
|
||||||
DtREVISION * 100 + \
|
DtREVISION * 100 + \
|
||||||
DtUPDATE_LEVEL)
|
DtUPDATE_LEVEL)
|
||||||
|
|
||||||
#define DtVERSION_STRING "CDE Version 2.3.1a"
|
#define DtVERSION_STRING "CDE Version 2.3.2a"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -405,7 +405,11 @@ typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P;
|
||||||
struct sk {
|
struct sk {
|
||||||
INT sk_fld;
|
INT sk_fld;
|
||||||
CHAR_P sk_val;
|
CHAR_P sk_val;
|
||||||
} __SK__;
|
};
|
||||||
|
|
||||||
|
/* PJH 20201124 unused struct variable declaration in header causing issues
|
||||||
|
struct sk __SK__;
|
||||||
|
*/
|
||||||
typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
|
typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
|
||||||
|
|
||||||
/* node key search path stack entry: one per level per key field */
|
/* node key search path stack entry: one per level per key field */
|
||||||
|
|
|
@ -44,14 +44,6 @@
|
||||||
#include "ttdbck.h"
|
#include "ttdbck.h"
|
||||||
#include "tt_db_server_consts.h"
|
#include "tt_db_server_consts.h"
|
||||||
|
|
||||||
#if !defined(OPT_STRERROR)
|
|
||||||
// No strerror(), fake it
|
|
||||||
char *
|
|
||||||
strerror(int e)
|
|
||||||
{
|
|
||||||
return ((e<sys_nerr) ? sys_errlist[e] : "unknown");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Spec::
|
Spec::
|
||||||
Spec()
|
Spec()
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
.\" not be used in advertising or otherwise to promote the sale, use or
|
.\" not be used in advertising or otherwise to promote the sale, use or
|
||||||
.\" other dealings in this Software without prior written authorization
|
.\" other dealings in this Software without prior written authorization
|
||||||
.\" from The Open Group.
|
.\" from The Open Group.
|
||||||
.TH TTAUTH 1 "Release 2.3.1a" "CDE"
|
.TH TTAUTH 1 "Release 2.3.2a" "CDE"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ttauth \- ToolTalk authority file utility
|
ttauth \- ToolTalk authority file utility
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
|
@ -107,10 +107,6 @@
|
||||||
* OPT_CPP_OPTIONS - string, options to pass to cpp. For example, on
|
* OPT_CPP_OPTIONS - string, options to pass to cpp. For example, on
|
||||||
* some platforms -B is used so C++ comments are processed by cpp.
|
* some platforms -B is used so C++ comments are processed by cpp.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* OPT_STRERROR - set if strerror() is available, otherwise we assume
|
|
||||||
* global symbol sys_errlist is defined in errno.h.
|
|
||||||
*
|
|
||||||
* OPT_SVR4_GETMNTENT - set to use new SVR4 flavor of getmntent.
|
* OPT_SVR4_GETMNTENT - set to use new SVR4 flavor of getmntent.
|
||||||
*
|
*
|
||||||
* OPT_LOCKF_MNTTAB - set to hold a lockf lock on MNTTAB while doing
|
* OPT_LOCKF_MNTTAB - set to hold a lockf lock on MNTTAB while doing
|
||||||
|
@ -242,7 +238,6 @@
|
||||||
# undef OPT_SYSINFO
|
# undef OPT_SYSINFO
|
||||||
# define OPT_CPP_PATH "/usr/ccs/lib/cpp"
|
# define OPT_CPP_PATH "/usr/ccs/lib/cpp"
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_DEFINE_SIG_PF
|
# define OPT_DEFINE_SIG_PF
|
||||||
|
@ -273,7 +268,6 @@
|
||||||
# undef OPT_SYSINFO
|
# undef OPT_SYSINFO
|
||||||
# define OPT_CPP_PATH "/usr/lib/cpp"
|
# define OPT_CPP_PATH "/usr/lib/cpp"
|
||||||
# define OPT_CPP_OPTIONS "-B"
|
# define OPT_CPP_OPTIONS "-B"
|
||||||
# undef OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_42
|
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_42
|
||||||
|
@ -302,7 +296,6 @@
|
||||||
# define OPT_CATGETS
|
# define OPT_CATGETS
|
||||||
# undef OPT_GETDTABLESIZE
|
# undef OPT_GETDTABLESIZE
|
||||||
# define OPT_SYSINFO
|
# define OPT_SYSINFO
|
||||||
# define OPT_STRERROR
|
|
||||||
# define OPT_CPP_PATH "/usr/ccs/lib/cpp"
|
# define OPT_CPP_PATH "/usr/ccs/lib/cpp"
|
||||||
# define OPT_CPP_OPTIONS "-B"
|
# define OPT_CPP_OPTIONS "-B"
|
||||||
# define OPT_SVR4_GETMNTENT
|
# define OPT_SVR4_GETMNTENT
|
||||||
|
@ -389,7 +382,6 @@
|
||||||
# define OPT_CPP_PATH "/opt/langtools/lbin/cpp"
|
# define OPT_CPP_PATH "/opt/langtools/lbin/cpp"
|
||||||
# endif
|
# endif
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_HFS
|
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_HFS
|
||||||
|
@ -415,7 +407,6 @@
|
||||||
# undef OPT_SYSINFO
|
# undef OPT_SYSINFO
|
||||||
# define OPT_CPP_PATH "/usr/bin/cpp"
|
# define OPT_CPP_PATH "/usr/bin/cpp"
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE "ext2fs"
|
# define OPT_LOCAL_MOUNT_TYPE "ext2fs"
|
||||||
|
@ -446,7 +437,6 @@
|
||||||
# undef OPT_SYSINFO
|
# undef OPT_SYSINFO
|
||||||
# define OPT_CPP_PATH "/usr/libexec/cpp"
|
# define OPT_CPP_PATH "/usr/libexec/cpp"
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
||||||
|
@ -479,7 +469,6 @@
|
||||||
# define OPT_CPP_PATH "/usr/libexec/cpp"
|
# define OPT_CPP_PATH "/usr/libexec/cpp"
|
||||||
# endif
|
# endif
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
||||||
|
@ -509,7 +498,6 @@
|
||||||
# undef OPT_SYSINFO
|
# undef OPT_SYSINFO
|
||||||
# define OPT_CPP_PATH "/usr/bin/cpp"
|
# define OPT_CPP_PATH "/usr/bin/cpp"
|
||||||
# define OPT_CPP_OPTIONS ""
|
# define OPT_CPP_OPTIONS ""
|
||||||
# define OPT_STRERROR
|
|
||||||
# undef OPT_SVR4_GETMNTENT
|
# undef OPT_SVR4_GETMNTENT
|
||||||
# undef OPT_LOCKF_MNTENT
|
# undef OPT_LOCKF_MNTENT
|
||||||
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
# define OPT_LOCAL_MOUNT_TYPE MNTTYPE_UFS
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* TT_VERSION defines the version string which is imbedded in all the */
|
/* TT_VERSION defines the version string which is imbedded in all the */
|
||||||
/* binaries and shipped libraries. */
|
/* binaries and shipped libraries. */
|
||||||
|
|
||||||
TT_VERSION = "CDE Version 2.3.1a"
|
TT_VERSION = "CDE Version 2.3.2a"
|
||||||
TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
|
TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ static int print_load_stats(
|
||||||
ABProfiledInterval configTime
|
ABProfiledInterval configTime
|
||||||
);
|
);
|
||||||
|
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
extern char Buf[MAXPATHLEN]; /* Work buffer */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Loads in a new project, replacing the current project.
|
* Loads in a new project, replacing the current project.
|
||||||
|
|
|
@ -109,7 +109,7 @@ typedef enum
|
||||||
} CG_STATUS;
|
} CG_STATUS;
|
||||||
|
|
||||||
|
|
||||||
CGenOptions CodeGenOptions;
|
extern CGenOptions CodeGenOptions;
|
||||||
StringList user_env_vars = NULL;
|
StringList user_env_vars = NULL;
|
||||||
StringList module_list = NULL;
|
StringList module_list = NULL;
|
||||||
static CG_GOAL user_goal = CG_GOAL_UNDEF;
|
static CG_GOAL user_goal = CG_GOAL_UNDEF;
|
||||||
|
|
|
@ -229,7 +229,7 @@ static XtTranslations proj_transtbl = NULL;
|
||||||
static XRectangle *rband_rect = NULL;
|
static XRectangle *rband_rect = NULL;
|
||||||
static Boolean mselect_adjust = False;
|
static Boolean mselect_adjust = False;
|
||||||
|
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
extern char Buf[MAXPATHLEN]; /* Work buffer */
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
**
|
**
|
||||||
|
|
|
@ -94,7 +94,7 @@ static void mult_module_selected(
|
||||||
** **
|
** **
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
extern char Buf[MAXPATHLEN]; /* Work buffer */
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
** **
|
** **
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
const char mod_path[] = "*proj_mod_path";
|
const char mod_path[] = "*proj_mod_path";
|
||||||
const char proj_path[] = "*proj_proj_path";
|
const char proj_path[] = "*proj_proj_path";
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
extern char Buf[MAXPATHLEN]; /* Work buffer */
|
||||||
|
|
||||||
/* Whether we are to export a module as BIL (default) or UIL */
|
/* Whether we are to export a module as BIL (default) or UIL */
|
||||||
static BOOL ExportAsUIL = FALSE;
|
static BOOL ExportAsUIL = FALSE;
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#include "bilP.h"
|
#include "bilP.h"
|
||||||
|
|
||||||
BIL_LOAD_INFO bilP_load;
|
BIL_LOAD_INFO bilP_load;
|
||||||
char Buf[MAXPATHLEN];
|
static char Buf[MAXPATHLEN];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read a BIL file into memory. Returns a project node.
|
* Read a BIL file into memory. Returns a project node.
|
||||||
|
|
|
@ -552,7 +552,9 @@ struct calcVars { /* Calctool variables and options. */
|
||||||
#ifdef hpux
|
#ifdef hpux
|
||||||
int keybdID;
|
int keybdID;
|
||||||
#endif
|
#endif
|
||||||
} CalcVars ;
|
};
|
||||||
|
|
||||||
|
extern struct calcVars CalcVars;
|
||||||
|
|
||||||
typedef struct calcVars *Vars ;
|
typedef struct calcVars *Vars ;
|
||||||
|
|
||||||
|
@ -568,7 +570,7 @@ typedef struct
|
||||||
char *session;
|
char *session;
|
||||||
} ApplicationArgs, *ApplicationArgsPtr;
|
} ApplicationArgs, *ApplicationArgsPtr;
|
||||||
|
|
||||||
ApplicationArgs application_args;
|
extern ApplicationArgs application_args;
|
||||||
|
|
||||||
/* MP definitions. */
|
/* MP definitions. */
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,9 @@ extern XmWidgetExtData _XmGetWidgetExtData(
|
||||||
#include "ds_popup.h"
|
#include "ds_popup.h"
|
||||||
#include "ds_xlib.h"
|
#include "ds_xlib.h"
|
||||||
|
|
||||||
|
|
||||||
|
ApplicationArgs application_args;
|
||||||
|
XVars X;
|
||||||
Boolean colorSrv;
|
Boolean colorSrv;
|
||||||
|
|
||||||
static XtResource resources[] =
|
static XtResource resources[] =
|
||||||
|
|
|
@ -87,7 +87,7 @@ typedef struct Xobject { /* Motif/Xlib graphics object. */
|
||||||
|
|
||||||
typedef struct Xobject *XVars ;
|
typedef struct Xobject *XVars ;
|
||||||
|
|
||||||
XVars X ;
|
extern XVars X ;
|
||||||
|
|
||||||
#ifndef CDE_INSTALLATION_TOP
|
#ifndef CDE_INSTALLATION_TOP
|
||||||
#define CDE_INSTALLATION_TOP "/usr/dt"
|
#define CDE_INSTALLATION_TOP "/usr/dt"
|
||||||
|
|
|
@ -72,10 +72,6 @@
|
||||||
|
|
||||||
static Bool lookForButton(Display *, XEvent *, XPointer);
|
static Bool lookForButton(Display *, XEvent *, XPointer);
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int drag_load_proc(char*, Calendar *);
|
extern int drag_load_proc(char*, Calendar *);
|
||||||
static char dnd_filename[20];
|
static char dnd_filename[20];
|
||||||
|
|
||||||
|
|
|
@ -306,10 +306,7 @@ syserr(char *msg, int a1, int a2, int a3)
|
||||||
#if 0
|
#if 0
|
||||||
/* print the error, if any */
|
/* print the error, if any */
|
||||||
if (saveerr != 0) {
|
if (saveerr != 0) {
|
||||||
if (saveerr < 0 || saveerr > sys_nerr)
|
(void) fprintf(stderr, ":%s", strerror(saveerr));
|
||||||
(void) fprintf(stderr, ":Unknown error %d", saveerr);
|
|
||||||
else
|
|
||||||
(void) fprintf(stderr, ":%s", sys_errlist[saveerr]);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ Widget Licon2;
|
||||||
extern int do_which;
|
extern int do_which;
|
||||||
enum icon_size_range filetype_icon_size = None_Selected;
|
enum icon_size_range filetype_icon_size = None_Selected;
|
||||||
*/
|
*/
|
||||||
enum icon_size_range filetype_icon_size;
|
enum icon_size_range filetype_icon_size = None_Selected;
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
|
@ -287,7 +287,7 @@ STORAGECLASS Widget FC_EndByteTextField;
|
||||||
*/
|
*/
|
||||||
STORAGECLASS Widget FC_NameOrPathText;
|
STORAGECLASS Widget FC_NameOrPathText;
|
||||||
STORAGECLASS Widget FC_AndLabel1;
|
STORAGECLASS Widget FC_AndLabel1;
|
||||||
STORAGECLASS Widget FC_PermissionForm;
|
extern Widget FC_PermissionForm;
|
||||||
STORAGECLASS Widget FC_ReadToggle;
|
STORAGECLASS Widget FC_ReadToggle;
|
||||||
STORAGECLASS Widget FC_WriteToggle;
|
STORAGECLASS Widget FC_WriteToggle;
|
||||||
STORAGECLASS Widget FC_ExecuteToggle;
|
STORAGECLASS Widget FC_ExecuteToggle;
|
||||||
|
@ -324,7 +324,7 @@ STORAGECLASS SessionData sessiondata;
|
||||||
#ifdef NOEXTERN
|
#ifdef NOEXTERN
|
||||||
|
|
||||||
STORAGECLASS enum icon_size_range action_icon_size = None_Selected;
|
STORAGECLASS enum icon_size_range action_icon_size = None_Selected;
|
||||||
STORAGECLASS enum icon_size_range filetype_icon_size = None_Selected;
|
STORAGECLASS extern enum icon_size_range filetype_icon_size;
|
||||||
STORAGECLASS int pidIconEditor = 0;
|
STORAGECLASS int pidIconEditor = 0;
|
||||||
STORAGECLASS Boolean bShowPixmaps = TRUE;
|
STORAGECLASS Boolean bShowPixmaps = TRUE;
|
||||||
STORAGECLASS Widget IconSelector = (Widget)NULL;
|
STORAGECLASS Widget IconSelector = (Widget)NULL;
|
||||||
|
@ -353,7 +353,6 @@ STORAGECLASS const char *af_tiny_icon_default = "/usr/dt/appconfig/icons/C/Dtda
|
||||||
|
|
||||||
#else /* NOEXTERN */
|
#else /* NOEXTERN */
|
||||||
|
|
||||||
STORAGECLASS enum icon_size_range action_icon_size;
|
|
||||||
STORAGECLASS enum icon_size_range filetype_icon_size;
|
STORAGECLASS enum icon_size_range filetype_icon_size;
|
||||||
STORAGECLASS int pidIconEditor;
|
STORAGECLASS int pidIconEditor;
|
||||||
STORAGECLASS Boolean bShowPixmaps;
|
STORAGECLASS Boolean bShowPixmaps;
|
||||||
|
|
|
@ -68,6 +68,13 @@
|
||||||
#include "HelpCacheI.h"
|
#include "HelpCacheI.h"
|
||||||
#include "HourGlassI.h"
|
#include "HourGlassI.h"
|
||||||
|
|
||||||
|
/* Global Variables Used by our helpCache */
|
||||||
|
|
||||||
|
CacheListStruct *pCacheListHead;
|
||||||
|
CacheListStruct *pCacheListTale;
|
||||||
|
int totalCacheNodes;
|
||||||
|
|
||||||
|
|
||||||
/* Internal Static Functions */
|
/* Internal Static Functions */
|
||||||
static Widget BuildMenus(Widget parent);
|
static Widget BuildMenus(Widget parent);
|
||||||
static void CreateMainWindow(Widget parent);
|
static void CreateMainWindow(Widget parent);
|
||||||
|
|
|
@ -64,9 +64,9 @@
|
||||||
|
|
||||||
/* Global Variables Used by our helpCache */
|
/* Global Variables Used by our helpCache */
|
||||||
|
|
||||||
CacheListStruct *pCacheListHead;
|
extern CacheListStruct *pCacheListHead;
|
||||||
CacheListStruct *pCacheListTale;
|
extern CacheListStruct *pCacheListTale;
|
||||||
int totalCacheNodes;
|
extern int totalCacheNodes;
|
||||||
|
|
||||||
/* Globally referenced widget variables */
|
/* Globally referenced widget variables */
|
||||||
extern Widget topLevel;
|
extern Widget topLevel;
|
||||||
|
|
|
@ -80,6 +80,27 @@
|
||||||
#include "UtilI.h"
|
#include "UtilI.h"
|
||||||
#include "ManPageI.h"
|
#include "ManPageI.h"
|
||||||
|
|
||||||
|
/* Global Variables Used to maintain our cache list of help dialogs */
|
||||||
|
CacheListStruct *pCacheListHead;
|
||||||
|
CacheListStruct *pCacheListTale;
|
||||||
|
int totalCacheNodes;
|
||||||
|
|
||||||
|
/* Global Variables */
|
||||||
|
Widget topLevel;
|
||||||
|
Widget viewWidget;
|
||||||
|
Widget manWidget;
|
||||||
|
Widget manBtn;
|
||||||
|
Widget manText;
|
||||||
|
Widget manForm;
|
||||||
|
Widget closeBtn;
|
||||||
|
|
||||||
|
/* General global variables */
|
||||||
|
int runMode;
|
||||||
|
char *helpClass;
|
||||||
|
Display *appDisplay;
|
||||||
|
char *startCommand;
|
||||||
|
|
||||||
|
|
||||||
/* Application resource list definition */
|
/* Application resource list definition */
|
||||||
|
|
||||||
static XrmOptionDescRec option_list[] =
|
static XrmOptionDescRec option_list[] =
|
||||||
|
|
|
@ -66,25 +66,25 @@
|
||||||
|
|
||||||
|
|
||||||
/* Global Variables Used to maintain our cache list of help dialogs */
|
/* Global Variables Used to maintain our cache list of help dialogs */
|
||||||
CacheListStruct *pCacheListHead;
|
extern CacheListStruct *pCacheListHead;
|
||||||
CacheListStruct *pCacheListTale;
|
extern CacheListStruct *pCacheListTale;
|
||||||
int totalCacheNodes;
|
extern int totalCacheNodes;
|
||||||
|
|
||||||
/* Global Variables */
|
/* Global Variables */
|
||||||
Widget topLevel;
|
extern Widget topLevel;
|
||||||
Widget viewWidget;
|
extern Widget viewWidget;
|
||||||
Widget manWidget;
|
extern Widget manWidget;
|
||||||
Widget manBtn;
|
extern Widget manBtn;
|
||||||
Widget manText;
|
extern Widget manText;
|
||||||
Widget manForm;
|
extern Widget manForm;
|
||||||
Widget closeBtn;
|
extern Widget closeBtn;
|
||||||
|
|
||||||
|
|
||||||
/* General global variables */
|
/* General global variables */
|
||||||
int runMode;
|
extern int runMode;
|
||||||
char *helpClass;
|
extern char *helpClass;
|
||||||
Display *appDisplay;
|
extern Display *appDisplay;
|
||||||
char *startCommand;
|
extern char *startCommand;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
typedef int Boolean;
|
typedef int Boolean;
|
||||||
|
|
||||||
/* extern int errno; */
|
/* extern int errno; */
|
||||||
/* extern char *sys_errlist[]; */
|
|
||||||
/* extern int sys_nerr; */
|
/* extern int sys_nerr; */
|
||||||
|
|
||||||
static void GenTopicList (
|
static void GenTopicList (
|
||||||
|
|
|
@ -44,10 +44,10 @@ APPLHDRS = $(PARSEHDRS) $(ELTHDRS) \
|
||||||
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
||||||
../parser/userinc.h
|
../parser/userinc.h
|
||||||
|
|
||||||
SRCS = custom.c default.c help.c make.c option.c out.c special.c xref.c \
|
SRCS = custom.c default.c global.c help.c make.c option.c out.c special.c xref.c \
|
||||||
$(XLATESRCS)
|
$(XLATESRCS)
|
||||||
|
|
||||||
OBJS = custom.o default.o help.o make.o option.o out.o special.o xref.o \
|
OBJS = custom.o default.o global.o help.o make.o option.o out.o special.o xref.o \
|
||||||
$(XLATEOBJS)
|
$(XLATEOBJS)
|
||||||
|
|
||||||
LOCAL_LIBRARIES = $(HELPUTILLIB)
|
LOCAL_LIBRARIES = $(HELPUTILLIB)
|
||||||
|
|
47
cde/programs/dthelp/parser/canon1/helptag/global.c
Normal file
47
cde/programs/dthelp/parser/canon1/helptag/global.c
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/*
|
||||||
|
* CDE - Common Desktop Environment
|
||||||
|
*
|
||||||
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||||
|
*
|
||||||
|
* These libraries and programs are free software; you can
|
||||||
|
* redistribute them and/or modify them under the terms of the GNU
|
||||||
|
* Lesser General Public License as published by the Free Software
|
||||||
|
* Foundation; either version 2 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* These libraries and programs are distributed in the hope that
|
||||||
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||||
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE. See the GNU Lesser General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with these libraries and programs; if not, write
|
||||||
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||||
|
* Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "basic.h"
|
||||||
|
#include "trie.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
#include "global.h"
|
||||||
|
|
||||||
|
/* global variables */
|
||||||
|
PBLOCK blockinfo INIT(NULL);
|
||||||
|
LOGICAL inParText INIT(FALSE);
|
||||||
|
LOGICAL inSdlP INIT(FALSE);
|
||||||
|
|
||||||
|
/* Save these ids and reuse them on the current virpage.
|
||||||
|
* We need two of each (except for the first) so we can alternate to
|
||||||
|
* avoid <form> thinking it is supposed to span them. The bullet id
|
||||||
|
* indexes will flip back and forth between 0 and 1 to pick an id.
|
||||||
|
*/
|
||||||
|
int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
||||||
|
int bulletIdIndex INIT(1);
|
||||||
|
int looseBulletIdIndex INIT(1);
|
||||||
|
|
||||||
|
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
||||||
|
LOGICAL usingshortnames INIT(FALSE);
|
||||||
|
|
||||||
|
|
|
@ -227,20 +227,21 @@ struct _block {
|
||||||
char *pclass;
|
char *pclass;
|
||||||
char *pssi;
|
char *pssi;
|
||||||
PBLOCK pprev;
|
PBLOCK pprev;
|
||||||
} block, *pblock;
|
};
|
||||||
PBLOCK blockinfo INIT(NULL);
|
/*block, *pblock;*/
|
||||||
|
extern PBLOCK blockinfo;
|
||||||
|
|
||||||
LOGICAL inParText INIT(FALSE);
|
extern LOGICAL inParText;
|
||||||
LOGICAL inSdlP INIT(FALSE);
|
extern LOGICAL inSdlP;
|
||||||
|
|
||||||
/* Save these ids and reuse them on the current virpage.
|
/* Save these ids and reuse them on the current virpage.
|
||||||
* We need two of each (except for the first) so we can alternate to
|
* We need two of each (except for the first) so we can alternate to
|
||||||
* avoid <form> thinking it is supposed to span them. The bullet id
|
* avoid <form> thinking it is supposed to span them. The bullet id
|
||||||
* indexes will flip back and forth between 0 and 1 to pick an id.
|
* indexes will flip back and forth between 0 and 1 to pick an id.
|
||||||
*/
|
*/
|
||||||
int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
extern int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
||||||
int bulletIdIndex INIT(1);
|
extern int bulletIdIndex;
|
||||||
int looseBulletIdIndex INIT(1);
|
extern int looseBulletIdIndex;
|
||||||
|
|
||||||
/* indent for p, image, ex, vex, based on plain list */
|
/* indent for p, image, ex, vex, based on plain list */
|
||||||
#define LISTFIRSTINDENT 2
|
#define LISTFIRSTINDENT 2
|
||||||
|
@ -289,7 +290,7 @@ EXTERN char *helpext;
|
||||||
EXTERN char helptmpbuf[2] INIT("0");
|
EXTERN char helptmpbuf[2] INIT("0");
|
||||||
|
|
||||||
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
||||||
LOGICAL usingshortnames INIT(FALSE);
|
extern LOGICAL usingshortnames;
|
||||||
/* Limit on how long the basename can be for a .ht file */
|
/* Limit on how long the basename can be for a .ht file */
|
||||||
#define BASENAME_LIMIT 6
|
#define BASENAME_LIMIT 6
|
||||||
/* limit on how many additional character are allowed before the ext */
|
/* limit on how many additional character are allowed before the ext */
|
||||||
|
|
|
@ -44,6 +44,7 @@ XLATEOBJECTS = $(HELPTAGSRC)/LocaleXlate.o $(HELPTAGSRC)/XlationSvc.o
|
||||||
APPLOBJECTS = \
|
APPLOBJECTS = \
|
||||||
$(HELPTAGSRC)/custom.o \
|
$(HELPTAGSRC)/custom.o \
|
||||||
$(HELPTAGSRC)/default.o \
|
$(HELPTAGSRC)/default.o \
|
||||||
|
$(HELPTAGSRC)/global.o \
|
||||||
$(HELPTAGSRC)/help.o \
|
$(HELPTAGSRC)/help.o \
|
||||||
$(HELPTAGSRC)/make.o \
|
$(HELPTAGSRC)/make.o \
|
||||||
$(HELPTAGSRC)/option.o \
|
$(HELPTAGSRC)/option.o \
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
#include "if.h"
|
#include "if.h"
|
||||||
#include "entext.h"
|
#include "entext.h"
|
||||||
|
|
||||||
|
char *user_defined_entities M_PARINIT("USER-DEFINED-ENTITIES");
|
||||||
|
|
||||||
static void scanloop(LOGICAL prolog);
|
static void scanloop(LOGICAL prolog);
|
||||||
|
|
||||||
/* Main procedure */
|
/* Main procedure */
|
||||||
|
|
|
@ -301,7 +301,7 @@ M_PAREXTERN int m_prevcon ;
|
||||||
M_PAREXTERN int m_token ;
|
M_PAREXTERN int m_token ;
|
||||||
M_PAREXTERN int m_scanval ;
|
M_PAREXTERN int m_scanval ;
|
||||||
|
|
||||||
char *user_defined_entities M_PARINIT("USER-DEFINED-ENTITIES");
|
extern char *user_defined_entities;
|
||||||
|
|
||||||
/* Declarations for tentative list of omitted tags when checking for tag
|
/* Declarations for tentative list of omitted tags when checking for tag
|
||||||
MINimization */
|
MINimization */
|
||||||
|
|
|
@ -44,10 +44,10 @@ APPLHDRS = $(PARSEHDRS) $(ELTHDRS) \
|
||||||
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
||||||
../parser/userinc.h
|
../parser/userinc.h
|
||||||
|
|
||||||
SRCS = custom.c default.c help.c make.c option.c out.c special.c xref.c \
|
SRCS = custom.c default.c global.c help.c make.c option.c out.c special.c xref.c \
|
||||||
$(XLATESRCS)
|
$(XLATESRCS)
|
||||||
|
|
||||||
OBJS = custom.o default.o help.o make.o option.o out.o special.o xref.o \
|
OBJS = custom.o default.o global.o help.o make.o option.o out.o special.o xref.o \
|
||||||
$(XLATEOBJS)
|
$(XLATEOBJS)
|
||||||
|
|
||||||
LOCAL_LIBRARIES = $(HELPUTILLIB)
|
LOCAL_LIBRARIES = $(HELPUTILLIB)
|
||||||
|
|
43
cde/programs/dthelp/parser/pass1/helptag/global.c
Normal file
43
cde/programs/dthelp/parser/pass1/helptag/global.c
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/*
|
||||||
|
* CDE - Common Desktop Environment
|
||||||
|
*
|
||||||
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||||
|
*
|
||||||
|
* These libraries and programs are free software; you can
|
||||||
|
* redistribute them and/or modify them under the terms of the GNU
|
||||||
|
* Lesser General Public License as published by the Free Software
|
||||||
|
* Foundation; either version 2 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* These libraries and programs are distributed in the hope that
|
||||||
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||||
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE. See the GNU Lesser General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with these libraries and programs; if not, write
|
||||||
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||||
|
* Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "basic.h"
|
||||||
|
#include "trie.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
#include "global.h"
|
||||||
|
|
||||||
|
/* Save these ids and reuse them on the current virpage.
|
||||||
|
* We need two of each (except for the first) so we can alternate to
|
||||||
|
* avoid <form> thinking it is supposed to span them. The bullet id
|
||||||
|
* indexes will flip back and forth between 0 and 1 to pick an id.
|
||||||
|
*/
|
||||||
|
int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
||||||
|
int bulletIdIndex = 1;
|
||||||
|
int looseBulletIdIndex = 1;
|
||||||
|
|
||||||
|
LOGICAL inParText = FALSE;
|
||||||
|
LOGICAL inSdlP = FALSE;
|
||||||
|
|
||||||
|
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
||||||
|
LOGICAL usingshortnames = FALSE;
|
|
@ -170,17 +170,17 @@ EXTERN M_WCHAR *imageghyperlinkp;
|
||||||
EXTERN M_WCHAR *imageglinktypep;
|
EXTERN M_WCHAR *imageglinktypep;
|
||||||
EXTERN M_WCHAR *imagegdescription;
|
EXTERN M_WCHAR *imagegdescription;
|
||||||
|
|
||||||
LOGICAL inParText INIT(FALSE);
|
extern LOGICAL inParText;
|
||||||
LOGICAL inSdlP INIT(FALSE);
|
extern LOGICAL inSdlP;
|
||||||
|
|
||||||
/* Save these ids and reuse them on the current virpage.
|
/* Save these ids and reuse them on the current virpage.
|
||||||
* We need two of each (except for the first) so we can alternate to
|
* We need two of each (except for the first) so we can alternate to
|
||||||
* avoid <form> thinking it is supposed to span them. The bullet id
|
* avoid <form> thinking it is supposed to span them. The bullet id
|
||||||
* indexes will flip back and forth between 0 and 1 to pick an id.
|
* indexes will flip back and forth between 0 and 1 to pick an id.
|
||||||
*/
|
*/
|
||||||
int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
extern int bulletId[2], looseBulletId[2], firstBulletId, firstLooseBulletId;
|
||||||
int bulletIdIndex INIT(1);
|
extern int bulletIdIndex;
|
||||||
int looseBulletIdIndex INIT(1);
|
extern int looseBulletIdIndex;
|
||||||
|
|
||||||
/* save the textsize to emit it on the <p> tag; this allows us to have
|
/* save the textsize to emit it on the <p> tag; this allows us to have
|
||||||
* a single ssi= for the "ex" <block> and modify the text size individually
|
* a single ssi= for the "ex" <block> and modify the text size individually
|
||||||
|
@ -213,7 +213,7 @@ EXTERN char *helpbase INIT(NULL);
|
||||||
EXTERN char *helpext;
|
EXTERN char *helpext;
|
||||||
|
|
||||||
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
/* Should we use these BASENAME_LIMIT on the size of file names? */
|
||||||
LOGICAL usingshortnames INIT(FALSE);
|
extern LOGICAL usingshortnames;
|
||||||
/* Limit on how long the basename can be for a .ht file */
|
/* Limit on how long the basename can be for a .ht file */
|
||||||
#define BASENAME_LIMIT 6
|
#define BASENAME_LIMIT 6
|
||||||
/* limit on how many additional character are allowed before the ext */
|
/* limit on how many additional character are allowed before the ext */
|
||||||
|
|
|
@ -44,6 +44,7 @@ XLATEOBJECTS = $(HELPTAGSRC)/LocaleXlate.o $(HELPTAGSRC)/XlationSvc.o
|
||||||
APPLOBJECTS = \
|
APPLOBJECTS = \
|
||||||
$(HELPTAGSRC)/custom.o \
|
$(HELPTAGSRC)/custom.o \
|
||||||
$(HELPTAGSRC)/default.o \
|
$(HELPTAGSRC)/default.o \
|
||||||
|
$(HELPTAGSRC)/global.o \
|
||||||
$(HELPTAGSRC)/help.o \
|
$(HELPTAGSRC)/help.o \
|
||||||
$(HELPTAGSRC)/make.o \
|
$(HELPTAGSRC)/make.o \
|
||||||
$(HELPTAGSRC)/option.o \
|
$(HELPTAGSRC)/option.o \
|
||||||
|
|
|
@ -38,9 +38,9 @@ APPLHDRS = $(PARSEHDRS) $(ELTHDRS) \
|
||||||
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
|
||||||
../parser/userinc.h
|
../parser/userinc.h
|
||||||
|
|
||||||
SRCS = custom.c sdl.c option.c out.c $(XLATESRCS)
|
SRCS = custom.c global.c sdl.c option.c out.c $(XLATESRCS)
|
||||||
|
|
||||||
OBJS = custom.o sdl.o option.o out.o $(XLATEOBJS)
|
OBJS = custom.o global.o sdl.o option.o out.o $(XLATEOBJS)
|
||||||
|
|
||||||
LOCAL_LIBRARIES = $(SDLUTILLIB)
|
LOCAL_LIBRARIES = $(SDLUTILLIB)
|
||||||
|
|
||||||
|
|
48
cde/programs/dthelp/parser/pass2/htag2/global.c
Normal file
48
cde/programs/dthelp/parser/pass2/htag2/global.c
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
/*
|
||||||
|
* CDE - Common Desktop Environment
|
||||||
|
*
|
||||||
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||||
|
*
|
||||||
|
* These libraries and programs are free software; you can
|
||||||
|
* redistribute them and/or modify them under the terms of the GNU
|
||||||
|
* Lesser General Public License as published by the Free Software
|
||||||
|
* Foundation; either version 2 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* These libraries and programs are distributed in the hope that
|
||||||
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||||
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE. See the GNU Lesser General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with these libraries and programs; if not, write
|
||||||
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||||
|
* Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "basic.h"
|
||||||
|
#include "trie.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
#include "global.h"
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Names for all the input, output and intermediate files we'll need.
|
||||||
|
*/
|
||||||
|
char *inFileName;
|
||||||
|
char *outFileName;
|
||||||
|
char *errFileName;
|
||||||
|
char *idxFileName;
|
||||||
|
char *snbFileName;
|
||||||
|
char *sortedIdxFileName;
|
||||||
|
char *tossFileName;
|
||||||
|
char *vstructFileName;
|
||||||
|
char *tempFileName;
|
||||||
|
char *compFileName;
|
||||||
|
char *compZFileName;
|
||||||
|
|
||||||
|
FILE *inFile;
|
||||||
|
FILE *outFile;
|
||||||
|
|
|
@ -128,20 +128,20 @@ EXTERN char *progName INIT(NULL);
|
||||||
/*
|
/*
|
||||||
* Names for all the input, output and intermediate files we'll need.
|
* Names for all the input, output and intermediate files we'll need.
|
||||||
*/
|
*/
|
||||||
char *inFileName;
|
extern char *inFileName;
|
||||||
char *outFileName;
|
extern char *outFileName;
|
||||||
char *errFileName;
|
extern char *errFileName;
|
||||||
char *idxFileName;
|
extern char *idxFileName;
|
||||||
char *snbFileName;
|
extern char *snbFileName;
|
||||||
char *sortedIdxFileName;
|
extern char *sortedIdxFileName;
|
||||||
char *tossFileName;
|
extern char *tossFileName;
|
||||||
char *vstructFileName;
|
extern char *vstructFileName;
|
||||||
char *tempFileName;
|
extern char *tempFileName;
|
||||||
char *compFileName;
|
extern char *compFileName;
|
||||||
char *compZFileName;
|
extern char *compZFileName;
|
||||||
|
|
||||||
FILE *inFile;
|
extern FILE *inFile;
|
||||||
FILE *outFile;
|
extern FILE *outFile;
|
||||||
|
|
||||||
typedef struct _loidsRec *LoidsPtr;
|
typedef struct _loidsRec *LoidsPtr;
|
||||||
typedef struct _loidsRec {
|
typedef struct _loidsRec {
|
||||||
|
|
|
@ -37,6 +37,7 @@ XLATEOBJECTS = $(HTAG2SRC)/LocaleXlate.o $(HTAG2SRC)/XlationSvc.o
|
||||||
|
|
||||||
APPLOBJECTS = \
|
APPLOBJECTS = \
|
||||||
$(HTAG2SRC)/custom.o \
|
$(HTAG2SRC)/custom.o \
|
||||||
|
$(HTAG2SRC)/global.o \
|
||||||
$(HTAG2SRC)/sdl.o \
|
$(HTAG2SRC)/sdl.o \
|
||||||
$(HTAG2SRC)/option.o \
|
$(HTAG2SRC)/option.o \
|
||||||
$(HTAG2SRC)/out.o \
|
$(HTAG2SRC)/out.o \
|
||||||
|
|
|
@ -60,11 +60,11 @@
|
||||||
|
|
||||||
extern GC scratch_gc;
|
extern GC scratch_gc;
|
||||||
|
|
||||||
Widget editMenu_cut_pb;
|
extern Widget editMenu_cut_pb;
|
||||||
Widget editMenu_copy_pb;
|
extern Widget editMenu_copy_pb;
|
||||||
Widget editMenu_rotate_pb;
|
extern Widget editMenu_rotate_pb;
|
||||||
Widget editMenu_flip_pb;
|
extern Widget editMenu_flip_pb;
|
||||||
Widget editMenu_scale_pb;
|
extern Widget editMenu_scale_pb;
|
||||||
|
|
||||||
extern void Stop_HotBox(void);
|
extern void Stop_HotBox(void);
|
||||||
|
|
||||||
|
|
|
@ -101,13 +101,13 @@ static void Do_DropCheckOp(DtDndTransferCallback);
|
||||||
static void Do_DropOp(void);
|
static void Do_DropOp(void);
|
||||||
|
|
||||||
extern Widget optionsMenu_grid;
|
extern Widget optionsMenu_grid;
|
||||||
Widget editMenu_paste_pb;
|
extern Widget editMenu_paste_pb;
|
||||||
Widget editMenu_cut_pb;
|
extern Widget editMenu_cut_pb;
|
||||||
Widget editMenu_copy_pb;
|
extern Widget editMenu_copy_pb;
|
||||||
Widget editMenu_rotate_pb;
|
extern Widget editMenu_rotate_pb;
|
||||||
Widget editMenu_flip_pb;
|
extern Widget editMenu_flip_pb;
|
||||||
Widget editMenu_scale_pb;
|
extern Widget editMenu_scale_pb;
|
||||||
Widget editMenu_undo_pb;
|
extern Widget editMenu_undo_pb;
|
||||||
extern Widget newWidthText, newHeightText;
|
extern Widget newWidthText, newHeightText;
|
||||||
|
|
||||||
extern GC scratch_gc;
|
extern GC scratch_gc;
|
||||||
|
|
|
@ -138,7 +138,7 @@ extern Window tablet_win;
|
||||||
static int jskXerrorDebug();
|
static int jskXerrorDebug();
|
||||||
static int jskXerrorIODebug();
|
static int jskXerrorIODebug();
|
||||||
|
|
||||||
Widget editMenu_undo_pb;
|
extern Widget editMenu_undo_pb;
|
||||||
|
|
||||||
void GetSessionInfo( void );
|
void GetSessionInfo( void );
|
||||||
void Set_Gfx_Labels( Boolean );
|
void Set_Gfx_Labels( Boolean );
|
||||||
|
|
|
@ -37,10 +37,6 @@
|
||||||
#include <X11/Xproto.h> /* for X_ChangeHosts */
|
#include <X11/Xproto.h> /* for X_ChangeHosts */
|
||||||
#include <X11/Xatom.h> /* for XA_STRING */
|
#include <X11/Xatom.h> /* for XA_STRING */
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static char *conf_msg_id = STR_CONFDATA;
|
static char *conf_msg_id = STR_CONFDATA;
|
||||||
|
|
||||||
#define CONF_MSG_ID_LEN strlen(conf_msg_id)
|
#define CONF_MSG_ID_LEN strlen(conf_msg_id)
|
||||||
|
|
|
@ -28,14 +28,10 @@
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#if (defined(__linux__) || defined(CSRG_BASED)) && !defined(_NFILE)
|
#if (defined(__linux__) || defined(CSRG_BASED)) && !defined(_NFILE)
|
||||||
#define _NFILE FOPEN_MAX
|
#define _NFILE FOPEN_MAX
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
extern int sys_nerr;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* local functions */
|
/* local functions */
|
||||||
|
@ -600,8 +596,7 @@ static int invoke_ims(UserSelection *sel)
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid == (pid_t) -1) {
|
if (pid == (pid_t) -1) {
|
||||||
put_xims_log("fork failed [%s]",
|
put_xims_log("fork failed [%s]", strerror(errno), 0, 0);
|
||||||
(errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0);
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
perror("fork");
|
perror("fork");
|
||||||
#endif
|
#endif
|
||||||
|
@ -618,8 +613,7 @@ static int invoke_ims(UserSelection *sel)
|
||||||
#endif
|
#endif
|
||||||
execl(SH_PATH, "sh", "-c", renv->cmdbuf, NULL);
|
execl(SH_PATH, "sh", "-c", renv->cmdbuf, NULL);
|
||||||
|
|
||||||
put_xims_log("%s: exec failed [%s]", SH_PATH,
|
put_xims_log("%s: exec failed [%s]", SH_PATH, strerror(errno) , 0, 0);
|
||||||
(errno <= sys_nerr) ? sys_errlist[errno] : NULL, 0, 0);
|
|
||||||
/* perror(SH_PATH); */
|
/* perror(SH_PATH); */
|
||||||
sleep(1);
|
sleep(1);
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
|
|
@ -53,9 +53,6 @@
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char *sys_errlist[];
|
|
||||||
|
|
||||||
|
|
||||||
static OliasEvent *current_event;
|
static OliasEvent *current_event;
|
||||||
static int reply_status;
|
static int reply_status;
|
||||||
#define NO_REPLY 0
|
#define NO_REPLY 0
|
||||||
|
@ -332,7 +329,7 @@ wait_for_reply (Widget toplevel)
|
||||||
XtAppWarningMsg (XtWidgetToApplicationContext (toplevel),
|
XtAppWarningMsg (XtWidgetToApplicationContext (toplevel),
|
||||||
"communicationsError", "select",
|
"communicationsError", "select",
|
||||||
"Olias API", "Select failed: %s",
|
"Olias API", "Select failed: %s",
|
||||||
&sys_errlist[errno], &num_params);
|
strerror(errno), &num_params);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -92,14 +92,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include <ast.h>
|
#include <ast.h>
|
||||||
|
|
||||||
extern __MANGLE__ int sys_nerr;
|
|
||||||
extern __MANGLE__ char* sys_errlist[];
|
|
||||||
|
|
||||||
char*
|
char*
|
||||||
fmterror __PARAM__((int err), (err)) __OTORP__(int err;){
|
fmterror __PARAM__((int err), (err)) __OTORP__(int err;){
|
||||||
static char msg[28];
|
return strerror(err);
|
||||||
|
|
||||||
if (err > 0 && err <= sys_nerr) return(sys_errlist[err]);
|
|
||||||
sfsprintf(msg, sizeof(msg), "Error %d", err);
|
|
||||||
return(msg);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,18 +108,12 @@ NoN(strerror)
|
||||||
|
|
||||||
#include <ast.h>
|
#include <ast.h>
|
||||||
|
|
||||||
extern __MANGLE__ int sys_nerr;
|
|
||||||
extern __MANGLE__ char* sys_errlist[];
|
|
||||||
|
|
||||||
char*
|
char*
|
||||||
strerror __PARAM__((int err), (err)) __OTORP__(int err;)
|
strerror __PARAM__((int err), (err)) __OTORP__(int err;)
|
||||||
#line 25
|
#line 25
|
||||||
{
|
{
|
||||||
static char msg[28];
|
return strerror(err);
|
||||||
|
|
||||||
if (err > 0 && err <= sys_nerr) return(sys_errlist[err]);
|
|
||||||
sfsprintf(msg, sizeof(msg), "Error %d", err);
|
|
||||||
return(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -68,8 +68,7 @@
|
||||||
# include <pwd.h> /* for passwd structure */
|
# include <pwd.h> /* for passwd structure */
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <stdlib.h> /* for exit(), malloc(), abort() */
|
# include <stdlib.h> /* for exit(), malloc(), abort() */
|
||||||
# include <string.h> /* for string functions, bcopy(),
|
# include <string.h> /* for string functions, bcopy() */
|
||||||
sys_errlist */
|
|
||||||
# include <sys/param.h> /* for NGROUPS */
|
# include <sys/param.h> /* for NGROUPS */
|
||||||
# include <sys/types.h> /* for fd_set */
|
# include <sys/types.h> /* for fd_set */
|
||||||
# include <netinet/in.h> /* for Internet socket stuff */
|
# include <netinet/in.h> /* for Internet socket stuff */
|
||||||
|
@ -475,10 +474,6 @@ struct verify_info {
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
|
||||||
extern char *sys_errlist[]; /* system error msgs */
|
|
||||||
extern int sys_nerr; /* system error msgs */
|
|
||||||
#endif
|
|
||||||
extern XrmDatabase XresourceDB;
|
extern XrmDatabase XresourceDB;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -125,8 +125,6 @@ static void InitializeBW(
|
||||||
/*+++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++*/
|
||||||
/* Internal Variables */
|
/* Internal Variables */
|
||||||
/*+++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++*/
|
||||||
int NumOfPalettes = 0;
|
|
||||||
|
|
||||||
static char *PALETTE_DIR = CDE_INSTALLATION_TOP "/palettes/";
|
static char *PALETTE_DIR = CDE_INSTALLATION_TOP "/palettes/";
|
||||||
static char *PALETTE_DIR_ADM = "/etc/dt/palettes/";
|
static char *PALETTE_DIR_ADM = "/etc/dt/palettes/";
|
||||||
static char *DEFAULT_FILENAME = "palette.dt";
|
static char *DEFAULT_FILENAME = "palette.dt";
|
||||||
|
|
|
@ -246,7 +246,7 @@ Widget paletteList;
|
||||||
Widget deleteButton;
|
Widget deleteButton;
|
||||||
char *defaultName;
|
char *defaultName;
|
||||||
Bool WaitSelection;
|
Bool WaitSelection;
|
||||||
int NumOfPalettes;
|
int NumOfPalettes = 0;
|
||||||
|
|
||||||
/*+++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++*/
|
||||||
/* Internal Variables */
|
/* Internal Variables */
|
||||||
|
|
|
@ -66,9 +66,9 @@ extern FalCodeRegion CodeArea[16];
|
||||||
structure of widgets
|
structure of widgets
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
extern Widget toplevel;
|
extern Widget toplevel;
|
||||||
Widget editPopW,
|
extern Widget wgeScro;
|
||||||
wgeScro,
|
extern Widget editPopW;
|
||||||
wgeBulB_edit;
|
Widget wgeBulB_edit;
|
||||||
static Widget wgeStaT_form[EDLIST_MAX],
|
static Widget wgeStaT_form[EDLIST_MAX],
|
||||||
wgeStaT_disp[EDLIST_MAX],
|
wgeStaT_disp[EDLIST_MAX],
|
||||||
wgeStaT_list[EDLIST_MAX],
|
wgeStaT_list[EDLIST_MAX],
|
||||||
|
|
|
@ -56,6 +56,21 @@ GetMessage(int set, int number, char *string)
|
||||||
* Widgets *
|
* Widgets *
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
Widget toplevel;
|
Widget toplevel;
|
||||||
|
Widget editPtnW;
|
||||||
|
Widget cpyPtnW;
|
||||||
|
Widget mngPtnW;
|
||||||
|
|
||||||
|
EditChar edg;
|
||||||
|
EditList edlist;
|
||||||
|
EditPane edpane;
|
||||||
|
XlibInf xl;
|
||||||
|
DelInf dn;
|
||||||
|
DelPtnInf dl[D_MAX] ;
|
||||||
|
DelPtnInf dl_glyph[EDLIST_MAX]; /* add dl_disp 1995.09.20 */
|
||||||
|
int sq_disp[EDLIST_MAX]; /* add sq_disp 1995.09.20 */
|
||||||
|
EditPtnInf em;
|
||||||
|
CopyPtnInf cpm;
|
||||||
|
|
||||||
static Widget dnPopW;
|
static Widget dnPopW;
|
||||||
Widget wgeScro, editPopW;
|
Widget wgeScro, editPopW;
|
||||||
|
|
||||||
|
|
|
@ -255,23 +255,23 @@ typedef struct _FontInf {
|
||||||
|
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
Widget toplevel;
|
extern Widget toplevel;
|
||||||
|
|
||||||
Widget editPtnW;
|
extern Widget editPtnW;
|
||||||
Widget cpyPtnW;
|
extern Widget cpyPtnW;
|
||||||
Widget mngPtnW;
|
extern Widget mngPtnW;
|
||||||
|
|
||||||
EditChar edg;
|
extern EditChar edg;
|
||||||
EditList edlist;
|
extern EditList edlist;
|
||||||
EditPane edpane;
|
extern EditPane edpane;
|
||||||
XlibInf xl;
|
extern XlibInf xl;
|
||||||
DelInf dn;
|
extern DelInf dn;
|
||||||
DelPtnInf dl[D_MAX] ;
|
extern DelPtnInf dl[D_MAX] ;
|
||||||
DelPtnInf dl_glyph[EDLIST_MAX]; /* add dl_disp 1995.09.20 */
|
extern DelPtnInf dl_glyph[EDLIST_MAX]; /* add dl_disp 1995.09.20 */
|
||||||
int sq_disp[EDLIST_MAX]; /* add sq_disp 1995.09.20 */
|
extern int sq_disp[EDLIST_MAX]; /* add sq_disp 1995.09.20 */
|
||||||
|
|
||||||
EditPtnInf em;
|
extern EditPtnInf em;
|
||||||
CopyPtnInf cpm;
|
extern CopyPtnInf cpm;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue