Discontinue HPUX support
This commit is contained in:
@@ -399,35 +399,6 @@ CreateBackdropDialog(
|
||||
/* from that locale's description file from the system location */
|
||||
lang = setlocale (LC_CTYPE,NULL);
|
||||
|
||||
#ifdef hpux /* hpux-specific parsing of the locale string */
|
||||
/* The following code is identical to the
|
||||
ExtractLocaleName function in WmResParse.c
|
||||
from dtwm
|
||||
*/
|
||||
#define MAXLOCALE 64 /* buffer size of locale name */
|
||||
|
||||
{ char *start;
|
||||
char *end;
|
||||
int len;
|
||||
static char buf[MAXLOCALE];
|
||||
|
||||
/* If lang has a substring ":<category>;", extract <category>
|
||||
* from the first such occurrence as the locale name.
|
||||
*/
|
||||
|
||||
start = lang;
|
||||
if (start = strchr (lang, ':')) {
|
||||
start++;
|
||||
if (end = strchr (start, ';')) {
|
||||
len = end - start;
|
||||
strncpy(buf, start, len);
|
||||
*(buf + len) = '\0';
|
||||
lang = buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux */
|
||||
|
||||
bd_desc = (char *)XtMalloc(strlen("/usr/dt/backdrops/desc.") + strlen(lang) + 1);
|
||||
strcpy (bd_desc,"/usr/dt/backdrops/desc.");
|
||||
strcat (bd_desc, lang);
|
||||
|
||||
@@ -48,9 +48,7 @@
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#ifdef __hpux
|
||||
#include <ndir.h> /* opendir(), directory(3C) */
|
||||
#elif defined(SVR4) || defined(CSRG_BASED)
|
||||
#if defined(SVR4) || defined(CSRG_BASED)
|
||||
#include <dirent.h> /* opendir(), directory(3C) */
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
@@ -137,11 +135,7 @@ static char *home_palette_dir;
|
||||
|
||||
static int loopcount = 0;
|
||||
static DIR *dirp;
|
||||
#ifdef __hpux
|
||||
static struct direct *file_descpt;
|
||||
#else
|
||||
static struct dirent *file_descpt;
|
||||
#endif /* __hpux */
|
||||
static Boolean open_dir = False;
|
||||
extern XrmDatabase hm_pl_DB;
|
||||
|
||||
@@ -761,11 +755,7 @@ AddDirectories( char *text )
|
||||
********************************************************************/
|
||||
void
|
||||
CheckForDeletedFile(
|
||||
#ifdef __hpux
|
||||
struct direct *file_descpt )
|
||||
#else
|
||||
struct dirent *file_descpt )
|
||||
#endif /* __hpux */
|
||||
{
|
||||
char *filename;
|
||||
int i;
|
||||
|
||||
@@ -319,35 +319,6 @@ loadDatabase(void)
|
||||
|
||||
lang = setlocale (LC_CTYPE,NULL);
|
||||
|
||||
#ifdef hpux /* hpux-specific parsing of the locale string */
|
||||
/* The following code is identical to the
|
||||
ExtractLocaleName function in WmResParse.c
|
||||
from dtwm
|
||||
*/
|
||||
#define MAXLOCALE 64 /* buffer size of locale name */
|
||||
|
||||
{ char *start;
|
||||
char *end;
|
||||
int len;
|
||||
static char buf[MAXLOCALE];
|
||||
|
||||
/* If lang has a substring ":<category>;", extract <category>
|
||||
* from the first such occurrence as the locale name.
|
||||
*/
|
||||
|
||||
start = lang;
|
||||
if (start = strchr (lang, ':')) {
|
||||
start++;
|
||||
if (end = strchr (start, ';')) {
|
||||
len = end - start;
|
||||
strncpy(buf, start, len);
|
||||
*(buf + len) = '\0';
|
||||
lang = buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* hpux */
|
||||
|
||||
pl_desc = (char *)XtMalloc(strlen("/usr/dt/palettes/desc.") + strlen(lang) + 1);
|
||||
strcpy (pl_desc,"/usr/dt/palettes/desc.");
|
||||
strcat (pl_desc, lang);
|
||||
|
||||
Reference in New Issue
Block a user