http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c b/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c deleted file mode 100644 index 9ac7f9f..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/LuaXML_lib.c +++ /dev/null @@ -1,476 +0,0 @@ -/** -LuaXML License - -LuaXml is licensed under the terms of the MIT license reproduced below, -the same as Lua itself. This means that LuaXml is free software and can be -used for both academic and commercial purposes at absolutely no cost. - -Copyright (C) 2007-2013 Gerald Franz, eludi.net - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -#if defined __WIN32__ || defined WIN32 -# include <windows.h> -# define _EXPORT __declspec(dllexport) -#else -# define _EXPORT -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#include "civetweb_lua.h" - -#ifdef __cplusplus -} // extern "C" -#endif - -#include <stdio.h> -#include <string.h> -#include <ctype.h> -#include <stdlib.h> - -static const char ESC=27; -static const char OPN=28; -static const char CLS=29; - -//--- auxliary functions ------------------------------------------- - -static const char* char2code(unsigned char ch, char buf[8]) { - unsigned char i=0; - buf[i++]='&'; - buf[i++]='#'; - if(ch>99) buf[i++]=ch/100+48; - if(ch>9) buf[i++]=(ch%100)/10+48; - buf[i++]=ch%10+48; - buf[i++]=';'; - buf[i]=0; - return buf; -} - -static size_t find(const char* s, const char* pattern, size_t start) { - const char* found =strstr(s+start, pattern); - return found ? found-s : strlen(s); -} - -//--- internal tokenizer ------------------------------------------- - -typedef struct Tokenizer_s { - /// stores string to be tokenized - const char* s; - /// stores size of string to be tokenized - size_t s_size; - /// stores current read position - size_t i; - /// stores current read context - int tagMode; - /// stores next token, if already determined - const char* m_next; - /// size of next token - size_t m_next_size; - /// pointer to current token - char* m_token; - /// size of current token - size_t m_token_size; - /// capacity of current token - size_t m_token_capacity; -} Tokenizer; - -Tokenizer* Tokenizer_new(const char* str, size_t str_size) { - Tokenizer *tok = (Tokenizer*)malloc(sizeof(Tokenizer)); - memset(tok, 0, sizeof(Tokenizer)); - tok->s_size = str_size; - tok->s = str; - return tok; -} - -void Tokenizer_delete(Tokenizer* tok) { - free(tok->m_token); - free(tok); -} - -//void Tokenizer_print(Tokenizer* tok) { printf(" @%u %s\n", tok->i, !tok->m_token ? "(null)" : (tok->m_token[0]==ESC)?"(esc)" : (tok->m_token[0]==OPN)?"(open)": (tok->m_token[0]==CLS)?"(close)" : tok->m_token); fflush(stdout); } - -static const char* Tokenizer_set(Tokenizer* tok, const char* s, size_t size) { - if(!size||!s) return 0; - free(tok->m_token); - tok->m_token = (char*)malloc(size+1); - strncpy(tok->m_token,s, size); - tok->m_token[size] = 0; - tok->m_token_size = tok->m_token_capacity = size; - //Tokenizer_print(tok); - return tok->m_token; -} - -static void Tokenizer_append(Tokenizer* tok, char ch) { - if(tok->m_token_size+1>=tok->m_token_capacity) { - tok->m_token_capacity = (tok->m_token_capacity==0) ? 16 : tok->m_token_capacity*2; - tok->m_token = (char*)realloc(tok->m_token, tok->m_token_capacity); - } - tok->m_token[tok->m_token_size]=ch; - tok->m_token[++tok->m_token_size]=0; -} - -const char* Tokenizer_next(Tokenizer* tok) { - const char* ESC_str = "\033"; - const char* OPEN_str = "\034"; - const char* CLOSE_str = "\035"; - int quotMode=0; - int tokenComplete = 0; - - if(tok->m_token) { - free(tok->m_token); - tok->m_token = 0; - tok->m_token_size=tok->m_token_capacity = 0; - } - - while(tok->m_next_size || (tok->i < tok->s_size)) { - - if(tok->m_next_size) { - Tokenizer_set(tok, tok->m_next, tok->m_next_size); - tok->m_next=0; - tok->m_next_size=0; - return tok->m_token; - } - - switch(tok->s[tok->i]) { - case '"': - case '\'': - if(tok->tagMode) { - if(!quotMode) quotMode=tok->s[tok->i]; - else if(quotMode==tok->s[tok->i]) quotMode=0; - } - Tokenizer_append(tok, tok->s[tok->i]); - break; - case '<': - if(!quotMode&&(tok->i+4<tok->s_size)&&(strncmp(tok->s+tok->i,"<!--",4)==0)) // strip comments - tok->i=find(tok->s, "-->", tok->i+4)+2; - else if(!quotMode&&(tok->i+9<tok->s_size)&&(strncmp(tok->s+tok->i,"<![CDATA[",9)==0)) { // interpet CDATA - size_t b=tok->i+9; - tok->i=find(tok->s, "]]>",b)+3; - if(!tok->m_token_size) return Tokenizer_set(tok, tok->s+b, tok->i-b-3); - tokenComplete = 1; - tok->m_next = tok->s+b; - tok->m_next_size = tok->i-b-3; - --tok->i; - } - else if(!quotMode&&(tok->i+1<tok->s_size)&&((tok->s[tok->i+1]=='?')||(tok->s[tok->i+1]=='!'))) // strip meta information - tok->i=find(tok->s, ">", tok->i+2); - else if(!quotMode&&!tok->tagMode) { - if((tok->i+1<tok->s_size)&&(tok->s[tok->i+1]=='/')) { - tok->m_next=ESC_str; - tok->m_next_size = 1; - tok->i=find(tok->s, ">", tok->i+2); - } - else { - tok->m_next = OPEN_str; - tok->m_next_size = 1; - tok->tagMode=1; - } - tokenComplete = 1; - } - else Tokenizer_append(tok, tok->s[tok->i]); - break; - case '/': - if(tok->tagMode&&!quotMode) { - tokenComplete = 1; - if((tok->i+1 < tok->s_size) && (tok->s[tok->i+1]=='>')) { - tok->tagMode=0; - tok->m_next=ESC_str; - tok->m_next_size = 1; - ++tok->i; - } - else Tokenizer_append(tok, tok->s[tok->i]); - } - else Tokenizer_append(tok, tok->s[tok->i]); - break; - case '>': - if(!quotMode&&tok->tagMode) { - tok->tagMode=0; - tokenComplete = 1; - tok->m_next = CLOSE_str; - tok->m_next_size = 1; - } - else Tokenizer_append(tok, tok->s[tok->i]); - break; - case ' ': - case '\r': - case '\n': - case '\t': - if(tok->tagMode&&!quotMode) { - if(tok->m_token_size) tokenComplete=1; - } - else if(tok->m_token_size) Tokenizer_append(tok, tok->s[tok->i]); - break; - default: Tokenizer_append(tok, tok->s[tok->i]); - } - ++tok->i; - if((tok->i>=tok->s_size)||(tokenComplete&&tok->m_token_size)) { - tokenComplete=0; - while(tok->m_token_size&&isspace(tok->m_token[tok->m_token_size-1])) // trim whitespace - tok->m_token[--tok->m_token_size]=0; - if(tok->m_token_size) break; - } - } - //Tokenizer_print(tok); - return tok->m_token; -} - -//--- local variables ---------------------------------------------- - -/// stores number of special character codes -static size_t sv_code_size=0; -/// stores currently allocated capacity for special character codes -static size_t sv_code_capacity=16; -/// stores code table for special characters -static char** sv_code=0; - -//--- public methods ----------------------------------------------- - -static void Xml_pushDecode(lua_State* L, const char* s, size_t s_size) { - - luaL_Buffer b; - const char* found = strstr(s, "&#"); - size_t start=0, pos, i; - - if(!s_size) - s_size=strlen(s); - - luaL_buffinit(L, &b); - found = strstr(s, "&#"); - pos = found ? found-s : s_size; - - while(found) { - char ch = 0; - size_t i=0; - for(found += 2; i<3; ++i, ++found) - if(isdigit(*found)) - ch = ch * 10 + (*found - 48); - else break; - if(*found == ';') { - if(pos>start) - luaL_addlstring(&b, s+start, pos-start); - luaL_addchar(&b, ch); - start = pos + 3 + i; - } - found = strstr(found+1, "&#"); - pos = found ? found-s : s_size; - } - if(pos>start) - luaL_addlstring(&b,s+start, pos-start); - luaL_pushresult(&b); - - for(i=sv_code_size-1; i<sv_code_size; i-=2) { - luaL_gsub(L, lua_tostring(L,-1), sv_code[i], sv_code[i-1]); - lua_remove(L,-2); - } -} - -int Xml_eval(lua_State *L) { - char* str = 0; - size_t str_size=0; - Tokenizer* tok; - const char* token=0; - int firstStatement = 1; - - if(lua_isuserdata(L,1)) - str = (char*)lua_touserdata(L,1); - else { - const char * sTmp = luaL_checklstring(L,1,&str_size); - str = (char*)malloc(str_size+1); - memcpy(str, sTmp, str_size); - str[str_size]=0; - } - tok = Tokenizer_new(str, str_size ? str_size : strlen(str)); - lua_settop(L,0); - - while((token=Tokenizer_next(tok))!=0) if(token[0]==OPN) { // new tag found - if(lua_gettop(L)) { - size_t newIndex=lua_rawlen(L,-1)+1; - lua_pushnumber(L, (lua_Number)newIndex); - lua_newtable(L); - lua_settable(L, -3); - lua_pushnumber(L, (lua_Number)newIndex); - lua_gettable(L,-2); - } - else { - if (firstStatement) { - lua_newtable(L); - firstStatement = 0; - } - else return lua_gettop(L); - } - // set metatable: - lua_newtable(L); - lua_pushliteral(L, "__index"); - lua_getglobal(L, "xml"); - lua_settable(L, -3); - - lua_pushliteral(L, "__tostring"); // set __tostring metamethod - lua_getglobal(L, "xml"); - lua_pushliteral(L,"str"); - lua_gettable(L, -2); - lua_remove(L, -2); - lua_settable(L, -3); - lua_setmetatable(L, -2); - - // parse tag and content: - lua_pushnumber(L,0); // use index 0 for storing the tag - lua_pushstring(L, Tokenizer_next(tok)); - lua_settable(L, -3); - - while(((token = Tokenizer_next(tok))!=0)&&(token[0]!=CLS)&&(token[0]!=ESC)) { // parse tag header - size_t sepPos=find(token, "=", 0); - if(token[sepPos]) { // regular attribute - const char* aVal =token+sepPos+2; - size_t lenVal; - - lua_pushlstring(L, token, sepPos); - lenVal = strlen(aVal)-1; - if(!lenVal) Xml_pushDecode(L, "", 0); - else Xml_pushDecode(L, aVal, lenVal); - lua_settable(L, -3); - } - } - if(!token||(token[0]==ESC)) { - if(lua_gettop(L)>1) lua_settop(L,-2); // this tag has no content, only attributes - else break; - } - } - else if(token[0]==ESC) { // previous tag is over - if(lua_gettop(L)>1) lua_settop(L,-2); // pop current table - else break; - } - else { // read elements - lua_pushnumber(L,(lua_Number)lua_rawlen(L,-1)+1); - Xml_pushDecode(L, token, 0); - lua_settable(L, -3); - } - Tokenizer_delete(tok); - free(str); - return lua_gettop(L); -} - -int Xml_load (lua_State *L) { - const char * filename = luaL_checkstring(L,1); - FILE * file=fopen(filename,"r"); - char* buffer; - size_t sz; - - if(!file) - return luaL_error(L,"LuaXml ERROR: \"%s\" file error or file not found!",filename); - - fseek (file , 0 , SEEK_END); - sz = ftell (file); - rewind (file); - buffer = (char*)malloc(sz+1); - sz = fread (buffer,1,sz,file); - fclose(file); - buffer[sz]=0; - lua_pushlightuserdata(L,buffer); - lua_replace(L,1); - return Xml_eval(L); -}; - -int Xml_registerCode(lua_State *L) { - const char * decoded = luaL_checkstring(L,1); - const char * encoded = luaL_checkstring(L,2); - - size_t i; - for(i=0; i<sv_code_size; i+=2) - if(strcmp(sv_code[i],decoded)==0) - return luaL_error(L,"LuaXml ERROR: code already exists."); - if(sv_code_size+2>sv_code_capacity) { - sv_code_capacity*=2; - sv_code = (char**)realloc(sv_code, sv_code_capacity*sizeof(char*)); - } - sv_code[sv_code_size]=(char*)malloc(strlen(decoded)+1); - strcpy(sv_code[sv_code_size++], decoded); - sv_code[sv_code_size]=(char*)malloc(strlen(encoded)+1); - strcpy(sv_code[sv_code_size++],encoded); - return 0; -} - -int Xml_encode(lua_State *L) { - - char buf[8]; - size_t start, pos; - luaL_Buffer b; - const char* s; - size_t i; - - if(lua_gettop(L)!=1) - return 0; - luaL_checkstring(L,-1); - - for(i=0; i<sv_code_size; i+=2) { - luaL_gsub(L, lua_tostring(L,-1), sv_code[i], sv_code[i+1]); - lua_remove(L,-2); - } - s=lua_tostring(L,1); - luaL_buffinit(L, &b); - for(start=pos=0; s[pos]!=0; ++pos) if(s[pos]<0) { - if(pos>start) luaL_addlstring(&b,s+start, pos-start); - luaL_addstring(&b,char2code((unsigned char)(s[pos]),buf)); - start=pos+1; - } - if(pos>start) - luaL_addlstring(&b,s+start, pos-start); - luaL_pushresult(&b); - lua_remove(L,-2); - return 1; -} - -#ifdef __cplusplus -extern "C" { -#endif -int _EXPORT luaopen_LuaXML_lib (lua_State* L) { - static const struct luaL_Reg funcs[] = { - {"load", Xml_load}, - {"eval", Xml_eval}, - {"encode", Xml_encode}, - {"registerCode", Xml_registerCode}, - {NULL, NULL} - }; - - luaL_newlibtable(L, funcs); - luaL_setfuncs(L, funcs, 0); - lua_setglobal(L, "xml"); - - // register default codes: - if(!sv_code) { - sv_code=(char**)malloc(sv_code_capacity*sizeof(char*)); - sv_code[sv_code_size++]="&"; - sv_code[sv_code_size++]="&"; - sv_code[sv_code_size++]="<"; - sv_code[sv_code_size++]="<"; - sv_code[sv_code_size++]=">"; - sv_code[sv_code_size++]=">"; - sv_code[sv_code_size++]="\""; - sv_code[sv_code_size++]="""; - sv_code[sv_code_size++]="'"; - sv_code[sv_code_size++]="'"; - } - return 1; -} -#ifdef __cplusplus -} // extern "C" -#endif
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/civetweb_lua.h ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/civetweb_lua.h b/thirdparty/civetweb-1.9.1/src/third_party/civetweb_lua.h deleted file mode 100644 index 5ffefbe..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/civetweb_lua.h +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright (c) 2015-2017 the Civetweb developers - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ - -/* This header is intended to support Lua 5.1, Lua 5.2 and Lua 5.3 in the same - * C source code. - */ - -#ifndef CIVETWEB_LUA_H -#define CIVETWEB_LUA_H - -#define LUA_LIB -#include "lua.h" -#include "lauxlib.h" -#include "lualib.h" - -#ifndef LUA_VERSION_NUM -#error "Unknown Lua version" - -#elif LUA_VERSION_NUM == 501 -/* Lua 5.1 detected */ -#define LUA_OK 0 -#define LUA_ERRGCMM 999 /* not supported */ -#define mg_lua_load(a, b, c, d, e) lua_load(a, b, c, d) -#define lua_rawlen lua_objlen -#define lua_newstate(a, b) \ - luaL_newstate() /* Must use luaL_newstate() for 64 bit target */ -#define lua_pushinteger lua_pushnumber -#define luaL_newlib(L, t) \ - { \ - luaL_Reg const *r = t; \ - while (r->name) { \ - lua_register(L, r->name, r->func); \ - r++; \ - } \ - } -#define luaL_setfuncs(L, r, u) lua_register(L, r->name, r->func) - -#elif LUA_VERSION_NUM == 502 -/* Lua 5.2 detected */ -#define mg_lua_load lua_load - -#elif LUA_VERSION_NUM == 503 -/* Lua 5.3 detected */ -#define mg_lua_load lua_load - -#endif - -#ifdef LUA_VERSION_MAKEFILE -#if LUA_VERSION_MAKEFILE != LUA_VERSION_NUM -#error \ - "Mismatch between Lua version specified in Makefile and Lua version in lua.h" -#endif -#endif - -#endif /* #ifndef CIVETWEB_LUA_H */ http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/AUTHORS.rst ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/AUTHORS.rst b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/AUTHORS.rst deleted file mode 100644 index 2799f70..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/AUTHORS.rst +++ /dev/null @@ -1,72 +0,0 @@ -=============== -Duktape authors -=============== - -Copyright -========= - -Duktape copyrights are held by its authors. Each author has a copyright -to their contribution, and agrees to irrevocably license the contribution -under the Duktape ``LICENSE.txt``. - -Authors -======= - -Please include an e-mail address, a link to your GitHub profile, or something -similar to allow your contribution to be identified accurately. - -The following people have contributed code, website contents, or Wiki contents, -and agreed to irrevocably license their contributions under the Duktape -``LICENSE.txt`` (in order of appearance): - -* Sami Vaarala <[email protected]> -* Niki Dobrev -* Andreas Ãman <[email protected]> -* László Langó <[email protected]> -* Legimet <[email protected]> -* Karl Skomski <[email protected]> -* Bruce Pascoe <[email protected]> -* René Hollander <[email protected]> -* Julien Hamaide (https://github.com/crazyjul) -* Sebastian Götte (https://github.com/jaseg) - -Other contributions -=================== - -The following people have contributed something other than code (e.g. reported -bugs, provided ideas, etc; roughly in order of appearance): - -* Greg Burns -* Anthony Rabine -* Carlos Costa -* Aurélien Bouilland -* Preet Desai (Pris Matic) -* judofyr (http://www.reddit.com/user/judofyr) -* Jason Woofenden -* MichaÅ PrzybyÅ -* Anthony Howe -* Conrad Pankoff -* Jim Schimpf -* Rajaran Gaunker (https://github.com/zimbabao) -* Andreas Ãman -* Doug Sanden -* Josh Engebretson (https://github.com/JoshEngebretson) -* Remo Eichenberger (https://github.com/remoe) -* Mamod Mehyar (https://github.com/mamod) -* David Demelier (https://github.com/markand) -* Tim Caswell (https://github.com/creationix) -* Mitchell Blank Jr (https://github.com/mitchblank) -* https://github.com/yushli -* Seo Sanghyeon (https://github.com/sanxiyn) -* Han ChoongWoo (https://github.com/tunz) -* Joshua Peek (https://github.com/josh) -* Bruce E. Pascoe (https://github.com/fatcerberus) -* https://github.com/Kelledin -* https://github.com/sstruchtrup -* Michael Drake (https://github.com/tlsa) -* https://github.com/chris-y -* Laurent Zubiaur (https://github.com/lzubiaur) -* Ole André Vadla RavnÃ¥s (https://github.com/oleavr) - -If you are accidentally missing from this list, send me an e-mail -(``[email protected]``) and I'll fix the omission. http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/LICENSE.txt ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/LICENSE.txt b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/LICENSE.txt deleted file mode 100644 index 1b1c382..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/LICENSE.txt +++ /dev/null @@ -1,25 +0,0 @@ -=============== -Duktape license -=============== - -(http://opensource.org/licenses/MIT) - -Copyright (c) 2013-2016 by Duktape authors (see AUTHORS.rst) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.cmdline ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.cmdline b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.cmdline deleted file mode 100644 index 68a25d4..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.cmdline +++ /dev/null @@ -1,34 +0,0 @@ -# -# Example Makefile for building a program with embedded Duktape. -# The example program here is the Duktape command line tool. -# - -DUKTAPE_SOURCES = src/duktape.c - -DUKTAPE_CMDLINE_SOURCES = \ - examples/cmdline/duk_cmdline.c - -CC = gcc -CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -CCOPTS += -I./src # duktape.h and duk_config.h must be in include path -CCLIBS = -lm - -# If you want linenoise, you can enable these. At the moment linenoise -# will cause some harmless compilation warnings. -#CCOPTS += -DDUK_CMDLINE_FANCY -#DUKTAPE_CMDLINE_SOURCES += linenoise/linenoise.c -#CCOPTS += -I./linenoise -#duk: linenoise - -# Optional feature defines, see: http://duktape.org/guide.html#compiling -CCOPTS += -DDUK_OPT_SELF_TESTS -#CCOPTS += -DDUK_OPT_DEBUG -#CCOPTS += -DDUK_OPT_DPRINT -# ... - -duk: $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) - $(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) $(CCLIBS) - -linenoise/linenoise.c: linenoise -linenoise: - git clone https://github.com/antirez/linenoise.git http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.codepage ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.codepage b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.codepage deleted file mode 100644 index cdce9ab..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.codepage +++ /dev/null @@ -1,4 +0,0 @@ -codepage: - gcc -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \ - src/duktape.c examples/codepage-conv/duk_codepage_conv.c \ - examples/codepage-conv/test.c -lm http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.coffee ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.coffee b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.coffee deleted file mode 100644 index b99eea2..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.coffee +++ /dev/null @@ -1,4 +0,0 @@ -dummy: - coffee -c examples/coffee/globals.coffee - coffee -c examples/coffee/hello.coffee - coffee -c examples/coffee/mandel.coffee http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.dukdebug ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.dukdebug b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.dukdebug deleted file mode 100644 index dbbe6c8..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.dukdebug +++ /dev/null @@ -1,26 +0,0 @@ -# -# Duktape command line tool with debugger support. -# - -DUKTAPE_SOURCES = src/duktape.c - -# Windows (MinGW): use examples/debug-trans-socket/duk_trans_socket_windows.c -# and link with -lws2_32. -DUKTAPE_CMDLINE_SOURCES = \ - examples/cmdline/duk_cmdline.c \ - examples/debug-trans-socket/duk_trans_socket_unix.c - -CC = gcc -CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -CCOPTS += -I./src -I./examples/debug-trans-socket -CCOPTS += -DDUK_CMDLINE_DEBUGGER_SUPPORT # enable --debugger in ./duk -CCOPTS += -DDUK_OPT_DEBUGGER_SUPPORT # enable debugger support in Duktape -CCOPTS += -DDUK_OPT_INTERRUPT_COUNTER # prerequisite for debugging -CCOPTS += -DDUK_OPT_DEBUGGER_FWD_PRINTALERT # optional debugger features -CCOPTS += -DDUK_OPT_DEBUGGER_FWD_LOGGING -CCOPTS += -DDUK_OPT_DEBUGGER_DUMPHEAP -CCOPTS += -DDUK_OPT_DEBUGGER_INSPECT -CCLIBS = -lm - -duk: $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) - $(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) $(CCLIBS) http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eval ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eval b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eval deleted file mode 100644 index 73c5225..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eval +++ /dev/null @@ -1,7 +0,0 @@ -# -# Example Makefile for building the eval example -# - -eval: - gcc -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \ - src/duktape.c examples/eval/eval.c -lm http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eventloop ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eventloop b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eventloop deleted file mode 100644 index 14806ac..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.eventloop +++ /dev/null @@ -1,22 +0,0 @@ -# -# Example Makefile for building the eventloop example -# - -evloop: - @echo "NOTE: The eventloop is example is intended to be used on Linux" - @echo " or other common UNIX variants. It is not fully portable." - @echo "" - - gcc -o $@ -std=c99 -Wall -Wextra -O2 -Isrc \ - examples/eventloop/main.c \ - examples/eventloop/c_eventloop.c \ - examples/eventloop/poll.c \ - examples/eventloop/socket.c \ - examples/eventloop/fileio.c \ - examples/eventloop/ncurses.c \ - src/duktape.c \ - -lm -lncurses - - @echo "" - @echo "NOTE: You must 'cd examples/eventloop' before you execute the" - @echo " eventloop binary: it relies on finding .js files in CWD" http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.hello ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.hello b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.hello deleted file mode 100644 index 82e9ab6..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.hello +++ /dev/null @@ -1,35 +0,0 @@ -# -# Example Makefile for building a program with embedded Duktape. -# -# There are two source sets in the distribution: (1) combined sources where -# you only need duktape.c, duktape.h, and duk_config.h, and (2) separate -# sources where you have a bunch of source and header files. Whichever -# you use, simply include the relevant sources into your C project. This -# Makefile uses the combined source file. -# - -DUKTAPE_SOURCES = src/duktape.c - -# Compiler options are quite flexible. GCC versions have a significant impact -# on the size of -Os code, e.g. gcc-4.6 is much worse than gcc-4.5. - -CC = gcc -CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -CCOPTS += -I./src # for combined sources -CCLIBS = -lm -DEFINES = - -# If you want a 32-bit build on a 64-bit host -#CCOPTS += -m32 - -# Optional feature defines, see: http://duktape.org/guide.html#compiling -DEFINES += -DDUK_OPT_SELF_TESTS -#DEFINES += -DDUK_OPT_DEBUG -#DEFINES += -DDUK_OPT_DPRINT -#DEFINES += -DDUK_OPT_NO_TRACEBACKS -# ... - -# For debugging, use -O0 -g -ggdb, and don't add -fomit-frame-pointer - -hello: $(DUKTAPE_SOURCES) examples/hello/hello.c - $(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) examples/hello/hello.c $(CCLIBS) http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.jxpretty ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.jxpretty b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.jxpretty deleted file mode 100644 index 199247e..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.jxpretty +++ /dev/null @@ -1,8 +0,0 @@ -# -# Example Makefile for building the jxpretty example -# - -jxpretty: - gcc -o $@ -std=c99 -Wall -Wextra -O2 -Isrc \ - src/duktape.c examples/jxpretty/jxpretty.c \ - -lm http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sandbox ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sandbox b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sandbox deleted file mode 100644 index acd922a..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sandbox +++ /dev/null @@ -1,7 +0,0 @@ -# -# Example Makefile for building the sandbox example -# - -sandbox: - gcc -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \ - src/duktape.c examples/sandbox/sandbox.c -lm http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sharedlibrary ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sharedlibrary b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sharedlibrary deleted file mode 100644 index 32138ce..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/Makefile.sharedlibrary +++ /dev/null @@ -1,71 +0,0 @@ -# -# Example of how to build and install locally as a shared library -# -# Usage: -# -# $ make -f Makefile.sharedlibrary -# $ sudo make -f Makefile.sharedlibrary install -# $ make -f Makefile.sharedlibrary duk # --> example 'duk' linked to shared libduktape -# -# $ ls -l duk -# -rwxrwxr-x 1 duktape duktape 19407 Nov 30 15:48 duk -# -# $ ldd ./duk -# linux-vdso.so.1 => (0x00007ffd5ed3c000) -# libduktape.so.104 => /usr/local/lib/libduktape.so.104 (0x00007fb2f9753000) -# libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb2f944d000) -# libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2f9088000) -# /lib64/ld-linux-x86-64.so.2 (0x00007fb2f9991000) -# -# Based on: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html - -# Soname version must be bumped whenever a binary compatibility change occurs -# (and should not be bumped when the library is compatible). A simple Duktape -# convention is to set soname version to (100*MAJOR + MINOR), e.g. 104 for -# Duktape 1.4.x, so that it gets automatically bumped for major and minor -# releases (potentially binary incompatible), but not for patch releases. -DUK_VERSION=10502 -SONAME_VERSION=105 -REAL_VERSION=$(SONAME_VERSION).$(DUK_VERSION) - -# Change to actual path for actual distribution packaging. -INSTALL_PREFIX=/usr/local - -# The 'noline' variant may be more appropriate for some distributions; it -# doesn't have #line directives in the combined source. -DUKTAPE_SRCDIR=./src -#DUKTAPE_SRCDIR=./src-noline - -.PHONY: all -all: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION) - -# If the default duk_config.h is not suitable for the distribution, modify it -# before compiling the shared library and copy the same, edited duk_config.h -# to $INSTALL_PREFIX/include on installation. - -libduktape.so.$(REAL_VERSION): - gcc -shared -fPIC -Wall -Wextra -Os -Wl,-soname,libduktape.so.$(SONAME_VERSION) \ - -o $@ $(DUKTAPE_SRCDIR)/duktape.c - -libduktaped.so.$(REAL_VERSION): - gcc -shared -fPIC -g -Wall -Wextra -Os -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \ - -o $@ $(DUKTAPE_SRCDIR)/duktape.c - -# Symlinks depend on platform conventions. -.PHONY: install -install: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION) - cp $+ $(INSTALL_PREFIX)/lib/ - rm -f $(INSTALL_PREFIX)/lib/libduktape.so $(INSTALL_PREFIX)/lib/libduktape.so.$(SONAME_VERSION) - ln -s libduktape.so.$(REAL_VERSION) $(INSTALL_PREFIX)/lib/libduktape.so - ln -s libduktape.so.$(REAL_VERSION) $(INSTALL_PREFIX)/lib/libduktape.so.$(SONAME_VERSION) - rm -f $(INSTALL_PREFIX)/lib/libduktaped.so $(INSTALL_PREFIX)/lib/libduktaped.so.$(SONAME_VERSION) - ln -s libduktaped.so.$(REAL_VERSION) $(INSTALL_PREFIX)/lib/libduktaped.so - ln -s libduktaped.so.$(REAL_VERSION) $(INSTALL_PREFIX)/lib/libduktaped.so.$(SONAME_VERSION) - cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(INSTALL_PREFIX)/include/ - -# Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link -# path which may not be the case for all distributions. -#CCOPTS=-I/usr/local/include -L/usr/local/lib -CCOPTS= -duk: - gcc $(CCOPTS) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/README.rst ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/README.rst b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/README.rst deleted file mode 100644 index 65311a7..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/README.rst +++ /dev/null @@ -1,110 +0,0 @@ -======= -Duktape -======= - -Duktape is a small and portable Ecmascript E5/E5.1 implementation. It is -intended to be easily embeddable into C programs, with a C API similar in -spirit to Lua's. - -Duktape supports the full E5/E5.1 feature set including errors, Unicode -strings, and regular expressions, a subset of E6 features (e.g. Proxy -objects), Khronos/ES6 ArrayBuffer/TypedView, and Node.js Buffer bindings. - -Duktape also provides a number of custom features such as error tracebacks, -additional data types for better C integration, combined reference counting -and mark-and sweep garbage collector, object finalizers, co-operative -threads a.k.a. coroutines, tail calls, built-in logging and module frameworks, -a built-in debugger protocol, function bytecode dump/load, and so on. - -You can browse Duktape programmer's API and other documentation at: - -* http://duktape.org/ - -In particular, you should read the getting started section: - -* http://duktape.org/guide.html#gettingstarted - -More examples and how-to articles are in the Duktape Wiki: - -* http://wiki.duktape.org/ - -Building and integrating Duktape into your project is very straightforward: - -* http://duktape.org/guide.html#compiling - -See Makefile.hello for a concrete example:: - - $ cd <dist_root> - $ make -f Makefile.hello - [...] - $ ./hello - Hello world! - 2+3=5 - -To build an example command line tool, use the following:: - - $ cd <dist_root> - $ make -f Makefile.cmdline - [...] - - $ ./duk - ((o) Duktape - duk> print('Hello world!'); - Hello world! - = undefined - - $ ./duk mandel.js - [...] - -This distributable contains: - -* ``src/``: main Duktape library in a "single source file" format (duktape.c, - duktape.h, and duk_config.h). - -* ``src-noline/``: contains a variant of ``src/duktape.c`` with no ``#line`` - directives which is preferable for some users. See discussion in - https://github.com/svaarala/duktape/pull/363. - -* ``src-separate/``: main Duktape library in multiple files format. - -* ``config/``: genconfig utility for creating duk_config.h configuration - files, see: http://wiki.duktape.org/Configuring.html. - -* ``examples/``: further examples for using Duktape. Although Duktape - itself is widely portable, some of the examples are Linux only. - For instance the ``eventloop`` example illustrates how ``setTimeout()`` - and other standard timer functions could be implemented on Unix/Linux. - -* ``extras/``: utilities and modules which don't comfortably fit into the - main Duktape library because of footprint or portability concerns. - Extras are maintained and bug fixed code, but don't have the same version - guarantees as the main Duktape library. - -* ``polyfills/``: a few replacement suggestions for non-standard Javascript - functions provided by other implementations. - -* ``debugger/``: a debugger with a web UI, see ``debugger/README.rst`` and - https://github.com/svaarala/duktape/blob/master/doc/debugger.rst for - details on Duktape debugger support. Also contains a JSON debug proxy - (one written in Node.js and another in DukLuv) to make talking to the - debug target easier. - -* ``licenses/``: licensing information. - -You can find release notes at: - -* https://github.com/svaarala/duktape/blob/master/RELEASES.rst - -This distributable contains Duktape version 1.5.2, created from git -commit cad34ae155acb0846545ca6bf2d29f9463b22bbb (v1.5.2). - -Duktape is copyrighted by its authors (see ``AUTHORS.rst``) and licensed -under the MIT license (see ``LICENSE.txt``). String hashing algorithms are -based on the algorithm from Lua (MIT license), djb2 hash, and Murmurhash2 -(MIT license). Duktape module loader is based on the CommonJS module -loading specification (without sharing any code), CommonJS is under the -MIT license. - -Have fun! - -Sami Vaarala ([email protected]) http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/b8103f03/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/README.rst ---------------------------------------------------------------------- diff --git a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/README.rst b/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/README.rst deleted file mode 100644 index 1d17226..0000000 --- a/thirdparty/civetweb-1.9.1/src/third_party/duktape-1.5.2/config/README.rst +++ /dev/null @@ -1,39 +0,0 @@ -================= -Duktape genconfig -================= - -Overview -======== - -``genconfig`` is a helper script for coming up with a ``duk_config.h`` for -compiling Duktape for your platform. - -To support this: - -* It creates a Duktape 1.2.x compatible ``duk_config.h`` with automatic - platform detection and ``DUK_OPT_xxx`` feature options. - -* It helps to create a ``duk_config.h`` for your platform/compiler - combination. You can give a base configuration and then force certain - values manually based on a YAML configuration file. - -* It autogenerates documentation for config options (and Duktape 1.2.x - feature options) based on option metadata files written in YAML. - -Usage -===== - -To create an autodetect duk_config.h header (compatible with Duktape 1.2.x):: - - $ python config/genconfig.py --metadata config --output /tmp/duk_config.h \ - autodetect-header - -To create a barebones duk_config.h header for a specific platform (easier to -edit manually):: - - $ python config/genconfig.py --metadata config --output /tmp/duk_config.h \ - --platform linux --compiler gcc --architecture x64 \ - barebones-header - -There are further commands to e.g. autogenerate config option documentation; -see ``genconfig.py`` for details.
