91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 38.76MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-08-08
  • 語言: 其他
  • 標簽: 嵌入式??Hi3559??

資源簡介

這是我在appweb和esp源代碼的基礎上編譯遇到文章中所述的問題,修改了一些地方解決問題的appweb和esp源碼

資源截圖

代碼片段和文件信息

/*
?*?embedthis?Appweb?Library?Source
?*/

#include?“appweb.h“

#if?ME_COM_APPWEB



/*********?Start?of?file?../../../src/config.c?************/


/**
????config.c?-?Parse?the?configuration?file.
????Copyright?(c)?All?Rights?Reserved.?See?details?at?the?end?of?the?file.
?*/

/*********************************?Includes?***********************************/


#include????“pcre.h“

/**********************************?Locals?*************************************/

static?MprHash?*directives;

/*****************************?Forward?Declarations?****************************/

static?int?addCondition(MaState?*state?cchar?*name?cchar?*condition?int?flags);
static?int?addUpdate(MaState?*state?cchar?*name?cchar?*details?int?flags);
static?bool?conditionalDefinition(MaState?*state?cchar?*key);
static?int?configError(MaState?*state?cchar?*key);
static?MaState?*createState();
static?char?*getDirective(char?*line?char?**valuep);
static?void?manageState(MaState?*state?int?flags);
static?int?parseFileInner(MaState?*state?cchar?*path);
static?int?parseInit();
static?int?setTarget(MaState?*state?cchar?*name?cchar?*details);

/******************************************************************************/
/*
????Load?modules?builtin?modules?by?default.?Subsequent?calls?to?the?LoadModule?directive?will?have?no?effect.
?*/
PUBLIC?int?maLoadModules()
{
????int?????rc;

????rc?=?0;
#if?ME_COM_CGI
????rc?+=?httpCgiInit(HTTP?mprCreateModule(“cgi“?NULL?NULL?HTTP));
#endif
#if?ME_COM_ESP
????rc?+=?httpEspInit(HTTP?mprCreateModule(“esp“?NULL?NULL?HTTP));
#endif
????return?rc;
}


PUBLIC?int?configureHandlers(HttpRoute?*route)
{
#if?ME_COM_CGI
????if?(httpLookupStage(“cgiHandler“))?{
????????char????*path;
????????httpAddRouteHandler(route?“cgiHandler“?“cgi?cgi-nph?bat?cmd?pl?py“);
????????/*
????????????Add?cgi-bin?with?a?route?for?the?/cgi-bin?URL?prefix.
?????????*/
????????path?=?“cgi-bin“;
????????if?(mprPathExists(path?X_OK))?{
????????????HttpRoute?*cgiRoute;
????????????cgiRoute?=?httpCreateAliasRoute(route?“/cgi-bin/“?path?0);
????????????httpSetRouteHandler(cgiRoute?“cgiHandler“);
????????????httpFinalizeRoute(cgiRoute);
????????}
????}
#endif
#if?ME_COM_ESP
????if?(httpLookupStage(“espHandler“))?{
????????httpAddRouteHandler(route?“espHandler“?“esp“);
????}
#endif
#if?ME_COM_EJS
????if?(httpLookupStage(“ejsHandler“))?{
????????httpAddRouteHandler(route?“ejsHandler“?“ejs“);
????}
#endif
#if?ME_COM_PHP
????if?(httpLookupStage(“phpHandler“))?{
????????httpAddRouteHandler(route?“phpHandler“?“php“);
????}
#endif
????httpAddRouteHandler(route?“fileHandler“?““);
????return?0;
}


PUBLIC?int?maConfigureServer(cchar?*configFile?cchar?*home?cchar?*documents?cchar?*ip?int?port)
{
????HttpEndpoint????*endpoint;
????HttpRoute???????*route;

????route?=?httpGetDefaultRoute(0);
????if?(maLoadModules()?????????return?MPR_ERR_CANT_INITIALIZE;
????}
????if?(configFile)?{
????????if?(maParseConfig(mprGetAbsPath(configFile))??????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-05?10:20??appweb+esp\
?????目錄???????????0??2019-09-03?10:33??appweb+esp\appweb-6.1.1\
?????文件????????2518??2015-10-27?22:05??appweb+esp\appweb-6.1.1\.gitattributes
?????文件?????????231??2015-10-27?22:05??appweb+esp\appweb-6.1.1\.gitignore
?????文件?????????316??2015-10-27?22:05??appweb+esp\appweb-6.1.1\.travis.yml
?????文件????????1866??2015-10-27?22:05??appweb+esp\appweb-6.1.1\LICENSE.md
?????文件????????5455??2015-10-27?22:05??appweb+esp\appweb-6.1.1\Makefile
?????文件????????1279??2015-10-27?22:05??appweb+esp\appweb-6.1.1\README.md
?????文件?????????507??2015-10-27?22:05??appweb+esp\appweb-6.1.1\configure
?????文件?????????233??2015-10-27?22:05??appweb+esp\appweb-6.1.1\configure.bat
?????文件????????5786??2015-10-27?22:05??appweb+esp\appweb-6.1.1\main.me
?????文件??????????95??2015-10-27?22:05??appweb+esp\appweb-6.1.1\make.bat
?????文件????????1506??2015-10-27?22:05??appweb+esp\appweb-6.1.1\package.json
?????目錄???????????0??2015-10-27?22:05??appweb+esp\appweb-6.1.1\dist\
?????文件???????10929??2015-10-27?22:05??appweb+esp\appweb-6.1.1\dist\appweb.h
?????文件?????????917??2015-10-27?22:05??appweb+esp\appweb-6.1.1\dist\appweb.me
?????文件??????131570??2015-10-27?22:05??appweb+esp\appweb-6.1.1\dist\appwebLib.c
?????目錄???????????0??2019-09-05?02:15??appweb+esp\appweb-6.1.1\doc\
?????文件???????65134??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\appweb.dox
?????文件????????2171??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\doc.me
?????文件?????????317??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\package.json
?????文件?????????845??2019-09-05?02:15??appweb+esp\appweb-6.1.1\doc\expansive.json
?????目錄???????????0??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\api\
?????文件????????3888??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\api\appweb.dtags
?????文件???????29452??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\api\appweb.html
?????文件??????310229??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\api\appweb.tags
?????目錄???????????0??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\contents\
?????文件????????5003??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\contents\README.TXT
?????文件????????3356??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\contents\index.html
?????文件?????????261??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\contents\version.html.exp
?????目錄???????????0??2015-10-27?22:05??appweb+esp\appweb-6.1.1\doc\contents\css\
............此處省略2499個文件信息

評論

共有 條評論