Debian Codegraph @

contrib/toacme/src/gighyp.h

raw symbols SCIP
1 // ToACME - converts other source codes to ACME format.
2 // Copyright (C) 1999-2025 Marco Baye
3 // Have a look at "main.c" for further info
4 //
5 // stuff needed for "Hypra-Ass", "Giga-Ass", "Top-Ass"
6 #ifndef gigahypra_H
7 #define gigahypra_H
8
9
10 #include "config.h"
11
12
13 // Constants
14 #define FLAG_INSERT_SPACE (1u << 0) // insert space before arg
15 #define FLAG_ADD_LEFT_BRACE (1u << 1) // add '{' at end of statement
16 #define FLAG_ADD_CBM (1u << 2) // add file format indicator
17 #define FLAG_ADD_ZERO (1u << 3) // giga string specialty:
18 // open quote at end of line is *normal*. Closed quote: add ",0".
19 #define FLAG_SKIP_OPENING (1u << 4) // strip '(' before args
20 #define FLAG_SKIP_CLOSING (1u << 5) // strip ')' after args
21 #define FLAG_CHANGE_LEFTARROW (1u << 6) // giga string specialty:
22 // '_' (left arrow on C64) is transformed to CR (0x0d).
23 #define FLAG_TASK_WITH_COMMA (1u << 7) // top allows devices in .source
24 // or comma-separated lists after .text
25
26
27 struct Instructs {
28 int flags;
29 char txtOpcode[20];
30 };
31
32
33 // Prototypes
34 extern void GigaHypra_comment(void);
35 extern void GigaHypra_operator(void);
36 extern void GigaHypra_indent(int indent);
37 extern void GigaHypra_argument_with_instructs(struct Instructs instructs, int indent);
38 extern void GigaHypra_argument(int flags);
39 extern int GigaHypra_label_definition(void);
40
41
42 #endif