Commit 68d6a474bcf9c71bf180863e86eb108585e36c52

Authored by Georg Hopp
1 parent 1c0a838e

restructure as this is now a private project of mine and no longer related to bi…

…gpoint. It was anyways open source as it uses opensource code from another project
... ... @@ -7,8 +7,8 @@ written by:
7 7
8 8 This code is also copyrighted by the GPL 3.
9 9
10   -The original idea ass well as the first PHP implementation was founded
11   -with my collegues at bigpoint.com.
  10 +The original idea as well as the first PHP implementation was founded
  11 +in cooperation with my collegues at Bigpoint www.bigpoint.com.
12 12
13 13 - Bjoern Ellebrecht
14 14 - Lass Puls
... ...
1 1 ACLOCAL_AMFLAGS = -I m4
2 2
3   -lib_LTLIBRARIES = libbigpoint.la
4   -libbigpoint_la_SOURCES = base64.c bigpoint_cclass.c bigpoint_crypt.c bigpoint_dyntype.c \
5   - bigpoint_hash.c bigpoint_packet.c
6   -libbigpoint_la_CFLAGS = -I include
7   -libbigpoint_la_LDFLAGS = -version-info 0:0:0
8   -
9   -
10 3 bin_PROGRAMS = create_token
11   -create_token_SOURCES = createToken.c
12   -create_token_LDADD = libbigpoint.la $(LIBOBJS)
  4 +create_token_SOURCES = base64.c createToken.c
  5 +create_token_LDADD = src/libtoken.la $(LIBOBJS)
13 6 create_token_CFLAGS = -I include
14 7
15   -SUBDIRS = include
  8 +SUBDIRS = src include tests
... ...
... ... @@ -15,7 +15,6 @@
15 15
16 16 @SET_MAKE@
17 17
18   -
19 18 VPATH = @srcdir@
20 19 pkgdatadir = $(datadir)/@PACKAGE@
21 20 pkgincludedir = $(includedir)/@PACKAGE@
... ... @@ -52,44 +51,12 @@ mkinstalldirs = $(install_sh) -d
52 51 CONFIG_HEADER = config.h
53 52 CONFIG_CLEAN_FILES =
54 53 CONFIG_CLEAN_VPATH_FILES =
55   -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
56   -am__vpath_adj = case $$p in \
57   - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
58   - *) f=$$p;; \
59   - esac;
60   -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
61   -am__install_max = 40
62   -am__nobase_strip_setup = \
63   - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
64   -am__nobase_strip = \
65   - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
66   -am__nobase_list = $(am__nobase_strip_setup); \
67   - for p in $$list; do echo "$$p $$p"; done | \
68   - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
69   - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
70   - if (++n[$$2] == $(am__install_max)) \
71   - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
72   - END { for (dir in files) print dir, files[dir] }'
73   -am__base_list = \
74   - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
75   - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
76   -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)"
77   -LTLIBRARIES = $(lib_LTLIBRARIES)
78   -libbigpoint_la_LIBADD =
79   -am_libbigpoint_la_OBJECTS = libbigpoint_la-base64.lo \
80   - libbigpoint_la-bigpoint_cclass.lo \
81   - libbigpoint_la-bigpoint_crypt.lo \
82   - libbigpoint_la-bigpoint_dyntype.lo \
83   - libbigpoint_la-bigpoint_hash.lo \
84   - libbigpoint_la-bigpoint_packet.lo
85   -libbigpoint_la_OBJECTS = $(am_libbigpoint_la_OBJECTS)
86   -libbigpoint_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
87   - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libbigpoint_la_CFLAGS) \
88   - $(CFLAGS) $(libbigpoint_la_LDFLAGS) $(LDFLAGS) -o $@
  54 +am__installdirs = "$(DESTDIR)$(bindir)"
89 55 PROGRAMS = $(bin_PROGRAMS)
90   -am_create_token_OBJECTS = create_token-createToken.$(OBJEXT)
  56 +am_create_token_OBJECTS = create_token-base64.$(OBJEXT) \
  57 + create_token-createToken.$(OBJEXT)
91 58 create_token_OBJECTS = $(am_create_token_OBJECTS)
92   -create_token_DEPENDENCIES = libbigpoint.la $(LIBOBJS)
  59 +create_token_DEPENDENCIES = src/libtoken.la $(LIBOBJS)
93 60 create_token_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
94 61 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(create_token_CFLAGS) \
95 62 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
... ... @@ -106,8 +73,8 @@ CCLD = $(CC)
106 73 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
107 74 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
108 75 $(LDFLAGS) -o $@
109   -SOURCES = $(libbigpoint_la_SOURCES) $(create_token_SOURCES)
110   -DIST_SOURCES = $(libbigpoint_la_SOURCES) $(create_token_SOURCES)
  76 +SOURCES = $(create_token_SOURCES)
  77 +DIST_SOURCES = $(create_token_SOURCES)
111 78 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
112 79 html-recursive info-recursive install-data-recursive \
113 80 install-dvi-recursive install-exec-recursive \
... ... @@ -273,16 +240,10 @@ top_build_prefix = @top_build_prefix@
273 240 top_builddir = @top_builddir@
274 241 top_srcdir = @top_srcdir@
275 242 ACLOCAL_AMFLAGS = -I m4
276   -lib_LTLIBRARIES = libbigpoint.la
277   -libbigpoint_la_SOURCES = base64.c bigpoint_cclass.c bigpoint_crypt.c bigpoint_dyntype.c \
278   - bigpoint_hash.c bigpoint_packet.c
279   -
280   -libbigpoint_la_CFLAGS = -I include
281   -libbigpoint_la_LDFLAGS = -version-info 0:0:0
282   -create_token_SOURCES = createToken.c
283   -create_token_LDADD = libbigpoint.la $(LIBOBJS)
  243 +create_token_SOURCES = base64.c createToken.c
  244 +create_token_LDADD = src/libtoken.la $(LIBOBJS)
284 245 create_token_CFLAGS = -I include
285   -SUBDIRS = include
  246 +SUBDIRS = src include tests
286 247 all: config.h
287 248 $(MAKE) $(AM_MAKEFLAGS) all-recursive
288 249
... ... @@ -339,39 +300,6 @@ $(srcdir)/config.h.in: $(am__configure_deps)
339 300
340 301 distclean-hdr:
341 302 -rm -f config.h stamp-h1
342   -install-libLTLIBRARIES: $(lib_LTLIBRARIES)
343   - @$(NORMAL_INSTALL)
344   - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
345   - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
346   - list2=; for p in $$list; do \
347   - if test -f $$p; then \
348   - list2="$$list2 $$p"; \
349   - else :; fi; \
350   - done; \
351   - test -z "$$list2" || { \
352   - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
353   - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
354   - }
355   -
356   -uninstall-libLTLIBRARIES:
357   - @$(NORMAL_UNINSTALL)
358   - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
359   - for p in $$list; do \
360   - $(am__strip_dir) \
361   - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
362   - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
363   - done
364   -
365   -clean-libLTLIBRARIES:
366   - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
367   - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
368   - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
369   - test "$$dir" != "$$p" || dir=.; \
370   - echo "rm -f \"$${dir}/so_locations\""; \
371   - rm -f "$${dir}/so_locations"; \
372   - done
373   -libbigpoint.la: $(libbigpoint_la_OBJECTS) $(libbigpoint_la_DEPENDENCIES)
374   - $(libbigpoint_la_LINK) -rpath $(libdir) $(libbigpoint_la_OBJECTS) $(libbigpoint_la_LIBADD) $(LIBS)
375 303 install-binPROGRAMS: $(bin_PROGRAMS)
376 304 @$(NORMAL_INSTALL)
377 305 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
... ... @@ -425,13 +353,8 @@ mostlyclean-compile:
425 353 distclean-compile:
426 354 -rm -f *.tab.c
427 355
  356 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_token-base64.Po@am__quote@
428 357 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_token-createToken.Po@am__quote@
429   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-base64.Plo@am__quote@
430   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_cclass.Plo@am__quote@
431   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_crypt.Plo@am__quote@
432   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Plo@am__quote@
433   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_hash.Plo@am__quote@
434   -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_packet.Plo@am__quote@
435 358
436 359 .c.o:
437 360 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
... ... @@ -454,47 +377,19 @@ distclean-compile:
454 377 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
455 378 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
456 379
457   -libbigpoint_la-base64.lo: base64.c
458   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-base64.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-base64.Tpo -c -o libbigpoint_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c
459   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-base64.Tpo $(DEPDIR)/libbigpoint_la-base64.Plo
460   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='base64.c' object='libbigpoint_la-base64.lo' libtool=yes @AMDEPBACKSLASH@
  380 +create_token-base64.o: base64.c
  381 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -MT create_token-base64.o -MD -MP -MF $(DEPDIR)/create_token-base64.Tpo -c -o create_token-base64.o `test -f 'base64.c' || echo '$(srcdir)/'`base64.c
  382 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_token-base64.Tpo $(DEPDIR)/create_token-base64.Po
  383 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='base64.c' object='create_token-base64.o' libtool=no @AMDEPBACKSLASH@
461 384 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
462   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c
  385 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -c -o create_token-base64.o `test -f 'base64.c' || echo '$(srcdir)/'`base64.c
463 386
464   -libbigpoint_la-bigpoint_cclass.lo: bigpoint_cclass.c
465   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_cclass.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Tpo -c -o libbigpoint_la-bigpoint_cclass.lo `test -f 'bigpoint_cclass.c' || echo '$(srcdir)/'`bigpoint_cclass.c
466   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Plo
467   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_cclass.c' object='libbigpoint_la-bigpoint_cclass.lo' libtool=yes @AMDEPBACKSLASH@
  387 +create_token-base64.obj: base64.c
  388 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -MT create_token-base64.obj -MD -MP -MF $(DEPDIR)/create_token-base64.Tpo -c -o create_token-base64.obj `if test -f 'base64.c'; then $(CYGPATH_W) 'base64.c'; else $(CYGPATH_W) '$(srcdir)/base64.c'; fi`
  389 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_token-base64.Tpo $(DEPDIR)/create_token-base64.Po
  390 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='base64.c' object='create_token-base64.obj' libtool=no @AMDEPBACKSLASH@
468 391 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
469   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_cclass.lo `test -f 'bigpoint_cclass.c' || echo '$(srcdir)/'`bigpoint_cclass.c
470   -
471   -libbigpoint_la-bigpoint_crypt.lo: bigpoint_crypt.c
472   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_crypt.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Tpo -c -o libbigpoint_la-bigpoint_crypt.lo `test -f 'bigpoint_crypt.c' || echo '$(srcdir)/'`bigpoint_crypt.c
473   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Plo
474   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_crypt.c' object='libbigpoint_la-bigpoint_crypt.lo' libtool=yes @AMDEPBACKSLASH@
475   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
476   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_crypt.lo `test -f 'bigpoint_crypt.c' || echo '$(srcdir)/'`bigpoint_crypt.c
477   -
478   -libbigpoint_la-bigpoint_dyntype.lo: bigpoint_dyntype.c
479   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_dyntype.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Tpo -c -o libbigpoint_la-bigpoint_dyntype.lo `test -f 'bigpoint_dyntype.c' || echo '$(srcdir)/'`bigpoint_dyntype.c
480   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Plo
481   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_dyntype.c' object='libbigpoint_la-bigpoint_dyntype.lo' libtool=yes @AMDEPBACKSLASH@
482   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
483   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_dyntype.lo `test -f 'bigpoint_dyntype.c' || echo '$(srcdir)/'`bigpoint_dyntype.c
484   -
485   -libbigpoint_la-bigpoint_hash.lo: bigpoint_hash.c
486   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_hash.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_hash.Tpo -c -o libbigpoint_la-bigpoint_hash.lo `test -f 'bigpoint_hash.c' || echo '$(srcdir)/'`bigpoint_hash.c
487   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_hash.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_hash.Plo
488   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_hash.c' object='libbigpoint_la-bigpoint_hash.lo' libtool=yes @AMDEPBACKSLASH@
489   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
490   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_hash.lo `test -f 'bigpoint_hash.c' || echo '$(srcdir)/'`bigpoint_hash.c
491   -
492   -libbigpoint_la-bigpoint_packet.lo: bigpoint_packet.c
493   -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_packet.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_packet.Tpo -c -o libbigpoint_la-bigpoint_packet.lo `test -f 'bigpoint_packet.c' || echo '$(srcdir)/'`bigpoint_packet.c
494   -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_packet.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_packet.Plo
495   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_packet.c' object='libbigpoint_la-bigpoint_packet.lo' libtool=yes @AMDEPBACKSLASH@
496   -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
497   -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_packet.lo `test -f 'bigpoint_packet.c' || echo '$(srcdir)/'`bigpoint_packet.c
  392 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -c -o create_token-base64.obj `if test -f 'base64.c'; then $(CYGPATH_W) 'base64.c'; else $(CYGPATH_W) '$(srcdir)/base64.c'; fi`
498 393
499 394 create_token-createToken.o: createToken.c
500 395 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -MT create_token-createToken.o -MD -MP -MF $(DEPDIR)/create_token-createToken.Tpo -c -o create_token-createToken.o `test -f 'createToken.c' || echo '$(srcdir)/'`createToken.c
... ... @@ -831,12 +726,10 @@ distcleancheck: distclean
831 726 exit 1; } >&2
832 727 check-am: all-am
833 728 check: check-recursive
834   -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) config.h
835   -install-binPROGRAMS: install-libLTLIBRARIES
836   -
  729 +all-am: Makefile $(PROGRAMS) config.h
837 730 installdirs: installdirs-recursive
838 731 installdirs-am:
839   - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)"; do \
  732 + for dir in "$(DESTDIR)$(bindir)"; do \
840 733 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
841 734 done
842 735 install: install-recursive
... ... @@ -866,8 +759,7 @@ maintainer-clean-generic:
866 759 @echo "it deletes files that may require special tools to rebuild."
867 760 clean: clean-recursive
868 761
869   -clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
870   - clean-libtool mostlyclean-am
  762 +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
871 763
872 764 distclean: distclean-recursive
873 765 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
... ... @@ -894,7 +786,7 @@ install-dvi: install-dvi-recursive
894 786
895 787 install-dvi-am:
896 788
897   -install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
  789 +install-exec-am: install-binPROGRAMS
898 790
899 791 install-html: install-html-recursive
900 792
... ... @@ -936,29 +828,28 @@ ps: ps-recursive
936 828
937 829 ps-am:
938 830
939   -uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES
  831 +uninstall-am: uninstall-binPROGRAMS
940 832
941 833 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
942 834 ctags-recursive install-am install-strip tags-recursive
943 835
944 836 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
945 837 all all-am am--refresh check check-am clean clean-binPROGRAMS \
946   - clean-generic clean-libLTLIBRARIES clean-libtool ctags \
947   - ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzma \
948   - dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
949   - distclean-compile distclean-generic distclean-hdr \
950   - distclean-libtool distclean-tags distcleancheck distdir \
951   - distuninstallcheck dvi dvi-am html html-am info info-am \
952   - install install-am install-binPROGRAMS install-data \
953   - install-data-am install-dvi install-dvi-am install-exec \
954   - install-exec-am install-html install-html-am install-info \
955   - install-info-am install-libLTLIBRARIES install-man install-pdf \
956   - install-pdf-am install-ps install-ps-am install-strip \
957   - installcheck installcheck-am installdirs installdirs-am \
958   - maintainer-clean maintainer-clean-generic mostlyclean \
959   - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
960   - pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
961   - uninstall-binPROGRAMS uninstall-libLTLIBRARIES
  838 + clean-generic clean-libtool ctags ctags-recursive dist \
  839 + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
  840 + dist-xz dist-zip distcheck distclean distclean-compile \
  841 + distclean-generic distclean-hdr distclean-libtool \
  842 + distclean-tags distcleancheck distdir distuninstallcheck dvi \
  843 + dvi-am html html-am info info-am install install-am \
  844 + install-binPROGRAMS install-data install-data-am install-dvi \
  845 + install-dvi-am install-exec install-exec-am install-html \
  846 + install-html-am install-info install-info-am install-man \
  847 + install-pdf install-pdf-am install-ps install-ps-am \
  848 + install-strip installcheck installcheck-am installdirs \
  849 + installdirs-am maintainer-clean maintainer-clean-generic \
  850 + mostlyclean mostlyclean-compile mostlyclean-generic \
  851 + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  852 + uninstall uninstall-am uninstall-binPROGRAMS
962 853
963 854
964 855 # Tell versions [3.59,3.63) of GNU make to not export all variables.
... ...
1   -#include "bigpoint_token_cryptdec"
2   -
3   -static
4   -void
5   -__construct(struct BIGPOINT_TOKEN_CRYPTDEC * _this, va_list * params)
6   -{
7   - _this->containerFactory = va_arg(* params, struct BIGPOINT_CONTANER_FACTORY *);
8   - _this->crypt = va_arg(* params, struct BIGPOINT_CRYPT *);
9   -}
10   -
11   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_TOKEN_CRPYTDEC_H__
2   -#define __BIGPOINT_TOKEN_CRPYTDEC_H__
3   -
4   -#include "bigpoint_cclass.h"
5   -
6   -
7   -struct BIGPOINT_TOKEN_CRYPTDEC {
8   - const struct BIGPOINT_CCLASS * const class;
9   - struct BIGPOINT_CONTAINTER_FACTORY * containerFactory;
10   - struct BIGPOINT_CRYPT * crypt;
11   -}
12   -
13   -extern const struct BIGPOINT_CCLASS * const BIGPOINT_TOKEN_CRYPTDEC;
14   -
15   -#endif//__BIGPOINT_TOKEN_CRPYTDEC_H__
16   -
17   -// vim: set et ts=4 sw=4:
  1 +#!/bin/sh
  2 +
  3 +libtoolize --copy
  4 +aclocal
  5 +autoconf
  6 +automake --add-missing --copy
... ...
... ... @@ -11927,7 +11927,7 @@ fi
11927 11927 done
11928 11928
11929 11929
11930   -ac_config_files="$ac_config_files Makefile include/Makefile"
  11930 +ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile tests/Makefile"
11931 11931
11932 11932 cat >confcache <<\_ACEOF
11933 11933 # This file is a shell script that caches the results of configure
... ... @@ -12939,7 +12939,9 @@ do
12939 12939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12940 12940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12941 12941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12942 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12942 12943 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12944 + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12943 12945
12944 12946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12945 12947 esac
... ...
... ... @@ -33,5 +33,5 @@ AC_TYPE_SIZE_T
33 33 # Checks for library functions.
34 34 AC_CHECK_FUNCS([memchr memmove memset])
35 35
36   -AC_CONFIG_FILES([Makefile include/Makefile])
  36 +AC_CONFIG_FILES([Makefile src/Makefile include/Makefile tests/Makefile])
37 37 AC_OUTPUT
... ...
... ... @@ -5,71 +5,67 @@
5 5 #include <time.h>
6 6 #include <json/json.h>
7 7
8   -#include "bigpoint/bigpoint_cclass.h"
9   -#include "bigpoint/bigpoint_packet.h"
10   -#include "bigpoint/bigpoint_dyntype.h"
11   -#include "bigpoint/bigpoint_hash.h"
12   -#include "bigpoint/bigpoint_crypt.h"
  8 +#include "token.h"
13 9 #include "base64.h"
14 10
15 11
16 12 void
17   -setHashString(struct BIGPOINT_HASH * hash, const char * key, const char * value)
  13 +setHashString(struct DYNTYPE_HASH * hash, const char * key, const char * value)
18 14 {
19   - struct BIGPOINT_DYNTYPE * dyn;
  15 + struct DYNTYPE * dyn;
20 16
21   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(value), value);
22   - bigpoint_hash_set(hash, key, dyn);
  17 + dyn = new(DYNTYPE, DYNTYPE_TYPE_STRING, strlen(value), value);
  18 + dyntype_hash_set(hash, key, dyn);
23 19 }
24 20
25 21 void
26   -setHashInt(struct BIGPOINT_HASH * hash, const char * key, const int value)
  22 +setHashInt(struct DYNTYPE_HASH * hash, const char * key, const int value)
27 23 {
28   - struct BIGPOINT_DYNTYPE * dyn;
  24 + struct DYNTYPE * dyn;
29 25
30   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), value);
31   - bigpoint_hash_set(hash, key, dyn);
  26 + dyn = new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), value);
  27 + dyntype_hash_set(hash, key, dyn);
32 28 }
33 29
34 30 int
35 31 main(int argc, char * argv[])
36 32 {
37   - struct BIGPOINT_CRYPT * crypt;
38   - struct BIGPOINT_PACKET * packet;
39   - struct BIGPOINT_HASH * data;
40   - struct json_object * json;
41   - const char * json_str;
42   - char * encrypted;
43   - char * b64d;
44   - char pass[] = "1234";
45   - size_t length;
46   -
47   - packet = new(BIGPOINT_PACKET);
48   -
49   - bigpoint_packet_setHeader(
  33 + struct CRYPT * crypt;
  34 + struct PACKET * packet;
  35 + struct DYNTYPE_HASH * data;
  36 + struct json_object * json;
  37 + const char * json_str;
  38 + char * encrypted;
  39 + char * b64d;
  40 + char pass[] = "1234";
  41 + size_t length;
  42 +
  43 + packet = new(PACKET);
  44 +
  45 + packet_setHeader(
50 46 packet,
51   - new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), time(NULL)));
  47 + new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), time(NULL)));
52 48
53   - data = new(BIGPOINT_HASH);
  49 + data = new(DYNTYPE_HASH);
54 50
55 51 setHashString(data, "#C#", "this comes from C");
56 52 setHashString(data, "usr", "ppohg");
57 53 setHashString(data, "pas", "yyyyy");
58 54 setHashInt(data, "val", 321);
59 55
60   - bigpoint_packet_setData(
61   - packet,
62   - new(BIGPOINT_DYNTYPE,
63   - BIGPOINT_DYNTYPE_HASH,
64   - sizeof(struct BIGPOINT_HASH *),
65   - data));
  56 + packet_setData(
  57 + packet,
  58 + new(DYNTYPE,
  59 + DYNTYPE_TYPE_HASH,
  60 + sizeof(struct DYNTYPE_HASH *),
  61 + data));
66 62
67 63 json = toJson(packet);
68 64 json_str = json_object_to_json_string(json);
69 65 length = strlen(json_str);
70 66
71   - crypt = new(BIGPOINT_CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
72   - encrypted = bigpoint_crypt_encrypt(crypt, json_str, pass, &length);
  67 + crypt = new(CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
  68 + encrypted = crypt_encrypt(crypt, json_str, pass, &length);
73 69
74 70 delete(crypt);
75 71 json_object_put(json);
... ... @@ -84,12 +80,12 @@ main(int argc, char * argv[])
84 80 printf("%s\n", b64d);
85 81 free(b64d);
86 82
87   - delete(bigpoint_hash_get(data, "#C#"));
88   - delete(bigpoint_hash_get(data, "usr"));
89   - delete(bigpoint_hash_get(data, "pas"));
90   - delete(bigpoint_hash_get(data, "val"));
91   - delete(bigpoint_packet_getHeader(packet));
92   - delete(bigpoint_packet_getData(packet));
  83 + delete(dyntype_hash_get(data, "#C#"));
  84 + delete(dyntype_hash_get(data, "usr"));
  85 + delete(dyntype_hash_get(data, "pas"));
  86 + delete(dyntype_hash_get(data, "val"));
  87 + delete(packet_getHeader(packet));
  88 + delete(packet_getData(packet));
93 89 delete(packet);
94 90
95 91
... ...
1   -nobase_include_HEADERS = bigpoint/*
  1 +nobase_include_HEADERS = cclass.h crypt.h dyntype.h dyntype/hash.h packet.h
... ...
... ... @@ -70,6 +70,8 @@ am__base_list = \
70 70 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
71 71 am__installdirs = "$(DESTDIR)$(includedir)"
72 72 HEADERS = $(nobase_include_HEADERS)
  73 +ETAGS = etags
  74 +CTAGS = ctags
73 75 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74 76 ACLOCAL = @ACLOCAL@
75 77 AMTAR = @AMTAR@
... ... @@ -184,7 +186,7 @@ target_alias = @target_alias@
184 186 top_build_prefix = @top_build_prefix@
185 187 top_builddir = @top_builddir@
186 188 top_srcdir = @top_srcdir@
187   -nobase_include_HEADERS = bigpoint/*
  189 +nobase_include_HEADERS = cclass.h crypt.h dyntype.h dyntype/hash.h packet.h
188 190 all: all-am
189 191
190 192 .SUFFIXES:
... ... @@ -247,12 +249,58 @@ uninstall-nobase_includeHEADERS:
247 249 test -n "$$files" || exit 0; \
248 250 echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
249 251 cd "$(DESTDIR)$(includedir)" && rm -f $$files
  252 +
  253 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  254 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  255 + unique=`for i in $$list; do \
  256 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  257 + done | \
  258 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  259 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  260 + mkid -fID $$unique
250 261 tags: TAGS
251   -TAGS:
252 262
  263 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  264 + $(TAGS_FILES) $(LISP)
  265 + set x; \
  266 + here=`pwd`; \
  267 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  268 + unique=`for i in $$list; do \
  269 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  270 + done | \
  271 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  272 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  273 + shift; \
  274 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  275 + test -n "$$unique" || unique=$$empty_fix; \
  276 + if test $$# -gt 0; then \
  277 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  278 + "$$@" $$unique; \
  279 + else \
  280 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  281 + $$unique; \
  282 + fi; \
  283 + fi
253 284 ctags: CTAGS
254   -CTAGS:
255   -
  285 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  286 + $(TAGS_FILES) $(LISP)
  287 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  288 + unique=`for i in $$list; do \
  289 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  290 + done | \
  291 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  292 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  293 + test -z "$(CTAGS_ARGS)$$unique" \
  294 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  295 + $$unique
  296 +
  297 +GTAGS:
  298 + here=`$(am__cd) $(top_builddir) && pwd` \
  299 + && $(am__cd) $(top_srcdir) \
  300 + && gtags -i $(GTAGS_ARGS) "$$here"
  301 +
  302 +distclean-tags:
  303 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
256 304
257 305 distdir: $(DISTFILES)
258 306 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
... ... @@ -322,7 +370,7 @@ clean-am: clean-generic clean-libtool mostlyclean-am
322 370
323 371 distclean: distclean-am
324 372 -rm -f Makefile
325   -distclean-am: clean-am distclean-generic
  373 +distclean-am: clean-am distclean-generic distclean-tags
326 374
327 375 dvi: dvi-am
328 376
... ... @@ -384,18 +432,18 @@ uninstall-am: uninstall-nobase_includeHEADERS
384 432
385 433 .MAKE: install-am install-strip
386 434
387   -.PHONY: all all-am check check-am clean clean-generic clean-libtool \
388   - distclean distclean-generic distclean-libtool distdir dvi \
389   - dvi-am html html-am info info-am install install-am \
390   - install-data install-data-am install-dvi install-dvi-am \
391   - install-exec install-exec-am install-html install-html-am \
392   - install-info install-info-am install-man \
393   - install-nobase_includeHEADERS install-pdf install-pdf-am \
394   - install-ps install-ps-am install-strip installcheck \
395   - installcheck-am installdirs maintainer-clean \
396   - maintainer-clean-generic mostlyclean mostlyclean-generic \
397   - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
398   - uninstall-nobase_includeHEADERS
  435 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  436 + clean-libtool ctags distclean distclean-generic \
  437 + distclean-libtool distclean-tags distdir dvi dvi-am html \
  438 + html-am info info-am install install-am install-data \
  439 + install-data-am install-dvi install-dvi-am install-exec \
  440 + install-exec-am install-html install-html-am install-info \
  441 + install-info-am install-man install-nobase_includeHEADERS \
  442 + install-pdf install-pdf-am install-ps install-ps-am \
  443 + install-strip installcheck installcheck-am installdirs \
  444 + maintainer-clean maintainer-clean-generic mostlyclean \
  445 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  446 + tags uninstall uninstall-am uninstall-nobase_includeHEADERS
399 447
400 448
401 449 # Tell versions [3.59,3.63) of GNU make to not export all variables.
... ...
1   -#ifndef __BIGPOINT_H__
2   -#define __BIGPOINT_H__
3   -
4   -#include "bigpoint_cclass.h"
5   -#include "bigpoint_crypt.h"
6   -#include "bigpoint_dyntype.h"
7   -#include "bigpoint_hash.h"
8   -#include "bigpoint_packet.h"
9   -
10   -#endif//__BIGPOINT_H__
11   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_CRYPT_H__
2   -#define __BIGPOINT_CRYPT_H__
3   -
4   -#include <sys/types.h>
5   -
6   -#include "bigpoint_cclass.h"
7   -
8   -
9   -struct BIGPOINT_CRYPT {
10   - const struct BIGPOINT_CCLASS * const class;
11   - const char * algorithm;
12   - const char * mode;
13   - MCRYPT mcrypt;
14   - size_t ivsize;
15   - size_t keysize;
16   - void * iv;
17   -};
18   -
19   -extern const struct BIGPOINT_CCLASS * const BIGPOINT_CRYPT;
20   -
21   -void * bigpoint_crypt_encrypt(
22   - struct BIGPOINT_CRYPT * _this,
23   - const void * const data,
24   - const char * const password,
25   - size_t * length);
26   -
27   -void * bigpoint_crypt_decrypt(
28   - struct BIGPOINT_CRYPT * _this,
29   - const void * const data,
30   - const char * const password,
31   - size_t * length);
32   -
33   -void * bigpoint_crypt_createIv(
34   - struct BIGPOINT_CRYPT * _this);
35   -
36   -void bigpoint_crypt_setIv(
37   - struct BIGPOINT_CRYPT * _this,
38   - const void * const iv);
39   -
40   -void bigpoint_crypt_setIvsize(
41   - struct BIGPOINT_CRYPT * _this,
42   - const size_t size);
43   -
44   -void bigpoint_crypt_setKeysize(
45   - struct BIGPOINT_CRYPT * _this,
46   - const size_t size);
47   -
48   -#endif//__BIGPOINT_CRYPT_H__
49   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_DYNTYPE_H__
2   -#define __BIGPOINT_DYNTYPE_H__
3   -
4   -#include <sys/types.h>
5   -
6   -#include "bigpoint_cclass.h"
7   -
8   -struct BIGPOINT_DYNTYPE;
9   -
10   -#include "bigpoint_hash.h"
11   -
12   -
13   -enum BIGPOINT_DYNTYPE_TYPES {
14   - BIGPOINT_DYNTYPE_NULL = 0,
15   - BIGPOINT_DYNTYPE_BOOLEAN,
16   - BIGPOINT_DYNTYPE_INT,
17   - BIGPOINT_DYNTYPE_FLOAT,
18   - BIGPOINT_DYNTYPE_STRING,
19   - BIGPOINT_DYNTYPE_ARRAY,
20   - BIGPOINT_DYNTYPE_HASH
21   -};
22   -
23   -
24   -struct BIGPOINT_DYNTYPE {
25   - const struct BIGPOINT_CCLASS * const class;
26   - enum BIGPOINT_DYNTYPE_TYPES type;
27   - size_t size;
28   - union _data {
29   - unsigned char _boolean;
30   - int _int;
31   - double _float;
32   - char * _string;
33   - struct BIGPOINT_DYNTYPE ** _array;
34   - struct BIGPOINT_HASH * _hash;
35   - } data;
36   -};
37   -
38   -extern const struct BIGPOINT_CCLASS * const BIGPOINT_DYNTYPE;
39   -
40   -#endif//__BIGPOINT_DYNTYPE_H__
41   -
42   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_HASH_H__
2   -#define __BIGPOINT_HASH_H__
3   -
4   -#include <sys/types.h>
5   -
6   -#include "bigpoint_cclass.h"
7   -#include "bigpoint_dyntype.h"
8   -
9   -
10   -struct BIGPOINT_HASH {
11   - const struct BIGPOINT_CCLASS * const class;
12   - char ** keys;
13   - struct BIGPOINT_DYNTYPE ** values;
14   - size_t size;
15   - size_t used;
16   -};
17   -
18   -extern const struct BIGPOINT_CCLASS * const BIGPOINT_HASH;
19   -
20   -void bigpoint_hash_set(struct BIGPOINT_HASH * _this,
21   - const char * key,
22   - struct BIGPOINT_DYNTYPE * value);
23   -
24   -struct BIGPOINT_DYNTYPE *
25   -bigpoint_hash_get(struct BIGPOINT_HASH * _this, const char * key);
26   -
27   -struct BIGPOINT_DYNTYPE *
28   -bigpoint_hash_del(struct BIGPOINT_HASH * _this, const char * key);
29   -
30   -#endif//__BIGPOINT_HASH_H__
31   -
32   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_PACKET_H__
2   -#define __BIGPOINT_PACKET_H__
3   -
4   -#include "bigpoint_cclass.h"
5   -#include "bigpoint_dyntype.h"
6   -
7   -
8   -enum BIGPOINT_PACKET_CONTENT_KEYS {
9   - BIGPOINT_PACKET_HEADER = 0,
10   - BIGPOINT_PACKET_DATA
11   -};
12   -
13   -struct BIGPOINT_PACKET {
14   - const struct BIGPOINT_CCLASS * const class;
15   - struct BIGPOINT_DYNTYPE * content[2];
16   -};
17   -
18   -extern const struct BIGPOINT_CCLASS * const BIGPOINT_PACKET;
19   -
20   -struct BIGPOINT_DYNTYPE * bigpoint_packet_getHeader(
21   - struct BIGPOINT_PACKET * _this);
22   -
23   -struct BIGPOINT_DYNTYPE * bigpoint_packet_getData(
24   - struct BIGPOINT_PACKET * _this);
25   -
26   -void bigpoint_packet_setHeader(
27   - struct BIGPOINT_PACKET * _this,
28   - struct BIGPOINT_DYNTYPE * header);
29   -
30   -void bigpoint_packet_setData(
31   - struct BIGPOINT_PACKET * _this,
32   - struct BIGPOINT_DYNTYPE * data);
33   -
34   -void bigpoint_packet_set_default_content(
35   - struct BIGPOINT_PACKET * _this);
36   -
37   -#endif//__BIGPOINT_PACKET_H__
38   -
39   -// vim: set et ts=4 sw=4:
1   -#ifndef __BIGPOINT_CCLASS_H__
2   -#define __BIGPOINT_CCLASS_H__
  1 +#ifndef __CCLASS_H__
  2 +#define __CCLASS_H__
3 3
4 4 #include <stdarg.h>
5 5 #include <sys/types.h>
... ... @@ -11,7 +11,7 @@ typedef void (* jCtor)(void *, struct json_object *);
11 11 typedef struct json_object * (* jTo)(void *);
12 12
13 13
14   -struct BIGPOINT_CCLASS {
  14 +struct CCLASS {
15 15 size_t size;
16 16 void (* __construct)(void * _this, va_list * params);
17 17 void (* __jsonConst)(void * _this, struct json_object * json);
... ... @@ -31,6 +31,6 @@ delete(void * _object);
31 31 struct json_object *
32 32 toJson(void * _object);
33 33
34   -#endif//__BIGPOINT_CCLASS_H__
  34 +#endif//__CCLASS_H__
35 35
36 36 // vim: set et ts=4 sw=4:
... ...
  1 +#ifndef __CRYPT_H__
  2 +#define __CRYPT_H__
  3 +
  4 +#include <sys/types.h>
  5 +
  6 +#include "cclass.h"
  7 +
  8 +
  9 +struct CRYPT {
  10 + const struct CCLASS * const class;
  11 + const char * algorithm;
  12 + const char * mode;
  13 + MCRYPT mcrypt;
  14 + size_t ivsize;
  15 + size_t keysize;
  16 + void * iv;
  17 +};
  18 +
  19 +extern const struct CCLASS * const CRYPT;
  20 +
  21 +void * crypt_encrypt(
  22 + struct CRYPT * _this,
  23 + const void * const data,
  24 + const char * const password,
  25 + size_t * length);
  26 +
  27 +void * crypt_decrypt(
  28 + struct CRYPT * _this,
  29 + const void * const data,
  30 + const char * const password,
  31 + size_t * length);
  32 +
  33 +void * crypt_createIv(
  34 + struct CRYPT * _this);
  35 +
  36 +void crypt_setIv(
  37 + struct CRYPT * _this,
  38 + const void * const iv);
  39 +
  40 +void crypt_setIvsize(
  41 + struct CRYPT * _this,
  42 + const size_t size);
  43 +
  44 +void crypt_setKeysize(
  45 + struct CRYPT * _this,
  46 + const size_t size);
  47 +
  48 +#endif//__CRYPT_H__
  49 +// vim: set et ts=4 sw=4:
... ...
  1 +#ifndef __DYNTYPE_H__
  2 +#define __DYNTYPE_H__
  3 +
  4 +#include <sys/types.h>
  5 +
  6 +#include "cclass.h"
  7 +
  8 +struct DYNTYPE;
  9 +
  10 +#include "dyntype/hash.h"
  11 +
  12 +
  13 +enum DYNTYPE_TYPES {
  14 + DYNTYPE_TYPE_NULL = 0,
  15 + DYNTYPE_TYPE_BOOLEAN,
  16 + DYNTYPE_TYPE_INT,
  17 + DYNTYPE_TYPE_FLOAT,
  18 + DYNTYPE_TYPE_STRING,
  19 + DYNTYPE_TYPE_ARRAY,
  20 + DYNTYPE_TYPE_HASH
  21 +};
  22 +
  23 +
  24 +struct DYNTYPE {
  25 + const struct CCLASS * const class;
  26 + enum DYNTYPE_TYPES type;
  27 + size_t size;
  28 + union _data {
  29 + unsigned char _boolean;
  30 + int _int;
  31 + double _float;
  32 + char * _string;
  33 + struct DYNTYPE ** _array;
  34 + struct DYNTYPE_HASH * _hash;
  35 + } data;
  36 +};
  37 +
  38 +extern const struct CCLASS * const DYNTYPE;
  39 +
  40 +#endif//__DYNTYPE_H__
  41 +
  42 +// vim: set et ts=4 sw=4:
... ...
  1 +#ifndef __DYNTYPE_HASH_H__
  2 +#define __DYNTYPE_HASH_H__
  3 +
  4 +#include <sys/types.h>
  5 +
  6 +#include "cclass.h"
  7 +#include "dyntype.h"
  8 +
  9 +
  10 +struct DYNTYPE_HASH {
  11 + const struct CCLASS * const class;
  12 + char ** keys;
  13 + struct DYNTYPE ** values;
  14 + size_t size;
  15 + size_t used;
  16 +};
  17 +
  18 +extern const struct CCLASS * const DYNTYPE_HASH;
  19 +
  20 +void dyntype_hash_set(struct DYNTYPE_HASH * _this,
  21 + const char * key,
  22 + struct DYNTYPE * value);
  23 +
  24 +struct DYNTYPE *
  25 +dyntype_hash_get(struct DYNTYPE_HASH * _this, const char * key);
  26 +
  27 +struct DYNTYPE *
  28 +dyntype_hash_del(struct DYNTYPE_HASH * _this, const char * key);
  29 +
  30 +#endif//__DYNTYPE_HASH_H__
  31 +
  32 +// vim: set et ts=4 sw=4:
... ...
  1 +#ifndef __PACKET_H__
  2 +#define __PACKET_H__
  3 +
  4 +#include "cclass.h"
  5 +#include "dyntype.h"
  6 +
  7 +
  8 +enum PACKET_CONTENT_KEYS {
  9 + PACKET_HEADER = 0,
  10 + PACKET_DATA
  11 +};
  12 +
  13 +struct PACKET {
  14 + const struct CCLASS * const class;
  15 + struct DYNTYPE * content[2];
  16 +};
  17 +
  18 +extern const struct CCLASS * const PACKET;
  19 +
  20 +struct DYNTYPE * packet_getHeader(
  21 + struct PACKET * _this);
  22 +
  23 +struct DYNTYPE * packet_getData(
  24 + struct PACKET * _this);
  25 +
  26 +void packet_setHeader(
  27 + struct PACKET * _this,
  28 + struct DYNTYPE * header);
  29 +
  30 +void packet_setData(
  31 + struct PACKET * _this,
  32 + struct DYNTYPE * data);
  33 +
  34 +void packet_set_default_content(
  35 + struct PACKET * _this);
  36 +
  37 +#endif//__PACKET_H__
  38 +
  39 +// vim: set et ts=4 sw=4:
... ...
  1 +#ifndef __TOKEN_H__
  2 +#define __TOKEN_H__
  3 +
  4 +#include "cclass.h"
  5 +#include "crypt.h"
  6 +#include "dyntype.h"
  7 +#include "dyntype/hash.h"
  8 +#include "packet.h"
  9 +
  10 +#endif//__TOKEN_H__
  11 +// vim: set et ts=4 sw=4:
... ...
  1 +ACLOCAL_AMFLAGS = -I m4
  2 +
  3 +lib_LTLIBRARIES = libtoken.la
  4 +libtoken_la_SOURCES = cclass.c crypt.c dyntype.c dyntype/hash.c packet.c
  5 +libtoken_la_CFLAGS = -I ../include
  6 +libtoken_la_LDFLAGS = -version-info 0:0:0
... ...
  1 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  2 +# @configure_input@
  3 +
  4 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  5 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  6 +# Inc.
  7 +# This Makefile.in is free software; the Free Software Foundation
  8 +# gives unlimited permission to copy and/or distribute it,
  9 +# with or without modifications, as long as this notice is preserved.
  10 +
  11 +# This program is distributed in the hope that it will be useful,
  12 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  13 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  14 +# PARTICULAR PURPOSE.
  15 +
  16 +@SET_MAKE@
  17 +
  18 +VPATH = @srcdir@
  19 +pkgdatadir = $(datadir)/@PACKAGE@
  20 +pkgincludedir = $(includedir)/@PACKAGE@
  21 +pkglibdir = $(libdir)/@PACKAGE@
  22 +pkglibexecdir = $(libexecdir)/@PACKAGE@
  23 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  24 +install_sh_DATA = $(install_sh) -c -m 644
  25 +install_sh_PROGRAM = $(install_sh) -c
  26 +install_sh_SCRIPT = $(install_sh) -c
  27 +INSTALL_HEADER = $(INSTALL_DATA)
  28 +transform = $(program_transform_name)
  29 +NORMAL_INSTALL = :
  30 +PRE_INSTALL = :
  31 +POST_INSTALL = :
  32 +NORMAL_UNINSTALL = :
  33 +PRE_UNINSTALL = :
  34 +POST_UNINSTALL = :
  35 +build_triplet = @build@
  36 +host_triplet = @host@
  37 +subdir = src
  38 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  39 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  40 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  41 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  42 + $(ACLOCAL_M4)
  43 +mkinstalldirs = $(install_sh) -d
  44 +CONFIG_HEADER = $(top_builddir)/config.h
  45 +CONFIG_CLEAN_FILES =
  46 +CONFIG_CLEAN_VPATH_FILES =
  47 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  48 +am__vpath_adj = case $$p in \
  49 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  50 + *) f=$$p;; \
  51 + esac;
  52 +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  53 +am__install_max = 40
  54 +am__nobase_strip_setup = \
  55 + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  56 +am__nobase_strip = \
  57 + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  58 +am__nobase_list = $(am__nobase_strip_setup); \
  59 + for p in $$list; do echo "$$p $$p"; done | \
  60 + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61 + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62 + if (++n[$$2] == $(am__install_max)) \
  63 + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  64 + END { for (dir in files) print dir, files[dir] }'
  65 +am__base_list = \
  66 + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  67 + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  68 +am__installdirs = "$(DESTDIR)$(libdir)"
  69 +LTLIBRARIES = $(lib_LTLIBRARIES)
  70 +libtoken_la_LIBADD =
  71 +am_libtoken_la_OBJECTS = libtoken_la-cclass.lo libtoken_la-crypt.lo \
  72 + libtoken_la-dyntype.lo libtoken_la-hash.lo \
  73 + libtoken_la-packet.lo
  74 +libtoken_la_OBJECTS = $(am_libtoken_la_OBJECTS)
  75 +libtoken_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  76 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libtoken_la_CFLAGS) \
  77 + $(CFLAGS) $(libtoken_la_LDFLAGS) $(LDFLAGS) -o $@
  78 +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  79 +depcomp = $(SHELL) $(top_srcdir)/depcomp
  80 +am__depfiles_maybe = depfiles
  81 +am__mv = mv -f
  82 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  83 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  84 +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  85 + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  86 + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87 +CCLD = $(CC)
  88 +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  89 + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  90 + $(LDFLAGS) -o $@
  91 +SOURCES = $(libtoken_la_SOURCES)
  92 +DIST_SOURCES = $(libtoken_la_SOURCES)
  93 +ETAGS = etags
  94 +CTAGS = ctags
  95 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  96 +ACLOCAL = @ACLOCAL@
  97 +AMTAR = @AMTAR@
  98 +AR = @AR@
  99 +AUTOCONF = @AUTOCONF@
  100 +AUTOHEADER = @AUTOHEADER@
  101 +AUTOMAKE = @AUTOMAKE@
  102 +AWK = @AWK@
  103 +CC = @CC@
  104 +CCDEPMODE = @CCDEPMODE@
  105 +CFLAGS = @CFLAGS@
  106 +CPP = @CPP@
  107 +CPPFLAGS = @CPPFLAGS@
  108 +CYGPATH_W = @CYGPATH_W@
  109 +DEFS = @DEFS@
  110 +DEPDIR = @DEPDIR@
  111 +DLLTOOL = @DLLTOOL@
  112 +DSYMUTIL = @DSYMUTIL@
  113 +DUMPBIN = @DUMPBIN@
  114 +ECHO_C = @ECHO_C@
  115 +ECHO_N = @ECHO_N@
  116 +ECHO_T = @ECHO_T@
  117 +EGREP = @EGREP@
  118 +EXEEXT = @EXEEXT@
  119 +FGREP = @FGREP@
  120 +GREP = @GREP@
  121 +INSTALL = @INSTALL@
  122 +INSTALL_DATA = @INSTALL_DATA@
  123 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  124 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  125 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  126 +LD = @LD@
  127 +LDFLAGS = @LDFLAGS@
  128 +LIBOBJS = @LIBOBJS@
  129 +LIBS = @LIBS@
  130 +LIBTOOL = @LIBTOOL@
  131 +LIPO = @LIPO@
  132 +LN_S = @LN_S@
  133 +LTLIBOBJS = @LTLIBOBJS@
  134 +MAKEINFO = @MAKEINFO@
  135 +MANIFEST_TOOL = @MANIFEST_TOOL@
  136 +MKDIR_P = @MKDIR_P@
  137 +NM = @NM@
  138 +NMEDIT = @NMEDIT@
  139 +OBJDUMP = @OBJDUMP@
  140 +OBJEXT = @OBJEXT@
  141 +OTOOL = @OTOOL@
  142 +OTOOL64 = @OTOOL64@
  143 +PACKAGE = @PACKAGE@
  144 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  145 +PACKAGE_NAME = @PACKAGE_NAME@
  146 +PACKAGE_STRING = @PACKAGE_STRING@
  147 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  148 +PACKAGE_URL = @PACKAGE_URL@
  149 +PACKAGE_VERSION = @PACKAGE_VERSION@
  150 +PATH_SEPARATOR = @PATH_SEPARATOR@
  151 +RANLIB = @RANLIB@
  152 +SED = @SED@
  153 +SET_MAKE = @SET_MAKE@
  154 +SHELL = @SHELL@
  155 +STRIP = @STRIP@
  156 +VERSION = @VERSION@
  157 +abs_builddir = @abs_builddir@
  158 +abs_srcdir = @abs_srcdir@
  159 +abs_top_builddir = @abs_top_builddir@
  160 +abs_top_srcdir = @abs_top_srcdir@
  161 +ac_ct_AR = @ac_ct_AR@
  162 +ac_ct_CC = @ac_ct_CC@
  163 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  164 +am__include = @am__include@
  165 +am__leading_dot = @am__leading_dot@
  166 +am__quote = @am__quote@
  167 +am__tar = @am__tar@
  168 +am__untar = @am__untar@
  169 +bindir = @bindir@
  170 +build = @build@
  171 +build_alias = @build_alias@
  172 +build_cpu = @build_cpu@
  173 +build_os = @build_os@
  174 +build_vendor = @build_vendor@
  175 +builddir = @builddir@
  176 +datadir = @datadir@
  177 +datarootdir = @datarootdir@
  178 +docdir = @docdir@
  179 +dvidir = @dvidir@
  180 +exec_prefix = @exec_prefix@
  181 +host = @host@
  182 +host_alias = @host_alias@
  183 +host_cpu = @host_cpu@
  184 +host_os = @host_os@
  185 +host_vendor = @host_vendor@
  186 +htmldir = @htmldir@
  187 +includedir = @includedir@
  188 +infodir = @infodir@
  189 +install_sh = @install_sh@
  190 +libdir = @libdir@
  191 +libexecdir = @libexecdir@
  192 +localedir = @localedir@
  193 +localstatedir = @localstatedir@
  194 +mandir = @mandir@
  195 +mkdir_p = @mkdir_p@
  196 +oldincludedir = @oldincludedir@
  197 +pdfdir = @pdfdir@
  198 +prefix = @prefix@
  199 +program_transform_name = @program_transform_name@
  200 +psdir = @psdir@
  201 +sbindir = @sbindir@
  202 +sharedstatedir = @sharedstatedir@
  203 +srcdir = @srcdir@
  204 +sysconfdir = @sysconfdir@
  205 +target_alias = @target_alias@
  206 +top_build_prefix = @top_build_prefix@
  207 +top_builddir = @top_builddir@
  208 +top_srcdir = @top_srcdir@
  209 +ACLOCAL_AMFLAGS = -I m4
  210 +lib_LTLIBRARIES = libtoken.la
  211 +libtoken_la_SOURCES = cclass.c crypt.c dyntype.c dyntype/hash.c packet.c
  212 +libtoken_la_CFLAGS = -I ../include
  213 +libtoken_la_LDFLAGS = -version-info 0:0:0
  214 +all: all-am
  215 +
  216 +.SUFFIXES:
  217 +.SUFFIXES: .c .lo .o .obj
  218 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  219 + @for dep in $?; do \
  220 + case '$(am__configure_deps)' in \
  221 + *$$dep*) \
  222 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  223 + && { if test -f $@; then exit 0; else break; fi; }; \
  224 + exit 1;; \
  225 + esac; \
  226 + done; \
  227 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  228 + $(am__cd) $(top_srcdir) && \
  229 + $(AUTOMAKE) --gnu src/Makefile
  230 +.PRECIOUS: Makefile
  231 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  232 + @case '$?' in \
  233 + *config.status*) \
  234 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  235 + *) \
  236 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  237 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  238 + esac;
  239 +
  240 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  241 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  242 +
  243 +$(top_srcdir)/configure: $(am__configure_deps)
  244 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  245 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  246 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  247 +$(am__aclocal_m4_deps):
  248 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  249 + @$(NORMAL_INSTALL)
  250 + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  251 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  252 + list2=; for p in $$list; do \
  253 + if test -f $$p; then \
  254 + list2="$$list2 $$p"; \
  255 + else :; fi; \
  256 + done; \
  257 + test -z "$$list2" || { \
  258 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  259 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  260 + }
  261 +
  262 +uninstall-libLTLIBRARIES:
  263 + @$(NORMAL_UNINSTALL)
  264 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  265 + for p in $$list; do \
  266 + $(am__strip_dir) \
  267 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  268 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  269 + done
  270 +
  271 +clean-libLTLIBRARIES:
  272 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  273 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  274 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  275 + test "$$dir" != "$$p" || dir=.; \
  276 + echo "rm -f \"$${dir}/so_locations\""; \
  277 + rm -f "$${dir}/so_locations"; \
  278 + done
  279 +libtoken.la: $(libtoken_la_OBJECTS) $(libtoken_la_DEPENDENCIES)
  280 + $(libtoken_la_LINK) -rpath $(libdir) $(libtoken_la_OBJECTS) $(libtoken_la_LIBADD) $(LIBS)
  281 +
  282 +mostlyclean-compile:
  283 + -rm -f *.$(OBJEXT)
  284 +
  285 +distclean-compile:
  286 + -rm -f *.tab.c
  287 +
  288 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtoken_la-cclass.Plo@am__quote@
  289 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtoken_la-crypt.Plo@am__quote@
  290 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtoken_la-dyntype.Plo@am__quote@
  291 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtoken_la-hash.Plo@am__quote@
  292 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtoken_la-packet.Plo@am__quote@
  293 +
  294 +.c.o:
  295 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  296 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  297 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  298 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  299 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  300 +
  301 +.c.obj:
  302 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  303 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  304 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  305 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  306 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  307 +
  308 +.c.lo:
  309 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  310 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  311 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  312 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  313 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  314 +
  315 +libtoken_la-cclass.lo: cclass.c
  316 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -MT libtoken_la-cclass.lo -MD -MP -MF $(DEPDIR)/libtoken_la-cclass.Tpo -c -o libtoken_la-cclass.lo `test -f 'cclass.c' || echo '$(srcdir)/'`cclass.c
  317 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libtoken_la-cclass.Tpo $(DEPDIR)/libtoken_la-cclass.Plo
  318 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cclass.c' object='libtoken_la-cclass.lo' libtool=yes @AMDEPBACKSLASH@
  319 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  320 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -c -o libtoken_la-cclass.lo `test -f 'cclass.c' || echo '$(srcdir)/'`cclass.c
  321 +
  322 +libtoken_la-crypt.lo: crypt.c
  323 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -MT libtoken_la-crypt.lo -MD -MP -MF $(DEPDIR)/libtoken_la-crypt.Tpo -c -o libtoken_la-crypt.lo `test -f 'crypt.c' || echo '$(srcdir)/'`crypt.c
  324 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libtoken_la-crypt.Tpo $(DEPDIR)/libtoken_la-crypt.Plo
  325 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='crypt.c' object='libtoken_la-crypt.lo' libtool=yes @AMDEPBACKSLASH@
  326 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  327 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -c -o libtoken_la-crypt.lo `test -f 'crypt.c' || echo '$(srcdir)/'`crypt.c
  328 +
  329 +libtoken_la-dyntype.lo: dyntype.c
  330 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -MT libtoken_la-dyntype.lo -MD -MP -MF $(DEPDIR)/libtoken_la-dyntype.Tpo -c -o libtoken_la-dyntype.lo `test -f 'dyntype.c' || echo '$(srcdir)/'`dyntype.c
  331 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libtoken_la-dyntype.Tpo $(DEPDIR)/libtoken_la-dyntype.Plo
  332 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dyntype.c' object='libtoken_la-dyntype.lo' libtool=yes @AMDEPBACKSLASH@
  333 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  334 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -c -o libtoken_la-dyntype.lo `test -f 'dyntype.c' || echo '$(srcdir)/'`dyntype.c
  335 +
  336 +libtoken_la-hash.lo: dyntype/hash.c
  337 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -MT libtoken_la-hash.lo -MD -MP -MF $(DEPDIR)/libtoken_la-hash.Tpo -c -o libtoken_la-hash.lo `test -f 'dyntype/hash.c' || echo '$(srcdir)/'`dyntype/hash.c
  338 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libtoken_la-hash.Tpo $(DEPDIR)/libtoken_la-hash.Plo
  339 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dyntype/hash.c' object='libtoken_la-hash.lo' libtool=yes @AMDEPBACKSLASH@
  340 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  341 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -c -o libtoken_la-hash.lo `test -f 'dyntype/hash.c' || echo '$(srcdir)/'`dyntype/hash.c
  342 +
  343 +libtoken_la-packet.lo: packet.c
  344 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -MT libtoken_la-packet.lo -MD -MP -MF $(DEPDIR)/libtoken_la-packet.Tpo -c -o libtoken_la-packet.lo `test -f 'packet.c' || echo '$(srcdir)/'`packet.c
  345 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libtoken_la-packet.Tpo $(DEPDIR)/libtoken_la-packet.Plo
  346 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='packet.c' object='libtoken_la-packet.lo' libtool=yes @AMDEPBACKSLASH@
  347 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  348 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libtoken_la_CFLAGS) $(CFLAGS) -c -o libtoken_la-packet.lo `test -f 'packet.c' || echo '$(srcdir)/'`packet.c
  349 +
  350 +mostlyclean-libtool:
  351 + -rm -f *.lo
  352 +
  353 +clean-libtool:
  354 + -rm -rf .libs _libs
  355 +
  356 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  357 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  358 + unique=`for i in $$list; do \
  359 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  360 + done | \
  361 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  362 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  363 + mkid -fID $$unique
  364 +tags: TAGS
  365 +
  366 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  367 + $(TAGS_FILES) $(LISP)
  368 + set x; \
  369 + here=`pwd`; \
  370 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  371 + unique=`for i in $$list; do \
  372 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  373 + done | \
  374 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  375 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  376 + shift; \
  377 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  378 + test -n "$$unique" || unique=$$empty_fix; \
  379 + if test $$# -gt 0; then \
  380 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  381 + "$$@" $$unique; \
  382 + else \
  383 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  384 + $$unique; \
  385 + fi; \
  386 + fi
  387 +ctags: CTAGS
  388 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  389 + $(TAGS_FILES) $(LISP)
  390 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  391 + unique=`for i in $$list; do \
  392 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  393 + done | \
  394 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  395 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  396 + test -z "$(CTAGS_ARGS)$$unique" \
  397 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  398 + $$unique
  399 +
  400 +GTAGS:
  401 + here=`$(am__cd) $(top_builddir) && pwd` \
  402 + && $(am__cd) $(top_srcdir) \
  403 + && gtags -i $(GTAGS_ARGS) "$$here"
  404 +
  405 +distclean-tags:
  406 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  407 +
  408 +distdir: $(DISTFILES)
  409 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  410 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  411 + list='$(DISTFILES)'; \
  412 + dist_files=`for file in $$list; do echo $$file; done | \
  413 + sed -e "s|^$$srcdirstrip/||;t" \
  414 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  415 + case $$dist_files in \
  416 + */*) $(MKDIR_P) `echo "$$dist_files" | \
  417 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  418 + sort -u` ;; \
  419 + esac; \
  420 + for file in $$dist_files; do \
  421 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  422 + if test -d $$d/$$file; then \
  423 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  424 + if test -d "$(distdir)/$$file"; then \
  425 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  426 + fi; \
  427 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  428 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  429 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  430 + fi; \
  431 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  432 + else \
  433 + test -f "$(distdir)/$$file" \
  434 + || cp -p $$d/$$file "$(distdir)/$$file" \
  435 + || exit 1; \
  436 + fi; \
  437 + done
  438 +check-am: all-am
  439 +check: check-am
  440 +all-am: Makefile $(LTLIBRARIES)
  441 +installdirs:
  442 + for dir in "$(DESTDIR)$(libdir)"; do \
  443 + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  444 + done
  445 +install: install-am
  446 +install-exec: install-exec-am
  447 +install-data: install-data-am
  448 +uninstall: uninstall-am
  449 +
  450 +install-am: all-am
  451 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  452 +
  453 +installcheck: installcheck-am
  454 +install-strip:
  455 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  456 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  457 + `test -z '$(STRIP)' || \
  458 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  459 +mostlyclean-generic:
  460 +
  461 +clean-generic:
  462 +
  463 +distclean-generic:
  464 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  465 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  466 +
  467 +maintainer-clean-generic:
  468 + @echo "This command is intended for maintainers to use"
  469 + @echo "it deletes files that may require special tools to rebuild."
  470 +clean: clean-am
  471 +
  472 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  473 + mostlyclean-am
  474 +
  475 +distclean: distclean-am
  476 + -rm -rf ./$(DEPDIR)
  477 + -rm -f Makefile
  478 +distclean-am: clean-am distclean-compile distclean-generic \
  479 + distclean-tags
  480 +
  481 +dvi: dvi-am
  482 +
  483 +dvi-am:
  484 +
  485 +html: html-am
  486 +
  487 +html-am:
  488 +
  489 +info: info-am
  490 +
  491 +info-am:
  492 +
  493 +install-data-am:
  494 +
  495 +install-dvi: install-dvi-am
  496 +
  497 +install-dvi-am:
  498 +
  499 +install-exec-am: install-libLTLIBRARIES
  500 +
  501 +install-html: install-html-am
  502 +
  503 +install-html-am:
  504 +
  505 +install-info: install-info-am
  506 +
  507 +install-info-am:
  508 +
  509 +install-man:
  510 +
  511 +install-pdf: install-pdf-am
  512 +
  513 +install-pdf-am:
  514 +
  515 +install-ps: install-ps-am
  516 +
  517 +install-ps-am:
  518 +
  519 +installcheck-am:
  520 +
  521 +maintainer-clean: maintainer-clean-am
  522 + -rm -rf ./$(DEPDIR)
  523 + -rm -f Makefile
  524 +maintainer-clean-am: distclean-am maintainer-clean-generic
  525 +
  526 +mostlyclean: mostlyclean-am
  527 +
  528 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  529 + mostlyclean-libtool
  530 +
  531 +pdf: pdf-am
  532 +
  533 +pdf-am:
  534 +
  535 +ps: ps-am
  536 +
  537 +ps-am:
  538 +
  539 +uninstall-am: uninstall-libLTLIBRARIES
  540 +
  541 +.MAKE: install-am install-strip
  542 +
  543 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  544 + clean-libLTLIBRARIES clean-libtool ctags distclean \
  545 + distclean-compile distclean-generic distclean-libtool \
  546 + distclean-tags distdir dvi dvi-am html html-am info info-am \
  547 + install install-am install-data install-data-am install-dvi \
  548 + install-dvi-am install-exec install-exec-am install-html \
  549 + install-html-am install-info install-info-am \
  550 + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  551 + install-ps install-ps-am install-strip installcheck \
  552 + installcheck-am installdirs maintainer-clean \
  553 + maintainer-clean-generic mostlyclean mostlyclean-compile \
  554 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  555 + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  556 +
  557 +
  558 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  559 +# Otherwise a system limit (for SysV at least) may be exceeded.
  560 +.NOEXPORT:
... ...
... ... @@ -3,16 +3,16 @@
3 3 #include <stdlib.h>
4 4 #include <json/json.h>
5 5
6   -#include "bigpoint/bigpoint_cclass.h"
  6 +#include "cclass.h"
7 7
8 8
9 9 void *
10 10 new(const void * _class, ...)
11 11 {
12   - const struct BIGPOINT_CCLASS * class = _class;
13   - void * object = calloc(1, class->size);
  12 + const struct CCLASS * class = _class;
  13 + void * object = calloc(1, class->size);
14 14
15   - * (const struct BIGPOINT_CCLASS **) object = class;
  15 + * (const struct CCLASS **) object = class;
16 16
17 17 if (class->__construct) {
18 18 va_list params;
... ... @@ -28,10 +28,10 @@ new(const void * _class, ...)
28 28 void *
29 29 newFromJson(const void * _class, struct json_object * json)
30 30 {
31   - const struct BIGPOINT_CCLASS * class = _class;
32   - void * object = calloc(1, class->size);
  31 + const struct CCLASS * class = _class;
  32 + void * object = calloc(1, class->size);
33 33
34   - * (const struct BIGPOINT_CCLASS **) object = class;
  34 + * (const struct CCLASS **) object = class;
35 35
36 36 if (class->__jsonConst && json) {
37 37 class->__jsonConst(object, json);
... ... @@ -43,7 +43,7 @@ newFromJson(const void * _class, struct json_object * json)
43 43 void
44 44 delete(void * _object)
45 45 {
46   - const struct BIGPOINT_CCLASS ** class = _object;
  46 + const struct CCLASS ** class = _object;
47 47
48 48 if (_object && *class && (*class)->__destruct) {
49 49 (*class)->__destruct(_object);
... ... @@ -55,7 +55,7 @@ delete(void * _object)
55 55 struct json_object *
56 56 toJson(void * _object)
57 57 {
58   - const struct BIGPOINT_CCLASS ** class = _object;
  58 + const struct CCLASS ** class = _object;
59 59
60 60 if (_object && *class && (*class)->__toJson) {
61 61 return (*class)->__toJson(_object);
... ...
... ... @@ -7,12 +7,13 @@
7 7 #include <mcrypt.h>
8 8 #include <mhash.h>
9 9
10   -#include "bigpoint/bigpoint_crypt.h"
  10 +#include "cclass.h"
  11 +#include "crypt.h"
11 12
12 13
13 14 static
14 15 void
15   -__construct(struct BIGPOINT_CRYPT * _this, va_list * params)
  16 +__construct(struct CRYPT * _this, va_list * params)
16 17 {
17 18 _this->algorithm = va_arg(* params, const char * const);
18 19 _this->mode = va_arg(* params, const char * const);
... ... @@ -29,7 +30,7 @@ __construct(struct BIGPOINT_CRYPT * _this, va_list * params)
29 30
30 31 static
31 32 void
32   -__destruct(struct BIGPOINT_CRYPT * _this)
  33 +__destruct(struct CRYPT * _this)
33 34 {
34 35 if (_this->iv) {
35 36 free(_this->iv);
... ... @@ -39,26 +40,18 @@ __destruct(struct BIGPOINT_CRYPT * _this)
39 40 }
40 41
41 42 static const
42   -struct BIGPOINT_CCLASS _bigpoint_crypt = {
43   - sizeof(struct BIGPOINT_CRYPT),
  43 +struct CCLASS _crypt = {
  44 + sizeof(struct CRYPT),
44 45 (ctor)__construct,
45 46 NULL,
46 47 (dtor)__destruct,
47 48 NULL
48 49 };
49 50
50   -const struct BIGPOINT_CCLASS * const BIGPOINT_CRYPT = &_bigpoint_crypt;
51   -
52   -static
53   -void
54   -mcrypt_close(MCRYPT * mcrypt)
55   -{
56   - mcrypt_free(*mcrypt);
57   - *mcrypt = NULL;
58   -}
  51 +const struct CCLASS * const CRYPT = &_crypt;
59 52
60 53 void *
61   -bigpoint_crypt_createIv(struct BIGPOINT_CRYPT * _this)
  54 +crypt_createIv(struct CRYPT * _this)
62 55 {
63 56 int urandom;
64 57 size_t rsize = 0;
... ... @@ -79,7 +72,7 @@ bigpoint_crypt_createIv(struct BIGPOINT_CRYPT * _this)
79 72
80 73 static
81 74 void *
82   -createKey(struct BIGPOINT_CRYPT * _this, const char * const password)
  75 +createKey(struct CRYPT * _this, const char * const password)
83 76 {
84 77 void * key = NULL;
85 78
... ... @@ -100,8 +93,8 @@ createKey(struct BIGPOINT_CRYPT * _this, const char * const password)
100 93 }
101 94
102 95 void *
103   -bigpoint_crypt_encrypt(
104   - struct BIGPOINT_CRYPT * _this,
  96 +crypt_encrypt(
  97 + struct CRYPT * _this,
105 98 const void * const data,
106 99 const char * const password,
107 100 size_t * length)
... ... @@ -114,7 +107,7 @@ bigpoint_crypt_encrypt(
114 107 if(_this->iv) {
115 108 iv = _this->iv;
116 109 } else {
117   - iv = bigpoint_crypt_createIv(_this);
  110 + iv = crypt_createIv(_this);
118 111 }
119 112
120 113 mcrypt_generic_init(_this->mcrypt, key, _this->keysize, iv);
... ... @@ -136,8 +129,8 @@ bigpoint_crypt_encrypt(
136 129 }
137 130
138 131 void *
139   -bigpoint_crypt_decrypt(
140   - struct BIGPOINT_CRYPT * _this,
  132 +crypt_decrypt(
  133 + struct CRYPT * _this,
141 134 const void * const data,
142 135 const char * const password,
143 136 size_t * length)
... ...
... ... @@ -3,29 +3,29 @@
3 3 #include <sys/types.h>
4 4 #include <json/json.h>
5 5
6   -#include "bigpoint/bigpoint_dyntype.h"
7   -#include "bigpoint/bigpoint_hash.h"
  6 +#include "dyntype.h"
  7 +#include "dyntype/hash.h"
8 8
9 9
10 10 static
11 11 void
12   -__construct(struct BIGPOINT_DYNTYPE * _this, va_list * params)
  12 +__construct(struct DYNTYPE * _this, va_list * params)
13 13 {
14   - _this->type = va_arg(* params, enum BIGPOINT_DYNTYPE_TYPES);
  14 + _this->type = va_arg(* params, enum DYNTYPE_TYPES);
15 15 _this->size = va_arg(* params, size_t);
16 16
17 17 switch(_this->type) {
18   - case BIGPOINT_DYNTYPE_INT:
  18 + case DYNTYPE_TYPE_INT:
19 19 (_this->data)._int = va_arg(* params, int);
20 20 break;
21 21
22   - case BIGPOINT_DYNTYPE_STRING:
  22 + case DYNTYPE_TYPE_STRING:
23 23 (_this->data)._string = calloc(_this->size + 1, sizeof(char));
24 24 memcpy((_this->data)._string, va_arg(* params, const char *), _this->size);
25 25 break;
26 26
27   - case BIGPOINT_DYNTYPE_HASH:
28   - (_this->data)._hash = va_arg(* params, struct BIGPOINT_HASH *);
  27 + case DYNTYPE_TYPE_HASH:
  28 + (_this->data)._hash = va_arg(* params, struct DYNTYPE_HASH *);
29 29 break;
30 30
31 31 default:
... ... @@ -35,11 +35,11 @@ __construct(struct BIGPOINT_DYNTYPE * _this, va_list * params)
35 35
36 36 static
37 37 void
38   -__jsonConst(struct BIGPOINT_DYNTYPE * _this, struct json_object * json)
  38 +__jsonConst(struct DYNTYPE * _this, struct json_object * json)
39 39 {
40 40 switch (json_object_get_type(json)) {
41 41 case json_type_int:
42   - _this->type = BIGPOINT_DYNTYPE_INT;
  42 + _this->type = DYNTYPE_TYPE_INT;
43 43 _this->size = sizeof(int);
44 44 (_this->data)._int = (int)json_object_get_int(json);
45 45 break;
... ... @@ -48,7 +48,7 @@ __jsonConst(struct BIGPOINT_DYNTYPE * _this, struct json_object * json)
48 48 {
49 49 const char * string = json_object_get_string(json);
50 50
51   - _this->type = BIGPOINT_DYNTYPE_STRING;
  51 + _this->type = DYNTYPE_TYPE_STRING;
52 52 _this->size = strlen(string);
53 53 (_this->data)._string = calloc(_this->size + 1, sizeof(char));
54 54 memcpy((_this->data)._string, string, _this->size);
... ... @@ -57,13 +57,13 @@ __jsonConst(struct BIGPOINT_DYNTYPE * _this, struct json_object * json)
57 57 break;
58 58
59 59 case json_type_object:
60   - _this->type = BIGPOINT_DYNTYPE_HASH;
61   - _this->size = sizeof(struct BIGPOINT_HASH *);
62   - (_this->data)._hash = newFromJson(BIGPOINT_HASH, json);
  60 + _this->type = DYNTYPE_TYPE_HASH;
  61 + _this->size = sizeof(struct DYNTYPE_HASH *);
  62 + (_this->data)._hash = newFromJson(DYNTYPE_HASH, json);
63 63 break;
64 64
65 65 default:
66   - _this->type = BIGPOINT_DYNTYPE_NULL;
  66 + _this->type = DYNTYPE_TYPE_NULL;
67 67 _this->size = 0;
68 68 (_this->data)._hash = NULL;
69 69 }
... ... @@ -71,15 +71,15 @@ __jsonConst(struct BIGPOINT_DYNTYPE * _this, struct json_object * json)
71 71
72 72 static
73 73 void
74   -__destruct(struct BIGPOINT_DYNTYPE * _this)
  74 +__destruct(struct DYNTYPE * _this)
75 75 {
76 76 if (_this) {
77 77 switch(_this->type) {
78   - case BIGPOINT_DYNTYPE_STRING:
  78 + case DYNTYPE_TYPE_STRING:
79 79 free((_this->data)._string);
80 80 break;
81 81
82   - case BIGPOINT_DYNTYPE_HASH:
  82 + case DYNTYPE_TYPE_HASH:
83 83 delete((_this->data)._hash);
84 84 break;
85 85
... ... @@ -91,20 +91,20 @@ __destruct(struct BIGPOINT_DYNTYPE * _this)
91 91
92 92 static
93 93 struct json_object *
94   -__toJson(struct BIGPOINT_DYNTYPE * _this)
  94 +__toJson(struct DYNTYPE * _this)
95 95 {
96 96 struct json_object * json = NULL;
97 97
98 98 switch(_this->type) {
99   - case BIGPOINT_DYNTYPE_INT:
  99 + case DYNTYPE_TYPE_INT:
100 100 json = json_object_new_int((_this->data)._int);
101 101 break;
102 102
103   - case BIGPOINT_DYNTYPE_STRING:
  103 + case DYNTYPE_TYPE_STRING:
104 104 json = json_object_new_string((_this->data)._string);
105 105 break;
106 106
107   - case BIGPOINT_DYNTYPE_HASH:
  107 + case DYNTYPE_TYPE_HASH:
108 108 json = toJson((_this->data)._hash);
109 109 break;
110 110
... ... @@ -116,14 +116,14 @@ __toJson(struct BIGPOINT_DYNTYPE * _this)
116 116 }
117 117
118 118 static const
119   -struct BIGPOINT_CCLASS _bigpoint_dyntype = {
120   - sizeof(struct BIGPOINT_DYNTYPE),
  119 +struct CCLASS _dyntype = {
  120 + sizeof(struct DYNTYPE),
121 121 (ctor)__construct,
122 122 (jCtor)__jsonConst,
123 123 (dtor)__destruct,
124 124 (jTo)__toJson
125 125 };
126 126
127   -const struct BIGPOINT_CCLASS * const BIGPOINT_DYNTYPE = &_bigpoint_dyntype;
  127 +const struct CCLASS * const DYNTYPE = &_dyntype;
128 128
129 129 // vim: set et ts=4 sw=4:
... ...
... ... @@ -2,17 +2,19 @@
2 2 #include <stdlib.h>
3 3 #include <json/json.h>
4 4
5   -#include "bigpoint/bigpoint_hash.h"
  5 +#include "cclass.h"
  6 +#include "dyntype.h"
  7 +#include "dyntype/hash.h"
6 8
7 9
8 10 #define HASH_ENTRY_CHUNK_SIZE 128
9 11
10 12
11   -static void _updateHashSize(struct BIGPOINT_HASH * _this);
  13 +static void _updateHashSize(struct DYNTYPE_HASH * _this);
12 14
13 15 static
14 16 void
15   -__construct(struct BIGPOINT_HASH * _this, va_list * params)
  17 +__construct(struct DYNTYPE_HASH * _this, va_list * params)
16 18 {
17 19 _this->size = 0;
18 20 _this->used = 0;
... ... @@ -21,7 +23,7 @@ __construct(struct BIGPOINT_HASH * _this, va_list * params)
21 23
22 24 static
23 25 void
24   -__jsonConst(struct BIGPOINT_HASH * _this, struct json_object * json)
  26 +__jsonConst(struct DYNTYPE_HASH * _this, struct json_object * json)
25 27 {
26 28 __construct(_this, NULL);
27 29
... ... @@ -30,13 +32,13 @@ __jsonConst(struct BIGPOINT_HASH * _this, struct json_object * json)
30 32 }
31 33
32 34 json_object_object_foreach(json, key, value) {
33   - bigpoint_hash_set(_this, key, newFromJson(BIGPOINT_DYNTYPE, value));
  35 + dyntype_hash_set(_this, key, newFromJson(DYNTYPE, value));
34 36 }
35 37 }
36 38
37 39 static
38 40 void
39   -__destruct(struct BIGPOINT_HASH * _this)
  41 +__destruct(struct DYNTYPE_HASH * _this)
40 42 {
41 43 size_t index;
42 44
... ... @@ -50,7 +52,7 @@ __destruct(struct BIGPOINT_HASH * _this)
50 52
51 53 static
52 54 struct json_object *
53   -__toJson(struct BIGPOINT_HASH * _this)
  55 +__toJson(struct DYNTYPE_HASH * _this)
54 56 {
55 57 size_t index;
56 58 struct json_object * json = json_object_new_object();
... ... @@ -66,19 +68,19 @@ __toJson(struct BIGPOINT_HASH * _this)
66 68 }
67 69
68 70 static const
69   -struct BIGPOINT_CCLASS _bigpoint_hash = {
70   - sizeof(struct BIGPOINT_HASH),
  71 +struct CCLASS _dyntype_hash = {
  72 + sizeof(struct DYNTYPE_HASH),
71 73 (ctor)__construct,
72 74 (jCtor)__jsonConst,
73 75 (dtor)__destruct,
74 76 (jTo)__toJson
75 77 };
76 78
77   -const struct BIGPOINT_CCLASS * const BIGPOINT_HASH = &_bigpoint_hash;
  79 +const struct CCLASS * const DYNTYPE_HASH = &_dyntype_hash;
78 80
79 81 static
80 82 void
81   -_updateHashSize(struct BIGPOINT_HASH * _this)
  83 +_updateHashSize(struct DYNTYPE_HASH * _this)
82 84 {
83 85 if (_this->used == _this->size) {
84 86 _this->size += HASH_ENTRY_CHUNK_SIZE;
... ... @@ -90,16 +92,16 @@ _updateHashSize(struct BIGPOINT_HASH * _this)
90 92
91 93 _this->values = realloc(
92 94 _this->values,
93   - sizeof(struct BIGPOINT_DYNTYPE *) * _this->size);
94   - memset(_this->values + (_this->used * sizeof(struct BIGPOINT_DYNTYPE *)),
  95 + sizeof(struct DYNTYPE *) * _this->size);
  96 + memset(_this->values + (_this->used * sizeof(struct DYNTYPE *)),
95 97 0,
96   - HASH_ENTRY_CHUNK_SIZE * sizeof(struct BIGPOINT_DYNTYPE *));
  98 + HASH_ENTRY_CHUNK_SIZE * sizeof(struct DYNTYPE *));
97 99 }
98 100 }
99 101
100 102 static
101 103 size_t
102   -_getHashIdx(struct BIGPOINT_HASH * _this, const char * key)
  104 +_getHashIdx(struct DYNTYPE_HASH * _this, const char * key)
103 105 {
104 106 size_t index;
105 107
... ... @@ -111,9 +113,9 @@ _getHashIdx(struct BIGPOINT_HASH * _this, const char * key)
111 113 }
112 114
113 115 void
114   -bigpoint_hash_set(struct BIGPOINT_HASH * _this,
  116 +dyntype_hash_set(struct DYNTYPE_HASH * _this,
115 117 const char * key,
116   - struct BIGPOINT_DYNTYPE * value)
  118 + struct DYNTYPE * value)
117 119 {
118 120 size_t index = _getHashIdx(_this, key);
119 121
... ... @@ -129,8 +131,8 @@ bigpoint_hash_set(struct BIGPOINT_HASH * _this,
129 131 _updateHashSize(_this);
130 132 }
131 133
132   -struct BIGPOINT_DYNTYPE *
133   -bigpoint_hash_get(struct BIGPOINT_HASH * _this, const char * key)
  134 +struct DYNTYPE *
  135 +dyntype_hash_get(struct DYNTYPE_HASH * _this, const char * key)
134 136 {
135 137 size_t index = _getHashIdx(_this, key);
136 138
... ... @@ -141,10 +143,10 @@ bigpoint_hash_get(struct BIGPOINT_HASH * _this, const char * key)
141 143 return _this->values[index];
142 144 }
143 145
144   -struct BIGPOINT_DYNTYPE *
145   -bigpoint_hash_del(struct BIGPOINT_HASH * _this, const char * key)
  146 +struct DYNTYPE *
  147 +dyntype_hash_del(struct DYNTYPE_HASH * _this, const char * key)
146 148 {
147   - struct BIGPOINT_DYNTYPE * found = NULL;
  149 + struct DYNTYPE * found = NULL;
148 150 size_t index = _getHashIdx(_this, key);
149 151
150 152 if (index == _this->used) {
... ... @@ -159,7 +161,7 @@ bigpoint_hash_del(struct BIGPOINT_HASH * _this, const char * key)
159 161
160 162 memmove(_this->values + index + 1,
161 163 _this->values + index,
162   - (_this->size - index) * sizeof(struct BIGPOINT_DYNTYPE *));
  164 + (_this->size - index) * sizeof(struct DYNTYPE *));
163 165
164 166 _this->used -= 1;
165 167 }
... ...
1 1 #include <json/json.h>
2 2
3   -#include "bigpoint/bigpoint_packet.h"
  3 +#include "packet.h"
4 4
5 5
6 6 static
7 7 void
8   -__construct(struct BIGPOINT_PACKET * _this, va_list * params)
  8 +__construct(struct PACKET * _this, va_list * params)
9 9 {
10   - bigpoint_packet_set_default_content(_this);
  10 + packet_set_default_content(_this);
11 11 }
12 12
13 13 static
14 14 void
15   -__jsonConst(struct BIGPOINT_PACKET * _this, struct json_object * json)
  15 +__jsonConst(struct PACKET * _this, struct json_object * json)
16 16 {
17 17 struct json_object * header = NULL;
18 18 struct json_object * data = NULL;
19 19
20 20 if (! json_type_array == json_object_get_type(json)) {
21   - bigpoint_packet_set_default_content(_this);
  21 + packet_set_default_content(_this);
22 22 return;
23 23 }
24 24
... ... @@ -26,79 +26,79 @@ __jsonConst(struct BIGPOINT_PACKET * _this, struct json_object * json)
26 26 data = json_object_array_get_idx(json, 1);
27 27
28 28 if (! (header && data)) {
29   - bigpoint_packet_set_default_content(_this);
  29 + packet_set_default_content(_this);
30 30 return;
31 31 }
32 32
33   - bigpoint_packet_setHeader(_this, newFromJson(BIGPOINT_DYNTYPE, header));
34   - bigpoint_packet_setData(_this, newFromJson(BIGPOINT_DYNTYPE, data));
  33 + packet_setHeader(_this, newFromJson(DYNTYPE, header));
  34 + packet_setData(_this, newFromJson(DYNTYPE, data));
35 35 }
36 36
37 37 static
38 38 void
39   -__destruct(struct BIGPOINT_PACKET * _this)
  39 +__destruct(struct PACKET * _this)
40 40 {
41 41 }
42 42
43 43 static
44 44 struct json_object *
45   -__toJson(struct BIGPOINT_PACKET * _this)
  45 +__toJson(struct PACKET * _this)
46 46 {
47 47 struct json_object * json = json_object_new_array();
48 48
49   - json_object_array_add(json, toJson(bigpoint_packet_getHeader(_this)));
50   - json_object_array_add(json, toJson(bigpoint_packet_getData(_this)));
  49 + json_object_array_add(json, toJson(packet_getHeader(_this)));
  50 + json_object_array_add(json, toJson(packet_getData(_this)));
51 51
52 52 return json;
53 53 }
54 54
55 55 static const
56   -struct BIGPOINT_CCLASS _bigpoint_packet = {
57   - sizeof(struct BIGPOINT_PACKET),
  56 +struct CCLASS _packet = {
  57 + sizeof(struct PACKET),
58 58 (ctor)__construct,
59 59 (jCtor)__jsonConst,
60 60 (dtor)__destruct,
61 61 (jTo)__toJson
62 62 };
63 63
64   -const struct BIGPOINT_CCLASS * const BIGPOINT_PACKET = &_bigpoint_packet;
  64 +const struct CCLASS * const PACKET = &_packet;
65 65
66   -struct BIGPOINT_DYNTYPE *
67   -bigpoint_packet_getHeader(
68   - struct BIGPOINT_PACKET * _this)
  66 +struct DYNTYPE *
  67 +packet_getHeader(
  68 + struct PACKET * _this)
69 69 {
70   - return _this->content[BIGPOINT_PACKET_HEADER];
  70 + return _this->content[PACKET_HEADER];
71 71 }
72 72
73   -struct BIGPOINT_DYNTYPE *
74   -bigpoint_packet_getData(
75   - struct BIGPOINT_PACKET * _this)
  73 +struct DYNTYPE *
  74 +packet_getData(
  75 + struct PACKET * _this)
76 76 {
77   - return _this->content[BIGPOINT_PACKET_DATA];
  77 + return _this->content[PACKET_DATA];
78 78 }
79 79
80 80 void
81   -bigpoint_packet_setHeader(
82   - struct BIGPOINT_PACKET * _this,
83   - struct BIGPOINT_DYNTYPE * header)
  81 +packet_setHeader(
  82 + struct PACKET * _this,
  83 + struct DYNTYPE * header)
84 84 {
85   - _this->content[BIGPOINT_PACKET_HEADER] = header;
  85 + _this->content[PACKET_HEADER] = header;
86 86 }
87 87
88 88 void
89   -bigpoint_packet_setData(
90   - struct BIGPOINT_PACKET * _this,
91   - struct BIGPOINT_DYNTYPE * data)
  89 +packet_setData(
  90 + struct PACKET * _this,
  91 + struct DYNTYPE * data)
92 92 {
93   - _this->content[BIGPOINT_PACKET_DATA] = data;
  93 + _this->content[PACKET_DATA] = data;
94 94 }
95 95
96 96 void
97   -bigpoint_packet_set_default_content(
98   - struct BIGPOINT_PACKET * _this)
  97 +packet_set_default_content(
  98 + struct PACKET * _this)
99 99 {
100   - _this->content[BIGPOINT_PACKET_HEADER] = NULL;
101   - _this->content[BIGPOINT_PACKET_DATA] = NULL;
  100 + _this->content[PACKET_HEADER] = NULL;
  101 + _this->content[PACKET_DATA] = NULL;
102 102 }
103 103
104 104 // vim: set et ts=4 sw=4:
... ...
  1 +TESTS = crypt decrypt dyntype hash packet
  2 +check_PROGRAMS = crypt decrypt dyntype hash packet
  3 +
  4 +crypt_SOURCES = crypt.c ../base64.c
  5 +crypt_LDADD = ../src/libtoken.la $(LIBOBJS)
  6 +crypt_CFLAGS = -I ../include -I ..
  7 +
  8 +decrypt_SOURCES = decrypt.c ../base64.c
  9 +decrypt_LDADD = ../src/libtoken.la $(LIBOBJS)
  10 +decrypt_CFLAGS = -I ../include -I ..
  11 +
  12 +dyntype_SOURCES = dyntype.c
  13 +dyntype_LDADD = ../src/libtoken.la $(LIBOBJS)
  14 +dyntype_CFLAGS = -I ../include -I ..
  15 +
  16 +hash_SOURCES = hash.c
  17 +hash_LDADD = ../src/libtoken.la $(LIBOBJS)
  18 +hash_CFLAGS = -I ../include -I ..
  19 +
  20 +packet_SOURCES = packet.c
  21 +packet_LDADD = ../src/libtoken.la $(LIBOBJS)
  22 +packet_CFLAGS = -I ../include -I ..
... ...
  1 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  2 +# @configure_input@
  3 +
  4 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  5 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  6 +# Inc.
  7 +# This Makefile.in is free software; the Free Software Foundation
  8 +# gives unlimited permission to copy and/or distribute it,
  9 +# with or without modifications, as long as this notice is preserved.
  10 +
  11 +# This program is distributed in the hope that it will be useful,
  12 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  13 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  14 +# PARTICULAR PURPOSE.
  15 +
  16 +@SET_MAKE@
  17 +VPATH = @srcdir@
  18 +pkgdatadir = $(datadir)/@PACKAGE@
  19 +pkgincludedir = $(includedir)/@PACKAGE@
  20 +pkglibdir = $(libdir)/@PACKAGE@
  21 +pkglibexecdir = $(libexecdir)/@PACKAGE@
  22 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  23 +install_sh_DATA = $(install_sh) -c -m 644
  24 +install_sh_PROGRAM = $(install_sh) -c
  25 +install_sh_SCRIPT = $(install_sh) -c
  26 +INSTALL_HEADER = $(INSTALL_DATA)
  27 +transform = $(program_transform_name)
  28 +NORMAL_INSTALL = :
  29 +PRE_INSTALL = :
  30 +POST_INSTALL = :
  31 +NORMAL_UNINSTALL = :
  32 +PRE_UNINSTALL = :
  33 +POST_UNINSTALL = :
  34 +build_triplet = @build@
  35 +host_triplet = @host@
  36 +TESTS = crypt$(EXEEXT) decrypt$(EXEEXT) dyntype$(EXEEXT) hash$(EXEEXT) \
  37 + packet$(EXEEXT)
  38 +check_PROGRAMS = crypt$(EXEEXT) decrypt$(EXEEXT) dyntype$(EXEEXT) \
  39 + hash$(EXEEXT) packet$(EXEEXT)
  40 +subdir = tests
  41 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  42 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  43 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  44 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  45 + $(ACLOCAL_M4)
  46 +mkinstalldirs = $(install_sh) -d
  47 +CONFIG_HEADER = $(top_builddir)/config.h
  48 +CONFIG_CLEAN_FILES =
  49 +CONFIG_CLEAN_VPATH_FILES =
  50 +am_crypt_OBJECTS = crypt-crypt.$(OBJEXT) crypt-base64.$(OBJEXT)
  51 +crypt_OBJECTS = $(am_crypt_OBJECTS)
  52 +crypt_DEPENDENCIES = ../src/libtoken.la $(LIBOBJS)
  53 +crypt_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  54 + --mode=link $(CCLD) $(crypt_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  55 + $(LDFLAGS) -o $@
  56 +am_decrypt_OBJECTS = decrypt-decrypt.$(OBJEXT) \
  57 + decrypt-base64.$(OBJEXT)
  58 +decrypt_OBJECTS = $(am_decrypt_OBJECTS)
  59 +decrypt_DEPENDENCIES = ../src/libtoken.la $(LIBOBJS)
  60 +decrypt_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61 + --mode=link $(CCLD) $(decrypt_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  62 + $(LDFLAGS) -o $@
  63 +am_dyntype_OBJECTS = dyntype-dyntype.$(OBJEXT)
  64 +dyntype_OBJECTS = $(am_dyntype_OBJECTS)
  65 +dyntype_DEPENDENCIES = ../src/libtoken.la $(LIBOBJS)
  66 +dyntype_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  67 + --mode=link $(CCLD) $(dyntype_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  68 + $(LDFLAGS) -o $@
  69 +am_hash_OBJECTS = hash-hash.$(OBJEXT)
  70 +hash_OBJECTS = $(am_hash_OBJECTS)
  71 +hash_DEPENDENCIES = ../src/libtoken.la $(LIBOBJS)
  72 +hash_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  73 + --mode=link $(CCLD) $(hash_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  74 + $(LDFLAGS) -o $@
  75 +am_packet_OBJECTS = packet-packet.$(OBJEXT)
  76 +packet_OBJECTS = $(am_packet_OBJECTS)
  77 +packet_DEPENDENCIES = ../src/libtoken.la $(LIBOBJS)
  78 +packet_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  79 + --mode=link $(CCLD) $(packet_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  80 + $(LDFLAGS) -o $@
  81 +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  82 +depcomp = $(SHELL) $(top_srcdir)/depcomp
  83 +am__depfiles_maybe = depfiles
  84 +am__mv = mv -f
  85 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  86 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  87 +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  88 + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  89 + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  90 +CCLD = $(CC)
  91 +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  92 + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  93 + $(LDFLAGS) -o $@
  94 +SOURCES = $(crypt_SOURCES) $(decrypt_SOURCES) $(dyntype_SOURCES) \
  95 + $(hash_SOURCES) $(packet_SOURCES)
  96 +DIST_SOURCES = $(crypt_SOURCES) $(decrypt_SOURCES) $(dyntype_SOURCES) \
  97 + $(hash_SOURCES) $(packet_SOURCES)
  98 +ETAGS = etags
  99 +CTAGS = ctags
  100 +am__tty_colors = \
  101 +red=; grn=; lgn=; blu=; std=
  102 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  103 +ACLOCAL = @ACLOCAL@
  104 +AMTAR = @AMTAR@
  105 +AR = @AR@
  106 +AUTOCONF = @AUTOCONF@
  107 +AUTOHEADER = @AUTOHEADER@
  108 +AUTOMAKE = @AUTOMAKE@
  109 +AWK = @AWK@
  110 +CC = @CC@
  111 +CCDEPMODE = @CCDEPMODE@
  112 +CFLAGS = @CFLAGS@
  113 +CPP = @CPP@
  114 +CPPFLAGS = @CPPFLAGS@
  115 +CYGPATH_W = @CYGPATH_W@
  116 +DEFS = @DEFS@
  117 +DEPDIR = @DEPDIR@
  118 +DLLTOOL = @DLLTOOL@
  119 +DSYMUTIL = @DSYMUTIL@
  120 +DUMPBIN = @DUMPBIN@
  121 +ECHO_C = @ECHO_C@
  122 +ECHO_N = @ECHO_N@
  123 +ECHO_T = @ECHO_T@
  124 +EGREP = @EGREP@
  125 +EXEEXT = @EXEEXT@
  126 +FGREP = @FGREP@
  127 +GREP = @GREP@
  128 +INSTALL = @INSTALL@
  129 +INSTALL_DATA = @INSTALL_DATA@
  130 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  131 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  132 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  133 +LD = @LD@
  134 +LDFLAGS = @LDFLAGS@
  135 +LIBOBJS = @LIBOBJS@
  136 +LIBS = @LIBS@
  137 +LIBTOOL = @LIBTOOL@
  138 +LIPO = @LIPO@
  139 +LN_S = @LN_S@
  140 +LTLIBOBJS = @LTLIBOBJS@
  141 +MAKEINFO = @MAKEINFO@
  142 +MANIFEST_TOOL = @MANIFEST_TOOL@
  143 +MKDIR_P = @MKDIR_P@
  144 +NM = @NM@
  145 +NMEDIT = @NMEDIT@
  146 +OBJDUMP = @OBJDUMP@
  147 +OBJEXT = @OBJEXT@
  148 +OTOOL = @OTOOL@
  149 +OTOOL64 = @OTOOL64@
  150 +PACKAGE = @PACKAGE@
  151 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  152 +PACKAGE_NAME = @PACKAGE_NAME@
  153 +PACKAGE_STRING = @PACKAGE_STRING@
  154 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  155 +PACKAGE_URL = @PACKAGE_URL@
  156 +PACKAGE_VERSION = @PACKAGE_VERSION@
  157 +PATH_SEPARATOR = @PATH_SEPARATOR@
  158 +RANLIB = @RANLIB@
  159 +SED = @SED@
  160 +SET_MAKE = @SET_MAKE@
  161 +SHELL = @SHELL@
  162 +STRIP = @STRIP@
  163 +VERSION = @VERSION@
  164 +abs_builddir = @abs_builddir@
  165 +abs_srcdir = @abs_srcdir@
  166 +abs_top_builddir = @abs_top_builddir@
  167 +abs_top_srcdir = @abs_top_srcdir@
  168 +ac_ct_AR = @ac_ct_AR@
  169 +ac_ct_CC = @ac_ct_CC@
  170 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  171 +am__include = @am__include@
  172 +am__leading_dot = @am__leading_dot@
  173 +am__quote = @am__quote@
  174 +am__tar = @am__tar@
  175 +am__untar = @am__untar@
  176 +bindir = @bindir@
  177 +build = @build@
  178 +build_alias = @build_alias@
  179 +build_cpu = @build_cpu@
  180 +build_os = @build_os@
  181 +build_vendor = @build_vendor@
  182 +builddir = @builddir@
  183 +datadir = @datadir@
  184 +datarootdir = @datarootdir@
  185 +docdir = @docdir@
  186 +dvidir = @dvidir@
  187 +exec_prefix = @exec_prefix@
  188 +host = @host@
  189 +host_alias = @host_alias@
  190 +host_cpu = @host_cpu@
  191 +host_os = @host_os@
  192 +host_vendor = @host_vendor@
  193 +htmldir = @htmldir@
  194 +includedir = @includedir@
  195 +infodir = @infodir@
  196 +install_sh = @install_sh@
  197 +libdir = @libdir@
  198 +libexecdir = @libexecdir@
  199 +localedir = @localedir@
  200 +localstatedir = @localstatedir@
  201 +mandir = @mandir@
  202 +mkdir_p = @mkdir_p@
  203 +oldincludedir = @oldincludedir@
  204 +pdfdir = @pdfdir@
  205 +prefix = @prefix@
  206 +program_transform_name = @program_transform_name@
  207 +psdir = @psdir@
  208 +sbindir = @sbindir@
  209 +sharedstatedir = @sharedstatedir@
  210 +srcdir = @srcdir@
  211 +sysconfdir = @sysconfdir@
  212 +target_alias = @target_alias@
  213 +top_build_prefix = @top_build_prefix@
  214 +top_builddir = @top_builddir@
  215 +top_srcdir = @top_srcdir@
  216 +crypt_SOURCES = crypt.c ../base64.c
  217 +crypt_LDADD = ../src/libtoken.la $(LIBOBJS)
  218 +crypt_CFLAGS = -I ../include -I ..
  219 +decrypt_SOURCES = decrypt.c ../base64.c
  220 +decrypt_LDADD = ../src/libtoken.la $(LIBOBJS)
  221 +decrypt_CFLAGS = -I ../include -I ..
  222 +dyntype_SOURCES = dyntype.c
  223 +dyntype_LDADD = ../src/libtoken.la $(LIBOBJS)
  224 +dyntype_CFLAGS = -I ../include -I ..
  225 +hash_SOURCES = hash.c
  226 +hash_LDADD = ../src/libtoken.la $(LIBOBJS)
  227 +hash_CFLAGS = -I ../include -I ..
  228 +packet_SOURCES = packet.c
  229 +packet_LDADD = ../src/libtoken.la $(LIBOBJS)
  230 +packet_CFLAGS = -I ../include -I ..
  231 +all: all-am
  232 +
  233 +.SUFFIXES:
  234 +.SUFFIXES: .c .lo .o .obj
  235 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  236 + @for dep in $?; do \
  237 + case '$(am__configure_deps)' in \
  238 + *$$dep*) \
  239 + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  240 + && { if test -f $@; then exit 0; else break; fi; }; \
  241 + exit 1;; \
  242 + esac; \
  243 + done; \
  244 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  245 + $(am__cd) $(top_srcdir) && \
  246 + $(AUTOMAKE) --gnu tests/Makefile
  247 +.PRECIOUS: Makefile
  248 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  249 + @case '$?' in \
  250 + *config.status*) \
  251 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  252 + *) \
  253 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  254 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  255 + esac;
  256 +
  257 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  258 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  259 +
  260 +$(top_srcdir)/configure: $(am__configure_deps)
  261 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  262 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  263 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  264 +$(am__aclocal_m4_deps):
  265 +
  266 +clean-checkPROGRAMS:
  267 + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
  268 + echo " rm -f" $$list; \
  269 + rm -f $$list || exit $$?; \
  270 + test -n "$(EXEEXT)" || exit 0; \
  271 + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  272 + echo " rm -f" $$list; \
  273 + rm -f $$list
  274 +crypt$(EXEEXT): $(crypt_OBJECTS) $(crypt_DEPENDENCIES)
  275 + @rm -f crypt$(EXEEXT)
  276 + $(crypt_LINK) $(crypt_OBJECTS) $(crypt_LDADD) $(LIBS)
  277 +decrypt$(EXEEXT): $(decrypt_OBJECTS) $(decrypt_DEPENDENCIES)
  278 + @rm -f decrypt$(EXEEXT)
  279 + $(decrypt_LINK) $(decrypt_OBJECTS) $(decrypt_LDADD) $(LIBS)
  280 +dyntype$(EXEEXT): $(dyntype_OBJECTS) $(dyntype_DEPENDENCIES)
  281 + @rm -f dyntype$(EXEEXT)
  282 + $(dyntype_LINK) $(dyntype_OBJECTS) $(dyntype_LDADD) $(LIBS)
  283 +hash$(EXEEXT): $(hash_OBJECTS) $(hash_DEPENDENCIES)
  284 + @rm -f hash$(EXEEXT)
  285 + $(hash_LINK) $(hash_OBJECTS) $(hash_LDADD) $(LIBS)
  286 +packet$(EXEEXT): $(packet_OBJECTS) $(packet_DEPENDENCIES)
  287 + @rm -f packet$(EXEEXT)
  288 + $(packet_LINK) $(packet_OBJECTS) $(packet_LDADD) $(LIBS)
  289 +
  290 +mostlyclean-compile:
  291 + -rm -f *.$(OBJEXT)
  292 +
  293 +distclean-compile:
  294 + -rm -f *.tab.c
  295 +
  296 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypt-base64.Po@am__quote@
  297 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypt-crypt.Po@am__quote@
  298 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decrypt-base64.Po@am__quote@
  299 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decrypt-decrypt.Po@am__quote@
  300 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dyntype-dyntype.Po@am__quote@
  301 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash-hash.Po@am__quote@
  302 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/packet-packet.Po@am__quote@
  303 +
  304 +.c.o:
  305 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  306 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  307 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  308 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  309 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  310 +
  311 +.c.obj:
  312 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  313 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  314 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  315 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  316 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  317 +
  318 +.c.lo:
  319 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  320 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  321 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  322 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  323 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  324 +
  325 +crypt-crypt.o: crypt.c
  326 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -MT crypt-crypt.o -MD -MP -MF $(DEPDIR)/crypt-crypt.Tpo -c -o crypt-crypt.o `test -f 'crypt.c' || echo '$(srcdir)/'`crypt.c
  327 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crypt-crypt.Tpo $(DEPDIR)/crypt-crypt.Po
  328 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='crypt.c' object='crypt-crypt.o' libtool=no @AMDEPBACKSLASH@
  329 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  330 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -c -o crypt-crypt.o `test -f 'crypt.c' || echo '$(srcdir)/'`crypt.c
  331 +
  332 +crypt-crypt.obj: crypt.c
  333 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -MT crypt-crypt.obj -MD -MP -MF $(DEPDIR)/crypt-crypt.Tpo -c -o crypt-crypt.obj `if test -f 'crypt.c'; then $(CYGPATH_W) 'crypt.c'; else $(CYGPATH_W) '$(srcdir)/crypt.c'; fi`
  334 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crypt-crypt.Tpo $(DEPDIR)/crypt-crypt.Po
  335 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='crypt.c' object='crypt-crypt.obj' libtool=no @AMDEPBACKSLASH@
  336 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  337 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -c -o crypt-crypt.obj `if test -f 'crypt.c'; then $(CYGPATH_W) 'crypt.c'; else $(CYGPATH_W) '$(srcdir)/crypt.c'; fi`
  338 +
  339 +crypt-base64.o: ../base64.c
  340 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -MT crypt-base64.o -MD -MP -MF $(DEPDIR)/crypt-base64.Tpo -c -o crypt-base64.o `test -f '../base64.c' || echo '$(srcdir)/'`../base64.c
  341 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crypt-base64.Tpo $(DEPDIR)/crypt-base64.Po
  342 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../base64.c' object='crypt-base64.o' libtool=no @AMDEPBACKSLASH@
  343 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  344 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -c -o crypt-base64.o `test -f '../base64.c' || echo '$(srcdir)/'`../base64.c
  345 +
  346 +crypt-base64.obj: ../base64.c
  347 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -MT crypt-base64.obj -MD -MP -MF $(DEPDIR)/crypt-base64.Tpo -c -o crypt-base64.obj `if test -f '../base64.c'; then $(CYGPATH_W) '../base64.c'; else $(CYGPATH_W) '$(srcdir)/../base64.c'; fi`
  348 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/crypt-base64.Tpo $(DEPDIR)/crypt-base64.Po
  349 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../base64.c' object='crypt-base64.obj' libtool=no @AMDEPBACKSLASH@
  350 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  351 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(crypt_CFLAGS) $(CFLAGS) -c -o crypt-base64.obj `if test -f '../base64.c'; then $(CYGPATH_W) '../base64.c'; else $(CYGPATH_W) '$(srcdir)/../base64.c'; fi`
  352 +
  353 +decrypt-decrypt.o: decrypt.c
  354 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -MT decrypt-decrypt.o -MD -MP -MF $(DEPDIR)/decrypt-decrypt.Tpo -c -o decrypt-decrypt.o `test -f 'decrypt.c' || echo '$(srcdir)/'`decrypt.c
  355 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/decrypt-decrypt.Tpo $(DEPDIR)/decrypt-decrypt.Po
  356 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='decrypt.c' object='decrypt-decrypt.o' libtool=no @AMDEPBACKSLASH@
  357 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  358 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -c -o decrypt-decrypt.o `test -f 'decrypt.c' || echo '$(srcdir)/'`decrypt.c
  359 +
  360 +decrypt-decrypt.obj: decrypt.c
  361 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -MT decrypt-decrypt.obj -MD -MP -MF $(DEPDIR)/decrypt-decrypt.Tpo -c -o decrypt-decrypt.obj `if test -f 'decrypt.c'; then $(CYGPATH_W) 'decrypt.c'; else $(CYGPATH_W) '$(srcdir)/decrypt.c'; fi`
  362 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/decrypt-decrypt.Tpo $(DEPDIR)/decrypt-decrypt.Po
  363 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='decrypt.c' object='decrypt-decrypt.obj' libtool=no @AMDEPBACKSLASH@
  364 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  365 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -c -o decrypt-decrypt.obj `if test -f 'decrypt.c'; then $(CYGPATH_W) 'decrypt.c'; else $(CYGPATH_W) '$(srcdir)/decrypt.c'; fi`
  366 +
  367 +decrypt-base64.o: ../base64.c
  368 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -MT decrypt-base64.o -MD -MP -MF $(DEPDIR)/decrypt-base64.Tpo -c -o decrypt-base64.o `test -f '../base64.c' || echo '$(srcdir)/'`../base64.c
  369 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/decrypt-base64.Tpo $(DEPDIR)/decrypt-base64.Po
  370 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../base64.c' object='decrypt-base64.o' libtool=no @AMDEPBACKSLASH@
  371 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  372 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -c -o decrypt-base64.o `test -f '../base64.c' || echo '$(srcdir)/'`../base64.c
  373 +
  374 +decrypt-base64.obj: ../base64.c
  375 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -MT decrypt-base64.obj -MD -MP -MF $(DEPDIR)/decrypt-base64.Tpo -c -o decrypt-base64.obj `if test -f '../base64.c'; then $(CYGPATH_W) '../base64.c'; else $(CYGPATH_W) '$(srcdir)/../base64.c'; fi`
  376 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/decrypt-base64.Tpo $(DEPDIR)/decrypt-base64.Po
  377 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../base64.c' object='decrypt-base64.obj' libtool=no @AMDEPBACKSLASH@
  378 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  379 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(decrypt_CFLAGS) $(CFLAGS) -c -o decrypt-base64.obj `if test -f '../base64.c'; then $(CYGPATH_W) '../base64.c'; else $(CYGPATH_W) '$(srcdir)/../base64.c'; fi`
  380 +
  381 +dyntype-dyntype.o: dyntype.c
  382 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dyntype_CFLAGS) $(CFLAGS) -MT dyntype-dyntype.o -MD -MP -MF $(DEPDIR)/dyntype-dyntype.Tpo -c -o dyntype-dyntype.o `test -f 'dyntype.c' || echo '$(srcdir)/'`dyntype.c
  383 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dyntype-dyntype.Tpo $(DEPDIR)/dyntype-dyntype.Po
  384 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dyntype.c' object='dyntype-dyntype.o' libtool=no @AMDEPBACKSLASH@
  385 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  386 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dyntype_CFLAGS) $(CFLAGS) -c -o dyntype-dyntype.o `test -f 'dyntype.c' || echo '$(srcdir)/'`dyntype.c
  387 +
  388 +dyntype-dyntype.obj: dyntype.c
  389 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dyntype_CFLAGS) $(CFLAGS) -MT dyntype-dyntype.obj -MD -MP -MF $(DEPDIR)/dyntype-dyntype.Tpo -c -o dyntype-dyntype.obj `if test -f 'dyntype.c'; then $(CYGPATH_W) 'dyntype.c'; else $(CYGPATH_W) '$(srcdir)/dyntype.c'; fi`
  390 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dyntype-dyntype.Tpo $(DEPDIR)/dyntype-dyntype.Po
  391 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dyntype.c' object='dyntype-dyntype.obj' libtool=no @AMDEPBACKSLASH@
  392 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  393 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dyntype_CFLAGS) $(CFLAGS) -c -o dyntype-dyntype.obj `if test -f 'dyntype.c'; then $(CYGPATH_W) 'dyntype.c'; else $(CYGPATH_W) '$(srcdir)/dyntype.c'; fi`
  394 +
  395 +hash-hash.o: hash.c
  396 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hash_CFLAGS) $(CFLAGS) -MT hash-hash.o -MD -MP -MF $(DEPDIR)/hash-hash.Tpo -c -o hash-hash.o `test -f 'hash.c' || echo '$(srcdir)/'`hash.c
  397 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hash-hash.Tpo $(DEPDIR)/hash-hash.Po
  398 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hash.c' object='hash-hash.o' libtool=no @AMDEPBACKSLASH@
  399 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  400 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hash_CFLAGS) $(CFLAGS) -c -o hash-hash.o `test -f 'hash.c' || echo '$(srcdir)/'`hash.c
  401 +
  402 +hash-hash.obj: hash.c
  403 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hash_CFLAGS) $(CFLAGS) -MT hash-hash.obj -MD -MP -MF $(DEPDIR)/hash-hash.Tpo -c -o hash-hash.obj `if test -f 'hash.c'; then $(CYGPATH_W) 'hash.c'; else $(CYGPATH_W) '$(srcdir)/hash.c'; fi`
  404 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hash-hash.Tpo $(DEPDIR)/hash-hash.Po
  405 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hash.c' object='hash-hash.obj' libtool=no @AMDEPBACKSLASH@
  406 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  407 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hash_CFLAGS) $(CFLAGS) -c -o hash-hash.obj `if test -f 'hash.c'; then $(CYGPATH_W) 'hash.c'; else $(CYGPATH_W) '$(srcdir)/hash.c'; fi`
  408 +
  409 +packet-packet.o: packet.c
  410 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(packet_CFLAGS) $(CFLAGS) -MT packet-packet.o -MD -MP -MF $(DEPDIR)/packet-packet.Tpo -c -o packet-packet.o `test -f 'packet.c' || echo '$(srcdir)/'`packet.c
  411 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/packet-packet.Tpo $(DEPDIR)/packet-packet.Po
  412 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='packet.c' object='packet-packet.o' libtool=no @AMDEPBACKSLASH@
  413 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  414 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(packet_CFLAGS) $(CFLAGS) -c -o packet-packet.o `test -f 'packet.c' || echo '$(srcdir)/'`packet.c
  415 +
  416 +packet-packet.obj: packet.c
  417 +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(packet_CFLAGS) $(CFLAGS) -MT packet-packet.obj -MD -MP -MF $(DEPDIR)/packet-packet.Tpo -c -o packet-packet.obj `if test -f 'packet.c'; then $(CYGPATH_W) 'packet.c'; else $(CYGPATH_W) '$(srcdir)/packet.c'; fi`
  418 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/packet-packet.Tpo $(DEPDIR)/packet-packet.Po
  419 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='packet.c' object='packet-packet.obj' libtool=no @AMDEPBACKSLASH@
  420 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  421 +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(packet_CFLAGS) $(CFLAGS) -c -o packet-packet.obj `if test -f 'packet.c'; then $(CYGPATH_W) 'packet.c'; else $(CYGPATH_W) '$(srcdir)/packet.c'; fi`
  422 +
  423 +mostlyclean-libtool:
  424 + -rm -f *.lo
  425 +
  426 +clean-libtool:
  427 + -rm -rf .libs _libs
  428 +
  429 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  430 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  431 + unique=`for i in $$list; do \
  432 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  433 + done | \
  434 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  435 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  436 + mkid -fID $$unique
  437 +tags: TAGS
  438 +
  439 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  440 + $(TAGS_FILES) $(LISP)
  441 + set x; \
  442 + here=`pwd`; \
  443 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  444 + unique=`for i in $$list; do \
  445 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  446 + done | \
  447 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  448 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  449 + shift; \
  450 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  451 + test -n "$$unique" || unique=$$empty_fix; \
  452 + if test $$# -gt 0; then \
  453 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  454 + "$$@" $$unique; \
  455 + else \
  456 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  457 + $$unique; \
  458 + fi; \
  459 + fi
  460 +ctags: CTAGS
  461 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  462 + $(TAGS_FILES) $(LISP)
  463 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  464 + unique=`for i in $$list; do \
  465 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  466 + done | \
  467 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  468 + END { if (nonempty) { for (i in files) print i; }; }'`; \
  469 + test -z "$(CTAGS_ARGS)$$unique" \
  470 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  471 + $$unique
  472 +
  473 +GTAGS:
  474 + here=`$(am__cd) $(top_builddir) && pwd` \
  475 + && $(am__cd) $(top_srcdir) \
  476 + && gtags -i $(GTAGS_ARGS) "$$here"
  477 +
  478 +distclean-tags:
  479 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  480 +
  481 +check-TESTS: $(TESTS)
  482 + @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  483 + srcdir=$(srcdir); export srcdir; \
  484 + list=' $(TESTS) '; \
  485 + $(am__tty_colors); \
  486 + if test -n "$$list"; then \
  487 + for tst in $$list; do \
  488 + if test -f ./$$tst; then dir=./; \
  489 + elif test -f $$tst; then dir=; \
  490 + else dir="$(srcdir)/"; fi; \
  491 + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
  492 + all=`expr $$all + 1`; \
  493 + case " $(XFAIL_TESTS) " in \
  494 + *[\ \ ]$$tst[\ \ ]*) \
  495 + xpass=`expr $$xpass + 1`; \
  496 + failed=`expr $$failed + 1`; \
  497 + col=$$red; res=XPASS; \
  498 + ;; \
  499 + *) \
  500 + col=$$grn; res=PASS; \
  501 + ;; \
  502 + esac; \
  503 + elif test $$? -ne 77; then \
  504 + all=`expr $$all + 1`; \
  505 + case " $(XFAIL_TESTS) " in \
  506 + *[\ \ ]$$tst[\ \ ]*) \
  507 + xfail=`expr $$xfail + 1`; \
  508 + col=$$lgn; res=XFAIL; \
  509 + ;; \
  510 + *) \
  511 + failed=`expr $$failed + 1`; \
  512 + col=$$red; res=FAIL; \
  513 + ;; \
  514 + esac; \
  515 + else \
  516 + skip=`expr $$skip + 1`; \
  517 + col=$$blu; res=SKIP; \
  518 + fi; \
  519 + echo "$${col}$$res$${std}: $$tst"; \
  520 + done; \
  521 + if test "$$all" -eq 1; then \
  522 + tests="test"; \
  523 + All=""; \
  524 + else \
  525 + tests="tests"; \
  526 + All="All "; \
  527 + fi; \
  528 + if test "$$failed" -eq 0; then \
  529 + if test "$$xfail" -eq 0; then \
  530 + banner="$$All$$all $$tests passed"; \
  531 + else \
  532 + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
  533 + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
  534 + fi; \
  535 + else \
  536 + if test "$$xpass" -eq 0; then \
  537 + banner="$$failed of $$all $$tests failed"; \
  538 + else \
  539 + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
  540 + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
  541 + fi; \
  542 + fi; \
  543 + dashes="$$banner"; \
  544 + skipped=""; \
  545 + if test "$$skip" -ne 0; then \
  546 + if test "$$skip" -eq 1; then \
  547 + skipped="($$skip test was not run)"; \
  548 + else \
  549 + skipped="($$skip tests were not run)"; \
  550 + fi; \
  551 + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
  552 + dashes="$$skipped"; \
  553 + fi; \
  554 + report=""; \
  555 + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
  556 + report="Please report to $(PACKAGE_BUGREPORT)"; \
  557 + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
  558 + dashes="$$report"; \
  559 + fi; \
  560 + dashes=`echo "$$dashes" | sed s/./=/g`; \
  561 + if test "$$failed" -eq 0; then \
  562 + echo "$$grn$$dashes"; \
  563 + else \
  564 + echo "$$red$$dashes"; \
  565 + fi; \
  566 + echo "$$banner"; \
  567 + test -z "$$skipped" || echo "$$skipped"; \
  568 + test -z "$$report" || echo "$$report"; \
  569 + echo "$$dashes$$std"; \
  570 + test "$$failed" -eq 0; \
  571 + else :; fi
  572 +
  573 +distdir: $(DISTFILES)
  574 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  575 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  576 + list='$(DISTFILES)'; \
  577 + dist_files=`for file in $$list; do echo $$file; done | \
  578 + sed -e "s|^$$srcdirstrip/||;t" \
  579 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  580 + case $$dist_files in \
  581 + */*) $(MKDIR_P) `echo "$$dist_files" | \
  582 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  583 + sort -u` ;; \
  584 + esac; \
  585 + for file in $$dist_files; do \
  586 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  587 + if test -d $$d/$$file; then \
  588 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  589 + if test -d "$(distdir)/$$file"; then \
  590 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  591 + fi; \
  592 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  593 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  594 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  595 + fi; \
  596 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  597 + else \
  598 + test -f "$(distdir)/$$file" \
  599 + || cp -p $$d/$$file "$(distdir)/$$file" \
  600 + || exit 1; \
  601 + fi; \
  602 + done
  603 +check-am: all-am
  604 + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
  605 + $(MAKE) $(AM_MAKEFLAGS) check-TESTS
  606 +check: check-am
  607 +all-am: Makefile
  608 +installdirs:
  609 +install: install-am
  610 +install-exec: install-exec-am
  611 +install-data: install-data-am
  612 +uninstall: uninstall-am
  613 +
  614 +install-am: all-am
  615 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  616 +
  617 +installcheck: installcheck-am
  618 +install-strip:
  619 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  620 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  621 + `test -z '$(STRIP)' || \
  622 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  623 +mostlyclean-generic:
  624 +
  625 +clean-generic:
  626 +
  627 +distclean-generic:
  628 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  629 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  630 +
  631 +maintainer-clean-generic:
  632 + @echo "This command is intended for maintainers to use"
  633 + @echo "it deletes files that may require special tools to rebuild."
  634 +clean: clean-am
  635 +
  636 +clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
  637 + mostlyclean-am
  638 +
  639 +distclean: distclean-am
  640 + -rm -rf ./$(DEPDIR)
  641 + -rm -f Makefile
  642 +distclean-am: clean-am distclean-compile distclean-generic \
  643 + distclean-tags
  644 +
  645 +dvi: dvi-am
  646 +
  647 +dvi-am:
  648 +
  649 +html: html-am
  650 +
  651 +html-am:
  652 +
  653 +info: info-am
  654 +
  655 +info-am:
  656 +
  657 +install-data-am:
  658 +
  659 +install-dvi: install-dvi-am
  660 +
  661 +install-dvi-am:
  662 +
  663 +install-exec-am:
  664 +
  665 +install-html: install-html-am
  666 +
  667 +install-html-am:
  668 +
  669 +install-info: install-info-am
  670 +
  671 +install-info-am:
  672 +
  673 +install-man:
  674 +
  675 +install-pdf: install-pdf-am
  676 +
  677 +install-pdf-am:
  678 +
  679 +install-ps: install-ps-am
  680 +
  681 +install-ps-am:
  682 +
  683 +installcheck-am:
  684 +
  685 +maintainer-clean: maintainer-clean-am
  686 + -rm -rf ./$(DEPDIR)
  687 + -rm -f Makefile
  688 +maintainer-clean-am: distclean-am maintainer-clean-generic
  689 +
  690 +mostlyclean: mostlyclean-am
  691 +
  692 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  693 + mostlyclean-libtool
  694 +
  695 +pdf: pdf-am
  696 +
  697 +pdf-am:
  698 +
  699 +ps: ps-am
  700 +
  701 +ps-am:
  702 +
  703 +uninstall-am:
  704 +
  705 +.MAKE: check-am install-am install-strip
  706 +
  707 +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  708 + clean-checkPROGRAMS clean-generic clean-libtool ctags \
  709 + distclean distclean-compile distclean-generic \
  710 + distclean-libtool distclean-tags distdir dvi dvi-am html \
  711 + html-am info info-am install install-am install-data \
  712 + install-data-am install-dvi install-dvi-am install-exec \
  713 + install-exec-am install-html install-html-am install-info \
  714 + install-info-am install-man install-pdf install-pdf-am \
  715 + install-ps install-ps-am install-strip installcheck \
  716 + installcheck-am installdirs maintainer-clean \
  717 + maintainer-clean-generic mostlyclean mostlyclean-compile \
  718 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  719 + tags uninstall uninstall-am
  720 +
  721 +
  722 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  723 +# Otherwise a system limit (for SysV at least) may be exceeded.
  724 +.NOEXPORT:
... ...
... ... @@ -4,9 +4,9 @@
4 4 #include <stdio.h>
5 5 #include <sys/types.h>
6 6
7   -#include "../bigpoint_cclass.h"
8   -#include "../bigpoint_crypt.h"
9   -#include "../base64.h"
  7 +#include "cclass.h"
  8 +#include "crypt.h"
  9 +#include "base64.h"
10 10
11 11
12 12 int
... ... @@ -18,10 +18,10 @@ main(int argc, char * argv[])
18 18 char * encrypted = NULL;
19 19 size_t length = strlen(data);
20 20
21   - struct BIGPOINT_CRYPT * crypt = NULL;
  21 + struct CRYPT * crypt = NULL;
22 22
23   - crypt = new(BIGPOINT_CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
24   - encrypted = bigpoint_crypt_encrypt(crypt, data, pass, &length);
  23 + crypt = new(CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
  24 + encrypted = crypt_encrypt(crypt, data, pass, &length);
25 25 delete(crypt);
26 26
27 27 b64d = calloc(BASE64_LENGTH(length), sizeof(char));
... ...
... ... @@ -4,9 +4,9 @@
4 4 #include <stdio.h>
5 5 #include <sys/types.h>
6 6
7   -#include "../bigpoint_cclass.h"
8   -#include "../bigpoint_crypt.h"
9   -#include "../base64.h"
  7 +#include "cclass.h"
  8 +#include "crypt.h"
  9 +#include "base64.h"
10 10
11 11
12 12 int
... ... @@ -18,7 +18,7 @@ main(int argc, char * argv[])
18 18 char * decrypted = NULL;
19 19 size_t length = strlen(b64d);
20 20
21   - struct BIGPOINT_CRYPT * crypt = NULL;
  21 + struct CRYPT * crypt = NULL;
22 22
23 23 data = calloc(length, sizeof(char));
24 24 base64_decode(b64d, length, data, &length);
... ... @@ -26,8 +26,8 @@ main(int argc, char * argv[])
26 26 data = realloc(data, length + 1);
27 27 data[length] = '\0';
28 28
29   - crypt = new(BIGPOINT_CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
30   - decrypted = bigpoint_crypt_decrypt(crypt, data, pass, &length);
  29 + crypt = new(CRYPT, MCRYPT_RIJNDAEL_256, MCRYPT_CFB);
  30 + decrypted = crypt_decrypt(crypt, data, pass, &length);
31 31 delete(crypt);
32 32 free(data);
33 33
... ...
... ... @@ -2,8 +2,9 @@
2 2 #include <string.h>
3 3 #include <json/json.h>
4 4
5   -#include "../bigpoint_cclass.h"
6   -#include "../bigpoint_dyntype.h"
  5 +#include "cclass.h"
  6 +#include "dyntype.h"
  7 +
7 8
8 9 #define TEST_STR "this is a foo string"
9 10 #define TEST_KEY1 "key1"
... ... @@ -14,15 +15,15 @@
14 15 int
15 16 main(int argc, char * argv[])
16 17 {
17   - struct json_object * json = json_object_new_int(123);
18   - struct BIGPOINT_DYNTYPE * dyn = newFromJson(BIGPOINT_DYNTYPE, json);
  18 + struct json_object * json = json_object_new_int(123);
  19 + struct DYNTYPE * dyn = newFromJson(DYNTYPE, json);
19 20
20 21 printf("%d\n", (dyn->data)._int);
21 22
22 23 delete(dyn);
23 24 json_object_put(json);
24 25
25   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), 321);
  26 + dyn = new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), 321);
26 27 json = toJson(dyn);
27 28
28 29 printf("%s\n", json_object_to_json_string(json));
... ... @@ -31,14 +32,14 @@ main(int argc, char * argv[])
31 32 json_object_put(json);
32 33
33 34 json = json_object_new_string(TEST_STR);
34   - dyn = newFromJson(BIGPOINT_DYNTYPE, json);
  35 + dyn = newFromJson(DYNTYPE, json);
35 36
36 37 printf("%s\n", (dyn->data)._string);
37 38
38 39 delete(dyn);
39 40 json_object_put(json);
40 41
41   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(TEST_STR), TEST_STR);
  42 + dyn = new(DYNTYPE, DYNTYPE_TYPE_STRING, strlen(TEST_STR), TEST_STR);
42 43 json = toJson(dyn);
43 44
44 45 printf("%s\n", json_object_to_json_string(json));
... ... @@ -47,26 +48,26 @@ main(int argc, char * argv[])
47 48 json_object_put(json);
48 49
49 50 json = json_tokener_parse("{\"key1\":123,\"key2\":321,\"key3\":\"" TEST_STR "\"}");
50   - dyn = newFromJson(BIGPOINT_DYNTYPE, json);
  51 + dyn = newFromJson(DYNTYPE, json);
51 52 json_object_put(json);
52 53
53 54 json = toJson(dyn);
54 55 printf("%s\n", json_object_to_json_string(json));
55 56 json_object_put(json);
56 57
57   - if (BIGPOINT_DYNTYPE_HASH == dyn->type) {
58   - struct BIGPOINT_HASH * hash = (dyn->data)._hash;
59   - struct BIGPOINT_DYNTYPE * value;
  58 + if (DYNTYPE_TYPE_HASH == dyn->type) {
  59 + struct DYNTYPE_HASH * hash = (dyn->data)._hash;
  60 + struct DYNTYPE * value;
60 61
61   - value = bigpoint_hash_get(hash, TEST_KEY1);
  62 + value = dyntype_hash_get(hash, TEST_KEY1);
62 63 printf("%d\n", (value->data)._int);
63 64 delete(value);
64 65
65   - value = bigpoint_hash_get(hash, TEST_KEY2);
  66 + value = dyntype_hash_get(hash, TEST_KEY2);
66 67 printf("%d\n", (value->data)._int);
67 68 delete(value);
68 69
69   - value = bigpoint_hash_get(hash, TEST_KEY3);
  70 + value = dyntype_hash_get(hash, TEST_KEY3);
70 71 printf("%s\n", (value->data)._string);
71 72 delete(value);
72 73 }
... ...
... ... @@ -2,8 +2,8 @@
2 2 #include <string.h>
3 3 #include <json/json.h>
4 4
5   -#include "../bigpoint_cclass.h"
6   -#include "../bigpoint_hash.h"
  5 +#include "cclass.h"
  6 +#include "dyntype/hash.h"
7 7
8 8
9 9 #define TEST_KEY1 "key1"
... ... @@ -13,39 +13,39 @@
13 13 int
14 14 main(int argc, char * argv[])
15 15 {
16   - struct BIGPOINT_DYNTYPE * dyn;
17   - struct BIGPOINT_HASH * hash = new(BIGPOINT_HASH);
18   - struct json_object * json;
  16 + struct DYNTYPE * dyn;
  17 + struct DYNTYPE_HASH * hash = new(DYNTYPE_HASH);
  18 + struct json_object * json;
19 19
20   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), 123);
21   - bigpoint_hash_set(hash, TEST_KEY1, dyn);
  20 + dyn = new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), 123);
  21 + dyntype_hash_set(hash, TEST_KEY1, dyn);
22 22
23   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), 321);
24   - bigpoint_hash_set(hash, TEST_KEY2, dyn);
  23 + dyn = new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), 321);
  24 + dyntype_hash_set(hash, TEST_KEY2, dyn);
25 25
26 26 json = toJson(hash);
27 27 printf("%s\n", json_object_to_json_string(json));
28 28 json_object_put(json);
29 29
30   - dyn = bigpoint_hash_get(hash, TEST_KEY1);
  30 + dyn = dyntype_hash_get(hash, TEST_KEY1);
31 31 printf("%d\n", (dyn->data)._int);
32 32 delete(dyn);
33 33
34   - dyn = bigpoint_hash_get(hash, TEST_KEY2);
  34 + dyn = dyntype_hash_get(hash, TEST_KEY2);
35 35 printf("%d\n", (dyn->data)._int);
36 36 delete(dyn);
37 37
38 38 delete(hash);
39 39
40 40 json = json_tokener_parse("{\"key1\":123,\"key2\":321}");
41   - hash = newFromJson(BIGPOINT_HASH, json);
  41 + hash = newFromJson(DYNTYPE_HASH, json);
42 42 json_object_put(json);
43 43
44   - dyn = bigpoint_hash_get(hash, TEST_KEY1);
  44 + dyn = dyntype_hash_get(hash, TEST_KEY1);
45 45 printf("%d\n", (dyn->data)._int);
46 46 delete(dyn);
47 47
48   - dyn = bigpoint_hash_get(hash, TEST_KEY2);
  48 + dyn = dyntype_hash_get(hash, TEST_KEY2);
49 49 printf("%d\n", (dyn->data)._int);
50 50 delete(dyn);
51 51
... ...
... ... @@ -4,56 +4,56 @@
4 4 #include <time.h>
5 5 #include <json/json.h>
6 6
7   -#include "../bigpoint_cclass.h"
8   -#include "../bigpoint_packet.h"
9   -#include "../bigpoint_dyntype.h"
10   -#include "../bigpoint_hash.h"
  7 +#include "cclass.h"
  8 +#include "packet.h"
  9 +#include "dyntype.h"
  10 +#include "dyntype/hash.h"
11 11
12 12
13 13 void
14   -setHashString(struct BIGPOINT_HASH * hash, const char * key, const char * value)
  14 +setHashString(struct DYNTYPE_HASH * hash, const char * key, const char * value)
15 15 {
16   - struct BIGPOINT_DYNTYPE * dyn;
  16 + struct DYNTYPE * dyn;
17 17
18   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(value), value);
19   - bigpoint_hash_set(hash, key, dyn);
  18 + dyn = new(DYNTYPE, DYNTYPE_TYPE_STRING, strlen(value), value);
  19 + dyntype_hash_set(hash, key, dyn);
20 20 }
21 21
22 22 void
23   -setHashInt(struct BIGPOINT_HASH * hash, const char * key, const int value)
  23 +setHashInt(struct DYNTYPE_HASH * hash, const char * key, const int value)
24 24 {
25   - struct BIGPOINT_DYNTYPE * dyn;
  25 + struct DYNTYPE * dyn;
26 26
27   - dyn = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), value);
28   - bigpoint_hash_set(hash, key, dyn);
  27 + dyn = new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), value);
  28 + dyntype_hash_set(hash, key, dyn);
29 29 }
30 30
31 31 int
32 32 main(int argc, char * argv[])
33 33 {
34   - struct BIGPOINT_PACKET * packet;
35   - struct BIGPOINT_HASH * data;
  34 + struct PACKET * packet;
  35 + struct DYNTYPE_HASH * data;
36 36 struct json_object * json;
37 37 char * json_str;
38 38
39   - packet = new(BIGPOINT_PACKET);
  39 + packet = new(PACKET);
40 40
41   - bigpoint_packet_setHeader(
  41 + packet_setHeader(
42 42 packet,
43   - new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(int), time(NULL)));
  43 + new(DYNTYPE, DYNTYPE_TYPE_INT, sizeof(int), time(NULL)));
44 44
45   - data = new(BIGPOINT_HASH);
  45 + data = new(DYNTYPE_HASH);
46 46
47 47 setHashString(data, "#C#", "this comes from C");
48 48 setHashString(data, "usr", "ppohg");
49 49 setHashString(data, "pas", "yyyyy");
50 50 setHashInt(data, "val", 321);
51 51
52   - bigpoint_packet_setData(
  52 + packet_setData(
53 53 packet,
54   - new(BIGPOINT_DYNTYPE,
55   - BIGPOINT_DYNTYPE_HASH,
56   - sizeof(struct BIGPOINT_HASH *),
  54 + new(DYNTYPE,
  55 + DYNTYPE_HASH,
  56 + sizeof(struct DYNTYPE_HASH *),
57 57 data));
58 58
59 59 json = toJson(packet);
... ... @@ -67,28 +67,28 @@ main(int argc, char * argv[])
67 67
68 68 printf("%s\n", json_str);
69 69
70   - delete(bigpoint_hash_get(data, "#C#"));
71   - delete(bigpoint_hash_get(data, "usr"));
72   - delete(bigpoint_hash_get(data, "pas"));
73   - delete(bigpoint_hash_get(data, "val"));
74   - delete(bigpoint_packet_getHeader(packet));
75   - delete(bigpoint_packet_getData(packet));
  70 + delete(dyntype_hash_get(data, "#C#"));
  71 + delete(dyntype_hash_get(data, "usr"));
  72 + delete(dyntype_hash_get(data, "pas"));
  73 + delete(dyntype_hash_get(data, "val"));
  74 + delete(packet_getHeader(packet));
  75 + delete(packet_getData(packet));
76 76 delete(packet);
77 77
78 78 json_object_put(json);
79 79
80 80 json = json_tokener_parse(json_str);
81   - packet = newFromJson(BIGPOINT_PACKET, json);
  81 + packet = newFromJson(PACKET, json);
82 82
83 83 printf("%s\n", json_object_to_json_string(json));
84 84
85   - data = (bigpoint_packet_getData(packet)->data)._hash;
86   - delete(bigpoint_hash_get(data, "#C#"));
87   - delete(bigpoint_hash_get(data, "usr"));
88   - delete(bigpoint_hash_get(data, "pas"));
89   - delete(bigpoint_hash_get(data, "val"));
90   - delete(bigpoint_packet_getHeader(packet));
91   - delete(bigpoint_packet_getData(packet));
  85 + data = (packet_getData(packet)->data)._hash;
  86 + delete(dyntype_hash_get(data, "#C#"));
  87 + delete(dyntype_hash_get(data, "usr"));
  88 + delete(dyntype_hash_get(data, "pas"));
  89 + delete(dyntype_hash_get(data, "val"));
  90 + delete(packet_getHeader(packet));
  91 + delete(packet_getData(packet));
92 92 delete(packet);
93 93 free(json_str);
94 94
... ...
Please register or login to post a comment