* which does the trick.
*/
static 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;
return NoError;
}
-static char *mk_ims_ent(register char *bp, int idx, ImsEnt *ent)
+static char *mk_ims_ent(char *bp, int idx, ImsEnt *ent)
{
ImsConf *ims = ent->ims;
char val[20];
static int parse_ims_list(char *ptr, ImsList *list)
{
- register char *bp = ptr;
+ char *bp = ptr;
char *np, *vp;
char *def_name;
int i, num_ent;
int set_window_data(int ac, char **av)
{
- register int i;
- register int nbytes;
- register char *buf, *bp;
+ int i;
+ int nbytes;
+ char *buf, *bp;
if (winEnv.atom_data == None || winEnv.atom_owner == None)
return ErrInternal;
/* ******** string manupilation ******** */
-char *strcpyx(register char *dest, register char *src)
+char *strcpyx(char *dest, char *src)
{
while (*dest++ = *src++) ;
return(--dest);
}
#ifdef unused
-char *strcpy2(register char *dest, register char *src1, register char *src2)
+char *strcpy2(char *dest, char *src1, char *src2)
{
while (*dest++ = *src1++) ;
--dest;
return(--dest);
}
-char *newstradded(register char *src1, register char *src2, register char *src3)
+char *newstradded(char *src1, char *src2, char *src3)
{
- register char *p;
+ char *p;
char *dest;
dest = p = ALLOC(strlen(src1) + strlen(src2) + strlen(src3) + 1, char);
char *trim_line(char *ptr)
{
- register char *lastp;
+ char *lastp;
skip_white(ptr);
for (lastp = ptr + strlen(ptr) - 1;
return ptr; /* return lastp > ptr ? ptr : NULL; */
}
-char **parse_strlist(register char *ptr, char sep_ch)
+char **parse_strlist(char *ptr, char sep_ch)
{
char *pbuf[100], **new, **bp;
char *sep, *p;
#ifdef unused
int pack_strlist(char *ptr, char **listp, char sep_ch)
{
- register char *bp = ptr, **lp = listp;
+ char *bp = ptr, **lp = listp;
/* if (!ptr) return 0; */
if (!lp || !*lp) {
void free_strlist(char **pp)
{
- register char **ptr = pp;
+ char **ptr = pp;
if (!ptr) return;
for ( ; *ptr; ptr++) FREE(*ptr);
char *dirname(char *path)
{
static char dname[MAXPATHLEN];
- register char *p = path;
+ char *p = path;
int dlen;
/* if (!p || !p[0]) return NULL; */
# ifdef old_hpux
LocaleAlias **ap;
# endif /* old_hpux */
- register char **p;
+ char **p;
fprintf(LogFp, "CmdConf:\n");
fprintf(LogFp, "\timsConfDir=%s\n", conf->imsConfDir);