Don't depend on the fact that variables default to int.
This commit is contained in:
parent
fe3cac87c1
commit
3bbeaf7f43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51035
@ -115,7 +115,7 @@ main(argc, argv)
|
||||
char **argv;
|
||||
{
|
||||
register FILE *ofp; /* output file */
|
||||
register rv; /* 1 if got card in output file, 0 otherwise */
|
||||
register int rv; /* 1 if got card in output file, 0 otherwise */
|
||||
register char *ptr;
|
||||
int nflag, /* 1 if got name of subprog., 0 otherwise */
|
||||
retval,
|
||||
|
@ -55,7 +55,7 @@ FILE *output; /* the output file */
|
||||
|
||||
#define CHECK_SIZE_CODE \
|
||||
if (e_code >= l_code) { \
|
||||
register nsize = l_code-s_code+400; \
|
||||
register int nsize = l_code-s_code+400; \
|
||||
codebuf = (char *) realloc(codebuf, nsize); \
|
||||
e_code = codebuf + (e_code-s_code) + 1; \
|
||||
l_code = codebuf + nsize - 5; \
|
||||
@ -63,7 +63,7 @@ FILE *output; /* the output file */
|
||||
}
|
||||
#define CHECK_SIZE_COM \
|
||||
if (e_com >= l_com) { \
|
||||
register nsize = l_com-s_com+400; \
|
||||
register int nsize = l_com-s_com+400; \
|
||||
combuf = (char *) realloc(combuf, nsize); \
|
||||
e_com = combuf + (e_com-s_com) + 1; \
|
||||
l_com = combuf + nsize - 5; \
|
||||
@ -71,7 +71,7 @@ FILE *output; /* the output file */
|
||||
}
|
||||
#define CHECK_SIZE_LAB \
|
||||
if (e_lab >= l_lab) { \
|
||||
register nsize = l_lab-s_lab+400; \
|
||||
register int nsize = l_lab-s_lab+400; \
|
||||
labbuf = (char *) realloc(labbuf, nsize); \
|
||||
e_lab = labbuf + (e_lab-s_lab) + 1; \
|
||||
l_lab = labbuf + nsize - 5; \
|
||||
@ -79,7 +79,7 @@ FILE *output; /* the output file */
|
||||
}
|
||||
#define CHECK_SIZE_TOKEN \
|
||||
if (e_token >= l_token) { \
|
||||
register nsize = l_token-s_token+400; \
|
||||
register int nsize = l_token-s_token+400; \
|
||||
tokenbuf = (char *) realloc(tokenbuf, nsize); \
|
||||
e_token = tokenbuf + (e_token-s_token) + 1; \
|
||||
l_token = tokenbuf + nsize - 5; \
|
||||
|
Loading…
Reference in New Issue
Block a user