TT_TYPE_COMP(1)
π NAME π
okay so bestie, this is the tt_type_comp page from the (user cmd) manual. Its whole iconic job? Compile ToolTalk otypes and ptypes. π
β¨ SYNOPSIS β¨
tt_type_comp [-mMs] [-d db] [source_file]
tt_type_comp [-r] [-s] [-d db] [type] [...]
tt_type_comp [-p] [-O] [-P] [-sE] [-d db]
tt_type_comp [-p] [-O] [-P] [-s] [source_file]
tt_type_comp [-x] [-s] [-o compiled_file] [source_file]
tt_type_comp [-hv]
πΈ DESCRIPTION πΈ
So the default move for tt_type_comp is: compile types from source form into compiled form, then merge the compiled types into the standard ToolTalk types databases. Before that it preprocesses the source types with cpp(1), periodt. It can optionally write out the compiled types instead of merging them into the standard databases, and it can also remove types from the standard databases or write out the contents of these databases. π
tt_type_comp operates in two fundamental modes: XDR and Classing Engine. XDR mode is the default. In XDR mode, the standard databases are simply serialized ToolTalk data structures, and the format of tt_type_comp output files is the same as that of the databases. In Classing Engine mode, the standard databases are in fact the Classing Engine's own databases, and the format of tt_type_comp output files is that expected for input to ce_db_build(1) and ce_db_merge(1). no cap. π¦
π OPTIONS π
The following options are available, bestie β every single one:
-d dbβ Specify the database to work on, which must be one ofuser,systemornetwork. For Classing Engine mode these are defined as:userβ$HOME/.cetables/cetablessystemβ/etc/cetables/cetablesnetworkβ$OPENWINHOME/lib/cetables/cetables
For the XDR format these are defined as:
userβ$HOME/.tt/types.xdrsystemβ/etc/tt/types.xdrnetworkβ$OPENWINHOME/etc/tt/types.xdr
These three databases form a hierarchy in which the definition of a type in the user database overrides the definition in the system database, and so on. For the merge and remove options, the default database is user. For the -p, -O and -P options, the default is all three databases.
-Eβ Use Classing Engine mode, instead of the default XDR mode.-hβ Write a help message for invokingtt_type_compand then exit.-mβ Merge types into the specified database, updating any existing type with the new definition given. This is the default action. This action is not supported for Classing Engine mode. The specified database is the first element from theTTPATHenvironment variable, or$HOME/.tt/types.xdrifTTPATHis NULL or not set. IfTTPATHis NULL or not set, it is considered to be:
$HOME/.tt/types.xdr:/etc/tt/types.xdr:/nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3/appconfig/tttypes/types.xdr
-Mβ Merge types into the specified database (see-m), but only if they do not already exist in that database. This action is not supported for Classing Engine mode.-Oβ Write the names of all otypes read.-pβ Write the ToolTalk types read in a source format suitable for recompilation withtt_type_comp.-Pβ Write the names of all ptypes read.-o compiled_fileβ Write the compiled types into the specified file, or to standard output ifcompiled_fileis-.-rβ Remove the given ptypes or otypes from the specified database, as indicated by thetypeoperands.-sβ Silent mode. Write nothing to standard output.-vβ Write the version number oftt_type_compand then exit.-xβ Compile source types into a compiled types file, instead of merging them into the standard types databases.
π¦ OPERANDS π¦
The following operands are supported:
source_fileβ A pathname of a text file containing ToolTalk source code. Ifsource_fileis-, standard input is used.typeβ A name of a type to be removed by the-roption.
π STDIN π
The standard input is used only if a source_file operand is -. π
π INPUT FILES π
The input file named by source_file is a text file containing ToolTalk source code. π
π ENVIRONMENT VARIABLES π
The following environment variables affect the execution of tt_type_comp:
CEPATHβ In Classing Engine mode, a colon-separated list of directories that tells the Classing Engine where to find the databases that contain (among other things) ToolTalk types. Seece_db_build(1).LANGβ Provide a default value for the internationalization variables that are unset or null. IfLANGis unset or null, the corresponding value from the implementation-specific default locale will be used. If any of the internationalization variables contains an invalid setting, the utility behaves as if none of the variables had been defined.LC_ALLβ If set to a non-empty string value, override the values of all the other internationalization variables.LC_MESSAGESβ Determine the locale that is used to affect the format and contents of diagnostic messages written to standard error and informative messages written to standard output.NLSPATHβ Determine the location of message catalogues for the processing ofLC_MESSAGES.TTPATHβ In XDR mode, a colon-separated list of directories that tells the ToolTalk service where to find the ToolTalk types databases. The format of this variable is:
userDir[:systemDir[:networkDir]]
β RESOURCES β
None. Not a single resource, bestie. π«Ά
π₯ ASYNCHRONOUS EVENTS π₯
The tt_type_comp utility takes the standard action for all signals. That's it. π₯
π STDOUT π
When the -h option is used, tt_type_comp writes to standard output a help message in an unspecified format.
When the -o option is used, tt_type_comp writes to standard output a listing of all otypes read. (yes bestie, lowercase -o right here β that's literally what this page says.)
When the -p option is used, tt_type_comp writes to standard output a listing of all the ToolTalk types read, in a source format suitable for recompilation with tt_type_comp.
When the -P option is used, tt_type_comp writes to standard output a listing of all ptypes read.
When the -v option is used, tt_type_comp writes to standard output a version number in an unspecified format. π
π STDERR π
Used only for diagnostic messages. π
π OUTPUT FILES π
When the -x or -d user option is used, tt_type_comp writes the compiled types in an unspecified format into a user-specified file. Otherwise, it writes the compiled types into the databases described under -d. π
π§ EXTENDED DESCRIPTION π§
None. π§
π EXIT STATUS π
The following exit values are returned:
0β Successful completion.1β Usage;tt_type_compwas given invalid command line options.2β A syntax error was found in the source types given tott_type_comp.3β System error;tt_type_compwas interrupted bySIGINT, or encountered some system or internal error.
π CONSEQUENCES OF ERRORS π
Default. π
π FILES π
$HOME/.tt/types.xdrβ User's ToolTalk types database for XDR mode/etc/tt/types.xdrβ System ToolTalk types database for XDR mode/nix/store/6waxpwr8lzfzc9ka48gl7yh60rqvlkdb-cde-2.5.3/appconfig/tttypes/types.xdrβ Network 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
Those last three are the Classing Engine databases containing ToolTalk types for CE mode. See ce_db_build(1). π
π«Ά APPLICATION USAGE π«Ά
None. π«Ά
π EXAMPLES π
None. π
π SEE ALSO π
ttsession(1), ce_db_build(1), ce_db_merge(1), cpp(1).
π mwah β footer sign-off time: this whole page is the tt_type_comp entry from the (user cmd) manual, and the footer doesn't add a separate date, source, or version line beyond that, bestie. Stay slay. πβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms