dtmail: remove register keyword

This commit is contained in:
Jon Trulson
2018-06-27 17:29:25 -06:00
parent 88dd3b2c71
commit d0a4f777d8
12 changed files with 82 additions and 82 deletions

View File

@@ -169,7 +169,7 @@ static char *phrase(char *, int , int );
char *
savestr(char *str)
{
register char *cp, *cp2, *top;
char *cp, *cp2, *top;
for (cp = str; *cp; cp++)
;
@@ -233,8 +233,8 @@ dispname(const char *hdr)
static char *
phrase(char *name, int token, int comma)
{
register char c;
register char *cp, *cp2;
char c;
char *cp, *cp2;
char *bufend, *nbufp;
int gotlt, lastsp, didq;
char nbuf[LINESIZE];

View File

@@ -308,7 +308,7 @@ void DtMailGenDialog::verify(XmTextVerifyPtr cbs)
{
int i;
static char buffer[MAXPATHLEN];
register char *s, *t;
char *s, *t;
#if defined(SHROUDED_TEXTFIELD_DEBUG)
printf(

View File

@@ -161,7 +161,7 @@ void EncryptedTextFieldUiItem::verify(XmTextVerifyPtr cbs)
{
int i;
static char buffer[MAXPATHLEN];
register char *s, *t;
char *s, *t;
#if defined(ENCRYPTED_TEXTFIELD_DEBUG)
printf(

View File

@@ -73,7 +73,7 @@
void
FindDialog::clear()
{
register unsigned int offset;
unsigned int offset;
//
if (_text_labels != NULL) {
@@ -239,7 +239,7 @@ FindDialog::createWorkArea(Widget dialog)
Widget *label = new Widget[_num_text_fields];
register unsigned int offset;
unsigned int offset;
_name = GETMSG(DT_catd, 1, 192, "Mailer - Find");
@@ -364,7 +364,7 @@ FindDialog::createWorkArea(Widget dialog)
//
#define TIGHTNESS 20
register Widget widget;
Widget widget;
Widget fd_action = XtVaCreateWidget("actionArea",
xmFormWidgetClass,
@@ -500,12 +500,12 @@ FindDialog::findMatching(Boolean findAll)
//
// A pointer to the currently interesting message.
//
register DtMailMessageHandle currentHandle = NULL;
DtMailMessageHandle currentHandle = NULL;
//
// The offset of the currentHandle in the MsgScrollingList.
//
register int handleOffset;
int handleOffset;
//
// Find the current message. We would always start from the
@@ -657,7 +657,7 @@ Boolean
FindDialog::compareMessage(DtMailMessageHandle handle)
{
Boolean found = False;
register unsigned int offset;
unsigned int offset;
//
// Check for something to do.
@@ -740,9 +740,9 @@ FindDialog::strcasestr(const char *str, const char *toFind)
const char *result = NULL; // Default to not found.
if (str && toFind) { // Sanity check
register int offset = 0;
register int lenToFind = strlen(toFind);
register int lenStr = strlen(str);
int offset = 0;
int lenToFind = strlen(toFind);
int lenStr = strlen(str);
//
// If toFind == "", then return the entire string (like strstr()).
@@ -771,7 +771,7 @@ FindDialog::compareHeader(DtMailEnv & error,
DtMailValueSeq & header,
const char * cmpToString)
{
register int headerOffset = header.length() - 1;
int headerOffset = header.length() - 1;
error.clear();
@@ -790,7 +790,7 @@ FindDialog::compareHeader(DtMailEnv & error,
void
FindDialog::getAllFields()
{
register unsigned int offset;
unsigned int offset;
for (offset = 0; offset < _num_text_fields; offset++) {
if (_text_fields[offset] != NULL) {
@@ -882,7 +882,7 @@ FindDialog::clearCallback(Widget /*button*/,
XtPointer /*call_data*/)
{
FindDialog *findData = (FindDialog *)closure;
register unsigned int offset;
unsigned int offset;
for (offset = 0; offset < findData->_num_text_fields; offset++) {
if (findData->_text_fields[offset] != NULL) {

View File

@@ -1496,7 +1496,7 @@ MsgScrollingList::select_all_and_display_last(
)
{
register int item_pos;
int item_pos;
int num_items;
MsgHndArray * msgHandles = get_messages();
@@ -1537,8 +1537,8 @@ MsgScrollingList::select_all_and_display_last(
unsigned int elements
)
{
register int handleOffset = 0;
register int item_pos;
int handleOffset = 0;
int item_pos;
error.clear();

View File

@@ -114,8 +114,8 @@ Sort::sortMessages(MsgScrollingList *displayList,
messageRecord * messages = new messageRecord[numberMessages +2];
register unsigned int offset;
register unsigned int msgno;
unsigned int offset;
unsigned int msgno;
DtMail::Message * msg = NULL;
DtMail::Envelope * envelope = NULL;
@@ -406,11 +406,11 @@ Sort::_msort (char * base,
int (*compar)(char **one,
char **two))
{
register int i;
register int t;
register int s;
register int p;
register int q;
int i;
int t;
int s;
int p;
int q;
char *k1;
char *k2;
@@ -508,8 +508,8 @@ Sort::_sortCmp(char ** one, char ** two)
//
// Cast the pointers to the known type.
//
register messageRecord * first = (messageRecord *) *one;
register messageRecord * second = (messageRecord *) *two;
messageRecord * first = (messageRecord *) *one;
messageRecord * second = (messageRecord *) *two;
if (first->primary_key_str == NULL)
{