char *
savestr(char *str)
{
- register char *cp, *cp2, *top;
+ char *cp, *cp2, *top;
for (cp = str; *cp; cp++)
;
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];
{
int i;
static char buffer[MAXPATHLEN];
- register char *s, *t;
+ char *s, *t;
#if defined(SHROUDED_TEXTFIELD_DEBUG)
printf(
{
int i;
static char buffer[MAXPATHLEN];
- register char *s, *t;
+ char *s, *t;
#if defined(ENCRYPTED_TEXTFIELD_DEBUG)
printf(
void
FindDialog::clear()
{
- register unsigned int offset;
+ unsigned int offset;
//
if (_text_labels != NULL) {
Widget *label = new Widget[_num_text_fields];
- register unsigned int offset;
+ unsigned int offset;
_name = GETMSG(DT_catd, 1, 192, "Mailer - Find");
//
#define TIGHTNESS 20
- register Widget widget;
+ Widget widget;
Widget fd_action = XtVaCreateWidget("actionArea",
xmFormWidgetClass,
//
// 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
FindDialog::compareMessage(DtMailMessageHandle handle)
{
Boolean found = False;
- register unsigned int offset;
+ unsigned int offset;
//
// Check for something to do.
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()).
DtMailValueSeq & header,
const char * cmpToString)
{
- register int headerOffset = header.length() - 1;
+ int headerOffset = header.length() - 1;
error.clear();
void
FindDialog::getAllFields()
{
- register unsigned int offset;
+ unsigned int offset;
for (offset = 0; offset < _num_text_fields; offset++) {
if (_text_fields[offset] != NULL) {
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) {
)
{
- register int item_pos;
+ int item_pos;
int num_items;
MsgHndArray * msgHandles = get_messages();
unsigned int elements
)
{
- register int handleOffset = 0;
- register int item_pos;
+ int handleOffset = 0;
+ int item_pos;
error.clear();
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;
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;
//
// 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)
{
char *
savestr(char *str)
{
- register char *cp, *cp2, *top;
+ char *cp, *cp2, *top;
for (cp = str; *cp; cp++)
;
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];
// return alternates list
const char * DtMail::MailRc::getAlternates(DtMailEnv &env)
{
- register int i;
- register struct hash *h;
+ int i;
+ struct hash *h;
struct hash **table = (struct hash **)glob.g_alternates;
int len;
int
DtMail::MailRc::load(char *name, char* line)
{
- register FILE *in, *oldin;
+ FILE *in, *oldin;
int ret=0;
if ((in = fopen(name, "r")) == NULL) {
int
DtMail::MailRc::commands(char* iline)
{
- register int n;
+ int n;
char *linebuf = new char[LINESIZE];
char *line = new char[LINESIZE];
int
DtMail::MailRc::readline(FILE *ibuf, char *linebuf)
{
- register char *cp;
- register int c;
+ char *cp;
+ int c;
int seennulls = 0;
clearerr(ibuf);
void *DtMail::MailRc::lex(char word[])
{
- register struct cmd *cp;
+ struct cmd *cp;
for (cp = &cmdtab[0]; cp->c_name != NOSTR; cp++)
if (DtMail::MailRc::isprefix(word, cp->c_name))
int DtMail::MailRc::isprefix(char *as1, char *as2)
{
- register char *s1, *s2;
+ char *s1, *s2;
s1 = as1;
s2 = as2;
int DtMail::MailRc::getrawlist(char line[], char **argv, int argc)
{
- register char **ap, *cp, *cp2;
+ char **ap, *cp, *cp2;
char linebuf[LINESIZE], quotec;
- register char **last;
+ char **last;
ap = argv;
cp = line;
char *DtMail::MailRc::mt_value(char name[])
{
- register struct var *vp;
- register char *cp;
+ struct var *vp;
+ char *cp;
// extern char *getenv();
if ((vp = lookup(name, (struct var **)this->variables)) == (struct var *)NULL)
*/
struct var *DtMail::MailRc::lookup(char *name, struct var **hasharray)
{
- register struct var *vp;
- register int h;
+ struct var *vp;
+ int h;
h = hash(name);
for (vp = hasharray[h]; vp != (struct var *)NULL; vp = vp->v_link)
int DtMail::MailRc::set(char **arglist, DtMail::MailRc *)
{
- register char *cp, *cp2;
+ char *cp, *cp2;
char varbuf[LINESIZE], **ap;
int errs;
int DtMail::MailRc::unset(char **arglist, DtMail::MailRc *)
{
- register char **ap;
+ char **ap;
for (ap = arglist; *ap != NOSTR; ap++)
(void) MailRc::mt_deassign(*ap);
*/
int DtMail::MailRc::hash(char *name)
{
- register unsigned h;
- register char *cp;
+ unsigned h;
+ char *cp;
for (cp = name, h = 0; *cp; h = (h << 2) + *cp++)
;
int DtMail::MailRc::mt_deassign(char *s)
{
- register struct var *vp, *vp2;
- register int h;
+ struct var *vp, *vp2;
+ int h;
if ((vp2 = lookup(s, MailRc::variables)) == (struct var *)NULL) {
return (1);
*/
void DtMail::MailRc::mt_puthash(char *name, char *val, struct var **hasharray)
{
- register struct var *vp;
- register int h;
+ struct var *vp;
+ int h;
vp = lookup(name, hasharray);
if (vp == (struct var *)NULL) {
int size)
{
int index;
- register struct hash *h;
+ struct hash *h;
if (!table)
return;
void DtMail::MailRc::hm_delete(struct hash **table, char *key)
{
- register int index;
- register struct hash *h;
- register struct hash *old;
+ int index;
+ struct hash *h;
+ struct hash *old;
if (!table)
return;
void *DtMail::MailRc::hm_test(struct hash **table, char *key)
{
- register struct hash *h;
+ struct hash *h;
if (!table)
return (NULL);
void DtMail::MailRc::hm_mark(struct hash **table, char *key)
{
- register struct hash *h;
+ struct hash *h;
if (!table)
return;
int DtMail::MailRc::hm_ismarked(struct hash **table, char *key)
{
- register struct hash *h;
+ struct hash *h;
if (!table) return 0;
h = table[hash_index(key)];
int DtMail::MailRc::hash_index(char *key)
{
- register unsigned h;
- register char *s;
- register int c;
+ unsigned h;
+ char *s;
+ int c;
s = key;
h = 0;
char *xname = new char[LINESIZE];
char *cmdbuf = new char[LINESIZE];
char *str;
- register int pid, l;
- register char *cp, *Shell;
+ int pid, l;
+ char *cp, *Shell;
int s, pivec[2];
struct stat sbuf;
char *retchr = NULL;
int
DtMail::MailRc::ifcmd(char **arglist, DtMail::MailRc *self)
{
- register char *cp;
+ char *cp;
if (self->cond != CANY) {
fprintf(stderr,"Illegal nested \"if\"\n");
struct vmount **vmountpp) /* place to tell where buffer is */
{
size_t size;
- register struct vmount *vm;
+ struct vmount *vm;
int nmounts;
int count;
{
struct vmount *inu_vmount_p=NULL;
int inu_vmount_num;
- register struct vmount *vm;
+ struct vmount *vm;
int nmount;
/* make sure we have all the virtual mount status of this host */
extern "C"
int
-strcasecmp(register const char *s1,
- register const char *s2)
+strcasecmp(const char *s1,
+ const char *s2)
{
- register int c1, c2;
+ int c1, c2;
while (*s1 && *s2) {
c1 = isupper(*s1) ? tolower(*s1) : *s1;
extern "C"
int
-strncasecmp(register const char *s1,
- register const char *s2,
- register size_t count)
+strncasecmp(const char *s1,
+ const char *s2,
+ size_t count)
{
- register int c1, c2;
+ int c1, c2;
if (!count)
return 0;
int stringLen = strlen(string);
int nameLen = strlen(name);
int results = 0;
- register unsigned int offset;
+ unsigned int offset;
for (offset = 0; offset < stringLen - nameLen; offset++) {
if (strncasecmp(&string[offset], name, nameLen) == 0) {
int nameLen = strlen(name);
const char * results;
char * stringEnd;
- register unsigned int offset;
+ unsigned int offset;
for (offset = 0; offset < stringLen - nameLen; offset++) {
if (strncasecmp(&string[offset], name, nameLen) == 0) {
RFCMailBox::_assemblePartial(DtMailEnv & error,
RFCMessage * message)
{
- register unsigned int offset;
+ unsigned int offset;
unsigned int totalParts = 0;
RFCMessage * msg = message;
unsigned int duplicateCount;
int fromLen;
int headerNumber = 0;
- register unsigned int dupOffset;
+ unsigned int dupOffset;
if (error.isNotSet()) {
//
void
RFCTransport::arpaPhrase(const char * name, DtMailAddressSeq & tokens)
{
- register char c;
- register const char *cp;
+ char c;
+ const char *cp;
char *cp2;
char *nbufp;
char *bufend;