Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tt_type_comp(1) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ttsession(1)

ce_db_build(1)

ce_db_merge(1)

tt_type_comp(1)

NAME

tt_type_comp − the ToolTalk otype and ptype compiler

SYNOPSIS

tt_type_comp [ -E ] [ -d { user|system|network } ] - { p|O|P|h| { r type1...typeN } |
{ m|M|x } [ -o ofile ] file }

DESCRIPTION

tt_type_comp is the ToolTalk compiler for the otypes and ptypes provided in the specified typefile.  The typefile is first run through cpp and then parsed and checked for correctness. 
 
The default function of tt_type_comp when given a file containing definitions for ToolTalk otypes or ptypes is to merge the types into the existing user database of types. 

OPTIONS

−E Reset the default format from an xdr-based format to Classing Engine format. 

−d Specify the database to work on which should be one of user (default), system, or network. For Classing Engine mode these are defined as:

user -- $HOME/.cetables/cetables

system -- /etc/cetables/cetables

network -- $OPENWINHOME/lib/cetables/cetables For the xdr-base format these are defined as:

user -- $HOME/.tt/types.xdr

system -- /etc/tt/types.xdr

network -- $OPENWINHOME/etc/tt/types.xdr

These three database form a hierarchy of database where the definition
of a type in the user database overrides the definition in the system database and so on.

−h Print help on invoking tt_type_comp and exit. 

−m Merge types into specified database, updating any existing type with the new definition given. This is the default option.  This option is no longer supported for Classing Engine mode. 

−M Merge types into specified database, but only if they do not already exist in that database. 

−p Print the ToolTalk types in the specified database. Types are printed out in source format suitable for recompilation with tt_type_comp. 

−O Print out list of known otypes. 

−P Print out list of known ptypes. 

−o outputfile
Output to the given file name.

−r type1...typeN
Remove the given ptypes or otypes from the database.

−s Silent mode. Don’t print anything. 

−x Produce a compiled XDR format type file. 

−v Print out the version number and exit. 

ENVIRONMENT

TTPATH
In XDR mode, this variable tells ToolTalk where to find the ToolTalk types databases.  The format of this variable is userDB[:systemDB[:networkDB]].

CEPATH
In Classing Engine mode, this variable tells the Classing Engine where to find the databases that contain (among other things) ToolTalk types.  See ce_db_build(1). 

FILES

$HOME/.tt/types.xdr
User’s ToolTalk types database for XDR mode

/etc/tt/types.xdr System ToolTalk types database for XDR mode

$OPENWINHOME/etc/tt/types.xdr
Network ToolTalk types database for XDR mode

$HOME/.cetables/cetables

/etc/cetables/cetables

$OPENWINHOME/lib/cetables/cetables
Classing Engine databases containing ToolTalk types for CE mode.  See ce_db_build(1). 

SEE ALSO

ttsession(1), ce_db_build(1), ce_db_merge(1)
 

SunOS 5.2  —  Last change: 17 Nov 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026