X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=listing.h;h=75be73d9d8b7a760a30492915a23e6252e8096c1;hp=329ea9373d32636aa896c2f412049c43fa646a4c;hb=05d0350b35a6a6b255cb2a3fab7796f5d4ee4d02;hpb=d28f432296e812643e236d1bfc9b556a7b11c461 diff --git a/listing.h b/listing.h index 329ea93..75be73d 100644 --- a/listing.h +++ b/listing.h @@ -1,9 +1,10 @@ -//////////////////////////////////////////////////////////////////////////////////////////////////// -// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System +// +// RMAC - Reboot's Macro Assembler for all Atari computers // LISTING.H - Listing Output -// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2017 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 -// Source Utilised with the Kind Permission of Landon Dyer +// Source utilised with the kind permission of Landon Dyer +// #ifndef __LISTING_H__ #define __LISTING_H__ @@ -11,34 +12,37 @@ #include #include "rmac.h" -#define BOT_MAR 1 // #blank lines on bottom of page -#define IMAGESIZ 200 // Max size of a line of text -#define TITLESIZ 200 // Max size of a title -#define LN_COL 0 // Column for line numbers -#define LOC_COL 7 // Location ptr -#define DATA_COL 17 // Data start (for 20 chars, usually 16) -#define DATA_END (DATA_COL+20) // End+1th data column -#define TAG_COL 38 // Tag character -#define SRC_COL 40 // Source start +#define BOT_MAR 1 // #blank lines on bottom of page +#define IMAGESIZ 1024 // Max size of a line of text +#define TITLESIZ 1024 // Max size of a title +#define LN_COL 0 // Column for line numbers +#define LOC_COL 7 // Location ptr +#define DATA_COL 17 // Data start (for 20 chars, usually 16) +#define DATA_END (DATA_COL+20) // End+1th data column +#define TAG_COL 38 // Tag character +#define SRC_COL 40 // Source start -// Globals, externals etc -extern char *list_fname; +// Exported variables +extern char * list_fname; extern int listing; extern int pagelen; extern int nlines; extern LONG lsloc; +extern uint8_t subttl[]; -// Prototypes -void init_list(void); -void ship_ln(char *); -void taglist(char); -void println(char *); -void listeol(void); +// Exported functions +int eject(void); VALUE dos_date(void); VALUE dos_time(void); +void taglist(char); +void println(const char *); +void ship_ln(const char *); +void InitListing(void); +void listeol(void); void lstout(char); int listvalue(VALUE); int d_subttl(void); int d_title(void); -#endif // __LISTING_H__ \ No newline at end of file +#endif // __LISTING_H__ +