init_calendar(int argc, char **argv)
{
int start, stop;
- register int i;
- register char *s_ptr, *d_ptr;
+ int i;
+ char *s_ptr, *d_ptr;
Props *p;
Tick today;
char bind_home[MAXPATHLEN];
print_day_range(Calendar *c, Tick start_tick, Tick end_tick)
{
int n;
- register Tick first_date = start_tick;
+ Tick first_date = start_tick;
Boolean done = False, first = True;
int num_page = 1;
Props *pr = (Props*)c->properties;
int hr, mn, len, i = 0, j = 0;
Tick tick;
struct tm *tm;
- register char *what_ptr;
+ char *what_ptr;
_Xltimeparams localtime_buf;
if (!appt || !b)
print_month_range(Calendar *c, Tick start_tick, Tick end_tick)
{
Props *p = (Props *)c->properties;
- register Tick end, first_date = start_tick;
+ Tick end, first_date = start_tick;
int n;
Boolean done = False, first = True;
int num_page = 1;
static char **
arpaPhrase(const char * name)
{
- register char c;
- register const char *cp;
+ char c;
+ const char *cp;
char * cp2;
int gotlt, lastsp, didq;
int nesting;
{
Props *p = (Props *)c->properties;
- register Tick first_date = start_tick;
+ Tick first_date = start_tick;
int num_weeks;
Boolean done = False, first = True;
int num_page = 1;
Calendar *c,
Boundary *boundary)
{
- register int x, y;
- register int n;
+ int x, y;
+ int n;
Week *w = (Week *)c->view->week_info;
/* allocate weekview storage if it's never been used before */
draw_week(Calendar *c, XRectangle *rect, Boundary boundary)
{
Week *w = (Week *)c->view->week_info;
- register int current_day;
- register int n;
- register int x, y;
+ int current_day;
+ int n;
+ int x, y;
int char_height;
int start_date;
char **day_names;
{
CSA_return_code stat;
Dtcm_appointment *appt;
- register int lower = (int)lowerbound(day);
- register int upper = (int)next_ndays(day, 1);
- register int i, loop, n;
- register int nlines = 0;
+ int lower = (int)lowerbound(day);
+ int upper = (int)next_ndays(day, 1);
+ int i, loop, n;
+ int nlines = 0;
XFontSetExtents fontextents;
int char_width;
int char_height;
}
static void
-draw_chart(Calendar *c, register Week *w, XRectangle *rect)
+draw_chart(Calendar *c, Week *w, XRectangle *rect)
{
- register int x, y;
+ int x, y;
int n;
XFontSetExtents fontextents;
int char_height;
**
*******************************************************************************/
static void
-copy_and_pad_newlines(register char *dest, register char *source) {
+copy_and_pad_newlines(char *dest, char *source) {
while (*source)
if ((*dest++ = *source++) == '\n')
*dest++ = '\t';
}
static int
-count_newlines(register char *string) {
+count_newlines(char *string) {
int count = 0;
if (string == NULL)
void
cat_indented_string(char **catbuf, char *string)
{
- register char *p_str = string;
+ char *p_str = string;
int nl_count = 0;
char *buf;
- register char *b_ptr;
+ char *b_ptr;
nl_count = count_newlines(string);
extern boolean_t
valid_time(Props *p, char *time_str) {
char *ptr;
- register int num_minutes = 0, num_colons = 0;
+ int num_minutes = 0, num_colons = 0;
boolean_t after_colon = B_FALSE;
DisplayType dt = get_int_prop(p, CP_DEFAULTDISP);
int dayflag)
{
time_t tod, jdate;
- register int i;
+ int i;
if (yy < 0) yy = -yy;
time_t dayconv(int ord, int day, time_t now)
{
- register struct tm *loctime;
+ struct tm *loctime;
time_t tod;
tod = now;
return daylcorr(tod, now);
}
-time_t timeconv(register int hh, int mm, int ss, int mer)
+time_t timeconv(int hh, int mm, int ss, int mer)
{
if (mm < 0 || mm > 59 || ss < 0 || ss > 59) return (DATE_BMIN);
switch (mer) {
#define getid for(j=idvar, k=id; (*j++ = *k++); )
char idvar[20];
- register char *j, *k;
- register struct table *i;
+ char *j, *k;
+ struct table *i;
int abbrev;
getid;
{
extern int yylval;
int sign;
- register char c;
- register char *p;
+ char c;
+ char *p;
char idbuf[20];
int pcnt;
*--------------------------------------------------------------------------*/
extern char *
-cm_strcpy(register char *s1, register char *s2)
+cm_strcpy(char *s1, char *s2)
{
if (s1==NULL || s2==NULL) return(NULL);
strcpy(s1, s2);
}
extern int
-cm_strlen(register char *s)
+cm_strlen(char *s)
{
- register int n;
+ int n;
if (s==NULL) return 0;
return (strlen(s));
extern char *
ckalloc(unsigned int size)
{
- register char *p;
+ char *p;
/* try to get the memory */
p = (char *)calloc(1, size);
Tag_4 externTag;
Privacy_Level_4 externPrivacy;
-static int hash_string P((register char *));
+static int hash_string P((char *));
static char *strescapes P((char *));
static int len;
}
while(1) {
- register u_char * ptr = parse_buffer;
- register u_char c;
+ u_char * ptr = parse_buffer;
+ u_char c;
switch(initial_mask[ *ptr = input_char()]) {
case ALPHA:
{
- register int bucket;
- register token_data_t * t;
+ int bucket;
+ token_data_t * t;
while(initial_mask[*(++ptr)=input_char()] == ALPHA)
;
static int
-hash_string(register char *s)
+hash_string(char *s)
{
- register unsigned result = 0;
- register int sum;
+ unsigned result = 0;
+ int sum;
while(sum = *s++)
result = (result << 4) + sum;
static char *
strescapes(char *s)
{
- register char * in=s, * out=s;
+ char * in=s, * out=s;
while(*in)
{
break;
case '0': /* a octal constant */
{
- register int i,result;
+ int i,result;
in++;
for(result=i=0; (i<=3) && (*in >='0') && (*in <= '7') ; )
{
hc_lookup_node (Hc_list *hc_list, caddr_t key)
{
Private *private;
- register List_node *p_node;
- register _DtCmsComparisonResult result;
+ List_node *p_node;
+ _DtCmsComparisonResult result;
p_node = hc_list->root;
private = (Private *) hc_list->private;
hc_size (Hc_list *hc_list)
{
int n = 0;
- register List_node *p_node;
+ List_node *p_node;
p_node = hc_list->root;
while (p_node != NULL)
}
extern Rb_Status
-hc_insert_node (Hc_list *hc_list, register List_node *p_node, caddr_t key)
+hc_insert_node (Hc_list *hc_list, List_node *p_node, caddr_t key)
{
Private *private;
- register List_node *p_curr;
+ List_node *p_curr;
if (hc_list == NULL)
return (rb_notable);
extern List_node *
hc_delete (Hc_list *hc_list, caddr_t key)
{
- register List_node *p_node;
- register Private *private;
+ List_node *p_node;
+ Private *private;
p_node = hc_list->root;
private = (Private *) hc_list->private;
extern caddr_t
hc_lookup_next_larger (Hc_list *hc_list, caddr_t key)
{
- register List_node *p_node;
- register Private *private;
+ List_node *p_node;
+ Private *private;
p_node = hc_list->root;
private = (Private *) hc_list->private;
extern caddr_t
hc_lookup_largest (Hc_list *hc_list)
{
- register List_node *p_node;
+ List_node *p_node;
if ((hc_list == NULL) || (hc_list->root == NULL))
return (NULL);
extern caddr_t
hc_lookup_next_smaller (Hc_list *hc_list, caddr_t key)
{
- register List_node *p_node;
- register Private *private;
+ List_node *p_node;
+ Private *private;
p_node = hc_list->root;
private = (Private *) hc_list->private;
extern void
hc_enumerate_down(Hc_list *hc_list, _DtCmsEnumerateProc doit)
{
- register List_node *p_node;
+ List_node *p_node;
p_node = hc_list->root;
while (p_node != NULL)
extern Rb_Status
hc_enumerate_up(Hc_list *hc_list, _DtCmsEnumerateProc doit)
{
- register List_node *p_node;
+ List_node *p_node;
p_node = hc_list->root;
while (p_node != NULL)
}
static void
-program(struct svc_req *rqstp, register SVCXPRT *transp)
+program(struct svc_req *rqstp, SVCXPRT *transp)
{
char *result;
char *argument = NULL;