home *** CD-ROM | disk | FTP | other *** search
-
- * Maxon C++ Projekt:
- * Library-Modul "ungetchar"
- * Jens Gelhar 18.09.91
-
- xdef _ungetc,ungetc__iP06stream
-
- str_ungetch = 4
- str_ungetbuf = 5
-
- _ungetc:
- ungetc__iP06stream:
- move.l a0,-(a7)
- movem.l 8(a7),d0/a0
- tst.b str_ungetch(a0) ; Flag: Char gepuffert?
- bne.b err
- move.b d0,str_ungetbuf(a0)
- move.b #1,str_ungetch(a0)
- move.l (a7)+,a0
- rts
- err move.l (a7)+,a0
- moveq #-1,d0
- rts
-
- end
-