<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>globals.c</filename>
    </added>
    <added>
      <filename>internal_tests.c</filename>
    </added>
    <added>
      <filename>util.c</filename>
    </added>
    <added>
      <filename>util.h</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -33,3 +33,4 @@ memcached-*.tar.gz
 doc/protocol-binary-range.txt
 doc/protocol-binary.txt
 /sizes
+/internal_tests
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-bin_PROGRAMS = memcached memcached-debug sizes
+bin_PROGRAMS = memcached memcached-debug sizes internal_tests
 pkginclude_HEADERS = protocol_binary.h
 
 BUILT_SOURCES=
@@ -10,6 +10,7 @@ memcached_SOURCES = memcached.c memcached.h \
                     assoc.c assoc.h \
                     thread.c daemon.c \
                     stats.c stats.h \
+                    util.c util.h \
                     trace.h
 
 if BUILD_SOLARIS_PRIVS
@@ -26,6 +27,8 @@ memcached_DEPENDENCIES =
 memcached_debug_DEPENDENCIES = 
 CLEANFILES=
 
+internal_tests_SOURCES = internal_tests.c util.c
+
 if BUILD_DTRACE
 BUILT_SOURCES += memcached_dtrace.h
 CLEANFILES += memcached_dtrace.h
@@ -58,8 +61,9 @@ EXTRA_DIST = doc scripts TODO t memcached.spec memcached_dtrace.d
 
 MOSTLYCLEANFILES = *.gcov *.gcno *.gcda *.tcov
 
-test:	memcached-debug sizes
+test:	memcached-debug internal_tests sizes
 	$(srcdir)/sizes
+	$(srcdir)/internal_tests
 	prove $(srcdir)/t
 	@if test `basename $(PROFILER)` = &quot;gcov&quot;; then \
 	  for file in memcached_debug-*.gc??; do \</diff>
      <filename>Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@
 #define UDP_MAX_PAYLOAD_SIZE 1400
 #define UDP_HEADER_SIZE 8
 #define MAX_SENDBUF_SIZE (256 * 1024 * 1024)
-/* I'm told the max legnth of a 64-bit num converted to string is 20 bytes.
+/* I'm told the max length of a 64-bit num converted to string is 20 bytes.
  * Plus a few for spaces, \r\n, \0 */
 #define SUFFIX_SIZE 24
 
@@ -337,7 +337,7 @@ extern int daemonize(int nochdir, int noclose);
 #include &quot;items.h&quot;
 #include &quot;trace.h&quot;
 #include &quot;hash.h&quot;
-
+#include &quot;util.h&quot;
 
 /*
  * Functions such as the libevent-related calls that need to do cross-thread</diff>
      <filename>memcached.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9791d32edaa99d2cb3825c2e526b066a6cbe2e4c</id>
    </parent>
  </parents>
  <author>
    <name>Brad Fitzpatrick</name>
    <email>brad@danga.com</email>
  </author>
  <url>http://github.com/tmaesaka/memcached/commit/420aa2d992093b78c1bba6cbb3577d5b53a19ec8</url>
  <id>420aa2d992093b78c1bba6cbb3577d5b53a19ec8</id>
  <committed-date>2009-03-19T01:52:53-07:00</committed-date>
  <authored-date>2008-10-14T21:03:05-07:00</authored-date>
  <message>start of the incr fix, rearranges a bunch, adds util, tests, etc</message>
  <tree>b465c4262e27303f5178350f1a7d8239b864c1eb</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
