dtpad: remove register keyword

This commit is contained in:
Jon Trulson
2018-06-27 17:30:51 -06:00
parent d0a4f777d8
commit f0a6172d3f
3 changed files with 12 additions and 12 deletions

View File

@@ -965,7 +965,7 @@ CreateEditorWidget(
{ {
Widget parent = pPad->mainWindow; Widget parent = pPad->mainWindow;
Arg al[10]; /* arg list */ Arg al[10]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
Pixel background, foreground, top_shadow, bottom_shadow, selectColor; Pixel background, foreground, top_shadow, bottom_shadow, selectColor;
Colormap colormap; Colormap colormap;
XmString dialogTitleStr = XmStringCreateLocalized(DialogTitle(pPad)); XmString dialogTitleStr = XmStringCreateLocalized(DialogTitle(pPad));
@@ -1017,7 +1017,7 @@ FindOrCreatePad(
Boolean foundPad = False; Boolean foundPad = False;
Editor *pPad; Editor *pPad;
Arg al[10]; Arg al[10];
register int ac; int ac;
/* -----> Reuse unused entries (corresponding to closed editor windows) /* -----> Reuse unused entries (corresponding to closed editor windows)
* before creating new ones. */ * before creating new ones. */

View File

@@ -182,7 +182,7 @@ SetSaveAsDirAndFile(Editor *pPad)
int firstSelect = -1, lastSelect = -1; int firstSelect = -1, lastSelect = -1;
Widget textField; Widget textField;
Arg args[5]; Arg args[5];
register int n; int n;
XmString dirString; XmString dirString;
dirbuf[0] = (char) '\0'; dirbuf[0] = (char) '\0';
@@ -263,7 +263,7 @@ CreateNewLineToggles(
ToggleWidgets *pToggleWidgets) ToggleWidgets *pToggleWidgets)
{ {
Arg args[20]; Arg args[20];
register int n; int n;
XmString label_string; XmString label_string;
/* -----> Create Radio Box */ /* -----> Create Radio Box */
@@ -321,7 +321,7 @@ void
CreateSaveAsDialog(Editor *pPad) CreateSaveAsDialog(Editor *pPad)
{ {
Arg args[20]; Arg args[20];
register int n; int n;
XmString label_string; XmString label_string;
char buf[256]; char buf[256];
SaveAs *pSaveAs = &pPad->fileStuff.fileWidgets.saveAs; SaveAs *pSaveAs = &pPad->fileStuff.fileWidgets.saveAs;
@@ -563,7 +563,7 @@ CreateFileSelectionDialog(
Editor *pPad ) Editor *pPad )
{ {
Arg al[10]; /* arg list */ Arg al[10]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
XmString tmpStr; XmString tmpStr;
Select *pSelect = &pPad->fileStuff.fileWidgets.select; Select *pSelect = &pPad->fileStuff.fileWidgets.select;
@@ -618,7 +618,7 @@ CreateSaveWarning(
Editor *pPad ) Editor *pPad )
{ {
Arg al[10]; /* arg list */ Arg al[10]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
char buf[256]; char buf[256];
Widget w, kid[5]; Widget w, kid[5];
Pixel foreground, background; Pixel foreground, background;
@@ -901,7 +901,7 @@ AskIfSave(
Editor *pPad) Editor *pPad)
{ {
Arg al[10]; /* arg list */ Arg al[10]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
char *tmp = NULL; char *tmp = NULL;
XmString tmpStr; XmString tmpStr;
Select *pSelect = &pPad->fileStuff.fileWidgets.select; Select *pSelect = &pPad->fileStuff.fileWidgets.select;

View File

@@ -512,7 +512,7 @@ CreateFirstPad(
char **argv_l, **c_argv_l; char **argv_l, **c_argv_l;
Editor *pPad; Editor *pPad;
Arg al[10]; Arg al[10];
register int ac; int ac;
Widget foo; Widget foo;
int i; int i;
/* Added for the argument fix*/ /* Added for the argument fix*/
@@ -1007,7 +1007,7 @@ RealizeNewPad(
Editor *pPad) Editor *pPad)
{ {
Arg al[5]; /* arg list */ Arg al[5]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
/* Create the title */ /* Create the title */
pPad->dialogTitle = DialogTitle(pPad); pPad->dialogTitle = DialogTitle(pPad);
@@ -1232,7 +1232,7 @@ GetAdjustedResizeHints(
XSizeHints *pHints) XSizeHints *pHints)
{ {
Arg al[2]; /* arg list */ Arg al[2]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
Dimension MBheight; Dimension MBheight;
/* get Dt Editor widget size hints */ /* get Dt Editor widget size hints */
@@ -1357,7 +1357,7 @@ SetWindowSize(
Editor *pPad) Editor *pPad)
{ {
Arg al[10]; /* arg list */ Arg al[10]; /* arg list */
register int ac; /* arg count */ int ac; /* arg count */
XSizeHints size_hints; XSizeHints size_hints;
XWMHints *wmhints; XWMHints *wmhints;
long supplied_return; long supplied_return;