summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 19:32:52 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 19:35:06 +0100
commitc05493b480b23cf45d2b8de9fe50070939519abb (patch)
tree372dcb9175b63b6e87e09cb9c570ba58e52983cf /src/examples/eolian_cxx
parentbd41cfe9ea1633a9dd8e2831f6b1ab37d7ddf41d (diff)
eolian-cxx: Added namespaces and more (see below)
Implemented namespaces Added eolian_wrappers.hh with C++ code wrapping Eolain API Changed eolian_cxx program options. Now they're eolian_gen's Added functions to safe_str.hh (safe_lower, safe_upper, normalize_spaces, path_base) Added a mocked version of type_lookup.hh in advance. The full version will come as soon as complex-types are added. Made apply again by Daniel Kolesa, original implementation by Savio Sena.
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/Makefile.am4
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_inherit_01.cc2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/examples/eolian_cxx/Makefile.am b/src/examples/eolian_cxx/Makefile.am
index 09b770a..f1f678a 100644
--- a/src/examples/eolian_cxx/Makefile.am
+++ b/src/examples/eolian_cxx/Makefile.am
@@ -99,7 +99,7 @@ eolian_cxx_inherit_01_SOURCES = \
99eolian_cxx_inherit_01.$(OBJEXT): $(GENERATED) 99eolian_cxx_inherit_01.$(OBJEXT): $(GENERATED)
100 100
101%.eo.hh: %.eo 101%.eo.hh: %.eo
102 $(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -I$< -o $@ 102 $(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -I${abs_srcdir} -o $@ $<
103 103
104%.eo.c: %.eo 104%.eo.c: %.eo
105 $(AM_V_EOL)$(EOLIAN_GEN) --eo --legacy $(EOLIAN_FLAGS) --gc -o $@ $< 105 $(AM_V_EOL)$(EOLIAN_GEN) --eo --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
@@ -114,7 +114,7 @@ clean-local:
114 114
115install-examples: 115install-examples:
116 mkdir -p $(datadir)/eolian_cxx/examples 116 mkdir -p $(datadir)/eolian_cxx/examples
117 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eolian_cxx/examples 117 cd $(abs_srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eolian_cxx/examples
118 118
119uninstall-local: 119uninstall-local:
120 for f in $(SRCS) $(DATA_FILES); do \ 120 for f in $(SRCS) $(DATA_FILES); do \
diff --git a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
index 763e0c3..b3fe196 100644
--- a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
@@ -64,7 +64,5 @@ main()
64 64
65 assert(obj1.colour_get() == obj2.colour_get()); 65 assert(obj1.colour_get() == obj2.colour_get());
66 66
67 // ColourableFoo obj3(10, 0xc0ffee);
68
69 return 0; 67 return 0;
70} 68}