Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 3401) +++ trunk/src/buffer.c (revision 3402) @@ -798,7 +798,7 @@ /* --------------------------------------------------------------------------- * rotates the contents of the pastebuffer */ -void RotateBuffer(BufferTypePtr Buffer, BYTE Number) +void RotateBuffer(BufferTypePtr Buffer, pcb_uint8_t Number) { /* rotate vias */ VIA_LOOP(Buffer->Data); @@ -1343,7 +1343,7 @@ case F_Rotate: if (sbufnum) { - RotateBuffer(PASTEBUFFER, (BYTE) atoi(sbufnum)); + RotateBuffer(PASTEBUFFER, (pcb_uint8_t) atoi(sbufnum)); SetCrosshairRangeToBuffer(); } break; Index: trunk/src/buffer.h =================================================================== --- trunk/src/buffer.h (revision 3401) +++ trunk/src/buffer.h (revision 3402) @@ -41,7 +41,7 @@ pcb_bool ConvertBufferToElement(BufferTypePtr); pcb_bool SmashBufferElement(BufferTypePtr); pcb_bool LoadLayoutToBuffer(BufferTypePtr Buffer, const char *Filename, const char *fmt); -void RotateBuffer(BufferTypePtr, BYTE); +void RotateBuffer(BufferTypePtr, pcb_uint8_t); void SelectPasteBuffer(int); void pcb_swap_buffers(void); void MirrorBuffer(BufferTypePtr); Index: trunk/src/create.c =================================================================== --- trunk/src/create.c (revision 3401) +++ trunk/src/create.c (revision 3402) @@ -622,7 +622,7 @@ FontTypePtr PCBFont, FlagType Flags, char *Description, char *NameOnPCB, char *Value, - Coord TextX, Coord TextY, BYTE Direction, int TextScale, FlagType TextFlags, pcb_bool uniqueName) + Coord TextX, Coord TextY, pcb_uint8_t Direction, int TextScale, FlagType TextFlags, pcb_bool uniqueName) { #ifdef DEBUG printf("Entered CreateNewElement.....\n"); Index: trunk/src/create.h =================================================================== --- trunk/src/create.h (revision 3401) +++ trunk/src/create.h (revision 3402) @@ -54,7 +54,7 @@ PointTypePtr CreateNewPointInPolygon(PolygonTypePtr, Coord, Coord); PolygonType *CreateNewHoleInPolygon(PolygonType * polygon); ElementTypePtr CreateNewElement(DataTypePtr, ElementTypePtr, - FontTypePtr, FlagType, char *, char *, char *, Coord, Coord, BYTE, int, FlagType, pcb_bool); + FontTypePtr, FlagType, char *, char *, char *, Coord, Coord, pcb_uint8_t, int, FlagType, pcb_bool); LineTypePtr CreateNewLineInElement(ElementTypePtr, Coord, Coord, Coord, Coord, Coord); ArcTypePtr CreateNewArcInElement(ElementTypePtr, Coord, Coord, Coord, Coord, Angle, Angle, Coord); PinTypePtr CreateNewPin(ElementTypePtr, Coord, Coord, Coord, Coord, Coord, Coord, char *, char *, FlagType); Index: trunk/src/global_objs.h =================================================================== --- trunk/src/global_objs.h (revision 3401) +++ trunk/src/global_objs.h (revision 3402) @@ -90,7 +90,7 @@ ANYOBJECTFIELDS; int Scale; /* text scaling in percent */ Coord X, Y; /* origin */ - BYTE Direction; + pcb_uint8_t Direction; char *TextString; /* string */ void *Element; gdl_elem_t link; /* a text is in a list of a layer or an element */ Index: trunk/src/global_typedefs.h =================================================================== --- trunk/src/global_typedefs.h (revision 3401) +++ trunk/src/global_typedefs.h (revision 3402) @@ -34,7 +34,7 @@ typedef struct rats_patch_line_s rats_patch_line_t; typedef unsigned int pcb_cardinal_t; -typedef unsigned char BYTE; +typedef unsigned char pcb_uint8_t; /* Don't use in new code. */ #include "pcb_bool.h" Index: trunk/src/rotate.c =================================================================== --- trunk/src/rotate.c (revision 3401) +++ trunk/src/rotate.c (revision 3402) @@ -118,7 +118,7 @@ */ void RotateTextLowLevel(TextTypePtr Text, Coord X, Coord Y, unsigned Number) { - BYTE number; + pcb_uint8_t number; number = TEST_FLAG(PCB_FLAG_ONSOLDER, Text) ? (4 - Number) & 3 : Number; RotateBoxLowLevel(&Text->BoundingBox, X, Y, Number); Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 3401) +++ trunk/src/undo.c (revision 3402) @@ -1159,7 +1159,7 @@ /* --------------------------------------------------------------------------- * adds an object to the list of rotated objects */ -void AddObjectToRotateUndoList(int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord CenterX, Coord CenterY, BYTE Steps) +void AddObjectToRotateUndoList(int Type, void *Ptr1, void *Ptr2, void *Ptr3, Coord CenterX, Coord CenterY, pcb_uint8_t Steps) { UndoListTypePtr undo; Index: trunk/src/undo.h =================================================================== --- trunk/src/undo.h (revision 3401) +++ trunk/src/undo.h (revision 3402) @@ -50,7 +50,7 @@ void AddObjectToMoveUndoList(int, void *, void *, void *, Coord, Coord); void AddObjectToChangeNameUndoList(int, void *, void *, void *, char *); void AddObjectToChangePinnumUndoList(int, void *, void *, void *, char *); -void AddObjectToRotateUndoList(int, void *, void *, void *, Coord, Coord, BYTE); +void AddObjectToRotateUndoList(int, void *, void *, void *, Coord, Coord, pcb_uint8_t); void AddObjectToCreateUndoList(int, void *, void *, void *); void AddObjectToMirrorUndoList(int, void *, void *, void *, Coord); void AddObjectToMoveToLayerUndoList(int, void *, void *, void *);