summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-09-21 15:54:52 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-10-01 17:13:03 +0300
commit15bc4c8cdf60521bf8af5f2e5f9e84dbc1673b1e (patch)
treeb272a87915ddcb23b069eb517a1606443b55e228
parent5b58bc9f8c9013bd79b31a64cbebcf64b2599b31 (diff)
Generator: move internal structures into source file
-rw-r--r--src/lib/generator.c23
-rw-r--r--src/lib/generator.h23
2 files changed, 23 insertions, 23 deletions
diff --git a/src/lib/generator.c b/src/lib/generator.c
index 19a8a5b..f524920 100644
--- a/src/lib/generator.c
+++ b/src/lib/generator.c
@@ -10,6 +10,29 @@
10 10
11#define PUB_WIDGETS "pub_widgets" 11#define PUB_WIDGETS "pub_widgets"
12 12
13/* Structure to hold data about file being generated*/
14typedef struct
15{
16 const Gui_Context *ctx; /* Context with all data about widgets*/
17 Eina_Strbuf *buf; /* buffer to print data into it */
18 Eina_List *global_names; /* widget's names, which must be global */
19 Eina_List *public_names; /* widget's names, which must be public */
20 Eina_Hash *created_sequences_hash;
21} Global_Gen_Context;
22
23/* Structure to hold data about func being generated. */
24typedef struct
25{
26 Global_Gen_Context *gl_ctx;
27 Eina_List *declarations; /* List of the variables declared inside the function. */
28
29 /*FIXME: Not used*/
30#if 0
31 Eina_List *decl; /* List of the functions that have to be declared */
32#endif
33 Eina_Strbuf *buf; /* pointer to the beginning of func context's buffer */
34} Function_Context;
35
13static Eina_Bool 36static Eina_Bool
14_c_generator_generator_interface_source_preamble_generate(const Gui_Context *ctx, Eina_Strbuf *buf); 37_c_generator_generator_interface_source_preamble_generate(const Gui_Context *ctx, Eina_Strbuf *buf);
15static Eina_Bool 38static Eina_Bool
diff --git a/src/lib/generator.h b/src/lib/generator.h
index c17e5c4..cea4d84 100644
--- a/src/lib/generator.h
+++ b/src/lib/generator.h
@@ -2,16 +2,6 @@
2#ifndef _GENERATOR_H 2#ifndef _GENERATOR_H
3#define _GENERATOR_H 3#define _GENERATOR_H
4 4
5/* Structure to hold data about file being generated*/
6typedef struct
7{
8 const Gui_Context *ctx; /* Context with all data about widgets*/
9 Eina_Strbuf *buf; /* buffer to print data into it */
10 Eina_List *global_names; /* widget's names, which must be global */
11 Eina_List *public_names; /* widget's names, which must be public */
12 Eina_Hash *created_sequences_hash;
13} Global_Gen_Context;
14
15typedef enum 5typedef enum
16{ 6{
17 GENERATE_NONE, 7 GENERATE_NONE,
@@ -20,19 +10,6 @@ typedef enum
20 GENERATE_CPP = 1 << 2 10 GENERATE_CPP = 1 << 2
21} Generator_Export_Format; 11} Generator_Export_Format;
22 12
23/* Structure to hold data about func being generated. */
24typedef struct
25{
26 Global_Gen_Context *gl_ctx;
27 Eina_List *declarations; /* List of the variables declared inside the function. */
28
29 /*FIXME: Not used*/
30#if 0
31 Eina_List *decl; /* List of the functions that have to be declared */
32#endif
33 Eina_Strbuf *buf; /* pointer to the beginning of func context's buffer */
34} Function_Context;
35
36/* Generate sources for context*/ 13/* Generate sources for context*/
37void 14void
38generator_ctx_source_generate(const Gui_Context *ctx, Generator_Export_Format format); 15generator_ctx_source_generate(const Gui_Context *ctx, Generator_Export_Format format);