Debian Codegraph @

lib/envmodules.h

raw
1 /*************************************************************************
2 *
3 * ENVMODULES.H, Modules Tcl extension library
4 * Copyright (C) 2018-2024 Xavier Delaruelle
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 ************************************************************************/
20
21 #ifndef _ENVMODULES_H
22 #define _ENVMODULES_H 1
23
24 #include <tcl.h>
25
26 #define READ_BUFFER_SIZE 4096
27 #define FIRSTLINE_LENGTH 32
28 #define MODULES_MAGIC_COOKIE "#%Module"
29
30 /* Prototypes of internal functions. */
31 MODULE_SCOPE int Envmodules_ReadFileObjCmd (ClientData dummy,
32 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
33
34 MODULE_SCOPE int Envmodules_GetFilesInDirectoryObjCmd (ClientData dummy,
35 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
36
37 MODULE_SCOPE int Envmodules_InitStateUsernameObjCmd (ClientData dummy,
38 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
39
40 MODULE_SCOPE int Envmodules_InitStateUsergroupsObjCmd (ClientData dummy,
41 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
42
43 MODULE_SCOPE int Envmodules_InitStateClockSecondsObjCmd (ClientData dummy,
44 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
45
46 MODULE_SCOPE int Envmodules_ParseDateTimeArgObjCmd (ClientData dummy,
47 Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
48
49 /* Only the _Init function is exported. */
50 extern DLLEXPORT int Envmodules_Init (Tcl_Interp *interp);
51
52 #endif /* _ENVMODULES_H */
53
54 /* vim:set tabstop=3 shiftwidth=3 expandtab autoindent: */