aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/eina/src/examples
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/eina/src/examples/Makefile.am10
-rw-r--r--libraries/eina/src/examples/Makefile.in68
-rw-r--r--libraries/eina/src/examples/eina_array_01.c4
3 files changed, 42 insertions, 40 deletions
diff --git a/libraries/eina/src/examples/Makefile.am b/libraries/eina/src/examples/Makefile.am
index ea5ca6a..45b72f0 100644
--- a/libraries/eina/src/examples/Makefile.am
+++ b/libraries/eina/src/examples/Makefile.am
@@ -1,6 +1,6 @@
1MAINTAINERCLEANFILES = Makefile.in 1MAINTAINERCLEANFILES = Makefile.in
2 2
3pkglibdir = $(datadir)/$(PACKAGE)/examples 3examplesdir = $(datadir)/$(PACKAGE)/examples
4 4
5AM_CPPFLAGS = \ 5AM_CPPFLAGS = \
6-I. \ 6-I. \
@@ -39,7 +39,7 @@ SRCS = \
39 eina_strbuf_01.c \ 39 eina_strbuf_01.c \
40 eina_tiler_01.c 40 eina_tiler_01.c
41 41
42pkglib_PROGRAMS = 42examples_PROGRAMS =
43 43
44if EFL_INSTALL_EXAMPLES 44if EFL_INSTALL_EXAMPLES
45filesdir = $(datadir)/$(PACKAGE)/examples 45filesdir = $(datadir)/$(PACKAGE)/examples
@@ -47,9 +47,9 @@ files_DATA = $(SRCS)
47endif 47endif
48 48
49if EFL_BUILD_EXAMPLES 49if EFL_BUILD_EXAMPLES
50pkglib_PROGRAMS += \ 50examples_PROGRAMS += \
51 eina_accessor_01 \ 51 eina_accessor_01 \
52 eina_array_01 \ 52 eina_array_01 \
53 eina_array_02 \ 53 eina_array_02 \
54 eina_error_01 \ 54 eina_error_01 \
55 eina_file_01 \ 55 eina_file_01 \
@@ -77,7 +77,7 @@ pkglib_PROGRAMS += \
77 77
78if BUILD_TILER_EXAMPLE 78if BUILD_TILER_EXAMPLE
79AM_CPPFLAGS += @ECORE_EVAS_CFLAGS@ 79AM_CPPFLAGS += @ECORE_EVAS_CFLAGS@
80pkglib_PROGRAMS += eina_tiler_01 80examples_PROGRAMS += eina_tiler_01
81eina_tiler_01_LDADD = $(top_builddir)/src/lib/libeina.la @ECORE_EVAS_LIBS@ 81eina_tiler_01_LDADD = $(top_builddir)/src/lib/libeina.la @ECORE_EVAS_LIBS@
82endif 82endif
83 83
diff --git a/libraries/eina/src/examples/Makefile.in b/libraries/eina/src/examples/Makefile.in
index 3379e55..6e432bb 100644
--- a/libraries/eina/src/examples/Makefile.in
+++ b/libraries/eina/src/examples/Makefile.in
@@ -19,6 +19,7 @@
19VPATH = @srcdir@ 19VPATH = @srcdir@
20pkgdatadir = $(datadir)/@PACKAGE@ 20pkgdatadir = $(datadir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@ 21pkgincludedir = $(includedir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@ 23pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644 25install_sh_DATA = $(install_sh) -c -m 644
@@ -34,10 +35,10 @@ PRE_UNINSTALL = :
34POST_UNINSTALL = : 35POST_UNINSTALL = :
35build_triplet = @build@ 36build_triplet = @build@
36host_triplet = @host@ 37host_triplet = @host@
37pkglib_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) 38examples_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2)
38@EFL_BUILD_EXAMPLES_TRUE@am__append_1 = \ 39@EFL_BUILD_EXAMPLES_TRUE@am__append_1 = \
39@EFL_BUILD_EXAMPLES_TRUE@ eina_accessor_01 \ 40@EFL_BUILD_EXAMPLES_TRUE@ eina_accessor_01 \
40@EFL_BUILD_EXAMPLES_TRUE@ eina_array_01 \ 41@EFL_BUILD_EXAMPLES_TRUE@ eina_array_01 \
41@EFL_BUILD_EXAMPLES_TRUE@ eina_array_02 \ 42@EFL_BUILD_EXAMPLES_TRUE@ eina_array_02 \
42@EFL_BUILD_EXAMPLES_TRUE@ eina_error_01 \ 43@EFL_BUILD_EXAMPLES_TRUE@ eina_error_01 \
43@EFL_BUILD_EXAMPLES_TRUE@ eina_file_01 \ 44@EFL_BUILD_EXAMPLES_TRUE@ eina_file_01 \
@@ -115,8 +116,8 @@ CONFIG_CLEAN_VPATH_FILES =
115@EFL_BUILD_EXAMPLES_TRUE@ eina_str_01$(EXEEXT) \ 116@EFL_BUILD_EXAMPLES_TRUE@ eina_str_01$(EXEEXT) \
116@EFL_BUILD_EXAMPLES_TRUE@ eina_strbuf_01$(EXEEXT) 117@EFL_BUILD_EXAMPLES_TRUE@ eina_strbuf_01$(EXEEXT)
117@BUILD_TILER_EXAMPLE_TRUE@@EFL_BUILD_EXAMPLES_TRUE@am__EXEEXT_2 = eina_tiler_01$(EXEEXT) 118@BUILD_TILER_EXAMPLE_TRUE@@EFL_BUILD_EXAMPLES_TRUE@am__EXEEXT_2 = eina_tiler_01$(EXEEXT)
118am__installdirs = "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(filesdir)" 119am__installdirs = "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(filesdir)"
119PROGRAMS = $(pkglib_PROGRAMS) 120PROGRAMS = $(examples_PROGRAMS)
120eina_accessor_01_SOURCES = eina_accessor_01.c 121eina_accessor_01_SOURCES = eina_accessor_01.c
121eina_accessor_01_OBJECTS = eina_accessor_01.$(OBJEXT) 122eina_accessor_01_OBJECTS = eina_accessor_01.$(OBJEXT)
122eina_accessor_01_LDADD = $(LDADD) 123eina_accessor_01_LDADD = $(LDADD)
@@ -294,7 +295,6 @@ DATA = $(files_DATA)
294ETAGS = etags 295ETAGS = etags
295CTAGS = ctags 296CTAGS = ctags
296DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 297DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
297pkglibdir = $(datadir)/$(PACKAGE)/examples
298ACLOCAL = @ACLOCAL@ 298ACLOCAL = @ACLOCAL@
299ALLOCA = @ALLOCA@ 299ALLOCA = @ALLOCA@
300AMTAR = @AMTAR@ 300AMTAR = @AMTAR@
@@ -337,7 +337,9 @@ EFL_SIMD_FLAGS = @EFL_SIMD_FLAGS@
337EGREP = @EGREP@ 337EGREP = @EGREP@
338EINA_CFLAGS = @EINA_CFLAGS@ 338EINA_CFLAGS = @EINA_CFLAGS@
339EINA_CONFIGURE_DEFAULT_MEMPOOL = @EINA_CONFIGURE_DEFAULT_MEMPOOL@ 339EINA_CONFIGURE_DEFAULT_MEMPOOL = @EINA_CONFIGURE_DEFAULT_MEMPOOL@
340EINA_CONFIGURE_ENABLE_LOG = @EINA_CONFIGURE_ENABLE_LOG@
340EINA_CONFIGURE_HAVE_DEBUG_THREADS = @EINA_CONFIGURE_HAVE_DEBUG_THREADS@ 341EINA_CONFIGURE_HAVE_DEBUG_THREADS = @EINA_CONFIGURE_HAVE_DEBUG_THREADS@
342EINA_CONFIGURE_HAVE_DIRENT_H = @EINA_CONFIGURE_HAVE_DIRENT_H@
341EINA_CONFIGURE_HAVE_INTTYPES_H = @EINA_CONFIGURE_HAVE_INTTYPES_H@ 343EINA_CONFIGURE_HAVE_INTTYPES_H = @EINA_CONFIGURE_HAVE_INTTYPES_H@
342EINA_CONFIGURE_HAVE_ON_OFF_THREADS = @EINA_CONFIGURE_HAVE_ON_OFF_THREADS@ 344EINA_CONFIGURE_HAVE_ON_OFF_THREADS = @EINA_CONFIGURE_HAVE_ON_OFF_THREADS@
343EINA_CONFIGURE_HAVE_STDINT_H = @EINA_CONFIGURE_HAVE_STDINT_H@ 345EINA_CONFIGURE_HAVE_STDINT_H = @EINA_CONFIGURE_HAVE_STDINT_H@
@@ -389,8 +391,6 @@ PACKAGE_URL = @PACKAGE_URL@
389PACKAGE_VERSION = @PACKAGE_VERSION@ 391PACKAGE_VERSION = @PACKAGE_VERSION@
390PATH_SEPARATOR = @PATH_SEPARATOR@ 392PATH_SEPARATOR = @PATH_SEPARATOR@
391PKG_CONFIG = @PKG_CONFIG@ 393PKG_CONFIG = @PKG_CONFIG@
392PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
393PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
394RANLIB = @RANLIB@ 394RANLIB = @RANLIB@
395SED = @SED@ 395SED = @SED@
396SET_MAKE = @SET_MAKE@ 396SET_MAKE = @SET_MAKE@
@@ -465,6 +465,7 @@ top_builddir = @top_builddir@
465top_srcdir = @top_srcdir@ 465top_srcdir = @top_srcdir@
466version_info = @version_info@ 466version_info = @version_info@
467MAINTAINERCLEANFILES = Makefile.in 467MAINTAINERCLEANFILES = Makefile.in
468examplesdir = $(datadir)/$(PACKAGE)/examples
468AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include \ 469AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include \
469 -I$(top_builddir)/src/include $(am__append_2) 470 -I$(top_builddir)/src/include $(am__append_2)
470LDADD = \ 471LDADD = \
@@ -536,10 +537,10 @@ $(top_srcdir)/configure: $(am__configure_deps)
536$(ACLOCAL_M4): $(am__aclocal_m4_deps) 537$(ACLOCAL_M4): $(am__aclocal_m4_deps)
537 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 538 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
538$(am__aclocal_m4_deps): 539$(am__aclocal_m4_deps):
539install-pkglibPROGRAMS: $(pkglib_PROGRAMS) 540install-examplesPROGRAMS: $(examples_PROGRAMS)
540 @$(NORMAL_INSTALL) 541 @$(NORMAL_INSTALL)
541 test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" 542 test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)"
542 @list='$(pkglib_PROGRAMS)'; test -n "$(pkglibdir)" || list=; \ 543 @list='$(examples_PROGRAMS)'; test -n "$(examplesdir)" || list=; \
543 for p in $$list; do echo "$$p $$p"; done | \ 544 for p in $$list; do echo "$$p $$p"; done | \
544 sed 's/$(EXEEXT)$$//' | \ 545 sed 's/$(EXEEXT)$$//' | \
545 while read p p1; do if test -f $$p || test -f $$p1; \ 546 while read p p1; do if test -f $$p || test -f $$p1; \
@@ -556,23 +557,23 @@ install-pkglibPROGRAMS: $(pkglib_PROGRAMS)
556 while read type dir files; do \ 557 while read type dir files; do \
557 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ 558 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
558 test -z "$$files" || { \ 559 test -z "$$files" || { \
559 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(pkglibdir)$$dir'"; \ 560 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(examplesdir)$$dir'"; \
560 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(pkglibdir)$$dir" || exit $$?; \ 561 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(examplesdir)$$dir" || exit $$?; \
561 } \ 562 } \
562 ; done 563 ; done
563 564
564uninstall-pkglibPROGRAMS: 565uninstall-examplesPROGRAMS:
565 @$(NORMAL_UNINSTALL) 566 @$(NORMAL_UNINSTALL)
566 @list='$(pkglib_PROGRAMS)'; test -n "$(pkglibdir)" || list=; \ 567 @list='$(examples_PROGRAMS)'; test -n "$(examplesdir)" || list=; \
567 files=`for p in $$list; do echo "$$p"; done | \ 568 files=`for p in $$list; do echo "$$p"; done | \
568 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ 569 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
569 -e 's/$$/$(EXEEXT)/' `; \ 570 -e 's/$$/$(EXEEXT)/' `; \
570 test -n "$$list" || exit 0; \ 571 test -n "$$list" || exit 0; \
571 echo " ( cd '$(DESTDIR)$(pkglibdir)' && rm -f" $$files ")"; \ 572 echo " ( cd '$(DESTDIR)$(examplesdir)' && rm -f" $$files ")"; \
572 cd "$(DESTDIR)$(pkglibdir)" && rm -f $$files 573 cd "$(DESTDIR)$(examplesdir)" && rm -f $$files
573 574
574clean-pkglibPROGRAMS: 575clean-examplesPROGRAMS:
575 @list='$(pkglib_PROGRAMS)'; test -n "$$list" || exit 0; \ 576 @list='$(examples_PROGRAMS)'; test -n "$$list" || exit 0; \
576 echo " rm -f" $$list; \ 577 echo " rm -f" $$list; \
577 rm -f $$list || exit $$?; \ 578 rm -f $$list || exit $$?; \
578 test -n "$(EXEEXT)" || exit 0; \ 579 test -n "$(EXEEXT)" || exit 0; \
@@ -831,7 +832,7 @@ check-am: all-am
831check: check-am 832check: check-am
832all-am: Makefile $(PROGRAMS) $(DATA) 833all-am: Makefile $(PROGRAMS) $(DATA)
833installdirs: 834installdirs:
834 for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(filesdir)"; do \ 835 for dir in "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(filesdir)"; do \
835 test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 836 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
836 done 837 done
837install: install-am 838install: install-am
@@ -862,7 +863,7 @@ maintainer-clean-generic:
862 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 863 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
863clean: clean-am 864clean: clean-am
864 865
865clean-am: clean-generic clean-libtool clean-pkglibPROGRAMS \ 866clean-am: clean-examplesPROGRAMS clean-generic clean-libtool \
866 mostlyclean-am 867 mostlyclean-am
867 868
868distclean: distclean-am 869distclean: distclean-am
@@ -883,13 +884,13 @@ info: info-am
883 884
884info-am: 885info-am:
885 886
886install-data-am: install-filesDATA 887install-data-am: install-examplesPROGRAMS install-filesDATA
887 888
888install-dvi: install-dvi-am 889install-dvi: install-dvi-am
889 890
890install-dvi-am: 891install-dvi-am:
891 892
892install-exec-am: install-pkglibPROGRAMS 893install-exec-am:
893 894
894install-html: install-html-am 895install-html: install-html-am
895 896
@@ -929,24 +930,25 @@ ps: ps-am
929 930
930ps-am: 931ps-am:
931 932
932uninstall-am: uninstall-filesDATA uninstall-pkglibPROGRAMS 933uninstall-am: uninstall-examplesPROGRAMS uninstall-filesDATA
933 934
934.MAKE: install-am install-strip 935.MAKE: install-am install-strip
935 936
936.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 937.PHONY: CTAGS GTAGS all all-am check check-am clean \
937 clean-libtool clean-pkglibPROGRAMS ctags distclean \ 938 clean-examplesPROGRAMS clean-generic clean-libtool ctags \
938 distclean-compile distclean-generic distclean-libtool \ 939 distclean distclean-compile distclean-generic \
939 distclean-tags distdir dvi dvi-am html html-am info info-am \ 940 distclean-libtool distclean-tags distdir dvi dvi-am html \
940 install install-am install-data install-data-am install-dvi \ 941 html-am info info-am install install-am install-data \
941 install-dvi-am install-exec install-exec-am install-filesDATA \ 942 install-data-am install-dvi install-dvi-am \
942 install-html install-html-am install-info install-info-am \ 943 install-examplesPROGRAMS install-exec install-exec-am \
943 install-man install-pdf install-pdf-am install-pkglibPROGRAMS \ 944 install-filesDATA install-html install-html-am install-info \
945 install-info-am install-man install-pdf install-pdf-am \
944 install-ps install-ps-am install-strip installcheck \ 946 install-ps install-ps-am install-strip installcheck \
945 installcheck-am installdirs maintainer-clean \ 947 installcheck-am installdirs maintainer-clean \
946 maintainer-clean-generic mostlyclean mostlyclean-compile \ 948 maintainer-clean-generic mostlyclean mostlyclean-compile \
947 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 949 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
948 tags uninstall uninstall-am uninstall-filesDATA \ 950 tags uninstall uninstall-am uninstall-examplesPROGRAMS \
949 uninstall-pkglibPROGRAMS 951 uninstall-filesDATA
950 952
951 953
952# Tell versions [3.59,3.63) of GNU make to not export all variables. 954# Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/libraries/eina/src/examples/eina_array_01.c b/libraries/eina/src/examples/eina_array_01.c
index 25e0944..d93eb35 100644
--- a/libraries/eina/src/examples/eina_array_01.c
+++ b/libraries/eina/src/examples/eina_array_01.c
@@ -35,12 +35,12 @@ main(int argc, char **argv)
35 for (i = 0; i < 20; i++) 35 for (i = 0; i < 20; i++)
36 eina_array_push(array, strdup(strings[i])); 36 eina_array_push(array, strdup(strings[i]));
37 37
38 printf("array count: %d\n", eina_array_count_get(array)); 38 printf("array count: %d\n", eina_array_count(array));
39 eina_array_foreach(array, _print, NULL); 39 eina_array_foreach(array, _print, NULL);
40 40
41 printf("Top gun: %s\n", (char*)eina_array_data_get(array, 2)); 41 printf("Top gun: %s\n", (char*)eina_array_data_get(array, 2));
42 42
43 while (eina_array_count_get(array)) 43 while (eina_array_count(array))
44 free(eina_array_pop(array)); 44 free(eina_array_pop(array));
45 45
46 eina_array_free(array); 46 eina_array_free(array);