This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Pool.h | |
// | |
#ifndef Tools_Thread_Pool_h | |
#define Tools_Thread_Pool_h | |
// ================================================================================ Standard Includes | |
// Standard Includes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
enum jstates {JFAILED, JNXT, JSEP, JUP, JDWN, JQUP, JQDWN, JESC, JUNESC, JBARE, JUNBARE, JUTF8_2, | |
JUTF8_3, JUTF8_4, JUTF8_N, JSTATE_CNT}; | |
enum jtype {JEOS,JERR,JTSEP,JOBJB,JOBJE,JARRB,JARRE,JNUM,JSTR,JTRUE,JFALSE,JNULL}; | |
struct jtok {int type, len; const char *str;}; | |
struct jctx {const unsigned char *tbl; const char *cur, *end;}; | |
static const unsigned char jtbl[256] = { |
OlderNewer