dtksh: Use ksh93 translate over augmented version
We can reduce our differences from upstream ksh by simply using their ERROR_translate() function instead of our janky and obsolete msg_translate, we also move DtGetMessage() to msgs.c and lockedfiledescriptors and, unlockfiledescriptors to extra.c to lessen modifications to init.c, which all changes will hopefully be moved elsewhere in the future
This commit is contained in:
@@ -65,13 +65,13 @@ char * GetSharedMsg(
|
||||
# ifdef _NO_PROTO
|
||||
extern char *_DtGetMessage();
|
||||
# else /* _NO_PROTO */
|
||||
extern char *_DtGetMessage(char *filename, int set, int n, char *s );
|
||||
extern char *_DtGetMessage(char *filename, char *s );
|
||||
# endif /* _NO_PROTO */
|
||||
|
||||
# define GETMESSAGE(set, number, string)\
|
||||
(_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
|
||||
# define GETMESSAGE(string)\
|
||||
(_DtGetMessage(_CLIENT_CAT_NAME, string))
|
||||
#else
|
||||
# define GETMESSAGE(set, number, string)\
|
||||
# define GETMESSAGE(string)\
|
||||
string
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user