diff options
Diffstat (limited to 'graphics/asymptote/types.h')
-rw-r--r-- | graphics/asymptote/types.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/graphics/asymptote/types.h b/graphics/asymptote/types.h index 22c1daf893..9492890bd2 100644 --- a/graphics/asymptote/types.h +++ b/graphics/asymptote/types.h @@ -40,7 +40,7 @@ enum ty_kind { ty_record, // "struct" in Asymptote language ty_function, ty_overloaded, - + #define PRIMITIVE(name,Name,asyName) ty_##name, #define PRIMERROR #include "primitives.h" @@ -133,7 +133,7 @@ public: } // If a cast function is not stored in the environment, ask the type itself. - // This handles null->record casting, and the like. The caster is used as a + // This handles null->record casting, and the like. The caster is used as a // callback to the environment for casts of subtypes. virtual trans::access *castTo(ty *, caster &) { return 0; @@ -186,7 +186,7 @@ class primitiveTy : public ty { public: primitiveTy(ty_kind kind) : ty(kind) {} - + bool primitive() { return true; } @@ -194,7 +194,7 @@ public: bool isReference() { return false; } - + ty *virtualFieldGetType(symbol ); trans::varEntry *virtualField(symbol, signature *); @@ -212,7 +212,7 @@ class nullTy : public primitiveTy { public: nullTy() : primitiveTy(ty_null) {} - + bool isReference() { return true; } @@ -280,10 +280,10 @@ struct array : public ty { }; /* Base types */ -#define PRIMITIVE(name,Name,asyName) \ - ty *prim##Name(); \ - ty *name##Array(); \ - ty *name##Array2(); \ +#define PRIMITIVE(name,Name,asyName) \ + ty *prim##Name(); \ + ty *name##Array(); \ + ty *name##Array2(); \ ty *name##Array3(); #define PRIMERROR #include "primitives.h" @@ -298,7 +298,7 @@ struct formal { symbol name; bool defval; bool Explicit; - + formal(ty *t, symbol name=symbol::nullsym, bool optional=false, @@ -376,7 +376,7 @@ struct signature : public gc { return rest.t ? formals.size() + 1 : formals.size(); } - formal& getFormal(size_t n) { + formal& getFormal(size_t n) { assert(n < formals.size()); return formals[n]; } @@ -485,7 +485,7 @@ struct function : public ty { ty *getResult() { return result; } - + signature *getSignature() { return &sig; } |