From f0a6172d3fa3cf2c1b370e85fa135dbdfa0c7a56 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 27 Jun 2018 17:30:51 -0600 Subject: [PATCH] dtpad: remove register keyword --- cde/programs/dtpad/dtpad.c | 4 ++-- cde/programs/dtpad/fileDlg.c | 12 ++++++------ cde/programs/dtpad/main.c | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cde/programs/dtpad/dtpad.c b/cde/programs/dtpad/dtpad.c index 85b825ee..ab16cb2b 100644 --- a/cde/programs/dtpad/dtpad.c +++ b/cde/programs/dtpad/dtpad.c @@ -965,7 +965,7 @@ CreateEditorWidget( { Widget parent = pPad->mainWindow; Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ Pixel background, foreground, top_shadow, bottom_shadow, selectColor; Colormap colormap; XmString dialogTitleStr = XmStringCreateLocalized(DialogTitle(pPad)); @@ -1017,7 +1017,7 @@ FindOrCreatePad( Boolean foundPad = False; Editor *pPad; Arg al[10]; - register int ac; + int ac; /* -----> Reuse unused entries (corresponding to closed editor windows) * before creating new ones. */ diff --git a/cde/programs/dtpad/fileDlg.c b/cde/programs/dtpad/fileDlg.c index 9ae12254..3ee3619a 100644 --- a/cde/programs/dtpad/fileDlg.c +++ b/cde/programs/dtpad/fileDlg.c @@ -182,7 +182,7 @@ SetSaveAsDirAndFile(Editor *pPad) int firstSelect = -1, lastSelect = -1; Widget textField; Arg args[5]; - register int n; + int n; XmString dirString; dirbuf[0] = (char) '\0'; @@ -263,7 +263,7 @@ CreateNewLineToggles( ToggleWidgets *pToggleWidgets) { Arg args[20]; - register int n; + int n; XmString label_string; /* -----> Create Radio Box */ @@ -321,7 +321,7 @@ void CreateSaveAsDialog(Editor *pPad) { Arg args[20]; - register int n; + int n; XmString label_string; char buf[256]; SaveAs *pSaveAs = &pPad->fileStuff.fileWidgets.saveAs; @@ -563,7 +563,7 @@ CreateFileSelectionDialog( Editor *pPad ) { Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ XmString tmpStr; Select *pSelect = &pPad->fileStuff.fileWidgets.select; @@ -618,7 +618,7 @@ CreateSaveWarning( Editor *pPad ) { Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ char buf[256]; Widget w, kid[5]; Pixel foreground, background; @@ -901,7 +901,7 @@ AskIfSave( Editor *pPad) { Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ char *tmp = NULL; XmString tmpStr; Select *pSelect = &pPad->fileStuff.fileWidgets.select; diff --git a/cde/programs/dtpad/main.c b/cde/programs/dtpad/main.c index ca0619a1..83679c08 100644 --- a/cde/programs/dtpad/main.c +++ b/cde/programs/dtpad/main.c @@ -512,7 +512,7 @@ CreateFirstPad( char **argv_l, **c_argv_l; Editor *pPad; Arg al[10]; - register int ac; + int ac; Widget foo; int i; /* Added for the argument fix*/ @@ -1007,7 +1007,7 @@ RealizeNewPad( Editor *pPad) { Arg al[5]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ /* Create the title */ pPad->dialogTitle = DialogTitle(pPad); @@ -1232,7 +1232,7 @@ GetAdjustedResizeHints( XSizeHints *pHints) { Arg al[2]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ Dimension MBheight; /* get Dt Editor widget size hints */ @@ -1357,7 +1357,7 @@ SetWindowSize( Editor *pPad) { Arg al[10]; /* arg list */ - register int ac; /* arg count */ + int ac; /* arg count */ XSizeHints size_hints; XWMHints *wmhints; long supplied_return; -- 2.25.1