Widget selWidget;
Dimension width = 0;
Dimension height = 0;
- register int x0,y0,x1,y1;
+ int x0,y0,x1,y1;
int border_w;
Display *display;
Drawable drawable;
if (when_label_list == NULL)
{
- register int i;
+ int i;
when_label_list = (STRING *)XtMalloc(
sizeof(STRING) * ((int)AB_WHEN_NUM_VALUES - 1));
if (stdact_label_list == NULL)
{
- register int i;
+ int i;
stdact_label_list = (STRING *)XtMalloc(
sizeof(STRING) * ((int)AB_BUILTIN_ACTION_NUM_VALUES - 1));
ABObj action_obj
)
{
- register int i;
+ int i;
long si;
static char conn_string[BUFSIZ];
char buf[BUFSIZ];
int ab_subtype
)
{
- register long i;
+ long i;
if (connP_objtype_needs_subtype(ab_type, ab_subtype))
{
int obj_subtype
)
{
- register int i;
+ int i;
for (i = 0; i < ConnP_num_conn_objs; i++)
{
for (trav_open(&trav, project, AB_TRAV_ACTIONS);
(obj = trav_next(&trav)) != NULL; )
{
- register XmString xm_item_str;
+ XmString xm_item_str;
if (is_action_type(obj, ConnP_view_filter))
{
Widget label_wid = XmOptionButtonGadget(when_menu);
XmString xm_when_label = (XmString)NULL;
char *when_label = NULL;
- register int i;
+ int i;
XtVaGetValues(label_wid, XmNlabelString, &xm_when_label, NULL);
if (xm_when_label != NULL) {
Widget label_wid = XmOptionButtonGadget(action_menu);
XmString xm_act_label = (XmString)NULL;
char *act_label = NULL;
- register int i;
+ int i;
XtVaGetValues(label_wid, XmNlabelString, &xm_act_label, NULL);
if (xm_act_label != NULL) {
AB_WHEN new_when
)
{
- register int i;
+ int i;
for (i = 0; i < ConnP_num_conn_whens; i++)
{
AB_BUILTIN_ACTION new_act
)
{
- register int i;
+ int i;
for (i = 0; i < ConnP_num_conn_acts; i++)
if (new_act == ConnP_conn_acts[i].act_type)
Widget label_wid = XmOptionButtonGadget(action_type_opmenu);
XmString xm_act_label = (XmString)NULL;
char *act_label = NULL;
- register int i;
+ int i;
AB_FUNC_TYPE func_type = AB_FUNC_UNDEF;
XtVaGetValues(label_wid, XmNlabelString, &xm_act_label, NULL);
* 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;
int put_x
)
{
- register int i, j, k, pix;
+ int i, j, k, pix;
Pixel background;
Pixel foreground;
Pixel bshadow, tshadow;
if (that->is_generated && that->msgs != (Msg *)NULL)
{
- register int i;
+ int i;
for (i = 0; i < that->num_msgs; i++)
msg_destroy(that->msgs[i]);
)
{
int ret_val = -1;
- register int i;
+ int i;
if (that == NULL || string == (char *)NULL)
goto cret;
BOOL msg_is_referenced
)
{
- register int i;
+ int i;
if (that == (MsgSet)NULL)
goto cret;
if (that->msg_sets != (MsgSet *)NULL)
{
- register int i;
+ int i;
for (i = 0; i < that->num_msg_sets; i++)
MsgSet_destroy(that->msg_sets[i]);
{
int ret_val = 0;
FILE *fp = NULL;
- register int i;
+ int i;
*msgFileOutPtr = NULL;
)
{
MsgSet ret_val = (MsgSet)NULL;
- register int i;
+ int i;
if (that == (MsgFile)NULL)
goto cret;
)
{
MsgSet ret_val = (MsgSet)NULL;
- register int i;
+ int i;
if (that == NULL)
goto cret;
)
{
int ret_val = 0;
- register int i;
+ int i;
if (that == NULL)
goto cret;
)
{
char *set_name;
- register int i;
+ int i;
if (that == (MsgSet)NULL)
goto cret;
)
{
int ret_val = 0;
- register int i;
+ int i;
if (that == NULL)
goto cret;
int return_value = 0;
int num_includes = 0;
BOOL objHasScrollbar = FALSE;
- register IncludeForClass include = class_includes;
+ IncludeForClass include = class_includes;
/*
* Get optional widget parts
AB_OBJECT_TYPE ab_type = obj_get_type(obj);
unsigned long obj_mask = BMASK(ab_type);
AttrMap *maps = match->attr_maps;
- register int i;
+ int i;
/* REMIND: fprintf(stderr,"Searching matched maps\n"); */
for (i = 0; i < match->num_maps; i++)
if (b_type > sym_k_error_object)
{
- register int i;
+ int i;
STRING widget_class_name = uil_widget_names[b_type];
for (i = 0; i < XtNumber(widget_abobj_map); i++)
bilP_string_to_token(STRING strToken)
{
ISTRING istrToken = istr_create(strToken);
- register long midDiff;
- register long midIndex;
+ long midDiff;
+ long midIndex;
long minIndex, maxIndex;
bil_token_table_check_init();
static int
get_token(FILE *file)
{
- register int c; /* static for speed */
+ int c; /* static for speed */
while (TRUE)
{
ABTypedArg
obj_get_typed_arg(ABObj obj, char *name)
{
- register int num_args;
- register int i;
- register ABTypedArg arg_list= NULL;
+ int num_args;
+ int i;
+ ABTypedArg arg_list= NULL;
ABTypedArg arg= NULL;
ISTRING iname= istr_get_existing(name);
ABArg
obj_get_arg(ABObj obj, char *name)
{
- register int num_args;
- register int i;
- register ABArg arg_list;
+ int num_args;
+ int i;
+ ABArg arg_list;
ABArg arg= NULL;
ISTRING iname= istr_get_existing(name);
int
obj_remove_arg(ABObj obj, STRING name)
{
- register int i;
- register ABArgList args;
- register int nargs;
+ int i;
+ ABArgList args;
+ int nargs;
ISTRING iname= istr_get_existing(name);
if ((obj == NULL) || (obj->args == NULL) )
int
obj_get_num_args(ABObj obj)
{
- register ABArgList args= obj->args;
- register int n = 0;
+ ABArgList args= obj->args;
+ int n = 0;
for ( ; (args != (ABArgList)NULL) && (args->name != NULL);
args++, n++)
int
obj_get_num_typed_args(ABObj obj)
{
- register ABTypedArg args = obj->typed_args;
- register int n = 0;
+ ABTypedArg args = obj->typed_args;
+ int n = 0;
for ( ; (args != NULL) && (args->name != NULL); args++, n++)
{
static char name[MAXPATHLEN];
static int ith = 0;
int lastchar = -1;
- register char *oldPtr = label;
- register char *newPtr = name;
+ char *oldPtr = label;
+ char *newPtr = name;
if (isdigit(*oldPtr))
{
static BOOL
travP_qualifies(ABTraversal trav)
{
- register ABObj curObj = trav->curObj;
- register BOOL qualifies= TRUE;
+ ABObj curObj = trav->curObj;
+ BOOL qualifies= TRUE;
if (obj_has_impl_flags(curObj, ObjFlagDestroyed))
{
char *name
)
{
- register int num_args;
- register int i;
+ int num_args;
+ int i;
Arg *argptr = NULL;
num_args = objxm_get_num_args(arglist);
ArgList arglist
)
{
- register ArgList args = arglist;
- register int n = 0;
+ ArgList args = arglist;
+ int n = 0;
for ( ; (args != (ArgList)NULL) && (args->name != NULL);
args++, n++)
STRING name
)
{
- register int i;
- register ArgList args;
- register int nargs;
+ int i;
+ ArgList args;
+ int nargs;
if (*p_arglist == NULL)
{
static ObjxmRes *
find_res_entry_by_xmname(ISTRING istr_xmname)
{
- register int midDiff;
- register int midIndex;
- register int minIndex, maxIndex;
- register ObjxmRes *entry;
+ int midDiff;
+ int midIndex;
+ int minIndex, maxIndex;
+ ObjxmRes *entry;
/*
* Perform binary search for ISTRING value
int
abio_put_string_to_file(FILE * outFile, STRING string)
{
- register STRING ptr;
+ STRING ptr;
char strEndChar = *(abio_string_end_string());
char curChar = 0;
int new_indent_level
)
{
- register int i;
+ int i;
int indent_length = 0;
out_file = out_file; /* avoid warning */
abio_put_string_to_buffer(STRING string, STRING outBuf, int size)
{
#define INC 32
- register STRING ptr;
+ STRING ptr;
char strEndChar = *(abio_string_end_string());
char curChar = 0;
int i = 0;
static void
expand_path(char *nm, char *buf)
{
- register char *s, *d;
+ char *s, *d;
char lnm[MAXPATHLEN];
int q;
- register char *trimchars = "\n \t";
+ char *trimchars = "\n \t";
/* Strip off leading & trailing whitespace and cr */
while (strchr(trimchars, *nm) != NULL)
break;
}
else if (*s++ == '$') {
- register char *start = d;
- register braces = *s == '{';
- register char *value;
+ char *start = d;
+ char braces = *s == '{';
+ char *value;
while (*d++ = *s)
if (braces ? *s == '}' : !isalnum(*s))
break;
}
else
{ /* ~user/filename */
- register char *nnm;
- register struct passwd *pw;
+ char *nnm;
+ struct passwd *pw;
for (s = nm; *s && *s != '/'; s++);
nnm = *s ? s + 1 : s;
*s = 0;
STRING string
)
{
- register unsigned hash_val = 0;
+ unsigned hash_val = 0;
for (hash_val = 0; *string; ++string)
hash_val = hash_val * 65599 + *string;
{
#define fast_streq(s1,s2) (((s1)[0] == (s2)[0]) && (strcmp(s1,s2) == 0))
- register unsigned hash_val = 0;
- register char *stringPtr;
+ unsigned hash_val = 0;
+ char *stringPtr;
Bucket entry;
int *valuePtr;
int *valuePtrEnd;