about summary refs log tree commit homepage
path: root/ext/http11/tst_init.c
diff options
context:
space:
mode:
authorevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-26 03:07:30 +0000
committerevanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9>2007-10-26 03:07:30 +0000
commite045f787e126f40d6cd2539632ceb02221c1e8d8 (patch)
tree47eb16d886e5ead3b4e47d716b9d23f26df624c0 /ext/http11/tst_init.c
parentd7fa2022890e9347933591805f49d7f76fd3e141 (diff)
downloadunicorn-e045f787e126f40d6cd2539632ceb02221c1e8d8.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@744 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext/http11/tst_init.c')
-rw-r--r--ext/http11/tst_init.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/ext/http11/tst_init.c b/ext/http11/tst_init.c
deleted file mode 100644
index 259734a..0000000
--- a/ext/http11/tst_init.c
+++ /dev/null
@@ -1,41 +0,0 @@
-
-#include "tst.h"
-#include <stdio.h>
-#include <stdlib.h>
-
-struct tst *tst_init(int width)
-{
-   struct tst *tst;
-   struct node *current_node;
-   int i;
-
-
-if((tst = (struct tst *) calloc(1, sizeof(struct tst))) == NULL)
-   return NULL;
-
-if ((tst->node_lines = (struct node_lines *) calloc(1, sizeof(struct node_lines))) == NULL)
-{
-   free(tst);
-   return NULL;
-}
-
-tst->node_line_width = width;
-tst->node_lines->next = NULL;
-if ((tst->node_lines->node_line = (struct node *) calloc(width, sizeof(struct node))) == NULL)
-{
-   free(tst->node_lines);
-   free(tst);
-   return NULL;
-}
-
-current_node = tst->node_lines->node_line;
-tst->free_list = current_node;
-for (i = 1; i < width; i++)
-{
-   current_node->middle = &(tst->node_lines->node_line[i]);
-   current_node = current_node->middle;
-}
-current_node->middle = NULL;
-return tst;
-}
-