1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

util/dbtoman/instant: remove register keyword

This commit is contained in:
Jon Trulson 2018-06-27 13:14:11 -06:00
parent 4aa9392e98
commit b2a4d3c202
2 changed files with 62 additions and 62 deletions

View file

@ -897,8 +897,8 @@ void
TblTStart(Element_t * ep, TblTStart(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register char * cp; char * cp;
register struct Element_t * ep2; struct Element_t * ep2;
@ -928,7 +928,7 @@ void
TblTEnd(Element_t * ep, TblTEnd(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register struct tblformat * ffp, * ffp2; struct tblformat * ffp, * ffp2;
if ( tblBOFTCount > 31 ) { if ( tblBOFTCount > 31 ) {
@ -971,11 +971,11 @@ void
TblTGroup(Element_t * ep, TblTGroup(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register int i, j, k; int i, j, k;
register char * cp, * cp2; char * cp, * cp2;
register Element_t * ep2, ep3; Element_t * ep2, ep3;
register struct tblcolspec * tcsp, * tcsp2; struct tblcolspec * tcsp, * tcsp2;
register struct tblspanspec * tssp, * tssp2; struct tblspanspec * tssp, * tssp2;
tblColSpec = 0; /* make sure they're clear */ tblColSpec = 0; /* make sure they're clear */
@ -1116,8 +1116,8 @@ void
TblTGroupEnd(Element_t * ep, TblTGroupEnd(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register struct tblcolspec * tcsp, * tcsp2; struct tblcolspec * tcsp, * tcsp2;
register struct tblspanspec * tssp, * tssp2; struct tblspanspec * tssp, * tssp2;
for ( tcsp=tblColSpec; tcsp; tcsp=tcsp2 ) { for ( tcsp=tblColSpec; tcsp; tcsp=tcsp2 ) {
@ -1147,7 +1147,7 @@ void
TblTFoot(Element_t * ep, TblTFoot(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register struct tblformat * ffp, * ffp2; struct tblformat * ffp, * ffp2;
static struct tblformat * tfp, * tfp2; static struct tblformat * tfp, * tfp2;
@ -1184,9 +1184,9 @@ TblBuildFormat(Element_t * ep, /* parent of rows.. */
* building */ * building */
tblsource source) /* type of record */ tblsource source) /* type of record */
{ {
register int i; int i;
register struct tblformat * lfp; /* "current" format */ struct tblformat * lfp; /* "current" format */
register struct tblformat * nfp; /* the next format */ struct tblformat * nfp; /* the next format */
for ( lfp= *fp; lfp && lfp->next; lfp=lfp->next ) for ( lfp= *fp; lfp && lfp->next; lfp=lfp->next )
@ -1225,11 +1225,11 @@ TblBuild1Format(Element_t * rp, /* the row to deal with */
bool addinRowsep, /* insert rowsep into model? */ bool addinRowsep, /* insert rowsep into model? */
tblsource source) /* type type of row */ tblsource source) /* type type of row */
{ {
register int i; int i;
register bool allProp; bool allProp;
float totalProp; float totalProp;
register struct tblformat * tfp; struct tblformat * tfp;
register Element_t * ep; /* entry pointer */ Element_t * ep; /* entry pointer */
Calloc(1, tfp, struct tblformat); Calloc(1, tfp, struct tblformat);
@ -1279,9 +1279,9 @@ TblGetAlign(short col, /* column number */
Element_t * entry, /* the entry */ Element_t * entry, /* the entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
register tblalign talign; tblalign talign;
if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) { if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) {
@ -1316,8 +1316,8 @@ TblGetWidth(short col, /* column number */
bool literal, /* literal (or proportional) */ bool literal, /* literal (or proportional) */
tblsource source) /* context */ tblsource source) /* context */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
static char colWidth[10]; static char colWidth[10];
@ -1350,8 +1350,8 @@ TblGetFont(short col, /* column number */
Element_t * entry, /* the entry */ Element_t * entry, /* the entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
return ""; return "";
@ -1367,9 +1367,9 @@ TblGetColSep(short col, /* column number */
Element_t * entry, /* the entry */ Element_t * entry, /* the entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
register bool colsep; bool colsep;
if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) { if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) {
@ -1395,9 +1395,9 @@ TblGetRowSep(short col, /* column number */
Element_t * entry, /* the entry */ Element_t * entry, /* the entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
register bool rowsep; bool rowsep;
if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) { if ( entry && (tssp = TblEntrySpanSpec(col, entry, source)) ) {
rowsep = tssp->rowsep; rowsep = tssp->rowsep;
@ -1423,7 +1423,7 @@ TblGetMoreRows(short col, /* column number */
Element_t * entry, /* the entry */ Element_t * entry, /* the entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register char * cp; char * cp;
if ( cp = FindAttValByName(entry, "MOREROWS") ) if ( cp = FindAttValByName(entry, "MOREROWS") )
@ -1443,8 +1443,8 @@ TblColAdv(short col, /* the current column */
struct tblformat * tfp, /* pointer to prevailing format */ struct tblformat * tfp, /* pointer to prevailing format */
tblsource source) /* context */ tblsource source) /* context */
{ {
register bool bump; bool bump;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
bump = TRUE; bump = TRUE;
@ -1467,10 +1467,10 @@ TblEntryColSpec(short num, /* column number */
Element_t * ep, /* entry */ Element_t * ep, /* entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register int i; int i;
register bool throwAway; bool throwAway;
register char * cp; char * cp;
register struct tblcolspec * tcsp, * tcsp2; struct tblcolspec * tcsp, * tcsp2;
tcsp = tcsp2 = 0; tcsp = tcsp2 = 0;
@ -1505,8 +1505,8 @@ TblEntrySpanSpec(short num, /* column number */
Element_t * ep, /* entry */ Element_t * ep, /* entry */
tblsource source) /* context */ tblsource source) /* context */
{ {
register char * cp, * cp2; char * cp, * cp2;
register struct tblspanspec * tssp, * tssp2; struct tblspanspec * tssp, * tssp2;
tssp2 = 0; tssp2 = 0;
@ -1537,7 +1537,7 @@ bool
TblFormatMatch(struct tblformat * tf1, /* one row */ TblFormatMatch(struct tblformat * tf1, /* one row */
struct tblformat * tf2) /* the other */ struct tblformat * tf2) /* the other */
{ {
register int i; int i;
if ( tf1->cols != tf2->cols ) { if ( tf1->cols != tf2->cols ) {
return FALSE; return FALSE;
@ -1577,8 +1577,8 @@ void
TblPrintFormat(FILE * fP, /* where to print */ TblPrintFormat(FILE * fP, /* where to print */
struct tblformat * tfp) /* the structure */ struct tblformat * tfp) /* the structure */
{ {
register int i; int i;
register struct tblformat * tfp2, * tfp3; struct tblformat * tfp2, * tfp3;
static char buf[3] = "\000\000"; static char buf[3] = "\000\000";
@ -1645,10 +1645,10 @@ void
TblTRowEnd(Element_t * ep, TblTRowEnd(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register int i, k; int i, k;
register tblsource source; tblsource source;
register bool startedRow, didSep; bool startedRow, didSep;
register struct tblformat * rfp; struct tblformat * rfp;
OutputString("^", fP, 1); OutputString("^", fP, 1);
@ -1706,9 +1706,9 @@ void
TblTCellStart(Element_t * ep, TblTCellStart(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register int i; int i;
register Element_t * ep2; Element_t * ep2;
register bool sawPIorPara; bool sawPIorPara;
for ( i=0, sawPIorPara=FALSE; i < ep->ncont; i++ ) { for ( i=0, sawPIorPara=FALSE; i < ep->ncont; i++ ) {
@ -1738,8 +1738,8 @@ TblTCellStart(Element_t * ep,
int int
TblCountContent(Element_t * ep) /* the element to look under */ TblCountContent(Element_t * ep) /* the element to look under */
{ {
register int i, count; int i, count;
register char * cp; char * cp;
count = 0; count = 0;
@ -1773,7 +1773,7 @@ void
TblTCellEnd(Element_t * ep, TblTCellEnd(Element_t * ep,
FILE * fP) FILE * fP)
{ {
register Element_t * ep2; Element_t * ep2;
if ( tblinBOFT ) { if ( tblinBOFT ) {
@ -1804,8 +1804,8 @@ TblDoColSpec(short number, /* this column number */
struct tblcolspec * pcsp, /* prevailing colspec (with defaults) */ struct tblcolspec * pcsp, /* prevailing colspec (with defaults) */
tblsource source) /* precedence level of the resulting spec */ tblsource source) /* precedence level of the resulting spec */
{ {
register char * cp; char * cp;
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
Calloc(1, tcsp, struct tblcolspec); Calloc(1, tcsp, struct tblcolspec);
@ -1867,9 +1867,9 @@ TblDoSpanSpec(Element_t * ep, /* element containing spanspec stuff */
struct tblspanspec * pssp, /* prevailing spanspec (with defaults) */ struct tblspanspec * pssp, /* prevailing spanspec (with defaults) */
tblsource source) /* precedence level of the resulting spec */ tblsource source) /* precedence level of the resulting spec */
{ {
register char * cp; char * cp;
register struct tblspanspec * tssp; struct tblspanspec * tssp;
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
Calloc(1, tssp, struct tblspanspec); Calloc(1, tssp, struct tblspanspec);
@ -1955,7 +1955,7 @@ struct tblcolspec *
TblFindColSpec(char * name, /* the name we're looking for */ TblFindColSpec(char * name, /* the name we're looking for */
tblsource source) /* the context in which to find it */ tblsource source) /* the context in which to find it */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
/* first, try to find the one in the right "source" */ /* first, try to find the one in the right "source" */
@ -1987,7 +1987,7 @@ struct tblcolspec *
TblFindColNum(short number, /* the number we're looking for */ TblFindColNum(short number, /* the number we're looking for */
tblsource source) /* the context in which to find it */ tblsource source) /* the context in which to find it */
{ {
register struct tblcolspec * tcsp; struct tblcolspec * tcsp;
@ -2022,7 +2022,7 @@ struct tblspanspec *
TblFindSpanSpec(char * name, /* the name we're looking for */ TblFindSpanSpec(char * name, /* the name we're looking for */
tblsource source) /* the context in which to find it */ tblsource source) /* the context in which to find it */
{ {
register struct tblspanspec * tssp; struct tblspanspec * tssp;
/* first, try to find the one in the right "source" */ /* first, try to find the one in the right "source" */

View file

@ -211,7 +211,7 @@ ExpandVariables(
Element_t *e Element_t *e
) )
{ {
register int i, j, k; int i, j, k;
char *ip, *vp, *op; char *ip, *vp, *op;
char *def_val, *s, *atval, *modifier; char *def_val, *s, *atval, *modifier;
char vbuf[500]; char vbuf[500];