source: trunk/kitgen/8.x/blt/generic/bltNsUtil.h@ 175

Last change on this file since 175 was 175, checked in by demin, 12 years ago

initial commit

File size: 2.2 KB
Line 
1/*
2 * bltNsUtil.h --
3 *
4 * Copyright 1993-1998 Lucent Technologies, Inc.
5 *
6 * Permission to use, copy, modify, and distribute this software and
7 * its documentation for any purpose and without fee is hereby
8 * granted, provided that the above copyright notice appear in all
9 * copies and that both that the copyright notice and warranty
10 * disclaimer appear in supporting documentation, and that the names
11 * of Lucent Technologies any of their entities not be used in
12 * advertising or publicity pertaining to distribution of the software
13 * without specific, written prior permission.
14 *
15 * Lucent Technologies disclaims all warranties with regard to this
16 * software, including all implied warranties of merchantability and
17 * fitness. In no event shall Lucent Technologies be liable for any
18 * special, indirect or consequential damages or any damages
19 * whatsoever resulting from loss of use, data or profits, whether in
20 * an action of contract, negligence or other tortuous action, arising
21 * out of or in connection with the use or performance of this
22 * software.
23 */
24
25#ifndef BLT_NS_UTIL_H
26#define BLT_NS_UTIL_H 1
27
28#ifndef TCL_NAMESPACE_ONLY
29#define TCL_NAMESPACE_ONLY TCL_GLOBAL_ONLY
30#endif
31
32#define NS_SEARCH_NONE (0)
33#define NS_SEARCH_CURRENT (1<<0)
34#define NS_SEARCH_GLOBAL (1<<1)
35#define NS_SEARCH_BOTH (NS_SEARCH_GLOBAL | NS_SEARCH_CURRENT)
36
37/*
38 * Auxillary procedures
39 */
40EXTERN Tcl_Namespace *Blt_GetVariableNamespace _ANSI_ARGS_((Tcl_Interp *interp,
41 CONST char *varName));
42
43EXTERN Tcl_Namespace *Blt_GetCommandNamespace _ANSI_ARGS_((Tcl_Interp *interp,
44 Tcl_Command cmdToken));
45
46EXTERN Tcl_CallFrame *Blt_EnterNamespace _ANSI_ARGS_((Tcl_Interp *interp,
47 Tcl_Namespace *nsPtr));
48
49EXTERN void Blt_LeaveNamespace _ANSI_ARGS_((Tcl_Interp *interp,
50 Tcl_CallFrame * framePtr));
51
52EXTERN int Blt_ParseQualifiedName _ANSI_ARGS_((Tcl_Interp *interp,
53 CONST char *name, Tcl_Namespace **nsPtrPtr, CONST char **namePtr));
54
55EXTERN char *Blt_GetQualifiedName _ANSI_ARGS_((Tcl_Namespace *nsPtr,
56 CONST char *name, Tcl_DString *resultPtr));
57
58EXTERN Tcl_Command Blt_CreateCommand _ANSI_ARGS_((Tcl_Interp *interp,
59 CONST char *cmdName, Tcl_CmdProc *proc, ClientData clientData,
60 Tcl_CmdDeleteProc *deleteProc));
61
62
63#endif /* BLT_NS_UTIL_H */
Note: See TracBrowser for help on using the repository browser.