Delinted a bit
This commit is contained in:
parent
7853446daf
commit
c955dc1374
5 changed files with 9 additions and 7 deletions
|
@ -36,7 +36,6 @@ struct type *toktype,
|
||||||
*asidetype;
|
*asidetype;
|
||||||
|
|
||||||
static int eofseen;
|
static int eofseen;
|
||||||
extern int in_compound;
|
|
||||||
|
|
||||||
int tokenseen = 0; /* Some comment-options must precede any program text */
|
int tokenseen = 0; /* Some comment-options must precede any program text */
|
||||||
|
|
||||||
|
|
|
@ -403,7 +403,8 @@ ChkBinOper(expp)
|
||||||
left = expp->nd_left;
|
left = expp->nd_left;
|
||||||
right = expp->nd_right;
|
right = expp->nd_right;
|
||||||
|
|
||||||
retval = ChkExpression(left) & ChkExpression(right);
|
retval = ChkExpression(left);
|
||||||
|
retval &= ChkExpression(right);
|
||||||
|
|
||||||
MarkUsed(left);
|
MarkUsed(left);
|
||||||
MarkUsed(right);
|
MarkUsed(right);
|
||||||
|
|
|
@ -157,7 +157,7 @@ CodeValue(ds, tp)
|
||||||
in "ds"
|
in "ds"
|
||||||
*/
|
*/
|
||||||
arith size = ds->dsg_packed ? tp->tp_psize : tp->tp_size;
|
arith size = ds->dsg_packed ? tp->tp_psize : tp->tp_size;
|
||||||
int align = ds->dsg_packed ? tp->tp_palign : tp->tp_align;
|
int algn = ds->dsg_packed ? tp->tp_palign : tp->tp_align;
|
||||||
|
|
||||||
switch( ds->dsg_kind ) {
|
switch( ds->dsg_kind ) {
|
||||||
case DSG_LOADED:
|
case DSG_LOADED:
|
||||||
|
@ -182,7 +182,7 @@ CodeValue(ds, tp)
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
case DSG_PLOADED:
|
case DSG_PLOADED:
|
||||||
case DSG_PFIXED:
|
case DSG_PFIXED:
|
||||||
if( properly(ds, size, align) ) {
|
if( properly(ds, size, algn) ) {
|
||||||
CodeAddress(ds);
|
CodeAddress(ds);
|
||||||
C_loi(size);
|
C_loi(size);
|
||||||
break;
|
break;
|
||||||
|
@ -217,7 +217,7 @@ CodeStore(ds, tp)
|
||||||
*/
|
*/
|
||||||
struct desig save;
|
struct desig save;
|
||||||
arith size = ds->dsg_packed ? tp->tp_psize : tp->tp_size;
|
arith size = ds->dsg_packed ? tp->tp_psize : tp->tp_size;
|
||||||
int align = ds->dsg_packed ? tp->tp_palign : tp->tp_align;
|
int algn = ds->dsg_packed ? tp->tp_palign : tp->tp_align;
|
||||||
|
|
||||||
save = *ds;
|
save = *ds;
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ CodeStore(ds, tp)
|
||||||
case DSG_PLOADED:
|
case DSG_PLOADED:
|
||||||
case DSG_PFIXED:
|
case DSG_PFIXED:
|
||||||
CodeAddress(&save);
|
CodeAddress(&save);
|
||||||
if( properly(ds, size, align) ) {
|
if( properly(ds, size, algn) ) {
|
||||||
C_sti(size);
|
C_sti(size);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
/* DEBUG */
|
/* DEBUG */
|
||||||
#include "idf.h"
|
#include "idf.h"
|
||||||
|
|
||||||
|
extern char *sprint();
|
||||||
|
|
||||||
ChkRead(arg)
|
ChkRead(arg)
|
||||||
register struct node *arg;
|
register struct node *arg;
|
||||||
{
|
{
|
||||||
|
|
|
@ -514,7 +514,7 @@ chk_forw_types()
|
||||||
if( df->df_kind == D_FORWTYPE ) {
|
if( df->df_kind == D_FORWTYPE ) {
|
||||||
/* forward type not in this scope declared */
|
/* forward type not in this scope declared */
|
||||||
register struct scopelist *scl = nextvisible(CurrVis);
|
register struct scopelist *scl = nextvisible(CurrVis);
|
||||||
struct def *df1;
|
struct def *df1 = 0;
|
||||||
|
|
||||||
while( scl ) {
|
while( scl ) {
|
||||||
/* look in enclosing scopes */
|
/* look in enclosing scopes */
|
||||||
|
|
Loading…
Reference in a new issue