Overview
| Comment: | Moved header to template |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
303b2de4939ad55590b2c53e199a88b8 |
| User & Date: | rkeene on 2019-05-02 13:58:44.784 |
| Other Links: | manifest | tags |
Context
|
2019-05-02
| ||
| 14:16 | Renamed core bits to "xvfs-core" check-in: 1ecab39ce5 user: rkeene tags: trunk | |
| 13:58 | Moved header to template check-in: 303b2de493 user: rkeene tags: trunk | |
|
2019-05-01
| ||
| 20:53 | Added start of XVFS system check-in: 47dcf5fc27 user: rkeene tags: trunk | |
Changes
Modified lib/xvfs/xvfs.tcl
from [2d70678c88]
to [8683a5cd47].
| ︙ | ︙ | |||
97 98 99 100 101 102 103 |
if {$subDirectory eq ""} {
set isTopLevel true
} else {
set isTopLevel false
}
if {$isTopLevel} {
| < < < < < < < < < < < < < < < < < < < < | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
if {$subDirectory eq ""} {
set isTopLevel true
} else {
set isTopLevel false
}
if {$isTopLevel} {
puts "static struct xvfs_file_data xvfs_${fsName}_data\[\] = \{"
}
# XXX:TODO: Include hidden files ?
foreach file [glob -nocomplain -tails -directory $workingDirectory *] {
if {$file in {. ..}} {
continue
|
| ︙ | ︙ |
Modified xvfs.c.rvt
from [2a2a28b86b]
to [9f0d4ad9d1].
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include <xvfs-common.h>
<?
package require xvfs
xvfs::main $argv
?>
static const char **xvfs_<?= $::xvfs::fsName ?>_getChildren(const char *path, Tcl_WideInt limit) {
}
static const unsigned char *xvfs_<?= $::xvfs::fsName ?>_getData(const char *path, Tcl_WideInt start, Tcl_WideInt length) {
}
int Xvfs_<?= $::xvfs::fsName ?>_Init() {
| > > > > > > > > > > > > > > > > > | 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 |
#include <xvfs-common.h>
#include <unistd.h>
#include <tcl.h>
typedef enum {
XVFS_FILE_TYPE_REG,
XVFS_FILE_TYPE_DIR
} xvfs_file_type_t;
typedef Tcl_WideInt xvfs_size_t;
struct xvfs_file_data {
const char *name;
xvfs_file_type_t type;
xvfs_size_t size;
const unsigned char *data;
};
<?
package require xvfs
xvfs::main $argv
?>
static const char **xvfs_<?= $::xvfs::fsName ?>_getChildren(const char *path, Tcl_WideInt limit) {
}
static const unsigned char *xvfs_<?= $::xvfs::fsName ?>_getData(const char *path, Tcl_WideInt start, Tcl_WideInt length) {
}
int Xvfs_<?= $::xvfs::fsName ?>_Init() {
|
| ︙ | ︙ |