View Source

[modwtcl]
apreq.h
dist/
libapreq1/
mod_wtcl.c
mod_wtcl.h
setupExclude.txt
util/
win.def
win.mak
wt1.1/
WtAppTable.c
WtAppTable.h
WtBasicCmds.c
WtBasicCmds.h
WtClientRequest.c
WtClientRequest.h
WtCollection.c
WtCollection.h
WtCollectionCmds.c
WtCollectionCmds.h
WtContext.c
WtContext.h
WtContextEvents.c
WtContextEvents.h
WtCookie.c
WtCookie.h
WtDbSession.c
WtDbSession.h
WtExecute.c
WtExecute.h
WtHtmlEntities.c
WtHtmlEntities.h
WtInitCmds.c
WtInitCmds.h
WtMtTable.c
WtMtTable.h
WtMultiTable.c
WtMultiTable.h
WtOS.h
WtProcSession.c
WtProcSession.h
WtResponse.c
WtResponse.h
WtServerCmds.c
WtServerCmds.h
WtSession.c
WtSession.h
WtSettings.c
WtSettings.h
WtTable.c
WtTable.h
WtTableCmds.c
WtTableCmds.h
WtTableUtil.c
WtTableUtil.h
WtUpload.c
WtUpload.h
WtUtil.c
WtUtil.h
WtWebErrors.c
WtWebErrors.h
WtWindows.h
File: / archive / modwtcl / WtExecute.h

Lines Size Modified Created Owner MIME Types
66 2,866 2010/05/08 18:46:41 2011/06/13 15:35:15 BUILTIN\Administrators text/x-chdr

0001
/*
0002
 * Copyright 2001 Alexander Boverman and the original authors.
0003
 * 
0004
 * Licensed under the Apache License, Version 2.0 (the "License");
0005
 * you may not use this file except in compliance with the License.
0006
 * You may obtain a copy of the License at
0007
 * 
0008
 *      http://www.apache.org/licenses/LICENSE-2.0
0009
 * 
0010
 * Unless required by applicable law or agreed to in writing, software
0011
 * distributed under the License is distributed on an "AS IS" BASIS,
0012
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013
 * See the License for the specific language governing permissions and
0014
 * limitations under the License.
0015
 */
0016
0017
#ifndef _WT_EXECUTE_H
0018
#define _WT_EXECUTE_H
0019
0020
#include "WtContext.h"
0021
0022
typedef struct WtExecutionStateT
0023
{
0024
  WtContext *context;
0025
  Tcl_Interp *interp;
0026
  Tcl_Obj *requestedPath;
0027
  Tcl_Obj *targetPath;
0028
  Tcl_Obj *namesp;
0029
  Tcl_Obj *genCode;
0030
} WtExecutionState;
0031
0032
void WtInitExecState(WtExecutionState *execState, WtContext *w, Tcl_Interp *interp);
0033
void WtDeleteExecState(WtExecutionState *execState);
0034
int WtFindAndExecuteFile(WtContext *w, Tcl_Obj *requestedPath, Tcl_Interp *interp);
0035
Tcl_Obj *WtFindFile(WtExecutionState *execState);
0036
Tcl_Obj *WtResolvePath(WtContext *w, Tcl_Obj *requestedPath, Tcl_Obj *dirs);
0037
int WtExecuteFile(WtExecutionState *execState);
0038
Tcl_Obj *WtReadFile(Tcl_Obj *path, int *bytes, Tcl_Interp *interp);
0039
int WtExecuteString(WtExecutionState *execState, Tcl_Obj *string, int len);
0040
int WtParseString(WtExecutionState *execState, Tcl_Obj *string, int len);
0041
void WtParserAddCode(WtExecutionState *execState, char *buf, int len);
0042
int WtParserAddExpr(WtExecutionState *execState, char *buf, int len);
0043
int WtParserAddContent(WtExecutionState *execState, char *buf, int len);
0044
int WtExecuteRequest(WtContext *w, const char *requestedPath);
0045
Tcl_Obj *WtGetCurrentFrame(WtContext *w, Tcl_Interp *interp);
0046
int WtSetCurrentFrame(WtContext *w, Tcl_Obj *frame, Tcl_Interp *interp);
0047
int WtSetFrameState(WtContext *w, Tcl_Interp *interp, const char *state);
0048
int WtSetFrameError(WtContext *w, Tcl_Interp *interp);
0049
void WtInitPageCommands(Tcl_Interp *interp);
0050
int WtIncludeCmd(ClientData clientData, Tcl_Interp *interp,
0051
  int objc, Tcl_Obj *const objv[]);
0052
int WtIncludeStringCmd(ClientData clientData, Tcl_Interp *interp,
0053
  int objc, Tcl_Obj *const objv[]);
0054
int WtPageIndexCmd(ClientData clientData, Tcl_Interp *interp,
0055
  int objc, Tcl_Obj *const objv[]);
0056
int WtStackCmd(ClientData clientData, Tcl_Interp *interp,
0057
  int objc, Tcl_Obj *const objv[]);
0058
int WtLoaderCmd(ClientData clientData, Tcl_Interp *interp,
0059
  int objc, Tcl_Obj *const objv[]);
0060
int WtLoaderSearchPathCmd(ClientData clientData, Tcl_Interp *interp,
0061
  int objc, Tcl_Obj *const objv[]);
0062
void WtLoaderCmdUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
0063
int WtLoaderInfoCmd(ClientData clientData, Tcl_Interp *interp,
0064
  int objc, Tcl_Obj *const objv[]);
0065
0066
#endif /* !_WT_EXECUTE_H */