dtksh: remove needless OS defines
This commit is contained in:
@@ -67,11 +67,6 @@
|
|||||||
#include "xmwidgets.h"
|
#include "xmwidgets.h"
|
||||||
#include "msgs.h"
|
#include "msgs.h"
|
||||||
|
|
||||||
#if defined(SYSV) || defined(SVR4_0) || defined(SVR4) || defined(CSRG_BASED) \
|
|
||||||
|| defined(__linux__) || defined(sun)
|
|
||||||
#define lsprintf sprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern Hashtab_t * Wclasses;
|
extern Hashtab_t * Wclasses;
|
||||||
|
|
||||||
|
|
||||||
@@ -486,9 +481,9 @@ DtkshCvtCallbackToString(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
p += lsprintf(p, "|%s", (String)cdata->ksh_cmd);
|
p += sprintf(p, "|%s", (String)cdata->ksh_cmd);
|
||||||
else
|
else
|
||||||
p += lsprintf(p, "%s", (String)cdata->ksh_cmd);
|
p += sprintf(p, "%s", (String)cdata->ksh_cmd);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3737,10 +3737,7 @@ do_catopen(
|
|||||||
char * ptr;
|
char * ptr;
|
||||||
nl_catd nlmsg_fd = (nl_catd)-1;
|
nl_catd nlmsg_fd = (nl_catd)-1;
|
||||||
char * errmsg;
|
char * errmsg;
|
||||||
#if defined(SVR4) || defined (_AIX) || defined(CSRG_BASED) || \
|
|
||||||
defined(__linux__) || defined(sun)
|
|
||||||
char * nextMatch;
|
char * nextMatch;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (argc != 3)
|
if (argc != 3)
|
||||||
{
|
{
|
||||||
@@ -3762,8 +3759,6 @@ do_catopen(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
altCatName = XtMalloc(strlen(catName) + 10);
|
altCatName = XtMalloc(strlen(catName) + 10);
|
||||||
#if defined(SVR4) || defined (_AIX) || defined(CSRG_BASED) || \
|
|
||||||
defined(__linux__) || defined(sun)
|
|
||||||
/* These platforms don't have strrstr() */
|
/* These platforms don't have strrstr() */
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
nextMatch = catName;
|
nextMatch = catName;
|
||||||
@@ -3772,9 +3767,6 @@ do_catopen(
|
|||||||
ptr = nextMatch;
|
ptr = nextMatch;
|
||||||
nextMatch++;
|
nextMatch++;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
ptr = (char *)strrstr(catName, ".cat");
|
|
||||||
#endif
|
|
||||||
if (ptr && (strlen(ptr) == 4))
|
if (ptr && (strlen(ptr) == 4))
|
||||||
{
|
{
|
||||||
/* Strip off the ".cat", and try again */
|
/* Strip off the ".cat", and try again */
|
||||||
|
|||||||
Reference in New Issue
Block a user