diff options
author | B. Watson <urchlay@slackware.uk> | 2024-06-17 20:59:44 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-06-17 20:59:44 -0400 |
commit | a7ee96f24543d6382f09a51418391b9b8a957fda (patch) | |
tree | 8b6dd3e776165bacbb6c3825366bee9c26478cef /linetab.h | |
parent | 51436978dd762b0f7ed9ccca60802665bcab3514 (diff) | |
download | bw-atari8-tools-a7ee96f24543d6382f09a51418391b9b8a957fda.tar.gz |
cxrefbas: break out table building stuff for use with renumbas.
Diffstat (limited to 'linetab.h')
-rw-r--r-- | linetab.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linetab.h b/linetab.h new file mode 100644 index 0000000..c6aeb15 --- /dev/null +++ b/linetab.h @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <unistd.h> +#include <stdlib.h> +#include <string.h> +#include <ctype.h> +#include <time.h> + +#include "bas.h" +#include "bcdfp.h" + +typedef struct { + unsigned short lineno; + unsigned short pos; + unsigned char cmd; +} lineref_t; + +extern lineref_t *linerefs[]; +extern int refcounts[]; +extern int lines_exist[]; + +extern void add_lineref(unsigned short from, unsigned short pos); +extern void build_ref_table(void); |