Changeset 7258c6a in buchla-68k for ram/ctcpos.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/ctcpos.c

    r0292fbb r7258c6a  
    1515#include "midas.h"
    1616
    17 short   ctcsw;                          /* text cursor status */
     17int16_t ctcsw;                          /* text cursor status */
    1818
    19 extern  short   CurLine;                /* current patch display line */
    20 extern  short   cxval, cyval;           /* patch text cursor x, y */
    21 extern  short   stcrow, stccol;         /* patch text cursor row,col */
    22 extern  short   vtcrow, vtccol;         /* menu text cursor row,col */
     19extern  int16_t CurLine;                /* current patch display line */
     20extern  int16_t cxval, cyval;           /* patch text cursor x, y */
     21extern  int16_t stcrow, stccol;         /* patch text cursor row,col */
     22extern  int16_t vtcrow, vtccol;         /* menu text cursor row,col */
    2323
    24 extern  unsigned        *obj9;          /* patch cursor object pointer */
    25 extern  unsigned        *obj11;         /* menu cursor object pointer */
     24extern  uint16_t        *obj9;          /* patch cursor object pointer */
     25extern  uint16_t        *obj11;         /* menu cursor object pointer */
    2626
    27 short   mtcoldc;                        /* previous cursor column location */
    28 short   mtcoldr;                        /* previous cursor row location */
     27int16_t mtcoldc;                        /* previous cursor column location */
     28int16_t mtcoldr;                        /* previous cursor row location */
    2929
    3030/*
     
    3838*/
    3939
    40 void ctcpos(short row, short col)
     40void ctcpos(int16_t row, int16_t col)
    4141{
    42         register short nrow;
     42        register int16_t nrow;
    4343
    4444        if (ctcsw) {
     
    109109*/
    110110
    111 void mtcpos(short row, short col)
     111void mtcpos(int16_t row, int16_t col)
    112112{
    113113        if (v_regs[5] & 0x0180)                 /* point at the control bank */
Note: See TracChangeset for help on using the changeset viewer.