Skip to content

Commit

Permalink
removing old HTTP receptor example stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Feb 9, 2016
1 parent 3acaff0 commit f1cc08f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion spec/accumulator_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void testAccPersistInstances() {

S *s = __a_serialize_instances(&i);
_a_free_instances(&i);
__a_unserialize_instances(HTTP_receptor->sem,&i,s);
__a_unserialize_instances(G_sem,&i,s);

spec_is_str_equal(t2s(_a_get_instance(&i,x)),"(PARAMS (TEST_INT_SYMBOL:314))");
spec_is_str_equal(t2s(_a_get_instance(&i,y)),t2s(htc));
Expand Down
2 changes: 0 additions & 2 deletions spec/ceptr_specs.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ int main(int argc, const char **argv) {
}
else {
def_sys();
_setup_HTTPDefs();
//**** core tests
testSemTable();
testDef();
Expand All @@ -66,7 +65,6 @@ int main(int argc, const char **argv) {
/* /\***** examples *\/ */
testProfileExample();

_cleanup_HTTPDefs();
sys_free();
report_tests();
}
Expand Down
10 changes: 0 additions & 10 deletions spec/http_example.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@
#include "../src/semtrex.h"
#include "spec_utils.h"

Receptor *HTTP_receptor;

void _setup_HTTPDefs() {
Receptor *r = HTTP_receptor = _r_new(G_sem,TEST_RECEPTOR);
}

void _cleanup_HTTPDefs() {
_r_free(HTTP_receptor);
}

//! [makeTestHTTPRequestTree]
/**
* generate a test semantic tree that represents an HTTP request
Expand Down
4 changes: 2 additions & 2 deletions spec/mtree_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,12 @@ void testMTreeSerialize() {
writeFile("web/test.cmt",s,s->total_size);
_m_free(h);free(s);

h = _m_new_from_t(__sem_get_defs(HTTP_receptor->sem,SEM_TYPE_STRUCTURE,HTTP_receptor->context));
h = _m_new_from_t(__sem_get_defs(G_sem,SEM_TYPE_STRUCTURE,INTERNET_CONTEXT));
s = _m_serialize(h.m);
writeFile("web/httpstructures.cmt",s,s->total_size);
_m_free(h);free(s);

h = _m_new_from_t(__sem_get_defs(HTTP_receptor->sem,SEM_TYPE_SYMBOL,HTTP_receptor->context));
h = _m_new_from_t(__sem_get_defs(G_sem,SEM_TYPE_SYMBOL,INTERNET_CONTEXT));
s = _m_serialize(h.m);
writeFile("web/httpsymbols.cmt",s,s->total_size);
_m_free(h);free(s);
Expand Down

0 comments on commit f1cc08f

Please sign in to comment.