OpenCores
URL https://opencores.org/ocsvn/raptor64/raptor64/trunk

Subversion Repositories raptor64

[/] [raptor64/] [trunk/] [software/] [c64/] [source/] [Cglbdef.c] - Blame information for rev 51

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 37 robfinch
#include        <stdio.h>
2
#include        "c.h"
3
#include        "expr.h"
4
#include "Statement.h"
5
#include        "gen.h"
6
/*
7
 *      68000 C compiler
8
 *
9
 *      Copyright 1984, 1985, 1986 Matthew Brandt.
10
 *  all commercial rights reserved.
11
 *
12
 *      This compiler is intended as an instructive tool for personal use. Any
13
 *      use for profit without the written consent of the author is prohibited.
14
 *
15
 *      This compiler may be distributed freely for non-commercial use as long
16
 *      as this notice stays intact. Please forward any enhancements or questions
17
 *      to:
18
 *
19
 *              Matthew Brandt
20
 *              Box 920337
21
 *              Norcross, Ga 30092
22
 */
23
 
24
/*******************************************************
25
        Modified to support Raptor64 'C64' language
26
        by Robert Finch
27
        robfinch@opencores.org
28
*******************************************************/
29
 
30
/*      global definitions      */
31
 
32
FILE            *input = 0,
33
                *list = 0,
34
                *output = 0;
35 51 robfinch
FILE                    *outputG = 0;
36
int incldepth = 0;
37 37 robfinch
int             lineno = 0;
38
int             nextlabel = 0;
39
int             lastch = 0;
40
int             lastst = 0;
41
char            lastid[33] = "";
42
char            laststr[MAX_STRLEN + 1] = "";
43
__int64                 ival = 0;
44
double          rval = 0.0;
45
 
46
TABLE           gsyms[257],// = {0,0},
47
                   lsyms = {0,0};
48
SYM             *lasthead = NULL;
49 51 robfinch
struct slit     *strtab = NULL;
50 37 robfinch
int             lc_static = 0;
51
int             lc_auto = 0;
52
struct snode    *bodyptr = 0;
53
int             global_flag = 1;
54
TABLE           defsyms = {0,0};
55
int             save_mask = 0;          /* register save mask */
56
TYP             tp_int, tp_econst;
57
 
58
int isPascal = FALSE;
59
int isOscall = FALSE;
60
int isInterrupt = FALSE;
61
int isNocall = FALSE;
62
int optimize = TRUE;
63
int exceptions = FALSE;
64
SYM *currentFn = NULL;
65
int callsFn = FALSE;
66
 
67 51 robfinch
char nmspace[20][100];
68
 
69
 
70
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.