URL
https://opencores.org/ocsvn/c16/c16/trunk
[/] [c16/] [trunk/] [compiler/] [Name.hh] - Diff between revs 2 and 7
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 7 |
Line 1... |
Line 1... |
// Name.hh
|
// Name.hh
|
|
|
#include "List.hh"
|
#include "List.hh"
|
class TypeName;
|
class TypeName;
|
|
class Name;
|
|
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
class Name
|
class Name
|
{
|
{
|
public:
|
public:
|
Line 21... |
Line 22... |
static void AddStatic(const char * na, TypeName * decl);
|
static void AddStatic(const char * na, TypeName * decl);
|
static void AddEnum(const char * na, int value);
|
static void AddEnum(const char * na, int value);
|
static void AddLocal(const char * na, TypeName * decl);
|
static void AddLocal(const char * na, TypeName * decl);
|
static void AddAuto(const char * na, TypeName * decl, int spos = 0);
|
static void AddAuto(const char * na, TypeName * decl, int spos = 0);
|
static void SetAutoPos(const char * na, int spos);
|
static void SetAutoPos(const char * na, int spos);
|
static void RemoveAuto();
|
|
static void AutoToLocal();
|
static void AutoToLocal();
|
static void PrintAll(FILE * out);
|
static void PrintAll(FILE * out);
|
|
|
|
static void RemoveAuto();
|
|
static bool ContextIsEmpty() { return (autos == 0); };
|
|
static void PushContext();
|
|
static void PopContext();
|
|
|
void Print(FILE * out);
|
void Print(FILE * out);
|
|
|
private:
|
private:
|
const char * name;
|
const char * name;
|
Name * tail;
|
Name * tail;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.