From c44d91f9d14f1e5f51f9c251e2c0ae747f57eb3d Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 17 May 2002 17:21:47 +0000 Subject: [PATCH] rename 'or' variable (now keyword) --- panda/src/pnmimagetypes/resolu.c | 24 ++++++++++++------------ panda/src/pnmimagetypes/resolu.h | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/panda/src/pnmimagetypes/resolu.c b/panda/src/pnmimagetypes/resolu.c index 12137d2b32..42b91a751a 100644 --- a/panda/src/pnmimagetypes/resolu.c +++ b/panda/src/pnmimagetypes/resolu.c @@ -36,7 +36,7 @@ fputresolu(int ord, int sl, int ns, FILE *fp) /* put out picture dimen { RESOLU rs; - if ((rs.or = ord) & YMAJOR) { + if ((rs.orient = ord) & YMAJOR) { rs.xr = sl; rs.yr = ns; } else { @@ -54,28 +54,28 @@ fgetresolu(int *sl, int *ns, FILE *fp) /* get picture dimension if (!fgetsresolu(&rs, fp)) return(-1); - if (rs.or & YMAJOR) { + if (rs.orient & YMAJOR) { *sl = rs.xr; *ns = rs.yr; } else { *sl = rs.yr; *ns = rs.xr; } - return(rs.or); + return(rs.orient); } char * resolu2str(char *buf, register RESOLU *rp) /* convert resolution struct to line */ { - if (rp->or&YMAJOR) + if (rp->orient&YMAJOR) sprintf(buf, "%cY %d %cX %d\n", - rp->or&YDECR ? '-' : '+', rp->yr, - rp->or&XDECR ? '-' : '+', rp->xr); + rp->orient&YDECR ? '-' : '+', rp->yr, + rp->orient&XDECR ? '-' : '+', rp->xr); else sprintf(buf, "%cX %d %cY %d\n", - rp->or&XDECR ? '-' : '+', rp->xr, - rp->or&YDECR ? '-' : '+', rp->yr); + rp->orient&XDECR ? '-' : '+', rp->xr, + rp->orient&YDECR ? '-' : '+', rp->yr); return(buf); } @@ -95,10 +95,10 @@ int str2resolu(register RESOLU *rp, char *buf) /* convert resolution li yndx = cp; if (xndx == NULL || yndx == NULL) return(0); - rp->or = 0; - if (xndx > yndx) rp->or |= YMAJOR; - if (xndx[-1] == '-') rp->or |= XDECR; - if (yndx[-1] == '-') rp->or |= YDECR; + rp->orient = 0; + if (xndx > yndx) rp->orient |= YMAJOR; + if (xndx[-1] == '-') rp->orient |= XDECR; + if (yndx[-1] == '-') rp->orient |= YDECR; if ((rp->xr = atoi(xndx+1)) <= 0) return(0); if ((rp->yr = atoi(yndx+1)) <= 0) diff --git a/panda/src/pnmimagetypes/resolu.h b/panda/src/pnmimagetypes/resolu.h index 1321f3e11d..a39a634452 100644 --- a/panda/src/pnmimagetypes/resolu.h +++ b/panda/src/pnmimagetypes/resolu.h @@ -42,7 +42,7 @@ /* structure for image dimensions */ typedef struct { - int or; /* orientation (from flags above) */ + int orient; /* orientation (from flags above) */ int xr, yr; /* x and y resolution */ } RESOLU;