1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
/*----------------------------------------------------------------------------
| Copyright (c) 1999 Jochen Loewer (loewerj@hotmail.com)
+-----------------------------------------------------------------------------
|
| A DOM implementation for Tcl using James Clark's expat XML parser
|
|
| The contents of this file are subject to the Mozilla Public License
| Version 2.0 (the "License"); you may not use this file except in
| compliance with the License. You may obtain a copy of the License at
| http://www.mozilla.org/MPL/
|
| Software distributed under the License is distributed on an "AS IS"
| basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
| License for the specific language governing rights and limitations
| under the License.
|
| The Original Code is tDOM.
|
| The Initial Developer of the Original Code is Jochen Loewer
| Portions created by Jochen Loewer are Copyright (C) 1998, 1999
| Jochen Loewer. All Rights Reserved.
|
| Contributor(s):
|
|
| written by Jochen Loewer
| April, 1999
|
\---------------------------------------------------------------------------*/
#ifndef __TCLDOM_H_INCLUDE__
#define __TCLDOM_H_INCLUDE__
#include <tcl.h>
/* The following procs are defined in tcldom.c - since they are used
* in nodecmd.c these need a prototype somewhere. The prototypes can
* live here for now. */
int tcldom_textCheck(Tcl_Interp *interp, char *text, char *errText);
int tcldom_commentCheck(Tcl_Interp *interp, char *text);
int tcldom_CDATACheck(Tcl_Interp *interp, char *text);
int tcldom_PIValueCheck(Tcl_Interp *interp, char *text);
int tcldom_PINameCheck(Tcl_Interp *interp, char *name);
int tcldom_nameCheck(Tcl_Interp *interp, char *name, char *nameType,
int isFQName);
void tcldom_createNodeObj(Tcl_Interp * interp, domNode *node,
char *objCmdName);
domNode * tcldom_getNodeFromObj(Tcl_Interp *interp, Tcl_Obj *nodeObj);
int tcldom_prefixNSlist (char ***prefixnsPtr, Tcl_Interp *interp, int objc,
Tcl_Obj *const objv[], const char *methodName);
int tcldom_setInterpAndReturnVar (Tcl_Interp *interp, domNode *node,
int setVariable, Tcl_Obj *var_name);
void tcldom_initialize(void);
void tcldom_deleteDoc (Tcl_Interp *interp, domDocument *doc);
Tcl_ObjCmdProc tcldom_DomObjCmd;
Tcl_ObjCmdProc tcldom_DocObjCmd;
Tcl_ObjCmdProc tcldom_NodeObjCmd;
Tcl_ObjCmdProc tcldom_unknownCmd;
Tcl_ObjCmdProc TclTdomObjCmd;
int tDOM_fsnewNodeCmd (ClientData clientData,
Tcl_Interp * interp,
int objc,
Tcl_Obj *const objv[]);
int tDOM_fsinsertNodeCmd (ClientData clientData,
Tcl_Interp * interp,
int objc,
Tcl_Obj *const objv[]);
#if defined(_MSC_VER) || defined(__MINGW32__)
# undef TCL_STORAGE_CLASS
# define TCL_STORAGE_CLASS DLLEXPORT
#endif
#define STR_TDOM_VERSION(v) (VERSION)
EXTERN int Tdom_Init (Tcl_Interp *interp);
EXTERN int Tdom_SafeInit (Tcl_Interp *interp);
#endif
|