Changeset 09d1345 in buchla-68k for include


Ignore:
Timestamp:
07/15/2017 10:03:02 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
bf89cfb
Parents:
6a37d5b
Message:

Prefer signed integers in vlib.

Location:
include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/midas.h

    r6a37d5b r09d1345  
    3131#define BIT2    V_RES2                  /* graphics - 2 bit pixels */
    3232#define BIT3    V_RES3                  /* graphics - 4 bit pixels */
    33 #define CHR2    0                       /* characters - no attributes */
     33#define CHR2    0u                      /* characters - no attributes */
    3434#define CHR3    (V_FAD | V_HCR)         /* characters - full attributes */
    3535
  • include/vsdd.h

    r6a37d5b r09d1345  
    1313#define VSDD    ((uint16_t *)0x200000)
    1414
    15 #define V_CHITE 12              /* Character height */
     15#define V_CHITE 12u             /* Character height */
    1616
    1717/* object descriptor flags */
    1818
    19 #define V_CBS   0x0800          /* 0 = Bit Map, 1 = Character */
    20 #define V_RES0  0x0000          /* Resolution 0: char 16, bit - */
    21 #define V_RES1  0x0200          /* Resolution 1: char  6, bit - */
    22 #define V_RES2  0x0400          /* Resolution 2: char  8, bit 2 */
    23 #define V_RES3  0x0600          /* Resolution 3: char 12, bit 4 */
    24 #define V_CRS   0x0100          /* Conceal/Reveal Select */
     19#define V_CBS   0x0800u         /* 0 = Bit Map, 1 = Character */
     20#define V_RES0  0x0000u         /* Resolution 0: char 16, bit - */
     21#define V_RES1  0x0200u         /* Resolution 1: char  6, bit - */
     22#define V_RES2  0x0400u         /* Resolution 2: char  8, bit 2 */
     23#define V_RES3  0x0600u         /* Resolution 3: char 12, bit 4 */
     24#define V_CRS   0x0100u         /* Conceal/Reveal Select */
    2525
    26 #define V_PSE   0x0080          /* Proportional space enable */
    27 #define V_FAD   0x0040          /* Full attributes select */
    28 #define V_OBL   0x0020          /* Object blink */
    29 #define V_BLA   0x0010          /* Object blank */
     26#define V_PSE   0x0080u         /* Proportional space enable */
     27#define V_FAD   0x0040u         /* Full attributes select */
     28#define V_OBL   0x0020u         /* Object blink */
     29#define V_BLA   0x0010u         /* Object blank */
    3030
    31 #define V_HCR   0x0008          /* High color resolution */
    32 #define V_TDE   0x0004          /* Transparency detect enable */
    33 #define V_DCS0  0x0000          /* Default color select 0 */
    34 #define V_DCS1  0x0001          /* Default color select 1 */
    35 #define V_DCS2  0x0002          /* Default color select 2 */
    36 #define V_DCS3  0x0003          /* Default color select 3 */
     31#define V_HCR   0x0008u         /* High color resolution */
     32#define V_TDE   0x0004u         /* Transparency detect enable */
     33#define V_DCS0  0x0000u         /* Default color select 0 */
     34#define V_DCS1  0x0001u         /* Default color select 1 */
     35#define V_DCS2  0x0002u         /* Default color select 2 */
     36#define V_DCS3  0x0003u         /* Default color select 3 */
    3737
    3838/* Preset flags for bitmap and character objects */
    3939
    40 #define V_BTYPE 0
     40#define V_BTYPE 0u
    4141#define V_CTYPE (V_CBS | V_RES2 | ((V_CHITE - 1) << 12))
    4242
    4343/* character attribute flags */
    4444
    45 #define C_ALTCS 0x8000
    46 #define C_TFGND 0x4000
    47 #define C_TBGND 0x2000
    48 #define C_WIDE  0x1000
     45#define C_ALTCS 0x8000u
     46#define C_TFGND 0x4000u
     47#define C_TBGND 0x2000u
     48#define C_WIDE  0x1000u
    4949
    50 #define C_MASK  0x0800
    51 #define C_INVRT 0x0400
    52 #define C_BLINK 0x0200
    53 #define C_ULINE 0x0100
     50#define C_MASK  0x0800u
     51#define C_INVRT 0x0400u
     52#define C_BLINK 0x0200u
     53#define C_ULINE 0x0100u
    5454
    5555struct octent {                 /* Object control table entry */
Note: See TracChangeset for help on using the changeset viewer.