OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [library/] [FileCmpt.tcl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# FileCmpt.tcl --
2
#
3
#       File access portibility routines.
4
#
5
# Copyright (c) 1996, Expert Interface Technologies
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
#
10
 
11
 
12
# Internal file names
13
# (1) Idempotent: [tixFileIntName $intName] == $intName
14
# (2) Does not contain "~", "..", "."
15
# (3) All DOS type C:foo will be translated to absoulte path such as
16
#     /\C:\windows\foo
17
# (4) Does not contail trailing "/" or "\\" characters
18
#
19
 
20
proc tixFileResolveName {nativeName {defParent ""}} {
21
    if {$defParent != ""} {
22
        return [tixNativeName [tixFileIntName $nativeName [tixFileIntName $defParent]]]
23
    } else {
24
        return [tixNativeName [tixFileIntName $nativeName]]
25
    }
26
}
27
 
28
proc tixNSubFolder {parent sub} {
29
    return [tixNativeName [tixSubFolder \
30
        [tixFileIntName $parent] [tixFileIntName $sub]]]
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.