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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [tests/] [pkg/] [pkg4.tcl] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# pkg4.tcl --
2
#
3
#  Test package for pkg_mkIndex. This package requires pkg3, and it calls
4
#  a pkg3 proc in the code that is executed by the file
5
#
6
# Copyright (c) 1998 by Scriptics Corporation.
7
# All rights reserved.
8
# 
9
# RCS: @(#) $Id: pkg4.tcl,v 1.1.1.1 2002-01-16 10:25:36 markom Exp $
10
 
11
package require pkg3 1.0
12
 
13
package provide pkg4 1.0
14
 
15
namespace eval pkg4 {
16
    namespace export p4-1 p4-2
17
    variable m2 [pkg3::p3-1 10]
18
}
19
 
20
proc pkg4::p4-1 { num } {
21
    variable m2
22
    return [expr {$m2 * $num}]
23
}
24
 
25
proc pkg4::p4-2 { num } {
26
    return [pkg3::p3-2 $num]
27
}

powered by: WebSVN 2.1.0

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