aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/type.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-13 19:31:50 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-13 19:31:50 +0000
commit8d3db310926c414d199fca62f0c349a263543096 (patch)
tree1e46233fe70a0d5ff2b258cfcacd0f502a317741 /c_compiler/src/type.cpp
parentfd25256a37696de23d8f6c99827a97b63733845d (diff)
downloadCompiler-8d3db310926c414d199fca62f0c349a263543096.tar.gz
Compiler-8d3db310926c414d199fca62f0c349a263543096.zip
Reformatting
Diffstat (limited to 'c_compiler/src/type.cpp')
-rw-r--r--c_compiler/src/type.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/c_compiler/src/type.cpp b/c_compiler/src/type.cpp
index 6a89e2a..feda3a5 100644
--- a/c_compiler/src/type.cpp
+++ b/c_compiler/src/type.cpp
@@ -1,5 +1,4 @@
#include "type.hpp"
-#include "bindings.hpp"
#include <iostream>
@@ -11,10 +10,10 @@ void Type::print() const
std::cout << getType() << " " << std::endl;
}
-void Type::printxml() const
+void Type::printXml() const
{}
-VariableStackBindings Type::printasm(VariableStackBindings bindings) const
+VariableStackBindings Type::printAsm(VariableStackBindings bindings) const
{
return bindings;
}
@@ -22,23 +21,24 @@ VariableStackBindings Type::printasm(VariableStackBindings bindings) const
// Pointer definition
-Pointer::Pointer(Type* _pointer_type) : pointer_type(_pointer_type)
+Pointer::Pointer(Type* pointer_type) : pointer_type_(pointer_type)
{}
std::string Pointer::getType() const
{
- return "pointer " + pointer_type->getType();
+ return "pointer " + pointer_type_->getType();
}
// Array definition
-Array::Array(Type* _array_type, int32_t _size) : size(_size), array_type(_array_type)
+Array::Array(Type* array_type, unsigned size)
+ : array_type_(array_type), size_(size)
{}
std::string Array::getType() const
{
- return "array " + array_type->getType();
+ return "array " + array_type_->getType();
}