mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtappbuilder: remove register keyword
This commit is contained in:
parent
3e81f467be
commit
f4776c21d7
19 changed files with 73 additions and 73 deletions
|
@ -506,7 +506,7 @@ draw_select_feedback(
|
|||
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;
|
||||
|
|
|
@ -720,7 +720,7 @@ connP_get_when_labels(
|
|||
|
||||
if (when_label_list == NULL)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
when_label_list = (STRING *)XtMalloc(
|
||||
sizeof(STRING) * ((int)AB_WHEN_NUM_VALUES - 1));
|
||||
|
@ -741,7 +741,7 @@ connP_get_act_labels(
|
|||
|
||||
if (stdact_label_list == NULL)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
stdact_label_list = (STRING *)XtMalloc(
|
||||
sizeof(STRING) * ((int)AB_BUILTIN_ACTION_NUM_VALUES - 1));
|
||||
|
@ -923,7 +923,7 @@ connP_make_conn_string(
|
|||
ABObj action_obj
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
long si;
|
||||
static char conn_string[BUFSIZ];
|
||||
char buf[BUFSIZ];
|
||||
|
@ -1045,7 +1045,7 @@ connP_get_obj_type_index(
|
|||
int ab_subtype
|
||||
)
|
||||
{
|
||||
register long i;
|
||||
long i;
|
||||
|
||||
if (connP_objtype_needs_subtype(ab_type, ab_subtype))
|
||||
{
|
||||
|
@ -1268,7 +1268,7 @@ connP_objtype_needs_subtype(
|
|||
int obj_subtype
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ConnP_num_conn_objs; i++)
|
||||
{
|
||||
|
|
|
@ -800,7 +800,7 @@ populate_connection_list(
|
|||
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))
|
||||
{
|
||||
|
@ -1353,7 +1353,7 @@ get_cur_when(
|
|||
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) {
|
||||
|
@ -1382,7 +1382,7 @@ get_cur_act(
|
|||
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) {
|
||||
|
@ -1408,7 +1408,7 @@ set_cur_when(
|
|||
AB_WHEN new_when
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ConnP_num_conn_whens; i++)
|
||||
{
|
||||
|
@ -1430,7 +1430,7 @@ set_cur_act(
|
|||
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)
|
||||
|
@ -3872,7 +3872,7 @@ get_cur_func_type(void)
|
|||
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);
|
||||
|
|
|
@ -88,10 +88,10 @@ static PalEditableObjInfo *pal_ed_obj_head = 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;
|
||||
|
|
|
@ -786,7 +786,7 @@ image_copy(
|
|||
int put_x
|
||||
)
|
||||
{
|
||||
register int i, j, k, pix;
|
||||
int i, j, k, pix;
|
||||
Pixel background;
|
||||
Pixel foreground;
|
||||
Pixel bshadow, tshadow;
|
||||
|
|
|
@ -204,7 +204,7 @@ MsgSet_destroy(
|
|||
|
||||
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]);
|
||||
|
@ -257,7 +257,7 @@ MsgSet_just_find_msg(
|
|||
)
|
||||
{
|
||||
int ret_val = -1;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == NULL || string == (char *)NULL)
|
||||
goto cret;
|
||||
|
@ -317,7 +317,7 @@ MsgSet_set_msg_is_referenced(
|
|||
BOOL msg_is_referenced
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == (MsgSet)NULL)
|
||||
goto cret;
|
||||
|
@ -413,7 +413,7 @@ MsgFile_destroy(
|
|||
|
||||
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]);
|
||||
|
@ -439,7 +439,7 @@ MsgFile_save(
|
|||
{
|
||||
int ret_val = 0;
|
||||
FILE *fp = NULL;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
*msgFileOutPtr = NULL;
|
||||
|
||||
|
@ -547,7 +547,7 @@ MsgFile_just_find_msg_set(
|
|||
)
|
||||
{
|
||||
MsgSet ret_val = (MsgSet)NULL;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == (MsgFile)NULL)
|
||||
goto cret;
|
||||
|
@ -725,7 +725,7 @@ msgFile_get_msg_set_by_num(
|
|||
)
|
||||
{
|
||||
MsgSet ret_val = (MsgSet)NULL;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == NULL)
|
||||
goto cret;
|
||||
|
@ -794,7 +794,7 @@ msgFile_max_set_number(
|
|||
)
|
||||
{
|
||||
int ret_val = 0;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == NULL)
|
||||
goto cret;
|
||||
|
@ -904,7 +904,7 @@ msgSet_output(
|
|||
)
|
||||
{
|
||||
char *set_name;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == (MsgSet)NULL)
|
||||
goto cret;
|
||||
|
@ -1001,7 +1001,7 @@ msgSet_max_msg_number(
|
|||
)
|
||||
{
|
||||
int ret_val = 0;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (that == NULL)
|
||||
goto cret;
|
||||
|
|
|
@ -270,7 +270,7 @@ abmfP_obj_get_widget_specific_includes(StringList includesList, ABObj obj)
|
|||
int return_value = 0;
|
||||
int num_includes = 0;
|
||||
BOOL objHasScrollbar = FALSE;
|
||||
register IncludeForClass include = class_includes;
|
||||
IncludeForClass include = class_includes;
|
||||
|
||||
/*
|
||||
* Get optional widget parts
|
||||
|
|
|
@ -3168,7 +3168,7 @@ abuilP_store_attr_in_abobj(
|
|||
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++)
|
||||
|
|
|
@ -278,7 +278,7 @@ abuilP_entry_for_uil_widget(
|
|||
|
||||
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++)
|
||||
|
|
|
@ -1720,8 +1720,8 @@ BIL_TOKEN
|
|||
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();
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ AByylex(void)
|
|||
static int
|
||||
get_token(FILE *file)
|
||||
{
|
||||
register int c; /* static for speed */
|
||||
int c; /* static for speed */
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
|
|
|
@ -215,9 +215,9 @@ obj_set_typed_arg_if_new(
|
|||
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);
|
||||
|
||||
|
@ -246,9 +246,9 @@ obj_get_typed_arg(ABObj obj, char *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);
|
||||
|
||||
|
@ -324,9 +324,9 @@ MergeTypedArgLists(ABTypedArg args1, int num_args1,
|
|||
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) )
|
||||
|
@ -412,8 +412,8 @@ abo_merge_typed_args(ABObj obj, ABTypedArg arg)
|
|||
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++)
|
||||
|
@ -429,8 +429,8 @@ obj_get_num_args(ABObj obj)
|
|||
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++)
|
||||
{
|
||||
|
|
|
@ -644,8 +644,8 @@ ab_make_valid_c_ident(STRING label)
|
|||
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))
|
||||
{
|
||||
|
|
|
@ -478,8 +478,8 @@ find_first_ancestor_sibling_child(ABObj obj, ABTraversal trav)
|
|||
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))
|
||||
{
|
||||
|
|
|
@ -268,8 +268,8 @@ objxm_get_arg(
|
|||
char *name
|
||||
)
|
||||
{
|
||||
register int num_args;
|
||||
register int i;
|
||||
int num_args;
|
||||
int i;
|
||||
Arg *argptr = NULL;
|
||||
|
||||
num_args = objxm_get_num_args(arglist);
|
||||
|
@ -422,8 +422,8 @@ objxm_get_num_args(
|
|||
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++)
|
||||
|
@ -441,9 +441,9 @@ objxm_remove_arg(
|
|||
STRING name
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
register ArgList args;
|
||||
register int nargs;
|
||||
int i;
|
||||
ArgList args;
|
||||
int nargs;
|
||||
|
||||
if (*p_arglist == NULL)
|
||||
{
|
||||
|
|
|
@ -1098,10 +1098,10 @@ build_xm_res_table_xmname_index(void)
|
|||
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
|
||||
|
|
|
@ -1859,7 +1859,7 @@ abio_put_string(FILE * outFile, STRING s)
|
|||
int
|
||||
abio_put_string_to_file(FILE * outFile, STRING string)
|
||||
{
|
||||
register STRING ptr;
|
||||
STRING ptr;
|
||||
char strEndChar = *(abio_string_end_string());
|
||||
char curChar = 0;
|
||||
|
||||
|
@ -1971,7 +1971,7 @@ abioP_build_indent_string(
|
|||
int new_indent_level
|
||||
)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
int indent_length = 0;
|
||||
out_file = out_file; /* avoid warning */
|
||||
|
||||
|
@ -2426,7 +2426,7 @@ int
|
|||
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;
|
||||
|
|
|
@ -275,10 +275,10 @@ util_file_name_is_bil_encapsulated(
|
|||
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)
|
||||
|
@ -303,9 +303,9 @@ expand_path(char *nm, char *buf)
|
|||
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;
|
||||
|
@ -336,8 +336,8 @@ expand_path(char *nm, char *buf)
|
|||
}
|
||||
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;
|
||||
|
|
|
@ -861,7 +861,7 @@ hashing(
|
|||
STRING string
|
||||
)
|
||||
{
|
||||
register unsigned hash_val = 0;
|
||||
unsigned hash_val = 0;
|
||||
|
||||
for (hash_val = 0; *string; ++string)
|
||||
hash_val = hash_val * 65599 + *string;
|
||||
|
@ -881,8 +881,8 @@ hash_and_lookupstr(
|
|||
{
|
||||
#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;
|
||||
|
|
Loading…
Reference in a new issue