1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

DtSvc/DtUtil1: remove register keyword

This commit is contained in:
Jon Trulson 2018-06-27 15:03:37 -06:00
parent dbef83212a
commit f446ca54e9
12 changed files with 135 additions and 135 deletions

View file

@ -131,7 +131,7 @@ Boolean _DtCompileMessagePiece(
ActionRequest * _DtCloneRequest ( ActionRequest * _DtCloneRequest (
ActionRequest * request) ; ActionRequest * request) ;
void _DtFreeRequest( void _DtFreeRequest(
register ActionRequest *request) ; ActionRequest *request) ;
char * _DtFindCwd( void ) ; char * _DtFindCwd( void ) ;
@ -222,9 +222,9 @@ static void AddFailedHostToList (
ActionRequest * request, ActionRequest * request,
char * badHost) ; char * badHost) ;
static int _DtAddEntry( static int _DtAddEntry(
register char * string, char * string,
register char * **arrayPtr, char * **arrayPtr,
register int *sizePtr) ; int *sizePtr) ;
static void TryToTypeFile( static void TryToTypeFile(
ObjectData *obj, ObjectData *obj,
char * host, char * host,
@ -255,10 +255,10 @@ static Boolean ParseFileArgument(
char * filetype, char * filetype,
Boolean typeFile) ; Boolean typeFile) ;
static void AddPrompt( static void AddPrompt(
register int argNum, int argNum,
char * prompt, char * prompt,
register int *numPrompts, int *numPrompts,
register PromptEntry **prompts) ; PromptEntry **prompts) ;
static int MatchParamsToAction( static int MatchParamsToAction(
ActionRequest *request, ActionRequest *request,
int *numPrompts, int *numPrompts,
@ -273,33 +273,33 @@ static void ProcessOneSegment(
int * unused, int * unused,
Boolean * paramUsed) ; Boolean * paramUsed) ;
static ActionPtr CloneActionDBEntry( static ActionPtr CloneActionDBEntry(
register ActionPtr action) ; ActionPtr action) ;
static void CloneParsedMessage( static void CloneParsedMessage(
register parsedMsg * old_pmsg, parsedMsg * old_pmsg,
register parsedMsg * new_pmsg ) ; parsedMsg * new_pmsg ) ;
static void FreeParsedMessage( static void FreeParsedMessage(
register parsedMsg * parsedMessage) ; parsedMsg * parsedMessage) ;
static parsedMsg * CloneParsedMessageArray( static parsedMsg * CloneParsedMessageArray(
register parsedMsg * pmsgArray, parsedMsg * pmsgArray,
register int count ) ; int count ) ;
static void FreeParsedMessageArray( static void FreeParsedMessageArray(
register parsedMsg * parsedMessageArray, parsedMsg * parsedMessageArray,
int count ) ; int count ) ;
static Boolean InsertArgumentString( static Boolean InsertArgumentString(
Widget w, Widget w,
register char **bufPtr, char **bufPtr,
int * bufSizePtr, int * bufSizePtr,
ActionRequest *request, ActionRequest *request,
register ObjectData *object, ObjectData *object,
unsigned long mask, unsigned long mask,
char * relPathHost, char * relPathHost,
char * relPathDir, char * relPathDir,
Boolean addLeadingSpace, Boolean addLeadingSpace,
unsigned long processingMask ) ; unsigned long processingMask ) ;
static void InsertUnmappedArgumentString( static void InsertUnmappedArgumentString(
register char **bufPtr, char **bufPtr,
int * bufSizePtr, int * bufSizePtr,
register ObjectData *object, ObjectData *object,
Boolean addLeadingSpace ) ; Boolean addLeadingSpace ) ;
static char * GrowMsgBuffer( static char * GrowMsgBuffer(
char * buffer, char * buffer,
@ -324,9 +324,9 @@ static void InitiateDtNotifyMessage(
ActionRequest *request ) ; ActionRequest *request ) ;
static void PrepareAndExecuteAction( static void PrepareAndExecuteAction(
Widget w, Widget w,
register ActionRequest *request); ActionRequest *request);
static void __ExtractCWD( static void __ExtractCWD(
register ActionRequest *request, ActionRequest *request,
char ** hostPtr, char ** hostPtr,
char ** dirPtr, char ** dirPtr,
Boolean useObjectInfo) ; Boolean useObjectInfo) ;
@ -342,29 +342,29 @@ static void CreateContinueDialog(
Widget w, Widget w,
ActionRequest *request, ActionRequest *request,
int numPrompts, int numPrompts,
register PromptEntry *prompts) ; PromptEntry *prompts) ;
static void CancelPromptDialog( static void CancelPromptDialog(
Widget widget, Widget widget,
PromptDialog *dialog, PromptDialog *dialog,
XtPointer call_data) ; XtPointer call_data) ;
static void ProcessPromptDialog( static void ProcessPromptDialog(
Widget widget, Widget widget,
register PromptDialog *dialog, PromptDialog *dialog,
XtPointer call_data) ; XtPointer call_data) ;
static void ChangePromptTraversal( static void ChangePromptTraversal(
Widget widget, Widget widget,
register PromptDialog *dialog, PromptDialog *dialog,
XtPointer call_data) ; XtPointer call_data) ;
static void CreatePromptDialog( static void CreatePromptDialog(
Widget w, Widget w,
ActionRequest *request, ActionRequest *request,
register int numPrompts, int numPrompts,
register PromptEntry *prompts) ; PromptEntry *prompts) ;
static Boolean MoreArgumentsToProcess( static Boolean MoreArgumentsToProcess(
register ActionRequest *request) ; ActionRequest *request) ;
static Boolean ProcessRequest( static Boolean ProcessRequest(
Widget w, Widget w,
register ActionRequest *request) ; ActionRequest *request) ;
static void InitLocalizedStrings( void ) ; static void InitLocalizedStrings( void ) ;
static int LinkToTypeQuark( static int LinkToTypeQuark(
char * host, char * host,
@ -485,7 +485,7 @@ DtActionInvoke(
DtActionCallbackProc statusUpdateCb, DtActionCallbackProc statusUpdateCb,
XtPointer client_data) XtPointer client_data)
{ {
register int i; int i;
ActionRequest *request; ActionRequest *request;
char *contextHost= NULL;/* dummy to replace old parameter */ char *contextHost= NULL;/* dummy to replace old parameter */
_DtActInvRecT *invp; /* pointer to invocation record */ _DtActInvRecT *invp; /* pointer to invocation record */
@ -1281,11 +1281,11 @@ CreateActionRequest(
_DtActInvRecT *invp ) _DtActInvRecT *invp )
{ {
register int i, j; int i, j;
int numObjects = 0; int numObjects = 0;
ObjectData * objectDataArray; ObjectData * objectDataArray;
ObjectData objectData; ObjectData objectData;
register ActionRequest * request; ActionRequest * request;
/* Allocate a new request structure -- zero filled */ /* Allocate a new request structure -- zero filled */
@ -1453,7 +1453,7 @@ CreateInvocationRecord(
DtActionArg *aap, DtActionArg *aap,
int aac) int aac)
{ {
register int i; int i;
_DtActInvRecT *invp; /* pointer to invocation record */ _DtActInvRecT *invp; /* pointer to invocation record */
char *tmp; char *tmp;
@ -1720,7 +1720,7 @@ ParseFileArgument(
Boolean typeFile ) Boolean typeFile )
{ {
register int i, j; int i, j;
String dirName; String dirName;
String host; String host;
String dir; String dir;
@ -1890,12 +1890,12 @@ _DtFindCwd( void )
static int static int
_DtAddEntry( _DtAddEntry(
register String string, String string,
register String **arrayPtr, String **arrayPtr,
register int *sizePtr ) int *sizePtr )
{ {
register int i; int i;
/* See if the string is already in the array */ /* See if the string is already in the array */
for (i = 0; i < *sizePtr; i++) for (i = 0; i < *sizePtr; i++)
@ -2050,11 +2050,11 @@ LinkToTypeQuark(
static Boolean static Boolean
ProcessRequest( ProcessRequest(
Widget w, Widget w,
register ActionRequest *request ) ActionRequest *request )
{ {
int unused; int unused;
register ActionPtr action; ActionPtr action;
int numPrompts; int numPrompts;
PromptEntry * prompts; PromptEntry * prompts;
DtShmBoson actionQuark; DtShmBoson actionQuark;
@ -2239,13 +2239,13 @@ ProcessRequest(
static void static void
PrepareAndExecuteAction( PrepareAndExecuteAction(
Widget w, Widget w,
register ActionRequest *request ) ActionRequest *request )
{ {
char * relPathHost; char * relPathHost;
char * relPathDir; char * relPathDir;
register int i; int i;
register ActionPtr action = request->clonedAction; ActionPtr action = request->clonedAction;
int argNum; int argNum;
_DtActInvRecT *invp; /* pointer to invocation record */ _DtActInvRecT *invp; /* pointer to invocation record */
_DtActChildRecT *childrecp; /* pointer to child record */ _DtActChildRecT *childrecp; /* pointer to child record */
@ -2423,7 +2423,7 @@ PrepareAndExecuteAction(
*/ */
static void static void
__ExtractCWD( __ExtractCWD(
register ActionRequest *request, ActionRequest *request,
char ** hostPtr, char ** hostPtr,
char ** dirPtr, char ** dirPtr,
Boolean useObjectInfo ) Boolean useObjectInfo )
@ -2432,7 +2432,7 @@ __ExtractCWD(
String msg; String msg;
String lastCh; String lastCh;
int lastChLen; int lastChLen;
register ActionPtr action = request->clonedAction; ActionPtr action = request->clonedAction;
/* Only dropped objects will have been 'typed' at this point */ /* Only dropped objects will have been 'typed' at this point */
if (useObjectInfo && (IS_CMD(action->mask)) && (request->numObjects > 0) && if (useObjectInfo && (IS_CMD(action->mask)) && (request->numObjects > 0) &&
@ -2534,10 +2534,10 @@ __ExtractCWD(
static Boolean static Boolean
MoreArgumentsToProcess( MoreArgumentsToProcess(
register ActionRequest *request ) ActionRequest *request )
{ {
register int i; int i;
char * path; char * path;
char * dtype; char * dtype;
@ -2761,10 +2761,10 @@ _DtCloneRequest (
void void
_DtFreeRequest( _DtFreeRequest(
register ActionRequest *request ) ActionRequest *request )
{ {
register int i; int i;
XtFree(request->actionName); XtFree(request->actionName);
@ -2826,11 +2826,11 @@ _DtFreeRequest(
static ActionPtr static ActionPtr
CloneActionDBEntry( CloneActionDBEntry(
register ActionPtr action ) ActionPtr action )
{ {
register ActionPtr newAction = (ActionPtr)XtMalloc((Cardinal)sizeof(Action)); ActionPtr newAction = (ActionPtr)XtMalloc((Cardinal)sizeof(Action));
register int i; int i;
/* Clone each field */ /* Clone each field */
newAction->action = action->action; newAction->action = action->action;
@ -2928,10 +2928,10 @@ CloneActionDBEntry(
void void
_DtFreeActionStruct( _DtFreeActionStruct(
register ActionPtr action ) ActionPtr action )
{ {
register int i; int i;
if (action == NULL) if (action == NULL)
return; return;
@ -2975,13 +2975,13 @@ _DtFreeActionStruct(
static void static void
CloneParsedMessage( CloneParsedMessage(
register parsedMsg * old_pmsg, parsedMsg * old_pmsg,
register parsedMsg * new_pmsg ) parsedMsg * new_pmsg )
{ {
int i; int i;
register MsgComponent * piece; MsgComponent * piece;
register MsgComponent * newPiece; MsgComponent * newPiece;
new_pmsg->numMsgParts = old_pmsg->numMsgParts; new_pmsg->numMsgParts = old_pmsg->numMsgParts;
if (old_pmsg->compiledMessage) if (old_pmsg->compiledMessage)
@ -3041,7 +3041,7 @@ CloneParsedMessage(
*/ */
static void static void
FreeParsedMessage( FreeParsedMessage(
register parsedMsg * parsedMessage ) parsedMsg * parsedMessage )
{ {
int i; int i;
@ -3067,8 +3067,8 @@ FreeParsedMessage(
*/ */
static parsedMsg * static parsedMsg *
CloneParsedMessageArray( CloneParsedMessageArray(
register parsedMsg * pmsgArray, parsedMsg * pmsgArray,
register int count ) int count )
{ {
parsedMsg * newArray; parsedMsg * newArray;
@ -3092,7 +3092,7 @@ CloneParsedMessageArray(
*/ */
static void static void
FreeParsedMessageArray( FreeParsedMessageArray(
register parsedMsg * parsedMessageArray, parsedMsg * parsedMessageArray,
int count ) int count )
{ {
@ -3135,9 +3135,9 @@ _DtCompileMessagePiece(
int * promptDataIndex ) int * promptDataIndex )
{ {
register int i, j; int i, j;
Boolean firstParmUsed; Boolean firstParmUsed;
register MsgComponent * segment; MsgComponent * segment;
char * compiledMsg = NULL; char * compiledMsg = NULL;
int compiledMsgSize = 0; int compiledMsgSize = 0;
ObjectData tmpObjData; ObjectData tmpObjData;
@ -3393,10 +3393,10 @@ _DtCompileMessagePiece(
static Boolean static Boolean
InsertArgumentString( InsertArgumentString(
Widget w, Widget w,
register char **bufPtr, char **bufPtr,
int * bufSizePtr, int * bufSizePtr,
ActionRequest *request, ActionRequest *request,
register ObjectData *object, ObjectData *object,
unsigned long mask, unsigned long mask,
char * relPathHost, char * relPathHost,
char * relPathDir, char * relPathDir,
@ -3568,9 +3568,9 @@ InsertArgumentString(
static void static void
InsertUnmappedArgumentString( InsertUnmappedArgumentString(
register char **bufPtr, char **bufPtr,
int * bufSizePtr, int * bufSizePtr,
register ObjectData *object, ObjectData *object,
Boolean addLeadingSpace ) Boolean addLeadingSpace )
{ {
@ -3645,13 +3645,13 @@ GrowMsgBuffer(
static void static void
AddPrompt( AddPrompt(
register int argNum, int argNum,
String prompt, String prompt,
register int *numPrompts, int *numPrompts,
register PromptEntry **prompts ) PromptEntry **prompts )
{ {
register int i; int i;
/* /*
* Standard arguments only want their prompts entered once. * Standard arguments only want their prompts entered once.
@ -3697,7 +3697,7 @@ MatchParamsToAction(
Boolean * paramUsed = NULL; Boolean * paramUsed = NULL;
int unused; int unused;
Boolean argsOptionFound; Boolean argsOptionFound;
register int i; int i;
int lastArgReferenced; int lastArgReferenced;
ActionPtr action = request->clonedAction; ActionPtr action = request->clonedAction;
@ -3966,7 +3966,7 @@ CancelPromptDialog(
static void static void
ChangePromptTraversal( ChangePromptTraversal(
Widget widget, Widget widget,
register PromptDialog *dialog, PromptDialog *dialog,
XtPointer call_data ) XtPointer call_data )
{ {
XmProcessTraversal (widget, XmTRAVERSE_NEXT_TAB_GROUP); XmProcessTraversal (widget, XmTRAVERSE_NEXT_TAB_GROUP);
@ -3982,11 +3982,11 @@ ChangePromptTraversal(
static void static void
ProcessPromptDialog( ProcessPromptDialog(
Widget widget, Widget widget,
register PromptDialog *dialog, PromptDialog *dialog,
XtPointer call_data ) XtPointer call_data )
{ {
register int i, j; int i, j;
String value; String value;
/* Unpost the dialog */ /* Unpost the dialog */
@ -4114,18 +4114,18 @@ static void
CreatePromptDialog( CreatePromptDialog(
Widget w, Widget w,
ActionRequest *request, ActionRequest *request,
register int numPrompts, int numPrompts,
register PromptEntry *prompts ) PromptEntry *prompts )
{ {
register PromptDialog * dialog; PromptDialog * dialog;
register DialogPromptEntry * promptDes; DialogPromptEntry * promptDes;
XmString pt1; XmString pt1;
String title; String title;
Widget shell, bboard, frame, form, label; Widget shell, bboard, frame, form, label;
Widget promptLabel, topAttach; Widget promptLabel, topAttach;
Widget separator, ok, cancel; Widget separator, ok, cancel;
register int count; int count;
int n, i; int n, i;
Arg args[20]; Arg args[20];
XmString labelString; XmString labelString;
@ -4411,8 +4411,8 @@ ContinueRequest(
XtPointer call_data ) XtPointer call_data )
{ {
register int i; int i;
register ContinueDialog *dialog = (ContinueDialog *)user_data; ContinueDialog *dialog = (ContinueDialog *)user_data;
/* Destroy the dialog */ /* Destroy the dialog */
XtDestroyWidget(XtParent(dialog->topLevel)); XtDestroyWidget(XtParent(dialog->topLevel));
@ -4478,8 +4478,8 @@ CancelRequest(
XtPointer call_data ) XtPointer call_data )
{ {
register int i; int i;
register ContinueDialog *dialog = (ContinueDialog *)user_data; ContinueDialog *dialog = (ContinueDialog *)user_data;
unsigned long evalStatus; unsigned long evalStatus;
unsigned long userStatus; unsigned long userStatus;
_DtActInvRecT *invp; _DtActInvRecT *invp;
@ -4529,13 +4529,13 @@ CreateContinueDialog(
Widget w, Widget w,
ActionRequest *request, ActionRequest *request,
int numPrompts, int numPrompts,
register PromptEntry *prompts ) PromptEntry *prompts )
{ {
register ContinueDialog * dialog; ContinueDialog * dialog;
String title; String title;
XmString label; XmString label;
register int i; int i;
int n; int n;
Arg args[10]; Arg args[10];
XmString ok, cancel; XmString ok, cancel;

View file

@ -230,7 +230,7 @@ static
unsigned long unsigned long
_DtActFieldBitLookup(char *name) _DtActFieldBitLookup(char *name)
{ {
register int j; int j;
char *np = name; char *np = name;
#ifdef _DT_ALLOW_DT_MSGS #ifdef _DT_ALLOW_DT_MSGS
char dtnamebuf[sizeof(_DtPFX) + sizeof(_DtACTION_DTN_VALUE)] = _DtPFX; char dtnamebuf[sizeof(_DtPFX) + sizeof(_DtACTION_DTN_VALUE)] = _DtPFX;
@ -290,7 +290,7 @@ _DtActFieldBitLookup(char *name)
static char * static char *
_DtActFieldNameLookup(long bitmask) _DtActFieldNameLookup(long bitmask)
{ {
register int j; int j;
if ( !bitmask ) if ( !bitmask )
return NULL; return NULL;
@ -312,7 +312,7 @@ _DtActFieldNameLookup(long bitmask)
static Boolean static Boolean
_DtActDupFieldNameCheck(DtDtsDbField **fields,int numFields,XrmQuark name) _DtActDupFieldNameCheck(DtDtsDbField **fields,int numFields,XrmQuark name)
{ {
register int i; int i;
for ( i = 0; i < numFields; i++ ) for ( i = 0; i < numFields; i++ )
{ {
@ -998,7 +998,7 @@ _DtActionConverter(DtDtsDbField * fields,
DtDtsDbDatabase *act_db; DtDtsDbDatabase *act_db;
DtDtsDbRecord *act_rec; DtDtsDbRecord *act_rec;
DtDtsDbField *fld; DtDtsDbField *fld;
register int i; int i;
unsigned int mask = 0; unsigned int mask = 0;
char bigBuf[_DtAct_MAX_BUF_SIZE]; char bigBuf[_DtAct_MAX_BUF_SIZE];
char *buf = bigBuf; char *buf = bigBuf;

View file

@ -106,9 +106,9 @@ static void _DtActionGetRecordWeight(
long * primaryWeightPtr, long * primaryWeightPtr,
long * secondaryWeightPtr ); long * secondaryWeightPtr );
static void ParseMessage( static void ParseMessage(
register ActionPtr action, ActionPtr action,
register char * str, char * str,
register parsedMsg * msg) ; parsedMsg * msg) ;
static Boolean ValidKeyword( static Boolean ValidKeyword(
char *start, char *start,
char *end, char *end,
@ -2273,18 +2273,18 @@ _DtActionFindDBEntry( ActionRequest *reqp,
static void static void
ParseMessage( ParseMessage(
register ActionPtr action, ActionPtr action,
register char * str, char * str,
register parsedMsg * msg ) parsedMsg * msg )
{ {
char *start; char *start;
register char *string; char *string;
char *keywordStart, *keywordEnd; char *keywordStart, *keywordEnd;
char *prompt; char *prompt;
int keyword, argNum; int keyword, argNum;
Boolean isFile; Boolean isFile;
register MsgComponent *newBlock; MsgComponent *newBlock;
/* Initialize all fields */ /* Initialize all fields */
msg->parsedMessage = NULL; msg->parsedMessage = NULL;

View file

@ -136,7 +136,7 @@ extern Boolean _DtCompileMessagePiece(
extern ActionRequest * _DtCloneRequest ( extern ActionRequest * _DtCloneRequest (
ActionRequest * request) ; ActionRequest * request) ;
extern void _DtFreeRequest( extern void _DtFreeRequest(
register ActionRequest *request) ; ActionRequest *request) ;
/******** End Public Function Declarations ********/ /******** End Public Function Declarations ********/

View file

@ -886,7 +886,7 @@ _DtActGenerateTmpFile(char *dir,char *format,mode_t mode,int *fd)
void void
_DtRemoveTrailingBlanksInPlace(char **s) _DtRemoveTrailingBlanksInPlace(char **s)
{ {
register char *p; char *p;
if (!s || !strlen(*s)) if (!s || !strlen(*s))
return; return;
@ -1182,7 +1182,7 @@ _DtActFreeChildRec( _DtActChildRecT *childRecP)
******************************************************************************/ ******************************************************************************/
int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp) int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp)
{ {
register int i,j; int i,j;
if ( !invp || !childp ) if ( !invp || !childp )
return 0; return 0;
@ -1222,7 +1222,7 @@ int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp)
******************************************************************************/ ******************************************************************************/
int _DtActDeleteInvRec( DtActionInvocationID id ) int _DtActDeleteInvRec( DtActionInvocationID id )
{ {
register int i; int i;
CallbackData *data; CallbackData *data;
_DtSvcProcessLock(); _DtSvcProcessLock();
@ -1394,7 +1394,7 @@ _DtActChildRecT *_DtActFindChildRec(
static void static void
_DtActFreeInvRec( _DtActInvRecT *invp ) _DtActFreeInvRec( _DtActInvRecT *invp )
{ {
register int i; int i;
/* /*
@ -1880,7 +1880,7 @@ _DtActGetCmdReturnArgs(
_DtActChildRecT *childp, _DtActChildRecT *childp,
DtActionArg **aargv ) DtActionArg **aargv )
{ {
register int i; int i;
_DtActInvRecT *invp; _DtActInvRecT *invp;
DtActionArg *newArgp; DtActionArg *newArgp;

View file

@ -618,20 +618,20 @@ _DtFindMatchingFiles(
{ {
/* LOCAL VARIABLES */ /* LOCAL VARIABLES */
register DtDirPaths *files; /* An array of pointers to the filenames which DtDirPaths *files; /* An array of pointers to the filenames which
have been found. */ have been found. */
int max_files; /* The total number of filenames that can be int max_files; /* The total number of filenames that can be
stored in the "files" array before it must stored in the "files" array before it must
be reallocd. */ be reallocd. */
int num_found; /* The number of files which have been found. */ int num_found; /* The number of files which have been found. */
register DIR *dirp; /* Variables for walking through the directory DIR *dirp; /* Variables for walking through the directory
entries. */ entries. */
char * next_file; char * next_file;
struct dirent *dp = NULL; struct dirent *dp = NULL;
char *file_suffix; char *file_suffix;
int suffixLen, nameLen; int suffixLen, nameLen;
int nextIndex; int nextIndex;
register char * next_path; char * next_path;
int files_in_this_directory; int files_in_this_directory;
int base; int base;

View file

@ -146,8 +146,8 @@ DtHashTbl _DtUtilMakeIHash(int size)
void ** _DtUtilGetHash(DtHashTbl t, const unsigned char * key) void ** _DtUtilGetHash(DtHashTbl t, const unsigned char * key)
{ {
hash * tbl = (hash *) t; hash * tbl = (hash *) t;
register int bucket; int bucket;
register hash_entry * tmp; hash_entry * tmp;
hash_entry * new; hash_entry * new;
if(tbl->hash_type == String_Key) if(tbl->hash_type == String_Key)
@ -194,8 +194,8 @@ void ** _DtUtilGetHash(DtHashTbl t, const unsigned char * key)
void ** _DtUtilFindHash(DtHashTbl t, const unsigned char * key) void ** _DtUtilFindHash(DtHashTbl t, const unsigned char * key)
{ {
register hash * tbl = (hash *) t; hash * tbl = (hash *) t;
register hash_entry * tmp; hash_entry * tmp;
if(tbl->hash_type == String_Key) if(tbl->hash_type == String_Key)
{ {
@ -217,10 +217,10 @@ void ** _DtUtilFindHash(DtHashTbl t, const unsigned char * key)
void * _DtUtilDelHash(DtHashTbl t, const unsigned char * key) void * _DtUtilDelHash(DtHashTbl t, const unsigned char * key)
{ {
register hash * tbl = (hash *) t; hash * tbl = (hash *) t;
register int bucket; int bucket;
register hash_entry * tmp, * prev = NULL; hash_entry * tmp, * prev = NULL;
if(tbl->hash_type == String_Key) if(tbl->hash_type == String_Key)
bucket = hash_string(key, tbl->size); bucket = hash_string(key, tbl->size);
@ -277,7 +277,7 @@ void * _DtUtilDelHash(DtHashTbl t, const unsigned char * key)
int _DtUtilOperateHash(DtHashTbl t, void (*ptr)(), void * usr_arg) int _DtUtilOperateHash(DtHashTbl t, void (*ptr)(), void * usr_arg)
{ {
hash * tbl = (hash *) t; hash * tbl = (hash *) t;
register hash_entry * tmp = tbl->start; hash_entry * tmp = tbl->start;
int c = 0; int c = 0;
while(tmp) while(tmp)
@ -292,7 +292,7 @@ int _DtUtilOperateHash(DtHashTbl t, void (*ptr)(), void * usr_arg)
void _DtUtilDestroyHash(DtHashTbl t, int (*ptr)(), void * usr_arg) void _DtUtilDestroyHash(DtHashTbl t, int (*ptr)(), void * usr_arg)
{ {
hash * tbl = (hash *) t; hash * tbl = (hash *) t;
register hash_entry * tmp = tbl->start, * prev; hash_entry * tmp = tbl->start, * prev;
while(tmp) while(tmp)
{ {
@ -309,10 +309,10 @@ void _DtUtilDestroyHash(DtHashTbl t, int (*ptr)(), void * usr_arg)
free(tbl); free(tbl);
} }
static int hash_string(register const unsigned char * s, int modulo) static int hash_string(const unsigned char * s, int modulo)
{ {
register unsigned result = 0; unsigned result = 0;
register int i=1; int i=1;
while(*s!=0) while(*s!=0)
result += (*s++ << i++); result += (*s++ << i++);

View file

@ -2227,10 +2227,10 @@ name_list(type_info_t *linfo, DtDtsMMDatabase *db, DtDtsMMRecord *rec_ptr)
* which does the trick. * which does the trick.
*/ */
static int static int
strcasecmp(register const char *s1, strcasecmp(const char *s1,
register const char *s2) const char *s2)
{ {
register int c1, c2; int c1, c2;
while (*s1 && *s2) { while (*s1 && *s2) {
c1 = isupper(*s1) ? tolower(*s1) : *s1; c1 = isupper(*s1) ? tolower(*s1) : *s1;

View file

@ -338,7 +338,7 @@ _DtDtsDbRecordSort(DtDtsDbDatabase *db, _DtDtsDbRecordCompare compare)
DtDtsDbField * DtDtsDbField *
_DtDtsDbGetField(DtDtsDbRecord *rec, char *name) _DtDtsDbGetField(DtDtsDbRecord *rec, char *name)
{ {
register int i; int i;
/* /*
* Field names have been quarked so quark 'name' and * Field names have been quarked so quark 'name' and
@ -379,7 +379,7 @@ _DtDtsDbGetRecordByName(DtDtsDbDatabase *db, char *name)
DtDtsDbRecord srch; DtDtsDbRecord srch;
DtDtsDbRecord **result; DtDtsDbRecord **result;
DtDtsDbRecord *s = &srch; DtDtsDbRecord *s = &srch;
register int i; int i;
XrmQuark name_quark = XrmStringToQuark(name); XrmQuark name_quark = XrmStringToQuark(name);
/* /*

View file

@ -414,7 +414,7 @@ _DtDtsMMGet(const char *name)
DtDtsMMField * DtDtsMMField *
_DtDtsMMGetField(DtDtsMMRecord *rec, const char *name) _DtDtsMMGetField(DtDtsMMRecord *rec, const char *name)
{ {
register int i; int i;
int fld; int fld;
DtDtsMMField *fld_ptr; DtDtsMMField *fld_ptr;
DtDtsMMField *fld_ptr_list; DtDtsMMField *fld_ptr_list;
@ -460,7 +460,7 @@ _DtDtsMMGetRecordByName(DtDtsMMDatabase *db, const char *name)
DtDtsMMRecord srch; DtDtsMMRecord srch;
DtDtsMMRecord *result; DtDtsMMRecord *result;
DtDtsMMRecord *s = &srch; DtDtsMMRecord *s = &srch;
register int i; int i;
DtShmBoson name_quark = _DtDtsMMStringToBoson(name); DtShmBoson name_quark = _DtDtsMMStringToBoson(name);
DtDtsMMRecord *rec_ptr; DtDtsMMRecord *rec_ptr;
DtDtsMMRecord *rec_ptr_list; DtDtsMMRecord *rec_ptr_list;

View file

@ -73,9 +73,9 @@ typedef struct builder {
const int * const int *
_DtShmFindIntTabEntry(DtShmInttab inttab, unsigned int key) _DtShmFindIntTabEntry(DtShmInttab inttab, unsigned int key)
{ {
register const inttab_t * ptr = (const inttab_t *) inttab; const inttab_t * ptr = (const inttab_t *) inttab;
register int i; int i;
if ( !ptr->key) if ( !ptr->key)
return(0); return(0);

View file

@ -89,9 +89,9 @@ const char * _DtShmBosonToString(DtShmStrtab strtab, int boson)
DtShmBoson _DtShmStringToBoson(DtShmStrtab strtab, const char * string) DtShmBoson _DtShmStringToBoson(DtShmStrtab strtab, const char * string)
{ {
register unsigned int i,j; unsigned int i,j;
register unsigned const char * s; unsigned const char * s;
register strtab_entry_t * ptr = (strtab_entry_t *) ((unsigned char *) strtab + strtab_entry_t * ptr = (strtab_entry_t *) ((unsigned char *) strtab +
((strtab_t *) strtab) -> st_taboffset); ((strtab_t *) strtab) -> st_taboffset);
/* /*
@ -260,10 +260,10 @@ _DtShmProtoCopyStrtab(DtShmProtoStrtab in, void * destination)
static void build_it(int a, struct strtab_build * ptr, unsigned char * key) static void build_it(int a, struct strtab_build * ptr, unsigned char * key)
{ {
register unsigned int i,j; unsigned int i,j;
register unsigned char * s; unsigned char * s;
register strtab_entry_t * e; strtab_entry_t * e;
register unsigned short * add_ptr; unsigned short * add_ptr;
strcpy((char *) ptr->strstart + a, (const char *)key); strcpy((char *) ptr->strstart + a, (const char *)key);