Changeset 09d1345 in buchla-68k for vlib/vmput.c


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlib/vmput.c

    r6a37d5b r09d1345  
    44        Version 3 -- 1987-03-30 -- D.N. Lynx Crowe
    55        (c) Copyright 1987 -- D.N. Lynx Crowe
    6 
    7         vmput(sbase, row, col, ms, ma)
    8         uint *sbase, rwo, col, ma;
    9         char *ms[];
    10 
    11                 Copies lines from ms, with attribute ma, to sbase at (row,col).
    12 
    13         vmputa(sbase, row, col, ms, ma)
    14         uint *sbase, row, col, *ma;
    15         char *ms[];
    16 
    17                 Copies lines from ms, with attributes from ma, to sbase at (row,col).
    186   =============================================================================
    197*/
     
    2311/*
    2412   =============================================================================
    25         vmput(sbase, row, col, ms, ma) -- put a menu item in a screen image.
    26         Copies lines from ms, with attribute ma, to sbase at (row,col).
     13        vmput(obase, row, col, ms, ma) -- put a menu item in a screen image.
     14        Copies lines from ms, with attribute ma, to obase at (row,col).
    2715   =============================================================================
    2816*/
    2917
    30 void vmput(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *ms[], uint16_t ma)
     18void vmput(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t ma)
    3119{
    32         register uint16_t c, tc, tr;
     20        register int16_t c, tc, tr;
    3321        int8_t *cp;
    3422
     
    4028
    4129                while (c = *cp++)
    42                         vputc(sbase, tr, tc++, c, ma);
     30                        vputc(obase, tr, tc++, c, ma);
    4331
    4432                tr++;
     
    4836/*
    4937   =============================================================================
    50         vmputa(sbase, row, col, ms, ma) -- put a menu item in a screen image.
    51         Copies lines from ms, with attributes from ma, to sbase at (row,col).
     38        vmputa(obase, row, col, ms, ma) -- put a menu item in a screen image.
     39        Copies lines from ms, with attributes from ma, to obase at (row,col).
    5240   =============================================================================
    5341*/
    5442
    55 void vmputa(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *ms[], uint16_t *ma[])
     43void vmputa(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t *ma[])
    5644{
    57         register uint16_t c, tc, tr;
     45        register int16_t c, tc, tr;
    5846        uint16_t *tm;
    5947        int8_t *cp;
     
    6755
    6856                while (c = *cp++)
    69                         vputc(sbase, tr, tc++, c, *tm++);
     57                        vputc(obase, tr, tc++, c, *tm++);
    7058
    7159                tr++;
Note: See TracChangeset for help on using the changeset viewer.