]> Shamusworld >> Repos - rmac/blob - listing.h
Fix for bug #67 (thanks to ggn for reporting!).
[rmac] / listing.h
1 //
2 // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
3 // LISTING.H - Listing Output
4 // Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends
5 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
6 // Source utilised with the kind permission of Landon Dyer
7 //
8
9 #ifndef __LISTING_H__
10 #define __LISTING_H__
11
12 #include <time.h>
13 #include "rmac.h"
14
15 #define BOT_MAR         1                               // #blank lines on bottom of page
16 #define IMAGESIZ        200                             // Max size of a line of text
17 #define TITLESIZ        200                             // Max size of a title
18 #define LN_COL          0                               // Column for line numbers
19 #define LOC_COL         7                               // Location ptr
20 #define DATA_COL        17                              // Data start (for 20 chars, usually 16)
21 #define DATA_END        (DATA_COL+20)   // End+1th data column
22 #define TAG_COL         38                              // Tag character
23 #define SRC_COL         40                              // Source start
24
25 // Globals, externals etc
26 extern char * list_fname;
27 extern int listing;
28 extern int pagelen;
29 extern int nlines;
30 extern LONG lsloc;
31
32 // Prototypes
33 void InitListing(void);
34 void ship_ln(const char *);
35 void taglist(char);
36 void println(const char *);
37 void listeol(void);
38 VALUE dos_date(void);
39 VALUE dos_time(void);
40 void lstout(char);
41 int listvalue(VALUE);
42 int d_subttl(void);
43 int d_title(void);
44
45 #endif // __LISTING_H__