Skip to content

Commit

Permalink
added std-c++ header files to rin-system
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed May 25, 2023
1 parent a5a35d7 commit cd0eba5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/debug-tools/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ class Parser_backend : public Backend
}

Bstatement* for_statement
(Scope* ind_scope, Scope* then, Location loc)
(Bstatement* ind, Bstatement* cond, Bstatement* inc, Scope* then, Location loc)
{
rin_inform(loc, "CREATED FOR STATEMENT\n");
delete ind_scope;
delete ind;
delete cond;
delete inc;
delete then;

return new Bstatement;
Expand Down
14 changes: 13 additions & 1 deletion src/debug-tools/rin-system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@

#include <stdio.h>
#include <stdlib.h>
#include <mpfr.h>
#include <unordered_map>
#include <string>
#include <vector>
#include <regex>
#include <iostream>
#include <stack>
#include <sstream>

#ifdef WIN32
#include "jswin.h"
#ifdef XP_WIN
#include <windows.h>
#undef GetProp
#undef SetProp
#endif // XP_WIN
#else
#include <signal.h>
#endif // WIN32
Expand Down
3 changes: 1 addition & 2 deletions src/frontend/file.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef RIN_FILE_HPP
#define RIN_FILE_HPP

#include <fstream>
#include <string>
#include "backend.hpp"
#include <fstream>

#ifndef EOF
#define EOF (-1)
Expand Down
3 changes: 1 addition & 2 deletions src/frontend/operators.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#ifndef RIN_OPERATORS_HPP
#define RIN_OPERATORS_HPP

#include <unordered_map>
#include <string>
#include <rin-system.hpp>

enum RIN_OPERATOR {
OPER_ILLEGAL = 0,
Expand Down

0 comments on commit cd0eba5

Please sign in to comment.