formatting

This commit is contained in:
Bradley Bell 2003-01-03 00:57:00 +00:00
parent 6fc3fdf613
commit b42787d07e
3 changed files with 8 additions and 7 deletions

View file

@ -1,4 +1,4 @@
/* $Id: interp.c,v 1.10 2003-01-02 23:31:50 btb Exp $ */
/* $Id: interp.c,v 1.11 2003-01-03 00:57:00 btb Exp $ */
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
@ -40,7 +40,7 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#endif
#ifdef RCS
static char rcsid[] = "$Id: interp.c,v 1.10 2003-01-02 23:31:50 btb Exp $";
static char rcsid[] = "$Id: interp.c,v 1.11 2003-01-03 00:57:00 btb Exp $";
#endif
#include <stdlib.h>
@ -106,6 +106,7 @@ void short_swap(short *s)
{
*s = SWAPSHORT(*s);
}
void fix_swap(fix *f)
{
*f = (fix)SWAPINT((int)*f);

View file

@ -17,10 +17,10 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#include "pstypes.h"
#define SWAPSHORT(x) (((ubyte)x << 8) | (((ushort)x) >> 8))
#define SWAPINT(x) ((x<<24) | (((uint)x) >> 24) | ((x &0x0000ff00) << 8) | ((x & 0x00ff0000) >> 8))
#define SWAPSHORT(x) (((ubyte)(x) << 8) | (((ushort)(x)) >> 8))
#define SWAPINT(x) (((x)<<24) | (((uint)(x)) >> 24) | (((x) &0x0000ff00) << 8) | (((x) & 0x00ff0000) >> 8))
#ifndef WORDS_BIGENDIAN //MACINTOSH
#ifndef WORDS_BIGENDIAN
#define INTEL_INT(x) x
#define INTEL_SHORT(x) x
#else

View file

@ -17,7 +17,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#endif
#ifdef RCS
static char rcsid[] = "$Id: gamemine.c,v 1.14 2002-12-31 23:20:09 btb Exp $";
static char rcsid[] = "$Id: gamemine.c,v 1.15 2003-01-03 00:57:00 btb Exp $";
#endif
#include <stdio.h>
@ -526,7 +526,7 @@ short convert_d1_tmap_num(short d1_tmap_num) {
short tmap_num = d1_tmap_num & TMAP_NUM_MASK;
short orient = d1_tmap_num & ~TMAP_NUM_MASK;
if (orient == 0) {
Warning("convert_d1_tmap_num doesn't know tmap #%d.", tmap_num);
Warning("convert_d1_tmap_num doesn't know tmap #%d.\n", tmap_num);
return d1_tmap_num;
} else {
return orient | convert_d1_tmap_num(tmap_num);