~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/fcntl/cpc/readbyte.c

  • Committer: Bazaar Package Importer
  • Author(s): Krystian Wlosek, Krystian Wlosek
  • Date: 2008-03-25 11:46:11 UTC
  • mfrom: (1.1.2 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080325114611-u89smn2ccknl8avt
Tags: 1.8.ds1-2
[ Krystian Wlosek ]
* Enable 64bit architecture.
* Added '-m32' switch to CFLAGS and LDFLAGS for 64bit machines.
* Changed Architecture: to `any' in z88dk and z88dk-bin package.
* Added gcc-multilib to Build-Depends: for 64bit
* Fixed problem with x11.lib
  - created symlink from include/x11 to include/X11
  - improved Makefile for x11.lib
    patch debian/patches/03_libsrc_graphics_x11_Makefile.diff
* Fixed library ozansi.lib
  - patch debian/patches/03_libsrc_oz_ozinput_Makefile.diff
* Changed Copyright notice.
* Fixed gcc warnings:
  - in src/appmake dir - debian/patches/04_src_appmake.diff
  - in src/zcc/zcc.c - debian/patches/04_src_zcc_zcc.c.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *
6
6
 *
7
7
 * -----
8
 
 * $Id: readbyte.c,v 1.1 2003/09/12 16:30:43 dom Exp $
 
8
 * $Id: readbyte.c,v 1.2 2007/07/21 21:28:22 dom Exp $
9
9
 */
10
10
 
11
11
 
20
20
                return EOF;
21
21
#asm
22
22
        INCLUDE "#cpcfirm.def"
23
 
        call    cas_in_char
 
23
    call    firmware
 
24
        defw    cas_in_char
24
25
        ccf
25
 
        ld      l,a
26
 
        ld      h,0
27
 
        jr      nc,read_ok
28
 
        ld      hl,EOF
 
26
        ld          l,a
 
27
        ld      h,0
 
28
        jr          nc,read_ok
 
29
        ld          hl,EOF
29
30
.read_ok        ; Need this label since this function is __FASTCALL__
30
31
#endasm
31
32
}