dtappbuilder: remove register keyword

This commit is contained in:
Jon Trulson
2018-06-27 16:08:50 -06:00
parent 3e81f467be
commit f4776c21d7
19 changed files with 73 additions and 73 deletions

View File

@@ -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;

View File

@@ -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++)
{

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;