Toggle navigation
Beam GIT List
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
82da226b6fa1e8f20c333d1185394cd4d7ef15cb
Branches
master
Tags
tms/release-pre-2.1.0
tms/release-2.2.1
tms/release-2.2.0
tms/release-2.1.0
tms/release-2.0.6
tms/release-2.0.5
tms/release-2.0.4
tms/release-2.0.3first
tms/release-2.0.3
tms/release-1.2.12
tms/release-1.2.11
tms/release-1.2.10
tms/release-1.2.9
tms/release-1.2.8
tms/release-1.2.6a
tms/release-1.2.6
tms/release-1.2.4
tms/release-1.2.3
tms/release-1.2.2
tms/release-1.2.0
tms/release-1.1.2
tms/release-1.1.1
tms/release-1.0.2
tms/release-1.0.1
tms/release-1.0.0
tms/release-0.4.3
tms/release-0.4.2
tms/release-0.4.1
tms/release-0.3.14
tms/release-0.3.13
tms/release-0.3.12
tms/release-0.3.10
tms/release-0.3.9
tms/release-0.3.8
tms/release-0.3.5
tms/release-0.3.4
tms/release-0.3.3
tms/release-0.2.7
tms/release-0.2.5
tms/release-0.2.3
tms-mcsys/release-2.1.0-1.beam
tms-mcsys/release-2.0.6-1.beam
tms-mcsys/release-1.2.9-1.beam
tms-fpga/release-1.2.5
tms-fpga/release-1.2.4
Files
Commits
Log
Graph
Stats
tms-old
beam
bidl
Gen.h
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
HTTPS
Blames found: 15
Mode: text/x-c++src
Binary: false
Hang on, we reloading big blames...
6ae0d525
/******************************************************************************* * Gen.h Generate output * T.Barnaby, BEAM Ltd, 12/9/03 ******************************************************************************* */ #ifndef GEN_HH #define GEN_HH #include <stdio.h>
57456599
#include <stdlib.h>
6ae0d525
#include <BError.h>
57456599
#include <BDict.h>
6ae0d525
#include <BFile.h> #include <Node.h> #include <Type.h> class FileIndent : public BFile { public: FileIndent(); void indentMore(); void indentLess(); int writeLine(BString line);
57456599
int printf(const char* fmt, ...); private: int oindent; }; class StringIndent : public BString { public: StringIndent(); void indentMore(); void indentLess(); void writeLine(BString line); void printf(const char* fmt, ...);
6ae0d525
private: int oindent; }; class Gen { public: Gen(); virtual ~Gen(); virtual BError produce(Node* n, BString fileName) = 0; // Utils BString getTypeName(Node* n, int data = 0);
57456599
BError getTypeInfo(Node* n, BType& type, BTypeComp& typeMod, BUInt& size, BString& typeName); BString getBaseClass(Node* node); int isBaseType(Node* n);
6ae0d525
int isRawType(Node* n); int useCopyType(Node* n);
57456599
void setOptions(BDictString& options);
6ae0d525
int setUseBObjects(int on); int getUseBObjects();
57456599
protected:
6ae0d525
int ouseBObjects;
57456599
BDictString ooptions;
6ae0d525
}; #endif