well, internals rewrite seems working. also, stoplist implemented.

This commit is contained in:
Alexandre Snarskii
2015-07-12 17:31:09 +03:00
parent aa043c2f7d
commit f0827d505f
12 changed files with 2271 additions and 57 deletions

View File

@@ -5,7 +5,7 @@
#include "sx_slentry.h"
struct sx_slentry*
struct sx_slentry*
sx_slentry_new(char* t)
{
struct sx_slentry* e=malloc(sizeof(struct sx_slentry));
@@ -14,3 +14,14 @@ sx_slentry_new(char* t)
if(t) e->text=strdup(t);
return e;
};
struct sx_tentry*
sx_tentry_new(char* t)
{
struct sx_tentry* te = malloc(sizeof(struct sx_tentry));
if (!te)
return NULL;
memset(te, 0, sizeof(struct sx_tentry));
te->text = strdup(t);
return te;
};