home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
gen_db_fnc.tcl
< prev
next >
Wrap
Text File
|
1996-06-05
|
1KB
|
50 lines
#---------------------------------------------------------------------------
#
# Copyright (c) 1993-1995 by Cadre Technologies Inc.
#
# This software is furnished under a license and may be used only in
# accordance with the terms of such license and with the inclusion of
# the above copyright notice. This software or any other copies thereof
# may not be provided or otherwise made available to any other person.
# No title to and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by Cadre Technologies Inc.
#
#---------------------------------------------------------------------------
#
# File : @(#)gen_db_fnc.tcl 2.1
# Original date : 4-2-1993
# Description : C++ generator functions, database dependent
#
#---------------------------------------------------------------------------
#
# Dispatch all functions to their non-db variants
#
if {[info procs unknown] == "unknown"} {
rename unknown old_unknown
} else {
proc old_unknown {name args} {
error "Unknown command name '$name'"
}
}
proc unknown {name args} {
if [regsub ^db_ $name "" name] {
uplevel "$name $args"
} else {
uplevel "old_unknown $name $args"
}
}
#
# Dummies for these, since there exist no corresponding procs
# without the db_ prefix.
#
proc db_class_before {class} {
}
proc db_class_after {class} {
}