Skip to content

Commit

Permalink
added http_resp_2_lines transcoder; #109 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Mar 10, 2016
1 parent 5b97700 commit a5c2365
Show file tree
Hide file tree
Showing 10 changed files with 182 additions and 92 deletions.
7 changes: 7 additions & 0 deletions doxy/sys_defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3346,6 +3346,13 @@ <h4>INTERNET_CONTEXT</h4>
<div class="def-sym-def"><a href="ref_sys_structures.html#LIST_OF_HTTP_RESPONSE_STATUS_AND_HTTP_HEADERS_AND_HTTP_RESPONSE_BODY">LIST-OF-HTTP-RESPONSE-STATUS-AND-HTTP-HEADERS-AND-HTTP-RESPONSE-BODY</a></div>
<div class="def-comment"></div>
</div>
<div class="def-item def-process">
<div class="def-type">Process:</div>
<div class="def-name"><a name="http_response_2_lines"></a>http_response_2_lines</div>
<div class="def-sig-in"><li>input(SYMBOL:<a href="ref_sys_symbols.html#HTTP_RESPONSE">HTTP_RESPONSE</a>)</li></div>
<div class="def-sig-out">output(SYMBOL:<a href="ref_sys_symbols.html#LINES">LINES</a>)</div>
<div class="def-comment"><i>http response transcoder</i></div>
</div>
<div class="def-item def-symbol">
<div class="def-type">Symbol:</div>
<div class="def-name"><a name="HTML_DOCUMENT"></a>HTML_DOCUMENT</div>
Expand Down
1 change: 1 addition & 0 deletions doxy/sys_processes.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<tr><td><a name="echo2stream"></a>echo2stream</td><td><ol><li>stream(STRUCTURE:<a href="ref_sys_symbols.html#STREAM">STREAM</a>)</li><li>value(ANY:<a href="ref_sys_symbols.html#NULL_STRUCTURE">NULL_STRUCTURE</a>)</li></ol></td><td>result(SYMBOL:<a href="ref_sys_symbols.html#NULL_SYMBOL">NULL_SYMBOL</a>)</td><td><i>echo input to stream</i></td></tr>
<tr><td><a name="meda_type_2_ascii_str"></a>meda_type_2_ascii_str</td><td><ol><li>input(STRUCTURE:<a href="ref_sys_symbols.html#MEDIA_TYPE">MEDIA_TYPE</a>)</li></ol></td><td>output(SYMBOL:<a href="ref_sys_symbols.html#ASCII_STR">ASCII_STR</a>)</td><td><i>media type transcoder</i></td></tr>
<tr><td><a name="content_type_2_line"></a>content_type_2_line</td><td><ol><li>input(SYMBOL:<a href="ref_sys_symbols.html#CONTENT_TYPE">CONTENT_TYPE</a>)</li></ol></td><td>output(SYMBOL:<a href="ref_sys_symbols.html#LINE">LINE</a>)</td><td><i>content type transcoder</i></td></tr>
<tr><td><a name="http_response_2_lines"></a>http_response_2_lines</td><td><ol><li>input(SYMBOL:<a href="ref_sys_symbols.html#HTTP_RESPONSE">HTTP_RESPONSE</a>)</li></ol></td><td>output(SYMBOL:<a href="ref_sys_symbols.html#LINES">LINES</a>)</td><td><i>http response transcoder</i></td></tr>
<tr><td><a name="line_2_httpreq"></a>line_2_httpreq</td><td><ol></ol></td><td>signal id(SYMBOL:<a href="ref_sys_symbols.html#SIGNAL_UUID">SIGNAL_UUID</a>)</td><td><i>parse an HTTP_REQUEST from a LINE</i></td></tr>
<tr><td><a name="httpresp"></a>httpresp</td><td><ol></ol></td><td>response(SYMBOL:<a href="ref_sys_symbols.html#HTTP_RESPONSE">HTTP_RESPONSE</a>)</td><td><i>build an HTTP_RESPONSE</i></td></tr>
</table>
6 changes: 3 additions & 3 deletions spec/http_example.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,14 @@ void testHTTPprotocol() {
_o_express_role(er,PARSE_HTTP_REQUEST_FROM_LINE,HTTP_REQUEST_PARSER,HTTP_ASPECT,bindings);
_t_free(bindings);

// debug_enable(D_TRANSCODE+D_REDUCE);
//debug_enable(D_TRANSCODE+D_STEP+D_STREAM);
_v_start_vmhost(G_vm);
sleep(1);
debug_disable(D_STREAM+D_SIGNALS+D_TREE+D_PROTOCOL);
debug_disable(D_TRANSCODE+D_REDUCE);
debug_disable(D_TRANSCODE+D_REDUCE+D_REDUCEV);
spec_is_true(output_data != 0); // protect against seg-faults when nothing was written to the stream...
if (output_data != 0) {
spec_is_str_equal(output_data,"HTTP/1.1 200 OK\nContent-Type: text/ceptr\n\nbody\n");
spec_is_str_equal(output_data,"HTTP/1.1 200 OK\nContent-Type: text/ceptr\n\nsuper cept\n314159\n");
}
__r_kill(G_vm->r);

Expand Down
14 changes: 11 additions & 3 deletions src/base_defs
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,15 @@ Symbol: HTTP_HEADER,[|{HTTP_GENERAL_HEADER|HTTP_RESPONSE_HEADER|HTTP_ENTITY_HEAD
Symbol: HTTP_HEADERS,[*HTTP_HEADER];
Symbol: HTTP_RESPONSE,[(HTTP_RESPONSE_STATUS,HTTP_HEADERS,HTTP_RESPONSE_BODY)];

Data: http_response_2_lines_proc, (LINES
(CONTRACT_STR (RESULT_SYMBOL:LINE) (ASCII_STR:"HTTP") (ASCII_CHAR:'/') (ASCII_STR:"1.1 ") (TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:ASCII_STR)) (TRANSCODE_ITEMS (PARAM_REF:/2/1/1)) (ASCII_CHAR:' ') (PARAM_REF:/2/1/2)))
(DISSOLVE (TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:LINES)) (TRANSCODE_ITEMS (PARAM_REF:/2/1/2))))
(LINE:"")
(TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:LINE)) (TRANSCODE_ITEMS (PARAM_REF:/2/1/3))))
);

ProcessL: http_response_2_lines,http_response_2_lines_proc,"http response transcoder",HTTP_RESPONSE,TRANSCODER,"output",SIGNATURE_SYMBOL,LINES,"input",SIGNATURE_SYMBOL,HTTP_RESPONSE,0;

# html defs
Symbol: HTML_DOCUMENT,NULL_STRUCTURE; //@todo should be an optionality structure
Symbol: HTML_TOK_TAG_OPEN,CSTRING;
Expand Down Expand Up @@ -827,9 +836,8 @@ Data: line_2_httpreq_proc, (SAY
(CARRIER:backnforth)
(PARAM_REF:/2/1)
(RESPONSE_CARRIER:backnforth))
(LINES
(CONTRACT_STR (RESULT_SYMBOL:LINE) (ASCII_STR:"HTTP") (ASCII_CHAR:'/') (ASCII_STR:"1.1 ") (TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:ASCII_STR)) (TRANSCODE_ITEMS (PARAM_REF:/1/4/1/1/1/1)) (ASCII_CHAR:' ') (PARAM_REF:/1/4/1/1/1/2)))
(DISSOLVE (TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:LINES)) (TRANSCODE_ITEMS (PARAM_REF:/1/4/1/1/2)))))
(TRANSCODE (TRANSCODE_PARAMS (TRANSCODE_TO:LINES)) (TRANSCODE_ITEMS (PARAM_REF:/1/4/1/1)))


)));

Expand Down
5 changes: 4 additions & 1 deletion src/base_defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ SemanticID ZERO_OR_MORE_OF_HTTP_HEADER={0,0,0};
SemanticID HTTP_HEADERS={0,0,0};
SemanticID LIST_OF_HTTP_RESPONSE_STATUS_AND_HTTP_HEADERS_AND_HTTP_RESPONSE_BODY={0,0,0};
SemanticID HTTP_RESPONSE={0,0,0};
SemanticID http_response_2_lines={0,0,0};
SemanticID HTML_DOCUMENT={0,0,0};
SemanticID HTML_TOK_TAG_OPEN={0,0,0};
SemanticID HTML_TOK_TAG_CLOSE={0,0,0};
Expand Down Expand Up @@ -1216,6 +1217,8 @@ void base_defs(SemTable *sem) {
sY(INTERNET_CONTEXT,HTTP_HEADERS,ZERO_OR_MORE_OF_HTTP_HEADER);
sTs(INTERNET_CONTEXT,LIST_OF_HTTP_RESPONSE_STATUS_AND_HTTP_HEADERS_AND_HTTP_RESPONSE_BODY,sT_SEQ(3,sT_SYM(HTTP_RESPONSE_STATUS),sT_SYM(HTTP_HEADERS),sT_SYM(HTTP_RESPONSE_BODY)));
sY(INTERNET_CONTEXT,HTTP_RESPONSE,LIST_OF_HTTP_RESPONSE_STATUS_AND_HTTP_HEADERS_AND_HTTP_RESPONSE_BODY);
sData(INTERNET_CONTEXT,http_response_2_lines_proc,STX_OP,LINES,STX_OP,CONTRACT_STR,STX_OP,RESULT_SYMBOL,LINE,STX_CP,STX_OP,ASCII_STR,"HTTP",STX_CP,STX_OP,ASCII_CHAR,'/',STX_CP,STX_OP,ASCII_STR,"1.1 ",STX_CP,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,ASCII_STR,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,2,1,1,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_OP,ASCII_CHAR,' ',STX_CP,STX_OP,PARAM_REF,2,1,2,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_OP,DISSOLVE,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,LINES,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,2,1,2,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,LINE,"",STX_CP,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,LINE,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,2,1,3,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP);
sPL(INTERNET_CONTEXT,http_response_2_lines,http_response_2_lines_proc,"http response transcoder",HTTP_RESPONSE,TRANSCODER,"output",SIGNATURE_SYMBOL,LINES,"input",SIGNATURE_SYMBOL,HTTP_RESPONSE,0);
sY(INTERNET_CONTEXT,HTML_DOCUMENT,NULL_STRUCTURE);
sY(INTERNET_CONTEXT,HTML_TOK_TAG_OPEN,CSTRING);
sY(INTERNET_CONTEXT,HTML_TOK_TAG_CLOSE,CSTRING);
Expand Down Expand Up @@ -1253,7 +1256,7 @@ void base_defs(SemTable *sem) {
sY(INTERNET_CONTEXT,HTTP_CLIENT,RECEPTOR_ADDRESS);
sY(INTERNET_CONTEXT,HTTP_SERVER,RECEPTOR_ADDRESS);
sY(INTERNET_CONTEXT,HTTP_REQUEST_PARSER,RECEPTOR_ADDRESS);
sData(INTERNET_CONTEXT,line_2_httpreq_proc,STX_OP,SAY,STX_OP,SLOT,STX_OP,ROLE,LINE_SENDER,STX_CP,STX_OP,SLOT_IS_VALUE_OF,TO_ADDRESS,STX_CP,STX_CP,STX_OP,ASPECT_IDENT,DEFAULT_ASPECT,STX_CP,STX_OP,CARRIER,LINE,STX_CP,STX_OP,DO,STX_OP,BLOCK,STX_OP,REQUEST,STX_OP,SLOT,STX_OP,ROLE,HTTP_SERVER,STX_CP,STX_OP,SLOT_IS_VALUE_OF,TO_ADDRESS,STX_CP,STX_CP,STX_OP,ASPECT_IDENT,HTTP_ASPECT,STX_CP,STX_OP,CARRIER,backnforth,STX_CP,STX_OP,PARAM_REF,2,1,TREE_PATH_TERMINATOR,STX_CP,STX_OP,RESPONSE_CARRIER,backnforth,STX_CP,STX_CP,STX_OP,LINES,STX_OP,CONTRACT_STR,STX_OP,RESULT_SYMBOL,LINE,STX_CP,STX_OP,ASCII_STR,"HTTP",STX_CP,STX_OP,ASCII_CHAR,'/',STX_CP,STX_OP,ASCII_STR,"1.1 ",STX_CP,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,ASCII_STR,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,1,4,1,1,1,1,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_OP,ASCII_CHAR,' ',STX_CP,STX_OP,PARAM_REF,1,4,1,1,1,2,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_OP,DISSOLVE,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,LINES,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,1,4,1,1,2,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP);
sData(INTERNET_CONTEXT,line_2_httpreq_proc,STX_OP,SAY,STX_OP,SLOT,STX_OP,ROLE,LINE_SENDER,STX_CP,STX_OP,SLOT_IS_VALUE_OF,TO_ADDRESS,STX_CP,STX_CP,STX_OP,ASPECT_IDENT,DEFAULT_ASPECT,STX_CP,STX_OP,CARRIER,LINE,STX_CP,STX_OP,DO,STX_OP,BLOCK,STX_OP,REQUEST,STX_OP,SLOT,STX_OP,ROLE,HTTP_SERVER,STX_CP,STX_OP,SLOT_IS_VALUE_OF,TO_ADDRESS,STX_CP,STX_CP,STX_OP,ASPECT_IDENT,HTTP_ASPECT,STX_CP,STX_OP,CARRIER,backnforth,STX_CP,STX_OP,PARAM_REF,2,1,TREE_PATH_TERMINATOR,STX_CP,STX_OP,RESPONSE_CARRIER,backnforth,STX_CP,STX_CP,STX_OP,TRANSCODE,STX_OP,TRANSCODE_PARAMS,STX_OP,TRANSCODE_TO,LINES,STX_CP,STX_CP,STX_OP,TRANSCODE_ITEMS,STX_OP,PARAM_REF,1,4,1,1,TREE_PATH_TERMINATOR,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP);
sP(INTERNET_CONTEXT,line_2_httpreq,line_2_httpreq_proc,"parse an HTTP_REQUEST from a LINE","signal id",SIGNATURE_SYMBOL,SIGNAL_UUID,0);
sData(INTERNET_CONTEXT,httpreq_parser_def,STX_OP,PROTOCOL_DEFINITION,STX_OP,PROTOCOL_SEMANTICS,STX_OP,ROLE,LINE_SENDER,STX_CP,STX_OP,ROLE,HTTP_REQUEST_PARSER,STX_CP,STX_OP,ROLE,HTTP_SERVER,STX_CP,STX_CP,STX_OP,parse_line,STX_OP,EXPECT,STX_OP,ROLE,HTTP_REQUEST_PARSER,STX_CP,STX_OP,SOURCE,STX_OP,ROLE,LINE_SENDER,STX_CP,STX_CP,STX_OP,PATTERN,STX_OP,SEMTREX_SYMBOL_LITERAL,STX_OP,SEMTREX_SYMBOL,ASCII_CHARS,STX_CP,STX_OP,SEMTREX_GROUP,HTTP_REQUEST,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_METHOD,STX_OP,SEMTREX_ONE_OR_MORE,STX_OP,SEMTREX_VALUE_LITERAL_NOT,STX_OP,ASCII_CHAR,' ',STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,' ',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH_SEGMENTS,STX_OP,SEMTREX_ONE_OR_MORE,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'/',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH_SEGMENT,STX_OP,SEMTREX_ZERO_OR_MORE,STX_OP,SEMTREX_VALUE_LITERAL_NOT,STX_OP,SEMTREX_VALUE_SET,STX_OP,ASCII_CHAR,'/',STX_CP,STX_OP,ASCII_CHAR,'?',STX_CP,STX_OP,ASCII_CHAR,' ',STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_ZERO_OR_ONE,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'?',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH_QUERY,STX_OP,SEMTREX_ONE_OR_MORE,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH_QUERY_PARAMS,STX_OP,SEMTREX_ONE_OR_MORE,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_PATH_QUERY_PARAM,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_GROUP,PARAM_KEY,STX_OP,SEMTREX_ONE_OR_MORE,STX_OP,SEMTREX_VALUE_LITERAL_NOT,STX_OP,SEMTREX_VALUE_SET,STX_OP,ASCII_CHAR,'&',STX_CP,STX_OP,ASCII_CHAR,' ',STX_CP,STX_OP,ASCII_CHAR,'=',STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'=',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,PARAM_VALUE,STX_OP,SEMTREX_ZERO_OR_MORE,STX_OP,SEMTREX_VALUE_LITERAL_NOT,STX_OP,SEMTREX_VALUE_SET,STX_OP,ASCII_CHAR,'&',STX_CP,STX_OP,ASCII_CHAR,' ',STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_ZERO_OR_ONE,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'&',STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,' ',STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'H',STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'T',STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'T',STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'P',STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'/',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,HTTP_REQUEST_VERSION,STX_OP,SEMTREX_SEQUENCE,STX_OP,SEMTREX_GROUP,VERSION_MAJOR,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'0',STX_CP,STX_CP,STX_CP,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'.',STX_CP,STX_CP,STX_OP,SEMTREX_GROUP,VERSION_MINOR,STX_OP,SEMTREX_VALUE_LITERAL,STX_OP,ASCII_CHAR,'9',STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_OP,ACTION,line_2_httpreq,STX_CP,STX_OP,PARAMS,STX_OP,SLOT,STX_OP,USAGE,HTTP_REQUEST,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP,STX_CP);
sProt(INTERNET_CONTEXT,PARSE_HTTP_REQUEST_FROM_LINE,httpreq_parser_def);
Expand Down
2 changes: 2 additions & 0 deletions src/base_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1371,12 +1371,14 @@ enum INTERNETProcessIDs {
NULL_INTERNET_PROCESS_ID,
meda_type_2_ascii_str_ID,
content_type_2_line_ID,
http_response_2_lines_ID,
line_2_httpreq_ID,
httpresp_ID,
NUM_INTERNET_PROCESSES
};
SemanticID meda_type_2_ascii_str;
SemanticID content_type_2_line;
SemanticID http_response_2_lines;
SemanticID line_2_httpreq;
SemanticID httpresp;

Expand Down
2 changes: 2 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ char *dtypestr(int type) {
if (type & D_LISTEN) {sprintf(s,"_LISTEN");s--;};
if (type & D_TREE) {sprintf(s,"_TREE");s--;};
if (type & D_PROTOCOL) {sprintf(s,"_PROTOCOL");s--;};
if (type & D_TRANSCODE) {sprintf(s,"_TRANSCODE");s--;};
if (type & D_STEP) {sprintf(s,"_STEP");s--;};
*s=0;
return G_dtype;
}
Expand Down
2 changes: 1 addition & 1 deletion src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define CEPTR_DEBUG
#ifdef CEPTR_DEBUG

enum {D_NONE=0x0000,D_ALL=0xFFFF,D_SPEC=0x8000,D_SIGNALS=0x0001,D_REDUCE=0x0002,D_REDUCEV=0x0004,D_STX_MATCH=0x0008,D_CLOCK=0x0010,D_STREAM=0x0020,D_LOCK=0x0040,D_LISTEN=0x0080,D_PROTOCOL=0x0100,D_TREE=0x0200,D_TRANSCODE=0x0400};
enum {D_NONE=0x0000,D_ALL=0xFFFF,D_SPEC=0x8000,D_SIGNALS=0x0001,D_REDUCE=0x0002,D_REDUCEV=0x0004,D_STX_MATCH=0x0008,D_CLOCK=0x0010,D_STREAM=0x0020,D_LOCK=0x0040,D_LISTEN=0x0080,D_PROTOCOL=0x0100,D_TREE=0x0200,D_TRANSCODE=0x0400,D_STEP=0x0800};

#define DEBUG_DEFAULT_MASK D_NONE
//#define DEBUG_DEFAULT_MASK D_SIGNALS
Expand Down
Loading

0 comments on commit a5c2365

Please sign in to comment.