ARM&Linux;平台开发中,在GoAhead移植过程中需要通过Json来实现web对Arm数据的请求操作,此资源经本人详细整理,有详细的GoAhead Json开发文档及相关代码。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-11-13 18:38 GoAhead Json开发
目录 0 2012-11-13 18:40 GoAhead Json开发GoAhead Json开发
文件 51712 2012-11-13 18:40 GoAhead Json开发GoAhead Json开发JSON开发文档.doc
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARM
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead
文件 12733 2012-04-17 15:11 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead.cdtproject
文件 2507 2012-07-17 16:57 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead.project
文件 7100 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadasp.c
文件 24713 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadalloc.c
文件 4413 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadase64.c
文件 10103 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadcgi.c
文件 15920 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheaddefault.c
文件 3270 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheaddefault.css
文件 1420 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadej.h
文件 7275 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejIntrn.h
文件 14606 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejlex.c
文件 36540 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejparse.c
文件 22929 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheademfdb.c
文件 3110 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheademfdb.h
文件 4053 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadform.c
文件 4276 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadh.c
文件 10352 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadhandler.c
文件 13605 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadlicense.txt
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUX
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXinclude
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejson
文件 1382 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsonarraylist.h
文件 1596 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsonits.h
文件 1091 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsondebug.h
............此处省略397个文件信息
/*
* asp.c -- Active Server Page Support
*
* Copyright (c) GoAhead Software Inc. 1995-2000. All Rights Reserved.
*
* See the file “license.txt“ for usage and redistribution license requirements
*
* $Id: asp.cv 1.3 2002/10/24 14:44:50 bporter Exp $
*/
/******************************** Description *********************************/
/*
* The ASP module processes ASP pages and executes embedded scripts. It
* support an open scripting architecture with in-built support for
* Ejscript(TM).
*/
/********************************* Includes ***********************************/
#include “wsIntrn.h“
/********************************** Locals ************************************/
static sym_fd_t websAspFunctions = -1; /* Symbol table of functions */
static int aspOpenCount = 0; /* count of apps using this module */
/***************************** Forward Declarations ***************************/
static char_t *strtokcmp(char_t *s1 char_t *s2);
static char_t *skipWhite(char_t *s);
/************************************* Code ***********************************/
/*
* Create script spaces and commands
*/
int websAspOpen()
{
if (++aspOpenCount == 1) {
/*
* Create the table for ASP functions
*/
websAspFunctions = symOpen(WEBS_SYM_INIT * 2);
/*
* Create standard ASP commands
*/
websAspDefine(T(“write“) websAspWrite);
}
return 0;
}
/************************************* Code ***********************************/
/*
* Close Asp symbol table.
*/
void websAspClose()
{
if (--aspOpenCount <= 0) {
if (websAspFunctions != -1) {
symClose(websAspFunctions);
websAspFunctions = -1;
}
}
}
/******************************************************************************/
/*
* Process ASP requests and expand all scripting commands. We read the
* entire ASP page into memory and then process. If you have really big
* documents it is better to make them plain HTML files rather than ASPs.
*/
int websAspRequest(webs_t wp char_t *lpath)
{
websStatType sbuf;
char *rbuf;
char_t *token *lang *result *path *ep *cp *buf *nextp;
char_t *last;
int rc engine len ejid;
a_assert(websValid(wp));
a_assert(lpath && *lpath);
rc = -1;
buf = NULL;
rbuf = NULL;
engine = EMF_script_EJscript;
wp->flags |= WEBS_HEADER_DONE;
path = websGetRequestPath(wp);
/*
* Create Ejscript instance in case it is needed
*/
ejid = ejOpenEngine(wp->cgiVars websAspFunctions);
if (ejid < 0) {
websError(wp 200 T(“Can‘t create Ejscript engine“));
goto done;
}
ejSetUserHandle(ejid (int) wp);
if (websPageStat(wp lpath path &sbuf) < 0) {
websError(wp 200 T(“Can‘t stat %s“) lpath);
goto done;
}
/*
* Create a buffer to hold the ASP file in-memory
*/
len = sbuf.size * sizeof(char);
if ((rbuf = balloc(B_L len + 1)) == NULL) {
websError(wp 200 T(“Can‘t get memory“));
goto done;
}
rbuf[len] = ‘ ‘;
if (websPageReadData(wp rbuf len) != len) {
websError(wp 200 T(“Cant read %s“) lpath);
goto
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-11-13 18:38 GoAhead Json开发
目录 0 2012-11-13 18:40 GoAhead Json开发GoAhead Json开发
文件 51712 2012-11-13 18:40 GoAhead Json开发GoAhead Json开发JSON开发文档.doc
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARM
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead
文件 12733 2012-04-17 15:11 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead.cdtproject
文件 2507 2012-07-17 16:57 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAhead.project
文件 7100 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadasp.c
文件 24713 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadalloc.c
文件 4413 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheada
文件 10103 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadcgi.c
文件 15920 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheaddefault.c
文件 3270 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheaddefault.css
文件 1420 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadej.h
文件 7275 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejIntrn.h
文件 14606 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejlex.c
文件 36540 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadejparse.c
文件 22929 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheademfdb.c
文件 3110 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheademfdb.h
文件 4053 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadform.c
文件 4276 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadh.c
文件 10352 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadhandler.c
文件 13605 2011-05-27 12:53 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadlicense.txt
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUX
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXinclude
目录 0 2012-11-13 18:38 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejson
文件 1382 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsonarraylist.h
文件 1596 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsonits.h
文件 1091 2012-03-12 14:02 GoAhead Json开发GoAhead Json开发JSON模块文件ARMGoAheadLINUXincludejsondebug.h
............此处省略397个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)