Clean up duplicate #includes
[kugel-rb.git] / apps / plugins / zxbox / tapef_p.h
blobc677e092032b0cd5353485f2bdf89cca35b2baa8
1 /*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef TAPEF_P_H
22 #define TAPEF_P_H
24 typedef unsigned char byte;
25 typedef unsigned short dbyte;
26 typedef unsigned long qbyte;
28 #define BYTE(arr, i) (arr[i])
29 #define DBYTE(arr, i) (arr[i] + (arr[(i)+1] << 8))
31 struct tapeinfo {
32 int type;
33 int tzxminver, tzxmajver;
36 struct seginfo {
37 int type;
38 int segtype;
40 dbyte pulse;
41 dbyte num;
42 dbyte sync1p;
43 dbyte sync2p;
44 dbyte zerop;
45 dbyte onep;
47 dbyte pause;
49 byte bused;
51 long len;
52 long ptr;
55 extern struct tapeinfo tf_tpi;
56 extern struct seginfo tf_cseg;
57 extern long tf_segoffs;
59 extern byte *tf_get_block(int i);
61 #endif /* TAPEF_P_H */