Cthulhu
0.2.10
Cthulhu compiler collection
compile.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-3.0-only
2
#pragma once
3
4
#include "
editor/panels/sources.hpp
"
5
6
#include "
cthulhu/broker/broker.h
"
7
8
typedef
struct
logger_t
logger_t
;
9
typedef
struct
support_t
support_t
;
10
typedef
struct
loader_t
loader_t
;
11
12
namespace
ed
13
{
14
class
Broker
15
{
16
public
:
17
Broker
(
loader_t
*
loader
,
const
char
*
name
);
18
19
// run state
20
std::string
name
;
21
22
// api objects
23
bool
setup
=
false
;
24
broker_t
*
broker
=
nullptr
;
25
loader_t
*
loader
=
nullptr
;
26
support_t
*
support
=
nullptr
;
27
33
char
*
parse_source
(
size_t
index);
34
35
void
init
();
36
41
bool
check_reports
()
const
;
42
43
private
:
44
void
init_support();
45
};
46
}
broker.h
ed::Broker
Definition:
compile.hpp:15
ed::Broker::broker
broker_t * broker
Definition:
compile.hpp:24
ed::Broker::check_reports
bool check_reports() const
check if there are any reports
Definition:
compile.cpp:87
ed::Broker::loader
loader_t * loader
Definition:
compile.hpp:25
ed::Broker::init
void init()
Definition:
compile.cpp:75
ed::Broker::setup
bool setup
Definition:
compile.hpp:23
ed::Broker::name
std::string name
Definition:
compile.hpp:20
ed::Broker::Broker
Broker(loader_t *loader, const char *name)
Definition:
compile.cpp:32
ed::Broker::support
support_t * support
Definition:
compile.hpp:26
ed::Broker::parse_source
char * parse_source(size_t index)
parse a source file
Definition:
compile.cpp:43
ed
Definition:
compile.hpp:13
sources.hpp
broker_t
Definition:
broker.c:20
loader_t
Definition:
common.h:8
logger_t
a logging sink
Definition:
notify.c:14
support_t
Definition:
support.c:19
frontend
gui
editor
include
editor
compile.hpp
Generated by
1.9.1