Merge branch 'master' into autotools-conversion
authorJon Trulson <jon@radscan.com>
Mon, 23 Mar 2020 01:09:58 +0000 (19:09 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 23 Mar 2020 01:09:58 +0000 (19:09 -0600)
864 files changed:
cde/.gitignore
cde/Makefile [deleted file]
cde/Makefile.am [new file with mode: 0644]
cde/Makefile.imake [new file with mode: 0644]
cde/admin/BuildNotes/changing_version_number.txt
cde/autogen.sh [new file with mode: 0755]
cde/configure.ac [new file with mode: 0644]
cde/doc/C/Makefile.am [new file with mode: 0644]
cde/doc/C/help/Makefile.am [new file with mode: 0644]
cde/doc/C/man/Makefile.am [new file with mode: 0644]
cde/doc/C/man/manalias.tmpl [new file with mode: 0644]
cde/doc/C/man/manpage.tmpl [new file with mode: 0644]
cde/doc/Makefile.am [new file with mode: 0644]
cde/doc/common/help/AppBuilder.tmpl [new file with mode: 0644]
cde/doc/common/help/Appmanager.tmpl [new file with mode: 0644]
cde/doc/common/help/Calculator.tmpl [new file with mode: 0644]
cde/doc/common/help/Calendar.tmpl [new file with mode: 0644]
cde/doc/common/help/CreatAct.tmpl [new file with mode: 0644]
cde/doc/common/help/FPanel.tmpl [new file with mode: 0644]
cde/doc/common/help/Filemgr.tmpl [new file with mode: 0644]
cde/doc/common/help/Help4Help.tmpl [new file with mode: 0644]
cde/doc/common/help/Iconed.tmpl [new file with mode: 0644]
cde/doc/common/help/Infomgr.tmpl [new file with mode: 0644]
cde/doc/common/help/Intromgr.tmpl [new file with mode: 0644]
cde/doc/common/help/LibDtPrint.tmpl [new file with mode: 0644]
cde/doc/common/help/Loginmgr.tmpl [new file with mode: 0644]
cde/doc/common/help/Mailer.tmpl [new file with mode: 0644]
cde/doc/common/help/Printmgr.tmpl [new file with mode: 0644]
cde/doc/common/help/PrnSetup.tmpl [new file with mode: 0644]
cde/doc/common/help/Stylemgr.tmpl [new file with mode: 0644]
cde/doc/common/help/Terminal.tmpl [new file with mode: 0644]
cde/doc/common/help/Textedit.tmpl [new file with mode: 0644]
cde/doc/common/help/sdlvolume.tmpl [new file with mode: 0644]
cde/doc/de_DE.ISO8859-1/Makefile.am [new file with mode: 0644]
cde/doc/de_DE.ISO8859-1/help/Makefile.am [new file with mode: 0644]
cde/doc/es_ES.ISO8859-1/Makefile.am [new file with mode: 0644]
cde/doc/es_ES.ISO8859-1/help/Makefile.am [new file with mode: 0644]
cde/doc/fr_FR.ISO8859-1/Makefile.am [new file with mode: 0644]
cde/doc/fr_FR.ISO8859-1/help/Makefile.am [new file with mode: 0644]
cde/doc/it_IT.ISO8859-1/Makefile.am [new file with mode: 0644]
cde/doc/it_IT.ISO8859-1/help/Makefile.am [new file with mode: 0644]
cde/doc/ja_JP.dt-eucJP/help/Makefile.am [new file with mode: 0644]
cde/doc/util/Makefile.am [new file with mode: 0644]
cde/doc/util/dbtoman/Makefile.am [new file with mode: 0644]
cde/doc/util/dbtoman/instant/Makefile.am [new file with mode: 0644]
cde/include/Dt/Action.h [new file with mode: 0644]
cde/include/Dt/ActionDb.h [new file with mode: 0644]
cde/include/Dt/ActionDbP.h [new file with mode: 0644]
cde/include/Dt/ActionFind.h [new file with mode: 0644]
cde/include/Dt/ActionP.h [new file with mode: 0644]
cde/include/Dt/ActionUtilP.h [new file with mode: 0644]
cde/include/Dt/CanvasP.h [new file with mode: 0644]
cde/include/Dt/CanvasSegP.h [new file with mode: 0644]
cde/include/Dt/ChkpntP.h [new file with mode: 0644]
cde/include/Dt/CmdInv.h [new file with mode: 0644]
cde/include/Dt/CmdInvP.h [new file with mode: 0644]
cde/include/Dt/Collate.h [new file with mode: 0644]
cde/include/Dt/ComboBox.h [new file with mode: 0644]
cde/include/Dt/ComboBoxP.h [new file with mode: 0644]
cde/include/Dt/CommandM.h [new file with mode: 0644]
cde/include/Dt/Connect.h [new file with mode: 0644]
cde/include/Dt/Control.h [new file with mode: 0644]
cde/include/Dt/ControlP.h [new file with mode: 0644]
cde/include/Dt/DataTypes.h [new file with mode: 0644]
cde/include/Dt/DbReader.h [new file with mode: 0644]
cde/include/Dt/DbUtil.h [new file with mode: 0644]
cde/include/Dt/DialogBox.h [new file with mode: 0644]
cde/include/Dt/DialogBoxP.h [new file with mode: 0644]
cde/include/Dt/Dnd.h [new file with mode: 0644]
cde/include/Dt/DndIconI.h [new file with mode: 0644]
cde/include/Dt/DndP.h [new file with mode: 0644]
cde/include/Dt/Dt.h [new file with mode: 0644]
cde/include/Dt/DtGetMessageP.h [new file with mode: 0644]
cde/include/Dt/DtHash.h [new file with mode: 0644]
cde/include/Dt/DtMsgsP.h [new file with mode: 0644]
cde/include/Dt/DtNlUtils.h [new file with mode: 0644]
cde/include/Dt/DtP.h [new file with mode: 0644]
cde/include/Dt/DtPStrings.h [new file with mode: 0644]
cde/include/Dt/DtShmDb.h [new file with mode: 0644]
cde/include/Dt/DtStrDefs.h [new file with mode: 0644]
cde/include/Dt/DtosP.h [new file with mode: 0644]
cde/include/Dt/DtpadM.h [new file with mode: 0644]
cde/include/Dt/Dts.h [new file with mode: 0644]
cde/include/Dt/DtsDb.h [new file with mode: 0644]
cde/include/Dt/DtsMM.h [new file with mode: 0644]
cde/include/Dt/Editor.h [new file with mode: 0644]
cde/include/Dt/EditorP.h [new file with mode: 0644]
cde/include/Dt/EnvControlI.h [new file with mode: 0644]
cde/include/Dt/EnvControlP.h [new file with mode: 0644]
cde/include/Dt/FileM.h [new file with mode: 0644]
cde/include/Dt/FileUtil.h [new file with mode: 0644]
cde/include/Dt/GetDispRes.h [new file with mode: 0644]
cde/include/Dt/HashP.h [new file with mode: 0644]
cde/include/Dt/Help.h [new file with mode: 0644]
cde/include/Dt/HelpDialog.h [new file with mode: 0644]
cde/include/Dt/HelpDialogP.h [new file with mode: 0644]
cde/include/Dt/HelpP.h [new file with mode: 0644]
cde/include/Dt/HelpQuickD.h [new file with mode: 0644]
cde/include/Dt/HelpQuickDP.h [new file with mode: 0644]
cde/include/Dt/HourGlass.h [new file with mode: 0644]
cde/include/Dt/Icon.h [new file with mode: 0644]
cde/include/Dt/IconFile.h [new file with mode: 0644]
cde/include/Dt/IconP.h [new file with mode: 0644]
cde/include/Dt/Indicator.h [new file with mode: 0644]
cde/include/Dt/IndicatorM.h [new file with mode: 0644]
cde/include/Dt/Info.h [new file with mode: 0644]
cde/include/Dt/LocaleXlate.h [new file with mode: 0644]
cde/include/Dt/Lock.h [new file with mode: 0644]
cde/include/Dt/MacrosP.h [new file with mode: 0644]
cde/include/Dt/MenuButton.h [new file with mode: 0644]
cde/include/Dt/MenuButtonP.h [new file with mode: 0644]
cde/include/Dt/Message.h [new file with mode: 0644]
cde/include/Dt/Mrm.h [new file with mode: 0644]
cde/include/Dt/Msg.h [new file with mode: 0644]
cde/include/Dt/MsgCatP.h [new file with mode: 0644]
cde/include/Dt/MsgLog.h [new file with mode: 0644]
cde/include/Dt/MsgLogI.h [new file with mode: 0644]
cde/include/Dt/MsgP.h [new file with mode: 0644]
cde/include/Dt/Print.h [new file with mode: 0644]
cde/include/Dt/PrintDlgMgrP.h [new file with mode: 0644]
cde/include/Dt/PrintI.h [new file with mode: 0644]
cde/include/Dt/PrintMsgsP.h [new file with mode: 0644]
cde/include/Dt/PrintOptionsP.h [new file with mode: 0644]
cde/include/Dt/PrintSetupBP.h [new file with mode: 0644]
cde/include/Dt/PsubDefProcI.h [new file with mode: 0644]
cde/include/Dt/PsubUtilI.h [new file with mode: 0644]
cde/include/Dt/Qualify.h [new file with mode: 0644]
cde/include/Dt/Saver.h [new file with mode: 0644]
cde/include/Dt/SaverP.h [new file with mode: 0644]
cde/include/Dt/Search.h [new file with mode: 0644]
cde/include/Dt/SearchE.h [new file with mode: 0644]
cde/include/Dt/SearchP.h [new file with mode: 0644]
cde/include/Dt/Service.h [new file with mode: 0644]
cde/include/Dt/Session.h [new file with mode: 0644]
cde/include/Dt/SessionM.h [new file with mode: 0644]
cde/include/Dt/SessionP.h [new file with mode: 0644]
cde/include/Dt/Setlocale.h [new file with mode: 0644]
cde/include/Dt/SharedProcs.h [new file with mode: 0644]
cde/include/Dt/SmCreateDirs.h [new file with mode: 0644]
cde/include/Dt/Spc.h [new file with mode: 0644]
cde/include/Dt/SpinBox.h [new file with mode: 0644]
cde/include/Dt/SpinBoxP.h [new file with mode: 0644]
cde/include/Dt/SvcTT.h [new file with mode: 0644]
cde/include/Dt/Term.h [new file with mode: 0644]
cde/include/Dt/TermP.h [new file with mode: 0644]
cde/include/Dt/TermPrim.h [new file with mode: 0644]
cde/include/Dt/TermPrimP.h [new file with mode: 0644]
cde/include/Dt/TitleBox.h [new file with mode: 0644]
cde/include/Dt/TitleBoxP.h [new file with mode: 0644]
cde/include/Dt/Unistd.h [new file with mode: 0644]
cde/include/Dt/UserMsg.h [new file with mode: 0644]
cde/include/Dt/Utility.h [new file with mode: 0644]
cde/include/Dt/UtilityP.h [new file with mode: 0644]
cde/include/Dt/View.h [new file with mode: 0644]
cde/include/Dt/ViewP.h [new file with mode: 0644]
cde/include/Dt/Wsm.h [new file with mode: 0644]
cde/include/Dt/WsmM.h [new file with mode: 0644]
cde/include/Dt/WsmP.h [new file with mode: 0644]
cde/include/Dt/XlationSvc.h [new file with mode: 0644]
cde/include/Dt/boolpars.h [new file with mode: 0644]
cde/include/Dt/dberr.h [new file with mode: 0644]
cde/include/Dt/dblock.h [new file with mode: 0644]
cde/include/Dt/dbtype.h [new file with mode: 0644]
cde/include/Dt/dbxtrn.h [new file with mode: 0644]
cde/include/Dt/dproto.h [new file with mode: 0644]
cde/include/Dt/dtcover.h [new file with mode: 0644]
cde/include/Dt/dtpdmd.h [new file with mode: 0644]
cde/include/Dt/inittab.h [new file with mode: 0644]
cde/include/Dt/ll.h [new file with mode: 0644]
cde/include/Dt/ncb.h [new file with mode: 0644]
cde/include/Dt/proto.h [new file with mode: 0644]
cde/include/Dt/task.h [new file with mode: 0644]
cde/include/Dt/trxlog.h [new file with mode: 0644]
cde/include/Dt/vista.h [new file with mode: 0644]
cde/include/Dt/xpm.h [new file with mode: 0644]
cde/include/DtI/Access.h [new file with mode: 0644]
cde/include/DtI/AccessI.h [new file with mode: 0644]
cde/include/DtI/AccessP.h [new file with mode: 0644]
cde/include/DtI/ActionsI.h [new file with mode: 0644]
cde/include/DtI/CallbacksI.h [new file with mode: 0644]
cde/include/DtI/CanvasI.h [new file with mode: 0644]
cde/include/DtI/DisplayAreaI.h [new file with mode: 0644]
cde/include/DtI/DisplayAreaP.h [new file with mode: 0644]
cde/include/DtI/FileUtilsI.h [new file with mode: 0644]
cde/include/DtI/FontAttrI.h [new file with mode: 0644]
cde/include/DtI/FontI.h [new file with mode: 0644]
cde/include/DtI/GifUtilsI.h [new file with mode: 0644]
cde/include/DtI/GraphicsP.h [new file with mode: 0644]
cde/include/DtI/HelpTermP.h [new file with mode: 0644]
cde/include/DtI/HelposI.h [new file with mode: 0644]
cde/include/DtI/HourGlassI.h [new file with mode: 0644]
cde/include/DtI/JpegUtilsI.h [new file with mode: 0644]
cde/include/DtI/LinkMgrP.h [new file with mode: 0644]
cde/include/DtI/RegionI.h [new file with mode: 0644]
cde/include/DtI/SetListI.h [new file with mode: 0644]
cde/include/DtI/XUICreateI.h [new file with mode: 0644]
cde/include/DtI/XbmUtilsI.h [new file with mode: 0644]
cde/include/DtI/bufioI.h [new file with mode: 0644]
cde/include/DtXinerama.h [new file with mode: 0644]
cde/include/SPC/chars.h [new file with mode: 0644]
cde/include/SPC/spc-obj.h [new file with mode: 0644]
cde/include/SPC/spc-proto.h [new file with mode: 0644]
cde/include/SPC/spcE.h [new file with mode: 0644]
cde/include/SPC/spcP.h [new file with mode: 0644]
cde/include/Tt/tt_c.h [new file with mode: 0644]
cde/include/Tt/tttk.h [new file with mode: 0644]
cde/include/bms/MemoryMgr.h [new file with mode: 0644]
cde/include/bms/SbEvent.h [new file with mode: 0644]
cde/include/bms/Symbolic.h [new file with mode: 0644]
cde/include/bms/XeUserMsg.h [new file with mode: 0644]
cde/include/bms/bms.h [new file with mode: 0644]
cde/include/bms/connect.h [new file with mode: 0644]
cde/include/bms/pathwexp.h [new file with mode: 0644]
cde/include/bms/sbport.h [new file with mode: 0644]
cde/include/bms/sbstdinc.h [new file with mode: 0644]
cde/include/bms/scoop.h [new file with mode: 0644]
cde/include/bms/spc.h [new file with mode: 0644]
cde/include/bms/stringbuf.h [new file with mode: 0644]
cde/include/bms/usersig.h [new file with mode: 0644]
cde/include/codelibs/boolean.h [new file with mode: 0644]
cde/include/codelibs/pathutils.h [new file with mode: 0644]
cde/include/codelibs/shellutils.h [new file with mode: 0644]
cde/include/cppfile.tmpl [new file with mode: 0644]
cde/include/csa/csa.h [new file with mode: 0644]
cde/lib/DtHelp/Access.h [deleted file]
cde/lib/DtHelp/AccessI.h [deleted file]
cde/lib/DtHelp/AccessP.h [deleted file]
cde/lib/DtHelp/ActionsI.h [deleted file]
cde/lib/DtHelp/CallbacksI.h [deleted file]
cde/lib/DtHelp/CanvasI.h [deleted file]
cde/lib/DtHelp/CanvasP.h [deleted file]
cde/lib/DtHelp/CanvasSegP.h [deleted file]
cde/lib/DtHelp/DisplayAreaI.h [deleted file]
cde/lib/DtHelp/DisplayAreaP.h [deleted file]
cde/lib/DtHelp/FileUtilsI.h [deleted file]
cde/lib/DtHelp/FontAttrI.h [deleted file]
cde/lib/DtHelp/FontI.h [deleted file]
cde/lib/DtHelp/GifUtilsI.h [deleted file]
cde/lib/DtHelp/GraphicsP.h [deleted file]
cde/lib/DtHelp/Help.h [deleted file]
cde/lib/DtHelp/HelpDialog.h [deleted file]
cde/lib/DtHelp/HelpDialogP.h [deleted file]
cde/lib/DtHelp/HelpP.h [deleted file]
cde/lib/DtHelp/HelpQuickD.h [deleted file]
cde/lib/DtHelp/HelpQuickDP.h [deleted file]
cde/lib/DtHelp/HelpTermP.h [deleted file]
cde/lib/DtHelp/Helpos.c
cde/lib/DtHelp/HelposI.h [deleted file]
cde/lib/DtHelp/HourGlassI.h [deleted file]
cde/lib/DtHelp/JpegUtilsI.h [deleted file]
cde/lib/DtHelp/LinkMgrP.h [deleted file]
cde/lib/DtHelp/Makefile.am [new file with mode: 0644]
cde/lib/DtHelp/RegionI.h [deleted file]
cde/lib/DtHelp/SetListI.h [deleted file]
cde/lib/DtHelp/XUICreateI.h [deleted file]
cde/lib/DtHelp/XbmUtilsI.h [deleted file]
cde/lib/DtHelp/bufioI.h [deleted file]
cde/lib/DtHelp/il/Makefile.am [new file with mode: 0644]
cde/lib/DtHelp/il/ilint.h
cde/lib/DtMrm/Makefile.am [new file with mode: 0644]
cde/lib/DtMrm/Mrm.h [deleted file]
cde/lib/DtPrint/Makefile.am [new file with mode: 0644]
cde/lib/DtPrint/Print.h [deleted file]
cde/lib/DtPrint/PrintDlgMgrP.h [deleted file]
cde/lib/DtPrint/PrintI.h [deleted file]
cde/lib/DtPrint/PrintMsgsP.h [deleted file]
cde/lib/DtPrint/PrintOptionsP.h [deleted file]
cde/lib/DtPrint/PrintSetupBP.h [deleted file]
cde/lib/DtPrint/PsubDefProcI.h [deleted file]
cde/lib/DtPrint/PsubUtilI.h [deleted file]
cde/lib/DtPrint/dtpdmd.h [deleted file]
cde/lib/DtSearch/Makefile.am [new file with mode: 0644]
cde/lib/DtSearch/Search.h [deleted file]
cde/lib/DtSearch/SearchE.h [deleted file]
cde/lib/DtSearch/SearchP.h [deleted file]
cde/lib/DtSearch/boolpars.h [deleted file]
cde/lib/DtSearch/dberr.h [deleted file]
cde/lib/DtSearch/dproto.h [deleted file]
cde/lib/DtSearch/raima/Makefile.am [new file with mode: 0644]
cde/lib/DtSearch/raima/dblock.h [deleted file]
cde/lib/DtSearch/raima/dbtype.h [deleted file]
cde/lib/DtSearch/raima/dbxtrn.h [deleted file]
cde/lib/DtSearch/raima/dproto.h [deleted file]
cde/lib/DtSearch/raima/dtcover.h [deleted file]
cde/lib/DtSearch/raima/inittab.h [deleted file]
cde/lib/DtSearch/raima/ll.h [deleted file]
cde/lib/DtSearch/raima/ncb.h [deleted file]
cde/lib/DtSearch/raima/proto.h [deleted file]
cde/lib/DtSearch/raima/task.h [deleted file]
cde/lib/DtSearch/raima/trxlog.h [deleted file]
cde/lib/DtSearch/raima/vista.h [deleted file]
cde/lib/DtSvc/DtUtil1/Action.h [deleted file]
cde/lib/DtSvc/DtUtil1/ActionDb.h [deleted file]
cde/lib/DtSvc/DtUtil1/ActionDbP.h [deleted file]
cde/lib/DtSvc/DtUtil1/ActionFind.h [deleted file]
cde/lib/DtSvc/DtUtil1/ActionP.h [deleted file]
cde/lib/DtSvc/DtUtil1/ActionUtilP.h [deleted file]
cde/lib/DtSvc/DtUtil1/CmdInv.h [deleted file]
cde/lib/DtSvc/DtUtil1/CmdInvP.h [deleted file]
cde/lib/DtSvc/DtUtil1/DbReader.h [deleted file]
cde/lib/DtSvc/DtUtil1/DbUtil.h [deleted file]
cde/lib/DtSvc/DtUtil1/Dnd.h [deleted file]
cde/lib/DtSvc/DtUtil1/DndIconI.h [deleted file]
cde/lib/DtSvc/DtUtil1/DndP.h [deleted file]
cde/lib/DtSvc/DtUtil1/Dt.h [deleted file]
cde/lib/DtSvc/DtUtil1/DtHash.h [deleted file]
cde/lib/DtSvc/DtUtil1/DtShmDb.h [deleted file]
cde/lib/DtSvc/DtUtil1/Dts.h [deleted file]
cde/lib/DtSvc/DtUtil1/DtsDb.h [deleted file]
cde/lib/DtSvc/DtUtil1/DtsMM.h [deleted file]
cde/lib/DtSvc/DtUtil1/Qualify.h [deleted file]
cde/lib/DtSvc/DtUtil1/Saver.h [deleted file]
cde/lib/DtSvc/DtUtil1/SaverP.h [deleted file]
cde/lib/DtSvc/DtUtil1/Session.h [deleted file]
cde/lib/DtSvc/DtUtil1/SessionM.h [deleted file]
cde/lib/DtSvc/DtUtil1/SessionP.h [deleted file]
cde/lib/DtSvc/DtUtil1/Wsm.h [deleted file]
cde/lib/DtSvc/DtUtil1/WsmM.h [deleted file]
cde/lib/DtSvc/DtUtil1/WsmP.h [deleted file]
cde/lib/DtSvc/DtUtil2/ChkpntP.h [deleted file]
cde/lib/DtSvc/DtUtil2/Collate.h [deleted file]
cde/lib/DtSvc/DtUtil2/CommandM.h [deleted file]
cde/lib/DtSvc/DtUtil2/Connect.h [deleted file]
cde/lib/DtSvc/DtUtil2/DataTypes.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtGetMessageP.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtNlUtils.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtP.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtPStrings.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtosP.h [deleted file]
cde/lib/DtSvc/DtUtil2/DtpadM.h [deleted file]
cde/lib/DtSvc/DtUtil2/EnvControlI.h [deleted file]
cde/lib/DtSvc/DtUtil2/EnvControlP.h [deleted file]
cde/lib/DtSvc/DtUtil2/FileM.h [deleted file]
cde/lib/DtSvc/DtUtil2/FileUtil.h [deleted file]
cde/lib/DtSvc/DtUtil2/GetDispRes.h [deleted file]
cde/lib/DtSvc/DtUtil2/HashP.h [deleted file]
cde/lib/DtSvc/DtUtil2/HourGlass.c
cde/lib/DtSvc/DtUtil2/HourGlass.h [deleted file]
cde/lib/DtSvc/DtUtil2/IconFile.h [deleted file]
cde/lib/DtSvc/DtUtil2/Indicator.h [deleted file]
cde/lib/DtSvc/DtUtil2/IndicatorM.h [deleted file]
cde/lib/DtSvc/DtUtil2/Info.h [deleted file]
cde/lib/DtSvc/DtUtil2/LocaleXlate.h [deleted file]
cde/lib/DtSvc/DtUtil2/Lock.h [deleted file]
cde/lib/DtSvc/DtUtil2/Message.h [deleted file]
cde/lib/DtSvc/DtUtil2/Msg.h [deleted file]
cde/lib/DtSvc/DtUtil2/MsgCatP.h [deleted file]
cde/lib/DtSvc/DtUtil2/MsgLog.h [deleted file]
cde/lib/DtSvc/DtUtil2/MsgLogI.h [deleted file]
cde/lib/DtSvc/DtUtil2/MsgP.h [deleted file]
cde/lib/DtSvc/DtUtil2/Service.h [deleted file]
cde/lib/DtSvc/DtUtil2/Setlocale.h [deleted file]
cde/lib/DtSvc/DtUtil2/SharedProcs.h [deleted file]
cde/lib/DtSvc/DtUtil2/SmCreateDirs.h [deleted file]
cde/lib/DtSvc/DtUtil2/Spc.h [deleted file]
cde/lib/DtSvc/DtUtil2/SvcTT.h [deleted file]
cde/lib/DtSvc/DtUtil2/Unistd.h [deleted file]
cde/lib/DtSvc/DtUtil2/UserMsg.h [deleted file]
cde/lib/DtSvc/DtUtil2/Utility.h [deleted file]
cde/lib/DtSvc/DtUtil2/UtilityP.h [deleted file]
cde/lib/DtSvc/DtUtil2/XlationSvc.h [deleted file]
cde/lib/DtSvc/DtXpm/xpm.h [deleted file]
cde/lib/DtSvc/Makefile.am [new file with mode: 0644]
cde/lib/DtSvc/include/Imakefile
cde/lib/DtSvc/include/SPC/Imakefile [deleted file]
cde/lib/DtSvc/include/SPC/chars.h [deleted file]
cde/lib/DtSvc/include/SPC/spc-obj.h [deleted file]
cde/lib/DtSvc/include/SPC/spc-proto.h [deleted file]
cde/lib/DtSvc/include/SPC/spcE.h [deleted file]
cde/lib/DtSvc/include/SPC/spcP.h [deleted file]
cde/lib/DtSvc/include/bms/Imakefile [deleted file]
cde/lib/DtSvc/include/bms/MemoryMgr.h [deleted file]
cde/lib/DtSvc/include/bms/SbEvent.h [deleted file]
cde/lib/DtSvc/include/bms/Symbolic.h [deleted file]
cde/lib/DtSvc/include/bms/XeUserMsg.h [deleted file]
cde/lib/DtSvc/include/bms/bms.h [deleted file]
cde/lib/DtSvc/include/bms/connect.h [deleted file]
cde/lib/DtSvc/include/bms/pathwexp.h [deleted file]
cde/lib/DtSvc/include/bms/sbport.h [deleted file]
cde/lib/DtSvc/include/bms/sbstdinc.h [deleted file]
cde/lib/DtSvc/include/bms/scoop.h [deleted file]
cde/lib/DtSvc/include/bms/spc.h [deleted file]
cde/lib/DtSvc/include/bms/stringbuf.h [deleted file]
cde/lib/DtSvc/include/bms/usersig.h [deleted file]
cde/lib/DtSvc/include/codelibs/boolean.h [deleted file]
cde/lib/DtSvc/include/codelibs/pathutils.h [deleted file]
cde/lib/DtSvc/include/codelibs/shellutils.h [deleted file]
cde/lib/DtTerm/Makefile.am [new file with mode: 0644]
cde/lib/DtTerm/Term/Makefile.am [new file with mode: 0644]
cde/lib/DtTerm/Term/Term.h [deleted file]
cde/lib/DtTerm/Term/TermP.h [deleted file]
cde/lib/DtTerm/TermPrim/Makefile.am [new file with mode: 0644]
cde/lib/DtTerm/TermPrim/TermPrim.h [deleted file]
cde/lib/DtTerm/TermPrim/TermPrimP.h [deleted file]
cde/lib/DtTerm/TermView/Makefile.am [new file with mode: 0644]
cde/lib/DtTerm/util/Makefile.am [new file with mode: 0644]
cde/lib/DtWidget/ComboBox.h [deleted file]
cde/lib/DtWidget/ComboBoxP.h [deleted file]
cde/lib/DtWidget/Control.h [deleted file]
cde/lib/DtWidget/ControlP.h [deleted file]
cde/lib/DtWidget/DialogBox.h [deleted file]
cde/lib/DtWidget/DialogBoxP.h [deleted file]
cde/lib/DtWidget/DtMsgsP.h [deleted file]
cde/lib/DtWidget/DtStrDefs.h [deleted file]
cde/lib/DtWidget/Editor.h [deleted file]
cde/lib/DtWidget/EditorP.h [deleted file]
cde/lib/DtWidget/Icon.h [deleted file]
cde/lib/DtWidget/IconP.h [deleted file]
cde/lib/DtWidget/MacrosP.h [deleted file]
cde/lib/DtWidget/Makefile.am [new file with mode: 0644]
cde/lib/DtWidget/MenuButton.h [deleted file]
cde/lib/DtWidget/MenuButtonP.h [deleted file]
cde/lib/DtWidget/SpinBox.h [deleted file]
cde/lib/DtWidget/SpinBoxP.h [deleted file]
cde/lib/DtWidget/TitleBox.h [deleted file]
cde/lib/DtWidget/TitleBoxP.h [deleted file]
cde/lib/DtWidget/View.h [deleted file]
cde/lib/DtWidget/ViewP.h [deleted file]
cde/lib/DtXinerama/DtXinerama.h [deleted file]
cde/lib/DtXinerama/Makefile.am [new file with mode: 0644]
cde/lib/Makefile.am [new file with mode: 0644]
cde/lib/csa/Makefile.am [new file with mode: 0644]
cde/lib/csa/csa.h [deleted file]
cde/lib/pam/Makefile.am [new file with mode: 0644]
cde/lib/pam/pam_modules/Makefile.am [new file with mode: 0644]
cde/lib/tt/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/dbck/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/scripts/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/shell/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/shell/copier.C
cde/lib/tt/bin/shell/copier.h
cde/lib/tt/bin/shell/mover.C
cde/lib/tt/bin/shell/mover.h
cde/lib/tt/bin/shell/rcopier.C
cde/lib/tt/bin/shell/rcopier.h
cde/lib/tt/bin/shell/remover.C
cde/lib/tt/bin/shell/remover.h
cde/lib/tt/bin/tt_type_comp/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/ttauth/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/ttauth/process.c
cde/lib/tt/bin/ttauth/ttauth.c
cde/lib/tt/bin/ttdbserverd/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/ttdbserverd/db_server_functions.C
cde/lib/tt/bin/ttsession/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/tttar/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/tttar/archiver.C
cde/lib/tt/bin/tttar/archiver.h
cde/lib/tt/bin/tttar/tttar_api.C
cde/lib/tt/bin/tttar/tttar_spec.C
cde/lib/tt/bin/tttar/tttar_utils.C
cde/lib/tt/bin/tttar/tttar_utils.h
cde/lib/tt/bin/tttrace/Makefile.am [new file with mode: 0644]
cde/lib/tt/bin/tttrace/tttrace.C
cde/lib/tt/lib/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/api/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/api/c/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/api/c/api_api.C
cde/lib/tt/lib/api/c/api_api.h
cde/lib/tt/lib/api/c/api_auth.C
cde/lib/tt/lib/api/c/api_default.C
cde/lib/tt/lib/api/c/api_error.h
cde/lib/tt/lib/api/c/api_file.C
cde/lib/tt/lib/api/c/api_filemap.C
cde/lib/tt/lib/api/c/api_filemap.h
cde/lib/tt/lib/api/c/api_message.C
cde/lib/tt/lib/api/c/api_mp.C
cde/lib/tt/lib/api/c/api_mp.h
cde/lib/tt/lib/api/c/api_mp_otype.C
cde/lib/tt/lib/api/c/api_pattern.C
cde/lib/tt/lib/api/c/api_session_prop.C
cde/lib/tt/lib/api/c/api_spec.C
cde/lib/tt/lib/api/c/api_typecb.h
cde/lib/tt/lib/api/c/tt_c.h [deleted file]
cde/lib/tt/lib/api/dnd/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/api/dnd/ttdnd.c
cde/lib/tt/lib/db/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/db/old_db_server_functions.C
cde/lib/tt/lib/db/tt_old_db.C
cde/lib/tt/lib/dm/dm_enums.h
cde/lib/tt/lib/mp/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/mp/mp_context.h
cde/lib/tt/lib/mp/mp_global.h
cde/lib/tt/lib/mp/mp_xdr_functions.h
cde/lib/tt/lib/tttk/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/tttk/ttdesktop.C
cde/lib/tt/lib/tttk/ttdesktop.h
cde/lib/tt/lib/tttk/ttdtfile.C
cde/lib/tt/lib/tttk/ttdtprocid.h
cde/lib/tt/lib/tttk/ttmedia.C
cde/lib/tt/lib/tttk/tttk.C
cde/lib/tt/lib/tttk/tttk.h [deleted file]
cde/lib/tt/lib/tttk/tttk2free.h
cde/lib/tt/lib/tttk/tttkmessage.C
cde/lib/tt/lib/tttk/tttkmessage.h
cde/lib/tt/lib/tttk/tttkpattern.C
cde/lib/tt/lib/tttk/tttkpattern.h
cde/lib/tt/lib/tttk/tttkutils.C
cde/lib/tt/lib/util/Makefile.am [new file with mode: 0644]
cde/lib/tt/lib/util/frozen.tt_trace_parse.c
cde/lib/tt/lib/util/tt_audit.C
cde/lib/tt/lib/util/tt_enumname.h
cde/lib/tt/lib/util/tt_iostream.h
cde/lib/tt/lib/util/tt_trace.C
cde/lib/tt/lib/util/tt_trace.h
cde/lib/tt/lib/util/tt_trace_parse.l
cde/lib/tt/lib/util/tt_trace_parser.h
cde/lib/tt/lib/util/tt_tracefile_parse.C
cde/lib/tt/mini_isam/Makefile.am [new file with mode: 0644]
cde/lib/tt/slib/Makefile.am [new file with mode: 0644]
cde/lib/tt/slib/mp_s_xdr_functions.h
cde/lib/tt/slib/mp_typedb.C
cde/lib/tt/tooltalk.inc [new file with mode: 0644]
cde/m4/ax_pthread.m4 [new file with mode: 0644]
cde/programs/Makefile.am [new file with mode: 0644]
cde/programs/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/dsdm/Makefile.am [new file with mode: 0644]
cde/programs/dsdm/dsdm.c
cde/programs/dsdm/proxy.c
cde/programs/dtaction/Makefile.am [new file with mode: 0644]
cde/programs/dtappbuilder/Makefile.am [new file with mode: 0644]
cde/programs/dtappbuilder/src/Makefile.am [new file with mode: 0644]
cde/programs/dtappbuilder/src/ab/Makefile.am [new file with mode: 0644]
cde/programs/dtappintegrate/Makefile.am [new file with mode: 0644]
cde/programs/dtappintegrate/dtappintegrate.src
cde/programs/dtcalc/Makefile.am [new file with mode: 0644]
cde/programs/dtcm/Makefile.am [new file with mode: 0644]
cde/programs/dtcm/dtcm/Makefile.am [new file with mode: 0644]
cde/programs/dtcm/libDtCmP/Makefile.am [new file with mode: 0644]
cde/programs/dtcm/libDtCmP/timeops.c
cde/programs/dtcm/server/Makefile.am [new file with mode: 0644]
cde/programs/dtcm/server/svcmain.c
cde/programs/dtconfig/Makefile.am [new file with mode: 0644]
cde/programs/dtconfig/hp/Imakefile [deleted file]
cde/programs/dtconfig/hp/dtconfig.src [deleted file]
cde/programs/dtconfig/hp/dtlogin.rc.src [deleted file]
cde/programs/dtconfig/hp/dtrc.dtlogin_st.src [deleted file]
cde/programs/dtconfig/hp/dtrc.getty_wait.src [deleted file]
cde/programs/dtconfig/hp/dtrc.graph_conf.src [deleted file]
cde/programs/dtconfig/hp/dtrc.src [deleted file]
cde/programs/dtconfig/ibm/Imakefile [deleted file]
cde/programs/dtconfig/ibm/dtconfig.src [deleted file]
cde/programs/dtconfig/ibm/rc.dt.src [deleted file]
cde/programs/dtconfig/sun/Makefile.am [new file with mode: 0644]
cde/programs/dtcreate/Makefile.am [new file with mode: 0644]
cde/programs/dtdbcache/Main.c
cde/programs/dtdbcache/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/doc2sdl/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/doc2sdl/SGML/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/instant/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/lib/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/lib/tptregexp/Makefile.am [new file with mode: 0644]
cde/programs/dtdocbook/xlate_locale/Makefile.am [new file with mode: 0644]
cde/programs/dtdspmsg/Makefile.am [new file with mode: 0644]
cde/programs/dtexec/Makefile.am [new file with mode: 0644]
cde/programs/dtfile/FileManip.c
cde/programs/dtfile/Makefile.am [new file with mode: 0644]
cde/programs/dtfile/MkDir.c
cde/programs/dtfile/SharedProcs.h
cde/programs/dtfile/dtcopy/Makefile.am [new file with mode: 0644]
cde/programs/dthello/Makefile.am [new file with mode: 0644]
cde/programs/dthello/dthello.c
cde/programs/dthello/dthello.h
cde/programs/dthelp/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpgen/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpprint/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpview/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/canon1/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/build/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/eltdef/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/helptag/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass2/Makefile.am [new file with mode: 0644]
cde/programs/dticon/Makefile.am [new file with mode: 0644]
cde/programs/dtimsstart/Makefile.am [new file with mode: 0644]
cde/programs/dtimsstart/env.c
cde/programs/dtimsstart/start.c
cde/programs/dtimsstart/util.c
cde/programs/dtimsstart/win.c
cde/programs/dtinfo/DtMmdb/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/api/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/btree/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/btree_berkeley/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/compression/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/diskhash/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/dstr/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/dti_excs/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/dynhash/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/hmphf/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/index/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/mgrs/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/misc/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/object/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/oliasdb/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/schema/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/storage/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/DtMmdb/utility/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/clients/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/clients/dtinfo_start/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/install/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/install/lib/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/install/lib/bitmaps/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/install/lib/fonts/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/wwl/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfo/wwl/src/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/SGML/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/infolib/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/infolib/ja_JP.EUC-JP/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/dtinfogen/mmdb/Makefile.am [new file with mode: 0644]
cde/programs/dtinfo/tools/Makefile.am [new file with mode: 0644]
cde/programs/dtksh/Makefile.am [new file with mode: 0644]
cde/programs/dtksh/ksh93/Makefile.am [new file with mode: 0644]
cde/programs/dtlogin/Makefile.am [new file with mode: 0644]
cde/programs/dtlogin/config/Makefile.am [new file with mode: 0644]
cde/programs/dtlogin/config/Xsession.src
cde/programs/dtlogin/dm.h
cde/programs/dtlogin/util.c
cde/programs/dtmail/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/MotifApp/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/dtmail/DmxMessage.C
cde/programs/dtmail/dtmail/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/dtmailpr/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/dtmailpr/message.C
cde/programs/dtmail/libDtMail/Common/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/libDtMail/Common/Session.C
cde/programs/dtmail/libDtMail/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/libDtMail/RFC/MIMEBodyPart.C
cde/programs/dtmail/libDtMail/RFC/Makefile.am [new file with mode: 0644]
cde/programs/dtmail/libDtMail/RFC/RFCBodyPart.C
cde/programs/dtmail/libDtMail/RFC/V3BodyPart.C
cde/programs/dtopen/Makefile.am [new file with mode: 0644]
cde/programs/dtopen/dtopen.src
cde/programs/dtpad/Makefile.am [new file with mode: 0644]
cde/programs/dtpdm/Makefile.am [new file with mode: 0644]
cde/programs/dtpdmd/Makefile.am [new file with mode: 0644]
cde/programs/dtpdmd/dtpdmdP.h
cde/programs/dtprintegrate/Makefile.am [new file with mode: 0644]
cde/programs/dtprintinfo/Makefile.am [new file with mode: 0644]
cde/programs/dtprintinfo/libUI/MotifUI/MotifUI.C
cde/programs/dtscreen/Dtscreen.src
cde/programs/dtscreen/Makefile.am [new file with mode: 0644]
cde/programs/dtsearchpath/0030.dttmpdir.src
cde/programs/dtsearchpath/Makefile.am [new file with mode: 0644]
cde/programs/dtsearchpath/dtappg/Makefile.am [new file with mode: 0644]
cde/programs/dtsearchpath/dtsp/Makefile.am [new file with mode: 0644]
cde/programs/dtsearchpath/libCliSrv/Makefile.am [new file with mode: 0644]
cde/programs/dtsession/Makefile.am [new file with mode: 0644]
cde/programs/dtsession/SrvPalette.c
cde/programs/dtsession/dtloadresources.src
cde/programs/dtspcd/Makefile.am [new file with mode: 0644]
cde/programs/dtsr/Makefile.am [new file with mode: 0644]
cde/programs/dtstyle/I18nEnv.c
cde/programs/dtstyle/Makefile.am [new file with mode: 0644]
cde/programs/dtterm/Makefile.am [new file with mode: 0644]
cde/programs/dtterm/util/Imakefile [deleted file]
cde/programs/dtterm/util/logger.c [deleted file]
cde/programs/dtudcexch/Makefile.am [new file with mode: 0644]
cde/programs/dtwm/Clock.c
cde/programs/dtwm/Makefile.am [new file with mode: 0644]
cde/programs/dtwm/README
cde/programs/dtwm/UI.c
cde/programs/dtwm/WmBitmap.h [deleted file]
cde/programs/dtwm/WmFeedback.c
cde/programs/dtwm/WmFunction.c
cde/programs/dtwm/WmIBitmap.h
cde/programs/dtwm/WmWinList.c
cde/programs/fontaliases/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/bdf/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/bdf/fonts.am [new file with mode: 0644]
cde/programs/fontaliases/freebsd/C/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/freebsd/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/linux/C/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/linux/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/linux/en_US.UTF-8/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/linux/en_US.UTF-8/fonts.dir [deleted file]
cde/programs/fontaliases/netbsd/C/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/netbsd/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/openbsd/C/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/openbsd/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/sun/C/Makefile.am [new file with mode: 0644]
cde/programs/fontaliases/sun/Makefile.am [new file with mode: 0644]
cde/programs/icons/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/app-defaults/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/C/types/_common.dt.tmsg
cde/programs/localized/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/app-defaults/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/de_DE.UTF-8/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/el_GR.UTF-8/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/el_GR.UTF-8/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/el_GR.UTF-8/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/el_GR.UTF-8/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/app-defaults/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/es_ES.UTF-8/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/app-defaults/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/fr_FR.UTF-8/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/app-defaults/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/backdrops/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/config/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/msg/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/palettes/Makefile.am [new file with mode: 0644]
cde/programs/localized/it_IT.UTF-8/types/Makefile.am [new file with mode: 0644]
cde/programs/localized/ja_JP.dt-eucJP/Makefile.am [new file with mode: 0644]
cde/programs/localized/templates/C.am [new file with mode: 0644]
cde/programs/localized/templates/English.am [new file with mode: 0644]
cde/programs/localized/templates/French.am [new file with mode: 0644]
cde/programs/localized/templates/German.am [new file with mode: 0644]
cde/programs/localized/templates/Italian.am [new file with mode: 0644]
cde/programs/localized/templates/Spanish.am [new file with mode: 0644]
cde/programs/localized/templates/app-defaults.am [new file with mode: 0644]
cde/programs/localized/templates/backdrops.am [new file with mode: 0644]
cde/programs/localized/templates/config.am [new file with mode: 0644]
cde/programs/localized/templates/msg.C.am [new file with mode: 0644]
cde/programs/localized/templates/msg.am [new file with mode: 0644]
cde/programs/localized/templates/palettes.am [new file with mode: 0644]
cde/programs/localized/templates/types.am [new file with mode: 0644]
cde/programs/localized/util/Makefile.am [new file with mode: 0644]
cde/programs/localized/util/merge.c
cde/programs/localized/util/mkcatdefs.c
cde/programs/nsgmls/Makefile.am [new file with mode: 0644]
cde/programs/palettes/Makefile.am [new file with mode: 0644]
cde/programs/tttypes/Makefile.am [new file with mode: 0644]
cde/programs/types/Makefile.am [new file with mode: 0644]
cde/programs/types/videoTypes.dt
cde/programs/util/Makefile.am [new file with mode: 0644]
cde/programs/util/dttypes/Makefile.am [new file with mode: 0644]
cde/programs/util/dttypes/dttypes.c
cde/util/Makefile.am [new file with mode: 0644]
cde/util/tradcpp/CHANGES [new file with mode: 0644]
cde/util/tradcpp/Makefile.am [new file with mode: 0644]
cde/util/tradcpp/TODO [new file with mode: 0644]
cde/util/tradcpp/array.c [new file with mode: 0644]
cde/util/tradcpp/array.h [new file with mode: 0644]
cde/util/tradcpp/bool.h [new file with mode: 0644]
cde/util/tradcpp/config.h [new file with mode: 0644]
cde/util/tradcpp/directive.c [new file with mode: 0644]
cde/util/tradcpp/directive.h [new file with mode: 0644]
cde/util/tradcpp/eval.c [new file with mode: 0644]
cde/util/tradcpp/eval.h [new file with mode: 0644]
cde/util/tradcpp/files.c [new file with mode: 0644]
cde/util/tradcpp/files.h [new file with mode: 0644]
cde/util/tradcpp/inlinedefs.h [new file with mode: 0644]
cde/util/tradcpp/macro.c [new file with mode: 0644]
cde/util/tradcpp/macro.h [new file with mode: 0644]
cde/util/tradcpp/main.c [new file with mode: 0644]
cde/util/tradcpp/mode.h [new file with mode: 0644]
cde/util/tradcpp/output.c [new file with mode: 0644]
cde/util/tradcpp/output.h [new file with mode: 0644]
cde/util/tradcpp/place.c [new file with mode: 0644]
cde/util/tradcpp/place.h [new file with mode: 0644]
cde/util/tradcpp/tests/subdir/test.h [new file with mode: 0644]
cde/util/tradcpp/tests/t01.c [new file with mode: 0644]
cde/util/tradcpp/tests/t01.good [new file with mode: 0644]
cde/util/tradcpp/tests/t02.c [new file with mode: 0644]
cde/util/tradcpp/tests/t02.good [new file with mode: 0644]
cde/util/tradcpp/tests/t03.c [new file with mode: 0644]
cde/util/tradcpp/tests/t03.good [new file with mode: 0644]
cde/util/tradcpp/tests/t04.c [new file with mode: 0644]
cde/util/tradcpp/tests/t04.good [new file with mode: 0644]
cde/util/tradcpp/tests/t05.c [new file with mode: 0644]
cde/util/tradcpp/tests/t05.good [new file with mode: 0644]
cde/util/tradcpp/tests/t06.c [new file with mode: 0644]
cde/util/tradcpp/tests/t06.good [new file with mode: 0644]
cde/util/tradcpp/tests/t07.c [new file with mode: 0644]
cde/util/tradcpp/tests/t07.good [new file with mode: 0644]
cde/util/tradcpp/tests/t08.c [new file with mode: 0644]
cde/util/tradcpp/tests/t08.good [new file with mode: 0644]
cde/util/tradcpp/tests/t09.c [new file with mode: 0644]
cde/util/tradcpp/tests/t09.good [new file with mode: 0644]
cde/util/tradcpp/tests/t10.c [new file with mode: 0644]
cde/util/tradcpp/tests/t10.good [new file with mode: 0644]
cde/util/tradcpp/tests/t11.c [new file with mode: 0644]
cde/util/tradcpp/tests/t11.good [new file with mode: 0644]
cde/util/tradcpp/tests/t12.c [new file with mode: 0644]
cde/util/tradcpp/tests/t12.good [new file with mode: 0644]
cde/util/tradcpp/tests/t13.c [new file with mode: 0644]
cde/util/tradcpp/tests/t13.good [new file with mode: 0644]
cde/util/tradcpp/tests/t14.c [new file with mode: 0644]
cde/util/tradcpp/tests/t14.good [new file with mode: 0644]
cde/util/tradcpp/tests/t15.c [new file with mode: 0644]
cde/util/tradcpp/tests/t15.good [new file with mode: 0644]
cde/util/tradcpp/tests/t16.c [new file with mode: 0644]
cde/util/tradcpp/tests/t16.good [new file with mode: 0644]
cde/util/tradcpp/tests/t17.c [new file with mode: 0644]
cde/util/tradcpp/tests/t17.good [new file with mode: 0644]
cde/util/tradcpp/tests/t18.c [new file with mode: 0644]
cde/util/tradcpp/tests/t18.good [new file with mode: 0644]
cde/util/tradcpp/tests/t19.c [new file with mode: 0644]
cde/util/tradcpp/tests/t19.good [new file with mode: 0644]
cde/util/tradcpp/tests/t20.c [new file with mode: 0644]
cde/util/tradcpp/tests/t20.good [new file with mode: 0644]
cde/util/tradcpp/tests/t21.c [new file with mode: 0644]
cde/util/tradcpp/tests/t21.good [new file with mode: 0644]
cde/util/tradcpp/tests/t22.c [new file with mode: 0644]
cde/util/tradcpp/tests/t22.good [new file with mode: 0644]
cde/util/tradcpp/tests/t23.c [new file with mode: 0644]
cde/util/tradcpp/tests/t23.good [new file with mode: 0644]
cde/util/tradcpp/tests/t24.c [new file with mode: 0644]
cde/util/tradcpp/tests/t24.good [new file with mode: 0644]
cde/util/tradcpp/tests/t25.c [new file with mode: 0644]
cde/util/tradcpp/tests/t25.good [new file with mode: 0644]
cde/util/tradcpp/tests/t26.c [new file with mode: 0644]
cde/util/tradcpp/tests/t26.good [new file with mode: 0644]
cde/util/tradcpp/tests/t27.c [new file with mode: 0644]
cde/util/tradcpp/tests/t27.good [new file with mode: 0644]
cde/util/tradcpp/tests/t28.c [new file with mode: 0644]
cde/util/tradcpp/tests/t28.good [new file with mode: 0644]
cde/util/tradcpp/tests/t29.c [new file with mode: 0644]
cde/util/tradcpp/tests/t29.good [new file with mode: 0644]
cde/util/tradcpp/tests/t30.c [new file with mode: 0644]
cde/util/tradcpp/tests/t30.good [new file with mode: 0644]
cde/util/tradcpp/tests/t31.c [new file with mode: 0644]
cde/util/tradcpp/tests/t31.good [new file with mode: 0644]
cde/util/tradcpp/tests/t32.c [new file with mode: 0644]
cde/util/tradcpp/tests/t32.good [new file with mode: 0644]
cde/util/tradcpp/tests/t33.c [new file with mode: 0644]
cde/util/tradcpp/tests/t33.good [new file with mode: 0644]
cde/util/tradcpp/tests/t34.c [new file with mode: 0644]
cde/util/tradcpp/tests/t34.good [new file with mode: 0644]
cde/util/tradcpp/tests/t35.c [new file with mode: 0644]
cde/util/tradcpp/tests/t35.good [new file with mode: 0644]
cde/util/tradcpp/tests/t36.c [new file with mode: 0644]
cde/util/tradcpp/tests/t36.good [new file with mode: 0644]
cde/util/tradcpp/tests/t37.c [new file with mode: 0644]
cde/util/tradcpp/tests/t37.good [new file with mode: 0644]
cde/util/tradcpp/tests/t38.c [new file with mode: 0644]
cde/util/tradcpp/tests/t38.good [new file with mode: 0644]
cde/util/tradcpp/tests/t39.c [new file with mode: 0644]
cde/util/tradcpp/tests/t39.good [new file with mode: 0644]
cde/util/tradcpp/tests/t40.c [new file with mode: 0644]
cde/util/tradcpp/tests/t40.good [new file with mode: 0644]
cde/util/tradcpp/tests/tradcpp.sh [new file with mode: 0644]
cde/util/tradcpp/tradcpp.1 [new file with mode: 0644]
cde/util/tradcpp/union.h [new file with mode: 0644]
cde/util/tradcpp/utils.c [new file with mode: 0644]
cde/util/tradcpp/utils.h [new file with mode: 0644]
cde/util/tradcpp/version.h [new file with mode: 0644]

index 759b730226c2c584ddead85f0710732f8782e8f9..8db7aec2900221cd6b3b0cdf5d3ac77c1498c732 100644 (file)
@@ -179,6 +179,7 @@ programs/dtsearchpath/dtsp/dtsp
 programs/dtsession/Dtsession
 programs/dtsession/dtloadresources
 programs/dtsession/dtsession
+programs/dtsession/dtsession_res
 programs/dtspcd/dtspcd
 programs/dtspcd/dtspcdenv
 programs/dtsr/dtsrclean
@@ -478,6 +479,7 @@ programs/dtcm/libDtCmP/getdate.c
 programs/dtcm/server/parser.c
 programs/dtcm/server/parser.h
 programs/dtcm/server/rpc.cmsd
+programs/dtcm/server/y.tab*
 
 # programs/dtconfig
 programs/dtconfig/hp/dtconfig
@@ -1172,7 +1174,8 @@ programs/dtprintinfo/libUI/Test
 # programs/dtsearchpath
 programs/dtsearchpath/0010.dtpaths
 programs/dtsearchpath/0030.dttmpdir
-programs/dtsearchpath/dtappg/dtappg
+programs/dtsearchpath/dtappg/dtappgather
+programs/dtsearchpath/dtsp/dtsearchpath
 
 # programs/dtsession
 programs/dtsession/dtsession.msg
@@ -1206,11 +1209,17 @@ programs/dtwm/dtfplist
 programs/dtwm/sys.dtwmrc
 
 # programs/fontaliases
+programs/fontaliases/bdf/dtinfo.pcf.gz
 programs/fontaliases/linux/C/dtinfo.bdf
 programs/fontaliases/linux/C/dtinfo.pcf
 programs/fontaliases/linux/C/dtinfo.pcf.gz
 programs/fontaliases/linux/C/dtinfo.pcf.Z
 programs/fontaliases/linux/C/fonts.dir
+programs/fontaliases/linux/en_US.UTF-8/dtinfo.bdf
+programs/fontaliases/linux/en_US.UTF-8/dtinfo.pcf
+programs/fontaliases/linux/en_US.UTF-8/dtinfo.pcf.gz
+programs/fontaliases/linux/en_US.UTF-8/dtinfo.pcf.Z
+programs/fontaliases/linux/en_US.UTF-8/fonts.dir
 programs/fontaliases/freebsd/C/dtinfo.bdf
 programs/fontaliases/freebsd/C/dtinfo.pcf
 programs/fontaliases/freebsd/C/dtinfo.pcf.gz
@@ -2394,6 +2403,8 @@ programs/tttypes/dticon.done
 programs/tttypes/dticon.ptype.deps
 programs/tttypes/dtinfo.done
 programs/tttypes/dtinfo.ptype.deps
+programs/tttypes/dtinfo_start.done
+programs/tttypes/dtinfo_start.ptype.deps
 programs/tttypes/dtmail.done
 programs/tttypes/dtmail.ptype.deps
 programs/tttypes/dtpad.done
@@ -2405,6 +2416,7 @@ programs/tttypes/types.xdr
 # programs/types
 programs/types/IconBrowse.dt
 programs/types/autoStart.dt
+programs/types/compat.dt
 programs/types/datatypes.dt
 programs/types/develop.dt
 programs/types/dt.dt
@@ -2422,9 +2434,13 @@ programs/types/dtwm.fp
 programs/types/error.ds
 programs/types/hp.dt
 programs/types/ibm.dt
+programs/types/laserrom.dt
 programs/types/miscActions.dt
 programs/types/miscImages.dt
 programs/types/print.dt
+programs/types/printerNN.dt
+programs/types/sunOW.dt
+programs/types/unsupported.dt
 programs/types/user-prefs.dt
 programs/types/uxstd.dt
 programs/types/xclients.dt
@@ -2440,3 +2456,52 @@ util/scripts/xmkmf
 debian/cde-desktop
 debian/patches
 debian/.debhelper
+
+# autotools things...
+Makefile.in
+aclocal.m4
+autom4te.cache/
+config.log
+config.status
+configure
+include/config.h
+include/config.h.in
+include/stamp-h1
+libtool
+libtool.m4
+lt~obsolete.m4
+ltoptions.m4
+ltsugar.m4
+ltversion.m4
+compile
+config.guess
+config.sub
+depcomp
+install-sh
+ltmain.sh
+missing
+ylwrap
+*.lo
+*.la
+.libs
+.deps
+.objs
+.dirstamp
+autotools_config.h
+autotools_config.h.in
+lib/DtTerm/util/lineToData
+lib/csa/y.tab.c
+lib/csa/y.tab.h
+util/tradcpp/tradcpp
+
+programs/dtlogin/config/sys.dtprofile
+programs/localized/C/config/0100.session
+programs/localized/C/config/0120.session
+programs/localized/C/config/0140.session
+programs/localized/C/config/0160.session
+programs/localized/de_DE.UTF-8/config/0100.session
+programs/localized/de_DE.UTF-8/config/0120.session
+programs/localized/de_DE.UTF-8/config/0140.session
+programs/localized/de_DE.UTF-8/config/0160.session
+
+
diff --git a/cde/Makefile b/cde/Makefile
deleted file mode 100644 (file)
index da461ba..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-# $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
-     RELEASE = Release 2.3.1a
-     PRODUCT = CDE
-       SHELL = /bin/sh
-          RM = rm -f
-          MV = mv
-        MAKE = make
-       NMAKE = nmake
-   WORLDOPTS = 
-         TOP = .
- CURRENT_DIR = .
-   CONFIGSRC = $(TOP)/config
-    IMAKESRC = $(CONFIGSRC)/imake
-   DEPENDSRC = $(CONFIGSRC)/makedepend
-   DEPENDTOP = ../..
-    IMAKETOP = ../..
-    IRULESRC = $(CONFIGSRC)/cf
-       IMAKE = $(IMAKESRC)/imake
-   IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
-   MAKE_OPTS = -f xmakefile
-    MAKE_CMD = $(MAKE) $(MAKE_OPTS)
-   NMAKE_CMD = $(NMAKE) $(MAKE_OPTS)
-       FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
-
-all:
-       @$(MAKE_CMD) xmakefile-exists || $(MAKE) all-initial
-       @$(MAKE_CMD) $@
-
-all-initial:
-       @echo "Please begin by using make World or make Makefile.  You may"
-       @echo "find it necessary to set the make variable BOOTSTRAPCFLAGS in"
-       @echo "order to compile imake.  One common example is"
-       @echo "\"BOOTSTRAPCFLAGS=-I<dir>\", where <dir> is the top of your"
-       @echo "X11R6 source tree.  Remember to check the configuration"
-       @echo "parameters in the config directory."
-       @echo
-       @echo "We recommend that you read the release notes carefully before"
-       @echo "proceeding; they can be found under the doc directory.  If"
-       @echo "the top-level Makefile gets corrupted, copy Makefile.ini to"
-       @echo "Makefile and try again.  Do not name your log file make.log or"
-       @echo "it will be deleted."
-
-World:
-       @echo ""
-       @echo "Building $(RELEASE) of $(PRODUCT)"
-       @echo ""
-       @case "x$(BOOTSTRAPCFLAGS)" in x) \
-       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
-       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
-       echo "" ; \
-       ;; esac;
-       @date
-       @echo ""
-       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
-       $(MAKE) $(MFLAGS) Makefile.boot
-       $(MAKE_CMD) $(MFLAGS) VerifyOS
-       $(MAKE_CMD) $(MFLAGS) Makefiles
-       $(MAKE_CMD) $(MFLAGS) Makefiles.doc
-       $(MAKE_CMD) $(MFLAGS) clean
-       $(MAKE_CMD) $(MFLAGS) clean.doc
-       $(MAKE_CMD) $(MFLAGS) includes
-       $(MAKE_CMD) $(MFLAGS) includes.doc
-       $(MAKE_CMD) $(MFLAGS) depend
-       $(MAKE_CMD) $(MFLAGS) depend.doc
-       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
-       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
-       @echo ""
-       @date
-       @echo ""
-       @echo "Full build of $(RELEASE) of $(PRODUCT) complete."
-       @echo ""
-
-
-World.dev:
-       @echo ""
-       @echo "Building $(RELEASE) of $(PRODUCT) excluding DOC"
-       @echo ""
-       @case "x$(BOOTSTRAPCFLAGS)" in x) \
-       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
-       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
-       echo "" ; \
-       ;; esac;
-       @date
-       @echo ""
-       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
-       $(MAKE) $(MFLAGS) Makefile.boot
-       $(MAKE_CMD) $(MFLAGS) VerifyOS
-       $(MAKE_CMD) $(MFLAGS) Makefiles
-       $(MAKE_CMD) $(MFLAGS) clean
-       $(MAKE_CMD) $(MFLAGS) includes
-       $(MAKE_CMD) $(MFLAGS) depend
-       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
-       @echo ""
-       @date
-       @echo ""
-       @echo "Full build of $(RELEASE) of $(PRODUCT) excluding DOC complete."
-       @echo ""
-
-World.doc:
-       @echo ""
-       @echo "Building $(RELEASE) of $(PRODUCT) DOC"
-       @echo ""
-       @case "x$(BOOTSTRAPCFLAGS)" in x) \
-       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
-       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
-       echo "" ; \
-       ;; esac;
-       @date
-       @echo ""
-       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
-       $(MAKE) $(MFLAGS) Makefile.boot
-       $(MAKE_CMD) $(MFLAGS) VerifyOS
-       $(MAKE_CMD) $(MFLAGS) Makefiles.doc
-       $(MAKE_CMD) $(MFLAGS) clean.doc
-       $(MAKE_CMD) $(MFLAGS) includes.doc
-       $(MAKE_CMD) $(MFLAGS) depend.doc
-       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
-       @echo ""
-       @date
-       @echo ""
-       @echo "Full build of $(RELEASE) of $(PRODUCT) DOC complete."
-       @echo ""
-
-.PRECIOUS: Makefile
-
-# This is just a sequence of bootstrapping steps we have to do.
-# The steps are listed as separate targets so clearmake can wink in
-# the Makefile.proto files.
-Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap $(DEPENDSRC)/proto.clean
-
-imake.proto:
-       cd $(IMAKESRC) && $(MAKE) $(FLAGS)
-       $(RM) $(DEPENDSRC)/Makefile.proto $(DEPENDSRC)/.depend
-
-$(DEPENDSRC)/Makefile.proto:
-       $(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)
-
-depend.bootstrap:
-       cd $(DEPENDSRC) && $(RM) -r Makefile Makefile.dep makedepend *.o bootstrap
-       cd $(DEPENDSRC) && $(MAKE) -f Makefile.proto bootstrap
-
-$(IMAKESRC)/Makefile.proto:
-       $(IMAKE_CMD) -s $(IMAKESRC)/Makefile.proto -f $(IMAKESRC)/Imakefile -DTOPDIR=$(IMAKETOP) -DCURDIR=$(IMAKESRC)
-
-imake.bootstrap:
-       cd $(IMAKESRC) && $(MAKE) -f Makefile.proto bootstrapdepend
-       cd $(IMAKESRC) && $(MAKE) $(FLAGS) bootstrap
-       cd $(IMAKESRC) && $(MAKE) -f Makefile.proto all
-       -@if [ -f xmakefile ]; then set -x; \
-         $(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
-         else exit 0; fi
-       $(MAKE) $(MFLAGS) xmakefile
-
-$(DEPENDSRC)/proto.clean:
-       cd $(DEPENDSRC) && $(RM) -r Makefile.proto
-
-Makefile::
-       $(MAKE) $(MFLAGS) xmakefile
-
-xmakefile: Imakefile
-       $(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
-
-# don't allow any default rules in this Makefile
-.SUFFIXES:
-
-# a copy of every rule that might be invoked at top level
-
-clean:
-           $(MAKE_CMD) $@
-dangerous_strip_clean:
-           $(MAKE_CMD) $@
-depend:
-           $(MAKE_CMD) $@
-Everything:
-           $(MAKE_CMD) $@
-external.ln:
-           $(MAKE_CMD) $@
-includes:
-           $(MAKE_CMD) $@
-install.ln:
-           $(MAKE_CMD) $@
-install.man:
-           $(MAKE_CMD) $@
-install:
-           $(MAKE_CMD) $@
-Makefiles:
-           $(MAKE_CMD) $@
-man_keywords:
-           $(MAKE_CMD) $@
-tags:
-           $(MAKE_CMD) $@
-VerifyOS:
-           $(MAKE_CMD) $@
-
-# dev versions
-
-Everything.dev:
-           $(MAKE_CMD) $@
-
-# doc versions
-
-clean.doc:
-           $(MAKE_CMD) $@
-depend.doc:
-           $(MAKE_CMD) $@
-Everything.doc:
-           $(MAKE_CMD) $@
-includes.doc:
-           $(MAKE_CMD) $@
-install.man.doc:
-           $(MAKE_CMD) $@
-install.doc:
-           $(MAKE_CMD) $@
-Makefiles.doc:
-           $(MAKE_CMD) $@
-tags.doc:
-           $(MAKE_CMD) $@
diff --git a/cde/Makefile.am b/cde/Makefile.am
new file mode 100644 (file)
index 0000000..d656a56
--- /dev/null
@@ -0,0 +1,14 @@
+docsdir = $(CDE_INSTALLATION_TOP)
+docs_DATA = CONTRIBUTORS COPYING copyright HISTORY README
+
+MAINTAINERCLEANFILES = Makefile.in \
+               configure libtool \
+               config.guess \
+               config.sub \
+               config.log \
+               config.h.in \
+               install-sh
+
+SUBDIRS = util lib programs
+
+#NOTYET: doc
diff --git a/cde/Makefile.imake b/cde/Makefile.imake
new file mode 100644 (file)
index 0000000..da461ba
--- /dev/null
@@ -0,0 +1,217 @@
+# $TOG: Makefile /main/15 1999/10/12 09:33:30 mgreess $
+     RELEASE = Release 2.3.1a
+     PRODUCT = CDE
+       SHELL = /bin/sh
+          RM = rm -f
+          MV = mv
+        MAKE = make
+       NMAKE = nmake
+   WORLDOPTS = 
+         TOP = .
+ CURRENT_DIR = .
+   CONFIGSRC = $(TOP)/config
+    IMAKESRC = $(CONFIGSRC)/imake
+   DEPENDSRC = $(CONFIGSRC)/makedepend
+   DEPENDTOP = ../..
+    IMAKETOP = ../..
+    IRULESRC = $(CONFIGSRC)/cf
+       IMAKE = $(IMAKESRC)/imake
+   IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
+   MAKE_OPTS = -f xmakefile
+    MAKE_CMD = $(MAKE) $(MAKE_OPTS)
+   NMAKE_CMD = $(NMAKE) $(MAKE_OPTS)
+       FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
+
+all:
+       @$(MAKE_CMD) xmakefile-exists || $(MAKE) all-initial
+       @$(MAKE_CMD) $@
+
+all-initial:
+       @echo "Please begin by using make World or make Makefile.  You may"
+       @echo "find it necessary to set the make variable BOOTSTRAPCFLAGS in"
+       @echo "order to compile imake.  One common example is"
+       @echo "\"BOOTSTRAPCFLAGS=-I<dir>\", where <dir> is the top of your"
+       @echo "X11R6 source tree.  Remember to check the configuration"
+       @echo "parameters in the config directory."
+       @echo
+       @echo "We recommend that you read the release notes carefully before"
+       @echo "proceeding; they can be found under the doc directory.  If"
+       @echo "the top-level Makefile gets corrupted, copy Makefile.ini to"
+       @echo "Makefile and try again.  Do not name your log file make.log or"
+       @echo "it will be deleted."
+
+World:
+       @echo ""
+       @echo "Building $(RELEASE) of $(PRODUCT)"
+       @echo ""
+       @case "x$(BOOTSTRAPCFLAGS)" in x) \
+       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
+       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
+       echo "" ; \
+       ;; esac;
+       @date
+       @echo ""
+       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
+       $(MAKE) $(MFLAGS) Makefile.boot
+       $(MAKE_CMD) $(MFLAGS) VerifyOS
+       $(MAKE_CMD) $(MFLAGS) Makefiles
+       $(MAKE_CMD) $(MFLAGS) Makefiles.doc
+       $(MAKE_CMD) $(MFLAGS) clean
+       $(MAKE_CMD) $(MFLAGS) clean.doc
+       $(MAKE_CMD) $(MFLAGS) includes
+       $(MAKE_CMD) $(MFLAGS) includes.doc
+       $(MAKE_CMD) $(MFLAGS) depend
+       $(MAKE_CMD) $(MFLAGS) depend.doc
+       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
+       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
+       @echo ""
+       @date
+       @echo ""
+       @echo "Full build of $(RELEASE) of $(PRODUCT) complete."
+       @echo ""
+
+
+World.dev:
+       @echo ""
+       @echo "Building $(RELEASE) of $(PRODUCT) excluding DOC"
+       @echo ""
+       @case "x$(BOOTSTRAPCFLAGS)" in x) \
+       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
+       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
+       echo "" ; \
+       ;; esac;
+       @date
+       @echo ""
+       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
+       $(MAKE) $(MFLAGS) Makefile.boot
+       $(MAKE_CMD) $(MFLAGS) VerifyOS
+       $(MAKE_CMD) $(MFLAGS) Makefiles
+       $(MAKE_CMD) $(MFLAGS) clean
+       $(MAKE_CMD) $(MFLAGS) includes
+       $(MAKE_CMD) $(MFLAGS) depend
+       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS)
+       @echo ""
+       @date
+       @echo ""
+       @echo "Full build of $(RELEASE) of $(PRODUCT) excluding DOC complete."
+       @echo ""
+
+World.doc:
+       @echo ""
+       @echo "Building $(RELEASE) of $(PRODUCT) DOC"
+       @echo ""
+       @case "x$(BOOTSTRAPCFLAGS)" in x) \
+       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
+       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
+       echo "" ; \
+       ;; esac;
+       @date
+       @echo ""
+       cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
+       $(MAKE) $(MFLAGS) Makefile.boot
+       $(MAKE_CMD) $(MFLAGS) VerifyOS
+       $(MAKE_CMD) $(MFLAGS) Makefiles.doc
+       $(MAKE_CMD) $(MFLAGS) clean.doc
+       $(MAKE_CMD) $(MFLAGS) includes.doc
+       $(MAKE_CMD) $(MFLAGS) depend.doc
+       $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) all.doc
+       @echo ""
+       @date
+       @echo ""
+       @echo "Full build of $(RELEASE) of $(PRODUCT) DOC complete."
+       @echo ""
+
+.PRECIOUS: Makefile
+
+# This is just a sequence of bootstrapping steps we have to do.
+# The steps are listed as separate targets so clearmake can wink in
+# the Makefile.proto files.
+Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKESRC)/Makefile.proto imake.bootstrap $(DEPENDSRC)/proto.clean
+
+imake.proto:
+       cd $(IMAKESRC) && $(MAKE) $(FLAGS)
+       $(RM) $(DEPENDSRC)/Makefile.proto $(DEPENDSRC)/.depend
+
+$(DEPENDSRC)/Makefile.proto:
+       $(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)
+
+depend.bootstrap:
+       cd $(DEPENDSRC) && $(RM) -r Makefile Makefile.dep makedepend *.o bootstrap
+       cd $(DEPENDSRC) && $(MAKE) -f Makefile.proto bootstrap
+
+$(IMAKESRC)/Makefile.proto:
+       $(IMAKE_CMD) -s $(IMAKESRC)/Makefile.proto -f $(IMAKESRC)/Imakefile -DTOPDIR=$(IMAKETOP) -DCURDIR=$(IMAKESRC)
+
+imake.bootstrap:
+       cd $(IMAKESRC) && $(MAKE) -f Makefile.proto bootstrapdepend
+       cd $(IMAKESRC) && $(MAKE) $(FLAGS) bootstrap
+       cd $(IMAKESRC) && $(MAKE) -f Makefile.proto all
+       -@if [ -f xmakefile ]; then set -x; \
+         $(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
+         else exit 0; fi
+       $(MAKE) $(MFLAGS) xmakefile
+
+$(DEPENDSRC)/proto.clean:
+       cd $(DEPENDSRC) && $(RM) -r Makefile.proto
+
+Makefile::
+       $(MAKE) $(MFLAGS) xmakefile
+
+xmakefile: Imakefile
+       $(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
+
+# don't allow any default rules in this Makefile
+.SUFFIXES:
+
+# a copy of every rule that might be invoked at top level
+
+clean:
+           $(MAKE_CMD) $@
+dangerous_strip_clean:
+           $(MAKE_CMD) $@
+depend:
+           $(MAKE_CMD) $@
+Everything:
+           $(MAKE_CMD) $@
+external.ln:
+           $(MAKE_CMD) $@
+includes:
+           $(MAKE_CMD) $@
+install.ln:
+           $(MAKE_CMD) $@
+install.man:
+           $(MAKE_CMD) $@
+install:
+           $(MAKE_CMD) $@
+Makefiles:
+           $(MAKE_CMD) $@
+man_keywords:
+           $(MAKE_CMD) $@
+tags:
+           $(MAKE_CMD) $@
+VerifyOS:
+           $(MAKE_CMD) $@
+
+# dev versions
+
+Everything.dev:
+           $(MAKE_CMD) $@
+
+# doc versions
+
+clean.doc:
+           $(MAKE_CMD) $@
+depend.doc:
+           $(MAKE_CMD) $@
+Everything.doc:
+           $(MAKE_CMD) $@
+includes.doc:
+           $(MAKE_CMD) $@
+install.man.doc:
+           $(MAKE_CMD) $@
+install.doc:
+           $(MAKE_CMD) $@
+Makefiles.doc:
+           $(MAKE_CMD) $@
+tags.doc:
+           $(MAKE_CMD) $@
index c4e7b36b9b0a6247c67b056fe7933543b5b00c72..b0321241811d9e28d3115ad23c01fffb96fadf9c 100644 (file)
@@ -9,5 +9,5 @@ lib/DtSvc/DtUtil1/Dt.h
         DtUPDATE_LEVEL) numbers as well as the string must be
         changed. 
 lib/tt/bin/ttauth/ttauth.man
-lib/tt/tooltalk.tmpl
+lib/tt/tooltalk.inc
 
diff --git a/cde/autogen.sh b/cde/autogen.sh
new file mode 100755 (executable)
index 0000000..a04d233
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+THEDIR="`pwd`"
+cd "$srcdir"
+DIE=0
+
+libtoolize --force --automake
+aclocal -I admin
+autoconf
+autoheader
+automake --foreign  --include-deps --add-missing
+
+#if test -z "$*"; then
+#        echo "I am going to run ./configure with no arguments - if you wish "
+#        echo "to pass any to it, please specify them on the $0 command line."
+#fi
+#
+#cd "$THEDIR"
+#
+#$srcdir/configure "$@"
diff --git a/cde/configure.ac b/cde/configure.ac
new file mode 100644 (file)
index 0000000..8fba70e
--- /dev/null
@@ -0,0 +1,659 @@
+AC_INIT([cde-desktop], [2.3.1], [jon@radscan.com])
+AC_CONFIG_HEADERS([include/autotools_config.h])
+AC_CONFIG_MACRO_DIRS([m4])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
+
+dnl These must be up here for the compiler search list to actually work
+AC_PROG_CC([cc gcc clang])
+AC_PROG_CXX([c++ g++ clang++])
+
+LT_INIT
+AC_PREFIX_DEFAULT(/usr/dt)
+
+AC_ENABLE_STATIC([no])
+
+PKG_PROG_PKG_CONFIG
+
+dnl todo: determine what version of autoconf we depend on
+dnl AC_PREREQ()
+
+AC_CANONICAL_HOST
+AC_CANONICAL_BUILD
+
+dnl global CDE versioning
+
+CDE_VERSION_MAJOR=2
+CDE_VERSION_MINOR=3
+CDE_VERSION_MICRO=0
+
+AC_SUBST(CDE_VERSION_MAJOR)
+AC_SUBST(CDE_VERSION_MINOR)
+AC_SUBST(CDE_VERSION_MICRO)
+
+dnl SOURCE_DEFINES - start with CDE project default
+SOURCE_CPP_DEFINES="-DANSICPP -DMULTIBYTE -DNLS16"
+
+dnl CPP_COMPILER_FLAGS - CPP/C/C++ compiler flags
+CPP_COMPILER_FLAGS=""
+
+dnl CXX_COMPILER_FLAGS - C++ compiler flags
+CXX_COMPILER_FLAGS=""
+
+dnl C_COMPILER_FLAGS - C compiler flags
+C_COMPILER_FLAGS=""
+
+
+dnl These OS version checks are deprecated and should be replaced with
+dnl feature checks where appropriate
+
+build_linux=no
+bsd=no
+build_freebsd=no
+build_openbsd=no
+build_netbsd=no
+build_solaris=no
+build_hpux=no
+build_aix=no
+
+dnl For now, we need to fake the OSMAJORVERSION, OSMINORVERSION.  In Linux
+dnl this never mattered anyway as it was always the kernel version.  We will
+dnl choose defaults here.  These need to be removed in the code in favor
+dnl of actual checks for functionality. So this should be considered
+dnl temporary.
+
+OSMAJORVERSION=4
+OSMINORVERSION=15
+
+dnl locations of libs/includes if not in 'standard' places like on
+dnl linux (/usr/...).  We build these up based on where X11 is, and
+dnl other things as we go along.
+EXTRA_LIBS=""
+EXTRA_INCS=""
+
+case "${host_os}" in
+       linux*)
+               build_linux=yes
+                OSMAJORVERSION=4
+                OSMINORVERSION=15
+                SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \
+-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
+                CPP_COMPILER_FLAGS="-fno-strict-aliasing -Wno-write-strings \
+-Wno-unused-result"
+                 ;;
+       freebsd*)
+               build_freebsd=yes
+               bsd=yes
+                OSMAJORVERSION=10
+                OSMINORVERSION=0
+               ;;
+       openbsd*)
+               build_openbsd=yes
+               bsd=yes
+                OSMAJORVERSION=6
+                OSMINORVERSION=2
+               ;;
+       netbsd*)
+               build_netbsd=yes
+               bsd=yes
+                OSMAJORVERSION=8
+                OSMINORVERSION=0
+               ;;
+       solaris*|sun*)
+               build_solaris=yes
+                OSMAJORVERSION=5
+                OSMINORVERSION=10
+               ;;
+       aix*)
+               build_aix=yes
+               ;;
+       hpux*)
+               build_hpux=yes
+               ;;
+esac
+
+AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
+AM_CONDITIONAL([BSD], [test "$bsd" = "yes"])
+AM_CONDITIONAL([FREEBSD], [test "$build_freebsd" = "yes"])
+AM_CONDITIONAL([OPENBSD], [test "$build_openbsd" = "yes"])
+AM_CONDITIONAL([NETBSD], [test "$build_netbsd" = "yes"])
+AM_CONDITIONAL([SOLARIS], [test "$build_solaris" = "yes"])
+AM_CONDITIONAL([AIX], [test "$build_aix" = "yes"])
+AM_CONDITIONAL([HPUX], [test "$build_hpux" = "yes"])
+
+dnl Add osmajor/minor version to cppflags.
+OSVERSION="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION"
+
+dnl set CSRG_BASED define for the BSD's.  Also, they use /usr/local
+dnl for a lot of things, so add that to the INCS and LIBS
+if test "$bsd" = "yes"
+then
+        SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DCSRG_BASED"
+        EXTRA_INCS="-I/usr/local/include ${EXTRA_INCS}"
+        EXTRA_LIBS="-L/usr/local/lib ${EXTRA_LIBS}"
+fi
+
+is_x86_64=no
+is_i386=no
+is_sparc=no
+is_mips=no
+is_arm=no
+is_ppc=no
+
+case "${host_cpu}" in
+       i[3456]86*)
+               is_i386=yes
+               ;;
+       x86_64* | amd64*)
+               is_x86_64=yes
+               ;;
+       arm*)
+               is_arm=yes
+               ;;
+       mips*)
+               is_mips=yes
+               ;;
+       sparc*)
+               is_sparc=yes
+               ;;
+       ppc* | powerpc*)
+               is_ppc=yes
+               ;;
+esac
+
+AM_CONDITIONAL([I386], [test "$is_i386" = yes])
+AM_CONDITIONAL([X86_64], [test "$is_x86_64" = yes])
+AM_CONDITIONAL([ARM], [test "$is_arm" = yes])
+AM_CONDITIONAL([SPARC], [test "$is_sparc" = yes])
+AM_CONDITIONAL([MIPS], [test "is_mips" = yes])
+AM_CONDITIONAL([PPC], [test "is_ppc" = yes])
+
+dnl our main libraries
+dnl we use single quotes so that $top_buildir is evaluated in the makefiles,
+dnl not here.
+AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la')
+AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.la')
+AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la')
+AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la')
+AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.la')
+AC_SUBST(LIBSEARCH, '$(top_builddir)/lib/DtSearch/lbiDtSearch.la')
+AC_SUBST(LIBPRINT, '$(top_builddir)/lib/DtPrint/libDtPrint.la')
+AC_SUBST(LIBMRM, '$(top_builddir)/lib/DtMrm/libDtMrm.la')
+AC_SUBST(LIBMMDB, '$(top_builddir)/lib/DtMmdb/libDtMmdb.la')
+AC_SUBST(LIBHELP, '$(top_builddir)/lib/DtHelp/libDtHelp.la')
+AC_SUBST(LIBCSA, '$(top_builddir)/lib/csa/libcsa.la')
+
+AC_SUBST(DTCLIENTLIBS, '$(LIBPRINT) $(LIBHELP) $(LIBWIDGET) $(LIBSVC) \
+$(LIBTT) $(LIBXIN)')
+
+dnl set up come convenience replacements for global include dirs
+AC_SUBST(DT_INCDIR, '-I$(top_builddir)/include/Dt')
+AC_SUBST(DTI_INCDIR, '-I$(top_builddir)/include/DtI')
+AC_SUBST(TT_INCDIR, '-I$(top_builddir)/include/Tt')
+AC_SUBST(XM_INCDIR, '-I$(top_builddir)/include/Xm')
+AC_SUBST(CSA_INCDIR, '-I$(top_builddir)/include/csa')
+AC_SUBST(SPC_INCDIR, '-I$(top_builddir)/include/SPC')
+
+AC_ARG_ENABLE([german],
+        AS_HELP_STRING([--enable-german], [Build German locale (default=no)]),
+        [enable_de="yes"], [enable_de=""]
+)
+AM_CONDITIONAL([GERMAN], [test -n "$enable_de"])
+
+AC_ARG_ENABLE([italian],
+        AS_HELP_STRING([--enable-italian], [Build Italian locale (default=no)]),
+        [enable_it="yes"], [enable_it=""]
+)
+AM_CONDITIONAL([ITALIAN], [test -n "$enable_it"])
+
+AC_ARG_ENABLE([french],
+        AS_HELP_STRING([--enable-french], [Build French locale (default=no)]),
+        [enable_fr="yes"], [enable_fr=""]
+)
+AM_CONDITIONAL([FRENCH], [test -n "$enable_fr"])
+
+AC_ARG_ENABLE([spanish],
+        AS_HELP_STRING([--enable-spanish], [Build Spanish locale (default=no)]),
+        [enable_es="yes"], [enable_es=""]
+)
+AM_CONDITIONAL([SPANISH], [test -n "$enable_es"])
+
+AC_ARG_ENABLE([japanese],
+        AS_HELP_STRING([--enable-japanese], [Build Japanese locale (default=no, never tested)]),
+        [enable_jp="yes"], [enable_jp=""]
+)
+AM_CONDITIONAL([JAPANESE], [test -n "$enable_jp"])
+
+
+dnl hmmm...
+RM="rm -f"
+AC_SUBST(RM)
+CP="cp -f"
+AC_SUBST(CP)
+
+dnl these should be configurable someday...
+CDE_INSTALLATION_TOP="$ac_default_prefix"
+CDE_LOGFILES_TOP=/var/dt
+CDE_CONFIGURATION_TOP=/etc/dt
+CDE_USER_TOP=.dt
+
+AC_SUBST(CDE_INSTALLATION_TOP)
+AC_SUBST(CDE_CONFIGURATION_TOP)
+AC_SUBST(CDE_LOGFILES_TOP)
+AC_SUBST(CDE_USER_TOP)
+
+dnl This variable will contain a list of programs that were not found,
+dnl but are required to build CDE.  At the end, if the variable is
+dnl non-empty, an error message will be printed, listing the missing
+dnl programs.  We don't bother with the simple expected commands like
+dnl ln, cp, etc...
+
+MISSING_PROGS=""
+
+AC_PROG_CPP
+
+dnl we need a real preprocessor, not gcc -E.  We will call it GENCPP.
+dnl We will go with BSD's tradcpp here...  This is used for
+dnl pre-processing during building of CDE - in the way imake used to
+dnl do.  This is not a replacement for cpp, used at runtime by
+dnl software such as tt_type_comp.
+AC_SUBST(GENCPP, '$(top_builddir)/util/tradcpp/tradcpp')
+
+AM_PROG_LIBTOOL
+
+dnl make sure it's installed
+AC_PROG_YACC
+if test -z "$ac_cv_prog_YACC"; then
+   MISSING_PROGS="[bison or byacc] ${MISSING_PROGS}"
+fi
+
+AM_PROG_LEX
+if test -z "$ac_cv_prog_LEX"; then
+   MISSING_PROGS="[flex or lex] ${MISSING_PROGS}"
+fi
+
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_SED
+AC_PROG_AWK
+AC_PROG_GREP
+
+dnl AC_PROG_AR
+AC_PROG_RANLIB
+
+AC_C_CONST
+AC_C_BIGENDIAN
+AC_C_INLINE
+AC_C_CHAR_UNSIGNED
+AC_C_STRINGIZE
+AC_C_FLEXIBLE_ARRAY_MEMBER
+AC_SYS_POSIX_TERMIOS
+
+AX_PTHREAD
+
+AC_PROG_CC_C99
+
+AC_PATH_X
+AC_PATH_XTRA
+
+dnl Add X11 goodies here
+EXTRA_LIBS="${X_LIBS} ${EXTRA_LIBS}"
+EXTRA_INCS="${X_CFLAGS} ${EXTRA_INCS}"
+
+AC_FUNC_FORK
+
+dnl programs with full paths
+
+dnl - KSH, some systems call it as ksh93
+AC_PATH_PROG(KSH, ksh)
+if test -z "$ac_cv_path_KSH"; then
+   AC_PATH_PROG(KSH, ksh93)
+   if test -z "$ac_cv_path_KSH"; then
+      MISSING_PROGS="[ksh or ksh93] ${MISSING_PROGS}"
+   fi
+fi
+
+AC_PATH_PROG(XRDB, xrdb)
+if test -z "$ac_cv_path_XRDB"; then
+   MISSING_PROGS="xrdb ${MISSING_PROGS}"
+fi
+
+dnl we need to use cpp for some things, like tooltalk and other
+dnl runtime uses.  So look for the system's cpp.  NOTE: this is NOT
+dnl the CPP (gcc -E) set by AC_PROG_CPP.  At this point I don't know
+dnl if we should even bother looking for that as we can't really use
+dnl it.
+AC_PATH_PROG(CPP_PROGRAM, cpp, ,
+       [/lib:/usr/bin:/usr/ccs/lib/:/usr/lib:/usr/libexec:/opt/langtools/lbin:$PATH])
+if test -z "$ac_cv_path_CPP_PROGRAM"; then
+   MISSING_PROGS="cpp ${MISSING_PROGS}"
+fi
+
+dnl major external program dependencies
+AC_CHECK_PROGS(BDFTOPCF, bdftopcf)
+if test -z "$ac_cv_prog_BDFTOPCF"; then
+   MISSING_PROGS="bdftopcf ${MISSING_PROGS}"
+fi
+AC_CHECK_PROGS(MKFONTDIR, mkfontdir)
+if test -z "$ac_cv_prog_MKFONTDIR"; then
+   MISSING_PROGS="mkfontdir ${MISSING_PROGS}"
+fi
+AC_CHECK_PROGS(GZIP, gzip)
+if test -z "$ac_cv_prog_GZIP"; then
+   MISSING_PROGS="gzip ${MISSING_PROGS}"
+fi
+AC_CHECK_PROGS(M4, m4)
+if test -z "$ac_cv_prog_M4"; then
+   MISSING_PROGS="m4 ${MISSING_PROGS}"
+fi
+AC_CHECK_PROGS(RPCGEN, rpcgen)
+if test -z "$ac_cv_prog_RPCGEN"; then
+   MISSING_PROGS="rpcgen ${MISSING_PROGS}"
+fi
+AC_CHECK_PROGS(GENCAT, gencat)
+if test -z "$ac_cv_prog_GENCAT"; then
+   MISSING_PROGS="gencat ${MISSING_PROGS}"
+fi
+
+dnl headers
+AC_HEADER_STDC
+AC_CHECK_HEADERS([locale.h])
+
+dnl libraries
+AC_CHECK_LIB(m, cosf)
+AC_CHECK_LIB(crypt, crypt)
+dnl this should be configurable, for now it is required
+AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
+                [SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DUSE_XINERAMA"],
+                [AC_MSG_ERROR([libXinerama not found])], $X_LIBS)
+
+dnl Special check for tirpc...
+AC_CHECK_LIB(tirpc, svc_register,
+      [CFLAGS="${CFLAGS} -DOPT_TIRPC -I/usr/include/tirpc";
+       CXXFLAGS="${CXXFLAGS} -DOPT_TIRPC -I/usr/include/tirpc";
+       TIRPCLIB=-ltirpc])
+AC_SUBST(TIRPCLIB)
+
+dnl jpeg
+AC_CHECK_LIB(jpeg, jpeg_read_header, [JPEGLIB="-ljpeg"],
+             [AC_MSG_ERROR([libjpeg not found, please install it])],
+             [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_SUBST(JPEGLIB)
+
+dnl Setup XTOOLLIB - we do it in this specific order to avoid ordering
+dnl issues
+XTOOLLIB=""
+AC_CHECK_LIB(X11, XOpenDisplay, [XTOOLLIB="-lX11"], ,
+                  [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_CHECK_LIB(Xau, XauReadAuth, [XTOOLLIB="-lXau ${XTOOLLIB}"], ,
+                  [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_CHECK_LIB(Xt, XtInitialize, [XTOOLLIB="-lXt ${XTOOLLIB}"], ,
+                 [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"], ,
+                  [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"], ,
+                 [${EXTRA_INCS} ${EXTRA_LIBS}])
+AC_CHECK_LIB(Xm, XmTextSetString, [XTOOLLIB="-lXm ${XTOOLLIB}"], ,
+                 [${EXTRA_INCS} ${EXTRA_LIBS}])
+
+XTOOLLIB="${EXTRA_INCS} ${EXTRA_LIBS} ${X_EXTRA_LIBS} ${XTOOLLIB}"
+AC_SUBST([XTOOLLIB])
+
+dnl Check for freetype libraries/headers
+AC_CHECK_TOOLS([FREETYPE_CONFIG], [freetype-config])
+if test -z "$FREETYPE_CONFIG"; then
+  dnl freetype-config not available try pkg-config
+
+  AC_CHECK_TOOLS([FREETYPE_CONFIG], [pkg-config])
+  if test -z "$FREETYPE_CONFIG"; then
+    AC_MSG_ERROR([Missing freetype-config or pkg-config. Install freetype development headers and library.])
+  fi
+
+  dnl check specific package is available
+  PKG_CHECK_MODULES([FREETYPE_CHECK], [freetype2])
+
+  FREETYPE_CFLAGS=`$FREETYPE_CONFIG freetype2 --cflags`
+  AC_SUBST(FREETYPE_CFLAGS)
+  FREETYPE_LIBS=`$FREETYPE_CONFIG freetype2 --libs`
+  AC_SUBST(FREETYPE_LIBS)
+else
+  dnl freetype-config is available
+
+  FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
+  AC_SUBST(FREETYPE_CFLAGS)
+  FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
+  AC_SUBST(FREETYPE_LIBS)
+fi
+
+dnl check MISSING_PROGS - error out here if there's stuff in it.
+
+if test -n "$MISSING_PROGS"; then
+   AC_MSG_ERROR([Please install the following REQUIRED programs: ${MISSING_PROGS}])
+fi
+
+
+
+dnl set CPPFLAGS, CFLAGS, and CXXFLAGS.
+dnl The Autoconf manual says that these are user variables and
+dnl shouldn't be modified.  It suggests that you create a special
+dnl variable and presumably add those to your Makefile.am files.  We
+dnl have 192 of these currently, so... The user will just have to
+dnl deal, or modify them here directly.
+CPPFLAGS="${CPPFLAGS} ${SOURCE_CPP_DEFINES} ${CPP_COMPILER_FLAGS} ${OSVERSION}"
+CFLAGS="${CFLAGS} ${C_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}"
+CXXFLAGS="${CXXFLAGS} ${CXX_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}"
+LIBS="${EXTRA_LIBS} ${LIBS} ${PTHREAD_LIBS}"
+
+dnl All of the makefiles we need to generate go here...
+AC_CONFIG_FILES([
+Makefile
+
+util/Makefile
+util/tradcpp/Makefile
+
+lib/Makefile
+
+lib/DtXinerama/Makefile
+
+lib/tt/Makefile
+lib/tt/mini_isam/Makefile
+lib/tt/slib/Makefile
+lib/tt/lib/Makefile
+lib/tt/lib/api/Makefile
+lib/tt/lib/api/dnd/Makefile
+lib/tt/lib/api/c/Makefile
+lib/tt/lib/tttk/Makefile
+lib/tt/lib/db/Makefile
+lib/tt/lib/mp/Makefile
+lib/tt/lib/util/Makefile
+lib/tt/bin/Makefile
+lib/tt/bin/shell/Makefile
+lib/tt/bin/ttauth/Makefile
+lib/tt/bin/scripts/Makefile
+lib/tt/bin/tttar/Makefile
+lib/tt/bin/tt_type_comp/Makefile
+lib/tt/bin/tttrace/Makefile
+lib/tt/bin/dbck/Makefile
+lib/tt/bin/ttdbserverd/Makefile
+lib/tt/bin/ttsession/Makefile
+
+lib/DtSvc/Makefile
+
+lib/DtSearch/Makefile
+lib/DtSearch/raima/Makefile
+
+lib/DtWidget/Makefile
+
+lib/DtHelp/Makefile
+lib/DtHelp/il/Makefile
+
+lib/DtPrint/Makefile
+
+lib/DtTerm/Term/Makefile
+lib/DtTerm/Makefile
+lib/DtTerm/TermView/Makefile
+lib/DtTerm/util/Makefile
+lib/DtTerm/TermPrim/Makefile
+
+lib/DtMrm/Makefile
+
+lib/csa/Makefile
+
+programs/Makefile
+
+programs/backdrops/Makefile
+
+programs/palettes/Makefile
+
+programs/icons/Makefile
+
+programs/dsdm/Makefile
+
+programs/dtmail/Makefile
+programs/dtmail/dtmail/Makefile
+programs/dtmail/MotifApp/Makefile
+programs/dtmail/dtmailpr/Makefile
+programs/dtmail/libDtMail/Makefile
+programs/dtmail/libDtMail/RFC/Makefile
+programs/dtmail/libDtMail/Common/Makefile
+
+programs/dtpad/Makefile
+
+programs/dtfile/Makefile
+programs/dtfile/dtcopy/Makefile
+
+programs/dtwm/Makefile
+
+programs/dtlogin/Makefile
+programs/dtlogin/config/Makefile
+
+programs/dtsession/Makefile
+
+programs/dthello/Makefile
+
+programs/dtstyle/Makefile
+
+programs/dtexec/Makefile
+
+programs/dtdbcache/Makefile
+
+programs/dticon/Makefile
+
+programs/dtterm/Makefile
+
+programs/dtcalc/Makefile
+
+programs/dtaction/Makefile
+
+programs/dtspcd/Makefile
+
+programs/dtscreen/Makefile
+
+programs/dtcm/Makefile
+programs/dtcm/libDtCmP/Makefile
+programs/dtcm/server/Makefile
+programs/dtcm/dtcm/Makefile
+
+programs/dtsearchpath/Makefile
+programs/dtsearchpath/libCliSrv/Makefile
+programs/dtsearchpath/dtsp/Makefile
+programs/dtsearchpath/dtappg/Makefile
+
+programs/dtappintegrate/Makefile
+
+programs/dtprintegrate/Makefile
+
+programs/dtconfig/Makefile
+programs/dtconfig/sun/Makefile
+
+programs/dtcreate/Makefile
+
+programs/dtprintinfo/Makefile
+
+programs/fontaliases/Makefile
+programs/fontaliases/bdf/Makefile
+programs/fontaliases/linux/Makefile
+programs/fontaliases/linux/C/Makefile
+programs/fontaliases/linux/en_US.UTF-8/Makefile
+programs/fontaliases/sun/Makefile
+programs/fontaliases/sun/C/Makefile
+programs/fontaliases/netbsd/Makefile
+programs/fontaliases/netbsd/C/Makefile
+programs/fontaliases/openbsd/Makefile
+programs/fontaliases/openbsd/C/Makefile
+programs/fontaliases/freebsd/Makefile
+programs/fontaliases/freebsd/C/Makefile
+
+programs/dtdspmsg/Makefile
+
+programs/dtimsstart/Makefile
+
+programs/dtpdm/Makefile
+
+programs/dtsr/Makefile
+
+programs/dtpdmd/Makefile
+
+programs/types/Makefile
+
+programs/tttypes/Makefile
+
+programs/util/Makefile
+programs/util/dttypes/Makefile
+
+programs/dtopen/Makefile
+
+programs/localized/Makefile
+programs/localized/util/Makefile
+programs/localized/C/Makefile
+programs/localized/C/app-defaults/Makefile
+programs/localized/C/config/Makefile
+programs/localized/C/backdrops/Makefile
+programs/localized/C/types/Makefile
+programs/localized/C/palettes/Makefile
+programs/localized/C/msg/Makefile
+programs/localized/de_DE.UTF-8/Makefile
+programs/localized/de_DE.UTF-8/app-defaults/Makefile
+programs/localized/de_DE.UTF-8/config/Makefile
+programs/localized/de_DE.UTF-8/backdrops/Makefile
+programs/localized/de_DE.UTF-8/types/Makefile
+programs/localized/de_DE.UTF-8/palettes/Makefile
+programs/localized/de_DE.UTF-8/msg/Makefile
+programs/localized/fr_FR.UTF-8/Makefile
+programs/localized/fr_FR.UTF-8/app-defaults/Makefile
+programs/localized/fr_FR.UTF-8/config/Makefile
+programs/localized/fr_FR.UTF-8/backdrops/Makefile
+programs/localized/fr_FR.UTF-8/types/Makefile
+programs/localized/fr_FR.UTF-8/palettes/Makefile
+programs/localized/fr_FR.UTF-8/msg/Makefile
+programs/localized/it_IT.UTF-8/Makefile
+programs/localized/it_IT.UTF-8/app-defaults/Makefile
+programs/localized/it_IT.UTF-8/config/Makefile
+programs/localized/it_IT.UTF-8/backdrops/Makefile
+programs/localized/it_IT.UTF-8/types/Makefile
+programs/localized/it_IT.UTF-8/palettes/Makefile
+programs/localized/it_IT.UTF-8/msg/Makefile
+programs/localized/es_ES.UTF-8/Makefile
+programs/localized/es_ES.UTF-8/app-defaults/Makefile
+programs/localized/es_ES.UTF-8/config/Makefile
+programs/localized/es_ES.UTF-8/backdrops/Makefile
+programs/localized/es_ES.UTF-8/types/Makefile
+programs/localized/es_ES.UTF-8/palettes/Makefile
+programs/localized/es_ES.UTF-8/msg/Makefile
+
+])
+
+AC_OUTPUT
+
+dnl not currently building
+dnl programs/dthelp/Makefile
+dnl programs/dthelp/dthelpgen/Makefile
+dnl programs/dthelp/dthelpprint/Makefile
+dnl programs/dthelp/parser/pass1/helptag/Makefile
+dnl programs/dthelp/parser/pass1/Makefile
+dnl programs/dthelp/parser/pass1/eltdef/Makefile
+dnl programs/dthelp/parser/pass1/build/Makefile
+dnl programs/dthelp/parser/Makefile
+dnl programs/dthelp/parser/canon1/Makefile
+dnl programs/dthelp/parser/pass2/Makefile
+dnl programs/dthelp/dthelpview/Makefile
diff --git a/cde/doc/C/Makefile.am b/cde/doc/C/Makefile.am
new file mode 100644 (file)
index 0000000..cb47bbf
--- /dev/null
@@ -0,0 +1,13 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+all:
+       $(MKDIR_P) help-sdl
+       $(MKDIR_P) cde.dti
+       $(MKDIR_P) m-guides/common
+       $(LN_S) ../../guides/common/ManLinksMotif.sgm \
+       m-guides/common/ManLinks.sgm
+
+SUBDIRS = man guides help
+
+clean::
+        $(RM) -r help-sdl cde.dti
diff --git a/cde/doc/C/help/Makefile.am b/cde/doc/C/help/Makefile.am
new file mode 100644 (file)
index 0000000..dec84f4
--- /dev/null
@@ -0,0 +1,20 @@
+include ../../../programs/localized/templates/C.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/AppBuilder.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/C/man/Makefile.am b/cde/doc/C/man/Makefile.am
new file mode 100644 (file)
index 0000000..4f9f45a
--- /dev/null
@@ -0,0 +1,2843 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+DBTOMAN = $(srcdir)/doc/util/dbtoman/dbtoman
+DBENVSETUP = CDETOP=$(srcdir)
+
+ALLFILES = man1/dsdm.1 man1/dtaction.1 man1/dtappgather.1 \
+          man1/dtappintegrate.1 man1/dtbuilder.1 man1/dtcalc.1 \
+          man1/dtchooser.1 man1/dtcm.1 man1/dtcm_delete.1 man1/dtcm_editor.1 \
+          man1/dtcm_insert.1 man1/dtcm_lookup.1 man1/dtcodegen.1 \
+          man1/dtconfig.1 man1/dtconvertvf.1 man1/dtcreate.1 man1/dtdocbook.1 \
+          man1/dtexec.1 man1/dtfile.1 man1/dtfile_copy.1 man1/dtfile_error.1 \
+          man1/dtfplist.1 man1/dtgreet.1 man1/dthello.1 man1/dthelp_ctag1.1 \
+          man1/dthelp_htag1.1 man1/dthelp_htag2.1 man1/dthelpgen.1 \
+          man1/dthelpprint.1 man1/dthelptag.1 man1/dthelpview.1 man1/dticon.1 \
+          man1/dtimsstart.1 man1/dtinfo.1 man1/dtinfogen.1 man1/dtksh.1 \
+          man1/dtlogin.1 man1/dtlp.1 man1/dtmail.1 man1/dtmailpr.1 \
+          man1/dtpad.1 man1/dtpdm.1 man1/dtpdmd.1 man1/dtprintinfo.1 \
+          man1/dtscreen.1 man1/dtsearchpath.1 man1/dtsession.1 \
+          man1/dtsession_res.1 man1/dtsrcreate.1 man1/dtsrdbrec.1 \
+          man1/dtsrhan.1 man1/dtsrindex.1 man1/dtsrkdump.1 man1/dtsrload.1 \
+          man1/dtstyle.1 man1/dtterm.1 man1/dttypes.1 man1/dtudcexch.1 \
+          man1/dtudcfonted.1 man1/dtwm.1 man1/huffcode.1 man1/ksh.1 \
+          man1/tt_type_comp.1 man1/ttcp.1 man1/ttmv.1 man1/ttrm.1 \
+          man1/ttrmdir.1 man1/ttsession.1 man1/tttar.1 man1/tttrace.1 \
+          man1m/dtspcd.1m man1m/rpc.cmsd.1m man1m/ttdbck.1m \
+          man1m/ttdbserver.1m man1m/ttdbserverd.1m \
+          man3/DtActionCallbackProc.3 man3/DtActionDescription.3 \
+          man3/DtActionExists.3 man3/DtActionIcon.3 man3/DtActionInvoke.3 \
+          man3/DtActionLabel.3 man3/DtAppInitialize.3 man3/DtInitialize.3 \
+          man3/DtComboBox.3 man3/DtComboBoxAddItem.3 \
+          man3/DtComboBoxDeletePos.3 man3/DtComboBoxSelectItem.3 \
+          man3/DtComboBoxSetItem.3 man3/DtCreateComboBox.3 \
+          man3/DtCreateEditor.3 man3/DtCreateHelpDialog.3 \
+          man3/DtCreateHelpQuickDialog.3 man3/DtCreateMenuButton.3 \
+          man3/DtCreatePrintSetupBox.3 man3/DtCreatePrintSetupDialog.3 \
+          man3/DtCreateSpinBox.3 man3/DtCreateTerm.3 man3/DtDbLoad.3 \
+          man3/DtDbReloadNotify.3 man3/DtDndCreateSourceIcon.3 \
+          man3/DtDndDragStart.3 man3/DtDndVaDragStart.3 \
+          man3/DtDndDropRegister.3 man3/DtDndVaDropRegister.3 \
+          man3/DtDndDropUnregister.3 man3/DtDtsBufferToAttributeList.3 \
+          man3/DtDtsBufferToAttributeValue.3 man3/DtDtsBufferToDataType.3 \
+          man3/DtDtsDataToDataType.3 man3/DtDtsDataTypeIsAction.3 \
+          man3/DtDtsDataTypeNames.3 man3/DtDtsDataTypeToAttributeList.3 \
+          man3/DtDtsDataTypeToAttributeValue.3 \
+          man3/DtDtsFileToAttributeList.3 man3/DtDtsFileToAttributeValue.3 \
+          man3/DtDtsFileToDataType.3 man3/DtDtsFindAttribute.3 \
+          man3/DtDtsFreeAttributeList.3 man3/DtDtsFreeAttributeValue.3 \
+          man3/DtDtsFreeDataType.3 man3/DtDtsFreeDataTypeNames.3 \
+          man3/DtDtsIsTrue.3 man3/DtDtsLoadDataTypes.3 man3/DtDtsRelease.3 \
+          man3/DtDtsSetDataType.3 man3/DtEditor.3 man3/DtEditorAppend.3 \
+          man3/DtEditorAppendFromFile.3 man3/DtEditorChange.3 \
+          man3/DtEditorCheckForUnsavedChanges.3 man3/DtEditorClearSelection.3 \
+          man3/DtEditorCopyToClipboard.3 man3/DtEditorCutToClipboard.3 \
+          man3/DtEditorDeleteSelection.3 man3/DtEditorDeselect.3 \
+          man3/DtEditorDisableRedisplay.3 man3/DtEditorEnableRedisplay.3 \
+          man3/DtEditorFind.3 man3/DtEditorFormat.3 \
+          man3/DtEditorGetContents.3 man3/DtEditorGetInsertionPosition.3 \
+          man3/DtEditorGetLastPosition.3 man3/DtEditorGetMessageTextFieldID.3 \
+          man3/DtEditorGetSizeHints.3 man3/DtEditorGoToLine.3 \
+          man3/DtEditorInsert.3 man3/DtEditorInsertFromFile.3 \
+          man3/DtEditorInvokeFindChangeDialog.3 \
+          man3/DtEditorInvokeFormatDialog.3 man3/DtEditorInvokeSpellDialog.3 \
+          man3/DtEditorPasteFromClipboard.3 man3/DtEditorReplace.3 \
+          man3/DtEditorReplaceFromFile.3 man3/DtEditorReset.3 \
+          man3/DtEditorSaveContentsToFile.3 man3/DtEditorSelectAll.3 \
+          man3/DtEditorSetContents.3 man3/DtEditorSetContentsFromFile.3 \
+          man3/DtEditorSetInsertionPosition.3 man3/DtEditorTraverseToEditor.3 \
+          man3/DtEditorUndoEdit.3 man3/DtHelpDialog.3 \
+          man3/DtHelpQuickDialog.3 man3/DtHelpQuickDialogGetChild.3 \
+          man3/DtHelpReturnSelectedWidgetId.3 man3/DtHelpSetCatalogName.3 \
+          man3/DtInfoShowTopic.3 man3/DtMenuButton.3 \
+          man3/DtMmdbBookCaseFreeInfo.3 man3/DtMmdbBookCaseGetInfo.3 \
+          man3/DtMmdbBookGetLicense.3 man3/DtMmdbBookGetLongTitle.3 \
+          man3/DtMmdbBookGetSeqNum.3 man3/DtMmdbBookGetShortTitle.3 \
+          man3/DtMmdbBookGetTabList.3 man3/DtMmdbBookGetTocObjectId.3 \
+          man3/DtMmdbCloseInfoLib.3 man3/DtMmdbDlpGetNextSectionId.3 \
+          man3/DtMmdbDlpGetPrevSectionId.3 man3/DtMmdbFreeGraphicInfo.3 \
+          man3/DtMmdbFreeHandle.3 man3/DtMmdbFreeHandleList.3 \
+          man3/DtMmdbGetBookCaseByIndex.3 man3/DtMmdbGetBookCaseByLoc.3 \
+          man3/DtMmdbGetBookCaseByLocs.3 man3/DtMmdbGetBookCaseByName.3 \
+          man3/DtMmdbGraphicGetData.3 man3/DtMmdbGraphicGetInfo.3 \
+          man3/DtMmdbInfoLibFreeInfo.3 man3/DtMmdbInfoLibGetInfo.3 \
+          man3/DtMmdbInit.3 man3/DtMmdbLocatorGetSectionLoc.3 \
+          man3/DtMmdbLocatorGetSectionObjectId.3 man3/DtMmdbOpenInfoLib.3 \
+          man3/DtMmdbQuit.3 man3/DtMmdbSectionGetBookId.3 \
+          man3/DtMmdbSectionGetData.3 man3/DtMmdbSectionGetDataSize.3 \
+          man3/DtMmdbSectionGetLoc.3 man3/DtMmdbSectionGetLongTitle.3 \
+          man3/DtMmdbSectionGetShortTitle.3 \
+          man3/DtMmdbSectionGetStyleSheetId.3 man3/DtMmdbSectionGetTocLoc.3 \
+          man3/DtMmdbStylesheetGetData.3 man3/DtMmdbStylesheetGetName.3 \
+          man3/DtMmdbTocGetChildIds.3 man3/DtMmdbTocGetNumOfChildren.3 \
+          man3/DtMmdbTocGetParentId.3 man3/DtMrmInitialize.3 \
+          man3/DtMsgLogMessage.3 man3/DtMsgLogOpenFile.3 \
+          man3/DtMsgLogSetHandler.3 man3/DtPrintCopySetupData.3 \
+          man3/DtPrintFillSetupData.3 man3/DtPrintFreeSetupData.3 \
+          man3/DtPrintResetConnection.3 man3/DtPrintSetupBox.3 \
+          man3/DtPrintSetupProc.3 man3/DtSaverGetWindows.3 \
+          man3/DtSearchExit.3 man3/DtSearchFreeResults.3 \
+          man3/DtSearchGetKeytypes.3 man3/DtSearchGetMaxResults.3 \
+          man3/DtSearchHighlight.3 man3/DtSearchInit.3 \
+          man3/DtSearchMergeResults.3 man3/DtSearchHasMessages.3 \
+          man3/DtSearchAddMessage.3 man3/DtSearchFreeMessages.3 \
+          man3/DtSearchGetMessages.3 man3/DtSearchQuery.3 \
+          man3/DtSearchReinit.3 man3/DtSearchRetrieve.3 \
+          man3/DtSearchSetMaxResults.3 man3/DtSearchSortResults.3 \
+          man3/DtSearchValidDateString.3 man3/DtSessionRestorePath.3 \
+          man3/DtSessionSavePath.3 man3/DtSpinBox.3 man3/DtSpinBoxAddItem.3 \
+          man3/DtSpinBoxDeletePos.3 man3/DtSpinBoxSetItem.3 man3/DtSrAPI.3 \
+          man3/DtTerm.3 man3/DtTermDisplaySend.3 man3/DtTermInitialize.3 \
+          man3/DtTermSubprocReap.3 man3/DtTermSubprocSend.3 \
+          man3/DtWsmAddCurrentWorkspaceCallback.3 man3/DtWsmAddWorkspace.3 \
+          man3/DtWsmAddWorkspaceFunctions.3 \
+          man3/DtWsmAddWorkspaceModifiedCallback.3 man3/DtWsmChangeBackdrop.3 \
+          man3/DtWsmDeleteWorkspace.3 man3/DtWsmFreeWorkspaceInfo.3 \
+          man3/DtWsmGetCurrentBackdropWindow.3 \
+          man3/DtWsmGetCurrentWorkspace.3 man3/DtWsmGetWorkspaceInfo.3 \
+          man3/DtWsmGetWorkspaceList.3 man3/DtWsmGetWorkspacesOccupied.3 \
+          man3/DtWsmOccupyAllWorkspaces.3 man3/DtWsmRemoveWorkspaceCallback.3 \
+          man3/DtWsmRemoveWorkspaceFunctions.3 \
+          man3/DtWsmSetCurrentWorkspace.3 man3/DtWsmSetWorkspacesOccupied.3 \
+          man3/DtWsmSetWorkspaceTitle.3 man3/csa_add_calendar.3 \
+          man3/csa_add_entry.3 man3/csa_call_callbacks.3 \
+          man3/csa_delete_calendar.3 man3/csa_delete_entry.3 man3/csa_free.3 \
+          man3/csa_free_time_search.3 man3/csa_list_calendar_attributes.3 \
+          man3/csa_list_calendars.3 man3/csa_list_entries.3 \
+          man3/csa_list_entry_attributes.3 man3/csa_list_entry_sequence.3 \
+          man3/csa_logoff.3 man3/csa_logon.3 man3/csa_look_up.3 \
+          man3/csa_query_configuration.3 man3/csa_read_calendar_attributes.3 \
+          man3/csa_read_entry_attributes.3 man3/csa_read_next_reminder.3 \
+          man3/csa_register_callback.3 man3/csa_restore.3 man3/csa_save.3 \
+          man3/csa_unregister_callback.3 \
+          man3/csa_update_calendar_attributes.3 \
+          man3/csa_update_entry_attributes.3 man3/csa_x_process_updates.3 \
+          man3/tt_X_session.3 man3/tt_bcontext_join.3 man3/tt_bcontext_quit.3 \
+          man3/tt_close.3 man3/tt_context_join.3 man3/tt_context_quit.3 \
+          man3/tt_default_file.3 man3/tt_default_file_set.3 \
+          man3/tt_default_procid.3 man3/tt_default_procid_set.3 \
+          man3/tt_default_ptype.3 man3/tt_default_ptype_set.3 \
+          man3/tt_default_session.3 man3/tt_default_session_set.3 \
+          man3/tt_error.3 man3/tt_error_int.3 man3/tt_error_pointer.3 \
+          man3/tt_fd.3 man3/tt_feature_enabled.3 man3/tt_feature_required.3 \
+          man3/tt_file_copy.3 man3/tt_file_destroy.3 man3/tt_file_join.3 \
+          man3/tt_file_move.3 man3/tt_file_netfile.3 \
+          man3/tt_file_objects_query.3 man3/tt_file_quit.3 man3/tt_free.3 \
+          man3/tt_host_file_netfile.3 man3/tt_host_netfile_file.3 \
+          man3/tt_icontext_join.3 man3/tt_icontext_quit.3 \
+          man3/tt_initial_session.3 man3/tt_int_error.3 man3/tt_is_err.3 \
+          man3/tt_malloc.3 man3/tt_mark.3 man3/tt_message_abstainer.3 \
+          man3/tt_message_abstainers_count.3 man3/tt_message_accept.3 \
+          man3/tt_message_accepter.3 man3/tt_message_accepters_count.3 \
+          man3/tt_message_address.3 man3/tt_message_address_set.3 \
+          man3/tt_message_arg_add.3 man3/tt_message_arg_bval.3 \
+          man3/tt_message_arg_bval_set.3 man3/tt_message_arg_ival.3 \
+          man3/tt_message_arg_ival_set.3 man3/tt_message_arg_mode.3 \
+          man3/tt_message_arg_type.3 man3/tt_message_arg_val.3 \
+          man3/tt_message_arg_val_set.3 man3/tt_message_arg_xval.3 \
+          man3/tt_message_arg_xval_set.3 man3/tt_message_args_count.3 \
+          man3/tt_message_barg_add.3 man3/tt_message_bcontext_set.3 \
+          man3/tt_message_callback_add.3 man3/tt_message_class.3 \
+          man3/tt_message_class_set.3 man3/tt_message_context_bval.3 \
+          man3/tt_message_context_ival.3 man3/tt_message_context_set.3 \
+          man3/tt_message_context_slotname.3 man3/tt_message_context_val.3 \
+          man3/tt_message_context_xval.3 man3/tt_message_contexts_count.3 \
+          man3/tt_message_create.3 man3/tt_message_create_super.3 \
+          man3/tt_message_destroy.3 man3/tt_message_disposition.3 \
+          man3/tt_message_disposition_set.3 man3/tt_message_fail.3 \
+          man3/tt_message_file.3 man3/tt_message_file_set.3 \
+          man3/tt_message_gid.3 man3/tt_message_handler.3 \
+          man3/tt_message_handler_ptype.3 man3/tt_message_handler_ptype_set.3 \
+          man3/tt_message_handler_set.3 man3/tt_message_iarg_add.3 \
+          man3/tt_message_icontext_set.3 man3/tt_message_id.3 \
+          man3/tt_message_object.3 man3/tt_message_object_set.3 \
+          man3/tt_message_op.3 man3/tt_message_op_set.3 \
+          man3/tt_message_opnum.3 man3/tt_message_otype.3 \
+          man3/tt_message_otype_set.3 man3/tt_message_pattern.3 \
+          man3/tt_message_print.3 man3/tt_message_receive.3 \
+          man3/tt_message_reject.3 man3/tt_message_rejecter.3 \
+          man3/tt_message_rejecters_count.3 man3/tt_message_reply.3 \
+          man3/tt_message_scope.3 man3/tt_message_scope_set.3 \
+          man3/tt_message_send.3 man3/tt_message_send_on_exit.3 \
+          man3/tt_message_sender.3 man3/tt_message_sender_ptype.3 \
+          man3/tt_message_sender_ptype_set.3 man3/tt_message_session.3 \
+          man3/tt_message_session_set.3 man3/tt_message_state.3 \
+          man3/tt_message_status.3 man3/tt_message_status_set.3 \
+          man3/tt_message_status_string.3 man3/tt_message_status_string_set.3 \
+          man3/tt_message_uid.3 man3/tt_message_user.3 \
+          man3/tt_message_user_set.3 man3/tt_message_xarg_add.3 \
+          man3/tt_message_xcontext_set.3 man3/tt_netfile_file.3 \
+          man3/tt_objid_equal.3 man3/tt_objid_objkey.3 \
+          man3/tt_onotice_create.3 man3/tt_open.3 man3/tt_orequest_create.3 \
+          man3/tt_otype_base.3 man3/tt_otype_derived.3 \
+          man3/tt_otype_deriveds_count.3 man3/tt_otype_hsig_arg_mode.3 \
+          man3/tt_otype_hsig_arg_type.3 man3/tt_otype_hsig_args_count.3 \
+          man3/tt_otype_hsig_count.3 man3/tt_otype_hsig_op.3 \
+          man3/tt_otype_is_derived.3 man3/tt_otype_opnum_callback_add.3 \
+          man3/tt_otype_osig_arg_mode.3 man3/tt_otype_osig_arg_type.3 \
+          man3/tt_otype_osig_args_count.3 man3/tt_otype_osig_count.3 \
+          man3/tt_otype_osig_op.3 man3/tt_pattern_address_add.3 \
+          man3/tt_pattern_arg_add.3 man3/tt_pattern_barg_add.3 \
+          man3/tt_pattern_bcontext_add.3 man3/tt_pattern_callback_add.3 \
+          man3/tt_pattern_category.3 man3/tt_pattern_category_set.3 \
+          man3/tt_pattern_class_add.3 man3/tt_pattern_context_add.3 \
+          man3/tt_pattern_create.3 man3/tt_pattern_destroy.3 \
+          man3/tt_pattern_disposition_add.3 man3/tt_pattern_file_add.3 \
+          man3/tt_pattern_iarg_add.3 man3/tt_pattern_icontext_add.3 \
+          man3/tt_pattern_object_add.3 man3/tt_pattern_op_add.3 \
+          man3/tt_pattern_opnum_add.3 man3/tt_pattern_otype_add.3 \
+          man3/tt_pattern_print.3 man3/tt_pattern_register.3 \
+          man3/tt_pattern_scope_add.3 man3/tt_pattern_sender_add.3 \
+          man3/tt_pattern_sender_ptype_add.3 man3/tt_pattern_session_add.3 \
+          man3/tt_pattern_state_add.3 man3/tt_pattern_unregister.3 \
+          man3/tt_pattern_user.3 man3/tt_pattern_user_set.3 \
+          man3/tt_pattern_xarg_add.3 man3/tt_pattern_xcontext_add.3 \
+          man3/tt_pnotice_create.3 man3/tt_pointer_error.3 \
+          man3/tt_prequest_create.3 man3/tt_procid_session.3 \
+          man3/tt_ptr_error.3 man3/tt_ptype_declare.3 man3/tt_ptype_exists.3 \
+          man3/tt_ptype_opnum_callback_add.3 man3/tt_ptype_undeclare.3 \
+          man3/tt_release.3 man3/tt_session_bprop.3 \
+          man3/tt_session_bprop_add.3 man3/tt_session_bprop_set.3 \
+          man3/tt_session_join.3 man3/tt_session_prop.3 \
+          man3/tt_session_prop_add.3 man3/tt_session_prop_count.3 \
+          man3/tt_session_prop_set.3 man3/tt_session_propname.3 \
+          man3/tt_session_propnames_count.3 man3/tt_session_quit.3 \
+          man3/tt_session_types_load.3 man3/tt_spec_bprop.3 \
+          man3/tt_spec_bprop_add.3 man3/tt_spec_bprop_set.3 \
+          man3/tt_spec_create.3 man3/tt_spec_destroy.3 man3/tt_spec_file.3 \
+          man3/tt_spec_move.3 man3/tt_spec_prop.3 man3/tt_spec_prop_add.3 \
+          man3/tt_spec_prop_count.3 man3/tt_spec_prop_set.3 \
+          man3/tt_spec_propname.3 man3/tt_spec_propnames_count.3 \
+          man3/tt_spec_type.3 man3/tt_spec_type_set.3 man3/tt_spec_write.3 \
+          man3/tt_status_message.3 man3/tt_thread_procid.3 \
+          man3/tt_thread_procid_set.3 man3/tt_thread_session.3 \
+          man3/tt_thread_session_set.3 man3/tt_trace_control.3 \
+          man3/tt_xcontext_join.3 man3/tt_xcontext_quit.3 \
+          man3/ttdt_Get_Modified.3 man3/ttdt_Revert.3 man3/ttdt_Save.3 \
+          man3/ttdt_close.3 man3/ttdt_file_event.3 man3/ttdt_file_join.3 \
+          man3/ttdt_file_notice.3 man3/ttdt_file_quit.3 \
+          man3/ttdt_file_request.3 man3/ttdt_message_accept.3 \
+          man3/ttdt_open.3 man3/ttdt_sender_imprint_on.3 \
+          man3/ttdt_session_join.3 man3/ttdt_session_quit.3 \
+          man3/ttdt_subcontract_manage.3 man3/ttmedia_Deposit.3 \
+          man3/ttmedia_load.3 man3/ttmedia_load_reply.3 \
+          man3/ttmedia_ptype_declare.3 man3/tttk_Xt_input_handler.3 \
+          man3/tttk_block_while.3 man3/tttk_message_abandon.3 \
+          man3/tttk_message_create.3 man3/tttk_message_destroy.3 \
+          man3/tttk_message_fail.3 man3/tttk_message_reject.3 \
+          man3/tttk_op_string.3 man3/tttk_string_op.3 man4/BIL.4 \
+          man4/Deposit.4 man4/Display.4 man4/DtDndProtocol.4 \
+          man4/DtInfo_LoadInfoLib.4 man4/DtInfo_PrintInfoAtLoc.4 \
+          man4/DtInfo_Quit.4 man4/DtInfo_ShowInfoAtLoc.4 man4/Edit.4 \
+          man4/Get_Environment.4 man4/Get_Geometry.4 man4/Get_Iconified.4 \
+          man4/Get_Locale.4 man4/Get_Mapped.4 man4/Get_Modified.4 \
+          man4/Get_Situation.4 man4/Get_Status.4 man4/Get_Sysinfo.4 \
+          man4/Get_XInfo.4 man4/Instantiate.4 man4/Lower.4 man4/Mail.4 \
+          man4/Modified.4 man4/Pause.4 man4/Print.4 man4/Quit.4 man4/Raise.4 \
+          man4/Resume.4 man4/Revert.4 man4/Reverted.4 man4/Save.4 \
+          man4/Saved.4 man4/Set_Environment.4 man4/Set_Geometry.4 \
+          man4/Set_Iconified.4 man4/Set_Locale.4 man4/Set_Mapped.4 \
+          man4/Set_Situation.4 man4/Signal.4 man4/Started.4 man4/Status.4 \
+          man4/Stopped.4 man4/Translate.4 man4/dtactionfile.4 man4/dtbmfile.4 \
+          man4/dtcm_archive.4 man4/dtcm_entry.4 man4/dtdpfile.4 \
+          man4/dtdtfile.4 man4/dtdtsfile.4 man4/dtfile_config.4 \
+          man4/dtfpfile.4 man4/dthelptagdtd.4 man4/dthffile.4 \
+          man4/dticonfile.4 man4/dtlocator.4 man4/dtpmfile.4 \
+          man4/dtresourcesfile.4 man4/dtsdldtd.4 man4/dtsdlfile.4 \
+          man4/dtsessiondb.4 man4/dtsessionfile.4 man4/dtspcdenv.4 \
+          man4/dtsrdbfiles.4 man4/dtsrfzkfiles.4 man4/dtsrhanfile.4 \
+          man4/dtsrlangfiles.4 man4/dtsrocffile.4 man4/dtwmrc.4 \
+          man4/mt-libtt-intro.4 man4/startlog.4 man4/tttracefile.4 \
+          man5/Dt.5 man5/DtAction.5 man5/DtComboBox.5 man5/DtDnd.5 \
+          man5/DtDts.5 man5/DtEditor.5 man5/DtHelp.5 man5/DtHelpDialog.5 \
+          man5/DtHelpQuickD.5 man5/DtInfoLib.5 man5/DtMenuButton.5 \
+          man5/DtMmdbBookCase.5 man5/DtMmdbGraphicInfo.5 man5/DtMmdbHandle.5 \
+          man5/DtMmdbInfoLibInfo.5 man5/DtMmdbInfoRequest.5 man5/DtMrm.5 \
+          man5/DtMsgLog.5 man5/DtPrint.5 man5/DtSaver.5 man5/DtSearch.5 \
+          man5/DtSession.5 man5/DtSpinBox.5 man5/DtStdAppFontNames.5 \
+          man5/DtStdInterfaceFontNames.5 man5/DtTerm.5 man5/DtWsm.5 \
+          man5/Tttt_c.5 man5/Tttttk.5 man5/csacsa.5 man5/dtactionaction.5 \
+          man5/dtappaction.5 man5/dtbuilderaction.5 man5/dtcalcaction.5 \
+          man5/dtcalendaraction.5 man5/dtenvvar.5 man5/dtfileaction.5 \
+          man5/dtfilsys.5 man5/dthelpaction.5 man5/dticonaction.5 \
+          man5/dtimsstartaction.5 man5/dtinfoBookdtd.5 man5/dtinfoStyledtd.5 \
+          man5/dtinfoTOCdtd.5 man5/dtinfoaction.5 man5/dtinfoaf.5 \
+          man5/dtmailaction.5 man5/dtmanaction.5 man5/dtprintinfoaction.5 \
+          man5/dtsessionaction.5 man5/dtstyleaction.5 man5/dtterm.5 \
+          man5/dttermaction.5 man5/dttextaction.5 man5/dttrashaction.5 \
+          man6/ttsnoop.6
+
+dist_man_MANS = $(ALLFILES)
+
+all:: dirs $(ALLFILES)
+
+dirs::
+        @for flag in ${MAKEFLAGS} ''; do \
+          case "$$flag" in *=*) ;; *[i]*) set +e;; esac; done; \
+        for i in man1 man1m man3 man4 man5 man6; do if [ -d $(DESTDIR)$$i ]; then
+                set +x; else (set -x; $(MKDIR_P) $(DESTDIR)$$i); fi \
+        done
+
+clean::
+        $(RM) -r man1 man1m man3 man4 man5 man6
+
+# hack alert, automake has no macro functionality that I'm aware of, so we use
+# variables and includes to substitute former imake macros
+
+MANTARGET = man1/dsdm.1
+MANSRC = ../guides/man/man1/dsdm.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtaction.1
+MANSRC = ../guides/man/man1_dt/action.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtappgather.1
+MANSRC = ../guides/man/man1_dt/appgathe.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtappintegrate.1
+MANSRC = ../guides/man/man1_dt/appinteg.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtbuilder.1
+MANSRC = ../guides/man/man1_dt/builder.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcalc.1
+MANSRC = ../guides/man/man1_dt/calc.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtchooser.1
+MANSRC = ../guides/man/man1_dt/chooser.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcm.1
+MANSRC = ../guides/man/man1_dt/cm.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcm_delete.1
+MANSRC = ../guides/man/man1_dt/cm_delet.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcm_editor.1
+MANSRC = ../guides/man/man1_dt/cm_edito.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcm_insert.1
+MANSRC = ../guides/man/man1_dt/cm_inser.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcm_lookup.1
+MANSRC = ../guides/man/man1_dt/cm_looku.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcodegen.1
+MANSRC = ../guides/man/man1_dt/codegen.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtconfig.1
+MANSRC = ../guides/man/man1_dt/config.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtconvertvf.1
+MANSRC = ../guides/man/man1_dt/convertv.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtcreate.1
+MANSRC = ../guides/man/man1_dt/create.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtdocbook.1
+MANSRC = ../guides/man/man1_dt/docbook.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtexec.1
+MANSRC = ../guides/man/man1_dt/exec.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtfile.1
+MANSRC = ../guides/man/man1_dt/file.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtfile_copy.1
+MANSRC = ../guides/man/man1_dt/file_cop.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtfile_error.1
+MANSRC = ../guides/man/man1_dt/file_err.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtfplist.1
+MANSRC = ../guides/man/man1_dt/fplist.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtgreet.1
+MANSRC = ../guides/man/man1_dt/greet.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthello.1
+MANSRC = ../guides/man/man1_dt/hello.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelp_ctag1.1
+MANSRC = ../guides/man/man1_dt/he_ctag1.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelp_htag1.1
+MANSRC = ../guides/man/man1_dt/he_htag1.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelp_htag2.1
+MANSRC = ../guides/man/man1_dt/he_htag2.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelpgen.1
+MANSRC = ../guides/man/man1_dt/helpgen.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelpprint.1
+MANSRC = ../guides/man/man1_dt/helpprin.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelptag.1
+MANSRC = ../guides/man/man1_dt/helptag.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dthelpview.1
+MANSRC = ../guides/man/man1_dt/helpview.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dticon.1
+MANSRC = ../guides/man/man1_dt/icon.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtimsstart.1
+MANSRC = ../guides/man/man1_dt/imsstart.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtinfo.1
+MANSRC = ../guides/man/man1_dt/info.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtinfogen.1
+MANSRC = ../guides/man/man1_dt/infogen.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtksh.1
+MANSRC = ../guides/man/man1_dt/ksh.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtlogin.1
+MANSRC = ../guides/man/man1_dt/login.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtlp.1
+MANSRC = ../guides/man/man1_dt/lp.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtmail.1
+MANSRC = ../guides/man/man1_dt/mail.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtmailpr.1
+MANSRC = ../guides/man/man1_dt/mailpr.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtpad.1
+MANSRC = ../guides/man/man1_dt/pad.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtpdm.1
+MANSRC = ../guides/man/man1_dt/pdm.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtpdmd.1
+MANSRC = ../guides/man/man1_dt/pdmd.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtprintinfo.1
+MANSRC = ../guides/man/man1_dt/printinf.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtscreen.1
+MANSRC = ../guides/man/man1_dt/screen.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsearchpath.1
+MANSRC = ../guides/man/man1_dt/searchpa.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsession.1
+MANSRC = ../guides/man/man1_dt/session.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsession_res.1
+MANSRC = ../guides/man/man1_dt/sess_res.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrcreate.1
+MANSRC = ../guides/man/man1_dt/srcreate.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrdbrec.1
+MANSRC = ../guides/man/man1_dt/srdbrec.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrhan.1
+MANSRC = ../guides/man/man1_dt/srhan.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrindex.1
+MANSRC = ../guides/man/man1_dt/srindex.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrkdump.1
+MANSRC = ../guides/man/man1_dt/srkdump.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtsrload.1
+MANSRC = ../guides/man/man1_dt/srload.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtstyle.1
+MANSRC = ../guides/man/man1_dt/style.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtterm.1
+MANSRC = ../guides/man/man1_dt/term.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dttypes.1
+MANSRC = ../guides/man/man1_dt/types.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtudcexch.1
+MANSRC = ../guides/man/man1_dt/udcexch.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtudcfonted.1
+MANSRC = ../guides/man/man1_dt/udcfonte.sgm
+include manpage.tmpl
+
+MANTARGET = man1/dtwm.1
+MANSRC = ../guides/man/man1_dt/wm.sgm
+include manpage.tmpl
+
+MANTARGET = man1/huffcode.1
+MANSRC = ../guides/man/man1_dt/huffcode.sgm
+include manpage.tmpl
+
+MANTARGET = man1/ksh.1
+MANSRC = ../guides/man/man1/ksh93.sgm
+include manpage.tmpl
+
+MANTARGET = man1/tt_type_comp.1
+MANSRC = ../guides/man/man1/tt_typ_c.sgm,
+include manpage.tmpl
+
+MANTARGET = man1/ttcp.1
+MANSRC = ../guides/man/man1/ttcp.sgm
+include manpage.tmpl
+
+MANTARGET = man1/ttmv.1
+MANSRC = ../guides/man/man1/ttmv.sgm
+include manpage.tmpl
+
+MANTARGET = man1/ttrm.1
+MANSRC = ../guides/man/man1/ttrm.sgm
+include manpage.tmpl
+
+MANTARGET = man1/ttrmdir.1
+MANSRC = ../guides/man/man1/ttrmdir.sgm
+include manpage.tmpl
+
+MANTARGET = man1/ttsession.1
+MANSRC = ../guides/man/man1/ttsessio.sgm
+include manpage.tmpl
+
+MANTARGET = man1/tttar.1
+MANSRC = ../guides/man/man1/tttar.sgm
+include manpage.tmpl
+
+MANTARGET = man1/tttrace.1
+MANSRC = ../guides/man/man1/tttrace.sgm
+include manpage.tmpl
+
+MANTARGET = man1m/dtspcd.1m
+MANSRC = ../guides/man/man1m/dtspcd.sgm
+include manpage.tmpl
+
+MANTARGET = man1m/rpc.cmsd.1m
+MANSRC = ../guides/man/man1m/rpccmsd.sgm
+include manpage.tmpl
+
+MANTARGET = man1m/ttdbck.1m
+MANSRC = ../guides/man/man1m/ttdbck.sgm
+include manpage.tmpl
+
+MANTARGET = man1m/ttdbserver.1m
+MANSRC = ../guides/man/man1m/rpcttdbs.sgm
+include manpage.tmpl
+
+MANTARGET = man1m/ttdbserverd.1m
+MANSRC = ../guides/man/man1m/ttdbserv.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionCallbackProc.3
+MANSRC = ../guides/man/m3_Dt/ActionCa.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionDescription.3
+MANSRC = ../guides/man/m3_Dt/ActionDe.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionExists.3
+MANSRC = ../guides/man/m3_Dt/ActionEx.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionIcon.3
+MANSRC = ../guides/man/m3_Dt/ActionIc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionInvoke.3
+MANSRC = ../guides/man/m3_Dt/ActionIn.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtActionLabel.3
+MANSRC = ../guides/man/m3_Dt/ActionLa.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtAppInitialize.3
+MANSRC = ../guides/man/m3_Dt/Initiali.sgm
+include manpage.tmpl
+
+ALIASTARGET = man3/DtInitialize.3
+ALIASSRC = man3/DtAppInitialize.3
+include manalias.tmpl
+
+MANTARGET = man3/DtComboBox.3
+MANSRC = ../guides/man/m3_Dt/ComboBox.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtComboBoxAddItem.3
+MANSRC = ../guides/man/m3_Dt/ComboAdd.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtComboBoxDeletePos.3
+MANSRC = ../guides/man/m3_Dt/ComboDel.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtComboBoxSelectItem.3
+MANSRC = ../guides/man/m3_Dt/ComboSel.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtComboBoxSetItem.3
+MANSRC = ../guides/man/m3_Dt/ComboSet.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateComboBox.3
+MANSRC = ../guides/man/m3_Dt/CreCombo.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateEditor.3
+MANSRC = ../guides/man/m3_Dt/CreEdito.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateHelpDialog.3
+MANSRC = ../guides/man/m3_Dt/CreHelpD.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateHelpQuickDialog.3
+MANSRC = ../guides/man/m3_Dt/CreHelpQ.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateMenuButton.3
+MANSRC = ../guides/man/m3_Dt/CreMenuB.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreatePrintSetupBox.3
+MANSRC = ../guides/man/m3_Dt/CreatePr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreatePrintSetupDialog.3
+MANSRC = ../guides/man/m3_Dt/CrePrntD.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateSpinBox.3
+MANSRC = ../guides/man/m3_Dt/CreSpinB.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtCreateTerm.3
+MANSRC = ../guides/man/m3_Dt/CreTerm.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDbLoad.3
+MANSRC = ../guides/man/m3_Dt/DbLoad.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDbReloadNotify.3
+MANSRC = ../guides/man/m3_Dt/DbReload.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDndCreateSourceIcon.3
+MANSRC = ../guides/man/m3_Dt/DndCreSI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDndDragStart.3
+MANSRC = ../guides/man/m3_Dt/DndDragS.sgm
+include manpage.tmpl
+
+ALIASTARGET = man3/DtDndVaDragStart.3
+ALIASSRC = man3/DtDndDragStart.3
+include manalias.tmpl
+
+MANTARGET = man3/DtDndDropRegister.3
+MANSRC = ../guides/man/m3_Dt/DndDropR.sgm
+include manalias.tmpl
+
+ALIASTARGET = man3/DtDndVaDropRegister.3
+ALIASSRC = man3/DtDndDropRegister.3
+include manalias.tmpl
+
+MANTARGET = man3/DtDndDropUnregister.3
+MANSRC = ../guides/man/m3_Dt/DndDropU.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsBufferToAttributeList.3
+MANSRC = ../guides/man/m3_DtDts/BufToAtL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsBufferToAttributeValue.3
+MANSRC = ../guides/man/m3_DtDts/BufToAtV.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsBufferToDataType.3
+MANSRC = ../guides/man/m3_DtDts/BufToDaT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsDataToDataType.3
+MANSRC = ../guides/man/m3_DtDts/DatToDaT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsDataTypeIsAction.3
+MANSRC = ../guides/man/m3_DtDts/DaTIsAct.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsDataTypeNames.3
+MANSRC = ../guides/man/m3_DtDts/DaTNames.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsDataTypeToAttributeList.3
+MANSRC = ../guides/man/m3_DtDts/DaTToAtL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsDataTypeToAttributeValue.3
+MANSRC = ../guides/man/m3_DtDts/DaTToAtV.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFileToAttributeList.3
+MANSRC = ../guides/man/m3_DtDts/FilToAtL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFileToAttributeValue.3
+MANSRC = ../guides/man/m3_DtDts/FilToAtV.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFileToDataType.3
+MANSRC = ../guides/man/m3_DtDts/FilToDaT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFindAttribute.3
+MANSRC = ../guides/man/m3_DtDts/FindAttr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFreeAttributeList.3
+MANSRC = ../guides/man/m3_DtDts/FreeAtL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFreeAttributeValue.3
+MANSRC = ../guides/man/m3_DtDts/FreeAtV.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFreeDataType.3
+MANSRC = ../guides/man/m3_DtDts/FreeDaT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsFreeDataTypeNames.3
+MANSRC = ../guides/man/m3_DtDts/FreeDaTN.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsIsTrue.3
+MANSRC = ../guides/man/m3_DtDts/IsTrue.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsLoadDataTypes.3
+MANSRC = ../guides/man/m3_DtDts/LoadDaTs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsRelease.3
+MANSRC = ../guides/man/m3_DtDts/Release.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtDtsSetDataType.3
+MANSRC = ../guides/man/m3_DtDts/SetDaT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditor.3
+MANSRC = ../guides/man/m3_Dt/Editor.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorAppend.3
+MANSRC = ../guides/man/m3_Dt/EdAppend.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorAppendFromFile.3
+MANSRC = ../guides/man/m3_Dt/EdAppFF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorChange.3
+MANSRC = ../guides/man/m3_Dt/EdChange.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorCheckForUnsavedChanges.3
+MANSRC = ../guides/man/m3_Dt/EdCheckF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorClearSelection.3
+MANSRC = ../guides/man/m3_Dt/EdClearS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorCopyToClipboard.3
+MANSRC = ../guides/man/m3_Dt/EdCopyTo.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorCutToClipboard.3
+MANSRC = ../guides/man/m3_Dt/EdCutToC.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorDeleteSelection.3
+MANSRC = ../guides/man/m3_Dt/EdDelete.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorDeselect.3
+MANSRC = ../guides/man/m3_Dt/EdDesele.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorDisableRedisplay.3
+MANSRC = ../guides/man/m3_Dt/EdDisabl.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorEnableRedisplay.3
+MANSRC = ../guides/man/m3_Dt/EdEnable.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorFind.3
+MANSRC = ../guides/man/m3_Dt/EdFind.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorFormat.3
+MANSRC = ../guides/man/m3_Dt/EdFormat.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGetContents.3
+MANSRC = ../guides/man/m3_Dt/EdGetCon.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGetInsertionPosition.3
+MANSRC = ../guides/man/m3_Dt/EdGetIns.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGetLastPosition.3
+MANSRC = ../guides/man/m3_Dt/EdGetLas.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGetMessageTextFieldID.3
+MANSRC = ../guides/man/m3_Dt/EdGetMes.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGetSizeHints.3
+MANSRC = ../guides/man/m3_Dt/EdGetSiz.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorGoToLine.3
+MANSRC = ../guides/man/m3_Dt/EdGoToLi.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorInsert.3
+MANSRC = ../guides/man/m3_Dt/EdInsert.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorInsertFromFile.3
+MANSRC = ../guides/man/m3_Dt/EdInsFF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorInvokeFindChangeDialog.3
+MANSRC = ../guides/man/m3_Dt/EdInvFin.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorInvokeFormatDialog.3
+MANSRC = ../guides/man/m3_Dt/EdInvFor.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorInvokeSpellDialog.3
+MANSRC = ../guides/man/m3_Dt/EdInvSpe.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorPasteFromClipboard.3
+MANSRC = ../guides/man/m3_Dt/EdPasteF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorReplace.3
+MANSRC = ../guides/man/m3_Dt/EdReplac.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorReplaceFromFile.3
+MANSRC = ../guides/man/m3_Dt/EdReplFF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorReset.3
+MANSRC = ../guides/man/m3_Dt/EdReset.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorSaveContentsToFile.3
+MANSRC = ../guides/man/m3_Dt/EdSaveCo.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorSelectAll.3
+MANSRC = ../guides/man/m3_Dt/EdSelect.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorSetContents.3
+MANSRC = ../guides/man/m3_Dt/EdSetCon.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorSetContentsFromFile.3
+MANSRC = ../guides/man/m3_Dt/EdSetCFF.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorSetInsertionPosition.3
+MANSRC = ../guides/man/m3_Dt/EdSetIns.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorTraverseToEditor.3
+MANSRC = ../guides/man/m3_Dt/EdTraver.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtEditorUndoEdit.3
+MANSRC = ../guides/man/m3_Dt/EdUndoEd.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtHelpDialog.3
+MANSRC = ../guides/man/m3_Dt/HelpDial.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtHelpQuickDialog.3
+MANSRC = ../guides/man/m3_Dt/HelpQDia.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtHelpQuickDialogGetChild.3
+MANSRC = ../guides/man/m3_Dt/HelpQDGC.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtHelpReturnSelectedWidgetId.3
+MANSRC = ../guides/man/m3_Dt/HelpRetu.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtHelpSetCatalogName.3
+MANSRC = ../guides/man/m3_Dt/HelpSetC.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtInfoShowTopic.3
+MANSRC = ../guides/man/m3_Dt/InfoShow.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMenuButton.3
+MANSRC = ../guides/man/m3_Dt/MenuButt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbBookCaseFreeInfo.3
+MANSRC = ../guides/man/m3_Dt/MmdbBCFI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbBookCaseGetInfo.3
+MANSRC = ../guides/man/m3_Dt/MmdbBCGI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbBookGetLicense.3
+MANSRC = ../guides/man/m3_Dt/MmdbBkGL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbBookGetLongTitle.3
+MANSRC = ../guides/man/m3_Dt/MmdbBGLT.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbSectionGetShortTitle.3
+MANSRC = ../guides/man/m3_Dt/MmdbSGST.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbSectionGetStyleSheetId.3
+MANSRC = ../guides/man/m3_Dt/MmdbSGSS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbSectionGetTocLoc.3
+MANSRC = ../guides/man/m3_Dt/MmdbSGTL.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbStylesheetGetData.3
+MANSRC = ../guides/man/m3_Dt/MmdbSsGD.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbStylesheetGetName.3
+MANSRC = ../guides/man/m3_Dt/MmdbSsGN.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbTocGetChildIds.3
+MANSRC = ../guides/man/m3_Dt/MmdbTGCI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbTocGetNumOfChildren.3
+MANSRC = ../guides/man/m3_Dt/MmdbTGNC.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMmdbTocGetParentId.3
+MANSRC = ../guides/man/m3_Dt/MmdbTGPI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMrmInitialize.3
+MANSRC = ../guides/man/m3_Dt/MrmInit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMsgLogMessage.3
+MANSRC = ../guides/man/m3_Dt/MsgLogM.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMsgLogOpenFile.3
+MANSRC = ../guides/man/m3_Dt/MsgLogO.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtMsgLogSetHandler.3
+MANSRC = ../guides/man/m3_Dt/MsgLogS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintCopySetupData.3
+MANSRC = ../guides/man/m3_Dt/PrintCop.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintFillSetupData.3
+MANSRC = ../guides/man/m3_Dt/PrintFil.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintFreeSetupData.3
+MANSRC = ../guides/man/m3_Dt/PrintFre.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintResetConnection.3
+MANSRC = ../guides/man/m3_Dt/PrintRes.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintSetupBox.3
+MANSRC = ../guides/man/m3_Dt/PrintSet.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtPrintSetupProc.3
+MANSRC = ../guides/man/m3_Dt/PrSetupP.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSaverGetWindows.3
+MANSRC = ../guides/man/m3_Dt/SaverGet.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchExit.3
+MANSRC = ../guides/man/m3_Dt/SrchExit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchFreeResults.3
+MANSRC = ../guides/man/m3_Dt/SrchFree.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchGetKeytypes.3
+MANSRC = ../guides/man/m3_Dt/SrchGetK.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchGetMaxResults.3
+MANSRC = ../guides/man/m3_Dt/SrchGetM.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchHighlight.3
+MANSRC = ../guides/man/m3_Dt/SrchHigh.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchInit.3
+MANSRC = ../guides/man/m3_Dt/SrchInit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchMergeResults.3
+MANSRC = ../guides/man/m3_Dt/SrchMrge.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchHasMessages.3
+MANSRC = ../guides/man/m3_Dt/SrchMsgs.sgm
+include manpage.tmpl
+
+ALIASTARGET = man3/DtSearchAddMessage.3
+ALIASSRC = man3/DtSearchHasMessages.3
+include manalias.tmpl
+
+ALIASTARGET = man3/DtSearchFreeMessages.3
+ALIASSRC = man3/DtSearchHasMessages.3
+include manalias.tmpl
+
+ALIASTARGET = man3/DtSearchGetMessages.3
+ALIASSRC = man3/DtSearchHasMessages.3
+include manalias.tmpl
+
+MANTARGET = man3/DtSearchQuery.3
+MANSRC = ../guides/man/m3_Dt/SrchQery.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchReinit.3
+MANSRC = ../guides/man/m3_Dt/SrchRein.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchRetrieve.3
+MANSRC = ../guides/man/m3_Dt/SrchRetr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchSetMaxResults.3
+MANSRC = ../guides/man/m3_Dt/SrchSetM.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchSortResults.3
+MANSRC = ../guides/man/m3_Dt/SrchSort.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSearchValidDateString.3
+MANSRC = ../guides/man/m3_Dt/SrchVali.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSessionRestorePath.3
+MANSRC = ../guides/man/m3_Dt/SessionR.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSessionSavePath.3
+MANSRC = ../guides/man/m3_Dt/SessionS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSpinBox.3
+MANSRC = ../guides/man/m3_Dt/SpinBox.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSpinBoxAddItem.3
+MANSRC = ../guides/man/m3_Dt/SpinBoxA.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSpinBoxDeletePos.3
+MANSRC = ../guides/man/m3_Dt/SpinBoxD.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSpinBoxSetItem.3
+MANSRC = ../guides/man/m3_Dt/SpinBoxS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtSrAPI.3
+MANSRC = ../guides/man/m3_Dt/SrAPI.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtTerm.3
+MANSRC = ../guides/man/m3_Dt/Term.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtTermDisplaySend.3
+MANSRC = ../guides/man/m3_Dt/TermDisp.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtTermInitialize.3
+MANSRC = ../guides/man/m3_Dt/TermInit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtTermSubprocReap.3
+MANSRC = ../guides/man/m3_Dt/TermSubR.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtTermSubprocSend.3
+MANSRC = ../guides/man/m3_Dt/TermSubS.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmAddCurrentWorkspaceCallback.3
+MANSRC = ../guides/man/m3_DtWsm/AddCWsCb.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmAddWorkspace.3
+MANSRC = ../guides/man/m3_DtWsm/AddWs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmAddWorkspaceFunctions.3
+MANSRC = ../guides/man/m3_DtWsm/AddWsFun.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmAddWorkspaceModifiedCallback.3
+MANSRC = ../guides/man/m3_DtWsm/AddWsMCb.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmChangeBackdrop.3
+MANSRC = ../guides/man/m3_DtWsm/ChBackDr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmDeleteWorkspace.3
+MANSRC = ../guides/man/m3_DtWsm/DelWs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmFreeWorkspaceInfo.3
+MANSRC = ../guides/man/m3_DtWsm/FreeWsIn.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmGetCurrentBackdropWindow.3
+MANSRC = ../guides/man/m3_DtWsm/GetCurBW.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmGetCurrentWorkspace.3
+MANSRC = ../guides/man/m3_DtWsm/GetCurWs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmGetWorkspaceInfo.3
+MANSRC = ../guides/man/m3_DtWsm/GetWsInf.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmGetWorkspaceList.3
+MANSRC = ../guides/man/m3_DtWsm/GetWsLis.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmGetWorkspacesOccupied.3
+MANSRC = ../guides/man/m3_DtWsm/GetWsOcc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmOccupyAllWorkspaces.3
+MANSRC = ../guides/man/m3_DtWsm/OccAllWs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmRemoveWorkspaceCallback.3
+MANSRC = ../guides/man/m3_DtWsm/RemWsCb.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmRemoveWorkspaceFunctions.3
+MANSRC = ../guides/man/m3_DtWsm/RemWsFun.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmSetCurrentWorkspace.3
+MANSRC = ../guides/man/m3_DtWsm/SetCurWs.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmSetWorkspacesOccupied.3
+MANSRC = ../guides/man/m3_DtWsm/SetWsOcc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/DtWsmSetWorkspaceTitle.3
+MANSRC = ../guides/man/m3_DtWsm/SetWsTi.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_add_calendar.3
+MANSRC = ../guides/man/m3_csa/add_cale.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_add_entry.3
+MANSRC = ../guides/man/m3_csa/add_entr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_call_callbacks.3
+MANSRC = ../guides/man/m3_csa/call_cal.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_delete_calendar.3
+MANSRC = ../guides/man/m3_csa/del_cale.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_delete_entry.3
+MANSRC = ../guides/man/m3_csa/del_entr.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_free.3
+MANSRC = ../guides/man/m3_csa/free.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_free_time_search.3
+MANSRC = ../guides/man/m3_csa/free_tim.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_list_calendar_attributes.3
+MANSRC = ../guides/man/m3_csa/list_caa.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_list_calendars.3
+MANSRC = ../guides/man/m3_csa/list_cal.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_list_entries.3
+MANSRC = ../guides/man/m3_csa/list_ent.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_list_entry_attributes.3
+MANSRC = ../guides/man/m3_csa/list_ena.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_list_entry_sequence.3
+MANSRC = ../guides/man/m3_csa/list_ens.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_logoff.3
+MANSRC = ../guides/man/m3_csa/logoff.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_logon.3
+MANSRC = ../guides/man/m3_csa/logon.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_look_up.3
+MANSRC = ../guides/man/m3_csa/look_up.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_query_configuration.3
+MANSRC = ../guides/man/m3_csa/query_co.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_read_calendar_attributes.3
+MANSRC = ../guides/man/m3_csa/read_cal.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_read_entry_attributes.3
+MANSRC = ../guides/man/m3_csa/read_ent.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_read_next_reminder.3
+MANSRC = ../guides/man/m3_csa/read_nex.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_register_callback.3
+MANSRC = ../guides/man/m3_csa/register.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_restore.3
+MANSRC = ../guides/man/m3_csa/restore.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_save.3
+MANSRC = ../guides/man/m3_csa/save.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_unregister_callback.3
+MANSRC = ../guides/man/m3_csa/unregist.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_update_calendar_attributes.3
+MANSRC = ../guides/man/m3_csa/update_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_update_entry_attributes.3
+MANSRC = ../guides/man/m3_csa/update_e.sgm
+include manpage.tmpl
+
+MANTARGET = man3/csa_x_process_updates.3
+MANSRC = ../guides/man/m3_csa/x_proces.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_X_session.3
+MANSRC = ../guides/man/m3_tt/X_sessio.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_bcontext_join.3
+MANSRC = ../guides/man/m3_tt/bco_join.sgm
+inlucde manpage.tmpl
+
+MANTARGET = sgm,man3/tt_bcontext_quit.3
+MANSRC = ../guides/man/m3_tt/bco_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_close.3
+MANSRC = ../guides/man/m3_tt/close.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_context_join.3
+MANSRC = ../guides/man/m3_tt/con_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_context_quit.3
+MANSRC = ../guides/man/m3_tt/con_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_file.3
+MANSRC = ../guides/man/m3_tt/def_file.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_file_set.3
+MANSRC = ../guides/man/m3_tt/def_fi_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_procid.3
+MANSRC = ../guides/man/m3_tt/def_proc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_procid_set.3
+MANSRC = ../guides/man/m3_tt/def_pr_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_ptype.3
+MANSRC = ../guides/man/m3_tt/def_ptyp.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_ptype_set.3
+MANSRC = ../guides/man/m3_tt/def_pt_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_session.3
+MANSRC = ../guides/man/m3_tt/def_sess.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_default_session_set.3
+MANSRC = ../guides/man/m3_tt/def_se_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_error.3
+MANSRC = ../guides/man/m3_tt/error.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_error_int.3
+MANSRC = ../guides/man/m3_tt/err_int.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_error_pointer.3
+MANSRC = ../guides/man/m3_tt/err_poin.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_fd.3
+MANSRC = ../guides/man/m3_tt/fd.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_feature_enabled.3
+MANSRC = ../guides/man/m3_tt/feat_ena.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_feature_required.3
+MANSRC = ../guides/man/m3_tt/feat_req.sgm
+
+MANTARGET = man3/tt_file_copy.3
+MANSRC = ../guides/man/m3_tt/fil_copy.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_destroy.3
+MANSRC = ../guides/man/m3_tt/fil_dest.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_join.3
+MANSRC = ../guides/man/m3_tt/fil_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_move.3
+MANSRC = ../guides/man/m3_tt/fil_move.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_netfile.3
+MANSRC = ../guides/man/m3_tt/fil_netf.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_objects_query.3
+MANSRC = ../guides/man/m3_tt/fil_ob_q.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_file_quit.3
+MANSRC = ../guides/man/m3_tt/fil_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_free.3
+MANSRC = ../guides/man/m3_tt/free.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_host_file_netfile.3
+MANSRC = ../guides/man/m3_tt/h_f_netf.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_host_netfile_file.3
+MANSRC = ../guides/man/m3_tt/h_netf_f.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_icontext_join.3
+MANSRC = ../guides/man/m3_tt/ico_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_icontext_quit.3
+MANSRC = ../guides/man/m3_tt/ico_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_initial_session.3
+MANSRC = ../guides/man/m3_tt/init_ses.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_int_error.3
+MANSRC = ../guides/man/m3_tt/int_err.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_is_err.3
+MANSRC = ../guides/man/m3_tt/is_err.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_malloc.3
+MANSRC = ../guides/man/m3_tt/malloc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_mark.3
+MANSRC = ../guides/man/m3_tt/mark.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_abstainer.3
+MANSRC = ../guides/man/m3_tt_message/abstain.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_abstainers_count.3
+MANSRC = ../guides/man/m3_tt_message/abstai_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_accept.3
+MANSRC = ../guides/man/m3_tt_message/accept.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_accepter.3
+MANSRC = ../guides/man/m3_tt_message/accepter.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_accepters_count.3
+MANSRC = ../guides/man/m3_tt_message/accept_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_address.3
+MANSRC = ../guides/man/m3_tt_message/address.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_address_set.3
+MANSRC = ../guides/man/m3_tt_message/addr_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_add.3
+MANSRC = ../guides/man/m3_tt_message/arg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_bval.3
+MANSRC = ../guides/man/m3_tt_message/arg_bval.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_bval_set.3
+MANSRC = ../guides/man/m3_tt_message/arg_bv_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_ival.3
+MANSRC = ../guides/man/m3_tt_message/arg_ival.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_ival_set.3
+MANSRC = ../guides/man/m3_tt_message/arg_iv_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_mode.3
+MANSRC = ../guides/man/m3_tt_message/arg_mode.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_type.3
+MANSRC = ../guides/man/m3_tt_message/arg_type.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_val.3
+MANSRC = ../guides/man/m3_tt_message/arg_val.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_val_set.3
+MANSRC = ../guides/man/m3_tt_message/arg_va_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_xval.3
+MANSRC = ../guides/man/m3_tt_message/arg_xval.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_arg_xval_set.3
+MANSRC = ../guides/man/m3_tt_message/arg_xv_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_args_count.3
+MANSRC = ../guides/man/m3_tt_message/args_cnt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_barg_add.3
+MANSRC = ../guides/man/m3_tt_message/barg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_bcontext_set.3
+MANSRC = ../guides/man/m3_tt_message/bcon_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_callback_add.3
+MANSRC = ../guides/man/m3_tt_message/call_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_class.3
+MANSRC = ../guides/man/m3_tt_message/class.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_class_set.3
+MANSRC = ../guides/man/m3_tt_message/class_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_bval.3
+MANSRC = ../guides/man/m3_tt_message/con_bval.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_ival.3
+MANSRC = ../guides/man/m3_tt_message/con_ival.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_set.3
+MANSRC = ../guides/man/m3_tt_message/con_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_slotname.3
+MANSRC = ../guides/man/m3_tt_message/con_slot.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_val.3
+MANSRC = ../guides/man/m3_tt_message/con_val.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_context_xval.3
+MANSRC = ../guides/man/m3_tt_message/con_xval.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_contexts_count.3
+MANSRC = ../guides/man/m3_tt_message/cons_cnt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_create.3
+MANSRC = ../guides/man/m3_tt_message/create.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_create_super.3
+MANSRC = ../guides/man/m3_tt_message/cr_super.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_destroy.3
+MANSRC = ../guides/man/m3_tt_message/destroy.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_disposition.3
+MANSRC = ../guides/man/m3_tt_message/disposit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_disposition_set.3
+MANSRC = ../guides/man/m3_tt_message/disp_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_fail.3
+MANSRC = ../guides/man/m3_tt_message/fail.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_file.3
+MANSRC = ../guides/man/m3_tt_message/file.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_file_set.3
+MANSRC = ../guides/man/m3_tt_message/file_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_gid.3
+MANSRC = ../guides/man/m3_tt_message/gid.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_handler.3
+MANSRC = ../guides/man/m3_tt_message/handler.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_handler_ptype.3
+MANSRC = ../guides/man/m3_tt_message/han_pty.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_handler_ptype_set.3
+MANSRC = ../guides/man/m3_tt_message/han_pt_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_handler_set.3
+MANSRC = ../guides/man/m3_tt_message/han_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_iarg_add.3
+MANSRC = ../guides/man/m3_tt_message/iarg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_icontext_set.3
+MANSRC = ../guides/man/m3_tt_message/ico_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_id.3
+MANSRC = ../guides/man/m3_tt_message/id.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_object.3
+MANSRC = ../guides/man/m3_tt_message/object.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_object_set.3
+MANSRC = ../guides/man/m3_tt_message/object_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_op.3
+MANSRC = ../guides/man/m3_tt_message/op.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_op_set.3
+MANSRC = ../guides/man/m3_tt_message/op_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_opnum.3
+MANSRC = ../guides/man/m3_tt_message/opnum.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_otype.3
+MANSRC = ../guides/man/m3_tt_message/otype.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_otype_set.3
+MANSRC = ../guides/man/m3_tt_message/otype_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_pattern.3
+MANSRC = ../guides/man/m3_tt_message/pattern.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_print.3
+MANSRC = ../guides/man/m3_tt_message/print.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_receive.3
+MANSRC = ../guides/man/m3_tt_message/receive.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_reject.3
+MANSRC = ../guides/man/m3_tt_message/reject.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_rejecter.3
+MANSRC = ../guides/man/m3_tt_message/rejecter.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_rejecters_count.3
+MANSRC = ../guides/man/m3_tt_message/reject_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_reply.3
+MANSRC = ../guides/man/m3_tt_message/reply.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_scope.3
+MANSRC = ../guides/man/m3_tt_message/scope.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_scope_set.3
+MANSRC = ../guides/man/m3_tt_message/scope_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_send.3
+MANSRC = ../guides/man/m3_tt_message/send.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_send_on_exit.3
+MANSRC = ../guides/man/m3_tt_message/snd_on_e.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_sender.3
+MANSRC = ../guides/man/m3_tt_message/sender.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_sender_ptype.3
+MANSRC = ../guides/man/m3_tt_message/snd_pty.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_sender_ptype_set.3
+MANSRC = ../guides/man/m3_tt_message/snd_pt_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_session.3
+MANSRC = ../guides/man/m3_tt_message/session.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_session_set.3
+MANSRC = ../guides/man/m3_tt_message/sessio_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_state.3
+MANSRC = ../guides/man/m3_tt_message/state.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_status.3
+MANSRC = ../guides/man/m3_tt_message/status.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_status_set.3
+MANSRC = ../guides/man/m3_tt_message/status_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_status_string.3
+MANSRC = ../guides/man/m3_tt_message/st_str.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_status_string_set.3
+MANSRC = ../guides/man/m3_tt_message/st_str_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_uid.3
+MANSRC = ../guides/man/m3_tt_message/uid.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_user.3
+MANSRC = ../guides/man/m3_tt_message/user.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_user_set.3
+MANSRC = ../guides/man/m3_tt_message/user_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_xarg_add.3
+MANSRC = ../guides/man/m3_tt_message/xarg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_message_xcontext_set.3
+MANSRC = ../guides/man/m3_tt_message/xco_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_netfile_file.3
+MANSRC = ../guides/man/m3_tt/netf_fil.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_objid_equal.3
+MANSRC = ../guides/man/m3_tt/objid_eq.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_objid_objkey.3
+MANSRC = ../guides/man/m3_tt/objid_ob.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_onotice_create.3
+MANSRC = ../guides/man/m3_tt/onot_cre.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_open.3
+MANSRC = ../guides/man/m3_tt/open.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_orequest_create.3
+MANSRC = ../guides/man/m3_tt/oreq_cre.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_base.3
+MANSRC = ../guides/man/m3_tt_otype/base.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_derived.3
+MANSRC = ../guides/man/m3_tt_otype/derived.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_deriveds_count.3
+MANSRC = ../guides/man/m3_tt_otype/deri_cnt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_hsig_arg_mode.3
+MANSRC = ../guides/man/m3_tt_otype/h_arg_mo.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_hsig_arg_type.3
+MANSRC = ../guides/man/m3_tt_otype/h_arg_ty.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_hsig_args_count.3
+MANSRC = ../guides/man/m3_tt_otype/h_args_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_hsig_count.3
+MANSRC = ../guides/man/m3_tt_otype/h_count.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_hsig_op.3
+MANSRC = ../guides/man/m3_tt_otype/hsig_op.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_is_derived.3
+MANSRC = ../guides/man/m3_tt_otype/is_deriv.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_opnum_callback_add.3
+MANSRC = ../guides/man/m3_tt_otype/o_cb_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_osig_arg_mode.3
+MANSRC = ../guides/man/m3_tt_otype/o_arg_mo.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_osig_arg_type.3
+MANSRC = ../guides/man/m3_tt_otype/o_arg_ty.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_osig_args_count.3
+MANSRC = ../guides/man/m3_tt_otype/o_args_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_osig_count.3
+MANSRC = ../guides/man/m3_tt_otype/o_count.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_otype_osig_op.3
+MANSRC = ../guides/man/m3_tt_otype/osig_op.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_address_add.3
+MANSRC = ../guides/man/m3_tt_pattern/addr_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_arg_add.3
+MANSRC = ../guides/man/m3_tt_pattern/arg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_barg_add.3
+MANSRC = ../guides/man/m3_tt_pattern/barg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_bcontext_add.3
+MANSRC = ../guides/man/m3_tt_pattern/bcon_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_callback_add.3
+MANSRC = ../guides/man/m3_tt_pattern/call_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_category.3
+MANSRC = ../guides/man/m3_tt_pattern/category.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_category_set.3
+MANSRC = ../guides/man/m3_tt_pattern/cat_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_class_add.3
+MANSRC = ../guides/man/m3_tt_pattern/clas_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_context_add.3
+MANSRC = ../guides/man/m3_tt_pattern/cont_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_create.3
+MANSRC = ../guides/man/m3_tt_pattern/create.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_destroy.3
+MANSRC = ../guides/man/m3_tt_pattern/destroy.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_disposition_add.3
+MANSRC = ../guides/man/m3_tt_pattern/disp_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_file_add.3
+MANSRC = ../guides/man/m3_tt_pattern/file_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_iarg_add.3
+MANSRC = ../guides/man/m3_tt_pattern/iarg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_icontext_add.3
+MANSRC = ../guides/man/m3_tt_pattern/icon_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_object_add.3
+MANSRC = ../guides/man/m3_tt_pattern/obj_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_op_add.3
+MANSRC = ../guides/man/m3_tt_pattern/op_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_opnum_add.3
+MANSRC = ../guides/man/m3_tt_pattern/opnu_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_otype_add.3
+MANSRC = ../guides/man/m3_tt_pattern/otyp_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_print.3
+MANSRC = ../guides/man/m3_tt_pattern/print.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_register.3
+MANSRC = ../guides/man/m3_tt_pattern/register.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_scope_add.3
+MANSRC = ../guides/man/m3_tt_pattern/scop_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_sender_add.3
+MANSRC = ../guides/man/m3_tt_pattern/send_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_sender_ptype_add.3
+MANSRC = ../guides/man/m3_tt_pattern/s_pt_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_session_add.3
+MANSRC = ../guides/man/m3_tt_pattern/sess_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_state_add.3
+MANSRC = ../guides/man/m3_tt_pattern/stat_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_unregister.3
+MANSRC = ../guides/man/m3_tt_pattern/unregist.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_user.3
+MANSRC = ../guides/man/m3_tt_pattern/user.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_user_set.3
+MANSRC = ../guides/man/m3_tt_pattern/user_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_xarg_add.3
+MANSRC = ../guides/man/m3_tt_pattern/xarg_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pattern_xcontext_add.3
+MANSRC = ../guides/man/m3_tt_pattern/xcon_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pnotice_create.3
+MANSRC = ../guides/man/m3_tt/pnot_cre.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_pointer_error.3
+MANSRC = ../guides/man/m3_tt/poin_err.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_prequest_create.3
+MANSRC = ../guides/man/m3_tt/preq_cre.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_procid_session.3
+MANSRC = ../guides/man/m3_tt/pr_sess.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_ptr_error.3
+MANSRC = ../guides/man/m3_tt/ptr_err.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_ptype_declare.3
+MANSRC = ../guides/man/m3_tt/pty_decl.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_ptype_exists.3
+MANSRC = ../guides/man/m3_tt/pty_exis.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_ptype_opnum_callback_add.3
+MANSRC = ../guides/man/m3_tt/pt_o_c_a.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_ptype_undeclare.3
+MANSRC = ../guides/man/m3_tt/pty_unde.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_release.3
+MANSRC = ../guides/man/m3_tt/release.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_bprop.3
+MANSRC = ../guides/man/m3_tt_session/bprop.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_bprop_add.3
+MANSRC = ../guides/man/m3_tt_session/bpro_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_bprop_set.3
+MANSRC = ../guides/man/m3_tt_session/bpro_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_join.3
+MANSRC = ../guides/man/m3_tt_session/join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_prop.3
+MANSRC = ../guides/man/m3_tt_session/prop.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_prop_add.3
+MANSRC = ../guides/man/m3_tt_session/prop_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_prop_count.3
+MANSRC = ../guides/man/m3_tt_session/prop_cnt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_prop_set.3
+MANSRC = ../guides/man/m3_tt_session/prop_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_propname.3
+MANSRC = ../guides/man/m3_tt_session/propname.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_propnames_count.3
+MANSRC = ../guides/man/m3_tt_session/propna_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_quit.3
+MANSRC = ../guides/man/m3_tt_session/quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_session_types_load.3
+MANSRC = ../guides/man/m3_tt_session/types_ld.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_bprop.3
+MANSRC = ../guides/man/m3_tt_spec/bprop.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_bprop_add.3
+MANSRC = ../guides/man/m3_tt_spec/bpro_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_bprop_set.3
+MANSRC = ../guides/man/m3_tt_spec/bpro_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_create.3
+MANSRC = ../guides/man/m3_tt_spec/create.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_destroy.3
+MANSRC = ../guides/man/m3_tt_spec/destroy.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_file.3
+MANSRC = ../guides/man/m3_tt_spec/file.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_move.3
+MANSRC = ../guides/man/m3_tt_spec/move.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_prop.3
+MANSRC = ../guides/man/m3_tt_spec/prop.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_prop_add.3
+MANSRC = ../guides/man/m3_tt_spec/prop_add.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_prop_count.3
+MANSRC = ../guides/man/m3_tt_spec/prop_cnt.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_prop_set.3
+MANSRC = ../guides/man/m3_tt_spec/prop_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_propname.3
+MANSRC = ../guides/man/m3_tt_spec/propname.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_propnames_count.3
+MANSRC = ../guides/man/m3_tt_spec/propna_c.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_type.3
+MANSRC = ../guides/man/m3_tt_spec/type.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_type_set.3
+MANSRC = ../guides/man/m3_tt_spec/type_set.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_spec_write.3
+MANSRC = ../guides/man/m3_tt_spec/write.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_status_message.3
+MANSRC = ../guides/man/m3_tt/status_m.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_thread_procid.3
+MANSRC = ../guides/man/m3_tt/thr_proc.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_thread_procid_set.3
+MANSRC = ../guides/man/m3_tt/thr_pr_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_thread_session.3
+MANSRC = ../guides/man/m3_tt/thr_sess.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_thread_session_set.3
+MANSRC = ../guides/man/m3_tt/thr_se_s.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_trace_control.3
+MANSRC = ../guides/man/m3_tt/trace_co.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_xcontext_join.3
+MANSRC = ../guides/man/m3_tt/xco_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tt_xcontext_quit.3
+MANSRC = ../guides/man/m3_tt/xco_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_Get_Modified.3
+MANSRC = ../guides/man/m3_ttdt/Get_Modi.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_Revert.3
+MANSRC = ../guides/man/m3_ttdt/Revert.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_Save.3
+MANSRC = ../guides/man/m3_ttdt/Save.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_close.3
+MANSRC = ../guides/man/m3_ttdt/close.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_file_event.3
+MANSRC = ../guides/man/m3_ttdt/f_event.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_file_join.3
+MANSRC = ../guides/man/m3_ttdt/f_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_file_notice.3
+MANSRC = ../guides/man/m3_ttdt/f_notice.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_file_quit.3
+MANSRC = ../guides/man/m3_ttdt/f_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_file_request.3
+MANSRC = ../guides/man/m3_ttdt/f_reques.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_message_accept.3
+MANSRC = ../guides/man/m3_ttdt/m_accept.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_open.3
+MANSRC = ../guides/man/m3_ttdt/open.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_sender_imprint_on.3
+MANSRC = ../guides/man/m3_ttdt/s_imp_on.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_session_join.3
+MANSRC = ../guides/man/m3_ttdt/ses_join.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_session_quit.3
+MANSRC = ../guides/man/m3_ttdt/ses_quit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttdt_subcontract_manage.3
+MANSRC = ../guides/man/m3_ttdt/subc_man.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttmedia_Deposit.3
+MANSRC = ../guides/man/m3_ttmedia/Deposit.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttmedia_load.3
+MANSRC = ../guides/man/m3_ttmedia/load.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttmedia_load_reply.3
+MANSRC = ../guides/man/m3_ttmedia/load_rep.sgm
+include manpage.tmpl
+
+MANTARGET = man3/ttmedia_ptype_declare.3
+MANSRC = ../guides/man/m3_ttmedia/pty_decl.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_Xt_input_handler.3
+MANSRC = ../guides/man/m3_tttk/Xt_inp_h.sgm
+include manpage.tmpl
+
+MNATARGET = man3/tttk_block_while.3
+MANSRC = ../guides/man/m3_tttk/block_wh.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_message_abandon.3
+MANSRC = ../guides/man/m3_tttk/m_abando.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_message_create.3
+MANSRC = ../guides/man/m3_tttk/m_create.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_message_destroy.3
+MANSRC = ../guides/man/m3_tttk/m_destro.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_message_fail.3
+MANSRC = ../guides/man/m3_tttk/m_fail.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_message_reject.3
+MANSRC = ../guides/man/m3_tttk/m_reject.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_op_string.3
+MANSRC = ../guides/man/m3_tttk/op_str.sgm
+include manpage.tmpl
+
+MANTARGET = man3/tttk_string_op.3
+MANSRC = ../guides/man/m3_tttk/str_op.sgm
+include manpage.tmpl
+
+MANTARGET = man4/BIL.4
+MANSRC = ../guides/man/man4/bil.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Deposit.4
+MANSRC = ../guides/man/man4/Deposit.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Display.4
+MANSRC = ../guides/man/man4/Display.sgm
+include manpage.tmpl
+
+MANTARGET = man4/DtDndProtocol.4
+MANSRC = ../guides/man/man4/DtDndPro.sgm
+include manpage.tmpl
+
+MANTARGET = man4/DtInfo_LoadInfoLib.4
+MANSRC = ../guides/man/man4/ifloadil.sgm
+include manpage.tmpl
+
+MANTARGET = man4/DtInfo_PrintInfoAtLoc.4
+MANSRC = ../guides/man/man4/ifprnial.sgm
+include manpage.tmpl
+
+MANTARGET = man4/DtInfo_Quit.4
+MANSRC = ../guides/man/man4/ifquit.sgm
+include manpage.tmpl
+
+MANTARGET = man4/DtInfo_ShowInfoAtLoc.4
+MANSRC = ../guides/man/man4/ifshwial.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Edit.4
+MANSRC = ../guides/man/man4/Edit.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Environment.4
+MANSRC = ../guides/man/man4/Get_Env.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Geometry.4
+MANSRC = ../guides/man/man4/Get_Geom.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Iconified.4
+MANSRC = ../guides/man/man4/Get_Icon.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Locale.4
+MANSRC = ../guides/man/man4/Get_Loca.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Mapped.4
+MANSRC = ../guides/man/man4/Get_Map.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Modified.4
+MANSRC = ../guides/man/man4/Get_Modi.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Situation.4
+MANSRC = ../guides/man/man4/Get_Situ.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Status.4
+MANSRC = ../guides/man/man4/Get_Stat.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_Sysinfo.4
+MANSRC = ../guides/man/man4/Get_Sysi.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Get_XInfo.4
+MANSRC = ../guides/man/man4/Get_XInf.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Instantiate.4
+MANSRC = ../guides/man/man4/Instanti.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Lower.4
+MANSRC = ../guides/man/man4/Lower.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Mail.4
+MANSRC = ../guides/man/man4/Mail.sgm
+include mamnpage.tmpl
+
+MANTARGET = man4/Modified.4
+MANSRC = ../guides/man/man4/Modified.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Pause.4
+MANSRC = ../guides/man/man4/Pause.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Print.4
+MANSRC = ../guides/man/man4/Print.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Quit.4
+MANSRC = ../guides/man/man4/Quit.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Raise.4
+MANSRC = ../guides/man/man4/Raise.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Resume.4
+MANSRC = ../guides/man/man4/Resume.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Revert.4
+MANSRC = ../guides/man/man4/Revert.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Reverted.4
+MANSRC = ../guides/man/man4/Reverted.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Save.4
+MANSRC = ../guides/man/man4/Save.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Saved.4
+MANSRC = ../guides/man/man4/Saved.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Environment.4
+MANSRC = ../guides/man/man4/Set_Env.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Geometry.4
+MANSRC = ../guides/man/man4/Set_Geom.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Iconified.4
+MANSRC = ../guides/man/man4/Set_Icon.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Locale.4
+MANSRC = ../guides/man/man4/Set_Loca.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Mapped.4
+MANSRC = ../guides/man/man4/Set_Map.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Set_Situation.4
+MANSRC = ../guides/man/man4/Set_Situ.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Signal.4
+MANSRC = ../guides/man/man4/Signal.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Started.4
+MANSRC = ../guides/man/man4/Started.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Status.4
+MANSRC = ../guides/man/man4/Status.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Stopped.4
+MANSRC = ../guides/man/man4/Stopped.sgm
+include manpage.tmpl
+
+MANTARGET = man4/Translate.4
+MANSRC = ../guides/man/man4/Translat.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtactionfile.4
+MANSRC = ../guides/man/man4/dtaction.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtbmfile.4
+MANSRC = ../guides/man/man4/dtbmfile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtcm_archive.4
+MANSRC = ../guides/man/man4/dtcm_arc.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtcm_entry.4
+MANSRC = ../guides/man/man4/dtcm_ent.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtdpfile.4
+MANSRC = ../guides/man/man4/dtdpfile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtdtfile.4
+MANSRC = ../guides/man/man4/dtdtfile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtdtsfile.4
+MANSRC = ../guides/man/man4/dtdtsfil.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtfile_config.4
+MANSRC = ../guides/man/man4/dtfile_c.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtfpfile.4
+MANSRC = ../guides/man/man4/dtfpfile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dthelptagdtd.4
+MANSRC = ../guides/man/man4/dthelpta.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dthffile.4
+MANSRC = ../guides/man/man4/dthffile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dticonfile.4
+MANSRC = ../guides/man/man4/dticonfi.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtlocator.4
+MANSRC = ../guides/man/man4/genloc.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtpmfile.4
+MANSRC = ../guides/man/man4/dtpmfile.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtresourcesfile.4
+MANSRC = ../guides/man/man4/dtresour.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsdldtd.4
+MANSRC = ../guides/man/man4/dtsdldtd.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsdlfile.4
+MANSRC = ../guides/man/man4/dtsdlfil.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsessiondb.4
+MANSRC = ../guides/man/man4/dtsessdb.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsessionfile.4
+MANSRC = ../guides/man/man4/dtsessio.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtspcdenv.4
+MANSRC = ../guides/man/man4/dtspcden.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsrdbfiles.4
+MANSRC = ../guides/man/man4/dtsrdbfl.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsrfzkfiles.4
+MANSRC = ../guides/man/man4/dtsrfzkf.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsrhanfile.4
+MANSRC = ../guides/man/man4/dtsrhanf.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsrlangfiles.4
+MANSRC = ../guides/man/man4/dtsrlngf.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtsrocffile.4
+MANSRC = ../guides/man/man4/dtsrocfl.sgm
+include manpage.tmpl
+
+MANTARGET = man4/dtwmrc.4
+MANSRC = ../guides/man/man4/dtwmrc.sgm
+include manpge.tmpl
+
+MANTARGET = man4/mt-libtt-intro.4
+MANSRC = ../guides/man/man4/mt-libtt.sgm
+include manpage.tmpl
+
+MANTARGET = man4/startlog.4
+MANSRC = ../guides/man/man4/startlog.sgm
+include manpage.tmpl
+
+MANTARGET = man4/tttracefile.4
+MANSRC = ../guides/man/man4/tttracef.sgm
+include manpage.tmpl
+
+MANTARGET = man5/Dt.5
+MANSRC = ../guides/man/man5/Dt.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtAction.5
+MANSRC = ../guides/man/man5/DtAction.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtComboBox.5
+MANSRC = ../guides/man/man5/DtComboB.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtDnd.5
+MANSRC = ../guides/man/man5/DtDnd.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtDts.5
+MANSRC = ../guides/man/man5/DtDts.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtEditor.5
+MANSRC = ../guides/man/man5/DtEditor.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtHelp.5
+MANSRC = ../guides/man/man5/DtHelp.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtHelpDialog.5
+MANSRC = ../guides/man/man5/DtHelpDi.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtHelpQuickD.5
+MANSRC = ../guides/man/man5/DtHelpQD.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtInfoLib.5
+MANSRC = ../guides/man/man5/DtInfoLib.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMenuButton.5
+MANSRC = ../guides/man/man5/DtMenuBu.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMmdbBookCase.5
+MANSRC = ../guides/man/man5/dtinfobc.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMmdbGraphicInfo.5
+MANSRC = ../guides/man/man5/mmdbgifo.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMmdbHandle.5
+MANSRC = ../guides/man/man5/mmdbhndl.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMmdbInfoLibInfo.5
+MANSRC = ../guides/man/man5/dtinfdlb.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMmdbInfoRequest.5
+MANSRC = ../guides/man/man5/mmdbireq.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMrm.5
+MANSRC = ../guides/man/man5/DtMrm.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtMsgLog.5
+MANSRC = ../guides/man/man5/DtMsgLog.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtPrint.5
+MANSRC = ../guides/man/man5/DtPrint.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtSaver.5
+MANSRC = ../guides/man/man5/DtSaver.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtSearch.5
+MANSRC = ../guides/man/man5/dtsearch.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtSession.5
+MANSRC = ../guides/man/man5/DtSessio.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtSpinBox.5
+MANSRC = ../guides/man/man5/DtSpinBo.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtStdAppFontNames.5
+MANSRC = ../guides/man/man5/DtStdApp.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtStdInterfaceFontNames.5
+MANSRC = ../guides/man/man5/DtStdInt.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtTerm.5
+MANSRC = ../guides/man/man5/DtTerm.sgm
+include manpage.tmpl
+
+MANTARGET = man5/DtWsm.5
+MANSRC = ../guides/man/man5/DtWsm.sgm
+include manpage.tmpl
+
+MANTARGET = man5/Tttt_c.5
+MANSRC = ../guides/man/man5/Tttt_c.sgm
+include manpage.tmpl
+
+MANTARGET = man5/Tttttk.5
+MANSRC = ../guides/man/man5/Tttttk.sgm
+include manpage.tmpl
+
+MANTARGET = man5/csacsa.5
+MANSRC = ../guides/man/man5/csacsa.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtactionaction.5
+MANSRC = ../guides/man/man5/dtactact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtappaction.5
+MANSRC = ../guides/man/man5/dtappact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtbuilderaction.5
+MANSRC = ../guides/man/man5/dtbuiact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtcalcaction.5
+MANSRC = ../guides/man/man5/dtclcact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtcalendaraction.5
+MANSRC = ../guides/man/man5/dtcalact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtenvvar.5
+MANSRC = ../guides/man/man5/dtenvvar.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtfileaction.5
+MANSRC = ../guides/man/man5/dtfilact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtfilsys.5
+MANSRC = ../guides/man/man5/dtfilsys.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dthelpaction.5
+MANSRC = ../guides/man/man5/dthelact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dticonaction.5
+MANSRC = ../guides/man/man5/dticoact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtimsstartaction.5
+MANSRC = ../guides/man/man5/imssact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtinfoBookdtd.5
+MANSRC = ../guides/man/man5/dtinfobk.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtinfoStyledtd.5
+MANSRC = ../guides/man/man5/dtinfost.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtinfoTOCdtd.5
+MANSRC = ../guides/man/man5/dtinfotc.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtinfoaction.5
+MANSRC = ../guides/man/man5/dtinfact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtinfoaf.5
+MANSRC = ../guides/man/man5/dtinfoaf.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtmailaction.5
+MANSRC = ../guides/man/man5/dtmaiact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtmanaction.5
+MANSRC = ../guides/man/man5/dtmanact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtprintinfoaction.5
+MANSRC = ../guides/man/man5/dtpriact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtsessionaction.5
+MANSRC = ../guides/man/man5/dtsesact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtstyleaction.5
+MANSRC = ../guides/man/man5/dtstyact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dtterm.5
+MANSRC = ../guides/man/man5/dttermes.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dttermaction.5
+MANSRC = ../guides/man/man5/dtteract.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dttextaction.5
+MANSRC = ../guides/man/man5/dttexact.sgm
+include manpage.tmpl
+
+MANTARGET = man5/dttrashaction.5
+MANSRC = ../guides/man/man5/dttraact.sgm
+include manpage.tmpl
+
+MANTARGET = man6/ttsnoop.6
+MANSRC = ../guides/man/man6/ttsnoop.sgm
+include manpage.tmpl
diff --git a/cde/doc/C/man/manalias.tmpl b/cde/doc/C/man/manalias.tmpl
new file mode 100644 (file)
index 0000000..1899414
--- /dev/null
@@ -0,0 +1,3 @@
+$(ALIASTARGET):
+       $(RM) $@
+       echo .so $(ALIASSRC) > $@
diff --git a/cde/doc/C/man/manpage.tmpl b/cde/doc/C/man/manpage.tmpl
new file mode 100644 (file)
index 0000000..bb659a8
--- /dev/null
@@ -0,0 +1,3 @@
+$(MANTARGET): $(MANSRC) cdedecl.sgm ../guides/man/SEntity.sgm ../guides/common/ManLinks.sgm ../m-guides/common/ManLinks.sgm
+       $(RM) $@
+       $(DBENVSETUP) $(KSH) $(DBTOMAN) $(DBOPTS) cdedecl.sgm $(MANSRC) $@
diff --git a/cde/doc/Makefile.am b/cde/doc/Makefile.am
new file mode 100644 (file)
index 0000000..ebdce34
--- /dev/null
@@ -0,0 +1,30 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util C
+
+if JAPANESE
+SUBDIRS += ja_JP.dt-eucJP
+endif
+
+if GERMAN
+SUBDIRS += de_DE.ISO8859-1
+endif
+
+if FRENCH
+SUBDIRS += fr_FR.ISO8859-1
+endif
+
+if SPANISH
+SUBDIRS += es_ES.ISO8859-1
+endif
+
+if ITALIAN
+SUBDIRS = it_IT.ISO8859-1
+endif
+
+all::
+       $(RM) -r tmp
+       $(MKDIR_P) tmp
+
+clean::
+       $(RM) -r tmp
diff --git a/cde/doc/common/help/AppBuilder.tmpl b/cde/doc/common/help/AppBuilder.tmpl
new file mode 100644 (file)
index 0000000..498be9a
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    AppBuilder/Concepts.sgm  AppBuilder/MetaInfo.sgm  AppBuilder/book.sgm \
+    AppBuilder/GEntity.sgm   AppBuilder/Ref.sgm \
+    AppBuilder/Home.sgm      AppBuilder/Tasks.sgm
+
+NAME = AppBuilder
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Appmanager.tmpl b/cde/doc/common/help/Appmanager.tmpl
new file mode 100644 (file)
index 0000000..d824315
--- /dev/null
@@ -0,0 +1,8 @@
+SRCS = \
+    Appmanager/GEntity.sgm   Appmanager/TOC.sgm \
+    Appmanager/Home.sgm      Appmanager/Tasks.sgm \
+    Appmanager/MetaInfo.sgm  Appmanager/book.sgm \
+    Appmanager/Ref.sgm
+
+NAME = Appmanager
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Calculator.tmpl b/cde/doc/common/help/Calculator.tmpl
new file mode 100644 (file)
index 0000000..9c9ca2f
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Calculator/GEntity.sgm   Calculator/Ref.sgm       Calculator/book.sgm \
+    Calculator/Home.sgm      Calculator/TOC.sgm \
+    Calculator/MetaInfo.sgm  Calculator/Tasks.sgm
+
+NAME = Calculator
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Calendar.tmpl b/cde/doc/common/help/Calendar.tmpl
new file mode 100644 (file)
index 0000000..538aebf
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Calendar/Appendix.sgm  Calendar/MetaInfo.sgm  Calendar/Tasks.sgm \
+    Calendar/GEntity.sgm   Calendar/Ref.sgm       Calendar/book.sgm \
+    Calendar/Home.sgm      Calendar/TOC.sgm
+
+NAME = Calendar
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/CreatAct.tmpl b/cde/doc/common/help/CreatAct.tmpl
new file mode 100644 (file)
index 0000000..e0c678c
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    CreatAct/GEntity.sgm   CreatAct/Ref.sgm       CreatAct/book.sgm \
+    CreatAct/Home.sgm      CreatAct/TOC.sgm \
+    CreatAct/MetaInfo.sgm  CreatAct/Tasks.sgm
+
+NAME = CreatAct
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/FPanel.tmpl b/cde/doc/common/help/FPanel.tmpl
new file mode 100644 (file)
index 0000000..8dfdf5c
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    FPanel/Appendix.sgm  FPanel/MetaInfo.sgm  FPanel/Using.sgm \
+    FPanel/GEntity.sgm   FPanel/Ref.sgm       FPanel/book.sgm \
+    FPanel/Home.sgm      FPanel/TOC.sgm
+
+NAME = FPanel
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Filemgr.tmpl b/cde/doc/common/help/Filemgr.tmpl
new file mode 100644 (file)
index 0000000..753c353
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Filemgr/Concepts.sgm  Filemgr/Messages.sgm  Filemgr/TOC.sgm \
+    Filemgr/GEntity.sgm   Filemgr/MetaInfo.sgm  Filemgr/Tasks.sgm \
+    Filemgr/Home.sgm      Filemgr/Ref.sgm       Filemgr/book.sgm
+
+NAME = Filemgr
+include ../../common/help/Filemgr.tmpl
diff --git a/cde/doc/common/help/Help4Help.tmpl b/cde/doc/common/help/Help4Help.tmpl
new file mode 100644 (file)
index 0000000..148c8a6
--- /dev/null
@@ -0,0 +1,9 @@
+SRCS = \
+    Help4Help/Appendix.sgm  Help4Help/Ref.sgm \
+    Help4Help/Concepts.sgm  Help4Help/TOC.sgm \
+    Help4Help/GEntity.sgm   Help4Help/Tasks.sgm \
+    Help4Help/Home.sgm      Help4Help/book.sgm \
+    Help4Help/MetaInfo.sgm
+
+NAME = Help4Help
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Iconed.tmpl b/cde/doc/common/help/Iconed.tmpl
new file mode 100644 (file)
index 0000000..3c403a7
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Iconed/Concepts.sgm  Iconed/MetaInfo.sgm  Iconed/Tasks.sgm \
+    Iconed/GEntity.sgm   Iconed/Ref.sgm       Iconed/book.sgm \
+    Iconed/Home.sgm      Iconed/TOC.sgm
+
+NAME = Iconed
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Infomgr.tmpl b/cde/doc/common/help/Infomgr.tmpl
new file mode 100644 (file)
index 0000000..cbbbd40
--- /dev/null
@@ -0,0 +1,6 @@
+SRCS = \
+    Infomgr/Home.sgm      Infomgr/Ref.sgm \
+    Infomgr/MetaInfo.sgm  Infomgr/book.sgm
+
+NAME = Infomgr
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Intromgr.tmpl b/cde/doc/common/help/Intromgr.tmpl
new file mode 100644 (file)
index 0000000..32ddb96
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Intromgr/Appendix.sgm  Intromgr/Home.sgm      Intromgr/Overview.sgm \
+    Intromgr/GEntity.sgm   Intromgr/Keyboard.sgm  Intromgr/Windows.sgm \
+    Intromgr/Help.sgm      Intromgr/MetaInfo.sgm  Intromgr/book.sgm
+
+NAME = Intromgr
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/LibDtPrint.tmpl b/cde/doc/common/help/LibDtPrint.tmpl
new file mode 100644 (file)
index 0000000..5af0d37
--- /dev/null
@@ -0,0 +1,6 @@
+SRCS = \
+    LibDtPrint/GEntity.sgm  LibDtPrint/Home.sgm   LibDtPrint/MetaInfo.sgm \
+    LibDtPrint/book.sgm     LibDtPrint/Ref.sgm
+
+NAME = LibDtPrint
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Loginmgr.tmpl b/cde/doc/common/help/Loginmgr.tmpl
new file mode 100644 (file)
index 0000000..d6c14db
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Loginmgr/Concepts.sgm  Loginmgr/Ref.sgm       Loginmgr/book.sgm \
+    Loginmgr/Home.sgm      Loginmgr/TOC.sgm \
+    Loginmgr/MetaInfo.sgm  Loginmgr/Tasks.sgm
+
+NAME = Loginmgr
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Mailer.tmpl b/cde/doc/common/help/Mailer.tmpl
new file mode 100644 (file)
index 0000000..9659623
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Mailer/Messages.sgm  Mailer/TOC.sgm \
+    Mailer/GEntity.sgm   Mailer/MetaInfo.sgm  Mailer/Tasks.sgm \
+    Mailer/Home.sgm      Mailer/Ref.sgm       Mailer/book.sgm
+
+NAME = Mailer
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Printmgr.tmpl b/cde/doc/common/help/Printmgr.tmpl
new file mode 100644 (file)
index 0000000..cc830f6
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Printmgr/GEntity.sgm   Printmgr/Ref.sgm       Printmgr/book.sgm \
+    Printmgr/Home.sgm      Printmgr/TOC.sgm \
+    Printmgr/MetaInfo.sgm  Printmgr/Tasks.sgm
+
+NAME = Printmgr
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/PrnSetup.tmpl b/cde/doc/common/help/PrnSetup.tmpl
new file mode 100644 (file)
index 0000000..6502013
--- /dev/null
@@ -0,0 +1,6 @@
+SRCS = \
+    PrnSetup/GEntity.sgm    PrnSetup/Home.sgm     PrnSetup/MetaInfo.sgm \
+    PrnSetup/book.sgm       PrnSetup/prnset.sgm
+
+NAME = PrnSetup
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Stylemgr.tmpl b/cde/doc/common/help/Stylemgr.tmpl
new file mode 100644 (file)
index 0000000..66da46a
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Stylemgr/Concepts.sgm  Stylemgr/MetaInfo.sgm  Stylemgr/Tasks.sgm \
+    Stylemgr/GEntity.sgm   Stylemgr/Ref.sgm       Stylemgr/book.sgm \
+    Stylemgr/Home.sgm      Stylemgr/TOC.sgm
+
+NAME = Stylemgr
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Terminal.tmpl b/cde/doc/common/help/Terminal.tmpl
new file mode 100644 (file)
index 0000000..bfc5eef
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Terminal/GEntity.sgm   Terminal/Ref.sgm       Terminal/book.sgm \
+    Terminal/Home.sgm      Terminal/TOC.sgm \
+    Terminal/MetaInfo.sgm  Terminal/Tasks.sgm
+
+NAME = Terminal
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/Textedit.tmpl b/cde/doc/common/help/Textedit.tmpl
new file mode 100644 (file)
index 0000000..0526e80
--- /dev/null
@@ -0,0 +1,7 @@
+SRCS = \
+    Textedit/GEntity.sgm   Textedit/Ref.sgm       Textedit/book.sgm \
+    Textedit/Home.sgm      Textedit/TOC.sgm \
+    Textedit/MetaInfo.sgm  Textedit/Tasks.sgm
+
+NAME = Textedit
+include ../../common/help/sdlvolume.tmpl
diff --git a/cde/doc/common/help/sdlvolume.tmpl b/cde/doc/common/help/sdlvolume.tmpl
new file mode 100644 (file)
index 0000000..2c79fc9
--- /dev/null
@@ -0,0 +1,11 @@
+all:: ../help-sdl/$(NAME).sdl
+
+../help-sdl/$(NAME).sdl: $(SRCS)
+       $(MKDIR_P) ../help-sdl
+       LANG=$(LANG) SGML_SEARCH_PATH=".:.." $(LD_LIBRARY_PATH) \
+       DTLCXSEARCHPATH=$(srcdir)/lib/dthelp $(KSH) \
+       $(srcdir)/programs/dtdocbook/doc2sdl/dtdocbook -o \
+       ../help-sdl/$(NAME).sdl $(NAME)/book.sgm
+
+clean::
+       $(RM) ../help-sdl/$(NAME).sdl $(NAME)/book.log
diff --git a/cde/doc/de_DE.ISO8859-1/Makefile.am b/cde/doc/de_DE.ISO8859-1/Makefile.am
new file mode 100644 (file)
index 0000000..ed829a7
--- /dev/null
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = help guides
+
+clean::
+        $(RM) -r help-sdl cde.dti
diff --git a/cde/doc/de_DE.ISO8859-1/help/Makefile.am b/cde/doc/de_DE.ISO8859-1/help/Makefile.am
new file mode 100644 (file)
index 0000000..35ce1d9
--- /dev/null
@@ -0,0 +1,19 @@
+include ../../../programs/localized/templates/German.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/es_ES.ISO8859-1/Makefile.am b/cde/doc/es_ES.ISO8859-1/Makefile.am
new file mode 100644 (file)
index 0000000..ed829a7
--- /dev/null
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = help guides
+
+clean::
+        $(RM) -r help-sdl cde.dti
diff --git a/cde/doc/es_ES.ISO8859-1/help/Makefile.am b/cde/doc/es_ES.ISO8859-1/help/Makefile.am
new file mode 100644 (file)
index 0000000..cde83b6
--- /dev/null
@@ -0,0 +1,19 @@
+include ../../../programs/localized/templates/Spanish.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/fr_FR.ISO8859-1/Makefile.am b/cde/doc/fr_FR.ISO8859-1/Makefile.am
new file mode 100644 (file)
index 0000000..ed829a7
--- /dev/null
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = help guides
+
+clean::
+        $(RM) -r help-sdl cde.dti
diff --git a/cde/doc/fr_FR.ISO8859-1/help/Makefile.am b/cde/doc/fr_FR.ISO8859-1/help/Makefile.am
new file mode 100644 (file)
index 0000000..e55ce88
--- /dev/null
@@ -0,0 +1,19 @@
+include ../../../programs/localized/templates/French.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/it_IT.ISO8859-1/Makefile.am b/cde/doc/it_IT.ISO8859-1/Makefile.am
new file mode 100644 (file)
index 0000000..ed829a7
--- /dev/null
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = help guides
+
+clean::
+        $(RM) -r help-sdl cde.dti
diff --git a/cde/doc/it_IT.ISO8859-1/help/Makefile.am b/cde/doc/it_IT.ISO8859-1/help/Makefile.am
new file mode 100644 (file)
index 0000000..1c7f330
--- /dev/null
@@ -0,0 +1,19 @@
+include ../../../programs/localized/templates/Italian.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/ja_JP.dt-eucJP/help/Makefile.am b/cde/doc/ja_JP.dt-eucJP/help/Makefile.am
new file mode 100644 (file)
index 0000000..1976dbe
--- /dev/null
@@ -0,0 +1,20 @@
+include ../../../programs/localized/templates/Japanese.tmpl
+include ../../common/help/Appmanager.tmpl
+include ../../common/help/AppBuilder.tmpl
+include ../../common/help/Calculator.tmpl
+include ../../common/help/Calendar.tmpl
+include ../../common/help/CreatAct.tmpl
+include ../../common/help/FPanel.tmpl
+include ../../common/help/Filemgr.tmpl
+include ../../common/help/Help4Help.tmpl
+include ../../common/help/Iconed.tmpl
+include ../../common/help/Infomgr.tmpl
+include ../../common/help/Intromgr.tmpl
+include ../../common/help/LibDtPrint.tmpl
+include ../../common/help/Loginmgr.tmpl
+include ../../common/help/Mailer.tmpl
+include ../../common/help/Printmgr.tmpl
+include ../../common/help/PrnSetup.tmpl
+include ../../common/help/Stylemgr.tmpl
+include ../../common/help/Terminal.tmpl
+include ../../common/help/Textedit.tmpl
diff --git a/cde/doc/util/Makefile.am b/cde/doc/util/Makefile.am
new file mode 100644 (file)
index 0000000..619f03e
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = dbtoman
diff --git a/cde/doc/util/dbtoman/Makefile.am b/cde/doc/util/dbtoman/Makefile.am
new file mode 100644 (file)
index 0000000..c79bc58
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = instant
diff --git a/cde/doc/util/dbtoman/instant/Makefile.am b/cde/doc/util/dbtoman/instant/Makefile.am
new file mode 100644 (file)
index 0000000..d52e71a
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = instant
+
+instant_CFLAGS = -I$(srcdir)/programs/dtdocbook/lib/tptregexp
+
+instant_LDFLAGS = -L$(srcdir)/programs/dtdocbook/lib/tptregexp -ltptregexp
+
+instant_SOURCES = main.c util.c info.c translate.c traninit.c tranvar.c \
+                 tables.c browse.c
diff --git a/cde/include/Dt/Action.h b/cde/include/Dt/Action.h
new file mode 100644 (file)
index 0000000..63550e5
--- /dev/null
@@ -0,0 +1,139 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: Action.h /main/4 1998/05/06 15:55:18 rafi $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Action_h
+#define _Dt_Action_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Argument types
+ */
+
+#define DtACTION_FILE   1      /* file argument */
+#define DtACTION_BUFFER         2      /* buffer argument */
+#define DtACTION_STRING         3      /* string argument */
+#define DtACTION_NULLARG 4     /* untyped return-only argument */
+
+typedef struct {
+       void *bp;               /* location of buffer */
+       int size;               /* size of buffer in bytes */
+       char *type;             /* (opt.) type of buffer */
+        char *name;            /* (opt.) name of buffer object */
+        Boolean writable;      /* allow changes to buffer object? */
+} DtActionBuffer;
+
+typedef struct {
+       char *name;
+} DtActionFile;
+
+typedef struct {
+       /*
+        * Structure containing argument information
+        */
+       int argClass;           /* see argument types */
+       union {
+               DtActionFile    file;
+               DtActionBuffer  buffer;
+        } u;
+} DtActionArg;
+
+/*
+ * DtActionStatus codes
+ */
+typedef enum {
+       DtACTION_OK,                    /* If not any of the below */
+       DtACTION_INVALID_ID,            /* ID is not valid */
+       DtACTION_INVOKED,               /* the action invocation step is done */
+       DtACTION_STATUS_UPDATE,         /* status update */
+       DtACTION_DONE,                  /* normal action termination code */
+       DtACTION_FAILED,                /* error running action */
+       DtACTION_CANCELED               /* normal action termination by cancel*/
+} DtActionStatus;
+
+typedef void (*DtDbReloadCallbackProc)(
+               XtPointer       clientData);
+
+/*
+ * DtActionInvocationID is the fundamental user-space handle to invoked
+ * actions.
+ */
+typedef unsigned long DtActionInvocationID;
+
+typedef void (*DtActionCallbackProc) (
+               DtActionInvocationID    id,
+               XtPointer       client_data,
+               DtActionArg     *actionArgPtr,
+               int             actionArgCount,
+               DtActionStatus  status);
+
+/*
+ * Functions
+ */
+
+extern Boolean DtActionExists(
+               char            *actionName);
+
+extern char * DtActionLabel(
+               char            *actionName);
+
+extern char * DtActionDescription(
+               char            *actionName);
+
+extern void DtDbReloadNotify ( 
+               DtDbReloadCallbackProc proc, 
+               XtPointer       clientData);
+
+extern void DtDbLoad(void);
+
+extern DtActionInvocationID DtActionInvoke (
+               Widget          w,
+               char            *action,
+               DtActionArg     *args,
+               int             argCount,
+               char            *termOpts,
+               char            *execHost,
+               char            *contextDir,
+               int             useIndicator,
+               DtActionCallbackProc statusUpdateCb,
+               XtPointer       client_data);
+
+extern char * DtActionIcon(
+               char            *actionName);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Action_h */
diff --git a/cde/include/Dt/ActionDb.h b/cde/include/Dt/ActionDb.h
new file mode 100644 (file)
index 0000000..397cb18
--- /dev/null
@@ -0,0 +1,241 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*****************************************************************************
+ *
+ * File:         ActionDb.h
+ * RCS:          $XConsortium: ActionDb.h /main/3 1995/10/26 14:58:38 rswiston $
+ * Description:  Internal header file for the action database functions.
+ * Language:     C
+ * Package:      N/A
+ * Status:       Experimental (Do Not Distribute)
+ *
+ *
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ *****************************************************************************/
+
+#ifndef _Dt_ActionDb_h
+#define _Dt_ActionDb_h
+
+
+/*
+ * The following constants are used by the database parsing code to
+ * identify the field names for an action definition.
+ *
+ * Recognized Field names for any action definition.
+ */
+#define        _DtACTION_NAME                  "ACTION"
+#define _DtACTION_TYPE                 "TYPE"
+#define _DtACTION_LABEL                        "LABEL"
+#define _DtACTION_ARG_CLASS            "ARG_CLASS"
+#define _DtACTION_ARG_MODE             "ARG_MODE"
+#define _DtACTION_ARG_TYPE             "ARG_TYPE"
+#define _DtACTION_ARG_COUNT            "ARG_COUNT"
+#define _DtACTION_DESCRIPTION          "DESCRIPTION"
+#define _DtACTION_ICON                 "ICON"
+#define _DtACTION_INSTANCE_ICON                "INSTANCE_ICON"
+
+/*
+ * Miscellaneous syntax strings
+ */
+#define        _DtACT_ANY                      "*"
+#define _DtACT_LIST_SEPARATOR_CHAR     ','
+#define _DtACT_GT_CHAR                 '>'
+#define        _DtACT_LT_CHAR                  '<'
+
+
+/*
+ * Valid values for ACTION_TYPE
+ */
+#define _DtACTION_MAP          "MAP"
+#define _DtACTION_COMMAND      "COMMAND"
+#define _DtACTION_TT_MSG       "TT_MSG"
+
+#ifdef  _DT_ALLOW_DT_MSGS
+
+#define _DtACTION_DT_REQUEST   "DT_REQUEST"
+#define _DtACTION_DT_NOTIFY    "DT_NOTIFY"
+#endif /* _DT_ALLOW_DT_MSGS */
+
+/*
+ * Field names for "MAP" type actions
+ */
+
+#define _DtACTION_MAP_ACTION   "MAP_ACTION"
+
+/*
+ * Field names for the "COMMAND" type actions.
+ */
+#define _DtACTION_EXEC_STRING          "EXEC_STRING"
+#define _DtACTION_EXEC_HOST            "EXEC_HOST"
+#define _DtACTION_CWD                  "CWD"
+#define _DtACTION_WINDOW_TYPE          "WINDOW_TYPE"
+#define _DtACTION_TERM_OPTS            "TERM_OPTS"
+
+/*
+ * Field names for "TT_MSG" type actions
+ */
+#define _DtACTION_TT_CLASS             "TT_CLASS"
+#define _DtACTION_TT_SCOPE             "TT_SCOPE"
+#define _DtACTION_TT_OPERATION         "TT_OPERATION"
+#define _DtACTION_TT_FILE              "TT_FILE"
+/* definitions to decifer TT_ARGn_* fields */
+#define _DtACTION_TTN_ARG              "TT_ARG"
+#define _DtACTION_TTN_MODE             "_MODE"
+#define _DtACTION_TTN_VTYPE            "_VTYPE"
+#define _DtACTION_TTN_REP_TYPE         "_REP_TYPE"
+#define _DtACTION_TTN_VALUE            "_VALUE"
+
+
+#ifdef _DT_ALLOW_DT_MSGS
+/*
+ * Field names for "DT_REQUEST" type actions
+ */
+#define _DtACTION_DT_REQUEST_NAME      "DT_REQUEST_NAME"
+#define _DtACTION_DT_SVC               "DT_SVC"
+
+/*
+ * Field names for "DT_NOTIFY" type actions
+ */
+#define _DtACTION_DT_NOTIFY_NAME       "DT_NOTIFY_NAME"
+#define _DtACTION_DT_NGROUP            "DT_NGROUP"
+
+/*
+ * Field names for DT ARGn (either request or notify)
+ */
+#define _DtACTION_DTN_ARG              "DT_ARG"
+#define _DtACTION_DTN_VALUE            "_VALUE"
+
+#endif /* _DT_ALLOW_DT_MSGS */
+
+/*
+ * Valid  Field value strings
+ *     for Command Actions Window Types
+ */
+#define _DtACTION_TERMINAL             "TERMINAL"
+#define        _DtACTION_PERM_TERMINAL         "PERM_TERMINAL"
+#define _DtACTION_NO_STDIO             "NO_STDIO"
+
+/*
+ * Valid Field values for ARG_CLASS records.
+ */
+#define        _DtACTION_BUFFER                "BUFFER"
+#define _DtACTION_FILE                 "FILE"
+#define _DtACTION_STRING               "STRING"
+
+/*
+ * Valid Field values for ARG_MODE 
+ */
+
+#define                _DtACT_ARG_MODE_WRITE           "w"
+#define                _DtACT_ARG_MODE_NOWRITE         "!w"
+#define                _DtACT_ARG_MODE_ANY             _DtACT_ANY
+
+
+/*
+ * Valid Field values for TT_CLASS records.
+ */
+#define _DtACTION_TT_NOTICE            "TT_NOTICE"
+#define _DtACTION_TT_REQUEST           "TT_REQUEST"
+
+/*
+ * Valid Field values for TT_SCOPE records.
+ */
+#define _DtACTION_TT_SESSION           "TT_SESSION"
+#define _DtACTION_TT_BOTH              "TT_BOTH"
+#define _DtACTION_TT_FILE_IN_SESSION   "TT_FILE_IN_SESSION"
+/* --- same as TT_MSG's TT_FILE field name --------
+ #define _DtACTION_TT_FILE             "TT_FILE"
+ */
+
+/*
+ * Valid Field values for TT_ARGn_MODE
+ */
+#define _DtACTION_TT_MODE_IN           "TT_IN"
+#define _DtACTION_TT_MODE_OUT          "TT_OUT"
+#define _DtACTION_TT_MODE_INOUT                "TT_INOUT"
+
+/*
+ * Valid Field values for TT_ARGn_REP_TYPE
+ */
+#define _DtACTION_TT_RTYP_UND  "TT_REP_UNDEFINED"
+#define _DtACTION_TT_RTYP_INT  "TT_REP_INTEGER"
+#define _DtACTION_TT_RTYP_BUF  "TT_REP_BUFFER"
+#define _DtACTION_TT_RTYP_STR  "TT_REP_STRING"
+
+/*
+ * Action Keywords -- 
+ *                 these keywords appear in the action database files
+ *                  in the form: %<qualifier><keyword><prompt string>%
+ *                 where the optional qualifier in enclosed in: ()
+ *                 and the optional prompt string is enclosed in: ""
+ */
+#define        _DtACT_DATABASEHOST_STR         "DatabaseHost"
+#define _DtACT_DISPLAYHOST_STR         "DisplayHost"
+#define _DtACT_LOCALHOST_STR           "LocalHost"
+#define _DtACT_SESSIONHOST_STR         "SessionHost"
+#define _DtACT_ARGS_STR                        "Args"
+#define _DtACT_ARG_UNDER_STR           "Arg_"
+
+#define _DtACT_STRING_QUALIFIER                "(String)"
+#define _DtACT_FILE_QUALIFIER          "(File)"
+
+
+
+/*
+ * Default action field value definitions (these should be strings)
+ * for recognized fields.
+ */
+#define                _DtACT_LBL_DFLT         NULL
+#define                _DtACT_TYPE_DFLT        _DtACTION_COMMAND
+#define                _DtACT_ARG_CLASS_DFLT   _DtACT_ANY
+#define                _DtACT_ARG_MODE_DFLT    _DtACT_ANY
+#define                _DtACT_ARG_TYPE_DFLT    _DtACT_ANY
+#define                _DtACT_ARG_CNT_DFLT     _DtACT_ANY
+#define                _DtACT_DESC_DFLT        NULL
+#define                _DtACT_ICON_DFLT        NULL
+#define                _DtACT_MAP_ACT_DFLT     NULL
+#define                _DtACT_EXEC_STRG_DFLT   NULL
+#define                _DtACT_EXEC_HOST_DFLT   \
+       "%" _DtACT_DATABASEHOST_STR "%,%" _DtACT_LOCALHOST_STR "%"
+#define                _DtACT_CWD_DFLT         NULL
+#define                _DtACT_WIN_TYPE_DFLT    _DtACTION_PERM_TERMINAL
+#define                _DtACT_TERM_OPTS_DFLT   NULL
+#define                _DtACT_TT_CLASS_DFLT    NULL
+#define                _DtACT_TT_SCOPE_DFLT    NULL
+#define                _DtACT_TT_OP_DFLT       NULL
+#define                _DtACT_TT_FILE_DFLT     NULL
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define                _DtACT_DT_REQ_DFLT      NULL
+#define                _DtACT_DT_SVC_DFLT      NULL
+#define                _DtACT_DT_NTFY_DFLT     NULL
+#define                _DtACT_DT_NGRP_DFLT     NULL
+#endif /* _DT_ALLOW_DT_MSGS */
+
+
+
+#endif /* _Dt_ActionDb_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ActionDbP.h b/cde/include/Dt/ActionDbP.h
new file mode 100644 (file)
index 0000000..5c24e00
--- /dev/null
@@ -0,0 +1,143 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*****************************************************************************
+ *
+ * File:         ActionDbP.h
+ * RCS:          $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
+ * Description:  Private header file for the action database functions.
+ * Language:     C
+ * Package:      N/A
+ *
+ *
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ *****************************************************************************/
+
+#ifndef _Dt_ActionDbP_h
+#define _Dt_ActionDbP_h
+
+#include <Dt/DbReader.h>
+#include <Dt/ActionDb.h>
+
+#define                _DtMAX_NUM_FIELDS               30
+#define                _ActDb_MAX_NUM_FIELDS   _DtMAX_NUM_FIELDS
+
+
+/*
+ * Bitmask field definitions for the action converter bit mask.
+ * These are NOT the bits for the mask in struct ACTION.
+ */
+
+#define                _ActDb_LABEL_SET        (1<<0)
+#define                _ActDb_TYPE_SET         (1<<1)
+#define                _ActDb_ARG_CLASS_SET    (1<<2)
+#define                _ActDb_ARG_TYPE_SET     (1<<3)
+#define                _ActDb_ARG_COUNT_SET    (1<<4)
+#define                _ActDb_ARG_MODE_SET     (1<<5)
+#define                _ActDb_DESCRIPTION_SET  (1<<6)
+#define                _ActDb_ICON_SET         (1<<7)
+
+#define                _ActDb_MAP_ACTION_SET   (1<<10)
+
+#define                _ActDb_EXEC_STRING_SET  (1<<12)
+#define                _ActDb_EXEC_HOST_SET    (1<<13)
+#define                _ActDb_CWD_SET          (1<<14)
+#define                _ActDb_WINDOW_TYPE_SET  (1<<15)
+#define                _ActDb_TERM_OPTS_SET    (1<<16)
+
+#define                _ActDb_TT_CLASS_SET     (1<<18)
+#define                _ActDb_TT_SCOPE_SET     (1<<19)
+#define                _ActDb_TT_OPERATION_SET (1<<20)
+#define                _ActDb_TT_FILE_SET      (1<<21)
+#define                _ActDb_TT_ARGN_MODE_SET (1<<22)
+#define                _ActDb_TT_ARGN_VTYP_SET (1<<23)
+#define                _ActDb_TT_ARGN_RTYP_SET (1<<24)
+#define                _ActDb_TT_ARGN_VAL_SET  (1<<25)
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define                _ActDb_DT_REQ_NAME_SET  (1<<26)
+#define                _ActDb_DT_SVC_SET       (1<<27)
+
+#define                _ActDb_DT_NTFY_NAME_SET (1<<28)
+#define                _ActDb_DT_NGROUP_SET    (1<<29)
+#define                _ActDb_DT_ARGN_VAL_SET  (1<<30)
+/* no mask for ARGn strings */
+
+
+#define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET  \
+                                 | _ActDb_DT_SVC_SET )
+#define _ActDb_DT_NOTIFY_BITS  ( _ActDb_DT_NTFY_NAME_SET \
+                                 | _ActDb_DT_NGROUP_SET )
+#endif  /* _DT_ALLOW_DT_MSGS */
+#define _ActDb_TT_BITS         ( _ActDb_TT_CLASS_SET \
+                                 | _ActDb_TT_SCOPE_SET \
+                                 | _ActDb_TT_OPERATION_SET \
+                                 | _ActDb_TT_ARGN_MODE_SET \
+                                 | _ActDb_TT_ARGN_VTYP_SET \
+                                 | _ActDb_TT_ARGN_RTYP_SET \
+                                 | _ActDb_TT_ARGN_VAL_SET \
+                                 | _ActDb_TT_FILE_SET )
+#define _ActDb_CMD_BITS                ( _ActDb_EXEC_STRING_SET \
+                                 | _ActDb_CWD_SET \
+                                 | _ActDb_WINDOW_TYPE_SET \
+                                 | _ActDb_TERM_OPTS_SET )
+#define _ActDb_MAP_BITS                ( _ActDb_MAP_ACTION_SET )
+
+#define _ActDb_TT_ARGN_BITS    ( _ActDb_TT_ARGN_MODE_SET \
+                                 | _ActDb_TT_ARGN_VTYP_SET \
+                                 | _ActDb_TT_ARGN_RTYP_SET \
+                                 | _ActDb_TT_ARGN_VAL_SET )
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define _ActDb_ARGN_BITS       ( _ActDb_TT_ARGN_BITS \
+                                 | _ActDb_DT_ARGN_VAL_SET )
+#else
+#define _ActDb_ARGN_BITS       ( _ActDb_TT_ARGN_BITS )
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+
+/******************************************************************************
+ *
+ * Private (but external) entry points for internal use by Action Database
+ * Library code only.
+ *
+ *****************************************************************************/
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif
+
+
+extern Boolean _DtActionConverter( DtDtsDbField *fields,
+               DtDbPathId pathId,
+               char *hostPrefix,
+               Boolean rejectionStatus);
+
+
+#  ifdef __cplusplus
+}
+#  endif
+#endif /* _Dt_ActionDbP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ActionFind.h b/cde/include/Dt/ActionFind.h
new file mode 100644 (file)
index 0000000..66edf99
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ActionFind.h /main/4 1995/10/26 14:59:41 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        ActionFind.h
+ **
+ **   Project:     DT
+ **
+ **   Description: Public include file for the ActionFind functions.
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _Dt_ActionFind_h
+#define _Dt_ActionFind_h
+
+#include <X11/Xlib.h>
+#include <X11/Xresource.h>
+
+#include <Dt/ActionP.h>
+#include <Dt/DtsDb.h>
+#include <Dt/DtsMM.h>
+
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif
+
+extern void _DtSortActionDb(void);
+extern ActionPtr
+_DtActionFindDBEntry(  ActionRequest *reqp,
+                       DtShmBoson actQuark );
+
+#  ifdef __cplusplus
+}
+#  endif
+
+
+#endif /* _Dt_ActionFind_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
diff --git a/cde/include/Dt/ActionP.h b/cde/include/Dt/ActionP.h
new file mode 100644 (file)
index 0000000..5a5777c
--- /dev/null
@@ -0,0 +1,849 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ActionP.h /main/3 1995/10/26 14:59:56 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        ActionP.h
+ **
+ **   Project:     DT
+ **
+ **   Description: Private include file for the Action Library.
+ **
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _ActionP_h
+#define _ActionP_h
+
+#include <Dt/DtP.h>
+#include <Dt/DbReader.h>
+#include <Dt/ActionDb.h>
+#include <Dt/Action.h>
+#include <Tt/tttk.h>
+#include <Dt/DtShmDb.h>
+/*
+ * Environment Variable Names
+ */
+#define ENV_SESSION_SVR                "SESSION_SVR"
+/*
+ * Define maximum static buffer size for action code.
+ */
+#define        _DtAct_MAX_BUF_SIZE     1024
+
+/*
+ * Data-type field which contains the template for producing filenames
+ * of a given type.
+ */
+#define  _DtActNAME_TEMPLATE   "NAME_TEMPLATE"
+#define  _DtActIS_EXECUTABLE   "IS_EXECUTABLE"
+
+/******************************************************************************
+ *
+ * MASK LAYOUT:
+ *
+ * The same layout is used for all the masks (defined herein);, independent of
+ * the data structure in which they are defined.  That is, all bit fields for
+ * all masks are non-overlapping.  In general, the mask in any given structure
+ * should ONLY contain information in the field appropriate for that structure. 
+ *
+ * The action bit mask is broken into the following fields
+ *
+ *   --------------------------------------------------------------------------
+ *   |act'n |arg  |arg  |arg | win   |args|  request   | object   |treat| not |
+ *   |type  |class|count|typ | type  |    |  status    | status   | as  |     |
+ *   |bits  |bits |bits |bit | bits  |used|   bits     | bits     |file |used |
+ *   --------------------------------------------------------------------------
+ *   0 - 4,5 - 8,9 - 12, 13 ,14 - 17,18-19,20 ------- 22,23 ---- 28, 29 ,30-31
+ *   |                               |    |            |          |     |
+ *   |<--       action mask       -->|    |<- request->|<- obj. ->|< - >|
+ *                                            mask         data     |
+ *                                                          mask    msgCcomp.
+ *                                                                   mask      
+ ******************************************************************************/
+
+/*
+ * generic bit manipulation macros
+ */
+#define SET_ANY_BITS(mask,bits)                ( mask |= (bits) )
+#define RESET_ANY_BITS(mask,bits)      ( mask &= ~(bits) )
+#define TST_ANY_BITS(mask,bits)                ( mask & (bits) )
+
+/*
+ * Action type bits
+ */
+#define        _DtAct_CMD_BIT                          (1<<0)
+#define        _DtAct_MAP_BIT                          (1<<1)
+#define _DtAct_TT_MSG_BIT                      (1<<2)
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define _DtAct_DT_REQ_MSG_BIT                  (1<<3)
+#define _DtAct_DT_NTFY_MSG_BIT                 (1<<4)
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+/*
+ * Action structure mask bits
+ */
+#define _DtAct_ARG_CLASS_FILE_BIT              (1<<5)
+#define _DtAct_ARG_CLASS_STRING_BIT            (1<<6)
+#define _DtAct_ARG_CLASS_BUFFER_BIT            (1<<7)
+#define _DtAct_ARG_CLASS_WILD_BIT              (1<<8)
+
+#define _DtAct_ARG_COUNT_LT_BIT                        (1<<9)
+#define _DtAct_ARG_COUNT_GT_BIT                        (1<<10)
+#define _DtAct_ARG_COUNT_EQ_BIT                        (1<<11)
+#define _DtAct_ARG_COUNT_WILD_BIT              (1<<12)
+
+#define        _DtAct_ARG_TYPE_WILD_BIT                (1<<13)
+
+#define _DtAct_NO_STDIO_BIT                    (1<<14)
+#define _DtAct_TERMINAL_BIT                    (1<<15)
+#define _DtAct_PERM_TERM_BIT                   (1<<16)
+
+/*
+ * Defines which reflect the actual number
+ * of %ARGn% instances found in the action definition
+ * NOTE: Is this JUST in the EXEC_STRING? or the total number of %ARGn%'s
+ * referenced in all parssed definitions?
+ *
+ */
+#define _DtAct_SINGLE_ARG_BIT                  (1<<18)
+#define _DtAct_MULTI_ARG_BIT                   (1<<19)
+
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define _DtAct_ACTION_TYPE_BITS        (  _DtAct_CMD_BIT \
+                                | _DtAct_MAP_BIT \
+                                | _DtAct_DT_NTFY_MSG_BIT \
+                                | _DtAct_DT_REQ_MSG_BIT \
+                                | _DtAct_TT_MSG_BIT )
+#else
+#define _DtAct_ACTION_TYPE_BITS        (  _DtAct_CMD_BIT \
+                                | _DtAct_MAP_BIT \
+                                | _DtAct_TT_MSG_BIT )
+#endif  /* _DT_ALLOW_DT_MSGS */
+#define        _DtAct_ARG_CLASS_BITS   (   _DtAct_ARG_CLASS_FILE_BIT \
+                                | _DtAct_ARG_CLASS_STRING_BIT\
+                                | _DtAct_ARG_CLASS_BUFFER_BIT \
+                                | _DtAct_ARG_CLASS_WILD_BIT  )
+#define _DtAct_ARG_TYPE_BITS   (   _DtAct_ARG_TYPE_WILD_BIT  )
+#define _DtAct_ARG_COUNT_BITS  (  _DtAct_ARG_COUNT_LT_BIT \
+                                | _DtAct_ARG_COUNT_GT_BIT \
+                                | _DtAct_ARG_COUNT_EQ_BIT \
+                                | _DtAct_ARG_COUNT_WILD_BIT )
+#define _DtAct_WINTYPE_BITS    (  _DtAct_NO_STDIO_BIT \
+                                | _DtAct_TERMINAL_BIT \
+                                | _DtAct_PERM_TERM_BIT )
+#define _DtAct_ARGS_USED_BITS  (  _DtAct_SINGLE_ARG \
+                                | _DtAct_MULTI_ARG  )
+
+#define _DtAct_ACTION_BITS     (  _DtAct_ACTION_TYPE_BITS \
+                                | _DtAct_ARG_CLASS_BITS \
+                                | _DtAct_ARG_TYPE_BITS  \
+                                | _DtAct_ARG_COUNT_BITS \
+                                | _DtAct_WINTYPE_BITS \
+                                | _DtAct_ARGS_USED_BITS  )
+
+#define IS_CMD(mask)                   ( mask & _DtAct_CMD_BIT )
+#define IS_MAP(mask)                   ( mask & _DtAct_MAP_BIT )
+#define IS_TT_MSG(mask)                        ( mask & _DtAct_TT_MSG_BIT )
+
+#ifdef _DT_ALLOW_DT_MSGS
+#define IS_DT_REQ_MSG(mask)            ( mask & _DtAct_DT_REQ_MSG_BIT )
+#define IS_DT_NOTIFY_MSG(mask)         ( mask & _DtAct_DT_NTFY_MSG_BIT )
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+#define SET_CMD_ACTION(mask)           ( mask |= _DtAct_CMD_BIT )
+#define SET_MAP_ACTION(mask)           ( mask |= _DtAct_MAP_BIT )
+#define SET_TT_MSG(mask)               ( mask |= _DtAct_TT_MSG_BIT )
+#ifdef _DT_ALLOW_DT_MSGS
+#define SET_DT_REQUEST_MSG(mask)       ( mask |= _DtAct_DT_REQ_MSG_BIT)
+#define SET_DT_NOTIFY_MSG(mask)                ( mask |= _DtAct_DT_NTFY_MSG_BIT)
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+#define RESET_CMD_ACTION(mask)         ( mask &= ~(_DtAct_CMD_BIT))
+#define RESET_MAP_ACTION(mask)         ( mask &= ~(_DtAct_MAP_BIT))
+#define RESET_TT_MSG(mask)             ( mask &= ~(_DtAct_TT_MSG_BIT))
+#ifdef _DT_ALLOW_DT_MSGS
+#define RESET_DT_REQ_MSG(mask)         ( mask &= ~(_DtAct_DT_REQ_MSG_BIT))
+#define RESET_DT_NOTIFY_MSG(mask)      ( mask &= ~(_DtAct_DT_NTFY_MSG_BIT))
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+#define IS_NO_STDIO(mask)              ( mask & _DtAct_NO_STDIO_BIT )
+#define IS_TERMINAL(mask)              ( mask & _DtAct_TERMINAL_BIT )
+#define IS_PERM_TERM(mask)             ( mask & _DtAct_PERM_TERM_BIT)
+
+#define SET_NO_STDIO(mask)             ( mask |= _DtAct_NO_STDIO_BIT )
+#define SET_TERMINAL(mask)             ( mask |= _DtAct_TERMINAL_BIT )
+#define SET_PERM_TERM(mask)            ( mask |= _DtAct_PERM_TERM_BIT )
+
+#define RESET_NO_STDIO(mask)           ( mask &= ~(_DtAct_NO_STDIO_BIT ))
+#define RESET_TERMINAL(mask)           ( mask &= ~(_DtAct_TERMINAL_BIT ))
+#define RESET_PERM_TERM(mask)          ( mask &= ~(_DtAct_PERM_TERM_BIT ))
+
+#define        IS_ARG_CLASS_FILE(mask)         ( mask & _DtAct_ARG_CLASS_FILE_BIT )
+#define IS_ARG_CLASS_STRING(mask)      ( mask & _DtAct_ARG_CLASS_STRING_BIT )
+#define IS_ARG_CLASS_BUFFER(mask)      ( mask & _DtAct_ARG_CLASS_BUFFER_BIT )
+#define IS_ARG_CLASS_WILD(mask)                ( mask & _DtAct_ARG_CLASS_WILD_BIT )
+
+#define        SET_ARG_CLASS_FILE(mask)        ( mask |= _DtAct_ARG_CLASS_FILE_BIT )
+#define SET_ARG_CLASS_STRING(mask)     ( mask |= _DtAct_ARG_CLASS_STRING_BIT)
+#define SET_ARG_CLASS_BUFFER(mask)     ( mask |= _DtAct_ARG_CLASS_BUFFER_BIT)
+#define SET_ARG_CLASS_WILD(mask)       ( mask |= _DtAct_ARG_CLASS_WILD_BIT )
+
+#define RESET_ARG_CLASS_FILE(mask)     (mask &= ~(_DtAct_ARG_CLASS_FILE_BIT))
+#define RESET_ARG_CLASS_STRING(mask)   (mask &= ~(_DtAct_ARG_CLASS_STRING_BIT))
+#define RESET_ARG_CLASS_BUFFER(mask)   (mask &= ~(_DtAct_ARG_CLASS_BUFFER_BIT))
+#define RESET_ARG_CLASS_WILD(mask)     (mask &= ~(_DtAct_ARG_CLASS_WILD_BIT))
+
+
+#define IS_ARG_TYPE_WILD(mask)         ( mask & _DtAct_ARG_TYPE_WILD_BIT )
+
+#define SET_ARG_TYPE_WILD(mask)                ( mask |= _DtAct_ARG_TYPE_WILD_BIT )
+
+#define RESET_ARG_TYPE_WILD(mask)      ( mask &= ~(_DtAct_ARG_TYPE_WILD_BIT))
+
+#define IS_ARG_COUNT_GT(mask)          ( mask & _DtAct_ARG_COUNT_GT_BIT )
+#define IS_ARG_COUNT_LT(mask)          ( mask & _DtAct_ARG_COUNT_LT_BIT )
+#define IS_ARG_COUNT_EQ(mask)          ( mask & _DtAct_ARG_COUNT_EQ_BIT )
+#define IS_ARG_COUNT_WILD(mask)        ( mask & _DtAct_ARG_COUNT_WILD_BIT )
+
+#define SET_ARG_COUNT_GT(mask)         ( mask |= _DtAct_ARG_COUNT_GT_BIT )
+#define SET_ARG_COUNT_LT(mask)         ( mask |= _DtAct_ARG_COUNT_LT_BIT )
+#define SET_ARG_COUNT_EQ(mask)         ( mask |= _DtAct_ARG_COUNT_EQ_BIT )
+#define SET_ARG_COUNT_WILD(mask)       ( mask |= _DtAct_ARG_COUNT_WILD_BIT )
+
+#define RESET_ARG_COUNT_GT(mask)       ( mask &= ~(_DtAct_ARG_COUNT_GT_BIT ))
+#define RESET_ARG_COUNT_LT(mask)       ( mask &= ~(_DtAct_ARG_COUNT_LT_BIT ))
+#define RESET_ARG_COUNT_EQ(mask)       ( mask &= ~(_DtAct_ARG_COUNT_EQ_BIT ))
+#define RESET_ARG_COUNT_WILD(mask)     ( mask &= ~(_DtAct_ARG_COUNT_WILD_BIT ))
+
+/*
+ * Use of the logical "NOT" operator(!) instead of the bitwise negation
+ * operator(~) is intentional in IS_ARG_NONE_FOUND.
+ */
+#define IS_ARG_NONE_FOUND(mask)                !( mask & ( _DtAct_SINGLE_ARG_BIT \
+                                                 | _DtAct_MULTI_ARG_BIT ))
+#define IS_ARG_SINGLE_ARG(mask)                ( mask &  _DtAct_SINGLE_ARG_BIT )
+#define IS_ARG_MULTI_ARG(mask)         ( mask &  _DtAct_MULTI_ARG_BIT )
+
+#define SET_ARG_NONE_FOUND(mask)       ( mask &= ~( _DtAct_SINGLE_ARG_BIT \
+                                                   | _DtAct_MULTI_ARG_BIT ))
+#define SET_ARG_SINGLE_ARG(mask)       ((mask |= _DtAct_SINGLE_ARG_BIT), \
+                                       ( mask &= ~(_DtAct_MULTI_ARG_BIT)))
+#define SET_ARG_MULTI_ARG(mask)                ((mask |= _DtAct_MULTI_ARG_BIT), \
+                                       ( mask &= ~(_DtAct_SINGLE_ARG_BIT)))
+
+#define RESET_ARG_SINGLE_ARG(mask)     ( mask &= ~(_DtAct_SINGLE_ARG_BIT))
+#define RESET_ARG_MULTI_ARG(mask)      ( mask &= ~(_DtAct_MULTI_ARG_BIT))
+
+/*
+ * ActionRequest structure mask bits
+ */
+
+#define        _DtAct_REPROCESSING_BIT                 (1<<20)
+#define _DtAct_TOO_MANY_MAPS_BIT               (1<<21)
+#define _DtAct_CLONED_REQUEST_BIT              (1<<22)
+
+#define _DtAct_ACTION_REQUEST_BITS     (   _DtAct_REPROCESSING_BIT \
+                                         | _DtAct_TOO_MANY_MAPS_BIT \
+                                         | _DtAct_CLONED_REQUEST_BIT )
+
+#define IS_REPROCESSING(mask)          ( mask & _DtAct_REPROCESSING_BIT )
+#define IS_TOO_MANY_MAPS(mask)         ( mask & _DtAct_TOO_MANY_MAPS_BIT )
+#define IS_CLONED_REQUEST(mask)                ( mask & _DtAct_CLONED_REQUEST_BIT )
+
+#define SET_REPROCESSING(mask)         ( mask |= _DtAct_REPROCESSING_BIT )
+#define SET_TOO_MANY_MAPS(mask)                ( mask |= _DtAct_TOO_MANY_MAPS_BIT )
+#define SET_CLONED_REQUEST(mask)       ( mask |= _DtAct_CLONED_REQUEST_BIT )
+
+#define RESET_REPROCESSING(mask)       ( mask &= ~(_DtAct_REPROCESSING_BIT))
+#define RESET_TOO_MANY_MAPS(mask)      ( mask &= ~(_DtAct_TOO_MANY_MAPS_BIT))
+#define RESET_CLONED_REQUEST(mask)     ( mask &= ~(_DtAct_CLONED_REQUEST_BIT))
+
+
+/*
+ * ObjectData structure mask bits
+ *
+ */
+
+#define _DtAct_WRITE_OBJ_BIT           (1<<23)
+#define _DtAct_FILE_OBJ_BIT            (1<<24)
+#define _DtAct_BUFFER_OBJ_BIT          (1<<25)
+#define _DtAct_STRING_OBJ_BIT          (1<<26)
+#define _DtAct_DIR_OBJ_BIT             (1<<27)
+#define _DtAct_UNKNOWN_IF_DIR_BIT      (1<<28)
+
+#define _DtAct_OBJ_DATA_BITS           (  _DtAct_WRITE_OBJ_BIT \
+                                        | _DtAct_FILE_OBJ_BIT \
+                                        | _DtAct_DIR_OBJ_BIT  \
+                                        | _DtAct_BUFFER_OBJ_BIT \
+                                        | _DtAct_STRING_OBJ_BIT \
+                                        | _DtAct_UNKNOWN_IF_DIR_BIT )
+
+#define        IS_WRITE_OBJ(mask)              ( mask & _DtAct_WRITE_OBJ_BIT )
+#define        IS_FILE_OBJ(mask)               ( mask & _DtAct_FILE_OBJ_BIT )
+#define IS_BUFFER_OBJ(mask)            ( mask & _DtAct_BUFFER_OBJ_BIT )
+#define IS_STRING_OBJ(mask)            ( mask & _DtAct_STRING_OBJ_BIT )
+#define IS_UNKNOWN_IF_DIR(mask)                ( mask & _DtAct_UNKNOWN_IF_DIR_BIT )
+#define        IS_DIR_OBJ(mask)                ( mask & \
+                                         ( _DtAct_UNKNOWN_IF_DIR_BIT \
+                                         | _DtAct_DIR_OBJ_BIT ) \
+                                          == _DtAct_DIR_OBJ_BIT)
+
+#define SET_WRITE_OBJ(mask)            ( mask |= _DtAct_WRITE_OBJ_BIT )
+#define SET_FILE_OBJ(mask)             ( mask |= _DtAct_FILE_OBJ_BIT )
+#define SET_BUFFER_OBJ(mask)           ( mask |= _DtAct_BUFFER_OBJ_BIT )
+#define SET_STRING_OBJ(mask)           ( mask |= _DtAct_STRING_OBJ_BIT )
+#define SET_DIR_OBJ(mask)              ( mask |= _DtAct_DIR_OBJ_BIT )
+#define SET_UNKNOWN_IF_DIR(mask)       ( mask |= _DtAct_UNKNOWN_IF_DIR_BIT)
+
+#define RESET_WRITE_OBJ(mask)          ( mask &= ~(_DtAct_WRITE_OBJ_BIT))
+#define RESET_FILE_OBJ(mask)           ( mask &= ~(_DtAct_FILE_OBJ_BIT))
+#define RESET_BUFFER_OBJ(mask)         ( mask &= ~(_DtAct_BUFFER_OBJ_BIT))
+#define RESET_STRING_OBJ(mask)         ( mask &= ~(_DtAct_STRING_OBJ_BIT))
+#define RESET_DIR_OBJ(mask)            ( mask &= ~(_DtAct_DIR_OBJ_BIT))
+#define RESET_UNKNOWN_IF_DIR(mask)     ( mask &= ~(_DtAct_UNKNOWN_IF_DIR_BIT))
+
+
+/*
+ * MsgComponent structure mask bits (shared with Object Data?)
+ */
+
+#define        _DtAct_TREAT_AS_FILE_BIT        (1<<29)
+
+#define _DtAct_MSG_COMP_BITS           ( _DtAct_TREAT_AS_FILE_BIT )
+
+#define IS_TREAT_AS_FILE(mask)         ( mask &  _DtAct_TREAT_AS_FILE_BIT )
+#define SET_TREAT_AS_FILE(mask)                ( mask |= _DtAct_TREAT_AS_FILE_BIT)
+#define RESET_TREAT_AS_FILE(mask)      ( mask &= ~(_DtAct_TREAT_AS_FILE_BIT))
+
+
+/* Keyword defines */
+
+#define NO_KEYWORD   -1
+#define LOCAL_HOST    0
+#define DATA_HOST     1
+#define DATABASE_HOST 2
+#define ARG           3
+#define DISPLAY_HOST  4
+#define LABEL        5
+#define SESSION_HOST  6
+
+/* Special argNum values */
+
+#define NO_ARG   -1
+#define ALL_ARGS  0
+
+/*
+ * ToolTalk base representation type ( tt_argn_rep_type ) values
+ */
+#define DtACT_TT_REP_UNDEFINED 0
+#define DtACT_TT_REP_INT       1
+#define DtACT_TT_REP_BUFFER    2
+#define DtACT_TT_REP_STRING    3
+
+/*
+ * Resource name and class for the EXEC-HOST resource.
+ */
+#define DtEXEC_HOSTS_NAME              "executionHosts"
+#define DtEXEC_HOSTS_CLASS             "ExecutionHosts"
+#define DtEXEC_HOSTS_DEFAULT           _DtACT_EXEC_HOST_DFLT
+
+/* Flags to force special processing of filenames */
+#define _DTAct_TT_VTYPE  1 << 0
+#define _DTAct_TT_ARG    1 << 1
+
+/* Structure used to hold the components of a message */
+
+typedef struct {
+   char                *precedingText;
+   char                *prompt;
+   int         keyword;
+   int         argNum;
+   unsigned long mask; /* replaces isFile, isBuffer, isString  boolean */
+} MsgComponent;
+
+
+typedef struct {
+   MsgComponent *parsedMessage;
+   int          numMsgParts;
+   char                *compiledMessage;
+   int         msgLen;
+} parsedMsg;
+
+/******************************************************************************
+ *
+ * Structs used during the invocation of an action.   Once DtActionInvoke()
+ * exits, these structs are generally freed.
+ *
+ *****************************************************************************/
+typedef struct {
+    /*int      winMask;    ---> moved into the action mask*/
+    parsedMsg          execString;
+    parsedMsg          termOpts;
+    char               *contextDir;
+    char               *contextHost;
+    parsedMsg          execHosts;
+    char               **execHostArray;        
+    int                        execHostCount;
+} cmdAttr;
+
+typedef struct {
+    DtShmBoson map_action; 
+} mapAttr;
+
+typedef struct {
+    int        tt_class;
+    int                tt_scope;
+    parsedMsg  tt_op;
+    parsedMsg  tt_file;        /* must be a single file name */
+    int                *tt_argn_mode;
+    int                mode_count;
+    parsedMsg  *tt_argn_vtype; 
+    int                vtype_count;
+    parsedMsg  *tt_argn_value;
+    int                value_count;
+    int                *tt_argn_rep_type;      /* INT, STRING, BUFFER or UNDEFINED */
+    int                rep_type_count;
+} tt_msgAttr;
+
+#ifdef _DT_ALLOW_DT_MSGS
+typedef struct {
+    parsedMsg  service;        /* ICCCM service name */
+    parsedMsg  request;        /* request name string */
+    parsedMsg  *argn_value;
+    int                value_count;
+
+} dt_reqAttr;
+
+typedef struct {
+    parsedMsg  ngroup; /* ICCCM notification group */
+    parsedMsg  notify; /* notification to be sent */
+    parsedMsg  *argn_value;
+    int                value_count;
+} dt_notifyAttr;
+#endif  /* _DT_ALLOW_DT_MSGS */
+
+
+typedef struct {
+    DtShmBoson action;         /* Might just use a char * here? */
+    DtDbPathId file_name_id;   /* id of file wherein the action is defined */
+    char       *label;         /* localizable action label string */
+    char       *description;
+    DtShmBoson *arg_types;
+    int                type_count;
+    int                arg_count;      /* Number of arguments accepted by the action */
+    unsigned long mask;                /* action mask -- class/type/arg info */
+    union {                    /* attributes for the different action kinds */
+       cmdAttr         cmd;
+       mapAttr         map;
+       tt_msgAttr      tt_msg;
+#ifdef _DT_ALLOW_DT_MSGS
+       dt_reqAttr      dt_req;
+       dt_notifyAttr   dt_notify;
+#endif  /* _DT_ALLOW_DT_MSGS */
+    } u;
+} Action, *ActionPtr;          /* new action structure and pointer */
+
+
+/* Structure used to hold each of the object components */
+
+typedef struct {
+   char * origFilename;
+   char * baseFilename;
+   char * origHostname;
+   int    hostIndex;
+   int    dirIndex;
+   void * bp;          /* pointer to original buffer -- tmp files only */
+   int    sizebp;      /* size of original buf -- for tmp files only */
+} fileAttr;
+   
+typedef struct {
+   char * string;
+} stringAttr;
+  
+typedef struct {
+   int size;
+   void *bp;
+} bufferAttr;
+   
+   
+typedef struct {
+   DtShmBoson type;
+   unsigned long mask;
+   union {
+      fileAttr   file;
+      stringAttr string;
+      bufferAttr buffer;
+   } u;
+} ObjectData;
+
+
+/* 
+ * Structure attached to the button callbacks in the
+ * dialog used to collect missing parameters.
+ *
+ */
+
+typedef struct {
+   char        *actionName;
+   int         objOffset;
+   int         objsUsed;
+   int          numObjects;
+   ObjectData   *objects;
+   int          numPromptInputs;
+   char        **promptInputs;
+   int          numHostNames;
+   char                **hostNames;
+   int          numDirNames;
+   char        **dirNames;
+   char                *termOpts;
+   char                *cwdHost;
+   char                *cwdDir;
+   ActionPtr    clonedAction;
+   unsigned long mask;
+   char                *badHostList;
+   char                *currentHost;
+   int          hostIndex;
+   char                *execHost;
+   DtActionInvocationID                invocId;
+   unsigned long               childId;
+} ActionRequest;
+
+/******************************************************************************
+ *
+ * Structs used to maintain information on invoked actions until they
+ * exit.   A few select elements of the ActionRequest and Action structs
+ * will be copied into these strcuts.
+ *
+ *****************************************************************************/
+
+/******************************************************************************
+ ******************************************************************************
+ **
+ ** Major data-structure diagram for the DtAction invocation layer:
+ **
+ **    _DtActInvRec    <===  _DtActInvRecArray[ actInvRecArraySize ]
+ ** ------------------
+ ** |    info per    |
+ ** | DtActionInvoke |
+ ** |----------------|
+ ** |  numChildren   |
+ ** |----------------|
+ ** |  childRecs[]   | ===>   _DtActChildRec
+ ** ------------------      ------------------
+ **                         |    info per    |
+ **                         | child  request |
+ **                         |----------------|
+ **                         |    *request    | ===>   ActionRequest
+ **                         ------------------      ------------------
+ **                                                 | info on users  |
+ **                                                 | action request |
+ **                                                 |----------------|
+ **                               Action       <=== | *clonedAction  |
+ **                         ------------------      ------------------
+ **                         |info on matching|
+ **                         | actionDB entry |
+ **                         |----------------|
+ **                         | cmd/map/tt/dt  |
+ **                         | attributes of  |
+ **                         | resulting msg  |
+ **                         ------------------
+ **
+ ** "ActionRequest" and "Action" were present in VUE 3.0, and have a
+ ** scratch-pad like function within DtActionInvoke() to get actions
+ ** started.  They are not good long-term retainers of information.
+ ** Action and ActionRequest are in fact freed when DtActionInvoke()
+ ** exits.
+ **
+ ** "_DtActInvRec" and "_DtActChildRec" have been introduced to retain
+ ** information for the entire life of the actions.   Some of the
+ ** information from ActionRequest and Action will be copied (mirrored)
+ ** up to these structures.
+ **
+ ******************************************************************************
+ *****************************************************************************/
+
+/******************************************************************************
+ *
+ *      Child Status Macro Definitions -- These values are used in
+ *      the status word of the _DtActChildRec child record.
+ *
+ *   ****** IMPORTANT NOTE *** IMPORTANT NOTE *** IMPORTANT NOTE ******
+ *
+ *      The _DtActCHILD_ macros are also used in cde1/dtexec/Main.c
+ *      in the _DtActDtexecDone(Request) message, so in effect they
+ *      are also protocol constants that should *never* be changed.
+ *      If changed, libDtSvc and dtexec may mis-communicate status.
+ *
+ *****************************************************************************/
+
+#define _DtActCHILD_UNKNOWN            (1<<0)  /* 1 - child status unknown */
+#define _DtActCHILD_PENDING_START      (1<<1)  /* 2 - child start pending */
+#define _DtActCHILD_ALIVE_UNKNOWN      (1<<2)  /* 4 - child alive but unknown*/
+#define _DtActCHILD_ALIVE              (1<<3)  /* 8 - child alive and well */
+#define _DtActCHILD_DONE               (1<<4)  /* 16 - child done */
+#define _DtActCHILD_FAILED             (1<<5)  /* 32 - child failed */
+#define _DtActCHILD_CANCELED           (1<<6)  /* 64 - child canceled */
+
+#define _DtActCHILD_DONE_BITS          ( (_DtActCHILD_DONE) | \
+                                         (_DtActCHILD_FAILED) | \
+                                         (_DtActCHILD_CANCELED) )
+
+/*** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE ***/
+
+
+#define ARE_CHILDREN_DONE(mask)                ( (mask) & _DtActCHILD_DONE_BITS )
+
+#define IS_CHILD_UNKNOWN(mask)         ( (mask) == _DtActCHILD_UNKNOWN )
+#define IS_CHILD_PENDING_START(mask)   ( (mask) & _DtActCHILD_PENDING_START )
+#define IS_CHILD_DONE(mask)            ( (mask) & _DtActCHILD_DONE)
+#define IS_CHILD_FAILED(mask)          ( (mask) & _DtActCHILD_FAILED)
+#define IS_CHILD_CANCELED(mask)                ( (mask) & _DtActCHILD_CANCELED)
+#define IS_CHILD_ALIVE(mask)           ( (mask) & _DtActCHILD_ALIVE)
+#define IS_CHILD_ALIVE_UNKOWN(mask)    ( (mask) & _DtActCHILD_ALIVE_UNKNOWN)
+
+
+/******************************************************************************
+ *
+ * Information per child of DtActionInvoke()
+ *
+ *****************************************************************************/
+
+/*
+ * Structure useed to map returnable arguments to the child argument list.
+ */
+
+typedef struct {
+       int argN;       /* Nth returned value (0 based for tooltalk) */
+        int argIdx;    /* Nth child argument */
+} _DtActArgMap;
+
+typedef struct {
+       unsigned long   childId;        /* serial # with DtActInvId */
+       unsigned long   childState;     /* child state */
+
+       /*
+        * Information cloned from "ActionRequest *req"
+        */
+       int             numObjects;     /* number of child args */
+        _DtActArgMap   *argMap;        /* map of returnable args to chd args */
+
+       /*
+        * Information cloned from "ActionPtr clonedAction"
+        */
+       unsigned long   mask;           /* action type - IS_xxx() */
+
+       /* a list of tmp file names  5/11/94  --tomg */
+
+       union {
+           struct { /* COMMAND elements */
+               char            *TTProcId;      /* TT procID handle to child */
+               Tt_message      reqMessage;     /* Initiator TT Request */
+               Tt_pattern      magic_cookie;   /* dtexec to libDtSvc cookie */
+           } cmd;
+           struct { /* TT_MSG elements */
+               char            *TTProcId;      /* TT procID handle to child */
+               Tt_message      reqMessage;     /* Initiator TT Request */
+               int             isTtMedia;      /* handled by ttmedia_load ? */
+               Tttk_op         TtMediaOp;      /* if ttmedia_load, the op */
+               Tt_pattern      *subConPats;    /* for subcontract_manage */
+           } tt;
+       } u;
+
+} _DtActChildRecT;
+
+
+/******************************************************************************
+ *
+ *     Invocation Status Macro Definitions -- These values are used in
+ *     the state word of the _DtActInvRec invocation record.
+ *
+ *****************************************************************************/
+
+#define _DtActINV_UNKNOWN      0               /* unknown invocation status */
+#define _DtActINV_ERROR                (1<<0)          /* invocation error detected */
+#define _DtActINV_CANCEL       (1<<1)          /* trying to cancel invocation*/
+#define        _DtActINV_PENDING       (1<<2)          /* invocation pending */
+#define _DtActINV_WORKING      (1<<3)          /* invocation in process */
+#define _DtActINV_DONE         (1<<4)          /* invocation step done */
+#define _DtActINV_COMPLETE     (1<<5)          /* invocation steps all done */
+#define _DtActINV_CB_CALLED    (1<<6)          /* invocation callback called */
+#define _DtActINV_ID_RETURNED  (1<<7)          /* invocation id has returned */
+#define _DtActINV_CMD_QUEUED   (1<<8)          /* command has been queued */
+#define _DtActINV_INDICATOR_ON (1<<9)          /* busy indicator active bit */
+
+#define SET_INV_UNKNOWN(mask)          (mask = 0)
+
+#define SET_INV_ERROR(mask)            (mask |= _DtActINV_ERROR) 
+#define SET_INV_CANCEL(mask)           (mask |= _DtActINV_CANCEL)
+#define SET_INV_PENDING(mask)          (mask |= _DtActINV_PENDING) 
+#define SET_INV_WORKING(mask)          (mask |= _DtActINV_WORKING)
+#define SET_INV_DONE(mask)             (mask |= _DtActINV_DONE)
+#define SET_INV_COMPLETE(mask)         (mask |= _DtActINV_COMPLETE)
+#define SET_INV_CB_CALLED(mask)                (mask |= _DtActINV_CB_CALLED)
+#define SET_INV_ID_RETURNED(mask)      (mask |= _DtActINV_ID_RETURNED)
+#define SET_INV_CMD_QUEUED(mask)       (mask |= _DtActINV_CMD_QUEUED)
+#define SET_INV_INDICATOR_ON(mask)     (mask |= _DtActINV_INDICATOR_ON)
+
+#define RESET_INV_ERROR(mask)          (mask &= ~(_DtActINV_ERROR))
+#define RESET_INV_CANCEL(mask)         (mask &= ~(_DtActINV_CANCEL))
+#define RESET_INV_PENDING(mask)                (mask &= ~(_DtActINV_PENDING))
+#define RESET_INV_WORKING(mask)                (mask &= ~(_DtActINV_WORKING))
+#define RESET_INV_COMPLETE(mask)       (mask &= ~(_DtActINV_COMPLETE))
+#define RESET_INV_DONE(mask)           (mask &= ~(_DtActINV_DONE))
+#define RESET_INV_CB_CALLED(mask)      (mask &= ~(_DtActINV_CB_CALLED))
+#define RESET_INV_ID_RETURNED(mask)    (mask &= ~(_DtActINV_ID_RETURNED))
+#define RESET_INV_CMD_QUEUED(mask)     (mask &= ~(_DtActINV_CMD_QUEUED))
+#define RESET_INV_INDICATOR_ON(mask)   (mask &= ~(_DtActINV_INDICATOR_ON))
+
+#define IS_INV_FINISHED(mask)  ( !((mask) & _DtActINV_CMD_QUEUED)  \
+                                  && ((mask) & (_DtActINV_COMPLETE \
+                                      | _DtActINV_CANCEL)) )
+#define IS_INV_UNKNOWN(mask)    ( (mask) == _DtActINV_UNKNOWN )
+
+#define IS_INV_ERROR(mask)             ((mask) & _DtActINV_ERROR )
+#define IS_INV_CANCEL(mask)            ((mask) & _DtActINV_CANCEL )
+#define IS_INV_PENDING(mask)           ((mask) & _DtActINV_PENDING )
+#define IS_INV_WORKING(mask)           ((mask) & _DtActINV_WORKING )
+#define IS_INV_DONE(mask)              ((mask) & _DtActINV_DONE )
+#define IS_INV_COMPLETE(mask)          ((mask) & _DtActINV_COMPLETE )
+#define IS_INV_CB_CALLED(mask)         ((mask) & _DtActINV_CB_CALLED )
+#define IS_INV_ID_RETURNED(mask)       ((mask) & _DtActINV_ID_RETURNED )
+#define IS_INV_CMD_QUEUED(mask)                ((mask) & _DtActINV_CMD_QUEUED )
+#define IS_INV_INDICATOR_ON(mask)      ((mask) & _DtActINV_INDICATOR_ON )
+
+#define CALL_INV_CB(mask)      ((IS_INV_FINISHED(mask)) && \
+                                        (IS_INV_ID_RETURNED(mask)) && \
+                                        !(IS_INV_CB_CALLED(mask)))
+
+/******************************************************************************
+ *
+ * Information per DtActionInvoke()
+ *
+ * Note: For TT_MSG(NOTICE)'s during CDE 1.0, this struct will disappear
+ *       immediately after the NOTICEs are sent.
+ *
+ *****************************************************************************/
+
+
+typedef struct {
+       unsigned long mask;     /* encodes object class and writable flag */
+        int size;              /* original size (buffers only) */
+        char *type;            /* original type (buffers only) */
+        char *name;            /* encodes (tmp) file name associated with the
+                                   object (if any) */
+} _DtActArgInfo;
+
+typedef struct {
+       DtActionStatus  userStatus;
+       DtActionArg     *newArgp;
+       int             newArgc;
+} _DtActUpdateCache;
+
+typedef struct _DtActInvRec {
+       unsigned long           state;          /* invocation state */
+       DtActionInvocationID    id;             /* identifying invocation ID */
+       Widget                  w;              /* users widget id */
+       DtActionCallbackProc    cb;             /* users callback */
+       XtPointer               client_data;    /* users client data for cb */
+       _DtActArgInfo           *info;          /* template w/ .argClass info */
+       int                     ac;             /* original # of  arguments */
+       int                     numChildren;    /* number of childRec's. */
+       _DtActChildRecT         **childRec;     /* array of child Rec's */
+       int                     cachedUploadCnt;/* cached callback updates */
+       _DtActUpdateCache       *cachedUploads; /* data for */
+} _DtActInvRecT;
+
+
+/******************************************************************************
+ *
+ * Structs for dialogs/prompts
+ *
+ *****************************************************************************/
+
+/* Structure used to hold a prompt string destined for a dialog */
+
+typedef struct {
+   int    argIndex;
+   char *prompt;
+} PromptEntry;
+
+
+/* Structure used to contain prompt dialog information */
+
+typedef struct {
+   int    argIndex;
+   Widget promptWidget;
+} DialogPromptEntry;
+
+typedef struct {
+   ActionRequest     * request;
+   Widget              topLevel;
+   Widget              associatedWidget;
+   int                 numPrompts;
+   DialogPromptEntry * prompts;
+} PromptDialog;
+
+
+/* Structure used to contain abort/continue dialog information */
+
+typedef struct {
+   ActionRequest     * request;
+   Widget              topLevel;
+   Widget              associatedWidget;
+   int                 numPrompts;
+   PromptEntry       * prompts;
+} ContinueDialog;
+
+
+/* Structure passed to request passed/failed callbacks */
+
+typedef struct {
+   Widget              associatedWidget;
+   char                *actionLabel;
+   int                 offset;
+   ActionPtr           actionPtr;              /* Ptr to the action that 
+                                                  was invoked. */
+   ActionRequest       *requestPtr;
+   DtActionInvocationID        actInvId;               /* A standard invocation id */
+   unsigned long       childId;                /* An id to further identify
+                                                  children of actInvId */
+} CallbackData;
+
+/******************************************************************************
+ *
+ * Private External Function Declarations -- not for public consumption
+ *
+ ******************************************************************************/
+
+extern void _DtFreeActionStruct( ActionPtr action) ;
+
+#endif /* _ActionP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ActionUtilP.h b/cde/include/Dt/ActionUtilP.h
new file mode 100644 (file)
index 0000000..742e39b
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ActionUtilP.h /main/3 1995/10/26 15:01:19 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        ActionUtilP.h
+ **
+ **   Project:     DT
+ **
+ **   Description: Private include file for the Action Library Utilities.
+ **
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _ActionUtilP_h
+#define _ActionUtilP_h
+
+#include <X11/Intrinsic.h>             /* for Display struct definition */
+#include "ActionP.h"
+
+
+/*****************************************************************************
+ *
+ *     Macro to protect against sending a NULL pointer to certain
+ *     library functions (i.e. sprintf, strlen, ...) with on some
+ *     systems choke on a NULL pointer.
+ *
+ ****************************************************************************/
+#define        _DtActNULL_GUARD(s)     ((s) ? (s) : "")
+
+/******************************************************************************
+           External Utility Function Declarations
+
+       These functions are for internal use and are not part of the
+       public Action API. Each of the following functions returns a
+       newly allocated version of the desired string. It is up to the
+       caller to free the strings obtained.
+******************************************************************************/
+
+extern char    *_DtBasename(const char *s);
+extern char    *_DtDirname(const char *s);
+extern char    *_DtPathname(const char *s);
+extern char    *_DtHostString(const char *s);
+extern char    *_DtGetSessionHostName( void );
+extern char    *_DtGetDisplayHostName( Display *d);
+extern char    *_DtGetLocalHostName( void );
+extern char    *_DtGetExecHostsDefault (void);
+extern char    *_DtGetActionIconDefault (void);
+extern char    *_DtGetDtTmpDir(void);
+extern char    *_DtActGenerateTmpFile(char *dir,
+       char *format,
+       mode_t mode,
+       int *fd );
+extern int     _DtIsSameHost( const char *host1, const char *host2 );
+extern void    _DtRemoveTrailingBlanksInPlace(char **s);
+extern int     _DtExecuteAccess(const char *path);
+
+extern DtActionInvocationID _DtActAllocID();
+extern _DtActInvRecT *_DtActAllocInvRec();
+extern _DtActChildRecT *_DtActAllocChildRec( _DtActInvRecT *recp );
+extern int _DtActDeleteInvRec( DtActionInvocationID id);
+extern _DtActInvRecT *_DtActFindInvRec( DtActionInvocationID id);
+extern _DtActChildRecT *_DtActFindChildRec( 
+       DtActionInvocationID id,
+        unsigned long        childId);
+extern unsigned long _DtActEvalChildren(DtActionInvocationID id);
+extern void _DtActExecutionLeafNodeCleanup(
+       DtActionInvocationID  id,
+       DtActionArg           *newArgp,
+       int                   newArgc,
+       int                   respectQuitBlock);
+extern DtActionArg *_DtActMallocEmptyArgArray(int ac);
+extern void _DtActFreeArgArray( DtActionArg *argp, int ac );
+extern void *_DtActReadTmpFileToBuffer ( 
+       char *fname,
+       int *sizep);
+extern int _DtActGetCmdReturnArgs ( 
+        DtActionInvocationID invId,
+       _DtActChildRecT *childp,
+        DtActionArg     **aargv );
+
+/******************************************************************************/
+
+
+#endif /* _ActionUtilP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
+
diff --git a/cde/include/Dt/CanvasP.h b/cde/include/Dt/CanvasP.h
new file mode 100644 (file)
index 0000000..ed20c24
--- /dev/null
@@ -0,0 +1,514 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: CanvasP.h /main/17 1999/10/14 13:19:41 mgreess $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:         CanvasP.h
+ **
+ **  Project:      Cde Help System
+ **
+ **  Description:  Private Header file for the UI independent core engine
+ **                of the help system. It contains function prototypes,
+ **                structure definitions, typedefs, etc.
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ *****************************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtCanvasP_h
+#define _DtCanvasP_h
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Public Re-defines   ********/
+#if !defined(_AIX)
+#define _DtCvStrCaseCmp(s1,s2)         strcasecmp(s1,s2)
+#define _DtCvStrNCaseCmp(s1,s2, n)     strncasecmp(s1,s2,n)
+#else
+#define _DtCvStrCaseCmp(s1,s2)         _DtHelpCeStrCaseCmp(s1,s2)
+#define _DtCvStrNCaseCmp(s1,s2,n)      _DtHelpCeStrNCaseCmp(s1,s2, n)
+#endif /* _AIX */
+
+/********    Public Defines Declarations    ********/
+/*
+ * true, false and null
+ */
+#ifndef Null
+#define Null    0
+#endif
+#ifndef NULL
+#define NULL    0
+#endif
+#ifndef False
+#define False   0
+#endif
+#ifndef True
+#define True    1
+#endif
+#ifndef FALSE
+#define FALSE   0
+#endif
+#ifndef TRUE
+#define TRUE    1
+#endif
+
+/*
+ * Get Selection Type Declarations
+ */
+#define _DtCvSELECTED_TEXT     (1 << 0)
+#define _DtCvSELECTED_REGION   (1 << 1)
+#define _DtCvSELECTED_ALL      (~((unsigned int) 0))
+
+/*
+ * hypertext link types
+ */
+#define _DtCvLinkType_Execute      3
+#define _DtCvLinkType_ManPage      4
+#define _DtCvLinkType_AppDefine    5
+#define _DtCvLinkType_SameVolume   6
+#define _DtCvLinkType_CrossLink    7
+#define _DtCvLinkType_TextFile     8
+
+/*
+ * hypertext window hints
+ */
+#define _DtCvWindowHint_PopupWindow        1
+#define _DtCvWindowHint_CurrentWindow      2
+#define _DtCvWindowHint_NewWindow          3
+#define _DtCvWindowHint_Original           4
+
+/*********************
+ * Rendering flags
+ *********************/
+
+/*
+ * Rendering flags - Link
+ */
+#define _DtCvLINK_FLAG         (0x01 <<  0)
+#define _DtCvLINK_BEGIN                (0x01 <<  1)
+#define _DtCvLINK_END          (0x01 <<  2)
+
+#define _DtCvLINK_POP_UP       (0x01 <<  3)
+#define _DtCvLINK_NEW_WINDOW   (0x01 <<  4)
+
+/*
+ * Rendering flags - Search
+ *
+ * a gap is left for the search flags on a segment in CanvasSegP.h.  If these
+ * change value, the other values must move to accommodate it.  */
+#define _DtCvSEARCH_FLAG       (0x01 <<  5)
+#define _DtCvSEARCH_BEGIN      (0x01 <<  6)
+#define _DtCvSEARCH_END                (0x01 <<  7)
+#define _DtCvSEARCH_CURR       (0x01 <<  8)
+
+/*
+ * Rendering flags - Mark
+ */
+#define _DtCvMARK_FLAG         (0x01 <<  9)
+#define _DtCvMARK_BEGIN                (0x01 << 10)
+#define _DtCvMARK_END          (0x01 << 11)
+#define _DtCvMARK_ON           (0x01 << 12)
+
+/*
+ * Rendering flags - Traversal
+ */
+#define _DtCvTRAVERSAL_FLAG    (0x01 << 13)
+#define _DtCvTRAVERSAL_BEGIN   (0x01 << 14)
+#define _DtCvTRAVERSAL_END     (0x01 << 15)
+
+/*
+ * Rendering flags - Application defined flags.
+ */
+#define _DtCvAPP_FIELD_OFFSET   (16)
+#define _DtCvAPP_FIELD_MASK     (0x0f << _DtCvAPP_FIELD_OFFSET)
+#define _DtCvAPP_FIELD_S_MASK   (0x03 << _DtCvAPP_FIELD_OFFSET)
+#define _DtCvAPP_FLAG1          (0x01 << (_DtCvAPP_FIELD_OFFSET + 0))
+#define _DtCvAPP_FLAG2          (0x01 << (_DtCvAPP_FIELD_OFFSET + 1))
+#define _DtCvAPP_FLAG3          (0x01 << (_DtCvAPP_FIELD_OFFSET + 2))
+#define _DtCvAPP_FLAG4          (0x01 << (_DtCvAPP_FIELD_OFFSET + 3))
+
+/*
+ * Rendering flags - Selection
+ */
+#define _DtCvSELECTED_FLAG     (0x01 << 20)
+#define _DtCvEND_OF_LINE       (0x01 << 21)
+
+/*
+ * Activation masks
+ */
+#define _DtCvACTIVATE_SELECTION        (0x01 << 0)
+#define _DtCvACTIVATE_MARK     (0x01 << 1)
+#define _DtCvDEACTIVATE                (0x01 << 2)
+#define _DtCvACTIVATE_MARK_ON  (0x01 << 3)
+#define _DtCvACTIVATE_MARK_OFF (0x01 << 4)
+
+/********    Public Enum Declarations    ********/
+
+/*
+ * Element types
+ */
+enum   _dtCvElemType
+  {
+    _DtCvBAD_TYPE,
+    _DtCvCANVAS_TYPE,
+    _DtCvLINE_TYPE,
+    _DtCvLINK_TYPE,
+    _DtCvLOCALE_TYPE,
+    _DtCvMARK_TYPE,
+    _DtCvREGION_TYPE,
+    _DtCvSTRING_TYPE,
+    _DtCvTRAVERSAL_TYPE
+  };
+
+typedef        enum _dtCvElemType      _DtCvElemType;
+
+/*
+ * Canvas Engine values. Either parameters or return values.
+ */
+enum   _dtCvValue
+  {
+/*
+ * status types. i.e. True/False, Ok/Bad, etc.
+ */
+    _DtCvFALSE      = False,
+    _DtCvSTATUS_OK  = False,
+    _DtCvTRUE       = True,
+    _DtCvSTATUS_BAD = True,
+    _DtCvSTATUS_ID_BAD,
+    _DtCvSTATUS_NONE,
+    _DtCvSTATUS_LINK,
+    _DtCvSTATUS_MARK,
+/*
+ * Render types
+ */
+    _DtCvRENDER_PARTIAL,
+    _DtCvRENDER_COMPLETE,
+/*
+ * Traversal defines
+ */
+    _DtCvTRAVERSAL_OFF,
+    _DtCvTRAVERSAL_ON,
+    _DtCvTRAVERSAL_TOP,
+    _DtCvTRAVERSAL_NEXT,
+    _DtCvTRAVERSAL_PREV,
+    _DtCvTRAVERSAL_BOTTOM,
+    _DtCvTRAVERSAL_ID,
+    _DtCvTRAVERSAL_MARK,
+/*
+ * processing a selection types
+ */
+    _DtCvSELECTION_CLEAR,
+    _DtCvSELECTION_START,
+    _DtCvSELECTION_UPDATE,
+    _DtCvSELECTION_END,
+/*
+ * honor the right boundary when laying out information
+ */
+    _DtCvUSE_BOUNDARY,
+    _DtCvUSE_BOUNDARY_MOVE,
+    _DtCvIGNORE_BOUNDARY
+  };
+
+typedef        enum _dtCvValue _DtCvValue;
+typedef        enum _dtCvValue _DtCvStatus;
+typedef        enum _dtCvValue _DtCvRenderType;
+typedef        enum _dtCvValue _DtCvTraversalCmd;
+typedef        enum _dtCvValue _DtCvSelectMode;
+
+/*
+ * line wrap mode types.
+ */
+enum   _dtCvModeType
+  {
+    _DtCvModeWrapNone,
+    _DtCvModeWrapDown,
+    _DtCvModeWrapUp
+  };
+
+typedef        enum _dtCvModeType      _DtCvModeType;
+
+/********    Public Typedef Declarations    ********/
+typedef        void*   _DtCvPointer;
+typedef        void*   _DtCvHandle;
+
+typedef        int     _DtCvUnit;
+
+typedef        unsigned long   _DtCvFlags;
+
+typedef        struct  _dtCvSegPts     _DtCvSegPts;
+typedef        struct  _dtCvSegment    _DtCvSegment;
+
+/********    Public Structures Declarations    ********/
+typedef        struct  _dtCvMetrics {
+       _DtCvUnit       width;          /* max width of canvas area  */
+       _DtCvUnit       height;         /* max height of canvas area */
+       _DtCvUnit       top_margin;     /* top margin to allow for   */
+       _DtCvUnit       side_margin;    /* left margin to allow for  */
+       _DtCvUnit       line_height;    /* the height of an average line of */
+                                       /* text                             */
+       _DtCvUnit       horiz_pad_hint; /* the optimul spacing to use if    */
+                                       /* lines have to be squeezed for    */
+                                       /* _DtCvUSE_BOUNDARY                */
+} _DtCvMetrics;
+
+typedef        struct  _dtCvSpaceMetrics {
+       _DtCvUnit       space_before;
+       _DtCvUnit       space_after;
+       _DtCvUnit       space_above;
+       _DtCvUnit       space_below;
+} _DtCvSpaceMetrics;
+
+typedef        struct  _dtCvLocale {
+       _DtCvModeType    line_wrap_mode;        /* specifies the wrap mode  */
+       const wchar_t   *cant_begin_chars;      /* specifies the characters */
+                                               /* that can't begin a line  */
+       const wchar_t   *cant_end_chars;        /* specifies the characters */
+                                               /* that can't end a line    */
+} _DtCvLocale;
+
+typedef        struct  _dtCvStringInfo {
+       const void      *string;
+       int              byte_len;
+       int              wc;
+       _DtCvPointer     font_ptr;
+       _DtCvPointer     csd;
+} _DtCvStringInfo;
+
+typedef        struct  _dtCvLineInfo {
+       _DtCvUnit       x2;
+       _DtCvUnit       y2;
+       _DtCvUnit       width;
+       _DtCvPointer    data;
+} _DtCvLineInfo;
+
+typedef        struct  _dtCvRenderInfo {
+       _DtCvPointer    info;
+       _DtCvUnit       box_x;
+       _DtCvUnit       box_y;
+       _DtCvUnit       box_height;
+       _DtCvUnit       box_width;
+} _DtCvRenderInfo;
+
+typedef        struct  _dtCvLinkInfo {
+       char            *specification;
+       char            *description;
+       int              hyper_type;
+       int              win_hint;
+       _DtCvUnit        offset_x;
+       _DtCvUnit        offset_y;
+} _DtCvLinkInfo;
+
+typedef        struct  _dtCvPointInfo {
+       _DtCvPointer      client_data;
+       _DtCvSegPts     **segs;
+} _DtCvPointInfo;
+
+/********    Public Structure Typedef Declarations    ********/
+typedef        struct _dtCvTopicInfo*  _DtCvTopicPtr;
+
+/********    Public Prototyped Procedures    ********/
+typedef        void (*_DtCvGetMetrics)(
+    _DtCvPointer               /* client_data   */,
+    _DtCvElemType              /* elem_type     */,
+    _DtCvPointer               /* ret_metrics   */
+);
+
+typedef        void (*_DtCvRenderElem)(
+    _DtCvPointer       /* client_data */,
+    _DtCvElemType      /* elem_type   */,
+    _DtCvUnit          /* x           */,
+    _DtCvUnit          /* y           */,
+    int                        /* link_type   */, 
+    _DtCvFlags         /* old_flags   */,
+    _DtCvFlags         /* new_flags   */,
+    _DtCvElemType      /* trav_type   */,
+    _DtCvPointer       /* trav_data   */,
+    _DtCvPointer       /* data        */
+);
+
+typedef        _DtCvUnit (*_DtCvGetElemWidth)(
+    _DtCvPointer       /* client_data   */,
+    _DtCvElemType      /* elem_type   */,
+    _DtCvPointer       /* data        */
+);
+
+typedef        void (*_DtCvGetFontMetrics)(
+    _DtCvPointer       /* client_data   */,
+    _DtCvPointer       /* font_ptr      */,
+    _DtCvUnit*         /* *ret_ascent   */,
+    _DtCvUnit*         /* *ret_descent  */,
+    _DtCvUnit*         /* *ret_width    */,
+    _DtCvUnit*         /* *ret_super    */,
+    _DtCvUnit*         /* *ret_sub      */
+);
+
+typedef        _DtCvStatus (*_DtCvBuildSelection)(
+    _DtCvPointer       /* client_data   */,
+    _DtCvElemType      /* elem_type     */,
+    unsigned int       /* mask          */,
+    _DtCvPointer*      /* prev_info     */,
+    _DtCvUnit          /* space         */,
+    _DtCvUnit          /* width         */,
+    _DtCvFlags         /* flags         */,
+    _DtCvPointer       /* data          */
+);
+
+typedef        int (*_DtCvFilterExecCmd)(
+    _DtCvPointer       /* client_data   */,
+    const char*                /* cmd           */,
+    char**             /* ret_cmd       */
+);
+
+/********    Public Structures Declarations    ********/
+typedef        struct _dtCvVirtualInfo {
+       _DtCvGetMetrics         get_metrics;
+       _DtCvRenderElem         render_elem;
+       _DtCvGetElemWidth       get_width;
+       _DtCvGetFontMetrics     get_font_metrics;
+       _DtCvBuildSelection     build_selection;
+       _DtCvFilterExecCmd      exec_cmd_filter;
+} _DtCvVirtualInfo;
+
+typedef        struct  _dtCvMarkPos {
+       _DtCvPointer    client_data;
+       _DtCvUnit       x1;
+       _DtCvUnit       y1;
+       _DtCvUnit       baseline1;
+       _DtCvUnit       x2;
+       _DtCvUnit       y2;
+       _DtCvUnit       baseline2;
+} _DtCvMarkPos;
+
+/********    Public Macro Declarations    ********/
+
+/********    Semi-Public Function Declarations    ********/
+extern int             _DtCvGetSearchLineMetrics(
+                               _DtCvHandle     canvas_handle,
+                               int             search_hit_index,
+                               _DtCvUnit*      baseline,
+                               _DtCvUnit*      descent,
+                               _DtCvUnit*      ascent);
+
+/********    Public Function Declarations    ********/
+extern _DtCvStatus     _DtCanvasActivatePts(
+                               _DtCvHandle      canvas_handle,
+                               unsigned int      mask,
+                               _DtCvPointInfo  *info,
+                               _DtCvUnit        *ret_y1,
+                               _DtCvUnit        *ret_y2);
+extern void            _DtCanvasClean(
+                               _DtCvHandle      canvas_handle);
+extern _DtCvHandle     _DtCanvasCreate(
+                               _DtCvVirtualInfo virt_info,
+                               _DtCvPointer     client_data);
+extern void            _DtCanvasDestroy(
+                               _DtCvHandle      canvas_handle);
+extern _DtCvStatus     _DtCanvasGetCurLink(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvLinkInfo   *ret_info);
+extern _DtCvStatus     _DtCanvasGetCurTraversal(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvLinkInfo   *ret_info,
+                               _DtCvPointer    *ret_data);
+extern _DtCvStatus     _DtCanvasGetMarkPositions(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvMarkPos    ***ret_pos);
+extern _DtCvStatus     _DtCanvasGetPosLink(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvUnit        x1,
+                               _DtCvUnit        y1,
+                               _DtCvUnit        x2,
+                               _DtCvUnit        y2,
+                               _DtCvLinkInfo   *ret_info);
+extern _DtCvStatus     _DtCanvasGetSelection(
+                               _DtCvHandle      canvas_handle,
+                               unsigned int     mask,
+                               _DtCvPointer    *ret_select);
+extern _DtCvStatus     _DtCanvasGetSelectionPoints(
+                               _DtCvHandle        canvas_handle,
+                               _DtCvSegPts     ***ret_segs,
+                               _DtCvUnit         *ret_y1,
+                               _DtCvUnit         *ret_y2);
+extern _DtCvStatus     _DtCanvasGetSpotInfo(
+                               _DtCvHandle        canvas_handle,
+                               _DtCvUnit          x,
+                               _DtCvUnit          y,
+                               _DtCvSegment     **ret_seg,
+                               _DtCvUnit         *ret_offx,
+                               _DtCvUnit         *ret_offy,
+                               _DtCvElemType     *ret_element);
+extern _DtCvStatus     _DtCanvasMoveTraversal(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvTraversalCmd cmd,
+                               _DtCvValue       wrap,
+                               _DtCvValue       render,
+                               _DtCvPointer     rid,
+                               _DtCvUnit       *ret_x,
+                               _DtCvUnit       *ret_y,
+                               _DtCvUnit       *ret_baseline,
+                               _DtCvUnit       *ret_height);
+extern  void            _DtCanvasProcessSelection (
+                               _DtCvHandle     canvas_handle,
+                               _DtCvUnit        x,
+                               _DtCvUnit        y,
+                               _DtCvSelectMode  mode);
+extern void            _DtCanvasRender(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvUnit        x1,
+                               _DtCvUnit        y1,
+                               _DtCvUnit        x2,
+                               _DtCvUnit        y2,
+                               _DtCvRenderType  flag,
+                               _DtCvValue       pg_break,
+                               _DtCvUnit       *max_y,
+                               _DtCvUnit       *next_y);
+extern _DtCvStatus     _DtCanvasResize(
+                               _DtCvHandle      canvas_handle,
+                               _DtCvValue       force,
+                               _DtCvUnit       *ret_width,
+                               _DtCvUnit       *ret_height);
+extern  _DtCvStatus     _DtCanvasSetTopic(
+                               _DtCvHandle     canvas_handle,
+                               _DtCvTopicPtr    topic_handle,
+                               _DtCvValue       honor_size,
+                               _DtCvUnit       *ret_width,
+                               _DtCvUnit       *ret_height,
+                               _DtCvUnit       *ret_y);
+extern void            _DtCanvasLoadMetrics(
+                               _DtCvHandle     canvas_handle);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+
+#endif /* _DtCanvasP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/CanvasSegP.h b/cde/include/Dt/CanvasSegP.h
new file mode 100644 (file)
index 0000000..43cd052
--- /dev/null
@@ -0,0 +1,538 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: CanvasSegP.h /main/19 1996/10/04 18:30:19 rswiston $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   CanvasSegP.h
+ **
+ **  Project:
+ **
+ **  Description:  Public Header file for Canvas Engine
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ *******************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtCanvasSegP_h
+#define _DtCanvasSegP_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Public Defines Declarations    ********/
+/*****************************************************************************
+ *  Some bits in passed in as a _DtCvFlags and the 'type' in _DtCvSegment
+ *  must match because they are passed straight thought from the segment
+ *  to the application. The following map is to help prevent colisions.
+ *
+ *   (-------------------------> _DtCvEND_OF_LINE
+ *   | (-----------------------> _DtCvSELECTED_FLAG
+ *   | |
+ *   | | (-------------------------> _DtCvAPP_FLAG4 \
+ *   | | | (-----------------------> _DtCvAPP_FLAG3  \
+ *   | | | | (---------------------> _DtCvAPP_FLAG2  / _DtCvAPP_FIELD
+ *   | | | | | (-------------------> _DtCvAPP_FLAG1 /
+ *   | | | | | |  
+ *   | | | | | | (---------------------> _DtCvTRAVERSAL_END
+ *   | | | | | | | (-------------------> _DtCvTRAVERSAL_BEGIN
+ *   | | | | | | | | (-----------------> _DtCvTRAVERSAL_FLAG
+ *   | | | | | | | | |
+ *   | | | | | | | | | (-------------------> _DtCvMARK_ON
+ *   | | | | | | | | | | (-----------------> _DtCvMARK_END
+ *   | | | | | | | | | | | (---------------> _DtCvMARK_BEGIN
+ *   | | | | | | | | | | | | (-------------> _DtCvMARK_FLAG
+ *   | | | | | | | | | | | | |
+ *   | | | | | | | | | | | | | (-------------> _DtCvSEARCH_CURR
+ *   | | | | | | | | | | | | | | (-----------> _DtCvSEARCH_END
+ *   | | | | | | | | | | | | | | | (---------> _DtCvSEARCH_BEGIN
+ *   | | | | | | | | | | | | | | | | (-------> _DtCvSEARCH_FLAG
+ *   | | | | | | | | | | | | | | | | |
+ *   | | | | | | | | | | | | | | | | | (---------> _DtCvLINK_NEW_WINDOW
+ *   | | | | | | | | | | | | | | | | | | (-------> _DtCvLINK_POP_UP
+ *   | | | | | | | | | | | | | | | | | | | (-----> _DtCvLINK_END
+ *   | | | | | | | | | | | | | | | | | | | | (---> _DtCvLINK_BEGIN
+ *   | | | | | | | | | | | | | | | | | | | | | (-> _DtCvLINK_FLAG
+ *   | | | | | | | | | | | | | | | | | | | | | |
+ *   v v v v v v#v v v v v v v v#v v v v v v v v 
+ *   1 0 9 8 7 6#5 4 3 2 1 0 9 8#7 6 5 4 3 2 1 0
+ *  ------------#---------------#----------------
+ *  |.|.|.|.|.|.#.|.|.|.|.|.|.|.#.|.|.|.|.|.|.|.|
+ *  ------------#---------------#----------------
+ *     ^ ^ ^ ^ ^#^ ^ ^ ^ ^ ^ ^ ^#^ ^ ^   ^ ^^^^^
+ *     | | | | | | | | | | | | | | | |   |  \|/
+ *     | | | | | | | | | | | | | | | |   |   |
+ *     | | | | | | | | | | | | | | | |   |   (->  Segment type
+ *     | | | | | | | | | | | | | | | |   (-----> _DtCvWIDE_CHAR
+ *     | | | | | | | | | | | | | | | |
+ *     | | | | | | | | | | | | | | | (-----> _DtCvSEARCH_FLAG
+ *     | | | | | | | | | | | | | | (-------> _DtCvSEARCH_BEGIN
+ *     | | | | | | | | | | | | | (---------> _DtCvSEARCH_END
+ *     | | | | | | | | | | | | (-----------> _DtCvSEARCH_CURR
+ *     | | | | | | | | | | | |
+ *     | | | | | | | | | | | (---------> _DtCvCONTROLLER/_DtCvBLOCK_LINE/
+ *     | | | | | | | | | | |                         _DtCvNEW_LINE
+ *     | | | | | | | | | | (-----------> _DtCvSUB_SCRIPT
+ *     | | | | | | | | | (-------------> _DtCvSUPER_SCRIPT
+ *     | | | | | | | | (---------------> _DtCvGHOST_LINK
+ *     | | | | | | | (-----------------> _DtCvHYPER_TEXT
+ *     | | | | | | (-------------------> _DtCvNON_BREAK
+ *     | | | | | (---------------------> _DtCvIN_LINE
+ *     | | | | |
+ *     | | | | (---------------> _DtCvAPP_FLAG1  \
+ *     | | | (-----------------> _DtCvAPP_FLAG2   \ _DtCvAPP_FIELD
+ *     | | (-------------------> _DtCvAPP_FLAG3   /
+ *     | (---------------------> _DtCvAPP_FLAG4  /
+ *     |
+ *     (------------------> _DtCvPAGE_BREAK
+ *
+ *****************************************************************************/
+/*
+ * segment types
+ */
+#define        _DtCvNOOP       (0x00)
+#define        _DtCvCONTAINER  (0x01)
+#define        _DtCvLINE       (0x02)
+#define        _DtCvMARKER     (0x03)
+#define        _DtCvREGION     (0x04)
+#define        _DtCvSTRING     (0x05)
+#define        _DtCvTABLE      (0x06)
+
+#define        _DtCvPRIMARY_MASK       (0x07)
+#define        _DtCvSHIFT_PAST_PRIMARY 3
+
+/*
+ * character size manipulation
+ */
+#define        _DtCvWIDE_CHAR          (0x01 << _DtCvSHIFT_PAST_PRIMARY)
+
+/*
+ * segment flags
+ */
+/* leave a gap for the search flags defined in CanvasP.h */
+#define        _DtCvSHIFT_TO_FLAGS     9
+
+/* container only */
+#define        _DtCvCONTROLLER         (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
+
+/* line type */
+#define        _DtCvBLOCK_LINE         (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
+
+/* string & region (_DtCvNEW_LINE works on _DtCvNOOP too) */
+#define        _DtCvNEW_LINE           (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
+#define        _DtCvSUB_SCRIPT         (0x01 << (_DtCvSHIFT_TO_FLAGS +  1))
+#define        _DtCvSUPER_SCRIPT       (0x01 << (_DtCvSHIFT_TO_FLAGS +  2))
+#define        _DtCvGHOST_LINK         (0x01 << (_DtCvSHIFT_TO_FLAGS +  3))
+#define        _DtCvHYPER_TEXT         (0x01 << (_DtCvSHIFT_TO_FLAGS +  4))
+#define        _DtCvNON_BREAK          (0x01 << (_DtCvSHIFT_TO_FLAGS +  5))
+
+/* region only */
+#define        _DtCvIN_LINE            (0x01 << (_DtCvSHIFT_TO_FLAGS +  6))
+
+/* application flags - defined in CanvasP.h (starting at 16th bit for 4 bits) */
+
+/* valid on any segment */
+#define        _DtCvPAGE_BREAK         (0x01 << (_DtCvSHIFT_TO_FLAGS + 11))
+
+/* highlight macros */
+#define HILITE_OVERLINE                        0
+#define HILITE_STRIKETHROUGH           1
+#define HILITE_UNDERLINE               2
+
+/********    Public Enum Declarations    ********/
+enum   _dtCvFrmtOption
+  {
+    _DtCvOPTION_BAD,
+/*
+ * string breaking types
+ */
+    _DtCvLITERAL,
+    _DtCvDYNAMIC,
+/*
+ * table border types
+ */
+    _DtCvBORDER_NONE,
+    _DtCvBORDER_FULL,
+    _DtCvBORDER_HORZ,
+    _DtCvBORDER_VERT,
+    _DtCvBORDER_TOP,
+    _DtCvBORDER_BOTTOM,
+    _DtCvBORDER_LEFT,
+    _DtCvBORDER_RIGHT,
+    _DtCvBORDER_TOP_LEFT,
+    _DtCvBORDER_TOP_RIGHT,
+    _DtCvBORDER_BOTTOM_LEFT,
+    _DtCvBORDER_BOTTOM_RIGHT,
+/*
+ * controller horizontal orientation
+ */
+    _DtCvJUSTIFY_LEFT_CORNER,
+    _DtCvJUSTIFY_LEFT,         /* also container horizontal text placement */
+    _DtCvJUSTIFY_LEFT_MARGIN,
+    _DtCvJUSTIFY_CENTER,       /* also container horiz/vert text placement */
+    _DtCvJUSTIFY_RIGHT_MARGIN,
+    _DtCvJUSTIFY_RIGHT,                /* also container horizontal text placement */
+    _DtCvJUSTIFY_RIGHT_CORNER,
+/*
+ * extra container horizontal text placement
+ */
+    _DtCvJUSTIFY_NUM,
+    _DtCvJUSTIFY_CHAR,
+/*
+ * inherit the parent's horizontal text placement
+ */
+    _DtCvINHERIT,
+/*
+ * controller vertical orientation, includes _DtCvJUSTIFY_CENTER
+ */
+    _DtCvJUSTIFY_TOP,          /* also container vertical text placement */
+    _DtCvJUSTIFY_BOTTOM,       /* also container vertical text placement */
+/*
+ * controller flow types
+ */
+    _DtCvWRAP,
+    _DtCvWRAP_NONE,
+    _DtCvWRAP_JOIN
+  };
+
+typedef enum {
+    hilite_overline      = 0x01 << HILITE_OVERLINE,
+    hilite_strikethrough = 0x01 << HILITE_STRIKETHROUGH,
+    hilite_underline     = 0x01 << HILITE_UNDERLINE
+} text_hilite_t;
+
+/********    Public Enum Typedef Declarations    ********/
+typedef        enum   _dtCvFrmtOption  _DtCvFrmtOption;
+
+/********    Public Structures Declarations    ********/
+typedef        struct  _dtCvLine {
+       _DtCvUnit       width;
+       _DtCvPointer    data;
+} _DtCvLine;
+
+typedef struct  _dtCvContainer {
+       char            *id;
+       char            *justify_char;
+       _DtCvFrmtOption  type;
+       _DtCvFrmtOption  border;
+       _DtCvFrmtOption  justify;
+       _DtCvFrmtOption  vjustify;
+       _DtCvFrmtOption  orient;
+       _DtCvFrmtOption  vorient;
+       _DtCvFrmtOption  flow;
+       int              percent;
+       _DtCvUnit        leading;
+       _DtCvUnit        fmargin;
+       _DtCvUnit        lmargin;
+       _DtCvUnit        rmargin;
+       _DtCvUnit        tmargin;
+       _DtCvUnit        bmargin;
+       _DtCvLine        bdr_info;
+        struct _dtCvSegment    *seg_list;
+} _DtCvContainer;
+
+typedef struct  _DtCvString {
+       void            *string;
+       _DtCvPointer     font;
+} _DtCvString;
+
+typedef struct  _dtCvRegion {
+       _DtCvPointer    info;
+       _DtCvUnit       width;
+       _DtCvUnit       height;
+       _DtCvUnit       ascent;
+} _DtCvRegion;
+
+typedef struct  _dtCvTable {
+       int                       num_cols;
+       char                    **col_w;
+       _DtCvFrmtOption          *col_justify;
+       char                     *justify_chars;
+       char                    **cell_ids;
+       struct _dtCvSegment     **cells;
+} _DtCvTable;
+
+typedef union   _dtCvSegHandles {
+       _DtCvContainer   container;
+       _DtCvString      string;
+       _DtCvRegion      region;
+       _DtCvTable       table;
+       _DtCvLine        rule;
+       char            *marker;
+} _DtCvSegHandles;
+
+struct _dtCvSegment {
+       unsigned long            type;
+       int                      link_idx;
+       _DtCvSegHandles          handle;
+       struct _dtCvSegment     *next_seg;
+       struct _dtCvSegment     *next_disp;
+       _DtCvPointer             client_use;
+       _DtCvPointer             internal_use;
+};
+
+struct _dtCvSegPts {
+       struct _dtCvSegment     *segment;
+       int                      offset;
+       int                      len;
+};
+
+typedef struct _dtCvTopicInfo {
+       char                     *id_str;
+       struct _dtCvSegment      *seg_list;
+       _DtCvPointInfo          **mark_list;
+        struct _dtCvLinkDb       *link_data;
+} _DtCvTopicInfo;
+
+typedef struct _dtCvStringClientData {
+       unsigned int vcc;
+       unsigned int vclen;
+
+       unsigned int hilite_type;
+
+       char* bg_color;
+       char* fg_color;
+       unsigned long bg_pixel;
+       unsigned long fg_pixel;
+} _DtCvStringClientData;
+
+typedef struct _dtCvRegionClientData {
+       _DtCvPointer GraphicHandle;
+} _DtCvRegionClientData;
+
+typedef union _dtCvClientData {
+       _DtCvRegionClientData region;
+       _DtCvStringClientData string;
+} _DtCvClientData;
+
+/********    Public Structure Typedef Declarations    ********/
+
+/********    Public Prototyped Procedures    ********/
+
+/********    Public Macro Declarations    ********/
+/*
+ * set segment type
+ */
+#define        _DtCvSetTypeToContainer(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvCONTAINER)
+#define        _DtCvSetTypeToLine(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvLINE)
+#define        _DtCvSetTypeToMarker(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvMARKER)
+#define        _DtCvSetTypeToNoop(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvNOOP)
+#define        _DtCvSetTypeToRegion(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvREGION)
+#define        _DtCvSetTypeToString(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvSTRING)
+#define        _DtCvSetTypeToTable(x) \
+                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvTABLE)
+/*
+ * set segment flags
+ */
+#define        _DtCvSetTypeToBlockLine(x)      ((x) | _DtCvBLOCK_LINE)
+#define        _DtCvSetTypeToController(x)     ((x) | _DtCvCONTROLLER)
+#define        _DtCvSetTypeToGhostLink(x)      ((x) | _DtCvGHOST_LINK)
+#define        _DtCvSetTypeToHyperText(x)      ((x) | _DtCvHYPER_TEXT)
+#define        _DtCvSetTypeToInLine(x)         ((x) | _DtCvIN_LINE)
+#define        _DtCvSetTypeToNewLine(x)        ((x) | _DtCvNEW_LINE)
+#define        _DtCvSetTypeToNonBreak(x)       ((x) | _DtCvNON_BREAK)
+#define        _DtCvSetTypeToSearch(x)         ((x) | _DtCvSEARCH_FLAG)
+#define        _DtCvSetTypeToSearchBegin(x)    ((x) | _DtCvSEARCH_BEGIN)
+#define        _DtCvSetTypeToSearchEnd(x)      ((x) | _DtCvSEARCH_END)
+#define        _DtCvSetTypeToSubScript(x)      ((x) | _DtCvSUB_SCRIPT)
+#define        _DtCvSetTypeToSuperScript(x)    ((x) | _DtCvSUPER_SCRIPT)
+
+/*
+ * set character size
+ */
+#define        _DtCvSetTypeToWideChar(x)       ((x) | _DtCvWIDE_CHAR)
+
+/*
+ * set application flags and/or field
+ */
+#define        _DtCvSetAppFlag1(x)             ((x) | _DtCvAPP_FLAG1)
+#define        _DtCvSetAppFlag2(x)             ((x) | _DtCvAPP_FLAG2)
+#define        _DtCvSetAppFlag3(x)             ((x) | _DtCvAPP_FLAG3)
+#define        _DtCvSetAppFlag4(x)             ((x) | _DtCvAPP_FLAG4)
+#define        _DtCvSetAppField(x,y) \
+               (((x) & ~(_DtCvAPP_FIELD_MASK)) | \
+                       ((y & _DtCvAPP_FIELD_MASK) << _DtCvAPP_FIELD_OFFSET))
+#define        _DtCvSetAppFieldSmall(x,y) \
+               (((x) & ~(_DtCvAPP_FIELD_S_MASK)) | \
+                       ((y & _DtCvAPP_FIELD_S_MASK) << _DtCvAPP_FIELD_OFFSET))
+
+/*
+ * get the application field value
+ */
+#define        _DtCvGetAppField(x) \
+                       (((x) & _DtCvAPP_FIELD_MASK) >> _DtCvAPP_FIELD_OFFSET)
+#define        _DtCvGetAppFieldSmall(x) \
+                       (((x) & _DtCvAPP_FIELD_S_MASK) >> _DtCvAPP_FIELD_OFFSET)
+
+/********    Semi-Public Macro Declarations    ********/
+/*
+ * get segment type
+ */
+#define _DtCvPrimaryTypeOfSeg(x)        ((x->type) & _DtCvPRIMARY_MASK)
+#define _DtCvIsSegContainer(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvCONTAINER) ? 1 : 0)
+#define _DtCvIsSegLine(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvLINE) ? 1 : 0)
+#define _DtCvIsSegMarker(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvMARKER) ? 1 : 0)
+#define _DtCvIsSegNoop(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
+#define _DtCvIsSegRegion(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvREGION) ? 1 : 0)
+#define _DtCvIsSegString(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvSTRING) ? 1 : 0)
+#define _DtCvIsSegTable(x) \
+               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvTABLE) ? 1 : 0)
+
+/*
+ * get segment flags
+ */
+#define _DtCvIsSegController(x) \
+                               ((((x)->type) & _DtCvCONTROLLER) ? 1 : 0)
+#define _DtCvIsSegBlockLine(x) \
+                               ((((x)->type) & _DtCvBLOCK_LINE) ? 1 : 0)
+#define _DtCvIsSegGhostLink(x) \
+                               ((((x)->type) & _DtCvGHOST_LINK) ? 1 : 0)
+#define _DtCvIsSegHyperText(x) \
+                               ((((x)->type) & _DtCvHYPER_TEXT) ? 1 : 0)
+#define _DtCvIsSegInLine(x) \
+                               ((((x)->type) & _DtCvIN_LINE) ? 1 : 0)
+#define _DtCvIsSegNewLine(x) \
+                               ((((x)->type) & _DtCvNEW_LINE) ? 1 : 0)
+#define _DtCvIsSegNonBreakingChar(x) \
+                               ((((x)->type) & _DtCvNON_BREAK) ? 1 : 0)
+#define _DtCvIsSegPageBreak(x) \
+                               ((((x)->type) & _DtCvPAGE_BREAK) ? 1 : 0)
+#define        _DtCvIsSegRegChar(x) \
+                               ((((x)->type) & _DtCvWIDE_CHAR) ? 0 : 1)
+#define _DtCvIsSegSubScript(x) \
+                               ((((x)->type) & _DtCvSUB_SCRIPT) ? 1 : 0)
+#define _DtCvIsSegSuperScript(x) \
+                               ((((x)->type) & _DtCvSUPER_SCRIPT) ? 1 : 0)
+#define        _DtCvIsSegWideChar(x) \
+                               ((((x)->type) & _DtCvWIDE_CHAR) ? 1 : 0)
+/*
+ * segment access
+ */
+#define        _DtCvNextSeg(x)         ((x)->next_seg)
+#define        _DtCvNextDisp(x)        ((x)->next_disp)
+
+/*
+ * container access
+ */
+#define        _DtCvContainerOfSeg(x) \
+                               ((x)->handle.container)
+#define        _DtCvContainerBMarginOfSeg(x) \
+                               ((x)->handle.container.bmargin)
+#define        _DtCvContainerBorderOfSeg(x) \
+                               ((x)->handle.container.border)
+#define        _DtCvContainerFlowOfSeg(x) \
+                               ((x)->handle.container.flow)
+#define        _DtCvContainerFMarginOfSeg(x) \
+                               ((x)->handle.container.fmargin)
+#define        _DtCvContainerIdOfSeg(x) \
+                               ((x)->handle.container.id)
+#define        _DtCvContainerJustifyCharOfSeg(x) \
+                               ((x)->handle.container.justify_char)
+#define        _DtCvContainerJustifyOfSeg(x) \
+                               ((x)->handle.container.justify)
+#define        _DtCvContainerLeadingOfSeg(x) \
+                               ((x)->handle.container.leading)
+#define        _DtCvContainerLineWidthOfSeg(x) \
+                               ((x)->handle.container.bdr_info.width)
+#define        _DtCvContainerLineDataOfSeg(x) \
+                               ((x)->handle.container.bdr_info.data)
+#define        _DtCvContainerListOfSeg(x) \
+                               ((x)->handle.container.seg_list)
+#define        _DtCvContainerLMarginOfSeg(x) \
+                               ((x)->handle.container.lmargin)
+#define        _DtCvContainerOrientOfSeg(x) \
+                               ((x)->handle.container.orient)
+#define        _DtCvContainerPercentOfSeg(x) \
+                               ((x)->handle.container.percent)
+#define        _DtCvContainerRMarginOfSeg(x) \
+                               ((x)->handle.container.rmargin)
+#define        _DtCvContainerTMarginOfSeg(x) \
+                               ((x)->handle.container.tmargin)
+#define        _DtCvContainerTypeOfSeg(x) \
+                               ((x)->handle.container.type)
+#define        _DtCvContainerVJustifyOfSeg(x) \
+                               ((x)->handle.container.vjustify)
+#define        _DtCvContainerVOrientOfSeg(x) \
+                               ((x)->handle.container.vorient)
+
+/*
+ * marker access
+ */
+#define        _DtCvIdOfMarkerSeg(x)           ((x)->handle.marker)
+
+/*
+ * marker access
+ */
+#define        _DtCvDataOfLineSeg(x)           ((x)->handle.rule.data)
+#define        _DtCvWidthOfLineSeg(x)          ((x)->handle.rule.width)
+
+/*
+ * string access
+ */
+#define _DtCvStringOfStringSeg(x)      ((x)->handle.string.string)
+#define _DtCvFontOfStringSeg(x)                ((x)->handle.string.font)
+
+/*
+ * region access
+ */
+#define _DtCvInfoOfRegionSeg(x)                ((x)->handle.region.info)
+#define _DtCvWidthOfRegionSeg(x)       ((x)->handle.region.width)
+#define _DtCvHeightOfRegionSeg(x)      ((x)->handle.region.height)
+#define _DtCvAscentOfRegionSeg(x)      ((x)->handle.region.ascent)
+
+/*
+ * table access
+ */
+#define        _DtCvNumColsOfTableSeg(x)       ((x)->handle.table.num_cols)
+#define        _DtCvColWOfTableSeg(x)          ((x)->handle.table.col_w)
+#define        _DtCvColJustifyOfTableSeg(x)    ((x)->handle.table.col_justify)
+#define        _DtCvJustifyCharsOfTableSeg(x)  ((x)->handle.table.justify_chars)
+#define        _DtCvCellIdsOfTableSeg(x)       ((x)->handle.table.cell_ids)
+#define        _DtCvCellsOfTableSeg(x)         ((x)->handle.table.cells)
+
+/********    Semi-Public Function Declarations    ********/
+/********    Public Function Declarations    ********/
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtCanvasSegP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ChkpntP.h b/cde/include/Dt/ChkpntP.h
new file mode 100644 (file)
index 0000000..5430a4d
--- /dev/null
@@ -0,0 +1,133 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/* -*-C-*-
+**************************************************************************
+*
+* File:         Chkpnt.h
+* Description:  CDE Private header file. Private API for sending checkpoint
+*              messages between compliant clients and the checkpoint service
+*              provider. This API is designed for use by performance
+*              measurement programs.
+*
+* Created:      Mon Sep  6 09:00 1993
+* Language:     C
+*
+* $XConsortium: ChkpntP.h /main/4 1995/10/26 15:18:33 rswiston $
+*
+* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
+*
+**************************************************************************
+*/
+
+#ifndef _Dt_Perf_Checkpoint_P_h
+#define _Dt_Perf_Checkpoint_P_h
+
+#include <X11/Xlib.h>
+#include <X11/Xatom.h>
+#include <X11/Intrinsic.h>
+
+/*************************************************************************/
+/************* Data types ************************************************/
+/*************************************************************************/
+
+/* The following definition is ONLY meant for union that follows */
+typedef struct {
+    char       *pname;         /* Client program name                  */
+    char       *window;        /* Window Id for client                 */
+    char       *type;          /* Type of message                      */
+    char       *count;         /* Running count of messages            */
+    char        *seconds;      /* Time in seconds from gettimeofday()  */
+    char       *message;       /* Actual message                       */
+} _DtChkpntMsgFormat;
+
+#define DT_PERF_CHKPNT_MSG_SIZE (sizeof(_DtChkpntMsgFormat) / sizeof(char *))
+/* Use the following union for actual message declaration */
+typedef union {
+    _DtChkpntMsgFormat record;
+    char               *array[DT_PERF_CHKPNT_MSG_SIZE];
+} DtChkpntMsg;
+
+#define DT_PERF_CHKPNT_MSG_INIT        "Init"
+#define DT_PERF_CHKPNT_MSG_CHKPNT      "Chkpnt"
+#define DT_PERF_CHKPNT_MSG_END         "End"
+
+/*************************************************************************/
+/************* Atom Names ************************************************/
+/*************************************************************************/
+/* Selection for ICCCM style interaction of client and listener*/
+/* This selection is owned by the listener */
+#define DT_PERF_CHKPNT_SEL             "_DT_PERF_CHKPNT_SEL"
+
+/* Properties attached to the client: Used for message transmission */
+#define DT_PERF_CLIENT_CHKPNT_PROP     "_DT_PERF_CHKPNT_PROP"
+
+/*************************************************************************/
+/************* Client Functions ******************************************/
+/*************************************************************************/
+
+/* Note: It is expected that users will invoke the following functions within
+   #ifdef DT_PERFORMANCE directives. The DT_PERFORMANCE flag should be set,
+   in the build environment, for the performance-test-enabled builds.
+*/
+
+/* Initialize the checkpointing mechanism */
+extern int _DtPerfChkpntInit(
+    Display       *display,       /* Display pointer                      */
+    Window        parentwin,      /* Parent window id                     */
+    char           *prog_name,    /* Name of the client program (argv[0]) */
+    Boolean        bChkpnt        /* Boolean: True or False               */
+);
+
+/* Send a checkpoint message to the listener */
+extern void _DtPerfChkpntMsgSend(
+    char           *message       /* Acual message for transmission     */
+);
+
+/* End the checkpointing message delivery */
+extern int _DtPerfChkpntEnd(
+);
+
+/*************************************************************************/
+/************* Listener Service Functions ********************************/
+/*************************************************************************/
+
+/* Initialize the listener */
+extern int _DtPerfChkpntListenInit(
+    Display *display,  /* Current display */
+    Window parentwin   /* Parent of window associated with listener */
+);
+
+/* Fetch a message from message queue */
+extern Bool _DtPerfChkpntMsgReceive(
+DtChkpntMsg *dtcp_msg,         /* Above message available as a structure */
+Bool        bBlock             /* Block until a message is received ?    */
+);
+
+#endif /*_Dt_Perf_Checkpoint_h*/
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/CmdInv.h b/cde/include/Dt/CmdInv.h
new file mode 100644 (file)
index 0000000..2d84594
--- /dev/null
@@ -0,0 +1,199 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: CmdInv.h /main/6 1996/01/23 10:41:03 barstow $ */
+/***************************************************************************
+*
+* File:         CmdInv.h
+* Description:  Public header for the command invocation system.
+* Language:     C
+*
+** (c) Copyright 1993, 1994 Hewlett-Packard Company
+** (c) Copyright 1993, 1994 International Business Machines Corp.
+** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+** (c) Copyright 1993, 1994 Novell, Inc.
+***************************************************************************/
+
+#ifndef _CmdInv_h
+#define _CmdInv_h
+
+#include <X11/Xlib.h>
+#include <Dt/Message.h>
+#include <Dt/Spc.h>
+
+/******************************************************************************
+ *
+ * DtCmdInvExecuteProc - This type is is used to define the parameters
+ *   needed in the callback functions for success and failure notification 
+ *   of a Command Invoker execution call. 
+ *
+ *****************************************************************************/
+
+typedef void (*DtCmdInvExecuteProc) (
+       char *message,          /* NULL if the request is successful.  
+                                * Otherwise an error message. */
+       void *client_data
+);
+
+/******************************************************************************
+ *
+ * Function:  void _DtInitializeCommandInvoker (
+ *     Display *display,
+ *     char *toolClass,
+ *     char *applicationClass,
+ *     DtSvcReceiveProc reloadDBHandler,
+ *     XtAppContext appContext)
+ *
+ * Parameters:         
+ *
+ *     display          - The X server display connection.
+ *                     
+ *     toolClass        - The BMS tool class of the client.
+ *
+ *     applicationClass - The application class of the client (see 
+ *                        XtInitialize).  This is needed to add the 
+ *                        Command Invoker's resources to the client's
+ *                        resources.
+ *                     
+ *     reloadDBHandler  - Function to be called if a RELOAD-TYPES-DB 
+ *                        request is made.  If the client does not read
+ *                        DT action and/or filetype databases, NULL must
+ *                        be used.
+ *
+ *      appContext      - The client's application context.  Must be NULL
+ *                        if the client does not use an application 
+ *                         context.
+ *
+ * Purpose:            
+ *
+ *     This function allows a client to internalize the functionality
+ *     of the DT "Command Invoker".  By using this library and the
+ *     Action Library, requests for the Command Invoker will be done
+ *     internally instead of sending a request to a separate Command
+ *     Invoker process.
+ *
+ *     For local execution, the "fork" and "execvp" system calls are
+ *     used.  For remote execution, the "SPCD" is used.
+ *                     
+ *****************************************************************************/
+
+extern void
+_DtInitializeCommandInvoker(
+       Display *display,
+       char *toolClass,
+       char *applicationClass,
+       DtSvcReceiveProc reloadDBHandler,
+       XtAppContext appContext);
+
+/******************************************************************************
+ *
+ * Function:  void _DtCommandInvokerExecute (
+ *     char *request_name,
+ *     char *context_host,
+ *     char *context_dir,
+ *     char *context_file,
+ *     char *exec_parameters,
+ *     char *exec_host,
+ *     char *exec_string,
+ *     DtCmdInvExecProc success_proc,
+ *     void *success_data,
+ *     DtCmdInvExecProc failure_proc,
+ *     void *failure_data)
+ *
+ * Parameters:         
+ *
+ *     request_name    - The request name (defined in "CommandM.h").
+ *                     
+ *     context_host    - Name of the host where request is executed from.  If
+ *                       NULL, the "exec_host" parameter is used.  Note: this
+ *                       should not be confused with execution host, described
+ *                       below.
+ *
+ *     context_dir     - Directory where the request should be executed.  If
+ *                       NULL, the HOME directory is used.
+ *
+ *     context_file    - Not currently used by the Command Invoker.
+ *
+ *     exec_parameters - Command Invoker execution parameters.  See External
+ *                       Specification for more information.
+ *                       If set to NULL, "-" is used.
+ *
+ *     exec_host       - Name of the host where the request is executed.
+ *
+ *     exec_string     - The command line to execute.
+ *
+ *     success_proc    - The function to be invoked if the request is 
+ *                       successfully executed.
+ *
+ *     success_data    - Client data for successful execution.
+ *
+ *     failure_proc    - The function to be invoked if an attempt to exeucte
+ *                       the request fails.
+ *
+ *     failure_data    - Client data for unsuccessful execution.
+ *
+ * Purpose:            
+ *
+ *     This function allows a client to use the DT "Command Invoker"
+ *     Library for its' process execution.  This function is intended
+ *     for processes which do not use the Action Library.
+ *
+ *     For local execution, the "fork" and "execvp" system calls are
+ *     used.  For remote execution, the "SPCD" is used.
+ *
+ * Notes:
+ *
+ *      This function must be preceded by a call to
+ *     "_DtInitializeCommandInvoker".
+ *                     
+ *****************************************************************************/
+
+extern void
+_DtCommandInvokerExecute(
+       char *request_name,
+       char *context_host,
+       char *context_dir,
+       char *context_file,
+       char *exec_parameters,
+       char *exec_host,
+       char *exec_string,
+       DtCmdInvExecuteProc success_proc,
+       void *success_data,
+       DtCmdInvExecuteProc failure_proc,
+       void *failure_data);
+
+extern SPC_Channel_Ptr _DtSPCOpen( char *hostname,
+         int iomode,
+         char *errorMessage);                          /* MODIFIED */
+
+extern int _DtSPCSpawn(
+        char                    *path,
+        char                    *context,
+        char                    **args,
+        char                    **env,
+        SPC_Channel_Ptr         chan,
+        char                    *execHost,
+        char                    *contextHost,
+        char                    *contextDir,
+        char                    *errorMessage);                /* MODIFIED */
+
+#endif /* _CmdInv_h */
diff --git a/cde/include/Dt/CmdInvP.h b/cde/include/Dt/CmdInvP.h
new file mode 100644 (file)
index 0000000..951d139
--- /dev/null
@@ -0,0 +1,206 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: CmdInvP.h /main/5 1998/07/30 12:10:30 mgreess $ */
+/***************************************************************************
+*
+* File:         CmdInvP.h
+* Description:  Command execution system private externs and includes
+* Language:     C
+*
+** (c) Copyright 1993, 1994 Hewlett-Packard Company
+** (c) Copyright 1993, 1994 International Business Machines Corp.
+** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+** (c) Copyright 1993, 1994 Novell, Inc.
+***************************************************************************/
+
+#ifndef _CmdInvP_h
+#define _CmdInvP_h
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/param.h>   /* MAXPATHNAMELEN */
+
+#include <X11/Intrinsic.h>
+
+#include <Dt/DtP.h>
+#include <Dt/DtNlUtils.h>
+#include <Dt/Message.h>
+#include <bms/SbEvent.h>
+#include <bms/XeUserMsg.h>
+#include <Dt/Spc.h>
+#include <Dt/CmdInv.h>
+#include <Dt/ActionP.h>
+#include <Dt/Connect.h>
+
+#ifndef CDE_INSTALLATION_TOP
+#define CDE_INSTALLATION_TOP "/opt/dt"
+#endif
+
+/*
+ * Resource names and classes for the Command Invoker.
+ */
+#define DtLOCAL_TERMINAL_NAME           "localTerminal"
+#define DtLOCAL_TERMINAL_CLASS          "LocalTerminal"
+
+#define DtREMOTE_TERMINALS_NAME         "remoteTerminals"
+#define DtREMOTE_TERMINALS_CLASS        "RemoteTerminals"
+
+#define DtWAIT_TIME_NAME               "waitTime"
+#define DtWAIT_TIME_CLASS              "WaitTime"
+
+#define DtDTEXEC_PATH_NAME             "dtexecPath"
+#define DtDTEXEC_PATH_CLASS            "DtexecPath"
+
+#define DtEXECUTION_HOST_LOGGING_NAME  "executionHostLogging"
+#define DtEXECUTION_HOST_LOGGING_CLASS "ExecutionHostLogging"
+
+
+/*
+ * Structure for saving the "state" of a remote request that is
+ * queued while waiting for a remote subprocess to terminate.
+ */
+typedef struct _Cmd_RequestQueue {
+   SPC_Channel_Ptr             channel;
+   char                        *context;
+   char                        *exec_host;
+   char                        *exec_string;
+   char                                **argv;
+   int                         winType;
+   unsigned long               request_num;
+   DtSvcMsgContext             replyContext;
+   DtCmdInvExecuteProc         success_proc;
+   void                                *success_data;
+   DtCmdInvExecuteProc         failure_proc;
+   void                                *failure_data;
+   struct _Cmd_RequestQueue    *next;
+} Cmd_RequestQueue;
+
+/*
+ * Command invocation resources.
+ */
+typedef struct {
+   char                                *localTerminal;
+   char                                **remoteHosts;
+   char                                **remoteTerminals;
+   int                         waitTime;
+   char                                *dtexecPath;
+   Boolean                     executionHostLogging;
+} Cmd_Resources;
+
+/*
+ * Command invocation global variables.
+ */
+typedef struct {
+   Boolean                     terminal_ok;
+   Boolean                     subprocess_ok;
+   XtAppContext                        app_context;
+   char                        **path_list;
+   char                                *error_directory_name_map;
+   char                                *error_subprocess;
+   char                                *error_terminal;
+} Cmd_Globals;
+
+/*
+ * Defaults for the Resources.
+ */
+#define DtWAIT_TIME_DEFAULT            3       /* In seconds. */
+#define DtTERMINAL_DEFAULT             "dtterm"
+
+#define DtCMD_INV_SUB_PROCESS          CDE_INSTALLATION_TOP "/bin/dtexec"
+
+/*
+ * Temporary buffer size.
+ */
+#define MAX_BUF_SIZE                   1024
+
+/* 
+ * Window types:
+ */
+#define NO_STDIO                       0
+#define TERMINAL                       1
+#define PERM_TERMINAL                  2
+
+/*
+ * Command execution return status:
+ */
+#define _CMD_EXECUTE_SUCCESS           1
+#define _CMD_EXECUTE_FAILURE           2
+#define _CMD_EXECUTE_QUEUED            3
+#define _CMD_EXECUTE_FATAL             4
+
+/*
+ * External declarations for the global Command Invoker variables.
+ */
+extern Cmd_Resources   cmd_Resources;
+extern Cmd_Globals     cmd_Globals;
+
+/*
+ *******    Public Function Declarations for CmdSpc.c    *******
+ */
+
+extern SbInputId _DtCmdSPCAddInputHandler (
+                       int fd,
+                       SbInputCallbackProc proc,
+                       void *data);
+extern SbInputId _DtCmdSPCAddExceptionHandler (
+                       int fd,
+                       SbInputCallbackProc proc,
+                       void *data);
+extern void _DtCmdLogErrorMessage( 
+                        char *message) ;
+
+
+/*
+ *******    Public Function Declarations for CmdProcess.c    *******
+ */
+
+extern void _DtCmdCreateTerminalCommand( 
+                        char **theCommand,
+                        int windowType,
+                        char *execString,
+                        char *execParms,
+                       char *execHost,
+                        char *procId,
+                        char *tmpFiles) ;
+extern Boolean _DtCmdCheckForExecutable( 
+                        char *fileName) ;
+extern Boolean _DtCmdValidDir( 
+                        char *clientHost,
+                        char *contextDir,
+                       char *contextHost) ;
+extern void _DtCmdGetResources( 
+                       Display *display);
+
+
+
+/*
+ *******    Public Function Declarations for CmdUtilityP.c    *******
+ */
+
+extern void _DtCmdBuildPathList( void ) ;
+
+/********    End Public Function Declarations    ********/
+
+#endif /* _CmdInvP_h */
diff --git a/cde/include/Dt/Collate.h b/cde/include/Dt/Collate.h
new file mode 100644 (file)
index 0000000..4a9cc37
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Collate.h /main/3 1995/10/26 15:18:49 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
+
+#ifndef DtCOLLATE_INCLUDED
+#define DtCOLLATE_INCLUDED
+
+
+#define MASK077                077
+#define ENDTABLE       0377            /* end mark of 2 to 1 character         */
+
+struct col_21tab {
+       unsigned char   ch1;            /* first char of 2 to 1                 */
+       unsigned char   ch2;            /* second char of 2 to 1                */
+       unsigned char   seqnum;         /* sequence number                      */
+       unsigned char   priority;       /* priority                             */
+};
+
+struct col_12tab {
+       unsigned char   seqnum;         /* seqnum of second char of 1 to 2      */
+       unsigned char   priority;       /* priority of 1 to 2 char              */
+};
+
+#endif /* DtCOLLATE_INCLUDED */
diff --git a/cde/include/Dt/ComboBox.h b/cde/include/Dt/ComboBox.h
new file mode 100644 (file)
index 0000000..b7bf0d3
--- /dev/null
@@ -0,0 +1,587 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ComboBox.h /main/4 1995/10/26 09:29:51 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ */
+/***********************************************************
+Copyright 1993 Interleaf, Inc.
+
+Permission to use, copy, modify, and distribute this software
+and its documentation for any purpose without fee is granted,
+provided that the above copyright notice appear in all copies
+and that both copyright notice and this permission notice appear
+in supporting documentation, and that the name of Interleaf not
+be used in advertising or publicly pertaining to distribution of
+the software without specific written prior permission.
+
+Interleaf makes no representation about the suitability of this
+software for any purpose. It is provided "AS IS" without any
+express or implied warranty.
+******************************************************************/
+
+#ifndef _Dt_ComboBox_h
+#define _Dt_ComboBox_h
+
+/*
+ * This widget is deprecated in favor of XmComboBox.  The two are very
+ * similar, but do have minor differences.  Applications doing new
+ * development are encouraged to use XmComboBox directly.  Existing
+ * applications may wish to recompile with DT_USE_XM_COMBOBOX.
+ */
+
+#include <Xm/Xm.h>
+#ifdef DT_USE_XM_COMBOBOX
+#include <Xm/ComboBox.h>
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+/***********************************************************************
+ *
+ * NOTE:
+ *     Because of future development of the ComboBox, not all of the 
+ *     following resources should be used.  The only ones which are
+ *     supported are the ones found in the Common Desktop Environment:
+ *     Programmer's Guide.  The supported resources include:
+ *     DtNmarginHeight, DtNmarginWidth, DtNselectedItem, 
+ *     DtNselectedPosition, DtNselectionCallback, and DtNcomboBoxType.
+ *
+ *     The use of the unsupported resources found in this header
+ *     file may cause dangerous and unexpected behavior.
+ *
+ **********************************************************************/
+
+/* WARNING: DtNactivateCallback is an unsupported resource in CDE 1.0 */
+#ifndef DtNactivateCallback
+#define DtNactivateCallback    XmNactivateCallback
+#endif
+/* WARNING: DtNalignment is an unsupported resource in CDE 1.0 */
+#ifndef DtNalignment
+#define DtNalignment           XmNalignment
+#endif
+/* WARNING: DtNarrowSize is an unsupported resource in CDE 1.0 */
+#ifndef DtNarrowSize
+#define DtNarrowSize           "arrowSize"
+#endif
+/* WARNING: DtNarrowSpacing is an unsupported resource in CDE 1.0 */
+#ifndef DtNarrowSpacing
+#define DtNarrowSpacing                "arrowSpacing"
+#endif
+/* WARNING: DtNarrowType is an unsupported resource in CDE 1.0 */
+#ifndef DtNarrowType
+#define DtNarrowType           "arrowType"
+#endif
+/* WARNING: DtNcolumns is an unsupported resource in CDE 1.0 */
+#ifndef DtNcolumns
+#define DtNcolumns             XmNcolumns
+#endif
+#ifndef DtNcomboBoxType
+#define DtNcomboBoxType                "comboBoxType"
+#endif
+/* WARNING: DtNfocusCallback is an unsupported resource in CDE 1.0 */
+#ifndef DtNfocusCallback
+#define DtNfocusCallback       XmNfocusCallback
+#endif
+/* WARNING: DtNhorizontalSpacing is an unsupported resource in CDE 1.0 */
+#ifndef DtNhorizontalSpacing
+#define DtNhorizontalSpacing   XmNhorizontalSpacing
+#endif
+/* WARNING: DtNitemCount is an unsupported resource in CDE 1.0 */
+#ifndef DtNitemCount
+#define DtNitemCount           XmNitemCount
+#endif
+/* WARNING: DtNitems is an unsupported resource in CDE 1.0 */
+#ifndef DtNitems
+#define DtNitems               XmNitems
+#endif
+/* WARNING: DtNlabelString is an unsupported resource in CDE 1.0 */
+#ifndef DtNlabelString
+#define DtNlabelString         XmNlabelString
+#endif
+/* WARNING: DtNlist is an unsupported resource in CDE 1.0 */
+#ifndef DtNlist
+#define DtNlist                        "list"
+#endif
+/* WARNING: DtNlistFontList is an unsupported resource in CDE 1.0 */
+#ifndef DtNlistFontList
+#define DtNlistFontList                "listFontList"
+#endif
+/* WARNING: DtNlistMarginHeight is an unsupported resource in CDE 1.0 */
+#ifndef DtNlistMarginHeight
+#define DtNlistMarginHeight    XmNlistMarginHeight
+#endif
+/* WARNING: DtNlistMarginWidth is an unsupported resource in CDE 1.0 */
+#ifndef DtNlistMarginWidth
+#define DtNlistMarginWidth     XmNlistMarginWidth
+#endif
+/* WARNING: DtNlistSpacing is an unsupported resource in CDE 1.0 */
+#ifndef DtNlistSpacing
+#define DtNlistSpacing         XmNlistSpacing
+#endif
+/* WARNING: DtNlosingFocusCallback is an unsupported resource in CDE 1.0 */
+#ifndef DtNlosingFocusCallback
+#define DtNlosingFocusCallback XmNlosingFocusCallback
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                XmNmarginHeight
+#endif
+#ifndef DtNmarginWidth
+#define DtNmarginWidth         XmNmarginWidth
+#endif
+/* WARNING: DtNmaxLength is an unsupported resource in CDE 1.0 */
+#ifndef DtNmaxLength
+#define DtNmaxLength           XmNmaxLength
+#endif
+/* WARNING: DtNmenuPostCallback is an unsupported resource in CDE 1.0 */
+#ifndef DtNmenuPostCallback
+#define DtNmenuPostCallback    "menuPostCallback"
+#endif
+/* WARNING: DtNorientation is an unsupported resource in CDE 1.0 */
+#ifndef DtNorientation
+#define DtNorientation         XmNorientation
+#endif
+/* WARNING: DtNpoppedUp is an unsupported resource in CDE 1.0 */
+#ifndef DtNpoppedUp
+#define DtNpoppedUp            "poppedUp"
+#endif
+/* WARNING: DtNrecomputeSize is an unsupported resource in CDE 1.0 */
+#ifndef DtNrecomputeSize
+#define DtNrecomputeSize       XmNrecomputeSize
+#endif
+#ifndef DtNselectedItem
+#define DtNselectedItem                "selectedItem"
+#endif
+#ifndef DtNselectedPosition
+#define DtNselectedPosition    "selectedPosition"
+#endif
+#ifndef DtNselectionCallback
+#define DtNselectionCallback   "selectionCallback"
+#endif
+/* WARNING: DtNtextField is an unsupported resource in CDE 1.0 */
+#ifndef DtNtextField
+#define DtNtextField           "textField"
+#endif
+/* WARNING: DtNtopItemPosition is an unsupported resource in CDE 1.0 */
+#ifndef DtNtopItemPosition
+#define DtNtopItemPosition     XmNtopItemPosition
+#endif
+/* WARNING: DtNupdateLabel is an unsupported resource in CDE 1.0 */
+#ifndef DtNupdateLabel
+#define DtNupdateLabel         "updateLabel"
+#endif
+/* WARNING: DtNverticalSpacing is an unsupported resource in CDE 1.0 */
+#ifndef DtNverticalSpacing
+#define DtNverticalSpacing     XmNverticalSpacing
+#endif
+/* WARNING: DtNvisibleItemCount is an unsupported resource in CDE 1.0 */
+#ifndef DtNvisibleItemCount
+#define DtNvisibleItemCount    XmNvisibleItemCount
+#endif
+
+#ifndef DtCAlignment
+#define DtCAlignment           XmCAlignment
+#endif
+#ifndef DtCArrowSize
+#define DtCArrowSize           "ArrowSize"
+#endif
+#ifndef DtCArrowSpacing
+#define DtCArrowSpacing                "ArrowSpacing"
+#endif
+#ifndef DtCArrowType
+#define DtCArrowType           "ArrowType"
+#endif
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCColumns
+#define DtCColumns             XmCColumns
+#endif
+#ifndef DtCComboBoxType
+#define DtCComboBoxType                "ComboBoxType"
+#endif
+#ifndef DtCHorizontalSpacing
+#define DtCHorizontalSpacing   "HorizontalSpacing"
+#endif
+#ifndef DtCItemCount
+#define DtCItemCount           XmCItemCount
+#endif
+#ifndef DtCItems
+#define DtCItems               XmCItems
+#endif
+#ifndef DtCList
+#define DtCList                        "List"
+#endif
+#ifndef DtCListFontList
+#define DtCListFontList                "ListFontList"
+#endif
+#ifndef DtCListMarginHeight
+#define DtCListMarginHeight    XmCListMarginHeight
+#endif
+#ifndef DtCListMarginWidth
+#define DtCListMarginWidth     XmCListMarginWidth
+#endif
+#ifndef DtCListSpacing
+#define DtCListSpacing         XmCListSpacing
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                XmCMarginHeight
+#endif
+#ifndef DtCMarginWidth
+#define DtCMarginWidth         XmCMarginWidth
+#endif
+#ifndef DtCMaxLength
+#define DtCMaxLength           XmCMaxLength
+#endif
+#ifndef DtCOrientation
+#define DtCOrientation         XmCOrientation
+#endif
+#ifndef DtCPoppedUp
+#define DtCPoppedUp            "PoppedUp"
+#endif
+#ifndef DtCRecomputeSize
+#define DtCRecomputeSize       XmCRecomputeSize
+#endif
+#ifndef DtCSelectedItem
+#define DtCSelectedItem                "SelectedItem"
+#endif
+#ifndef DtCSelectedPosition
+#define DtCSelectedPosition    "SelectedPosition"
+#endif
+#ifndef DtCTextField
+#define DtCTextField           "TextField"
+#endif
+#ifndef DtCTopItemPosition
+#define DtCTopItemPosition     XmCTopItemPosition
+#endif
+#ifndef DtCUpdateLabel
+#define DtCUpdateLabel         "UpdateLabel"
+#endif
+#ifndef DtCVerticalSpacing
+#define DtCVerticalSpacing     "VerticalSpacing"
+#endif
+#ifndef DtCVisibleItemCount
+#define DtCVisibleItemCount    XmCVisibleItemCount
+#endif
+#ifndef DtCXmString
+#define DtCXmString            XmCXmString
+#endif
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#ifndef DtNarrowSize
+#define DtNarrowSize           XmNarrowSize
+#endif
+#ifndef DtNarrowSpacing
+#define DtNarrowSpacing                XmNarrowSpacing
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns             XmNcolumns
+#endif
+#ifndef DtNcomboBoxType
+#define DtNcomboBoxType                XmNcomboBoxType
+#endif
+#ifndef DtNitemCount
+#define DtNitemCount           XmNitemCount
+#endif
+#ifndef DtNitems
+#define DtNitems               XmNitems
+#endif
+#ifndef DtNlabelString
+#define DtNlabelString         XmNlabelString
+#endif
+#ifndef DtNlist
+#define DtNlist                        XmNlist
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                XmNmarginHeight
+#endif
+#ifndef DtNmarginWidth
+#define DtNmarginWidth         XmNmarginWidth
+#endif
+#ifndef DtNselectedItem
+#define DtNselectedItem                XmNselectedItem
+#endif
+#ifndef DtNselectedPosition
+#define DtNselectedPosition    XmNselectedPosition
+#endif
+#ifndef DtNselectionCallback
+#define DtNselectionCallback   XmNselectionCallback
+#endif
+#ifndef DtNtextField
+#define DtNtextField           XmNtextField
+#endif
+#ifndef DtNvisibleItemCount
+#define DtNvisibleItemCount    XmNvisibleItemCount
+#endif
+
+#ifndef DtCArrowSize
+#define DtCArrowSize           XmCArrowSize
+#endif
+#ifndef DtCArrowSpacing
+#define DtCArrowSpacing                XmCArrowSpacing
+#endif
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCColumns
+#define DtCColumns             XmCColumns
+#endif
+#ifndef DtCComboBoxType
+#define DtCComboBoxType                XmCComboBoxType
+#endif
+#ifndef DtCItemCount
+#define DtCItemCount           XmCItemCount
+#endif
+#ifndef DtCItems
+#define DtCItems               XmCItems
+#endif
+#ifndef DtCList
+#define DtCList                        XmCList
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                XmCMarginHeight
+#endif
+#ifndef DtCMarginWidth
+#define DtCMarginWidth         XmCMarginWidth
+#endif
+#ifndef DtCSelectedItem
+#define DtCSelectedItem                XmCSelectedItem
+#endif
+#ifndef DtCSelectedPosition
+#define DtCSelectedPosition    XmCSelectedPosition
+#endif
+#ifndef DtCTextField
+#define DtCTextField           XmCTextField
+#endif
+#ifndef DtCVisibleItemCount
+#define DtCVisibleItemCount    XmCVisibleItemCount
+#endif
+#ifndef DtCXmString
+#define DtCXmString            XmCXmString
+#endif
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+/* Representation types */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtRArrowType
+#define DtRArrowType           "ArrowType"
+#endif
+#ifndef DtRComboBoxType
+#define DtRComboBoxType                "ComboBoxType"
+#endif
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#ifndef DtRComboBoxType
+#define DtRComboBoxType                XmRComboBoxType
+#endif
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+/* DtNorientation values */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtLEFT
+#define DtLEFT         1
+#endif
+#ifndef DtRIGHT
+#define DtRIGHT                2
+#endif
+
+#endif /* not DT_USE_XM_COMBOBOX */
+
+/* DtNarrowType values */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtMOTIF
+#define DtMOTIF                0
+#endif
+#ifndef DtWINDOWS
+#define DtWINDOWS      1
+#endif
+
+#endif /* not DT_USE_XM_COMBOBOX */
+
+/* DtNcomboBoxType values */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtDROP_DOWN_LIST
+#define DtDROP_DOWN_LIST       2
+#endif
+#ifndef DtDROP_DOWN_COMBO_BOX
+#define DtDROP_DOWN_COMBO_BOX  1
+#endif
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#ifndef DtDROP_DOWN_LIST
+#define DtDROP_DOWN_LIST       XmDROP_DOWN_LIST
+#endif
+#ifndef DtDROP_DOWN_COMBO_BOX
+#define DtDROP_DOWN_COMBO_BOX  XmDROP_DOWN_COMBO_BOX
+#endif
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+/* DtNalignment values */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtALIGNMENT_BEGINNING
+#define DtALIGNMENT_BEGINNING  XmALIGNMENT_BEGINNING
+#endif
+#ifndef DtALIGNMENT_CENTER
+#define DtALIGNMENT_CENTER     XmALIGNMENT_CENTER
+#endif
+#ifndef DtALIGNMENT_END
+#define DtALIGNMENT_END                XmALIGNMENT_END
+#endif
+
+#endif /* not DT_USE_XM_COMBOBOX */
+
+/* Callback reasons */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+#ifndef DtCR_SELECT
+#define DtCR_SELECT        57 /* Large #, so no collisions with XM */
+#endif
+#ifndef DtCR_MENU_POST
+#define DtCR_MENU_POST      129 /* Large #, so no collisions with XM */
+#endif
+
+#endif /* not DT_USE_XM_COMBOBOX */
+
+
+/*
+ * Types
+ */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       XmString        item_or_text;
+       int             item_position;
+} DtComboBoxCallbackStruct;
+
+
+/* Widget class and instance */
+
+typedef struct _DtComboBoxClassRec *DtComboBoxWidgetClass;
+typedef struct _DtComboBoxRec      *DtComboBoxWidget;
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#define DtComboBoxCallbackStruct       XmComboBoxCallbackStruct
+#define DtComboBoxWidgetClass          XmComboBoxWidgetClass
+#define DtComboBoxWidget               XmComboBoxWidget
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+
+/*
+ * Data
+ */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+/* Widget class record */
+
+externalref WidgetClass dtComboBoxWidgetClass;
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#define dtComboBoxWidgetClass xmComboBoxWidgetClass;
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+
+/*
+ * Functions
+ */
+
+#ifndef DT_USE_XM_COMBOBOX
+
+extern Widget DtCreateComboBox(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern void DtComboBoxAddItem(
+               Widget          combo,
+               XmString        item,
+               int             pos,
+               Boolean         unique);
+
+extern void DtComboBoxDeletePos(
+               Widget          combo,
+               int             pos);
+
+extern void DtComboBoxSetItem(
+               Widget          combo,
+               XmString        item);
+
+extern void DtComboBoxSelectItem(
+               Widget          combo,
+               XmString        item);
+
+#else /* DT_USE_XM_COMBOBOX */
+
+#define DtCreateComboBox       XmCreateComboBox
+#define DtComboBoxAddItem      XmComboBoxAddItem
+#define DtComboBoxDeletePos    XmComboBoxDeletePos
+#define DtComboBoxSetItem      XmComboBoxSetItem
+#define DtComboBoxSelectItem   XmComboBoxSelectItem
+
+#endif /* DT_USE_XM_COMBOBOX */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_ComboBox_h */
diff --git a/cde/include/Dt/ComboBoxP.h b/cde/include/Dt/ComboBoxP.h
new file mode 100644 (file)
index 0000000..0099197
--- /dev/null
@@ -0,0 +1,255 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ComboBoxP.h /main/3 1995/10/26 09:29:58 rswiston $ */
+/*
+ * DtWidget/ComboBoxP.h
+ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ */
+/***********************************************************
+Copyright 1993 Interleaf, Inc.
+
+Permission to use, copy, modify, and distribute this software
+and its documentation for any purpose without fee is granted,
+provided that the above copyright notice appear in all copies
+and that both copyright notice and this permission notice appear
+in supporting documentation, and that the name of Interleaf not
+be used in advertising or publicly pertaining to distribution of
+the software without specific written prior permission.
+
+Interleaf makes no representation about the suitability of this
+software for any purpose. It is provided "AS IS" without any
+express or implied warranty. 
+******************************************************************/
+
+/*
+ * (C) Copyright 1991,1992, 1993
+ * Interleaf, Inc.
+ * Nine Hillside Avenue, Waltham, MA  02154
+ *
+ * ComboBoxP.h:
+ * 
+ * Private header file for DtComboBoxWidget.
+ */
+#ifndef _ComboBoxP_h
+#define _ComboBoxP_h
+
+#include <X11/IntrinsicP.h>
+#include <X11/ShellP.h>
+#include <Xm/DrawnB.h>
+#include <Xm/ArrowB.h>
+#include <Xm/TextFP.h>
+#include <Xm/Label.h>
+#include <Xm/Frame.h>
+#include <Xm/ListP.h>
+#include <Xm/Separator.h>
+#include <Xm/ScrolledWP.h>
+#include <Xm/ScrollBarP.h>
+
+#include <Xm/ManagerP.h>
+#include "ComboBox.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * External definitions of syn_resources for our list widget.
+ */
+#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value)
+extern void _DtComboBoxGetArrowSize            SYN_RESOURCE_AA;
+extern void _DtComboBoxGetLabelString          SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListItemCount                SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListItems            SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListFontList         SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListMarginHeight     SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListMarginWidth      SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListSpacing          SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListTopItemPosition  SYN_RESOURCE_AA;
+extern void _DtComboBoxGetListVisibleItemCount SYN_RESOURCE_AA;
+
+#define ARROW_MULT         .45
+#define ARROW_MIN          13
+#define MARGIN             2
+#define LABEL_PADDING      2
+#define LABEL_SHADOW       2
+#define TEXT_FIELD_SHADOW   1
+#define TEXT_CONTEXT_MARGIN 4
+
+/****************************************************************
+ *
+ *     Message Defines
+ *
+ ****************************************************************/
+
+#define CB_ALIGNMENT   DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_ALIGNMENT, _DtMsgComboBox_0000)
+
+#define CB_MARGIN_HEIGHT       DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_MARGIN_HEIGHT, _DtMsgComboBox_0001)
+
+#define CB_MARGIN_WIDTH        DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_MARGIN_WIDTH, _DtMsgComboBox_0002)
+
+#define CB_HORIZONTAL_SPACING  DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_HORIZONTAL_SPACING, _DtMsgComboBox_0003)
+
+#define CB_VERTICAL_SPACING    DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_VERTICAL_SPACING, _DtMsgComboBox_0004)
+
+#define CB_ORIENTATION DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_ORIENTATION, _DtMsgComboBox_0005)
+
+#define CB_ITEM_COUNT  DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_ITEM_COUNT, _DtMsgComboBox_0006)
+
+#define CB_VISIBLE_ITEM        DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_VISIBLE_ITEM, _DtMsgComboBox_0007)
+
+#define CB_TEXT                DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_TEXT, _DtMsgComboBox_0008)
+
+#define CB_SET_ITEM            DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_SET_ITEM, _DtMsgComboBox_0009)
+
+#define CB_SELECT_ITEM         DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_SELECT_ITEM, _DtMsgComboBox_0010)
+
+#define CB_RESIZE      DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_RESIZE, _DtMsgComboBox_0011)
+
+#define CB_LABEL       DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_LABEL, _DtMsgComboBox_0012)
+
+#define CB_CVTSTRING   DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_CVTSTRING, _DtMsgComboBox_0013)
+
+#define CB_DEL_POS     DTWIDGET_GETMESSAGE( \
+                          MS_ComboBox, COMBO_DEL_POS, _DtMsgComboBox_0014)
+/* 
+ * Class Records
+ */
+typedef struct {
+    Boolean junk;  /* Need something */
+} DtComboBoxClassPart;
+
+typedef struct _DtComboBoxClassRec {
+    CoreClassPart          core_class;
+    CompositeClassPart     composite_class;
+    ConstraintClassPart            constraint_class;
+    XmManagerClassPart     manager_class;
+    DtComboBoxClassPart            combo_box_class;
+} DtComboBoxClassRec;
+
+extern DtComboBoxClassRec dtComboBoxClassRec;
+
+
+/*
+ * Instance Record.
+ */
+typedef struct _DtComboBoxPart {
+    /* Private data */
+    Widget arrow;
+    Widget shell;
+    Widget frame;
+    Widget label;
+    Widget sep;
+    Dimension old_width;
+    Dimension old_height;
+    Dimension label_max_length;
+    Dimension label_max_height;
+    /* 
+     * max_shell_width is the width that is needed to hold the
+     * list if the longest item was visible.  We then use this
+     * width to figure out if the shell is not wide enough,
+     * when it gets popped on the screen.  This is needed in case the
+     * combo-box resizes, or if items changes (list will resize).
+     * Sometimes we change the size of the shell to fit on the screen, or
+     * to make it at least as large as the combo_box.  The next time we pop
+     * the shell up the size may be different; therefore, we set the shell
+     * size to the maximum everytime it gets popped up, then we will
+     * make adjustments, only if needed.
+     * This value gets saved every time the user updates DtNitems.
+     */
+    Dimension max_shell_width;
+    Dimension max_shell_height;
+
+    /* ComboBox specific public resources */
+    Dimension margin_height;
+    Dimension margin_width;
+    XmString selected_item;
+    int selected_position;
+    XtCallbackList selection_callback;
+    unsigned char type;
+    Dimension arrow_spacing;
+
+    /* ComboBox specific private resources */
+    Dimension arrow_size;
+    XtCallbackList activate_callback;
+    unsigned char alignment;
+    unsigned char arrow_type;
+    short text_columns;
+    XtCallbackList focus_callback;
+    Dimension horizontal_spacing;
+    int item_count;
+    XmStringTable items;
+    XmStringTable list_items;
+    XmString label_string;
+    Widget list;
+    XmFontList list_font_list;
+    Dimension list_margin_height;
+    Dimension list_margin_width;
+    Dimension list_spacing;
+    XtCallbackList losing_focus_callback;
+    unsigned int text_max_length;
+    XtCallbackList menu_post_callback;
+    unsigned char orientation;
+    Boolean popped_up;
+    Boolean recompute_size;
+    Widget text;
+    int top_item_position;
+    Boolean update_label;
+    Dimension vertical_spacing;
+    int visible_item_count;
+} DtComboBoxPart;
+
+
+typedef struct _DtComboBoxRec {
+    CorePart           core;
+    CompositePart      composite;
+    ConstraintPart     constraint;
+    XmManagerPart      manager;
+    DtComboBoxPart     combo_box;
+} DtComboBoxRec;
+
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _XmComboBoxP_h */
diff --git a/cde/include/Dt/CommandM.h b/cde/include/Dt/CommandM.h
new file mode 100644 (file)
index 0000000..e79879a
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         CommandM.h $XConsortium: CommandM.h /main/3 1995/10/26 15:18:58 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_CommandM_h
+#define _Dt_CommandM_h
+
+/*
+ * Command Invoker execution window types.  Note that a success or
+ * failure notification will be sent for each request.  For
+ * failures, the only data returned is an error message.
+ */
+#define DtNO_STDIO                     "NO_STDIO"
+#define DtTERMINAL                     "TERMINAL"
+#define DtPERM_TERMINAL                        "PERM_TERMINAL"
+#define DtOUTPUT_ONLY                  "OUTPUT_ONLY"
+#define DtSHARED_OUTPUT                        "SHARED_OUTPUT"
+
+/*
+ * When the session manager starts, it needs a window type (NO-STDIO),
+ * but if a failure occurs, it does NOT want an error message, but
+ * instead wants to receive the execution host and the execution
+ * string.  The following define is for this type of request.
+ */
+#define DtSTART_SESSION                        "START-SESSION"
+
+#endif /* _Dt_CommandM_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Connect.h b/cde/include/Dt/Connect.h
new file mode 100644 (file)
index 0000000..2266c63
--- /dev/null
@@ -0,0 +1,179 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Connect.h $XConsortium: Connect.h /main/3 1995/10/26 15:19:09 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_connect_h
+#define _Dt_connect_h
+
+#include <Dt/DtP.h>
+#include <bms/connect.h>
+#include <codelibs/pathutils.h>
+
+#define DtGetShortHostname Xegetshorthostname
+#define DtGetHostname      Xegethostname
+/*
+    DESCRIPTION:
+    
+       These functions are similiar to gethostname(2), however
+       DtGetHostname always returns a full domain-qualified name 
+       and DtGetShortHostname returns a simple name.
+       
+    SYNOPSIS:
+    
+       status = DtGet[Short]Hostname (hostname, size)
+       
+       int status;             Returns 0 on success, -1 on failure.
+                               [Actually it returns what gethostname(2)
+                               returns, which is ambiguous in the
+                               HP-UX manual.]
+                               
+       char *hostname;         The hostname is returned here.
+       
+       int size;               The name is truncated to "size - 1" and
+                               is null-terminated.
+*/
+
+#define DtGetcwd       Xegetcwd
+/*
+    DESCRIPTION:
+    
+       This function is similar to getcwd except it first checks $PWD.
+       It only calls getcwd if $PWD is not set.
+
+    SYNOPSIS:
+    
+       cwd = DtGetcwd (buf, size)
+
+       char *cwd;              Pointer to the returned value.  (Typically 
+                               the same value as 'buf' that is passed in.)
+
+       char *buf;              Pointer to memory allocated by the caller.
+                               Buf must be large enough to hold the string.
+
+       int size;               Size of buf in bytes.
+*/
+
+#define DtIsLocalHostP XeIsLocalHostP
+/*
+    DESCRIPTION:
+    
+       Tests whether a passed-in hostname identifies the host on which
+       the function is being executed.  This handles all combinations of
+       simple and domain-qualified names for either the hostname passed
+       in or the one defined on the local host.
+       
+       WARNING: Returns BOOLEAN, not INT.  DONT TREAT IT AS AN INT!
+       
+    SYNOPSIS:
+    
+       status = XeIsLocalHostP (hostname);
+       
+       Boolean status;         Returns TRUE if "hostname" identifies the
+                               local host, FALSE otherwise.
+                               
+       char *hostname;         The hostname (either simple or domain-
+                               qualified) to test.
+*/
+
+#define DtIsSameHostP XeIsSameHostP
+/*
+    DESCRIPTION:
+    
+       Compares two hostnames to see if they specify the same host.
+       This handles combinations of simple and domain-qualified names.
+       This function canonicalizes both names and then compares them.
+       
+       WARNING: Returns BOOLEAN, not INT.  DONT TREAT IT AS AN INT!
+       
+    SYNOPSIS:
+    
+       status = DtIsSameHostP (host1, host2);
+       
+       Boolean status;         Returns TRUE if host1 and host2 identify
+                               the same host, FALSE otherwise.
+                               
+       char *host1, *host2;    The two hostnames (either simple or
+                               domain-qualified) to compare.
+*/
+
+#define DtCreateContextString XeCreateContextString
+/*
+    DESCRIPTION:
+    
+        DtCreateContextString takes the three parts of a context and
+       puts them into a single string, in the form "host:/dir/file".
+
+        A NEW STRING, OWNED BY THE CALLER, is returned.
+       
+    SYNOPSIS:
+    
+       context_string = DtCreateContextString (host, dir, file);
+       
+       DtString context_string;  The returned context.  The memory is owned
+                                 by the caller.  "NULL" is returned if the
+                                 context cannot be created.
+                               
+       DtString host;            The name of the host.
+       
+       DtString dir;             The directory.
+       
+       DtString file;            The name of the file.
+*/     
+       
+#define DtEliminateDots        XeEliminateDots
+/*
+    DESCRIPTION:
+    
+       This routine removes /./'s and /../'s from a path.  It will 
+       OVERWRITE the path IT WAS PASSED.  If there are too many /../'s
+       in the path this function will return NULL, so you better keep
+       a pointer to the path if you hope to reclaim it.
+       
+       This function does not handle "host:/directory/file", shell
+       variables, or other exotic animals.
+       
+    SYNOPSIS:
+    
+       fixed_path = DtEliminateDots (path);
+       
+       DtString fixed_path;    A pointer to the same path that was passed in
+                               (though now it is fixed up) or NULL if problems
+                               were encountered.
+                               
+       DtString path;          The path that needs fixing up.
+*/     
+       
+#define DtParseFileString XeParseFileString
+
+#endif /* _Dt_connect_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Control.h b/cde/include/Dt/Control.h
new file mode 100644 (file)
index 0000000..d01c7af
--- /dev/null
@@ -0,0 +1,109 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           Control.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Public include file for DtControl class.
+***    
+***    
+***                    (c) Copyright 1992 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtControl_h
+#define _DtControl_h
+
+#include <Xm/Xm.h>
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+#define XmCONTROL_NONE         0
+#define XmCONTROL_BLANK                1
+#define XmCONTROL_BUSY         2
+#define XmCONTROL_BUTTON       3
+#define XmCONTROL_CLIENT       4
+#define XmCONTROL_DATE         5
+#define XmCONTROL_MAIL         6
+#define XmCONTROL_MONITOR      7
+#define XmCONTROL_SWITCH       8
+
+#define NUM_LIST_ITEMS         10
+
+#define XmCR_BUSY_START                60
+#define XmCR_BUSY_STOP         61
+#define XmCR_MONITOR           62
+
+#define DtMONITOR_OFF           0
+#define DtMONITOR_ON            1
+
+#define XmNuseLabelAdjustment  "use_label_adjustment"
+
+#ifndef DtIsControl
+#define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
+#endif /* DtIsControl */
+
+
+extern Widget _DtCreateControl (Widget, String, ArgList, int);
+extern void _DtControlSetFileChanged (Widget, Boolean);
+extern void _DtControlSetBusy (Widget, Boolean);
+extern void _DtControlAddDropAnimationImage (Widget, String, int);
+extern void _DtControlDoDropAnimation (Widget);
+extern void _DtControlAddPushAnimationImage (Widget, String, int);
+extern void _DtControlDoPushAnimation (Widget);
+extern char _DtControlGetMonitorState(Widget);
+
+
+extern WidgetClass dtControlGadgetClass;
+
+typedef struct _DtControlClassRec * DtControlClass;
+typedef struct _DtControlRec      * DtControlGadget;
+
+#define XmCR_FILE_CHANGED      51
+
+typedef struct
+    {
+    int                         reason;
+    XEvent             *event;
+    Boolean             set;
+    unsigned char       control_type;
+    XtPointer           push_function;
+    XtPointer           push_argument;
+    Widget              subpanel;
+    long                file_size;
+    }  DtControlCallbackStruct;
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+
+#endif /* _DtControl_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ControlP.h b/cde/include/Dt/ControlP.h
new file mode 100644 (file)
index 0000000..878c120
--- /dev/null
@@ -0,0 +1,245 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ControlP.h /main/6 1996/03/25 11:17:48 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           ControlP.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Private include file for DtControl class.
+***    
+***    
+***                    (c) Copyright 1992 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtControlP_h
+#define _DtControlP_h
+
+#include <Xm/XmP.h>
+#include <Dt/IconP.h>
+#include <Dt/Control.h>
+
+typedef struct _DtControlCacheObjClassPart
+{
+    XtPointer dummy;
+} DtControlCacheObjClassPart;
+
+
+typedef struct _DtControlCacheObjClassRec     /* label cache class record */
+{
+    ObjectClassPart                     object_class;
+    XmExtClassPart                      ext_class;
+    DtControlCacheObjClassPart           control_class_cache;
+} DtControlCacheObjClassRec;
+
+externalref DtControlCacheObjClassRec dtControlCacheObjClassRec;
+
+
+/*  The Control Gadget Cache instance record  */
+
+typedef struct _DtControlCacheObjPart
+{
+    XtPointer dummy;
+} DtControlCacheObjPart;
+
+typedef struct _DtControlCacheObjRec
+{
+    ObjectPart               object;
+    XmExtPart                ext;
+    DtControlCacheObjPart   control_cache;
+} DtControlCacheObjRec;
+
+/*-------------------------------------------------------------
+**     Class Structure
+*/
+
+/*     Class Part
+*/
+typedef struct _DtControlClassPart
+{
+       XmCacheClassPartPtr     cache_part;
+       caddr_t                 extension;
+} DtControlClassPart;
+
+/*     Full Class Record
+*/
+typedef struct _DtControlClassRec
+{
+       RectObjClassPart        rect_class;
+       XmGadgetClassPart       gadget_class;
+       DtIconClassPart icon_class;
+       DtControlClassPart      control_class;
+} DtControlClassRec;
+
+/*     Actual Class
+*/
+extern DtControlClassRec dtControlClassRec;
+
+
+\f
+/*-------------------------------------------------------------
+**     Instance Structure
+*/
+
+/*     Instance Part
+*/
+typedef struct _DtControlPart
+{
+       XtPointer       push_function;
+       XtPointer       push_argument;
+
+       String          push_action;
+       int             num_push_images;
+       int             max_push_images;
+       int             push_image_position;
+       int             *push_delays;
+       Pixmap          *push_pixmaps;
+       Pixmap          *push_masks;
+
+       String          drop_action;
+       int             num_drop_images;
+       int             max_drop_images;
+       int             drop_image_position;
+       int             *drop_delays;
+       Pixmap          *drop_pixmaps;
+       Pixmap          *drop_masks;
+
+       Widget          subpanel;
+
+       Pixmap          alt_pix;
+       Pixmap          alt_mask;
+       String          alt_image;
+
+       XmString        alt_string;
+       Dimension       alt_string_width;
+       Dimension       alt_string_height;
+
+       String          format;
+        String          format_jp;
+       String          file_name;
+       long            file_size;
+       XtIntervalId    monitor_timer;
+       int             monitor_time;
+       Boolean         chime;
+       Boolean         file_changed;
+
+       Boolean         _do_update;
+       Boolean         use_embossed_text;
+       Boolean         use_label_adj;
+
+       unsigned char   control_type;
+
+       GC              top_shadow_gc;
+       GC              bottom_shadow_gc;
+
+       XtIntervalId    click_timer;
+       int             click_time;
+
+       short           busy;
+       int             blink_elapsed;
+       int             max_blink_time;
+       int             blink_time;
+       XtIntervalId    blink_timer;
+
+       XtIntervalId    date_timer;
+       XtIntervalId    push_animation_timer;
+       XtIntervalId    drop_animation_timer;
+} DtControlPart;
+
+/*     Full Instance Record
+*/
+typedef struct _DtControlRec
+{
+       ObjectPart      object;
+       RectObjPart     rectangle;
+       XmGadgetPart    gadget;
+       DtIconPart      icon;
+       DtControlPart   control;
+} DtControlRec;
+
+
+/*-------------------------------------------------------------
+**     Class and Instance Macros
+*/
+
+/*     DtControl Class Macros
+*/     
+
+/*     DtControl Instance Macros
+*/
+#define G_Format(g)            (g -> control.format)
+#define G_TopShadowGC(g)       (g -> control.top_shadow_gc)
+#define G_BottomShadowGC(g)    (g -> control.bottom_shadow_gc)
+#define G_Busy(g)              (g -> control.busy)
+#define G_PushImagePosition(g) (g -> control.push_image_position)
+#define G_NumPushImages(g)     (g -> control.num_push_images)
+#define G_MaxPushImages(g)     (g -> control.max_push_images)
+#define G_PushDelays(g)                (g -> control.push_delays)
+#define G_PushPixmaps(g)       (g -> control.push_pixmaps)
+#define G_PushMasks(g)         (g -> control.push_masks)
+#define G_DropImagePosition(g) (g -> control.drop_image_position)
+#define G_NumDropImages(g)     (g -> control.num_drop_images)
+#define G_MaxDropImages(g)     (g -> control.max_drop_images)
+#define G_DropDelays(g)                (g -> control.drop_delays)
+#define G_DropPixmaps(g)       (g -> control.drop_pixmaps)
+#define G_DropMasks(g)         (g -> control.drop_masks)
+#define G_DropAction(g)                (g -> control.drop_action)
+#define G_PushAction(g)                (g -> control.push_action)
+#define G__DoUpdate(g)         (g -> control._do_update)
+#define G_PushFunction(g)      (g -> control.push_function)
+#define G_PushArgument(g)      (g -> control.push_argument)
+#define G_Subpanel(g)          (g -> control.subpanel)
+#define G_AltMask(g)           (g -> control.alt_mask)
+#define G_AltPix(g)            (g -> control.alt_pix)
+#define G_AltString(g)         (g -> control.alt_string)
+#define G_AltStringWidth(g)    (g -> control.alt_string_width)
+#define G_AltStringHeight(g)   (g -> control.alt_string_height)
+#define G_ControlType(g)       (g -> control.control_type)
+#define G_AltImage(g)          (g -> control.alt_image)
+#define G_FileChanged(g)       (g -> control.file_changed)
+#define G_FileName(g)          (g -> control.file_name)
+#define G_FileSize(g)          (g -> control.file_size)
+#define G_Chime(g)             (g -> control.chime)
+#define G_MonitorTimer(g)      (g -> control.monitor_timer)
+#define G_MonitorTime(g)       (g -> control.monitor_time)
+#define G_ClickTime(g)         (g -> control.click_time)
+#define G_ClickTimer(g)                (g -> control.click_timer)
+#define G_DateTimer(g)         (g -> control.date_timer)
+#define G_PushAnimationTimer(g)        (g -> control.push_animation_timer)
+#define G_DropAnimationTimer(g)        (g -> control.drop_animation_timer)
+#define G_BlinkCount(g)                (g -> control.blink_count)
+#define G_BlinkElapsed(g)      (g -> control.blink_elapsed)
+#define G_MaxBlinkTime(g)      (g -> control.max_blink_time)
+#define G_BlinkTime(g)         (g -> control.blink_time)
+#define G_BlinkTimer(g)                (g -> control.blink_timer)
+#define G_BlinkTime(g)         (g -> control.blink_time)
+#define G_UseEmbossedText(g)   (g -> control.use_embossed_text)
+#define G_UseLabelAdjustment(g)        (g -> control.use_label_adj)
+
+
+#endif /* _DtControlP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/DataTypes.h b/cde/include/Dt/DataTypes.h
new file mode 100644 (file)
index 0000000..8d4694b
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DataTypes.h /main/3 1995/10/26 15:19:20 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/* -*-C-*-
+*******************************************************************************
+*
+* File:         DataTypes.h
+* Description:  This file defines data types that are used throughout the
+*              DT code.
+*
+* Common Desktop Environment (CDE)
+*
+* (c) Copyright 1993 Hewlett-Packard Company
+* (c) Copyright 1993 International Business Machines Corp.
+* (c) Copyright 1993 Sun Microsystems, Inc.
+*
+*
+* Disclaimer:  This file could change between the 10/93 snapshot and the
+*              final release of CDE 1.0
+*
+*******************************************************************************
+*/
+
+#ifndef _Dt_DataTypes_h
+#define _Dt_DataTypes_h
+
+#include <X11/Intrinsic.h>
+
+typedef XtPointer Pointer;
+
+#endif /* _Dt_DataTypes_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/DbReader.h b/cde/include/Dt/DbReader.h
new file mode 100644 (file)
index 0000000..12df7fa
--- /dev/null
@@ -0,0 +1,188 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:        DbReader.h $XConsortium: DbReader.h /main/4 1995/10/26 15:03:35 rswiston $
+ *
+ * Description: Public include file for the database reader.
+ *
+ * (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+
+#ifndef _Dt_DbReader_h
+#define _Dt_DbReader_h
+
+#include <X11/Xlib.h>
+#include <X11/Xresource.h>
+#include <Dt/DbUtil.h>
+
+#define DTRECORDIDENTIFIER NULL
+#define DTUNLIMITEDFIELDS  0
+
+/* one set of attribute/pair */
+typedef struct
+{
+       XrmQuark                fieldName;
+       char                    *fieldValue;
+} DtDtsDbField;
+
+/*
+ * Opaque identifier used for identifying a database file name.  The opaque
+ * identifier can be converted to an ascii string, using the function
+ * _DtDbPathIdToString().
+ */
+#define DtDbPathId long
+
+/*
+ * All record converters should expect to be called with the parameters
+ * indicated below:
+ *
+ *   fields:    This is an array of keyword/value pair strings, each
+ *              representing one field value for this database record.  NOTE:
+ *              the keywords have not been validated; this is the
+ *              responsibility of the converter, and is usually accomplished
+ *              by calling _DtValidateFieldNames().  The array is NULL
+ *              terminated, with the last entry having both the 'fieldName'
+ *              and 'fieldValue' pointers set to NULL.  The first entry always
+ *              represents the record identifier, with the 'fieldName' set
+ *              to the record type string, and the 'fieldValue' set to any
+ *              remaining data specified on the record identifier line.
+ *
+ *   pathId:    Is an opaque identifier, which can be used to retrieve the name
+ *              of the database file from which this record was obtained.  By
+ *              calling _DtDbPathIdToString(), the database file, in
+ *              "host:/path" format, can be obtained.
+ *
+ *   hostPrefix: If the database file was loaded from a machine other than the
+ *               local machine, then this string indicates the host prefix, in
+ *               "/nfs/<host>" format.  If the host was the local host, then
+ *               this value is set to NULL.
+ *
+ *   rejectionStatus: This flag indicates whether any of the earlier record
+ *                    converters had rejected this entry.  Certain classes
+ *                    of converters may choose to ignore entries if they
+ *                    had already been rejected.
+ *
+ * It is the responsibility of the converter to perform any necessary
+ * verification of the passed in set of keywords; the function
+ * _DtValidateFieldNames() is provided as a convenience function for performing
+ * this type of validation.  Typically, the converter will write an error to
+ * the user's errorlog file, if an invalid record is encountered.
+ *
+ * It is also the responsibility of the converter to allocate any memory needed
+ * to store the new record.  The strings contained within the 'fields' array
+ * will all be freed when the converter returns to _DtDbRead(), so the
+ * converter should make copies of any information it wishes to use in the
+ * future.  The converter is also responsible for adding the new record to
+ * whatever storage array it is using to save record information.
+ *
+ * If the converter decides to reject the record, then it should return a
+ * 'True' value.  If the record was acceptable, then 'False' should be
+ * returned.
+ */
+typedef Boolean (*DtDbConverter) (DtDtsDbField * fields,
+                                  DtDbPathId pathId,
+                                  char * hostPrefix,
+                                  Boolean rejectionStatus);
+
+/*
+ * This structure defines each record type which should be loaded by
+ * _DtDbRead().  Since _DtDbRead() is capable of loading multiple record types
+ * (i.e ACTION, DATA_CRITERIA, etc) in a single pass, the invoking function will
+ * pass in an array of these structures, for which each element will define a
+ * record type which should be loaded.  Each record definition requires the
+ * following information:
+ *
+ *   recordKeyword: This is the keyword which uniquely identifies the record
+ *                  which matches this definition.  Examples are "ACTION" and
+ *                  "DATA_CRITERIA".
+ *
+ *   maxFields:     Indicates the maximum number of fields which is expected
+ *                  by this record type; typically, this corresponds to the
+ *                  number of distinct field keywords supported by this type
+ *                  of record.  This feature is used to prevent runaway database
+ *                  records from getting out of hand; a runaway database record
+ *                  typically occurs when the user forgets to include line
+ *                  continuation characters, and a long 'description' field
+ *                  is entered.  If this parameter is set to
+ *                  DTUNLIMITEDFIELDS, then the check for runaway records
+ *                  will be disabled for records of this type.
+ *
+ *  converters:     This is a NULL-terminated array of function pointers, 
+ *                  corresponding to the set of record converters which will 
+ *                  be called, whenever a record of this type is encountered.  
+ *                  The converters are called in order, and all converters will
+ *                  be called, even if an earlier one rejects the record.  The
+ *                  last entry in the array must be set to NULL.
+ */
+typedef struct {
+   char * recordKeyword;
+   int maxFields;
+   DtDbConverter * converters;
+} DtDbRecordDesc;
+
+
+/*
+ * _DtDbRead() is the function which causes the specified set of directories to
+ * be searched for files ending with the specified suffix.  Although not
+ * required, the set of directories to search is typically obtained by calling
+ * _DtGetDatabaseDirPaths().  This function supports the loading of multiple
+ * field types, all in a single pass of the database files.  This function does
+ * not attempt to manage the memory used to store the information extracted from
+ * the database files; it is the responsibility of the function calling this
+ * procedure to initialize any storage, and it is the responsibility of the
+ * record converters to allocate any memory needed to store and record, along
+ * with adding the record to the appropriate storage array.
+ *
+ *  dirs:        The set of directories to be searched for database files.
+ *
+ *  suffix:      The file suffix (i.e. ".vf") used to qualify which files within
+ *               the database directories should be loaded.
+ *
+ *  recordDescriptions: An array, where each entry describes a database record
+ *                      which should be loaded during this pass of _DtDbRead().
+ *                      See the definition for this structure, for more details.
+ *
+ *  int numRecordDescriptions:  The number of entries in the above array.
+ */
+extern void _DtDbRead (DtDirPaths * dirs,
+                       char * suffix,
+                       DtDbRecordDesc * recordDescriptions,
+                       int numRecordDescriptions);
+
+
+/*
+ * _DtDbPathIdToString() is used to map a filename identifier, represented
+ * by an opaque DtDbPathId value, into its corresponding ascii string
+ * representation.  The returned string is owned by the calling application,
+ * which should free it up when no longer needed.
+ */
+extern char * _DtDbPathIdToString ( DtDbPathId pathId );
+
+#endif /* _Dt_DbReader_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/DbUtil.h b/cde/include/Dt/DbUtil.h
new file mode 100644 (file)
index 0000000..8f6cb9f
--- /dev/null
@@ -0,0 +1,103 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         DbUtil.h $XConsortium: DbUtil.h /main/4 1995/10/26 15:04:04 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_DbUtil_h
+#define _Dt_DbUtil_h
+
+#include <X11/Intrinsic.h>             /* Boolean */
+
+/* 
+ * This structure is used by many of the database functions.  It is used to
+ * specify a collection of filenames or directory names.  Each file/directory
+ * name is returned in two forms:
+ *
+ *  dirs[n]   The fully host-qualified pathname for the file or directory,
+ *            in "host:/path" format.
+ *
+ *  paths[n]  The internal format of the file or directory anme, which
+ *            can be passed to any of the standard tools which expect a
+ *            valid filename; i.e. /nfs/host/path.
+ *
+ *  Both of the arrays are NULL-terminated.
+ */
+typedef struct {
+   char ** dirs;
+   char ** paths;
+} DtDirPaths;
+
+
+
+/*****************************************************************************
+ *
+ *
+ *
+ ****************************************************************************/
+extern DtDirPaths * _DtFindMatchingFiles( DtDirPaths * dirs, 
+                                           char * suffix, 
+                                           Boolean sortFiles );
+
+/*****************************************************************************
+ *
+ * _DtGetDatabaseDirPaths() returns a NULL-terminated array of directories,
+ * which are to be searched for database files.  The paths are obtained by
+ * querying the DTDATABASESEARCHPATH environment variable, which specifies
+ * a set of comma separated pathnames, int "host:/path" format.  The
+ * return structure should be freed up, when no longer needed, by invoking
+ * _DtFreeDatabaseDirPaths().
+ *
+ * The returned directory names are represented in two formats:
+ *
+ *     1) Fully host qualified; i.e. "host:/path"
+ *     2) Internal format; i.e. "/nfs/host/path"
+ *
+ ****************************************************************************/
+extern DtDirPaths * _DtGetDatabaseDirPaths( void );
+
+/*****************************************************************************
+ *
+ * _DtFreeDatabaseDirPaths() is used to free the memory occupied by the
+ * passed-in instance of the DtDirPaths structure.  Typically, this
+ * information was originally obtained by a call to DtGetDatabasePaths()
+ * or _DtFindMatchingFiles().
+ *
+ * Parameters:
+ *
+ *      dirs       The structure which is to be freed up.
+ *
+ ****************************************************************************/
+extern void _DtFreeDatabaseDirPaths( DtDirPaths * dirs );
+
+#endif /* _Dt_DbUtil_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/DialogBox.h b/cde/include/Dt/DialogBox.h
new file mode 100644 (file)
index 0000000..8db03c5
--- /dev/null
@@ -0,0 +1,88 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           DialogBox.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Public include file for DtDialogBox class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtDialogBox_h
+#define _DtDialogBox_h
+
+#include <Xm/Xm.h>
+#include <Dt/DtStrDefs.h>
+
+#ifndef DtIsDialogBox
+#define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass)
+#endif /* XmIsDialogBox */
+
+
+extern Widget _DtCreateDialogBox( 
+                        Widget parent,
+                        char *name,
+                        ArgList arglist,
+                        Cardinal argcount) ;
+extern Widget __DtCreateDialogBoxDialog( 
+                        Widget ds_p,
+                        String name,
+                        ArgList db_args,
+                        Cardinal db_n) ;
+extern Widget _DtDialogBoxGetButton( 
+                        Widget w,
+                        Cardinal pos) ;
+extern Widget _DtDialogBoxGetWorkArea( 
+                        Widget w) ;
+
+
+extern WidgetClass dtDialogBoxWidgetClass;
+
+typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass;
+typedef struct _DtDialogBoxRec      * DtDialogBoxWidget;
+
+
+#define XmBUTTON       11
+
+
+#define XmCR_DIALOG_BUTTON     100
+
+typedef struct
+{
+       int             reason;
+       XEvent *        event;
+       Cardinal        button_position;
+       Widget          button;
+} DtDialogBoxCallbackStruct;
+
+
+#endif /* _DtDialogBox_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/DialogBoxP.h b/cde/include/Dt/DialogBoxP.h
new file mode 100644 (file)
index 0000000..fc402f5
--- /dev/null
@@ -0,0 +1,169 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DialogBoxP.h /main/5 1996/03/27 20:16:24 drk $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           DialogBoxP.h
+***
+***    project:        Motif Widgets
+***
+***    description:    Private include file for DtDialogBox class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtDialogBoxP_h
+#define _DtDialogBoxP_h
+
+#include <Xm/XmP.h>
+#include <Xm/BulletinBP.h>
+#include <Xm/FormP.h>
+#include <Dt/DialogBox.h>
+
+typedef void (*DlgGetSizeProc)(
+       Widget,
+       Dimension,
+       Dimension,
+       Dimension,
+       Dimension,
+       Dimension *,
+       Dimension *
+);
+/*-------------------------------------------------------------
+**     Class Structure
+*/
+
+/*     Class Part
+*/
+typedef struct _DtDialogBoxClassPart
+{
+       XtWidgetProc            create_children;
+       XtWidgetProc            configure_children;
+       DlgGetSizeProc          get_size;
+       XtCallbackProc          button_callback;
+       caddr_t                 extension;
+} DtDialogBoxClassPart;
+
+/*     Full Class Record
+*/
+typedef struct _DtDialogBoxClassRec
+{
+       CoreClassPart           core_class;
+       CompositeClassPart      composite_class;
+       ConstraintClassPart     constraint_class;
+       XmManagerClassPart      manager_class;
+       XmBulletinBoardClassPart        bulletin_board_class;
+       XmFormClassPart         form_class;
+       DtDialogBoxClassPart    dialog_box_class;
+} DtDialogBoxClassRec;
+
+/*     Actual Class
+*/
+extern DtDialogBoxClassRec dtDialogBoxClassRec;
+
+
+/*-------------------------------------------------------------
+**     Instance Structure
+*/
+
+/*     Instance Part
+*/
+typedef struct _DtDialogBoxPart
+{
+       XtCallbackList  callback;
+       Widget          work_area;
+       Widget          separator;
+       WidgetList      button;
+       Cardinal        button_count;   
+       Boolean         minimize_buttons;
+       XmStringTable   button_label_strings;
+} DtDialogBoxPart;
+
+/*     Full Instance Record
+*/
+typedef struct _DtDialogBoxRec
+{
+       CorePart                core;
+       CompositePart           composite;
+       ConstraintPart          constraint;
+       XmManagerPart           manager;
+       XmBulletinBoardPart     bulletin_board;
+       XmFormPart              form;
+       DtDialogBoxPart         dialog_box;
+} DtDialogBoxRec;
+
+
+/*-------------------------------------------------------------
+**     Constraint Structure
+*/
+
+/*     Constraint Part
+*/
+typedef struct _DtDialogBoxConstraintPart
+{
+       unsigned char           child_type;
+} DtDialogBoxConstraintPart, * DtDialogBoxConstraint;
+
+/*     Full Constraint Record
+*/
+typedef struct _DtDialogBoxConstraintRec
+{
+       XmManagerConstraintPart         manager_constraint;
+       XmFormConstraintPart            form_constraint;
+       DtDialogBoxConstraintPart       dialog_box_constraint;
+} DtDialogBoxConstraintRec, * DtDialogBoxConstraintPtr;
+
+
+\f
+/*-------------------------------------------------------------
+**     Class and Instance Macros
+*/
+
+/*     DtDialogBox Class Macros
+*/     
+/**** WARNING: These macros are not thread-safe! ****/
+#define C_CreateChildren(mc)   ((mc) -> dialog_box_class.create_children)
+#define C_ConfigureChildren(mc)        ((mc) -> dialog_box_class.configure_children)
+#define C_GetSize(mc)          ((mc) -> dialog_box_class.get_size)
+#define C_ButtonCallback(mc)   ((mc) -> dialog_box_class.button_callback)
+
+/*     DtDialogBox Instance Macros
+*/
+#define M_DialogBoxConstraint(w) \
+       (&((DtDialogBoxConstraintPtr) (w)->core.constraints) \
+               -> dialog_box_constraint)
+#define M_WorkArea(m)          (m -> dialog_box.work_area)
+#define M_Separator(m)         (m -> dialog_box.separator)
+#define M_MinimizeButtons(m)   (m -> dialog_box.minimize_buttons)
+#define M_Button(m)            (m -> dialog_box.button)
+#define M_ButtonCount(m)       (m -> dialog_box.button_count)
+#define M_ButtonLabelStrings(m)        (m -> dialog_box.button_label_strings)
+#define M_Callback(m)          (m -> dialog_box.callback)
+
+#endif /* _DtDialogBoxP_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Dnd.h b/cde/include/Dt/Dnd.h
new file mode 100644 (file)
index 0000000..866557f
--- /dev/null
@@ -0,0 +1,210 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Dnd.h /main/3 1995/10/26 15:04:35 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Dnd_h
+#define _Dt_Dnd_h
+
+#include <Xm/DragIcon.h>
+#include <Xm/DragC.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Dnd Callback Reasons */
+
+enum {
+       DtCR_DND_CONVERT_DATA,
+       DtCR_DND_CONVERT_DELETE,
+       DtCR_DND_DRAG_FINISH,
+       DtCR_DND_TRANSFER_DATA,
+       DtCR_DND_DROP_ANIMATE,
+       DtCR_DND_ROOT_TRANSFER
+};
+#define DtCR_DND_TRANSFER DtCR_DND_TRANSFER_DATA
+
+/* 
+ * Dnd Drag Start Resources 
+ *     dropOnRootCallback is private and should not be used
+ */
+
+#define        DtNdropOnRootCallback           "dropOnRootCallback"
+#define        DtCDropOnRootCallback           "DropOnRootCallback"
+#define DtNsourceIcon                  "sourceIcon"
+#define DtCSourceIcon                  "SourceIcon"
+#define        DtNbufferIsText                 "bufferIsText"
+#define        DtCBufferIsText                 "BufferIsText"
+
+/* 
+ *Dnd Drop Register Resources
+ */
+
+#define        DtNdropAnimateCallback          "dropAnimateCallback"
+#define        DtCDropAnimateCallback          "DropAnimateCallback"
+#define        DtNpreserveRegistration         "preserveRegistration"
+#define        DtCPreserveRegistration         "PreserveRegistration"
+#define        DtNregisterChildren             "registerChildren"
+#define        DtCRegisterChildren             "RegisterChildren"
+#define        DtNtextIsBuffer                 "textIsBuffer"
+#define        DtCTextIsBuffer                 "TextIsBuffer"
+
+/*
+ * Types
+ */
+
+typedef enum {
+       DtDND_SUCCESS,
+       DtDND_FAILURE
+} DtDndStatus;
+
+typedef unsigned long DtDndProtocol;
+
+enum {
+       DtDND_NOOP_TRANSFER             = 0L,
+       DtDND_TEXT_TRANSFER             = (1L << 0),
+       DtDND_FILENAME_TRANSFER         = (1L << 1),
+       DtDND_BUFFER_TRANSFER           = (1L << 2)
+};
+
+typedef struct _DtDndBuffer {
+        void *         bp;
+        int            size;
+        String         name;
+} DtDndBuffer;
+
+typedef struct _DtDndContext {
+        DtDndProtocol  protocol;
+       Cardinal        numItems;
+       union {
+               XmString *      strings;
+               String *        files;
+               DtDndBuffer *   buffers;
+       } data;
+} DtDndContext;
+
+/*
+ * Dnd Callback Structures
+ */
+
+typedef struct _DtDndConvertCallbackStruct {
+        int            reason;
+        XEvent *       event;
+        DtDndContext * dragData;
+       DtDndStatus     status;
+} DtDndConvertCallbackStruct, *DtDndConvertCallback;
+
+typedef struct _DtDndDragFinishCallbackStruct {
+       int             reason;
+       XEvent *        event;
+       DtDndContext *  dragData;
+       Widget          sourceIcon;
+} DtDndDragFinishCallbackStruct, *DtDndDragFinishCallback;
+
+typedef struct _DtDndTransferCallbackStruct {
+       int             reason;
+       XEvent *        event;
+       Position        x, y;
+       unsigned char   operation;
+       DtDndContext *  dropData;
+       Widget          dragContext;
+       Boolean         completeMove;
+       DtDndStatus     status;
+} DtDndTransferCallbackStruct, *DtDndTransferCallback;
+
+typedef DtDndTransferCallbackStruct DtDndDropCallbackStruct, *DtDndDropCallback;
+
+typedef struct _DtDndDropAnimateCallbackStruct {
+       int             reason;
+       XEvent *        event;
+       Position        x, y;
+       unsigned char   operation;
+       DtDndContext *  dropData;
+} DtDndDropAnimateCallbackStruct, *DtDndDropAnimateCallback;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtDndCreateSourceIcon(
+               Widget          widget,
+               Pixmap          source,
+               Pixmap          mask);
+
+extern Widget DtDndDragStart(
+               Widget          dragInitiator, 
+               XEvent*         event, 
+               DtDndProtocol   protocol, 
+               Cardinal        numItems, 
+               unsigned char   operations,
+                XtCallbackList convertCallback, 
+               XtCallbackList  dragFinishCallback,
+               ArgList         argList,
+               Cardinal        argCount);
+
+extern Widget DtDndVaDragStart(
+               Widget          dragInitiator, 
+               XEvent*         event, 
+               DtDndProtocol   protocol, 
+               Cardinal        numItems, 
+               unsigned char   operations,
+                XtCallbackList convertCallback, 
+               XtCallbackList  dragFinishCallback,
+               ...);
+
+extern void DtDndDropRegister(
+               Widget          dropSite, 
+               DtDndProtocol   protocols, 
+               unsigned char   operations, 
+                XtCallbackList transferCallback,
+               ArgList         argList,
+               Cardinal        argCount);
+
+extern void DtDndVaDropRegister(
+               Widget          dropSite, 
+               DtDndProtocol   protocols, 
+               unsigned char   operations, 
+                XtCallbackList transferCallback,
+               ...);
+
+extern void DtDndDropUnregister(
+               Widget          widget);
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Dnd_h */
diff --git a/cde/include/Dt/DndIconI.h b/cde/include/Dt/DndIconI.h
new file mode 100644 (file)
index 0000000..383918d
--- /dev/null
@@ -0,0 +1,423 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DndIconI.h /main/3 1995/10/26 15:05:58 rswiston $ */
+/*********************************************************************
+ *
+ *     File:           DndIconI.h
+ *
+ *     Description:    Private include file containing DND drag icons bitmaps
+ *
+ *********************************************************************
+ *
+ *+SNOTICE
+ *
+ *     RESTRICTED CONFIDENTIAL INFORMATION:
+ *     
+ *     The information in this document is subject to special
+ *     restrictions in a confidential disclosure agreement between
+ *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
+ *     document outside HP, IBM, Sun, USL, SCO, or Univel without
+ *     Sun's specific written approval.  This documment and all copies
+ *     and derivative works thereof must be returned or destroyed at
+ *     Sun's request.
+ *
+ *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994 International Business Machines Corp.
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994 Novell, Inc.
+ *
+ *+ENOTICE
+ */
+
+#ifndef _Dt_DndIconI_h
+#define _Dt_DndIconI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*-------------------------------------------------------------------
+ *     Motif Defaults
+ *-------------------------------------------------------------------*/
+
+#define        motif_x_hot              1
+#define        motif_y_hot              1
+
+#define motif_x_offset_state   -8      
+#define motif_y_offset_state   -2
+
+#define motif_x_offset_delta    0
+#define motif_y_offset_delta    0
+
+/*-------------------------------------------------------------------
+ *     Text Drags: Cursors
+ *-------------------------------------------------------------------*/
+
+#define        text_x_hot               1
+#define        text_y_hot               1
+
+#define text_x_offset_state     1
+#define text_y_offset_state     1
+
+#define text_x_offset_delta     7
+#define text_y_offset_delta     3
+
+/*
+ *     Text: State Valid
+ */
+
+#define text_valid_width 16
+#define text_valid_height 16
+
+static unsigned char text_valid_bits[] = {
+#ifdef OLDTEXTVALID
+   0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00,
+   0x7e, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#else
+   0x00, 0x00, 0xfe, 0x01, 0xfe, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00,
+   0x0e, 0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#endif
+
+static unsigned char text_valid_m_bits[] = {
+#ifdef OLDTEXTVALID
+   0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00,
+   0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#else
+   0xff, 0x07, 0xff, 0x03, 0xff, 0x01, 0xff, 0x00, 0x7f, 0x00, 0x3f, 0x00,
+   0x1f, 0x00, 0x0f, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#endif
+
+/*
+ *     Text: State Invalid
+ */
+
+#define text_invalid_width 16
+#define text_invalid_height 16
+
+static unsigned char text_invalid_bits[] = {
+   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
+   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
+   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char text_invalid_m_bits[] = {
+   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
+   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
+   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
+
+/*
+ *     Text: None
+ */
+
+#define text_none_width 16
+#define text_none_height 16
+
+static unsigned char text_none_bits[] = {
+   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
+   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
+   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char text_none_m_bits[] = {
+   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
+   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
+   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
+
+/*-------------------------------------------------------------------
+ *     Text Drags: Operation Cursors
+ *-------------------------------------------------------------------*/
+
+/* Use Data Operation Cursors */
+
+/*
+ *     Text: Operation Move
+ */
+
+/*
+ *     Text: Operation Copy
+ */
+
+/*
+ *     Text: Operation Link
+ */
+
+/*-------------------------------------------------------------------
+ *     Text Drags: Source Cursor
+ *-------------------------------------------------------------------*/
+
+#define text_source_width 32
+#define text_source_height 32
+
+static unsigned char text_source_bits[] = {
+#ifdef OLDTEXTSOURCE
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0xd8, 0xdb, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbe, 0x7f, 0x1f,
+   0x00, 0x00, 0x00, 0x00, 0xb8, 0xf6, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00,
+   0xe8, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xbb, 0xff, 0x06,
+   0x00, 0x00, 0x00, 0x00, 0xd8, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00,
+   0x78, 0xd7, 0xb4, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xad, 0xd5, 0x0f,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#else
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0xc0, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x7f, 0x1f,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xbb, 0xff, 0x06,
+   0x00, 0x00, 0x00, 0x00, 0xf0, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00,
+   0x78, 0x77, 0xb7, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbd, 0xdd, 0x0f,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#endif
+
+static unsigned char text_source_m_bits[] = {
+#ifdef OLDTEXTSOURCE
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#else
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x3f,
+   0x00, 0xf0, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f,
+   0x00, 0xfe, 0xff, 0x3f, 0x00, 0xff, 0xff, 0x3f, 0x80, 0xff, 0xff, 0x3f,
+   0xc0, 0xff, 0xff, 0x3f, 0xe0, 0xff, 0xff, 0x3f, 0xf0, 0xff, 0xff, 0x3f,
+   0xf8, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
+   0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+#endif
+
+/*-------------------------------------------------------------------
+ *     Data Drags: Cursors
+ *------------------------------------------------------------------*/
+
+#define        data_x_hot               3
+#define        data_y_hot               3
+
+#define data_x_offset_state    11
+#define data_y_offset_state    11
+
+#define data_x_offset_delta     7
+#define data_y_offset_delta     7
+
+/*
+ *     Data: State Valid
+ */
+
+#define data_valid_width 16
+#define data_valid_height 16
+
+static unsigned char data_valid_bits[] = {
+   0x00, 0x00, 0x06, 0x00, 0x1e, 0x00, 0x7c, 0x00, 0xfc, 0x01, 0xf8, 0x07,
+   0xf8, 0x07, 0xf0, 0x01, 0xf0, 0x03, 0x60, 0x07, 0x60, 0x0e, 0x00, 0x1c,
+   0x00, 0x38, 0x00, 0x70, 0x00, 0x60, 0x00, 0x00};
+
+static unsigned char data_valid_m_bits[] = {
+   0x07, 0x00, 0x1f, 0x00, 0x7f, 0x00, 0xfe, 0x01, 0xfe, 0x07, 0xfc, 0x0f,
+   0xfc, 0x0f, 0xf8, 0x07, 0xf8, 0x07, 0xf0, 0x0f, 0xf0, 0x1f, 0x60, 0x3e,
+   0x00, 0x7c, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x60};
+
+/*
+ *     Data: State Invalid
+ */
+
+#define data_invalid_width 16
+#define data_invalid_height 16
+
+static unsigned char data_invalid_bits[] = {
+   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
+   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
+   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char data_invalid_m_bits[] = {
+   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
+   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
+   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
+
+/*
+ *     Data: State None
+ */
+
+#define data_none_width 16
+#define data_none_height 16
+
+static unsigned char data_none_bits[] = {
+   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
+   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
+   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char data_none_m_bits[] = {
+   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
+   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
+   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
+
+/*-------------------------------------------------------------------
+ *     Data Drags: Operation Cursors
+ *-------------------------------------------------------------------*/
+
+/*     
+ *     Data: Operation Move
+ */
+
+#define data_move_width 16
+#define data_move_height 16
+
+static unsigned char data_move_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char data_move_m_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+
+/*     
+ *     Data: Operation Copy
+ */
+
+#define data_copy_width 16
+#define data_copy_height 16
+
+static unsigned char data_copy_bits[] = {
+   0x00, 0x00, 0xfe, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x1f, 0x02, 0x11,
+   0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0xfe, 0x11, 0x20, 0x10,
+   0x20, 0x10, 0xe0, 0x1f, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char data_copy_m_bits[] = {
+   0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
+   0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
+   0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x3f, 0x00, 0x00};
+
+/*     
+ *     Data: Operation Link
+ */
+
+#define data_link_width 16
+#define data_link_height 16
+
+static unsigned char data_link_bits[] = {
+   0x00, 0x00, 0xfe, 0x03, 0x02, 0x02, 0x02, 0x02, 0x32, 0x02, 0x32, 0x3e,
+   0x42, 0x20, 0x82, 0x20, 0x02, 0x21, 0x3e, 0x26, 0x20, 0x26, 0x20, 0x20,
+   0x20, 0x20, 0xe0, 0x3f, 0x00, 0x00, 0x00, 0x00};
+
+static unsigned char data_link_m_bits[] = {
+   0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x7f, 0xff, 0x7f,
+   0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xf0, 0x7f,
+   0xf0, 0x7f, 0xf0, 0x7f, 0xf0, 0x7f, 0x00, 0x00};
+
+/*-------------------------------------------------------------------
+ *     Data Drags: Source Icons
+ *-------------------------------------------------------------------*/
+
+/*
+ *     Data Source: Single
+ */
+
+#define data_single_width 32
+#define data_single_height 32
+
+static unsigned char data_single_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00,
+   0x10, 0x00, 0x40, 0x01, 0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04,
+   0x10, 0x00, 0xc0, 0x0f, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
+   0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f};
+
+static unsigned char data_single_m_bits[] = {
+   0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0x00,
+   0xf0, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0x07,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
+   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f};
+
+/*
+ *     Data Source: Multiple 
+ */
+
+#define data_multiple_width 32
+#define data_multiple_height 32
+
+static unsigned char data_multiple_bits[] = {
+   0xfc, 0xff, 0x0f, 0x00, 0x04, 0x00, 0x30, 0x00, 0x04, 0x00, 0xd0, 0x1f,
+   0x04, 0x00, 0x90, 0x10, 0x04, 0x00, 0x10, 0xf1, 0x04, 0x00, 0xf0, 0x93,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
+   0xfc, 0xff, 0xff, 0x93, 0x20, 0x00, 0x00, 0x90, 0xe0, 0xff, 0xff, 0x9f,
+   0x00, 0x01, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff};
+
+static unsigned char data_multiple_m_bits[] = {
+   0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0x1f,
+   0xfc, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
+   0xfc, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff,
+   0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_DndIconI_h */
diff --git a/cde/include/Dt/DndP.h b/cde/include/Dt/DndP.h
new file mode 100644 (file)
index 0000000..63447b0
--- /dev/null
@@ -0,0 +1,332 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DndP.h /main/4 1996/06/21 17:28:31 ageorge $ */
+/*********************************************************************
+ *
+ *     File:           DndP.h
+ *
+ *     Description:    Private include file for DND Convenience API.
+ *
+ *********************************************************************
+ *
+ *+SNOTICE
+ *
+ *     RESTRICTED CONFIDENTIAL INFORMATION:
+ *     
+ *     The information in this document is subject to special
+ *     restrictions in a confidential disclosure agreement bertween
+ *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
+ *     document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
+ *     Sun's specific written approval.  This documment and all copies
+ *     and derivative works thereof must be returned or destroyed at
+ *     Sun's request.
+ *
+ *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994 International Business Machines Corp.
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994 Novell, Inc.
+ *
+ *+ENOTICE
+ */
+
+#ifndef _Dt_DndP_h
+#define _Dt_DndP_h
+
+#include <stdarg.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Drag and Drop selection targets
+ */
+
+extern Atom    XA_TARGETS;
+extern Atom    XA_TIMESTAMP;
+extern Atom    XA_MULTIPLE;
+extern Atom    XA_DELETE;
+extern Atom    XA_NULL;
+extern Atom    XA_TEXT;
+extern Atom    XA_HOST_NAME;
+extern Atom    XA_SUN_FILE_HOST_NAME;
+extern Atom    XA_SUN_ENUM_COUNT;
+extern Atom    XA_SUN_DATA_LABEL;
+extern Atom    XA_SUN_SELN_READONLY;
+extern Atom    XA_SUN_ATM_FILE_NAME;
+extern Atom    XA_SUN_ATM_METHODS;
+
+#define DtGetAtom(display, atomname) \
+       XmInternAtom((display),(atomname),False)
+
+
+/*
+ * Drag Icon Styles
+ */
+typedef enum {
+       DtDND_DRAG_SOURCE_DEFAULT,
+       DtDND_DRAG_SOURCE_TEXT,
+       DtDND_DRAG_SOURCE_DATA,
+       DtDND_DRAG_SOURCE_MULTIPLE
+} DtDndDragSource;
+
+/*
+ *  Drag-n-Drop Data Transfer Protocol
+ */
+typedef struct _DtDndTransfer {
+       Atom *                  targets;
+       Cardinal                numTargets;
+       struct _DtDndMethods *  methods;
+} DtDndTransfer;
+
+/*
+ * Drag Initiator Structure
+ */
+
+typedef struct _DtDragInfo {
+        Widget                 dragInitiator;
+       Widget                  dragContext;
+       DtDndProtocol           protocol;
+       Cardinal                numItems;
+       unsigned char           operations;
+        XtCallbackList         dragConvertCallback;
+        XtCallbackList         dragFinishCallback;
+        XtCallbackList         dropOnRootCallback;
+        XtCallbackList         dragDropFinishCallback;
+        XtCallbackList         dropFinishCallback;
+        XtCallbackList         topLevelEnterCallback;
+        XtCallbackList         topLevelLeaveCallback;
+        XtCallbackList         dropStartCallback;
+       Widget                  sourceIcon;
+       Boolean                 bufferIsText;
+       DtDndTransfer *         transfer;
+        DtDndContext *         dragData;
+        Boolean                inRoot;
+       Window                  backdropWindow;
+       DtDndStatus             status;
+       XtPointer               clientData;
+} DtDragInfo;
+/*
+ * Drop Receiver Existing Registration Structure
+ */
+typedef struct _DtDropSiteInfo {
+        XtCallbackProc         dropProc;
+        unsigned char          operations;
+        Atom *                 importTargets;
+        int                    numImportTargets;
+} DtDropSiteInfo;
+
+/*
+ * Drop Receiver Data Transfer Structure
+ */
+
+typedef struct _DtTransferInfo {
+       Widget                  dragContext;
+       DtDndProtocol           protocol;
+       unsigned char           operation;
+       struct _DtDndMethods *  methods;
+       Atom *                  transferTargets;
+       Cardinal                numTransferTargets;
+       Cardinal                currentTransfer;
+       Boolean                 appTransferCalled;
+        XEvent *               event;
+        Position               x, y;
+       XtPointer               clientData;
+        XtCallbackList         dropAnimateCallback;
+} DtTransferInfo;
+
+/*
+ * Drop Receiver Registration Structure
+ */
+
+typedef struct _DtDropInfo {
+        Widget                 dropReceiver;
+       DtDndProtocol           protocols;
+       unsigned char           operations;
+        XtCallbackList         dropTransferCallback;
+        XtCallbackList         dropAnimateCallback;
+       Boolean                 textIsBuffer;
+       DtDropSiteInfo *        dropSiteInfo;
+       DtDndTransfer *         transfers;
+       Cardinal                numTransfers;
+       DtTransferInfo *        transferInfo;
+        DtDndContext *                 dropData;
+        DtDndStatus            status;
+} DtDropInfo;
+
+/*
+ * Drag-n-Drop Data Transfer Protocol Function Prototypes
+ */
+
+typedef void   
+(*DtDndGetAvailTargetsProc)(
+       DtDragInfo *            dtDragInfo, 
+       Atom **                 returnAvailTargetsList, 
+       Cardinal *              returnNumAvailTargets);
+
+typedef void   
+(*DtDndGetExportTargetsProc)(
+       DtDragInfo *            dtDragInfo, 
+       Atom **                 returnExportTargetsList, 
+       Cardinal *              returnNumExportTargets);
+
+typedef void   
+(*DtDndGetImportTargetsProc)(
+       DtDropInfo *            dtDropInfo, 
+       Atom **                 returnImportTargetsList, 
+       Cardinal *              returnNumImportTargets);
+
+typedef void 
+(*DtDndConvertInitProc)(
+       DtDragInfo *            dtDragInfo);
+
+typedef Boolean 
+(*DtDndConvertProc)(
+       Widget                  dragContext,
+       DtDragInfo *            dtDragInfo,
+       Atom *                  selection,
+       Atom *                  target,
+       Atom *                  returnType,
+       XtPointer *             returnValue,
+       unsigned long *         returnLength,
+       int *                   returnFormat, 
+       XSelectionRequestEvent *selectionRequestEvent);
+
+typedef void
+(*DtDndConvertFinishProc)(
+       DtDragInfo *            dtDragInfo);
+
+typedef void
+(*DtDndTransferTargetsProc)(
+       DtDropInfo *            dtDropInfo, 
+       Atom *                  exportTargets,
+       Cardinal                numExportTargets,
+       Atom **                 returnTransferTargetsList, 
+       Cardinal *              returnNumTransferTargets);
+
+typedef void
+(*DtDndTransferProc)(
+       Widget                  dropTransfer,
+       DtDropInfo *            dtDropInfo,
+       Atom *                  selection,
+       Atom *                  target,
+       Atom *                  type,
+       XtPointer               value,
+       unsigned long *         length,
+       int *                   format);
+
+typedef void
+(*DtDndTransferFinishProc)(
+       DtDropInfo *            dtDropInfo);
+
+/*
+ * Drag-n-Drop Data Transfer Methods
+ */
+
+typedef struct _DtDndMethods {
+       String                          name;
+       DtDndProtocol                   protocol;
+       DtDndDragSource                 sourceType;
+       DtDndGetAvailTargetsProc        getAvailTargets;
+       DtDndGetExportTargetsProc       getExportTargets;
+       DtDndGetImportTargetsProc       getImportTargets;
+       DtDndConvertInitProc            convertInit;
+       DtDndConvertProc                convert;
+       DtDndConvertFinishProc          convertFinish;
+       DtDndTransferTargetsProc        transferTargets;
+       DtDndTransferProc               transfer;
+       DtDndTransferFinishProc         transferFinish;
+} DtDndMethods;
+
+/*
+ * Drag-n-Drop Private Utility Functions
+ */
+
+extern DtDndTransfer *
+_DtDndCreateExportTransfer(
+       DtDragInfo *    dtDragInfo);
+
+extern DtDndTransfer *
+_DtDndCreateImportTransfers(
+       DtDropInfo *    dtDropInfo,
+       Cardinal *      numTransfers);
+
+extern void
+_DtDndDestroyTransfers(
+       DtDndTransfer * transfers,
+       Cardinal        numTransfers);
+
+extern DtDndTransfer * 
+_DtDndTransferFromTargets(
+        DtDndTransfer * transfers,
+        Cardinal        numTransfers,
+        Atom *          targets,
+        Cardinal        numTargets);
+
+extern void
+_DtDndTransferAdd(
+       Widget          dropTransfer,
+       DtDropInfo *    dtDropInfo,
+       Atom *          transferTargets,
+       Cardinal        numTransferTargets);
+
+extern XtCallbackList
+_DtDndCopyCallbackList(
+       XtCallbackList  callbacks);
+
+extern void    
+_DtDndCallCallbackList(
+       Widget          widget,
+       XtCallbackList  callbacks,
+       XtPointer       calldata);
+
+extern void    
+_DtDndSelectDragSource(
+       Widget          anyWidget,
+       DtDndDragSource sourceType,
+       Widget          sourceIcon);
+
+extern void
+_DtDndGetIconOffset(
+       Widget          dragContext, 
+       DtDndDragSource sourceType,
+       int *           offsetXReturn,
+       int *           offsetYReturn);
+
+extern String
+_DtDndGetHostName(void);
+
+#ifdef DEBUG
+extern void _DtDndPrintTargets(Display*,Atom*,Cardinal);
+extern void _DtDndPrintTransfers(Display*,DtDndTransfer*,Cardinal);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_DndP_h */
diff --git a/cde/include/Dt/Dt.h b/cde/include/Dt/Dt.h
new file mode 100644 (file)
index 0000000..34d2e91
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: Dt.h /main/12 1999/10/18 14:49:57 samborn $ */
+/* 
+ * (c) Copyright 1997, The Open Group 
+ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
+ * (c) Copyright 1993,1994,1996 International Business Machines Corp.
+ * (c) Copyright 1993-1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993,1994,1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef _Dt_Dt_h
+#define _Dt_Dt_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* CDE Version information */
+
+#define DtVERSION              2
+#define DtREVISION             3
+#define DtUPDATE_LEVEL         1
+
+#define DtVERSION_NUMBER       (DtVERSION * 10000 +  \
+                               DtREVISION * 100 + \
+                               DtUPDATE_LEVEL)
+
+#define DtVERSION_STRING "CDE Version 2.3.1a"
+
+
+/* 
+ * CDE Version information 
+ */
+
+externalref const int DtVersion;
+externalref const char *DtVersionString;
+
+
+/*
+ * Functions
+ */
+
+extern Boolean DtInitialize(
+               Display         *display,
+               Widget          widget,
+               char            *name,
+               char            *tool_class);
+
+extern Boolean DtAppInitialize(
+               XtAppContext    app_context,
+               Display         *display,
+               Widget          widget,
+               char            *name,
+               char            *tool_class);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Dt_h */
diff --git a/cde/include/Dt/DtGetMessageP.h b/cde/include/Dt/DtGetMessageP.h
new file mode 100644 (file)
index 0000000..ebbae22
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: DtGetMessageP.h /main/5 1998/07/30 12:14:37 mgreess $
+ *
+ * (c) Copyright 1995 Digital Equipment Corporation.
+ * (c) Copyright 1995 Hewlett-Packard Company.
+ * (c) Copyright 1995 International Business Machines Corp.
+ * (c) Copyright 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1995 Novell, Inc. 
+ * (c) Copyright 1995 FUJITSU LIMITED.
+ * (c) Copyright 1995 Hitachi.
+ *
+ * DtGetMessage.h - Interfaces for the DtSvc library's private message 
+ *    catalog APIs
+ */
+
+#ifndef _DtGetMessage_h
+#define _DtGetMessage_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * External declarations
+ */
+extern char *Dt11GetMessage (
+        char           *filename,
+        int            set,
+        int            number,
+        char           *string);
+
+/*
+ * Dt11GETMESSAGE macro
+ */
+#ifndef NO_MESSAGE_CATALOG
+# define _MESSAGE_CAT_NAME       "dt"
+# define Dt11GETMESSAGE(set, number, string)\
+       Dt11GetMessage(_MESSAGE_CAT_NAME, set, number, string)
+#else
+# define Dt11GETMESSAGE(set, number, string)\
+       string
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DtGetMessage_h */
diff --git a/cde/include/Dt/DtHash.h b/cde/include/Dt/DtHash.h
new file mode 100644 (file)
index 0000000..b374031
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtHash.h /main/5 1996/08/29 15:42:13 cde-dec $ */
+#ifndef _DtHash_h
+#define _DtHash_h
+
+typedef void * DtHashTbl;
+
+DtHashTbl       _DtUtilMakeHash(int size);
+DtHashTbl      _DtUtilMakeIHash(int size);
+void **          _DtUtilGetHash(DtHashTbl tbl, const unsigned char * key);
+void **         _DtUtilFindHash(DtHashTbl tbl,const unsigned char * key);
+void *                   _DtUtilDelHash(DtHashTbl tbl, const unsigned char * key);
+int                  _DtUtilOperateHash(DtHashTbl tbl, void (*op_func)(), void * usr_arg);
+void                 _DtUtilDestroyHash(DtHashTbl tbl, int (*des_func)(), void * usr_arg);
+
+typedef void (*DtHashOperateFunc)();
+typedef int  (*DtHashDestroyFunc)();
+
+#endif /* _DtHash_h */
+
+
+
+
+
+
+
+
+
diff --git a/cde/include/Dt/DtMsgsP.h b/cde/include/Dt/DtMsgsP.h
new file mode 100644 (file)
index 0000000..3f13975
--- /dev/null
@@ -0,0 +1,232 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtMsgsP.h /main/7 1996/06/19 11:27:42 cde-dec $ */
+/*
+ * DtWidget/DtMsgsP.h
+ */
+/*
+ * DtMsgsP.h:
+ *
+ * Private header file for libDtWidget
+ */
+#ifndef _DtMessages_h
+#define _DtMessages_h
+
+/*** const causes the HP compiler to complain.  Remove reference until   ***
+ *** the build and integration people can figure out how to get this to  ***
+ *** work.                                                               ***/
+
+/* #define CONST       const */
+#define CONST
+
+#ifdef I18N_MSG
+#include <nl_types.h>
+#define DTWIDGET_GETMESSAGE(set, number, string)\
+    (char *) _DtWidgetGetMessage(set, number, string)
+
+#else /* I18N_MSG */
+#define DTWIDGET_GETMESSAGE(set, number, string) string
+#endif /* I18N_MSG */
+
+extern CONST char _DtMsgCommon_0000[];
+extern CONST char _DtMsgCommon_0001[];
+extern CONST char _DtMsgComboBox_0000[];
+extern CONST char _DtMsgComboBox_0001[];
+extern CONST char _DtMsgComboBox_0002[];
+extern CONST char _DtMsgComboBox_0003[];
+extern CONST char _DtMsgComboBox_0004[];
+extern CONST char _DtMsgComboBox_0005[];
+extern CONST char _DtMsgComboBox_0006[];
+extern CONST char _DtMsgComboBox_0007[];
+extern CONST char _DtMsgComboBox_0008[];
+extern CONST char _DtMsgComboBox_0009[];
+extern CONST char _DtMsgComboBox_0010[];
+extern CONST char _DtMsgComboBox_0011[];
+extern CONST char _DtMsgComboBox_0012[];
+extern CONST char _DtMsgComboBox_0013[];
+extern CONST char _DtMsgComboBox_0014[];
+extern CONST char _DtMsgDialogBox_0000[];
+extern CONST char _DtMsgDialogBox_0001[];
+extern CONST char _DtMsgEditor_0000[];
+extern CONST char _DtMsgEditor_0001[];
+extern CONST char _DtMsgEditor_0002[];
+extern CONST char _DtMsgEditor_0003[];
+extern CONST char _DtMsgEditor_0004[];
+extern CONST char _DtMsgEditor_0005[];
+extern CONST char _DtMsgEditor_0006[];
+extern CONST char _DtMsgEditor_0007[];
+extern CONST char _DtMsgEditor_0008[];
+extern CONST char _DtMsgEditor_0009[];
+extern CONST char _DtMsgEditor_0010[];
+extern CONST char _DtMsgEditor_0011[];
+extern CONST char _DtMsgEditor_0012[];
+extern CONST char _DtMsgEditor_0013[];
+extern CONST char _DtMsgEditor_0014[];
+extern CONST char _DtMsgEditor_0015[];
+extern CONST char _DtMsgEditor_0016[];
+extern CONST char _DtMsgEditor_0017[];
+extern CONST char _DtMsgEditor_0018[];
+extern CONST char _DtMsgEditor_0019[];
+extern CONST char _DtMsgEditor_0020[];
+extern CONST char _DtMsgEditor_0021[];
+extern CONST char _DtMsgEditor_0022[];
+extern CONST char _DtMsgEditor_0023[];
+extern CONST char _DtMsgEditor_0024[];
+extern CONST char _DtMsgEditor_0025[];
+extern CONST char _DtMsgIcon_0000[];
+extern CONST char _DtMsgIcon_0001[];
+extern CONST char _DtMsgIcon_0002[];
+extern CONST char _DtMsgIcon_0003[];
+extern CONST char _DtMsgIcon_0004[];
+extern CONST char _DtMsgIcon_0005[];
+extern CONST char _DtMsgIndicator_0000[];
+extern CONST char _DtMsgMenuButton_0000[];
+extern CONST char _DtMsgMenuButton_0001[];
+extern CONST char _DtMsgMenuButton_0002[];
+extern CONST char _DtMsgSpinBox_0000[];
+extern CONST char _DtMsgSpinBox_0001[];
+extern CONST char _DtMsgSpinBox_0002[];
+extern CONST char _DtMsgSpinBox_0003[];
+extern CONST char _DtMsgSpinBox_0004[];
+extern CONST char _DtMsgSpinBox_0005[];
+extern CONST char _DtMsgSpinBox_0006[];
+extern CONST char _DtMsgSpinBox_0007[];
+extern CONST char _DtMsgSpinBox_0008[];
+extern CONST char _DtMsgSpinBox_0009[];
+extern CONST char _DtMsgSpinBox_0010[];
+extern CONST char _DtMsgSpinBox_0011[];
+extern CONST char _DtMsgSpinBox_0012[];
+extern CONST char _DtMsgSpinBox_0013[];
+extern CONST char _DtMsgSpinBox_0014[];
+extern CONST char _DtMsgTitleBox_0000[];
+extern CONST char _DtMsgTitleBox_0001[];
+extern CONST char _DtMsgTitleBox_0002[];
+extern CONST char _DtMsgTitleBox_0003[];
+extern CONST char _DtMsgTitleBox_0004[];
+
+#ifdef I18N_MSG
+
+/* 
+ * Message set for shared messages 
+ */
+#define        MS_Common               2
+
+/* Message IDs for shared messages */
+#define        MSG_CLOSE               1
+#define        MSG_HELP                2
+
+/* 
+ * Message set for Editor widget
+ */
+#define        MS_Editor               3
+
+/* Message IDs for Editor */
+#define        EDITOR_FORMAT_SETTINGS  1
+#define        EDITOR_RIGHT_MARGIN     2
+#define        EDITOR_LEFT_MARGIN      3
+#define        EDITOR_LEFT_ALIGN       4
+#define        EDITOR_RIGHT_ALIGN      5
+#define        EDITOR_JUSTIFY          6
+#define        EDITOR_CENTER           7
+#define        EDITOR_PARAGRAPH        8
+#define        EDITOR_ALL              9
+#define        EDITOR_SPELL_TITLE      20
+#define        EDITOR_FIND_TITLE       21
+#define        EDITOR_MISSPELLED       22
+#define        EDITOR_FIND_LABEL       23
+#define        EDITOR_CHANGE_LABEL     24
+#define        EDITOR_FIND_BUTTON      25
+#define        EDITOR_CHANGE_BUTTON    26
+#define        EDITOR_CHNG_ALL_BUTTON  27
+#define        EDITOR_NO_FIND          30
+#define        EDITOR_INFO_TITLE       31
+#define        EDITOR_LINE             40
+#define        EDITOR_TOTAL            41
+#define        EDITOR_OVR              42
+#define        EDITOR_INS              43
+#define EDITOR_FILTER_ERROR     50 
+#define EDITOR_FILTER_ERROR2    51 
+#define EDITOR_ERROR_TITLE      52 
+
+/* 
+ * Message set for MenuButton widget
+ */
+#define        MS_MenuButton           4
+
+/* Message IDs for MenuButton*/
+#define        MENU_POST               1
+#define        MENU_PARENT             2
+#define        MENU_SUBMENU            3
+
+/* 
+ * Message set for ComboBox widget
+ */
+#define        MS_ComboBox             5
+
+/* Message IDs for ComboBox */
+#define        COMBO_ALIGNMENT         1 
+#define        COMBO_MARGIN_HEIGHT     2
+#define        COMBO_MARGIN_WIDTH      3 
+#define        COMBO_HORIZONTAL_SPACING        4
+#define        COMBO_VERTICAL_SPACING  5
+#define        COMBO_ORIENTATION       6
+#define        COMBO_ITEM_COUNT        7
+#define        COMBO_VISIBLE_ITEM      8 
+#define        COMBO_TEXT              9
+#define        COMBO_SET_ITEM          10
+#define        COMBO_SELECT_ITEM       11
+#define        COMBO_RESIZE            12
+#define        COMBO_LABEL             13
+#define        COMBO_CVTSTRING         14
+#define        COMBO_DEL_POS           15
+
+/* 
+ * Message set for SpinBox widget
+ */
+#define        MS_SpinBox              6
+
+/* Message IDs for SpinBox */
+#define        SPIN_ARROW_SENSITIVE    1
+#define        SPIN_ALIGNMENT          2 
+#define        SPIN_INIT_DELAY         3
+#define SPIN_MARGIN_HEIGHT     4
+#define SPIN_MARGIN_WIDTH      5
+#define SPIN_ARROW_LAYOUT      6
+#define SPIN_REPEAT_DELAY      7
+#define SPIN_ITEM_COUNT                8
+#define SPIN_POSITION_STRING   9
+#define SPIN_POSITION_NUMERIC  10
+#define SPIN_DECIMAL_POINTS    11
+#define SPIN_MIN_MAX           12
+#define SPIN_TEXT              13
+#define SPIN_SET_ITEM          14      
+#define SPIN_LABEL             15      
+
+extern char *  _DtWidgetGetMessage(
+                       int set,
+                       int n,
+                       char *s );
+
+#endif /* I18N_MSG */
+
+#endif /* _DtMessageh */
diff --git a/cde/include/Dt/DtNlUtils.h b/cde/include/Dt/DtNlUtils.h
new file mode 100644 (file)
index 0000000..6a20789
--- /dev/null
@@ -0,0 +1,127 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtNlUtils.h /main/4 1996/06/21 17:22:30 ageorge $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/**************************************************************************/
+/*                                                                        */
+/* Public include file for Dt localization functions.                    */
+/*                                                                        */
+/**************************************************************************/
+
+#ifdef NLS16
+
+#include <stdlib.h>
+#include <locale.h>
+#include <string.h>
+#include <limits.h>
+#include <nl_types.h>
+#include <langinfo.h>
+#endif
+
+#include <X11/Intrinsic.h>
+
+
+#ifdef NLS16
+
+#define is_multibyte   _DtNl_is_multibyte
+extern Boolean _DtNl_is_multibyte;
+
+
+extern void Dt_nlInit( void ) ;
+extern char * Dt_strtok( 
+                        char *s1,
+                        char *s2) ;
+extern char * Dt_strtok_r( 
+                        char *s1,
+                        char *s2,
+                        char **ptr) ;
+extern int Dt_strspn( 
+                        char *s1,
+                        char *s2) ;
+extern int Dt_strcspn( 
+                        char *s1,
+                        char *s2) ;
+extern char * Dt_strchr( 
+                        char *s,
+                        char c) ;
+extern char * Dt_strrchr( 
+                        char *s,
+                        char c) ;
+extern void Dt_lastChar( 
+                        char *s,
+                        char **cptr,
+                        int *lenptr) ;
+extern int Dt_charCount( 
+                        char *s) ;
+
+extern char * _Dt_NextChar(char *s);
+extern char * _Dt_PrevChar(const char *start,char *s);
+extern int _Dt_isspace(char *s);
+extern int _Dt_isdigit(char *s);
+
+#define DtNlInitialize()     (Dt_nlInit())
+#define DtStrtok(s1, s2)     (Dt_strtok(s1, s2))
+#define DtStrtok_r(s1, s2, ptr)     (Dt_strtok_r(s1, s2, ptr))
+#define DtStrspn(s1, s2)     (Dt_strspn(s1, s2))
+#define DtStrcspn(s1, s2)    (Dt_strcspn(s1, s2))
+#define DtStrchr(s1, c)      (Dt_strchr(s1, c))
+#define DtStrrchr(s1, c)     (Dt_strrchr(s1, c))
+#define DtLastChar(s1, cp, lp)   (Dt_lastChar(s1, cp, lp))
+#define DtCharCount(s1)      (Dt_charCount(s1))
+#define DtNextChar(s)       (is_multibyte?_Dt_NextChar(s):((s)+1))
+#define DtPrevChar(st,s)     (is_multibyte?_Dt_PrevChar(st,s):((s)-1))
+#define DtIsspace(s)        (is_multibyte?_Dt_isspace(s):isspace(*(s)))
+#define DtIsdigit(s)        (is_multibyte?_Dt_isdigit(s):isdigit(*(s)))
+
+#else  /* NLS16 */
+
+#define DtNlInitialize()
+#define DtStrtok(s1, s2)     (strtok(s1, s2))
+#define DtStrtok_r(s1, s2, ptr)     (strtok_r(s1, s2, ptr))
+#define DtStrspn(s1, s2)     (strspn(s1, s2))
+#define DtStrcspn(s1, s2)    (strcspn(s1, s2))
+#define DtStrchr(s1, c)      (strchr(s1, c))
+#define DtStrrchr(s1, c)     (strrchr(s1, c))
+#define DtLastChar(s1, cp, lp)   {(*cp = s1 + strlen(s1) - 1); *lp = 1;}
+#define DtCharCount(s1)      (strlen(s1))
+#define DtNextChar(s)       ((s)+1)
+#define DtPrevChar(st,s)     ((s)-1)
+#define DtIsspace(s)        (isspace(*s))
+#define DtIsdigit(s)        (isdigit(*s))
+#endif /* NLS16 */
+
+extern char * _DtGetNthChar( 
+                        char *s,
+                        int n) ;
+extern char * _dt_strpbrk(
+                       char *cs,
+                       char *ct);
+extern int _is_previous_single(
+                       char *s1,
+                       char *s2);
+
diff --git a/cde/include/Dt/DtP.h b/cde/include/Dt/DtP.h
new file mode 100644 (file)
index 0000000..0964aae
--- /dev/null
@@ -0,0 +1,145 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         DtP.h $TOG: DtP.h /main/7 1998/07/30 12:12:49 mgreess $
+ * Language:     C
+ */
+
+#ifndef _DtP_h
+#define _DtP_h
+
+#include <X11/Xmd.h>    /* for protocol typedefs */
+#include <X11/Intrinsic.h>
+
+#include <Dt/DtPStrings.h>
+#include <Dt/DtGetMessageP.h>
+
+#include <bms/sbport.h>
+#include <bms/bms.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*********************************
+ *
+ * Miscellaneous Data Types
+ *
+ *********************************/
+
+#define DtChar         XeChar
+#define DtString       XeString
+
+/*********************************
+ *
+ * Initalization
+ *
+ *********************************/
+
+#define DtToolClass                    XeToolClass
+
+/*********************************
+ *
+ * Global variables (defined in DtUtil.c)
+ *
+ *********************************/
+extern Display                 * _DtDisplay;
+extern char            * _DtApplicationName;
+extern char            * _DtApplicationClass;
+extern char            * _DtToolClass;
+
+extern XtAppContext    _DtAppContext;
+extern XrmDatabase     _DtResourceDatabase;
+extern Widget          _DtInitTtContextWidget;
+extern XtAppContext    * _DtInitAppContextp;
+
+extern void   _DtAddToResource( Display *, const char * );
+extern void   _DtAddResString( Display *, const char *, unsigned int);
+extern char * _DtGetResString( Display *dpy, unsigned int);
+
+
+#define _DT_ATR_RESMGR   (1 << 0)
+#define _DT_ATR_PREFS    (1 << 1)
+
+/*
+    DESCRIPTION:
+
+       Add strings to XA_RESOURCE_MANAGER property on the default root
+       window.  Correctly merges resource specifications with the same
+       name and different values.  The new value overwrites the old.
+
+        _DtAddToResource() may be used where you would have used xrdb to 
+        add a resource.
+
+    SYNOPSIS:
+
+        void _DtAddToResource(dpy,data)
+
+        Display *dpy;       The application's display structure.
+
+        char *data;          The string to be added to the
+                             XA_RESOURCE_MANAGER property.
+
+*/
+
+extern char *_DtCreateDtDirs( Display * );
+/*
+    DESCRIPTION:
+
+       Creates the directories needed for dt to operate in.  When an
+        application saves its state inside a file, it should call this
+        routine to set up the directories before saving any files.  The
+        routine constructs the path to which all save files should be saved
+        to when responding the the WM_SAVE_YOURSELF message issued by the
+        session manager.  The routine  returns the path to save to.  It also
+        allocates the memory for the path so when you are done with it you
+        should free() it.
+
+        WARNING:  If it can't create the directory it returns NULL
+
+    SYNOPSIS:
+
+       dirName = _DtCreateDtDirs (display);
+
+       char *dirName;          The path to save to.
+
+       Display *display;       The application's display structure.
+*/
+
+/*
+ * The following string globals are available for use by any DT
+ * component.  They represent the button labels in most dialogs,
+ * and will be automatically localized by DtInitialize().
+ */
+extern const char * _DtOkString;
+extern const char * _DtCancelString;
+extern const char * _DtHelpString;
+extern const char * _DtApplyString;
+extern const char * _DtCloseString;
+
+#ifdef __cplusplus
+}
+#endif
+
+/* Do not add anything after this endif. */
+#endif /* _DtP_h */
diff --git a/cde/include/Dt/DtPStrings.h b/cde/include/Dt/DtPStrings.h
new file mode 100644 (file)
index 0000000..d2058d4
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         DtPStrings.h $XConsortium: DtPStrings.h /main/5 1995/12/14 11:02:36 barstow $
+ * Language:     C
+ */
+#ifndef _DtPStrings_h
+#define _DtPStrings_h
+
+/* 
+ * DT applications should use this name to look up DT-global 
+ * resources instead of argv[0].
+ */
+#define DtDT_PROG_NAME                 "dt"    
+
+/* 
+ * DT applications should use this class name to look up DT-global
+ * resources.
+ */
+#define DtDT_PROG_CLASS                "Dt"
+
+/* 
+ * The following string constants define the standard DT configuration
+ * directories. 
+ */
+#define DtPERSONAL_CONFIG_DIRECTORY            ".dt"
+#define DtSM_SESSION_DIRECTORY                 "sessions"
+#define DtSM_SESSION_DISPLAY_DIRECTORY         "display"
+#define DtCURRENT_DT_VERSION                   "3.0"
+
+/* 
+ * If you change the following two #defines, you must also change the
+ * related one below (DtDB_DIRS_DEFAULT). 
+ */
+#define DtPERSONAL_DB_DIRECTORY                ".dt/types"
+#define DtPERSONAL_TMP_DIRECTORY       ".dt/tmp"
+
+/*
+ * Names for the message log files
+ */
+#define DtERRORLOG_FILE                        "errorlog"
+#define DtOLD_ERRORLOG_FILE            "errorlog.old"
+#define DtOLDER_ERRORLOG_FILE          "errorlog.older"
+
+/* 
+ * Strings for default types and icons
+ */
+#define DtDEFAULT_DATA_FT_NAME                         "DATA"
+
+/*
+ * The following string constants define the resource name,
+ * resource class and default values for the action bitmaps.
+ */
+#define DtACTION_ICON_RESOURCE_NAME                    "actionIcon"
+#define DtACTION_ICON_RESOURCE_CLASS                   "ActionIcon"
+#define DtACTION_ICON_DEFAULT                          "Dtactn"
+
+/*
+ * The following string constants define the resource name,
+ * resource class and default values for the Dt tmp directory path.
+ */
+#define DtACTION_DTTMPDIR_RESOURCE_NAME                        "dtTmpDir"
+#define DtACTION_DTTMPDIR_RESOURCE_CLASS               "DtTmpDir"
+#define DtACTION_DTTMPDIR_DEFAULT                      ".dt/tmp"
+
+/* Do not add anything after this endif. */
+#endif /* _DtPStrings_h */
diff --git a/cde/include/Dt/DtShmDb.h b/cde/include/Dt/DtShmDb.h
new file mode 100644 (file)
index 0000000..ff2709d
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtShmDb.h /main/4 1996/05/09 04:22:30 drk $ */
+#ifndef DtShmDb_h
+#define DtShmDb_h
+
+/*
+  this include file provides prototypes for the various
+  shared memory database routines
+  */
+
+typedef void *         DtShmProtoStrtab;
+typedef void *         DtShmProtoInttab;
+typedef void *         DtShmProtoIntList;
+
+typedef const void *   DtShmStrtab;
+typedef const void *   DtShmInttab;
+typedef const int *    DtShmIntList;
+typedef int    DtShmBoson;
+
+/*
+  routines used while building shared memory databases
+  */
+
+DtShmProtoStrtab         _DtShmProtoInitStrtab (int estimated_entries);
+DtShmBoson                _DtShmProtoAddStrtab (DtShmProtoStrtab prototab, const char * string, int * isnew);
+const char *           _DtShmProtoLookUpStrtab (DtShmProtoStrtab prototab, DtShmBoson boson);
+int                      _DtShmProtoSizeStrtab (DtShmProtoStrtab prototab);
+DtShmStrtab              _DtShmProtoCopyStrtab (DtShmProtoStrtab prototab, void * dataspace);
+int                   _DtShmProtoDestroyStrtab (DtShmProtoStrtab prototab);
+
+DtShmProtoInttab         _DtShmProtoInitInttab (int estimated_entries);
+int                       _DtShmProtoAddInttab (DtShmProtoInttab prototab, unsigned int keyin, int datain);
+int    *               _DtShmProtoLookUpInttab (DtShmProtoInttab prototab, unsigned int keyin);
+int                      _DtShmProtoSizeInttab (DtShmProtoInttab prototab);
+DtShmInttab              _DtShmProtoCopyInttab (DtShmProtoInttab prototab, void * dataspace);
+int                   _DtShmProtoDestroyInttab (DtShmProtoInttab prototab);
+
+
+DtShmProtoIntList        _DtShmProtoInitIntLst (int estimated_entries);
+int    *                  _DtShmProtoAddIntLst (DtShmProtoIntList protolist, int size, int * index_value);
+int                      _DtShmProtoSizeIntLst (DtShmProtoIntList protolist);
+DtShmIntList             _DtShmProtoCopyIntLst (DtShmProtoIntList protolist, void * dataspace);
+int                   _DtShmProtoDestroyIntLst (DtShmProtoIntList protolist);
+
+
+/*
+  run-time routines once shared memory area is built
+  */
+
+DtShmBoson                    _DtShmStringToBoson (DtShmStrtab tab, const char * string);
+const char *                  _DtShmBosonToString (DtShmStrtab tab, DtShmBoson boson);
+const int *              _DtShmFindIntTabEntry (DtShmInttab tab, unsigned int key);
+
+#endif /* DtShmDb_h */
+
diff --git a/cde/include/Dt/DtStrDefs.h b/cde/include/Dt/DtStrDefs.h
new file mode 100644 (file)
index 0000000..bf9f992
--- /dev/null
@@ -0,0 +1,542 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtStrDefs.h /main/4 1996/03/25 11:18:44 rswiston $ */
+/* This file is automatically generated. */
+/* Do not edit. */
+
+#ifndef _DtStrDefs_h_
+#define _DtStrDefs_h_
+
+#ifdef DTSTRINGDEFINES
+#define DtCAlternateImage "AlternateImage"
+#define DtCBehavior "Behavior"
+#define DtRBehavior "Behavior"
+#define DtCBorderType "BorderType"
+#define DtRBorderType "BorderType"
+#define DtCBoxType "BoxType"
+#define DtRBoxType "BoxType"
+#define DtCButtonLabelStrings "ButtonLabelStrings"
+#define DtCControlType "ControlType"
+#define DtRControlType "ControlType"
+#define DtCCursorFont "CursorFont"
+#define DtCDrawShadow "DrawShadow"
+#define DtCDropAction "DropAction"
+#define DtCDropCallback "DropCallback"
+#define DtCFillMode "FillMode"
+#define DtRFillMode "FillMode"
+#define DtCFormat "Format"
+#define DtCHighResFontList "HighResFontList"
+#define DtCLowResFontList "LowResFontList"
+#define DtCMediumResFontList "MediumResFontList"
+#define DtCPixmapPosition "PixmapPosition"
+#define DtRPixmapPosition "PixmapPosition"
+#define DtCPushArgument "PushArgument"
+#define DtCPushFunction "PushFunction"
+#define DtCStringPosition "StringPosition"
+#define DtRStringPosition "StringPosition"
+#define DtCSubpanel "Subpanel"
+#define DtCTitleSpacing "TitleSpacing"
+#define DtCTitlePosition "TitlePosition"
+#define DtRTitlePosition "TitlePosition"
+#define DtCUnderline "Underline"
+#define DtNalternateImage "alternateImage"
+#define DtNbehavior "behavior"
+#define DtNbottomInset "bottomInset"
+#define DtNborderType "borderType"
+#define DtNboxType "boxType"
+#define DtNbuttonLabelStrings "buttonLabelStrings"
+#define DtNchime "chime"
+#define DtNclientTimeoutInterval "clientTimeoutInterval"
+#define DtNclockInterval "clockInterval"
+#define DtNcontrolType "controlType"
+#define DtNcursorFont "cursorFont"
+#define DtNdrawShadow "drawShadow"
+#define DtNdropAction "dropAction"
+#define DtNdropCallback "dropCallback"
+#define DtNfileName "fileName"
+#define DtNfillMode "fillMode"
+#define DtNformat "format"
+#define DtNheightIncrement "heightIncrement"
+#define DtNhighResFontList "highResFontList"
+#define DtNimageName "imageName"
+#define DtNleftInset "leftInset"
+#define DtNlowResFontList "lowResFontList"
+#define DtNmediumResFontList "mediumResFontList"
+#define DtNmonitorTime "monitorTime"
+#define DtNpixmapForeground "pixmapForeground"
+#define DtNpixmapBackground "pixmapBackground"
+#define DtNmaxPixmapWidth "maxPixmapWidth"
+#define DtNmaxPixmapHeight "maxPixmapHeight"
+#define DtNpixmapPosition "pixmapPosition"
+#define DtNpushArgument "pushArgument"
+#define DtNpushButtonClickTime "pushButtonClickTime"
+#define DtNpushFunction "pushFunction"
+#define DtNrightInset "rightInset"
+#define DtNstringPosition "stringPosition"
+#define DtNsubpanel "subpanel"
+#define DtNresolution "resolution"
+#define DtNtitleSpacing "titleSpacing"
+#define DtNtitlePosition "titlePosition"
+#define DtNtitleAlignment "titleAlignment"
+#define DtNtopInset "topInset"
+#define DtNunderline "underline"
+#define DtNuseEmbossedText "useEmbossedText"
+#define DtNwaitingBlinkRate "waitingBlinkRate"
+#define DtNwidthIncrement "widthIncrement"
+#define DtSicon_label "icon_label"
+#define DtSicon_button "icon_button"
+#define DtSicon_toggle "icon_toggle"
+#define DtSicon_drag "icon_drag"
+#define DtSwork_area "work_area"
+#define DtStitle_area "title_area"
+#define DtSseparator "separator"
+#define DtSbutton "button"
+#define DtSfill_none "fill_none"
+#define DtSfill_parent "fill_parent"
+#define DtSfill_transparent "fill_transparent"
+#define DtSfill_self "fill_self"
+#define DtSpixmap_top "pixmap_top"
+#define DtSpixmap_bottom "pixmap_bottom"
+#define DtSpixmap_left "pixmap_left"
+#define DtSpixmap_right "pixmap_right"
+#define DtSstring_top "string_top"
+#define DtSstring_bottom "string_bottom"
+#define DtSstring_left "string_left"
+#define DtSstring_right "string_right"
+#define DtStitle_top "title_top"
+#define DtStitle_bottom "title_bottom"
+#define DtNformatJP "formatJP"
+#define DtCFormatJP "FormatJP"
+#else
+#ifndef _DtConst
+#define _DtConst /**/
+#endif
+extern _DtConst char _DtStrings[];
+#ifndef DtCAlternateImage
+#define DtCAlternateImage ((char*)&_DtStrings[0])
+#endif
+#ifndef DtCBehavior
+#define DtCBehavior ((char*)&_DtStrings[15])
+#endif
+#ifndef DtRBehavior
+#define DtRBehavior ((char*)&_DtStrings[24])
+#endif
+#ifndef DtCBorderType
+#define DtCBorderType ((char*)&_DtStrings[33])
+#endif
+#ifndef DtRBorderType
+#define DtRBorderType ((char*)&_DtStrings[44])
+#endif
+#ifndef DtCBoxType
+#define DtCBoxType ((char*)&_DtStrings[55])
+#endif
+#ifndef DtRBoxType
+#define DtRBoxType ((char*)&_DtStrings[63])
+#endif
+#ifndef DtCButtonLabelStrings
+#define DtCButtonLabelStrings ((char*)&_DtStrings[71])
+#endif
+#ifndef DtCControlType
+#define DtCControlType ((char*)&_DtStrings[90])
+#endif
+#ifndef DtRControlType
+#define DtRControlType ((char*)&_DtStrings[102])
+#endif
+#ifndef DtCCursorFont
+#define DtCCursorFont ((char*)&_DtStrings[114])
+#endif
+#ifndef DtCDrawShadow
+#define DtCDrawShadow ((char*)&_DtStrings[125])
+#endif
+#ifndef DtCDropAction
+#define DtCDropAction ((char*)&_DtStrings[136])
+#endif
+#ifndef DtCDropCallback
+#define DtCDropCallback ((char*)&_DtStrings[147])
+#endif
+#ifndef DtCFillMode
+#define DtCFillMode ((char*)&_DtStrings[160])
+#endif
+#ifndef DtRFillMode
+#define DtRFillMode ((char*)&_DtStrings[169])
+#endif
+#ifndef DtCFormat
+#define DtCFormat ((char*)&_DtStrings[178])
+#endif
+#ifndef DtCHighResFontList
+#define DtCHighResFontList ((char*)&_DtStrings[185])
+#endif
+#ifndef DtCLowResFontList
+#define DtCLowResFontList ((char*)&_DtStrings[201])
+#endif
+#ifndef DtCMediumResFontList
+#define DtCMediumResFontList ((char*)&_DtStrings[216])
+#endif
+#ifndef DtCPixmapPosition
+#define DtCPixmapPosition ((char*)&_DtStrings[234])
+#endif
+#ifndef DtRPixmapPosition
+#define DtRPixmapPosition ((char*)&_DtStrings[249])
+#endif
+#ifndef DtCPushArgument
+#define DtCPushArgument ((char*)&_DtStrings[264])
+#endif
+#ifndef DtCPushFunction
+#define DtCPushFunction ((char*)&_DtStrings[277])
+#endif
+#ifndef DtCStringPosition
+#define DtCStringPosition ((char*)&_DtStrings[290])
+#endif
+#ifndef DtRStringPosition
+#define DtRStringPosition ((char*)&_DtStrings[305])
+#endif
+#ifndef DtCSubpanel
+#define DtCSubpanel ((char*)&_DtStrings[320])
+#endif
+#ifndef DtCTitleSpacing
+#define DtCTitleSpacing ((char*)&_DtStrings[329])
+#endif
+#ifndef DtCTitlePosition
+#define DtCTitlePosition ((char*)&_DtStrings[342])
+#endif
+#ifndef DtRTitlePosition
+#define DtRTitlePosition ((char*)&_DtStrings[356])
+#endif
+#ifndef DtCUnderline
+#define DtCUnderline ((char*)&_DtStrings[370])
+#endif
+#ifndef DtNalternateImage
+#define DtNalternateImage ((char*)&_DtStrings[380])
+#endif
+#ifndef DtNbehavior
+#define DtNbehavior ((char*)&_DtStrings[395])
+#endif
+#ifndef DtNbottomInset
+#define DtNbottomInset ((char*)&_DtStrings[404])
+#endif
+#ifndef DtNborderType
+#define DtNborderType ((char*)&_DtStrings[416])
+#endif
+#ifndef DtNboxType
+#define DtNboxType ((char*)&_DtStrings[427])
+#endif
+#ifndef DtNbuttonLabelStrings
+#define DtNbuttonLabelStrings ((char*)&_DtStrings[435])
+#endif
+#ifndef DtNchime
+#define DtNchime ((char*)&_DtStrings[454])
+#endif
+#ifndef DtNclientTimeoutInterval
+#define DtNclientTimeoutInterval ((char*)&_DtStrings[460])
+#endif
+#ifndef DtNclockInterval
+#define DtNclockInterval ((char*)&_DtStrings[482])
+#endif
+#ifndef DtNcontrolType
+#define DtNcontrolType ((char*)&_DtStrings[496])
+#endif
+#ifndef DtNcursorFont
+#define DtNcursorFont ((char*)&_DtStrings[508])
+#endif
+#ifndef DtNdrawShadow
+#define DtNdrawShadow ((char*)&_DtStrings[519])
+#endif
+#ifndef DtNdropAction
+#define DtNdropAction ((char*)&_DtStrings[530])
+#endif
+#ifndef DtNdropCallback
+#define DtNdropCallback ((char*)&_DtStrings[541])
+#endif
+#ifndef DtNfileName
+#define DtNfileName ((char*)&_DtStrings[554])
+#endif
+#ifndef DtNfillMode
+#define DtNfillMode ((char*)&_DtStrings[563])
+#endif
+#ifndef DtNformat
+#define DtNformat ((char*)&_DtStrings[572])
+#endif
+#ifndef DtNheightIncrement
+#define DtNheightIncrement ((char*)&_DtStrings[579])
+#endif
+#ifndef DtNhighResFontList
+#define DtNhighResFontList ((char*)&_DtStrings[595])
+#endif
+#ifndef DtNimageName
+#define DtNimageName ((char*)&_DtStrings[611])
+#endif
+#ifndef DtNleftInset
+#define DtNleftInset ((char*)&_DtStrings[621])
+#endif
+#ifndef DtNlowResFontList
+#define DtNlowResFontList ((char*)&_DtStrings[631])
+#endif
+#ifndef DtNmediumResFontList
+#define DtNmediumResFontList ((char*)&_DtStrings[646])
+#endif
+#ifndef DtNmonitorTime
+#define DtNmonitorTime ((char*)&_DtStrings[664])
+#endif
+#ifndef DtNpixmapForeground
+#define DtNpixmapForeground ((char*)&_DtStrings[676])
+#endif
+#ifndef DtNpixmapBackground
+#define DtNpixmapBackground ((char*)&_DtStrings[693])
+#endif
+#ifndef DtNpixmapPosition
+#define DtNpixmapPosition ((char*)&_DtStrings[710])
+#endif
+#ifndef DtNpushArgument
+#define DtNpushArgument ((char*)&_DtStrings[725])
+#endif
+#ifndef DtNpushButtonClickTime
+#define DtNpushButtonClickTime ((char*)&_DtStrings[738])
+#endif
+#ifndef DtNpushFunction
+#define DtNpushFunction ((char*)&_DtStrings[758])
+#endif
+#ifndef DtNrightInset
+#define DtNrightInset ((char*)&_DtStrings[771])
+#endif
+#ifndef DtNstringPosition
+#define DtNstringPosition ((char*)&_DtStrings[782])
+#endif
+#ifndef DtNsubpanel
+#define DtNsubpanel ((char*)&_DtStrings[797])
+#endif
+#ifndef DtNresolution
+#define DtNresolution ((char*)&_DtStrings[806])
+#endif
+#ifndef DtNtitleSpacing
+#define DtNtitleSpacing ((char*)&_DtStrings[817])
+#endif
+#ifndef DtNtitlePosition
+#define DtNtitlePosition ((char*)&_DtStrings[830])
+#endif
+#ifndef DtNtitleAlignment
+#define DtNtitleAlignment ((char*)&_DtStrings[844])
+#endif
+#ifndef DtNtopInset
+#define DtNtopInset ((char*)&_DtStrings[859])
+#endif
+#ifndef DtNunderline
+#define DtNunderline ((char*)&_DtStrings[868])
+#endif
+#ifndef DtNuseEmbossedText
+#define DtNuseEmbossedText ((char*)&_DtStrings[878])
+#endif
+#ifndef DtNwaitingBlinkRate
+#define DtNwaitingBlinkRate ((char*)&_DtStrings[894])
+#endif
+#ifndef DtNwidthIncrement
+#define DtNwidthIncrement ((char*)&_DtStrings[911])
+#endif
+#ifndef DtSicon_label
+#define DtSicon_label ((char*)&_DtStrings[926])
+#endif
+#ifndef DtSicon_button
+#define DtSicon_button ((char*)&_DtStrings[937])
+#endif
+#ifndef DtSicon_toggle
+#define DtSicon_toggle ((char*)&_DtStrings[949])
+#endif
+#ifndef DtSicon_drag
+#define DtSicon_drag ((char*)&_DtStrings[961])
+#endif
+#ifndef DtSwork_area
+#define DtSwork_area ((char*)&_DtStrings[971])
+#endif
+#ifndef DtStitle_area
+#define DtStitle_area ((char*)&_DtStrings[981])
+#endif
+#ifndef DtSseparator
+#define DtSseparator ((char*)&_DtStrings[992])
+#endif
+#ifndef DtSbutton
+#define DtSbutton ((char*)&_DtStrings[1002])
+#endif
+#ifndef DtSfill_none
+#define DtSfill_none ((char*)&_DtStrings[1009])
+#endif
+#ifndef DtSfill_parent
+#define DtSfill_parent ((char*)&_DtStrings[1019])
+#endif
+#ifndef DtSfill_transparent
+#define DtSfill_transparent ((char*)&_DtStrings[1031])
+#endif
+#ifndef DtSfill_self
+#define DtSfill_self ((char*)&_DtStrings[1048])
+#endif
+#ifndef DtSpixmap_top
+#define DtSpixmap_top ((char*)&_DtStrings[1058])
+#endif
+#ifndef DtSpixmap_bottom
+#define DtSpixmap_bottom ((char*)&_DtStrings[1069])
+#endif
+#ifndef DtSpixmap_left
+#define DtSpixmap_left ((char*)&_DtStrings[1083])
+#endif
+#ifndef DtSpixmap_right
+#define DtSpixmap_right ((char*)&_DtStrings[1095])
+#endif
+#ifndef DtSstring_top
+#define DtSstring_top ((char*)&_DtStrings[1108])
+#endif
+#ifndef DtSstring_bottom
+#define DtSstring_bottom ((char*)&_DtStrings[1119])
+#endif
+#ifndef DtSstring_left
+#define DtSstring_left ((char*)&_DtStrings[1133])
+#endif
+#ifndef DtSstring_right
+#define DtSstring_right ((char*)&_DtStrings[1145])
+#endif
+#ifndef DtStitle_top
+#define DtStitle_top ((char*)&_DtStrings[1158])
+#endif
+#ifndef DtStitle_bottom
+#define DtStitle_bottom ((char*)&_DtStrings[1168])
+#endif
+#ifndef DtNmaxPixmapWidth
+#define DtNmaxPixmapWidth ((char*)&_DtStrings[1181])
+#endif
+#ifndef DtNmaxPixmapHeight
+#define DtNmaxPixmapHeight ((char*)&_DtStrings[1196])
+#endif
+#endif
+extern _DtConst char _AIXJPStrings[];
+#ifndef DtNformatJP
+#define DtNformatJP ((char*)&_AIXJPStrings[0])
+#endif
+#ifndef DtCFormatJP
+#define DtCFormatJP ((char*)&_AIXJPStrings[9])
+#endif
+
+/*
+ * Resource name mapping to Xm prefix.  If Motif defines on of these
+ * resources, the redefined resource definition should be removed.
+ */
+#define XmCAlternateImage      DtCAlternateImage
+#define XmCBehavior            DtCBehavior
+#define XmRBehavior            DtRBehavior
+#define XmCBorderType          DtCBorderType
+#define XmRBorderType          DtRBorderType
+#define XmCBoxType             DtCBoxType
+#define XmRBoxType             DtRBoxType
+#define XmCButtonLabelStrings  DtCButtonLabelStrings
+#define XmCControlType         DtCControlType
+#define XmRControlType         DtRControlType
+#define XmCCursorFont          DtCCursorFont
+#define XmCDrawShadow          DtCDrawShadow
+#define XmCDropAction          DtCDropAction
+#define XmCDropCallback                DtCDropCallback
+#define XmCFillMode            DtCFillMode
+#define XmRFillMode            DtRFillMode
+#define XmCFormat              DtCFormat
+#define XmCHighResFontList     DtCHighResFontList
+#define XmCLowResFontList      DtCLowResFontList
+#define XmCMediumResFontList   DtCMediumResFontList
+#define XmCPixmapPosition      DtCPixmapPosition
+#define XmRPixmapPosition      DtRPixmapPosition
+#define XmCPushArgument                DtCPushArgument
+#define XmCPushFunction                DtCPushFunction
+#define XmCStringPosition      DtCStringPosition
+#define XmRStringPosition      DtRStringPosition
+#define XmCSubpanel            DtCSubpanel
+#define XmCTitleSpacing                DtCTitleSpacing
+#define XmCTitlePosition       DtCTitlePosition
+#define XmRTitlePosition       DtRTitlePosition
+#define XmCUnderline           DtCUnderline
+#define XmNalternateImage      DtNalternateImage
+#define XmNbehavior            DtNbehavior
+#define XmNbottomInset         DtNbottomInset
+#define XmNborderType          DtNborderType
+#define XmNboxType             DtNboxType
+#define XmNbuttonLabelStrings  DtNbuttonLabelStrings
+#define XmNchime               DtNchime
+#define XmNclientTimeoutInterval DtNclientTimeoutInterval
+#define XmNclockInterval       DtNclockInterval
+#define XmNcontrolType         DtNcontrolType
+#define XmNcursorFont          DtNcursorFont
+#define XmNdrawShadow          DtNdrawShadow
+#define XmNdropAction          DtNdropAction
+#define XmNdropCallback                DtNdropCallback
+#define XmNfileName            DtNfileName
+#define XmNfillMode            DtNfillMode
+#define XmNformat              DtNformat
+#define XmNheightIncrement     DtNheightIncrement
+#define XmNhighResFontList     DtNhighResFontList
+#define XmNimageName           DtNimageName
+#define XmNleftInset           DtNleftInset
+#define XmNlowResFontList      DtNlowResFontList
+#define XmNmediumResFontList   DtNmediumResFontList
+#define XmNmonitorTime         DtNmonitorTime
+#define XmNpixmapForeground    DtNpixmapForeground
+#define XmNpixmapBackground    DtNpixmapBackground
+#define XmNmaxPixmapWidth      DtNmaxPixmapWidth
+#define XmNmaxPixmapHeight     DtNmaxPixmapHeight
+#define XmNpixmapPosition      DtNpixmapPosition
+#define XmNpushArgument                DtNpushArgument
+#define XmNpushButtonClickTime DtNpushButtonClickTime
+#define XmNpushFunction                DtNpushFunction
+#define XmNrightInset          DtNrightInset
+#define XmNstringPosition      DtNstringPosition
+#define XmNsubpanel            DtNsubpanel
+#define XmNresolution          DtNresolution
+#define XmNtitleSpacing                DtNtitleSpacing
+#define XmNtitlePosition       DtNtitlePosition
+#define XmNtitleAlignment      DtNtitleAlignment
+#define XmNtopInset            DtNtopInset
+#define XmNunderline           DtNunderline
+#define XmNuseEmbossedText     DtNuseEmbossedText
+#define XmNwaitingBlinkRate    DtNwaitingBlinkRate
+#define XmNwidthIncrement      DtNwidthIncrement
+#define XmNformatJP DtNformatJP
+#define XmCFormatJP DtCFormatJP
+
+/*
+ * String defines for converter string names.
+ */
+#define STR_ICON_LABEL          DtSicon_label
+#define STR_ICON_BUTTON         DtSicon_button
+#define STR_ICON_TOGGLE         DtSicon_toggle
+#define STR_ICON_DRAG           DtSicon_drag
+#define STR_WORK_AREA           DtSwork_area
+#define STR_TITLE_AREA          DtStitle_area
+#define STR_SEPARATOR           DtSseparator
+#define STR_BUTTON              DtSbutton
+#define STR_FILL_NONE           DtSfill_none
+#define STR_FILL_PARENT         DtSfill_parent
+#define STR_FILL_TRANSPARENT    DtSfill_transparent
+#define STR_FILL_SELF           DtSfill_self
+#define STR_PIXMAP_TOP          DtSpixmap_top
+#define STR_PIXMAP_BOTTOM       DtSpixmap_bottom
+#define STR_PIXMAP_LEFT         DtSpixmap_left
+#define STR_PIXMAP_RIGHT        DtSpixmap_right
+#define STR_STRING_TOP          DtSstring_top
+#define STR_STRING_BOTTOM       DtSstring_bottom
+#define STR_STRING_LEFT         DtSstring_left
+#define STR_STRING_RIGHT        DtSstring_right
+#define STR_TITLE_TOP           DtStitle_top
+#define STR_TITLE_BOTTOM        DtStitle_bottom
+#endif
diff --git a/cde/include/Dt/DtosP.h b/cde/include/Dt/DtosP.h
new file mode 100644 (file)
index 0000000..866da79
--- /dev/null
@@ -0,0 +1,248 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: DtosP.h /main/4 1998/01/21 16:37:29 mgreess $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+#ifdef REV_INFO
+#ifndef lint
+static char SCCSID[] = "OSF/Motif: @(#)_DtosP.h        4.16 91/09/12";
+#endif /* lint */
+#endif /* REV_INFO */
+/******************************************************************************
+*******************************************************************************
+*
+*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
+*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
+*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
+*  ALL RIGHTS RESERVED
+*  
+*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
+*  AND COPIED 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 OPEN SOFTWARE
+*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
+*  
+*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
+*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
+*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
+*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
+*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+*  FITNESS FOR A PARTICULAR PURPOSE.
+*  
+*  Notice:  Notwithstanding any other lease or license that may pertain to,
+*  or accompany the delivery of, this computer software, the rights of the
+*  Government regarding its use, reproduction and disclosure are as set
+*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
+*  Rights clause.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
+*  rights reserved under the Copyright laws of the United States.
+*  
+*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
+*  Government is subject to the restrictions as set forth in subparagraph
+*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
+*  at DFARS 52.227-7013.
+*  
+*  Open Software Foundation, Inc.
+*  11 Cambridge Center
+*  Cambridge, MA   02142
+*  (617)621-8700
+*  
+*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
+*  "restricted rights."  Use, duplication or disclosure is subject to the
+*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
+*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
+*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
+*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
+*  then the "Alternate III" clause applies.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
+*  ALL RIGHTS RESERVED 
+*  
+*  
+* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
+* OSF is a trademark of Open Software Foundation, Inc.
+* OSF/Motif is a trademark of Open Software Foundation, Inc.
+* Motif is a trademark of Open Software Foundation, Inc.
+* DEC is a registered trademark of Digital Equipment Corporation
+* DIGITAL is a registered trademark of Digital Equipment Corporation
+* X Window System is a trademark of the Massachusetts Institute of Technology
+*
+*******************************************************************************
+******************************************************************************/
+#ifndef __DtosP_h
+#define __DtosP_h
+
+#ifndef NO_MEMMOVE
+# ifndef X_NOT_STDC_ENV
+#  include <stdlib.h> /* Needed for MB_CUR_MAX, mbtowc, mbstowcs and mblen */
+# endif
+#else
+# define memmove( p1, p2, p3 )   bcopy( p2, p1, p3 )
+#endif
+
+#ifdef BOGUS_MB_MAX  /* some systems don't properly set MB_[CUR|LEN]_MAX */
+# undef  MB_LEN_MAX
+# define MB_LEN_MAX 1 /* temp fix */
+# undef  MB_CUR_MAX
+# define MB_CUR_MAX 1 /* temp fix */
+#endif /* BOGUS_MB_MAX */
+
+/**********************************************************************/
+/* here we duplicate Xtos.h, since we can't include this private file */
+
+#ifdef INCLUDE_ALLOCA_H
+# include <alloca.h>
+#endif
+
+#ifdef CRAY
+# define WORD64
+#endif
+
+/* stolen from server/include/os.h */
+#ifndef NO_ALLOCA
+/*
+ * os-dependent definition of local allocation and deallocation
+ * If you want something other than XtMalloc/XtFree for ALLOCATE/DEALLOCATE
+ * LOCAL then you add that in here.
+ */
+# if defined(__HIGHC__)
+
+#  if HCVERSION < 21003
+#   define ALLOCATE_LOCAL(size)        alloca((int)(size))
+#pragma on(alloca);
+#  else /* HCVERSION >= 21003 */
+#   define     ALLOCATE_LOCAL(size)    _Alloca((int)(size))
+#  endif /* HCVERSION < 21003 */
+
+#  define DEALLOCATE_LOCAL(ptr)  /* as nothing */
+
+# endif /* defined(__HIGHC__) */
+
+
+# ifdef __GNUC__
+#  ifdef alloca
+#  undef alloca
+#  endif
+#  define alloca __builtin_alloca
+#  define ALLOCATE_LOCAL(size) alloca((int)(size))
+#  define DEALLOCATE_LOCAL(ptr)  /* as nothing */
+# else /* ! __GNUC__ */
+/*
+ * warning: mips alloca is unsuitable, do not use.
+ */
+#  if defined(vax) || defined(sun) || defined(stellar)
+/*
+ * Some System V boxes extract alloca.o from /lib/libPW.a; if you
+ * decide that you don't want to use alloca, you might want to fix it here.
+ */
+char *alloca();
+#   define ALLOCATE_LOCAL(size) alloca((int)(size))
+#   define DEALLOCATE_LOCAL(ptr)  /* as nothing */
+#  endif /* who does alloca */
+# endif /* __GNUC__ */
+
+#endif /* NO_ALLOCA */
+
+#ifndef ALLOCATE_LOCAL
+# define ALLOCATE_LOCAL(size) XtMalloc((unsigned long)(size))
+# define DEALLOCATE_LOCAL(ptr) XtFree((XtPointer)(ptr))
+#endif /* ALLOCATE_LOCAL */
+
+/* End of Xtos.h */
+/*****************/
+
+
+/*
+ * Default Icon Search Paths
+ * 
+ * The following are default starter values for XMICONSEARCHPATH and
+ * XMICONBMSEARCHPATH, respectively.  Code elsewhere must ensure that paths
+ * into the user's home directory occur in front of these paths in the
+ * environment variables.  Note the apparently redundant use of ANSI C string
+ * constant concatenation; this is necessary in order to avoid the sequence of
+ * characters % B %, which form an SCCS id keyword.
+ */
+
+#define DTPMSYSDEFAULT                                         \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:"         \
+                                                               \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:"  \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:"  \
+       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:"          \
+                                                               \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.pm:" \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.bm:" \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B:"         \
+                                                               \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.pm:"  \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.bm:"  \
+       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B"
+
+#define DTBMSYSDEFAULT                                         \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:"        \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:"        \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:"                \
+                                                               \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
+        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:"         \
+                                                               \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.bm:"        \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.pm:"        \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B:"                \
+                                                               \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.bm:" \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.pm:" \
+        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B"
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Private Function Declarations ********/
+
+/********    End Private Function Declarations    ********/
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* __DtosP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
+
+
+
diff --git a/cde/include/Dt/DtpadM.h b/cde/include/Dt/DtpadM.h
new file mode 100644 (file)
index 0000000..2ffd8c6
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtpadM.h /main/3 1995/10/26 15:20:56 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        DtpadM.h
+ **
+ **   Project:     HP-DT "dtpad" text editor
+ **
+ **   Description: Defines for the tool class and messages for the
+ **               dtpad text editor
+ **
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _DtpadM_h
+#define _DtpadM_h
+
+#define DTPAD_TOOL_CLASS               "DTPAD"
+
+/*
+ * Request Messages which the editor understands
+ */
+#define DTPAD_RUN_SESSION_MSG  "RUN_SESSION"
+#define DTPAD_OPEN_FILE_MSG    "OPEN_FILE"
+
+/*
+ * Notification Messages which the Editor sends
+ */
+#define DTPAD_DONE             "DONE"
+
+#endif /*_DtpadM_h*/
diff --git a/cde/include/Dt/Dts.h b/cde/include/Dt/Dts.h
new file mode 100644 (file)
index 0000000..273dc32
--- /dev/null
@@ -0,0 +1,181 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Dts.h /main/5 1996/03/05 13:30:59 drk $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Dts_h
+#define _Dt_Dts_h
+
+#include <sys/stat.h>
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Constants
+ */
+
+#define        DtDTS_DC_NAME                   "DATA_CRITERIA"
+#define        DtDTS_NAME_PATTERN              "NAME_PATTERN"
+#define        DtDTS_PATH_PATTERN              "PATH_PATTERN"
+#define        DtDTS_CONTENT                   "CONTENT"
+#define        DtDTS_MODE                      "MODE"
+#define        DtDTS_LINK_PATH                 "LINK_PATH"
+#define        DtDTS_LINK_NAME                 "LINK_NAME"
+#define        DtDTS_DATA_ATTRIBUTES_NAME      "DATA_ATTRIBUTES_NAME"
+
+#define        DtDTS_DT_RECURSIVE_LINK         "RECURSIVE_LINK"
+#define        DtDTS_DT_BROKEN_LINK            "BROKEN_LINK"
+#define        DtDTS_DT_UNKNOWN                "UNKNOWN"
+
+#define        DtDTS_DA_IS_SYNTHETIC           "IS_SYNTHETIC"
+#define        DtDTS_DA_LABEL                  "LABEL"
+#define        DtDTS_DA_NAME                   "DATA_ATTRIBUTES"
+#define        DtDTS_DA_DESCRIPTION            "DESCRIPTION"
+#define        DtDTS_DA_DATA_HOST              "DATA_HOST"
+#define        DtDTS_DA_ICON                   "ICON"
+#define        DtDTS_DA_INSTANCE_ICON          "INSTANCE_ICON"
+#define        DtDTS_DA_PROPERTIES             "PROPERTIES"
+#define        DtDTS_DA_ACTION_LIST            "ACTIONS"
+#define DtDTS_DA_NAME_TEMPLATE         "NAME_TEMPLATE"
+#define DtDTS_DA_MODE_TEMPLATE         "MODE_TEMPLATE"
+#define        DtDTS_DA_MOVE_TO_ACTION         "MOVE_TO_ACTION"
+#define        DtDTS_DA_COPY_TO_ACTION         "COPY_TO_ACTION"
+#define        DtDTS_DA_LINK_TO_ACTION         "LINK_TO_ACTION"
+#define        DtDTS_DA_IS_TEXT                "IS_TEXT"
+#define        DtDTS_DA_MEDIA                  "MEDIA"
+#define        DtDTS_DA_MIME_TYPE              "MIME_TYPE"
+#define        DtDTS_DA_MIME_TO_MEDIA_FILTER   "MIME_TO_MEDIA_FILTER"
+#define        DtDTS_DA_MEDIA_TO_MIME_FILTER   "MEDIA_TO_MIME_FILTER"
+#define        DtDTS_DA_X400_TYPE              "X400_TYPE"
+#define        DtDTS_DA_X400_TO_MEDIA_FILTER   "X400_TO_MEDIA_FILTER"
+#define        DtDTS_DA_MEDIA_TO_X400_FILTER   "MEDIA_TO_X400_FILTER"
+#define        DtDTS_DA_IS_ACTION              "IS_ACTION"
+#define        DtDTS_DA_IS_EXECUTABLE          "IS_EXECUTABLE"
+
+#define        DtDTS_DT_DIR    ".DtDirDataType"
+
+
+/*
+ * Types
+ */
+
+typedef        struct  _DtDtsAttribute
+{
+       char    *name;
+       char    *value;
+} DtDtsAttribute;
+
+
+/*
+ * Functions
+ */
+
+extern void DtDtsLoadDataTypes(void);
+extern void DtDtsRelease(void);
+
+extern char *DtDtsDataToDataType(
+               const char              *filepath,
+               const void              *buffer,
+               const int               size,
+               const struct stat       *stat_buff,
+               const char              *link_name,
+               const struct stat       *link_stat_buff,
+               const char              *opt_name);
+
+extern char *DtDtsFileToDataType(
+               const char              *filepath);
+
+extern char *DtDtsFileToAttributeValue(
+               const char              *filepath,
+               const char              *attr);
+
+extern DtDtsAttribute **DtDtsFileToAttributeList(
+               const char              *filepath);
+
+extern char *DtDtsBufferToDataType(
+               const void              *buffer,
+               const int               size,
+               const char              *opt_name);
+
+extern char *DtDtsBufferToAttributeValue(
+               const void              *buffer,
+               const int               size,
+               const char              *attr,
+               const char              *opt_name);
+
+extern DtDtsAttribute  **DtDtsBufferToAttributeList(
+               const void              *buffer,
+               const int               size,
+               const char              *opt_name);
+
+extern char *DtDtsDataTypeToAttributeValue(
+               const char              *datatype,
+               const char              *attr,
+               const char              *opt_name);
+
+extern DtDtsAttribute  **DtDtsDataTypeToAttributeList(
+               const char              *datatype,
+               const char              *opt_name);
+
+extern void DtDtsFreeDataTypeNames(
+               char                    **namelist);
+
+extern void DtDtsFreeAttributeList(
+               DtDtsAttribute          **attr_list);
+
+extern void DtDtsFreeAttributeValue(
+               char                    *attr_value);
+
+extern void DtDtsFreeDataType(
+               char                    *datatype);
+
+extern char **DtDtsDataTypeNames(void);
+
+extern char **DtDtsFindAttribute(
+               const char              *name,
+               const char              *value);
+
+extern char *DtDtsSetDataType(
+               const char              *filepath,
+               const char              *datatype,
+               const int               override);
+
+extern int DtDtsDataTypeIsAction(
+               const char              *datatype);
+
+extern Boolean DtDtsIsTrue(
+               const char              *str);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif  /* _Dt_Dts_h */
diff --git a/cde/include/Dt/DtsDb.h b/cde/include/Dt/DtsDb.h
new file mode 100644 (file)
index 0000000..03fb5b2
--- /dev/null
@@ -0,0 +1,154 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/*
+ *+SNOTICE
+ *
+ *     $XConsortium: DtsDb.h /main/5 1996/08/28 14:32:17 rswiston $
+ *
+ *     RESTRICTED CONFIDENTIAL INFORMATION:
+ *     
+ *     The information in this document is subject to special
+ *     restrictions in a confidential disclosure agreement bertween
+ *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
+ *     document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
+ *     Sun's specific written approval.  This documment and all copies
+ *     and derivative works thereof must be returned or destroyed at
+ *     Sun's request.
+ *
+ *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
+ *
+ *+ENOTICE
+ */
+#ifndef DT_DTS_DB_H
+#define DT_DTS_DB_H
+
+#include <X11/Xresource.h>
+#include <Dt/DbReader.h>
+
+typedef int    OtBoolean;
+
+/* typedefs for casting comparison functions if needed */
+typedef        int     (*_DtDtsDbFieldCompare)(DtDtsDbField **fld1, DtDtsDbField **fld2);
+
+/* entry of a list of attribute/pairs */
+typedef        struct
+{
+       XrmQuark                recordName;
+       _DtDtsDbFieldCompare    compare;
+       long                    pathId;
+       int                     seq;
+       int                     fieldCount;
+       DtDtsDbField            **fieldList;
+} DtDtsDbRecord;
+
+/* typedefs for casting record comparison functions if needed */
+typedef        int     (*_DtDtsDbRecordCompare)(DtDtsDbRecord **rec1, DtDtsDbRecord **rec2);
+
+/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE 
+       This is a private Structure to the DtDtsDb component.
+*/
+typedef        struct
+{
+       char                    *databaseName;
+       _DtDtsDbRecordCompare   compare;
+       int                     recordCount;
+       DtDtsDbRecord           **recordList;
+        unsigned long           ActionSequenceNumber;
+} DtDtsDbDatabase;
+
+/* for the mmaped database this the use_in_memory_db variable is used
+   to call the old API while the database is being built and is set to
+   false when the mmaped versions are being accessed.
+*/
+
+extern int     use_in_memory_db;
+
+/*
+ *  adds a new database to the list of databases -- returns a pointer to the
+ *  new database.  If a database of the given name already exists it returns
+ *  a pointer to that database.
+ */
+extern DtDtsDbDatabase         *_DtDtsDbAddDatabase( char *dbname );
+
+/* returns the handle for the database where name is the Database name */
+extern DtDtsDbDatabase         *_DtDtsDbGet(char *name);
+extern char                    **_DtDtsDbListDb(void);
+
+/* Record Sort function:
+ * sorts the specified database, usually obtained from _DtDtsDbGet(), in the
+ * order specified by the comparison function. If (*compare) == 0 then
+ * _DtDtsDbCompareRecordNames() is used as the (*compare) function.
+ */
+extern void            _DtDtsDbRecordSort(DtDtsDbDatabase *database, 
+                                       _DtDtsDbRecordCompare compare);
+/* Field Sort function:
+ * sorts the specified Record in the order specified by the comparison function
+ * If (*compare) == 0 then _DtDtsDbCompareFieldNames() is used as the
+ * (*compare) function.
+ */
+extern void            _DtDtsDbFieldSort(DtDtsDbRecord *record,
+                                       _DtDtsDbFieldCompare compare);
+
+/* Name Comparison functions:
+ * These routines can be passed in to the corresponding sort function to
+ * sort by name.
+ *
+ */
+extern int _DtDtsDbCompareRecordNames(DtDtsDbRecord **entry1, DtDtsDbRecord **entry2);
+extern int _DtDtsDbCompareFieldNames(DtDtsDbField **entry1, DtDtsDbField **entry2);
+
+/* retrieves the Record that matches the specified entry from the record */
+extern DtDtsDbField    *_DtDtsDbGetField(DtDtsDbRecord *record,
+                                       char *value);
+
+/* retrieves the entry of the specified entry from the specified database */
+extern DtDtsDbRecord   *_DtDtsDbGetRecord(DtDtsDbDatabase *database,
+                                       DtDtsDbRecord *value);
+
+/* Get By Name functions:
+ * retrieves the entry of the specified name from the specified database
+ * ** IF ** the _DtDtsDb*Sort routine has been called with the corresponding
+ * _DtDtsDbCompare*Name comparison function. Otherwise use the standard
+ * _DtDtsDbGet* functions. 
+*/
+extern char *_DtDtsDbGetFieldByName(DtDtsDbRecord *record, char *name);
+extern DtDtsDbRecord *_DtDtsDbGetRecordByName(DtDtsDbDatabase *database, char *name);
+
+extern DtDtsDbRecord *_DtDtsDbAddRecord(DtDtsDbDatabase *db);
+
+extern DtDtsDbField *_DtDtsDbAddField(DtDtsDbRecord *rec);
+
+extern int     _DtDtsDbDeleteDb(DtDtsDbDatabase *db);
+extern int     _DtDtsDbDeleteRecord(DtDtsDbRecord *rec, DtDtsDbDatabase *db);
+extern int     _DtDtsDbDeleteRecords(DtDtsDbDatabase *db);
+extern int     _DtDtsDbDeleteField(DtDtsDbField *fld, DtDtsDbRecord *rec);
+extern int     _DtDtsDbDeleteFields(DtDtsDbRecord *rec);
+
+#endif
+
diff --git a/cde/include/Dt/DtsMM.h b/cde/include/Dt/DtsMM.h
new file mode 100644 (file)
index 0000000..48ad0cf
--- /dev/null
@@ -0,0 +1,174 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DtsMM.h /main/8 1996/08/28 14:27:26 rswiston $ */
+/*
+ *
+ *     RESTRICTED CONFIDENTIAL INFORMATION:
+ *     
+ *
+ *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
+ *
+ *+ENOTICE
+ */
+#ifndef DT_DTS_MM_H
+#define DT_DTS_MM_H
+
+#include <stdio.h>
+#include <Dt/DtShmDb.h>
+#include <X11/Intrinsic.h>
+#include "Dt/DbReader.h"
+
+#define        DTDTSDB_TMPDATABASENAME "%s/.dt/.tmp_dt_db_cache.%s\0"
+#define        DTDTSDB_DATABASENAME    "%s/.dt/.dt_db_cache.%s\0"
+#define        _DTDTSMMTEMPFILE        "dtdbcache_"
+
+/*
+ * NOTE: _DTDTSMMTEMPDIR affects the location of the dtdbcache
+ * file, and therefore affects the Xsession.src, Xreset.src, and
+ * Xstartup.src scripts in dtlogin/config.
+ */
+#define _DTDTSMMTEMPDIR        "/tmp"
+
+typedef        int     DtDtsMMSeqNo;           /* the order it occures in db */
+typedef        int     DtDtsMMFieldCount;      /* number of fields in record */
+typedef        int     DtDtsMMRecordCount;     /* number of records in field */
+typedef        int     DtDtsMMDataBaseCount;   /* how many databases */
+typedef        int     DtDtsMMFieldStart;      /* index in table where field list starts */
+typedef        int     DtDtsMMRecordStart;     /* index in table where record list starts */
+typedef        int     DtDtsMMDataBaseStart;   /* index in table where database list starts */
+typedef        int     DtDtsMMIndexOffset;
+typedef        int     DtDtsMMNameIndex;
+typedef        int     DtDtsMMPathHash;
+
+typedef        struct
+{
+       DtDtsMMPathHash         pathhash;       /* hash of dir. we visit */
+       DtDtsMMDataBaseCount    num_db;         /* number of databases */
+       DtDtsMMDataBaseStart    db_offset;      /* index to databases */
+       DtDtsMMNameIndex        name_list_offset;       /* index to name list */
+       DtDtsMMNameIndex        no_name_offset;         /* index to nonunique names */
+       DtDtsMMNameIndex        buffer_start_index;     /* index to list of buffers */
+       DtDtsMMIndexOffset      str_tbl_offset;         /* index to table of strings */
+       DtDtsMMIndexOffset      files_count;            /* number of loaded files */
+       DtDtsMMIndexOffset      files_offset;           /* index to list of loaded files */
+       DtDtsMMIndexOffset      mtimes_offset;  /* index to modified times of files */
+} DtDtsMMHeader;
+
+/* one set of attribute/pair */
+typedef        struct
+{
+       DtShmBoson              fieldName;      /* name of attribute */
+       DtShmBoson              fieldValue;     /* value of attribute */
+} DtDtsMMField;
+
+/* typedefs for casting comparison functions if needed */
+typedef        int     (*_DtDtsMMFieldCompare)(DtDtsMMField *fld1, DtDtsMMField *fld2);
+
+/* entry of a list of attribute/pairs */
+typedef        struct
+{
+       DtShmBoson              recordName;     /* name of this entry */
+       DtShmBoson              pathId;         /* file entry is located in */
+       DtDtsMMSeqNo            seq;            /* sequence this got loaded */
+       DtDtsMMFieldCount       fieldCount;     /* number of fields in record */
+       DtDtsMMFieldStart       fieldList;      /* index to field table */
+} DtDtsMMRecord;
+
+/* typedefs for casting record comparison functions if needed */
+typedef        int     (*_DtDtsMMRecordCompare)(DtDtsMMRecord *rec1, DtDtsMMRecord *rec2);
+
+/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE 
+       This is a private Structure to the DtDtsMM component.
+*/
+typedef        struct
+{
+       DtShmBoson              databaseName;   /* name of database */
+       DtDtsMMIndexOffset      nameIndex;      /* index for DataCriteria quick find */
+       DtDtsMMRecordCount      recordCount;    /* number of records */
+       DtDtsMMRecordStart      recordList;     /* index to records table */
+} DtDtsMMDatabase;
+
+
+/* Db Internal pointers */
+int *                  _DtDtsMMGetDCNameIndex(int *size);
+int *                  _DtDtsMMGetBufferIndex(int *size);
+int *                  _DtDtsMMGetNoNameIndex(int *size);
+void *                 _DtDtsMMGetPtr(int index);
+DtShmInttab            _DtDtsMMGetFileList(void);
+int                    _DtDtsMMGetPtrSize(int index);
+int                    _DtDtsMMInit(int);
+void                   _DtDtsMMPrint(FILE *org_fd);
+int                    _DtDtsMMCreateDb(DtDirPaths *dirs, const char *CacheFile, int override);
+int                    _DtDtsMMCreateFile(DtDirPaths *dirs, const char *CacheFile);
+char *                 _DtDtsMMCacheName(int);
+int                    _DtDtsMMapDB(const char *CacheFile);
+
+const char *           _DtDtsMMBosonToString(DtShmBoson boson);
+DtShmBoson             _DtDtsMMStringToBoson(const char *string);
+
+extern int     use_in_memory_db;
+
+
+/* returns the handle for the database where name is the Database name */
+extern DtDtsMMDatabase         *_DtDtsMMGet(const char *name);
+extern char                    **_DtDtsMMListDb(void);
+
+/* FIXME: document */
+extern int *_DtDtsMMGetDbName(DtDtsMMDatabase *db, DtShmBoson boson);
+
+
+/* Name Comparison functions:
+ * These routines can be passed in to the corresponding sort function to
+ * sort by name.
+ *
+ */
+extern int _DtDtsMMCompareRecordNames(DtDtsMMRecord *entry1, DtDtsMMRecord *entry2);
+extern int _DtDtsMMCompareFieldNames(DtDtsMMField *entry1, DtDtsMMField *entry2);
+
+/* retrieves the Record that matches the specified entry from the record */
+extern DtDtsMMField    *_DtDtsMMGetField(DtDtsMMRecord *record,
+                                       const char *value);
+extern const char *_DtDtsMMGetFieldByName(DtDtsMMRecord *rec, const char *name);
+
+/* retrieves the entry of the specified entry from the specified database */
+extern DtDtsMMRecord   *_DtDtsMMGetRecord(DtDtsMMDatabase *database,
+                                       DtDtsMMRecord *value);
+extern DtDtsMMRecord   *_DtDtsMMGetRecordByName(DtDtsMMDatabase *database,
+                                       const char *value);
+
+/* Get By Name functions:
+ * retrieves the entry of the specified name from the specified database
+ * ** IF ** the _DtDtsMM*Sort routine has been called with the corresponding
+ * _DtDtsMMCompare*Name comparison function. Otherwise use the standard
+ * _DtDtsMMGet* functions. 
+*/
+
+
+char * _DtDtsMMExpandValue(const char *value);
+void   _DtDtsMMSafeFree(char *value);
+int    _DtDtsMMIsMemory(const char *value);
+
+extern DtShmBoson      _DtDtsMMNameStringToBoson(const char *string);
+
+
+#endif /* DT_DTS_MM_H */
diff --git a/cde/include/Dt/Editor.h b/cde/include/Dt/Editor.h
new file mode 100644 (file)
index 0000000..01e2b86
--- /dev/null
@@ -0,0 +1,616 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Editor.h /main/3 1995/10/26 09:32:07 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Editor_h
+#define _Dt_Editor_h
+
+#include <Xm/Xm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Sources of Help requests */
+/* Used with XmNhelpCallback */
+
+#define DtEDITOR_HELP_EDIT_WINDOW              1
+#define DtEDITOR_HELP_STATUS_LINE              2
+#define DtEDITOR_HELP_STATUS_CURRENT_LINE      3
+#define DtEDITOR_HELP_STATUS_TOTAL_LINES       4
+#define DtEDITOR_HELP_STATUS_MESSAGE           5
+#define DtEDITOR_HELP_STATUS_OVERSTRIKE                6
+#define DtEDITOR_HELP_FORMAT_DIALOG            7
+#define DtEDITOR_HELP_FORMAT_LEFT_MARGIN       8
+#define DtEDITOR_HELP_FORMAT_RIGHT_MARGIN      9
+#define DtEDITOR_HELP_FORMAT_ALIGNMENT         10
+#define DtEDITOR_HELP_CHANGE_DIALOG            11
+#define DtEDITOR_HELP_CHANGE_FIND              12
+#define DtEDITOR_HELP_CHANGE_CHANGE            13
+#define DtEDITOR_HELP_SPELL_DIALOG             14
+#define DtEDITOR_HELP_SPELL_MISSPELLED_WORDS   15
+#define DtEDITOR_HELP_SPELL_CHANGE             16
+
+/* Specifies the last line in the edit area */
+/* Used with DtEditorGoToLine */
+#define DtEDITOR_LAST_LINE             -999
+
+/* Resource constants */
+
+#ifndef DtNautoShowCursorPosition
+#define DtNautoShowCursorPosition      XmNautoShowCursorPosition
+#endif
+#ifndef DtCAutoShowCursorPosition
+#define DtCAutoShowCursorPosition      XmCAutoShowCursorPosition
+#endif
+#ifndef DtNblinkRate
+#define DtNblinkRate                   XmNblinkRate
+#endif
+#ifndef DtCBlinkRate
+#define DtCBlinkRate                   XmCBlinkRate
+#endif
+#ifndef DtNbuttonFontList  
+#define DtNbuttonFontList              XmNbuttonFontList
+#endif
+#ifndef DtCFontList 
+#define DtCFontList                    XmCFontList
+#endif
+#ifndef DtNcenterToggleLabel
+#define DtNcenterToggleLabel           "centerToggleLabel"
+#endif
+#ifndef DtCCenterToggleLabel
+#define DtCCenterToggleLabel           "CenterToggleLabel"
+#endif
+#ifndef DtNchangeAllButtonLabel
+#define DtNchangeAllButtonLabel        "changeAllButtonLabel"
+#endif
+#ifndef DtCChangeAllButtonLabel
+#define DtCChangeAllButtonLabel        "ChangeAllButtonLabel"
+#endif
+#ifndef DtNchangeButtonLabel
+#define DtNchangeButtonLabel           "changeButtonLabel"
+#endif
+#ifndef DtCChangeButtonLabel
+#define DtCChangeButtonLabel           "ChangeButtonLabel"
+#endif
+#ifndef DtNchangeFieldLabel
+#define DtNchangeFieldLabel            "changeFieldLabel"
+#endif
+#ifndef DtCChangeFieldLabel
+#define DtCChangeFieldLabel            "ChangeFieldLabel"
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns                     XmNcolumns
+#endif
+#ifndef DtCColumns
+#define DtCColumns                     XmCColumns
+#endif
+#ifndef DtNcurrentLineLabel
+#define DtNcurrentLineLabel            "currentLineLabel"
+#endif
+#ifndef DtCCurrentLineLabel
+#define DtCCurrentLineLabel            "CurrentLineLabel"
+#endif
+#ifndef DtNcursorPosition
+#define DtNcursorPosition              XmNcursorPosition
+#endif
+#ifndef DtCCursorPosition
+#define DtCCursorPosition              XmCCursorPosition
+#endif
+#ifndef DtNcursorPositionVisible
+#define DtNcursorPositionVisible       XmNcursorPositionVisible
+#endif
+#ifndef DtCCursorPositionVisible
+#define DtCCursorPositionVisible               XmCCursorPositionVisible
+#endif
+#ifndef DtNdialogTitle
+#define DtNdialogTitle                 "dialogTitle"
+#endif
+#ifndef DtCDialogTitle
+#define DtCDialogTitle                 XmCDialogTitle
+#endif
+#ifndef DtNeditable  
+#define DtNeditable                    XmNeditable
+#endif
+#ifndef DtCEditable 
+#define DtCEditable                    XmCEditable
+#endif
+#ifndef DtNfindButtonLabel
+#define DtNfindButtonLabel             "findButtonLabel"
+#endif
+#ifndef DtCFindButtonLabel
+#define DtCFindButtonLabel             "FindButtonLabel"
+#endif
+#ifndef DtNfindChangeDialogTitle
+#define DtNfindChangeDialogTitle               "findChangeDialogTitle"
+#endif
+#ifndef DtCFindChangeDialogTitle
+#define DtCFindChangeDialogTitle               "FindChangeDialogTitle"
+#endif
+#ifndef DtNfindFieldLabel
+#define DtNfindFieldLabel              "findFieldLabel"
+#endif
+#ifndef DtCFindFieldLabel
+#define DtCFindFieldLabel              "FindFieldLabel"
+#endif
+#ifndef DtNformatAllButtonLabel
+#define DtNformatAllButtonLabel        "formatAllButtonLabel"
+#endif
+#ifndef DtCFormatAllButtonLabel
+#define DtCFormatAllButtonLabel        "FormatAllButtonLabel"
+#endif
+#ifndef DtNformatParagraphButtonLabel
+#define DtNformatParagraphButtonLabel  "formatParagraphButtonLabel"
+#endif
+#ifndef DtCFormatParagraphButtonLabel
+#define DtCFormatParagraphButtonLabel  "FormatParagraphButtonLabel"
+#endif
+#ifndef DtNformatSettingsDialogTitle
+#define DtNformatSettingsDialogTitle   "formatSettingsDialogTitle"
+#endif
+#ifndef DtCFormatSettingsDialogTitle
+#define DtCFormatSettingsDialogTitle   "FormatSettingsDialogTitle"
+#endif
+#ifndef DtNinformationDialogTitle
+#define DtNinformationDialogTitle      "informationDialogTitle"
+#endif
+#ifndef DtCInformationDialogTitle
+#define DtCInformationDialogTitle      "InformationDialogTitle"
+#endif
+#ifndef DtNinsertLabel
+#define DtNinsertLabel                 "insertLabel"
+#endif
+#ifndef DtCInsertLabel 
+#define DtCInsertLabel                 "InsertLabel"
+#endif
+#ifndef DtNjustifyToggleLabel
+#define DtNjustifyToggleLabel          "justifyToggleLabel"
+#endif
+#ifndef DtCJustifyToggleLabel
+#define DtCJustifyToggleLabel          "JustifyToggleLabel"
+#endif
+#ifndef DtNlabelFontList  
+#define DtNlabelFontList               XmNlabelFontList
+#endif
+#ifndef DtNleftAlignToggleLabel
+#define DtNleftAlignToggleLabel        "leftAlignToggleLabel"
+#endif
+#ifndef DtCLeftAlignToggleLabel 
+#define DtCLeftAlignToggleLabel        "LeftAlignToggleLabel"
+#endif
+#ifndef DtNleftMarginFieldLabel
+#define DtNleftMarginFieldLabel        "leftMarginFieldLabel"
+#endif
+#ifndef DtCLeftMarginFieldLabel 
+#define DtCLeftMarginFieldLabel        "LeftMarginFieldLabel"
+#endif
+#ifndef DtNmaxLength  
+#define DtNmaxLength                   XmNmaxLength
+#endif
+#ifndef DtCMaxLength  
+#define DtCMaxLength                   XmCMaxLength
+#endif
+#ifndef DtNmisspelledListLabel
+#define DtNmisspelledListLabel         "misspelledListLabel"
+#endif
+#ifndef DtCMisspelledListLabel 
+#define DtCMisspelledListLabel         "MisspelledListLabel"
+#endif
+#ifndef DtNoverstrike 
+#define DtNoverstrike                  "overstrike"
+#endif
+#ifndef DtCOverstrike
+#define DtCOverstrike                          "Overstrike"
+#endif
+#ifndef DtNoverstrikeLabel
+#define DtNoverstrikeLabel             "overstrikeLabel"
+#endif
+#ifndef DtCOverstrikeLabel 
+#define DtCOverstrikeLabel             "OverstrikeLabel"
+#endif
+#ifndef DtNrightAlignToggleLabel
+#define DtNrightAlignToggleLabel               "rightAlignToggleLabel"
+#endif
+#ifndef DtCRightAlignToggleLabel 
+#define DtCRightAlignToggleLabel               "RightAlignToggleLabel"
+#endif
+#ifndef DtNrightMarginFieldLabel
+#define DtNrightMarginFieldLabel               "rightMarginFieldLabel"
+#endif
+#ifndef DtCRightMarginFieldLabel 
+#define DtCRightMarginFieldLabel               "RightMarginFieldLabel"
+#endif
+#ifndef DtNrows 
+#define DtNrows                        XmNrows
+#endif
+#ifndef DtCRows
+#define DtCRows                        XmCRows
+#endif
+#ifndef DtNscrollHorizontal 
+#define DtNscrollHorizontal            XmNscrollHorizontal
+#endif
+#ifndef DtCScroll
+#define DtCScroll                      XmCScroll
+#endif
+#ifndef DtNscrollLeftSide 
+#define DtNscrollLeftSide              XmNscrollLeftSide
+#endif
+#ifndef DtCScrollSide
+#define DtCScrollSide                          XmCScrollSide
+#endif
+#ifndef DtNscrollTopSide 
+#define DtNscrollTopSide               XmNscrollTopSide
+#endif
+#ifndef DtNscrollVertical 
+#define DtNscrollVertical              XmNscrollVertical
+#endif
+#ifndef DtNshowStatusLine
+#define DtNshowStatusLine              "showStatusLine"
+#endif
+#ifndef DtCShowStatusLine
+#define DtCShowStatusLine              "ShowStatusLine"
+#endif
+#ifndef DtNspellDialogTitle
+#define DtNspellDialogTitle            "spellDialogTitle"
+#endif
+#ifndef DtCSpellDialogTitle
+#define DtCSpellDialogTitle            "SpellDialogTitle"
+#endif
+#ifndef DtNspellFilter
+#define DtNspellFilter                 "spellFilter"
+#endif
+#ifndef DtCSpellFilter
+#define DtCSpellFilter                 "SpellFilter"
+#endif
+#ifndef DtNtextBackground 
+#define DtNtextBackground              "textBackground"
+#endif
+#ifndef DtCBackground 
+#define DtCBackground                  XmCBackground
+#endif
+#ifndef DtNtextDeselectCallback 
+#define DtNtextDeselectCallback        "textDeselectCallback"
+#endif
+#ifndef DtNtextFontList  
+#define DtNtextFontList                XmNtextFontList
+#endif
+#ifndef DtNtextForeground 
+#define DtNtextForeground              "textForeground"
+#endif
+#ifndef DtCForeground 
+#define DtCForeground                  XmCForeground
+#endif
+#ifndef DtNtextSelectCallback 
+#define DtNtextSelectCallback          "textSelectCallback"
+#endif
+#ifndef DtNtextTranslations 
+#define DtNtextTranslations            XmNtextTranslations
+#endif
+#ifndef DtCTranslations 
+#define DtCTranslations                XmCTranslations
+#endif
+#ifndef DtCCallback 
+#define DtCCallback                    XmCCallback
+#endif
+#ifndef DtNtopCharacter 
+#define DtNtopCharacter                        XmNtopCharacter
+#endif
+#ifndef DtCTopCharacter  
+#define DtCTopCharacter                        XmCTopCharacter
+#endif
+#ifndef DtNtotalLineCountLabel
+#define DtNtotalLineCountLabel         "totalLineCountLabel"
+#endif
+#ifndef DtCTotalLineCountLabel 
+#define DtCTotalLineCountLabel         "TotalLineCountLabel"
+#endif
+#ifndef DtNwordWrap 
+#define DtNwordWrap                    XmNwordWrap
+#endif
+#ifndef DtCWordWrap  
+#define DtCWordWrap                    XmCWordWrap
+#endif
+
+#ifndef DtEditorHelpCallbackStruct
+#define DtEditorHelpCallbackStruct XmAnyCallbackStruct 
+#endif
+#ifndef DtEditorSelectCallbackStruct 
+#define DtEditorSelectCallbackStruct   XmAnyCallbackStruct
+#endif
+#ifndef DtEditorDeselectCallbackStruct 
+#define DtEditorDeselectCallbackStruct XmAnyCallbackStruct
+#endif
+
+
+/* Used with DtEditorChange() */
+
+enum {
+       DtEDITOR_CURRENT_SELECTION,
+       DtEDITOR_NEXT_OCCURRENCE,
+       DtEDITOR_ALL_OCCURRENCES 
+};
+
+/* Used with DtEditorFormat() */
+
+enum {
+       DtEDITOR_FORMAT_ALL,
+       DtEDITOR_FORMAT_PARAGRAPH
+};
+
+enum {
+       DtEDITOR_ALIGN_CENTER,
+       DtEDITOR_ALIGN_JUSTIFY,
+       DtEDITOR_ALIGN_LEFT,
+       DtEDITOR_ALIGN_RIGHT
+};
+
+/* Used with DtNtextSelectCallback */
+enum {
+        DtEDITOR_TEXT_SELECT,
+        DtEDITOR_TEXT_DESELECT
+};
+
+/*
+ * Types
+ */
+
+typedef enum _DtEditorErrorCode{
+        DtEDITOR_NO_ERRORS,
+        DtEDITOR_INVALID_TYPE,
+        DtEDITOR_INVALID_RANGE,
+        DtEDITOR_NULL_ITEM,
+        DtEDITOR_ILLEGAL_SIZE,
+        DtEDITOR_SPELL_FILTER_FAILED,
+        DtEDITOR_NO_TMP_FILE,
+        DtEDITOR_INVALID_FILENAME,
+        DtEDITOR_NONEXISTENT_FILE,
+        DtEDITOR_UNREADABLE_FILE,
+        DtEDITOR_READ_ONLY_FILE,
+        DtEDITOR_NO_FILE_ACCESS,
+        DtEDITOR_DIRECTORY,
+        DtEDITOR_CHAR_SPECIAL_FILE,
+        DtEDITOR_BLOCK_MODE_FILE,
+        DtEDITOR_UNWRITABLE_FILE,
+        DtEDITOR_WRITABLE_FILE,
+        DtEDITOR_SAVE_FAILED,
+       DtEDITOR_INSUFFICIENT_MEMORY,
+       DtEDITOR_NULLS_REMOVED
+} DtEditorErrorCode;
+
+
+/* Used with DtEditorChange() to specify Find and Change To strings */
+
+typedef struct _DtEditorChangeValues {
+        char *find;
+        char *changeTo;
+} DtEditorChangeValues;
+
+/* Used with DtEditorFormat() to specify left margin, right margin *
+ * and justification styles.                                      */
+
+typedef struct _DtEditorFormatSettings {
+       int             leftMargin;
+       int             rightMargin;
+       unsigned int    alignment;
+} DtEditorFormatSettings;
+
+/* Types used to tag data to/from the editor widget */
+
+typedef enum _DtEditorDataFormat{
+        DtEDITOR_TEXT,
+        DtEDITOR_WCHAR,
+        DtEDITOR_DATA
+} DtEditorDataFormat;
+
+
+/* Types used to pass data to/from the editor widget */
+
+typedef struct _DtEditor_DataObj {
+        unsigned int    length;
+        void            *buf;
+} DtEditor_DataObj;
+
+typedef struct _DtEditorContentRec {
+        DtEditorDataFormat type;
+        union   {
+                 char     *string;
+                 wchar_t  *wchar;
+                DtEditor_DataObj       data;
+        } value;
+} DtEditorContentRec;
+
+
+/* Widget class and instance */
+
+typedef struct _DtEditorClassRec       *DtEditorClass;
+typedef struct _DtEditorRec            *DtEditorWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class */
+
+externalref    WidgetClass             dtEditorWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateEditor(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern DtEditorErrorCode DtEditorAppend(
+               Widget          widget,
+               DtEditorContentRec *data);
+
+extern DtEditorErrorCode DtEditorAppendFromFile(
+               Widget          widget,
+               char            *fileName);
+
+extern Boolean DtEditorChange(
+               Widget                  widget,
+               DtEditorChangeValues    *findChangeStrings,
+               unsigned int            instanceToChange);
+
+extern Boolean DtEditorCheckForUnsavedChanges(
+               Widget          widget);
+
+extern Boolean DtEditorClearSelection(
+               Widget          widget);
+
+extern Boolean DtEditorCopyToClipboard(
+               Widget          widget);
+
+extern Boolean DtEditorCutToClipboard(
+               Widget          widget);
+
+extern Boolean DtEditorDeleteSelection(
+               Widget          widget);
+
+extern Boolean DtEditorDeselect(
+               Widget          widget);
+
+extern void DtEditorDisableRedisplay(
+               Widget          widget);
+
+extern void DtEditorEnableRedisplay(
+               Widget          widget);
+
+extern Boolean DtEditorFind(
+               Widget          widget,
+               char *  find);
+
+extern DtEditorErrorCode DtEditorFormat(
+               Widget          widget,
+               DtEditorFormatSettings  *formatSettings,
+               unsigned int    amountToFormat); 
+
+extern DtEditorErrorCode DtEditorGetContents(
+               Widget          widget,
+               DtEditorContentRec *data,
+               Boolean         hardCarriageReturns,
+               Boolean         markContentsAsSaved);
+
+extern XmTextPosition DtEditorGetInsertionPosition(
+               Widget          widget);
+
+extern XmTextPosition DtEditorGetLastPosition(
+               Widget          widget);
+
+extern Widget DtEditorGetMessageTextFieldID(
+               Widget          widget);
+
+extern void DtEditorGetSizeHints(
+               Widget          widget,
+               XSizeHints      *pHints);
+
+extern void DtEditorGoToLine(
+               Widget          widget,
+               int     lineNumber);
+
+extern DtEditorErrorCode DtEditorInsert(
+               Widget          widget,
+               DtEditorContentRec *data);
+
+extern DtEditorErrorCode DtEditorInsertFromFile(
+               Widget          widget,
+               char            *fileName);
+
+extern void DtEditorInvokeFindChangeDialog(
+               Widget          widget);
+
+extern void DtEditorInvokeFormatDialog(
+               Widget          widget);
+
+extern DtEditorErrorCode DtEditorInvokeSpellDialog(
+               Widget          widget);
+
+extern Boolean DtEditorPasteFromClipboard(
+               Widget          widget);
+
+extern DtEditorErrorCode DtEditorReplace(
+               Widget                  widget,
+               XmTextPosition          startPos,
+               XmTextPosition          endPos,
+               DtEditorContentRec      *data);
+
+extern DtEditorErrorCode DtEditorReplaceFromFile(
+               Widget                  widget,
+               XmTextPosition          startPos,
+               XmTextPosition          endPos,
+               char                    *fileName);
+
+extern void DtEditorReset(
+               Widget          widget);
+
+extern DtEditorErrorCode DtEditorSaveContentsToFile(
+               Widget          widget,
+               char            *fileName,
+               Boolean         overwriteIfExists,
+               Boolean         hardCarriageReturns,
+               Boolean         markContentsAsSaved);
+
+extern Boolean DtEditorSelectAll(
+               Widget          widget);
+
+extern DtEditorErrorCode DtEditorSetContents(
+               Widget          widget,
+               DtEditorContentRec *data);
+
+extern DtEditorErrorCode DtEditorSetContentsFromFile(
+               Widget          widget,
+               char            *fileName);
+
+extern void DtEditorSetInsertionPosition(
+               Widget          widget,
+               XmTextPosition  position);
+
+extern void DtEditorTraverseToEditor(
+               Widget          widget);
+
+extern Boolean DtEditorUndoEdit(
+               Widget          widget);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Editor_h */
diff --git a/cde/include/Dt/EditorP.h b/cde/include/Dt/EditorP.h
new file mode 100644 (file)
index 0000000..c727df6
--- /dev/null
@@ -0,0 +1,710 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: EditorP.h /main/4 1996/06/19 11:28:20 cde-dec $ */
+/**********************************<+>*************************************
+***************************************************************************
+**
+**  File:        EditorP.h
+**
+**  Project:     DtEditor widget 
+**
+**  Description:
+**  -----------
+**  Private include file for the DtEditor widget, text editor class.
+**
+*******************************************************************
+*
+* (c) Copyright 1993, 1994 Hewlett-Packard Company
+* (c) Copyright 1993, 1994 International Business Machines Corp.
+* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+* (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
+*
+********************************************************************
+**
+**
+**************************************************************************
+**********************************<+>*************************************/
+#ifndef _DtEditorP_h
+#define _DtEditorP_h
+
+#include <Dt/Editor.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#include <X11/StringDefs.h>
+#include <X11/Intrinsic.h>
+#include <X11/Xatom.h>
+
+#include <Xm/Protocols.h>
+#include <Xm/XmP.h>
+#include <Xm/FormP.h>
+#include <Xm/TextP.h>
+
+#include "MacrosP.h"
+#include <Dt/Dts.h>
+
+#ifdef SENTINEL
+#include <sentinel.h>
+#endif  /* SENTINEL */
+
+
+/****************************************************************
+ *
+ *  Defines
+ *
+ ****************************************************************/
+
+#define READ_ACCESS     1
+#define WRITE_ACCESS    2
+
+#define REPLACE         0
+#define FIND            1
+#define SPELL           2
+
+#define UNKNOWN_ACTION          -1
+#define EXTEND_SELECTION        0
+#define ICON_FOCUSED            1
+
+#define NO_DELETION_IN_PROGRESS        -999 
+
+#ifndef DtUNSPECIFIED
+#define DtUNSPECIFIED          (~0)
+#endif
+
+
+#define CLOSE_BUTTON   DTWIDGET_GETMESSAGE( \
+                          MS_Common, MSG_CLOSE, _DtMsgCommon_0000)
+
+#define HELP_BUTTON    DTWIDGET_GETMESSAGE( \
+                          MS_Common, MSG_HELP, _DtMsgCommon_0001)
+
+#define FORMAT_SETTINGS        DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_FORMAT_SETTINGS, _DtMsgEditor_0000)
+
+#define RIGHT_MARGIN   DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_RIGHT_MARGIN, _DtMsgEditor_0001)
+
+#define LEFT_MARGIN    DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_LEFT_MARGIN, _DtMsgEditor_0002)
+
+#define LEFT_ALIGN     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_LEFT_ALIGN, _DtMsgEditor_0003)
+
+#define RIGHT_ALIGN    DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_RIGHT_ALIGN, _DtMsgEditor_0004)
+
+#define JUSTIFY                DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_JUSTIFY, _DtMsgEditor_0005)
+
+#define CENTER         DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_CENTER, _DtMsgEditor_0006)
+
+#define PARAGRAPH      DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_PARAGRAPH, _DtMsgEditor_0007)
+
+#define ALL            DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_ALL, _DtMsgEditor_0008)
+
+#define SPELL_TITLE    DTWIDGET_GETMESSAGE( \
+                         MS_Editor, EDITOR_SPELL_TITLE, _DtMsgEditor_0009)
+
+#define FIND_TITLE     DTWIDGET_GETMESSAGE( \
+                         MS_Editor, EDITOR_FIND_TITLE, _DtMsgEditor_0010)
+
+#define MISSPELLED     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_MISSPELLED, _DtMsgEditor_0011)
+
+#define FIND_LABEL     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_FIND_LABEL, _DtMsgEditor_0012)
+
+#define CHANGE_LABEL   DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_CHANGE_LABEL, _DtMsgEditor_0013)
+
+#define FIND_BUTTON    DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_FIND_BUTTON, _DtMsgEditor_0014)
+
+#define CHANGE_BUTTON  DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_CHANGE_BUTTON, _DtMsgEditor_0015)
+
+#define CHNG_ALL_BUTTON   DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_CHNG_ALL_BUTTON, _DtMsgEditor_0016)
+
+#define NO_FIND                DTWIDGET_GETMESSAGE( \
+                         MS_Editor, EDITOR_NO_FIND, _DtMsgEditor_0017)
+
+#define INFO_TITLE     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_INFO_TITLE, _DtMsgEditor_0018)
+
+#define LINE           DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_LINE, _DtMsgEditor_0019)
+
+#define TOTAL          DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_TOTAL, _DtMsgEditor_0020)
+
+#define OVR            DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_OVR, _DtMsgEditor_0021)
+
+#define INS            DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_INS, _DtMsgEditor_0022)
+
+#define BAD_FILTER      DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_FILTER_ERROR, _DtMsgEditor_0023)
+
+#define BAD_FILTER2     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_FILTER_ERROR2, _DtMsgEditor_0024)
+
+#define ERROR_TITLE     DTWIDGET_GETMESSAGE( \
+                          MS_Editor, EDITOR_ERROR_TITLE, _DtMsgEditor_0025)
+
+
+/****************************************************************
+ *
+ *  Structures
+ *
+ ****************************************************************/
+
+typedef struct _AdjRec {
+        int  bflag;     /* -b (blanks) option */
+        int  cflag;     /* -c (center) option */
+        int  jflag;     /* -j (justify) option  */
+        int  rflag;     /* -r (right justify) */
+        int  tabsize;   /* tab size in use  */
+        long margin;
+        FILE *infp;     /* file pointer for unformatted data */
+        FILE *outfp;    /* file pointer for formatted data */
+} AdjRec, *AdjRecPtr;
+
+
+/****************************************************************
+ *
+ *  Deleted text structure definition
+ *
+ ****************************************************************/
+typedef struct _DtEditorUndoRec {
+    char                *deletedText;
+    XmTextPosition      deletionStart;
+    XmTextPosition      insertStart;
+    int                 insertionLength;
+} DtEditorUndoRec;
+
+/****************************************************************
+ *
+ *  Data structures for miscellaneous edit information
+ *
+ ****************************************************************/
+typedef struct _DtEditorEditStuff
+{
+    int                        blinkRate,
+                       maxLength;
+    short              columns, rows;
+    XmTextPosition     cursorPos,
+                       topCharacter;
+    Boolean            autoShowCursorPos,
+                       cursorPosVisible,
+                       editable,
+                       overstrikeMode,
+                       scrollHorizontal,
+                       scrollLeft,
+                       scrollTop,
+                       scrollVertical,
+                       wordWrap;
+    Pixel              background,
+                       foreground;
+    int                        fontWidth,  /* widest font, used for formatting */
+                       fontHeight; /* font height; used for WM size hints */
+
+    DtEditorUndoRec    undo;      /* holds deleted text for undo    */
+
+    Boolean             loadingAllNewData,
+                        unreadChanges; /* Data changed since read by app?   */
+
+    SetSelectionProc    setSelection;
+} DtEditorEditStuff;
+
+/****************************************************************
+ *
+ *  Data structures for Search
+ *
+ ****************************************************************/
+typedef struct _DtEditorSearchWidgets {
+    Widget formDlg,
+           listLbl,
+           spellList,
+           findLbl,
+           findText,
+           replaceLbl,
+           replaceText,
+           separator,
+           findBtn,
+           replaceBtn,
+           replaceAllBtn,
+           closeBtn,
+           helpBtn;
+} DtEditorSearchWidgets;
+
+typedef struct _DtEditorSearchStuff {
+    DtEditorSearchWidgets widgets;
+    int search_dialog_mode;
+    char *search_string,       /* last string searched for */
+         *replace_string,      /* last replacement string */
+         *misspelled_string,   /* last misspelled word selected */
+        *spellFilter;
+    Boolean    misspelled_found;
+    Dimension  buttonHeight;
+    XmString spellTitle,
+             fndChngTitle,
+            changeAllButtonLabel,
+            changeButtonLabel,
+            changeFieldLabel,
+            findButtonLabel,
+            findFieldLabel,
+            misspelledListLabel;
+} DtEditorSearchStuff;
+
+/****************************************************************
+ *
+ *  Data structures for Format
+ *
+ ****************************************************************/
+typedef struct _DtEditorFormatWidgets {
+    Widget format_dialog,
+           right_label,
+           left_label,
+           rightMargField,           /* format right margin text field */
+           leftMargField,          /* format left margin text field */
+           radio_box,
+           left_just,               /* format type toggle button */
+           right_just,              /* format type toggle button */
+           both_just,               /* format type toggle button */
+           center,                  /* format type toggle button */
+           separator,
+           paragraph,
+           all,
+           close,
+           help;
+} DtEditorFormatWidgets;
+
+typedef struct _DtEditorFormatStuff {
+    DtEditorFormatWidgets widgets;
+    XmString   centerToggleLabel,
+               formatAllButtonLabel,
+               formatParaButtonLabel,
+               formatDialogTitle,
+               justifyToggleLabel,
+               leftAlignToggleLabel,
+               leftMarginFieldLabel,
+               rightAlignToggleLabel,
+               rightMarginFieldLabel;
+} DtEditorFormatStuff;
+
+/****************************************************************
+ *
+ *  Data structures for the Status Line
+ *
+ ****************************************************************/
+
+typedef struct _status {
+    Boolean    showStatusLine;
+    int                currentLine,
+               lastLine;
+    XmString   ovr,
+               ins,
+               currentLineLabel,
+               totalLineLabel;
+    Widget     statusArea,
+               lineLabel,
+               lineText,
+               totalLabel,
+               totalText,
+               overstrikeLabel,
+               messageText;
+} DtEditorStatusStuff;
+
+/****************************************************************
+ *
+ *  Data structures for holding warning dialogs
+ *
+ ****************************************************************/
+
+typedef struct _textlibwarning {
+    Widget     warningDialog;
+    XmString   infoDialogTitle;
+} DtEditorWarningStuff;
+
+
+/****************************************************************
+ * 
+ *  Class Part structure definition  
+ * 
+ ****************************************************************/
+typedef struct _DtEditorClassPart 
+{
+       int     ignore;
+} DtEditorClassPart;
+
+
+/****************************************************************
+ * 
+ *  Full Class Record declaration
+ * 
+ ****************************************************************/
+typedef struct _DtEditorClassRec 
+{
+        CoreClassPart                   core_class;
+        CompositeClassPart              composite_class;
+        ConstraintClassPart             constraint_class;
+        XmManagerClassPart              manager_class;
+       XmBulletinBoardClassPart        bulletin_board_class;
+        XmFormClassPart                        form_class;
+        DtEditorClassPart              editor_class;
+} DtEditorClassRec;
+
+externalref    DtEditorClassRec        dtEditorClassRec;
+
+
+/****************************************************************
+ * 
+ *  Resources added by the Editor widget
+ * 
+ ****************************************************************/
+typedef struct _DtEditorPart
+{
+    Display                     *display;
+    Widget                      topLevelShell,
+                                /*
+                                 * scrolled text widget
+                                 */
+                               text;
+    Dimension                  width;  /* the text widget width */
+
+                                /* All data for Edit functions */
+    DtEditorEditStuff          editStuff;
+                                /* All data for Search functions */
+    DtEditorSearchStuff                searchStuff;
+                                /* All data for Format functions */
+    DtEditorFormatStuff                formatStuff;
+                                /* All data for warning dialogs functions */
+    DtEditorWarningStuff       warningStuff;
+                                /* All data for the status line */
+    DtEditorStatusStuff                statusStuff;
+
+    XtAppContext                app_context;
+
+                                /*
+                                 * The editor widget's callbacks
+                                 */
+
+    Boolean                    textSelectCbCalled;
+    XtCallbackList              textSelect;
+    XtCallbackList              textDeselect;
+
+} DtEditorPart; 
+
+
+/****************************************************************
+ * 
+ *  Full Instance Record declaration
+ * 
+ ****************************************************************/
+typedef struct _DtEditorRec
+{
+        CorePart               core;
+        CompositePart          composite;
+        ConstraintPart         constraint;
+        XmManagerPart          manager;
+       XmBulletinBoardPart     bulletin_board;
+        XmFormPart             form; 
+       DtEditorPart            editor;
+} DtEditorRec; 
+
+
+/****************************************************************
+ *
+ * MACRO DEFINITIONS
+ *
+ ****************************************************************/
+
+/*
+ *  Class and Instance Macros
+ */
+
+/* 
+ * Note: DtEditor utilizes the bulletin board's dialog_title and 
+ * text_translations fields to hold its dialogTitle and textTranslations
+ * resources
+ */
+#define E_dialogTitle(m)       (m -> bulletin_board.dialog_title)
+#define E_textTranslations(m)  (m -> bulletin_board.text_translations)
+#define E_buttonFontList(m)    (m -> bulletin_board.button_font_list)
+#define E_labelFontList(m)     (m -> bulletin_board.label_font_list)
+#define E_textFontList(m)      (m -> bulletin_board.text_font_list)
+
+#define M_app_context(m)       (m -> editor.app_context)
+#define M_display(m)           (m -> editor.display)
+#define M_topLevelShell(m)     (m -> editor.topLevelShell)
+#define M_text(m)              (m -> editor.text)
+#define M_textWidth(m)         (m -> editor.width)
+
+/* callbacks */
+#define M_textSelect(m)                (m -> editor.textSelect)
+#define M_textDeselect(m)      (m -> editor.textDeselect)
+#define M_textSelectCbCalled(m)        (m -> editor.textSelectCbCalled)
+
+/* editStuff - scrolled text resources */
+#define M_autoShowCursorPos(m) (m->editor.editStuff.autoShowCursorPos)
+#define M_blinkRate(m)                 (m -> editor.editStuff.blinkRate)
+#define M_columns(m)           (m -> editor.editStuff.columns)
+#define M_cursorPos(m)         (m -> editor.editStuff.cursorPos)
+#define M_cursorPosVisible(m)  (m -> editor.editStuff.cursorPosVisible)
+#define M_editable(m)          (m -> editor.editStuff.editable)
+#define M_fontWidth(m)                 (m -> editor.editStuff.fontWidth)
+#define M_fontHeight(m)                (m -> editor.editStuff.fontHeight)
+#define M_maxLength(m)                 (m -> editor.editStuff.maxLength)
+#define M_overstrikeMode(m)    (m -> editor.editStuff.overstrikeMode)
+#define M_rows(m)              (m -> editor.editStuff.rows)
+#define M_scrollHorizontal(m)  (m -> editor.editStuff.scrollHorizontal)
+#define M_scrollLeftSide(m)    (m -> editor.editStuff.scrollLeft)
+#define M_scrollTopSide(m)     (m -> editor.editStuff.scrollTop)
+#define M_scrollVertical(m)    (m -> editor.editStuff.scrollVertical)
+#define M_topCharacter(m)      (m -> editor.editStuff.topCharacter)
+#define M_wordWrap(m)          (m -> editor.editStuff.wordWrap)
+#define M_textBackground(m)    (m -> editor.editStuff.background)
+#define M_textForeground(m)    (m -> editor.editStuff.foreground)
+
+/* editStuff - scrolled text related data */
+#define M_deletionStart(m)     (m -> editor.editStuff.undo.deletionStart)
+#define M_deletedText(m)       (m -> editor.editStuff.undo.deletedText)
+#define M_insertStart(m)       (m -> editor.editStuff.undo.insertStart)
+#define M_insertionLength(m)   (m -> editor.editStuff.undo.insertionLength)
+#define M_loadingAllNewData(m) (m -> editor.editStuff.loadingAllNewData)
+#define M_unreadChanges(m)     (m -> editor.editStuff.unreadChanges)
+#define M_setSelection(m)      (m -> editor.editStuff.setSelection)
+
+/* searchStuff */
+#define M_search_dialogMode(m)  (m ->editor.searchStuff.search_dialog_mode)
+#define M_spellTitle(m)        (m -> editor.searchStuff.spellTitle)
+#define M_fndChngTitle(m)      (m -> editor.searchStuff.fndChngTitle)
+#define E_changeAllButtonLabel(m) (m->editor.searchStuff.changeAllButtonLabel)
+#define E_changeButtonLabel(m) (m->editor.searchStuff.changeButtonLabel)
+#define E_changeFieldLabel(m)  (m->editor.searchStuff.changeFieldLabel)
+#define E_findButtonLabel(m)   (m->editor.searchStuff.findButtonLabel)
+#define E_findFieldLabel(m)    (m->editor.searchStuff.findFieldLabel)
+#define E_misspelledListLabel(m) (m->editor.searchStuff.misspelledListLabel)
+#define M_search_string(m)     (m -> editor.searchStuff.search_string)
+#define M_replace_string(m)    (m -> editor.searchStuff.replace_string)
+#define M_misspelled_string(m)         (m -> editor.searchStuff.misspelled_string)
+#define M_misspelled_found(m)  (m -> editor.searchStuff.misspelled_found)
+#define M_spellFilter(m)       (m -> editor.searchStuff.spellFilter)
+#define M_replaceText(m)       (m -> editor.searchStuff.widgets.replaceText)
+#define M_findText(m)          (m -> editor.searchStuff.widgets.findText)
+#define M_search_replaceLbl(m) (m -> editor.searchStuff.widgets.replaceLbl)
+#define M_search_buttonHeight(m) (m -> editor.searchStuff.buttonHeight)
+#define M_search_dialog(m)     (m -> editor.searchStuff.widgets.formDlg)
+#define M_search_closeBtn(m)   (m -> editor.searchStuff.widgets.closeBtn)
+#define M_search_helpBtn(m)    (m -> editor.searchStuff.widgets.helpBtn)
+#define M_search_findBtn(m)    (m -> editor.searchStuff.widgets.findBtn)
+#define M_search_replaceBtn(m)         (m -> editor.searchStuff.widgets.replaceBtn)
+#define M_search_replaceAllBtn(m)\
+                               (m -> editor.searchStuff.widgets.replaceAllBtn)
+#define M_search_spellList(m)  (m -> editor.searchStuff.widgets.spellList)
+#define M_search_listLbl(m)    (m -> editor.searchStuff.widgets.listLbl)
+#define M_search_findLbl(m)    (m -> editor.searchStuff.widgets.findLbl)
+#define M_search_separator(m)  (m -> editor.searchStuff.widgets.separator)
+
+/* formatStuff */
+#define E_format_centerToggleLabel(m) (m->editor.formatStuff.centerToggleLabel)
+#define E_format_formatAllButtonLabel(m)\
+                       (m->editor.formatStuff.formatAllButtonLabel)
+#define E_format_formatParagraphButtonLabel(m)\
+                       (m->editor.formatStuff.formatParaButtonLabel)
+#define E_format_dialogTitle(m)        (m->editor.formatStuff.formatDialogTitle)
+#define E_format_justifyToggleLabel(m)\
+                               (m->editor.formatStuff.justifyToggleLabel)
+#define E_format_leftAlignToggleLabel(m)\
+                               (m->editor.formatStuff.leftAlignToggleLabel)
+#define E_format_leftMarginFieldLabel(m)\
+                               (m->editor.formatStuff.leftMarginFieldLabel)
+#define E_format_rightAlignToggleLabel(m)\
+                               (m->editor.formatStuff.rightAlignToggleLabel)
+#define E_format_rightMarginFieldLabel(m)\
+                               (m->editor.formatStuff.rightMarginFieldLabel)
+#define M_format_all(m)                (m -> editor.formatStuff.widgets.all)
+#define M_format_bothJust(m)   (m -> editor.formatStuff.widgets.both_just)
+#define M_format_center(m)     (m -> editor.formatStuff.widgets.center)
+#define M_format_close(m)      (m -> editor.formatStuff.widgets.close)
+#define M_format_dialog(m)     (m -> editor.formatStuff.widgets.format_dialog)
+#define M_format_help(m)       (m -> editor.formatStuff.widgets.help)
+#define M_format_leftJust(m)   (m -> editor.formatStuff.widgets.left_just)
+#define M_format_leftLabel(m)  (m -> editor.formatStuff.widgets.left_label)
+#define M_format_leftMarginField(m)  (m -> editor.formatStuff.widgets.leftMargField)
+#define M_format_paragraph(m)  (m -> editor.formatStuff.widgets.paragraph)
+#define M_format_radioBox(m)   (m -> editor.formatStuff.widgets.radio_box)
+#define M_format_rightJust(m)  (m -> editor.formatStuff.widgets.right_just)
+#define M_format_rightLabel(m) (m -> editor.formatStuff.widgets.right_label)
+#define M_format_rightMarginField(m) (m -> editor.formatStuff.widgets.rightMargField)
+#define M_format_separator(m)  (m -> editor.formatStuff.widgets.separator)
+
+/* statusStuff */
+#define M_status_showStatusLine(m)  (m -> editor.statusStuff.showStatusLine) 
+#define M_status_currentLine(m)            (m -> editor.statusStuff.currentLine) 
+#define M_status_lastLine(m)       (m -> editor.statusStuff.lastLine) 
+#define M_status_overstrikeLabel(m) (m -> editor.statusStuff.ovr)
+#define M_status_insertLabel(m)            (m -> editor.statusStuff.ins)
+#define E_status_currentLineLabel(m) (m -> editor.statusStuff.currentLineLabel)
+#define E_status_totalLineCountLabel(m) (m->editor.statusStuff.totalLineLabel)
+#define M_status_statusArea(m)     (m -> editor.statusStuff.statusArea)
+#define M_status_lineLabel(m)      (m -> editor.statusStuff.lineLabel)
+#define M_status_lineText(m)       (m -> editor.statusStuff.lineText)
+#define M_status_totalLabel(m)     (m -> editor.statusStuff.totalLabel)
+#define M_status_totalText(m)      (m -> editor.statusStuff.totalText)
+#define M_status_overstrikeWidget(m) (m->editor.statusStuff.overstrikeLabel)
+#define M_status_messageText(m)    (m -> editor.statusStuff.messageText)
+
+/* warningStuff */
+#define M_gen_warning(m)       (m ->editor.warningStuff.warningDialog)
+#define E_infoDialogTitle(m)   (m ->editor.warningStuff.infoDialogTitle)
+
+/* 
+ * Misc macros
+ */ 
+#define M_editor(m)    ((DtEditorWidget) m ->core.parent -> core.parent) 
+
+
+/****************************************************************
+ *
+ *  Private library functions
+ *
+ ****************************************************************/
+
+/*** library-private functions in Editor.c ***/
+extern void    _DtEditorResetUndo(
+                       DtEditorWidget editor);
+extern void    _DtEditorUpdateLineDisplay(
+                       DtEditorWidget  editor,
+                       int             currentLine,
+                       Boolean         forceUpdate );
+extern int     _DtEditorGetLineIndex(
+                       XmTextWidget tw,
+                       XmTextPosition pos);
+extern void    _DtEditorWarning(
+                       DtEditorWidget pPriv,
+                       char *mess,
+                       unsigned char dialogType);
+extern DtEditorErrorCode       _DtEditorValidateFileAccess(
+                       char                    *fileName,
+                       int                     accessType );
+extern void    _DtEditorHelpSearchCB (
+                       Widget  w,
+                       caddr_t client_data ,
+                       caddr_t call_data );
+extern void    _DtEditorHelpSearchSpellCB (
+                       Widget  w,
+                       caddr_t client_data ,
+                       caddr_t call_data );
+extern void    _DtEditorHelpSearchFindCB (
+                       Widget  w,
+                       caddr_t client_data ,
+                       caddr_t call_data );
+extern void    _DtEditorHelpSearchChangeCB (
+                       Widget  w,
+                       caddr_t client_data ,
+                       caddr_t call_data );
+
+/*** library-private functions in EditAreaData.c ***/
+
+extern char *_DtEditorGetPointer(
+        char *pString,
+        int startChar);
+
+/*** library-private functions in EditorCalls.c ***/
+
+extern void _DtEditorModifyVerifyCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+
+/*** library-private functions in SearchCalls.c ***/
+
+extern void _DtEditorSearchMapCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern int _DtEditor_CountCharacters(
+        char *str,
+        int num_count_bytes);
+extern void _DtEditorDialogSearchCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorDialogReplaceCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorDialogReplaceAllCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorDialogFindCancelCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorMisspelledSelectCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorMisspelledDblClickCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorFindTextChangedCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorReplaceTextChangedCB(
+        Widget w,
+        caddr_t client_data,
+        caddr_t call_data );
+extern void _DtEditorSetFindSensitivity(
+        DtEditorWidget pPriv,
+       Boolean sensitivity);
+extern void _DtEditorSetReplaceSensitivity(
+        DtEditorWidget pPriv,
+       Boolean sensitivity);
+extern void _DtEditorSetReplaceAllSensitivity(
+        DtEditorWidget pPriv,
+       Boolean sensitivity);
+
+
+/*** library-private functions in SearchDlg.c ***/
+extern void _DtEditorSearch(
+       DtEditorWidget pPriv,
+       Boolean spell,
+       Boolean createonly );
+
+#endif /* _DtEditorP_h */
+
diff --git a/cde/include/Dt/EnvControlI.h b/cde/include/Dt/EnvControlI.h
new file mode 100644 (file)
index 0000000..34fca5e
--- /dev/null
@@ -0,0 +1,124 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/****************************<+>*************************************
+ **
+ **   File:     EnvControlI.h
+ **
+ **   RCS:     $TOG: EnvControlI.h /main/6 1998/07/30 12:14:02 mgreess $
+ **
+ **   Project:  DT Runtime Library  -- Private header
+ **
+ **   Description: Defines structures, and parameters used
+ **                for communication with the environment
+ **
+ **   (c) Copyright 1992-94 by Hewlett-Packard Company
+ **
+ ****************************<+>*************************************/
+/*******************************************************************
+       The environment variables
+*******************************************************************/
+#define BIN_PATH_ENVIRON "PATH"
+#define NLS_PATH_ENVIRON "NLSPATH"
+#define SYSTEM_APPL_PATH_ENVIRON "XFILESEARCHPATH"
+#define PM_PATH_ENVIRON        "XMICONSEARCHPATH"
+#define BM_PATH_ENVIRON        "XMICONBMSEARCHPATH"
+
+/*******************************************************************
+       The default DT path strings, architecture-dependent
+*******************************************************************/
+#define BIN_PATH_STRING         CDE_INSTALLATION_TOP "/bin"
+
+#define NLS_PATH_STRING  CDE_INSTALLATION_TOP "/lib/nls/msg/%L/%N.cat:" \
+                         CDE_INSTALLATION_TOP "/lib/nls/msg/C/%N.cat"
+
+#if defined(sun)
+#define X_BIN_PATH_STRING "/usr/openwin/bin"
+#else
+#define X_BIN_PATH_STRING "/usr/bin/X11"
+#endif
+
+/*
+ *  Some notes on the behavior and use of the XFILESEARCHPATH component, as
+ *  defined through the SYSTEM_APPL_PATH_STRING definition below:
+ *
+ *      Its precedence in the lookup of X resources is fairly low--it can
+ *     be overridden by XRM resources, by resources specified in
+ *      the user's $HOME/.Xdefaults-<hostname> file, and by resources
+ *      found using the $XUSERFILESEARCHPATH setting.
+ *
+ *      The order of pathnames in the XFILESEARCHPATH is such that the first
+ *      match satisfies the lookup, and the lookup stops there.
+ *
+ *      We place the pathname components in our XFILESEARCHPATH such that
+ *      the lookup goes, from first match attempt to last match attempt, as
+ *      follows:
+ *
+ *      - Custom resources: /etc/../$LANG
+ *      - Custom resources: /etc/../C
+ *      - Factory defaults: /opt/../$LANG --shipped with every localized system
+ *      - Factory defaults: /opt/../C     --shipped with every system
+ *
+ *      These resources are used ONLY for the DT components themselves
+ *      (not, for example, for MIT client resources).
+ *
+ *      The CDE vendors retain the right to alter, remove, append to, and
+ *      ignore any settings in the factory defaults locations.  The vendors
+ *      will not modify the settings in the "custom resources" locations.
+ *
+ */
+#define SYSTEM_APPL_PATH_STRING  CDE_CONFIGURATION_TOP "/app-defaults/%L/%N:" \
+                                 CDE_CONFIGURATION_TOP "/app-defaults/C/%N:" \
+                                 CDE_INSTALLATION_TOP "/app-defaults/%L/%N:" \
+                                 CDE_INSTALLATION_TOP "/app-defaults/C/%N"
+
+
+/**********************************************************************
+ * Data representation of the user's DT environment
+ **********************************************************************/
+
+typedef struct environStruct {
+       char * pmPath;
+       char * binPath;
+       char * nlsPath;
+       char * sysApplPath;
+       char * bmPath;
+} _environStruct;
+
+/**********************************************************************
+ * Miscellaneous
+ **********************************************************************/
+#define BV_BINPATH                      (1<<0)
+#define BV_SYSAPPLPATH                  (1<<1)
+#define BV_NLSPATH                      (1<<2)
+#define BV_PMPATH                       (1<<3)
+#define BV_BMPATH                       (1<<4)
+
+#define MAX_ENV_STRING                 (2*BUFSIZ)
+
+/****************************        eof       **********************/
diff --git a/cde/include/Dt/EnvControlP.h b/cde/include/Dt/EnvControlP.h
new file mode 100644 (file)
index 0000000..3b1f372
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/****************************<+>*************************************
+ **
+ **   File:     EnvControlP.h
+ **
+ **   RCS:     $TOG: EnvControlP.h /main/6 1998/07/30 12:13:45 mgreess $
+ **   Project:  DT Runtime Library
+ **
+ **   Description: Defines structures, and parameters used
+ **                for communication with the environment
+ **
+ **   (c) Copyright 1990 by Hewlett-Packard Company
+ **
+ ****************************<+>*************************************/
+
+/********    Public Function Declarations    ********/
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern int _DtEnvControl(
+                        int mode) ;
+extern int _DtWsmSetBackdropSearchPath(
+                        Screen *screen,
+                        char   *backdropDir,
+                        Boolean useMultiColorIcons) ;
+/********    End Public Function Declarations    ********/
+
+/**********************************************************************
+ * Command parameters to the function, which double as result codes.
+ * If the invocation is successful, the same is returned; 
+ * else DT_ENV_NO_OP is returned.
+
+DT_ENV_SET
+       Sets the DT environment.
+
+DT_ENV_RESTORE_PRE_DT
+       Restores the pre-DT application environment
+
+DT_ENV_RESTORE_POST_DT
+       Reinstalls the DT environment after a restoring pre-DT
+       environment
+
+DT_ENV_NO_OP
+       Does nothing
+
+DT_ENV_SET_BIN
+       Sets the DT environment PLUS sets the PATH= variable to
+       where the DT files live.
+
+ **********************************************************************/
+#define DT_ENV_SET                     0
+#define DT_ENV_RESTORE_PRE_DT          1
+#define DT_ENV_RESTORE_POST_DT 2
+#define DT_ENV_NO_OP                   3
+#define DT_ENV_SET_BIN                 4
+
+#ifdef __cplusplus
+}
+#endif
+/****************************        eof       **********************/
diff --git a/cde/include/Dt/FileM.h b/cde/include/Dt/FileM.h
new file mode 100644 (file)
index 0000000..aed4a60
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: FileM.h /main/3 1995/10/26 15:21:35 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        FileM.h
+ **
+ **   Project:     DT
+ **
+ **   Description: Defines for the tool class and messages for the
+ **               File Manager.
+ **
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _FileM_h
+#define _FileM_h
+
+#define FILE_MANAGER_TOOL_CLASS                "FILEMGR"
+
+#define FILE_MANAGER_CLASS_NAME                "Dtfile"
+
+
+#define FILE_MANAGER_RUN_SESSION_MSG   "RUN_SESSION"
+#define FILE_MANAGER_SHOW_HOME_MSG     "SHOW_HOME_FOLDER"
+#define FILE_MANAGER_SHOW_DIRECTORY_MSG        "SHOW_FOLDER"
+#define FILE_MANAGER_SHOW_TOOLS_MSG    "SHOW_TOOLS"
+
+#define SHOW_TRASH_MSG         "SHOW_TRASH"
+#define REMOVE_TRASH_MSG       "REMOVE_TRASH"
+#define EMPTY_TRASH_MSG                "EMPTY_TRASH"
+
+#endif /*_FileM_h*/
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/FileUtil.h b/cde/include/Dt/FileUtil.h
new file mode 100644 (file)
index 0000000..5e0bb6a
--- /dev/null
@@ -0,0 +1,169 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         FileUtil.h $XConsortium: FileUtil.h /main/4 1995/10/26 15:21:50 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _FileUtil_h
+#define _FileUtil_h
+
+extern int _DtCreateDirs( char *path,
+                         int mode) ;
+
+/******************
+ *
+ * Function Name:  _DtCreateDirs
+ *
+ * Description:
+ *
+ *     This function is passed a directory path to create and the mode
+ *     for the directory.  It will create any of the parent directories 
+ *     on the path that do not already exist.
+ *
+ *     This function may fail if any of the directories on the path already
+ *     exist and are not writable.  If some component of the path already
+ *     exists and is not a directory, a failure will be returned.  
+ *
+ *     If some component of the path exists as a directory but does not have 
+ *     the specified mode, this will NOT cause a failure to be returned.
+ *     This implies that if this function is called to create a writeable
+ *     directory, it is possible for the function to return successfully
+ *     but the directory may not actually be writable.
+ *
+ * Synopsis:
+ *
+ *     status = _DtCreateDirs (path, mode);
+ *
+ *     int status;             Returns 0 on success and -1 on failure.
+ *     char *path;             The directory path to create.
+ *     int mode;               The file mode for setting any directories
+ *                             that are created.
+ *
+ ******************/
+
+
+extern int _DtIsOpenableDir( char *path) ;
+
+/******************
+ *
+ * Function Name:  _DtIsOpenableDir
+ *
+ * Description:
+ *
+ *      This function takes a path as an argument and determines whether
+ *     the path is a directory that can be opened.  This function returns
+ *     "1" if the path is an openable directory and "0" if it is not.
+ *
+ *     The path can be in the Softbench "context" form of "host:/path/dir".
+ *
+ * Synopsis:
+ *
+ *     status = _DtIsOpenableDir (cpath)
+ *
+ *     int status;             Returns 1 for openable directories, 
+ *                             0 otherwise.
+ *     char *cpath;            The directory name to test.
+ *
+ ******************/
+
+
+extern int 
+_DtIsOpenableDirContext(
+        char *path,
+        char **ret_path ) ;
+
+/******************
+ *
+ * Function Name:  _DtIsOpenableDirContext
+ *
+ * Description:
+ *
+ *      This function takes a path as an argument and determines whether
+ *     the path is a directory that can be opened.  This function returns
+ *     "1" if the path is an openable directory and "0" if it is not.
+ *      In addition, if the calling function passes in another pointer,
+ *      we will return the internal representation for the path.
+ *
+ *     The path can be in the Softbench "context" form of "host:/path/dir".
+ *
+ * Synopsis:
+ *
+ *     status = _DtIsOpenableDirContext (cpath, ret_ptr)
+ *
+ *     int status;             Returns 1 for openable directories, 
+ *                             0 otherwise.
+ *     char *cpath;            The directory name to test.
+ *      char ** ret_ptr;        Where to place internal format.
+ *
+ ******************/
+
+
+extern char * _DtReaddirLstat( 
+                        char *dir_name,
+                        DIR *dirp,
+                        struct stat *st_buf) ;
+
+/******************
+ *
+ * Function Name:  _DtReaddirLstat
+ *
+ * Description:
+ *
+ *     This function reads the next entry out of a directory that has
+ *     been opened with opendir and returns lstat information on it.  
+ *     For more information on reading a directory, see directory(3C).
+ *     For more information on lstat information, see stat(2).
+ *
+ *     This function returns a pointer to the full pathname of the directory
+ *     entry.  This memory is owned by this function and must not be 
+ *     freed.  If the caller wants to keep the filename, it must make its
+ *     own copy.  When the end of the directory is encountered, NULL is
+ *     returned.
+ *
+ * Synopsis:
+ *
+ *     dir_entry = _DtReaddirLstat (dir_name, dirp, st_buf);
+ *
+ *     char *dir_entry;        The name of the current entry within the
+ *                             directory.
+ *
+ *     char *dir_name;         The full path name of the directory.
+ *
+ *     DIR *dirp;              A pointer to the directory [obtained from
+ *                             opendir(3C)].
+ *
+ *     struct stat *st_buf;    The lstat(2) information.
+ *
+ ******************/
+
+#endif /* _FileUtil_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/GetDispRes.h b/cde/include/Dt/GetDispRes.h
new file mode 100644 (file)
index 0000000..aab8b4e
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/****************************<+>*************************************
+ **
+ **   File:     EnvControl.h
+ **
+ **   RCS:     $XConsortium: GetDispRes.h /main/4 1995/10/26 15:22:11 rswiston $
+ **   Project:  HP DT Runtime Library
+ **
+ **   Description: Defines structures, and parameters used
+ **                for communication with the environment
+ **
+ **   (c) Copyright 1992 by Hewlett-Packard Company
+ **
+ ****************************<+>*************************************/
+
+/********    Function Declarations    ********/
+
+int _DtGetDisplayResolution(
+                        Display *disp,
+                        int screen) ;
+
+/********    End Function Declarations    ********/
+
+/**********************************************************************
+ * Resolution threshold values (width of screen in pixels) 
+ **********************************************************************/
+
+#define   _DT_HIGH_RES_MIN            1176
+#define          _DT_MED_RES_MIN               851
+#define          _DT_LOW_RES_MIN               512
+
+/**********************************************************************
+ * Resolution types of a given screen
+ **********************************************************************/
+#define   NO_RES_DISPLAY        0
+#define   LOW_RES_DISPLAY       1
+#define   VGA_RES_DISPLAY       2
+#define   MED_RES_DISPLAY       3
+#define   HIGH_RES_DISPLAY      4
+#define   ALL_RES_DISPLAY       5
+
+/****************************        eof       **********************/
diff --git a/cde/include/Dt/HashP.h b/cde/include/Dt/HashP.h
new file mode 100644 (file)
index 0000000..0c4b606
--- /dev/null
@@ -0,0 +1,181 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HashP.h /main/4 1995/10/26 15:22:50 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+#ifdef REV_INFO
+#ifndef lint
+static char SCCSID[] = "OSF/Motif: @(#)_HashP.h        4.16 91/09/12";
+#endif /* lint */
+#endif /* REV_INFO */
+/******************************************************************************
+*******************************************************************************
+*
+*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
+*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
+*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
+*  ALL RIGHTS RESERVED
+*  
+*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
+*  AND COPIED 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 OPEN SOFTWARE
+*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
+*  
+*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
+*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
+*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
+*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
+*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+*  FITNESS FOR A PARTICULAR PURPOSE.
+*  
+*  Notice:  Notwithstanding any other lease or license that may pertain to,
+*  or accompany the delivery of, this computer software, the rights of the
+*  Government regarding its use, reproduction and disclosure are as set
+*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
+*  Rights clause.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
+*  rights reserved under the Copyright laws of the United States.
+*  
+*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
+*  Government is subject to the restrictions as set forth in subparagraph
+*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
+*  at DFARS 52.227-7013.
+*  
+*  Open Software Foundation, Inc.
+*  11 Cambridge Center
+*  Cambridge, MA   02142
+*  (617)621-8700
+*  
+*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
+*  "restricted rights."  Use, duplication or disclosure is subject to the
+*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
+*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
+*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
+*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
+*  then the "Alternate III" clause applies.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
+*  ALL RIGHTS RESERVED 
+*  
+*  
+* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
+* OSF is a trademark of Open Software Foundation, Inc.
+* OSF/Motif is a trademark of Open Software Foundation, Inc.
+* Motif is a trademark of Open Software Foundation, Inc.
+* DEC is a registered trademark of Digital Equipment Corporation
+* DIGITAL is a registered trademark of Digital Equipment Corporation
+* X Window System is a trademark of the Massachusetts Institute of Technology
+*
+*******************************************************************************
+******************************************************************************/
+#ifndef __HashP_h
+#define __HashP_h
+
+#include <X11/Intrinsic.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * the structure is used as a common header part for different
+ * users of the hash functions in order to locate the key
+ */
+typedef XtPointer DtHashKey;
+
+typedef DtHashKey (*DtGetHashKeyFunc)();
+typedef Boolean (*DtHashEnumerateFunc)();
+typedef void (*DtReleaseKeyProc)();
+
+typedef struct _DtHashEntryPartRec {
+    unsigned int       type:16;
+    unsigned int       flags:16;
+}DtHashEntryPartRec, *DtHashEntryPart;
+
+typedef struct _DtHashEntryRec {
+    DtHashEntryPartRec hash;
+}DtHashEntryRec, *DtHashEntry;
+
+typedef struct _DtHashEntryTypePartRec {
+    unsigned int               entrySize;
+    DtGetHashKeyFunc           getKeyFunc;
+    XtPointer                  getKeyClientData;
+    DtReleaseKeyProc           releaseKeyProc;
+}DtHashEntryTypePartRec, *DtHashEntryTypePart;
+
+typedef struct _DtHashEntryTypeRec {
+    DtHashEntryTypePartRec     hash;
+}DtHashEntryTypeRec, *DtHashEntryType;
+
+typedef struct _DtHashTableRec *DtHashTable;
+
+/********    Private Function Declarations for Hash.c    ********/
+
+extern void _DtRegisterHashEntry( 
+                        DtHashTable tab,
+                        DtHashKey key,
+                        DtHashEntry entry) ;
+extern void _DtUnregisterHashEntry( 
+                        DtHashTable tab,
+                        DtHashEntry entry) ;
+extern DtHashEntry _DtEnumerateHashTable( 
+                        DtHashTable tab,
+                        DtHashEnumerateFunc enumFunc,
+                        XtPointer clientData) ;
+extern DtHashEntry _DtKeyToHashEntry( 
+                        DtHashTable tab,
+                        DtHashKey key) ;
+extern DtHashTable _DtAllocHashTable( 
+                        DtHashEntryType *hashEntryTypes,
+                        Cardinal numHashEntryTypes,
+#if NeedWidePrototypes
+                        int keyIsString) ;
+#else
+                        Boolean keyIsString) ;
+#endif /* NeedWidePrototypes */
+extern void _DtFreeHashTable( 
+                        DtHashTable hashTable) ;
+
+/********    End Private Function Declarations    ********/
+
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* HashP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
+
+
diff --git a/cde/include/Dt/Help.h b/cde/include/Dt/Help.h
new file mode 100644 (file)
index 0000000..29921a1
--- /dev/null
@@ -0,0 +1,266 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Help.h /main/3 1995/10/26 12:23:24 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Help_h
+#define _Dt_Help_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Common DtHelp Resources  */
+
+#ifndef DtNcloseCallback
+#define DtNcloseCallback          "closeCallback"
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns                 XmNcolumns
+#endif
+#ifndef DtNexecutionPolicy
+#define DtNexecutionPolicy         "executionPolicy"
+#endif
+#ifndef DtNhelpFile
+#define DtNhelpFile                "helpFile"
+#endif
+#ifndef DtNhelpOnHelpVolume
+#define DtNhelpOnHelpVolume            "helpOnHelpVolume"
+#endif
+#ifndef DtNhelpPrint
+#define DtNhelpPrint               "helpPrint"
+#endif
+#ifndef DtNhelpType
+#define DtNhelpType                "helpType"
+#endif
+#ifndef DtNhelpVolume
+#define DtNhelpVolume              "helpVolume"
+#endif
+#ifndef DtNhyperLinkCallback
+#define DtNhyperLinkCallback       "hyperLinkCallback"
+#endif
+#ifndef DtNlocationId
+#define DtNlocationId              "locationId"
+#endif
+#ifndef DtNmanPage
+#define DtNmanPage                 "manPage"
+#endif
+#ifndef DtNminimizeButtons
+#define DtNminimizeButtons         XmNminimizeButtons
+#endif
+#ifndef DtNpaperSize
+#define DtNpaperSize               "paperSize"
+#endif
+#ifndef DtNprinter
+#define DtNprinter                 "printer"
+#endif
+#ifndef DtNrows
+#define DtNrows                    XmNrows
+#endif
+#ifndef DtNscrollBarPolicy
+#define DtNscrollBarPolicy         "scrollBarPolicy"
+#endif
+#ifndef DtNstringData
+#define DtNstringData              "stringData"
+#endif
+
+#ifndef DtCCallback
+#define DtCCallback                XmCCallback
+#endif
+
+#ifndef DtCCloseCallback
+#define DtCCloseCallback          "CloseCallback"
+#endif
+#ifndef DtCColumns
+#define DtCColumns                 XmCColumns
+#endif
+#ifndef DtCExecutionPolicy
+#define DtCExecutionPolicy         "ExecutionPolicy"
+#endif
+#ifndef DtCHelpFile
+#define DtCHelpFile                "HelpFile"
+#endif
+#ifndef DtCHelpOnHelpVolume
+#define DtCHelpOnHelpVolume       "HelpOnHelpVolume"
+#endif
+#ifndef DtCHelpPrint
+#define DtCHelpPrint               "HelpPrint"
+#endif
+#ifndef DtCHelpType
+#define DtCHelpType                "HelpType"
+#endif
+#ifndef DtCHelpVolume
+#define DtCHelpVolume              "HelpVolume"
+#endif
+#ifndef DtCHyperLinkCallback
+#define DtCHyperLinkCallback       "HyperLinkCallback"
+#endif
+#ifndef DtCLocationId
+#define DtCLocationId              "LocationId"
+#endif
+#ifndef DtCManPage
+#define DtCManPage                 "ManPage"
+#endif
+#ifndef DtCMinimizeButtons
+#define DtCMinimizeButtons         XmCMinimizeButtons
+#endif
+#ifndef DtCPaperSize
+#define DtCPaperSize               "PaperSize"
+#endif
+#ifndef DtCPrinter
+#define DtCPrinter                 "Printer"
+#endif
+#ifndef DtCRows
+#define DtCRows                    XmCRows
+#endif
+#ifndef DtCScrollBarPolicy
+#define DtCScrollBarPolicy         "ScrollBarPolicy"
+#endif
+#ifndef DtCStringData
+#define DtCStringData              "StringData"
+#endif
+
+/* Representation types */
+
+#ifndef DtRDtExecutionPolicy
+#define DtRDtExecutionPolicy         "DtExecutionPolicy"
+#endif
+#ifndef DtRDtHelpType
+#define DtRDtHelpType                "DtHelpType"
+#endif
+#ifndef DtRDtPaperSize
+#define DtRDtPaperSize               "DtPaperSize"
+#endif
+#ifndef DtRDtScrollBarPolicy
+#define DtRDtScrollBarPolicy         "DtScrollBarPolicy"
+#endif
+
+/* DtHelpDialogCallbackStruct windowHint field */
+
+#define DtHELP_POPUP_WINDOW       1
+#define DtHELP_CURRENT_WINDOW     2
+#define DtHELP_NEW_WINDOW         3
+
+/* DtHelpDialogCallbackStruct hyperType field */
+
+#define DtHELP_LINK_JUMP_NEW          1
+#define DtHELP_LINK_TOPIC             1
+#define DtHELP_LINK_MAN_PAGE          4
+#define DtHELP_LINK_APP_DEFINE        5
+#define DtHELP_LINK_TEXT_FILE         8
+
+/* DtHelpDialogCallbackStruct reason field */
+
+#define DtCR_HELP_LINK_ACTIVATE      1
+#define DtCR_HELP_CLOSE              2
+#define DtCR_HELP_HELP               3
+
+/* Possible values for DtNscrollBarPolicy resource */
+
+#define  DtHELP_NO_SCROLLBARS        0
+#define  DtHELP_STATIC_SCROLLBARS    1
+#define  DtHELP_AS_NEEDED_SCROLLBARS 2
+
+/* Possible values for DtNexecutionPolicy resource */
+#define  DtHELP_EXECUTE_NONE                   0
+#define  DtHELP_EXECUTE_QUERY_ALL              1
+#define  DtHELP_EXECUTE_QUERY_UNALIASED                2
+#define  DtHELP_EXECUTE_ALL                    3
+
+/* Possible values for DtNhelpType resource */
+
+#define DtHELP_TYPE_TOPIC           0
+#define DtHELP_TYPE_STRING          1
+#define DtHELP_TYPE_MAN_PAGE        2
+#define DtHELP_TYPE_FILE            3
+#define DtHELP_TYPE_DYNAMIC_STRING  4
+
+/* Possible values for DtNpaperSize resource */
+
+#define DtHELP_PAPERSIZE_LETTER     0
+#define DtHELP_PAPERSIZE_LEGAL      1
+#define DtHELP_PAPERSIZE_EXECUTIVE  2
+#define DtHELP_PAPERSIZE_A4         3
+#define DtHELP_PAPERSIZE_B5         4
+
+/* DtHelpQuickGetChildGetChild() function */
+
+#define DtHELP_QUICK_CLOSE_BUTTON    1
+#define DtHELP_QUICK_PRINT_BUTTON    2
+#define DtHELP_QUICK_HELP_BUTTON     3
+#define DtHELP_QUICK_SEPARATOR       4
+#define DtHELP_QUICK_MORE_BUTTON     5
+#define DtHELP_QUICK_BACK_BUTTON     6
+
+/* Return values for DtHelpReturnSelectedWidgetId() */
+
+#define DtHELP_SELECT_ERROR   -1 
+#define DtHELP_SELECT_VALID    0
+#define DtHELP_SELECT_ABORT    1
+#define DtHELP_SELECT_INVALID  2 
+
+
+/*
+ * Types
+ */
+
+typedef struct {
+       int     reason;
+       XEvent  *event;
+       char    *locationId;
+       char    *helpVolume;
+       char    *specification;
+       int     hyperType;
+       int     windowHint;
+} DtHelpDialogCallbackStruct;
+
+
+/*
+ * Functions
+ */
+
+extern void DtHelpSetCatalogName(
+               char            *catFile);
+
+extern int DtHelpReturnSelectedWidgetId(
+               Widget          parent,
+               Cursor          cursor,
+               Widget          *widget);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Help_h */
diff --git a/cde/include/Dt/HelpDialog.h b/cde/include/Dt/HelpDialog.h
new file mode 100644 (file)
index 0000000..0c810a8
--- /dev/null
@@ -0,0 +1,117 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpDialog.h /main/3 1995/10/26 12:24:05 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_HelpDialog_h
+#define _Dt_HelpDialog_h
+
+#include <Dt/Help.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* General Help Dialog-specific Resources */
+
+#ifndef DtNmarginWidth
+#define DtNmarginWidth                 XmNmarginWidth
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                        XmNmarginHeight
+#endif
+#ifndef DtNshowNewWindowButton
+#define DtNshowNewWindowButton         "showNewWindowButton"
+#endif
+#ifndef DtNtopicTitle
+#define DtNtopicTitle                  "topicTitle"
+#endif
+#ifndef DtNvisiblePathCount
+#define DtNvisiblePathCount            "visiblePathCount"
+#endif
+
+#ifndef DtCCallback
+#define DtCCallback                     XmCCallback
+#endif
+
+#ifndef DtCMarginWidth
+#define DtCMarginWidth                 XmCMarginWidth
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                        XmCMarginHeight
+#endif
+#ifndef DtCShowNewWindowButton
+#define DtCShowNewWindowButton         "ShowNewWindowButton"
+#endif
+#ifndef DtCTopicTitle
+#define DtCTopicTitle                  "TopicTitle"
+#endif
+#ifndef DtCVisiblePathCount
+#define DtCVisiblePathCount            "VisiblePathCount"
+#endif
+
+
+/*
+ * Types
+ */
+
+/* Widget class and instance */
+
+typedef struct _DtHelpDialogWidgetClassRec * DtHelpDialogWidgetClass;
+typedef struct _DtHelpDialogWidgetRec      * DtHelpDialogWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtHelpDialogWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateHelpDialog(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_HelpDialog_h */
diff --git a/cde/include/Dt/HelpDialogP.h b/cde/include/Dt/HelpDialogP.h
new file mode 100644 (file)
index 0000000..47d6613
--- /dev/null
@@ -0,0 +1,392 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpDialogP.h /main/6 1996/04/13 11:55:10 ageorge $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   HelpDialogP.h
+ **
+ **  Project:  Cache Creek (Rivers) Project:
+ **
+ **  Description:  Privite Header file for HelpDialog.c 
+ **  -----------
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *******************************************************************
+ *************************************<+>*************************************/
+
+#ifndef _DtHelpDialogP_h
+#define _DtHelpDialogP_h
+
+#include <Xm/BulletinBP.h>
+
+#include <Dt/HelpDialog.h>
+
+#include "FileListUtilsI.h"
+#include "GlobSearchP.h"
+
+#define XmDIALOG_SUFFIX            "_popup"
+#define XmDIALOG_SUFFIX_SIZE       6
+
+
+/* Defines for use in allocation geometry matrix. */
+#define TB_MAX_WIDGETS_VERT     7
+#define TB_MAX_NUM_WIDGETS      12
+
+
+/****************************************************************
+ *
+ *  Topic List Info Structure Definition (History & Jump Back Lists)
+ *
+ ****************************************************************/
+typedef struct _DtTopicListStruct {
+    char                         *locationId;
+    XmString                      topicTitleLbl;
+    char                         *helpVolume;
+    int                          topicType;
+    int                          pathLevel;
+    int                          scrollPosition;
+    struct _DtTopicListStruct   *pNext;
+    struct _DtTopicListStruct   *pPrevious;
+} DtTopicListStruct;
+
+
+/****************************************************************
+ *
+ *  Volume List Info: History Dialog only.
+ *
+ ****************************************************************/
+typedef struct _DtHistoryListStruct {
+    XmString                    itemTitle;
+    int                         topicType;
+    int                         totalNodes;
+    struct _DtHistoryListStruct *pNext;
+    struct _DtTopicListStruct   *pTopicHead;
+    struct _DtTopicListStruct   *pTopicTale;
+} DtHistoryListStruct;
+
+
+/****************************************************************
+ *
+ *  Help Callback return structure
+ *
+ ****************************************************************/
+typedef        struct  _DtHelpListStruct {
+    char *                     locationId;
+    Widget                     widget;
+    struct _DtHelpCommonHelpStuff * help;
+    struct _DtHelpListStruct * pNext;
+    struct _DtHelpListStruct * pPrevious;
+} DtHelpListStruct;
+
+
+
+/****************************************************************
+ *
+ *  Kewword Search entry structure.
+ *
+ ****************************************************************/
+
+typedef struct {
+   char * keyWord;
+   Boolean    matchesFindPattern;
+} KeyEntry;
+
+
+
+
+/* Class Part Structure Definition */
+
+typedef struct
+{
+       XtPointer               extension;      /* Pointer to extension record */
+} DtHelpDialogWidgetClassPart;
+
+
+
+
+/* Full class record declaration */
+
+typedef struct _DtHelpDialogWidgetClassRec
+{
+       CoreClassPart                   core_class;
+       CompositeClassPart              composite_class;
+       ConstraintClassPart             constraint_class;
+       XmManagerClassPart              manager_class;
+       XmBulletinBoardClassPart        bulletin_board_class;
+       DtHelpDialogWidgetClassPart     selection_box_class;
+} DtHelpDialogWidgetClassRec;
+
+externalref DtHelpDialogWidgetClassRec dtHelpDialogWidgetClassRec;
+
+
+typedef struct _DtHelpDisplayWidgetStuff
+{
+        short           textColumns;           /* Columns Resource Value resource */
+        short           textRows;              /* Rows Resource Value resource */
+        char *          locationId;            /* Current Topic String resource */
+        char *          helpVolume;            /* Current Project File resource */
+        char *          manPage;               /* man page resource */
+        char *          stringData;            /* string data resource */
+        char *          helpFile;              /* help file resource */
+        unsigned char  scrollBarPolicy;        /* Scrollbar policy resource */       
+        unsigned char  executionPolicy;        /* Link/script exec policy resource */        
+        XtCallbackList hyperLinkCallback;      /* Hypertext Callback resource */
+        _DtHelpVolumeHdl volumeHandle;         /* handle of current volume */
+        unsigned char  helpType;               /* Current displayed file type resource */
+        char *          topicTitleStr;         /* title of topic */
+       int             count;                  /* Nonexistent topic title count */        
+       XmString        topicTitleLbl;          /* XmString title of topic */
+        Boolean         firstTimePopupFlag;     /* False, untel we map the widget */
+
+
+} _DtHelpDisplayWidgetStuff;
+
+typedef struct _DtHelpCommonHelpStuff
+{
+        XtPointer       pDisplayArea;          /* Display widget handle */
+
+       /* for help on help */
+        char *          helpOnHelpVolume;      /* help on help volume resource */
+        DtHelpListStruct * pHelpListHead;      /* Help List Pointer */
+        Widget          onHelpDialog;          /* help on help dialog */
+
+        char *          sysVolumeSearchPath;   /* system search path */
+        char *          userVolumeSearchPath;  /* user search path */
+
+        char *          currentHelpFile;       /* Current help file */
+        int             topicOffset;           /* Offset into help file */
+        
+        char *          topLevelId;            /* Toplevel topic volume displayed */
+        int             topLevelTopicOffset;
+} _DtHelpCommonHelpStuff;
+
+typedef struct _DtHelpGeneralHelpStuff
+{
+        char *          parentId;              /* used for "Up" menu */
+
+        Boolean         volumeFlag;            /* set when to process new vol */
+
+        Widget          definitionBox;
+        XtCallbackList closeCallback;          /* Window Close Callback */
+
+        Dimension       marginHeight;
+        Dimension       marginWidth;
+} _DtHelpGeneralHelpStuff;
+
+
+typedef struct _DtHelpBrowserStuff 
+{
+        int             visiblePathCount;      /* Number of path lines shown */
+        XtPointer      pTocArea;               /* Toc area handle */
+
+        Widget          volumeLabel;
+        Widget          panedWindow;  
+       Widget          pathArea;
+
+        Boolean         showTopLevelBtn;
+        Widget          btnBoxBackBtn;
+        Widget          btnBoxHistoryBtn;
+        Widget          btnBoxIndexBtn;
+        Widget          btnBoxTopLevelBtn;
+} _DtHelpBrowserStuff;
+
+typedef struct _DtHelpMenuStuff
+{
+        Boolean         showDupBtn;
+
+        /* Help Dialog Widgets */
+        Widget          menuBar;
+
+       Widget          topBtn;
+       Widget          keyBtn;
+        Widget          backBtn;
+       Widget          historyBtn;
+        Widget          printBtn;
+        Widget          closeBtn;
+        Widget          helpBtn;
+        Widget          newWindowBtn;
+        Widget          copyBtn;
+        Widget          popupMenu;
+        Widget          popupBackBtn;
+        Widget          popupTopBtn;
+} _DtHelpMenuStuff;
+
+typedef struct _DtHelpHistoryStuff
+{
+        /* Path Area Variables */
+        DtTopicListStruct * pPathListHead;
+        DtTopicListStruct * pPathListTale;
+        int                 totalPathNodes;
+
+        /* History Dialog Widgets & variables */
+               Widget              volumeList;         /* Scrolled volume list */   
+        Widget              topicList;         /* Scrolled topic  list */   
+        Widget              historyWidget;     /* Top Level History Shell */
+        Widget              topicsListLabel;
+        DtHistoryListStruct * pHistoryListHead;        /* Head pointer to history */
+} _DtHelpHistoryStuff;
+
+typedef struct _DtHelpBacktrackStuff
+{
+        /* Jump List variables */
+        DtTopicListStruct  * pJumpListHead;
+        DtTopicListStruct  * pJumpListTale; 
+        int                  totalJumpNodes;
+        int                  scrollPosition;
+} _DtHelpBacktrackStuff;
+
+typedef struct _DtHelpGlobSearchStuff
+{
+        /* search dialog resource (undocumented) */
+        char *            hitPrefixFont;       /* hit prefix mono-space font resource */
+
+        /* host application locale settings */
+        char *            iconv3Codeset;       /* iconv3-ok codeset of app */
+        _DtHelpCeIconvContext iconv3Context;     /* from vol to app locale */
+
+        /* File Selection Dialog font list */
+        XmFontList        volTitlesFontList;   /*font list req'd by font titles*/
+
+        /* Search Dialog Widgets & variables */
+        Widget            srchForm;
+        Widget            actionBtn;
+        Widget            curVolRadBtn;
+        Widget            allVolRadBtn;
+        Widget            selVolRadBtn;
+        Widget            selectBtn;
+        Widget            fullIndexRadBtn;
+        Widget            containsRadBtn;
+        Widget            wordField;
+        Widget            statusLabel;
+        Widget            resultList;
+        Widget            gotoBtn;
+        Widget            closeBtn;
+        Widget            helpBtn;
+        Widget            selectionDlg;                /* selectionBox (child of dlg) */
+        char *            curVolPath;          /* cur vol shown in btn label */
+        char *            rawWordStr;          /* word as taken from srchWord */
+        char *            normWordStr;         /* normalized word str */
+        char *            localeWordStr;       /* after iconv() of NormWordStr */
+        wchar_t           wordFieldFirstChar;
+        short             wordFieldLen;
+        short             statusLineUsage;
+        _DtHelpGlobSrchSources srchSources;    /* current state of radio but */
+        _DtHelpFileEntry  curSrchVol;          /* vol currently being searched */
+        unsigned int      hitsFontLoaded:1;    /* is font loaded? */
+        unsigned int      volScanDone:1;       /* is the volume list complete? */
+        unsigned int      fullIndex:1;         /* state of search */
+        unsigned int      readyToStart:1;      /* state of search */
+        unsigned int      hitsFound:1;         /* state of search */
+        unsigned int      searchInProgress:1;  /* state of search */
+        unsigned int      curVolRadBtnSens:1;  /* state of curVol sens */
+        short             volLeftCnt;          /* updated during search */
+        _DtHelpFileList   volListHead;         /* info on search topics found */
+        XtWorkProcId      workProcId;          /* ID of search proc */
+} _DtHelpGlobSearchStuff;
+
+typedef struct _DtHelpPrintStuff
+{
+        /* printing resources */
+        char *          helpPrint;             /* help print command resource */
+        unsigned char  paperSize;              /* paper size resource */        
+        char *          printer;               /* printer destination resource */
+        char *          printVolume;           /* volume to print resource */
+
+        /* Print Dialog widgets & variables */
+        Widget          printForm;             /* Form inside top level print shell */
+        Widget          subject;               /* label for subject matter to print */
+        Widget          printerField;          /* text field for printer */
+        Widget          copiesField;           /* text field for copies */
+        Widget          letterBtn;             /* menu item for letter paper */
+        Widget          legalBtn;              /* menu item for legal paper */
+        Widget          execBtn;               /* menu item for executive paper */
+        Widget          a4Btn;                 /* menu item for A4 paper */
+        Widget          b5Btn;                 /* menu item for B5 paper */
+        Widget          paperSizeOptMenu;      /* menu item for A4 paper */
+        Widget          topicsFrame;           /* frame holding print topic selection */
+        Widget          curTopicBtn;           /* radio btn for cur topic */
+        Widget          subTopicsBtn;          /* radio btn for cur & sub topics */
+        Widget          tocBtn;                        /* radio btn for table of contents */
+        Widget          allTopicsBtn;          /* radio btn for all topics */
+        Widget          paperTopicsSeparator;  /* hidden sep btwn paper size & topic sel */
+        Widget          topicsBtnsSeparator;   /* sep between topic sel & btns */
+} _DtHelpPrintStuff;
+
+
+/* fields for the GeneralHelp widget record */
+typedef struct
+{
+      _DtHelpDisplayWidgetStuff        display;
+      _DtHelpCommonHelpStuff   help;
+      _DtHelpGeneralHelpStuff  ghelp;
+      _DtHelpBrowserStuff      browser;
+      _DtHelpMenuStuff         menu;
+      _DtHelpHistoryStuff      history;
+      _DtHelpBacktrackStuff    backtr;
+      _DtHelpGlobSearchStuff   srch;
+      _DtHelpPrintStuff                print;
+} DtHelpDialogWidgetPart;
+
+
+/****************************************************************
+ *
+ * Full instance record declaration
+ *
+ ****************************************************************/
+
+typedef struct _DtHelpDialogWidgetRec
+{
+       CorePart                core;
+       CompositePart           composite;
+       ConstraintPart          constraint;
+       XmManagerPart           manager;
+       XmBulletinBoardPart     bulletin_board;
+       DtHelpDialogWidgetPart  help_dialog;
+} DtHelpDialogWidgetRec;
+
+
+
+/********    Private Function Declarations    ********/
+
+extern XmGeoMatrix _DtHelpDialogWidgetGeoMatrixCreate( 
+                        Widget wid,
+                        Widget instigator,
+                        XtWidgetGeometry *desired) ;
+extern Boolean _DtHelpDialogWidgetNoGeoRequest( 
+                        XmGeoMatrix geoSpec) ;
+
+/********    End Private Function Declarations    ********/
+
+
+
+#endif /* _XmTemplateBP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
diff --git a/cde/include/Dt/HelpP.h b/cde/include/Dt/HelpP.h
new file mode 100644 (file)
index 0000000..a9dd4d8
--- /dev/null
@@ -0,0 +1,118 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpP.h /main/3 1995/10/26 12:24:50 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        HelpP.h
+ **
+ **   Project:     CacheCreeek (Rivers) Project.
+ **
+ **   
+ **   Description: Private header file for Dts.
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef        _DtHelpP_h
+#define        _DtHelpP_h
+
+/* Privite Argument Resource Definitions for Help Widget */
+
+#define DtNshowTopLevelButton   "showTopLevelButton"
+#ifndef XmNshowTopLevelButton
+#define XmNshowTopLevelButton  DtNshowTopLevelButton
+#endif
+#define DtCShowTopLevelButton   "ShowTopLevelButton"
+#ifndef XmCShowTopLevelButton
+#define XmCShowTopLevelButton  DtCShowTopLevelButton
+#endif
+
+#define DtNsrchHitPrefixFont    "srchHitPrefixFont"
+#ifndef XmNsrchHitPrefixFont
+#define XmNsrchHitPrefixFont   DtNsrchHitPrefixFont
+#endif
+#define DtCSrchHitPrefixFont   "SrchHitPrefixFont"
+#ifndef XmCSrchHitPrefixFont
+#define XmCSrchHitPrefixFont   DtCSrchHitPrefixFont
+#endif
+
+
+#ifndef CDE_CONFIGURATION_TOP
+#define CDE_CONFIGURATION_TOP "/etc/dt"
+#endif
+
+#ifndef CDE_INSTALLATION_TOP
+#define CDE_INSTALLATION_TOP "/usr/dt"
+#endif
+
+
+#define DtDEFAULT_SYSTEM_PATH \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H:" \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.sdl:" \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.hv:" \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H:" \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.sdl:" \
+                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.hv:" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H:" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.sdl:" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.hv" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H:" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H.sdl:" \
+                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H.hv:"
+
+
+#define DtDEFAULT_USER_PATH_FORMAT \
+               "%s/.dt/help/%s/%%H:" \
+               "%s/.dt/help/%s/%%H.sdl:" \
+               "%s/.dt/help/%s/%%H.hv:" \
+               "%s/.dt/help/%%H:" \
+               "%s/.dt/help/%%H.sdl:" \
+               "%s/.dt/help/%%H.hv"
+
+/* this path expects a sprintf usage as follows:
+    sprintf(buf,DtDEFAULT_USER_PATH_FORMAT,
+                       homedir, dtusersessionname,
+                       homedir, dtusersessionname,
+                       homedir, dtusersessionname,
+                       homedir, homedir, homedir);
+*/
+
+/* #define DtVOLUMES_TYPE "volumes" */
+
+#endif /* _DtHelpP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
+
+
+
+
diff --git a/cde/include/Dt/HelpQuickD.h b/cde/include/Dt/HelpQuickD.h
new file mode 100644 (file)
index 0000000..e29a4b1
--- /dev/null
@@ -0,0 +1,124 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpQuickD.h /main/3 1995/10/26 12:25:25 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_HelpQuickD_h
+#define _Dt_HelpQuickD_h
+
+#include <Dt/Help.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Quick help dialog-specific Resources */
+
+#ifndef DtNbackLabelString
+#define DtNbackLabelString             "backLabelString"
+#endif
+#ifndef DtNhelpLabelString
+#define DtNhelpLabelString             XmNhelpLabelString
+#endif
+#ifndef DtNmoreLabelString
+#define DtNmoreLabelString             "moreLabelString"
+#endif
+#ifndef DtNcloseLabelString
+#define DtNcloseLabelString            "closeLabelString"
+#endif
+#ifndef DtNprintLabelString
+#define DtNprintLabelString            "printLabelString"
+#endif
+
+#ifndef DtCCallback
+#define DtCCallback                     XmCCallback
+#endif
+
+#ifndef DtCBackLabelString
+#define DtCBackLabelString             "BackLabelString"
+#endif
+#ifndef DtCHelpLabelString
+#define DtCHelpLabelString             XmCHelpLabelString
+#endif
+#ifndef DtCMoreLabelString
+#define DtCMoreLabelString             "MoreLabelString"
+#endif
+#ifndef DtCCloseLabelString
+#define DtCCloseLabelString            "CloseLabelString"
+#endif
+#ifndef DtCPrintLabelString
+#define DtCPrintLabelString            "PrintLabelString"
+#endif
+
+
+/*
+ * Types
+ */
+
+/* Widget class and instance */
+
+typedef struct _DtHelpQuickDialogWidgetClassRec * DtHelpQuickDialogWidgetClass;
+typedef struct _DtHelpQuickDialogWidgetRec   * DtHelpQuickDialogWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtHelpQuickDialogWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+/* tmp backwards compat */
+#define DtCreateQuickHelpDialog  DtCreateHelpQuickDialog
+
+extern Widget DtCreateHelpQuickDialog(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern Widget DtHelpQuickDialogGetChild(
+               Widget          widget,
+               unsigned char   child);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_HelpQuickD_h */
diff --git a/cde/include/Dt/HelpQuickDP.h b/cde/include/Dt/HelpQuickDP.h
new file mode 100644 (file)
index 0000000..0ab2cb3
--- /dev/null
@@ -0,0 +1,177 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   HelpQuickDP.h
+ **
+ **  Project:  CDE 1.0 Common Desktop Environment
+ **
+ **  Description:  Privite Header file for HelpQuickD.c 
+ **  -----------
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *******************************************************************
+ *************************************<+>*************************************/
+
+#ifndef _DtHelpQuickDP_h
+#define _DtHelpQuickDP_h
+
+#include <Xm/BulletinBP.h>
+
+#include <Dt/HelpQuickD.h>
+
+#include "HelpQuickDI.h"
+#include "HelpDialogP.h"
+
+
+#define DtNO_JUMP_UPDATE          1
+#define DtJUMP_UPDATE             2
+
+
+#define XmDIALOG_SUFFIX            "_popup"
+#define XmDIALOG_SUFFIX_SIZE       6
+
+
+/* Defines for use in allocation geometry matrix. */
+#define TB_MAX_WIDGETS_VERT     7
+#define TB_MAX_NUM_WIDGETS      12
+
+
+
+/* Class Part Structure Definition */
+
+typedef struct
+{
+       XtPointer               extension;      /* Pointer to extension record */
+} DtHelpQuickDialogWidgetClassPart;
+
+
+
+
+/* Full class record declaration */
+
+typedef struct _DtHelpQuickDialogWidgetClassRec
+{
+       CoreClassPart                      core_class;
+       CompositeClassPart                 composite_class;
+       ConstraintClassPart                constraint_class;
+       XmManagerClassPart                 manager_class;
+       XmBulletinBoardClassPart           bulletin_board_class;
+       DtHelpQuickDialogWidgetClassPart  selection_box_class;
+} DtHelpQuickDialogWidgetClassRec;
+
+externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec;
+
+
+/* fields for the Quick Help widget record */
+
+/* reuse the CommonHelpStuff structure from HelpDialogP.h */
+/* reuse the BacktrackStuff structure from HelpDialogP.h */
+/* reuse the PrintStuff structure from HelpDialogP.h */
+
+typedef struct _DtHelpQuickHelpStuff
+{
+        int             pad;
+        Widget          definitionBox;
+        Boolean         minimize_buttons;
+
+        /* Help Dialog Widgets */
+
+        Widget          displayAreaFrame;
+       Widget          separator;
+         
+        Widget         closeButton;            /*  close button  */
+       XmString        closeLabelString;
+        XtCallbackList closeCallback;
+
+        Widget          moreButton;             /* Application button */
+        XmString        moreLabelString;
+
+        Widget          backButton;             /* Backtrack button */
+        XmString        backLabelString;
+     
+       Widget          printButton;            /*  print  button */
+       XmString        printLabelString;
+
+       Widget          helpButton;             /*  help button  */
+       XmString        helpLabelString;
+} _DtHelpQuickHelpStuff;
+
+typedef struct
+{
+       _DtHelpDisplayWidgetStuff       display;
+       _DtHelpCommonHelpStuff  help;
+       _DtHelpQuickHelpStuff   qhelp;
+       _DtHelpBacktrackStuff   backtr;
+       _DtHelpPrintStuff               print;
+} _DtHelpQuickDialogWidgetPart;
+
+
+/****************************************************************
+ *
+ * Full instance record declaration
+ *
+ ****************************************************************/
+
+typedef struct _DtHelpQuickDialogWidgetRec
+{
+       CorePart                        core;
+       CompositePart                   composite;
+       ConstraintPart                  constraint;
+       XmManagerPart                   manager;
+       XmBulletinBoardPart             bulletin_board;
+       _DtHelpQuickDialogWidgetPart    qhelp_dialog;
+} DtHelpQuickDialogWidgetRec;
+
+
+
+/********    Private Function Declarations    ********/
+extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate( 
+                        Widget wid,
+                        Widget instigator,
+                        XtWidgetGeometry *desired) ;
+extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest( 
+                        XmGeoMatrix geoSpec) ;
+extern void _DtHelpQuickDialogGetCloseLabelString(
+                        Widget wid,
+                        int resource_offset,
+                        XtArgVal *value );
+extern void _DtHelpQuickDialogGetHelpLabelString(
+                        Widget wid,
+                        int resource_offset,
+                        XtArgVal *value );
+
+/********    End Private Function Declarations    ********/
+
+
+
+#endif /* _DtHelpDialogP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/HourGlass.h b/cde/include/Dt/HourGlass.h
new file mode 100644 (file)
index 0000000..c9ee713
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HourGlass.h /main/4 1995/10/26 15:23:08 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:       HourGlass.h
+ **
+ **   Project:     DT
+ **
+ **   Description: Public include file for HourGlass Library.
+ **
+ **
+ **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _hourglass_h
+#define _hourglass_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* _DtGetHourGlassCursor -
+ *
+ *   Builds and returns the appropriate HourGlass cursor.
+ */
+
+extern Cursor _DtGetHourGlassCursor( 
+                        Display *dpy) ;
+
+/* _DtTurnOnHourGlass -
+ *
+ *   Gets and displays an hourglass cursor in the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtTurnOnHourGlass( 
+                        Widget w) ;
+ /*  Widget widget;
+  *
+  * widget is the toplevel shell of the window you want
+  * the hourglass cursor to appear in.
+  */
+
+
+/* _DtTurnOffHourGlass -
+ *
+ *   Removes the hourglass cursor from the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtTurnOffHourGlass( 
+                        Widget w) ;
+  
+ /* Widget widget;
+  *
+  *  widget is the toplevel shell of the window you want
+  *  to remove hourglass cursor from.
+  */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _hourglass_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Icon.h b/cde/include/Dt/Icon.h
new file mode 100644 (file)
index 0000000..0b36064
--- /dev/null
@@ -0,0 +1,140 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           Icon.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Public include file for DtIcon gadget class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtIcon_h
+#define _DtIcon_h
+
+#include <Xm/Xm.h>
+#include <Dt/DtStrDefs.h>
+
+#ifndef DtIsIcon
+#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass)
+#endif /* DtIsIcon */
+
+typedef struct _DtIconClassRec * DtIconGadgetClass;
+typedef struct _DtIconRec      * DtIconGadget;
+typedef struct _DtIconCacheObjRec   * DtIconCacheObject;
+
+
+extern Widget _DtCreateIcon( 
+                        Widget parent,
+                        String name,
+                        ArgList arglist,
+                        Cardinal argcount) ;
+extern Boolean _DtIconGetState( 
+                        Widget w) ;
+extern void _DtIconSetState( 
+                        Widget w,
+                        Boolean state,
+                        Boolean notify) ;
+extern Drawable _DtIconDraw( 
+                        Widget widget,
+                        Drawable drawable,
+                        Position x,
+                        Position y,
+                        Boolean fill) ;
+extern Widget _DtDuplicateIcon( 
+                        Widget parent,
+                        Widget widget,
+                        XmString string,
+                        String pixmap,
+                        XtPointer user_data,
+                        Boolean underline) ;
+extern Boolean _DtIconSelectInTitle( 
+                        Widget widget,
+                        Position pt_x,
+                        Position pt_y) ;
+extern XRectangle * _DtIconGetTextExtent( 
+                        Widget widget) ;
+extern void _DtIconGetIconRects( 
+                        DtIconGadget g,
+                        unsigned char *flags,
+                        XRectangle *rect1,
+                        XRectangle *rect2) ;
+
+
+
+extern WidgetClass dtIconGadgetClass;
+
+
+#define XmCR_SELECT    XmCR_SINGLE_SELECT
+#define XmCR_DROP      50
+#define XmCR_POPUP     51
+#define XmCR_HIGHLIGHT 52
+#define XmCR_UNHIGHLIGHT       53
+#define XmCR_SHADOW    54
+
+typedef struct
+{
+       int             reason;
+       XEvent *        event;
+       Boolean         set;
+} DtIconCallbackStruct;
+
+
+#define XmPIXMAP_TOP   0
+#define XmPIXMAP_BOTTOM        1
+#define XmPIXMAP_LEFT  2
+#define XmPIXMAP_RIGHT 3
+#define XmPIXMAP_MIDDLE        4
+
+#define XmSTRING_BOTTOM        0
+#define XmSTRING_TOP   1
+#define XmSTRING_RIGHT 2
+#define XmSTRING_LEFT  3
+
+#define XmICON_LABEL   0
+#define XmICON_BUTTON  1
+#define XmICON_TOGGLE  2
+#define XmICON_DRAG    3
+
+#define XmFILL_NONE    0
+#define XmFILL_PARENT  1
+#define XmFILL_SELF    2
+#define XmFILL_TRANSPARENT     3
+
+#define XmPIXMAP_RECT  0x01
+#define XmLABEL_RECT   0x02
+
+#define DtRECTANGLE     0
+#define DtNON_RECTANGLE 1
+
+
+#endif /* _XmIcon_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/IconFile.h b/cde/include/Dt/IconFile.h
new file mode 100644 (file)
index 0000000..3afae96
--- /dev/null
@@ -0,0 +1,140 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: IconFile.h /main/4 1995/10/26 15:23:17 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+#ifdef REV_INFO
+#ifndef lint
+static char SCCSID[] = "OSF/Motif: @(#)_IconFile.h     4.16 91/09/12";
+#endif /* lint */
+#endif /* REV_INFO */
+/******************************************************************************
+*******************************************************************************
+*
+*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
+*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
+*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
+*  ALL RIGHTS RESERVED
+*  
+*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
+*  AND COPIED 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 OPEN SOFTWARE
+*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
+*  
+*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
+*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
+*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
+*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
+*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+*  FITNESS FOR A PARTICULAR PURPOSE.
+*  
+*  Notice:  Notwithstanding any other lease or license that may pertain to,
+*  or accompany the delivery of, this computer software, the rights of the
+*  Government regarding its use, reproduction and disclosure are as set
+*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
+*  Rights clause.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
+*  rights reserved under the Copyright laws of the United States.
+*  
+*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
+*  Government is subject to the restrictions as set forth in subparagraph
+*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
+*  at DFARS 52.227-7013.
+*  
+*  Open Software Foundation, Inc.
+*  11 Cambridge Center
+*  Cambridge, MA   02142
+*  (617)621-8700
+*  
+*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
+*  "restricted rights."  Use, duplication or disclosure is subject to the
+*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
+*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
+*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
+*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
+*  then the "Alternate III" clause applies.
+*  
+*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
+*  ALL RIGHTS RESERVED 
+*  
+*  
+* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
+* OSF is a trademark of Open Software Foundation, Inc.
+* OSF/Motif is a trademark of Open Software Foundation, Inc.
+* Motif is a trademark of Open Software Foundation, Inc.
+* DEC is a registered trademark of Digital Equipment Corporation
+* DIGITAL is a registered trademark of Digital Equipment Corporation
+* X Window System is a trademark of the Massachusetts Institute of Technology
+*
+*******************************************************************************
+******************************************************************************/
+#ifndef __DtIconFile_h
+#define __DtIconFile_h
+
+#include <Xm/Xm.h>
+#include <Xm/IconFile.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * values for icon magnitude
+ */
+#define DtUNSPECIFIED  0
+#define DtLARGE        1
+#define DtMEDIUM       2
+#define DtSMALL        3
+#define DtTINY 4
+
+
+/********    Public Function Declarations for XmWrap.c    ********/
+
+extern String _DtGetIconFileName( 
+                        Screen *screen,
+                        String imageInstanceName,
+                        String imageClassName,
+                        String hostPrefix,
+                        unsigned int size) ;
+
+/********    End Public Function Declarations    ********/
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* __DtIconFile_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
+
+
diff --git a/cde/include/Dt/IconP.h b/cde/include/Dt/IconP.h
new file mode 100644 (file)
index 0000000..dff4e56
--- /dev/null
@@ -0,0 +1,350 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: IconP.h /main/7 1996/03/29 11:33:23 drk $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           IconP.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Private include file for DtIcon gadget class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtIconP_h
+#define _DtIconP_h
+
+#include <Xm/ExtObjectP.h>
+#include <Xm/XmP.h>
+#include <Xm/GadgetP.h>
+#include <Dt/Icon.h>
+
+
+/*-------------------------------------------------------------
+**     Cache Class Structure
+*/
+
+/*     Cache Class Part
+*/
+typedef struct _DtIconCacheObjClassPart
+{
+    int foo;
+} DtIconCacheObjClassPart;
+
+/*     Cache Full Class Record
+*/
+typedef struct _DtIconCacheObjClassRec     /* label cache class record */
+{
+    ObjectClassPart                     object_class;
+    XmExtClassPart                      ext_class;
+    DtIconCacheObjClassPart            icon_class_cache;
+} DtIconCacheObjClassRec;
+
+/*     Cache Actual Class
+*/
+externalref DtIconCacheObjClassRec dtIconCacheObjClassRec;
+
+\f
+/*-------------------------------------------------------------
+**     Cache Instance Structure
+*/
+
+/*     Cache Instance Part
+*/
+typedef struct _DtIconCacheObjPart
+{
+       Dimension       margin_width;
+       Dimension       margin_height;
+       Dimension       string_height;
+       Dimension       spacing;
+       Pixel           foreground;
+       Pixel           background;
+       Pixel           arm_color;
+       Boolean         fill_on_arm;
+       Boolean         recompute_size;
+       Boolean         draw_shadow;
+       unsigned char   pixmap_position;
+       unsigned char   string_position;
+       unsigned char   alignment;
+       unsigned char   behavior;
+       unsigned char   fill_mode;
+} DtIconCacheObjPart;
+
+typedef struct _DtIconCacheObjRec
+{
+    ObjectPart               object;
+    XmExtPart                ext;
+    DtIconCacheObjPart      icon_cache;
+} DtIconCacheObjRec;
+
+
+typedef void (*GetPositionProc)(
+       DtIconGadget,
+       Position,
+       Position,
+       Dimension,
+       Dimension,
+       Position *,
+       Position *,
+       Position *,
+       Position *
+);
+typedef void (*GetSizeProc)(
+       DtIconGadget,
+       Dimension *,
+       Dimension *
+);
+typedef void (*DrawProc)(
+       DtIconGadget,
+       Drawable,
+       Position,
+       Position,
+       Dimension,
+       Dimension,
+       Dimension,
+       Dimension,
+       unsigned char,
+       unsigned char
+);
+typedef void (*CallCallbackProc)(
+       DtIconGadget,
+       XtCallbackList,
+       int,
+       XEvent *
+);
+typedef void (*UpdateGCsProc)(
+       DtIconGadget
+);
+/*-------------------------------------------------------------
+**     Class Structure
+*/
+
+/*     Class Part
+*/
+typedef struct _DtIconClassPart
+{
+       GetSizeProc             get_size;
+       GetPositionProc         get_positions;
+       DrawProc                draw;
+       CallCallbackProc        call_callback;
+       UpdateGCsProc           update_gcs;
+       Boolean                 optimize_redraw;
+       XmCacheClassPartPtr     cache_part;
+       caddr_t                 extension;
+} DtIconClassPart;
+
+/*     Full Class Record
+*/
+typedef struct _DtIconClassRec
+{
+       RectObjClassPart        rect_class;
+       XmGadgetClassPart       gadget_class;
+       DtIconClassPart icon_class;
+} DtIconClassRec;
+
+/*     Actual Class
+*/
+externalref DtIconClassRec dtIconClassRec;
+
+\f
+/*-------------------------------------------------------------
+**     Instance Structure
+*/
+
+/*     Instance Part
+*/
+typedef struct _DtIconPart
+{
+       Boolean         set;
+       Boolean         armed;
+       Boolean         sync;
+       Boolean         underline;
+       unsigned char   shadow_type;
+       unsigned char   border_type;
+       XtCallbackList  callback;
+       XtIntervalId    click_timer_id;
+       XButtonEvent *  click_event;
+       String          image_name;
+       Pixmap          pixmap;
+       Pixmap          mask;
+       Pixel           pixmap_foreground;
+       Pixel           pixmap_background;
+       Dimension       max_pixmap_width;
+       Dimension       max_pixmap_height;
+       XmFontList      font_list;
+       XmString        string;
+       Dimension       string_width;
+       Dimension       pixmap_width;
+       Dimension       pixmap_height;
+       GC              clip_gc;
+       GC              normal_gc;
+       GC              background_gc;
+       GC              armed_gc;
+       GC              armed_background_gc;
+       GC              parent_background_gc;
+       Pixel           saved_parent_background;
+       DtIconCacheObjPart *cache;
+       unsigned char   operations;
+       XtCallbackList  drop_callback;
+} DtIconPart;
+
+/*     Full Instance Record
+*/
+typedef struct _DtIconRec
+{
+       ObjectPart      object;
+       RectObjPart     rectangle;
+       XmGadgetPart    gadget;
+       DtIconPart      icon;
+} DtIconRec;
+
+
+/*-------------------------------------------------------------
+**     Class and Instance Macros
+*/
+
+/*     DtIcon Class Macros
+*/     
+#define DtInheritGetSize       ((GetSizeProc) _XtInherit)
+#define DtInheritGetPositions  ((GetPositionProc) _XtInherit)
+#define DtInheritDraw          ((DrawProc) _XtInherit)
+#define DtInheritCallCallback  ((CallCallbackProc) _XtInherit)
+#define DtInheritUpdateGCs     ((UpdateGCsProc) _XtInherit)
+
+/*** WARNING: These macros are not thread-safe! ***/
+#define C_GetSize(wc)          \
+       (((DtIconGadgetClass)(wc)) -> icon_class.get_size)
+#define C_GetPositions(wc)     \
+       (((DtIconGadgetClass)(wc)) -> icon_class.get_positions)
+#define C_Draw(wc)             \
+       (((DtIconGadgetClass)(wc)) -> icon_class.draw)
+#define C_CallCallback(wc)     \
+       (((DtIconGadgetClass)(wc)) -> icon_class.call_callback)
+#define C_OptimizeRedraw(wc)   \
+       (((DtIconGadgetClass)(wc)) -> icon_class.optimize_redraw)
+#define C_UpdateGCs(wc)                \
+       (((DtIconGadgetClass)(wc)) -> icon_class.update_gcs)
+
+/*     DtIcon Macros
+*/
+
+/*** WARNING: These macros are not thread-safe! ***/
+#define G_GetSize(g,w,h) \
+  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_size) \
+       (g,w,h)
+#define G_GetPositions(g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) \
+  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_positions) \
+       (g,w,h,h_t,s_t,p_x,p_y,s_x,s_y)
+#define G_Draw(g,d,x,y,w,h,h_t,s_t,s_type,fill) \
+  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.draw) \
+       (g,d,x,y,w,h,h_t,s_t,s_type,fill)
+#define G_CallCallback(g,cb,r,e) \
+  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.call_callback) \
+       (g,cb,r,e)
+#define G_UpdateGCs(g) \
+  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.update_gcs) \
+       (g)
+
+/*     Cached Instance Field Macros
+*/
+#define G_CachePixmapPosition(co)      (((DtIconCacheObject)(co)) -> \
+                                       icon_cache.pixmap_position)
+#define G_FillOnArm(g)         (((DtIconGadget)(g)) -> \
+                                 icon.cache -> fill_on_arm)
+#define G_RecomputeSize(g)     (((DtIconGadget)(g)) -> \
+                                 icon.cache -> recompute_size)
+#define G_DrawShadow(g)                (((DtIconGadget)(g)) -> \
+                                 icon.cache -> draw_shadow)
+#define G_PixmapPosition(g)    (((DtIconGadget)(g)) -> \
+                                 icon.cache -> pixmap_position)
+#define G_StringPosition(g)    (((DtIconGadget)(g)) -> \
+                                 icon.cache -> string_position)
+#define G_Alignment(g)         (((DtIconGadget)(g)) -> \
+                                 icon.cache -> alignment)
+#define G_Behavior(g)          (((DtIconGadget)(g)) -> \
+                                 icon.cache -> behavior)
+#define G_FillMode(g)          (((DtIconGadget)(g)) -> \
+                                 icon.cache -> fill_mode)
+#define G_MarginWidth(g)       (((DtIconGadget)(g)) -> \
+                                 icon.cache -> margin_width)
+#define G_MarginHeight(g)      (((DtIconGadget)(g)) -> \
+                                 icon.cache -> margin_height)
+#define G_StringHeight(g)      (((DtIconGadget)(g)) -> \
+                                 icon.cache -> string_height)
+#define G_Spacing(g)           (((DtIconGadget)(g)) -> \
+                                 icon.cache -> spacing)
+#define G_Foreground(g)                (((DtIconGadget)(g)) -> \
+                                 icon.cache -> foreground)
+#define G_Background(g)                (((DtIconGadget)(g)) -> \
+                                 icon.cache -> background)
+#define G_ArmColor(g)          (((DtIconGadget)(g)) -> \
+                                 icon.cache -> arm_color)
+
+/*     Non-Cached Instance Field Macros
+*/
+#define G_Armed(g)             (g -> icon.armed)
+#define G_Set(g)               (g -> icon.set)
+#define G_Sync(g)              (g -> icon.sync)
+#define G_Callback(g)          (g -> icon.callback)
+#define G_ClickTimerID(g)      (g -> icon.click_timer_id)
+#define G_ClickInterval(g)     (g -> icon.click_interval)
+#define G_ClickEvent(g)                (g -> icon.click_event)
+#define G_ShadowType(g)                (g -> icon.shadow_type)
+#define G_BorderType(g)                (g -> icon.border_type)
+#define G_Pixmap(g)            (g -> icon.pixmap)
+#define G_Mask(g)              (g -> icon.mask)
+#define G_PixmapForeground(g)  (g -> icon.pixmap_foreground)
+#define G_PixmapBackground(g)  (g -> icon.pixmap_background)
+#define G_MaxPixmapWidth(g)    (g -> icon.max_pixmap_width)
+#define G_MaxPixmapHeight(g)   (g -> icon.max_pixmap_height)
+#define G_String(g)            (g -> icon.string)
+#define G_FontList(g)          (g -> icon.font_list)
+#define G_ImageName(g)         (g -> icon.image_name)
+#define G_StringWidth(g)       (g -> icon.string_width)
+#define G_PixmapWidth(g)       (g -> icon.pixmap_width)
+#define G_PixmapHeight(g)      (g -> icon.pixmap_height)
+#define G_BackgroundGC(g)      (g -> icon.background_gc)
+#define G_ArmedGC(g)           (g -> icon.armed_gc)
+#define G_ArmedBackgroundGC(g) (g -> icon.armed_background_gc)
+#define G_NormalGC(g)          (g -> icon.normal_gc)
+#define G_ClipGC(g)            (g -> icon.clip_gc)
+#define G_Underline(g)         (g -> icon.underline)
+#define G_ParentBackgroundGC(g)        (g -> icon.parent_background_gc)
+#define G_SavedParentBG(g)     (g -> icon.saved_parent_background)
+#define G_Operations(g)                (g -> icon.operations)
+#define G_DropCallback(g)      (g -> icon.drop_callback)
+
+#define Icon_Cache(w)                   (((DtIconGadget)(w))-> \
+                                           icon.cache)
+
+#define Icon_ClassCachePart(w) \
+        (((DtIconGadgetClass)dtIconGadgetClass)->gadget_class.cache_part)
+
+
+#endif /* _DtIconP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Indicator.h b/cde/include/Dt/Indicator.h
new file mode 100644 (file)
index 0000000..9b3c3a7
--- /dev/null
@@ -0,0 +1,64 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Indicator.h /main/4 1995/10/26 15:23:41 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/*
+********************************************************************************
+*
+* File:         Indicator.h
+* Description:  Public header for Activity Indicator
+*
+* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+*
+********************************************************************************
+*/
+
+#ifndef _Indicator_h
+#define _Indicator_h
+
+extern void _DtSendActivityNotification( int ) ;
+   /* int duration;        Maximum activation time for the indicator */
+
+/*
+ * _DtSendActivityNotification() provides the application with the means for
+ * notifying the world that an activity has been started, and may take upto
+ * 'duration' seconds.  For now, the workspace manager will enable the
+ * activity indicator for upto the indicated duration of time; the time is 
+ * in units of seconds.
+ */
+
+extern void _DtSendActivityDoneNotification( void ) ;
+
+/*
+ * _DtSendActivityDoneNotification() provides the application with the means for
+ * notifying the world that an activity which had earlier been started, is
+ * now complete.
+ */
+
+#endif /* _Indicator_h */
+/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/include/Dt/IndicatorM.h b/cde/include/Dt/IndicatorM.h
new file mode 100644 (file)
index 0000000..e4e1d59
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/*****************************<+>*************************************
+ *********************************************************************
+ **
+ **   File:     IndicatorM.h
+ **
+ **   RCS:     $XConsortium: IndicatorM.h /main/3 1995/10/26 15:23:53 rswiston $
+ **   Project:  DT 
+ **
+ **   Description: Defines indicator messages
+ **
+ **   (c) Copyright 1990 by Hewlett-Packard Company
+ **
+ *********************************************************************
+ *****************************<+>*************************************/
+#ifndef _IndicatorM_h
+#define _IndicatorM_h
+
+/*
+ * BMS Messaging definitions
+ */
+
+/* _DtMessage for turning on the activity indicator */
+
+#define DtACTIVITY_NOTIFICATION        "ACTIVITY_NOTIFICATION"
+
+/* _DtMessage for turning off the activity indicator */
+
+#define DtACTIVITY_DONE_NOTIFICATION   "ACTIVITY_DONE_NOTIFICATION"
+
+#endif /* _IndicatorM_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Info.h b/cde/include/Dt/Info.h
new file mode 100644 (file)
index 0000000..d3e65b7
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Info.h /main/2 1996/03/26 15:05:44 barstow $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ *
+ */
+
+#ifndef _dt_info_h_
+#define _dt_info_h_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef enum {
+       DtINFO_SHOW_OK,
+       DtINFO_SHOW_BAD_LOCATOR,        /* the locator argument is NULL */
+       DtINFO_SHOW_TT_OPEN_FAIL,       /* tt_open() failed */
+       DtINFO_SHOW_MSG_CREATE_FAIL,    /* tt_message_create() failed */
+       DtINFO_SHOW_MSG_SEND_FAIL       /* tt_message_send() failed */
+} DtInfoShowStatus;
+
+extern DtInfoShowStatus DtInfoShowTopic (
+       const char      * info_lib,     /* The InfoLib to browse */
+       const char      * locator);     /* The locator in Generalized Locator 
+                                          Format */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _dt_info_h_ */
diff --git a/cde/include/Dt/LocaleXlate.h b/cde/include/Dt/LocaleXlate.h
new file mode 100644 (file)
index 0000000..974282b
--- /dev/null
@@ -0,0 +1,112 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        LocaleXlate.h
+ **
+ **   Project:     DtLcx
+ **
+ **   Description: locale translation services
+ **
+ **   (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **   (c) Copyright 1993, 1994 International Business Machines Corp.
+ **   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **   (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+
+#ifndef _DtLCX_XLATE_LOCALE_I
+#define _DtLCX_XLATE_LOCALE_I
+
+#include "XlationSvc.h"     /* FIX: move to <> */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if DOC
+/*========================================================*/
+$CONSTBEG$: _DtLCX_OPER_xxx
+$1LINER$:  Constants for specifying operations
+$SUMMARY$:
+The _DtLCX_OPER_xxx are constants that produce strings
+used in the translation specifications when specifying
+the operation of a translation.
+
+The operation string name must be identical both in the 
+source code and in the translation table.
+These constants should be used whenever referencing
+operations as part of a translation.
+/*================================================$SKIP$==*/
+#endif
+/* $DEF$, Operation constants */
+#define DtLCX_OPER_STD                 "standard"
+#define DtLCX_OPER_ICONV1              "iconv1"
+#define DtLCX_OPER_ICONV3              "iconv3"
+#define DtLCX_OPER_NLLANGINFO_CODESET  "nl_langinfo(CODESET)"
+#define DtLCX_OPER_SETLOCALE           "setlocale"
+#define DtLCX_OPER_MULTIBYTE           "multibyte"
+#define DtLCX_OPER_CCDF                "ccdf"
+#define DtLCX_OPER_XLFD                "xlfd"
+#define DtLCX_OPER_MIME                "mime"
+#define DtLCX_OPER_INTERCHANGE_CODESET  "interchangeCodeset"
+/*$END$*/
+
+/* Functions */
+#define _DtLcxCloseDb(io_db)    _DtXlateCloseDb(io_db)
+int  _DtLcxOpenAllDbs(
+       _DtXlateDb *    ret_db);
+
+int _DtLcxXlateOpToStd(
+       const _DtXlateDb   xlationDb,
+       const char *       platform,
+       const int          version,
+       const char *       operation,
+       const char *       opValue,
+       char * *           ret_stdLocale,
+       char * *           ret_stdLangTerr,
+       char * *           ret_stdCodeset,
+       char * *           ret_stdModifier);
+
+int _DtLcxXlateStdToOp(
+       const _DtXlateDb   xlationDb,
+       const char *       platform,
+       const int          version,
+       const char *       operation,
+       const char *       stdLocale,
+       const char *       stdLangTerr,
+       const char *       stdCodeset,
+       const char *       stdModifier,
+       char * *           ret_opValue);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*_DtLCX_XLATE_LOCALE_I*/
+/********* do not put anything below this line ********/
diff --git a/cde/include/Dt/Lock.h b/cde/include/Dt/Lock.h
new file mode 100644 (file)
index 0000000..d2da194
--- /dev/null
@@ -0,0 +1,145 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Lock.h $XConsortium: Lock.h /main/4 1995/10/26 15:24:02 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_lock_h
+#define _Dt_lock_h
+
+/*
+    GENERAL DESCRIPTION:
+
+        The DT lock facility provides simple exclusive locking.  It
+        (as of 6/19/90) is based on the X11 selection-ownership
+        mechanism, though users of Dt locking do not need to be aware of
+        this.
+
+       X11 server grabs are judiciously used to guarantee atomicity of
+        operations.  If a process which holds a lock dies (or closes its
+        X11 server connection for some other reason), the lock will be
+        automatically released.
+
+       Locks are identified by a string.  There is no mechanism to
+        allocate unique lock strings to clients; users must take care to
+        choose a string that will not be easily duplicated by some other
+        client.
+
+    SAMPLE CODE:
+
+        #define MY_LOCK "MYAPP_MY_LOCK"
+
+       ...
+
+       if (_DtGetLock (display, MY_LOCK)) {
+          <do whatever it is I want to do>
+          _DtReleaseLock (display, MY_LOCK);
+        }
+        else {
+          <do the alternative>
+        }
+*/
+
+extern int _DtGetLock (
+   Display *display,
+   char  *lock_name);
+/*
+    DESCRIPTION:
+    
+       _DtGetLock attempts to get the specified lock.  If nobody holds
+        the lock, _DtGetLock will obtain the lock and return 1.  If
+        somebody else already holds the lock, the lock will not be
+        disturbed and _DtGetLock will return 0.
+
+       If the process which owns a lock dies (or closes its X11 server
+        connection), the lock will be automatically released.  To
+        explicitly release a lock, use _DtReleaseLock.
+
+       
+    SYNOPSIS:
+
+        success = _DtGetLock (display, lock);
+
+       int success;            Returns 1 if the lock is obtained, 
+                               0 if not.
+
+       Display *display;       The X11 server connection which will 
+                               hold the lock.
+
+        char *lock;            The string which names the lock.
+*/
+
+extern void _DtReleaseLock (
+   Display *display,
+   char *lock_name);
+/*
+    DESCRIPTION:
+    
+        _DtReleaseLock releases a lock obtained by _DtGetLock.
+
+       WARNING!!  It is perfectly legal for one process to release
+       a lock held by another process.  By convention you should only
+       release locks previously obtained by your process from _DtGetLock
+        unless you are playing God and know what you are doing.
+
+    SYNOPSIS:
+
+        (void) _DtReleaseLock (display, lock);
+
+       Display *display;       The X11 server connection which holds
+                               the lock.
+
+        char *lock;            The string which names the lock.
+*/
+
+extern int _DtTestLock (
+   Display *display,
+   char *lock_name);
+/*
+    DESCRIPTION:
+    
+       _DtTestLock returns a status indicating whether anybody holds the
+        specified lock.
+       
+    SYNOPSIS:
+
+        status = _DtTestLock (display, lock);
+
+       int success;            Returns 1 if anybody holds the lock,
+                               0 otherwise.
+
+       Display *display;       The X11 server connection.
+
+        char *lock;            The string which names the lock.
+*/
+       
+#endif /* _Dt_lock_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/MacrosP.h b/cde/include/Dt/MacrosP.h
new file mode 100644 (file)
index 0000000..6579435
--- /dev/null
@@ -0,0 +1,199 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: MacrosP.h /main/5 1996/03/27 20:16:40 drk $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1990,1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+/**---------------------------------------------------------------------
+***    
+***    file:           MacrosP.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Private include file with macros for MotifPlus
+***                    widgets and gadgets.
+***    
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtMacrosP_h
+#define _DtMacrosP_h
+
+#define XmUNSPECIFIED_STRING   (XmString) 3
+
+
+/*-------------------------------------------------------------
+**     Widget Class Macros
+*/
+
+/*     Core Class Macros
+*/
+/*** WARNING: These macros are not thread-safe! ***/
+#define C_WidgetClass(wc)      (wc -> core_class.widget_class)
+#define C_Superclass(wc)       (wc -> core_class.superclass)
+#define C_ClassName(wc)                (wc -> core_class.class_name)
+#define C_ClassInited(wc)      (wc -> core_class.class_inited)
+#define C_NumResources(wc)     (wc -> core_class.num_resources)
+
+/*     Composite Class Macros
+*/     
+#ifdef _XtCompositeP_h
+#define C_ChangeManaged(wc)    (wc -> composite_class.change_managed)
+#endif /* _XtCompositeP_h */
+
+/*     Constraint Class Macros
+*/     
+#ifdef _XtConstraintP_h
+#define C_ConstraintResources(wc) (wc -> constraint_class.resources)
+#define C_ConstraintNumResources(wc) (wc -> constraint_class.num_resources)
+#endif /* _XtConstraintP_h */
+
+/*     XmGadget Class Macros
+*/
+#define XmInheritBorderHighlight       ((XtWidgetProc) _XtInherit)
+#define XmInheritBorderUnhighlight     ((XtWidgetProc) _XtInherit)
+#define XmInheritVisualChange          ((XmVisualChangeProc) _XtInherit)
+
+
+\f
+/*-------------------------------------------------------------
+**     Primitive Macros
+*/
+
+#define P_X(w)                 (w -> core.x)
+#define P_Y(w)                 (w -> core.y)
+#define P_Width(w)             (w -> core.width)
+#define P_Height(w)            (w -> core.height)
+#define P_BorderWidth(w)       (w -> core.border_width)
+#define P_XrmName(w)           (w -> core.xrm_name)
+#define P_PopupList(w)         (w -> core.popup_list)
+#define P_NumPopups(w)         (w -> core.num_popups)
+
+
+\f
+/*-------------------------------------------------------------
+**     Gadget Macros
+*/
+
+/*     Object Macros
+*/
+#define G_XrmName(r)           (r -> object.xrm_name)
+#define G_Class(r)             (r -> object.widget_class)
+
+/*     RectObject Macros
+*/
+#define G_X(r)                 (r -> rectangle.x)
+#define G_Y(r)                 (r -> rectangle.y)
+#define G_Width(r)             (r -> rectangle.width)
+#define G_Height(r)            (r -> rectangle.height)
+#define G_BorderWidth(r)       (r -> rectangle.border_width)
+
+/*     XmGadget Macros
+*/
+#define G_HelpCB(g)            (g -> gadget.help_callback)
+#define G_EventMask(g)         (g -> gadget.event_mask)
+#define G_Highlighted(g)       (g -> gadget.highlighted)
+#define G_UnitType(g)          (g -> gadget.unit_type)
+
+
+\f
+/*-------------------------------------------------------------
+**     Manager Macros
+*/
+
+/*     Core Macros
+*/
+#define M_X(w)                 (w -> core.x)
+#define M_Y(w)                 (w -> core.y)
+#define M_Width(w)             (w -> core.width)
+#define M_Height(w)            (w -> core.height)
+#define M_BorderWidth(w)       (w -> core.border_width)
+#define M_Background(w)                (w -> core.background_pixel)
+#define M_Sensitive(w)         (w->core.sensitive && w->core.ancestor_sensitive) 
+#define M_Name(w)              (w -> core.name)
+#define M_Accelerators(w)      (w -> core.accelerators)
+#define M_TmTranslations(w)    (w -> core.tm.translations)
+#define M_PopupList(w)         (w -> core.popup_list)
+#define M_NumPopups(w)         (w -> core.num_popups)
+
+/*     Composite and Constraint Macros
+*/
+#define M_Children(m)          (m -> composite.children)
+#define M_NumChildren(m)       (m -> composite.num_children)
+
+/*     XmManager Macros
+*/
+#ifdef _XmManagerP_h
+#define M_Foreground(m)                (m -> manager.foreground)
+#define M_HighlightThickness(m)        (m -> manager.highlight_thickness)
+#define M_ShadowThickness(m)   (m -> manager.shadow_thickness)
+#define M_TopShadowGC(m)       (m -> manager.top_shadow_GC)
+#define M_BottomShadowGC(m)    (m -> manager.bottom_shadow_GC)
+#define M_BackgroundGC(m)      (m -> manager.background_GC)
+#define M_SelectedGadget(m)    (m -> manager.selected_gadget)
+#define M_HelpCB(m)            (m -> manager.help_callback)
+#define M_UnitType(m)          (m -> manager.unit_type)
+#endif /* _XmManagerP_h */
+
+/*     XmDrawingArea Macros
+*/
+#ifdef _XmDrawingAreaP_h
+#define M_MarginWidth(m)       (m -> drawing_area.margin_width)
+#define M_MarginHeight(m)      (m -> drawing_area.margin_height)
+#endif /* _XmDrawingAreaP_h */
+
+/*     XmBulletinBoard Macros
+*/
+#ifdef _XmBulletinBoardP_h
+#define M_ButtonFontList(m)    (m -> bulletin_board.button_font_list)
+#define M_LabelFontList(m)     (m -> bulletin_board.label_font_list)
+#define M_TextFontList(m)      (m -> bulletin_board.text_font_list)
+#define M_MarginWidth(m)       (m -> bulletin_board.margin_width)
+#define M_MarginHeight(m)      (m -> bulletin_board.margin_height)
+#endif /* _XmBulletinBoardP_h */
+
+#ifdef MAYBE
+/*     DtIconBox Macros
+*/
+#ifdef _DtIconBoxP_h
+#define M_Timer(m)             (m -> icon_box.timer)
+#define M_ShellX(m)            (m -> icon_box.shell_x)
+#define M_ShellY(m)            (m -> icon_box.shell_y)
+#define M_DragShell(m)         (m -> icon_box.drag_shell)
+#define M_DragWidget(m)                (m -> icon_box.drag_widget)
+#define M_DragIcon(m)          (m -> icon_box.drag_icon)
+#define M_XCursor(m)           (m -> icon_box.x_cursor)
+#define M_CrossCursor(m)       (m -> icon_box.cross_cursor)
+#endif /* _DtIconBoxP_h */
+#endif /* MAYBE */
+
+#endif /* _DtMacrosP_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/MenuButton.h b/cde/include/Dt/MenuButton.h
new file mode 100644 (file)
index 0000000..e1a6fba
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: MenuButton.h /main/3 1995/10/26 09:33:10 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_MenuButton_h
+#define _Dt_MenuButton_h
+
+#include <Xm/Xm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DtNcascadingCallback
+#define DtNcascadingCallback   XmNcascadingCallback
+#endif
+#ifndef DtNsubMenuId
+#define DtNsubMenuId           XmNsubMenuId
+#endif
+#ifndef DtNcascadePixmap
+#define DtNcascadePixmap       XmNcascadePixmap
+#endif
+
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCPixmap
+#define DtCPixmap              XmCPixmap
+#endif
+#ifndef DtCMenuWidget
+#define DtCMenuWidget          XmCMenuWidget
+#endif
+
+#ifndef DtCR_CASCADING
+#define DtCR_CASCADING         XmCR_CASCADING
+#endif
+
+
+/*
+ * Types
+ */
+
+/* Widget class and instance */
+
+typedef struct _DtMenuButtonRec      * DtMenuButtonWidget;
+typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtMenuButtonWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateMenuButton( 
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_MenuButton_h */
diff --git a/cde/include/Dt/MenuButtonP.h b/cde/include/Dt/MenuButtonP.h
new file mode 100644 (file)
index 0000000..7b8ab7f
--- /dev/null
@@ -0,0 +1,123 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: MenuButtonP.h /main/3 1995/10/26 09:33:17 rswiston $ */
+/*
+ *        Copyright (C) 1986,1991  Sun Microsystems, Inc
+ *                    All rights reserved.
+ *          Notice of copyright on this source code
+ *          product does not indicate publication.
+ *
+ * RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
+ * the U.S. Government is subject to restrictions as set forth
+ * in subparagraph (c)(1)(ii) of the Rights in Technical Data
+ * and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
+ * and FAR 52.227-19 (c) (June 1987).
+ *
+ *    Sun Microsystems, Inc., 2550 Garcia Avenue,
+ *    Mountain View, California 94043.
+ *
+ */
+
+#ifndef  _DtMenuButtonP_h
+#define  _DtMenuButtonP_h
+
+#include "MenuButton.h"
+#include <Xm/LabelP.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/****************************************************************
+ *
+ *     Message Defines
+ *
+ ****************************************************************/
+#define MB_POST                DTWIDGET_GETMESSAGE( \
+                        MS_MenuButton, MENU_POST, _DtMsgMenuButton_0000)
+#define MB_PARENT      DTWIDGET_GETMESSAGE( \
+                        MS_MenuButton, MENU_PARENT, _DtMsgMenuButton_0001)
+#define MB_SUBMENU     DTWIDGET_GETMESSAGE( \
+                        MS_MenuButton, MENU_SUBMENU, _DtMsgMenuButton_0002)
+
+/* The MenuButton instance record */
+
+typedef        struct 
+{      /* resources */
+    XtCallbackList     cascading_callback;     /* Cascading callback  */
+    Widget             submenu;        /* the menu to pull down */
+    Pixmap             menu_pixmap;    /* pixmap for the menu */
+
+       /* internal fields */
+
+    Boolean    armed;          /* armed flag */
+    Boolean     popped_up;     /* submenu popped up flag*/
+    XRectangle  menu_rect;     /* location of menu*/
+    Time       last_timestamp; /* last time submenu popped down */
+    Boolean    private_submenu;
+    GC         gc;
+} DtMenuButtonPart;
+
+
+/* Full instance record declaration */
+
+typedef struct _DtMenuButtonRec
+{
+    CorePart           core;
+       XmPrimitivePart primitive;
+       XmLabelPart             label;
+       DtMenuButtonPart        menu_button;
+} DtMenuButtonRec;
+
+
+/* MenuButton class structure */
+
+typedef struct {
+       XtPointer       extension;      /* Pointer to extension record */
+} DtMenuButtonClassPart;
+
+
+/* Full class record declaration for MenuButton class */
+
+typedef struct _DtMenuButtonClassRec {
+       CoreClassPart       core_class;
+       XmPrimitiveClassPart    primitive_class;
+       XmLabelClassPart                label_class;
+       DtMenuButtonClassPart menu_button_class;
+} DtMenuButtonClassRec;
+
+
+extern DtMenuButtonClassRec   dtMenuButtonClassRec;
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif  /* _DtMenuButtonP_h */
+/* DON'T ADD STUFF AFTER THIS #endif */
+
diff --git a/cde/include/Dt/Message.h b/cde/include/Dt/Message.h
new file mode 100644 (file)
index 0000000..6d6e74e
--- /dev/null
@@ -0,0 +1,114 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Message.h $XConsortium: Message.h /main/5 1996/03/01 16:36:42 drk $
+ * Language:     C
+ *
+ * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_message_h
+#define _Dt_message_h
+
+#include <Dt/DataTypes.h>
+#include <Dt/DtP.h>
+
+#include <Dt/Service.h>
+
+/* This header file is a modifed version of <Xv/Message.h> that 
+ * provides compatibility between the BMS messaging and the new
+ * ICCCM messaging used in DT.
+ *
+ * The following symbols that were defined in <Xv/Message.h> are
+ * no longer available.  Any code that depended on them will have
+ * to be rewritten:
+ *
+ *     DtServerDeathFn
+ *     DtCloseMsgServerConnect
+ *     DtAddFailNotificationCallback
+ *     DtStatusResponse
+ *     DtUniqueRequestId
+ *     DtSendFailNotification
+ *     DtSendMsg
+ */
+
+
+/**********************************
+ *
+ * Message Format
+ *
+ **********************************/
+
+/*
+ * DT messages have the following format:
+ *
+ *     Request message:        <request> [args ...]
+ *     Reply message:          <SUCCESS | FAILURE> [args ...]
+ *     Notify message:         <notification> [args ...]
+ *
+ * The following fields in BMS messages are no longer supported:
+ *
+ *     DT_MSG_SENDER
+ *     DT_MSG_REQUEST_ID
+ *     DT_MSG_TOOL
+ *     DT_MSG_HOST
+ *     DT_MSG_DIR
+ *     DT_MSG_FILE
+ */
+
+#define DT_MSG_TYPE            0
+#define DT_MSG_COMMAND         0
+#define DT_MSG_DATA_1          1
+#define DT_MSG_DATA_2          2
+#define DT_MSG_DATA_3          3
+#define DT_MSG_DATA_4          4
+#define DT_MSG_DATA_5          5
+#define DT_MSG_DATA_6          6
+#define DT_MSG_DATA_7          7
+#define DT_MSG_DATA_8          8
+#define DT_MSG_DATA_9          9
+#define DT_MSG_DATA_10         10
+#define DT_MSG_DATA_11         11
+#define DT_MSG_DATA_12         12
+#define DT_MSG_DATA_13         13
+#define DT_MSG_DATA_14         14
+#define DT_MSG_DATA_15         15
+#define DT_MSG_DATA_16         16
+#define DT_MSG_DATA_17         17
+#define DT_MSG_DATA_18         18
+#define DT_MSG_DATA_19         19
+#define DT_MSG_DATA_20         20
+
+#define DtDONT_CARE_FIELD              "*"
+/*
+       If a particular message does not require a value in one of the
+       fields, use DtDONT_CARE_FIELD for the value of the field.
+*/
+
+#endif /*_Dt_message_h*/
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Mrm.h b/cde/include/Dt/Mrm.h
new file mode 100644 (file)
index 0000000..7789262
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*   $XConsortium: Mrm.h /main/1 1996/04/05 14:41:44 mgreess $ */
+/*                                                                      
+ *                  Common Desktop Environment                         
+ *                                                                     
+ * (c) Copyright 1996 Hewlett-Packard Company                           
+ * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
+ * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994, 1995 Novell, Inc.
+ * (c) Copyright 1995 Digital Equipment Corp.
+ * (c) Copyright 1995 Fujitsu Limited
+ * (c) Copyright 1995 Hitachi, Ltd.
+ *                                                                 
+ *
+ *                   RESTRICTED RIGHTS LEGEND                              
+ *
+ * Use, duplication, or disclosure by the U.S. Government is subject to
+ * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
+ * Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
+ * for non-DOD U.S. Government Departments and Agencies are as set forth in
+ * FAR 52.227-19(c)(1,2).
+ * 
+ * Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
+ * International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
+ * Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
+ * Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
+ * Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
+ * Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
+ * Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
+ */
+#ifndef MRM_H
+#define MRM_H
+
+/* DtMrmInit.c */
+extern void DtMrmInitialize(void);
+
+#endif /* MRM_H */
+/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/include/Dt/Msg.h b/cde/include/Dt/Msg.h
new file mode 100644 (file)
index 0000000..3c8fe92
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *  Msg.h -- Header file for DT messaging library 
+ *
+ *  $XConsortium: Msg.h /main/5 1996/03/01 16:36:15 drk $
+ *
+ * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
+ */
+#ifndef _DT_MSG_H 
+#define _DT_MSG_H
+
+#include <X11/Intrinsic.h>
+#include <Dt/DataTypes.h>
+
+/*
+ * _DtMessage handle definitions
+ */
+typedef struct _DtMsgHandle *DtMsgHandle;
+
+/*
+ * Return values
+ */
+#define dtmsg_NO_LISTENERS             (102)
+#define dtmsg_SUCCESS                  (1)
+#define dtmsg_FAIL                     (-1)
+#define dtmsg_NO_SERVICE               (-102)
+#define dtmsg_WRONG_FORMAT             (-103)
+#define dtmsg_ANOTHER_PROVIDER         (-104)
+#define dtmsg_LOST_SERVICE             (-105)
+
+#define DtMsgContext   Pointer
+
+#endif /* not defined _DT_MSG_H */
+/***** END OF FILE ****/
diff --git a/cde/include/Dt/MsgCatP.h b/cde/include/Dt/MsgCatP.h
new file mode 100644 (file)
index 0000000..bfbb9e6
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* 
+ * (c) Copyright 1995 Digital Equipment Corporation.
+ * (c) Copyright 1995 Hewlett-Packard Company.
+ * (c) Copyright 1995 International Business Machines Corp.
+ * (c) Copyright 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1995 Novell, Inc. 
+ * (c) Copyright 1995 FUJITSU LIMITED.
+ * (c) Copyright 1995 Hitachi.
+ *
+ * MsgCat.h - Public interfaces for the Cached Message Catalog Service
+ *
+ * $TOG: MsgCatP.h /main/1 1998/04/22 14:19:24 mgreess $
+ *
+ */
+
+#ifndef _Dt_MsgCat_h
+#define _Dt_MsgCat_h
+
+#include <nl_types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern char *_DtCatgetsCached(nl_catd catd, int set, int num, char *dflt);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_MsgCat_h */
diff --git a/cde/include/Dt/MsgLog.h b/cde/include/Dt/MsgLog.h
new file mode 100644 (file)
index 0000000..615edda
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* 
+ * (c) Copyright 1995 Digital Equipment Corporation.
+ * (c) Copyright 1995 Hewlett-Packard Company.
+ * (c) Copyright 1995 International Business Machines Corp.
+ * (c) Copyright 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1995 Novell, Inc. 
+ * (c) Copyright 1995 FUJITSU LIMITED.
+ * (c) Copyright 1995 Hitachi.
+ *
+ * MsgLog.h - Public header file for the Message Logging Service
+ *
+ * $XConsortium: MsgLog.h /main/5 1995/07/14 13:22:57 drk $
+ *
+ */
+
+#ifndef _Dt_MsgLog_h
+#define _Dt_MsgLog_h
+
+#include <stdio.h>             /* needed for FILE */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+# include <stdarg.h>
+
+/*
+ * Type declarations
+ */
+typedef enum {
+       DtMsgLogInformation,
+       DtMsgLogStderr,
+       DtMsgLogDebug,
+       DtMsgLogWarning,
+       DtMsgLogError
+} DtMsgLogType;
+
+typedef void (*DtMsgLogHandler) (
+       const char              * program_name,
+       DtMsgLogType            msg_type,
+       const char              * format,
+       va_list                 args );
+
+/*
+ * Function declarations
+ */
+extern void DtMsgLogMessage (
+       const char              * program_name,
+       DtMsgLogType            msg_type,
+       const char              * format,
+       ... );
+
+extern DtMsgLogHandler DtMsgLogSetHandler (
+       DtMsgLogHandler         handler );
+
+extern FILE * DtMsgLogOpenFile (
+       const char              * type,
+       char                    ** filename_return);    /* MODIFIED */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_MsgLog_h */
diff --git a/cde/include/Dt/MsgLogI.h b/cde/include/Dt/MsgLogI.h
new file mode 100644 (file)
index 0000000..bb261c7
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* 
+ * (c) Copyright 1995 Digital Equipment Corporation.
+ * (c) Copyright 1995 Hewlett-Packard Company.
+ * (c) Copyright 1995 International Business Machines Corp.
+ * (c) Copyright 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1995 Novell, Inc. 
+ * (c) Copyright 1995 FUJITSU LIMITED.
+ * (c) Copyright 1995 Hitachi.
+ *
+ * MsgLogI.h - Private header file for the Message Logging Service
+ *
+ * $XConsortium: MsgLogI.h /main/4 1995/07/14 13:23:02 drk $
+ *
+ */
+
+#ifndef _Dt_MsgLogI_h
+#define _Dt_MsgLogI_h
+
+# include <stdarg.h>
+# define Va_start(a,b) va_start(a,b)
+
+/*
+ * Account for the various macros on different systems which indicate that
+ * stdarg.h has been included. Code in this file only checks for 
+ * _STDARG_INCLUDED.  If a given system defines another macro that means the
+ * same thing -- then define _STDARG_INCLUDED here.
+ *
+ *     System          Macro Indicating stdarg.h has been included
+ *     --------        ---------------------------------------------
+ *     HPUX            _STDARG_INCLUDED
+ *     AIX             _H_STDARG
+ *     SOLARIS         _STDARG_H
+ */
+
+#ifdef _H_STDARG
+#define        _STDARG_INCLUDED
+#endif
+
+#ifdef  _STDARG_H
+#define        _STDARG_INCLUDED
+#endif
+
+#endif /* _Dt_MsgLogI_h */
diff --git a/cde/include/Dt/MsgP.h b/cde/include/Dt/MsgP.h
new file mode 100644 (file)
index 0000000..f25db8a
--- /dev/null
@@ -0,0 +1,182 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+#ifndef _DT_MSG_P_H 
+#define _DT_MSG_P_H
+/*
+ *  MsgP.h -- Private header file for DT messaging library 
+ *
+ *  $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
+ *  $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
+ *
+ * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
+ */
+#include <Dt/Msg.h>
+
+
+/*
+ * Definitions
+ */
+
+/* max property size (bytes) */
+#define DT_MSG_MAX_PROP_SIZE   (32768)
+
+/* atom names */
+#define DT_MSG_XA_REQUEST              "_DT_REQUEST"
+#define DT_MSG_XA_NOTIFY               "_DT_NOTIFY"
+#define DT_MSG_XA_BROADCAST_REGISTRY   "_DT_BROADCAST_REGISTRY"
+
+/*
+ * _DtMessage handle
+ */
+typedef struct _DtMsgHandle {
+    char *             pchName;        /* handle "name" */
+    Atom               atom;           /* Selection/Broadcast atom  */
+    Widget             widget;         /* Widget registering this handle */
+    char *             pchPropName;    /* property name */
+    Atom               property;       /* atomized property name */
+
+    /* other data */
+    struct _DtMsgServiceContext *
+                       service_data;   /* service data assoc w/ handle */
+    struct _DtMsgBroadcastData *
+                       broadcast_data; /* broadcast data assoc w/ handle */
+} DtMsgHandle;
+
+/*
+ * _DtMessage handle accessor "functions" 
+ */
+#define DtMsgH_Name(h)         ((h)->pchName)
+#define DtMsgH_Widget(h)       ((h)->widget)
+#define DtMsgH_Atom(h)         ((h)->atom)
+#define DtMsgH_SvcData(h)      ((h)->service_data)
+#define DtMsgH_BcData(h)       ((h)->broadcast_data)
+#define DtMsgH_PropertyName(h) ((h)->pchPropName)
+#define DtMsgH_PropertyAtom(h) ((h)->property)
+#define DtMsgH_Shandle(h)      ((h)->service_data->handle)
+#define DtMsgH_RequestProc(h)  ((h)->service_data->request_proc)
+#define DtMsgH_ReceiveCD(h)    ((h)->service_data->receive_client_data)
+#define DtMsgH_LoseProc(h)     ((h)->service_data->lose_proc)
+#define DtMsgH_LoseCD(h)       ((h)->service_data->lose_client_data)
+#define DtMsgH_RegistryAtom(h) ((h)->broadcast_data->aRegistry)
+#define DtMsgH_SharedWindow(h) ((h)->broadcast_data->winShared)
+#define DtMsgH_SharedWidget(h) ((h)->broadcast_data->wShared)
+#define DtMsgH_Listener(h)     ((h)->broadcast_data->wListener)
+#define DtMsgH_BreceiveProc(h) ((h)->broadcast_data->Breceive_proc)
+#define DtMsgH_BclientData(h)  ((h)->broadcast_data->Bclient_data)
+#define DtMsgH_Bprops(h)       ((h)->broadcast_data->props)
+#define DtMsgH_BnumProps(h)    ((h)->broadcast_data->numProps)
+#define DtMsgH_BsizeProps(h)   ((h)->broadcast_data->sizeProps)
+#define DtMsgH_Breceivers(h)   ((h)->broadcast_data->pReceivers)
+#define DtMsgH_BnumReceivers(h)        ((h)->broadcast_data->numReceivers)
+#define DtMsgH_BsizeReceivers(h)       ((h)->broadcast_data->sizeReceivers)
+#define DtMsgH_BSenderInit(h) ((h)->broadcast_data->bSenderInitialized)
+
+/*
+ * Service context data 
+ * (for client that offers a service)
+ */
+typedef struct _DtMsgServiceContext {
+    DtMsgHandle        handle;
+    DtMsgReceiveProc   request_proc;
+    DtMsgStatusProc    lose_proc;
+    Pointer            receive_client_data;
+    Pointer            lose_client_data;
+} DtMsgServiceContext;
+
+/*
+ * Request context data
+ * (for client that makes a service request)
+ */
+typedef struct _DtMsgRequestContext {
+    DtMsgHandle        handle;
+    DtMsgReceiveProc   reply_proc;
+    Pointer            client_data;
+} DtMsgRequestContext;
+
+
+/*
+ * Reply message context data
+ * (for client replying to a request)
+ */
+typedef struct _DtMsgReplyMessageContext {
+    DtMsgHandle        handle;
+    Window             window;
+    Atom               target;
+    Atom               property;
+} DtMsgReplyMessageContext;
+
+
+/*
+ * Broadcast sender data
+ */
+
+/* number of props to allocate per memory request */
+#define DT_MSG_PROP_INC_AMT    10
+
+typedef struct _DtMsgBroadcastPerReceiverData {
+    Widget             widget;                 /* widget of receiver */
+    Atom *             propsUnread;            /* list of props */
+    int                        numPropsUnread;         /* number of props */
+    int                        sizePropsUnread;        /* amt of space allocated */
+} DtMsgBroadcastPerReceiverData;
+
+typedef struct _DtMsgBroadcastData {
+    Atom               aRegistry;      /* registry atom name */
+    Window             winShared;      /* shared window */
+    Widget             wShared;        /* shared widget */
+    Widget             wListener;      /* child of shared window */
+    DtMsgReceiveProc   Breceive_proc;  /* broadcast receive proc */
+    Pointer            Bclient_data;   /* broadcast client data */
+
+    Boolean            bSenderInitialized;     /* true if ready for send */
+    Atom *             props;          /* props to use for messages */
+    int                        numProps;       /* number of message props */
+    int                        sizeProps;      /* number of props allocated */
+    DtMsgBroadcastPerReceiverData *    pReceivers;     /* rcvr data */
+    int                        numReceivers;   /* number of receivers */
+    int                        sizeReceivers;  /* amt of rcvr space allocated */
+
+} DtMsgBroadcastData;
+
+
+/* 
+ * Broadcast _DtMessage Registry definitions
+ */
+
+/* registry entry size, in words */
+#define DT_MSG_REGISTRY_ENTRY_SIZE     2
+
+/* offsets within each registry entry */
+#define DT_MSG_REGISTRY_NAME_OFFSET    0
+#define DT_MSG_REGISTRY_WINDOW_OFFSET  1
+
+/* Macros to compute offset */
+#define MSG_GROUP_NAME(R, i) \
+    (R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_NAME_OFFSET])
+
+#define MSG_GROUP_WINDOW(R, i) \
+    (R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_WINDOW_OFFSET])
+
+
+#endif /* not defined _DT_MSG_P_H */
+/***** END OF FILE ****/
diff --git a/cde/include/Dt/Print.h b/cde/include/Dt/Print.h
new file mode 100644 (file)
index 0000000..4d72b64
--- /dev/null
@@ -0,0 +1,237 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */
+/*
+ * DtPrint/Print.h
+ */
+/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
+ *     ALL RIGHTS RESERVED
+ * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
+ * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
+ *     HEWLETT-PACKARD COMPANY
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPrint_h
+#define _DtPrint_h
+
+#include <Xm/Xm.h>
+#if 0 && defined(PRINTING_SUPPORTED)
+#include <X11/extensions/Print.h> 
+#endif /* PRINTING_SUPPORTED */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Class record constants 
+ */
+externalref WidgetClass dtPrintSetupBoxWidgetClass;
+
+typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass;
+typedef struct _DtPrintSetupBoxRec      * DtPrintSetupBoxWidget;
+
+
+#ifndef DtIsPrintSetupBox
+#define DtIsPrintSetupBox(w)  (XtIsSubclass (w, dtPrintSetupBoxWidgetClass))
+#endif
+
+/*
+ * Resource Names
+ */
+#define DtNcancelCallback "cancelCallback"
+#define DtNclosePrintDisplayCallback "closePrintDisplayCallback"
+#define DtNcopies "copies"
+#define DtNdescription "description"
+#define DtNdestroyContextCallback "destroyContextCallback"
+#define DtNfileName "fileName"
+#ifndef DtNminimizeButtons
+# define DtNminimizeButtons "minimizeButtons"
+#endif
+#define DtNoptionCount "optionCount"
+#define DtNoptions "options"
+#define DtNprintCallback "printCallback"
+#define DtNprintDestination "printDestination"
+#define DtNprinterInfoProc "printerInfoProc"
+#define DtNprinterName "printerName"
+#define DtNprintSetupMode "printSetupMode"
+#define DtNselectFileProc "selectFileProc"
+#define DtNselectPrinterProc "selectPrinterProc"
+#define DtNsetupCallback "setupCallback"
+#define DtNverifyPrinterProc "verifyPrinterProc"
+#define DtNworkAreaLocation "workAreaLocation"
+
+#define DtCCancelCallback "CancelCallback"
+#define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback"
+#define DtCCopies "Copies"
+#define DtCDescription "Description"
+#define DtCDestroyContextCallback "DestroyContextCallback"
+#define DtCFileName "FileName"
+#ifndef DtCMinimizeButtons
+# define DtCMinimizeButtons "MinimizeButtons"
+#endif
+#define DtCOptionCount "OptionCount"
+#define DtCOptions "Options"
+#define DtCPrintCallback "PrintCallback"
+#define DtCPrintDestination "PrintDestination"
+#define DtCPrinterInfoProc "PrinterInfoProc"
+#define DtCPrinterName "PrinterName"
+#define DtCPrintSetupMode "PrintSetupMode"
+#define DtCSelectFileProc "SelectFileProc"
+#define DtCSelectPrinterProc "SelectPrinterProc"
+#define DtCSetupCallback "SetupCallback"
+#define DtCVerifyPrinterProc "VerifyPrinterProc"
+#define DtCWorkAreaLocation "WorkAreaLocation"
+
+#define DtRPrintSetupProc "PrintSetupProc"
+
+/*
+ * DtNsetupMode Resource Values
+ */
+enum {
+    DtPRINT_SETUP_PLAIN,
+    DtPRINT_SETUP_XP
+};
+
+/*
+ * DtNworkAreaLocation Resource Values
+ */
+enum {
+    DtWORK_AREA_NONE,
+    DtWORK_AREA_TOP,
+    DtWORK_AREA_TOP_AND_BOTTOM,
+    DtWORK_AREA_BOTTOM
+};
+
+/*
+ * DtNprintDestination Resource Values
+ */
+enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE };
+
+/*
+ * DtNprinterNameMode Resource Values
+ */
+enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME };
+
+/*
+ * Mode values for DtPrintSetupBoxResetConnection()
+ */
+typedef enum {
+    DtPRINT_CLOSE_CONNECTION,
+    DtPRINT_RELEASE_CONNECTION
+} DtPrintResetConnectionMode;
+
+/*
+ * Callback Reasons
+ */
+enum {
+    DtPRINT_CR_NONE,
+    DtPRINT_CR_CANCEL,
+    DtPRINT_CR_CLOSE_PRINT_DISPLAY,
+    DtPRINT_CR_PRINT,
+    DtPRINT_CR_SETUP
+};
+
+/*
+ * DtPrint proecdure return values
+ */
+enum {
+    DtPRINT_SUCCESS,
+    DtPRINT_BAD_PARM,
+    DtPRINT_FAILURE,
+    DtPRINT_INVALID_DISPLAY,
+    DtPRINT_NOT_XP_DISPLAY,
+    DtPRINT_NO_CONNECTION,
+    DtPRINT_NO_DEFAULT,
+    DtPRINT_NO_DEFAULT_DISPLAY,
+    DtPRINT_NO_PRINTER,
+    DtPRINT_PRINTER_MISSING
+};
+
+enum {
+    DtPRINT_HINT_MESSAGES_OK,
+    DtPRINT_HINT_NO_MESSAGES
+};
+
+/*
+ * PrintSetupBox Callback Structure Definition
+ */
+typedef struct _DtPrintSetupData
+{
+    String printer_name;
+    Display *print_display;
+#ifdef PRINTING_SUPPORT
+    XPContext print_context;
+#endif /* PRINTING_SUPPORTED */
+    XtEnum destination;
+    String dest_info;
+    XtEnum messages_hint;
+} DtPrintSetupData;
+
+typedef struct _DtPrintSetupCallbackStruct
+{
+    int reason;
+    XEvent *event;
+    DtPrintSetupData *print_data;
+} DtPrintSetupCallbackStruct;
+
+/*
+ * PrintSetupBox Procedure Resource Type Definition
+ */
+typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*);
+
+/*
+ * Public Function Declarations
+ */
+extern Widget DtCreatePrintSetupBox(
+                                   Widget p,
+                                   String name,
+                                   ArgList args,
+                                   Cardinal n) ;
+extern Widget DtCreatePrintSetupDialog(
+                                      Widget ds_p,
+                                      String name,
+                                      ArgList sb_args,
+                                      Cardinal sb_n) ;
+extern DtPrintSetupData* DtPrintCopySetupData(
+                                             DtPrintSetupData* target,
+                                             const DtPrintSetupData* source);
+extern XtEnum DtPrintFillSetupData(
+                                  Widget psub,
+                                  DtPrintSetupData* print_data);
+extern void DtPrintFreeSetupData(
+                                DtPrintSetupData* target);
+extern XtEnum DtPrintResetConnection(
+                                    Widget psub,
+                                    DtPrintResetConnectionMode m);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPrint_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PrintDlgMgrP.h b/cde/include/Dt/PrintDlgMgrP.h
new file mode 100644 (file)
index 0000000..1f7eaef
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PrintDlgMgrP.h /main/3 1996/08/12 18:40:55 cde-hp $ */
+/*
+ * DtPrint/PrintDlgMgrP.h
+ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _PrintDlgMgrP_h
+#define _PrintDlgMgrP_h
+
+#include <Xm/Xm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern Widget _DtCreatePDMJobSetup(Widget Parent);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPrintDlgMgrP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PrintI.h b/cde/include/Dt/PrintI.h
new file mode 100644 (file)
index 0000000..3b66fac
--- /dev/null
@@ -0,0 +1,72 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PrintI.h /main/1 1996/10/31 11:19:07 drk $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPrintI_h
+#define _DtPrintI_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Conditionally defined macros for thread safe DtPrint ******/
+#ifdef XTHREADS
+
+#define _DtPrintWidgetToAppContext(w) \
+        XtAppContext app = XtWidgetToApplicationContext(w)
+
+#define _DtPrintDisplayToAppContext(d) \
+        XtAppContext app = XtDisplayToApplicationContext(d)
+
+#define _DtPrintAppLock(app)           XtAppLock(app)
+#define _DtPrintAppUnlock(app)         XtAppUnlock(app)
+#define _DtPrintProcessLock()          XtProcessLock()
+#define _DtPrintProcessUnlock()                XtProcessUnlock()
+
+#else /* XTHREADS */
+
+#define _DtPrintWidgetToAppContext(w)
+#define _DtPrintDisplayToAppContext(d)
+#define _DtPrintAppLock(app)
+#define _DtPrintAppUnlock(app)
+#define _DtPrintProcessLock()
+#define _DtPrintProcessUnlock()
+
+#endif /* XTHREADS */
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPrintI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PrintMsgsP.h b/cde/include/Dt/PrintMsgsP.h
new file mode 100644 (file)
index 0000000..c4ae5ff
--- /dev/null
@@ -0,0 +1,203 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PrintMsgsP.h /main/9 1996/08/19 17:12:12 cde-hp $ */
+/*
+ * DtPrint/PrintMsgsP.h
+ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPrintMsgsP_h
+#define _DtPrintMsgsP_h
+
+#ifdef I18N_MSG
+#include <nl_types.h>
+#define DTPRINT_GETMESSAGE(set, number, string) \
+    _DtPrintGetMessage(set, number, string)
+
+#else /* I18N_MSG */
+#define DTPRINT_GETMESSAGE(set, number, string) string
+#endif /* I18N_MSG */
+
+/*** const causes the HP compiler to complain.  Remove reference until   ***
+ *** the build and integration people can figure out how to get this to  ***
+ *** work.                                                               ***/
+
+/* #define CONST       const */
+#define CONST
+
+
+/* 
+ * extern declarations for PrintSetupBox widget messages
+ */
+extern CONST char _DtPrMsgPrintSetupBox_0000[];
+extern CONST char _DtPrMsgPrintSetupBox_0001[];
+extern CONST char _DtPrMsgPrintSetupBox_0002[];
+extern CONST char _DtPrMsgPrintSetupBox_0003[];
+extern CONST char _DtPrMsgPrintSetupBox_0004[];
+extern CONST char _DtPrMsgPrintSetupBox_0005[];
+extern CONST char _DtPrMsgPrintSetupBox_0006[];
+extern CONST char _DtPrMsgPrintSetupBox_0007[];
+extern CONST char _DtPrMsgPrintSetupBox_0008[];
+extern CONST char _DtPrMsgPrintSetupBox_0009[];
+extern CONST char _DtPrMsgPrintSetupBox_0010[];
+extern CONST char _DtPrMsgPrintSetupBox_0011[];
+extern CONST char _DtPrMsgPrintSetupBox_0012[];
+extern CONST char _DtPrMsgPrintSetupBox_0013[];
+extern CONST char _DtPrMsgPrintSetupBox_0014[];
+extern CONST char _DtPrMsgPrintSetupBox_0015[];
+extern CONST char _DtPrMsgPrintSetupBox_0016[];
+extern CONST char _DtPrMsgPrintSetupBox_0017[];
+extern CONST char _DtPrMsgPrintSetupBox_0018[];
+extern CONST char _DtPrMsgPrintSetupBox_0019[];
+extern CONST char _DtPrMsgPrintSetupBox_0020[];
+extern CONST char _DtPrMsgPrintSetupBox_0021[];
+extern CONST char _DtPrMsgPrintSetupBox_0022[];
+extern CONST char _DtPrMsgPrintSetupBox_0023[];
+extern CONST char _DtPrMsgPrintSetupBox_0024[];
+extern CONST char _DtPrMsgPrintSetupBox_0025[];
+extern CONST char _DtPrMsgPrintSetupBox_0026[];
+extern CONST char _DtPrMsgPrintSetupBox_0027[];
+extern CONST char _DtPrMsgPrintSetupBox_0028[];
+extern CONST char _DtPrMsgPrintSetupBox_0029[];
+extern CONST char _DtPrMsgPrintSetupBox_0030[];
+extern CONST char _DtPrMsgPrintSetupBox_0031[];
+extern CONST char _DtPrMsgPrintSetupBox_0032[];
+extern CONST char _DtPrMsgPrintSetupBox_0033[];
+extern CONST char _DtPrMsgPrintSetupBox_0034[];
+extern CONST char _DtPrMsgPrintSetupBox_0035[];
+extern CONST char _DtPrMsgPrintSetupBox_0036[];
+
+/* 
+ * Message set for PrintSetupBox widget
+ */
+#define        MS_PrintSetupBox                1
+
+/* Message IDs for PrintSetupBox */
+#define PSUB_WARN_WA_LOCATION          1
+#define PSUB_SELECT_PRINTER            2
+#define PSUB_PRINT_TO_FILE             3
+#define PSUB_SELECT_FILE               4
+#define PSUB_CANCEL                    5
+#define PSUB_COPIES                    6
+#define PSUB_HELP                      7
+#define PSUB_PRINT                     8
+#define PSUB_PRINTER_NAME              9
+#define PSUB_SETUP                     10
+#define PSUB_DESCRIPTION               11
+#define PSUB_WARN_COPY_COUNT           12
+#define PSUB_WARN_SETUP_MODE           13
+#define PSUB_WARN_SETUP_MODE_CHANGE    14
+#define PSUB_PRINTER_INFO              15
+#define PSUB_INVALID_PRINTER_TITLE     16
+#define PSUB_INVALID_PRINTER_MESSAGE   17
+#define PSUB_INVALID_DISPLAY_MESSAGE   18
+#define PSUB_NOT_XP_DISPLAY_MESSAGE    19
+#define PSUB_NO_DEFAULT_MESSAGE                20
+#define PSUB_NO_DEFAULT_DISPLAY_MESSAGE        21
+#define PSUB_PRINTER_MISSING_MESSAGE   22
+#define PSUB_WARN_PRINT_DESTINATION    23
+#define PSUB_WARN_CT_CONVERSION                24
+#define PSUB_WARN_CONVERSION_ARGS      25
+#define PSUB_PRLIST_ERROR_TITLE                26
+#define PSUB_NO_PRINTERS_MESSAGE       27
+#define PSUB_DESC_UNAVAILABLE          28
+#define PSUB_SELECT_FILE_TITLE         29
+#define PSUB_PRINTER_INFO_TITLE                30
+#define PSUB_FORMAT_LABEL              31
+#define PSUB_MODEL_LABEL               32
+#define PSUB_PRINTER_LIST_LABEL                33
+#define PSUB_MORE_PRINTERS_TITLE       34
+#define PSUB_PRINT_TO_PRINTER          35
+#define PSUB_FILE_NAME                  36
+#define PSUB_HELP_DLG_TITLE             37
+
+/* 
+ * extern declarations for _DtPrint frame widgets
+ */
+extern CONST char _DtPrMsgPrintOption_0000[];
+extern CONST char _DtPrMsgPrintOption_0001[];
+extern CONST char _DtPrMsgPrintOption_0002[];
+extern CONST char _DtPrMsgPrintOption_0003[];
+extern CONST char _DtPrMsgPrintOption_0004[];
+extern CONST char _DtPrMsgPrintOption_0005[];
+extern CONST char _DtPrMsgPrintOption_0006[];
+extern CONST char _DtPrMsgPrintOption_0007[];
+extern CONST char _DtPrMsgPrintOption_0008[];
+extern CONST char _DtPrMsgPrintOption_0009[];
+/*
+ * Message set for _DtPrint frame widgets
+ */
+#define MS_PrintOptionsSet      2
+/*
+ * Message IDs for _DtPrint frame widgets
+ */
+#define DTPO_MARGINS            1
+#define DTPO_TOP                2
+#define DTPO_RIGHT              3
+#define DTPO_BOTTOM             4
+#define DTPO_LEFT               5
+#define DTPO_HEADERS_N_FOOTERS  6
+#define DTPO_TOP_LEFT           7
+#define DTPO_TOP_RIGHT          8
+#define DTPO_BOTTOM_LEFT        9
+#define DTPO_BOTTOM_RIGHT       10
+/* 
+ * extern declarations for PrintDlgMgr module
+ */
+extern CONST char _DtPrMsgPrintDlgMgr_0000[];
+extern CONST char _DtPrMsgPrintDlgMgr_0001[];
+extern CONST char _DtPrMsgPrintDlgMgr_0002[];
+/*
+ * Message set for PrintDlgMgr module
+ */
+#define MS_PrintDlgMgrSet      3
+/*
+ * Message IDs for PrintDlgMgr module
+ */
+#define DTPDM_SEND_MAIL_LABEL     1
+#define DTPDM_BANNER_LABEL        2
+#define DTPDM_SPOOL_OPTS_LABEL    3
+
+#ifdef I18N_MSG
+extern char * _DtPrintGetMessage(
+                                int set,
+                                int n,
+                                char * s);
+
+#endif /* I18N_MSG */
+
+#endif /* _DtPrintMsgsP_h */
diff --git a/cde/include/Dt/PrintOptionsP.h b/cde/include/Dt/PrintOptionsP.h
new file mode 100644 (file)
index 0000000..6a17226
--- /dev/null
@@ -0,0 +1,199 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */
+
+#ifndef _DT_PRINT_OPTIONSP_H
+#define _DT_PRINT_OPTIONSP_H
+
+/*
+ *+SNOTICE
+ *
+ *     $:$
+ *
+ *     RESTRICTED CONFIDENTIAL INFORMATION:
+ *     
+ *     The information in this document is subject to special
+ *     restrictions in a confidential disclosure agreement between
+ *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
+ *     document outside HP, IBM, Sun, USL, SCO, or Univel without
+ *     Sun's specific written approval.  This document and all copies
+ *     and derivative works thereof must be returned or destroyed at
+ *     Sun's request.
+ *
+ *     Copyright 1994 Sun Microsystems, Inc.  All rights reserved.
+ *
+ *+ENOTICE
+ */
+/*
+                                                                   
+                    Common Desktop Environment
+
+   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
+   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
+   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
+   (c) Copyright 1993, 1994, 1995 Novell, Inc.
+   (c) Copyright 1995 Digital Equipment Corp.
+   (c) Copyright 1995 Fujitsu Limited
+   (c) Copyright 1995 Hitachi, Ltd.
+                                                                   
+
+                     RESTRICTED RIGHTS LEGEND                              
+
+Use, duplication, or disclosure by the U.S. Government is subject to
+restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
+Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
+for non-DOD U.S. Government Departments and Agencies are as set forth in
+FAR 52.227-19(c)(1,2).
+
+Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
+International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
+Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
+Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
+Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A.
+Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
+Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Message Catalog Lookup
+ */
+#define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000)
+#define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001)
+#define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002)
+#define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003)
+#define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004)
+
+#define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005)
+#define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006)
+#define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007)
+#define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008)
+#define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009)
+    
+
+/*
+ * Header/Footer Frame API
+ */
+typedef enum {
+    DTPRINT_OPTION_HEADER_LEFT,
+    DTPRINT_OPTION_HEADER_RIGHT,
+    DTPRINT_OPTION_FOOTER_LEFT,
+    DTPRINT_OPTION_FOOTER_RIGHT
+} _DtPrintHdrFtrEnum;
+
+extern Widget _DtPrintCreateHdrFtrFrame(
+       Widget                  parent,
+       int                     nspecs,
+       char                    **spec_strings,
+       void                    **spec_data
+       );
+
+extern Widget _DtPrintHdrFtrFrameEnumToWidget(
+       Widget                  frame,
+       _DtPrintHdrFtrEnum      which
+       );
+
+extern void _DtPrintHdrFtrFrameMenuWidgets(
+       Widget                  frame,
+       Widget                  *menu,
+       int                     *nmenu_buttons,
+       Widget                  **menu_buttons
+       );
+
+extern void *_DtPrintGetHdrFtrData(
+       Widget                  widget
+       );
+
+extern int _DtPrintGetHdrFtrIndex(
+       Widget                  widget
+       );
+
+extern char *_DtPrintGetHdrFtrString(
+       Widget                  widget
+       );
+
+extern void _DtPrintSetHdrFtrByData(
+       Widget                  widget,
+       void                    *data
+       );
+
+extern void _DtPrintSetHdrFtrByIndex(
+       Widget                  widget,
+       int                     index
+       );
+
+extern void _DtPrintSetHdrFtrByString(
+       Widget                  widget,
+       char                    *string
+       );
+
+
+/*
+ * Margin Frame API
+ */
+typedef enum {
+    DTPRINT_OPTION_MARGIN_TOP,
+    DTPRINT_OPTION_MARGIN_RIGHT,
+    DTPRINT_OPTION_MARGIN_BOTTOM,
+    DTPRINT_OPTION_MARGIN_LEFT
+} _DtPrintMarginEnum;
+
+extern Widget _DtPrintCreateMarginFrame(
+       Widget                  parent
+       );
+
+extern Widget _DtPrintMarginFrameEnumToWidget(
+       Widget                  frame,
+       _DtPrintMarginEnum      which
+       );
+
+extern char* _DtPrintGetMarginSpec(
+       Widget                  margin
+       );
+
+extern void _DtPrintSetMarginSpec(
+       Widget                  margin,
+       char                    *spec
+       );
+
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DT_PRINT_OPTIONSP_H */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PrintSetupBP.h b/cde/include/Dt/PrintSetupBP.h
new file mode 100644 (file)
index 0000000..b6ff530
--- /dev/null
@@ -0,0 +1,536 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PrintSetupBP.h /main/16 1996/11/01 15:00:02 cde-hp $ */
+/*
+ * DtPrint/PrintSetupBP.h
+ */
+/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
+ *     ALL RIGHTS RESERVED
+ * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
+ * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
+ *     HEWLETT-PACKARD COMPANY
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPrintSetupBP_h
+#define _DtPrintSetupBP_h
+
+#include <Xm/BulletinBP.h>
+#include <Dt/Print.h>
+#include <Dt/PrintMsgsP.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * ------------------------------------------------------------------------
+ * Constant Definitions
+ *
+ */
+/*
+ * Message Catalog Lookup
+ */
+#define WARN_WORK_AREA_LOCATION DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_WA_LOCATION, _DtPrMsgPrintSetupBox_0000)
+#define SELECT_PRINTER_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_SELECT_PRINTER, _DtPrMsgPrintSetupBox_0001)
+#define PRINT_TO_FILE_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINT_TO_FILE, _DtPrMsgPrintSetupBox_0002)
+#define SELECT_FILE_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_SELECT_FILE, _DtPrMsgPrintSetupBox_0003)
+#define CANCEL_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_CANCEL, _DtPrMsgPrintSetupBox_0004)
+#define COPIES_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_COPIES, _DtPrMsgPrintSetupBox_0005)
+#define HELP_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_HELP, _DtPrMsgPrintSetupBox_0006)
+#define PRINT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINT, _DtPrMsgPrintSetupBox_0007)
+#define PRINTER_NAME_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINTER_NAME, _DtPrMsgPrintSetupBox_0008)
+#define SETUP_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_SETUP, _DtPrMsgPrintSetupBox_0009)
+#define DESCRIPTION_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_DESCRIPTION, _DtPrMsgPrintSetupBox_0010)
+#define WARN_COPY_COUNT DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_COPY_COUNT, _DtPrMsgPrintSetupBox_0011)
+#define WARN_SETUP_MODE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_SETUP_MODE, _DtPrMsgPrintSetupBox_0012)
+#define WARN_SETUP_MODE_CHANGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_SETUP_MODE_CHANGE, _DtPrMsgPrintSetupBox_0013)
+#define PRINTER_INFO_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINTER_INFO, _DtPrMsgPrintSetupBox_0014)
+#define INVALID_PRINTER_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_INVALID_PRINTER_TITLE, _DtPrMsgPrintSetupBox_0015)
+#define INVALID_PRINTER_MESSAGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_INVALID_PRINTER_MESSAGE, _DtPrMsgPrintSetupBox_0016)
+#define INVALID_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_INVALID_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0017)
+#define NOT_XP_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_NOT_XP_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0018)
+#define NO_DEFAULT_MESSAGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_NO_DEFAULT_MESSAGE, _DtPrMsgPrintSetupBox_0019)
+#define NO_DEFAULT_DISPLAY_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
+    PSUB_NO_DEFAULT_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0020)
+#define PRINTER_MISSING_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
+    PSUB_PRINTER_MISSING_MESSAGE, _DtPrMsgPrintSetupBox_0021)
+#define WARN_PRINT_DESTINATION DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_PRINT_DESTINATION, _DtPrMsgPrintSetupBox_0022)
+#define WARN_CT_CONVERSION DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_CT_CONVERSION, _DtPrMsgPrintSetupBox_0023)
+#define WARN_CONVERSION_ARGS DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_WARN_CONVERSION_ARGS, _DtPrMsgPrintSetupBox_0024)
+#define PRLIST_ERROR_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRLIST_ERROR_TITLE, _DtPrMsgPrintSetupBox_0025)
+#define NO_PRINTERS_MESSAGE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_NO_PRINTERS_MESSAGE, _DtPrMsgPrintSetupBox_0026)
+#define DESC_UNAVAILABLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_DESC_UNAVAILABLE, _DtPrMsgPrintSetupBox_0027)
+#define SELECT_FILE_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_SELECT_FILE_TITLE, _DtPrMsgPrintSetupBox_0028)
+#define PRINTER_INFO_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINTER_INFO_TITLE, _DtPrMsgPrintSetupBox_0029)
+#define FORMAT_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_FORMAT_LABEL, _DtPrMsgPrintSetupBox_0030)
+#define MODEL_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_MODEL_LABEL, _DtPrMsgPrintSetupBox_0031)
+#define PRINTER_LIST_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINTER_LIST_LABEL, _DtPrMsgPrintSetupBox_0032)
+#define MORE_PRINTERS_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_MORE_PRINTERS_TITLE, _DtPrMsgPrintSetupBox_0033)
+#define PRINT_TO_PRINTER_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_PRINT_TO_PRINTER, _DtPrMsgPrintSetupBox_0034)
+#define FILE_NAME_LABEL DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_FILE_NAME, _DtPrMsgPrintSetupBox_0035)
+#define HELP_DLG_TITLE DTPRINT_GETMESSAGE( \
+    MS_PrintSetupBox, PSUB_HELP_DLG_TITLE, _DtPrMsgPrintSetupBox_0036)
+#
+/*
+ * Constants for Use in Allocation Geometry Matrix. 
+ */
+#define DtPSUB_MAX_WIDGETS_VERT        12
+
+/*
+ * ------------------------------------------------------------------------
+ * Type Definitions
+ *
+ */
+/*
+ * data private to default resource procedures
+ */
+typedef struct
+{
+    String printer_name_ct;
+    String printer_name;
+    String description;
+} DtPrintSelectPrinterRec, *DtPrintSelectPrinterList;
+    
+typedef struct _DtPrintDefaultProcData
+{
+    /*
+     * common data
+     */
+    Widget error_message_box;
+    XtEnum messages_hint;
+    Widget help_dialog;
+    /*
+     * select file proc
+     */
+    Widget file_selection_box;
+    /*
+     * select printer proc
+     */
+    Widget printer_selection_box;
+    Widget printer_list_box;
+    String* xp_server_list;
+    int xp_server_count;
+    DtPrintSelectPrinterList* printer_lists;
+    int* printer_counts;
+    int selected_printer;
+    Display* select_printer_info_display;
+#if 0 && defined(PRINTING_SUPPORTED)
+    XPContext select_printer_info_context;
+#endif /* PRINTING_SUPPORT */
+    /*
+     * printer info proc
+     */
+    Widget printer_info_box;
+
+} DtPrintDefaultProcData;
+
+/*
+ * verify state
+ */
+typedef enum {
+    DtPRINT_VERIFIED,
+    DtPRINT_IN_VERIFY,
+    DtPRINT_NOT_VERIFIED
+} DtPrintVerifyState;
+
+/*
+ * Constraint part record for PrintSetupBox widget 
+ */
+typedef struct _DtPrintSetupBoxConstraintPart
+{
+   char unused;
+} DtPrintSetupBoxConstraintPart, * DtPrintSetupBoxConstraint;
+/*
+ * New fields for the PrintSetupBox widget class record  
+ */
+typedef struct
+{
+    XtCallbackProc     list_callback ;
+    XtPointer          extension;      /* Pointer to extension record */
+} DtPrintSetupBoxClassPart;
+/*
+ * Full class record declaration 
+ */
+typedef struct _DtPrintSetupBoxClassRec
+{
+    CoreClassPart              core_class;
+    CompositeClassPart         composite_class;
+    ConstraintClassPart                constraint_class;
+    XmManagerClassPart         manager_class;
+    XmBulletinBoardClassPart   bulletin_board_class;
+    DtPrintSetupBoxClassPart   print_setup_box_class;
+} DtPrintSetupBoxClassRec;
+
+externalref DtPrintSetupBoxClassRec dtPrintSetupBoxClassRec;
+
+/*
+ * New fields for the PrintSetupBox widget record 
+ */
+typedef struct
+{
+    /*
+     * synthetic resources
+     */
+    String file_name;
+    String printer_name;
+    XmString description_string;
+    int copies;
+    /*
+     * flag resources
+     */
+    Boolean minimize_buttons;
+    XtEnum print_destination;
+    XtEnum print_setup_mode;
+    XtEnum work_area_location;
+    /*
+     * procedure resources
+     */
+    DtPrintSetupProc printer_info_proc;
+    DtPrintSetupProc select_file_proc;
+    DtPrintSetupProc select_printer_proc;
+    DtPrintSetupProc verify_printer_proc;
+    /*
+     * callback resources
+     */
+    XtCallbackList cancel_callback;
+    XtCallbackList close_display_callback;
+    XtCallbackList print_callback;
+    XtCallbackList setup_callback;
+    /*
+     * other resources
+     */
+    XrmOptionDescList options;
+    Cardinal option_count;
+    /*
+     * Xp standard resources
+     */
+    XtEnum xp_printer_name_mode;
+    /*
+     * internal flags
+     */
+    Boolean adding_sel_widgets;
+    DtPrintVerifyState verify_printer_state;
+    Boolean copy_count_supported;
+    /*
+     * internal data
+     */
+    String modal_printer_spec;
+    Display* print_display;
+#if 0 && defined(PRINTING_SUPPORTED)
+    XPContext print_context;
+#endif /* PRINTING_SUPPORTED */
+    XtIntervalId timeout_id;
+    /*
+     * descendents
+     */
+    Widget bottom_separator;
+    Widget bottom_work_area;
+    Widget button_separator;
+    Widget copies_control;
+    Widget copies_spin_box;
+    Widget description;
+    Widget description_label;
+    Widget destination_radio_box;
+    Widget file_name_label;
+    Widget file_name_text;
+    Widget help_button;
+    Widget print_button;
+    Widget printer_info_button;
+    Widget printer_name_label;
+    Widget printer_name_text;
+    Widget printer_name_combo;
+    Widget select_file_button;
+    Widget select_printer_button;
+    Widget setup_button;
+    Widget top_separator;
+    Widget top_work_area;
+    /*
+     * data private to the default resource procedures
+     */
+    DtPrintDefaultProcData default_proc_data;
+
+} DtPrintSetupBoxPart;
+
+/*
+ * Full instance record declaration
+ */
+typedef struct _DtPrintSetupBoxRec
+{
+       CorePart                core;
+       CompositePart           composite;
+       ConstraintPart          constraint;
+       XmManagerPart           manager;
+       XmBulletinBoardPart     bulletin_board;
+       DtPrintSetupBoxPart     print_setup_box;
+} DtPrintSetupBoxRec;
+
+/*
+ * ------------------------------------------------------------------------
+ * Macro Definitions
+ *
+ */
+/*
+ * Instance Record Access
+ */
+#define PSUB_AddingSelWidgets(w) \
+    (((DtPrintSetupBoxWidget) w)->print_setup_box.adding_sel_widgets)
+#define PSUB_AutoUnmanage(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.auto_unmanage)
+#define PSUB_BottomSeparator(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_separator)
+#define PSUB_BottomWorkArea(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_work_area)
+#define PSUB_ButtonSeparator(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.button_separator)
+#define PSUB_ButtonFontList(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.button_font_list)
+#define PSUB_CancelButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.cancel_button)
+#define PSUB_CancelCallback(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.cancel_callback)
+#define PSUB_CloseDisplayCallback(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.close_display_callback)
+#if 0 && defined(PRINTING_SUPPORTED)
+#define PSUB_Context(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_context)
+#endif /* PRINTING_SUPPORTED */
+#define PSUB_Copies(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies)
+#define PSUB_CopiesControl(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_control)
+#define PSUB_CopiesSpinBox(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_spin_box)
+#define PSUB_CopyCountSupported(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copy_count_supported)
+#define PSUB_DefaultButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.default_button)
+#define PSUB_DefaultProcData(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.default_proc_data)
+#define PSUB_Description(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description)
+#define PSUB_DescriptionLabel(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_label)
+#define PSUB_DescriptionString(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_string)
+#define PSUB_DestinationRadioBox(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.destination_radio_box)
+#define PSUB_Display(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_display)
+#define PSUB_FileName(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name)
+#define PSUB_FileNameLabel(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_label)
+#define PSUB_FileNameText(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_text)
+#define PSUB_HelpButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.help_button)
+#define PSUB_LabelFontList(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.label_font_list)
+#define PSUB_MarginHeight(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_height)
+#define PSUB_MarginWidth(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_width)
+#define PSUB_MinimizeButtons(w) \
+    (((DtPrintSetupBoxWidget) w)->print_setup_box.minimize_buttons)
+#define PSUB_ModalPrinterSpec(w) \
+    (((DtPrintSetupBoxWidget) w)->print_setup_box.modal_printer_spec)
+#define PSUB_MustMatch(w) \
+    (((DtPrintSetupBoxWidget) w)->print_setup_box.must_match)
+#define PSUB_OptionCount(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.option_count)
+#define PSUB_Options(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.options)
+#define PSUB_PrintButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_button)
+#define PSUB_PrintCallback(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_callback)
+#define PSUB_PrintDestination(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_destination)
+#define PSUB_PrinterInfoButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_button)
+#define PSUB_PrinterInfoProc(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_proc)
+#define PSUB_PrinterName(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name)
+#define PSUB_PrinterNameText(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_text)
+#define PSUB_PrinterNameCombo(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_combo)
+#define PSUB_PrinterNameLabel(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_label)
+#define PSUB_PrintSetupMode(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_setup_mode)
+#define PSUB_SelectFileButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_button)
+#define PSUB_SelectFileProc(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_proc)
+#define PSUB_SelectPrinterButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_button)
+#define PSUB_SelectPrinterProc(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_proc)
+#define PSUB_SetupButton(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_button)
+#define PSUB_SetupCallback(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_callback)
+#define PSUB_Shell(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.shell)
+#define PSUB_StringDirection(w) \
+    (((DtPrintSetupBoxWidget)(w))->manager.string_direction)
+#define PSUB_Text(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.text)
+#define PSUB_TextColumns(w) \
+    (((DtPrintSetupBoxWidget) w)->print_setup_box.text_columns)
+#define PSUB_TextFontList(w) \
+    (((DtPrintSetupBoxWidget) (w))->bulletin_board.text_font_list)
+#define PSUB_TimeoutId(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.timeout_id)
+#define PSUB_TopSeparator(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_separator)
+#define PSUB_TopWorkArea(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_work_area)
+#define PSUB_VerifyPrinterProc(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_proc)
+#define PSUB_VerifyPrinterState(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_state)
+#define PSUB_WorkAreaLocation(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.work_area_location)
+#define PSUB_XpPrinterNameMode(w) \
+    (((DtPrintSetupBoxWidget) (w))->print_setup_box.xp_printer_name_mode)
+
+/*
+ * ------------------------------------------------------------------------
+ * Private Function Declarations
+ *
+ */
+/*
+ * Child Widget Creation Functions
+ */
+extern void _DtPrintSetupBoxCreateButtonSeparator(
+                                                 DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateBottomSeparator(
+                                                 DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateCancelButton(
+                                              DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateCopiesControl(
+                                               DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateDescription(
+                                             DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateDescriptionLabel(
+                                                  DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateDestinationRadioBox(
+                                                     DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateFileNameLabel(
+                                              DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateFileNameText(
+                                              DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateHelpButton(
+                                            DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreatePrintButton(
+                                             DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreatePrinterInfoButton(
+                                                   DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreatePrinterNameLabel(
+                                                  DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreatePrinterNameCombo(
+                                                  DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateSelectFileButton(
+                                                  DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateSelectPrinterButton(
+                                                     DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateSetupButton(
+                                             DtPrintSetupBoxWidget psub);
+extern void _DtPrintSetupBoxCreateTopSeparator(
+                                              DtPrintSetupBoxWidget psub);
+/*
+ * Synthetic resource internal->external conversion functions
+ */
+extern void _DtPrintSetupBoxGetCopies(
+                                     Widget wid,
+                                     int resource_offset,
+                                     XtArgVal *value);
+extern void _DtPrintSetupBoxGetDescription(
+                                          Widget wid,
+                                          int resource_offset,
+                                          XtArgVal *value);
+extern void _DtPrintSetupBoxGetFileName(
+                                       Widget wid,
+                                       int resource_offset,
+                                       XtArgVal *value);
+extern void _DtPrintSetupBoxGetPrinterName(
+                                          Widget wid,
+                                          int resource_offset,
+                                          XtArgVal *value);
+/*
+ * Geometry Management
+ */
+extern XmGeoMatrix _DtPrintSetupBoxGeoMatrixCreate(
+                                                  Widget wid,
+                                                  Widget instigator,
+                                                  XtWidgetGeometry *desired);
+extern Boolean _DtPrintSetupBoxNoGeoRequest(
+                                           XmGeoMatrix geoSpec);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPrintSetupBP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PsubDefProcI.h b/cde/include/Dt/PsubDefProcI.h
new file mode 100644 (file)
index 0000000..22248ad
--- /dev/null
@@ -0,0 +1,75 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PsubDefProcI.h /main/10 1996/11/01 15:00:46 cde-hp $ */
+/*
+ * DtPrint/PsubDefProcI.h
+ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPsubDefProcI_h
+#define _DtPsubDefProcI_h
+
+#include <Dt/Print.h>
+#include <Dt/PrintMsgsP.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * ------------------------------------------------------------------------
+ * Private Function Declarations
+ *
+ */
+extern void _DtPrintDefProcInitialize(Widget w);
+extern void _DtPrintDefProcManageErrorBox(DtPrintDefaultProcData* dpd);
+
+/*
+ * Procedure Resource Defaults
+ */
+extern XtEnum _DtPrintSetupBoxXPrinterInfoProc(
+                                              Widget w,
+                                              DtPrintSetupData* print_data);
+extern XtEnum _DtPrintSetupBoxSelectFileProc(
+                                            Widget w,
+                                            DtPrintSetupData* print_data);
+extern XtEnum _DtPrintSetupBoxSelectXPrinterProc(
+                                                Widget w,
+                                                DtPrintSetupData* print_data);
+extern XtEnum _DtPrintSetupBoxVerifyXPrinterProc(
+                                                Widget w,
+                                                DtPrintSetupData* print_data);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPsubDefProcI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/PsubUtilI.h b/cde/include/Dt/PsubUtilI.h
new file mode 100644 (file)
index 0000000..05a16e9
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
+/*
+ * DtPrint/PsubUtilI.h
+ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+#ifndef _DtPsubUtilI_h
+#define _DtPsubUtilI_h
+
+#include <Dt/Print.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * ------------------------------------------------------------------------
+ * Type Definitions
+ *
+ */
+typedef enum {
+    DtPRINT_DEC_NET,
+    DtPRINT_TCP_IPC,
+    DtPRINT_NET_UNSPECIFIED
+} DtPrintSpecNet;
+
+/*
+ * ------------------------------------------------------------------------
+ * Private Function Declarations
+ *
+ */
+String _DtPrintCreateXPrinterSpecifier(
+                                      String printer_name,
+                                      String host_name,
+                                      DtPrintSpecNet spec_net,
+                                      int display_num,
+                                      int screen_num);
+void _DtPrintFreeStringList(
+                           String* string_list);
+String _DtPrintGetDefaultXPrinterName(
+                                     Widget w);
+String* _DtPrintGetXpPrinterList(
+                                Widget w);
+String* _DtPrintGetXpServerList(
+                               Widget w);
+void _DtPrintParseXDisplaySpecifier(
+                                   const String display_spec,
+                                   String* host_name,
+                                   DtPrintSpecNet* spec_net,
+                                   int* display_num,
+                                   int* screen_num);
+void _DtPrintParseXPrinterSpecifier(
+                                   const String specifier,
+                                   String* printer_name,
+                                   String* display_spec);
+XtEnum _DtPrintVerifyXPrinter(
+                             Widget w,
+                             String printer_spec,
+                             String* new_printer_spec,
+                             Display** new_display
+#if 0 && defined(PRINTING_SUPPORTED)
+                              ,XPContext* new_context
+#endif /* PRINTING_SUPPORTED */
+                              );
+
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtPsubUtilI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Qualify.h b/cde/include/Dt/Qualify.h
new file mode 100644 (file)
index 0000000..c500a7f
--- /dev/null
@@ -0,0 +1,78 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*****************************************************************************
+ *
+ * File:         Qualify.h
+ * RCS:          $XConsortium: Qualify.h /main/3 1995/10/26 15:10:03 rswiston $
+ * Description:  Public header file for the Qualify routine
+ * Project:      DT Runtime Library
+ * Language:     C
+ * Package:      N/A
+ *
+ *   (c) Copyright 1993 by Hewlett-Packard Company
+ *
+ *****************************************************************************/
+
+/*********************************************************************
+ * _DtQualifyWithFirst
+ *
+ * takes:   an unqualified filename like foo.txt, and
+ *          a colon-separated list of pathnames, such as 
+ *                /etc/dt:/usr/dt/config
+ *
+ * returns: a fully qualified filename.  Space for the filename
+ *          has been allocated off the heap using malloc.  It is 
+ *          the responsibility of the calling function to dispose 
+ *          of the space using free.
+ *
+ * example: ...
+ *          char * filename;
+ *          ...
+ *          filename = _DtQualifyWithFirst("configFile",
+ *                          "/foo/first/location:/foo/second/choice");
+ *          < use filename >
+ *          free(filename);
+ *
+ **********************************************************************/
+
+#ifndef _Dt_Qualify_h
+#define _Dt_Qualify_h
+
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif
+
+extern char * _DtQualifyWithFirst
+  (
+   char *,  /* file to locate */
+   char *   /* list of colon-separated paths in which to look */
+  );
+
+#  ifdef __cplusplus
+}
+#  endif
+
+#endif /* _Dt_Qualify_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Saver.h b/cde/include/Dt/Saver.h
new file mode 100644 (file)
index 0000000..d37d7e1
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Saver.h /main/3 1995/10/26 15:10:29 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _dtsaver_h
+#define _dtsaver_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Functions
+ */
+
+extern Boolean DtSaverGetWindows(
+                 Display *display,
+                 Window **window,
+                 int *count);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /*_dtsaver_h*/
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/SaverP.h b/cde/include/Dt/SaverP.h
new file mode 100644 (file)
index 0000000..bb645d5
--- /dev/null
@@ -0,0 +1,112 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SaverP.h /main/4 1995/10/26 15:10:42 rswiston $ */
+/*                                                                            *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.             *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                      *
+ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        Saver.h
+ **
+ **   Description
+ **   -----------
+ **   Variables and declarations needed for
+ **   managing external screen savers
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _dtsaverp_h
+#define _dtsaverp_h
+
+/*************************************<->*************************************
+ *
+ *  _DtSaverStart()
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Store provided array of windows on root window property
+ *  _DT_SAVER_WINDOWS and launch specified screen saver. Screen savers
+ *  will attempt to use these windows as drawables.
+ *
+ *  Inputs:
+ *  ------
+ *  display - display structure
+ *  drawArea - array of widgets to be drawn upon by screen saver
+ *  count - number of elements in drawArea array
+ *  saverAction - screen saver action to invoke
+ *  wAction - action UI widget
+ *
+ *  Outputs:
+ *  -------
+ *
+ *  Return:
+ *  -------
+ *  state - pointer to opaque state structure
+ *
+ *  Comments:
+ *  --------
+ *  This function uses _DtActionInvoke() to launch an action. As a result,
+ *  the caller is responsible for loading and maintaining the action database
+ *  using the DtDbLoad() function and procedures. The caller
+ *  must call _DtSaverStop() to terminate screen saver
+ *
+ *************************************<->***********************************/
+
+extern void * _DtSaverStart(Display *, Widget *, int, char *, Widget);
+
+/*************************************<->*************************************
+ *
+ *  _DtSaverStop()
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Stop an external screen saver started with DtStartSaver(). Deletes
+ * _DT_SAVER_WINDOWS property from root window.
+ *
+ *  Inputs:
+ *  ------
+ *  display - display structure
+ *  state - state returned from _DtSaverStart()
+ *
+ *  Outputs:
+ *  -------
+ *
+ *  Return:
+ *  -------
+ *
+ *  Comments:
+ *  --------
+ *
+ *************************************<->***********************************/
+
+extern void _DtSaverStop(Display *, void *);
+
+
+#endif /*_dtsaverp_h*/
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Search.h b/cde/include/Dt/Search.h
new file mode 100644 (file)
index 0000000..57c35de
--- /dev/null
@@ -0,0 +1,285 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 27
+ *
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1994,1995
+ *   All Rights Reserved
+ *   Licensed Materials - Property of IBM
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+#ifndef _Search_h
+#define _Search_h
+/********************** Search.h ***********************
+ * $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $
+ * Jan 1994.
+ * Public header file for DtSearch/AusText API.
+ * Formerly named ausapi.h.  Externals renamed
+ * from ausapi_... or aa_... to DtSearch conventions.
+ * Documentation in dtsearch.doc.
+ *
+ */
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE  1
+#endif
+#include <time.h>
+#include <stdio.h>
+#include <string.h>
+
+#if defined(__linux__)
+# define __SVR4_I386_ABI_L1__
+#endif
+#include <limits.h>
+#if defined(__linux__)
+# undef __SVR4_I386_ABI_L1__
+# ifndef WORD_BIT
+# define WORD_BIT 32
+# endif
+# ifndef LONG_BIT
+# define LONG_BIT 32
+# endif
+#endif
+
+#define DtSrVERSION            "0.6"
+#define DtSrMAXHITS            20
+#define DtSrMAX_KTNAME         13
+#define DtSrMAX_DB_KEYSIZE     32
+#define DtSrMAXWIDTH_HWORD     134
+#define DtSrMAX_STEMCOUNT      8
+
+/****************************************/
+/*                                     */
+/*             RETURN CODES            */
+/*                                     */
+/****************************************/
+#define DtSrOK         0       /* normal, successful response */
+#define DtSrPASSWD     1       /* failed communications authentication */
+#define DtSrNOTAVAIL   2       /* no hits on search, no such rec, etc */
+#define DtSrFAIL       3       /* misc unsuccessful engine returns */
+#define DtSrREINIT     4       /* engine reinitialized, request canceled */
+#define DtSrERROR      5       /* fatal caller (client) program error */
+#define DtSrABORT      6       /* fatal engine failure, caller must abort */
+#define DtSrCOMM       7       /* fatal communications failure */
+
+/* In order to share databases among heterogenous machines,
+ * certain integer types must be defined that are invariably
+ * 2 and 4 bytes on all architectures.
+ * Note WORD_BIT == 32 does not guarantee short == 16.
+ */
+#if   (WORD_BIT == 16)
+  typedef int            DtSrINT16;
+  typedef unsigned int   DtSrUINT16;
+#elif (WORD_BIT == 32)                                       
+  typedef short                  DtSrINT16;    
+  typedef unsigned short  DtSrUINT16;
+#else                                       
+#error Unable to typedef DtSrINT16 and DtSrUINT16
+#endif
+   
+#if   (WORD_BIT == 32)
+  typedef int            DtSrINT32;
+  typedef unsigned int   DtSrUINT32;
+#elif (LONG_BIT == 32)
+  typedef long           DtSrINT32;
+  typedef unsigned long          DtSrUINT32;
+#else                                                      
+#error Unable to typedef DtSrINT32 and DtSrUINT32         
+#endif
+
+#ifndef DB_ADDR        
+  typedef DtSrINT32      DB_ADDR;      /* vista.h: must be 4 bytes */
+#endif
+
+#ifndef TRUE
+#define TRUE   1
+#endif
+#ifndef FALSE
+#define FALSE  0
+#endif
+
+typedef DtSrUINT32     DtSrObjdate;
+
+
+/****************************************/
+/*                                     */
+/*             DtSrKeytype             */
+/*                                     */
+/****************************************/
+typedef struct {
+    char       is_selected;         /* TRUE: user has selected this keytype */
+    char       ktchar;              /* first char of opera record key */
+    char       name [DtSrMAX_KTNAME+1]; /* label string used in UI */
+}      DtSrKeytype;
+
+/****************************************/
+/*                                     */
+/*             DtSrResult              */
+/*                                     */
+/****************************************/
+/* DtSrResult ormerly DITTO.  DtSrObj types formerly ORT_. */
+typedef struct _DtSrResult {
+    struct _DtSrResult *link;  /* ptr to next list node */
+    DtSrUINT32 flags;          /* (reserved) */
+    DtSrINT32  objflags;       /* flags from object record */
+#define DtSrFlDELETE    (1<<0)  /* (reserved) */
+#define DtSrFlOLDNOTES  (1<<1)  /* (reserved) */
+#define DtSrFlNOTAVAIL  (1<<2)  /* object not retrievable from engine */
+    DtSrUINT32 objuflags;      /* user flags from database rec */
+    DtSrINT32  objsize;        /* in uncompressed bytes */
+    DtSrObjdate        objdate;        /* zero means object 'undated' */
+    DtSrINT16  objtype;        /* from database record */
+#define DtSrObjUNKNOWN 0    /* object type unknown or not applicable */
+#define DtSrObjTEXT    1    /* generic, unformatted flat text */
+#define DtSrObjBINARY  2    /* generic binary object */
+#define DtSrObjSGML    3    /* generic SGML formatted document */
+#define DtSrObjHTML    4    /* HTML formatted document */
+#define DtSrObjPOSTSCR 6    /* Postscript document */
+#define DtSrObjINTERLF 7    /* Interleaf document */
+#define DtSrObjDTINFO  8    /* DtInfo document */
+    DtSrINT16  objcost;        /* (reserved) */
+    int                dbn;            /* dbnamesv index */
+    DB_ADDR    dba;            /* data base addr within database */
+    DtSrINT16  language;       /* language of the database */
+#define DtSrLaENG      0    /* English, ASCII char set (default) */
+#define DtSrLaENG2     1    /* English, ISO Latin-1 char set */
+#define DtSrLaESP      2    /* Spanish, ISO Latin-1 char set */
+#define DtSrLaFRA      3    /* French, ISO Latin-1 char set */
+#define DtSrLaITA      4    /* Italian, ISO Latin-1 char set */
+#define DtSrLaDEU      5    /* German, ISO Latin-1 char set */
+#define DtSrLaJPN      6    /* Japanese, EUC, auto kanji compounds */
+#define DtSrLaJPN2     7    /* Japanese, EUC, listed kanji compounds */
+#define DtSrLaLAST     7   /* Last supported DtSrLa constant */
+    char       reckey [DtSrMAX_DB_KEYSIZE]; /* object's db key */
+    int                proximity;      /* 'distance' of object from query */
+    char       *abstractp;     /* object's abstract from db*/
+}      DtSrResult;
+
+/****************************************/
+/*                                     */
+/*              DtSrHitword            */
+/*                                     */
+/****************************************/
+typedef struct {
+    long       offset;         /* word location in cleartext */
+    long       length;         /* length of word */
+}      DtSrHitword;
+
+
+/************************************************/
+/*                                             */
+/*                Functions                    */
+/*                                             */
+/************************************************/
+extern void    DtSearchAddMessage (char *msg);
+extern int     DtSearchHasMessages (void);
+extern char    *DtSearchGetMessages (void);
+extern void    DtSearchFreeMessages (void);
+extern int     DtSearchGetMaxResults (void);
+extern void    DtSearchSetMaxResults (int new_max_results);
+extern char    *DtSearchFormatObjdate (DtSrObjdate objdate);
+extern void    DtSearchExit (int return_code);
+extern void    DtSearchAddUserExit (void (*user_exit)(int));
+extern void    DtSearchRemoveUserExit (void);
+
+extern int     DtSearchSortResults (DtSrResult **list, int sort_type);
+  #define DtSrSORT_PROX        1       /* sort on proximity */
+  #define DtSrSORT_DATE        2       /* sort on objdate */
+extern int     DtSearchMergeResults (DtSrResult **targ, DtSrResult **src);
+extern int     DtSearchFreeResults (DtSrResult **list);
+extern DtSrObjdate
+               DtSearchValidDateString (char *date_string);
+extern int     DtSearchInit (
+                       char    *argv0,
+                       char    *userid,
+                       long    switches,
+                       char    *config_file,
+                       FILE    *err_file,
+                       char    ***dbnames,
+                       int     *dbcount);
+  /* Bit values valid for switches argument: */
+  #define DtSrInNOLOCALE   0x0001L  /* do not exec setlocale() */
+  #define DtSrInSIGNAL     0x0002L  /* register abort signal handlers */
+  #define DtSrInUSEROCF    0x0004L  /* (reserved) */
+  #define DtSrInENAB_NOHUP 0x0008L  /* enab nohup for backgnd progms */
+  #define DtSrInIDEBUG     0x0010L  /* set initialization debugging */
+  #define DtSrInSDEBUG     0x0020L  /* set search debugging */
+  #define DtSrInRDEBUG     0x0040L  /* set retrieval debugging */
+  #define DtSrInCDEBUG     0x0080L  /* set communications debugging */
+  #define DtSrInANY_DEBUG \
+       (DtSrInIDEBUG | DtSrInSDEBUG | DtSrInRDEBUG | DtSrInCDEBUG)
+  #define DtSrInRDWR       0x0100L  /* open db files for read and write */
+
+extern int     DtSearchReinit (
+                       char            ***dbnames,
+                       int             *dbcount);
+
+extern int     DtSearchGetKeytypes (
+                       char            *dbname,
+                       int             *ktcount,
+                       DtSrKeytype     **keytypes);
+
+extern int     DtSearchQuery (
+                       void            *qry,
+                       char            *dbname,
+                       int             search_type,
+                       char            *date1,
+                       char            *date2,
+                       DtSrResult      **results,
+                       long            *resultscount,
+                       char            *stems,
+                       int             *stemcount);
+
+extern int     DtSearchRetrieve (
+                       char            *dbname,
+                       DB_ADDR         dba,
+                       char            **cleartext,
+                       long            *clearlen,
+                       int             *fzkeyi);
+
+extern int     DtSearchHighlight (
+                       char            *dbname,
+                       char            *cleartext,
+                       DtSrHitword     **hitwptr,
+                       long            *hitwcount,
+                       int             search_type,
+                       char            *stems,
+                       int             stemcount);
+
+/********************** Search.h ***********************/
+#endif  /* _Search_h */
diff --git a/cde/include/Dt/SearchE.h b/cde/include/Dt/SearchE.h
new file mode 100644 (file)
index 0000000..d9e7a1d
--- /dev/null
@@ -0,0 +1,639 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 27
+ *
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1991,1995
+ *   All Rights Reserved
+ *   Licensed Materials - Property of IBM
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+#ifndef _SearchE_h
+#define _SearchE_h
+/***************************** SearchE.h ******************************
+ * $XConsortium: SearchE.h /main/5 1996/08/12 13:16:47 cde-ibm $
+ * August 1991.
+ * Header file for online DtSearch Engine (OE.C etc).
+ * SearchE.h was formerly called oe.h (Opera Engine).
+ * The old OE engine is pretty much invisible now, having
+ * been surrounded by the ausapi/DtSearch interface.
+ * 
+ * The main data structure for passing and receiving arguments
+ * between the callers and the engine is USRBLK which is
+ * the only argument in the Opera_Engine() call.
+ * The actual input and output arguments in the USRBLK for each
+ * function are described below with the function description.
+ * 
+ * All OE_functions pass a return code
+ * to the caller.  OE_OK = successful completion,
+ * anything else may be partial completion/success or failure.
+ * Return code mnemonics are also defined below.
+ *
+ * $Log$
+ * Revision 2.7  1996/03/20  19:11:21  miker
+ * Changed prototype of hilite_cleartext().
+ *
+ * Revision 2.6  1996/03/13  22:34:53  miker
+ * Changed char to UCHAR several places.
+ *
+ * Revision 2.5  1996/03/05  19:17:50  miker
+ * oe_unblob no longer converts to uppercase.
+ *
+ * Revision 2.4  1996/03/05  15:54:06  miker
+ * Minor changes to support yacc-based boolean search.
+ *
+ * Revision 2.3  1996/02/01  16:14:38  miker
+ * Obsoleted requests OE_DITTO2KWIC, OE_VALIDATE_PWD, OE_CHANGE_PWD,
+ * OE_FINDSTR_REC, OE_FINDSTR_HITL, OE_ASSIST, OE_KILL.
+ * Restored OE_PING as the official "null" function.
+ * Added USRDBG_HILITE and USRDBG_PARSE.
+ * Replaced STRKIND, OE_kind_of_stems, and oe_stems_to_hitwords
+ * with hilite_cleartext.  Deleted oe_ditto2kwic, oe_findstr_hitl.
+ * Deleted usrblk.kwiclen.
+ *
+ * Revision 2.2  1995/10/25  22:35:45  miker
+ * Added prolog.
+ *
+ * Revision 2.1  1995/09/22  22:39:39  miker
+ * Freeze DtSearch 0.1, AusText 2.1.8
+ *
+ * Revision 1.1  1995/08/31  20:42:33  miker
+ * Initial revision
+ *
+ * The DtSearch return codes wrap around the OE return codes.
+ */
+#include "SearchP.h"
+
+#define AUDIT_FORMAT   "UID=%-8s TIME=%s ELAP=%-3ld DB=%-8s HITS=%-5ld "
+#define AUDIT_WHOWHEN  "UID=%-8s TIME=%s"
+#define DISCARD_FORMAT "%s\t\"%s\"\t%s\t%s\n"
+#define HARDCOPY_SCRIPT "opprt.bat"
+#define MAX_HITWCOUNT  200     /* max number hitwords that can be hilited */
+#define WORDS_HITLIMIT 300000L
+
+
+/*-------------------- Request Codes ------------------------
+ * All Engine requests, in addition to input below, require valid
+ *     usrblk.userid
+ *     usrblk.request.
+ * All Engine requests, in addition to output below,
+ *     may return ausapi_msglist.
+ * There is no zero request code.
+ * See list of return codes for the ones that are marked 'common retncodes'.
+ */
+
+#define OE_INITIALIZE  1
+/* does lotsa stuff--see the function.
+ * input:
+ *     .query =        AUSAPI_VERSION of UI code
+ *     .dblist =       data from user config file
+ *     .dblk =         data from user config file
+ * output:
+ *     .dblist =       modified after load of site config file
+ *     .dblk =         modified after load of site config file
+ *     .retncode =     OE_OK, OE_NOTAVAIL, OE_ABORT
+ */
+
+#define OE_TEXT2FZKEY  2
+/* converts problem description text to fzkey.
+ * input:
+ *     .query =        problem description text
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .fzkey =        inference from query text analysis
+ *     .retncode =     common retncodes + OE_BAD_QUERY
+ */
+
+#define OE_SRCH_FZKEY  3
+/* Converts fzkey to hitlist of dba's.
+ * Not available for databases without semantic dictionaries.
+ * input:
+ *     .fzkey =        database search vector
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .workproc =     function to be called until !OE_SEARCHING
+ *     .dittolist =    hitlist sorted by proximity
+ *     .dittocount =   # of nodes on dittolist
+ *     .retncode =     common retncodes + OE_SEARCHING, OE_NOTAVAIL,
+ *                     OE_USER_STOP, OE_SYSTEM_STOP, OE_BAD_QUERY
+ */
+
+#define OE_SRCH_STEMS  4
+/* converts string of wordstems and booleans to
+ * hitlist of dba's and stems array.
+ * input:
+ *     .query =        text string of wordstems and booleans
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .fzkey =        (value undefined)
+ *     .workproc =     function to be called until !OE_SEARCHING
+ *     .dittolist =    hitlist
+ *     .dittocount =   # of nodes on dittolist
+ *     .stems =        array of stems for hiliting in text of hits
+ *     .stemcount =    size of 'stems' array
+ *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
+ *                     OE_NOTAVAIL, OE_USER_STOP
+ */
+
+#define OE_SRCH_WORDS  5
+/* converts string of exact words and booleans to
+ * hitlist of dba's and stems array.
+ * input:
+ *     .query =        text string of exact words and booleans
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .fzkey =        (value undefined)
+ *     .workproc =     function to be called until !OE_SEARCHING
+ *     .dittolist =    hitlist
+ *     .dittocount =   # of nodes on dittolist
+ *     .stems =        array of words for hiliting in text of hits
+ *     .stemcount =    size of 'stems' array
+ *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
+ *                     OE_NOTAVAIL, OE_USER_STOP
+ */
+
+#define OE_STOP_SRCH   6
+/* sets global switch to cancel search work procedure.
+ * workproc actually cancels itself after reading switch.
+ * input:      .request =      OE_STOP_SEARCH
+ * output:     .retncode =     'common retncodes' only
+ */
+
+#define OE_APPEND_NOTES  7
+/* appends user's notes to record at current dba.
+ * input:
+ *     .query =        freeform text of append
+ *     .dba =          address of record to append
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .retncode =     common retncodes + OE_TIMEOUT, OE_DISABLED
+ */
+
+#define OE_GETREC      8
+/* retrieves record, cleartext, and notes for specified dba.
+ * Clears hitwords array, does not use or change stems array.
+ * input:
+ *     .dba =          address of record to retrieve
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .objrec =       austext record itself, as is from vista
+ *     .cleartext =    NULL or uncompressed text string
+ *     .clearlen =     0 or size of cleartext
+ *     .hitwords =     array pointer cleared to NULL
+ *     .hitwcount =    size of hitwords array set to 0
+ *     .notes =        NULL, or list of notes records, as is
+ *     .retncode =     common retncodes + OE_NOTAVAIL
+ */
+
+#define OE_GETREC_STEMS   9
+/* retrieves record, cleartext, notes, and hitwords
+ * array for specified dba and stems (from OE_SRCH_STEMS).
+ * If no text in repository, equivalent to OE_GETREC.
+ * input:
+ *     .dba =          address of record to retrieve
+ *     .stems =        array of word stems to hilite
+ *     .stemcount =    size of stems array
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .objrec =       austext record itself, as is from vista
+ *     .cleartext =    NULL or uncompressed text string
+ *     .clearlen =     0 or size of cleartext
+ *     .hitwords =     NULL or array of words in cleartext to hilite
+ *     .hitwcount =    0 or size of hitwords array
+ *     .notes =        NULL, or list of notes records, as is
+ *     .retncode =     common retncodes + OE_NOTAVAIL
+ */
+
+#define OE_GETREC_WORDS   10
+/* retrieves record, cleartext, notes, and hitwords
+ * array for specified dba and stems array (from OE_SRCH_WORDS).
+ * If no text in repository, equivalent to OE_GETREC.
+ * input:
+ *     .dba =          address of record to retrieve
+ *     .stems =        array of exact words to hilite
+ *     .stemcount =    size of stems array
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .objrec =       austext record itself, as is from vista
+ *     .cleartext =    NULL or uncompressed text string
+ *     .clearlen =     0 or size of cleartext
+ *     .hitwords =     NULL or array of words in cleartext to hilite
+ *     .hitwcount =    0 or size of hitwords array
+ *     .notes =        NULL, or list of notes records, as is
+ *     .retncode =     common retncodes + OE_NOTAVAIL
+ */
+
+#define OE_NEXT_DBA    11
+/* advances dba to next valid b-tree address.  Wraps if necessary.
+ * input:
+ *     .dba =          current address of record
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .dba =          address of next record in b-tree
+ *     .retncode =     common retncodes + OE_WRAPPED
+ */
+
+#define OE_PREV_DBA    12
+/* retreats dba to previous valid b-tree address.
+ * Wraps if necessary.
+ * input:
+ *     .dba =          current address of record
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .dba =          address of previous record in b-tree
+ *     .retncode =     common retncodes + OE_WRAPPED
+ */
+
+#define OE_RECKEY2DBA  13
+/* converts an austext record key into a dba.  Wraps if not found.
+ * input:
+ *     .query =        desired record key
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .dba =          address of record found,
+ *                     or next avail address if not found
+ *     .retncode =     common retncodes + OE_WRAPPED
+ */
+
+#define OE_MARK_DELETION  14
+/* writes record id to an external file for
+ * possible later deletion by external program.
+ * input:
+ *     .query =        record key to be marked for deletion
+ *     .dblk =         database where record is located
+ * output:
+ *     .retncode =     common retncodes + OE_NOTAVAIL, OE_DISABLED
+ */
+
+#define OE_GETREC_DIC  15
+/* THIS FUNCTION IS NO LONGER SUPPORTED.
+ * IF RECEIVED BY ENGINE, IT IS TREATED EXACTLY AS OE_GETREC.
+ * Retrieves record, cleartext, notes, and hitwords
+ * array for specified dba.  Hitwords are not derived from the
+ * stems array; they are all the cleartext words that are in
+ * the dictionary. (Compare to OE_GETREC_WORDS and OE_GETREC_STEMS).
+ * If no text in repository, equivalent to OE_GETREC.
+ * input:
+ *     .dba =          address of record to retrieve
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .objrec =       austext record itself, as is from vista
+ *     .cleartext =    NULL or uncompressed text string
+ *     .clearlen =     0 or size of cleartext
+ *     .hitwords =     NULL or array of words in cleartext to hilite
+ *     .hitwcount =    0 or size of hitwords array
+ *     .notes =        NULL, or list of notes records, as is
+ *     .retncode =     common retncodes + OE_NOTAVAIL
+ */
+
+#define OE_DITTO2KWIC  16
+#define OE_VALIDATE_PWD        17
+#define OE_CHANGE_PWD  18
+/* (These functions are obsolete) */
+
+#define OE_DELETE_RECID        19
+/* Deletes header record, all text, user notes,
+ * and word/stems references for specified record.
+ * Currently can only be called from offline program
+ * when all online austext users have been logged off.
+ * THIS FUNCTION IS <<<VERY>>> SLOW (about 15 min on large dbase)!
+ * input:
+ *     .query =        desired record key
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .dba =          address of record deleted
+ *                     THIS ADDRESS IS NO LONGER VALID!
+ *     .dbatab =       (undefined)
+ *     .dbacount =     1
+ *     .retncode =     common retncodes + OE_NOTAVAIL
+ */
+
+#define OE_DELETE_BATCH        20
+/* Deletes header records, all text, user notes,
+ * and word/stems references for all records in a 
+ * datbase address table.  Currently can only be called
+ * from offline program when all online austext users
+ * have been logged off.  This function is the preferred 
+ * deletion method because it is faster than deleting
+ * single records at a time.  Addresses not found are ignored.
+ * input:
+ *     .dblk =         desired database and db parameters
+ *     .dbatab =       table of valid addresses to be deleted
+ *     .dbacount =     number of addresses on the table
+ * output:
+ *     .retncode =     common retncodes only
+ */
+
+#define OE_ASSIST      21
+#define OE_FINDSTR_REC 22
+#define OE_FINDSTR_HITL        23
+/* (These functions are obsolete) */
+
+#define OE_SRCH_STATISTICAL    24
+/* Converts string of natural language text to
+ * hitlist of dba's and stems array.  Uses stems only,
+ * no booleans, all words are ORed together.  Hitlist sorted
+ * based on statistics of included word stems.
+ * input:
+ *     .query =        natural language text string
+ *     .dblk =         desired database and db parameters
+ * output:
+ *     .stems =        array of stems for hiliting in text of hits
+ *     .stemcount =    size of 'stems' array (up to max allowed)
+ *     .workproc =     function to be called until !OE_SEARCHING
+ *     .dittolist =    hitlist
+ *     .dittocount =   # of nodes on dittolist
+ *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
+ *                     OE_NOTAVAIL, OE_USER_STOP
+ */
+
+#define OE_HILITE_STEMS   25
+/* Creates a hitwords array for hiliting using the text
+ * in cleartext (however it may have been obtained),
+ * and the stems array from the last search.
+ * input:
+ *     .cleartext =    text to be hilited
+ *     .clearlen =     size of cleartext
+ *     .stems =        array of words or stems to hilite
+ *     .stemcount =    size of stems array
+ *     .search_type =  'W', 'P' or 'S', indicating type of
+ *                     search that generated stems array.
+ * output:
+ *     .hitwords =     array of words in cleartext to hilite
+ *     .hitwcount =    size of hitwords array
+ *     .retncode =     common retncodes + OE_NOTAVAIL, OE_BAD_QUERY
+ */
+
+#define OE_GET_EXPIRE  26
+/* Returns in 'dba' field the expiration date of OE as a timestamp.
+ * Zero means no expiration date.  Overlays previous value in dba.
+ * input:      .request =      OE_GET_EXPIRE
+ * output:     .dba =          unix timestamp of expiration date or 0  
+ *             .retncode =     common retncodes only
+ */
+
+#define OE_KILL                9997
+#define OE_PING                9998
+#define OE_SHUTDOWN    9999
+/* (These functions are obsolete) */
+
+/*-------------------- Return Codes ------------------------
+ * The return codes marked 'common retncodes' are OE_OK, OE_NOOP, OE_REINIT,
+ * and OE_ABORT, and can be returned by almost all functions.
+ * OE_BAD_QUERY will be returned for any unknown function request.
+ * There is no zero return code.
+ */
+#define        OE_OK           1       /* normal successful completion */
+#define OE_REINIT      2       /* request canceled: OE reinitialized
+                                * databases so UI's dba's may be bad */
+#define OE_SEARCHING   3       /* keep calling workproc */
+#define OE_BAD_DBLK    4
+#define OE_BAD_REQUEST 5       /* invalid request field */
+#define OE_BAD_QUERY   6       /* invalid query or other input fld */
+#define OE_NOTAVAIL    7       /* no record, hits, function disabled */
+#define OE_TIMEOUT     8
+#define OE_WRAPPED     9       /* got next item instead of reqstd item */
+#define OE_SYSTEM_STOP 10      /* error: search canceled by OE */
+#define OE_BAD_PASSWD  11      /* invalid password */
+#define OE_BAD_HITLIST 12      /* invalid hitlist */
+#define OE_DISABLED    13      /* requested function disabled at this site */
+#define OE_USER_STOP   14      /* search canceled by user */
+#define OE_BAD_COMM    15      /* request canceled by comm layer */
+#define OE_NOOP                888     /* No Operation, nothing done */
+#define OE_ABORT       999     /* fatal OE error, OE permanently disabled */
+
+
+/****************************************/
+/*                                     */
+/*             OEFTAB                  */
+/*                                     */
+/****************************************/
+/* Table used in load_ocf() oe_uninitialize() to allow overriding default
+ * locations of various files.  Complete discussion in .ocf documentation.
+ */
+typedef struct
+       {
+       char    *id;                    /* keyword identifier */
+       char    **OEFptr;               /* addr of variable to change */
+       char    previously_specified;   /* bool ensures only one spec */
+       } OEFTAB;
+
+/****************************************/
+/*                                     */
+/*             USRBLK                  */
+/*                                     */
+/****************************************/
+typedef struct
+    {
+    char       userid [10];    /* 1 - 8 alphanumeric char */
+    int                search_type;    /* single char = curr search type.
+                                * 'T' = Semantic Text search
+                                * 'W' = Exact Words search
+                                * 'S' = Stems search
+                                * 'Z' = Fzkey search
+                                * 'N' = Navigator string (unpacked fzk) srch
+                                * 'P' = Statistical (Probabilistic) search
+                                */
+
+    long       flags;          /* bit switches... */
+#define        USR_BIT_1       0x0001L /* (reserved) */
+#define USR_NO_ITERATE 0x0002L /* override iterations in workprocs */
+#define USR_STOPSRCH   0x0004L /* the "stop" button, cancels workproc */
+#define USR_MAXMIN     0x0008L /* symdif() algorithm = fuzzy max min */
+#define USR_OBJDATES   0x0010L /* restrict hitlists to objdate ranges */
+#define USR_KWIC_ABSTR 0x0020L /* retn KeyWord In Context for abstract */
+#define USR_NO_INFOMSGS        0x0040L /* do not retn information-only msgs to UI */
+#define USR_MAXHITS_MSG        0x0080L /* show # hits each keytype if sum > maxhits */
+#define USR_SORT_WHITL 0x0100L /* sort word/stem hitlists by semantics */
+
+    long       debug;          /* Nonproduction bit switches */
+#define USRDBG_RARE    0x0001L /* 1 Misc initialzatn trace msgs */
+#define USRDBG_SRCHCMPL        0x0002L /* 2 trace ui search_completed functions */
+#define USRDBG_RETRVL  0x0004L /* 4 trace record retrieval funcs */
+#define USRDBG_ITERATE 0x0008L /* 8 forces iteration on all iterable cmds */
+#define USRDBG_UTIL    0x0010L /* 16 trace misc utility functions */
+#define USRDBG_MEDPRMPT        0x0020L /* 32 Prints prompt of medley sockets cmds */
+#define USRDBG_HITLIST 0x0040L /* 64 print hitlists after searches */
+#define USRDBG_SYMP    0x0080L /* 128 trace symptom search funcs */
+#define USRDBG_DELETE  0x0100L /* 256 trace record deletion functions */
+#define USRDBG_RPC     0x0200L /* 512 trace RPC communications funcs */
+#define USRDBG_VERBOSE 0x0400L /* 1024 verbose debugging: iterative details */
+#define USRDBG_HILITE  0x0800L /* 2048 trace hiliting functions */
+#define USRDBG_PARSE   0x1000L /* 4096 trace linguistic parse/stem funcs */
+#define USRDBG_BOOL    0x2000L /* 8192 trace boolean parse funcs */
+
+    int                request;
+    int                retncode;
+    char       *query;           /* input data for text searches */
+    DtSrObjdate        objdate1;         /* only retn hit objects >= (after) date1 */
+    DtSrObjdate        objdate2;         /* only retn hit objects <= (before) date2 */
+    DB_ADDR    dba;              /* for direct dba reads */
+    DB_ADDR    *dbatab;          /* array of dba's for batch deletes */
+    int                dbacount;         /* # of dba's in dbatab */
+    void       (*workproc) (void);
+       /* (1) If single tasking (iterative), OE places ptr to work
+       procedure.  (2) If multitasking (no iterations), UI places
+       ptr of func to call when OE's spawned subtask is done. */
+
+    DBLK       *dblist;        /* linked list of all databases */
+    DBLK       *dblk;          /* users curr database selection */
+
+    DtSrResult *dittolist;     /* hitlist retnd from various searches */
+    long       dittocount;     /* # of items on hitlist */
+    int                stemcount;      /* # of wordstems in 'stems' array */
+    char       stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD];
+                               /* for hiliting words in text records */
+
+    struct or_objrec  objrec;  /* austext record buffer */
+    char       *abstrbuf;      /* buf to hold abstracts */
+    int                abstrbufsz;     /* maximum abstract size all databases */
+    char       *cleartext;     /* decompressed austext record text */
+    long       clearlen;       /* size of cleartext in bytes */
+    LLIST      *notes;         /* uncompressed, right out of vista */
+    DtSrHitword        *hitwords;      /* array of hit words inside cleartext */
+    long       hitwcount;      /* number of elements in hitwords array */
+
+    }   USRBLK;
+
+
+
+/****************************************/
+/*                                     */
+/*             SAVEUSR                 */
+/*                                     */
+/****************************************/
+/* The following data is saved between calls of the workprocs.
+ * In a future msg passing protocol where there may be multiple UIs
+ * per OE, this data would be maintained in a list of structures,
+ * one for each currently active search (UI only passes user id name
+ * in iterative calls, OE searches list to match curr status).
+ * But for now, this will have to do.
+ */
+typedef struct
+    {
+    time_t     start_time;
+    int                iterations;
+    int                vistano;
+    DtSrResult *dittolist;
+    long       dittocount;
+    int                stemcount;
+    char       stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD];
+    char       ktchars [MAX_KTCOUNT + 2];
+    char       *lastqry;
+    long       ktsum [MAX_KTCOUNT + 1];
+    }  SAVEUSR;
+
+
+/*--------------- GLOBALS in oe.c, loadocf.c -------------------*/
+extern char    **ausapi_dbnamesv;
+extern int     ausapi_dbnamesc;
+extern USRBLK  usrblk;
+
+extern char    *global_memory_ptr;
+extern OEFTAB  oef_table[];
+extern SAVEUSR saveusr;        /* (only one for now) */
+extern int     shm_id;
+
+extern int     OE_bmhtab_strlen [DtSrMAX_STEMCOUNT];
+extern size_t  OE_bmhtables [DtSrMAX_STEMCOUNT] [MAX_BMHTAB];
+extern int     OE_dbn;
+extern int     OE_enable_markdel;
+extern int     OE_enable_usernotes;
+extern time_t  *OE_expiration;
+extern int     OE_fastdecode;
+extern char    *OE_fileio;
+extern long    OE_flags;
+#define OE_AUDIT      1L       /* enables audit file logging */
+#define OE_INITOK     (1L<<1)  /* ensures first reqst was INITIALIZE */
+#define OE_PERMERR    (1L<<2)  /* disables engine on fatal errors */
+#define OE_NO_ITERATE (1L<<3)  /* override iterations in workprocs */
+extern char    *OE_inittab_dir;        /* local dir of server daemon */
+extern long    OE_objsize;
+extern char    *OE_prodname;
+extern int     OE_search_type;
+extern char    *OE_server_dir;         /* local dir of server daemon */
+extern char    *OE_sitecnfg_fname;
+extern time_t  OE_sitecnfg_mtime;
+extern int     OE_uppercase_keys;
+extern long    OE_words_hitlimit;
+
+/* Global pointers to formerly hardcoded path/file names.
+ * The comment names the #define constant under which the
+ * filename is/was specified in either fuzzy.h or oe.h.
+ */
+extern char    *OEF_audit;     /* FNAME_AUDIT */
+extern char    *OEF_discard;   /* FNAME_DISCARD_DATA */
+extern char    *OEF_news;      /* FNAME_SITENEWS */
+extern char    *OEF_notesnot;  /* FNAME_NOTES_BAC */
+extern char    *OEF_notessem;  /* FNAME_NOTES_SEM */
+extern char    *OEF_readme;    /* FNAME_README */
+
+/*---------------- FUNCTION PROTOTYPES ----------------------*/
+extern char    *calloe_getrec (char *dbname, DB_ADDR dba,
+                       LLIST **global_msglist);
+extern long    calloe_hilite (char *cleartext, DtSrHitword *hitwords,
+                       LLIST **global_msglist);
+extern DtSrResult
+               *calloe_search (char *qry, char *dbname,
+                       int search_type, LLIST **global_msglist);
+extern int     call_output_script (char *shellcmd, char *text);
+extern void    clear_hitwords (void);
+extern void    clear_usrblk_record (void);
+extern void    dummy_workproc (void);
+extern char    *ensure_end_slash (char *charbuf);
+extern void    fasthuf (UCHAR *input_bitstring, UCHAR *output_charbuf,
+                       int outbuf_size, time_t encode_id);
+extern char    *get_hitlist_text (int maxlen);
+extern long    hilite_cleartext (int parse_type, char *stems, int stemcount);
+extern int     load_ocf (void);
+extern char    *nowstring (time_t *now);
+extern void    oe_initialize (void);
+extern int     oe_unblob (LLIST *bloblist);
+extern void    oe_write_audit_rec (long numhits);
+extern void    Opera_Engine (void);
+extern void    print_dittolist (DtSrResult *dittolist, char *label);
+extern void    print_stems (int stemcount, void *stems, char *locstr);
+extern void    print_usrblk_record (char *label);
+extern void    release_shm_mem (void);
+extern char    *retncode_str (int num);
+extern void    symptom_search (void);
+extern int     ve_append_notes (void);
+extern void    ve_browse_dba (int direction);
+extern LLIST   *ve_getblobs (DtSrINT32 dba, int vistano);
+extern int     ve_getrec_dba (LLIST **bloblist);
+extern int     ve_initialize (void);
+extern void    ve_ditto (void);
+extern DtSrINT32 ve_reckey2dba (void);
+extern void    ve_statistical (void);
+extern void    ve_stem_search (void);
+extern void    ve_word_search (void);
+extern void    ve_shutdown (void);
+
+/***************************** SearchE.h ******************************/
+#endif   /* _SearchE_h */
diff --git a/cde/include/Dt/SearchP.h b/cde/include/Dt/SearchP.h
new file mode 100644 (file)
index 0000000..f6f7cea
--- /dev/null
@@ -0,0 +1,887 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS:
+ *
+ *   ORIGINS: 27
+ *
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1990,1995
+ *   All Rights Reserved
+ *   Licensed Materials - Property of IBM
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+#ifndef _SearchP_h
+#define _SearchP_h
+/************************ SearchP.h ********************************
+ * $XConsortium: SearchP.h /main/9 1996/10/12 16:10:00 cde-ibm $
+ * June 1990.
+ * Private header file for DtSearch/AusText used by
+ * both build tools and search engine.
+ * Derived from original IBM fuzzy.h.
+ *
+ * Hierarchies of DtSearch/AusText Search*.h #includes:
+ *     Search.h is Dt/Aus public header, defines _XOPEN_SOURCE.
+ *     SearchP.h is private Dt/Aus, includes Search.h.
+ *     semantic.h is private Aus only, defines _ALL_SOURCE,
+ *             includes SearchP.h.
+ *             (Should be specified in place of SearchP.h).
+ *     SearchE.h is private engine header Dt/Aus.  Invokes either
+ *             SearchP.h or semantic.h depending on whether DTSEARCH defined.
+ * Only one of the above should be specified.  They should always
+ * be first include to get the _SOURCE defines right.
+ * DTSEARCH should be defined on compiler cmd line.
+ *
+ * $Log$
+ * Revision 2.11  1996/04/10  19:44:43  miker
+ * AusText 2.1.13, DtSearch 0.5.  Documentation cleanup.
+ *
+ * Revision 2.10  1996/03/13  22:35:14  miker
+ * Added UCHAR definition.  Changed char to UCHAR several places.
+ *
+ * Revision 2.9  1996/03/05  16:48:56  miker
+ * Add COMMENT_CHARS from lang.c.
+ *
+ * Revision 2.8  1996/03/05  15:58:57  miker
+ * Replace vewords with yacc-based boolean search.
+ *
+ * Revision 2.7  1996/02/01  16:26:06  miker
+ * AUSAPI_VERSION 2.1.11, DtSearch 0.3:
+ * Changed parsers to use character reading cofunctions.
+ *
+ * Revision 2.6  1995/12/27  15:51:36  miker
+ * Version 2.1.10: First GA release of AusBuild.
+ *
+ * Revision 2.5  1995/12/07  23:24:38  miker
+ * Version 2.1.9e: Freezing AusBuild version with
+ * everything except multiple source files dialog box.
+ *
+ * Revision 2.4  1995/10/25  22:29:29  miker
+ * Added prolog.
+ *
+ * Revision 2.3  1995/10/19  19:07:42  miker
+ * Changed AUSAPI_VERSION to 2.1.9 (but not yet released).
+ *
+ * Revision 2.2  1995/10/03  21:36:13  miker
+ * Added 'const' to strdup prototype for greater portability.
+ *
+ * Revision 2.1  1995/09/22  22:39:41  miker
+ * Freeze DtSearch 0.1, AusText 2.1.8
+ *
+ * Revision 1.3  1995/09/19  21:38:59  miker
+ * Removed debugging #defines.
+ */
+#include "Search.h"    /* the "public" header file */
+#include <nl_types.h>  /* for nl_catd below and all cat...() funcs */
+#include <sys/types.h>
+#include <netinet/in.h>
+
+#define AUSAPI_VERSION         "2.1.13"
+    /* Format: "v.r.m", where v,r,m are integer substrings
+     * meaning version, revision, and mod respectively.
+     * Complete new version austomatically sets revision=1, mod=0.
+     * New revision within a version just sets mod=0.
+     * When mod=0, full string may be abbreviated to "v.r".
+     * Full string will contain no whitespace.
+     * AUSAPI_VERSION is compared to current versions of database
+     * schemas and client/server protocols by ausapi_init().
+     * By convention, AusText programs display AUSAPI_VERSION
+     * at the top of the main gui window and in usage statements.
+     */
+#define SCHEMA_VERSION         "2.0"
+       /* Identifies when schema last changed.
+        * Same format as AUSAPI_VERSION, except only "v.r" substring used.
+        * To ensure compatibility, database programs must have v.r integers
+        * within the range between SCHEMA_VERSION and AUSAPI_VERSION.
+        * The 3rd integer, the 'mod' number, never matters.
+         */
+#define PROTOCOL_VERSION       "2.1"
+       /* Identifies when protocol between ui and engine/ausapi
+        * last changed.  Typical changes would be changes to major
+        * structures like usrblk, dblk, and socblk, or changes to
+        * the arguments for either ausapi or Opera_Engine calls.
+        * Only meaningful for client/server systems.
+        * Same format as AUSAPI_VERSION, except only "v.r" substring used.
+        * To ensure compatibility, clients must have v.r integers
+        * within the range between PROTOCOL_VERSION and AUSAPI_VERSION
+        * of the engine.  The 3rd integer, the 'mod' number, never matters.
+         */
+
+/*------------- #define Compiler and related #defines ------------------
+ * #define TURBO_COMPILER...
+ * #define PS2AIX_COMPILER...
+ * #define AIX370_COMPILER...
+ * #define HP_COMPILER...
+ * #define _AIX...
+ * ... define one of the above at top of Search.h to provide
+ * structures and functions that are compiler dependent.
+ * Since the compiler definition must precede all other headers,
+ * the #include for Search.h must be the first statement of all source
+ * files.
+ * 
+ * UCHAR corrects for compilers whose default char is signed.
+ */
+#define UCHAR  unsigned char
+#ifdef TURBO_COMPILER
+#define        LINT_ARGS       /* establishes strong prototyping in vista */
+#define ANSI           /* allow multiple databases in vista */
+
+#else
+#define SINGLE_USER    /* eliminate vista lockmgr */
+#define UNIX           /* used in vista.h and elsewhere */
+#endif
+
+#ifdef HP_COMPILER
+#define _INCLUDE_HPUX_SOURCE
+#define _INCLUDE_POSIX_SOURCE
+#define _INCLUDE_XOPEN_SOURCE
+#endif
+
+
+/*----------------------- AUSTEXT.H ---------------------
+ * DBMS record/key structure and constant declarations.
+ * These represent the database schema formerly in austext.h
+ * and derived from austext.sch.
+ */
+typedef struct or_dbrec {
+   DtSrUINT32  or_dbflags;
+   DtSrUINT32  or_dbuflags;
+   DtSrINT32   or_reccount;
+   DtSrINT32   or_maxdba;
+   DtSrINT32   or_availd99;
+   DtSrINT32   or_unavaild99;
+   DtSrINT32   or_hufid;
+   DtSrINT32   or_dbsecmask;
+   char                or_version[8];
+   char                or_dbfill[50];
+   DtSrINT16   or_dbotype;
+   DtSrINT16   or_compflags;
+   DtSrINT16   or_dbaccess;
+   DtSrINT16   or_minwordsz;
+   DtSrINT16   or_maxwordsz;
+   DtSrINT16   or_recslots;
+   DtSrINT16   or_fzkeysz;
+   DtSrINT16   or_abstrsz;
+   DtSrINT16   or_language;
+}      DBREC;
+
+struct or_dbmiscrec {
+   DtSrINT16   or_dbmisctype;
+   char                or_dbmisc[1][106];
+};
+struct or_objrec {
+   DtSrUINT32  or_objflags;
+   DtSrUINT32  or_objuflags;
+   DtSrINT32   or_objsize;
+   DtSrINT32   or_objdate;
+   DtSrINT32   or_objsecmask;
+   char                or_objkey[32];
+   char                or_objfill[34];
+   DtSrINT16   or_objaccess;
+   DtSrINT16   or_objtype;
+   DtSrINT16   or_objcost;
+   DtSrINT16   or_objhdroffset;
+   DtSrINT16   or_objeureka;
+};
+struct or_miscrec {
+   DtSrINT16   or_misctype;
+   char                or_misc[1][105];
+};
+struct or_blobrec {
+   DtSrINT16   or_bloblen;
+   char                or_blob[234][1];
+};
+struct or_swordrec {
+   char                or_swordkey[16];
+   DtSrINT32   or_swoffset;
+   DtSrINT32   or_swfree;
+   DtSrINT32   or_swaddrs;
+};
+struct or_lwordrec {
+   char                or_lwordkey[40];
+   DtSrINT32   or_lwoffset;
+   DtSrINT32   or_lwfree;
+   DtSrINT32   or_lwaddrs;
+};
+struct or_hwordrec {
+   char                or_hwordkey[134];
+   DtSrINT32   or_hwoffset;
+   DtSrINT32   or_hwfree;
+   DtSrINT32   or_hwaddrs;
+};
+
+/* File Id Constants */
+#define OR_D00 0
+#define OR_D01 1
+#define OR_D21 2
+#define OR_D22 3
+#define OR_D23 4
+#define OR_K00 5
+#define OR_K01 6
+#define OR_K21 7
+#define OR_K22 8
+#define OR_K23 9
+
+/* Record Name Constants */
+#define OR_DBREC 10000
+#define OR_DBMISCREC 10001
+#define OR_OBJREC 10002
+#define OR_MISCREC 10003
+#define OR_BLOBREC 10004
+#define OR_SWORDREC 10005
+#define OR_LWORDREC 10006
+#define OR_HWORDREC 10007
+
+/* Field Name Constants */
+#define OR_DBFLAGS 0L
+#define OR_DBUFLAGS 1L
+#define OR_RECCOUNT 2L
+#define OR_MAXDBA 3L
+#define OR_AVAILD99 4L
+#define OR_UNAVAILD99 5L
+#define OR_HUFID 6L
+#define OR_DBSECMASK 7L
+#define OR_VERSION 8L
+#define OR_DBFILL 9L
+#define OR_DBOTYPE 10L
+#define OR_COMPFLAGS 11L
+#define OR_DBACCESS 12L
+#define OR_MINWORDSZ 13L
+#define OR_MAXWORDSZ 14L
+#define OR_RECSLOTS 15L
+#define OR_FZKEYSZ 16L
+#define OR_ABSTRSZ 17L
+#define OR_LANGUAGE 18L
+#define OR_DBMISCTYPE 1000L
+#define OR_DBMISC 1001L
+#define OR_OBJFLAGS 2000L
+#define OR_OBJUFLAGS 2001L
+#define OR_OBJSIZE 2002L
+#define OR_OBJDATE 2003L
+#define OR_OBJSECMASK 2004L
+#define OR_OBJKEY 2005L
+#define OR_OBJFILL 2006L
+#define OR_OBJACCESS 2007L
+#define OR_OBJTYPE 2008L
+#define OR_OBJCOST 2009L
+#define OR_OBJHDROFFSET 2010L
+#define OR_OBJEUREKA 2011L
+#define OR_MISCTYPE 3000L
+#define OR_MISC 3001L
+#define OR_BLOBLEN 4000L
+#define OR_BLOB 4001L
+#define OR_SWORDKEY 5000L
+#define OR_SWOFFSET 5001L
+#define OR_SWFREE 5002L
+#define OR_SWADDRS 5003L
+#define OR_LWORDKEY 6000L
+#define OR_LWOFFSET 6001L
+#define OR_LWFREE 6002L
+#define OR_LWADDRS 6003L
+#define OR_HWORDKEY 7000L
+#define OR_HWOFFSET 7001L
+#define OR_HWFREE 7002L
+#define OR_HWADDRS 7003L
+
+/* Set Name Constants */
+#define OR_DB_MISCS 20000
+#define OR_OBJ_BLOBS 20001
+#define OR_OBJ_MISCS 20002
+/*----------------------- end AUSTEXT.H ---------------------*/
+
+
+
+/*------------- DMACROS.H -------------------
+ * The following were formerly in dmacros.h.
+ * They provide macro enhancements to the
+ * DBMS function prototypes in vista.h.
+ * Each DBMS function is coded in a macro which includes
+ * a location string (usually module name + line number).
+ * The location string is printed whenever there is
+ * a user or system failure.
+ * Warning: These should not be coded naked within 'if-else' statements
+ * because the 'if' in the macros will interfere with the outside else.
+ */
+#define CMSTAT(s,a,b) if(d_cmstat(a,b) < S_OKAY) vista_abort(s)
+#define CMTYPE(s,a,b,c) if(d_cmtype(a,b,c) < S_OKAY) vista_abort(s)
+#define CONNECT(s,a,b) if(d_connect(a,b) < S_OKAY) vista_abort(s)
+#define COSTAT(s,a,b) if(d_costat(a,b) < S_OKAY) vista_abort(s)
+#define COTYPE(s,a,b,c) if(d_cotype(a,b,c) < S_OKAY) vista_abort(s)
+#define CRGET(s,a,b) if(d_crget(a,b) < S_OKAY) vista_abort(s)
+#define CRREAD(s,a,b,c) if(d_crread(a,b,c) < S_OKAY) vista_abort(s)
+#define CRSET(s,a,b) if(d_crset(a,b) < S_OKAY) vista_abort(s)
+#define CRSTAT(s,a) if(d_crstat(a) < S_OKAY) vista_abort(s)
+#define CRTYPE(s,a,b) if(d_crtype(a,b) < S_OKAY) vista_abort(s)
+#define CRWRITE(s,a,b,c) if(d_crwrite(a,b,c) < S_OKAY) vista_abort(s)
+#define CSMGET(s,a,b,c) if(d_csmget(a,b,c) < S_OKAY) vista_abort(s)
+#define CSMREAD(s,a,b,c,d) if(d_csmread(a,b,c,d) < S_OKAY) vista_abort(s)
+#define CSMSET(s,a,b,c) if(d_csmset(a,b,c) < S_OKAY) vista_abort(s)
+#define CSMWRITE(s,a,b,c,d) if(d_csmwrite(a,b,c,d) < S_OKAY) vista_abort(s)
+#define CSOGET(s,a,b,c) if(d_csoget(a,b,c) < S_OKAY) vista_abort(s)
+#define CSOREAD(s,a,b,c,d) if(d_csoread(a,b,c,d) < S_OKAY) vista_abort(s)
+#define CSOSET(s,a,b,c) if(d_csoset(a,b,c) < S_OKAY) vista_abort(s)
+#define CSOWRITE(s,a,b,c,d) if(d_csowrite(a,b,c,d) < S_OKAY) vista_abort(s)
+#define CSSTAT(s,a,b) if(d_csstat(a,b) < S_OKAY) vista_abort(s)
+#define CTBPATH(s,a) if(d_ctbpath(a) < S_OKAY) vista_abort(s)
+#define CTSCM(s,a,b,c) if(d_ctscm(a,b,c) < S_OKAY) vista_abort(s)
+#define CTSCO(s,a,b,c) if(d_ctsco(a,b,c) < S_OKAY) vista_abort(s)
+#define CTSCR(s,a,b) if(d_ctscr(a,b) < S_OKAY) vista_abort(s)
+#define DBDPATH(s,a) if(d_dbdpath(a) < S_OKAY) vista_abort(s)
+#define DBFPATH(s,a) if(d_dbfpath(a) < S_OKAY) vista_abort(s)
+#define DBLOG(s,a) if(d_dblog(a) < S_OKAY) vista_abort(s)
+#define DBTAF(s,a) if(d_dbtaf(a) < S_OKAY) vista_abort(s)
+#define DBUSERID(s,a) if(d_dbuserid(a) < S_OKAY) vista_abort(s)
+#define DECODE_DBA(s,a,b,c) if(d_decode_dba(a,b,c) < S_OKAY) vista_abort(s)
+#define DELETE(s,a) if(d_delete(a) < S_OKAY) vista_abort(s)
+#define DESTROY(s,a) if(d_desoy(a) < S_OKAY) vista_abort(s)
+#define DISCON(s,a,b) if(d_discon(a,b) < S_OKAY) vista_abort(s)
+#define DISDEL(s,a) if(d_disdel(a) < S_OKAY) vista_abort(s)
+#define ENCODE_DBA(s,a,b,c) if(d_encode_dba(a,b,c) < S_OKAY) vista_abort(s)
+#define FILLNEW(s,a,b,c) if(d_fillnew(a,b,c) < S_OKAY) vista_abort(s)
+#define FINDCO(s,a,b) if(d_findco(a,b) < S_OKAY) vista_abort(s)
+#define FINDFM(s,a,b) if(d_findfm(a,b) < S_OKAY) vista_abort(s)
+#define FINDLM(s,a,b) if(d_findlm(a,b) < S_OKAY) vista_abort(s)
+#define FINDNM(s,a,b) if(d_findnm(a,b) < S_OKAY) vista_abort(s)
+#define FINDPM(s,a,b) if(d_findpm(a,b) < S_OKAY) vista_abort(s)
+#define FREEALL(s) if(d_freeall() < S_OKAY) vista_abort(s)
+#define GTSCM(s,a,b,c) if(d_gtscm(a,b,c) < S_OKAY) vista_abort(s)
+#define GTSCO(s,a,b,c) if(d_gtsco(a,b,c) < S_OKAY) vista_abort(s)
+#define GTSCR(s,a,b) if(d_gtscr(a,b) < S_OKAY) vista_abort(s)
+#define GTSCS(s,a,b,c) if(d_gtscs(a,b,c) < S_OKAY) vista_abort(s)
+#define INITFILE(s,a,b) if(d_initfile(a,b) < S_OKAY) vista_abort(s)
+#define INITIALIZE(s,a) if(d_initialize(a) < S_OKAY) vista_abort(s)
+#define ISMEMBER(s,a,b) if(d_ismember(a,b) < S_OKAY) vista_abort(s)
+#define ISOWNER(s,a,b) if(d_isowner(a,b) < S_OKAY) vista_abort(s)
+#define KEYDEL(s,a,b) if(d_keydel(a,b) < S_OKAY) vista_abort(s)
+#define KEYEXIST(s,a,b) if(d_keyexist(a,b) < S_OKAY) vista_abort(s)
+#define KEYFIND(s,a,b,c) if(d_keyfind(a,b,c) < S_OKAY) vista_abort(s)
+#define KEYFREE(s,a,b) if(d_keyfree(a,b) < S_OKAY) vista_abort(s)
+#define KEYFRST(s,a,b) if(d_keyfrst(a,b) < S_OKAY) vista_abort(s)
+#define KEYLAST(s,a,b) if(d_keylast(a,b) < S_OKAY) vista_abort(s)
+#define KEYLOCK(s,a,b,c) if(d_keylock(a,b,c) < S_OKAY) vista_abort(s)
+#define KEYLSTAT(s,a,b,c) if(d_keylstat(a,b,c) < S_OKAY) vista_abort(s)
+#define KEYNEXT(s,a,b) if(d_keynext(a,b) < S_OKAY) vista_abort(s)
+#define KEYPREV(s,a,b) if(d_keyprev(a,b) < S_OKAY) vista_abort(s)
+#define KEYREAD(s,a) if(d_keyread(a) < S_OKAY) vista_abort(s)
+#define KEYSTORE(s,a,b) if(d_keystore(a,b) < S_OKAY) vista_abort(s)
+#define LOCK(s,a,b,c) if(d_lock(a,b,c) < S_OKAY) vista_abort(s)
+#define MAKENEW(s,a,b) if(d_makenew(a,b) < S_OKAY) vista_abort(s)
+#define MAPCHAR(s,a,b,c,d) if(d_mapchar(a,b,c,d) < S_OKAY) vista_abort(s)
+#define MEMBERS(s,a,b,c) if(d_members(a,b,c) < S_OKAY) vista_abort(s)
+#define OFF_OPT(s,a) if(d_off_opt(a) < S_OKAY) vista_abort(s)
+#define ON_OPT(s,a) if(d_on_opt(a) < S_OKAY) vista_abort(s)
+#define OPEN(s,a,b) if(d_open(a,b) < S_OKAY) vista_abort(s)
+#define RDCURR(s,a,b) if(d_rdcurr(a,b) < S_OKAY) vista_abort(s)
+#define RECFREE(s,a,b) if(d_recfree(a,b) < S_OKAY) vista_abort(s)
+#define RECFRST(s,a,b) if(d_recfrst(a,b) < S_OKAY) vista_abort(s)
+#define RECLAST(s,a,b) if(d_reclast(a,b) < S_OKAY) vista_abort(s)
+#define RECLOCK(s,a,b,c) if(d_reclock(a,b,c) < S_OKAY) vista_abort(s)
+#define RECLSTAT(s,a,b,c) if(d_reclstat(a,b,c) < S_OKAY) vista_abort(s)
+#define RECNEXT(s,a) if(d_recnext(a) < S_OKAY) vista_abort(s)
+#define RECOVER(s,a) if(d_recover(a) < S_OKAY) vista_abort(s)
+#define RECPREV(s,a) if(d_recprev(a) < S_OKAY) vista_abort(s)
+#define RECREAD(s,a,b) if(d_recread(a,b) < S_OKAY) vista_abort(s)
+#define RECSET(s,a,b) if(d_recset(a,b) < S_OKAY) vista_abort(s)
+#define RECSTAT(s,a,b,c) if(d_recstat(a,b,c) < S_OKAY) vista_abort(s)
+#define RECWRITE(s,a,b) if(d_recwrite(a,b) < S_OKAY) vista_abort(s)
+#define RENFILE(s,a,b,c) if(d_renfile(a,b,c) < S_OKAY) vista_abort(s)
+#define RLBCLR(s,a) if(d_rlbclr(a) < S_OKAY) vista_abort(s)
+#define RLBSET(s,a) if(d_rlbset(a) < S_OKAY) vista_abort(s)
+#define RLBTST(s,a) if(d_rlbtst(a) < S_OKAY) vista_abort(s)
+#define SETDB(s,a) if(d_setdb(a) < S_OKAY) vista_abort(s)
+#define SETFILES(s,a) if(d_setfiles(a) < S_OKAY) vista_abort(s)
+#define SETFREE(s,a,b) if(d_setfree(a,b) < S_OKAY) vista_abort(s)
+#define SETLOCK(s,a,b,c) if(d_setlock(a,b,c) < S_OKAY) vista_abort(s)
+#define SETLSTAT(s,a,b,c) if(d_setlstat(a,b,c) < S_OKAY) vista_abort(s)
+#define SETMM(s,a,b,c) if(d_setmm(a,b,c) < S_OKAY) vista_abort(s)
+#define SETMO(s,a,b,c) if(d_setmo(a,b,c) < S_OKAY) vista_abort(s)
+#define SETMR(s,a,b) if(d_setmr(a,b) < S_OKAY) vista_abort(s)
+#define SETOM(s,a,b,c) if(d_setom(a,b,c) < S_OKAY) vista_abort(s)
+#define SETOO(s,a,b,c) if(d_setoo(a,b,c) < S_OKAY) vista_abort(s)
+#define SETOR(s,a,b) if(d_setor(a,b) < S_OKAY) vista_abort(s)
+#define SETPAGES(s,a,b) if(d_setpages(a,b) < S_OKAY) vista_abort(s)
+#define SETRM(s,a,b) if(d_setrm(a,b) < S_OKAY) vista_abort(s)
+#define SETRO(s,a,b) if(d_setro(a,b) < S_OKAY) vista_abort(s)
+#define STSCM(s,a,b,c) if(d_stscm(a,b,c) < S_OKAY) vista_abort(s)
+#define STSCO(s,a,b,c) if(d_stsco(a,b,c) < S_OKAY) vista_abort(s)
+#define STSCR(s,a,b) if(d_stscr(a,b) < S_OKAY) vista_abort(s)
+#define STSCS(s,a,b,c) if(d_stscs(a,b,c) < S_OKAY) vista_abort(s)
+#define TIMEOUT(s,a) if(d_timeout(a) < S_OKAY) vista_abort(s)
+#define TRABORT(s) if(d_trabort() < S_OKAY) vista_abort(s)
+#define TRBEGIN(s,a) if(d_trbegin(a) < S_OKAY) vista_abort(s)
+#define TREND(s) if(d_trend() < S_OKAY) vista_abort(s)
+#define UTSCM(s,a,b,c) if(d_utscm(a,b,c) < S_OKAY) vista_abort(s)
+#define UTSCO(s,a,b,c) if(d_utsco(a,b,c) < S_OKAY) vista_abort(s)
+#define UTSCR(s,a,b) if(d_utscr(a,b) < S_OKAY) vista_abort(s)
+#define UTSCS(s,a,b,c) if(d_utscs(a,b,c) < S_OKAY) vista_abort(s)
+#define WRCURR(s,a) if(d_wrcurr(a) < S_OKAY) vista_abort(s)
+/*------------- end DMACROS.H -------------------*/
+
+
+/*------------- COMPILER DEPENDENT CONSTANTS -------------------*/
+#ifdef TURBO_COMPILER
+  #define FNAME_NULL   "nul"
+  #define LOCAL_SLASH  92      /* ascii back slash char (\) */
+#endif
+
+#ifdef UNIX
+  #define FNAME_NULL   "/dev/null"
+  #define LOCAL_SLASH  47      /* ascii forward slash char (/) */
+#endif
+
+/*------------ COMPILER INDEPENDENT CONSTANTS -------------------*/
+
+#define CACHE_SIZE     64      /* used in vista d_setpages() function */
+#define COMMENT_CHARS  "#*$!\n"  /* identify comment lines in AusText files */
+#define CTRL_Z         26
+#define DIT_FINDSTR    1L      /* DITTO.flags: retained aft FINDSTR srch */
+#define DIT_STOP       2L      /* DITTO.flags: node where user pushed stop */
+#define        END_RETAIN_PAGE 11      /* VT = marks end of RETAIN page */
+/***#define    END_RETAIN_REC  '\f'****/
+#define EXT_CHARTYPE   ".chr"  /* user definable wildcards (from LOADCHR) */
+#define EXT_CANDI      ".can"  /* candidate dictionary words format */
+#define EXT_CONFIG     ".ocf"  /* standard opera configuration file */
+#define EXT_DTBS       ".d99"  /* inverted index file for dbase addrs */
+#define EXT_FZKEY      ".fzk"  /* output of all opera text anal pgms */
+#define EXT_HANDEL     ".han"  /* standard handel profile file format */
+#define EXT_HUFFCODE   ".huf"  /* huffman encode tree (from HUFFCODE) */
+#define EXT_HDECODE    ".c"    /* huffman decode tree (from HUFFCODE) */
+#define EXT_INCLIST    ".inc"  /* "include" list file name extension */
+#define EXT_LIST       ".lst"  /* standard wordlist format: 1 word/line */
+#define EXT_SCHEMA     ".sch"  /* vista database schema format */
+#define EXT_STOPLIST   ".stp"  /* standard stop list format */
+#define EXT_SURVEY     ".sur"  /* standard survey file format */
+#define EXT_TEMP       ".tmp"  /* any kind of temporary file */
+#define EXT_TEXT       ".txt"  /* freeform ascii text format */
+#define EXT_USRNOTES   ".not"  /* user notes flatfile format */
+#define ETXDELIM       "\f\n"  /* default end-of-text (ETX) delim str */
+#define FNAME_AUDIT    "opaudit.lst"
+#define FNAME_AUSCAT           "austools.cat"  /* Austools msgs catalog */
+#define FNAME_AUSTEXT_TUTORIAL  "austext.tut"
+#define FNAME_CONFIRM_LIST      "todscrd.lst"  /* Shankar/Tomita files */
+#define FNAME_DISCARD_DATA      "shdscrd.lst"  /* OEF_discard */
+#define FNAME_DTSRCAT          "dtsearch"      /* DtSearch msgs catalog */
+#define FNAME_HUFFCODE_TAB      "ophuf.huf"    /* huffman encode table */
+#define FNAME_MUIRES   "mui.res"       /* motif class resources file */
+#define FNAME_NOTES_BAC        "usrnotes.not"
+#define FNAME_NOTES_SEM        "usrnotes.sem"
+#define FNAME_ORIGSTOP "orig.stp"
+#define FNAME_README   "readme.txt"
+#define FNAME_SITECONFIG  "dtsearch.ocf"
+#define FNAME_SITENEWS "sitenews.txt"
+#define        MINWIDTH_TOKEN  2       /* default smallest word/stem allowed */
+#define MAX_BMHTAB     256     /* max alphabet size in bmstrstr tables */
+#define MAX_ETXDELIM   100     /* max size of ETX delim string */
+#define MAX_KTCOUNT    64      /* max number of keytypes */
+#define        MAXWIDTH_LWORD  40      /* = sizeof(or_lwordrec.or_lwordkey) */
+#define        MAXWIDTH_SWORD  16      /* = sizeof(or_swordrec.or_swordkey) */
+#define NULLDATESTR    "0/0/0~0:0"
+#define NUM_HOLES      256     /* array size for defragmentation */
+#define OBJDATESTR     "%02d/%02d/%02d~%02d:%02d"
+#define PRODNAME       "DtSearch"
+#define PWDMASKSZ      20
+#define SCREEN_WIDTH   80      /* max len text line in online OPERA pgms */
+#define STEM_CH                15      /* Ctrl-O stemmed word prefix character */
+
+/*--------------- BYTE SWAP DECLARATIONS ------------
+ * The default database record format is the data ordering
+ * for big endian machines (most significant byte first),
+ * also known as "network" order.  For non big_endian platforms,
+ * all compiles should include the BYTE_SWAP define.
+ * SWABDIR is direction of io to indicate correct byte swap function.
+ * HTON is host to network, internal memory to external database file.
+ * NTOH is network to host, file to memory. 
+ * Actual host_to_network functions defined in <netinit/in.h>
+ * which is not yet standardized.
+ */
+typedef enum {HTON=1, NTOH} SWABDIR;
+
+extern void swab_dbrec  (struct or_dbrec  *rec,  SWABDIR direction);
+extern void swab_objrec (struct or_objrec *rec,  SWABDIR direction);
+
+#ifdef BYTE_SWAP       /* ie (BYTE_ORDER != BIG_ENDIAN) */
+
+#define HTONL(x)       x = htonl(x)
+#define HTONS(x)       x = htons(x)
+#define NTOHL(x)       x = ntohl(x)
+#define NTOHS(x)       x = ntohs(x)
+
+#else  /* !BYTE_SWAP, ie (BYTE_ORDER == BIG_ENDIAN) */
+
+#define HTONL(x)
+#define HTONS(x)
+#define NTOHL(x)
+#define NTOHS(x)
+
+#endif /* BYTE_SWAP */
+
+
+/*--------------- TESKEY PARSE CHARACTER TYPES ------------
+ * Used in langmap.c for linguistic parsing modules.
+ * Low order byte reserved for uppercase image of character
+ * as locale independent replacement for toupper() and strupr().
+ */
+#define CONCORDABLE    0x4000  /* alpha, numeric: inside word */
+#define OPT_CONCORD    0x2000  /* "./-": maybe inside word, maybe outside */
+#define NON_CONCORD    0x1000  /* space, punctuation, etc: outside word */
+
+#define VOWEL          0x0800  /* concordable subtype: aeiou */
+#define CONSONANT      0x0400  /* concordable subtype: all alpha - vowels */
+#define NUMERAL                0x0200  /* concordable subtype: 0-9 */
+#define WHITESPACE     0x0100  /* locale indep replacement for isspace() */
+
+
+/*--------------- SCHEMA CONSTANTS ----------------
+ * Associated with fields in database schema (austext.h)
+ * and in DITTO structures.
+ * Values 20000 - 29999 reserved for custom user applic in all cardinal ints.
+ * ORA_ retrieval access location cardinal integers in or_access.
+ * ORC_ compression id bit switches in or_compflags.
+ * ORD_ bit switches in or_dbflags.
+ * (ORO_ bit switches in or_objflags
+ * renamed to DtSrFlxxx and moved to Search.h)
+ * ORM_ type cardinal integers in or_misctype.
+ * (ORT_ object type (or_objtype, or_dbotype, DITTO)
+ * renamed to DtSrObj... and moved to Search.h)
+ * (ORL_ language id cardinal integers in or_language
+ * renamed to DtSrLa... and moved to Search.h)
+ */
+#define ORA_VARIES     0         /* object accessibility unspec at curr lvl */
+#define ORA_NOTAVAIL   1         /* obj not directly accessible from engine */
+#define ORA_BLOB       2         /* obj stored in blob recs */
+#define ORA_REFBLOB    3         /* svr ref (filename of object) in blob */
+#define ORA_REFKEY     4         /* svr ref in or_objkey */
+#define ORA_REFHUGEKEY 5         /* svr ref in 'huge' key (misc) rec */
+#define ORA_REFABSTR   6         /* svr ref in abstract (misc rec) */
+#define ORA_CREFBLOB   13        /* clt ref (filename of object) in blob */
+#define ORA_CREFKEY    14        /* clt ref in or_objkey */
+#define ORA_CREFABSTR  16        /* clt ref in abstract (misc rec) */
+
+#define ORC_COMPBLOB   (1<<0)    /* blobs are compressed */
+#define ORC_COMPABSTR  (1<<1)    /* abstracts are compressed */
+
+#define ORD_XWORDS     (1L<<0)   /* inverted index includes exact words */
+#define ORD_XSTEMS     (1L<<1)   /* inverted index includes word stems */
+#define ORD_USEHUGEKEYS        (1L<<4)   /* all direct user access via huge keys */
+#define ORD_NOMARKDEL  (1L<<8)   /* permanently disables mark-for-deletion */
+#define ORD_NONOTES    (1L<<9)   /* permanently disables user notes */
+#define ORD_WIDECHAR   (1L<<10)  /* text is multibyte or wide chars */
+
+#define ORO_DELETE     (1L<<0)   /* obj is marked for deletion */
+#define ORO_OLDNOTES   (1L<<1)   /* obj has old style usernotes in misc rec */
+
+#define ORM_FZKABS     1         /* fzkey[fzkeysz] + abstract[abstrsz] */
+#define ORM_HUGEKEY    2         /* optional 'huge' key */
+#define ORM_OLDNOTES   3         /* old style user notes */
+#define ORM_KEYTYPE    4         /* database keytype rec (KEYTYPE struct) */
+
+/*------------------------- MACROS ---------------------------*/
+/* (Use offsetof() in stddef.h to replace my old OFFSET macro) */
+#define NULLORSTR(str)      ((str)?str:catgets(dtsearch_catd,1,1,"<null>"))
+#define NUMARRAY(arr)       ((sizeof(arr) / sizeof(arr[0])))
+
+/****************************************/
+/*                                     */
+/*               LLIST                 */
+/*                                     */
+/****************************************/
+typedef struct llist_tag {
+    struct llist_tag   *link;
+    void               *data;
+}      LLIST;
+
+/****************************************/
+/*                                     */
+/*          FREE_SPACE_STR             */
+/*                                     */
+/****************************************/
+/* 'holes' structure used for dynamic defragmentation */
+typedef struct holes_str {
+       DtSrINT32       hole_size;
+       DtSrINT32       offset;
+       }       FREE_SPACE_STR;
+
+/****************************************/
+/*                                     */
+/*          FILE_HEADER                */
+/*                                     */
+/****************************************/
+/* 'holes' structure used for dynamic defragmentation */
+typedef        struct          fl_head {
+       DtSrINT32       hole_count [2];
+       FREE_SPACE_STR  hole_array [2] [NUM_HOLES];
+       }       FILE_HEADER;
+
+/****************************************/
+/*                                     */
+/*   CMPLL, sort_llist, compare_llist  */
+/*                                     */
+/****************************************/
+/* Generic LLIST structure typically used for 'lines' of text,
+ * as in ausapi.msglist and usrblk.msgs, and binary blobs.
+ * See structure typedef below for blob list structure.
+ * LLISTs can be sorted by calling sort_llist().
+ * The compare function is stored in global pointer 'compare_llist'
+ * prior to calling the sort function.
+ */
+typedef int (*CMPLL) (LLIST *left, LLIST *right);
+
+/****************************************/
+/*                                     */
+/*              READCFP                */
+/*                                     */
+/****************************************/
+/* Pointer to a function that takes a void
+ * pointer and returns a C char (1 octet).
+ * Used by linguistic parsers as a character reading cofunction.
+ * When parser is reading from a file stream as in dtsrindex,
+ * usual cofunction is readchar_ftext().  When parser is reading
+ * from a text string as in queries, the usual cofunction
+ * is readchar_string() which just accesses next char in string.
+ */
+typedef UCHAR  (*READCFP) (void *);
+
+/********************************************************/
+/*                                                     */
+/*                      WORDTREE                       */
+/*                                                     */
+/********************************************************/
+/* A generic structure for creating binary trees of words
+ * from stoplists, include-lists, etc.
+ */
+typedef struct _bintree_tag {
+    struct _bintree_tag  *rlink;   /* ptr to right node */
+    struct _bintree_tag  *llink;   /* ptr to left node */
+    int                         len;      /* length of word */
+    void                *word;
+    } WORDTREE;
+
+
+/************************************************/
+/*                                             */
+/*                   PARG                      */
+/*                                             */
+/************************************************/
+/* Single argument for first parser call for a text block */
+typedef struct {
+    void       *dblk;          /* dblk is (DBLK *) */
+    FILE       *ftext;         /* Text file being parsed in dtsrindex */
+    void       *string;        /* Query or other string being parsed */
+    void       *etxdelim;      /* End of text (ETX) delimiter string */
+    long       *offsetp;       /* where parser stores word offset */
+    long       flags;
+#define PA_INDEXING    0x0001  /* parse for indexing purposes (dtsrindex) */
+#define PA_HILITING    0x0002  /* parse for hiliting purposes */
+#define PA_MSGS                0x0004  /* explain parse failures with msgs */
+    void       *extra;         /* reserved for generic use by parsers */
+    }  PARG;
+
+
+/********************************************************/
+/*                                                     */
+/*                       DBLK                          */
+/*                                                     */
+/********************************************************/
+/* One element of a linked list of universal information
+ * about all databases accessible,
+ * to an online search engine instance, chained off of
+ * the global OE_dblist.  It is also used individually
+ * by offline build tools to store database data.
+ * It contains pointers to linguistic processors and data structures,
+ * data derived from the site configuration file,
+ * data derived and used by the DBMS,
+ * and some fields reflecting recommended initial user choices. 
+ * Changes here should also be reflected in initblks.c,
+ * austext.sch, initausd.c, and in oeinit.c.
+ */
+typedef struct dblk_tag
+    {
+    struct dblk_tag *link;     /* ptr to next dblk in list */
+    char       name [11];      /* 1 - 8 char dictionary name */
+    char       is_selected;    /* bool: initial gui selection status */
+    char       *label;         /* database description/label string for UI */
+    long       flags;
+    char       *path;          /* where to find all database files */
+    FILE       *syofile;       /* symptom offset (ranges) d97 file */
+    FILE       *syifile;       /* symptom index d98 file */
+    void       *ranges;        /* contents of syofile read into ram */
+    FILE       *iifile;        /* inverted words index d99 file */
+    time_t     iimtime;        /* last time d99 was modified */
+    int                vistano;        /* vista database number */
+    int                ktcount;        /* number of nodes in keytypes array */
+    DtSrKeytype        *keytypes;      /* record types in this database */
+    DBREC      dbrec;          /* copy of database's dbrec record */
+    void       *zblk;          /* used only for semantic processing */
+
+    /*----- Huffman Compression -----*/
+    time_t     hufid;          /* tree identification atom */
+    int                hufroot;        /* index to inverted tree root (array bottom) */
+    int                *huftree;       /* beginning of huffman tree array */
+
+    /*----- Language Fields -----*/
+    char       *fname_stp;     /* name of stoplist file */
+    char       *fname_inc;     /* name of include-list file */
+    char       *fname_sfx;     /* name of suffixes file */
+    int                *charmap;       /* parse/stem table for char set */
+    WORDTREE   *stoplist;      /* root of stoplist tree */
+    WORDTREE   *inclist;       /* root of include-list tree */
+    char       *(*lstrupr) (char *string, struct dblk_tag *dblk);
+    char       *(*parser)  (PARG *parg);
+    void       *parse_extra;   /* eg additional word trees */
+    char       *(*stemmer) (char *wordin, struct dblk_tag *dblk);
+    long       stem_flags;     /* stemmer options */
+    void       *stem_extra;    /* eg suffix tables */
+    void       *lang_extra;    /* additional language dependent data */
+    long       lang_flags;     /* language dependent switches */
+#define LF_DUP_STP     0x0001  /* duplicate stop list */
+#define LF_DUP_INC     0x0002  /* duplicate include list */
+#define LF_DUP_SFX     0x0004  /* duplicate suffixes list */
+
+    /*----- User Search Parameters -----*/
+    int                maxhits;        /* max # hits to be returned from searches */
+    void       *resuser;       /* reserved for private use by users */
+    }  DBLK;
+
+
+/*------------------------- GLOBALS -------------------------*/
+/* DtSearchExit (austext_exit) and DtSearchExitUser (austext_exit_user)
+ * are in ausexit.c too but are "public" in DtSearch (defined in Search.h).
+ */
+extern char     *aa_argv0;             /* globals.c */
+extern int     aa_maxhits;             /* aajoint.c */
+extern FILE     *aa_stderr;            /* globals.c */
+extern int     ascii_charmap[];        /* langmap.c */
+extern LLIST   *ausapi_msglist;        /* globals.c */
+extern void    (*austext_exit_first) (int);    /* ausexit.c */
+extern void    (*austext_exit_dbms) (int);     /* ausexit.c */
+extern void    (*austext_exit_comm) (int);     /* ausexit.c */
+extern void    (*austext_exit_endwin) (int);   /* ausexit.c */
+extern void    (*austext_exit_mem) (int);      /* ausexit.c */
+extern void    (*austext_exit_last) (int);     /* ausexit.c */
+extern void    (*austext_exit_user) (int);     /* ausexit.c */
+extern nl_catd austools_catd;          /* globals.c */
+extern CMPLL   compare_llist;
+extern nl_catd dtsearch_catd;          /* globals.c */
+extern unsigned long
+               duprec_hashsize;        /* isduprec.c */
+extern int     latin_charmap[];        /* langmap.c */
+
+
+/*------------------------ FUNCTION PROTOTYPES ------------------------*/
+extern void    add_free_space(FREE_SPACE_STR *del_rec, FILE_HEADER *flh);
+extern void    append_ext (char *buffer, int buflen,
+                   char *fname, char *fext);
+extern int     austext_dopen (
+                       char            *dbname,
+                       char            *dbpath,
+                       char            *d2xpath,
+                       int             cache_size,
+                       DBREC           *bufptr);
+extern void    *austext_malloc (size_t size, char *location, void *ignored);
+extern char    *bmhcore (
+                       UCHAR   *text,
+                       size_t  txtlen,
+                       UCHAR   *pattern,
+                       size_t  patlen,
+                       size_t  *bmhtable);
+extern void    bmhtable_build (
+                       UCHAR   *pattern,
+                       size_t  patlen,
+                       size_t  *bmhtable);
+extern char    *bmstrstr (
+                       UCHAR   *text,
+                       size_t  txtlen,
+                       UCHAR   *pattern,
+                       size_t  patlen);
+extern int     clean_wrap (char *string, int linelen);
+extern LLIST   *cutnode_llist (LLIST *node, LLIST **llistp);
+extern void    (*dberr_exit)(int exitcode);   /* defaults to exit() */
+extern void    delete_whitespace (char *linebuf);
+extern void    discard_to_ETX (PARG *parg);
+extern int     endstroke (int c);
+extern  void    put_new_word(struct or_hwordrec *recbuf, int vistano);
+extern FREE_SPACE_STR
+               *find_free_space (DtSrINT32 req_size, FILE_HEADER *flh);
+extern void    free_llist (LLIST **llhead);
+extern int     fread_d99_header (FILE_HEADER *flh, FILE *fp);
+extern int     fwrite_d99_header (FILE_HEADER *flh, FILE *fp);
+extern char    *get_email_addr (void);
+extern char    *getnews (char *fname, int use_copyr);
+extern void    hc_decode (UCHAR *input_bitstring, UCHAR *output_charbuf,
+                       int outbuf_size, time_t encode_id);
+extern int     hc_encode (struct or_blobrec *targ, UCHAR *src,
+                       int srclen, int force_flush);
+extern void    init_header (FILE *fp, FILE_HEADER *flh);
+extern int     is_compatible_version (char *callers_vers, char *local_vers);
+extern int     is_concordable (char *word, int *charmap);
+extern int     is_duprec (char *recid);
+extern int     is_objdatestr (char *string, DtSrObjdate *objdptr);
+extern int     is_objdatetm (struct tm *objdatetm);
+extern void    join_llists (LLIST **mainlist, LLIST **sublist);
+extern char    *jpn_parser (PARG *parg);
+extern int     load_custom_language (DBLK *dblk, DBLK *dblist);
+extern int     load_jpn_language (DBLK *dblk, DBLK *dblist);
+extern int     load_language (DBLK *dblk, DBLK *dblist);
+extern int     load_wordtree (
+                   WORDTREE    **treetop,
+                   DBLK        *dblk,
+                   char        *fname,
+                   int         do_teskey_test);
+extern char    *null_stemmer (char *word, DBLK *dblk);
+extern char    *null_lstrupr (char *string, DBLK *dblk);
+extern char    *objdate2fzkstr (DtSrObjdate objdate);
+extern struct tm
+               *objdate2tm (DtSrObjdate objdate);
+extern int     objdate_in_range (DtSrObjdate recdate,
+                       DtSrObjdate date1, DtSrObjdate date2);
+extern int     offline_kbhit (void);
+extern int     open_dblk (DBLK **dblist, int numpages, int debugging);
+extern LLIST   *pop_llist (LLIST **llistp);
+extern void    print_dbrec (char *dbname, struct or_dbrec *dbrec);
+extern int     quit_escape(void);
+extern UCHAR   readchar_ftext (PARG *parg);
+extern UCHAR   readchar_string (UCHAR *string);
+extern char    *remove_spaces (char *string);
+extern void    replace_ext (char *buffer, int buflen,
+                   char *fname, char *fext);
+extern LLIST   *sort_llist (LLIST *list_header);
+extern char    *teskey_parser (PARG *parg);
+extern DtSrObjdate
+               tm2objdate (struct tm *tmptr);
+#if !defined(__linux__)
+#ifndef _ALL_SOURCE
+extern char    *strdup (const char *s);
+#endif
+#endif
+extern void    toggle_insert (void);
+extern void    unload_custom_language (DBLK *dblk);
+extern void    unload_language (DBLK *dblk);
+extern void    vista_abort (char *location);
+extern char    *vista_msg (char *location);
+
+/************************ SearchP.h ********************************/
+#endif  /* _SearchP_h */
+
diff --git a/cde/include/Dt/Service.h b/cde/include/Dt/Service.h
new file mode 100644 (file)
index 0000000..4d6b8de
--- /dev/null
@@ -0,0 +1,152 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Service.h $XConsortium: Service.h /main/3 1995/10/26 15:27:03 rswiston $
+ * Language:     C
+ *
+ * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_Service_h
+#define _Dt_Service_h
+
+/************* DATA TYPES *****************************************/
+
+/* Many of the data types are standard DT types. */
+#include <Dt/DataTypes.h>
+
+/* Built on ICCC-based messaging library */
+#include <Dt/Msg.h>
+
+/* Specific messaging data types */
+typedef struct _DtSvcHandle *  DtSvcHandle;
+typedef DtMsgContext           DtSvcMsgContext;
+
+/************* MESSAGE DEFINITIONS *********************************/
+#define DT_SVC_MSG_SUCCESS     "SUCCESS"
+#define DT_SVC_MSG_FAIL        "FAIL"
+#define DT_SVC_MSG_REQUEST     "REQUEST"
+#define DT_SVC_MSG_NOTIFY      "NOTIFY"
+
+/************* CALLBACK PROTOTYPES ******************************
+ */
+
+typedef void (*DtSvcReceiveProc) ();
+/*
+    DtSvcHandle        service,
+    DtSvcMsgContext    reply_context,
+    Pointer            client_data,
+    String *           message_fields,
+    int                        num_fields);
+*/
+/*
+ *  service            A handle for the service.
+ *
+ *  reply_context      Opaque context information for the request that 
+ *                     was received.  This data is needed when 
+ *                     generating a reply to a request.
+ *
+ *  client_data                A pointer to the data that was specified when
+ *                     the callback was registered.
+ *
+ *  message_fields     A pointer to an array of strings that is the
+ *                     contents of the request. (See note 2.)
+ *
+ *  num_fields         The number of fields in the message_fields 
+ *                     array.
+ */
+
+typedef void (*DtSvcMessageProc) ();
+/*
+    DtSvcHandle        service,
+    Pointer            client_data,
+    String *           message_fields,
+    int                        num_fields);
+*/
+/*
+ *  service            A handle for the service.
+ *
+ *  client_data                A pointer to the data that was specified when
+ *                     the callback was registered.
+ *
+ *  message_fields     A pointer to an array of strings that is the
+ *                     contents of the message. (See note 2.)
+ *
+ *  num_fields         The number of fields in the message_fields 
+ *                     array.
+ */
+
+typedef void (*DtSvcStatusProc) ();
+/*
+    DtSvcHandle        service,
+    int                        status,
+    Pointer            client_data);
+*/
+/*
+ *  service            Handle to the service whose status is being
+ *                     reported.
+ *
+ *  status             The status of the service being started.
+ *
+ *  client_data                Pointer to the data that was registered when
+ *                     the callback was registered.
+ */
+
+/************* CONSTANTS ******************************************
+ */
+
+/* The following are types of reply messages.
+ */
+
+#define DT_SVC_SUCCESS          1      /* The request succeeded. */
+
+#define DT_SVC_FAIL            -1      /* The service failed to carry
+                                        * out the request.
+                                        */
+
+#define DT_SVC_DELIVERY_FAIL   -2      /* The request could not be 
+                                        * delivered to the service for
+                                        * some reason.  For example,
+                                        * the service may not be running
+                                        * and cannot be invoked.
+                                        */
+
+/* The following are types of status.
+ */
+
+#define DT_SVC_START            1      /* The service was started. */
+
+#define DT_SVC_NO_START        -1      /* The service failed to start.
+                                        */
+
+#define DT_SVC_LOST            -2      /* The service was lost. Another
+                                          provider took over ownership
+                                          for this service. */
+
+#endif /*_Dt_Service_h*/
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Session.h b/cde/include/Dt/Session.h
new file mode 100644 (file)
index 0000000..7256140
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Session.h /main/3 1995/10/26 15:10:56 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef _Dt_Session_h
+#define _Dt_Session_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Functions
+ */
+
+extern Boolean DtSessionSavePath(
+               Widget          widget,
+               char            **save_path,
+               char            **save_file);
+
+extern Boolean DtSessionRestorePath(
+               Widget          widget,
+               char            **restore_path,
+               char            *restore_file);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Session_h */
diff --git a/cde/include/Dt/SessionM.h b/cde/include/Dt/SessionM.h
new file mode 100644 (file)
index 0000000..934a93d
--- /dev/null
@@ -0,0 +1,250 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: SessionM.h /main/8 1998/07/30 12:10:49 mgreess $ */
+/*                                                                           
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company                    
+ * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.      
+ * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.                     
+ * (c) Copyright 1993, 1994, 1996 Novell, Inc.                               
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:        SessionM.h
+ **
+ **  Description:
+ **  -----------
+ **  Contains all variables needed for SM messaging.  All messages serviced,
+ **  and the tool class name for the session manager
+ **
+ **
+ **
+ *******************************************************************
+ **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
+ **  reserved.  Copying or other reproduction of this program      
+ **  except for archival purposes is prohibited without prior      
+ **  written consent of Hewlett-Packard Company.                    
+ ********************************************************************
+ **
+ **
+ *****************************************************************************
+ *************************************<+>*************************************/
+#ifndef _SessionM_h
+#define _SessionM_h
+
+/*
+ * Include files
+ */
+/* If <X11/Intrinsic.h> is included along with this file, <X11/Intrinsic.h>
+   MUST be included first due to "typedef Boolean ..." problems.  The following
+         conditional #define is also part of the solution to this problem. */
+#include <X11/X.h>
+#include <X11/Intrinsic.h>
+
+/*
+ * Tool class for the session manager
+ */
+#define DtSM_TOOL_CLASS                        "SESSIONMGR"
+
+/*
+ * SM_STARTUP_CHANGE an SM_STATE parameters
+ */
+#define DtSM_VERBOSE_MODE              1
+#define DtSM_QUIET_MODE                        2
+#define DtSM_ASK_STATE                 0
+#define DtSM_HOME_STATE                        3
+#define DtSM_CURRENT_STATE             4 
+
+
+/*
+ * Atoms for session manager/style manager communication
+ */
+#define _XA_DT_SM_STM_PROTOCOL                 "_DT_SM_STM_PROTOCOL"
+#define _XA_DT_SM_SAVE_TO_HOME                 "_DT_SM_SAVE_TO_HOME"
+#define _XA_DT_SM_STATE_CHANGE                 "_DT_SM_STATE_CHANGE"
+#define _XA_DT_SM_RESTORE_DEFAULT              "_DT_SM_RESTORE_DEFAULT"
+#define _XA_DT_SM_PREFERENCES                  "_DT_SM_PREFERENCES"
+
+/*
+ * Atoms for lock changes
+ */
+#define _XA_DT_SM_LOCK_CHANGE          "_DT_SM_LOCK_CHANGE"
+#define CoverScreenMask                (1L<<0)
+#define LockOnTimeoutMask              (1L<<1)
+
+/*
+ * Parameters to be sent into session manager
+ */
+
+/*
+ * Atoms for communicating configuration changes and state
+ */
+/*
+ * Defines needed for getting/setting the sm window property on the root
+ */
+#define PROP_DT_SM_WINDOW_INFO_ELEMENTS     2
+#define _XA_DT_SM_WINDOW_INFO       "_DT_SM_WINDOW_INFO"
+
+/*
+ * Defines needed for getting the session manager state off it's window
+ */
+#define PROP_DT_SM_STATE_INFO_ELEMENTS     13
+#define _XA_DT_SM_STATE_INFO       "_DT_SM_STATE_INFO"
+
+/*
+ * Defines needed for the screen saver list property.
+ */
+#define _XA_DT_SM_SAVER_INFO       "_DT_SM_SAVER_INFO"
+
+/*
+ * Defines needed for the screen saver property
+ */
+#define PROP_DT_SM_SCREEN_INFO_ELEMENTS     5
+#define _XA_DT_SM_SCREEN_INFO       "_DT_SM_SCREEN_INFO"
+
+/*
+ * Defines needed for the audio property
+ */
+#define PROP_DT_SM_AUDIO_INFO_ELEMENTS     4
+#define _XA_DT_SM_AUDIO_INFO       "_DT_SM_AUDIO_INFO"
+
+/*
+ * Defines needed for the keyboard property
+ */
+#define PROP_DT_SM_KEYBOARD_INFO_ELEMENTS     3
+#define _XA_DT_SM_KEYBOARD_INFO       "_DT_SM_KEYBOARD_INFO"
+
+/*
+ * Define needed for the font info property
+ */
+#define _XA_DT_SM_FONT_INFO       "_DT_SM_FONT_INFO"
+
+/*
+ * Define needed for the font info property
+ */
+#define _XA_DT_SM_POINTER_INFO       "_DT_SM_POINTER_INFO"
+
+/*
+ * Define needed for the preeditType info property
+ */
+#define _XA_DT_SM_PREEDIT_INFO       "_DT_SM_PREEDIT_INFO"
+
+/*  bit definitions for SmStateInfo.flags */
+#define SM_STATE_NONE          0
+#define SM_STATE_START         (1L << 0)
+#define SM_STATE_CONFIRM       (1L << 1)
+#define SM_STATE_COMPAT        (1L << 2)
+#define SM_STATE_SEND          (1L << 3)
+#define SM_STATE_COVER         (1L << 4)   /* Obsolete */
+#define SM_STATE_LOTOUT                (1L << 5)   /* Obsolete */
+#define SM_STATE_LOTOUTSTAT     (1L << 6)
+
+#define SM_STATE_CYCLETIMEOUT   (1L << 7)
+#define SM_STATE_LOCKTIMEOUT    (1L << 8)
+#define SM_STATE_SAVERTIMEOUT   (1L << 9)
+#define SM_STATE_RANDOM         (1L << 10)
+#define SM_STATE_DISP_SESSION  (1L << 11)
+
+
+#define SM_STATE_ALL   (SM_STATE_START   | SM_STATE_CONFIRM |\
+                        SM_STATE_COMPAT  | SM_STATE_SEND    |\
+                        SM_STATE_COVER   | SM_STATE_LOTOUT  |\
+                        SM_STATE_LOTOUTSTAT | SM_STATE_CYCLETIMEOUT |\
+                         SM_STATE_LOCKTIMEOUT | SM_STATE_SAVERTIMEOUT |\
+                         SM_STATE_RANDOM | SM_STATE_DISP_SESSION)
+
+
+/*
+ * typedef statements for structures to be returned
+ */
+typedef struct
+{
+    int                 flags;
+    int                 smStartState;
+    int                 smConfirmMode;
+    Boolean     smCompatMode;
+    Boolean     smSendSettings;
+    Boolean     smCoverScreen;    /* Obsolete */
+    Boolean     smLockOnTimeout;  /* Obsolete */
+    Boolean     smLockOnTimeoutStatus;
+    int          smCycleTimeout;
+    int          smLockTimeout;
+    int          smSaverTimeout;
+    Boolean      smRandom;
+    Boolean     smDisplaySpecific;     /* If True, the currently running
+                                          session is for a specific display */
+
+} SmStateInfo;
+
+typedef struct
+{
+    char *saverList;
+} SmSaverInfo;
+
+typedef struct
+{
+    int flags;
+    int smTimeout;
+    int smInterval;
+    int smPreferBlank;
+    int smAllowExp;
+} SmScreenInfo;
+
+typedef struct
+{
+    int flags;
+    int smBellPercent;
+    unsigned int smBellPitch;
+    unsigned int smBellDuration;
+} SmAudioInfo;
+
+
+typedef struct
+{
+    int flags;
+    int smKeyClickPercent;
+    int smGlobalAutoRepeat;
+} SmKeyboardInfo;
+
+/*
+ * Function definitions
+ */
+extern Status _DtGetSmWindow(Display *, Window, Window *) ;
+extern Status _DtGetSmState(Display *, Window, SmStateInfo *);
+extern Status _DtSetSmState(Display *, Window, SmStateInfo *);
+extern Status _DtGetSmSaver(Display *, Window, SmSaverInfo *);
+extern void   _DtSetSmSaver(Display *, Window, SmSaverInfo *);
+extern Status _DtGetSmScreen(Display *, Window, Atom, SmScreenInfo *);
+extern Status _DtGetSmAudio(Display *, Window, Atom, SmAudioInfo *);
+extern Status _DtGetSmKeyboard(Display *, Window, Atom, SmKeyboardInfo *);
+extern Status _DtGetSmFont(Display *, Window, Atom, char **);
+extern Status _DtGetSmPointer(Display *, Window, Atom, char **);
+extern Status _DtGetSmPreedit(Display *, Window, Atom, char **);
+
+#endif /* _SessionM_h */
+
+
+
diff --git a/cde/include/Dt/SessionP.h b/cde/include/Dt/SessionP.h
new file mode 100644 (file)
index 0000000..e685dc5
--- /dev/null
@@ -0,0 +1,130 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: SessionP.h /main/5 1998/07/30 12:11:06 mgreess $ */
+/*                                                                            *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.             *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                      *
+ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:        SessionP.h
+ **
+ **  Description:  Private header for Session Management routines
+ **  -----------
+ **
+ *******************************************************************
+ **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
+ **  reserved.  Copying or other reproduction of this program      
+ **  except for archival purposes is prohibited without prior      
+ **  written consent of Hewlett-Packard Company.                    
+ ********************************************************************
+ **
+ **
+ **
+ *****************************************************************************
+ *************************************<+>*************************************/
+
+#ifndef _SessionP_h
+#define _SessionP_h
+
+/*
+ *  include statements
+ */
+
+/*
+ * define statements
+ */
+
+/*
+ * typedef statements
+ */
+
+/*
+ * Definition for the _DT_SM_WINDOW_INFO property. 
+ */
+typedef struct
+{
+    unsigned long flags;
+    unsigned long smWindow;
+} PropDtSmWindowInfo;
+
+/*
+ * Definition for the _DT_SM_STATE_INFO property
+ */
+typedef struct
+{
+    unsigned long flags;
+    unsigned long smStartState;
+    unsigned long smConfirmMode;
+    unsigned long smCompatMode;
+    unsigned long smSendSettings;
+    unsigned long smCoverScreen;
+    unsigned long smLockOnTimeout;
+    unsigned long smLockOnTimeoutStatus;
+    unsigned long smCycleTimeout;
+    unsigned long smLockTimeout;
+    unsigned long smSaverTimeout;
+    unsigned long smRandom;
+    unsigned long smDisplaySpecific;
+} PropDtSmStateInfo;
+
+/*
+ * Definition for the _DT_SM_SCREEN_INFO property
+ */
+typedef struct
+{
+    unsigned long flags;
+    unsigned long smTimeout;
+    unsigned long smInterval;
+    unsigned long smPreferBlank;
+    unsigned long smAllowExp;
+} PropDtSmScreenInfo;
+
+/*
+ * Definition for the _DT_SM_AUDIO_INFO property
+ */
+typedef struct
+{
+    unsigned long flags;
+    unsigned long smBellPercent;
+    unsigned long smBellPitch;
+    unsigned long smBellDuration;
+} PropDtSmAudioInfo;
+
+
+/*
+ * Definition for the _DT_SM_KEYBOARD_INFO property
+ */
+typedef struct
+{
+    unsigned long flags;
+    unsigned long smKeyClickPercent;
+    unsigned long smGlobalAutoRepeat;
+} PropDtSmKeyboardInfo;
+
+
+#endif /* _SessionP_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Setlocale.h b/cde/include/Dt/Setlocale.h
new file mode 100644 (file)
index 0000000..fd93588
--- /dev/null
@@ -0,0 +1,363 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Setlocale.h /main/3 1995/10/26 15:27:34 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
+
+#ifndef DtSETLOCALE_INCLUDED /* allow multiple inclusions */
+#define DtSETLOCALE_INCLUDED
+
+#ifdef _NAMESPACE_CLEAN
+#define _1kanji __1kanji
+#define _2kanji __2kanji
+#define _downshift __downshift
+#define _upshift __upshift
+#endif /* _NAMESPACE_CLEAN */
+
+#include       <locale.h>
+#include       <limits.h>
+#include       <nl_types.h>
+#include       <langinfo.h>
+#include       <Dt/Collate.h>
+
+#ifndef _NL_ORDER
+#define _NL_ORDER
+typedef int nl_order;
+#endif
+#ifndef _NL_MODE
+#define _NL_MODE
+typedef int nl_mode;
+#endif
+#ifndef _NL_OUTDGT
+#define _NL_OUTDGT
+typedef int nl_outdgt;
+#endif
+#ifndef MAXLNAMELEN
+#define MAXLNAMELEN 14
+#endif
+#endif
+
+struct _era_data {                     /* defines an Emperor/Era time period */
+       short start_year;               /* starting date of era */
+       unsigned short start_month;
+       unsigned short start_day;
+       short end_year;                 /* ending date of era */
+       unsigned short end_month;
+       unsigned short end_day;
+       short origin_year;              /* time axis origin for era (one of start_year or end_year) */
+       short offset;                   /* offset from 0 for 1st year of era */
+       short signflag;                 /* adjusts sign of (year - origin_year) value */
+       unsigned short reserved;
+       unsigned char *name;            /* name of era */
+       unsigned char *format;          /* instead of nl_langinfo(ERA_FMT) */
+};
+
+extern int             __nl_langid[];  /* langid of currently loaded language  */
+extern unsigned char   *__ctype;       /* pointer to ctype table       */
+extern unsigned char   *_1kanji;       /* pointer to 1st of 2 kanji table */
+extern unsigned char   *_2kanji;       /* pointer to 2nd of 2 kanji table */
+extern unsigned char   *_upshift;      /* pointer to up shift table */
+extern unsigned char   *_downshift;    /* pointer to down shift table */
+#ifdef EUC
+extern unsigned char   *__e_cset;      /* pointer to expanded char set table */
+extern unsigned char   *__ein_csize;   /* pointer to expanded in_csize table */
+extern unsigned char   *__eout_csize;  /* pointer to expanded out_csize table*/
+#endif /* EUC */
+extern struct _era_data *_nl_era[];    /* array of era info str pointer */
+extern int             _nl_radix;      /* radix character */
+extern int             _sh_low;        /* lowest char in shift table domain */
+extern int             _sh_high;       /* highest char in shift table domain */
+extern int             __nl_char_size; /* size of characters */
+#ifdef EUC
+extern int             __nl_code_scheme;/* flag for char code scheme */
+extern int             __cs_SBYTE;     /* flag for 1 byte char code scheme */
+extern int             __cs_HP15;      /* flag for HP15 char code scheme */
+extern int             __cs_EUC;       /* flag for EUC char code scheme */
+extern unsigned char   __in_csize[];   /* input char size */
+extern unsigned char   __out_csize[];  /* output char size */
+extern unsigned int    __euc_template[]; /* euc process code template */
+#endif /* EUC */
+extern nl_direct       _nl_direct;     /* direction flag */
+extern int             _nl_context;    /* directionality context flag */
+extern  nl_order       _nl_order;      /* order flag */
+extern  nl_mode                _nl_mode;       /* mode flag; Latin or non-Latin */
+extern  nl_outdgt      _nl_outdigit;   /* digit output : ascii or alt digit */
+
+extern int             _nl_space_alt;  /* value of alternative space */
+extern unsigned char   *_nl_dgt_alt;   /* buffer for alt digit string */
+extern unsigned char   *_nl_punct_alt; /* buffer for alt punctuation string */
+extern  unsigned char  *_nl_pascii;    /* buffer for ascii punctuation string */
+extern  unsigned char  *_nl_dascii;    /* buffer for ascii digits string */
+extern int             _nl_map21;      /* non-zero if 2-to-1 mappings */
+extern int             _nl_onlyseq;    /* true if only 1-to-1 char w no pri */
+extern  int            _nl_collate_on; /* true if collation table loaded */
+extern  int            _nl_mb_collate; /* true if collation is multibyte */
+
+extern unsigned char    *_seqtab;      /* dictionary sequence number table */
+extern unsigned char    *_pritab;      /* 1to2/2to1 flag + priority table */
+extern struct col_21tab *_tab21;       /* 2-to-1 mapping table */
+extern struct col_12tab *_tab12;       /* 1-to-2 mapping table */
+
+extern unsigned char   *__errptr;      /* pointer to an area _errlocale() can use as a buffer */
+
+extern struct lconv    *_lconv;
+extern unsigned char   *__category_name[];
+
+extern unsigned char   **__nl_info;    /* pointers to locale langinfo strings */
+extern unsigned char   *__C_langinfo[];/* default langinfo strings for the C locale */
+#define _NL_MAX_MSG    ERA_FMT         /* last nl_langinfo item */
+
+/***************************************************************************
+
+    The remainder of this file includes structures for the language files.
+    The files are built by buildlang(1M).
+
+    The structure of the files is as follows :
+
+        ----------------------------------
+       |  Table Header (A)              |
+       ----------------------------------
+       | Category/Modifier Structures(B)|
+       ==================================
+       |  LC_ALL Table Header  (C)      |
+       -   -   -   -   -   -   -   -    -
+       |  LC_ALL Data                   |
+       ----------------------------------
+       |  LC_COLLATE Table Header (D)   |
+       -   -   -   -   -   -   -   -    -
+       |  LC_COLLATE Data               |
+       ----------------------------------
+       |  LC_CTYPE  Table Header (E)    |
+       -   -   -   -   -   -   -   -    -
+       |  LC_CTYPE  Data                |
+       ----------------------------------
+       |  LC_MONETARY Table Header (F)
+       -   -   -   -   -   -   -   -    -
+       |  LC_MONETARY  Data             |
+       ----------------------------------
+       |  LC_NUMERIC  Table Header (G)  |
+       -   -   -   -   -   -   -   -    -
+       |  LC_NUMERIC  Data              |
+       ----------------------------------
+       |  LC_TIME  Table Header (H)     |
+       -   -   -   -   -   -   -   -    -
+       |  LC_TIME  Data                 |
+       ----------------------------------
+
+*****************************************************************************/
+
+
+/* Category Id's */
+
+
+/* Table Header (A) */
+
+struct table_header {
+       unsigned int size;              /* size of table header and category
+                                          structure. (A) + (B)  */
+       unsigned short nl_langid;       /* _nl_langid */
+       unsigned char lang[3*MAXLNAMELEN+2+1];  /* language name */
+       unsigned short cat_no;          /* number of categories defined */
+       unsigned short mod_no;          /* number of modifiers defined */
+       unsigned short rev_flag;        /* true if HP defined */
+       unsigned char rev_str[36];      /* Revision String */
+       unsigned short codeset;         /* 0 if 1 byte, 1 if 2 byte */
+       unsigned int    reserved1;
+       unsigned int    reserved2;
+       unsigned int    reserved3;
+};
+
+/* Category/Modifier Structure (B)
+
+   Catinfotype structure describes a category/modifier table
+   There is one structure for each category and modifier defined.
+   These entries follow the table header */
+
+
+struct catinfotype
+{
+       int size;                               /* size of category table */
+       int address;                            /* address of category table -
+                                                  offset from the beginning of
+                                                  the category tables () */
+       short catid;                            /* category id */
+       unsigned char mod_name[MAXLNAMELEN+1];  /* name of modifier */
+       short mod_addr;                         /* address of category table
+                                                  for modifier - offset from
+                                                  beginning of file */
+};
+
+
+/* Below are the category headers for each of the defined categories
+   All addresses are offset from the beginning of the category information */
+
+/* LC_ALL Table  (C) */
+
+struct all_header {
+       unsigned short yes_addr;                /* msg_index[YESSTR] */
+       unsigned short no_addr;         /* msg_index[NOSTR] */
+       unsigned short direct_addr;     /* msg_index[DIRECTION] */
+                                       /* _nl_direct */
+       unsigned short context_addr;    /* _nl_context */
+};
+
+/* LC_COLLATE Tables (D) */
+
+struct col_header {
+       unsigned int seqtab_addr;       /* _seqtab */
+       unsigned int pritab_addr;       /* _pritab */
+       unsigned short nl_map21;        /* not an address */
+       unsigned short nl_onlyseq;      /* not an address */
+       unsigned int tab21_addr;
+       unsigned int tab12_addr;
+};
+
+
+/* LC_CTYPE Tables (E) */
+
+struct ctype_header {
+       unsigned int _sh_high;          /* _sh_high */
+       int _sh_low;                    /* _sh_low */
+       unsigned int _ctype_addr;       /* __ctype */
+       unsigned int kanji1_addr;       /* _1kanji */
+       unsigned int kanji2_addr;       /* _2kanji */
+       unsigned int upshift_addr;      /* _upshift */
+       unsigned int downshift_addr;    /* _downshift */
+       unsigned short byte_char_addr;  /* msg_index[BYTES_CHAR] */
+       unsigned short alt_punct_addr;  /* msg_index[ALT_PUNCT] */
+                                       /* _nl_punct_alt[] */
+                                       /* _nl_space_alt   */
+#ifdef EUC
+       unsigned int io_csize_addr;     /* __io_csize[] */
+       unsigned int e_cset_addr;       /* __e_cset */
+       unsigned int ein_csize_addr;    /* __ein_csize */
+       unsigned int eout_csize_addr;   /* __eout_csize */
+#endif /* EUC */
+};
+
+
+
+/* LC_MONETARY Tables (F) */
+
+
+struct monetary_header {
+       unsigned short int_frac_digits;         /* _lconv->short_frac_digits */
+       unsigned short frac_digits;             /* _lconv->frac_digits */
+       unsigned short p_cs_precedes;           /* _lconv->p_cs_precedes */
+       unsigned short p_sep_by_space;          /* _lconv->p_sep_by_space */
+       unsigned short n_cs_precedes;           /* _lconv->n_cs_precedes */
+       unsigned short n_sep_by_space;          /* _lconv->n_sep_by_space */
+       unsigned short p_sign_posn;             /* _lconv->p_sign_posn */
+       unsigned short n_sign_posn;             /* _lconv->n_sign_posn */
+       unsigned short curr_symbol_lconv;               /* _lconv->currency_symbol */
+       unsigned short curr_symbol_li;          /* msg_index[CRNCYSTR] */
+       unsigned short mon_decimal_point;               /* _lconv->mon_decimal_point */
+       unsigned short int_curr_symbol;         /* _lconv->short_curr_symbol */
+       unsigned short mon_thousands_sep;               /* _lconv->mon_thousands_sep */
+       unsigned short mon_grouping;            /* _lconv->mon_grouping */
+       unsigned short positive_sign;           /* _lconv->positive_sign */
+       unsigned short negative_sign;           /* _lconv->negative_sign */
+};
+
+
+
+/* LC_NUMERIC Tables (G) */
+
+
+struct numeric_header {
+       unsigned short grouping;                        /* _lconv->grouping */
+       unsigned short decimal_point;           /* _lconv->decimal_point */
+                                               /* msg_index[RADIXCHAR] */
+                                               /* _nl_radix */
+       unsigned short thousands_sep;           /* _lconv->thousands_sep */
+                                               /* msg_index[THOUSEP] */
+       unsigned short alt_digit_addr;          /* msg_index[ALT_DIGIT] */
+};
+
+
+
+/* LC_TIME Tables (H) */
+
+struct time_header {
+       unsigned short d_t_fmt;                 /* msg_index[D_T_FMT] */
+       unsigned short d_fmt;                   /* msg_index[D_FMT] */
+       unsigned short t_fmt;                   /* msg_index[T_FMT] */
+       unsigned short day_1;                   /* msg_index[DAY_1] */
+       unsigned short day_2;                   /* msg_index[DAY_2] */
+       unsigned short day_3;                   /* msg_index[DAY_3] */
+       unsigned short day_4;                   /* msg_index[DAY_4] */
+       unsigned short day_5;                   /* msg_index[DAY_5] */
+       unsigned short day_6;                   /* msg_index[DAY_6] */
+       unsigned short day_7;                   /* msg_index[DAY_7] */
+       unsigned short abday_1;                 /* msg_index[ABDAY_1] */
+       unsigned short abday_2;                 /* msg_index[ABDAY_2] */
+       unsigned short abday_3;                 /* msg_index[ABDAY_3] */
+       unsigned short abday_4;                 /* msg_index[ABDAY_4] */
+       unsigned short abday_5;                 /* msg_index[ABDAY_5] */
+       unsigned short abday_6;                 /* msg_index[ABDAY_6] */
+       unsigned short abday_7;                 /* msg_index[ABDAY_7] */
+       unsigned short mon_1;                   /* msg_index[MON_1] */
+       unsigned short mon_2;                   /* msg_index[MON_2] */
+       unsigned short mon_3;                   /* msg_index[MON_3] */
+       unsigned short mon_4;                   /* msg_index[MON_4] */
+       unsigned short mon_5;                   /* msg_index[MON_5] */
+       unsigned short mon_6;                   /* msg_index[MON_6] */
+       unsigned short mon_7;                   /* msg_index[MON_7] */
+       unsigned short mon_8;                   /* msg_index[MON_8] */
+       unsigned short mon_9;                   /* msg_index[MON_9] */
+       unsigned short mon_10;                  /* msg_index[MON_10] */
+       unsigned short mon_11;                  /* msg_index[MON_11] */
+       unsigned short mon_12;                  /* msg_index[MON_12] */
+       unsigned short abmon_1;                 /* msg_index[ABMON_1] */
+       unsigned short abmon_2;                 /* msg_index[ABMON_2] */
+       unsigned short abmon_3;                 /* msg_index[ABMON_3] */
+       unsigned short abmon_4;                 /* msg_index[ABMON_4] */
+       unsigned short abmon_5;                 /* msg_index[ABMON_5] */
+       unsigned short abmon_6;                 /* msg_index[ABMON_6] */
+       unsigned short abmon_7;                 /* msg_index[ABMON_7] */
+       unsigned short abmon_8;                 /* msg_index[ABMON_8] */
+       unsigned short abmon_9;                 /* msg_index[ABMON_9] */
+       unsigned short abmon_10;                /* msg_index[ABMON_10] */
+       unsigned short abmon_11;                /* msg_index[ABMON_11] */
+       unsigned short abmon_12;                /* msg_index[ABMON_12] */
+       unsigned short am_str;                  /* msg_index[AM_STR] */
+       unsigned short pm_str;                  /* msg_index[PM_STR] */
+       unsigned short year_unit;               /* msg_index[YEAR_UNIT] */
+       unsigned short mon_unit;                /* msg_index[MON_UNIT] */
+       unsigned short day_unit;                /* msg_index[DAY_UNIT] */
+       unsigned short hour_unit;               /* msg_index[HOUR_UNIT] */
+       unsigned short min_unit;                /* msg_index[MIN_UNIT] */
+       unsigned short sec_unit;                /* msg_index[SEC_UNIT] */
+       unsigned short era_fmt;                 /* msg_index[ERA_FMT] */
+       unsigned short era_count;               /* number of era entries */
+       unsigned short era_names;               /* address of era name and format strings */
+       unsigned short era_addr;                /* address of era data structure entries */
+       unsigned short reserved;                /* address of era data structure entries */
+};
+
+#endif /* DtSETLOCALE_INCLUDED */
diff --git a/cde/include/Dt/SharedProcs.h b/cde/include/Dt/SharedProcs.h
new file mode 100644 (file)
index 0000000..0e9e520
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        SharedProcs.h
+ **
+ **   Project:     SUI
+ **
+ **   Description: Public include file for some shared functions.
+ **
+ **
+ **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _SharedProcs_h
+#define _SharedProcs_h
+
+
+/********    Public Function Declarations    ********/
+
+extern String _DtStripSpaces( 
+                        String string) ;
+extern void _DtMessage(
+                        Widget w,
+                        char *title,
+                        char *message_text,
+                        XtPointer helpIdStr,
+                        void (*helpCallback)()) ;
+extern Widget _DtMessageDialog(
+                        Widget w,
+                        char *title,
+                        char *message_text,
+                        XtPointer helpIdStr,
+                        Boolean cancel_btn,
+                        void (*cancel_callback)(),
+                        void (*ok_callback)(),
+                        void (*close_callback)(),
+                        void (*help_callback)(),
+                        Boolean deleteOnClose,
+                        int dialogType) ;
+extern void _DtMessageOK(
+                        Widget w,
+                        XtPointer client_data,
+                        XtPointer call_data) ;
+extern void _DtMessageClose(
+                        Widget w,
+                        XtPointer client_data,
+                        XEvent *event) ;
+
+/********    End Public Function Declarations    ********/
+
+/* _DtMessage Dialog build defines */
+#define ERROR_DIALOG  1
+#define WARNING_DIALOG  2
+#define QUESTION_DIALOG 3
+
+/* Flag which can be used to prevent error dialogs from being posted */
+extern Boolean messageDisplayEnabled;
+
+/* Flag controlling whether dialogs are auto-positioned */
+extern Boolean disableDialogAutoPlacement;
+
+/* Generic overlay for all dialog 'Rec' structures */
+typedef struct
+{
+   Widget shell;
+} GenericRecord;
+
+#endif /* _SharedProcs_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/SmCreateDirs.h b/cde/include/Dt/SmCreateDirs.h
new file mode 100644 (file)
index 0000000..f637c1f
--- /dev/null
@@ -0,0 +1,73 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SmCreateDirs.h /main/4 1995/10/26 15:28:38 rswiston $ */
+/*                                                                            *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.             *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                      *
+ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:        SmCreateDirs.h
+ **
+ **  Description:  Header file for SmCreateDirs.c
+ **  -----------
+ **
+ *******************************************************************
+ **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
+ **  reserved.  Copying or other reproduction of this program      
+ **  except for archival purposes is prohibited without prior      
+ **  written consent of Hewlett-Packard Company.                    
+ ********************************************************************
+ **
+ **
+ **
+ *****************************************************************************
+ *************************************<+>*************************************/
+
+#ifndef _SmCreateDirs_h
+#define _SmCreateDirs_h
+
+/*
+ *  include statements
+ */
+
+/*
+ * define statements
+ */
+
+/*
+ * typedef statements
+ */
+
+/*
+ * Function definitions
+ */
+
+extern char * _DtCreateDtDirs(Display *display) ;
+
+
+#endif /* _SmCreateDirs_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/Spc.h b/cde/include/Dt/Spc.h
new file mode 100644 (file)
index 0000000..770ef4e
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Spc.h $XConsortium: Spc.h /main/3 1995/10/26 15:28:51 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_SPC_h
+#define _Dt_SPC_h
+
+#include <bms/spc.h>
+
+/* 
+ * For definitions of any of the following, look in <bms/spc.h>.
+ */
+
+#define DtSPCOpen              XeSPCOpen
+#define DtSPCClose             XeSPCClose
+#define DtSPCSpawn             XeSPCSpawn
+#define DtSPCAddInput          XeSPCAddInput
+#define DtSPCRegisterTerminator        XeSPCRegisterTerminator
+#define DtSPCErrorNumber       XeSPCErrorNumber
+
+#endif /* #ifdef _Dt_SPC_h */
diff --git a/cde/include/Dt/SpinBox.h b/cde/include/Dt/SpinBox.h
new file mode 100644 (file)
index 0000000..3d1515d
--- /dev/null
@@ -0,0 +1,566 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SpinBox.h /main/4 1995/10/26 09:34:23 rswiston $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ */
+/***********************************************************
+Copyright 1993 Interleaf, Inc.
+
+Permission to use, copy, modify, and distribute this software
+and its documentation for any purpose without fee is granted,
+provided that the above copyright notice appear in all copies
+and that both copyright notice and this permission notice appear
+in supporting documentation, and that the name of Interleaf not
+be used in advertising or publicly pertaining to distribution of
+the software without specific written prior permission.
+
+Interleaf makes no representation about the suitability of this
+software for any purpose. It is provided "AS IS" without any
+express or implied warranty.
+******************************************************************/
+
+#ifndef _Dt_SpinBox_h
+#define _Dt_SpinBox_h
+
+#include <Xm/Xm.h>
+#if defined(DT_USE_XM_SSPINBOX)
+#include <Xm/SSpinB.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DtNarrowLayout
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNarrowLayout               XmNarrowLayout
+#  else
+#  define DtNarrowLayout               "arrowLayout"
+#  endif
+#endif
+#ifndef DtNarrowSensitivity
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNarrowSensitivity          XmNarrowSensitivity
+#  else
+#  define DtNarrowSensitivity          "arrowSensitivity"
+#  endif
+#endif
+#ifndef DtNarrowSize
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNarrowSize                 XmNarrowSize
+#  else
+#  define DtNarrowSize                 "arrowSize"
+#  endif
+#endif
+#ifndef DtNspinBoxChildType
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNspinBoxChildType          XmNspinBoxChildType
+#  else
+#  define DtNspinBoxChildType          "spinBoxChildType"
+#  endif
+#endif
+#ifndef DtNposition
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNposition                  XmNposition
+#  else
+#  define DtNposition                  "position"
+#  endif
+#endif
+#ifndef DtNtextField
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNtextField                 XmNtextField
+#  else
+#  define DtNtextField                 "textField"
+#  endif
+#endif
+#ifndef DtNwrap
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNwrap                      "wrap"
+#  else
+#  define DtNwrap                      "wrap"
+#  endif
+#endif
+#ifndef DtNincrementValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNincrementValue            XmNincrementValue
+#  else
+#  define DtNincrementValue            "incrementValue"
+#  endif
+#endif
+#ifndef DtNmaximumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNmaximumValue              XmNmaximumValue
+#  else
+#  define DtNmaximumValue              "maximumValue"
+#  endif
+#endif
+#ifndef DtNminimumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNminimumValue              XmNminimumValue
+#  else
+#  define DtNminimumValue              "minimumValue"
+#  endif
+#endif
+#ifndef DtNnumValues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNnumValues                 XmNnumValues
+#  else
+#  define DtNnumValues                 "numValues"
+#  endif
+#endif
+#ifndef DtNvalues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNvalues                    XmNvalues
+#  else
+#  define DtNvalues                    "values"
+#  endif
+#endif
+
+#ifndef DtNactivateCallback
+#define DtNactivateCallback    XmNactivateCallback
+#endif
+#ifndef DtNalignment
+#define DtNalignment           XmNalignment
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns             XmNcolumns
+#endif
+#ifndef DtNdecimalPoints
+#define DtNdecimalPoints       XmNdecimalPoints
+#endif
+#ifndef DtNeditable
+#define DtNeditable            XmNeditable
+#endif
+#ifndef DtNfocusCallback
+#define DtNfocusCallback       XmNfocusCallback
+#endif
+#ifndef DtNinitialDelay
+#define DtNinitialDelay                XmNinitialDelay
+#endif
+#ifndef DtNlosingFocusCallback
+#define DtNlosingFocusCallback XmNlosingFocusCallback
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                XmNmarginHeight
+#endif
+#ifndef DtNmarginWidth
+#define DtNmarginWidth         XmNmarginWidth
+#endif
+#ifndef DtNmaxLength
+#define DtNmaxLength           XmNmaxLength
+#endif
+#ifndef DtNmodifyVerifyCallback
+#define DtNmodifyVerifyCallback        XmNmodifyVerifyCallback
+#endif
+#ifndef DtNrecomputeSize
+#define DtNrecomputeSize       XmNrecomputeSize
+#endif
+#ifndef DtNrepeatDelay
+#define DtNrepeatDelay         XmNrepeatDelay
+#endif
+#ifndef DtNvalueChangedCallback
+#define DtNvalueChangedCallback        XmNvalueChangedCallback
+#endif
+
+#ifndef DtCArrowLayout
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCArrowLayout               XmCArrowLayout
+#  else
+#  define DtCArrowLayout               "ArrowLayout"
+#  endif
+#endif
+#ifndef DtCArrowSensitivity
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCArrowSensitivity          XmCArrowSensitivity
+#  else
+#  define DtCArrowSensitivity          "ArrowSensitivity"
+#  endif
+#endif
+#ifndef DtCArrowSize
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCArrowSize                 XmCArrowSize
+#  else
+#  define DtCArrowSize                 "ArrowSize"
+#  endif
+#endif
+#ifndef DtCSpinBoxChildType
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCSpinBoxChildType          XmCSpinBoxChildType
+#  else
+#  define DtCSpinBoxChildType          "SpinBoxChildType"
+#  endif
+#endif
+#ifndef DtCPosition
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCPosition                  XmCPosition
+#  else
+#  define DtCPosition                  "Position"
+#  endif
+#endif
+#ifndef DtCTextField
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCTextField                 XmCTextField
+#  else
+#  define DtCTextField                 "TextField"
+#  endif
+#endif
+#ifndef DtCWrap
+#  define DtCWrap                      "Wrap"
+#endif
+#ifndef DtCIncrementValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCIncrementValue            XmCIncrementValue
+#  else
+#  define DtCIncrementValue            "incrementValue"
+#  endif
+#endif
+#ifndef DtCMaximumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCMaximumValue              XmCMaximumValue
+#  else
+#  define DtCMaximumValue              "maximumValue"
+#  endif
+#endif
+#ifndef DtCMinimumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCMinimumValue              XmCMinimumValue
+#  else
+#  define DtCMinimumValue              "minimumValue"
+#  endif
+#endif
+#ifndef DtCNumValues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCNumValues                 XmCNumValues
+#  else
+#  define DtCNumValues                 "numValues"
+#  endif
+#endif
+#ifndef DtCValues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCValues                    XmCValues
+#  else
+#  define DtCValues                    "values"
+#  endif
+#endif
+
+#ifndef DtCAlignment
+#define DtCAlignment           XmCAlignment
+#endif
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCColumns
+#define DtCColumns             XmCColumns
+#endif
+#ifndef DtCDecimalPoints
+#define DtCDecimalPoints       XmCDecimalPoints
+#endif
+#ifndef DtCEditable
+#define DtCEditable            XmCEditable
+#endif
+#ifndef DtCInitialDelay
+#define DtCInitialDelay                XmCInitialDelay
+#endif
+#ifndef DtCItems
+#define DtCItems               XmCItems
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                XmCMarginHeight
+#endif
+#ifndef DtCMarginWidth
+#define DtCMarginWidth         XmCMarginWidth
+#endif
+#ifndef DtCMaxLength
+#define DtCMaxLength           XmCMaxLength
+#endif
+#ifndef DtCPosition
+#define DtCPosition            XmCPosition
+#endif
+#ifndef DtCRecomputeSize
+#define DtCRecomputeSize       XmCRecomputeSize
+#endif
+#ifndef DtCRepeatDelay
+#define DtCRepeatDelay         XmCRepeatDelay
+#endif
+
+/* Representation types */
+
+#ifndef DtRIncrementValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRIncrementValue            XmRint
+#  else
+#  define DtRIncrementValue            "IncrementValue"
+#  endif
+#endif
+#ifndef DtRMaximumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRMaximumValue              XmRint
+#  else
+#  define DtRMaximumValue              "MaximumValue"
+#  endif
+#endif
+#ifndef DtRMinimumValue
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRMinimumValue              XmRint
+#  else
+#  define DtRMinimumValue              "MinimumValue"
+#  endif
+#endif
+#ifndef DtRNumValues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRNumValues                 XmRint
+#  else
+#  define DtRNumValues                 "NumValues"
+#  endif
+#endif
+#ifndef DtRValues
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRValues                    XmRXmStringTable
+#  else
+#  define DtRValues                    "Values"
+#  endif
+#endif
+#ifndef DtRArrowSensitivity
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRArrowSensitivity          XmRArrowSensitivity
+#  else
+#  define DtRArrowSensitivity          "ArrowSensitivity"
+#  endif
+#endif
+#ifndef DtRArrowLayout
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRArrowLayout               XmRArrowLayout
+#  else
+#  define DtRArrowLayout               "ArrowLayout"
+#  endif
+#endif
+#ifndef DtRSpinBoxChildType
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtRSpinBoxChildType          XmRSpinBoxChildType
+#  else
+#  define DtRSpinBoxChildType          "SpinBoxChildType"
+#  endif
+#endif
+
+/* DtNarrowLayout values */
+
+#ifndef DtARROWS_FLAT_BEGINNING
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_FLAT_BEGINNING      XmARROWS_FLAT_BEGINNING
+#  else
+#  define DtARROWS_FLAT_BEGINNING      4
+#  endif
+#endif
+#ifndef DtARROWS_FLAT_END
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_FLAT_END            XmARROWS_FLAT_END
+#  else
+#  define DtARROWS_FLAT_END            3
+#  endif
+#endif
+#ifndef DtARROWS_SPLIT
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_SPLIT               XmARROWS_SPLIT
+#  else
+#  define DtARROWS_SPLIT               2
+#  endif
+#endif
+#ifndef DtARROWS_BEGINNING
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_BEGINNING           XmARROWS_BEGINNING
+#  else
+#  define DtARROWS_BEGINNING           1
+#  endif
+#endif
+#ifndef DtARROWS_END
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_END                 XmARROWS_END
+#  else
+#  define DtARROWS_END                 0
+#  endif
+#endif
+
+/* DtNarrowSensitivity values */
+
+#ifndef DtARROWS_SENSITIVE
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_SENSITIVE           XmARROWS_SENSITIVE
+#  else
+#  define DtARROWS_SENSITIVE           3
+#  endif
+#endif
+#ifndef DtARROWS_DECREMENT_SENSITIVE
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_DECREMENT_SENSITIVE XmARROWS_DECREMENT_SENSITIVE
+#  else
+#  define DtARROWS_DECREMENT_SENSITIVE 2
+#  endif
+#endif
+#ifndef DtARROWS_INCREMENT_SENSITIVE
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_INCREMENT_SENSITIVE XmARROWS_INCREMENT_SENSITIVE
+#  else
+#  define DtARROWS_INCREMENT_SENSITIVE 1
+#  endif
+#endif
+#ifndef DtARROWS_INSENSITIVE
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtARROWS_INSENSITIVE         XmARROWS_INSENSITIVE
+#  else
+#  define DtARROWS_INSENSITIVE         0
+#  endif
+#endif
+
+/* DtNspinBoxChildType values */
+
+#ifndef DtNUMERIC
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtNUMERIC                    XmNUMERIC
+#  else
+#  define DtNUMERIC                    3
+#  endif
+#endif
+
+#ifndef DtSTRING
+#  define DtSTRING                     XmSTRING
+#endif
+
+/* DtNalignment values */
+
+#ifndef DtALIGNMENT_BEGINNING
+#define DtALIGNMENT_BEGINNING          XmALIGNMENT_BEGINNING
+#endif
+#ifndef DtALIGNMENT_CENTER
+#define DtALIGNMENT_CENTER             XmALIGNMENT_CENTER
+#endif
+#ifndef DtALIGNMENT_END
+#define DtALIGNMENT_END                        XmALIGNMENT_END
+#endif
+
+/* Callback reasons */
+
+#ifndef DtCR_OK
+#  define DtCR_OK                      XmCR_OK
+#endif
+#ifndef DtCR_SPIN_NEXT
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCR_SPIN_NEXT               XmCR_SPIN_NEXT
+#  else
+#  define DtCR_SPIN_NEXT               62
+#  endif
+#endif
+#ifndef DtCR_SPIN_PRIOR
+#  if defined(DT_USE_XM_SSPINBOX)
+#  define DtCR_SPIN_PRIOR              XmCR_SPIN_PRIOR
+#  else
+#  define DtCR_SPIN_PRIOR              63
+#  endif
+#endif
+
+
+/*
+ * Types
+ */
+#if defined(DT_USE_XM_SSPINBOX)
+#  define DtSpinBoxCallbackStruct      XmSpinBoxCallbackStruct
+#else
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       Widget          widget;
+       Boolean         doit;
+       int             position;
+       XmString        value;
+       Boolean         crossed_boundary;
+} DtSpinBoxCallbackStruct;
+#endif
+
+/* Widget class and instance */
+#if defined(DT_USE_XM_SSPINBOX)
+#  define _DtSpinBoxClassRec           _XmSimpleSpinBoxClassRec
+#  define _DtSpinBoxRec                        _XmSimpleSpinBoxRec
+#  define DtSpinBoxWidgetClass         XmSimpleSpinBoxWidgetClass
+#  define DtSpinBoxWidget              XmSimpleSpinBoxWidget
+#else
+typedef struct _DtSpinBoxClassRec *DtSpinBoxWidgetClass;
+typedef struct _DtSpinBoxRec      *DtSpinBoxWidget;
+#endif
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+#if defined(DT_USE_XM_SSPINBOX)
+#  define dtSpinBoxWidgetClass         xmSimpleSpinBoxWidgetClass
+#else
+externalref WidgetClass dtSpinBoxWidgetClass;
+#endif
+
+
+/*
+ * Functions
+ */
+
+#if defined(DT_USE_XM_SSPINBOX)
+#  define DtCreateSpinBox              XmCreateSimpleSpinBox
+#  define DtSpinBoxAddItem             XmSimpleSpinBoxAddItem
+#  define DtSpinBoxDeletePos           XmSimpleSpinBoxDeletePos
+#  define DtSpinBoxSetItem             XmSimpleSpinBoxSetItem
+#else
+extern Widget DtCreateSpinBox(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern void DtSpinBoxAddItem(
+               Widget          widget,
+               XmString        item,
+               int             pos);
+
+extern void DtSpinBoxDeletePos(
+               Widget          widget,
+               int             pos);
+
+extern void DtSpinBoxSetItem(
+               Widget          widget,
+               XmString        item);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_SpinBox_h */
diff --git a/cde/include/Dt/SpinBoxP.h b/cde/include/Dt/SpinBoxP.h
new file mode 100644 (file)
index 0000000..f7d993b
--- /dev/null
@@ -0,0 +1,223 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SpinBoxP.h /main/4 1996/03/26 19:54:14 drk $ */
+/*
+ * SpinBoxP.h, Interleaf, 16aug93 2:37pm Version 1.1.
+ */
+
+/***********************************************************
+Copyright 1993 Interleaf, Inc.
+
+Permission to use, copy, modify, and distribute this software
+and its documentation for any purpose without fee is granted,
+provided that the above copyright notice appear in all copies
+and that both copyright notice and this permission notice appear
+in supporting documentation, and that the name of Interleaf not
+be used in advertising or publicly pertaining to distribution of
+the software without specific written prior permission.
+
+Interleaf makes no representation about the suitability of this
+software for any purpose. It is provided "AS IS" without any
+express or implied warranty. 
+******************************************************************/
+
+/*
+ * (C) Copyright 1991,1992, 1993
+ * Interleaf, Inc.
+ * 9 Hillside Avenue, Waltham, MA  02154
+ *
+ * SpinBoxP.h:
+ *
+ * Private header file for DtSpinBoxWidget.
+ */
+#ifndef _SpinBoxP_h
+#define _SpinBoxP_h
+
+#include <Xm/Label.h>
+#include <Xm/TextFP.h>
+#include <Xm/ArrowB.h>
+#include <Xm/ManagerP.h>
+#include "SpinBox.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * External definitions of syn_resources for our list widget.
+ */
+#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value)
+extern void _DtSpinBoxGetArrowSize     SYN_RESOURCE_AA;
+
+#define ARROW_MULT         .45
+#define ARROW_MIN          13
+#define MAX_FLOAT_DECIMALS  6
+#define NUMERIC_LENGTH      128
+#define MARGIN             2
+#define LABEL_PADDING      2
+#define LABEL_SHADOW       2
+#define TEXT_FIELD_SHADOW   1
+#define TEXT_CONTEXT_MARGIN 4
+
+/****************************************************************
+ *
+ *     Message Defines
+ *
+ ****************************************************************/
+
+#define SB_ARROW_SENSITIVE     DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_ARROW_SENSITIVE, _DtMsgSpinBox_0000)
+
+#define SB_ALIGNMENT   DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_ALIGNMENT, _DtMsgSpinBox_0001)
+
+#define SB_INIT_DELAY  DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_INIT_DELAY, _DtMsgSpinBox_0002)
+
+#define SB_MARGIN_HEIGHT       DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_MARGIN_HEIGHT, _DtMsgSpinBox_0003)
+
+#define SB_MARGIN_WIDTH        DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_MARGIN_WIDTH, _DtMsgSpinBox_0004)
+
+#define SB_ARROW_LAYOUT        DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_ARROW_LAYOUT, _DtMsgSpinBox_0005)
+
+#define SB_REPEAT_DELAY        DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_REPEAT_DELAY, _DtMsgSpinBox_0006)
+
+#define SB_ITEM_COUNT  DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_ITEM_COUNT, _DtMsgSpinBox_0007)
+
+#define SB_POSITION_STRING     DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_POSITION_STRING, _DtMsgSpinBox_0008)
+
+#define SB_POSITION_NUMERIC    DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_POSITION_NUMERIC, _DtMsgSpinBox_0009)
+
+#define SB_DECIMAL_POINTS      DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_DECIMAL_POINTS, _DtMsgSpinBox_0010)
+
+#define SB_MIN_MAX     DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_MIN_MAX, _DtMsgSpinBox_0011)
+
+#define SB_TEXT        DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_TEXT, _DtMsgSpinBox_0012)
+
+#define SB_SET_ITEM    DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_SET_ITEM, _DtMsgSpinBox_0013)
+
+#define SB_LABEL       DTWIDGET_GETMESSAGE( \
+                          MS_SpinBox, SPIN_LABEL, _DtMsgSpinBox_0014)
+/* 
+ * Class Records
+ */
+typedef struct {
+    Boolean junk;
+} DtSpinBoxClassPart;
+
+typedef struct _DtSpinBoxClassRec {
+    CoreClassPart              core_class;
+    CompositeClassPart         composite_class;
+    ConstraintClassPart                constraint_class;
+    XmManagerClassPart         manager_class;
+    DtSpinBoxClassPart         spin_box_class;
+} DtSpinBoxClassRec;
+
+extern DtSpinBoxClassRec dtSpinBoxClassRec;
+
+
+/*
+ * Instance Record.
+ */
+typedef struct _DtSpinBoxPart {
+    /* Private data */
+    Widget label;
+    Widget up_arrow;
+    Widget down_arrow;
+    unsigned char which_arrow;
+    Boolean init_cb;
+    Boolean grabbed;
+    int base;
+    float min, max;
+    float increment, current;
+    char float_format[10];
+    Dimension old_width;
+    Dimension old_height;
+    Dimension label_max_length;
+    Dimension label_max_height;
+
+    /* Resource-related data */
+    unsigned char arrow_sensitivity;
+    short decimal_points;
+    int numeric_increment;
+    int maximum;
+    int minimum;
+    int item_count;
+    int position;
+    unsigned char child_type;
+    XmStringTable items;
+    XtCallbackList activate_callback;
+    unsigned char alignment;
+    unsigned char arrow_layout;
+    Dimension arrow_size;
+    short text_columns;
+    Boolean editable;
+    XtCallbackList focus_callback;
+    unsigned int initial_delay;
+    XtCallbackList losing_focus_callback;
+    Dimension margin_height;
+    Dimension margin_width;
+    int text_max_length;
+    XtCallbackList modify_verify_callback;
+    Boolean recompute_size;
+    unsigned int repeat_delay;
+    Widget text;
+    XtCallbackList value_changed_callback;
+    Boolean wrap;
+
+    /* Spin timer. */
+    XtIntervalId timer;
+
+    /* String list related resources */
+
+    /* Numeric related resources */
+
+    /* TextField resources */
+} DtSpinBoxPart;
+
+
+/* Full instance record declaration */
+typedef struct _DtSpinBoxRec {
+    CorePart           core;
+    CompositePart      composite;
+    ConstraintPart     constraint;
+    XmManagerPart      manager;
+    DtSpinBoxPart      spin_box;
+} DtSpinBoxRec;
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _SpinBoxP_h */
diff --git a/cde/include/Dt/SvcTT.h b/cde/include/Dt/SvcTT.h
new file mode 100644 (file)
index 0000000..d4d3b1a
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SvcTT.h /main/3 1995/10/26 15:30:33 rswiston $ */
+/*%%                                                                    */
+/*%%   RESTRICTED CONFIDENTIAL INFORMATION:                             */
+/*%%                                                                    */
+/*%%   The information in this document is subject to special           */
+/*%%   restrictions in a confidential disclosure agreement between      */
+/*%%   HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this       */
+/*%%   document outside HP, IBM, Sun, USL, SCO, or Univel without       */
+/*%%   Sun's specific written approval.  This document and all copies   */
+/*%%   and derivative works thereof must be returned or destroyed at    */
+/*%%   Sun's request.                                                   */
+/*%%                                                                    */
+/*%%   Copyright 1994 Sun Microsystems, Inc.  All rights reserved.      */
+/*%%                                                                    */
+#ifndef _DT_SVCTT_H
+#define _DT_SVCTT_H
+
+#include <Tt/tttk.h>
+
+extern Tt_status       _DtSvcInitToolTalk(
+                               Widget widget
+                       );
+
+#endif
diff --git a/cde/include/Dt/Term.h b/cde/include/Dt/Term.h
new file mode 100644 (file)
index 0000000..dcf0ff5
--- /dev/null
@@ -0,0 +1,645 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Term.h /main/1 1996/04/21 19:15:14 drk $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+     
+#ifndef        _Dt_TermPrim_h
+#define        _Dt_TermPrim_h
+
+#include <sys/wait.h>
+#include <Xm/Xm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DtNbackgroundIsSelect
+#define        DtNbackgroundIsSelect   "backgroundIsSelect"
+#endif
+#ifndef DtNblinkRate
+#define DtNblinkRate           "blinkRate"
+#endif
+#ifndef DtNcharCursorStyle
+#define        DtNcharCursorStyle      "charCursorStyle"
+#endif
+#ifndef DtNconsoleMode
+#define        DtNconsoleMode          "consoleMode"
+#endif
+#ifndef DtNcsWidth
+#define        DtNcsWidth              "csWidth"
+#endif
+#ifndef DtNemulationId
+#define        DtNemulationId          "emulationId"
+#endif
+#ifndef        DtNinputVerifyCallback
+#define        DtNinputVerifyCallback  "inputVerifyCallback"
+#endif
+#ifndef DtNjumpScroll
+#define        DtNjumpScroll           "jumpScroll"
+#endif
+#ifndef DtNkshMode
+#define        DtNkshMode              "kshMode"       
+#endif
+#ifndef DtNlogFile
+#define        DtNlogFile              "logFile"    
+#endif
+#ifndef DtNlogInhibit
+#define        DtNlogInhibit           "logInhibit"
+#endif
+#ifndef DtNlogging
+#define        DtNlogging              "logging"    
+#endif
+#ifndef DtNloginShell
+#define        DtNloginShell           "loginShell"
+#endif
+#ifndef DtNmapOnOutput
+#define        DtNmapOnOutput          "mapOnOutput"
+#endif
+#ifndef DtNmapOnOutputDelay
+#define        DtNmapOnOutputDelay     "mapOnOutputDelay"
+#endif
+#ifndef DtNmarginBell
+#define        DtNmarginBell           "marginBell"
+#endif
+#ifndef DtNnMarginBell
+#define        DtNnMarginBell          "nMarginBell"
+#endif
+#ifndef        DtNoutputLogCallback
+#define        DtNoutputLogCallback    "outputLogCallback"
+#endif
+#ifndef DtNpointerBlank
+#define        DtNpointerBlank         "pointerBlank"
+#endif
+#ifndef DtNpointerBlankDelay
+#define        DtNpointerBlankDelay    "pointerBlankDelay"
+#endif
+#ifndef DtNpointerColor
+#define        DtNpointerColor         "pointerColor"
+#endif
+#ifndef DtNpointerColorBackground
+#define        DtNpointerColorBackground "pointerColorBackground"
+#endif
+#ifndef DtNpointerShape
+#define        DtNpointerShape         "pointerShape"
+#endif
+#ifndef DtNreverseVideo
+#define        DtNreverseVideo         "reverseVideo"
+#endif
+#ifndef DtNsaveLines
+#define        DtNsaveLines            "saveLines"
+#endif
+#ifndef DtNsizeList
+#define        DtNsizeList             "sizeList"
+#endif
+#ifndef DtNstatusChangeCallback
+#define        DtNstatusChangeCallback "statusChangeCallback"
+#endif
+#ifndef DtNstickyNextCursor
+#define        DtNstickyNextCursor     "stickyNextCursor"
+#endif
+#ifndef DtNstickyPrevCursor
+#define        DtNstickyPrevCursor     "stickyPrevCursor"
+#endif
+#ifndef DtNsubprocessLoginShell
+#define        DtNsubprocessLoginShell "subprocessLoginShell"
+#endif
+#ifndef DtNsubprocessPid
+#define        DtNsubprocessPid        "subprocessPid"
+#endif
+#ifndef DtNsubprocessExec
+#define        DtNsubprocessExec       "subprocessExec"
+#endif
+#ifndef DtNsubprocessTerminationCatch
+#define        DtNsubprocessTerminationCatch "subprocessTerminationCatch"
+#endif
+#ifndef DtNsubprocessCmd
+#define        DtNsubprocessCmd        "subprocessCmd"
+#endif
+#ifndef DtNsubprocessArgv
+#define        DtNsubprocessArgv       "subprocessArgv"
+#endif
+#ifndef DtNsubprocessTerminationCallback
+#define        DtNsubprocessTerminationCallback "subprocessTerminationCallback"
+#endif
+#ifndef DtNtermEmulationMode
+#define        DtNtermEmulationMode    "termEmulationMode"
+#endif
+#ifndef DtNtermDevice
+#define        DtNtermDevice           "termDevice"
+#endif
+#ifndef DtNtermDeviceAllocate
+#define        DtNtermDeviceAllocate   "termDeviceAllocate"
+#endif
+#ifndef DtNtermId
+#define        DtNtermId               "termId"
+#endif
+#ifndef DtNtermName
+#define        DtNtermName             "termName"
+#endif
+#ifndef DtNtermSlaveName
+#define        DtNtermSlaveName        "termSlaveName"
+#endif
+#ifndef DtNttyModes
+#define        DtNttyModes             "ttyModes"
+#endif
+#ifndef DtNuseFontSets
+#define        DtNuseFontSets          "useFontSets"
+#endif
+#ifndef DtNuseLineDraw
+#define        DtNuseLineDraw          "useLineDraw"
+#endif
+#ifndef DtNuserFont
+#define        DtNuserFont             "userFont"
+#endif
+#ifndef DtNuserBoldFont
+#define        DtNuserBoldFont         "userBoldFont"
+#endif
+#ifndef DtNvisualBell
+#define        DtNvisualBell           "visualBell"
+#endif
+#ifndef DtNallowSendEvents
+#define        DtNallowSendEvents      "allowSendEvents"
+#endif
+#ifndef DtNbaseHeight
+#define DtNbaseHeight          XmNbaseHeight
+#endif
+#ifndef DtNbaseWidth
+#define DtNbaseWidth           XmNbaseWidth
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns             XmNcolumns
+#endif
+#ifndef DtNheightInc
+#define DtNheightInc           XmNheightInc
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                XmNmarginHeight
+#endif
+#ifndef DtNmarginWidth
+#define DtNmarginWidth         XmNmarginWidth
+#endif
+#ifndef DtNrows
+#define DtNrows                        XmNrows
+#endif
+#ifndef DtNshadowType
+#define DtNshadowType          XmNshadowType
+#endif
+#ifndef DtNverticalScrollBar
+#define DtNverticalScrollBar   XmNverticalScrollBar
+#endif
+#ifndef DtNwidthInc
+#define DtNwidthInc            XmNwidthInc
+#endif
+
+#ifndef DtCBackground
+#define        DtCBackground           XmCBackground
+#endif
+#ifndef DtCBackgroundIsSelect
+#define        DtCBackgroundIsSelect   "BackgroundIsSelect"
+#endif
+#ifndef DtCBlinkRate
+#define DtCBlinkRate           "BlinkRate"
+#endif
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCCursor
+#define        DtCCursor               XmCCursor
+#endif
+#ifndef DtCConsoleMode
+#define        DtCConsoleMode          "ConsoleMode"
+#endif
+#ifndef DtCCsWidth
+#define        DtCCsWidth              "CsWidth"
+#endif
+#ifndef DtCCharCursorStyle
+#define        DtCCharCursorStyle      "CharCursorStyle"
+#endif
+#ifndef DtCEmulationId
+#define        DtCEmulationId          "EmulationId"
+#endif
+#ifndef DtCForeground
+#define        DtCForeground           XmCForeground
+#endif
+#ifndef DtCJumpScroll
+#define        DtCJumpScroll           "JumpScroll"
+#endif
+#ifndef DtCKshMode
+#define        DtCKshMode              "KshMode"       
+#endif
+#ifndef DtCLogFile
+#define        DtCLogFile              "LogFile"    
+#endif
+#ifndef DtCLogInhibit
+#define        DtCLogInhibit           "LogInhibit"
+#endif
+#ifndef DtCLogging
+#define        DtCLogging              "Logging"    
+#endif
+#ifndef DtCLoginShell
+#define        DtCLoginShell           "LoginShell"
+#endif
+#ifndef DtCMapOnOutput
+#define        DtCMapOnOutput          "MapOnOutput"
+#endif
+#ifndef DtCMapOnOutputDelay
+#define        DtCMapOnOutputDelay     "MapOnOutputDelay"
+#endif
+#ifndef DtCMarginBell
+#define        DtCMarginBell           "MarginBell"
+#endif
+#ifndef DtCNMarginBell
+#define        DtCNMarginBell          "NMarginBell"
+#endif
+#ifndef DtCPointerBlank
+#define        DtCPointerBlank         "PointerBlank"
+#endif
+#ifndef DtCPointerBlankDelay
+#define        DtCPointerBlankDelay    "PointerBlankDelay"
+#endif
+#ifndef DtCPointerColor
+#define        DtCPointerColor         "PointerColor"
+#endif
+#ifndef DtCPointerColorBackground
+#define        DtCPointerColorBackground "PointerColorBackground"
+#endif
+#ifndef DtCPointerShape
+#define        DtCPointerShape         "PointerShape"
+#endif
+#ifndef DtCReverseVideo
+#define        DtCReverseVideo         "ReverseVideo"
+#endif
+#ifndef DtCSaveLines
+#define        DtCSaveLines            "SaveLines"
+#endif
+#ifndef DtCSizeList
+#define        DtCSizeList             "SizeList"
+#endif
+#ifndef DtCStickyCursor
+#define        DtCStickyCursor         "StickyCursor"
+#endif
+#ifndef DtCSubprocessLoginShell
+#define        DtCSubprocessLoginShell "SubprocessLoginShell"
+#endif
+#ifndef DtCSubprocessPid
+#define        DtCSubprocessPid        "SubprocessPid"
+#endif
+#ifndef DtCSubprocessExec
+#define        DtCSubprocessExec       "SubprocessExec"
+#endif
+#ifndef DtCSubprocessTerminationCatch
+#define        DtCSubprocessTerminationCatch "SubprocessTerminationCatch"
+#endif
+#ifndef DtCSubprocessCmd
+#define        DtCSubprocessCmd        "SubprocessCmd"
+#endif
+#ifndef DtCSubprocessArgv
+#define        DtCSubprocessArgv       "SubprocessArgv"
+#endif
+#ifndef DtCTermEmulationMode
+#define        DtCTermEmulationMode    "TermEmulationMode"
+#endif
+#ifndef DtCTermDevice
+#define        DtCTermDevice           "TermDevice"
+#endif
+#ifndef DtCTermDeviceAllocate
+#define        DtCTermDeviceAllocate   "TermDeviceAllocate"
+#endif
+#ifndef DtCTermId
+#define        DtCTermId               "TermId"
+#endif
+#ifndef DtCTermName
+#define        DtCTermName             "TermName"
+#endif
+#ifndef DtCTermSlaveName
+#define        DtCTermSlaveName        "TermSlaveName"
+#endif
+#ifndef DtCTtyModes
+#define        DtCTtyModes             "TtyModes"
+#endif
+#ifndef DtCUseFontSets
+#define        DtCUseFontSets          "UseFontSets"
+#endif
+#ifndef DtCUseLineDraw
+#define        DtCUseLineDraw          "UseLineDraw"
+#endif
+#ifndef DtCUserFont
+#define        DtCUserFont             "UserFont"
+#endif
+#ifndef DtCUserBoldFont
+#define        DtCUserBoldFont         "UserBoldFont"
+#endif
+#ifndef DtCVisualBell
+#define        DtCVisualBell           "VisualBell"
+#endif
+#ifndef DtCAllowSendEvents
+#define        DtCAllowSendEvents      "AllowSendEvents"
+#endif
+#ifndef DtCBaseHeight
+#define DtCBaseHeight          XmCBaseHeight
+#endif
+#ifndef DtCBaseWidth
+#define DtCBaseWidth           XmCBaseWidth
+#endif
+#ifndef DtCColumns
+#define DtCColumns             XmCColumns
+#endif
+#ifndef DtCHeightInc
+#define DtCHeightInc           XmCHeightInc
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                XmCMarginHeight
+#endif
+#ifndef DtCMarginWidth
+#define DtCMarginWidth         XmCMarginWidth
+#endif
+#ifndef DtCRows
+#define DtCRows                        XmCRows
+#endif
+#ifndef DtCShadowType
+#define DtCShadowType          XmCShadowType
+#endif
+#ifndef DtCVerticalScrollBar
+#define DtCVerticalScrollBar   XmCVerticalScrollBar
+#endif
+#ifndef DtCWidthInc
+#define DtCWidthInc            XmCWidthInc
+#endif
+
+/* Representation types */
+
+#define DtRDtTermCharCursorStyle       "DtTermCharCursorStyle"
+#define DtRDtTermEmulationMode         "DtTermEmulationMode"
+#define        DtRDtTermTerminalSize           "DtTermTerminalSize"
+#define        DtRDtTermTerminalSizeList       "DtTermTerminalSizeList"
+
+/* DtNshadowType values */
+
+#ifndef DtSHADOW_IN
+#define DtSHADOW_IN            XmSHADOW_IN
+#endif
+#ifndef DtSHADOW_OUT
+#define DtSHADOW_OUT           XmSHADOW_OUT
+#endif
+#ifndef DtSHADOW_ETCHED_IN
+#define DtSHADOW_ETCHED_IN     XmSHADOW_ETCHED_IN
+#endif
+#ifndef DtSHADOW_ETCHED_OUT
+#define DtSHADOW_ETCHED_OUT    XmSHADOW_ETCHED_OUT
+#endif
+
+#define        DtTERM_CHAR_CURSOR_BOX          0
+#define        DtTERM_CHAR_CURSOR_BAR          1
+#define        DtTERM_CHAR_CURSOR_INVISIBLE    2
+
+#define        DtTermEMULATIONHP       0
+#define        DtTermEMULATIONANSI     1
+
+/* Callback reasons */
+
+#define        DtCR_TERM_SUBPROCESS_TERMINATION        1
+#define DtCR_TERM_STATUS_CHANGE                2
+#define        DtCR_TERM_INPUT_VERIFY          7
+#define        DtCR_TERM_OUTPUT_LOG            8
+
+
+/*
+ * Types
+ */
+
+/* insert char mode */
+
+typedef enum {
+       DtTERM_INSERT_CHAR_OFF = 0,
+       DtTERM_INSERT_CHAR_ON,
+       DtTERM_INSERT_CHAR_ON_WRAP
+} DtTermInsertCharMode;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       int             cursorX;
+       int             cursorY;
+       Boolean         capsLock;
+       Boolean         stop;
+       DtTermInsertCharMode insertCharMode;
+       Boolean         locked;
+} DtTermStatusChangeCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       pid_t           pid;
+       int             status;
+} DtTermSubprocessTerminationCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       Boolean         doit;
+       unsigned char   *text;
+       int             length;
+} DtTermInputVerifyCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       unsigned char   *text;
+       int             length;
+} DtTermOutputLogCallbackStruct;
+
+typedef struct _DtTermTerminalSize {
+       short           rows;
+       short           columns;
+} DtTermTerminalSize;
+
+typedef struct _DtTermTerminalSizeList {
+       int             numSizes;
+       DtTermTerminalSize *sizes;
+} DtTermTerminalSizeList;
+
+/* Widget class and instance */
+
+typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass;
+typedef struct _DtTermPrimitiveRec      *DtTermPrimitiveWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtTermPrimitiveWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateTermPrimitive(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern void DtTermInitialize(void);
+
+extern void DtTermDisplaySend(
+               Widget          widget,
+               unsigned char   *buffer,
+               int             length);
+
+extern void DtTermSubprocSend(
+               Widget          widget,
+               unsigned char   *buffer,
+               int             length);
+
+extern void DtTermSubprocReap(
+               pid_t           pid,
+               int             *stat_loc);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_TermPrim_h */
+
+
+
+#ifndef        _Dt_Term_h
+#define        _Dt_Term_h
+
+#include <Dt/TermPrim.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DtNfunctionKeyExecuteProc
+#define        DtNfunctionKeyExecuteProc       "functionKeyExecuteProc"
+#endif
+#ifndef DtNfunctionKeyUpdateProc
+#define        DtNfunctionKeyUpdateProc        "functionKeyUpdateProc"
+#endif
+#ifndef DtNautoWrap
+#define        DtNautoWrap                     "autoWrap"
+#endif
+#ifndef DtNreverseWrap
+#define        DtNreverseWrap                  "reverseWrap"
+#endif
+#ifndef DtNsunFunctionKeys
+#define        DtNsunFunctionKeys              "sunFunctionKeys"
+#endif
+#ifndef DtNc132
+#define        DtNc132                         "c132"
+#endif
+#ifndef DtNappCursorDefault
+#define        DtNappCursorDefault              "appCursorDefault"
+#endif
+#ifndef DtNappKeypadDefault
+#define        DtNappKeypadDefault              "appKeypadDefault"
+#endif
+
+#ifndef DtCFunctionKeyExecuteProc
+#define        DtCFunctionKeyExecuteProc       "FunctionKeyExecuteProc"
+#endif
+#ifndef DtCFunctionKeyUpdateProc
+#define        DtCFunctionKeyUpdateProc        "FunctionKeyUpdateProc"
+#endif
+#ifndef DtCFunctionKeyLast
+#define        DtCFunctionKeyLast              "FunctionKeyLast"
+#endif
+#ifndef DtCAutoWrap
+#define        DtCAutoWrap                     "AutoWrap"
+#endif
+#ifndef DtCReverseWrap
+#define        DtCReverseWrap                  "ReverseWrap"
+#endif
+#ifndef DtCSunFunctionKeys
+#define        DtCSunFunctionKeys              "SunFunctionKeys"
+#endif
+#ifndef DtCC132
+#define        DtCC132                         "C132"
+#endif
+#ifndef DtCAppCursorDefault
+#define        DtCAppCursorDefault             "AppCursorDefault"
+#endif
+#ifndef DtCAppKeypadDefault
+#define        DtCAppKeypadDefault             "AppKeypadDefault"
+#endif
+
+
+/*
+ * Types
+ */
+
+/* Widget class and instance */
+
+typedef struct _DtTermClassRec *DtTermWidgetClass;
+typedef struct _DtTermRec      *DtTermWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtTermWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateTerm(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Term_h */
diff --git a/cde/include/Dt/TermP.h b/cde/include/Dt/TermP.h
new file mode 100644 (file)
index 0000000..b2f14e0
--- /dev/null
@@ -0,0 +1,92 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * $XConsortium: TermP.h /main/1 1996/04/21 19:16:07 drk $";
+ */
+
+/*                                                                      *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+
+#ifndef        _Dt_TermP_h
+#define        _Dt_TermP_h
+
+#include "TermPrimP.h"
+#include "Term.h"
+#include "TermData.h"
+#include "TermFunctionKey.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* Vt class structure... */
+
+typedef struct _DtTermClassPart
+{
+    int foo;
+} DtTermClassPart;
+
+/* full clas record declaration for Vt class... */
+typedef struct _DtTermClassRec {
+    CoreClassPart              core_class;
+    XmPrimitiveClassPart       primitive_class;
+    DtTermPrimitiveClassPart           term_primitive_class;
+    DtTermClassPart            term_class;
+} DtTermClassRec;
+
+externalref DtTermClassRec dtTermClassRec;
+
+/* vt instance record... */
+typedef struct _DtTermPart
+{
+    DtTermData                 td;     /* non-widget terminal data     */
+    Boolean                     autoWrap;
+    Boolean                     reverseWrap;
+    Boolean                     sunFunctionKeys;
+    Boolean                     c132;
+    Boolean                    appKeypadMode;
+    Boolean                    appCursorMode;
+} DtTermPart;
+
+/* full instance record declaration... */
+
+typedef struct _DtTermRec {
+    CorePart           core;
+    XmPrimitivePart    primitive;
+    DtTermPrimitivePart        term;
+    DtTermPart         vt;
+} DtTermRec;
+
+/* private function declarations... */
+/* end private function declarations... */
+
+#ifdef __cplusplus
+} /* close scope of 'extern "C"'... */
+#endif /* __cplusplus */
+
+#endif /* _Dt_TermP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif... */
diff --git a/cde/include/Dt/TermPrim.h b/cde/include/Dt/TermPrim.h
new file mode 100644 (file)
index 0000000..8fef485
--- /dev/null
@@ -0,0 +1,538 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: TermPrim.h /main/1 1996/04/21 19:16:41 drk $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef        _Dt_TermPrim_h
+#define        _Dt_TermPrim_h
+
+#include <sys/wait.h>
+#include <Xm/Xm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+/* Resources */
+
+#ifndef DtNbackgroundIsSelect
+#define        DtNbackgroundIsSelect   "backgroundIsSelect"
+#endif
+#ifndef DtNblinkRate
+#define DtNblinkRate           "blinkRate"
+#endif
+#ifndef DtNcharCursorStyle
+#define        DtNcharCursorStyle      "charCursorStyle"
+#endif
+#ifndef DtNconsoleMode
+#define        DtNconsoleMode          "consoleMode"
+#endif
+#ifndef DtNcsWidth
+#define        DtNcsWidth              "csWidth"
+#endif
+#ifndef DtNemulationId
+#define        DtNemulationId          "emulationId"
+#endif
+#ifndef        DtNinputVerifyCallback
+#define        DtNinputVerifyCallback  "inputVerifyCallback"
+#endif
+#ifndef DtNjumpScroll
+#define        DtNjumpScroll           "jumpScroll"
+#endif
+#ifndef DtNkshMode
+#define        DtNkshMode              "kshMode"       
+#endif
+#ifndef DtNlogFile
+#define        DtNlogFile              "logFile"    
+#endif
+#ifndef DtNlogInhibit
+#define        DtNlogInhibit           "logInhibit"
+#endif
+#ifndef DtNlogging
+#define        DtNlogging              "logging"    
+#endif
+#ifndef DtNloginShell
+#define        DtNloginShell           "loginShell"
+#endif
+#ifndef DtNmapOnOutput
+#define        DtNmapOnOutput          "mapOnOutput"
+#endif
+#ifndef DtNmapOnOutputDelay
+#define        DtNmapOnOutputDelay     "mapOnOutputDelay"
+#endif
+#ifndef DtNmarginBell
+#define        DtNmarginBell           "marginBell"
+#endif
+#ifndef DtNnMarginBell
+#define        DtNnMarginBell          "nMarginBell"
+#endif
+#ifndef        DtNoutputLogCallback
+#define        DtNoutputLogCallback    "outputLogCallback"
+#endif
+#ifndef DtNpointerBlank
+#define        DtNpointerBlank         "pointerBlank"
+#endif
+#ifndef DtNpointerBlankDelay
+#define        DtNpointerBlankDelay    "pointerBlankDelay"
+#endif
+#ifndef DtNpointerColor
+#define        DtNpointerColor         "pointerColor"
+#endif
+#ifndef DtNpointerColorBackground
+#define        DtNpointerColorBackground "pointerColorBackground"
+#endif
+#ifndef DtNpointerShape
+#define        DtNpointerShape         "pointerShape"
+#endif
+#ifndef DtNreverseVideo
+#define        DtNreverseVideo         "reverseVideo"
+#endif
+#ifndef DtNsaveLines
+#define        DtNsaveLines            "saveLines"
+#endif
+#ifndef DtNsizeList
+#define        DtNsizeList             "sizeList"
+#endif
+#ifndef DtNstatusChangeCallback
+#define        DtNstatusChangeCallback "statusChangeCallback"
+#endif
+#ifndef DtNstickyNextCursor
+#define        DtNstickyNextCursor     "stickyNextCursor"
+#endif
+#ifndef DtNstickyPrevCursor
+#define        DtNstickyPrevCursor     "stickyPrevCursor"
+#endif
+#ifndef DtNsubprocessLoginShell
+#define        DtNsubprocessLoginShell "subprocessLoginShell"
+#endif
+#ifndef DtNsubprocessPid
+#define        DtNsubprocessPid        "subprocessPid"
+#endif
+#ifndef DtNsubprocessExec
+#define        DtNsubprocessExec       "subprocessExec"
+#endif
+#ifndef DtNsubprocessTerminationCatch
+#define        DtNsubprocessTerminationCatch "subprocessTerminationCatch"
+#endif
+#ifndef DtNsubprocessCmd
+#define        DtNsubprocessCmd        "subprocessCmd"
+#endif
+#ifndef DtNsubprocessArgv
+#define        DtNsubprocessArgv       "subprocessArgv"
+#endif
+#ifndef DtNsubprocessTerminationCallback
+#define        DtNsubprocessTerminationCallback "subprocessTerminationCallback"
+#endif
+#ifndef DtNtermEmulationMode
+#define        DtNtermEmulationMode    "termEmulationMode"
+#endif
+#ifndef DtNtermDevice
+#define        DtNtermDevice           "termDevice"
+#endif
+#ifndef DtNtermDeviceAllocate
+#define        DtNtermDeviceAllocate   "termDeviceAllocate"
+#endif
+#ifndef DtNtermId
+#define        DtNtermId               "termId"
+#endif
+#ifndef DtNtermName
+#define        DtNtermName             "termName"
+#endif
+#ifndef DtNtermSlaveName
+#define        DtNtermSlaveName        "termSlaveName"
+#endif
+#ifndef DtNttyModes
+#define        DtNttyModes             "ttyModes"
+#endif
+#ifndef DtNuseFontSets
+#define        DtNuseFontSets          "useFontSets"
+#endif
+#ifndef DtNuseLineDraw
+#define        DtNuseLineDraw          "useLineDraw"
+#endif
+#ifndef DtNuserFont
+#define        DtNuserFont             "userFont"
+#endif
+#ifndef DtNuserBoldFont
+#define        DtNuserBoldFont         "userBoldFont"
+#endif
+#ifndef DtNvisualBell
+#define        DtNvisualBell           "visualBell"
+#endif
+#ifndef DtNallowSendEvents
+#define        DtNallowSendEvents      "allowSendEvents"
+#endif
+#ifndef DtNbaseHeight
+#define DtNbaseHeight          XmNbaseHeight
+#endif
+#ifndef DtNbaseWidth
+#define DtNbaseWidth           XmNbaseWidth
+#endif
+#ifndef DtNcolumns
+#define DtNcolumns             XmNcolumns
+#endif
+#ifndef DtNheightInc
+#define DtNheightInc           XmNheightInc
+#endif
+#ifndef DtNmarginHeight
+#define DtNmarginHeight                XmNmarginHeight
+#endif
+#ifndef DtNmarginWidth
+#define DtNmarginWidth         XmNmarginWidth
+#endif
+#ifndef DtNrows
+#define DtNrows                        XmNrows
+#endif
+#ifndef DtNshadowType
+#define DtNshadowType          XmNshadowType
+#endif
+#ifndef DtNverticalScrollBar
+#define DtNverticalScrollBar   XmNverticalScrollBar
+#endif
+#ifndef DtNwidthInc
+#define DtNwidthInc            XmNwidthInc
+#endif
+
+#ifndef DtCBackground
+#define        DtCBackground           XmCBackground
+#endif
+#ifndef DtCBackgroundIsSelect
+#define        DtCBackgroundIsSelect   "BackgroundIsSelect"
+#endif
+#ifndef DtCBlinkRate
+#define DtCBlinkRate           "BlinkRate"
+#endif
+#ifndef DtCCallback
+#define DtCCallback            XmCCallback
+#endif
+#ifndef DtCCursor
+#define        DtCCursor               XmCCursor
+#endif
+#ifndef DtCConsoleMode
+#define        DtCConsoleMode          "ConsoleMode"
+#endif
+#ifndef DtCCsWidth
+#define        DtCCsWidth              "CsWidth"
+#endif
+#ifndef DtCCharCursorStyle
+#define        DtCCharCursorStyle      "CharCursorStyle"
+#endif
+#ifndef DtCEmulationId
+#define        DtCEmulationId          "EmulationId"
+#endif
+#ifndef DtCForeground
+#define        DtCForeground           XmCForeground
+#endif
+#ifndef DtCJumpScroll
+#define        DtCJumpScroll           "JumpScroll"
+#endif
+#ifndef DtCKshMode
+#define        DtCKshMode              "KshMode"       
+#endif
+#ifndef DtCLogFile
+#define        DtCLogFile              "LogFile"    
+#endif
+#ifndef DtCLogInhibit
+#define        DtCLogInhibit           "LogInhibit"
+#endif
+#ifndef DtCLogging
+#define        DtCLogging              "Logging"    
+#endif
+#ifndef DtCLoginShell
+#define        DtCLoginShell           "LoginShell"
+#endif
+#ifndef DtCMapOnOutput
+#define        DtCMapOnOutput          "MapOnOutput"
+#endif
+#ifndef DtCMapOnOutputDelay
+#define        DtCMapOnOutputDelay     "MapOnOutputDelay"
+#endif
+#ifndef DtCMarginBell
+#define        DtCMarginBell           "MarginBell"
+#endif
+#ifndef DtCNMarginBell
+#define        DtCNMarginBell          "NMarginBell"
+#endif
+#ifndef DtCPointerBlank
+#define        DtCPointerBlank         "PointerBlank"
+#endif
+#ifndef DtCPointerBlankDelay
+#define        DtCPointerBlankDelay    "PointerBlankDelay"
+#endif
+#ifndef DtCPointerColor
+#define        DtCPointerColor         "PointerColor"
+#endif
+#ifndef DtCPointerColorBackground
+#define        DtCPointerColorBackground "PointerColorBackground"
+#endif
+#ifndef DtCPointerShape
+#define        DtCPointerShape         "PointerShape"
+#endif
+#ifndef DtCReverseVideo
+#define        DtCReverseVideo         "ReverseVideo"
+#endif
+#ifndef DtCSaveLines
+#define        DtCSaveLines            "SaveLines"
+#endif
+#ifndef DtCSizeList
+#define        DtCSizeList             "SizeList"
+#endif
+#ifndef DtCStickyCursor
+#define        DtCStickyCursor         "StickyCursor"
+#endif
+#ifndef DtCSubprocessLoginShell
+#define        DtCSubprocessLoginShell "SubprocessLoginShell"
+#endif
+#ifndef DtCSubprocessPid
+#define        DtCSubprocessPid        "SubprocessPid"
+#endif
+#ifndef DtCSubprocessExec
+#define        DtCSubprocessExec       "SubprocessExec"
+#endif
+#ifndef DtCSubprocessTerminationCatch
+#define        DtCSubprocessTerminationCatch "SubprocessTerminationCatch"
+#endif
+#ifndef DtCSubprocessCmd
+#define        DtCSubprocessCmd        "SubprocessCmd"
+#endif
+#ifndef DtCSubprocessArgv
+#define        DtCSubprocessArgv       "SubprocessArgv"
+#endif
+#ifndef DtCTermEmulationMode
+#define        DtCTermEmulationMode    "TermEmulationMode"
+#endif
+#ifndef DtCTermDevice
+#define        DtCTermDevice           "TermDevice"
+#endif
+#ifndef DtCTermDeviceAllocate
+#define        DtCTermDeviceAllocate   "TermDeviceAllocate"
+#endif
+#ifndef DtCTermId
+#define        DtCTermId               "TermId"
+#endif
+#ifndef DtCTermName
+#define        DtCTermName             "TermName"
+#endif
+#ifndef DtCTermSlaveName
+#define        DtCTermSlaveName        "TermSlaveName"
+#endif
+#ifndef DtCTtyModes
+#define        DtCTtyModes             "TtyModes"
+#endif
+#ifndef DtCUseFontSets
+#define        DtCUseFontSets          "UseFontSets"
+#endif
+#ifndef DtCUseLineDraw
+#define        DtCUseLineDraw          "UseLineDraw"
+#endif
+#ifndef DtCUserFont
+#define        DtCUserFont             "UserFont"
+#endif
+#ifndef DtCUserBoldFont
+#define        DtCUserBoldFont         "UserBoldFont"
+#endif
+#ifndef DtCVisualBell
+#define        DtCVisualBell           "VisualBell"
+#endif
+#ifndef DtCAllowSendEvents
+#define        DtCAllowSendEvents      "AllowSendEvents"
+#endif
+#ifndef DtCBaseHeight
+#define DtCBaseHeight          XmCBaseHeight
+#endif
+#ifndef DtCBaseWidth
+#define DtCBaseWidth           XmCBaseWidth
+#endif
+#ifndef DtCColumns
+#define DtCColumns             XmCColumns
+#endif
+#ifndef DtCHeightInc
+#define DtCHeightInc           XmCHeightInc
+#endif
+#ifndef DtCMarginHeight
+#define DtCMarginHeight                XmCMarginHeight
+#endif
+#ifndef DtCMarginWidth
+#define DtCMarginWidth         XmCMarginWidth
+#endif
+#ifndef DtCRows
+#define DtCRows                        XmCRows
+#endif
+#ifndef DtCShadowType
+#define DtCShadowType          XmCShadowType
+#endif
+#ifndef DtCVerticalScrollBar
+#define DtCVerticalScrollBar   XmCVerticalScrollBar
+#endif
+#ifndef DtCWidthInc
+#define DtCWidthInc            XmCWidthInc
+#endif
+
+/* Representation types */
+
+#define DtRDtTermCharCursorStyle       "DtTermCharCursorStyle"
+#define DtRDtTermEmulationMode         "DtTermEmulationMode"
+#define        DtRDtTermTerminalSize           "DtTermTerminalSize"
+#define        DtRDtTermTerminalSizeList       "DtTermTerminalSizeList"
+
+/* DtNshadowType values */
+
+#ifndef DtSHADOW_IN
+#define DtSHADOW_IN            XmSHADOW_IN
+#endif
+#ifndef DtSHADOW_OUT
+#define DtSHADOW_OUT           XmSHADOW_OUT
+#endif
+#ifndef DtSHADOW_ETCHED_IN
+#define DtSHADOW_ETCHED_IN     XmSHADOW_ETCHED_IN
+#endif
+#ifndef DtSHADOW_ETCHED_OUT
+#define DtSHADOW_ETCHED_OUT    XmSHADOW_ETCHED_OUT
+#endif
+
+#define        DtTERM_CHAR_CURSOR_BOX          0
+#define        DtTERM_CHAR_CURSOR_BAR          1
+#define        DtTERM_CHAR_CURSOR_INVISIBLE    2
+
+#define        DtTermEMULATIONHP       0
+#define        DtTermEMULATIONANSI     1
+
+/* Callback reasons */
+
+#define        DtCR_TERM_SUBPROCESS_TERMINATION        1
+#define DtCR_TERM_STATUS_CHANGE                2
+#define        DtCR_TERM_INPUT_VERIFY          7
+#define        DtCR_TERM_OUTPUT_LOG            8
+
+
+/*
+ * Types
+ */
+
+/* insert char mode */
+
+typedef enum {
+       DtTERM_INSERT_CHAR_OFF = 0,
+       DtTERM_INSERT_CHAR_ON,
+       DtTERM_INSERT_CHAR_ON_WRAP
+} DtTermInsertCharMode;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       int             cursorX;
+       int             cursorY;
+       Boolean         capsLock;
+       Boolean         stop;
+       DtTermInsertCharMode insertCharMode;
+       Boolean         locked;
+} DtTermStatusChangeCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       pid_t           pid;
+       int             status;
+} DtTermSubprocessTerminationCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       Boolean         doit;
+       unsigned char   *text;
+       int             length;
+} DtTermInputVerifyCallbackStruct;
+
+typedef struct {
+       int             reason;
+       XEvent          *event;
+       unsigned char   *text;
+       int             length;
+} DtTermOutputLogCallbackStruct;
+
+typedef struct _DtTermTerminalSize {
+       short           rows;
+       short           columns;
+} DtTermTerminalSize;
+
+typedef struct _DtTermTerminalSizeList {
+       int             numSizes;
+       DtTermTerminalSize *sizes;
+} DtTermTerminalSizeList;
+
+/* Widget class and instance */
+
+typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass;
+typedef struct _DtTermPrimitiveRec      *DtTermPrimitiveWidget;
+
+
+/*
+ * Data
+ */
+
+/* Widget class record */
+
+externalref WidgetClass dtTermPrimitiveWidgetClass;
+
+
+/*
+ * Functions
+ */
+
+extern Widget DtCreateTermPrimitive(
+               Widget          parent,
+               char            *name,
+               ArgList         arglist,
+               Cardinal        argcount);
+
+extern void DtTermInitialize(void);
+
+extern void DtTermDisplaySend(
+               Widget          widget,
+               unsigned char   *buffer,
+               int             length);
+
+extern void DtTermSubprocSend(
+               Widget          widget,
+               unsigned char   *buffer,
+               int             length);
+
+extern void DtTermSubprocReap(
+               pid_t           pid,
+               int             *stat_loc);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_TermPrim_h */
diff --git a/cde/include/Dt/TermPrimP.h b/cde/include/Dt/TermPrimP.h
new file mode 100644 (file)
index 0000000..6da67ca
--- /dev/null
@@ -0,0 +1,229 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * $XConsortium: TermPrimP.h /main/1 1996/04/21 19:18:08 drk $";
+ */
+/*                                                                      *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+#ifndef        _Dt_TermPrimP_h
+#define        _Dt_TermPrimP_h
+
+#include <Xm/LabelP.h>
+#include "TermPrim.h"
+#include "TermPrimData.h"
+
+/* include the other internal Term include files...
+ */
+#include "TermPrimScroll.h"
+#include "TermPrimRender.h"
+#include "TermPrimCursor.h"
+#include "TermPrimLineFont.h"
+#include "TermPrimBuffer.h"
+#include "TermPrimSubproc.h"
+
+/* 
+** Now we can choose what shell we want
+** NOTE:
+**  (is it worth making resources for defaultShell
+**  and defaultShellArgv0?)  JRM
+*/
+#ifdef    hpV4
+#   define DEFAULT_SHELL        "/usr/bin/sh"
+#   define DEFAULT_SHELL_ARGV0  "sh"
+#else  /* hpV4 */
+#   define DEFAULT_SHELL        "/bin/sh"
+#   define DEFAULT_SHELL_ARGV0  "sh"
+#endif /* hpV4 */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* term class structure... */
+
+typedef int
+(*TermInsertProc)
+(
+    Widget               w,
+    unsigned char       *buffer,
+    int                          length
+);
+    
+typedef struct _DtTermPrimitiveClassPart
+{
+    StateTable                 *parser_start_state;
+    Boolean                    use_history_buffer;
+    Boolean                    allow_scroll_below_buffer;
+    Boolean                    wrap_right_after_insert;
+    BufferCreateProc            buffer_create_proc;
+    BufferFreeProc             buffer_free_proc;
+    TermInsertProc             term_insert_proc;
+    short                       sizeOfBuffer;
+    short                       sizeOfLine;
+    short                       sizeOfEnh;
+} DtTermPrimitiveClassPart;
+
+/* full class record declaration for Term class... */
+typedef struct _DtTermPrimitiveClassRec {
+    CoreClassPart              core_class;
+    XmPrimitiveClassPart       primitive_class;
+    DtTermPrimitiveClassPart   term_primitive_class;
+} DtTermPrimitiveClassRec;
+
+externalref DtTermPrimitiveClassRec dtTermPrimitiveClassRec;
+
+/* term instance record... */
+typedef struct _DtTermPrimitivePart
+{
+    struct termData *tpd;              /* non-widget terminal data     */
+    Widget verticalScrollBar;          /* vertical sb to update/track  */
+    short verticalScrollBarValue;      /* cached sb value              */
+    short verticalScrollBarMaximum;    /* cached sb maximum            */
+    short verticalScrollBarSliderSize; /* cached sb size               */
+    short verticalScrollBarPageIncrement;
+                                       /* cached sb page inc           */
+    unsigned char charCursorStyle;     /* cursor style: bar or box     */
+    int blinkRate;                     /* cursor blink rate (0 == no
+                                        * blink
+                                        */
+    Boolean consoleMode;               /* true == get console output   */
+    Boolean backgroundIsSelect;                /* true == background is select
+                                        * color
+                                        */
+    Boolean visualBell;                        /* true == visual bell          */
+    Boolean marginBell;                        /* true == rt margin waring bell*/
+    int nMarginBell;                   /* warning bell distance        */
+    Boolean jumpScroll;                        /* true == jumpscroll,
+                                        * false == line by line scroll
+                                        */
+    Boolean hasFocus;                  /* true == window has focus
+                                        * (and the cursor blinks)
+                                        */
+    char *emulationId;                 /* $TERMINAL_EMULATOR variable  */
+    char *termId;                      /* term ID string for esc seq   */
+    char *termName;                    /* $TERM string                 */
+    char *ttyModes;                    /* ttyModes string              */
+    char *csWidth;                     /* csWidth string               */
+    unsigned char shadowType;          /* shadow type for term window  */
+    XmFontList fontList;               /* fontList for base font       */
+    XmFontList boldFontList;           /* fontList for bold font       */
+    XFontStruct *font;                 /* font for base font           */
+    XFontStruct *boldFont;             /* font for bold font           */
+    XFontSet fontSet;                  /* fontSet generated from either
+                                        * the fontList or the font above
+                                        */
+    XFontSet boldFontSet;              /* fontSet generated from either
+                                        * the boldFontList or the boldFont
+                                        * above
+                                        */
+    Boolean haveFontSet;               /* true == we have a valid fontSet
+                                        */
+    char *saveLines;                   /* save lines or screens        */
+    short rows;                                /* rows of displayed term win   */
+    short columns;                     /* columns of term win & memory */
+    Dimension marginHeight;            /* width of window's margin     */
+    Dimension marginWidth;             /* height of window's margin    */
+    int baseWidth;                     /* base width for size hints    */
+    int baseHeight;                    /* base height for size hints   */
+    int widthInc;                      /* width inc for size hints     */
+    int heightInc;                     /* height inc for size hints    */
+    int ascent;                                /* ascent for font              */
+    int pty;                           /* file descriptor of pty       */
+    Boolean ptyAllocate;               /* true, allocate a pty         */
+    char *ptySlaveName;                        /* name of pty slave device     */
+    int subprocessPid;                 /* process id of child (shell)
+                                        * process
+                                        */
+    char *subprocessCWD;               /* subprocess working directory */
+    char *subprocessCmd;               /* subprocess cmd to exec       */
+    char **subprocessArgv;             /* argv to pass to above cmd    */
+    Boolean subprocessLoginShell;      /* if true, prepend argv[0] with
+                                        * a '-'
+                                        */
+    Boolean subprocessTerminationCatch;        /* if true, catch child exit()  */
+    Boolean subprocessExec;            /* if true, exec subprocess     */
+    _termSubprocId subprocessId;       /* id of subprocess as returned
+                                        * by the subprocess code.
+                                        */
+    XtCallbackList inputVerifyCallback;        /* callback invoked when keyboard
+                                        * input or selection input is
+                                        * received.
+                                        */
+    XtCallbackList outputLogCallback;  /* callback invoked when pty output
+                                        * is received.
+                                        */
+    XtCallbackList statusChangeCallback;/* callback invoked when there is
+                                        * some sort of status change
+                                        * (cursor motion, capsLockChange,
+                                        * outputStopped, etc).  Reason
+                                        * indicates which has changed.
+                                        */
+    XtCallbackList subprocessTerminationCallback;
+                                       /* callback invoked by subprocess
+                                        * termination (exit())
+                                        */
+    Boolean  kshMode;                     /* use meta for escape */
+    Boolean  pointerBlank;                /* blank pointer after */
+    int      pointerBlankDelay;           /* pointerBlankDelay secs */
+    Cursor   pointerShape;                /* pointer pixmap         */
+    Pixel    pointerColor;                /* pointer color          */
+    Pixel    pointerColorBackground;      /* pointer background color */
+    Boolean  mapOnOutput;                 /* map term on pty output after */
+    int      mapOnOutputDelay;            /* mapOnOutputDelay secs  */
+    Boolean  logging;                     /* copy tty output to file/pipe  */
+    Boolean  log_on;                      /* is log file (pipe)  open?     */
+    char *   logFile;                     /* named logFile (default "logFile"*/
+    Boolean  logInhibit;                  /* don't allow logging         */
+    Boolean  reverseVideo;               /* true, reverse video on     */
+    uid_t    euid_root;                   /* suid */
+    uid_t    euid_user;                   /* user id   */
+    Boolean  allowSendEvents;             /* allow key, button presses */
+    Boolean  allowOsfKeysyms;            /* allow osfKeysyms through   */
+} DtTermPrimitivePart;
+
+/* full instance record declaration... */
+
+typedef struct _DtTermPrimitiveRec {
+    CorePart           core;
+    XmPrimitivePart    primitive;
+    DtTermPrimitivePart                term;
+} DtTermPrimitiveRec;
+
+/* private function declarations... */
+/* end private function declarations... */
+
+#ifdef __cplusplus
+} /* close scope of 'extern "C"'... */
+#endif /* __cplusplus */
+/* 
+** Some handy macros.
+*/
+#define GetParserContext(w)             (((DtTermPrimitiveWidget)w)->term.tpd->context)
+
+
+#endif /* _Dt_TermPrimP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif... */
diff --git a/cde/include/Dt/TitleBox.h b/cde/include/Dt/TitleBox.h
new file mode 100644 (file)
index 0000000..d0fd37b
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: TitleBox.h /main/4 1995/10/26 09:34:50 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           TitleBox.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Public include file for DtTitleBox class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtTitleBox_h
+#define _DtTitleBox_h
+
+#include <Xm/Xm.h>
+#include <Dt/DtStrDefs.h>
+
+#ifndef DtIsTitleBox
+#define DtIsTitleBox(w) XtIsSubclass(w, DtTitleBoxClass)
+#endif /* DtIsTitleBox */
+
+
+/********    Public Function Declarations    ********/
+
+extern Widget _DtCreateTitleBox( 
+                        Widget parent,
+                        char *name,
+                        ArgList arglist,
+                        Cardinal argcount) ;
+extern Widget _DtTitleBoxGetTitleArea( 
+                        Widget w) ;
+extern Widget _DtTitleBoxGetWorkArea( 
+                        Widget w) ;
+
+
+extern WidgetClass     dtTitleBoxWidgetClass;
+
+typedef struct _DtTitleBoxClassRec * DtTitleBoxWidgetClass;
+typedef struct _DtTitleBoxRec      * DtTitleBoxWidget;
+
+
+#define XmTITLE_TOP    0
+#define XmTITLE_BOTTOM 1
+
+#define XmTITLE_AREA   1
+
+
+#endif /* _DtTitleBox_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/TitleBoxP.h b/cde/include/Dt/TitleBoxP.h
new file mode 100644 (file)
index 0000000..6d42be5
--- /dev/null
@@ -0,0 +1,159 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           TitleBoxP.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Private include file for DtTitleBox class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtTitleBoxP_h
+#define _DtTitleBoxP_h
+
+#include <Xm/XmP.h>
+#include <Dt/TitleBox.h>
+
+
+
+/*-------------------------------------------------------------
+**     Class Structure
+*/
+
+/*     Class Part
+*/
+typedef struct _DtTitleBoxClassPart
+{
+       caddr_t extension;
+} DtTitleBoxClassPart;
+
+/*     Full Class Record
+*/
+typedef struct _DtTitleBoxClassRec
+{
+       CoreClassPart           core_class;
+       CompositeClassPart      composite_class;
+       ConstraintClassPart     constraint_class;
+       XmManagerClassPart      manager_class;
+       DtTitleBoxClassPart     title_box_class;
+} DtTitleBoxClassRec;
+
+/*     Actual Class
+*/
+extern DtTitleBoxClassRec dtTitleBoxClassRec;
+
+
+
+\f
+/*-------------------------------------------------------------
+**     Instance Structure
+*/
+
+/*     Instance Part
+*/
+typedef struct _DtTitleBoxPart
+{
+       Widget          work_area;
+       Widget          title_area;
+       XmString        title_string;
+       XmFontList      font_list;
+       Dimension       margin_width;
+       Dimension       margin_height;
+       Dimension       old_width;
+       Dimension       old_height;
+       Dimension       old_shadow_thickness;
+       Dimension       title_spacing;
+       unsigned char   title_position;
+       unsigned char   title_alignment;
+       unsigned char   shadow_type;
+} DtTitleBoxPart;
+
+/*     Full Instance Record
+*/
+typedef struct _DtTitleBoxRec
+{
+       CorePart                core;
+       CompositePart           composite;
+       ConstraintPart          constraint;
+       XmManagerPart           manager;
+       DtTitleBoxPart          title_box;
+} DtTitleBoxRec;
+
+
+
+/*-------------------------------------------------------------
+**     Constraint Structure
+*/
+
+/*     Constraint Part
+*/
+typedef struct _DtTitleBoxConstraintPart
+{
+       unsigned char   child_type;
+} DtTitleBoxConstraintPart, * DtTitleBoxConstraint;
+
+/*     Full Constraint Record
+*/
+typedef struct _DtTitleBoxConstraintRec
+{
+       XmManagerConstraintPart         manager_constraint;
+       DtTitleBoxConstraintPart        title_box_constraint;
+} DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr;
+
+
+/*-------------------------------------------------------------
+**     Class and Instance Macros
+*/
+
+/*     DtTitleBox Class Macros
+*/
+
+/*     DtTitleBox Instance Macros
+*/
+#define M_TitleBoxConstraint(w) \
+       (&((DtTitleBoxConstraintPtr) (w)->core.constraints)->title_box_constraint)
+#define M_WorkArea(m)          (m -> title_box.work_area)
+#define M_TitleArea(m)         (m -> title_box.title_area)
+#define M_TitleString(m)       (m -> title_box.title_string)
+#define M_TitleSpacing(m)      (m -> title_box.title_spacing)
+#define M_TitlePosition(m)     (m -> title_box.title_position)
+#define M_TitleAlignment(m)    (m -> title_box.title_alignment)
+#define M_FontList(m)          (m -> title_box.font_list)
+#define M_ShadowType(m)                (m -> title_box.shadow_type)
+#define M_MarginWidth(m)       (m -> title_box.margin_width)
+#define M_MarginHeight(m)      (m -> title_box.margin_height)
+#define M_OldWidth(m)          (m -> title_box.old_width)
+#define M_OldHeight(m)         (m -> title_box.old_height)
+#define M_OldShadowThickness(m)        (m -> title_box.old_shadow_thickness)
+
+
+#endif /* _DtTitleBoxP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Unistd.h b/cde/include/Dt/Unistd.h
new file mode 100644 (file)
index 0000000..941f8f5
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Unistd.h /main/3 1995/10/26 15:31:10 rswiston $ */
+/*
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.       *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
+ * (c) Copyright 1993, 1994 Novell, Inc.                                *
+ */
+/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
+
+#ifndef DtUNISTD_INCLUDED
+#define DtUNISTD_INCLUDED
+
+#  define FNM_PATHNAME           01    /* flag for pathname matching */
+#  define _FNM_PERIOD    02    /* flag for explicitly matching leading '.'s */
+#  define _FNM_UAE       04    /* flag for csh pattern matching */
+
+#endif /* DtUNISTD_INCLUDED */
diff --git a/cde/include/Dt/UserMsg.h b/cde/include/Dt/UserMsg.h
new file mode 100644 (file)
index 0000000..619e53b
--- /dev/null
@@ -0,0 +1,129 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: UserMsg.h /main/6 1998/04/09 17:50:49 mgreess $ */
+/*
+ * (c) Copyright 1995 Digital Equipment Corporation.
+ * (c) Copyright 1988, 1993, 1994, 1995 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
+ * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994, 1995 Novell, Inc. 
+ * (c) Copyright 1995 FUJITSU LIMITED.
+ * (c) Copyright 1995 Hitachi.
+ */
+
+/* -*-C-*-
+********************************************************************************
+*
+* File:         usermsg.h
+* Description:  Header for error logging routines
+* Status:       Experimental (Do Not Distribute)
+*
+********************************************************************************
+*/
+
+#ifndef _usermsg_h
+#define _usermsg_h
+
+#include <X11/Intrinsic.h>
+
+#ifndef __STDC__
+#  ifndef const
+#    define const
+#  endif
+#endif
+
+#include <bms/XeUserMsg.h>
+
+typedef enum {
+  DtIgnore,
+  DtInformation,
+  DtWarning,
+  DtError,
+  DtFatalError,
+  DtInternalError
+} DtSeverity;
+
+
+extern void _DtSimpleError( 
+                        char *progName,
+                        DtSeverity severity,
+                        char *help,
+                        char *format,
+                        ...) ;
+extern void _DtSimpleErrnoError( 
+                        char *progName,
+                        DtSeverity severity,
+                        char *help,
+                        char *format,
+                        ...) ;
+
+#define DtProgName  XeProgName
+
+extern int _DtPrintDefaultError(
+        Display *dpy,
+        XErrorEvent *event,
+        char *msg );
+
+#define _DTPRINTDEFAULTERROR_BUFSIZE 1024
+
+extern int _DtPrintDefaultErrorSafe(
+        Display *dpy,
+        XErrorEvent *event,
+        char *msg,
+       int bytes);
+
+/*
+    DESCRIPTION:
+
+        Supply the standard Xerror output to a buffer (instead of stederr)
+        so client can do what it wants with it.  Also don't exit.  Allow
+client to decide what to do. 
+
+        An appropriate thing to do would be to pass the buffer to 
+        DtSimpleError() and return. ie. In your error callback:
+
+    {
+    char errmsg[1024];
+    int ret ;
+    ret = _DtPrintDefaultError (style.display, rep, errmsg);
+    DtSimpleError(DtWarning, "><An X Error has occurred...continuing" ,
+                             errmsg, NULL);
+    return ret;
+    }
+
+    SYNOPSIS:
+
+        int _DtPrintDefaultError (dpy, event, msg)
+
+        Display *dpy;       The application's display structure.
+
+        XErrorEvent *event; Error event returned to error callback.
+
+        char *msg;          Buffer returning the formatted text of 
+                            the error message.  It won't be more than
+                            1024 bytes.
+
+*/
+
+#endif /* _usermsg_h */
+/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/include/Dt/Utility.h b/cde/include/Dt/Utility.h
new file mode 100644 (file)
index 0000000..88225b1
--- /dev/null
@@ -0,0 +1,140 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Utility.h $XConsortium: Utility.h /main/4 1995/10/26 15:31:55 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_Utility_h
+#define _Dt_Utility_h
+
+/******************************************************************************
+ *
+ * _DtVectorizeInPlace() takes a string which is made up a group of
+ * components, separated by a common separator character, and breaks
+ * the string up into the separate components.  To reduce the amount of
+ * memory used (and to reduce memory fragmentation), the string is simply
+ * searched for each occurrence of the separator, and the separator is then
+ * replaced by a NULL character.  Pointers to the individual components are
+ * returned as a NULL-terminated array of pointers.
+ *
+ * The passed-in string should be malloc'ed space, since the string will
+ * eventually be freed when the application frees the returned array.  If
+ * you don't want the original string modified, then a copy should be made,
+ * before calling this function.
+ *
+ * The application is responsible for freeing up this memory, and should do
+ * so by calling _DtFreeStringVector().
+ *
+ * Parameters:
+ *
+ *      string           A NULL-terminated string, which is to be vectorized.
+ *
+ *      separator        The character which separates the components within
+ *                       the string.
+ *
+ *****************************************************************************/
+extern char **  _DtVectorizeInPlace( char * string, 
+                                     char separator );
+
+/******************************************************************************
+ *
+ * _DtFreeStringVector will free up the vectorized string array returned by
+ * a call to _DtVectorizeInPlace().  Both the array used to return the
+ * vectorized strings, and the original string itself will be freed up.
+ *
+ * Parameters:
+ *
+ *    stringVector   The array to be freed; originally obtained by a call
+ *                   to _DtVectorizeInPlace().
+ *
+ *****************************************************************************/
+extern void     _DtFreeStringVector( char ** stringVector );
+
+
+/*****************************************************************************
+ * DtCmd String Utility routines.
+ *
+ *****************************************************************************
+ *
+ * _DtCmdStringToArrayOfStrings - takes a string and an array of pointers
+ *   to strings and breaks the string into whitespace separated words.
+ *
+ *   A "word" is a sequence of characters that has no whitespace with
+ *   the following exception:
+ *
+ *     -  A word may contain contain whitespace if it is delimited
+ *        by a pair of matching single or double qotes.
+ *
+ *   "Whitespace" is a tab or blank character.
+ *
+ *
+ * NOTES: 
+ *
+ *   -  The space for the "words" is malloc'd and must be free'd by
+ *   the caller.
+ *   - _DtCmdFreeStringVector() should be used to free up string vectors
+ *   created by _DtCmdStringToArrayOfStrings().
+ *
+ *   -  "theArray" is NULL terminated.
+ *
+ * PARAMETERS:
+ *
+ *   char theString[];         - The string to parse.
+ *
+ *   char *theArray[];         - MODIFIED: gets filled with pointers to
+ *                               the words that are parsed.
+ *
+ *****************************************************************************/
+
+
+/******************************************************************************
+ *
+ * _DtCmdFreeStringVector - takes an array of pointers to strings and
+ *   frees the malloc'd space for the strings.
+ *
+ *   This does NOT free the string vector itself; It assumes that
+ *   stringv is a static i.e. char *stringv[N].
+ *
+ * PARAMETERS:
+ *
+ *   char **stringv;    - MODIFIED:  Each string in the array is freed.
+ *
+ *****************************************************************************/
+
+extern void _DtCmdStringToArrayOfStrings( 
+                        char theString[],
+                        char *theArray[]) ;
+extern void _DtCmdFreeStringVector( 
+                        char **stringv) ;
+
+#endif /* _Dt_Utility_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/UtilityP.h b/cde/include/Dt/UtilityP.h
new file mode 100644 (file)
index 0000000..229ce7e
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         UtilityP.h $XConsortium: UtilityP.h /main/4 1995/10/26 15:32:08 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _Dt_UtilityP_h
+#define _Dt_UtilityP_h
+
+extern char *  _DtGetDisplayName( Display * display );
+
+#endif /* _Dt_UtilityP_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/View.h b/cde/include/Dt/View.h
new file mode 100644 (file)
index 0000000..53de0ed
--- /dev/null
@@ -0,0 +1,132 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: View.h /main/3 1995/10/26 09:35:11 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           View.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Public include file for DtView class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtView_h
+#define _DtView_h
+
+#include <Xm/Xm.h>
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+/*  Temporary location for resource definition.  Need to  */
+/*  move into the string defs file.                       */
+
+#define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect"
+#define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect"
+#define XmNsubpanelTorn "subpanelTorn"
+#define XmCSubpanelTorn "SubpanelTorn"
+
+/* These macros are also defined in DtStrDefs.h */
+/* Control->View.h */
+/* Control.c->Control.h->Icon.h->DtStrDefs.h */
+
+#ifndef XmNleftInset
+#define XmNleftInset            "leftInset"
+#endif /* XmNleftInset */
+
+#ifndef XmNrightInset
+#define XmNrightInset           "rightInset"
+#endif /* XmNrightInset */
+
+#ifndef XmNtopInset
+#define XmNtopInset             "topInset"
+#endif /* XmNtopInset */
+
+#ifndef XmNbottomInset
+#define XmNbottomInset          "bottomInset"
+#endif /* XmNbottomInset */
+
+#ifndef XmNwidthIncrement
+#define XmNwidthIncrement       "widthIncrement"
+#endif /* XmNwidthIncrement */
+
+#ifndef XmNheightIncrement
+#define XmNheightIncrement      "heightIncrement"
+#endif /* XmNheightIncrement */
+
+#ifndef XmNboxType
+#define XmNboxType              "boxType"
+#endif /* XmNboxType */
+
+#ifndef XmCBoxType
+#define XmCBoxType              "BoxType"
+#endif /* XmCBoxType */
+
+#ifndef XmRBoxType
+#define XmRBoxType              "BoxType"
+#endif /* XmRBoxType */
+
+#define XmBOX_NONE             0
+#define XmBOX_PRIMARY          1
+#define XmBOX_SECONDARY                2
+#define XmBOX_SUBPANEL         3
+#define XmBOX_SWITCH           4
+
+#ifndef DtIsView
+#define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass)
+#endif /* XmIsView */
+
+
+extern Widget _DtCreateView(); 
+
+extern WidgetClass dtViewWidgetClass;
+
+typedef struct _DtViewClassRec * DtViewWidgetClass;
+typedef struct _DtViewRec      * DtViewWidget;
+
+
+typedef struct
+{
+       int             reason;
+       XEvent *        event;
+       int             category_index;
+       XmString        category;
+       int             item_index;
+       XmString        item;
+} DtViewCallbackStruct;
+
+#define XmCR_SELECT    XmCR_SINGLE_SELECT
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtView_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/ViewP.h b/cde/include/Dt/ViewP.h
new file mode 100644 (file)
index 0000000..b3a1b4c
--- /dev/null
@@ -0,0 +1,158 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
+/**---------------------------------------------------------------------
+***    
+***    file:           ViewP.h
+***
+***    project:        MotifPlus Widgets
+***
+***    description:    Private include file for DtView class.
+***    
+***    
+***                    (c) Copyright 1990 by Hewlett-Packard Company.
+***
+***
+***-------------------------------------------------------------------*/
+
+
+#ifndef _DtViewP_h
+#define _DtViewP_h
+
+#include <Xm/XmP.h>
+#include <Xm/BulletinBP.h>
+#include <Xm/FormP.h>
+#include <Dt/View.h>
+
+
+
+/*-------------------------------------------------------------
+**     Class Structure
+*/
+
+/*     Class Part
+*/
+typedef struct _DtViewClassPart
+{
+       caddr_t                 extension;
+} DtViewClassPart;
+
+/*     Full Class Record
+*/
+typedef struct _DtViewClassRec
+{
+       CoreClassPart           core_class;
+       CompositeClassPart      composite_class;
+       ConstraintClassPart     constraint_class;
+       XmManagerClassPart      manager_class;
+       XmBulletinBoardClassPart        bulletin_board_class;
+       XmFormClassPart         form_class;
+       DtViewClassPart view_class;
+} DtViewClassRec;
+
+/*     Actual Class
+*/
+extern DtViewClassRec dtViewClassRec;
+
+
+
+\f
+/*-------------------------------------------------------------
+**     Instance Structure
+*/
+
+/*     Instance Part
+*/
+typedef struct _DtViewPart
+{
+       Dimension       width_increment;
+       Dimension       height_increment;
+       Dimension       left_inset;
+       Dimension       right_inset;
+       Dimension       top_inset;
+       Dimension       bottom_inset;
+       unsigned char   box_type;
+        Boolean         subpanel_unpost_on_select;
+        Boolean         subpanel_torn;
+} DtViewPart;
+
+/*     Full Instance Record
+*/
+typedef struct _DtViewRec
+{
+       CorePart                core;
+       CompositePart           composite;
+       ConstraintPart          constraint;
+       XmManagerPart           manager;
+       XmBulletinBoardPart     bulletin_board;
+       XmFormPart              form;
+       DtViewPart              view;
+} DtViewRec;
+
+
+/*-------------------------------------------------------------
+**     Constraint Structure
+*/
+
+/*     Constraint Part
+*/
+typedef struct _DtViewConstraintPart
+{
+       unsigned char   foo_bar;
+} DtViewConstraintPart, * DtViewConstraint;
+
+/*     Full Constraint Record
+*/
+typedef struct _DtViewConstraintRec
+{
+       XmManagerConstraintPart         manager_constraint;
+       XmFormConstraintPart            form_constraint;
+       DtViewConstraintPart    view_constraint;
+} DtViewConstraintRec, * DtViewConstraintPtr;
+
+
+/*-------------------------------------------------------------
+**     Class and Instance Macros
+*/
+
+/*     DtView Class Macros
+*/     
+
+/*     DtView Instance Macros
+*/
+#define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color)
+#define M_TopShadowColor(m)    (m -> manager.top_shadow_color)
+#define M_HighlightColor(m)    (m -> manager.highlight_color)
+#define M_BackgroundPixmap(m)  (m -> core.background_pixmap)
+#define M_LeftInset(m)         (m -> view.left_inset)
+#define M_RightInset(m)                (m -> view.right_inset)
+#define M_TopInset(m)          (m -> view.top_inset)
+#define M_BottomInset(m)       (m -> view.bottom_inset)
+#define M_BoxType(m)           (m -> view.box_type)
+#define M_WidthIncrement(m)    (m -> view.width_increment)
+#define M_HeightIncrement(m)   (m -> view.height_increment)
+
+
+#endif /* _DtViewP_h */
+
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/Dt/Wsm.h b/cde/include/Dt/Wsm.h
new file mode 100644 (file)
index 0000000..7e37b3a
--- /dev/null
@@ -0,0 +1,189 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Wsm.h /main/5 1996/05/20 16:08:50 drk $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
+ * (c) Copyright 1993,1994,1996 International Business Machines Corp.
+ * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993,1994,1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef _Dt_Wsm_h
+#define _Dt_Wsm_h
+
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/*
+ * Constants
+ */
+
+#define DtWSM_REASON_ADD       0
+#define DtWSM_REASON_DELETE    1
+#define DtWSM_REASON_BACKDROP  2
+#define DtWSM_REASON_TITLE     3
+#define DtWSM_REASON_CURRENT   4
+
+
+/*
+ * Types
+ */
+
+/* Workspace property information */
+
+typedef struct _DtWsmWorkspaceInfo {
+       Atom            workspace;
+       unsigned long   bg;
+       unsigned long   fg;
+       Atom            backdropName;
+       int             colorSetId;
+       char            *pchTitle;
+       Window          *backdropWindows;
+       int             numBackdropWindows;
+} DtWsmWorkspaceInfo;
+
+
+/* Workspace modified callback reasons */
+
+typedef int DtWsmWsReason;
+
+/* Workspace callback context (opaque) */
+
+typedef struct _DtWsmCBContext * DtWsmCBContext;
+
+/* Workspace callback prototype */
+
+typedef void (*DtWsmWsChangeProc)(
+               Widget          widget,
+               Atom            aWs,
+               XtPointer       client_data);
+
+/* Workspace modified callback prototype */
+
+typedef void (*DtWsmWsModifiedProc)(
+               Widget          widget,
+               Atom            aWs,
+               DtWsmWsReason   reason,
+               XtPointer       client_data);
+
+
+/*
+ * Functions
+ */
+
+extern void DtWsmAddWorkspaceFunctions(
+               Display         *display,
+                Window         client);
+
+extern void DtWsmRemoveWorkspaceFunctions(
+               Display         *display,
+               Window          client);
+
+extern int DtWsmGetWorkspaceInfo(
+               Display         *display,
+               Window          root,
+               Atom            aWS,
+               DtWsmWorkspaceInfo **ppWsInfo);
+
+extern void DtWsmFreeWorkspaceInfo(
+               DtWsmWorkspaceInfo *pWsInfo);
+
+extern int DtWsmGetWorkspaceList(
+               Display         *display,
+               Window          root,
+               Atom            **ppWorkspaceList,
+               int             *pNumWorkspaces);
+
+extern int DtWsmGetCurrentWorkspace(
+               Display         *display,
+               Window          root,
+               Atom            *paWorkspace);
+
+extern DtWsmCBContext DtWsmAddCurrentWorkspaceCallback(
+               Widget          widget,
+               DtWsmWsChangeProc ws_change,
+               XtPointer       client_data);
+
+extern void DtWsmRemoveWorkspaceCallback(
+               DtWsmCBContext  pCbCtx);
+
+extern int DtWsmSetCurrentWorkspace(
+               Widget          widget,
+               Atom            aWs);
+
+extern int DtWsmGetWorkspacesOccupied(
+               Display         *display,
+               Window          window,
+               Atom            **ppaWs,
+               unsigned long   *pNumWs);
+
+extern void DtWsmSetWorkspacesOccupied(
+               Display         *display,
+               Window          window,
+               Atom            *pWsHints,
+               unsigned long   numHints);
+
+extern void DtWsmOccupyAllWorkspaces(
+               Display         *display,
+               Window          window);
+
+extern DtWsmCBContext DtWsmAddWorkspaceModifiedCallback(
+               Widget          widget,
+               DtWsmWsModifiedProc ws_modified,
+               XtPointer       client_data);
+
+extern Window DtWsmGetCurrentBackdropWindow(
+               Display         *display,
+               Window          root);
+
+extern int DtWsmSetWorkspaceTitle(
+               Widget          widget,
+               Atom            aWs,
+               char            *title);
+
+extern int DtWsmChangeBackdrop(
+               Display         *display,
+               Window          root,
+                char            *path,
+                Pixmap          pixmap);
+
+extern int DtWsmAddWorkspace(
+               Widget          widget,
+               char            *title);
+
+extern int DtWsmDeleteWorkspace(
+               Widget          widget,
+               Atom            aWs);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _Dt_Wsm_h */
diff --git a/cde/include/Dt/WsmM.h b/cde/include/Dt/WsmM.h
new file mode 100644 (file)
index 0000000..a9bd9ee
--- /dev/null
@@ -0,0 +1,133 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*****************************<+>*************************************
+ *********************************************************************
+ **
+ **   File:     WsmM.h
+ **
+ **   RCS:     $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $
+ **   Project:  DT Workspace Manager
+ **
+ **   Description: Defines parameters necessary for messaging with
+ **                the workspace manager.
+ **
+ ** (c) Copyright 1993, 1994 Hewlett-Packard Company
+ ** (c) Copyright 1993, 1994 International Business Machines Corp.
+ ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ ** (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *********************************************************************
+ *****************************<+>*************************************/
+#ifndef _Dt_WsmM_h
+#define _Dt_WsmM_h
+
+/*
+ * Messaging definitions
+ */
+
+/* Workspace manager tool class (for old messages) */
+#define DtWM_TOOL_CLASS                        "WORKSPACEMGR"
+
+/* Workspace manager tool class (for new messages) */
+#define DtWSM_TOOL_CLASS               "WORKSPACE_MANAGER"
+
+/* Workspace manager tool class (for front panel messages) */
+#define DtFP_TOOL_CLASS                "FRONTPANEL"
+
+/* Request from dtstyle to change backdrop */
+#define DtWM_BACKDROP_CHANGE           "BACKDROP_CHANGE"
+
+/* Request from session manager to unlock the display (depress button) */
+#define DtWM_UNLOCK_DISPLAY            "UNLOCK_DISPLAY"
+
+/* Request from session manager to cancel an exit (depress button) */
+#define DtWM_CANCEL_EXIT               "CANCEL_EXIT"
+
+/* Request from session manager to retore the front panel to default state */
+#define DtWM_RESTORE_PANEL             "RESTORE_PANEL"
+
+/* Notification from Workspace manager of a new workspace */
+#define DtWSM_NEW_WORKSPACE            "ACTIVE_WORKSPACE"
+
+#define DtWSM_NEW_WORKSPACE_ARG_NAME   0
+#define DtWSM_NEW_WORKSPACE_ARG_ATOM   1
+
+/* Request to set the current workspace */
+#define DtWSM_SET_WORKSPACE            "SET_WORKSPACE"
+
+#define DtWSM_SET_WORKSPACE_ARG_ATOM   0
+
+/* Request to change the title of a workspace */
+#define DtWSM_SET_WORKSPACE_TITLE      "SET_WORKSPACE_TITLE"
+
+#define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM     0
+#define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE    1
+
+/* Request to add a workspace */
+#define DtWSM_ADD_WORKSPACE            "ADD_WORKSPACE"
+
+#define DtWSM_ADD_WORKSPACE_ARG_TITLE          0
+
+/* Request to delete a workspace */
+#define DtWSM_DELETE_WORKSPACE         "DELETE_WORKSPACE"
+
+#define DtWSM_DELETE_WORKSPACE_ARG_ATOM                0
+
+/* Notification from Workspace manager of a modified workspace */
+#define DtWSM_MODIFY_WORKSPACE         "MODIFY_WORKSPACE"
+
+#define DtWSM_MODIFY_WORKSPACE_ARG_ATOM                0
+#define DtWSM_MODIFY_WORKSPACE_ARG_TYPE                1
+
+#define DtWSM_MODIFY_WORKSPACE_TYPE_ADD                0
+#define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE     1
+#define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP   2
+#define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE      3
+#define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE     4
+
+/* Notification from Workspace manager of a modified workspace */
+#define DtWSM_MARQUEE_SELECTION                "MARQUEE_SELECTION"
+
+#define DtWSM_MARQUEE_SELECTION_ARG_TYPE       0
+#define DtWSM_MARQUEE_SELECTION_ARG_X          1
+#define DtWSM_MARQUEE_SELECTION_ARG_Y          2
+#define DtWSM_MARQUEE_SELECTION_ARG_WIDTH      3
+#define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT     4
+
+#define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN     1
+#define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE  2
+#define DtWSM_MARQUEE_SELECTION_TYPE_END       3
+#define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL    4
+
+/*
+ * Macros to set and fetch argument fields into a message
+ *
+ * (NOTE: Since sending the request breaks out the zero'th 
+ *  field, there is a difference of one in these two macros.)
+ */
+#define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value))
+#define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)])
+
+
+#endif /* _Dt_WsmM_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/WsmP.h b/cde/include/Dt/WsmP.h
new file mode 100644 (file)
index 0000000..9d32e11
--- /dev/null
@@ -0,0 +1,848 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: WsmP.h /main/8 1996/05/20 16:08:59 drk $ */
+
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:     WsmP.h
+ **
+ **   Project:  DT Workspace Manager
+ **
+ **   Description: Defines PRIVATE properties, structures, and 
+ **               parameters used for communication with the 
+ **               workspace manager.
+ **
+ ** (c) Copyright 1996 Digital Equipment Corporation.
+ ** (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
+ ** (c) Copyright 1993,1994,1996 International Business Machines Corp.
+ ** (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
+ ** (c) Copyright 1993,1994,1996 Novell, Inc. 
+ ** (c) Copyright 1996 FUJITSU LIMITED.
+ ** (c) Copyright 1996 Hitachi.
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _Dt_WsmP_h
+#define _Dt_WsmP_h
+#include <Dt/Wsm.h>
+#include <X11/Intrinsic.h>
+#include <Dt/Service.h>
+#include <Tt/tt_c.h>
+
+/**********************************************************************
+ * Workspace atom names 
+ **********************************************************************/
+#define _XA_DT_MARQUEE_SELECTION       "_DT_MARQUEE_SELECTION"
+#define _XA_DT_WORKSPACE_EMBEDDED_CLIENTS      \
+                                       "_DT_WORKSPACE_EMBEDDED_CLIENTS"
+#define _XA_DT_WM_REQUEST              "_DT_WM_REQUEST"
+#define _XA_DT_WORKSPACE_HINTS         "_DT_WORKSPACE_HINTS"
+#define _XA_DT_WORKSPACE_PRESENCE      "_DT_WORKSPACE_PRESENCE"
+#define _XA_DT_WORKSPACE_INFO          "_DT_WORKSPACE_INFO"
+#define _XA_DT_WM_HINTS                        "_DT_WM_HINTS"
+#define _XA_DT_WORKSPACE_LIST          "_DT_WORKSPACE_LIST"
+#define _XA_DT_WORKSPACE_CURRENT       "_DT_WORKSPACE_CURRENT"
+
+
+/**********************************************************************
+ * Name to request ``all'' workspaces (for a persistent window)
+ **********************************************************************/
+
+#define _XA_DT_WORKSPACE_ALL           "all"
+
+
+/**********************************************************************
+ * Workspace function definitions 
+ **********************************************************************/
+#define DtWM_FUNC_OCCUPY_WS            DtWM_FUNCTION_OCCUPY_WS
+#define DtWM_FUNC_ALL                  DtWM_FUNC_OCCUPY_WS
+
+/**********************************************************************
+ * Workspace property information
+ **********************************************************************/
+
+/* 
+ *
+ *  NOTE: The "(client -> dtwm)" indication calls out the direction
+ *        of information flow. In this case, the client writes the
+ *        property and dtwm reads the property.
+ *
+ *
+ *  _DT_WORKSPACE_HINTS                (client -> dtwm)
+ *
+ *  This property is a list of atoms placed by a client on its 
+ *  top level window(s). Each atom is an "interned" string name
+ *  for a workspace. The workspace manager looks at this property
+ *  when it manages the window (e.g. when the window is mapped)
+ *  and will place the window in the workspaces listed.
+ *
+ *  _DT_WORKSPACE_PRESENCE     (dtwm -> client)
+ *
+ *  This property is a list of atoms placed on a client by dtwm.
+ *  Each atom is an "interned" string name for a workspace. This 
+ *  property lists the workspaces that this client lives in.
+ *
+ *  _DT_WORKSPACE_LIST         (dtwm -> clients)
+ *
+ *  This property is a list of atoms. Each atom represents a 
+ *  name of a workspace.  The list is in "order" such that
+ *  the first element is for the first workspace and so on.
+ *  This proeprty is placed on the mwm ("wmWindow") window.
+ *
+ *  _DT_WORKSPACE_CURRENT      (dtwm -> clients)
+ *
+ *  This property is a single atom, representing the current 
+ *  workspace. It is updated each time the workspace changes.
+ *  This proeprty is placed on the mwm window.
+ *
+ *  _DT_WORKSPACE_INFO_<name>  (dtwm -> clients)
+ *
+ *  There is one property of this form for each workspace in
+ *  _DT_WORKSPACE_LIST. This property is a sequence of ISO-LATIN1
+ *  NULL-terminated strings representing the elements in a
+ *  structure. This information was formerly in _DT_WORKSPACE_INFO
+ *  but was broken out to allow for extensibility.
+ *  This proeprty is placed on the mwm window.
+ *
+ *  _DT_WM_HINTS       (client -> dtwm)
+ *
+ *  This property requests specific window/workspace management behavior.
+ *  The functions member of the property allows a client to enable or
+ *  disable workspace management functions. The behavior member is
+ *  used to indicate front panels and slide-ups.
+ *
+ */
+
+
+/**********************************************************************
+ * Property structures
+ **********************************************************************/
+
+typedef struct _DtWmHints
+{
+    long       flags;                  /* marks valid fields */
+    long       functions;              /* special dtwm functions */
+    long       behaviors;              /* special dtwm behaviors */
+    Window     attachWindow;           /* (reserved) */
+} DtWmHints;
+
+/* DtWmHints "flags" definitions */
+#define DtWM_HINTS_FUNCTIONS           (1L << 0)
+#define DtWM_HINTS_BEHAVIORS           (1L << 1)
+#define DtWM_HINTS_ATTACH_WINDOW       (1L << 2)       /* (reserved) */
+
+/* DtWmHints "functions" definitions */
+#define DtWM_FUNCTION_ALL              (1L << 0)
+#define DtWM_FUNCTION_OCCUPY_WS                (1L << 16)
+
+/* DtWmHints "behaviors" definitions */
+#define DtWM_BEHAVIOR_PANEL            (1L << 1)
+#define DtWM_BEHAVIOR_SUBPANEL         (1L << 2)
+#define DtWM_BEHAVIOR_SUB_RESTORED     (1L << 3)
+
+/**********************************************************************
+ * Session atom names 
+ **********************************************************************/
+#define _XA_DT_SESSION_HINTS           "_DT_SESSION_HINTS"
+#define _XA_DT_SAVE_MODE               "_DT_SAVE_MODE"
+#define _XA_DT_RESTORE_MODE            "_DT_RESTORE_MODE"
+#define _XA_DT_RESTORE_DIR             "_DT_RESTORE_DIR"
+#define _XA_DT_SM_WM_PROTOCOL          "_DT_SM_WM_PROTOCOL"
+#define _XA_DT_SM_START_ACK_WINDOWS    "_DT_SM_START_ACK_WINDOWS"
+#define _XA_DT_SM_STOP_ACK_WINDOWS     "_DT_SM_STOP_ACK_WINDOWS"
+#define _XA_DT_WM_WINDOW_ACK           "_DT_WM_WINDOW_ACK"
+#define _XA_DT_WM_EXIT_SESSION         "_DT_WM_EXIT_SESSION"
+#define _XA_DT_WM_LOCK_DISPLAY         "_DT_WM_LOCK_DISPLAY"
+#define _XA_DT_WM_READY                "_DT_WM_READY"
+
+/**********************************************************************
+ * Workspace special character definitions 
+ **********************************************************************/
+#define DTWM_CH_ESC_NEXT               "\\"
+
+/**********************************************************************
+ * Marquee selection callback prototype
+ **********************************************************************/
+typedef void (*DtWsmMarqueeSelectionProc) ();
+/*
+    Widget             widget;
+    int                        type;
+    Position           x, y;
+    Dimension          width, height;
+    XtPointer          client_data;
+*/
+
+/**********************************************************************
+ * Marquee Select
+ **********************************************************************/
+
+#define DT_WSM_MARQUEE_SELECTION_TYPE_BEGIN    1
+#define DT_WSM_MARQUEE_SELECTION_TYPE_CONTINUE 2
+#define DT_WSM_MARQUEE_SELECTION_TYPE_END      3
+#define DT_WSM_MARQUEE_SELECTION_TYPE_CANCEL   4
+
+/**********************************************************************
+ * Workspace request definitions 
+ *
+ * NOTE: These functions do not necessarily match the other
+ *       window manager f.* functions!
+ **********************************************************************/
+#define DTWM_REQ_CHANGE_BACKDROP       "f.change_backdrop"
+#define DTWM_REQ_RESTART               "f.restart"
+
+/**********************************************************************
+ * Workspace request parameter definitions 
+ **********************************************************************/
+#define DTWM_REQP_BACKDROP_NONE        "NoBackdrop"
+#define DTWM_REQP_NO_CONFIRM   "-noconfirm"
+
+/**********************************************************************
+ * Resource converter definitions
+ *
+ * NOTE: This has been lifted from mwm. 
+ * Please keep syncronized with the current version of mwm/dtwm.
+ * (See WmGlobal.h)
+ **********************************************************************/
+
+/* icon placement values (iconPlacement, ...): */
+#define ICON_PLACE_LEFT_PRIMARY                (1L << 0)
+#define ICON_PLACE_RIGHT_PRIMARY       (1L << 1)
+#define ICON_PLACE_TOP_PRIMARY         (1L << 2)
+#define ICON_PLACE_BOTTOM_PRIMARY      (1L << 3)
+#define ICON_PLACE_LEFT_SECONDARY      (1L << 4)
+#define ICON_PLACE_RIGHT_SECONDARY     (1L << 5)
+#define ICON_PLACE_TOP_SECONDARY       (1L << 6)
+#define ICON_PLACE_BOTTOM_SECONDARY    (1L << 7)
+#define ICON_PLACE_EDGE                        (1L << 8)
+#define ICON_PLACE_TIGHT               (1L << 9)
+#define ICON_PLACE_RESERVE             (1L << 10)
+
+/**********************************************************************
+ * Workspace property information
+ **********************************************************************/
+
+/* 
+ *
+ *  NOTE: The "(client -> dtwm)" indication calls out the direction
+ *        of information flow. In this case, the client writes the
+ *        property and dtwm reads the property.
+ *
+ *  _DT_WM_REQUEST     (client -> dtwm)
+ *
+ *  This property of type string that is used to communication 
+ *  function requests to dtwm. This property is placed on the mwm 
+ *  window. Dtwm listens for changes to this property and dequeues 
+ *  requests off the top of the list. Requests are NULL-terminated
+ *  strings in the format:
+ *
+ *    <req_type> <req_parms> 
+ *
+ *  Each request ends with a literal '\0' character to insure
+ *  separation from the next request. 
+ *
+ *  Clients must always add requests to the end of the property 
+ *  (mode=PropModeAppend). Use of convenience routines is 
+ *  recommended since they take care of proper formatting of the 
+ *  requests.
+ *
+ */
+
+
+/**********************************************************************
+ * Property structures
+ **********************************************************************/
+
+/* Internal form of this property */
+typedef struct _DtWorkspaceHints
+{
+    long       version;        /* indicates structure changes */
+    long       flags;          /* marks valid fields */
+    long       wsflags;        /* special workspace information */
+    long       numWorkspaces;  /* number of workspaces */
+    Atom *     pWorkspaces;    /* list of atoms for workspaces */
+} DtWorkspaceHints;
+
+/* DtWorkspaceHints "flags" definitions */
+#define DT_WORKSPACE_HINTS_WSFLAGS             (1L << 0)
+       /* The following definitions enables both the numWorkspaces
+          and pWorkspaces fields */
+#define DT_WORKSPACE_HINTS_WORKSPACES          (1L << 1)
+
+/* DtWorkspaceHints "wsflags" definitions */
+#define DT_WORKSPACE_FLAGS_OCCUPY_ALL          (1L << 0)
+
+/**********************************************************************
+ * Marquee Selection Structures
+ **********************************************************************/
+typedef struct _DtMarqueeSelectData
+{
+    long       state;                  /* current property state */
+    Position   x;                      /* NW corner of select area */
+    Position   y;                      /* NW corner of select area */
+    Dimension  width;                  /* size of select area */
+    Dimension  height;                 /* size of select area */
+} DtMarqueeSelectData;
+
+typedef struct _DtMarqueeSelectProp
+{
+    long       state;                  /* current property state */
+    long       x;                      /* NW corner of select area */
+    long       y;                      /* NW corner of select area */
+    long       width;                  /* size of select area */
+    long       height;                 /* size of select area */
+} DtMarqueeSelectProperty;
+
+/**********************************************************************
+ * Marquee Selection Definitions
+ **********************************************************************/
+#define DT_MARQUEE_SELECT_BEGIN        1
+#define DT_MARQUEE_SELECT_CONTINUE     2
+#define DT_MARQUEE_SELECT_END          3
+#define DT_MARQUEE_SELECT_CANCEL       4
+
+/**********************************************************************
+ * Workspace change callback context (opaque)
+ **********************************************************************/
+typedef void (*DtWsmCBProc) ();
+struct _DtWsmCBContext
+{
+    Tt_pattern         pattern;
+    Widget             widget;
+    DtWsmCBProc                ws_cb;
+    XtPointer          client_data;
+    XtPointer          nested_context;
+};
+
+/**********************************************************************
+ * Convenience Routines
+ **********************************************************************/
+
+/*************************************<->*************************************
+ *
+ *  int _DtGetMwmWindow (display, root, pMwmWindow)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Get the Motif Window manager window
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display            - display 
+ *  root               - root window of screen
+ *  pMwmWindow         - pointer to a window (to be returned)
+ *
+ *  Outputs:
+ *  --------
+ *  *pMwmWindow                - mwm window id, if successful
+ *  Return             - status from XGetWindowProperty
+ *
+ *  Comments:
+ *  --------
+ *  This can fail if mwm is not managing the screen for the root window
+ *  passed in.
+ * 
+ *************************************<->***********************************/
+extern int 
+_DtGetMwmWindow( 
+                        Display *display,
+                        Window root,
+                        Window *pMwmWindow) ;
+
+
+/*************************************<->*************************************
+ *
+ *  int _DtGetEmbeddedClients (display, root, ppEmbeddedClients, 
+ *                                     pNumEmbeddedClients)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Get the contents of the _DT_WORKSPACE_EMBEDDED_CLIENTS property 
+ *  from a root window. This is a list (array) of top-level windows that 
+ *  are embedded in the front panel of the window manager. They would
+ *  not be picked up ordinarily by a session manager in a normal
+ *  search for top-level windows because they are reparented to 
+ *  the front panel which itself is a top-level window.
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display            - display 
+ *  root               - root window to get info from
+ *  ppEmbeddedClients  - pointer to a pointer (to be returned)
+ *  pNumEmbeddedClients        - pointer to a number (to be returned)
+ *
+ *  Outputs:
+ *  -------
+ *  *ppEmbeddedClients - pointer to a array of window IDs (top-level
+ *                       windows for embedded clients)
+ *                       (NOTE: This should be freed using XFree)
+ *  *pNumEmbeddedClients- number of window IDs in array
+ *  Return             - Success if property fetched ok.
+ *                       Failure returns are from XGetWindowProperty
+ * 
+ *  Comments:
+ *  --------
+ *  Use XFree to free the returned data.
+ * 
+ *************************************<->***********************************/
+extern int 
+_DtGetEmbeddedClients(
+        Display *display,
+        Window root,
+        Atom **ppEmbeddedClients,
+        unsigned long *pNumEmbeddedClients );
+
+
+/*************************************<->*************************************
+ *
+ *  int _DtWmRestart (display, root)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Requests the window manager to restart itself
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  root       - root window for screen 
+ *
+ *  Returns:
+ *  --------
+ *  Success if request was sent
+ *
+ *  Comments:
+ *  ---------
+ * 
+ *************************************<->***********************************/
+extern int 
+_DtWmRestart( 
+       Display *display,
+       Window root) ;
+
+/*************************************<->*************************************
+ *
+ *  int _DtWsmChangeBackdrop (display, root, path, pixmap)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Request the HP DT workspace manager to change the backdrop
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  root       - root window of screen
+ *  path       - file path to bitmap file
+ *  pixmap     - pixmap id of backdrop pixmap
+ *
+ *  Returns:
+ *  --------
+ *  Success if request sent 
+ * 
+ *************************************<->***********************************/
+extern int 
+_DtWsmChangeBackdrop (
+       Display *display, 
+       Window root, 
+       char *path, 
+       Pixmap pixmap);
+
+/*************************************<->*************************************
+ *
+ *  _DtWmCvtStringToIPlace (args, numArgs, fromVal, toVal)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  This function converts a string to an icon placement scheme description.
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  args = NULL (don't care)
+ *
+ *  numArgs = 0 (don't care)
+ *
+ *  fromVal = resource value to convert
+ *
+ * 
+ *  Outputs:
+ *  -------
+ *  toVal = descriptor to use to return converted value
+ *
+ *************************************<->***********************************/
+
+extern void
+_DtWmCvtStringToIPlace (
+       XrmValue *args, 
+       Cardinal numArgs, 
+       XrmValue *fromVal, 
+       XrmValue *toVal);
+
+
+/*************************************<->*************************************
+ *
+ *  Boolean _DtWsmIsBackdropWindow (display, screen_num, window)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Returns true if the window passed in is a backdrop window.
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  screen_num - number of screen we're interested in
+ *  window     - window we want to test
+ *
+ *  Outputs:
+ *  -------
+ *  Return     - True if window is a backdrop window
+ *                False otherwise.
+ *
+ *  Comments:
+ *  --------
+ * 
+ *************************************<->***********************************/
+Boolean 
+_DtWsmIsBackdropWindow(
+        Display *display,
+        int screen_num,
+        Window window );
+
+/*************************************<->*************************************
+ *
+ *  int DtWsmSetWorkspaceTitle (widget, aWs, pchNewName)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Rename a workspace
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  widget     - a widget
+ *  aWs        - atom of workspace 
+ *  pchNewName - new name for the workspace
+ *
+ *  Outputs:
+ *  --------
+ *  Return     - 1 (*not* Success) if communication to workspace manager
+ *               was successful.
+ *
+ *  Comments:
+ *  ---------
+ *  The odd-ball successful return value is a CDE 1.0 bug being
+ *  preserved for backward compatibility.
+ * 
+ *************************************<->***********************************/
+int
+_DtWsmSetWorkspaceTitle (
+       Widget widget,
+        Atom aWs,
+       char * pchNewName);
+
+/*************************************<->*************************************
+ *
+ *  int _DtWsmDeleteWorkspace (widget, aWs)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Delete a workspace
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  widget     - a widget (with a window!)
+ *  aWs        - atom of workspace to delete
+ *
+ *  Outputs:
+ *  --------
+ *  Return     - 1 (*not* Success) if communication to workspace manager
+ *               was successful.
+ *
+ *  Comments:
+ *  ---------
+ *  The odd-ball successful return value is a CDE 1.0 bug being
+ *  preserved for backward compatibility.
+ * 
+ *************************************<->***********************************/
+int
+_DtWsmDeleteWorkspace (
+       Widget widget,
+        Atom aWs);
+
+
+/*************************************<->*************************************
+ *
+ *  int _DtWsmCreateWorkspace (widget, pchTitle)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Add a workspace
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  widget     - a widget (with a window!)
+ *  pchTitle   - user-visible title of the workspace
+ *
+ *  Outputs:
+ *  --------
+ *  Return     - 1 (*not* Success) if communication to workspace manager
+ *               was successful.
+ *
+ *  Comments:
+ *  ---------
+ *  The odd-ball successful return value is a CDE 1.0 bug being
+ *  preserved for backward compatibility.
+ * 
+ *************************************<->***********************************/
+int
+_DtWsmCreateWorkspace (Widget widget, char * pchTitle);
+
+/*************************************<->*************************************
+ *
+ *  _DtWsmSetWorkspaceHints (display, window, pWsHints)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Set the contents of the _DT_WORKSPACE_HINTS property on a window
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  window     - window to get hints from
+ *  pWsHints   - pointer to workspace hints
+ *
+ *  Comments:
+ *  ---------
+ *  The internal form of the property is a structure. The structure
+ *  must be unwound and turned into a simple array of "long"s before
+ *  being written out.
+ *
+ *  This function currently only deals with version 1 of the property
+ *  structure. The passed in pWsHints->version is ignored.
+ * 
+ *************************************<->***********************************/
+extern void 
+_DtWsmSetWorkspaceHints(
+        Display *display,
+        Window window,
+        DtWorkspaceHints *pWsHints);
+
+
+/*************************************<->*************************************
+ *
+ *  int _DtWsmGetWorkspaceHints (display, window, ppWsHints)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Get the contents of the _DT_WORKSPACE_HINTS property from a window
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  window     - window to get hints from
+ *  ppWsHints  - pointer to pointer to workspace hints
+ *
+ *  Outputs:
+ *  *ppWsHints - allocated workspace hints data.
+ *
+ *  Comments:
+ *  ---------
+ *  The internal form of the property is a structure. The property
+ *  is read in and packed into data allocated for the structure.
+ *  Free the workspace hints by calling _DtWsmFreeWorkspaceHints.
+ *
+ *  This function currently only deals with version 1 of the property
+ *  structure. 
+ * 
+ *************************************<->***********************************/
+extern int 
+_DtWsmGetWorkspaceHints(
+        Display *display,
+        Window window,
+        DtWorkspaceHints **ppWsHints);
+
+/*************************************<->*************************************
+ *
+ *  _DtWsmFreeWorkspaceHints (pWsHints)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Free  a workspace hints structure returned from _DtWsmGetWorkspaceHints
+ *
+ *  Inputs:
+ *  ------
+ *  pWsHints   - pointer to workspace hints
+ *
+ *  Outputs:
+ *
+ *  Comments:
+ *  ---------
+ *************************************<->***********************************/
+extern void 
+_DtWsmFreeWorkspaceHints(
+        DtWorkspaceHints *pWsHints);
+
+/*************************************<->*************************************
+ *
+ *  DtWsmCBContext * _DtWsmAddMarqueeSelectionCallback (widget, 
+ *                                                     marquee_select, 
+ *                                                     client_data)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Register a function to be called when a marquee selection is made
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  widget             - widget for this client
+ *  marquee_select     - function to call for marquee select
+ *  client_data                - additional data to pass back to client when called.
+ *
+ *  Outputs:
+ *  --------
+ *  Return     - ptr to callback context data (opaque) 
+ *
+ *  Comments:
+ *  ---------
+ *  The callback context data ptr should be saved if you intend to
+ *  removed this callback at some point in the future. 
+ * 
+ *************************************<->***********************************/
+DtWsmCBContext 
+_DtWsmAddMarqueeSelectionCallback (
+       Widget                          widget,
+       DtWsmMarqueeSelectionProc       marquee_select,
+       XtPointer                       client_data);
+
+/*************************************<->*************************************
+ *
+ *  _DtWsmSetDtWmHints (display, window, pHints)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Set the contents of the _DT_WM_HINTS property on a window
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  window     - window to set hints on
+ *  pHints     - pointer the hints to set
+ *
+ *  Comments:
+ *  ---------
+ *  No error checking
+ * 
+ *************************************<->***********************************/
+extern void 
+_DtWsmSetDtWmHints( Display *display, 
+               Window window, 
+               DtWmHints *pHints);
+
+/*************************************<->*************************************
+ *
+ *  int _DtWsmGetDtWmHints (display, window, ppDtWmHints)
+ *
+ *
+ *  Description:
+ *  -----------
+ *  Get the contents of the _DT_WM_HINTS property on a window
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  display    - display 
+ *  window     - window to get hints from
+ *  ppDtWmHints        - pointer to a pointer to return
+ *
+ *  Outputs:
+ *  --------
+ *  *ppDtWmHints-points to the DtWmHints structure retrieved from
+ *               the window (NOTE: This should be freed using XFree)
+ *
+ *  Comments:
+ *  ---------
+ * 
+ *************************************<->***********************************/
+extern int
+_DtWsmGetDtWmHints(
+        Display *display,
+        Window window,
+        DtWmHints **ppDtWmHints);
+
+/*************************************<->*************************************
+ *
+ *  _DtWsmSelectionNameForScreen (scr)
+ *
+ *  Description:
+ *  -----------
+ *  Returns a string containing the selection name used for
+ *  communication with the workspace manager on this screen
+ *
+ *
+ *  Inputs:
+ *  ------
+ *  scr                - number of screen
+ *
+ *  Outputs:
+ *  --------
+ *  Return     - ptr to string with selection name (free with XtFree)
+ *
+ *  Comments:
+ *  ---------
+ *  Assumes the screen number is < 1000.
+ * 
+ *************************************<->***********************************/
+extern String
+_DtWsmSelectionNameForScreen (int scr);
+
+extern Tt_callback_action
+_DtWsmConsumeReply (
+        Tt_message msg,
+        Tt_pattern pat );
+
+#endif /* _Dt_WsmP_h */
+/* Do not add anything after this endif. */
diff --git a/cde/include/Dt/XlationSvc.h b/cde/include/Dt/XlationSvc.h
new file mode 100644 (file)
index 0000000..ab2763e
--- /dev/null
@@ -0,0 +1,196 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: XlationSvc.h /main/6 1996/08/22 09:07:18 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        XlationSvc.h
+ **
+ **   Project:     DtXlate
+ **
+ **   Description: table-based translation services
+ **
+ **   (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **   (c) Copyright 1993, 1994 International Business Machines Corp.
+ **   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **   (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+
+#ifndef _DtXLATE_XLATION_SVC_I
+#define _DtXLATE_XLATION_SVC_I
+
+#include <sys/utsname.h>      /* for UTSLEN, SYS_NMLN */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*=================================================================
+$SHAREDBEG$: This header appears in all appropriate DtXlate topics
+$INCLUDE$
+#include <XlationSvc.h>
+=$END$==========================================================*/
+
+
+#if DOC
+/*========================================================*/
+$TYPEBEG$: _DtXlateDb
+$1LINER$:  An opaque object used to represent translation dbs
+$SUMMARY$:
+_DtXlateDb is the type of a translation database object.
+The database object must be opened before use and closed
+after use.  The definition of the object is opaque to users.
+$ARGS$:
+/*================================================$SKIP$==*/
+#endif
+/*$DEF$*/
+typedef struct __DtXlateDbRec * _DtXlateDb;
+/*$END$*/
+
+
+#if DOC
+/*========================================================*/
+$CONSTBEG$: _DtXLATE_OPER_xxx
+$1LINER$:  Constants for specifying operations 
+$SUMMARY$:
+The _DtXLATE_OPER_xxx are constants that produce strings 
+used in the translation specifications when specifying
+the operation of a translation.
+
+The operation string name must be identical both in the
+source code and in the translation table.
+These constants should be used whenever referencing
+operations as part of a translation.
+/*================================================$SKIP$==*/
+#endif
+/* $DEF$, Operation constants */
+#define _DtXLATE_OPER_VERSION  "version"
+/*$END$*/
+
+#if DOC
+/*========================================================*/
+$CONSTBEG$: _DtPLATFORM_xxx
+$1LINER$:  Constants for specifying platforms strings
+$SUMMARY$:
+The _DtPLATFORM_xxx are constants that produce strings 
+used in the translation specifications and when performing
+a translation using the API.  Recall that the platform name must
+be an exact match if specified as translation criteria.
+These names are the same strings returned by 'uname(1) -s'
+and uname(2):utsname.sysname.
+
+The operation string name must be identical both in the
+source code and in the translation table.
+These constants should be used whenever referencing
+platforms as part of a translation.
+/*================================================$SKIP$==*/
+#endif
+/* $DEF$, Platform constants */
+#if defined(SVR4) || defined(_AIX)
+#define _DtPLATFORM_MAX_LEN SYS_NMLN
+#else
+#if defined(SYS_NMLN)
+#define _DtPLATFORM_MAX_LEN SYS_NMLN
+#else
+#define _DtPLATFORM_MAX_LEN UTSLEN
+#endif
+#endif
+
+#define _DtPLATFORM_UNKNOWN ((const char *)0)
+#define _DtPLATFORM_CURRENT ((const char *)0)
+#define _DtPLATFORM_CDE     "CDE"
+#define _DtPLATFORM_HPUX    "HP-UX"
+#define _DtPLATFORM_AIX     "AIX"
+#define _DtPLATFORM_SUNOS   "SunOS"
+#define _DtPLATFORM_SOLARIS "Solaris"      /* verify */
+#define _DtPLATFORM_XENIX   "Xenix"        /* verify */
+/*$END$*/
+
+
+/* Functions */
+int _DtXlateOpenDb(
+       const char *  databaseName,
+       _DtXlateDb *  ret_db);
+
+int _DtXlateOpenAndMergeDbs(
+       const char *   databaseName,
+       _DtXlateDb *   io_db);
+
+int  _DtXlateMergeDbs(
+       _DtXlateDb *  io_dbToMerge,
+       _DtXlateDb *  io_mergeIntoDb);
+
+int _DtXlateOpenAllDbs(
+         const char * searchPaths,
+         const char * databaseName,
+         _DtXlateDb * ret_db);
+
+int _DtXlateCloseDb(
+       _DtXlateDb * io_db);
+
+int _DtXlateStdToOpValue(
+       _DtXlateDb        db,
+       const char *      platform,
+       const int         version,
+       const char *      operation,
+       const char *      stdValue,
+       char * *          ret_opValue,
+       void *            ret_reserved);
+
+int _DtXlateOpToStdValue(
+       _DtXlateDb        db,
+       const char *      platform,
+       const int         version,
+       const char *      operation,
+       const char *      opValue,
+       char * *          ret_stdValue,
+       void *            ret_reserved);
+
+int _DtXlateGetXlateEnv(
+         _DtXlateDb db,
+         char *     ret_AppExecEnvPlatform,
+         int *      ret_AppExecEnvVersion,
+         int *      ret_XlateCompiledForOSVersion);
+
+/* Non DtXlate functions currently in XlationSvc.c */
+int _DtMBStrrchr (
+    const char *   s1,
+    int            value,
+    int            max_len,
+    const char * * ret_ptr );
+
+int _DtMBStrchr (
+    const char * s1,
+    int          value,
+    int          max_len,
+    const char * * ret_ptr );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*_DtXLATE_XLATION_SVC_I*/
+/********* do not put anything below this line ********/
diff --git a/cde/include/Dt/boolpars.h b/cde/include/Dt/boolpars.h
new file mode 100644 (file)
index 0000000..ef21f96
--- /dev/null
@@ -0,0 +1,137 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 27
+ *
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1996
+ *   All Rights Reserved
+ *   Licensed Materials - Property of IBM
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+#ifndef _boolpars_h
+#define _boolpars_h
+/******************** BOOLPARS.H ********************
+ * $Id: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $
+ * February 1996.
+ * Header for boolpars.c AusText/DtSearch yacc-based boolean query parser.
+ *
+ * FORMAT OF TRUTH TABLE:
+ * Pointer to TRUTHTAB struct is main yacc stack value.
+ * Represents 256 unsigned chars, every possible permutation of 8 (max)
+ * query stems.  The unsigned chars ("permutes") are bit vectors.
+ * Bit #0 (lowest order) is for first word in stemsarray stems[0],
+ * bit #1 is stems[1], etc.
+ * Example: truthtab for query consisting of a single word,
+ *     call it 'A' (assigned bit #0), is the 128 chars 1, 3, 5, 7, ...,
+ *     ie all bitvector permutations with low order bit turned on.
+ * B:      (bit #1) is the 128 chars 2, 3, 6, 7, ..., ie all permutations
+ *        with 2nd bit turned on.
+ * A & B:  Intersection of truth tables: the 64 chars 3, 7, ...,
+ *        all the bit vector permutations they have in common.
+ * A | B:  Union of truth tables:  the 192 permutes 1,2,3, 5,6,7, 9,10,11...
+ * ~B:     Complement of truth table, U - B: the 128 chars 0, 1, 4, 5, ...,
+ *        ie every bitvector permutation NOT in B.
+ * 
+ * The zero permute (all bits zero) refers to the entire
+ * balance of the database containing none of the query stems.
+ * Needless to say searches with the zero permute in their
+ * truth table will take an incredibly long time!
+ *
+ * The 'universal set' U is all 256 possible permutes.
+ * The 'empty set' is indicated by truthtab.pmsz == 0;
+ *
+ * The permutes in a truth table are maintained in
+ * ascending order for ease of comparisons.
+ *
+ * Truth table manipulations require and depend on
+ * DtSrMAX_STEMCOUNT being defined only as 8.
+ *
+ * Newly allocated truth tables are maintained on the 'ttlist'
+ * using the 'next' field.  This is to ensure they are eventually
+ * freed to prevent memory leaks.
+ *
+ * If 'stemno' >= 0 it points to the word in usrblk.stems to which
+ * it applies.  Stemno == -1 means truth table is not directly
+ * associated with a word in usrblk.stems.
+ * 
+ * $Log$
+ * Revision 1.1  1996/03/05  15:52:06  miker
+ * Initial revision
+ *
+ */
+
+#define COLLOC_STEM_FORMAT     "@%02d%02d%d"
+
+/****************************************/
+/*                                     */
+/*             TRUTHTAB                */
+/*                                     */
+/****************************************/
+/* Truth table returned from boolean_parse() */
+typedef struct tttag {
+    struct tttag   *next;
+    int                   stemno;      /* -1 means not assoc with stems[] array */
+    int                   pmsz;        /* number of bytes in permutes array */
+    unsigned char  *permutes;  /* array of bit vector permutations */
+    }  TRUTHTAB;
+
+/****************************************/
+/*                                     */
+/*              Globals                */
+/*                                     */
+/****************************************/
+extern int     qry_has_no_NOTs;
+extern int     qry_is_all_ANDs;
+extern int     parser_invalid_wordcount;
+extern TRUTHTAB        final_truthtab;
+
+/****************************************/
+/*                                     */
+/*         Function Prototypes         */
+/*                                     */
+/****************************************/
+extern void    add_syntax_errmsg (int msgno);
+extern TRUTHTAB        *boolyac_AND (TRUTHTAB *tt1, TRUTHTAB *tt2);
+extern TRUTHTAB        *boolyac_COLLOC (TRUTHTAB *tt1, int colval, TRUTHTAB *tt2);
+extern TRUTHTAB        *boolyac_NOT (TRUTHTAB *tt1);
+extern TRUTHTAB        *boolyac_OR (TRUTHTAB *tt1, TRUTHTAB *tt2);
+extern TRUTHTAB *copy_final_truthtab (TRUTHTAB *tt);
+
+/******************** BOOLPARS.H *********************/
+#endif /* _boolpars_h */
diff --git a/cde/include/Dt/dberr.h b/cde/include/Dt/dberr.h
new file mode 100644 (file)
index 0000000..dedb3f8
--- /dev/null
@@ -0,0 +1,117 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dberr.h /main/5 1996/09/23 21:00:53 cde-ibm $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 27
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1995
+ *   All Rights Reserved
+ *   Licensed Materials - Property of IBM
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+/* $Log$
+ * Revision 2.2  1995/10/24  21:37:15  miker
+ * Add prolog.
+ * */
+/* dberr error/status codes */
+static char *user_error[] = {
+   "database not opened",
+   "invalid set",
+   "invalid record",
+   "invalid database",
+   "invalid field name",
+   "invalid db_address",
+   "no current record",
+   "set has no current owner",
+   "set has no current member",
+   "key value required",
+   "invalid lock value",
+   "record is owner of non-empty set(s)",
+   "record is member of set(s)",
+   "member already owned",
+   "field is a compound key",
+   "record not connected to set",
+   "field is not a valid key",
+   "record not legal owner of set",
+   "record not legal member of set",
+   "error in d_setpages (database open or bad param)",
+   "incompatible dictionary file",
+   "illegal attempt to delete system record",
+   "illegal attempt to lock locked set/record",
+   "attempt to access unlocked set/record",
+   "transaction id not supplied",
+   "transaction already active",
+   "transaction not active",
+   "transaction cannot begin due to locked files",
+   "cannot free locks within a transaction",
+   "too many changed database pages",
+   "cannot update database outside a transaction",
+   "exclusive access required",
+   "write locks not allowed on static files",
+   "unspecified or duplicate user id",
+   "database, path or file name too long",
+   "invalid file number was passed to d_renfile",
+   "field is not an optional key field",
+   "field is not defined in current record type",
+   "record/field has/in a compound key",
+   "invalid record or set number",
+   "record/set not timestamped",
+   "bad DBUSERID (contains non-alphanumeric)",
+   "NetBIOS has not been installed on machine",
+   "wrong number of elements in DBDPATH",
+   "wrong number of elements in DBFPATH",
+   "no current record type",
+   "invalid country table sort string",
+   "database not closed"
+};
+static char *system_error[] = {
+   "no more space on file",
+   "system error",
+   "page fault",
+   "no working file in dio",
+   "unable to allocate sufficient memory",
+   "error opening file",
+   "unable to get access to database taf file",
+   "database taf/log file error",
+   "inconsistent database locks",
+   "file record limit exceeded",
+   "key file inconsistency",
+   "maximum concurrent user limit exceeded",
+   "error seeking in database file",
+   "invalid file specified",
+   "error reading from a database/overflow file",
+   "lock manager synchronization error",
+   "debug check interrupt",
+   "network communications error",
+   "auto-recovery in process",
+   "error writing to a database/overflow file",
+   "no lock manager is installed",
+   "DBUSERID is already being used",
+   "the lock manager is busy"
+};
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dberr.h */
diff --git a/cde/include/Dt/dblock.h b/cde/include/Dt/dblock.h
new file mode 100644 (file)
index 0000000..3614eae
--- /dev/null
@@ -0,0 +1,194 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dblock.h /main/2 1996/05/09 04:02:57 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: FCNINIT
+ *
+ *   ORIGINS: 157
+ *
+ */
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  368 28-Jul-88 RSC Integrate BSD changes into code
+  115 16-Aug-88 RSC Integrate VAX/VMS changes into source code
+  423 09-Sep-88 RSC Change variables to be compatible with MULTI_TASK
+  420 07-Oct-88 RSC Unoptimized use of fl_list (full of bugs)
+  441 09-Dec-88 RSC Modified defn of FCNPID for general lockmgr
+*/
+
+/* Lock Manager/Runtime function interaction */
+
+/* Network Bios Status codes */
+#define N_BUSY         0xff
+#define N_OKAY         0x00
+#define N_TIMEOUT      0x05
+#define N_SESCLOSED    0x0a
+#define N_DUPNAME      0x0d
+#define N_TABFULL      0x11
+#define N_OPENREJ      0x12
+#define N_CALLNAME     0x14
+#define N_NAMEUSED     0x16
+#define N_NAMEDEL      0x17
+#define N_SESABORT     0x18
+#define N_INTFBUSY     0x21
+#define N_COMMANDS     0x22
+
+/* Function/Status codes */
+#define L_RECOVER      -5
+#define L_QUEUEFULL    -4
+#define L_TIMEOUT      -3
+#define L_UNAVAIL      -2
+#define L_SYSERR       -1
+
+#define L_OKAY         0
+
+#define L_DBOPEN       1
+#define L_DBCLOSE      2
+#define L_LOCK         3
+#define L_FREE         4
+#define L_TRCOMMIT     5
+#define L_TREND                6
+#define L_SETTIME      7
+#define L_RECDONE      8
+#define L_LOGIN                9
+#define L_DELETE       10
+
+#ifndef LOGFILELEN
+#define LOGFILELEN 48
+#endif
+
+/* Macros for VMS mailbox usage */
+
+
+typedef struct LM_LOCKREQ_S {
+    INT  fref;
+    INT  type;
+} LM_LOCKREQ;
+
+/* Message packets, Runtime to Lock Manager */
+
+/* Some macro / typdefs to make this file much more readable */
+
+#define PERMISSION 0666
+
+#ifdef GENERAL
+
+/*  Defines for GENERAL LOCKMGR */
+
+#define FCNPID INT fcn;
+#define FCNDEF  INT fcn;
+#define FCNINIT()  0
+typedef char LM_FILEID;
+
+#else                                  /* GENERAL */
+
+
+/*  Defines for UNIX SYS-V */
+
+#define FCNPID  LONG fcn;\
+               int pid;
+#define FCNDEF  LONG fcn;
+#define FCNINIT()  0
+
+/*  Defines for both UNIX SYS-V and BSD */
+
+typedef struct LM_FILEID_S {
+    ino_t  inode;
+    dev_t  device;
+} LM_FILEID;
+
+#endif                                 /* GENERAL */
+
+typedef struct LM_LOGIN_S {
+    FCNPID
+    char dbusrid[80];
+} LM_LOGIN;
+
+typedef struct LM_DBOPEN_S {
+    FCNPID
+    INT  nfiles;
+    INT  type;
+    LM_FILEID fnames[1];
+} LM_DBOPEN;
+
+typedef struct LM_DBCLOSE_S {
+    FCNPID
+    INT  nfiles;
+    INT  frefs[1];
+} LM_DBCLOSE;
+
+typedef struct LM_LOCK_S {
+    FCNPID
+    INT  nfiles;
+    LM_LOCKREQ locks[1];
+} LM_LOCK;
+
+typedef struct LM_RECOVERED_S {
+    FCNPID
+} LM_RECOVERED;
+
+typedef struct LM_FREE_S {
+    FCNPID
+    INT  nfiles;
+    INT  frefs[1];
+} LM_FREE;
+
+typedef struct LM_TRCOMMIT_S {
+    FCNPID
+    char logfile[LOGFILELEN];
+} LM_TRCOMMIT;
+
+typedef struct LM_TREND_S {
+    FCNPID
+} LM_TREND;
+
+typedef struct LM_SETTIME_S {
+    FCNPID
+    INT  secs;
+} LM_SETTIME;
+
+
+/* Message packets, Lock Manager to Runtime */
+
+
+typedef struct LR_DBOPEN_S {
+    FCNDEF
+    INT  status;
+    char logfile[LOGFILELEN];
+    INT  nusers;
+    INT  nfiles;
+    INT  frefs[1];
+} LR_DBOPEN;
+
+typedef struct LR_LOCK_S {
+    FCNDEF
+    INT  status;
+    char logfile[LOGFILELEN];
+} LR_LOCK;
+
+#define DBLOCK_H
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dblock.h */
diff --git a/cde/include/Dt/dbtype.h b/cde/include/Dt/dbtype.h
new file mode 100644 (file)
index 0000000..5c7eea8
--- /dev/null
@@ -0,0 +1,534 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: ALLOC
+ *              BITS
+ *              CALLOC
+ *              DB_ENTER
+ *              DB_REF
+ *              FREE
+ *              LOCK_SET
+ *              MEM_LOCK
+ *              MEM_UNLOCK
+ *              NUM2EXT
+ *              NUM2INT
+ *              ORIGIN
+ *              RETURN
+ *              RN_REF
+ *              TABLE_SIZE
+ *              arraysize
+ *              bytecmp
+ *              bytecpy
+ *              byteset
+ *
+ *   ORIGINS: 27,157
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
+ *   All Rights Reserved
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+/*----------------------------------------------------------------------------
+ $TOG: dbtype.h /main/6 1998/03/19 19:00:38 mgreess $
+   dbtype.h: Standard db_VISTA header file containing:
+   
+      - DDL dictionary type definitions 
+      - Machine dependent constant definitions
+      - Miscellaneous constants used by runtime functions
+      - Virtual memory page table type definitions
+
+   (An #include "vista.h" must precede this include)
+
+   (C) Copyright 1984, 1985, 1986 by Raima Corporation.
+----------------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  101 21-Jun-88 RSC Added rn_type and rn_dba to database table
+  344 06-Jul-88 RSC LOGFILELEN also defined in dblock.h - add ifndef
+  115 18-Jul-88 RSC Integrate VAX VMS changes
+      21-Jul-88 RSC Fix bugaboo in VAX integration
+  368 28-Jul-88 RSC Integrate BSD changes into code
+  310 10-Aug-88 RSC Cleanup function prototype
+      19-Aug-88 RSC Moved rn_type,rn_dba to separate table for compatibility
+                   with db_QUERY and db_REVISE
+  423 10-Sep-88 RSC Add dbpush names for netunix.c
+  423 22-Sep-88 RSC Modify/simplify DB_ENTER macro for Lattice compiler
+  368 23-Sep-88 RSC Change type of pid from INT to int and
+                   corrected defn of MESSAGE
+  423 26-Sep-88 RSC Moved INIT_PAGE_P defn to initial.c
+      11-Oct-88 RSC Fix for ONE_DB compile
+  441 06-Dec-88 RSC Move defn of MESSAGE from netgen.h to here
+  532 06-Jan-89 RSC Fixed defn of DB_ID for ONE_DB
+
+ $Log$
+ * Revision 1.2  1995/10/13  18:29:38  miker
+ * Added #define DtSrFILENMLEN to expand max filename len.
+ * Changed FILENMLEN from 48 to DtSrFILENMLEN (240: 256 - 16).
+ */
+
+/* Compiler dependencies are handled with ifdef macros:
+NOTE: One of these macros should be defined on the compile command,
+for example
+       cc -c -DUNIX fillnew.c
+Failure to do so will produce compilation errors.
+
+   UNIX    = Unix C compiler
+   LAT     = Lattice
+   MSC     = Microsoft
+   AZ      = Aztec
+   C86     = CI C86
+   DS      = DeSmet
+   VMS     = Vax/VMS
+   HHS     = Harris H-series
+*/
+
+
+#define PGHOLD 1
+#define NOPGHOLD 0
+#define PGFREE 1
+#define NOPGFREE 0
+
+#define KEYFIND 0
+#define KEYNEXT 1
+#define KEYPREV 2
+#define KEYFRST 3
+#define KEYLAST 4
+
+/* dictionary attribute flags */
+#define SORTFLD     0x0001 /* field is a set sort field */
+#define STRUCTFLD   0x0002 /* field is sub-field of struct */
+#define UNSIGNEDFLD 0x0004 /* field is unsigned */
+#define STATIC      0x0002 /* file/record is static */
+#define LOCAL       0x0004 /* file/record is local */
+#define COMKEYED    0x0010 /* record/field contains/included in compound key */
+#define TIMESTAMPED 0x0001 /* record/set is timestamped */
+
+#define TRUE 1
+#define FALSE 0
+#define YES 1
+#define NO 0
+
+#define BITS_PER_BYTE 8
+
+/* Number of bits in a "type" */
+#define BITS( type )  (BITS_PER_BYTE * sizeof( type ))
+
+/* Number of elements in a vector */
+#define arraysize(v) (sizeof(v)/sizeof(*(v)))
+
+/* Number of bytes in a disk block */
+#define D_BLKSZ 512     
+
+#define DBD_COMPAT_LEN 6
+#define INT_SIZE sizeof(int) 
+#define SHORT_SIZE sizeof(short)
+#define LONG_SIZE sizeof(long) 
+#ifndef         NO_FLOAT
+#define FLOAT_SIZE sizeof(float)
+#define DOUBLE_SIZE sizeof(double)
+#endif
+#define CHAR_SIZE sizeof(char)
+#define DB_ADDR_SIZE sizeof(LONG)
+#define PGHDRSIZE 4
+#define CTBNAME "vista.ctb"
+
+#define RECHDRSIZE 6
+#define NONE -1
+
+/* FILEMASK, ADDRMASK, FILESHIFT always operate on 4-byte variables */
+#define FILEMASK 0x000000FF
+#define ADDRMASK 0x00FFFFFF
+#define FILESHIFT 24
+
+#define OPTKEYSHIFT 10
+#define OPTKEYMASK 0xFC00
+#define OPTKEYNDX 0x003F
+#define OPTKEY_LIMIT 63
+#define RLBMASK 0x4000
+
+/* The following constants all depend on the size of INT and DB_ADDR */
+
+/* creation timestamp in rec hdr = sizeof(INT) + DB_ADDR_SIZE */
+#define RECCRTIME 6
+/* update timestamp in rec hdr  = RECCRTIME + sizeof(LONG) */
+#define RECUPTIME 10
+
+/*                           member count   prior + next     timestamp (opt) */
+/* max size of set pointer = sizeof(LONG) + 2*DB_ADDR_SIZE + sizeof(ULONG)   */
+#define SETPSIZE   16
+/* Offset to total members in set ptr */
+#define SP_MEMBERS 0  
+/* Offset to first member ptr in set ptr */
+#define SP_FIRST   4  
+/* Offset to last member ptr in set ptr = 2+DB_ADDR_SIZE */
+#define SP_LAST    8  
+/* Size of member pointer = 3*DB_ADDR_SIZE */
+#define MEMPSIZE   12 
+/* Offset to owner ptr in member ptr */
+#define MP_OWNER   0  
+/* Offset to previous member ptr in member ptr = DB_ADDR_SIZE */
+#define MP_PREV    4  
+/* Offset to next member ptr in member ptr = 2*DB_ADDR_SIZE */
+#define MP_NEXT    8  
+
+/* maximum length of a database file name */
+#define DtSrFILENMLEN  240     /* expand max filename len from 48 */
+#ifndef FILENMLEN
+#define FILENMLEN  DtSrFILENMLEN
+#endif
+#ifndef LOGFILELEN
+#define LOGFILELEN 48
+#endif
+/* maximum length of a database name */
+#define DBNMLEN 12
+/* maximum length of a database path */
+#define PATHLEN FILENMLEN-15
+
+#define MAXDIMS 3
+
+#define OPEN 'o'
+#define CLOSED 'c'
+#define DATA 'd'
+#define KEY 'k'
+#define OVERFLOW 'o'
+
+typedef struct FILE_ENTRY_S {
+   char ft_name[FILENMLEN];  /* name of file */
+   INT  ft_desc;             /* file descriptor */
+   char ft_status;           /* 'o'=opened, 'c'=closed */
+   char ft_type;             /* 'd'=data,   'k'=key,   'o'=overflow */
+   INT  ft_slots;            /* record slots per page */
+   INT  ft_slsize;           /* size of record slots in bytes */
+   INT  ft_pgsize;           /* size of page */
+   INT  ft_flags;            /* 0x0002 is set if file is static */
+} FILE_ENTRY;
+
+typedef struct RECORD_ENTRY_S {
+   INT rt_file;      /* file table entry of file containing record */
+   INT rt_len;       /* total length of record */
+   INT rt_data;      /* offset to start of data in record */
+   INT rt_fields;    /* first field def in field_table */
+   INT rt_fdtot;     /* total number of fields in record */
+   INT rt_flags;     /* 0x0001 is set if record is timestamped
+                        0x0002 is set if record is static */
+} RECORD_ENTRY;
+
+
+#define FIRST      'f'
+#define LAST       'l'
+#define ASCENDING  'a'
+#define DESCENDING 'd'
+#define NOORDER    'n'
+#define NEXT       'n'
+typedef struct SET_ENTRY_S {
+   INT st_order;     /* 'f'=first, 'l'=last, 'a'=ascending,
+                        'd'=descending, 'n'=no order */
+   INT st_own_rt;    /* record table entry of owner */
+   INT st_own_ptr;   /* offset to set pointers in record */
+   INT st_members;   /* index of first member record in member table */
+   INT st_memtot;    /* total number of members of set */
+   INT st_flags;     /* 0x0001 is set if record is timestamped */
+} SET_ENTRY;
+
+
+typedef struct MEMBER_ENTRY_S {
+   INT mt_record;    /* record table entry for this member */
+   INT mt_mem_ptr;   /* offset to member ptrs in record */
+   INT mt_sort_fld;  /* sort table entry of first sort field */
+   INT mt_totsf;     /* total number of sort fields */
+} MEMBER_ENTRY;
+
+
+typedef struct SORT_ENTRY_S {
+   INT se_fld;       /* field table entry of sort field */
+   INT se_set;       /* set table entry of sorted set */
+} SORT_ENTRY;
+
+
+#define NOKEY      'n'
+#define DUPLICATES 'd'
+#define UNIQUE     'u'
+#define CHARACTER  'c'
+#define SHORTINT   's'
+#define REGINT     'i'
+#define LONGINT    'l'
+#ifndef         NO_FLOAT
+#define FLOAT      'f'
+#define DOUBLE     'F'
+#endif
+#define DBADDR     'd'
+#define GROUPED    'g'
+#define COMKEY     'k'
+typedef struct FIELD_ENTRY_S {
+   char fd_key;          /* 'n'=none, 'd'=duplicates, 'u'=unique */
+   char fd_type;         /* 'c'=char, 's'=short, 'i'=int, 'l'=long, 'd'=DB_ADDR,
+                            'f' = float, 'D' = double, 'g'=grouped field, 
+                           'k' = compound key */
+   INT fd_len;           /* length of field in bytes */
+   INT fd_dim[MAXDIMS];  /* size of each array dimension */
+   INT fd_keyfile;       /* file_table entry for key file */
+   INT fd_keyno;         /* key prefix number */
+   INT fd_ptr;           /* offset to field in record or 
+                           1st compound key field in key_table */
+   INT fd_rec;           /* record table entry of record containing field */
+   INT fd_flags;         /* 0x0001 is set if field in "by" clause of set spec 
+                            0x0002 is set if field member of struct field 
+                            0x0004 is set if field is unsigned data type
+                            0x0008 is set if field is an optional key */
+} FIELD_ENTRY;
+
+/* compound key table entry declaration */
+typedef struct KEY_ENTRY_S {
+   INT  kt_key;    /* compound key field number */
+   INT  kt_field;  /* field number of included field */
+   INT  kt_ptr;    /* offset to start of field data in key */
+   INT  kt_sort;   /* 'a' = ascending, 'd' = descending */
+} KEY_ENTRY;
+
+/* database table entry declaration */
+typedef struct DB_ENTRY_S {
+   char db_name[DBNMLEN];   /* name of this database */
+   char db_path[PATHLEN];   /* name of path to this database */
+   DB_ADDR sysdba;  /* database address of system record */
+   DB_ADDR curr_dbt_rec;/* this db's current record */
+   INT  Page_size;  /* size of this db's page */
+   INT  Size_ft;    /* size of this db's file_table */
+   INT  ft_offset;  /* offset to start of this db's file_table entries */
+   INT  Size_rt;    /* size of this db's record_table */
+   INT  rt_offset;  /* offset to start of this db's record_table entries */
+   INT  Size_fd;    /* size of this db's field_table */
+   INT  fd_offset;  /* offset to start of this db's field_table entries */
+   INT  Size_st;    /* size of this db's set_table */
+   INT  st_offset;  /* offset to start of this db's set_table entries */
+   INT  Size_mt;    /* size of this db's member_table */
+   INT  mt_offset;  /* offset to start of this db's member_table entries */
+   INT  Size_srt;   /* size of this db's sort_table */
+   INT  srt_offset; /* offset to start of this db's sort_table entries */
+   INT  Size_kt;    /* size of this db's key_table */
+   INT  kt_offset;  /* offset to strary of this db's key table entries */
+   INT  key_offset; /* key prefix offset for this db */
+} DB_ENTRY;
+
+/* Structure containing current record type & address for recfrst/set/next..*/
+typedef struct RN_ENTRY_S {
+   INT rn_type;            /* Last record type supplied to recfrst/recset */
+   DB_ADDR rn_dba;  /* Last db addr computed by recfrst/recset/recnext */
+} RN_ENTRY;
+#define         DB_REF(item)            (db_global.Curr_db_table->item)
+#define  RN_REF(item)           (curr_rn_table->item)
+#define         NUM2INT(num, offset)    ((num) + db_global.Curr_db_table->offset)
+#define         NUM2EXT(num, offset)    ((num) - db_global.Curr_db_table->offset)
+#define         ORIGIN(offset)          (curr_db_table->offset)
+#define         TABLE_SIZE(size)        DB_REF(size)
+
+/* Country code table definition */
+typedef struct CNTRY_TBL_S {
+   unsigned char out_chr;
+   unsigned char sort_as1;
+   unsigned char sort_as2;
+   unsigned char sub_sort;
+} CNTRY_TBL;
+
+/* names lists structure declaration */
+typedef struct OBJNAMES_S {
+    char **recs;
+    char **flds;
+    char **sets;
+} OBJNAMES;
+
+
+/* directory separator character:
+   MS-DOS: '\'
+   UNIX:   '/'
+*/
+#ifdef HHS
+#define DIRCHAR '*'
+#else
+#define DIRCHAR '/'
+#endif
+
+/* The following define aid in the use of a set of routines which use RMS
+   directly to do the i/o to database files. */
+
+#define DB_OPEN open_b
+#define DB_CLOSE close
+#define DB_LSEEK lseek
+#define DB_WRITE write
+#define DB_READ  read
+
+typedef struct {FILE_NO *ptr; LOCK_DESC} FILE_NO_P;
+typedef struct {int *ptr; LOCK_DESC} INT_P;
+typedef struct {struct NODE_PATH_S *ptr; LOCK_DESC} NODE_PATH_P;
+typedef struct {struct KEY_INFO_S *ptr; LOCK_DESC} KEY_INFO_P;
+typedef struct {struct ren_entry *ptr; LOCK_DESC} REN_ENTRY_P;
+typedef struct {struct RN_ENTRY_S *ptr; LOCK_DESC} RN_ENTRY_P;
+typedef struct {struct LOOKUP_ENTRY_S *ptr; LOCK_DESC} LOOKUP_ENTRY_P;
+typedef struct {struct page_entry *ptr; LOCK_DESC} PAGE_ENTRY_P;
+typedef struct {struct DB_ENTRY_S *ptr; LOCK_DESC} DB_ENTRY_P;
+typedef struct {struct FILE_ENTRY_S *ptr; LOCK_DESC} FILE_ENTRY_P;
+typedef struct {struct RECORD_ENTRY_S *ptr; LOCK_DESC} RECORD_ENTRY_P;
+typedef struct {struct SET_ENTRY_S *ptr; LOCK_DESC} SET_ENTRY_P;
+typedef struct {struct MEMBER_ENTRY_S *ptr; LOCK_DESC} MEMBER_ENTRY_P;
+typedef struct {struct SORT_ENTRY_S *ptr; LOCK_DESC} SORT_ENTRY_P;
+typedef struct {struct FIELD_ENTRY_S *ptr; LOCK_DESC} FIELD_ENTRY_P;
+typedef struct {struct KEY_ENTRY_S *ptr; LOCK_DESC} KEY_ENTRY_P;
+typedef struct {struct PGZERO_S *ptr; LOCK_DESC} PGZERO_P;
+typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P;
+typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P;
+typedef struct {LONG *ptr; LOCK_DESC} LONG_P;
+typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P;
+struct sk {
+   INT sk_fld;
+   CHAR_P sk_val;
+} __SK__;
+typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
+
+/* node key search path stack entry: one per level per key field */
+typedef struct NODE_PATH_S {
+   F_ADDR node;       /* node (page) number  */
+   INT    slot;       /* slot number of key */
+} NODE_PATH;
+
+/* index key information: one entry per key field */
+typedef struct KEY_INFO_S {
+   NODE_PATH_P Node_path; /* stack of node #s in search path */
+   INT         level;     /* current level # in node path */
+   INT         max_lvls;  /* maximum possible levels for key */
+   INT         lstat;     /* last key function status */
+   INT         fldno;     /* field number of key */
+   FILE_NO     keyfile;   /* key file containing this key */
+   CHAR_P      Keyval;    /* ptr to last key value */
+   DB_ADDR     dba;       /* db address of last key */
+} KEY_INFO;
+#define node_path Node_path.ptr
+#define keyval Keyval.ptr
+
+/* key slot structure */
+typedef struct key_slot {
+   F_ADDR  child;         /* child node pointer */
+   INT     keyno;         /* key number */
+   char    data[1];       /* start of key data */
+} KEY_SLOT;
+
+typedef union key_type {
+   char kd[256];
+   struct key_slot ks;
+} KEY_TYPE;
+
+/* file rename table entry declarations */
+typedef struct ren_entry {
+   CHAR_P Ren_db_name;
+   CHAR_P File_name;
+   FILE_NO file_no;
+} REN_ENTRY;
+
+#define bytecpy(s1, s2, n) memcpy((char *)(s1), (char *)(s2), (unsigned)(n))
+#define bytecmp(s1, s2, n) memcmp((char *)(s1), (char *)(s2), (unsigned)(n))
+#define byteset(s, c, n) memset((char *)(s), (char)(c), (unsigned)(n))
+
+typedef struct MESSAGE_S {
+#ifdef GENERAL
+    INT mtype;
+    char mtext[1];
+#else                          /* GENERAL */
+    LONG mtype;
+    int  pid;
+    char mtext[1];
+#endif                         /* GENERAL */
+} MESSAGE;
+
+#ifdef COMMA                            /* COMMA */
+#define DB_ID , dbn
+#define NO_DB_ID , -1
+#else                                   /* COMMA */
+#define DB_ID dbn
+#define NO_DB_ID -1
+#define COMMA
+#endif                                  /* COMMA */
+
+#define TASK_ID /**/
+
+#define LOCK_SET(a) /**/
+
+#define TDTL_PARAM
+
+#define DB_ENTER(TDTL_PARAM) if ( startup(TDTL_PARAM) != S_OKAY ) { return( db_status ); } else
+
+#define RETURN(x) return( x )
+#define ALLOC(l, b, v) d_alloc(b)
+#define CALLOC(l, i, s, v) d_calloc(i, s)
+#define MEM_LOCK(cp)   d_memlock((CHAR_P *)(cp))
+#define MEM_UNLOCK(cp)         d_memunlock((CHAR_P *)(cp))
+#define FREE(cp)       d_free((CHAR_P *)(cp))
+
+/* Lock sets are defined in dblfcns.c */
+#define LOCK_NONE      -1
+#define LOCK_ALL       0
+#define LOCK_IO                1
+#define LOCK_NOIO      2
+#define RECORD_IO      3
+#define RECORD_NOIO    4
+#define SET_IO         5
+#define SET_NOIO       6
+
+#ifdef GENERAL
+#define TIMEOUT_DEF    20
+#else
+#define TIMEOUT_DEF    10
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include "trxlog.h"
+#include "dblock.h"
+#include "ll.h"
+#include "dbxtrn.h"
+
+typedef struct LOOKUP_ENTRY_S {
+   FILE_NO file;              /* file table entry number (0..size_ft-1) */
+   F_ADDR  pageno;            /* database page number */
+   short   pg_slot;          /* page table slot pointing to this entry */
+} LOOKUP_ENTRY;
+
+/* virtual page table entry */
+typedef struct page_entry {
+   BOOLEAN recently_used;     /* LRU flag */
+   BOOLEAN modified;          /* TRUE if page has been modified */
+   INT     holdcnt;           /* "hold-in-cache" counter */
+   short   lu_slot;           /* lookup table slot pointing to this entry */
+   CHAR_P Buff;             /* page buffer pointer */
+} PAGE_ENTRY;
+#define buff Buff.ptr
+
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <time.h>
+#include "proto.h"
+
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dbtype.h */
diff --git a/cde/include/Dt/dbxtrn.h b/cde/include/Dt/dbxtrn.h
new file mode 100644 (file)
index 0000000..8ab0411
--- /dev/null
@@ -0,0 +1,208 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 157
+ *
+ */
+/*----------------------------------------------------------------------------
+   dbxtrn.h: db_VISTA external data header file
+
+   (This file is included by dbtype.h)
+
+   (C) Copyright 1984 by Raima Corporation.
+----------------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  423 22-Sep-88 RSC Cleanup file to compile under Lattice
+  368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h
+  439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main
+  440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM
+  532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB
+      05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking
+
+*/
+
+/* Database Dictionary Tables */
+extern INT largest_page;
+
+extern INT old_size_ft;
+extern INT old_size_fd;
+extern INT old_size_st;
+extern INT old_size_mt;
+extern INT old_size_srt;
+extern INT old_size_kt;
+extern INT old_size_rt;
+extern INT old_no_of_dbs;
+
+extern char *crloc;          /* location in page buffer of current record */
+
+typedef struct TASK_S {
+   /* The following global variables came from dblfcns.c */
+   int Dbopen;                /* dbopen = 0 */
+   char Dbuserid[FILENMLEN];  /* dbuserid = "" */
+   char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */
+   char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */
+   const char *Trans_id;  /* trans_id = NULL */
+   char Dblog[FILENMLEN];     /* dblog = "" */
+   /* The following global variables came from dio.c */
+   BOOLEAN Cache_ovfl;        /* cache_ovfl = FALSE */
+   PGZERO_P Pgzero;          /* database file page 0 array */
+   /* The following global variables came from keyfcns.c */
+   int No_of_keys;            /* no_of_keys = 0 */
+   KEY_INFO_P Key_info;       /* key_info = NULL */
+   KEY_TYPE Key_type;
+   /* The following global variables came from netwdos.c */
+   int Net_status;
+   LONG Last_mtype;
+   /* The following global variables came from options.c */
+   int Dboptions;             /* ifdef NO_TRANS: dboptions =
+                                                       DCHAINUSE | TRLOGGING
+                                else:           dboptions = DCHAINUSE */
+   /* The following global variables came from ovfcns.c */
+   long Ov_initaddr;          /* ov_initaddr = 0L */
+   long Ov_rootaddr;          /* ov_rootaddr = 0L */
+   long Ov_nextaddr;          /* ov_nextaddr = 0L */
+   RI_ENTRY_P Root_ix;
+   /* The following global variables came from renfiles.c */
+   llist Ren_list;           /* Ren_list = LLIST_INIT() */
+   /* The following global variables came from inittab.h */
+   INT Page_size;
+   int     Curr_db;
+   DB_ENTRY *Curr_db_table;
+   DB_ADDR Curr_rec;          /* current record address */
+   DB_ADDR_P Curr_own;        /* current set owners array */
+   DB_ADDR_P Curr_mem;        /* current set members array */
+   FILE_NO Ov_file;
+   BOOLEAN Setdb_on;
+   INT No_of_dbs;
+   RN_ENTRY_P Rn_table;
+   RN_ENTRY *Curr_rn_table;
+   DB_ENTRY_P Db_table;
+   FILE_ENTRY_P File_table;
+   INT Size_ft;
+   RECORD_ENTRY_P Record_table;
+   INT Size_rt;
+   SET_ENTRY_P Set_table;
+   INT Size_st;
+   MEMBER_ENTRY_P Member_table;
+   INT Size_mt;
+   SORT_ENTRY_P Sort_table;
+   INT Size_srt;
+   FIELD_ENTRY_P Field_table;
+   INT Size_fd;
+   KEY_ENTRY_P Key_table;
+   INT Size_kt;
+   int Lock_lvl;
+#define LOCK_STACK_SIZE                10
+   int Lock_stack[LOCK_STACK_SIZE];
+   CNTRY_TBL_P country_tbl;
+   int ctbl_activ;
+   char ctbpath[FILENMLEN];
+   llist Sk_list;
+} TASK;
+
+/* Dynamically allocated global variables */
+#define app_locks db_global.App_locks.ptr
+#define excl_locks db_global.Excl_locks.ptr
+#define kept_locks db_global.Kept_locks.ptr
+#define rec_locks db_global.Rec_locks.ptr
+#define set_locks db_global.Set_locks.ptr
+#define key_locks db_global.Key_locks.ptr
+#define lock_pkt db_global.Lock_pkt.ptr
+#define free_pkt db_global.Free_pkt.ptr
+#define file_refs db_global.File_refs.ptr
+#define key_info db_global.Key_info.ptr
+#define curr_own db_global.Curr_own.ptr
+#define curr_mem db_global.Curr_mem.ptr
+#define rn_table db_global.Rn_table.ptr
+#define db_table db_global.Db_table.ptr
+#define file_table db_global.File_table.ptr
+#define record_table db_global.Record_table.ptr
+#define set_table db_global.Set_table.ptr
+#define member_table db_global.Member_table.ptr
+#define sort_table db_global.Sort_table.ptr
+#define field_table db_global.Field_table.ptr
+#define key_table db_global.Key_table.ptr
+#define pgzero db_global.Pgzero.ptr
+#define root_ix db_global.Root_ix.ptr
+/* Used in DIO.C and OVFCNS.C */
+#define ixpg_table Ixpg_table.ptr
+#define dbpgbuff Dbpgbuff.ptr
+#define ix_lookup Ix_lookup.ptr
+
+/* Non-dynamically allocated global variables */
+#define lock_tries db_global.Lock_tries
+#define dbwait_time db_global.Dbwait_time
+#define db_timeout db_global.Db_timeout
+#define dbopen db_global.Dbopen
+#define db_lockmgr db_global.Db_lockmgr
+#define dbuserid db_global.Dbuserid
+#define dbdpath db_global.Dbdpath
+#define dbfpath db_global.Dbfpath
+#define trans_id db_global.Trans_id
+#define dblog db_global.Dblog
+#define keyl_cnt db_global.Keyl_cnt
+#define lp_size db_global.Lp_size
+#define fp_size db_global.Fp_size
+#define session_active db_global.Session_active
+#define cache_ovfl db_global.Cache_ovfl
+#define no_of_keys db_global.No_of_keys
+#define key_type db_global.Key_type
+#define net_status db_global.Net_status
+#define last_mtype db_global.Last_mtype
+#define dboptions db_global.Dboptions
+#define ov_initaddr db_global.Ov_initaddr
+#define ov_rootaddr db_global.Ov_rootaddr
+#define ov_nextaddr db_global.Ov_nextaddr
+#define page_size db_global.Page_size
+#define curr_db db_global.Curr_db
+#define curr_db_table db_global.Curr_db_table
+#define curr_rec db_global.Curr_rec
+#define ov_file db_global.Ov_file
+#define setdb_on db_global.Setdb_on
+#define no_of_dbs db_global.No_of_dbs
+#define curr_rn_table db_global.Curr_rn_table
+#define size_ft db_global.Size_ft
+#define size_rt db_global.Size_rt
+#define size_st db_global.Size_st
+#define size_mt db_global.Size_mt
+#define size_srt db_global.Size_srt
+#define size_fd db_global.Size_fd
+#define size_kt db_global.Size_kt
+#define lock_lvl db_global.Lock_lvl
+#define lock_stack db_global.Lock_stack
+#define ren_list db_global.Ren_list
+#define sk_list db_global.Sk_list
+
+extern TASK db_global;
+extern int db_glob_init;
+
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */
diff --git a/cde/include/Dt/dproto.h b/cde/include/Dt/dproto.h
new file mode 100644 (file)
index 0000000..2baa462
--- /dev/null
@@ -0,0 +1,291 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dproto.h /main/2 1996/05/09 04:05:13 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: Pi
+ *             d_alloc
+ *             d_calloc
+ *             d_cmstat
+ *             d_cmtype
+ *             d_connect
+ *             d_costat
+ *             d_cotype
+ *             d_crget
+ *             d_crread
+ *             d_crset
+ *             d_crtype
+ *             d_crwrite
+ *             d_csmget
+ *             d_csmread
+ *             d_csmset
+ *             d_csmwrite
+ *             d_csoget
+ *             d_csoread
+ *             d_csoset
+ *             d_csowrite
+ *             d_csstat
+ *             d_ctbpath
+ *             d_ctscm
+ *             d_ctsco
+ *             d_ctscr
+ *             d_dbdpath
+ *             d_dbfpath
+ *             d_dblog
+ *             d_dbtaf
+ *             d_dbuserid
+ *             d_decode_dba
+ *             d_destroy
+ *             d_discon
+ *             d_encode_dba
+ *             d_fillnew
+ *             d_findco
+ *             d_findfm
+ *             d_findlm
+ *             d_findnm
+ *             d_findpm
+ *             d_free
+ *             d_gtscm
+ *             d_gtsco
+ *             d_gtscr
+ *             d_gtscs
+ *             d_initfile
+ *             d_ismember
+ *             d_isowner
+ *             d_keydel
+ *             d_keyexist
+ *             d_keyfind
+ *             d_keyfree
+ *             d_keyfrst
+ *             d_keylast
+ *             d_keylock
+ *             d_keylstat
+ *             d_keynext
+ *             d_keyprev
+ *             d_keyread
+ *             d_keystore
+ *             d_lock
+ *             d_makenew
+ *             d_mapchar
+ *             d_members
+ *             d_memlock
+ *             d_memlock_group
+ *             d_memunlock
+ *             d_memunlock_group
+ *             d_off_opt
+ *             d_on_opt
+ *             d_open
+ *             d_rdcurr
+ *             d_recfree
+ *             d_recfrst
+ *             d_reclast
+ *             d_reclock
+ *             d_reclstat
+ *             d_recover
+ *             d_recread
+ *             d_recset
+ *             d_recstat
+ *             d_recwrite
+ *             d_renfile
+ *             d_rerdcurr
+ *             d_retries
+ *             d_set_dberr
+ *             d_setdb
+ *             d_setfiles
+ *             d_setfree
+ *             d_setkey
+ *             d_setlock
+ *             d_setlstat
+ *             d_setmm
+ *             d_setmo
+ *             d_setmr
+ *             d_setom
+ *             d_setoo
+ *             d_setor
+ *             d_setpages
+ *             d_setrm
+ *             d_setro
+ *             d_stscm
+ *             d_stsco
+ *             d_stscr
+ *             d_stscs
+ *             d_timeout
+ *             d_trbegin
+ *             d_trlog
+ *             d_utscm
+ *             d_utsco
+ *             d_utscr
+ *             d_utscs
+ *             d_wrcurr
+ *             dberr
+ *             dt_closetask
+ *             dt_opentask
+ *
+ *   ORIGINS: 157
+ *
+ */
+/*----------------------------------------------------------------------------
+   dproto.h: db_VISTA (user) function declaration header file
+
+   (C) Copyright 1988 by Raima Corporation.
+----------------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
+*/
+
+
+int d_setfiles(int);                           /* dio.c */
+int d_setpages(int, int);                      /* dio.c */
+int d_trbound(void);                           /* trlog.c */
+int d_trlog(int, int, const char *, int); 
+                                                               /* trlog.c */
+int d_trmark(void);                            /* trlog.c */
+int d_tron(void);                                      /* trlog.c */
+int d_troff(void);                                     /* trlog.c */
+int d_decode_dba(DB_ADDR, int *, long *); 
+                                                               /* dbacode.c */
+int d_encode_dba(int, long, DB_ADDR *); 
+                                                               /* dbacode.c */
+
+#define d_memlock(p)           /**/
+#define d_memlock_group(lg)    S_OKAY
+#define d_memunlock(p)         /**/
+#define d_memunlock_group(lg)  /**/
+char * d_alloc(unsigned);              /* alloc.c */
+char * d_calloc(unsigned, unsigned);   /* alloc.c */
+void d_free(CHAR_P *);                 /* alloc.c */
+
+#define dt_opentask(a) S_OKAY
+#define dt_closetask(a) S_OKAY
+
+int d_close(void);                                     /* dblfcns.c */
+int d_cmstat(int, int);                        /* cmstat.c */
+int d_cmtype(int, int *, int);         /* cmtype.c */
+int d_connect(int, int);                       /* connect.c */
+int d_cotype(int, int *, int);         /* cotype.c */
+int d_crget(DB_ADDR *, int);           /* crget.c */
+int d_crread(long, char *, int);       /* crread.c */
+int d_crset(DB_ADDR *, int);           /* crset.c */
+int d_crtype(int *, int);              /* crtype.c */
+int d_crwrite(long, char *, int);      /* crwrite.c */
+int d_csmget(int, DB_ADDR *, int);     /* csmget.c */
+int d_csmread(int, long, char *, int); 
+                                                               /* csmread.c */
+int d_csmset(int, DB_ADDR *, int);     /* csmset.c */
+int d_csmwrite(int, long, const char *, int); 
+                                                               /* csmwrite.c */
+int d_csoget(int, DB_ADDR *, int);     /* csoget.c */
+int d_csoread(int, long, char *, int); 
+                                                               /* csoread.c */
+int d_csoset(int, DB_ADDR *, int);     /* csoset.c */
+int d_csowrite(int, long, const char *, int); 
+                                                               /* csowrite.c */
+int d_ctbpath(const char *);           /* pathfcns.c */
+int d_dbdpath(const char *);           /* dbdpath.c */
+int d_dbfpath(const char *);           /* dbfpath.c */
+int d_dblog(const char *);             /* dblog.c */
+int d_dbtaf(const char *);             /* dbtaf.c */
+int d_dbuserid(const char *);          /* dbuserid.c */
+int d_delete(int);                             /* delete.c */
+int d_disdel(int);                             /* disdel.c */
+int d_recnext(int);                            /* recnext.c */
+int d_recprev(int);                            /* recprev.c */
+int d_destroy(const char *);           /* destroy.c */
+int d_discon(int, int);                        /* discon.c */
+int d_fillnew(int, const char *, int); /* fillnew.c */
+int d_findco(int, int);                        /* findco.c */
+int d_findfm(int, int);                        /* findfm.c */
+int d_findlm(int, int);                        /* findlm.c */
+int d_findnm(int, int);                        /* findnm.c */
+int d_findpm(int, int);                        /* findpm.c */
+int d_freeall(void);                           /* dblfcns.c */
+int d_initialize(int);                         /* initial.c */
+int d_initfile(FILE_NO, int);                  /* initial.c */
+int d_ismember(int, int);                      /* ismember.c */
+int d_isowner(int, int);                       /* isowner.c */
+int d_keydel(long, int);                       /* keydel.c */
+int d_keyexist(long, int);                     /* keyexist.c */
+int d_keyfind(long, const char *, int); 
+                                                               /* keyfind.c */
+int d_keyfree(long, int);                      /* dblfcns.c */
+int d_keyfrst(long, int);                      /* keyfrst.c */
+int d_keylast(long, int);                      /* keylast.c */
+int d_keylock(long, char *, int);      /* dblfcns.c */
+int d_keylstat(long, char *, int);     /* dblfcns.c */
+int d_keynext(long, int);                      /* keynext.c */
+int d_keyprev(long, int);                      /* keyprev.c */
+int d_keyread(char *);                 /* keyfcns.c */
+int d_keystore(long, int);                     /* keystore.c */
+int d_lock(int, LOCK_REQUEST *, int); /* dblfcns.c */
+int d_makenew(int, int);                       /* makenew.c */
+int d_mapchar(unsigned char, unsigned char, const char *, unsigned char);  /* mapchar.c */
+int d_members(int, LONG *, int);       /* members.c */
+int d_off_opt(int);                            /* options.c */
+int d_on_opt(int);                             /* options.c */
+int d_open(const char *, const char *); 
+                                                               /* dblfcns.c */
+int d_rerdcurr(DB_ADDR **);            /* rwcurr.c */
+int d_rdcurr(DB_ADDR **, int *);       /* rwcurr.c */
+int d_wrcurr(DB_ADDR *);                       /* rwcurr.c */
+int d_recfree(int, int);                       /* dblfcns.c */
+int d_recfrst(int, int);                       /* recfrst.c */
+int d_reclast(int, int);                       /* reclast.c */
+int d_reclock(int, char *, int);       /* dblfcns.c */
+int d_reclstat(int, char *, int);      /* dblfcns.c */
+int d_recover(const char *);           /* recover.c */
+int d_recread(char *, int);            /* recread.c */
+int d_recset(int, int);                        /* recset.c */
+int d_recwrite(const char *, int);     /* recwrite.c */
+int d_renfile(const char *dbn, FILE_NO fno, const char *fnm);          /* renfile.c */
+int d_retries(int);                            /* dblfcns.c */
+int d_rlbclr(void);                            /* dblfcns.c */
+int d_rlbset(void);                            /* dblfcns.c */
+int d_rlbtst(void);                            /* dblfcns.c */
+int d_set_dberr(FARPROC);                      /* dberr.c */
+int d_setdb(int);                              /* setdb.c */
+int d_setfree(int, int);                       /* dblfcns.c */
+int d_setkey(long, const char *, int); /* makenew.c */
+int d_setlock(int, char *, int);       /* dblfcns.c */
+int d_setlstat(int, char *, int);      /* dblfcns.c */
+int d_setmm(int, int, int);            /* setmm.c */
+int d_setmo(int, int, int);            /* setmo.c */
+int d_setmr(int, int);                 /* setmr.c */
+int d_setom(int, int, int);            /* setom.c */
+int d_setoo(int, int, int);            /* setoo.c */
+int d_setor(int, int);                 /* setor.c */
+int d_setrm(int, int);                 /* setrm.c */
+int d_setro(int, int);                 /* setro.c */
+int d_timeout(int);                            /* dblfcns.c */
+int d_trabort(void);                           /* dblfcns.c */
+int d_trbegin(const char *);           /* dblfcns.c */
+int d_trend(void);                                     /* dblfcns.c */
+
+int dberr(int);                        /* dberr.c */
+
+#define D_FUNCTIONS_H
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */
diff --git a/cde/include/Dt/dtcover.h b/cde/include/Dt/dtcover.h
new file mode 100644 (file)
index 0000000..f28a25a
--- /dev/null
@@ -0,0 +1,140 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dtcover.h /main/2 1996/05/09 04:05:27 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 157
+ *
+ */
+/*----------------------------------------------------------------------------
+   dtcover.h: converts d_* calls to dt_* for MULTI_TASKing
+
+   (C) Copyright 1988 by Raima Corporation.
+----------------------------------------------------------------------------*/
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
+*/
+
+
+#define d_close                        dt_close
+#define d_cmstat               dt_cmstat
+#define d_cmtype               dt_cmtype
+#define d_connect              dt_connect
+#define d_cotype               dt_cotype
+#define d_crget                        dt_crget
+#define d_crread               dt_crread
+#define d_crset                        dt_crset
+#define d_crtype               dt_crtype
+#define d_crwrite              dt_crwrite
+#define d_csmget               dt_csmget
+#define d_csmread              dt_csmread
+#define d_csmset               dt_csmset
+#define d_csmwrite             dt_csmwrite
+#define d_csoget               dt_csoget
+#define d_csoread              dt_csoread
+#define d_csoset               dt_csoset
+#define d_csowrite             dt_csowrite
+#define d_ctbpath              dt_ctbpath
+#define d_dbdpath              dt_dbdpath
+#define d_dbfpath              dt_dbfpath
+#define d_dblog                        dt_dblog
+#define d_dbtaf                        dt_dbtaf
+#define d_dbuserid             dt_dbuserid
+#define d_delete               dt_delete
+#define d_disdel               dt_disdel
+#define d_recnext              dt_recnext
+#define d_recprev              dt_recprev
+#define d_destroy              dt_destroy
+#define d_discon               dt_discon
+#define d_fillnew              dt_fillnew
+#define d_findco               dt_findco
+#define d_findfm               dt_findfm
+#define d_findlm               dt_findlm
+#define d_findnm               dt_findnm
+#define d_findpm               dt_findpm
+#define d_freeall              dt_freeall
+#define d_initialize           dt_initialize
+#define d_initfile             dt_initfile
+#define d_ismember             dt_ismember
+#define d_isowner              dt_isowner
+#define d_keydel               dt_keydel
+#define d_keyexist             dt_keyexist
+#define d_keyfind              dt_keyfind
+#define d_keyfree              dt_keyfree
+#define d_keyfrst              dt_keyfrst
+#define d_keylast              dt_keylast
+#define d_keylock              dt_keylock
+#define d_keylstat             dt_keylstat
+#define d_keynext              dt_keynext
+#define d_keyprev              dt_keyprev
+#define d_keyread              dt_keyread
+#define d_keystore             dt_keystore
+#define d_lock                 dt_lock
+#define d_makenew              dt_makenew
+#define d_mapchar              dt_mapchar
+#define d_members              dt_members
+#define d_off_opt              dt_off_opt
+#define d_on_opt               dt_on_opt
+#define d_open                 dt_open
+#define d_rdcurr               dt_rdcurr
+#define d_rerdcurr             dt_rerdcurr
+#define d_recfree              dt_recfree
+#define d_recfrst              dt_recfrst
+#define d_reclast              dt_reclast
+#define d_reclock              dt_reclock
+#define d_reclstat             dt_reclstat
+#define d_recover              dt_recover
+#define d_recread              dt_recread
+#define d_recset               dt_recset
+#define d_recwrite             dt_recwrite
+#define d_renfile              dt_renfile
+#define d_retries              dt_retries
+#define d_rlbclr               dt_rlbclr
+#define d_rlbset               dt_rlbset
+#define d_rlbtst               dt_rlbtst
+#define d_set_dberr            dt_set_dberr
+#define d_setdb                        dt_setdb
+#define d_setfree              dt_setfree
+#define d_setkey               dt_setkey
+#define d_setlock              dt_setlock
+#define d_setlstat             dt_setlstat
+#define d_setmm                        dt_setmm
+#define d_setmo                        dt_setmo
+#define d_setmr                        dt_setmr
+#define d_setom                        dt_setom
+#define d_setoo                        dt_setoo
+#define d_setor                        dt_setor
+#define d_setrm                        dt_setrm
+#define d_setro                        dt_setro
+#define d_timeout              dt_timeout
+#define d_trabort              dt_trabort
+#define d_trbegin              dt_trbegin
+#define d_trend                        dt_trend
+#define d_wrcurr               dt_wrcurr
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dtcover.h */
diff --git a/cde/include/Dt/dtpdmd.h b/cde/include/Dt/dtpdmd.h
new file mode 100644 (file)
index 0000000..360eb4f
--- /dev/null
@@ -0,0 +1,82 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */
+/******************************************************************************
+ ******************************************************************************
+ **
+ ** File:         dtpdmd.h
+ **
+ ** Description:  Header file for the "dtpdmd/dtpdm protocol" which
+ **               consists of a standard command line dtpdmd->dtpdm
+ **               and starndard exit codes dtpdm->dtpdmd.
+ **
+ **               Other dtpdmd header stuff lives here too.
+ **
+ ** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved.
+ **
+ ******************************************************************************
+ *****************************************************************************/
+
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+/******************************************************************************
+ *
+ * Standard command line parameters for any PDM which
+ * will become a child of dtpdmd via fork/exec.
+ *
+ * generic_pdm [dt-pdm-command options] [dtpdmd options]
+ *
+ * where [dt-pdm-command options] is:
+ *    - any additional options that were specified along with
+ *      the dt-pdm-command attribute from the X Print Server.
+ *
+ * where [dtpdmd options] is any of:
+ *    -display  dpy     Specified the display connection to the Video X-Server.
+ *    -window   vwid    Specified the window id on dpy.
+ *    -pdisplay pdpy    Specified the display connection to the Print X-Server.
+ *    -pcontext pcid    Specified the print context id on pdpy.
+ */
+
+/******************************************************************************
+ *
+ * Standard exit() codes for any PDM which is a child of dtpdmd.
+ */
+#define PDM_EXIT_NONE           None
+#define PDM_EXIT_OK             191     /* "OK" */
+#define PDM_EXIT_CANCEL         192     /* "CANCEL" */
+#define PDM_EXIT_VXAUTH         193     /* no print display authorization */
+#define PDM_EXIT_PXAUTH         194     /* no video display authorization */
+#define PDM_EXIT_ERROR          195     /* all other error reasons */
+
+/*
+ * Misc information.
+ */
+#define DEFAULT_PDM_EXECUTABLE  "dtpdm"
+
diff --git a/cde/include/Dt/inittab.h b/cde/include/Dt/inittab.h
new file mode 100644 (file)
index 0000000..f1aa1eb
--- /dev/null
@@ -0,0 +1,86 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: sizeof
+ *
+ *   ORIGINS: 27,157
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
+ *   All Rights Reserved
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+/*----------------------------------------------------------------------------
+ $XConsortium: inittab.h /main/5 1996/11/25 18:48:42 drk $
+   inittab.h: db_VISTA header file containing:
+   
+      - Compatible dictionary file versions
+
+   This file is intended to be included in inittab.c only.  There are
+   multiple versions of inittab.c which share this header.
+
+   (An #include "vista.h" must precede this include)
+
+   (C) Copyright 1987 by Raima Corporation.
+----------------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  101 21-Jun-88 RSC Added decl for rn_type and rn_dba for ONE_DB
+      08-Aug-88 RTK Moved rn_dba and rn_type to vista.h - needed in rec*.c
+      18-Aug-88 RSC Moved rn_type/dba to separate table, add curr_rn_table..
+
+ $Log$
+ * Revision 1.2  1995/10/13  18:36:46  miker
+ * Changed compat_dbd[] from hardcoded str to dbd_VERSION.
+ * (dbd_VERSION in vista.h changed bcs expanded max file name length.)
+ *
+*/
+
+
+int db_status = 0;
+
+/* database dictionary tables */
+INT largest_page = 0;
+
+char *crloc = NULL;
+
+INT old_size_ft = 0;
+INT old_size_fd = 0;
+INT old_size_st = 0;
+INT old_size_mt = 0;
+INT old_size_srt = 0;
+INT old_size_kt = 0;
+INT old_size_rt = 0;
+INT old_no_of_dbs = 0;
+
+/* Compatible dictionary versions */
+char *compat_dbd[] = {
+   dbd_VERSION
+};
+int size_compat = sizeof(compat_dbd)/sizeof(*compat_dbd);
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin inittab.h */
diff --git a/cde/include/Dt/ll.h b/cde/include/Dt/ll.h
new file mode 100644 (file)
index 0000000..49e71c4
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ll.h /main/2 1996/05/09 04:11:29 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: LLIST_INIT
+ *             LL_ELEM_INIT
+ *             ll_access
+ *             ll_append
+ *             ll_deaccess
+ *             ll_first
+ *             ll_free
+ *             ll_next
+ *             ll_prepend
+ *
+ *   ORIGINS: 157
+ *
+ */
+/* The functions in this file are defined in alloc.c */
+
+typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P;
+
+typedef struct ll_elem {
+   LL_P next;
+   CHAR_P data;
+} ll_elem;
+
+#define LL_ELEM_INIT() { POINTER_INIT(), POINTER_INIT() }
+
+typedef struct {
+   LL_P head;
+   LL_P tail;
+   LL_P *curr;
+} llist;
+
+#define LLIST_INIT()    { POINTER_INIT(), POINTER_INIT(), NULL }
+
+BOOLEAN ll_access(P1(llist *));
+int ll_append(P1(llist *) Pi(CHAR_P *));
+#define ll_deaccess(ll)            /**/
+CHAR_P *ll_first(P1(llist *));
+void ll_free(P1(llist *));
+CHAR_P *ll_next(P1(llist *));
+int ll_prepend(P1(llist *) Pi(CHAR_P *));
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */
diff --git a/cde/include/Dt/ncb.h b/cde/include/Dt/ncb.h
new file mode 100644 (file)
index 0000000..e985ae8
--- /dev/null
@@ -0,0 +1,125 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ncb.h /main/2 1996/05/09 04:12:28 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: none
+ *
+ *   ORIGINS: 157
+ *
+ */
+#define NETNAME_LEN 16
+#ifndef NULL
+#define NULL (char *)0
+#endif
+
+#define NETBIOS_INT 0x5c
+
+#define ADDNAME 0x30
+#define DELNAME 0x31
+#define RESET   0x32
+#define STATUS  0x33
+#define SESSTAT 0x34
+#define CALL    0x10
+#define LISTEN  0x11
+#define HANGUP  0x12
+#define SEND    0x14
+#define RECEIVE 0x15
+#define ADDNAIT 0xB0
+#define DELNAIT 0xB1
+#define CALNAIT 0x90
+#define LISNAIT 0x91
+#define HANNAIT 0x92
+#define SENNAIT 0x94
+#define RECNAIT 0x95
+#define ARENAIT 0x96
+#define ANY     0xFF
+#define PENDING 0xFFFF
+#define NCBSIZE 64
+
+#ifdef TURBO
+#ifdef __SMALL__
+#define SMALL_DATA
+#endif
+#ifdef __MEDIUM__
+#define SMALL_DATA
+#endif
+#endif
+
+#ifdef MSC
+#ifdef    M_I86SM
+#define SMALL_DATA
+#endif
+#ifdef    M_I86MM
+#define SMALL_DATA
+#endif
+#endif
+
+#ifdef LAT
+#ifdef SPTR
+#define SMALL_DATA
+#endif
+#endif
+
+/***** NCB Commands parameter block *****/
+typedef struct {
+       char  command;  /* NETBIOS Command */
+       char  retcode;  /* Return value (some enumerated below) */
+       char  lsn;      /* Local session number */
+       char  num;      /* Name number */
+       char *buffer_off; /* Message buffer offset */
+#ifdef SMALL_DATA
+       int   buffer_seg; /* Message buffer segment */
+#endif
+       int   length;   /* Length of message buffer */
+       char  callname[NETNAME_LEN]; /* Name of user being called */
+       char  name[NETNAME_LEN];     /* My name */
+       char  rto;      /* Receive timeout (500ms units) */
+       char  sto;      /* Send timeout (500ms units) */
+       char *post_off; /* Post function offset */
+#ifdef SMALL_DATA
+       int   post_seg; /* Post function segment */
+#endif
+       char  lana_num; /* Local area network adapter number (use 0) */
+       char  cmd_cplt; /* Command complete return value, used when posting */
+       char  reserve[14]; /* reserved for Net BIOS */
+} NCB;
+
+typedef struct {
+    char rep_sess;
+    char name_sess;
+    char gram;
+    char rcvany;
+    struct {
+       char lsn;
+       char state_sess;
+       char loc_name[16];
+       char rem_name[16];
+       char rcvs;
+       char sends;
+    } s[32];
+} SESSION;
+
+#define NCB_H
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ncb.h */
diff --git a/cde/include/Dt/proto.h b/cde/include/Dt/proto.h
new file mode 100644 (file)
index 0000000..1148aaa
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: ADDRcmp
+ *             ALLOC_TABLE
+ *             INTcmp
+ *             Pi
+ *             alloc_table
+ *             check_dba
+ *             close
+ *             con_dbd
+ *             con_dbf
+ *             dbn_check
+ *             dio_close
+ *             dio_clrfile
+ *             dio_findpg
+ *             dio_get
+ *             dio_open
+ *             dio_out
+ *             dio_pzalloc
+ *             dio_pzdel
+ *             dio_pzgetts
+ *             dio_pznext
+ *             dio_pzread
+ *             dio_pzsetts
+ *             dio_read
+ *             dio_release
+ *             dio_rrlb
+ *             dio_setdef
+ *             dio_touch
+ *             dio_write
+ *             dio_wrlb
+ *             exit
+ *             fldcmp
+ *             free
+ *             get_element
+ *             getenv
+ *             initdbt
+ *             key_bldcom
+ *             key_boundary
+ *             key_cmpcpy
+ *             key_delete
+ *             key_init
+ *             key_insert
+ *             key_locpos
+ *             key_reset
+ *             key_scan
+ *             locking
+ *             lseek
+ *             memcmp
+ *             memcpy
+ *             memset
+ *             nfld_check
+ *             nrec_check
+ *             nset_check
+ *             null_dba
+ *             nw_addnm
+ *             nw_call
+ *             nw_cleanup
+ *             nw_delnm
+ *             nw_hangup
+ *             nw_rcvmsg
+ *             nw_reset
+ *             nw_send
+ *             o_fileinit
+ *             o_pages
+ *             o_pzwrite
+ *             o_search
+ *             o_write
+ *             open_b
+ *             r_chkfld
+ *             r_clropt
+ *             r_delrec
+ *             r_gfld
+ *             r_gmem
+ *             r_gset
+ *             r_pfld
+ *             r_pmem
+ *             r_pset
+ *             r_setopt
+ *             r_smem
+ *             r_tstopt
+ *             read
+ *             startup
+ *             strcat
+ *             strchr
+ *             strcmp
+ *             strcpy
+ *             strlen
+ *             strncmp
+ *             strncpy
+ *             strrchr
+ *             taf_add
+ *             taf_del
+ *             task_switch
+ *             taskinit
+ *             time
+ *             unlink
+ *             write
+ *
+ *   ORIGINS: 157
+ *
+ */
+/*----------------------------------------------------------------------------
+   proto.h: db_VISTA function declaration header file
+
+   (This file must be included after dbtype.h)
+
+   (C) Copyright 1988 by Raima Corporation.
+----------------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+      03-AUG-88 RTK Added internal MULTI_TASKing function prototypes
+  310 10-Aug-88 RSC Cleanup of function prototypes
+
+*/
+
+/* From dberr.c: */
+void dbautorec(void);
+
+/* From dblfcns.c: */
+int taskinit(TASK *);
+int initdbt(const char *);
+int alloc_table(CHAR_P *, unsigned, unsigned);
+#define ALLOC_TABLE(t, n, o, v)        alloc_table((CHAR_P *)(t), n, o)
+void termfree(void);
+
+/* From dio.c: */
+int dio_open(FILE_NO);
+int dio_close(FILE_NO);
+int dio_init(void);
+void dio_free(void);
+int dio_clrfile(FILE_NO);
+int dio_clear(void);
+int dio_flush(void);
+void dio_setdef(FILE_NO);
+int dio_get(F_ADDR, char **, int);
+int dio_touch(F_ADDR);
+int dio_read(DB_ADDR, char **, int);
+int dio_write(DB_ADDR, const char *, int);
+int dio_release(DB_ADDR);
+int dio_rrlb(DB_ADDR, INT *);
+int dio_wrlb(DB_ADDR, INT);
+int dio_findpg(FILE_NO, F_ADDR, PAGE_ENTRY *, PAGE_ENTRY **, LOOKUP_ENTRY **);
+int dio_out(PAGE_ENTRY *, LOOKUP_ENTRY *);
+int dio_pzread(FILE_NO);
+int dio_pzalloc(FILE_NO, F_ADDR *);
+int dio_pzdel(FILE_NO, F_ADDR);
+F_ADDR dio_pznext(FILE_NO);
+void dio_pzclr(void);
+
+/* From initenv.c: */
+int initenv(void);
+
+/* From inittab.c: */
+int inittab(void);
+
+/* From keyfcns.c: */
+int key_open(void);
+void key_close(void);
+int key_init(int);
+int key_reset(FILE_NO);
+int key_locpos(const char *, DB_ADDR *);
+int key_scan(int, DB_ADDR *);
+int key_boundary(int, DB_ADDR *);
+int key_insert(int, const char *, DB_ADDR);
+int key_delete(int, const char *, DB_ADDR);
+/* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm
+   of key_bldcom as const (see keyfcns.c) */
+int key_bldcom(int, char *, char *, int);
+/* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare
+   the second argument to key_cmpcpy with a const attribute.  Hence we
+   were not able to define the 2nd argument of key_bldcom as const.  */
+void key_cmpcpy(char *, char *, INT);
+
+/* From libfcns.c: */
+int dbn_check(int);
+int nset_check(int, int *, SET_ENTRY **);
+int nfld_check(long, int *, int *, RECORD_ENTRY **, FIELD_ENTRY **);
+int nrec_check(int, int *, RECORD_ENTRY **);
+int fldcmp(FIELD_ENTRY *, const char *, const char *);
+int INTcmp(const char *, const char *);
+int ADDRcmp(const DB_ADDR *, const DB_ADDR *);
+int null_dba(const char *);
+int check_dba(DB_ADDR);
+
+/* From makenew.c: */
+int sk_free(void);
+
+/* From netwdos.c: */
+int netbios_chk(void);
+int nw_reset(int, int);
+int nw_addnm(char *, int *);
+int nw_cleanup(char *);
+int nw_sestat(void);
+int nw_delnm(char *);
+int nw_call(char *, char *, int *);
+int nw_hangup(int);
+int nw_send(int, MESSAGE *, int);
+int nw_rcvmsg(int, MESSAGE *, int, int *);
+
+/* From opens.c: */
+int open_b(const char *, int);
+
+/* From ovfcns.c: */
+int o_setup(void);
+int o_init(void);
+int o_fileinit(FILE_NO);
+int o_search(FILE_NO, F_ADDR, F_ADDR *);
+int o_write(PAGE_ENTRY *, LOOKUP_ENTRY *);
+int o_pzwrite(FILE_NO);
+int o_flush(void);
+int o_update(void);
+long o_pages(FILE_NO);
+void o_free(void);
+
+/* From recfcns.c: */
+int r_chkfld(INT, FIELD_ENTRY *, char *, const char *);
+int r_delrec(INT, DB_ADDR);
+int r_gfld(FIELD_ENTRY *, char *, char *);
+int r_gmem(int, char *, char *);
+int r_gset(int, char *, char *);
+int r_pfld(INT, FIELD_ENTRY *, char *, const char *, DB_ADDR *);
+int r_pmem(int, char *, char *);
+int r_pset(int, char *, char *);
+int r_smem(DB_ADDR *, INT);
+int r_setopt(FIELD_ENTRY *, char *);
+int r_clropt(FIELD_ENTRY *, char *);
+int r_tstopt(FIELD_ENTRY *, char *);
+
+/* From pathfcns.c */
+int con_dbd(char *, char *, char *);
+int con_dbf(char *, char *, char *, char *);
+char * get_element(char *, int);
+
+/* From renfile.c: */
+int renfiles(void);
+
+/* From startup.c: */
+int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di);
+
+/* From taffcns.c: */
+int taf_open(void);
+int taf_close(void);
+int taf_access(void);
+int taf_release(void);
+int taf_add(const char *);
+int taf_del(const char *);
+
+/* From mapchar.c */
+int  ctb_init(void);
+int  ctbl_alloc(void);
+void ctbl_free(void);
+
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */
diff --git a/cde/include/Dt/task.h b/cde/include/Dt/task.h
new file mode 100644 (file)
index 0000000..1567fb9
--- /dev/null
@@ -0,0 +1,479 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: task.h /main/2 1996/05/09 04:20:28 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: Pi
+ *             d_close
+ *             d_cmstat
+ *             d_cmtype
+ *             d_connect
+ *             d_costat
+ *             d_cotype
+ *             d_crget
+ *             d_crread
+ *             d_crset
+ *             d_crstat
+ *             d_crtype
+ *             d_crwrite
+ *             d_csmget
+ *             d_csmread
+ *             d_csmset
+ *             d_csmwrite
+ *             d_csoget
+ *             d_csoread
+ *             d_csoset
+ *             d_csowrite
+ *             d_csstat
+ *             d_ctscm
+ *             d_ctsco
+ *             d_ctscr
+ *             d_dbdpath
+ *             d_dbfpath
+ *             d_dblog
+ *             d_dbuserid
+ *             d_delete
+ *             d_destroy
+ *             d_discon
+ *             d_disdel
+ *             d_fillnew
+ *             d_findco
+ *             d_findfm
+ *             d_findlm
+ *             d_findnm
+ *             d_findpm
+ *             d_freeall
+ *             d_gtscm
+ *             d_gtsco
+ *             d_gtscr
+ *             d_gtscs
+ *             d_initfile
+ *             d_initialize
+ *             d_ismember
+ *             d_isowner
+ *             d_keydel
+ *             d_keyexist
+ *             d_keyfind
+ *             d_keyfree
+ *             d_keyfrst
+ *             d_keylast
+ *             d_keylock
+ *             d_keylstat
+ *             d_keynext
+ *             d_keyprev
+ *             d_keyread
+ *             d_keystore
+ *             d_lock
+ *             d_makenew
+ *             d_members
+ *             d_off_opt
+ *             d_on_opt
+ *             d_open
+ *             d_rdcurr
+ *             d_recfree
+ *             d_recfrst
+ *             d_reclast
+ *             d_reclock
+ *             d_reclstat
+ *             d_recnext
+ *             d_recover
+ *             d_recprev
+ *             d_recread
+ *             d_recset
+ *             d_recstat
+ *             d_recwrite
+ *             d_renfile
+ *             d_rerdcurr
+ *             d_retries
+ *             d_rlbclr
+ *             d_rlbset
+ *             d_rlbtst
+ *             d_set_dberr
+ *             d_setdb
+ *             d_setfree
+ *             d_setkey
+ *             d_setlock
+ *             d_setlstat
+ *             d_setmm
+ *             d_setmo
+ *             d_setmr
+ *             d_setom
+ *             d_setoo
+ *             d_setor
+ *             d_setrm
+ *             d_setro
+ *             d_stscm
+ *             d_stsco
+ *             d_stscr
+ *             d_stscs
+ *             d_timeout
+ *             d_trabort
+ *             d_trbegin
+ *             d_trend
+ *             d_utscm
+ *             d_utsco
+ *             d_utscr
+ *             d_utscs
+ *             d_wrcurr
+ *             dt_closetask
+ *             dt_cmstat
+ *             dt_cmtype
+ *             dt_connect
+ *             dt_costat
+ *             dt_cotype
+ *             dt_crget
+ *             dt_crread
+ *             dt_crset
+ *             dt_crtype
+ *             dt_crwrite
+ *             dt_csmget
+ *             dt_csmread
+ *             dt_csmset
+ *             dt_csmwrite
+ *             dt_csoget
+ *             dt_csoread
+ *             dt_csoset
+ *             dt_csowrite
+ *             dt_csstat
+ *             dt_ctbpath
+ *             dt_ctscm
+ *             dt_ctsco
+ *             dt_ctscr
+ *             dt_dbdpath
+ *             dt_dbfpath
+ *             dt_dblog
+ *             dt_dbuserid
+ *             dt_destroy
+ *             dt_discon
+ *             dt_fillnew
+ *             dt_findco
+ *             dt_findfm
+ *             dt_findlm
+ *             dt_findnm
+ *             dt_findpm
+ *             dt_gtscm
+ *             dt_gtsco
+ *             dt_gtscr
+ *             dt_gtscs
+ *             dt_initfile
+ *             dt_ismember
+ *             dt_isowner
+ *             dt_keydel
+ *             dt_keyexist
+ *             dt_keyfind
+ *             dt_keyfree
+ *             dt_keyfrst
+ *             dt_keylast
+ *             dt_keylock
+ *             dt_keylstat
+ *             dt_keynext
+ *             dt_keyprev
+ *             dt_keyread
+ *             dt_keystore
+ *             dt_lock
+ *             dt_makenew
+ *             dt_mapchar
+ *             dt_members
+ *             dt_off_opt
+ *             dt_on_opt
+ *             dt_open
+ *             dt_opentask
+ *             dt_rdcurr
+ *             dt_recfree
+ *             dt_recfrst
+ *             dt_reclast
+ *             dt_reclock
+ *             dt_reclstat
+ *             dt_recover
+ *             dt_recread
+ *             dt_recset
+ *             dt_recstat
+ *             dt_recwrite
+ *             dt_renfile
+ *             dt_rerdcurr
+ *             dt_retries
+ *             dt_set_dberr
+ *             dt_setdb
+ *             dt_setfree
+ *             dt_setkey
+ *             dt_setlock
+ *             dt_setlstat
+ *             dt_setmm
+ *             dt_setmo
+ *             dt_setmr
+ *             dt_setom
+ *             dt_setoo
+ *             dt_setor
+ *             dt_setrm
+ *             dt_setro
+ *             dt_stscm
+ *             dt_stsco
+ *             dt_stscr
+ *             dt_stscs
+ *             dt_timeout
+ *             dt_trbegin
+ *             dt_utscm
+ *             dt_utsco
+ *             dt_utscr
+ *             dt_utscs
+ *             dt_wrcurr
+ *
+ *   ORIGINS: 157
+ *
+ */
+/*----------------------------------------------------------------------------
+   task.h: db_VISTA task cover function declaration header file
+
+   (C) Copyright 1988 by Raima Corporation.
+----------------------------------------------------------------------------*/
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
+*/
+
+
+int EXTERNAL_FIXED dt_opentask(P1(DB_TASK *));
+int EXTERNAL_FIXED dt_closetask(P1(DB_TASK));
+
+int EXTERNAL_FIXED dt_close(TASK_D1);                          /* dblfcns.c */
+int EXTERNAL_DBN   dt_cmstat(P1(int) TASK_Di DBN_Dn);          /* cmstat.c */
+int EXTERNAL_DBN   dt_cmtype(P1(int) Pi(int *) TASK_Di DBN_Dn); 
+                                                               /* cmtype.c */
+int EXTERNAL_DBN   dt_connect(P1(int) TASK_Di DBN_Dn);         /* connect.c */
+int EXTERNAL_DBN   dt_cotype(P1(int) Pi(int *) TASK_Di DBN_Dn); 
+                                                               /* cotype.c */
+int EXTERNAL_DBN   dt_crget(P1(DB_ADDR *) TASK_Di DBN_Dn);     /* crget.c */
+int EXTERNAL_DBN   dt_crread(P1(long) Pi(char *) TASK_Di DBN_Dn);
+                                                               /* crread.c */
+int EXTERNAL_DBN   dt_crset(P1(DB_ADDR *) TASK_Di DBN_Dn);     /* crset.c */
+int EXTERNAL_DBN   dt_crtype(P1(int *) TASK_Di DBN_Dn);        /* crtype.c */
+int EXTERNAL_DBN   dt_crwrite(P1(long) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* crwrite.c */
+int EXTERNAL_DBN   dt_csmget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
+                                                               /* csmget.c */
+int EXTERNAL_DBN   dt_csmread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* csmread.c */
+int EXTERNAL_DBN   dt_csmset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
+                                                               /* csmset.c */
+int EXTERNAL_DBN   dt_csmwrite(P1(int) Pi(long) Pi(const char *) TASK_Di 
+                                 DBN_Dn);                      /* csmwrite.c */
+int EXTERNAL_DBN   dt_csoget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
+                                                               /* csoget.c */
+int EXTERNAL_DBN   dt_csoread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* csoread.c */
+int EXTERNAL_DBN   dt_csoset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
+                                                               /* csoset.c */
+int EXTERNAL_DBN   dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di 
+                                 DBN_Dn);                      /* csowrite.c */
+int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di);       /* pathfcns.c */
+int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di );      /* dbdpath.c */
+int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di );      /* dbfpath.c */
+int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di );        /* dblog.c */
+int EXTERNAL_FIXED dt_dbuserid(P1(const char *) TASK_Di );     /* dbuserid.c */
+int EXTERNAL_DBN   dt_delete(TASK_D1 DBN_Dn);                  /* delete.c */
+int EXTERNAL_DBN   dt_disdel(TASK_D1 DBN_Dn);                  /* disdel.c */
+int EXTERNAL_DBN   dt_recnext(TASK_D1 DBN_Dn);                 /* recnext.c */
+int EXTERNAL_DBN   dt_recprev(TASK_D1 DBN_Dn);                 /* recprev.c */
+int EXTERNAL_FIXED dt_destroy(P1(const char *) TASK_Di );      /* destroy.c */
+int EXTERNAL_DBN   dt_discon(P1(int) TASK_Di DBN_Dn);          /* discon.c */
+int EXTERNAL_DBN   dt_fillnew(P1(int) Pi(const char *) TASK_Di DBN_Dn); 
+                                                               /* fillnew.c */
+int EXTERNAL_DBN   dt_findco(P1(int) TASK_Di DBN_Dn);          /* findco.c */
+int EXTERNAL_DBN   dt_findfm(P1(int) TASK_Di DBN_Dn);          /* findfm.c */
+int EXTERNAL_DBN   dt_findlm(P1(int) TASK_Di DBN_Dn);          /* findlm.c */
+int EXTERNAL_DBN   dt_findnm(P1(int) TASK_Di DBN_Dn);          /* findnm.c */
+int EXTERNAL_DBN   dt_findpm(P1(int) TASK_Di DBN_Dn);          /* findpm.c */
+int EXTERNAL_FIXED dt_freeall(TASK_D1);                                /* dblfcns.c */
+int EXTERNAL_DBN   dt_initialize(TASK_D1 DBN_Dn);              /* initial.c */
+int EXTERNAL_DBN   dt_initfile(P1(FILE_NO) TASK_Di DBN_Dn);    /* initial.c */
+int EXTERNAL_DBN   dt_ismember(P1(int) TASK_Di DBN_Dn);                /* ismember.c */
+int EXTERNAL_DBN   dt_isowner(P1(int) TASK_Di DBN_Dn);         /* isowner.c */
+int EXTERNAL_DBN   dt_keydel(P1(long) TASK_Di DBN_Dn);         /* keydel.c */
+int EXTERNAL_DBN   dt_keyexist(P1(long) TASK_Di DBN_Dn);       /* keyexist.c */
+int EXTERNAL_DBN   dt_keyfind(P1(long) Pi(const char *) TASK_Di DBN_Dn); 
+                                                               /* keyfind.c */
+int EXTERNAL_DBN   dt_keyfree(P1(long) TASK_Di DBN_Dn);                /* dblfcns.c */
+int EXTERNAL_DBN   dt_keyfrst(P1(long) TASK_Di DBN_Dn);                /* keyfrst.c */
+int EXTERNAL_DBN   dt_keylast(P1(long) TASK_Di DBN_Dn);                /* keylast.c */
+int EXTERNAL_DBN   dt_keylock(P1(long) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_keylstat(P1(long) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_keynext(P1(long) TASK_Di DBN_Dn);                /* keynext.c */
+int EXTERNAL_DBN   dt_keyprev(P1(long) TASK_Di DBN_Dn);                /* keyprev.c */
+int EXTERNAL_FIXED dt_keyread(P1(char *) TASK_Di );            /* keyfcns.c */
+int EXTERNAL_DBN   dt_keystore(P1(long) TASK_Di DBN_Dn);       /* keystore.c */
+int EXTERNAL_DBN   dt_lock(P1(int) Pi(LOCK_REQUEST *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_makenew(P1(int) TASK_Di DBN_Dn);         /* makenew.c */
+int EXTERNAL_FIXED dt_mapchar(P1(unsigned char) Pi(unsigned char) 
+                     Pi(const char *) Pi(unsigned char) TASK_Di);
+                                                               /* mapchar.c */
+int EXTERNAL_DBN   dt_members(P1(int) Pi(LONG *) TASK_Di DBN_Dn); 
+                                                               /* members.c */
+int EXTERNAL_FIXED dt_off_opt(P1(int) TASK_Di );               /* options.c */
+int EXTERNAL_FIXED dt_on_opt(P1(int) TASK_Di );                        /* options.c */
+int EXTERNAL_FIXED dt_open(P1(const char *) Pi(const char *) TASK_Di);
+                                                               /* dblfcns.c */
+int EXTERNAL_FIXED dt_rdcurr(P1(DB_ADDR **) Pi(int *) TASK_Di); 
+                                                               /* rwcurr.c */
+int EXTERNAL_FIXED dt_rerdcurr(P1(DB_ADDR **) TASK_Di);        /* rwcurr.c */
+int EXTERNAL_FIXED dt_wrcurr(P1(DB_ADDR *) TASK_Di);   /* rwcurr.c */
+int EXTERNAL_DBN   dt_recfree(P1(int) TASK_Di DBN_Dn);         /* dblfcns.c */
+int EXTERNAL_DBN   dt_recfrst(P1(int) TASK_Di DBN_Dn);         /* recfrst.c */
+int EXTERNAL_DBN   dt_reclast(P1(int) TASK_Di DBN_Dn);         /* reclast.c */
+int EXTERNAL_DBN   dt_reclock(P1(int) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_reclstat(P1(int) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_FIXED dt_recover(P1(const char *) TASK_Di );      /* recover.c */
+int EXTERNAL_DBN   dt_recread(P1(char *) TASK_Di DBN_Dn);      /* recread.c */
+int EXTERNAL_DBN   dt_recset(P1(int) TASK_Di DBN_Dn);          /* recset.c */
+int EXTERNAL_DBN   dt_recwrite(P1(const char *) TASK_Di DBN_Dn); 
+                                                               /* recwrite.c */
+int EXTERNAL_FIXED dt_renfile(P1(const char *) Pi(FILE_NO) 
+                                Pi(const char *) TASK_Di); /* renfile.c */
+int EXTERNAL_FIXED dt_retries(P1(int) TASK_Di );               /* dblfcns.c */
+int EXTERNAL_FIXED dt_rlbclr(TASK_D1);                         /* dblfcns.c */
+int EXTERNAL_FIXED dt_rlbset(TASK_D1);                         /* dblfcns.c */
+int EXTERNAL_FIXED dt_rlbtst(TASK_D1);                         /* dblfcns.c */
+int EXTERNAL_FIXED dt_set_dberr(P1(FARPROC) TASK_Di);          /* dberr.c */
+int EXTERNAL_FIXED dt_setdb(P1(int) TASK_Di);                  /* setdb.c */
+int EXTERNAL_DBN   dt_setfree(P1(int) TASK_Di DBN_Dn);         /* dblfcns.c */
+int EXTERNAL_DBN   dt_setkey(P1(long) Pi(const char *) TASK_Di DBN_Dn); 
+                                                               /* makenew.c */
+int EXTERNAL_DBN   dt_setlock(P1(int) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_setlstat(P1(int) Pi(char *) TASK_Di DBN_Dn); 
+                                                               /* dblfcns.c */
+int EXTERNAL_DBN   dt_setmm(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setmm.c */
+int EXTERNAL_DBN   dt_setmo(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setmo.c */
+int EXTERNAL_DBN   dt_setmr(P1(int) TASK_Di DBN_Dn);           /* setmr.c */
+int EXTERNAL_DBN   dt_setom(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setom.c */
+int EXTERNAL_DBN   dt_setoo(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setoo.c */
+int EXTERNAL_DBN   dt_setor(P1(int) TASK_Di DBN_Dn);           /* setor.c */
+int EXTERNAL_DBN   dt_setrm(P1(int) TASK_Di DBN_Dn);           /* setrm.c */
+int EXTERNAL_DBN   dt_setro(P1(int) TASK_Di DBN_Dn);           /* setro.c */
+int EXTERNAL_FIXED dt_timeout(P1(int) TASK_Di );               /* dblfcns.c */
+int EXTERNAL_FIXED dt_trabort(TASK_D1);                                /* dblfcns.c */
+int EXTERNAL_FIXED dt_trbegin(P1(const char *) TASK_Di);       /* dblfcns.c */
+int EXTERNAL_FIXED dt_trend(TASK_D1);                          /* dblfcns.c */
+
+#ifndef NO_DT_COVER
+
+#define d_close()                    dt_close(CURRTASK_ONLY)
+#define d_dbdpath(a)                 dt_dbdpath(a CURRTASK_PARM)
+#define d_dbfpath(a)                 dt_dbfpath(a CURRTASK_PARM)
+#define d_dblog(a)                   dt_dblog(a CURRTASK_PARM)
+#define d_dbuserid(a)                dt_dbuserid(a CURRTASK_PARM)
+#define d_destroy(a)                 dt_destroy(a CURRTASK_PARM)
+#define d_freeall()                  dt_freeall(CURRTASK_ONLY)
+#define d_off_opt(a)                 dt_off_opt(a CURRTASK_PARM)
+#define d_on_opt(a)                  dt_on_opt(a CURRTASK_PARM)
+#define d_open(a, b)                 dt_open(a, b CURRTASK_PARM)
+#define d_rdcurr(a, b)               dt_rdcurr(a, b CURRTASK_PARM)
+#define d_rerdcurr(a, b)             dt_rerdcurr(a, b CURRTASK_PARM)
+#define d_recover(a)                 dt_recover(a CURRTASK_PARM)
+#define d_renfile(a, b, c)           dt_renfile(a, b, c CURRTASK_PARM)
+#define d_retries(a)                 dt_retries(a CURRTASK_PARM)
+#define d_set_dberr(a, b)            dt_set_dberr(a, b, CURRTASK_PARM)
+#define d_setdb(a)                   dt_setdb(a CURRTASK_PARM)
+#define d_timeout(a)                 dt_timeout(a CURRTASK_PARM)
+#define d_trabort()                  dt_trabort(CURRTASK_ONLY)
+#define d_trbegin(a)                 dt_trbegin(a CURRTASK_PARM)
+#define d_trend()                    dt_trend(CURRTASK_ONLY)
+#define d_wrcurr(a)                  dt_wrcurr(a CURRTASK_PARM)
+
+#define d_cmstat(a , dbn)         dt_cmstat(a CURRTASK_PARM , dbn)
+#define d_cmtype(a, b , dbn)      dt_cmtype(a, b CURRTASK_PARM , dbn)
+#define d_connect(a , dbn)        dt_connect(a CURRTASK_PARM , dbn)
+#define d_cotype(a, b , dbn)      dt_cotype(a, b CURRTASK_PARM , dbn)
+#define d_crget(a , dbn)          dt_crget(a CURRTASK_PARM , dbn)
+#define d_crread(a, b , dbn)      dt_crread(a, b CURRTASK_PARM , dbn)
+#define d_crset(a , dbn)          dt_crset(a CURRTASK_PARM , dbn)
+#define d_crtype(a , dbn)         dt_crtype(a CURRTASK_PARM , dbn)
+#define d_crwrite(a, b , dbn)     dt_crwrite(a, b CURRTASK_PARM , dbn)
+#define d_csmget(a, b , dbn)      dt_csmget(a, b CURRTASK_PARM , dbn)
+#define d_csmread(a, b, c , dbn)  dt_csmread(a, b, c CURRTASK_PARM , dbn)
+#define d_csmset(a, b , dbn)      dt_csmset(a, b CURRTASK_PARM , dbn)
+#define d_csmwrite(a, b, c , dbn) dt_csmwrite(a, b, c CURRTASK_PARM , dbn)
+#define d_csoget(a, b , dbn)      dt_csoget(a, b CURRTASK_PARM , dbn)
+#define d_csoread(a, b, c , dbn)  dt_csoread(a, b, c CURRTASK_PARM , dbn)
+#define d_csoset(a, b , dbn)      dt_csoset(a, b CURRTASK_PARM , dbn)
+#define d_csowrite(a, b, c , dbn) dt_csowrite(a, b, c CURRTASK_PARM , dbn)
+#define d_delete(, dbn)           dt_delete(CURRTASK_ONLY , dbn)
+#define d_disdel(, dbn)           dt_disdel(CURRTASK_ONLY , dbn)
+#define d_recnext(, dbn)          dt_recnext(CURRTASK_ONLY , dbn)
+#define d_recprev(, dbn)          dt_recprev(CURRTASK_ONLY , dbn)
+#define d_discon(a , dbn)         dt_discon(a CURRTASK_PARM , dbn)
+#define d_fillnew(a, b , dbn)     dt_fillnew(a, b CURRTASK_PARM , dbn)
+#define d_findco(a , dbn)         dt_findco(a CURRTASK_PARM , dbn)
+#define d_findfm(a , dbn)         dt_findfm(a CURRTASK_PARM , dbn)
+#define d_findlm(a , dbn)         dt_findlm(a CURRTASK_PARM , dbn)
+#define d_findnm(a , dbn)         dt_findnm(a CURRTASK_PARM , dbn)
+#define d_findpm(a , dbn)         dt_findpm(a CURRTASK_PARM , dbn)
+#define d_initialize(, dbn)       dt_initialize(CURRTASK_ONLY , dbn)
+#define d_initfile(a , dbn)       dt_initfile(a CURRTASK_PARM , dbn)
+#define d_ismember(a , dbn)       dt_ismember(a CURRTASK_PARM , dbn)
+#define d_isowner(a , dbn)        dt_isowner(a CURRTASK_PARM , dbn)
+#define d_keydel(a , dbn)         dt_keydel(a CURRTASK_PARM , dbn)
+#define d_keyexist(a , dbn)       dt_keyexist(a CURRTASK_PARM , dbn)
+#define d_keyfind(a, b , dbn)     dt_keyfind(a, b CURRTASK_PARM , dbn)
+#define d_keyfree(a , dbn)        dt_keyfree(a CURRTASK_PARM , dbn)
+#define d_keyfrst(a , dbn)        dt_keyfrst(a CURRTASK_PARM , dbn)
+#define d_keylast(a , dbn)        dt_keylast(a CURRTASK_PARM , dbn)
+#define d_keylock(a, b , dbn)     dt_keylock(a, b CURRTASK_PARM , dbn)
+#define d_keylstat(a, b , dbn)    dt_keylstat(a, b CURRTASK_PARM , dbn)
+#define d_keynext(a , dbn)        dt_keynext(a CURRTASK_PARM , dbn)
+#define d_keyprev(a , dbn)        dt_keyprev(a CURRTASK_PARM , dbn)
+#define d_keyread(a , dbn)        dt_keyread(a CURRTASK_PARM)
+#define d_keystore(a , dbn)       dt_keystore(a CURRTASK_PARM , dbn)
+#define d_lock(a, b , dbn)        dt_lock(a, b CURRTASK_PARM , dbn)
+#define d_makenew(a , dbn)        dt_makenew(a CURRTASK_PARM , dbn)
+#define d_members(a, b , dbn)     dt_members(a, b CURRTASK_PARM , dbn)
+#define d_recfree(a , dbn)        dt_recfree(a CURRTASK_PARM , dbn)
+#define d_recfrst(a , dbn)        dt_recfrst(a CURRTASK_PARM , dbn)
+#define d_reclast(a , dbn)        dt_reclast(a CURRTASK_PARM , dbn)
+#define d_reclock(a, b , dbn)     dt_reclock(a, b CURRTASK_PARM , dbn)
+#define d_reclstat(a, b , dbn)    dt_reclstat(a, b CURRTASK_PARM , dbn)
+#define d_recread(a , dbn)        dt_recread(a CURRTASK_PARM , dbn)
+#define d_recset(a , dbn)         dt_recset(a CURRTASK_PARM , dbn)
+#define d_recwrite(a , dbn)       dt_recwrite(a CURRTASK_PARM , dbn)
+#define d_setfree(a , dbn)        dt_setfree(a CURRTASK_PARM , dbn)
+#define d_setkey(a, b , dbn)      dt_setkey(a, b CURRTASK_PARM , dbn)
+#define d_setlock(a, b , dbn)     dt_setlock(a, b CURRTASK_PARM , dbn)
+#define d_setlstat(a, b , dbn)    dt_setlstat(a, b CURRTASK_PARM , dbn)
+#define d_setmm(a, b , dbn)       dt_setmm(a, b CURRTASK_PARM , dbn)
+#define d_setmo(a, b , dbn)       dt_setmo(a, b CURRTASK_PARM , dbn)
+#define d_setmr(a , dbn)          dt_setmr(a CURRTASK_PARM , dbn)
+#define d_setom(a, b , dbn)       dt_setom(a, b CURRTASK_PARM , dbn)
+#define d_setoo(a, b , dbn)       dt_setoo(a, b CURRTASK_PARM , dbn)
+#define d_setor(a , dbn)          dt_setor(a CURRTASK_PARM , dbn)
+#define d_setrm(a , dbn)          dt_setrm(a CURRTASK_PARM , dbn)
+#define d_setro(a , dbn)          dt_setro(a CURRTASK_PARM , dbn)
+
+#endif /* NO_DT_COVER */
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC task.h */
diff --git a/cde/include/Dt/trxlog.h b/cde/include/Dt/trxlog.h
new file mode 100644 (file)
index 0000000..bdc8ce1
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: BITMAP_SIZE
+ *             BM_BASE
+ *             IX_BASE
+ *             IX_SIZE
+ *             PZ_BASE
+ *
+ *   ORIGINS: 157
+ *
+ */
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+  611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis
+*/
+
+
+/* trxlog.h  -  header file to define structures, constants, etc. for the
+                memory cache overflow and transaction log file control
+==========================================================================
+*/
+/*
+   The following constants control the functioning of the cache overflow
+   and transaction logging processes
+
+   BUI             The number of bits in an unsigned int
+   IX_PAGESIZE     The size (in bytes) of an index page
+   IX_EPP          The number of entries that will fit on an index page
+   BITMAP_SIZE     The size of the index bitmap (in unsigned int units)
+   IX_SIZE         The number of index pages needed to control the db pages
+   OADDR_OF_IXP    Calculates the overflow file address of an index page #
+   
+==========================================================================
+*/
+/* (BITS(unsigned int)) */
+#define BUI (8*sizeof(unsigned int))
+
+
+/*
+==========================================================================
+*/
+
+/* page zero table entry */
+#define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG))
+typedef struct PGZERO_S {
+   F_ADDR  pz_dchain;         /* delete chain pointer */
+   F_ADDR  pz_next;           /* next available record number */
+   ULONG   pz_timestamp;      /* file's timestamp value */
+   BOOLEAN pz_modified;       /* TRUE if page zero has been modified */
+} PGZERO;
+
+/* binary search lookup table entry */
+
+
+/* Maximum number of transactions which can commit a time */
+#define TAFLIMIT 1
+
+#define TRXLOG_H
+/* End - trxlog.h */
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */
diff --git a/cde/include/Dt/vista.h b/cde/include/Dt/vista.h
new file mode 100644 (file)
index 0000000..a0ace53
--- /dev/null
@@ -0,0 +1,342 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ *   COMPONENT_NAME: austext
+ *
+ *   FUNCTIONS: P1
+ *              POINTER_ASSIGN
+ *              POINTER_INIT
+ *              Pi
+ *              Piv
+ *              Pv
+ *              int
+ *
+ *   ORIGINS: 27,157
+ *
+ *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
+ *   All Rights Reserved
+ *   US Government Users Restricted Rights - Use, duplication or
+ *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
+ */
+/*----------------------------------------------------------------------
+  $TOG: vista.h /main/7 1998/04/03 17:10:52 mgreess $
+  vista.h: db_VISTA standard header file
+
+   This file should be included in all programs which use db_VISTA.  It
+   contains database status/error code definitions and standard type
+   definitions.
+
+   This file should only include user-oriented constructs.
+
+   (C) Copyright 1984, 1985, 1986, 1987 by Raima Corp.
+
+----------------------------------------------------------------------*/
+
+/* ********************** EDIT HISTORY *******************************
+
+ SCR    DATE    INI                   DESCRIPTION
+----- --------- --- -----------------------------------------------------
+      03-AUG-88 RTK Multi-tasking support - see "#ifdef MULTI_TASK"
+      08-AUG-88 RTK Declared globals rn_dba, rn_type, and ft_offset to
+                   support recfrst, recnext, etc in ONE_DB mode.
+      16-Sep-88 RSC Fixed DBN_Dx to use variable # of arg macros.
+      28-Sep-88 WLW Corrected the db_VERSION to 3.10 from 3.01.
+      11-Oct-88 RSC Fixed DBN_Dx to use variable # of arg macros (again)
+      11-Oct-88 RSC Fixed ONE_DB to compile correctly
+      17-Oct-88 RSC Replaced MSC with ANSI, moved compiler check to dbtype
+  439 17-Nov-88 RSC Placed some multi-tasking stuff within MULTI_TASK
+  441 06-Dec-88 RSC Modifications to make gen lockmgr work with 3.10
+      26-Jan-89 RSC Add defn for UINT (for lockmgr)
+  420 13-Feb-89 WLW Removed unused prototypes of {Make,Free}ProcInstance
+ *
+ * $Log$
+ * Revision 1.2  1995/10/17  18:33:01  miker
+ * Added global db_oflag, changed values of db_VERSION and dbd_VERSION:
+ * - Allow access to read-only databases.
+ * - Expand maximum file names from 48 to 240 chars (DtSrFILENMLEN).
+ * - Disable transaction processing (NO_TRANS) to obviate need
+ *   for vista.taf and vista.log files.
+ * - Disregard all environment variables.
+ * - Replace default dberr.c with one that doesn't read stdin.
+ * - Rename library from libvista to prevent confusion with old code.
+ * - Prefix all vista utility names with "dt...", also to deconfuse.
+ *
+ */
+#if defined(__linux__)
+# define __SVR4_I386_ABI_L1__
+#endif
+#include <limits.h>    /* pickup WORD_BIT, LONG_BIT */
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
+# undef __SVR4_I386_ABI_L1__
+# ifndef WORD_BIT
+# define WORD_BIT 32
+# endif
+# ifndef LONG_BIT
+# define LONG_BIT 32
+# endif
+#endif
+
+#define db_VERSION "3.dt"      /* was "3.10" */
+#define dbd_VERSION "V3.dt\032"        /* was "V3.00\032" */
+
+/* -------------------status codes-------------------- */
+/* user errors */
+#define S_DBOPEN    -1    /* database not opened */
+#define S_INVSET    -2    /* invalid set */
+#define S_INVREC    -3    /* invalid record */
+#define S_INVDB     -4    /* invalid database */
+#define S_INVFLD    -5    /* invalid field name */
+#define S_INVADDR   -6    /* invalid db_address */
+#define S_NOCR      -7    /* no current record */
+#define S_NOCO      -8    /* set has no current owner */
+#define S_NOCM      -9    /* set has no current member */
+#define S_KEYREQD   -10   /* key value required */
+#define S_BADTYPE   -11   /* invalid lock type */
+#define S_HASMEM    -12   /* record is owner of non-empty set(s) */
+#define S_ISMEM     -13   /* record is member of set(s) */
+#define S_ISOWNED   -14   /* member already owned */
+#define S_ISCOMKEY  -15   /* field is a compound key */
+#define S_NOTCON    -16   /* record not connected to set */
+#define S_NOTKEY    -17   /* field is not a valid key */
+#define S_INVOWN    -18   /* record not legal owner of set */
+#define S_INVMEM    -19   /* record not legal member of set */
+#define S_SETPAGES  -20   /* error in d_setpages (database open or bad param) */
+#define S_INCOMPAT  -21   /* incompatible dictionary file */
+#define S_DELSYS    -22   /* illegal attempt to delete system record */
+#define S_NOTFREE   -23   /* attempt to locked previously locked rec or set */
+#define S_NOTLOCKED -24   /* attempt to access unlocked record or set */
+#define S_TRANSID   -25   /* transaction id not be supplied */
+#define S_TRACTIVE  -26   /* transaction already active */
+#define S_TRNOTACT  -27   /* transaction not currently active */
+#define S_TRLOCKS   -28   /* transaction cannot begin due to locked files */
+#define S_TRFREE    -29   /* attempt to free a lock inside a transaction */
+#define S_TRCHANGES -30   /* too many pages changed within transaction */
+#define S_NOTRANS   -31   /* attempted update outside of transaction */
+#define S_EXCLUSIVE -32   /* functions requires exclusive db access */
+#define S_STATIC    -33   /* Attempted to write lock a static file */
+#define S_USERID    -34   /* No user id exists */
+#define S_NAMELEN   -35   /* database file/path name too long */
+#define S_RENAME    -36   /* invalid file number was passed to d_renfile */
+#define S_NOTOPTKEY -37   /* field is not an optional key */
+#define S_BADFIELD  -38   /* field not defined in current record type */
+#define S_COMKEY    -39   /* record/field has/in a compound key */
+#define S_INVNUM    -40   /* invalid record or set number */
+#define S_TIMESTAMP -41   /* record or set not timestamped */
+#define S_BADUSERID -42   /* invalid user id - not alphanumeric */
+#define S_NONETBIOS -43   /* NetBIOS is not installed on machine */
+#define S_BADBDPATH -44          /* bad # of elements in DBDPATH */
+#define S_BADBFPATH -45   /* bad # of elements in DBFPATH */
+#define S_NOTYPE    -46          /* No current record type */
+#define S_INVSORT   -47          /* Invalid country table sort string */
+#define S_DBCLOSE   -48   /* database not closed */
+
+/* system errors */
+#define S_NOSPACE   -900  /* no more space on file */
+#define S_SYSERR    -901  /* system error */
+#define S_FAULT     -902  /* page fault -- changed during usage */
+#define S_NOWORK    -903  /* no working file set in dio */
+#define S_NOMEMORY  -904  /* unable to allocate sufficient memory */
+#define S_NOFILE    -905  /* unable to locate a file */
+#define S_DBLACCESS -906  /* unable to access db lock file */
+#define S_DBLERR    -907  /* db lock file open/access error */
+#define S_BADLOCKS  -908  /* inconsistent database locks */
+#define S_RECLIMIT  -909  /* file record limit reached */
+#define S_KEYERR    -910  /* key file inconsistency detected */
+#define S_USERLIMIT -911  /* Max concurrent user limit reached */
+#define S_FSEEK     -912  /* Bad seek on database file */
+#define S_INVFILE   -913  /* Invalid file specified */
+#define S_BADREAD   -914  /* Bad read on database/overflow file */
+#define S_NETSYNC   -915  /* Network synchronization error */
+#define S_DEBUG     -916  /* Debugging check interrupt */
+#define S_NETERR    -917  /* Network communications error */
+#define S_RECOVERY  -918  /* Auto-recovery is in process */
+#define S_BADWRITE  -919  /* Bad write on database/overflow file */
+#define S_NOLOCKMGR -920  /* Unable to open lockmgr session */
+#define S_DUPUSERID -921  /* DBUSERID is already used by another user */
+#define S_LMBUSY    -922  /* The lock manager is busy */
+
+/* function statuses */
+#define S_OKAY      0     /* normal return, okay */
+#define S_EOS       1     /* end of set */
+#define S_NOTFOUND  2     /* record not found */
+#define S_DUPLICATE 3     /* duplicate key */
+#define S_KEYSEQ    4     /* field type used out of sequence in d_keynext */
+#define S_UNAVAIL   5     /* database file currently unavailable */
+#define S_DELETED   6     /* record/set deleted since last accessed */
+#define S_UPDATED   7     /* record/set updated since last accessed */
+#define S_LOCKED    8     /* current record's lock bit is set */
+#define S_UNLOCKED  9     /* current record's lock bit is clear */
+
+/* In order to share databases among heterogenous machines,
+ * certain integer types must be defined that are invariably
+ * 2 and 4 bytes on all architectures.
+ * Note WORD_BIT == 32 does not guarantee short == 16.
+ */
+
+#ifdef LONG
+#undef LONG
+#endif
+
+#if   (WORD_BIT == 16)
+  typedef int             INT;
+  typedef unsigned int    UINT;
+#elif (WORD_BIT == 32)
+  typedef short           INT;
+  typedef unsigned short  UINT;
+#else
+#error Unable to typedef INT and UINT
+#endif
+
+#if (LONG_BIT == 32)
+  typedef long            LONG;
+  typedef unsigned long   ULONG;
+#elif   (WORD_BIT == 32)
+  typedef int             LONG;
+  typedef unsigned int    ULONG;
+#else
+#error Unable to typedef LONG and ULONG
+#endif
+
+typedef LONG   BOOLEAN;
+
+#define MAXRECORDS 16777215
+#define NULL_DBA 0
+
+/* db_VISTA database address */
+#define DB_ADDR LONG  
+
+/* db_VISTA file number */
+#define FILE_NO INT   
+
+/* file address: page or record number */
+#define F_ADDR LONG   
+
+/* record number indicator */
+#define RECMARK 10000
+/* field number indicator = rec * FLDMARK + fld_in_rec */
+#define FLDMARK 1000
+/* set number indicator - must be greater than RECMARK */
+#define SETMARK 20000
+
+/* runtime option flags */
+#define DCHAINUSE  0x01
+#define TRLOGGING  0x02
+#define ARCLOGGING 0x04
+#define IGNORECASE 0x08
+
+/* grouped lock request packet */
+extern int db_status;
+
+/* Mike Russell's custom open() flag.  Default is O_RDWR.
+ * Change to O_RDONLY prior to d_open() if not updating
+ * the databases, if their permissions do not allow
+ * writing, if they're on cd-roms, etc.
+ * Not used internally for open functions that are known
+ * to require write permissions (eg initializations),
+ * or known to be read-only.
+ */
+extern int db_oflag;
+
+#ifndef GENERAL                        /* GENERAL lockmgr */
+#ifdef MSC                     /* MSC */
+#ifndef NO_EXT_KEYWORDS                   /* NO_EXT_KEYWORDS */
+#ifndef PASCAL                       /* PASCAL */
+#define PASCAL pascal
+#endif                               /* PASCAL */
+#ifndef CDECL                        /* CDECL */
+#define CDECL cdecl
+#endif                               /* CDECL */
+#endif                            /* NO_EXT_KEYWORDS */
+#endif                         /* MSC */
+#endif                         /* GENERAL lockmgr */
+
+#ifndef PASCAL
+#define PASCAL /**/
+#endif
+
+#ifndef CDECL
+#define CDECL /**/
+#endif
+
+#define EXTERNAL_FIXED    PASCAL
+#define EXTERNAL_VARIABLE CDECL
+#define INTERNAL_FIXED    PASCAL
+#define INTERNAL_VARIABLE CDECL
+
+typedef int (PASCAL *FARPROC)();
+typedef char *HANDLE;
+
+#define LOCK_DESC /**/
+#define POINTER_INIT()         {  NULL  }
+#define POINTER_ASSIGN(a)      {  a  }
+
+typedef struct {char *ptr; LOCK_DESC} CHAR_P;
+typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P;
+
+
+/* Allow for function prototyping */
+#ifdef LINT_ARGS
+#define P0     void    /* parameterless function */
+#define P1(t)  t       /* first (or only) parameter in function */
+#define Pi(t)  ,t      /* subsequent (2,3,...) parameter in function */
+#ifdef ANSI
+#define Piv(t) ,...    /* begining of variable number of parameters */
+#define Pv(t)  /**/    /* function has 0 or more parameters */
+#else
+#define Piv(t) ,       /* [XENIX] begining of variable number of parameters */
+#define Pv(t)  ,       /* [XENIX] function has 0 or more parameters */
+#endif
+#else
+#define P0     /**/
+#define P1(t)  /**/
+#define Pi(t)  /**/
+#define Piv(t) /**/
+#define Pv(t)  /**/
+#endif
+
+
+
+#define DBN_D1 Pv(int)
+#define DBN_FIX_D1 P1(int)
+#define DBN_Dn Piv(int)
+
+#define TASK_DBN_D1 DBN_D1
+#define TASK_D1 P0
+#define TASK_Di /**/
+#define TASK_PTR_D1 P0
+#define TASK_PTR_Di /**/
+#define CURRTASK_PARM            /**/
+#define CURRTASK_ONLY            /**/
+
+#define LOCK_D1 /**/
+#define LOCK_Di /**/
+
+typedef struct {
+   int  item;  /* record or set number */
+   char type;  /* lock type: 'r', 'w', 'x', 'k' */
+} LOCK_REQUEST;
+
+
+#include "dproto.h"
+
+/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC vista.h */
diff --git a/cde/include/Dt/xpm.h b/cde/include/Dt/xpm.h
new file mode 100644 (file)
index 0000000..33bacf0
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: xpm.h /main/4 1996/02/19 16:42:00 lehors $ */
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1996 Hewlett-Packard Company.
+ * (c) Copyright 1996 International Business Machines Corp.
+ * (c) Copyright 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+/*****************************************************************************\
+*                                                                             *
+* This is only a wrapper around the Xpm functions which now come as part of   *
+* Motif. This is provided for backward compatibility only and therefore only  *
+* supports symbols declared as private in the elist and none of the internal  *
+* ones.                                                                       *
+*                                                                             *
+\*****************************************************************************/
+
+#ifndef xpm_h
+#define xpm_h
+
+#include <Xm/XpmP.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int _DtXpmCreatePixmapFromData(Display *display,
+                                     Drawable d,
+                                     char **data,
+                                     Pixmap *pixmap_return,
+                                     Pixmap *shapemask_return,
+                                     XpmAttributes *attributes);
+
+extern int _DtXpmReadFileToPixmap(Display *display,
+                                 Drawable d,
+                                 char *filename,
+                                 Pixmap *pixmap_return,
+                                 Pixmap *shapemask_return,
+                                 XpmAttributes *attributes);
+
+extern int _DtXpmWriteFileFromPixmap(Display *display,
+                                    char *filename,
+                                    Pixmap pixmap,
+                                    Pixmap shapemask,
+                                    XpmAttributes *attributes);
+
+extern int _DtXpmReadFileToImage(Display *display,
+                                char *filename,
+                                XImage **image_return,
+                                XImage **shapeimage_return,
+                                XpmAttributes *attributes);
+
+extern int _DtXpmWriteFileFromImage(Display *display,
+                                   char *filename,
+                                   XImage *image,
+                                   XImage *shapeimage,
+                                   XpmAttributes *attributes);
+
+extern void _DtXpmFreeAttributes(XpmAttributes *attributes);
+
+#ifdef __cplusplus
+}                                      /* for C++ V2.0 */
+#endif
+
+#endif
diff --git a/cde/include/DtI/Access.h b/cde/include/DtI/Access.h
new file mode 100644 (file)
index 0000000..b6939b8
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        Access.h
+ **
+ **   Project:     Run Time Project File Access
+ **
+ **   Description: Header file for Access.h
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpAccess_h
+#define _DtHelpAccess_h
+
+/****************************************************************************
+ *                     Public Defines
+ ****************************************************************************/
+#ifndef        True
+#define        True    1
+#endif
+#ifndef        TRUE
+#define        TRUE    1
+#endif
+#ifndef        False
+#define        False   0
+#endif
+#ifndef        FALSE
+#define        FALSE   0
+#endif
+
+typedef        void*   _DtHelpVolumeHdl;
+
+/****************************************************************************
+ *                     Semi-Private Externals
+ ****************************************************************************/
+extern int      _DtHelpCeCompressPathname ( char *basePath );
+extern char    *_DtHelpCeTraceFilenamePath ( char *file_path );
+extern char    *_DtHelpCeTracePathName ( char *path );
+
+/****************************************************************************
+ *                     Semi-Public Externals
+ ****************************************************************************/
+extern int      _DtHelpCloseVolume (
+                               _DtHelpVolumeHdl vol );
+extern int      _DtHelpCeFindId (
+                               _DtHelpVolumeHdl  vol,
+                               char             *target_id,
+                               int               fd,
+                               char            **ret_name,
+                               int              *ret_offset );
+extern int      _DtHelpCeFindKeyword (
+                               _DtHelpVolumeHdl   vol,
+                               char              *target,
+                               char            ***ret_ids );
+extern int      _DtHelpCeGetKeywordList (
+                               _DtHelpVolumeHdl   vol,
+                               char            ***ret_keywords );
+extern int      _DtHelpCeGetTopTopicId (
+                               _DtHelpVolumeHdl  vol,
+                               char            **ret_idString );
+extern char    *_DtHelpCeGetVolumeName(
+                               _DtHelpVolumeHdl   vol);
+extern  char    *_DtHelpGetVolumeLocale (
+                               _DtHelpVolumeHdl  volume);
+extern int      _DtHelpOpenVolume (
+                               char            *volFile,
+                               _DtHelpVolumeHdl*retVol );
+extern int      _DtHelpCeUpVolumeOpenCnt (
+                               _DtHelpVolumeHdl   volume);
+#endif /* _DtHelpAccess_h */
diff --git a/cde/include/DtI/AccessI.h b/cde/include/DtI/AccessI.h
new file mode 100644 (file)
index 0000000..4dcc627
--- /dev/null
@@ -0,0 +1,139 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        AccessI.h
+ **
+ **   Project:     Run Time Project File Access
+ **
+ **   Description: Header file for Access.h
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpAccessI_h
+#define _DtHelpAccessI_h
+
+
+#ifndef        _XtIntrinsic_h
+/*
+ * typedef Boolean
+ */
+#ifdef CRAY
+typedef long            Boolean;
+#else
+typedef char            Boolean;
+#endif
+#endif
+
+#ifndef        _XLIB_H_
+#ifndef        True
+#define        True    1
+#endif
+#ifndef        TRUE
+#define        TRUE    1
+#endif
+#ifndef        False
+#define        False   0
+#endif
+#ifndef        FALSE
+#define        FALSE   0
+#endif
+#endif
+
+/******************************************************************************
+ *                   Semi-Public Structures
+ ******************************************************************************/
+typedef struct {
+       char  match;
+       char *substitution;
+} _DtSubstitutionRec;
+
+typedef        struct _dtHelpCeLockInfo {
+       int             fd;
+       _DtHelpVolumeHdl        volume;
+} _DtHelpCeLockInfo;
+
+/******************************************************************************
+ *                   Semi-Public Access Functions
+ ******************************************************************************/
+extern char    *_DtHelpCeExpandPathname (
+                       char               *spec,
+                       char               *filename,
+                       char               *type,
+                       char               *suffix,
+                       char               *lang,
+                       _DtSubstitutionRec *subs,
+                       int                 num );
+extern int      _DtHelpCeFileOpenAndSeek(
+                       char            *filename,
+                       int              offset,
+                       int              fd,
+                       BufFilePtr      *ret_file,
+                       time_t          *ret_time);
+extern int      _DtHelpCeGetDocStamp (
+                       _DtHelpVolumeHdl  volume,
+                       char            **ret_doc,
+                       char            **ret_time);
+extern int      _DtHelpCeGetLangSubParts (
+                       char             *lang,
+                       char            **subLang,
+                       char            **subTer,
+                       char            **subCodeSet );
+extern int      _DtHelpCeGetTopicChildren(
+                       _DtHelpVolumeHdl  volume,
+                       char             *topic_id,
+                       char            ***ret_childs);
+extern int      _DtHelpGetTopicTitle(
+                       _DtHelpVolumeHdl  volume,
+                       char             *target_id,
+                       char            **ret_title);
+extern int      _DtHelpCeGetUncompressedFileName (
+                       char              *name,
+                       char             **ret_name);
+extern const char *_DtHelpCeGetVolumeCharSet (
+                       _DtHelpVolumeHdl  volume);
+extern int      _DtHelpCeGetVolumeFlag (
+                       _DtHelpVolumeHdl  volume);
+extern int      _DtHelpCeIsTopTopic(
+                       _DtHelpVolumeHdl   volume,
+                       const char        *id);
+extern int      _DtHelpCeLockVolume(
+                       _DtHelpVolumeHdl   volume,
+                       _DtHelpCeLockInfo *ret_info);
+extern int      _DtHelpCeMapTargetToId (
+                       _DtHelpVolumeHdl  volume,
+                       char             *target_id,
+                       char            **ret_id);
+extern int      _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info);
+#endif /* _DtHelpAccessI_h */
diff --git a/cde/include/DtI/AccessP.h b/cde/include/DtI/AccessP.h
new file mode 100644 (file)
index 0000000..20e6a2a
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        AccessP.h
+ **
+ **   Project:     Run Time Project File Access
+ **
+ **  
+ **   Description: Private header file for Access.h
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtAccessP_h
+#define _DtAccessP_h
+
+#include <sys/stat.h>
+typedef        void*   SdlVolumeHandle;
+typedef        void*   CcdfVolumeHandle;
+
+typedef        union _dthelpVolumes {
+       SdlVolumeHandle sdl_vol;
+       CcdfVolumeHandle ccdf_vol;
+} DtHelpVols;
+
+/*
+ * The following structure holds loaded volumes.  The fields of this 
+ * structure should not be accessed by any code outside of the volume
+ * module.
+ */
+struct _DtHelpVolumeRec {
+    short      sdl_flag;       /* The type of volume */
+    char *volFile;             /* The name of the volume file in the */
+                               /* form it was passed to _DtVolumeOpen. */
+
+    char **keywords;           /* A pointer to a string array */
+                               /* containing all of the keywords in */
+                               /* sorted order.  This field is not loaded */
+                               /* until it is needed. */
+
+    char ***keywordTopics;     /* A pointer to an array of string */
+                               /* arrays.  Each string array specifies */
+                               /* the list of topics which contain the */
+                               /* corresponding keyword.  This field is  */
+                               /* not loaded until it is needed. */
+
+    DtHelpVols vols;           /* Handles to format specific volume info */
+    int openCount;             /* A count of the number of times this */
+                               /* volume has been opened. */
+
+    time_t check_time;         /* Time this volume was last modified */
+    struct _DtHelpVolumeRec *nextVol;
+                               /* A pointer to the next volume, used to */
+                               /* chain all of the open volumes together. */
+};
+
+typedef struct _DtHelpVolumeRec *_DtHelpVolume;
+
+#endif /* _DtAccessP_h */
diff --git a/cde/include/DtI/ActionsI.h b/cde/include/DtI/ActionsI.h
new file mode 100644 (file)
index 0000000..d18c10b
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: ActionsI.h /main/5 1995/12/08 13:00:31 cde-hal $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        ActionsI.h
+ **
+ **   Project:     Display area routines
+ **
+ **   Description: Header file for Actions.c
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpActionsI_h
+#define _DtHelpActionsI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*****************************************************************************
+ *              Semi Public Routines
+ *****************************************************************************/
+extern void    _DtHelpActivateLink (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpCopyAction (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpDeSelectAll (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpNextLink (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpPageLeftOrRight (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpPageUpOrDown (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+extern void    _DtHelpSelectAll (
+                       Widget          widget,
+                       XEvent          *event,
+                       String          *params,
+                       Cardinal        *num_params);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtHelpActionsI_h */
diff --git a/cde/include/DtI/CallbacksI.h b/cde/include/DtI/CallbacksI.h
new file mode 100644 (file)
index 0000000..6f2e31a
--- /dev/null
@@ -0,0 +1,123 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: CallbacksI.h /main/7 1996/02/27 20:06:41 cde-hal $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        CallbacksTG.h
+ **
+ **   Project:     TextGraphic Display routines
+ **
+ **  
+ **   Description: Header file for CallbacksTG.h
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpCallbacksI_h
+#define _DtHelpCallbacksI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*****************************************************************************
+ *              Semi Public Routines
+ *****************************************************************************/
+extern Boolean _DtHelpCancelSelection(
+                       XtPointer client_data);
+extern void    _DtHelpCleanAndDrawWholeCanvas(
+                       XtPointer client_data);
+extern void    _DtHelpSearchMoveTraversal(
+                       XtPointer client_data,
+                       int search_hit_index);
+
+/*****************************************************************************
+ *              Public Routines
+ *****************************************************************************/
+extern void    _DtHelpClearSelection (
+                       XtPointer       client_data );
+extern void    _DtHelpClickOrSelectCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern void    _DtHelpEndSelectionCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern  void    _DtHelpEnterLeaveCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XEvent          *event );
+extern void    _DtHelpExposeCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern void    _DtHelpFocusCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XEvent          *event );
+extern void    _DtHelpGetClearSelection (
+                       Widget          widget,
+                       XtPointer       client_data);
+extern void    _DtHelpHorzScrollCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern void    _DtHelpInitiateClipboard (
+                       XtPointer       client_data );
+extern void    _DtHelpLoseSelectionCB (
+                       Widget   widget,
+                       Atom    *selection );
+extern void    _DtHelpMoveBtnFocusCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XEvent          *event );
+extern void    _DtHelpMouseMoveCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XEvent          *event );
+extern void    _DtHelpResizeCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern void    _DtHelpVertScrollCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XtPointer       call_data );
+extern void    _DtHelpVisibilityCB (
+                       Widget          widget,
+                       XtPointer       client_data,
+                       XEvent          *event );
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtHelpCallbacksI_h */
diff --git a/cde/include/DtI/CanvasI.h b/cde/include/DtI/CanvasI.h
new file mode 100644 (file)
index 0000000..cf687c8
--- /dev/null
@@ -0,0 +1,320 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: CanvasI.h /main/18 1996/10/21 13:59:51 cde-hp $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   CanvasI.h
+ **
+ **  Project:
+ **
+ **  Description:  Public Header file for Canvas.c
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ *******************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtCanvasI_h
+#define _DtCanvasI_h
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdlib.h>
+
+/********    Internal Defines Declarations    ********/
+#define        _DtCvLINE_HORZ  0
+#define        _DtCvLINE_VERT  1
+
+/********    Internal Enum Declarations    ********/
+enum   _dtCvTraversalType
+  {
+       _DtCvTraversalNone,
+       _DtCvTraversalLink,
+       _DtCvTraversalMark
+  };
+
+/********    Internal Typedef Declarations    ********/
+
+#if !defined(_DtCvLinkMgrP_h) && !defined(_DtCvLinkMgrI_h)
+typedef        struct  _dtCvLinkDb*    _DtCvLinkDb;
+#endif
+
+typedef        enum    _dtCvTraversalType      _DtCvTraversalType;
+
+/* adding this typedef so that debugging can access the structure */
+typedef        struct  _dtCvSegment            _DtCvSegmentI;
+typedef struct  _dtCvSegPts            _DtCvSegPtsI;
+
+/********    Internal Structures Declarations    ********/
+
+typedef        struct _dtCvDspLine {
+       _DtCvValue       processed;
+       _DtCvUnit        text_x;
+       _DtCvUnit        max_x;
+       _DtCvUnit        baseline;
+       _DtCvUnit        descent;
+       _DtCvUnit        ascent;
+       int              byte_index;
+       int              length;
+       _DtCvSegmentI   *seg_ptr;
+} _DtCvDspLine;
+
+typedef        struct  _dtCvLineSeg {
+       _DtCvValue       processed;
+       short           dir;
+       _DtCvUnit       pos_x;
+       _DtCvUnit       max_x;
+       _DtCvUnit       pos_y;
+       _DtCvUnit       max_y;
+       _DtCvUnit       width;
+       _DtCvPointer    data;
+} _DtCvLineSeg;
+
+typedef        struct _dtCvPointData {
+       _DtCvUnit       x;
+       _DtCvUnit       y;              /* baseline of the line */
+       int             line_idx;
+       int             char_idx;
+} _DtCvPointData;
+
+typedef        struct  _dtCvMarkData {
+       _DtCvValue      on;
+       _DtCvPointer    client_data;
+       _DtCvPointData  beg;
+       _DtCvPointData  end;
+} _DtCvMarkData;
+
+typedef        struct  _dtCvTraversalInfo {
+       _DtCvValue               active;
+       _DtCvTraversalType       type;  /* the type of the traversal */
+       int                      idx;   /* the index into the approp. struct */
+                                       /* either the txt_lst or marks  */
+       _DtCvUnit                x_pos; /* x pos on the line.              */
+       _DtCvUnit                y_pos; /* top y pos of bounding box       */
+       _DtCvUnit                width; /* width of link on 1st line only  */
+       _DtCvUnit                height; /* height of 1st line bounding box */
+       _DtCvSegmentI           *seg_ptr; /* ptr to first seg of link        */
+} _DtCvTraversalInfo;
+
+typedef        struct  _dtCvSearchData {
+       int             idx;    /* the line index of the search hit */
+       _DtCvDspLine    *lst;   /* pointer to the text line list    */
+} _DtCvSearchData;
+
+typedef        struct _dtCanvasStruct {
+       int             error;
+       long            txt_cnt;        /* maximum used in txt_list     */
+       int             txt_max;        /* maximum in txt_list          */
+
+       int             line_cnt;       /* maximum used in line_lst     */
+       int             line_max;       /* maximum in line_lst          */
+       int             mark_cnt;       /* mark counter                 */
+       int             mark_max;       /* maximum in mark_lst          */
+
+       int             trav_cnt;       /* maximum used in trav_lst     */
+       int             trav_max;       /* maximum in trav_lst          */
+       int             cur_trav;       /* traversal indicator          */
+
+       int             search_cnt;
+       int             search_max;
+
+       int             brk_cnt;        /* the number of page breaks    */
+       int             brk_max;        /* the maxium entries           */
+
+       short           mb_length;      /* The maximum length of a char */
+
+       _DtCvUnit               max_x;          /* The maximum x position */
+       _DtCvUnit               max_y;          /* The maximum y position */
+       _DtCvValue              constraint;     /* Indicates if the right
+                                                  boundary can be breached */
+       _DtCvValue              trav_on;        /* Indicates if the traversal
+                                                  is on or off.            */
+       _DtCvPointer            client_data;
+       _DtCvMetrics            metrics;
+       _DtCvSpaceMetrics       link_info;
+       _DtCvSpaceMetrics       traversal_info;
+       _DtCvLocale             locale;
+
+       _DtCvSegmentI           *element_lst;
+       _DtCvDspLine            *txt_lst;
+       _DtCvLineSeg            *line_lst;
+       _DtCvTraversalInfo      *trav_lst;
+       _DtCvLinkDb              link_data;
+       _DtCvPointData           select_start;
+       _DtCvPointData           select_end;
+       _DtCvMarkData           *marks;
+       _DtCvSearchData         *searchs;
+       _DtCvUnit               *pg_breaks;
+       _DtCvVirtualInfo         virt_functions;
+
+} _DtCanvasStruct;
+
+/********    Internal Structure Typedef Declarations    ********/
+typedef        struct _dtCvPointData   _DtCvSelectData;
+
+/********    Internal Macros Declarations    ********/
+
+#define        _DtCvHasTraversal(x)    ((x) & _DtCvTRAVERSAL_FLAG)
+
+/*
+ * segment type access
+ */
+#define        _DtCvIsTypeNoop(x) \
+               ((((x) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
+
+/*
+ * Is a flag set
+ */
+#define        _DtCvIsSegVisibleLink(x)        _DtCvIsSegHyperText(x)
+#define        _DtCvIsSegALink(x) \
+                       (_DtCvIsSegHyperText(x) || _DtCvIsSegGhostLink(x))
+
+#define        _DtCvIsMarkMaskOn(x) \
+                       (((x) & _DtCvACTIVATE_MARK_ON) ? _DtCvTRUE : _DtCvFALSE)
+
+/*
+ * remove masks
+ */
+#define _DtCvRemoveBeginFlags(x)       x &= ~(_DtCvTRAVERSAL_BEGIN | \
+                                              _DtCvLINK_BEGIN      | \
+                                              _DtCvMARK_BEGIN      | \
+                                              _DtCvSEARCH_BEGIN)
+#define _DtCvSetSearchEnd(x,seg)       x |= ((seg)->type & _DtCvSEARCH_END)
+#define _DtCvSetSearchBegin(x,seg)     x |= ((seg)->type & _DtCvSEARCH_BEGIN)
+#define _DtCvClearSearchFlags(x)       x &= ~(_DtCvSEARCH_FLAG  | \
+                                              _DtCvSEARCH_BEGIN | \
+                                              _DtCvSEARCH_END)
+
+#define _DtCvClearLinkFlags(x)         x &= ~(_DtCvLINK_FLAG   | \
+                                              _DtCvLINK_BEGIN  | \
+                                              _DtCvLINK_END    | \
+                                              _DtCvLINK_POP_UP | \
+                                              _DtCvLINK_NEW_WINDOW)
+
+#define        _DtCvClearProcessed(x)  (x).processed = False
+#define        _DtCvSetProcessed(x)    (x).processed = True
+#define        _DtCvIsProcessed(x)     (x).processed
+#define        _DtCvIsNotProcessed(x)  ((False == (x).processed) ? True : False)
+#define _DtCvStraddlesPt(pt,min,max)   ((min) <= (pt)  && (pt)  <= (max))
+
+/********    Internal Function Declarations    ********/
+extern _DtCvUnit       _DtCvAdjustForSuperSub(
+                               _DtCanvasStruct   *canvas,
+                               _DtCvSegmentI     *p_seg,
+                               _DtCvUnit         start_x,
+                               _DtCvUnit        *script_x,
+                               _DtCvUnit        *super_width,
+                               _DtCvUnit        *super_y,
+                               _DtCvUnit        *sub_width,
+                               _DtCvUnit        *sub_y,
+                               _DtCvValue       *super_flag,
+                               _DtCvValue       *sub_flag);
+extern _DtCvUnit       _DtCvAdvanceXOfLine (
+                               _DtCanvasStruct   *canvas,
+                               _DtCvSegmentI     *p_seg,
+                               _DtCvUnit         x_pos,
+                               int              *link_idx,
+                               _DtCvValue       *link_flag);
+extern _DtCvStatus     _DtCvCheckInfringement (
+                               _DtCvUnit          tst_top,
+                               _DtCvUnit          tst_bot,
+                               _DtCvUnit          obj_top,
+                               _DtCvUnit          obj_bot);
+extern void            _DtCvCheckLineMarks (
+                               _DtCanvasStruct   *canvas,
+                               int                line_idx,
+                               int                char_idx,
+                               int                length,
+                               _DtCvUnit          dst_x,
+                               _DtCvFlags         check_flags,
+                               int               *ret_len,
+                               _DtCvFlags        *ret_old,
+                               _DtCvFlags        *ret_new);
+extern void            _DtCvClearInternalUse (
+                               _DtCvSegmentI    *list,
+                               _DtCvStatus       flag);
+extern _DtCvUnit       _DtCvDrawSegments(
+                               _DtCanvasStruct  *canvas,
+                               _DtCvDspLine      line,
+                               _DtCvSegmentI    *p_seg,
+                               int               start_char,
+                               int               count,
+                               int              *prev_lnk,
+                               _DtCvUnit         txt_x,
+                               _DtCvUnit         sel_x,
+                               _DtCvUnit        *scriptX,
+                               _DtCvUnit        *super_width,
+                               _DtCvUnit        *super_y,
+                               _DtCvUnit        *sub_width,
+                               _DtCvUnit        *sub_y,
+                               _DtCvValue       *last_was_sub,
+                               _DtCvValue       *last_was_super,
+                               _DtCvValue       *last_link_vis,
+                               _DtCvFlags        old_flag,
+                               _DtCvFlags        new_flag,
+                               _DtCvElemType     trav_flag,
+                               _DtCvPointer      trav_data);
+extern int             _DtCvGetCharIdx(
+                               _DtCanvasStruct  *canvas,
+                               _DtCvDspLine      line,
+                               _DtCvUnit         find_x);
+extern _DtCvUnit       _DtCvGetStartXOfLine(
+                               _DtCvDspLine     *line,
+                               _DtCvSegmentI   **pSeg);
+extern void            _DtCvGetWidthOfSegment(
+                               _DtCanvasStruct  *canvas,
+                               _DtCvSegmentI    *p_seg,
+                               int               start,
+                               int               max_cnt,
+                               int              *ret_cnt,
+                               _DtCvUnit        *ret_w,
+                               _DtCvValue       *ret_trimmed);
+extern _DtCvValue      _DtCvModifyXpos(
+                               _DtCvSpaceMetrics info,
+                               _DtCvSegmentI   *seg,
+                               _DtCvValue       tst_result,
+                               _DtCvValue       old_result,
+                               int              idx,
+                               _DtCvUnit       *x_pos);
+extern void            _DtCvSkipLineChars(
+                               _DtCanvasStruct  *canvas,
+                               _DtCvSegmentI    *p_seg,
+                               int               start,
+                               int               max_cnt,
+                               int               use_len,
+                               int              *ret_start,
+                               _DtCvSegmentI    **ret_seg);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtCanvasI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/DisplayAreaI.h b/cde/include/DtI/DisplayAreaI.h
new file mode 100644 (file)
index 0000000..2e15622
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DisplayAreaI.h /main/2 1996/05/09 03:41:47 drk $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        DisplayAreaI.h
+ **
+ **   Project:     Cde Help System
+ **
+ **   Description: Defines the Display Area structures and defines.
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef        _DtHelpDisplayAreaI_h
+#define        _DtHelpDisplayAreaI_h
+
+typedef        struct {
+       int      reason;
+       XEvent  *event;
+       Window   window;
+       char    *specification;
+       int      hyper_type;
+       int      window_hint;
+} DtHelpHyperTextStruct;
+
+#endif /* _DtHelpDisplayAreaI_h */
diff --git a/cde/include/DtI/DisplayAreaP.h b/cde/include/DtI/DisplayAreaP.h
new file mode 100644 (file)
index 0000000..83db880
--- /dev/null
@@ -0,0 +1,264 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: DisplayAreaP.h /main/18 1996/08/13 11:35:51 cde-hp $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        DisplayAreaP.h
+ **
+ **   Project:     Cde Help System
+ **
+ **   Description: Defines the Display Area structures and defines.
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
+                 1993, 1994, 1996 Hewlett-Packard Company.
+ * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
+ * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef        _DtHelpDisplayAreaP_h
+#define        _DtHelpDisplayAreaP_h
+
+#include <X11/X.h>
+#include <Xm/XmP.h>
+#include <Dt/CanvasP.h>
+#include <DtI/GraphicsP.h>
+
+/*
+ * Traversal flags
+ */
+#define        _DT_HELP_SHADOW_TRAVERSAL       (1 << 0)
+#define        _DT_HELP_NOT_INITIALIZED        (1 << 1)
+#define        _DT_HELP_TRAVERSAL_DRAWN        (1 << 2)
+#define        _DT_HELP_DRAW_TOC_IND           (1 << 3)
+#define        _DT_HELP_CLEAR_TOC_IND          (1 << 4)
+#define        _DT_HELP_TOC_ON                 (1 << 5)
+
+/*
+ * enum states for selection
+ */
+enum   _DtHelpSelectState
+    {
+       _DtHelpNothingDoing,
+       _DtHelpCopyOrLink,
+       _DtHelpSelectingText
+    };
+
+/*
+ * Whether the display area has the focus or not
+ */
+#define _DT_HELP_FOCUS_FLAG           0x04
+
+typedef struct {
+       int              used;
+       int              num_pixels;
+       Pixmap           pix;
+       Pixmap           mask;
+       Dimension        width;
+       Dimension        height;
+       Pixel           *pixels;
+} DtHelpGraphicStruct;
+
+typedef        struct {
+       _DtCvPointer     font_ptr;
+       int      spc_idx;
+} DtHelpSpecialChars;
+
+typedef        struct  _dtHelpDAFontMetrics {
+        _DtCvUnit  ascent;         /* Maximum ascent               */
+       _DtCvUnit  descent;        /* Maximum descent              */
+       _DtCvUnit  average_width;  /* Average width of a character */
+       _DtCvUnit  super;          /* Offset from baseline for super scripts */
+       _DtCvUnit  sub;            /* Offset from baseline for sub scripts   */
+} _DtHelpDAFontMetrics;
+
+typedef        struct {
+       short   inited;
+       _DtHelpDAFontMetrics fm;
+} DtHelpDAFSMetrics;
+
+typedef        struct  _DtHelpDAfontInfo {
+       char            **exact_fonts;  /* the list of fonts specified by the
+                                          toss element rather than hints.   */
+       XrmDatabase     def_font_db;    /* The default font resource db      */
+       XrmDatabase     font_idx_db;    /* Which font index goes with which
+                                          set of font resources             */
+       XFontStruct     **font_structs; /* The font structures opened        */
+       XFontSet        *font_sets;     /* The font sets opened              */
+       DtHelpDAFSMetrics *fs_metrics;
+
+       XrmQuark        lang_charset;   /* the char set for current lang     */
+       int             *exact_idx;     /* The indexes for the exact fonts   */
+       int             max_structs;    /* the max number of font_structs    */
+       int             max_sets;       /* The max number of font_sets       */
+       int             struct_cnt;     /* the cur number of font_structs    */
+       int             set_cnt;        /* The cur number of font_sets       */
+       long            def_idx;        /* The default index                 */
+} DtHelpDAFontInfo;
+
+/* 
+ * SelectionScroll structure 
+ */
+typedef struct {
+       int     horizontal_reason;
+       int     vertical_reason;
+} SelectionScrollStruct;
+
+/*
+ * DisplayArea structure
+ */
+typedef        struct _dtHelpDispAreaStruct {
+       Widget  dispWid;                /* The text and graphic area. */
+       Widget  vertScrollWid;          /* The vertical scroll bar    */
+       Widget  horzScrollWid;          /* The horizontal scroll bar  */
+       Boolean vertIsMapped;
+       Boolean horzIsMapped;
+       short   neededFlags;            /* _DtHelpAS_NEEDED flags        */
+       short   nl_to_space;            /* are newlines in multibyte     */
+                                       /* strings turned into spaces?   */
+
+       Dimension       formWidth;      /* Pixel width of the parent  area  */
+       Dimension       formHeight;     /* Pixel height of the parent area  */
+       Dimension       dispWidth;      /* Pixel width of the display area  */
+       Dimension       dispHeight;     /* Pixel height of the display area */
+       Dimension       dispUseHeight;  /* Pixel height of the display area
+                                          minus the decor margin.          */
+       Dimension       dispUseWidth;   /* Pixel width of the display area
+                                          minus the decor margin.          */
+       Dimension       marginWidth;    /* Pixel padding at the left and
+                                          right of the display area.       */
+       Dimension       marginHeight;   /* Pixel padding at the top and
+                                          bottom of the display area.      */
+
+       short   decorThickness;         /* the shadow thickness plus highlight
+                                          thickness of the display area    */
+
+       void    (*hyperCall)();         /* The hypertext callback */
+       void    (*resizeCall)();        /* The resize callback    */
+       int     (*exec_filter)();       /* The execution filter callback    */
+       XtPointer       clientData;     /* The client's data for the callback */
+
+       Pixel   traversalColor;         /* The client's traversal color */
+       Pixel   foregroundColor;        /* The client's foreground color     */
+       Pixel   backgroundColor;        /* The client's foreground color     */
+       Pixel   searchColor;            /* The client's search hilite color  */
+       GC      pixmapGC;
+       GC      normalGC;
+       GC      invertGC;
+       Pixmap  def_pix;                /* the default 'missing pixmap'      */
+       Dimension def_pix_width;        /* the width of the default pixmap   */
+       Dimension def_pix_height;       /* the height of the default pixmap  */
+        _DtGrContext *context;          /* image converter context */
+
+       Colormap  colormap;             /* The colormap to use          */
+       Visual   *visual;               /* The visual to use            */
+
+       DtHelpDAFontInfo font_info;     /* The font information         */
+
+       int     depth;                  /* The depth of the window      */
+
+       int     fontAscent;
+       int     lineHeight;
+       int     leading;
+       long    charWidth;              /* The average size of a character   */
+       int     moveThreshold;          /* The number of pixels that must
+                                          be moved before a copy-paste
+                                          action occurs.                    */
+       int     underLine;
+       int     lineThickness;          /* For traversal box and underline   */
+       int     firstVisible;           /* The absolute number of the first
+                                          line visible in the window.      */
+       int     nextNonVisible;         /* The absolute number of the first
+                                          line non visible, next to the last
+                                          visible window.  */
+       int     visibleCount;           /* The number of lines viewable     */
+       int     maxYpos;                /* Maximum Y positioning            */
+
+       int     virtualX;               /* The virtual x of the window      */
+       int     maxX;                   /* The max virtual x of a line      */
+
+       int     max_spc;                /* The maximum special characters   */
+       int     cur_spc;                /* The current unused structure     */
+       int     timerX;                 /* Used for button clicks/selections */
+       int     timerY;                 /* Used for button clicks/selections */
+       int     scr_timer_x;            /* Used for button clicks/selections */
+       int     scr_timer_y;            /* Used for button clicks/selections */
+       int     vert_init_scr;          /* The initial vert scrolling timeout*/
+       int     vert_rep_scr;           /* The repeat vert scrolling timeout */
+       int     horz_init_scr;          /* The initial horz scrolling timeout*/
+       int     horz_rep_scr;           /* The repeat horz scrolling timeout */
+       _DtCvUnit       toc_width;      /* The width  of the toc indicator   */
+       _DtCvUnit       toc_height;     /* The height of the toc indicator   */
+       _DtCvUnit       toc_y;          /* The y coordinate of the toc       */
+       _DtCvUnit       toc_base;       /* The baseline coordinate of the toc*/
+
+       Time     anchor_time;           /* Indicates the primary selection
+                                          time.                              */
+       Boolean  primary;               /* Indicates if this widget has the
+                                          primary selection                  */
+       Boolean  text_selected;         /* Indicates if the selection has
+                                          occurred                           */
+       enum _DtHelpSelectState select_state;
+                                       /* Indicates the state of the current
+                                          selection.                         */
+       short    toc_flag;              /* Indicates if the traversal indicator
+                                          is always on.                      */
+       _DtCvPointer toc_indicator;     /* The indicator used in the toc */
+
+       XtIntervalId scr_timer_id;
+       SelectionScrollStruct scr_timer_data;
+       DtHelpSpecialChars *spc_chars;  /* Structure containing the spc chars */
+       _DtCvHandle       canvas;
+       _DtCvTopicPtr     lst_topic;
+       wchar_t          *cant_begin_chars;     /* characters that cannot    */
+                                               /* begin a line of text      */
+       wchar_t          *cant_end_chars;       /* characters that cannot    */
+                                               /* end a line of text        */
+
+       short   dtinfo;                 /* Indicates if being used by dtinfo */
+       Pixmap  stipple;                /* stippled pixmap */
+
+       /* callback to be called whenever you manipulate the display */
+       /* area's vertical scrollbar directly using XtSetValues, */
+       /* because the application (dtinfo) has callbacks on the */
+       /* scrollbar, these do not get called when we adjust it with */
+       /* XtSetValues() */ 
+       void    (*vScrollNotify)(void *,unsigned int); 
+
+       /* dtinfo requires this for doing link previews */
+       void    (*armCallback)(void*); 
+
+       _DtCvValue honor_size;          /* Layout parameter for _DtCvSetTopic */
+       _DtCvRenderType render_type;    /* Render type performed on expose */
+       unsigned short media_resolution;        /* used for scaling images */
+
+} DtHelpDispAreaStruct;
+
+#endif /* _DtHelpDisplayAreaP_h */
diff --git a/cde/include/DtI/FileUtilsI.h b/cde/include/DtI/FileUtilsI.h
new file mode 100644 (file)
index 0000000..99f3454
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: FileUtilsI.h /main/5 1995/10/26 12:19:41 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        FileUtilsI.h
+ **
+ **   Project:     DtHelp Project
+ **
+ **   Description: File locating and handling utilities
+ ** 
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpFileUtilsI_h
+#define _DtHelpFileUtilsI_h
+
+#define DtHelpVOLUME_TYPE "volumes"      /* dir for %T in XtResolvePathname */
+#define DtHelpCCDF_VOL_SUFFIX ".hv"      /* possible basename suffix */
+#define DtHelpSDL_VOL_SUFFIX ".sdl"      /* possible basename suffix */
+
+/* array indices and size for use with _DtHelpFileGetSearchPaths() */
+#define _DtHELP_FILE_USER_PATH 0
+#define _DtHELP_FILE_SYS_PATH  1
+#define _DtHELP_FILE_HOME_PATH 2
+#define _DtHELP_FILE_NUM_PATHS 3
+
+typedef struct _dtHelpCeDirStruct {
+       char    *dir_name;
+       int      type;
+       int      user_flag;
+       struct _dtHelpCeDirStruct *next_dir;
+} _DtHelpCeDirStruct;
+
+/* list of suffixes that help volumes may have */
+extern const char * _DtHelpFileSuffixList[];
+
+extern int                      _DtHelpCeCheckAndCacheDir(char *dir);
+extern void                     _DtHelpFileGetSearchPaths(
+                                        char *  paths[],
+                                        Boolean searchHomeDir);
+extern char                     *_DtHelpFileLocate (
+                                       char *       type,
+                                       char *       base,
+                                       const char * suffixList[],
+                                       Boolean      searchCurDir,
+                                       int          accessMode);
+extern Boolean                  _DtHelpFileTraceLinks (
+                                       char * *  pPathName);
+extern Boolean                  _DtHelpFileTraceToFile (
+                                       char * *  pPathName,
+                                       int       accessMode,
+                                       char * *  pFoundPath);
+
+#endif /* _DtHelpFileUtilsI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
+
diff --git a/cde/include/DtI/FontAttrI.h b/cde/include/DtI/FontAttrI.h
new file mode 100644 (file)
index 0000000..1d23339
--- /dev/null
@@ -0,0 +1,191 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: FontAttrI.h /main/7 1995/12/06 18:36:56 cde-hp $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **  File:  FontAttrI.h
+ **  Project:  Common Desktop Environment
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpFontAttrI_h
+#define _DtHelpFontAttrI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Public Defines Declarations    ********/
+/*
+ * font attributes
+ */
+#define _CEFONT_CHAR_SET       6
+#define _CEFONT_LANG_TER       5
+#define _CEFONT_TYPE           4
+#define _CEFONT_WEIGHT         3
+#define _CEFONT_ANGLE          2
+#define _CEFONT_SIZE           1
+#define _CEFONT_SPACING        0
+
+#define _CEFONT_END            7
+
+#define _CEFontAttrNumber     8
+
+/********    Public Enum Declarations    ********/
+enum    _dtHelpFontValue
+    {
+       _DtHelpFontValueBad,
+/* styles  */
+       _DtHelpFontStyleSerif      ,
+       _DtHelpFontStyleSanSerif   ,
+       _DtHelpFontStyleSymbol,
+/* spacing */
+       _DtHelpFontSpacingMono     ,
+       _DtHelpFontSpacingProp     ,
+/* weights */
+       _DtHelpFontWeightMedium    ,
+       _DtHelpFontWeightBold      ,
+/* slant   */
+       _DtHelpFontSlantRevItalic  ,
+       _DtHelpFontSlantItalic     ,
+       _DtHelpFontSlantRoman      ,
+/* special */
+       _DtHelpFontSpecialUnderLine,
+       _DtHelpFontSpecialStrikeOut,
+       _DtHelpFontSpecialNone
+    };
+
+/********    Public Typedef Declarations    ********/
+
+typedef        enum _dtHelpFontValue   _DtHelpFontValue;
+
+/********    Public Structures Declarations    ********/
+
+typedef struct  _dtHelpFontHints {
+       char    *language;
+        char    *char_set;
+       int      pointsz;       /* height of font in points */
+       int      set_width;     /* width  of font in points */
+       char    *color;         /* 1 of 42 UDT colors or 'RGB:rrrr/gggg/bbbb */
+       char    *xlfd;          /* xlfd name for use on X Window System */
+       char    *xlfdb;         /* xlfd name for use on X Window System */
+       char    *xlfdi;         /* xlfd name for use on X Window System */
+       char    *xlfdib;        /* xlfd name for use on X Window System */
+       char    *typenam;       /* typeface spec for MS-Windows interface */
+       char    *typenamb;      /* typeface spec for MS-Windows interface */
+       char    *typenami;      /* typeface spec for MS-Windows interface */
+       char    *typenamib;     /* typeface spec for MS-Windows interface */
+       _DtHelpFontValue  style;    /* font style              */
+       _DtHelpFontValue  spacing;  /* font spacing            */
+       _DtHelpFontValue  weight;   /* font weight             */
+       _DtHelpFontValue  slant;    /* font slant              */
+       _DtHelpFontValue  special;  /* special characteristics */
+       void    *expand;        /* reserved pointer for later expansion */
+} _DtHelpFontHints;
+
+/********    Public Structure Typedef Declarations    ********/
+
+/********    Public Prototyped Procedures    ********/
+
+/********    Public Macro Declarations    ********/
+#ifndef        _DtHelpFontHintsColor
+#define        _DtHelpFontHintsColor(x)        ((x).color)
+#endif
+
+#ifndef        _DtHelpFontHintsLang
+#define        _DtHelpFontHintsLang(x)         ((x).language)
+#endif
+
+#ifndef        _DtHelpFontHintsCharSet
+#define        _DtHelpFontHintsCharSet(x)      ((x).char_set)
+#endif
+
+#ifndef        _DtHelpFontHintsPtSize
+#define        _DtHelpFontHintsPtSize(x)       ((x).pointsz)
+#endif
+
+#ifndef        _DtHelpFontHintsWeight
+#define        _DtHelpFontHintsWeight(x)       ((x).weight)
+#endif
+
+#ifndef        _DtHelpFontHintsXlfd
+#define        _DtHelpFontHintsXlfd(x)         ((x).xlfd)
+#endif
+
+#ifndef        _DtHelpFontHintsXlfdb
+#define        _DtHelpFontHintsXlfdb(x)        ((x).xlfdb)
+#endif
+
+#ifndef        _DtHelpFontHintsXlfdi
+#define        _DtHelpFontHintsXlfdi(x)        ((x).xlfdi)
+#endif
+
+#ifndef        _DtHelpFontHintsXlfdib
+#define        _DtHelpFontHintsXlfdib(x)       ((x).xlfdib)
+#endif
+
+#ifndef        _DtHelpFontHintsTypeNam
+#define        _DtHelpFontHintsTypeNam(x)      ((x).typenam)
+#endif
+
+#ifndef        _DtHelpFontHintsTypeNamb
+#define        _DtHelpFontHintsTypeNamb(x)     ((x).typenamb)
+#endif
+
+#ifndef        _DtHelpFontHintsTypeNami
+#define        _DtHelpFontHintsTypeNami(x)     ((x).typenami)
+#endif
+
+#ifndef        _DtHelpFontHintsTypeNamib
+#define        _DtHelpFontHintsTypeNamib(x)    ((x).typenamib)
+#endif
+
+#ifndef        _DtHelpFontPtrPtSize
+#define        _DtHelpFontPtrPtSize(x) ((x)->pointsz)
+#endif
+
+#ifndef        _DtHelpFontPtrWeight
+#define        _DtHelpFontPtrWeight(x) ((x)->weight)
+#endif
+
+/********    Semi-Public Function Declarations    ********/
+
+/********    Public Function Declarations    ********/
+extern void    _DtHelpCeCopyDefFontAttrList(_DtHelpFontHints *font_attr );
+extern int     _DtHelpDupFontHints(_DtHelpFontHints *font_attr );
+extern void    _DtHelpFreeFontHints(_DtHelpFontHints *font_attr );
+
+/********    End Public Function Declarations    ********/
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtHelpFontAttrI_h */
diff --git a/cde/include/DtI/FontI.h b/cde/include/DtI/FontI.h
new file mode 100644 (file)
index 0000000..e1477f1
--- /dev/null
@@ -0,0 +1,125 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        FontI.h
+ **
+ **   Project:     TextGraphic Display routines
+ **
+ **   Description: Header file for Font.c
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtFontI_h
+#define _DtFontI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/****************************************************************************
+ *                     Semi Public Defines
+ ****************************************************************************/
+/*
+ * resource database types
+ */
+#define _DtHelpXrmInt      0
+#define _DtHelpXrmQuark    1
+
+/*
+ * font quarks
+ */
+#define _DT_HELP_FONT_CHAR_SET       6
+#define _DT_HELP_FONT_LANG_TER       5
+#define _DT_HELP_FONT_TYPE           4
+#define _DT_HELP_FONT_WEIGHT         3
+#define _DT_HELP_FONT_ANGLE          2
+#define _DT_HELP_FONT_SIZE           1
+#define _DT_HELP_FONT_SPACING        0
+
+#define _DT_HELP_FONT_END            7
+
+#define _DtHelpFontQuarkNumber     8
+
+/****************************************************************************
+ *                     Semi Public Structures
+ ****************************************************************************/
+/****************************************************************************
+ *                     Semi Public Routines
+ ****************************************************************************/
+extern void             _DtHelpCopyDefaultList(XrmName *xrm_list);
+extern long             __DtHelpDefaultFontIndexGet (
+                               DtHelpDispAreaStruct    *pDAS);
+extern void             _DtHelpGetStringQuarks(XrmName *xrm_list);
+extern int              __DtHelpFontCharSetQuarkGet(
+                               DtHelpDispAreaStruct    *pDAS,
+                               long                     font_index,
+                               XrmQuark                *ret_quark);
+extern void             __DtHelpFontDatabaseInit (
+                               DtHelpDispAreaStruct    *pDAS,
+                               XtPointer                default_font,
+                               XmFontType               entry_type,
+                               XFontStruct             *user_font);
+extern int              __DtHelpFontIndexGet (
+                               DtHelpDispAreaStruct    *pDAS,
+                               XrmQuarkList             xrm_list,
+                               long                    *ret_idx);
+extern int              __DtHelpFontLangQuarkGet(
+                               DtHelpDispAreaStruct    *pDAS,
+                               long                     font_index,
+                               XrmQuark                *ret_quark);
+extern void             __DtHelpFontMetrics (
+                               DtHelpDAFontInfo         font_info,
+                               long                     font_index,
+                               _DtCvUnit               *ret_ascent,
+                               _DtCvUnit               *ret_descent,
+                               _DtCvUnit               *ret_char_width,
+                               _DtCvUnit               *ret_super,
+                               _DtCvUnit               *ret_sub);
+extern XFontSet         __DtHelpFontSetGet (
+                               DtHelpDAFontInfo         font_info,
+                               long                     font_index );
+extern XFontStruct     *__DtHelpFontStructGet (
+                               DtHelpDAFontInfo         font_info,
+                               long                     font_index);
+extern int              _DtHelpGetExactFontIndex(
+                               DtHelpDispAreaStruct    *pDAS,
+                               const char              *lang,
+                               const char              *char_set,
+                               char                    *xlfd_spec,
+                               long                    *ret_idx);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtHelpFontI_h */
diff --git a/cde/include/DtI/GifUtilsI.h b/cde/include/DtI/GifUtilsI.h
new file mode 100644 (file)
index 0000000..9a443d7
--- /dev/null
@@ -0,0 +1,146 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */
+#ifndef _DtGifUtilsI_h
+#define _DtGifUtilsI_h
+
+/* Include files */
+#include <X11/Xlib.h>
+#include "GraphicsP.h"
+
+/* Enumerated values */
+enum op_t { DO_COLOR, DO_GREY };
+
+/* Type definitions */
+typedef unsigned char byte;
+typedef unsigned long pixel;
+
+/* Data structures */
+
+typedef struct 
+  {
+    unsigned long pixel;
+    unsigned short red, green, blue;
+    unsigned short grey;
+  } GifColors;
+
+typedef struct 
+{
+  XImage        *f_ximage;
+  Display       *f_dpy;
+  int            f_screen;
+  Colormap       f_cmap;
+  Drawable       f_drawable;
+  GC             f_gc;
+  Visual        *f_visual;
+  unsigned int   f_ncells;
+  unsigned int   f_nplanes;
+  unsigned long  f_black;
+  unsigned long  f_white;
+  unsigned long  f_fg;
+  unsigned long  f_bg;
+  int           f_dft_depth;
+  int           f_visual_class;
+  int            f_color_map_constructed;
+  int            f_do_visual;
+  int            bits_per_pixel ;  
+  int            colors_per_pixel;
+  int            total_colors ; 
+  int            f_total_greys;
+  int            f_init_total_greys;  
+  Boolean        f_allow_reduced_colors;
+  Boolean        f_color_reduction_used;     
+  GifColors      GifCMap[64];
+  unsigned long  GifGMap[32];
+} GifObj;
+
+/* Function prototypes */
+
+/* Initializes a gif object structure */
+enum _DtGrLoadStatus InitGifObject( 
+    GifObj                *g, 
+    Display               *dpy, 
+    Drawable               drawable, 
+    Screen                *screen,
+    int                    depth, 
+    Colormap               colormap, 
+    Visual                *visual, 
+    GC                     gc,
+    enum _DtGrColorModel   colorModel, 
+    Boolean                allowReducedColors
+);
+
+/* Deletes resources associated with a gif object structure */
+void DeleteGifObjectResources(
+    GifObj *g 
+);
+
+/* Converts a gif buffer to an X pixmap */
+Pixmap gif_to_pixmap(
+    GifObj        *g, 
+    byte          *inbuf, 
+    unsigned int   buflen, 
+    Dimension     *w, 
+    Dimension     *h, 
+    Pixel          fg, 
+    Pixel          bg,
+    float          ratio
+);
+
+/* Creates a raw PPM-style image from a GIF buffer */
+pixel **create_raw_image(
+    byte          *inbuf, 
+    unsigned int   buflen, 
+    int           *width, 
+    int           *height, 
+    int            imageNumber
+);
+
+/* Creates an X pixmap from a raw PPM-style image */
+Pixmap create_pixmap(
+    GifObj    *g, 
+    pixel   **image, 
+    int        width, 
+    int        height, 
+    Pixel      fg, 
+    Pixel      bg,
+    float      ratio
+);
+
+/* Frees raw image data */
+void free_raw_image(
+    pixel  **image
+);
+
+/* Allocates X pixels needed for the color cube */
+int allocate_colors(
+    GifObj  *g
+);
+
+/* Allocates X pixels needed for greyscale rendering */
+int allocate_greys(
+    GifObj  *g
+);
+
+#endif /* _DtGifUtilsI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/GraphicsP.h b/cde/include/DtI/GraphicsP.h
new file mode 100644 (file)
index 0000000..fc26ada
--- /dev/null
@@ -0,0 +1,197 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: GraphicsP.h /main/4 1996/05/09 03:43:09 drk $ */
+#ifndef _DtGraphicsP_h
+#define _DtGraphicsP_h
+
+#include <stdio.h>
+#include <X11/Intrinsic.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/* 
+ * Input stream data structures
+ */
+
+/* Stream source types */ 
+enum _DtGrStreamType { _DtGrNONE, _DtGrBUFFER, _DtGrFILE };
+
+/* Stream file data */
+typedef struct
+{
+    FILE *fileptr;
+    char *filename;
+    char *uncompressed_filename;
+} _DtGrFile;
+
+/* Stream buffer data */
+typedef struct
+{
+    const char *base;
+    long       size;
+    char       *current;
+    char       *end;
+} _DtGrBuffer;
+
+/* Stream data */
+typedef struct
+{
+    enum _DtGrStreamType  type;
+    union
+    {
+       _DtGrFile    file;
+       _DtGrBuffer  buffer;
+    } source;
+} _DtGrStream;
+
+/*
+ * Input stream function prototypes
+ */
+
+/* Open a file stream */
+int _DtGrOpenFile(
+    _DtGrStream *stream,
+    char        *path
+);
+
+/* Open a buffer stream */
+int _DtGrOpenBuffer(
+    _DtGrStream *stream,
+    const char  *buffer,
+    int         buffer_size
+);
+
+/* Close a stream */
+int _DtGrCloseStream(
+    _DtGrStream *stream
+);
+
+/* Reads data from a stream into a buffer */
+size_t _DtGrRead(
+    void        *buffer,
+    size_t      size,
+    size_t      num_items,
+    _DtGrStream *stream
+);
+
+/* Sets the position of the next input operation on a stream */
+int _DtGrSeek(
+    _DtGrStream *stream,
+    long        offset,
+    int         whence
+);
+
+/* Reads a character from a stream and advances the stream position */
+int _DtGrGetChar(
+    _DtGrStream *stream
+);
+
+/* Reads a string from a stream and advances the stream position */
+char *_DtGrGetString(
+    char        *buffer,
+    int         num_bytes,
+    _DtGrStream *stream
+);
+
+/*
+ * Inline graphics data structures
+ */
+
+enum _DtGrColorModel { _DtGrCOLOR, _DtGrGRAY_SCALE, _DtGrBITONAL };
+enum _DtGrLoadStatus { _DtGrSUCCESS, _DtGrCOLOR_REDUCE,_DtGrCONVERT_FAILURE, 
+                       _DtGrOPEN_FAILED, _DtGrFILE_INVALID, _DtGrNO_MEMORY, 
+                       _DtGrCOLOR_FAILED };
+
+/* Context structure used by image type converters */
+typedef struct {
+    char *image_type;
+    XPointer context;
+} _DtGrContext;
+
+typedef enum _DtGrLoadStatus (*_DtGrLoadProc)(
+    _DtGrStream           *stream,
+    Screen                *screen,
+    int                   depth,
+    Colormap              colormap,
+    Visual                *visual,
+    Pixel                 foreground,
+    Pixel                 background,
+    GC                    gc,
+    enum _DtGrColorModel  color_model,
+    Boolean               allow_reduced_colors,
+    Dimension             *in_out_width,
+    Dimension             *in_out_height,
+    unsigned short        media_resolution,
+    Pixmap                *ret_pixmap,
+    Pixmap                *ret_mask,
+    Pixel                 **ret_colors,
+    int                   *ret_num_colors,
+    _DtGrContext          *context);
+
+typedef void (*_DtGrDestroyContextProc)(
+    _DtGrContext *context);
+
+/*
+ * Inline graphics function prototypes
+ */
+
+/* Loads an image into a pixmap */
+enum _DtGrLoadStatus _DtGrLoad(
+    _DtGrStream           *stream,
+    char                  **image_type,
+    Screen                *screen,
+    int                   depth,
+    Colormap              colormap,
+    Visual                *visual,
+    Pixel                 foreground,
+    Pixel                 background,
+    GC                    gc,
+    enum _DtGrColorModel  color_model,
+    Boolean               allow_reduced_colors,
+    Dimension             *in_out_width,
+    Dimension             *in_out_height,
+    unsigned short        media_resolution,
+    Pixmap                *ret_pixmap,
+    Pixmap                *ret_mask,
+    Pixel                 **ret_colors,
+    int                   *ret_num_colors,
+    _DtGrContext          *context);
+
+/* Destroys a context */
+void _DtGrDestroyContext(
+    _DtGrContext *context);
+
+/* Registers a converter for a graphic type */
+void _DtGrRegisterConverter(
+    char                    *image_type,
+    _DtGrLoadProc           convert_proc,
+    _DtGrDestroyContextProc destroy_context_proc,
+    _DtGrLoadProc           *current_convert_proc,
+    _DtGrDestroyContextProc *current_destroy_proc);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtGraphicsP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/HelpTermP.h b/cde/include/DtI/HelpTermP.h
new file mode 100644 (file)
index 0000000..cdf6c78
--- /dev/null
@@ -0,0 +1,201 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   FormatTerm.h
+ **
+ **  Project:  Cache Creek (Rivers) Project:
+ **
+ **  Description:  Public Header file for FormatTerm.c, the terminal access
+ **                functions.
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *******************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtHelpFormatTermP_h
+#define _DtHelpFormatTermP_h
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**************************
+ * Link Types and Window
+ * Hints should match what
+ * is in Canvas.h
+ **************************/
+/**************************
+ * Link Types
+ **************************/
+
+#ifndef        CELinkType_Execute
+#define CELinkType_Execute      3
+#endif
+#ifndef        CELinkType_ManPage
+#define CELinkType_ManPage      4
+#endif
+#ifndef        CELinkType_AppDefine
+#define CELinkType_AppDefine    5
+#endif
+#ifndef        CELinkType_SameVolume
+#define CELinkType_SameVolume   6
+#endif
+#ifndef        CELinkType_CrossLink
+#define CELinkType_CrossLink    7
+#endif
+#ifndef        CELinkType_TextFile
+#define CELinkType_TextFile     8
+#endif
+
+
+/**************************
+ * Window Hint Kinds
+ **************************/
+
+#ifndef        CEWindowHint_PopupWindow
+#define CEWindowHint_PopupWindow        1
+#endif
+#ifndef        CEWindowHint_CurrentWindow
+#define CEWindowHint_CurrentWindow      2
+#endif
+#ifndef        CEWindowHint_NewWindow
+#define CEWindowHint_NewWindow          3
+#endif
+
+/********    Public Defines Declarations    ********/
+
+/********    Public Structures Declarations    ********/
+
+
+/*****************************************************************************
+ * Structure:       DtHelpHyperLines
+ *
+ * Fields:          title    Indicates the title of the linked topic.
+ *                  specification Contains the hypertext link information.
+ *                  hyper_type  Specifies the hypertext links type.
+ *
+ * 
+ *****************************************************************************/
+typedef struct {
+       char    *title;
+       char    *specification;
+       int      hyper_type;
+       int      win_hint;
+} DtHelpHyperLines;
+
+
+/********    Public Function Declarations    ********/
+
+/*****************************************************************************
+ * Function:         extern void _DtHelpFreeTopicData (
+ *                                  char  **helpList,
+ *                                  DtHelpHyperLines   *hyperList)
+ *
+ *
+ * Parameters:      helpList    Specifies the parent widget ID.
+ *                  hyperList   Specifies the name of the created dialog 
+ *
+ * Return Value:    void.
+ *
+ * Purpose:        Free up the info gotten by _DtHelpGetTopicData.
+ *
+ *****************************************************************************/
+extern void _DtHelpFreeTopicData (
+    char           **helpList,
+    DtHelpHyperLines   *hyperList);
+
+
+
+/*****************************************************************************
+ * Function:         extern int _DtHelpGetTopicData(
+ *                                      char *helpVolume,
+ *                                      char *locationID,
+ *                                      int maxColumns,
+ *                                      char ***helpList,
+ *                                      DtHelpHyperLines  **hyperList);
+ *
+ * Parameters:      
+ *                  
+ *
+ * Return Value:    int value, -1 implies that the function call failed, a 
+ *                  value of 0, implies that the call was successful.
+ *
+ * Purpose:        Allows developers to extract semi-formatted ASCII data
+ *                  from a Cache Creek help file.  
+ *
+ *****************************************************************************/
+extern int _DtHelpGetTopicData (
+    char *helpVolume,
+    char *locationID,
+    int maxColumns,
+    char ***helpList,
+    DtHelpHyperLines  **hyperList);
+
+
+
+/*****************************************************************************
+ * Function:         extern int _DtHelpProcessLinkData(
+ *                                   DtHelpHyperLines *hyperLine,
+ *                                   char **helpVolume,
+ *                                   char **locationId )
+ *
+ *
+ * Parameters:      
+ *                  
+ *
+ * Return Value:    int value, -1 implies that the function call failed, a 
+ *                  value of 0, implies that the call was successful.
+ *
+ * Purpose:        This function is used in conjunction with the
+ *                  _DtHelpGetTopicData() function call to provide developers
+ *                  with a mechanism in which they can traverse Cache Creek
+ *                  hypertext links.  This  call will return the file and 
+ *                  locationid information that when used with the 
+ *                  DtGetTopicData function will retrrieve the help text
+ *                  and new hypertext information associated with the previous
+ *                  hypertext link information.
+ *
+ *****************************************************************************/
+extern int _DtHelpProcessLinkData (
+    char            *ref_volume,
+    DtHelpHyperLines *hyperLine,
+    char **helpVolume,
+    char **locationId);
+
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+
+#endif /* _DtHelpFormatTermP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/HelposI.h b/cde/include/DtI/HelposI.h
new file mode 100644 (file)
index 0000000..bf40588
--- /dev/null
@@ -0,0 +1,159 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   DtosI.h
+ **
+ **  Project:  Rivers Project, 
+ **
+ **  Description:  Internal header file for our Dtos.c module
+ **  -----------
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *******************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtosI_h
+#define _DtosI_h
+
+
+#ifndef NO_MESSAGE_CATALOG
+# define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s)
+#else
+# define _DTGETMESSAGE(set, n, s) s
+#endif
+
+
+/*****************************************************************************
+ * Function:      Boolean _DtHelpOSGetHomeDirName(
+ *
+ *
+ * Parameters:    Output string, size of output string buffer 
+ *
+ * Return Value:    String.
+ *
+ *
+ * Description: 
+ *
+ *****************************************************************************/
+extern void _DtHelpOSGetHomeDirName(
+    String outptr,
+    size_t len);
+
+/*****************************************************************************
+ * Function:       _DtHelpGetUserSearchPath(
+ *
+ *
+ * Parameters:
+ *
+ * Return Value:    String, owned by caller.
+ *
+ *
+ * Description:
+ *                  Gets the user search path for use
+ *                  when searching for a volume.
+ *                  Takes path from the environment,
+ *                  or uses the default path.
+ *
+ *****************************************************************************/
+String _DtHelpGetUserSearchPath(void);
+
+
+/*****************************************************************************
+ * Function:       _DtHelpGetSystemSearchPath(
+ *
+ *
+ * Parameters:
+ *
+ * Return Value:    String, owned by caller.
+ *
+ *
+ * Description:
+ *                  Gets the system search path for use
+ *                  when searching for a volume.
+ *                  Takes path from the environment,
+ *                  or uses the default path.
+ *
+ *****************************************************************************/
+String _DtHelpGetSystemSearchPath(void);
+
+
+
+/*****************************************************************************
+ * Function:      Boolean _DtHelpGetMessage(
+ *
+ *
+ * Parameters:     
+ *
+ * Return Value:   char *
+ *
+ *
+ * Description:    This function will retreive the requested message from the
+ *                 cache proper cache creek message catalog file.
+ *
+ *****************************************************************************/
+extern char *_DtHelpGetMessage(
+        int set,
+        int n,
+        char *s);
+
+
+/*****************************************************************************
+ * Function:      char * _DtHelpGetLocale(
+ *
+ *
+ * Parameters:     
+ *
+ * Return Value:   char *
+ *
+ *
+ * Description:    Returns the value of LC_MESSAGES from the environ.
+ *                 If that is NULL, returns the value of LANG form the environ.
+ *                 If that is NULL, returns NULL.
+ *
+ *****************************************************************************/
+extern char *_DtHelpGetLocale(void);
+
+
+#endif /* _DtosI_h */
+/* Do not add anything after this endif. */
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cde/include/DtI/HourGlassI.h b/cde/include/DtI/HourGlassI.h
new file mode 100644 (file)
index 0000000..72e9645
--- /dev/null
@@ -0,0 +1,120 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: HourGlassI.h /main/5 1995/10/26 12:27:38 rswiston $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:       HourGlassI.h
+ **
+ **   Project:     Cache Creek
+ **
+ **   Description: Internal include file for HourGlass Library.
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+
+#ifndef _hourglassI_h
+#define _hourglassI_h
+
+/* DtHelpGetHourGlassCursor -
+ *
+ *   Builds and returns the appropriate HourGlass cursor.
+ */
+
+extern Cursor DtHelpGetHourGlassCursor( 
+                        Display *dpy) ;
+
+/* DtHelpTurnOnHourGlass -
+ *
+ *   Gets and displays an hourglass cursor in the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtHelpTurnOnHourGlass( 
+                        Widget w) ;
+ /*  Widget widget;
+  *
+  * widget is the toplevel shell of the window you want
+  * the hourglass cursor to appear in.
+  */
+
+
+/* DtHelpTurnOffHourGlass -
+ *
+ *   Removes the hourglass cursor from the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtHelpTurnOffHourGlass( 
+                        Widget w) ;
+  
+ /* Widget widget;
+  *
+  *  widget is the toplevel shell of the window you want
+  *  to remove hourglass cursor from.
+  */
+
+/* DtHelpTurnOnNoEnter -
+ *
+ *   Removes the hourglass cursor from the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtHelpTurnOnNoEnter( 
+                        Widget w) ;
+
+ /* Widget widget;
+  *
+  *  widget is the toplevel shell of the window you want
+  *  to remove hourglass cursor from.
+  */
+
+/* DtHelpTurnOffNoEnter -
+ *
+ *   Removes the hourglass cursor from the window of the widget
+ *   which is passed in to the funciton.
+ */
+
+extern void _DtHelpTurnOffNoEnter( 
+                        Widget w) ;
+
+ /* Widget widget;
+  *
+  *  widget is the toplevel shell of the window you want
+  *  to remove hourglass cursor from.
+  */
+
+
+#endif /* _hourglassI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/JpegUtilsI.h b/cde/include/DtI/JpegUtilsI.h
new file mode 100644 (file)
index 0000000..4b51dd4
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: JpegUtilsI.h /main/3 1996/10/06 19:37:31 rws $ */
+#ifndef _DtJpegUtilsI_h
+#define _DtJpegUtilsI_h
+
+/* Include files */
+
+#include <X11/Xlib.h>
+#include "GraphicsP.h"
+
+/* Function prototypes */
+
+/* Creates a pixmap from a jpeg stream */
+enum _DtGrLoadStatus jpeg_to_ximage (
+    _DtGrStream           *stream,
+    Screen                *screen,
+    Visual                *visual,
+    Dimension             *in_out_width,
+    Dimension             *in_out_height,
+    XImage                **ximage,
+    XColor                **xcolors,
+    int                    *ncolors,
+    int                    *xres
+);
+
+#endif /* _DtJpegUtilsI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/LinkMgrP.h b/cde/include/DtI/LinkMgrP.h
new file mode 100644 (file)
index 0000000..d4983cf
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: LinkMgrP.h /main/2 1996/05/09 03:43:50 drk $ */
+/*************************************<+>*************************************
+ *****************************************************************************
+ **
+ **  File:   LinkMgrP.h
+ **
+ **  Project:
+ **
+ **  Description:  Public Header file for the Ling Manager
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ *******************************************************************
+ *************************************<+>*************************************/
+#ifndef _DtCvLinkMgrP_h
+#define _DtCvLinkMgrP_h
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/********    Typedef Structures Declarations    ********/
+#if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrI_h)
+typedef        struct _dtCvLinkDb*     _DtCvLinkDb;
+#endif
+
+/********    Public Function Declarations    ********/
+
+extern int             _DtLinkDbAddLink (
+                               _DtCvLinkDb      link_db,
+                               char            *id,
+                               char            *spec,
+                               int              type,
+                               int              hint,
+                               char            *description);
+extern int             _DtLinkDbAddSwitch (
+                               _DtCvLinkDb      link_db,
+                               char            *id,
+                               char            *interp,
+                               char            *cmd,
+                               char            *branches);
+extern _DtCvLinkDb     _DtLinkDbCreate (void);
+extern void            _DtLinkDbDestroy (_DtCvLinkDb link_db);
+extern  void           _DtLinkDbRemoveLink(
+                               _DtCvLinkDb      link_data,
+                               int           link_index);
+
+#ifdef __cplusplus
+}  /* Close scope of 'extern "C"' declaration which encloses file. */
+#endif
+
+#endif /* _DtCvLinkMgrP_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/RegionI.h b/cde/include/DtI/RegionI.h
new file mode 100644 (file)
index 0000000..bde5cc0
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: RegionI.h /main/3 1996/05/09 03:44:34 drk $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        RegionI.h
+ **
+ **   Project:     Cde Help System
+ **
+ **   Description: Defines the Region structure.
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef        _DtHelpRegionI_h
+#define        _DtHelpRegionI_h
+
+/********    Public Enum Declarations    ********/
+
+enum   _dtHelpDARegType
+    {
+      _DtHelpDAGraphic,
+      _DtHelpDASpc
+    };
+
+typedef enum _dtHelpDARegType _DtHelpDARegType;
+
+/********    Public Structure Declarations    ********/
+
+typedef        struct _dtHelpDARegion {
+       short                   inited;
+       _DtHelpDARegType        type;
+       _DtCvPointer            handle;
+} _DtHelpDARegion;
+
+typedef        struct _dtHelpDASpcInfo {
+       char                    *name;
+       _DtHelpFontHints         spc_fonts;
+} _DtHelpDASpcInfo;
+
+#endif /* _DtHelpRegionI_h */
diff --git a/cde/include/DtI/SetListI.h b/cde/include/DtI/SetListI.h
new file mode 100644 (file)
index 0000000..40e1fd5
--- /dev/null
@@ -0,0 +1,79 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: SetListI.h /main/6 1995/12/08 13:00:59 cde-hal $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        SetList.h
+ **
+ **   Project:     TextGraphic Display routines
+ **
+ **   Description: Header file for SetListTG.h
+ **
+ **
+ **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
+ **
+ **  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ **  (c) Copyright 1993, 1994 International Business Machines Corp.
+ **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ **  (c) Copyright 1993, 1994 Novell, Inc.
+ **
+ **
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+#ifndef _DtHelpSetListI_h
+#define _DtHelpSetListI_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern  XtPointer      _DtHelpDisplayAreaData(
+                               XtPointer       client_data);
+extern void            _DtHelpDisplayAreaDimensionsReturn (
+                               XtPointer        client_data,
+                               short           *ret_rows,
+                               short           *ret_columns );
+extern void            _DtHelpDisplayAreaSetList (
+                               XtPointer       client_data,
+                               XtPointer       topicHandle,
+                               Boolean         append_flag,
+                               int             scroll_percent);
+extern  Widget         _DtHelpDisplayAreaWidget(
+                               XtPointer       client_data);
+extern int             _DtHelpGetScrollbarValue (
+                               XtPointer       client_data);
+extern Boolean         _DtHelpSetScrollBars (
+                               XtPointer       client_data,
+                               Dimension       new_width,
+                               Dimension       new_height );
+extern int             _DtHelpUpdatePath (
+                               DtHelpDispAreaStruct        *pDAS,
+                               _DtHelpVolumeHdl             volume_handle,
+                               char                        *loc_id);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtHelpSetListI_h */
diff --git a/cde/include/DtI/XUICreateI.h b/cde/include/DtI/XUICreateI.h
new file mode 100644 (file)
index 0000000..d5bdcf7
--- /dev/null
@@ -0,0 +1,117 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */
+/************************************<+>*************************************
+ ****************************************************************************
+ **
+ **   File:        XUICreateI.h
+ **
+ **   Project:     Cde Help System
+ **
+ **   Description: Internal file for XUICreate.c
+ **
+ ****************************************************************************
+ ************************************<+>*************************************/
+/*
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
+                 1993, 1994, 1996 Hewlett-Packard Company.
+ * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
+ * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef        _DtHelpCreateI_h
+#define        _DtHelpCreateI_h
+
+#include "Dt/CanvasP.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*****************************************************************************
+ *                 Defines
+ *****************************************************************************/
+/*
+ * scroll bar flags
+ */
+#define _DtHelpNONE         0
+#define _DtHelpSTATIC       1
+#define _DtHelpAS_NEEDED    2
+
+#define        _DtHelpVERTICAL_SCROLLBAR               0
+#define        _DtHelpHORIZONTAL_SCROLLBAR     1
+
+/*
+ * scroll bar macros
+ */
+#define        _DtHelpSET_AS_NEEDED(x,y)               ((x) | (1 << y))
+#define _DtHelpIS_AS_NEEDED(x, y)              ((x) & (1 << y))
+
+/*****************************************************************************
+ *                 Semi-Public Routines
+ *****************************************************************************/
+extern void    __DtHelpInitializeFontList (
+                       Display         *dpy,
+                       XFontStruct     *default_font);
+
+/*****************************************************************************
+ *                 Public Routines
+ *****************************************************************************/
+extern XtPointer       _DtHelpCreateDisplayArea (
+                               Widget  parent,
+                               char   *name,
+                               short   vert_flag,
+                               short   horiz_flag,
+                               Boolean marker_flag,
+                               int     rows,
+                               int     columns,
+                               void    (*hyperTextCB)(),
+                               void    (*resizeCB)(),
+                               int     (*exec_ok_routine)(),
+                               XtPointer client_data,
+                               XmFontList  default_list );
+
+extern XtPointer       _DtHelpCreateOutputArea (
+                               Widget  parent,
+                               char   *name,
+                               short   vert_flag,
+                               short   horiz_flag,
+                               Boolean marker_flag,
+                               _DtCvValue honor_size,
+                               _DtCvRenderType render_type,
+                               Dimension       width,
+                               Dimension       height,
+                               unsigned short media_resolution,
+                               void    (*hyperTextCB)(),
+                               void    (*resizeCB)(),
+                               int     (*exec_ok_routine)(),
+                               XtPointer client_data,
+                               XmFontList  default_list );
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* _DtHelpCreateI_h */
diff --git a/cde/include/DtI/XbmUtilsI.h b/cde/include/DtI/XbmUtilsI.h
new file mode 100644 (file)
index 0000000..afb4d08
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: XbmUtilsI.h /main/2 1996/05/09 03:45:01 drk $ */
+#ifndef _DtXbmUtilsI_h
+#define _DtXbmUtilsI_h
+
+/* Include files */
+
+#include <X11/Xlib.h>
+#include "GraphicsP.h"
+
+/* Function prototypes */
+
+/* Reads an XBM stream into a data buffer */
+int _DtGrReadBitmapStreamData (
+    _DtGrStream *fstream,
+    unsigned int *width,                /* RETURNED */
+    unsigned int *height,               /* RETURNED */
+    unsigned char **data,               /* RETURNED */
+    int *x_hot,                         /* RETURNED */
+    int *y_hot                          /* RETURNED */
+);
+
+/* Converts an XBM stream into an X pixmap */ 
+int _DtGrReadBitmapStream (
+    Display *display,
+    Drawable d,
+    _DtGrStream *stream,
+    unsigned int *width,                /* RETURNED */
+    unsigned int *height,               /* RETURNED */
+    Pixmap *pixmap,                     /* RETURNED */
+    int *x_hot,                         /* RETURNED */
+    int *y_hot                          /* RETURNED */
+);
+
+#endif /* _DtXbmUtilsI_h */
+/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/include/DtI/bufioI.h b/cde/include/DtI/bufioI.h
new file mode 100644 (file)
index 0000000..b0b9db7
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: bufioI.h /main/5 1995/10/26 12:36:33 rswiston $ */
+#ifndef        _DtHelpbufioI_h
+#define        _DtHelpbufioI_h
+
+#include <stdio.h>             /* for FILE */
+
+#ifndef        NULL
+#define        NULL    0
+#endif
+
+#define BUFFILESIZE    4096
+#define BUFFILEEOF     -1
+
+typedef unsigned char BufChar;
+
+typedef struct _buffile {
+    BufChar *bufp;
+    int            left;
+    BufChar buffer[BUFFILESIZE];
+    int            (*io)(/* BufFilePtr f */);
+    int            (*skip)(/* BufFilePtr f, int count */);
+    int            (*close)(/* BufFilePtr f */);
+    char    *hidden;
+} BufFileRec, *BufFilePtr;
+
+typedef        struct _compressInfo{
+    int     fd;
+    int     size;
+} CECompressInfo, *CECompressInfoPtr;
+
+extern BufFilePtr   __DtBufFileCreate ();
+extern BufFilePtr   _DtHelpCeBufFilePushZ ();
+extern BufFilePtr   _DtHelpCeBufFileOpenWr ();
+extern int         _DtHelpCeBufFileFlush ();
+#define BufFileGet(f)  ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f))
+#define BufFilePut(c,f)        (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->io) (c,f))
+#define BufFilePutBack(c,f) { (f)->left++; *(--(f)->bufp) = (c); }
+#define BufFileSkip(f,c)    ((*(f)->skip) (f, c))
+
+#define FileStream(f)   ((FILE *)(f)->hidden)
+
+extern void            _DtHelpCeBufFileClose (
+                               BufFilePtr      f,
+                               int             doClose);
+extern BufFilePtr      _DtHelpCeBufFileCreate (
+                               char            *hidden,
+                               int             (*io)(),
+                               int             (*skip)(),
+                               int             (*close)());
+extern int             _DtHelpCeBufFileRd (
+                               BufFilePtr       f,
+                               char            *buffer,
+                               int              request_size);
+extern BufFilePtr      _DtHelpCeBufFileRdWithFd (
+                               int             fd);
+extern BufFilePtr      _DtHelpCeBufFileRdRawZ (
+                               CECompressInfoPtr  file_info);
+extern BufFilePtr      _DtHelpCeCreatePipeBufFile (
+                               FILE            *stream);
+extern int             _DtHelpCeUncompressFile (
+                               char            *in_file,
+                               char            *out_file);
+
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#endif /* _DtHelpbufioI_h */
diff --git a/cde/include/DtXinerama.h b/cde/include/DtXinerama.h
new file mode 100644 (file)
index 0000000..30c23a0
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2013, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * Jon Trulson, Xi Graphics 4/11/2001
+ *
+ * $XiGId: DtXinerama.h,v 1.1 2001/04/12 03:01:14 jon Exp $
+ *
+ * A Xinerama wrapper for CDE
+ *
+ */
+
+#ifndef DTXINERAMA_H_INCLUDED
+#define DTXINERAMA_H_INCLUDED
+
+#include <stdio.h>
+#include <X11/Xfuncs.h>
+
+#include <X11/extensions/Xinerama.h>
+
+typedef struct _DtXineramaInfo 
+{
+  int numscreens;      
+  XineramaScreenInfo *ScreenInfo;
+} DtXineramaInfo_t, *DtXineramaInfoPtr_t;
+
+
+DtXineramaInfo_t *_DtXineramaInit(Display *dpy);
+Bool _DtXineramaGetScreen(DtXineramaInfo_t *, unsigned int screen,
+                         unsigned int *w, unsigned int *h, 
+                         unsigned int *xorg, unsigned int *yorg);
+
+#endif /* DTXINERAMA_H_INCLUDED */
diff --git a/cde/include/SPC/chars.h b/cde/include/SPC/chars.h
new file mode 100644 (file)
index 0000000..f1c4673
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         char.h $XConsortium: chars.h /main/3 1995/10/26 15:43:03 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _chars_h
+#define _chars_h
+
+#define Space          (XeChar) ' '
+#define Newline                (XeChar) '\n'
+#define Tab            (XeChar) '\t'
+#define Pound          (XeChar) '#'
+#define Pad            (XeChar) '\0'
+#define Colon           (XeChar) ':'
+#define Equal           (XeChar) '='
+  
+#define Nil_String     (XeString) ""
+
+#endif /* _chars_h */
diff --git a/cde/include/SPC/spc-obj.h b/cde/include/SPC/spc-obj.h
new file mode 100644 (file)
index 0000000..e694de7
--- /dev/null
@@ -0,0 +1,118 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         spc-obj.h $XConsortium: spc-obj.h /main/3 1995/10/26 15:43:20 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1989, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _spc_obj_h
+#define _spc_obj_h
+
+typedef SPC_Channel_Ptr (*SPC_F_open)(SPC_Channel_Ptr, int, XeString);
+typedef int    (*SPC_F_close)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_read)(SPC_Channel_Ptr, int, XeString, int);
+typedef int    (*SPC_F_write)(SPC_Channel_Ptr, XeString, int);
+typedef int    (*SPC_F_reset)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_exec_proc)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_signal)(SPC_Channel_Ptr, int);
+typedef int    (*SPC_F_attach)(SPC_Channel_Ptr, int);
+typedef int    (*SPC_F_add_input)(SPC_Channel_Ptr, SbInputHandlerProc, void *); 
+typedef int    (*SPC_F_wait_for_termination)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_pre_fork)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_post_fork)(SPC_Channel_Ptr, int);
+typedef int    (*SPC_F_remove_logfile)(SPC_Channel_Ptr);
+
+/*
+ **
+ ** New methods for B.00
+ **
+*/ 
+
+typedef int    (*SPC_F_send_eof)(SPC_Channel_Ptr);
+typedef int    (*SPC_F_set_termio)(SPC_Channel_Ptr, int, int, struct termios *);
+
+#define channel_class_part  \
+  root_class_part        \
+  SPC_F_open open;       /* opening a channel */                  \
+  SPC_F_close close;      /* close a channel */                        \
+  SPC_F_read read;       /* read from a channel */                    \
+  SPC_F_write write;      /* write to a channel */                     \
+  SPC_F_reset reset;      /* reset io to channel */                    \
+  SPC_F_exec_proc exec_proc;  /* execute a subprocess over a channel */    \
+  SPC_F_signal signal;     /* signal a subprocess over a channel */     \
+  SPC_F_attach attach;     /* attach a subprocess to this channel */    \
+  SPC_F_add_input add_input;  /* how to add input callbacks to channel */  \
+  SbInputCallbackProc input;        \
+  SPC_F_wait_for_termination wait_for_termination; /* wait for subprocess to exit */  \
+  SPC_F_pre_fork pre_fork;   /* setup before a fork */                    \
+  SPC_F_post_fork post_fork;  /* setup after a fork */                     \
+  SPC_F_remove_logfile remove_logfile; /* remove log file associated with channel */ \
+  SPC_F_send_eof send_eof;    /* close stdin of subprocess */ \
+  SPC_F_set_termio set_termio; /* set termio struct for PTY channels */
+
+typedef struct channel_class {
+  root_clasp base;
+  channel_class_part
+  } *channel_clasp;
+
+typedef struct pty_channel_class {
+  channel_clasp base;
+  channel_class_part
+  } *pty_channel_clasp;
+  
+typedef struct pipe_channel_class {
+  channel_clasp base;
+  channel_class_part
+  } *pipe_channel_clasp;
+  
+typedef struct noio_channel_class {
+  channel_clasp base;
+  channel_class_part
+  } *noio_channel_clasp;
+  
+typedef struct remote_channel_class {
+  channel_clasp base;
+  channel_class_part
+  } *remote_channel_clasp;
+
+#define call_parent_method(channel, func, args, result) { \
+  pipe_channel_clasp parent_class=(pipe_channel_clasp) (channel)->class_ptr; \
+  result=base_memf(parent_class, func, args); }
+
+/* class definitions */
+
+extern channel_clasp        channel_class;
+extern pty_channel_clasp    pty_channel_class;
+extern pipe_channel_clasp   pipe_channel_class;
+extern noio_channel_clasp   noio_channel_class;
+extern remote_channel_clasp remote_channel_class;
+
+#endif /* _spc_obj_h */
+
diff --git a/cde/include/SPC/spc-proto.h b/cde/include/SPC/spc-proto.h
new file mode 100644 (file)
index 0000000..c22b8a8
--- /dev/null
@@ -0,0 +1,297 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         spc-proto.h $XConsortium: spc-proto.h /main/3 1995/10/26 15:43:39 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _spc_proto_h
+#define _spc_proto_h
+
+/*
+ * Commands which are known to spcd and clients
+ */
+
+/* The internet service */
+
+#define SPC_SERVICE    (XeString)"dtspc"  /* The name of the registered service */
+#define SPC_PROTOCOL   (XeString)"tcp"  /* The name of the registered protocol */
+
+  /*  MUST be a DECIMAL number as "%d" */
+#define SPC_PROTOCOL_VERSION_CDE_BASE 1000
+#define SPC_PROTOCOL_VERSION SPC_PROTOCOL_VERSION_CDE_BASE 
+  /*  is used to read the string version */
+#define SPC_PROTOCOL_VERSION_CDE_BASE_STR "1000"
+#define SPC_PROTOCOL_VERSION_STR SPC_PROTOCOL_VERSION_CDE_BASE_STR 
+
+        /* We could make this user config for old domain systems? */
+#define SPC_UNKNOWN_HOSTINFO_STR  "HP-UX:7.0:*"
+/*
+ **
+ ** Pseudo-filenames used for validating user
+ **
+*/
+
+#define PASSED_FILE_NAME (XeString)"<!passed>!"
+#define FAILED_FILE_NAME (XeString)"<!failed>!"
+
+/*
+ *** Protocol command numbers.  These MUST remain in the same order
+ *** to work with previous version of the spcd
+ */
+
+/* Connections to the server */
+
+#define APPLICATION_DATA   0 /* send data to subprocess */
+#define APPLICATION_STDOUT 1 /* data from subprocess */
+#define APPLICATION_STDERR 2 /* error messages from subprocess */
+
+#define ABORT              3 /* Client aborted */
+#define REGISTER           4 /* Register client */
+#define UNREGISTER         5 /* Unregister client */
+
+/* Channel requests */
+
+#define CHANNEL_OPEN       6 /* enable this channel for read/write */
+#define CHANNEL_CLOSE      7 /* no more i/o to this channel (send EOF) */
+#define CHANNEL_RESET      8 /* reset this channel */
+#define CHANNEL_ATTACH     9 /* attach PTY device to this channel */
+
+/* Application messages, client -> server */
+
+#define APPLICATION_SPAWN  10 /* start up subprocess */
+#define APPLICATION_SIGNAL 11 /* send signal to subprocess */
+
+/* application messages, server -> client */
+
+#define APPLICATION_DIED   12 /* sent when subprocess dies */
+
+#define SERVER_ERROR       13 /* server has detected an error */
+#define REPLY              14
+#define SERVER_DEBUG       15
+#define ENVIRON_RESET      16
+
+/* Query / reply protocols, client -> server -> client */
+
+#define QUERY_DEVICES      17
+#define DEVICE_REPLY       18
+
+#define QUERY_LOGFILE      19
+#define LOGFILE_REPLY      20
+
+/* Application messages, client -> server */
+
+#define DELETE_LOGFILE     21
+
+#define RESET_TERMIO       22  /* This is obsolete, (hpux binary version) */
+#define RESET_TERMIOS      23
+
+/* New B.00 protocol requests */
+  
+#define CHANNEL_SEND_EOF   24   /* Send EOF to standard input of sub process */
+#define CHANNEL_TERMIOS    25   /* Send termios info for a particular pty */ 
+#define APP_B00_SPAWN      26   /* Enhanced spawn */
+
+#define NREQS              27  /* total number of requests.  If
+                                 any are added, this should constant
+                                 should reflect the new total */
+
+#define PROT_TO_CONNECTOR(a)  a
+#define CONNECTOR_TO_PROT(a)  a
+  
+#define PDRP(_pdata) _pdata->data+REQUEST_HEADER_LENGTH
+
+#define WRITE_INT(pdata, val)\
+  sprintf_len(PDRP(pdata), (XeString)"%x", val)
+#define READ_INT(pdata, val)    sscanf(PDRP(pdata),  (XeString)"%x", &val)
+
+#define WRITE_STRING(pdata, name)\
+  sprintf_len(PDRP(pdata), (XeString)"%s", name)
+#define READ_STRING(pdata, name)   sscanf(PDRP(pdata),  (XeString)"%s", name)
+#define READ_STRING_NO_COPY(pdata, name)   (name = PDRP(pdata))
+
+#define WRITE_ABORT             WRITE_INT
+#define READ_ABORT              READ_INT
+
+#define WRITE_OPEN              WRITE_INT
+#define READ_OPEN               READ_INT
+
+#define WRITE_ATTACH            WRITE_INT
+#define READ_ATTACH             READ_INT
+
+#define WRITE_APPLICATION_DIED  WRITE_INT
+#define READ_APPLICATION_DIED   READ_INT
+
+#define WRITE_DEBUG             WRITE_STRING
+#define READ_DEBUG              READ_STRING
+
+#define WRITE_ERROR             WRITE_INT
+#define READ_ERROR              READ_INT
+
+#define WRITE_REGISTER(pdata, name, passwd, proto_ver, hostinfo)\
+  sprint_register_data(PDRP(pdata), name, passwd, proto_ver, hostinfo)
+
+#define READ_REGISTER(pdata, name, passwd, proto_rev, hostinfo)\
+  sscan_register_data(PDRP(pdata),  &name, &passwd, &proto_rev, &hostinfo)
+
+#define WRITE_REPLY(pdata, val, err)\
+  sprintf_len(PDRP(pdata), (XeString)"%x %x", val, err)
+#define READ_REPLY(pdata, val, err)\
+  sscanf(PDRP(pdata),  (XeString)"%x %x", &val, &err)
+
+#define WRITE_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \
+  sprint_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2)
+#define READ_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \
+  sscan_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2)
+
+#define WRITE_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \
+  sprint_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo)
+#define READ_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \
+  sscan_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo)
+
+#define WRITE_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \
+  sprint_application_data(PDRP(pdata), (XeString)"%s %d %d ",  \
+                         path, dir, argv, envp, REQUEST_HEADER_LENGTH)
+#define READ_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \
+  sscan_application_data(PDRP(pdata), (XeString)"%s %d %d ", \
+                        &path, &dir, &argv, &envp, REQUEST_HEADER_LENGTH)
+
+#define WRITE_ENVIRON_RESET(pdata, numenv) \
+  sprintf_len(PDRP(pdata), (XeString)"%d ", numenv)
+#define READ_ENVIRON_RESET(pdata, numenv) \
+  sscanf(PDRP(pdata), (XeString)"%d ", &numenv)
+
+#define WRITE_APP_DATA(pdata, buffer, len) \
+  (memcpy(PDRP(pdata), buffer, len), len)
+
+/* New B.00 protocol requests */
+#define WRITE_TERMIOS(pdata, connector, side, buffer) \
+  sprintf_len(PDRP(pdata), (XeString)"%d %d %s", connector, side, buffer)
+#define READ_TERMIOS(pdata, connector, side, buffer) \
+  sscanf(PDRP(pdata), (XeString)"%d %d %s", &connector, &side, buffer)
+  
+/* Writing a header is special, as we don't want to be offset by
+   REQUEST_HEADER_LENGTH */
+
+#define WRITE_HEADER(pdata, cid, type, len, seq) \
+  sprintf_len(pdata->data, (XeString)"%08x%02x%04x%04x", cid, type, len, seq)
+#define READ_HEADER(pdata, cid, type, len, seq) \
+  sscanf(pdata->data, (XeString)"%8x%2x%4x%4x", cid, type, len, seq)
+
+#define min(a, b) (((a) < (b)) ? (a) : (b))
+
+/*
+ **
+ ** The test here is reversed, that is, we check only for those
+ ** requests where there is no reply expected, and assume the other
+ ** ones do expect replies.
+ **
+*/
+
+#define NO_REPLY_VAL  (-1)
+
+#define REPLY_EXPECTED(a, retval)  \
+  (((a==REPLY)                  || \
+    (a==APPLICATION_DATA)       || \
+    (a==APPLICATION_STDOUT)     || \
+    (a==APPLICATION_STDERR)     || \
+    (a==REGISTER)               || \
+    (a==QUERY_LOGFILE)          || \
+    (a==QUERY_DEVICES)          || \
+    (a==ABORT)                  || \
+    (a==SERVER_ERROR)              \
+    ) ? NO_REPLY_VAL : retval)
+
+typedef struct _prot_request {
+  buffered_data_ptr dataptr;
+  int seqno;
+  int request_type;
+  SPC_Channel_Ptr channel;
+  struct _prot_request *next;
+  } protocol_request, *protocol_request_ptr;
+
+typedef int (*protocol_request_handler)(protocol_request_ptr);
+
+/* spc-proto.c */
+buffered_data_ptr SPC_New_Buffered_Data_Ptr (void);
+void SPC_Reset_Protocol_Ptr (protocol_request_ptr prot, SPC_Channel_Ptr channel, XeChar req, int len);
+protocol_request_ptr SPC_New_Protocol_Ptr (SPC_Channel_Ptr channel, XeChar req, int len);
+void SPC_Free_Protocol_Ptr (protocol_request_ptr prot);
+SPC_Channel_Ptr SPC_Lookup_Channel (int cid, SPC_Connection_Ptr connection);
+SPC_Connection_Ptr SPC_Alloc_Connection (void);
+SPC_Connection_Ptr SPC_Lookup_Connection (XeString hostname);
+SPC_Connection_Ptr SPC_Lookup_Connection_Fd (int fd);
+SPC_Connection_Ptr SPC_Make_Connection (XeString hostname);
+void SPC_Add_Connection (SPC_Connection_Ptr connection);
+void SPC_Close_Connection (SPC_Connection_Ptr connection);
+int SPC_Read_Chars (SPC_Connection_Ptr connection, int request_len, XeString charptr);
+int SPC_Write_Chars (int fd, XeString charptr, int request_len);
+protocol_request_ptr SPC_Read_Protocol (SPC_Connection_Ptr connection);
+protocol_request_ptr SPC_Filter_Connection (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int reqtype, int deletep);
+void SPC_Flush_Queued_Data (SPC_Channel_Ptr channel);
+int SPC_Read_Remote_Data (SPC_Channel_Ptr channel, int connector, XeString client_buffer, int nbytes);
+int print_protocol_request (XeString name, protocol_request_ptr proto);
+int SPC_Write_Protocol_Request (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int request, ...);
+int SPC_Write_Single_Prot_Request (SPC_Connection_Ptr connection, XeString name, protocol_request_ptr prot);
+int SPC_Waitfor_Reply (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int seqno);
+int SPC_Dispatch_Protocol (protocol_request_ptr proto, protocol_request_handler *);
+int SPC_Write_Reply (SPC_Connection_Ptr conn, protocol_request_ptr proto, int retval, int errval);
+int SPC_Send_Environ (SPC_Connection_Ptr connection, protocol_request_ptr prot);
+int sprint_counted_string (XeString buf, int count, XeString *vect, int limit);
+XeString *sscan_counted_string (XeString buf, XeString *newbuf);
+int sprint_application_data (XeString buf, XeString fmt, XeString path, XeString dir, XeString *argv, XeString *envp, int chars_used);
+int sscan_application_data (XeString buf, XeString fmt, XeString *path, XeString *dir, XeString **argv, XeString **envp, int offset);
+int sprint_device_data (XeString buf, XeString m0, XeString s0, XeString m1, XeString s1, XeString m2, XeString s2);
+int sscan_device_data (XeString buf, XeString *m0, XeString *s0, XeString *m1, XeString *s1, XeString *m2, XeString *s2);
+int sprint_logfile_data (XeString buf, XeString logfile, XeString proto_ver, XeString hostinfo);
+int sscan_logfile_data (XeString buf, XeString *logfile, XeString *proto_ver, XeString *hostinfo);
+int sprint_register_data (XeString buf, XeString username, XeString passwd, XeString proto_ver, XeString hostinfo);
+int sscan_register_data (XeString buf, XeString *username, XeString *passwd, XeString *proto_ver, XeString *hostinfo);
+int SPC_Query_Devices (SPC_Channel_Ptr channel);
+int SPC_Query_Logfile (SPC_Channel_Ptr channel);
+int SPC_Validate_User (XeString hostname, SPC_Connection_Ptr connection);
+int SPC_Get_Termio (protocol_request_ptr prot_request);
+int SPC_Get_Termios (protocol_request_ptr prot_request);
+XeString SPC_LocalHostinfo(void);
+int SPC_Send_Multi_Packet(SPC_Connection_Ptr connection,
+                         protocol_request_ptr prot,
+                         char **str_vect,
+                         int num_str,
+                         int req,
+                         XeString name,
+                         int errid);
+char **SPC_Get_Multi_Packet(SPC_Connection_Ptr connection,
+                           protocol_request_ptr prot,
+                           char **out,
+                           int *outlen,
+                           int request,
+                           XeString name);
+
+#endif /* _spc_proto_h */
diff --git a/cde/include/SPC/spcE.h b/cde/include/SPC/spcE.h
new file mode 100644 (file)
index 0000000..a19c47e
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         spcE.h $XConsortium: spcE.h /main/3 1995/10/26 15:43:58 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _spcE_h
+#define _spcE_h
+
+/* Keep this up to date with the first error number declared below */
+#define SPC_First_Error_Number 100
+#define SPC_Min_Error          SPC_First_Error_Number
+
+#define SPC_Out_Of_Memory      100
+#define SPC_Bad_Argument       101
+#define SPC_Active_Channel     102
+#define SPC_Inactive_Channel   103
+#define SPC_Internal_Error     104
+#define SPC_Cannot_Fork        105
+#define SPC_Cannot_Exec        106
+#define SPC_Cannot_Execute     107
+#define SPC_No_Pipe            108
+#define SPC_No_Pty             109
+#define SPC_Bad_Connector      110
+#define SPC_Reading            111
+#define SPC_Writing            112
+#define SPC_Bad_Service        113
+#define SPC_Bad_Port           114
+#define SPC_Unknown_Host       115
+#define SPC_Bad_Socket         116
+#define SPC_Bad_Connect        117
+#define SPC_Bad_Bind           118
+#define SPC_Bad_Listen         119
+#define SPC_Bad_Accept         120
+#define SPC_Bad_Linger         121
+#define SPC_Bad_Reuse          122
+#define SPC_Bad_Sockname       123
+#define SPC_Bad_Open           124
+#define SPC_Connection_EOF     125
+#define SPC_Timeout            126
+#define SPC_Protocol           127
+#define SPC_Unexpected_Reply   128
+#define SPC_No_Channel         129
+#define SPC_Illegal_Iomode     130
+#define SPC_No_Signal_Handler  131
+#define SPC_Bad_Operation      132
+#define SPC_Bad_Fd             133
+#define SPC_Bad_Ioctl          134
+#define SPC_Bad_Select         135
+#define SPC_Bind_Timeout       136
+#define SPC_Arg_Too_Long       137
+#define SPC_Write_Prot         138
+#define SPC_Bad_Username       139
+#define SPC_Bad_Password       140
+#define SPC_Client_Not_Valid   141
+#define SPC_Cannot_Open_Slave  142
+/* #define SPC_Register_Error     143 */ /* This has been obsoleted by the
+                                            expanded register errors below */
+#define SPC_Protocol_Abort     144
+#define SPC_Env_Too_Big        145
+#define SPC_Unlink_Logfile     146
+#define SPC_Closed_Channel     147
+#define SPC_Bad_Authentication 148
+#define SPC_Cannot_Open_Log    149
+#define SPC_Connection_Reset   150
+#define SPC_Register_Username  151
+#define SPC_Register_Netrc     152
+#define SPC_Register_Open      153
+#define SPC_Register_Handshake 154
+
+#define SPC_Bad_Termios_Mode   155
+#define SPC_Bad_Termios_Speed  156
+#define SPC_Bad_Termios_CC     157
+#define SPC_Bad_Termios_Proto  158
+
+#define SPC_Bad_Signal_Name    159
+#define SPC_Bad_Signal_Value   160
+#define SPC_Bad_Signal_Format  161
+
+#define SPC_Bad_tc_Call        162
+
+#define SPC_cannot_Chdir       163
+
+#define SPC_Bad_Permission     164
+#define SPC_Cannot_Create_Netfilename  165
+#define SPC_Protocol_Version_Error     166
+
+/* JET - a special error code for goobers trying to overflow our buffers. */
+/* VU#172583 */
+#define SPC_Buffer_Overflow    167
+
+/* Keep this up to date with the last error number declared above */
+#define SPC_Max_Error          168
+
+/* The definition of the SPC Error structure has been moved to spc.h
+   (to make it public) */
+
+#endif /*  _spcE_h */
diff --git a/cde/include/SPC/spcP.h b/cde/include/SPC/spcP.h
new file mode 100644 (file)
index 0000000..603817b
--- /dev/null
@@ -0,0 +1,564 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * $XConsortium: spcP.h /main/4 1996/05/15 12:01:55 drk $
+ * Language:     C
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1988,1993,1994,1996 Hewlett-Packard Company.
+ * (c) Copyright 1993,1994,1996 International Business Machines Corp.
+ * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993,1994,1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef _spcP_h
+#define _spcP_h
+
+#include <netdb.h>             /* hostent */
+#include <termios.h>
+
+#include <bms/bms.h>
+#include <bms/Symbolic.h>
+#include <bms/XeUserMsg.h>
+#include <bms/SbEvent.h>
+#include <bms/spc.h>
+#include <bms/scoop.h>
+#include <bms/connect.h>
+#include <bms/MemoryMgr.h>
+
+#include "chars.h"
+#include "spcE.h"
+#include "spc-obj.h"
+
+/* ---------------------------------------------------------------------- */
+
+#ifndef CDE_CONFIGURATION_TOP
+#define CDE_CONFIGURATION_TOP          "/etc/opt/dt"
+#endif
+#ifndef CDE_INSTALLATION_TOP
+#define CDE_INSTALLATION_TOP           "/usr/dt"
+#endif
+
+#define Stdin(chn)     chn->file_descs[STDIN]
+#define Stdout(chn)    chn->file_descs[STDOUT]
+#define Stderr(chn)    chn->file_descs[STDERR]
+
+/* Some necessary identifiers */
+#define OK             0
+#define ERROR          -1
+#define Undefined      -1
+
+/* Some character constants */
+
+#define Channel_ByteID (XeChar)'\077'
+
+/* And finally, the common channel identifier */
+#ifndef BITSPERBYTE
+#define BITSPERBYTE 8
+#endif
+#define CID_High_Bits  (Channel_ByteID << (BITSPERBYTE * (sizeof(int) - 1)))
+#define CID_Middle_Bits        (0x1010 << BITSPERBYTE)
+#define CID_Low_Bits   (Channel_ByteID & 0xff)
+
+#define Channel_Identifier     (CID_High_Bits | CID_Middle_Bits | CID_Low_Bits)
+
+/*** Note: If device names ever increase from: /dev/ptym/ptyp0, look here ***/
+#define PTY_NAMLEN             20
+#define EXCEPT_FLAG             -1 /* Used for TIOC handling in PTY's */
+
+/* Define lengths of buffers for protocol requests and other sizes of things */
+
+#define REQUEST_HEADER_LENGTH 20
+#define MAXREQLEN  (SPC_BUFSIZ+REQUEST_HEADER_LENGTH)
+#define DEFAULT_ENVP_SIZE     50
+
+/*
+ **
+ ** Definitions for select.
+ **
+*/
+
+extern int max_fds;
+
+/*
+ * Macros to access SPC_IOMode bit fields
+ */
+
+/* These are derived from above spc bit specifications */
+#define IS_SPCIO_STDIN(a)      (a & SPCIO_WRITEONLY)
+#define IS_SPCIO_STDOUT(a)     (a & SPCIO_READONLY)
+#define IS_SPCIO_STDERR(a)     (a & SPCIO_ERRORONLY)
+#define IS_SPCIO_SEPARATE(a)   (a & SPCIO_SEPARATEREADERROR)
+
+#define IS_SPCIO_NOIO(a)       ((a & SPCIO_SOURCE_MASK) == SPCIO_NOIO)
+#define IS_SPCIO_WRITEONLY(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEONLY)
+#define IS_SPCIO_READONLY(a)   ((a & SPCIO_SOURCE_MASK) == SPCIO_READONLY)
+#define IS_SPCIO_READWRITE(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_READWRITE)
+#define IS_SPCIO_ERRORONLY(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_ERRORONLY)
+#define IS_SPCIO_WRITEERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEERROR)
+#define IS_SPCIO_READERROR(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_READERROR)
+#define IS_SPCIO_READWRITEERROR(a)((a&SPCIO_SOURCE_MASK) == SPCIO_READWRITEERROR)
+
+/* Style flags (mutually exclusive) */
+#define IS_SPCIO_PIPE(a)       ((a & SPCIO_STYLE_MASK) == SPCIO_PIPE)
+#define IS_SPCIO_PTY(a)         ((a & SPCIO_STYLE_MASK) == SPCIO_PTY)
+#define IS_SPCIO_NOIOMODE(a)   ((a & SPCIO_STYLE_MASK) == SPCIO_NOIOMODE)
+
+#define IS_SPCIO_LINEEDIT(a)   (a & SPCIO_LINEEDIT)
+
+/* Other non-mutually exclusive flags */
+#define IS_SPCIO_SYSTEM(a)     (a & SPCIO_SYSTEM)
+#define IS_SPCIO_LINEORIENTED(a)(a & SPCIO_LINEORIENTED)
+#define IS_SPCIO_WAIT(a)       (a & SPCIO_WAIT)
+#define IS_SPCIO_TOOLKIT(a)     (a & SPCIO_USE_XTOOLKIT)
+#define IS_SPCIO_SYNC_TERM(a)   (a & SPCIO_SYNC_TERMINATOR)
+#define IS_SPCIO_USE_LOGFILE(a) (a & SPCIO_USE_LOGFILE)
+
+#define IS_SPCIO_SIGNAL_PGRP(a) (a & SPCIO_SIGNAL_PGRP)
+#define IS_SPCIO_FORCE_CONTEXT(a) (a & SPCIO_FORCE_CONTEXT)
+
+#define SPCIO_HAS_DATA          0x2000  /* Used for line-oriented IO */
+#define HAS_DATA(chn)           (((chn->IOMode) & SPCIO_HAS_DATA) == SPCIO_HAS_DATA)
+
+#define SPCIO_UNUSED3           0x80000
+
+/* Flags for internal use only */
+
+#define SPCIO_DEALLOC_ARGV         0x4000
+#define IS_SPCIO_DEALLOC_ARGV(a)   (a & SPCIO_DEALLOC_ARGV)
+
+#define SPCIO_DELAY_CLOSE       0x8000
+#define IS_SPCIO_DELAY_CLOSE(a) (a & SPCIO_DELAY_CLOSE)
+
+#define SPCIO_DO_CLOSE         0x10000
+#define IS_SPCIO_DO_CLOSE(a)   (a & SPCIO_DO_CLOSE)
+
+/* Make sure that STATE_OFFSET is always such that you will clear the
+   IOMode flags */
+
+#define STATE_OFFSET            24  
+#define SPCIO_ACTIVE           (1<<STATE_OFFSET) /* channel has subprocess */
+#define SPCIO_DATA             (2<<STATE_OFFSET) /* channel has data */
+
+#define IS_SPCIO_ACTIVE(a)     (a & SPCIO_ACTIVE)
+#define IS_SPCIO_DATA(a)        (a & SPCIO_DATA)
+
+#define IS_ACTIVE(chn)          (IS_SPCIO_ACTIVE(chn->IOMode))
+#define IS_DATA(chn)            (IS_SPCIO_DATA(chn->IOMode))
+
+#define IS_REMOTE(chn)          (chn->connection)
+
+/* SPC state machine */
+
+#define CHANNEL_STATE(io_mode)              ((io_mode)>>STATE_OFFSET & 0x3)
+#define MAKE_CHANNEL_STATE(io_mode, _state) \
+  (((_state)<<STATE_OFFSET)   | (io_mode & ~(0x3<<STATE_OFFSET)))
+#define MAKE_STATE(_data,_proc)             ((_data)<<1    | (_proc))
+#define MAKE_STATE_INDEX(_old,_new)         ((_old)<<2     | (_new))
+#define DATA_LINE(_state)                   ((_state) >> 1)
+#define PROC_LINE(_state)                   ((_state) &  1)
+
+/* Defaults */
+
+#define DEFAULT_CHANNEL_CLASS pty_channel_class
+#define IS_SPCIO_DEFAULT(a)   !((a) & SPCIO_STYLE_MASK)
+#define SPCIO_DEFAULT         SPCIO_PTY
+
+/*
+ * Type definitions for SPC file descriptors
+ */
+
+/* Definitions for wires */
+
+#define READ_SIDE       0
+#define WRITE_SIDE      1
+
+/*
+ * Constants and external declarations for managing the SPC daemon's
+ * logfile list, exit timer and process id list.
+ */
+#define SPCD_DEFAULT_TIMEOUT                           10
+#define SPCD_DEAD_PROCESS                              -1
+#define SPCD_NO_TIMER                                  -1
+#define SPCD_REQUEST_PENDING                   1
+#define SPCD_NO_REQUEST_PENDING                        0
+
+/*
+ * Constants for the 'SPC_who_am_i' variable.
+ */
+#define SPC_I_AM_A_CLIENT                      1
+#define SPC_I_AM_A_DAEMON                      2
+
+/*
+ * External variables defined in noio.c
+ */
+extern char **SPC_logfile_list;
+
+/*
+ * External variables defined in spc-exec.c
+ */
+extern pid_t *SPC_pid_list;
+extern char *SPC_mount_point_env_var;
+
+/*
+ * External variables defined in spc-obj.c
+ */
+extern int SPC_who_am_i;
+
+/*
+ * The client version number.
+ */
+extern int SPC_client_version_number;
+
+/*
+ * The name of the directory used for authentication and
+ * for temporary logfiles.
+ */
+extern XeString SPCD_Authentication_Dir;
+
+/*
+ * Definitions for file locations
+ */
+#define SPCD_ENV_INSTALL_DIRECTORY     CDE_INSTALLATION_TOP "/config"
+#define SPCD_ENV_CONFIG_DIRECTORY       CDE_CONFIGURATION_TOP "/config"
+#define SPCD_ENV_HOME_DIRECTORY                ".dt"
+#define SPCD_ENV_FILE                  "dtspcdenv"
+#define SPCD_PROG_NAME                 "dtspcd"
+
+/*
+ * The name of the remove environment 'keyword'.
+ */
+#define SPC_REMOVE_VAR                 "unset"
+
+/*
+ ***
+ *** Start typedefs
+ ***
+*/
+
+typedef int Files[3];           /* Standard set of file descriptors */
+typedef int SPC_IOMode;                /* Sub-Process Control IO Mode Bits */
+
+/* This is a "wire", a data structure used in creating communication paths
+   to / from a subprocess.  It encapsulates all the information needed by
+   all types of paths */
+  
+typedef struct _wire {
+  SPC_IOMode flags;             /* Basically, acts like an IOMode, but
+                                  we are only interested in its data bits */
+  int fd[2];
+  XeString master_name, slave_name;
+  int read_toolkit_id, except_toolkit_id;
+  struct termios master_termio, slave_termio;
+  struct _wire *next;
+} Wire;
+
+typedef struct _buffered_data {
+  XeChar data[MAXREQLEN];
+  int len, offset;
+} buffered_data, *buffered_data_ptr;
+
+typedef enum {
+  SPC_Input,
+  SPC_Exception,
+  SPC_Terminator,
+  SPC_Client
+  } SPC_Callback_Condition;
+
+/*
+ * Type definition for an SPC Connection (a socket to SPCD server)
+ */
+
+typedef struct _SPC_Connection {
+                                      /* The host on which other end resides */
+  XeChar          hostname[MAXHOSTNAMELEN];
+  int            sid;                /* The Socket ID */
+  XeChar         connected;          /* Whether server connection is made */
+  struct hostent *local;              /* socket address information for */
+  struct hostent *remote;            /* ... local, remote machine */
+  int            termination_id;
+  struct _SPC_Connection 
+                  *next;             /* The next server in the list */
+  XeQueue         queued_remote_data; /* queue for remote data */
+  int            protocol_version;   /* Version of protocol of remote */
+  XeString        hostinfo;          /* Info about remote, (type, os, etc) */
+
+} SPC_Connection, *SPC_Connection_Ptr;
+
+/*
+ * This next macro returns a newly allocated string.  
+ * The caller should free it.
+ */
+
+#define CONNECTION_HOSTNAME(conn) \
+    ((conn->remote) ? XeFindShortHost((conn)->remote->h_name) : \
+     Xestrdup(XeString_Empty))
+
+/*
+ * Type definition for an SPC Channel
+ */
+
+typedef int (*SPC_F_read_filter)(SPC_Channel_Ptr, int, XeString, int);
+
+typedef struct _SPC_Channel {  /* Sub-Process Control Channel */
+
+  /* stuff for SCOOP */
+  channel_clasp class_ptr;
+  root_object_part
+
+  /* First, we place a channel identifier, so we can check cid (see below) */
+  int identifier;              /* The common identifier for every channel */
+
+  /* The setup request information */
+  SPC_Connection *connection;  /* The connection structure (Local = NULL) */
+
+  XeString context_dir;        /* Directory to "cd" to during spawn */
+  XeString path;               /* The command path pointer */
+  XeString *argv;              /* The command argument list pointers */
+  XeString *envp;              /* The command environment list pointers */
+
+  SPC_IOMode IOMode;           /* The IO Control Mode settings */
+
+  /* User defined data handling procedures */
+  SbInputHandlerProc Input_Handler;
+                                /* The user input handler routine */
+  void * client_data;          /* The user associated input handler data */
+                               /* Useful (ie.) as input Widget */
+  SPC_TerminateHandlerType Terminate_Handler;  /* The SIGCLD user handler routine */
+  void * Terminate_Data;       /* The client_data for user handler routine */
+
+  /* Now the recorded information */
+
+  int pid;                     /* The child Process IDentification number */
+                               /* Also the RPID for a Remote channel */
+  int cid;                     /* The remote Channel IDentification number */
+  int status;                  /* The Process status */
+  Wire *wires[3];              /* The read side/write side file descriptors */
+  Files file_descs;             /* Which file descriptors to use */
+  Wire *wire_list;              /* Pointer to list of wires we have
+                                  (used for reset & pre_fork processing) */
+  buffered_data_ptr linebufs[3]; /* Buffers for lined oriented IO */
+  SPC_F_read_filter read_filter;
+                                /* Function to use to read.  It may
+                                  be the actual read method, or it
+                                  may be a filter for newlines
+                                  (which would eventually call the read
+                                  method) */
+  XeQueue  queued_remote_data;  /* queue for remote data */
+  XeString logfile;             /* logfile name for SPCIO_USE_LOGFILE */
+  int      close_timeout;       /* Amount of time to wait for a pty close */
+  struct _SPC_Channel *next;   /* The next active channel */
+
+  int    sync_pipe[2];         /* Only used in pty.c for __hpux_pty */
+
+} SPC_Channel;
+
+/* The default shell when none can be derived */
+#ifdef hpV4
+#define DEFAULT_SHELL  (XeString ) "/usr/bin/sh"
+#else
+#define DEFAULT_SHELL  (XeString ) "/bin/sh"
+#endif /* hpV4 */
+
+/* Some macros which define the bit field portions of a wait() status */
+/* NOTE: These should be independent of integer word size */
+#define WAIT_STATUS_MASK       0xff
+#define IS_WAIT_STATUS_STOPPED 0177
+#define IS_WAIT_STATUS_EXITED  0000
+#define IS_WAIT_STATUS_DUMPED  0200
+
+typedef unsigned long SPCInputId;
+
+/* SPC/local.c */
+int close_local_channel_object (SPC_Channel_Ptr channel);
+int write_local_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
+int signal_local_channel_object (SPC_Channel_Ptr channel, int sig);
+int local_channel_object_wait_for_termination (SPC_Channel_Ptr channel);
+int remove_logfile_local_channel_object (SPC_Channel_Ptr channel);
+void local_channel_object_input_handler (void * client_data, int *source, SPCInputId *id);
+int local_channel_object_send_eof(SPC_Channel_Ptr channel);
+
+/* noio.c */
+void noio_channel_class_init (object_clasp c);
+SPC_Channel_Ptr open_noio_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
+int read_noio_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
+int write_noio_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
+int pre_fork_noio_channel_object (SPC_Channel_Ptr channel);
+int post_fork_noio_channel_object (SPC_Channel_Ptr channel, int parentp);
+int reset_noio_channel_object (SPC_Channel_Ptr channel);
+int attach_noio_channel_object (SPC_Channel_Ptr channel, int);
+void noio_channel_object_input_handler (void * client_data, int *source, SPCInputId *id);
+int send_eof_noio_channel_object(SPC_Channel_Ptr channel);
+int set_termio_noio_channel_object(SPC_Channel_Ptr, int, int, struct termios *);
+
+/* pipe.c */
+void pipe_channel_class_init (object_clasp c);
+Wire *getpipe (Wire *prevwire);
+SPC_Channel_Ptr open_pipe_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
+int read_pipe_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
+int pre_fork_pipe_channel_object (SPC_Channel_Ptr channel);
+int post_fork_pipe_channel_object (SPC_Channel_Ptr channel, int parentp);
+int reset_pipe_channel_object (SPC_Channel_Ptr channel);
+int attach_pipe_channel_object (SPC_Channel_Ptr channel, int);
+int add_input_pipe_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
+
+
+/* pty.c */
+void pty_channel_class_init (object_clasp c);
+SPC_Channel_Ptr open_pty_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
+int read_pty_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
+int pre_fork_pty_channel_object (SPC_Channel_Ptr channel);
+int post_fork_pty_channel_object (SPC_Channel_Ptr channel, int parentp);
+int reset_pty_channel_object (SPC_Channel_Ptr channel);
+int attach_pty_channel_object (SPC_Channel_Ptr channel, int pid);
+int add_input_pty_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
+int set_termio_pty_channel_object(SPC_Channel_Ptr channel, int, int,
+                                 struct termios *);
+struct termios *SPC_Get_Current_Termio(void);
+int SPC_Setpgrp(int);
+
+/* remote.c */
+void remote_channel_class_init (object_clasp c);
+Wire *get_new_remote_wire (Wire *prevwire);
+SPC_Channel_Ptr open_remote_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
+int close_remote_channel_object (SPC_Channel_Ptr channel);
+int reset_remote_channel_object (SPC_Channel_Ptr channel);
+int exec_proc_remote_channel_object (SPC_Channel_Ptr channel);
+int write_remote_channel_object (SPC_Channel_Ptr channel, XeString buffer, int len);
+int read_remote_channel_object (SPC_Channel_Ptr channel, int connection, XeString buffer, int len);
+int signal_remote_channel_object (SPC_Channel_Ptr channel, int sig);
+int attach_remote_channel_object (SPC_Channel_Ptr channel, int pid);
+int remove_logfile_remote_channel_object (SPC_Channel_Ptr channel);
+int add_input_remote_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
+int SPC_Debug_Mode (SPC_Channel_Ptr channel, XeString file);
+int send_eof_remote_channel_object(SPC_Channel_Ptr channel);
+int set_termio_remote_channel_object(SPC_Channel_Ptr channel,
+                                    int, int, struct termios *);
+
+
+/* spc-env.c */
+XeString SPC_Getenv (XeString var, XeString *envp);
+XeString *SPC_Putenv (XeString val, XeString *envp);
+XeString *SPC_Add_Env_File (XeString filename, XeString *envp);
+XeString *SPC_Create_Default_Envp (XeString *old_envp);
+XeString *SPC_Fixup_Environment (XeString *envp, SPC_Channel_Ptr channel);
+XeString *SPC_Merge_Envp (XeString *dest_envp, XeString *source_envp);
+void SPC_Free_Envp (XeString *envp);
+
+
+/* spc-exec.c */
+int SPC_Setup_Synchronous_Terminator (void);
+SPC_Connection_Ptr SPC_Channel_Terminator_Connection (SPC_Channel_Ptr channel);
+void SPC_Close_Unused (void);
+int SPC_MakeSystemCommand (SPC_Channel_Ptr channel);
+void SPC_Child_Terminated(int);
+int exec_proc_local_channel_object (SPC_Channel_Ptr channel);
+
+
+/* spc-net.c */
+Boolean SPC_Init_Local_Host_Info (void);
+int SPC_Local_Hostname (XeString hostname);
+SPC_Connection_Ptr SPC_Open_Connection (XeString hostname);
+int SPC_Open_Socket (SPC_Connection_Ptr conn, int type);
+int SPC_Contact_Server (SPC_Connection_Ptr connection);
+SPC_Connection_Ptr SPC_Init_Child (SPC_Connection_Ptr conn, int from);
+SPC_Connection_Ptr SPC_Standalone_Daemon (SPC_Connection_Ptr conn);
+int SPC_Inetd_Daemon (SPC_Connection_Ptr conn);
+SPC_Connection_Ptr SPC_Start_Daemon (int standalone);
+
+
+/* spc-obj.c */
+void spc_init_fds(void);
+object *alloc_channel_object (object_clasp c);
+void channel_class_init (object_clasp c);
+int SPC_ResetTerminator(void);
+int SPC_Initialize (void);
+SPC_Channel_Ptr SPC_Initialize_Channel (XeString hostname, int iomode);
+void SPC_Channel_Terminated (SPC_Channel_Ptr channel);
+int SPC_Check_Style (int iomode);
+int SPC_Transform_Iomode (int iomode);
+int SPC_Newline_Filter (SPC_Channel_Ptr channel, int connector, XeString buffer, int ntoread);
+int SPC_Input_Handler (SPC_Channel_Ptr channel, int connector);
+SPC_Channel_Ptr open_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
+int close_channel_object (SPC_Channel_Ptr channel);
+int read_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
+int write_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
+int reset_channel_object (SPC_Channel_Ptr channel);
+int pre_fork_channel_object (SPC_Channel_Ptr channel);
+int post_fork_channel_object (SPC_Channel_Ptr channel, int parentp);
+int exec_proc_channel_object (SPC_Channel_Ptr channel);
+int signal_channel_object (SPC_Channel_Ptr channel, int sig);
+int channel_object_wait_for_termination (SPC_Channel_Ptr channel);
+int attach_channel_object (SPC_Channel_Ptr channel, int pid);
+int add_input_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
+int remove_logfile_channel_object (SPC_Channel_Ptr channel);
+
+/* spc-sm.c */
+int SPC_Change_State (SPC_Channel_Ptr channel, int connector, int data_line, int process_line);
+int error_fun (SPC_Channel_Ptr channel, int connector);
+int connector_eof (SPC_Channel_Ptr channel, int connector);
+int connector_eof_with_reset (SPC_Channel_Ptr channel, int connector);
+int sigcld_with_reset (SPC_Channel_Ptr channel, int connector);
+
+/* spc-xt.c */
+
+typedef void (*spc_handler_func_type) (void *, int *, SPCInputId *);
+int SPC_Wait_For_Termination (SPC_Channel_Ptr channel);
+void SPC_XtBreak (void);
+void SPC_XtAddInput (SPC_Channel_Ptr channel, int *id_addr, int fd, spc_handler_func_type handler, SPC_Callback_Condition condition);
+void SPC_XtRemoveInput (int *id_addr, SPC_Callback_Condition condition);
+
+
+/* spc-util.c */
+Wire *get_new_wire (void);
+void free_wire (Wire *wire);
+SPC_Channel_Ptr SPC_Find_PID (int pid);
+int spc_close (int fd);
+int spc_dup2 (int from, int to);
+int SPC_fd_to_connector (SPC_Channel_Ptr channel, int fd);
+XeString *Alloc_Argv (int n);
+void SPC_Conditional_Packet_Handler (void * client_data, int *source, SPCInputId *id);
+int sprintf_len (XeString s, XeString format, ...);
+typedef Boolean (path_search_predicate)(XeString, XeString, XeString);
+Boolean path_search (XeString path, XeString filename, path_search_predicate p);
+
+
+/* spc-error.c */
+XeString SPC_copy_string (XeString str);
+void SPC_Error (int error, ...);
+int SPC_Make_Log_Filename (XeString name, int unique);
+int SPC_Open_Log (XeString filename, int unique);
+int SPC_Close_Log (void);
+int SPC_Write_Log (XeString str);
+int SPC_Format_Log (XeString format, ...);
+SPCError *SPC_Lookup_Error (int errornum);
+SPCError *SPC_Lookup_Error (int errornum);
+
+
+/* spc-termio.c */
+XeString SPC_Decode_Termios( struct termios * );
+void SPC_Encode_Termios(XeString buff, struct termios *tio);
+
+#endif /* _spcP_h */
diff --git a/cde/include/Tt/tt_c.h b/cde/include/Tt/tt_c.h
new file mode 100644 (file)
index 0000000..d583057
--- /dev/null
@@ -0,0 +1,703 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $TOG: tt_c.h /main/10 1999/09/16 13:46:20 mgreess $ */
+/*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  */
+/*%%  (c) Copyright 1993, 1994 International Business Machines Corp.    */
+/*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   */
+/*%%  (c) Copyright 1993, 1994 Novell, Inc.                             */
+
+/*
+ * ToolTalk 1.2 API C language headers.
+ */
+
+#ifndef _tt_c_h
+#define _tt_c_h
+
+#include <stdio.h>
+
+/* ToolTalk version - Format:
+ *
+ * <Major Release #><Minor Release #: 2 digits><Dot Release #: 2 digits>
+ *
+ * For example:
+ *              10100  --> Version  1.1.0
+ *             100102  --> Version 10.1.2
+ */
+#define TT_VERSION 10300
+
+#if defined(_EXTERN_) && defined(__STDC__)
+#      define _TT_CONST
+#      define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x##name ()
+#else
+#if defined(_EXTERN_)
+#      define _TT_CONST
+#      define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x/**/name ()
+#else
+#if defined(_NAMES_)
+#      define _TT_CONST
+#      define _TT_EXTERN_FUNC(type,name,list)name
+#else
+#if defined(_XSCHEME_)
+#      define _TT_CONST const
+#      define _TT_EXTERN_FUNC(type,name,list)type; name; list
+#else
+#if defined(__cplusplus)
+/* C++ 2.0 or later*/
+#      define _TT_CONST const
+#      define _TT_EXTERN_FUNC(type,name,list) extern "C" { type name list; }
+#else
+#if defined(__STDC__) 
+/* ANSI C */
+#      define _TT_CONST const
+#      define _TT_EXTERN_FUNC(type,name,list) type name list;
+#else
+/* Sun C (K&R C, almost) */
+#      define _TT_CONST
+#      define _TT_EXTERN_FUNC(type,name,list) type name();
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+
+#if !defined(_EXTERN_) && !defined(_NAMES_) && !defined(_XSCHEME_) 
+
+#if !defined(_XENUMS_) && !defined(_TYPES_)
+#include <sys/types.h>
+#endif
+
+#include <rpc/types.h>
+#include <rpc/xdr.h>
+
+/* former status 1030 removed, but not used, for backward compatibility. */
+typedef enum tt_status {
+        TT_OK                  = 0,
+        TT_WRN_NOTFOUND                = 1,
+       TT_WRN_STALE_OBJID      = 2,
+        TT_WRN_STOPPED         = 3,
+       TT_WRN_SAME_OBJID       = 4,
+       TT_WRN_START_MESSAGE    = 5,
+       TT_WRN_NOT_ENABLED      = 6,
+       TT_WRN_APPFIRST         = 512,
+       TT_WRN_LAST             = 1024,
+        TT_ERR_CLASS           = 1025,
+        TT_ERR_DBAVAIL                 = 1026,
+        TT_ERR_DBEXIST         = 1027,
+       TT_ERR_FILE             = 1028,
+       TT_ERR_INVALID          = 1029,
+        TT_ERR_MODE            = 1031,
+       TT_ERR_ACCESS           = 1032,
+        TT_ERR_NOMP            = 1033,
+        TT_ERR_NOTHANDLER      = 1034,
+        TT_ERR_NUM             = 1035,
+        TT_ERR_OBJID           = 1036,
+        TT_ERR_OP              = 1037,
+        TT_ERR_OTYPE           = 1038,
+        TT_ERR_ADDRESS         = 1039,
+        TT_ERR_PATH            = 1040,
+        TT_ERR_POINTER         = 1041,
+        TT_ERR_PROCID          = 1042,
+        TT_ERR_PROPLEN         = 1043,
+        TT_ERR_PROPNAME                = 1044,
+        TT_ERR_PTYPE           = 1045,
+        TT_ERR_DISPOSITION     = 1046,
+        TT_ERR_SCOPE           = 1047,
+        TT_ERR_SESSION         = 1048,
+        TT_ERR_VTYPE           = 1049,
+       TT_ERR_NO_VALUE         = 1050,
+       TT_ERR_INTERNAL         = 1051,
+       TT_ERR_READONLY         = 1052,
+       TT_ERR_NO_MATCH         = 1053,
+       TT_ERR_UNIMP            = 1054,
+       TT_ERR_OVERFLOW         = 1055,
+       TT_ERR_PTYPE_START      = 1056,
+       TT_ERR_CATEGORY         = 1057,
+       TT_ERR_DBUPDATE         = 1058,
+       TT_ERR_DBFULL           = 1059,
+       TT_ERR_DBCONSIST        = 1060,
+       TT_ERR_STATE            = 1061,
+       TT_ERR_NOMEM            = 1062,
+       TT_ERR_SLOTNAME         = 1063,
+       TT_ERR_XDR              = 1064,
+       TT_ERR_NETFILE          = 1065,
+       TT_ERR_TOOLATE          = 1066,
+       TT_ERR_AUTHORIZATION    = 1067,
+       TT_ERR_VERSION_MISMATCH = 1068,
+       TT_DESKTOP_             = 1100,
+       TT_DESKTOP_EPERM        = 1101,
+       TT_DESKTOP_ENOENT       = 1102,
+       TT_DESKTOP_EINTR        = 1104,
+       TT_DESKTOP_EIO          = 1105,
+       TT_DESKTOP_EAGAIN       = 1111,
+       TT_DESKTOP_ENOMEM       = 1112,
+       TT_DESKTOP_EACCES       = 1113,
+       TT_DESKTOP_EFAULT       = 1114,
+       TT_DESKTOP_EEXIST       = 1117,
+       TT_DESKTOP_ENODEV       = 1119,
+       TT_DESKTOP_ENOTDIR      = 1120,
+       TT_DESKTOP_EISDIR       = 1121,
+       TT_DESKTOP_EINVAL       = 1122,
+       TT_DESKTOP_ENFILE       = 1123,
+       TT_DESKTOP_EMFILE       = 1124,
+       TT_DESKTOP_ETXTBSY      = 1126,
+       TT_DESKTOP_EFBIG        = 1127,
+       TT_DESKTOP_ENOSPC       = 1128,
+       TT_DESKTOP_EROFS        = 1130,
+       TT_DESKTOP_EMLINK       = 1131,
+       TT_DESKTOP_EPIPE        = 1132,
+       TT_DESKTOP_ENOMSG       = 1135,
+       TT_DESKTOP_EDEADLK      = 1145,
+       TT_DESKTOP_ECANCELED    = 1147,
+       TT_DESKTOP_ENOTSUP      = 1148,
+       TT_DESKTOP_ENODATA      = 1161,
+       TT_DESKTOP_EPROTO       = 1171,
+       TT_DESKTOP_ENOTEMPTY    = 1193,
+       TT_DESKTOP_ETIMEDOUT    = 1245,
+       TT_DESKTOP_EALREADY     = 1249,
+       TT_DESKTOP_UNMODIFIED   = 1299,
+       TT_MEDIA_ERR_SIZE       = 1300,
+       TT_MEDIA_ERR_FORMAT     = 1301,
+       TT_AUTHFILE_ACCESS      = 1400,
+       TT_AUTHFILE_LOCK        = 1401,
+       TT_AUTHFILE_LOCK_TIMEOUT = 1402,
+       TT_AUTHFILE_UNLOCK      = 1403,
+       TT_AUTHFILE_MISSING     = 1404,
+       TT_AUTHFILE_ENTRY_MISSING = 1405,
+       TT_AUTHFILE_WRITE       = 1406,
+       TT_ERR_APPFIRST         = 1536,
+       TT_ERR_LAST             = 2047,
+        TT_STATUS_LAST                 = 2048} Tt_status;
+
+
+typedef enum tt_filter_action {
+       TT_FILTER_CONTINUE      = 0, 
+       TT_FILTER_STOP          = 1, 
+       TT_FILTER_LAST          = 2} Tt_filter_action;
+
+typedef enum tt_callback_action {
+       TT_CALLBACK_CONTINUE    = 0,
+       TT_CALLBACK_PROCESSED   = 1,
+       TT_CALLBACK_LAST        = 2} Tt_callback_action;
+
+typedef enum tt_mode {
+       TT_MODE_UNDEFINED       = 0,
+        TT_IN                  = 1,
+        TT_OUT                 = 2,
+        TT_INOUT               = 3,
+        TT_MODE_LAST           = 4} Tt_mode;
+
+typedef enum tt_scope {
+       TT_SCOPE_NONE           = 0,
+        TT_SESSION             = 1,
+        TT_FILE                        = 2,
+        TT_BOTH                        = 3,
+       TT_FILE_IN_SESSION      = 4} Tt_scope;
+
+typedef enum tt_class {
+       TT_CLASS_UNDEFINED      = 0,
+        TT_NOTICE              = 1,
+        TT_REQUEST             = 2,
+       TT_OFFER                = 3,
+        TT_CLASS_LAST          = 4} Tt_class;
+
+typedef enum tt_category {
+       TT_CATEGORY_UNDEFINED   = 0,
+        TT_OBSERVE             = 1,
+        TT_HANDLE              = 2,
+        TT_HANDLE_PUSH         = 3,
+        TT_HANDLE_ROTATE       = 4,
+        TT_CATEGORY_LAST       = 5} Tt_category;
+
+typedef enum tt_address {
+        TT_PROCEDURE           = 0,
+        TT_OBJECT              = 1,
+       TT_HANDLER              = 2,
+       TT_OTYPE                = 3,
+        TT_ADDRESS_LAST                = 4} Tt_address;
+
+typedef enum tt_disposition {
+        /* Flag bits, not enumerated values */
+       TT_DISCARD              = 0, /* for resetting value */
+        TT_QUEUE               = 1,
+        TT_START               = 2}  Tt_disposition;
+
+typedef enum tt_state {
+        TT_CREATED             = 0,
+        TT_SENT                        = 1,
+        TT_HANDLED             = 2,
+       TT_FAILED               = 3,
+       TT_QUEUED               = 4,
+       TT_STARTED              = 5,
+       TT_REJECTED             = 6,
+       TT_RETURNED             = 7,
+       TT_ACCEPTED             = 8,
+       TT_ABSTAINED            = 9,
+        TT_STATE_LAST          = 10} Tt_state;
+
+typedef enum tt_feature {
+       _TT_FEATURE_MULTITHREADED       = 1,
+       _TT_FEATURE_LAST                = 2} Tt_feature;
+
+#define TT_FEATURE_MULTITHREADED       _TT_FEATURE_MULTITHREADED
+#define TT_FEATURE_LAST                        _TT_FEATURE_LAST
+
+#ifndef _XENUMS_
+
+/*
+ * Official properties of ToolTalk objects.
+ *
+ * ToolTalk should prevent non-root processes from setting the values
+ * of properties whose name begins with '_'.
+ *
+ * Integrators should prevent users from assigning arbitrary strings
+ * as values of properties whose name begins with '.'.  That is, "dot"
+ * properties are like "dot" files: their existence should normally be
+ * hidden from users, and the displaying and setting of their contents
+ * should be mediated programatically, sort of like the OpenWindows
+ * "props" application mediates .Xdefaults.
+ */
+#define TT_OBJECT_NAME_PROPERTY                        ".Name"
+#define TT_OBJECT_OWNER_PROPERTY               "_Owner"
+#define TT_OBJECT_GROUP_PROPERTY               "_Group"
+#define TT_OBJECT_MODE_PROPERTY                        "_Mode"
+#define TT_OBJECT_CREATION_DATE_PROPERTY       "_Creation_Date"
+
+/* 
+ * The following define opaque handles which can be type checked (as compared
+ * to void *).  Don't bother looking for the definitions of the structs, there
+ * aren't any.
+ */
+typedef struct _Tt_message_handle *Tt_message;
+typedef struct _Tt_pattern_handle *Tt_pattern;
+typedef struct _tt_AuthFileEntry  *Tt_AuthFileEntry;
+
+
+#if defined(__cplusplus) || defined(__STDC__)
+typedef Tt_filter_action (*Tt_filter_function)(_TT_CONST char *nodeid,
+                                              void *context,
+                                              void *accumulator);
+typedef Tt_callback_action (*Tt_message_callback) (Tt_message m,
+                                                  Tt_pattern p);
+#else
+typedef Tt_filter_action (*Tt_filter_function)();
+typedef Tt_callback_action (*Tt_message_callback)();
+#endif
+
+#endif /* _XENUMS_ */
+#endif /* _XSCHEME_  _NAMES_  _EXTERN_ */
+
+#ifndef _XENUMS_
+
+_TT_EXTERN_FUNC(char *,tt_open,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_close,(void))
+_TT_EXTERN_FUNC(char *,tt_X_session,(_TT_CONST char *xdisplay))
+
+_TT_EXTERN_FUNC(char *,tt_default_ptype,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_default_ptype_set,(_TT_CONST char * ptid))
+_TT_EXTERN_FUNC(char *,tt_default_file,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_default_file_set,(_TT_CONST char * docid))
+_TT_EXTERN_FUNC(char *,tt_default_session,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_default_session_set,(_TT_CONST char *sessid))
+_TT_EXTERN_FUNC(char *,tt_thread_session,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_thread_session_set,(_TT_CONST char *sessid))
+_TT_EXTERN_FUNC(char *,tt_default_procid,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_default_procid_set,(_TT_CONST char *procid))
+_TT_EXTERN_FUNC(char *,tt_thread_procid,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_thread_procid_set,(_TT_CONST char *procid))
+_TT_EXTERN_FUNC(char *,tt_procid_session,(_TT_CONST char *procid))
+
+_TT_EXTERN_FUNC(Tt_status,tt_file_join,(_TT_CONST char * filepath))
+_TT_EXTERN_FUNC(Tt_status,tt_file_quit,(_TT_CONST char * filepath))
+_TT_EXTERN_FUNC(Tt_status,tt_file_objects_query,
+                (_TT_CONST char * filepath,
+                 Tt_filter_function filter,
+                 void *context,void *accumulator))
+_TT_EXTERN_FUNC(Tt_status,tt_file_move,
+               (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath))
+_TT_EXTERN_FUNC(Tt_status,tt_file_copy,
+               (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath))
+_TT_EXTERN_FUNC(Tt_status,tt_file_destroy,(_TT_CONST char * filepath))
+
+_TT_EXTERN_FUNC(char *,tt_message_context_val,
+               (Tt_message m, _TT_CONST char *slotname))
+_TT_EXTERN_FUNC(Tt_status,tt_message_context_ival,
+               (Tt_message m, _TT_CONST char *slotname, int *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_context_bval,
+               (Tt_message m, _TT_CONST char *slotname,
+                unsigned char **value, int *len))
+_TT_EXTERN_FUNC(Tt_status,tt_message_context_xval,
+               (Tt_message m, _TT_CONST char *slotname,
+                xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_context_set,
+               (Tt_message m, _TT_CONST char *slotname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_icontext_set,
+               (Tt_message m, _TT_CONST char *slotname, int value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_bcontext_set,
+               (Tt_message m, _TT_CONST char *slotname,
+                _TT_CONST unsigned char *value, int len))
+_TT_EXTERN_FUNC(Tt_status,tt_message_xcontext_set,
+               (Tt_message m, _TT_CONST char *slotname,
+                xdrproc_t xdr_proc, void *value))
+
+_TT_EXTERN_FUNC(Tt_status,tt_context_join,
+               (_TT_CONST char *slotname, _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_icontext_join,
+               (_TT_CONST char *slotname, int value))
+_TT_EXTERN_FUNC(Tt_status,tt_bcontext_join,
+               (_TT_CONST char *slotname,
+                _TT_CONST unsigned char *value, int len))
+_TT_EXTERN_FUNC(Tt_status,tt_xcontext_join,
+               (_TT_CONST char *slotname,
+                xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(Tt_status,tt_context_quit,
+               (_TT_CONST char *slotname, _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_icontext_quit,
+               (_TT_CONST char *slotname, int value))
+_TT_EXTERN_FUNC(Tt_status,tt_bcontext_quit,
+               (_TT_CONST char *slotname,
+                _TT_CONST unsigned char *value, int len))
+_TT_EXTERN_FUNC(Tt_status,tt_xcontext_quit,
+               (_TT_CONST char *slotname,
+                xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(int,tt_message_contexts_count,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_context_slotname,
+               (Tt_message m, int i))
+
+_TT_EXTERN_FUNC(Tt_message,tt_message_create,(void))
+_TT_EXTERN_FUNC(Tt_message,tt_message_create_super,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_destroy,(Tt_message m))
+
+_TT_EXTERN_FUNC(Tt_status,tt_message_send,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_send_on_exit,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_message,tt_message_receive,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_message_reply,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_reject,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_accept,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_fail,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_pattern,tt_message_pattern,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_callback_add,
+               (Tt_message m,Tt_message_callback f))
+
+_TT_EXTERN_FUNC(void *,tt_message_user,(Tt_message m,int key))
+_TT_EXTERN_FUNC(Tt_status,tt_message_user_set,(Tt_message m,int key,void *v))
+
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_add,
+                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_mode,tt_message_arg_mode,(Tt_message m,int n))
+_TT_EXTERN_FUNC(char *,tt_message_arg_type,(Tt_message m,int n))
+_TT_EXTERN_FUNC(char *,tt_message_arg_val,(Tt_message m,int n))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_val_set,
+                (Tt_message m,int n,_TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval,
+               (Tt_message m,int n,unsigned char **value,int *len))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval_set,
+                (Tt_message m,int n,_TT_CONST unsigned char *value,int len))
+_TT_EXTERN_FUNC(Tt_status,tt_message_barg_add,
+                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
+                _TT_CONST unsigned char *value,int len))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival,
+               (Tt_message m,int n,int *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival_set,
+                (Tt_message m,int n,int value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_iarg_add,
+                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,int value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval,
+               (Tt_message m,int n,xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval_set,
+                (Tt_message m,int n,xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(Tt_status,tt_message_xarg_add,
+                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
+                xdrproc_t xdr_proc, void *value))
+_TT_EXTERN_FUNC(int,tt_message_args_count,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_class,tt_message_class,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_class_set,
+                (Tt_message m,Tt_class c))
+_TT_EXTERN_FUNC(char *,tt_message_file,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_file_set,
+               (Tt_message m,_TT_CONST char *file))
+_TT_EXTERN_FUNC(char *,tt_message_object,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_object_set,
+               (Tt_message m,_TT_CONST char *objid))
+_TT_EXTERN_FUNC(char *,tt_message_id,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_op,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_op_set,
+               (Tt_message m,_TT_CONST char *opname))
+_TT_EXTERN_FUNC(int,tt_message_opnum,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_otype,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_otype_set,
+               (Tt_message m,_TT_CONST char *otype))
+_TT_EXTERN_FUNC(Tt_address,tt_message_address,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_address_set,
+                (Tt_message m,Tt_address p))
+_TT_EXTERN_FUNC(char *,tt_message_handler,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_handler_set,
+               (Tt_message m,_TT_CONST char *procid))
+_TT_EXTERN_FUNC(char *,tt_message_handler_ptype,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_handler_ptype_set,
+                (Tt_message m,_TT_CONST char *ptid))
+_TT_EXTERN_FUNC(int,tt_message_accepters_count,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_accepter,(Tt_message m,int n))
+_TT_EXTERN_FUNC(int,tt_message_rejecters_count,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_rejecter,(Tt_message m,int n))
+_TT_EXTERN_FUNC(int,tt_message_abstainers_count,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_abstainer,(Tt_message m,int n))
+_TT_EXTERN_FUNC(Tt_disposition,tt_message_disposition,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_disposition_set,
+                (Tt_message m,Tt_disposition r))
+_TT_EXTERN_FUNC(Tt_scope,tt_message_scope,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_scope_set,(Tt_message m,Tt_scope s))
+_TT_EXTERN_FUNC(char *,tt_message_sender,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_message_sender_ptype,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_sender_ptype_set,
+                (Tt_message m,_TT_CONST char *ptid))
+_TT_EXTERN_FUNC(char *,tt_message_session,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_session_set,
+                (Tt_message m,_TT_CONST char *sessid))
+_TT_EXTERN_FUNC(Tt_state,tt_message_state,(Tt_message m))
+_TT_EXTERN_FUNC(int,tt_message_status,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_status_set,(Tt_message m,int status))
+_TT_EXTERN_FUNC(char *,tt_message_status_string,(Tt_message m))
+_TT_EXTERN_FUNC(Tt_status,tt_message_status_string_set,
+               (Tt_message m,_TT_CONST char *status_str))
+_TT_EXTERN_FUNC(uid_t,tt_message_uid,(Tt_message m))
+_TT_EXTERN_FUNC(gid_t,tt_message_gid,(Tt_message m))
+
+/* 
+ * The following are "macros" which provide a simpler high level
+ * interface to the above low level calls.
+ */
+_TT_EXTERN_FUNC(Tt_message,tt_pnotice_create,
+               (Tt_scope scope, _TT_CONST char *op))
+_TT_EXTERN_FUNC(Tt_message,tt_prequest_create,
+               (Tt_scope scope, _TT_CONST char *op))
+_TT_EXTERN_FUNC(Tt_message,tt_onotice_create,
+               (_TT_CONST char *objid, _TT_CONST char *op))
+_TT_EXTERN_FUNC(Tt_message,tt_orequest_create,
+               (_TT_CONST char *objid, _TT_CONST char *op))
+
+_TT_EXTERN_FUNC(char *,tt_spec_create,(_TT_CONST char * filepath))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_write,(_TT_CONST char * nodeid))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_destroy,(_TT_CONST char * nodeid))
+
+_TT_EXTERN_FUNC(char *,tt_spec_file,(_TT_CONST char * nodeid))
+_TT_EXTERN_FUNC(char *,tt_spec_type,(_TT_CONST char * nodeid))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_type_set,
+               (_TT_CONST char * nodeid,_TT_CONST char * otid))
+_TT_EXTERN_FUNC(char *,tt_spec_move,
+               (_TT_CONST char * nodeid,_TT_CONST char * newfilepath))
+_TT_EXTERN_FUNC(char *,tt_spec_propname,(_TT_CONST char *nodeid,int n))
+_TT_EXTERN_FUNC(int,tt_spec_propnames_count,(_TT_CONST char *nodeid))
+
+
+_TT_EXTERN_FUNC(char *,tt_spec_prop,
+               (_TT_CONST char *nodeid,_TT_CONST char *propname,int i))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_add,
+                (_TT_CONST char *nodeid,_TT_CONST char *propname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(int,tt_spec_prop_count,
+               (_TT_CONST char *nodeid,_TT_CONST char *propname))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_set,
+                (_TT_CONST char *nodeid,_TT_CONST char *propname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop,
+                (_TT_CONST char *nodeid,_TT_CONST char *propname,int i,
+                 unsigned char **value,int *length))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_add,
+                (_TT_CONST char *nodeid,_TT_CONST char *propname,
+                  _TT_CONST unsigned char *value,int length))
+_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_set,
+                (_TT_CONST char *nodeid,_TT_CONST char *propname,
+                _TT_CONST unsigned char *value,int length))
+
+_TT_EXTERN_FUNC(int,tt_objid_equal,
+               (_TT_CONST char * nodeid1,_TT_CONST char * nodeid2))
+_TT_EXTERN_FUNC(char *,tt_objid_objkey,(_TT_CONST char * nodeid))
+
+_TT_EXTERN_FUNC(int,tt_otype_deriveds_count,(_TT_CONST char *otype))
+_TT_EXTERN_FUNC(char *,tt_otype_derived,(_TT_CONST char *otype, int i))
+_TT_EXTERN_FUNC(char *,tt_otype_base,(_TT_CONST char *otype))
+_TT_EXTERN_FUNC(int,tt_otype_is_derived,
+               (_TT_CONST char *derivedotype, _TT_CONST char *baseotype))
+_TT_EXTERN_FUNC(int,tt_otype_osig_count,(_TT_CONST char * otype))
+_TT_EXTERN_FUNC(int,tt_otype_hsig_count,(_TT_CONST char * otype))
+_TT_EXTERN_FUNC(char *,tt_otype_osig_op,(_TT_CONST char * otype, int sig))
+_TT_EXTERN_FUNC(char *,tt_otype_hsig_op,(_TT_CONST char * otype, int sig))
+_TT_EXTERN_FUNC(int,tt_otype_osig_args_count,(_TT_CONST char * otype, int sig))
+_TT_EXTERN_FUNC(int,tt_otype_hsig_args_count,(_TT_CONST char * otype, int sig))
+_TT_EXTERN_FUNC(Tt_mode,tt_otype_osig_arg_mode,(_TT_CONST char * otype,
+                                               int sig, int arg))
+_TT_EXTERN_FUNC(Tt_mode,tt_otype_hsig_arg_mode,(_TT_CONST char * otype,
+                                               int sig, int arg))
+_TT_EXTERN_FUNC(char *,tt_otype_osig_arg_type,(_TT_CONST char * otype,
+                                               int sig, int arg))
+_TT_EXTERN_FUNC(char *,tt_otype_hsig_arg_type,(_TT_CONST char * otype,
+                                               int sig, int arg))
+
+_TT_EXTERN_FUNC(Tt_pattern,tt_pattern_create,(void))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_destroy,(Tt_pattern p))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_register,(Tt_pattern p))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_unregister,(Tt_pattern p))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_callback_add,
+               (Tt_pattern m,Tt_message_callback f))
+
+_TT_EXTERN_FUNC(void *,tt_pattern_user,(Tt_pattern p,int key))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_user_set,(Tt_pattern p,int key,void *v))
+
+_TT_EXTERN_FUNC(Tt_category,tt_pattern_category,(Tt_pattern p))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_category_set,
+                (Tt_pattern p,Tt_category c))
+
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_arg_add,
+                (Tt_pattern p,Tt_mode n,_TT_CONST char *vtype,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_barg_add,
+                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype,
+                _TT_CONST unsigned char *value,int len))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_iarg_add,
+                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, int value))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_xarg_add,
+                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype,
+                xdrproc_t xdr_proc, void *value))
+
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_class_add,
+                (Tt_pattern p,Tt_class c))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_file_add,
+               (Tt_pattern p,_TT_CONST char *file))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_object_add,
+               (Tt_pattern p,_TT_CONST char *objid))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_op_add,
+               (Tt_pattern p,_TT_CONST char *opname))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_opnum_add,(Tt_pattern p,int opnum))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_otype_add,
+               (Tt_pattern p,_TT_CONST char *otype))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_address_add,
+                (Tt_pattern p,Tt_address d))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_disposition_add,
+                (Tt_pattern p,Tt_disposition r))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_scope_add,(Tt_pattern p,Tt_scope s))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_add,
+               (Tt_pattern p,_TT_CONST char *procid))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_ptype_add,
+               (Tt_pattern p,_TT_CONST char *ptid))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_session_add,
+               (Tt_pattern p,_TT_CONST char *sessid))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_state_add,(Tt_pattern p,Tt_state s))
+
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_context_add,
+               (Tt_pattern p, _TT_CONST char *slotname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_icontext_add,
+               (Tt_pattern p, _TT_CONST char *slotname,
+                int value))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_bcontext_add,
+               (Tt_pattern p, _TT_CONST char *slotname,
+                _TT_CONST unsigned char *value, int length))
+_TT_EXTERN_FUNC(Tt_status,tt_pattern_xcontext_add,
+               (Tt_pattern p, _TT_CONST char *slotname,
+                xdrproc_t xdr_proc, void *value))
+
+_TT_EXTERN_FUNC(Tt_status,tt_ptype_declare,(_TT_CONST char * ptid))
+_TT_EXTERN_FUNC(Tt_status,tt_ptype_undeclare,(_TT_CONST char * ptid))
+_TT_EXTERN_FUNC(Tt_status,tt_ptype_exists,(_TT_CONST char * ptid))
+_TT_EXTERN_FUNC(Tt_status,tt_ptype_opnum_callback_add,
+               (_TT_CONST char * ptid, int opnum, Tt_message_callback f))
+_TT_EXTERN_FUNC(Tt_status,tt_otype_opnum_callback_add,
+               (_TT_CONST char * otid, int opnum, Tt_message_callback f))
+       
+
+_TT_EXTERN_FUNC(Tt_status,tt_session_join,(_TT_CONST char * sessid))
+_TT_EXTERN_FUNC(Tt_status,tt_session_quit,(_TT_CONST char * sessid))
+_TT_EXTERN_FUNC(char *,tt_initial_session,(void))
+
+_TT_EXTERN_FUNC(char *,tt_session_propname,(_TT_CONST char *sessid,int n))
+_TT_EXTERN_FUNC(int,tt_session_propnames_count,(_TT_CONST char *sessid))
+_TT_EXTERN_FUNC(char *,tt_session_prop,
+               (_TT_CONST char *sessid,_TT_CONST char *propname,int i))
+_TT_EXTERN_FUNC(Tt_status,tt_session_prop_add,
+                (_TT_CONST char *sessid,_TT_CONST char *propname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(int,tt_session_prop_count,
+               (_TT_CONST char *sessid,_TT_CONST char *propname))
+_TT_EXTERN_FUNC(Tt_status,tt_session_prop_set,
+               (_TT_CONST char *sessid, _TT_CONST char *propname,
+                _TT_CONST char *value))
+_TT_EXTERN_FUNC(Tt_status,tt_session_bprop,
+               (_TT_CONST char *sessid,_TT_CONST char *propname,int i,
+                unsigned char **value,int *length))
+_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_add,
+                (_TT_CONST char *sessid,_TT_CONST char *propname,
+                _TT_CONST unsigned char *value,int length))
+_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_set,
+                (_TT_CONST char *sessid,_TT_CONST char *propname,
+                _TT_CONST unsigned char *value,int length))
+_TT_EXTERN_FUNC(Tt_status,tt_session_types_load,
+                (_TT_CONST char *sessid, _TT_CONST char *filename))
+
+
+_TT_EXTERN_FUNC(int,tt_fd,(void))
+
+_TT_EXTERN_FUNC(int,tt_mark,(void))
+_TT_EXTERN_FUNC(void,tt_release,(int mark))
+_TT_EXTERN_FUNC(caddr_t,tt_malloc,(size_t s))
+_TT_EXTERN_FUNC(void,tt_free,(caddr_t p))
+
+_TT_EXTERN_FUNC(char *,tt_status_message,(Tt_status ttrc))
+_TT_EXTERN_FUNC(Tt_status,tt_pointer_error,(void *pointer))
+_TT_EXTERN_FUNC(Tt_status,tt_int_error,(int return_val))
+
+_TT_EXTERN_FUNC(void,tt_error,(const char *func,Tt_status ttrc))
+_TT_EXTERN_FUNC(void *,tt_error_pointer,(Tt_status ttrc))
+_TT_EXTERN_FUNC(int,tt_error_int,(Tt_status ttrc))
+
+_TT_EXTERN_FUNC(int,tt_trace_control,(int onoff))
+
+_TT_EXTERN_FUNC(char *,tt_message_print,(Tt_message m))
+_TT_EXTERN_FUNC(char *,tt_pattern_print,(Tt_pattern p))
+
+_TT_EXTERN_FUNC(char *,tt_file_netfile, (const char *filename))
+_TT_EXTERN_FUNC(char *,tt_netfile_file, (const char *netfilename))
+
+_TT_EXTERN_FUNC(char *,tt_host_file_netfile, (const char * host, const char * filename))
+_TT_EXTERN_FUNC(char *,tt_host_netfile_file, (const char * host, const char * netfilename))
+_TT_EXTERN_FUNC(Tt_status,tt_feature_enabled, (Tt_feature f))
+_TT_EXTERN_FUNC(Tt_status,tt_feature_required, (Tt_feature f))
+
+_TT_EXTERN_FUNC(char*, tt_AuthFileName, (void))
+_TT_EXTERN_FUNC(int, tt_LockAuthFile, (char*, int, int, long))
+_TT_EXTERN_FUNC(void, tt_UnlockAuthFile, (char*))
+_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_ReadAuthFileEntry, (FILE*))
+_TT_EXTERN_FUNC(void, tt_FreeAuthFileEntry, (Tt_AuthFileEntry))
+_TT_EXTERN_FUNC(int, tt_WriteAuthFileEntry, (FILE*, Tt_AuthFileEntry))
+_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_GetAuthFileEntry, (char*, char*, char*))
+_TT_EXTERN_FUNC(char*, tt_GenerateMagicCookie, (int))
+
+#endif /* _XENUMS_ */
+
+#define tt_ptr_error(p) tt_pointer_error((void *)(p))
+#define tt_is_err(p) (TT_WRN_LAST < (p))
+#undef _TT_EXTERN_FUNC
+#undef _TT_CONST
+#endif
diff --git a/cde/include/Tt/tttk.h b/cde/include/Tt/tttk.h
new file mode 100644 (file)
index 0000000..f3e9d0d
--- /dev/null
@@ -0,0 +1,366 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: tttk.h /main/3 1995/10/23 10:33:00 rswiston $ */
+/*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  */
+/*%%  (c) Copyright 1993, 1994 International Business Machines Corp.    */
+/*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   */
+/*%%  (c) Copyright 1993, 1994 Novell, Inc.                             */
+
+/*
+ * @(#)tttk.h  1.11 93/09/29
+ */
+
+#ifndef tttk_h
+#define tttk_h
+
+#include <Tt/tt_c.h>
+#include <X11/Intrinsic.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+typedef enum {
+       TTDT_OP_NONE,
+       TTDT_CREATED,
+       TTDT_DELETED,
+       TTDT_DO_COMMAND,
+       TTDT_SET_ENVIRONMENT,
+       TTDT_GET_ENVIRONMENT,
+       TTDT_SET_GEOMETRY,
+       TTDT_GET_GEOMETRY,
+       TTDT_SET_ICONIFIED,
+       TTDT_GET_ICONIFIED,
+       TTDT_SET_LOCALE,
+       TTDT_GET_LOCALE,
+       TTDT_SET_MAPPED,
+       TTDT_GET_MAPPED,
+       TTDT_MODIFIED,
+       TTDT_REVERTED,
+       TTDT_GET_MODIFIED,
+       TTDT_MOVED,
+       TTDT_PAUSE,
+       TTDT_RESUME,
+       TTDT_QUIT,
+       TTDT_RAISE,
+       TTDT_LOWER,
+       TTDT_SAVE,
+       TTDT_REVERT,
+       TTDT_SAVED,
+       TTDT_SET_SITUATION,
+       TTDT_GET_SITUATION,
+       TTDT_SIGNAL,
+       TTDT_STARTED,
+       TTDT_STOPPED,
+       TTDT_STATUS,
+       TTDT_GET_STATUS,
+       TTDT_GET_SYSINFO,
+       TTDT_SET_XINFO,
+       TTDT_GET_XINFO,
+       TTME_ABSTRACT,
+       TTME_DEPOSIT,
+       TTME_DISPLAY,
+       TTME_EDIT,
+       TTME_COMPOSE,
+       TTME_INTERPRET,
+       TTME_PRINT,
+       TTME_TRANSLATE,
+       TTME_MAIL,
+       TTME_MAIL_COMPOSE,
+       TTME_MAIL_EDIT,
+       TTME_INSTANTIATE,
+       TTDT_OP_LAST
+} Tttk_op;
+
+/*
+ * Standard vtype names
+ */
+extern const char      *Tttk_integer;
+extern const char      *Tttk_string;
+extern const char      *Tttk_boolean;
+extern const char      *Tttk_file;
+extern const char      *Tttk_message_id;
+extern const char      *Tttk_title;
+extern const char      *Tttk_width;
+extern const char      *Tttk_height;
+extern const char      *Tttk_xoffset;
+extern const char      *Tttk_yoffset;
+
+/*
+ **********************************************************************
+ *
+ * Procid lifecycle
+ *
+ **********************************************************************
+ */
+char                  *ttdt_open(
+                               int            *tt_fd,
+                               const char     *toolname,
+                               const char     *vendor,
+                               const char     *version,
+                               int             sendStarted
+                       );
+Tt_status              ttdt_sender_imprint_on(
+                               const char     *handler,
+                               Tt_message      commission,
+                               char          **display,
+                               int            *width,
+                               int            *height,
+                               int            *xoffset,
+                               int            *yoffset,
+                               XtAppContext    app2run,
+                               int             ms_timeout
+                       );
+Tt_status              ttdt_close(
+                               const char     *procid,
+                               const char     *newprocid,
+                               int             sendStopped
+                       );
+/*
+ **********************************************************************
+ *
+ * Sessions
+ *
+ **********************************************************************
+ */
+typedef Tt_message     (*Ttdt_contract_cb)(
+                               Tt_message      msg,
+                               void           *clientdata,
+                               Tt_message      contract
+                       );
+Tt_pattern            *ttdt_session_join(
+                               const char             *sessid,
+                               Ttdt_contract_cb        cb,
+                               Widget                  shell,
+                               void                   *clientdata,
+                                int                    join
+                       );
+Tt_status              ttdt_session_quit(
+                               const char     *sessid,
+                               Tt_pattern     *sess_pats,
+                                int            quit
+                       );
+/*
+ **********************************************************************
+ *
+ * Contracts
+ *
+ **********************************************************************
+ */
+Tt_pattern            *ttdt_message_accept(
+                               Tt_message      contract,
+                               Ttdt_contract_cb        cb,
+                               Widget          shell,
+                               void           *clientdata,
+                               int             accept,
+                               int             sendStatus
+                       );
+Tt_pattern            *ttdt_subcontract_manage(
+                               Tt_message      subcontract,
+                               Ttdt_contract_cb cb,
+                               Widget          shell,
+                               void           *clientdata
+                       );
+/*
+ **********************************************************************
+ *
+ * Desktop: Files
+ *
+ **********************************************************************
+ */
+typedef Tt_message     (*Ttdt_file_cb)(
+                               Tt_message      msg,
+                               Tttk_op         op,
+                               char           *pathname,
+                               void           *clientdata,
+                               int             same_euid_egid,
+                               int             same_procid
+                       );
+Tt_pattern            *ttdt_file_join(
+                                const char     *pathname,
+                                Tt_scope       scope,
+                               int             join,
+                               Ttdt_file_cb    cb,
+                               void           *clientdata
+                       );
+Tt_status              ttdt_file_event(
+                               Tt_message      context,
+                               Tttk_op         event,
+                               Tt_pattern     *patterns,
+                               int             send
+                       );
+Tt_status              ttdt_file_quit(
+                               Tt_pattern     *patterns,
+                               int             quit
+                       );
+int                    ttdt_Get_Modified(
+                               Tt_message      context,
+                               const char     *pathname,
+                                Tt_scope       scope,
+                               XtAppContext    app2run,
+                               int             ms_timeout
+                       );
+Tt_status              ttdt_Save(
+                               Tt_message      context,
+                               const char     *pathname,
+                                Tt_scope       scope,
+                               XtAppContext    app2run,
+                               int             ms_timeout
+                       );
+Tt_status              ttdt_Revert(
+                               Tt_message      context,
+                               const char     *pathname,
+                                Tt_scope       scope,
+                               XtAppContext    app2run,
+                               int             ms_timeout
+                       );
+Tt_message             ttdt_file_notice(
+                               Tt_message      context,
+                               Tttk_op         op,
+                               Tt_scope        scope,
+                               const char     *file,
+                               int             send_and_destroy
+                       );
+Tt_message             ttdt_file_request(
+                               Tt_message      context,
+                               Tttk_op         op,
+                               Tt_scope        scope,
+                               const char     *file,
+                               Ttdt_file_cb    cb,
+                               void           *clientdata,
+                               int             send
+                       );
+/*
+ **********************************************************************
+ *
+ * Media Exchange
+ *
+ **********************************************************************
+ */
+typedef Tt_message     (*Ttmedia_load_pat_cb)(
+                               Tt_message      msg,
+                               void           *clientdata,
+                               Tttk_op         op,
+                               Tt_status       diagnosis,
+                               unsigned char  *contents,
+                               int             len,
+                               char           *file,
+                               char           *docname
+                       );
+Tt_status              ttmedia_ptype_declare(
+                               const char     *ptype,
+                               int             base_opnum,
+                               Ttmedia_load_pat_cb     cb,
+                               void           *clientdata,
+                               int             declare
+                       );
+typedef Tt_message     (*Ttmedia_load_msg_cb)(
+                               Tt_message      msg,
+                               void           *clientdata,
+                               Tttk_op         op,
+                               unsigned char  *contents,
+                               int             len,
+                               char           *file
+                       );
+Tt_message             ttmedia_load(
+                               Tt_message              context,
+                               Ttmedia_load_msg_cb     cb,
+                               void                   *clientdata,
+                               Tttk_op                 op,
+                               const char             *media_type,
+                               const unsigned char    *contents,
+                               int                     len,
+                               const char             *file,
+                               const char             *docname,
+                               int                     send
+                       );
+Tt_status              ttmedia_load_reply(
+                               Tt_message              contract,
+                               const unsigned char    *new_contents,
+                               int                     new_len,
+                               int                     reply_and_destroy
+                       );
+Tt_status              ttmedia_Deposit(
+                               Tt_message              contract,
+                               const char             *buffer_id,
+                               const char             *media_type,
+                               const unsigned char    *new_contents,
+                               int                     new_len,
+                               const char             *file,
+                               XtAppContext            app2run,
+                               int                     ms_timeout
+                       );
+/*
+ **********************************************************************
+ *
+ * ToolTalk Toolkit
+ *
+ **********************************************************************
+ */
+void                   tttk_Xt_input_handler(
+                               XtPointer               procid,
+                               int                    *,
+                               XtInputId              *
+                       );
+Tt_status              tttk_block_while(
+                               XtAppContext            app2run,
+                               const int              *blocked,
+                               int                     ms_timeout
+                       );
+Tt_message             tttk_message_create(
+                               Tt_message              context,
+                               Tt_class                the_class,
+                               Tt_scope                the_scope,
+                               const char             *handler,
+                               const char             *op,
+                               Tt_message_callback     callback
+                       );
+Tt_status              tttk_message_destroy(
+                               Tt_message              msg
+                       );
+Tt_status              tttk_message_reject(
+                               Tt_message              msg,
+                               Tt_status               status,
+                               const char             *status_string,
+                               int                     destroy
+                       );
+Tt_status              tttk_message_fail(
+                               Tt_message              msg,
+                               Tt_status               status,
+                               const char              *status_string,
+                               int                     destroy
+                       );
+Tt_status              tttk_message_abandon(
+                               Tt_message              msg
+                       );
+Tttk_op                        tttk_string_op(
+                               const char     *s
+                       );
+char                  *tttk_op_string(
+                               Tttk_op         op
+                       );
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
diff --git a/cde/include/bms/MemoryMgr.h b/cde/include/bms/MemoryMgr.h
new file mode 100644 (file)
index 0000000..551c94a
--- /dev/null
@@ -0,0 +1,71 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         MemoryMgr.h $XConsortium: MemoryMgr.h /main/3 1995/10/26 15:45:08 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+/* Allocation routines */
+
+#ifndef  _MemoryMgr_h
+#define  _MemoryMgr_h
+
+void *XeMalloc   
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (size_t size);
+#else
+   ();
+#endif
+
+void XeFree   
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void * ptr);
+#else
+   ();
+#endif
+
+#define Xe_make_struct(type)     ((struct type *)XeMalloc(sizeof(struct type)))
+#define Xe_make_ntype(n, type)   ((type *)       XeMalloc((n)*sizeof(type)))
+#define Xe_make_buffer(size)     ((XeString)     XeMalloc(size))
+#define Xe_make_str(size)        ((XeString)     XeMalloc((size)+1))
+   
+#define XeCopyStringM(string_xxx) (string_xxx                          \
+ ? (XeString) strcpy(Xe_make_str(strlen(string_xxx)), string_xxx)      \
+ : (XeString) NULL)
+
+
+/* Dellocation */       
+
+#define Xe_release_ntype(ptr, n, type)     XeFree(ptr)
+#define Xe_release_str(ptr)                XeFree(ptr)
+
+#endif  /* _MemoryMgr_h */
+/* PLACE NOTHING AFTER THIS endif */
+
diff --git a/cde/include/bms/SbEvent.h b/cde/include/bms/SbEvent.h
new file mode 100644 (file)
index 0000000..cc4a29b
--- /dev/null
@@ -0,0 +1,97 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         SbEvent.h $XConsortium: SbEvent.h /main/3 1995/10/26 15:45:29 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _SbEvent_h
+#define _SbEvent_h
+
+typedef unsigned long SbInputId;
+
+typedef void (*SbInputCallbackProc)
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void* data, int *fd, SbInputId *id);
+#else
+   ();
+#endif
+    
+extern SbInputId (*SbAddInput_hookfn)
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+    (int fd, SbInputCallbackProc proc, void* data);
+#else
+    ();
+#endif
+    
+extern SbInputId (*SbAddException_hookfn)
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+    (int fd, SbInputCallbackProc proc, void* data);
+#else
+   ();
+#endif
+
+extern void  (*SbRemoveInput_hookfn)    
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (SbInputId id);
+#else
+   ();
+#endif
+
+extern void  (*SbRemoveException_hookfn)
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (SbInputId id);
+#else
+   ();
+#endif
+
+extern void  (*SbMainLoopUntil_hookfn)  
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (Boolean *flag);
+#else
+   ();
+#endif
+
+extern void XeCall_SbMainLoopUntil
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (Boolean *flag);
+#else
+   ();
+#endif
+
+extern void  (*SbBreakMainLoop_hookfn)  
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void);
+#else
+   ();
+#endif
+
+
+#endif /* _SbEvent_h */
diff --git a/cde/include/bms/Symbolic.h b/cde/include/bms/Symbolic.h
new file mode 100644 (file)
index 0000000..14eac3a
--- /dev/null
@@ -0,0 +1,372 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         Symbolic.h $XConsortium: Symbolic.h /main/3 1995/10/26 15:45:51 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+/*  SYMBOLS */
+
+#ifndef _Symbolic_h_
+#define _Symbolic_h_
+
+/* -------------------------------------------- */
+/* Requires:                                   */
+#ifdef __recursive_includes
+#include <bms/bms.h>
+#endif
+/* -------------------------------------------- */
+
+/****************************************************************************/
+/*  Symbol (hash) Tables                                                   */
+
+/*
+
+There are two types of symbol (hash) tables.  The common case is where the
+key (index) is ascii string.  The Xe_intern() and XeRegisterSymbol()
+routines assume this type of table.  In these cases an "XeSymbol" entry is
+created in the symbol table (see type below). After it is created a COPY of
+the string is made and stored in the "name" field.  The "value" field is
+free for the user to fill in on his own.
+
+*/
+
+typedef struct _XeSymbol {
+    XeString   name;
+    void       *value;
+} *XeSymbol;
+
+/* 
+This type is used for the XeRegisterFunction() routine.
+*/
+
+typedef void (*XeAnyFunction) ();
+
+
+/*
+The second type of table is where the user defines his own type of
+data, hash functions, compare functions, etc.   
+*/
+
+/* The following types for the the user configurable functions that */
+/* are set with the Xe_set_syms_fns() routine.                      */
+/* ---------------------------------------------------------------- */
+
+
+/* CMP_FN:                                                             */
+/*                                                                     */
+/*   Any user defined function should return "0" for a "match"                 */
+/*                                                                     */
+/*   Used for Xe_intern() and XeRegisterSymbol()                       */
+/*                                                                     */
+/*   If NO "cmp_fn", strcmp("next_table_entry"->name, "name")          */
+/*   If    "cmp_fn", cmp_fn("next_table_entry"->name, "name")          */
+/*                                                                     */
+/*   Used for Xe_intern_anysym()                                       */
+/*                                                                     */
+/*   If NO "cmp_fn", strcmp("next_table_entry"->name, "data"->name)     */
+/*   If    "cmp_fn", cmp_fn("next_table_entry",       "data")           */
+/* -------------------------------------------------------------------- */
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   typedef int (*XeSymFn_cmp) (void *, void *);     /* 0 mean match */
+#else
+   typedef int (*XeSymFn_cmp) ();
+#endif
+
+
+/* HASH_FN:                                                               */
+/*                                                                        */
+/*   Note, the internal hash function in not user accesable.              */
+/*                                                                        */
+/*   Used for Xe_intern() and XeRegisterSymbol()                          */
+/*                                                                        */
+/*   If NO "hash_fn", internal_hash("next_table_entry"->name, "name")      */
+/*   If    "hash_fn",       hash_fn("next_table_entry"->name, "name")      */
+/*                                                                        */
+/*   Used for Xe_intern_anysym()                                          */
+/*                                                                        */
+/*   If NO "hash_fn", internal_hash("next_table_entry"->name, "data"->name)*/
+/*   If    "hash_fn",       hash_fn("next_table_entry"      , "data")      */
+/* ----------------------------------------------------------------------- */
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   typedef unsigned int (*XeSymFn_hash)  (void *, unsigned int);
+#else
+   typedef unsigned int (*XeSymFn_hash)  ();
+#endif
+
+/* INIT_FN:                                                            */
+/*                                                                     */
+/*   Used for Xe_intern() and XeRegisterSymbol()                       */
+/*                                                                     */
+/*     1) A XeSymbol entry is created,                                 */
+/*        - XeSymbol->name = strdup("name"),                           */
+/*        - XeSymbol->value = NULL                                     */
+/*     2) If a "init_fn" is configured,                                */
+/*        -  XeSymbol->value = init_fn( XeSymbol, 0 )                  */
+/*                                                                     */
+/*   Used for Xe_intern_anysym()                                       */
+/*                                                                     */
+/*     1) If "size" != 0,                                              */
+/*        - malloc "size" bytes,                                       */
+/*        - copy "size" bytes from "data" into malloced space,         */
+/*        - Save pointer to malloc space as user's data pointer                */
+/*        Else                                                         */
+/*        - Save "data" as pointer to user's data                      */
+/*     3) If a "init_fn" is configured,                                        */
+/*        - call init_fn( user's data pointer, "size" )                        */
+/*        - set user's data pointer to return value of init_fn         */
+/*          ONLY if "size" was zero.                                    */
+/*                                                                     */
+/*       If size is non zero AND there is a user's malloc function,    */
+/*        beware that the return value from the malloc function is not  */
+/*        save anywhere by these routines.  If size was zero, the       */
+/*        return value of the user's function is kept.                  */
+/*                                                                     */
+/* -------------------------------------------------------------------- */
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   typedef void * (*XeSymFn_init)(void *, unsigned int);
+#else
+   typedef void * (*XeSymFn_init)();
+#endif
+
+/* CLEAN_FN:                                                           */
+/*                                                                     */
+/*   If created by Xe_intern() or XeRegisterSymbol()                   */
+/*                                                                     */
+/*     1) free(XeSymbol->name)                                         */
+/*     2) If a "clean_fn" is configured,                               */
+/*        - clean_fn(XeSymbol->value),                                 */
+/*        - the XeSymbol entry is deleted.                             */
+/*                                                                     */
+/*   If created by Xe_intern_anysym()                                  */
+/*                                                                     */
+/*     1) If a "clean_fn" is configured,                                       */
+/*        - init_fn( user's data pointer, "size" )                     */
+/*     2) If "size" != 0 during at creation time,                      */
+/*        - free( user's data pointer )                                        */
+/*                                                                     */
+/*     Take note of the what happens during creation with "size" is     */
+/*     non-zero and there is a user's malloc function.  The result of   */
+/*     the user's malloc function will be passed to this clean function */
+/*     only if "size" was zero at creation time.  Otherwise, the memory */
+/*     malloc'ed by this routine due to the non-zero size parameter is  */
+/*     what is passed to the user's clean function.                     */
+/* -------------------------------------------------------------------- */
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   typedef void (*XeSymFn_clean)  (void *);
+#else
+   typedef void (*XeSymFn_clean)  ();
+#endif
+   
+/* This is what an internal symbol table entry looks like: */
+/* ------------------------------------------------------- */
+typedef struct _XeSymtabList {
+    struct _XeSymtabList *rest;
+    void                        *data;
+    Boolean                     data_is_XeSymbol;
+    Boolean                     data_is_malloc_mem;
+} *XeSymtabList;
+
+
+/* This is the master record for a symbol table */
+/* -------------------------------------------- */
+
+typedef struct _XeSymTable
+{
+    unsigned int   hashsize;    /* # of hash buckets.                   */
+    XeSymtabList   *list;      /* Hash buckets.                        */
+
+    XeSymtabList   curr_list;   /* Used to dump/traver the table.       */
+    unsigned int   curr_hash;
+    
+    XeSymFn_cmp    cmp_fn;      /* Read above description with each     */
+    XeSymFn_hash   hash_fn;     /* function typedef for more info.      */
+    XeSymFn_init   init_fn;    
+    XeSymFn_clean  clean_fn;   
+} *XeSymTable;
+
+
+/* Create a new hashtable. "hashsize must be power of 2 if using default */
+/* hash function (no checking is done to ensure this).                   */
+/* --------------------------------------------------------------------- */
+XeSymTable Xe_new_symtab
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (unsigned int hashsize);
+#else
+   ();
+#endif
+
+
+/* Create the default symbol table.  If already created, just */
+/* return the symtable pointer.                              */
+/* ---------------------------------------------------------- */
+XeSymTable Xe_default_symtab
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void);
+#else
+   ();
+#endif
+
+
+/* Configure user defined function for use with symtab routines.   */
+/* NOTE: Be sure you understand the interaction of these functions */
+/*       Read the decriptions with each of the typdef's above.  A  */
+/*       null function pointer will overwrite any previously       */
+/*       installed value.                                         */
+/* --------------------------------------------------------------- */
+XeSymTable Xe_set_sym_fns
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeSymTable     t, 
+    XeSymFn_cmp    cmp_fn, 
+    XeSymFn_init   init_fn,
+    XeSymFn_clean  clean_fn, 
+    XeSymFn_hash   hash_fn);
+#else
+   ();
+#endif
+
+
+/* Find or create a symbol for "name".  Its "value" is set to NULL.  */
+/* None of the user defined init/cmp, etc functions are honored by   */
+/* this routine                                                      */
+/* WARNING: Read the notes for the function typedef's above.         */
+/* ----------------------------------------------------------------- */
+XeSymbol Xe_intern 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeSymTable t, ConstXeString const name);
+#else
+   ();
+#endif
+
+
+/* Find the symbol for "name".  NULL is returned if not found.       */
+/* None of the user defined init/cmp, etc functions are honored by   */
+/* this routine                                                      */
+/* WARNING: Read the notes for the function typedef's above.         */
+/* ----------------------------------------------------------------- */
+XeSymbol Xe_lookup
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeSymTable t, ConstXeString const name);
+#else
+   ();
+#endif
+
+/****************************************************************************/
+/*  LISTS                                                                  */
+
+typedef struct _XeList {   
+   struct _XeList *rest;
+   void          *data; 
+} *XeList;
+
+/* make a list from data and rest */
+/* ------------------------------ */
+XeList Xe_make_list 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void *data, XeList rest);
+#else
+   ();
+#endif
+
+
+/****************************************************************************/
+/* QUEUES                                                                  */
+
+typedef struct _XeQueue {
+  XeList head;
+  XeList tail;
+  void * null;      
+} *XeQueue;
+
+/* for static or auto struct queues */
+/* -------------------------------- */
+XeQueue Xe_init_queue 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeQueue q, void * nullval);
+#else
+   ();
+#endif
+       
+XeQueue Xe_make_queue 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (void * nullval);
+#else
+   ();
+#endif
+
+void Xe_release_queue 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeQueue q);
+#else
+   ();
+#endif
+
+/* nullval returned if queue empty */
+/* ------------------------------- */
+void * Xe_pop_queue 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeQueue q);
+#else
+   ();
+#endif
+
+/* nullval returned if not found   */
+/* ------------------------------- */
+void * Xe_delete_queue_element 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeQueue q, void * val);
+#else
+   ();
+#endif
+
+void Xe_push_queue 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeQueue q, void * val);
+#else
+   ();
+#endif
+
+/* user declares his own "type var" */
+/* -------------------------------- */
+#define Xe_for_queue(type,var,q)       \
+       XeList q_next, q_list;          \
+       for(q_list = q->head;           \
+           q_list && (var = (type) q_list->data, q_next = q_list->rest , 1);\
+           q_list = q_next)
+
+
+/*  PUT NOTHING AFTER THIS endif */
+#endif /* _Symbolic_h_ */
+
diff --git a/cde/include/bms/XeUserMsg.h b/cde/include/bms/XeUserMsg.h
new file mode 100644 (file)
index 0000000..6d2925d
--- /dev/null
@@ -0,0 +1,67 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         XeUserMsg.h $XConsortium: XeUserMsg.h /main/3 1995/10/26 15:46:16 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _XeUserMsg_h
+#define _XeUserMsg_h
+
+#include <bms/sbport.h>
+
+/* Global Variables */
+/* ---------------- */
+
+extern XeString XeProgName; /* saves value of arg[0] */
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+typedef enum {
+  XeIgnore,
+  XeInformation,
+  XeWarning,
+  XeError,
+  XeFatalError,
+  XeInternalError
+} XeSeverity;
+#else
+# define XeIgnore 0
+# define XeInformation 1
+# define XeWarning 2
+# define XeError 3
+# define XeFatalError 4
+# define XeInternalError 5
+  typedef int XeSeverity;
+#endif
+
+#define export               /* Use this noop to mark non-static procedures. */
+
+#endif /* _XeUserMsg_h */
+/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/include/bms/bms.h b/cde/include/bms/bms.h
new file mode 100644 (file)
index 0000000..15e03b7
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         bms.h $XConsortium: bms.h /main/4 1996/06/21 17:20:07 ageorge $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _bms_h
+#define _bms_h
+
+#ifdef SVR4
+#include <netdb.h>             /* MAXHOSTNAMELEN */
+#else
+#include <sys/param.h>         /* MAXHOSTNAMELEN */
+#endif
+
+/* WARNINGS:                                                 */
+/*                                                           */
+/*   1) <bms/sbport.h> MUST included before this file.         */
+/*   2) Any <X11/...> includes MUST come before this file.    */
+/* ---------------------------------------------------------- */
+
+#ifndef _XtIntrinsic_h              /* Define "Boolean" if not already */
+   typedef char Boolean;            /* defined from <X11/Intrinsic.h>  */
+#endif
+
+#ifndef TRUE
+#define TRUE 1
+#endif 
+
+#ifndef FALSE
+#define FALSE 0
+#endif 
+
+extern char *XeToolClass;
+
+extern XeString         XeProgName;                  /* From noXinit.c     */
+
+extern XeString                                /* Returns Malloc'ed memory */
+XeSBTempPath
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString);
+#else
+   ();
+#endif
+
+/* DON'T ADD STUFF AFTER THIS #endif */
+#endif /* _bms_h */
+
diff --git a/cde/include/bms/connect.h b/cde/include/bms/connect.h
new file mode 100644 (file)
index 0000000..af209a6
--- /dev/null
@@ -0,0 +1,223 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         connect.h $XConsortium: connect.h /main/3 1995/10/26 15:47:00 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _connect_h
+#define _connect_h
+
+#if defined(__cplusplus) && defined(__c_callable)
+extern "C" {
+#endif
+
+int XeParseFileString 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString line, XeString *host_addr, XeString *path_addr);
+#else
+   ();
+#endif
+#if defined(__cplusplus) && defined(__c_callable)
+}
+#endif
+   
+/*
+       Take the filespec as a line and return a path the host and path
+       components as separate fields (finds the ':' and replaces it with
+        NULL).  THIS FUNCTION MUNGES THE ORIGINAL LINE.
+*/
+     
+extern XeString XeFindHost 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString host_spec);
+#else
+   ();
+#endif
+
+extern XeString XeFindShortHost 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString host_spec);
+#else
+   ();
+#endif
+/*
+       Returns a host name corresponding to host_spec. 
+
+       In all cases a NEW STRING, OWNED BY THE
+       CALLER, is returned.  XeFindHost returns the full host specification
+       including domain if there is one.  XeFindShortHost does not
+       include the domain.  These functions can be used to convert between
+       domain and simple names when needed.  The domain names should be
+       used always internally and the simple names only used for display.
+*/
+
+extern int Xegethostname 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString hostname, unsigned int size);
+#else
+   ();
+#endif
+
+#if defined(__cplusplus) && defined(__c_callable)
+extern "C" {
+#else
+extern 
+#endif   
+int Xegetshorthostname 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString hostname, unsigned int size);
+#else
+   ();
+#endif
+#if defined(__cplusplus) && defined(__c_callable)
+}
+#endif
+   
+/*
+       Identical to the libc function gethostname, except that Xegethostname
+       returns a full domain qualified name and Xegetshorthostname returns
+       a simple name.  These functions are necessary because the system
+       hostname may or may not contain a domain name and the internal
+       representation should always be canonical form (domain qualified).
+       Use Xegethostname except when the name is being used for display
+       purposes only.  Storage allocation is identical to gethostname
+       (it copies into the caller's buffer).
+*/
+
+#if defined(__cplusplus) && defined(__c_callable)
+extern "C" {
+#else
+extern 
+#endif   
+Boolean XeIsLocalHostP
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString hostname);
+#else
+   ();
+#endif
+#if defined(__cplusplus) && defined(__c_callable)
+}
+#endif
+   
+/*
+       Returns true if the hostname passed in identifies the host on which
+       this function is executed.  This is needed in order to handle all
+       combinations of simple and domain-qualified names for either the
+       hostname passed in or the one defined on the local host.  Be sure
+       to include Xe.h or provide a local declaration for this function
+       as Boolean is not the same length as int and it won't function
+       correctly without the declaration.
+*/
+#if defined(__cplusplus) && defined(__c_callable)
+extern "C" {
+#else
+extern
+#endif   
+Boolean XeIsSameHostP
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString host1, XeString host2);
+#else
+   ();
+#endif
+#if defined(__cplusplus) && defined(__c_callable)
+}
+#endif
+   
+/*
+       Returns true if host1 and host2 specify the same host.  This is
+       needed, because either or both hosts may be specified with or
+       without domain qualifiers, and the correct result must be
+       obtained.  This function canonicalizes both and compares them
+       only in canonical form.
+*/
+
+extern Boolean XeIsSameHostP 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString host1, XeString host2);
+#else
+   ();
+#endif
+/*
+       Returns true if host1 and host2 specify the same host.  This is
+       needed, because either or both hosts may be specified with or
+       without domain qualifiers, and the correct result must be
+       obtained.  This function canonicalizes both and compares them
+       only in canonical form.
+*/
+
+XeString XeCreateContextString 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString host, XeString directory, XeString file);
+#else
+   ();
+#endif
+/* 
+       XeCreateContextString changes the given context into a
+       label which is exactly the same as the one shown in a
+       fileview modeline.  A NEW STRING, OWNED BY THE CALLER,
+       is returned.
+*/
+
+#define XeEliminateDots(path) (XeString)pathcollapse(path, path, FALSE)   
+/*
+       Removes /./'s and /../ 's from path.  THIS ROUTINE OVERWRITES
+       THE path IT WAS PASSED.  If there are too many ..'s in path,
+       NULL is returned, so you better keep a pointer to path if you hope
+       to reclaim it.  Does not handle host:/path, shell variables or other
+       exotic animals. 
+*/     
+
+int Xechdir
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)   
+          (const char *path);
+#else
+          ();
+#endif
+/*
+       performs a chdir and caches the new directory in $PWD so that
+       Xegetcwd() can get the current directory without slow stat calls
+*/
+
+char *Xegetcwd
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+               (char *buf,
+                int size);
+#else
+               ();
+#endif
+/*
+       version of getcwd() which uses cached $PWD (or $PWD from shell)
+       if available and calls getcwd only when PWD not set
+*/
+
+/* DON'T ADD STUFF AFTER THIS #endif */
+#endif /* _connect_h */
+
diff --git a/cde/include/bms/pathwexp.h b/cde/include/bms/pathwexp.h
new file mode 100644 (file)
index 0000000..6571cac
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         pathwexp.h $XConsortium: pathwexp.h /main/3 1995/10/26 15:47:18 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef        _pathwexp_h
+#define        _pathwexp_h
+
+extern XeString Xe_shellexp
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeString path);
+#else
+   ();
+#endif
+
+#endif /* _pathwexp_h */
diff --git a/cde/include/bms/sbport.h b/cde/include/bms/sbport.h
new file mode 100644 (file)
index 0000000..8f26b02
--- /dev/null
@@ -0,0 +1,294 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         sbport.h $TOG: sbport.h /main/4 1998/03/16 14:40:52 mgreess $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef PORT_H_INCLUDED
+#define PORT_H_INCLUDED
+
+/*---------------------------------------------------------------------------
+
+  The following is a list of #defines that may be tested for in the code:
+  =======================================================================
+
+  __STDC__             - Will be set for ANSI C compilers
+  __cplusplus          - Will be set for C++ compilers
+  __STDCPP__           - Will be set for ANSI and C++ compilers
+
+ __hpux                - Will be set for HP-UX systems
+ __sun                 - Will be set for SUN systems
+ __aix                  - Will be set for IBM (AIX) systems
+
+  __sysv               - Set when using SYSV semantics (e.g. HP, SUN)
+  SYSV                 - Set when __sysv is set (needed for some X11 includes)
+  __bsd                        - Set when using BSD semantics
+
+ __hp_7_0              - For running on HP-UX 7.0 
+ __hp_nls_16           - Set if HP's 16 bit support is to be compiled in
+ __hp_color_object      - Set if HP's ColorObject extension is available in the Motif library
+ __hp9000s300          - Set for S300 (and S400?) HP-UX machines
+ __hp9000s800          - Set for S800 (PA-RISC) machines
+
+ __sparc               - Set for SUN sparc machines
+ __sun68k              - Set for SUN m68k machines
+
+ __identification_strings - Set when RCS header strings are to be in code
+ __recursive_includes  - Set to have .h files #includes prerequisite files
+ __char_ptr_yytext      - Set if the lex/yacc variable yytext is defined
+                         to be of type char[].
+ __unsigned_char_ptr_yytext - Set if the lex/yacc variable yytext is defined
+                             to be of type unsigned char[].
+
+ KEEP_DEADWOOD          - Currently set to "FALSE".  If set to "TRUE",
+                          lots of old code and semantics will be enabled.
+
+----------------------------------------------------------------------------*/
+
+
+
+/* First task is to make sure all of the defines that we use in the */
+/* code are properly set up.                                       */
+/* ---------------------------------------------------------------- */
+#if !defined(sun)
+#if !defined(__STDCPP__) && (defined(__STDC__) || defined(__cplusplus))
+#   define __STDCPP__
+#endif
+#endif
+
+#if defined(sun) && !defined(__sun)
+#   define __sun
+#endif
+
+#if defined(hpux) && !defined(__hpux)
+#   define __hpux
+#endif
+
+#if defined(_AIX) && !defined(__aix)
+#   define __aix
+#   define OSF_MOTIF_1_1_1
+#   define OSF_BUG
+#endif
+
+#ifdef __hpux 
+#   define __sysv
+/* __hp9000s300 or __hp9000s800 is defined by HP-UX cpp */
+#    if !defined (__hpux_8_0)
+#       define __hp_7_0
+#    endif
+#    define __hp_nls_16
+#    define __hp_color_object
+#    define __unsigned_char_ptr_yytext
+#endif  /* __hpux */
+
+#ifdef __sun
+#   if defined(sparc) && !defined(__sparc)
+#      define __sparc
+#   else
+#      if defined(mc68000) || defined(__mc68000)
+#         define __sun68k
+#      endif
+#   endif
+#   define __hp_color_object  /* Should only be set if linking with    */
+                              /* HP's version of Motif (1.1 or later). */
+#   define __char_ptr_yytext
+#   define __c_callable         /* Set so VUE can link with libbms. */
+#endif
+
+#ifdef __aix
+#       define __sysv
+#endif
+
+#if defined(__sysv) && !defined(SYSV)
+#   define SYSV                                /* Needed for X11 include files */
+#endif
+
+#ifndef KEEP_DEADWOOD                  /* Setting this to "TRUE" will cause */
+#   define  KEEP_DEADWOOD FALSE                /* all sorts of unknown problems.    */
+#endif
+
+#ifdef __cplusplus
+
+#define UNUSED_PARM(_parm)
+
+#else
+
+#define UNUSED_PARM(_parm) _parm
+
+#endif /* __cplusplus */
+
+/* There are a few things that are not part of XPG3 that we need.    */
+/* sockets are one of them.  To use this stuff, we just include the  */
+/* non XOPEN include files and things work.  However, there are a    */
+/* few XOPEN include files that have stuff to support this extra     */
+/* functionality (e.g. sockets) that are #ifdef'ed for conditional   */
+/* inclusion with the _XOPEN_SOURCE define.  In order to pull those  */
+/* extra types in, we relas the XPG3 compliance for that file.  The  */
+/* following are the three areas where we must do this:              */
+/*                                                                  */
+/* __need_timeval      gets "struct timeval"                                */
+/* __need_fd_set       gets "typedef struct fd_set {..."            */
+/* __need_S_IF         gets "S_IFNWK, S_IFLNK"                      */
+/* __need_all_signals  gets all SIGxxx values                       */
+/* __need_all_errors   gets all errno values                         */
+/*                                                                  */
+/* We get at these declarations differently on each platform...      */
+/* ----------------------------------------------------------------- */
+
+#if defined(__need_timeval)            /* Get "struct timeval" */
+#   if defined(__sun) || defined(__aix)
+#      include <sys/time.h>
+#   endif
+#endif /* __need_timeval */
+
+
+#if defined(__need_fd_set)             /* Get "typedef struct fd_set" */
+#   ifdef _AIX
+#       include <sys/select.h>
+#   endif
+#endif /* __need_fd_st */
+
+/* We also use the following non XPG3 types.  However, they may be   */
+/* defined when we relax the XPG3 compliance to get the stuff talked */
+/* about above.  So, declare them only if we don't already have them */
+/* ----------------------------------------------------------------- */
+
+#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__)
+       /* the "u_types" are defined in standard files */
+#      undef _INCLUDE_BSD_SOURCE
+#else
+       typedef unsigned int   u_int;
+       typedef unsigned char  u_char;
+       typedef unsigned short u_short;
+       typedef unsigned long  u_long;
+#endif
+
+/* Use these if you must ensure that  you get a specific number of bits */
+/* -------------------------------------------------------------------- */
+typedef char  int8;
+typedef short int16;
+typedef long  int32;
+typedef unsigned char  u_int8;
+typedef unsigned short u_int16;
+typedef unsigned long  u_int32;
+
+#define __xechar_is_signed
+#undef  __xechar_is_unsigned
+
+#ifdef __xechar_is_signed
+typedef char XeChar;
+#else
+typedef unsigned char XeChar;
+#endif
+
+
+/* The following type is a VARIABLE pointer to a VARIABLE XeChar. */
+
+typedef XeChar *XeString;
+
+/***********************************************************************
+*      The following type is a VARIABLE pointer to a CONST XeChar.
+*      Thus,   ConstXeString p;
+*              p = "abcd"; #Legal
+*              *p = "\0';  #Illegal
+*
+*      This is NOT the same as         (const XeString)
+*      which is equivilent to          (XeChar * const)
+*
+*      Thus,   const XeString p;
+*              p = "abcd"; #Illegal
+*              *p = "\0';  #Legal
+*
+************************************************************************/
+
+typedef const XeChar *ConstXeString;
+
+typedef unsigned short XeChar16;
+typedef XeChar16 *XeString16;
+
+#define XeString_NULL  (XeString) 0
+#define XeString_Empty (XeString) ""
+#define XeChar_NULL    (XeChar) 0
+
+/* XtPointer was added in R4, so define it ourselves in R3 */
+#ifdef __motif10
+typedef void *  XtPointer;
+#endif
+
+
+/* The X11 R4 header file "Intrinsic.h" is internally inconsistent  */
+/* with respect to XtAppAddInput. The third parameter ("condition") */
+/* is defined to be of type XtPointer (void *), but the input masks */
+/* commonly used with it are scalar values. Until the problem is    */
+/* corrected by M.I.T, use the following type as a cast in calls    */
+/* to XtAppAddInput. When it is corrected, change this typedef      */
+/* accordingly.                                                            */
+/* ---------------------------------------------------------------- */
+typedef void * XeInputMask;
+
+#ifdef __cplusplus
+/* Define several macros to handle the C++ vs XtOffset problem.     */
+/* The problem is that C++ cannot at compile time evaluate the      */
+/* XtOffset macro within an initializer.  XtOffset is most often    */
+/* used within an XtResource array initialization list.             */
+/* class_names must be a typedef, non pointer type.                 */
+/* ---------------------------------------------------------------- */
+
+#define XtOffsetSimpleField(class_name,field) \
+          ((Cardinal) &class_name::field - 1)
+
+#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \
+          (((Cardinal) &class_name1::field1 - 1) + ((Cardinal) &class_name2::field2 - 1))
+
+#else
+#define XtOffsetSimpleField(class_name,field) \
+       ((Cardinal) (((char *) (&(((class_name *)NULL)->field))) - ((char *) NULL)))
+
+#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \
+       ((Cardinal) (((char *) (&(((class_name1 *)NULL)->field1))) - ((char *) NULL))) + \
+       ((Cardinal) (((char *) (&(((class_name2 *)NULL)->field2))) - ((char *) NULL)))
+#endif
+
+#ifndef __identification_strings
+#define SUPPRESS_RCS_ID        /*forces equivalent action for VED/EDIT shared files*/
+#endif
+
+#ifndef SBSTDINC_H_NO_INCLUDE
+#include <bms/sbstdinc.h>
+#endif
+
+#ifdef __aix
+#       undef  NULL
+#       define NULL 0   /* AIX uses NULL=(void *)0 */
+#endif
+
+#endif /* PORT_H_INCLUDED */
+
diff --git a/cde/include/bms/sbstdinc.h b/cde/include/bms/sbstdinc.h
new file mode 100644 (file)
index 0000000..17dc520
--- /dev/null
@@ -0,0 +1,244 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         sbstdinc.h $TOG: sbstdinc.h /main/7 1998/07/31 17:50:45 mgreess $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _sbstdinc_h
+#define _sbstdinc_h
+
+#include <sys/types.h>
+#include <sys/param.h>
+
+#ifdef SVR4
+#include <netdb.h>             /* MAXHOSTNAMELEN */
+#endif /* SVR4 */
+
+#ifndef howmany
+#define howmany(x, y)  (((x)+((y)-1))/(y))   /* From <sys/param.h>, but not an XPG3 file */
+#endif
+
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <nl_types.h>
+
+/************************************************************************/
+/* Routines not defined in include files (yet).                                */
+/************************************************************************/
+
+/* BSD has bzero(), bcmp(), and bcopy() defined. */
+#if !defined(__bsd) && !defined(CSRG_BASED)
+
+#if defined(__STDC__)
+#if !defined(__linux__) && !defined(_XFUNCS_H_) && !defined(sun)
+extern void bcopy(char *b1, char *b2, int length);
+extern int  bcmp(char *b1, char *b2, int length);
+extern void bzero(char *b, int length);
+#endif
+
+extern char *mktemp(char *tmplate);
+#elif ! defined(__cplusplus)
+#if !defined(__linux__) && !defined(_XFUNCS_H_)
+extern void bcopy();
+extern int  bcmp();
+extern void bzero();
+#endif
+
+extern char *mktemp();
+#endif
+
+#endif
+
+
+#ifndef  SBSTDINC_H_NO_REDEFINE   /* sbstdinc.c turns this on */
+
+/************************************************************************/
+/* Routines from <string.h>                                            */
+/*  --- These always get redefined so we can catch null ptr deref's     */
+/************************************************************************/
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrcat(XeString s1, ConstXeString s2);
+#else
+extern XeString Xestrcat();
+#endif
+#ifdef strcat
+# undef strcat
+#endif
+#define strcat Xestrcat
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrncat(XeString s1, ConstXeString s2, size_t n);
+#else
+extern XeString Xestrncat();
+#endif
+#ifdef strncat
+# undef strncat
+#endif
+#define strncat Xestrncat
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern int Xestrcmp(ConstXeString s1, ConstXeString s2);
+#else
+extern int Xestrcmp();
+#endif
+#ifdef strcmp
+# undef strcmp
+#endif
+#define strcmp Xestrcmp
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern int Xestrncmp(ConstXeString s1, ConstXeString s2, size_t n);
+#else
+extern int Xestrncmp();
+#endif
+#ifdef strncmp
+# undef strncmp
+#endif
+#define strncmp Xestrncmp
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrcpy(XeString s1, ConstXeString s2);
+#else
+extern XeString Xestrcpy();
+#endif
+#ifdef strcpy
+# undef strcpy
+#endif
+#define strcpy Xestrcpy
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrncpy(XeString s1, ConstXeString s2, size_t n);
+#else
+extern XeString Xestrncpy();
+#endif
+#ifdef strncpy
+# undef strncpy
+#endif
+#define strncpy Xestrncpy
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern int Xestrcoll(ConstXeString s1, ConstXeString s2);
+#else
+extern int Xestrcoll();
+#endif
+#ifdef strcoll
+# undef strcoll
+#endif
+#define strcoll Xestrcoll
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern size_t Xestrxfrm(XeString s1, ConstXeString s2, size_t n);
+#else
+extern size_t Xestrxfrm();
+#endif
+#ifdef strxfrm
+# undef strxfrm
+#endif
+#define strxfrm Xestrxfrm
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrchr(ConstXeString s, int c);
+#else
+extern XeString Xestrchr();
+#endif
+#ifdef strchr
+# undef strchr
+#endif
+#define strchr Xestrchr
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrpbrk(ConstXeString s1, ConstXeString s2);
+#else
+extern XeString Xestrpbrk();
+#endif
+#ifdef strpbrk
+# undef strpbrk
+#endif
+#define strpbrk Xestrpbrk
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrrchr(ConstXeString s, int c);
+#else
+extern XeString Xestrrchr();
+#endif
+#ifdef strrchr
+# undef strrchr
+#endif
+#define strrchr Xestrrchr
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrstr(ConstXeString s1, ConstXeString s2);
+#else
+extern XeString Xestrstr();
+#endif
+#ifdef strstr
+# undef strstr
+#endif
+#define strstr Xestrstr
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrtok(XeString s1, ConstXeString s2);
+#else
+extern XeString Xestrtok();
+#endif
+#ifdef strtok
+# undef strtok
+#endif
+#define strtok Xestrtok
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern size_t Xestrlen(ConstXeString s);
+#else
+extern size_t Xestrlen();
+#endif
+#ifdef strlen
+# undef strlen
+#endif
+#define strlen Xestrlen
+
+#if defined(__STDC__) || defined(__cplusplus)
+extern XeString Xestrdup(ConstXeString s);
+#else
+extern XeString Xestrdup();
+#endif
+#ifdef strdup
+# undef strdup
+#endif
+#define strdup Xestrdup
+
+#endif /* ifndef  SBSTDINC_H_NO_REDEFINE */
+
+#endif /*  _sbstdinc_h */ 
diff --git a/cde/include/bms/scoop.h b/cde/include/bms/scoop.h
new file mode 100644 (file)
index 0000000..b06772e
--- /dev/null
@@ -0,0 +1,162 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         scoop.h $XConsortium: scoop.h /main/3 1995/10/26 15:48:17 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _scoop_h
+#define _scoop_h
+
+#ifndef NULL
+#define        NULL    0L
+#endif
+
+#ifndef TRUE
+#define FALSE 0
+#define TRUE 1
+#endif         /* TRUE */
+
+#if !defined(__sun)
+# if (defined(__STDC__) || defined(__STDCPP__) || defined(__cplusplus) || defined(c_plusplus))
+#  define CAT(a,b) a##b
+# else
+#  define CAT(a,b) a/**/b
+# endif
+#else
+  /* Sun C++ compiler uses the non-ansi cpp. */
+# if defined(__cplusplus)
+#  define CAT(a,b) a/**/b
+# else
+#  define CAT(a,b) a##b
+# endif
+#endif  
+
+
+typedef long OSizeType ;
+
+typedef struct root_class  *root_clasp, *object_clasp ;
+
+typedef struct object_struct object;
+
+typedef void (*SC_class_init)(object_clasp);
+typedef void (*SC_object_init)(object *);
+typedef object * (*SC_new_obj)(object_clasp);
+typedef void (*SC_free_obj)(object *);
+typedef object * (*SC_clone)(object *, object *);
+
+#define root_class_part \
+  XeString       name ;          /* class name */                        \
+  SC_class_init  class_init;     /* fn to init my class struct */        \
+  OSizeType      object_size ;   /* size of object of this class */      \
+  short          init ;          /* boolean--class initialized state */  \
+  SC_object_init object_init;    /* fn to init my object struct */       \
+  SC_new_obj     new_obj;        /* fn to allocate class objects */      \
+  SC_free_obj    free_obj;       /* fn to free class objects */          \
+  SC_clone       clone;          /* `method' to clone an object */       \
+                                 /* no root private parts */
+
+#define root_object_part
+
+struct object_struct
+{ root_clasp class_ptr;
+  root_object_part
+  };
+
+struct root_class
+  { object_clasp base ;                /* pointer to base class */
+    root_class_part } ;
+
+#define memf(vref, fn, arglist)                ( (vref class_ptr)->fn arglist)
+#define memvf0(v,fn)                   memf(v., fn, (&(v)))
+#define memvf1(v,fn,a1)                        memf(v., fn, (&(v),a1))
+#define memvf2(v,fn,a1,a2)             memf(v., fn, (&(v),a1,a2))
+#define memvf3(v,fn,a1,a2,a3)          memf(v., fn, (&(v),a1,a2,a3))
+#define memvf4(v,fn,a1,a2,a3,a4)       memf(v., fn, (&(v),a1,a2,a3,a4))
+#define memvf5(v,fn,a1,a2,a3,a4,a5)    memf(v., fn, (&(v),a1,a2,a3,a4,a5))
+#define memvf6(v,fn,a1,a2,a3,a4,a5,a6) memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6))
+#define memvf7(v,fn,a1,a2,a3,a4,a5,a6,a7) \
+       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7))
+#define memvf8(v,fn,a1,a2,a3,a4,a5,a6,a7,a8) \
+       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8))
+#define memvf9(v,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \
+       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8,a9))
+#define mempf0(p,fn)                   memf(p->, fn, (p))
+#define mempf1(p,fn,a1)                        memf(p->, fn, (p,a1))
+#define mempf2(p,fn,a1,a2)             memf(p->, fn, (p,a1,a2))
+#define mempf3(p,fn,a1,a2,a3)          memf(p->, fn, (p,a1,a2,a3))
+#define mempf4(p,fn,a1,a2,a3,a4)       memf(p->, fn, (p,a1,a2,a3,a4))
+#define mempf5(p,fn,a1,a2,a3,a4,a5)    memf(p->, fn, (p,a1,a2,a3,a4,a5))
+#define mempf6(p,fn,a1,a2,a3,a4,a5,a6) memf(p->, fn, (p,a1,a2,a3,a4,a5,a6))
+#define mempf7(p,fn,a1,a2,a3,a4,a5,a6,a7) \
+       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7))
+#define mempf8(p,fn,a1,a2,a3,a4,a5,a6,a7,a8) \
+       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8))
+#define mempf9(p,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \
+       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8,a9))
+  
+#define memd(vref, dm)                 (vref dm)
+#define base_memf(my_class, fn, arglist)       \
+    ((*(my_class->base->fn)) arglist)
+
+#define memfp(vref, fn, arglist)       memf (vref, CLASS.fn, arglist)
+#define memdp(vref, dm)                        memd (vref, CLASS.dm)
+
+#define memvs(v, sdm)                  (*((v.class_ptr)->sdm))
+#define memps(p, sdm)                  (*((p->class_ptr)->sdm))
+#define stat_def(name, type)           type *name; type CAT(name,_static) ;
+#define stat_init(def_class, class_ptr, name) \
+       (class_ptr->name) = &(def_class->CAT(name,_static))
+
+extern object_clasp root_class ;
+
+extern void object_destroy 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (object *p);
+#else
+   ();
+#endif
+
+extern object *object_create 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (object_clasp c);
+#else
+   ();
+#endif
+
+extern void object_init 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (object_clasp c,  object *p);
+#else
+   ();
+#endif
+    
+#endif /* _scoop_h */
+/* PLACE NOTHING AFTER THIS endif */
diff --git a/cde/include/bms/spc.h b/cde/include/bms/spc.h
new file mode 100644 (file)
index 0000000..d0ce486
--- /dev/null
@@ -0,0 +1,489 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         spc.h $XConsortium: spc.h /main/3 1995/10/26 15:48:38 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _spc_h
+#define _spc_h
+
+/* -------------------------------------------- */
+/* Requires:                                   */
+#include <stdio.h>
+#include <bms/XeUserMsg.h>
+
+#include <termios.h>
+
+/* -------------------------------------------- */
+
+typedef struct _SPC_Channel *SPC_Channel_Ptr;
+
+typedef struct _XeHostInfo {
+    XeString   os;
+    XeString    os_ver;
+    XeString    hw_arch;
+} *XeHostInfo;
+
+extern FILE *SPC_Print_Protocol;
+extern FILE *spc_logF;
+extern XeString spc_user_environment_file;
+
+/* Error returns for SPC routines */
+
+#define SPC_ERROR       FALSE  /* Use this value for error checking */
+
+/*
+ * These are the channel connector definitions
+ */
+
+#define STDIN                  0
+#define STDOUT                 1
+#define STDERR                 2
+
+#define MASTER_SIDE    0
+#define SLAVE_SIDE     1
+
+/* These are the sub-process notification identifiers */
+
+#define SPC_PROCESS_STOPPED    1 /* Child process is in background */
+#define SPC_PROCESS_EXITED     2 /* Child process called exit(cause); */
+#define SPC_PROCESS_SIGNALLED  3 /* Child process received signal: cause */
+#define SPC_PROCESS_INTERRUPT  4 /* Child process WAIT was interrupted */
+#define SPC_PROCESS_DUMPED(a)  ((a) & 0200) /* True when core dumped */
+
+/* This is the maximum size of an SPC I/O Buffer */
+#define SPC_BUFSIZ             4096
+
+/*
+ * These macros define the bit field portion of an SPC_IOMode
+ */
+
+#define SPCIO_ALL_MASK         0xffffffff
+
+/* The IO Modes that define the input and output sources */
+
+#define SPCIO_SOURCE_MASK      0xf
+#define SPCIO_NOIO             0x0 /* The default - no input/output */
+#define SPCIO_WRITEONLY                0x1 /* Only write app stdin */
+#define SPCIO_READONLY         0x2 /* Only read app stdout */
+#define SPCIO_READWRITE                0x3 /* Read stdout, write stdin */
+#define SPCIO_ERRORONLY                0x4 /* Only read stderr */
+#define SPCIO_WRITEERROR       0x5 /* Write stdin, read stderr */
+#define SPCIO_READERROR                0x6 /* Only read stdout/stderr */
+#define SPCIO_READWRITEERROR   0x7 /* Full std (in, out, err) */
+
+/* Use this bit with above IO Mode for splitting stdout and stderr data */
+
+#define SPCIO_SEPARATEREADERROR        0x8 /* Separate stdout & stderr */
+
+/* The IO Modes that deal with communication styles (features) */
+#define SPCIO_STYLE_MASK       0x70
+#define SPCIO_PTY               0x10 /* Use a PTY */
+#define SPCIO_PIPE             0x20 /* Use pipe() - no line editing */
+#define SPCIO_NOIOMODE          0x40 /* Use neither */
+
+#define SPCIO_LINEEDIT          0x80 /* Valid only with PTY */
+
+/* Other flags */
+
+#define SPCIO_SYSTEM           0x100 /* Use system() - Spawns a SHELL */
+#define SPCIO_LINEORIENTED     0x200 /* Invoke callback on line bounds */
+                                      /* It is possible to break two byte
+                                        characters.  See note on XeSPCRead. */
+#define SPCIO_WAIT             0x400 /* Wait for process to finish */
+#define SPCIO_USE_XTOOLKIT     0x800 /* Use the X toolkit */
+#define SPCIO_SYNC_TERMINATOR  0x1000 /* Handle termination synchronously */
+#define SPCIO_USE_LOGFILE      0x2000 /* Use logfile for stderr -- only
+                                        valid with SPCIO_NOIO */
+
+#define SPCIO_SIGNAL_PGRP     0x20000 /* Propagate signals to entire process
+                                        group. */
+#define SPCIO_FORCE_CONTEXT   0x40000 /* Error on SPC Spawn if context dir
+                                        is not present */
+
+/*
+ * Routines
+ */
+
+
+/* spc.c */
+
+
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+# define EXTERN_DECL(type, name, arglist) type name arglist
+# if defined(__cplusplus) && defined(__c_callable)
+#  define EXTERN_C_CALLABLE(type, name, arglist) \
+          extern "C" { type name arglist ; }
+# else
+#  define EXTERN_C_CALLABLE(type, name, arglist) \
+          EXTERN_DECL(type, name, arglist)
+# endif
+#else
+#ifdef _AIX
+# define EXTERN_C_CALLABLE(type, name, arglist) \
+        extern type name arglist 
+# define EXTERN_DECL(type, name, arglist) \
+        type name arglist
+#else /* _AIX */
+# define EXTERN_DECL(type, name, arglist) name arglist
+# define EXTERN_C_DECL(type, name, arglist) EXTERN_DECL(type, name, arglist)
+
+#endif /* (_AIX) */
+#endif
+
+EXTERN_C_CALLABLE(SPC_Channel_Ptr, XeSPCOpen, (XeString hostname, int iomode));
+
+/*
+  Open an SPC channel.  Process will run on 'hostname' (or the local
+  host if value is NULL), with the specified iomode.
+*/
+
+EXTERN_C_CALLABLE(int, XeSPCClose, (SPC_Channel_Ptr channel));
+
+/*
+  Close an SPC channel.  Closing a channel will automatically deactivate it
+  (meaning that any subprocess associated with the channel is terminated).
+*/
+
+EXTERN_DECL(int, XeSPCReset, (SPC_Channel_Ptr channel));
+
+/*
+  Reset an SPC channel.  This will allow it to be used in a subsequent
+  spawn or exec call.
+*/
+
+
+EXTERN_DECL(int, XeSPCRead,
+           (SPC_Channel_Ptr channel, int connector,
+            XeString buffer, int length));
+
+/*
+  Read length characters from an SPC channel into some preallocated buffer.
+  Note that it is possible to split a two-byte character, if the first
+  byte if the character is read in just at buffer[length].  However, the
+  next read will return the second byte (just like Unix read).  The
+  'connector' value is either STDOUT or STDERR.
+*/
+
+EXTERN_DECL(int, XeSPCWrite,
+           (SPC_Channel_Ptr channel, XeString buffer, int length));
+
+/*
+  Write length characters from buffer to the standard input of a
+  process on the other side of an SPC channel.
+*/
+
+EXTERN_C_CALLABLE(int, XeSPCActive, (SPC_Channel_Ptr channel));
+
+/*
+  Returns True when channel is active, False otherwise
+*/  
+
+EXTERN_DECL(int, XeSPCData, (SPC_Channel_Ptr channel));
+
+/*
+  Returns True when channel be read from, False otherwise
+*/  
+
+EXTERN_C_CALLABLE(int, XeSPCSpawn,
+                 (XeString pathname, XeString context_dir, XeString *argv,
+                  XeString *envp, SPC_Channel_Ptr channel));
+
+/*
+  Spawn an application under SPC
+*/
+
+EXTERN_DECL(SPC_Channel_Ptr, XeSPCOpenAndSpawn,
+           (XeString hostname, int iomode, XeString pathname,
+            XeString context_dir, XeString *argv, XeString *envp));
+           
+/*
+  Combine the Open and Spawn channel operations
+*/
+
+EXTERN_DECL(int, XeSPCExecuteProcess, (SPC_Channel_Ptr channel));
+
+/*
+  Restart a new subprocess on a channel
+*/
+
+EXTERN_C_CALLABLE(void, XeSPCKillProcesses, (int wait));
+
+/*
+  Kill all known executing processes (useful for catching SIGTERM, etc)
+*/
+
+EXTERN_DECL(int, XeSPCKillProcess, (SPC_Channel_Ptr channel, int wait));
+
+/*
+  Kill executing process on an SPC channel.  'wait' TRUE means don't
+  return from call until process is completely terminated (including
+  after user specified callbacks are called).
+*/
+
+EXTERN_DECL(int, XeSPCInterruptProcess, (SPC_Channel_Ptr channel));
+
+/*
+  Interrupt executing process on an SPC channel (send SIGINT).
+*/
+
+EXTERN_DECL(int, XeSPCSignalProcess, (SPC_Channel_Ptr channel, int sig));
+
+/*
+  Send an arbitrary signal to executing process on an SPC channel.
+*/  
+
+typedef
+  EXTERN_DECL(void, (*SbInputHandlerProc),
+             (void *client_data, XeString buf, int nchars, int connector));
+
+EXTERN_C_CALLABLE(int, XeSPCAddInput,
+                  (SPC_Channel_Ptr    channel,
+                   SbInputHandlerProc handler,
+                   void               *client_data));
+
+/*
+  Add an input channel handler
+*/
+
+/*
+ * The user input handler takes the following form:
+ *
+ * void UserInputHandler(client_data, text, size, connection)
+ *      void * client_data; *** Useful for passing widet destination ***
+ *      XeString text;      *** The text coming from the SPC channel ***
+ *      int size;           *** The number of character in passed text ***
+ *      int connection;     *** The connection where data was received ***
+ *                          ***  (STDOUT or STDERR)                    ***
+ */
+
+typedef
+  EXTERN_DECL(void, (*SPC_TerminateHandlerType),
+              (SPC_Channel_Ptr  chan,
+               int  pid,
+               int  type,
+               int  cause,
+               void *Terminate_Data));
+
+EXTERN_C_CALLABLE(int, XeSPCRegisterTerminator,
+                  (SPC_Channel_Ptr          channel,
+                   SPC_TerminateHandlerType teminator,
+                   void *                   client_data));
+
+/*
+  Add a termination handler to a channel (called when sub-process dies)
+*/
+
+/*
+ * The user termination handler takes the following form:
+ *
+ * void UserTerminator(channel, pid, type, cause, client_data)
+ *      SPC_CHannel_ptr channel;
+ *      int pid;            *** The Process ID of the terminated appl. ***
+ *      int type;           *** The type of termination (see above)    ***
+ *      int cause;          *** The number associated w/termination    ***
+ *      void * client_data; *** User specified client data             ***
+ */
+
+/*
+ * These are the channel access routines
+ */
+
+EXTERN_DECL(XeString, XeSPCGetDevice,
+           (SPC_Channel_Ptr channel, int connector, int side));
+
+/*
+  Return the device name associated with a side of a channel device
+  pair.  'connector' is either STDIN, STDOUT, or STDERR, and 'side' is
+  either MASTER_SIDE or SLAVE_SIDE.  This call is valid only in PTY
+  channels.
+*/  
+
+EXTERN_DECL(int, XeSPCGetProcessStatus,
+           (SPC_Channel_Ptr channel, int *type, int *cause));
+
+/*
+  Fill in the type and cause of a process termination.
+*/
+
+EXTERN_DECL(int, XeSPCAttach, (SPC_Channel_Ptr channel, int pid));
+
+/*
+  Returns True if a process ID was associated with an SPC channel.
+*/
+
+EXTERN_DECL(int, XeSPCDetach, (SPC_Channel_Ptr channel));
+
+EXTERN_DECL(int, XeSPCGetPID, (SPC_Channel_Ptr channel));
+
+/*
+  Returns the Process ID of the channel or NULL if none
+*/  
+
+EXTERN_DECL(int, XeSPCGetLogfile,
+           (SPC_Channel_Ptr channel, XeString *host, XeString *file));
+
+/*
+  Return the logfile for the channel.  If the channel was not opened
+  with SPCIO_USE_LOGFILE specified, it will return NULL.  Also note
+  that it returns an XeString *, not an XeString.
+*/  
+
+EXTERN_DECL(int, XeSPCRemoveLogfile, (SPC_Channel_Ptr channel));
+
+/*
+  Remove the logfile associated with the channel
+*/
+
+/*
+ *
+ * Features currently not implemented:
+ *
+ *  SPCIO_WAIT with ptys
+ *
+ *  SEPARATEREADERROR with ptys
+ *
+ *  Complete error checking.  For example, there
+ *  are no checks for trying to write to a channel
+ *  opened W/O SPCIO_WRITE specified
+ *
+ */
+
+EXTERN_DECL(int, XeSPCGetChannelSyncFd, (SPC_Channel_Ptr channel));
+
+/*
+  Get the file descriptor for checking synchronous termination.  This
+  is used for interfacing with event loops.
+*/
+
+EXTERN_DECL(SPC_Channel_Ptr, XeSPCHandleTerminator, (int fd));
+
+/*
+  Handle a synchronous termination condition
+
+  This routine is to be used with the file descriptor returned by
+  XeSPCGetChannelSyncFd.  The idea is that one opens a channel using
+  SPCIO_SYNC_TERMINATOR set in the iomode, and then at some point
+  checks for input available on the returned file descriptor (possibly
+  using a select(2) system call).  If there is input, it means that
+  some SYNC_TERMINATOR channel had a subprocess die.  The program then
+  calls XeSPCHandleTerminator to get the termination handler invoked.
+  IT IS THE RESPONSIBILITY OF THE USER PROGRAM TO EVENTUALLY CALL
+  XeSPCHandleTerminator.  IF IT DOES NOT, THE PROGRAM MAY DEADLOCK
+  ITSELF.
+*/
+
+
+/* SPC Error handling */
+
+typedef struct _SPCError { /* An SPC Error message */
+  XeString text;     /* The text */
+  XeString format;   /* How to format args */
+  XeSeverity severity;     /* How bad is it, doc? */
+  char use_errno;          /* Whether to use the system errno */
+} SPCError;
+
+/* Use this to get the current error number */
+
+extern int XeSPCErrorNumber;
+
+EXTERN_DECL(SPCError *, XeSPCLookupError, (int errnum));
+
+/*
+  Returns the SPCError structure associated with the passed error number or
+   NULL if the passed error number is not a valid SPC error.  The
+   error structure returned will be overwritten by a subsequent
+   XeSPCLookupError call.
+*/
+
+EXTERN_DECL(void, XeSPCShutdownCallbacks, (void));
+
+EXTERN_DECL(void, XeSPCRestartCallbacks, (void));
+
+/* These two routines are used to temporarily suspend SPC callbacks */
+
+EXTERN_DECL(int, XeSetpgrp, (int read_current_termio));
+
+/*
+  This routine will do the following:
+
+  1. open /dev/tty
+  2. get the termio information from the file descriptor just opened
+  3. close /dev/tty
+  3. allocate a master / slave pty pair, opening the master side
+  4. set the termio info of the master side to be the result of step 2
+  5. setpgrp
+  6. open the slave side.
+  
+  All of this has the effect of making the process which called this
+  routine immune to interrupts, etc., but also passing on the termio
+  characteristics of the original tty.
+
+  If read_current_termio is non-zero, steps 1-3 will NOT be performed, but
+  instead this routine will get the information from the following termio
+  struct:
+  
+*/
+
+EXTERN_DECL(XeHostInfo, SPC_GetHostinfo, (SPC_Channel_Ptr channel));
+
+/* 
+  Return information about the host (os, os-ver, hw) to which "channel"
+  is currently connected.  The return is to a static structure of static
+  strings.  Do not modify or free and of them!
+*/
+
+/*
+ **
+ ** New B.00 functions
+ **
+*/
+
+EXTERN_C_CALLABLE(int, XeSPCSendEOF, (SPC_Channel_Ptr channel));
+
+/*
+ Close the standard input of the process on the other side of the channel
+*/
+
+EXTERN_C_CALLABLE(int, XeSPCSetTermio,
+                 (SPC_Channel_Ptr channel,
+                  int connection,
+                  int side,
+                  struct termios *termio));
+
+/*
+ Set the termio value of the PTY associated with 'connection' (STDIN,
+ STDOUT, or STDERR), on 'side' (MASTER_SIDE or SLAVE_SIDE) to the
+ value pointed to by termio.  This call must be made before the
+ subprocess is spawned.
+*/
+
+#endif /* #ifdef _spc_h */
diff --git a/cde/include/bms/stringbuf.h b/cde/include/bms/stringbuf.h
new file mode 100644 (file)
index 0000000..39f14f7
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         stringbuf.h $XConsortium: stringbuf.h /main/3 1995/10/26 15:49:00 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _stringbuf_h
+#define _stringbuf_h
+
+typedef struct _XeStringBuffer {
+   int last_char;  /* index of trailing NULL */
+   int size;
+   int increment;  /* how much to expand when more space is needed */
+   XeString buffer;
+} *XeStringBuffer;
+
+
+int XeAppendToStringBuffer 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeStringBuffer buffer, XeString string);
+#else
+   ();
+#endif
+
+XeStringBuffer XeMakeStringBuffer 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (int increment_size);
+#else
+   ();
+#endif
+
+       /* erase the contents (but don't deallocate any space). */
+void XeClearStringBuffer 
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+   (XeStringBuffer buffer);
+#else
+   ();
+#endif
+
+/*** add nothing after the following endif ***/
+#endif /* _stringbuf_h */
diff --git a/cde/include/bms/usersig.h b/cde/include/bms/usersig.h
new file mode 100644 (file)
index 0000000..37190a9
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:         usersig.h $XConsortium: usersig.h /main/3 1995/10/26 15:49:19 rswiston $
+ * Language:     C
+ *
+ * (c) Copyright 1989, Hewlett-Packard Company, all rights reserved.
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
+ * (c) Copyright 1993, 1994 International Business Machines Corp.      *
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
+ * (c) Copyright 1993, 1994 Novell, Inc.                               *
+ */
+
+#ifndef _usersig_h
+#define _usersig_h
+
+/* -------------------------------------------- */
+/* Requires:                                   */
+#ifdef __recursive_includes
+#include <signal.h>
+#endif
+/* -------------------------------------------- */
+
+#define XE_SIG_NOT_IN_TABLE -2
+
+extern int XeNameToSignal
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+    (XeString name);
+#else
+    ();
+#endif
+
+extern XeString XeSignalToName
+#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
+    (int sig);
+#else
+    ();
+#endif
+
+#endif /* _usersig_h */
diff --git a/cde/include/codelibs/boolean.h b/cde/include/codelibs/boolean.h
new file mode 100644 (file)
index 0000000..c845dc2
--- /dev/null
@@ -0,0 +1,79 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:       boolean.h $XConsortium: boolean.h /main/3 1995/10/26 16:10:48 rswiston $
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994 International Business Machines Corp.
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef __BOOLEAN_H_
+#define __BOOLEAN_H_
+
+#if defined(__aix)
+#undef  NULL
+#define NULL 0
+#endif
+
+#if defined(SVR4)
+#include <sys/types.h>
+
+#if defined(sun) && defined(_XOPEN_SOURCE)
+#ifndef B_TRUE
+#define B_TRUE _B_TRUE
+#endif
+#ifndef B_FALSE
+#define B_FALSE _B_FALSE
+#endif
+#endif   /* sun && _XOPEN_SOURCE */
+
+#ifndef boolean
+typedef        boolean_t       boolean;
+#endif
+
+#ifndef TRUE
+#define TRUE B_TRUE
+#endif
+
+#ifndef FALSE
+#define FALSE B_FALSE
+#endif
+#endif /* SVR4 */
+
+
+#if !defined(SVR4)
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#ifndef boolean
+typedef int boolean;
+#endif
+#endif /* ! SVR4 */
+#endif /* __BOOLEAN_H_ */
diff --git a/cde/include/codelibs/pathutils.h b/cde/include/codelibs/pathutils.h
new file mode 100644 (file)
index 0000000..16ad6c6
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * $XConsortium: pathutils.h /main/4 1996/05/08 11:21:09 drk $
+ *
+ * (c) Copyright 1996 Digital Equipment Corporation.
+ * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
+ * (c) Copyright 1993,1994,1996 International Business Machines Corp.
+ * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
+ * (c) Copyright 1993,1994,1996 Novell, Inc. 
+ * (c) Copyright 1996 FUJITSU LIMITED.
+ * (c) Copyright 1996 Hitachi.
+ */
+
+#ifndef __PATHUTILS_H_
+#define __PATHUTILS_H_
+
+#include <stddef.h>
+#include <codelibs/boolean.h>
+
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+extern char *pathcollapse(const char *src, 
+                         char *dst = NULL, 
+                         boolean show_dir = FALSE);
+#elif defined(__STDC__)
+extern char *pathcollapse(const char *src, char *dst, boolean show_dir);
+#else /* old-style C */
+extern char *pathcollapse();
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __PATHUTILS_H_ */
diff --git a/cde/include/codelibs/shellutils.h b/cde/include/codelibs/shellutils.h
new file mode 100644 (file)
index 0000000..df7bd06
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/*
+ * File:       shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 rswiston $
+ *
+ * (c) Copyright 1993, 1994 Hewlett-Packard Company
+ * (c) Copyright 1993, 1994 International Business Machines Corp.
+ * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ * (c) Copyright 1993, 1994 Novell, Inc.
+ */
+
+#ifndef __SHELLUTILS_H_
+#define __SHELLUTILS_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+    char const *const *shellscan(char const *str, int *argc = (int *)0,
+           unsigned opts = 0);
+}
+#else
+    extern char **shellscan();
+#endif
+
+#define SHX_NOGLOB     0x0001
+#define SHX_NOTILDE    0x0002
+#define SHX_NOVARS     0x0004
+#define SHX_NOQUOTES   0x0008
+#define SHX_NOSPACE    0x0010
+#define SHX_NOMETA     0x0020
+#define SHX_NOCMD      0x0040
+#define SHX_COMPLETE   0x0080
+
+#define SHX_NOGRAVE    0x0040          /* Obsolete, use NOCMD */
+
+#endif /* __SHELLUTILS_H_ */
diff --git a/cde/include/cppfile.tmpl b/cde/include/cppfile.tmpl
new file mode 100644 (file)
index 0000000..67c6a23
--- /dev/null
@@ -0,0 +1,7 @@
+CLEANFILES += $(CPPTARGET)
+
+all:: $(CPPTARGET)
+
+$(CPPTARGET):: $(CPPSRC)
+       $(RM) $@
+       $(CPP) -P -DXCOMM=# $(SCRIPTFLAGS) < $(CPPSRC) > $@
diff --git a/cde/include/csa/csa.h b/cde/include/csa/csa.h
new file mode 100644 (file)
index 0000000..b1b6219
--- /dev/null
@@ -0,0 +1,1147 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
+/* $XConsortium: csa.h /main/1 1996/04/21 19:23:01 drk $ */
+/*
+ *  (c) Copyright 1993, 1994 Hewlett-Packard Company
+ *  (c) Copyright 1993, 1994 International Business Machines Corp.
+ *  (c) Copyright 1993, 1994 Novell, Inc.
+ *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+ */
+
+#ifndef _CSA_H
+#define _CSA_H
+
+/* BEGIN CSA INTERFACE */
+
+/* BASIC DATA TYPES */
+
+#ifndef DIFFERENT_PLATFORM
+typedef short          CSA_sint16;
+typedef long           CSA_sint32;
+typedef unsigned char  CSA_uint8;
+typedef unsigned short CSA_uint16;
+typedef unsigned long  CSA_uint32;
+typedef void           *CSA_buffer;
+typedef CSA_uint32     CSA_entry_handle;
+typedef CSA_uint32     CSA_session_handle;
+typedef char           *CSA_string;
+#endif
+
+typedef CSA_string     CSA_attribute_reference;
+typedef CSA_uint32     CSA_boolean;
+typedef CSA_string     CSA_date_time;
+typedef CSA_string     CSA_date_time_range;
+typedef CSA_sint32     CSA_enum;
+typedef CSA_uint32     CSA_flags;
+typedef CSA_uint32     CSA_return_code;
+typedef CSA_string     CSA_service_reference;
+typedef CSA_string     CSA_time_duration;
+
+#define CSA_FALSE      ((CSA_boolean)0)
+#define CSA_TRUE       ((CSA_boolean)1)
+
+/* DATA STRUCTURES */
+
+/* EXTENSION */
+typedef struct CSA_TAG_EXTENSION {
+       CSA_uint32      item_code;
+       CSA_uint32      item_data;
+       CSA_buffer      item_reference;
+       CSA_flags       extension_flags;
+} CSA_extension;
+
+/* EXTENSION FLAGS */
+#define        CSA_EXT_REQUIRED        ((CSA_flags)0x1)
+#define        CSA_EXT_OUTPUT          ((CSA_flags)0x2)
+#define        CSA_EXT_LAST_ELEMENT    ((CSA_flags)0x4)
+
+/* CALENDAR USER */
+typedef struct CSA_TAG_CALENDAR_USER{
+       CSA_string      user_name;
+       CSA_enum        user_type;
+       CSA_string      calendar_address;
+       CSA_extension   *calendar_user_extensions;
+} CSA_calendar_user;
+
+/* CALENDAR USER TYPE */
+#define        CSA_USER_TYPE_INDIVIDUAL        ((CSA_enum)0)
+#define        CSA_USER_TYPE_GROUP             ((CSA_enum)1)
+#define        CSA_USER_TYPE_RESOURCE          ((CSA_enum)2)
+
+/* ACCESS LIST */
+typedef struct CSA_TAG_ACESS_RIGHTS {
+       CSA_calendar_user               *user;
+       CSA_flags                       rights;
+       struct CSA_TAG_ACESS_RIGHTS     *next;
+} CSA_access_rights, *CSA_access_list;
+
+/* ACCESS RIGHT FLAGS */
+#define        CSA_FREE_TIME_SEARCH            ((CSA_flags)0x1)
+#define        CSA_VIEW_PUBLIC_ENTRIES         ((CSA_flags)0x2)
+#define        CSA_VIEW_CONFIDENTIAL_ENTRIES   ((CSA_flags)0x4)
+#define        CSA_VIEW_PRIVATE_ENTRIES        ((CSA_flags)0x8)
+#define        CSA_INSERT_PUBLIC_ENTRIES       ((CSA_flags)0x10)
+#define        CSA_INSERT_CONFIDENTIAL_ENTRIES ((CSA_flags)0x20)
+#define        CSA_INSERT_PRIVATE_ENTRIES      ((CSA_flags)0x40)
+#define        CSA_CHANGE_PUBLIC_ENTRIES       ((CSA_flags)0x80)
+#define        CSA_CHANGE_CONFIDENTIAL_ENTRIES ((CSA_flags)0x100)
+#define        CSA_CHANGE_PRIVATE_ENTRIES      ((CSA_flags)0x200)
+#define        CSA_VIEW_CALENDAR_ATTRIBUTES    ((CSA_flags)0x400)
+#define        CSA_INSERT_CALENDAR_ATTRIBUTES  ((CSA_flags)0x800)
+#define        CSA_CHANGE_CALENDAR_ATTRIBUTES  ((CSA_flags)0x1000)
+#define        CSA_ORGANIZER_RIGHTS            ((CSA_flags)0x2000)
+#define        CSA_SPONSOR_RIGHTS              ((CSA_flags)0x4000)
+#define        CSA_OWNER_RIGHTS                ((CSA_flags)0x8000)
+
+/* access right flags for data version 1, 2, and 3 */
+#define CSA_X_DT_BROWSE_ACCESS ((CSA_flags)0x1)
+#define CSA_X_DT_INSERT_ACCESS ((CSA_flags)0x2)
+#define CSA_X_DT_DELETE_ACCESS ((CSA_flags)0x4)
+
+/* ATTENDEE LIST */
+typedef struct CSA_TAG_ATTENDEE {
+       CSA_calendar_user       attendee;
+       CSA_enum                priority;
+       CSA_enum                status;
+       CSA_boolean             rsvp_requested;
+       struct CSA_TAG_ATTENDEE *next;
+} CSA_attendee, *CSA_attendee_list;
+
+/* ATTENDEE PRIORITIES */
+#define        CSA_FOR_YOUR_INFORMATION        ((CSA_enum)0)
+#define        CSA_ATTENDANCE_REQUESTED        ((CSA_enum)1)
+#define        CSA_ATTENDANCE_REQUIRED         ((CSA_enum)2)
+#define        CSA_IMMEDIATE_RESPONSE          ((CSA_enum)3)
+
+/* DATE AND TIME LIST */
+typedef struct CSA_TAG_DATE_TIME_ITEM {
+       CSA_date_time                   date_time;
+       struct CSA_TAG_DATE_TIME_ITEM   *next;
+} CSA_date_time_entry, *CSA_date_time_list;
+
+/* OPAQUE DATA */
+typedef struct CSA_TAG_OPAQUE_DATA {
+       CSA_uint32      size;
+       CSA_uint8       *data;
+} CSA_opaque_data;
+
+/* REMINDER */
+typedef struct CSA_TAG_REMINDER {
+       CSA_time_duration       lead_time;
+       CSA_time_duration       snooze_time;
+       CSA_uint32              repeat_count;
+       CSA_opaque_data         reminder_data;
+} CSA_reminder;
+
+/* ATTRIBUTE */
+typedef struct CSA_TAG_ATTRIBUTE_ITEM {
+       CSA_enum                        type;
+       union {
+               CSA_boolean             boolean_value;
+               CSA_enum                enumerated_value;
+               CSA_flags               flags_value;
+               CSA_sint32              sint32_value;
+               CSA_uint32              uint32_value;
+               CSA_string              string_value;
+               CSA_calendar_user       *calendar_user_value;
+               CSA_date_time           date_time_value;
+               CSA_date_time_range     date_time_range_value;
+               CSA_time_duration       time_duration_value;
+               CSA_access_list         access_list_value;
+               CSA_attendee_list       attendee_list_value;
+               CSA_date_time_list      date_time_list_value;
+               CSA_reminder            *reminder_value;
+               CSA_opaque_data         *opaque_data_value;
+       } item;
+} CSA_attribute_value;
+
+typedef struct CSA_TAG_ATTRIBUTE {
+       CSA_string              name;
+       CSA_attribute_value     *value;
+       CSA_extension           *attribute_extensions;
+} CSA_attribute;
+
+/* ATTRIBUTE VALUE TYPE */
+#define CSA_VALUE_BOOLEAN              ((CSA_enum)0)
+#define CSA_VALUE_ENUMERATED           ((CSA_enum)1)
+#define CSA_VALUE_FLAGS                        ((CSA_enum)2)
+#define CSA_VALUE_SINT32               ((CSA_enum)3)
+#define        CSA_VALUE_UINT32                ((CSA_enum)4)
+#define        CSA_VALUE_STRING                ((CSA_enum)5)
+#define CSA_VALUE_CALENDAR_USER                ((CSA_enum)6)
+#define        CSA_VALUE_DATE_TIME             ((CSA_enum)7)
+#define        CSA_VALUE_DATE_TIME_RANGE       ((CSA_enum)8)
+#define CSA_VALUE_TIME_DURATION                ((CSA_enum)9)
+#define        CSA_VALUE_ACCESS_LIST           ((CSA_enum)10)
+#define        CSA_VALUE_ATTENDEE_LIST         ((CSA_enum)11)
+#define        CSA_VALUE_DATE_TIME_LIST        ((CSA_enum)12)
+#define        CSA_VALUE_REMINDER              ((CSA_enum)13)
+#define        CSA_VALUE_OPAQUE_DATA           ((CSA_enum)14)
+
+/* CALLBACK */
+
+/* REASON FOR CALLBACK */
+#define        CSA_CB_CALENDAR_LOGON                   ((CSA_flags)0x1)
+#define        CSA_CB_CALENDAR_DELETED                 ((CSA_flags)0x2)
+#define        CSA_CB_CALENDAR_ATTRIBUTE_UPDATED       ((CSA_flags)0x4)
+#define        CSA_CB_ENTRY_ADDED                      ((CSA_flags)0x8)
+#define        CSA_CB_ENTRY_DELETED                    ((CSA_flags)0x10)
+#define        CSA_CB_ENTRY_UPDATED                    ((CSA_flags)0x20)
+
+/* CALL DATA FOR CSA_CB_CALENDAR_LOGON */
+typedef struct CSA_TAG_LOGON_CB_DATA {
+       CSA_calendar_user       *user;
+} CSA_logon_callback_data;
+
+/* CALL DATA FOR CSA_CB_CALENDAR_DELETED */
+typedef struct CSA_TAG_CALENDAR_DELETED_CB_DATA {
+       CSA_calendar_user       *user;
+} CSA_calendar_deleted_callback_data;
+
+/* CALL DATA FOR CSA_CB_CALENDAR_ATTRIBUTE_UPDATED */
+typedef struct CSA_TAG_CALENDAR_ATTR_UPDATE_CB_DATA {
+       CSA_calendar_user       *user;
+       CSA_uint32              number_attributes;
+       CSA_attribute_reference *attribute_names;
+} CSA_calendar_attr_update_callback_data;
+
+/* CALL DATA FOR CSA_CB_ENTRY_ADDED */
+typedef struct CSA_TAG_ADD_ENTRY_CB_DATA {
+       CSA_calendar_user       *user;
+       CSA_opaque_data         added_entry_id;
+} CSA_add_entry_callback_data;
+
+/* CALL DATA FOR CSA_CB_ENTRY_DELETED */
+typedef struct CSA_TAG_DELETE_ENTRY_CB_DATA {
+       CSA_calendar_user       *user;
+       CSA_opaque_data         deleted_entry_id;
+       CSA_enum                scope;
+       CSA_date_time           date_and_time;
+} CSA_delete_entry_callback_data;
+
+/* CALL DATA FOR CSA_CB_ENTRY_UPDATED */
+typedef struct CSA_TAG_UPDATE_ENTRY_CB_DATA {
+       CSA_calendar_user       *user;          /* who updated entry? */
+       CSA_opaque_data         old_entry_id;   /* id of updated entry */
+       CSA_opaque_data         new_entry_id;   /* new id after update */
+       CSA_enum                scope;          /* scope of the update op */
+       CSA_date_time           date_and_time;  /* time of first updated */
+} CSA_update_entry_callback_data;
+
+/* CALLBACK FUNCTION PROTOTYPE */
+typedef void (*CSA_callback)(
+       CSA_session_handle      session,
+       CSA_flags               reason,
+       CSA_buffer              call_data,
+       CSA_buffer              client_data,
+       CSA_extension           *callback_extensions);
+
+/* FREE TIME */
+typedef struct CSA_TAG_FREE_TIME {
+       CSA_uint32              number_free_time_data;
+       CSA_date_time_range     *free_time_data;
+} CSA_free_time;
+
+/* REMINDER REFERENCE */
+typedef struct CSA_TAG_REMINDER_REFERENCE {
+       CSA_entry_handle        entry;
+       CSA_date_time           run_time;
+       CSA_time_duration       snooze_time;
+       CSA_uint32              repeat_count;
+       CSA_attribute_reference attribute_name;
+} CSA_reminder_reference;
+
+/* WORK SCHEDULE */
+typedef struct CSA_TAG_WORK_SCHEDULE {
+       CSA_date_time           schedule_begin_time;
+       CSA_boolean             cyclic_definition_flag;
+       CSA_date_time           cycle_end_time;
+       CSA_date_time_list      *work_cycle;
+} CSA_work_schedule;
+
+/* CSA FUNCTIONS */
+
+/* CROSS FUNCTION FLAGS */
+
+/* CLASSIFICATION */
+#define CSA_CLASS_PUBLIC       ((CSA_enum)0)
+#define CSA_CLASS_PRIVATE      ((CSA_enum)1)
+#define CSA_CLASS_CONFIDENTIAL ((CSA_enum)2)
+
+/* STATUS */
+#define        CSA_STATUS_ACCEPTED             ((CSA_enum)0)
+#define        CSA_STATUS_NEEDS_ACTION         ((CSA_enum)1)
+#define        CSA_STATUS_SENT                 ((CSA_enum)2)
+#define        CSA_STATUS_TENTATIVE            ((CSA_enum)3)
+#define        CSA_STATUS_CONFIRMED            ((CSA_enum)4)
+#define        CSA_STATUS_REJECTED             ((CSA_enum)5)
+#define        CSA_STATUS_COMPLETED            ((CSA_enum)6)
+#define        CSA_STATUS_DELEGATED            ((CSA_enum)7)
+
+/* CDE specific status values */
+#define        CSA_X_DT_STATUS_ACTIVE          ((CSA_enum)0x900)
+#define        CSA_X_DT_STATUS_DELETE_PENDING  ((CSA_enum)0x901)
+#define        CSA_X_DT_STATUS_ADD_PENDING     ((CSA_enum)0x902)
+#define        CSA_X_DT_STATUS_COMMITTED       ((CSA_enum)0x903)
+#define        CSA_X_DT_STATUS_CANCELLED       ((CSA_enum)0x904)
+
+/* SCOPE */
+#define        CSA_SCOPE_ALL           ((CSA_enum)0)
+#define        CSA_SCOPE_ONE           ((CSA_enum)1)
+#define        CSA_SCOPE_FORWARD       ((CSA_enum)2)
+
+/* OPERATORS */
+#define        CSA_MATCH_ANY                           ((CSA_enum)0)
+#define        CSA_MATCH_EQUAL_TO                      ((CSA_enum)1)
+#define        CSA_MATCH_NOT_EQUAL_TO                  ((CSA_enum)2)
+#define        CSA_MATCH_GREATER_THAN                  ((CSA_enum)3)
+#define        CSA_MATCH_LESS_THAN                     ((CSA_enum)4)
+#define        CSA_MATCH_GREATER_THAN_OR_EQUAL_TO      ((CSA_enum)5)
+#define        CSA_MATCH_LESS_THAN_OR_EQUAL_TO         ((CSA_enum)6)
+#define        CSA_MATCH_CONTAIN                       ((CSA_enum)7)
+
+/* FREE */
+CSA_return_code
+csa_free(
+       CSA_buffer      memory
+);
+
+/* LIST CALENDARS */
+CSA_return_code
+csa_list_calendars(
+       CSA_service_reference   calendar_service,
+       CSA_uint32              *number_names,
+       CSA_calendar_user       **calendar_names,
+       CSA_extension           *list_calendars_extensions
+);
+
+/* LOGOFF */
+CSA_return_code
+csa_logoff(
+       CSA_session_handle      session,
+       CSA_extension           *logoff_extensions
+);
+
+/* LOGON */
+CSA_return_code
+csa_logon(
+       CSA_service_reference   calendar_service,
+       CSA_calendar_user       *user,
+       CSA_string              password,
+       CSA_string              character_set,
+       CSA_string              required_csa_version,
+       CSA_session_handle      *session,
+       CSA_extension           *logon_extensions
+);
+
+/* LOOK UP */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_look_up(
+       CSA_session_handle      session,
+       CSA_calendar_user       *users,
+       CSA_flags               look_up_flags,
+       CSA_uint32              *number_users,
+       CSA_calendar_user       **user_list,
+       CSA_extension           *look_up_extensions
+);
+
+#define        CSA_LOOKUP_RESOLVE_PREFIX_SEARCH        ((CSA_flags)0x1)
+#define        CSA_LOOKUP_RESOLVE_IDENTITY             ((CSA_flags)0x2)
+
+/* QUERY CONFIGURATION */
+CSA_return_code
+csa_query_configuration(
+       CSA_session_handle      session,
+       CSA_enum                item,
+       CSA_buffer              *reference,
+       CSA_extension           *query_configuration_extensions
+);
+
+#define CSA_CONFIG_CHARACTER_SET       ((CSA_enum)0)
+#define CSA_CONFIG_LINE_TERM           ((CSA_enum)1)
+#define CSA_CONFIG_DEFAULT_SERVICE     ((CSA_enum)2)
+#define CSA_CONFIG_DEFAULT_USER                ((CSA_enum)3)
+#define        CSA_CONFIG_REQ_PASSWORD         ((CSA_enum)4)
+#define        CSA_CONFIG_REQ_SERVICE          ((CSA_enum)5)
+#define        CSA_CONFIG_REQ_USER             ((CSA_enum)6)
+#define        CSA_CONFIG_UI_AVAIL             ((CSA_enum)7)
+#define        CSA_CONFIG_VER_IMPLEM           ((CSA_enum)8)
+#define        CSA_CONFIG_VER_SPEC             ((CSA_enum)9)
+
+#define        CSA_LINE_TERM_CRLF              ((CSA_enum)0)
+#define        CSA_LINE_TERM_LF                ((CSA_enum)1)
+#define        CSA_LINE_TERM_CR                ((CSA_enum)2)
+
+#define        CSA_REQUIRED_NO                 ((CSA_enum)0)
+#define        CSA_REQUIRED_OPT                ((CSA_enum)1)
+#define        CSA_REQUIRED_YES                ((CSA_enum)2)
+
+/* CHARACTER SE IDENTIFIERS */
+#define        CSA_CHARSET_437         "-//XAPIA//CHARSET IBM 437//EN"
+#define        CSA_CHARSET_850         "-//XAPIA//CHARSET IBM 850//EN"
+#define        CSA_CHARSET_1252        "-//XAPIA//CHARSET Microsoft 1252//EN"
+#define        CSA_CHARSET_ISTRING     "-//XAPIA//CHARSET Apple ISTRING//EN"
+#define        CSA_CHARSET_UNICODE     "-//XAPIA//CHARSET UNICODE//EN"
+#define        CSA_CHARSET_T61         "-//XAPIA//CHARSET TSS T61//EN"
+#define        CSA_CHARSET_IA5         "-//XAPIA//CHARSET TSS IA5//EN"
+#define        CSA_CHARSET_ISO_10646   "-//XAPIA//CHARSET ISO 10646//EN"
+#define        CSA_CHARSET_ISO_646     "-//XAPIA//CHARSET ISO 646//EN"
+#define        CSA_CHARSET_iso_8859_1  "-//XAPIA//CHARSET ISO 8859-1//EN"
+
+/* RESTORE */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_restore(
+       CSA_session_handle      session,
+       CSA_string              archive_name,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *attributes,
+       CSA_enum                *operators,
+       CSA_extension           *restore_extensions
+);
+
+/* SAVE */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_save(
+       CSA_session_handle      session,
+       CSA_string              archive_name,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *attributes,
+       CSA_enum                *operators,
+       CSA_boolean             delete_entry,
+       CSA_extension           *save_extensions
+);
+
+/* ADD CALENDAR */
+CSA_return_code
+csa_add_calendar(
+       CSA_session_handle      session,
+       CSA_calendar_user       *user,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *calendar_attributes,
+       CSA_extension           *add_calendar_extensions
+);
+
+/* DELETE CALENDAR */
+CSA_return_code
+csa_delete_calendar(
+       CSA_session_handle      session,
+       CSA_extension           *delete_calendar_extensions
+);
+
+/* LIST CALENDAR ATTRIBUTES */
+CSA_return_code
+csa_list_calendar_attributes(
+       CSA_session_handle      session,
+       CSA_uint32              *number_names,
+       CSA_attribute_reference **calendar_attributes_names,
+       CSA_extension           *list_calendar_attributes_extensions
+);
+
+/* READ CALENDAR ATTRIBUTES */
+CSA_return_code
+csa_read_calendar_attributes(
+       CSA_session_handle      session,
+       CSA_uint32              number_names,
+       CSA_attribute_reference *attribte_names,
+       CSA_uint32              *number_attributes,
+       CSA_attribute           **calendar_attributes,
+       CSA_extension           *read_calendar_attributes_extensions
+);
+
+/* REGISTER CALLBACK FUNCTION */
+CSA_return_code
+csa_register_callback(
+       CSA_session_handle      session,
+       CSA_flags               reason,
+       CSA_callback            callback,
+       CSA_buffer              client_data,
+       CSA_extension           *register_callback_extensions
+);
+
+/* UNREGISTER CALLBACK FUNCTION */
+CSA_return_code
+csa_unregister_callback(
+       CSA_session_handle      session,
+       CSA_flags               reason,
+       CSA_callback            callback,
+       CSA_buffer              client_data,
+       CSA_extension           *unregister_callback_extensions
+);
+
+/* CALL CALLBACK FUNCTION */
+CSA_return_code
+csa_call_callbacks(
+       CSA_session_handle      session,
+       CSA_flags               reason,
+       CSA_extension           *call_callbacks_extensions
+);
+
+/* UDPATE CALENDAR ATTRIBUTES */
+CSA_return_code
+csa_update_calendar_attributes(
+       CSA_session_handle      session,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *calendar_attributes,
+       CSA_extension           *update_calendar_attributes_extensions
+);
+
+/* Add ENTRY */
+CSA_return_code
+csa_add_entry(
+       CSA_session_handle      session,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *entry_attributes,
+       CSA_entry_handle        *entry,
+       CSA_extension           *add_entry_extensions
+);
+
+/* DELETE ENTRY */
+CSA_return_code
+csa_delete_entry(
+       CSA_session_handle      session,
+       CSA_entry_handle        entry,
+       CSA_enum                delete_scope,
+       CSA_extension           *delete_entry_extensions
+);
+
+/* FREE TIME SEARCH */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_free_time_search(
+       CSA_session_handle      session,
+       CSA_date_time_range     date_time_range,
+       CSA_time_duration       time_duration,
+       CSA_uint32              number_users,
+       CSA_calendar_user       *calendar_users,
+       CSA_free_time           **free_time,
+       CSA_extension           *free_time_search_extensions
+);
+
+/* LIST ENTRIES */
+CSA_return_code
+csa_list_entries(
+       CSA_session_handle      session,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *entry_attributes,
+       CSA_enum                *list_operators,
+       CSA_uint32              *number_entries,
+       CSA_entry_handle        **entries,
+       CSA_extension           *list_entries_extensions
+);
+
+/* LIST ENTRY ATTRIBUTES */
+CSA_return_code
+csa_list_entry_attributes(
+       CSA_session_handle      session,
+       CSA_entry_handle        entry,
+       CSA_uint32              *number_names,
+       CSA_attribute_reference **entry_attribute_names,
+       CSA_extension           *list_entry_attributes_extensions
+);
+
+/* LIST ENTRY SEQUENCE */
+CSA_return_code
+csa_list_entry_sequence(
+       CSA_session_handle      session,
+       CSA_entry_handle        entry,
+       CSA_date_time_range     time_range,
+       CSA_uint32              *number_entries,
+       CSA_entry_handle        **entry_list,
+       CSA_extension           *list_entry_sequence_extensions
+);
+
+/* READ ENTRY ATTRIBUTES */
+CSA_return_code
+csa_read_entry_attributes(
+       CSA_session_handle      session,
+       CSA_entry_handle        entry,
+       CSA_uint32              number_names,
+       CSA_attribute_reference *attribute_names,
+       CSA_uint32              *number_attributes,
+       CSA_attribute           **entry_attributes,
+       CSA_extension           *read_entry_attributes_extensions
+);
+
+/* READ NEXT REMINDERS */
+CSA_return_code
+csa_read_next_reminder(
+       CSA_session_handle      session,
+       CSA_uint32              number_names,
+       CSA_attribute_reference *reminder_names,
+       CSA_date_time           given_time,
+       CSA_uint32              *number_reminders,
+       CSA_reminder_reference  **reminder_references,
+       CSA_extension           *read_next_reminder_extensions
+);
+
+/* UPDATE ENTRY ATTRIBUTES */
+CSA_return_code
+csa_update_entry_attributes(
+       CSA_session_handle      session,
+       CSA_entry_handle        entry,
+       CSA_enum                update_scope,
+       CSA_boolean             update_propagation,
+       CSA_uint32              number_attributes,
+       CSA_attribute           *entry_attributes,
+       CSA_entry_handle        *new_entry,
+       CSA_extension           *update_entry_attributes_extensions
+);
+
+/* STRING BASED FUNCTIONS */
+
+/* ADD EVENT */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_add_event(
+       CSA_service_reference   calendar_service,
+       CSA_string              calendar_address,
+       CSA_string              logon_user,
+       CSA_string              logon_password,
+       CSA_string              attendee,
+       CSA_enum                attendee_priority,
+       CSA_enum                attendee_status,
+       CSA_boolean             attendee_rsvp_requested,
+       CSA_date_time           start_date,
+       CSA_date_time           end_date,
+       CSA_string              organizer,
+       CSA_string              sponsor,
+       CSA_string              summary,
+       CSA_string              description,
+       CSA_string              recurrence_rule,
+       CSA_string              exception_rule,
+       CSA_string              subtype,
+       CSA_enum                classification,
+       CSA_string              delimiters,
+       CSA_string              add_event_extensions
+);
+
+/* ADD TODO */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_add_todo(
+       CSA_service_reference   calendar_service,
+       CSA_string              calendar_address,
+       CSA_string              logon_user,
+       CSA_string              logon_password,
+       CSA_enum                attendee_priority,
+       CSA_enum                attendee_status,
+       CSA_boolean             attendee_rsvp_requested,
+       CSA_date_time           start_date,
+       CSA_date_time           due_date,
+       CSA_uint32              priority,
+       CSA_string              summary,
+       CSA_string              description,
+       CSA_enum                classification,
+       CSA_string              delimiters,
+       CSA_string              add_todo_extensions
+);
+
+/* ADD MEMO */ /* NOT IMPLEMENTED IN THIS RELEASE */
+CSA_return_code
+csa_add_memo(
+       CSA_service_reference   calendar_service,
+       CSA_string              calendar_address,
+       CSA_string              logon_user,
+       CSA_string              logon_password,
+       CSA_date_time           start_date,
+       CSA_string              summary,
+       CSA_string              delimiters,
+       CSA_string              add_memo_extensions
+);
+
+/* RETURN ERROR FLAGS */
+#define        CSA_ERROR_RSV_MASK      ((CSA_return_code)0x0000FFFF)
+#define        CSA_ERROR_IMPL_MASK     ((CSA_return_code)0xFFFF0000)
+
+/* macro to get XAPIA CSA return code */
+#define CSA_X_DT_CSA_RETURN_CODE(c) \
+        ((CSA_return_code)((c) & CSA_ERROR_RSV_MASK))
+
+/* RETURN CODES */
+#define        CSA_SUCCESS                             ((CSA_return_code)0)
+
+#define        CSA_E_AMBIGUOUS_USER                    ((CSA_return_code)1)
+#define CSA_E_CALENDAR_EXISTS                  ((CSA_return_code)2)
+#define CSA_E_CALENDAR_NOT_EXIST               ((CSA_return_code)3)
+#define CSA_E_CALLBACK_NOT_REGISTERED          ((CSA_return_code)4)
+#define        CSA_E_DISK_FULL                         ((CSA_return_code)5)
+#define        CSA_E_FAILURE                           ((CSA_return_code)6)
+#define        CSA_E_FILE_EXIST                        ((CSA_return_code)7)
+#define        CSA_E_FILE_NOT_EXIST                    ((CSA_return_code)8)
+#define        CSA_E_INSUFFICIENT_MEMORY               ((CSA_return_code)9)
+#define        CSA_E_INVALID_ATTRIBUTE                 ((CSA_return_code)10)
+#define        CSA_E_INVALID_ATTRIBUTE_VALUE           ((CSA_return_code)11)
+#define        CSA_E_INVALID_CALENDAR_SERVICE          ((CSA_return_code)12)
+#define        CSA_E_INVALID_CONFIGURATION             ((CSA_return_code)13)
+#define        CSA_E_INVALID_DATA_EXT                  ((CSA_return_code)14)
+#define        CSA_E_INVALID_DATE_TIME                 ((CSA_return_code)15)
+#define        CSA_E_INVALID_ENTRY_HANDLE              ((CSA_return_code)16)
+#define        CSA_E_INVALID_ENUM                      ((CSA_return_code)17)
+#define        CSA_E_INVALID_FILE_NAME                 ((CSA_return_code)18)
+#define        CSA_E_INVALID_FLAG                      ((CSA_return_code)19)
+#define        CSA_E_INVALID_FUNCTION_EXT              ((CSA_return_code)20)
+#define        CSA_E_INVALID_MEMORY                    ((CSA_return_code)21)
+#define        CSA_E_INVALID_PARAMETER                 ((CSA_return_code)22)
+#define        CSA_E_INVALID_PASSWORD                  ((CSA_return_code)23)
+#define        CSA_E_INVALID_RULE                      ((CSA_return_code)24)
+#define        CSA_E_INVALID_SESSION_HANDLE            ((CSA_return_code)25)
+#define        CSA_E_INVALID_USER                      ((CSA_return_code)26)
+#define        CSA_E_NO_AUTHORITY                      ((CSA_return_code)27)
+#define        CSA_E_NOT_SUPPORTED                     ((CSA_return_code)28)
+#define        CSA_E_PASSWORD_REQUIRED                 ((CSA_return_code)29)
+#define        CSA_E_READONLY                          ((CSA_return_code)30)
+#define        CSA_E_SERVICE_UNAVAILABLE               ((CSA_return_code)31)
+#define        CSA_E_TEXT_TOO_LARGE                    ((CSA_return_code)32)
+#define        CSA_E_TOO_MANY_USERS                    ((CSA_return_code)33)
+#define        CSA_E_UNABLE_TO_OPEN_FILE               ((CSA_return_code)34)
+#define        CSA_E_UNSUPPORTED_ATTRIBUTE             ((CSA_return_code)35)
+#define        CSA_E_UNSUPPORTED_CHARACTER_SET         ((CSA_return_code)36)
+#define        CSA_E_UNSUPPORTED_DATA_EXT              ((CSA_return_code)37)
+#define        CSA_E_UNSUPPORTED_ENUM                  ((CSA_return_code)38)
+#define        CSA_E_UNSUPPORTED_FLAG                  ((CSA_return_code)39)
+#define        CSA_E_UNSUPPORTED_FUNCTION_EXT          ((CSA_return_code)40)
+#define        CSA_E_UNSUPPORTED_PARAMETER             ((CSA_return_code)41)
+#define        CSA_E_UNSUPPORTED_VERSION               ((CSA_return_code)42)
+#define        CSA_E_USER_NOT_FOUND                    ((CSA_return_code)43)
+#define        CSA_E_TIME_ONLY                         ((CSA_return_code)44)
+
+#define CSA_X_DT_E_BACKING_STORE_PROBLEM       ((CSA_return_code)0x900001F)
+#define CSA_X_DT_E_ENTRY_NOT_FOUND             ((CSA_return_code)0x9010010)
+#define CSA_X_DT_E_INVALID_SERVER_LOCATION     ((CSA_return_code)0x902000C)
+#define CSA_X_DT_E_SERVER_TIMEOUT              ((CSA_return_code)0x903001F)
+#define CSA_X_DT_E_SERVICE_NOT_REGISTERED      ((CSA_return_code)0x904001F)
+
+/* CALENDAR ATTRIBUTES */
+
+extern char *_CSA_calendar_attribute_names[];
+
+/* CALENDAR ATTRIBUTE NAMES */
+
+#define CSA_CAL_ATTR_ACCESS_LIST_I     1
+#define CSA_CAL_ATTR_ACCESS_LIST \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_ACCESS_LIST_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Access List//EN" */
+
+#define CSA_CAL_ATTR_CALENDAR_NAME_I   2
+#define CSA_CAL_ATTR_CALENDAR_NAME \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_NAME_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Name//EN" */
+
+#define CSA_CAL_ATTR_CALENDAR_OWNER_I  3
+#define CSA_CAL_ATTR_CALENDAR_OWNER \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_OWNER_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Owner//EN" */
+
+#define CSA_CAL_ATTR_CALENDAR_SIZE_I   4
+#define CSA_CAL_ATTR_CALENDAR_SIZE \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_SIZE_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Size//EN" */
+
+#define CSA_CAL_ATTR_CHARACTER_SET_I   5
+#define CSA_CAL_ATTR_CHARACTER_SET \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CHARACTER_SET_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Character Set//EN" */
+
+#define CSA_CAL_ATTR_COUNTRY_I         6
+#define CSA_CAL_ATTR_COUNTRY \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_COUNTRY_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Country//EN" */
+
+#define CSA_CAL_ATTR_DATE_CREATED_I    7
+#define CSA_CAL_ATTR_DATE_CREATED \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_DATE_CREATED_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Date Created//EN" */
+
+#define CSA_CAL_ATTR_LANGUAGE_I                8
+#define CSA_CAL_ATTR_LANGUAGE \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_LANGUAGE_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Language//EN" */
+
+#define CSA_CAL_ATTR_NUMBER_ENTRIES_I  9
+#define CSA_CAL_ATTR_NUMBER_ENTRIES \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_NUMBER_ENTRIES_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Number Entries//EN" */
+
+#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I      10
+#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Product Identifier//EN" */
+
+#define CSA_CAL_ATTR_TIME_ZONE_I       11
+#define CSA_CAL_ATTR_TIME_ZONE \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_TIME_ZONE_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Time Zone//EN" */
+
+#define CSA_CAL_ATTR_VERSION_I         12
+#define CSA_CAL_ATTR_VERSION \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_VERSION_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Version//EN" */
+
+#define CSA_CAL_ATTR_WORK_SCHEDULE_I   13
+#define CSA_CAL_ATTR_WORK_SCHEDULE \
+        _CSA_calendar_attribute_names[CSA_CAL_ATTR_WORK_SCHEDULE_I]
+  /* "-//XAPIA/CSA/CALATTR//NONSGML Work Schedule//EN" */
+
+#define CSA_X_DT_CAL_ATTR_SERVER_VERSION_I     14
+#define CSA_X_DT_CAL_ATTR_SERVER_VERSION \
+        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_SERVER_VERSION_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Server Version//EN" */
+
+#define CSA_X_DT_CAL_ATTR_DATA_VERSION_I       15
+#define CSA_X_DT_CAL_ATTR_DATA_VERSION \
+        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_DATA_VERSION_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Data Version//EN" */
+
+#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I      16
+#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER \
+        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Calendar Delimiter//EN" */
+
+
+/* ENTRY ATTRIBUTES */
+
+extern char *_CSA_entry_attribute_names[];
+
+/* ENTRY ATTRIBUTES NAMES */
+
+#define CSA_ENTRY_ATTR_ATTENDEE_LIST_I         1
+#define CSA_ENTRY_ATTR_ATTENDEE_LIST \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ATTENDEE_LIST_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Attendee List//EN" */
+
+#define CSA_ENTRY_ATTR_AUDIO_REMINDER_I        2
+#define CSA_ENTRY_ATTR_AUDIO_REMINDER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_AUDIO_REMINDER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Audio Reminder//EN" */
+
+#define CSA_ENTRY_ATTR_CLASSIFICATION_I                3
+#define CSA_ENTRY_ATTR_CLASSIFICATION \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_CLASSIFICATION_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Classification//EN" */
+
+#define CSA_ENTRY_ATTR_DATE_COMPLETED_I                4
+#define CSA_ENTRY_ATTR_DATE_COMPLETED \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_COMPLETED_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Completed//EN" */
+
+#define CSA_ENTRY_ATTR_DATE_CREATED_I          5
+#define CSA_ENTRY_ATTR_DATE_CREATED \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_CREATED_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Created//EN" */
+
+#define CSA_ENTRY_ATTR_DESCRIPTION_I           6
+#define CSA_ENTRY_ATTR_DESCRIPTION \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DESCRIPTION_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Description//EN" */
+
+#define CSA_ENTRY_ATTR_DUE_DATE_I              7
+#define CSA_ENTRY_ATTR_DUE_DATE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DUE_DATE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Due Date//EN" */
+
+#define CSA_ENTRY_ATTR_END_DATE_I              8
+#define CSA_ENTRY_ATTR_END_DATE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_END_DATE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML End Date//EN" */
+
+#define CSA_ENTRY_ATTR_EXCEPTION_DATES_I       9
+#define CSA_ENTRY_ATTR_EXCEPTION_DATES \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_DATES_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Dates//EN" */
+
+#define CSA_ENTRY_ATTR_EXCEPTION_RULE_I                10
+#define CSA_ENTRY_ATTR_EXCEPTION_RULE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_RULE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Rule//EN" */
+
+#define CSA_ENTRY_ATTR_FLASHING_REMINDER_I     11
+#define CSA_ENTRY_ATTR_FLASHING_REMINDER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_FLASHING_REMINDER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Flashing Reminder//EN" */
+
+#define CSA_ENTRY_ATTR_LAST_UPDATE_I           12
+#define CSA_ENTRY_ATTR_LAST_UPDATE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_LAST_UPDATE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Last Update//EN" */
+
+#define CSA_ENTRY_ATTR_MAIL_REMINDER_I         13
+#define CSA_ENTRY_ATTR_MAIL_REMINDER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_MAIL_REMINDER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Mail Reminder//EN" */
+
+#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I    14
+#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Number Recurrences//EN" */
+
+#define CSA_ENTRY_ATTR_ORGANIZER_I             15
+#define CSA_ENTRY_ATTR_ORGANIZER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ORGANIZER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Organizer//EN" */
+
+#define CSA_ENTRY_ATTR_POPUP_REMINDER_I                16
+#define CSA_ENTRY_ATTR_POPUP_REMINDER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_POPUP_REMINDER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Popup Reminder//EN" */
+
+#define CSA_ENTRY_ATTR_PRIORITY_I              17
+#define CSA_ENTRY_ATTR_PRIORITY \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_PRIORITY_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Priority//EN" */
+
+#define CSA_ENTRY_ATTR_RECURRENCE_RULE_I       18
+#define CSA_ENTRY_ATTR_RECURRENCE_RULE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRENCE_RULE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurrence Rule//EN" */
+
+#define CSA_ENTRY_ATTR_RECURRING_DATES_I       19
+#define CSA_ENTRY_ATTR_RECURRING_DATES \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRING_DATES_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurring Dates//EN" */
+
+#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I  20
+#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Reference Identifier//EN" */
+
+#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I       21
+#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sequence Number//EN" */
+
+#define CSA_ENTRY_ATTR_SPONSOR_I               22
+#define CSA_ENTRY_ATTR_SPONSOR \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SPONSOR_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sponsor//EN" */
+
+#define CSA_ENTRY_ATTR_START_DATE_I            23
+#define CSA_ENTRY_ATTR_START_DATE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_START_DATE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Start Date//EN" */
+
+#define CSA_ENTRY_ATTR_STATUS_I                        24
+#define CSA_ENTRY_ATTR_STATUS \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_STATUS_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Status//EN" */
+
+#define CSA_ENTRY_ATTR_SUBTYPE_I               25
+#define CSA_ENTRY_ATTR_SUBTYPE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUBTYPE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Subtype//EN" */
+
+#define CSA_ENTRY_ATTR_SUMMARY_I               26
+#define CSA_ENTRY_ATTR_SUMMARY \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUMMARY_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Summary//EN" */
+
+#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I     27
+#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Time Transparency//EN" */
+
+#define CSA_ENTRY_ATTR_TYPE_I                  28
+#define CSA_ENTRY_ATTR_TYPE \
+        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TYPE_I]
+  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Type//EN" */
+
+/* cde defined entry attributes */
+#define CSA_X_DT_ENTRY_ATTR_SHOWTIME_I                 29
+#define CSA_X_DT_ENTRY_ATTR_SHOWTIME \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SHOWTIME_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Show Time//EN" */
+
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I              30
+#define        CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Type//EN" */
+
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I             31
+#define        CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Times//EN" */
+
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I          32
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Interval//EN" */
+
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I    33
+#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I]
+  /*"-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Occurrence Number//EN"*/
+
+#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I                34
+#define        CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Sequence End Date//EN" */
+
+#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I          35
+#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER \
+        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I]
+  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Entry Delimiter//EN" */
+
+/*
+ * values for entry attribute CSA_ENTRY_ATTR_TYPE
+ */
+
+#define        CSA_TYPE_EVENT          ((CSA_enum)0)
+#define        CSA_TYPE_TODO           ((CSA_enum)1)
+#define        CSA_TYPE_MEMO           ((CSA_enum)2)
+#define CSA_X_DT_TYPE_OTHER    ((CSA_enum)900)
+
+/*
+ * values for entry attribute CSA_ENTRY_ATTR_SUBTYPE
+ */
+
+extern char *_CSA_entry_subtype_values[];
+
+#define        CSA_SUBTYPE_APPOINTMENT_I       0
+#define        CSA_SUBTYPE_APPOINTMENT \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_APPOINTMENT_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Appointment//EN" */
+
+#define        CSA_SUBTYPE_CLASS_I             1
+#define        CSA_SUBTYPE_CLASS \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_CLASS_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Class//EN" */
+
+#define        CSA_SUBTYPE_HOLIDAY_I           2
+#define        CSA_SUBTYPE_HOLIDAY \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_HOLIDAY_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Holiday//EN" */
+
+#define CSA_SUBTYPE_MEETING_I          3
+#define CSA_SUBTYPE_MEETING \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_MEETING_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Meeting//EN" */
+
+#define        CSA_SUBTYPE_MISCELLANEOUS_I     4
+#define        CSA_SUBTYPE_MISCELLANEOUS \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_MISCELLANEOUS_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Miscellaneous//EN" */
+
+#define        CSA_SUBTYPE_PHONE_CALL_I        5
+#define        CSA_SUBTYPE_PHONE_CALL \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_PHONE_CALL_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Phone Call//EN" */
+
+#define        CSA_SUBTYPE_SICK_DAY_I          6
+#define        CSA_SUBTYPE_SICK_DAY \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_SICK_DAY_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Sick Day//EN" */
+
+#define        CSA_SUBTYPE_SPECIAL_OCCASION_I  7
+#define        CSA_SUBTYPE_SPECIAL_OCCASION \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_SPECIAL_OCCASION_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Special Occasion//EN" */
+
+#define        CSA_SUBTYPE_TRAVEL_I            8
+#define        CSA_SUBTYPE_TRAVEL \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_TRAVEL_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Travel//EN" */
+
+#define        CSA_SUBTYPE_VACATION_I          9
+#define        CSA_SUBTYPE_VACATION \
+        _CSA_entry_subtype_values[CSA_SUBTYPE_VACATION_I]
+  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Vacation//EN" */
+
+/*
+ * special value for CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES
+ */
+
+#define        CSA_X_DT_DT_REPEAT_FOREVER      0
+
+/*
+ * Values for entry attribute CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE
+ */
+
+#define        CSA_X_DT_REPEAT_ONETIME                 ((CSA_enum)0)
+#define        CSA_X_DT_REPEAT_DAILY                   ((CSA_enum)1)
+#define        CSA_X_DT_REPEAT_WEEKLY                  ((CSA_enum)2)
+#define        CSA_X_DT_REPEAT_BIWEEKLY                ((CSA_enum)3)
+#define        CSA_X_DT_REPEAT_MONTHLY_BY_WEEKDAY      ((CSA_enum)4)
+#define        CSA_X_DT_REPEAT_MONTHLY_BY_DATE         ((CSA_enum)5)
+#define        CSA_X_DT_REPEAT_YEARLY                  ((CSA_enum)6)
+#define        CSA_X_DT_REPEAT_EVERY_NDAY              ((CSA_enum)7)
+#define        CSA_X_DT_REPEAT_EVERY_NWEEK             ((CSA_enum)8)
+#define        CSA_X_DT_REPEAT_EVERY_NMONTH            ((CSA_enum)9)
+#define        CSA_X_DT_REPEAT_MON_TO_FRI              ((CSA_enum)10)
+#define        CSA_X_DT_REPEAT_MONWEDFRI               ((CSA_enum)11)
+#define        CSA_X_DT_REPEAT_TUETHUR                 ((CSA_enum)12)
+#define        CSA_X_DT_REPEAT_WEEKDAYCOMBO            ((CSA_enum)13)
+#define        CSA_X_DT_REPEAT_OTHER                   ((CSA_enum)14)
+#define        CSA_X_DT_REPEAT_OTHER_WEEKLY            ((CSA_enum)15)
+#define        CSA_X_DT_REPEAT_OTHER_MONTHLY           ((CSA_enum)16)
+#define        CSA_X_DT_REPEAT_OTHER_YEARLY            ((CSA_enum)17)
+
+/* COMMON EXTENSIONS DECLARATIONS */
+
+/* EXTENSION SET ID */
+
+/* Common Extension Set */
+#define        CSA_XS_COM                      ((CSA_uint32)0)
+
+/* Bilateral Extension Set */
+#define        CSA_XS_BLT                      ((CSA_uint32)256)
+
+/* FUNCTION EXTENSIONS */
+
+/* Query for extension support in implementation */
+
+#define        CSA_X_COM_SUPPORT_EXT           ((CSA_uint32)1)
+
+typedef struct CSA_TAG_XCOM {
+       CSA_uint32      item_code;
+       CSA_flags       flags;
+} CSA_X_COM_support;
+
+#define        CSA_X_COM_SUPPORTED             ((CSA_flags)0x1)
+#define        CSA_X_COM_NOT_SUPPORTED         ((CSA_flags)0x2)
+#define        CSA_X_COM_DATA_EXT_SUPPORTED    ((CSA_flags)0x4)
+#define        CSA_X_COM_FUNC_EXT_SUPPORTED    ((CSA_flags)0x8)
+#define        CSA_X_COM_SUP_EXCLUDE           ((CSA_flags)0x10)
+
+/* UI_ID EXTENSION */
+
+#define CSA_X_UI_ID_EXT                        ((CSA_uint32)2)
+
+/* Extension Flags */
+#define CSA_X_LOGON_UI_ALLOWED         ((CSA_flags)0x1)
+#define CSA_X_ERROR_UI_ALLOWED         ((CSA_flags)0x2)
+#define CSA_X_LOOKUP_RESOLVE_UI                ((CSA_flags)0x4)
+#define CSA_X_LOOKUP_DETAILS_UI                ((CSA_flags)0x8)
+#define CSA_X_LOOKUP_ADDRESSING_UI     ((CSA_flags)0x10)
+#define CSA_X_ADD_DEFINE_ENTRY_UI      ((CSA_flags)0x20)
+
+/* Extension Return Codes */
+#define        CSA_X_E_INVALID_UI_ID           ((CSA_return_code)1025)
+#define        CSA_X_E_LOGON_FAILURE           ((CSA_return_code)1026)
+#define        CSA_X_E_USER_CANCEL             ((CSA_return_code)1027)
+
+/* XT APPLICATION CONTEXT EXTENSION */
+
+#define CSA_X_XT_APP_CONTEXT_EXT       ((CSA_uint32)3)
+
+/* Get User access extension */
+#define        CSA_XS_DT                       ((CSA_uint32)900)
+#define        CSA_X_DT_GET_USER_ACCESS_EXT    ((CSA_uint32)901)
+
+#endif
+
diff --git a/cde/lib/DtHelp/Access.h b/cde/lib/DtHelp/Access.h
deleted file mode 100644 (file)
index b6939b8..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Access.h /main/7 1995/12/18 16:29:36 cde-hp $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        Access.h
- **
- **   Project:     Run Time Project File Access
- **
- **   Description: Header file for Access.h
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpAccess_h
-#define _DtHelpAccess_h
-
-/****************************************************************************
- *                     Public Defines
- ****************************************************************************/
-#ifndef        True
-#define        True    1
-#endif
-#ifndef        TRUE
-#define        TRUE    1
-#endif
-#ifndef        False
-#define        False   0
-#endif
-#ifndef        FALSE
-#define        FALSE   0
-#endif
-
-typedef        void*   _DtHelpVolumeHdl;
-
-/****************************************************************************
- *                     Semi-Private Externals
- ****************************************************************************/
-extern int      _DtHelpCeCompressPathname ( char *basePath );
-extern char    *_DtHelpCeTraceFilenamePath ( char *file_path );
-extern char    *_DtHelpCeTracePathName ( char *path );
-
-/****************************************************************************
- *                     Semi-Public Externals
- ****************************************************************************/
-extern int      _DtHelpCloseVolume (
-                               _DtHelpVolumeHdl vol );
-extern int      _DtHelpCeFindId (
-                               _DtHelpVolumeHdl  vol,
-                               char             *target_id,
-                               int               fd,
-                               char            **ret_name,
-                               int              *ret_offset );
-extern int      _DtHelpCeFindKeyword (
-                               _DtHelpVolumeHdl   vol,
-                               char              *target,
-                               char            ***ret_ids );
-extern int      _DtHelpCeGetKeywordList (
-                               _DtHelpVolumeHdl   vol,
-                               char            ***ret_keywords );
-extern int      _DtHelpCeGetTopTopicId (
-                               _DtHelpVolumeHdl  vol,
-                               char            **ret_idString );
-extern char    *_DtHelpCeGetVolumeName(
-                               _DtHelpVolumeHdl   vol);
-extern  char    *_DtHelpGetVolumeLocale (
-                               _DtHelpVolumeHdl  volume);
-extern int      _DtHelpOpenVolume (
-                               char            *volFile,
-                               _DtHelpVolumeHdl*retVol );
-extern int      _DtHelpCeUpVolumeOpenCnt (
-                               _DtHelpVolumeHdl   volume);
-#endif /* _DtHelpAccess_h */
diff --git a/cde/lib/DtHelp/AccessI.h b/cde/lib/DtHelp/AccessI.h
deleted file mode 100644 (file)
index 4dcc627..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: AccessI.h /main/7 1995/12/18 16:29:56 cde-hp $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        AccessI.h
- **
- **   Project:     Run Time Project File Access
- **
- **   Description: Header file for Access.h
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpAccessI_h
-#define _DtHelpAccessI_h
-
-
-#ifndef        _XtIntrinsic_h
-/*
- * typedef Boolean
- */
-#ifdef CRAY
-typedef long            Boolean;
-#else
-typedef char            Boolean;
-#endif
-#endif
-
-#ifndef        _XLIB_H_
-#ifndef        True
-#define        True    1
-#endif
-#ifndef        TRUE
-#define        TRUE    1
-#endif
-#ifndef        False
-#define        False   0
-#endif
-#ifndef        FALSE
-#define        FALSE   0
-#endif
-#endif
-
-/******************************************************************************
- *                   Semi-Public Structures
- ******************************************************************************/
-typedef struct {
-       char  match;
-       char *substitution;
-} _DtSubstitutionRec;
-
-typedef        struct _dtHelpCeLockInfo {
-       int             fd;
-       _DtHelpVolumeHdl        volume;
-} _DtHelpCeLockInfo;
-
-/******************************************************************************
- *                   Semi-Public Access Functions
- ******************************************************************************/
-extern char    *_DtHelpCeExpandPathname (
-                       char               *spec,
-                       char               *filename,
-                       char               *type,
-                       char               *suffix,
-                       char               *lang,
-                       _DtSubstitutionRec *subs,
-                       int                 num );
-extern int      _DtHelpCeFileOpenAndSeek(
-                       char            *filename,
-                       int              offset,
-                       int              fd,
-                       BufFilePtr      *ret_file,
-                       time_t          *ret_time);
-extern int      _DtHelpCeGetDocStamp (
-                       _DtHelpVolumeHdl  volume,
-                       char            **ret_doc,
-                       char            **ret_time);
-extern int      _DtHelpCeGetLangSubParts (
-                       char             *lang,
-                       char            **subLang,
-                       char            **subTer,
-                       char            **subCodeSet );
-extern int      _DtHelpCeGetTopicChildren(
-                       _DtHelpVolumeHdl  volume,
-                       char             *topic_id,
-                       char            ***ret_childs);
-extern int      _DtHelpGetTopicTitle(
-                       _DtHelpVolumeHdl  volume,
-                       char             *target_id,
-                       char            **ret_title);
-extern int      _DtHelpCeGetUncompressedFileName (
-                       char              *name,
-                       char             **ret_name);
-extern const char *_DtHelpCeGetVolumeCharSet (
-                       _DtHelpVolumeHdl  volume);
-extern int      _DtHelpCeGetVolumeFlag (
-                       _DtHelpVolumeHdl  volume);
-extern int      _DtHelpCeIsTopTopic(
-                       _DtHelpVolumeHdl   volume,
-                       const char        *id);
-extern int      _DtHelpCeLockVolume(
-                       _DtHelpVolumeHdl   volume,
-                       _DtHelpCeLockInfo *ret_info);
-extern int      _DtHelpCeMapTargetToId (
-                       _DtHelpVolumeHdl  volume,
-                       char             *target_id,
-                       char            **ret_id);
-extern int      _DtHelpCeUnlockVolume(_DtHelpCeLockInfo lock_info);
-#endif /* _DtHelpAccessI_h */
diff --git a/cde/lib/DtHelp/AccessP.h b/cde/lib/DtHelp/AccessP.h
deleted file mode 100644 (file)
index 20e6a2a..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: AccessP.h /main/5 1995/12/18 16:30:01 cde-hp $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        AccessP.h
- **
- **   Project:     Run Time Project File Access
- **
- **  
- **   Description: Private header file for Access.h
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtAccessP_h
-#define _DtAccessP_h
-
-#include <sys/stat.h>
-typedef        void*   SdlVolumeHandle;
-typedef        void*   CcdfVolumeHandle;
-
-typedef        union _dthelpVolumes {
-       SdlVolumeHandle sdl_vol;
-       CcdfVolumeHandle ccdf_vol;
-} DtHelpVols;
-
-/*
- * The following structure holds loaded volumes.  The fields of this 
- * structure should not be accessed by any code outside of the volume
- * module.
- */
-struct _DtHelpVolumeRec {
-    short      sdl_flag;       /* The type of volume */
-    char *volFile;             /* The name of the volume file in the */
-                               /* form it was passed to _DtVolumeOpen. */
-
-    char **keywords;           /* A pointer to a string array */
-                               /* containing all of the keywords in */
-                               /* sorted order.  This field is not loaded */
-                               /* until it is needed. */
-
-    char ***keywordTopics;     /* A pointer to an array of string */
-                               /* arrays.  Each string array specifies */
-                               /* the list of topics which contain the */
-                               /* corresponding keyword.  This field is  */
-                               /* not loaded until it is needed. */
-
-    DtHelpVols vols;           /* Handles to format specific volume info */
-    int openCount;             /* A count of the number of times this */
-                               /* volume has been opened. */
-
-    time_t check_time;         /* Time this volume was last modified */
-    struct _DtHelpVolumeRec *nextVol;
-                               /* A pointer to the next volume, used to */
-                               /* chain all of the open volumes together. */
-};
-
-typedef struct _DtHelpVolumeRec *_DtHelpVolume;
-
-#endif /* _DtAccessP_h */
diff --git a/cde/lib/DtHelp/ActionsI.h b/cde/lib/DtHelp/ActionsI.h
deleted file mode 100644 (file)
index d18c10b..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ActionsI.h /main/5 1995/12/08 13:00:31 cde-hal $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        ActionsI.h
- **
- **   Project:     Display area routines
- **
- **   Description: Header file for Actions.c
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpActionsI_h
-#define _DtHelpActionsI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*****************************************************************************
- *              Semi Public Routines
- *****************************************************************************/
-extern void    _DtHelpActivateLink (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpCopyAction (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpDeSelectAll (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpNextLink (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpPageLeftOrRight (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpPageUpOrDown (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-extern void    _DtHelpSelectAll (
-                       Widget          widget,
-                       XEvent          *event,
-                       String          *params,
-                       Cardinal        *num_params);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtHelpActionsI_h */
diff --git a/cde/lib/DtHelp/CallbacksI.h b/cde/lib/DtHelp/CallbacksI.h
deleted file mode 100644 (file)
index 6f2e31a..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: CallbacksI.h /main/7 1996/02/27 20:06:41 cde-hal $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        CallbacksTG.h
- **
- **   Project:     TextGraphic Display routines
- **
- **  
- **   Description: Header file for CallbacksTG.h
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpCallbacksI_h
-#define _DtHelpCallbacksI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*****************************************************************************
- *              Semi Public Routines
- *****************************************************************************/
-extern Boolean _DtHelpCancelSelection(
-                       XtPointer client_data);
-extern void    _DtHelpCleanAndDrawWholeCanvas(
-                       XtPointer client_data);
-extern void    _DtHelpSearchMoveTraversal(
-                       XtPointer client_data,
-                       int search_hit_index);
-
-/*****************************************************************************
- *              Public Routines
- *****************************************************************************/
-extern void    _DtHelpClearSelection (
-                       XtPointer       client_data );
-extern void    _DtHelpClickOrSelectCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern void    _DtHelpEndSelectionCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern  void    _DtHelpEnterLeaveCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XEvent          *event );
-extern void    _DtHelpExposeCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern void    _DtHelpFocusCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XEvent          *event );
-extern void    _DtHelpGetClearSelection (
-                       Widget          widget,
-                       XtPointer       client_data);
-extern void    _DtHelpHorzScrollCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern void    _DtHelpInitiateClipboard (
-                       XtPointer       client_data );
-extern void    _DtHelpLoseSelectionCB (
-                       Widget   widget,
-                       Atom    *selection );
-extern void    _DtHelpMoveBtnFocusCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XEvent          *event );
-extern void    _DtHelpMouseMoveCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XEvent          *event );
-extern void    _DtHelpResizeCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern void    _DtHelpVertScrollCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XtPointer       call_data );
-extern void    _DtHelpVisibilityCB (
-                       Widget          widget,
-                       XtPointer       client_data,
-                       XEvent          *event );
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtHelpCallbacksI_h */
diff --git a/cde/lib/DtHelp/CanvasI.h b/cde/lib/DtHelp/CanvasI.h
deleted file mode 100644 (file)
index cf687c8..0000000
+++ /dev/null
@@ -1,320 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: CanvasI.h /main/18 1996/10/21 13:59:51 cde-hp $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   CanvasI.h
- **
- **  Project:
- **
- **  Description:  Public Header file for Canvas.c
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- *******************************************************************
- *************************************<+>*************************************/
-#ifndef _DtCanvasI_h
-#define _DtCanvasI_h
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdlib.h>
-
-/********    Internal Defines Declarations    ********/
-#define        _DtCvLINE_HORZ  0
-#define        _DtCvLINE_VERT  1
-
-/********    Internal Enum Declarations    ********/
-enum   _dtCvTraversalType
-  {
-       _DtCvTraversalNone,
-       _DtCvTraversalLink,
-       _DtCvTraversalMark
-  };
-
-/********    Internal Typedef Declarations    ********/
-
-#if !defined(_DtCvLinkMgrP_h) && !defined(_DtCvLinkMgrI_h)
-typedef        struct  _dtCvLinkDb*    _DtCvLinkDb;
-#endif
-
-typedef        enum    _dtCvTraversalType      _DtCvTraversalType;
-
-/* adding this typedef so that debugging can access the structure */
-typedef        struct  _dtCvSegment            _DtCvSegmentI;
-typedef struct  _dtCvSegPts            _DtCvSegPtsI;
-
-/********    Internal Structures Declarations    ********/
-
-typedef        struct _dtCvDspLine {
-       _DtCvValue       processed;
-       _DtCvUnit        text_x;
-       _DtCvUnit        max_x;
-       _DtCvUnit        baseline;
-       _DtCvUnit        descent;
-       _DtCvUnit        ascent;
-       int              byte_index;
-       int              length;
-       _DtCvSegmentI   *seg_ptr;
-} _DtCvDspLine;
-
-typedef        struct  _dtCvLineSeg {
-       _DtCvValue       processed;
-       short           dir;
-       _DtCvUnit       pos_x;
-       _DtCvUnit       max_x;
-       _DtCvUnit       pos_y;
-       _DtCvUnit       max_y;
-       _DtCvUnit       width;
-       _DtCvPointer    data;
-} _DtCvLineSeg;
-
-typedef        struct _dtCvPointData {
-       _DtCvUnit       x;
-       _DtCvUnit       y;              /* baseline of the line */
-       int             line_idx;
-       int             char_idx;
-} _DtCvPointData;
-
-typedef        struct  _dtCvMarkData {
-       _DtCvValue      on;
-       _DtCvPointer    client_data;
-       _DtCvPointData  beg;
-       _DtCvPointData  end;
-} _DtCvMarkData;
-
-typedef        struct  _dtCvTraversalInfo {
-       _DtCvValue               active;
-       _DtCvTraversalType       type;  /* the type of the traversal */
-       int                      idx;   /* the index into the approp. struct */
-                                       /* either the txt_lst or marks  */
-       _DtCvUnit                x_pos; /* x pos on the line.              */
-       _DtCvUnit                y_pos; /* top y pos of bounding box       */
-       _DtCvUnit                width; /* width of link on 1st line only  */
-       _DtCvUnit                height; /* height of 1st line bounding box */
-       _DtCvSegmentI           *seg_ptr; /* ptr to first seg of link        */
-} _DtCvTraversalInfo;
-
-typedef        struct  _dtCvSearchData {
-       int             idx;    /* the line index of the search hit */
-       _DtCvDspLine    *lst;   /* pointer to the text line list    */
-} _DtCvSearchData;
-
-typedef        struct _dtCanvasStruct {
-       int             error;
-       long            txt_cnt;        /* maximum used in txt_list     */
-       int             txt_max;        /* maximum in txt_list          */
-
-       int             line_cnt;       /* maximum used in line_lst     */
-       int             line_max;       /* maximum in line_lst          */
-       int             mark_cnt;       /* mark counter                 */
-       int             mark_max;       /* maximum in mark_lst          */
-
-       int             trav_cnt;       /* maximum used in trav_lst     */
-       int             trav_max;       /* maximum in trav_lst          */
-       int             cur_trav;       /* traversal indicator          */
-
-       int             search_cnt;
-       int             search_max;
-
-       int             brk_cnt;        /* the number of page breaks    */
-       int             brk_max;        /* the maxium entries           */
-
-       short           mb_length;      /* The maximum length of a char */
-
-       _DtCvUnit               max_x;          /* The maximum x position */
-       _DtCvUnit               max_y;          /* The maximum y position */
-       _DtCvValue              constraint;     /* Indicates if the right
-                                                  boundary can be breached */
-       _DtCvValue              trav_on;        /* Indicates if the traversal
-                                                  is on or off.            */
-       _DtCvPointer            client_data;
-       _DtCvMetrics            metrics;
-       _DtCvSpaceMetrics       link_info;
-       _DtCvSpaceMetrics       traversal_info;
-       _DtCvLocale             locale;
-
-       _DtCvSegmentI           *element_lst;
-       _DtCvDspLine            *txt_lst;
-       _DtCvLineSeg            *line_lst;
-       _DtCvTraversalInfo      *trav_lst;
-       _DtCvLinkDb              link_data;
-       _DtCvPointData           select_start;
-       _DtCvPointData           select_end;
-       _DtCvMarkData           *marks;
-       _DtCvSearchData         *searchs;
-       _DtCvUnit               *pg_breaks;
-       _DtCvVirtualInfo         virt_functions;
-
-} _DtCanvasStruct;
-
-/********    Internal Structure Typedef Declarations    ********/
-typedef        struct _dtCvPointData   _DtCvSelectData;
-
-/********    Internal Macros Declarations    ********/
-
-#define        _DtCvHasTraversal(x)    ((x) & _DtCvTRAVERSAL_FLAG)
-
-/*
- * segment type access
- */
-#define        _DtCvIsTypeNoop(x) \
-               ((((x) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
-
-/*
- * Is a flag set
- */
-#define        _DtCvIsSegVisibleLink(x)        _DtCvIsSegHyperText(x)
-#define        _DtCvIsSegALink(x) \
-                       (_DtCvIsSegHyperText(x) || _DtCvIsSegGhostLink(x))
-
-#define        _DtCvIsMarkMaskOn(x) \
-                       (((x) & _DtCvACTIVATE_MARK_ON) ? _DtCvTRUE : _DtCvFALSE)
-
-/*
- * remove masks
- */
-#define _DtCvRemoveBeginFlags(x)       x &= ~(_DtCvTRAVERSAL_BEGIN | \
-                                              _DtCvLINK_BEGIN      | \
-                                              _DtCvMARK_BEGIN      | \
-                                              _DtCvSEARCH_BEGIN)
-#define _DtCvSetSearchEnd(x,seg)       x |= ((seg)->type & _DtCvSEARCH_END)
-#define _DtCvSetSearchBegin(x,seg)     x |= ((seg)->type & _DtCvSEARCH_BEGIN)
-#define _DtCvClearSearchFlags(x)       x &= ~(_DtCvSEARCH_FLAG  | \
-                                              _DtCvSEARCH_BEGIN | \
-                                              _DtCvSEARCH_END)
-
-#define _DtCvClearLinkFlags(x)         x &= ~(_DtCvLINK_FLAG   | \
-                                              _DtCvLINK_BEGIN  | \
-                                              _DtCvLINK_END    | \
-                                              _DtCvLINK_POP_UP | \
-                                              _DtCvLINK_NEW_WINDOW)
-
-#define        _DtCvClearProcessed(x)  (x).processed = False
-#define        _DtCvSetProcessed(x)    (x).processed = True
-#define        _DtCvIsProcessed(x)     (x).processed
-#define        _DtCvIsNotProcessed(x)  ((False == (x).processed) ? True : False)
-#define _DtCvStraddlesPt(pt,min,max)   ((min) <= (pt)  && (pt)  <= (max))
-
-/********    Internal Function Declarations    ********/
-extern _DtCvUnit       _DtCvAdjustForSuperSub(
-                               _DtCanvasStruct   *canvas,
-                               _DtCvSegmentI     *p_seg,
-                               _DtCvUnit         start_x,
-                               _DtCvUnit        *script_x,
-                               _DtCvUnit        *super_width,
-                               _DtCvUnit        *super_y,
-                               _DtCvUnit        *sub_width,
-                               _DtCvUnit        *sub_y,
-                               _DtCvValue       *super_flag,
-                               _DtCvValue       *sub_flag);
-extern _DtCvUnit       _DtCvAdvanceXOfLine (
-                               _DtCanvasStruct   *canvas,
-                               _DtCvSegmentI     *p_seg,
-                               _DtCvUnit         x_pos,
-                               int              *link_idx,
-                               _DtCvValue       *link_flag);
-extern _DtCvStatus     _DtCvCheckInfringement (
-                               _DtCvUnit          tst_top,
-                               _DtCvUnit          tst_bot,
-                               _DtCvUnit          obj_top,
-                               _DtCvUnit          obj_bot);
-extern void            _DtCvCheckLineMarks (
-                               _DtCanvasStruct   *canvas,
-                               int                line_idx,
-                               int                char_idx,
-                               int                length,
-                               _DtCvUnit          dst_x,
-                               _DtCvFlags         check_flags,
-                               int               *ret_len,
-                               _DtCvFlags        *ret_old,
-                               _DtCvFlags        *ret_new);
-extern void            _DtCvClearInternalUse (
-                               _DtCvSegmentI    *list,
-                               _DtCvStatus       flag);
-extern _DtCvUnit       _DtCvDrawSegments(
-                               _DtCanvasStruct  *canvas,
-                               _DtCvDspLine      line,
-                               _DtCvSegmentI    *p_seg,
-                               int               start_char,
-                               int               count,
-                               int              *prev_lnk,
-                               _DtCvUnit         txt_x,
-                               _DtCvUnit         sel_x,
-                               _DtCvUnit        *scriptX,
-                               _DtCvUnit        *super_width,
-                               _DtCvUnit        *super_y,
-                               _DtCvUnit        *sub_width,
-                               _DtCvUnit        *sub_y,
-                               _DtCvValue       *last_was_sub,
-                               _DtCvValue       *last_was_super,
-                               _DtCvValue       *last_link_vis,
-                               _DtCvFlags        old_flag,
-                               _DtCvFlags        new_flag,
-                               _DtCvElemType     trav_flag,
-                               _DtCvPointer      trav_data);
-extern int             _DtCvGetCharIdx(
-                               _DtCanvasStruct  *canvas,
-                               _DtCvDspLine      line,
-                               _DtCvUnit         find_x);
-extern _DtCvUnit       _DtCvGetStartXOfLine(
-                               _DtCvDspLine     *line,
-                               _DtCvSegmentI   **pSeg);
-extern void            _DtCvGetWidthOfSegment(
-                               _DtCanvasStruct  *canvas,
-                               _DtCvSegmentI    *p_seg,
-                               int               start,
-                               int               max_cnt,
-                               int              *ret_cnt,
-                               _DtCvUnit        *ret_w,
-                               _DtCvValue       *ret_trimmed);
-extern _DtCvValue      _DtCvModifyXpos(
-                               _DtCvSpaceMetrics info,
-                               _DtCvSegmentI   *seg,
-                               _DtCvValue       tst_result,
-                               _DtCvValue       old_result,
-                               int              idx,
-                               _DtCvUnit       *x_pos);
-extern void            _DtCvSkipLineChars(
-                               _DtCanvasStruct  *canvas,
-                               _DtCvSegmentI    *p_seg,
-                               int               start,
-                               int               max_cnt,
-                               int               use_len,
-                               int              *ret_start,
-                               _DtCvSegmentI    **ret_seg);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtCanvasI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/CanvasP.h b/cde/lib/DtHelp/CanvasP.h
deleted file mode 100644 (file)
index ed20c24..0000000
+++ /dev/null
@@ -1,514 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: CanvasP.h /main/17 1999/10/14 13:19:41 mgreess $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:         CanvasP.h
- **
- **  Project:      Cde Help System
- **
- **  Description:  Private Header file for the UI independent core engine
- **                of the help system. It contains function prototypes,
- **                structure definitions, typedefs, etc.
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- *****************************************************************************
- *************************************<+>*************************************/
-#ifndef _DtCanvasP_h
-#define _DtCanvasP_h
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Public Re-defines   ********/
-#if !defined(_AIX)
-#define _DtCvStrCaseCmp(s1,s2)         strcasecmp(s1,s2)
-#define _DtCvStrNCaseCmp(s1,s2, n)     strncasecmp(s1,s2,n)
-#else
-#define _DtCvStrCaseCmp(s1,s2)         _DtHelpCeStrCaseCmp(s1,s2)
-#define _DtCvStrNCaseCmp(s1,s2,n)      _DtHelpCeStrNCaseCmp(s1,s2, n)
-#endif /* _AIX */
-
-/********    Public Defines Declarations    ********/
-/*
- * true, false and null
- */
-#ifndef Null
-#define Null    0
-#endif
-#ifndef NULL
-#define NULL    0
-#endif
-#ifndef False
-#define False   0
-#endif
-#ifndef True
-#define True    1
-#endif
-#ifndef FALSE
-#define FALSE   0
-#endif
-#ifndef TRUE
-#define TRUE    1
-#endif
-
-/*
- * Get Selection Type Declarations
- */
-#define _DtCvSELECTED_TEXT     (1 << 0)
-#define _DtCvSELECTED_REGION   (1 << 1)
-#define _DtCvSELECTED_ALL      (~((unsigned int) 0))
-
-/*
- * hypertext link types
- */
-#define _DtCvLinkType_Execute      3
-#define _DtCvLinkType_ManPage      4
-#define _DtCvLinkType_AppDefine    5
-#define _DtCvLinkType_SameVolume   6
-#define _DtCvLinkType_CrossLink    7
-#define _DtCvLinkType_TextFile     8
-
-/*
- * hypertext window hints
- */
-#define _DtCvWindowHint_PopupWindow        1
-#define _DtCvWindowHint_CurrentWindow      2
-#define _DtCvWindowHint_NewWindow          3
-#define _DtCvWindowHint_Original           4
-
-/*********************
- * Rendering flags
- *********************/
-
-/*
- * Rendering flags - Link
- */
-#define _DtCvLINK_FLAG         (0x01 <<  0)
-#define _DtCvLINK_BEGIN                (0x01 <<  1)
-#define _DtCvLINK_END          (0x01 <<  2)
-
-#define _DtCvLINK_POP_UP       (0x01 <<  3)
-#define _DtCvLINK_NEW_WINDOW   (0x01 <<  4)
-
-/*
- * Rendering flags - Search
- *
- * a gap is left for the search flags on a segment in CanvasSegP.h.  If these
- * change value, the other values must move to accommodate it.  */
-#define _DtCvSEARCH_FLAG       (0x01 <<  5)
-#define _DtCvSEARCH_BEGIN      (0x01 <<  6)
-#define _DtCvSEARCH_END                (0x01 <<  7)
-#define _DtCvSEARCH_CURR       (0x01 <<  8)
-
-/*
- * Rendering flags - Mark
- */
-#define _DtCvMARK_FLAG         (0x01 <<  9)
-#define _DtCvMARK_BEGIN                (0x01 << 10)
-#define _DtCvMARK_END          (0x01 << 11)
-#define _DtCvMARK_ON           (0x01 << 12)
-
-/*
- * Rendering flags - Traversal
- */
-#define _DtCvTRAVERSAL_FLAG    (0x01 << 13)
-#define _DtCvTRAVERSAL_BEGIN   (0x01 << 14)
-#define _DtCvTRAVERSAL_END     (0x01 << 15)
-
-/*
- * Rendering flags - Application defined flags.
- */
-#define _DtCvAPP_FIELD_OFFSET   (16)
-#define _DtCvAPP_FIELD_MASK     (0x0f << _DtCvAPP_FIELD_OFFSET)
-#define _DtCvAPP_FIELD_S_MASK   (0x03 << _DtCvAPP_FIELD_OFFSET)
-#define _DtCvAPP_FLAG1          (0x01 << (_DtCvAPP_FIELD_OFFSET + 0))
-#define _DtCvAPP_FLAG2          (0x01 << (_DtCvAPP_FIELD_OFFSET + 1))
-#define _DtCvAPP_FLAG3          (0x01 << (_DtCvAPP_FIELD_OFFSET + 2))
-#define _DtCvAPP_FLAG4          (0x01 << (_DtCvAPP_FIELD_OFFSET + 3))
-
-/*
- * Rendering flags - Selection
- */
-#define _DtCvSELECTED_FLAG     (0x01 << 20)
-#define _DtCvEND_OF_LINE       (0x01 << 21)
-
-/*
- * Activation masks
- */
-#define _DtCvACTIVATE_SELECTION        (0x01 << 0)
-#define _DtCvACTIVATE_MARK     (0x01 << 1)
-#define _DtCvDEACTIVATE                (0x01 << 2)
-#define _DtCvACTIVATE_MARK_ON  (0x01 << 3)
-#define _DtCvACTIVATE_MARK_OFF (0x01 << 4)
-
-/********    Public Enum Declarations    ********/
-
-/*
- * Element types
- */
-enum   _dtCvElemType
-  {
-    _DtCvBAD_TYPE,
-    _DtCvCANVAS_TYPE,
-    _DtCvLINE_TYPE,
-    _DtCvLINK_TYPE,
-    _DtCvLOCALE_TYPE,
-    _DtCvMARK_TYPE,
-    _DtCvREGION_TYPE,
-    _DtCvSTRING_TYPE,
-    _DtCvTRAVERSAL_TYPE
-  };
-
-typedef        enum _dtCvElemType      _DtCvElemType;
-
-/*
- * Canvas Engine values. Either parameters or return values.
- */
-enum   _dtCvValue
-  {
-/*
- * status types. i.e. True/False, Ok/Bad, etc.
- */
-    _DtCvFALSE      = False,
-    _DtCvSTATUS_OK  = False,
-    _DtCvTRUE       = True,
-    _DtCvSTATUS_BAD = True,
-    _DtCvSTATUS_ID_BAD,
-    _DtCvSTATUS_NONE,
-    _DtCvSTATUS_LINK,
-    _DtCvSTATUS_MARK,
-/*
- * Render types
- */
-    _DtCvRENDER_PARTIAL,
-    _DtCvRENDER_COMPLETE,
-/*
- * Traversal defines
- */
-    _DtCvTRAVERSAL_OFF,
-    _DtCvTRAVERSAL_ON,
-    _DtCvTRAVERSAL_TOP,
-    _DtCvTRAVERSAL_NEXT,
-    _DtCvTRAVERSAL_PREV,
-    _DtCvTRAVERSAL_BOTTOM,
-    _DtCvTRAVERSAL_ID,
-    _DtCvTRAVERSAL_MARK,
-/*
- * processing a selection types
- */
-    _DtCvSELECTION_CLEAR,
-    _DtCvSELECTION_START,
-    _DtCvSELECTION_UPDATE,
-    _DtCvSELECTION_END,
-/*
- * honor the right boundary when laying out information
- */
-    _DtCvUSE_BOUNDARY,
-    _DtCvUSE_BOUNDARY_MOVE,
-    _DtCvIGNORE_BOUNDARY
-  };
-
-typedef        enum _dtCvValue _DtCvValue;
-typedef        enum _dtCvValue _DtCvStatus;
-typedef        enum _dtCvValue _DtCvRenderType;
-typedef        enum _dtCvValue _DtCvTraversalCmd;
-typedef        enum _dtCvValue _DtCvSelectMode;
-
-/*
- * line wrap mode types.
- */
-enum   _dtCvModeType
-  {
-    _DtCvModeWrapNone,
-    _DtCvModeWrapDown,
-    _DtCvModeWrapUp
-  };
-
-typedef        enum _dtCvModeType      _DtCvModeType;
-
-/********    Public Typedef Declarations    ********/
-typedef        void*   _DtCvPointer;
-typedef        void*   _DtCvHandle;
-
-typedef        int     _DtCvUnit;
-
-typedef        unsigned long   _DtCvFlags;
-
-typedef        struct  _dtCvSegPts     _DtCvSegPts;
-typedef        struct  _dtCvSegment    _DtCvSegment;
-
-/********    Public Structures Declarations    ********/
-typedef        struct  _dtCvMetrics {
-       _DtCvUnit       width;          /* max width of canvas area  */
-       _DtCvUnit       height;         /* max height of canvas area */
-       _DtCvUnit       top_margin;     /* top margin to allow for   */
-       _DtCvUnit       side_margin;    /* left margin to allow for  */
-       _DtCvUnit       line_height;    /* the height of an average line of */
-                                       /* text                             */
-       _DtCvUnit       horiz_pad_hint; /* the optimul spacing to use if    */
-                                       /* lines have to be squeezed for    */
-                                       /* _DtCvUSE_BOUNDARY                */
-} _DtCvMetrics;
-
-typedef        struct  _dtCvSpaceMetrics {
-       _DtCvUnit       space_before;
-       _DtCvUnit       space_after;
-       _DtCvUnit       space_above;
-       _DtCvUnit       space_below;
-} _DtCvSpaceMetrics;
-
-typedef        struct  _dtCvLocale {
-       _DtCvModeType    line_wrap_mode;        /* specifies the wrap mode  */
-       const wchar_t   *cant_begin_chars;      /* specifies the characters */
-                                               /* that can't begin a line  */
-       const wchar_t   *cant_end_chars;        /* specifies the characters */
-                                               /* that can't end a line    */
-} _DtCvLocale;
-
-typedef        struct  _dtCvStringInfo {
-       const void      *string;
-       int              byte_len;
-       int              wc;
-       _DtCvPointer     font_ptr;
-       _DtCvPointer     csd;
-} _DtCvStringInfo;
-
-typedef        struct  _dtCvLineInfo {
-       _DtCvUnit       x2;
-       _DtCvUnit       y2;
-       _DtCvUnit       width;
-       _DtCvPointer    data;
-} _DtCvLineInfo;
-
-typedef        struct  _dtCvRenderInfo {
-       _DtCvPointer    info;
-       _DtCvUnit       box_x;
-       _DtCvUnit       box_y;
-       _DtCvUnit       box_height;
-       _DtCvUnit       box_width;
-} _DtCvRenderInfo;
-
-typedef        struct  _dtCvLinkInfo {
-       char            *specification;
-       char            *description;
-       int              hyper_type;
-       int              win_hint;
-       _DtCvUnit        offset_x;
-       _DtCvUnit        offset_y;
-} _DtCvLinkInfo;
-
-typedef        struct  _dtCvPointInfo {
-       _DtCvPointer      client_data;
-       _DtCvSegPts     **segs;
-} _DtCvPointInfo;
-
-/********    Public Structure Typedef Declarations    ********/
-typedef        struct _dtCvTopicInfo*  _DtCvTopicPtr;
-
-/********    Public Prototyped Procedures    ********/
-typedef        void (*_DtCvGetMetrics)(
-    _DtCvPointer               /* client_data   */,
-    _DtCvElemType              /* elem_type     */,
-    _DtCvPointer               /* ret_metrics   */
-);
-
-typedef        void (*_DtCvRenderElem)(
-    _DtCvPointer       /* client_data */,
-    _DtCvElemType      /* elem_type   */,
-    _DtCvUnit          /* x           */,
-    _DtCvUnit          /* y           */,
-    int                        /* link_type   */, 
-    _DtCvFlags         /* old_flags   */,
-    _DtCvFlags         /* new_flags   */,
-    _DtCvElemType      /* trav_type   */,
-    _DtCvPointer       /* trav_data   */,
-    _DtCvPointer       /* data        */
-);
-
-typedef        _DtCvUnit (*_DtCvGetElemWidth)(
-    _DtCvPointer       /* client_data   */,
-    _DtCvElemType      /* elem_type   */,
-    _DtCvPointer       /* data        */
-);
-
-typedef        void (*_DtCvGetFontMetrics)(
-    _DtCvPointer       /* client_data   */,
-    _DtCvPointer       /* font_ptr      */,
-    _DtCvUnit*         /* *ret_ascent   */,
-    _DtCvUnit*         /* *ret_descent  */,
-    _DtCvUnit*         /* *ret_width    */,
-    _DtCvUnit*         /* *ret_super    */,
-    _DtCvUnit*         /* *ret_sub      */
-);
-
-typedef        _DtCvStatus (*_DtCvBuildSelection)(
-    _DtCvPointer       /* client_data   */,
-    _DtCvElemType      /* elem_type     */,
-    unsigned int       /* mask          */,
-    _DtCvPointer*      /* prev_info     */,
-    _DtCvUnit          /* space         */,
-    _DtCvUnit          /* width         */,
-    _DtCvFlags         /* flags         */,
-    _DtCvPointer       /* data          */
-);
-
-typedef        int (*_DtCvFilterExecCmd)(
-    _DtCvPointer       /* client_data   */,
-    const char*                /* cmd           */,
-    char**             /* ret_cmd       */
-);
-
-/********    Public Structures Declarations    ********/
-typedef        struct _dtCvVirtualInfo {
-       _DtCvGetMetrics         get_metrics;
-       _DtCvRenderElem         render_elem;
-       _DtCvGetElemWidth       get_width;
-       _DtCvGetFontMetrics     get_font_metrics;
-       _DtCvBuildSelection     build_selection;
-       _DtCvFilterExecCmd      exec_cmd_filter;
-} _DtCvVirtualInfo;
-
-typedef        struct  _dtCvMarkPos {
-       _DtCvPointer    client_data;
-       _DtCvUnit       x1;
-       _DtCvUnit       y1;
-       _DtCvUnit       baseline1;
-       _DtCvUnit       x2;
-       _DtCvUnit       y2;
-       _DtCvUnit       baseline2;
-} _DtCvMarkPos;
-
-/********    Public Macro Declarations    ********/
-
-/********    Semi-Public Function Declarations    ********/
-extern int             _DtCvGetSearchLineMetrics(
-                               _DtCvHandle     canvas_handle,
-                               int             search_hit_index,
-                               _DtCvUnit*      baseline,
-                               _DtCvUnit*      descent,
-                               _DtCvUnit*      ascent);
-
-/********    Public Function Declarations    ********/
-extern _DtCvStatus     _DtCanvasActivatePts(
-                               _DtCvHandle      canvas_handle,
-                               unsigned int      mask,
-                               _DtCvPointInfo  *info,
-                               _DtCvUnit        *ret_y1,
-                               _DtCvUnit        *ret_y2);
-extern void            _DtCanvasClean(
-                               _DtCvHandle      canvas_handle);
-extern _DtCvHandle     _DtCanvasCreate(
-                               _DtCvVirtualInfo virt_info,
-                               _DtCvPointer     client_data);
-extern void            _DtCanvasDestroy(
-                               _DtCvHandle      canvas_handle);
-extern _DtCvStatus     _DtCanvasGetCurLink(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvLinkInfo   *ret_info);
-extern _DtCvStatus     _DtCanvasGetCurTraversal(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvLinkInfo   *ret_info,
-                               _DtCvPointer    *ret_data);
-extern _DtCvStatus     _DtCanvasGetMarkPositions(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvMarkPos    ***ret_pos);
-extern _DtCvStatus     _DtCanvasGetPosLink(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvUnit        x1,
-                               _DtCvUnit        y1,
-                               _DtCvUnit        x2,
-                               _DtCvUnit        y2,
-                               _DtCvLinkInfo   *ret_info);
-extern _DtCvStatus     _DtCanvasGetSelection(
-                               _DtCvHandle      canvas_handle,
-                               unsigned int     mask,
-                               _DtCvPointer    *ret_select);
-extern _DtCvStatus     _DtCanvasGetSelectionPoints(
-                               _DtCvHandle        canvas_handle,
-                               _DtCvSegPts     ***ret_segs,
-                               _DtCvUnit         *ret_y1,
-                               _DtCvUnit         *ret_y2);
-extern _DtCvStatus     _DtCanvasGetSpotInfo(
-                               _DtCvHandle        canvas_handle,
-                               _DtCvUnit          x,
-                               _DtCvUnit          y,
-                               _DtCvSegment     **ret_seg,
-                               _DtCvUnit         *ret_offx,
-                               _DtCvUnit         *ret_offy,
-                               _DtCvElemType     *ret_element);
-extern _DtCvStatus     _DtCanvasMoveTraversal(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvTraversalCmd cmd,
-                               _DtCvValue       wrap,
-                               _DtCvValue       render,
-                               _DtCvPointer     rid,
-                               _DtCvUnit       *ret_x,
-                               _DtCvUnit       *ret_y,
-                               _DtCvUnit       *ret_baseline,
-                               _DtCvUnit       *ret_height);
-extern  void            _DtCanvasProcessSelection (
-                               _DtCvHandle     canvas_handle,
-                               _DtCvUnit        x,
-                               _DtCvUnit        y,
-                               _DtCvSelectMode  mode);
-extern void            _DtCanvasRender(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvUnit        x1,
-                               _DtCvUnit        y1,
-                               _DtCvUnit        x2,
-                               _DtCvUnit        y2,
-                               _DtCvRenderType  flag,
-                               _DtCvValue       pg_break,
-                               _DtCvUnit       *max_y,
-                               _DtCvUnit       *next_y);
-extern _DtCvStatus     _DtCanvasResize(
-                               _DtCvHandle      canvas_handle,
-                               _DtCvValue       force,
-                               _DtCvUnit       *ret_width,
-                               _DtCvUnit       *ret_height);
-extern  _DtCvStatus     _DtCanvasSetTopic(
-                               _DtCvHandle     canvas_handle,
-                               _DtCvTopicPtr    topic_handle,
-                               _DtCvValue       honor_size,
-                               _DtCvUnit       *ret_width,
-                               _DtCvUnit       *ret_height,
-                               _DtCvUnit       *ret_y);
-extern void            _DtCanvasLoadMetrics(
-                               _DtCvHandle     canvas_handle);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-
-#endif /* _DtCanvasP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/CanvasSegP.h b/cde/lib/DtHelp/CanvasSegP.h
deleted file mode 100644 (file)
index 43cd052..0000000
+++ /dev/null
@@ -1,538 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: CanvasSegP.h /main/19 1996/10/04 18:30:19 rswiston $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   CanvasSegP.h
- **
- **  Project:
- **
- **  Description:  Public Header file for Canvas Engine
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- *******************************************************************
- *************************************<+>*************************************/
-#ifndef _DtCanvasSegP_h
-#define _DtCanvasSegP_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Public Defines Declarations    ********/
-/*****************************************************************************
- *  Some bits in passed in as a _DtCvFlags and the 'type' in _DtCvSegment
- *  must match because they are passed straight thought from the segment
- *  to the application. The following map is to help prevent colisions.
- *
- *   (-------------------------> _DtCvEND_OF_LINE
- *   | (-----------------------> _DtCvSELECTED_FLAG
- *   | |
- *   | | (-------------------------> _DtCvAPP_FLAG4 \
- *   | | | (-----------------------> _DtCvAPP_FLAG3  \
- *   | | | | (---------------------> _DtCvAPP_FLAG2  / _DtCvAPP_FIELD
- *   | | | | | (-------------------> _DtCvAPP_FLAG1 /
- *   | | | | | |  
- *   | | | | | | (---------------------> _DtCvTRAVERSAL_END
- *   | | | | | | | (-------------------> _DtCvTRAVERSAL_BEGIN
- *   | | | | | | | | (-----------------> _DtCvTRAVERSAL_FLAG
- *   | | | | | | | | |
- *   | | | | | | | | | (-------------------> _DtCvMARK_ON
- *   | | | | | | | | | | (-----------------> _DtCvMARK_END
- *   | | | | | | | | | | | (---------------> _DtCvMARK_BEGIN
- *   | | | | | | | | | | | | (-------------> _DtCvMARK_FLAG
- *   | | | | | | | | | | | | |
- *   | | | | | | | | | | | | | (-------------> _DtCvSEARCH_CURR
- *   | | | | | | | | | | | | | | (-----------> _DtCvSEARCH_END
- *   | | | | | | | | | | | | | | | (---------> _DtCvSEARCH_BEGIN
- *   | | | | | | | | | | | | | | | | (-------> _DtCvSEARCH_FLAG
- *   | | | | | | | | | | | | | | | | |
- *   | | | | | | | | | | | | | | | | | (---------> _DtCvLINK_NEW_WINDOW
- *   | | | | | | | | | | | | | | | | | | (-------> _DtCvLINK_POP_UP
- *   | | | | | | | | | | | | | | | | | | | (-----> _DtCvLINK_END
- *   | | | | | | | | | | | | | | | | | | | | (---> _DtCvLINK_BEGIN
- *   | | | | | | | | | | | | | | | | | | | | | (-> _DtCvLINK_FLAG
- *   | | | | | | | | | | | | | | | | | | | | | |
- *   v v v v v v#v v v v v v v v#v v v v v v v v 
- *   1 0 9 8 7 6#5 4 3 2 1 0 9 8#7 6 5 4 3 2 1 0
- *  ------------#---------------#----------------
- *  |.|.|.|.|.|.#.|.|.|.|.|.|.|.#.|.|.|.|.|.|.|.|
- *  ------------#---------------#----------------
- *     ^ ^ ^ ^ ^#^ ^ ^ ^ ^ ^ ^ ^#^ ^ ^   ^ ^^^^^
- *     | | | | | | | | | | | | | | | |   |  \|/
- *     | | | | | | | | | | | | | | | |   |   |
- *     | | | | | | | | | | | | | | | |   |   (->  Segment type
- *     | | | | | | | | | | | | | | | |   (-----> _DtCvWIDE_CHAR
- *     | | | | | | | | | | | | | | | |
- *     | | | | | | | | | | | | | | | (-----> _DtCvSEARCH_FLAG
- *     | | | | | | | | | | | | | | (-------> _DtCvSEARCH_BEGIN
- *     | | | | | | | | | | | | | (---------> _DtCvSEARCH_END
- *     | | | | | | | | | | | | (-----------> _DtCvSEARCH_CURR
- *     | | | | | | | | | | | |
- *     | | | | | | | | | | | (---------> _DtCvCONTROLLER/_DtCvBLOCK_LINE/
- *     | | | | | | | | | | |                         _DtCvNEW_LINE
- *     | | | | | | | | | | (-----------> _DtCvSUB_SCRIPT
- *     | | | | | | | | | (-------------> _DtCvSUPER_SCRIPT
- *     | | | | | | | | (---------------> _DtCvGHOST_LINK
- *     | | | | | | | (-----------------> _DtCvHYPER_TEXT
- *     | | | | | | (-------------------> _DtCvNON_BREAK
- *     | | | | | (---------------------> _DtCvIN_LINE
- *     | | | | |
- *     | | | | (---------------> _DtCvAPP_FLAG1  \
- *     | | | (-----------------> _DtCvAPP_FLAG2   \ _DtCvAPP_FIELD
- *     | | (-------------------> _DtCvAPP_FLAG3   /
- *     | (---------------------> _DtCvAPP_FLAG4  /
- *     |
- *     (------------------> _DtCvPAGE_BREAK
- *
- *****************************************************************************/
-/*
- * segment types
- */
-#define        _DtCvNOOP       (0x00)
-#define        _DtCvCONTAINER  (0x01)
-#define        _DtCvLINE       (0x02)
-#define        _DtCvMARKER     (0x03)
-#define        _DtCvREGION     (0x04)
-#define        _DtCvSTRING     (0x05)
-#define        _DtCvTABLE      (0x06)
-
-#define        _DtCvPRIMARY_MASK       (0x07)
-#define        _DtCvSHIFT_PAST_PRIMARY 3
-
-/*
- * character size manipulation
- */
-#define        _DtCvWIDE_CHAR          (0x01 << _DtCvSHIFT_PAST_PRIMARY)
-
-/*
- * segment flags
- */
-/* leave a gap for the search flags defined in CanvasP.h */
-#define        _DtCvSHIFT_TO_FLAGS     9
-
-/* container only */
-#define        _DtCvCONTROLLER         (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
-
-/* line type */
-#define        _DtCvBLOCK_LINE         (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
-
-/* string & region (_DtCvNEW_LINE works on _DtCvNOOP too) */
-#define        _DtCvNEW_LINE           (0x01 << (_DtCvSHIFT_TO_FLAGS +  0))
-#define        _DtCvSUB_SCRIPT         (0x01 << (_DtCvSHIFT_TO_FLAGS +  1))
-#define        _DtCvSUPER_SCRIPT       (0x01 << (_DtCvSHIFT_TO_FLAGS +  2))
-#define        _DtCvGHOST_LINK         (0x01 << (_DtCvSHIFT_TO_FLAGS +  3))
-#define        _DtCvHYPER_TEXT         (0x01 << (_DtCvSHIFT_TO_FLAGS +  4))
-#define        _DtCvNON_BREAK          (0x01 << (_DtCvSHIFT_TO_FLAGS +  5))
-
-/* region only */
-#define        _DtCvIN_LINE            (0x01 << (_DtCvSHIFT_TO_FLAGS +  6))
-
-/* application flags - defined in CanvasP.h (starting at 16th bit for 4 bits) */
-
-/* valid on any segment */
-#define        _DtCvPAGE_BREAK         (0x01 << (_DtCvSHIFT_TO_FLAGS + 11))
-
-/* highlight macros */
-#define HILITE_OVERLINE                        0
-#define HILITE_STRIKETHROUGH           1
-#define HILITE_UNDERLINE               2
-
-/********    Public Enum Declarations    ********/
-enum   _dtCvFrmtOption
-  {
-    _DtCvOPTION_BAD,
-/*
- * string breaking types
- */
-    _DtCvLITERAL,
-    _DtCvDYNAMIC,
-/*
- * table border types
- */
-    _DtCvBORDER_NONE,
-    _DtCvBORDER_FULL,
-    _DtCvBORDER_HORZ,
-    _DtCvBORDER_VERT,
-    _DtCvBORDER_TOP,
-    _DtCvBORDER_BOTTOM,
-    _DtCvBORDER_LEFT,
-    _DtCvBORDER_RIGHT,
-    _DtCvBORDER_TOP_LEFT,
-    _DtCvBORDER_TOP_RIGHT,
-    _DtCvBORDER_BOTTOM_LEFT,
-    _DtCvBORDER_BOTTOM_RIGHT,
-/*
- * controller horizontal orientation
- */
-    _DtCvJUSTIFY_LEFT_CORNER,
-    _DtCvJUSTIFY_LEFT,         /* also container horizontal text placement */
-    _DtCvJUSTIFY_LEFT_MARGIN,
-    _DtCvJUSTIFY_CENTER,       /* also container horiz/vert text placement */
-    _DtCvJUSTIFY_RIGHT_MARGIN,
-    _DtCvJUSTIFY_RIGHT,                /* also container horizontal text placement */
-    _DtCvJUSTIFY_RIGHT_CORNER,
-/*
- * extra container horizontal text placement
- */
-    _DtCvJUSTIFY_NUM,
-    _DtCvJUSTIFY_CHAR,
-/*
- * inherit the parent's horizontal text placement
- */
-    _DtCvINHERIT,
-/*
- * controller vertical orientation, includes _DtCvJUSTIFY_CENTER
- */
-    _DtCvJUSTIFY_TOP,          /* also container vertical text placement */
-    _DtCvJUSTIFY_BOTTOM,       /* also container vertical text placement */
-/*
- * controller flow types
- */
-    _DtCvWRAP,
-    _DtCvWRAP_NONE,
-    _DtCvWRAP_JOIN
-  };
-
-typedef enum {
-    hilite_overline      = 0x01 << HILITE_OVERLINE,
-    hilite_strikethrough = 0x01 << HILITE_STRIKETHROUGH,
-    hilite_underline     = 0x01 << HILITE_UNDERLINE
-} text_hilite_t;
-
-/********    Public Enum Typedef Declarations    ********/
-typedef        enum   _dtCvFrmtOption  _DtCvFrmtOption;
-
-/********    Public Structures Declarations    ********/
-typedef        struct  _dtCvLine {
-       _DtCvUnit       width;
-       _DtCvPointer    data;
-} _DtCvLine;
-
-typedef struct  _dtCvContainer {
-       char            *id;
-       char            *justify_char;
-       _DtCvFrmtOption  type;
-       _DtCvFrmtOption  border;
-       _DtCvFrmtOption  justify;
-       _DtCvFrmtOption  vjustify;
-       _DtCvFrmtOption  orient;
-       _DtCvFrmtOption  vorient;
-       _DtCvFrmtOption  flow;
-       int              percent;
-       _DtCvUnit        leading;
-       _DtCvUnit        fmargin;
-       _DtCvUnit        lmargin;
-       _DtCvUnit        rmargin;
-       _DtCvUnit        tmargin;
-       _DtCvUnit        bmargin;
-       _DtCvLine        bdr_info;
-        struct _dtCvSegment    *seg_list;
-} _DtCvContainer;
-
-typedef struct  _DtCvString {
-       void            *string;
-       _DtCvPointer     font;
-} _DtCvString;
-
-typedef struct  _dtCvRegion {
-       _DtCvPointer    info;
-       _DtCvUnit       width;
-       _DtCvUnit       height;
-       _DtCvUnit       ascent;
-} _DtCvRegion;
-
-typedef struct  _dtCvTable {
-       int                       num_cols;
-       char                    **col_w;
-       _DtCvFrmtOption          *col_justify;
-       char                     *justify_chars;
-       char                    **cell_ids;
-       struct _dtCvSegment     **cells;
-} _DtCvTable;
-
-typedef union   _dtCvSegHandles {
-       _DtCvContainer   container;
-       _DtCvString      string;
-       _DtCvRegion      region;
-       _DtCvTable       table;
-       _DtCvLine        rule;
-       char            *marker;
-} _DtCvSegHandles;
-
-struct _dtCvSegment {
-       unsigned long            type;
-       int                      link_idx;
-       _DtCvSegHandles          handle;
-       struct _dtCvSegment     *next_seg;
-       struct _dtCvSegment     *next_disp;
-       _DtCvPointer             client_use;
-       _DtCvPointer             internal_use;
-};
-
-struct _dtCvSegPts {
-       struct _dtCvSegment     *segment;
-       int                      offset;
-       int                      len;
-};
-
-typedef struct _dtCvTopicInfo {
-       char                     *id_str;
-       struct _dtCvSegment      *seg_list;
-       _DtCvPointInfo          **mark_list;
-        struct _dtCvLinkDb       *link_data;
-} _DtCvTopicInfo;
-
-typedef struct _dtCvStringClientData {
-       unsigned int vcc;
-       unsigned int vclen;
-
-       unsigned int hilite_type;
-
-       char* bg_color;
-       char* fg_color;
-       unsigned long bg_pixel;
-       unsigned long fg_pixel;
-} _DtCvStringClientData;
-
-typedef struct _dtCvRegionClientData {
-       _DtCvPointer GraphicHandle;
-} _DtCvRegionClientData;
-
-typedef union _dtCvClientData {
-       _DtCvRegionClientData region;
-       _DtCvStringClientData string;
-} _DtCvClientData;
-
-/********    Public Structure Typedef Declarations    ********/
-
-/********    Public Prototyped Procedures    ********/
-
-/********    Public Macro Declarations    ********/
-/*
- * set segment type
- */
-#define        _DtCvSetTypeToContainer(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvCONTAINER)
-#define        _DtCvSetTypeToLine(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvLINE)
-#define        _DtCvSetTypeToMarker(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvMARKER)
-#define        _DtCvSetTypeToNoop(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvNOOP)
-#define        _DtCvSetTypeToRegion(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvREGION)
-#define        _DtCvSetTypeToString(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvSTRING)
-#define        _DtCvSetTypeToTable(x) \
-                       (((x) & ~(_DtCvPRIMARY_MASK)) | _DtCvTABLE)
-/*
- * set segment flags
- */
-#define        _DtCvSetTypeToBlockLine(x)      ((x) | _DtCvBLOCK_LINE)
-#define        _DtCvSetTypeToController(x)     ((x) | _DtCvCONTROLLER)
-#define        _DtCvSetTypeToGhostLink(x)      ((x) | _DtCvGHOST_LINK)
-#define        _DtCvSetTypeToHyperText(x)      ((x) | _DtCvHYPER_TEXT)
-#define        _DtCvSetTypeToInLine(x)         ((x) | _DtCvIN_LINE)
-#define        _DtCvSetTypeToNewLine(x)        ((x) | _DtCvNEW_LINE)
-#define        _DtCvSetTypeToNonBreak(x)       ((x) | _DtCvNON_BREAK)
-#define        _DtCvSetTypeToSearch(x)         ((x) | _DtCvSEARCH_FLAG)
-#define        _DtCvSetTypeToSearchBegin(x)    ((x) | _DtCvSEARCH_BEGIN)
-#define        _DtCvSetTypeToSearchEnd(x)      ((x) | _DtCvSEARCH_END)
-#define        _DtCvSetTypeToSubScript(x)      ((x) | _DtCvSUB_SCRIPT)
-#define        _DtCvSetTypeToSuperScript(x)    ((x) | _DtCvSUPER_SCRIPT)
-
-/*
- * set character size
- */
-#define        _DtCvSetTypeToWideChar(x)       ((x) | _DtCvWIDE_CHAR)
-
-/*
- * set application flags and/or field
- */
-#define        _DtCvSetAppFlag1(x)             ((x) | _DtCvAPP_FLAG1)
-#define        _DtCvSetAppFlag2(x)             ((x) | _DtCvAPP_FLAG2)
-#define        _DtCvSetAppFlag3(x)             ((x) | _DtCvAPP_FLAG3)
-#define        _DtCvSetAppFlag4(x)             ((x) | _DtCvAPP_FLAG4)
-#define        _DtCvSetAppField(x,y) \
-               (((x) & ~(_DtCvAPP_FIELD_MASK)) | \
-                       ((y & _DtCvAPP_FIELD_MASK) << _DtCvAPP_FIELD_OFFSET))
-#define        _DtCvSetAppFieldSmall(x,y) \
-               (((x) & ~(_DtCvAPP_FIELD_S_MASK)) | \
-                       ((y & _DtCvAPP_FIELD_S_MASK) << _DtCvAPP_FIELD_OFFSET))
-
-/*
- * get the application field value
- */
-#define        _DtCvGetAppField(x) \
-                       (((x) & _DtCvAPP_FIELD_MASK) >> _DtCvAPP_FIELD_OFFSET)
-#define        _DtCvGetAppFieldSmall(x) \
-                       (((x) & _DtCvAPP_FIELD_S_MASK) >> _DtCvAPP_FIELD_OFFSET)
-
-/********    Semi-Public Macro Declarations    ********/
-/*
- * get segment type
- */
-#define _DtCvPrimaryTypeOfSeg(x)        ((x->type) & _DtCvPRIMARY_MASK)
-#define _DtCvIsSegContainer(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvCONTAINER) ? 1 : 0)
-#define _DtCvIsSegLine(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvLINE) ? 1 : 0)
-#define _DtCvIsSegMarker(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvMARKER) ? 1 : 0)
-#define _DtCvIsSegNoop(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvNOOP) ? 1 : 0)
-#define _DtCvIsSegRegion(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvREGION) ? 1 : 0)
-#define _DtCvIsSegString(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvSTRING) ? 1 : 0)
-#define _DtCvIsSegTable(x) \
-               (((((x)->type) & _DtCvPRIMARY_MASK) == _DtCvTABLE) ? 1 : 0)
-
-/*
- * get segment flags
- */
-#define _DtCvIsSegController(x) \
-                               ((((x)->type) & _DtCvCONTROLLER) ? 1 : 0)
-#define _DtCvIsSegBlockLine(x) \
-                               ((((x)->type) & _DtCvBLOCK_LINE) ? 1 : 0)
-#define _DtCvIsSegGhostLink(x) \
-                               ((((x)->type) & _DtCvGHOST_LINK) ? 1 : 0)
-#define _DtCvIsSegHyperText(x) \
-                               ((((x)->type) & _DtCvHYPER_TEXT) ? 1 : 0)
-#define _DtCvIsSegInLine(x) \
-                               ((((x)->type) & _DtCvIN_LINE) ? 1 : 0)
-#define _DtCvIsSegNewLine(x) \
-                               ((((x)->type) & _DtCvNEW_LINE) ? 1 : 0)
-#define _DtCvIsSegNonBreakingChar(x) \
-                               ((((x)->type) & _DtCvNON_BREAK) ? 1 : 0)
-#define _DtCvIsSegPageBreak(x) \
-                               ((((x)->type) & _DtCvPAGE_BREAK) ? 1 : 0)
-#define        _DtCvIsSegRegChar(x) \
-                               ((((x)->type) & _DtCvWIDE_CHAR) ? 0 : 1)
-#define _DtCvIsSegSubScript(x) \
-                               ((((x)->type) & _DtCvSUB_SCRIPT) ? 1 : 0)
-#define _DtCvIsSegSuperScript(x) \
-                               ((((x)->type) & _DtCvSUPER_SCRIPT) ? 1 : 0)
-#define        _DtCvIsSegWideChar(x) \
-                               ((((x)->type) & _DtCvWIDE_CHAR) ? 1 : 0)
-/*
- * segment access
- */
-#define        _DtCvNextSeg(x)         ((x)->next_seg)
-#define        _DtCvNextDisp(x)        ((x)->next_disp)
-
-/*
- * container access
- */
-#define        _DtCvContainerOfSeg(x) \
-                               ((x)->handle.container)
-#define        _DtCvContainerBMarginOfSeg(x) \
-                               ((x)->handle.container.bmargin)
-#define        _DtCvContainerBorderOfSeg(x) \
-                               ((x)->handle.container.border)
-#define        _DtCvContainerFlowOfSeg(x) \
-                               ((x)->handle.container.flow)
-#define        _DtCvContainerFMarginOfSeg(x) \
-                               ((x)->handle.container.fmargin)
-#define        _DtCvContainerIdOfSeg(x) \
-                               ((x)->handle.container.id)
-#define        _DtCvContainerJustifyCharOfSeg(x) \
-                               ((x)->handle.container.justify_char)
-#define        _DtCvContainerJustifyOfSeg(x) \
-                               ((x)->handle.container.justify)
-#define        _DtCvContainerLeadingOfSeg(x) \
-                               ((x)->handle.container.leading)
-#define        _DtCvContainerLineWidthOfSeg(x) \
-                               ((x)->handle.container.bdr_info.width)
-#define        _DtCvContainerLineDataOfSeg(x) \
-                               ((x)->handle.container.bdr_info.data)
-#define        _DtCvContainerListOfSeg(x) \
-                               ((x)->handle.container.seg_list)
-#define        _DtCvContainerLMarginOfSeg(x) \
-                               ((x)->handle.container.lmargin)
-#define        _DtCvContainerOrientOfSeg(x) \
-                               ((x)->handle.container.orient)
-#define        _DtCvContainerPercentOfSeg(x) \
-                               ((x)->handle.container.percent)
-#define        _DtCvContainerRMarginOfSeg(x) \
-                               ((x)->handle.container.rmargin)
-#define        _DtCvContainerTMarginOfSeg(x) \
-                               ((x)->handle.container.tmargin)
-#define        _DtCvContainerTypeOfSeg(x) \
-                               ((x)->handle.container.type)
-#define        _DtCvContainerVJustifyOfSeg(x) \
-                               ((x)->handle.container.vjustify)
-#define        _DtCvContainerVOrientOfSeg(x) \
-                               ((x)->handle.container.vorient)
-
-/*
- * marker access
- */
-#define        _DtCvIdOfMarkerSeg(x)           ((x)->handle.marker)
-
-/*
- * marker access
- */
-#define        _DtCvDataOfLineSeg(x)           ((x)->handle.rule.data)
-#define        _DtCvWidthOfLineSeg(x)          ((x)->handle.rule.width)
-
-/*
- * string access
- */
-#define _DtCvStringOfStringSeg(x)      ((x)->handle.string.string)
-#define _DtCvFontOfStringSeg(x)                ((x)->handle.string.font)
-
-/*
- * region access
- */
-#define _DtCvInfoOfRegionSeg(x)                ((x)->handle.region.info)
-#define _DtCvWidthOfRegionSeg(x)       ((x)->handle.region.width)
-#define _DtCvHeightOfRegionSeg(x)      ((x)->handle.region.height)
-#define _DtCvAscentOfRegionSeg(x)      ((x)->handle.region.ascent)
-
-/*
- * table access
- */
-#define        _DtCvNumColsOfTableSeg(x)       ((x)->handle.table.num_cols)
-#define        _DtCvColWOfTableSeg(x)          ((x)->handle.table.col_w)
-#define        _DtCvColJustifyOfTableSeg(x)    ((x)->handle.table.col_justify)
-#define        _DtCvJustifyCharsOfTableSeg(x)  ((x)->handle.table.justify_chars)
-#define        _DtCvCellIdsOfTableSeg(x)       ((x)->handle.table.cell_ids)
-#define        _DtCvCellsOfTableSeg(x)         ((x)->handle.table.cells)
-
-/********    Semi-Public Function Declarations    ********/
-/********    Public Function Declarations    ********/
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtCanvasSegP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/DisplayAreaI.h b/cde/lib/DtHelp/DisplayAreaI.h
deleted file mode 100644 (file)
index 2e15622..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DisplayAreaI.h /main/2 1996/05/09 03:41:47 drk $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        DisplayAreaI.h
- **
- **   Project:     Cde Help System
- **
- **   Description: Defines the Display Area structures and defines.
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef        _DtHelpDisplayAreaI_h
-#define        _DtHelpDisplayAreaI_h
-
-typedef        struct {
-       int      reason;
-       XEvent  *event;
-       Window   window;
-       char    *specification;
-       int      hyper_type;
-       int      window_hint;
-} DtHelpHyperTextStruct;
-
-#endif /* _DtHelpDisplayAreaI_h */
diff --git a/cde/lib/DtHelp/DisplayAreaP.h b/cde/lib/DtHelp/DisplayAreaP.h
deleted file mode 100644 (file)
index 83db880..0000000
+++ /dev/null
@@ -1,264 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DisplayAreaP.h /main/18 1996/08/13 11:35:51 cde-hp $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        DisplayAreaP.h
- **
- **   Project:     Cde Help System
- **
- **   Description: Defines the Display Area structures and defines.
- **
- ****************************************************************************
- ************************************<+>*************************************/
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
-                 1993, 1994, 1996 Hewlett-Packard Company.
- * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
- * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef        _DtHelpDisplayAreaP_h
-#define        _DtHelpDisplayAreaP_h
-
-#include <X11/X.h>
-#include <Xm/XmP.h>
-#include <Dt/CanvasP.h>
-#include <DtI/GraphicsP.h>
-
-/*
- * Traversal flags
- */
-#define        _DT_HELP_SHADOW_TRAVERSAL       (1 << 0)
-#define        _DT_HELP_NOT_INITIALIZED        (1 << 1)
-#define        _DT_HELP_TRAVERSAL_DRAWN        (1 << 2)
-#define        _DT_HELP_DRAW_TOC_IND           (1 << 3)
-#define        _DT_HELP_CLEAR_TOC_IND          (1 << 4)
-#define        _DT_HELP_TOC_ON                 (1 << 5)
-
-/*
- * enum states for selection
- */
-enum   _DtHelpSelectState
-    {
-       _DtHelpNothingDoing,
-       _DtHelpCopyOrLink,
-       _DtHelpSelectingText
-    };
-
-/*
- * Whether the display area has the focus or not
- */
-#define _DT_HELP_FOCUS_FLAG           0x04
-
-typedef struct {
-       int              used;
-       int              num_pixels;
-       Pixmap           pix;
-       Pixmap           mask;
-       Dimension        width;
-       Dimension        height;
-       Pixel           *pixels;
-} DtHelpGraphicStruct;
-
-typedef        struct {
-       _DtCvPointer     font_ptr;
-       int      spc_idx;
-} DtHelpSpecialChars;
-
-typedef        struct  _dtHelpDAFontMetrics {
-        _DtCvUnit  ascent;         /* Maximum ascent               */
-       _DtCvUnit  descent;        /* Maximum descent              */
-       _DtCvUnit  average_width;  /* Average width of a character */
-       _DtCvUnit  super;          /* Offset from baseline for super scripts */
-       _DtCvUnit  sub;            /* Offset from baseline for sub scripts   */
-} _DtHelpDAFontMetrics;
-
-typedef        struct {
-       short   inited;
-       _DtHelpDAFontMetrics fm;
-} DtHelpDAFSMetrics;
-
-typedef        struct  _DtHelpDAfontInfo {
-       char            **exact_fonts;  /* the list of fonts specified by the
-                                          toss element rather than hints.   */
-       XrmDatabase     def_font_db;    /* The default font resource db      */
-       XrmDatabase     font_idx_db;    /* Which font index goes with which
-                                          set of font resources             */
-       XFontStruct     **font_structs; /* The font structures opened        */
-       XFontSet        *font_sets;     /* The font sets opened              */
-       DtHelpDAFSMetrics *fs_metrics;
-
-       XrmQuark        lang_charset;   /* the char set for current lang     */
-       int             *exact_idx;     /* The indexes for the exact fonts   */
-       int             max_structs;    /* the max number of font_structs    */
-       int             max_sets;       /* The max number of font_sets       */
-       int             struct_cnt;     /* the cur number of font_structs    */
-       int             set_cnt;        /* The cur number of font_sets       */
-       long            def_idx;        /* The default index                 */
-} DtHelpDAFontInfo;
-
-/* 
- * SelectionScroll structure 
- */
-typedef struct {
-       int     horizontal_reason;
-       int     vertical_reason;
-} SelectionScrollStruct;
-
-/*
- * DisplayArea structure
- */
-typedef        struct _dtHelpDispAreaStruct {
-       Widget  dispWid;                /* The text and graphic area. */
-       Widget  vertScrollWid;          /* The vertical scroll bar    */
-       Widget  horzScrollWid;          /* The horizontal scroll bar  */
-       Boolean vertIsMapped;
-       Boolean horzIsMapped;
-       short   neededFlags;            /* _DtHelpAS_NEEDED flags        */
-       short   nl_to_space;            /* are newlines in multibyte     */
-                                       /* strings turned into spaces?   */
-
-       Dimension       formWidth;      /* Pixel width of the parent  area  */
-       Dimension       formHeight;     /* Pixel height of the parent area  */
-       Dimension       dispWidth;      /* Pixel width of the display area  */
-       Dimension       dispHeight;     /* Pixel height of the display area */
-       Dimension       dispUseHeight;  /* Pixel height of the display area
-                                          minus the decor margin.          */
-       Dimension       dispUseWidth;   /* Pixel width of the display area
-                                          minus the decor margin.          */
-       Dimension       marginWidth;    /* Pixel padding at the left and
-                                          right of the display area.       */
-       Dimension       marginHeight;   /* Pixel padding at the top and
-                                          bottom of the display area.      */
-
-       short   decorThickness;         /* the shadow thickness plus highlight
-                                          thickness of the display area    */
-
-       void    (*hyperCall)();         /* The hypertext callback */
-       void    (*resizeCall)();        /* The resize callback    */
-       int     (*exec_filter)();       /* The execution filter callback    */
-       XtPointer       clientData;     /* The client's data for the callback */
-
-       Pixel   traversalColor;         /* The client's traversal color */
-       Pixel   foregroundColor;        /* The client's foreground color     */
-       Pixel   backgroundColor;        /* The client's foreground color     */
-       Pixel   searchColor;            /* The client's search hilite color  */
-       GC      pixmapGC;
-       GC      normalGC;
-       GC      invertGC;
-       Pixmap  def_pix;                /* the default 'missing pixmap'      */
-       Dimension def_pix_width;        /* the width of the default pixmap   */
-       Dimension def_pix_height;       /* the height of the default pixmap  */
-        _DtGrContext *context;          /* image converter context */
-
-       Colormap  colormap;             /* The colormap to use          */
-       Visual   *visual;               /* The visual to use            */
-
-       DtHelpDAFontInfo font_info;     /* The font information         */
-
-       int     depth;                  /* The depth of the window      */
-
-       int     fontAscent;
-       int     lineHeight;
-       int     leading;
-       long    charWidth;              /* The average size of a character   */
-       int     moveThreshold;          /* The number of pixels that must
-                                          be moved before a copy-paste
-                                          action occurs.                    */
-       int     underLine;
-       int     lineThickness;          /* For traversal box and underline   */
-       int     firstVisible;           /* The absolute number of the first
-                                          line visible in the window.      */
-       int     nextNonVisible;         /* The absolute number of the first
-                                          line non visible, next to the last
-                                          visible window.  */
-       int     visibleCount;           /* The number of lines viewable     */
-       int     maxYpos;                /* Maximum Y positioning            */
-
-       int     virtualX;               /* The virtual x of the window      */
-       int     maxX;                   /* The max virtual x of a line      */
-
-       int     max_spc;                /* The maximum special characters   */
-       int     cur_spc;                /* The current unused structure     */
-       int     timerX;                 /* Used for button clicks/selections */
-       int     timerY;                 /* Used for button clicks/selections */
-       int     scr_timer_x;            /* Used for button clicks/selections */
-       int     scr_timer_y;            /* Used for button clicks/selections */
-       int     vert_init_scr;          /* The initial vert scrolling timeout*/
-       int     vert_rep_scr;           /* The repeat vert scrolling timeout */
-       int     horz_init_scr;          /* The initial horz scrolling timeout*/
-       int     horz_rep_scr;           /* The repeat horz scrolling timeout */
-       _DtCvUnit       toc_width;      /* The width  of the toc indicator   */
-       _DtCvUnit       toc_height;     /* The height of the toc indicator   */
-       _DtCvUnit       toc_y;          /* The y coordinate of the toc       */
-       _DtCvUnit       toc_base;       /* The baseline coordinate of the toc*/
-
-       Time     anchor_time;           /* Indicates the primary selection
-                                          time.                              */
-       Boolean  primary;               /* Indicates if this widget has the
-                                          primary selection                  */
-       Boolean  text_selected;         /* Indicates if the selection has
-                                          occurred                           */
-       enum _DtHelpSelectState select_state;
-                                       /* Indicates the state of the current
-                                          selection.                         */
-       short    toc_flag;              /* Indicates if the traversal indicator
-                                          is always on.                      */
-       _DtCvPointer toc_indicator;     /* The indicator used in the toc */
-
-       XtIntervalId scr_timer_id;
-       SelectionScrollStruct scr_timer_data;
-       DtHelpSpecialChars *spc_chars;  /* Structure containing the spc chars */
-       _DtCvHandle       canvas;
-       _DtCvTopicPtr     lst_topic;
-       wchar_t          *cant_begin_chars;     /* characters that cannot    */
-                                               /* begin a line of text      */
-       wchar_t          *cant_end_chars;       /* characters that cannot    */
-                                               /* end a line of text        */
-
-       short   dtinfo;                 /* Indicates if being used by dtinfo */
-       Pixmap  stipple;                /* stippled pixmap */
-
-       /* callback to be called whenever you manipulate the display */
-       /* area's vertical scrollbar directly using XtSetValues, */
-       /* because the application (dtinfo) has callbacks on the */
-       /* scrollbar, these do not get called when we adjust it with */
-       /* XtSetValues() */ 
-       void    (*vScrollNotify)(void *,unsigned int); 
-
-       /* dtinfo requires this for doing link previews */
-       void    (*armCallback)(void*); 
-
-       _DtCvValue honor_size;          /* Layout parameter for _DtCvSetTopic */
-       _DtCvRenderType render_type;    /* Render type performed on expose */
-       unsigned short media_resolution;        /* used for scaling images */
-
-} DtHelpDispAreaStruct;
-
-#endif /* _DtHelpDisplayAreaP_h */
diff --git a/cde/lib/DtHelp/FileUtilsI.h b/cde/lib/DtHelp/FileUtilsI.h
deleted file mode 100644 (file)
index 99f3454..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: FileUtilsI.h /main/5 1995/10/26 12:19:41 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        FileUtilsI.h
- **
- **   Project:     DtHelp Project
- **
- **   Description: File locating and handling utilities
- ** 
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpFileUtilsI_h
-#define _DtHelpFileUtilsI_h
-
-#define DtHelpVOLUME_TYPE "volumes"      /* dir for %T in XtResolvePathname */
-#define DtHelpCCDF_VOL_SUFFIX ".hv"      /* possible basename suffix */
-#define DtHelpSDL_VOL_SUFFIX ".sdl"      /* possible basename suffix */
-
-/* array indices and size for use with _DtHelpFileGetSearchPaths() */
-#define _DtHELP_FILE_USER_PATH 0
-#define _DtHELP_FILE_SYS_PATH  1
-#define _DtHELP_FILE_HOME_PATH 2
-#define _DtHELP_FILE_NUM_PATHS 3
-
-typedef struct _dtHelpCeDirStruct {
-       char    *dir_name;
-       int      type;
-       int      user_flag;
-       struct _dtHelpCeDirStruct *next_dir;
-} _DtHelpCeDirStruct;
-
-/* list of suffixes that help volumes may have */
-extern const char * _DtHelpFileSuffixList[];
-
-extern int                      _DtHelpCeCheckAndCacheDir(char *dir);
-extern void                     _DtHelpFileGetSearchPaths(
-                                        char *  paths[],
-                                        Boolean searchHomeDir);
-extern char                     *_DtHelpFileLocate (
-                                       char *       type,
-                                       char *       base,
-                                       const char * suffixList[],
-                                       Boolean      searchCurDir,
-                                       int          accessMode);
-extern Boolean                  _DtHelpFileTraceLinks (
-                                       char * *  pPathName);
-extern Boolean                  _DtHelpFileTraceToFile (
-                                       char * *  pPathName,
-                                       int       accessMode,
-                                       char * *  pFoundPath);
-
-#endif /* _DtHelpFileUtilsI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
diff --git a/cde/lib/DtHelp/FontAttrI.h b/cde/lib/DtHelp/FontAttrI.h
deleted file mode 100644 (file)
index 1d23339..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: FontAttrI.h /main/7 1995/12/06 18:36:56 cde-hp $ */
-/************************************<+>*************************************
- ****************************************************************************
- **  File:  FontAttrI.h
- **  Project:  Common Desktop Environment
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpFontAttrI_h
-#define _DtHelpFontAttrI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Public Defines Declarations    ********/
-/*
- * font attributes
- */
-#define _CEFONT_CHAR_SET       6
-#define _CEFONT_LANG_TER       5
-#define _CEFONT_TYPE           4
-#define _CEFONT_WEIGHT         3
-#define _CEFONT_ANGLE          2
-#define _CEFONT_SIZE           1
-#define _CEFONT_SPACING        0
-
-#define _CEFONT_END            7
-
-#define _CEFontAttrNumber     8
-
-/********    Public Enum Declarations    ********/
-enum    _dtHelpFontValue
-    {
-       _DtHelpFontValueBad,
-/* styles  */
-       _DtHelpFontStyleSerif      ,
-       _DtHelpFontStyleSanSerif   ,
-       _DtHelpFontStyleSymbol,
-/* spacing */
-       _DtHelpFontSpacingMono     ,
-       _DtHelpFontSpacingProp     ,
-/* weights */
-       _DtHelpFontWeightMedium    ,
-       _DtHelpFontWeightBold      ,
-/* slant   */
-       _DtHelpFontSlantRevItalic  ,
-       _DtHelpFontSlantItalic     ,
-       _DtHelpFontSlantRoman      ,
-/* special */
-       _DtHelpFontSpecialUnderLine,
-       _DtHelpFontSpecialStrikeOut,
-       _DtHelpFontSpecialNone
-    };
-
-/********    Public Typedef Declarations    ********/
-
-typedef        enum _dtHelpFontValue   _DtHelpFontValue;
-
-/********    Public Structures Declarations    ********/
-
-typedef struct  _dtHelpFontHints {
-       char    *language;
-        char    *char_set;
-       int      pointsz;       /* height of font in points */
-       int      set_width;     /* width  of font in points */
-       char    *color;         /* 1 of 42 UDT colors or 'RGB:rrrr/gggg/bbbb */
-       char    *xlfd;          /* xlfd name for use on X Window System */
-       char    *xlfdb;         /* xlfd name for use on X Window System */
-       char    *xlfdi;         /* xlfd name for use on X Window System */
-       char    *xlfdib;        /* xlfd name for use on X Window System */
-       char    *typenam;       /* typeface spec for MS-Windows interface */
-       char    *typenamb;      /* typeface spec for MS-Windows interface */
-       char    *typenami;      /* typeface spec for MS-Windows interface */
-       char    *typenamib;     /* typeface spec for MS-Windows interface */
-       _DtHelpFontValue  style;    /* font style              */
-       _DtHelpFontValue  spacing;  /* font spacing            */
-       _DtHelpFontValue  weight;   /* font weight             */
-       _DtHelpFontValue  slant;    /* font slant              */
-       _DtHelpFontValue  special;  /* special characteristics */
-       void    *expand;        /* reserved pointer for later expansion */
-} _DtHelpFontHints;
-
-/********    Public Structure Typedef Declarations    ********/
-
-/********    Public Prototyped Procedures    ********/
-
-/********    Public Macro Declarations    ********/
-#ifndef        _DtHelpFontHintsColor
-#define        _DtHelpFontHintsColor(x)        ((x).color)
-#endif
-
-#ifndef        _DtHelpFontHintsLang
-#define        _DtHelpFontHintsLang(x)         ((x).language)
-#endif
-
-#ifndef        _DtHelpFontHintsCharSet
-#define        _DtHelpFontHintsCharSet(x)      ((x).char_set)
-#endif
-
-#ifndef        _DtHelpFontHintsPtSize
-#define        _DtHelpFontHintsPtSize(x)       ((x).pointsz)
-#endif
-
-#ifndef        _DtHelpFontHintsWeight
-#define        _DtHelpFontHintsWeight(x)       ((x).weight)
-#endif
-
-#ifndef        _DtHelpFontHintsXlfd
-#define        _DtHelpFontHintsXlfd(x)         ((x).xlfd)
-#endif
-
-#ifndef        _DtHelpFontHintsXlfdb
-#define        _DtHelpFontHintsXlfdb(x)        ((x).xlfdb)
-#endif
-
-#ifndef        _DtHelpFontHintsXlfdi
-#define        _DtHelpFontHintsXlfdi(x)        ((x).xlfdi)
-#endif
-
-#ifndef        _DtHelpFontHintsXlfdib
-#define        _DtHelpFontHintsXlfdib(x)       ((x).xlfdib)
-#endif
-
-#ifndef        _DtHelpFontHintsTypeNam
-#define        _DtHelpFontHintsTypeNam(x)      ((x).typenam)
-#endif
-
-#ifndef        _DtHelpFontHintsTypeNamb
-#define        _DtHelpFontHintsTypeNamb(x)     ((x).typenamb)
-#endif
-
-#ifndef        _DtHelpFontHintsTypeNami
-#define        _DtHelpFontHintsTypeNami(x)     ((x).typenami)
-#endif
-
-#ifndef        _DtHelpFontHintsTypeNamib
-#define        _DtHelpFontHintsTypeNamib(x)    ((x).typenamib)
-#endif
-
-#ifndef        _DtHelpFontPtrPtSize
-#define        _DtHelpFontPtrPtSize(x) ((x)->pointsz)
-#endif
-
-#ifndef        _DtHelpFontPtrWeight
-#define        _DtHelpFontPtrWeight(x) ((x)->weight)
-#endif
-
-/********    Semi-Public Function Declarations    ********/
-
-/********    Public Function Declarations    ********/
-extern void    _DtHelpCeCopyDefFontAttrList(_DtHelpFontHints *font_attr );
-extern int     _DtHelpDupFontHints(_DtHelpFontHints *font_attr );
-extern void    _DtHelpFreeFontHints(_DtHelpFontHints *font_attr );
-
-/********    End Public Function Declarations    ********/
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtHelpFontAttrI_h */
diff --git a/cde/lib/DtHelp/FontI.h b/cde/lib/DtHelp/FontI.h
deleted file mode 100644 (file)
index e1477f1..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        FontI.h
- **
- **   Project:     TextGraphic Display routines
- **
- **   Description: Header file for Font.c
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtFontI_h
-#define _DtFontI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/****************************************************************************
- *                     Semi Public Defines
- ****************************************************************************/
-/*
- * resource database types
- */
-#define _DtHelpXrmInt      0
-#define _DtHelpXrmQuark    1
-
-/*
- * font quarks
- */
-#define _DT_HELP_FONT_CHAR_SET       6
-#define _DT_HELP_FONT_LANG_TER       5
-#define _DT_HELP_FONT_TYPE           4
-#define _DT_HELP_FONT_WEIGHT         3
-#define _DT_HELP_FONT_ANGLE          2
-#define _DT_HELP_FONT_SIZE           1
-#define _DT_HELP_FONT_SPACING        0
-
-#define _DT_HELP_FONT_END            7
-
-#define _DtHelpFontQuarkNumber     8
-
-/****************************************************************************
- *                     Semi Public Structures
- ****************************************************************************/
-/****************************************************************************
- *                     Semi Public Routines
- ****************************************************************************/
-extern void             _DtHelpCopyDefaultList(XrmName *xrm_list);
-extern long             __DtHelpDefaultFontIndexGet (
-                               DtHelpDispAreaStruct    *pDAS);
-extern void             _DtHelpGetStringQuarks(XrmName *xrm_list);
-extern int              __DtHelpFontCharSetQuarkGet(
-                               DtHelpDispAreaStruct    *pDAS,
-                               long                     font_index,
-                               XrmQuark                *ret_quark);
-extern void             __DtHelpFontDatabaseInit (
-                               DtHelpDispAreaStruct    *pDAS,
-                               XtPointer                default_font,
-                               XmFontType               entry_type,
-                               XFontStruct             *user_font);
-extern int              __DtHelpFontIndexGet (
-                               DtHelpDispAreaStruct    *pDAS,
-                               XrmQuarkList             xrm_list,
-                               long                    *ret_idx);
-extern int              __DtHelpFontLangQuarkGet(
-                               DtHelpDispAreaStruct    *pDAS,
-                               long                     font_index,
-                               XrmQuark                *ret_quark);
-extern void             __DtHelpFontMetrics (
-                               DtHelpDAFontInfo         font_info,
-                               long                     font_index,
-                               _DtCvUnit               *ret_ascent,
-                               _DtCvUnit               *ret_descent,
-                               _DtCvUnit               *ret_char_width,
-                               _DtCvUnit               *ret_super,
-                               _DtCvUnit               *ret_sub);
-extern XFontSet         __DtHelpFontSetGet (
-                               DtHelpDAFontInfo         font_info,
-                               long                     font_index );
-extern XFontStruct     *__DtHelpFontStructGet (
-                               DtHelpDAFontInfo         font_info,
-                               long                     font_index);
-extern int              _DtHelpGetExactFontIndex(
-                               DtHelpDispAreaStruct    *pDAS,
-                               const char              *lang,
-                               const char              *char_set,
-                               char                    *xlfd_spec,
-                               long                    *ret_idx);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtHelpFontI_h */
diff --git a/cde/lib/DtHelp/GifUtilsI.h b/cde/lib/DtHelp/GifUtilsI.h
deleted file mode 100644 (file)
index 9a443d7..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */
-#ifndef _DtGifUtilsI_h
-#define _DtGifUtilsI_h
-
-/* Include files */
-#include <X11/Xlib.h>
-#include "GraphicsP.h"
-
-/* Enumerated values */
-enum op_t { DO_COLOR, DO_GREY };
-
-/* Type definitions */
-typedef unsigned char byte;
-typedef unsigned long pixel;
-
-/* Data structures */
-
-typedef struct 
-  {
-    unsigned long pixel;
-    unsigned short red, green, blue;
-    unsigned short grey;
-  } GifColors;
-
-typedef struct 
-{
-  XImage        *f_ximage;
-  Display       *f_dpy;
-  int            f_screen;
-  Colormap       f_cmap;
-  Drawable       f_drawable;
-  GC             f_gc;
-  Visual        *f_visual;
-  unsigned int   f_ncells;
-  unsigned int   f_nplanes;
-  unsigned long  f_black;
-  unsigned long  f_white;
-  unsigned long  f_fg;
-  unsigned long  f_bg;
-  int           f_dft_depth;
-  int           f_visual_class;
-  int            f_color_map_constructed;
-  int            f_do_visual;
-  int            bits_per_pixel ;  
-  int            colors_per_pixel;
-  int            total_colors ; 
-  int            f_total_greys;
-  int            f_init_total_greys;  
-  Boolean        f_allow_reduced_colors;
-  Boolean        f_color_reduction_used;     
-  GifColors      GifCMap[64];
-  unsigned long  GifGMap[32];
-} GifObj;
-
-/* Function prototypes */
-
-/* Initializes a gif object structure */
-enum _DtGrLoadStatus InitGifObject( 
-    GifObj                *g, 
-    Display               *dpy, 
-    Drawable               drawable, 
-    Screen                *screen,
-    int                    depth, 
-    Colormap               colormap, 
-    Visual                *visual, 
-    GC                     gc,
-    enum _DtGrColorModel   colorModel, 
-    Boolean                allowReducedColors
-);
-
-/* Deletes resources associated with a gif object structure */
-void DeleteGifObjectResources(
-    GifObj *g 
-);
-
-/* Converts a gif buffer to an X pixmap */
-Pixmap gif_to_pixmap(
-    GifObj        *g, 
-    byte          *inbuf, 
-    unsigned int   buflen, 
-    Dimension     *w, 
-    Dimension     *h, 
-    Pixel          fg, 
-    Pixel          bg,
-    float          ratio
-);
-
-/* Creates a raw PPM-style image from a GIF buffer */
-pixel **create_raw_image(
-    byte          *inbuf, 
-    unsigned int   buflen, 
-    int           *width, 
-    int           *height, 
-    int            imageNumber
-);
-
-/* Creates an X pixmap from a raw PPM-style image */
-Pixmap create_pixmap(
-    GifObj    *g, 
-    pixel   **image, 
-    int        width, 
-    int        height, 
-    Pixel      fg, 
-    Pixel      bg,
-    float      ratio
-);
-
-/* Frees raw image data */
-void free_raw_image(
-    pixel  **image
-);
-
-/* Allocates X pixels needed for the color cube */
-int allocate_colors(
-    GifObj  *g
-);
-
-/* Allocates X pixels needed for greyscale rendering */
-int allocate_greys(
-    GifObj  *g
-);
-
-#endif /* _DtGifUtilsI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/GraphicsP.h b/cde/lib/DtHelp/GraphicsP.h
deleted file mode 100644 (file)
index fc26ada..0000000
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: GraphicsP.h /main/4 1996/05/09 03:43:09 drk $ */
-#ifndef _DtGraphicsP_h
-#define _DtGraphicsP_h
-
-#include <stdio.h>
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/* 
- * Input stream data structures
- */
-
-/* Stream source types */ 
-enum _DtGrStreamType { _DtGrNONE, _DtGrBUFFER, _DtGrFILE };
-
-/* Stream file data */
-typedef struct
-{
-    FILE *fileptr;
-    char *filename;
-    char *uncompressed_filename;
-} _DtGrFile;
-
-/* Stream buffer data */
-typedef struct
-{
-    const char *base;
-    long       size;
-    char       *current;
-    char       *end;
-} _DtGrBuffer;
-
-/* Stream data */
-typedef struct
-{
-    enum _DtGrStreamType  type;
-    union
-    {
-       _DtGrFile    file;
-       _DtGrBuffer  buffer;
-    } source;
-} _DtGrStream;
-
-/*
- * Input stream function prototypes
- */
-
-/* Open a file stream */
-int _DtGrOpenFile(
-    _DtGrStream *stream,
-    char        *path
-);
-
-/* Open a buffer stream */
-int _DtGrOpenBuffer(
-    _DtGrStream *stream,
-    const char  *buffer,
-    int         buffer_size
-);
-
-/* Close a stream */
-int _DtGrCloseStream(
-    _DtGrStream *stream
-);
-
-/* Reads data from a stream into a buffer */
-size_t _DtGrRead(
-    void        *buffer,
-    size_t      size,
-    size_t      num_items,
-    _DtGrStream *stream
-);
-
-/* Sets the position of the next input operation on a stream */
-int _DtGrSeek(
-    _DtGrStream *stream,
-    long        offset,
-    int         whence
-);
-
-/* Reads a character from a stream and advances the stream position */
-int _DtGrGetChar(
-    _DtGrStream *stream
-);
-
-/* Reads a string from a stream and advances the stream position */
-char *_DtGrGetString(
-    char        *buffer,
-    int         num_bytes,
-    _DtGrStream *stream
-);
-
-/*
- * Inline graphics data structures
- */
-
-enum _DtGrColorModel { _DtGrCOLOR, _DtGrGRAY_SCALE, _DtGrBITONAL };
-enum _DtGrLoadStatus { _DtGrSUCCESS, _DtGrCOLOR_REDUCE,_DtGrCONVERT_FAILURE, 
-                       _DtGrOPEN_FAILED, _DtGrFILE_INVALID, _DtGrNO_MEMORY, 
-                       _DtGrCOLOR_FAILED };
-
-/* Context structure used by image type converters */
-typedef struct {
-    char *image_type;
-    XPointer context;
-} _DtGrContext;
-
-typedef enum _DtGrLoadStatus (*_DtGrLoadProc)(
-    _DtGrStream           *stream,
-    Screen                *screen,
-    int                   depth,
-    Colormap              colormap,
-    Visual                *visual,
-    Pixel                 foreground,
-    Pixel                 background,
-    GC                    gc,
-    enum _DtGrColorModel  color_model,
-    Boolean               allow_reduced_colors,
-    Dimension             *in_out_width,
-    Dimension             *in_out_height,
-    unsigned short        media_resolution,
-    Pixmap                *ret_pixmap,
-    Pixmap                *ret_mask,
-    Pixel                 **ret_colors,
-    int                   *ret_num_colors,
-    _DtGrContext          *context);
-
-typedef void (*_DtGrDestroyContextProc)(
-    _DtGrContext *context);
-
-/*
- * Inline graphics function prototypes
- */
-
-/* Loads an image into a pixmap */
-enum _DtGrLoadStatus _DtGrLoad(
-    _DtGrStream           *stream,
-    char                  **image_type,
-    Screen                *screen,
-    int                   depth,
-    Colormap              colormap,
-    Visual                *visual,
-    Pixel                 foreground,
-    Pixel                 background,
-    GC                    gc,
-    enum _DtGrColorModel  color_model,
-    Boolean               allow_reduced_colors,
-    Dimension             *in_out_width,
-    Dimension             *in_out_height,
-    unsigned short        media_resolution,
-    Pixmap                *ret_pixmap,
-    Pixmap                *ret_mask,
-    Pixel                 **ret_colors,
-    int                   *ret_num_colors,
-    _DtGrContext          *context);
-
-/* Destroys a context */
-void _DtGrDestroyContext(
-    _DtGrContext *context);
-
-/* Registers a converter for a graphic type */
-void _DtGrRegisterConverter(
-    char                    *image_type,
-    _DtGrLoadProc           convert_proc,
-    _DtGrDestroyContextProc destroy_context_proc,
-    _DtGrLoadProc           *current_convert_proc,
-    _DtGrDestroyContextProc *current_destroy_proc);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtGraphicsP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/Help.h b/cde/lib/DtHelp/Help.h
deleted file mode 100644 (file)
index 29921a1..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Help.h /main/3 1995/10/26 12:23:24 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Help_h
-#define _Dt_Help_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Common DtHelp Resources  */
-
-#ifndef DtNcloseCallback
-#define DtNcloseCallback          "closeCallback"
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns                 XmNcolumns
-#endif
-#ifndef DtNexecutionPolicy
-#define DtNexecutionPolicy         "executionPolicy"
-#endif
-#ifndef DtNhelpFile
-#define DtNhelpFile                "helpFile"
-#endif
-#ifndef DtNhelpOnHelpVolume
-#define DtNhelpOnHelpVolume            "helpOnHelpVolume"
-#endif
-#ifndef DtNhelpPrint
-#define DtNhelpPrint               "helpPrint"
-#endif
-#ifndef DtNhelpType
-#define DtNhelpType                "helpType"
-#endif
-#ifndef DtNhelpVolume
-#define DtNhelpVolume              "helpVolume"
-#endif
-#ifndef DtNhyperLinkCallback
-#define DtNhyperLinkCallback       "hyperLinkCallback"
-#endif
-#ifndef DtNlocationId
-#define DtNlocationId              "locationId"
-#endif
-#ifndef DtNmanPage
-#define DtNmanPage                 "manPage"
-#endif
-#ifndef DtNminimizeButtons
-#define DtNminimizeButtons         XmNminimizeButtons
-#endif
-#ifndef DtNpaperSize
-#define DtNpaperSize               "paperSize"
-#endif
-#ifndef DtNprinter
-#define DtNprinter                 "printer"
-#endif
-#ifndef DtNrows
-#define DtNrows                    XmNrows
-#endif
-#ifndef DtNscrollBarPolicy
-#define DtNscrollBarPolicy         "scrollBarPolicy"
-#endif
-#ifndef DtNstringData
-#define DtNstringData              "stringData"
-#endif
-
-#ifndef DtCCallback
-#define DtCCallback                XmCCallback
-#endif
-
-#ifndef DtCCloseCallback
-#define DtCCloseCallback          "CloseCallback"
-#endif
-#ifndef DtCColumns
-#define DtCColumns                 XmCColumns
-#endif
-#ifndef DtCExecutionPolicy
-#define DtCExecutionPolicy         "ExecutionPolicy"
-#endif
-#ifndef DtCHelpFile
-#define DtCHelpFile                "HelpFile"
-#endif
-#ifndef DtCHelpOnHelpVolume
-#define DtCHelpOnHelpVolume       "HelpOnHelpVolume"
-#endif
-#ifndef DtCHelpPrint
-#define DtCHelpPrint               "HelpPrint"
-#endif
-#ifndef DtCHelpType
-#define DtCHelpType                "HelpType"
-#endif
-#ifndef DtCHelpVolume
-#define DtCHelpVolume              "HelpVolume"
-#endif
-#ifndef DtCHyperLinkCallback
-#define DtCHyperLinkCallback       "HyperLinkCallback"
-#endif
-#ifndef DtCLocationId
-#define DtCLocationId              "LocationId"
-#endif
-#ifndef DtCManPage
-#define DtCManPage                 "ManPage"
-#endif
-#ifndef DtCMinimizeButtons
-#define DtCMinimizeButtons         XmCMinimizeButtons
-#endif
-#ifndef DtCPaperSize
-#define DtCPaperSize               "PaperSize"
-#endif
-#ifndef DtCPrinter
-#define DtCPrinter                 "Printer"
-#endif
-#ifndef DtCRows
-#define DtCRows                    XmCRows
-#endif
-#ifndef DtCScrollBarPolicy
-#define DtCScrollBarPolicy         "ScrollBarPolicy"
-#endif
-#ifndef DtCStringData
-#define DtCStringData              "StringData"
-#endif
-
-/* Representation types */
-
-#ifndef DtRDtExecutionPolicy
-#define DtRDtExecutionPolicy         "DtExecutionPolicy"
-#endif
-#ifndef DtRDtHelpType
-#define DtRDtHelpType                "DtHelpType"
-#endif
-#ifndef DtRDtPaperSize
-#define DtRDtPaperSize               "DtPaperSize"
-#endif
-#ifndef DtRDtScrollBarPolicy
-#define DtRDtScrollBarPolicy         "DtScrollBarPolicy"
-#endif
-
-/* DtHelpDialogCallbackStruct windowHint field */
-
-#define DtHELP_POPUP_WINDOW       1
-#define DtHELP_CURRENT_WINDOW     2
-#define DtHELP_NEW_WINDOW         3
-
-/* DtHelpDialogCallbackStruct hyperType field */
-
-#define DtHELP_LINK_JUMP_NEW          1
-#define DtHELP_LINK_TOPIC             1
-#define DtHELP_LINK_MAN_PAGE          4
-#define DtHELP_LINK_APP_DEFINE        5
-#define DtHELP_LINK_TEXT_FILE         8
-
-/* DtHelpDialogCallbackStruct reason field */
-
-#define DtCR_HELP_LINK_ACTIVATE      1
-#define DtCR_HELP_CLOSE              2
-#define DtCR_HELP_HELP               3
-
-/* Possible values for DtNscrollBarPolicy resource */
-
-#define  DtHELP_NO_SCROLLBARS        0
-#define  DtHELP_STATIC_SCROLLBARS    1
-#define  DtHELP_AS_NEEDED_SCROLLBARS 2
-
-/* Possible values for DtNexecutionPolicy resource */
-#define  DtHELP_EXECUTE_NONE                   0
-#define  DtHELP_EXECUTE_QUERY_ALL              1
-#define  DtHELP_EXECUTE_QUERY_UNALIASED                2
-#define  DtHELP_EXECUTE_ALL                    3
-
-/* Possible values for DtNhelpType resource */
-
-#define DtHELP_TYPE_TOPIC           0
-#define DtHELP_TYPE_STRING          1
-#define DtHELP_TYPE_MAN_PAGE        2
-#define DtHELP_TYPE_FILE            3
-#define DtHELP_TYPE_DYNAMIC_STRING  4
-
-/* Possible values for DtNpaperSize resource */
-
-#define DtHELP_PAPERSIZE_LETTER     0
-#define DtHELP_PAPERSIZE_LEGAL      1
-#define DtHELP_PAPERSIZE_EXECUTIVE  2
-#define DtHELP_PAPERSIZE_A4         3
-#define DtHELP_PAPERSIZE_B5         4
-
-/* DtHelpQuickGetChildGetChild() function */
-
-#define DtHELP_QUICK_CLOSE_BUTTON    1
-#define DtHELP_QUICK_PRINT_BUTTON    2
-#define DtHELP_QUICK_HELP_BUTTON     3
-#define DtHELP_QUICK_SEPARATOR       4
-#define DtHELP_QUICK_MORE_BUTTON     5
-#define DtHELP_QUICK_BACK_BUTTON     6
-
-/* Return values for DtHelpReturnSelectedWidgetId() */
-
-#define DtHELP_SELECT_ERROR   -1 
-#define DtHELP_SELECT_VALID    0
-#define DtHELP_SELECT_ABORT    1
-#define DtHELP_SELECT_INVALID  2 
-
-
-/*
- * Types
- */
-
-typedef struct {
-       int     reason;
-       XEvent  *event;
-       char    *locationId;
-       char    *helpVolume;
-       char    *specification;
-       int     hyperType;
-       int     windowHint;
-} DtHelpDialogCallbackStruct;
-
-
-/*
- * Functions
- */
-
-extern void DtHelpSetCatalogName(
-               char            *catFile);
-
-extern int DtHelpReturnSelectedWidgetId(
-               Widget          parent,
-               Cursor          cursor,
-               Widget          *widget);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Help_h */
diff --git a/cde/lib/DtHelp/HelpDialog.h b/cde/lib/DtHelp/HelpDialog.h
deleted file mode 100644 (file)
index 0c810a8..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpDialog.h /main/3 1995/10/26 12:24:05 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_HelpDialog_h
-#define _Dt_HelpDialog_h
-
-#include <Dt/Help.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* General Help Dialog-specific Resources */
-
-#ifndef DtNmarginWidth
-#define DtNmarginWidth                 XmNmarginWidth
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                        XmNmarginHeight
-#endif
-#ifndef DtNshowNewWindowButton
-#define DtNshowNewWindowButton         "showNewWindowButton"
-#endif
-#ifndef DtNtopicTitle
-#define DtNtopicTitle                  "topicTitle"
-#endif
-#ifndef DtNvisiblePathCount
-#define DtNvisiblePathCount            "visiblePathCount"
-#endif
-
-#ifndef DtCCallback
-#define DtCCallback                     XmCCallback
-#endif
-
-#ifndef DtCMarginWidth
-#define DtCMarginWidth                 XmCMarginWidth
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                        XmCMarginHeight
-#endif
-#ifndef DtCShowNewWindowButton
-#define DtCShowNewWindowButton         "ShowNewWindowButton"
-#endif
-#ifndef DtCTopicTitle
-#define DtCTopicTitle                  "TopicTitle"
-#endif
-#ifndef DtCVisiblePathCount
-#define DtCVisiblePathCount            "VisiblePathCount"
-#endif
-
-
-/*
- * Types
- */
-
-/* Widget class and instance */
-
-typedef struct _DtHelpDialogWidgetClassRec * DtHelpDialogWidgetClass;
-typedef struct _DtHelpDialogWidgetRec      * DtHelpDialogWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtHelpDialogWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateHelpDialog(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_HelpDialog_h */
diff --git a/cde/lib/DtHelp/HelpDialogP.h b/cde/lib/DtHelp/HelpDialogP.h
deleted file mode 100644 (file)
index 47d6613..0000000
+++ /dev/null
@@ -1,392 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpDialogP.h /main/6 1996/04/13 11:55:10 ageorge $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   HelpDialogP.h
- **
- **  Project:  Cache Creek (Rivers) Project:
- **
- **  Description:  Privite Header file for HelpDialog.c 
- **  -----------
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- *******************************************************************
- *************************************<+>*************************************/
-
-#ifndef _DtHelpDialogP_h
-#define _DtHelpDialogP_h
-
-#include <Xm/BulletinBP.h>
-
-#include <Dt/HelpDialog.h>
-
-#include "FileListUtilsI.h"
-#include "GlobSearchP.h"
-
-#define XmDIALOG_SUFFIX            "_popup"
-#define XmDIALOG_SUFFIX_SIZE       6
-
-
-/* Defines for use in allocation geometry matrix. */
-#define TB_MAX_WIDGETS_VERT     7
-#define TB_MAX_NUM_WIDGETS      12
-
-
-/****************************************************************
- *
- *  Topic List Info Structure Definition (History & Jump Back Lists)
- *
- ****************************************************************/
-typedef struct _DtTopicListStruct {
-    char                         *locationId;
-    XmString                      topicTitleLbl;
-    char                         *helpVolume;
-    int                          topicType;
-    int                          pathLevel;
-    int                          scrollPosition;
-    struct _DtTopicListStruct   *pNext;
-    struct _DtTopicListStruct   *pPrevious;
-} DtTopicListStruct;
-
-
-/****************************************************************
- *
- *  Volume List Info: History Dialog only.
- *
- ****************************************************************/
-typedef struct _DtHistoryListStruct {
-    XmString                    itemTitle;
-    int                         topicType;
-    int                         totalNodes;
-    struct _DtHistoryListStruct *pNext;
-    struct _DtTopicListStruct   *pTopicHead;
-    struct _DtTopicListStruct   *pTopicTale;
-} DtHistoryListStruct;
-
-
-/****************************************************************
- *
- *  Help Callback return structure
- *
- ****************************************************************/
-typedef        struct  _DtHelpListStruct {
-    char *                     locationId;
-    Widget                     widget;
-    struct _DtHelpCommonHelpStuff * help;
-    struct _DtHelpListStruct * pNext;
-    struct _DtHelpListStruct * pPrevious;
-} DtHelpListStruct;
-
-
-
-/****************************************************************
- *
- *  Kewword Search entry structure.
- *
- ****************************************************************/
-
-typedef struct {
-   char * keyWord;
-   Boolean    matchesFindPattern;
-} KeyEntry;
-
-
-
-
-/* Class Part Structure Definition */
-
-typedef struct
-{
-       XtPointer               extension;      /* Pointer to extension record */
-} DtHelpDialogWidgetClassPart;
-
-
-
-
-/* Full class record declaration */
-
-typedef struct _DtHelpDialogWidgetClassRec
-{
-       CoreClassPart                   core_class;
-       CompositeClassPart              composite_class;
-       ConstraintClassPart             constraint_class;
-       XmManagerClassPart              manager_class;
-       XmBulletinBoardClassPart        bulletin_board_class;
-       DtHelpDialogWidgetClassPart     selection_box_class;
-} DtHelpDialogWidgetClassRec;
-
-externalref DtHelpDialogWidgetClassRec dtHelpDialogWidgetClassRec;
-
-
-typedef struct _DtHelpDisplayWidgetStuff
-{
-        short           textColumns;           /* Columns Resource Value resource */
-        short           textRows;              /* Rows Resource Value resource */
-        char *          locationId;            /* Current Topic String resource */
-        char *          helpVolume;            /* Current Project File resource */
-        char *          manPage;               /* man page resource */
-        char *          stringData;            /* string data resource */
-        char *          helpFile;              /* help file resource */
-        unsigned char  scrollBarPolicy;        /* Scrollbar policy resource */       
-        unsigned char  executionPolicy;        /* Link/script exec policy resource */        
-        XtCallbackList hyperLinkCallback;      /* Hypertext Callback resource */
-        _DtHelpVolumeHdl volumeHandle;         /* handle of current volume */
-        unsigned char  helpType;               /* Current displayed file type resource */
-        char *          topicTitleStr;         /* title of topic */
-       int             count;                  /* Nonexistent topic title count */        
-       XmString        topicTitleLbl;          /* XmString title of topic */
-        Boolean         firstTimePopupFlag;     /* False, untel we map the widget */
-
-
-} _DtHelpDisplayWidgetStuff;
-
-typedef struct _DtHelpCommonHelpStuff
-{
-        XtPointer       pDisplayArea;          /* Display widget handle */
-
-       /* for help on help */
-        char *          helpOnHelpVolume;      /* help on help volume resource */
-        DtHelpListStruct * pHelpListHead;      /* Help List Pointer */
-        Widget          onHelpDialog;          /* help on help dialog */
-
-        char *          sysVolumeSearchPath;   /* system search path */
-        char *          userVolumeSearchPath;  /* user search path */
-
-        char *          currentHelpFile;       /* Current help file */
-        int             topicOffset;           /* Offset into help file */
-        
-        char *          topLevelId;            /* Toplevel topic volume displayed */
-        int             topLevelTopicOffset;
-} _DtHelpCommonHelpStuff;
-
-typedef struct _DtHelpGeneralHelpStuff
-{
-        char *          parentId;              /* used for "Up" menu */
-
-        Boolean         volumeFlag;            /* set when to process new vol */
-
-        Widget          definitionBox;
-        XtCallbackList closeCallback;          /* Window Close Callback */
-
-        Dimension       marginHeight;
-        Dimension       marginWidth;
-} _DtHelpGeneralHelpStuff;
-
-
-typedef struct _DtHelpBrowserStuff 
-{
-        int             visiblePathCount;      /* Number of path lines shown */
-        XtPointer      pTocArea;               /* Toc area handle */
-
-        Widget          volumeLabel;
-        Widget          panedWindow;  
-       Widget          pathArea;
-
-        Boolean         showTopLevelBtn;
-        Widget          btnBoxBackBtn;
-        Widget          btnBoxHistoryBtn;
-        Widget          btnBoxIndexBtn;
-        Widget          btnBoxTopLevelBtn;
-} _DtHelpBrowserStuff;
-
-typedef struct _DtHelpMenuStuff
-{
-        Boolean         showDupBtn;
-
-        /* Help Dialog Widgets */
-        Widget          menuBar;
-
-       Widget          topBtn;
-       Widget          keyBtn;
-        Widget          backBtn;
-       Widget          historyBtn;
-        Widget          printBtn;
-        Widget          closeBtn;
-        Widget          helpBtn;
-        Widget          newWindowBtn;
-        Widget          copyBtn;
-        Widget          popupMenu;
-        Widget          popupBackBtn;
-        Widget          popupTopBtn;
-} _DtHelpMenuStuff;
-
-typedef struct _DtHelpHistoryStuff
-{
-        /* Path Area Variables */
-        DtTopicListStruct * pPathListHead;
-        DtTopicListStruct * pPathListTale;
-        int                 totalPathNodes;
-
-        /* History Dialog Widgets & variables */
-               Widget              volumeList;         /* Scrolled volume list */   
-        Widget              topicList;         /* Scrolled topic  list */   
-        Widget              historyWidget;     /* Top Level History Shell */
-        Widget              topicsListLabel;
-        DtHistoryListStruct * pHistoryListHead;        /* Head pointer to history */
-} _DtHelpHistoryStuff;
-
-typedef struct _DtHelpBacktrackStuff
-{
-        /* Jump List variables */
-        DtTopicListStruct  * pJumpListHead;
-        DtTopicListStruct  * pJumpListTale; 
-        int                  totalJumpNodes;
-        int                  scrollPosition;
-} _DtHelpBacktrackStuff;
-
-typedef struct _DtHelpGlobSearchStuff
-{
-        /* search dialog resource (undocumented) */
-        char *            hitPrefixFont;       /* hit prefix mono-space font resource */
-
-        /* host application locale settings */
-        char *            iconv3Codeset;       /* iconv3-ok codeset of app */
-        _DtHelpCeIconvContext iconv3Context;     /* from vol to app locale */
-
-        /* File Selection Dialog font list */
-        XmFontList        volTitlesFontList;   /*font list req'd by font titles*/
-
-        /* Search Dialog Widgets & variables */
-        Widget            srchForm;
-        Widget            actionBtn;
-        Widget            curVolRadBtn;
-        Widget            allVolRadBtn;
-        Widget            selVolRadBtn;
-        Widget            selectBtn;
-        Widget            fullIndexRadBtn;
-        Widget            containsRadBtn;
-        Widget            wordField;
-        Widget            statusLabel;
-        Widget            resultList;
-        Widget            gotoBtn;
-        Widget            closeBtn;
-        Widget            helpBtn;
-        Widget            selectionDlg;                /* selectionBox (child of dlg) */
-        char *            curVolPath;          /* cur vol shown in btn label */
-        char *            rawWordStr;          /* word as taken from srchWord */
-        char *            normWordStr;         /* normalized word str */
-        char *            localeWordStr;       /* after iconv() of NormWordStr */
-        wchar_t           wordFieldFirstChar;
-        short             wordFieldLen;
-        short             statusLineUsage;
-        _DtHelpGlobSrchSources srchSources;    /* current state of radio but */
-        _DtHelpFileEntry  curSrchVol;          /* vol currently being searched */
-        unsigned int      hitsFontLoaded:1;    /* is font loaded? */
-        unsigned int      volScanDone:1;       /* is the volume list complete? */
-        unsigned int      fullIndex:1;         /* state of search */
-        unsigned int      readyToStart:1;      /* state of search */
-        unsigned int      hitsFound:1;         /* state of search */
-        unsigned int      searchInProgress:1;  /* state of search */
-        unsigned int      curVolRadBtnSens:1;  /* state of curVol sens */
-        short             volLeftCnt;          /* updated during search */
-        _DtHelpFileList   volListHead;         /* info on search topics found */
-        XtWorkProcId      workProcId;          /* ID of search proc */
-} _DtHelpGlobSearchStuff;
-
-typedef struct _DtHelpPrintStuff
-{
-        /* printing resources */
-        char *          helpPrint;             /* help print command resource */
-        unsigned char  paperSize;              /* paper size resource */        
-        char *          printer;               /* printer destination resource */
-        char *          printVolume;           /* volume to print resource */
-
-        /* Print Dialog widgets & variables */
-        Widget          printForm;             /* Form inside top level print shell */
-        Widget          subject;               /* label for subject matter to print */
-        Widget          printerField;          /* text field for printer */
-        Widget          copiesField;           /* text field for copies */
-        Widget          letterBtn;             /* menu item for letter paper */
-        Widget          legalBtn;              /* menu item for legal paper */
-        Widget          execBtn;               /* menu item for executive paper */
-        Widget          a4Btn;                 /* menu item for A4 paper */
-        Widget          b5Btn;                 /* menu item for B5 paper */
-        Widget          paperSizeOptMenu;      /* menu item for A4 paper */
-        Widget          topicsFrame;           /* frame holding print topic selection */
-        Widget          curTopicBtn;           /* radio btn for cur topic */
-        Widget          subTopicsBtn;          /* radio btn for cur & sub topics */
-        Widget          tocBtn;                        /* radio btn for table of contents */
-        Widget          allTopicsBtn;          /* radio btn for all topics */
-        Widget          paperTopicsSeparator;  /* hidden sep btwn paper size & topic sel */
-        Widget          topicsBtnsSeparator;   /* sep between topic sel & btns */
-} _DtHelpPrintStuff;
-
-
-/* fields for the GeneralHelp widget record */
-typedef struct
-{
-      _DtHelpDisplayWidgetStuff        display;
-      _DtHelpCommonHelpStuff   help;
-      _DtHelpGeneralHelpStuff  ghelp;
-      _DtHelpBrowserStuff      browser;
-      _DtHelpMenuStuff         menu;
-      _DtHelpHistoryStuff      history;
-      _DtHelpBacktrackStuff    backtr;
-      _DtHelpGlobSearchStuff   srch;
-      _DtHelpPrintStuff                print;
-} DtHelpDialogWidgetPart;
-
-
-/****************************************************************
- *
- * Full instance record declaration
- *
- ****************************************************************/
-
-typedef struct _DtHelpDialogWidgetRec
-{
-       CorePart                core;
-       CompositePart           composite;
-       ConstraintPart          constraint;
-       XmManagerPart           manager;
-       XmBulletinBoardPart     bulletin_board;
-       DtHelpDialogWidgetPart  help_dialog;
-} DtHelpDialogWidgetRec;
-
-
-
-/********    Private Function Declarations    ********/
-
-extern XmGeoMatrix _DtHelpDialogWidgetGeoMatrixCreate( 
-                        Widget wid,
-                        Widget instigator,
-                        XtWidgetGeometry *desired) ;
-extern Boolean _DtHelpDialogWidgetNoGeoRequest( 
-                        XmGeoMatrix geoSpec) ;
-
-/********    End Private Function Declarations    ********/
-
-
-
-#endif /* _XmTemplateBP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
diff --git a/cde/lib/DtHelp/HelpP.h b/cde/lib/DtHelp/HelpP.h
deleted file mode 100644 (file)
index a9dd4d8..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpP.h /main/3 1995/10/26 12:24:50 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        HelpP.h
- **
- **   Project:     CacheCreeek (Rivers) Project.
- **
- **   
- **   Description: Private header file for Dts.
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef        _DtHelpP_h
-#define        _DtHelpP_h
-
-/* Privite Argument Resource Definitions for Help Widget */
-
-#define DtNshowTopLevelButton   "showTopLevelButton"
-#ifndef XmNshowTopLevelButton
-#define XmNshowTopLevelButton  DtNshowTopLevelButton
-#endif
-#define DtCShowTopLevelButton   "ShowTopLevelButton"
-#ifndef XmCShowTopLevelButton
-#define XmCShowTopLevelButton  DtCShowTopLevelButton
-#endif
-
-#define DtNsrchHitPrefixFont    "srchHitPrefixFont"
-#ifndef XmNsrchHitPrefixFont
-#define XmNsrchHitPrefixFont   DtNsrchHitPrefixFont
-#endif
-#define DtCSrchHitPrefixFont   "SrchHitPrefixFont"
-#ifndef XmCSrchHitPrefixFont
-#define XmCSrchHitPrefixFont   DtCSrchHitPrefixFont
-#endif
-
-
-#ifndef CDE_CONFIGURATION_TOP
-#define CDE_CONFIGURATION_TOP "/etc/dt"
-#endif
-
-#ifndef CDE_INSTALLATION_TOP
-#define CDE_INSTALLATION_TOP "/usr/dt"
-#endif
-
-
-#define DtDEFAULT_SYSTEM_PATH \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H:" \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.sdl:" \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/%L/%H.hv:" \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H:" \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.sdl:" \
-                 CDE_CONFIGURATION_TOP "/appconfig/help/C/%H.hv:" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H:" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.sdl:" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/%L/%H.hv" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H:" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H.sdl:" \
-                 CDE_INSTALLATION_TOP "/appconfig/help/C/%H.hv:"
-
-
-#define DtDEFAULT_USER_PATH_FORMAT \
-               "%s/.dt/help/%s/%%H:" \
-               "%s/.dt/help/%s/%%H.sdl:" \
-               "%s/.dt/help/%s/%%H.hv:" \
-               "%s/.dt/help/%%H:" \
-               "%s/.dt/help/%%H.sdl:" \
-               "%s/.dt/help/%%H.hv"
-
-/* this path expects a sprintf usage as follows:
-    sprintf(buf,DtDEFAULT_USER_PATH_FORMAT,
-                       homedir, dtusersessionname,
-                       homedir, dtusersessionname,
-                       homedir, dtusersessionname,
-                       homedir, homedir, homedir);
-*/
-
-/* #define DtVOLUMES_TYPE "volumes" */
-
-#endif /* _DtHelpP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
-
-
-
diff --git a/cde/lib/DtHelp/HelpQuickD.h b/cde/lib/DtHelp/HelpQuickD.h
deleted file mode 100644 (file)
index e29a4b1..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpQuickD.h /main/3 1995/10/26 12:25:25 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_HelpQuickD_h
-#define _Dt_HelpQuickD_h
-
-#include <Dt/Help.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Quick help dialog-specific Resources */
-
-#ifndef DtNbackLabelString
-#define DtNbackLabelString             "backLabelString"
-#endif
-#ifndef DtNhelpLabelString
-#define DtNhelpLabelString             XmNhelpLabelString
-#endif
-#ifndef DtNmoreLabelString
-#define DtNmoreLabelString             "moreLabelString"
-#endif
-#ifndef DtNcloseLabelString
-#define DtNcloseLabelString            "closeLabelString"
-#endif
-#ifndef DtNprintLabelString
-#define DtNprintLabelString            "printLabelString"
-#endif
-
-#ifndef DtCCallback
-#define DtCCallback                     XmCCallback
-#endif
-
-#ifndef DtCBackLabelString
-#define DtCBackLabelString             "BackLabelString"
-#endif
-#ifndef DtCHelpLabelString
-#define DtCHelpLabelString             XmCHelpLabelString
-#endif
-#ifndef DtCMoreLabelString
-#define DtCMoreLabelString             "MoreLabelString"
-#endif
-#ifndef DtCCloseLabelString
-#define DtCCloseLabelString            "CloseLabelString"
-#endif
-#ifndef DtCPrintLabelString
-#define DtCPrintLabelString            "PrintLabelString"
-#endif
-
-
-/*
- * Types
- */
-
-/* Widget class and instance */
-
-typedef struct _DtHelpQuickDialogWidgetClassRec * DtHelpQuickDialogWidgetClass;
-typedef struct _DtHelpQuickDialogWidgetRec   * DtHelpQuickDialogWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtHelpQuickDialogWidgetClass;
-
-
-/*
- * Functions
- */
-
-/* tmp backwards compat */
-#define DtCreateQuickHelpDialog  DtCreateHelpQuickDialog
-
-extern Widget DtCreateHelpQuickDialog(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern Widget DtHelpQuickDialogGetChild(
-               Widget          widget,
-               unsigned char   child);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_HelpQuickD_h */
diff --git a/cde/lib/DtHelp/HelpQuickDP.h b/cde/lib/DtHelp/HelpQuickDP.h
deleted file mode 100644 (file)
index 0ab2cb3..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   HelpQuickDP.h
- **
- **  Project:  CDE 1.0 Common Desktop Environment
- **
- **  Description:  Privite Header file for HelpQuickD.c 
- **  -----------
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- *******************************************************************
- *************************************<+>*************************************/
-
-#ifndef _DtHelpQuickDP_h
-#define _DtHelpQuickDP_h
-
-#include <Xm/BulletinBP.h>
-
-#include <Dt/HelpQuickD.h>
-
-#include "HelpQuickDI.h"
-#include "HelpDialogP.h"
-
-
-#define DtNO_JUMP_UPDATE          1
-#define DtJUMP_UPDATE             2
-
-
-#define XmDIALOG_SUFFIX            "_popup"
-#define XmDIALOG_SUFFIX_SIZE       6
-
-
-/* Defines for use in allocation geometry matrix. */
-#define TB_MAX_WIDGETS_VERT     7
-#define TB_MAX_NUM_WIDGETS      12
-
-
-
-/* Class Part Structure Definition */
-
-typedef struct
-{
-       XtPointer               extension;      /* Pointer to extension record */
-} DtHelpQuickDialogWidgetClassPart;
-
-
-
-
-/* Full class record declaration */
-
-typedef struct _DtHelpQuickDialogWidgetClassRec
-{
-       CoreClassPart                      core_class;
-       CompositeClassPart                 composite_class;
-       ConstraintClassPart                constraint_class;
-       XmManagerClassPart                 manager_class;
-       XmBulletinBoardClassPart           bulletin_board_class;
-       DtHelpQuickDialogWidgetClassPart  selection_box_class;
-} DtHelpQuickDialogWidgetClassRec;
-
-externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec;
-
-
-/* fields for the Quick Help widget record */
-
-/* reuse the CommonHelpStuff structure from HelpDialogP.h */
-/* reuse the BacktrackStuff structure from HelpDialogP.h */
-/* reuse the PrintStuff structure from HelpDialogP.h */
-
-typedef struct _DtHelpQuickHelpStuff
-{
-        int             pad;
-        Widget          definitionBox;
-        Boolean         minimize_buttons;
-
-        /* Help Dialog Widgets */
-
-        Widget          displayAreaFrame;
-       Widget          separator;
-         
-        Widget         closeButton;            /*  close button  */
-       XmString        closeLabelString;
-        XtCallbackList closeCallback;
-
-        Widget          moreButton;             /* Application button */
-        XmString        moreLabelString;
-
-        Widget          backButton;             /* Backtrack button */
-        XmString        backLabelString;
-     
-       Widget          printButton;            /*  print  button */
-       XmString        printLabelString;
-
-       Widget          helpButton;             /*  help button  */
-       XmString        helpLabelString;
-} _DtHelpQuickHelpStuff;
-
-typedef struct
-{
-       _DtHelpDisplayWidgetStuff       display;
-       _DtHelpCommonHelpStuff  help;
-       _DtHelpQuickHelpStuff   qhelp;
-       _DtHelpBacktrackStuff   backtr;
-       _DtHelpPrintStuff               print;
-} _DtHelpQuickDialogWidgetPart;
-
-
-/****************************************************************
- *
- * Full instance record declaration
- *
- ****************************************************************/
-
-typedef struct _DtHelpQuickDialogWidgetRec
-{
-       CorePart                        core;
-       CompositePart                   composite;
-       ConstraintPart                  constraint;
-       XmManagerPart                   manager;
-       XmBulletinBoardPart             bulletin_board;
-       _DtHelpQuickDialogWidgetPart    qhelp_dialog;
-} DtHelpQuickDialogWidgetRec;
-
-
-
-/********    Private Function Declarations    ********/
-extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate( 
-                        Widget wid,
-                        Widget instigator,
-                        XtWidgetGeometry *desired) ;
-extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest( 
-                        XmGeoMatrix geoSpec) ;
-extern void _DtHelpQuickDialogGetCloseLabelString(
-                        Widget wid,
-                        int resource_offset,
-                        XtArgVal *value );
-extern void _DtHelpQuickDialogGetHelpLabelString(
-                        Widget wid,
-                        int resource_offset,
-                        XtArgVal *value );
-
-/********    End Private Function Declarations    ********/
-
-
-
-#endif /* _DtHelpDialogP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/HelpTermP.h b/cde/lib/DtHelp/HelpTermP.h
deleted file mode 100644 (file)
index cdf6c78..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   FormatTerm.h
- **
- **  Project:  Cache Creek (Rivers) Project:
- **
- **  Description:  Public Header file for FormatTerm.c, the terminal access
- **                functions.
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- *******************************************************************
- *************************************<+>*************************************/
-#ifndef _DtHelpFormatTermP_h
-#define _DtHelpFormatTermP_h
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**************************
- * Link Types and Window
- * Hints should match what
- * is in Canvas.h
- **************************/
-/**************************
- * Link Types
- **************************/
-
-#ifndef        CELinkType_Execute
-#define CELinkType_Execute      3
-#endif
-#ifndef        CELinkType_ManPage
-#define CELinkType_ManPage      4
-#endif
-#ifndef        CELinkType_AppDefine
-#define CELinkType_AppDefine    5
-#endif
-#ifndef        CELinkType_SameVolume
-#define CELinkType_SameVolume   6
-#endif
-#ifndef        CELinkType_CrossLink
-#define CELinkType_CrossLink    7
-#endif
-#ifndef        CELinkType_TextFile
-#define CELinkType_TextFile     8
-#endif
-
-
-/**************************
- * Window Hint Kinds
- **************************/
-
-#ifndef        CEWindowHint_PopupWindow
-#define CEWindowHint_PopupWindow        1
-#endif
-#ifndef        CEWindowHint_CurrentWindow
-#define CEWindowHint_CurrentWindow      2
-#endif
-#ifndef        CEWindowHint_NewWindow
-#define CEWindowHint_NewWindow          3
-#endif
-
-/********    Public Defines Declarations    ********/
-
-/********    Public Structures Declarations    ********/
-
-
-/*****************************************************************************
- * Structure:       DtHelpHyperLines
- *
- * Fields:          title    Indicates the title of the linked topic.
- *                  specification Contains the hypertext link information.
- *                  hyper_type  Specifies the hypertext links type.
- *
- * 
- *****************************************************************************/
-typedef struct {
-       char    *title;
-       char    *specification;
-       int      hyper_type;
-       int      win_hint;
-} DtHelpHyperLines;
-
-
-/********    Public Function Declarations    ********/
-
-/*****************************************************************************
- * Function:         extern void _DtHelpFreeTopicData (
- *                                  char  **helpList,
- *                                  DtHelpHyperLines   *hyperList)
- *
- *
- * Parameters:      helpList    Specifies the parent widget ID.
- *                  hyperList   Specifies the name of the created dialog 
- *
- * Return Value:    void.
- *
- * Purpose:        Free up the info gotten by _DtHelpGetTopicData.
- *
- *****************************************************************************/
-extern void _DtHelpFreeTopicData (
-    char           **helpList,
-    DtHelpHyperLines   *hyperList);
-
-
-
-/*****************************************************************************
- * Function:         extern int _DtHelpGetTopicData(
- *                                      char *helpVolume,
- *                                      char *locationID,
- *                                      int maxColumns,
- *                                      char ***helpList,
- *                                      DtHelpHyperLines  **hyperList);
- *
- * Parameters:      
- *                  
- *
- * Return Value:    int value, -1 implies that the function call failed, a 
- *                  value of 0, implies that the call was successful.
- *
- * Purpose:        Allows developers to extract semi-formatted ASCII data
- *                  from a Cache Creek help file.  
- *
- *****************************************************************************/
-extern int _DtHelpGetTopicData (
-    char *helpVolume,
-    char *locationID,
-    int maxColumns,
-    char ***helpList,
-    DtHelpHyperLines  **hyperList);
-
-
-
-/*****************************************************************************
- * Function:         extern int _DtHelpProcessLinkData(
- *                                   DtHelpHyperLines *hyperLine,
- *                                   char **helpVolume,
- *                                   char **locationId )
- *
- *
- * Parameters:      
- *                  
- *
- * Return Value:    int value, -1 implies that the function call failed, a 
- *                  value of 0, implies that the call was successful.
- *
- * Purpose:        This function is used in conjunction with the
- *                  _DtHelpGetTopicData() function call to provide developers
- *                  with a mechanism in which they can traverse Cache Creek
- *                  hypertext links.  This  call will return the file and 
- *                  locationid information that when used with the 
- *                  DtGetTopicData function will retrrieve the help text
- *                  and new hypertext information associated with the previous
- *                  hypertext link information.
- *
- *****************************************************************************/
-extern int _DtHelpProcessLinkData (
-    char            *ref_volume,
-    DtHelpHyperLines *hyperLine,
-    char **helpVolume,
-    char **locationId);
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-
-#endif /* _DtHelpFormatTermP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
index fd4285a24256c02a7f4199db599202518c8cdbc5..e4daa5604af3987416338de76fa2e4bbd2f68152 100644 (file)
  ****************************************************************************
  ************************************<+>*************************************/
 
-
 #include <sys/param.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
+#if defined(HAVE_CONFIG_H)
+# include <autotools_config.h>
+#endif
+#if defined(HAVE_LOCALE_H)
+# include <locale.h>
+#endif
+
 #define X_INCLUDE_PWD_H
 #define XOS_USE_XT_LOCKING
 #include <X11/Xos_r.h>
diff --git a/cde/lib/DtHelp/HelposI.h b/cde/lib/DtHelp/HelposI.h
deleted file mode 100644 (file)
index bf40588..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: HelposI.h /main/8 1998/07/28 15:38:41 mgreess $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   DtosI.h
- **
- **  Project:  Rivers Project, 
- **
- **  Description:  Internal header file for our Dtos.c module
- **  -----------
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- *******************************************************************
- *************************************<+>*************************************/
-#ifndef _DtosI_h
-#define _DtosI_h
-
-
-#ifndef NO_MESSAGE_CATALOG
-# define _DTGETMESSAGE(set, n, s) _DtHelpGetMessage(set, n, s)
-#else
-# define _DTGETMESSAGE(set, n, s) s
-#endif
-
-
-/*****************************************************************************
- * Function:      Boolean _DtHelpOSGetHomeDirName(
- *
- *
- * Parameters:    Output string, size of output string buffer 
- *
- * Return Value:    String.
- *
- *
- * Description: 
- *
- *****************************************************************************/
-extern void _DtHelpOSGetHomeDirName(
-    String outptr,
-    size_t len);
-
-/*****************************************************************************
- * Function:       _DtHelpGetUserSearchPath(
- *
- *
- * Parameters:
- *
- * Return Value:    String, owned by caller.
- *
- *
- * Description:
- *                  Gets the user search path for use
- *                  when searching for a volume.
- *                  Takes path from the environment,
- *                  or uses the default path.
- *
- *****************************************************************************/
-String _DtHelpGetUserSearchPath(void);
-
-
-/*****************************************************************************
- * Function:       _DtHelpGetSystemSearchPath(
- *
- *
- * Parameters:
- *
- * Return Value:    String, owned by caller.
- *
- *
- * Description:
- *                  Gets the system search path for use
- *                  when searching for a volume.
- *                  Takes path from the environment,
- *                  or uses the default path.
- *
- *****************************************************************************/
-String _DtHelpGetSystemSearchPath(void);
-
-
-
-/*****************************************************************************
- * Function:      Boolean _DtHelpGetMessage(
- *
- *
- * Parameters:     
- *
- * Return Value:   char *
- *
- *
- * Description:    This function will retreive the requested message from the
- *                 cache proper cache creek message catalog file.
- *
- *****************************************************************************/
-extern char *_DtHelpGetMessage(
-        int set,
-        int n,
-        char *s);
-
-
-/*****************************************************************************
- * Function:      char * _DtHelpGetLocale(
- *
- *
- * Parameters:     
- *
- * Return Value:   char *
- *
- *
- * Description:    Returns the value of LC_MESSAGES from the environ.
- *                 If that is NULL, returns the value of LANG form the environ.
- *                 If that is NULL, returns NULL.
- *
- *****************************************************************************/
-extern char *_DtHelpGetLocale(void);
-
-
-#endif /* _DtosI_h */
-/* Do not add anything after this endif. */
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cde/lib/DtHelp/HourGlassI.h b/cde/lib/DtHelp/HourGlassI.h
deleted file mode 100644 (file)
index 72e9645..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HourGlassI.h /main/5 1995/10/26 12:27:38 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:       HourGlassI.h
- **
- **   Project:     Cache Creek
- **
- **   Description: Internal include file for HourGlass Library.
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _hourglassI_h
-#define _hourglassI_h
-
-/* DtHelpGetHourGlassCursor -
- *
- *   Builds and returns the appropriate HourGlass cursor.
- */
-
-extern Cursor DtHelpGetHourGlassCursor( 
-                        Display *dpy) ;
-
-/* DtHelpTurnOnHourGlass -
- *
- *   Gets and displays an hourglass cursor in the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtHelpTurnOnHourGlass( 
-                        Widget w) ;
- /*  Widget widget;
-  *
-  * widget is the toplevel shell of the window you want
-  * the hourglass cursor to appear in.
-  */
-
-
-/* DtHelpTurnOffHourGlass -
- *
- *   Removes the hourglass cursor from the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtHelpTurnOffHourGlass( 
-                        Widget w) ;
-  
- /* Widget widget;
-  *
-  *  widget is the toplevel shell of the window you want
-  *  to remove hourglass cursor from.
-  */
-
-/* DtHelpTurnOnNoEnter -
- *
- *   Removes the hourglass cursor from the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtHelpTurnOnNoEnter( 
-                        Widget w) ;
-
- /* Widget widget;
-  *
-  *  widget is the toplevel shell of the window you want
-  *  to remove hourglass cursor from.
-  */
-
-/* DtHelpTurnOffNoEnter -
- *
- *   Removes the hourglass cursor from the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtHelpTurnOffNoEnter( 
-                        Widget w) ;
-
- /* Widget widget;
-  *
-  *  widget is the toplevel shell of the window you want
-  *  to remove hourglass cursor from.
-  */
-
-
-#endif /* _hourglassI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/JpegUtilsI.h b/cde/lib/DtHelp/JpegUtilsI.h
deleted file mode 100644 (file)
index 4b51dd4..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: JpegUtilsI.h /main/3 1996/10/06 19:37:31 rws $ */
-#ifndef _DtJpegUtilsI_h
-#define _DtJpegUtilsI_h
-
-/* Include files */
-
-#include <X11/Xlib.h>
-#include "GraphicsP.h"
-
-/* Function prototypes */
-
-/* Creates a pixmap from a jpeg stream */
-enum _DtGrLoadStatus jpeg_to_ximage (
-    _DtGrStream           *stream,
-    Screen                *screen,
-    Visual                *visual,
-    Dimension             *in_out_width,
-    Dimension             *in_out_height,
-    XImage                **ximage,
-    XColor                **xcolors,
-    int                    *ncolors,
-    int                    *xres
-);
-
-#endif /* _DtJpegUtilsI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/LinkMgrP.h b/cde/lib/DtHelp/LinkMgrP.h
deleted file mode 100644 (file)
index d4983cf..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: LinkMgrP.h /main/2 1996/05/09 03:43:50 drk $ */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:   LinkMgrP.h
- **
- **  Project:
- **
- **  Description:  Public Header file for the Ling Manager
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- *******************************************************************
- *************************************<+>*************************************/
-#ifndef _DtCvLinkMgrP_h
-#define _DtCvLinkMgrP_h
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Typedef Structures Declarations    ********/
-#if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrI_h)
-typedef        struct _dtCvLinkDb*     _DtCvLinkDb;
-#endif
-
-/********    Public Function Declarations    ********/
-
-extern int             _DtLinkDbAddLink (
-                               _DtCvLinkDb      link_db,
-                               char            *id,
-                               char            *spec,
-                               int              type,
-                               int              hint,
-                               char            *description);
-extern int             _DtLinkDbAddSwitch (
-                               _DtCvLinkDb      link_db,
-                               char            *id,
-                               char            *interp,
-                               char            *cmd,
-                               char            *branches);
-extern _DtCvLinkDb     _DtLinkDbCreate (void);
-extern void            _DtLinkDbDestroy (_DtCvLinkDb link_db);
-extern  void           _DtLinkDbRemoveLink(
-                               _DtCvLinkDb      link_data,
-                               int           link_index);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtCvLinkMgrP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/Makefile.am b/cde/lib/DtHelp/Makefile.am
new file mode 100644 (file)
index 0000000..dc76171
--- /dev/null
@@ -0,0 +1,53 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = il
+
+cfgdir = $(CDE_INSTALLATION_TOP)/config/svc
+dist_cfg_DATA = CDE.lcx
+
+
+lib_LTLIBRARIES = libDtHelp.la
+
+libDtHelp_la_CFLAGS = -I./il -I./jpeg -I../DtSvc/DtUtil2 -DDTLIB \
+                     -DCDE_INSTALLATION_TOP='"${prefix}"' \
+                     -DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"' \
+                     @DT_INCDIR@ @DTI_INCDIR@
+
+libDtHelp_la_LIBADD = $(JPEGLIB) il/libil.la
+
+if SOLARIS
+libDtHelp_la_CFLAGS += -DICONV_INBUF_CONST=const -DLSB_BIT_ORDER
+libDtHelp_la_LIBADD += -lw -lgen -lm -lc
+endif
+
+if LINUX
+libDtHelp_la_CFLAGS += -DLSB_BIT_ORDER
+endif
+
+if BSD
+libDtHelp_la_CFLAGS += -DLSB_BIT_ORDER
+libDtHelp_la_LIBADD += -liconv
+endif
+
+
+libDtHelp_la_SOURCES = Actions.c       AsciiSpc.c      Callbacks.c \
+                      Destroy.c       Environ_c.c     FileListUtils.c \
+                      FileUtils.c     Font.c          Format.c \
+                      FormatMan.c     FormatTerm.c    GifUtils.c \
+                      GlobSearch.c    Graphics.c      HelpAccess.c \
+                      HelpDialog.c    HelpQuickD.c    HelpUtil.c \
+                      Helpos.c        History.c       HourGlass.c \
+                      HyperText.c     JpegUtils.c     Messages.c \
+                      PathArea.c      Print.c         Resize.c \
+                      SetList.c       VolSelect.c     XInterface.c \
+                      XUICreate.c     XbmUtils.c      Access.c     \
+                      AccessCCDF.c    AccessSDL.c     CCDFUtil.c   \
+                      CleanUp.c       FontAttr.c      FormatCCDF.c \
+                      FormatSDL.c     FormatUtil.c    GenUtils.c   \
+                      Obsolete.c      StringFuncs.c   UtilSDL.c    \
+                      bufio.c         decompress.c    HelpXlate.c  \
+                      Canvas.c        CanvasOs.c      CvString.c \
+                      Layout.c        LayoutUtil.c    LinkMgr.c \
+                      Selection.c     VirtFuncs.c
+
+libDtHelp_la_LDFLAGS = -version-info 2:1:0
diff --git a/cde/lib/DtHelp/RegionI.h b/cde/lib/DtHelp/RegionI.h
deleted file mode 100644 (file)
index bde5cc0..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: RegionI.h /main/3 1996/05/09 03:44:34 drk $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        RegionI.h
- **
- **   Project:     Cde Help System
- **
- **   Description: Defines the Region structure.
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef        _DtHelpRegionI_h
-#define        _DtHelpRegionI_h
-
-/********    Public Enum Declarations    ********/
-
-enum   _dtHelpDARegType
-    {
-      _DtHelpDAGraphic,
-      _DtHelpDASpc
-    };
-
-typedef enum _dtHelpDARegType _DtHelpDARegType;
-
-/********    Public Structure Declarations    ********/
-
-typedef        struct _dtHelpDARegion {
-       short                   inited;
-       _DtHelpDARegType        type;
-       _DtCvPointer            handle;
-} _DtHelpDARegion;
-
-typedef        struct _dtHelpDASpcInfo {
-       char                    *name;
-       _DtHelpFontHints         spc_fonts;
-} _DtHelpDASpcInfo;
-
-#endif /* _DtHelpRegionI_h */
diff --git a/cde/lib/DtHelp/SetListI.h b/cde/lib/DtHelp/SetListI.h
deleted file mode 100644 (file)
index 40e1fd5..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SetListI.h /main/6 1995/12/08 13:00:59 cde-hal $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        SetList.h
- **
- **   Project:     TextGraphic Display routines
- **
- **   Description: Header file for SetListTG.h
- **
- **
- **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
- **
- **  (c) Copyright 1993, 1994 Hewlett-Packard Company
- **  (c) Copyright 1993, 1994 International Business Machines Corp.
- **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **  (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _DtHelpSetListI_h
-#define _DtHelpSetListI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern  XtPointer      _DtHelpDisplayAreaData(
-                               XtPointer       client_data);
-extern void            _DtHelpDisplayAreaDimensionsReturn (
-                               XtPointer        client_data,
-                               short           *ret_rows,
-                               short           *ret_columns );
-extern void            _DtHelpDisplayAreaSetList (
-                               XtPointer       client_data,
-                               XtPointer       topicHandle,
-                               Boolean         append_flag,
-                               int             scroll_percent);
-extern  Widget         _DtHelpDisplayAreaWidget(
-                               XtPointer       client_data);
-extern int             _DtHelpGetScrollbarValue (
-                               XtPointer       client_data);
-extern Boolean         _DtHelpSetScrollBars (
-                               XtPointer       client_data,
-                               Dimension       new_width,
-                               Dimension       new_height );
-extern int             _DtHelpUpdatePath (
-                               DtHelpDispAreaStruct        *pDAS,
-                               _DtHelpVolumeHdl             volume_handle,
-                               char                        *loc_id);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtHelpSetListI_h */
diff --git a/cde/lib/DtHelp/XUICreateI.h b/cde/lib/DtHelp/XUICreateI.h
deleted file mode 100644 (file)
index d5bdcf7..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: XUICreateI.h /main/10 1996/03/21 15:38:59 rcs $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        XUICreateI.h
- **
- **   Project:     Cde Help System
- **
- **   Description: Internal file for XUICreate.c
- **
- ****************************************************************************
- ************************************<+>*************************************/
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992,
-                 1993, 1994, 1996 Hewlett-Packard Company.
- * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.
- * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994, 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef        _DtHelpCreateI_h
-#define        _DtHelpCreateI_h
-
-#include "Dt/CanvasP.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*****************************************************************************
- *                 Defines
- *****************************************************************************/
-/*
- * scroll bar flags
- */
-#define _DtHelpNONE         0
-#define _DtHelpSTATIC       1
-#define _DtHelpAS_NEEDED    2
-
-#define        _DtHelpVERTICAL_SCROLLBAR               0
-#define        _DtHelpHORIZONTAL_SCROLLBAR     1
-
-/*
- * scroll bar macros
- */
-#define        _DtHelpSET_AS_NEEDED(x,y)               ((x) | (1 << y))
-#define _DtHelpIS_AS_NEEDED(x, y)              ((x) & (1 << y))
-
-/*****************************************************************************
- *                 Semi-Public Routines
- *****************************************************************************/
-extern void    __DtHelpInitializeFontList (
-                       Display         *dpy,
-                       XFontStruct     *default_font);
-
-/*****************************************************************************
- *                 Public Routines
- *****************************************************************************/
-extern XtPointer       _DtHelpCreateDisplayArea (
-                               Widget  parent,
-                               char   *name,
-                               short   vert_flag,
-                               short   horiz_flag,
-                               Boolean marker_flag,
-                               int     rows,
-                               int     columns,
-                               void    (*hyperTextCB)(),
-                               void    (*resizeCB)(),
-                               int     (*exec_ok_routine)(),
-                               XtPointer client_data,
-                               XmFontList  default_list );
-
-extern XtPointer       _DtHelpCreateOutputArea (
-                               Widget  parent,
-                               char   *name,
-                               short   vert_flag,
-                               short   horiz_flag,
-                               Boolean marker_flag,
-                               _DtCvValue honor_size,
-                               _DtCvRenderType render_type,
-                               Dimension       width,
-                               Dimension       height,
-                               unsigned short media_resolution,
-                               void    (*hyperTextCB)(),
-                               void    (*resizeCB)(),
-                               int     (*exec_ok_routine)(),
-                               XtPointer client_data,
-                               XmFontList  default_list );
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _DtHelpCreateI_h */
diff --git a/cde/lib/DtHelp/XbmUtilsI.h b/cde/lib/DtHelp/XbmUtilsI.h
deleted file mode 100644 (file)
index afb4d08..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: XbmUtilsI.h /main/2 1996/05/09 03:45:01 drk $ */
-#ifndef _DtXbmUtilsI_h
-#define _DtXbmUtilsI_h
-
-/* Include files */
-
-#include <X11/Xlib.h>
-#include "GraphicsP.h"
-
-/* Function prototypes */
-
-/* Reads an XBM stream into a data buffer */
-int _DtGrReadBitmapStreamData (
-    _DtGrStream *fstream,
-    unsigned int *width,                /* RETURNED */
-    unsigned int *height,               /* RETURNED */
-    unsigned char **data,               /* RETURNED */
-    int *x_hot,                         /* RETURNED */
-    int *y_hot                          /* RETURNED */
-);
-
-/* Converts an XBM stream into an X pixmap */ 
-int _DtGrReadBitmapStream (
-    Display *display,
-    Drawable d,
-    _DtGrStream *stream,
-    unsigned int *width,                /* RETURNED */
-    unsigned int *height,               /* RETURNED */
-    Pixmap *pixmap,                     /* RETURNED */
-    int *x_hot,                         /* RETURNED */
-    int *y_hot                          /* RETURNED */
-);
-
-#endif /* _DtXbmUtilsI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtHelp/bufioI.h b/cde/lib/DtHelp/bufioI.h
deleted file mode 100644 (file)
index b0b9db7..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: bufioI.h /main/5 1995/10/26 12:36:33 rswiston $ */
-#ifndef        _DtHelpbufioI_h
-#define        _DtHelpbufioI_h
-
-#include <stdio.h>             /* for FILE */
-
-#ifndef        NULL
-#define        NULL    0
-#endif
-
-#define BUFFILESIZE    4096
-#define BUFFILEEOF     -1
-
-typedef unsigned char BufChar;
-
-typedef struct _buffile {
-    BufChar *bufp;
-    int            left;
-    BufChar buffer[BUFFILESIZE];
-    int            (*io)(/* BufFilePtr f */);
-    int            (*skip)(/* BufFilePtr f, int count */);
-    int            (*close)(/* BufFilePtr f */);
-    char    *hidden;
-} BufFileRec, *BufFilePtr;
-
-typedef        struct _compressInfo{
-    int     fd;
-    int     size;
-} CECompressInfo, *CECompressInfoPtr;
-
-extern BufFilePtr   __DtBufFileCreate ();
-extern BufFilePtr   _DtHelpCeBufFilePushZ ();
-extern BufFilePtr   _DtHelpCeBufFileOpenWr ();
-extern int         _DtHelpCeBufFileFlush ();
-#define BufFileGet(f)  ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f))
-#define BufFilePut(c,f)        (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->io) (c,f))
-#define BufFilePutBack(c,f) { (f)->left++; *(--(f)->bufp) = (c); }
-#define BufFileSkip(f,c)    ((*(f)->skip) (f, c))
-
-#define FileStream(f)   ((FILE *)(f)->hidden)
-
-extern void            _DtHelpCeBufFileClose (
-                               BufFilePtr      f,
-                               int             doClose);
-extern BufFilePtr      _DtHelpCeBufFileCreate (
-                               char            *hidden,
-                               int             (*io)(),
-                               int             (*skip)(),
-                               int             (*close)());
-extern int             _DtHelpCeBufFileRd (
-                               BufFilePtr       f,
-                               char            *buffer,
-                               int              request_size);
-extern BufFilePtr      _DtHelpCeBufFileRdWithFd (
-                               int             fd);
-extern BufFilePtr      _DtHelpCeBufFileRdRawZ (
-                               CECompressInfoPtr  file_info);
-extern BufFilePtr      _DtHelpCeCreatePipeBufFile (
-                               FILE            *stream);
-extern int             _DtHelpCeUncompressFile (
-                               char            *in_file,
-                               char            *out_file);
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#endif /* _DtHelpbufioI_h */
diff --git a/cde/lib/DtHelp/il/Makefile.am b/cde/lib/DtHelp/il/Makefile.am
new file mode 100644 (file)
index 0000000..d26e90f
--- /dev/null
@@ -0,0 +1,20 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libil.la
+
+libil_la_CFLAGS = -I.. -DDTLIB -DCDE_INSTALLATION_TOP='"${prefix}"' \
+                 -DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"' \
+                 @DT_INCDIR@ @DTI_INCDIR@
+
+libil_la_SOURCES = ilX.c                ilbigray.c           ilcodec.c \
+                  ilcontext.c          ilconvert.c          ilcrop.c \
+                  ildata.c             ildecompg3.c         ildecompg4.c \
+                  ildecompjpeg.c       ildecomplzw.c        ildecomppackbits.c \
+                  ildecompress.c       ildither.c           ilformat.c \
+                  ilgraybi.c           ilimage.c            ilinvert.c \
+                  iljpgdecode.c        iljpgdecodejif.c     iljpgdedct.c \
+                  iljpgdehuff.c        iljpgutil.c          ilmap.c \
+                  ilobject.c           ilpalette.c          ilpipe.c \
+                  ilrwimage.c          ilscale.c            ilscalesample.c \
+                  iltiff.c             iltiffread.c         iltruegray.c \
+                  ilupsample.c         ilutiljpeg.c         ilycbcr.c
index 68c8f39bfbb5f882afe2fae55adcff65b317529f..376de0fda437f9ec0d5cc50077e45db3b0d3eee9 100644 (file)
         /*  General internal definitions for Image Library (IL).
         */
 
+/* use autotools detection to determine endianess */
+#if defined(HAVE_CONFIG_H)
+# include <autotools_config.h>
+#endif
+
+#ifndef WORDS_BIGENDIAN
+# define LSB_BIT_ORDER
+#endif
+
 #include <stddef.h>        /* for size_t declaration */
 #ifndef IL_H
 #include "il.h"
diff --git a/cde/lib/DtMrm/Makefile.am b/cde/lib/DtMrm/Makefile.am
new file mode 100644 (file)
index 0000000..aa5dee6
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libDtMrm.la
+
+libDtMrm_la_CFLAGS = -I../DtTerm/Term -I../DtTerm/TermPrim -I../DtHelp \
+                    @DT_INCDIR@ @DTI_INCDIR@
+
+libDtMrm_la_SOURCES = DtMrm.c
+
+libDtMrm_la_LDFLAGS = -version-info 2:1:0
diff --git a/cde/lib/DtMrm/Mrm.h b/cde/lib/DtMrm/Mrm.h
deleted file mode 100644 (file)
index 7789262..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*   $XConsortium: Mrm.h /main/1 1996/04/05 14:41:44 mgreess $ */
-/*                                                                      
- *                  Common Desktop Environment                         
- *                                                                     
- * (c) Copyright 1996 Hewlett-Packard Company                           
- * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
- * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
- * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994, 1995 Novell, Inc.
- * (c) Copyright 1995 Digital Equipment Corp.
- * (c) Copyright 1995 Fujitsu Limited
- * (c) Copyright 1995 Hitachi, Ltd.
- *                                                                 
- *
- *                   RESTRICTED RIGHTS LEGEND                              
- *
- * Use, duplication, or disclosure by the U.S. Government is subject to
- * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
- * Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
- * for non-DOD U.S. Government Departments and Agencies are as set forth in
- * FAR 52.227-19(c)(1,2).
- * 
- * Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
- * International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
- * Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
- * Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
- * Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
- * Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
- * Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
- */
-#ifndef MRM_H
-#define MRM_H
-
-/* DtMrmInit.c */
-extern void DtMrmInitialize(void);
-
-#endif /* MRM_H */
-/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/Makefile.am b/cde/lib/DtPrint/Makefile.am
new file mode 100644 (file)
index 0000000..22adcfb
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libDtPrint.la
+
+libDtPrint_la_CFLAGS = -DMULTIBYTE -DI18N_MSG @DT_INCDIR@
+libDtPrint_la_LDFLAGS = -version-info 2:1:0
+
+if SOLARIS
+libDtPrint_la_CFLAGS += -DNO_REGCOMP
+endif
+
+if HPUX
+libDtPrint_la_CFLAGS += -DMESSAGE_CAT
+endif
+
+libDtPrint_la_SOURCES = PrintMsgs.c PrintDlgMgr.c PrintOptions.c PrintSetupB.c \
+                       PsubDefProc.c PsubUtil.c
diff --git a/cde/lib/DtPrint/Print.h b/cde/lib/DtPrint/Print.h
deleted file mode 100644 (file)
index 4d72b64..0000000
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */
-/*
- * DtPrint/Print.h
- */
-/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
- *     ALL RIGHTS RESERVED
- * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
- * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
- *     HEWLETT-PACKARD COMPANY
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPrint_h
-#define _DtPrint_h
-
-#include <Xm/Xm.h>
-#if 0 && defined(PRINTING_SUPPORTED)
-#include <X11/extensions/Print.h> 
-#endif /* PRINTING_SUPPORTED */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Class record constants 
- */
-externalref WidgetClass dtPrintSetupBoxWidgetClass;
-
-typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass;
-typedef struct _DtPrintSetupBoxRec      * DtPrintSetupBoxWidget;
-
-
-#ifndef DtIsPrintSetupBox
-#define DtIsPrintSetupBox(w)  (XtIsSubclass (w, dtPrintSetupBoxWidgetClass))
-#endif
-
-/*
- * Resource Names
- */
-#define DtNcancelCallback "cancelCallback"
-#define DtNclosePrintDisplayCallback "closePrintDisplayCallback"
-#define DtNcopies "copies"
-#define DtNdescription "description"
-#define DtNdestroyContextCallback "destroyContextCallback"
-#define DtNfileName "fileName"
-#ifndef DtNminimizeButtons
-# define DtNminimizeButtons "minimizeButtons"
-#endif
-#define DtNoptionCount "optionCount"
-#define DtNoptions "options"
-#define DtNprintCallback "printCallback"
-#define DtNprintDestination "printDestination"
-#define DtNprinterInfoProc "printerInfoProc"
-#define DtNprinterName "printerName"
-#define DtNprintSetupMode "printSetupMode"
-#define DtNselectFileProc "selectFileProc"
-#define DtNselectPrinterProc "selectPrinterProc"
-#define DtNsetupCallback "setupCallback"
-#define DtNverifyPrinterProc "verifyPrinterProc"
-#define DtNworkAreaLocation "workAreaLocation"
-
-#define DtCCancelCallback "CancelCallback"
-#define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback"
-#define DtCCopies "Copies"
-#define DtCDescription "Description"
-#define DtCDestroyContextCallback "DestroyContextCallback"
-#define DtCFileName "FileName"
-#ifndef DtCMinimizeButtons
-# define DtCMinimizeButtons "MinimizeButtons"
-#endif
-#define DtCOptionCount "OptionCount"
-#define DtCOptions "Options"
-#define DtCPrintCallback "PrintCallback"
-#define DtCPrintDestination "PrintDestination"
-#define DtCPrinterInfoProc "PrinterInfoProc"
-#define DtCPrinterName "PrinterName"
-#define DtCPrintSetupMode "PrintSetupMode"
-#define DtCSelectFileProc "SelectFileProc"
-#define DtCSelectPrinterProc "SelectPrinterProc"
-#define DtCSetupCallback "SetupCallback"
-#define DtCVerifyPrinterProc "VerifyPrinterProc"
-#define DtCWorkAreaLocation "WorkAreaLocation"
-
-#define DtRPrintSetupProc "PrintSetupProc"
-
-/*
- * DtNsetupMode Resource Values
- */
-enum {
-    DtPRINT_SETUP_PLAIN,
-    DtPRINT_SETUP_XP
-};
-
-/*
- * DtNworkAreaLocation Resource Values
- */
-enum {
-    DtWORK_AREA_NONE,
-    DtWORK_AREA_TOP,
-    DtWORK_AREA_TOP_AND_BOTTOM,
-    DtWORK_AREA_BOTTOM
-};
-
-/*
- * DtNprintDestination Resource Values
- */
-enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE };
-
-/*
- * DtNprinterNameMode Resource Values
- */
-enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME };
-
-/*
- * Mode values for DtPrintSetupBoxResetConnection()
- */
-typedef enum {
-    DtPRINT_CLOSE_CONNECTION,
-    DtPRINT_RELEASE_CONNECTION
-} DtPrintResetConnectionMode;
-
-/*
- * Callback Reasons
- */
-enum {
-    DtPRINT_CR_NONE,
-    DtPRINT_CR_CANCEL,
-    DtPRINT_CR_CLOSE_PRINT_DISPLAY,
-    DtPRINT_CR_PRINT,
-    DtPRINT_CR_SETUP
-};
-
-/*
- * DtPrint proecdure return values
- */
-enum {
-    DtPRINT_SUCCESS,
-    DtPRINT_BAD_PARM,
-    DtPRINT_FAILURE,
-    DtPRINT_INVALID_DISPLAY,
-    DtPRINT_NOT_XP_DISPLAY,
-    DtPRINT_NO_CONNECTION,
-    DtPRINT_NO_DEFAULT,
-    DtPRINT_NO_DEFAULT_DISPLAY,
-    DtPRINT_NO_PRINTER,
-    DtPRINT_PRINTER_MISSING
-};
-
-enum {
-    DtPRINT_HINT_MESSAGES_OK,
-    DtPRINT_HINT_NO_MESSAGES
-};
-
-/*
- * PrintSetupBox Callback Structure Definition
- */
-typedef struct _DtPrintSetupData
-{
-    String printer_name;
-    Display *print_display;
-#ifdef PRINTING_SUPPORT
-    XPContext print_context;
-#endif /* PRINTING_SUPPORTED */
-    XtEnum destination;
-    String dest_info;
-    XtEnum messages_hint;
-} DtPrintSetupData;
-
-typedef struct _DtPrintSetupCallbackStruct
-{
-    int reason;
-    XEvent *event;
-    DtPrintSetupData *print_data;
-} DtPrintSetupCallbackStruct;
-
-/*
- * PrintSetupBox Procedure Resource Type Definition
- */
-typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*);
-
-/*
- * Public Function Declarations
- */
-extern Widget DtCreatePrintSetupBox(
-                                   Widget p,
-                                   String name,
-                                   ArgList args,
-                                   Cardinal n) ;
-extern Widget DtCreatePrintSetupDialog(
-                                      Widget ds_p,
-                                      String name,
-                                      ArgList sb_args,
-                                      Cardinal sb_n) ;
-extern DtPrintSetupData* DtPrintCopySetupData(
-                                             DtPrintSetupData* target,
-                                             const DtPrintSetupData* source);
-extern XtEnum DtPrintFillSetupData(
-                                  Widget psub,
-                                  DtPrintSetupData* print_data);
-extern void DtPrintFreeSetupData(
-                                DtPrintSetupData* target);
-extern XtEnum DtPrintResetConnection(
-                                    Widget psub,
-                                    DtPrintResetConnectionMode m);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPrint_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PrintDlgMgrP.h b/cde/lib/DtPrint/PrintDlgMgrP.h
deleted file mode 100644 (file)
index 1f7eaef..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PrintDlgMgrP.h /main/3 1996/08/12 18:40:55 cde-hp $ */
-/*
- * DtPrint/PrintDlgMgrP.h
- */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _PrintDlgMgrP_h
-#define _PrintDlgMgrP_h
-
-#include <Xm/Xm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern Widget _DtCreatePDMJobSetup(Widget Parent);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPrintDlgMgrP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PrintI.h b/cde/lib/DtPrint/PrintI.h
deleted file mode 100644 (file)
index 3b66fac..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PrintI.h /main/1 1996/10/31 11:19:07 drk $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPrintI_h
-#define _DtPrintI_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Conditionally defined macros for thread safe DtPrint ******/
-#ifdef XTHREADS
-
-#define _DtPrintWidgetToAppContext(w) \
-        XtAppContext app = XtWidgetToApplicationContext(w)
-
-#define _DtPrintDisplayToAppContext(d) \
-        XtAppContext app = XtDisplayToApplicationContext(d)
-
-#define _DtPrintAppLock(app)           XtAppLock(app)
-#define _DtPrintAppUnlock(app)         XtAppUnlock(app)
-#define _DtPrintProcessLock()          XtProcessLock()
-#define _DtPrintProcessUnlock()                XtProcessUnlock()
-
-#else /* XTHREADS */
-
-#define _DtPrintWidgetToAppContext(w)
-#define _DtPrintDisplayToAppContext(d)
-#define _DtPrintAppLock(app)
-#define _DtPrintAppUnlock(app)
-#define _DtPrintProcessLock()
-#define _DtPrintProcessUnlock()
-
-#endif /* XTHREADS */
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPrintI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PrintMsgsP.h b/cde/lib/DtPrint/PrintMsgsP.h
deleted file mode 100644 (file)
index c4ae5ff..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PrintMsgsP.h /main/9 1996/08/19 17:12:12 cde-hp $ */
-/*
- * DtPrint/PrintMsgsP.h
- */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPrintMsgsP_h
-#define _DtPrintMsgsP_h
-
-#ifdef I18N_MSG
-#include <nl_types.h>
-#define DTPRINT_GETMESSAGE(set, number, string) \
-    _DtPrintGetMessage(set, number, string)
-
-#else /* I18N_MSG */
-#define DTPRINT_GETMESSAGE(set, number, string) string
-#endif /* I18N_MSG */
-
-/*** const causes the HP compiler to complain.  Remove reference until   ***
- *** the build and integration people can figure out how to get this to  ***
- *** work.                                                               ***/
-
-/* #define CONST       const */
-#define CONST
-
-
-/* 
- * extern declarations for PrintSetupBox widget messages
- */
-extern CONST char _DtPrMsgPrintSetupBox_0000[];
-extern CONST char _DtPrMsgPrintSetupBox_0001[];
-extern CONST char _DtPrMsgPrintSetupBox_0002[];
-extern CONST char _DtPrMsgPrintSetupBox_0003[];
-extern CONST char _DtPrMsgPrintSetupBox_0004[];
-extern CONST char _DtPrMsgPrintSetupBox_0005[];
-extern CONST char _DtPrMsgPrintSetupBox_0006[];
-extern CONST char _DtPrMsgPrintSetupBox_0007[];
-extern CONST char _DtPrMsgPrintSetupBox_0008[];
-extern CONST char _DtPrMsgPrintSetupBox_0009[];
-extern CONST char _DtPrMsgPrintSetupBox_0010[];
-extern CONST char _DtPrMsgPrintSetupBox_0011[];
-extern CONST char _DtPrMsgPrintSetupBox_0012[];
-extern CONST char _DtPrMsgPrintSetupBox_0013[];
-extern CONST char _DtPrMsgPrintSetupBox_0014[];
-extern CONST char _DtPrMsgPrintSetupBox_0015[];
-extern CONST char _DtPrMsgPrintSetupBox_0016[];
-extern CONST char _DtPrMsgPrintSetupBox_0017[];
-extern CONST char _DtPrMsgPrintSetupBox_0018[];
-extern CONST char _DtPrMsgPrintSetupBox_0019[];
-extern CONST char _DtPrMsgPrintSetupBox_0020[];
-extern CONST char _DtPrMsgPrintSetupBox_0021[];
-extern CONST char _DtPrMsgPrintSetupBox_0022[];
-extern CONST char _DtPrMsgPrintSetupBox_0023[];
-extern CONST char _DtPrMsgPrintSetupBox_0024[];
-extern CONST char _DtPrMsgPrintSetupBox_0025[];
-extern CONST char _DtPrMsgPrintSetupBox_0026[];
-extern CONST char _DtPrMsgPrintSetupBox_0027[];
-extern CONST char _DtPrMsgPrintSetupBox_0028[];
-extern CONST char _DtPrMsgPrintSetupBox_0029[];
-extern CONST char _DtPrMsgPrintSetupBox_0030[];
-extern CONST char _DtPrMsgPrintSetupBox_0031[];
-extern CONST char _DtPrMsgPrintSetupBox_0032[];
-extern CONST char _DtPrMsgPrintSetupBox_0033[];
-extern CONST char _DtPrMsgPrintSetupBox_0034[];
-extern CONST char _DtPrMsgPrintSetupBox_0035[];
-extern CONST char _DtPrMsgPrintSetupBox_0036[];
-
-/* 
- * Message set for PrintSetupBox widget
- */
-#define        MS_PrintSetupBox                1
-
-/* Message IDs for PrintSetupBox */
-#define PSUB_WARN_WA_LOCATION          1
-#define PSUB_SELECT_PRINTER            2
-#define PSUB_PRINT_TO_FILE             3
-#define PSUB_SELECT_FILE               4
-#define PSUB_CANCEL                    5
-#define PSUB_COPIES                    6
-#define PSUB_HELP                      7
-#define PSUB_PRINT                     8
-#define PSUB_PRINTER_NAME              9
-#define PSUB_SETUP                     10
-#define PSUB_DESCRIPTION               11
-#define PSUB_WARN_COPY_COUNT           12
-#define PSUB_WARN_SETUP_MODE           13
-#define PSUB_WARN_SETUP_MODE_CHANGE    14
-#define PSUB_PRINTER_INFO              15
-#define PSUB_INVALID_PRINTER_TITLE     16
-#define PSUB_INVALID_PRINTER_MESSAGE   17
-#define PSUB_INVALID_DISPLAY_MESSAGE   18
-#define PSUB_NOT_XP_DISPLAY_MESSAGE    19
-#define PSUB_NO_DEFAULT_MESSAGE                20
-#define PSUB_NO_DEFAULT_DISPLAY_MESSAGE        21
-#define PSUB_PRINTER_MISSING_MESSAGE   22
-#define PSUB_WARN_PRINT_DESTINATION    23
-#define PSUB_WARN_CT_CONVERSION                24
-#define PSUB_WARN_CONVERSION_ARGS      25
-#define PSUB_PRLIST_ERROR_TITLE                26
-#define PSUB_NO_PRINTERS_MESSAGE       27
-#define PSUB_DESC_UNAVAILABLE          28
-#define PSUB_SELECT_FILE_TITLE         29
-#define PSUB_PRINTER_INFO_TITLE                30
-#define PSUB_FORMAT_LABEL              31
-#define PSUB_MODEL_LABEL               32
-#define PSUB_PRINTER_LIST_LABEL                33
-#define PSUB_MORE_PRINTERS_TITLE       34
-#define PSUB_PRINT_TO_PRINTER          35
-#define PSUB_FILE_NAME                  36
-#define PSUB_HELP_DLG_TITLE             37
-
-/* 
- * extern declarations for _DtPrint frame widgets
- */
-extern CONST char _DtPrMsgPrintOption_0000[];
-extern CONST char _DtPrMsgPrintOption_0001[];
-extern CONST char _DtPrMsgPrintOption_0002[];
-extern CONST char _DtPrMsgPrintOption_0003[];
-extern CONST char _DtPrMsgPrintOption_0004[];
-extern CONST char _DtPrMsgPrintOption_0005[];
-extern CONST char _DtPrMsgPrintOption_0006[];
-extern CONST char _DtPrMsgPrintOption_0007[];
-extern CONST char _DtPrMsgPrintOption_0008[];
-extern CONST char _DtPrMsgPrintOption_0009[];
-/*
- * Message set for _DtPrint frame widgets
- */
-#define MS_PrintOptionsSet      2
-/*
- * Message IDs for _DtPrint frame widgets
- */
-#define DTPO_MARGINS            1
-#define DTPO_TOP                2
-#define DTPO_RIGHT              3
-#define DTPO_BOTTOM             4
-#define DTPO_LEFT               5
-#define DTPO_HEADERS_N_FOOTERS  6
-#define DTPO_TOP_LEFT           7
-#define DTPO_TOP_RIGHT          8
-#define DTPO_BOTTOM_LEFT        9
-#define DTPO_BOTTOM_RIGHT       10
-/* 
- * extern declarations for PrintDlgMgr module
- */
-extern CONST char _DtPrMsgPrintDlgMgr_0000[];
-extern CONST char _DtPrMsgPrintDlgMgr_0001[];
-extern CONST char _DtPrMsgPrintDlgMgr_0002[];
-/*
- * Message set for PrintDlgMgr module
- */
-#define MS_PrintDlgMgrSet      3
-/*
- * Message IDs for PrintDlgMgr module
- */
-#define DTPDM_SEND_MAIL_LABEL     1
-#define DTPDM_BANNER_LABEL        2
-#define DTPDM_SPOOL_OPTS_LABEL    3
-
-#ifdef I18N_MSG
-extern char * _DtPrintGetMessage(
-                                int set,
-                                int n,
-                                char * s);
-
-#endif /* I18N_MSG */
-
-#endif /* _DtPrintMsgsP_h */
diff --git a/cde/lib/DtPrint/PrintOptionsP.h b/cde/lib/DtPrint/PrintOptionsP.h
deleted file mode 100644 (file)
index 6a17226..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */
-
-#ifndef _DT_PRINT_OPTIONSP_H
-#define _DT_PRINT_OPTIONSP_H
-
-/*
- *+SNOTICE
- *
- *     $:$
- *
- *     RESTRICTED CONFIDENTIAL INFORMATION:
- *     
- *     The information in this document is subject to special
- *     restrictions in a confidential disclosure agreement between
- *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
- *     document outside HP, IBM, Sun, USL, SCO, or Univel without
- *     Sun's specific written approval.  This document and all copies
- *     and derivative works thereof must be returned or destroyed at
- *     Sun's request.
- *
- *     Copyright 1994 Sun Microsystems, Inc.  All rights reserved.
- *
- *+ENOTICE
- */
-/*
-                                                                   
-                    Common Desktop Environment
-
-   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
-   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
-   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
-   (c) Copyright 1993, 1994, 1995 Novell, Inc.
-   (c) Copyright 1995 Digital Equipment Corp.
-   (c) Copyright 1995 Fujitsu Limited
-   (c) Copyright 1995 Hitachi, Ltd.
-                                                                   
-
-                     RESTRICTED RIGHTS LEGEND                              
-
-Use, duplication, or disclosure by the U.S. Government is subject to
-restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
-Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
-for non-DOD U.S. Government Departments and Agencies are as set forth in
-FAR 52.227-19(c)(1,2).
-
-Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
-International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
-Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
-Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
-Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A.
-Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
-Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Message Catalog Lookup
- */
-#define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000)
-#define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001)
-#define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002)
-#define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003)
-#define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004)
-
-#define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005)
-#define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006)
-#define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007)
-#define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008)
-#define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009)
-    
-
-/*
- * Header/Footer Frame API
- */
-typedef enum {
-    DTPRINT_OPTION_HEADER_LEFT,
-    DTPRINT_OPTION_HEADER_RIGHT,
-    DTPRINT_OPTION_FOOTER_LEFT,
-    DTPRINT_OPTION_FOOTER_RIGHT
-} _DtPrintHdrFtrEnum;
-
-extern Widget _DtPrintCreateHdrFtrFrame(
-       Widget                  parent,
-       int                     nspecs,
-       char                    **spec_strings,
-       void                    **spec_data
-       );
-
-extern Widget _DtPrintHdrFtrFrameEnumToWidget(
-       Widget                  frame,
-       _DtPrintHdrFtrEnum      which
-       );
-
-extern void _DtPrintHdrFtrFrameMenuWidgets(
-       Widget                  frame,
-       Widget                  *menu,
-       int                     *nmenu_buttons,
-       Widget                  **menu_buttons
-       );
-
-extern void *_DtPrintGetHdrFtrData(
-       Widget                  widget
-       );
-
-extern int _DtPrintGetHdrFtrIndex(
-       Widget                  widget
-       );
-
-extern char *_DtPrintGetHdrFtrString(
-       Widget                  widget
-       );
-
-extern void _DtPrintSetHdrFtrByData(
-       Widget                  widget,
-       void                    *data
-       );
-
-extern void _DtPrintSetHdrFtrByIndex(
-       Widget                  widget,
-       int                     index
-       );
-
-extern void _DtPrintSetHdrFtrByString(
-       Widget                  widget,
-       char                    *string
-       );
-
-
-/*
- * Margin Frame API
- */
-typedef enum {
-    DTPRINT_OPTION_MARGIN_TOP,
-    DTPRINT_OPTION_MARGIN_RIGHT,
-    DTPRINT_OPTION_MARGIN_BOTTOM,
-    DTPRINT_OPTION_MARGIN_LEFT
-} _DtPrintMarginEnum;
-
-extern Widget _DtPrintCreateMarginFrame(
-       Widget                  parent
-       );
-
-extern Widget _DtPrintMarginFrameEnumToWidget(
-       Widget                  frame,
-       _DtPrintMarginEnum      which
-       );
-
-extern char* _DtPrintGetMarginSpec(
-       Widget                  margin
-       );
-
-extern void _DtPrintSetMarginSpec(
-       Widget                  margin,
-       char                    *spec
-       );
-
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DT_PRINT_OPTIONSP_H */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PrintSetupBP.h b/cde/lib/DtPrint/PrintSetupBP.h
deleted file mode 100644 (file)
index b6ff530..0000000
+++ /dev/null
@@ -1,536 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PrintSetupBP.h /main/16 1996/11/01 15:00:02 cde-hp $ */
-/*
- * DtPrint/PrintSetupBP.h
- */
-/* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
- *     ALL RIGHTS RESERVED
- * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
- * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
- *     HEWLETT-PACKARD COMPANY
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPrintSetupBP_h
-#define _DtPrintSetupBP_h
-
-#include <Xm/BulletinBP.h>
-#include <Dt/Print.h>
-#include <Dt/PrintMsgsP.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * ------------------------------------------------------------------------
- * Constant Definitions
- *
- */
-/*
- * Message Catalog Lookup
- */
-#define WARN_WORK_AREA_LOCATION DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_WA_LOCATION, _DtPrMsgPrintSetupBox_0000)
-#define SELECT_PRINTER_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_SELECT_PRINTER, _DtPrMsgPrintSetupBox_0001)
-#define PRINT_TO_FILE_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINT_TO_FILE, _DtPrMsgPrintSetupBox_0002)
-#define SELECT_FILE_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_SELECT_FILE, _DtPrMsgPrintSetupBox_0003)
-#define CANCEL_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_CANCEL, _DtPrMsgPrintSetupBox_0004)
-#define COPIES_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_COPIES, _DtPrMsgPrintSetupBox_0005)
-#define HELP_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_HELP, _DtPrMsgPrintSetupBox_0006)
-#define PRINT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINT, _DtPrMsgPrintSetupBox_0007)
-#define PRINTER_NAME_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINTER_NAME, _DtPrMsgPrintSetupBox_0008)
-#define SETUP_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_SETUP, _DtPrMsgPrintSetupBox_0009)
-#define DESCRIPTION_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_DESCRIPTION, _DtPrMsgPrintSetupBox_0010)
-#define WARN_COPY_COUNT DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_COPY_COUNT, _DtPrMsgPrintSetupBox_0011)
-#define WARN_SETUP_MODE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_SETUP_MODE, _DtPrMsgPrintSetupBox_0012)
-#define WARN_SETUP_MODE_CHANGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_SETUP_MODE_CHANGE, _DtPrMsgPrintSetupBox_0013)
-#define PRINTER_INFO_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINTER_INFO, _DtPrMsgPrintSetupBox_0014)
-#define INVALID_PRINTER_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_INVALID_PRINTER_TITLE, _DtPrMsgPrintSetupBox_0015)
-#define INVALID_PRINTER_MESSAGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_INVALID_PRINTER_MESSAGE, _DtPrMsgPrintSetupBox_0016)
-#define INVALID_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_INVALID_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0017)
-#define NOT_XP_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_NOT_XP_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0018)
-#define NO_DEFAULT_MESSAGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_NO_DEFAULT_MESSAGE, _DtPrMsgPrintSetupBox_0019)
-#define NO_DEFAULT_DISPLAY_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
-    PSUB_NO_DEFAULT_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0020)
-#define PRINTER_MISSING_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
-    PSUB_PRINTER_MISSING_MESSAGE, _DtPrMsgPrintSetupBox_0021)
-#define WARN_PRINT_DESTINATION DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_PRINT_DESTINATION, _DtPrMsgPrintSetupBox_0022)
-#define WARN_CT_CONVERSION DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_CT_CONVERSION, _DtPrMsgPrintSetupBox_0023)
-#define WARN_CONVERSION_ARGS DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_WARN_CONVERSION_ARGS, _DtPrMsgPrintSetupBox_0024)
-#define PRLIST_ERROR_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRLIST_ERROR_TITLE, _DtPrMsgPrintSetupBox_0025)
-#define NO_PRINTERS_MESSAGE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_NO_PRINTERS_MESSAGE, _DtPrMsgPrintSetupBox_0026)
-#define DESC_UNAVAILABLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_DESC_UNAVAILABLE, _DtPrMsgPrintSetupBox_0027)
-#define SELECT_FILE_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_SELECT_FILE_TITLE, _DtPrMsgPrintSetupBox_0028)
-#define PRINTER_INFO_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINTER_INFO_TITLE, _DtPrMsgPrintSetupBox_0029)
-#define FORMAT_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_FORMAT_LABEL, _DtPrMsgPrintSetupBox_0030)
-#define MODEL_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_MODEL_LABEL, _DtPrMsgPrintSetupBox_0031)
-#define PRINTER_LIST_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINTER_LIST_LABEL, _DtPrMsgPrintSetupBox_0032)
-#define MORE_PRINTERS_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_MORE_PRINTERS_TITLE, _DtPrMsgPrintSetupBox_0033)
-#define PRINT_TO_PRINTER_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_PRINT_TO_PRINTER, _DtPrMsgPrintSetupBox_0034)
-#define FILE_NAME_LABEL DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_FILE_NAME, _DtPrMsgPrintSetupBox_0035)
-#define HELP_DLG_TITLE DTPRINT_GETMESSAGE( \
-    MS_PrintSetupBox, PSUB_HELP_DLG_TITLE, _DtPrMsgPrintSetupBox_0036)
-#
-/*
- * Constants for Use in Allocation Geometry Matrix. 
- */
-#define DtPSUB_MAX_WIDGETS_VERT        12
-
-/*
- * ------------------------------------------------------------------------
- * Type Definitions
- *
- */
-/*
- * data private to default resource procedures
- */
-typedef struct
-{
-    String printer_name_ct;
-    String printer_name;
-    String description;
-} DtPrintSelectPrinterRec, *DtPrintSelectPrinterList;
-    
-typedef struct _DtPrintDefaultProcData
-{
-    /*
-     * common data
-     */
-    Widget error_message_box;
-    XtEnum messages_hint;
-    Widget help_dialog;
-    /*
-     * select file proc
-     */
-    Widget file_selection_box;
-    /*
-     * select printer proc
-     */
-    Widget printer_selection_box;
-    Widget printer_list_box;
-    String* xp_server_list;
-    int xp_server_count;
-    DtPrintSelectPrinterList* printer_lists;
-    int* printer_counts;
-    int selected_printer;
-    Display* select_printer_info_display;
-#if 0 && defined(PRINTING_SUPPORTED)
-    XPContext select_printer_info_context;
-#endif /* PRINTING_SUPPORT */
-    /*
-     * printer info proc
-     */
-    Widget printer_info_box;
-
-} DtPrintDefaultProcData;
-
-/*
- * verify state
- */
-typedef enum {
-    DtPRINT_VERIFIED,
-    DtPRINT_IN_VERIFY,
-    DtPRINT_NOT_VERIFIED
-} DtPrintVerifyState;
-
-/*
- * Constraint part record for PrintSetupBox widget 
- */
-typedef struct _DtPrintSetupBoxConstraintPart
-{
-   char unused;
-} DtPrintSetupBoxConstraintPart, * DtPrintSetupBoxConstraint;
-/*
- * New fields for the PrintSetupBox widget class record  
- */
-typedef struct
-{
-    XtCallbackProc     list_callback ;
-    XtPointer          extension;      /* Pointer to extension record */
-} DtPrintSetupBoxClassPart;
-/*
- * Full class record declaration 
- */
-typedef struct _DtPrintSetupBoxClassRec
-{
-    CoreClassPart              core_class;
-    CompositeClassPart         composite_class;
-    ConstraintClassPart                constraint_class;
-    XmManagerClassPart         manager_class;
-    XmBulletinBoardClassPart   bulletin_board_class;
-    DtPrintSetupBoxClassPart   print_setup_box_class;
-} DtPrintSetupBoxClassRec;
-
-externalref DtPrintSetupBoxClassRec dtPrintSetupBoxClassRec;
-
-/*
- * New fields for the PrintSetupBox widget record 
- */
-typedef struct
-{
-    /*
-     * synthetic resources
-     */
-    String file_name;
-    String printer_name;
-    XmString description_string;
-    int copies;
-    /*
-     * flag resources
-     */
-    Boolean minimize_buttons;
-    XtEnum print_destination;
-    XtEnum print_setup_mode;
-    XtEnum work_area_location;
-    /*
-     * procedure resources
-     */
-    DtPrintSetupProc printer_info_proc;
-    DtPrintSetupProc select_file_proc;
-    DtPrintSetupProc select_printer_proc;
-    DtPrintSetupProc verify_printer_proc;
-    /*
-     * callback resources
-     */
-    XtCallbackList cancel_callback;
-    XtCallbackList close_display_callback;
-    XtCallbackList print_callback;
-    XtCallbackList setup_callback;
-    /*
-     * other resources
-     */
-    XrmOptionDescList options;
-    Cardinal option_count;
-    /*
-     * Xp standard resources
-     */
-    XtEnum xp_printer_name_mode;
-    /*
-     * internal flags
-     */
-    Boolean adding_sel_widgets;
-    DtPrintVerifyState verify_printer_state;
-    Boolean copy_count_supported;
-    /*
-     * internal data
-     */
-    String modal_printer_spec;
-    Display* print_display;
-#if 0 && defined(PRINTING_SUPPORTED)
-    XPContext print_context;
-#endif /* PRINTING_SUPPORTED */
-    XtIntervalId timeout_id;
-    /*
-     * descendents
-     */
-    Widget bottom_separator;
-    Widget bottom_work_area;
-    Widget button_separator;
-    Widget copies_control;
-    Widget copies_spin_box;
-    Widget description;
-    Widget description_label;
-    Widget destination_radio_box;
-    Widget file_name_label;
-    Widget file_name_text;
-    Widget help_button;
-    Widget print_button;
-    Widget printer_info_button;
-    Widget printer_name_label;
-    Widget printer_name_text;
-    Widget printer_name_combo;
-    Widget select_file_button;
-    Widget select_printer_button;
-    Widget setup_button;
-    Widget top_separator;
-    Widget top_work_area;
-    /*
-     * data private to the default resource procedures
-     */
-    DtPrintDefaultProcData default_proc_data;
-
-} DtPrintSetupBoxPart;
-
-/*
- * Full instance record declaration
- */
-typedef struct _DtPrintSetupBoxRec
-{
-       CorePart                core;
-       CompositePart           composite;
-       ConstraintPart          constraint;
-       XmManagerPart           manager;
-       XmBulletinBoardPart     bulletin_board;
-       DtPrintSetupBoxPart     print_setup_box;
-} DtPrintSetupBoxRec;
-
-/*
- * ------------------------------------------------------------------------
- * Macro Definitions
- *
- */
-/*
- * Instance Record Access
- */
-#define PSUB_AddingSelWidgets(w) \
-    (((DtPrintSetupBoxWidget) w)->print_setup_box.adding_sel_widgets)
-#define PSUB_AutoUnmanage(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.auto_unmanage)
-#define PSUB_BottomSeparator(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_separator)
-#define PSUB_BottomWorkArea(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_work_area)
-#define PSUB_ButtonSeparator(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.button_separator)
-#define PSUB_ButtonFontList(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.button_font_list)
-#define PSUB_CancelButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.cancel_button)
-#define PSUB_CancelCallback(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.cancel_callback)
-#define PSUB_CloseDisplayCallback(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.close_display_callback)
-#if 0 && defined(PRINTING_SUPPORTED)
-#define PSUB_Context(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_context)
-#endif /* PRINTING_SUPPORTED */
-#define PSUB_Copies(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies)
-#define PSUB_CopiesControl(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_control)
-#define PSUB_CopiesSpinBox(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_spin_box)
-#define PSUB_CopyCountSupported(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.copy_count_supported)
-#define PSUB_DefaultButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.default_button)
-#define PSUB_DefaultProcData(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.default_proc_data)
-#define PSUB_Description(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description)
-#define PSUB_DescriptionLabel(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_label)
-#define PSUB_DescriptionString(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.description_string)
-#define PSUB_DestinationRadioBox(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.destination_radio_box)
-#define PSUB_Display(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_display)
-#define PSUB_FileName(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name)
-#define PSUB_FileNameLabel(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_label)
-#define PSUB_FileNameText(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_text)
-#define PSUB_HelpButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.help_button)
-#define PSUB_LabelFontList(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.label_font_list)
-#define PSUB_MarginHeight(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_height)
-#define PSUB_MarginWidth(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_width)
-#define PSUB_MinimizeButtons(w) \
-    (((DtPrintSetupBoxWidget) w)->print_setup_box.minimize_buttons)
-#define PSUB_ModalPrinterSpec(w) \
-    (((DtPrintSetupBoxWidget) w)->print_setup_box.modal_printer_spec)
-#define PSUB_MustMatch(w) \
-    (((DtPrintSetupBoxWidget) w)->print_setup_box.must_match)
-#define PSUB_OptionCount(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.option_count)
-#define PSUB_Options(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.options)
-#define PSUB_PrintButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_button)
-#define PSUB_PrintCallback(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_callback)
-#define PSUB_PrintDestination(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_destination)
-#define PSUB_PrinterInfoButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_button)
-#define PSUB_PrinterInfoProc(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_proc)
-#define PSUB_PrinterName(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name)
-#define PSUB_PrinterNameText(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_text)
-#define PSUB_PrinterNameCombo(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_combo)
-#define PSUB_PrinterNameLabel(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_label)
-#define PSUB_PrintSetupMode(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.print_setup_mode)
-#define PSUB_SelectFileButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_button)
-#define PSUB_SelectFileProc(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_proc)
-#define PSUB_SelectPrinterButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_button)
-#define PSUB_SelectPrinterProc(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_proc)
-#define PSUB_SetupButton(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_button)
-#define PSUB_SetupCallback(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_callback)
-#define PSUB_Shell(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.shell)
-#define PSUB_StringDirection(w) \
-    (((DtPrintSetupBoxWidget)(w))->manager.string_direction)
-#define PSUB_Text(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.text)
-#define PSUB_TextColumns(w) \
-    (((DtPrintSetupBoxWidget) w)->print_setup_box.text_columns)
-#define PSUB_TextFontList(w) \
-    (((DtPrintSetupBoxWidget) (w))->bulletin_board.text_font_list)
-#define PSUB_TimeoutId(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.timeout_id)
-#define PSUB_TopSeparator(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_separator)
-#define PSUB_TopWorkArea(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.top_work_area)
-#define PSUB_VerifyPrinterProc(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_proc)
-#define PSUB_VerifyPrinterState(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_state)
-#define PSUB_WorkAreaLocation(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.work_area_location)
-#define PSUB_XpPrinterNameMode(w) \
-    (((DtPrintSetupBoxWidget) (w))->print_setup_box.xp_printer_name_mode)
-
-/*
- * ------------------------------------------------------------------------
- * Private Function Declarations
- *
- */
-/*
- * Child Widget Creation Functions
- */
-extern void _DtPrintSetupBoxCreateButtonSeparator(
-                                                 DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateBottomSeparator(
-                                                 DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateCancelButton(
-                                              DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateCopiesControl(
-                                               DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateDescription(
-                                             DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateDescriptionLabel(
-                                                  DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateDestinationRadioBox(
-                                                     DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateFileNameLabel(
-                                              DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateFileNameText(
-                                              DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateHelpButton(
-                                            DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreatePrintButton(
-                                             DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreatePrinterInfoButton(
-                                                   DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreatePrinterNameLabel(
-                                                  DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreatePrinterNameCombo(
-                                                  DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateSelectFileButton(
-                                                  DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateSelectPrinterButton(
-                                                     DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateSetupButton(
-                                             DtPrintSetupBoxWidget psub);
-extern void _DtPrintSetupBoxCreateTopSeparator(
-                                              DtPrintSetupBoxWidget psub);
-/*
- * Synthetic resource internal->external conversion functions
- */
-extern void _DtPrintSetupBoxGetCopies(
-                                     Widget wid,
-                                     int resource_offset,
-                                     XtArgVal *value);
-extern void _DtPrintSetupBoxGetDescription(
-                                          Widget wid,
-                                          int resource_offset,
-                                          XtArgVal *value);
-extern void _DtPrintSetupBoxGetFileName(
-                                       Widget wid,
-                                       int resource_offset,
-                                       XtArgVal *value);
-extern void _DtPrintSetupBoxGetPrinterName(
-                                          Widget wid,
-                                          int resource_offset,
-                                          XtArgVal *value);
-/*
- * Geometry Management
- */
-extern XmGeoMatrix _DtPrintSetupBoxGeoMatrixCreate(
-                                                  Widget wid,
-                                                  Widget instigator,
-                                                  XtWidgetGeometry *desired);
-extern Boolean _DtPrintSetupBoxNoGeoRequest(
-                                           XmGeoMatrix geoSpec);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPrintSetupBP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PsubDefProcI.h b/cde/lib/DtPrint/PsubDefProcI.h
deleted file mode 100644 (file)
index 22248ad..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PsubDefProcI.h /main/10 1996/11/01 15:00:46 cde-hp $ */
-/*
- * DtPrint/PsubDefProcI.h
- */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPsubDefProcI_h
-#define _DtPsubDefProcI_h
-
-#include <Dt/Print.h>
-#include <Dt/PrintMsgsP.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * ------------------------------------------------------------------------
- * Private Function Declarations
- *
- */
-extern void _DtPrintDefProcInitialize(Widget w);
-extern void _DtPrintDefProcManageErrorBox(DtPrintDefaultProcData* dpd);
-
-/*
- * Procedure Resource Defaults
- */
-extern XtEnum _DtPrintSetupBoxXPrinterInfoProc(
-                                              Widget w,
-                                              DtPrintSetupData* print_data);
-extern XtEnum _DtPrintSetupBoxSelectFileProc(
-                                            Widget w,
-                                            DtPrintSetupData* print_data);
-extern XtEnum _DtPrintSetupBoxSelectXPrinterProc(
-                                                Widget w,
-                                                DtPrintSetupData* print_data);
-extern XtEnum _DtPrintSetupBoxVerifyXPrinterProc(
-                                                Widget w,
-                                                DtPrintSetupData* print_data);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPsubDefProcI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/PsubUtilI.h b/cde/lib/DtPrint/PsubUtilI.h
deleted file mode 100644 (file)
index 05a16e9..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
-/*
- * DtPrint/PsubUtilI.h
- */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-#ifndef _DtPsubUtilI_h
-#define _DtPsubUtilI_h
-
-#include <Dt/Print.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * ------------------------------------------------------------------------
- * Type Definitions
- *
- */
-typedef enum {
-    DtPRINT_DEC_NET,
-    DtPRINT_TCP_IPC,
-    DtPRINT_NET_UNSPECIFIED
-} DtPrintSpecNet;
-
-/*
- * ------------------------------------------------------------------------
- * Private Function Declarations
- *
- */
-String _DtPrintCreateXPrinterSpecifier(
-                                      String printer_name,
-                                      String host_name,
-                                      DtPrintSpecNet spec_net,
-                                      int display_num,
-                                      int screen_num);
-void _DtPrintFreeStringList(
-                           String* string_list);
-String _DtPrintGetDefaultXPrinterName(
-                                     Widget w);
-String* _DtPrintGetXpPrinterList(
-                                Widget w);
-String* _DtPrintGetXpServerList(
-                               Widget w);
-void _DtPrintParseXDisplaySpecifier(
-                                   const String display_spec,
-                                   String* host_name,
-                                   DtPrintSpecNet* spec_net,
-                                   int* display_num,
-                                   int* screen_num);
-void _DtPrintParseXPrinterSpecifier(
-                                   const String specifier,
-                                   String* printer_name,
-                                   String* display_spec);
-XtEnum _DtPrintVerifyXPrinter(
-                             Widget w,
-                             String printer_spec,
-                             String* new_printer_spec,
-                             Display** new_display
-#if 0 && defined(PRINTING_SUPPORTED)
-                              ,XPContext* new_context
-#endif /* PRINTING_SUPPORTED */
-                              );
-
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtPsubUtilI_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtPrint/dtpdmd.h b/cde/lib/DtPrint/dtpdmd.h
deleted file mode 100644 (file)
index 360eb4f..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */
-/******************************************************************************
- ******************************************************************************
- **
- ** File:         dtpdmd.h
- **
- ** Description:  Header file for the "dtpdmd/dtpdm protocol" which
- **               consists of a standard command line dtpdmd->dtpdm
- **               and starndard exit codes dtpdm->dtpdmd.
- **
- **               Other dtpdmd header stuff lives here too.
- **
- ** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved.
- **
- ******************************************************************************
- *****************************************************************************/
-
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-/******************************************************************************
- *
- * Standard command line parameters for any PDM which
- * will become a child of dtpdmd via fork/exec.
- *
- * generic_pdm [dt-pdm-command options] [dtpdmd options]
- *
- * where [dt-pdm-command options] is:
- *    - any additional options that were specified along with
- *      the dt-pdm-command attribute from the X Print Server.
- *
- * where [dtpdmd options] is any of:
- *    -display  dpy     Specified the display connection to the Video X-Server.
- *    -window   vwid    Specified the window id on dpy.
- *    -pdisplay pdpy    Specified the display connection to the Print X-Server.
- *    -pcontext pcid    Specified the print context id on pdpy.
- */
-
-/******************************************************************************
- *
- * Standard exit() codes for any PDM which is a child of dtpdmd.
- */
-#define PDM_EXIT_NONE           None
-#define PDM_EXIT_OK             191     /* "OK" */
-#define PDM_EXIT_CANCEL         192     /* "CANCEL" */
-#define PDM_EXIT_VXAUTH         193     /* no print display authorization */
-#define PDM_EXIT_PXAUTH         194     /* no video display authorization */
-#define PDM_EXIT_ERROR          195     /* all other error reasons */
-
-/*
- * Misc information.
- */
-#define DEFAULT_PDM_EXECUTABLE  "dtpdm"
-
diff --git a/cde/lib/DtSearch/Makefile.am b/cde/lib/DtSearch/Makefile.am
new file mode 100644 (file)
index 0000000..e9f815e
--- /dev/null
@@ -0,0 +1,55 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = raima
+
+lib_LTLIBRARIES = libDtSearch.la
+
+BUILT_SOURCES = boolyac.h boolyac.c
+CLEANFILES = boolyac.h boolyac.c
+AM_YFLAGS = -d
+
+libDtSearch_la_CFLAGS = -DI18N_MSG -DMULTIBYTE -I./raima \
+                       @DT_INCDIR@
+
+
+libDtSearch_la_LDFLAGS = -version-info 2:1:0
+libDtSearch_la_LIBADD = raima/libraima.la
+
+if LINUX
+libDtSearch_la_CFLAGS += -DBYTE_SWAP
+libDtSearch_la_LIBADD += -lm
+endif
+
+if BSD
+libDtSearch_la_CFLAGS += -DBYTE_SWAP
+endif
+
+if SOLARIS
+libDtSearch_la_CFLAGS += -DBYTE_SWAP
+libDtSearch_la_LIBADD += -lm -lc
+endif
+
+if AIX
+libDtSearch_la_LIBADD += -lisode
+endif
+
+if HPUX
+libDtSearch_la_LIBADD += -lm
+endif
+
+libDtSearch_la_SOURCES = apndext.c     ausdopen.c      ausexit.c \
+                        bmstrstr.c     boolpars.c      boolsrch.c \
+                        boolyac.y      cuslang.c       dbchange.c \
+                        dberr.c        delspace.c      dtoe.c \
+                        dtoeinit.c     dtsrapi.c       dtsrdbrec.c \
+                        dtsrjoint.c    dtsrswab.c      dtsrutil.c  \
+                        dtsrve.c       endslash.c      fileman.c \
+                        globals.c      hdecode.c       hencode.c \
+                        hilite.c       iscompat.c      isduprec.c \
+                        jpn.c          lang.c          langmap.c \
+                        msgs.c         msgutil.c       objdate.c \
+                        ocf.c          opendblk.c      ophuf.c \
+                        readchar.c     strupr.c        userint.c \
+                        vedelete.c     vestatis.c      vstfunct.c
+
+
diff --git a/cde/lib/DtSearch/Search.h b/cde/lib/DtSearch/Search.h
deleted file mode 100644 (file)
index 57c35de..0000000
+++ /dev/null
@@ -1,285 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 27
- *
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1994,1995
- *   All Rights Reserved
- *   Licensed Materials - Property of IBM
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-#ifndef _Search_h
-#define _Search_h
-/********************** Search.h ***********************
- * $TOG: Search.h /main/12 1998/04/03 17:10:35 mgreess $
- * Jan 1994.
- * Public header file for DtSearch/AusText API.
- * Formerly named ausapi.h.  Externals renamed
- * from ausapi_... or aa_... to DtSearch conventions.
- * Documentation in dtsearch.doc.
- *
- */
-#ifndef _XOPEN_SOURCE
-#define _XOPEN_SOURCE  1
-#endif
-#include <time.h>
-#include <stdio.h>
-#include <string.h>
-
-#if defined(__linux__)
-# define __SVR4_I386_ABI_L1__
-#endif
-#include <limits.h>
-#if defined(__linux__)
-# undef __SVR4_I386_ABI_L1__
-# ifndef WORD_BIT
-# define WORD_BIT 32
-# endif
-# ifndef LONG_BIT
-# define LONG_BIT 32
-# endif
-#endif
-
-#define DtSrVERSION            "0.6"
-#define DtSrMAXHITS            20
-#define DtSrMAX_KTNAME         13
-#define DtSrMAX_DB_KEYSIZE     32
-#define DtSrMAXWIDTH_HWORD     134
-#define DtSrMAX_STEMCOUNT      8
-
-/****************************************/
-/*                                     */
-/*             RETURN CODES            */
-/*                                     */
-/****************************************/
-#define DtSrOK         0       /* normal, successful response */
-#define DtSrPASSWD     1       /* failed communications authentication */
-#define DtSrNOTAVAIL   2       /* no hits on search, no such rec, etc */
-#define DtSrFAIL       3       /* misc unsuccessful engine returns */
-#define DtSrREINIT     4       /* engine reinitialized, request canceled */
-#define DtSrERROR      5       /* fatal caller (client) program error */
-#define DtSrABORT      6       /* fatal engine failure, caller must abort */
-#define DtSrCOMM       7       /* fatal communications failure */
-
-/* In order to share databases among heterogenous machines,
- * certain integer types must be defined that are invariably
- * 2 and 4 bytes on all architectures.
- * Note WORD_BIT == 32 does not guarantee short == 16.
- */
-#if   (WORD_BIT == 16)
-  typedef int            DtSrINT16;
-  typedef unsigned int   DtSrUINT16;
-#elif (WORD_BIT == 32)                                       
-  typedef short                  DtSrINT16;    
-  typedef unsigned short  DtSrUINT16;
-#else                                       
-#error Unable to typedef DtSrINT16 and DtSrUINT16
-#endif
-   
-#if   (WORD_BIT == 32)
-  typedef int            DtSrINT32;
-  typedef unsigned int   DtSrUINT32;
-#elif (LONG_BIT == 32)
-  typedef long           DtSrINT32;
-  typedef unsigned long          DtSrUINT32;
-#else                                                      
-#error Unable to typedef DtSrINT32 and DtSrUINT32         
-#endif
-
-#ifndef DB_ADDR        
-  typedef DtSrINT32      DB_ADDR;      /* vista.h: must be 4 bytes */
-#endif
-
-#ifndef TRUE
-#define TRUE   1
-#endif
-#ifndef FALSE
-#define FALSE  0
-#endif
-
-typedef DtSrUINT32     DtSrObjdate;
-
-
-/****************************************/
-/*                                     */
-/*             DtSrKeytype             */
-/*                                     */
-/****************************************/
-typedef struct {
-    char       is_selected;         /* TRUE: user has selected this keytype */
-    char       ktchar;              /* first char of opera record key */
-    char       name [DtSrMAX_KTNAME+1]; /* label string used in UI */
-}      DtSrKeytype;
-
-/****************************************/
-/*                                     */
-/*             DtSrResult              */
-/*                                     */
-/****************************************/
-/* DtSrResult ormerly DITTO.  DtSrObj types formerly ORT_. */
-typedef struct _DtSrResult {
-    struct _DtSrResult *link;  /* ptr to next list node */
-    DtSrUINT32 flags;          /* (reserved) */
-    DtSrINT32  objflags;       /* flags from object record */
-#define DtSrFlDELETE    (1<<0)  /* (reserved) */
-#define DtSrFlOLDNOTES  (1<<1)  /* (reserved) */
-#define DtSrFlNOTAVAIL  (1<<2)  /* object not retrievable from engine */
-    DtSrUINT32 objuflags;      /* user flags from database rec */
-    DtSrINT32  objsize;        /* in uncompressed bytes */
-    DtSrObjdate        objdate;        /* zero means object 'undated' */
-    DtSrINT16  objtype;        /* from database record */
-#define DtSrObjUNKNOWN 0    /* object type unknown or not applicable */
-#define DtSrObjTEXT    1    /* generic, unformatted flat text */
-#define DtSrObjBINARY  2    /* generic binary object */
-#define DtSrObjSGML    3    /* generic SGML formatted document */
-#define DtSrObjHTML    4    /* HTML formatted document */
-#define DtSrObjPOSTSCR 6    /* Postscript document */
-#define DtSrObjINTERLF 7    /* Interleaf document */
-#define DtSrObjDTINFO  8    /* DtInfo document */
-    DtSrINT16  objcost;        /* (reserved) */
-    int                dbn;            /* dbnamesv index */
-    DB_ADDR    dba;            /* data base addr within database */
-    DtSrINT16  language;       /* language of the database */
-#define DtSrLaENG      0    /* English, ASCII char set (default) */
-#define DtSrLaENG2     1    /* English, ISO Latin-1 char set */
-#define DtSrLaESP      2    /* Spanish, ISO Latin-1 char set */
-#define DtSrLaFRA      3    /* French, ISO Latin-1 char set */
-#define DtSrLaITA      4    /* Italian, ISO Latin-1 char set */
-#define DtSrLaDEU      5    /* German, ISO Latin-1 char set */
-#define DtSrLaJPN      6    /* Japanese, EUC, auto kanji compounds */
-#define DtSrLaJPN2     7    /* Japanese, EUC, listed kanji compounds */
-#define DtSrLaLAST     7   /* Last supported DtSrLa constant */
-    char       reckey [DtSrMAX_DB_KEYSIZE]; /* object's db key */
-    int                proximity;      /* 'distance' of object from query */
-    char       *abstractp;     /* object's abstract from db*/
-}      DtSrResult;
-
-/****************************************/
-/*                                     */
-/*              DtSrHitword            */
-/*                                     */
-/****************************************/
-typedef struct {
-    long       offset;         /* word location in cleartext */
-    long       length;         /* length of word */
-}      DtSrHitword;
-
-
-/************************************************/
-/*                                             */
-/*                Functions                    */
-/*                                             */
-/************************************************/
-extern void    DtSearchAddMessage (char *msg);
-extern int     DtSearchHasMessages (void);
-extern char    *DtSearchGetMessages (void);
-extern void    DtSearchFreeMessages (void);
-extern int     DtSearchGetMaxResults (void);
-extern void    DtSearchSetMaxResults (int new_max_results);
-extern char    *DtSearchFormatObjdate (DtSrObjdate objdate);
-extern void    DtSearchExit (int return_code);
-extern void    DtSearchAddUserExit (void (*user_exit)(int));
-extern void    DtSearchRemoveUserExit (void);
-
-extern int     DtSearchSortResults (DtSrResult **list, int sort_type);
-  #define DtSrSORT_PROX        1       /* sort on proximity */
-  #define DtSrSORT_DATE        2       /* sort on objdate */
-extern int     DtSearchMergeResults (DtSrResult **targ, DtSrResult **src);
-extern int     DtSearchFreeResults (DtSrResult **list);
-extern DtSrObjdate
-               DtSearchValidDateString (char *date_string);
-extern int     DtSearchInit (
-                       char    *argv0,
-                       char    *userid,
-                       long    switches,
-                       char    *config_file,
-                       FILE    *err_file,
-                       char    ***dbnames,
-                       int     *dbcount);
-  /* Bit values valid for switches argument: */
-  #define DtSrInNOLOCALE   0x0001L  /* do not exec setlocale() */
-  #define DtSrInSIGNAL     0x0002L  /* register abort signal handlers */
-  #define DtSrInUSEROCF    0x0004L  /* (reserved) */
-  #define DtSrInENAB_NOHUP 0x0008L  /* enab nohup for backgnd progms */
-  #define DtSrInIDEBUG     0x0010L  /* set initialization debugging */
-  #define DtSrInSDEBUG     0x0020L  /* set search debugging */
-  #define DtSrInRDEBUG     0x0040L  /* set retrieval debugging */
-  #define DtSrInCDEBUG     0x0080L  /* set communications debugging */
-  #define DtSrInANY_DEBUG \
-       (DtSrInIDEBUG | DtSrInSDEBUG | DtSrInRDEBUG | DtSrInCDEBUG)
-  #define DtSrInRDWR       0x0100L  /* open db files for read and write */
-
-extern int     DtSearchReinit (
-                       char            ***dbnames,
-                       int             *dbcount);
-
-extern int     DtSearchGetKeytypes (
-                       char            *dbname,
-                       int             *ktcount,
-                       DtSrKeytype     **keytypes);
-
-extern int     DtSearchQuery (
-                       void            *qry,
-                       char            *dbname,
-                       int             search_type,
-                       char            *date1,
-                       char            *date2,
-                       DtSrResult      **results,
-                       long            *resultscount,
-                       char            *stems,
-                       int             *stemcount);
-
-extern int     DtSearchRetrieve (
-                       char            *dbname,
-                       DB_ADDR         dba,
-                       char            **cleartext,
-                       long            *clearlen,
-                       int             *fzkeyi);
-
-extern int     DtSearchHighlight (
-                       char            *dbname,
-                       char            *cleartext,
-                       DtSrHitword     **hitwptr,
-                       long            *hitwcount,
-                       int             search_type,
-                       char            *stems,
-                       int             stemcount);
-
-/********************** Search.h ***********************/
-#endif  /* _Search_h */
diff --git a/cde/lib/DtSearch/SearchE.h b/cde/lib/DtSearch/SearchE.h
deleted file mode 100644 (file)
index d9e7a1d..0000000
+++ /dev/null
@@ -1,639 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 27
- *
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1991,1995
- *   All Rights Reserved
- *   Licensed Materials - Property of IBM
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-#ifndef _SearchE_h
-#define _SearchE_h
-/***************************** SearchE.h ******************************
- * $XConsortium: SearchE.h /main/5 1996/08/12 13:16:47 cde-ibm $
- * August 1991.
- * Header file for online DtSearch Engine (OE.C etc).
- * SearchE.h was formerly called oe.h (Opera Engine).
- * The old OE engine is pretty much invisible now, having
- * been surrounded by the ausapi/DtSearch interface.
- * 
- * The main data structure for passing and receiving arguments
- * between the callers and the engine is USRBLK which is
- * the only argument in the Opera_Engine() call.
- * The actual input and output arguments in the USRBLK for each
- * function are described below with the function description.
- * 
- * All OE_functions pass a return code
- * to the caller.  OE_OK = successful completion,
- * anything else may be partial completion/success or failure.
- * Return code mnemonics are also defined below.
- *
- * $Log$
- * Revision 2.7  1996/03/20  19:11:21  miker
- * Changed prototype of hilite_cleartext().
- *
- * Revision 2.6  1996/03/13  22:34:53  miker
- * Changed char to UCHAR several places.
- *
- * Revision 2.5  1996/03/05  19:17:50  miker
- * oe_unblob no longer converts to uppercase.
- *
- * Revision 2.4  1996/03/05  15:54:06  miker
- * Minor changes to support yacc-based boolean search.
- *
- * Revision 2.3  1996/02/01  16:14:38  miker
- * Obsoleted requests OE_DITTO2KWIC, OE_VALIDATE_PWD, OE_CHANGE_PWD,
- * OE_FINDSTR_REC, OE_FINDSTR_HITL, OE_ASSIST, OE_KILL.
- * Restored OE_PING as the official "null" function.
- * Added USRDBG_HILITE and USRDBG_PARSE.
- * Replaced STRKIND, OE_kind_of_stems, and oe_stems_to_hitwords
- * with hilite_cleartext.  Deleted oe_ditto2kwic, oe_findstr_hitl.
- * Deleted usrblk.kwiclen.
- *
- * Revision 2.2  1995/10/25  22:35:45  miker
- * Added prolog.
- *
- * Revision 2.1  1995/09/22  22:39:39  miker
- * Freeze DtSearch 0.1, AusText 2.1.8
- *
- * Revision 1.1  1995/08/31  20:42:33  miker
- * Initial revision
- *
- * The DtSearch return codes wrap around the OE return codes.
- */
-#include "SearchP.h"
-
-#define AUDIT_FORMAT   "UID=%-8s TIME=%s ELAP=%-3ld DB=%-8s HITS=%-5ld "
-#define AUDIT_WHOWHEN  "UID=%-8s TIME=%s"
-#define DISCARD_FORMAT "%s\t\"%s\"\t%s\t%s\n"
-#define HARDCOPY_SCRIPT "opprt.bat"
-#define MAX_HITWCOUNT  200     /* max number hitwords that can be hilited */
-#define WORDS_HITLIMIT 300000L
-
-
-/*-------------------- Request Codes ------------------------
- * All Engine requests, in addition to input below, require valid
- *     usrblk.userid
- *     usrblk.request.
- * All Engine requests, in addition to output below,
- *     may return ausapi_msglist.
- * There is no zero request code.
- * See list of return codes for the ones that are marked 'common retncodes'.
- */
-
-#define OE_INITIALIZE  1
-/* does lotsa stuff--see the function.
- * input:
- *     .query =        AUSAPI_VERSION of UI code
- *     .dblist =       data from user config file
- *     .dblk =         data from user config file
- * output:
- *     .dblist =       modified after load of site config file
- *     .dblk =         modified after load of site config file
- *     .retncode =     OE_OK, OE_NOTAVAIL, OE_ABORT
- */
-
-#define OE_TEXT2FZKEY  2
-/* converts problem description text to fzkey.
- * input:
- *     .query =        problem description text
- *     .dblk =         desired database and db parameters
- * output:
- *     .fzkey =        inference from query text analysis
- *     .retncode =     common retncodes + OE_BAD_QUERY
- */
-
-#define OE_SRCH_FZKEY  3
-/* Converts fzkey to hitlist of dba's.
- * Not available for databases without semantic dictionaries.
- * input:
- *     .fzkey =        database search vector
- *     .dblk =         desired database and db parameters
- * output:
- *     .workproc =     function to be called until !OE_SEARCHING
- *     .dittolist =    hitlist sorted by proximity
- *     .dittocount =   # of nodes on dittolist
- *     .retncode =     common retncodes + OE_SEARCHING, OE_NOTAVAIL,
- *                     OE_USER_STOP, OE_SYSTEM_STOP, OE_BAD_QUERY
- */
-
-#define OE_SRCH_STEMS  4
-/* converts string of wordstems and booleans to
- * hitlist of dba's and stems array.
- * input:
- *     .query =        text string of wordstems and booleans
- *     .dblk =         desired database and db parameters
- * output:
- *     .fzkey =        (value undefined)
- *     .workproc =     function to be called until !OE_SEARCHING
- *     .dittolist =    hitlist
- *     .dittocount =   # of nodes on dittolist
- *     .stems =        array of stems for hiliting in text of hits
- *     .stemcount =    size of 'stems' array
- *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
- *                     OE_NOTAVAIL, OE_USER_STOP
- */
-
-#define OE_SRCH_WORDS  5
-/* converts string of exact words and booleans to
- * hitlist of dba's and stems array.
- * input:
- *     .query =        text string of exact words and booleans
- *     .dblk =         desired database and db parameters
- * output:
- *     .fzkey =        (value undefined)
- *     .workproc =     function to be called until !OE_SEARCHING
- *     .dittolist =    hitlist
- *     .dittocount =   # of nodes on dittolist
- *     .stems =        array of words for hiliting in text of hits
- *     .stemcount =    size of 'stems' array
- *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
- *                     OE_NOTAVAIL, OE_USER_STOP
- */
-
-#define OE_STOP_SRCH   6
-/* sets global switch to cancel search work procedure.
- * workproc actually cancels itself after reading switch.
- * input:      .request =      OE_STOP_SEARCH
- * output:     .retncode =     'common retncodes' only
- */
-
-#define OE_APPEND_NOTES  7
-/* appends user's notes to record at current dba.
- * input:
- *     .query =        freeform text of append
- *     .dba =          address of record to append
- *     .dblk =         desired database and db parameters
- * output:
- *     .retncode =     common retncodes + OE_TIMEOUT, OE_DISABLED
- */
-
-#define OE_GETREC      8
-/* retrieves record, cleartext, and notes for specified dba.
- * Clears hitwords array, does not use or change stems array.
- * input:
- *     .dba =          address of record to retrieve
- *     .dblk =         desired database and db parameters
- * output:
- *     .objrec =       austext record itself, as is from vista
- *     .cleartext =    NULL or uncompressed text string
- *     .clearlen =     0 or size of cleartext
- *     .hitwords =     array pointer cleared to NULL
- *     .hitwcount =    size of hitwords array set to 0
- *     .notes =        NULL, or list of notes records, as is
- *     .retncode =     common retncodes + OE_NOTAVAIL
- */
-
-#define OE_GETREC_STEMS   9
-/* retrieves record, cleartext, notes, and hitwords
- * array for specified dba and stems (from OE_SRCH_STEMS).
- * If no text in repository, equivalent to OE_GETREC.
- * input:
- *     .dba =          address of record to retrieve
- *     .stems =        array of word stems to hilite
- *     .stemcount =    size of stems array
- *     .dblk =         desired database and db parameters
- * output:
- *     .objrec =       austext record itself, as is from vista
- *     .cleartext =    NULL or uncompressed text string
- *     .clearlen =     0 or size of cleartext
- *     .hitwords =     NULL or array of words in cleartext to hilite
- *     .hitwcount =    0 or size of hitwords array
- *     .notes =        NULL, or list of notes records, as is
- *     .retncode =     common retncodes + OE_NOTAVAIL
- */
-
-#define OE_GETREC_WORDS   10
-/* retrieves record, cleartext, notes, and hitwords
- * array for specified dba and stems array (from OE_SRCH_WORDS).
- * If no text in repository, equivalent to OE_GETREC.
- * input:
- *     .dba =          address of record to retrieve
- *     .stems =        array of exact words to hilite
- *     .stemcount =    size of stems array
- *     .dblk =         desired database and db parameters
- * output:
- *     .objrec =       austext record itself, as is from vista
- *     .cleartext =    NULL or uncompressed text string
- *     .clearlen =     0 or size of cleartext
- *     .hitwords =     NULL or array of words in cleartext to hilite
- *     .hitwcount =    0 or size of hitwords array
- *     .notes =        NULL, or list of notes records, as is
- *     .retncode =     common retncodes + OE_NOTAVAIL
- */
-
-#define OE_NEXT_DBA    11
-/* advances dba to next valid b-tree address.  Wraps if necessary.
- * input:
- *     .dba =          current address of record
- *     .dblk =         desired database and db parameters
- * output:
- *     .dba =          address of next record in b-tree
- *     .retncode =     common retncodes + OE_WRAPPED
- */
-
-#define OE_PREV_DBA    12
-/* retreats dba to previous valid b-tree address.
- * Wraps if necessary.
- * input:
- *     .dba =          current address of record
- *     .dblk =         desired database and db parameters
- * output:
- *     .dba =          address of previous record in b-tree
- *     .retncode =     common retncodes + OE_WRAPPED
- */
-
-#define OE_RECKEY2DBA  13
-/* converts an austext record key into a dba.  Wraps if not found.
- * input:
- *     .query =        desired record key
- *     .dblk =         desired database and db parameters
- * output:
- *     .dba =          address of record found,
- *                     or next avail address if not found
- *     .retncode =     common retncodes + OE_WRAPPED
- */
-
-#define OE_MARK_DELETION  14
-/* writes record id to an external file for
- * possible later deletion by external program.
- * input:
- *     .query =        record key to be marked for deletion
- *     .dblk =         database where record is located
- * output:
- *     .retncode =     common retncodes + OE_NOTAVAIL, OE_DISABLED
- */
-
-#define OE_GETREC_DIC  15
-/* THIS FUNCTION IS NO LONGER SUPPORTED.
- * IF RECEIVED BY ENGINE, IT IS TREATED EXACTLY AS OE_GETREC.
- * Retrieves record, cleartext, notes, and hitwords
- * array for specified dba.  Hitwords are not derived from the
- * stems array; they are all the cleartext words that are in
- * the dictionary. (Compare to OE_GETREC_WORDS and OE_GETREC_STEMS).
- * If no text in repository, equivalent to OE_GETREC.
- * input:
- *     .dba =          address of record to retrieve
- *     .dblk =         desired database and db parameters
- * output:
- *     .objrec =       austext record itself, as is from vista
- *     .cleartext =    NULL or uncompressed text string
- *     .clearlen =     0 or size of cleartext
- *     .hitwords =     NULL or array of words in cleartext to hilite
- *     .hitwcount =    0 or size of hitwords array
- *     .notes =        NULL, or list of notes records, as is
- *     .retncode =     common retncodes + OE_NOTAVAIL
- */
-
-#define OE_DITTO2KWIC  16
-#define OE_VALIDATE_PWD        17
-#define OE_CHANGE_PWD  18
-/* (These functions are obsolete) */
-
-#define OE_DELETE_RECID        19
-/* Deletes header record, all text, user notes,
- * and word/stems references for specified record.
- * Currently can only be called from offline program
- * when all online austext users have been logged off.
- * THIS FUNCTION IS <<<VERY>>> SLOW (about 15 min on large dbase)!
- * input:
- *     .query =        desired record key
- *     .dblk =         desired database and db parameters
- * output:
- *     .dba =          address of record deleted
- *                     THIS ADDRESS IS NO LONGER VALID!
- *     .dbatab =       (undefined)
- *     .dbacount =     1
- *     .retncode =     common retncodes + OE_NOTAVAIL
- */
-
-#define OE_DELETE_BATCH        20
-/* Deletes header records, all text, user notes,
- * and word/stems references for all records in a 
- * datbase address table.  Currently can only be called
- * from offline program when all online austext users
- * have been logged off.  This function is the preferred 
- * deletion method because it is faster than deleting
- * single records at a time.  Addresses not found are ignored.
- * input:
- *     .dblk =         desired database and db parameters
- *     .dbatab =       table of valid addresses to be deleted
- *     .dbacount =     number of addresses on the table
- * output:
- *     .retncode =     common retncodes only
- */
-
-#define OE_ASSIST      21
-#define OE_FINDSTR_REC 22
-#define OE_FINDSTR_HITL        23
-/* (These functions are obsolete) */
-
-#define OE_SRCH_STATISTICAL    24
-/* Converts string of natural language text to
- * hitlist of dba's and stems array.  Uses stems only,
- * no booleans, all words are ORed together.  Hitlist sorted
- * based on statistics of included word stems.
- * input:
- *     .query =        natural language text string
- *     .dblk =         desired database and db parameters
- * output:
- *     .stems =        array of stems for hiliting in text of hits
- *     .stemcount =    size of 'stems' array (up to max allowed)
- *     .workproc =     function to be called until !OE_SEARCHING
- *     .dittolist =    hitlist
- *     .dittocount =   # of nodes on dittolist
- *     .retncode =     common retncodes + OE_BAD_QUERY, OE_SEARCHING,
- *                     OE_NOTAVAIL, OE_USER_STOP
- */
-
-#define OE_HILITE_STEMS   25
-/* Creates a hitwords array for hiliting using the text
- * in cleartext (however it may have been obtained),
- * and the stems array from the last search.
- * input:
- *     .cleartext =    text to be hilited
- *     .clearlen =     size of cleartext
- *     .stems =        array of words or stems to hilite
- *     .stemcount =    size of stems array
- *     .search_type =  'W', 'P' or 'S', indicating type of
- *                     search that generated stems array.
- * output:
- *     .hitwords =     array of words in cleartext to hilite
- *     .hitwcount =    size of hitwords array
- *     .retncode =     common retncodes + OE_NOTAVAIL, OE_BAD_QUERY
- */
-
-#define OE_GET_EXPIRE  26
-/* Returns in 'dba' field the expiration date of OE as a timestamp.
- * Zero means no expiration date.  Overlays previous value in dba.
- * input:      .request =      OE_GET_EXPIRE
- * output:     .dba =          unix timestamp of expiration date or 0  
- *             .retncode =     common retncodes only
- */
-
-#define OE_KILL                9997
-#define OE_PING                9998
-#define OE_SHUTDOWN    9999
-/* (These functions are obsolete) */
-
-/*-------------------- Return Codes ------------------------
- * The return codes marked 'common retncodes' are OE_OK, OE_NOOP, OE_REINIT,
- * and OE_ABORT, and can be returned by almost all functions.
- * OE_BAD_QUERY will be returned for any unknown function request.
- * There is no zero return code.
- */
-#define        OE_OK           1       /* normal successful completion */
-#define OE_REINIT      2       /* request canceled: OE reinitialized
-                                * databases so UI's dba's may be bad */
-#define OE_SEARCHING   3       /* keep calling workproc */
-#define OE_BAD_DBLK    4
-#define OE_BAD_REQUEST 5       /* invalid request field */
-#define OE_BAD_QUERY   6       /* invalid query or other input fld */
-#define OE_NOTAVAIL    7       /* no record, hits, function disabled */
-#define OE_TIMEOUT     8
-#define OE_WRAPPED     9       /* got next item instead of reqstd item */
-#define OE_SYSTEM_STOP 10      /* error: search canceled by OE */
-#define OE_BAD_PASSWD  11      /* invalid password */
-#define OE_BAD_HITLIST 12      /* invalid hitlist */
-#define OE_DISABLED    13      /* requested function disabled at this site */
-#define OE_USER_STOP   14      /* search canceled by user */
-#define OE_BAD_COMM    15      /* request canceled by comm layer */
-#define OE_NOOP                888     /* No Operation, nothing done */
-#define OE_ABORT       999     /* fatal OE error, OE permanently disabled */
-
-
-/****************************************/
-/*                                     */
-/*             OEFTAB                  */
-/*                                     */
-/****************************************/
-/* Table used in load_ocf() oe_uninitialize() to allow overriding default
- * locations of various files.  Complete discussion in .ocf documentation.
- */
-typedef struct
-       {
-       char    *id;                    /* keyword identifier */
-       char    **OEFptr;               /* addr of variable to change */
-       char    previously_specified;   /* bool ensures only one spec */
-       } OEFTAB;
-
-/****************************************/
-/*                                     */
-/*             USRBLK                  */
-/*                                     */
-/****************************************/
-typedef struct
-    {
-    char       userid [10];    /* 1 - 8 alphanumeric char */
-    int                search_type;    /* single char = curr search type.
-                                * 'T' = Semantic Text search
-                                * 'W' = Exact Words search
-                                * 'S' = Stems search
-                                * 'Z' = Fzkey search
-                                * 'N' = Navigator string (unpacked fzk) srch
-                                * 'P' = Statistical (Probabilistic) search
-                                */
-
-    long       flags;          /* bit switches... */
-#define        USR_BIT_1       0x0001L /* (reserved) */
-#define USR_NO_ITERATE 0x0002L /* override iterations in workprocs */
-#define USR_STOPSRCH   0x0004L /* the "stop" button, cancels workproc */
-#define USR_MAXMIN     0x0008L /* symdif() algorithm = fuzzy max min */
-#define USR_OBJDATES   0x0010L /* restrict hitlists to objdate ranges */
-#define USR_KWIC_ABSTR 0x0020L /* retn KeyWord In Context for abstract */
-#define USR_NO_INFOMSGS        0x0040L /* do not retn information-only msgs to UI */
-#define USR_MAXHITS_MSG        0x0080L /* show # hits each keytype if sum > maxhits */
-#define USR_SORT_WHITL 0x0100L /* sort word/stem hitlists by semantics */
-
-    long       debug;          /* Nonproduction bit switches */
-#define USRDBG_RARE    0x0001L /* 1 Misc initialzatn trace msgs */
-#define USRDBG_SRCHCMPL        0x0002L /* 2 trace ui search_completed functions */
-#define USRDBG_RETRVL  0x0004L /* 4 trace record retrieval funcs */
-#define USRDBG_ITERATE 0x0008L /* 8 forces iteration on all iterable cmds */
-#define USRDBG_UTIL    0x0010L /* 16 trace misc utility functions */
-#define USRDBG_MEDPRMPT        0x0020L /* 32 Prints prompt of medley sockets cmds */
-#define USRDBG_HITLIST 0x0040L /* 64 print hitlists after searches */
-#define USRDBG_SYMP    0x0080L /* 128 trace symptom search funcs */
-#define USRDBG_DELETE  0x0100L /* 256 trace record deletion functions */
-#define USRDBG_RPC     0x0200L /* 512 trace RPC communications funcs */
-#define USRDBG_VERBOSE 0x0400L /* 1024 verbose debugging: iterative details */
-#define USRDBG_HILITE  0x0800L /* 2048 trace hiliting functions */
-#define USRDBG_PARSE   0x1000L /* 4096 trace linguistic parse/stem funcs */
-#define USRDBG_BOOL    0x2000L /* 8192 trace boolean parse funcs */
-
-    int                request;
-    int                retncode;
-    char       *query;           /* input data for text searches */
-    DtSrObjdate        objdate1;         /* only retn hit objects >= (after) date1 */
-    DtSrObjdate        objdate2;         /* only retn hit objects <= (before) date2 */
-    DB_ADDR    dba;              /* for direct dba reads */
-    DB_ADDR    *dbatab;          /* array of dba's for batch deletes */
-    int                dbacount;         /* # of dba's in dbatab */
-    void       (*workproc) (void);
-       /* (1) If single tasking (iterative), OE places ptr to work
-       procedure.  (2) If multitasking (no iterations), UI places
-       ptr of func to call when OE's spawned subtask is done. */
-
-    DBLK       *dblist;        /* linked list of all databases */
-    DBLK       *dblk;          /* users curr database selection */
-
-    DtSrResult *dittolist;     /* hitlist retnd from various searches */
-    long       dittocount;     /* # of items on hitlist */
-    int                stemcount;      /* # of wordstems in 'stems' array */
-    char       stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD];
-                               /* for hiliting words in text records */
-
-    struct or_objrec  objrec;  /* austext record buffer */
-    char       *abstrbuf;      /* buf to hold abstracts */
-    int                abstrbufsz;     /* maximum abstract size all databases */
-    char       *cleartext;     /* decompressed austext record text */
-    long       clearlen;       /* size of cleartext in bytes */
-    LLIST      *notes;         /* uncompressed, right out of vista */
-    DtSrHitword        *hitwords;      /* array of hit words inside cleartext */
-    long       hitwcount;      /* number of elements in hitwords array */
-
-    }   USRBLK;
-
-
-
-/****************************************/
-/*                                     */
-/*             SAVEUSR                 */
-/*                                     */
-/****************************************/
-/* The following data is saved between calls of the workprocs.
- * In a future msg passing protocol where there may be multiple UIs
- * per OE, this data would be maintained in a list of structures,
- * one for each currently active search (UI only passes user id name
- * in iterative calls, OE searches list to match curr status).
- * But for now, this will have to do.
- */
-typedef struct
-    {
-    time_t     start_time;
-    int                iterations;
-    int                vistano;
-    DtSrResult *dittolist;
-    long       dittocount;
-    int                stemcount;
-    char       stems [DtSrMAX_STEMCOUNT] [DtSrMAXWIDTH_HWORD];
-    char       ktchars [MAX_KTCOUNT + 2];
-    char       *lastqry;
-    long       ktsum [MAX_KTCOUNT + 1];
-    }  SAVEUSR;
-
-
-/*--------------- GLOBALS in oe.c, loadocf.c -------------------*/
-extern char    **ausapi_dbnamesv;
-extern int     ausapi_dbnamesc;
-extern USRBLK  usrblk;
-
-extern char    *global_memory_ptr;
-extern OEFTAB  oef_table[];
-extern SAVEUSR saveusr;        /* (only one for now) */
-extern int     shm_id;
-
-extern int     OE_bmhtab_strlen [DtSrMAX_STEMCOUNT];
-extern size_t  OE_bmhtables [DtSrMAX_STEMCOUNT] [MAX_BMHTAB];
-extern int     OE_dbn;
-extern int     OE_enable_markdel;
-extern int     OE_enable_usernotes;
-extern time_t  *OE_expiration;
-extern int     OE_fastdecode;
-extern char    *OE_fileio;
-extern long    OE_flags;
-#define OE_AUDIT      1L       /* enables audit file logging */
-#define OE_INITOK     (1L<<1)  /* ensures first reqst was INITIALIZE */
-#define OE_PERMERR    (1L<<2)  /* disables engine on fatal errors */
-#define OE_NO_ITERATE (1L<<3)  /* override iterations in workprocs */
-extern char    *OE_inittab_dir;        /* local dir of server daemon */
-extern long    OE_objsize;
-extern char    *OE_prodname;
-extern int     OE_search_type;
-extern char    *OE_server_dir;         /* local dir of server daemon */
-extern char    *OE_sitecnfg_fname;
-extern time_t  OE_sitecnfg_mtime;
-extern int     OE_uppercase_keys;
-extern long    OE_words_hitlimit;
-
-/* Global pointers to formerly hardcoded path/file names.
- * The comment names the #define constant under which the
- * filename is/was specified in either fuzzy.h or oe.h.
- */
-extern char    *OEF_audit;     /* FNAME_AUDIT */
-extern char    *OEF_discard;   /* FNAME_DISCARD_DATA */
-extern char    *OEF_news;      /* FNAME_SITENEWS */
-extern char    *OEF_notesnot;  /* FNAME_NOTES_BAC */
-extern char    *OEF_notessem;  /* FNAME_NOTES_SEM */
-extern char    *OEF_readme;    /* FNAME_README */
-
-/*---------------- FUNCTION PROTOTYPES ----------------------*/
-extern char    *calloe_getrec (char *dbname, DB_ADDR dba,
-                       LLIST **global_msglist);
-extern long    calloe_hilite (char *cleartext, DtSrHitword *hitwords,
-                       LLIST **global_msglist);
-extern DtSrResult
-               *calloe_search (char *qry, char *dbname,
-                       int search_type, LLIST **global_msglist);
-extern int     call_output_script (char *shellcmd, char *text);
-extern void    clear_hitwords (void);
-extern void    clear_usrblk_record (void);
-extern void    dummy_workproc (void);
-extern char    *ensure_end_slash (char *charbuf);
-extern void    fasthuf (UCHAR *input_bitstring, UCHAR *output_charbuf,
-                       int outbuf_size, time_t encode_id);
-extern char    *get_hitlist_text (int maxlen);
-extern long    hilite_cleartext (int parse_type, char *stems, int stemcount);
-extern int     load_ocf (void);
-extern char    *nowstring (time_t *now);
-extern void    oe_initialize (void);
-extern int     oe_unblob (LLIST *bloblist);
-extern void    oe_write_audit_rec (long numhits);
-extern void    Opera_Engine (void);
-extern void    print_dittolist (DtSrResult *dittolist, char *label);
-extern void    print_stems (int stemcount, void *stems, char *locstr);
-extern void    print_usrblk_record (char *label);
-extern void    release_shm_mem (void);
-extern char    *retncode_str (int num);
-extern void    symptom_search (void);
-extern int     ve_append_notes (void);
-extern void    ve_browse_dba (int direction);
-extern LLIST   *ve_getblobs (DtSrINT32 dba, int vistano);
-extern int     ve_getrec_dba (LLIST **bloblist);
-extern int     ve_initialize (void);
-extern void    ve_ditto (void);
-extern DtSrINT32 ve_reckey2dba (void);
-extern void    ve_statistical (void);
-extern void    ve_stem_search (void);
-extern void    ve_word_search (void);
-extern void    ve_shutdown (void);
-
-/***************************** SearchE.h ******************************/
-#endif   /* _SearchE_h */
diff --git a/cde/lib/DtSearch/SearchP.h b/cde/lib/DtSearch/SearchP.h
deleted file mode 100644 (file)
index f6f7cea..0000000
+++ /dev/null
@@ -1,887 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS:
- *
- *   ORIGINS: 27
- *
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1990,1995
- *   All Rights Reserved
- *   Licensed Materials - Property of IBM
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-#ifndef _SearchP_h
-#define _SearchP_h
-/************************ SearchP.h ********************************
- * $XConsortium: SearchP.h /main/9 1996/10/12 16:10:00 cde-ibm $
- * June 1990.
- * Private header file for DtSearch/AusText used by
- * both build tools and search engine.
- * Derived from original IBM fuzzy.h.
- *
- * Hierarchies of DtSearch/AusText Search*.h #includes:
- *     Search.h is Dt/Aus public header, defines _XOPEN_SOURCE.
- *     SearchP.h is private Dt/Aus, includes Search.h.
- *     semantic.h is private Aus only, defines _ALL_SOURCE,
- *             includes SearchP.h.
- *             (Should be specified in place of SearchP.h).
- *     SearchE.h is private engine header Dt/Aus.  Invokes either
- *             SearchP.h or semantic.h depending on whether DTSEARCH defined.
- * Only one of the above should be specified.  They should always
- * be first include to get the _SOURCE defines right.
- * DTSEARCH should be defined on compiler cmd line.
- *
- * $Log$
- * Revision 2.11  1996/04/10  19:44:43  miker
- * AusText 2.1.13, DtSearch 0.5.  Documentation cleanup.
- *
- * Revision 2.10  1996/03/13  22:35:14  miker
- * Added UCHAR definition.  Changed char to UCHAR several places.
- *
- * Revision 2.9  1996/03/05  16:48:56  miker
- * Add COMMENT_CHARS from lang.c.
- *
- * Revision 2.8  1996/03/05  15:58:57  miker
- * Replace vewords with yacc-based boolean search.
- *
- * Revision 2.7  1996/02/01  16:26:06  miker
- * AUSAPI_VERSION 2.1.11, DtSearch 0.3:
- * Changed parsers to use character reading cofunctions.
- *
- * Revision 2.6  1995/12/27  15:51:36  miker
- * Version 2.1.10: First GA release of AusBuild.
- *
- * Revision 2.5  1995/12/07  23:24:38  miker
- * Version 2.1.9e: Freezing AusBuild version with
- * everything except multiple source files dialog box.
- *
- * Revision 2.4  1995/10/25  22:29:29  miker
- * Added prolog.
- *
- * Revision 2.3  1995/10/19  19:07:42  miker
- * Changed AUSAPI_VERSION to 2.1.9 (but not yet released).
- *
- * Revision 2.2  1995/10/03  21:36:13  miker
- * Added 'const' to strdup prototype for greater portability.
- *
- * Revision 2.1  1995/09/22  22:39:41  miker
- * Freeze DtSearch 0.1, AusText 2.1.8
- *
- * Revision 1.3  1995/09/19  21:38:59  miker
- * Removed debugging #defines.
- */
-#include "Search.h"    /* the "public" header file */
-#include <nl_types.h>  /* for nl_catd below and all cat...() funcs */
-#include <sys/types.h>
-#include <netinet/in.h>
-
-#define AUSAPI_VERSION         "2.1.13"
-    /* Format: "v.r.m", where v,r,m are integer substrings
-     * meaning version, revision, and mod respectively.
-     * Complete new version austomatically sets revision=1, mod=0.
-     * New revision within a version just sets mod=0.
-     * When mod=0, full string may be abbreviated to "v.r".
-     * Full string will contain no whitespace.
-     * AUSAPI_VERSION is compared to current versions of database
-     * schemas and client/server protocols by ausapi_init().
-     * By convention, AusText programs display AUSAPI_VERSION
-     * at the top of the main gui window and in usage statements.
-     */
-#define SCHEMA_VERSION         "2.0"
-       /* Identifies when schema last changed.
-        * Same format as AUSAPI_VERSION, except only "v.r" substring used.
-        * To ensure compatibility, database programs must have v.r integers
-        * within the range between SCHEMA_VERSION and AUSAPI_VERSION.
-        * The 3rd integer, the 'mod' number, never matters.
-         */
-#define PROTOCOL_VERSION       "2.1"
-       /* Identifies when protocol between ui and engine/ausapi
-        * last changed.  Typical changes would be changes to major
-        * structures like usrblk, dblk, and socblk, or changes to
-        * the arguments for either ausapi or Opera_Engine calls.
-        * Only meaningful for client/server systems.
-        * Same format as AUSAPI_VERSION, except only "v.r" substring used.
-        * To ensure compatibility, clients must have v.r integers
-        * within the range between PROTOCOL_VERSION and AUSAPI_VERSION
-        * of the engine.  The 3rd integer, the 'mod' number, never matters.
-         */
-
-/*------------- #define Compiler and related #defines ------------------
- * #define TURBO_COMPILER...
- * #define PS2AIX_COMPILER...
- * #define AIX370_COMPILER...
- * #define HP_COMPILER...
- * #define _AIX...
- * ... define one of the above at top of Search.h to provide
- * structures and functions that are compiler dependent.
- * Since the compiler definition must precede all other headers,
- * the #include for Search.h must be the first statement of all source
- * files.
- * 
- * UCHAR corrects for compilers whose default char is signed.
- */
-#define UCHAR  unsigned char
-#ifdef TURBO_COMPILER
-#define        LINT_ARGS       /* establishes strong prototyping in vista */
-#define ANSI           /* allow multiple databases in vista */
-
-#else
-#define SINGLE_USER    /* eliminate vista lockmgr */
-#define UNIX           /* used in vista.h and elsewhere */
-#endif
-
-#ifdef HP_COMPILER
-#define _INCLUDE_HPUX_SOURCE
-#define _INCLUDE_POSIX_SOURCE
-#define _INCLUDE_XOPEN_SOURCE
-#endif
-
-
-/*----------------------- AUSTEXT.H ---------------------
- * DBMS record/key structure and constant declarations.
- * These represent the database schema formerly in austext.h
- * and derived from austext.sch.
- */
-typedef struct or_dbrec {
-   DtSrUINT32  or_dbflags;
-   DtSrUINT32  or_dbuflags;
-   DtSrINT32   or_reccount;
-   DtSrINT32   or_maxdba;
-   DtSrINT32   or_availd99;
-   DtSrINT32   or_unavaild99;
-   DtSrINT32   or_hufid;
-   DtSrINT32   or_dbsecmask;
-   char                or_version[8];
-   char                or_dbfill[50];
-   DtSrINT16   or_dbotype;
-   DtSrINT16   or_compflags;
-   DtSrINT16   or_dbaccess;
-   DtSrINT16   or_minwordsz;
-   DtSrINT16   or_maxwordsz;
-   DtSrINT16   or_recslots;
-   DtSrINT16   or_fzkeysz;
-   DtSrINT16   or_abstrsz;
-   DtSrINT16   or_language;
-}      DBREC;
-
-struct or_dbmiscrec {
-   DtSrINT16   or_dbmisctype;
-   char                or_dbmisc[1][106];
-};
-struct or_objrec {
-   DtSrUINT32  or_objflags;
-   DtSrUINT32  or_objuflags;
-   DtSrINT32   or_objsize;
-   DtSrINT32   or_objdate;
-   DtSrINT32   or_objsecmask;
-   char                or_objkey[32];
-   char                or_objfill[34];
-   DtSrINT16   or_objaccess;
-   DtSrINT16   or_objtype;
-   DtSrINT16   or_objcost;
-   DtSrINT16   or_objhdroffset;
-   DtSrINT16   or_objeureka;
-};
-struct or_miscrec {
-   DtSrINT16   or_misctype;
-   char                or_misc[1][105];
-};
-struct or_blobrec {
-   DtSrINT16   or_bloblen;
-   char                or_blob[234][1];
-};
-struct or_swordrec {
-   char                or_swordkey[16];
-   DtSrINT32   or_swoffset;
-   DtSrINT32   or_swfree;
-   DtSrINT32   or_swaddrs;
-};
-struct or_lwordrec {
-   char                or_lwordkey[40];
-   DtSrINT32   or_lwoffset;
-   DtSrINT32   or_lwfree;
-   DtSrINT32   or_lwaddrs;
-};
-struct or_hwordrec {
-   char                or_hwordkey[134];
-   DtSrINT32   or_hwoffset;
-   DtSrINT32   or_hwfree;
-   DtSrINT32   or_hwaddrs;
-};
-
-/* File Id Constants */
-#define OR_D00 0
-#define OR_D01 1
-#define OR_D21 2
-#define OR_D22 3
-#define OR_D23 4
-#define OR_K00 5
-#define OR_K01 6
-#define OR_K21 7
-#define OR_K22 8
-#define OR_K23 9
-
-/* Record Name Constants */
-#define OR_DBREC 10000
-#define OR_DBMISCREC 10001
-#define OR_OBJREC 10002
-#define OR_MISCREC 10003
-#define OR_BLOBREC 10004
-#define OR_SWORDREC 10005
-#define OR_LWORDREC 10006
-#define OR_HWORDREC 10007
-
-/* Field Name Constants */
-#define OR_DBFLAGS 0L
-#define OR_DBUFLAGS 1L
-#define OR_RECCOUNT 2L
-#define OR_MAXDBA 3L
-#define OR_AVAILD99 4L
-#define OR_UNAVAILD99 5L
-#define OR_HUFID 6L
-#define OR_DBSECMASK 7L
-#define OR_VERSION 8L
-#define OR_DBFILL 9L
-#define OR_DBOTYPE 10L
-#define OR_COMPFLAGS 11L
-#define OR_DBACCESS 12L
-#define OR_MINWORDSZ 13L
-#define OR_MAXWORDSZ 14L
-#define OR_RECSLOTS 15L
-#define OR_FZKEYSZ 16L
-#define OR_ABSTRSZ 17L
-#define OR_LANGUAGE 18L
-#define OR_DBMISCTYPE 1000L
-#define OR_DBMISC 1001L
-#define OR_OBJFLAGS 2000L
-#define OR_OBJUFLAGS 2001L
-#define OR_OBJSIZE 2002L
-#define OR_OBJDATE 2003L
-#define OR_OBJSECMASK 2004L
-#define OR_OBJKEY 2005L
-#define OR_OBJFILL 2006L
-#define OR_OBJACCESS 2007L
-#define OR_OBJTYPE 2008L
-#define OR_OBJCOST 2009L
-#define OR_OBJHDROFFSET 2010L
-#define OR_OBJEUREKA 2011L
-#define OR_MISCTYPE 3000L
-#define OR_MISC 3001L
-#define OR_BLOBLEN 4000L
-#define OR_BLOB 4001L
-#define OR_SWORDKEY 5000L
-#define OR_SWOFFSET 5001L
-#define OR_SWFREE 5002L
-#define OR_SWADDRS 5003L
-#define OR_LWORDKEY 6000L
-#define OR_LWOFFSET 6001L
-#define OR_LWFREE 6002L
-#define OR_LWADDRS 6003L
-#define OR_HWORDKEY 7000L
-#define OR_HWOFFSET 7001L
-#define OR_HWFREE 7002L
-#define OR_HWADDRS 7003L
-
-/* Set Name Constants */
-#define OR_DB_MISCS 20000
-#define OR_OBJ_BLOBS 20001
-#define OR_OBJ_MISCS 20002
-/*----------------------- end AUSTEXT.H ---------------------*/
-
-
-
-/*------------- DMACROS.H -------------------
- * The following were formerly in dmacros.h.
- * They provide macro enhancements to the
- * DBMS function prototypes in vista.h.
- * Each DBMS function is coded in a macro which includes
- * a location string (usually module name + line number).
- * The location string is printed whenever there is
- * a user or system failure.
- * Warning: These should not be coded naked within 'if-else' statements
- * because the 'if' in the macros will interfere with the outside else.
- */
-#define CMSTAT(s,a,b) if(d_cmstat(a,b) < S_OKAY) vista_abort(s)
-#define CMTYPE(s,a,b,c) if(d_cmtype(a,b,c) < S_OKAY) vista_abort(s)
-#define CONNECT(s,a,b) if(d_connect(a,b) < S_OKAY) vista_abort(s)
-#define COSTAT(s,a,b) if(d_costat(a,b) < S_OKAY) vista_abort(s)
-#define COTYPE(s,a,b,c) if(d_cotype(a,b,c) < S_OKAY) vista_abort(s)
-#define CRGET(s,a,b) if(d_crget(a,b) < S_OKAY) vista_abort(s)
-#define CRREAD(s,a,b,c) if(d_crread(a,b,c) < S_OKAY) vista_abort(s)
-#define CRSET(s,a,b) if(d_crset(a,b) < S_OKAY) vista_abort(s)
-#define CRSTAT(s,a) if(d_crstat(a) < S_OKAY) vista_abort(s)
-#define CRTYPE(s,a,b) if(d_crtype(a,b) < S_OKAY) vista_abort(s)
-#define CRWRITE(s,a,b,c) if(d_crwrite(a,b,c) < S_OKAY) vista_abort(s)
-#define CSMGET(s,a,b,c) if(d_csmget(a,b,c) < S_OKAY) vista_abort(s)
-#define CSMREAD(s,a,b,c,d) if(d_csmread(a,b,c,d) < S_OKAY) vista_abort(s)
-#define CSMSET(s,a,b,c) if(d_csmset(a,b,c) < S_OKAY) vista_abort(s)
-#define CSMWRITE(s,a,b,c,d) if(d_csmwrite(a,b,c,d) < S_OKAY) vista_abort(s)
-#define CSOGET(s,a,b,c) if(d_csoget(a,b,c) < S_OKAY) vista_abort(s)
-#define CSOREAD(s,a,b,c,d) if(d_csoread(a,b,c,d) < S_OKAY) vista_abort(s)
-#define CSOSET(s,a,b,c) if(d_csoset(a,b,c) < S_OKAY) vista_abort(s)
-#define CSOWRITE(s,a,b,c,d) if(d_csowrite(a,b,c,d) < S_OKAY) vista_abort(s)
-#define CSSTAT(s,a,b) if(d_csstat(a,b) < S_OKAY) vista_abort(s)
-#define CTBPATH(s,a) if(d_ctbpath(a) < S_OKAY) vista_abort(s)
-#define CTSCM(s,a,b,c) if(d_ctscm(a,b,c) < S_OKAY) vista_abort(s)
-#define CTSCO(s,a,b,c) if(d_ctsco(a,b,c) < S_OKAY) vista_abort(s)
-#define CTSCR(s,a,b) if(d_ctscr(a,b) < S_OKAY) vista_abort(s)
-#define DBDPATH(s,a) if(d_dbdpath(a) < S_OKAY) vista_abort(s)
-#define DBFPATH(s,a) if(d_dbfpath(a) < S_OKAY) vista_abort(s)
-#define DBLOG(s,a) if(d_dblog(a) < S_OKAY) vista_abort(s)
-#define DBTAF(s,a) if(d_dbtaf(a) < S_OKAY) vista_abort(s)
-#define DBUSERID(s,a) if(d_dbuserid(a) < S_OKAY) vista_abort(s)
-#define DECODE_DBA(s,a,b,c) if(d_decode_dba(a,b,c) < S_OKAY) vista_abort(s)
-#define DELETE(s,a) if(d_delete(a) < S_OKAY) vista_abort(s)
-#define DESTROY(s,a) if(d_desoy(a) < S_OKAY) vista_abort(s)
-#define DISCON(s,a,b) if(d_discon(a,b) < S_OKAY) vista_abort(s)
-#define DISDEL(s,a) if(d_disdel(a) < S_OKAY) vista_abort(s)
-#define ENCODE_DBA(s,a,b,c) if(d_encode_dba(a,b,c) < S_OKAY) vista_abort(s)
-#define FILLNEW(s,a,b,c) if(d_fillnew(a,b,c) < S_OKAY) vista_abort(s)
-#define FINDCO(s,a,b) if(d_findco(a,b) < S_OKAY) vista_abort(s)
-#define FINDFM(s,a,b) if(d_findfm(a,b) < S_OKAY) vista_abort(s)
-#define FINDLM(s,a,b) if(d_findlm(a,b) < S_OKAY) vista_abort(s)
-#define FINDNM(s,a,b) if(d_findnm(a,b) < S_OKAY) vista_abort(s)
-#define FINDPM(s,a,b) if(d_findpm(a,b) < S_OKAY) vista_abort(s)
-#define FREEALL(s) if(d_freeall() < S_OKAY) vista_abort(s)
-#define GTSCM(s,a,b,c) if(d_gtscm(a,b,c) < S_OKAY) vista_abort(s)
-#define GTSCO(s,a,b,c) if(d_gtsco(a,b,c) < S_OKAY) vista_abort(s)
-#define GTSCR(s,a,b) if(d_gtscr(a,b) < S_OKAY) vista_abort(s)
-#define GTSCS(s,a,b,c) if(d_gtscs(a,b,c) < S_OKAY) vista_abort(s)
-#define INITFILE(s,a,b) if(d_initfile(a,b) < S_OKAY) vista_abort(s)
-#define INITIALIZE(s,a) if(d_initialize(a) < S_OKAY) vista_abort(s)
-#define ISMEMBER(s,a,b) if(d_ismember(a,b) < S_OKAY) vista_abort(s)
-#define ISOWNER(s,a,b) if(d_isowner(a,b) < S_OKAY) vista_abort(s)
-#define KEYDEL(s,a,b) if(d_keydel(a,b) < S_OKAY) vista_abort(s)
-#define KEYEXIST(s,a,b) if(d_keyexist(a,b) < S_OKAY) vista_abort(s)
-#define KEYFIND(s,a,b,c) if(d_keyfind(a,b,c) < S_OKAY) vista_abort(s)
-#define KEYFREE(s,a,b) if(d_keyfree(a,b) < S_OKAY) vista_abort(s)
-#define KEYFRST(s,a,b) if(d_keyfrst(a,b) < S_OKAY) vista_abort(s)
-#define KEYLAST(s,a,b) if(d_keylast(a,b) < S_OKAY) vista_abort(s)
-#define KEYLOCK(s,a,b,c) if(d_keylock(a,b,c) < S_OKAY) vista_abort(s)
-#define KEYLSTAT(s,a,b,c) if(d_keylstat(a,b,c) < S_OKAY) vista_abort(s)
-#define KEYNEXT(s,a,b) if(d_keynext(a,b) < S_OKAY) vista_abort(s)
-#define KEYPREV(s,a,b) if(d_keyprev(a,b) < S_OKAY) vista_abort(s)
-#define KEYREAD(s,a) if(d_keyread(a) < S_OKAY) vista_abort(s)
-#define KEYSTORE(s,a,b) if(d_keystore(a,b) < S_OKAY) vista_abort(s)
-#define LOCK(s,a,b,c) if(d_lock(a,b,c) < S_OKAY) vista_abort(s)
-#define MAKENEW(s,a,b) if(d_makenew(a,b) < S_OKAY) vista_abort(s)
-#define MAPCHAR(s,a,b,c,d) if(d_mapchar(a,b,c,d) < S_OKAY) vista_abort(s)
-#define MEMBERS(s,a,b,c) if(d_members(a,b,c) < S_OKAY) vista_abort(s)
-#define OFF_OPT(s,a) if(d_off_opt(a) < S_OKAY) vista_abort(s)
-#define ON_OPT(s,a) if(d_on_opt(a) < S_OKAY) vista_abort(s)
-#define OPEN(s,a,b) if(d_open(a,b) < S_OKAY) vista_abort(s)
-#define RDCURR(s,a,b) if(d_rdcurr(a,b) < S_OKAY) vista_abort(s)
-#define RECFREE(s,a,b) if(d_recfree(a,b) < S_OKAY) vista_abort(s)
-#define RECFRST(s,a,b) if(d_recfrst(a,b) < S_OKAY) vista_abort(s)
-#define RECLAST(s,a,b) if(d_reclast(a,b) < S_OKAY) vista_abort(s)
-#define RECLOCK(s,a,b,c) if(d_reclock(a,b,c) < S_OKAY) vista_abort(s)
-#define RECLSTAT(s,a,b,c) if(d_reclstat(a,b,c) < S_OKAY) vista_abort(s)
-#define RECNEXT(s,a) if(d_recnext(a) < S_OKAY) vista_abort(s)
-#define RECOVER(s,a) if(d_recover(a) < S_OKAY) vista_abort(s)
-#define RECPREV(s,a) if(d_recprev(a) < S_OKAY) vista_abort(s)
-#define RECREAD(s,a,b) if(d_recread(a,b) < S_OKAY) vista_abort(s)
-#define RECSET(s,a,b) if(d_recset(a,b) < S_OKAY) vista_abort(s)
-#define RECSTAT(s,a,b,c) if(d_recstat(a,b,c) < S_OKAY) vista_abort(s)
-#define RECWRITE(s,a,b) if(d_recwrite(a,b) < S_OKAY) vista_abort(s)
-#define RENFILE(s,a,b,c) if(d_renfile(a,b,c) < S_OKAY) vista_abort(s)
-#define RLBCLR(s,a) if(d_rlbclr(a) < S_OKAY) vista_abort(s)
-#define RLBSET(s,a) if(d_rlbset(a) < S_OKAY) vista_abort(s)
-#define RLBTST(s,a) if(d_rlbtst(a) < S_OKAY) vista_abort(s)
-#define SETDB(s,a) if(d_setdb(a) < S_OKAY) vista_abort(s)
-#define SETFILES(s,a) if(d_setfiles(a) < S_OKAY) vista_abort(s)
-#define SETFREE(s,a,b) if(d_setfree(a,b) < S_OKAY) vista_abort(s)
-#define SETLOCK(s,a,b,c) if(d_setlock(a,b,c) < S_OKAY) vista_abort(s)
-#define SETLSTAT(s,a,b,c) if(d_setlstat(a,b,c) < S_OKAY) vista_abort(s)
-#define SETMM(s,a,b,c) if(d_setmm(a,b,c) < S_OKAY) vista_abort(s)
-#define SETMO(s,a,b,c) if(d_setmo(a,b,c) < S_OKAY) vista_abort(s)
-#define SETMR(s,a,b) if(d_setmr(a,b) < S_OKAY) vista_abort(s)
-#define SETOM(s,a,b,c) if(d_setom(a,b,c) < S_OKAY) vista_abort(s)
-#define SETOO(s,a,b,c) if(d_setoo(a,b,c) < S_OKAY) vista_abort(s)
-#define SETOR(s,a,b) if(d_setor(a,b) < S_OKAY) vista_abort(s)
-#define SETPAGES(s,a,b) if(d_setpages(a,b) < S_OKAY) vista_abort(s)
-#define SETRM(s,a,b) if(d_setrm(a,b) < S_OKAY) vista_abort(s)
-#define SETRO(s,a,b) if(d_setro(a,b) < S_OKAY) vista_abort(s)
-#define STSCM(s,a,b,c) if(d_stscm(a,b,c) < S_OKAY) vista_abort(s)
-#define STSCO(s,a,b,c) if(d_stsco(a,b,c) < S_OKAY) vista_abort(s)
-#define STSCR(s,a,b) if(d_stscr(a,b) < S_OKAY) vista_abort(s)
-#define STSCS(s,a,b,c) if(d_stscs(a,b,c) < S_OKAY) vista_abort(s)
-#define TIMEOUT(s,a) if(d_timeout(a) < S_OKAY) vista_abort(s)
-#define TRABORT(s) if(d_trabort() < S_OKAY) vista_abort(s)
-#define TRBEGIN(s,a) if(d_trbegin(a) < S_OKAY) vista_abort(s)
-#define TREND(s) if(d_trend() < S_OKAY) vista_abort(s)
-#define UTSCM(s,a,b,c) if(d_utscm(a,b,c) < S_OKAY) vista_abort(s)
-#define UTSCO(s,a,b,c) if(d_utsco(a,b,c) < S_OKAY) vista_abort(s)
-#define UTSCR(s,a,b) if(d_utscr(a,b) < S_OKAY) vista_abort(s)
-#define UTSCS(s,a,b,c) if(d_utscs(a,b,c) < S_OKAY) vista_abort(s)
-#define WRCURR(s,a) if(d_wrcurr(a) < S_OKAY) vista_abort(s)
-/*------------- end DMACROS.H -------------------*/
-
-
-/*------------- COMPILER DEPENDENT CONSTANTS -------------------*/
-#ifdef TURBO_COMPILER
-  #define FNAME_NULL   "nul"
-  #define LOCAL_SLASH  92      /* ascii back slash char (\) */
-#endif
-
-#ifdef UNIX
-  #define FNAME_NULL   "/dev/null"
-  #define LOCAL_SLASH  47      /* ascii forward slash char (/) */
-#endif
-
-/*------------ COMPILER INDEPENDENT CONSTANTS -------------------*/
-
-#define CACHE_SIZE     64      /* used in vista d_setpages() function */
-#define COMMENT_CHARS  "#*$!\n"  /* identify comment lines in AusText files */
-#define CTRL_Z         26
-#define DIT_FINDSTR    1L      /* DITTO.flags: retained aft FINDSTR srch */
-#define DIT_STOP       2L      /* DITTO.flags: node where user pushed stop */
-#define        END_RETAIN_PAGE 11      /* VT = marks end of RETAIN page */
-/***#define    END_RETAIN_REC  '\f'****/
-#define EXT_CHARTYPE   ".chr"  /* user definable wildcards (from LOADCHR) */
-#define EXT_CANDI      ".can"  /* candidate dictionary words format */
-#define EXT_CONFIG     ".ocf"  /* standard opera configuration file */
-#define EXT_DTBS       ".d99"  /* inverted index file for dbase addrs */
-#define EXT_FZKEY      ".fzk"  /* output of all opera text anal pgms */
-#define EXT_HANDEL     ".han"  /* standard handel profile file format */
-#define EXT_HUFFCODE   ".huf"  /* huffman encode tree (from HUFFCODE) */
-#define EXT_HDECODE    ".c"    /* huffman decode tree (from HUFFCODE) */
-#define EXT_INCLIST    ".inc"  /* "include" list file name extension */
-#define EXT_LIST       ".lst"  /* standard wordlist format: 1 word/line */
-#define EXT_SCHEMA     ".sch"  /* vista database schema format */
-#define EXT_STOPLIST   ".stp"  /* standard stop list format */
-#define EXT_SURVEY     ".sur"  /* standard survey file format */
-#define EXT_TEMP       ".tmp"  /* any kind of temporary file */
-#define EXT_TEXT       ".txt"  /* freeform ascii text format */
-#define EXT_USRNOTES   ".not"  /* user notes flatfile format */
-#define ETXDELIM       "\f\n"  /* default end-of-text (ETX) delim str */
-#define FNAME_AUDIT    "opaudit.lst"
-#define FNAME_AUSCAT           "austools.cat"  /* Austools msgs catalog */
-#define FNAME_AUSTEXT_TUTORIAL  "austext.tut"
-#define FNAME_CONFIRM_LIST      "todscrd.lst"  /* Shankar/Tomita files */
-#define FNAME_DISCARD_DATA      "shdscrd.lst"  /* OEF_discard */
-#define FNAME_DTSRCAT          "dtsearch"      /* DtSearch msgs catalog */
-#define FNAME_HUFFCODE_TAB      "ophuf.huf"    /* huffman encode table */
-#define FNAME_MUIRES   "mui.res"       /* motif class resources file */
-#define FNAME_NOTES_BAC        "usrnotes.not"
-#define FNAME_NOTES_SEM        "usrnotes.sem"
-#define FNAME_ORIGSTOP "orig.stp"
-#define FNAME_README   "readme.txt"
-#define FNAME_SITECONFIG  "dtsearch.ocf"
-#define FNAME_SITENEWS "sitenews.txt"
-#define        MINWIDTH_TOKEN  2       /* default smallest word/stem allowed */
-#define MAX_BMHTAB     256     /* max alphabet size in bmstrstr tables */
-#define MAX_ETXDELIM   100     /* max size of ETX delim string */
-#define MAX_KTCOUNT    64      /* max number of keytypes */
-#define        MAXWIDTH_LWORD  40      /* = sizeof(or_lwordrec.or_lwordkey) */
-#define        MAXWIDTH_SWORD  16      /* = sizeof(or_swordrec.or_swordkey) */
-#define NULLDATESTR    "0/0/0~0:0"
-#define NUM_HOLES      256     /* array size for defragmentation */
-#define OBJDATESTR     "%02d/%02d/%02d~%02d:%02d"
-#define PRODNAME       "DtSearch"
-#define PWDMASKSZ      20
-#define SCREEN_WIDTH   80      /* max len text line in online OPERA pgms */
-#define STEM_CH                15      /* Ctrl-O stemmed word prefix character */
-
-/*--------------- BYTE SWAP DECLARATIONS ------------
- * The default database record format is the data ordering
- * for big endian machines (most significant byte first),
- * also known as "network" order.  For non big_endian platforms,
- * all compiles should include the BYTE_SWAP define.
- * SWABDIR is direction of io to indicate correct byte swap function.
- * HTON is host to network, internal memory to external database file.
- * NTOH is network to host, file to memory. 
- * Actual host_to_network functions defined in <netinit/in.h>
- * which is not yet standardized.
- */
-typedef enum {HTON=1, NTOH} SWABDIR;
-
-extern void swab_dbrec  (struct or_dbrec  *rec,  SWABDIR direction);
-extern void swab_objrec (struct or_objrec *rec,  SWABDIR direction);
-
-#ifdef BYTE_SWAP       /* ie (BYTE_ORDER != BIG_ENDIAN) */
-
-#define HTONL(x)       x = htonl(x)
-#define HTONS(x)       x = htons(x)
-#define NTOHL(x)       x = ntohl(x)
-#define NTOHS(x)       x = ntohs(x)
-
-#else  /* !BYTE_SWAP, ie (BYTE_ORDER == BIG_ENDIAN) */
-
-#define HTONL(x)
-#define HTONS(x)
-#define NTOHL(x)
-#define NTOHS(x)
-
-#endif /* BYTE_SWAP */
-
-
-/*--------------- TESKEY PARSE CHARACTER TYPES ------------
- * Used in langmap.c for linguistic parsing modules.
- * Low order byte reserved for uppercase image of character
- * as locale independent replacement for toupper() and strupr().
- */
-#define CONCORDABLE    0x4000  /* alpha, numeric: inside word */
-#define OPT_CONCORD    0x2000  /* "./-": maybe inside word, maybe outside */
-#define NON_CONCORD    0x1000  /* space, punctuation, etc: outside word */
-
-#define VOWEL          0x0800  /* concordable subtype: aeiou */
-#define CONSONANT      0x0400  /* concordable subtype: all alpha - vowels */
-#define NUMERAL                0x0200  /* concordable subtype: 0-9 */
-#define WHITESPACE     0x0100  /* locale indep replacement for isspace() */
-
-
-/*--------------- SCHEMA CONSTANTS ----------------
- * Associated with fields in database schema (austext.h)
- * and in DITTO structures.
- * Values 20000 - 29999 reserved for custom user applic in all cardinal ints.
- * ORA_ retrieval access location cardinal integers in or_access.
- * ORC_ compression id bit switches in or_compflags.
- * ORD_ bit switches in or_dbflags.
- * (ORO_ bit switches in or_objflags
- * renamed to DtSrFlxxx and moved to Search.h)
- * ORM_ type cardinal integers in or_misctype.
- * (ORT_ object type (or_objtype, or_dbotype, DITTO)
- * renamed to DtSrObj... and moved to Search.h)
- * (ORL_ language id cardinal integers in or_language
- * renamed to DtSrLa... and moved to Search.h)
- */
-#define ORA_VARIES     0         /* object accessibility unspec at curr lvl */
-#define ORA_NOTAVAIL   1         /* obj not directly accessible from engine */
-#define ORA_BLOB       2         /* obj stored in blob recs */
-#define ORA_REFBLOB    3         /* svr ref (filename of object) in blob */
-#define ORA_REFKEY     4         /* svr ref in or_objkey */
-#define ORA_REFHUGEKEY 5         /* svr ref in 'huge' key (misc) rec */
-#define ORA_REFABSTR   6         /* svr ref in abstract (misc rec) */
-#define ORA_CREFBLOB   13        /* clt ref (filename of object) in blob */
-#define ORA_CREFKEY    14        /* clt ref in or_objkey */
-#define ORA_CREFABSTR  16        /* clt ref in abstract (misc rec) */
-
-#define ORC_COMPBLOB   (1<<0)    /* blobs are compressed */
-#define ORC_COMPABSTR  (1<<1)    /* abstracts are compressed */
-
-#define ORD_XWORDS     (1L<<0)   /* inverted index includes exact words */
-#define ORD_XSTEMS     (1L<<1)   /* inverted index includes word stems */
-#define ORD_USEHUGEKEYS        (1L<<4)   /* all direct user access via huge keys */
-#define ORD_NOMARKDEL  (1L<<8)   /* permanently disables mark-for-deletion */
-#define ORD_NONOTES    (1L<<9)   /* permanently disables user notes */
-#define ORD_WIDECHAR   (1L<<10)  /* text is multibyte or wide chars */
-
-#define ORO_DELETE     (1L<<0)   /* obj is marked for deletion */
-#define ORO_OLDNOTES   (1L<<1)   /* obj has old style usernotes in misc rec */
-
-#define ORM_FZKABS     1         /* fzkey[fzkeysz] + abstract[abstrsz] */
-#define ORM_HUGEKEY    2         /* optional 'huge' key */
-#define ORM_OLDNOTES   3         /* old style user notes */
-#define ORM_KEYTYPE    4         /* database keytype rec (KEYTYPE struct) */
-
-/*------------------------- MACROS ---------------------------*/
-/* (Use offsetof() in stddef.h to replace my old OFFSET macro) */
-#define NULLORSTR(str)      ((str)?str:catgets(dtsearch_catd,1,1,"<null>"))
-#define NUMARRAY(arr)       ((sizeof(arr) / sizeof(arr[0])))
-
-/****************************************/
-/*                                     */
-/*               LLIST                 */
-/*                                     */
-/****************************************/
-typedef struct llist_tag {
-    struct llist_tag   *link;
-    void               *data;
-}      LLIST;
-
-/****************************************/
-/*                                     */
-/*          FREE_SPACE_STR             */
-/*                                     */
-/****************************************/
-/* 'holes' structure used for dynamic defragmentation */
-typedef struct holes_str {
-       DtSrINT32       hole_size;
-       DtSrINT32       offset;
-       }       FREE_SPACE_STR;
-
-/****************************************/
-/*                                     */
-/*          FILE_HEADER                */
-/*                                     */
-/****************************************/
-/* 'holes' structure used for dynamic defragmentation */
-typedef        struct          fl_head {
-       DtSrINT32       hole_count [2];
-       FREE_SPACE_STR  hole_array [2] [NUM_HOLES];
-       }       FILE_HEADER;
-
-/****************************************/
-/*                                     */
-/*   CMPLL, sort_llist, compare_llist  */
-/*                                     */
-/****************************************/
-/* Generic LLIST structure typically used for 'lines' of text,
- * as in ausapi.msglist and usrblk.msgs, and binary blobs.
- * See structure typedef below for blob list structure.
- * LLISTs can be sorted by calling sort_llist().
- * The compare function is stored in global pointer 'compare_llist'
- * prior to calling the sort function.
- */
-typedef int (*CMPLL) (LLIST *left, LLIST *right);
-
-/****************************************/
-/*                                     */
-/*              READCFP                */
-/*                                     */
-/****************************************/
-/* Pointer to a function that takes a void
- * pointer and returns a C char (1 octet).
- * Used by linguistic parsers as a character reading cofunction.
- * When parser is reading from a file stream as in dtsrindex,
- * usual cofunction is readchar_ftext().  When parser is reading
- * from a text string as in queries, the usual cofunction
- * is readchar_string() which just accesses next char in string.
- */
-typedef UCHAR  (*READCFP) (void *);
-
-/********************************************************/
-/*                                                     */
-/*                      WORDTREE                       */
-/*                                                     */
-/********************************************************/
-/* A generic structure for creating binary trees of words
- * from stoplists, include-lists, etc.
- */
-typedef struct _bintree_tag {
-    struct _bintree_tag  *rlink;   /* ptr to right node */
-    struct _bintree_tag  *llink;   /* ptr to left node */
-    int                         len;      /* length of word */
-    void                *word;
-    } WORDTREE;
-
-
-/************************************************/
-/*                                             */
-/*                   PARG                      */
-/*                                             */
-/************************************************/
-/* Single argument for first parser call for a text block */
-typedef struct {
-    void       *dblk;          /* dblk is (DBLK *) */
-    FILE       *ftext;         /* Text file being parsed in dtsrindex */
-    void       *string;        /* Query or other string being parsed */
-    void       *etxdelim;      /* End of text (ETX) delimiter string */
-    long       *offsetp;       /* where parser stores word offset */
-    long       flags;
-#define PA_INDEXING    0x0001  /* parse for indexing purposes (dtsrindex) */
-#define PA_HILITING    0x0002  /* parse for hiliting purposes */
-#define PA_MSGS                0x0004  /* explain parse failures with msgs */
-    void       *extra;         /* reserved for generic use by parsers */
-    }  PARG;
-
-
-/********************************************************/
-/*                                                     */
-/*                       DBLK                          */
-/*                                                     */
-/********************************************************/
-/* One element of a linked list of universal information
- * about all databases accessible,
- * to an online search engine instance, chained off of
- * the global OE_dblist.  It is also used individually
- * by offline build tools to store database data.
- * It contains pointers to linguistic processors and data structures,
- * data derived from the site configuration file,
- * data derived and used by the DBMS,
- * and some fields reflecting recommended initial user choices. 
- * Changes here should also be reflected in initblks.c,
- * austext.sch, initausd.c, and in oeinit.c.
- */
-typedef struct dblk_tag
-    {
-    struct dblk_tag *link;     /* ptr to next dblk in list */
-    char       name [11];      /* 1 - 8 char dictionary name */
-    char       is_selected;    /* bool: initial gui selection status */
-    char       *label;         /* database description/label string for UI */
-    long       flags;
-    char       *path;          /* where to find all database files */
-    FILE       *syofile;       /* symptom offset (ranges) d97 file */
-    FILE       *syifile;       /* symptom index d98 file */
-    void       *ranges;        /* contents of syofile read into ram */
-    FILE       *iifile;        /* inverted words index d99 file */
-    time_t     iimtime;        /* last time d99 was modified */
-    int                vistano;        /* vista database number */
-    int                ktcount;        /* number of nodes in keytypes array */
-    DtSrKeytype        *keytypes;      /* record types in this database */
-    DBREC      dbrec;          /* copy of database's dbrec record */
-    void       *zblk;          /* used only for semantic processing */
-
-    /*----- Huffman Compression -----*/
-    time_t     hufid;          /* tree identification atom */
-    int                hufroot;        /* index to inverted tree root (array bottom) */
-    int                *huftree;       /* beginning of huffman tree array */
-
-    /*----- Language Fields -----*/
-    char       *fname_stp;     /* name of stoplist file */
-    char       *fname_inc;     /* name of include-list file */
-    char       *fname_sfx;     /* name of suffixes file */
-    int                *charmap;       /* parse/stem table for char set */
-    WORDTREE   *stoplist;      /* root of stoplist tree */
-    WORDTREE   *inclist;       /* root of include-list tree */
-    char       *(*lstrupr) (char *string, struct dblk_tag *dblk);
-    char       *(*parser)  (PARG *parg);
-    void       *parse_extra;   /* eg additional word trees */
-    char       *(*stemmer) (char *wordin, struct dblk_tag *dblk);
-    long       stem_flags;     /* stemmer options */
-    void       *stem_extra;    /* eg suffix tables */
-    void       *lang_extra;    /* additional language dependent data */
-    long       lang_flags;     /* language dependent switches */
-#define LF_DUP_STP     0x0001  /* duplicate stop list */
-#define LF_DUP_INC     0x0002  /* duplicate include list */
-#define LF_DUP_SFX     0x0004  /* duplicate suffixes list */
-
-    /*----- User Search Parameters -----*/
-    int                maxhits;        /* max # hits to be returned from searches */
-    void       *resuser;       /* reserved for private use by users */
-    }  DBLK;
-
-
-/*------------------------- GLOBALS -------------------------*/
-/* DtSearchExit (austext_exit) and DtSearchExitUser (austext_exit_user)
- * are in ausexit.c too but are "public" in DtSearch (defined in Search.h).
- */
-extern char     *aa_argv0;             /* globals.c */
-extern int     aa_maxhits;             /* aajoint.c */
-extern FILE     *aa_stderr;            /* globals.c */
-extern int     ascii_charmap[];        /* langmap.c */
-extern LLIST   *ausapi_msglist;        /* globals.c */
-extern void    (*austext_exit_first) (int);    /* ausexit.c */
-extern void    (*austext_exit_dbms) (int);     /* ausexit.c */
-extern void    (*austext_exit_comm) (int);     /* ausexit.c */
-extern void    (*austext_exit_endwin) (int);   /* ausexit.c */
-extern void    (*austext_exit_mem) (int);      /* ausexit.c */
-extern void    (*austext_exit_last) (int);     /* ausexit.c */
-extern void    (*austext_exit_user) (int);     /* ausexit.c */
-extern nl_catd austools_catd;          /* globals.c */
-extern CMPLL   compare_llist;
-extern nl_catd dtsearch_catd;          /* globals.c */
-extern unsigned long
-               duprec_hashsize;        /* isduprec.c */
-extern int     latin_charmap[];        /* langmap.c */
-
-
-/*------------------------ FUNCTION PROTOTYPES ------------------------*/
-extern void    add_free_space(FREE_SPACE_STR *del_rec, FILE_HEADER *flh);
-extern void    append_ext (char *buffer, int buflen,
-                   char *fname, char *fext);
-extern int     austext_dopen (
-                       char            *dbname,
-                       char            *dbpath,
-                       char            *d2xpath,
-                       int             cache_size,
-                       DBREC           *bufptr);
-extern void    *austext_malloc (size_t size, char *location, void *ignored);
-extern char    *bmhcore (
-                       UCHAR   *text,
-                       size_t  txtlen,
-                       UCHAR   *pattern,
-                       size_t  patlen,
-                       size_t  *bmhtable);
-extern void    bmhtable_build (
-                       UCHAR   *pattern,
-                       size_t  patlen,
-                       size_t  *bmhtable);
-extern char    *bmstrstr (
-                       UCHAR   *text,
-                       size_t  txtlen,
-                       UCHAR   *pattern,
-                       size_t  patlen);
-extern int     clean_wrap (char *string, int linelen);
-extern LLIST   *cutnode_llist (LLIST *node, LLIST **llistp);
-extern void    (*dberr_exit)(int exitcode);   /* defaults to exit() */
-extern void    delete_whitespace (char *linebuf);
-extern void    discard_to_ETX (PARG *parg);
-extern int     endstroke (int c);
-extern  void    put_new_word(struct or_hwordrec *recbuf, int vistano);
-extern FREE_SPACE_STR
-               *find_free_space (DtSrINT32 req_size, FILE_HEADER *flh);
-extern void    free_llist (LLIST **llhead);
-extern int     fread_d99_header (FILE_HEADER *flh, FILE *fp);
-extern int     fwrite_d99_header (FILE_HEADER *flh, FILE *fp);
-extern char    *get_email_addr (void);
-extern char    *getnews (char *fname, int use_copyr);
-extern void    hc_decode (UCHAR *input_bitstring, UCHAR *output_charbuf,
-                       int outbuf_size, time_t encode_id);
-extern int     hc_encode (struct or_blobrec *targ, UCHAR *src,
-                       int srclen, int force_flush);
-extern void    init_header (FILE *fp, FILE_HEADER *flh);
-extern int     is_compatible_version (char *callers_vers, char *local_vers);
-extern int     is_concordable (char *word, int *charmap);
-extern int     is_duprec (char *recid);
-extern int     is_objdatestr (char *string, DtSrObjdate *objdptr);
-extern int     is_objdatetm (struct tm *objdatetm);
-extern void    join_llists (LLIST **mainlist, LLIST **sublist);
-extern char    *jpn_parser (PARG *parg);
-extern int     load_custom_language (DBLK *dblk, DBLK *dblist);
-extern int     load_jpn_language (DBLK *dblk, DBLK *dblist);
-extern int     load_language (DBLK *dblk, DBLK *dblist);
-extern int     load_wordtree (
-                   WORDTREE    **treetop,
-                   DBLK        *dblk,
-                   char        *fname,
-                   int         do_teskey_test);
-extern char    *null_stemmer (char *word, DBLK *dblk);
-extern char    *null_lstrupr (char *string, DBLK *dblk);
-extern char    *objdate2fzkstr (DtSrObjdate objdate);
-extern struct tm
-               *objdate2tm (DtSrObjdate objdate);
-extern int     objdate_in_range (DtSrObjdate recdate,
-                       DtSrObjdate date1, DtSrObjdate date2);
-extern int     offline_kbhit (void);
-extern int     open_dblk (DBLK **dblist, int numpages, int debugging);
-extern LLIST   *pop_llist (LLIST **llistp);
-extern void    print_dbrec (char *dbname, struct or_dbrec *dbrec);
-extern int     quit_escape(void);
-extern UCHAR   readchar_ftext (PARG *parg);
-extern UCHAR   readchar_string (UCHAR *string);
-extern char    *remove_spaces (char *string);
-extern void    replace_ext (char *buffer, int buflen,
-                   char *fname, char *fext);
-extern LLIST   *sort_llist (LLIST *list_header);
-extern char    *teskey_parser (PARG *parg);
-extern DtSrObjdate
-               tm2objdate (struct tm *tmptr);
-#if !defined(__linux__)
-#ifndef _ALL_SOURCE
-extern char    *strdup (const char *s);
-#endif
-#endif
-extern void    toggle_insert (void);
-extern void    unload_custom_language (DBLK *dblk);
-extern void    unload_language (DBLK *dblk);
-extern void    vista_abort (char *location);
-extern char    *vista_msg (char *location);
-
-/************************ SearchP.h ********************************/
-#endif  /* _SearchP_h */
-
diff --git a/cde/lib/DtSearch/boolpars.h b/cde/lib/DtSearch/boolpars.h
deleted file mode 100644 (file)
index ef21f96..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 27
- *
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1996
- *   All Rights Reserved
- *   Licensed Materials - Property of IBM
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-#ifndef _boolpars_h
-#define _boolpars_h
-/******************** BOOLPARS.H ********************
- * $Id: boolpars.h /main/1 1996/03/29 17:03:47 cde-ibm $
- * February 1996.
- * Header for boolpars.c AusText/DtSearch yacc-based boolean query parser.
- *
- * FORMAT OF TRUTH TABLE:
- * Pointer to TRUTHTAB struct is main yacc stack value.
- * Represents 256 unsigned chars, every possible permutation of 8 (max)
- * query stems.  The unsigned chars ("permutes") are bit vectors.
- * Bit #0 (lowest order) is for first word in stemsarray stems[0],
- * bit #1 is stems[1], etc.
- * Example: truthtab for query consisting of a single word,
- *     call it 'A' (assigned bit #0), is the 128 chars 1, 3, 5, 7, ...,
- *     ie all bitvector permutations with low order bit turned on.
- * B:      (bit #1) is the 128 chars 2, 3, 6, 7, ..., ie all permutations
- *        with 2nd bit turned on.
- * A & B:  Intersection of truth tables: the 64 chars 3, 7, ...,
- *        all the bit vector permutations they have in common.
- * A | B:  Union of truth tables:  the 192 permutes 1,2,3, 5,6,7, 9,10,11...
- * ~B:     Complement of truth table, U - B: the 128 chars 0, 1, 4, 5, ...,
- *        ie every bitvector permutation NOT in B.
- * 
- * The zero permute (all bits zero) refers to the entire
- * balance of the database containing none of the query stems.
- * Needless to say searches with the zero permute in their
- * truth table will take an incredibly long time!
- *
- * The 'universal set' U is all 256 possible permutes.
- * The 'empty set' is indicated by truthtab.pmsz == 0;
- *
- * The permutes in a truth table are maintained in
- * ascending order for ease of comparisons.
- *
- * Truth table manipulations require and depend on
- * DtSrMAX_STEMCOUNT being defined only as 8.
- *
- * Newly allocated truth tables are maintained on the 'ttlist'
- * using the 'next' field.  This is to ensure they are eventually
- * freed to prevent memory leaks.
- *
- * If 'stemno' >= 0 it points to the word in usrblk.stems to which
- * it applies.  Stemno == -1 means truth table is not directly
- * associated with a word in usrblk.stems.
- * 
- * $Log$
- * Revision 1.1  1996/03/05  15:52:06  miker
- * Initial revision
- *
- */
-
-#define COLLOC_STEM_FORMAT     "@%02d%02d%d"
-
-/****************************************/
-/*                                     */
-/*             TRUTHTAB                */
-/*                                     */
-/****************************************/
-/* Truth table returned from boolean_parse() */
-typedef struct tttag {
-    struct tttag   *next;
-    int                   stemno;      /* -1 means not assoc with stems[] array */
-    int                   pmsz;        /* number of bytes in permutes array */
-    unsigned char  *permutes;  /* array of bit vector permutations */
-    }  TRUTHTAB;
-
-/****************************************/
-/*                                     */
-/*              Globals                */
-/*                                     */
-/****************************************/
-extern int     qry_has_no_NOTs;
-extern int     qry_is_all_ANDs;
-extern int     parser_invalid_wordcount;
-extern TRUTHTAB        final_truthtab;
-
-/****************************************/
-/*                                     */
-/*         Function Prototypes         */
-/*                                     */
-/****************************************/
-extern void    add_syntax_errmsg (int msgno);
-extern TRUTHTAB        *boolyac_AND (TRUTHTAB *tt1, TRUTHTAB *tt2);
-extern TRUTHTAB        *boolyac_COLLOC (TRUTHTAB *tt1, int colval, TRUTHTAB *tt2);
-extern TRUTHTAB        *boolyac_NOT (TRUTHTAB *tt1);
-extern TRUTHTAB        *boolyac_OR (TRUTHTAB *tt1, TRUTHTAB *tt2);
-extern TRUTHTAB *copy_final_truthtab (TRUTHTAB *tt);
-
-/******************** BOOLPARS.H *********************/
-#endif /* _boolpars_h */
diff --git a/cde/lib/DtSearch/dberr.h b/cde/lib/DtSearch/dberr.h
deleted file mode 100644 (file)
index dedb3f8..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dberr.h /main/5 1996/09/23 21:00:53 cde-ibm $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 27
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1995
- *   All Rights Reserved
- *   Licensed Materials - Property of IBM
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-/* $Log$
- * Revision 2.2  1995/10/24  21:37:15  miker
- * Add prolog.
- * */
-/* dberr error/status codes */
-static char *user_error[] = {
-   "database not opened",
-   "invalid set",
-   "invalid record",
-   "invalid database",
-   "invalid field name",
-   "invalid db_address",
-   "no current record",
-   "set has no current owner",
-   "set has no current member",
-   "key value required",
-   "invalid lock value",
-   "record is owner of non-empty set(s)",
-   "record is member of set(s)",
-   "member already owned",
-   "field is a compound key",
-   "record not connected to set",
-   "field is not a valid key",
-   "record not legal owner of set",
-   "record not legal member of set",
-   "error in d_setpages (database open or bad param)",
-   "incompatible dictionary file",
-   "illegal attempt to delete system record",
-   "illegal attempt to lock locked set/record",
-   "attempt to access unlocked set/record",
-   "transaction id not supplied",
-   "transaction already active",
-   "transaction not active",
-   "transaction cannot begin due to locked files",
-   "cannot free locks within a transaction",
-   "too many changed database pages",
-   "cannot update database outside a transaction",
-   "exclusive access required",
-   "write locks not allowed on static files",
-   "unspecified or duplicate user id",
-   "database, path or file name too long",
-   "invalid file number was passed to d_renfile",
-   "field is not an optional key field",
-   "field is not defined in current record type",
-   "record/field has/in a compound key",
-   "invalid record or set number",
-   "record/set not timestamped",
-   "bad DBUSERID (contains non-alphanumeric)",
-   "NetBIOS has not been installed on machine",
-   "wrong number of elements in DBDPATH",
-   "wrong number of elements in DBFPATH",
-   "no current record type",
-   "invalid country table sort string",
-   "database not closed"
-};
-static char *system_error[] = {
-   "no more space on file",
-   "system error",
-   "page fault",
-   "no working file in dio",
-   "unable to allocate sufficient memory",
-   "error opening file",
-   "unable to get access to database taf file",
-   "database taf/log file error",
-   "inconsistent database locks",
-   "file record limit exceeded",
-   "key file inconsistency",
-   "maximum concurrent user limit exceeded",
-   "error seeking in database file",
-   "invalid file specified",
-   "error reading from a database/overflow file",
-   "lock manager synchronization error",
-   "debug check interrupt",
-   "network communications error",
-   "auto-recovery in process",
-   "error writing to a database/overflow file",
-   "no lock manager is installed",
-   "DBUSERID is already being used",
-   "the lock manager is busy"
-};
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dberr.h */
diff --git a/cde/lib/DtSearch/dproto.h b/cde/lib/DtSearch/dproto.h
deleted file mode 100644 (file)
index e0fd453..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dproto.h /main/2 1996/05/09 03:55:20 drk $ */
-/*----------------------------------------------------------------------------
-   dproto.h: db_VISTA (user) function declaration header file
-
-   (C) Copyright 1988 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
-*/
-
-
-int d_setfiles(P1(int));                               /* dio.c */
-int d_setpages(P1(int) Pi(int));                       /* dio.c */
-int d_trbound(P0);                             /* trlog.c */
-int d_trlog(P1(int) Pi(int) Pi(CONST char FAR *) Pi(int)); 
-                                                               /* trlog.c */
-int d_trmark(P0);                              /* trlog.c */
-int d_tron(P0);                                        /* trlog.c */
-int d_troff(P0);                                       /* trlog.c */
-int d_decode_dba(P1(DB_ADDR) Pi(int FAR *) Pi(long FAR *)); 
-                                                               /* dbacode.c */
-int d_encode_dba(P1(int) Pi(long) Pi(DB_ADDR FAR *)); 
-                                                               /* dbacode.c */
-
-#define d_memlock(p)           /**/
-#define d_memlock_group(lg)    S_OKAY
-#define d_memunlock(p)         /**/
-#define d_memunlock_group(lg)  /**/
-char FAR * d_alloc(P1(unsigned));              /* alloc.c */
-char FAR * d_calloc(P1(unsigned) Pi(unsigned));        /* alloc.c */
-void d_free(P1(CHAR_P FAR *));                 /* alloc.c */
-
-#ifndef MULTI_TASK                     /* MULTI_TASK */
-#define dt_opentask(a) S_OKAY
-#define dt_closetask(a) S_OKAY
-
-int d_close(P0);                                       /* dblfcns.c */
-int d_cmstat(P1(int) DBN_Dn);                  /* cmstat.c */
-int d_cmtype(P1(int) Pi(int FAR *) DBN_Dn);    /* cmtype.c */
-int d_connect(P1(int) DBN_Dn);                 /* connect.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_costat(P1(int) DBN_Dn);                  /* costat.c */
-#endif                                    /* NO_TIMESTAMP */
-int d_cotype(P1(int) Pi(int FAR *) DBN_Dn);    /* cotype.c */
-int d_crget(P1(DB_ADDR FAR *) DBN_Dn);         /* crget.c */
-int d_crread(P1(long) Pi(char FAR *) DBN_Dn);  /* crread.c */
-int d_crset(P1(DB_ADDR FAR *) DBN_Dn);         /* crset.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_crstat(P0);                              /* crstat.c */
-#endif                                    /* NO_TIMESTAMP */
-int d_crtype(P1(int FAR *) DBN_Dn);            /* crtype.c */
-int d_crwrite(P1(long) Pi(char FAR *) DBN_Dn);         /* crwrite.c */
-int d_csmget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);        /* csmget.c */
-int d_csmread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); 
-                                                               /* csmread.c */
-int d_csmset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);        /* csmset.c */
-int d_csmwrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); 
-                                                               /* csmwrite.c */
-int d_csoget(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);        /* csoget.c */
-int d_csoread(P1(int) Pi(long) Pi(char FAR *) DBN_Dn); 
-                                                               /* csoread.c */
-int d_csoset(P1(int) Pi(DB_ADDR FAR *) DBN_Dn);        /* csoset.c */
-int d_csowrite(P1(int) Pi(long) Pi(CONST char FAR *) DBN_Dn); 
-                                                               /* csowrite.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_csstat(P1(int) DBN_Dn);                  /* csstat.c */
-int d_ctscm(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* ctscm.c */
-int d_ctsco(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* ctsco.c */
-int d_ctscr(P1(ULONG FAR *));                  /* ctscr.c */
-#endif                                    /* NO_TIMESTAMP */
-#ifndef NO_COUNTRY
-int d_ctbpath(P1(CONST char FAR *));           /* pathfcns.c */
-#endif                                    /* NO_COUNTRY */
-int d_dbdpath(P1(CONST char FAR *));           /* dbdpath.c */
-int d_dbfpath(P1(CONST char FAR *));           /* dbfpath.c */
-int d_dblog(P1(CONST char FAR *));             /* dblog.c */
-int d_dbtaf(P1(CONST char FAR *));             /* dbtaf.c */
-int d_dbuserid(P1(CONST char FAR *));          /* dbuserid.c */
-int d_delete(DBN_D1);                          /* delete.c */
-int d_disdel(DBN_D1);                          /* disdel.c */
-int d_recnext(DBN_D1);                         /* recnext.c */
-int d_recprev(DBN_D1);                         /* recprev.c */
-int d_destroy(P1(CONST char FAR *));           /* destroy.c */
-int d_discon(P1(int) DBN_Dn);                  /* discon.c */
-int d_fillnew(P1(int) Pi(CONST char FAR *) DBN_Dn); /* fillnew.c */
-int d_findco(P1(int) DBN_Dn);                  /* findco.c */
-int d_findfm(P1(int) DBN_Dn);                  /* findfm.c */
-int d_findlm(P1(int) DBN_Dn);                  /* findlm.c */
-int d_findnm(P1(int) DBN_Dn);                  /* findnm.c */
-int d_findpm(P1(int) DBN_Dn);                  /* findpm.c */
-int d_freeall(P0);                             /* dblfcns.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_gtscm(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* gtscm.c */
-int d_gtsco(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* gtsco.c */
-int d_gtscr(P1(ULONG FAR *));                  /* gtscr.c */
-int d_gtscs(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* gtscs.c */
-#endif                                    /* NO_TIMESTAMP */
-int d_initialize(DBN_D1);                              /* initial.c */
-int d_initfile(P1(FILE_NO) DBN_Dn);            /* initial.c */
-int d_ismember(P1(int) DBN_Dn);                        /* ismember.c */
-int d_isowner(P1(int) DBN_Dn);                 /* isowner.c */
-int d_keydel(P1(long) DBN_Dn);                 /* keydel.c */
-int d_keyexist(P1(long) DBN_Dn);                       /* keyexist.c */
-int d_keyfind(P1(long) Pi(CONST char FAR *) DBN_Dn); 
-                                                               /* keyfind.c */
-int d_keyfree(P1(long) DBN_Dn);                        /* dblfcns.c */
-int d_keyfrst(P1(long) DBN_Dn);                        /* keyfrst.c */
-int d_keylast(P1(long) DBN_Dn);                        /* keylast.c */
-int d_keylock(P1(long) Pi(char FAR *) DBN_Dn);         /* dblfcns.c */
-int d_keylstat(P1(long) Pi(char FAR *) DBN_Dn);        /* dblfcns.c */
-int d_keynext(P1(long) DBN_Dn);                        /* keynext.c */
-int d_keyprev(P1(long) DBN_Dn);                        /* keyprev.c */
-int d_keyread(P1(char FAR *));                 /* keyfcns.c */
-int d_keystore(P1(long) DBN_Dn);                       /* keystore.c */
-int d_lock(P1(int) Pi(LOCK_REQUEST FAR *) DBN_Dn); /* dblfcns.c */
-int d_makenew(P1(int) DBN_Dn);                 /* makenew.c */
-int d_mapchar(P1(unsigned char) Pi(unsigned char) 
-                     Pi(CONST char FAR *) Pi(unsigned char));  /* mapchar.c */
-int d_members(P1(int) Pi(LONG FAR *) DBN_Dn);  /* members.c */
-int d_off_opt(P1(int));                                /* options.c */
-int d_on_opt(P1(int));                         /* options.c */
-int d_open(P1(CONST char FAR *) Pi(CONST char FAR *)); 
-                                                               /* dblfcns.c */
-int d_rerdcurr(P1(DB_ADDR FAR **));            /* rwcurr.c */
-int d_rdcurr(P1(DB_ADDR FAR **) Pi(int FAR *));        /* rwcurr.c */
-int d_wrcurr(P1(DB_ADDR FAR *));                       /* rwcurr.c */
-int d_recfree(P1(int) DBN_Dn);                 /* dblfcns.c */
-int d_recfrst(P1(int) DBN_Dn);                 /* recfrst.c */
-int d_reclast(P1(int) DBN_Dn);                 /* reclast.c */
-int d_reclock(P1(int) Pi(char FAR *) DBN_Dn);  /* dblfcns.c */
-int d_reclstat(P1(int) Pi(char FAR *) DBN_Dn);         /* dblfcns.c */
-int d_recover(P1(CONST char FAR *));           /* recover.c */
-int d_recread(P1(char FAR *) DBN_Dn);          /* recread.c */
-int d_recset(P1(int) DBN_Dn);                          /* recset.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_recstat(P1(DB_ADDR) Pi(ULONG));          /* recstat.c */
-#endif                                    /* NO_TIMESTAMP */
-int d_recwrite(P1(CONST char FAR *) DBN_Dn);   /* recwrite.c */
-int d_renfile(P1(CONST char FAR *) Pi(FILE_NO) 
-                               Pi(CONST char FAR *));          /* renfile.c */
-int d_retries(P1(int));                                /* dblfcns.c */
-int d_rlbclr(P0);                              /* dblfcns.c */
-int d_rlbset(P0);                              /* dblfcns.c */
-int d_rlbtst(P0);                              /* dblfcns.c */
-int d_set_dberr(P1(FARPROC));                  /* dberr.c */
-#ifndef ONE_DB                            /* ONE_DB */
-int d_setdb(P1(int));                          /* setdb.c */
-#endif                                    /* ONE_DB */
-int d_setfree(P1(int) DBN_Dn);                 /* dblfcns.c */
-int d_setkey(P1(long) Pi(CONST char FAR *) DBN_Dn); /* makenew.c */
-int d_setlock(P1(int) Pi(char FAR *) DBN_Dn);  /* dblfcns.c */
-int d_setlstat(P1(int) Pi(char FAR *) DBN_Dn);         /* dblfcns.c */
-int d_setmm(P1(int) Pi(int) DBN_Dn);           /* setmm.c */
-int d_setmo(P1(int) Pi(int) DBN_Dn);           /* setmo.c */
-int d_setmr(P1(int) DBN_Dn);                   /* setmr.c */
-int d_setom(P1(int) Pi(int) DBN_Dn);           /* setom.c */
-int d_setoo(P1(int) Pi(int) DBN_Dn);           /* setoo.c */
-int d_setor(P1(int) DBN_Dn);                   /* setor.c */
-int d_setrm(P1(int) DBN_Dn);                   /* setrm.c */
-int d_setro(P1(int) DBN_Dn);                   /* setro.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_stscm(P1(int) Pi(ULONG) DBN_Dn);                 /* stscm.c */
-int d_stsco(P1(int) Pi(ULONG) DBN_Dn);                 /* stsco.c */
-int d_stscr(P1(ULONG));                                /* stscr.c */
-int d_stscs(P1(int) Pi(ULONG) DBN_Dn);                 /* stscs.c */
-#endif                                    /* NO_TIMESTAMP */
-int d_timeout(P1(int));                                /* dblfcns.c */
-int d_trabort(P0);                             /* dblfcns.c */
-int d_trbegin(P1(CONST char FAR *));           /* dblfcns.c */
-int d_trend(P0);                                       /* dblfcns.c */
-#ifndef NO_TIMESTAMP                      /* NO_TIMESTAMP */
-int d_utscm(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* utscm.c */
-int d_utsco(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* utsco.c */
-int d_utscr(P1(ULONG FAR *));                  /* utscr.c */
-int d_utscs(P1(int) Pi(ULONG FAR *) DBN_Dn);   /* utscs.c */
-#endif                                    /* NO_TIMESTAMP */
-
-#endif                                 /* MULTI_TASK */
-
-int dberr(P1(int));                            /* dberr.c */
-
-#define D_FUNCTIONS_H
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */
diff --git a/cde/lib/DtSearch/raima/Makefile.am b/cde/lib/DtSearch/raima/Makefile.am
new file mode 100644 (file)
index 0000000..a317107
--- /dev/null
@@ -0,0 +1,48 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libraima.la
+
+libraima_la_LIBADD = -lc -lm
+
+libraima_la_CFLAGS = -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+                    @DT_INCDIR@ \
+                    -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
+                    -DNO_TRANS -DUNIX -D_POSIX_SOURCE -DMULTIBYTE
+
+if LINUX
+libraima_la_CFLAGS += -DBYTE_SWAP -D_XOPEN_SOURCE=700
+endif
+
+if BSD
+libraima_la_CFLAGS += -DBYTE_SWAP -D_XOPEN_SOURCE=700
+endif
+
+if SOLARIS
+libraima_la_CFLAGS += -DBYTE_SWAP -D_XOPEN_SOURCE=500 -DNO_REGCOMP
+endif
+
+if HPUX
+libraima_la_CFLAGS += -DMESSAGE_CAT
+endif
+
+
+libraima_la_SOURCES = alloc.c     cmtype.c   connect.c \
+                     cotype.c    crget.c    crread.c    crset.c \
+                     crtype.c    crwrite.c  csmget.c    csmread.c \
+                     csmset.c    csmwrite.c  csoget.c   csoread.c   csoset.c \
+                     csowrite.c \
+                     dbacode.c   dbdpath.c   dbfpath.c  dblfcns.c \
+                     dbswab.c    dbuserid.c \
+                     delete.c    destroy.c   dio.c      discon.c    disdel.c \
+                     fillnew.c   findco.c    findfm.c   findlm.c    findnm.c \
+                     findpm.c \
+                     initial.c   inittab.c   ismember.c \
+                     isowner.c   keydel.c    keyexist.c keyfcns.c \
+                     keyfind.c   keyfrst.c   keylast.c  keynext.c   keyprev.c \
+                     keystore.c  libfcns.c   makenew.c  mapchar.c \
+                     members.c   oflag.c    opens.c     options.c \
+                     pathfcns.c  recfcns.c   recfrst.c  reclast.c   recnext.c \
+                     recprev.c   recread.c   recset.c \
+                     recwrite.c  renfile.c  rwcurr.c    setdb.c \
+                     setmm.c     setmo.c     setmr.c    setom.c     setoo.c \
+                     setor.c     setrm.c     setro.c    startup.c
diff --git a/cde/lib/DtSearch/raima/dblock.h b/cde/lib/DtSearch/raima/dblock.h
deleted file mode 100644 (file)
index 3614eae..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dblock.h /main/2 1996/05/09 04:02:57 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: FCNINIT
- *
- *   ORIGINS: 157
- *
- */
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  368 28-Jul-88 RSC Integrate BSD changes into code
-  115 16-Aug-88 RSC Integrate VAX/VMS changes into source code
-  423 09-Sep-88 RSC Change variables to be compatible with MULTI_TASK
-  420 07-Oct-88 RSC Unoptimized use of fl_list (full of bugs)
-  441 09-Dec-88 RSC Modified defn of FCNPID for general lockmgr
-*/
-
-/* Lock Manager/Runtime function interaction */
-
-/* Network Bios Status codes */
-#define N_BUSY         0xff
-#define N_OKAY         0x00
-#define N_TIMEOUT      0x05
-#define N_SESCLOSED    0x0a
-#define N_DUPNAME      0x0d
-#define N_TABFULL      0x11
-#define N_OPENREJ      0x12
-#define N_CALLNAME     0x14
-#define N_NAMEUSED     0x16
-#define N_NAMEDEL      0x17
-#define N_SESABORT     0x18
-#define N_INTFBUSY     0x21
-#define N_COMMANDS     0x22
-
-/* Function/Status codes */
-#define L_RECOVER      -5
-#define L_QUEUEFULL    -4
-#define L_TIMEOUT      -3
-#define L_UNAVAIL      -2
-#define L_SYSERR       -1
-
-#define L_OKAY         0
-
-#define L_DBOPEN       1
-#define L_DBCLOSE      2
-#define L_LOCK         3
-#define L_FREE         4
-#define L_TRCOMMIT     5
-#define L_TREND                6
-#define L_SETTIME      7
-#define L_RECDONE      8
-#define L_LOGIN                9
-#define L_DELETE       10
-
-#ifndef LOGFILELEN
-#define LOGFILELEN 48
-#endif
-
-/* Macros for VMS mailbox usage */
-
-
-typedef struct LM_LOCKREQ_S {
-    INT  fref;
-    INT  type;
-} LM_LOCKREQ;
-
-/* Message packets, Runtime to Lock Manager */
-
-/* Some macro / typdefs to make this file much more readable */
-
-#define PERMISSION 0666
-
-#ifdef GENERAL
-
-/*  Defines for GENERAL LOCKMGR */
-
-#define FCNPID INT fcn;
-#define FCNDEF  INT fcn;
-#define FCNINIT()  0
-typedef char LM_FILEID;
-
-#else                                  /* GENERAL */
-
-
-/*  Defines for UNIX SYS-V */
-
-#define FCNPID  LONG fcn;\
-               int pid;
-#define FCNDEF  LONG fcn;
-#define FCNINIT()  0
-
-/*  Defines for both UNIX SYS-V and BSD */
-
-typedef struct LM_FILEID_S {
-    ino_t  inode;
-    dev_t  device;
-} LM_FILEID;
-
-#endif                                 /* GENERAL */
-
-typedef struct LM_LOGIN_S {
-    FCNPID
-    char dbusrid[80];
-} LM_LOGIN;
-
-typedef struct LM_DBOPEN_S {
-    FCNPID
-    INT  nfiles;
-    INT  type;
-    LM_FILEID fnames[1];
-} LM_DBOPEN;
-
-typedef struct LM_DBCLOSE_S {
-    FCNPID
-    INT  nfiles;
-    INT  frefs[1];
-} LM_DBCLOSE;
-
-typedef struct LM_LOCK_S {
-    FCNPID
-    INT  nfiles;
-    LM_LOCKREQ locks[1];
-} LM_LOCK;
-
-typedef struct LM_RECOVERED_S {
-    FCNPID
-} LM_RECOVERED;
-
-typedef struct LM_FREE_S {
-    FCNPID
-    INT  nfiles;
-    INT  frefs[1];
-} LM_FREE;
-
-typedef struct LM_TRCOMMIT_S {
-    FCNPID
-    char logfile[LOGFILELEN];
-} LM_TRCOMMIT;
-
-typedef struct LM_TREND_S {
-    FCNPID
-} LM_TREND;
-
-typedef struct LM_SETTIME_S {
-    FCNPID
-    INT  secs;
-} LM_SETTIME;
-
-
-/* Message packets, Lock Manager to Runtime */
-
-
-typedef struct LR_DBOPEN_S {
-    FCNDEF
-    INT  status;
-    char logfile[LOGFILELEN];
-    INT  nusers;
-    INT  nfiles;
-    INT  frefs[1];
-} LR_DBOPEN;
-
-typedef struct LR_LOCK_S {
-    FCNDEF
-    INT  status;
-    char logfile[LOGFILELEN];
-} LR_LOCK;
-
-#define DBLOCK_H
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dblock.h */
diff --git a/cde/lib/DtSearch/raima/dbtype.h b/cde/lib/DtSearch/raima/dbtype.h
deleted file mode 100644 (file)
index 5c7eea8..0000000
+++ /dev/null
@@ -1,534 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: ALLOC
- *              BITS
- *              CALLOC
- *              DB_ENTER
- *              DB_REF
- *              FREE
- *              LOCK_SET
- *              MEM_LOCK
- *              MEM_UNLOCK
- *              NUM2EXT
- *              NUM2INT
- *              ORIGIN
- *              RETURN
- *              RN_REF
- *              TABLE_SIZE
- *              arraysize
- *              bytecmp
- *              bytecpy
- *              byteset
- *
- *   ORIGINS: 27,157
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
- *   All Rights Reserved
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-/*----------------------------------------------------------------------------
- $TOG: dbtype.h /main/6 1998/03/19 19:00:38 mgreess $
-   dbtype.h: Standard db_VISTA header file containing:
-   
-      - DDL dictionary type definitions 
-      - Machine dependent constant definitions
-      - Miscellaneous constants used by runtime functions
-      - Virtual memory page table type definitions
-
-   (An #include "vista.h" must precede this include)
-
-   (C) Copyright 1984, 1985, 1986 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  101 21-Jun-88 RSC Added rn_type and rn_dba to database table
-  344 06-Jul-88 RSC LOGFILELEN also defined in dblock.h - add ifndef
-  115 18-Jul-88 RSC Integrate VAX VMS changes
-      21-Jul-88 RSC Fix bugaboo in VAX integration
-  368 28-Jul-88 RSC Integrate BSD changes into code
-  310 10-Aug-88 RSC Cleanup function prototype
-      19-Aug-88 RSC Moved rn_type,rn_dba to separate table for compatibility
-                   with db_QUERY and db_REVISE
-  423 10-Sep-88 RSC Add dbpush names for netunix.c
-  423 22-Sep-88 RSC Modify/simplify DB_ENTER macro for Lattice compiler
-  368 23-Sep-88 RSC Change type of pid from INT to int and
-                   corrected defn of MESSAGE
-  423 26-Sep-88 RSC Moved INIT_PAGE_P defn to initial.c
-      11-Oct-88 RSC Fix for ONE_DB compile
-  441 06-Dec-88 RSC Move defn of MESSAGE from netgen.h to here
-  532 06-Jan-89 RSC Fixed defn of DB_ID for ONE_DB
-
- $Log$
- * Revision 1.2  1995/10/13  18:29:38  miker
- * Added #define DtSrFILENMLEN to expand max filename len.
- * Changed FILENMLEN from 48 to DtSrFILENMLEN (240: 256 - 16).
- */
-
-/* Compiler dependencies are handled with ifdef macros:
-NOTE: One of these macros should be defined on the compile command,
-for example
-       cc -c -DUNIX fillnew.c
-Failure to do so will produce compilation errors.
-
-   UNIX    = Unix C compiler
-   LAT     = Lattice
-   MSC     = Microsoft
-   AZ      = Aztec
-   C86     = CI C86
-   DS      = DeSmet
-   VMS     = Vax/VMS
-   HHS     = Harris H-series
-*/
-
-
-#define PGHOLD 1
-#define NOPGHOLD 0
-#define PGFREE 1
-#define NOPGFREE 0
-
-#define KEYFIND 0
-#define KEYNEXT 1
-#define KEYPREV 2
-#define KEYFRST 3
-#define KEYLAST 4
-
-/* dictionary attribute flags */
-#define SORTFLD     0x0001 /* field is a set sort field */
-#define STRUCTFLD   0x0002 /* field is sub-field of struct */
-#define UNSIGNEDFLD 0x0004 /* field is unsigned */
-#define STATIC      0x0002 /* file/record is static */
-#define LOCAL       0x0004 /* file/record is local */
-#define COMKEYED    0x0010 /* record/field contains/included in compound key */
-#define TIMESTAMPED 0x0001 /* record/set is timestamped */
-
-#define TRUE 1
-#define FALSE 0
-#define YES 1
-#define NO 0
-
-#define BITS_PER_BYTE 8
-
-/* Number of bits in a "type" */
-#define BITS( type )  (BITS_PER_BYTE * sizeof( type ))
-
-/* Number of elements in a vector */
-#define arraysize(v) (sizeof(v)/sizeof(*(v)))
-
-/* Number of bytes in a disk block */
-#define D_BLKSZ 512     
-
-#define DBD_COMPAT_LEN 6
-#define INT_SIZE sizeof(int) 
-#define SHORT_SIZE sizeof(short)
-#define LONG_SIZE sizeof(long) 
-#ifndef         NO_FLOAT
-#define FLOAT_SIZE sizeof(float)
-#define DOUBLE_SIZE sizeof(double)
-#endif
-#define CHAR_SIZE sizeof(char)
-#define DB_ADDR_SIZE sizeof(LONG)
-#define PGHDRSIZE 4
-#define CTBNAME "vista.ctb"
-
-#define RECHDRSIZE 6
-#define NONE -1
-
-/* FILEMASK, ADDRMASK, FILESHIFT always operate on 4-byte variables */
-#define FILEMASK 0x000000FF
-#define ADDRMASK 0x00FFFFFF
-#define FILESHIFT 24
-
-#define OPTKEYSHIFT 10
-#define OPTKEYMASK 0xFC00
-#define OPTKEYNDX 0x003F
-#define OPTKEY_LIMIT 63
-#define RLBMASK 0x4000
-
-/* The following constants all depend on the size of INT and DB_ADDR */
-
-/* creation timestamp in rec hdr = sizeof(INT) + DB_ADDR_SIZE */
-#define RECCRTIME 6
-/* update timestamp in rec hdr  = RECCRTIME + sizeof(LONG) */
-#define RECUPTIME 10
-
-/*                           member count   prior + next     timestamp (opt) */
-/* max size of set pointer = sizeof(LONG) + 2*DB_ADDR_SIZE + sizeof(ULONG)   */
-#define SETPSIZE   16
-/* Offset to total members in set ptr */
-#define SP_MEMBERS 0  
-/* Offset to first member ptr in set ptr */
-#define SP_FIRST   4  
-/* Offset to last member ptr in set ptr = 2+DB_ADDR_SIZE */
-#define SP_LAST    8  
-/* Size of member pointer = 3*DB_ADDR_SIZE */
-#define MEMPSIZE   12 
-/* Offset to owner ptr in member ptr */
-#define MP_OWNER   0  
-/* Offset to previous member ptr in member ptr = DB_ADDR_SIZE */
-#define MP_PREV    4  
-/* Offset to next member ptr in member ptr = 2*DB_ADDR_SIZE */
-#define MP_NEXT    8  
-
-/* maximum length of a database file name */
-#define DtSrFILENMLEN  240     /* expand max filename len from 48 */
-#ifndef FILENMLEN
-#define FILENMLEN  DtSrFILENMLEN
-#endif
-#ifndef LOGFILELEN
-#define LOGFILELEN 48
-#endif
-/* maximum length of a database name */
-#define DBNMLEN 12
-/* maximum length of a database path */
-#define PATHLEN FILENMLEN-15
-
-#define MAXDIMS 3
-
-#define OPEN 'o'
-#define CLOSED 'c'
-#define DATA 'd'
-#define KEY 'k'
-#define OVERFLOW 'o'
-
-typedef struct FILE_ENTRY_S {
-   char ft_name[FILENMLEN];  /* name of file */
-   INT  ft_desc;             /* file descriptor */
-   char ft_status;           /* 'o'=opened, 'c'=closed */
-   char ft_type;             /* 'd'=data,   'k'=key,   'o'=overflow */
-   INT  ft_slots;            /* record slots per page */
-   INT  ft_slsize;           /* size of record slots in bytes */
-   INT  ft_pgsize;           /* size of page */
-   INT  ft_flags;            /* 0x0002 is set if file is static */
-} FILE_ENTRY;
-
-typedef struct RECORD_ENTRY_S {
-   INT rt_file;      /* file table entry of file containing record */
-   INT rt_len;       /* total length of record */
-   INT rt_data;      /* offset to start of data in record */
-   INT rt_fields;    /* first field def in field_table */
-   INT rt_fdtot;     /* total number of fields in record */
-   INT rt_flags;     /* 0x0001 is set if record is timestamped
-                        0x0002 is set if record is static */
-} RECORD_ENTRY;
-
-
-#define FIRST      'f'
-#define LAST       'l'
-#define ASCENDING  'a'
-#define DESCENDING 'd'
-#define NOORDER    'n'
-#define NEXT       'n'
-typedef struct SET_ENTRY_S {
-   INT st_order;     /* 'f'=first, 'l'=last, 'a'=ascending,
-                        'd'=descending, 'n'=no order */
-   INT st_own_rt;    /* record table entry of owner */
-   INT st_own_ptr;   /* offset to set pointers in record */
-   INT st_members;   /* index of first member record in member table */
-   INT st_memtot;    /* total number of members of set */
-   INT st_flags;     /* 0x0001 is set if record is timestamped */
-} SET_ENTRY;
-
-
-typedef struct MEMBER_ENTRY_S {
-   INT mt_record;    /* record table entry for this member */
-   INT mt_mem_ptr;   /* offset to member ptrs in record */
-   INT mt_sort_fld;  /* sort table entry of first sort field */
-   INT mt_totsf;     /* total number of sort fields */
-} MEMBER_ENTRY;
-
-
-typedef struct SORT_ENTRY_S {
-   INT se_fld;       /* field table entry of sort field */
-   INT se_set;       /* set table entry of sorted set */
-} SORT_ENTRY;
-
-
-#define NOKEY      'n'
-#define DUPLICATES 'd'
-#define UNIQUE     'u'
-#define CHARACTER  'c'
-#define SHORTINT   's'
-#define REGINT     'i'
-#define LONGINT    'l'
-#ifndef         NO_FLOAT
-#define FLOAT      'f'
-#define DOUBLE     'F'
-#endif
-#define DBADDR     'd'
-#define GROUPED    'g'
-#define COMKEY     'k'
-typedef struct FIELD_ENTRY_S {
-   char fd_key;          /* 'n'=none, 'd'=duplicates, 'u'=unique */
-   char fd_type;         /* 'c'=char, 's'=short, 'i'=int, 'l'=long, 'd'=DB_ADDR,
-                            'f' = float, 'D' = double, 'g'=grouped field, 
-                           'k' = compound key */
-   INT fd_len;           /* length of field in bytes */
-   INT fd_dim[MAXDIMS];  /* size of each array dimension */
-   INT fd_keyfile;       /* file_table entry for key file */
-   INT fd_keyno;         /* key prefix number */
-   INT fd_ptr;           /* offset to field in record or 
-                           1st compound key field in key_table */
-   INT fd_rec;           /* record table entry of record containing field */
-   INT fd_flags;         /* 0x0001 is set if field in "by" clause of set spec 
-                            0x0002 is set if field member of struct field 
-                            0x0004 is set if field is unsigned data type
-                            0x0008 is set if field is an optional key */
-} FIELD_ENTRY;
-
-/* compound key table entry declaration */
-typedef struct KEY_ENTRY_S {
-   INT  kt_key;    /* compound key field number */
-   INT  kt_field;  /* field number of included field */
-   INT  kt_ptr;    /* offset to start of field data in key */
-   INT  kt_sort;   /* 'a' = ascending, 'd' = descending */
-} KEY_ENTRY;
-
-/* database table entry declaration */
-typedef struct DB_ENTRY_S {
-   char db_name[DBNMLEN];   /* name of this database */
-   char db_path[PATHLEN];   /* name of path to this database */
-   DB_ADDR sysdba;  /* database address of system record */
-   DB_ADDR curr_dbt_rec;/* this db's current record */
-   INT  Page_size;  /* size of this db's page */
-   INT  Size_ft;    /* size of this db's file_table */
-   INT  ft_offset;  /* offset to start of this db's file_table entries */
-   INT  Size_rt;    /* size of this db's record_table */
-   INT  rt_offset;  /* offset to start of this db's record_table entries */
-   INT  Size_fd;    /* size of this db's field_table */
-   INT  fd_offset;  /* offset to start of this db's field_table entries */
-   INT  Size_st;    /* size of this db's set_table */
-   INT  st_offset;  /* offset to start of this db's set_table entries */
-   INT  Size_mt;    /* size of this db's member_table */
-   INT  mt_offset;  /* offset to start of this db's member_table entries */
-   INT  Size_srt;   /* size of this db's sort_table */
-   INT  srt_offset; /* offset to start of this db's sort_table entries */
-   INT  Size_kt;    /* size of this db's key_table */
-   INT  kt_offset;  /* offset to strary of this db's key table entries */
-   INT  key_offset; /* key prefix offset for this db */
-} DB_ENTRY;
-
-/* Structure containing current record type & address for recfrst/set/next..*/
-typedef struct RN_ENTRY_S {
-   INT rn_type;            /* Last record type supplied to recfrst/recset */
-   DB_ADDR rn_dba;  /* Last db addr computed by recfrst/recset/recnext */
-} RN_ENTRY;
-#define         DB_REF(item)            (db_global.Curr_db_table->item)
-#define  RN_REF(item)           (curr_rn_table->item)
-#define         NUM2INT(num, offset)    ((num) + db_global.Curr_db_table->offset)
-#define         NUM2EXT(num, offset)    ((num) - db_global.Curr_db_table->offset)
-#define         ORIGIN(offset)          (curr_db_table->offset)
-#define         TABLE_SIZE(size)        DB_REF(size)
-
-/* Country code table definition */
-typedef struct CNTRY_TBL_S {
-   unsigned char out_chr;
-   unsigned char sort_as1;
-   unsigned char sort_as2;
-   unsigned char sub_sort;
-} CNTRY_TBL;
-
-/* names lists structure declaration */
-typedef struct OBJNAMES_S {
-    char **recs;
-    char **flds;
-    char **sets;
-} OBJNAMES;
-
-
-/* directory separator character:
-   MS-DOS: '\'
-   UNIX:   '/'
-*/
-#ifdef HHS
-#define DIRCHAR '*'
-#else
-#define DIRCHAR '/'
-#endif
-
-/* The following define aid in the use of a set of routines which use RMS
-   directly to do the i/o to database files. */
-
-#define DB_OPEN open_b
-#define DB_CLOSE close
-#define DB_LSEEK lseek
-#define DB_WRITE write
-#define DB_READ  read
-
-typedef struct {FILE_NO *ptr; LOCK_DESC} FILE_NO_P;
-typedef struct {int *ptr; LOCK_DESC} INT_P;
-typedef struct {struct NODE_PATH_S *ptr; LOCK_DESC} NODE_PATH_P;
-typedef struct {struct KEY_INFO_S *ptr; LOCK_DESC} KEY_INFO_P;
-typedef struct {struct ren_entry *ptr; LOCK_DESC} REN_ENTRY_P;
-typedef struct {struct RN_ENTRY_S *ptr; LOCK_DESC} RN_ENTRY_P;
-typedef struct {struct LOOKUP_ENTRY_S *ptr; LOCK_DESC} LOOKUP_ENTRY_P;
-typedef struct {struct page_entry *ptr; LOCK_DESC} PAGE_ENTRY_P;
-typedef struct {struct DB_ENTRY_S *ptr; LOCK_DESC} DB_ENTRY_P;
-typedef struct {struct FILE_ENTRY_S *ptr; LOCK_DESC} FILE_ENTRY_P;
-typedef struct {struct RECORD_ENTRY_S *ptr; LOCK_DESC} RECORD_ENTRY_P;
-typedef struct {struct SET_ENTRY_S *ptr; LOCK_DESC} SET_ENTRY_P;
-typedef struct {struct MEMBER_ENTRY_S *ptr; LOCK_DESC} MEMBER_ENTRY_P;
-typedef struct {struct SORT_ENTRY_S *ptr; LOCK_DESC} SORT_ENTRY_P;
-typedef struct {struct FIELD_ENTRY_S *ptr; LOCK_DESC} FIELD_ENTRY_P;
-typedef struct {struct KEY_ENTRY_S *ptr; LOCK_DESC} KEY_ENTRY_P;
-typedef struct {struct PGZERO_S *ptr; LOCK_DESC} PGZERO_P;
-typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P;
-typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P;
-typedef struct {LONG *ptr; LOCK_DESC} LONG_P;
-typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P;
-struct sk {
-   INT sk_fld;
-   CHAR_P sk_val;
-} __SK__;
-typedef struct { struct sk *ptr; LOCK_DESC } SK_P;
-
-/* node key search path stack entry: one per level per key field */
-typedef struct NODE_PATH_S {
-   F_ADDR node;       /* node (page) number  */
-   INT    slot;       /* slot number of key */
-} NODE_PATH;
-
-/* index key information: one entry per key field */
-typedef struct KEY_INFO_S {
-   NODE_PATH_P Node_path; /* stack of node #s in search path */
-   INT         level;     /* current level # in node path */
-   INT         max_lvls;  /* maximum possible levels for key */
-   INT         lstat;     /* last key function status */
-   INT         fldno;     /* field number of key */
-   FILE_NO     keyfile;   /* key file containing this key */
-   CHAR_P      Keyval;    /* ptr to last key value */
-   DB_ADDR     dba;       /* db address of last key */
-} KEY_INFO;
-#define node_path Node_path.ptr
-#define keyval Keyval.ptr
-
-/* key slot structure */
-typedef struct key_slot {
-   F_ADDR  child;         /* child node pointer */
-   INT     keyno;         /* key number */
-   char    data[1];       /* start of key data */
-} KEY_SLOT;
-
-typedef union key_type {
-   char kd[256];
-   struct key_slot ks;
-} KEY_TYPE;
-
-/* file rename table entry declarations */
-typedef struct ren_entry {
-   CHAR_P Ren_db_name;
-   CHAR_P File_name;
-   FILE_NO file_no;
-} REN_ENTRY;
-
-#define bytecpy(s1, s2, n) memcpy((char *)(s1), (char *)(s2), (unsigned)(n))
-#define bytecmp(s1, s2, n) memcmp((char *)(s1), (char *)(s2), (unsigned)(n))
-#define byteset(s, c, n) memset((char *)(s), (char)(c), (unsigned)(n))
-
-typedef struct MESSAGE_S {
-#ifdef GENERAL
-    INT mtype;
-    char mtext[1];
-#else                          /* GENERAL */
-    LONG mtype;
-    int  pid;
-    char mtext[1];
-#endif                         /* GENERAL */
-} MESSAGE;
-
-#ifdef COMMA                            /* COMMA */
-#define DB_ID , dbn
-#define NO_DB_ID , -1
-#else                                   /* COMMA */
-#define DB_ID dbn
-#define NO_DB_ID -1
-#define COMMA
-#endif                                  /* COMMA */
-
-#define TASK_ID /**/
-
-#define LOCK_SET(a) /**/
-
-#define TDTL_PARAM
-
-#define DB_ENTER(TDTL_PARAM) if ( startup(TDTL_PARAM) != S_OKAY ) { return( db_status ); } else
-
-#define RETURN(x) return( x )
-#define ALLOC(l, b, v) d_alloc(b)
-#define CALLOC(l, i, s, v) d_calloc(i, s)
-#define MEM_LOCK(cp)   d_memlock((CHAR_P *)(cp))
-#define MEM_UNLOCK(cp)         d_memunlock((CHAR_P *)(cp))
-#define FREE(cp)       d_free((CHAR_P *)(cp))
-
-/* Lock sets are defined in dblfcns.c */
-#define LOCK_NONE      -1
-#define LOCK_ALL       0
-#define LOCK_IO                1
-#define LOCK_NOIO      2
-#define RECORD_IO      3
-#define RECORD_NOIO    4
-#define SET_IO         5
-#define SET_NOIO       6
-
-#ifdef GENERAL
-#define TIMEOUT_DEF    20
-#else
-#define TIMEOUT_DEF    10
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include "trxlog.h"
-#include "dblock.h"
-#include "ll.h"
-#include "dbxtrn.h"
-
-typedef struct LOOKUP_ENTRY_S {
-   FILE_NO file;              /* file table entry number (0..size_ft-1) */
-   F_ADDR  pageno;            /* database page number */
-   short   pg_slot;          /* page table slot pointing to this entry */
-} LOOKUP_ENTRY;
-
-/* virtual page table entry */
-typedef struct page_entry {
-   BOOLEAN recently_used;     /* LRU flag */
-   BOOLEAN modified;          /* TRUE if page has been modified */
-   INT     holdcnt;           /* "hold-in-cache" counter */
-   short   lu_slot;           /* lookup table slot pointing to this entry */
-   CHAR_P Buff;             /* page buffer pointer */
-} PAGE_ENTRY;
-#define buff Buff.ptr
-
-#include <string.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <time.h>
-#include "proto.h"
-
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dbtype.h */
diff --git a/cde/lib/DtSearch/raima/dbxtrn.h b/cde/lib/DtSearch/raima/dbxtrn.h
deleted file mode 100644 (file)
index 8ab0411..0000000
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 157
- *
- */
-/*----------------------------------------------------------------------------
-   dbxtrn.h: db_VISTA external data header file
-
-   (This file is included by dbtype.h)
-
-   (C) Copyright 1984 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  423 22-Sep-88 RSC Cleanup file to compile under Lattice
-  368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h
-  439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main
-  440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM
-  532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB
-      05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking
-
-*/
-
-/* Database Dictionary Tables */
-extern INT largest_page;
-
-extern INT old_size_ft;
-extern INT old_size_fd;
-extern INT old_size_st;
-extern INT old_size_mt;
-extern INT old_size_srt;
-extern INT old_size_kt;
-extern INT old_size_rt;
-extern INT old_no_of_dbs;
-
-extern char *crloc;          /* location in page buffer of current record */
-
-typedef struct TASK_S {
-   /* The following global variables came from dblfcns.c */
-   int Dbopen;                /* dbopen = 0 */
-   char Dbuserid[FILENMLEN];  /* dbuserid = "" */
-   char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */
-   char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */
-   const char *Trans_id;  /* trans_id = NULL */
-   char Dblog[FILENMLEN];     /* dblog = "" */
-   /* The following global variables came from dio.c */
-   BOOLEAN Cache_ovfl;        /* cache_ovfl = FALSE */
-   PGZERO_P Pgzero;          /* database file page 0 array */
-   /* The following global variables came from keyfcns.c */
-   int No_of_keys;            /* no_of_keys = 0 */
-   KEY_INFO_P Key_info;       /* key_info = NULL */
-   KEY_TYPE Key_type;
-   /* The following global variables came from netwdos.c */
-   int Net_status;
-   LONG Last_mtype;
-   /* The following global variables came from options.c */
-   int Dboptions;             /* ifdef NO_TRANS: dboptions =
-                                                       DCHAINUSE | TRLOGGING
-                                else:           dboptions = DCHAINUSE */
-   /* The following global variables came from ovfcns.c */
-   long Ov_initaddr;          /* ov_initaddr = 0L */
-   long Ov_rootaddr;          /* ov_rootaddr = 0L */
-   long Ov_nextaddr;          /* ov_nextaddr = 0L */
-   RI_ENTRY_P Root_ix;
-   /* The following global variables came from renfiles.c */
-   llist Ren_list;           /* Ren_list = LLIST_INIT() */
-   /* The following global variables came from inittab.h */
-   INT Page_size;
-   int     Curr_db;
-   DB_ENTRY *Curr_db_table;
-   DB_ADDR Curr_rec;          /* current record address */
-   DB_ADDR_P Curr_own;        /* current set owners array */
-   DB_ADDR_P Curr_mem;        /* current set members array */
-   FILE_NO Ov_file;
-   BOOLEAN Setdb_on;
-   INT No_of_dbs;
-   RN_ENTRY_P Rn_table;
-   RN_ENTRY *Curr_rn_table;
-   DB_ENTRY_P Db_table;
-   FILE_ENTRY_P File_table;
-   INT Size_ft;
-   RECORD_ENTRY_P Record_table;
-   INT Size_rt;
-   SET_ENTRY_P Set_table;
-   INT Size_st;
-   MEMBER_ENTRY_P Member_table;
-   INT Size_mt;
-   SORT_ENTRY_P Sort_table;
-   INT Size_srt;
-   FIELD_ENTRY_P Field_table;
-   INT Size_fd;
-   KEY_ENTRY_P Key_table;
-   INT Size_kt;
-   int Lock_lvl;
-#define LOCK_STACK_SIZE                10
-   int Lock_stack[LOCK_STACK_SIZE];
-   CNTRY_TBL_P country_tbl;
-   int ctbl_activ;
-   char ctbpath[FILENMLEN];
-   llist Sk_list;
-} TASK;
-
-/* Dynamically allocated global variables */
-#define app_locks db_global.App_locks.ptr
-#define excl_locks db_global.Excl_locks.ptr
-#define kept_locks db_global.Kept_locks.ptr
-#define rec_locks db_global.Rec_locks.ptr
-#define set_locks db_global.Set_locks.ptr
-#define key_locks db_global.Key_locks.ptr
-#define lock_pkt db_global.Lock_pkt.ptr
-#define free_pkt db_global.Free_pkt.ptr
-#define file_refs db_global.File_refs.ptr
-#define key_info db_global.Key_info.ptr
-#define curr_own db_global.Curr_own.ptr
-#define curr_mem db_global.Curr_mem.ptr
-#define rn_table db_global.Rn_table.ptr
-#define db_table db_global.Db_table.ptr
-#define file_table db_global.File_table.ptr
-#define record_table db_global.Record_table.ptr
-#define set_table db_global.Set_table.ptr
-#define member_table db_global.Member_table.ptr
-#define sort_table db_global.Sort_table.ptr
-#define field_table db_global.Field_table.ptr
-#define key_table db_global.Key_table.ptr
-#define pgzero db_global.Pgzero.ptr
-#define root_ix db_global.Root_ix.ptr
-/* Used in DIO.C and OVFCNS.C */
-#define ixpg_table Ixpg_table.ptr
-#define dbpgbuff Dbpgbuff.ptr
-#define ix_lookup Ix_lookup.ptr
-
-/* Non-dynamically allocated global variables */
-#define lock_tries db_global.Lock_tries
-#define dbwait_time db_global.Dbwait_time
-#define db_timeout db_global.Db_timeout
-#define dbopen db_global.Dbopen
-#define db_lockmgr db_global.Db_lockmgr
-#define dbuserid db_global.Dbuserid
-#define dbdpath db_global.Dbdpath
-#define dbfpath db_global.Dbfpath
-#define trans_id db_global.Trans_id
-#define dblog db_global.Dblog
-#define keyl_cnt db_global.Keyl_cnt
-#define lp_size db_global.Lp_size
-#define fp_size db_global.Fp_size
-#define session_active db_global.Session_active
-#define cache_ovfl db_global.Cache_ovfl
-#define no_of_keys db_global.No_of_keys
-#define key_type db_global.Key_type
-#define net_status db_global.Net_status
-#define last_mtype db_global.Last_mtype
-#define dboptions db_global.Dboptions
-#define ov_initaddr db_global.Ov_initaddr
-#define ov_rootaddr db_global.Ov_rootaddr
-#define ov_nextaddr db_global.Ov_nextaddr
-#define page_size db_global.Page_size
-#define curr_db db_global.Curr_db
-#define curr_db_table db_global.Curr_db_table
-#define curr_rec db_global.Curr_rec
-#define ov_file db_global.Ov_file
-#define setdb_on db_global.Setdb_on
-#define no_of_dbs db_global.No_of_dbs
-#define curr_rn_table db_global.Curr_rn_table
-#define size_ft db_global.Size_ft
-#define size_rt db_global.Size_rt
-#define size_st db_global.Size_st
-#define size_mt db_global.Size_mt
-#define size_srt db_global.Size_srt
-#define size_fd db_global.Size_fd
-#define size_kt db_global.Size_kt
-#define lock_lvl db_global.Lock_lvl
-#define lock_stack db_global.Lock_stack
-#define ren_list db_global.Ren_list
-#define sk_list db_global.Sk_list
-
-extern TASK db_global;
-extern int db_glob_init;
-
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */
diff --git a/cde/lib/DtSearch/raima/dproto.h b/cde/lib/DtSearch/raima/dproto.h
deleted file mode 100644 (file)
index ec20404..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dproto.h /main/2 1996/05/09 04:05:13 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: Pi
- *             d_alloc
- *             d_calloc
- *             d_cmstat
- *             d_cmtype
- *             d_connect
- *             d_costat
- *             d_cotype
- *             d_crget
- *             d_crread
- *             d_crset
- *             d_crtype
- *             d_crwrite
- *             d_csmget
- *             d_csmread
- *             d_csmset
- *             d_csmwrite
- *             d_csoget
- *             d_csoread
- *             d_csoset
- *             d_csowrite
- *             d_csstat
- *             d_ctbpath
- *             d_ctscm
- *             d_ctsco
- *             d_ctscr
- *             d_dbdpath
- *             d_dbfpath
- *             d_dblog
- *             d_dbtaf
- *             d_dbuserid
- *             d_decode_dba
- *             d_destroy
- *             d_discon
- *             d_encode_dba
- *             d_fillnew
- *             d_findco
- *             d_findfm
- *             d_findlm
- *             d_findnm
- *             d_findpm
- *             d_free
- *             d_gtscm
- *             d_gtsco
- *             d_gtscr
- *             d_gtscs
- *             d_initfile
- *             d_ismember
- *             d_isowner
- *             d_keydel
- *             d_keyexist
- *             d_keyfind
- *             d_keyfree
- *             d_keyfrst
- *             d_keylast
- *             d_keylock
- *             d_keylstat
- *             d_keynext
- *             d_keyprev
- *             d_keyread
- *             d_keystore
- *             d_lock
- *             d_makenew
- *             d_mapchar
- *             d_members
- *             d_memlock
- *             d_memlock_group
- *             d_memunlock
- *             d_memunlock_group
- *             d_off_opt
- *             d_on_opt
- *             d_open
- *             d_rdcurr
- *             d_recfree
- *             d_recfrst
- *             d_reclast
- *             d_reclock
- *             d_reclstat
- *             d_recover
- *             d_recread
- *             d_recset
- *             d_recstat
- *             d_recwrite
- *             d_renfile
- *             d_rerdcurr
- *             d_retries
- *             d_set_dberr
- *             d_setdb
- *             d_setfiles
- *             d_setfree
- *             d_setkey
- *             d_setlock
- *             d_setlstat
- *             d_setmm
- *             d_setmo
- *             d_setmr
- *             d_setom
- *             d_setoo
- *             d_setor
- *             d_setpages
- *             d_setrm
- *             d_setro
- *             d_stscm
- *             d_stsco
- *             d_stscr
- *             d_stscs
- *             d_timeout
- *             d_trbegin
- *             d_trlog
- *             d_utscm
- *             d_utsco
- *             d_utscr
- *             d_utscs
- *             d_wrcurr
- *             dberr
- *             dt_closetask
- *             dt_opentask
- *
- *   ORIGINS: 157
- *
- */
-/*----------------------------------------------------------------------------
-   dproto.h: db_VISTA (user) function declaration header file
-
-   (C) Copyright 1988 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
-*/
-
-
-int d_setfiles(int);                           /* dio.c */
-int d_setpages(int, int);                      /* dio.c */
-int d_trbound(void);                           /* trlog.c */
-int d_trlog(int, int, const char *, int); 
-                                                               /* trlog.c */
-int d_trmark(void);                            /* trlog.c */
-int d_tron(void);                                      /* trlog.c */
-int d_troff(void);                                     /* trlog.c */
-int d_decode_dba(DB_ADDR, int *, long *); 
-                                                               /* dbacode.c */
-int d_encode_dba(int, long, DB_ADDR *); 
-                                                               /* dbacode.c */
-
-#define d_memlock(p)           /**/
-#define d_memlock_group(lg)    S_OKAY
-#define d_memunlock(p)         /**/
-#define d_memunlock_group(lg)  /**/
-char * d_alloc(unsigned);              /* alloc.c */
-char * d_calloc(unsigned, unsigned);   /* alloc.c */
-void d_free(CHAR_P *);                 /* alloc.c */
-
-#define dt_opentask(a) S_OKAY
-#define dt_closetask(a) S_OKAY
-
-int d_close(void);                                     /* dblfcns.c */
-int d_cmstat(int, int);                        /* cmstat.c */
-int d_cmtype(int, int *, int);         /* cmtype.c */
-int d_connect(int, int);                       /* connect.c */
-int d_cotype(int, int *, int);         /* cotype.c */
-int d_crget(DB_ADDR *, int);           /* crget.c */
-int d_crread(long, char *, int);       /* crread.c */
-int d_crset(DB_ADDR *, int);           /* crset.c */
-int d_crtype(int *, int);              /* crtype.c */
-int d_crwrite(long, char *, int);      /* crwrite.c */
-int d_csmget(int, DB_ADDR *, int);     /* csmget.c */
-int d_csmread(int, long, char *, int); 
-                                                               /* csmread.c */
-int d_csmset(int, DB_ADDR *, int);     /* csmset.c */
-int d_csmwrite(int, long, const char *, int); 
-                                                               /* csmwrite.c */
-int d_csoget(int, DB_ADDR *, int);     /* csoget.c */
-int d_csoread(int, long, char *, int); 
-                                                               /* csoread.c */
-int d_csoset(int, DB_ADDR *, int);     /* csoset.c */
-int d_csowrite(int, long, const char *, int); 
-                                                               /* csowrite.c */
-int d_ctbpath(const char *);           /* pathfcns.c */
-int d_dbdpath(const char *);           /* dbdpath.c */
-int d_dbfpath(const char *);           /* dbfpath.c */
-int d_dblog(const char *);             /* dblog.c */
-int d_dbtaf(const char *);             /* dbtaf.c */
-int d_dbuserid(const char *);          /* dbuserid.c */
-int d_delete(int);                             /* delete.c */
-int d_disdel(int);                             /* disdel.c */
-int d_recnext(int);                            /* recnext.c */
-int d_recprev(int);                            /* recprev.c */
-int d_destroy(const char *);           /* destroy.c */
-int d_discon(int, int);                        /* discon.c */
-int d_fillnew(int, const char *, int); /* fillnew.c */
-int d_findco(int, int);                        /* findco.c */
-int d_findfm(int, int);                        /* findfm.c */
-int d_findlm(int, int);                        /* findlm.c */
-int d_findnm(int, int);                        /* findnm.c */
-int d_findpm(int, int);                        /* findpm.c */
-int d_freeall(void);                           /* dblfcns.c */
-int d_initialize(int);                         /* initial.c */
-int d_initfile(FILE_NO, int);                  /* initial.c */
-int d_ismember(int, int);                      /* ismember.c */
-int d_isowner(int, int);                       /* isowner.c */
-int d_keydel(long, int);                       /* keydel.c */
-int d_keyexist(long, int);                     /* keyexist.c */
-int d_keyfind(long, const char *, int); 
-                                                               /* keyfind.c */
-int d_keyfree(long, int);                      /* dblfcns.c */
-int d_keyfrst(long, int);                      /* keyfrst.c */
-int d_keylast(long, int);                      /* keylast.c */
-int d_keylock(long, char *, int);      /* dblfcns.c */
-int d_keylstat(long, char *, int);     /* dblfcns.c */
-int d_keynext(long, int);                      /* keynext.c */
-int d_keyprev(long, int);                      /* keyprev.c */
-int d_keyread(char *);                 /* keyfcns.c */
-int d_keystore(long, int);                     /* keystore.c */
-int d_lock(int, LOCK_REQUEST *, int); /* dblfcns.c */
-int d_makenew(int, int);                       /* makenew.c */
-int d_mapchar(unsigned char, unsigned char, const char *, unsigned char);  /* mapchar.c */
-int d_members(int, LONG *, int);       /* members.c */
-int d_off_opt(int);                            /* options.c */
-int d_on_opt(int);                             /* options.c */
-int d_open(const char *, const char *); 
-                                                               /* dblfcns.c */
-int d_rerdcurr(DB_ADDR **);            /* rwcurr.c */
-int d_rdcurr(DB_ADDR **, int *);       /* rwcurr.c */
-int d_wrcurr(DB_ADDR *);                       /* rwcurr.c */
-int d_recfree(int, int);                       /* dblfcns.c */
-int d_recfrst(int, int);                       /* recfrst.c */
-int d_reclast(int, int);                       /* reclast.c */
-int d_reclock(int, char *, int);       /* dblfcns.c */
-int d_reclstat(int, char *, int);      /* dblfcns.c */
-int d_recover(const, char *);          /* recover.c */
-int d_recread(char *, int);            /* recread.c */
-int d_recset(int, int);                        /* recset.c */
-int d_recwrite(const char *, int);     /* recwrite.c */
-int d_renfile(const char *dbn, FILE_NO fno, const char *fnm);          /* renfile.c */
-int d_retries(int);                            /* dblfcns.c */
-int d_rlbclr(void);                            /* dblfcns.c */
-int d_rlbset(void);                            /* dblfcns.c */
-int d_rlbtst(void);                            /* dblfcns.c */
-int d_set_dberr(FARPROC);                      /* dberr.c */
-int d_setdb(int);                              /* setdb.c */
-int d_setfree(int, int);                       /* dblfcns.c */
-int d_setkey(long, const char *, int); /* makenew.c */
-int d_setlock(int, char *, int);       /* dblfcns.c */
-int d_setlstat(int, char *, int);      /* dblfcns.c */
-int d_setmm(int, int, int);            /* setmm.c */
-int d_setmo(int, int, int);            /* setmo.c */
-int d_setmr(int, int);                 /* setmr.c */
-int d_setom(int, int, int);            /* setom.c */
-int d_setoo(int, int, int);            /* setoo.c */
-int d_setor(int, int);                 /* setor.c */
-int d_setrm(int, int);                 /* setrm.c */
-int d_setro(int, int);                 /* setro.c */
-int d_timeout(int);                            /* dblfcns.c */
-int d_trabort(void);                           /* dblfcns.c */
-int d_trbegin(const char *);           /* dblfcns.c */
-int d_trend(void);                                     /* dblfcns.c */
-
-int dberr(int);                        /* dberr.c */
-
-#define D_FUNCTIONS_H
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dproto.h */
diff --git a/cde/lib/DtSearch/raima/dtcover.h b/cde/lib/DtSearch/raima/dtcover.h
deleted file mode 100644 (file)
index f28a25a..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: dtcover.h /main/2 1996/05/09 04:05:27 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 157
- *
- */
-/*----------------------------------------------------------------------------
-   dtcover.h: converts d_* calls to dt_* for MULTI_TASKing
-
-   (C) Copyright 1988 by Raima Corporation.
-----------------------------------------------------------------------------*/
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
-*/
-
-
-#define d_close                        dt_close
-#define d_cmstat               dt_cmstat
-#define d_cmtype               dt_cmtype
-#define d_connect              dt_connect
-#define d_cotype               dt_cotype
-#define d_crget                        dt_crget
-#define d_crread               dt_crread
-#define d_crset                        dt_crset
-#define d_crtype               dt_crtype
-#define d_crwrite              dt_crwrite
-#define d_csmget               dt_csmget
-#define d_csmread              dt_csmread
-#define d_csmset               dt_csmset
-#define d_csmwrite             dt_csmwrite
-#define d_csoget               dt_csoget
-#define d_csoread              dt_csoread
-#define d_csoset               dt_csoset
-#define d_csowrite             dt_csowrite
-#define d_ctbpath              dt_ctbpath
-#define d_dbdpath              dt_dbdpath
-#define d_dbfpath              dt_dbfpath
-#define d_dblog                        dt_dblog
-#define d_dbtaf                        dt_dbtaf
-#define d_dbuserid             dt_dbuserid
-#define d_delete               dt_delete
-#define d_disdel               dt_disdel
-#define d_recnext              dt_recnext
-#define d_recprev              dt_recprev
-#define d_destroy              dt_destroy
-#define d_discon               dt_discon
-#define d_fillnew              dt_fillnew
-#define d_findco               dt_findco
-#define d_findfm               dt_findfm
-#define d_findlm               dt_findlm
-#define d_findnm               dt_findnm
-#define d_findpm               dt_findpm
-#define d_freeall              dt_freeall
-#define d_initialize           dt_initialize
-#define d_initfile             dt_initfile
-#define d_ismember             dt_ismember
-#define d_isowner              dt_isowner
-#define d_keydel               dt_keydel
-#define d_keyexist             dt_keyexist
-#define d_keyfind              dt_keyfind
-#define d_keyfree              dt_keyfree
-#define d_keyfrst              dt_keyfrst
-#define d_keylast              dt_keylast
-#define d_keylock              dt_keylock
-#define d_keylstat             dt_keylstat
-#define d_keynext              dt_keynext
-#define d_keyprev              dt_keyprev
-#define d_keyread              dt_keyread
-#define d_keystore             dt_keystore
-#define d_lock                 dt_lock
-#define d_makenew              dt_makenew
-#define d_mapchar              dt_mapchar
-#define d_members              dt_members
-#define d_off_opt              dt_off_opt
-#define d_on_opt               dt_on_opt
-#define d_open                 dt_open
-#define d_rdcurr               dt_rdcurr
-#define d_rerdcurr             dt_rerdcurr
-#define d_recfree              dt_recfree
-#define d_recfrst              dt_recfrst
-#define d_reclast              dt_reclast
-#define d_reclock              dt_reclock
-#define d_reclstat             dt_reclstat
-#define d_recover              dt_recover
-#define d_recread              dt_recread
-#define d_recset               dt_recset
-#define d_recwrite             dt_recwrite
-#define d_renfile              dt_renfile
-#define d_retries              dt_retries
-#define d_rlbclr               dt_rlbclr
-#define d_rlbset               dt_rlbset
-#define d_rlbtst               dt_rlbtst
-#define d_set_dberr            dt_set_dberr
-#define d_setdb                        dt_setdb
-#define d_setfree              dt_setfree
-#define d_setkey               dt_setkey
-#define d_setlock              dt_setlock
-#define d_setlstat             dt_setlstat
-#define d_setmm                        dt_setmm
-#define d_setmo                        dt_setmo
-#define d_setmr                        dt_setmr
-#define d_setom                        dt_setom
-#define d_setoo                        dt_setoo
-#define d_setor                        dt_setor
-#define d_setrm                        dt_setrm
-#define d_setro                        dt_setro
-#define d_timeout              dt_timeout
-#define d_trabort              dt_trabort
-#define d_trbegin              dt_trbegin
-#define d_trend                        dt_trend
-#define d_wrcurr               dt_wrcurr
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC dtcover.h */
diff --git a/cde/lib/DtSearch/raima/inittab.h b/cde/lib/DtSearch/raima/inittab.h
deleted file mode 100644 (file)
index f1aa1eb..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: sizeof
- *
- *   ORIGINS: 27,157
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
- *   All Rights Reserved
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-/*----------------------------------------------------------------------------
- $XConsortium: inittab.h /main/5 1996/11/25 18:48:42 drk $
-   inittab.h: db_VISTA header file containing:
-   
-      - Compatible dictionary file versions
-
-   This file is intended to be included in inittab.c only.  There are
-   multiple versions of inittab.c which share this header.
-
-   (An #include "vista.h" must precede this include)
-
-   (C) Copyright 1987 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  101 21-Jun-88 RSC Added decl for rn_type and rn_dba for ONE_DB
-      08-Aug-88 RTK Moved rn_dba and rn_type to vista.h - needed in rec*.c
-      18-Aug-88 RSC Moved rn_type/dba to separate table, add curr_rn_table..
-
- $Log$
- * Revision 1.2  1995/10/13  18:36:46  miker
- * Changed compat_dbd[] from hardcoded str to dbd_VERSION.
- * (dbd_VERSION in vista.h changed bcs expanded max file name length.)
- *
-*/
-
-
-int db_status = 0;
-
-/* database dictionary tables */
-INT largest_page = 0;
-
-char *crloc = NULL;
-
-INT old_size_ft = 0;
-INT old_size_fd = 0;
-INT old_size_st = 0;
-INT old_size_mt = 0;
-INT old_size_srt = 0;
-INT old_size_kt = 0;
-INT old_size_rt = 0;
-INT old_no_of_dbs = 0;
-
-/* Compatible dictionary versions */
-char *compat_dbd[] = {
-   dbd_VERSION
-};
-int size_compat = sizeof(compat_dbd)/sizeof(*compat_dbd);
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin inittab.h */
diff --git a/cde/lib/DtSearch/raima/ll.h b/cde/lib/DtSearch/raima/ll.h
deleted file mode 100644 (file)
index 49e71c4..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ll.h /main/2 1996/05/09 04:11:29 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: LLIST_INIT
- *             LL_ELEM_INIT
- *             ll_access
- *             ll_append
- *             ll_deaccess
- *             ll_first
- *             ll_free
- *             ll_next
- *             ll_prepend
- *
- *   ORIGINS: 157
- *
- */
-/* The functions in this file are defined in alloc.c */
-
-typedef struct {struct ll_elem *ptr; LOCK_DESC} LL_P;
-
-typedef struct ll_elem {
-   LL_P next;
-   CHAR_P data;
-} ll_elem;
-
-#define LL_ELEM_INIT() { POINTER_INIT(), POINTER_INIT() }
-
-typedef struct {
-   LL_P head;
-   LL_P tail;
-   LL_P *curr;
-} llist;
-
-#define LLIST_INIT()    { POINTER_INIT(), POINTER_INIT(), NULL }
-
-BOOLEAN ll_access(P1(llist *));
-int ll_append(P1(llist *) Pi(CHAR_P *));
-#define ll_deaccess(ll)            /**/
-CHAR_P *ll_first(P1(llist *));
-void ll_free(P1(llist *));
-CHAR_P *ll_next(P1(llist *));
-int ll_prepend(P1(llist *) Pi(CHAR_P *));
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ll.h */
diff --git a/cde/lib/DtSearch/raima/ncb.h b/cde/lib/DtSearch/raima/ncb.h
deleted file mode 100644 (file)
index e985ae8..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ncb.h /main/2 1996/05/09 04:12:28 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: none
- *
- *   ORIGINS: 157
- *
- */
-#define NETNAME_LEN 16
-#ifndef NULL
-#define NULL (char *)0
-#endif
-
-#define NETBIOS_INT 0x5c
-
-#define ADDNAME 0x30
-#define DELNAME 0x31
-#define RESET   0x32
-#define STATUS  0x33
-#define SESSTAT 0x34
-#define CALL    0x10
-#define LISTEN  0x11
-#define HANGUP  0x12
-#define SEND    0x14
-#define RECEIVE 0x15
-#define ADDNAIT 0xB0
-#define DELNAIT 0xB1
-#define CALNAIT 0x90
-#define LISNAIT 0x91
-#define HANNAIT 0x92
-#define SENNAIT 0x94
-#define RECNAIT 0x95
-#define ARENAIT 0x96
-#define ANY     0xFF
-#define PENDING 0xFFFF
-#define NCBSIZE 64
-
-#ifdef TURBO
-#ifdef __SMALL__
-#define SMALL_DATA
-#endif
-#ifdef __MEDIUM__
-#define SMALL_DATA
-#endif
-#endif
-
-#ifdef MSC
-#ifdef    M_I86SM
-#define SMALL_DATA
-#endif
-#ifdef    M_I86MM
-#define SMALL_DATA
-#endif
-#endif
-
-#ifdef LAT
-#ifdef SPTR
-#define SMALL_DATA
-#endif
-#endif
-
-/***** NCB Commands parameter block *****/
-typedef struct {
-       char  command;  /* NETBIOS Command */
-       char  retcode;  /* Return value (some enumerated below) */
-       char  lsn;      /* Local session number */
-       char  num;      /* Name number */
-       char *buffer_off; /* Message buffer offset */
-#ifdef SMALL_DATA
-       int   buffer_seg; /* Message buffer segment */
-#endif
-       int   length;   /* Length of message buffer */
-       char  callname[NETNAME_LEN]; /* Name of user being called */
-       char  name[NETNAME_LEN];     /* My name */
-       char  rto;      /* Receive timeout (500ms units) */
-       char  sto;      /* Send timeout (500ms units) */
-       char *post_off; /* Post function offset */
-#ifdef SMALL_DATA
-       int   post_seg; /* Post function segment */
-#endif
-       char  lana_num; /* Local area network adapter number (use 0) */
-       char  cmd_cplt; /* Command complete return value, used when posting */
-       char  reserve[14]; /* reserved for Net BIOS */
-} NCB;
-
-typedef struct {
-    char rep_sess;
-    char name_sess;
-    char gram;
-    char rcvany;
-    struct {
-       char lsn;
-       char state_sess;
-       char loc_name[16];
-       char rem_name[16];
-       char rcvs;
-       char sends;
-    } s[32];
-} SESSION;
-
-#define NCB_H
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin ncb.h */
diff --git a/cde/lib/DtSearch/raima/proto.h b/cde/lib/DtSearch/raima/proto.h
deleted file mode 100644 (file)
index 1148aaa..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: proto.h /main/5 1998/03/19 19:00:54 mgreess $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: ADDRcmp
- *             ALLOC_TABLE
- *             INTcmp
- *             Pi
- *             alloc_table
- *             check_dba
- *             close
- *             con_dbd
- *             con_dbf
- *             dbn_check
- *             dio_close
- *             dio_clrfile
- *             dio_findpg
- *             dio_get
- *             dio_open
- *             dio_out
- *             dio_pzalloc
- *             dio_pzdel
- *             dio_pzgetts
- *             dio_pznext
- *             dio_pzread
- *             dio_pzsetts
- *             dio_read
- *             dio_release
- *             dio_rrlb
- *             dio_setdef
- *             dio_touch
- *             dio_write
- *             dio_wrlb
- *             exit
- *             fldcmp
- *             free
- *             get_element
- *             getenv
- *             initdbt
- *             key_bldcom
- *             key_boundary
- *             key_cmpcpy
- *             key_delete
- *             key_init
- *             key_insert
- *             key_locpos
- *             key_reset
- *             key_scan
- *             locking
- *             lseek
- *             memcmp
- *             memcpy
- *             memset
- *             nfld_check
- *             nrec_check
- *             nset_check
- *             null_dba
- *             nw_addnm
- *             nw_call
- *             nw_cleanup
- *             nw_delnm
- *             nw_hangup
- *             nw_rcvmsg
- *             nw_reset
- *             nw_send
- *             o_fileinit
- *             o_pages
- *             o_pzwrite
- *             o_search
- *             o_write
- *             open_b
- *             r_chkfld
- *             r_clropt
- *             r_delrec
- *             r_gfld
- *             r_gmem
- *             r_gset
- *             r_pfld
- *             r_pmem
- *             r_pset
- *             r_setopt
- *             r_smem
- *             r_tstopt
- *             read
- *             startup
- *             strcat
- *             strchr
- *             strcmp
- *             strcpy
- *             strlen
- *             strncmp
- *             strncpy
- *             strrchr
- *             taf_add
- *             taf_del
- *             task_switch
- *             taskinit
- *             time
- *             unlink
- *             write
- *
- *   ORIGINS: 157
- *
- */
-/*----------------------------------------------------------------------------
-   proto.h: db_VISTA function declaration header file
-
-   (This file must be included after dbtype.h)
-
-   (C) Copyright 1988 by Raima Corporation.
-----------------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-      03-AUG-88 RTK Added internal MULTI_TASKing function prototypes
-  310 10-Aug-88 RSC Cleanup of function prototypes
-
-*/
-
-/* From dberr.c: */
-void dbautorec(void);
-
-/* From dblfcns.c: */
-int taskinit(TASK *);
-int initdbt(const char *);
-int alloc_table(CHAR_P *, unsigned, unsigned);
-#define ALLOC_TABLE(t, n, o, v)        alloc_table((CHAR_P *)(t), n, o)
-void termfree(void);
-
-/* From dio.c: */
-int dio_open(FILE_NO);
-int dio_close(FILE_NO);
-int dio_init(void);
-void dio_free(void);
-int dio_clrfile(FILE_NO);
-int dio_clear(void);
-int dio_flush(void);
-void dio_setdef(FILE_NO);
-int dio_get(F_ADDR, char **, int);
-int dio_touch(F_ADDR);
-int dio_read(DB_ADDR, char **, int);
-int dio_write(DB_ADDR, const char *, int);
-int dio_release(DB_ADDR);
-int dio_rrlb(DB_ADDR, INT *);
-int dio_wrlb(DB_ADDR, INT);
-int dio_findpg(FILE_NO, F_ADDR, PAGE_ENTRY *, PAGE_ENTRY **, LOOKUP_ENTRY **);
-int dio_out(PAGE_ENTRY *, LOOKUP_ENTRY *);
-int dio_pzread(FILE_NO);
-int dio_pzalloc(FILE_NO, F_ADDR *);
-int dio_pzdel(FILE_NO, F_ADDR);
-F_ADDR dio_pznext(FILE_NO);
-void dio_pzclr(void);
-
-/* From initenv.c: */
-int initenv(void);
-
-/* From inittab.c: */
-int inittab(void);
-
-/* From keyfcns.c: */
-int key_open(void);
-void key_close(void);
-int key_init(int);
-int key_reset(FILE_NO);
-int key_locpos(const char *, DB_ADDR *);
-int key_scan(int, DB_ADDR *);
-int key_boundary(int, DB_ADDR *);
-int key_insert(int, const char *, DB_ADDR);
-int key_delete(int, const char *, DB_ADDR);
-/* Due to a problem with MSC 5.1, we couldn't declare the 2nd parm
-   of key_bldcom as const (see keyfcns.c) */
-int key_bldcom(int, char *, char *, int);
-/* Because of a "problem" with the MSC 5.1 compiler, we couldn't declare
-   the second argument to key_cmpcpy with a const attribute.  Hence we
-   were not able to define the 2nd argument of key_bldcom as const.  */
-void key_cmpcpy(char *, char *, INT);
-
-/* From libfcns.c: */
-int dbn_check(int);
-int nset_check(int, int *, SET_ENTRY **);
-int nfld_check(long, int *, int *, RECORD_ENTRY **, FIELD_ENTRY **);
-int nrec_check(int, int *, RECORD_ENTRY **);
-int fldcmp(FIELD_ENTRY *, const char *, const char *);
-int INTcmp(const char *, const char *);
-int ADDRcmp(const DB_ADDR *, const DB_ADDR *);
-int null_dba(const char *);
-int check_dba(DB_ADDR);
-
-/* From makenew.c: */
-int sk_free(void);
-
-/* From netwdos.c: */
-int netbios_chk(void);
-int nw_reset(int, int);
-int nw_addnm(char *, int *);
-int nw_cleanup(char *);
-int nw_sestat(void);
-int nw_delnm(char *);
-int nw_call(char *, char *, int *);
-int nw_hangup(int);
-int nw_send(int, MESSAGE *, int);
-int nw_rcvmsg(int, MESSAGE *, int, int *);
-
-/* From opens.c: */
-int open_b(const char *, int);
-
-/* From ovfcns.c: */
-int o_setup(void);
-int o_init(void);
-int o_fileinit(FILE_NO);
-int o_search(FILE_NO, F_ADDR, F_ADDR *);
-int o_write(PAGE_ENTRY *, LOOKUP_ENTRY *);
-int o_pzwrite(FILE_NO);
-int o_flush(void);
-int o_update(void);
-long o_pages(FILE_NO);
-void o_free(void);
-
-/* From recfcns.c: */
-int r_chkfld(INT, FIELD_ENTRY *, char *, const char *);
-int r_delrec(INT, DB_ADDR);
-int r_gfld(FIELD_ENTRY *, char *, char *);
-int r_gmem(int, char *, char *);
-int r_gset(int, char *, char *);
-int r_pfld(INT, FIELD_ENTRY *, char *, const char *, DB_ADDR *);
-int r_pmem(int, char *, char *);
-int r_pset(int, char *, char *);
-int r_smem(DB_ADDR *, INT);
-int r_setopt(FIELD_ENTRY *, char *);
-int r_clropt(FIELD_ENTRY *, char *);
-int r_tstopt(FIELD_ENTRY *, char *);
-
-/* From pathfcns.c */
-int con_dbd(char *, char *, char *);
-int con_dbf(char *, char *, char *, char *);
-char * get_element(char *, int);
-
-/* From renfile.c: */
-int renfiles(void);
-
-/* From startup.c: */
-int startup(DBN_FIX_D1 TASK_PTR_Di LOCK_Di);
-
-/* From taffcns.c: */
-int taf_open(void);
-int taf_close(void);
-int taf_access(void);
-int taf_release(void);
-int taf_add(const char *);
-int taf_del(const char *);
-
-/* From mapchar.c */
-int  ctb_init(void);
-int  ctbl_alloc(void);
-void ctbl_free(void);
-
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin proto.h */
diff --git a/cde/lib/DtSearch/raima/task.h b/cde/lib/DtSearch/raima/task.h
deleted file mode 100644 (file)
index 1567fb9..0000000
+++ /dev/null
@@ -1,479 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: task.h /main/2 1996/05/09 04:20:28 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: Pi
- *             d_close
- *             d_cmstat
- *             d_cmtype
- *             d_connect
- *             d_costat
- *             d_cotype
- *             d_crget
- *             d_crread
- *             d_crset
- *             d_crstat
- *             d_crtype
- *             d_crwrite
- *             d_csmget
- *             d_csmread
- *             d_csmset
- *             d_csmwrite
- *             d_csoget
- *             d_csoread
- *             d_csoset
- *             d_csowrite
- *             d_csstat
- *             d_ctscm
- *             d_ctsco
- *             d_ctscr
- *             d_dbdpath
- *             d_dbfpath
- *             d_dblog
- *             d_dbuserid
- *             d_delete
- *             d_destroy
- *             d_discon
- *             d_disdel
- *             d_fillnew
- *             d_findco
- *             d_findfm
- *             d_findlm
- *             d_findnm
- *             d_findpm
- *             d_freeall
- *             d_gtscm
- *             d_gtsco
- *             d_gtscr
- *             d_gtscs
- *             d_initfile
- *             d_initialize
- *             d_ismember
- *             d_isowner
- *             d_keydel
- *             d_keyexist
- *             d_keyfind
- *             d_keyfree
- *             d_keyfrst
- *             d_keylast
- *             d_keylock
- *             d_keylstat
- *             d_keynext
- *             d_keyprev
- *             d_keyread
- *             d_keystore
- *             d_lock
- *             d_makenew
- *             d_members
- *             d_off_opt
- *             d_on_opt
- *             d_open
- *             d_rdcurr
- *             d_recfree
- *             d_recfrst
- *             d_reclast
- *             d_reclock
- *             d_reclstat
- *             d_recnext
- *             d_recover
- *             d_recprev
- *             d_recread
- *             d_recset
- *             d_recstat
- *             d_recwrite
- *             d_renfile
- *             d_rerdcurr
- *             d_retries
- *             d_rlbclr
- *             d_rlbset
- *             d_rlbtst
- *             d_set_dberr
- *             d_setdb
- *             d_setfree
- *             d_setkey
- *             d_setlock
- *             d_setlstat
- *             d_setmm
- *             d_setmo
- *             d_setmr
- *             d_setom
- *             d_setoo
- *             d_setor
- *             d_setrm
- *             d_setro
- *             d_stscm
- *             d_stsco
- *             d_stscr
- *             d_stscs
- *             d_timeout
- *             d_trabort
- *             d_trbegin
- *             d_trend
- *             d_utscm
- *             d_utsco
- *             d_utscr
- *             d_utscs
- *             d_wrcurr
- *             dt_closetask
- *             dt_cmstat
- *             dt_cmtype
- *             dt_connect
- *             dt_costat
- *             dt_cotype
- *             dt_crget
- *             dt_crread
- *             dt_crset
- *             dt_crtype
- *             dt_crwrite
- *             dt_csmget
- *             dt_csmread
- *             dt_csmset
- *             dt_csmwrite
- *             dt_csoget
- *             dt_csoread
- *             dt_csoset
- *             dt_csowrite
- *             dt_csstat
- *             dt_ctbpath
- *             dt_ctscm
- *             dt_ctsco
- *             dt_ctscr
- *             dt_dbdpath
- *             dt_dbfpath
- *             dt_dblog
- *             dt_dbuserid
- *             dt_destroy
- *             dt_discon
- *             dt_fillnew
- *             dt_findco
- *             dt_findfm
- *             dt_findlm
- *             dt_findnm
- *             dt_findpm
- *             dt_gtscm
- *             dt_gtsco
- *             dt_gtscr
- *             dt_gtscs
- *             dt_initfile
- *             dt_ismember
- *             dt_isowner
- *             dt_keydel
- *             dt_keyexist
- *             dt_keyfind
- *             dt_keyfree
- *             dt_keyfrst
- *             dt_keylast
- *             dt_keylock
- *             dt_keylstat
- *             dt_keynext
- *             dt_keyprev
- *             dt_keyread
- *             dt_keystore
- *             dt_lock
- *             dt_makenew
- *             dt_mapchar
- *             dt_members
- *             dt_off_opt
- *             dt_on_opt
- *             dt_open
- *             dt_opentask
- *             dt_rdcurr
- *             dt_recfree
- *             dt_recfrst
- *             dt_reclast
- *             dt_reclock
- *             dt_reclstat
- *             dt_recover
- *             dt_recread
- *             dt_recset
- *             dt_recstat
- *             dt_recwrite
- *             dt_renfile
- *             dt_rerdcurr
- *             dt_retries
- *             dt_set_dberr
- *             dt_setdb
- *             dt_setfree
- *             dt_setkey
- *             dt_setlock
- *             dt_setlstat
- *             dt_setmm
- *             dt_setmo
- *             dt_setmr
- *             dt_setom
- *             dt_setoo
- *             dt_setor
- *             dt_setrm
- *             dt_setro
- *             dt_stscm
- *             dt_stsco
- *             dt_stscr
- *             dt_stscs
- *             dt_timeout
- *             dt_trbegin
- *             dt_utscm
- *             dt_utsco
- *             dt_utscr
- *             dt_utscs
- *             dt_wrcurr
- *
- *   ORIGINS: 157
- *
- */
-/*----------------------------------------------------------------------------
-   task.h: db_VISTA task cover function declaration header file
-
-   (C) Copyright 1988 by Raima Corporation.
-----------------------------------------------------------------------------*/
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  571 31-Jan-89 RSC Placed ctbpath inside NO_COUNTRY, not NO_TIMESTAMP
-*/
-
-
-int EXTERNAL_FIXED dt_opentask(P1(DB_TASK *));
-int EXTERNAL_FIXED dt_closetask(P1(DB_TASK));
-
-int EXTERNAL_FIXED dt_close(TASK_D1);                          /* dblfcns.c */
-int EXTERNAL_DBN   dt_cmstat(P1(int) TASK_Di DBN_Dn);          /* cmstat.c */
-int EXTERNAL_DBN   dt_cmtype(P1(int) Pi(int *) TASK_Di DBN_Dn); 
-                                                               /* cmtype.c */
-int EXTERNAL_DBN   dt_connect(P1(int) TASK_Di DBN_Dn);         /* connect.c */
-int EXTERNAL_DBN   dt_cotype(P1(int) Pi(int *) TASK_Di DBN_Dn); 
-                                                               /* cotype.c */
-int EXTERNAL_DBN   dt_crget(P1(DB_ADDR *) TASK_Di DBN_Dn);     /* crget.c */
-int EXTERNAL_DBN   dt_crread(P1(long) Pi(char *) TASK_Di DBN_Dn);
-                                                               /* crread.c */
-int EXTERNAL_DBN   dt_crset(P1(DB_ADDR *) TASK_Di DBN_Dn);     /* crset.c */
-int EXTERNAL_DBN   dt_crtype(P1(int *) TASK_Di DBN_Dn);        /* crtype.c */
-int EXTERNAL_DBN   dt_crwrite(P1(long) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* crwrite.c */
-int EXTERNAL_DBN   dt_csmget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
-                                                               /* csmget.c */
-int EXTERNAL_DBN   dt_csmread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* csmread.c */
-int EXTERNAL_DBN   dt_csmset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
-                                                               /* csmset.c */
-int EXTERNAL_DBN   dt_csmwrite(P1(int) Pi(long) Pi(const char *) TASK_Di 
-                                 DBN_Dn);                      /* csmwrite.c */
-int EXTERNAL_DBN   dt_csoget(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
-                                                               /* csoget.c */
-int EXTERNAL_DBN   dt_csoread(P1(int) Pi(long) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* csoread.c */
-int EXTERNAL_DBN   dt_csoset(P1(int) Pi(DB_ADDR *) TASK_Di DBN_Dn); 
-                                                               /* csoset.c */
-int EXTERNAL_DBN   dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di 
-                                 DBN_Dn);                      /* csowrite.c */
-int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di);       /* pathfcns.c */
-int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di );      /* dbdpath.c */
-int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di );      /* dbfpath.c */
-int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di );        /* dblog.c */
-int EXTERNAL_FIXED dt_dbuserid(P1(const char *) TASK_Di );     /* dbuserid.c */
-int EXTERNAL_DBN   dt_delete(TASK_D1 DBN_Dn);                  /* delete.c */
-int EXTERNAL_DBN   dt_disdel(TASK_D1 DBN_Dn);                  /* disdel.c */
-int EXTERNAL_DBN   dt_recnext(TASK_D1 DBN_Dn);                 /* recnext.c */
-int EXTERNAL_DBN   dt_recprev(TASK_D1 DBN_Dn);                 /* recprev.c */
-int EXTERNAL_FIXED dt_destroy(P1(const char *) TASK_Di );      /* destroy.c */
-int EXTERNAL_DBN   dt_discon(P1(int) TASK_Di DBN_Dn);          /* discon.c */
-int EXTERNAL_DBN   dt_fillnew(P1(int) Pi(const char *) TASK_Di DBN_Dn); 
-                                                               /* fillnew.c */
-int EXTERNAL_DBN   dt_findco(P1(int) TASK_Di DBN_Dn);          /* findco.c */
-int EXTERNAL_DBN   dt_findfm(P1(int) TASK_Di DBN_Dn);          /* findfm.c */
-int EXTERNAL_DBN   dt_findlm(P1(int) TASK_Di DBN_Dn);          /* findlm.c */
-int EXTERNAL_DBN   dt_findnm(P1(int) TASK_Di DBN_Dn);          /* findnm.c */
-int EXTERNAL_DBN   dt_findpm(P1(int) TASK_Di DBN_Dn);          /* findpm.c */
-int EXTERNAL_FIXED dt_freeall(TASK_D1);                                /* dblfcns.c */
-int EXTERNAL_DBN   dt_initialize(TASK_D1 DBN_Dn);              /* initial.c */
-int EXTERNAL_DBN   dt_initfile(P1(FILE_NO) TASK_Di DBN_Dn);    /* initial.c */
-int EXTERNAL_DBN   dt_ismember(P1(int) TASK_Di DBN_Dn);                /* ismember.c */
-int EXTERNAL_DBN   dt_isowner(P1(int) TASK_Di DBN_Dn);         /* isowner.c */
-int EXTERNAL_DBN   dt_keydel(P1(long) TASK_Di DBN_Dn);         /* keydel.c */
-int EXTERNAL_DBN   dt_keyexist(P1(long) TASK_Di DBN_Dn);       /* keyexist.c */
-int EXTERNAL_DBN   dt_keyfind(P1(long) Pi(const char *) TASK_Di DBN_Dn); 
-                                                               /* keyfind.c */
-int EXTERNAL_DBN   dt_keyfree(P1(long) TASK_Di DBN_Dn);                /* dblfcns.c */
-int EXTERNAL_DBN   dt_keyfrst(P1(long) TASK_Di DBN_Dn);                /* keyfrst.c */
-int EXTERNAL_DBN   dt_keylast(P1(long) TASK_Di DBN_Dn);                /* keylast.c */
-int EXTERNAL_DBN   dt_keylock(P1(long) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_keylstat(P1(long) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_keynext(P1(long) TASK_Di DBN_Dn);                /* keynext.c */
-int EXTERNAL_DBN   dt_keyprev(P1(long) TASK_Di DBN_Dn);                /* keyprev.c */
-int EXTERNAL_FIXED dt_keyread(P1(char *) TASK_Di );            /* keyfcns.c */
-int EXTERNAL_DBN   dt_keystore(P1(long) TASK_Di DBN_Dn);       /* keystore.c */
-int EXTERNAL_DBN   dt_lock(P1(int) Pi(LOCK_REQUEST *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_makenew(P1(int) TASK_Di DBN_Dn);         /* makenew.c */
-int EXTERNAL_FIXED dt_mapchar(P1(unsigned char) Pi(unsigned char) 
-                     Pi(const char *) Pi(unsigned char) TASK_Di);
-                                                               /* mapchar.c */
-int EXTERNAL_DBN   dt_members(P1(int) Pi(LONG *) TASK_Di DBN_Dn); 
-                                                               /* members.c */
-int EXTERNAL_FIXED dt_off_opt(P1(int) TASK_Di );               /* options.c */
-int EXTERNAL_FIXED dt_on_opt(P1(int) TASK_Di );                        /* options.c */
-int EXTERNAL_FIXED dt_open(P1(const char *) Pi(const char *) TASK_Di);
-                                                               /* dblfcns.c */
-int EXTERNAL_FIXED dt_rdcurr(P1(DB_ADDR **) Pi(int *) TASK_Di); 
-                                                               /* rwcurr.c */
-int EXTERNAL_FIXED dt_rerdcurr(P1(DB_ADDR **) TASK_Di);        /* rwcurr.c */
-int EXTERNAL_FIXED dt_wrcurr(P1(DB_ADDR *) TASK_Di);   /* rwcurr.c */
-int EXTERNAL_DBN   dt_recfree(P1(int) TASK_Di DBN_Dn);         /* dblfcns.c */
-int EXTERNAL_DBN   dt_recfrst(P1(int) TASK_Di DBN_Dn);         /* recfrst.c */
-int EXTERNAL_DBN   dt_reclast(P1(int) TASK_Di DBN_Dn);         /* reclast.c */
-int EXTERNAL_DBN   dt_reclock(P1(int) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_reclstat(P1(int) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_FIXED dt_recover(P1(const char *) TASK_Di );      /* recover.c */
-int EXTERNAL_DBN   dt_recread(P1(char *) TASK_Di DBN_Dn);      /* recread.c */
-int EXTERNAL_DBN   dt_recset(P1(int) TASK_Di DBN_Dn);          /* recset.c */
-int EXTERNAL_DBN   dt_recwrite(P1(const char *) TASK_Di DBN_Dn); 
-                                                               /* recwrite.c */
-int EXTERNAL_FIXED dt_renfile(P1(const char *) Pi(FILE_NO) 
-                                Pi(const char *) TASK_Di); /* renfile.c */
-int EXTERNAL_FIXED dt_retries(P1(int) TASK_Di );               /* dblfcns.c */
-int EXTERNAL_FIXED dt_rlbclr(TASK_D1);                         /* dblfcns.c */
-int EXTERNAL_FIXED dt_rlbset(TASK_D1);                         /* dblfcns.c */
-int EXTERNAL_FIXED dt_rlbtst(TASK_D1);                         /* dblfcns.c */
-int EXTERNAL_FIXED dt_set_dberr(P1(FARPROC) TASK_Di);          /* dberr.c */
-int EXTERNAL_FIXED dt_setdb(P1(int) TASK_Di);                  /* setdb.c */
-int EXTERNAL_DBN   dt_setfree(P1(int) TASK_Di DBN_Dn);         /* dblfcns.c */
-int EXTERNAL_DBN   dt_setkey(P1(long) Pi(const char *) TASK_Di DBN_Dn); 
-                                                               /* makenew.c */
-int EXTERNAL_DBN   dt_setlock(P1(int) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_setlstat(P1(int) Pi(char *) TASK_Di DBN_Dn); 
-                                                               /* dblfcns.c */
-int EXTERNAL_DBN   dt_setmm(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setmm.c */
-int EXTERNAL_DBN   dt_setmo(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setmo.c */
-int EXTERNAL_DBN   dt_setmr(P1(int) TASK_Di DBN_Dn);           /* setmr.c */
-int EXTERNAL_DBN   dt_setom(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setom.c */
-int EXTERNAL_DBN   dt_setoo(P1(int) Pi(int) TASK_Di DBN_Dn);   /* setoo.c */
-int EXTERNAL_DBN   dt_setor(P1(int) TASK_Di DBN_Dn);           /* setor.c */
-int EXTERNAL_DBN   dt_setrm(P1(int) TASK_Di DBN_Dn);           /* setrm.c */
-int EXTERNAL_DBN   dt_setro(P1(int) TASK_Di DBN_Dn);           /* setro.c */
-int EXTERNAL_FIXED dt_timeout(P1(int) TASK_Di );               /* dblfcns.c */
-int EXTERNAL_FIXED dt_trabort(TASK_D1);                                /* dblfcns.c */
-int EXTERNAL_FIXED dt_trbegin(P1(const char *) TASK_Di);       /* dblfcns.c */
-int EXTERNAL_FIXED dt_trend(TASK_D1);                          /* dblfcns.c */
-
-#ifndef NO_DT_COVER
-
-#define d_close()                    dt_close(CURRTASK_ONLY)
-#define d_dbdpath(a)                 dt_dbdpath(a CURRTASK_PARM)
-#define d_dbfpath(a)                 dt_dbfpath(a CURRTASK_PARM)
-#define d_dblog(a)                   dt_dblog(a CURRTASK_PARM)
-#define d_dbuserid(a)                dt_dbuserid(a CURRTASK_PARM)
-#define d_destroy(a)                 dt_destroy(a CURRTASK_PARM)
-#define d_freeall()                  dt_freeall(CURRTASK_ONLY)
-#define d_off_opt(a)                 dt_off_opt(a CURRTASK_PARM)
-#define d_on_opt(a)                  dt_on_opt(a CURRTASK_PARM)
-#define d_open(a, b)                 dt_open(a, b CURRTASK_PARM)
-#define d_rdcurr(a, b)               dt_rdcurr(a, b CURRTASK_PARM)
-#define d_rerdcurr(a, b)             dt_rerdcurr(a, b CURRTASK_PARM)
-#define d_recover(a)                 dt_recover(a CURRTASK_PARM)
-#define d_renfile(a, b, c)           dt_renfile(a, b, c CURRTASK_PARM)
-#define d_retries(a)                 dt_retries(a CURRTASK_PARM)
-#define d_set_dberr(a, b)            dt_set_dberr(a, b, CURRTASK_PARM)
-#define d_setdb(a)                   dt_setdb(a CURRTASK_PARM)
-#define d_timeout(a)                 dt_timeout(a CURRTASK_PARM)
-#define d_trabort()                  dt_trabort(CURRTASK_ONLY)
-#define d_trbegin(a)                 dt_trbegin(a CURRTASK_PARM)
-#define d_trend()                    dt_trend(CURRTASK_ONLY)
-#define d_wrcurr(a)                  dt_wrcurr(a CURRTASK_PARM)
-
-#define d_cmstat(a , dbn)         dt_cmstat(a CURRTASK_PARM , dbn)
-#define d_cmtype(a, b , dbn)      dt_cmtype(a, b CURRTASK_PARM , dbn)
-#define d_connect(a , dbn)        dt_connect(a CURRTASK_PARM , dbn)
-#define d_cotype(a, b , dbn)      dt_cotype(a, b CURRTASK_PARM , dbn)
-#define d_crget(a , dbn)          dt_crget(a CURRTASK_PARM , dbn)
-#define d_crread(a, b , dbn)      dt_crread(a, b CURRTASK_PARM , dbn)
-#define d_crset(a , dbn)          dt_crset(a CURRTASK_PARM , dbn)
-#define d_crtype(a , dbn)         dt_crtype(a CURRTASK_PARM , dbn)
-#define d_crwrite(a, b , dbn)     dt_crwrite(a, b CURRTASK_PARM , dbn)
-#define d_csmget(a, b , dbn)      dt_csmget(a, b CURRTASK_PARM , dbn)
-#define d_csmread(a, b, c , dbn)  dt_csmread(a, b, c CURRTASK_PARM , dbn)
-#define d_csmset(a, b , dbn)      dt_csmset(a, b CURRTASK_PARM , dbn)
-#define d_csmwrite(a, b, c , dbn) dt_csmwrite(a, b, c CURRTASK_PARM , dbn)
-#define d_csoget(a, b , dbn)      dt_csoget(a, b CURRTASK_PARM , dbn)
-#define d_csoread(a, b, c , dbn)  dt_csoread(a, b, c CURRTASK_PARM , dbn)
-#define d_csoset(a, b , dbn)      dt_csoset(a, b CURRTASK_PARM , dbn)
-#define d_csowrite(a, b, c , dbn) dt_csowrite(a, b, c CURRTASK_PARM , dbn)
-#define d_delete(, dbn)           dt_delete(CURRTASK_ONLY , dbn)
-#define d_disdel(, dbn)           dt_disdel(CURRTASK_ONLY , dbn)
-#define d_recnext(, dbn)          dt_recnext(CURRTASK_ONLY , dbn)
-#define d_recprev(, dbn)          dt_recprev(CURRTASK_ONLY , dbn)
-#define d_discon(a , dbn)         dt_discon(a CURRTASK_PARM , dbn)
-#define d_fillnew(a, b , dbn)     dt_fillnew(a, b CURRTASK_PARM , dbn)
-#define d_findco(a , dbn)         dt_findco(a CURRTASK_PARM , dbn)
-#define d_findfm(a , dbn)         dt_findfm(a CURRTASK_PARM , dbn)
-#define d_findlm(a , dbn)         dt_findlm(a CURRTASK_PARM , dbn)
-#define d_findnm(a , dbn)         dt_findnm(a CURRTASK_PARM , dbn)
-#define d_findpm(a , dbn)         dt_findpm(a CURRTASK_PARM , dbn)
-#define d_initialize(, dbn)       dt_initialize(CURRTASK_ONLY , dbn)
-#define d_initfile(a , dbn)       dt_initfile(a CURRTASK_PARM , dbn)
-#define d_ismember(a , dbn)       dt_ismember(a CURRTASK_PARM , dbn)
-#define d_isowner(a , dbn)        dt_isowner(a CURRTASK_PARM , dbn)
-#define d_keydel(a , dbn)         dt_keydel(a CURRTASK_PARM , dbn)
-#define d_keyexist(a , dbn)       dt_keyexist(a CURRTASK_PARM , dbn)
-#define d_keyfind(a, b , dbn)     dt_keyfind(a, b CURRTASK_PARM , dbn)
-#define d_keyfree(a , dbn)        dt_keyfree(a CURRTASK_PARM , dbn)
-#define d_keyfrst(a , dbn)        dt_keyfrst(a CURRTASK_PARM , dbn)
-#define d_keylast(a , dbn)        dt_keylast(a CURRTASK_PARM , dbn)
-#define d_keylock(a, b , dbn)     dt_keylock(a, b CURRTASK_PARM , dbn)
-#define d_keylstat(a, b , dbn)    dt_keylstat(a, b CURRTASK_PARM , dbn)
-#define d_keynext(a , dbn)        dt_keynext(a CURRTASK_PARM , dbn)
-#define d_keyprev(a , dbn)        dt_keyprev(a CURRTASK_PARM , dbn)
-#define d_keyread(a , dbn)        dt_keyread(a CURRTASK_PARM)
-#define d_keystore(a , dbn)       dt_keystore(a CURRTASK_PARM , dbn)
-#define d_lock(a, b , dbn)        dt_lock(a, b CURRTASK_PARM , dbn)
-#define d_makenew(a , dbn)        dt_makenew(a CURRTASK_PARM , dbn)
-#define d_members(a, b , dbn)     dt_members(a, b CURRTASK_PARM , dbn)
-#define d_recfree(a , dbn)        dt_recfree(a CURRTASK_PARM , dbn)
-#define d_recfrst(a , dbn)        dt_recfrst(a CURRTASK_PARM , dbn)
-#define d_reclast(a , dbn)        dt_reclast(a CURRTASK_PARM , dbn)
-#define d_reclock(a, b , dbn)     dt_reclock(a, b CURRTASK_PARM , dbn)
-#define d_reclstat(a, b , dbn)    dt_reclstat(a, b CURRTASK_PARM , dbn)
-#define d_recread(a , dbn)        dt_recread(a CURRTASK_PARM , dbn)
-#define d_recset(a , dbn)         dt_recset(a CURRTASK_PARM , dbn)
-#define d_recwrite(a , dbn)       dt_recwrite(a CURRTASK_PARM , dbn)
-#define d_setfree(a , dbn)        dt_setfree(a CURRTASK_PARM , dbn)
-#define d_setkey(a, b , dbn)      dt_setkey(a, b CURRTASK_PARM , dbn)
-#define d_setlock(a, b , dbn)     dt_setlock(a, b CURRTASK_PARM , dbn)
-#define d_setlstat(a, b , dbn)    dt_setlstat(a, b CURRTASK_PARM , dbn)
-#define d_setmm(a, b , dbn)       dt_setmm(a, b CURRTASK_PARM , dbn)
-#define d_setmo(a, b , dbn)       dt_setmo(a, b CURRTASK_PARM , dbn)
-#define d_setmr(a , dbn)          dt_setmr(a CURRTASK_PARM , dbn)
-#define d_setom(a, b , dbn)       dt_setom(a, b CURRTASK_PARM , dbn)
-#define d_setoo(a, b , dbn)       dt_setoo(a, b CURRTASK_PARM , dbn)
-#define d_setor(a , dbn)          dt_setor(a CURRTASK_PARM , dbn)
-#define d_setrm(a , dbn)          dt_setrm(a CURRTASK_PARM , dbn)
-#define d_setro(a , dbn)          dt_setro(a CURRTASK_PARM , dbn)
-
-#endif /* NO_DT_COVER */
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC task.h */
diff --git a/cde/lib/DtSearch/raima/trxlog.h b/cde/lib/DtSearch/raima/trxlog.h
deleted file mode 100644 (file)
index bdc8ce1..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: BITMAP_SIZE
- *             BM_BASE
- *             IX_BASE
- *             IX_SIZE
- *             PZ_BASE
- *
- *   ORIGINS: 157
- *
- */
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-  611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis
-*/
-
-
-/* trxlog.h  -  header file to define structures, constants, etc. for the
-                memory cache overflow and transaction log file control
-==========================================================================
-*/
-/*
-   The following constants control the functioning of the cache overflow
-   and transaction logging processes
-
-   BUI             The number of bits in an unsigned int
-   IX_PAGESIZE     The size (in bytes) of an index page
-   IX_EPP          The number of entries that will fit on an index page
-   BITMAP_SIZE     The size of the index bitmap (in unsigned int units)
-   IX_SIZE         The number of index pages needed to control the db pages
-   OADDR_OF_IXP    Calculates the overflow file address of an index page #
-   
-==========================================================================
-*/
-/* (BITS(unsigned int)) */
-#define BUI (8*sizeof(unsigned int))
-
-
-/*
-==========================================================================
-*/
-
-/* page zero table entry */
-#define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG))
-typedef struct PGZERO_S {
-   F_ADDR  pz_dchain;         /* delete chain pointer */
-   F_ADDR  pz_next;           /* next available record number */
-   ULONG   pz_timestamp;      /* file's timestamp value */
-   BOOLEAN pz_modified;       /* TRUE if page zero has been modified */
-} PGZERO;
-
-/* binary search lookup table entry */
-
-
-/* Maximum number of transactions which can commit a time */
-#define TAFLIMIT 1
-
-#define TRXLOG_H
-/* End - trxlog.h */
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */
diff --git a/cde/lib/DtSearch/raima/vista.h b/cde/lib/DtSearch/raima/vista.h
deleted file mode 100644 (file)
index a0ace53..0000000
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *   COMPONENT_NAME: austext
- *
- *   FUNCTIONS: P1
- *              POINTER_ASSIGN
- *              POINTER_INIT
- *              Pi
- *              Piv
- *              Pv
- *              int
- *
- *   ORIGINS: 27,157
- *
- *   (C) COPYRIGHT International Business Machines Corp. 1995, 1996
- *   All Rights Reserved
- *   US Government Users Restricted Rights - Use, duplication or
- *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-/*----------------------------------------------------------------------
-  $TOG: vista.h /main/7 1998/04/03 17:10:52 mgreess $
-  vista.h: db_VISTA standard header file
-
-   This file should be included in all programs which use db_VISTA.  It
-   contains database status/error code definitions and standard type
-   definitions.
-
-   This file should only include user-oriented constructs.
-
-   (C) Copyright 1984, 1985, 1986, 1987 by Raima Corp.
-
-----------------------------------------------------------------------*/
-
-/* ********************** EDIT HISTORY *******************************
-
- SCR    DATE    INI                   DESCRIPTION
------ --------- --- -----------------------------------------------------
-      03-AUG-88 RTK Multi-tasking support - see "#ifdef MULTI_TASK"
-      08-AUG-88 RTK Declared globals rn_dba, rn_type, and ft_offset to
-                   support recfrst, recnext, etc in ONE_DB mode.
-      16-Sep-88 RSC Fixed DBN_Dx to use variable # of arg macros.
-      28-Sep-88 WLW Corrected the db_VERSION to 3.10 from 3.01.
-      11-Oct-88 RSC Fixed DBN_Dx to use variable # of arg macros (again)
-      11-Oct-88 RSC Fixed ONE_DB to compile correctly
-      17-Oct-88 RSC Replaced MSC with ANSI, moved compiler check to dbtype
-  439 17-Nov-88 RSC Placed some multi-tasking stuff within MULTI_TASK
-  441 06-Dec-88 RSC Modifications to make gen lockmgr work with 3.10
-      26-Jan-89 RSC Add defn for UINT (for lockmgr)
-  420 13-Feb-89 WLW Removed unused prototypes of {Make,Free}ProcInstance
- *
- * $Log$
- * Revision 1.2  1995/10/17  18:33:01  miker
- * Added global db_oflag, changed values of db_VERSION and dbd_VERSION:
- * - Allow access to read-only databases.
- * - Expand maximum file names from 48 to 240 chars (DtSrFILENMLEN).
- * - Disable transaction processing (NO_TRANS) to obviate need
- *   for vista.taf and vista.log files.
- * - Disregard all environment variables.
- * - Replace default dberr.c with one that doesn't read stdin.
- * - Rename library from libvista to prevent confusion with old code.
- * - Prefix all vista utility names with "dt...", also to deconfuse.
- *
- */
-#if defined(__linux__)
-# define __SVR4_I386_ABI_L1__
-#endif
-#include <limits.h>    /* pickup WORD_BIT, LONG_BIT */
-#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
-# undef __SVR4_I386_ABI_L1__
-# ifndef WORD_BIT
-# define WORD_BIT 32
-# endif
-# ifndef LONG_BIT
-# define LONG_BIT 32
-# endif
-#endif
-
-#define db_VERSION "3.dt"      /* was "3.10" */
-#define dbd_VERSION "V3.dt\032"        /* was "V3.00\032" */
-
-/* -------------------status codes-------------------- */
-/* user errors */
-#define S_DBOPEN    -1    /* database not opened */
-#define S_INVSET    -2    /* invalid set */
-#define S_INVREC    -3    /* invalid record */
-#define S_INVDB     -4    /* invalid database */
-#define S_INVFLD    -5    /* invalid field name */
-#define S_INVADDR   -6    /* invalid db_address */
-#define S_NOCR      -7    /* no current record */
-#define S_NOCO      -8    /* set has no current owner */
-#define S_NOCM      -9    /* set has no current member */
-#define S_KEYREQD   -10   /* key value required */
-#define S_BADTYPE   -11   /* invalid lock type */
-#define S_HASMEM    -12   /* record is owner of non-empty set(s) */
-#define S_ISMEM     -13   /* record is member of set(s) */
-#define S_ISOWNED   -14   /* member already owned */
-#define S_ISCOMKEY  -15   /* field is a compound key */
-#define S_NOTCON    -16   /* record not connected to set */
-#define S_NOTKEY    -17   /* field is not a valid key */
-#define S_INVOWN    -18   /* record not legal owner of set */
-#define S_INVMEM    -19   /* record not legal member of set */
-#define S_SETPAGES  -20   /* error in d_setpages (database open or bad param) */
-#define S_INCOMPAT  -21   /* incompatible dictionary file */
-#define S_DELSYS    -22   /* illegal attempt to delete system record */
-#define S_NOTFREE   -23   /* attempt to locked previously locked rec or set */
-#define S_NOTLOCKED -24   /* attempt to access unlocked record or set */
-#define S_TRANSID   -25   /* transaction id not be supplied */
-#define S_TRACTIVE  -26   /* transaction already active */
-#define S_TRNOTACT  -27   /* transaction not currently active */
-#define S_TRLOCKS   -28   /* transaction cannot begin due to locked files */
-#define S_TRFREE    -29   /* attempt to free a lock inside a transaction */
-#define S_TRCHANGES -30   /* too many pages changed within transaction */
-#define S_NOTRANS   -31   /* attempted update outside of transaction */
-#define S_EXCLUSIVE -32   /* functions requires exclusive db access */
-#define S_STATIC    -33   /* Attempted to write lock a static file */
-#define S_USERID    -34   /* No user id exists */
-#define S_NAMELEN   -35   /* database file/path name too long */
-#define S_RENAME    -36   /* invalid file number was passed to d_renfile */
-#define S_NOTOPTKEY -37   /* field is not an optional key */
-#define S_BADFIELD  -38   /* field not defined in current record type */
-#define S_COMKEY    -39   /* record/field has/in a compound key */
-#define S_INVNUM    -40   /* invalid record or set number */
-#define S_TIMESTAMP -41   /* record or set not timestamped */
-#define S_BADUSERID -42   /* invalid user id - not alphanumeric */
-#define S_NONETBIOS -43   /* NetBIOS is not installed on machine */
-#define S_BADBDPATH -44          /* bad # of elements in DBDPATH */
-#define S_BADBFPATH -45   /* bad # of elements in DBFPATH */
-#define S_NOTYPE    -46          /* No current record type */
-#define S_INVSORT   -47          /* Invalid country table sort string */
-#define S_DBCLOSE   -48   /* database not closed */
-
-/* system errors */
-#define S_NOSPACE   -900  /* no more space on file */
-#define S_SYSERR    -901  /* system error */
-#define S_FAULT     -902  /* page fault -- changed during usage */
-#define S_NOWORK    -903  /* no working file set in dio */
-#define S_NOMEMORY  -904  /* unable to allocate sufficient memory */
-#define S_NOFILE    -905  /* unable to locate a file */
-#define S_DBLACCESS -906  /* unable to access db lock file */
-#define S_DBLERR    -907  /* db lock file open/access error */
-#define S_BADLOCKS  -908  /* inconsistent database locks */
-#define S_RECLIMIT  -909  /* file record limit reached */
-#define S_KEYERR    -910  /* key file inconsistency detected */
-#define S_USERLIMIT -911  /* Max concurrent user limit reached */
-#define S_FSEEK     -912  /* Bad seek on database file */
-#define S_INVFILE   -913  /* Invalid file specified */
-#define S_BADREAD   -914  /* Bad read on database/overflow file */
-#define S_NETSYNC   -915  /* Network synchronization error */
-#define S_DEBUG     -916  /* Debugging check interrupt */
-#define S_NETERR    -917  /* Network communications error */
-#define S_RECOVERY  -918  /* Auto-recovery is in process */
-#define S_BADWRITE  -919  /* Bad write on database/overflow file */
-#define S_NOLOCKMGR -920  /* Unable to open lockmgr session */
-#define S_DUPUSERID -921  /* DBUSERID is already used by another user */
-#define S_LMBUSY    -922  /* The lock manager is busy */
-
-/* function statuses */
-#define S_OKAY      0     /* normal return, okay */
-#define S_EOS       1     /* end of set */
-#define S_NOTFOUND  2     /* record not found */
-#define S_DUPLICATE 3     /* duplicate key */
-#define S_KEYSEQ    4     /* field type used out of sequence in d_keynext */
-#define S_UNAVAIL   5     /* database file currently unavailable */
-#define S_DELETED   6     /* record/set deleted since last accessed */
-#define S_UPDATED   7     /* record/set updated since last accessed */
-#define S_LOCKED    8     /* current record's lock bit is set */
-#define S_UNLOCKED  9     /* current record's lock bit is clear */
-
-/* In order to share databases among heterogenous machines,
- * certain integer types must be defined that are invariably
- * 2 and 4 bytes on all architectures.
- * Note WORD_BIT == 32 does not guarantee short == 16.
- */
-
-#ifdef LONG
-#undef LONG
-#endif
-
-#if   (WORD_BIT == 16)
-  typedef int             INT;
-  typedef unsigned int    UINT;
-#elif (WORD_BIT == 32)
-  typedef short           INT;
-  typedef unsigned short  UINT;
-#else
-#error Unable to typedef INT and UINT
-#endif
-
-#if (LONG_BIT == 32)
-  typedef long            LONG;
-  typedef unsigned long   ULONG;
-#elif   (WORD_BIT == 32)
-  typedef int             LONG;
-  typedef unsigned int    ULONG;
-#else
-#error Unable to typedef LONG and ULONG
-#endif
-
-typedef LONG   BOOLEAN;
-
-#define MAXRECORDS 16777215
-#define NULL_DBA 0
-
-/* db_VISTA database address */
-#define DB_ADDR LONG  
-
-/* db_VISTA file number */
-#define FILE_NO INT   
-
-/* file address: page or record number */
-#define F_ADDR LONG   
-
-/* record number indicator */
-#define RECMARK 10000
-/* field number indicator = rec * FLDMARK + fld_in_rec */
-#define FLDMARK 1000
-/* set number indicator - must be greater than RECMARK */
-#define SETMARK 20000
-
-/* runtime option flags */
-#define DCHAINUSE  0x01
-#define TRLOGGING  0x02
-#define ARCLOGGING 0x04
-#define IGNORECASE 0x08
-
-/* grouped lock request packet */
-extern int db_status;
-
-/* Mike Russell's custom open() flag.  Default is O_RDWR.
- * Change to O_RDONLY prior to d_open() if not updating
- * the databases, if their permissions do not allow
- * writing, if they're on cd-roms, etc.
- * Not used internally for open functions that are known
- * to require write permissions (eg initializations),
- * or known to be read-only.
- */
-extern int db_oflag;
-
-#ifndef GENERAL                        /* GENERAL lockmgr */
-#ifdef MSC                     /* MSC */
-#ifndef NO_EXT_KEYWORDS                   /* NO_EXT_KEYWORDS */
-#ifndef PASCAL                       /* PASCAL */
-#define PASCAL pascal
-#endif                               /* PASCAL */
-#ifndef CDECL                        /* CDECL */
-#define CDECL cdecl
-#endif                               /* CDECL */
-#endif                            /* NO_EXT_KEYWORDS */
-#endif                         /* MSC */
-#endif                         /* GENERAL lockmgr */
-
-#ifndef PASCAL
-#define PASCAL /**/
-#endif
-
-#ifndef CDECL
-#define CDECL /**/
-#endif
-
-#define EXTERNAL_FIXED    PASCAL
-#define EXTERNAL_VARIABLE CDECL
-#define INTERNAL_FIXED    PASCAL
-#define INTERNAL_VARIABLE CDECL
-
-typedef int (PASCAL *FARPROC)();
-typedef char *HANDLE;
-
-#define LOCK_DESC /**/
-#define POINTER_INIT()         {  NULL  }
-#define POINTER_ASSIGN(a)      {  a  }
-
-typedef struct {char *ptr; LOCK_DESC} CHAR_P;
-typedef struct {DB_ADDR *ptr; LOCK_DESC} DB_ADDR_P;
-
-
-/* Allow for function prototyping */
-#ifdef LINT_ARGS
-#define P0     void    /* parameterless function */
-#define P1(t)  t       /* first (or only) parameter in function */
-#define Pi(t)  ,t      /* subsequent (2,3,...) parameter in function */
-#ifdef ANSI
-#define Piv(t) ,...    /* begining of variable number of parameters */
-#define Pv(t)  /**/    /* function has 0 or more parameters */
-#else
-#define Piv(t) ,       /* [XENIX] begining of variable number of parameters */
-#define Pv(t)  ,       /* [XENIX] function has 0 or more parameters */
-#endif
-#else
-#define P0     /**/
-#define P1(t)  /**/
-#define Pi(t)  /**/
-#define Piv(t) /**/
-#define Pv(t)  /**/
-#endif
-
-
-
-#define DBN_D1 Pv(int)
-#define DBN_FIX_D1 P1(int)
-#define DBN_Dn Piv(int)
-
-#define TASK_DBN_D1 DBN_D1
-#define TASK_D1 P0
-#define TASK_Di /**/
-#define TASK_PTR_D1 P0
-#define TASK_PTR_Di /**/
-#define CURRTASK_PARM            /**/
-#define CURRTASK_ONLY            /**/
-
-#define LOCK_D1 /**/
-#define LOCK_Di /**/
-
-typedef struct {
-   int  item;  /* record or set number */
-   char type;  /* lock type: 'r', 'w', 'x', 'k' */
-} LOCK_REQUEST;
-
-
-#include "dproto.h"
-
-/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC vista.h */
diff --git a/cde/lib/DtSvc/DtUtil1/Action.h b/cde/lib/DtSvc/DtUtil1/Action.h
deleted file mode 100644 (file)
index 63550e5..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: Action.h /main/4 1998/05/06 15:55:18 rafi $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Action_h
-#define _Dt_Action_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Argument types
- */
-
-#define DtACTION_FILE   1      /* file argument */
-#define DtACTION_BUFFER         2      /* buffer argument */
-#define DtACTION_STRING         3      /* string argument */
-#define DtACTION_NULLARG 4     /* untyped return-only argument */
-
-typedef struct {
-       void *bp;               /* location of buffer */
-       int size;               /* size of buffer in bytes */
-       char *type;             /* (opt.) type of buffer */
-        char *name;            /* (opt.) name of buffer object */
-        Boolean writable;      /* allow changes to buffer object? */
-} DtActionBuffer;
-
-typedef struct {
-       char *name;
-} DtActionFile;
-
-typedef struct {
-       /*
-        * Structure containing argument information
-        */
-       int argClass;           /* see argument types */
-       union {
-               DtActionFile    file;
-               DtActionBuffer  buffer;
-        } u;
-} DtActionArg;
-
-/*
- * DtActionStatus codes
- */
-typedef enum {
-       DtACTION_OK,                    /* If not any of the below */
-       DtACTION_INVALID_ID,            /* ID is not valid */
-       DtACTION_INVOKED,               /* the action invocation step is done */
-       DtACTION_STATUS_UPDATE,         /* status update */
-       DtACTION_DONE,                  /* normal action termination code */
-       DtACTION_FAILED,                /* error running action */
-       DtACTION_CANCELED               /* normal action termination by cancel*/
-} DtActionStatus;
-
-typedef void (*DtDbReloadCallbackProc)(
-               XtPointer       clientData);
-
-/*
- * DtActionInvocationID is the fundamental user-space handle to invoked
- * actions.
- */
-typedef unsigned long DtActionInvocationID;
-
-typedef void (*DtActionCallbackProc) (
-               DtActionInvocationID    id,
-               XtPointer       client_data,
-               DtActionArg     *actionArgPtr,
-               int             actionArgCount,
-               DtActionStatus  status);
-
-/*
- * Functions
- */
-
-extern Boolean DtActionExists(
-               char            *actionName);
-
-extern char * DtActionLabel(
-               char            *actionName);
-
-extern char * DtActionDescription(
-               char            *actionName);
-
-extern void DtDbReloadNotify ( 
-               DtDbReloadCallbackProc proc, 
-               XtPointer       clientData);
-
-extern void DtDbLoad(void);
-
-extern DtActionInvocationID DtActionInvoke (
-               Widget          w,
-               char            *action,
-               DtActionArg     *args,
-               int             argCount,
-               char            *termOpts,
-               char            *execHost,
-               char            *contextDir,
-               int             useIndicator,
-               DtActionCallbackProc statusUpdateCb,
-               XtPointer       client_data);
-
-extern char * DtActionIcon(
-               char            *actionName);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Action_h */
diff --git a/cde/lib/DtSvc/DtUtil1/ActionDb.h b/cde/lib/DtSvc/DtUtil1/ActionDb.h
deleted file mode 100644 (file)
index 397cb18..0000000
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*****************************************************************************
- *
- * File:         ActionDb.h
- * RCS:          $XConsortium: ActionDb.h /main/3 1995/10/26 14:58:38 rswiston $
- * Description:  Internal header file for the action database functions.
- * Language:     C
- * Package:      N/A
- * Status:       Experimental (Do Not Distribute)
- *
- *
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- *****************************************************************************/
-
-#ifndef _Dt_ActionDb_h
-#define _Dt_ActionDb_h
-
-
-/*
- * The following constants are used by the database parsing code to
- * identify the field names for an action definition.
- *
- * Recognized Field names for any action definition.
- */
-#define        _DtACTION_NAME                  "ACTION"
-#define _DtACTION_TYPE                 "TYPE"
-#define _DtACTION_LABEL                        "LABEL"
-#define _DtACTION_ARG_CLASS            "ARG_CLASS"
-#define _DtACTION_ARG_MODE             "ARG_MODE"
-#define _DtACTION_ARG_TYPE             "ARG_TYPE"
-#define _DtACTION_ARG_COUNT            "ARG_COUNT"
-#define _DtACTION_DESCRIPTION          "DESCRIPTION"
-#define _DtACTION_ICON                 "ICON"
-#define _DtACTION_INSTANCE_ICON                "INSTANCE_ICON"
-
-/*
- * Miscellaneous syntax strings
- */
-#define        _DtACT_ANY                      "*"
-#define _DtACT_LIST_SEPARATOR_CHAR     ','
-#define _DtACT_GT_CHAR                 '>'
-#define        _DtACT_LT_CHAR                  '<'
-
-
-/*
- * Valid values for ACTION_TYPE
- */
-#define _DtACTION_MAP          "MAP"
-#define _DtACTION_COMMAND      "COMMAND"
-#define _DtACTION_TT_MSG       "TT_MSG"
-
-#ifdef  _DT_ALLOW_DT_MSGS
-
-#define _DtACTION_DT_REQUEST   "DT_REQUEST"
-#define _DtACTION_DT_NOTIFY    "DT_NOTIFY"
-#endif /* _DT_ALLOW_DT_MSGS */
-
-/*
- * Field names for "MAP" type actions
- */
-
-#define _DtACTION_MAP_ACTION   "MAP_ACTION"
-
-/*
- * Field names for the "COMMAND" type actions.
- */
-#define _DtACTION_EXEC_STRING          "EXEC_STRING"
-#define _DtACTION_EXEC_HOST            "EXEC_HOST"
-#define _DtACTION_CWD                  "CWD"
-#define _DtACTION_WINDOW_TYPE          "WINDOW_TYPE"
-#define _DtACTION_TERM_OPTS            "TERM_OPTS"
-
-/*
- * Field names for "TT_MSG" type actions
- */
-#define _DtACTION_TT_CLASS             "TT_CLASS"
-#define _DtACTION_TT_SCOPE             "TT_SCOPE"
-#define _DtACTION_TT_OPERATION         "TT_OPERATION"
-#define _DtACTION_TT_FILE              "TT_FILE"
-/* definitions to decifer TT_ARGn_* fields */
-#define _DtACTION_TTN_ARG              "TT_ARG"
-#define _DtACTION_TTN_MODE             "_MODE"
-#define _DtACTION_TTN_VTYPE            "_VTYPE"
-#define _DtACTION_TTN_REP_TYPE         "_REP_TYPE"
-#define _DtACTION_TTN_VALUE            "_VALUE"
-
-
-#ifdef _DT_ALLOW_DT_MSGS
-/*
- * Field names for "DT_REQUEST" type actions
- */
-#define _DtACTION_DT_REQUEST_NAME      "DT_REQUEST_NAME"
-#define _DtACTION_DT_SVC               "DT_SVC"
-
-/*
- * Field names for "DT_NOTIFY" type actions
- */
-#define _DtACTION_DT_NOTIFY_NAME       "DT_NOTIFY_NAME"
-#define _DtACTION_DT_NGROUP            "DT_NGROUP"
-
-/*
- * Field names for DT ARGn (either request or notify)
- */
-#define _DtACTION_DTN_ARG              "DT_ARG"
-#define _DtACTION_DTN_VALUE            "_VALUE"
-
-#endif /* _DT_ALLOW_DT_MSGS */
-
-/*
- * Valid  Field value strings
- *     for Command Actions Window Types
- */
-#define _DtACTION_TERMINAL             "TERMINAL"
-#define        _DtACTION_PERM_TERMINAL         "PERM_TERMINAL"
-#define _DtACTION_NO_STDIO             "NO_STDIO"
-
-/*
- * Valid Field values for ARG_CLASS records.
- */
-#define        _DtACTION_BUFFER                "BUFFER"
-#define _DtACTION_FILE                 "FILE"
-#define _DtACTION_STRING               "STRING"
-
-/*
- * Valid Field values for ARG_MODE 
- */
-
-#define                _DtACT_ARG_MODE_WRITE           "w"
-#define                _DtACT_ARG_MODE_NOWRITE         "!w"
-#define                _DtACT_ARG_MODE_ANY             _DtACT_ANY
-
-
-/*
- * Valid Field values for TT_CLASS records.
- */
-#define _DtACTION_TT_NOTICE            "TT_NOTICE"
-#define _DtACTION_TT_REQUEST           "TT_REQUEST"
-
-/*
- * Valid Field values for TT_SCOPE records.
- */
-#define _DtACTION_TT_SESSION           "TT_SESSION"
-#define _DtACTION_TT_BOTH              "TT_BOTH"
-#define _DtACTION_TT_FILE_IN_SESSION   "TT_FILE_IN_SESSION"
-/* --- same as TT_MSG's TT_FILE field name --------
- #define _DtACTION_TT_FILE             "TT_FILE"
- */
-
-/*
- * Valid Field values for TT_ARGn_MODE
- */
-#define _DtACTION_TT_MODE_IN           "TT_IN"
-#define _DtACTION_TT_MODE_OUT          "TT_OUT"
-#define _DtACTION_TT_MODE_INOUT                "TT_INOUT"
-
-/*
- * Valid Field values for TT_ARGn_REP_TYPE
- */
-#define _DtACTION_TT_RTYP_UND  "TT_REP_UNDEFINED"
-#define _DtACTION_TT_RTYP_INT  "TT_REP_INTEGER"
-#define _DtACTION_TT_RTYP_BUF  "TT_REP_BUFFER"
-#define _DtACTION_TT_RTYP_STR  "TT_REP_STRING"
-
-/*
- * Action Keywords -- 
- *                 these keywords appear in the action database files
- *                  in the form: %<qualifier><keyword><prompt string>%
- *                 where the optional qualifier in enclosed in: ()
- *                 and the optional prompt string is enclosed in: ""
- */
-#define        _DtACT_DATABASEHOST_STR         "DatabaseHost"
-#define _DtACT_DISPLAYHOST_STR         "DisplayHost"
-#define _DtACT_LOCALHOST_STR           "LocalHost"
-#define _DtACT_SESSIONHOST_STR         "SessionHost"
-#define _DtACT_ARGS_STR                        "Args"
-#define _DtACT_ARG_UNDER_STR           "Arg_"
-
-#define _DtACT_STRING_QUALIFIER                "(String)"
-#define _DtACT_FILE_QUALIFIER          "(File)"
-
-
-
-/*
- * Default action field value definitions (these should be strings)
- * for recognized fields.
- */
-#define                _DtACT_LBL_DFLT         NULL
-#define                _DtACT_TYPE_DFLT        _DtACTION_COMMAND
-#define                _DtACT_ARG_CLASS_DFLT   _DtACT_ANY
-#define                _DtACT_ARG_MODE_DFLT    _DtACT_ANY
-#define                _DtACT_ARG_TYPE_DFLT    _DtACT_ANY
-#define                _DtACT_ARG_CNT_DFLT     _DtACT_ANY
-#define                _DtACT_DESC_DFLT        NULL
-#define                _DtACT_ICON_DFLT        NULL
-#define                _DtACT_MAP_ACT_DFLT     NULL
-#define                _DtACT_EXEC_STRG_DFLT   NULL
-#define                _DtACT_EXEC_HOST_DFLT   \
-       "%" _DtACT_DATABASEHOST_STR "%,%" _DtACT_LOCALHOST_STR "%"
-#define                _DtACT_CWD_DFLT         NULL
-#define                _DtACT_WIN_TYPE_DFLT    _DtACTION_PERM_TERMINAL
-#define                _DtACT_TERM_OPTS_DFLT   NULL
-#define                _DtACT_TT_CLASS_DFLT    NULL
-#define                _DtACT_TT_SCOPE_DFLT    NULL
-#define                _DtACT_TT_OP_DFLT       NULL
-#define                _DtACT_TT_FILE_DFLT     NULL
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define                _DtACT_DT_REQ_DFLT      NULL
-#define                _DtACT_DT_SVC_DFLT      NULL
-#define                _DtACT_DT_NTFY_DFLT     NULL
-#define                _DtACT_DT_NGRP_DFLT     NULL
-#endif /* _DT_ALLOW_DT_MSGS */
-
-
-
-#endif /* _Dt_ActionDb_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/ActionDbP.h b/cde/lib/DtSvc/DtUtil1/ActionDbP.h
deleted file mode 100644 (file)
index 5c24e00..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*****************************************************************************
- *
- * File:         ActionDbP.h
- * RCS:          $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
- * Description:  Private header file for the action database functions.
- * Language:     C
- * Package:      N/A
- *
- *
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- *****************************************************************************/
-
-#ifndef _Dt_ActionDbP_h
-#define _Dt_ActionDbP_h
-
-#include <Dt/DbReader.h>
-#include <Dt/ActionDb.h>
-
-#define                _DtMAX_NUM_FIELDS               30
-#define                _ActDb_MAX_NUM_FIELDS   _DtMAX_NUM_FIELDS
-
-
-/*
- * Bitmask field definitions for the action converter bit mask.
- * These are NOT the bits for the mask in struct ACTION.
- */
-
-#define                _ActDb_LABEL_SET        (1<<0)
-#define                _ActDb_TYPE_SET         (1<<1)
-#define                _ActDb_ARG_CLASS_SET    (1<<2)
-#define                _ActDb_ARG_TYPE_SET     (1<<3)
-#define                _ActDb_ARG_COUNT_SET    (1<<4)
-#define                _ActDb_ARG_MODE_SET     (1<<5)
-#define                _ActDb_DESCRIPTION_SET  (1<<6)
-#define                _ActDb_ICON_SET         (1<<7)
-
-#define                _ActDb_MAP_ACTION_SET   (1<<10)
-
-#define                _ActDb_EXEC_STRING_SET  (1<<12)
-#define                _ActDb_EXEC_HOST_SET    (1<<13)
-#define                _ActDb_CWD_SET          (1<<14)
-#define                _ActDb_WINDOW_TYPE_SET  (1<<15)
-#define                _ActDb_TERM_OPTS_SET    (1<<16)
-
-#define                _ActDb_TT_CLASS_SET     (1<<18)
-#define                _ActDb_TT_SCOPE_SET     (1<<19)
-#define                _ActDb_TT_OPERATION_SET (1<<20)
-#define                _ActDb_TT_FILE_SET      (1<<21)
-#define                _ActDb_TT_ARGN_MODE_SET (1<<22)
-#define                _ActDb_TT_ARGN_VTYP_SET (1<<23)
-#define                _ActDb_TT_ARGN_RTYP_SET (1<<24)
-#define                _ActDb_TT_ARGN_VAL_SET  (1<<25)
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define                _ActDb_DT_REQ_NAME_SET  (1<<26)
-#define                _ActDb_DT_SVC_SET       (1<<27)
-
-#define                _ActDb_DT_NTFY_NAME_SET (1<<28)
-#define                _ActDb_DT_NGROUP_SET    (1<<29)
-#define                _ActDb_DT_ARGN_VAL_SET  (1<<30)
-/* no mask for ARGn strings */
-
-
-#define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET  \
-                                 | _ActDb_DT_SVC_SET )
-#define _ActDb_DT_NOTIFY_BITS  ( _ActDb_DT_NTFY_NAME_SET \
-                                 | _ActDb_DT_NGROUP_SET )
-#endif  /* _DT_ALLOW_DT_MSGS */
-#define _ActDb_TT_BITS         ( _ActDb_TT_CLASS_SET \
-                                 | _ActDb_TT_SCOPE_SET \
-                                 | _ActDb_TT_OPERATION_SET \
-                                 | _ActDb_TT_ARGN_MODE_SET \
-                                 | _ActDb_TT_ARGN_VTYP_SET \
-                                 | _ActDb_TT_ARGN_RTYP_SET \
-                                 | _ActDb_TT_ARGN_VAL_SET \
-                                 | _ActDb_TT_FILE_SET )
-#define _ActDb_CMD_BITS                ( _ActDb_EXEC_STRING_SET \
-                                 | _ActDb_CWD_SET \
-                                 | _ActDb_WINDOW_TYPE_SET \
-                                 | _ActDb_TERM_OPTS_SET )
-#define _ActDb_MAP_BITS                ( _ActDb_MAP_ACTION_SET )
-
-#define _ActDb_TT_ARGN_BITS    ( _ActDb_TT_ARGN_MODE_SET \
-                                 | _ActDb_TT_ARGN_VTYP_SET \
-                                 | _ActDb_TT_ARGN_RTYP_SET \
-                                 | _ActDb_TT_ARGN_VAL_SET )
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define _ActDb_ARGN_BITS       ( _ActDb_TT_ARGN_BITS \
-                                 | _ActDb_DT_ARGN_VAL_SET )
-#else
-#define _ActDb_ARGN_BITS       ( _ActDb_TT_ARGN_BITS )
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-
-/******************************************************************************
- *
- * Private (but external) entry points for internal use by Action Database
- * Library code only.
- *
- *****************************************************************************/
-
-#  ifdef __cplusplus
-extern "C" {
-#  endif
-
-
-extern Boolean _DtActionConverter( DtDtsDbField *fields,
-               DtDbPathId pathId,
-               char *hostPrefix,
-               Boolean rejectionStatus);
-
-
-#  ifdef __cplusplus
-}
-#  endif
-#endif /* _Dt_ActionDbP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/ActionFind.h b/cde/lib/DtSvc/DtUtil1/ActionFind.h
deleted file mode 100644 (file)
index 66edf99..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ActionFind.h /main/4 1995/10/26 14:59:41 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        ActionFind.h
- **
- **   Project:     DT
- **
- **   Description: Public include file for the ActionFind functions.
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _Dt_ActionFind_h
-#define _Dt_ActionFind_h
-
-#include <X11/Xlib.h>
-#include <X11/Xresource.h>
-
-#include <Dt/ActionP.h>
-#include <Dt/DtsDb.h>
-#include <Dt/DtsMM.h>
-
-
-#  ifdef __cplusplus
-extern "C" {
-#  endif
-
-extern void _DtSortActionDb(void);
-extern ActionPtr
-_DtActionFindDBEntry(  ActionRequest *reqp,
-                       DtShmBoson actQuark );
-
-#  ifdef __cplusplus
-}
-#  endif
-
-
-#endif /* _Dt_ActionFind_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
diff --git a/cde/lib/DtSvc/DtUtil1/ActionP.h b/cde/lib/DtSvc/DtUtil1/ActionP.h
deleted file mode 100644 (file)
index 5a5777c..0000000
+++ /dev/null
@@ -1,849 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ActionP.h /main/3 1995/10/26 14:59:56 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        ActionP.h
- **
- **   Project:     DT
- **
- **   Description: Private include file for the Action Library.
- **
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _ActionP_h
-#define _ActionP_h
-
-#include <Dt/DtP.h>
-#include <Dt/DbReader.h>
-#include <Dt/ActionDb.h>
-#include <Dt/Action.h>
-#include <Tt/tttk.h>
-#include <Dt/DtShmDb.h>
-/*
- * Environment Variable Names
- */
-#define ENV_SESSION_SVR                "SESSION_SVR"
-/*
- * Define maximum static buffer size for action code.
- */
-#define        _DtAct_MAX_BUF_SIZE     1024
-
-/*
- * Data-type field which contains the template for producing filenames
- * of a given type.
- */
-#define  _DtActNAME_TEMPLATE   "NAME_TEMPLATE"
-#define  _DtActIS_EXECUTABLE   "IS_EXECUTABLE"
-
-/******************************************************************************
- *
- * MASK LAYOUT:
- *
- * The same layout is used for all the masks (defined herein);, independent of
- * the data structure in which they are defined.  That is, all bit fields for
- * all masks are non-overlapping.  In general, the mask in any given structure
- * should ONLY contain information in the field appropriate for that structure. 
- *
- * The action bit mask is broken into the following fields
- *
- *   --------------------------------------------------------------------------
- *   |act'n |arg  |arg  |arg | win   |args|  request   | object   |treat| not |
- *   |type  |class|count|typ | type  |    |  status    | status   | as  |     |
- *   |bits  |bits |bits |bit | bits  |used|   bits     | bits     |file |used |
- *   --------------------------------------------------------------------------
- *   0 - 4,5 - 8,9 - 12, 13 ,14 - 17,18-19,20 ------- 22,23 ---- 28, 29 ,30-31
- *   |                               |    |            |          |     |
- *   |<--       action mask       -->|    |<- request->|<- obj. ->|< - >|
- *                                            mask         data     |
- *                                                          mask    msgCcomp.
- *                                                                   mask      
- ******************************************************************************/
-
-/*
- * generic bit manipulation macros
- */
-#define SET_ANY_BITS(mask,bits)                ( mask |= (bits) )
-#define RESET_ANY_BITS(mask,bits)      ( mask &= ~(bits) )
-#define TST_ANY_BITS(mask,bits)                ( mask & (bits) )
-
-/*
- * Action type bits
- */
-#define        _DtAct_CMD_BIT                          (1<<0)
-#define        _DtAct_MAP_BIT                          (1<<1)
-#define _DtAct_TT_MSG_BIT                      (1<<2)
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define _DtAct_DT_REQ_MSG_BIT                  (1<<3)
-#define _DtAct_DT_NTFY_MSG_BIT                 (1<<4)
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-/*
- * Action structure mask bits
- */
-#define _DtAct_ARG_CLASS_FILE_BIT              (1<<5)
-#define _DtAct_ARG_CLASS_STRING_BIT            (1<<6)
-#define _DtAct_ARG_CLASS_BUFFER_BIT            (1<<7)
-#define _DtAct_ARG_CLASS_WILD_BIT              (1<<8)
-
-#define _DtAct_ARG_COUNT_LT_BIT                        (1<<9)
-#define _DtAct_ARG_COUNT_GT_BIT                        (1<<10)
-#define _DtAct_ARG_COUNT_EQ_BIT                        (1<<11)
-#define _DtAct_ARG_COUNT_WILD_BIT              (1<<12)
-
-#define        _DtAct_ARG_TYPE_WILD_BIT                (1<<13)
-
-#define _DtAct_NO_STDIO_BIT                    (1<<14)
-#define _DtAct_TERMINAL_BIT                    (1<<15)
-#define _DtAct_PERM_TERM_BIT                   (1<<16)
-
-/*
- * Defines which reflect the actual number
- * of %ARGn% instances found in the action definition
- * NOTE: Is this JUST in the EXEC_STRING? or the total number of %ARGn%'s
- * referenced in all parssed definitions?
- *
- */
-#define _DtAct_SINGLE_ARG_BIT                  (1<<18)
-#define _DtAct_MULTI_ARG_BIT                   (1<<19)
-
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define _DtAct_ACTION_TYPE_BITS        (  _DtAct_CMD_BIT \
-                                | _DtAct_MAP_BIT \
-                                | _DtAct_DT_NTFY_MSG_BIT \
-                                | _DtAct_DT_REQ_MSG_BIT \
-                                | _DtAct_TT_MSG_BIT )
-#else
-#define _DtAct_ACTION_TYPE_BITS        (  _DtAct_CMD_BIT \
-                                | _DtAct_MAP_BIT \
-                                | _DtAct_TT_MSG_BIT )
-#endif  /* _DT_ALLOW_DT_MSGS */
-#define        _DtAct_ARG_CLASS_BITS   (   _DtAct_ARG_CLASS_FILE_BIT \
-                                | _DtAct_ARG_CLASS_STRING_BIT\
-                                | _DtAct_ARG_CLASS_BUFFER_BIT \
-                                | _DtAct_ARG_CLASS_WILD_BIT  )
-#define _DtAct_ARG_TYPE_BITS   (   _DtAct_ARG_TYPE_WILD_BIT  )
-#define _DtAct_ARG_COUNT_BITS  (  _DtAct_ARG_COUNT_LT_BIT \
-                                | _DtAct_ARG_COUNT_GT_BIT \
-                                | _DtAct_ARG_COUNT_EQ_BIT \
-                                | _DtAct_ARG_COUNT_WILD_BIT )
-#define _DtAct_WINTYPE_BITS    (  _DtAct_NO_STDIO_BIT \
-                                | _DtAct_TERMINAL_BIT \
-                                | _DtAct_PERM_TERM_BIT )
-#define _DtAct_ARGS_USED_BITS  (  _DtAct_SINGLE_ARG \
-                                | _DtAct_MULTI_ARG  )
-
-#define _DtAct_ACTION_BITS     (  _DtAct_ACTION_TYPE_BITS \
-                                | _DtAct_ARG_CLASS_BITS \
-                                | _DtAct_ARG_TYPE_BITS  \
-                                | _DtAct_ARG_COUNT_BITS \
-                                | _DtAct_WINTYPE_BITS \
-                                | _DtAct_ARGS_USED_BITS  )
-
-#define IS_CMD(mask)                   ( mask & _DtAct_CMD_BIT )
-#define IS_MAP(mask)                   ( mask & _DtAct_MAP_BIT )
-#define IS_TT_MSG(mask)                        ( mask & _DtAct_TT_MSG_BIT )
-
-#ifdef _DT_ALLOW_DT_MSGS
-#define IS_DT_REQ_MSG(mask)            ( mask & _DtAct_DT_REQ_MSG_BIT )
-#define IS_DT_NOTIFY_MSG(mask)         ( mask & _DtAct_DT_NTFY_MSG_BIT )
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-#define SET_CMD_ACTION(mask)           ( mask |= _DtAct_CMD_BIT )
-#define SET_MAP_ACTION(mask)           ( mask |= _DtAct_MAP_BIT )
-#define SET_TT_MSG(mask)               ( mask |= _DtAct_TT_MSG_BIT )
-#ifdef _DT_ALLOW_DT_MSGS
-#define SET_DT_REQUEST_MSG(mask)       ( mask |= _DtAct_DT_REQ_MSG_BIT)
-#define SET_DT_NOTIFY_MSG(mask)                ( mask |= _DtAct_DT_NTFY_MSG_BIT)
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-#define RESET_CMD_ACTION(mask)         ( mask &= ~(_DtAct_CMD_BIT))
-#define RESET_MAP_ACTION(mask)         ( mask &= ~(_DtAct_MAP_BIT))
-#define RESET_TT_MSG(mask)             ( mask &= ~(_DtAct_TT_MSG_BIT))
-#ifdef _DT_ALLOW_DT_MSGS
-#define RESET_DT_REQ_MSG(mask)         ( mask &= ~(_DtAct_DT_REQ_MSG_BIT))
-#define RESET_DT_NOTIFY_MSG(mask)      ( mask &= ~(_DtAct_DT_NTFY_MSG_BIT))
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-#define IS_NO_STDIO(mask)              ( mask & _DtAct_NO_STDIO_BIT )
-#define IS_TERMINAL(mask)              ( mask & _DtAct_TERMINAL_BIT )
-#define IS_PERM_TERM(mask)             ( mask & _DtAct_PERM_TERM_BIT)
-
-#define SET_NO_STDIO(mask)             ( mask |= _DtAct_NO_STDIO_BIT )
-#define SET_TERMINAL(mask)             ( mask |= _DtAct_TERMINAL_BIT )
-#define SET_PERM_TERM(mask)            ( mask |= _DtAct_PERM_TERM_BIT )
-
-#define RESET_NO_STDIO(mask)           ( mask &= ~(_DtAct_NO_STDIO_BIT ))
-#define RESET_TERMINAL(mask)           ( mask &= ~(_DtAct_TERMINAL_BIT ))
-#define RESET_PERM_TERM(mask)          ( mask &= ~(_DtAct_PERM_TERM_BIT ))
-
-#define        IS_ARG_CLASS_FILE(mask)         ( mask & _DtAct_ARG_CLASS_FILE_BIT )
-#define IS_ARG_CLASS_STRING(mask)      ( mask & _DtAct_ARG_CLASS_STRING_BIT )
-#define IS_ARG_CLASS_BUFFER(mask)      ( mask & _DtAct_ARG_CLASS_BUFFER_BIT )
-#define IS_ARG_CLASS_WILD(mask)                ( mask & _DtAct_ARG_CLASS_WILD_BIT )
-
-#define        SET_ARG_CLASS_FILE(mask)        ( mask |= _DtAct_ARG_CLASS_FILE_BIT )
-#define SET_ARG_CLASS_STRING(mask)     ( mask |= _DtAct_ARG_CLASS_STRING_BIT)
-#define SET_ARG_CLASS_BUFFER(mask)     ( mask |= _DtAct_ARG_CLASS_BUFFER_BIT)
-#define SET_ARG_CLASS_WILD(mask)       ( mask |= _DtAct_ARG_CLASS_WILD_BIT )
-
-#define RESET_ARG_CLASS_FILE(mask)     (mask &= ~(_DtAct_ARG_CLASS_FILE_BIT))
-#define RESET_ARG_CLASS_STRING(mask)   (mask &= ~(_DtAct_ARG_CLASS_STRING_BIT))
-#define RESET_ARG_CLASS_BUFFER(mask)   (mask &= ~(_DtAct_ARG_CLASS_BUFFER_BIT))
-#define RESET_ARG_CLASS_WILD(mask)     (mask &= ~(_DtAct_ARG_CLASS_WILD_BIT))
-
-
-#define IS_ARG_TYPE_WILD(mask)         ( mask & _DtAct_ARG_TYPE_WILD_BIT )
-
-#define SET_ARG_TYPE_WILD(mask)                ( mask |= _DtAct_ARG_TYPE_WILD_BIT )
-
-#define RESET_ARG_TYPE_WILD(mask)      ( mask &= ~(_DtAct_ARG_TYPE_WILD_BIT))
-
-#define IS_ARG_COUNT_GT(mask)          ( mask & _DtAct_ARG_COUNT_GT_BIT )
-#define IS_ARG_COUNT_LT(mask)          ( mask & _DtAct_ARG_COUNT_LT_BIT )
-#define IS_ARG_COUNT_EQ(mask)          ( mask & _DtAct_ARG_COUNT_EQ_BIT )
-#define IS_ARG_COUNT_WILD(mask)        ( mask & _DtAct_ARG_COUNT_WILD_BIT )
-
-#define SET_ARG_COUNT_GT(mask)         ( mask |= _DtAct_ARG_COUNT_GT_BIT )
-#define SET_ARG_COUNT_LT(mask)         ( mask |= _DtAct_ARG_COUNT_LT_BIT )
-#define SET_ARG_COUNT_EQ(mask)         ( mask |= _DtAct_ARG_COUNT_EQ_BIT )
-#define SET_ARG_COUNT_WILD(mask)       ( mask |= _DtAct_ARG_COUNT_WILD_BIT )
-
-#define RESET_ARG_COUNT_GT(mask)       ( mask &= ~(_DtAct_ARG_COUNT_GT_BIT ))
-#define RESET_ARG_COUNT_LT(mask)       ( mask &= ~(_DtAct_ARG_COUNT_LT_BIT ))
-#define RESET_ARG_COUNT_EQ(mask)       ( mask &= ~(_DtAct_ARG_COUNT_EQ_BIT ))
-#define RESET_ARG_COUNT_WILD(mask)     ( mask &= ~(_DtAct_ARG_COUNT_WILD_BIT ))
-
-/*
- * Use of the logical "NOT" operator(!) instead of the bitwise negation
- * operator(~) is intentional in IS_ARG_NONE_FOUND.
- */
-#define IS_ARG_NONE_FOUND(mask)                !( mask & ( _DtAct_SINGLE_ARG_BIT \
-                                                 | _DtAct_MULTI_ARG_BIT ))
-#define IS_ARG_SINGLE_ARG(mask)                ( mask &  _DtAct_SINGLE_ARG_BIT )
-#define IS_ARG_MULTI_ARG(mask)         ( mask &  _DtAct_MULTI_ARG_BIT )
-
-#define SET_ARG_NONE_FOUND(mask)       ( mask &= ~( _DtAct_SINGLE_ARG_BIT \
-                                                   | _DtAct_MULTI_ARG_BIT ))
-#define SET_ARG_SINGLE_ARG(mask)       ((mask |= _DtAct_SINGLE_ARG_BIT), \
-                                       ( mask &= ~(_DtAct_MULTI_ARG_BIT)))
-#define SET_ARG_MULTI_ARG(mask)                ((mask |= _DtAct_MULTI_ARG_BIT), \
-                                       ( mask &= ~(_DtAct_SINGLE_ARG_BIT)))
-
-#define RESET_ARG_SINGLE_ARG(mask)     ( mask &= ~(_DtAct_SINGLE_ARG_BIT))
-#define RESET_ARG_MULTI_ARG(mask)      ( mask &= ~(_DtAct_MULTI_ARG_BIT))
-
-/*
- * ActionRequest structure mask bits
- */
-
-#define        _DtAct_REPROCESSING_BIT                 (1<<20)
-#define _DtAct_TOO_MANY_MAPS_BIT               (1<<21)
-#define _DtAct_CLONED_REQUEST_BIT              (1<<22)
-
-#define _DtAct_ACTION_REQUEST_BITS     (   _DtAct_REPROCESSING_BIT \
-                                         | _DtAct_TOO_MANY_MAPS_BIT \
-                                         | _DtAct_CLONED_REQUEST_BIT )
-
-#define IS_REPROCESSING(mask)          ( mask & _DtAct_REPROCESSING_BIT )
-#define IS_TOO_MANY_MAPS(mask)         ( mask & _DtAct_TOO_MANY_MAPS_BIT )
-#define IS_CLONED_REQUEST(mask)                ( mask & _DtAct_CLONED_REQUEST_BIT )
-
-#define SET_REPROCESSING(mask)         ( mask |= _DtAct_REPROCESSING_BIT )
-#define SET_TOO_MANY_MAPS(mask)                ( mask |= _DtAct_TOO_MANY_MAPS_BIT )
-#define SET_CLONED_REQUEST(mask)       ( mask |= _DtAct_CLONED_REQUEST_BIT )
-
-#define RESET_REPROCESSING(mask)       ( mask &= ~(_DtAct_REPROCESSING_BIT))
-#define RESET_TOO_MANY_MAPS(mask)      ( mask &= ~(_DtAct_TOO_MANY_MAPS_BIT))
-#define RESET_CLONED_REQUEST(mask)     ( mask &= ~(_DtAct_CLONED_REQUEST_BIT))
-
-
-/*
- * ObjectData structure mask bits
- *
- */
-
-#define _DtAct_WRITE_OBJ_BIT           (1<<23)
-#define _DtAct_FILE_OBJ_BIT            (1<<24)
-#define _DtAct_BUFFER_OBJ_BIT          (1<<25)
-#define _DtAct_STRING_OBJ_BIT          (1<<26)
-#define _DtAct_DIR_OBJ_BIT             (1<<27)
-#define _DtAct_UNKNOWN_IF_DIR_BIT      (1<<28)
-
-#define _DtAct_OBJ_DATA_BITS           (  _DtAct_WRITE_OBJ_BIT \
-                                        | _DtAct_FILE_OBJ_BIT \
-                                        | _DtAct_DIR_OBJ_BIT  \
-                                        | _DtAct_BUFFER_OBJ_BIT \
-                                        | _DtAct_STRING_OBJ_BIT \
-                                        | _DtAct_UNKNOWN_IF_DIR_BIT )
-
-#define        IS_WRITE_OBJ(mask)              ( mask & _DtAct_WRITE_OBJ_BIT )
-#define        IS_FILE_OBJ(mask)               ( mask & _DtAct_FILE_OBJ_BIT )
-#define IS_BUFFER_OBJ(mask)            ( mask & _DtAct_BUFFER_OBJ_BIT )
-#define IS_STRING_OBJ(mask)            ( mask & _DtAct_STRING_OBJ_BIT )
-#define IS_UNKNOWN_IF_DIR(mask)                ( mask & _DtAct_UNKNOWN_IF_DIR_BIT )
-#define        IS_DIR_OBJ(mask)                ( mask & \
-                                         ( _DtAct_UNKNOWN_IF_DIR_BIT \
-                                         | _DtAct_DIR_OBJ_BIT ) \
-                                          == _DtAct_DIR_OBJ_BIT)
-
-#define SET_WRITE_OBJ(mask)            ( mask |= _DtAct_WRITE_OBJ_BIT )
-#define SET_FILE_OBJ(mask)             ( mask |= _DtAct_FILE_OBJ_BIT )
-#define SET_BUFFER_OBJ(mask)           ( mask |= _DtAct_BUFFER_OBJ_BIT )
-#define SET_STRING_OBJ(mask)           ( mask |= _DtAct_STRING_OBJ_BIT )
-#define SET_DIR_OBJ(mask)              ( mask |= _DtAct_DIR_OBJ_BIT )
-#define SET_UNKNOWN_IF_DIR(mask)       ( mask |= _DtAct_UNKNOWN_IF_DIR_BIT)
-
-#define RESET_WRITE_OBJ(mask)          ( mask &= ~(_DtAct_WRITE_OBJ_BIT))
-#define RESET_FILE_OBJ(mask)           ( mask &= ~(_DtAct_FILE_OBJ_BIT))
-#define RESET_BUFFER_OBJ(mask)         ( mask &= ~(_DtAct_BUFFER_OBJ_BIT))
-#define RESET_STRING_OBJ(mask)         ( mask &= ~(_DtAct_STRING_OBJ_BIT))
-#define RESET_DIR_OBJ(mask)            ( mask &= ~(_DtAct_DIR_OBJ_BIT))
-#define RESET_UNKNOWN_IF_DIR(mask)     ( mask &= ~(_DtAct_UNKNOWN_IF_DIR_BIT))
-
-
-/*
- * MsgComponent structure mask bits (shared with Object Data?)
- */
-
-#define        _DtAct_TREAT_AS_FILE_BIT        (1<<29)
-
-#define _DtAct_MSG_COMP_BITS           ( _DtAct_TREAT_AS_FILE_BIT )
-
-#define IS_TREAT_AS_FILE(mask)         ( mask &  _DtAct_TREAT_AS_FILE_BIT )
-#define SET_TREAT_AS_FILE(mask)                ( mask |= _DtAct_TREAT_AS_FILE_BIT)
-#define RESET_TREAT_AS_FILE(mask)      ( mask &= ~(_DtAct_TREAT_AS_FILE_BIT))
-
-
-/* Keyword defines */
-
-#define NO_KEYWORD   -1
-#define LOCAL_HOST    0
-#define DATA_HOST     1
-#define DATABASE_HOST 2
-#define ARG           3
-#define DISPLAY_HOST  4
-#define LABEL        5
-#define SESSION_HOST  6
-
-/* Special argNum values */
-
-#define NO_ARG   -1
-#define ALL_ARGS  0
-
-/*
- * ToolTalk base representation type ( tt_argn_rep_type ) values
- */
-#define DtACT_TT_REP_UNDEFINED 0
-#define DtACT_TT_REP_INT       1
-#define DtACT_TT_REP_BUFFER    2
-#define DtACT_TT_REP_STRING    3
-
-/*
- * Resource name and class for the EXEC-HOST resource.
- */
-#define DtEXEC_HOSTS_NAME              "executionHosts"
-#define DtEXEC_HOSTS_CLASS             "ExecutionHosts"
-#define DtEXEC_HOSTS_DEFAULT           _DtACT_EXEC_HOST_DFLT
-
-/* Flags to force special processing of filenames */
-#define _DTAct_TT_VTYPE  1 << 0
-#define _DTAct_TT_ARG    1 << 1
-
-/* Structure used to hold the components of a message */
-
-typedef struct {
-   char                *precedingText;
-   char                *prompt;
-   int         keyword;
-   int         argNum;
-   unsigned long mask; /* replaces isFile, isBuffer, isString  boolean */
-} MsgComponent;
-
-
-typedef struct {
-   MsgComponent *parsedMessage;
-   int          numMsgParts;
-   char                *compiledMessage;
-   int         msgLen;
-} parsedMsg;
-
-/******************************************************************************
- *
- * Structs used during the invocation of an action.   Once DtActionInvoke()
- * exits, these structs are generally freed.
- *
- *****************************************************************************/
-typedef struct {
-    /*int      winMask;    ---> moved into the action mask*/
-    parsedMsg          execString;
-    parsedMsg          termOpts;
-    char               *contextDir;
-    char               *contextHost;
-    parsedMsg          execHosts;
-    char               **execHostArray;        
-    int                        execHostCount;
-} cmdAttr;
-
-typedef struct {
-    DtShmBoson map_action; 
-} mapAttr;
-
-typedef struct {
-    int        tt_class;
-    int                tt_scope;
-    parsedMsg  tt_op;
-    parsedMsg  tt_file;        /* must be a single file name */
-    int                *tt_argn_mode;
-    int                mode_count;
-    parsedMsg  *tt_argn_vtype; 
-    int                vtype_count;
-    parsedMsg  *tt_argn_value;
-    int                value_count;
-    int                *tt_argn_rep_type;      /* INT, STRING, BUFFER or UNDEFINED */
-    int                rep_type_count;
-} tt_msgAttr;
-
-#ifdef _DT_ALLOW_DT_MSGS
-typedef struct {
-    parsedMsg  service;        /* ICCCM service name */
-    parsedMsg  request;        /* request name string */
-    parsedMsg  *argn_value;
-    int                value_count;
-
-} dt_reqAttr;
-
-typedef struct {
-    parsedMsg  ngroup; /* ICCCM notification group */
-    parsedMsg  notify; /* notification to be sent */
-    parsedMsg  *argn_value;
-    int                value_count;
-} dt_notifyAttr;
-#endif  /* _DT_ALLOW_DT_MSGS */
-
-
-typedef struct {
-    DtShmBoson action;         /* Might just use a char * here? */
-    DtDbPathId file_name_id;   /* id of file wherein the action is defined */
-    char       *label;         /* localizable action label string */
-    char       *description;
-    DtShmBoson *arg_types;
-    int                type_count;
-    int                arg_count;      /* Number of arguments accepted by the action */
-    unsigned long mask;                /* action mask -- class/type/arg info */
-    union {                    /* attributes for the different action kinds */
-       cmdAttr         cmd;
-       mapAttr         map;
-       tt_msgAttr      tt_msg;
-#ifdef _DT_ALLOW_DT_MSGS
-       dt_reqAttr      dt_req;
-       dt_notifyAttr   dt_notify;
-#endif  /* _DT_ALLOW_DT_MSGS */
-    } u;
-} Action, *ActionPtr;          /* new action structure and pointer */
-
-
-/* Structure used to hold each of the object components */
-
-typedef struct {
-   char * origFilename;
-   char * baseFilename;
-   char * origHostname;
-   int    hostIndex;
-   int    dirIndex;
-   void * bp;          /* pointer to original buffer -- tmp files only */
-   int    sizebp;      /* size of original buf -- for tmp files only */
-} fileAttr;
-   
-typedef struct {
-   char * string;
-} stringAttr;
-  
-typedef struct {
-   int size;
-   void *bp;
-} bufferAttr;
-   
-   
-typedef struct {
-   DtShmBoson type;
-   unsigned long mask;
-   union {
-      fileAttr   file;
-      stringAttr string;
-      bufferAttr buffer;
-   } u;
-} ObjectData;
-
-
-/* 
- * Structure attached to the button callbacks in the
- * dialog used to collect missing parameters.
- *
- */
-
-typedef struct {
-   char        *actionName;
-   int         objOffset;
-   int         objsUsed;
-   int          numObjects;
-   ObjectData   *objects;
-   int          numPromptInputs;
-   char        **promptInputs;
-   int          numHostNames;
-   char                **hostNames;
-   int          numDirNames;
-   char        **dirNames;
-   char                *termOpts;
-   char                *cwdHost;
-   char                *cwdDir;
-   ActionPtr    clonedAction;
-   unsigned long mask;
-   char                *badHostList;
-   char                *currentHost;
-   int          hostIndex;
-   char                *execHost;
-   DtActionInvocationID                invocId;
-   unsigned long               childId;
-} ActionRequest;
-
-/******************************************************************************
- *
- * Structs used to maintain information on invoked actions until they
- * exit.   A few select elements of the ActionRequest and Action structs
- * will be copied into these strcuts.
- *
- *****************************************************************************/
-
-/******************************************************************************
- ******************************************************************************
- **
- ** Major data-structure diagram for the DtAction invocation layer:
- **
- **    _DtActInvRec    <===  _DtActInvRecArray[ actInvRecArraySize ]
- ** ------------------
- ** |    info per    |
- ** | DtActionInvoke |
- ** |----------------|
- ** |  numChildren   |
- ** |----------------|
- ** |  childRecs[]   | ===>   _DtActChildRec
- ** ------------------      ------------------
- **                         |    info per    |
- **                         | child  request |
- **                         |----------------|
- **                         |    *request    | ===>   ActionRequest
- **                         ------------------      ------------------
- **                                                 | info on users  |
- **                                                 | action request |
- **                                                 |----------------|
- **                               Action       <=== | *clonedAction  |
- **                         ------------------      ------------------
- **                         |info on matching|
- **                         | actionDB entry |
- **                         |----------------|
- **                         | cmd/map/tt/dt  |
- **                         | attributes of  |
- **                         | resulting msg  |
- **                         ------------------
- **
- ** "ActionRequest" and "Action" were present in VUE 3.0, and have a
- ** scratch-pad like function within DtActionInvoke() to get actions
- ** started.  They are not good long-term retainers of information.
- ** Action and ActionRequest are in fact freed when DtActionInvoke()
- ** exits.
- **
- ** "_DtActInvRec" and "_DtActChildRec" have been introduced to retain
- ** information for the entire life of the actions.   Some of the
- ** information from ActionRequest and Action will be copied (mirrored)
- ** up to these structures.
- **
- ******************************************************************************
- *****************************************************************************/
-
-/******************************************************************************
- *
- *      Child Status Macro Definitions -- These values are used in
- *      the status word of the _DtActChildRec child record.
- *
- *   ****** IMPORTANT NOTE *** IMPORTANT NOTE *** IMPORTANT NOTE ******
- *
- *      The _DtActCHILD_ macros are also used in cde1/dtexec/Main.c
- *      in the _DtActDtexecDone(Request) message, so in effect they
- *      are also protocol constants that should *never* be changed.
- *      If changed, libDtSvc and dtexec may mis-communicate status.
- *
- *****************************************************************************/
-
-#define _DtActCHILD_UNKNOWN            (1<<0)  /* 1 - child status unknown */
-#define _DtActCHILD_PENDING_START      (1<<1)  /* 2 - child start pending */
-#define _DtActCHILD_ALIVE_UNKNOWN      (1<<2)  /* 4 - child alive but unknown*/
-#define _DtActCHILD_ALIVE              (1<<3)  /* 8 - child alive and well */
-#define _DtActCHILD_DONE               (1<<4)  /* 16 - child done */
-#define _DtActCHILD_FAILED             (1<<5)  /* 32 - child failed */
-#define _DtActCHILD_CANCELED           (1<<6)  /* 64 - child canceled */
-
-#define _DtActCHILD_DONE_BITS          ( (_DtActCHILD_DONE) | \
-                                         (_DtActCHILD_FAILED) | \
-                                         (_DtActCHILD_CANCELED) )
-
-/*** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE *** IMPORTANT NOTE ABOVE ***/
-
-
-#define ARE_CHILDREN_DONE(mask)                ( (mask) & _DtActCHILD_DONE_BITS )
-
-#define IS_CHILD_UNKNOWN(mask)         ( (mask) == _DtActCHILD_UNKNOWN )
-#define IS_CHILD_PENDING_START(mask)   ( (mask) & _DtActCHILD_PENDING_START )
-#define IS_CHILD_DONE(mask)            ( (mask) & _DtActCHILD_DONE)
-#define IS_CHILD_FAILED(mask)          ( (mask) & _DtActCHILD_FAILED)
-#define IS_CHILD_CANCELED(mask)                ( (mask) & _DtActCHILD_CANCELED)
-#define IS_CHILD_ALIVE(mask)           ( (mask) & _DtActCHILD_ALIVE)
-#define IS_CHILD_ALIVE_UNKOWN(mask)    ( (mask) & _DtActCHILD_ALIVE_UNKNOWN)
-
-
-/******************************************************************************
- *
- * Information per child of DtActionInvoke()
- *
- *****************************************************************************/
-
-/*
- * Structure useed to map returnable arguments to the child argument list.
- */
-
-typedef struct {
-       int argN;       /* Nth returned value (0 based for tooltalk) */
-        int argIdx;    /* Nth child argument */
-} _DtActArgMap;
-
-typedef struct {
-       unsigned long   childId;        /* serial # with DtActInvId */
-       unsigned long   childState;     /* child state */
-
-       /*
-        * Information cloned from "ActionRequest *req"
-        */
-       int             numObjects;     /* number of child args */
-        _DtActArgMap   *argMap;        /* map of returnable args to chd args */
-
-       /*
-        * Information cloned from "ActionPtr clonedAction"
-        */
-       unsigned long   mask;           /* action type - IS_xxx() */
-
-       /* a list of tmp file names  5/11/94  --tomg */
-
-       union {
-           struct { /* COMMAND elements */
-               char            *TTProcId;      /* TT procID handle to child */
-               Tt_message      reqMessage;     /* Initiator TT Request */
-               Tt_pattern      magic_cookie;   /* dtexec to libDtSvc cookie */
-           } cmd;
-           struct { /* TT_MSG elements */
-               char            *TTProcId;      /* TT procID handle to child */
-               Tt_message      reqMessage;     /* Initiator TT Request */
-               int             isTtMedia;      /* handled by ttmedia_load ? */
-               Tttk_op         TtMediaOp;      /* if ttmedia_load, the op */
-               Tt_pattern      *subConPats;    /* for subcontract_manage */
-           } tt;
-       } u;
-
-} _DtActChildRecT;
-
-
-/******************************************************************************
- *
- *     Invocation Status Macro Definitions -- These values are used in
- *     the state word of the _DtActInvRec invocation record.
- *
- *****************************************************************************/
-
-#define _DtActINV_UNKNOWN      0               /* unknown invocation status */
-#define _DtActINV_ERROR                (1<<0)          /* invocation error detected */
-#define _DtActINV_CANCEL       (1<<1)          /* trying to cancel invocation*/
-#define        _DtActINV_PENDING       (1<<2)          /* invocation pending */
-#define _DtActINV_WORKING      (1<<3)          /* invocation in process */
-#define _DtActINV_DONE         (1<<4)          /* invocation step done */
-#define _DtActINV_COMPLETE     (1<<5)          /* invocation steps all done */
-#define _DtActINV_CB_CALLED    (1<<6)          /* invocation callback called */
-#define _DtActINV_ID_RETURNED  (1<<7)          /* invocation id has returned */
-#define _DtActINV_CMD_QUEUED   (1<<8)          /* command has been queued */
-#define _DtActINV_INDICATOR_ON (1<<9)          /* busy indicator active bit */
-
-#define SET_INV_UNKNOWN(mask)          (mask = 0)
-
-#define SET_INV_ERROR(mask)            (mask |= _DtActINV_ERROR) 
-#define SET_INV_CANCEL(mask)           (mask |= _DtActINV_CANCEL)
-#define SET_INV_PENDING(mask)          (mask |= _DtActINV_PENDING) 
-#define SET_INV_WORKING(mask)          (mask |= _DtActINV_WORKING)
-#define SET_INV_DONE(mask)             (mask |= _DtActINV_DONE)
-#define SET_INV_COMPLETE(mask)         (mask |= _DtActINV_COMPLETE)
-#define SET_INV_CB_CALLED(mask)                (mask |= _DtActINV_CB_CALLED)
-#define SET_INV_ID_RETURNED(mask)      (mask |= _DtActINV_ID_RETURNED)
-#define SET_INV_CMD_QUEUED(mask)       (mask |= _DtActINV_CMD_QUEUED)
-#define SET_INV_INDICATOR_ON(mask)     (mask |= _DtActINV_INDICATOR_ON)
-
-#define RESET_INV_ERROR(mask)          (mask &= ~(_DtActINV_ERROR))
-#define RESET_INV_CANCEL(mask)         (mask &= ~(_DtActINV_CANCEL))
-#define RESET_INV_PENDING(mask)                (mask &= ~(_DtActINV_PENDING))
-#define RESET_INV_WORKING(mask)                (mask &= ~(_DtActINV_WORKING))
-#define RESET_INV_COMPLETE(mask)       (mask &= ~(_DtActINV_COMPLETE))
-#define RESET_INV_DONE(mask)           (mask &= ~(_DtActINV_DONE))
-#define RESET_INV_CB_CALLED(mask)      (mask &= ~(_DtActINV_CB_CALLED))
-#define RESET_INV_ID_RETURNED(mask)    (mask &= ~(_DtActINV_ID_RETURNED))
-#define RESET_INV_CMD_QUEUED(mask)     (mask &= ~(_DtActINV_CMD_QUEUED))
-#define RESET_INV_INDICATOR_ON(mask)   (mask &= ~(_DtActINV_INDICATOR_ON))
-
-#define IS_INV_FINISHED(mask)  ( !((mask) & _DtActINV_CMD_QUEUED)  \
-                                  && ((mask) & (_DtActINV_COMPLETE \
-                                      | _DtActINV_CANCEL)) )
-#define IS_INV_UNKNOWN(mask)    ( (mask) == _DtActINV_UNKNOWN )
-
-#define IS_INV_ERROR(mask)             ((mask) & _DtActINV_ERROR )
-#define IS_INV_CANCEL(mask)            ((mask) & _DtActINV_CANCEL )
-#define IS_INV_PENDING(mask)           ((mask) & _DtActINV_PENDING )
-#define IS_INV_WORKING(mask)           ((mask) & _DtActINV_WORKING )
-#define IS_INV_DONE(mask)              ((mask) & _DtActINV_DONE )
-#define IS_INV_COMPLETE(mask)          ((mask) & _DtActINV_COMPLETE )
-#define IS_INV_CB_CALLED(mask)         ((mask) & _DtActINV_CB_CALLED )
-#define IS_INV_ID_RETURNED(mask)       ((mask) & _DtActINV_ID_RETURNED )
-#define IS_INV_CMD_QUEUED(mask)                ((mask) & _DtActINV_CMD_QUEUED )
-#define IS_INV_INDICATOR_ON(mask)      ((mask) & _DtActINV_INDICATOR_ON )
-
-#define CALL_INV_CB(mask)      ((IS_INV_FINISHED(mask)) && \
-                                        (IS_INV_ID_RETURNED(mask)) && \
-                                        !(IS_INV_CB_CALLED(mask)))
-
-/******************************************************************************
- *
- * Information per DtActionInvoke()
- *
- * Note: For TT_MSG(NOTICE)'s during CDE 1.0, this struct will disappear
- *       immediately after the NOTICEs are sent.
- *
- *****************************************************************************/
-
-
-typedef struct {
-       unsigned long mask;     /* encodes object class and writable flag */
-        int size;              /* original size (buffers only) */
-        char *type;            /* original type (buffers only) */
-        char *name;            /* encodes (tmp) file name associated with the
-                                   object (if any) */
-} _DtActArgInfo;
-
-typedef struct {
-       DtActionStatus  userStatus;
-       DtActionArg     *newArgp;
-       int             newArgc;
-} _DtActUpdateCache;
-
-typedef struct _DtActInvRec {
-       unsigned long           state;          /* invocation state */
-       DtActionInvocationID    id;             /* identifying invocation ID */
-       Widget                  w;              /* users widget id */
-       DtActionCallbackProc    cb;             /* users callback */
-       XtPointer               client_data;    /* users client data for cb */
-       _DtActArgInfo           *info;          /* template w/ .argClass info */
-       int                     ac;             /* original # of  arguments */
-       int                     numChildren;    /* number of childRec's. */
-       _DtActChildRecT         **childRec;     /* array of child Rec's */
-       int                     cachedUploadCnt;/* cached callback updates */
-       _DtActUpdateCache       *cachedUploads; /* data for */
-} _DtActInvRecT;
-
-
-/******************************************************************************
- *
- * Structs for dialogs/prompts
- *
- *****************************************************************************/
-
-/* Structure used to hold a prompt string destined for a dialog */
-
-typedef struct {
-   int    argIndex;
-   char *prompt;
-} PromptEntry;
-
-
-/* Structure used to contain prompt dialog information */
-
-typedef struct {
-   int    argIndex;
-   Widget promptWidget;
-} DialogPromptEntry;
-
-typedef struct {
-   ActionRequest     * request;
-   Widget              topLevel;
-   Widget              associatedWidget;
-   int                 numPrompts;
-   DialogPromptEntry * prompts;
-} PromptDialog;
-
-
-/* Structure used to contain abort/continue dialog information */
-
-typedef struct {
-   ActionRequest     * request;
-   Widget              topLevel;
-   Widget              associatedWidget;
-   int                 numPrompts;
-   PromptEntry       * prompts;
-} ContinueDialog;
-
-
-/* Structure passed to request passed/failed callbacks */
-
-typedef struct {
-   Widget              associatedWidget;
-   char                *actionLabel;
-   int                 offset;
-   ActionPtr           actionPtr;              /* Ptr to the action that 
-                                                  was invoked. */
-   ActionRequest       *requestPtr;
-   DtActionInvocationID        actInvId;               /* A standard invocation id */
-   unsigned long       childId;                /* An id to further identify
-                                                  children of actInvId */
-} CallbackData;
-
-/******************************************************************************
- *
- * Private External Function Declarations -- not for public consumption
- *
- ******************************************************************************/
-
-extern void _DtFreeActionStruct( ActionPtr action) ;
-
-#endif /* _ActionP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/ActionUtilP.h b/cde/lib/DtSvc/DtUtil1/ActionUtilP.h
deleted file mode 100644 (file)
index 742e39b..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ActionUtilP.h /main/3 1995/10/26 15:01:19 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        ActionUtilP.h
- **
- **   Project:     DT
- **
- **   Description: Private include file for the Action Library Utilities.
- **
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _ActionUtilP_h
-#define _ActionUtilP_h
-
-#include <X11/Intrinsic.h>             /* for Display struct definition */
-#include "ActionP.h"
-
-
-/*****************************************************************************
- *
- *     Macro to protect against sending a NULL pointer to certain
- *     library functions (i.e. sprintf, strlen, ...) with on some
- *     systems choke on a NULL pointer.
- *
- ****************************************************************************/
-#define        _DtActNULL_GUARD(s)     ((s) ? (s) : "")
-
-/******************************************************************************
-           External Utility Function Declarations
-
-       These functions are for internal use and are not part of the
-       public Action API. Each of the following functions returns a
-       newly allocated version of the desired string. It is up to the
-       caller to free the strings obtained.
-******************************************************************************/
-
-extern char    *_DtBasename(const char *s);
-extern char    *_DtDirname(const char *s);
-extern char    *_DtPathname(const char *s);
-extern char    *_DtHostString(const char *s);
-extern char    *_DtGetSessionHostName( void );
-extern char    *_DtGetDisplayHostName( Display *d);
-extern char    *_DtGetLocalHostName( void );
-extern char    *_DtGetExecHostsDefault (void);
-extern char    *_DtGetActionIconDefault (void);
-extern char    *_DtGetDtTmpDir(void);
-extern char    *_DtActGenerateTmpFile(char *dir,
-       char *format,
-       mode_t mode,
-       int *fd );
-extern int     _DtIsSameHost( const char *host1, const char *host2 );
-extern void    _DtRemoveTrailingBlanksInPlace(char **s);
-extern int     _DtExecuteAccess(const char *path);
-
-extern DtActionInvocationID _DtActAllocID();
-extern _DtActInvRecT *_DtActAllocInvRec();
-extern _DtActChildRecT *_DtActAllocChildRec( _DtActInvRecT *recp );
-extern int _DtActDeleteInvRec( DtActionInvocationID id);
-extern _DtActInvRecT *_DtActFindInvRec( DtActionInvocationID id);
-extern _DtActChildRecT *_DtActFindChildRec( 
-       DtActionInvocationID id,
-        unsigned long        childId);
-extern unsigned long _DtActEvalChildren(DtActionInvocationID id);
-extern void _DtActExecutionLeafNodeCleanup(
-       DtActionInvocationID  id,
-       DtActionArg           *newArgp,
-       int                   newArgc,
-       int                   respectQuitBlock);
-extern DtActionArg *_DtActMallocEmptyArgArray(int ac);
-extern void _DtActFreeArgArray( DtActionArg *argp, int ac );
-extern void *_DtActReadTmpFileToBuffer ( 
-       char *fname,
-       int *sizep);
-extern int _DtActGetCmdReturnArgs ( 
-        DtActionInvocationID invId,
-       _DtActChildRecT *childp,
-        DtActionArg     **aargv );
-
-/******************************************************************************/
-
-
-#endif /* _ActionUtilP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
diff --git a/cde/lib/DtSvc/DtUtil1/CmdInv.h b/cde/lib/DtSvc/DtUtil1/CmdInv.h
deleted file mode 100644 (file)
index 2d84594..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: CmdInv.h /main/6 1996/01/23 10:41:03 barstow $ */
-/***************************************************************************
-*
-* File:         CmdInv.h
-* Description:  Public header for the command invocation system.
-* Language:     C
-*
-** (c) Copyright 1993, 1994 Hewlett-Packard Company
-** (c) Copyright 1993, 1994 International Business Machines Corp.
-** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
-** (c) Copyright 1993, 1994 Novell, Inc.
-***************************************************************************/
-
-#ifndef _CmdInv_h
-#define _CmdInv_h
-
-#include <X11/Xlib.h>
-#include <Dt/Message.h>
-#include <Dt/Spc.h>
-
-/******************************************************************************
- *
- * DtCmdInvExecuteProc - This type is is used to define the parameters
- *   needed in the callback functions for success and failure notification 
- *   of a Command Invoker execution call. 
- *
- *****************************************************************************/
-
-typedef void (*DtCmdInvExecuteProc) (
-       char *message,          /* NULL if the request is successful.  
-                                * Otherwise an error message. */
-       void *client_data
-);
-
-/******************************************************************************
- *
- * Function:  void _DtInitializeCommandInvoker (
- *     Display *display,
- *     char *toolClass,
- *     char *applicationClass,
- *     DtSvcReceiveProc reloadDBHandler,
- *     XtAppContext appContext)
- *
- * Parameters:         
- *
- *     display          - The X server display connection.
- *                     
- *     toolClass        - The BMS tool class of the client.
- *
- *     applicationClass - The application class of the client (see 
- *                        XtInitialize).  This is needed to add the 
- *                        Command Invoker's resources to the client's
- *                        resources.
- *                     
- *     reloadDBHandler  - Function to be called if a RELOAD-TYPES-DB 
- *                        request is made.  If the client does not read
- *                        DT action and/or filetype databases, NULL must
- *                        be used.
- *
- *      appContext      - The client's application context.  Must be NULL
- *                        if the client does not use an application 
- *                         context.
- *
- * Purpose:            
- *
- *     This function allows a client to internalize the functionality
- *     of the DT "Command Invoker".  By using this library and the
- *     Action Library, requests for the Command Invoker will be done
- *     internally instead of sending a request to a separate Command
- *     Invoker process.
- *
- *     For local execution, the "fork" and "execvp" system calls are
- *     used.  For remote execution, the "SPCD" is used.
- *                     
- *****************************************************************************/
-
-extern void
-_DtInitializeCommandInvoker(
-       Display *display,
-       char *toolClass,
-       char *applicationClass,
-       DtSvcReceiveProc reloadDBHandler,
-       XtAppContext appContext);
-
-/******************************************************************************
- *
- * Function:  void _DtCommandInvokerExecute (
- *     char *request_name,
- *     char *context_host,
- *     char *context_dir,
- *     char *context_file,
- *     char *exec_parameters,
- *     char *exec_host,
- *     char *exec_string,
- *     DtCmdInvExecProc success_proc,
- *     void *success_data,
- *     DtCmdInvExecProc failure_proc,
- *     void *failure_data)
- *
- * Parameters:         
- *
- *     request_name    - The request name (defined in "CommandM.h").
- *                     
- *     context_host    - Name of the host where request is executed from.  If
- *                       NULL, the "exec_host" parameter is used.  Note: this
- *                       should not be confused with execution host, described
- *                       below.
- *
- *     context_dir     - Directory where the request should be executed.  If
- *                       NULL, the HOME directory is used.
- *
- *     context_file    - Not currently used by the Command Invoker.
- *
- *     exec_parameters - Command Invoker execution parameters.  See External
- *                       Specification for more information.
- *                       If set to NULL, "-" is used.
- *
- *     exec_host       - Name of the host where the request is executed.
- *
- *     exec_string     - The command line to execute.
- *
- *     success_proc    - The function to be invoked if the request is 
- *                       successfully executed.
- *
- *     success_data    - Client data for successful execution.
- *
- *     failure_proc    - The function to be invoked if an attempt to exeucte
- *                       the request fails.
- *
- *     failure_data    - Client data for unsuccessful execution.
- *
- * Purpose:            
- *
- *     This function allows a client to use the DT "Command Invoker"
- *     Library for its' process execution.  This function is intended
- *     for processes which do not use the Action Library.
- *
- *     For local execution, the "fork" and "execvp" system calls are
- *     used.  For remote execution, the "SPCD" is used.
- *
- * Notes:
- *
- *      This function must be preceded by a call to
- *     "_DtInitializeCommandInvoker".
- *                     
- *****************************************************************************/
-
-extern void
-_DtCommandInvokerExecute(
-       char *request_name,
-       char *context_host,
-       char *context_dir,
-       char *context_file,
-       char *exec_parameters,
-       char *exec_host,
-       char *exec_string,
-       DtCmdInvExecuteProc success_proc,
-       void *success_data,
-       DtCmdInvExecuteProc failure_proc,
-       void *failure_data);
-
-extern SPC_Channel_Ptr _DtSPCOpen( char *hostname,
-         int iomode,
-         char *errorMessage);                          /* MODIFIED */
-
-extern int _DtSPCSpawn(
-        char                    *path,
-        char                    *context,
-        char                    **args,
-        char                    **env,
-        SPC_Channel_Ptr         chan,
-        char                    *execHost,
-        char                    *contextHost,
-        char                    *contextDir,
-        char                    *errorMessage);                /* MODIFIED */
-
-#endif /* _CmdInv_h */
diff --git a/cde/lib/DtSvc/DtUtil1/CmdInvP.h b/cde/lib/DtSvc/DtUtil1/CmdInvP.h
deleted file mode 100644 (file)
index 951d139..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: CmdInvP.h /main/5 1998/07/30 12:10:30 mgreess $ */
-/***************************************************************************
-*
-* File:         CmdInvP.h
-* Description:  Command execution system private externs and includes
-* Language:     C
-*
-** (c) Copyright 1993, 1994 Hewlett-Packard Company
-** (c) Copyright 1993, 1994 International Business Machines Corp.
-** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
-** (c) Copyright 1993, 1994 Novell, Inc.
-***************************************************************************/
-
-#ifndef _CmdInvP_h
-#define _CmdInvP_h
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/param.h>   /* MAXPATHNAMELEN */
-
-#include <X11/Intrinsic.h>
-
-#include <Dt/DtP.h>
-#include <Dt/DtNlUtils.h>
-#include <Dt/Message.h>
-#include <bms/SbEvent.h>
-#include <bms/XeUserMsg.h>
-#include <Dt/Spc.h>
-#include <Dt/CmdInv.h>
-#include <Dt/ActionP.h>
-#include <Dt/Connect.h>
-
-#ifndef CDE_INSTALLATION_TOP
-#define CDE_INSTALLATION_TOP "/opt/dt"
-#endif
-
-/*
- * Resource names and classes for the Command Invoker.
- */
-#define DtLOCAL_TERMINAL_NAME           "localTerminal"
-#define DtLOCAL_TERMINAL_CLASS          "LocalTerminal"
-
-#define DtREMOTE_TERMINALS_NAME         "remoteTerminals"
-#define DtREMOTE_TERMINALS_CLASS        "RemoteTerminals"
-
-#define DtWAIT_TIME_NAME               "waitTime"
-#define DtWAIT_TIME_CLASS              "WaitTime"
-
-#define DtDTEXEC_PATH_NAME             "dtexecPath"
-#define DtDTEXEC_PATH_CLASS            "DtexecPath"
-
-#define DtEXECUTION_HOST_LOGGING_NAME  "executionHostLogging"
-#define DtEXECUTION_HOST_LOGGING_CLASS "ExecutionHostLogging"
-
-
-/*
- * Structure for saving the "state" of a remote request that is
- * queued while waiting for a remote subprocess to terminate.
- */
-typedef struct _Cmd_RequestQueue {
-   SPC_Channel_Ptr             channel;
-   char                        *context;
-   char                        *exec_host;
-   char                        *exec_string;
-   char                                **argv;
-   int                         winType;
-   unsigned long               request_num;
-   DtSvcMsgContext             replyContext;
-   DtCmdInvExecuteProc         success_proc;
-   void                                *success_data;
-   DtCmdInvExecuteProc         failure_proc;
-   void                                *failure_data;
-   struct _Cmd_RequestQueue    *next;
-} Cmd_RequestQueue;
-
-/*
- * Command invocation resources.
- */
-typedef struct {
-   char                                *localTerminal;
-   char                                **remoteHosts;
-   char                                **remoteTerminals;
-   int                         waitTime;
-   char                                *dtexecPath;
-   Boolean                     executionHostLogging;
-} Cmd_Resources;
-
-/*
- * Command invocation global variables.
- */
-typedef struct {
-   Boolean                     terminal_ok;
-   Boolean                     subprocess_ok;
-   XtAppContext                        app_context;
-   char                        **path_list;
-   char                                *error_directory_name_map;
-   char                                *error_subprocess;
-   char                                *error_terminal;
-} Cmd_Globals;
-
-/*
- * Defaults for the Resources.
- */
-#define DtWAIT_TIME_DEFAULT            3       /* In seconds. */
-#define DtTERMINAL_DEFAULT             "dtterm"
-
-#define DtCMD_INV_SUB_PROCESS          CDE_INSTALLATION_TOP "/bin/dtexec"
-
-/*
- * Temporary buffer size.
- */
-#define MAX_BUF_SIZE                   1024
-
-/* 
- * Window types:
- */
-#define NO_STDIO                       0
-#define TERMINAL                       1
-#define PERM_TERMINAL                  2
-
-/*
- * Command execution return status:
- */
-#define _CMD_EXECUTE_SUCCESS           1
-#define _CMD_EXECUTE_FAILURE           2
-#define _CMD_EXECUTE_QUEUED            3
-#define _CMD_EXECUTE_FATAL             4
-
-/*
- * External declarations for the global Command Invoker variables.
- */
-extern Cmd_Resources   cmd_Resources;
-extern Cmd_Globals     cmd_Globals;
-
-/*
- *******    Public Function Declarations for CmdSpc.c    *******
- */
-
-extern SbInputId _DtCmdSPCAddInputHandler (
-                       int fd,
-                       SbInputCallbackProc proc,
-                       void *data);
-extern SbInputId _DtCmdSPCAddExceptionHandler (
-                       int fd,
-                       SbInputCallbackProc proc,
-                       void *data);
-extern void _DtCmdLogErrorMessage( 
-                        char *message) ;
-
-
-/*
- *******    Public Function Declarations for CmdProcess.c    *******
- */
-
-extern void _DtCmdCreateTerminalCommand( 
-                        char **theCommand,
-                        int windowType,
-                        char *execString,
-                        char *execParms,
-                       char *execHost,
-                        char *procId,
-                        char *tmpFiles) ;
-extern Boolean _DtCmdCheckForExecutable( 
-                        char *fileName) ;
-extern Boolean _DtCmdValidDir( 
-                        char *clientHost,
-                        char *contextDir,
-                       char *contextHost) ;
-extern void _DtCmdGetResources( 
-                       Display *display);
-
-
-
-/*
- *******    Public Function Declarations for CmdUtilityP.c    *******
- */
-
-extern void _DtCmdBuildPathList( void ) ;
-
-/********    End Public Function Declarations    ********/
-
-#endif /* _CmdInvP_h */
diff --git a/cde/lib/DtSvc/DtUtil1/DbReader.h b/cde/lib/DtSvc/DtUtil1/DbReader.h
deleted file mode 100644 (file)
index 12df7fa..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:        DbReader.h $XConsortium: DbReader.h /main/4 1995/10/26 15:03:35 rswiston $
- *
- * Description: Public include file for the database reader.
- *
- * (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-
-#ifndef _Dt_DbReader_h
-#define _Dt_DbReader_h
-
-#include <X11/Xlib.h>
-#include <X11/Xresource.h>
-#include <Dt/DbUtil.h>
-
-#define DTRECORDIDENTIFIER NULL
-#define DTUNLIMITEDFIELDS  0
-
-/* one set of attribute/pair */
-typedef struct
-{
-       XrmQuark                fieldName;
-       char                    *fieldValue;
-} DtDtsDbField;
-
-/*
- * Opaque identifier used for identifying a database file name.  The opaque
- * identifier can be converted to an ascii string, using the function
- * _DtDbPathIdToString().
- */
-#define DtDbPathId long
-
-/*
- * All record converters should expect to be called with the parameters
- * indicated below:
- *
- *   fields:    This is an array of keyword/value pair strings, each
- *              representing one field value for this database record.  NOTE:
- *              the keywords have not been validated; this is the
- *              responsibility of the converter, and is usually accomplished
- *              by calling _DtValidateFieldNames().  The array is NULL
- *              terminated, with the last entry having both the 'fieldName'
- *              and 'fieldValue' pointers set to NULL.  The first entry always
- *              represents the record identifier, with the 'fieldName' set
- *              to the record type string, and the 'fieldValue' set to any
- *              remaining data specified on the record identifier line.
- *
- *   pathId:    Is an opaque identifier, which can be used to retrieve the name
- *              of the database file from which this record was obtained.  By
- *              calling _DtDbPathIdToString(), the database file, in
- *              "host:/path" format, can be obtained.
- *
- *   hostPrefix: If the database file was loaded from a machine other than the
- *               local machine, then this string indicates the host prefix, in
- *               "/nfs/<host>" format.  If the host was the local host, then
- *               this value is set to NULL.
- *
- *   rejectionStatus: This flag indicates whether any of the earlier record
- *                    converters had rejected this entry.  Certain classes
- *                    of converters may choose to ignore entries if they
- *                    had already been rejected.
- *
- * It is the responsibility of the converter to perform any necessary
- * verification of the passed in set of keywords; the function
- * _DtValidateFieldNames() is provided as a convenience function for performing
- * this type of validation.  Typically, the converter will write an error to
- * the user's errorlog file, if an invalid record is encountered.
- *
- * It is also the responsibility of the converter to allocate any memory needed
- * to store the new record.  The strings contained within the 'fields' array
- * will all be freed when the converter returns to _DtDbRead(), so the
- * converter should make copies of any information it wishes to use in the
- * future.  The converter is also responsible for adding the new record to
- * whatever storage array it is using to save record information.
- *
- * If the converter decides to reject the record, then it should return a
- * 'True' value.  If the record was acceptable, then 'False' should be
- * returned.
- */
-typedef Boolean (*DtDbConverter) (DtDtsDbField * fields,
-                                  DtDbPathId pathId,
-                                  char * hostPrefix,
-                                  Boolean rejectionStatus);
-
-/*
- * This structure defines each record type which should be loaded by
- * _DtDbRead().  Since _DtDbRead() is capable of loading multiple record types
- * (i.e ACTION, DATA_CRITERIA, etc) in a single pass, the invoking function will
- * pass in an array of these structures, for which each element will define a
- * record type which should be loaded.  Each record definition requires the
- * following information:
- *
- *   recordKeyword: This is the keyword which uniquely identifies the record
- *                  which matches this definition.  Examples are "ACTION" and
- *                  "DATA_CRITERIA".
- *
- *   maxFields:     Indicates the maximum number of fields which is expected
- *                  by this record type; typically, this corresponds to the
- *                  number of distinct field keywords supported by this type
- *                  of record.  This feature is used to prevent runaway database
- *                  records from getting out of hand; a runaway database record
- *                  typically occurs when the user forgets to include line
- *                  continuation characters, and a long 'description' field
- *                  is entered.  If this parameter is set to
- *                  DTUNLIMITEDFIELDS, then the check for runaway records
- *                  will be disabled for records of this type.
- *
- *  converters:     This is a NULL-terminated array of function pointers, 
- *                  corresponding to the set of record converters which will 
- *                  be called, whenever a record of this type is encountered.  
- *                  The converters are called in order, and all converters will
- *                  be called, even if an earlier one rejects the record.  The
- *                  last entry in the array must be set to NULL.
- */
-typedef struct {
-   char * recordKeyword;
-   int maxFields;
-   DtDbConverter * converters;
-} DtDbRecordDesc;
-
-
-/*
- * _DtDbRead() is the function which causes the specified set of directories to
- * be searched for files ending with the specified suffix.  Although not
- * required, the set of directories to search is typically obtained by calling
- * _DtGetDatabaseDirPaths().  This function supports the loading of multiple
- * field types, all in a single pass of the database files.  This function does
- * not attempt to manage the memory used to store the information extracted from
- * the database files; it is the responsibility of the function calling this
- * procedure to initialize any storage, and it is the responsibility of the
- * record converters to allocate any memory needed to store and record, along
- * with adding the record to the appropriate storage array.
- *
- *  dirs:        The set of directories to be searched for database files.
- *
- *  suffix:      The file suffix (i.e. ".vf") used to qualify which files within
- *               the database directories should be loaded.
- *
- *  recordDescriptions: An array, where each entry describes a database record
- *                      which should be loaded during this pass of _DtDbRead().
- *                      See the definition for this structure, for more details.
- *
- *  int numRecordDescriptions:  The number of entries in the above array.
- */
-extern void _DtDbRead (DtDirPaths * dirs,
-                       char * suffix,
-                       DtDbRecordDesc * recordDescriptions,
-                       int numRecordDescriptions);
-
-
-/*
- * _DtDbPathIdToString() is used to map a filename identifier, represented
- * by an opaque DtDbPathId value, into its corresponding ascii string
- * representation.  The returned string is owned by the calling application,
- * which should free it up when no longer needed.
- */
-extern char * _DtDbPathIdToString ( DtDbPathId pathId );
-
-#endif /* _Dt_DbReader_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/DbUtil.h b/cde/lib/DtSvc/DtUtil1/DbUtil.h
deleted file mode 100644 (file)
index 8f6cb9f..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         DbUtil.h $XConsortium: DbUtil.h /main/4 1995/10/26 15:04:04 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_DbUtil_h
-#define _Dt_DbUtil_h
-
-#include <X11/Intrinsic.h>             /* Boolean */
-
-/* 
- * This structure is used by many of the database functions.  It is used to
- * specify a collection of filenames or directory names.  Each file/directory
- * name is returned in two forms:
- *
- *  dirs[n]   The fully host-qualified pathname for the file or directory,
- *            in "host:/path" format.
- *
- *  paths[n]  The internal format of the file or directory anme, which
- *            can be passed to any of the standard tools which expect a
- *            valid filename; i.e. /nfs/host/path.
- *
- *  Both of the arrays are NULL-terminated.
- */
-typedef struct {
-   char ** dirs;
-   char ** paths;
-} DtDirPaths;
-
-
-
-/*****************************************************************************
- *
- *
- *
- ****************************************************************************/
-extern DtDirPaths * _DtFindMatchingFiles( DtDirPaths * dirs, 
-                                           char * suffix, 
-                                           Boolean sortFiles );
-
-/*****************************************************************************
- *
- * _DtGetDatabaseDirPaths() returns a NULL-terminated array of directories,
- * which are to be searched for database files.  The paths are obtained by
- * querying the DTDATABASESEARCHPATH environment variable, which specifies
- * a set of comma separated pathnames, int "host:/path" format.  The
- * return structure should be freed up, when no longer needed, by invoking
- * _DtFreeDatabaseDirPaths().
- *
- * The returned directory names are represented in two formats:
- *
- *     1) Fully host qualified; i.e. "host:/path"
- *     2) Internal format; i.e. "/nfs/host/path"
- *
- ****************************************************************************/
-extern DtDirPaths * _DtGetDatabaseDirPaths( void );
-
-/*****************************************************************************
- *
- * _DtFreeDatabaseDirPaths() is used to free the memory occupied by the
- * passed-in instance of the DtDirPaths structure.  Typically, this
- * information was originally obtained by a call to DtGetDatabasePaths()
- * or _DtFindMatchingFiles().
- *
- * Parameters:
- *
- *      dirs       The structure which is to be freed up.
- *
- ****************************************************************************/
-extern void _DtFreeDatabaseDirPaths( DtDirPaths * dirs );
-
-#endif /* _Dt_DbUtil_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/Dnd.h b/cde/lib/DtSvc/DtUtil1/Dnd.h
deleted file mode 100644 (file)
index 866557f..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Dnd.h /main/3 1995/10/26 15:04:35 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Dnd_h
-#define _Dt_Dnd_h
-
-#include <Xm/DragIcon.h>
-#include <Xm/DragC.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Dnd Callback Reasons */
-
-enum {
-       DtCR_DND_CONVERT_DATA,
-       DtCR_DND_CONVERT_DELETE,
-       DtCR_DND_DRAG_FINISH,
-       DtCR_DND_TRANSFER_DATA,
-       DtCR_DND_DROP_ANIMATE,
-       DtCR_DND_ROOT_TRANSFER
-};
-#define DtCR_DND_TRANSFER DtCR_DND_TRANSFER_DATA
-
-/* 
- * Dnd Drag Start Resources 
- *     dropOnRootCallback is private and should not be used
- */
-
-#define        DtNdropOnRootCallback           "dropOnRootCallback"
-#define        DtCDropOnRootCallback           "DropOnRootCallback"
-#define DtNsourceIcon                  "sourceIcon"
-#define DtCSourceIcon                  "SourceIcon"
-#define        DtNbufferIsText                 "bufferIsText"
-#define        DtCBufferIsText                 "BufferIsText"
-
-/* 
- *Dnd Drop Register Resources
- */
-
-#define        DtNdropAnimateCallback          "dropAnimateCallback"
-#define        DtCDropAnimateCallback          "DropAnimateCallback"
-#define        DtNpreserveRegistration         "preserveRegistration"
-#define        DtCPreserveRegistration         "PreserveRegistration"
-#define        DtNregisterChildren             "registerChildren"
-#define        DtCRegisterChildren             "RegisterChildren"
-#define        DtNtextIsBuffer                 "textIsBuffer"
-#define        DtCTextIsBuffer                 "TextIsBuffer"
-
-/*
- * Types
- */
-
-typedef enum {
-       DtDND_SUCCESS,
-       DtDND_FAILURE
-} DtDndStatus;
-
-typedef unsigned long DtDndProtocol;
-
-enum {
-       DtDND_NOOP_TRANSFER             = 0L,
-       DtDND_TEXT_TRANSFER             = (1L << 0),
-       DtDND_FILENAME_TRANSFER         = (1L << 1),
-       DtDND_BUFFER_TRANSFER           = (1L << 2)
-};
-
-typedef struct _DtDndBuffer {
-        void *         bp;
-        int            size;
-        String         name;
-} DtDndBuffer;
-
-typedef struct _DtDndContext {
-        DtDndProtocol  protocol;
-       Cardinal        numItems;
-       union {
-               XmString *      strings;
-               String *        files;
-               DtDndBuffer *   buffers;
-       } data;
-} DtDndContext;
-
-/*
- * Dnd Callback Structures
- */
-
-typedef struct _DtDndConvertCallbackStruct {
-        int            reason;
-        XEvent *       event;
-        DtDndContext * dragData;
-       DtDndStatus     status;
-} DtDndConvertCallbackStruct, *DtDndConvertCallback;
-
-typedef struct _DtDndDragFinishCallbackStruct {
-       int             reason;
-       XEvent *        event;
-       DtDndContext *  dragData;
-       Widget          sourceIcon;
-} DtDndDragFinishCallbackStruct, *DtDndDragFinishCallback;
-
-typedef struct _DtDndTransferCallbackStruct {
-       int             reason;
-       XEvent *        event;
-       Position        x, y;
-       unsigned char   operation;
-       DtDndContext *  dropData;
-       Widget          dragContext;
-       Boolean         completeMove;
-       DtDndStatus     status;
-} DtDndTransferCallbackStruct, *DtDndTransferCallback;
-
-typedef DtDndTransferCallbackStruct DtDndDropCallbackStruct, *DtDndDropCallback;
-
-typedef struct _DtDndDropAnimateCallbackStruct {
-       int             reason;
-       XEvent *        event;
-       Position        x, y;
-       unsigned char   operation;
-       DtDndContext *  dropData;
-} DtDndDropAnimateCallbackStruct, *DtDndDropAnimateCallback;
-
-
-/*
- * Functions
- */
-
-extern Widget DtDndCreateSourceIcon(
-               Widget          widget,
-               Pixmap          source,
-               Pixmap          mask);
-
-extern Widget DtDndDragStart(
-               Widget          dragInitiator, 
-               XEvent*         event, 
-               DtDndProtocol   protocol, 
-               Cardinal        numItems, 
-               unsigned char   operations,
-                XtCallbackList convertCallback, 
-               XtCallbackList  dragFinishCallback,
-               ArgList         argList,
-               Cardinal        argCount);
-
-extern Widget DtDndVaDragStart(
-               Widget          dragInitiator, 
-               XEvent*         event, 
-               DtDndProtocol   protocol, 
-               Cardinal        numItems, 
-               unsigned char   operations,
-                XtCallbackList convertCallback, 
-               XtCallbackList  dragFinishCallback,
-               ...);
-
-extern void DtDndDropRegister(
-               Widget          dropSite, 
-               DtDndProtocol   protocols, 
-               unsigned char   operations, 
-                XtCallbackList transferCallback,
-               ArgList         argList,
-               Cardinal        argCount);
-
-extern void DtDndVaDropRegister(
-               Widget          dropSite, 
-               DtDndProtocol   protocols, 
-               unsigned char   operations, 
-                XtCallbackList transferCallback,
-               ...);
-
-extern void DtDndDropUnregister(
-               Widget          widget);
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Dnd_h */
diff --git a/cde/lib/DtSvc/DtUtil1/DndIconI.h b/cde/lib/DtSvc/DtUtil1/DndIconI.h
deleted file mode 100644 (file)
index 383918d..0000000
+++ /dev/null
@@ -1,423 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DndIconI.h /main/3 1995/10/26 15:05:58 rswiston $ */
-/*********************************************************************
- *
- *     File:           DndIconI.h
- *
- *     Description:    Private include file containing DND drag icons bitmaps
- *
- *********************************************************************
- *
- *+SNOTICE
- *
- *     RESTRICTED CONFIDENTIAL INFORMATION:
- *     
- *     The information in this document is subject to special
- *     restrictions in a confidential disclosure agreement between
- *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
- *     document outside HP, IBM, Sun, USL, SCO, or Univel without
- *     Sun's specific written approval.  This documment and all copies
- *     and derivative works thereof must be returned or destroyed at
- *     Sun's request.
- *
- *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company
- * (c) Copyright 1993, 1994 International Business Machines Corp.
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994 Novell, Inc.
- *
- *+ENOTICE
- */
-
-#ifndef _Dt_DndIconI_h
-#define _Dt_DndIconI_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*-------------------------------------------------------------------
- *     Motif Defaults
- *-------------------------------------------------------------------*/
-
-#define        motif_x_hot              1
-#define        motif_y_hot              1
-
-#define motif_x_offset_state   -8      
-#define motif_y_offset_state   -2
-
-#define motif_x_offset_delta    0
-#define motif_y_offset_delta    0
-
-/*-------------------------------------------------------------------
- *     Text Drags: Cursors
- *-------------------------------------------------------------------*/
-
-#define        text_x_hot               1
-#define        text_y_hot               1
-
-#define text_x_offset_state     1
-#define text_y_offset_state     1
-
-#define text_x_offset_delta     7
-#define text_y_offset_delta     3
-
-/*
- *     Text: State Valid
- */
-
-#define text_valid_width 16
-#define text_valid_height 16
-
-static unsigned char text_valid_bits[] = {
-#ifdef OLDTEXTVALID
-   0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00,
-   0x7e, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#else
-   0x00, 0x00, 0xfe, 0x01, 0xfe, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00,
-   0x0e, 0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#endif
-
-static unsigned char text_valid_m_bits[] = {
-#ifdef OLDTEXTVALID
-   0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00,
-   0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#else
-   0xff, 0x07, 0xff, 0x03, 0xff, 0x01, 0xff, 0x00, 0x7f, 0x00, 0x3f, 0x00,
-   0x1f, 0x00, 0x0f, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#endif
-
-/*
- *     Text: State Invalid
- */
-
-#define text_invalid_width 16
-#define text_invalid_height 16
-
-static unsigned char text_invalid_bits[] = {
-   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
-   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
-   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char text_invalid_m_bits[] = {
-   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
-   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
-   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
-
-/*
- *     Text: None
- */
-
-#define text_none_width 16
-#define text_none_height 16
-
-static unsigned char text_none_bits[] = {
-   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
-   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
-   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char text_none_m_bits[] = {
-   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
-   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
-   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
-
-/*-------------------------------------------------------------------
- *     Text Drags: Operation Cursors
- *-------------------------------------------------------------------*/
-
-/* Use Data Operation Cursors */
-
-/*
- *     Text: Operation Move
- */
-
-/*
- *     Text: Operation Copy
- */
-
-/*
- *     Text: Operation Link
- */
-
-/*-------------------------------------------------------------------
- *     Text Drags: Source Cursor
- *-------------------------------------------------------------------*/
-
-#define text_source_width 32
-#define text_source_height 32
-
-static unsigned char text_source_bits[] = {
-#ifdef OLDTEXTSOURCE
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0xd8, 0xdb, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbe, 0x7f, 0x1f,
-   0x00, 0x00, 0x00, 0x00, 0xb8, 0xf6, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00,
-   0xe8, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xbb, 0xff, 0x06,
-   0x00, 0x00, 0x00, 0x00, 0xd8, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00,
-   0x78, 0xd7, 0xb4, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xad, 0xd5, 0x0f,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#else
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0xc0, 0xcd, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x7f, 0x1f,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfd, 0x16, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x7b, 0x76, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xbb, 0xff, 0x06,
-   0x00, 0x00, 0x00, 0x00, 0xf0, 0xde, 0x7b, 0x1d, 0x00, 0x00, 0x00, 0x00,
-   0x78, 0x77, 0xb7, 0x0b, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xbd, 0xdd, 0x0f,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#endif
-
-static unsigned char text_source_m_bits[] = {
-#ifdef OLDTEXTSOURCE
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#else
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0x3f,
-   0x00, 0xf0, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0x3f,
-   0x00, 0xfe, 0xff, 0x3f, 0x00, 0xff, 0xff, 0x3f, 0x80, 0xff, 0xff, 0x3f,
-   0xc0, 0xff, 0xff, 0x3f, 0xe0, 0xff, 0xff, 0x3f, 0xf0, 0xff, 0xff, 0x3f,
-   0xf8, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-#endif
-
-/*-------------------------------------------------------------------
- *     Data Drags: Cursors
- *------------------------------------------------------------------*/
-
-#define        data_x_hot               3
-#define        data_y_hot               3
-
-#define data_x_offset_state    11
-#define data_y_offset_state    11
-
-#define data_x_offset_delta     7
-#define data_y_offset_delta     7
-
-/*
- *     Data: State Valid
- */
-
-#define data_valid_width 16
-#define data_valid_height 16
-
-static unsigned char data_valid_bits[] = {
-   0x00, 0x00, 0x06, 0x00, 0x1e, 0x00, 0x7c, 0x00, 0xfc, 0x01, 0xf8, 0x07,
-   0xf8, 0x07, 0xf0, 0x01, 0xf0, 0x03, 0x60, 0x07, 0x60, 0x0e, 0x00, 0x1c,
-   0x00, 0x38, 0x00, 0x70, 0x00, 0x60, 0x00, 0x00};
-
-static unsigned char data_valid_m_bits[] = {
-   0x07, 0x00, 0x1f, 0x00, 0x7f, 0x00, 0xfe, 0x01, 0xfe, 0x07, 0xfc, 0x0f,
-   0xfc, 0x0f, 0xf8, 0x07, 0xf8, 0x07, 0xf0, 0x0f, 0xf0, 0x1f, 0x60, 0x3e,
-   0x00, 0x7c, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x60};
-
-/*
- *     Data: State Invalid
- */
-
-#define data_invalid_width 16
-#define data_invalid_height 16
-
-static unsigned char data_invalid_bits[] = {
-   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
-   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
-   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char data_invalid_m_bits[] = {
-   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
-   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
-   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
-
-/*
- *     Data: State None
- */
-
-#define data_none_width 16
-#define data_none_height 16
-
-static unsigned char data_none_bits[] = {
-   0x00, 0x00, 0xe0, 0x03, 0xf8, 0x0f, 0x1c, 0x1c, 0x0c, 0x1e, 0x06, 0x37,
-   0x86, 0x33, 0xc6, 0x31, 0xe6, 0x30, 0x76, 0x30, 0x3c, 0x18, 0x1c, 0x1c,
-   0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char data_none_m_bits[] = {
-   0xe0, 0x03, 0xf8, 0x0f, 0xfc, 0x1f, 0xfe, 0x3f, 0x1e, 0x3f, 0x8f, 0x7f,
-   0xcf, 0x7f, 0xef, 0x7b, 0xff, 0x79, 0xff, 0x78, 0x7e, 0x3c, 0xfe, 0x3f,
-   0xfc, 0x1f, 0xf8, 0x0f, 0xe0, 0x03, 0x00, 0x00};
-
-/*-------------------------------------------------------------------
- *     Data Drags: Operation Cursors
- *-------------------------------------------------------------------*/
-
-/*     
- *     Data: Operation Move
- */
-
-#define data_move_width 16
-#define data_move_height 16
-
-static unsigned char data_move_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char data_move_m_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-
-/*     
- *     Data: Operation Copy
- */
-
-#define data_copy_width 16
-#define data_copy_height 16
-
-static unsigned char data_copy_bits[] = {
-   0x00, 0x00, 0xfe, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x1f, 0x02, 0x11,
-   0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0x02, 0x11, 0xfe, 0x11, 0x20, 0x10,
-   0x20, 0x10, 0xe0, 0x1f, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char data_copy_m_bits[] = {
-   0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
-   0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
-   0xf0, 0x3f, 0xf0, 0x3f, 0xf0, 0x3f, 0x00, 0x00};
-
-/*     
- *     Data: Operation Link
- */
-
-#define data_link_width 16
-#define data_link_height 16
-
-static unsigned char data_link_bits[] = {
-   0x00, 0x00, 0xfe, 0x03, 0x02, 0x02, 0x02, 0x02, 0x32, 0x02, 0x32, 0x3e,
-   0x42, 0x20, 0x82, 0x20, 0x02, 0x21, 0x3e, 0x26, 0x20, 0x26, 0x20, 0x20,
-   0x20, 0x20, 0xe0, 0x3f, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char data_link_m_bits[] = {
-   0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x07, 0xff, 0x7f, 0xff, 0x7f,
-   0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xf0, 0x7f,
-   0xf0, 0x7f, 0xf0, 0x7f, 0xf0, 0x7f, 0x00, 0x00};
-
-/*-------------------------------------------------------------------
- *     Data Drags: Source Icons
- *-------------------------------------------------------------------*/
-
-/*
- *     Data Source: Single
- */
-
-#define data_single_width 32
-#define data_single_height 32
-
-static unsigned char data_single_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00,
-   0x10, 0x00, 0x40, 0x01, 0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04,
-   0x10, 0x00, 0xc0, 0x0f, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
-   0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f};
-
-static unsigned char data_single_m_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0x00,
-   0xf0, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0x07,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f,
-   0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x0f};
-
-/*
- *     Data Source: Multiple 
- */
-
-#define data_multiple_width 32
-#define data_multiple_height 32
-
-static unsigned char data_multiple_bits[] = {
-   0xfc, 0xff, 0x0f, 0x00, 0x04, 0x00, 0x30, 0x00, 0x04, 0x00, 0xd0, 0x1f,
-   0x04, 0x00, 0x90, 0x10, 0x04, 0x00, 0x10, 0xf1, 0x04, 0x00, 0xf0, 0x93,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92, 0x04, 0x00, 0x00, 0x92,
-   0xfc, 0xff, 0xff, 0x93, 0x20, 0x00, 0x00, 0x90, 0xe0, 0xff, 0xff, 0x9f,
-   0x00, 0x01, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff};
-
-static unsigned char data_multiple_m_bits[] = {
-   0xfc, 0xff, 0x0f, 0x00, 0xfc, 0xff, 0x3f, 0x00, 0xfc, 0xff, 0xff, 0x1f,
-   0xfc, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff,
-   0xfc, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff,
-   0x00, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_DndIconI_h */
diff --git a/cde/lib/DtSvc/DtUtil1/DndP.h b/cde/lib/DtSvc/DtUtil1/DndP.h
deleted file mode 100644 (file)
index 63447b0..0000000
+++ /dev/null
@@ -1,332 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DndP.h /main/4 1996/06/21 17:28:31 ageorge $ */
-/*********************************************************************
- *
- *     File:           DndP.h
- *
- *     Description:    Private include file for DND Convenience API.
- *
- *********************************************************************
- *
- *+SNOTICE
- *
- *     RESTRICTED CONFIDENTIAL INFORMATION:
- *     
- *     The information in this document is subject to special
- *     restrictions in a confidential disclosure agreement bertween
- *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
- *     document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
- *     Sun's specific written approval.  This documment and all copies
- *     and derivative works thereof must be returned or destroyed at
- *     Sun's request.
- *
- *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company
- * (c) Copyright 1993, 1994 International Business Machines Corp.
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994 Novell, Inc.
- *
- *+ENOTICE
- */
-
-#ifndef _Dt_DndP_h
-#define _Dt_DndP_h
-
-#include <stdarg.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Drag and Drop selection targets
- */
-
-extern Atom    XA_TARGETS;
-extern Atom    XA_TIMESTAMP;
-extern Atom    XA_MULTIPLE;
-extern Atom    XA_DELETE;
-extern Atom    XA_NULL;
-extern Atom    XA_TEXT;
-extern Atom    XA_HOST_NAME;
-extern Atom    XA_SUN_FILE_HOST_NAME;
-extern Atom    XA_SUN_ENUM_COUNT;
-extern Atom    XA_SUN_DATA_LABEL;
-extern Atom    XA_SUN_SELN_READONLY;
-extern Atom    XA_SUN_ATM_FILE_NAME;
-extern Atom    XA_SUN_ATM_METHODS;
-
-#define DtGetAtom(display, atomname) \
-       XmInternAtom((display),(atomname),False)
-
-
-/*
- * Drag Icon Styles
- */
-typedef enum {
-       DtDND_DRAG_SOURCE_DEFAULT,
-       DtDND_DRAG_SOURCE_TEXT,
-       DtDND_DRAG_SOURCE_DATA,
-       DtDND_DRAG_SOURCE_MULTIPLE
-} DtDndDragSource;
-
-/*
- *  Drag-n-Drop Data Transfer Protocol
- */
-typedef struct _DtDndTransfer {
-       Atom *                  targets;
-       Cardinal                numTargets;
-       struct _DtDndMethods *  methods;
-} DtDndTransfer;
-
-/*
- * Drag Initiator Structure
- */
-
-typedef struct _DtDragInfo {
-        Widget                 dragInitiator;
-       Widget                  dragContext;
-       DtDndProtocol           protocol;
-       Cardinal                numItems;
-       unsigned char           operations;
-        XtCallbackList         dragConvertCallback;
-        XtCallbackList         dragFinishCallback;
-        XtCallbackList         dropOnRootCallback;
-        XtCallbackList         dragDropFinishCallback;
-        XtCallbackList         dropFinishCallback;
-        XtCallbackList         topLevelEnterCallback;
-        XtCallbackList         topLevelLeaveCallback;
-        XtCallbackList         dropStartCallback;
-       Widget                  sourceIcon;
-       Boolean                 bufferIsText;
-       DtDndTransfer *         transfer;
-        DtDndContext *         dragData;
-        Boolean                inRoot;
-       Window                  backdropWindow;
-       DtDndStatus             status;
-       XtPointer               clientData;
-} DtDragInfo;
-/*
- * Drop Receiver Existing Registration Structure
- */
-typedef struct _DtDropSiteInfo {
-        XtCallbackProc         dropProc;
-        unsigned char          operations;
-        Atom *                 importTargets;
-        int                    numImportTargets;
-} DtDropSiteInfo;
-
-/*
- * Drop Receiver Data Transfer Structure
- */
-
-typedef struct _DtTransferInfo {
-       Widget                  dragContext;
-       DtDndProtocol           protocol;
-       unsigned char           operation;
-       struct _DtDndMethods *  methods;
-       Atom *                  transferTargets;
-       Cardinal                numTransferTargets;
-       Cardinal                currentTransfer;
-       Boolean                 appTransferCalled;
-        XEvent *               event;
-        Position               x, y;
-       XtPointer               clientData;
-        XtCallbackList         dropAnimateCallback;
-} DtTransferInfo;
-
-/*
- * Drop Receiver Registration Structure
- */
-
-typedef struct _DtDropInfo {
-        Widget                 dropReceiver;
-       DtDndProtocol           protocols;
-       unsigned char           operations;
-        XtCallbackList         dropTransferCallback;
-        XtCallbackList         dropAnimateCallback;
-       Boolean                 textIsBuffer;
-       DtDropSiteInfo *        dropSiteInfo;
-       DtDndTransfer *         transfers;
-       Cardinal                numTransfers;
-       DtTransferInfo *        transferInfo;
-        DtDndContext *                 dropData;
-        DtDndStatus            status;
-} DtDropInfo;
-
-/*
- * Drag-n-Drop Data Transfer Protocol Function Prototypes
- */
-
-typedef void   
-(*DtDndGetAvailTargetsProc)(
-       DtDragInfo *            dtDragInfo, 
-       Atom **                 returnAvailTargetsList, 
-       Cardinal *              returnNumAvailTargets);
-
-typedef void   
-(*DtDndGetExportTargetsProc)(
-       DtDragInfo *            dtDragInfo, 
-       Atom **                 returnExportTargetsList, 
-       Cardinal *              returnNumExportTargets);
-
-typedef void   
-(*DtDndGetImportTargetsProc)(
-       DtDropInfo *            dtDropInfo, 
-       Atom **                 returnImportTargetsList, 
-       Cardinal *              returnNumImportTargets);
-
-typedef void 
-(*DtDndConvertInitProc)(
-       DtDragInfo *            dtDragInfo);
-
-typedef Boolean 
-(*DtDndConvertProc)(
-       Widget                  dragContext,
-       DtDragInfo *            dtDragInfo,
-       Atom *                  selection,
-       Atom *                  target,
-       Atom *                  returnType,
-       XtPointer *             returnValue,
-       unsigned long *         returnLength,
-       int *                   returnFormat, 
-       XSelectionRequestEvent *selectionRequestEvent);
-
-typedef void
-(*DtDndConvertFinishProc)(
-       DtDragInfo *            dtDragInfo);
-
-typedef void
-(*DtDndTransferTargetsProc)(
-       DtDropInfo *            dtDropInfo, 
-       Atom *                  exportTargets,
-       Cardinal                numExportTargets,
-       Atom **                 returnTransferTargetsList, 
-       Cardinal *              returnNumTransferTargets);
-
-typedef void
-(*DtDndTransferProc)(
-       Widget                  dropTransfer,
-       DtDropInfo *            dtDropInfo,
-       Atom *                  selection,
-       Atom *                  target,
-       Atom *                  type,
-       XtPointer               value,
-       unsigned long *         length,
-       int *                   format);
-
-typedef void
-(*DtDndTransferFinishProc)(
-       DtDropInfo *            dtDropInfo);
-
-/*
- * Drag-n-Drop Data Transfer Methods
- */
-
-typedef struct _DtDndMethods {
-       String                          name;
-       DtDndProtocol                   protocol;
-       DtDndDragSource                 sourceType;
-       DtDndGetAvailTargetsProc        getAvailTargets;
-       DtDndGetExportTargetsProc       getExportTargets;
-       DtDndGetImportTargetsProc       getImportTargets;
-       DtDndConvertInitProc            convertInit;
-       DtDndConvertProc                convert;
-       DtDndConvertFinishProc          convertFinish;
-       DtDndTransferTargetsProc        transferTargets;
-       DtDndTransferProc               transfer;
-       DtDndTransferFinishProc         transferFinish;
-} DtDndMethods;
-
-/*
- * Drag-n-Drop Private Utility Functions
- */
-
-extern DtDndTransfer *
-_DtDndCreateExportTransfer(
-       DtDragInfo *    dtDragInfo);
-
-extern DtDndTransfer *
-_DtDndCreateImportTransfers(
-       DtDropInfo *    dtDropInfo,
-       Cardinal *      numTransfers);
-
-extern void
-_DtDndDestroyTransfers(
-       DtDndTransfer * transfers,
-       Cardinal        numTransfers);
-
-extern DtDndTransfer * 
-_DtDndTransferFromTargets(
-        DtDndTransfer * transfers,
-        Cardinal        numTransfers,
-        Atom *          targets,
-        Cardinal        numTargets);
-
-extern void
-_DtDndTransferAdd(
-       Widget          dropTransfer,
-       DtDropInfo *    dtDropInfo,
-       Atom *          transferTargets,
-       Cardinal        numTransferTargets);
-
-extern XtCallbackList
-_DtDndCopyCallbackList(
-       XtCallbackList  callbacks);
-
-extern void    
-_DtDndCallCallbackList(
-       Widget          widget,
-       XtCallbackList  callbacks,
-       XtPointer       calldata);
-
-extern void    
-_DtDndSelectDragSource(
-       Widget          anyWidget,
-       DtDndDragSource sourceType,
-       Widget          sourceIcon);
-
-extern void
-_DtDndGetIconOffset(
-       Widget          dragContext, 
-       DtDndDragSource sourceType,
-       int *           offsetXReturn,
-       int *           offsetYReturn);
-
-extern String
-_DtDndGetHostName(void);
-
-#ifdef DEBUG
-extern void _DtDndPrintTargets(Display*,Atom*,Cardinal);
-extern void _DtDndPrintTransfers(Display*,DtDndTransfer*,Cardinal);
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_DndP_h */
diff --git a/cde/lib/DtSvc/DtUtil1/Dt.h b/cde/lib/DtSvc/DtUtil1/Dt.h
deleted file mode 100644 (file)
index 34d2e91..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: Dt.h /main/12 1999/10/18 14:49:57 samborn $ */
-/* 
- * (c) Copyright 1997, The Open Group 
- */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
- * (c) Copyright 1993,1994,1996 International Business Machines Corp.
- * (c) Copyright 1993-1996 Sun Microsystems, Inc.
- * (c) Copyright 1993,1994,1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef _Dt_Dt_h
-#define _Dt_Dt_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* CDE Version information */
-
-#define DtVERSION              2
-#define DtREVISION             3
-#define DtUPDATE_LEVEL         1
-
-#define DtVERSION_NUMBER       (DtVERSION * 10000 +  \
-                               DtREVISION * 100 + \
-                               DtUPDATE_LEVEL)
-
-#define DtVERSION_STRING "CDE Version 2.3.1a"
-
-
-/* 
- * CDE Version information 
- */
-
-externalref const int DtVersion;
-externalref const char *DtVersionString;
-
-
-/*
- * Functions
- */
-
-extern Boolean DtInitialize(
-               Display         *display,
-               Widget          widget,
-               char            *name,
-               char            *tool_class);
-
-extern Boolean DtAppInitialize(
-               XtAppContext    app_context,
-               Display         *display,
-               Widget          widget,
-               char            *name,
-               char            *tool_class);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Dt_h */
diff --git a/cde/lib/DtSvc/DtUtil1/DtHash.h b/cde/lib/DtSvc/DtUtil1/DtHash.h
deleted file mode 100644 (file)
index b374031..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtHash.h /main/5 1996/08/29 15:42:13 cde-dec $ */
-#ifndef _DtHash_h
-#define _DtHash_h
-
-typedef void * DtHashTbl;
-
-DtHashTbl       _DtUtilMakeHash(int size);
-DtHashTbl      _DtUtilMakeIHash(int size);
-void **          _DtUtilGetHash(DtHashTbl tbl, const unsigned char * key);
-void **         _DtUtilFindHash(DtHashTbl tbl,const unsigned char * key);
-void *                   _DtUtilDelHash(DtHashTbl tbl, const unsigned char * key);
-int                  _DtUtilOperateHash(DtHashTbl tbl, void (*op_func)(), void * usr_arg);
-void                 _DtUtilDestroyHash(DtHashTbl tbl, int (*des_func)(), void * usr_arg);
-
-typedef void (*DtHashOperateFunc)();
-typedef int  (*DtHashDestroyFunc)();
-
-#endif /* _DtHash_h */
-
-
-
-
-
-
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil1/DtShmDb.h b/cde/lib/DtSvc/DtUtil1/DtShmDb.h
deleted file mode 100644 (file)
index ff2709d..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtShmDb.h /main/4 1996/05/09 04:22:30 drk $ */
-#ifndef DtShmDb_h
-#define DtShmDb_h
-
-/*
-  this include file provides prototypes for the various
-  shared memory database routines
-  */
-
-typedef void *         DtShmProtoStrtab;
-typedef void *         DtShmProtoInttab;
-typedef void *         DtShmProtoIntList;
-
-typedef const void *   DtShmStrtab;
-typedef const void *   DtShmInttab;
-typedef const int *    DtShmIntList;
-typedef int    DtShmBoson;
-
-/*
-  routines used while building shared memory databases
-  */
-
-DtShmProtoStrtab         _DtShmProtoInitStrtab (int estimated_entries);
-DtShmBoson                _DtShmProtoAddStrtab (DtShmProtoStrtab prototab, const char * string, int * isnew);
-const char *           _DtShmProtoLookUpStrtab (DtShmProtoStrtab prototab, DtShmBoson boson);
-int                      _DtShmProtoSizeStrtab (DtShmProtoStrtab prototab);
-DtShmStrtab              _DtShmProtoCopyStrtab (DtShmProtoStrtab prototab, void * dataspace);
-int                   _DtShmProtoDestroyStrtab (DtShmProtoStrtab prototab);
-
-DtShmProtoInttab         _DtShmProtoInitInttab (int estimated_entries);
-int                       _DtShmProtoAddInttab (DtShmProtoInttab prototab, unsigned int keyin, int datain);
-int    *               _DtShmProtoLookUpInttab (DtShmProtoInttab prototab, unsigned int keyin);
-int                      _DtShmProtoSizeInttab (DtShmProtoInttab prototab);
-DtShmInttab              _DtShmProtoCopyInttab (DtShmProtoInttab prototab, void * dataspace);
-int                   _DtShmProtoDestroyInttab (DtShmProtoInttab prototab);
-
-
-DtShmProtoIntList        _DtShmProtoInitIntLst (int estimated_entries);
-int    *                  _DtShmProtoAddIntLst (DtShmProtoIntList protolist, int size, int * index_value);
-int                      _DtShmProtoSizeIntLst (DtShmProtoIntList protolist);
-DtShmIntList             _DtShmProtoCopyIntLst (DtShmProtoIntList protolist, void * dataspace);
-int                   _DtShmProtoDestroyIntLst (DtShmProtoIntList protolist);
-
-
-/*
-  run-time routines once shared memory area is built
-  */
-
-DtShmBoson                    _DtShmStringToBoson (DtShmStrtab tab, const char * string);
-const char *                  _DtShmBosonToString (DtShmStrtab tab, DtShmBoson boson);
-const int *              _DtShmFindIntTabEntry (DtShmInttab tab, unsigned int key);
-
-#endif /* DtShmDb_h */
-
diff --git a/cde/lib/DtSvc/DtUtil1/Dts.h b/cde/lib/DtSvc/DtUtil1/Dts.h
deleted file mode 100644 (file)
index 273dc32..0000000
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Dts.h /main/5 1996/03/05 13:30:59 drk $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Dts_h
-#define _Dt_Dts_h
-
-#include <sys/stat.h>
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Constants
- */
-
-#define        DtDTS_DC_NAME                   "DATA_CRITERIA"
-#define        DtDTS_NAME_PATTERN              "NAME_PATTERN"
-#define        DtDTS_PATH_PATTERN              "PATH_PATTERN"
-#define        DtDTS_CONTENT                   "CONTENT"
-#define        DtDTS_MODE                      "MODE"
-#define        DtDTS_LINK_PATH                 "LINK_PATH"
-#define        DtDTS_LINK_NAME                 "LINK_NAME"
-#define        DtDTS_DATA_ATTRIBUTES_NAME      "DATA_ATTRIBUTES_NAME"
-
-#define        DtDTS_DT_RECURSIVE_LINK         "RECURSIVE_LINK"
-#define        DtDTS_DT_BROKEN_LINK            "BROKEN_LINK"
-#define        DtDTS_DT_UNKNOWN                "UNKNOWN"
-
-#define        DtDTS_DA_IS_SYNTHETIC           "IS_SYNTHETIC"
-#define        DtDTS_DA_LABEL                  "LABEL"
-#define        DtDTS_DA_NAME                   "DATA_ATTRIBUTES"
-#define        DtDTS_DA_DESCRIPTION            "DESCRIPTION"
-#define        DtDTS_DA_DATA_HOST              "DATA_HOST"
-#define        DtDTS_DA_ICON                   "ICON"
-#define        DtDTS_DA_INSTANCE_ICON          "INSTANCE_ICON"
-#define        DtDTS_DA_PROPERTIES             "PROPERTIES"
-#define        DtDTS_DA_ACTION_LIST            "ACTIONS"
-#define DtDTS_DA_NAME_TEMPLATE         "NAME_TEMPLATE"
-#define DtDTS_DA_MODE_TEMPLATE         "MODE_TEMPLATE"
-#define        DtDTS_DA_MOVE_TO_ACTION         "MOVE_TO_ACTION"
-#define        DtDTS_DA_COPY_TO_ACTION         "COPY_TO_ACTION"
-#define        DtDTS_DA_LINK_TO_ACTION         "LINK_TO_ACTION"
-#define        DtDTS_DA_IS_TEXT                "IS_TEXT"
-#define        DtDTS_DA_MEDIA                  "MEDIA"
-#define        DtDTS_DA_MIME_TYPE              "MIME_TYPE"
-#define        DtDTS_DA_MIME_TO_MEDIA_FILTER   "MIME_TO_MEDIA_FILTER"
-#define        DtDTS_DA_MEDIA_TO_MIME_FILTER   "MEDIA_TO_MIME_FILTER"
-#define        DtDTS_DA_X400_TYPE              "X400_TYPE"
-#define        DtDTS_DA_X400_TO_MEDIA_FILTER   "X400_TO_MEDIA_FILTER"
-#define        DtDTS_DA_MEDIA_TO_X400_FILTER   "MEDIA_TO_X400_FILTER"
-#define        DtDTS_DA_IS_ACTION              "IS_ACTION"
-#define        DtDTS_DA_IS_EXECUTABLE          "IS_EXECUTABLE"
-
-#define        DtDTS_DT_DIR    ".DtDirDataType"
-
-
-/*
- * Types
- */
-
-typedef        struct  _DtDtsAttribute
-{
-       char    *name;
-       char    *value;
-} DtDtsAttribute;
-
-
-/*
- * Functions
- */
-
-extern void DtDtsLoadDataTypes(void);
-extern void DtDtsRelease(void);
-
-extern char *DtDtsDataToDataType(
-               const char              *filepath,
-               const void              *buffer,
-               const int               size,
-               const struct stat       *stat_buff,
-               const char              *link_name,
-               const struct stat       *link_stat_buff,
-               const char              *opt_name);
-
-extern char *DtDtsFileToDataType(
-               const char              *filepath);
-
-extern char *DtDtsFileToAttributeValue(
-               const char              *filepath,
-               const char              *attr);
-
-extern DtDtsAttribute **DtDtsFileToAttributeList(
-               const char              *filepath);
-
-extern char *DtDtsBufferToDataType(
-               const void              *buffer,
-               const int               size,
-               const char              *opt_name);
-
-extern char *DtDtsBufferToAttributeValue(
-               const void              *buffer,
-               const int               size,
-               const char              *attr,
-               const char              *opt_name);
-
-extern DtDtsAttribute  **DtDtsBufferToAttributeList(
-               const void              *buffer,
-               const int               size,
-               const char              *opt_name);
-
-extern char *DtDtsDataTypeToAttributeValue(
-               const char              *datatype,
-               const char              *attr,
-               const char              *opt_name);
-
-extern DtDtsAttribute  **DtDtsDataTypeToAttributeList(
-               const char              *datatype,
-               const char              *opt_name);
-
-extern void DtDtsFreeDataTypeNames(
-               char                    **namelist);
-
-extern void DtDtsFreeAttributeList(
-               DtDtsAttribute          **attr_list);
-
-extern void DtDtsFreeAttributeValue(
-               char                    *attr_value);
-
-extern void DtDtsFreeDataType(
-               char                    *datatype);
-
-extern char **DtDtsDataTypeNames(void);
-
-extern char **DtDtsFindAttribute(
-               const char              *name,
-               const char              *value);
-
-extern char *DtDtsSetDataType(
-               const char              *filepath,
-               const char              *datatype,
-               const int               override);
-
-extern int DtDtsDataTypeIsAction(
-               const char              *datatype);
-
-extern Boolean DtDtsIsTrue(
-               const char              *str);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif  /* _Dt_Dts_h */
diff --git a/cde/lib/DtSvc/DtUtil1/DtsDb.h b/cde/lib/DtSvc/DtUtil1/DtsDb.h
deleted file mode 100644 (file)
index 03fb5b2..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/*
- *+SNOTICE
- *
- *     $XConsortium: DtsDb.h /main/5 1996/08/28 14:32:17 rswiston $
- *
- *     RESTRICTED CONFIDENTIAL INFORMATION:
- *     
- *     The information in this document is subject to special
- *     restrictions in a confidential disclosure agreement bertween
- *     HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
- *     document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
- *     Sun's specific written approval.  This documment and all copies
- *     and derivative works thereof must be returned or destroyed at
- *     Sun's request.
- *
- *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
- *
- *+ENOTICE
- */
-#ifndef DT_DTS_DB_H
-#define DT_DTS_DB_H
-
-#include <X11/Xresource.h>
-#include <Dt/DbReader.h>
-
-typedef int    OtBoolean;
-
-/* typedefs for casting comparison functions if needed */
-typedef        int     (*_DtDtsDbFieldCompare)(DtDtsDbField **fld1, DtDtsDbField **fld2);
-
-/* entry of a list of attribute/pairs */
-typedef        struct
-{
-       XrmQuark                recordName;
-       _DtDtsDbFieldCompare    compare;
-       long                    pathId;
-       int                     seq;
-       int                     fieldCount;
-       DtDtsDbField            **fieldList;
-} DtDtsDbRecord;
-
-/* typedefs for casting record comparison functions if needed */
-typedef        int     (*_DtDtsDbRecordCompare)(DtDtsDbRecord **rec1, DtDtsDbRecord **rec2);
-
-/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE 
-       This is a private Structure to the DtDtsDb component.
-*/
-typedef        struct
-{
-       char                    *databaseName;
-       _DtDtsDbRecordCompare   compare;
-       int                     recordCount;
-       DtDtsDbRecord           **recordList;
-        unsigned long           ActionSequenceNumber;
-} DtDtsDbDatabase;
-
-/* for the mmaped database this the use_in_memory_db variable is used
-   to call the old API while the database is being built and is set to
-   false when the mmaped versions are being accessed.
-*/
-
-extern int     use_in_memory_db;
-
-/*
- *  adds a new database to the list of databases -- returns a pointer to the
- *  new database.  If a database of the given name already exists it returns
- *  a pointer to that database.
- */
-extern DtDtsDbDatabase         *_DtDtsDbAddDatabase( char *dbname );
-
-/* returns the handle for the database where name is the Database name */
-extern DtDtsDbDatabase         *_DtDtsDbGet(char *name);
-extern char                    **_DtDtsDbListDb(void);
-
-/* Record Sort function:
- * sorts the specified database, usually obtained from _DtDtsDbGet(), in the
- * order specified by the comparison function. If (*compare) == 0 then
- * _DtDtsDbCompareRecordNames() is used as the (*compare) function.
- */
-extern void            _DtDtsDbRecordSort(DtDtsDbDatabase *database, 
-                                       _DtDtsDbRecordCompare compare);
-/* Field Sort function:
- * sorts the specified Record in the order specified by the comparison function
- * If (*compare) == 0 then _DtDtsDbCompareFieldNames() is used as the
- * (*compare) function.
- */
-extern void            _DtDtsDbFieldSort(DtDtsDbRecord *record,
-                                       _DtDtsDbFieldCompare compare);
-
-/* Name Comparison functions:
- * These routines can be passed in to the corresponding sort function to
- * sort by name.
- *
- */
-extern int _DtDtsDbCompareRecordNames(DtDtsDbRecord **entry1, DtDtsDbRecord **entry2);
-extern int _DtDtsDbCompareFieldNames(DtDtsDbField **entry1, DtDtsDbField **entry2);
-
-/* retrieves the Record that matches the specified entry from the record */
-extern DtDtsDbField    *_DtDtsDbGetField(DtDtsDbRecord *record,
-                                       char *value);
-
-/* retrieves the entry of the specified entry from the specified database */
-extern DtDtsDbRecord   *_DtDtsDbGetRecord(DtDtsDbDatabase *database,
-                                       DtDtsDbRecord *value);
-
-/* Get By Name functions:
- * retrieves the entry of the specified name from the specified database
- * ** IF ** the _DtDtsDb*Sort routine has been called with the corresponding
- * _DtDtsDbCompare*Name comparison function. Otherwise use the standard
- * _DtDtsDbGet* functions. 
-*/
-extern char *_DtDtsDbGetFieldByName(DtDtsDbRecord *record, char *name);
-extern DtDtsDbRecord *_DtDtsDbGetRecordByName(DtDtsDbDatabase *database, char *name);
-
-extern DtDtsDbRecord *_DtDtsDbAddRecord(DtDtsDbDatabase *db);
-
-extern DtDtsDbField *_DtDtsDbAddField(DtDtsDbRecord *rec);
-
-extern int     _DtDtsDbDeleteDb(DtDtsDbDatabase *db);
-extern int     _DtDtsDbDeleteRecord(DtDtsDbRecord *rec, DtDtsDbDatabase *db);
-extern int     _DtDtsDbDeleteRecords(DtDtsDbDatabase *db);
-extern int     _DtDtsDbDeleteField(DtDtsDbField *fld, DtDtsDbRecord *rec);
-extern int     _DtDtsDbDeleteFields(DtDtsDbRecord *rec);
-
-#endif
-
diff --git a/cde/lib/DtSvc/DtUtil1/DtsMM.h b/cde/lib/DtSvc/DtUtil1/DtsMM.h
deleted file mode 100644 (file)
index 48ad0cf..0000000
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtsMM.h /main/8 1996/08/28 14:27:26 rswiston $ */
-/*
- *
- *     RESTRICTED CONFIDENTIAL INFORMATION:
- *     
- *
- *     Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
- *
- *+ENOTICE
- */
-#ifndef DT_DTS_MM_H
-#define DT_DTS_MM_H
-
-#include <stdio.h>
-#include <Dt/DtShmDb.h>
-#include <X11/Intrinsic.h>
-#include "Dt/DbReader.h"
-
-#define        DTDTSDB_TMPDATABASENAME "%s/.dt/.tmp_dt_db_cache.%s\0"
-#define        DTDTSDB_DATABASENAME    "%s/.dt/.dt_db_cache.%s\0"
-#define        _DTDTSMMTEMPFILE        "dtdbcache_"
-
-/*
- * NOTE: _DTDTSMMTEMPDIR affects the location of the dtdbcache
- * file, and therefore affects the Xsession.src, Xreset.src, and
- * Xstartup.src scripts in dtlogin/config.
- */
-#define _DTDTSMMTEMPDIR        "/tmp"
-
-typedef        int     DtDtsMMSeqNo;           /* the order it occures in db */
-typedef        int     DtDtsMMFieldCount;      /* number of fields in record */
-typedef        int     DtDtsMMRecordCount;     /* number of records in field */
-typedef        int     DtDtsMMDataBaseCount;   /* how many databases */
-typedef        int     DtDtsMMFieldStart;      /* index in table where field list starts */
-typedef        int     DtDtsMMRecordStart;     /* index in table where record list starts */
-typedef        int     DtDtsMMDataBaseStart;   /* index in table where database list starts */
-typedef        int     DtDtsMMIndexOffset;
-typedef        int     DtDtsMMNameIndex;
-typedef        int     DtDtsMMPathHash;
-
-typedef        struct
-{
-       DtDtsMMPathHash         pathhash;       /* hash of dir. we visit */
-       DtDtsMMDataBaseCount    num_db;         /* number of databases */
-       DtDtsMMDataBaseStart    db_offset;      /* index to databases */
-       DtDtsMMNameIndex        name_list_offset;       /* index to name list */
-       DtDtsMMNameIndex        no_name_offset;         /* index to nonunique names */
-       DtDtsMMNameIndex        buffer_start_index;     /* index to list of buffers */
-       DtDtsMMIndexOffset      str_tbl_offset;         /* index to table of strings */
-       DtDtsMMIndexOffset      files_count;            /* number of loaded files */
-       DtDtsMMIndexOffset      files_offset;           /* index to list of loaded files */
-       DtDtsMMIndexOffset      mtimes_offset;  /* index to modified times of files */
-} DtDtsMMHeader;
-
-/* one set of attribute/pair */
-typedef        struct
-{
-       DtShmBoson              fieldName;      /* name of attribute */
-       DtShmBoson              fieldValue;     /* value of attribute */
-} DtDtsMMField;
-
-/* typedefs for casting comparison functions if needed */
-typedef        int     (*_DtDtsMMFieldCompare)(DtDtsMMField *fld1, DtDtsMMField *fld2);
-
-/* entry of a list of attribute/pairs */
-typedef        struct
-{
-       DtShmBoson              recordName;     /* name of this entry */
-       DtShmBoson              pathId;         /* file entry is located in */
-       DtDtsMMSeqNo            seq;            /* sequence this got loaded */
-       DtDtsMMFieldCount       fieldCount;     /* number of fields in record */
-       DtDtsMMFieldStart       fieldList;      /* index to field table */
-} DtDtsMMRecord;
-
-/* typedefs for casting record comparison functions if needed */
-typedef        int     (*_DtDtsMMRecordCompare)(DtDtsMMRecord *rec1, DtDtsMMRecord *rec2);
-
-/* a "database" of a collection of entrys (i.e. OBJECT-TYPE, ACTION, FILE-TYPE 
-       This is a private Structure to the DtDtsMM component.
-*/
-typedef        struct
-{
-       DtShmBoson              databaseName;   /* name of database */
-       DtDtsMMIndexOffset      nameIndex;      /* index for DataCriteria quick find */
-       DtDtsMMRecordCount      recordCount;    /* number of records */
-       DtDtsMMRecordStart      recordList;     /* index to records table */
-} DtDtsMMDatabase;
-
-
-/* Db Internal pointers */
-int *                  _DtDtsMMGetDCNameIndex(int *size);
-int *                  _DtDtsMMGetBufferIndex(int *size);
-int *                  _DtDtsMMGetNoNameIndex(int *size);
-void *                 _DtDtsMMGetPtr(int index);
-DtShmInttab            _DtDtsMMGetFileList(void);
-int                    _DtDtsMMGetPtrSize(int index);
-int                    _DtDtsMMInit(int);
-void                   _DtDtsMMPrint(FILE *org_fd);
-int                    _DtDtsMMCreateDb(DtDirPaths *dirs, const char *CacheFile, int override);
-int                    _DtDtsMMCreateFile(DtDirPaths *dirs, const char *CacheFile);
-char *                 _DtDtsMMCacheName(int);
-int                    _DtDtsMMapDB(const char *CacheFile);
-
-const char *           _DtDtsMMBosonToString(DtShmBoson boson);
-DtShmBoson             _DtDtsMMStringToBoson(const char *string);
-
-extern int     use_in_memory_db;
-
-
-/* returns the handle for the database where name is the Database name */
-extern DtDtsMMDatabase         *_DtDtsMMGet(const char *name);
-extern char                    **_DtDtsMMListDb(void);
-
-/* FIXME: document */
-extern int *_DtDtsMMGetDbName(DtDtsMMDatabase *db, DtShmBoson boson);
-
-
-/* Name Comparison functions:
- * These routines can be passed in to the corresponding sort function to
- * sort by name.
- *
- */
-extern int _DtDtsMMCompareRecordNames(DtDtsMMRecord *entry1, DtDtsMMRecord *entry2);
-extern int _DtDtsMMCompareFieldNames(DtDtsMMField *entry1, DtDtsMMField *entry2);
-
-/* retrieves the Record that matches the specified entry from the record */
-extern DtDtsMMField    *_DtDtsMMGetField(DtDtsMMRecord *record,
-                                       const char *value);
-extern const char *_DtDtsMMGetFieldByName(DtDtsMMRecord *rec, const char *name);
-
-/* retrieves the entry of the specified entry from the specified database */
-extern DtDtsMMRecord   *_DtDtsMMGetRecord(DtDtsMMDatabase *database,
-                                       DtDtsMMRecord *value);
-extern DtDtsMMRecord   *_DtDtsMMGetRecordByName(DtDtsMMDatabase *database,
-                                       const char *value);
-
-/* Get By Name functions:
- * retrieves the entry of the specified name from the specified database
- * ** IF ** the _DtDtsMM*Sort routine has been called with the corresponding
- * _DtDtsMMCompare*Name comparison function. Otherwise use the standard
- * _DtDtsMMGet* functions. 
-*/
-
-
-char * _DtDtsMMExpandValue(const char *value);
-void   _DtDtsMMSafeFree(char *value);
-int    _DtDtsMMIsMemory(const char *value);
-
-extern DtShmBoson      _DtDtsMMNameStringToBoson(const char *string);
-
-
-#endif /* DT_DTS_MM_H */
diff --git a/cde/lib/DtSvc/DtUtil1/Qualify.h b/cde/lib/DtSvc/DtUtil1/Qualify.h
deleted file mode 100644 (file)
index c500a7f..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*****************************************************************************
- *
- * File:         Qualify.h
- * RCS:          $XConsortium: Qualify.h /main/3 1995/10/26 15:10:03 rswiston $
- * Description:  Public header file for the Qualify routine
- * Project:      DT Runtime Library
- * Language:     C
- * Package:      N/A
- *
- *   (c) Copyright 1993 by Hewlett-Packard Company
- *
- *****************************************************************************/
-
-/*********************************************************************
- * _DtQualifyWithFirst
- *
- * takes:   an unqualified filename like foo.txt, and
- *          a colon-separated list of pathnames, such as 
- *                /etc/dt:/usr/dt/config
- *
- * returns: a fully qualified filename.  Space for the filename
- *          has been allocated off the heap using malloc.  It is 
- *          the responsibility of the calling function to dispose 
- *          of the space using free.
- *
- * example: ...
- *          char * filename;
- *          ...
- *          filename = _DtQualifyWithFirst("configFile",
- *                          "/foo/first/location:/foo/second/choice");
- *          < use filename >
- *          free(filename);
- *
- **********************************************************************/
-
-#ifndef _Dt_Qualify_h
-#define _Dt_Qualify_h
-
-
-#  ifdef __cplusplus
-extern "C" {
-#  endif
-
-extern char * _DtQualifyWithFirst
-  (
-   char *,  /* file to locate */
-   char *   /* list of colon-separated paths in which to look */
-  );
-
-#  ifdef __cplusplus
-}
-#  endif
-
-#endif /* _Dt_Qualify_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/Saver.h b/cde/lib/DtSvc/DtUtil1/Saver.h
deleted file mode 100644 (file)
index d37d7e1..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Saver.h /main/3 1995/10/26 15:10:29 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _dtsaver_h
-#define _dtsaver_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Functions
- */
-
-extern Boolean DtSaverGetWindows(
-                 Display *display,
-                 Window **window,
-                 int *count);
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /*_dtsaver_h*/
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/SaverP.h b/cde/lib/DtSvc/DtUtil1/SaverP.h
deleted file mode 100644 (file)
index bb645d5..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SaverP.h /main/4 1995/10/26 15:10:42 rswiston $ */
-/*                                                                            *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
- * (c) Copyright 1993, 1994 International Business Machines Corp.             *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
- * (c) Copyright 1993, 1994 Novell, Inc.                                      *
- */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        Saver.h
- **
- **   Description
- **   -----------
- **   Variables and declarations needed for
- **   managing external screen savers
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _dtsaverp_h
-#define _dtsaverp_h
-
-/*************************************<->*************************************
- *
- *  _DtSaverStart()
- *
- *
- *  Description:
- *  -----------
- *  Store provided array of windows on root window property
- *  _DT_SAVER_WINDOWS and launch specified screen saver. Screen savers
- *  will attempt to use these windows as drawables.
- *
- *  Inputs:
- *  ------
- *  display - display structure
- *  drawArea - array of widgets to be drawn upon by screen saver
- *  count - number of elements in drawArea array
- *  saverAction - screen saver action to invoke
- *  wAction - action UI widget
- *
- *  Outputs:
- *  -------
- *
- *  Return:
- *  -------
- *  state - pointer to opaque state structure
- *
- *  Comments:
- *  --------
- *  This function uses _DtActionInvoke() to launch an action. As a result,
- *  the caller is responsible for loading and maintaining the action database
- *  using the DtDbLoad() function and procedures. The caller
- *  must call _DtSaverStop() to terminate screen saver
- *
- *************************************<->***********************************/
-
-extern void * _DtSaverStart(Display *, Widget *, int, char *, Widget);
-
-/*************************************<->*************************************
- *
- *  _DtSaverStop()
- *
- *
- *  Description:
- *  -----------
- *  Stop an external screen saver started with DtStartSaver(). Deletes
- * _DT_SAVER_WINDOWS property from root window.
- *
- *  Inputs:
- *  ------
- *  display - display structure
- *  state - state returned from _DtSaverStart()
- *
- *  Outputs:
- *  -------
- *
- *  Return:
- *  -------
- *
- *  Comments:
- *  --------
- *
- *************************************<->***********************************/
-
-extern void _DtSaverStop(Display *, void *);
-
-
-#endif /*_dtsaverp_h*/
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil1/Session.h b/cde/lib/DtSvc/DtUtil1/Session.h
deleted file mode 100644 (file)
index 7256140..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Session.h /main/3 1995/10/26 15:10:56 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Session_h
-#define _Dt_Session_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Functions
- */
-
-extern Boolean DtSessionSavePath(
-               Widget          widget,
-               char            **save_path,
-               char            **save_file);
-
-extern Boolean DtSessionRestorePath(
-               Widget          widget,
-               char            **restore_path,
-               char            *restore_file);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Session_h */
diff --git a/cde/lib/DtSvc/DtUtil1/SessionM.h b/cde/lib/DtSvc/DtUtil1/SessionM.h
deleted file mode 100644 (file)
index 934a93d..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: SessionM.h /main/8 1998/07/30 12:10:49 mgreess $ */
-/*                                                                           
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1993, 1994, 1996 Hewlett-Packard Company                    
- * (c) Copyright 1993, 1994, 1996 International Business Machines Corp.      
- * (c) Copyright 1993, 1994, 1996 Sun Microsystems, Inc.                     
- * (c) Copyright 1993, 1994, 1996 Novell, Inc.                               
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:        SessionM.h
- **
- **  Description:
- **  -----------
- **  Contains all variables needed for SM messaging.  All messages serviced,
- **  and the tool class name for the session manager
- **
- **
- **
- *******************************************************************
- **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
- **  reserved.  Copying or other reproduction of this program      
- **  except for archival purposes is prohibited without prior      
- **  written consent of Hewlett-Packard Company.                    
- ********************************************************************
- **
- **
- *****************************************************************************
- *************************************<+>*************************************/
-#ifndef _SessionM_h
-#define _SessionM_h
-
-/*
- * Include files
- */
-/* If <X11/Intrinsic.h> is included along with this file, <X11/Intrinsic.h>
-   MUST be included first due to "typedef Boolean ..." problems.  The following
-         conditional #define is also part of the solution to this problem. */
-#include <X11/X.h>
-#include <X11/Intrinsic.h>
-
-/*
- * Tool class for the session manager
- */
-#define DtSM_TOOL_CLASS                        "SESSIONMGR"
-
-/*
- * SM_STARTUP_CHANGE an SM_STATE parameters
- */
-#define DtSM_VERBOSE_MODE              1
-#define DtSM_QUIET_MODE                        2
-#define DtSM_ASK_STATE                 0
-#define DtSM_HOME_STATE                        3
-#define DtSM_CURRENT_STATE             4 
-
-
-/*
- * Atoms for session manager/style manager communication
- */
-#define _XA_DT_SM_STM_PROTOCOL                 "_DT_SM_STM_PROTOCOL"
-#define _XA_DT_SM_SAVE_TO_HOME                 "_DT_SM_SAVE_TO_HOME"
-#define _XA_DT_SM_STATE_CHANGE                 "_DT_SM_STATE_CHANGE"
-#define _XA_DT_SM_RESTORE_DEFAULT              "_DT_SM_RESTORE_DEFAULT"
-#define _XA_DT_SM_PREFERENCES                  "_DT_SM_PREFERENCES"
-
-/*
- * Atoms for lock changes
- */
-#define _XA_DT_SM_LOCK_CHANGE          "_DT_SM_LOCK_CHANGE"
-#define CoverScreenMask                (1L<<0)
-#define LockOnTimeoutMask              (1L<<1)
-
-/*
- * Parameters to be sent into session manager
- */
-
-/*
- * Atoms for communicating configuration changes and state
- */
-/*
- * Defines needed for getting/setting the sm window property on the root
- */
-#define PROP_DT_SM_WINDOW_INFO_ELEMENTS     2
-#define _XA_DT_SM_WINDOW_INFO       "_DT_SM_WINDOW_INFO"
-
-/*
- * Defines needed for getting the session manager state off it's window
- */
-#define PROP_DT_SM_STATE_INFO_ELEMENTS     13
-#define _XA_DT_SM_STATE_INFO       "_DT_SM_STATE_INFO"
-
-/*
- * Defines needed for the screen saver list property.
- */
-#define _XA_DT_SM_SAVER_INFO       "_DT_SM_SAVER_INFO"
-
-/*
- * Defines needed for the screen saver property
- */
-#define PROP_DT_SM_SCREEN_INFO_ELEMENTS     5
-#define _XA_DT_SM_SCREEN_INFO       "_DT_SM_SCREEN_INFO"
-
-/*
- * Defines needed for the audio property
- */
-#define PROP_DT_SM_AUDIO_INFO_ELEMENTS     4
-#define _XA_DT_SM_AUDIO_INFO       "_DT_SM_AUDIO_INFO"
-
-/*
- * Defines needed for the keyboard property
- */
-#define PROP_DT_SM_KEYBOARD_INFO_ELEMENTS     3
-#define _XA_DT_SM_KEYBOARD_INFO       "_DT_SM_KEYBOARD_INFO"
-
-/*
- * Define needed for the font info property
- */
-#define _XA_DT_SM_FONT_INFO       "_DT_SM_FONT_INFO"
-
-/*
- * Define needed for the font info property
- */
-#define _XA_DT_SM_POINTER_INFO       "_DT_SM_POINTER_INFO"
-
-/*
- * Define needed for the preeditType info property
- */
-#define _XA_DT_SM_PREEDIT_INFO       "_DT_SM_PREEDIT_INFO"
-
-/*  bit definitions for SmStateInfo.flags */
-#define SM_STATE_NONE          0
-#define SM_STATE_START         (1L << 0)
-#define SM_STATE_CONFIRM       (1L << 1)
-#define SM_STATE_COMPAT        (1L << 2)
-#define SM_STATE_SEND          (1L << 3)
-#define SM_STATE_COVER         (1L << 4)   /* Obsolete */
-#define SM_STATE_LOTOUT                (1L << 5)   /* Obsolete */
-#define SM_STATE_LOTOUTSTAT     (1L << 6)
-
-#define SM_STATE_CYCLETIMEOUT   (1L << 7)
-#define SM_STATE_LOCKTIMEOUT    (1L << 8)
-#define SM_STATE_SAVERTIMEOUT   (1L << 9)
-#define SM_STATE_RANDOM         (1L << 10)
-#define SM_STATE_DISP_SESSION  (1L << 11)
-
-
-#define SM_STATE_ALL   (SM_STATE_START   | SM_STATE_CONFIRM |\
-                        SM_STATE_COMPAT  | SM_STATE_SEND    |\
-                        SM_STATE_COVER   | SM_STATE_LOTOUT  |\
-                        SM_STATE_LOTOUTSTAT | SM_STATE_CYCLETIMEOUT |\
-                         SM_STATE_LOCKTIMEOUT | SM_STATE_SAVERTIMEOUT |\
-                         SM_STATE_RANDOM | SM_STATE_DISP_SESSION)
-
-
-/*
- * typedef statements for structures to be returned
- */
-typedef struct
-{
-    int                 flags;
-    int                 smStartState;
-    int                 smConfirmMode;
-    Boolean     smCompatMode;
-    Boolean     smSendSettings;
-    Boolean     smCoverScreen;    /* Obsolete */
-    Boolean     smLockOnTimeout;  /* Obsolete */
-    Boolean     smLockOnTimeoutStatus;
-    int          smCycleTimeout;
-    int          smLockTimeout;
-    int          smSaverTimeout;
-    Boolean      smRandom;
-    Boolean     smDisplaySpecific;     /* If True, the currently running
-                                          session is for a specific display */
-
-} SmStateInfo;
-
-typedef struct
-{
-    char *saverList;
-} SmSaverInfo;
-
-typedef struct
-{
-    int flags;
-    int smTimeout;
-    int smInterval;
-    int smPreferBlank;
-    int smAllowExp;
-} SmScreenInfo;
-
-typedef struct
-{
-    int flags;
-    int smBellPercent;
-    unsigned int smBellPitch;
-    unsigned int smBellDuration;
-} SmAudioInfo;
-
-
-typedef struct
-{
-    int flags;
-    int smKeyClickPercent;
-    int smGlobalAutoRepeat;
-} SmKeyboardInfo;
-
-/*
- * Function definitions
- */
-extern Status _DtGetSmWindow(Display *, Window, Window *) ;
-extern Status _DtGetSmState(Display *, Window, SmStateInfo *);
-extern Status _DtSetSmState(Display *, Window, SmStateInfo *);
-extern Status _DtGetSmSaver(Display *, Window, SmSaverInfo *);
-extern void   _DtSetSmSaver(Display *, Window, SmSaverInfo *);
-extern Status _DtGetSmScreen(Display *, Window, Atom, SmScreenInfo *);
-extern Status _DtGetSmAudio(Display *, Window, Atom, SmAudioInfo *);
-extern Status _DtGetSmKeyboard(Display *, Window, Atom, SmKeyboardInfo *);
-extern Status _DtGetSmFont(Display *, Window, Atom, char **);
-extern Status _DtGetSmPointer(Display *, Window, Atom, char **);
-extern Status _DtGetSmPreedit(Display *, Window, Atom, char **);
-
-#endif /* _SessionM_h */
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil1/SessionP.h b/cde/lib/DtSvc/DtUtil1/SessionP.h
deleted file mode 100644 (file)
index e685dc5..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: SessionP.h /main/5 1998/07/30 12:11:06 mgreess $ */
-/*                                                                            *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
- * (c) Copyright 1993, 1994 International Business Machines Corp.             *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
- * (c) Copyright 1993, 1994 Novell, Inc.                                      *
- */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:        SessionP.h
- **
- **  Description:  Private header for Session Management routines
- **  -----------
- **
- *******************************************************************
- **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
- **  reserved.  Copying or other reproduction of this program      
- **  except for archival purposes is prohibited without prior      
- **  written consent of Hewlett-Packard Company.                    
- ********************************************************************
- **
- **
- **
- *****************************************************************************
- *************************************<+>*************************************/
-
-#ifndef _SessionP_h
-#define _SessionP_h
-
-/*
- *  include statements
- */
-
-/*
- * define statements
- */
-
-/*
- * typedef statements
- */
-
-/*
- * Definition for the _DT_SM_WINDOW_INFO property. 
- */
-typedef struct
-{
-    unsigned long flags;
-    unsigned long smWindow;
-} PropDtSmWindowInfo;
-
-/*
- * Definition for the _DT_SM_STATE_INFO property
- */
-typedef struct
-{
-    unsigned long flags;
-    unsigned long smStartState;
-    unsigned long smConfirmMode;
-    unsigned long smCompatMode;
-    unsigned long smSendSettings;
-    unsigned long smCoverScreen;
-    unsigned long smLockOnTimeout;
-    unsigned long smLockOnTimeoutStatus;
-    unsigned long smCycleTimeout;
-    unsigned long smLockTimeout;
-    unsigned long smSaverTimeout;
-    unsigned long smRandom;
-    unsigned long smDisplaySpecific;
-} PropDtSmStateInfo;
-
-/*
- * Definition for the _DT_SM_SCREEN_INFO property
- */
-typedef struct
-{
-    unsigned long flags;
-    unsigned long smTimeout;
-    unsigned long smInterval;
-    unsigned long smPreferBlank;
-    unsigned long smAllowExp;
-} PropDtSmScreenInfo;
-
-/*
- * Definition for the _DT_SM_AUDIO_INFO property
- */
-typedef struct
-{
-    unsigned long flags;
-    unsigned long smBellPercent;
-    unsigned long smBellPitch;
-    unsigned long smBellDuration;
-} PropDtSmAudioInfo;
-
-
-/*
- * Definition for the _DT_SM_KEYBOARD_INFO property
- */
-typedef struct
-{
-    unsigned long flags;
-    unsigned long smKeyClickPercent;
-    unsigned long smGlobalAutoRepeat;
-} PropDtSmKeyboardInfo;
-
-
-#endif /* _SessionP_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil1/Wsm.h b/cde/lib/DtSvc/DtUtil1/Wsm.h
deleted file mode 100644 (file)
index 7e37b3a..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Wsm.h /main/5 1996/05/20 16:08:50 drk $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
- * (c) Copyright 1993,1994,1996 International Business Machines Corp.
- * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
- * (c) Copyright 1993,1994,1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef _Dt_Wsm_h
-#define _Dt_Wsm_h
-
-#include <X11/Intrinsic.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-#define DtWSM_REASON_ADD       0
-#define DtWSM_REASON_DELETE    1
-#define DtWSM_REASON_BACKDROP  2
-#define DtWSM_REASON_TITLE     3
-#define DtWSM_REASON_CURRENT   4
-
-
-/*
- * Types
- */
-
-/* Workspace property information */
-
-typedef struct _DtWsmWorkspaceInfo {
-       Atom            workspace;
-       unsigned long   bg;
-       unsigned long   fg;
-       Atom            backdropName;
-       int             colorSetId;
-       char            *pchTitle;
-       Window          *backdropWindows;
-       int             numBackdropWindows;
-} DtWsmWorkspaceInfo;
-
-
-/* Workspace modified callback reasons */
-
-typedef int DtWsmWsReason;
-
-/* Workspace callback context (opaque) */
-
-typedef struct _DtWsmCBContext * DtWsmCBContext;
-
-/* Workspace callback prototype */
-
-typedef void (*DtWsmWsChangeProc)(
-               Widget          widget,
-               Atom            aWs,
-               XtPointer       client_data);
-
-/* Workspace modified callback prototype */
-
-typedef void (*DtWsmWsModifiedProc)(
-               Widget          widget,
-               Atom            aWs,
-               DtWsmWsReason   reason,
-               XtPointer       client_data);
-
-
-/*
- * Functions
- */
-
-extern void DtWsmAddWorkspaceFunctions(
-               Display         *display,
-                Window         client);
-
-extern void DtWsmRemoveWorkspaceFunctions(
-               Display         *display,
-               Window          client);
-
-extern int DtWsmGetWorkspaceInfo(
-               Display         *display,
-               Window          root,
-               Atom            aWS,
-               DtWsmWorkspaceInfo **ppWsInfo);
-
-extern void DtWsmFreeWorkspaceInfo(
-               DtWsmWorkspaceInfo *pWsInfo);
-
-extern int DtWsmGetWorkspaceList(
-               Display         *display,
-               Window          root,
-               Atom            **ppWorkspaceList,
-               int             *pNumWorkspaces);
-
-extern int DtWsmGetCurrentWorkspace(
-               Display         *display,
-               Window          root,
-               Atom            *paWorkspace);
-
-extern DtWsmCBContext DtWsmAddCurrentWorkspaceCallback(
-               Widget          widget,
-               DtWsmWsChangeProc ws_change,
-               XtPointer       client_data);
-
-extern void DtWsmRemoveWorkspaceCallback(
-               DtWsmCBContext  pCbCtx);
-
-extern int DtWsmSetCurrentWorkspace(
-               Widget          widget,
-               Atom            aWs);
-
-extern int DtWsmGetWorkspacesOccupied(
-               Display         *display,
-               Window          window,
-               Atom            **ppaWs,
-               unsigned long   *pNumWs);
-
-extern void DtWsmSetWorkspacesOccupied(
-               Display         *display,
-               Window          window,
-               Atom            *pWsHints,
-               unsigned long   numHints);
-
-extern void DtWsmOccupyAllWorkspaces(
-               Display         *display,
-               Window          window);
-
-extern DtWsmCBContext DtWsmAddWorkspaceModifiedCallback(
-               Widget          widget,
-               DtWsmWsModifiedProc ws_modified,
-               XtPointer       client_data);
-
-extern Window DtWsmGetCurrentBackdropWindow(
-               Display         *display,
-               Window          root);
-
-extern int DtWsmSetWorkspaceTitle(
-               Widget          widget,
-               Atom            aWs,
-               char            *title);
-
-extern int DtWsmChangeBackdrop(
-               Display         *display,
-               Window          root,
-                char            *path,
-                Pixmap          pixmap);
-
-extern int DtWsmAddWorkspace(
-               Widget          widget,
-               char            *title);
-
-extern int DtWsmDeleteWorkspace(
-               Widget          widget,
-               Atom            aWs);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Wsm_h */
diff --git a/cde/lib/DtSvc/DtUtil1/WsmM.h b/cde/lib/DtSvc/DtUtil1/WsmM.h
deleted file mode 100644 (file)
index a9bd9ee..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*****************************<+>*************************************
- *********************************************************************
- **
- **   File:     WsmM.h
- **
- **   RCS:     $XConsortium: WsmM.h /main/3 1995/10/26 15:14:36 rswiston $
- **   Project:  DT Workspace Manager
- **
- **   Description: Defines parameters necessary for messaging with
- **                the workspace manager.
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- **
- *********************************************************************
- *****************************<+>*************************************/
-#ifndef _Dt_WsmM_h
-#define _Dt_WsmM_h
-
-/*
- * Messaging definitions
- */
-
-/* Workspace manager tool class (for old messages) */
-#define DtWM_TOOL_CLASS                        "WORKSPACEMGR"
-
-/* Workspace manager tool class (for new messages) */
-#define DtWSM_TOOL_CLASS               "WORKSPACE_MANAGER"
-
-/* Workspace manager tool class (for front panel messages) */
-#define DtFP_TOOL_CLASS                "FRONTPANEL"
-
-/* Request from dtstyle to change backdrop */
-#define DtWM_BACKDROP_CHANGE           "BACKDROP_CHANGE"
-
-/* Request from session manager to unlock the display (depress button) */
-#define DtWM_UNLOCK_DISPLAY            "UNLOCK_DISPLAY"
-
-/* Request from session manager to cancel an exit (depress button) */
-#define DtWM_CANCEL_EXIT               "CANCEL_EXIT"
-
-/* Request from session manager to retore the front panel to default state */
-#define DtWM_RESTORE_PANEL             "RESTORE_PANEL"
-
-/* Notification from Workspace manager of a new workspace */
-#define DtWSM_NEW_WORKSPACE            "ACTIVE_WORKSPACE"
-
-#define DtWSM_NEW_WORKSPACE_ARG_NAME   0
-#define DtWSM_NEW_WORKSPACE_ARG_ATOM   1
-
-/* Request to set the current workspace */
-#define DtWSM_SET_WORKSPACE            "SET_WORKSPACE"
-
-#define DtWSM_SET_WORKSPACE_ARG_ATOM   0
-
-/* Request to change the title of a workspace */
-#define DtWSM_SET_WORKSPACE_TITLE      "SET_WORKSPACE_TITLE"
-
-#define DtWSM_SET_WORKSPACE_TITLE_ARG_ATOM     0
-#define DtWSM_SET_WORKSPACE_TITLE_ARG_TITLE    1
-
-/* Request to add a workspace */
-#define DtWSM_ADD_WORKSPACE            "ADD_WORKSPACE"
-
-#define DtWSM_ADD_WORKSPACE_ARG_TITLE          0
-
-/* Request to delete a workspace */
-#define DtWSM_DELETE_WORKSPACE         "DELETE_WORKSPACE"
-
-#define DtWSM_DELETE_WORKSPACE_ARG_ATOM                0
-
-/* Notification from Workspace manager of a modified workspace */
-#define DtWSM_MODIFY_WORKSPACE         "MODIFY_WORKSPACE"
-
-#define DtWSM_MODIFY_WORKSPACE_ARG_ATOM                0
-#define DtWSM_MODIFY_WORKSPACE_ARG_TYPE                1
-
-#define DtWSM_MODIFY_WORKSPACE_TYPE_ADD                0
-#define DtWSM_MODIFY_WORKSPACE_TYPE_DELETE     1
-#define DtWSM_MODIFY_WORKSPACE_TYPE_BACKDROP   2
-#define DtWSM_MODIFY_WORKSPACE_TYPE_TITLE      3
-#define DtWSM_MODIFY_WORKSPACE_TYPE_ACTIVE     4
-
-/* Notification from Workspace manager of a modified workspace */
-#define DtWSM_MARQUEE_SELECTION                "MARQUEE_SELECTION"
-
-#define DtWSM_MARQUEE_SELECTION_ARG_TYPE       0
-#define DtWSM_MARQUEE_SELECTION_ARG_X          1
-#define DtWSM_MARQUEE_SELECTION_ARG_Y          2
-#define DtWSM_MARQUEE_SELECTION_ARG_WIDTH      3
-#define DtWSM_MARQUEE_SELECTION_ARG_HEIGHT     4
-
-#define DtWSM_MARQUEE_SELECTION_TYPE_BEGIN     1
-#define DtWSM_MARQUEE_SELECTION_TYPE_CONTINUE  2
-#define DtWSM_MARQUEE_SELECTION_TYPE_END       3
-#define DtWSM_MARQUEE_SELECTION_TYPE_CANCEL    4
-
-/*
- * Macros to set and fetch argument fields into a message
- *
- * (NOTE: Since sending the request breaks out the zero'th 
- *  field, there is a difference of one in these two macros.)
- */
-#define DtWSM_SET_FIELD(fields,ix,value) ((fields)[(ix)]=(value))
-#define DtWSM_GET_FIELD(fields,ix) ((fields)[((ix)+1)])
-
-
-#endif /* _Dt_WsmM_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil1/WsmP.h b/cde/lib/DtSvc/DtUtil1/WsmP.h
deleted file mode 100644 (file)
index 9d32e11..0000000
+++ /dev/null
@@ -1,848 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: WsmP.h /main/8 1996/05/20 16:08:59 drk $ */
-
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:     WsmP.h
- **
- **   Project:  DT Workspace Manager
- **
- **   Description: Defines PRIVATE properties, structures, and 
- **               parameters used for communication with the 
- **               workspace manager.
- **
- ** (c) Copyright 1996 Digital Equipment Corporation.
- ** (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
- ** (c) Copyright 1993,1994,1996 International Business Machines Corp.
- ** (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
- ** (c) Copyright 1993,1994,1996 Novell, Inc. 
- ** (c) Copyright 1996 FUJITSU LIMITED.
- ** (c) Copyright 1996 Hitachi.
- **
- ****************************************************************************
- ************************************<+>*************************************/
-#ifndef _Dt_WsmP_h
-#define _Dt_WsmP_h
-#include <Dt/Wsm.h>
-#include <X11/Intrinsic.h>
-#include <Dt/Service.h>
-#include <Tt/tt_c.h>
-
-/**********************************************************************
- * Workspace atom names 
- **********************************************************************/
-#define _XA_DT_MARQUEE_SELECTION       "_DT_MARQUEE_SELECTION"
-#define _XA_DT_WORKSPACE_EMBEDDED_CLIENTS      \
-                                       "_DT_WORKSPACE_EMBEDDED_CLIENTS"
-#define _XA_DT_WM_REQUEST              "_DT_WM_REQUEST"
-#define _XA_DT_WORKSPACE_HINTS         "_DT_WORKSPACE_HINTS"
-#define _XA_DT_WORKSPACE_PRESENCE      "_DT_WORKSPACE_PRESENCE"
-#define _XA_DT_WORKSPACE_INFO          "_DT_WORKSPACE_INFO"
-#define _XA_DT_WM_HINTS                        "_DT_WM_HINTS"
-#define _XA_DT_WORKSPACE_LIST          "_DT_WORKSPACE_LIST"
-#define _XA_DT_WORKSPACE_CURRENT       "_DT_WORKSPACE_CURRENT"
-
-
-/**********************************************************************
- * Name to request ``all'' workspaces (for a persistent window)
- **********************************************************************/
-
-#define _XA_DT_WORKSPACE_ALL           "all"
-
-
-/**********************************************************************
- * Workspace function definitions 
- **********************************************************************/
-#define DtWM_FUNC_OCCUPY_WS            DtWM_FUNCTION_OCCUPY_WS
-#define DtWM_FUNC_ALL                  DtWM_FUNC_OCCUPY_WS
-
-/**********************************************************************
- * Workspace property information
- **********************************************************************/
-
-/* 
- *
- *  NOTE: The "(client -> dtwm)" indication calls out the direction
- *        of information flow. In this case, the client writes the
- *        property and dtwm reads the property.
- *
- *
- *  _DT_WORKSPACE_HINTS                (client -> dtwm)
- *
- *  This property is a list of atoms placed by a client on its 
- *  top level window(s). Each atom is an "interned" string name
- *  for a workspace. The workspace manager looks at this property
- *  when it manages the window (e.g. when the window is mapped)
- *  and will place the window in the workspaces listed.
- *
- *  _DT_WORKSPACE_PRESENCE     (dtwm -> client)
- *
- *  This property is a list of atoms placed on a client by dtwm.
- *  Each atom is an "interned" string name for a workspace. This 
- *  property lists the workspaces that this client lives in.
- *
- *  _DT_WORKSPACE_LIST         (dtwm -> clients)
- *
- *  This property is a list of atoms. Each atom represents a 
- *  name of a workspace.  The list is in "order" such that
- *  the first element is for the first workspace and so on.
- *  This proeprty is placed on the mwm ("wmWindow") window.
- *
- *  _DT_WORKSPACE_CURRENT      (dtwm -> clients)
- *
- *  This property is a single atom, representing the current 
- *  workspace. It is updated each time the workspace changes.
- *  This proeprty is placed on the mwm window.
- *
- *  _DT_WORKSPACE_INFO_<name>  (dtwm -> clients)
- *
- *  There is one property of this form for each workspace in
- *  _DT_WORKSPACE_LIST. This property is a sequence of ISO-LATIN1
- *  NULL-terminated strings representing the elements in a
- *  structure. This information was formerly in _DT_WORKSPACE_INFO
- *  but was broken out to allow for extensibility.
- *  This proeprty is placed on the mwm window.
- *
- *  _DT_WM_HINTS       (client -> dtwm)
- *
- *  This property requests specific window/workspace management behavior.
- *  The functions member of the property allows a client to enable or
- *  disable workspace management functions. The behavior member is
- *  used to indicate front panels and slide-ups.
- *
- */
-
-
-/**********************************************************************
- * Property structures
- **********************************************************************/
-
-typedef struct _DtWmHints
-{
-    long       flags;                  /* marks valid fields */
-    long       functions;              /* special dtwm functions */
-    long       behaviors;              /* special dtwm behaviors */
-    Window     attachWindow;           /* (reserved) */
-} DtWmHints;
-
-/* DtWmHints "flags" definitions */
-#define DtWM_HINTS_FUNCTIONS           (1L << 0)
-#define DtWM_HINTS_BEHAVIORS           (1L << 1)
-#define DtWM_HINTS_ATTACH_WINDOW       (1L << 2)       /* (reserved) */
-
-/* DtWmHints "functions" definitions */
-#define DtWM_FUNCTION_ALL              (1L << 0)
-#define DtWM_FUNCTION_OCCUPY_WS                (1L << 16)
-
-/* DtWmHints "behaviors" definitions */
-#define DtWM_BEHAVIOR_PANEL            (1L << 1)
-#define DtWM_BEHAVIOR_SUBPANEL         (1L << 2)
-#define DtWM_BEHAVIOR_SUB_RESTORED     (1L << 3)
-
-/**********************************************************************
- * Session atom names 
- **********************************************************************/
-#define _XA_DT_SESSION_HINTS           "_DT_SESSION_HINTS"
-#define _XA_DT_SAVE_MODE               "_DT_SAVE_MODE"
-#define _XA_DT_RESTORE_MODE            "_DT_RESTORE_MODE"
-#define _XA_DT_RESTORE_DIR             "_DT_RESTORE_DIR"
-#define _XA_DT_SM_WM_PROTOCOL          "_DT_SM_WM_PROTOCOL"
-#define _XA_DT_SM_START_ACK_WINDOWS    "_DT_SM_START_ACK_WINDOWS"
-#define _XA_DT_SM_STOP_ACK_WINDOWS     "_DT_SM_STOP_ACK_WINDOWS"
-#define _XA_DT_WM_WINDOW_ACK           "_DT_WM_WINDOW_ACK"
-#define _XA_DT_WM_EXIT_SESSION         "_DT_WM_EXIT_SESSION"
-#define _XA_DT_WM_LOCK_DISPLAY         "_DT_WM_LOCK_DISPLAY"
-#define _XA_DT_WM_READY                "_DT_WM_READY"
-
-/**********************************************************************
- * Workspace special character definitions 
- **********************************************************************/
-#define DTWM_CH_ESC_NEXT               "\\"
-
-/**********************************************************************
- * Marquee selection callback prototype
- **********************************************************************/
-typedef void (*DtWsmMarqueeSelectionProc) ();
-/*
-    Widget             widget;
-    int                        type;
-    Position           x, y;
-    Dimension          width, height;
-    XtPointer          client_data;
-*/
-
-/**********************************************************************
- * Marquee Select
- **********************************************************************/
-
-#define DT_WSM_MARQUEE_SELECTION_TYPE_BEGIN    1
-#define DT_WSM_MARQUEE_SELECTION_TYPE_CONTINUE 2
-#define DT_WSM_MARQUEE_SELECTION_TYPE_END      3
-#define DT_WSM_MARQUEE_SELECTION_TYPE_CANCEL   4
-
-/**********************************************************************
- * Workspace request definitions 
- *
- * NOTE: These functions do not necessarily match the other
- *       window manager f.* functions!
- **********************************************************************/
-#define DTWM_REQ_CHANGE_BACKDROP       "f.change_backdrop"
-#define DTWM_REQ_RESTART               "f.restart"
-
-/**********************************************************************
- * Workspace request parameter definitions 
- **********************************************************************/
-#define DTWM_REQP_BACKDROP_NONE        "NoBackdrop"
-#define DTWM_REQP_NO_CONFIRM   "-noconfirm"
-
-/**********************************************************************
- * Resource converter definitions
- *
- * NOTE: This has been lifted from mwm. 
- * Please keep syncronized with the current version of mwm/dtwm.
- * (See WmGlobal.h)
- **********************************************************************/
-
-/* icon placement values (iconPlacement, ...): */
-#define ICON_PLACE_LEFT_PRIMARY                (1L << 0)
-#define ICON_PLACE_RIGHT_PRIMARY       (1L << 1)
-#define ICON_PLACE_TOP_PRIMARY         (1L << 2)
-#define ICON_PLACE_BOTTOM_PRIMARY      (1L << 3)
-#define ICON_PLACE_LEFT_SECONDARY      (1L << 4)
-#define ICON_PLACE_RIGHT_SECONDARY     (1L << 5)
-#define ICON_PLACE_TOP_SECONDARY       (1L << 6)
-#define ICON_PLACE_BOTTOM_SECONDARY    (1L << 7)
-#define ICON_PLACE_EDGE                        (1L << 8)
-#define ICON_PLACE_TIGHT               (1L << 9)
-#define ICON_PLACE_RESERVE             (1L << 10)
-
-/**********************************************************************
- * Workspace property information
- **********************************************************************/
-
-/* 
- *
- *  NOTE: The "(client -> dtwm)" indication calls out the direction
- *        of information flow. In this case, the client writes the
- *        property and dtwm reads the property.
- *
- *  _DT_WM_REQUEST     (client -> dtwm)
- *
- *  This property of type string that is used to communication 
- *  function requests to dtwm. This property is placed on the mwm 
- *  window. Dtwm listens for changes to this property and dequeues 
- *  requests off the top of the list. Requests are NULL-terminated
- *  strings in the format:
- *
- *    <req_type> <req_parms> 
- *
- *  Each request ends with a literal '\0' character to insure
- *  separation from the next request. 
- *
- *  Clients must always add requests to the end of the property 
- *  (mode=PropModeAppend). Use of convenience routines is 
- *  recommended since they take care of proper formatting of the 
- *  requests.
- *
- */
-
-
-/**********************************************************************
- * Property structures
- **********************************************************************/
-
-/* Internal form of this property */
-typedef struct _DtWorkspaceHints
-{
-    long       version;        /* indicates structure changes */
-    long       flags;          /* marks valid fields */
-    long       wsflags;        /* special workspace information */
-    long       numWorkspaces;  /* number of workspaces */
-    Atom *     pWorkspaces;    /* list of atoms for workspaces */
-} DtWorkspaceHints;
-
-/* DtWorkspaceHints "flags" definitions */
-#define DT_WORKSPACE_HINTS_WSFLAGS             (1L << 0)
-       /* The following definitions enables both the numWorkspaces
-          and pWorkspaces fields */
-#define DT_WORKSPACE_HINTS_WORKSPACES          (1L << 1)
-
-/* DtWorkspaceHints "wsflags" definitions */
-#define DT_WORKSPACE_FLAGS_OCCUPY_ALL          (1L << 0)
-
-/**********************************************************************
- * Marquee Selection Structures
- **********************************************************************/
-typedef struct _DtMarqueeSelectData
-{
-    long       state;                  /* current property state */
-    Position   x;                      /* NW corner of select area */
-    Position   y;                      /* NW corner of select area */
-    Dimension  width;                  /* size of select area */
-    Dimension  height;                 /* size of select area */
-} DtMarqueeSelectData;
-
-typedef struct _DtMarqueeSelectProp
-{
-    long       state;                  /* current property state */
-    long       x;                      /* NW corner of select area */
-    long       y;                      /* NW corner of select area */
-    long       width;                  /* size of select area */
-    long       height;                 /* size of select area */
-} DtMarqueeSelectProperty;
-
-/**********************************************************************
- * Marquee Selection Definitions
- **********************************************************************/
-#define DT_MARQUEE_SELECT_BEGIN        1
-#define DT_MARQUEE_SELECT_CONTINUE     2
-#define DT_MARQUEE_SELECT_END          3
-#define DT_MARQUEE_SELECT_CANCEL       4
-
-/**********************************************************************
- * Workspace change callback context (opaque)
- **********************************************************************/
-typedef void (*DtWsmCBProc) ();
-struct _DtWsmCBContext
-{
-    Tt_pattern         pattern;
-    Widget             widget;
-    DtWsmCBProc                ws_cb;
-    XtPointer          client_data;
-    XtPointer          nested_context;
-};
-
-/**********************************************************************
- * Convenience Routines
- **********************************************************************/
-
-/*************************************<->*************************************
- *
- *  int _DtGetMwmWindow (display, root, pMwmWindow)
- *
- *
- *  Description:
- *  -----------
- *  Get the Motif Window manager window
- *
- *
- *  Inputs:
- *  ------
- *  display            - display 
- *  root               - root window of screen
- *  pMwmWindow         - pointer to a window (to be returned)
- *
- *  Outputs:
- *  --------
- *  *pMwmWindow                - mwm window id, if successful
- *  Return             - status from XGetWindowProperty
- *
- *  Comments:
- *  --------
- *  This can fail if mwm is not managing the screen for the root window
- *  passed in.
- * 
- *************************************<->***********************************/
-extern int 
-_DtGetMwmWindow( 
-                        Display *display,
-                        Window root,
-                        Window *pMwmWindow) ;
-
-
-/*************************************<->*************************************
- *
- *  int _DtGetEmbeddedClients (display, root, ppEmbeddedClients, 
- *                                     pNumEmbeddedClients)
- *
- *
- *  Description:
- *  -----------
- *  Get the contents of the _DT_WORKSPACE_EMBEDDED_CLIENTS property 
- *  from a root window. This is a list (array) of top-level windows that 
- *  are embedded in the front panel of the window manager. They would
- *  not be picked up ordinarily by a session manager in a normal
- *  search for top-level windows because they are reparented to 
- *  the front panel which itself is a top-level window.
- *
- *
- *  Inputs:
- *  ------
- *  display            - display 
- *  root               - root window to get info from
- *  ppEmbeddedClients  - pointer to a pointer (to be returned)
- *  pNumEmbeddedClients        - pointer to a number (to be returned)
- *
- *  Outputs:
- *  -------
- *  *ppEmbeddedClients - pointer to a array of window IDs (top-level
- *                       windows for embedded clients)
- *                       (NOTE: This should be freed using XFree)
- *  *pNumEmbeddedClients- number of window IDs in array
- *  Return             - Success if property fetched ok.
- *                       Failure returns are from XGetWindowProperty
- * 
- *  Comments:
- *  --------
- *  Use XFree to free the returned data.
- * 
- *************************************<->***********************************/
-extern int 
-_DtGetEmbeddedClients(
-        Display *display,
-        Window root,
-        Atom **ppEmbeddedClients,
-        unsigned long *pNumEmbeddedClients );
-
-
-/*************************************<->*************************************
- *
- *  int _DtWmRestart (display, root)
- *
- *
- *  Description:
- *  -----------
- *  Requests the window manager to restart itself
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  root       - root window for screen 
- *
- *  Returns:
- *  --------
- *  Success if request was sent
- *
- *  Comments:
- *  ---------
- * 
- *************************************<->***********************************/
-extern int 
-_DtWmRestart( 
-       Display *display,
-       Window root) ;
-
-/*************************************<->*************************************
- *
- *  int _DtWsmChangeBackdrop (display, root, path, pixmap)
- *
- *
- *  Description:
- *  -----------
- *  Request the HP DT workspace manager to change the backdrop
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  root       - root window of screen
- *  path       - file path to bitmap file
- *  pixmap     - pixmap id of backdrop pixmap
- *
- *  Returns:
- *  --------
- *  Success if request sent 
- * 
- *************************************<->***********************************/
-extern int 
-_DtWsmChangeBackdrop (
-       Display *display, 
-       Window root, 
-       char *path, 
-       Pixmap pixmap);
-
-/*************************************<->*************************************
- *
- *  _DtWmCvtStringToIPlace (args, numArgs, fromVal, toVal)
- *
- *
- *  Description:
- *  -----------
- *  This function converts a string to an icon placement scheme description.
- *
- *
- *  Inputs:
- *  ------
- *  args = NULL (don't care)
- *
- *  numArgs = 0 (don't care)
- *
- *  fromVal = resource value to convert
- *
- * 
- *  Outputs:
- *  -------
- *  toVal = descriptor to use to return converted value
- *
- *************************************<->***********************************/
-
-extern void
-_DtWmCvtStringToIPlace (
-       XrmValue *args, 
-       Cardinal numArgs, 
-       XrmValue *fromVal, 
-       XrmValue *toVal);
-
-
-/*************************************<->*************************************
- *
- *  Boolean _DtWsmIsBackdropWindow (display, screen_num, window)
- *
- *
- *  Description:
- *  -----------
- *  Returns true if the window passed in is a backdrop window.
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  screen_num - number of screen we're interested in
- *  window     - window we want to test
- *
- *  Outputs:
- *  -------
- *  Return     - True if window is a backdrop window
- *                False otherwise.
- *
- *  Comments:
- *  --------
- * 
- *************************************<->***********************************/
-Boolean 
-_DtWsmIsBackdropWindow(
-        Display *display,
-        int screen_num,
-        Window window );
-
-/*************************************<->*************************************
- *
- *  int DtWsmSetWorkspaceTitle (widget, aWs, pchNewName)
- *
- *
- *  Description:
- *  -----------
- *  Rename a workspace
- *
- *
- *  Inputs:
- *  ------
- *  widget     - a widget
- *  aWs        - atom of workspace 
- *  pchNewName - new name for the workspace
- *
- *  Outputs:
- *  --------
- *  Return     - 1 (*not* Success) if communication to workspace manager
- *               was successful.
- *
- *  Comments:
- *  ---------
- *  The odd-ball successful return value is a CDE 1.0 bug being
- *  preserved for backward compatibility.
- * 
- *************************************<->***********************************/
-int
-_DtWsmSetWorkspaceTitle (
-       Widget widget,
-        Atom aWs,
-       char * pchNewName);
-
-/*************************************<->*************************************
- *
- *  int _DtWsmDeleteWorkspace (widget, aWs)
- *
- *
- *  Description:
- *  -----------
- *  Delete a workspace
- *
- *
- *  Inputs:
- *  ------
- *  widget     - a widget (with a window!)
- *  aWs        - atom of workspace to delete
- *
- *  Outputs:
- *  --------
- *  Return     - 1 (*not* Success) if communication to workspace manager
- *               was successful.
- *
- *  Comments:
- *  ---------
- *  The odd-ball successful return value is a CDE 1.0 bug being
- *  preserved for backward compatibility.
- * 
- *************************************<->***********************************/
-int
-_DtWsmDeleteWorkspace (
-       Widget widget,
-        Atom aWs);
-
-
-/*************************************<->*************************************
- *
- *  int _DtWsmCreateWorkspace (widget, pchTitle)
- *
- *
- *  Description:
- *  -----------
- *  Add a workspace
- *
- *
- *  Inputs:
- *  ------
- *  widget     - a widget (with a window!)
- *  pchTitle   - user-visible title of the workspace
- *
- *  Outputs:
- *  --------
- *  Return     - 1 (*not* Success) if communication to workspace manager
- *               was successful.
- *
- *  Comments:
- *  ---------
- *  The odd-ball successful return value is a CDE 1.0 bug being
- *  preserved for backward compatibility.
- * 
- *************************************<->***********************************/
-int
-_DtWsmCreateWorkspace (Widget widget, char * pchTitle);
-
-/*************************************<->*************************************
- *
- *  _DtWsmSetWorkspaceHints (display, window, pWsHints)
- *
- *
- *  Description:
- *  -----------
- *  Set the contents of the _DT_WORKSPACE_HINTS property on a window
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  window     - window to get hints from
- *  pWsHints   - pointer to workspace hints
- *
- *  Comments:
- *  ---------
- *  The internal form of the property is a structure. The structure
- *  must be unwound and turned into a simple array of "long"s before
- *  being written out.
- *
- *  This function currently only deals with version 1 of the property
- *  structure. The passed in pWsHints->version is ignored.
- * 
- *************************************<->***********************************/
-extern void 
-_DtWsmSetWorkspaceHints(
-        Display *display,
-        Window window,
-        DtWorkspaceHints *pWsHints);
-
-
-/*************************************<->*************************************
- *
- *  int _DtWsmGetWorkspaceHints (display, window, ppWsHints)
- *
- *
- *  Description:
- *  -----------
- *  Get the contents of the _DT_WORKSPACE_HINTS property from a window
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  window     - window to get hints from
- *  ppWsHints  - pointer to pointer to workspace hints
- *
- *  Outputs:
- *  *ppWsHints - allocated workspace hints data.
- *
- *  Comments:
- *  ---------
- *  The internal form of the property is a structure. The property
- *  is read in and packed into data allocated for the structure.
- *  Free the workspace hints by calling _DtWsmFreeWorkspaceHints.
- *
- *  This function currently only deals with version 1 of the property
- *  structure. 
- * 
- *************************************<->***********************************/
-extern int 
-_DtWsmGetWorkspaceHints(
-        Display *display,
-        Window window,
-        DtWorkspaceHints **ppWsHints);
-
-/*************************************<->*************************************
- *
- *  _DtWsmFreeWorkspaceHints (pWsHints)
- *
- *
- *  Description:
- *  -----------
- *  Free  a workspace hints structure returned from _DtWsmGetWorkspaceHints
- *
- *  Inputs:
- *  ------
- *  pWsHints   - pointer to workspace hints
- *
- *  Outputs:
- *
- *  Comments:
- *  ---------
- *************************************<->***********************************/
-extern void 
-_DtWsmFreeWorkspaceHints(
-        DtWorkspaceHints *pWsHints);
-
-/*************************************<->*************************************
- *
- *  DtWsmCBContext * _DtWsmAddMarqueeSelectionCallback (widget, 
- *                                                     marquee_select, 
- *                                                     client_data)
- *
- *
- *  Description:
- *  -----------
- *  Register a function to be called when a marquee selection is made
- *
- *
- *  Inputs:
- *  ------
- *  widget             - widget for this client
- *  marquee_select     - function to call for marquee select
- *  client_data                - additional data to pass back to client when called.
- *
- *  Outputs:
- *  --------
- *  Return     - ptr to callback context data (opaque) 
- *
- *  Comments:
- *  ---------
- *  The callback context data ptr should be saved if you intend to
- *  removed this callback at some point in the future. 
- * 
- *************************************<->***********************************/
-DtWsmCBContext 
-_DtWsmAddMarqueeSelectionCallback (
-       Widget                          widget,
-       DtWsmMarqueeSelectionProc       marquee_select,
-       XtPointer                       client_data);
-
-/*************************************<->*************************************
- *
- *  _DtWsmSetDtWmHints (display, window, pHints)
- *
- *
- *  Description:
- *  -----------
- *  Set the contents of the _DT_WM_HINTS property on a window
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  window     - window to set hints on
- *  pHints     - pointer the hints to set
- *
- *  Comments:
- *  ---------
- *  No error checking
- * 
- *************************************<->***********************************/
-extern void 
-_DtWsmSetDtWmHints( Display *display, 
-               Window window, 
-               DtWmHints *pHints);
-
-/*************************************<->*************************************
- *
- *  int _DtWsmGetDtWmHints (display, window, ppDtWmHints)
- *
- *
- *  Description:
- *  -----------
- *  Get the contents of the _DT_WM_HINTS property on a window
- *
- *
- *  Inputs:
- *  ------
- *  display    - display 
- *  window     - window to get hints from
- *  ppDtWmHints        - pointer to a pointer to return
- *
- *  Outputs:
- *  --------
- *  *ppDtWmHints-points to the DtWmHints structure retrieved from
- *               the window (NOTE: This should be freed using XFree)
- *
- *  Comments:
- *  ---------
- * 
- *************************************<->***********************************/
-extern int
-_DtWsmGetDtWmHints(
-        Display *display,
-        Window window,
-        DtWmHints **ppDtWmHints);
-
-/*************************************<->*************************************
- *
- *  _DtWsmSelectionNameForScreen (scr)
- *
- *  Description:
- *  -----------
- *  Returns a string containing the selection name used for
- *  communication with the workspace manager on this screen
- *
- *
- *  Inputs:
- *  ------
- *  scr                - number of screen
- *
- *  Outputs:
- *  --------
- *  Return     - ptr to string with selection name (free with XtFree)
- *
- *  Comments:
- *  ---------
- *  Assumes the screen number is < 1000.
- * 
- *************************************<->***********************************/
-extern String
-_DtWsmSelectionNameForScreen (int scr);
-
-extern Tt_callback_action
-_DtWsmConsumeReply (
-        Tt_message msg,
-        Tt_pattern pat );
-
-#endif /* _Dt_WsmP_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/ChkpntP.h b/cde/lib/DtSvc/DtUtil2/ChkpntP.h
deleted file mode 100644 (file)
index 5430a4d..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/* -*-C-*-
-**************************************************************************
-*
-* File:         Chkpnt.h
-* Description:  CDE Private header file. Private API for sending checkpoint
-*              messages between compliant clients and the checkpoint service
-*              provider. This API is designed for use by performance
-*              measurement programs.
-*
-* Created:      Mon Sep  6 09:00 1993
-* Language:     C
-*
-* $XConsortium: ChkpntP.h /main/4 1995/10/26 15:18:33 rswiston $
-*
-* (C) Copyright 1993, Hewlett-Packard, all rights reserved.
-*
-**************************************************************************
-*/
-
-#ifndef _Dt_Perf_Checkpoint_P_h
-#define _Dt_Perf_Checkpoint_P_h
-
-#include <X11/Xlib.h>
-#include <X11/Xatom.h>
-#include <X11/Intrinsic.h>
-
-/*************************************************************************/
-/************* Data types ************************************************/
-/*************************************************************************/
-
-/* The following definition is ONLY meant for union that follows */
-typedef struct {
-    char       *pname;         /* Client program name                  */
-    char       *window;        /* Window Id for client                 */
-    char       *type;          /* Type of message                      */
-    char       *count;         /* Running count of messages            */
-    char        *seconds;      /* Time in seconds from gettimeofday()  */
-    char       *message;       /* Actual message                       */
-} _DtChkpntMsgFormat;
-
-#define DT_PERF_CHKPNT_MSG_SIZE (sizeof(_DtChkpntMsgFormat) / sizeof(char *))
-/* Use the following union for actual message declaration */
-typedef union {
-    _DtChkpntMsgFormat record;
-    char               *array[DT_PERF_CHKPNT_MSG_SIZE];
-} DtChkpntMsg;
-
-#define DT_PERF_CHKPNT_MSG_INIT        "Init"
-#define DT_PERF_CHKPNT_MSG_CHKPNT      "Chkpnt"
-#define DT_PERF_CHKPNT_MSG_END         "End"
-
-/*************************************************************************/
-/************* Atom Names ************************************************/
-/*************************************************************************/
-/* Selection for ICCCM style interaction of client and listener*/
-/* This selection is owned by the listener */
-#define DT_PERF_CHKPNT_SEL             "_DT_PERF_CHKPNT_SEL"
-
-/* Properties attached to the client: Used for message transmission */
-#define DT_PERF_CLIENT_CHKPNT_PROP     "_DT_PERF_CHKPNT_PROP"
-
-/*************************************************************************/
-/************* Client Functions ******************************************/
-/*************************************************************************/
-
-/* Note: It is expected that users will invoke the following functions within
-   #ifdef DT_PERFORMANCE directives. The DT_PERFORMANCE flag should be set,
-   in the build environment, for the performance-test-enabled builds.
-*/
-
-/* Initialize the checkpointing mechanism */
-extern int _DtPerfChkpntInit(
-    Display       *display,       /* Display pointer                      */
-    Window        parentwin,      /* Parent window id                     */
-    char           *prog_name,    /* Name of the client program (argv[0]) */
-    Boolean        bChkpnt        /* Boolean: True or False               */
-);
-
-/* Send a checkpoint message to the listener */
-extern void _DtPerfChkpntMsgSend(
-    char           *message       /* Acual message for transmission     */
-);
-
-/* End the checkpointing message delivery */
-extern int _DtPerfChkpntEnd(
-);
-
-/*************************************************************************/
-/************* Listener Service Functions ********************************/
-/*************************************************************************/
-
-/* Initialize the listener */
-extern int _DtPerfChkpntListenInit(
-    Display *display,  /* Current display */
-    Window parentwin   /* Parent of window associated with listener */
-);
-
-/* Fetch a message from message queue */
-extern Bool _DtPerfChkpntMsgReceive(
-DtChkpntMsg *dtcp_msg,         /* Above message available as a structure */
-Bool        bBlock             /* Block until a message is received ?    */
-);
-
-#endif /*_Dt_Perf_Checkpoint_h*/
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Collate.h b/cde/lib/DtSvc/DtUtil2/Collate.h
deleted file mode 100644 (file)
index 4a9cc37..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Collate.h /main/3 1995/10/26 15:18:49 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
-
-#ifndef DtCOLLATE_INCLUDED
-#define DtCOLLATE_INCLUDED
-
-
-#define MASK077                077
-#define ENDTABLE       0377            /* end mark of 2 to 1 character         */
-
-struct col_21tab {
-       unsigned char   ch1;            /* first char of 2 to 1                 */
-       unsigned char   ch2;            /* second char of 2 to 1                */
-       unsigned char   seqnum;         /* sequence number                      */
-       unsigned char   priority;       /* priority                             */
-};
-
-struct col_12tab {
-       unsigned char   seqnum;         /* seqnum of second char of 1 to 2      */
-       unsigned char   priority;       /* priority of 1 to 2 char              */
-};
-
-#endif /* DtCOLLATE_INCLUDED */
diff --git a/cde/lib/DtSvc/DtUtil2/CommandM.h b/cde/lib/DtSvc/DtUtil2/CommandM.h
deleted file mode 100644 (file)
index e79879a..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         CommandM.h $XConsortium: CommandM.h /main/3 1995/10/26 15:18:58 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_CommandM_h
-#define _Dt_CommandM_h
-
-/*
- * Command Invoker execution window types.  Note that a success or
- * failure notification will be sent for each request.  For
- * failures, the only data returned is an error message.
- */
-#define DtNO_STDIO                     "NO_STDIO"
-#define DtTERMINAL                     "TERMINAL"
-#define DtPERM_TERMINAL                        "PERM_TERMINAL"
-#define DtOUTPUT_ONLY                  "OUTPUT_ONLY"
-#define DtSHARED_OUTPUT                        "SHARED_OUTPUT"
-
-/*
- * When the session manager starts, it needs a window type (NO-STDIO),
- * but if a failure occurs, it does NOT want an error message, but
- * instead wants to receive the execution host and the execution
- * string.  The following define is for this type of request.
- */
-#define DtSTART_SESSION                        "START-SESSION"
-
-#endif /* _Dt_CommandM_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Connect.h b/cde/lib/DtSvc/DtUtil2/Connect.h
deleted file mode 100644 (file)
index 2266c63..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Connect.h $XConsortium: Connect.h /main/3 1995/10/26 15:19:09 rswiston $
- * Language:     C
- *
- * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_connect_h
-#define _Dt_connect_h
-
-#include <Dt/DtP.h>
-#include <bms/connect.h>
-#include <codelibs/pathutils.h>
-
-#define DtGetShortHostname Xegetshorthostname
-#define DtGetHostname      Xegethostname
-/*
-    DESCRIPTION:
-    
-       These functions are similiar to gethostname(2), however
-       DtGetHostname always returns a full domain-qualified name 
-       and DtGetShortHostname returns a simple name.
-       
-    SYNOPSIS:
-    
-       status = DtGet[Short]Hostname (hostname, size)
-       
-       int status;             Returns 0 on success, -1 on failure.
-                               [Actually it returns what gethostname(2)
-                               returns, which is ambiguous in the
-                               HP-UX manual.]
-                               
-       char *hostname;         The hostname is returned here.
-       
-       int size;               The name is truncated to "size - 1" and
-                               is null-terminated.
-*/
-
-#define DtGetcwd       Xegetcwd
-/*
-    DESCRIPTION:
-    
-       This function is similar to getcwd except it first checks $PWD.
-       It only calls getcwd if $PWD is not set.
-
-    SYNOPSIS:
-    
-       cwd = DtGetcwd (buf, size)
-
-       char *cwd;              Pointer to the returned value.  (Typically 
-                               the same value as 'buf' that is passed in.)
-
-       char *buf;              Pointer to memory allocated by the caller.
-                               Buf must be large enough to hold the string.
-
-       int size;               Size of buf in bytes.
-*/
-
-#define DtIsLocalHostP XeIsLocalHostP
-/*
-    DESCRIPTION:
-    
-       Tests whether a passed-in hostname identifies the host on which
-       the function is being executed.  This handles all combinations of
-       simple and domain-qualified names for either the hostname passed
-       in or the one defined on the local host.
-       
-       WARNING: Returns BOOLEAN, not INT.  DONT TREAT IT AS AN INT!
-       
-    SYNOPSIS:
-    
-       status = XeIsLocalHostP (hostname);
-       
-       Boolean status;         Returns TRUE if "hostname" identifies the
-                               local host, FALSE otherwise.
-                               
-       char *hostname;         The hostname (either simple or domain-
-                               qualified) to test.
-*/
-
-#define DtIsSameHostP XeIsSameHostP
-/*
-    DESCRIPTION:
-    
-       Compares two hostnames to see if they specify the same host.
-       This handles combinations of simple and domain-qualified names.
-       This function canonicalizes both names and then compares them.
-       
-       WARNING: Returns BOOLEAN, not INT.  DONT TREAT IT AS AN INT!
-       
-    SYNOPSIS:
-    
-       status = DtIsSameHostP (host1, host2);
-       
-       Boolean status;         Returns TRUE if host1 and host2 identify
-                               the same host, FALSE otherwise.
-                               
-       char *host1, *host2;    The two hostnames (either simple or
-                               domain-qualified) to compare.
-*/
-
-#define DtCreateContextString XeCreateContextString
-/*
-    DESCRIPTION:
-    
-        DtCreateContextString takes the three parts of a context and
-       puts them into a single string, in the form "host:/dir/file".
-
-        A NEW STRING, OWNED BY THE CALLER, is returned.
-       
-    SYNOPSIS:
-    
-       context_string = DtCreateContextString (host, dir, file);
-       
-       DtString context_string;  The returned context.  The memory is owned
-                                 by the caller.  "NULL" is returned if the
-                                 context cannot be created.
-                               
-       DtString host;            The name of the host.
-       
-       DtString dir;             The directory.
-       
-       DtString file;            The name of the file.
-*/     
-       
-#define DtEliminateDots        XeEliminateDots
-/*
-    DESCRIPTION:
-    
-       This routine removes /./'s and /../'s from a path.  It will 
-       OVERWRITE the path IT WAS PASSED.  If there are too many /../'s
-       in the path this function will return NULL, so you better keep
-       a pointer to the path if you hope to reclaim it.
-       
-       This function does not handle "host:/directory/file", shell
-       variables, or other exotic animals.
-       
-    SYNOPSIS:
-    
-       fixed_path = DtEliminateDots (path);
-       
-       DtString fixed_path;    A pointer to the same path that was passed in
-                               (though now it is fixed up) or NULL if problems
-                               were encountered.
-                               
-       DtString path;          The path that needs fixing up.
-*/     
-       
-#define DtParseFileString XeParseFileString
-
-#endif /* _Dt_connect_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/DataTypes.h b/cde/lib/DtSvc/DtUtil2/DataTypes.h
deleted file mode 100644 (file)
index 8d4694b..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DataTypes.h /main/3 1995/10/26 15:19:20 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/* -*-C-*-
-*******************************************************************************
-*
-* File:         DataTypes.h
-* Description:  This file defines data types that are used throughout the
-*              DT code.
-*
-* Common Desktop Environment (CDE)
-*
-* (c) Copyright 1993 Hewlett-Packard Company
-* (c) Copyright 1993 International Business Machines Corp.
-* (c) Copyright 1993 Sun Microsystems, Inc.
-*
-*
-* Disclaimer:  This file could change between the 10/93 snapshot and the
-*              final release of CDE 1.0
-*
-*******************************************************************************
-*/
-
-#ifndef _Dt_DataTypes_h
-#define _Dt_DataTypes_h
-
-#include <X11/Intrinsic.h>
-
-typedef XtPointer Pointer;
-
-#endif /* _Dt_DataTypes_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/DtGetMessageP.h b/cde/lib/DtSvc/DtUtil2/DtGetMessageP.h
deleted file mode 100644 (file)
index ebbae22..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: DtGetMessageP.h /main/5 1998/07/30 12:14:37 mgreess $
- *
- * (c) Copyright 1995 Digital Equipment Corporation.
- * (c) Copyright 1995 Hewlett-Packard Company.
- * (c) Copyright 1995 International Business Machines Corp.
- * (c) Copyright 1995 Sun Microsystems, Inc.
- * (c) Copyright 1995 Novell, Inc. 
- * (c) Copyright 1995 FUJITSU LIMITED.
- * (c) Copyright 1995 Hitachi.
- *
- * DtGetMessage.h - Interfaces for the DtSvc library's private message 
- *    catalog APIs
- */
-
-#ifndef _DtGetMessage_h
-#define _DtGetMessage_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * External declarations
- */
-extern char *Dt11GetMessage (
-        char           *filename,
-        int            set,
-        int            number,
-        char           *string);
-
-/*
- * Dt11GETMESSAGE macro
- */
-#ifndef NO_MESSAGE_CATALOG
-# define _MESSAGE_CAT_NAME       "dt"
-# define Dt11GETMESSAGE(set, number, string)\
-       Dt11GetMessage(_MESSAGE_CAT_NAME, set, number, string)
-#else
-# define Dt11GETMESSAGE(set, number, string)\
-       string
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _DtGetMessage_h */
diff --git a/cde/lib/DtSvc/DtUtil2/DtNlUtils.h b/cde/lib/DtSvc/DtUtil2/DtNlUtils.h
deleted file mode 100644 (file)
index 6a20789..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtNlUtils.h /main/4 1996/06/21 17:22:30 ageorge $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/**************************************************************************/
-/*                                                                        */
-/* Public include file for Dt localization functions.                    */
-/*                                                                        */
-/**************************************************************************/
-
-#ifdef NLS16
-
-#include <stdlib.h>
-#include <locale.h>
-#include <string.h>
-#include <limits.h>
-#include <nl_types.h>
-#include <langinfo.h>
-#endif
-
-#include <X11/Intrinsic.h>
-
-
-#ifdef NLS16
-
-#define is_multibyte   _DtNl_is_multibyte
-extern Boolean _DtNl_is_multibyte;
-
-
-extern void Dt_nlInit( void ) ;
-extern char * Dt_strtok( 
-                        char *s1,
-                        char *s2) ;
-extern char * Dt_strtok_r( 
-                        char *s1,
-                        char *s2,
-                        char **ptr) ;
-extern int Dt_strspn( 
-                        char *s1,
-                        char *s2) ;
-extern int Dt_strcspn( 
-                        char *s1,
-                        char *s2) ;
-extern char * Dt_strchr( 
-                        char *s,
-                        char c) ;
-extern char * Dt_strrchr( 
-                        char *s,
-                        char c) ;
-extern void Dt_lastChar( 
-                        char *s,
-                        char **cptr,
-                        int *lenptr) ;
-extern int Dt_charCount( 
-                        char *s) ;
-
-extern char * _Dt_NextChar(char *s);
-extern char * _Dt_PrevChar(const char *start,char *s);
-extern int _Dt_isspace(char *s);
-extern int _Dt_isdigit(char *s);
-
-#define DtNlInitialize()     (Dt_nlInit())
-#define DtStrtok(s1, s2)     (Dt_strtok(s1, s2))
-#define DtStrtok_r(s1, s2, ptr)     (Dt_strtok_r(s1, s2, ptr))
-#define DtStrspn(s1, s2)     (Dt_strspn(s1, s2))
-#define DtStrcspn(s1, s2)    (Dt_strcspn(s1, s2))
-#define DtStrchr(s1, c)      (Dt_strchr(s1, c))
-#define DtStrrchr(s1, c)     (Dt_strrchr(s1, c))
-#define DtLastChar(s1, cp, lp)   (Dt_lastChar(s1, cp, lp))
-#define DtCharCount(s1)      (Dt_charCount(s1))
-#define DtNextChar(s)       (is_multibyte?_Dt_NextChar(s):((s)+1))
-#define DtPrevChar(st,s)     (is_multibyte?_Dt_PrevChar(st,s):((s)-1))
-#define DtIsspace(s)        (is_multibyte?_Dt_isspace(s):isspace(*(s)))
-#define DtIsdigit(s)        (is_multibyte?_Dt_isdigit(s):isdigit(*(s)))
-
-#else  /* NLS16 */
-
-#define DtNlInitialize()
-#define DtStrtok(s1, s2)     (strtok(s1, s2))
-#define DtStrtok_r(s1, s2, ptr)     (strtok_r(s1, s2, ptr))
-#define DtStrspn(s1, s2)     (strspn(s1, s2))
-#define DtStrcspn(s1, s2)    (strcspn(s1, s2))
-#define DtStrchr(s1, c)      (strchr(s1, c))
-#define DtStrrchr(s1, c)     (strrchr(s1, c))
-#define DtLastChar(s1, cp, lp)   {(*cp = s1 + strlen(s1) - 1); *lp = 1;}
-#define DtCharCount(s1)      (strlen(s1))
-#define DtNextChar(s)       ((s)+1)
-#define DtPrevChar(st,s)     ((s)-1)
-#define DtIsspace(s)        (isspace(*s))
-#define DtIsdigit(s)        (isdigit(*s))
-#endif /* NLS16 */
-
-extern char * _DtGetNthChar( 
-                        char *s,
-                        int n) ;
-extern char * _dt_strpbrk(
-                       char *cs,
-                       char *ct);
-extern int _is_previous_single(
-                       char *s1,
-                       char *s2);
-
diff --git a/cde/lib/DtSvc/DtUtil2/DtP.h b/cde/lib/DtSvc/DtUtil2/DtP.h
deleted file mode 100644 (file)
index 0964aae..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         DtP.h $TOG: DtP.h /main/7 1998/07/30 12:12:49 mgreess $
- * Language:     C
- */
-
-#ifndef _DtP_h
-#define _DtP_h
-
-#include <X11/Xmd.h>    /* for protocol typedefs */
-#include <X11/Intrinsic.h>
-
-#include <Dt/DtPStrings.h>
-#include <Dt/DtGetMessageP.h>
-
-#include <bms/sbport.h>
-#include <bms/bms.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*********************************
- *
- * Miscellaneous Data Types
- *
- *********************************/
-
-#define DtChar         XeChar
-#define DtString       XeString
-
-/*********************************
- *
- * Initalization
- *
- *********************************/
-
-#define DtToolClass                    XeToolClass
-
-/*********************************
- *
- * Global variables (defined in DtUtil.c)
- *
- *********************************/
-extern Display                 * _DtDisplay;
-extern char            * _DtApplicationName;
-extern char            * _DtApplicationClass;
-extern char            * _DtToolClass;
-
-extern XtAppContext    _DtAppContext;
-extern XrmDatabase     _DtResourceDatabase;
-extern Widget          _DtInitTtContextWidget;
-extern XtAppContext    * _DtInitAppContextp;
-
-extern void   _DtAddToResource( Display *, const char * );
-extern void   _DtAddResString( Display *, const char *, unsigned int);
-extern char * _DtGetResString( Display *dpy, unsigned int);
-
-
-#define _DT_ATR_RESMGR   (1 << 0)
-#define _DT_ATR_PREFS    (1 << 1)
-
-/*
-    DESCRIPTION:
-
-       Add strings to XA_RESOURCE_MANAGER property on the default root
-       window.  Correctly merges resource specifications with the same
-       name and different values.  The new value overwrites the old.
-
-        _DtAddToResource() may be used where you would have used xrdb to 
-        add a resource.
-
-    SYNOPSIS:
-
-        void _DtAddToResource(dpy,data)
-
-        Display *dpy;       The application's display structure.
-
-        char *data;          The string to be added to the
-                             XA_RESOURCE_MANAGER property.
-
-*/
-
-extern char *_DtCreateDtDirs( Display * );
-/*
-    DESCRIPTION:
-
-       Creates the directories needed for dt to operate in.  When an
-        application saves its state inside a file, it should call this
-        routine to set up the directories before saving any files.  The
-        routine constructs the path to which all save files should be saved
-        to when responding the the WM_SAVE_YOURSELF message issued by the
-        session manager.  The routine  returns the path to save to.  It also
-        allocates the memory for the path so when you are done with it you
-        should free() it.
-
-        WARNING:  If it can't create the directory it returns NULL
-
-    SYNOPSIS:
-
-       dirName = _DtCreateDtDirs (display);
-
-       char *dirName;          The path to save to.
-
-       Display *display;       The application's display structure.
-*/
-
-/*
- * The following string globals are available for use by any DT
- * component.  They represent the button labels in most dialogs,
- * and will be automatically localized by DtInitialize().
- */
-extern const char * _DtOkString;
-extern const char * _DtCancelString;
-extern const char * _DtHelpString;
-extern const char * _DtApplyString;
-extern const char * _DtCloseString;
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Do not add anything after this endif. */
-#endif /* _DtP_h */
diff --git a/cde/lib/DtSvc/DtUtil2/DtPStrings.h b/cde/lib/DtSvc/DtUtil2/DtPStrings.h
deleted file mode 100644 (file)
index d2058d4..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         DtPStrings.h $XConsortium: DtPStrings.h /main/5 1995/12/14 11:02:36 barstow $
- * Language:     C
- */
-#ifndef _DtPStrings_h
-#define _DtPStrings_h
-
-/* 
- * DT applications should use this name to look up DT-global 
- * resources instead of argv[0].
- */
-#define DtDT_PROG_NAME                 "dt"    
-
-/* 
- * DT applications should use this class name to look up DT-global
- * resources.
- */
-#define DtDT_PROG_CLASS                "Dt"
-
-/* 
- * The following string constants define the standard DT configuration
- * directories. 
- */
-#define DtPERSONAL_CONFIG_DIRECTORY            ".dt"
-#define DtSM_SESSION_DIRECTORY                 "sessions"
-#define DtSM_SESSION_DISPLAY_DIRECTORY         "display"
-#define DtCURRENT_DT_VERSION                   "3.0"
-
-/* 
- * If you change the following two #defines, you must also change the
- * related one below (DtDB_DIRS_DEFAULT). 
- */
-#define DtPERSONAL_DB_DIRECTORY                ".dt/types"
-#define DtPERSONAL_TMP_DIRECTORY       ".dt/tmp"
-
-/*
- * Names for the message log files
- */
-#define DtERRORLOG_FILE                        "errorlog"
-#define DtOLD_ERRORLOG_FILE            "errorlog.old"
-#define DtOLDER_ERRORLOG_FILE          "errorlog.older"
-
-/* 
- * Strings for default types and icons
- */
-#define DtDEFAULT_DATA_FT_NAME                         "DATA"
-
-/*
- * The following string constants define the resource name,
- * resource class and default values for the action bitmaps.
- */
-#define DtACTION_ICON_RESOURCE_NAME                    "actionIcon"
-#define DtACTION_ICON_RESOURCE_CLASS                   "ActionIcon"
-#define DtACTION_ICON_DEFAULT                          "Dtactn"
-
-/*
- * The following string constants define the resource name,
- * resource class and default values for the Dt tmp directory path.
- */
-#define DtACTION_DTTMPDIR_RESOURCE_NAME                        "dtTmpDir"
-#define DtACTION_DTTMPDIR_RESOURCE_CLASS               "DtTmpDir"
-#define DtACTION_DTTMPDIR_DEFAULT                      ".dt/tmp"
-
-/* Do not add anything after this endif. */
-#endif /* _DtPStrings_h */
diff --git a/cde/lib/DtSvc/DtUtil2/DtosP.h b/cde/lib/DtSvc/DtUtil2/DtosP.h
deleted file mode 100644 (file)
index 866da79..0000000
+++ /dev/null
@@ -1,248 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: DtosP.h /main/4 1998/01/21 16:37:29 mgreess $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-#ifdef REV_INFO
-#ifndef lint
-static char SCCSID[] = "OSF/Motif: @(#)_DtosP.h        4.16 91/09/12";
-#endif /* lint */
-#endif /* REV_INFO */
-/******************************************************************************
-*******************************************************************************
-*
-*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
-*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
-*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
-*  ALL RIGHTS RESERVED
-*  
-*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
-*  AND COPIED 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 OPEN SOFTWARE
-*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
-*  
-*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
-*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
-*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
-*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
-*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-*  FITNESS FOR A PARTICULAR PURPOSE.
-*  
-*  Notice:  Notwithstanding any other lease or license that may pertain to,
-*  or accompany the delivery of, this computer software, the rights of the
-*  Government regarding its use, reproduction and disclosure are as set
-*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
-*  Rights clause.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
-*  rights reserved under the Copyright laws of the United States.
-*  
-*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
-*  Government is subject to the restrictions as set forth in subparagraph
-*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
-*  at DFARS 52.227-7013.
-*  
-*  Open Software Foundation, Inc.
-*  11 Cambridge Center
-*  Cambridge, MA   02142
-*  (617)621-8700
-*  
-*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
-*  "restricted rights."  Use, duplication or disclosure is subject to the
-*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
-*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
-*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
-*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
-*  then the "Alternate III" clause applies.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
-*  ALL RIGHTS RESERVED 
-*  
-*  
-* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
-* OSF is a trademark of Open Software Foundation, Inc.
-* OSF/Motif is a trademark of Open Software Foundation, Inc.
-* Motif is a trademark of Open Software Foundation, Inc.
-* DEC is a registered trademark of Digital Equipment Corporation
-* DIGITAL is a registered trademark of Digital Equipment Corporation
-* X Window System is a trademark of the Massachusetts Institute of Technology
-*
-*******************************************************************************
-******************************************************************************/
-#ifndef __DtosP_h
-#define __DtosP_h
-
-#ifndef NO_MEMMOVE
-# ifndef X_NOT_STDC_ENV
-#  include <stdlib.h> /* Needed for MB_CUR_MAX, mbtowc, mbstowcs and mblen */
-# endif
-#else
-# define memmove( p1, p2, p3 )   bcopy( p2, p1, p3 )
-#endif
-
-#ifdef BOGUS_MB_MAX  /* some systems don't properly set MB_[CUR|LEN]_MAX */
-# undef  MB_LEN_MAX
-# define MB_LEN_MAX 1 /* temp fix */
-# undef  MB_CUR_MAX
-# define MB_CUR_MAX 1 /* temp fix */
-#endif /* BOGUS_MB_MAX */
-
-/**********************************************************************/
-/* here we duplicate Xtos.h, since we can't include this private file */
-
-#ifdef INCLUDE_ALLOCA_H
-# include <alloca.h>
-#endif
-
-#ifdef CRAY
-# define WORD64
-#endif
-
-/* stolen from server/include/os.h */
-#ifndef NO_ALLOCA
-/*
- * os-dependent definition of local allocation and deallocation
- * If you want something other than XtMalloc/XtFree for ALLOCATE/DEALLOCATE
- * LOCAL then you add that in here.
- */
-# if defined(__HIGHC__)
-
-#  if HCVERSION < 21003
-#   define ALLOCATE_LOCAL(size)        alloca((int)(size))
-#pragma on(alloca);
-#  else /* HCVERSION >= 21003 */
-#   define     ALLOCATE_LOCAL(size)    _Alloca((int)(size))
-#  endif /* HCVERSION < 21003 */
-
-#  define DEALLOCATE_LOCAL(ptr)  /* as nothing */
-
-# endif /* defined(__HIGHC__) */
-
-
-# ifdef __GNUC__
-#  ifdef alloca
-#  undef alloca
-#  endif
-#  define alloca __builtin_alloca
-#  define ALLOCATE_LOCAL(size) alloca((int)(size))
-#  define DEALLOCATE_LOCAL(ptr)  /* as nothing */
-# else /* ! __GNUC__ */
-/*
- * warning: mips alloca is unsuitable, do not use.
- */
-#  if defined(vax) || defined(sun) || defined(stellar)
-/*
- * Some System V boxes extract alloca.o from /lib/libPW.a; if you
- * decide that you don't want to use alloca, you might want to fix it here.
- */
-char *alloca();
-#   define ALLOCATE_LOCAL(size) alloca((int)(size))
-#   define DEALLOCATE_LOCAL(ptr)  /* as nothing */
-#  endif /* who does alloca */
-# endif /* __GNUC__ */
-
-#endif /* NO_ALLOCA */
-
-#ifndef ALLOCATE_LOCAL
-# define ALLOCATE_LOCAL(size) XtMalloc((unsigned long)(size))
-# define DEALLOCATE_LOCAL(ptr) XtFree((XtPointer)(ptr))
-#endif /* ALLOCATE_LOCAL */
-
-/* End of Xtos.h */
-/*****************/
-
-
-/*
- * Default Icon Search Paths
- * 
- * The following are default starter values for XMICONSEARCHPATH and
- * XMICONBMSEARCHPATH, respectively.  Code elsewhere must ensure that paths
- * into the user's home directory occur in front of these paths in the
- * environment variables.  Note the apparently redundant use of ANSI C string
- * constant concatenation; this is necessary in order to avoid the sequence of
- * characters % B %, which form an SCCS id keyword.
- */
-
-#define DTPMSYSDEFAULT                                         \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:" \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:" \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:"         \
-                                                               \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:"  \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:"  \
-       CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:"          \
-                                                               \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.pm:" \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.bm:" \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B:"         \
-                                                               \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.pm:"  \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.bm:"  \
-       CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B"
-
-#define DTBMSYSDEFAULT                                         \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.bm:"        \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B" "%M.pm:"        \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/%L/%B:"                \
-                                                               \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.bm:" \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B" "%M.pm:" \
-        CDE_CONFIGURATION_TOP "/appconfig/icons/C/%B:"         \
-                                                               \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.bm:"        \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B" "%M.pm:"        \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/%L/%B:"                \
-                                                               \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.bm:" \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B" "%M.pm:" \
-        CDE_INSTALLATION_TOP  "/appconfig/icons/C/%B"
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/********    Private Function Declarations ********/
-
-/********    End Private Function Declarations    ********/
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* __DtosP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil2/DtpadM.h b/cde/lib/DtSvc/DtUtil2/DtpadM.h
deleted file mode 100644 (file)
index 2ffd8c6..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtpadM.h /main/3 1995/10/26 15:20:56 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        DtpadM.h
- **
- **   Project:     HP-DT "dtpad" text editor
- **
- **   Description: Defines for the tool class and messages for the
- **               dtpad text editor
- **
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _DtpadM_h
-#define _DtpadM_h
-
-#define DTPAD_TOOL_CLASS               "DTPAD"
-
-/*
- * Request Messages which the editor understands
- */
-#define DTPAD_RUN_SESSION_MSG  "RUN_SESSION"
-#define DTPAD_OPEN_FILE_MSG    "OPEN_FILE"
-
-/*
- * Notification Messages which the Editor sends
- */
-#define DTPAD_DONE             "DONE"
-
-#endif /*_DtpadM_h*/
diff --git a/cde/lib/DtSvc/DtUtil2/EnvControlI.h b/cde/lib/DtSvc/DtUtil2/EnvControlI.h
deleted file mode 100644 (file)
index 34fca5e..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/****************************<+>*************************************
- **
- **   File:     EnvControlI.h
- **
- **   RCS:     $TOG: EnvControlI.h /main/6 1998/07/30 12:14:02 mgreess $
- **
- **   Project:  DT Runtime Library  -- Private header
- **
- **   Description: Defines structures, and parameters used
- **                for communication with the environment
- **
- **   (c) Copyright 1992-94 by Hewlett-Packard Company
- **
- ****************************<+>*************************************/
-/*******************************************************************
-       The environment variables
-*******************************************************************/
-#define BIN_PATH_ENVIRON "PATH"
-#define NLS_PATH_ENVIRON "NLSPATH"
-#define SYSTEM_APPL_PATH_ENVIRON "XFILESEARCHPATH"
-#define PM_PATH_ENVIRON        "XMICONSEARCHPATH"
-#define BM_PATH_ENVIRON        "XMICONBMSEARCHPATH"
-
-/*******************************************************************
-       The default DT path strings, architecture-dependent
-*******************************************************************/
-#define BIN_PATH_STRING         CDE_INSTALLATION_TOP "/bin"
-
-#define NLS_PATH_STRING  CDE_INSTALLATION_TOP "/lib/nls/msg/%L/%N.cat:" \
-                         CDE_INSTALLATION_TOP "/lib/nls/msg/C/%N.cat"
-
-#if defined(sun)
-#define X_BIN_PATH_STRING "/usr/openwin/bin"
-#else
-#define X_BIN_PATH_STRING "/usr/bin/X11"
-#endif
-
-/*
- *  Some notes on the behavior and use of the XFILESEARCHPATH component, as
- *  defined through the SYSTEM_APPL_PATH_STRING definition below:
- *
- *      Its precedence in the lookup of X resources is fairly low--it can
- *     be overridden by XRM resources, by resources specified in
- *      the user's $HOME/.Xdefaults-<hostname> file, and by resources
- *      found using the $XUSERFILESEARCHPATH setting.
- *
- *      The order of pathnames in the XFILESEARCHPATH is such that the first
- *      match satisfies the lookup, and the lookup stops there.
- *
- *      We place the pathname components in our XFILESEARCHPATH such that
- *      the lookup goes, from first match attempt to last match attempt, as
- *      follows:
- *
- *      - Custom resources: /etc/../$LANG
- *      - Custom resources: /etc/../C
- *      - Factory defaults: /opt/../$LANG --shipped with every localized system
- *      - Factory defaults: /opt/../C     --shipped with every system
- *
- *      These resources are used ONLY for the DT components themselves
- *      (not, for example, for MIT client resources).
- *
- *      The CDE vendors retain the right to alter, remove, append to, and
- *      ignore any settings in the factory defaults locations.  The vendors
- *      will not modify the settings in the "custom resources" locations.
- *
- */
-#define SYSTEM_APPL_PATH_STRING  CDE_CONFIGURATION_TOP "/app-defaults/%L/%N:" \
-                                 CDE_CONFIGURATION_TOP "/app-defaults/C/%N:" \
-                                 CDE_INSTALLATION_TOP "/app-defaults/%L/%N:" \
-                                 CDE_INSTALLATION_TOP "/app-defaults/C/%N"
-
-
-/**********************************************************************
- * Data representation of the user's DT environment
- **********************************************************************/
-
-typedef struct environStruct {
-       char * pmPath;
-       char * binPath;
-       char * nlsPath;
-       char * sysApplPath;
-       char * bmPath;
-} _environStruct;
-
-/**********************************************************************
- * Miscellaneous
- **********************************************************************/
-#define BV_BINPATH                      (1<<0)
-#define BV_SYSAPPLPATH                  (1<<1)
-#define BV_NLSPATH                      (1<<2)
-#define BV_PMPATH                       (1<<3)
-#define BV_BMPATH                       (1<<4)
-
-#define MAX_ENV_STRING                 (2*BUFSIZ)
-
-/****************************        eof       **********************/
diff --git a/cde/lib/DtSvc/DtUtil2/EnvControlP.h b/cde/lib/DtSvc/DtUtil2/EnvControlP.h
deleted file mode 100644 (file)
index 3b1f372..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/****************************<+>*************************************
- **
- **   File:     EnvControlP.h
- **
- **   RCS:     $TOG: EnvControlP.h /main/6 1998/07/30 12:13:45 mgreess $
- **   Project:  DT Runtime Library
- **
- **   Description: Defines structures, and parameters used
- **                for communication with the environment
- **
- **   (c) Copyright 1990 by Hewlett-Packard Company
- **
- ****************************<+>*************************************/
-
-/********    Public Function Declarations    ********/
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern int _DtEnvControl(
-                        int mode) ;
-extern int _DtWsmSetBackdropSearchPath(
-                        Screen *screen,
-                        char   *backdropDir,
-                        Boolean useMultiColorIcons) ;
-/********    End Public Function Declarations    ********/
-
-/**********************************************************************
- * Command parameters to the function, which double as result codes.
- * If the invocation is successful, the same is returned; 
- * else DT_ENV_NO_OP is returned.
-
-DT_ENV_SET
-       Sets the DT environment.
-
-DT_ENV_RESTORE_PRE_DT
-       Restores the pre-DT application environment
-
-DT_ENV_RESTORE_POST_DT
-       Reinstalls the DT environment after a restoring pre-DT
-       environment
-
-DT_ENV_NO_OP
-       Does nothing
-
-DT_ENV_SET_BIN
-       Sets the DT environment PLUS sets the PATH= variable to
-       where the DT files live.
-
- **********************************************************************/
-#define DT_ENV_SET                     0
-#define DT_ENV_RESTORE_PRE_DT          1
-#define DT_ENV_RESTORE_POST_DT 2
-#define DT_ENV_NO_OP                   3
-#define DT_ENV_SET_BIN                 4
-
-#ifdef __cplusplus
-}
-#endif
-/****************************        eof       **********************/
diff --git a/cde/lib/DtSvc/DtUtil2/FileM.h b/cde/lib/DtSvc/DtUtil2/FileM.h
deleted file mode 100644 (file)
index aed4a60..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: FileM.h /main/3 1995/10/26 15:21:35 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        FileM.h
- **
- **   Project:     DT
- **
- **   Description: Defines for the tool class and messages for the
- **               File Manager.
- **
- **
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _FileM_h
-#define _FileM_h
-
-#define FILE_MANAGER_TOOL_CLASS                "FILEMGR"
-
-#define FILE_MANAGER_CLASS_NAME                "Dtfile"
-
-
-#define FILE_MANAGER_RUN_SESSION_MSG   "RUN_SESSION"
-#define FILE_MANAGER_SHOW_HOME_MSG     "SHOW_HOME_FOLDER"
-#define FILE_MANAGER_SHOW_DIRECTORY_MSG        "SHOW_FOLDER"
-#define FILE_MANAGER_SHOW_TOOLS_MSG    "SHOW_TOOLS"
-
-#define SHOW_TRASH_MSG         "SHOW_TRASH"
-#define REMOVE_TRASH_MSG       "REMOVE_TRASH"
-#define EMPTY_TRASH_MSG                "EMPTY_TRASH"
-
-#endif /*_FileM_h*/
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/FileUtil.h b/cde/lib/DtSvc/DtUtil2/FileUtil.h
deleted file mode 100644 (file)
index 5e0bb6a..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         FileUtil.h $XConsortium: FileUtil.h /main/4 1995/10/26 15:21:50 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _FileUtil_h
-#define _FileUtil_h
-
-extern int _DtCreateDirs( char *path,
-                         int mode) ;
-
-/******************
- *
- * Function Name:  _DtCreateDirs
- *
- * Description:
- *
- *     This function is passed a directory path to create and the mode
- *     for the directory.  It will create any of the parent directories 
- *     on the path that do not already exist.
- *
- *     This function may fail if any of the directories on the path already
- *     exist and are not writable.  If some component of the path already
- *     exists and is not a directory, a failure will be returned.  
- *
- *     If some component of the path exists as a directory but does not have 
- *     the specified mode, this will NOT cause a failure to be returned.
- *     This implies that if this function is called to create a writeable
- *     directory, it is possible for the function to return successfully
- *     but the directory may not actually be writable.
- *
- * Synopsis:
- *
- *     status = _DtCreateDirs (path, mode);
- *
- *     int status;             Returns 0 on success and -1 on failure.
- *     char *path;             The directory path to create.
- *     int mode;               The file mode for setting any directories
- *                             that are created.
- *
- ******************/
-
-
-extern int _DtIsOpenableDir( char *path) ;
-
-/******************
- *
- * Function Name:  _DtIsOpenableDir
- *
- * Description:
- *
- *      This function takes a path as an argument and determines whether
- *     the path is a directory that can be opened.  This function returns
- *     "1" if the path is an openable directory and "0" if it is not.
- *
- *     The path can be in the Softbench "context" form of "host:/path/dir".
- *
- * Synopsis:
- *
- *     status = _DtIsOpenableDir (cpath)
- *
- *     int status;             Returns 1 for openable directories, 
- *                             0 otherwise.
- *     char *cpath;            The directory name to test.
- *
- ******************/
-
-
-extern int 
-_DtIsOpenableDirContext(
-        char *path,
-        char **ret_path ) ;
-
-/******************
- *
- * Function Name:  _DtIsOpenableDirContext
- *
- * Description:
- *
- *      This function takes a path as an argument and determines whether
- *     the path is a directory that can be opened.  This function returns
- *     "1" if the path is an openable directory and "0" if it is not.
- *      In addition, if the calling function passes in another pointer,
- *      we will return the internal representation for the path.
- *
- *     The path can be in the Softbench "context" form of "host:/path/dir".
- *
- * Synopsis:
- *
- *     status = _DtIsOpenableDirContext (cpath, ret_ptr)
- *
- *     int status;             Returns 1 for openable directories, 
- *                             0 otherwise.
- *     char *cpath;            The directory name to test.
- *      char ** ret_ptr;        Where to place internal format.
- *
- ******************/
-
-
-extern char * _DtReaddirLstat( 
-                        char *dir_name,
-                        DIR *dirp,
-                        struct stat *st_buf) ;
-
-/******************
- *
- * Function Name:  _DtReaddirLstat
- *
- * Description:
- *
- *     This function reads the next entry out of a directory that has
- *     been opened with opendir and returns lstat information on it.  
- *     For more information on reading a directory, see directory(3C).
- *     For more information on lstat information, see stat(2).
- *
- *     This function returns a pointer to the full pathname of the directory
- *     entry.  This memory is owned by this function and must not be 
- *     freed.  If the caller wants to keep the filename, it must make its
- *     own copy.  When the end of the directory is encountered, NULL is
- *     returned.
- *
- * Synopsis:
- *
- *     dir_entry = _DtReaddirLstat (dir_name, dirp, st_buf);
- *
- *     char *dir_entry;        The name of the current entry within the
- *                             directory.
- *
- *     char *dir_name;         The full path name of the directory.
- *
- *     DIR *dirp;              A pointer to the directory [obtained from
- *                             opendir(3C)].
- *
- *     struct stat *st_buf;    The lstat(2) information.
- *
- ******************/
-
-#endif /* _FileUtil_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/GetDispRes.h b/cde/lib/DtSvc/DtUtil2/GetDispRes.h
deleted file mode 100644 (file)
index aab8b4e..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/****************************<+>*************************************
- **
- **   File:     EnvControl.h
- **
- **   RCS:     $XConsortium: GetDispRes.h /main/4 1995/10/26 15:22:11 rswiston $
- **   Project:  HP DT Runtime Library
- **
- **   Description: Defines structures, and parameters used
- **                for communication with the environment
- **
- **   (c) Copyright 1992 by Hewlett-Packard Company
- **
- ****************************<+>*************************************/
-
-/********    Function Declarations    ********/
-
-int _DtGetDisplayResolution(
-                        Display *disp,
-                        int screen) ;
-
-/********    End Function Declarations    ********/
-
-/**********************************************************************
- * Resolution threshold values (width of screen in pixels) 
- **********************************************************************/
-
-#define   _DT_HIGH_RES_MIN            1176
-#define          _DT_MED_RES_MIN               851
-#define          _DT_LOW_RES_MIN               512
-
-/**********************************************************************
- * Resolution types of a given screen
- **********************************************************************/
-#define   NO_RES_DISPLAY        0
-#define   LOW_RES_DISPLAY       1
-#define   VGA_RES_DISPLAY       2
-#define   MED_RES_DISPLAY       3
-#define   HIGH_RES_DISPLAY      4
-#define   ALL_RES_DISPLAY       5
-
-/****************************        eof       **********************/
diff --git a/cde/lib/DtSvc/DtUtil2/HashP.h b/cde/lib/DtSvc/DtUtil2/HashP.h
deleted file mode 100644 (file)
index 0c4b606..0000000
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HashP.h /main/4 1995/10/26 15:22:50 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-#ifdef REV_INFO
-#ifndef lint
-static char SCCSID[] = "OSF/Motif: @(#)_HashP.h        4.16 91/09/12";
-#endif /* lint */
-#endif /* REV_INFO */
-/******************************************************************************
-*******************************************************************************
-*
-*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
-*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
-*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
-*  ALL RIGHTS RESERVED
-*  
-*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
-*  AND COPIED 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 OPEN SOFTWARE
-*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
-*  
-*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
-*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
-*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
-*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
-*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-*  FITNESS FOR A PARTICULAR PURPOSE.
-*  
-*  Notice:  Notwithstanding any other lease or license that may pertain to,
-*  or accompany the delivery of, this computer software, the rights of the
-*  Government regarding its use, reproduction and disclosure are as set
-*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
-*  Rights clause.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
-*  rights reserved under the Copyright laws of the United States.
-*  
-*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
-*  Government is subject to the restrictions as set forth in subparagraph
-*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
-*  at DFARS 52.227-7013.
-*  
-*  Open Software Foundation, Inc.
-*  11 Cambridge Center
-*  Cambridge, MA   02142
-*  (617)621-8700
-*  
-*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
-*  "restricted rights."  Use, duplication or disclosure is subject to the
-*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
-*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
-*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
-*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
-*  then the "Alternate III" clause applies.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
-*  ALL RIGHTS RESERVED 
-*  
-*  
-* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
-* OSF is a trademark of Open Software Foundation, Inc.
-* OSF/Motif is a trademark of Open Software Foundation, Inc.
-* Motif is a trademark of Open Software Foundation, Inc.
-* DEC is a registered trademark of Digital Equipment Corporation
-* DIGITAL is a registered trademark of Digital Equipment Corporation
-* X Window System is a trademark of the Massachusetts Institute of Technology
-*
-*******************************************************************************
-******************************************************************************/
-#ifndef __HashP_h
-#define __HashP_h
-
-#include <X11/Intrinsic.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*
- * the structure is used as a common header part for different
- * users of the hash functions in order to locate the key
- */
-typedef XtPointer DtHashKey;
-
-typedef DtHashKey (*DtGetHashKeyFunc)();
-typedef Boolean (*DtHashEnumerateFunc)();
-typedef void (*DtReleaseKeyProc)();
-
-typedef struct _DtHashEntryPartRec {
-    unsigned int       type:16;
-    unsigned int       flags:16;
-}DtHashEntryPartRec, *DtHashEntryPart;
-
-typedef struct _DtHashEntryRec {
-    DtHashEntryPartRec hash;
-}DtHashEntryRec, *DtHashEntry;
-
-typedef struct _DtHashEntryTypePartRec {
-    unsigned int               entrySize;
-    DtGetHashKeyFunc           getKeyFunc;
-    XtPointer                  getKeyClientData;
-    DtReleaseKeyProc           releaseKeyProc;
-}DtHashEntryTypePartRec, *DtHashEntryTypePart;
-
-typedef struct _DtHashEntryTypeRec {
-    DtHashEntryTypePartRec     hash;
-}DtHashEntryTypeRec, *DtHashEntryType;
-
-typedef struct _DtHashTableRec *DtHashTable;
-
-/********    Private Function Declarations for Hash.c    ********/
-
-extern void _DtRegisterHashEntry( 
-                        DtHashTable tab,
-                        DtHashKey key,
-                        DtHashEntry entry) ;
-extern void _DtUnregisterHashEntry( 
-                        DtHashTable tab,
-                        DtHashEntry entry) ;
-extern DtHashEntry _DtEnumerateHashTable( 
-                        DtHashTable tab,
-                        DtHashEnumerateFunc enumFunc,
-                        XtPointer clientData) ;
-extern DtHashEntry _DtKeyToHashEntry( 
-                        DtHashTable tab,
-                        DtHashKey key) ;
-extern DtHashTable _DtAllocHashTable( 
-                        DtHashEntryType *hashEntryTypes,
-                        Cardinal numHashEntryTypes,
-#if NeedWidePrototypes
-                        int keyIsString) ;
-#else
-                        Boolean keyIsString) ;
-#endif /* NeedWidePrototypes */
-extern void _DtFreeHashTable( 
-                        DtHashTable hashTable) ;
-
-/********    End Private Function Declarations    ********/
-
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* HashP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
-
index c43fd6f57d0db15404d76a6cc617434d73404ee2..937343b7997fa4f53ce393377846ef9cf810588f 100644 (file)
 #include <X11/Intrinsic.h>
 #include "DtSvcLock.h"
 
-#define time32_width 32
-#define time32_height 32
-#define time32_x_hot 15
-#define time32_y_hot 15
-static unsigned char time32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0x8c, 0x00, 0x00, 0x31, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x8c, 0x00, 0x00, 0x31, 0x0c, 0x7f, 0xfe, 0x30, 0x0c, 0xfe, 0x7f, 0x30,
-   0x0c, 0xfc, 0x3f, 0x30, 0x0c, 0xf8, 0x1f, 0x30, 0x0c, 0xe0, 0x07, 0x30,
-   0x0c, 0x80, 0x01, 0x30, 0x0c, 0x80, 0x01, 0x30, 0x0c, 0x60, 0x06, 0x30,
-   0x0c, 0x18, 0x18, 0x30, 0x0c, 0x04, 0x20, 0x30, 0x0c, 0x02, 0x40, 0x30,
-   0x0c, 0x01, 0x80, 0x30, 0x8c, 0x00, 0x00, 0x31, 0x4c, 0x80, 0x01, 0x32,
-   0x4c, 0xc0, 0x03, 0x32, 0x4c, 0xf0, 0x1f, 0x32, 0x4c, 0xff, 0xff, 0x32,
-   0xcc, 0xff, 0xff, 0x33, 0x8c, 0xff, 0xff, 0x31, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
-
-#define time32m_width 32
-#define time32m_height 32
-static unsigned char time32m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xcf, 0x00, 0x00, 0xf3, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0xce, 0x00, 0x00, 0x73, 0x8e, 0x7f, 0xfe, 0x71, 0x0e, 0xff, 0xff, 0x70,
-   0x0e, 0xfe, 0x7f, 0x70, 0x0e, 0xfc, 0x3f, 0x70, 0x0e, 0xf8, 0x1f, 0x70,
-   0x0e, 0xe0, 0x07, 0x70, 0x0e, 0xe0, 0x07, 0x70, 0x0e, 0x78, 0x1e, 0x70,
-   0x0e, 0x1c, 0x38, 0x70, 0x0e, 0x06, 0x60, 0x70, 0x0e, 0x03, 0xc0, 0x70,
-   0x8e, 0x01, 0x80, 0x71, 0xce, 0x00, 0x00, 0x73, 0x6e, 0x80, 0x01, 0x76,
-   0x6e, 0xc0, 0x03, 0x76, 0x6e, 0xf0, 0x1f, 0x76, 0x6e, 0xff, 0xff, 0x76,
-   0xee, 0xff, 0xff, 0x77, 0xcf, 0xff, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 16
-#define time16_height 16
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x7f, 0x14, 0x28, 0x14, 0x28, 0x14, 0x28, 0x24, 0x24,
-   0x44, 0x22, 0x84, 0x21, 0x84, 0x21, 0x44, 0x22, 0x24, 0x24, 0x14, 0x28,
-   0x94, 0x29, 0xd4, 0x2b, 0xfe, 0x7f, 0x00, 0x00};
-
-#define time16m_width 16
-#define time16m_height 16
-static unsigned char time16m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff};
-
+#include <X11/bitmaps/xm_hour16>
+#include <X11/bitmaps/xm_hour16m>
+#include <X11/bitmaps/xm_hour32>
+#include <X11/bitmaps/xm_hour32m>
 
 /********    Public Function Declarations    ********/
 
@@ -205,8 +160,8 @@ Cursor
 _DtGetHourGlassCursor(
         Display *dpy )
 {
-    unsigned char *bits;
-    unsigned char *maskBits;
+    char *bits;
+    char *maskBits;
     unsigned int width;
     unsigned int height;
     unsigned int xHotspot;
@@ -237,21 +192,21 @@ _DtGetHourGlassCursor(
 
     if (useLargeCursors)
     {
-       width = time32_width;
-       height = time32_height;
-       bits = time32_bits;
-       maskBits = time32m_bits;
-       xHotspot = time32_x_hot;
-       yHotspot = time32_y_hot;
+       width = hour32_width;
+       height = hour32_height;
+       bits = hour32_bits;
+       maskBits = hour32m_bits;
+       xHotspot = hour32_x_hot;
+       yHotspot = hour32_y_hot;
     }
     else
     {
-       width = time16_width;
-       height = time16_height;
-       bits = time16_bits;
-       maskBits = time16m_bits;
-       xHotspot = time16_x_hot;
-       yHotspot = time16_y_hot;
+       width = hour16_width;
+       height = hour16_height;
+       bits = hour16_bits;
+       maskBits = hour16m_bits;
+       xHotspot = hour16_x_hot;
+       yHotspot = hour16_y_hot;
     }
 
     pixmap = XCreateBitmapFromData (dpy, 
@@ -351,16 +306,3 @@ _DtTurnOffHourGlass(
     XFlush(XtDisplay(w));
 }
 
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil2/HourGlass.h b/cde/lib/DtSvc/DtUtil2/HourGlass.h
deleted file mode 100644 (file)
index f6ad47e..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: HourGlass.h /main/4 1995/10/26 15:23:08 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:       HourGlass.h
- **
- **   Project:     DT
- **
- **   Description: Public include file for HourGlass Library.
- **
- **
- **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _hourglass_h
-#define _hourglass_h
-
-/* _DtGetHourGlassCursor -
- *
- *   Builds and returns the appropriate HourGlass cursor.
- */
-
-extern Cursor _DtGetHourGlassCursor( 
-                        Display *dpy) ;
-
-/* _DtTurnOnHourGlass -
- *
- *   Gets and displays an hourglass cursor in the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtTurnOnHourGlass( 
-                        Widget w) ;
- /*  Widget widget;
-  *
-  * widget is the toplevel shell of the window you want
-  * the hourglass cursor to appear in.
-  */
-
-
-/* _DtTurnOffHourGlass -
- *
- *   Removes the hourglass cursor from the window of the widget
- *   which is passed in to the funciton.
- */
-
-extern void _DtTurnOffHourGlass( 
-                        Widget w) ;
-  
- /* Widget widget;
-  *
-  *  widget is the toplevel shell of the window you want
-  *  to remove hourglass cursor from.
-  */
-
-
-#endif /* _hourglass_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil2/IconFile.h b/cde/lib/DtSvc/DtUtil2/IconFile.h
deleted file mode 100644 (file)
index 3afae96..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: IconFile.h /main/4 1995/10/26 15:23:17 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-#ifdef REV_INFO
-#ifndef lint
-static char SCCSID[] = "OSF/Motif: @(#)_IconFile.h     4.16 91/09/12";
-#endif /* lint */
-#endif /* REV_INFO */
-/******************************************************************************
-*******************************************************************************
-*
-*  (c) Copyright 1989, 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
-*  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
-*  (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
-*  ALL RIGHTS RESERVED
-*  
-*      THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
-*  AND COPIED 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 OPEN SOFTWARE
-*  FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS  
-*  
-*      OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
-*  ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
-*  SOFTWARE .   OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
-*  KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
-*  BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-*  FITNESS FOR A PARTICULAR PURPOSE.
-*  
-*  Notice:  Notwithstanding any other lease or license that may pertain to,
-*  or accompany the delivery of, this computer software, the rights of the
-*  Government regarding its use, reproduction and disclosure are as set
-*  forth in Section 52.227-19 of the FARS Computer Software-Restricted
-*  Rights clause.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.  Unpublished - all
-*  rights reserved under the Copyright laws of the United States.
-*  
-*  RESTRICTED RIGHTS NOTICE:  Use, duplication, or disclosure by the
-*  Government is subject to the restrictions as set forth in subparagraph
-*  (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
-*  at DFARS 52.227-7013.
-*  
-*  Open Software Foundation, Inc.
-*  11 Cambridge Center
-*  Cambridge, MA   02142
-*  (617)621-8700
-*  
-*  RESTRICTED RIGHTS LEGEND:  This computer software is submitted with
-*  "restricted rights."  Use, duplication or disclosure is subject to the
-*  restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
-*  "Commercial Computer Software- Restricted Rights (April 1985)."  Open
-*  Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA  02142.  If
-*  the contract contains the Clause at 18-52.227-74 "Rights in Data General"
-*  then the "Alternate III" clause applies.
-*  
-*  (c) Copyright 1989, 1990, 1991 Open Software Foundation, Inc.
-*  ALL RIGHTS RESERVED 
-*  
-*  
-* Open Software Foundation is a trademark of The Open Software Foundation, Inc.
-* OSF is a trademark of Open Software Foundation, Inc.
-* OSF/Motif is a trademark of Open Software Foundation, Inc.
-* Motif is a trademark of Open Software Foundation, Inc.
-* DEC is a registered trademark of Digital Equipment Corporation
-* DIGITAL is a registered trademark of Digital Equipment Corporation
-* X Window System is a trademark of the Massachusetts Institute of Technology
-*
-*******************************************************************************
-******************************************************************************/
-#ifndef __DtIconFile_h
-#define __DtIconFile_h
-
-#include <Xm/Xm.h>
-#include <Xm/IconFile.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * values for icon magnitude
- */
-#define DtUNSPECIFIED  0
-#define DtLARGE        1
-#define DtMEDIUM       2
-#define DtSMALL        3
-#define DtTINY 4
-
-
-/********    Public Function Declarations for XmWrap.c    ********/
-
-extern String _DtGetIconFileName( 
-                        Screen *screen,
-                        String imageInstanceName,
-                        String imageClassName,
-                        String hostPrefix,
-                        unsigned int size) ;
-
-/********    End Public Function Declarations    ********/
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* __DtIconFile_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
-
-
-
diff --git a/cde/lib/DtSvc/DtUtil2/Indicator.h b/cde/lib/DtSvc/DtUtil2/Indicator.h
deleted file mode 100644 (file)
index 9b3c3a7..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Indicator.h /main/4 1995/10/26 15:23:41 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/*
-********************************************************************************
-*
-* File:         Indicator.h
-* Description:  Public header for Activity Indicator
-*
-* (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
-*
-********************************************************************************
-*/
-
-#ifndef _Indicator_h
-#define _Indicator_h
-
-extern void _DtSendActivityNotification( int ) ;
-   /* int duration;        Maximum activation time for the indicator */
-
-/*
- * _DtSendActivityNotification() provides the application with the means for
- * notifying the world that an activity has been started, and may take upto
- * 'duration' seconds.  For now, the workspace manager will enable the
- * activity indicator for upto the indicated duration of time; the time is 
- * in units of seconds.
- */
-
-extern void _DtSendActivityDoneNotification( void ) ;
-
-/*
- * _DtSendActivityDoneNotification() provides the application with the means for
- * notifying the world that an activity which had earlier been started, is
- * now complete.
- */
-
-#endif /* _Indicator_h */
-/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/IndicatorM.h b/cde/lib/DtSvc/DtUtil2/IndicatorM.h
deleted file mode 100644 (file)
index e4e1d59..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/*****************************<+>*************************************
- *********************************************************************
- **
- **   File:     IndicatorM.h
- **
- **   RCS:     $XConsortium: IndicatorM.h /main/3 1995/10/26 15:23:53 rswiston $
- **   Project:  DT 
- **
- **   Description: Defines indicator messages
- **
- **   (c) Copyright 1990 by Hewlett-Packard Company
- **
- *********************************************************************
- *****************************<+>*************************************/
-#ifndef _IndicatorM_h
-#define _IndicatorM_h
-
-/*
- * BMS Messaging definitions
- */
-
-/* _DtMessage for turning on the activity indicator */
-
-#define DtACTIVITY_NOTIFICATION        "ACTIVITY_NOTIFICATION"
-
-/* _DtMessage for turning off the activity indicator */
-
-#define DtACTIVITY_DONE_NOTIFICATION   "ACTIVITY_DONE_NOTIFICATION"
-
-#endif /* _IndicatorM_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Info.h b/cde/lib/DtSvc/DtUtil2/Info.h
deleted file mode 100644 (file)
index d3e65b7..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Info.h /main/2 1996/03/26 15:05:44 barstow $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- *
- */
-
-#ifndef _dt_info_h_
-#define _dt_info_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
-       DtINFO_SHOW_OK,
-       DtINFO_SHOW_BAD_LOCATOR,        /* the locator argument is NULL */
-       DtINFO_SHOW_TT_OPEN_FAIL,       /* tt_open() failed */
-       DtINFO_SHOW_MSG_CREATE_FAIL,    /* tt_message_create() failed */
-       DtINFO_SHOW_MSG_SEND_FAIL       /* tt_message_send() failed */
-} DtInfoShowStatus;
-
-extern DtInfoShowStatus DtInfoShowTopic (
-       const char      * info_lib,     /* The InfoLib to browse */
-       const char      * locator);     /* The locator in Generalized Locator 
-                                          Format */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _dt_info_h_ */
diff --git a/cde/lib/DtSvc/DtUtil2/LocaleXlate.h b/cde/lib/DtSvc/DtUtil2/LocaleXlate.h
deleted file mode 100644 (file)
index 974282b..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: LocaleXlate.h /main/4 1995/10/26 12:29:54 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        LocaleXlate.h
- **
- **   Project:     DtLcx
- **
- **   Description: locale translation services
- **
- **   (c) Copyright 1993, 1994 Hewlett-Packard Company
- **   (c) Copyright 1993, 1994 International Business Machines Corp.
- **   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **   (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-
-#ifndef _DtLCX_XLATE_LOCALE_I
-#define _DtLCX_XLATE_LOCALE_I
-
-#include "XlationSvc.h"     /* FIX: move to <> */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if DOC
-/*========================================================*/
-$CONSTBEG$: _DtLCX_OPER_xxx
-$1LINER$:  Constants for specifying operations
-$SUMMARY$:
-The _DtLCX_OPER_xxx are constants that produce strings
-used in the translation specifications when specifying
-the operation of a translation.
-
-The operation string name must be identical both in the 
-source code and in the translation table.
-These constants should be used whenever referencing
-operations as part of a translation.
-/*================================================$SKIP$==*/
-#endif
-/* $DEF$, Operation constants */
-#define DtLCX_OPER_STD                 "standard"
-#define DtLCX_OPER_ICONV1              "iconv1"
-#define DtLCX_OPER_ICONV3              "iconv3"
-#define DtLCX_OPER_NLLANGINFO_CODESET  "nl_langinfo(CODESET)"
-#define DtLCX_OPER_SETLOCALE           "setlocale"
-#define DtLCX_OPER_MULTIBYTE           "multibyte"
-#define DtLCX_OPER_CCDF                "ccdf"
-#define DtLCX_OPER_XLFD                "xlfd"
-#define DtLCX_OPER_MIME                "mime"
-#define DtLCX_OPER_INTERCHANGE_CODESET  "interchangeCodeset"
-/*$END$*/
-
-/* Functions */
-#define _DtLcxCloseDb(io_db)    _DtXlateCloseDb(io_db)
-int  _DtLcxOpenAllDbs(
-       _DtXlateDb *    ret_db);
-
-int _DtLcxXlateOpToStd(
-       const _DtXlateDb   xlationDb,
-       const char *       platform,
-       const int          version,
-       const char *       operation,
-       const char *       opValue,
-       char * *           ret_stdLocale,
-       char * *           ret_stdLangTerr,
-       char * *           ret_stdCodeset,
-       char * *           ret_stdModifier);
-
-int _DtLcxXlateStdToOp(
-       const _DtXlateDb   xlationDb,
-       const char *       platform,
-       const int          version,
-       const char *       operation,
-       const char *       stdLocale,
-       const char *       stdLangTerr,
-       const char *       stdCodeset,
-       const char *       stdModifier,
-       char * *           ret_opValue);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_DtLCX_XLATE_LOCALE_I*/
-/********* do not put anything below this line ********/
diff --git a/cde/lib/DtSvc/DtUtil2/Lock.h b/cde/lib/DtSvc/DtUtil2/Lock.h
deleted file mode 100644 (file)
index d2da194..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Lock.h $XConsortium: Lock.h /main/4 1995/10/26 15:24:02 rswiston $
- * Language:     C
- *
- * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_lock_h
-#define _Dt_lock_h
-
-/*
-    GENERAL DESCRIPTION:
-
-        The DT lock facility provides simple exclusive locking.  It
-        (as of 6/19/90) is based on the X11 selection-ownership
-        mechanism, though users of Dt locking do not need to be aware of
-        this.
-
-       X11 server grabs are judiciously used to guarantee atomicity of
-        operations.  If a process which holds a lock dies (or closes its
-        X11 server connection for some other reason), the lock will be
-        automatically released.
-
-       Locks are identified by a string.  There is no mechanism to
-        allocate unique lock strings to clients; users must take care to
-        choose a string that will not be easily duplicated by some other
-        client.
-
-    SAMPLE CODE:
-
-        #define MY_LOCK "MYAPP_MY_LOCK"
-
-       ...
-
-       if (_DtGetLock (display, MY_LOCK)) {
-          <do whatever it is I want to do>
-          _DtReleaseLock (display, MY_LOCK);
-        }
-        else {
-          <do the alternative>
-        }
-*/
-
-extern int _DtGetLock (
-   Display *display,
-   char  *lock_name);
-/*
-    DESCRIPTION:
-    
-       _DtGetLock attempts to get the specified lock.  If nobody holds
-        the lock, _DtGetLock will obtain the lock and return 1.  If
-        somebody else already holds the lock, the lock will not be
-        disturbed and _DtGetLock will return 0.
-
-       If the process which owns a lock dies (or closes its X11 server
-        connection), the lock will be automatically released.  To
-        explicitly release a lock, use _DtReleaseLock.
-
-       
-    SYNOPSIS:
-
-        success = _DtGetLock (display, lock);
-
-       int success;            Returns 1 if the lock is obtained, 
-                               0 if not.
-
-       Display *display;       The X11 server connection which will 
-                               hold the lock.
-
-        char *lock;            The string which names the lock.
-*/
-
-extern void _DtReleaseLock (
-   Display *display,
-   char *lock_name);
-/*
-    DESCRIPTION:
-    
-        _DtReleaseLock releases a lock obtained by _DtGetLock.
-
-       WARNING!!  It is perfectly legal for one process to release
-       a lock held by another process.  By convention you should only
-       release locks previously obtained by your process from _DtGetLock
-        unless you are playing God and know what you are doing.
-
-    SYNOPSIS:
-
-        (void) _DtReleaseLock (display, lock);
-
-       Display *display;       The X11 server connection which holds
-                               the lock.
-
-        char *lock;            The string which names the lock.
-*/
-
-extern int _DtTestLock (
-   Display *display,
-   char *lock_name);
-/*
-    DESCRIPTION:
-    
-       _DtTestLock returns a status indicating whether anybody holds the
-        specified lock.
-       
-    SYNOPSIS:
-
-        status = _DtTestLock (display, lock);
-
-       int success;            Returns 1 if anybody holds the lock,
-                               0 otherwise.
-
-       Display *display;       The X11 server connection.
-
-        char *lock;            The string which names the lock.
-*/
-       
-#endif /* _Dt_lock_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Message.h b/cde/lib/DtSvc/DtUtil2/Message.h
deleted file mode 100644 (file)
index 6d6e74e..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Message.h $XConsortium: Message.h /main/5 1996/03/01 16:36:42 drk $
- * Language:     C
- *
- * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_message_h
-#define _Dt_message_h
-
-#include <Dt/DataTypes.h>
-#include <Dt/DtP.h>
-
-#include <Dt/Service.h>
-
-/* This header file is a modifed version of <Xv/Message.h> that 
- * provides compatibility between the BMS messaging and the new
- * ICCCM messaging used in DT.
- *
- * The following symbols that were defined in <Xv/Message.h> are
- * no longer available.  Any code that depended on them will have
- * to be rewritten:
- *
- *     DtServerDeathFn
- *     DtCloseMsgServerConnect
- *     DtAddFailNotificationCallback
- *     DtStatusResponse
- *     DtUniqueRequestId
- *     DtSendFailNotification
- *     DtSendMsg
- */
-
-
-/**********************************
- *
- * Message Format
- *
- **********************************/
-
-/*
- * DT messages have the following format:
- *
- *     Request message:        <request> [args ...]
- *     Reply message:          <SUCCESS | FAILURE> [args ...]
- *     Notify message:         <notification> [args ...]
- *
- * The following fields in BMS messages are no longer supported:
- *
- *     DT_MSG_SENDER
- *     DT_MSG_REQUEST_ID
- *     DT_MSG_TOOL
- *     DT_MSG_HOST
- *     DT_MSG_DIR
- *     DT_MSG_FILE
- */
-
-#define DT_MSG_TYPE            0
-#define DT_MSG_COMMAND         0
-#define DT_MSG_DATA_1          1
-#define DT_MSG_DATA_2          2
-#define DT_MSG_DATA_3          3
-#define DT_MSG_DATA_4          4
-#define DT_MSG_DATA_5          5
-#define DT_MSG_DATA_6          6
-#define DT_MSG_DATA_7          7
-#define DT_MSG_DATA_8          8
-#define DT_MSG_DATA_9          9
-#define DT_MSG_DATA_10         10
-#define DT_MSG_DATA_11         11
-#define DT_MSG_DATA_12         12
-#define DT_MSG_DATA_13         13
-#define DT_MSG_DATA_14         14
-#define DT_MSG_DATA_15         15
-#define DT_MSG_DATA_16         16
-#define DT_MSG_DATA_17         17
-#define DT_MSG_DATA_18         18
-#define DT_MSG_DATA_19         19
-#define DT_MSG_DATA_20         20
-
-#define DtDONT_CARE_FIELD              "*"
-/*
-       If a particular message does not require a value in one of the
-       fields, use DtDONT_CARE_FIELD for the value of the field.
-*/
-
-#endif /*_Dt_message_h*/
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Msg.h b/cde/lib/DtSvc/DtUtil2/Msg.h
deleted file mode 100644 (file)
index 3c8fe92..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- *  Msg.h -- Header file for DT messaging library 
- *
- *  $XConsortium: Msg.h /main/5 1996/03/01 16:36:15 drk $
- *
- * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
- */
-#ifndef _DT_MSG_H 
-#define _DT_MSG_H
-
-#include <X11/Intrinsic.h>
-#include <Dt/DataTypes.h>
-
-/*
- * _DtMessage handle definitions
- */
-typedef struct _DtMsgHandle *DtMsgHandle;
-
-/*
- * Return values
- */
-#define dtmsg_NO_LISTENERS             (102)
-#define dtmsg_SUCCESS                  (1)
-#define dtmsg_FAIL                     (-1)
-#define dtmsg_NO_SERVICE               (-102)
-#define dtmsg_WRONG_FORMAT             (-103)
-#define dtmsg_ANOTHER_PROVIDER         (-104)
-#define dtmsg_LOST_SERVICE             (-105)
-
-#define DtMsgContext   Pointer
-
-#endif /* not defined _DT_MSG_H */
-/***** END OF FILE ****/
diff --git a/cde/lib/DtSvc/DtUtil2/MsgCatP.h b/cde/lib/DtSvc/DtUtil2/MsgCatP.h
deleted file mode 100644 (file)
index bfbb9e6..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* 
- * (c) Copyright 1995 Digital Equipment Corporation.
- * (c) Copyright 1995 Hewlett-Packard Company.
- * (c) Copyright 1995 International Business Machines Corp.
- * (c) Copyright 1995 Sun Microsystems, Inc.
- * (c) Copyright 1995 Novell, Inc. 
- * (c) Copyright 1995 FUJITSU LIMITED.
- * (c) Copyright 1995 Hitachi.
- *
- * MsgCat.h - Public interfaces for the Cached Message Catalog Service
- *
- * $TOG: MsgCatP.h /main/1 1998/04/22 14:19:24 mgreess $
- *
- */
-
-#ifndef _Dt_MsgCat_h
-#define _Dt_MsgCat_h
-
-#include <nl_types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern char *_DtCatgetsCached(nl_catd catd, int set, int num, char *dflt);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_MsgCat_h */
diff --git a/cde/lib/DtSvc/DtUtil2/MsgLog.h b/cde/lib/DtSvc/DtUtil2/MsgLog.h
deleted file mode 100644 (file)
index 615edda..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* 
- * (c) Copyright 1995 Digital Equipment Corporation.
- * (c) Copyright 1995 Hewlett-Packard Company.
- * (c) Copyright 1995 International Business Machines Corp.
- * (c) Copyright 1995 Sun Microsystems, Inc.
- * (c) Copyright 1995 Novell, Inc. 
- * (c) Copyright 1995 FUJITSU LIMITED.
- * (c) Copyright 1995 Hitachi.
- *
- * MsgLog.h - Public header file for the Message Logging Service
- *
- * $XConsortium: MsgLog.h /main/5 1995/07/14 13:22:57 drk $
- *
- */
-
-#ifndef _Dt_MsgLog_h
-#define _Dt_MsgLog_h
-
-#include <stdio.h>             /* needed for FILE */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-# include <stdarg.h>
-
-/*
- * Type declarations
- */
-typedef enum {
-       DtMsgLogInformation,
-       DtMsgLogStderr,
-       DtMsgLogDebug,
-       DtMsgLogWarning,
-       DtMsgLogError
-} DtMsgLogType;
-
-typedef void (*DtMsgLogHandler) (
-       const char              * program_name,
-       DtMsgLogType            msg_type,
-       const char              * format,
-       va_list                 args );
-
-/*
- * Function declarations
- */
-extern void DtMsgLogMessage (
-       const char              * program_name,
-       DtMsgLogType            msg_type,
-       const char              * format,
-       ... );
-
-extern DtMsgLogHandler DtMsgLogSetHandler (
-       DtMsgLogHandler         handler );
-
-extern FILE * DtMsgLogOpenFile (
-       const char              * type,
-       char                    ** filename_return);    /* MODIFIED */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_MsgLog_h */
diff --git a/cde/lib/DtSvc/DtUtil2/MsgLogI.h b/cde/lib/DtSvc/DtUtil2/MsgLogI.h
deleted file mode 100644 (file)
index bb261c7..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* 
- * (c) Copyright 1995 Digital Equipment Corporation.
- * (c) Copyright 1995 Hewlett-Packard Company.
- * (c) Copyright 1995 International Business Machines Corp.
- * (c) Copyright 1995 Sun Microsystems, Inc.
- * (c) Copyright 1995 Novell, Inc. 
- * (c) Copyright 1995 FUJITSU LIMITED.
- * (c) Copyright 1995 Hitachi.
- *
- * MsgLogI.h - Private header file for the Message Logging Service
- *
- * $XConsortium: MsgLogI.h /main/4 1995/07/14 13:23:02 drk $
- *
- */
-
-#ifndef _Dt_MsgLogI_h
-#define _Dt_MsgLogI_h
-
-# include <stdarg.h>
-# define Va_start(a,b) va_start(a,b)
-
-/*
- * Account for the various macros on different systems which indicate that
- * stdarg.h has been included. Code in this file only checks for 
- * _STDARG_INCLUDED.  If a given system defines another macro that means the
- * same thing -- then define _STDARG_INCLUDED here.
- *
- *     System          Macro Indicating stdarg.h has been included
- *     --------        ---------------------------------------------
- *     HPUX            _STDARG_INCLUDED
- *     AIX             _H_STDARG
- *     SOLARIS         _STDARG_H
- */
-
-#ifdef _H_STDARG
-#define        _STDARG_INCLUDED
-#endif
-
-#ifdef  _STDARG_H
-#define        _STDARG_INCLUDED
-#endif
-
-#endif /* _Dt_MsgLogI_h */
diff --git a/cde/lib/DtSvc/DtUtil2/MsgP.h b/cde/lib/DtSvc/DtUtil2/MsgP.h
deleted file mode 100644 (file)
index f25db8a..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-#ifndef _DT_MSG_P_H 
-#define _DT_MSG_P_H
-/*
- *  MsgP.h -- Private header file for DT messaging library 
- *
- *  $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
- *  $XConsortium: MsgP.h /main/3 1995/10/26 15:24:51 rswiston $
- *
- * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
- */
-#include <Dt/Msg.h>
-
-
-/*
- * Definitions
- */
-
-/* max property size (bytes) */
-#define DT_MSG_MAX_PROP_SIZE   (32768)
-
-/* atom names */
-#define DT_MSG_XA_REQUEST              "_DT_REQUEST"
-#define DT_MSG_XA_NOTIFY               "_DT_NOTIFY"
-#define DT_MSG_XA_BROADCAST_REGISTRY   "_DT_BROADCAST_REGISTRY"
-
-/*
- * _DtMessage handle
- */
-typedef struct _DtMsgHandle {
-    char *             pchName;        /* handle "name" */
-    Atom               atom;           /* Selection/Broadcast atom  */
-    Widget             widget;         /* Widget registering this handle */
-    char *             pchPropName;    /* property name */
-    Atom               property;       /* atomized property name */
-
-    /* other data */
-    struct _DtMsgServiceContext *
-                       service_data;   /* service data assoc w/ handle */
-    struct _DtMsgBroadcastData *
-                       broadcast_data; /* broadcast data assoc w/ handle */
-} DtMsgHandle;
-
-/*
- * _DtMessage handle accessor "functions" 
- */
-#define DtMsgH_Name(h)         ((h)->pchName)
-#define DtMsgH_Widget(h)       ((h)->widget)
-#define DtMsgH_Atom(h)         ((h)->atom)
-#define DtMsgH_SvcData(h)      ((h)->service_data)
-#define DtMsgH_BcData(h)       ((h)->broadcast_data)
-#define DtMsgH_PropertyName(h) ((h)->pchPropName)
-#define DtMsgH_PropertyAtom(h) ((h)->property)
-#define DtMsgH_Shandle(h)      ((h)->service_data->handle)
-#define DtMsgH_RequestProc(h)  ((h)->service_data->request_proc)
-#define DtMsgH_ReceiveCD(h)    ((h)->service_data->receive_client_data)
-#define DtMsgH_LoseProc(h)     ((h)->service_data->lose_proc)
-#define DtMsgH_LoseCD(h)       ((h)->service_data->lose_client_data)
-#define DtMsgH_RegistryAtom(h) ((h)->broadcast_data->aRegistry)
-#define DtMsgH_SharedWindow(h) ((h)->broadcast_data->winShared)
-#define DtMsgH_SharedWidget(h) ((h)->broadcast_data->wShared)
-#define DtMsgH_Listener(h)     ((h)->broadcast_data->wListener)
-#define DtMsgH_BreceiveProc(h) ((h)->broadcast_data->Breceive_proc)
-#define DtMsgH_BclientData(h)  ((h)->broadcast_data->Bclient_data)
-#define DtMsgH_Bprops(h)       ((h)->broadcast_data->props)
-#define DtMsgH_BnumProps(h)    ((h)->broadcast_data->numProps)
-#define DtMsgH_BsizeProps(h)   ((h)->broadcast_data->sizeProps)
-#define DtMsgH_Breceivers(h)   ((h)->broadcast_data->pReceivers)
-#define DtMsgH_BnumReceivers(h)        ((h)->broadcast_data->numReceivers)
-#define DtMsgH_BsizeReceivers(h)       ((h)->broadcast_data->sizeReceivers)
-#define DtMsgH_BSenderInit(h) ((h)->broadcast_data->bSenderInitialized)
-
-/*
- * Service context data 
- * (for client that offers a service)
- */
-typedef struct _DtMsgServiceContext {
-    DtMsgHandle        handle;
-    DtMsgReceiveProc   request_proc;
-    DtMsgStatusProc    lose_proc;
-    Pointer            receive_client_data;
-    Pointer            lose_client_data;
-} DtMsgServiceContext;
-
-/*
- * Request context data
- * (for client that makes a service request)
- */
-typedef struct _DtMsgRequestContext {
-    DtMsgHandle        handle;
-    DtMsgReceiveProc   reply_proc;
-    Pointer            client_data;
-} DtMsgRequestContext;
-
-
-/*
- * Reply message context data
- * (for client replying to a request)
- */
-typedef struct _DtMsgReplyMessageContext {
-    DtMsgHandle        handle;
-    Window             window;
-    Atom               target;
-    Atom               property;
-} DtMsgReplyMessageContext;
-
-
-/*
- * Broadcast sender data
- */
-
-/* number of props to allocate per memory request */
-#define DT_MSG_PROP_INC_AMT    10
-
-typedef struct _DtMsgBroadcastPerReceiverData {
-    Widget             widget;                 /* widget of receiver */
-    Atom *             propsUnread;            /* list of props */
-    int                        numPropsUnread;         /* number of props */
-    int                        sizePropsUnread;        /* amt of space allocated */
-} DtMsgBroadcastPerReceiverData;
-
-typedef struct _DtMsgBroadcastData {
-    Atom               aRegistry;      /* registry atom name */
-    Window             winShared;      /* shared window */
-    Widget             wShared;        /* shared widget */
-    Widget             wListener;      /* child of shared window */
-    DtMsgReceiveProc   Breceive_proc;  /* broadcast receive proc */
-    Pointer            Bclient_data;   /* broadcast client data */
-
-    Boolean            bSenderInitialized;     /* true if ready for send */
-    Atom *             props;          /* props to use for messages */
-    int                        numProps;       /* number of message props */
-    int                        sizeProps;      /* number of props allocated */
-    DtMsgBroadcastPerReceiverData *    pReceivers;     /* rcvr data */
-    int                        numReceivers;   /* number of receivers */
-    int                        sizeReceivers;  /* amt of rcvr space allocated */
-
-} DtMsgBroadcastData;
-
-
-/* 
- * Broadcast _DtMessage Registry definitions
- */
-
-/* registry entry size, in words */
-#define DT_MSG_REGISTRY_ENTRY_SIZE     2
-
-/* offsets within each registry entry */
-#define DT_MSG_REGISTRY_NAME_OFFSET    0
-#define DT_MSG_REGISTRY_WINDOW_OFFSET  1
-
-/* Macros to compute offset */
-#define MSG_GROUP_NAME(R, i) \
-    (R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_NAME_OFFSET])
-
-#define MSG_GROUP_WINDOW(R, i) \
-    (R[((i)*DT_MSG_REGISTRY_ENTRY_SIZE)+DT_MSG_REGISTRY_WINDOW_OFFSET])
-
-
-#endif /* not defined _DT_MSG_P_H */
-/***** END OF FILE ****/
diff --git a/cde/lib/DtSvc/DtUtil2/Service.h b/cde/lib/DtSvc/DtUtil2/Service.h
deleted file mode 100644 (file)
index 4d6b8de..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Service.h $XConsortium: Service.h /main/3 1995/10/26 15:27:03 rswiston $
- * Language:     C
- *
- * (C) Copyright 1993, Hewlett-Packard, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_Service_h
-#define _Dt_Service_h
-
-/************* DATA TYPES *****************************************/
-
-/* Many of the data types are standard DT types. */
-#include <Dt/DataTypes.h>
-
-/* Built on ICCC-based messaging library */
-#include <Dt/Msg.h>
-
-/* Specific messaging data types */
-typedef struct _DtSvcHandle *  DtSvcHandle;
-typedef DtMsgContext           DtSvcMsgContext;
-
-/************* MESSAGE DEFINITIONS *********************************/
-#define DT_SVC_MSG_SUCCESS     "SUCCESS"
-#define DT_SVC_MSG_FAIL        "FAIL"
-#define DT_SVC_MSG_REQUEST     "REQUEST"
-#define DT_SVC_MSG_NOTIFY      "NOTIFY"
-
-/************* CALLBACK PROTOTYPES ******************************
- */
-
-typedef void (*DtSvcReceiveProc) ();
-/*
-    DtSvcHandle        service,
-    DtSvcMsgContext    reply_context,
-    Pointer            client_data,
-    String *           message_fields,
-    int                        num_fields);
-*/
-/*
- *  service            A handle for the service.
- *
- *  reply_context      Opaque context information for the request that 
- *                     was received.  This data is needed when 
- *                     generating a reply to a request.
- *
- *  client_data                A pointer to the data that was specified when
- *                     the callback was registered.
- *
- *  message_fields     A pointer to an array of strings that is the
- *                     contents of the request. (See note 2.)
- *
- *  num_fields         The number of fields in the message_fields 
- *                     array.
- */
-
-typedef void (*DtSvcMessageProc) ();
-/*
-    DtSvcHandle        service,
-    Pointer            client_data,
-    String *           message_fields,
-    int                        num_fields);
-*/
-/*
- *  service            A handle for the service.
- *
- *  client_data                A pointer to the data that was specified when
- *                     the callback was registered.
- *
- *  message_fields     A pointer to an array of strings that is the
- *                     contents of the message. (See note 2.)
- *
- *  num_fields         The number of fields in the message_fields 
- *                     array.
- */
-
-typedef void (*DtSvcStatusProc) ();
-/*
-    DtSvcHandle        service,
-    int                        status,
-    Pointer            client_data);
-*/
-/*
- *  service            Handle to the service whose status is being
- *                     reported.
- *
- *  status             The status of the service being started.
- *
- *  client_data                Pointer to the data that was registered when
- *                     the callback was registered.
- */
-
-/************* CONSTANTS ******************************************
- */
-
-/* The following are types of reply messages.
- */
-
-#define DT_SVC_SUCCESS          1      /* The request succeeded. */
-
-#define DT_SVC_FAIL            -1      /* The service failed to carry
-                                        * out the request.
-                                        */
-
-#define DT_SVC_DELIVERY_FAIL   -2      /* The request could not be 
-                                        * delivered to the service for
-                                        * some reason.  For example,
-                                        * the service may not be running
-                                        * and cannot be invoked.
-                                        */
-
-/* The following are types of status.
- */
-
-#define DT_SVC_START            1      /* The service was started. */
-
-#define DT_SVC_NO_START        -1      /* The service failed to start.
-                                        */
-
-#define DT_SVC_LOST            -2      /* The service was lost. Another
-                                          provider took over ownership
-                                          for this service. */
-
-#endif /*_Dt_Service_h*/
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Setlocale.h b/cde/lib/DtSvc/DtUtil2/Setlocale.h
deleted file mode 100644 (file)
index fd93588..0000000
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Setlocale.h /main/3 1995/10/26 15:27:34 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
-
-#ifndef DtSETLOCALE_INCLUDED /* allow multiple inclusions */
-#define DtSETLOCALE_INCLUDED
-
-#ifdef _NAMESPACE_CLEAN
-#define _1kanji __1kanji
-#define _2kanji __2kanji
-#define _downshift __downshift
-#define _upshift __upshift
-#endif /* _NAMESPACE_CLEAN */
-
-#include       <locale.h>
-#include       <limits.h>
-#include       <nl_types.h>
-#include       <langinfo.h>
-#include       <Dt/Collate.h>
-
-#ifndef _NL_ORDER
-#define _NL_ORDER
-typedef int nl_order;
-#endif
-#ifndef _NL_MODE
-#define _NL_MODE
-typedef int nl_mode;
-#endif
-#ifndef _NL_OUTDGT
-#define _NL_OUTDGT
-typedef int nl_outdgt;
-#endif
-#ifndef MAXLNAMELEN
-#define MAXLNAMELEN 14
-#endif
-#endif
-
-struct _era_data {                     /* defines an Emperor/Era time period */
-       short start_year;               /* starting date of era */
-       unsigned short start_month;
-       unsigned short start_day;
-       short end_year;                 /* ending date of era */
-       unsigned short end_month;
-       unsigned short end_day;
-       short origin_year;              /* time axis origin for era (one of start_year or end_year) */
-       short offset;                   /* offset from 0 for 1st year of era */
-       short signflag;                 /* adjusts sign of (year - origin_year) value */
-       unsigned short reserved;
-       unsigned char *name;            /* name of era */
-       unsigned char *format;          /* instead of nl_langinfo(ERA_FMT) */
-};
-
-extern int             __nl_langid[];  /* langid of currently loaded language  */
-extern unsigned char   *__ctype;       /* pointer to ctype table       */
-extern unsigned char   *_1kanji;       /* pointer to 1st of 2 kanji table */
-extern unsigned char   *_2kanji;       /* pointer to 2nd of 2 kanji table */
-extern unsigned char   *_upshift;      /* pointer to up shift table */
-extern unsigned char   *_downshift;    /* pointer to down shift table */
-#ifdef EUC
-extern unsigned char   *__e_cset;      /* pointer to expanded char set table */
-extern unsigned char   *__ein_csize;   /* pointer to expanded in_csize table */
-extern unsigned char   *__eout_csize;  /* pointer to expanded out_csize table*/
-#endif /* EUC */
-extern struct _era_data *_nl_era[];    /* array of era info str pointer */
-extern int             _nl_radix;      /* radix character */
-extern int             _sh_low;        /* lowest char in shift table domain */
-extern int             _sh_high;       /* highest char in shift table domain */
-extern int             __nl_char_size; /* size of characters */
-#ifdef EUC
-extern int             __nl_code_scheme;/* flag for char code scheme */
-extern int             __cs_SBYTE;     /* flag for 1 byte char code scheme */
-extern int             __cs_HP15;      /* flag for HP15 char code scheme */
-extern int             __cs_EUC;       /* flag for EUC char code scheme */
-extern unsigned char   __in_csize[];   /* input char size */
-extern unsigned char   __out_csize[];  /* output char size */
-extern unsigned int    __euc_template[]; /* euc process code template */
-#endif /* EUC */
-extern nl_direct       _nl_direct;     /* direction flag */
-extern int             _nl_context;    /* directionality context flag */
-extern  nl_order       _nl_order;      /* order flag */
-extern  nl_mode                _nl_mode;       /* mode flag; Latin or non-Latin */
-extern  nl_outdgt      _nl_outdigit;   /* digit output : ascii or alt digit */
-
-extern int             _nl_space_alt;  /* value of alternative space */
-extern unsigned char   *_nl_dgt_alt;   /* buffer for alt digit string */
-extern unsigned char   *_nl_punct_alt; /* buffer for alt punctuation string */
-extern  unsigned char  *_nl_pascii;    /* buffer for ascii punctuation string */
-extern  unsigned char  *_nl_dascii;    /* buffer for ascii digits string */
-extern int             _nl_map21;      /* non-zero if 2-to-1 mappings */
-extern int             _nl_onlyseq;    /* true if only 1-to-1 char w no pri */
-extern  int            _nl_collate_on; /* true if collation table loaded */
-extern  int            _nl_mb_collate; /* true if collation is multibyte */
-
-extern unsigned char    *_seqtab;      /* dictionary sequence number table */
-extern unsigned char    *_pritab;      /* 1to2/2to1 flag + priority table */
-extern struct col_21tab *_tab21;       /* 2-to-1 mapping table */
-extern struct col_12tab *_tab12;       /* 1-to-2 mapping table */
-
-extern unsigned char   *__errptr;      /* pointer to an area _errlocale() can use as a buffer */
-
-extern struct lconv    *_lconv;
-extern unsigned char   *__category_name[];
-
-extern unsigned char   **__nl_info;    /* pointers to locale langinfo strings */
-extern unsigned char   *__C_langinfo[];/* default langinfo strings for the C locale */
-#define _NL_MAX_MSG    ERA_FMT         /* last nl_langinfo item */
-
-/***************************************************************************
-
-    The remainder of this file includes structures for the language files.
-    The files are built by buildlang(1M).
-
-    The structure of the files is as follows :
-
-        ----------------------------------
-       |  Table Header (A)              |
-       ----------------------------------
-       | Category/Modifier Structures(B)|
-       ==================================
-       |  LC_ALL Table Header  (C)      |
-       -   -   -   -   -   -   -   -    -
-       |  LC_ALL Data                   |
-       ----------------------------------
-       |  LC_COLLATE Table Header (D)   |
-       -   -   -   -   -   -   -   -    -
-       |  LC_COLLATE Data               |
-       ----------------------------------
-       |  LC_CTYPE  Table Header (E)    |
-       -   -   -   -   -   -   -   -    -
-       |  LC_CTYPE  Data                |
-       ----------------------------------
-       |  LC_MONETARY Table Header (F)
-       -   -   -   -   -   -   -   -    -
-       |  LC_MONETARY  Data             |
-       ----------------------------------
-       |  LC_NUMERIC  Table Header (G)  |
-       -   -   -   -   -   -   -   -    -
-       |  LC_NUMERIC  Data              |
-       ----------------------------------
-       |  LC_TIME  Table Header (H)     |
-       -   -   -   -   -   -   -   -    -
-       |  LC_TIME  Data                 |
-       ----------------------------------
-
-*****************************************************************************/
-
-
-/* Category Id's */
-
-
-/* Table Header (A) */
-
-struct table_header {
-       unsigned int size;              /* size of table header and category
-                                          structure. (A) + (B)  */
-       unsigned short nl_langid;       /* _nl_langid */
-       unsigned char lang[3*MAXLNAMELEN+2+1];  /* language name */
-       unsigned short cat_no;          /* number of categories defined */
-       unsigned short mod_no;          /* number of modifiers defined */
-       unsigned short rev_flag;        /* true if HP defined */
-       unsigned char rev_str[36];      /* Revision String */
-       unsigned short codeset;         /* 0 if 1 byte, 1 if 2 byte */
-       unsigned int    reserved1;
-       unsigned int    reserved2;
-       unsigned int    reserved3;
-};
-
-/* Category/Modifier Structure (B)
-
-   Catinfotype structure describes a category/modifier table
-   There is one structure for each category and modifier defined.
-   These entries follow the table header */
-
-
-struct catinfotype
-{
-       int size;                               /* size of category table */
-       int address;                            /* address of category table -
-                                                  offset from the beginning of
-                                                  the category tables () */
-       short catid;                            /* category id */
-       unsigned char mod_name[MAXLNAMELEN+1];  /* name of modifier */
-       short mod_addr;                         /* address of category table
-                                                  for modifier - offset from
-                                                  beginning of file */
-};
-
-
-/* Below are the category headers for each of the defined categories
-   All addresses are offset from the beginning of the category information */
-
-/* LC_ALL Table  (C) */
-
-struct all_header {
-       unsigned short yes_addr;                /* msg_index[YESSTR] */
-       unsigned short no_addr;         /* msg_index[NOSTR] */
-       unsigned short direct_addr;     /* msg_index[DIRECTION] */
-                                       /* _nl_direct */
-       unsigned short context_addr;    /* _nl_context */
-};
-
-/* LC_COLLATE Tables (D) */
-
-struct col_header {
-       unsigned int seqtab_addr;       /* _seqtab */
-       unsigned int pritab_addr;       /* _pritab */
-       unsigned short nl_map21;        /* not an address */
-       unsigned short nl_onlyseq;      /* not an address */
-       unsigned int tab21_addr;
-       unsigned int tab12_addr;
-};
-
-
-/* LC_CTYPE Tables (E) */
-
-struct ctype_header {
-       unsigned int _sh_high;          /* _sh_high */
-       int _sh_low;                    /* _sh_low */
-       unsigned int _ctype_addr;       /* __ctype */
-       unsigned int kanji1_addr;       /* _1kanji */
-       unsigned int kanji2_addr;       /* _2kanji */
-       unsigned int upshift_addr;      /* _upshift */
-       unsigned int downshift_addr;    /* _downshift */
-       unsigned short byte_char_addr;  /* msg_index[BYTES_CHAR] */
-       unsigned short alt_punct_addr;  /* msg_index[ALT_PUNCT] */
-                                       /* _nl_punct_alt[] */
-                                       /* _nl_space_alt   */
-#ifdef EUC
-       unsigned int io_csize_addr;     /* __io_csize[] */
-       unsigned int e_cset_addr;       /* __e_cset */
-       unsigned int ein_csize_addr;    /* __ein_csize */
-       unsigned int eout_csize_addr;   /* __eout_csize */
-#endif /* EUC */
-};
-
-
-
-/* LC_MONETARY Tables (F) */
-
-
-struct monetary_header {
-       unsigned short int_frac_digits;         /* _lconv->short_frac_digits */
-       unsigned short frac_digits;             /* _lconv->frac_digits */
-       unsigned short p_cs_precedes;           /* _lconv->p_cs_precedes */
-       unsigned short p_sep_by_space;          /* _lconv->p_sep_by_space */
-       unsigned short n_cs_precedes;           /* _lconv->n_cs_precedes */
-       unsigned short n_sep_by_space;          /* _lconv->n_sep_by_space */
-       unsigned short p_sign_posn;             /* _lconv->p_sign_posn */
-       unsigned short n_sign_posn;             /* _lconv->n_sign_posn */
-       unsigned short curr_symbol_lconv;               /* _lconv->currency_symbol */
-       unsigned short curr_symbol_li;          /* msg_index[CRNCYSTR] */
-       unsigned short mon_decimal_point;               /* _lconv->mon_decimal_point */
-       unsigned short int_curr_symbol;         /* _lconv->short_curr_symbol */
-       unsigned short mon_thousands_sep;               /* _lconv->mon_thousands_sep */
-       unsigned short mon_grouping;            /* _lconv->mon_grouping */
-       unsigned short positive_sign;           /* _lconv->positive_sign */
-       unsigned short negative_sign;           /* _lconv->negative_sign */
-};
-
-
-
-/* LC_NUMERIC Tables (G) */
-
-
-struct numeric_header {
-       unsigned short grouping;                        /* _lconv->grouping */
-       unsigned short decimal_point;           /* _lconv->decimal_point */
-                                               /* msg_index[RADIXCHAR] */
-                                               /* _nl_radix */
-       unsigned short thousands_sep;           /* _lconv->thousands_sep */
-                                               /* msg_index[THOUSEP] */
-       unsigned short alt_digit_addr;          /* msg_index[ALT_DIGIT] */
-};
-
-
-
-/* LC_TIME Tables (H) */
-
-struct time_header {
-       unsigned short d_t_fmt;                 /* msg_index[D_T_FMT] */
-       unsigned short d_fmt;                   /* msg_index[D_FMT] */
-       unsigned short t_fmt;                   /* msg_index[T_FMT] */
-       unsigned short day_1;                   /* msg_index[DAY_1] */
-       unsigned short day_2;                   /* msg_index[DAY_2] */
-       unsigned short day_3;                   /* msg_index[DAY_3] */
-       unsigned short day_4;                   /* msg_index[DAY_4] */
-       unsigned short day_5;                   /* msg_index[DAY_5] */
-       unsigned short day_6;                   /* msg_index[DAY_6] */
-       unsigned short day_7;                   /* msg_index[DAY_7] */
-       unsigned short abday_1;                 /* msg_index[ABDAY_1] */
-       unsigned short abday_2;                 /* msg_index[ABDAY_2] */
-       unsigned short abday_3;                 /* msg_index[ABDAY_3] */
-       unsigned short abday_4;                 /* msg_index[ABDAY_4] */
-       unsigned short abday_5;                 /* msg_index[ABDAY_5] */
-       unsigned short abday_6;                 /* msg_index[ABDAY_6] */
-       unsigned short abday_7;                 /* msg_index[ABDAY_7] */
-       unsigned short mon_1;                   /* msg_index[MON_1] */
-       unsigned short mon_2;                   /* msg_index[MON_2] */
-       unsigned short mon_3;                   /* msg_index[MON_3] */
-       unsigned short mon_4;                   /* msg_index[MON_4] */
-       unsigned short mon_5;                   /* msg_index[MON_5] */
-       unsigned short mon_6;                   /* msg_index[MON_6] */
-       unsigned short mon_7;                   /* msg_index[MON_7] */
-       unsigned short mon_8;                   /* msg_index[MON_8] */
-       unsigned short mon_9;                   /* msg_index[MON_9] */
-       unsigned short mon_10;                  /* msg_index[MON_10] */
-       unsigned short mon_11;                  /* msg_index[MON_11] */
-       unsigned short mon_12;                  /* msg_index[MON_12] */
-       unsigned short abmon_1;                 /* msg_index[ABMON_1] */
-       unsigned short abmon_2;                 /* msg_index[ABMON_2] */
-       unsigned short abmon_3;                 /* msg_index[ABMON_3] */
-       unsigned short abmon_4;                 /* msg_index[ABMON_4] */
-       unsigned short abmon_5;                 /* msg_index[ABMON_5] */
-       unsigned short abmon_6;                 /* msg_index[ABMON_6] */
-       unsigned short abmon_7;                 /* msg_index[ABMON_7] */
-       unsigned short abmon_8;                 /* msg_index[ABMON_8] */
-       unsigned short abmon_9;                 /* msg_index[ABMON_9] */
-       unsigned short abmon_10;                /* msg_index[ABMON_10] */
-       unsigned short abmon_11;                /* msg_index[ABMON_11] */
-       unsigned short abmon_12;                /* msg_index[ABMON_12] */
-       unsigned short am_str;                  /* msg_index[AM_STR] */
-       unsigned short pm_str;                  /* msg_index[PM_STR] */
-       unsigned short year_unit;               /* msg_index[YEAR_UNIT] */
-       unsigned short mon_unit;                /* msg_index[MON_UNIT] */
-       unsigned short day_unit;                /* msg_index[DAY_UNIT] */
-       unsigned short hour_unit;               /* msg_index[HOUR_UNIT] */
-       unsigned short min_unit;                /* msg_index[MIN_UNIT] */
-       unsigned short sec_unit;                /* msg_index[SEC_UNIT] */
-       unsigned short era_fmt;                 /* msg_index[ERA_FMT] */
-       unsigned short era_count;               /* number of era entries */
-       unsigned short era_names;               /* address of era name and format strings */
-       unsigned short era_addr;                /* address of era data structure entries */
-       unsigned short reserved;                /* address of era data structure entries */
-};
-
-#endif /* DtSETLOCALE_INCLUDED */
diff --git a/cde/lib/DtSvc/DtUtil2/SharedProcs.h b/cde/lib/DtSvc/DtUtil2/SharedProcs.h
deleted file mode 100644 (file)
index 0e9e520..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        SharedProcs.h
- **
- **   Project:     SUI
- **
- **   Description: Public include file for some shared functions.
- **
- **
- **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
- **
- **
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-#ifndef _SharedProcs_h
-#define _SharedProcs_h
-
-
-/********    Public Function Declarations    ********/
-
-extern String _DtStripSpaces( 
-                        String string) ;
-extern void _DtMessage(
-                        Widget w,
-                        char *title,
-                        char *message_text,
-                        XtPointer helpIdStr,
-                        void (*helpCallback)()) ;
-extern Widget _DtMessageDialog(
-                        Widget w,
-                        char *title,
-                        char *message_text,
-                        XtPointer helpIdStr,
-                        Boolean cancel_btn,
-                        void (*cancel_callback)(),
-                        void (*ok_callback)(),
-                        void (*close_callback)(),
-                        void (*help_callback)(),
-                        Boolean deleteOnClose,
-                        int dialogType) ;
-extern void _DtMessageOK(
-                        Widget w,
-                        XtPointer client_data,
-                        XtPointer call_data) ;
-extern void _DtMessageClose(
-                        Widget w,
-                        XtPointer client_data,
-                        XEvent *event) ;
-
-/********    End Public Function Declarations    ********/
-
-/* _DtMessage Dialog build defines */
-#define ERROR_DIALOG  1
-#define WARNING_DIALOG  2
-#define QUESTION_DIALOG 3
-
-/* Flag which can be used to prevent error dialogs from being posted */
-extern Boolean messageDisplayEnabled;
-
-/* Flag controlling whether dialogs are auto-positioned */
-extern Boolean disableDialogAutoPlacement;
-
-/* Generic overlay for all dialog 'Rec' structures */
-typedef struct
-{
-   Widget shell;
-} GenericRecord;
-
-#endif /* _SharedProcs_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/SmCreateDirs.h b/cde/lib/DtSvc/DtUtil2/SmCreateDirs.h
deleted file mode 100644 (file)
index f637c1f..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SmCreateDirs.h /main/4 1995/10/26 15:28:38 rswiston $ */
-/*                                                                            *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                           *
- * (c) Copyright 1993, 1994 International Business Machines Corp.             *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                            *
- * (c) Copyright 1993, 1994 Novell, Inc.                                      *
- */
-/*************************************<+>*************************************
- *****************************************************************************
- **
- **  File:        SmCreateDirs.h
- **
- **  Description:  Header file for SmCreateDirs.c
- **  -----------
- **
- *******************************************************************
- **  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
- **  reserved.  Copying or other reproduction of this program      
- **  except for archival purposes is prohibited without prior      
- **  written consent of Hewlett-Packard Company.                    
- ********************************************************************
- **
- **
- **
- *****************************************************************************
- *************************************<+>*************************************/
-
-#ifndef _SmCreateDirs_h
-#define _SmCreateDirs_h
-
-/*
- *  include statements
- */
-
-/*
- * define statements
- */
-
-/*
- * typedef statements
- */
-
-/*
- * Function definitions
- */
-
-extern char * _DtCreateDtDirs(Display *display) ;
-
-
-#endif /* _SmCreateDirs_h */
-/* Do not add anything after this endif. */
diff --git a/cde/lib/DtSvc/DtUtil2/Spc.h b/cde/lib/DtSvc/DtUtil2/Spc.h
deleted file mode 100644 (file)
index 770ef4e..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Spc.h $XConsortium: Spc.h /main/3 1995/10/26 15:28:51 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_SPC_h
-#define _Dt_SPC_h
-
-#include <bms/spc.h>
-
-/* 
- * For definitions of any of the following, look in <bms/spc.h>.
- */
-
-#define DtSPCOpen              XeSPCOpen
-#define DtSPCClose             XeSPCClose
-#define DtSPCSpawn             XeSPCSpawn
-#define DtSPCAddInput          XeSPCAddInput
-#define DtSPCRegisterTerminator        XeSPCRegisterTerminator
-#define DtSPCErrorNumber       XeSPCErrorNumber
-
-#endif /* #ifdef _Dt_SPC_h */
diff --git a/cde/lib/DtSvc/DtUtil2/SvcTT.h b/cde/lib/DtSvc/DtUtil2/SvcTT.h
deleted file mode 100644 (file)
index d4d3b1a..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SvcTT.h /main/3 1995/10/26 15:30:33 rswiston $ */
-/*%%                                                                    */
-/*%%   RESTRICTED CONFIDENTIAL INFORMATION:                             */
-/*%%                                                                    */
-/*%%   The information in this document is subject to special           */
-/*%%   restrictions in a confidential disclosure agreement between      */
-/*%%   HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this       */
-/*%%   document outside HP, IBM, Sun, USL, SCO, or Univel without       */
-/*%%   Sun's specific written approval.  This document and all copies   */
-/*%%   and derivative works thereof must be returned or destroyed at    */
-/*%%   Sun's request.                                                   */
-/*%%                                                                    */
-/*%%   Copyright 1994 Sun Microsystems, Inc.  All rights reserved.      */
-/*%%                                                                    */
-#ifndef _DT_SVCTT_H
-#define _DT_SVCTT_H
-
-#include <Tt/tttk.h>
-
-extern Tt_status       _DtSvcInitToolTalk(
-                               Widget widget
-                       );
-
-#endif
diff --git a/cde/lib/DtSvc/DtUtil2/Unistd.h b/cde/lib/DtSvc/DtUtil2/Unistd.h
deleted file mode 100644 (file)
index 941f8f5..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Unistd.h /main/3 1995/10/26 15:31:10 rswiston $ */
-/*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-/* Hp DT's version of an 8.0 include file; needed for Fnmatch */
-
-#ifndef DtUNISTD_INCLUDED
-#define DtUNISTD_INCLUDED
-
-#  define FNM_PATHNAME           01    /* flag for pathname matching */
-#  define _FNM_PERIOD    02    /* flag for explicitly matching leading '.'s */
-#  define _FNM_UAE       04    /* flag for csh pattern matching */
-
-#endif /* DtUNISTD_INCLUDED */
diff --git a/cde/lib/DtSvc/DtUtil2/UserMsg.h b/cde/lib/DtSvc/DtUtil2/UserMsg.h
deleted file mode 100644 (file)
index 619e53b..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: UserMsg.h /main/6 1998/04/09 17:50:49 mgreess $ */
-/*
- * (c) Copyright 1995 Digital Equipment Corporation.
- * (c) Copyright 1988, 1993, 1994, 1995 Hewlett-Packard Company
- * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
- * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994, 1995 Novell, Inc. 
- * (c) Copyright 1995 FUJITSU LIMITED.
- * (c) Copyright 1995 Hitachi.
- */
-
-/* -*-C-*-
-********************************************************************************
-*
-* File:         usermsg.h
-* Description:  Header for error logging routines
-* Status:       Experimental (Do Not Distribute)
-*
-********************************************************************************
-*/
-
-#ifndef _usermsg_h
-#define _usermsg_h
-
-#include <X11/Intrinsic.h>
-
-#ifndef __STDC__
-#  ifndef const
-#    define const
-#  endif
-#endif
-
-#include <bms/XeUserMsg.h>
-
-typedef enum {
-  DtIgnore,
-  DtInformation,
-  DtWarning,
-  DtError,
-  DtFatalError,
-  DtInternalError
-} DtSeverity;
-
-
-extern void _DtSimpleError( 
-                        char *progName,
-                        DtSeverity severity,
-                        char *help,
-                        char *format,
-                        ...) ;
-extern void _DtSimpleErrnoError( 
-                        char *progName,
-                        DtSeverity severity,
-                        char *help,
-                        char *format,
-                        ...) ;
-
-#define DtProgName  XeProgName
-
-extern int _DtPrintDefaultError(
-        Display *dpy,
-        XErrorEvent *event,
-        char *msg );
-
-#define _DTPRINTDEFAULTERROR_BUFSIZE 1024
-
-extern int _DtPrintDefaultErrorSafe(
-        Display *dpy,
-        XErrorEvent *event,
-        char *msg,
-       int bytes);
-
-/*
-    DESCRIPTION:
-
-        Supply the standard Xerror output to a buffer (instead of stederr)
-        so client can do what it wants with it.  Also don't exit.  Allow
-client to decide what to do. 
-
-        An appropriate thing to do would be to pass the buffer to 
-        DtSimpleError() and return. ie. In your error callback:
-
-    {
-    char errmsg[1024];
-    int ret ;
-    ret = _DtPrintDefaultError (style.display, rep, errmsg);
-    DtSimpleError(DtWarning, "><An X Error has occurred...continuing" ,
-                             errmsg, NULL);
-    return ret;
-    }
-
-    SYNOPSIS:
-
-        int _DtPrintDefaultError (dpy, event, msg)
-
-        Display *dpy;       The application's display structure.
-
-        XErrorEvent *event; Error event returned to error callback.
-
-        char *msg;          Buffer returning the formatted text of 
-                            the error message.  It won't be more than
-                            1024 bytes.
-
-*/
-
-#endif /* _usermsg_h */
-/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/Utility.h b/cde/lib/DtSvc/DtUtil2/Utility.h
deleted file mode 100644 (file)
index 88225b1..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Utility.h $XConsortium: Utility.h /main/4 1995/10/26 15:31:55 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_Utility_h
-#define _Dt_Utility_h
-
-/******************************************************************************
- *
- * _DtVectorizeInPlace() takes a string which is made up a group of
- * components, separated by a common separator character, and breaks
- * the string up into the separate components.  To reduce the amount of
- * memory used (and to reduce memory fragmentation), the string is simply
- * searched for each occurrence of the separator, and the separator is then
- * replaced by a NULL character.  Pointers to the individual components are
- * returned as a NULL-terminated array of pointers.
- *
- * The passed-in string should be malloc'ed space, since the string will
- * eventually be freed when the application frees the returned array.  If
- * you don't want the original string modified, then a copy should be made,
- * before calling this function.
- *
- * The application is responsible for freeing up this memory, and should do
- * so by calling _DtFreeStringVector().
- *
- * Parameters:
- *
- *      string           A NULL-terminated string, which is to be vectorized.
- *
- *      separator        The character which separates the components within
- *                       the string.
- *
- *****************************************************************************/
-extern char **  _DtVectorizeInPlace( char * string, 
-                                     char separator );
-
-/******************************************************************************
- *
- * _DtFreeStringVector will free up the vectorized string array returned by
- * a call to _DtVectorizeInPlace().  Both the array used to return the
- * vectorized strings, and the original string itself will be freed up.
- *
- * Parameters:
- *
- *    stringVector   The array to be freed; originally obtained by a call
- *                   to _DtVectorizeInPlace().
- *
- *****************************************************************************/
-extern void     _DtFreeStringVector( char ** stringVector );
-
-
-/*****************************************************************************
- * DtCmd String Utility routines.
- *
- *****************************************************************************
- *
- * _DtCmdStringToArrayOfStrings - takes a string and an array of pointers
- *   to strings and breaks the string into whitespace separated words.
- *
- *   A "word" is a sequence of characters that has no whitespace with
- *   the following exception:
- *
- *     -  A word may contain contain whitespace if it is delimited
- *        by a pair of matching single or double qotes.
- *
- *   "Whitespace" is a tab or blank character.
- *
- *
- * NOTES: 
- *
- *   -  The space for the "words" is malloc'd and must be free'd by
- *   the caller.
- *   - _DtCmdFreeStringVector() should be used to free up string vectors
- *   created by _DtCmdStringToArrayOfStrings().
- *
- *   -  "theArray" is NULL terminated.
- *
- * PARAMETERS:
- *
- *   char theString[];         - The string to parse.
- *
- *   char *theArray[];         - MODIFIED: gets filled with pointers to
- *                               the words that are parsed.
- *
- *****************************************************************************/
-
-
-/******************************************************************************
- *
- * _DtCmdFreeStringVector - takes an array of pointers to strings and
- *   frees the malloc'd space for the strings.
- *
- *   This does NOT free the string vector itself; It assumes that
- *   stringv is a static i.e. char *stringv[N].
- *
- * PARAMETERS:
- *
- *   char **stringv;    - MODIFIED:  Each string in the array is freed.
- *
- *****************************************************************************/
-
-extern void _DtCmdStringToArrayOfStrings( 
-                        char theString[],
-                        char *theArray[]) ;
-extern void _DtCmdFreeStringVector( 
-                        char **stringv) ;
-
-#endif /* _Dt_Utility_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/UtilityP.h b/cde/lib/DtSvc/DtUtil2/UtilityP.h
deleted file mode 100644 (file)
index 229ce7e..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         UtilityP.h $XConsortium: UtilityP.h /main/4 1995/10/26 15:32:08 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _Dt_UtilityP_h
-#define _Dt_UtilityP_h
-
-extern char *  _DtGetDisplayName( Display * display );
-
-#endif /* _Dt_UtilityP_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/DtUtil2/XlationSvc.h b/cde/lib/DtSvc/DtUtil2/XlationSvc.h
deleted file mode 100644 (file)
index ab2763e..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: XlationSvc.h /main/6 1996/08/22 09:07:18 rswiston $ */
-/************************************<+>*************************************
- ****************************************************************************
- **
- **   File:        XlationSvc.h
- **
- **   Project:     DtXlate
- **
- **   Description: table-based translation services
- **
- **   (c) Copyright 1993, 1994 Hewlett-Packard Company
- **   (c) Copyright 1993, 1994 International Business Machines Corp.
- **   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- **   (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
- **
- ****************************************************************************
- ************************************<+>*************************************/
-
-
-#ifndef _DtXLATE_XLATION_SVC_I
-#define _DtXLATE_XLATION_SVC_I
-
-#include <sys/utsname.h>      /* for UTSLEN, SYS_NMLN */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*=================================================================
-$SHAREDBEG$: This header appears in all appropriate DtXlate topics
-$INCLUDE$
-#include <XlationSvc.h>
-=$END$==========================================================*/
-
-
-#if DOC
-/*========================================================*/
-$TYPEBEG$: _DtXlateDb
-$1LINER$:  An opaque object used to represent translation dbs
-$SUMMARY$:
-_DtXlateDb is the type of a translation database object.
-The database object must be opened before use and closed
-after use.  The definition of the object is opaque to users.
-$ARGS$:
-/*================================================$SKIP$==*/
-#endif
-/*$DEF$*/
-typedef struct __DtXlateDbRec * _DtXlateDb;
-/*$END$*/
-
-
-#if DOC
-/*========================================================*/
-$CONSTBEG$: _DtXLATE_OPER_xxx
-$1LINER$:  Constants for specifying operations 
-$SUMMARY$:
-The _DtXLATE_OPER_xxx are constants that produce strings 
-used in the translation specifications when specifying
-the operation of a translation.
-
-The operation string name must be identical both in the
-source code and in the translation table.
-These constants should be used whenever referencing
-operations as part of a translation.
-/*================================================$SKIP$==*/
-#endif
-/* $DEF$, Operation constants */
-#define _DtXLATE_OPER_VERSION  "version"
-/*$END$*/
-
-#if DOC
-/*========================================================*/
-$CONSTBEG$: _DtPLATFORM_xxx
-$1LINER$:  Constants for specifying platforms strings
-$SUMMARY$:
-The _DtPLATFORM_xxx are constants that produce strings 
-used in the translation specifications and when performing
-a translation using the API.  Recall that the platform name must
-be an exact match if specified as translation criteria.
-These names are the same strings returned by 'uname(1) -s'
-and uname(2):utsname.sysname.
-
-The operation string name must be identical both in the
-source code and in the translation table.
-These constants should be used whenever referencing
-platforms as part of a translation.
-/*================================================$SKIP$==*/
-#endif
-/* $DEF$, Platform constants */
-#if defined(SVR4) || defined(_AIX)
-#define _DtPLATFORM_MAX_LEN SYS_NMLN
-#else
-#if defined(SYS_NMLN)
-#define _DtPLATFORM_MAX_LEN SYS_NMLN
-#else
-#define _DtPLATFORM_MAX_LEN UTSLEN
-#endif
-#endif
-
-#define _DtPLATFORM_UNKNOWN ((const char *)0)
-#define _DtPLATFORM_CURRENT ((const char *)0)
-#define _DtPLATFORM_CDE     "CDE"
-#define _DtPLATFORM_HPUX    "HP-UX"
-#define _DtPLATFORM_AIX     "AIX"
-#define _DtPLATFORM_SUNOS   "SunOS"
-#define _DtPLATFORM_SOLARIS "Solaris"      /* verify */
-#define _DtPLATFORM_XENIX   "Xenix"        /* verify */
-/*$END$*/
-
-
-/* Functions */
-int _DtXlateOpenDb(
-       const char *  databaseName,
-       _DtXlateDb *  ret_db);
-
-int _DtXlateOpenAndMergeDbs(
-       const char *   databaseName,
-       _DtXlateDb *   io_db);
-
-int  _DtXlateMergeDbs(
-       _DtXlateDb *  io_dbToMerge,
-       _DtXlateDb *  io_mergeIntoDb);
-
-int _DtXlateOpenAllDbs(
-         const char * searchPaths,
-         const char * databaseName,
-         _DtXlateDb * ret_db);
-
-int _DtXlateCloseDb(
-       _DtXlateDb * io_db);
-
-int _DtXlateStdToOpValue(
-       _DtXlateDb        db,
-       const char *      platform,
-       const int         version,
-       const char *      operation,
-       const char *      stdValue,
-       char * *          ret_opValue,
-       void *            ret_reserved);
-
-int _DtXlateOpToStdValue(
-       _DtXlateDb        db,
-       const char *      platform,
-       const int         version,
-       const char *      operation,
-       const char *      opValue,
-       char * *          ret_stdValue,
-       void *            ret_reserved);
-
-int _DtXlateGetXlateEnv(
-         _DtXlateDb db,
-         char *     ret_AppExecEnvPlatform,
-         int *      ret_AppExecEnvVersion,
-         int *      ret_XlateCompiledForOSVersion);
-
-/* Non DtXlate functions currently in XlationSvc.c */
-int _DtMBStrrchr (
-    const char *   s1,
-    int            value,
-    int            max_len,
-    const char * * ret_ptr );
-
-int _DtMBStrchr (
-    const char * s1,
-    int          value,
-    int          max_len,
-    const char * * ret_ptr );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_DtXLATE_XLATION_SVC_I*/
-/********* do not put anything below this line ********/
diff --git a/cde/lib/DtSvc/DtXpm/xpm.h b/cde/lib/DtSvc/DtXpm/xpm.h
deleted file mode 100644 (file)
index 33bacf0..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: xpm.h /main/4 1996/02/19 16:42:00 lehors $ */
-/*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-/*****************************************************************************\
-*                                                                             *
-* This is only a wrapper around the Xpm functions which now come as part of   *
-* Motif. This is provided for backward compatibility only and therefore only  *
-* supports symbols declared as private in the elist and none of the internal  *
-* ones.                                                                       *
-*                                                                             *
-\*****************************************************************************/
-
-#ifndef xpm_h
-#define xpm_h
-
-#include <Xm/XpmP.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int _DtXpmCreatePixmapFromData(Display *display,
-                                     Drawable d,
-                                     char **data,
-                                     Pixmap *pixmap_return,
-                                     Pixmap *shapemask_return,
-                                     XpmAttributes *attributes);
-
-extern int _DtXpmReadFileToPixmap(Display *display,
-                                 Drawable d,
-                                 char *filename,
-                                 Pixmap *pixmap_return,
-                                 Pixmap *shapemask_return,
-                                 XpmAttributes *attributes);
-
-extern int _DtXpmWriteFileFromPixmap(Display *display,
-                                    char *filename,
-                                    Pixmap pixmap,
-                                    Pixmap shapemask,
-                                    XpmAttributes *attributes);
-
-extern int _DtXpmReadFileToImage(Display *display,
-                                char *filename,
-                                XImage **image_return,
-                                XImage **shapeimage_return,
-                                XpmAttributes *attributes);
-
-extern int _DtXpmWriteFileFromImage(Display *display,
-                                   char *filename,
-                                   XImage *image,
-                                   XImage *shapeimage,
-                                   XpmAttributes *attributes);
-
-extern void _DtXpmFreeAttributes(XpmAttributes *attributes);
-
-#ifdef __cplusplus
-}                                      /* for C++ V2.0 */
-#endif
-
-#endif
diff --git a/cde/lib/DtSvc/Makefile.am b/cde/lib/DtSvc/Makefile.am
new file mode 100644 (file)
index 0000000..65890aa
--- /dev/null
@@ -0,0 +1,140 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libDtSvc.la
+
+libDtSvc_la_LDFLAGS = -version-info 2:1:0
+
+# USe CPPFLAGS so it will apply to both C and C++ components
+libDtSvc_la_CPPFLAGS = -I./include -DMULTIBYTE -DNLS16 -I../include \
+       @DT_INCDIR@ -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+       -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+
+if SOLARIS
+libDtSvc_la_CPPFLAGS += -DNO_REGCOMP
+endif
+
+libDtSvc_la_SOURCES =  DtCodelibs/buf.C \
+       DtCodelibs/buf.h \
+       DtCodelibs/filegen.C \
+       DtCodelibs/mbschr.C \
+       DtCodelibs/pathcollapse.C \
+       DtCodelibs/privbuf.C \
+       DtCodelibs/shellscan.C \
+       DtCodelibs/strcase.C \
+       DtCodelibs/strend.C \
+       DtCodelibs/strhash.C \
+       DtCodelibs/stringio.C \
+       DtCodelibs/stringio.h \
+       DtCodelibs/strtokx.C \
+       DtCodelibs/strwcmp.C \
+       DtEncap/bmsglob.c \
+       DtEncap/connect.c \
+       DtEncap/local.c \
+       DtEncap/MemoryMgr.c \
+       DtEncap/nls.c \
+       DtEncap/noio.c \
+       DtEncap/pathwexp.c \
+       DtEncap/pipe.c \
+       DtEncap/pty.c \
+       DtEncap/remote.c \
+       DtEncap/SbEvent.c \
+       DtEncap/sbstdinc.c \
+       DtEncap/scoop.c \
+       DtEncap/spc.c \
+       DtEncap/spc-env.c \
+       DtEncap/spc-error.c \
+       DtEncap/spc-exec.c \
+       DtEncap/spc-net.c \
+       DtEncap/spc-obj.c \
+       DtEncap/spc-proto.c \
+       DtEncap/spc-sm.c \
+       DtEncap/spc-termio.c \
+       DtEncap/spc-util.c \
+       DtEncap/spc-xt.c \
+       DtEncap/stringbuf.c \
+       DtEncap/Symbolic.c \
+       DtEncap/usersig.c \
+       DtUtil1/Action.c \
+       DtUtil1/ActionDb.c \
+       DtUtil1/ActionFind.c \
+       DtUtil1/ActionTt.c \
+       DtUtil1/ActionUtil.c \
+       DtUtil1/CmdMain.c \
+       DtUtil1/CmdProcess.c \
+       DtUtil1/CmdSpc.c \
+       DtUtil1/CmdUtilityP.c \
+       DtUtil1/DbLoad.c \
+       DtUtil1/DbReader.c \
+       DtUtil1/DbUtil.c \
+       DtUtil1/DndBuff.c \
+       DtUtil1/Dnd.c \
+       DtUtil1/DndDrag.c \
+       DtUtil1/DndDrop.c \
+       DtUtil1/DndFile.c \
+       DtUtil1/DndIcon.c \
+       DtUtil1/DndText.c \
+       DtUtil1/Dt.c \
+       DtUtil1/DtHash.c \
+       DtUtil1/Dts.c \
+       DtUtil1/DtsDb.c \
+       DtUtil1/DtsInit.c \
+       DtUtil1/DtsMM.c \
+       DtUtil1/DtsSort.c \
+       DtUtil1/GetMwmW.c \
+       DtUtil1/GetVWmHint.c \
+       DtUtil1/intarray.c \
+       DtUtil1/inttab.c \
+       DtUtil1/MMDb.c \
+       DtUtil1/myassertP.h \
+       DtUtil1/Qualify.c \
+       DtUtil1/Saver.c \
+       DtUtil1/SetVWmHint.c \
+       DtUtil1/SmComm.c \
+       DtUtil1/SmUtil.c \
+       DtUtil1/strtab.c \
+       DtUtil1/WmAddDelWs.c \
+       DtUtil1/WmBackWin.c \
+       DtUtil1/WmChBackD.c \
+       DtUtil1/WmGWsInfo.c \
+       DtUtil1/WmGWsList.c \
+       DtUtil1/WmMarquee.c \
+       DtUtil1/WmRequest.c \
+       DtUtil1/WmRestart.c \
+       DtUtil1/WmRmWsFcn.c \
+       DtUtil1/WmSetTitle.c \
+       DtUtil1/WmSetWs.c \
+       DtUtil1/WmWsCallB.c \
+       DtUtil1/WmWsHints.c \
+       DtUtil1/WmWsOccupy.c \
+       DtUtil2/ActIndicator.c \
+       DtUtil2/addToRes.c \
+       DtUtil2/bitmaps.h \
+       DtUtil2/ChkpntClient.c \
+       DtUtil2/ChkpntListen.c \
+       DtUtil2/CmdUtility.c \
+       DtUtil2/DtEnvMap.c \
+       DtUtil2/DtGetMessage.c \
+       DtUtil2/DtNlUtils.c \
+       DtUtil2/DtUtil.c \
+       DtUtil2/EnvControl.c \
+       DtUtil2/FileUtil.c \
+       DtUtil2/GetDispRes.c \
+       DtUtil2/GetEmbed.c \
+       DtUtil2/GetMessage.c \
+       DtUtil2/Hash.c \
+       DtUtil2/HourGlass.c \
+       DtUtil2/Info.c \
+       DtUtil2/LocaleXlate.c \
+       DtUtil2/lock.c \
+       DtUtil2/MsgCat.c \
+       DtUtil2/MsgLog.c \
+       DtUtil2/PrintXErr.c \
+       DtUtil2/SharedProcs.c \
+       DtUtil2/SmCreateDirs.c \
+       DtUtil2/SunDtHelp.c \
+       DtUtil2/SvcTT.c \
+       DtUtil2/UErrNoBMS.c \
+       DtUtil2/Utility.c \
+       DtUtil2/XlationSvc.c \
+       DtUtil2/XmWrap.c \
+       DtXpm/xpm.c
index 033a42a29bdab6b0cd9ba5951fb95a1f68f587c0..414b96621058d415f10fc465d982413c7e036b2b 100644 (file)
@@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/3 1998/08/10 18:02:40 mgreess $
 #define IHaveSubdirs
 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)'
 
-SUBDIRS = bms codelibs SPC
+SUBDIRS = codelibs
 
 MakeSubdirs($(SUBDIRS))
 DependSubdirs($(SUBDIRS))
diff --git a/cde/lib/DtSvc/include/SPC/Imakefile b/cde/lib/DtSvc/include/SPC/Imakefile
deleted file mode 100644 (file)
index d335aba..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:09:55 drk $
-
-HEADERS = chars.h spc-obj.h spc-proto.h spcE.h spcP.h
-
-all::
-
-BuildIncludes($(HEADERS),SPC,..)
-InstallMultipleFlags($(HEADERS),$(INCDIR)/SPC,$(INSTINCFLAGS))
-
-depend::
-
-clean::
diff --git a/cde/lib/DtSvc/include/SPC/chars.h b/cde/lib/DtSvc/include/SPC/chars.h
deleted file mode 100644 (file)
index f1c4673..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         char.h $XConsortium: chars.h /main/3 1995/10/26 15:43:03 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _chars_h
-#define _chars_h
-
-#define Space          (XeChar) ' '
-#define Newline                (XeChar) '\n'
-#define Tab            (XeChar) '\t'
-#define Pound          (XeChar) '#'
-#define Pad            (XeChar) '\0'
-#define Colon           (XeChar) ':'
-#define Equal           (XeChar) '='
-  
-#define Nil_String     (XeString) ""
-
-#endif /* _chars_h */
diff --git a/cde/lib/DtSvc/include/SPC/spc-obj.h b/cde/lib/DtSvc/include/SPC/spc-obj.h
deleted file mode 100644 (file)
index e694de7..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         spc-obj.h $XConsortium: spc-obj.h /main/3 1995/10/26 15:43:20 rswiston $
- * Language:     C
- *
- * (c) Copyright 1989, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _spc_obj_h
-#define _spc_obj_h
-
-typedef SPC_Channel_Ptr (*SPC_F_open)(SPC_Channel_Ptr, int, XeString);
-typedef int    (*SPC_F_close)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_read)(SPC_Channel_Ptr, int, XeString, int);
-typedef int    (*SPC_F_write)(SPC_Channel_Ptr, XeString, int);
-typedef int    (*SPC_F_reset)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_exec_proc)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_signal)(SPC_Channel_Ptr, int);
-typedef int    (*SPC_F_attach)(SPC_Channel_Ptr, int);
-typedef int    (*SPC_F_add_input)(SPC_Channel_Ptr, SbInputHandlerProc, void *); 
-typedef int    (*SPC_F_wait_for_termination)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_pre_fork)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_post_fork)(SPC_Channel_Ptr, int);
-typedef int    (*SPC_F_remove_logfile)(SPC_Channel_Ptr);
-
-/*
- **
- ** New methods for B.00
- **
-*/ 
-
-typedef int    (*SPC_F_send_eof)(SPC_Channel_Ptr);
-typedef int    (*SPC_F_set_termio)(SPC_Channel_Ptr, int, int, struct termios *);
-
-#define channel_class_part  \
-  root_class_part        \
-  SPC_F_open open;       /* opening a channel */                  \
-  SPC_F_close close;      /* close a channel */                        \
-  SPC_F_read read;       /* read from a channel */                    \
-  SPC_F_write write;      /* write to a channel */                     \
-  SPC_F_reset reset;      /* reset io to channel */                    \
-  SPC_F_exec_proc exec_proc;  /* execute a subprocess over a channel */    \
-  SPC_F_signal signal;     /* signal a subprocess over a channel */     \
-  SPC_F_attach attach;     /* attach a subprocess to this channel */    \
-  SPC_F_add_input add_input;  /* how to add input callbacks to channel */  \
-  SbInputCallbackProc input;        \
-  SPC_F_wait_for_termination wait_for_termination; /* wait for subprocess to exit */  \
-  SPC_F_pre_fork pre_fork;   /* setup before a fork */                    \
-  SPC_F_post_fork post_fork;  /* setup after a fork */                     \
-  SPC_F_remove_logfile remove_logfile; /* remove log file associated with channel */ \
-  SPC_F_send_eof send_eof;    /* close stdin of subprocess */ \
-  SPC_F_set_termio set_termio; /* set termio struct for PTY channels */
-
-typedef struct channel_class {
-  root_clasp base;
-  channel_class_part
-  } *channel_clasp;
-
-typedef struct pty_channel_class {
-  channel_clasp base;
-  channel_class_part
-  } *pty_channel_clasp;
-  
-typedef struct pipe_channel_class {
-  channel_clasp base;
-  channel_class_part
-  } *pipe_channel_clasp;
-  
-typedef struct noio_channel_class {
-  channel_clasp base;
-  channel_class_part
-  } *noio_channel_clasp;
-  
-typedef struct remote_channel_class {
-  channel_clasp base;
-  channel_class_part
-  } *remote_channel_clasp;
-
-#define call_parent_method(channel, func, args, result) { \
-  pipe_channel_clasp parent_class=(pipe_channel_clasp) (channel)->class_ptr; \
-  result=base_memf(parent_class, func, args); }
-
-/* class definitions */
-
-extern channel_clasp        channel_class;
-extern pty_channel_clasp    pty_channel_class;
-extern pipe_channel_clasp   pipe_channel_class;
-extern noio_channel_clasp   noio_channel_class;
-extern remote_channel_clasp remote_channel_class;
-
-#endif /* _spc_obj_h */
-
diff --git a/cde/lib/DtSvc/include/SPC/spc-proto.h b/cde/lib/DtSvc/include/SPC/spc-proto.h
deleted file mode 100644 (file)
index c22b8a8..0000000
+++ /dev/null
@@ -1,297 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         spc-proto.h $XConsortium: spc-proto.h /main/3 1995/10/26 15:43:39 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _spc_proto_h
-#define _spc_proto_h
-
-/*
- * Commands which are known to spcd and clients
- */
-
-/* The internet service */
-
-#define SPC_SERVICE    (XeString)"dtspc"  /* The name of the registered service */
-#define SPC_PROTOCOL   (XeString)"tcp"  /* The name of the registered protocol */
-
-  /*  MUST be a DECIMAL number as "%d" */
-#define SPC_PROTOCOL_VERSION_CDE_BASE 1000
-#define SPC_PROTOCOL_VERSION SPC_PROTOCOL_VERSION_CDE_BASE 
-  /*  is used to read the string version */
-#define SPC_PROTOCOL_VERSION_CDE_BASE_STR "1000"
-#define SPC_PROTOCOL_VERSION_STR SPC_PROTOCOL_VERSION_CDE_BASE_STR 
-
-        /* We could make this user config for old domain systems? */
-#define SPC_UNKNOWN_HOSTINFO_STR  "HP-UX:7.0:*"
-/*
- **
- ** Pseudo-filenames used for validating user
- **
-*/
-
-#define PASSED_FILE_NAME (XeString)"<!passed>!"
-#define FAILED_FILE_NAME (XeString)"<!failed>!"
-
-/*
- *** Protocol command numbers.  These MUST remain in the same order
- *** to work with previous version of the spcd
- */
-
-/* Connections to the server */
-
-#define APPLICATION_DATA   0 /* send data to subprocess */
-#define APPLICATION_STDOUT 1 /* data from subprocess */
-#define APPLICATION_STDERR 2 /* error messages from subprocess */
-
-#define ABORT              3 /* Client aborted */
-#define REGISTER           4 /* Register client */
-#define UNREGISTER         5 /* Unregister client */
-
-/* Channel requests */
-
-#define CHANNEL_OPEN       6 /* enable this channel for read/write */
-#define CHANNEL_CLOSE      7 /* no more i/o to this channel (send EOF) */
-#define CHANNEL_RESET      8 /* reset this channel */
-#define CHANNEL_ATTACH     9 /* attach PTY device to this channel */
-
-/* Application messages, client -> server */
-
-#define APPLICATION_SPAWN  10 /* start up subprocess */
-#define APPLICATION_SIGNAL 11 /* send signal to subprocess */
-
-/* application messages, server -> client */
-
-#define APPLICATION_DIED   12 /* sent when subprocess dies */
-
-#define SERVER_ERROR       13 /* server has detected an error */
-#define REPLY              14
-#define SERVER_DEBUG       15
-#define ENVIRON_RESET      16
-
-/* Query / reply protocols, client -> server -> client */
-
-#define QUERY_DEVICES      17
-#define DEVICE_REPLY       18
-
-#define QUERY_LOGFILE      19
-#define LOGFILE_REPLY      20
-
-/* Application messages, client -> server */
-
-#define DELETE_LOGFILE     21
-
-#define RESET_TERMIO       22  /* This is obsolete, (hpux binary version) */
-#define RESET_TERMIOS      23
-
-/* New B.00 protocol requests */
-  
-#define CHANNEL_SEND_EOF   24   /* Send EOF to standard input of sub process */
-#define CHANNEL_TERMIOS    25   /* Send termios info for a particular pty */ 
-#define APP_B00_SPAWN      26   /* Enhanced spawn */
-
-#define NREQS              27  /* total number of requests.  If
-                                 any are added, this should constant
-                                 should reflect the new total */
-
-#define PROT_TO_CONNECTOR(a)  a
-#define CONNECTOR_TO_PROT(a)  a
-  
-#define PDRP(_pdata) _pdata->data+REQUEST_HEADER_LENGTH
-
-#define WRITE_INT(pdata, val)\
-  sprintf_len(PDRP(pdata), (XeString)"%x", val)
-#define READ_INT(pdata, val)    sscanf(PDRP(pdata),  (XeString)"%x", &val)
-
-#define WRITE_STRING(pdata, name)\
-  sprintf_len(PDRP(pdata), (XeString)"%s", name)
-#define READ_STRING(pdata, name)   sscanf(PDRP(pdata),  (XeString)"%s", name)
-#define READ_STRING_NO_COPY(pdata, name)   (name = PDRP(pdata))
-
-#define WRITE_ABORT             WRITE_INT
-#define READ_ABORT              READ_INT
-
-#define WRITE_OPEN              WRITE_INT
-#define READ_OPEN               READ_INT
-
-#define WRITE_ATTACH            WRITE_INT
-#define READ_ATTACH             READ_INT
-
-#define WRITE_APPLICATION_DIED  WRITE_INT
-#define READ_APPLICATION_DIED   READ_INT
-
-#define WRITE_DEBUG             WRITE_STRING
-#define READ_DEBUG              READ_STRING
-
-#define WRITE_ERROR             WRITE_INT
-#define READ_ERROR              READ_INT
-
-#define WRITE_REGISTER(pdata, name, passwd, proto_ver, hostinfo)\
-  sprint_register_data(PDRP(pdata), name, passwd, proto_ver, hostinfo)
-
-#define READ_REGISTER(pdata, name, passwd, proto_rev, hostinfo)\
-  sscan_register_data(PDRP(pdata),  &name, &passwd, &proto_rev, &hostinfo)
-
-#define WRITE_REPLY(pdata, val, err)\
-  sprintf_len(PDRP(pdata), (XeString)"%x %x", val, err)
-#define READ_REPLY(pdata, val, err)\
-  sscanf(PDRP(pdata),  (XeString)"%x %x", &val, &err)
-
-#define WRITE_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \
-  sprint_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2)
-#define READ_DEVICE_REPLY(pdata, m0, s0, m1, s1, m2, s2) \
-  sscan_device_data(PDRP(pdata), m0, s0, m1, s1, m2, s2)
-
-#define WRITE_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \
-  sprint_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo)
-#define READ_LOGFILE_REPLY(pdata, logfile, proto_ver, hostinfo) \
-  sscan_logfile_data(PDRP(pdata), logfile, proto_ver, hostinfo)
-
-#define WRITE_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \
-  sprint_application_data(PDRP(pdata), (XeString)"%s %d %d ",  \
-                         path, dir, argv, envp, REQUEST_HEADER_LENGTH)
-#define READ_APPLICATION_SPAWN(pdata, path, dir, argv, envp) \
-  sscan_application_data(PDRP(pdata), (XeString)"%s %d %d ", \
-                        &path, &dir, &argv, &envp, REQUEST_HEADER_LENGTH)
-
-#define WRITE_ENVIRON_RESET(pdata, numenv) \
-  sprintf_len(PDRP(pdata), (XeString)"%d ", numenv)
-#define READ_ENVIRON_RESET(pdata, numenv) \
-  sscanf(PDRP(pdata), (XeString)"%d ", &numenv)
-
-#define WRITE_APP_DATA(pdata, buffer, len) \
-  (memcpy(PDRP(pdata), buffer, len), len)
-
-/* New B.00 protocol requests */
-#define WRITE_TERMIOS(pdata, connector, side, buffer) \
-  sprintf_len(PDRP(pdata), (XeString)"%d %d %s", connector, side, buffer)
-#define READ_TERMIOS(pdata, connector, side, buffer) \
-  sscanf(PDRP(pdata), (XeString)"%d %d %s", &connector, &side, buffer)
-  
-/* Writing a header is special, as we don't want to be offset by
-   REQUEST_HEADER_LENGTH */
-
-#define WRITE_HEADER(pdata, cid, type, len, seq) \
-  sprintf_len(pdata->data, (XeString)"%08x%02x%04x%04x", cid, type, len, seq)
-#define READ_HEADER(pdata, cid, type, len, seq) \
-  sscanf(pdata->data, (XeString)"%8x%2x%4x%4x", cid, type, len, seq)
-
-#define min(a, b) (((a) < (b)) ? (a) : (b))
-
-/*
- **
- ** The test here is reversed, that is, we check only for those
- ** requests where there is no reply expected, and assume the other
- ** ones do expect replies.
- **
-*/
-
-#define NO_REPLY_VAL  (-1)
-
-#define REPLY_EXPECTED(a, retval)  \
-  (((a==REPLY)                  || \
-    (a==APPLICATION_DATA)       || \
-    (a==APPLICATION_STDOUT)     || \
-    (a==APPLICATION_STDERR)     || \
-    (a==REGISTER)               || \
-    (a==QUERY_LOGFILE)          || \
-    (a==QUERY_DEVICES)          || \
-    (a==ABORT)                  || \
-    (a==SERVER_ERROR)              \
-    ) ? NO_REPLY_VAL : retval)
-
-typedef struct _prot_request {
-  buffered_data_ptr dataptr;
-  int seqno;
-  int request_type;
-  SPC_Channel_Ptr channel;
-  struct _prot_request *next;
-  } protocol_request, *protocol_request_ptr;
-
-typedef int (*protocol_request_handler)(protocol_request_ptr);
-
-/* spc-proto.c */
-buffered_data_ptr SPC_New_Buffered_Data_Ptr (void);
-void SPC_Reset_Protocol_Ptr (protocol_request_ptr prot, SPC_Channel_Ptr channel, XeChar req, int len);
-protocol_request_ptr SPC_New_Protocol_Ptr (SPC_Channel_Ptr channel, XeChar req, int len);
-void SPC_Free_Protocol_Ptr (protocol_request_ptr prot);
-SPC_Channel_Ptr SPC_Lookup_Channel (int cid, SPC_Connection_Ptr connection);
-SPC_Connection_Ptr SPC_Alloc_Connection (void);
-SPC_Connection_Ptr SPC_Lookup_Connection (XeString hostname);
-SPC_Connection_Ptr SPC_Lookup_Connection_Fd (int fd);
-SPC_Connection_Ptr SPC_Make_Connection (XeString hostname);
-void SPC_Add_Connection (SPC_Connection_Ptr connection);
-void SPC_Close_Connection (SPC_Connection_Ptr connection);
-int SPC_Read_Chars (SPC_Connection_Ptr connection, int request_len, XeString charptr);
-int SPC_Write_Chars (int fd, XeString charptr, int request_len);
-protocol_request_ptr SPC_Read_Protocol (SPC_Connection_Ptr connection);
-protocol_request_ptr SPC_Filter_Connection (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int reqtype, int deletep);
-void SPC_Flush_Queued_Data (SPC_Channel_Ptr channel);
-int SPC_Read_Remote_Data (SPC_Channel_Ptr channel, int connector, XeString client_buffer, int nbytes);
-int print_protocol_request (XeString name, protocol_request_ptr proto);
-int SPC_Write_Protocol_Request (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int request, ...);
-int SPC_Write_Single_Prot_Request (SPC_Connection_Ptr connection, XeString name, protocol_request_ptr prot);
-int SPC_Waitfor_Reply (SPC_Connection_Ptr connection, SPC_Channel_Ptr channel, int seqno);
-int SPC_Dispatch_Protocol (protocol_request_ptr proto, protocol_request_handler *);
-int SPC_Write_Reply (SPC_Connection_Ptr conn, protocol_request_ptr proto, int retval, int errval);
-int SPC_Send_Environ (SPC_Connection_Ptr connection, protocol_request_ptr prot);
-int sprint_counted_string (XeString buf, int count, XeString *vect, int limit);
-XeString *sscan_counted_string (XeString buf, XeString *newbuf);
-int sprint_application_data (XeString buf, XeString fmt, XeString path, XeString dir, XeString *argv, XeString *envp, int chars_used);
-int sscan_application_data (XeString buf, XeString fmt, XeString *path, XeString *dir, XeString **argv, XeString **envp, int offset);
-int sprint_device_data (XeString buf, XeString m0, XeString s0, XeString m1, XeString s1, XeString m2, XeString s2);
-int sscan_device_data (XeString buf, XeString *m0, XeString *s0, XeString *m1, XeString *s1, XeString *m2, XeString *s2);
-int sprint_logfile_data (XeString buf, XeString logfile, XeString proto_ver, XeString hostinfo);
-int sscan_logfile_data (XeString buf, XeString *logfile, XeString *proto_ver, XeString *hostinfo);
-int sprint_register_data (XeString buf, XeString username, XeString passwd, XeString proto_ver, XeString hostinfo);
-int sscan_register_data (XeString buf, XeString *username, XeString *passwd, XeString *proto_ver, XeString *hostinfo);
-int SPC_Query_Devices (SPC_Channel_Ptr channel);
-int SPC_Query_Logfile (SPC_Channel_Ptr channel);
-int SPC_Validate_User (XeString hostname, SPC_Connection_Ptr connection);
-int SPC_Get_Termio (protocol_request_ptr prot_request);
-int SPC_Get_Termios (protocol_request_ptr prot_request);
-XeString SPC_LocalHostinfo(void);
-int SPC_Send_Multi_Packet(SPC_Connection_Ptr connection,
-                         protocol_request_ptr prot,
-                         char **str_vect,
-                         int num_str,
-                         int req,
-                         XeString name,
-                         int errid);
-char **SPC_Get_Multi_Packet(SPC_Connection_Ptr connection,
-                           protocol_request_ptr prot,
-                           char **out,
-                           int *outlen,
-                           int request,
-                           XeString name);
-
-#endif /* _spc_proto_h */
diff --git a/cde/lib/DtSvc/include/SPC/spcE.h b/cde/lib/DtSvc/include/SPC/spcE.h
deleted file mode 100644 (file)
index a19c47e..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         spcE.h $XConsortium: spcE.h /main/3 1995/10/26 15:43:58 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _spcE_h
-#define _spcE_h
-
-/* Keep this up to date with the first error number declared below */
-#define SPC_First_Error_Number 100
-#define SPC_Min_Error          SPC_First_Error_Number
-
-#define SPC_Out_Of_Memory      100
-#define SPC_Bad_Argument       101
-#define SPC_Active_Channel     102
-#define SPC_Inactive_Channel   103
-#define SPC_Internal_Error     104
-#define SPC_Cannot_Fork        105
-#define SPC_Cannot_Exec        106
-#define SPC_Cannot_Execute     107
-#define SPC_No_Pipe            108
-#define SPC_No_Pty             109
-#define SPC_Bad_Connector      110
-#define SPC_Reading            111
-#define SPC_Writing            112
-#define SPC_Bad_Service        113
-#define SPC_Bad_Port           114
-#define SPC_Unknown_Host       115
-#define SPC_Bad_Socket         116
-#define SPC_Bad_Connect        117
-#define SPC_Bad_Bind           118
-#define SPC_Bad_Listen         119
-#define SPC_Bad_Accept         120
-#define SPC_Bad_Linger         121
-#define SPC_Bad_Reuse          122
-#define SPC_Bad_Sockname       123
-#define SPC_Bad_Open           124
-#define SPC_Connection_EOF     125
-#define SPC_Timeout            126
-#define SPC_Protocol           127
-#define SPC_Unexpected_Reply   128
-#define SPC_No_Channel         129
-#define SPC_Illegal_Iomode     130
-#define SPC_No_Signal_Handler  131
-#define SPC_Bad_Operation      132
-#define SPC_Bad_Fd             133
-#define SPC_Bad_Ioctl          134
-#define SPC_Bad_Select         135
-#define SPC_Bind_Timeout       136
-#define SPC_Arg_Too_Long       137
-#define SPC_Write_Prot         138
-#define SPC_Bad_Username       139
-#define SPC_Bad_Password       140
-#define SPC_Client_Not_Valid   141
-#define SPC_Cannot_Open_Slave  142
-/* #define SPC_Register_Error     143 */ /* This has been obsoleted by the
-                                            expanded register errors below */
-#define SPC_Protocol_Abort     144
-#define SPC_Env_Too_Big        145
-#define SPC_Unlink_Logfile     146
-#define SPC_Closed_Channel     147
-#define SPC_Bad_Authentication 148
-#define SPC_Cannot_Open_Log    149
-#define SPC_Connection_Reset   150
-#define SPC_Register_Username  151
-#define SPC_Register_Netrc     152
-#define SPC_Register_Open      153
-#define SPC_Register_Handshake 154
-
-#define SPC_Bad_Termios_Mode   155
-#define SPC_Bad_Termios_Speed  156
-#define SPC_Bad_Termios_CC     157
-#define SPC_Bad_Termios_Proto  158
-
-#define SPC_Bad_Signal_Name    159
-#define SPC_Bad_Signal_Value   160
-#define SPC_Bad_Signal_Format  161
-
-#define SPC_Bad_tc_Call        162
-
-#define SPC_cannot_Chdir       163
-
-#define SPC_Bad_Permission     164
-#define SPC_Cannot_Create_Netfilename  165
-#define SPC_Protocol_Version_Error     166
-
-/* JET - a special error code for goobers trying to overflow our buffers. */
-/* VU#172583 */
-#define SPC_Buffer_Overflow    167
-
-/* Keep this up to date with the last error number declared above */
-#define SPC_Max_Error          168
-
-/* The definition of the SPC Error structure has been moved to spc.h
-   (to make it public) */
-
-#endif /*  _spcE_h */
diff --git a/cde/lib/DtSvc/include/SPC/spcP.h b/cde/lib/DtSvc/include/SPC/spcP.h
deleted file mode 100644 (file)
index 603817b..0000000
+++ /dev/null
@@ -1,564 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * $XConsortium: spcP.h /main/4 1996/05/15 12:01:55 drk $
- * Language:     C
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1988,1993,1994,1996 Hewlett-Packard Company.
- * (c) Copyright 1993,1994,1996 International Business Machines Corp.
- * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
- * (c) Copyright 1993,1994,1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef _spcP_h
-#define _spcP_h
-
-#include <netdb.h>             /* hostent */
-#include <termios.h>
-
-#include <bms/bms.h>
-#include <bms/Symbolic.h>
-#include <bms/XeUserMsg.h>
-#include <bms/SbEvent.h>
-#include <bms/spc.h>
-#include <bms/scoop.h>
-#include <bms/connect.h>
-#include <bms/MemoryMgr.h>
-
-#include "chars.h"
-#include "spcE.h"
-#include "spc-obj.h"
-
-/* ---------------------------------------------------------------------- */
-
-#ifndef CDE_CONFIGURATION_TOP
-#define CDE_CONFIGURATION_TOP          "/etc/opt/dt"
-#endif
-#ifndef CDE_INSTALLATION_TOP
-#define CDE_INSTALLATION_TOP           "/usr/dt"
-#endif
-
-#define Stdin(chn)     chn->file_descs[STDIN]
-#define Stdout(chn)    chn->file_descs[STDOUT]
-#define Stderr(chn)    chn->file_descs[STDERR]
-
-/* Some necessary identifiers */
-#define OK             0
-#define ERROR          -1
-#define Undefined      -1
-
-/* Some character constants */
-
-#define Channel_ByteID (XeChar)'\077'
-
-/* And finally, the common channel identifier */
-#ifndef BITSPERBYTE
-#define BITSPERBYTE 8
-#endif
-#define CID_High_Bits  (Channel_ByteID << (BITSPERBYTE * (sizeof(int) - 1)))
-#define CID_Middle_Bits        (0x1010 << BITSPERBYTE)
-#define CID_Low_Bits   (Channel_ByteID & 0xff)
-
-#define Channel_Identifier     (CID_High_Bits | CID_Middle_Bits | CID_Low_Bits)
-
-/*** Note: If device names ever increase from: /dev/ptym/ptyp0, look here ***/
-#define PTY_NAMLEN             20
-#define EXCEPT_FLAG             -1 /* Used for TIOC handling in PTY's */
-
-/* Define lengths of buffers for protocol requests and other sizes of things */
-
-#define REQUEST_HEADER_LENGTH 20
-#define MAXREQLEN  (SPC_BUFSIZ+REQUEST_HEADER_LENGTH)
-#define DEFAULT_ENVP_SIZE     50
-
-/*
- **
- ** Definitions for select.
- **
-*/
-
-extern int max_fds;
-
-/*
- * Macros to access SPC_IOMode bit fields
- */
-
-/* These are derived from above spc bit specifications */
-#define IS_SPCIO_STDIN(a)      (a & SPCIO_WRITEONLY)
-#define IS_SPCIO_STDOUT(a)     (a & SPCIO_READONLY)
-#define IS_SPCIO_STDERR(a)     (a & SPCIO_ERRORONLY)
-#define IS_SPCIO_SEPARATE(a)   (a & SPCIO_SEPARATEREADERROR)
-
-#define IS_SPCIO_NOIO(a)       ((a & SPCIO_SOURCE_MASK) == SPCIO_NOIO)
-#define IS_SPCIO_WRITEONLY(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEONLY)
-#define IS_SPCIO_READONLY(a)   ((a & SPCIO_SOURCE_MASK) == SPCIO_READONLY)
-#define IS_SPCIO_READWRITE(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_READWRITE)
-#define IS_SPCIO_ERRORONLY(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_ERRORONLY)
-#define IS_SPCIO_WRITEERROR(a) ((a & SPCIO_SOURCE_MASK) == SPCIO_WRITEERROR)
-#define IS_SPCIO_READERROR(a)  ((a & SPCIO_SOURCE_MASK) == SPCIO_READERROR)
-#define IS_SPCIO_READWRITEERROR(a)((a&SPCIO_SOURCE_MASK) == SPCIO_READWRITEERROR)
-
-/* Style flags (mutually exclusive) */
-#define IS_SPCIO_PIPE(a)       ((a & SPCIO_STYLE_MASK) == SPCIO_PIPE)
-#define IS_SPCIO_PTY(a)         ((a & SPCIO_STYLE_MASK) == SPCIO_PTY)
-#define IS_SPCIO_NOIOMODE(a)   ((a & SPCIO_STYLE_MASK) == SPCIO_NOIOMODE)
-
-#define IS_SPCIO_LINEEDIT(a)   (a & SPCIO_LINEEDIT)
-
-/* Other non-mutually exclusive flags */
-#define IS_SPCIO_SYSTEM(a)     (a & SPCIO_SYSTEM)
-#define IS_SPCIO_LINEORIENTED(a)(a & SPCIO_LINEORIENTED)
-#define IS_SPCIO_WAIT(a)       (a & SPCIO_WAIT)
-#define IS_SPCIO_TOOLKIT(a)     (a & SPCIO_USE_XTOOLKIT)
-#define IS_SPCIO_SYNC_TERM(a)   (a & SPCIO_SYNC_TERMINATOR)
-#define IS_SPCIO_USE_LOGFILE(a) (a & SPCIO_USE_LOGFILE)
-
-#define IS_SPCIO_SIGNAL_PGRP(a) (a & SPCIO_SIGNAL_PGRP)
-#define IS_SPCIO_FORCE_CONTEXT(a) (a & SPCIO_FORCE_CONTEXT)
-
-#define SPCIO_HAS_DATA          0x2000  /* Used for line-oriented IO */
-#define HAS_DATA(chn)           (((chn->IOMode) & SPCIO_HAS_DATA) == SPCIO_HAS_DATA)
-
-#define SPCIO_UNUSED3           0x80000
-
-/* Flags for internal use only */
-
-#define SPCIO_DEALLOC_ARGV         0x4000
-#define IS_SPCIO_DEALLOC_ARGV(a)   (a & SPCIO_DEALLOC_ARGV)
-
-#define SPCIO_DELAY_CLOSE       0x8000
-#define IS_SPCIO_DELAY_CLOSE(a) (a & SPCIO_DELAY_CLOSE)
-
-#define SPCIO_DO_CLOSE         0x10000
-#define IS_SPCIO_DO_CLOSE(a)   (a & SPCIO_DO_CLOSE)
-
-/* Make sure that STATE_OFFSET is always such that you will clear the
-   IOMode flags */
-
-#define STATE_OFFSET            24  
-#define SPCIO_ACTIVE           (1<<STATE_OFFSET) /* channel has subprocess */
-#define SPCIO_DATA             (2<<STATE_OFFSET) /* channel has data */
-
-#define IS_SPCIO_ACTIVE(a)     (a & SPCIO_ACTIVE)
-#define IS_SPCIO_DATA(a)        (a & SPCIO_DATA)
-
-#define IS_ACTIVE(chn)          (IS_SPCIO_ACTIVE(chn->IOMode))
-#define IS_DATA(chn)            (IS_SPCIO_DATA(chn->IOMode))
-
-#define IS_REMOTE(chn)          (chn->connection)
-
-/* SPC state machine */
-
-#define CHANNEL_STATE(io_mode)              ((io_mode)>>STATE_OFFSET & 0x3)
-#define MAKE_CHANNEL_STATE(io_mode, _state) \
-  (((_state)<<STATE_OFFSET)   | (io_mode & ~(0x3<<STATE_OFFSET)))
-#define MAKE_STATE(_data,_proc)             ((_data)<<1    | (_proc))
-#define MAKE_STATE_INDEX(_old,_new)         ((_old)<<2     | (_new))
-#define DATA_LINE(_state)                   ((_state) >> 1)
-#define PROC_LINE(_state)                   ((_state) &  1)
-
-/* Defaults */
-
-#define DEFAULT_CHANNEL_CLASS pty_channel_class
-#define IS_SPCIO_DEFAULT(a)   !((a) & SPCIO_STYLE_MASK)
-#define SPCIO_DEFAULT         SPCIO_PTY
-
-/*
- * Type definitions for SPC file descriptors
- */
-
-/* Definitions for wires */
-
-#define READ_SIDE       0
-#define WRITE_SIDE      1
-
-/*
- * Constants and external declarations for managing the SPC daemon's
- * logfile list, exit timer and process id list.
- */
-#define SPCD_DEFAULT_TIMEOUT                           10
-#define SPCD_DEAD_PROCESS                              -1
-#define SPCD_NO_TIMER                                  -1
-#define SPCD_REQUEST_PENDING                   1
-#define SPCD_NO_REQUEST_PENDING                        0
-
-/*
- * Constants for the 'SPC_who_am_i' variable.
- */
-#define SPC_I_AM_A_CLIENT                      1
-#define SPC_I_AM_A_DAEMON                      2
-
-/*
- * External variables defined in noio.c
- */
-extern char **SPC_logfile_list;
-
-/*
- * External variables defined in spc-exec.c
- */
-extern pid_t *SPC_pid_list;
-extern char *SPC_mount_point_env_var;
-
-/*
- * External variables defined in spc-obj.c
- */
-extern int SPC_who_am_i;
-
-/*
- * The client version number.
- */
-extern int SPC_client_version_number;
-
-/*
- * The name of the directory used for authentication and
- * for temporary logfiles.
- */
-extern XeString SPCD_Authentication_Dir;
-
-/*
- * Definitions for file locations
- */
-#define SPCD_ENV_INSTALL_DIRECTORY     CDE_INSTALLATION_TOP "/config"
-#define SPCD_ENV_CONFIG_DIRECTORY       CDE_CONFIGURATION_TOP "/config"
-#define SPCD_ENV_HOME_DIRECTORY                ".dt"
-#define SPCD_ENV_FILE                  "dtspcdenv"
-#define SPCD_PROG_NAME                 "dtspcd"
-
-/*
- * The name of the remove environment 'keyword'.
- */
-#define SPC_REMOVE_VAR                 "unset"
-
-/*
- ***
- *** Start typedefs
- ***
-*/
-
-typedef int Files[3];           /* Standard set of file descriptors */
-typedef int SPC_IOMode;                /* Sub-Process Control IO Mode Bits */
-
-/* This is a "wire", a data structure used in creating communication paths
-   to / from a subprocess.  It encapsulates all the information needed by
-   all types of paths */
-  
-typedef struct _wire {
-  SPC_IOMode flags;             /* Basically, acts like an IOMode, but
-                                  we are only interested in its data bits */
-  int fd[2];
-  XeString master_name, slave_name;
-  int read_toolkit_id, except_toolkit_id;
-  struct termios master_termio, slave_termio;
-  struct _wire *next;
-} Wire;
-
-typedef struct _buffered_data {
-  XeChar data[MAXREQLEN];
-  int len, offset;
-} buffered_data, *buffered_data_ptr;
-
-typedef enum {
-  SPC_Input,
-  SPC_Exception,
-  SPC_Terminator,
-  SPC_Client
-  } SPC_Callback_Condition;
-
-/*
- * Type definition for an SPC Connection (a socket to SPCD server)
- */
-
-typedef struct _SPC_Connection {
-                                      /* The host on which other end resides */
-  XeChar          hostname[MAXHOSTNAMELEN];
-  int            sid;                /* The Socket ID */
-  XeChar         connected;          /* Whether server connection is made */
-  struct hostent *local;              /* socket address information for */
-  struct hostent *remote;            /* ... local, remote machine */
-  int            termination_id;
-  struct _SPC_Connection 
-                  *next;             /* The next server in the list */
-  XeQueue         queued_remote_data; /* queue for remote data */
-  int            protocol_version;   /* Version of protocol of remote */
-  XeString        hostinfo;          /* Info about remote, (type, os, etc) */
-
-} SPC_Connection, *SPC_Connection_Ptr;
-
-/*
- * This next macro returns a newly allocated string.  
- * The caller should free it.
- */
-
-#define CONNECTION_HOSTNAME(conn) \
-    ((conn->remote) ? XeFindShortHost((conn)->remote->h_name) : \
-     Xestrdup(XeString_Empty))
-
-/*
- * Type definition for an SPC Channel
- */
-
-typedef int (*SPC_F_read_filter)(SPC_Channel_Ptr, int, XeString, int);
-
-typedef struct _SPC_Channel {  /* Sub-Process Control Channel */
-
-  /* stuff for SCOOP */
-  channel_clasp class_ptr;
-  root_object_part
-
-  /* First, we place a channel identifier, so we can check cid (see below) */
-  int identifier;              /* The common identifier for every channel */
-
-  /* The setup request information */
-  SPC_Connection *connection;  /* The connection structure (Local = NULL) */
-
-  XeString context_dir;        /* Directory to "cd" to during spawn */
-  XeString path;               /* The command path pointer */
-  XeString *argv;              /* The command argument list pointers */
-  XeString *envp;              /* The command environment list pointers */
-
-  SPC_IOMode IOMode;           /* The IO Control Mode settings */
-
-  /* User defined data handling procedures */
-  SbInputHandlerProc Input_Handler;
-                                /* The user input handler routine */
-  void * client_data;          /* The user associated input handler data */
-                               /* Useful (ie.) as input Widget */
-  SPC_TerminateHandlerType Terminate_Handler;  /* The SIGCLD user handler routine */
-  void * Terminate_Data;       /* The client_data for user handler routine */
-
-  /* Now the recorded information */
-
-  int pid;                     /* The child Process IDentification number */
-                               /* Also the RPID for a Remote channel */
-  int cid;                     /* The remote Channel IDentification number */
-  int status;                  /* The Process status */
-  Wire *wires[3];              /* The read side/write side file descriptors */
-  Files file_descs;             /* Which file descriptors to use */
-  Wire *wire_list;              /* Pointer to list of wires we have
-                                  (used for reset & pre_fork processing) */
-  buffered_data_ptr linebufs[3]; /* Buffers for lined oriented IO */
-  SPC_F_read_filter read_filter;
-                                /* Function to use to read.  It may
-                                  be the actual read method, or it
-                                  may be a filter for newlines
-                                  (which would eventually call the read
-                                  method) */
-  XeQueue  queued_remote_data;  /* queue for remote data */
-  XeString logfile;             /* logfile name for SPCIO_USE_LOGFILE */
-  int      close_timeout;       /* Amount of time to wait for a pty close */
-  struct _SPC_Channel *next;   /* The next active channel */
-
-  int    sync_pipe[2];         /* Only used in pty.c for __hpux_pty */
-
-} SPC_Channel;
-
-/* The default shell when none can be derived */
-#ifdef hpV4
-#define DEFAULT_SHELL  (XeString ) "/usr/bin/sh"
-#else
-#define DEFAULT_SHELL  (XeString ) "/bin/sh"
-#endif /* hpV4 */
-
-/* Some macros which define the bit field portions of a wait() status */
-/* NOTE: These should be independent of integer word size */
-#define WAIT_STATUS_MASK       0xff
-#define IS_WAIT_STATUS_STOPPED 0177
-#define IS_WAIT_STATUS_EXITED  0000
-#define IS_WAIT_STATUS_DUMPED  0200
-
-typedef unsigned long SPCInputId;
-
-/* SPC/local.c */
-int close_local_channel_object (SPC_Channel_Ptr channel);
-int write_local_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
-int signal_local_channel_object (SPC_Channel_Ptr channel, int sig);
-int local_channel_object_wait_for_termination (SPC_Channel_Ptr channel);
-int remove_logfile_local_channel_object (SPC_Channel_Ptr channel);
-void local_channel_object_input_handler (void * client_data, int *source, SPCInputId *id);
-int local_channel_object_send_eof(SPC_Channel_Ptr channel);
-
-/* noio.c */
-void noio_channel_class_init (object_clasp c);
-SPC_Channel_Ptr open_noio_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
-int read_noio_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
-int write_noio_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
-int pre_fork_noio_channel_object (SPC_Channel_Ptr channel);
-int post_fork_noio_channel_object (SPC_Channel_Ptr channel, int parentp);
-int reset_noio_channel_object (SPC_Channel_Ptr channel);
-int attach_noio_channel_object (SPC_Channel_Ptr channel, int);
-void noio_channel_object_input_handler (void * client_data, int *source, SPCInputId *id);
-int send_eof_noio_channel_object(SPC_Channel_Ptr channel);
-int set_termio_noio_channel_object(SPC_Channel_Ptr, int, int, struct termios *);
-
-/* pipe.c */
-void pipe_channel_class_init (object_clasp c);
-Wire *getpipe (Wire *prevwire);
-SPC_Channel_Ptr open_pipe_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
-int read_pipe_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
-int pre_fork_pipe_channel_object (SPC_Channel_Ptr channel);
-int post_fork_pipe_channel_object (SPC_Channel_Ptr channel, int parentp);
-int reset_pipe_channel_object (SPC_Channel_Ptr channel);
-int attach_pipe_channel_object (SPC_Channel_Ptr channel, int);
-int add_input_pipe_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
-
-
-/* pty.c */
-void pty_channel_class_init (object_clasp c);
-SPC_Channel_Ptr open_pty_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
-int read_pty_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
-int pre_fork_pty_channel_object (SPC_Channel_Ptr channel);
-int post_fork_pty_channel_object (SPC_Channel_Ptr channel, int parentp);
-int reset_pty_channel_object (SPC_Channel_Ptr channel);
-int attach_pty_channel_object (SPC_Channel_Ptr channel, int pid);
-int add_input_pty_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
-int set_termio_pty_channel_object(SPC_Channel_Ptr channel, int, int,
-                                 struct termios *);
-struct termios *SPC_Get_Current_Termio(void);
-int SPC_Setpgrp(int);
-
-/* remote.c */
-void remote_channel_class_init (object_clasp c);
-Wire *get_new_remote_wire (Wire *prevwire);
-SPC_Channel_Ptr open_remote_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
-int close_remote_channel_object (SPC_Channel_Ptr channel);
-int reset_remote_channel_object (SPC_Channel_Ptr channel);
-int exec_proc_remote_channel_object (SPC_Channel_Ptr channel);
-int write_remote_channel_object (SPC_Channel_Ptr channel, XeString buffer, int len);
-int read_remote_channel_object (SPC_Channel_Ptr channel, int connection, XeString buffer, int len);
-int signal_remote_channel_object (SPC_Channel_Ptr channel, int sig);
-int attach_remote_channel_object (SPC_Channel_Ptr channel, int pid);
-int remove_logfile_remote_channel_object (SPC_Channel_Ptr channel);
-int add_input_remote_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
-int SPC_Debug_Mode (SPC_Channel_Ptr channel, XeString file);
-int send_eof_remote_channel_object(SPC_Channel_Ptr channel);
-int set_termio_remote_channel_object(SPC_Channel_Ptr channel,
-                                    int, int, struct termios *);
-
-
-/* spc-env.c */
-XeString SPC_Getenv (XeString var, XeString *envp);
-XeString *SPC_Putenv (XeString val, XeString *envp);
-XeString *SPC_Add_Env_File (XeString filename, XeString *envp);
-XeString *SPC_Create_Default_Envp (XeString *old_envp);
-XeString *SPC_Fixup_Environment (XeString *envp, SPC_Channel_Ptr channel);
-XeString *SPC_Merge_Envp (XeString *dest_envp, XeString *source_envp);
-void SPC_Free_Envp (XeString *envp);
-
-
-/* spc-exec.c */
-int SPC_Setup_Synchronous_Terminator (void);
-SPC_Connection_Ptr SPC_Channel_Terminator_Connection (SPC_Channel_Ptr channel);
-void SPC_Close_Unused (void);
-int SPC_MakeSystemCommand (SPC_Channel_Ptr channel);
-void SPC_Child_Terminated(int);
-int exec_proc_local_channel_object (SPC_Channel_Ptr channel);
-
-
-/* spc-net.c */
-Boolean SPC_Init_Local_Host_Info (void);
-int SPC_Local_Hostname (XeString hostname);
-SPC_Connection_Ptr SPC_Open_Connection (XeString hostname);
-int SPC_Open_Socket (SPC_Connection_Ptr conn, int type);
-int SPC_Contact_Server (SPC_Connection_Ptr connection);
-SPC_Connection_Ptr SPC_Init_Child (SPC_Connection_Ptr conn, int from);
-SPC_Connection_Ptr SPC_Standalone_Daemon (SPC_Connection_Ptr conn);
-int SPC_Inetd_Daemon (SPC_Connection_Ptr conn);
-SPC_Connection_Ptr SPC_Start_Daemon (int standalone);
-
-
-/* spc-obj.c */
-void spc_init_fds(void);
-object *alloc_channel_object (object_clasp c);
-void channel_class_init (object_clasp c);
-int SPC_ResetTerminator(void);
-int SPC_Initialize (void);
-SPC_Channel_Ptr SPC_Initialize_Channel (XeString hostname, int iomode);
-void SPC_Channel_Terminated (SPC_Channel_Ptr channel);
-int SPC_Check_Style (int iomode);
-int SPC_Transform_Iomode (int iomode);
-int SPC_Newline_Filter (SPC_Channel_Ptr channel, int connector, XeString buffer, int ntoread);
-int SPC_Input_Handler (SPC_Channel_Ptr channel, int connector);
-SPC_Channel_Ptr open_channel_object (SPC_Channel_Ptr channel, int iomode, XeString hostname);
-int close_channel_object (SPC_Channel_Ptr channel);
-int read_channel_object (SPC_Channel_Ptr channel, int connector, XeString buffer, int nbytes);
-int write_channel_object (SPC_Channel_Ptr channel, XeString buffer, int nbytes);
-int reset_channel_object (SPC_Channel_Ptr channel);
-int pre_fork_channel_object (SPC_Channel_Ptr channel);
-int post_fork_channel_object (SPC_Channel_Ptr channel, int parentp);
-int exec_proc_channel_object (SPC_Channel_Ptr channel);
-int signal_channel_object (SPC_Channel_Ptr channel, int sig);
-int channel_object_wait_for_termination (SPC_Channel_Ptr channel);
-int attach_channel_object (SPC_Channel_Ptr channel, int pid);
-int add_input_channel_object (SPC_Channel_Ptr channel, SbInputHandlerProc handler, void *data);
-int remove_logfile_channel_object (SPC_Channel_Ptr channel);
-
-/* spc-sm.c */
-int SPC_Change_State (SPC_Channel_Ptr channel, int connector, int data_line, int process_line);
-int error_fun (SPC_Channel_Ptr channel, int connector);
-int connector_eof (SPC_Channel_Ptr channel, int connector);
-int connector_eof_with_reset (SPC_Channel_Ptr channel, int connector);
-int sigcld_with_reset (SPC_Channel_Ptr channel, int connector);
-
-/* spc-xt.c */
-
-typedef void (*spc_handler_func_type) (void *, int *, SPCInputId *);
-int SPC_Wait_For_Termination (SPC_Channel_Ptr channel);
-void SPC_XtBreak (void);
-void SPC_XtAddInput (SPC_Channel_Ptr channel, int *id_addr, int fd, spc_handler_func_type handler, SPC_Callback_Condition condition);
-void SPC_XtRemoveInput (int *id_addr, SPC_Callback_Condition condition);
-
-
-/* spc-util.c */
-Wire *get_new_wire (void);
-void free_wire (Wire *wire);
-SPC_Channel_Ptr SPC_Find_PID (int pid);
-int spc_close (int fd);
-int spc_dup2 (int from, int to);
-int SPC_fd_to_connector (SPC_Channel_Ptr channel, int fd);
-XeString *Alloc_Argv (int n);
-void SPC_Conditional_Packet_Handler (void * client_data, int *source, SPCInputId *id);
-int sprintf_len (XeString s, XeString format, ...);
-typedef Boolean (path_search_predicate)(XeString, XeString, XeString);
-Boolean path_search (XeString path, XeString filename, path_search_predicate p);
-
-
-/* spc-error.c */
-XeString SPC_copy_string (XeString str);
-void SPC_Error (int error, ...);
-int SPC_Make_Log_Filename (XeString name, int unique);
-int SPC_Open_Log (XeString filename, int unique);
-int SPC_Close_Log (void);
-int SPC_Write_Log (XeString str);
-int SPC_Format_Log (XeString format, ...);
-SPCError *SPC_Lookup_Error (int errornum);
-SPCError *SPC_Lookup_Error (int errornum);
-
-
-/* spc-termio.c */
-XeString SPC_Decode_Termios( struct termios * );
-void SPC_Encode_Termios(XeString buff, struct termios *tio);
-
-#endif /* _spcP_h */
diff --git a/cde/lib/DtSvc/include/bms/Imakefile b/cde/lib/DtSvc/include/bms/Imakefile
deleted file mode 100644 (file)
index 078d6d2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:09:58 drk $
-
-HEADERS = \
-       MemoryMgr.h     SbEvent.h       Symbolic.h \
-       XeUserMsg.h     bms.h           connect.h \
-       pathwexp.h      sbport.h        sbstdinc.h \
-       scoop.h         spc.h           stringbuf.h \
-       usersig.h
-
-all::
-
-BuildIncludes($(HEADERS),bms,..)
-InstallMultipleFlags($(HEADERS),$(INCDIR)/bms,$(INSTINCFLAGS))
-
-depend::
-
-clean::
diff --git a/cde/lib/DtSvc/include/bms/MemoryMgr.h b/cde/lib/DtSvc/include/bms/MemoryMgr.h
deleted file mode 100644 (file)
index 551c94a..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         MemoryMgr.h $XConsortium: MemoryMgr.h /main/3 1995/10/26 15:45:08 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-/* Allocation routines */
-
-#ifndef  _MemoryMgr_h
-#define  _MemoryMgr_h
-
-void *XeMalloc   
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (size_t size);
-#else
-   ();
-#endif
-
-void XeFree   
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void * ptr);
-#else
-   ();
-#endif
-
-#define Xe_make_struct(type)     ((struct type *)XeMalloc(sizeof(struct type)))
-#define Xe_make_ntype(n, type)   ((type *)       XeMalloc((n)*sizeof(type)))
-#define Xe_make_buffer(size)     ((XeString)     XeMalloc(size))
-#define Xe_make_str(size)        ((XeString)     XeMalloc((size)+1))
-   
-#define XeCopyStringM(string_xxx) (string_xxx                          \
- ? (XeString) strcpy(Xe_make_str(strlen(string_xxx)), string_xxx)      \
- : (XeString) NULL)
-
-
-/* Dellocation */       
-
-#define Xe_release_ntype(ptr, n, type)     XeFree(ptr)
-#define Xe_release_str(ptr)                XeFree(ptr)
-
-#endif  /* _MemoryMgr_h */
-/* PLACE NOTHING AFTER THIS endif */
-
diff --git a/cde/lib/DtSvc/include/bms/SbEvent.h b/cde/lib/DtSvc/include/bms/SbEvent.h
deleted file mode 100644 (file)
index cc4a29b..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         SbEvent.h $XConsortium: SbEvent.h /main/3 1995/10/26 15:45:29 rswiston $
- * Language:     C
- *
- * (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _SbEvent_h
-#define _SbEvent_h
-
-typedef unsigned long SbInputId;
-
-typedef void (*SbInputCallbackProc)
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void* data, int *fd, SbInputId *id);
-#else
-   ();
-#endif
-    
-extern SbInputId (*SbAddInput_hookfn)
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-    (int fd, SbInputCallbackProc proc, void* data);
-#else
-    ();
-#endif
-    
-extern SbInputId (*SbAddException_hookfn)
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-    (int fd, SbInputCallbackProc proc, void* data);
-#else
-   ();
-#endif
-
-extern void  (*SbRemoveInput_hookfn)    
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (SbInputId id);
-#else
-   ();
-#endif
-
-extern void  (*SbRemoveException_hookfn)
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (SbInputId id);
-#else
-   ();
-#endif
-
-extern void  (*SbMainLoopUntil_hookfn)  
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (Boolean *flag);
-#else
-   ();
-#endif
-
-extern void XeCall_SbMainLoopUntil
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (Boolean *flag);
-#else
-   ();
-#endif
-
-extern void  (*SbBreakMainLoop_hookfn)  
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void);
-#else
-   ();
-#endif
-
-
-#endif /* _SbEvent_h */
diff --git a/cde/lib/DtSvc/include/bms/Symbolic.h b/cde/lib/DtSvc/include/bms/Symbolic.h
deleted file mode 100644 (file)
index 14eac3a..0000000
+++ /dev/null
@@ -1,372 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         Symbolic.h $XConsortium: Symbolic.h /main/3 1995/10/26 15:45:51 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-/*  SYMBOLS */
-
-#ifndef _Symbolic_h_
-#define _Symbolic_h_
-
-/* -------------------------------------------- */
-/* Requires:                                   */
-#ifdef __recursive_includes
-#include <bms/bms.h>
-#endif
-/* -------------------------------------------- */
-
-/****************************************************************************/
-/*  Symbol (hash) Tables                                                   */
-
-/*
-
-There are two types of symbol (hash) tables.  The common case is where the
-key (index) is ascii string.  The Xe_intern() and XeRegisterSymbol()
-routines assume this type of table.  In these cases an "XeSymbol" entry is
-created in the symbol table (see type below). After it is created a COPY of
-the string is made and stored in the "name" field.  The "value" field is
-free for the user to fill in on his own.
-
-*/
-
-typedef struct _XeSymbol {
-    XeString   name;
-    void       *value;
-} *XeSymbol;
-
-/* 
-This type is used for the XeRegisterFunction() routine.
-*/
-
-typedef void (*XeAnyFunction) ();
-
-
-/*
-The second type of table is where the user defines his own type of
-data, hash functions, compare functions, etc.   
-*/
-
-/* The following types for the the user configurable functions that */
-/* are set with the Xe_set_syms_fns() routine.                      */
-/* ---------------------------------------------------------------- */
-
-
-/* CMP_FN:                                                             */
-/*                                                                     */
-/*   Any user defined function should return "0" for a "match"                 */
-/*                                                                     */
-/*   Used for Xe_intern() and XeRegisterSymbol()                       */
-/*                                                                     */
-/*   If NO "cmp_fn", strcmp("next_table_entry"->name, "name")          */
-/*   If    "cmp_fn", cmp_fn("next_table_entry"->name, "name")          */
-/*                                                                     */
-/*   Used for Xe_intern_anysym()                                       */
-/*                                                                     */
-/*   If NO "cmp_fn", strcmp("next_table_entry"->name, "data"->name)     */
-/*   If    "cmp_fn", cmp_fn("next_table_entry",       "data")           */
-/* -------------------------------------------------------------------- */
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   typedef int (*XeSymFn_cmp) (void *, void *);     /* 0 mean match */
-#else
-   typedef int (*XeSymFn_cmp) ();
-#endif
-
-
-/* HASH_FN:                                                               */
-/*                                                                        */
-/*   Note, the internal hash function in not user accesable.              */
-/*                                                                        */
-/*   Used for Xe_intern() and XeRegisterSymbol()                          */
-/*                                                                        */
-/*   If NO "hash_fn", internal_hash("next_table_entry"->name, "name")      */
-/*   If    "hash_fn",       hash_fn("next_table_entry"->name, "name")      */
-/*                                                                        */
-/*   Used for Xe_intern_anysym()                                          */
-/*                                                                        */
-/*   If NO "hash_fn", internal_hash("next_table_entry"->name, "data"->name)*/
-/*   If    "hash_fn",       hash_fn("next_table_entry"      , "data")      */
-/* ----------------------------------------------------------------------- */
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   typedef unsigned int (*XeSymFn_hash)  (void *, unsigned int);
-#else
-   typedef unsigned int (*XeSymFn_hash)  ();
-#endif
-
-/* INIT_FN:                                                            */
-/*                                                                     */
-/*   Used for Xe_intern() and XeRegisterSymbol()                       */
-/*                                                                     */
-/*     1) A XeSymbol entry is created,                                 */
-/*        - XeSymbol->name = strdup("name"),                           */
-/*        - XeSymbol->value = NULL                                     */
-/*     2) If a "init_fn" is configured,                                */
-/*        -  XeSymbol->value = init_fn( XeSymbol, 0 )                  */
-/*                                                                     */
-/*   Used for Xe_intern_anysym()                                       */
-/*                                                                     */
-/*     1) If "size" != 0,                                              */
-/*        - malloc "size" bytes,                                       */
-/*        - copy "size" bytes from "data" into malloced space,         */
-/*        - Save pointer to malloc space as user's data pointer                */
-/*        Else                                                         */
-/*        - Save "data" as pointer to user's data                      */
-/*     3) If a "init_fn" is configured,                                        */
-/*        - call init_fn( user's data pointer, "size" )                        */
-/*        - set user's data pointer to return value of init_fn         */
-/*          ONLY if "size" was zero.                                    */
-/*                                                                     */
-/*       If size is non zero AND there is a user's malloc function,    */
-/*        beware that the return value from the malloc function is not  */
-/*        save anywhere by these routines.  If size was zero, the       */
-/*        return value of the user's function is kept.                  */
-/*                                                                     */
-/* -------------------------------------------------------------------- */
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   typedef void * (*XeSymFn_init)(void *, unsigned int);
-#else
-   typedef void * (*XeSymFn_init)();
-#endif
-
-/* CLEAN_FN:                                                           */
-/*                                                                     */
-/*   If created by Xe_intern() or XeRegisterSymbol()                   */
-/*                                                                     */
-/*     1) free(XeSymbol->name)                                         */
-/*     2) If a "clean_fn" is configured,                               */
-/*        - clean_fn(XeSymbol->value),                                 */
-/*        - the XeSymbol entry is deleted.                             */
-/*                                                                     */
-/*   If created by Xe_intern_anysym()                                  */
-/*                                                                     */
-/*     1) If a "clean_fn" is configured,                                       */
-/*        - init_fn( user's data pointer, "size" )                     */
-/*     2) If "size" != 0 during at creation time,                      */
-/*        - free( user's data pointer )                                        */
-/*                                                                     */
-/*     Take note of the what happens during creation with "size" is     */
-/*     non-zero and there is a user's malloc function.  The result of   */
-/*     the user's malloc function will be passed to this clean function */
-/*     only if "size" was zero at creation time.  Otherwise, the memory */
-/*     malloc'ed by this routine due to the non-zero size parameter is  */
-/*     what is passed to the user's clean function.                     */
-/* -------------------------------------------------------------------- */
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   typedef void (*XeSymFn_clean)  (void *);
-#else
-   typedef void (*XeSymFn_clean)  ();
-#endif
-   
-/* This is what an internal symbol table entry looks like: */
-/* ------------------------------------------------------- */
-typedef struct _XeSymtabList {
-    struct _XeSymtabList *rest;
-    void                        *data;
-    Boolean                     data_is_XeSymbol;
-    Boolean                     data_is_malloc_mem;
-} *XeSymtabList;
-
-
-/* This is the master record for a symbol table */
-/* -------------------------------------------- */
-
-typedef struct _XeSymTable
-{
-    unsigned int   hashsize;    /* # of hash buckets.                   */
-    XeSymtabList   *list;      /* Hash buckets.                        */
-
-    XeSymtabList   curr_list;   /* Used to dump/traver the table.       */
-    unsigned int   curr_hash;
-    
-    XeSymFn_cmp    cmp_fn;      /* Read above description with each     */
-    XeSymFn_hash   hash_fn;     /* function typedef for more info.      */
-    XeSymFn_init   init_fn;    
-    XeSymFn_clean  clean_fn;   
-} *XeSymTable;
-
-
-/* Create a new hashtable. "hashsize must be power of 2 if using default */
-/* hash function (no checking is done to ensure this).                   */
-/* --------------------------------------------------------------------- */
-XeSymTable Xe_new_symtab
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (unsigned int hashsize);
-#else
-   ();
-#endif
-
-
-/* Create the default symbol table.  If already created, just */
-/* return the symtable pointer.                              */
-/* ---------------------------------------------------------- */
-XeSymTable Xe_default_symtab
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void);
-#else
-   ();
-#endif
-
-
-/* Configure user defined function for use with symtab routines.   */
-/* NOTE: Be sure you understand the interaction of these functions */
-/*       Read the decriptions with each of the typdef's above.  A  */
-/*       null function pointer will overwrite any previously       */
-/*       installed value.                                         */
-/* --------------------------------------------------------------- */
-XeSymTable Xe_set_sym_fns
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeSymTable     t, 
-    XeSymFn_cmp    cmp_fn, 
-    XeSymFn_init   init_fn,
-    XeSymFn_clean  clean_fn, 
-    XeSymFn_hash   hash_fn);
-#else
-   ();
-#endif
-
-
-/* Find or create a symbol for "name".  Its "value" is set to NULL.  */
-/* None of the user defined init/cmp, etc functions are honored by   */
-/* this routine                                                      */
-/* WARNING: Read the notes for the function typedef's above.         */
-/* ----------------------------------------------------------------- */
-XeSymbol Xe_intern 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeSymTable t, ConstXeString const name);
-#else
-   ();
-#endif
-
-
-/* Find the symbol for "name".  NULL is returned if not found.       */
-/* None of the user defined init/cmp, etc functions are honored by   */
-/* this routine                                                      */
-/* WARNING: Read the notes for the function typedef's above.         */
-/* ----------------------------------------------------------------- */
-XeSymbol Xe_lookup
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeSymTable t, ConstXeString const name);
-#else
-   ();
-#endif
-
-/****************************************************************************/
-/*  LISTS                                                                  */
-
-typedef struct _XeList {   
-   struct _XeList *rest;
-   void          *data; 
-} *XeList;
-
-/* make a list from data and rest */
-/* ------------------------------ */
-XeList Xe_make_list 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void *data, XeList rest);
-#else
-   ();
-#endif
-
-
-/****************************************************************************/
-/* QUEUES                                                                  */
-
-typedef struct _XeQueue {
-  XeList head;
-  XeList tail;
-  void * null;      
-} *XeQueue;
-
-/* for static or auto struct queues */
-/* -------------------------------- */
-XeQueue Xe_init_queue 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeQueue q, void * nullval);
-#else
-   ();
-#endif
-       
-XeQueue Xe_make_queue 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (void * nullval);
-#else
-   ();
-#endif
-
-void Xe_release_queue 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeQueue q);
-#else
-   ();
-#endif
-
-/* nullval returned if queue empty */
-/* ------------------------------- */
-void * Xe_pop_queue 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeQueue q);
-#else
-   ();
-#endif
-
-/* nullval returned if not found   */
-/* ------------------------------- */
-void * Xe_delete_queue_element 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeQueue q, void * val);
-#else
-   ();
-#endif
-
-void Xe_push_queue 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeQueue q, void * val);
-#else
-   ();
-#endif
-
-/* user declares his own "type var" */
-/* -------------------------------- */
-#define Xe_for_queue(type,var,q)       \
-       XeList q_next, q_list;          \
-       for(q_list = q->head;           \
-           q_list && (var = (type) q_list->data, q_next = q_list->rest , 1);\
-           q_list = q_next)
-
-
-/*  PUT NOTHING AFTER THIS endif */
-#endif /* _Symbolic_h_ */
-
diff --git a/cde/lib/DtSvc/include/bms/XeUserMsg.h b/cde/lib/DtSvc/include/bms/XeUserMsg.h
deleted file mode 100644 (file)
index 6d2925d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         XeUserMsg.h $XConsortium: XeUserMsg.h /main/3 1995/10/26 15:46:16 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _XeUserMsg_h
-#define _XeUserMsg_h
-
-#include <bms/sbport.h>
-
-/* Global Variables */
-/* ---------------- */
-
-extern XeString XeProgName; /* saves value of arg[0] */
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-typedef enum {
-  XeIgnore,
-  XeInformation,
-  XeWarning,
-  XeError,
-  XeFatalError,
-  XeInternalError
-} XeSeverity;
-#else
-# define XeIgnore 0
-# define XeInformation 1
-# define XeWarning 2
-# define XeError 3
-# define XeFatalError 4
-# define XeInternalError 5
-  typedef int XeSeverity;
-#endif
-
-#define export               /* Use this noop to mark non-static procedures. */
-
-#endif /* _XeUserMsg_h */
-/* DON'T ADD STUFF AFTER THIS #endif */
diff --git a/cde/lib/DtSvc/include/bms/bms.h b/cde/lib/DtSvc/include/bms/bms.h
deleted file mode 100644 (file)
index 15e03b7..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         bms.h $XConsortium: bms.h /main/4 1996/06/21 17:20:07 ageorge $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _bms_h
-#define _bms_h
-
-#ifdef SVR4
-#include <netdb.h>             /* MAXHOSTNAMELEN */
-#else
-#include <sys/param.h>         /* MAXHOSTNAMELEN */
-#endif
-
-/* WARNINGS:                                                 */
-/*                                                           */
-/*   1) <bms/sbport.h> MUST included before this file.         */
-/*   2) Any <X11/...> includes MUST come before this file.    */
-/* ---------------------------------------------------------- */
-
-#ifndef _XtIntrinsic_h              /* Define "Boolean" if not already */
-   typedef char Boolean;            /* defined from <X11/Intrinsic.h>  */
-#endif
-
-#ifndef TRUE
-#define TRUE 1
-#endif 
-
-#ifndef FALSE
-#define FALSE 0
-#endif 
-
-extern char *XeToolClass;
-
-extern XeString         XeProgName;                  /* From noXinit.c     */
-
-extern XeString                                /* Returns Malloc'ed memory */
-XeSBTempPath
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString);
-#else
-   ();
-#endif
-
-/* DON'T ADD STUFF AFTER THIS #endif */
-#endif /* _bms_h */
-
diff --git a/cde/lib/DtSvc/include/bms/connect.h b/cde/lib/DtSvc/include/bms/connect.h
deleted file mode 100644 (file)
index af209a6..0000000
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         connect.h $XConsortium: connect.h /main/3 1995/10/26 15:47:00 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _connect_h
-#define _connect_h
-
-#if defined(__cplusplus) && defined(__c_callable)
-extern "C" {
-#endif
-
-int XeParseFileString 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString line, XeString *host_addr, XeString *path_addr);
-#else
-   ();
-#endif
-#if defined(__cplusplus) && defined(__c_callable)
-}
-#endif
-   
-/*
-       Take the filespec as a line and return a path the host and path
-       components as separate fields (finds the ':' and replaces it with
-        NULL).  THIS FUNCTION MUNGES THE ORIGINAL LINE.
-*/
-     
-extern XeString XeFindHost 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString host_spec);
-#else
-   ();
-#endif
-
-extern XeString XeFindShortHost 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString host_spec);
-#else
-   ();
-#endif
-/*
-       Returns a host name corresponding to host_spec. 
-
-       In all cases a NEW STRING, OWNED BY THE
-       CALLER, is returned.  XeFindHost returns the full host specification
-       including domain if there is one.  XeFindShortHost does not
-       include the domain.  These functions can be used to convert between
-       domain and simple names when needed.  The domain names should be
-       used always internally and the simple names only used for display.
-*/
-
-extern int Xegethostname 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString hostname, unsigned int size);
-#else
-   ();
-#endif
-
-#if defined(__cplusplus) && defined(__c_callable)
-extern "C" {
-#else
-extern 
-#endif   
-int Xegetshorthostname 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString hostname, unsigned int size);
-#else
-   ();
-#endif
-#if defined(__cplusplus) && defined(__c_callable)
-}
-#endif
-   
-/*
-       Identical to the libc function gethostname, except that Xegethostname
-       returns a full domain qualified name and Xegetshorthostname returns
-       a simple name.  These functions are necessary because the system
-       hostname may or may not contain a domain name and the internal
-       representation should always be canonical form (domain qualified).
-       Use Xegethostname except when the name is being used for display
-       purposes only.  Storage allocation is identical to gethostname
-       (it copies into the caller's buffer).
-*/
-
-#if defined(__cplusplus) && defined(__c_callable)
-extern "C" {
-#else
-extern 
-#endif   
-Boolean XeIsLocalHostP
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString hostname);
-#else
-   ();
-#endif
-#if defined(__cplusplus) && defined(__c_callable)
-}
-#endif
-   
-/*
-       Returns true if the hostname passed in identifies the host on which
-       this function is executed.  This is needed in order to handle all
-       combinations of simple and domain-qualified names for either the
-       hostname passed in or the one defined on the local host.  Be sure
-       to include Xe.h or provide a local declaration for this function
-       as Boolean is not the same length as int and it won't function
-       correctly without the declaration.
-*/
-#if defined(__cplusplus) && defined(__c_callable)
-extern "C" {
-#else
-extern
-#endif   
-Boolean XeIsSameHostP
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString host1, XeString host2);
-#else
-   ();
-#endif
-#if defined(__cplusplus) && defined(__c_callable)
-}
-#endif
-   
-/*
-       Returns true if host1 and host2 specify the same host.  This is
-       needed, because either or both hosts may be specified with or
-       without domain qualifiers, and the correct result must be
-       obtained.  This function canonicalizes both and compares them
-       only in canonical form.
-*/
-
-extern Boolean XeIsSameHostP 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString host1, XeString host2);
-#else
-   ();
-#endif
-/*
-       Returns true if host1 and host2 specify the same host.  This is
-       needed, because either or both hosts may be specified with or
-       without domain qualifiers, and the correct result must be
-       obtained.  This function canonicalizes both and compares them
-       only in canonical form.
-*/
-
-XeString XeCreateContextString 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString host, XeString directory, XeString file);
-#else
-   ();
-#endif
-/* 
-       XeCreateContextString changes the given context into a
-       label which is exactly the same as the one shown in a
-       fileview modeline.  A NEW STRING, OWNED BY THE CALLER,
-       is returned.
-*/
-
-#define XeEliminateDots(path) (XeString)pathcollapse(path, path, FALSE)   
-/*
-       Removes /./'s and /../ 's from path.  THIS ROUTINE OVERWRITES
-       THE path IT WAS PASSED.  If there are too many ..'s in path,
-       NULL is returned, so you better keep a pointer to path if you hope
-       to reclaim it.  Does not handle host:/path, shell variables or other
-       exotic animals. 
-*/     
-
-int Xechdir
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)   
-          (const char *path);
-#else
-          ();
-#endif
-/*
-       performs a chdir and caches the new directory in $PWD so that
-       Xegetcwd() can get the current directory without slow stat calls
-*/
-
-char *Xegetcwd
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-               (char *buf,
-                int size);
-#else
-               ();
-#endif
-/*
-       version of getcwd() which uses cached $PWD (or $PWD from shell)
-       if available and calls getcwd only when PWD not set
-*/
-
-/* DON'T ADD STUFF AFTER THIS #endif */
-#endif /* _connect_h */
-
diff --git a/cde/lib/DtSvc/include/bms/pathwexp.h b/cde/lib/DtSvc/include/bms/pathwexp.h
deleted file mode 100644 (file)
index 6571cac..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         pathwexp.h $XConsortium: pathwexp.h /main/3 1995/10/26 15:47:18 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef        _pathwexp_h
-#define        _pathwexp_h
-
-extern XeString Xe_shellexp
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeString path);
-#else
-   ();
-#endif
-
-#endif /* _pathwexp_h */
diff --git a/cde/lib/DtSvc/include/bms/sbport.h b/cde/lib/DtSvc/include/bms/sbport.h
deleted file mode 100644 (file)
index 8f26b02..0000000
+++ /dev/null
@@ -1,294 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         sbport.h $TOG: sbport.h /main/4 1998/03/16 14:40:52 mgreess $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef PORT_H_INCLUDED
-#define PORT_H_INCLUDED
-
-/*---------------------------------------------------------------------------
-
-  The following is a list of #defines that may be tested for in the code:
-  =======================================================================
-
-  __STDC__             - Will be set for ANSI C compilers
-  __cplusplus          - Will be set for C++ compilers
-  __STDCPP__           - Will be set for ANSI and C++ compilers
-
- __hpux                - Will be set for HP-UX systems
- __sun                 - Will be set for SUN systems
- __aix                  - Will be set for IBM (AIX) systems
-
-  __sysv               - Set when using SYSV semantics (e.g. HP, SUN)
-  SYSV                 - Set when __sysv is set (needed for some X11 includes)
-  __bsd                        - Set when using BSD semantics
-
- __hp_7_0              - For running on HP-UX 7.0 
- __hp_nls_16           - Set if HP's 16 bit support is to be compiled in
- __hp_color_object      - Set if HP's ColorObject extension is available in the Motif library
- __hp9000s300          - Set for S300 (and S400?) HP-UX machines
- __hp9000s800          - Set for S800 (PA-RISC) machines
-
- __sparc               - Set for SUN sparc machines
- __sun68k              - Set for SUN m68k machines
-
- __identification_strings - Set when RCS header strings are to be in code
- __recursive_includes  - Set to have .h files #includes prerequisite files
- __char_ptr_yytext      - Set if the lex/yacc variable yytext is defined
-                         to be of type char[].
- __unsigned_char_ptr_yytext - Set if the lex/yacc variable yytext is defined
-                             to be of type unsigned char[].
-
- KEEP_DEADWOOD          - Currently set to "FALSE".  If set to "TRUE",
-                          lots of old code and semantics will be enabled.
-
-----------------------------------------------------------------------------*/
-
-
-
-/* First task is to make sure all of the defines that we use in the */
-/* code are properly set up.                                       */
-/* ---------------------------------------------------------------- */
-#if !defined(sun)
-#if !defined(__STDCPP__) && (defined(__STDC__) || defined(__cplusplus))
-#   define __STDCPP__
-#endif
-#endif
-
-#if defined(sun) && !defined(__sun)
-#   define __sun
-#endif
-
-#if defined(hpux) && !defined(__hpux)
-#   define __hpux
-#endif
-
-#if defined(_AIX) && !defined(__aix)
-#   define __aix
-#   define OSF_MOTIF_1_1_1
-#   define OSF_BUG
-#endif
-
-#ifdef __hpux 
-#   define __sysv
-/* __hp9000s300 or __hp9000s800 is defined by HP-UX cpp */
-#    if !defined (__hpux_8_0)
-#       define __hp_7_0
-#    endif
-#    define __hp_nls_16
-#    define __hp_color_object
-#    define __unsigned_char_ptr_yytext
-#endif  /* __hpux */
-
-#ifdef __sun
-#   if defined(sparc) && !defined(__sparc)
-#      define __sparc
-#   else
-#      if defined(mc68000) || defined(__mc68000)
-#         define __sun68k
-#      endif
-#   endif
-#   define __hp_color_object  /* Should only be set if linking with    */
-                              /* HP's version of Motif (1.1 or later). */
-#   define __char_ptr_yytext
-#   define __c_callable         /* Set so VUE can link with libbms. */
-#endif
-
-#ifdef __aix
-#       define __sysv
-#endif
-
-#if defined(__sysv) && !defined(SYSV)
-#   define SYSV                                /* Needed for X11 include files */
-#endif
-
-#ifndef KEEP_DEADWOOD                  /* Setting this to "TRUE" will cause */
-#   define  KEEP_DEADWOOD FALSE                /* all sorts of unknown problems.    */
-#endif
-
-#ifdef __cplusplus
-
-#define UNUSED_PARM(_parm)
-
-#else
-
-#define UNUSED_PARM(_parm) _parm
-
-#endif /* __cplusplus */
-
-/* There are a few things that are not part of XPG3 that we need.    */
-/* sockets are one of them.  To use this stuff, we just include the  */
-/* non XOPEN include files and things work.  However, there are a    */
-/* few XOPEN include files that have stuff to support this extra     */
-/* functionality (e.g. sockets) that are #ifdef'ed for conditional   */
-/* inclusion with the _XOPEN_SOURCE define.  In order to pull those  */
-/* extra types in, we relas the XPG3 compliance for that file.  The  */
-/* following are the three areas where we must do this:              */
-/*                                                                  */
-/* __need_timeval      gets "struct timeval"                                */
-/* __need_fd_set       gets "typedef struct fd_set {..."            */
-/* __need_S_IF         gets "S_IFNWK, S_IFLNK"                      */
-/* __need_all_signals  gets all SIGxxx values                       */
-/* __need_all_errors   gets all errno values                         */
-/*                                                                  */
-/* We get at these declarations differently on each platform...      */
-/* ----------------------------------------------------------------- */
-
-#if defined(__need_timeval)            /* Get "struct timeval" */
-#   if defined(__sun) || defined(__aix)
-#      include <sys/time.h>
-#   endif
-#endif /* __need_timeval */
-
-
-#if defined(__need_fd_set)             /* Get "typedef struct fd_set" */
-#   ifdef _AIX
-#       include <sys/select.h>
-#   endif
-#endif /* __need_fd_st */
-
-/* We also use the following non XPG3 types.  However, they may be   */
-/* defined when we relax the XPG3 compliance to get the stuff talked */
-/* about above.  So, declare them only if we don't already have them */
-/* ----------------------------------------------------------------- */
-
-#if defined(_HPUX_SOURCE) || defined(__sun) || defined(_INCLUDE_BSD_SOURCE) || defined(__aix) || defined(__linux__)
-       /* the "u_types" are defined in standard files */
-#      undef _INCLUDE_BSD_SOURCE
-#else
-       typedef unsigned int   u_int;
-       typedef unsigned char  u_char;
-       typedef unsigned short u_short;
-       typedef unsigned long  u_long;
-#endif
-
-/* Use these if you must ensure that  you get a specific number of bits */
-/* -------------------------------------------------------------------- */
-typedef char  int8;
-typedef short int16;
-typedef long  int32;
-typedef unsigned char  u_int8;
-typedef unsigned short u_int16;
-typedef unsigned long  u_int32;
-
-#define __xechar_is_signed
-#undef  __xechar_is_unsigned
-
-#ifdef __xechar_is_signed
-typedef char XeChar;
-#else
-typedef unsigned char XeChar;
-#endif
-
-
-/* The following type is a VARIABLE pointer to a VARIABLE XeChar. */
-
-typedef XeChar *XeString;
-
-/***********************************************************************
-*      The following type is a VARIABLE pointer to a CONST XeChar.
-*      Thus,   ConstXeString p;
-*              p = "abcd"; #Legal
-*              *p = "\0';  #Illegal
-*
-*      This is NOT the same as         (const XeString)
-*      which is equivilent to          (XeChar * const)
-*
-*      Thus,   const XeString p;
-*              p = "abcd"; #Illegal
-*              *p = "\0';  #Legal
-*
-************************************************************************/
-
-typedef const XeChar *ConstXeString;
-
-typedef unsigned short XeChar16;
-typedef XeChar16 *XeString16;
-
-#define XeString_NULL  (XeString) 0
-#define XeString_Empty (XeString) ""
-#define XeChar_NULL    (XeChar) 0
-
-/* XtPointer was added in R4, so define it ourselves in R3 */
-#ifdef __motif10
-typedef void *  XtPointer;
-#endif
-
-
-/* The X11 R4 header file "Intrinsic.h" is internally inconsistent  */
-/* with respect to XtAppAddInput. The third parameter ("condition") */
-/* is defined to be of type XtPointer (void *), but the input masks */
-/* commonly used with it are scalar values. Until the problem is    */
-/* corrected by M.I.T, use the following type as a cast in calls    */
-/* to XtAppAddInput. When it is corrected, change this typedef      */
-/* accordingly.                                                            */
-/* ---------------------------------------------------------------- */
-typedef void * XeInputMask;
-
-#ifdef __cplusplus
-/* Define several macros to handle the C++ vs XtOffset problem.     */
-/* The problem is that C++ cannot at compile time evaluate the      */
-/* XtOffset macro within an initializer.  XtOffset is most often    */
-/* used within an XtResource array initialization list.             */
-/* class_names must be a typedef, non pointer type.                 */
-/* ---------------------------------------------------------------- */
-
-#define XtOffsetSimpleField(class_name,field) \
-          ((Cardinal) &class_name::field - 1)
-
-#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \
-          (((Cardinal) &class_name1::field1 - 1) + ((Cardinal) &class_name2::field2 - 1))
-
-#else
-#define XtOffsetSimpleField(class_name,field) \
-       ((Cardinal) (((char *) (&(((class_name *)NULL)->field))) - ((char *) NULL)))
-
-#define XtOffsetCompoundField(class_name1,field1,class_name2,field2) \
-       ((Cardinal) (((char *) (&(((class_name1 *)NULL)->field1))) - ((char *) NULL))) + \
-       ((Cardinal) (((char *) (&(((class_name2 *)NULL)->field2))) - ((char *) NULL)))
-#endif
-
-#ifndef __identification_strings
-#define SUPPRESS_RCS_ID        /*forces equivalent action for VED/EDIT shared files*/
-#endif
-
-#ifndef SBSTDINC_H_NO_INCLUDE
-#include <bms/sbstdinc.h>
-#endif
-
-#ifdef __aix
-#       undef  NULL
-#       define NULL 0   /* AIX uses NULL=(void *)0 */
-#endif
-
-#endif /* PORT_H_INCLUDED */
-
diff --git a/cde/lib/DtSvc/include/bms/sbstdinc.h b/cde/lib/DtSvc/include/bms/sbstdinc.h
deleted file mode 100644 (file)
index 17dc520..0000000
+++ /dev/null
@@ -1,244 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         sbstdinc.h $TOG: sbstdinc.h /main/7 1998/07/31 17:50:45 mgreess $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _sbstdinc_h
-#define _sbstdinc_h
-
-#include <sys/types.h>
-#include <sys/param.h>
-
-#ifdef SVR4
-#include <netdb.h>             /* MAXHOSTNAMELEN */
-#endif /* SVR4 */
-
-#ifndef howmany
-#define howmany(x, y)  (((x)+((y)-1))/(y))   /* From <sys/param.h>, but not an XPG3 file */
-#endif
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <nl_types.h>
-
-/************************************************************************/
-/* Routines not defined in include files (yet).                                */
-/************************************************************************/
-
-/* BSD has bzero(), bcmp(), and bcopy() defined. */
-#if !defined(__bsd) && !defined(CSRG_BASED)
-
-#if defined(__STDC__)
-#if !defined(__linux__) && !defined(_XFUNCS_H_) && !defined(sun)
-extern void bcopy(char *b1, char *b2, int length);
-extern int  bcmp(char *b1, char *b2, int length);
-extern void bzero(char *b, int length);
-#endif
-
-extern char *mktemp(char *tmplate);
-#elif ! defined(__cplusplus)
-#if !defined(__linux__) && !defined(_XFUNCS_H_)
-extern void bcopy();
-extern int  bcmp();
-extern void bzero();
-#endif
-
-extern char *mktemp();
-#endif
-
-#endif
-
-
-#ifndef  SBSTDINC_H_NO_REDEFINE   /* sbstdinc.c turns this on */
-
-/************************************************************************/
-/* Routines from <string.h>                                            */
-/*  --- These always get redefined so we can catch null ptr deref's     */
-/************************************************************************/
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrcat(XeString s1, ConstXeString s2);
-#else
-extern XeString Xestrcat();
-#endif
-#ifdef strcat
-# undef strcat
-#endif
-#define strcat Xestrcat
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrncat(XeString s1, ConstXeString s2, size_t n);
-#else
-extern XeString Xestrncat();
-#endif
-#ifdef strncat
-# undef strncat
-#endif
-#define strncat Xestrncat
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern int Xestrcmp(ConstXeString s1, ConstXeString s2);
-#else
-extern int Xestrcmp();
-#endif
-#ifdef strcmp
-# undef strcmp
-#endif
-#define strcmp Xestrcmp
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern int Xestrncmp(ConstXeString s1, ConstXeString s2, size_t n);
-#else
-extern int Xestrncmp();
-#endif
-#ifdef strncmp
-# undef strncmp
-#endif
-#define strncmp Xestrncmp
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrcpy(XeString s1, ConstXeString s2);
-#else
-extern XeString Xestrcpy();
-#endif
-#ifdef strcpy
-# undef strcpy
-#endif
-#define strcpy Xestrcpy
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrncpy(XeString s1, ConstXeString s2, size_t n);
-#else
-extern XeString Xestrncpy();
-#endif
-#ifdef strncpy
-# undef strncpy
-#endif
-#define strncpy Xestrncpy
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern int Xestrcoll(ConstXeString s1, ConstXeString s2);
-#else
-extern int Xestrcoll();
-#endif
-#ifdef strcoll
-# undef strcoll
-#endif
-#define strcoll Xestrcoll
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern size_t Xestrxfrm(XeString s1, ConstXeString s2, size_t n);
-#else
-extern size_t Xestrxfrm();
-#endif
-#ifdef strxfrm
-# undef strxfrm
-#endif
-#define strxfrm Xestrxfrm
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrchr(ConstXeString s, int c);
-#else
-extern XeString Xestrchr();
-#endif
-#ifdef strchr
-# undef strchr
-#endif
-#define strchr Xestrchr
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrpbrk(ConstXeString s1, ConstXeString s2);
-#else
-extern XeString Xestrpbrk();
-#endif
-#ifdef strpbrk
-# undef strpbrk
-#endif
-#define strpbrk Xestrpbrk
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrrchr(ConstXeString s, int c);
-#else
-extern XeString Xestrrchr();
-#endif
-#ifdef strrchr
-# undef strrchr
-#endif
-#define strrchr Xestrrchr
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrstr(ConstXeString s1, ConstXeString s2);
-#else
-extern XeString Xestrstr();
-#endif
-#ifdef strstr
-# undef strstr
-#endif
-#define strstr Xestrstr
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrtok(XeString s1, ConstXeString s2);
-#else
-extern XeString Xestrtok();
-#endif
-#ifdef strtok
-# undef strtok
-#endif
-#define strtok Xestrtok
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern size_t Xestrlen(ConstXeString s);
-#else
-extern size_t Xestrlen();
-#endif
-#ifdef strlen
-# undef strlen
-#endif
-#define strlen Xestrlen
-
-#if defined(__STDC__) || defined(__cplusplus)
-extern XeString Xestrdup(ConstXeString s);
-#else
-extern XeString Xestrdup();
-#endif
-#ifdef strdup
-# undef strdup
-#endif
-#define strdup Xestrdup
-
-#endif /* ifndef  SBSTDINC_H_NO_REDEFINE */
-
-#endif /*  _sbstdinc_h */ 
diff --git a/cde/lib/DtSvc/include/bms/scoop.h b/cde/lib/DtSvc/include/bms/scoop.h
deleted file mode 100644 (file)
index b06772e..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         scoop.h $XConsortium: scoop.h /main/3 1995/10/26 15:48:17 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _scoop_h
-#define _scoop_h
-
-#ifndef NULL
-#define        NULL    0L
-#endif
-
-#ifndef TRUE
-#define FALSE 0
-#define TRUE 1
-#endif         /* TRUE */
-
-#if !defined(__sun)
-# if (defined(__STDC__) || defined(__STDCPP__) || defined(__cplusplus) || defined(c_plusplus))
-#  define CAT(a,b) a##b
-# else
-#  define CAT(a,b) a/**/b
-# endif
-#else
-  /* Sun C++ compiler uses the non-ansi cpp. */
-# if defined(__cplusplus)
-#  define CAT(a,b) a/**/b
-# else
-#  define CAT(a,b) a##b
-# endif
-#endif  
-
-
-typedef long OSizeType ;
-
-typedef struct root_class  *root_clasp, *object_clasp ;
-
-typedef struct object_struct object;
-
-typedef void (*SC_class_init)(object_clasp);
-typedef void (*SC_object_init)(object *);
-typedef object * (*SC_new_obj)(object_clasp);
-typedef void (*SC_free_obj)(object *);
-typedef object * (*SC_clone)(object *, object *);
-
-#define root_class_part \
-  XeString       name ;          /* class name */                        \
-  SC_class_init  class_init;     /* fn to init my class struct */        \
-  OSizeType      object_size ;   /* size of object of this class */      \
-  short          init ;          /* boolean--class initialized state */  \
-  SC_object_init object_init;    /* fn to init my object struct */       \
-  SC_new_obj     new_obj;        /* fn to allocate class objects */      \
-  SC_free_obj    free_obj;       /* fn to free class objects */          \
-  SC_clone       clone;          /* `method' to clone an object */       \
-                                 /* no root private parts */
-
-#define root_object_part
-
-struct object_struct
-{ root_clasp class_ptr;
-  root_object_part
-  };
-
-struct root_class
-  { object_clasp base ;                /* pointer to base class */
-    root_class_part } ;
-
-#define memf(vref, fn, arglist)                ( (vref class_ptr)->fn arglist)
-#define memvf0(v,fn)                   memf(v., fn, (&(v)))
-#define memvf1(v,fn,a1)                        memf(v., fn, (&(v),a1))
-#define memvf2(v,fn,a1,a2)             memf(v., fn, (&(v),a1,a2))
-#define memvf3(v,fn,a1,a2,a3)          memf(v., fn, (&(v),a1,a2,a3))
-#define memvf4(v,fn,a1,a2,a3,a4)       memf(v., fn, (&(v),a1,a2,a3,a4))
-#define memvf5(v,fn,a1,a2,a3,a4,a5)    memf(v., fn, (&(v),a1,a2,a3,a4,a5))
-#define memvf6(v,fn,a1,a2,a3,a4,a5,a6) memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6))
-#define memvf7(v,fn,a1,a2,a3,a4,a5,a6,a7) \
-       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7))
-#define memvf8(v,fn,a1,a2,a3,a4,a5,a6,a7,a8) \
-       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8))
-#define memvf9(v,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \
-       memf(v., fn, (&(v),a1,a2,a3,a4,a5,a6,a7,a8,a9))
-#define mempf0(p,fn)                   memf(p->, fn, (p))
-#define mempf1(p,fn,a1)                        memf(p->, fn, (p,a1))
-#define mempf2(p,fn,a1,a2)             memf(p->, fn, (p,a1,a2))
-#define mempf3(p,fn,a1,a2,a3)          memf(p->, fn, (p,a1,a2,a3))
-#define mempf4(p,fn,a1,a2,a3,a4)       memf(p->, fn, (p,a1,a2,a3,a4))
-#define mempf5(p,fn,a1,a2,a3,a4,a5)    memf(p->, fn, (p,a1,a2,a3,a4,a5))
-#define mempf6(p,fn,a1,a2,a3,a4,a5,a6) memf(p->, fn, (p,a1,a2,a3,a4,a5,a6))
-#define mempf7(p,fn,a1,a2,a3,a4,a5,a6,a7) \
-       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7))
-#define mempf8(p,fn,a1,a2,a3,a4,a5,a6,a7,a8) \
-       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8))
-#define mempf9(p,fn,a1,a2,a3,a4,a5,a6,a7,a8,a9) \
-       memf(p->, fn, (p,a1,a2,a3,a4,a5,a6,a7,a8,a9))
-  
-#define memd(vref, dm)                 (vref dm)
-#define base_memf(my_class, fn, arglist)       \
-    ((*(my_class->base->fn)) arglist)
-
-#define memfp(vref, fn, arglist)       memf (vref, CLASS.fn, arglist)
-#define memdp(vref, dm)                        memd (vref, CLASS.dm)
-
-#define memvs(v, sdm)                  (*((v.class_ptr)->sdm))
-#define memps(p, sdm)                  (*((p->class_ptr)->sdm))
-#define stat_def(name, type)           type *name; type CAT(name,_static) ;
-#define stat_init(def_class, class_ptr, name) \
-       (class_ptr->name) = &(def_class->CAT(name,_static))
-
-extern object_clasp root_class ;
-
-extern void object_destroy 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (object *p);
-#else
-   ();
-#endif
-
-extern object *object_create 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (object_clasp c);
-#else
-   ();
-#endif
-
-extern void object_init 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (object_clasp c,  object *p);
-#else
-   ();
-#endif
-    
-#endif /* _scoop_h */
-/* PLACE NOTHING AFTER THIS endif */
diff --git a/cde/lib/DtSvc/include/bms/spc.h b/cde/lib/DtSvc/include/bms/spc.h
deleted file mode 100644 (file)
index d0ce486..0000000
+++ /dev/null
@@ -1,489 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         spc.h $XConsortium: spc.h /main/3 1995/10/26 15:48:38 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _spc_h
-#define _spc_h
-
-/* -------------------------------------------- */
-/* Requires:                                   */
-#include <stdio.h>
-#include <bms/XeUserMsg.h>
-
-#include <termios.h>
-
-/* -------------------------------------------- */
-
-typedef struct _SPC_Channel *SPC_Channel_Ptr;
-
-typedef struct _XeHostInfo {
-    XeString   os;
-    XeString    os_ver;
-    XeString    hw_arch;
-} *XeHostInfo;
-
-extern FILE *SPC_Print_Protocol;
-extern FILE *spc_logF;
-extern XeString spc_user_environment_file;
-
-/* Error returns for SPC routines */
-
-#define SPC_ERROR       FALSE  /* Use this value for error checking */
-
-/*
- * These are the channel connector definitions
- */
-
-#define STDIN                  0
-#define STDOUT                 1
-#define STDERR                 2
-
-#define MASTER_SIDE    0
-#define SLAVE_SIDE     1
-
-/* These are the sub-process notification identifiers */
-
-#define SPC_PROCESS_STOPPED    1 /* Child process is in background */
-#define SPC_PROCESS_EXITED     2 /* Child process called exit(cause); */
-#define SPC_PROCESS_SIGNALLED  3 /* Child process received signal: cause */
-#define SPC_PROCESS_INTERRUPT  4 /* Child process WAIT was interrupted */
-#define SPC_PROCESS_DUMPED(a)  ((a) & 0200) /* True when core dumped */
-
-/* This is the maximum size of an SPC I/O Buffer */
-#define SPC_BUFSIZ             4096
-
-/*
- * These macros define the bit field portion of an SPC_IOMode
- */
-
-#define SPCIO_ALL_MASK         0xffffffff
-
-/* The IO Modes that define the input and output sources */
-
-#define SPCIO_SOURCE_MASK      0xf
-#define SPCIO_NOIO             0x0 /* The default - no input/output */
-#define SPCIO_WRITEONLY                0x1 /* Only write app stdin */
-#define SPCIO_READONLY         0x2 /* Only read app stdout */
-#define SPCIO_READWRITE                0x3 /* Read stdout, write stdin */
-#define SPCIO_ERRORONLY                0x4 /* Only read stderr */
-#define SPCIO_WRITEERROR       0x5 /* Write stdin, read stderr */
-#define SPCIO_READERROR                0x6 /* Only read stdout/stderr */
-#define SPCIO_READWRITEERROR   0x7 /* Full std (in, out, err) */
-
-/* Use this bit with above IO Mode for splitting stdout and stderr data */
-
-#define SPCIO_SEPARATEREADERROR        0x8 /* Separate stdout & stderr */
-
-/* The IO Modes that deal with communication styles (features) */
-#define SPCIO_STYLE_MASK       0x70
-#define SPCIO_PTY               0x10 /* Use a PTY */
-#define SPCIO_PIPE             0x20 /* Use pipe() - no line editing */
-#define SPCIO_NOIOMODE          0x40 /* Use neither */
-
-#define SPCIO_LINEEDIT          0x80 /* Valid only with PTY */
-
-/* Other flags */
-
-#define SPCIO_SYSTEM           0x100 /* Use system() - Spawns a SHELL */
-#define SPCIO_LINEORIENTED     0x200 /* Invoke callback on line bounds */
-                                      /* It is possible to break two byte
-                                        characters.  See note on XeSPCRead. */
-#define SPCIO_WAIT             0x400 /* Wait for process to finish */
-#define SPCIO_USE_XTOOLKIT     0x800 /* Use the X toolkit */
-#define SPCIO_SYNC_TERMINATOR  0x1000 /* Handle termination synchronously */
-#define SPCIO_USE_LOGFILE      0x2000 /* Use logfile for stderr -- only
-                                        valid with SPCIO_NOIO */
-
-#define SPCIO_SIGNAL_PGRP     0x20000 /* Propagate signals to entire process
-                                        group. */
-#define SPCIO_FORCE_CONTEXT   0x40000 /* Error on SPC Spawn if context dir
-                                        is not present */
-
-/*
- * Routines
- */
-
-
-/* spc.c */
-
-
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-# define EXTERN_DECL(type, name, arglist) type name arglist
-# if defined(__cplusplus) && defined(__c_callable)
-#  define EXTERN_C_CALLABLE(type, name, arglist) \
-          extern "C" { type name arglist ; }
-# else
-#  define EXTERN_C_CALLABLE(type, name, arglist) \
-          EXTERN_DECL(type, name, arglist)
-# endif
-#else
-#ifdef _AIX
-# define EXTERN_C_CALLABLE(type, name, arglist) \
-        extern type name arglist 
-# define EXTERN_DECL(type, name, arglist) \
-        type name arglist
-#else /* _AIX */
-# define EXTERN_DECL(type, name, arglist) name arglist
-# define EXTERN_C_DECL(type, name, arglist) EXTERN_DECL(type, name, arglist)
-
-#endif /* (_AIX) */
-#endif
-
-EXTERN_C_CALLABLE(SPC_Channel_Ptr, XeSPCOpen, (XeString hostname, int iomode));
-
-/*
-  Open an SPC channel.  Process will run on 'hostname' (or the local
-  host if value is NULL), with the specified iomode.
-*/
-
-EXTERN_C_CALLABLE(int, XeSPCClose, (SPC_Channel_Ptr channel));
-
-/*
-  Close an SPC channel.  Closing a channel will automatically deactivate it
-  (meaning that any subprocess associated with the channel is terminated).
-*/
-
-EXTERN_DECL(int, XeSPCReset, (SPC_Channel_Ptr channel));
-
-/*
-  Reset an SPC channel.  This will allow it to be used in a subsequent
-  spawn or exec call.
-*/
-
-
-EXTERN_DECL(int, XeSPCRead,
-           (SPC_Channel_Ptr channel, int connector,
-            XeString buffer, int length));
-
-/*
-  Read length characters from an SPC channel into some preallocated buffer.
-  Note that it is possible to split a two-byte character, if the first
-  byte if the character is read in just at buffer[length].  However, the
-  next read will return the second byte (just like Unix read).  The
-  'connector' value is either STDOUT or STDERR.
-*/
-
-EXTERN_DECL(int, XeSPCWrite,
-           (SPC_Channel_Ptr channel, XeString buffer, int length));
-
-/*
-  Write length characters from buffer to the standard input of a
-  process on the other side of an SPC channel.
-*/
-
-EXTERN_C_CALLABLE(int, XeSPCActive, (SPC_Channel_Ptr channel));
-
-/*
-  Returns True when channel is active, False otherwise
-*/  
-
-EXTERN_DECL(int, XeSPCData, (SPC_Channel_Ptr channel));
-
-/*
-  Returns True when channel be read from, False otherwise
-*/  
-
-EXTERN_C_CALLABLE(int, XeSPCSpawn,
-                 (XeString pathname, XeString context_dir, XeString *argv,
-                  XeString *envp, SPC_Channel_Ptr channel));
-
-/*
-  Spawn an application under SPC
-*/
-
-EXTERN_DECL(SPC_Channel_Ptr, XeSPCOpenAndSpawn,
-           (XeString hostname, int iomode, XeString pathname,
-            XeString context_dir, XeString *argv, XeString *envp));
-           
-/*
-  Combine the Open and Spawn channel operations
-*/
-
-EXTERN_DECL(int, XeSPCExecuteProcess, (SPC_Channel_Ptr channel));
-
-/*
-  Restart a new subprocess on a channel
-*/
-
-EXTERN_C_CALLABLE(void, XeSPCKillProcesses, (int wait));
-
-/*
-  Kill all known executing processes (useful for catching SIGTERM, etc)
-*/
-
-EXTERN_DECL(int, XeSPCKillProcess, (SPC_Channel_Ptr channel, int wait));
-
-/*
-  Kill executing process on an SPC channel.  'wait' TRUE means don't
-  return from call until process is completely terminated (including
-  after user specified callbacks are called).
-*/
-
-EXTERN_DECL(int, XeSPCInterruptProcess, (SPC_Channel_Ptr channel));
-
-/*
-  Interrupt executing process on an SPC channel (send SIGINT).
-*/
-
-EXTERN_DECL(int, XeSPCSignalProcess, (SPC_Channel_Ptr channel, int sig));
-
-/*
-  Send an arbitrary signal to executing process on an SPC channel.
-*/  
-
-typedef
-  EXTERN_DECL(void, (*SbInputHandlerProc),
-             (void *client_data, XeString buf, int nchars, int connector));
-
-EXTERN_C_CALLABLE(int, XeSPCAddInput,
-                  (SPC_Channel_Ptr    channel,
-                   SbInputHandlerProc handler,
-                   void               *client_data));
-
-/*
-  Add an input channel handler
-*/
-
-/*
- * The user input handler takes the following form:
- *
- * void UserInputHandler(client_data, text, size, connection)
- *      void * client_data; *** Useful for passing widet destination ***
- *      XeString text;      *** The text coming from the SPC channel ***
- *      int size;           *** The number of character in passed text ***
- *      int connection;     *** The connection where data was received ***
- *                          ***  (STDOUT or STDERR)                    ***
- */
-
-typedef
-  EXTERN_DECL(void, (*SPC_TerminateHandlerType),
-              (SPC_Channel_Ptr  chan,
-               int  pid,
-               int  type,
-               int  cause,
-               void *Terminate_Data));
-
-EXTERN_C_CALLABLE(int, XeSPCRegisterTerminator,
-                  (SPC_Channel_Ptr          channel,
-                   SPC_TerminateHandlerType teminator,
-                   void *                   client_data));
-
-/*
-  Add a termination handler to a channel (called when sub-process dies)
-*/
-
-/*
- * The user termination handler takes the following form:
- *
- * void UserTerminator(channel, pid, type, cause, client_data)
- *      SPC_CHannel_ptr channel;
- *      int pid;            *** The Process ID of the terminated appl. ***
- *      int type;           *** The type of termination (see above)    ***
- *      int cause;          *** The number associated w/termination    ***
- *      void * client_data; *** User specified client data             ***
- */
-
-/*
- * These are the channel access routines
- */
-
-EXTERN_DECL(XeString, XeSPCGetDevice,
-           (SPC_Channel_Ptr channel, int connector, int side));
-
-/*
-  Return the device name associated with a side of a channel device
-  pair.  'connector' is either STDIN, STDOUT, or STDERR, and 'side' is
-  either MASTER_SIDE or SLAVE_SIDE.  This call is valid only in PTY
-  channels.
-*/  
-
-EXTERN_DECL(int, XeSPCGetProcessStatus,
-           (SPC_Channel_Ptr channel, int *type, int *cause));
-
-/*
-  Fill in the type and cause of a process termination.
-*/
-
-EXTERN_DECL(int, XeSPCAttach, (SPC_Channel_Ptr channel, int pid));
-
-/*
-  Returns True if a process ID was associated with an SPC channel.
-*/
-
-EXTERN_DECL(int, XeSPCDetach, (SPC_Channel_Ptr channel));
-
-EXTERN_DECL(int, XeSPCGetPID, (SPC_Channel_Ptr channel));
-
-/*
-  Returns the Process ID of the channel or NULL if none
-*/  
-
-EXTERN_DECL(int, XeSPCGetLogfile,
-           (SPC_Channel_Ptr channel, XeString *host, XeString *file));
-
-/*
-  Return the logfile for the channel.  If the channel was not opened
-  with SPCIO_USE_LOGFILE specified, it will return NULL.  Also note
-  that it returns an XeString *, not an XeString.
-*/  
-
-EXTERN_DECL(int, XeSPCRemoveLogfile, (SPC_Channel_Ptr channel));
-
-/*
-  Remove the logfile associated with the channel
-*/
-
-/*
- *
- * Features currently not implemented:
- *
- *  SPCIO_WAIT with ptys
- *
- *  SEPARATEREADERROR with ptys
- *
- *  Complete error checking.  For example, there
- *  are no checks for trying to write to a channel
- *  opened W/O SPCIO_WRITE specified
- *
- */
-
-EXTERN_DECL(int, XeSPCGetChannelSyncFd, (SPC_Channel_Ptr channel));
-
-/*
-  Get the file descriptor for checking synchronous termination.  This
-  is used for interfacing with event loops.
-*/
-
-EXTERN_DECL(SPC_Channel_Ptr, XeSPCHandleTerminator, (int fd));
-
-/*
-  Handle a synchronous termination condition
-
-  This routine is to be used with the file descriptor returned by
-  XeSPCGetChannelSyncFd.  The idea is that one opens a channel using
-  SPCIO_SYNC_TERMINATOR set in the iomode, and then at some point
-  checks for input available on the returned file descriptor (possibly
-  using a select(2) system call).  If there is input, it means that
-  some SYNC_TERMINATOR channel had a subprocess die.  The program then
-  calls XeSPCHandleTerminator to get the termination handler invoked.
-  IT IS THE RESPONSIBILITY OF THE USER PROGRAM TO EVENTUALLY CALL
-  XeSPCHandleTerminator.  IF IT DOES NOT, THE PROGRAM MAY DEADLOCK
-  ITSELF.
-*/
-
-
-/* SPC Error handling */
-
-typedef struct _SPCError { /* An SPC Error message */
-  XeString text;     /* The text */
-  XeString format;   /* How to format args */
-  XeSeverity severity;     /* How bad is it, doc? */
-  char use_errno;          /* Whether to use the system errno */
-} SPCError;
-
-/* Use this to get the current error number */
-
-extern int XeSPCErrorNumber;
-
-EXTERN_DECL(SPCError *, XeSPCLookupError, (int errnum));
-
-/*
-  Returns the SPCError structure associated with the passed error number or
-   NULL if the passed error number is not a valid SPC error.  The
-   error structure returned will be overwritten by a subsequent
-   XeSPCLookupError call.
-*/
-
-EXTERN_DECL(void, XeSPCShutdownCallbacks, (void));
-
-EXTERN_DECL(void, XeSPCRestartCallbacks, (void));
-
-/* These two routines are used to temporarily suspend SPC callbacks */
-
-EXTERN_DECL(int, XeSetpgrp, (int read_current_termio));
-
-/*
-  This routine will do the following:
-
-  1. open /dev/tty
-  2. get the termio information from the file descriptor just opened
-  3. close /dev/tty
-  3. allocate a master / slave pty pair, opening the master side
-  4. set the termio info of the master side to be the result of step 2
-  5. setpgrp
-  6. open the slave side.
-  
-  All of this has the effect of making the process which called this
-  routine immune to interrupts, etc., but also passing on the termio
-  characteristics of the original tty.
-
-  If read_current_termio is non-zero, steps 1-3 will NOT be performed, but
-  instead this routine will get the information from the following termio
-  struct:
-  
-*/
-
-EXTERN_DECL(XeHostInfo, SPC_GetHostinfo, (SPC_Channel_Ptr channel));
-
-/* 
-  Return information about the host (os, os-ver, hw) to which "channel"
-  is currently connected.  The return is to a static structure of static
-  strings.  Do not modify or free and of them!
-*/
-
-/*
- **
- ** New B.00 functions
- **
-*/
-
-EXTERN_C_CALLABLE(int, XeSPCSendEOF, (SPC_Channel_Ptr channel));
-
-/*
- Close the standard input of the process on the other side of the channel
-*/
-
-EXTERN_C_CALLABLE(int, XeSPCSetTermio,
-                 (SPC_Channel_Ptr channel,
-                  int connection,
-                  int side,
-                  struct termios *termio));
-
-/*
- Set the termio value of the PTY associated with 'connection' (STDIN,
- STDOUT, or STDERR), on 'side' (MASTER_SIDE or SLAVE_SIDE) to the
- value pointed to by termio.  This call must be made before the
- subprocess is spawned.
-*/
-
-#endif /* #ifdef _spc_h */
diff --git a/cde/lib/DtSvc/include/bms/stringbuf.h b/cde/lib/DtSvc/include/bms/stringbuf.h
deleted file mode 100644 (file)
index 39f14f7..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         stringbuf.h $XConsortium: stringbuf.h /main/3 1995/10/26 15:49:00 rswiston $
- * Language:     C
- *
- * (c) Copyright 1988, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _stringbuf_h
-#define _stringbuf_h
-
-typedef struct _XeStringBuffer {
-   int last_char;  /* index of trailing NULL */
-   int size;
-   int increment;  /* how much to expand when more space is needed */
-   XeString buffer;
-} *XeStringBuffer;
-
-
-int XeAppendToStringBuffer 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeStringBuffer buffer, XeString string);
-#else
-   ();
-#endif
-
-XeStringBuffer XeMakeStringBuffer 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (int increment_size);
-#else
-   ();
-#endif
-
-       /* erase the contents (but don't deallocate any space). */
-void XeClearStringBuffer 
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-   (XeStringBuffer buffer);
-#else
-   ();
-#endif
-
-/*** add nothing after the following endif ***/
-#endif /* _stringbuf_h */
diff --git a/cde/lib/DtSvc/include/bms/usersig.h b/cde/lib/DtSvc/include/bms/usersig.h
deleted file mode 100644 (file)
index 37190a9..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:         usersig.h $XConsortium: usersig.h /main/3 1995/10/26 15:49:19 rswiston $
- * Language:     C
- *
- * (c) Copyright 1989, Hewlett-Packard Company, all rights reserved.
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                    *
- * (c) Copyright 1993, 1994 International Business Machines Corp.      *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                     *
- * (c) Copyright 1993, 1994 Novell, Inc.                               *
- */
-
-#ifndef _usersig_h
-#define _usersig_h
-
-/* -------------------------------------------- */
-/* Requires:                                   */
-#ifdef __recursive_includes
-#include <signal.h>
-#endif
-/* -------------------------------------------- */
-
-#define XE_SIG_NOT_IN_TABLE -2
-
-extern int XeNameToSignal
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-    (XeString name);
-#else
-    ();
-#endif
-
-extern XeString XeSignalToName
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-    (int sig);
-#else
-    ();
-#endif
-
-#endif /* _usersig_h */
diff --git a/cde/lib/DtSvc/include/codelibs/boolean.h b/cde/lib/DtSvc/include/codelibs/boolean.h
deleted file mode 100644 (file)
index c845dc2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:       boolean.h $XConsortium: boolean.h /main/3 1995/10/26 16:10:48 rswiston $
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company
- * (c) Copyright 1993, 1994 International Business Machines Corp.
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef __BOOLEAN_H_
-#define __BOOLEAN_H_
-
-#if defined(__aix)
-#undef  NULL
-#define NULL 0
-#endif
-
-#if defined(SVR4)
-#include <sys/types.h>
-
-#if defined(sun) && defined(_XOPEN_SOURCE)
-#ifndef B_TRUE
-#define B_TRUE _B_TRUE
-#endif
-#ifndef B_FALSE
-#define B_FALSE _B_FALSE
-#endif
-#endif   /* sun && _XOPEN_SOURCE */
-
-#ifndef boolean
-typedef        boolean_t       boolean;
-#endif
-
-#ifndef TRUE
-#define TRUE B_TRUE
-#endif
-
-#ifndef FALSE
-#define FALSE B_FALSE
-#endif
-#endif /* SVR4 */
-
-
-#if !defined(SVR4)
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#ifndef boolean
-typedef int boolean;
-#endif
-#endif /* ! SVR4 */
-#endif /* __BOOLEAN_H_ */
diff --git a/cde/lib/DtSvc/include/codelibs/pathutils.h b/cde/lib/DtSvc/include/codelibs/pathutils.h
deleted file mode 100644 (file)
index 16ad6c6..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * $XConsortium: pathutils.h /main/4 1996/05/08 11:21:09 drk $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
- * (c) Copyright 1993,1994,1996 International Business Machines Corp.
- * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
- * (c) Copyright 1993,1994,1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-#ifndef __PATHUTILS_H_
-#define __PATHUTILS_H_
-
-#include <stddef.h>
-#include <codelibs/boolean.h>
-
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __cplusplus
-extern char *pathcollapse(const char *src, 
-                         char *dst = NULL, 
-                         boolean show_dir = FALSE);
-#elif defined(__STDC__)
-extern char *pathcollapse(const char *src, char *dst, boolean show_dir);
-#else /* old-style C */
-extern char *pathcollapse();
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __PATHUTILS_H_ */
diff --git a/cde/lib/DtSvc/include/codelibs/shellutils.h b/cde/lib/DtSvc/include/codelibs/shellutils.h
deleted file mode 100644 (file)
index df7bd06..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * File:       shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 rswiston $
- *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company
- * (c) Copyright 1993, 1994 International Business Machines Corp.
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- * (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef __SHELLUTILS_H_
-#define __SHELLUTILS_H_
-
-#ifdef __cplusplus
-extern "C"
-{
-    char const *const *shellscan(char const *str, int *argc = (int *)0,
-           unsigned opts = 0);
-}
-#else
-    extern char **shellscan();
-#endif
-
-#define SHX_NOGLOB     0x0001
-#define SHX_NOTILDE    0x0002
-#define SHX_NOVARS     0x0004
-#define SHX_NOQUOTES   0x0008
-#define SHX_NOSPACE    0x0010
-#define SHX_NOMETA     0x0020
-#define SHX_NOCMD      0x0040
-#define SHX_COMPLETE   0x0080
-
-#define SHX_NOGRAVE    0x0040          /* Obsolete, use NOCMD */
-
-#endif /* __SHELLUTILS_H_ */
diff --git a/cde/lib/DtTerm/Makefile.am b/cde/lib/DtTerm/Makefile.am
new file mode 100644 (file)
index 0000000..1e99500
--- /dev/null
@@ -0,0 +1,20 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util TermPrim Term TermView
+
+lib_LTLIBRARIES = libDtTerm.la
+
+libDtTerm_la_SOURCES =
+
+libDtTerm_la_LIBADD = Term/libTerm.la TermPrim/libTermPrim.la \
+                      TermView/libTermView.la
+
+if OPENBSD
+libDtTerm_la_LIBADD += -lutil
+endif
+
+if SOLARIS
+libDtTerm_la_LIBADD += -ldl -lgen
+endif
+
+libDtTerm_la_LDFLAGS = -version-info 2:1:0
diff --git a/cde/lib/DtTerm/Term/Makefile.am b/cde/lib/DtTerm/Term/Makefile.am
new file mode 100644 (file)
index 0000000..08499bb
--- /dev/null
@@ -0,0 +1,27 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+CLEANFILES = TermLineData.c
+
+noinst_LTLIBRARIES = libTerm.la
+
+libTerm_la_CFLAGS = -I../TermPrim @DT_INCDIR@
+
+TermLineData.c: TermLineData.data
+       $(RM) $@
+       ../util/lineToData -p _DtTerm -f TermLineData.data > $@
+
+includes:: TermLineData.c
+
+libTerm_la_SOURCES = \
+        Term.c \
+        TermAction.c \
+        TermBuffer.c \
+        TermColor.c \
+        TermEnhance.c \
+        TermFunction.c \
+        TermFunctionKey.c \
+        TermLineData.c \
+        TermParse.c \
+        TermParseTable.c \
+        TermVersion.c
+
diff --git a/cde/lib/DtTerm/Term/Term.h b/cde/lib/DtTerm/Term/Term.h
deleted file mode 100644 (file)
index dcf0ff5..0000000
+++ /dev/null
@@ -1,645 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Term.h /main/1 1996/04/21 19:15:14 drk $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-     
-#ifndef        _Dt_TermPrim_h
-#define        _Dt_TermPrim_h
-
-#include <sys/wait.h>
-#include <Xm/Xm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DtNbackgroundIsSelect
-#define        DtNbackgroundIsSelect   "backgroundIsSelect"
-#endif
-#ifndef DtNblinkRate
-#define DtNblinkRate           "blinkRate"
-#endif
-#ifndef DtNcharCursorStyle
-#define        DtNcharCursorStyle      "charCursorStyle"
-#endif
-#ifndef DtNconsoleMode
-#define        DtNconsoleMode          "consoleMode"
-#endif
-#ifndef DtNcsWidth
-#define        DtNcsWidth              "csWidth"
-#endif
-#ifndef DtNemulationId
-#define        DtNemulationId          "emulationId"
-#endif
-#ifndef        DtNinputVerifyCallback
-#define        DtNinputVerifyCallback  "inputVerifyCallback"
-#endif
-#ifndef DtNjumpScroll
-#define        DtNjumpScroll           "jumpScroll"
-#endif
-#ifndef DtNkshMode
-#define        DtNkshMode              "kshMode"       
-#endif
-#ifndef DtNlogFile
-#define        DtNlogFile              "logFile"    
-#endif
-#ifndef DtNlogInhibit
-#define        DtNlogInhibit           "logInhibit"
-#endif
-#ifndef DtNlogging
-#define        DtNlogging              "logging"    
-#endif
-#ifndef DtNloginShell
-#define        DtNloginShell           "loginShell"
-#endif
-#ifndef DtNmapOnOutput
-#define        DtNmapOnOutput          "mapOnOutput"
-#endif
-#ifndef DtNmapOnOutputDelay
-#define        DtNmapOnOutputDelay     "mapOnOutputDelay"
-#endif
-#ifndef DtNmarginBell
-#define        DtNmarginBell           "marginBell"
-#endif
-#ifndef DtNnMarginBell
-#define        DtNnMarginBell          "nMarginBell"
-#endif
-#ifndef        DtNoutputLogCallback
-#define        DtNoutputLogCallback    "outputLogCallback"
-#endif
-#ifndef DtNpointerBlank
-#define        DtNpointerBlank         "pointerBlank"
-#endif
-#ifndef DtNpointerBlankDelay
-#define        DtNpointerBlankDelay    "pointerBlankDelay"
-#endif
-#ifndef DtNpointerColor
-#define        DtNpointerColor         "pointerColor"
-#endif
-#ifndef DtNpointerColorBackground
-#define        DtNpointerColorBackground "pointerColorBackground"
-#endif
-#ifndef DtNpointerShape
-#define        DtNpointerShape         "pointerShape"
-#endif
-#ifndef DtNreverseVideo
-#define        DtNreverseVideo         "reverseVideo"
-#endif
-#ifndef DtNsaveLines
-#define        DtNsaveLines            "saveLines"
-#endif
-#ifndef DtNsizeList
-#define        DtNsizeList             "sizeList"
-#endif
-#ifndef DtNstatusChangeCallback
-#define        DtNstatusChangeCallback "statusChangeCallback"
-#endif
-#ifndef DtNstickyNextCursor
-#define        DtNstickyNextCursor     "stickyNextCursor"
-#endif
-#ifndef DtNstickyPrevCursor
-#define        DtNstickyPrevCursor     "stickyPrevCursor"
-#endif
-#ifndef DtNsubprocessLoginShell
-#define        DtNsubprocessLoginShell "subprocessLoginShell"
-#endif
-#ifndef DtNsubprocessPid
-#define        DtNsubprocessPid        "subprocessPid"
-#endif
-#ifndef DtNsubprocessExec
-#define        DtNsubprocessExec       "subprocessExec"
-#endif
-#ifndef DtNsubprocessTerminationCatch
-#define        DtNsubprocessTerminationCatch "subprocessTerminationCatch"
-#endif
-#ifndef DtNsubprocessCmd
-#define        DtNsubprocessCmd        "subprocessCmd"
-#endif
-#ifndef DtNsubprocessArgv
-#define        DtNsubprocessArgv       "subprocessArgv"
-#endif
-#ifndef DtNsubprocessTerminationCallback
-#define        DtNsubprocessTerminationCallback "subprocessTerminationCallback"
-#endif
-#ifndef DtNtermEmulationMode
-#define        DtNtermEmulationMode    "termEmulationMode"
-#endif
-#ifndef DtNtermDevice
-#define        DtNtermDevice           "termDevice"
-#endif
-#ifndef DtNtermDeviceAllocate
-#define        DtNtermDeviceAllocate   "termDeviceAllocate"
-#endif
-#ifndef DtNtermId
-#define        DtNtermId               "termId"
-#endif
-#ifndef DtNtermName
-#define        DtNtermName             "termName"
-#endif
-#ifndef DtNtermSlaveName
-#define        DtNtermSlaveName        "termSlaveName"
-#endif
-#ifndef DtNttyModes
-#define        DtNttyModes             "ttyModes"
-#endif
-#ifndef DtNuseFontSets
-#define        DtNuseFontSets          "useFontSets"
-#endif
-#ifndef DtNuseLineDraw
-#define        DtNuseLineDraw          "useLineDraw"
-#endif
-#ifndef DtNuserFont
-#define        DtNuserFont             "userFont"
-#endif
-#ifndef DtNuserBoldFont
-#define        DtNuserBoldFont         "userBoldFont"
-#endif
-#ifndef DtNvisualBell
-#define        DtNvisualBell           "visualBell"
-#endif
-#ifndef DtNallowSendEvents
-#define        DtNallowSendEvents      "allowSendEvents"
-#endif
-#ifndef DtNbaseHeight
-#define DtNbaseHeight          XmNbaseHeight
-#endif
-#ifndef DtNbaseWidth
-#define DtNbaseWidth           XmNbaseWidth
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns             XmNcolumns
-#endif
-#ifndef DtNheightInc
-#define DtNheightInc           XmNheightInc
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                XmNmarginHeight
-#endif
-#ifndef DtNmarginWidth
-#define DtNmarginWidth         XmNmarginWidth
-#endif
-#ifndef DtNrows
-#define DtNrows                        XmNrows
-#endif
-#ifndef DtNshadowType
-#define DtNshadowType          XmNshadowType
-#endif
-#ifndef DtNverticalScrollBar
-#define DtNverticalScrollBar   XmNverticalScrollBar
-#endif
-#ifndef DtNwidthInc
-#define DtNwidthInc            XmNwidthInc
-#endif
-
-#ifndef DtCBackground
-#define        DtCBackground           XmCBackground
-#endif
-#ifndef DtCBackgroundIsSelect
-#define        DtCBackgroundIsSelect   "BackgroundIsSelect"
-#endif
-#ifndef DtCBlinkRate
-#define DtCBlinkRate           "BlinkRate"
-#endif
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCCursor
-#define        DtCCursor               XmCCursor
-#endif
-#ifndef DtCConsoleMode
-#define        DtCConsoleMode          "ConsoleMode"
-#endif
-#ifndef DtCCsWidth
-#define        DtCCsWidth              "CsWidth"
-#endif
-#ifndef DtCCharCursorStyle
-#define        DtCCharCursorStyle      "CharCursorStyle"
-#endif
-#ifndef DtCEmulationId
-#define        DtCEmulationId          "EmulationId"
-#endif
-#ifndef DtCForeground
-#define        DtCForeground           XmCForeground
-#endif
-#ifndef DtCJumpScroll
-#define        DtCJumpScroll           "JumpScroll"
-#endif
-#ifndef DtCKshMode
-#define        DtCKshMode              "KshMode"       
-#endif
-#ifndef DtCLogFile
-#define        DtCLogFile              "LogFile"    
-#endif
-#ifndef DtCLogInhibit
-#define        DtCLogInhibit           "LogInhibit"
-#endif
-#ifndef DtCLogging
-#define        DtCLogging              "Logging"    
-#endif
-#ifndef DtCLoginShell
-#define        DtCLoginShell           "LoginShell"
-#endif
-#ifndef DtCMapOnOutput
-#define        DtCMapOnOutput          "MapOnOutput"
-#endif
-#ifndef DtCMapOnOutputDelay
-#define        DtCMapOnOutputDelay     "MapOnOutputDelay"
-#endif
-#ifndef DtCMarginBell
-#define        DtCMarginBell           "MarginBell"
-#endif
-#ifndef DtCNMarginBell
-#define        DtCNMarginBell          "NMarginBell"
-#endif
-#ifndef DtCPointerBlank
-#define        DtCPointerBlank         "PointerBlank"
-#endif
-#ifndef DtCPointerBlankDelay
-#define        DtCPointerBlankDelay    "PointerBlankDelay"
-#endif
-#ifndef DtCPointerColor
-#define        DtCPointerColor         "PointerColor"
-#endif
-#ifndef DtCPointerColorBackground
-#define        DtCPointerColorBackground "PointerColorBackground"
-#endif
-#ifndef DtCPointerShape
-#define        DtCPointerShape         "PointerShape"
-#endif
-#ifndef DtCReverseVideo
-#define        DtCReverseVideo         "ReverseVideo"
-#endif
-#ifndef DtCSaveLines
-#define        DtCSaveLines            "SaveLines"
-#endif
-#ifndef DtCSizeList
-#define        DtCSizeList             "SizeList"
-#endif
-#ifndef DtCStickyCursor
-#define        DtCStickyCursor         "StickyCursor"
-#endif
-#ifndef DtCSubprocessLoginShell
-#define        DtCSubprocessLoginShell "SubprocessLoginShell"
-#endif
-#ifndef DtCSubprocessPid
-#define        DtCSubprocessPid        "SubprocessPid"
-#endif
-#ifndef DtCSubprocessExec
-#define        DtCSubprocessExec       "SubprocessExec"
-#endif
-#ifndef DtCSubprocessTerminationCatch
-#define        DtCSubprocessTerminationCatch "SubprocessTerminationCatch"
-#endif
-#ifndef DtCSubprocessCmd
-#define        DtCSubprocessCmd        "SubprocessCmd"
-#endif
-#ifndef DtCSubprocessArgv
-#define        DtCSubprocessArgv       "SubprocessArgv"
-#endif
-#ifndef DtCTermEmulationMode
-#define        DtCTermEmulationMode    "TermEmulationMode"
-#endif
-#ifndef DtCTermDevice
-#define        DtCTermDevice           "TermDevice"
-#endif
-#ifndef DtCTermDeviceAllocate
-#define        DtCTermDeviceAllocate   "TermDeviceAllocate"
-#endif
-#ifndef DtCTermId
-#define        DtCTermId               "TermId"
-#endif
-#ifndef DtCTermName
-#define        DtCTermName             "TermName"
-#endif
-#ifndef DtCTermSlaveName
-#define        DtCTermSlaveName        "TermSlaveName"
-#endif
-#ifndef DtCTtyModes
-#define        DtCTtyModes             "TtyModes"
-#endif
-#ifndef DtCUseFontSets
-#define        DtCUseFontSets          "UseFontSets"
-#endif
-#ifndef DtCUseLineDraw
-#define        DtCUseLineDraw          "UseLineDraw"
-#endif
-#ifndef DtCUserFont
-#define        DtCUserFont             "UserFont"
-#endif
-#ifndef DtCUserBoldFont
-#define        DtCUserBoldFont         "UserBoldFont"
-#endif
-#ifndef DtCVisualBell
-#define        DtCVisualBell           "VisualBell"
-#endif
-#ifndef DtCAllowSendEvents
-#define        DtCAllowSendEvents      "AllowSendEvents"
-#endif
-#ifndef DtCBaseHeight
-#define DtCBaseHeight          XmCBaseHeight
-#endif
-#ifndef DtCBaseWidth
-#define DtCBaseWidth           XmCBaseWidth
-#endif
-#ifndef DtCColumns
-#define DtCColumns             XmCColumns
-#endif
-#ifndef DtCHeightInc
-#define DtCHeightInc           XmCHeightInc
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                XmCMarginHeight
-#endif
-#ifndef DtCMarginWidth
-#define DtCMarginWidth         XmCMarginWidth
-#endif
-#ifndef DtCRows
-#define DtCRows                        XmCRows
-#endif
-#ifndef DtCShadowType
-#define DtCShadowType          XmCShadowType
-#endif
-#ifndef DtCVerticalScrollBar
-#define DtCVerticalScrollBar   XmCVerticalScrollBar
-#endif
-#ifndef DtCWidthInc
-#define DtCWidthInc            XmCWidthInc
-#endif
-
-/* Representation types */
-
-#define DtRDtTermCharCursorStyle       "DtTermCharCursorStyle"
-#define DtRDtTermEmulationMode         "DtTermEmulationMode"
-#define        DtRDtTermTerminalSize           "DtTermTerminalSize"
-#define        DtRDtTermTerminalSizeList       "DtTermTerminalSizeList"
-
-/* DtNshadowType values */
-
-#ifndef DtSHADOW_IN
-#define DtSHADOW_IN            XmSHADOW_IN
-#endif
-#ifndef DtSHADOW_OUT
-#define DtSHADOW_OUT           XmSHADOW_OUT
-#endif
-#ifndef DtSHADOW_ETCHED_IN
-#define DtSHADOW_ETCHED_IN     XmSHADOW_ETCHED_IN
-#endif
-#ifndef DtSHADOW_ETCHED_OUT
-#define DtSHADOW_ETCHED_OUT    XmSHADOW_ETCHED_OUT
-#endif
-
-#define        DtTERM_CHAR_CURSOR_BOX          0
-#define        DtTERM_CHAR_CURSOR_BAR          1
-#define        DtTERM_CHAR_CURSOR_INVISIBLE    2
-
-#define        DtTermEMULATIONHP       0
-#define        DtTermEMULATIONANSI     1
-
-/* Callback reasons */
-
-#define        DtCR_TERM_SUBPROCESS_TERMINATION        1
-#define DtCR_TERM_STATUS_CHANGE                2
-#define        DtCR_TERM_INPUT_VERIFY          7
-#define        DtCR_TERM_OUTPUT_LOG            8
-
-
-/*
- * Types
- */
-
-/* insert char mode */
-
-typedef enum {
-       DtTERM_INSERT_CHAR_OFF = 0,
-       DtTERM_INSERT_CHAR_ON,
-       DtTERM_INSERT_CHAR_ON_WRAP
-} DtTermInsertCharMode;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       int             cursorX;
-       int             cursorY;
-       Boolean         capsLock;
-       Boolean         stop;
-       DtTermInsertCharMode insertCharMode;
-       Boolean         locked;
-} DtTermStatusChangeCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       pid_t           pid;
-       int             status;
-} DtTermSubprocessTerminationCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       Boolean         doit;
-       unsigned char   *text;
-       int             length;
-} DtTermInputVerifyCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       unsigned char   *text;
-       int             length;
-} DtTermOutputLogCallbackStruct;
-
-typedef struct _DtTermTerminalSize {
-       short           rows;
-       short           columns;
-} DtTermTerminalSize;
-
-typedef struct _DtTermTerminalSizeList {
-       int             numSizes;
-       DtTermTerminalSize *sizes;
-} DtTermTerminalSizeList;
-
-/* Widget class and instance */
-
-typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass;
-typedef struct _DtTermPrimitiveRec      *DtTermPrimitiveWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtTermPrimitiveWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateTermPrimitive(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern void DtTermInitialize(void);
-
-extern void DtTermDisplaySend(
-               Widget          widget,
-               unsigned char   *buffer,
-               int             length);
-
-extern void DtTermSubprocSend(
-               Widget          widget,
-               unsigned char   *buffer,
-               int             length);
-
-extern void DtTermSubprocReap(
-               pid_t           pid,
-               int             *stat_loc);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_TermPrim_h */
-
-
-
-#ifndef        _Dt_Term_h
-#define        _Dt_Term_h
-
-#include <Dt/TermPrim.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DtNfunctionKeyExecuteProc
-#define        DtNfunctionKeyExecuteProc       "functionKeyExecuteProc"
-#endif
-#ifndef DtNfunctionKeyUpdateProc
-#define        DtNfunctionKeyUpdateProc        "functionKeyUpdateProc"
-#endif
-#ifndef DtNautoWrap
-#define        DtNautoWrap                     "autoWrap"
-#endif
-#ifndef DtNreverseWrap
-#define        DtNreverseWrap                  "reverseWrap"
-#endif
-#ifndef DtNsunFunctionKeys
-#define        DtNsunFunctionKeys              "sunFunctionKeys"
-#endif
-#ifndef DtNc132
-#define        DtNc132                         "c132"
-#endif
-#ifndef DtNappCursorDefault
-#define        DtNappCursorDefault              "appCursorDefault"
-#endif
-#ifndef DtNappKeypadDefault
-#define        DtNappKeypadDefault              "appKeypadDefault"
-#endif
-
-#ifndef DtCFunctionKeyExecuteProc
-#define        DtCFunctionKeyExecuteProc       "FunctionKeyExecuteProc"
-#endif
-#ifndef DtCFunctionKeyUpdateProc
-#define        DtCFunctionKeyUpdateProc        "FunctionKeyUpdateProc"
-#endif
-#ifndef DtCFunctionKeyLast
-#define        DtCFunctionKeyLast              "FunctionKeyLast"
-#endif
-#ifndef DtCAutoWrap
-#define        DtCAutoWrap                     "AutoWrap"
-#endif
-#ifndef DtCReverseWrap
-#define        DtCReverseWrap                  "ReverseWrap"
-#endif
-#ifndef DtCSunFunctionKeys
-#define        DtCSunFunctionKeys              "SunFunctionKeys"
-#endif
-#ifndef DtCC132
-#define        DtCC132                         "C132"
-#endif
-#ifndef DtCAppCursorDefault
-#define        DtCAppCursorDefault             "AppCursorDefault"
-#endif
-#ifndef DtCAppKeypadDefault
-#define        DtCAppKeypadDefault             "AppKeypadDefault"
-#endif
-
-
-/*
- * Types
- */
-
-/* Widget class and instance */
-
-typedef struct _DtTermClassRec *DtTermWidgetClass;
-typedef struct _DtTermRec      *DtTermWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtTermWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateTerm(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Term_h */
diff --git a/cde/lib/DtTerm/Term/TermP.h b/cde/lib/DtTerm/Term/TermP.h
deleted file mode 100644 (file)
index b2f14e0..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * $XConsortium: TermP.h /main/1 1996/04/21 19:16:07 drk $";
- */
-
-/*                                                                      *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-
-#ifndef        _Dt_TermP_h
-#define        _Dt_TermP_h
-
-#include "TermPrimP.h"
-#include "Term.h"
-#include "TermData.h"
-#include "TermFunctionKey.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/* Vt class structure... */
-
-typedef struct _DtTermClassPart
-{
-    int foo;
-} DtTermClassPart;
-
-/* full clas record declaration for Vt class... */
-typedef struct _DtTermClassRec {
-    CoreClassPart              core_class;
-    XmPrimitiveClassPart       primitive_class;
-    DtTermPrimitiveClassPart           term_primitive_class;
-    DtTermClassPart            term_class;
-} DtTermClassRec;
-
-externalref DtTermClassRec dtTermClassRec;
-
-/* vt instance record... */
-typedef struct _DtTermPart
-{
-    DtTermData                 td;     /* non-widget terminal data     */
-    Boolean                     autoWrap;
-    Boolean                     reverseWrap;
-    Boolean                     sunFunctionKeys;
-    Boolean                     c132;
-    Boolean                    appKeypadMode;
-    Boolean                    appCursorMode;
-} DtTermPart;
-
-/* full instance record declaration... */
-
-typedef struct _DtTermRec {
-    CorePart           core;
-    XmPrimitivePart    primitive;
-    DtTermPrimitivePart        term;
-    DtTermPart         vt;
-} DtTermRec;
-
-/* private function declarations... */
-/* end private function declarations... */
-
-#ifdef __cplusplus
-} /* close scope of 'extern "C"'... */
-#endif /* __cplusplus */
-
-#endif /* _Dt_TermP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif... */
diff --git a/cde/lib/DtTerm/TermPrim/Makefile.am b/cde/lib/DtTerm/TermPrim/Makefile.am
new file mode 100644 (file)
index 0000000..ff78b6c
--- /dev/null
@@ -0,0 +1,57 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libTermPrim.la
+
+AM_CPPFLAGS = @DT_INCDIR@
+
+libTermPrim_la_SOURCES = TermPrim.c \
+        TermPrimAction.c \
+        TermPrimBuffer.c \
+        TermPrimBufferWc.c \
+        TermPrimCursor.c \
+        TermPrimDebug.c \
+        TermPrimFunction.c \
+        TermPrimLineDraw.c \
+        TermPrimParse.c \
+        TermPrimParseTable.c \
+        TermPrimParser.c \
+        TermPrimPendingText.c \
+        TermPrimRender.c \
+        TermPrimRenderMb.c \
+        TermPrimRenderFont.c \
+        TermPrimRenderFontSet.c \
+        TermPrimRenderLineDraw.c \
+        TermPrimRepType.c \
+       TermPrimScroll.c \
+        TermPrimSelect.c \
+        TermPrimSetPty.c \
+        TermPrimSetUtmp.c \
+        TermPrimSubproc.c \
+        TermPrimUtil.c    \
+        TermPrimVersion.c \
+        TermPrimWMProtocols.c
+
+# JET there may be some more missing here...
+
+if AIX
+libTermPrim_la_SOURCES += TermPrimGetPty-clone.c
+endif
+
+if SOLARIS
+libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
+AM_CPPFLAGS += -DSUN_ARCHITECTURE
+endif
+
+# uses CSRG_BASED...
+if BSD
+libTermPrim_la_SOURCES += TermPrimGetPty-bsd.c
+endif
+
+if OPENBSD
+AM_CPPFLAGS += -DOPENBSD_ARCHITECTURE
+endif
+
+if LINUX
+libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
+AM_CPPFLAGS += -DLINUX_ARCHITECTURE
+endif
diff --git a/cde/lib/DtTerm/TermPrim/TermPrim.h b/cde/lib/DtTerm/TermPrim/TermPrim.h
deleted file mode 100644 (file)
index 8fef485..0000000
+++ /dev/null
@@ -1,538 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: TermPrim.h /main/1 1996/04/21 19:16:41 drk $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef        _Dt_TermPrim_h
-#define        _Dt_TermPrim_h
-
-#include <sys/wait.h>
-#include <Xm/Xm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DtNbackgroundIsSelect
-#define        DtNbackgroundIsSelect   "backgroundIsSelect"
-#endif
-#ifndef DtNblinkRate
-#define DtNblinkRate           "blinkRate"
-#endif
-#ifndef DtNcharCursorStyle
-#define        DtNcharCursorStyle      "charCursorStyle"
-#endif
-#ifndef DtNconsoleMode
-#define        DtNconsoleMode          "consoleMode"
-#endif
-#ifndef DtNcsWidth
-#define        DtNcsWidth              "csWidth"
-#endif
-#ifndef DtNemulationId
-#define        DtNemulationId          "emulationId"
-#endif
-#ifndef        DtNinputVerifyCallback
-#define        DtNinputVerifyCallback  "inputVerifyCallback"
-#endif
-#ifndef DtNjumpScroll
-#define        DtNjumpScroll           "jumpScroll"
-#endif
-#ifndef DtNkshMode
-#define        DtNkshMode              "kshMode"       
-#endif
-#ifndef DtNlogFile
-#define        DtNlogFile              "logFile"    
-#endif
-#ifndef DtNlogInhibit
-#define        DtNlogInhibit           "logInhibit"
-#endif
-#ifndef DtNlogging
-#define        DtNlogging              "logging"    
-#endif
-#ifndef DtNloginShell
-#define        DtNloginShell           "loginShell"
-#endif
-#ifndef DtNmapOnOutput
-#define        DtNmapOnOutput          "mapOnOutput"
-#endif
-#ifndef DtNmapOnOutputDelay
-#define        DtNmapOnOutputDelay     "mapOnOutputDelay"
-#endif
-#ifndef DtNmarginBell
-#define        DtNmarginBell           "marginBell"
-#endif
-#ifndef DtNnMarginBell
-#define        DtNnMarginBell          "nMarginBell"
-#endif
-#ifndef        DtNoutputLogCallback
-#define        DtNoutputLogCallback    "outputLogCallback"
-#endif
-#ifndef DtNpointerBlank
-#define        DtNpointerBlank         "pointerBlank"
-#endif
-#ifndef DtNpointerBlankDelay
-#define        DtNpointerBlankDelay    "pointerBlankDelay"
-#endif
-#ifndef DtNpointerColor
-#define        DtNpointerColor         "pointerColor"
-#endif
-#ifndef DtNpointerColorBackground
-#define        DtNpointerColorBackground "pointerColorBackground"
-#endif
-#ifndef DtNpointerShape
-#define        DtNpointerShape         "pointerShape"
-#endif
-#ifndef DtNreverseVideo
-#define        DtNreverseVideo         "reverseVideo"
-#endif
-#ifndef DtNsaveLines
-#define        DtNsaveLines            "saveLines"
-#endif
-#ifndef DtNsizeList
-#define        DtNsizeList             "sizeList"
-#endif
-#ifndef DtNstatusChangeCallback
-#define        DtNstatusChangeCallback "statusChangeCallback"
-#endif
-#ifndef DtNstickyNextCursor
-#define        DtNstickyNextCursor     "stickyNextCursor"
-#endif
-#ifndef DtNstickyPrevCursor
-#define        DtNstickyPrevCursor     "stickyPrevCursor"
-#endif
-#ifndef DtNsubprocessLoginShell
-#define        DtNsubprocessLoginShell "subprocessLoginShell"
-#endif
-#ifndef DtNsubprocessPid
-#define        DtNsubprocessPid        "subprocessPid"
-#endif
-#ifndef DtNsubprocessExec
-#define        DtNsubprocessExec       "subprocessExec"
-#endif
-#ifndef DtNsubprocessTerminationCatch
-#define        DtNsubprocessTerminationCatch "subprocessTerminationCatch"
-#endif
-#ifndef DtNsubprocessCmd
-#define        DtNsubprocessCmd        "subprocessCmd"
-#endif
-#ifndef DtNsubprocessArgv
-#define        DtNsubprocessArgv       "subprocessArgv"
-#endif
-#ifndef DtNsubprocessTerminationCallback
-#define        DtNsubprocessTerminationCallback "subprocessTerminationCallback"
-#endif
-#ifndef DtNtermEmulationMode
-#define        DtNtermEmulationMode    "termEmulationMode"
-#endif
-#ifndef DtNtermDevice
-#define        DtNtermDevice           "termDevice"
-#endif
-#ifndef DtNtermDeviceAllocate
-#define        DtNtermDeviceAllocate   "termDeviceAllocate"
-#endif
-#ifndef DtNtermId
-#define        DtNtermId               "termId"
-#endif
-#ifndef DtNtermName
-#define        DtNtermName             "termName"
-#endif
-#ifndef DtNtermSlaveName
-#define        DtNtermSlaveName        "termSlaveName"
-#endif
-#ifndef DtNttyModes
-#define        DtNttyModes             "ttyModes"
-#endif
-#ifndef DtNuseFontSets
-#define        DtNuseFontSets          "useFontSets"
-#endif
-#ifndef DtNuseLineDraw
-#define        DtNuseLineDraw          "useLineDraw"
-#endif
-#ifndef DtNuserFont
-#define        DtNuserFont             "userFont"
-#endif
-#ifndef DtNuserBoldFont
-#define        DtNuserBoldFont         "userBoldFont"
-#endif
-#ifndef DtNvisualBell
-#define        DtNvisualBell           "visualBell"
-#endif
-#ifndef DtNallowSendEvents
-#define        DtNallowSendEvents      "allowSendEvents"
-#endif
-#ifndef DtNbaseHeight
-#define DtNbaseHeight          XmNbaseHeight
-#endif
-#ifndef DtNbaseWidth
-#define DtNbaseWidth           XmNbaseWidth
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns             XmNcolumns
-#endif
-#ifndef DtNheightInc
-#define DtNheightInc           XmNheightInc
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                XmNmarginHeight
-#endif
-#ifndef DtNmarginWidth
-#define DtNmarginWidth         XmNmarginWidth
-#endif
-#ifndef DtNrows
-#define DtNrows                        XmNrows
-#endif
-#ifndef DtNshadowType
-#define DtNshadowType          XmNshadowType
-#endif
-#ifndef DtNverticalScrollBar
-#define DtNverticalScrollBar   XmNverticalScrollBar
-#endif
-#ifndef DtNwidthInc
-#define DtNwidthInc            XmNwidthInc
-#endif
-
-#ifndef DtCBackground
-#define        DtCBackground           XmCBackground
-#endif
-#ifndef DtCBackgroundIsSelect
-#define        DtCBackgroundIsSelect   "BackgroundIsSelect"
-#endif
-#ifndef DtCBlinkRate
-#define DtCBlinkRate           "BlinkRate"
-#endif
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCCursor
-#define        DtCCursor               XmCCursor
-#endif
-#ifndef DtCConsoleMode
-#define        DtCConsoleMode          "ConsoleMode"
-#endif
-#ifndef DtCCsWidth
-#define        DtCCsWidth              "CsWidth"
-#endif
-#ifndef DtCCharCursorStyle
-#define        DtCCharCursorStyle      "CharCursorStyle"
-#endif
-#ifndef DtCEmulationId
-#define        DtCEmulationId          "EmulationId"
-#endif
-#ifndef DtCForeground
-#define        DtCForeground           XmCForeground
-#endif
-#ifndef DtCJumpScroll
-#define        DtCJumpScroll           "JumpScroll"
-#endif
-#ifndef DtCKshMode
-#define        DtCKshMode              "KshMode"       
-#endif
-#ifndef DtCLogFile
-#define        DtCLogFile              "LogFile"    
-#endif
-#ifndef DtCLogInhibit
-#define        DtCLogInhibit           "LogInhibit"
-#endif
-#ifndef DtCLogging
-#define        DtCLogging              "Logging"    
-#endif
-#ifndef DtCLoginShell
-#define        DtCLoginShell           "LoginShell"
-#endif
-#ifndef DtCMapOnOutput
-#define        DtCMapOnOutput          "MapOnOutput"
-#endif
-#ifndef DtCMapOnOutputDelay
-#define        DtCMapOnOutputDelay     "MapOnOutputDelay"
-#endif
-#ifndef DtCMarginBell
-#define        DtCMarginBell           "MarginBell"
-#endif
-#ifndef DtCNMarginBell
-#define        DtCNMarginBell          "NMarginBell"
-#endif
-#ifndef DtCPointerBlank
-#define        DtCPointerBlank         "PointerBlank"
-#endif
-#ifndef DtCPointerBlankDelay
-#define        DtCPointerBlankDelay    "PointerBlankDelay"
-#endif
-#ifndef DtCPointerColor
-#define        DtCPointerColor         "PointerColor"
-#endif
-#ifndef DtCPointerColorBackground
-#define        DtCPointerColorBackground "PointerColorBackground"
-#endif
-#ifndef DtCPointerShape
-#define        DtCPointerShape         "PointerShape"
-#endif
-#ifndef DtCReverseVideo
-#define        DtCReverseVideo         "ReverseVideo"
-#endif
-#ifndef DtCSaveLines
-#define        DtCSaveLines            "SaveLines"
-#endif
-#ifndef DtCSizeList
-#define        DtCSizeList             "SizeList"
-#endif
-#ifndef DtCStickyCursor
-#define        DtCStickyCursor         "StickyCursor"
-#endif
-#ifndef DtCSubprocessLoginShell
-#define        DtCSubprocessLoginShell "SubprocessLoginShell"
-#endif
-#ifndef DtCSubprocessPid
-#define        DtCSubprocessPid        "SubprocessPid"
-#endif
-#ifndef DtCSubprocessExec
-#define        DtCSubprocessExec       "SubprocessExec"
-#endif
-#ifndef DtCSubprocessTerminationCatch
-#define        DtCSubprocessTerminationCatch "SubprocessTerminationCatch"
-#endif
-#ifndef DtCSubprocessCmd
-#define        DtCSubprocessCmd        "SubprocessCmd"
-#endif
-#ifndef DtCSubprocessArgv
-#define        DtCSubprocessArgv       "SubprocessArgv"
-#endif
-#ifndef DtCTermEmulationMode
-#define        DtCTermEmulationMode    "TermEmulationMode"
-#endif
-#ifndef DtCTermDevice
-#define        DtCTermDevice           "TermDevice"
-#endif
-#ifndef DtCTermDeviceAllocate
-#define        DtCTermDeviceAllocate   "TermDeviceAllocate"
-#endif
-#ifndef DtCTermId
-#define        DtCTermId               "TermId"
-#endif
-#ifndef DtCTermName
-#define        DtCTermName             "TermName"
-#endif
-#ifndef DtCTermSlaveName
-#define        DtCTermSlaveName        "TermSlaveName"
-#endif
-#ifndef DtCTtyModes
-#define        DtCTtyModes             "TtyModes"
-#endif
-#ifndef DtCUseFontSets
-#define        DtCUseFontSets          "UseFontSets"
-#endif
-#ifndef DtCUseLineDraw
-#define        DtCUseLineDraw          "UseLineDraw"
-#endif
-#ifndef DtCUserFont
-#define        DtCUserFont             "UserFont"
-#endif
-#ifndef DtCUserBoldFont
-#define        DtCUserBoldFont         "UserBoldFont"
-#endif
-#ifndef DtCVisualBell
-#define        DtCVisualBell           "VisualBell"
-#endif
-#ifndef DtCAllowSendEvents
-#define        DtCAllowSendEvents      "AllowSendEvents"
-#endif
-#ifndef DtCBaseHeight
-#define DtCBaseHeight          XmCBaseHeight
-#endif
-#ifndef DtCBaseWidth
-#define DtCBaseWidth           XmCBaseWidth
-#endif
-#ifndef DtCColumns
-#define DtCColumns             XmCColumns
-#endif
-#ifndef DtCHeightInc
-#define DtCHeightInc           XmCHeightInc
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                XmCMarginHeight
-#endif
-#ifndef DtCMarginWidth
-#define DtCMarginWidth         XmCMarginWidth
-#endif
-#ifndef DtCRows
-#define DtCRows                        XmCRows
-#endif
-#ifndef DtCShadowType
-#define DtCShadowType          XmCShadowType
-#endif
-#ifndef DtCVerticalScrollBar
-#define DtCVerticalScrollBar   XmCVerticalScrollBar
-#endif
-#ifndef DtCWidthInc
-#define DtCWidthInc            XmCWidthInc
-#endif
-
-/* Representation types */
-
-#define DtRDtTermCharCursorStyle       "DtTermCharCursorStyle"
-#define DtRDtTermEmulationMode         "DtTermEmulationMode"
-#define        DtRDtTermTerminalSize           "DtTermTerminalSize"
-#define        DtRDtTermTerminalSizeList       "DtTermTerminalSizeList"
-
-/* DtNshadowType values */
-
-#ifndef DtSHADOW_IN
-#define DtSHADOW_IN            XmSHADOW_IN
-#endif
-#ifndef DtSHADOW_OUT
-#define DtSHADOW_OUT           XmSHADOW_OUT
-#endif
-#ifndef DtSHADOW_ETCHED_IN
-#define DtSHADOW_ETCHED_IN     XmSHADOW_ETCHED_IN
-#endif
-#ifndef DtSHADOW_ETCHED_OUT
-#define DtSHADOW_ETCHED_OUT    XmSHADOW_ETCHED_OUT
-#endif
-
-#define        DtTERM_CHAR_CURSOR_BOX          0
-#define        DtTERM_CHAR_CURSOR_BAR          1
-#define        DtTERM_CHAR_CURSOR_INVISIBLE    2
-
-#define        DtTermEMULATIONHP       0
-#define        DtTermEMULATIONANSI     1
-
-/* Callback reasons */
-
-#define        DtCR_TERM_SUBPROCESS_TERMINATION        1
-#define DtCR_TERM_STATUS_CHANGE                2
-#define        DtCR_TERM_INPUT_VERIFY          7
-#define        DtCR_TERM_OUTPUT_LOG            8
-
-
-/*
- * Types
- */
-
-/* insert char mode */
-
-typedef enum {
-       DtTERM_INSERT_CHAR_OFF = 0,
-       DtTERM_INSERT_CHAR_ON,
-       DtTERM_INSERT_CHAR_ON_WRAP
-} DtTermInsertCharMode;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       int             cursorX;
-       int             cursorY;
-       Boolean         capsLock;
-       Boolean         stop;
-       DtTermInsertCharMode insertCharMode;
-       Boolean         locked;
-} DtTermStatusChangeCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       pid_t           pid;
-       int             status;
-} DtTermSubprocessTerminationCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       Boolean         doit;
-       unsigned char   *text;
-       int             length;
-} DtTermInputVerifyCallbackStruct;
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       unsigned char   *text;
-       int             length;
-} DtTermOutputLogCallbackStruct;
-
-typedef struct _DtTermTerminalSize {
-       short           rows;
-       short           columns;
-} DtTermTerminalSize;
-
-typedef struct _DtTermTerminalSizeList {
-       int             numSizes;
-       DtTermTerminalSize *sizes;
-} DtTermTerminalSizeList;
-
-/* Widget class and instance */
-
-typedef struct _DtTermPrimitiveClassRec *DtTermPrimitiveWidgetClass;
-typedef struct _DtTermPrimitiveRec      *DtTermPrimitiveWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtTermPrimitiveWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateTermPrimitive(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern void DtTermInitialize(void);
-
-extern void DtTermDisplaySend(
-               Widget          widget,
-               unsigned char   *buffer,
-               int             length);
-
-extern void DtTermSubprocSend(
-               Widget          widget,
-               unsigned char   *buffer,
-               int             length);
-
-extern void DtTermSubprocReap(
-               pid_t           pid,
-               int             *stat_loc);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_TermPrim_h */
diff --git a/cde/lib/DtTerm/TermPrim/TermPrimP.h b/cde/lib/DtTerm/TermPrim/TermPrimP.h
deleted file mode 100644 (file)
index 6da67ca..0000000
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * $XConsortium: TermPrimP.h /main/1 1996/04/21 19:18:08 drk $";
- */
-/*                                                                      *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-#ifndef        _Dt_TermPrimP_h
-#define        _Dt_TermPrimP_h
-
-#include <Xm/LabelP.h>
-#include "TermPrim.h"
-#include "TermPrimData.h"
-
-/* include the other internal Term include files...
- */
-#include "TermPrimScroll.h"
-#include "TermPrimRender.h"
-#include "TermPrimCursor.h"
-#include "TermPrimLineFont.h"
-#include "TermPrimBuffer.h"
-#include "TermPrimSubproc.h"
-
-/* 
-** Now we can choose what shell we want
-** NOTE:
-**  (is it worth making resources for defaultShell
-**  and defaultShellArgv0?)  JRM
-*/
-#ifdef    hpV4
-#   define DEFAULT_SHELL        "/usr/bin/sh"
-#   define DEFAULT_SHELL_ARGV0  "sh"
-#else  /* hpV4 */
-#   define DEFAULT_SHELL        "/bin/sh"
-#   define DEFAULT_SHELL_ARGV0  "sh"
-#endif /* hpV4 */
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/* term class structure... */
-
-typedef int
-(*TermInsertProc)
-(
-    Widget               w,
-    unsigned char       *buffer,
-    int                          length
-);
-    
-typedef struct _DtTermPrimitiveClassPart
-{
-    StateTable                 *parser_start_state;
-    Boolean                    use_history_buffer;
-    Boolean                    allow_scroll_below_buffer;
-    Boolean                    wrap_right_after_insert;
-    BufferCreateProc            buffer_create_proc;
-    BufferFreeProc             buffer_free_proc;
-    TermInsertProc             term_insert_proc;
-    short                       sizeOfBuffer;
-    short                       sizeOfLine;
-    short                       sizeOfEnh;
-} DtTermPrimitiveClassPart;
-
-/* full class record declaration for Term class... */
-typedef struct _DtTermPrimitiveClassRec {
-    CoreClassPart              core_class;
-    XmPrimitiveClassPart       primitive_class;
-    DtTermPrimitiveClassPart   term_primitive_class;
-} DtTermPrimitiveClassRec;
-
-externalref DtTermPrimitiveClassRec dtTermPrimitiveClassRec;
-
-/* term instance record... */
-typedef struct _DtTermPrimitivePart
-{
-    struct termData *tpd;              /* non-widget terminal data     */
-    Widget verticalScrollBar;          /* vertical sb to update/track  */
-    short verticalScrollBarValue;      /* cached sb value              */
-    short verticalScrollBarMaximum;    /* cached sb maximum            */
-    short verticalScrollBarSliderSize; /* cached sb size               */
-    short verticalScrollBarPageIncrement;
-                                       /* cached sb page inc           */
-    unsigned char charCursorStyle;     /* cursor style: bar or box     */
-    int blinkRate;                     /* cursor blink rate (0 == no
-                                        * blink
-                                        */
-    Boolean consoleMode;               /* true == get console output   */
-    Boolean backgroundIsSelect;                /* true == background is select
-                                        * color
-                                        */
-    Boolean visualBell;                        /* true == visual bell          */
-    Boolean marginBell;                        /* true == rt margin waring bell*/
-    int nMarginBell;                   /* warning bell distance        */
-    Boolean jumpScroll;                        /* true == jumpscroll,
-                                        * false == line by line scroll
-                                        */
-    Boolean hasFocus;                  /* true == window has focus
-                                        * (and the cursor blinks)
-                                        */
-    char *emulationId;                 /* $TERMINAL_EMULATOR variable  */
-    char *termId;                      /* term ID string for esc seq   */
-    char *termName;                    /* $TERM string                 */
-    char *ttyModes;                    /* ttyModes string              */
-    char *csWidth;                     /* csWidth string               */
-    unsigned char shadowType;          /* shadow type for term window  */
-    XmFontList fontList;               /* fontList for base font       */
-    XmFontList boldFontList;           /* fontList for bold font       */
-    XFontStruct *font;                 /* font for base font           */
-    XFontStruct *boldFont;             /* font for bold font           */
-    XFontSet fontSet;                  /* fontSet generated from either
-                                        * the fontList or the font above
-                                        */
-    XFontSet boldFontSet;              /* fontSet generated from either
-                                        * the boldFontList or the boldFont
-                                        * above
-                                        */
-    Boolean haveFontSet;               /* true == we have a valid fontSet
-                                        */
-    char *saveLines;                   /* save lines or screens        */
-    short rows;                                /* rows of displayed term win   */
-    short columns;                     /* columns of term win & memory */
-    Dimension marginHeight;            /* width of window's margin     */
-    Dimension marginWidth;             /* height of window's margin    */
-    int baseWidth;                     /* base width for size hints    */
-    int baseHeight;                    /* base height for size hints   */
-    int widthInc;                      /* width inc for size hints     */
-    int heightInc;                     /* height inc for size hints    */
-    int ascent;                                /* ascent for font              */
-    int pty;                           /* file descriptor of pty       */
-    Boolean ptyAllocate;               /* true, allocate a pty         */
-    char *ptySlaveName;                        /* name of pty slave device     */
-    int subprocessPid;                 /* process id of child (shell)
-                                        * process
-                                        */
-    char *subprocessCWD;               /* subprocess working directory */
-    char *subprocessCmd;               /* subprocess cmd to exec       */
-    char **subprocessArgv;             /* argv to pass to above cmd    */
-    Boolean subprocessLoginShell;      /* if true, prepend argv[0] with
-                                        * a '-'
-                                        */
-    Boolean subprocessTerminationCatch;        /* if true, catch child exit()  */
-    Boolean subprocessExec;            /* if true, exec subprocess     */
-    _termSubprocId subprocessId;       /* id of subprocess as returned
-                                        * by the subprocess code.
-                                        */
-    XtCallbackList inputVerifyCallback;        /* callback invoked when keyboard
-                                        * input or selection input is
-                                        * received.
-                                        */
-    XtCallbackList outputLogCallback;  /* callback invoked when pty output
-                                        * is received.
-                                        */
-    XtCallbackList statusChangeCallback;/* callback invoked when there is
-                                        * some sort of status change
-                                        * (cursor motion, capsLockChange,
-                                        * outputStopped, etc).  Reason
-                                        * indicates which has changed.
-                                        */
-    XtCallbackList subprocessTerminationCallback;
-                                       /* callback invoked by subprocess
-                                        * termination (exit())
-                                        */
-    Boolean  kshMode;                     /* use meta for escape */
-    Boolean  pointerBlank;                /* blank pointer after */
-    int      pointerBlankDelay;           /* pointerBlankDelay secs */
-    Cursor   pointerShape;                /* pointer pixmap         */
-    Pixel    pointerColor;                /* pointer color          */
-    Pixel    pointerColorBackground;      /* pointer background color */
-    Boolean  mapOnOutput;                 /* map term on pty output after */
-    int      mapOnOutputDelay;            /* mapOnOutputDelay secs  */
-    Boolean  logging;                     /* copy tty output to file/pipe  */
-    Boolean  log_on;                      /* is log file (pipe)  open?     */
-    char *   logFile;                     /* named logFile (default "logFile"*/
-    Boolean  logInhibit;                  /* don't allow logging         */
-    Boolean  reverseVideo;               /* true, reverse video on     */
-    uid_t    euid_root;                   /* suid */
-    uid_t    euid_user;                   /* user id   */
-    Boolean  allowSendEvents;             /* allow key, button presses */
-    Boolean  allowOsfKeysyms;            /* allow osfKeysyms through   */
-} DtTermPrimitivePart;
-
-/* full instance record declaration... */
-
-typedef struct _DtTermPrimitiveRec {
-    CorePart           core;
-    XmPrimitivePart    primitive;
-    DtTermPrimitivePart                term;
-} DtTermPrimitiveRec;
-
-/* private function declarations... */
-/* end private function declarations... */
-
-#ifdef __cplusplus
-} /* close scope of 'extern "C"'... */
-#endif /* __cplusplus */
-/* 
-** Some handy macros.
-*/
-#define GetParserContext(w)             (((DtTermPrimitiveWidget)w)->term.tpd->context)
-
-
-#endif /* _Dt_TermPrimP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif... */
diff --git a/cde/lib/DtTerm/TermView/Makefile.am b/cde/lib/DtTerm/TermView/Makefile.am
new file mode 100644 (file)
index 0000000..e615fa1
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libTermView.la
+
+libTermView_la_CFLAGS = -I../TermPrim -I../Term @DT_INCDIR@
+
+libTermView_la_SOURCES = TermView.c \
+                        TermViewMenu.c \
+                        TermViewGlobalDialog.c \
+                        TermViewTerminalDialog.c
diff --git a/cde/lib/DtTerm/util/Makefile.am b/cde/lib/DtTerm/util/Makefile.am
new file mode 100644 (file)
index 0000000..26ae7e1
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = lineToData
+
+lineToData_CFLAGS = -I../TermPrim
+
+lineToData_SOURCES = lineToData.c
diff --git a/cde/lib/DtWidget/ComboBox.h b/cde/lib/DtWidget/ComboBox.h
deleted file mode 100644 (file)
index b7bf0d3..0000000
+++ /dev/null
@@ -1,587 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ComboBox.h /main/4 1995/10/26 09:29:51 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- */
-/***********************************************************
-Copyright 1993 Interleaf, Inc.
-
-Permission to use, copy, modify, and distribute this software
-and its documentation for any purpose without fee is granted,
-provided that the above copyright notice appear in all copies
-and that both copyright notice and this permission notice appear
-in supporting documentation, and that the name of Interleaf not
-be used in advertising or publicly pertaining to distribution of
-the software without specific written prior permission.
-
-Interleaf makes no representation about the suitability of this
-software for any purpose. It is provided "AS IS" without any
-express or implied warranty.
-******************************************************************/
-
-#ifndef _Dt_ComboBox_h
-#define _Dt_ComboBox_h
-
-/*
- * This widget is deprecated in favor of XmComboBox.  The two are very
- * similar, but do have minor differences.  Applications doing new
- * development are encouraged to use XmComboBox directly.  Existing
- * applications may wish to recompile with DT_USE_XM_COMBOBOX.
- */
-
-#include <Xm/Xm.h>
-#ifdef DT_USE_XM_COMBOBOX
-#include <Xm/ComboBox.h>
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-/***********************************************************************
- *
- * NOTE:
- *     Because of future development of the ComboBox, not all of the 
- *     following resources should be used.  The only ones which are
- *     supported are the ones found in the Common Desktop Environment:
- *     Programmer's Guide.  The supported resources include:
- *     DtNmarginHeight, DtNmarginWidth, DtNselectedItem, 
- *     DtNselectedPosition, DtNselectionCallback, and DtNcomboBoxType.
- *
- *     The use of the unsupported resources found in this header
- *     file may cause dangerous and unexpected behavior.
- *
- **********************************************************************/
-
-/* WARNING: DtNactivateCallback is an unsupported resource in CDE 1.0 */
-#ifndef DtNactivateCallback
-#define DtNactivateCallback    XmNactivateCallback
-#endif
-/* WARNING: DtNalignment is an unsupported resource in CDE 1.0 */
-#ifndef DtNalignment
-#define DtNalignment           XmNalignment
-#endif
-/* WARNING: DtNarrowSize is an unsupported resource in CDE 1.0 */
-#ifndef DtNarrowSize
-#define DtNarrowSize           "arrowSize"
-#endif
-/* WARNING: DtNarrowSpacing is an unsupported resource in CDE 1.0 */
-#ifndef DtNarrowSpacing
-#define DtNarrowSpacing                "arrowSpacing"
-#endif
-/* WARNING: DtNarrowType is an unsupported resource in CDE 1.0 */
-#ifndef DtNarrowType
-#define DtNarrowType           "arrowType"
-#endif
-/* WARNING: DtNcolumns is an unsupported resource in CDE 1.0 */
-#ifndef DtNcolumns
-#define DtNcolumns             XmNcolumns
-#endif
-#ifndef DtNcomboBoxType
-#define DtNcomboBoxType                "comboBoxType"
-#endif
-/* WARNING: DtNfocusCallback is an unsupported resource in CDE 1.0 */
-#ifndef DtNfocusCallback
-#define DtNfocusCallback       XmNfocusCallback
-#endif
-/* WARNING: DtNhorizontalSpacing is an unsupported resource in CDE 1.0 */
-#ifndef DtNhorizontalSpacing
-#define DtNhorizontalSpacing   XmNhorizontalSpacing
-#endif
-/* WARNING: DtNitemCount is an unsupported resource in CDE 1.0 */
-#ifndef DtNitemCount
-#define DtNitemCount           XmNitemCount
-#endif
-/* WARNING: DtNitems is an unsupported resource in CDE 1.0 */
-#ifndef DtNitems
-#define DtNitems               XmNitems
-#endif
-/* WARNING: DtNlabelString is an unsupported resource in CDE 1.0 */
-#ifndef DtNlabelString
-#define DtNlabelString         XmNlabelString
-#endif
-/* WARNING: DtNlist is an unsupported resource in CDE 1.0 */
-#ifndef DtNlist
-#define DtNlist                        "list"
-#endif
-/* WARNING: DtNlistFontList is an unsupported resource in CDE 1.0 */
-#ifndef DtNlistFontList
-#define DtNlistFontList                "listFontList"
-#endif
-/* WARNING: DtNlistMarginHeight is an unsupported resource in CDE 1.0 */
-#ifndef DtNlistMarginHeight
-#define DtNlistMarginHeight    XmNlistMarginHeight
-#endif
-/* WARNING: DtNlistMarginWidth is an unsupported resource in CDE 1.0 */
-#ifndef DtNlistMarginWidth
-#define DtNlistMarginWidth     XmNlistMarginWidth
-#endif
-/* WARNING: DtNlistSpacing is an unsupported resource in CDE 1.0 */
-#ifndef DtNlistSpacing
-#define DtNlistSpacing         XmNlistSpacing
-#endif
-/* WARNING: DtNlosingFocusCallback is an unsupported resource in CDE 1.0 */
-#ifndef DtNlosingFocusCallback
-#define DtNlosingFocusCallback XmNlosingFocusCallback
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                XmNmarginHeight
-#endif
-#ifndef DtNmarginWidth
-#define DtNmarginWidth         XmNmarginWidth
-#endif
-/* WARNING: DtNmaxLength is an unsupported resource in CDE 1.0 */
-#ifndef DtNmaxLength
-#define DtNmaxLength           XmNmaxLength
-#endif
-/* WARNING: DtNmenuPostCallback is an unsupported resource in CDE 1.0 */
-#ifndef DtNmenuPostCallback
-#define DtNmenuPostCallback    "menuPostCallback"
-#endif
-/* WARNING: DtNorientation is an unsupported resource in CDE 1.0 */
-#ifndef DtNorientation
-#define DtNorientation         XmNorientation
-#endif
-/* WARNING: DtNpoppedUp is an unsupported resource in CDE 1.0 */
-#ifndef DtNpoppedUp
-#define DtNpoppedUp            "poppedUp"
-#endif
-/* WARNING: DtNrecomputeSize is an unsupported resource in CDE 1.0 */
-#ifndef DtNrecomputeSize
-#define DtNrecomputeSize       XmNrecomputeSize
-#endif
-#ifndef DtNselectedItem
-#define DtNselectedItem                "selectedItem"
-#endif
-#ifndef DtNselectedPosition
-#define DtNselectedPosition    "selectedPosition"
-#endif
-#ifndef DtNselectionCallback
-#define DtNselectionCallback   "selectionCallback"
-#endif
-/* WARNING: DtNtextField is an unsupported resource in CDE 1.0 */
-#ifndef DtNtextField
-#define DtNtextField           "textField"
-#endif
-/* WARNING: DtNtopItemPosition is an unsupported resource in CDE 1.0 */
-#ifndef DtNtopItemPosition
-#define DtNtopItemPosition     XmNtopItemPosition
-#endif
-/* WARNING: DtNupdateLabel is an unsupported resource in CDE 1.0 */
-#ifndef DtNupdateLabel
-#define DtNupdateLabel         "updateLabel"
-#endif
-/* WARNING: DtNverticalSpacing is an unsupported resource in CDE 1.0 */
-#ifndef DtNverticalSpacing
-#define DtNverticalSpacing     XmNverticalSpacing
-#endif
-/* WARNING: DtNvisibleItemCount is an unsupported resource in CDE 1.0 */
-#ifndef DtNvisibleItemCount
-#define DtNvisibleItemCount    XmNvisibleItemCount
-#endif
-
-#ifndef DtCAlignment
-#define DtCAlignment           XmCAlignment
-#endif
-#ifndef DtCArrowSize
-#define DtCArrowSize           "ArrowSize"
-#endif
-#ifndef DtCArrowSpacing
-#define DtCArrowSpacing                "ArrowSpacing"
-#endif
-#ifndef DtCArrowType
-#define DtCArrowType           "ArrowType"
-#endif
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCColumns
-#define DtCColumns             XmCColumns
-#endif
-#ifndef DtCComboBoxType
-#define DtCComboBoxType                "ComboBoxType"
-#endif
-#ifndef DtCHorizontalSpacing
-#define DtCHorizontalSpacing   "HorizontalSpacing"
-#endif
-#ifndef DtCItemCount
-#define DtCItemCount           XmCItemCount
-#endif
-#ifndef DtCItems
-#define DtCItems               XmCItems
-#endif
-#ifndef DtCList
-#define DtCList                        "List"
-#endif
-#ifndef DtCListFontList
-#define DtCListFontList                "ListFontList"
-#endif
-#ifndef DtCListMarginHeight
-#define DtCListMarginHeight    XmCListMarginHeight
-#endif
-#ifndef DtCListMarginWidth
-#define DtCListMarginWidth     XmCListMarginWidth
-#endif
-#ifndef DtCListSpacing
-#define DtCListSpacing         XmCListSpacing
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                XmCMarginHeight
-#endif
-#ifndef DtCMarginWidth
-#define DtCMarginWidth         XmCMarginWidth
-#endif
-#ifndef DtCMaxLength
-#define DtCMaxLength           XmCMaxLength
-#endif
-#ifndef DtCOrientation
-#define DtCOrientation         XmCOrientation
-#endif
-#ifndef DtCPoppedUp
-#define DtCPoppedUp            "PoppedUp"
-#endif
-#ifndef DtCRecomputeSize
-#define DtCRecomputeSize       XmCRecomputeSize
-#endif
-#ifndef DtCSelectedItem
-#define DtCSelectedItem                "SelectedItem"
-#endif
-#ifndef DtCSelectedPosition
-#define DtCSelectedPosition    "SelectedPosition"
-#endif
-#ifndef DtCTextField
-#define DtCTextField           "TextField"
-#endif
-#ifndef DtCTopItemPosition
-#define DtCTopItemPosition     XmCTopItemPosition
-#endif
-#ifndef DtCUpdateLabel
-#define DtCUpdateLabel         "UpdateLabel"
-#endif
-#ifndef DtCVerticalSpacing
-#define DtCVerticalSpacing     "VerticalSpacing"
-#endif
-#ifndef DtCVisibleItemCount
-#define DtCVisibleItemCount    XmCVisibleItemCount
-#endif
-#ifndef DtCXmString
-#define DtCXmString            XmCXmString
-#endif
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#ifndef DtNarrowSize
-#define DtNarrowSize           XmNarrowSize
-#endif
-#ifndef DtNarrowSpacing
-#define DtNarrowSpacing                XmNarrowSpacing
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns             XmNcolumns
-#endif
-#ifndef DtNcomboBoxType
-#define DtNcomboBoxType                XmNcomboBoxType
-#endif
-#ifndef DtNitemCount
-#define DtNitemCount           XmNitemCount
-#endif
-#ifndef DtNitems
-#define DtNitems               XmNitems
-#endif
-#ifndef DtNlabelString
-#define DtNlabelString         XmNlabelString
-#endif
-#ifndef DtNlist
-#define DtNlist                        XmNlist
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                XmNmarginHeight
-#endif
-#ifndef DtNmarginWidth
-#define DtNmarginWidth         XmNmarginWidth
-#endif
-#ifndef DtNselectedItem
-#define DtNselectedItem                XmNselectedItem
-#endif
-#ifndef DtNselectedPosition
-#define DtNselectedPosition    XmNselectedPosition
-#endif
-#ifndef DtNselectionCallback
-#define DtNselectionCallback   XmNselectionCallback
-#endif
-#ifndef DtNtextField
-#define DtNtextField           XmNtextField
-#endif
-#ifndef DtNvisibleItemCount
-#define DtNvisibleItemCount    XmNvisibleItemCount
-#endif
-
-#ifndef DtCArrowSize
-#define DtCArrowSize           XmCArrowSize
-#endif
-#ifndef DtCArrowSpacing
-#define DtCArrowSpacing                XmCArrowSpacing
-#endif
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCColumns
-#define DtCColumns             XmCColumns
-#endif
-#ifndef DtCComboBoxType
-#define DtCComboBoxType                XmCComboBoxType
-#endif
-#ifndef DtCItemCount
-#define DtCItemCount           XmCItemCount
-#endif
-#ifndef DtCItems
-#define DtCItems               XmCItems
-#endif
-#ifndef DtCList
-#define DtCList                        XmCList
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                XmCMarginHeight
-#endif
-#ifndef DtCMarginWidth
-#define DtCMarginWidth         XmCMarginWidth
-#endif
-#ifndef DtCSelectedItem
-#define DtCSelectedItem                XmCSelectedItem
-#endif
-#ifndef DtCSelectedPosition
-#define DtCSelectedPosition    XmCSelectedPosition
-#endif
-#ifndef DtCTextField
-#define DtCTextField           XmCTextField
-#endif
-#ifndef DtCVisibleItemCount
-#define DtCVisibleItemCount    XmCVisibleItemCount
-#endif
-#ifndef DtCXmString
-#define DtCXmString            XmCXmString
-#endif
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-/* Representation types */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtRArrowType
-#define DtRArrowType           "ArrowType"
-#endif
-#ifndef DtRComboBoxType
-#define DtRComboBoxType                "ComboBoxType"
-#endif
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#ifndef DtRComboBoxType
-#define DtRComboBoxType                XmRComboBoxType
-#endif
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-/* DtNorientation values */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtLEFT
-#define DtLEFT         1
-#endif
-#ifndef DtRIGHT
-#define DtRIGHT                2
-#endif
-
-#endif /* not DT_USE_XM_COMBOBOX */
-
-/* DtNarrowType values */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtMOTIF
-#define DtMOTIF                0
-#endif
-#ifndef DtWINDOWS
-#define DtWINDOWS      1
-#endif
-
-#endif /* not DT_USE_XM_COMBOBOX */
-
-/* DtNcomboBoxType values */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtDROP_DOWN_LIST
-#define DtDROP_DOWN_LIST       2
-#endif
-#ifndef DtDROP_DOWN_COMBO_BOX
-#define DtDROP_DOWN_COMBO_BOX  1
-#endif
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#ifndef DtDROP_DOWN_LIST
-#define DtDROP_DOWN_LIST       XmDROP_DOWN_LIST
-#endif
-#ifndef DtDROP_DOWN_COMBO_BOX
-#define DtDROP_DOWN_COMBO_BOX  XmDROP_DOWN_COMBO_BOX
-#endif
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-/* DtNalignment values */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtALIGNMENT_BEGINNING
-#define DtALIGNMENT_BEGINNING  XmALIGNMENT_BEGINNING
-#endif
-#ifndef DtALIGNMENT_CENTER
-#define DtALIGNMENT_CENTER     XmALIGNMENT_CENTER
-#endif
-#ifndef DtALIGNMENT_END
-#define DtALIGNMENT_END                XmALIGNMENT_END
-#endif
-
-#endif /* not DT_USE_XM_COMBOBOX */
-
-/* Callback reasons */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-#ifndef DtCR_SELECT
-#define DtCR_SELECT        57 /* Large #, so no collisions with XM */
-#endif
-#ifndef DtCR_MENU_POST
-#define DtCR_MENU_POST      129 /* Large #, so no collisions with XM */
-#endif
-
-#endif /* not DT_USE_XM_COMBOBOX */
-
-
-/*
- * Types
- */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       XmString        item_or_text;
-       int             item_position;
-} DtComboBoxCallbackStruct;
-
-
-/* Widget class and instance */
-
-typedef struct _DtComboBoxClassRec *DtComboBoxWidgetClass;
-typedef struct _DtComboBoxRec      *DtComboBoxWidget;
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#define DtComboBoxCallbackStruct       XmComboBoxCallbackStruct
-#define DtComboBoxWidgetClass          XmComboBoxWidgetClass
-#define DtComboBoxWidget               XmComboBoxWidget
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-
-/*
- * Data
- */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-/* Widget class record */
-
-externalref WidgetClass dtComboBoxWidgetClass;
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#define dtComboBoxWidgetClass xmComboBoxWidgetClass;
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-
-/*
- * Functions
- */
-
-#ifndef DT_USE_XM_COMBOBOX
-
-extern Widget DtCreateComboBox(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern void DtComboBoxAddItem(
-               Widget          combo,
-               XmString        item,
-               int             pos,
-               Boolean         unique);
-
-extern void DtComboBoxDeletePos(
-               Widget          combo,
-               int             pos);
-
-extern void DtComboBoxSetItem(
-               Widget          combo,
-               XmString        item);
-
-extern void DtComboBoxSelectItem(
-               Widget          combo,
-               XmString        item);
-
-#else /* DT_USE_XM_COMBOBOX */
-
-#define DtCreateComboBox       XmCreateComboBox
-#define DtComboBoxAddItem      XmComboBoxAddItem
-#define DtComboBoxDeletePos    XmComboBoxDeletePos
-#define DtComboBoxSetItem      XmComboBoxSetItem
-#define DtComboBoxSelectItem   XmComboBoxSelectItem
-
-#endif /* DT_USE_XM_COMBOBOX */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_ComboBox_h */
diff --git a/cde/lib/DtWidget/ComboBoxP.h b/cde/lib/DtWidget/ComboBoxP.h
deleted file mode 100644 (file)
index 0099197..0000000
+++ /dev/null
@@ -1,255 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ComboBoxP.h /main/3 1995/10/26 09:29:58 rswiston $ */
-/*
- * DtWidget/ComboBoxP.h
- */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- */
-/***********************************************************
-Copyright 1993 Interleaf, Inc.
-
-Permission to use, copy, modify, and distribute this software
-and its documentation for any purpose without fee is granted,
-provided that the above copyright notice appear in all copies
-and that both copyright notice and this permission notice appear
-in supporting documentation, and that the name of Interleaf not
-be used in advertising or publicly pertaining to distribution of
-the software without specific written prior permission.
-
-Interleaf makes no representation about the suitability of this
-software for any purpose. It is provided "AS IS" without any
-express or implied warranty. 
-******************************************************************/
-
-/*
- * (C) Copyright 1991,1992, 1993
- * Interleaf, Inc.
- * Nine Hillside Avenue, Waltham, MA  02154
- *
- * ComboBoxP.h:
- * 
- * Private header file for DtComboBoxWidget.
- */
-#ifndef _ComboBoxP_h
-#define _ComboBoxP_h
-
-#include <X11/IntrinsicP.h>
-#include <X11/ShellP.h>
-#include <Xm/DrawnB.h>
-#include <Xm/ArrowB.h>
-#include <Xm/TextFP.h>
-#include <Xm/Label.h>
-#include <Xm/Frame.h>
-#include <Xm/ListP.h>
-#include <Xm/Separator.h>
-#include <Xm/ScrolledWP.h>
-#include <Xm/ScrollBarP.h>
-
-#include <Xm/ManagerP.h>
-#include "ComboBox.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * External definitions of syn_resources for our list widget.
- */
-#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value)
-extern void _DtComboBoxGetArrowSize            SYN_RESOURCE_AA;
-extern void _DtComboBoxGetLabelString          SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListItemCount                SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListItems            SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListFontList         SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListMarginHeight     SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListMarginWidth      SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListSpacing          SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListTopItemPosition  SYN_RESOURCE_AA;
-extern void _DtComboBoxGetListVisibleItemCount SYN_RESOURCE_AA;
-
-#define ARROW_MULT         .45
-#define ARROW_MIN          13
-#define MARGIN             2
-#define LABEL_PADDING      2
-#define LABEL_SHADOW       2
-#define TEXT_FIELD_SHADOW   1
-#define TEXT_CONTEXT_MARGIN 4
-
-/****************************************************************
- *
- *     Message Defines
- *
- ****************************************************************/
-
-#define CB_ALIGNMENT   DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_ALIGNMENT, _DtMsgComboBox_0000)
-
-#define CB_MARGIN_HEIGHT       DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_MARGIN_HEIGHT, _DtMsgComboBox_0001)
-
-#define CB_MARGIN_WIDTH        DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_MARGIN_WIDTH, _DtMsgComboBox_0002)
-
-#define CB_HORIZONTAL_SPACING  DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_HORIZONTAL_SPACING, _DtMsgComboBox_0003)
-
-#define CB_VERTICAL_SPACING    DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_VERTICAL_SPACING, _DtMsgComboBox_0004)
-
-#define CB_ORIENTATION DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_ORIENTATION, _DtMsgComboBox_0005)
-
-#define CB_ITEM_COUNT  DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_ITEM_COUNT, _DtMsgComboBox_0006)
-
-#define CB_VISIBLE_ITEM        DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_VISIBLE_ITEM, _DtMsgComboBox_0007)
-
-#define CB_TEXT                DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_TEXT, _DtMsgComboBox_0008)
-
-#define CB_SET_ITEM            DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_SET_ITEM, _DtMsgComboBox_0009)
-
-#define CB_SELECT_ITEM         DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_SELECT_ITEM, _DtMsgComboBox_0010)
-
-#define CB_RESIZE      DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_RESIZE, _DtMsgComboBox_0011)
-
-#define CB_LABEL       DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_LABEL, _DtMsgComboBox_0012)
-
-#define CB_CVTSTRING   DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_CVTSTRING, _DtMsgComboBox_0013)
-
-#define CB_DEL_POS     DTWIDGET_GETMESSAGE( \
-                          MS_ComboBox, COMBO_DEL_POS, _DtMsgComboBox_0014)
-/* 
- * Class Records
- */
-typedef struct {
-    Boolean junk;  /* Need something */
-} DtComboBoxClassPart;
-
-typedef struct _DtComboBoxClassRec {
-    CoreClassPart          core_class;
-    CompositeClassPart     composite_class;
-    ConstraintClassPart            constraint_class;
-    XmManagerClassPart     manager_class;
-    DtComboBoxClassPart            combo_box_class;
-} DtComboBoxClassRec;
-
-extern DtComboBoxClassRec dtComboBoxClassRec;
-
-
-/*
- * Instance Record.
- */
-typedef struct _DtComboBoxPart {
-    /* Private data */
-    Widget arrow;
-    Widget shell;
-    Widget frame;
-    Widget label;
-    Widget sep;
-    Dimension old_width;
-    Dimension old_height;
-    Dimension label_max_length;
-    Dimension label_max_height;
-    /* 
-     * max_shell_width is the width that is needed to hold the
-     * list if the longest item was visible.  We then use this
-     * width to figure out if the shell is not wide enough,
-     * when it gets popped on the screen.  This is needed in case the
-     * combo-box resizes, or if items changes (list will resize).
-     * Sometimes we change the size of the shell to fit on the screen, or
-     * to make it at least as large as the combo_box.  The next time we pop
-     * the shell up the size may be different; therefore, we set the shell
-     * size to the maximum everytime it gets popped up, then we will
-     * make adjustments, only if needed.
-     * This value gets saved every time the user updates DtNitems.
-     */
-    Dimension max_shell_width;
-    Dimension max_shell_height;
-
-    /* ComboBox specific public resources */
-    Dimension margin_height;
-    Dimension margin_width;
-    XmString selected_item;
-    int selected_position;
-    XtCallbackList selection_callback;
-    unsigned char type;
-    Dimension arrow_spacing;
-
-    /* ComboBox specific private resources */
-    Dimension arrow_size;
-    XtCallbackList activate_callback;
-    unsigned char alignment;
-    unsigned char arrow_type;
-    short text_columns;
-    XtCallbackList focus_callback;
-    Dimension horizontal_spacing;
-    int item_count;
-    XmStringTable items;
-    XmStringTable list_items;
-    XmString label_string;
-    Widget list;
-    XmFontList list_font_list;
-    Dimension list_margin_height;
-    Dimension list_margin_width;
-    Dimension list_spacing;
-    XtCallbackList losing_focus_callback;
-    unsigned int text_max_length;
-    XtCallbackList menu_post_callback;
-    unsigned char orientation;
-    Boolean popped_up;
-    Boolean recompute_size;
-    Widget text;
-    int top_item_position;
-    Boolean update_label;
-    Dimension vertical_spacing;
-    int visible_item_count;
-} DtComboBoxPart;
-
-
-typedef struct _DtComboBoxRec {
-    CorePart           core;
-    CompositePart      composite;
-    ConstraintPart     constraint;
-    XmManagerPart      manager;
-    DtComboBoxPart     combo_box;
-} DtComboBoxRec;
-
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _XmComboBoxP_h */
diff --git a/cde/lib/DtWidget/Control.h b/cde/lib/DtWidget/Control.h
deleted file mode 100644 (file)
index d01c7af..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           Control.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Public include file for DtControl class.
-***    
-***    
-***                    (c) Copyright 1992 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtControl_h
-#define _DtControl_h
-
-#include <Xm/Xm.h>
-
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-#define XmCONTROL_NONE         0
-#define XmCONTROL_BLANK                1
-#define XmCONTROL_BUSY         2
-#define XmCONTROL_BUTTON       3
-#define XmCONTROL_CLIENT       4
-#define XmCONTROL_DATE         5
-#define XmCONTROL_MAIL         6
-#define XmCONTROL_MONITOR      7
-#define XmCONTROL_SWITCH       8
-
-#define NUM_LIST_ITEMS         10
-
-#define XmCR_BUSY_START                60
-#define XmCR_BUSY_STOP         61
-#define XmCR_MONITOR           62
-
-#define DtMONITOR_OFF           0
-#define DtMONITOR_ON            1
-
-#define XmNuseLabelAdjustment  "use_label_adjustment"
-
-#ifndef DtIsControl
-#define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
-#endif /* DtIsControl */
-
-
-extern Widget _DtCreateControl (Widget, String, ArgList, int);
-extern void _DtControlSetFileChanged (Widget, Boolean);
-extern void _DtControlSetBusy (Widget, Boolean);
-extern void _DtControlAddDropAnimationImage (Widget, String, int);
-extern void _DtControlDoDropAnimation (Widget);
-extern void _DtControlAddPushAnimationImage (Widget, String, int);
-extern void _DtControlDoPushAnimation (Widget);
-extern char _DtControlGetMonitorState(Widget);
-
-
-extern WidgetClass dtControlGadgetClass;
-
-typedef struct _DtControlClassRec * DtControlClass;
-typedef struct _DtControlRec      * DtControlGadget;
-
-#define XmCR_FILE_CHANGED      51
-
-typedef struct
-    {
-    int                         reason;
-    XEvent             *event;
-    Boolean             set;
-    unsigned char       control_type;
-    XtPointer           push_function;
-    XtPointer           push_argument;
-    Widget              subpanel;
-    long                file_size;
-    }  DtControlCallbackStruct;
-
-#if defined(__cplusplus) || defined(c_plusplus)
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-
-#endif /* _DtControl_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/ControlP.h b/cde/lib/DtWidget/ControlP.h
deleted file mode 100644 (file)
index 878c120..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ControlP.h /main/6 1996/03/25 11:17:48 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           ControlP.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Private include file for DtControl class.
-***    
-***    
-***                    (c) Copyright 1992 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtControlP_h
-#define _DtControlP_h
-
-#include <Xm/XmP.h>
-#include <Dt/IconP.h>
-#include <Dt/Control.h>
-
-typedef struct _DtControlCacheObjClassPart
-{
-    XtPointer dummy;
-} DtControlCacheObjClassPart;
-
-
-typedef struct _DtControlCacheObjClassRec     /* label cache class record */
-{
-    ObjectClassPart                     object_class;
-    XmExtClassPart                      ext_class;
-    DtControlCacheObjClassPart           control_class_cache;
-} DtControlCacheObjClassRec;
-
-externalref DtControlCacheObjClassRec dtControlCacheObjClassRec;
-
-
-/*  The Control Gadget Cache instance record  */
-
-typedef struct _DtControlCacheObjPart
-{
-    XtPointer dummy;
-} DtControlCacheObjPart;
-
-typedef struct _DtControlCacheObjRec
-{
-    ObjectPart               object;
-    XmExtPart                ext;
-    DtControlCacheObjPart   control_cache;
-} DtControlCacheObjRec;
-
-/*-------------------------------------------------------------
-**     Class Structure
-*/
-
-/*     Class Part
-*/
-typedef struct _DtControlClassPart
-{
-       XmCacheClassPartPtr     cache_part;
-       caddr_t                 extension;
-} DtControlClassPart;
-
-/*     Full Class Record
-*/
-typedef struct _DtControlClassRec
-{
-       RectObjClassPart        rect_class;
-       XmGadgetClassPart       gadget_class;
-       DtIconClassPart icon_class;
-       DtControlClassPart      control_class;
-} DtControlClassRec;
-
-/*     Actual Class
-*/
-extern DtControlClassRec dtControlClassRec;
-
-
-\f
-/*-------------------------------------------------------------
-**     Instance Structure
-*/
-
-/*     Instance Part
-*/
-typedef struct _DtControlPart
-{
-       XtPointer       push_function;
-       XtPointer       push_argument;
-
-       String          push_action;
-       int             num_push_images;
-       int             max_push_images;
-       int             push_image_position;
-       int             *push_delays;
-       Pixmap          *push_pixmaps;
-       Pixmap          *push_masks;
-
-       String          drop_action;
-       int             num_drop_images;
-       int             max_drop_images;
-       int             drop_image_position;
-       int             *drop_delays;
-       Pixmap          *drop_pixmaps;
-       Pixmap          *drop_masks;
-
-       Widget          subpanel;
-
-       Pixmap          alt_pix;
-       Pixmap          alt_mask;
-       String          alt_image;
-
-       XmString        alt_string;
-       Dimension       alt_string_width;
-       Dimension       alt_string_height;
-
-       String          format;
-        String          format_jp;
-       String          file_name;
-       long            file_size;
-       XtIntervalId    monitor_timer;
-       int             monitor_time;
-       Boolean         chime;
-       Boolean         file_changed;
-
-       Boolean         _do_update;
-       Boolean         use_embossed_text;
-       Boolean         use_label_adj;
-
-       unsigned char   control_type;
-
-       GC              top_shadow_gc;
-       GC              bottom_shadow_gc;
-
-       XtIntervalId    click_timer;
-       int             click_time;
-
-       short           busy;
-       int             blink_elapsed;
-       int             max_blink_time;
-       int             blink_time;
-       XtIntervalId    blink_timer;
-
-       XtIntervalId    date_timer;
-       XtIntervalId    push_animation_timer;
-       XtIntervalId    drop_animation_timer;
-} DtControlPart;
-
-/*     Full Instance Record
-*/
-typedef struct _DtControlRec
-{
-       ObjectPart      object;
-       RectObjPart     rectangle;
-       XmGadgetPart    gadget;
-       DtIconPart      icon;
-       DtControlPart   control;
-} DtControlRec;
-
-
-/*-------------------------------------------------------------
-**     Class and Instance Macros
-*/
-
-/*     DtControl Class Macros
-*/     
-
-/*     DtControl Instance Macros
-*/
-#define G_Format(g)            (g -> control.format)
-#define G_TopShadowGC(g)       (g -> control.top_shadow_gc)
-#define G_BottomShadowGC(g)    (g -> control.bottom_shadow_gc)
-#define G_Busy(g)              (g -> control.busy)
-#define G_PushImagePosition(g) (g -> control.push_image_position)
-#define G_NumPushImages(g)     (g -> control.num_push_images)
-#define G_MaxPushImages(g)     (g -> control.max_push_images)
-#define G_PushDelays(g)                (g -> control.push_delays)
-#define G_PushPixmaps(g)       (g -> control.push_pixmaps)
-#define G_PushMasks(g)         (g -> control.push_masks)
-#define G_DropImagePosition(g) (g -> control.drop_image_position)
-#define G_NumDropImages(g)     (g -> control.num_drop_images)
-#define G_MaxDropImages(g)     (g -> control.max_drop_images)
-#define G_DropDelays(g)                (g -> control.drop_delays)
-#define G_DropPixmaps(g)       (g -> control.drop_pixmaps)
-#define G_DropMasks(g)         (g -> control.drop_masks)
-#define G_DropAction(g)                (g -> control.drop_action)
-#define G_PushAction(g)                (g -> control.push_action)
-#define G__DoUpdate(g)         (g -> control._do_update)
-#define G_PushFunction(g)      (g -> control.push_function)
-#define G_PushArgument(g)      (g -> control.push_argument)
-#define G_Subpanel(g)          (g -> control.subpanel)
-#define G_AltMask(g)           (g -> control.alt_mask)
-#define G_AltPix(g)            (g -> control.alt_pix)
-#define G_AltString(g)         (g -> control.alt_string)
-#define G_AltStringWidth(g)    (g -> control.alt_string_width)
-#define G_AltStringHeight(g)   (g -> control.alt_string_height)
-#define G_ControlType(g)       (g -> control.control_type)
-#define G_AltImage(g)          (g -> control.alt_image)
-#define G_FileChanged(g)       (g -> control.file_changed)
-#define G_FileName(g)          (g -> control.file_name)
-#define G_FileSize(g)          (g -> control.file_size)
-#define G_Chime(g)             (g -> control.chime)
-#define G_MonitorTimer(g)      (g -> control.monitor_timer)
-#define G_MonitorTime(g)       (g -> control.monitor_time)
-#define G_ClickTime(g)         (g -> control.click_time)
-#define G_ClickTimer(g)                (g -> control.click_timer)
-#define G_DateTimer(g)         (g -> control.date_timer)
-#define G_PushAnimationTimer(g)        (g -> control.push_animation_timer)
-#define G_DropAnimationTimer(g)        (g -> control.drop_animation_timer)
-#define G_BlinkCount(g)                (g -> control.blink_count)
-#define G_BlinkElapsed(g)      (g -> control.blink_elapsed)
-#define G_MaxBlinkTime(g)      (g -> control.max_blink_time)
-#define G_BlinkTime(g)         (g -> control.blink_time)
-#define G_BlinkTimer(g)                (g -> control.blink_timer)
-#define G_BlinkTime(g)         (g -> control.blink_time)
-#define G_UseEmbossedText(g)   (g -> control.use_embossed_text)
-#define G_UseLabelAdjustment(g)        (g -> control.use_label_adj)
-
-
-#endif /* _DtControlP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/DialogBox.h b/cde/lib/DtWidget/DialogBox.h
deleted file mode 100644 (file)
index 8db03c5..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           DialogBox.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Public include file for DtDialogBox class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtDialogBox_h
-#define _DtDialogBox_h
-
-#include <Xm/Xm.h>
-#include <Dt/DtStrDefs.h>
-
-#ifndef DtIsDialogBox
-#define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass)
-#endif /* XmIsDialogBox */
-
-
-extern Widget _DtCreateDialogBox( 
-                        Widget parent,
-                        char *name,
-                        ArgList arglist,
-                        Cardinal argcount) ;
-extern Widget __DtCreateDialogBoxDialog( 
-                        Widget ds_p,
-                        String name,
-                        ArgList db_args,
-                        Cardinal db_n) ;
-extern Widget _DtDialogBoxGetButton( 
-                        Widget w,
-                        Cardinal pos) ;
-extern Widget _DtDialogBoxGetWorkArea( 
-                        Widget w) ;
-
-
-extern WidgetClass dtDialogBoxWidgetClass;
-
-typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass;
-typedef struct _DtDialogBoxRec      * DtDialogBoxWidget;
-
-
-#define XmBUTTON       11
-
-
-#define XmCR_DIALOG_BUTTON     100
-
-typedef struct
-{
-       int             reason;
-       XEvent *        event;
-       Cardinal        button_position;
-       Widget          button;
-} DtDialogBoxCallbackStruct;
-
-
-#endif /* _DtDialogBox_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/DialogBoxP.h b/cde/lib/DtWidget/DialogBoxP.h
deleted file mode 100644 (file)
index fc402f5..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DialogBoxP.h /main/5 1996/03/27 20:16:24 drk $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           DialogBoxP.h
-***
-***    project:        Motif Widgets
-***
-***    description:    Private include file for DtDialogBox class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtDialogBoxP_h
-#define _DtDialogBoxP_h
-
-#include <Xm/XmP.h>
-#include <Xm/BulletinBP.h>
-#include <Xm/FormP.h>
-#include <Dt/DialogBox.h>
-
-typedef void (*DlgGetSizeProc)(
-       Widget,
-       Dimension,
-       Dimension,
-       Dimension,
-       Dimension,
-       Dimension *,
-       Dimension *
-);
-/*-------------------------------------------------------------
-**     Class Structure
-*/
-
-/*     Class Part
-*/
-typedef struct _DtDialogBoxClassPart
-{
-       XtWidgetProc            create_children;
-       XtWidgetProc            configure_children;
-       DlgGetSizeProc          get_size;
-       XtCallbackProc          button_callback;
-       caddr_t                 extension;
-} DtDialogBoxClassPart;
-
-/*     Full Class Record
-*/
-typedef struct _DtDialogBoxClassRec
-{
-       CoreClassPart           core_class;
-       CompositeClassPart      composite_class;
-       ConstraintClassPart     constraint_class;
-       XmManagerClassPart      manager_class;
-       XmBulletinBoardClassPart        bulletin_board_class;
-       XmFormClassPart         form_class;
-       DtDialogBoxClassPart    dialog_box_class;
-} DtDialogBoxClassRec;
-
-/*     Actual Class
-*/
-extern DtDialogBoxClassRec dtDialogBoxClassRec;
-
-
-/*-------------------------------------------------------------
-**     Instance Structure
-*/
-
-/*     Instance Part
-*/
-typedef struct _DtDialogBoxPart
-{
-       XtCallbackList  callback;
-       Widget          work_area;
-       Widget          separator;
-       WidgetList      button;
-       Cardinal        button_count;   
-       Boolean         minimize_buttons;
-       XmStringTable   button_label_strings;
-} DtDialogBoxPart;
-
-/*     Full Instance Record
-*/
-typedef struct _DtDialogBoxRec
-{
-       CorePart                core;
-       CompositePart           composite;
-       ConstraintPart          constraint;
-       XmManagerPart           manager;
-       XmBulletinBoardPart     bulletin_board;
-       XmFormPart              form;
-       DtDialogBoxPart         dialog_box;
-} DtDialogBoxRec;
-
-
-/*-------------------------------------------------------------
-**     Constraint Structure
-*/
-
-/*     Constraint Part
-*/
-typedef struct _DtDialogBoxConstraintPart
-{
-       unsigned char           child_type;
-} DtDialogBoxConstraintPart, * DtDialogBoxConstraint;
-
-/*     Full Constraint Record
-*/
-typedef struct _DtDialogBoxConstraintRec
-{
-       XmManagerConstraintPart         manager_constraint;
-       XmFormConstraintPart            form_constraint;
-       DtDialogBoxConstraintPart       dialog_box_constraint;
-} DtDialogBoxConstraintRec, * DtDialogBoxConstraintPtr;
-
-
-\f
-/*-------------------------------------------------------------
-**     Class and Instance Macros
-*/
-
-/*     DtDialogBox Class Macros
-*/     
-/**** WARNING: These macros are not thread-safe! ****/
-#define C_CreateChildren(mc)   ((mc) -> dialog_box_class.create_children)
-#define C_ConfigureChildren(mc)        ((mc) -> dialog_box_class.configure_children)
-#define C_GetSize(mc)          ((mc) -> dialog_box_class.get_size)
-#define C_ButtonCallback(mc)   ((mc) -> dialog_box_class.button_callback)
-
-/*     DtDialogBox Instance Macros
-*/
-#define M_DialogBoxConstraint(w) \
-       (&((DtDialogBoxConstraintPtr) (w)->core.constraints) \
-               -> dialog_box_constraint)
-#define M_WorkArea(m)          (m -> dialog_box.work_area)
-#define M_Separator(m)         (m -> dialog_box.separator)
-#define M_MinimizeButtons(m)   (m -> dialog_box.minimize_buttons)
-#define M_Button(m)            (m -> dialog_box.button)
-#define M_ButtonCount(m)       (m -> dialog_box.button_count)
-#define M_ButtonLabelStrings(m)        (m -> dialog_box.button_label_strings)
-#define M_Callback(m)          (m -> dialog_box.callback)
-
-#endif /* _DtDialogBoxP_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/DtMsgsP.h b/cde/lib/DtWidget/DtMsgsP.h
deleted file mode 100644 (file)
index 3f13975..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtMsgsP.h /main/7 1996/06/19 11:27:42 cde-dec $ */
-/*
- * DtWidget/DtMsgsP.h
- */
-/*
- * DtMsgsP.h:
- *
- * Private header file for libDtWidget
- */
-#ifndef _DtMessages_h
-#define _DtMessages_h
-
-/*** const causes the HP compiler to complain.  Remove reference until   ***
- *** the build and integration people can figure out how to get this to  ***
- *** work.                                                               ***/
-
-/* #define CONST       const */
-#define CONST
-
-#ifdef I18N_MSG
-#include <nl_types.h>
-#define DTWIDGET_GETMESSAGE(set, number, string)\
-    (char *) _DtWidgetGetMessage(set, number, string)
-
-#else /* I18N_MSG */
-#define DTWIDGET_GETMESSAGE(set, number, string) string
-#endif /* I18N_MSG */
-
-extern CONST char _DtMsgCommon_0000[];
-extern CONST char _DtMsgCommon_0001[];
-extern CONST char _DtMsgComboBox_0000[];
-extern CONST char _DtMsgComboBox_0001[];
-extern CONST char _DtMsgComboBox_0002[];
-extern CONST char _DtMsgComboBox_0003[];
-extern CONST char _DtMsgComboBox_0004[];
-extern CONST char _DtMsgComboBox_0005[];
-extern CONST char _DtMsgComboBox_0006[];
-extern CONST char _DtMsgComboBox_0007[];
-extern CONST char _DtMsgComboBox_0008[];
-extern CONST char _DtMsgComboBox_0009[];
-extern CONST char _DtMsgComboBox_0010[];
-extern CONST char _DtMsgComboBox_0011[];
-extern CONST char _DtMsgComboBox_0012[];
-extern CONST char _DtMsgComboBox_0013[];
-extern CONST char _DtMsgComboBox_0014[];
-extern CONST char _DtMsgDialogBox_0000[];
-extern CONST char _DtMsgDialogBox_0001[];
-extern CONST char _DtMsgEditor_0000[];
-extern CONST char _DtMsgEditor_0001[];
-extern CONST char _DtMsgEditor_0002[];
-extern CONST char _DtMsgEditor_0003[];
-extern CONST char _DtMsgEditor_0004[];
-extern CONST char _DtMsgEditor_0005[];
-extern CONST char _DtMsgEditor_0006[];
-extern CONST char _DtMsgEditor_0007[];
-extern CONST char _DtMsgEditor_0008[];
-extern CONST char _DtMsgEditor_0009[];
-extern CONST char _DtMsgEditor_0010[];
-extern CONST char _DtMsgEditor_0011[];
-extern CONST char _DtMsgEditor_0012[];
-extern CONST char _DtMsgEditor_0013[];
-extern CONST char _DtMsgEditor_0014[];
-extern CONST char _DtMsgEditor_0015[];
-extern CONST char _DtMsgEditor_0016[];
-extern CONST char _DtMsgEditor_0017[];
-extern CONST char _DtMsgEditor_0018[];
-extern CONST char _DtMsgEditor_0019[];
-extern CONST char _DtMsgEditor_0020[];
-extern CONST char _DtMsgEditor_0021[];
-extern CONST char _DtMsgEditor_0022[];
-extern CONST char _DtMsgEditor_0023[];
-extern CONST char _DtMsgEditor_0024[];
-extern CONST char _DtMsgEditor_0025[];
-extern CONST char _DtMsgIcon_0000[];
-extern CONST char _DtMsgIcon_0001[];
-extern CONST char _DtMsgIcon_0002[];
-extern CONST char _DtMsgIcon_0003[];
-extern CONST char _DtMsgIcon_0004[];
-extern CONST char _DtMsgIcon_0005[];
-extern CONST char _DtMsgIndicator_0000[];
-extern CONST char _DtMsgMenuButton_0000[];
-extern CONST char _DtMsgMenuButton_0001[];
-extern CONST char _DtMsgMenuButton_0002[];
-extern CONST char _DtMsgSpinBox_0000[];
-extern CONST char _DtMsgSpinBox_0001[];
-extern CONST char _DtMsgSpinBox_0002[];
-extern CONST char _DtMsgSpinBox_0003[];
-extern CONST char _DtMsgSpinBox_0004[];
-extern CONST char _DtMsgSpinBox_0005[];
-extern CONST char _DtMsgSpinBox_0006[];
-extern CONST char _DtMsgSpinBox_0007[];
-extern CONST char _DtMsgSpinBox_0008[];
-extern CONST char _DtMsgSpinBox_0009[];
-extern CONST char _DtMsgSpinBox_0010[];
-extern CONST char _DtMsgSpinBox_0011[];
-extern CONST char _DtMsgSpinBox_0012[];
-extern CONST char _DtMsgSpinBox_0013[];
-extern CONST char _DtMsgSpinBox_0014[];
-extern CONST char _DtMsgTitleBox_0000[];
-extern CONST char _DtMsgTitleBox_0001[];
-extern CONST char _DtMsgTitleBox_0002[];
-extern CONST char _DtMsgTitleBox_0003[];
-extern CONST char _DtMsgTitleBox_0004[];
-
-#ifdef I18N_MSG
-
-/* 
- * Message set for shared messages 
- */
-#define        MS_Common               2
-
-/* Message IDs for shared messages */
-#define        MSG_CLOSE               1
-#define        MSG_HELP                2
-
-/* 
- * Message set for Editor widget
- */
-#define        MS_Editor               3
-
-/* Message IDs for Editor */
-#define        EDITOR_FORMAT_SETTINGS  1
-#define        EDITOR_RIGHT_MARGIN     2
-#define        EDITOR_LEFT_MARGIN      3
-#define        EDITOR_LEFT_ALIGN       4
-#define        EDITOR_RIGHT_ALIGN      5
-#define        EDITOR_JUSTIFY          6
-#define        EDITOR_CENTER           7
-#define        EDITOR_PARAGRAPH        8
-#define        EDITOR_ALL              9
-#define        EDITOR_SPELL_TITLE      20
-#define        EDITOR_FIND_TITLE       21
-#define        EDITOR_MISSPELLED       22
-#define        EDITOR_FIND_LABEL       23
-#define        EDITOR_CHANGE_LABEL     24
-#define        EDITOR_FIND_BUTTON      25
-#define        EDITOR_CHANGE_BUTTON    26
-#define        EDITOR_CHNG_ALL_BUTTON  27
-#define        EDITOR_NO_FIND          30
-#define        EDITOR_INFO_TITLE       31
-#define        EDITOR_LINE             40
-#define        EDITOR_TOTAL            41
-#define        EDITOR_OVR              42
-#define        EDITOR_INS              43
-#define EDITOR_FILTER_ERROR     50 
-#define EDITOR_FILTER_ERROR2    51 
-#define EDITOR_ERROR_TITLE      52 
-
-/* 
- * Message set for MenuButton widget
- */
-#define        MS_MenuButton           4
-
-/* Message IDs for MenuButton*/
-#define        MENU_POST               1
-#define        MENU_PARENT             2
-#define        MENU_SUBMENU            3
-
-/* 
- * Message set for ComboBox widget
- */
-#define        MS_ComboBox             5
-
-/* Message IDs for ComboBox */
-#define        COMBO_ALIGNMENT         1 
-#define        COMBO_MARGIN_HEIGHT     2
-#define        COMBO_MARGIN_WIDTH      3 
-#define        COMBO_HORIZONTAL_SPACING        4
-#define        COMBO_VERTICAL_SPACING  5
-#define        COMBO_ORIENTATION       6
-#define        COMBO_ITEM_COUNT        7
-#define        COMBO_VISIBLE_ITEM      8 
-#define        COMBO_TEXT              9
-#define        COMBO_SET_ITEM          10
-#define        COMBO_SELECT_ITEM       11
-#define        COMBO_RESIZE            12
-#define        COMBO_LABEL             13
-#define        COMBO_CVTSTRING         14
-#define        COMBO_DEL_POS           15
-
-/* 
- * Message set for SpinBox widget
- */
-#define        MS_SpinBox              6
-
-/* Message IDs for SpinBox */
-#define        SPIN_ARROW_SENSITIVE    1
-#define        SPIN_ALIGNMENT          2 
-#define        SPIN_INIT_DELAY         3
-#define SPIN_MARGIN_HEIGHT     4
-#define SPIN_MARGIN_WIDTH      5
-#define SPIN_ARROW_LAYOUT      6
-#define SPIN_REPEAT_DELAY      7
-#define SPIN_ITEM_COUNT                8
-#define SPIN_POSITION_STRING   9
-#define SPIN_POSITION_NUMERIC  10
-#define SPIN_DECIMAL_POINTS    11
-#define SPIN_MIN_MAX           12
-#define SPIN_TEXT              13
-#define SPIN_SET_ITEM          14      
-#define SPIN_LABEL             15      
-
-extern char *  _DtWidgetGetMessage(
-                       int set,
-                       int n,
-                       char *s );
-
-#endif /* I18N_MSG */
-
-#endif /* _DtMessageh */
diff --git a/cde/lib/DtWidget/DtStrDefs.h b/cde/lib/DtWidget/DtStrDefs.h
deleted file mode 100644 (file)
index bf9f992..0000000
+++ /dev/null
@@ -1,542 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: DtStrDefs.h /main/4 1996/03/25 11:18:44 rswiston $ */
-/* This file is automatically generated. */
-/* Do not edit. */
-
-#ifndef _DtStrDefs_h_
-#define _DtStrDefs_h_
-
-#ifdef DTSTRINGDEFINES
-#define DtCAlternateImage "AlternateImage"
-#define DtCBehavior "Behavior"
-#define DtRBehavior "Behavior"
-#define DtCBorderType "BorderType"
-#define DtRBorderType "BorderType"
-#define DtCBoxType "BoxType"
-#define DtRBoxType "BoxType"
-#define DtCButtonLabelStrings "ButtonLabelStrings"
-#define DtCControlType "ControlType"
-#define DtRControlType "ControlType"
-#define DtCCursorFont "CursorFont"
-#define DtCDrawShadow "DrawShadow"
-#define DtCDropAction "DropAction"
-#define DtCDropCallback "DropCallback"
-#define DtCFillMode "FillMode"
-#define DtRFillMode "FillMode"
-#define DtCFormat "Format"
-#define DtCHighResFontList "HighResFontList"
-#define DtCLowResFontList "LowResFontList"
-#define DtCMediumResFontList "MediumResFontList"
-#define DtCPixmapPosition "PixmapPosition"
-#define DtRPixmapPosition "PixmapPosition"
-#define DtCPushArgument "PushArgument"
-#define DtCPushFunction "PushFunction"
-#define DtCStringPosition "StringPosition"
-#define DtRStringPosition "StringPosition"
-#define DtCSubpanel "Subpanel"
-#define DtCTitleSpacing "TitleSpacing"
-#define DtCTitlePosition "TitlePosition"
-#define DtRTitlePosition "TitlePosition"
-#define DtCUnderline "Underline"
-#define DtNalternateImage "alternateImage"
-#define DtNbehavior "behavior"
-#define DtNbottomInset "bottomInset"
-#define DtNborderType "borderType"
-#define DtNboxType "boxType"
-#define DtNbuttonLabelStrings "buttonLabelStrings"
-#define DtNchime "chime"
-#define DtNclientTimeoutInterval "clientTimeoutInterval"
-#define DtNclockInterval "clockInterval"
-#define DtNcontrolType "controlType"
-#define DtNcursorFont "cursorFont"
-#define DtNdrawShadow "drawShadow"
-#define DtNdropAction "dropAction"
-#define DtNdropCallback "dropCallback"
-#define DtNfileName "fileName"
-#define DtNfillMode "fillMode"
-#define DtNformat "format"
-#define DtNheightIncrement "heightIncrement"
-#define DtNhighResFontList "highResFontList"
-#define DtNimageName "imageName"
-#define DtNleftInset "leftInset"
-#define DtNlowResFontList "lowResFontList"
-#define DtNmediumResFontList "mediumResFontList"
-#define DtNmonitorTime "monitorTime"
-#define DtNpixmapForeground "pixmapForeground"
-#define DtNpixmapBackground "pixmapBackground"
-#define DtNmaxPixmapWidth "maxPixmapWidth"
-#define DtNmaxPixmapHeight "maxPixmapHeight"
-#define DtNpixmapPosition "pixmapPosition"
-#define DtNpushArgument "pushArgument"
-#define DtNpushButtonClickTime "pushButtonClickTime"
-#define DtNpushFunction "pushFunction"
-#define DtNrightInset "rightInset"
-#define DtNstringPosition "stringPosition"
-#define DtNsubpanel "subpanel"
-#define DtNresolution "resolution"
-#define DtNtitleSpacing "titleSpacing"
-#define DtNtitlePosition "titlePosition"
-#define DtNtitleAlignment "titleAlignment"
-#define DtNtopInset "topInset"
-#define DtNunderline "underline"
-#define DtNuseEmbossedText "useEmbossedText"
-#define DtNwaitingBlinkRate "waitingBlinkRate"
-#define DtNwidthIncrement "widthIncrement"
-#define DtSicon_label "icon_label"
-#define DtSicon_button "icon_button"
-#define DtSicon_toggle "icon_toggle"
-#define DtSicon_drag "icon_drag"
-#define DtSwork_area "work_area"
-#define DtStitle_area "title_area"
-#define DtSseparator "separator"
-#define DtSbutton "button"
-#define DtSfill_none "fill_none"
-#define DtSfill_parent "fill_parent"
-#define DtSfill_transparent "fill_transparent"
-#define DtSfill_self "fill_self"
-#define DtSpixmap_top "pixmap_top"
-#define DtSpixmap_bottom "pixmap_bottom"
-#define DtSpixmap_left "pixmap_left"
-#define DtSpixmap_right "pixmap_right"
-#define DtSstring_top "string_top"
-#define DtSstring_bottom "string_bottom"
-#define DtSstring_left "string_left"
-#define DtSstring_right "string_right"
-#define DtStitle_top "title_top"
-#define DtStitle_bottom "title_bottom"
-#define DtNformatJP "formatJP"
-#define DtCFormatJP "FormatJP"
-#else
-#ifndef _DtConst
-#define _DtConst /**/
-#endif
-extern _DtConst char _DtStrings[];
-#ifndef DtCAlternateImage
-#define DtCAlternateImage ((char*)&_DtStrings[0])
-#endif
-#ifndef DtCBehavior
-#define DtCBehavior ((char*)&_DtStrings[15])
-#endif
-#ifndef DtRBehavior
-#define DtRBehavior ((char*)&_DtStrings[24])
-#endif
-#ifndef DtCBorderType
-#define DtCBorderType ((char*)&_DtStrings[33])
-#endif
-#ifndef DtRBorderType
-#define DtRBorderType ((char*)&_DtStrings[44])
-#endif
-#ifndef DtCBoxType
-#define DtCBoxType ((char*)&_DtStrings[55])
-#endif
-#ifndef DtRBoxType
-#define DtRBoxType ((char*)&_DtStrings[63])
-#endif
-#ifndef DtCButtonLabelStrings
-#define DtCButtonLabelStrings ((char*)&_DtStrings[71])
-#endif
-#ifndef DtCControlType
-#define DtCControlType ((char*)&_DtStrings[90])
-#endif
-#ifndef DtRControlType
-#define DtRControlType ((char*)&_DtStrings[102])
-#endif
-#ifndef DtCCursorFont
-#define DtCCursorFont ((char*)&_DtStrings[114])
-#endif
-#ifndef DtCDrawShadow
-#define DtCDrawShadow ((char*)&_DtStrings[125])
-#endif
-#ifndef DtCDropAction
-#define DtCDropAction ((char*)&_DtStrings[136])
-#endif
-#ifndef DtCDropCallback
-#define DtCDropCallback ((char*)&_DtStrings[147])
-#endif
-#ifndef DtCFillMode
-#define DtCFillMode ((char*)&_DtStrings[160])
-#endif
-#ifndef DtRFillMode
-#define DtRFillMode ((char*)&_DtStrings[169])
-#endif
-#ifndef DtCFormat
-#define DtCFormat ((char*)&_DtStrings[178])
-#endif
-#ifndef DtCHighResFontList
-#define DtCHighResFontList ((char*)&_DtStrings[185])
-#endif
-#ifndef DtCLowResFontList
-#define DtCLowResFontList ((char*)&_DtStrings[201])
-#endif
-#ifndef DtCMediumResFontList
-#define DtCMediumResFontList ((char*)&_DtStrings[216])
-#endif
-#ifndef DtCPixmapPosition
-#define DtCPixmapPosition ((char*)&_DtStrings[234])
-#endif
-#ifndef DtRPixmapPosition
-#define DtRPixmapPosition ((char*)&_DtStrings[249])
-#endif
-#ifndef DtCPushArgument
-#define DtCPushArgument ((char*)&_DtStrings[264])
-#endif
-#ifndef DtCPushFunction
-#define DtCPushFunction ((char*)&_DtStrings[277])
-#endif
-#ifndef DtCStringPosition
-#define DtCStringPosition ((char*)&_DtStrings[290])
-#endif
-#ifndef DtRStringPosition
-#define DtRStringPosition ((char*)&_DtStrings[305])
-#endif
-#ifndef DtCSubpanel
-#define DtCSubpanel ((char*)&_DtStrings[320])
-#endif
-#ifndef DtCTitleSpacing
-#define DtCTitleSpacing ((char*)&_DtStrings[329])
-#endif
-#ifndef DtCTitlePosition
-#define DtCTitlePosition ((char*)&_DtStrings[342])
-#endif
-#ifndef DtRTitlePosition
-#define DtRTitlePosition ((char*)&_DtStrings[356])
-#endif
-#ifndef DtCUnderline
-#define DtCUnderline ((char*)&_DtStrings[370])
-#endif
-#ifndef DtNalternateImage
-#define DtNalternateImage ((char*)&_DtStrings[380])
-#endif
-#ifndef DtNbehavior
-#define DtNbehavior ((char*)&_DtStrings[395])
-#endif
-#ifndef DtNbottomInset
-#define DtNbottomInset ((char*)&_DtStrings[404])
-#endif
-#ifndef DtNborderType
-#define DtNborderType ((char*)&_DtStrings[416])
-#endif
-#ifndef DtNboxType
-#define DtNboxType ((char*)&_DtStrings[427])
-#endif
-#ifndef DtNbuttonLabelStrings
-#define DtNbuttonLabelStrings ((char*)&_DtStrings[435])
-#endif
-#ifndef DtNchime
-#define DtNchime ((char*)&_DtStrings[454])
-#endif
-#ifndef DtNclientTimeoutInterval
-#define DtNclientTimeoutInterval ((char*)&_DtStrings[460])
-#endif
-#ifndef DtNclockInterval
-#define DtNclockInterval ((char*)&_DtStrings[482])
-#endif
-#ifndef DtNcontrolType
-#define DtNcontrolType ((char*)&_DtStrings[496])
-#endif
-#ifndef DtNcursorFont
-#define DtNcursorFont ((char*)&_DtStrings[508])
-#endif
-#ifndef DtNdrawShadow
-#define DtNdrawShadow ((char*)&_DtStrings[519])
-#endif
-#ifndef DtNdropAction
-#define DtNdropAction ((char*)&_DtStrings[530])
-#endif
-#ifndef DtNdropCallback
-#define DtNdropCallback ((char*)&_DtStrings[541])
-#endif
-#ifndef DtNfileName
-#define DtNfileName ((char*)&_DtStrings[554])
-#endif
-#ifndef DtNfillMode
-#define DtNfillMode ((char*)&_DtStrings[563])
-#endif
-#ifndef DtNformat
-#define DtNformat ((char*)&_DtStrings[572])
-#endif
-#ifndef DtNheightIncrement
-#define DtNheightIncrement ((char*)&_DtStrings[579])
-#endif
-#ifndef DtNhighResFontList
-#define DtNhighResFontList ((char*)&_DtStrings[595])
-#endif
-#ifndef DtNimageName
-#define DtNimageName ((char*)&_DtStrings[611])
-#endif
-#ifndef DtNleftInset
-#define DtNleftInset ((char*)&_DtStrings[621])
-#endif
-#ifndef DtNlowResFontList
-#define DtNlowResFontList ((char*)&_DtStrings[631])
-#endif
-#ifndef DtNmediumResFontList
-#define DtNmediumResFontList ((char*)&_DtStrings[646])
-#endif
-#ifndef DtNmonitorTime
-#define DtNmonitorTime ((char*)&_DtStrings[664])
-#endif
-#ifndef DtNpixmapForeground
-#define DtNpixmapForeground ((char*)&_DtStrings[676])
-#endif
-#ifndef DtNpixmapBackground
-#define DtNpixmapBackground ((char*)&_DtStrings[693])
-#endif
-#ifndef DtNpixmapPosition
-#define DtNpixmapPosition ((char*)&_DtStrings[710])
-#endif
-#ifndef DtNpushArgument
-#define DtNpushArgument ((char*)&_DtStrings[725])
-#endif
-#ifndef DtNpushButtonClickTime
-#define DtNpushButtonClickTime ((char*)&_DtStrings[738])
-#endif
-#ifndef DtNpushFunction
-#define DtNpushFunction ((char*)&_DtStrings[758])
-#endif
-#ifndef DtNrightInset
-#define DtNrightInset ((char*)&_DtStrings[771])
-#endif
-#ifndef DtNstringPosition
-#define DtNstringPosition ((char*)&_DtStrings[782])
-#endif
-#ifndef DtNsubpanel
-#define DtNsubpanel ((char*)&_DtStrings[797])
-#endif
-#ifndef DtNresolution
-#define DtNresolution ((char*)&_DtStrings[806])
-#endif
-#ifndef DtNtitleSpacing
-#define DtNtitleSpacing ((char*)&_DtStrings[817])
-#endif
-#ifndef DtNtitlePosition
-#define DtNtitlePosition ((char*)&_DtStrings[830])
-#endif
-#ifndef DtNtitleAlignment
-#define DtNtitleAlignment ((char*)&_DtStrings[844])
-#endif
-#ifndef DtNtopInset
-#define DtNtopInset ((char*)&_DtStrings[859])
-#endif
-#ifndef DtNunderline
-#define DtNunderline ((char*)&_DtStrings[868])
-#endif
-#ifndef DtNuseEmbossedText
-#define DtNuseEmbossedText ((char*)&_DtStrings[878])
-#endif
-#ifndef DtNwaitingBlinkRate
-#define DtNwaitingBlinkRate ((char*)&_DtStrings[894])
-#endif
-#ifndef DtNwidthIncrement
-#define DtNwidthIncrement ((char*)&_DtStrings[911])
-#endif
-#ifndef DtSicon_label
-#define DtSicon_label ((char*)&_DtStrings[926])
-#endif
-#ifndef DtSicon_button
-#define DtSicon_button ((char*)&_DtStrings[937])
-#endif
-#ifndef DtSicon_toggle
-#define DtSicon_toggle ((char*)&_DtStrings[949])
-#endif
-#ifndef DtSicon_drag
-#define DtSicon_drag ((char*)&_DtStrings[961])
-#endif
-#ifndef DtSwork_area
-#define DtSwork_area ((char*)&_DtStrings[971])
-#endif
-#ifndef DtStitle_area
-#define DtStitle_area ((char*)&_DtStrings[981])
-#endif
-#ifndef DtSseparator
-#define DtSseparator ((char*)&_DtStrings[992])
-#endif
-#ifndef DtSbutton
-#define DtSbutton ((char*)&_DtStrings[1002])
-#endif
-#ifndef DtSfill_none
-#define DtSfill_none ((char*)&_DtStrings[1009])
-#endif
-#ifndef DtSfill_parent
-#define DtSfill_parent ((char*)&_DtStrings[1019])
-#endif
-#ifndef DtSfill_transparent
-#define DtSfill_transparent ((char*)&_DtStrings[1031])
-#endif
-#ifndef DtSfill_self
-#define DtSfill_self ((char*)&_DtStrings[1048])
-#endif
-#ifndef DtSpixmap_top
-#define DtSpixmap_top ((char*)&_DtStrings[1058])
-#endif
-#ifndef DtSpixmap_bottom
-#define DtSpixmap_bottom ((char*)&_DtStrings[1069])
-#endif
-#ifndef DtSpixmap_left
-#define DtSpixmap_left ((char*)&_DtStrings[1083])
-#endif
-#ifndef DtSpixmap_right
-#define DtSpixmap_right ((char*)&_DtStrings[1095])
-#endif
-#ifndef DtSstring_top
-#define DtSstring_top ((char*)&_DtStrings[1108])
-#endif
-#ifndef DtSstring_bottom
-#define DtSstring_bottom ((char*)&_DtStrings[1119])
-#endif
-#ifndef DtSstring_left
-#define DtSstring_left ((char*)&_DtStrings[1133])
-#endif
-#ifndef DtSstring_right
-#define DtSstring_right ((char*)&_DtStrings[1145])
-#endif
-#ifndef DtStitle_top
-#define DtStitle_top ((char*)&_DtStrings[1158])
-#endif
-#ifndef DtStitle_bottom
-#define DtStitle_bottom ((char*)&_DtStrings[1168])
-#endif
-#ifndef DtNmaxPixmapWidth
-#define DtNmaxPixmapWidth ((char*)&_DtStrings[1181])
-#endif
-#ifndef DtNmaxPixmapHeight
-#define DtNmaxPixmapHeight ((char*)&_DtStrings[1196])
-#endif
-#endif
-extern _DtConst char _AIXJPStrings[];
-#ifndef DtNformatJP
-#define DtNformatJP ((char*)&_AIXJPStrings[0])
-#endif
-#ifndef DtCFormatJP
-#define DtCFormatJP ((char*)&_AIXJPStrings[9])
-#endif
-
-/*
- * Resource name mapping to Xm prefix.  If Motif defines on of these
- * resources, the redefined resource definition should be removed.
- */
-#define XmCAlternateImage      DtCAlternateImage
-#define XmCBehavior            DtCBehavior
-#define XmRBehavior            DtRBehavior
-#define XmCBorderType          DtCBorderType
-#define XmRBorderType          DtRBorderType
-#define XmCBoxType             DtCBoxType
-#define XmRBoxType             DtRBoxType
-#define XmCButtonLabelStrings  DtCButtonLabelStrings
-#define XmCControlType         DtCControlType
-#define XmRControlType         DtRControlType
-#define XmCCursorFont          DtCCursorFont
-#define XmCDrawShadow          DtCDrawShadow
-#define XmCDropAction          DtCDropAction
-#define XmCDropCallback                DtCDropCallback
-#define XmCFillMode            DtCFillMode
-#define XmRFillMode            DtRFillMode
-#define XmCFormat              DtCFormat
-#define XmCHighResFontList     DtCHighResFontList
-#define XmCLowResFontList      DtCLowResFontList
-#define XmCMediumResFontList   DtCMediumResFontList
-#define XmCPixmapPosition      DtCPixmapPosition
-#define XmRPixmapPosition      DtRPixmapPosition
-#define XmCPushArgument                DtCPushArgument
-#define XmCPushFunction                DtCPushFunction
-#define XmCStringPosition      DtCStringPosition
-#define XmRStringPosition      DtRStringPosition
-#define XmCSubpanel            DtCSubpanel
-#define XmCTitleSpacing                DtCTitleSpacing
-#define XmCTitlePosition       DtCTitlePosition
-#define XmRTitlePosition       DtRTitlePosition
-#define XmCUnderline           DtCUnderline
-#define XmNalternateImage      DtNalternateImage
-#define XmNbehavior            DtNbehavior
-#define XmNbottomInset         DtNbottomInset
-#define XmNborderType          DtNborderType
-#define XmNboxType             DtNboxType
-#define XmNbuttonLabelStrings  DtNbuttonLabelStrings
-#define XmNchime               DtNchime
-#define XmNclientTimeoutInterval DtNclientTimeoutInterval
-#define XmNclockInterval       DtNclockInterval
-#define XmNcontrolType         DtNcontrolType
-#define XmNcursorFont          DtNcursorFont
-#define XmNdrawShadow          DtNdrawShadow
-#define XmNdropAction          DtNdropAction
-#define XmNdropCallback                DtNdropCallback
-#define XmNfileName            DtNfileName
-#define XmNfillMode            DtNfillMode
-#define XmNformat              DtNformat
-#define XmNheightIncrement     DtNheightIncrement
-#define XmNhighResFontList     DtNhighResFontList
-#define XmNimageName           DtNimageName
-#define XmNleftInset           DtNleftInset
-#define XmNlowResFontList      DtNlowResFontList
-#define XmNmediumResFontList   DtNmediumResFontList
-#define XmNmonitorTime         DtNmonitorTime
-#define XmNpixmapForeground    DtNpixmapForeground
-#define XmNpixmapBackground    DtNpixmapBackground
-#define XmNmaxPixmapWidth      DtNmaxPixmapWidth
-#define XmNmaxPixmapHeight     DtNmaxPixmapHeight
-#define XmNpixmapPosition      DtNpixmapPosition
-#define XmNpushArgument                DtNpushArgument
-#define XmNpushButtonClickTime DtNpushButtonClickTime
-#define XmNpushFunction                DtNpushFunction
-#define XmNrightInset          DtNrightInset
-#define XmNstringPosition      DtNstringPosition
-#define XmNsubpanel            DtNsubpanel
-#define XmNresolution          DtNresolution
-#define XmNtitleSpacing                DtNtitleSpacing
-#define XmNtitlePosition       DtNtitlePosition
-#define XmNtitleAlignment      DtNtitleAlignment
-#define XmNtopInset            DtNtopInset
-#define XmNunderline           DtNunderline
-#define XmNuseEmbossedText     DtNuseEmbossedText
-#define XmNwaitingBlinkRate    DtNwaitingBlinkRate
-#define XmNwidthIncrement      DtNwidthIncrement
-#define XmNformatJP DtNformatJP
-#define XmCFormatJP DtCFormatJP
-
-/*
- * String defines for converter string names.
- */
-#define STR_ICON_LABEL          DtSicon_label
-#define STR_ICON_BUTTON         DtSicon_button
-#define STR_ICON_TOGGLE         DtSicon_toggle
-#define STR_ICON_DRAG           DtSicon_drag
-#define STR_WORK_AREA           DtSwork_area
-#define STR_TITLE_AREA          DtStitle_area
-#define STR_SEPARATOR           DtSseparator
-#define STR_BUTTON              DtSbutton
-#define STR_FILL_NONE           DtSfill_none
-#define STR_FILL_PARENT         DtSfill_parent
-#define STR_FILL_TRANSPARENT    DtSfill_transparent
-#define STR_FILL_SELF           DtSfill_self
-#define STR_PIXMAP_TOP          DtSpixmap_top
-#define STR_PIXMAP_BOTTOM       DtSpixmap_bottom
-#define STR_PIXMAP_LEFT         DtSpixmap_left
-#define STR_PIXMAP_RIGHT        DtSpixmap_right
-#define STR_STRING_TOP          DtSstring_top
-#define STR_STRING_BOTTOM       DtSstring_bottom
-#define STR_STRING_LEFT         DtSstring_left
-#define STR_STRING_RIGHT        DtSstring_right
-#define STR_TITLE_TOP           DtStitle_top
-#define STR_TITLE_BOTTOM        DtStitle_bottom
-#endif
diff --git a/cde/lib/DtWidget/Editor.h b/cde/lib/DtWidget/Editor.h
deleted file mode 100644 (file)
index 01e2b86..0000000
+++ /dev/null
@@ -1,616 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Editor.h /main/3 1995/10/26 09:32:07 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_Editor_h
-#define _Dt_Editor_h
-
-#include <Xm/Xm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Sources of Help requests */
-/* Used with XmNhelpCallback */
-
-#define DtEDITOR_HELP_EDIT_WINDOW              1
-#define DtEDITOR_HELP_STATUS_LINE              2
-#define DtEDITOR_HELP_STATUS_CURRENT_LINE      3
-#define DtEDITOR_HELP_STATUS_TOTAL_LINES       4
-#define DtEDITOR_HELP_STATUS_MESSAGE           5
-#define DtEDITOR_HELP_STATUS_OVERSTRIKE                6
-#define DtEDITOR_HELP_FORMAT_DIALOG            7
-#define DtEDITOR_HELP_FORMAT_LEFT_MARGIN       8
-#define DtEDITOR_HELP_FORMAT_RIGHT_MARGIN      9
-#define DtEDITOR_HELP_FORMAT_ALIGNMENT         10
-#define DtEDITOR_HELP_CHANGE_DIALOG            11
-#define DtEDITOR_HELP_CHANGE_FIND              12
-#define DtEDITOR_HELP_CHANGE_CHANGE            13
-#define DtEDITOR_HELP_SPELL_DIALOG             14
-#define DtEDITOR_HELP_SPELL_MISSPELLED_WORDS   15
-#define DtEDITOR_HELP_SPELL_CHANGE             16
-
-/* Specifies the last line in the edit area */
-/* Used with DtEditorGoToLine */
-#define DtEDITOR_LAST_LINE             -999
-
-/* Resource constants */
-
-#ifndef DtNautoShowCursorPosition
-#define DtNautoShowCursorPosition      XmNautoShowCursorPosition
-#endif
-#ifndef DtCAutoShowCursorPosition
-#define DtCAutoShowCursorPosition      XmCAutoShowCursorPosition
-#endif
-#ifndef DtNblinkRate
-#define DtNblinkRate                   XmNblinkRate
-#endif
-#ifndef DtCBlinkRate
-#define DtCBlinkRate                   XmCBlinkRate
-#endif
-#ifndef DtNbuttonFontList  
-#define DtNbuttonFontList              XmNbuttonFontList
-#endif
-#ifndef DtCFontList 
-#define DtCFontList                    XmCFontList
-#endif
-#ifndef DtNcenterToggleLabel
-#define DtNcenterToggleLabel           "centerToggleLabel"
-#endif
-#ifndef DtCCenterToggleLabel
-#define DtCCenterToggleLabel           "CenterToggleLabel"
-#endif
-#ifndef DtNchangeAllButtonLabel
-#define DtNchangeAllButtonLabel        "changeAllButtonLabel"
-#endif
-#ifndef DtCChangeAllButtonLabel
-#define DtCChangeAllButtonLabel        "ChangeAllButtonLabel"
-#endif
-#ifndef DtNchangeButtonLabel
-#define DtNchangeButtonLabel           "changeButtonLabel"
-#endif
-#ifndef DtCChangeButtonLabel
-#define DtCChangeButtonLabel           "ChangeButtonLabel"
-#endif
-#ifndef DtNchangeFieldLabel
-#define DtNchangeFieldLabel            "changeFieldLabel"
-#endif
-#ifndef DtCChangeFieldLabel
-#define DtCChangeFieldLabel            "ChangeFieldLabel"
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns                     XmNcolumns
-#endif
-#ifndef DtCColumns
-#define DtCColumns                     XmCColumns
-#endif
-#ifndef DtNcurrentLineLabel
-#define DtNcurrentLineLabel            "currentLineLabel"
-#endif
-#ifndef DtCCurrentLineLabel
-#define DtCCurrentLineLabel            "CurrentLineLabel"
-#endif
-#ifndef DtNcursorPosition
-#define DtNcursorPosition              XmNcursorPosition
-#endif
-#ifndef DtCCursorPosition
-#define DtCCursorPosition              XmCCursorPosition
-#endif
-#ifndef DtNcursorPositionVisible
-#define DtNcursorPositionVisible       XmNcursorPositionVisible
-#endif
-#ifndef DtCCursorPositionVisible
-#define DtCCursorPositionVisible               XmCCursorPositionVisible
-#endif
-#ifndef DtNdialogTitle
-#define DtNdialogTitle                 "dialogTitle"
-#endif
-#ifndef DtCDialogTitle
-#define DtCDialogTitle                 XmCDialogTitle
-#endif
-#ifndef DtNeditable  
-#define DtNeditable                    XmNeditable
-#endif
-#ifndef DtCEditable 
-#define DtCEditable                    XmCEditable
-#endif
-#ifndef DtNfindButtonLabel
-#define DtNfindButtonLabel             "findButtonLabel"
-#endif
-#ifndef DtCFindButtonLabel
-#define DtCFindButtonLabel             "FindButtonLabel"
-#endif
-#ifndef DtNfindChangeDialogTitle
-#define DtNfindChangeDialogTitle               "findChangeDialogTitle"
-#endif
-#ifndef DtCFindChangeDialogTitle
-#define DtCFindChangeDialogTitle               "FindChangeDialogTitle"
-#endif
-#ifndef DtNfindFieldLabel
-#define DtNfindFieldLabel              "findFieldLabel"
-#endif
-#ifndef DtCFindFieldLabel
-#define DtCFindFieldLabel              "FindFieldLabel"
-#endif
-#ifndef DtNformatAllButtonLabel
-#define DtNformatAllButtonLabel        "formatAllButtonLabel"
-#endif
-#ifndef DtCFormatAllButtonLabel
-#define DtCFormatAllButtonLabel        "FormatAllButtonLabel"
-#endif
-#ifndef DtNformatParagraphButtonLabel
-#define DtNformatParagraphButtonLabel  "formatParagraphButtonLabel"
-#endif
-#ifndef DtCFormatParagraphButtonLabel
-#define DtCFormatParagraphButtonLabel  "FormatParagraphButtonLabel"
-#endif
-#ifndef DtNformatSettingsDialogTitle
-#define DtNformatSettingsDialogTitle   "formatSettingsDialogTitle"
-#endif
-#ifndef DtCFormatSettingsDialogTitle
-#define DtCFormatSettingsDialogTitle   "FormatSettingsDialogTitle"
-#endif
-#ifndef DtNinformationDialogTitle
-#define DtNinformationDialogTitle      "informationDialogTitle"
-#endif
-#ifndef DtCInformationDialogTitle
-#define DtCInformationDialogTitle      "InformationDialogTitle"
-#endif
-#ifndef DtNinsertLabel
-#define DtNinsertLabel                 "insertLabel"
-#endif
-#ifndef DtCInsertLabel 
-#define DtCInsertLabel                 "InsertLabel"
-#endif
-#ifndef DtNjustifyToggleLabel
-#define DtNjustifyToggleLabel          "justifyToggleLabel"
-#endif
-#ifndef DtCJustifyToggleLabel
-#define DtCJustifyToggleLabel          "JustifyToggleLabel"
-#endif
-#ifndef DtNlabelFontList  
-#define DtNlabelFontList               XmNlabelFontList
-#endif
-#ifndef DtNleftAlignToggleLabel
-#define DtNleftAlignToggleLabel        "leftAlignToggleLabel"
-#endif
-#ifndef DtCLeftAlignToggleLabel 
-#define DtCLeftAlignToggleLabel        "LeftAlignToggleLabel"
-#endif
-#ifndef DtNleftMarginFieldLabel
-#define DtNleftMarginFieldLabel        "leftMarginFieldLabel"
-#endif
-#ifndef DtCLeftMarginFieldLabel 
-#define DtCLeftMarginFieldLabel        "LeftMarginFieldLabel"
-#endif
-#ifndef DtNmaxLength  
-#define DtNmaxLength                   XmNmaxLength
-#endif
-#ifndef DtCMaxLength  
-#define DtCMaxLength                   XmCMaxLength
-#endif
-#ifndef DtNmisspelledListLabel
-#define DtNmisspelledListLabel         "misspelledListLabel"
-#endif
-#ifndef DtCMisspelledListLabel 
-#define DtCMisspelledListLabel         "MisspelledListLabel"
-#endif
-#ifndef DtNoverstrike 
-#define DtNoverstrike                  "overstrike"
-#endif
-#ifndef DtCOverstrike
-#define DtCOverstrike                          "Overstrike"
-#endif
-#ifndef DtNoverstrikeLabel
-#define DtNoverstrikeLabel             "overstrikeLabel"
-#endif
-#ifndef DtCOverstrikeLabel 
-#define DtCOverstrikeLabel             "OverstrikeLabel"
-#endif
-#ifndef DtNrightAlignToggleLabel
-#define DtNrightAlignToggleLabel               "rightAlignToggleLabel"
-#endif
-#ifndef DtCRightAlignToggleLabel 
-#define DtCRightAlignToggleLabel               "RightAlignToggleLabel"
-#endif
-#ifndef DtNrightMarginFieldLabel
-#define DtNrightMarginFieldLabel               "rightMarginFieldLabel"
-#endif
-#ifndef DtCRightMarginFieldLabel 
-#define DtCRightMarginFieldLabel               "RightMarginFieldLabel"
-#endif
-#ifndef DtNrows 
-#define DtNrows                        XmNrows
-#endif
-#ifndef DtCRows
-#define DtCRows                        XmCRows
-#endif
-#ifndef DtNscrollHorizontal 
-#define DtNscrollHorizontal            XmNscrollHorizontal
-#endif
-#ifndef DtCScroll
-#define DtCScroll                      XmCScroll
-#endif
-#ifndef DtNscrollLeftSide 
-#define DtNscrollLeftSide              XmNscrollLeftSide
-#endif
-#ifndef DtCScrollSide
-#define DtCScrollSide                          XmCScrollSide
-#endif
-#ifndef DtNscrollTopSide 
-#define DtNscrollTopSide               XmNscrollTopSide
-#endif
-#ifndef DtNscrollVertical 
-#define DtNscrollVertical              XmNscrollVertical
-#endif
-#ifndef DtNshowStatusLine
-#define DtNshowStatusLine              "showStatusLine"
-#endif
-#ifndef DtCShowStatusLine
-#define DtCShowStatusLine              "ShowStatusLine"
-#endif
-#ifndef DtNspellDialogTitle
-#define DtNspellDialogTitle            "spellDialogTitle"
-#endif
-#ifndef DtCSpellDialogTitle
-#define DtCSpellDialogTitle            "SpellDialogTitle"
-#endif
-#ifndef DtNspellFilter
-#define DtNspellFilter                 "spellFilter"
-#endif
-#ifndef DtCSpellFilter
-#define DtCSpellFilter                 "SpellFilter"
-#endif
-#ifndef DtNtextBackground 
-#define DtNtextBackground              "textBackground"
-#endif
-#ifndef DtCBackground 
-#define DtCBackground                  XmCBackground
-#endif
-#ifndef DtNtextDeselectCallback 
-#define DtNtextDeselectCallback        "textDeselectCallback"
-#endif
-#ifndef DtNtextFontList  
-#define DtNtextFontList                XmNtextFontList
-#endif
-#ifndef DtNtextForeground 
-#define DtNtextForeground              "textForeground"
-#endif
-#ifndef DtCForeground 
-#define DtCForeground                  XmCForeground
-#endif
-#ifndef DtNtextSelectCallback 
-#define DtNtextSelectCallback          "textSelectCallback"
-#endif
-#ifndef DtNtextTranslations 
-#define DtNtextTranslations            XmNtextTranslations
-#endif
-#ifndef DtCTranslations 
-#define DtCTranslations                XmCTranslations
-#endif
-#ifndef DtCCallback 
-#define DtCCallback                    XmCCallback
-#endif
-#ifndef DtNtopCharacter 
-#define DtNtopCharacter                        XmNtopCharacter
-#endif
-#ifndef DtCTopCharacter  
-#define DtCTopCharacter                        XmCTopCharacter
-#endif
-#ifndef DtNtotalLineCountLabel
-#define DtNtotalLineCountLabel         "totalLineCountLabel"
-#endif
-#ifndef DtCTotalLineCountLabel 
-#define DtCTotalLineCountLabel         "TotalLineCountLabel"
-#endif
-#ifndef DtNwordWrap 
-#define DtNwordWrap                    XmNwordWrap
-#endif
-#ifndef DtCWordWrap  
-#define DtCWordWrap                    XmCWordWrap
-#endif
-
-#ifndef DtEditorHelpCallbackStruct
-#define DtEditorHelpCallbackStruct XmAnyCallbackStruct 
-#endif
-#ifndef DtEditorSelectCallbackStruct 
-#define DtEditorSelectCallbackStruct   XmAnyCallbackStruct
-#endif
-#ifndef DtEditorDeselectCallbackStruct 
-#define DtEditorDeselectCallbackStruct XmAnyCallbackStruct
-#endif
-
-
-/* Used with DtEditorChange() */
-
-enum {
-       DtEDITOR_CURRENT_SELECTION,
-       DtEDITOR_NEXT_OCCURRENCE,
-       DtEDITOR_ALL_OCCURRENCES 
-};
-
-/* Used with DtEditorFormat() */
-
-enum {
-       DtEDITOR_FORMAT_ALL,
-       DtEDITOR_FORMAT_PARAGRAPH
-};
-
-enum {
-       DtEDITOR_ALIGN_CENTER,
-       DtEDITOR_ALIGN_JUSTIFY,
-       DtEDITOR_ALIGN_LEFT,
-       DtEDITOR_ALIGN_RIGHT
-};
-
-/* Used with DtNtextSelectCallback */
-enum {
-        DtEDITOR_TEXT_SELECT,
-        DtEDITOR_TEXT_DESELECT
-};
-
-/*
- * Types
- */
-
-typedef enum _DtEditorErrorCode{
-        DtEDITOR_NO_ERRORS,
-        DtEDITOR_INVALID_TYPE,
-        DtEDITOR_INVALID_RANGE,
-        DtEDITOR_NULL_ITEM,
-        DtEDITOR_ILLEGAL_SIZE,
-        DtEDITOR_SPELL_FILTER_FAILED,
-        DtEDITOR_NO_TMP_FILE,
-        DtEDITOR_INVALID_FILENAME,
-        DtEDITOR_NONEXISTENT_FILE,
-        DtEDITOR_UNREADABLE_FILE,
-        DtEDITOR_READ_ONLY_FILE,
-        DtEDITOR_NO_FILE_ACCESS,
-        DtEDITOR_DIRECTORY,
-        DtEDITOR_CHAR_SPECIAL_FILE,
-        DtEDITOR_BLOCK_MODE_FILE,
-        DtEDITOR_UNWRITABLE_FILE,
-        DtEDITOR_WRITABLE_FILE,
-        DtEDITOR_SAVE_FAILED,
-       DtEDITOR_INSUFFICIENT_MEMORY,
-       DtEDITOR_NULLS_REMOVED
-} DtEditorErrorCode;
-
-
-/* Used with DtEditorChange() to specify Find and Change To strings */
-
-typedef struct _DtEditorChangeValues {
-        char *find;
-        char *changeTo;
-} DtEditorChangeValues;
-
-/* Used with DtEditorFormat() to specify left margin, right margin *
- * and justification styles.                                      */
-
-typedef struct _DtEditorFormatSettings {
-       int             leftMargin;
-       int             rightMargin;
-       unsigned int    alignment;
-} DtEditorFormatSettings;
-
-/* Types used to tag data to/from the editor widget */
-
-typedef enum _DtEditorDataFormat{
-        DtEDITOR_TEXT,
-        DtEDITOR_WCHAR,
-        DtEDITOR_DATA
-} DtEditorDataFormat;
-
-
-/* Types used to pass data to/from the editor widget */
-
-typedef struct _DtEditor_DataObj {
-        unsigned int    length;
-        void            *buf;
-} DtEditor_DataObj;
-
-typedef struct _DtEditorContentRec {
-        DtEditorDataFormat type;
-        union   {
-                 char     *string;
-                 wchar_t  *wchar;
-                DtEditor_DataObj       data;
-        } value;
-} DtEditorContentRec;
-
-
-/* Widget class and instance */
-
-typedef struct _DtEditorClassRec       *DtEditorClass;
-typedef struct _DtEditorRec            *DtEditorWidget;
-
-
-/*
- * Data
- */
-
-/* Widget class */
-
-externalref    WidgetClass             dtEditorWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateEditor(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern DtEditorErrorCode DtEditorAppend(
-               Widget          widget,
-               DtEditorContentRec *data);
-
-extern DtEditorErrorCode DtEditorAppendFromFile(
-               Widget          widget,
-               char            *fileName);
-
-extern Boolean DtEditorChange(
-               Widget                  widget,
-               DtEditorChangeValues    *findChangeStrings,
-               unsigned int            instanceToChange);
-
-extern Boolean DtEditorCheckForUnsavedChanges(
-               Widget          widget);
-
-extern Boolean DtEditorClearSelection(
-               Widget          widget);
-
-extern Boolean DtEditorCopyToClipboard(
-               Widget          widget);
-
-extern Boolean DtEditorCutToClipboard(
-               Widget          widget);
-
-extern Boolean DtEditorDeleteSelection(
-               Widget          widget);
-
-extern Boolean DtEditorDeselect(
-               Widget          widget);
-
-extern void DtEditorDisableRedisplay(
-               Widget          widget);
-
-extern void DtEditorEnableRedisplay(
-               Widget          widget);
-
-extern Boolean DtEditorFind(
-               Widget          widget,
-               char *  find);
-
-extern DtEditorErrorCode DtEditorFormat(
-               Widget          widget,
-               DtEditorFormatSettings  *formatSettings,
-               unsigned int    amountToFormat); 
-
-extern DtEditorErrorCode DtEditorGetContents(
-               Widget          widget,
-               DtEditorContentRec *data,
-               Boolean         hardCarriageReturns,
-               Boolean         markContentsAsSaved);
-
-extern XmTextPosition DtEditorGetInsertionPosition(
-               Widget          widget);
-
-extern XmTextPosition DtEditorGetLastPosition(
-               Widget          widget);
-
-extern Widget DtEditorGetMessageTextFieldID(
-               Widget          widget);
-
-extern void DtEditorGetSizeHints(
-               Widget          widget,
-               XSizeHints      *pHints);
-
-extern void DtEditorGoToLine(
-               Widget          widget,
-               int     lineNumber);
-
-extern DtEditorErrorCode DtEditorInsert(
-               Widget          widget,
-               DtEditorContentRec *data);
-
-extern DtEditorErrorCode DtEditorInsertFromFile(
-               Widget          widget,
-               char            *fileName);
-
-extern void DtEditorInvokeFindChangeDialog(
-               Widget          widget);
-
-extern void DtEditorInvokeFormatDialog(
-               Widget          widget);
-
-extern DtEditorErrorCode DtEditorInvokeSpellDialog(
-               Widget          widget);
-
-extern Boolean DtEditorPasteFromClipboard(
-               Widget          widget);
-
-extern DtEditorErrorCode DtEditorReplace(
-               Widget                  widget,
-               XmTextPosition          startPos,
-               XmTextPosition          endPos,
-               DtEditorContentRec      *data);
-
-extern DtEditorErrorCode DtEditorReplaceFromFile(
-               Widget                  widget,
-               XmTextPosition          startPos,
-               XmTextPosition          endPos,
-               char                    *fileName);
-
-extern void DtEditorReset(
-               Widget          widget);
-
-extern DtEditorErrorCode DtEditorSaveContentsToFile(
-               Widget          widget,
-               char            *fileName,
-               Boolean         overwriteIfExists,
-               Boolean         hardCarriageReturns,
-               Boolean         markContentsAsSaved);
-
-extern Boolean DtEditorSelectAll(
-               Widget          widget);
-
-extern DtEditorErrorCode DtEditorSetContents(
-               Widget          widget,
-               DtEditorContentRec *data);
-
-extern DtEditorErrorCode DtEditorSetContentsFromFile(
-               Widget          widget,
-               char            *fileName);
-
-extern void DtEditorSetInsertionPosition(
-               Widget          widget,
-               XmTextPosition  position);
-
-extern void DtEditorTraverseToEditor(
-               Widget          widget);
-
-extern Boolean DtEditorUndoEdit(
-               Widget          widget);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_Editor_h */
diff --git a/cde/lib/DtWidget/EditorP.h b/cde/lib/DtWidget/EditorP.h
deleted file mode 100644 (file)
index c727df6..0000000
+++ /dev/null
@@ -1,710 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: EditorP.h /main/4 1996/06/19 11:28:20 cde-dec $ */
-/**********************************<+>*************************************
-***************************************************************************
-**
-**  File:        EditorP.h
-**
-**  Project:     DtEditor widget 
-**
-**  Description:
-**  -----------
-**  Private include file for the DtEditor widget, text editor class.
-**
-*******************************************************************
-*
-* (c) Copyright 1993, 1994 Hewlett-Packard Company
-* (c) Copyright 1993, 1994 International Business Machines Corp.
-* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
-* (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of Novell, Inc.
-*
-********************************************************************
-**
-**
-**************************************************************************
-**********************************<+>*************************************/
-#ifndef _DtEditorP_h
-#define _DtEditorP_h
-
-#include <Dt/Editor.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include <X11/StringDefs.h>
-#include <X11/Intrinsic.h>
-#include <X11/Xatom.h>
-
-#include <Xm/Protocols.h>
-#include <Xm/XmP.h>
-#include <Xm/FormP.h>
-#include <Xm/TextP.h>
-
-#include "MacrosP.h"
-#include <Dt/Dts.h>
-
-#ifdef SENTINEL
-#include <sentinel.h>
-#endif  /* SENTINEL */
-
-
-/****************************************************************
- *
- *  Defines
- *
- ****************************************************************/
-
-#define READ_ACCESS     1
-#define WRITE_ACCESS    2
-
-#define REPLACE         0
-#define FIND            1
-#define SPELL           2
-
-#define UNKNOWN_ACTION          -1
-#define EXTEND_SELECTION        0
-#define ICON_FOCUSED            1
-
-#define NO_DELETION_IN_PROGRESS        -999 
-
-#ifndef DtUNSPECIFIED
-#define DtUNSPECIFIED          (~0)
-#endif
-
-
-#define CLOSE_BUTTON   DTWIDGET_GETMESSAGE( \
-                          MS_Common, MSG_CLOSE, _DtMsgCommon_0000)
-
-#define HELP_BUTTON    DTWIDGET_GETMESSAGE( \
-                          MS_Common, MSG_HELP, _DtMsgCommon_0001)
-
-#define FORMAT_SETTINGS        DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_FORMAT_SETTINGS, _DtMsgEditor_0000)
-
-#define RIGHT_MARGIN   DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_RIGHT_MARGIN, _DtMsgEditor_0001)
-
-#define LEFT_MARGIN    DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_LEFT_MARGIN, _DtMsgEditor_0002)
-
-#define LEFT_ALIGN     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_LEFT_ALIGN, _DtMsgEditor_0003)
-
-#define RIGHT_ALIGN    DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_RIGHT_ALIGN, _DtMsgEditor_0004)
-
-#define JUSTIFY                DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_JUSTIFY, _DtMsgEditor_0005)
-
-#define CENTER         DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_CENTER, _DtMsgEditor_0006)
-
-#define PARAGRAPH      DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_PARAGRAPH, _DtMsgEditor_0007)
-
-#define ALL            DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_ALL, _DtMsgEditor_0008)
-
-#define SPELL_TITLE    DTWIDGET_GETMESSAGE( \
-                         MS_Editor, EDITOR_SPELL_TITLE, _DtMsgEditor_0009)
-
-#define FIND_TITLE     DTWIDGET_GETMESSAGE( \
-                         MS_Editor, EDITOR_FIND_TITLE, _DtMsgEditor_0010)
-
-#define MISSPELLED     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_MISSPELLED, _DtMsgEditor_0011)
-
-#define FIND_LABEL     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_FIND_LABEL, _DtMsgEditor_0012)
-
-#define CHANGE_LABEL   DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_CHANGE_LABEL, _DtMsgEditor_0013)
-
-#define FIND_BUTTON    DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_FIND_BUTTON, _DtMsgEditor_0014)
-
-#define CHANGE_BUTTON  DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_CHANGE_BUTTON, _DtMsgEditor_0015)
-
-#define CHNG_ALL_BUTTON   DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_CHNG_ALL_BUTTON, _DtMsgEditor_0016)
-
-#define NO_FIND                DTWIDGET_GETMESSAGE( \
-                         MS_Editor, EDITOR_NO_FIND, _DtMsgEditor_0017)
-
-#define INFO_TITLE     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_INFO_TITLE, _DtMsgEditor_0018)
-
-#define LINE           DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_LINE, _DtMsgEditor_0019)
-
-#define TOTAL          DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_TOTAL, _DtMsgEditor_0020)
-
-#define OVR            DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_OVR, _DtMsgEditor_0021)
-
-#define INS            DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_INS, _DtMsgEditor_0022)
-
-#define BAD_FILTER      DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_FILTER_ERROR, _DtMsgEditor_0023)
-
-#define BAD_FILTER2     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_FILTER_ERROR2, _DtMsgEditor_0024)
-
-#define ERROR_TITLE     DTWIDGET_GETMESSAGE( \
-                          MS_Editor, EDITOR_ERROR_TITLE, _DtMsgEditor_0025)
-
-
-/****************************************************************
- *
- *  Structures
- *
- ****************************************************************/
-
-typedef struct _AdjRec {
-        int  bflag;     /* -b (blanks) option */
-        int  cflag;     /* -c (center) option */
-        int  jflag;     /* -j (justify) option  */
-        int  rflag;     /* -r (right justify) */
-        int  tabsize;   /* tab size in use  */
-        long margin;
-        FILE *infp;     /* file pointer for unformatted data */
-        FILE *outfp;    /* file pointer for formatted data */
-} AdjRec, *AdjRecPtr;
-
-
-/****************************************************************
- *
- *  Deleted text structure definition
- *
- ****************************************************************/
-typedef struct _DtEditorUndoRec {
-    char                *deletedText;
-    XmTextPosition      deletionStart;
-    XmTextPosition      insertStart;
-    int                 insertionLength;
-} DtEditorUndoRec;
-
-/****************************************************************
- *
- *  Data structures for miscellaneous edit information
- *
- ****************************************************************/
-typedef struct _DtEditorEditStuff
-{
-    int                        blinkRate,
-                       maxLength;
-    short              columns, rows;
-    XmTextPosition     cursorPos,
-                       topCharacter;
-    Boolean            autoShowCursorPos,
-                       cursorPosVisible,
-                       editable,
-                       overstrikeMode,
-                       scrollHorizontal,
-                       scrollLeft,
-                       scrollTop,
-                       scrollVertical,
-                       wordWrap;
-    Pixel              background,
-                       foreground;
-    int                        fontWidth,  /* widest font, used for formatting */
-                       fontHeight; /* font height; used for WM size hints */
-
-    DtEditorUndoRec    undo;      /* holds deleted text for undo    */
-
-    Boolean             loadingAllNewData,
-                        unreadChanges; /* Data changed since read by app?   */
-
-    SetSelectionProc    setSelection;
-} DtEditorEditStuff;
-
-/****************************************************************
- *
- *  Data structures for Search
- *
- ****************************************************************/
-typedef struct _DtEditorSearchWidgets {
-    Widget formDlg,
-           listLbl,
-           spellList,
-           findLbl,
-           findText,
-           replaceLbl,
-           replaceText,
-           separator,
-           findBtn,
-           replaceBtn,
-           replaceAllBtn,
-           closeBtn,
-           helpBtn;
-} DtEditorSearchWidgets;
-
-typedef struct _DtEditorSearchStuff {
-    DtEditorSearchWidgets widgets;
-    int search_dialog_mode;
-    char *search_string,       /* last string searched for */
-         *replace_string,      /* last replacement string */
-         *misspelled_string,   /* last misspelled word selected */
-        *spellFilter;
-    Boolean    misspelled_found;
-    Dimension  buttonHeight;
-    XmString spellTitle,
-             fndChngTitle,
-            changeAllButtonLabel,
-            changeButtonLabel,
-            changeFieldLabel,
-            findButtonLabel,
-            findFieldLabel,
-            misspelledListLabel;
-} DtEditorSearchStuff;
-
-/****************************************************************
- *
- *  Data structures for Format
- *
- ****************************************************************/
-typedef struct _DtEditorFormatWidgets {
-    Widget format_dialog,
-           right_label,
-           left_label,
-           rightMargField,           /* format right margin text field */
-           leftMargField,          /* format left margin text field */
-           radio_box,
-           left_just,               /* format type toggle button */
-           right_just,              /* format type toggle button */
-           both_just,               /* format type toggle button */
-           center,                  /* format type toggle button */
-           separator,
-           paragraph,
-           all,
-           close,
-           help;
-} DtEditorFormatWidgets;
-
-typedef struct _DtEditorFormatStuff {
-    DtEditorFormatWidgets widgets;
-    XmString   centerToggleLabel,
-               formatAllButtonLabel,
-               formatParaButtonLabel,
-               formatDialogTitle,
-               justifyToggleLabel,
-               leftAlignToggleLabel,
-               leftMarginFieldLabel,
-               rightAlignToggleLabel,
-               rightMarginFieldLabel;
-} DtEditorFormatStuff;
-
-/****************************************************************
- *
- *  Data structures for the Status Line
- *
- ****************************************************************/
-
-typedef struct _status {
-    Boolean    showStatusLine;
-    int                currentLine,
-               lastLine;
-    XmString   ovr,
-               ins,
-               currentLineLabel,
-               totalLineLabel;
-    Widget     statusArea,
-               lineLabel,
-               lineText,
-               totalLabel,
-               totalText,
-               overstrikeLabel,
-               messageText;
-} DtEditorStatusStuff;
-
-/****************************************************************
- *
- *  Data structures for holding warning dialogs
- *
- ****************************************************************/
-
-typedef struct _textlibwarning {
-    Widget     warningDialog;
-    XmString   infoDialogTitle;
-} DtEditorWarningStuff;
-
-
-/****************************************************************
- * 
- *  Class Part structure definition  
- * 
- ****************************************************************/
-typedef struct _DtEditorClassPart 
-{
-       int     ignore;
-} DtEditorClassPart;
-
-
-/****************************************************************
- * 
- *  Full Class Record declaration
- * 
- ****************************************************************/
-typedef struct _DtEditorClassRec 
-{
-        CoreClassPart                   core_class;
-        CompositeClassPart              composite_class;
-        ConstraintClassPart             constraint_class;
-        XmManagerClassPart              manager_class;
-       XmBulletinBoardClassPart        bulletin_board_class;
-        XmFormClassPart                        form_class;
-        DtEditorClassPart              editor_class;
-} DtEditorClassRec;
-
-externalref    DtEditorClassRec        dtEditorClassRec;
-
-
-/****************************************************************
- * 
- *  Resources added by the Editor widget
- * 
- ****************************************************************/
-typedef struct _DtEditorPart
-{
-    Display                     *display;
-    Widget                      topLevelShell,
-                                /*
-                                 * scrolled text widget
-                                 */
-                               text;
-    Dimension                  width;  /* the text widget width */
-
-                                /* All data for Edit functions */
-    DtEditorEditStuff          editStuff;
-                                /* All data for Search functions */
-    DtEditorSearchStuff                searchStuff;
-                                /* All data for Format functions */
-    DtEditorFormatStuff                formatStuff;
-                                /* All data for warning dialogs functions */
-    DtEditorWarningStuff       warningStuff;
-                                /* All data for the status line */
-    DtEditorStatusStuff                statusStuff;
-
-    XtAppContext                app_context;
-
-                                /*
-                                 * The editor widget's callbacks
-                                 */
-
-    Boolean                    textSelectCbCalled;
-    XtCallbackList              textSelect;
-    XtCallbackList              textDeselect;
-
-} DtEditorPart; 
-
-
-/****************************************************************
- * 
- *  Full Instance Record declaration
- * 
- ****************************************************************/
-typedef struct _DtEditorRec
-{
-        CorePart               core;
-        CompositePart          composite;
-        ConstraintPart         constraint;
-        XmManagerPart          manager;
-       XmBulletinBoardPart     bulletin_board;
-        XmFormPart             form; 
-       DtEditorPart            editor;
-} DtEditorRec; 
-
-
-/****************************************************************
- *
- * MACRO DEFINITIONS
- *
- ****************************************************************/
-
-/*
- *  Class and Instance Macros
- */
-
-/* 
- * Note: DtEditor utilizes the bulletin board's dialog_title and 
- * text_translations fields to hold its dialogTitle and textTranslations
- * resources
- */
-#define E_dialogTitle(m)       (m -> bulletin_board.dialog_title)
-#define E_textTranslations(m)  (m -> bulletin_board.text_translations)
-#define E_buttonFontList(m)    (m -> bulletin_board.button_font_list)
-#define E_labelFontList(m)     (m -> bulletin_board.label_font_list)
-#define E_textFontList(m)      (m -> bulletin_board.text_font_list)
-
-#define M_app_context(m)       (m -> editor.app_context)
-#define M_display(m)           (m -> editor.display)
-#define M_topLevelShell(m)     (m -> editor.topLevelShell)
-#define M_text(m)              (m -> editor.text)
-#define M_textWidth(m)         (m -> editor.width)
-
-/* callbacks */
-#define M_textSelect(m)                (m -> editor.textSelect)
-#define M_textDeselect(m)      (m -> editor.textDeselect)
-#define M_textSelectCbCalled(m)        (m -> editor.textSelectCbCalled)
-
-/* editStuff - scrolled text resources */
-#define M_autoShowCursorPos(m) (m->editor.editStuff.autoShowCursorPos)
-#define M_blinkRate(m)                 (m -> editor.editStuff.blinkRate)
-#define M_columns(m)           (m -> editor.editStuff.columns)
-#define M_cursorPos(m)         (m -> editor.editStuff.cursorPos)
-#define M_cursorPosVisible(m)  (m -> editor.editStuff.cursorPosVisible)
-#define M_editable(m)          (m -> editor.editStuff.editable)
-#define M_fontWidth(m)                 (m -> editor.editStuff.fontWidth)
-#define M_fontHeight(m)                (m -> editor.editStuff.fontHeight)
-#define M_maxLength(m)                 (m -> editor.editStuff.maxLength)
-#define M_overstrikeMode(m)    (m -> editor.editStuff.overstrikeMode)
-#define M_rows(m)              (m -> editor.editStuff.rows)
-#define M_scrollHorizontal(m)  (m -> editor.editStuff.scrollHorizontal)
-#define M_scrollLeftSide(m)    (m -> editor.editStuff.scrollLeft)
-#define M_scrollTopSide(m)     (m -> editor.editStuff.scrollTop)
-#define M_scrollVertical(m)    (m -> editor.editStuff.scrollVertical)
-#define M_topCharacter(m)      (m -> editor.editStuff.topCharacter)
-#define M_wordWrap(m)          (m -> editor.editStuff.wordWrap)
-#define M_textBackground(m)    (m -> editor.editStuff.background)
-#define M_textForeground(m)    (m -> editor.editStuff.foreground)
-
-/* editStuff - scrolled text related data */
-#define M_deletionStart(m)     (m -> editor.editStuff.undo.deletionStart)
-#define M_deletedText(m)       (m -> editor.editStuff.undo.deletedText)
-#define M_insertStart(m)       (m -> editor.editStuff.undo.insertStart)
-#define M_insertionLength(m)   (m -> editor.editStuff.undo.insertionLength)
-#define M_loadingAllNewData(m) (m -> editor.editStuff.loadingAllNewData)
-#define M_unreadChanges(m)     (m -> editor.editStuff.unreadChanges)
-#define M_setSelection(m)      (m -> editor.editStuff.setSelection)
-
-/* searchStuff */
-#define M_search_dialogMode(m)  (m ->editor.searchStuff.search_dialog_mode)
-#define M_spellTitle(m)        (m -> editor.searchStuff.spellTitle)
-#define M_fndChngTitle(m)      (m -> editor.searchStuff.fndChngTitle)
-#define E_changeAllButtonLabel(m) (m->editor.searchStuff.changeAllButtonLabel)
-#define E_changeButtonLabel(m) (m->editor.searchStuff.changeButtonLabel)
-#define E_changeFieldLabel(m)  (m->editor.searchStuff.changeFieldLabel)
-#define E_findButtonLabel(m)   (m->editor.searchStuff.findButtonLabel)
-#define E_findFieldLabel(m)    (m->editor.searchStuff.findFieldLabel)
-#define E_misspelledListLabel(m) (m->editor.searchStuff.misspelledListLabel)
-#define M_search_string(m)     (m -> editor.searchStuff.search_string)
-#define M_replace_string(m)    (m -> editor.searchStuff.replace_string)
-#define M_misspelled_string(m)         (m -> editor.searchStuff.misspelled_string)
-#define M_misspelled_found(m)  (m -> editor.searchStuff.misspelled_found)
-#define M_spellFilter(m)       (m -> editor.searchStuff.spellFilter)
-#define M_replaceText(m)       (m -> editor.searchStuff.widgets.replaceText)
-#define M_findText(m)          (m -> editor.searchStuff.widgets.findText)
-#define M_search_replaceLbl(m) (m -> editor.searchStuff.widgets.replaceLbl)
-#define M_search_buttonHeight(m) (m -> editor.searchStuff.buttonHeight)
-#define M_search_dialog(m)     (m -> editor.searchStuff.widgets.formDlg)
-#define M_search_closeBtn(m)   (m -> editor.searchStuff.widgets.closeBtn)
-#define M_search_helpBtn(m)    (m -> editor.searchStuff.widgets.helpBtn)
-#define M_search_findBtn(m)    (m -> editor.searchStuff.widgets.findBtn)
-#define M_search_replaceBtn(m)         (m -> editor.searchStuff.widgets.replaceBtn)
-#define M_search_replaceAllBtn(m)\
-                               (m -> editor.searchStuff.widgets.replaceAllBtn)
-#define M_search_spellList(m)  (m -> editor.searchStuff.widgets.spellList)
-#define M_search_listLbl(m)    (m -> editor.searchStuff.widgets.listLbl)
-#define M_search_findLbl(m)    (m -> editor.searchStuff.widgets.findLbl)
-#define M_search_separator(m)  (m -> editor.searchStuff.widgets.separator)
-
-/* formatStuff */
-#define E_format_centerToggleLabel(m) (m->editor.formatStuff.centerToggleLabel)
-#define E_format_formatAllButtonLabel(m)\
-                       (m->editor.formatStuff.formatAllButtonLabel)
-#define E_format_formatParagraphButtonLabel(m)\
-                       (m->editor.formatStuff.formatParaButtonLabel)
-#define E_format_dialogTitle(m)        (m->editor.formatStuff.formatDialogTitle)
-#define E_format_justifyToggleLabel(m)\
-                               (m->editor.formatStuff.justifyToggleLabel)
-#define E_format_leftAlignToggleLabel(m)\
-                               (m->editor.formatStuff.leftAlignToggleLabel)
-#define E_format_leftMarginFieldLabel(m)\
-                               (m->editor.formatStuff.leftMarginFieldLabel)
-#define E_format_rightAlignToggleLabel(m)\
-                               (m->editor.formatStuff.rightAlignToggleLabel)
-#define E_format_rightMarginFieldLabel(m)\
-                               (m->editor.formatStuff.rightMarginFieldLabel)
-#define M_format_all(m)                (m -> editor.formatStuff.widgets.all)
-#define M_format_bothJust(m)   (m -> editor.formatStuff.widgets.both_just)
-#define M_format_center(m)     (m -> editor.formatStuff.widgets.center)
-#define M_format_close(m)      (m -> editor.formatStuff.widgets.close)
-#define M_format_dialog(m)     (m -> editor.formatStuff.widgets.format_dialog)
-#define M_format_help(m)       (m -> editor.formatStuff.widgets.help)
-#define M_format_leftJust(m)   (m -> editor.formatStuff.widgets.left_just)
-#define M_format_leftLabel(m)  (m -> editor.formatStuff.widgets.left_label)
-#define M_format_leftMarginField(m)  (m -> editor.formatStuff.widgets.leftMargField)
-#define M_format_paragraph(m)  (m -> editor.formatStuff.widgets.paragraph)
-#define M_format_radioBox(m)   (m -> editor.formatStuff.widgets.radio_box)
-#define M_format_rightJust(m)  (m -> editor.formatStuff.widgets.right_just)
-#define M_format_rightLabel(m) (m -> editor.formatStuff.widgets.right_label)
-#define M_format_rightMarginField(m) (m -> editor.formatStuff.widgets.rightMargField)
-#define M_format_separator(m)  (m -> editor.formatStuff.widgets.separator)
-
-/* statusStuff */
-#define M_status_showStatusLine(m)  (m -> editor.statusStuff.showStatusLine) 
-#define M_status_currentLine(m)            (m -> editor.statusStuff.currentLine) 
-#define M_status_lastLine(m)       (m -> editor.statusStuff.lastLine) 
-#define M_status_overstrikeLabel(m) (m -> editor.statusStuff.ovr)
-#define M_status_insertLabel(m)            (m -> editor.statusStuff.ins)
-#define E_status_currentLineLabel(m) (m -> editor.statusStuff.currentLineLabel)
-#define E_status_totalLineCountLabel(m) (m->editor.statusStuff.totalLineLabel)
-#define M_status_statusArea(m)     (m -> editor.statusStuff.statusArea)
-#define M_status_lineLabel(m)      (m -> editor.statusStuff.lineLabel)
-#define M_status_lineText(m)       (m -> editor.statusStuff.lineText)
-#define M_status_totalLabel(m)     (m -> editor.statusStuff.totalLabel)
-#define M_status_totalText(m)      (m -> editor.statusStuff.totalText)
-#define M_status_overstrikeWidget(m) (m->editor.statusStuff.overstrikeLabel)
-#define M_status_messageText(m)    (m -> editor.statusStuff.messageText)
-
-/* warningStuff */
-#define M_gen_warning(m)       (m ->editor.warningStuff.warningDialog)
-#define E_infoDialogTitle(m)   (m ->editor.warningStuff.infoDialogTitle)
-
-/* 
- * Misc macros
- */ 
-#define M_editor(m)    ((DtEditorWidget) m ->core.parent -> core.parent) 
-
-
-/****************************************************************
- *
- *  Private library functions
- *
- ****************************************************************/
-
-/*** library-private functions in Editor.c ***/
-extern void    _DtEditorResetUndo(
-                       DtEditorWidget editor);
-extern void    _DtEditorUpdateLineDisplay(
-                       DtEditorWidget  editor,
-                       int             currentLine,
-                       Boolean         forceUpdate );
-extern int     _DtEditorGetLineIndex(
-                       XmTextWidget tw,
-                       XmTextPosition pos);
-extern void    _DtEditorWarning(
-                       DtEditorWidget pPriv,
-                       char *mess,
-                       unsigned char dialogType);
-extern DtEditorErrorCode       _DtEditorValidateFileAccess(
-                       char                    *fileName,
-                       int                     accessType );
-extern void    _DtEditorHelpSearchCB (
-                       Widget  w,
-                       caddr_t client_data ,
-                       caddr_t call_data );
-extern void    _DtEditorHelpSearchSpellCB (
-                       Widget  w,
-                       caddr_t client_data ,
-                       caddr_t call_data );
-extern void    _DtEditorHelpSearchFindCB (
-                       Widget  w,
-                       caddr_t client_data ,
-                       caddr_t call_data );
-extern void    _DtEditorHelpSearchChangeCB (
-                       Widget  w,
-                       caddr_t client_data ,
-                       caddr_t call_data );
-
-/*** library-private functions in EditAreaData.c ***/
-
-extern char *_DtEditorGetPointer(
-        char *pString,
-        int startChar);
-
-/*** library-private functions in EditorCalls.c ***/
-
-extern void _DtEditorModifyVerifyCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-
-/*** library-private functions in SearchCalls.c ***/
-
-extern void _DtEditorSearchMapCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern int _DtEditor_CountCharacters(
-        char *str,
-        int num_count_bytes);
-extern void _DtEditorDialogSearchCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorDialogReplaceCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorDialogReplaceAllCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorDialogFindCancelCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorMisspelledSelectCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorMisspelledDblClickCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorFindTextChangedCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorReplaceTextChangedCB(
-        Widget w,
-        caddr_t client_data,
-        caddr_t call_data );
-extern void _DtEditorSetFindSensitivity(
-        DtEditorWidget pPriv,
-       Boolean sensitivity);
-extern void _DtEditorSetReplaceSensitivity(
-        DtEditorWidget pPriv,
-       Boolean sensitivity);
-extern void _DtEditorSetReplaceAllSensitivity(
-        DtEditorWidget pPriv,
-       Boolean sensitivity);
-
-
-/*** library-private functions in SearchDlg.c ***/
-extern void _DtEditorSearch(
-       DtEditorWidget pPriv,
-       Boolean spell,
-       Boolean createonly );
-
-#endif /* _DtEditorP_h */
-
diff --git a/cde/lib/DtWidget/Icon.h b/cde/lib/DtWidget/Icon.h
deleted file mode 100644 (file)
index 0b36064..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           Icon.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Public include file for DtIcon gadget class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtIcon_h
-#define _DtIcon_h
-
-#include <Xm/Xm.h>
-#include <Dt/DtStrDefs.h>
-
-#ifndef DtIsIcon
-#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass)
-#endif /* DtIsIcon */
-
-typedef struct _DtIconClassRec * DtIconGadgetClass;
-typedef struct _DtIconRec      * DtIconGadget;
-typedef struct _DtIconCacheObjRec   * DtIconCacheObject;
-
-
-extern Widget _DtCreateIcon( 
-                        Widget parent,
-                        String name,
-                        ArgList arglist,
-                        Cardinal argcount) ;
-extern Boolean _DtIconGetState( 
-                        Widget w) ;
-extern void _DtIconSetState( 
-                        Widget w,
-                        Boolean state,
-                        Boolean notify) ;
-extern Drawable _DtIconDraw( 
-                        Widget widget,
-                        Drawable drawable,
-                        Position x,
-                        Position y,
-                        Boolean fill) ;
-extern Widget _DtDuplicateIcon( 
-                        Widget parent,
-                        Widget widget,
-                        XmString string,
-                        String pixmap,
-                        XtPointer user_data,
-                        Boolean underline) ;
-extern Boolean _DtIconSelectInTitle( 
-                        Widget widget,
-                        Position pt_x,
-                        Position pt_y) ;
-extern XRectangle * _DtIconGetTextExtent( 
-                        Widget widget) ;
-extern void _DtIconGetIconRects( 
-                        DtIconGadget g,
-                        unsigned char *flags,
-                        XRectangle *rect1,
-                        XRectangle *rect2) ;
-
-
-
-extern WidgetClass dtIconGadgetClass;
-
-
-#define XmCR_SELECT    XmCR_SINGLE_SELECT
-#define XmCR_DROP      50
-#define XmCR_POPUP     51
-#define XmCR_HIGHLIGHT 52
-#define XmCR_UNHIGHLIGHT       53
-#define XmCR_SHADOW    54
-
-typedef struct
-{
-       int             reason;
-       XEvent *        event;
-       Boolean         set;
-} DtIconCallbackStruct;
-
-
-#define XmPIXMAP_TOP   0
-#define XmPIXMAP_BOTTOM        1
-#define XmPIXMAP_LEFT  2
-#define XmPIXMAP_RIGHT 3
-#define XmPIXMAP_MIDDLE        4
-
-#define XmSTRING_BOTTOM        0
-#define XmSTRING_TOP   1
-#define XmSTRING_RIGHT 2
-#define XmSTRING_LEFT  3
-
-#define XmICON_LABEL   0
-#define XmICON_BUTTON  1
-#define XmICON_TOGGLE  2
-#define XmICON_DRAG    3
-
-#define XmFILL_NONE    0
-#define XmFILL_PARENT  1
-#define XmFILL_SELF    2
-#define XmFILL_TRANSPARENT     3
-
-#define XmPIXMAP_RECT  0x01
-#define XmLABEL_RECT   0x02
-
-#define DtRECTANGLE     0
-#define DtNON_RECTANGLE 1
-
-
-#endif /* _XmIcon_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/IconP.h b/cde/lib/DtWidget/IconP.h
deleted file mode 100644 (file)
index dff4e56..0000000
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: IconP.h /main/7 1996/03/29 11:33:23 drk $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           IconP.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Private include file for DtIcon gadget class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtIconP_h
-#define _DtIconP_h
-
-#include <Xm/ExtObjectP.h>
-#include <Xm/XmP.h>
-#include <Xm/GadgetP.h>
-#include <Dt/Icon.h>
-
-
-/*-------------------------------------------------------------
-**     Cache Class Structure
-*/
-
-/*     Cache Class Part
-*/
-typedef struct _DtIconCacheObjClassPart
-{
-    int foo;
-} DtIconCacheObjClassPart;
-
-/*     Cache Full Class Record
-*/
-typedef struct _DtIconCacheObjClassRec     /* label cache class record */
-{
-    ObjectClassPart                     object_class;
-    XmExtClassPart                      ext_class;
-    DtIconCacheObjClassPart            icon_class_cache;
-} DtIconCacheObjClassRec;
-
-/*     Cache Actual Class
-*/
-externalref DtIconCacheObjClassRec dtIconCacheObjClassRec;
-
-\f
-/*-------------------------------------------------------------
-**     Cache Instance Structure
-*/
-
-/*     Cache Instance Part
-*/
-typedef struct _DtIconCacheObjPart
-{
-       Dimension       margin_width;
-       Dimension       margin_height;
-       Dimension       string_height;
-       Dimension       spacing;
-       Pixel           foreground;
-       Pixel           background;
-       Pixel           arm_color;
-       Boolean         fill_on_arm;
-       Boolean         recompute_size;
-       Boolean         draw_shadow;
-       unsigned char   pixmap_position;
-       unsigned char   string_position;
-       unsigned char   alignment;
-       unsigned char   behavior;
-       unsigned char   fill_mode;
-} DtIconCacheObjPart;
-
-typedef struct _DtIconCacheObjRec
-{
-    ObjectPart               object;
-    XmExtPart                ext;
-    DtIconCacheObjPart      icon_cache;
-} DtIconCacheObjRec;
-
-
-typedef void (*GetPositionProc)(
-       DtIconGadget,
-       Position,
-       Position,
-       Dimension,
-       Dimension,
-       Position *,
-       Position *,
-       Position *,
-       Position *
-);
-typedef void (*GetSizeProc)(
-       DtIconGadget,
-       Dimension *,
-       Dimension *
-);
-typedef void (*DrawProc)(
-       DtIconGadget,
-       Drawable,
-       Position,
-       Position,
-       Dimension,
-       Dimension,
-       Dimension,
-       Dimension,
-       unsigned char,
-       unsigned char
-);
-typedef void (*CallCallbackProc)(
-       DtIconGadget,
-       XtCallbackList,
-       int,
-       XEvent *
-);
-typedef void (*UpdateGCsProc)(
-       DtIconGadget
-);
-/*-------------------------------------------------------------
-**     Class Structure
-*/
-
-/*     Class Part
-*/
-typedef struct _DtIconClassPart
-{
-       GetSizeProc             get_size;
-       GetPositionProc         get_positions;
-       DrawProc                draw;
-       CallCallbackProc        call_callback;
-       UpdateGCsProc           update_gcs;
-       Boolean                 optimize_redraw;
-       XmCacheClassPartPtr     cache_part;
-       caddr_t                 extension;
-} DtIconClassPart;
-
-/*     Full Class Record
-*/
-typedef struct _DtIconClassRec
-{
-       RectObjClassPart        rect_class;
-       XmGadgetClassPart       gadget_class;
-       DtIconClassPart icon_class;
-} DtIconClassRec;
-
-/*     Actual Class
-*/
-externalref DtIconClassRec dtIconClassRec;
-
-\f
-/*-------------------------------------------------------------
-**     Instance Structure
-*/
-
-/*     Instance Part
-*/
-typedef struct _DtIconPart
-{
-       Boolean         set;
-       Boolean         armed;
-       Boolean         sync;
-       Boolean         underline;
-       unsigned char   shadow_type;
-       unsigned char   border_type;
-       XtCallbackList  callback;
-       XtIntervalId    click_timer_id;
-       XButtonEvent *  click_event;
-       String          image_name;
-       Pixmap          pixmap;
-       Pixmap          mask;
-       Pixel           pixmap_foreground;
-       Pixel           pixmap_background;
-       Dimension       max_pixmap_width;
-       Dimension       max_pixmap_height;
-       XmFontList      font_list;
-       XmString        string;
-       Dimension       string_width;
-       Dimension       pixmap_width;
-       Dimension       pixmap_height;
-       GC              clip_gc;
-       GC              normal_gc;
-       GC              background_gc;
-       GC              armed_gc;
-       GC              armed_background_gc;
-       GC              parent_background_gc;
-       Pixel           saved_parent_background;
-       DtIconCacheObjPart *cache;
-       unsigned char   operations;
-       XtCallbackList  drop_callback;
-} DtIconPart;
-
-/*     Full Instance Record
-*/
-typedef struct _DtIconRec
-{
-       ObjectPart      object;
-       RectObjPart     rectangle;
-       XmGadgetPart    gadget;
-       DtIconPart      icon;
-} DtIconRec;
-
-
-/*-------------------------------------------------------------
-**     Class and Instance Macros
-*/
-
-/*     DtIcon Class Macros
-*/     
-#define DtInheritGetSize       ((GetSizeProc) _XtInherit)
-#define DtInheritGetPositions  ((GetPositionProc) _XtInherit)
-#define DtInheritDraw          ((DrawProc) _XtInherit)
-#define DtInheritCallCallback  ((CallCallbackProc) _XtInherit)
-#define DtInheritUpdateGCs     ((UpdateGCsProc) _XtInherit)
-
-/*** WARNING: These macros are not thread-safe! ***/
-#define C_GetSize(wc)          \
-       (((DtIconGadgetClass)(wc)) -> icon_class.get_size)
-#define C_GetPositions(wc)     \
-       (((DtIconGadgetClass)(wc)) -> icon_class.get_positions)
-#define C_Draw(wc)             \
-       (((DtIconGadgetClass)(wc)) -> icon_class.draw)
-#define C_CallCallback(wc)     \
-       (((DtIconGadgetClass)(wc)) -> icon_class.call_callback)
-#define C_OptimizeRedraw(wc)   \
-       (((DtIconGadgetClass)(wc)) -> icon_class.optimize_redraw)
-#define C_UpdateGCs(wc)                \
-       (((DtIconGadgetClass)(wc)) -> icon_class.update_gcs)
-
-/*     DtIcon Macros
-*/
-
-/*** WARNING: These macros are not thread-safe! ***/
-#define G_GetSize(g,w,h) \
-  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_size) \
-       (g,w,h)
-#define G_GetPositions(g,w,h,h_t,s_t,p_x,p_y,s_x,s_y) \
-  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.get_positions) \
-       (g,w,h,h_t,s_t,p_x,p_y,s_x,s_y)
-#define G_Draw(g,d,x,y,w,h,h_t,s_t,s_type,fill) \
-  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.draw) \
-       (g,d,x,y,w,h,h_t,s_t,s_type,fill)
-#define G_CallCallback(g,cb,r,e) \
-  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.call_callback) \
-       (g,cb,r,e)
-#define G_UpdateGCs(g) \
-  (((DtIconClassRec *)g -> object.widget_class) -> icon_class.update_gcs) \
-       (g)
-
-/*     Cached Instance Field Macros
-*/
-#define G_CachePixmapPosition(co)      (((DtIconCacheObject)(co)) -> \
-                                       icon_cache.pixmap_position)
-#define G_FillOnArm(g)         (((DtIconGadget)(g)) -> \
-                                 icon.cache -> fill_on_arm)
-#define G_RecomputeSize(g)     (((DtIconGadget)(g)) -> \
-                                 icon.cache -> recompute_size)
-#define G_DrawShadow(g)                (((DtIconGadget)(g)) -> \
-                                 icon.cache -> draw_shadow)
-#define G_PixmapPosition(g)    (((DtIconGadget)(g)) -> \
-                                 icon.cache -> pixmap_position)
-#define G_StringPosition(g)    (((DtIconGadget)(g)) -> \
-                                 icon.cache -> string_position)
-#define G_Alignment(g)         (((DtIconGadget)(g)) -> \
-                                 icon.cache -> alignment)
-#define G_Behavior(g)          (((DtIconGadget)(g)) -> \
-                                 icon.cache -> behavior)
-#define G_FillMode(g)          (((DtIconGadget)(g)) -> \
-                                 icon.cache -> fill_mode)
-#define G_MarginWidth(g)       (((DtIconGadget)(g)) -> \
-                                 icon.cache -> margin_width)
-#define G_MarginHeight(g)      (((DtIconGadget)(g)) -> \
-                                 icon.cache -> margin_height)
-#define G_StringHeight(g)      (((DtIconGadget)(g)) -> \
-                                 icon.cache -> string_height)
-#define G_Spacing(g)           (((DtIconGadget)(g)) -> \
-                                 icon.cache -> spacing)
-#define G_Foreground(g)                (((DtIconGadget)(g)) -> \
-                                 icon.cache -> foreground)
-#define G_Background(g)                (((DtIconGadget)(g)) -> \
-                                 icon.cache -> background)
-#define G_ArmColor(g)          (((DtIconGadget)(g)) -> \
-                                 icon.cache -> arm_color)
-
-/*     Non-Cached Instance Field Macros
-*/
-#define G_Armed(g)             (g -> icon.armed)
-#define G_Set(g)               (g -> icon.set)
-#define G_Sync(g)              (g -> icon.sync)
-#define G_Callback(g)          (g -> icon.callback)
-#define G_ClickTimerID(g)      (g -> icon.click_timer_id)
-#define G_ClickInterval(g)     (g -> icon.click_interval)
-#define G_ClickEvent(g)                (g -> icon.click_event)
-#define G_ShadowType(g)                (g -> icon.shadow_type)
-#define G_BorderType(g)                (g -> icon.border_type)
-#define G_Pixmap(g)            (g -> icon.pixmap)
-#define G_Mask(g)              (g -> icon.mask)
-#define G_PixmapForeground(g)  (g -> icon.pixmap_foreground)
-#define G_PixmapBackground(g)  (g -> icon.pixmap_background)
-#define G_MaxPixmapWidth(g)    (g -> icon.max_pixmap_width)
-#define G_MaxPixmapHeight(g)   (g -> icon.max_pixmap_height)
-#define G_String(g)            (g -> icon.string)
-#define G_FontList(g)          (g -> icon.font_list)
-#define G_ImageName(g)         (g -> icon.image_name)
-#define G_StringWidth(g)       (g -> icon.string_width)
-#define G_PixmapWidth(g)       (g -> icon.pixmap_width)
-#define G_PixmapHeight(g)      (g -> icon.pixmap_height)
-#define G_BackgroundGC(g)      (g -> icon.background_gc)
-#define G_ArmedGC(g)           (g -> icon.armed_gc)
-#define G_ArmedBackgroundGC(g) (g -> icon.armed_background_gc)
-#define G_NormalGC(g)          (g -> icon.normal_gc)
-#define G_ClipGC(g)            (g -> icon.clip_gc)
-#define G_Underline(g)         (g -> icon.underline)
-#define G_ParentBackgroundGC(g)        (g -> icon.parent_background_gc)
-#define G_SavedParentBG(g)     (g -> icon.saved_parent_background)
-#define G_Operations(g)                (g -> icon.operations)
-#define G_DropCallback(g)      (g -> icon.drop_callback)
-
-#define Icon_Cache(w)                   (((DtIconGadget)(w))-> \
-                                           icon.cache)
-
-#define Icon_ClassCachePart(w) \
-        (((DtIconGadgetClass)dtIconGadgetClass)->gadget_class.cache_part)
-
-
-#endif /* _DtIconP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/MacrosP.h b/cde/lib/DtWidget/MacrosP.h
deleted file mode 100644 (file)
index 6579435..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: MacrosP.h /main/5 1996/03/27 20:16:40 drk $
- *
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1990,1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc. 
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
-
-/**---------------------------------------------------------------------
-***    
-***    file:           MacrosP.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Private include file with macros for MotifPlus
-***                    widgets and gadgets.
-***    
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtMacrosP_h
-#define _DtMacrosP_h
-
-#define XmUNSPECIFIED_STRING   (XmString) 3
-
-
-/*-------------------------------------------------------------
-**     Widget Class Macros
-*/
-
-/*     Core Class Macros
-*/
-/*** WARNING: These macros are not thread-safe! ***/
-#define C_WidgetClass(wc)      (wc -> core_class.widget_class)
-#define C_Superclass(wc)       (wc -> core_class.superclass)
-#define C_ClassName(wc)                (wc -> core_class.class_name)
-#define C_ClassInited(wc)      (wc -> core_class.class_inited)
-#define C_NumResources(wc)     (wc -> core_class.num_resources)
-
-/*     Composite Class Macros
-*/     
-#ifdef _XtCompositeP_h
-#define C_ChangeManaged(wc)    (wc -> composite_class.change_managed)
-#endif /* _XtCompositeP_h */
-
-/*     Constraint Class Macros
-*/     
-#ifdef _XtConstraintP_h
-#define C_ConstraintResources(wc) (wc -> constraint_class.resources)
-#define C_ConstraintNumResources(wc) (wc -> constraint_class.num_resources)
-#endif /* _XtConstraintP_h */
-
-/*     XmGadget Class Macros
-*/
-#define XmInheritBorderHighlight       ((XtWidgetProc) _XtInherit)
-#define XmInheritBorderUnhighlight     ((XtWidgetProc) _XtInherit)
-#define XmInheritVisualChange          ((XmVisualChangeProc) _XtInherit)
-
-
-\f
-/*-------------------------------------------------------------
-**     Primitive Macros
-*/
-
-#define P_X(w)                 (w -> core.x)
-#define P_Y(w)                 (w -> core.y)
-#define P_Width(w)             (w -> core.width)
-#define P_Height(w)            (w -> core.height)
-#define P_BorderWidth(w)       (w -> core.border_width)
-#define P_XrmName(w)           (w -> core.xrm_name)
-#define P_PopupList(w)         (w -> core.popup_list)
-#define P_NumPopups(w)         (w -> core.num_popups)
-
-
-\f
-/*-------------------------------------------------------------
-**     Gadget Macros
-*/
-
-/*     Object Macros
-*/
-#define G_XrmName(r)           (r -> object.xrm_name)
-#define G_Class(r)             (r -> object.widget_class)
-
-/*     RectObject Macros
-*/
-#define G_X(r)                 (r -> rectangle.x)
-#define G_Y(r)                 (r -> rectangle.y)
-#define G_Width(r)             (r -> rectangle.width)
-#define G_Height(r)            (r -> rectangle.height)
-#define G_BorderWidth(r)       (r -> rectangle.border_width)
-
-/*     XmGadget Macros
-*/
-#define G_HelpCB(g)            (g -> gadget.help_callback)
-#define G_EventMask(g)         (g -> gadget.event_mask)
-#define G_Highlighted(g)       (g -> gadget.highlighted)
-#define G_UnitType(g)          (g -> gadget.unit_type)
-
-
-\f
-/*-------------------------------------------------------------
-**     Manager Macros
-*/
-
-/*     Core Macros
-*/
-#define M_X(w)                 (w -> core.x)
-#define M_Y(w)                 (w -> core.y)
-#define M_Width(w)             (w -> core.width)
-#define M_Height(w)            (w -> core.height)
-#define M_BorderWidth(w)       (w -> core.border_width)
-#define M_Background(w)                (w -> core.background_pixel)
-#define M_Sensitive(w)         (w->core.sensitive && w->core.ancestor_sensitive) 
-#define M_Name(w)              (w -> core.name)
-#define M_Accelerators(w)      (w -> core.accelerators)
-#define M_TmTranslations(w)    (w -> core.tm.translations)
-#define M_PopupList(w)         (w -> core.popup_list)
-#define M_NumPopups(w)         (w -> core.num_popups)
-
-/*     Composite and Constraint Macros
-*/
-#define M_Children(m)          (m -> composite.children)
-#define M_NumChildren(m)       (m -> composite.num_children)
-
-/*     XmManager Macros
-*/
-#ifdef _XmManagerP_h
-#define M_Foreground(m)                (m -> manager.foreground)
-#define M_HighlightThickness(m)        (m -> manager.highlight_thickness)
-#define M_ShadowThickness(m)   (m -> manager.shadow_thickness)
-#define M_TopShadowGC(m)       (m -> manager.top_shadow_GC)
-#define M_BottomShadowGC(m)    (m -> manager.bottom_shadow_GC)
-#define M_BackgroundGC(m)      (m -> manager.background_GC)
-#define M_SelectedGadget(m)    (m -> manager.selected_gadget)
-#define M_HelpCB(m)            (m -> manager.help_callback)
-#define M_UnitType(m)          (m -> manager.unit_type)
-#endif /* _XmManagerP_h */
-
-/*     XmDrawingArea Macros
-*/
-#ifdef _XmDrawingAreaP_h
-#define M_MarginWidth(m)       (m -> drawing_area.margin_width)
-#define M_MarginHeight(m)      (m -> drawing_area.margin_height)
-#endif /* _XmDrawingAreaP_h */
-
-/*     XmBulletinBoard Macros
-*/
-#ifdef _XmBulletinBoardP_h
-#define M_ButtonFontList(m)    (m -> bulletin_board.button_font_list)
-#define M_LabelFontList(m)     (m -> bulletin_board.label_font_list)
-#define M_TextFontList(m)      (m -> bulletin_board.text_font_list)
-#define M_MarginWidth(m)       (m -> bulletin_board.margin_width)
-#define M_MarginHeight(m)      (m -> bulletin_board.margin_height)
-#endif /* _XmBulletinBoardP_h */
-
-#ifdef MAYBE
-/*     DtIconBox Macros
-*/
-#ifdef _DtIconBoxP_h
-#define M_Timer(m)             (m -> icon_box.timer)
-#define M_ShellX(m)            (m -> icon_box.shell_x)
-#define M_ShellY(m)            (m -> icon_box.shell_y)
-#define M_DragShell(m)         (m -> icon_box.drag_shell)
-#define M_DragWidget(m)                (m -> icon_box.drag_widget)
-#define M_DragIcon(m)          (m -> icon_box.drag_icon)
-#define M_XCursor(m)           (m -> icon_box.x_cursor)
-#define M_CrossCursor(m)       (m -> icon_box.cross_cursor)
-#endif /* _DtIconBoxP_h */
-#endif /* MAYBE */
-
-#endif /* _DtMacrosP_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/Makefile.am b/cde/lib/DtWidget/Makefile.am
new file mode 100644 (file)
index 0000000..e09f4f5
--- /dev/null
@@ -0,0 +1,34 @@
+unixdir = ${prefix}/app-defaults/C
+
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libDtWidget.la
+
+AM_CPPFLAGS = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) $(DT_INCDIR)
+
+libDtWidget_la_CFLAGS = -DI18N_MSG -DMULTIBYTE $(FREETYPE_CFLAGS)
+
+libDtWidget_la_LDFLAGS = -version-info 2:1:0
+
+libDtWidget_la_LIBADD = $(FREETYPE_LIBS)
+
+if SOLARIS
+libDtWidget_la_CFLAGS += -DNO_REGCOMP
+libDtWidget_la_LIBADD += -lc -lw -lintl
+endif
+
+
+libDtWidget_la_SOURCES = ComboBox.c      Control.c       DialogBox.c \
+                        DtMsgs.c        DtStrDefs.c     EditAreaData.c \
+                        EditCalls.c     Editor.c        Icon.c \
+                        MenuButton.c    NewCvt.c        SearchCalls.c \
+                        SearchDlg.c     SpinBox.c       TitleBox.c \
+                        View.c
+
+# cpp this...
+BUILT_SOURCES = UNIXbindings
+CLEANFILES = UNIXbindings
+
+UNIXbindings: UNIXbindings.cpp
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
diff --git a/cde/lib/DtWidget/MenuButton.h b/cde/lib/DtWidget/MenuButton.h
deleted file mode 100644 (file)
index e1a6fba..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: MenuButton.h /main/3 1995/10/26 09:33:10 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- */
-
-#ifndef _Dt_MenuButton_h
-#define _Dt_MenuButton_h
-
-#include <Xm/Xm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DtNcascadingCallback
-#define DtNcascadingCallback   XmNcascadingCallback
-#endif
-#ifndef DtNsubMenuId
-#define DtNsubMenuId           XmNsubMenuId
-#endif
-#ifndef DtNcascadePixmap
-#define DtNcascadePixmap       XmNcascadePixmap
-#endif
-
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCPixmap
-#define DtCPixmap              XmCPixmap
-#endif
-#ifndef DtCMenuWidget
-#define DtCMenuWidget          XmCMenuWidget
-#endif
-
-#ifndef DtCR_CASCADING
-#define DtCR_CASCADING         XmCR_CASCADING
-#endif
-
-
-/*
- * Types
- */
-
-/* Widget class and instance */
-
-typedef struct _DtMenuButtonRec      * DtMenuButtonWidget;
-typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass;
-
-
-/*
- * Data
- */
-
-/* Widget class record */
-
-externalref WidgetClass dtMenuButtonWidgetClass;
-
-
-/*
- * Functions
- */
-
-extern Widget DtCreateMenuButton( 
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_MenuButton_h */
diff --git a/cde/lib/DtWidget/MenuButtonP.h b/cde/lib/DtWidget/MenuButtonP.h
deleted file mode 100644 (file)
index 7b8ab7f..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: MenuButtonP.h /main/3 1995/10/26 09:33:17 rswiston $ */
-/*
- *        Copyright (C) 1986,1991  Sun Microsystems, Inc
- *                    All rights reserved.
- *          Notice of copyright on this source code
- *          product does not indicate publication.
- *
- * RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
- * the U.S. Government is subject to restrictions as set forth
- * in subparagraph (c)(1)(ii) of the Rights in Technical Data
- * and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
- * and FAR 52.227-19 (c) (June 1987).
- *
- *    Sun Microsystems, Inc., 2550 Garcia Avenue,
- *    Mountain View, California 94043.
- *
- */
-
-#ifndef  _DtMenuButtonP_h
-#define  _DtMenuButtonP_h
-
-#include "MenuButton.h"
-#include <Xm/LabelP.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/****************************************************************
- *
- *     Message Defines
- *
- ****************************************************************/
-#define MB_POST                DTWIDGET_GETMESSAGE( \
-                        MS_MenuButton, MENU_POST, _DtMsgMenuButton_0000)
-#define MB_PARENT      DTWIDGET_GETMESSAGE( \
-                        MS_MenuButton, MENU_PARENT, _DtMsgMenuButton_0001)
-#define MB_SUBMENU     DTWIDGET_GETMESSAGE( \
-                        MS_MenuButton, MENU_SUBMENU, _DtMsgMenuButton_0002)
-
-/* The MenuButton instance record */
-
-typedef        struct 
-{      /* resources */
-    XtCallbackList     cascading_callback;     /* Cascading callback  */
-    Widget             submenu;        /* the menu to pull down */
-    Pixmap             menu_pixmap;    /* pixmap for the menu */
-
-       /* internal fields */
-
-    Boolean    armed;          /* armed flag */
-    Boolean     popped_up;     /* submenu popped up flag*/
-    XRectangle  menu_rect;     /* location of menu*/
-    Time       last_timestamp; /* last time submenu popped down */
-    Boolean    private_submenu;
-    GC         gc;
-} DtMenuButtonPart;
-
-
-/* Full instance record declaration */
-
-typedef struct _DtMenuButtonRec
-{
-    CorePart           core;
-       XmPrimitivePart primitive;
-       XmLabelPart             label;
-       DtMenuButtonPart        menu_button;
-} DtMenuButtonRec;
-
-
-/* MenuButton class structure */
-
-typedef struct {
-       XtPointer       extension;      /* Pointer to extension record */
-} DtMenuButtonClassPart;
-
-
-/* Full class record declaration for MenuButton class */
-
-typedef struct _DtMenuButtonClassRec {
-       CoreClassPart       core_class;
-       XmPrimitiveClassPart    primitive_class;
-       XmLabelClassPart                label_class;
-       DtMenuButtonClassPart menu_button_class;
-} DtMenuButtonClassRec;
-
-
-extern DtMenuButtonClassRec   dtMenuButtonClassRec;
-
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif  /* _DtMenuButtonP_h */
-/* DON'T ADD STUFF AFTER THIS #endif */
-
diff --git a/cde/lib/DtWidget/SpinBox.h b/cde/lib/DtWidget/SpinBox.h
deleted file mode 100644 (file)
index 3d1515d..0000000
+++ /dev/null
@@ -1,566 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SpinBox.h /main/4 1995/10/26 09:34:23 rswiston $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- */
-/***********************************************************
-Copyright 1993 Interleaf, Inc.
-
-Permission to use, copy, modify, and distribute this software
-and its documentation for any purpose without fee is granted,
-provided that the above copyright notice appear in all copies
-and that both copyright notice and this permission notice appear
-in supporting documentation, and that the name of Interleaf not
-be used in advertising or publicly pertaining to distribution of
-the software without specific written prior permission.
-
-Interleaf makes no representation about the suitability of this
-software for any purpose. It is provided "AS IS" without any
-express or implied warranty.
-******************************************************************/
-
-#ifndef _Dt_SpinBox_h
-#define _Dt_SpinBox_h
-
-#include <Xm/Xm.h>
-#if defined(DT_USE_XM_SSPINBOX)
-#include <Xm/SSpinB.h>
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/*
- * Constants
- */
-
-/* Resources */
-
-#ifndef DtNarrowLayout
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNarrowLayout               XmNarrowLayout
-#  else
-#  define DtNarrowLayout               "arrowLayout"
-#  endif
-#endif
-#ifndef DtNarrowSensitivity
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNarrowSensitivity          XmNarrowSensitivity
-#  else
-#  define DtNarrowSensitivity          "arrowSensitivity"
-#  endif
-#endif
-#ifndef DtNarrowSize
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNarrowSize                 XmNarrowSize
-#  else
-#  define DtNarrowSize                 "arrowSize"
-#  endif
-#endif
-#ifndef DtNspinBoxChildType
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNspinBoxChildType          XmNspinBoxChildType
-#  else
-#  define DtNspinBoxChildType          "spinBoxChildType"
-#  endif
-#endif
-#ifndef DtNposition
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNposition                  XmNposition
-#  else
-#  define DtNposition                  "position"
-#  endif
-#endif
-#ifndef DtNtextField
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNtextField                 XmNtextField
-#  else
-#  define DtNtextField                 "textField"
-#  endif
-#endif
-#ifndef DtNwrap
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNwrap                      "wrap"
-#  else
-#  define DtNwrap                      "wrap"
-#  endif
-#endif
-#ifndef DtNincrementValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNincrementValue            XmNincrementValue
-#  else
-#  define DtNincrementValue            "incrementValue"
-#  endif
-#endif
-#ifndef DtNmaximumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNmaximumValue              XmNmaximumValue
-#  else
-#  define DtNmaximumValue              "maximumValue"
-#  endif
-#endif
-#ifndef DtNminimumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNminimumValue              XmNminimumValue
-#  else
-#  define DtNminimumValue              "minimumValue"
-#  endif
-#endif
-#ifndef DtNnumValues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNnumValues                 XmNnumValues
-#  else
-#  define DtNnumValues                 "numValues"
-#  endif
-#endif
-#ifndef DtNvalues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNvalues                    XmNvalues
-#  else
-#  define DtNvalues                    "values"
-#  endif
-#endif
-
-#ifndef DtNactivateCallback
-#define DtNactivateCallback    XmNactivateCallback
-#endif
-#ifndef DtNalignment
-#define DtNalignment           XmNalignment
-#endif
-#ifndef DtNcolumns
-#define DtNcolumns             XmNcolumns
-#endif
-#ifndef DtNdecimalPoints
-#define DtNdecimalPoints       XmNdecimalPoints
-#endif
-#ifndef DtNeditable
-#define DtNeditable            XmNeditable
-#endif
-#ifndef DtNfocusCallback
-#define DtNfocusCallback       XmNfocusCallback
-#endif
-#ifndef DtNinitialDelay
-#define DtNinitialDelay                XmNinitialDelay
-#endif
-#ifndef DtNlosingFocusCallback
-#define DtNlosingFocusCallback XmNlosingFocusCallback
-#endif
-#ifndef DtNmarginHeight
-#define DtNmarginHeight                XmNmarginHeight
-#endif
-#ifndef DtNmarginWidth
-#define DtNmarginWidth         XmNmarginWidth
-#endif
-#ifndef DtNmaxLength
-#define DtNmaxLength           XmNmaxLength
-#endif
-#ifndef DtNmodifyVerifyCallback
-#define DtNmodifyVerifyCallback        XmNmodifyVerifyCallback
-#endif
-#ifndef DtNrecomputeSize
-#define DtNrecomputeSize       XmNrecomputeSize
-#endif
-#ifndef DtNrepeatDelay
-#define DtNrepeatDelay         XmNrepeatDelay
-#endif
-#ifndef DtNvalueChangedCallback
-#define DtNvalueChangedCallback        XmNvalueChangedCallback
-#endif
-
-#ifndef DtCArrowLayout
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCArrowLayout               XmCArrowLayout
-#  else
-#  define DtCArrowLayout               "ArrowLayout"
-#  endif
-#endif
-#ifndef DtCArrowSensitivity
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCArrowSensitivity          XmCArrowSensitivity
-#  else
-#  define DtCArrowSensitivity          "ArrowSensitivity"
-#  endif
-#endif
-#ifndef DtCArrowSize
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCArrowSize                 XmCArrowSize
-#  else
-#  define DtCArrowSize                 "ArrowSize"
-#  endif
-#endif
-#ifndef DtCSpinBoxChildType
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCSpinBoxChildType          XmCSpinBoxChildType
-#  else
-#  define DtCSpinBoxChildType          "SpinBoxChildType"
-#  endif
-#endif
-#ifndef DtCPosition
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCPosition                  XmCPosition
-#  else
-#  define DtCPosition                  "Position"
-#  endif
-#endif
-#ifndef DtCTextField
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCTextField                 XmCTextField
-#  else
-#  define DtCTextField                 "TextField"
-#  endif
-#endif
-#ifndef DtCWrap
-#  define DtCWrap                      "Wrap"
-#endif
-#ifndef DtCIncrementValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCIncrementValue            XmCIncrementValue
-#  else
-#  define DtCIncrementValue            "incrementValue"
-#  endif
-#endif
-#ifndef DtCMaximumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCMaximumValue              XmCMaximumValue
-#  else
-#  define DtCMaximumValue              "maximumValue"
-#  endif
-#endif
-#ifndef DtCMinimumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCMinimumValue              XmCMinimumValue
-#  else
-#  define DtCMinimumValue              "minimumValue"
-#  endif
-#endif
-#ifndef DtCNumValues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCNumValues                 XmCNumValues
-#  else
-#  define DtCNumValues                 "numValues"
-#  endif
-#endif
-#ifndef DtCValues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCValues                    XmCValues
-#  else
-#  define DtCValues                    "values"
-#  endif
-#endif
-
-#ifndef DtCAlignment
-#define DtCAlignment           XmCAlignment
-#endif
-#ifndef DtCCallback
-#define DtCCallback            XmCCallback
-#endif
-#ifndef DtCColumns
-#define DtCColumns             XmCColumns
-#endif
-#ifndef DtCDecimalPoints
-#define DtCDecimalPoints       XmCDecimalPoints
-#endif
-#ifndef DtCEditable
-#define DtCEditable            XmCEditable
-#endif
-#ifndef DtCInitialDelay
-#define DtCInitialDelay                XmCInitialDelay
-#endif
-#ifndef DtCItems
-#define DtCItems               XmCItems
-#endif
-#ifndef DtCMarginHeight
-#define DtCMarginHeight                XmCMarginHeight
-#endif
-#ifndef DtCMarginWidth
-#define DtCMarginWidth         XmCMarginWidth
-#endif
-#ifndef DtCMaxLength
-#define DtCMaxLength           XmCMaxLength
-#endif
-#ifndef DtCPosition
-#define DtCPosition            XmCPosition
-#endif
-#ifndef DtCRecomputeSize
-#define DtCRecomputeSize       XmCRecomputeSize
-#endif
-#ifndef DtCRepeatDelay
-#define DtCRepeatDelay         XmCRepeatDelay
-#endif
-
-/* Representation types */
-
-#ifndef DtRIncrementValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRIncrementValue            XmRint
-#  else
-#  define DtRIncrementValue            "IncrementValue"
-#  endif
-#endif
-#ifndef DtRMaximumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRMaximumValue              XmRint
-#  else
-#  define DtRMaximumValue              "MaximumValue"
-#  endif
-#endif
-#ifndef DtRMinimumValue
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRMinimumValue              XmRint
-#  else
-#  define DtRMinimumValue              "MinimumValue"
-#  endif
-#endif
-#ifndef DtRNumValues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRNumValues                 XmRint
-#  else
-#  define DtRNumValues                 "NumValues"
-#  endif
-#endif
-#ifndef DtRValues
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRValues                    XmRXmStringTable
-#  else
-#  define DtRValues                    "Values"
-#  endif
-#endif
-#ifndef DtRArrowSensitivity
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRArrowSensitivity          XmRArrowSensitivity
-#  else
-#  define DtRArrowSensitivity          "ArrowSensitivity"
-#  endif
-#endif
-#ifndef DtRArrowLayout
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRArrowLayout               XmRArrowLayout
-#  else
-#  define DtRArrowLayout               "ArrowLayout"
-#  endif
-#endif
-#ifndef DtRSpinBoxChildType
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtRSpinBoxChildType          XmRSpinBoxChildType
-#  else
-#  define DtRSpinBoxChildType          "SpinBoxChildType"
-#  endif
-#endif
-
-/* DtNarrowLayout values */
-
-#ifndef DtARROWS_FLAT_BEGINNING
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_FLAT_BEGINNING      XmARROWS_FLAT_BEGINNING
-#  else
-#  define DtARROWS_FLAT_BEGINNING      4
-#  endif
-#endif
-#ifndef DtARROWS_FLAT_END
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_FLAT_END            XmARROWS_FLAT_END
-#  else
-#  define DtARROWS_FLAT_END            3
-#  endif
-#endif
-#ifndef DtARROWS_SPLIT
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_SPLIT               XmARROWS_SPLIT
-#  else
-#  define DtARROWS_SPLIT               2
-#  endif
-#endif
-#ifndef DtARROWS_BEGINNING
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_BEGINNING           XmARROWS_BEGINNING
-#  else
-#  define DtARROWS_BEGINNING           1
-#  endif
-#endif
-#ifndef DtARROWS_END
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_END                 XmARROWS_END
-#  else
-#  define DtARROWS_END                 0
-#  endif
-#endif
-
-/* DtNarrowSensitivity values */
-
-#ifndef DtARROWS_SENSITIVE
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_SENSITIVE           XmARROWS_SENSITIVE
-#  else
-#  define DtARROWS_SENSITIVE           3
-#  endif
-#endif
-#ifndef DtARROWS_DECREMENT_SENSITIVE
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_DECREMENT_SENSITIVE XmARROWS_DECREMENT_SENSITIVE
-#  else
-#  define DtARROWS_DECREMENT_SENSITIVE 2
-#  endif
-#endif
-#ifndef DtARROWS_INCREMENT_SENSITIVE
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_INCREMENT_SENSITIVE XmARROWS_INCREMENT_SENSITIVE
-#  else
-#  define DtARROWS_INCREMENT_SENSITIVE 1
-#  endif
-#endif
-#ifndef DtARROWS_INSENSITIVE
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtARROWS_INSENSITIVE         XmARROWS_INSENSITIVE
-#  else
-#  define DtARROWS_INSENSITIVE         0
-#  endif
-#endif
-
-/* DtNspinBoxChildType values */
-
-#ifndef DtNUMERIC
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtNUMERIC                    XmNUMERIC
-#  else
-#  define DtNUMERIC                    3
-#  endif
-#endif
-
-#ifndef DtSTRING
-#  define DtSTRING                     XmSTRING
-#endif
-
-/* DtNalignment values */
-
-#ifndef DtALIGNMENT_BEGINNING
-#define DtALIGNMENT_BEGINNING          XmALIGNMENT_BEGINNING
-#endif
-#ifndef DtALIGNMENT_CENTER
-#define DtALIGNMENT_CENTER             XmALIGNMENT_CENTER
-#endif
-#ifndef DtALIGNMENT_END
-#define DtALIGNMENT_END                        XmALIGNMENT_END
-#endif
-
-/* Callback reasons */
-
-#ifndef DtCR_OK
-#  define DtCR_OK                      XmCR_OK
-#endif
-#ifndef DtCR_SPIN_NEXT
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCR_SPIN_NEXT               XmCR_SPIN_NEXT
-#  else
-#  define DtCR_SPIN_NEXT               62
-#  endif
-#endif
-#ifndef DtCR_SPIN_PRIOR
-#  if defined(DT_USE_XM_SSPINBOX)
-#  define DtCR_SPIN_PRIOR              XmCR_SPIN_PRIOR
-#  else
-#  define DtCR_SPIN_PRIOR              63
-#  endif
-#endif
-
-
-/*
- * Types
- */
-#if defined(DT_USE_XM_SSPINBOX)
-#  define DtSpinBoxCallbackStruct      XmSpinBoxCallbackStruct
-#else
-typedef struct {
-       int             reason;
-       XEvent          *event;
-       Widget          widget;
-       Boolean         doit;
-       int             position;
-       XmString        value;
-       Boolean         crossed_boundary;
-} DtSpinBoxCallbackStruct;
-#endif
-
-/* Widget class and instance */
-#if defined(DT_USE_XM_SSPINBOX)
-#  define _DtSpinBoxClassRec           _XmSimpleSpinBoxClassRec
-#  define _DtSpinBoxRec                        _XmSimpleSpinBoxRec
-#  define DtSpinBoxWidgetClass         XmSimpleSpinBoxWidgetClass
-#  define DtSpinBoxWidget              XmSimpleSpinBoxWidget
-#else
-typedef struct _DtSpinBoxClassRec *DtSpinBoxWidgetClass;
-typedef struct _DtSpinBoxRec      *DtSpinBoxWidget;
-#endif
-
-/*
- * Data
- */
-
-/* Widget class record */
-#if defined(DT_USE_XM_SSPINBOX)
-#  define dtSpinBoxWidgetClass         xmSimpleSpinBoxWidgetClass
-#else
-externalref WidgetClass dtSpinBoxWidgetClass;
-#endif
-
-
-/*
- * Functions
- */
-
-#if defined(DT_USE_XM_SSPINBOX)
-#  define DtCreateSpinBox              XmCreateSimpleSpinBox
-#  define DtSpinBoxAddItem             XmSimpleSpinBoxAddItem
-#  define DtSpinBoxDeletePos           XmSimpleSpinBoxDeletePos
-#  define DtSpinBoxSetItem             XmSimpleSpinBoxSetItem
-#else
-extern Widget DtCreateSpinBox(
-               Widget          parent,
-               char            *name,
-               ArgList         arglist,
-               Cardinal        argcount);
-
-extern void DtSpinBoxAddItem(
-               Widget          widget,
-               XmString        item,
-               int             pos);
-
-extern void DtSpinBoxDeletePos(
-               Widget          widget,
-               int             pos);
-
-extern void DtSpinBoxSetItem(
-               Widget          widget,
-               XmString        item);
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _Dt_SpinBox_h */
diff --git a/cde/lib/DtWidget/SpinBoxP.h b/cde/lib/DtWidget/SpinBoxP.h
deleted file mode 100644 (file)
index f7d993b..0000000
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: SpinBoxP.h /main/4 1996/03/26 19:54:14 drk $ */
-/*
- * SpinBoxP.h, Interleaf, 16aug93 2:37pm Version 1.1.
- */
-
-/***********************************************************
-Copyright 1993 Interleaf, Inc.
-
-Permission to use, copy, modify, and distribute this software
-and its documentation for any purpose without fee is granted,
-provided that the above copyright notice appear in all copies
-and that both copyright notice and this permission notice appear
-in supporting documentation, and that the name of Interleaf not
-be used in advertising or publicly pertaining to distribution of
-the software without specific written prior permission.
-
-Interleaf makes no representation about the suitability of this
-software for any purpose. It is provided "AS IS" without any
-express or implied warranty. 
-******************************************************************/
-
-/*
- * (C) Copyright 1991,1992, 1993
- * Interleaf, Inc.
- * 9 Hillside Avenue, Waltham, MA  02154
- *
- * SpinBoxP.h:
- *
- * Private header file for DtSpinBoxWidget.
- */
-#ifndef _SpinBoxP_h
-#define _SpinBoxP_h
-
-#include <Xm/Label.h>
-#include <Xm/TextFP.h>
-#include <Xm/ArrowB.h>
-#include <Xm/ManagerP.h>
-#include "SpinBox.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * External definitions of syn_resources for our list widget.
- */
-#define SYN_RESOURCE_AA (Widget w, int resource_offset, XtArgVal *value)
-extern void _DtSpinBoxGetArrowSize     SYN_RESOURCE_AA;
-
-#define ARROW_MULT         .45
-#define ARROW_MIN          13
-#define MAX_FLOAT_DECIMALS  6
-#define NUMERIC_LENGTH      128
-#define MARGIN             2
-#define LABEL_PADDING      2
-#define LABEL_SHADOW       2
-#define TEXT_FIELD_SHADOW   1
-#define TEXT_CONTEXT_MARGIN 4
-
-/****************************************************************
- *
- *     Message Defines
- *
- ****************************************************************/
-
-#define SB_ARROW_SENSITIVE     DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_ARROW_SENSITIVE, _DtMsgSpinBox_0000)
-
-#define SB_ALIGNMENT   DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_ALIGNMENT, _DtMsgSpinBox_0001)
-
-#define SB_INIT_DELAY  DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_INIT_DELAY, _DtMsgSpinBox_0002)
-
-#define SB_MARGIN_HEIGHT       DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_MARGIN_HEIGHT, _DtMsgSpinBox_0003)
-
-#define SB_MARGIN_WIDTH        DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_MARGIN_WIDTH, _DtMsgSpinBox_0004)
-
-#define SB_ARROW_LAYOUT        DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_ARROW_LAYOUT, _DtMsgSpinBox_0005)
-
-#define SB_REPEAT_DELAY        DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_REPEAT_DELAY, _DtMsgSpinBox_0006)
-
-#define SB_ITEM_COUNT  DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_ITEM_COUNT, _DtMsgSpinBox_0007)
-
-#define SB_POSITION_STRING     DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_POSITION_STRING, _DtMsgSpinBox_0008)
-
-#define SB_POSITION_NUMERIC    DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_POSITION_NUMERIC, _DtMsgSpinBox_0009)
-
-#define SB_DECIMAL_POINTS      DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_DECIMAL_POINTS, _DtMsgSpinBox_0010)
-
-#define SB_MIN_MAX     DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_MIN_MAX, _DtMsgSpinBox_0011)
-
-#define SB_TEXT        DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_TEXT, _DtMsgSpinBox_0012)
-
-#define SB_SET_ITEM    DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_SET_ITEM, _DtMsgSpinBox_0013)
-
-#define SB_LABEL       DTWIDGET_GETMESSAGE( \
-                          MS_SpinBox, SPIN_LABEL, _DtMsgSpinBox_0014)
-/* 
- * Class Records
- */
-typedef struct {
-    Boolean junk;
-} DtSpinBoxClassPart;
-
-typedef struct _DtSpinBoxClassRec {
-    CoreClassPart              core_class;
-    CompositeClassPart         composite_class;
-    ConstraintClassPart                constraint_class;
-    XmManagerClassPart         manager_class;
-    DtSpinBoxClassPart         spin_box_class;
-} DtSpinBoxClassRec;
-
-extern DtSpinBoxClassRec dtSpinBoxClassRec;
-
-
-/*
- * Instance Record.
- */
-typedef struct _DtSpinBoxPart {
-    /* Private data */
-    Widget label;
-    Widget up_arrow;
-    Widget down_arrow;
-    unsigned char which_arrow;
-    Boolean init_cb;
-    Boolean grabbed;
-    int base;
-    float min, max;
-    float increment, current;
-    char float_format[10];
-    Dimension old_width;
-    Dimension old_height;
-    Dimension label_max_length;
-    Dimension label_max_height;
-
-    /* Resource-related data */
-    unsigned char arrow_sensitivity;
-    short decimal_points;
-    int numeric_increment;
-    int maximum;
-    int minimum;
-    int item_count;
-    int position;
-    unsigned char child_type;
-    XmStringTable items;
-    XtCallbackList activate_callback;
-    unsigned char alignment;
-    unsigned char arrow_layout;
-    Dimension arrow_size;
-    short text_columns;
-    Boolean editable;
-    XtCallbackList focus_callback;
-    unsigned int initial_delay;
-    XtCallbackList losing_focus_callback;
-    Dimension margin_height;
-    Dimension margin_width;
-    int text_max_length;
-    XtCallbackList modify_verify_callback;
-    Boolean recompute_size;
-    unsigned int repeat_delay;
-    Widget text;
-    XtCallbackList value_changed_callback;
-    Boolean wrap;
-
-    /* Spin timer. */
-    XtIntervalId timer;
-
-    /* String list related resources */
-
-    /* Numeric related resources */
-
-    /* TextField resources */
-} DtSpinBoxPart;
-
-
-/* Full instance record declaration */
-typedef struct _DtSpinBoxRec {
-    CorePart           core;
-    CompositePart      composite;
-    ConstraintPart     constraint;
-    XmManagerPart      manager;
-    DtSpinBoxPart      spin_box;
-} DtSpinBoxRec;
-
-#ifdef __cplusplus
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _SpinBoxP_h */
diff --git a/cde/lib/DtWidget/TitleBox.h b/cde/lib/DtWidget/TitleBox.h
deleted file mode 100644 (file)
index d0fd37b..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: TitleBox.h /main/4 1995/10/26 09:34:50 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           TitleBox.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Public include file for DtTitleBox class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtTitleBox_h
-#define _DtTitleBox_h
-
-#include <Xm/Xm.h>
-#include <Dt/DtStrDefs.h>
-
-#ifndef DtIsTitleBox
-#define DtIsTitleBox(w) XtIsSubclass(w, DtTitleBoxClass)
-#endif /* DtIsTitleBox */
-
-
-/********    Public Function Declarations    ********/
-
-extern Widget _DtCreateTitleBox( 
-                        Widget parent,
-                        char *name,
-                        ArgList arglist,
-                        Cardinal argcount) ;
-extern Widget _DtTitleBoxGetTitleArea( 
-                        Widget w) ;
-extern Widget _DtTitleBoxGetWorkArea( 
-                        Widget w) ;
-
-
-extern WidgetClass     dtTitleBoxWidgetClass;
-
-typedef struct _DtTitleBoxClassRec * DtTitleBoxWidgetClass;
-typedef struct _DtTitleBoxRec      * DtTitleBoxWidget;
-
-
-#define XmTITLE_TOP    0
-#define XmTITLE_BOTTOM 1
-
-#define XmTITLE_AREA   1
-
-
-#endif /* _DtTitleBox_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/TitleBoxP.h b/cde/lib/DtWidget/TitleBoxP.h
deleted file mode 100644 (file)
index 6d42be5..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: TitleBoxP.h /main/3 1995/10/26 09:34:57 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           TitleBoxP.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Private include file for DtTitleBox class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtTitleBoxP_h
-#define _DtTitleBoxP_h
-
-#include <Xm/XmP.h>
-#include <Dt/TitleBox.h>
-
-
-
-/*-------------------------------------------------------------
-**     Class Structure
-*/
-
-/*     Class Part
-*/
-typedef struct _DtTitleBoxClassPart
-{
-       caddr_t extension;
-} DtTitleBoxClassPart;
-
-/*     Full Class Record
-*/
-typedef struct _DtTitleBoxClassRec
-{
-       CoreClassPart           core_class;
-       CompositeClassPart      composite_class;
-       ConstraintClassPart     constraint_class;
-       XmManagerClassPart      manager_class;
-       DtTitleBoxClassPart     title_box_class;
-} DtTitleBoxClassRec;
-
-/*     Actual Class
-*/
-extern DtTitleBoxClassRec dtTitleBoxClassRec;
-
-
-
-\f
-/*-------------------------------------------------------------
-**     Instance Structure
-*/
-
-/*     Instance Part
-*/
-typedef struct _DtTitleBoxPart
-{
-       Widget          work_area;
-       Widget          title_area;
-       XmString        title_string;
-       XmFontList      font_list;
-       Dimension       margin_width;
-       Dimension       margin_height;
-       Dimension       old_width;
-       Dimension       old_height;
-       Dimension       old_shadow_thickness;
-       Dimension       title_spacing;
-       unsigned char   title_position;
-       unsigned char   title_alignment;
-       unsigned char   shadow_type;
-} DtTitleBoxPart;
-
-/*     Full Instance Record
-*/
-typedef struct _DtTitleBoxRec
-{
-       CorePart                core;
-       CompositePart           composite;
-       ConstraintPart          constraint;
-       XmManagerPart           manager;
-       DtTitleBoxPart          title_box;
-} DtTitleBoxRec;
-
-
-
-/*-------------------------------------------------------------
-**     Constraint Structure
-*/
-
-/*     Constraint Part
-*/
-typedef struct _DtTitleBoxConstraintPart
-{
-       unsigned char   child_type;
-} DtTitleBoxConstraintPart, * DtTitleBoxConstraint;
-
-/*     Full Constraint Record
-*/
-typedef struct _DtTitleBoxConstraintRec
-{
-       XmManagerConstraintPart         manager_constraint;
-       DtTitleBoxConstraintPart        title_box_constraint;
-} DtTitleBoxConstraintRec, * DtTitleBoxConstraintPtr;
-
-
-/*-------------------------------------------------------------
-**     Class and Instance Macros
-*/
-
-/*     DtTitleBox Class Macros
-*/
-
-/*     DtTitleBox Instance Macros
-*/
-#define M_TitleBoxConstraint(w) \
-       (&((DtTitleBoxConstraintPtr) (w)->core.constraints)->title_box_constraint)
-#define M_WorkArea(m)          (m -> title_box.work_area)
-#define M_TitleArea(m)         (m -> title_box.title_area)
-#define M_TitleString(m)       (m -> title_box.title_string)
-#define M_TitleSpacing(m)      (m -> title_box.title_spacing)
-#define M_TitlePosition(m)     (m -> title_box.title_position)
-#define M_TitleAlignment(m)    (m -> title_box.title_alignment)
-#define M_FontList(m)          (m -> title_box.font_list)
-#define M_ShadowType(m)                (m -> title_box.shadow_type)
-#define M_MarginWidth(m)       (m -> title_box.margin_width)
-#define M_MarginHeight(m)      (m -> title_box.margin_height)
-#define M_OldWidth(m)          (m -> title_box.old_width)
-#define M_OldHeight(m)         (m -> title_box.old_height)
-#define M_OldShadowThickness(m)        (m -> title_box.old_shadow_thickness)
-
-
-#endif /* _DtTitleBoxP_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/View.h b/cde/lib/DtWidget/View.h
deleted file mode 100644 (file)
index 53de0ed..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: View.h /main/3 1995/10/26 09:35:11 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           View.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Public include file for DtView class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtView_h
-#define _DtView_h
-
-#include <Xm/Xm.h>
-
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-/*  Temporary location for resource definition.  Need to  */
-/*  move into the string defs file.                       */
-
-#define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect"
-#define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect"
-#define XmNsubpanelTorn "subpanelTorn"
-#define XmCSubpanelTorn "SubpanelTorn"
-
-/* These macros are also defined in DtStrDefs.h */
-/* Control->View.h */
-/* Control.c->Control.h->Icon.h->DtStrDefs.h */
-
-#ifndef XmNleftInset
-#define XmNleftInset            "leftInset"
-#endif /* XmNleftInset */
-
-#ifndef XmNrightInset
-#define XmNrightInset           "rightInset"
-#endif /* XmNrightInset */
-
-#ifndef XmNtopInset
-#define XmNtopInset             "topInset"
-#endif /* XmNtopInset */
-
-#ifndef XmNbottomInset
-#define XmNbottomInset          "bottomInset"
-#endif /* XmNbottomInset */
-
-#ifndef XmNwidthIncrement
-#define XmNwidthIncrement       "widthIncrement"
-#endif /* XmNwidthIncrement */
-
-#ifndef XmNheightIncrement
-#define XmNheightIncrement      "heightIncrement"
-#endif /* XmNheightIncrement */
-
-#ifndef XmNboxType
-#define XmNboxType              "boxType"
-#endif /* XmNboxType */
-
-#ifndef XmCBoxType
-#define XmCBoxType              "BoxType"
-#endif /* XmCBoxType */
-
-#ifndef XmRBoxType
-#define XmRBoxType              "BoxType"
-#endif /* XmRBoxType */
-
-#define XmBOX_NONE             0
-#define XmBOX_PRIMARY          1
-#define XmBOX_SECONDARY                2
-#define XmBOX_SUBPANEL         3
-#define XmBOX_SWITCH           4
-
-#ifndef DtIsView
-#define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass)
-#endif /* XmIsView */
-
-
-extern Widget _DtCreateView(); 
-
-extern WidgetClass dtViewWidgetClass;
-
-typedef struct _DtViewClassRec * DtViewWidgetClass;
-typedef struct _DtViewRec      * DtViewWidget;
-
-
-typedef struct
-{
-       int             reason;
-       XEvent *        event;
-       int             category_index;
-       XmString        category;
-       int             item_index;
-       XmString        item;
-} DtViewCallbackStruct;
-
-#define XmCR_SELECT    XmCR_SINGLE_SELECT
-
-#if defined(__cplusplus) || defined(c_plusplus)
-}  /* Close scope of 'extern "C"' declaration which encloses file. */
-#endif
-
-#endif /* _DtView_h */
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtWidget/ViewP.h b/cde/lib/DtWidget/ViewP.h
deleted file mode 100644 (file)
index b3a1b4c..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
-/**---------------------------------------------------------------------
-***    
-***    file:           ViewP.h
-***
-***    project:        MotifPlus Widgets
-***
-***    description:    Private include file for DtView class.
-***    
-***    
-***                    (c) Copyright 1990 by Hewlett-Packard Company.
-***
-***
-***-------------------------------------------------------------------*/
-
-
-#ifndef _DtViewP_h
-#define _DtViewP_h
-
-#include <Xm/XmP.h>
-#include <Xm/BulletinBP.h>
-#include <Xm/FormP.h>
-#include <Dt/View.h>
-
-
-
-/*-------------------------------------------------------------
-**     Class Structure
-*/
-
-/*     Class Part
-*/
-typedef struct _DtViewClassPart
-{
-       caddr_t                 extension;
-} DtViewClassPart;
-
-/*     Full Class Record
-*/
-typedef struct _DtViewClassRec
-{
-       CoreClassPart           core_class;
-       CompositeClassPart      composite_class;
-       ConstraintClassPart     constraint_class;
-       XmManagerClassPart      manager_class;
-       XmBulletinBoardClassPart        bulletin_board_class;
-       XmFormClassPart         form_class;
-       DtViewClassPart view_class;
-} DtViewClassRec;
-
-/*     Actual Class
-*/
-extern DtViewClassRec dtViewClassRec;
-
-
-
-\f
-/*-------------------------------------------------------------
-**     Instance Structure
-*/
-
-/*     Instance Part
-*/
-typedef struct _DtViewPart
-{
-       Dimension       width_increment;
-       Dimension       height_increment;
-       Dimension       left_inset;
-       Dimension       right_inset;
-       Dimension       top_inset;
-       Dimension       bottom_inset;
-       unsigned char   box_type;
-        Boolean         subpanel_unpost_on_select;
-        Boolean         subpanel_torn;
-} DtViewPart;
-
-/*     Full Instance Record
-*/
-typedef struct _DtViewRec
-{
-       CorePart                core;
-       CompositePart           composite;
-       ConstraintPart          constraint;
-       XmManagerPart           manager;
-       XmBulletinBoardPart     bulletin_board;
-       XmFormPart              form;
-       DtViewPart              view;
-} DtViewRec;
-
-
-/*-------------------------------------------------------------
-**     Constraint Structure
-*/
-
-/*     Constraint Part
-*/
-typedef struct _DtViewConstraintPart
-{
-       unsigned char   foo_bar;
-} DtViewConstraintPart, * DtViewConstraint;
-
-/*     Full Constraint Record
-*/
-typedef struct _DtViewConstraintRec
-{
-       XmManagerConstraintPart         manager_constraint;
-       XmFormConstraintPart            form_constraint;
-       DtViewConstraintPart    view_constraint;
-} DtViewConstraintRec, * DtViewConstraintPtr;
-
-
-/*-------------------------------------------------------------
-**     Class and Instance Macros
-*/
-
-/*     DtView Class Macros
-*/     
-
-/*     DtView Instance Macros
-*/
-#define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color)
-#define M_TopShadowColor(m)    (m -> manager.top_shadow_color)
-#define M_HighlightColor(m)    (m -> manager.highlight_color)
-#define M_BackgroundPixmap(m)  (m -> core.background_pixmap)
-#define M_LeftInset(m)         (m -> view.left_inset)
-#define M_RightInset(m)                (m -> view.right_inset)
-#define M_TopInset(m)          (m -> view.top_inset)
-#define M_BottomInset(m)       (m -> view.bottom_inset)
-#define M_BoxType(m)           (m -> view.box_type)
-#define M_WidthIncrement(m)    (m -> view.width_increment)
-#define M_HeightIncrement(m)   (m -> view.height_increment)
-
-
-#endif /* _DtViewP_h */
-
-/* DON'T ADD ANYTHING AFTER THIS #endif */
diff --git a/cde/lib/DtXinerama/DtXinerama.h b/cde/lib/DtXinerama/DtXinerama.h
deleted file mode 100644 (file)
index 30c23a0..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2013, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/*
- * Jon Trulson, Xi Graphics 4/11/2001
- *
- * $XiGId: DtXinerama.h,v 1.1 2001/04/12 03:01:14 jon Exp $
- *
- * A Xinerama wrapper for CDE
- *
- */
-
-#ifndef DTXINERAMA_H_INCLUDED
-#define DTXINERAMA_H_INCLUDED
-
-#include <stdio.h>
-#include <X11/Xfuncs.h>
-
-#include <X11/extensions/Xinerama.h>
-
-typedef struct _DtXineramaInfo 
-{
-  int numscreens;      
-  XineramaScreenInfo *ScreenInfo;
-} DtXineramaInfo_t, *DtXineramaInfoPtr_t;
-
-
-DtXineramaInfo_t *_DtXineramaInit(Display *dpy);
-Bool _DtXineramaGetScreen(DtXineramaInfo_t *, unsigned int screen,
-                         unsigned int *w, unsigned int *h, 
-                         unsigned int *xorg, unsigned int *yorg);
-
-#endif /* DTXINERAMA_H_INCLUDED */
diff --git a/cde/lib/DtXinerama/Makefile.am b/cde/lib/DtXinerama/Makefile.am
new file mode 100644 (file)
index 0000000..ec85786
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libDtXinerama.la
+
+libDtXinerama_la_SOURCES = DtXinerama.c
+
+libDtXinerama_la_LIBADD = -lXinerama
+libDtXinerama_la_LDFLAGS = -version-info 2:1:0
+
diff --git a/cde/lib/Makefile.am b/cde/lib/Makefile.am
new file mode 100644 (file)
index 0000000..e0a6ffe
--- /dev/null
@@ -0,0 +1,4 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = DtXinerama tt DtSvc DtSearch DtWidget DtHelp DtPrint DtTerm \
+          DtMrm csa
diff --git a/cde/lib/csa/Makefile.am b/cde/lib/csa/Makefile.am
new file mode 100644 (file)
index 0000000..c255667
--- /dev/null
@@ -0,0 +1,77 @@
+csadir = $(includedir)/csa
+
+MAINTAINERCLEANFILES = Makefile.in
+
+lib_LTLIBRARIES = libcsa.la
+
+libcsa_la_CFLAGS = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \
+                  @CSA_INCDIR@
+
+libcsa_la_LIBADD = -lXt $(TIRPCLIB)
+
+libcsa_la_LDFLAGS = -version-info 2:1:0
+
+if SOLARIS
+libcsa_la_LDFLAGS += -G -z text -z defs
+libcsa_la_CFLAGS += -v
+endif
+
+if HPUX
+libcsa_la_CFLAGS += -DHPUX
+endif
+
+if LINUX
+else
+libcsa_la_LIBADD += $(LIBSVC) -lXm
+endif
+
+AM_YFLAGS = -d
+
+GENERATED_SRCS = agent_xdr.c cm_clnt.c reparser.c reparser.h \
+        rtable2_clnt.c rtable2_xdr.c rtable3_clnt.c rtable3_xdr.c \
+        rtable4_clnt.c rtable4_xdr.c agent.h
+
+BUILT_SOURCES = $(GENERATED_SRCS)
+CLEANFILES = $(GENERATED_SRCS) y.tab.c y.tab.h
+
+libcsa_la_SOURCES = agent.c         agent_xdr.c     api.c \
+                   appt4.c         attr.c          calendar.c \
+                   cm_clnt.c       cmcbxdr.c       cmsdata.c \
+                   cmxdr.c         connection.c    convert2-4.c \
+                   convert3-4.c    convert4-2.c    convert4-3.c \
+                   convert4-5.c    convert5-4.c    debug.c \
+                   entry.c         free.c          hash.c \
+                   iso8601.c       laccess.c       lutil.c \
+                   match.c         nametbl.c       refree.c \
+                   reparser.c      rescan.c        rpccalls.c \
+                   rtable2_clnt.c  rtable2_xdr.c   rtable3_clnt.c \
+                   rtable3_xdr.c   rtable4_clnt.c  rtable4_xdr.c \
+                   table.c         updateattrs.c   xtclient.c \
+                   ansi_c.c
+
+reparser.c reparser.h: reparser.y
+       $(YACC) $(AM_YFLAGS) $<
+       sed -e s/yyparse/_DtCm_rule_parser/g -e s/yy/_DtCm_yy/g y.tab.c > reparser.c
+       sed s/yy/_DtCm_yy/g y.tab.h > reparser.h
+
+rtable2_clnt.c rtable3_clnt.c rtable4_clnt.c cm_clnt.c:
+       $(RM) $@
+       cat EUSinclude > $@
+       rpcgen -l $(@:_clnt.c=.x) | sed -f namechange1.sed | sed -f namechange2.sed >> $@
+
+rtable2_xdr.c rtable3_xdr.c rtable4_xdr.c agent_xdr.c:
+       $(RM) $@
+       cat EUSinclude > $(@:.x=_xdr.c)
+       rpcgen -c $(@:_xdr.c=.x) | sed -f namechange1.sed | sed -f namechange2.sed >> $(@:.x=_xdr.c)
+
+rtable4_clnt.c rtable4_xdr.c: rtable4.h namechange1.sed namechange2.sed
+rtable3_clnt.c rtable3_xdr.c: rtable3.h namechange1.sed namechange2.sed
+rtable2_clnt.c rtable2_xdr.c: rtable3.h namechange1.sed namechange2.sed
+agent_xdr.c agent.c: agent.h
+
+agent.h:
+       $(RM) $@
+       cat agent.wrapbegin > agent.h
+       rpcgen -h agent.x | $(SED) -f namechange1.sed | $(SED) -f namechange2.sed >> agent.h
+       cat agent.wrapend >> agent.h
+
diff --git a/cde/lib/csa/csa.h b/cde/lib/csa/csa.h
deleted file mode 100644 (file)
index b1b6219..0000000
+++ /dev/null
@@ -1,1147 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: csa.h /main/1 1996/04/21 19:23:01 drk $ */
-/*
- *  (c) Copyright 1993, 1994 Hewlett-Packard Company
- *  (c) Copyright 1993, 1994 International Business Machines Corp.
- *  (c) Copyright 1993, 1994 Novell, Inc.
- *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- */
-
-#ifndef _CSA_H
-#define _CSA_H
-
-/* BEGIN CSA INTERFACE */
-
-/* BASIC DATA TYPES */
-
-#ifndef DIFFERENT_PLATFORM
-typedef short          CSA_sint16;
-typedef long           CSA_sint32;
-typedef unsigned char  CSA_uint8;
-typedef unsigned short CSA_uint16;
-typedef unsigned long  CSA_uint32;
-typedef void           *CSA_buffer;
-typedef CSA_uint32     CSA_entry_handle;
-typedef CSA_uint32     CSA_session_handle;
-typedef char           *CSA_string;
-#endif
-
-typedef CSA_string     CSA_attribute_reference;
-typedef CSA_uint32     CSA_boolean;
-typedef CSA_string     CSA_date_time;
-typedef CSA_string     CSA_date_time_range;
-typedef CSA_sint32     CSA_enum;
-typedef CSA_uint32     CSA_flags;
-typedef CSA_uint32     CSA_return_code;
-typedef CSA_string     CSA_service_reference;
-typedef CSA_string     CSA_time_duration;
-
-#define CSA_FALSE      ((CSA_boolean)0)
-#define CSA_TRUE       ((CSA_boolean)1)
-
-/* DATA STRUCTURES */
-
-/* EXTENSION */
-typedef struct CSA_TAG_EXTENSION {
-       CSA_uint32      item_code;
-       CSA_uint32      item_data;
-       CSA_buffer      item_reference;
-       CSA_flags       extension_flags;
-} CSA_extension;
-
-/* EXTENSION FLAGS */
-#define        CSA_EXT_REQUIRED        ((CSA_flags)0x1)
-#define        CSA_EXT_OUTPUT          ((CSA_flags)0x2)
-#define        CSA_EXT_LAST_ELEMENT    ((CSA_flags)0x4)
-
-/* CALENDAR USER */
-typedef struct CSA_TAG_CALENDAR_USER{
-       CSA_string      user_name;
-       CSA_enum        user_type;
-       CSA_string      calendar_address;
-       CSA_extension   *calendar_user_extensions;
-} CSA_calendar_user;
-
-/* CALENDAR USER TYPE */
-#define        CSA_USER_TYPE_INDIVIDUAL        ((CSA_enum)0)
-#define        CSA_USER_TYPE_GROUP             ((CSA_enum)1)
-#define        CSA_USER_TYPE_RESOURCE          ((CSA_enum)2)
-
-/* ACCESS LIST */
-typedef struct CSA_TAG_ACESS_RIGHTS {
-       CSA_calendar_user               *user;
-       CSA_flags                       rights;
-       struct CSA_TAG_ACESS_RIGHTS     *next;
-} CSA_access_rights, *CSA_access_list;
-
-/* ACCESS RIGHT FLAGS */
-#define        CSA_FREE_TIME_SEARCH            ((CSA_flags)0x1)
-#define        CSA_VIEW_PUBLIC_ENTRIES         ((CSA_flags)0x2)
-#define        CSA_VIEW_CONFIDENTIAL_ENTRIES   ((CSA_flags)0x4)
-#define        CSA_VIEW_PRIVATE_ENTRIES        ((CSA_flags)0x8)
-#define        CSA_INSERT_PUBLIC_ENTRIES       ((CSA_flags)0x10)
-#define        CSA_INSERT_CONFIDENTIAL_ENTRIES ((CSA_flags)0x20)
-#define        CSA_INSERT_PRIVATE_ENTRIES      ((CSA_flags)0x40)
-#define        CSA_CHANGE_PUBLIC_ENTRIES       ((CSA_flags)0x80)
-#define        CSA_CHANGE_CONFIDENTIAL_ENTRIES ((CSA_flags)0x100)
-#define        CSA_CHANGE_PRIVATE_ENTRIES      ((CSA_flags)0x200)
-#define        CSA_VIEW_CALENDAR_ATTRIBUTES    ((CSA_flags)0x400)
-#define        CSA_INSERT_CALENDAR_ATTRIBUTES  ((CSA_flags)0x800)
-#define        CSA_CHANGE_CALENDAR_ATTRIBUTES  ((CSA_flags)0x1000)
-#define        CSA_ORGANIZER_RIGHTS            ((CSA_flags)0x2000)
-#define        CSA_SPONSOR_RIGHTS              ((CSA_flags)0x4000)
-#define        CSA_OWNER_RIGHTS                ((CSA_flags)0x8000)
-
-/* access right flags for data version 1, 2, and 3 */
-#define CSA_X_DT_BROWSE_ACCESS ((CSA_flags)0x1)
-#define CSA_X_DT_INSERT_ACCESS ((CSA_flags)0x2)
-#define CSA_X_DT_DELETE_ACCESS ((CSA_flags)0x4)
-
-/* ATTENDEE LIST */
-typedef struct CSA_TAG_ATTENDEE {
-       CSA_calendar_user       attendee;
-       CSA_enum                priority;
-       CSA_enum                status;
-       CSA_boolean             rsvp_requested;
-       struct CSA_TAG_ATTENDEE *next;
-} CSA_attendee, *CSA_attendee_list;
-
-/* ATTENDEE PRIORITIES */
-#define        CSA_FOR_YOUR_INFORMATION        ((CSA_enum)0)
-#define        CSA_ATTENDANCE_REQUESTED        ((CSA_enum)1)
-#define        CSA_ATTENDANCE_REQUIRED         ((CSA_enum)2)
-#define        CSA_IMMEDIATE_RESPONSE          ((CSA_enum)3)
-
-/* DATE AND TIME LIST */
-typedef struct CSA_TAG_DATE_TIME_ITEM {
-       CSA_date_time                   date_time;
-       struct CSA_TAG_DATE_TIME_ITEM   *next;
-} CSA_date_time_entry, *CSA_date_time_list;
-
-/* OPAQUE DATA */
-typedef struct CSA_TAG_OPAQUE_DATA {
-       CSA_uint32      size;
-       CSA_uint8       *data;
-} CSA_opaque_data;
-
-/* REMINDER */
-typedef struct CSA_TAG_REMINDER {
-       CSA_time_duration       lead_time;
-       CSA_time_duration       snooze_time;
-       CSA_uint32              repeat_count;
-       CSA_opaque_data         reminder_data;
-} CSA_reminder;
-
-/* ATTRIBUTE */
-typedef struct CSA_TAG_ATTRIBUTE_ITEM {
-       CSA_enum                        type;
-       union {
-               CSA_boolean             boolean_value;
-               CSA_enum                enumerated_value;
-               CSA_flags               flags_value;
-               CSA_sint32              sint32_value;
-               CSA_uint32              uint32_value;
-               CSA_string              string_value;
-               CSA_calendar_user       *calendar_user_value;
-               CSA_date_time           date_time_value;
-               CSA_date_time_range     date_time_range_value;
-               CSA_time_duration       time_duration_value;
-               CSA_access_list         access_list_value;
-               CSA_attendee_list       attendee_list_value;
-               CSA_date_time_list      date_time_list_value;
-               CSA_reminder            *reminder_value;
-               CSA_opaque_data         *opaque_data_value;
-       } item;
-} CSA_attribute_value;
-
-typedef struct CSA_TAG_ATTRIBUTE {
-       CSA_string              name;
-       CSA_attribute_value     *value;
-       CSA_extension           *attribute_extensions;
-} CSA_attribute;
-
-/* ATTRIBUTE VALUE TYPE */
-#define CSA_VALUE_BOOLEAN              ((CSA_enum)0)
-#define CSA_VALUE_ENUMERATED           ((CSA_enum)1)
-#define CSA_VALUE_FLAGS                        ((CSA_enum)2)
-#define CSA_VALUE_SINT32               ((CSA_enum)3)
-#define        CSA_VALUE_UINT32                ((CSA_enum)4)
-#define        CSA_VALUE_STRING                ((CSA_enum)5)
-#define CSA_VALUE_CALENDAR_USER                ((CSA_enum)6)
-#define        CSA_VALUE_DATE_TIME             ((CSA_enum)7)
-#define        CSA_VALUE_DATE_TIME_RANGE       ((CSA_enum)8)
-#define CSA_VALUE_TIME_DURATION                ((CSA_enum)9)
-#define        CSA_VALUE_ACCESS_LIST           ((CSA_enum)10)
-#define        CSA_VALUE_ATTENDEE_LIST         ((CSA_enum)11)
-#define        CSA_VALUE_DATE_TIME_LIST        ((CSA_enum)12)
-#define        CSA_VALUE_REMINDER              ((CSA_enum)13)
-#define        CSA_VALUE_OPAQUE_DATA           ((CSA_enum)14)
-
-/* CALLBACK */
-
-/* REASON FOR CALLBACK */
-#define        CSA_CB_CALENDAR_LOGON                   ((CSA_flags)0x1)
-#define        CSA_CB_CALENDAR_DELETED                 ((CSA_flags)0x2)
-#define        CSA_CB_CALENDAR_ATTRIBUTE_UPDATED       ((CSA_flags)0x4)
-#define        CSA_CB_ENTRY_ADDED                      ((CSA_flags)0x8)
-#define        CSA_CB_ENTRY_DELETED                    ((CSA_flags)0x10)
-#define        CSA_CB_ENTRY_UPDATED                    ((CSA_flags)0x20)
-
-/* CALL DATA FOR CSA_CB_CALENDAR_LOGON */
-typedef struct CSA_TAG_LOGON_CB_DATA {
-       CSA_calendar_user       *user;
-} CSA_logon_callback_data;
-
-/* CALL DATA FOR CSA_CB_CALENDAR_DELETED */
-typedef struct CSA_TAG_CALENDAR_DELETED_CB_DATA {
-       CSA_calendar_user       *user;
-} CSA_calendar_deleted_callback_data;
-
-/* CALL DATA FOR CSA_CB_CALENDAR_ATTRIBUTE_UPDATED */
-typedef struct CSA_TAG_CALENDAR_ATTR_UPDATE_CB_DATA {
-       CSA_calendar_user       *user;
-       CSA_uint32              number_attributes;
-       CSA_attribute_reference *attribute_names;
-} CSA_calendar_attr_update_callback_data;
-
-/* CALL DATA FOR CSA_CB_ENTRY_ADDED */
-typedef struct CSA_TAG_ADD_ENTRY_CB_DATA {
-       CSA_calendar_user       *user;
-       CSA_opaque_data         added_entry_id;
-} CSA_add_entry_callback_data;
-
-/* CALL DATA FOR CSA_CB_ENTRY_DELETED */
-typedef struct CSA_TAG_DELETE_ENTRY_CB_DATA {
-       CSA_calendar_user       *user;
-       CSA_opaque_data         deleted_entry_id;
-       CSA_enum                scope;
-       CSA_date_time           date_and_time;
-} CSA_delete_entry_callback_data;
-
-/* CALL DATA FOR CSA_CB_ENTRY_UPDATED */
-typedef struct CSA_TAG_UPDATE_ENTRY_CB_DATA {
-       CSA_calendar_user       *user;          /* who updated entry? */
-       CSA_opaque_data         old_entry_id;   /* id of updated entry */
-       CSA_opaque_data         new_entry_id;   /* new id after update */
-       CSA_enum                scope;          /* scope of the update op */
-       CSA_date_time           date_and_time;  /* time of first updated */
-} CSA_update_entry_callback_data;
-
-/* CALLBACK FUNCTION PROTOTYPE */
-typedef void (*CSA_callback)(
-       CSA_session_handle      session,
-       CSA_flags               reason,
-       CSA_buffer              call_data,
-       CSA_buffer              client_data,
-       CSA_extension           *callback_extensions);
-
-/* FREE TIME */
-typedef struct CSA_TAG_FREE_TIME {
-       CSA_uint32              number_free_time_data;
-       CSA_date_time_range     *free_time_data;
-} CSA_free_time;
-
-/* REMINDER REFERENCE */
-typedef struct CSA_TAG_REMINDER_REFERENCE {
-       CSA_entry_handle        entry;
-       CSA_date_time           run_time;
-       CSA_time_duration       snooze_time;
-       CSA_uint32              repeat_count;
-       CSA_attribute_reference attribute_name;
-} CSA_reminder_reference;
-
-/* WORK SCHEDULE */
-typedef struct CSA_TAG_WORK_SCHEDULE {
-       CSA_date_time           schedule_begin_time;
-       CSA_boolean             cyclic_definition_flag;
-       CSA_date_time           cycle_end_time;
-       CSA_date_time_list      *work_cycle;
-} CSA_work_schedule;
-
-/* CSA FUNCTIONS */
-
-/* CROSS FUNCTION FLAGS */
-
-/* CLASSIFICATION */
-#define CSA_CLASS_PUBLIC       ((CSA_enum)0)
-#define CSA_CLASS_PRIVATE      ((CSA_enum)1)
-#define CSA_CLASS_CONFIDENTIAL ((CSA_enum)2)
-
-/* STATUS */
-#define        CSA_STATUS_ACCEPTED             ((CSA_enum)0)
-#define        CSA_STATUS_NEEDS_ACTION         ((CSA_enum)1)
-#define        CSA_STATUS_SENT                 ((CSA_enum)2)
-#define        CSA_STATUS_TENTATIVE            ((CSA_enum)3)
-#define        CSA_STATUS_CONFIRMED            ((CSA_enum)4)
-#define        CSA_STATUS_REJECTED             ((CSA_enum)5)
-#define        CSA_STATUS_COMPLETED            ((CSA_enum)6)
-#define        CSA_STATUS_DELEGATED            ((CSA_enum)7)
-
-/* CDE specific status values */
-#define        CSA_X_DT_STATUS_ACTIVE          ((CSA_enum)0x900)
-#define        CSA_X_DT_STATUS_DELETE_PENDING  ((CSA_enum)0x901)
-#define        CSA_X_DT_STATUS_ADD_PENDING     ((CSA_enum)0x902)
-#define        CSA_X_DT_STATUS_COMMITTED       ((CSA_enum)0x903)
-#define        CSA_X_DT_STATUS_CANCELLED       ((CSA_enum)0x904)
-
-/* SCOPE */
-#define        CSA_SCOPE_ALL           ((CSA_enum)0)
-#define        CSA_SCOPE_ONE           ((CSA_enum)1)
-#define        CSA_SCOPE_FORWARD       ((CSA_enum)2)
-
-/* OPERATORS */
-#define        CSA_MATCH_ANY                           ((CSA_enum)0)
-#define        CSA_MATCH_EQUAL_TO                      ((CSA_enum)1)
-#define        CSA_MATCH_NOT_EQUAL_TO                  ((CSA_enum)2)
-#define        CSA_MATCH_GREATER_THAN                  ((CSA_enum)3)
-#define        CSA_MATCH_LESS_THAN                     ((CSA_enum)4)
-#define        CSA_MATCH_GREATER_THAN_OR_EQUAL_TO      ((CSA_enum)5)
-#define        CSA_MATCH_LESS_THAN_OR_EQUAL_TO         ((CSA_enum)6)
-#define        CSA_MATCH_CONTAIN                       ((CSA_enum)7)
-
-/* FREE */
-CSA_return_code
-csa_free(
-       CSA_buffer      memory
-);
-
-/* LIST CALENDARS */
-CSA_return_code
-csa_list_calendars(
-       CSA_service_reference   calendar_service,
-       CSA_uint32              *number_names,
-       CSA_calendar_user       **calendar_names,
-       CSA_extension           *list_calendars_extensions
-);
-
-/* LOGOFF */
-CSA_return_code
-csa_logoff(
-       CSA_session_handle      session,
-       CSA_extension           *logoff_extensions
-);
-
-/* LOGON */
-CSA_return_code
-csa_logon(
-       CSA_service_reference   calendar_service,
-       CSA_calendar_user       *user,
-       CSA_string              password,
-       CSA_string              character_set,
-       CSA_string              required_csa_version,
-       CSA_session_handle      *session,
-       CSA_extension           *logon_extensions
-);
-
-/* LOOK UP */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_look_up(
-       CSA_session_handle      session,
-       CSA_calendar_user       *users,
-       CSA_flags               look_up_flags,
-       CSA_uint32              *number_users,
-       CSA_calendar_user       **user_list,
-       CSA_extension           *look_up_extensions
-);
-
-#define        CSA_LOOKUP_RESOLVE_PREFIX_SEARCH        ((CSA_flags)0x1)
-#define        CSA_LOOKUP_RESOLVE_IDENTITY             ((CSA_flags)0x2)
-
-/* QUERY CONFIGURATION */
-CSA_return_code
-csa_query_configuration(
-       CSA_session_handle      session,
-       CSA_enum                item,
-       CSA_buffer              *reference,
-       CSA_extension           *query_configuration_extensions
-);
-
-#define CSA_CONFIG_CHARACTER_SET       ((CSA_enum)0)
-#define CSA_CONFIG_LINE_TERM           ((CSA_enum)1)
-#define CSA_CONFIG_DEFAULT_SERVICE     ((CSA_enum)2)
-#define CSA_CONFIG_DEFAULT_USER                ((CSA_enum)3)
-#define        CSA_CONFIG_REQ_PASSWORD         ((CSA_enum)4)
-#define        CSA_CONFIG_REQ_SERVICE          ((CSA_enum)5)
-#define        CSA_CONFIG_REQ_USER             ((CSA_enum)6)
-#define        CSA_CONFIG_UI_AVAIL             ((CSA_enum)7)
-#define        CSA_CONFIG_VER_IMPLEM           ((CSA_enum)8)
-#define        CSA_CONFIG_VER_SPEC             ((CSA_enum)9)
-
-#define        CSA_LINE_TERM_CRLF              ((CSA_enum)0)
-#define        CSA_LINE_TERM_LF                ((CSA_enum)1)
-#define        CSA_LINE_TERM_CR                ((CSA_enum)2)
-
-#define        CSA_REQUIRED_NO                 ((CSA_enum)0)
-#define        CSA_REQUIRED_OPT                ((CSA_enum)1)
-#define        CSA_REQUIRED_YES                ((CSA_enum)2)
-
-/* CHARACTER SE IDENTIFIERS */
-#define        CSA_CHARSET_437         "-//XAPIA//CHARSET IBM 437//EN"
-#define        CSA_CHARSET_850         "-//XAPIA//CHARSET IBM 850//EN"
-#define        CSA_CHARSET_1252        "-//XAPIA//CHARSET Microsoft 1252//EN"
-#define        CSA_CHARSET_ISTRING     "-//XAPIA//CHARSET Apple ISTRING//EN"
-#define        CSA_CHARSET_UNICODE     "-//XAPIA//CHARSET UNICODE//EN"
-#define        CSA_CHARSET_T61         "-//XAPIA//CHARSET TSS T61//EN"
-#define        CSA_CHARSET_IA5         "-//XAPIA//CHARSET TSS IA5//EN"
-#define        CSA_CHARSET_ISO_10646   "-//XAPIA//CHARSET ISO 10646//EN"
-#define        CSA_CHARSET_ISO_646     "-//XAPIA//CHARSET ISO 646//EN"
-#define        CSA_CHARSET_iso_8859_1  "-//XAPIA//CHARSET ISO 8859-1//EN"
-
-/* RESTORE */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_restore(
-       CSA_session_handle      session,
-       CSA_string              archive_name,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *attributes,
-       CSA_enum                *operators,
-       CSA_extension           *restore_extensions
-);
-
-/* SAVE */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_save(
-       CSA_session_handle      session,
-       CSA_string              archive_name,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *attributes,
-       CSA_enum                *operators,
-       CSA_boolean             delete_entry,
-       CSA_extension           *save_extensions
-);
-
-/* ADD CALENDAR */
-CSA_return_code
-csa_add_calendar(
-       CSA_session_handle      session,
-       CSA_calendar_user       *user,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *calendar_attributes,
-       CSA_extension           *add_calendar_extensions
-);
-
-/* DELETE CALENDAR */
-CSA_return_code
-csa_delete_calendar(
-       CSA_session_handle      session,
-       CSA_extension           *delete_calendar_extensions
-);
-
-/* LIST CALENDAR ATTRIBUTES */
-CSA_return_code
-csa_list_calendar_attributes(
-       CSA_session_handle      session,
-       CSA_uint32              *number_names,
-       CSA_attribute_reference **calendar_attributes_names,
-       CSA_extension           *list_calendar_attributes_extensions
-);
-
-/* READ CALENDAR ATTRIBUTES */
-CSA_return_code
-csa_read_calendar_attributes(
-       CSA_session_handle      session,
-       CSA_uint32              number_names,
-       CSA_attribute_reference *attribte_names,
-       CSA_uint32              *number_attributes,
-       CSA_attribute           **calendar_attributes,
-       CSA_extension           *read_calendar_attributes_extensions
-);
-
-/* REGISTER CALLBACK FUNCTION */
-CSA_return_code
-csa_register_callback(
-       CSA_session_handle      session,
-       CSA_flags               reason,
-       CSA_callback            callback,
-       CSA_buffer              client_data,
-       CSA_extension           *register_callback_extensions
-);
-
-/* UNREGISTER CALLBACK FUNCTION */
-CSA_return_code
-csa_unregister_callback(
-       CSA_session_handle      session,
-       CSA_flags               reason,
-       CSA_callback            callback,
-       CSA_buffer              client_data,
-       CSA_extension           *unregister_callback_extensions
-);
-
-/* CALL CALLBACK FUNCTION */
-CSA_return_code
-csa_call_callbacks(
-       CSA_session_handle      session,
-       CSA_flags               reason,
-       CSA_extension           *call_callbacks_extensions
-);
-
-/* UDPATE CALENDAR ATTRIBUTES */
-CSA_return_code
-csa_update_calendar_attributes(
-       CSA_session_handle      session,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *calendar_attributes,
-       CSA_extension           *update_calendar_attributes_extensions
-);
-
-/* Add ENTRY */
-CSA_return_code
-csa_add_entry(
-       CSA_session_handle      session,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *entry_attributes,
-       CSA_entry_handle        *entry,
-       CSA_extension           *add_entry_extensions
-);
-
-/* DELETE ENTRY */
-CSA_return_code
-csa_delete_entry(
-       CSA_session_handle      session,
-       CSA_entry_handle        entry,
-       CSA_enum                delete_scope,
-       CSA_extension           *delete_entry_extensions
-);
-
-/* FREE TIME SEARCH */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_free_time_search(
-       CSA_session_handle      session,
-       CSA_date_time_range     date_time_range,
-       CSA_time_duration       time_duration,
-       CSA_uint32              number_users,
-       CSA_calendar_user       *calendar_users,
-       CSA_free_time           **free_time,
-       CSA_extension           *free_time_search_extensions
-);
-
-/* LIST ENTRIES */
-CSA_return_code
-csa_list_entries(
-       CSA_session_handle      session,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *entry_attributes,
-       CSA_enum                *list_operators,
-       CSA_uint32              *number_entries,
-       CSA_entry_handle        **entries,
-       CSA_extension           *list_entries_extensions
-);
-
-/* LIST ENTRY ATTRIBUTES */
-CSA_return_code
-csa_list_entry_attributes(
-       CSA_session_handle      session,
-       CSA_entry_handle        entry,
-       CSA_uint32              *number_names,
-       CSA_attribute_reference **entry_attribute_names,
-       CSA_extension           *list_entry_attributes_extensions
-);
-
-/* LIST ENTRY SEQUENCE */
-CSA_return_code
-csa_list_entry_sequence(
-       CSA_session_handle      session,
-       CSA_entry_handle        entry,
-       CSA_date_time_range     time_range,
-       CSA_uint32              *number_entries,
-       CSA_entry_handle        **entry_list,
-       CSA_extension           *list_entry_sequence_extensions
-);
-
-/* READ ENTRY ATTRIBUTES */
-CSA_return_code
-csa_read_entry_attributes(
-       CSA_session_handle      session,
-       CSA_entry_handle        entry,
-       CSA_uint32              number_names,
-       CSA_attribute_reference *attribute_names,
-       CSA_uint32              *number_attributes,
-       CSA_attribute           **entry_attributes,
-       CSA_extension           *read_entry_attributes_extensions
-);
-
-/* READ NEXT REMINDERS */
-CSA_return_code
-csa_read_next_reminder(
-       CSA_session_handle      session,
-       CSA_uint32              number_names,
-       CSA_attribute_reference *reminder_names,
-       CSA_date_time           given_time,
-       CSA_uint32              *number_reminders,
-       CSA_reminder_reference  **reminder_references,
-       CSA_extension           *read_next_reminder_extensions
-);
-
-/* UPDATE ENTRY ATTRIBUTES */
-CSA_return_code
-csa_update_entry_attributes(
-       CSA_session_handle      session,
-       CSA_entry_handle        entry,
-       CSA_enum                update_scope,
-       CSA_boolean             update_propagation,
-       CSA_uint32              number_attributes,
-       CSA_attribute           *entry_attributes,
-       CSA_entry_handle        *new_entry,
-       CSA_extension           *update_entry_attributes_extensions
-);
-
-/* STRING BASED FUNCTIONS */
-
-/* ADD EVENT */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_add_event(
-       CSA_service_reference   calendar_service,
-       CSA_string              calendar_address,
-       CSA_string              logon_user,
-       CSA_string              logon_password,
-       CSA_string              attendee,
-       CSA_enum                attendee_priority,
-       CSA_enum                attendee_status,
-       CSA_boolean             attendee_rsvp_requested,
-       CSA_date_time           start_date,
-       CSA_date_time           end_date,
-       CSA_string              organizer,
-       CSA_string              sponsor,
-       CSA_string              summary,
-       CSA_string              description,
-       CSA_string              recurrence_rule,
-       CSA_string              exception_rule,
-       CSA_string              subtype,
-       CSA_enum                classification,
-       CSA_string              delimiters,
-       CSA_string              add_event_extensions
-);
-
-/* ADD TODO */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_add_todo(
-       CSA_service_reference   calendar_service,
-       CSA_string              calendar_address,
-       CSA_string              logon_user,
-       CSA_string              logon_password,
-       CSA_enum                attendee_priority,
-       CSA_enum                attendee_status,
-       CSA_boolean             attendee_rsvp_requested,
-       CSA_date_time           start_date,
-       CSA_date_time           due_date,
-       CSA_uint32              priority,
-       CSA_string              summary,
-       CSA_string              description,
-       CSA_enum                classification,
-       CSA_string              delimiters,
-       CSA_string              add_todo_extensions
-);
-
-/* ADD MEMO */ /* NOT IMPLEMENTED IN THIS RELEASE */
-CSA_return_code
-csa_add_memo(
-       CSA_service_reference   calendar_service,
-       CSA_string              calendar_address,
-       CSA_string              logon_user,
-       CSA_string              logon_password,
-       CSA_date_time           start_date,
-       CSA_string              summary,
-       CSA_string              delimiters,
-       CSA_string              add_memo_extensions
-);
-
-/* RETURN ERROR FLAGS */
-#define        CSA_ERROR_RSV_MASK      ((CSA_return_code)0x0000FFFF)
-#define        CSA_ERROR_IMPL_MASK     ((CSA_return_code)0xFFFF0000)
-
-/* macro to get XAPIA CSA return code */
-#define CSA_X_DT_CSA_RETURN_CODE(c) \
-        ((CSA_return_code)((c) & CSA_ERROR_RSV_MASK))
-
-/* RETURN CODES */
-#define        CSA_SUCCESS                             ((CSA_return_code)0)
-
-#define        CSA_E_AMBIGUOUS_USER                    ((CSA_return_code)1)
-#define CSA_E_CALENDAR_EXISTS                  ((CSA_return_code)2)
-#define CSA_E_CALENDAR_NOT_EXIST               ((CSA_return_code)3)
-#define CSA_E_CALLBACK_NOT_REGISTERED          ((CSA_return_code)4)
-#define        CSA_E_DISK_FULL                         ((CSA_return_code)5)
-#define        CSA_E_FAILURE                           ((CSA_return_code)6)
-#define        CSA_E_FILE_EXIST                        ((CSA_return_code)7)
-#define        CSA_E_FILE_NOT_EXIST                    ((CSA_return_code)8)
-#define        CSA_E_INSUFFICIENT_MEMORY               ((CSA_return_code)9)
-#define        CSA_E_INVALID_ATTRIBUTE                 ((CSA_return_code)10)
-#define        CSA_E_INVALID_ATTRIBUTE_VALUE           ((CSA_return_code)11)
-#define        CSA_E_INVALID_CALENDAR_SERVICE          ((CSA_return_code)12)
-#define        CSA_E_INVALID_CONFIGURATION             ((CSA_return_code)13)
-#define        CSA_E_INVALID_DATA_EXT                  ((CSA_return_code)14)
-#define        CSA_E_INVALID_DATE_TIME                 ((CSA_return_code)15)
-#define        CSA_E_INVALID_ENTRY_HANDLE              ((CSA_return_code)16)
-#define        CSA_E_INVALID_ENUM                      ((CSA_return_code)17)
-#define        CSA_E_INVALID_FILE_NAME                 ((CSA_return_code)18)
-#define        CSA_E_INVALID_FLAG                      ((CSA_return_code)19)
-#define        CSA_E_INVALID_FUNCTION_EXT              ((CSA_return_code)20)
-#define        CSA_E_INVALID_MEMORY                    ((CSA_return_code)21)
-#define        CSA_E_INVALID_PARAMETER                 ((CSA_return_code)22)
-#define        CSA_E_INVALID_PASSWORD                  ((CSA_return_code)23)
-#define        CSA_E_INVALID_RULE                      ((CSA_return_code)24)
-#define        CSA_E_INVALID_SESSION_HANDLE            ((CSA_return_code)25)
-#define        CSA_E_INVALID_USER                      ((CSA_return_code)26)
-#define        CSA_E_NO_AUTHORITY                      ((CSA_return_code)27)
-#define        CSA_E_NOT_SUPPORTED                     ((CSA_return_code)28)
-#define        CSA_E_PASSWORD_REQUIRED                 ((CSA_return_code)29)
-#define        CSA_E_READONLY                          ((CSA_return_code)30)
-#define        CSA_E_SERVICE_UNAVAILABLE               ((CSA_return_code)31)
-#define        CSA_E_TEXT_TOO_LARGE                    ((CSA_return_code)32)
-#define        CSA_E_TOO_MANY_USERS                    ((CSA_return_code)33)
-#define        CSA_E_UNABLE_TO_OPEN_FILE               ((CSA_return_code)34)
-#define        CSA_E_UNSUPPORTED_ATTRIBUTE             ((CSA_return_code)35)
-#define        CSA_E_UNSUPPORTED_CHARACTER_SET         ((CSA_return_code)36)
-#define        CSA_E_UNSUPPORTED_DATA_EXT              ((CSA_return_code)37)
-#define        CSA_E_UNSUPPORTED_ENUM                  ((CSA_return_code)38)
-#define        CSA_E_UNSUPPORTED_FLAG                  ((CSA_return_code)39)
-#define        CSA_E_UNSUPPORTED_FUNCTION_EXT          ((CSA_return_code)40)
-#define        CSA_E_UNSUPPORTED_PARAMETER             ((CSA_return_code)41)
-#define        CSA_E_UNSUPPORTED_VERSION               ((CSA_return_code)42)
-#define        CSA_E_USER_NOT_FOUND                    ((CSA_return_code)43)
-#define        CSA_E_TIME_ONLY                         ((CSA_return_code)44)
-
-#define CSA_X_DT_E_BACKING_STORE_PROBLEM       ((CSA_return_code)0x900001F)
-#define CSA_X_DT_E_ENTRY_NOT_FOUND             ((CSA_return_code)0x9010010)
-#define CSA_X_DT_E_INVALID_SERVER_LOCATION     ((CSA_return_code)0x902000C)
-#define CSA_X_DT_E_SERVER_TIMEOUT              ((CSA_return_code)0x903001F)
-#define CSA_X_DT_E_SERVICE_NOT_REGISTERED      ((CSA_return_code)0x904001F)
-
-/* CALENDAR ATTRIBUTES */
-
-extern char *_CSA_calendar_attribute_names[];
-
-/* CALENDAR ATTRIBUTE NAMES */
-
-#define CSA_CAL_ATTR_ACCESS_LIST_I     1
-#define CSA_CAL_ATTR_ACCESS_LIST \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_ACCESS_LIST_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Access List//EN" */
-
-#define CSA_CAL_ATTR_CALENDAR_NAME_I   2
-#define CSA_CAL_ATTR_CALENDAR_NAME \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_NAME_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Name//EN" */
-
-#define CSA_CAL_ATTR_CALENDAR_OWNER_I  3
-#define CSA_CAL_ATTR_CALENDAR_OWNER \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_OWNER_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Owner//EN" */
-
-#define CSA_CAL_ATTR_CALENDAR_SIZE_I   4
-#define CSA_CAL_ATTR_CALENDAR_SIZE \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CALENDAR_SIZE_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Calendar Size//EN" */
-
-#define CSA_CAL_ATTR_CHARACTER_SET_I   5
-#define CSA_CAL_ATTR_CHARACTER_SET \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_CHARACTER_SET_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Character Set//EN" */
-
-#define CSA_CAL_ATTR_COUNTRY_I         6
-#define CSA_CAL_ATTR_COUNTRY \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_COUNTRY_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Country//EN" */
-
-#define CSA_CAL_ATTR_DATE_CREATED_I    7
-#define CSA_CAL_ATTR_DATE_CREATED \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_DATE_CREATED_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Date Created//EN" */
-
-#define CSA_CAL_ATTR_LANGUAGE_I                8
-#define CSA_CAL_ATTR_LANGUAGE \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_LANGUAGE_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Language//EN" */
-
-#define CSA_CAL_ATTR_NUMBER_ENTRIES_I  9
-#define CSA_CAL_ATTR_NUMBER_ENTRIES \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_NUMBER_ENTRIES_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Number Entries//EN" */
-
-#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I      10
-#define CSA_CAL_ATTR_PRODUCT_IDENTIFIER \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_PRODUCT_IDENTIFIER_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Product Identifier//EN" */
-
-#define CSA_CAL_ATTR_TIME_ZONE_I       11
-#define CSA_CAL_ATTR_TIME_ZONE \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_TIME_ZONE_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Time Zone//EN" */
-
-#define CSA_CAL_ATTR_VERSION_I         12
-#define CSA_CAL_ATTR_VERSION \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_VERSION_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Version//EN" */
-
-#define CSA_CAL_ATTR_WORK_SCHEDULE_I   13
-#define CSA_CAL_ATTR_WORK_SCHEDULE \
-        _CSA_calendar_attribute_names[CSA_CAL_ATTR_WORK_SCHEDULE_I]
-  /* "-//XAPIA/CSA/CALATTR//NONSGML Work Schedule//EN" */
-
-#define CSA_X_DT_CAL_ATTR_SERVER_VERSION_I     14
-#define CSA_X_DT_CAL_ATTR_SERVER_VERSION \
-        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_SERVER_VERSION_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Server Version//EN" */
-
-#define CSA_X_DT_CAL_ATTR_DATA_VERSION_I       15
-#define CSA_X_DT_CAL_ATTR_DATA_VERSION \
-        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_DATA_VERSION_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Data Version//EN" */
-
-#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I      16
-#define CSA_X_DT_CAL_ATTR_CAL_DELIMITER \
-        _CSA_calendar_attribute_names[CSA_X_DT_CAL_ATTR_CAL_DELIMITER_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/CALATTR//NONSGML Calendar Delimiter//EN" */
-
-
-/* ENTRY ATTRIBUTES */
-
-extern char *_CSA_entry_attribute_names[];
-
-/* ENTRY ATTRIBUTES NAMES */
-
-#define CSA_ENTRY_ATTR_ATTENDEE_LIST_I         1
-#define CSA_ENTRY_ATTR_ATTENDEE_LIST \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ATTENDEE_LIST_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Attendee List//EN" */
-
-#define CSA_ENTRY_ATTR_AUDIO_REMINDER_I        2
-#define CSA_ENTRY_ATTR_AUDIO_REMINDER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_AUDIO_REMINDER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Audio Reminder//EN" */
-
-#define CSA_ENTRY_ATTR_CLASSIFICATION_I                3
-#define CSA_ENTRY_ATTR_CLASSIFICATION \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_CLASSIFICATION_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Classification//EN" */
-
-#define CSA_ENTRY_ATTR_DATE_COMPLETED_I                4
-#define CSA_ENTRY_ATTR_DATE_COMPLETED \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_COMPLETED_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Completed//EN" */
-
-#define CSA_ENTRY_ATTR_DATE_CREATED_I          5
-#define CSA_ENTRY_ATTR_DATE_CREATED \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DATE_CREATED_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Date Created//EN" */
-
-#define CSA_ENTRY_ATTR_DESCRIPTION_I           6
-#define CSA_ENTRY_ATTR_DESCRIPTION \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DESCRIPTION_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Description//EN" */
-
-#define CSA_ENTRY_ATTR_DUE_DATE_I              7
-#define CSA_ENTRY_ATTR_DUE_DATE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_DUE_DATE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Due Date//EN" */
-
-#define CSA_ENTRY_ATTR_END_DATE_I              8
-#define CSA_ENTRY_ATTR_END_DATE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_END_DATE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML End Date//EN" */
-
-#define CSA_ENTRY_ATTR_EXCEPTION_DATES_I       9
-#define CSA_ENTRY_ATTR_EXCEPTION_DATES \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_DATES_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Dates//EN" */
-
-#define CSA_ENTRY_ATTR_EXCEPTION_RULE_I                10
-#define CSA_ENTRY_ATTR_EXCEPTION_RULE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_EXCEPTION_RULE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Exception Rule//EN" */
-
-#define CSA_ENTRY_ATTR_FLASHING_REMINDER_I     11
-#define CSA_ENTRY_ATTR_FLASHING_REMINDER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_FLASHING_REMINDER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Flashing Reminder//EN" */
-
-#define CSA_ENTRY_ATTR_LAST_UPDATE_I           12
-#define CSA_ENTRY_ATTR_LAST_UPDATE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_LAST_UPDATE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Last Update//EN" */
-
-#define CSA_ENTRY_ATTR_MAIL_REMINDER_I         13
-#define CSA_ENTRY_ATTR_MAIL_REMINDER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_MAIL_REMINDER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Mail Reminder//EN" */
-
-#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I    14
-#define CSA_ENTRY_ATTR_NUMBER_RECURRENCES \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_NUMBER_RECURRENCES_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Number Recurrences//EN" */
-
-#define CSA_ENTRY_ATTR_ORGANIZER_I             15
-#define CSA_ENTRY_ATTR_ORGANIZER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_ORGANIZER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Organizer//EN" */
-
-#define CSA_ENTRY_ATTR_POPUP_REMINDER_I                16
-#define CSA_ENTRY_ATTR_POPUP_REMINDER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_POPUP_REMINDER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Popup Reminder//EN" */
-
-#define CSA_ENTRY_ATTR_PRIORITY_I              17
-#define CSA_ENTRY_ATTR_PRIORITY \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_PRIORITY_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Priority//EN" */
-
-#define CSA_ENTRY_ATTR_RECURRENCE_RULE_I       18
-#define CSA_ENTRY_ATTR_RECURRENCE_RULE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRENCE_RULE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurrence Rule//EN" */
-
-#define CSA_ENTRY_ATTR_RECURRING_DATES_I       19
-#define CSA_ENTRY_ATTR_RECURRING_DATES \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_RECURRING_DATES_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Recurring Dates//EN" */
-
-#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I  20
-#define CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_REFERENCE_IDENTIFIER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Reference Identifier//EN" */
-
-#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I       21
-#define CSA_ENTRY_ATTR_SEQUENCE_NUMBER \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SEQUENCE_NUMBER_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sequence Number//EN" */
-
-#define CSA_ENTRY_ATTR_SPONSOR_I               22
-#define CSA_ENTRY_ATTR_SPONSOR \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SPONSOR_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Sponsor//EN" */
-
-#define CSA_ENTRY_ATTR_START_DATE_I            23
-#define CSA_ENTRY_ATTR_START_DATE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_START_DATE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Start Date//EN" */
-
-#define CSA_ENTRY_ATTR_STATUS_I                        24
-#define CSA_ENTRY_ATTR_STATUS \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_STATUS_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Status//EN" */
-
-#define CSA_ENTRY_ATTR_SUBTYPE_I               25
-#define CSA_ENTRY_ATTR_SUBTYPE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUBTYPE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Subtype//EN" */
-
-#define CSA_ENTRY_ATTR_SUMMARY_I               26
-#define CSA_ENTRY_ATTR_SUMMARY \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_SUMMARY_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Summary//EN" */
-
-#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I     27
-#define CSA_ENTRY_ATTR_TIME_TRANSPARENCY \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TIME_TRANSPARENCY_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Time Transparency//EN" */
-
-#define CSA_ENTRY_ATTR_TYPE_I                  28
-#define CSA_ENTRY_ATTR_TYPE \
-        _CSA_entry_attribute_names[CSA_ENTRY_ATTR_TYPE_I]
-  /* "-//XAPIA/CSA/ENTRYATTR//NONSGML Type//EN" */
-
-/* cde defined entry attributes */
-#define CSA_X_DT_ENTRY_ATTR_SHOWTIME_I                 29
-#define CSA_X_DT_ENTRY_ATTR_SHOWTIME \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SHOWTIME_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Show Time//EN" */
-
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I              30
-#define        CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Type//EN" */
-
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I             31
-#define        CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Times//EN" */
-
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I          32
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_INTERVAL_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Interval//EN" */
-
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I    33
-#define CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_REPEAT_OCCURRENCE_NUM_I]
-  /*"-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Repeat Occurrence Number//EN"*/
-
-#define CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I                34
-#define        CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_SEQUENCE_END_DATE_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Sequence End Date//EN" */
-
-#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I          35
-#define CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER \
-        _CSA_entry_attribute_names[CSA_X_DT_ENTRY_ATTR_ENTRY_DELIMITER_I]
-  /* "-//CDE_XAPIA_PRIVATE/CSA/ENTRYATTR//NONSGML Entry Delimiter//EN" */
-
-/*
- * values for entry attribute CSA_ENTRY_ATTR_TYPE
- */
-
-#define        CSA_TYPE_EVENT          ((CSA_enum)0)
-#define        CSA_TYPE_TODO           ((CSA_enum)1)
-#define        CSA_TYPE_MEMO           ((CSA_enum)2)
-#define CSA_X_DT_TYPE_OTHER    ((CSA_enum)900)
-
-/*
- * values for entry attribute CSA_ENTRY_ATTR_SUBTYPE
- */
-
-extern char *_CSA_entry_subtype_values[];
-
-#define        CSA_SUBTYPE_APPOINTMENT_I       0
-#define        CSA_SUBTYPE_APPOINTMENT \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_APPOINTMENT_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Appointment//EN" */
-
-#define        CSA_SUBTYPE_CLASS_I             1
-#define        CSA_SUBTYPE_CLASS \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_CLASS_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Class//EN" */
-
-#define        CSA_SUBTYPE_HOLIDAY_I           2
-#define        CSA_SUBTYPE_HOLIDAY \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_HOLIDAY_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Holiday//EN" */
-
-#define CSA_SUBTYPE_MEETING_I          3
-#define CSA_SUBTYPE_MEETING \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_MEETING_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Meeting//EN" */
-
-#define        CSA_SUBTYPE_MISCELLANEOUS_I     4
-#define        CSA_SUBTYPE_MISCELLANEOUS \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_MISCELLANEOUS_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Miscellaneous//EN" */
-
-#define        CSA_SUBTYPE_PHONE_CALL_I        5
-#define        CSA_SUBTYPE_PHONE_CALL \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_PHONE_CALL_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Phone Call//EN" */
-
-#define        CSA_SUBTYPE_SICK_DAY_I          6
-#define        CSA_SUBTYPE_SICK_DAY \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_SICK_DAY_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Sick Day//EN" */
-
-#define        CSA_SUBTYPE_SPECIAL_OCCASION_I  7
-#define        CSA_SUBTYPE_SPECIAL_OCCASION \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_SPECIAL_OCCASION_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Special Occasion//EN" */
-
-#define        CSA_SUBTYPE_TRAVEL_I            8
-#define        CSA_SUBTYPE_TRAVEL \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_TRAVEL_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Travel//EN" */
-
-#define        CSA_SUBTYPE_VACATION_I          9
-#define        CSA_SUBTYPE_VACATION \
-        _CSA_entry_subtype_values[CSA_SUBTYPE_VACATION_I]
-  /* "-//XAPIA/CSA/SUBTYPE//NONSGML Subtype Vacation//EN" */
-
-/*
- * special value for CSA_X_DT_ENTRY_ATTR_REPEAT_TIMES
- */
-
-#define        CSA_X_DT_DT_REPEAT_FOREVER      0
-
-/*
- * Values for entry attribute CSA_X_DT_ENTRY_ATTR_REPEAT_TYPE
- */
-
-#define        CSA_X_DT_REPEAT_ONETIME                 ((CSA_enum)0)
-#define        CSA_X_DT_REPEAT_DAILY                   ((CSA_enum)1)
-#define        CSA_X_DT_REPEAT_WEEKLY                  ((CSA_enum)2)
-#define        CSA_X_DT_REPEAT_BIWEEKLY                ((CSA_enum)3)
-#define        CSA_X_DT_REPEAT_MONTHLY_BY_WEEKDAY      ((CSA_enum)4)
-#define        CSA_X_DT_REPEAT_MONTHLY_BY_DATE         ((CSA_enum)5)
-#define        CSA_X_DT_REPEAT_YEARLY                  ((CSA_enum)6)
-#define        CSA_X_DT_REPEAT_EVERY_NDAY              ((CSA_enum)7)
-#define        CSA_X_DT_REPEAT_EVERY_NWEEK             ((CSA_enum)8)
-#define        CSA_X_DT_REPEAT_EVERY_NMONTH            ((CSA_enum)9)
-#define        CSA_X_DT_REPEAT_MON_TO_FRI              ((CSA_enum)10)
-#define        CSA_X_DT_REPEAT_MONWEDFRI               ((CSA_enum)11)
-#define        CSA_X_DT_REPEAT_TUETHUR                 ((CSA_enum)12)
-#define        CSA_X_DT_REPEAT_WEEKDAYCOMBO            ((CSA_enum)13)
-#define        CSA_X_DT_REPEAT_OTHER                   ((CSA_enum)14)
-#define        CSA_X_DT_REPEAT_OTHER_WEEKLY            ((CSA_enum)15)
-#define        CSA_X_DT_REPEAT_OTHER_MONTHLY           ((CSA_enum)16)
-#define        CSA_X_DT_REPEAT_OTHER_YEARLY            ((CSA_enum)17)
-
-/* COMMON EXTENSIONS DECLARATIONS */
-
-/* EXTENSION SET ID */
-
-/* Common Extension Set */
-#define        CSA_XS_COM                      ((CSA_uint32)0)
-
-/* Bilateral Extension Set */
-#define        CSA_XS_BLT                      ((CSA_uint32)256)
-
-/* FUNCTION EXTENSIONS */
-
-/* Query for extension support in implementation */
-
-#define        CSA_X_COM_SUPPORT_EXT           ((CSA_uint32)1)
-
-typedef struct CSA_TAG_XCOM {
-       CSA_uint32      item_code;
-       CSA_flags       flags;
-} CSA_X_COM_support;
-
-#define        CSA_X_COM_SUPPORTED             ((CSA_flags)0x1)
-#define        CSA_X_COM_NOT_SUPPORTED         ((CSA_flags)0x2)
-#define        CSA_X_COM_DATA_EXT_SUPPORTED    ((CSA_flags)0x4)
-#define        CSA_X_COM_FUNC_EXT_SUPPORTED    ((CSA_flags)0x8)
-#define        CSA_X_COM_SUP_EXCLUDE           ((CSA_flags)0x10)
-
-/* UI_ID EXTENSION */
-
-#define CSA_X_UI_ID_EXT                        ((CSA_uint32)2)
-
-/* Extension Flags */
-#define CSA_X_LOGON_UI_ALLOWED         ((CSA_flags)0x1)
-#define CSA_X_ERROR_UI_ALLOWED         ((CSA_flags)0x2)
-#define CSA_X_LOOKUP_RESOLVE_UI                ((CSA_flags)0x4)
-#define CSA_X_LOOKUP_DETAILS_UI                ((CSA_flags)0x8)
-#define CSA_X_LOOKUP_ADDRESSING_UI     ((CSA_flags)0x10)
-#define CSA_X_ADD_DEFINE_ENTRY_UI      ((CSA_flags)0x20)
-
-/* Extension Return Codes */
-#define        CSA_X_E_INVALID_UI_ID           ((CSA_return_code)1025)
-#define        CSA_X_E_LOGON_FAILURE           ((CSA_return_code)1026)
-#define        CSA_X_E_USER_CANCEL             ((CSA_return_code)1027)
-
-/* XT APPLICATION CONTEXT EXTENSION */
-
-#define CSA_X_XT_APP_CONTEXT_EXT       ((CSA_uint32)3)
-
-/* Get User access extension */
-#define        CSA_XS_DT                       ((CSA_uint32)900)
-#define        CSA_X_DT_GET_USER_ACCESS_EXT    ((CSA_uint32)901)
-
-#endif
-
diff --git a/cde/lib/pam/Makefile.am b/cde/lib/pam/Makefile.am
new file mode 100644 (file)
index 0000000..7391320
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = libpam pam_modules
diff --git a/cde/lib/pam/pam_modules/Makefile.am b/cde/lib/pam/pam_modules/Makefile.am
new file mode 100644 (file)
index 0000000..2d0c0ad
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = unix sample dial_auth rhosts_auth
diff --git a/cde/lib/tt/Makefile.am b/cde/lib/tt/Makefile.am
new file mode 100644 (file)
index 0000000..41e21f8
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = mini_isam lib slib bin
diff --git a/cde/lib/tt/bin/Makefile.am b/cde/lib/tt/bin/Makefile.am
new file mode 100644 (file)
index 0000000..a56df4c
--- /dev/null
@@ -0,0 +1,4 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = dbck shell scripts tt_type_comp ttauth ttdbserverd ttsession tttar \
+         tttrace
diff --git a/cde/lib/tt/bin/dbck/Makefile.am b/cde/lib/tt/bin/dbck/Makefile.am
new file mode 100644 (file)
index 0000000..30308e0
--- /dev/null
@@ -0,0 +1,16 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = ttdbck
+
+ttdbck_LDADD = @LIBTT@ ../../slib/libstt.a ../../mini_isam/libisam.a \
+       $(XTOOLLIB) 
+
+ttdbck_CXXFLAGS = -I../../slib -I../../lib -I../../mini_isam \
+                  $(TT_VERSION_DEFINE)
+
+ttdbck_SOURCES = binkey.C        binkey_utils.C  common.C \
+                options.C       options_tt.C    prop.C \
+                prop_utils.C    spec.C          spec_repair.C \
+                spec_utils.C    ttdbck.C
diff --git a/cde/lib/tt/bin/scripts/Makefile.am b/cde/lib/tt/bin/scripts/Makefile.am
new file mode 100644 (file)
index 0000000..490104a
--- /dev/null
@@ -0,0 +1,15 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+noinst_SCRIPTS = ttce2xdr
+BUILT_SOURCES = ttce2xdr
+CLEANFILES = ttce2xdr
+
+AM_CPPFLAGS = $(TT_VERSION_DEFINE)
+
+
+ttce2xdr: ttce2xdr.cpp
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
diff --git a/cde/lib/tt/bin/shell/Makefile.am b/cde/lib/tt/bin/shell/Makefile.am
new file mode 100644 (file)
index 0000000..429f753
--- /dev/null
@@ -0,0 +1,21 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = ttmv ttrm ttcp ttrmdir
+
+AM_CXXFLAGS = -I../../lib $(TT_VERSION_DEFINE)
+
+LDADD = @LIBTT@ $(XTOOLLIB)
+
+if SOLARIS
+LDADD += -ldl -lintl -lsocket -lnsl
+endif
+
+ttmv_SOURCES = ttmv.C mover.C
+
+ttrm_SOURCES = ttrm.C remover.C
+
+ttcp_SOURCES = ttcp.C copier.C
+
+ttrmdir_SOURCES = ttrm.C remover.C
index 176184b1b074789e23537a3b5d2da1df3d4457b4..f48aedca43005b390bdf44471022ea433ecd68e6 100644 (file)
@@ -41,7 +41,7 @@
 #include <sys/wait.h>
 #include <sys/param.h>
 #include <errno.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_path.h"
 #include "util/tt_gettext.h"
 #include "util/copyright.h"
index e645b9ad47dc075267a3f4c42ed6a26855e7a454..b669357629c29568623a47fab587cb702d4626d8 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _COPIER_H
 #define _COPIER_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 class copier : public _Tt_object {
index 94c72ea13aa11ac94f67ff94a556d7055632377a..7a70a0973d20e2491812ab1fa1871bd81c1a65b9 100644 (file)
@@ -46,7 +46,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_gettext.h"
 #include "util/copyright.h"
 #include "mover.h"
index 780cb200208246c907508df5efaf4ad9b6470296..3a38ddbf02a788e3966e62038c35b11f56e2c4c4 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _MOVER_H
 #define _MOVER_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 class mover : public _Tt_object {
index 91b1b5db3de0dc1cedf1c92042c6bfd43832c979..ff74b9f1c36a1d43b40838e91fcae29750f609e6 100644 (file)
@@ -38,7 +38,7 @@
 #if defined(OPT_BUG_SUNOS_4)
 #      include <stdlib.h>
 #endif
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_path.h>
 #include <util/tt_enumname.h>
 #include <util/copyright.h>
index 69a6b85a93e479f98a9d75965951bd92bb7d991a..6dc385d517fb390e94861a99b74ba4ad45e3f75d 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _RCOPIER_H
 #define _RCOPIER_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 class rpath : public _Tt_object {
index bb0c92146ae27c91fdf0dc2fdbe6cf0b3f1172a5..d677c9b2a59fea73862c4e71360394c90e4929a0 100644 (file)
@@ -46,7 +46,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_path.h"
 #include "util/tt_gettext.h"
 #include "util/copyright.h"
index d5f6a7632e0c3aa47deaeb8585f5747f169451f4..0b8b6ba8c5d21c5b1bfad1caa84229898a914909 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _REMOVER_H
 #define _REMOVER_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 class remover : public _Tt_object {
diff --git a/cde/lib/tt/bin/tt_type_comp/Makefile.am b/cde/lib/tt/bin/tt_type_comp/Makefile.am
new file mode 100644 (file)
index 0000000..1c9a73f
--- /dev/null
@@ -0,0 +1,26 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+BUILT_SOURCES = mp_types_gram.h
+CLEANFILES = mp_types_gram.h
+
+mp_types_gram.h:
+       $(RM) mp_types_gram.h
+       $(LN_S) frozen.mp_types_gram.h mp_types_gram.h
+
+bin_PROGRAMS = tt_type_comp
+
+tt_type_comp_CXXFLAGS = -I../../lib -I../../slib \
+                       $(TT_VERSION_DEFINE) -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
+
+tt_type_comp_SOURCES = mp_type_comp.C        mp_types_table.C \
+               frozen.mp_types_lex.C frozen.mp_types_gram.C
+
+tt_type_comp_LDADD = $(LIBTT) ../../slib/libstt.a $(XTOOLLIB)
+
+if SOLARIS
+tt_type_comp_LDADD += $(XTOOLLIB) -ldl -lintl -lsocket -lnsl
+endif
+
+frozen.mp_types_lex.o: frozen.mp_types_gram.h
diff --git a/cde/lib/tt/bin/ttauth/Makefile.am b/cde/lib/tt/bin/ttauth/Makefile.am
new file mode 100644 (file)
index 0000000..f88d433
--- /dev/null
@@ -0,0 +1,21 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = ttauth
+
+ttauth_CFLAGS = -I../../slib -I../../lib -DSIGNALRETURNSINT
+
+ttauth_LDADD = @LIBTT@ $(X_LIBS)
+
+if LINUX
+ttauth_LDADD += $(TIRPCLIB) $(XTOOLLIB)
+endif
+
+if SOLARIS
+ttauth_LDADD += $(XTOOLLIB) -ldl -lintl -lsocket -lnsl
+endif
+
+if BSD
+ttauth_LDADD += $(XTOOLLIB)
+endif
+
+ttauth_SOURCES = ttauth.c process.c
index cffe65c25a46c150e1c6fd686e67b0e9b4848b92..99a5b15ced2a12f96596a4eca7eca7452edf20f9 100644 (file)
@@ -61,7 +61,7 @@ extern int errno;
 #endif
 #include "ttauth.h"
 #include "api/c/api_auth.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 #include <signal.h>
 
index 2453cc9f7a985de70ff6b44caf4457d75551d8ce..10e0e95b5bcac84206332d149a0585a4def13407 100644 (file)
@@ -50,7 +50,7 @@ in this Software without prior written authorization from The Open Group.
  */
 
 #include "ttauth.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 
 /*
diff --git a/cde/lib/tt/bin/ttdbserverd/Makefile.am b/cde/lib/tt/bin/ttdbserverd/Makefile.am
new file mode 100644 (file)
index 0000000..087a8a3
--- /dev/null
@@ -0,0 +1,41 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = rpc.ttdbserver
+
+rpc_ttdbserver_CXXFLAGS = -I../../slib -I../../lib -I../../mini_isam \
+                       $(TIRPC_DEFINES) $(TT_VERSION_DEFINE)
+
+rpc_ttdbserver_LDADD = @LIBTT@ $(X_LIBS) ../../slib/libstt.a \
+                      ../../mini_isam/libisam.a
+
+if LINUX
+rpc_ttdbserver_LDADD += $(TIRPCLIB) $(XTOOLLIB)
+endif
+
+if SOLARIS
+rpc_ttdbserver_LDADD += $(XTOOLLIB) -ldl -lintl -lsocket -lnsl
+endif
+
+if BSD
+rpc_ttdbserver_LDADD += $(XTOOLLIB)
+endif
+
+rpc_ttdbserver_SOURCES = db_server_functions.C \
+                        db_server_svc.C \
+                        dm_access_cache.C \
+                        dm_server.C \
+                        tt_db_message_info_utils.C \
+                        tt_db_msg_q_lock.C \
+                        tt_db_msg_q_lock_entry_utils.C \
+                        tt_db_partition_global_map_ref.C \
+                        tt_db_partition_redirection_map.C \
+                        tt_db_server_db.C \
+                        tt_db_server_db_utils.C \
+                        tt_isam_file.C \
+                        tt_isam_file_utils.C \
+                        tt_isam_key_descriptor.C \
+                        tt_isam_key_descriptor_utils.C \
+                        tt_isam_record.C \
+                        tt_isam_record_utils.C
index d71b4f55fd3c0198f834b8cb2a0140ae5881f80f..10f3270ad753c9cce5e6a76421a13819ae38f8b2 100644 (file)
@@ -45,7 +45,7 @@
 #include <unistd.h>
 #include <nl_types.h>
 
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_file_system.h"
 #include "util/tt_file_system_entry.h"
 #include "util/tt_path.h"
diff --git a/cde/lib/tt/bin/ttsession/Makefile.am b/cde/lib/tt/bin/ttsession/Makefile.am
new file mode 100644 (file)
index 0000000..cad1b87
--- /dev/null
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = ttsession
+
+ttsession_CXXFLAGS = -I../../slib -I../../lib $(TT_VERSION_DEFINE)
+
+ttsession_LDADD = @LIBTT@ $(X_LIBS) ../../slib/libstt.a
+
+if LINUX
+ttsession_LDADD += $(TIRPCLIB) $(XTOOLLIB)
+endif
+
+if SOLARIS
+ttsession_LDADD += $(XTOOLLIB) -ldl -lintl -lsocket -lnsl
+endif
+
+if BSD
+ttsession_LDADD += $(XTOOLLIB)
+endif
+
+ttsession_SOURCES = mp_server.C
diff --git a/cde/lib/tt/bin/tttar/Makefile.am b/cde/lib/tt/bin/tttar/Makefile.am
new file mode 100644 (file)
index 0000000..1703287
--- /dev/null
@@ -0,0 +1,22 @@
+MAINTAINERCLENAFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = tttar
+
+tttar_CXXFLAGS = -I../../lib $(TT_VERSION_DEFINE)
+
+tttar_LDADD = @LIBTT@ ../../slib/libstt.a ../../mini_isam/libisam.a \
+       $(XTOOLLIB)
+
+if SOLARIS
+tttar_LDADD += -ldl -lintl -lsocket -lnsl
+endif
+
+tttar_SOURCES = tttar.C \
+               archiver.C \
+               tttar_utils.C \
+               tttar_api.C \
+               tttar_spec.C \
+               tttar_file_utils.C \
+               tttar_string_map.C
index 9c3aa8e5177d7d0339f201f5f18545dfb16599f2..ae97951808b29c40d2936dbb3a5419cd6abda8bd 100644 (file)
@@ -42,7 +42,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/copyright.h"
 #include "util/tt_gettext.h"
 #include "tttar_utils.h"
index d5879631efa0aa6a83a4c7bda846e18e51b2f94e..2919d9158d98b73f2bcfcf1ba6bad8518a870a41 100644 (file)
@@ -35,7 +35,7 @@
 #ifndef _ARCHIVER_H
 #define _ARCHIVER_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 #include "tttar_string_map.h"
 
index f24af18a835a1c1aed6e155ae2bb0aad38a86651..e742c3a83a94545b045ea83f0d5b5eaa5f573a31 100644 (file)
@@ -40,7 +40,7 @@
 #endif
 #include <sys/param.h>
 #include "api/c/api_api.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_path.h"
 #include "util/tt_gettext.h"
 #include "tttar_utils.h"
index cf3574619f7c47dd86da2464938c5318707a5d97..bee2cb13d068fdfbd2443da6f0fcad1032ed1f38 100644 (file)
@@ -37,7 +37,7 @@
 #else
 #include <osfcn.h>
 #endif
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_iostream.h"
 #include "tttar_utils.h"
 #include "tttar_spec.h"
index a0d4aaa4d7824e4a06529e0ce15feb05cb3cbf0c..bb27b63572adfb3239870cb361490c147a867b64 100644 (file)
@@ -34,7 +34,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_enumname.h>
 #include "tttar_utils.h"
 
index bd917a2c81e27cbe902d37eeae50002b08ae04ee..a0c6327f7f495a60744b4fbdb54b1fe96d5709a3 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef        _LSTAR_UTILS_H
 #define        _LSTAR_UTILS_H
 
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 
diff --git a/cde/lib/tt/bin/tttrace/Makefile.am b/cde/lib/tt/bin/tttrace/Makefile.am
new file mode 100644 (file)
index 0000000..8584a80
--- /dev/null
@@ -0,0 +1,15 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+bin_PROGRAMS = tttrace
+
+tttrace_CXXFLAGS = -I../../lib
+
+tttrace_LDADD = @LIBTT@ $(XTOOLLIB)
+
+if SOLARIS
+tttrace_LDADD += -ldl -lintl -lsocket -lnsl
+endif
+
+tttrace_SOURCES = tttrace.C tttrace_objs.C
index 346bfc93fcce9b62208b40175e6dc9c167d33734..8012996ad32f592b206b2e520614ec44be83519c 100644 (file)
@@ -46,7 +46,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_string.h"
 #include "util/tt_port.h"
 #include "util/tt_gettext.h"
diff --git a/cde/lib/tt/lib/Makefile.am b/cde/lib/tt/lib/Makefile.am
new file mode 100644 (file)
index 0000000..ebb9eee
--- /dev/null
@@ -0,0 +1,26 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = api db mp util tttk
+
+include ../tooltalk.inc
+
+lib_LTLIBRARIES = libtt.la
+
+if AIX
+libtt_la_SOURCES = realpath.c
+else
+libtt_la_SOURCES =
+endif
+
+libtt_la_LIBADD = api/c/libapi.la api/dnd/libdnd.la db/libdb.la mp/libmp.la \
+                 util/libutil.la tttk/libtttk.la -lstdc++
+
+if SOLARIS
+libtt_la_LIBADD += -lnsl -lsocket -lintl -ldl -lc -lw
+endif
+
+if LINUX
+libtt_la_LIBADD += $(TIRPCLIB)
+endif
+
+libtt_la_LDFLAGS = -version-info 2:1:0
diff --git a/cde/lib/tt/lib/api/Makefile.am b/cde/lib/tt/lib/api/Makefile.am
new file mode 100644 (file)
index 0000000..be2f80b
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = c dnd
diff --git a/cde/lib/tt/lib/api/c/Makefile.am b/cde/lib/tt/lib/api/c/Makefile.am
new file mode 100644 (file)
index 0000000..55dbfd3
--- /dev/null
@@ -0,0 +1,18 @@
+ttdir = ${includedir}/Tt
+
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../tooltalk.inc
+
+noinst_LTLIBRARIES = libapi.la
+
+libapi_la_CXXFLAGS = -I../../../lib
+
+libapi_la_SOURCES = api_api.C           api_auth.C \
+        api_default.C       api_error.C \
+        api_file.C          api_filemap.C       api_handle.C \
+        api_message.C       api_mp.C            api_mp_io.C \
+        api_mp_otype.C      api_objid_spec.C    api_pattern.C \
+        api_session_prop.C  api_spec.C          api_spec_map_ref.C \
+        api_storage.C       api_typecb.C        api_typecb_utils.C \
+        api_utils.C         api_xdr.C
index 3f83958f8dca1c36f83f0148b5513c424bb08b6b..0d2074a52aa9643b46e53bc7fc21dded04b1b62e 100644 (file)
@@ -43,7 +43,7 @@
 #include <memory.h>
 #include <errno.h>
 #include "mp/mp_c.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_storage.h"
index 5878113de9f718ea0d92c64961abc6875d898d0c..297c6d79b0a0abdd188e59515c73e8ca5fa32a24 100644 (file)
@@ -35,7 +35,7 @@
  */
 #if !defined(_TT_API_API_H)
 #define _TT_API_API_H
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_string.h"
 extern char _tt_api_status_page[(int)TT_STATUS_LAST];
 
index 1bd4f8fa50b547e6c3fb6d319663fb70ce440d0a..4c9a1a92f6c8451b2e381afb947c3a6e2a016838 100644 (file)
@@ -36,7 +36,7 @@
  * some file named api_mp_*.cc.
  */
 
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_auth.h"
 
 char *
index aff922af9814bea2a9adfe4edecfcc7ee9361e84..a3a4d741d9b5a4ce64c8c2327b33fb3ef0d48e06 100644 (file)
@@ -34,7 +34,7 @@
 #include "db/tt_db_file.h"
 #include "mp/mp_c.h"
 #include "util/tt_path.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include <util/tt_audit.h>
index 454a5e25856717a3fbd35572b1749484bb575e67..c5609add52c115abe8cc8bd0553a4e61b65e6ba5 100644 (file)
@@ -37,7 +37,7 @@
 #define _API_ERROR_H
 
 #include "db/tt_db_results.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 typedef enum api_module {_TT_API_SPEC, // tt_spec_ calls
                         _TT_API_FILE,  // tt_file_ calls
index cd42acca22cdb7376f2170970de19de8ba659251..153eb15fe83e5dc11dc64b885e271e18a517ab9b 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #include "mp/mp_c.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_error.h"
 #include "api/c/api_mp.h"
index 7efdb03b264f89f2c7e7d59c04b6c377c32beb90..2728db50095d2bc78057f479837ede97c1fe4c86 100644 (file)
@@ -43,7 +43,7 @@
 #include "db/tt_db_file.h"
 #include "mp/mp_c.h"
 #include "util/tt_path.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_error.h"
index 3ca3b5494af4775747ce5155d2ea4353569a8632..9537642fbd59814f48fa958384616168f6e556a9 100644 (file)
@@ -39,7 +39,7 @@
 #ifndef _TT_API_FILEMAP_H
 #define _TT_API_FILEMAP_H
 
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_string.h"
 
 class _Tt_api_filename_map : public _Tt_object  {
index 99e7e0dc6502ac00ec4f7d2da83ab44d3fb51f5b..104608ae88cd5a65b7db09148042c881e73082fd 100644 (file)
@@ -38,7 +38,7 @@
 #include "mp/mp_msg_context.h"
 #include "util/tt_path.h"
 #include "util/tt_audit.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_xdr.h"
 #include "api/c/api_mp.h"
index 05f1719d1c5f680320bddca930182b5730c89ea7..87cacc515da0e7e9e6802ef7e18dbb20884ebdd7 100644 (file)
@@ -40,7 +40,7 @@
 #include "db/tt_old_db_partition_map_ref.h"
 #include "mp/mp_c_global.h"
 #include "mp/mp_c.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_handle.h"
index b5d6085eb1d419d8ebfba337ca765e6db8a17edb..c368bc67bb69caeb5f502be1c4acbd687bdfbc0f 100644 (file)
@@ -32,7 +32,7 @@
  */
 #ifndef _TT_API_MP_H
 #define _TT_API_MP_H
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <util/tt_string.h>
 
 
index 7f7f258178e7984777b2c92ddb2c8c8477e68c52..dc3637efff8031240962d0a659c4b8b61abcb95e 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "mp/mp_c.h"
 #include "mp/mp_rpc_interface.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_handle.h"
index dc0e73e34125dca26fb182d0045ee8db53944c88..8c85adc0fb81ec65cf9a8c7532876dfdac1b7380 100644 (file)
@@ -38,7 +38,7 @@
 #include "mp/mp_c.h"
 #include "mp/mp_pat_context.h"
 #include "mp/mp_c_msg_context.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_handle.h"
index 44fce568be0939c2a2c831277047f844ad1f23a6..c2c564ea5f173fcccd4badb2b3755f350b5cb171 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #include "mp/mp_c.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_handle.h"
index 333303235462def8c62d76759fb0e5aaba880595..bade071d1ba4232b44424c050fad082334b27559 100644 (file)
@@ -35,7 +35,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "mp/mp_c.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "api/c/api_mp.h"
 #include "api/c/api_handle.h"
index 293cb5c9cc63e3201c79855b44c3d515c39be8c9..8f75815379c1b38bcf675b97447b785adcf23418 100644 (file)
@@ -41,7 +41,7 @@
 #define _API_TYPECB_H
 
 #include "util/tt_object.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_handle.h"
 
 #if defined(__linux__)
diff --git a/cde/lib/tt/lib/api/c/tt_c.h b/cde/lib/tt/lib/api/c/tt_c.h
deleted file mode 100644 (file)
index d583057..0000000
+++ /dev/null
@@ -1,703 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $TOG: tt_c.h /main/10 1999/09/16 13:46:20 mgreess $ */
-/*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  */
-/*%%  (c) Copyright 1993, 1994 International Business Machines Corp.    */
-/*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   */
-/*%%  (c) Copyright 1993, 1994 Novell, Inc.                             */
-
-/*
- * ToolTalk 1.2 API C language headers.
- */
-
-#ifndef _tt_c_h
-#define _tt_c_h
-
-#include <stdio.h>
-
-/* ToolTalk version - Format:
- *
- * <Major Release #><Minor Release #: 2 digits><Dot Release #: 2 digits>
- *
- * For example:
- *              10100  --> Version  1.1.0
- *             100102  --> Version 10.1.2
- */
-#define TT_VERSION 10300
-
-#if defined(_EXTERN_) && defined(__STDC__)
-#      define _TT_CONST
-#      define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x##name ()
-#else
-#if defined(_EXTERN_)
-#      define _TT_CONST
-#      define _TT_EXTERN_FUNC(type,name,list) extern XS_LVAL x/**/name ()
-#else
-#if defined(_NAMES_)
-#      define _TT_CONST
-#      define _TT_EXTERN_FUNC(type,name,list)name
-#else
-#if defined(_XSCHEME_)
-#      define _TT_CONST const
-#      define _TT_EXTERN_FUNC(type,name,list)type; name; list
-#else
-#if defined(__cplusplus)
-/* C++ 2.0 or later*/
-#      define _TT_CONST const
-#      define _TT_EXTERN_FUNC(type,name,list) extern "C" { type name list; }
-#else
-#if defined(__STDC__) 
-/* ANSI C */
-#      define _TT_CONST const
-#      define _TT_EXTERN_FUNC(type,name,list) type name list;
-#else
-/* Sun C (K&R C, almost) */
-#      define _TT_CONST
-#      define _TT_EXTERN_FUNC(type,name,list) type name();
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-
-#if !defined(_EXTERN_) && !defined(_NAMES_) && !defined(_XSCHEME_) 
-
-#if !defined(_XENUMS_) && !defined(_TYPES_)
-#include <sys/types.h>
-#endif
-
-#include <rpc/types.h>
-#include <rpc/xdr.h>
-
-/* former status 1030 removed, but not used, for backward compatibility. */
-typedef enum tt_status {
-        TT_OK                  = 0,
-        TT_WRN_NOTFOUND                = 1,
-       TT_WRN_STALE_OBJID      = 2,
-        TT_WRN_STOPPED         = 3,
-       TT_WRN_SAME_OBJID       = 4,
-       TT_WRN_START_MESSAGE    = 5,
-       TT_WRN_NOT_ENABLED      = 6,
-       TT_WRN_APPFIRST         = 512,
-       TT_WRN_LAST             = 1024,
-        TT_ERR_CLASS           = 1025,
-        TT_ERR_DBAVAIL                 = 1026,
-        TT_ERR_DBEXIST         = 1027,
-       TT_ERR_FILE             = 1028,
-       TT_ERR_INVALID          = 1029,
-        TT_ERR_MODE            = 1031,
-       TT_ERR_ACCESS           = 1032,
-        TT_ERR_NOMP            = 1033,
-        TT_ERR_NOTHANDLER      = 1034,
-        TT_ERR_NUM             = 1035,
-        TT_ERR_OBJID           = 1036,
-        TT_ERR_OP              = 1037,
-        TT_ERR_OTYPE           = 1038,
-        TT_ERR_ADDRESS         = 1039,
-        TT_ERR_PATH            = 1040,
-        TT_ERR_POINTER         = 1041,
-        TT_ERR_PROCID          = 1042,
-        TT_ERR_PROPLEN         = 1043,
-        TT_ERR_PROPNAME                = 1044,
-        TT_ERR_PTYPE           = 1045,
-        TT_ERR_DISPOSITION     = 1046,
-        TT_ERR_SCOPE           = 1047,
-        TT_ERR_SESSION         = 1048,
-        TT_ERR_VTYPE           = 1049,
-       TT_ERR_NO_VALUE         = 1050,
-       TT_ERR_INTERNAL         = 1051,
-       TT_ERR_READONLY         = 1052,
-       TT_ERR_NO_MATCH         = 1053,
-       TT_ERR_UNIMP            = 1054,
-       TT_ERR_OVERFLOW         = 1055,
-       TT_ERR_PTYPE_START      = 1056,
-       TT_ERR_CATEGORY         = 1057,
-       TT_ERR_DBUPDATE         = 1058,
-       TT_ERR_DBFULL           = 1059,
-       TT_ERR_DBCONSIST        = 1060,
-       TT_ERR_STATE            = 1061,
-       TT_ERR_NOMEM            = 1062,
-       TT_ERR_SLOTNAME         = 1063,
-       TT_ERR_XDR              = 1064,
-       TT_ERR_NETFILE          = 1065,
-       TT_ERR_TOOLATE          = 1066,
-       TT_ERR_AUTHORIZATION    = 1067,
-       TT_ERR_VERSION_MISMATCH = 1068,
-       TT_DESKTOP_             = 1100,
-       TT_DESKTOP_EPERM        = 1101,
-       TT_DESKTOP_ENOENT       = 1102,
-       TT_DESKTOP_EINTR        = 1104,
-       TT_DESKTOP_EIO          = 1105,
-       TT_DESKTOP_EAGAIN       = 1111,
-       TT_DESKTOP_ENOMEM       = 1112,
-       TT_DESKTOP_EACCES       = 1113,
-       TT_DESKTOP_EFAULT       = 1114,
-       TT_DESKTOP_EEXIST       = 1117,
-       TT_DESKTOP_ENODEV       = 1119,
-       TT_DESKTOP_ENOTDIR      = 1120,
-       TT_DESKTOP_EISDIR       = 1121,
-       TT_DESKTOP_EINVAL       = 1122,
-       TT_DESKTOP_ENFILE       = 1123,
-       TT_DESKTOP_EMFILE       = 1124,
-       TT_DESKTOP_ETXTBSY      = 1126,
-       TT_DESKTOP_EFBIG        = 1127,
-       TT_DESKTOP_ENOSPC       = 1128,
-       TT_DESKTOP_EROFS        = 1130,
-       TT_DESKTOP_EMLINK       = 1131,
-       TT_DESKTOP_EPIPE        = 1132,
-       TT_DESKTOP_ENOMSG       = 1135,
-       TT_DESKTOP_EDEADLK      = 1145,
-       TT_DESKTOP_ECANCELED    = 1147,
-       TT_DESKTOP_ENOTSUP      = 1148,
-       TT_DESKTOP_ENODATA      = 1161,
-       TT_DESKTOP_EPROTO       = 1171,
-       TT_DESKTOP_ENOTEMPTY    = 1193,
-       TT_DESKTOP_ETIMEDOUT    = 1245,
-       TT_DESKTOP_EALREADY     = 1249,
-       TT_DESKTOP_UNMODIFIED   = 1299,
-       TT_MEDIA_ERR_SIZE       = 1300,
-       TT_MEDIA_ERR_FORMAT     = 1301,
-       TT_AUTHFILE_ACCESS      = 1400,
-       TT_AUTHFILE_LOCK        = 1401,
-       TT_AUTHFILE_LOCK_TIMEOUT = 1402,
-       TT_AUTHFILE_UNLOCK      = 1403,
-       TT_AUTHFILE_MISSING     = 1404,
-       TT_AUTHFILE_ENTRY_MISSING = 1405,
-       TT_AUTHFILE_WRITE       = 1406,
-       TT_ERR_APPFIRST         = 1536,
-       TT_ERR_LAST             = 2047,
-        TT_STATUS_LAST                 = 2048} Tt_status;
-
-
-typedef enum tt_filter_action {
-       TT_FILTER_CONTINUE      = 0, 
-       TT_FILTER_STOP          = 1, 
-       TT_FILTER_LAST          = 2} Tt_filter_action;
-
-typedef enum tt_callback_action {
-       TT_CALLBACK_CONTINUE    = 0,
-       TT_CALLBACK_PROCESSED   = 1,
-       TT_CALLBACK_LAST        = 2} Tt_callback_action;
-
-typedef enum tt_mode {
-       TT_MODE_UNDEFINED       = 0,
-        TT_IN                  = 1,
-        TT_OUT                 = 2,
-        TT_INOUT               = 3,
-        TT_MODE_LAST           = 4} Tt_mode;
-
-typedef enum tt_scope {
-       TT_SCOPE_NONE           = 0,
-        TT_SESSION             = 1,
-        TT_FILE                        = 2,
-        TT_BOTH                        = 3,
-       TT_FILE_IN_SESSION      = 4} Tt_scope;
-
-typedef enum tt_class {
-       TT_CLASS_UNDEFINED      = 0,
-        TT_NOTICE              = 1,
-        TT_REQUEST             = 2,
-       TT_OFFER                = 3,
-        TT_CLASS_LAST          = 4} Tt_class;
-
-typedef enum tt_category {
-       TT_CATEGORY_UNDEFINED   = 0,
-        TT_OBSERVE             = 1,
-        TT_HANDLE              = 2,
-        TT_HANDLE_PUSH         = 3,
-        TT_HANDLE_ROTATE       = 4,
-        TT_CATEGORY_LAST       = 5} Tt_category;
-
-typedef enum tt_address {
-        TT_PROCEDURE           = 0,
-        TT_OBJECT              = 1,
-       TT_HANDLER              = 2,
-       TT_OTYPE                = 3,
-        TT_ADDRESS_LAST                = 4} Tt_address;
-
-typedef enum tt_disposition {
-        /* Flag bits, not enumerated values */
-       TT_DISCARD              = 0, /* for resetting value */
-        TT_QUEUE               = 1,
-        TT_START               = 2}  Tt_disposition;
-
-typedef enum tt_state {
-        TT_CREATED             = 0,
-        TT_SENT                        = 1,
-        TT_HANDLED             = 2,
-       TT_FAILED               = 3,
-       TT_QUEUED               = 4,
-       TT_STARTED              = 5,
-       TT_REJECTED             = 6,
-       TT_RETURNED             = 7,
-       TT_ACCEPTED             = 8,
-       TT_ABSTAINED            = 9,
-        TT_STATE_LAST          = 10} Tt_state;
-
-typedef enum tt_feature {
-       _TT_FEATURE_MULTITHREADED       = 1,
-       _TT_FEATURE_LAST                = 2} Tt_feature;
-
-#define TT_FEATURE_MULTITHREADED       _TT_FEATURE_MULTITHREADED
-#define TT_FEATURE_LAST                        _TT_FEATURE_LAST
-
-#ifndef _XENUMS_
-
-/*
- * Official properties of ToolTalk objects.
- *
- * ToolTalk should prevent non-root processes from setting the values
- * of properties whose name begins with '_'.
- *
- * Integrators should prevent users from assigning arbitrary strings
- * as values of properties whose name begins with '.'.  That is, "dot"
- * properties are like "dot" files: their existence should normally be
- * hidden from users, and the displaying and setting of their contents
- * should be mediated programatically, sort of like the OpenWindows
- * "props" application mediates .Xdefaults.
- */
-#define TT_OBJECT_NAME_PROPERTY                        ".Name"
-#define TT_OBJECT_OWNER_PROPERTY               "_Owner"
-#define TT_OBJECT_GROUP_PROPERTY               "_Group"
-#define TT_OBJECT_MODE_PROPERTY                        "_Mode"
-#define TT_OBJECT_CREATION_DATE_PROPERTY       "_Creation_Date"
-
-/* 
- * The following define opaque handles which can be type checked (as compared
- * to void *).  Don't bother looking for the definitions of the structs, there
- * aren't any.
- */
-typedef struct _Tt_message_handle *Tt_message;
-typedef struct _Tt_pattern_handle *Tt_pattern;
-typedef struct _tt_AuthFileEntry  *Tt_AuthFileEntry;
-
-
-#if defined(__cplusplus) || defined(__STDC__)
-typedef Tt_filter_action (*Tt_filter_function)(_TT_CONST char *nodeid,
-                                              void *context,
-                                              void *accumulator);
-typedef Tt_callback_action (*Tt_message_callback) (Tt_message m,
-                                                  Tt_pattern p);
-#else
-typedef Tt_filter_action (*Tt_filter_function)();
-typedef Tt_callback_action (*Tt_message_callback)();
-#endif
-
-#endif /* _XENUMS_ */
-#endif /* _XSCHEME_  _NAMES_  _EXTERN_ */
-
-#ifndef _XENUMS_
-
-_TT_EXTERN_FUNC(char *,tt_open,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_close,(void))
-_TT_EXTERN_FUNC(char *,tt_X_session,(_TT_CONST char *xdisplay))
-
-_TT_EXTERN_FUNC(char *,tt_default_ptype,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_default_ptype_set,(_TT_CONST char * ptid))
-_TT_EXTERN_FUNC(char *,tt_default_file,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_default_file_set,(_TT_CONST char * docid))
-_TT_EXTERN_FUNC(char *,tt_default_session,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_default_session_set,(_TT_CONST char *sessid))
-_TT_EXTERN_FUNC(char *,tt_thread_session,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_thread_session_set,(_TT_CONST char *sessid))
-_TT_EXTERN_FUNC(char *,tt_default_procid,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_default_procid_set,(_TT_CONST char *procid))
-_TT_EXTERN_FUNC(char *,tt_thread_procid,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_thread_procid_set,(_TT_CONST char *procid))
-_TT_EXTERN_FUNC(char *,tt_procid_session,(_TT_CONST char *procid))
-
-_TT_EXTERN_FUNC(Tt_status,tt_file_join,(_TT_CONST char * filepath))
-_TT_EXTERN_FUNC(Tt_status,tt_file_quit,(_TT_CONST char * filepath))
-_TT_EXTERN_FUNC(Tt_status,tt_file_objects_query,
-                (_TT_CONST char * filepath,
-                 Tt_filter_function filter,
-                 void *context,void *accumulator))
-_TT_EXTERN_FUNC(Tt_status,tt_file_move,
-               (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath))
-_TT_EXTERN_FUNC(Tt_status,tt_file_copy,
-               (_TT_CONST char *oldfilepath, _TT_CONST char *newfilepath))
-_TT_EXTERN_FUNC(Tt_status,tt_file_destroy,(_TT_CONST char * filepath))
-
-_TT_EXTERN_FUNC(char *,tt_message_context_val,
-               (Tt_message m, _TT_CONST char *slotname))
-_TT_EXTERN_FUNC(Tt_status,tt_message_context_ival,
-               (Tt_message m, _TT_CONST char *slotname, int *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_context_bval,
-               (Tt_message m, _TT_CONST char *slotname,
-                unsigned char **value, int *len))
-_TT_EXTERN_FUNC(Tt_status,tt_message_context_xval,
-               (Tt_message m, _TT_CONST char *slotname,
-                xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_context_set,
-               (Tt_message m, _TT_CONST char *slotname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_icontext_set,
-               (Tt_message m, _TT_CONST char *slotname, int value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_bcontext_set,
-               (Tt_message m, _TT_CONST char *slotname,
-                _TT_CONST unsigned char *value, int len))
-_TT_EXTERN_FUNC(Tt_status,tt_message_xcontext_set,
-               (Tt_message m, _TT_CONST char *slotname,
-                xdrproc_t xdr_proc, void *value))
-
-_TT_EXTERN_FUNC(Tt_status,tt_context_join,
-               (_TT_CONST char *slotname, _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_icontext_join,
-               (_TT_CONST char *slotname, int value))
-_TT_EXTERN_FUNC(Tt_status,tt_bcontext_join,
-               (_TT_CONST char *slotname,
-                _TT_CONST unsigned char *value, int len))
-_TT_EXTERN_FUNC(Tt_status,tt_xcontext_join,
-               (_TT_CONST char *slotname,
-                xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(Tt_status,tt_context_quit,
-               (_TT_CONST char *slotname, _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_icontext_quit,
-               (_TT_CONST char *slotname, int value))
-_TT_EXTERN_FUNC(Tt_status,tt_bcontext_quit,
-               (_TT_CONST char *slotname,
-                _TT_CONST unsigned char *value, int len))
-_TT_EXTERN_FUNC(Tt_status,tt_xcontext_quit,
-               (_TT_CONST char *slotname,
-                xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(int,tt_message_contexts_count,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_context_slotname,
-               (Tt_message m, int i))
-
-_TT_EXTERN_FUNC(Tt_message,tt_message_create,(void))
-_TT_EXTERN_FUNC(Tt_message,tt_message_create_super,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_destroy,(Tt_message m))
-
-_TT_EXTERN_FUNC(Tt_status,tt_message_send,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_send_on_exit,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_message,tt_message_receive,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_message_reply,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_reject,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_accept,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_fail,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_pattern,tt_message_pattern,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_callback_add,
-               (Tt_message m,Tt_message_callback f))
-
-_TT_EXTERN_FUNC(void *,tt_message_user,(Tt_message m,int key))
-_TT_EXTERN_FUNC(Tt_status,tt_message_user_set,(Tt_message m,int key,void *v))
-
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_add,
-                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_mode,tt_message_arg_mode,(Tt_message m,int n))
-_TT_EXTERN_FUNC(char *,tt_message_arg_type,(Tt_message m,int n))
-_TT_EXTERN_FUNC(char *,tt_message_arg_val,(Tt_message m,int n))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_val_set,
-                (Tt_message m,int n,_TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval,
-               (Tt_message m,int n,unsigned char **value,int *len))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_bval_set,
-                (Tt_message m,int n,_TT_CONST unsigned char *value,int len))
-_TT_EXTERN_FUNC(Tt_status,tt_message_barg_add,
-                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
-                _TT_CONST unsigned char *value,int len))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival,
-               (Tt_message m,int n,int *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_ival_set,
-                (Tt_message m,int n,int value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_iarg_add,
-                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,int value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval,
-               (Tt_message m,int n,xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_arg_xval_set,
-                (Tt_message m,int n,xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(Tt_status,tt_message_xarg_add,
-                (Tt_message m,Tt_mode n,_TT_CONST char *vtype,
-                xdrproc_t xdr_proc, void *value))
-_TT_EXTERN_FUNC(int,tt_message_args_count,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_class,tt_message_class,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_class_set,
-                (Tt_message m,Tt_class c))
-_TT_EXTERN_FUNC(char *,tt_message_file,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_file_set,
-               (Tt_message m,_TT_CONST char *file))
-_TT_EXTERN_FUNC(char *,tt_message_object,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_object_set,
-               (Tt_message m,_TT_CONST char *objid))
-_TT_EXTERN_FUNC(char *,tt_message_id,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_op,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_op_set,
-               (Tt_message m,_TT_CONST char *opname))
-_TT_EXTERN_FUNC(int,tt_message_opnum,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_otype,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_otype_set,
-               (Tt_message m,_TT_CONST char *otype))
-_TT_EXTERN_FUNC(Tt_address,tt_message_address,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_address_set,
-                (Tt_message m,Tt_address p))
-_TT_EXTERN_FUNC(char *,tt_message_handler,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_handler_set,
-               (Tt_message m,_TT_CONST char *procid))
-_TT_EXTERN_FUNC(char *,tt_message_handler_ptype,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_handler_ptype_set,
-                (Tt_message m,_TT_CONST char *ptid))
-_TT_EXTERN_FUNC(int,tt_message_accepters_count,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_accepter,(Tt_message m,int n))
-_TT_EXTERN_FUNC(int,tt_message_rejecters_count,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_rejecter,(Tt_message m,int n))
-_TT_EXTERN_FUNC(int,tt_message_abstainers_count,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_abstainer,(Tt_message m,int n))
-_TT_EXTERN_FUNC(Tt_disposition,tt_message_disposition,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_disposition_set,
-                (Tt_message m,Tt_disposition r))
-_TT_EXTERN_FUNC(Tt_scope,tt_message_scope,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_scope_set,(Tt_message m,Tt_scope s))
-_TT_EXTERN_FUNC(char *,tt_message_sender,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_message_sender_ptype,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_sender_ptype_set,
-                (Tt_message m,_TT_CONST char *ptid))
-_TT_EXTERN_FUNC(char *,tt_message_session,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_session_set,
-                (Tt_message m,_TT_CONST char *sessid))
-_TT_EXTERN_FUNC(Tt_state,tt_message_state,(Tt_message m))
-_TT_EXTERN_FUNC(int,tt_message_status,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_status_set,(Tt_message m,int status))
-_TT_EXTERN_FUNC(char *,tt_message_status_string,(Tt_message m))
-_TT_EXTERN_FUNC(Tt_status,tt_message_status_string_set,
-               (Tt_message m,_TT_CONST char *status_str))
-_TT_EXTERN_FUNC(uid_t,tt_message_uid,(Tt_message m))
-_TT_EXTERN_FUNC(gid_t,tt_message_gid,(Tt_message m))
-
-/* 
- * The following are "macros" which provide a simpler high level
- * interface to the above low level calls.
- */
-_TT_EXTERN_FUNC(Tt_message,tt_pnotice_create,
-               (Tt_scope scope, _TT_CONST char *op))
-_TT_EXTERN_FUNC(Tt_message,tt_prequest_create,
-               (Tt_scope scope, _TT_CONST char *op))
-_TT_EXTERN_FUNC(Tt_message,tt_onotice_create,
-               (_TT_CONST char *objid, _TT_CONST char *op))
-_TT_EXTERN_FUNC(Tt_message,tt_orequest_create,
-               (_TT_CONST char *objid, _TT_CONST char *op))
-
-_TT_EXTERN_FUNC(char *,tt_spec_create,(_TT_CONST char * filepath))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_write,(_TT_CONST char * nodeid))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_destroy,(_TT_CONST char * nodeid))
-
-_TT_EXTERN_FUNC(char *,tt_spec_file,(_TT_CONST char * nodeid))
-_TT_EXTERN_FUNC(char *,tt_spec_type,(_TT_CONST char * nodeid))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_type_set,
-               (_TT_CONST char * nodeid,_TT_CONST char * otid))
-_TT_EXTERN_FUNC(char *,tt_spec_move,
-               (_TT_CONST char * nodeid,_TT_CONST char * newfilepath))
-_TT_EXTERN_FUNC(char *,tt_spec_propname,(_TT_CONST char *nodeid,int n))
-_TT_EXTERN_FUNC(int,tt_spec_propnames_count,(_TT_CONST char *nodeid))
-
-
-_TT_EXTERN_FUNC(char *,tt_spec_prop,
-               (_TT_CONST char *nodeid,_TT_CONST char *propname,int i))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_add,
-                (_TT_CONST char *nodeid,_TT_CONST char *propname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(int,tt_spec_prop_count,
-               (_TT_CONST char *nodeid,_TT_CONST char *propname))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_prop_set,
-                (_TT_CONST char *nodeid,_TT_CONST char *propname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop,
-                (_TT_CONST char *nodeid,_TT_CONST char *propname,int i,
-                 unsigned char **value,int *length))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_add,
-                (_TT_CONST char *nodeid,_TT_CONST char *propname,
-                  _TT_CONST unsigned char *value,int length))
-_TT_EXTERN_FUNC(Tt_status,tt_spec_bprop_set,
-                (_TT_CONST char *nodeid,_TT_CONST char *propname,
-                _TT_CONST unsigned char *value,int length))
-
-_TT_EXTERN_FUNC(int,tt_objid_equal,
-               (_TT_CONST char * nodeid1,_TT_CONST char * nodeid2))
-_TT_EXTERN_FUNC(char *,tt_objid_objkey,(_TT_CONST char * nodeid))
-
-_TT_EXTERN_FUNC(int,tt_otype_deriveds_count,(_TT_CONST char *otype))
-_TT_EXTERN_FUNC(char *,tt_otype_derived,(_TT_CONST char *otype, int i))
-_TT_EXTERN_FUNC(char *,tt_otype_base,(_TT_CONST char *otype))
-_TT_EXTERN_FUNC(int,tt_otype_is_derived,
-               (_TT_CONST char *derivedotype, _TT_CONST char *baseotype))
-_TT_EXTERN_FUNC(int,tt_otype_osig_count,(_TT_CONST char * otype))
-_TT_EXTERN_FUNC(int,tt_otype_hsig_count,(_TT_CONST char * otype))
-_TT_EXTERN_FUNC(char *,tt_otype_osig_op,(_TT_CONST char * otype, int sig))
-_TT_EXTERN_FUNC(char *,tt_otype_hsig_op,(_TT_CONST char * otype, int sig))
-_TT_EXTERN_FUNC(int,tt_otype_osig_args_count,(_TT_CONST char * otype, int sig))
-_TT_EXTERN_FUNC(int,tt_otype_hsig_args_count,(_TT_CONST char * otype, int sig))
-_TT_EXTERN_FUNC(Tt_mode,tt_otype_osig_arg_mode,(_TT_CONST char * otype,
-                                               int sig, int arg))
-_TT_EXTERN_FUNC(Tt_mode,tt_otype_hsig_arg_mode,(_TT_CONST char * otype,
-                                               int sig, int arg))
-_TT_EXTERN_FUNC(char *,tt_otype_osig_arg_type,(_TT_CONST char * otype,
-                                               int sig, int arg))
-_TT_EXTERN_FUNC(char *,tt_otype_hsig_arg_type,(_TT_CONST char * otype,
-                                               int sig, int arg))
-
-_TT_EXTERN_FUNC(Tt_pattern,tt_pattern_create,(void))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_destroy,(Tt_pattern p))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_register,(Tt_pattern p))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_unregister,(Tt_pattern p))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_callback_add,
-               (Tt_pattern m,Tt_message_callback f))
-
-_TT_EXTERN_FUNC(void *,tt_pattern_user,(Tt_pattern p,int key))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_user_set,(Tt_pattern p,int key,void *v))
-
-_TT_EXTERN_FUNC(Tt_category,tt_pattern_category,(Tt_pattern p))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_category_set,
-                (Tt_pattern p,Tt_category c))
-
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_arg_add,
-                (Tt_pattern p,Tt_mode n,_TT_CONST char *vtype,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_barg_add,
-                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype,
-                _TT_CONST unsigned char *value,int len))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_iarg_add,
-                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype, int value))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_xarg_add,
-                (Tt_pattern m,Tt_mode n,_TT_CONST char *vtype,
-                xdrproc_t xdr_proc, void *value))
-
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_class_add,
-                (Tt_pattern p,Tt_class c))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_file_add,
-               (Tt_pattern p,_TT_CONST char *file))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_object_add,
-               (Tt_pattern p,_TT_CONST char *objid))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_op_add,
-               (Tt_pattern p,_TT_CONST char *opname))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_opnum_add,(Tt_pattern p,int opnum))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_otype_add,
-               (Tt_pattern p,_TT_CONST char *otype))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_address_add,
-                (Tt_pattern p,Tt_address d))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_disposition_add,
-                (Tt_pattern p,Tt_disposition r))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_scope_add,(Tt_pattern p,Tt_scope s))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_add,
-               (Tt_pattern p,_TT_CONST char *procid))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_sender_ptype_add,
-               (Tt_pattern p,_TT_CONST char *ptid))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_session_add,
-               (Tt_pattern p,_TT_CONST char *sessid))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_state_add,(Tt_pattern p,Tt_state s))
-
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_context_add,
-               (Tt_pattern p, _TT_CONST char *slotname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_icontext_add,
-               (Tt_pattern p, _TT_CONST char *slotname,
-                int value))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_bcontext_add,
-               (Tt_pattern p, _TT_CONST char *slotname,
-                _TT_CONST unsigned char *value, int length))
-_TT_EXTERN_FUNC(Tt_status,tt_pattern_xcontext_add,
-               (Tt_pattern p, _TT_CONST char *slotname,
-                xdrproc_t xdr_proc, void *value))
-
-_TT_EXTERN_FUNC(Tt_status,tt_ptype_declare,(_TT_CONST char * ptid))
-_TT_EXTERN_FUNC(Tt_status,tt_ptype_undeclare,(_TT_CONST char * ptid))
-_TT_EXTERN_FUNC(Tt_status,tt_ptype_exists,(_TT_CONST char * ptid))
-_TT_EXTERN_FUNC(Tt_status,tt_ptype_opnum_callback_add,
-               (_TT_CONST char * ptid, int opnum, Tt_message_callback f))
-_TT_EXTERN_FUNC(Tt_status,tt_otype_opnum_callback_add,
-               (_TT_CONST char * otid, int opnum, Tt_message_callback f))
-       
-
-_TT_EXTERN_FUNC(Tt_status,tt_session_join,(_TT_CONST char * sessid))
-_TT_EXTERN_FUNC(Tt_status,tt_session_quit,(_TT_CONST char * sessid))
-_TT_EXTERN_FUNC(char *,tt_initial_session,(void))
-
-_TT_EXTERN_FUNC(char *,tt_session_propname,(_TT_CONST char *sessid,int n))
-_TT_EXTERN_FUNC(int,tt_session_propnames_count,(_TT_CONST char *sessid))
-_TT_EXTERN_FUNC(char *,tt_session_prop,
-               (_TT_CONST char *sessid,_TT_CONST char *propname,int i))
-_TT_EXTERN_FUNC(Tt_status,tt_session_prop_add,
-                (_TT_CONST char *sessid,_TT_CONST char *propname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(int,tt_session_prop_count,
-               (_TT_CONST char *sessid,_TT_CONST char *propname))
-_TT_EXTERN_FUNC(Tt_status,tt_session_prop_set,
-               (_TT_CONST char *sessid, _TT_CONST char *propname,
-                _TT_CONST char *value))
-_TT_EXTERN_FUNC(Tt_status,tt_session_bprop,
-               (_TT_CONST char *sessid,_TT_CONST char *propname,int i,
-                unsigned char **value,int *length))
-_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_add,
-                (_TT_CONST char *sessid,_TT_CONST char *propname,
-                _TT_CONST unsigned char *value,int length))
-_TT_EXTERN_FUNC(Tt_status,tt_session_bprop_set,
-                (_TT_CONST char *sessid,_TT_CONST char *propname,
-                _TT_CONST unsigned char *value,int length))
-_TT_EXTERN_FUNC(Tt_status,tt_session_types_load,
-                (_TT_CONST char *sessid, _TT_CONST char *filename))
-
-
-_TT_EXTERN_FUNC(int,tt_fd,(void))
-
-_TT_EXTERN_FUNC(int,tt_mark,(void))
-_TT_EXTERN_FUNC(void,tt_release,(int mark))
-_TT_EXTERN_FUNC(caddr_t,tt_malloc,(size_t s))
-_TT_EXTERN_FUNC(void,tt_free,(caddr_t p))
-
-_TT_EXTERN_FUNC(char *,tt_status_message,(Tt_status ttrc))
-_TT_EXTERN_FUNC(Tt_status,tt_pointer_error,(void *pointer))
-_TT_EXTERN_FUNC(Tt_status,tt_int_error,(int return_val))
-
-_TT_EXTERN_FUNC(void,tt_error,(const char *func,Tt_status ttrc))
-_TT_EXTERN_FUNC(void *,tt_error_pointer,(Tt_status ttrc))
-_TT_EXTERN_FUNC(int,tt_error_int,(Tt_status ttrc))
-
-_TT_EXTERN_FUNC(int,tt_trace_control,(int onoff))
-
-_TT_EXTERN_FUNC(char *,tt_message_print,(Tt_message m))
-_TT_EXTERN_FUNC(char *,tt_pattern_print,(Tt_pattern p))
-
-_TT_EXTERN_FUNC(char *,tt_file_netfile, (const char *filename))
-_TT_EXTERN_FUNC(char *,tt_netfile_file, (const char *netfilename))
-
-_TT_EXTERN_FUNC(char *,tt_host_file_netfile, (const char * host, const char * filename))
-_TT_EXTERN_FUNC(char *,tt_host_netfile_file, (const char * host, const char * netfilename))
-_TT_EXTERN_FUNC(Tt_status,tt_feature_enabled, (Tt_feature f))
-_TT_EXTERN_FUNC(Tt_status,tt_feature_required, (Tt_feature f))
-
-_TT_EXTERN_FUNC(char*, tt_AuthFileName, (void))
-_TT_EXTERN_FUNC(int, tt_LockAuthFile, (char*, int, int, long))
-_TT_EXTERN_FUNC(void, tt_UnlockAuthFile, (char*))
-_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_ReadAuthFileEntry, (FILE*))
-_TT_EXTERN_FUNC(void, tt_FreeAuthFileEntry, (Tt_AuthFileEntry))
-_TT_EXTERN_FUNC(int, tt_WriteAuthFileEntry, (FILE*, Tt_AuthFileEntry))
-_TT_EXTERN_FUNC(Tt_AuthFileEntry, tt_GetAuthFileEntry, (char*, char*, char*))
-_TT_EXTERN_FUNC(char*, tt_GenerateMagicCookie, (int))
-
-#endif /* _XENUMS_ */
-
-#define tt_ptr_error(p) tt_pointer_error((void *)(p))
-#define tt_is_err(p) (TT_WRN_LAST < (p))
-#undef _TT_EXTERN_FUNC
-#undef _TT_CONST
-#endif
diff --git a/cde/lib/tt/lib/api/dnd/Makefile.am b/cde/lib/tt/lib/api/dnd/Makefile.am
new file mode 100644 (file)
index 0000000..13fc308
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../tooltalk.inc
+
+noinst_LTLIBRARIES = libdnd.la
+
+libdnd_la_CFLAGS = -I../..
+
+libdnd_la_SOURCES = ttdnd.c
index 18a4b9972ac7db24f5723bdf664863394abdaf3b..ef635d77e1ddfc6fd9384f61f8d2bed6ddbf9a39 100644 (file)
@@ -34,7 +34,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "ttdnd.h"
 
 static Tt_callback_action      _ttdnd_get_contents_callback();
diff --git a/cde/lib/tt/lib/db/Makefile.am b/cde/lib/tt/lib/db/Makefile.am
new file mode 100644 (file)
index 0000000..47701fe
--- /dev/null
@@ -0,0 +1,24 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+noinst_LTLIBRARIES = libdb.la
+
+libdb_la_CXXFLAGS = -I../../lib -I../../mini_isam
+
+libdb_la_SOURCES = db_server_clnt.C           db_server_xdr.C \
+        old_db_server_functions.C             tt_client_isam_file.C \
+        tt_client_isam_file_utils.C           tt_client_isam_key_descriptor.C \
+        tt_client_isam_key_descriptor_utils.C tt_client_isam_record.C \
+        tt_client_isam_record_utils.C         tt_db_access_utils.C \
+        tt_db_client.C                        tt_db_client_utils.C \
+        tt_db_create_objid.C                  tt_db_file.C \
+        tt_db_file_utils.C                    tt_db_hostname_global_map_ref.C \
+        tt_db_hostname_redirection_map.C      tt_db_key.C \
+        tt_db_key_utils.C                     tt_db_network_path.C \
+        tt_db_object.C                        tt_db_object_utils.C \
+        tt_db_objid_to_key.C                  tt_db_property.C \
+        tt_db_property_utils.C                tt_db_rpc_message_routines.C \
+        tt_db_rpc_routines.C                  tt_old_db.C \
+       tt_old_db_message_info.C              tt_old_db_message_info_utils.C \
+        tt_old_db_partition_map_ref.C         tt_old_db_utils.C
index c42b0a2e7a595ca5f5050af17cb5abc8ccc129cd..50f288a1f6784fa0092aa5d36482b28888dbb9da 100644 (file)
@@ -52,7 +52,7 @@
 #include "db/tt_old_db_partition_map_ref.h"
 #include "db/tt_old_db_consts.h"
 #include "db/tt_old_db_utils.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 static void _old_tt_close_db_partition_files (const _Tt_string&);
 static bool_t _old_tt_is_file_a_directory (const _Tt_string&);
index c2fb319177c3ba42a3f695297f37dcb1c0952445..1d1a6c781bae60805ac94902d6d44d5907108c53 100644 (file)
@@ -37,7 +37,7 @@
 #include <sys/types.h>
 #include <netinet/in.h>
 
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_port.h"
 #include "util/tt_gettext.h"
 #include "db/tt_old_db_consts.h"
index e282257ca76e2dd32cb039cc1bf7d91221b825bc..5f51321c23d8a78f85467c8859826028c45c7a36 100644 (file)
@@ -41,7 +41,7 @@
 #if defined(OPT_BUG_SUNOS_4) && defined(__GNUG__)
 #      include <stdlib.h>
 #endif
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 const int VER_NO_LENGTH = 4;
 const int INITIAL_VERSION_NO = 0;
diff --git a/cde/lib/tt/lib/mp/Makefile.am b/cde/lib/tt/lib/mp/Makefile.am
new file mode 100644 (file)
index 0000000..33189b5
--- /dev/null
@@ -0,0 +1,24 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+noinst_LTLIBRARIES = libmp.la
+
+libmp_la_CXXFLAGS = -I../../lib -I../../mini_isam
+
+libmp_la_SOURCES = mp_arg.C            mp_arg_utils.C          mp_auth.C \
+        mp_auth_functions.C mp_c_file.C \
+        mp_c_file_utils.C   mp_c_message.C          mp_c_message_utils.C \
+        mp_c_mp.C           mp_c_msg_context.C      mp_c_msg_context_utils.C \
+        mp_c_pattern.C      mp_c_procid.C           mp_c_procid_utils.C \
+        mp_c_session.C      mp_c_session_prop.C     mp_c_session_utils.C \
+        mp_context.C        mp_context_utils.C      mp_desktop.C \
+        mp_desktop_utils.C  mp_file.C               mp_file_utils.C \
+        mp_message.C        mp_message_utils.C      mp_mp.C \
+        mp_mp_utils.C       mp_msg_context.C        mp_msg_context_utils.C \
+        mp_pat_context.C    mp_pat_context_utils.C  mp_pattern.C \
+        mp_pattern_utils.C  mp_procid.C             mp_procid_utils.C \
+        mp_rpc_client.C     mp_rpc_client_utils.C   mp_rpc_fns.C \
+        mp_session.C        mp_session_prop.C       mp_session_prop_utils.C \
+        mp_session_utils.C  mp_stream_socket.C      mp_stream_socket_utils.C \
+        mp_trace.C          mp_xdr_functions.C
index ccdc340dd4a629382d4902411656230eb6f0deb2..f100cee667411c1f297c5beae799dfd8e5498b2e 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <util/tt_object.h>
 #include <util/tt_string.h>
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include <rpc/rpc.h>
 
 class _Tt_context : public _Tt_object {
index e4799d4a0ec268f06d0a10646af5c5cd53de69f0..143df1ff17222e2772fb209423795fae2ec30178 100644 (file)
@@ -40,7 +40,7 @@
 #include "util/tt_list.h"
 #include "util/tt_string.h"
 #include "mp/mp_xdr_functions.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 #define _TT_TYPES_CE_VERSION 1
 #define _TT_XATOM_VERSION 1
index de084f845aa28ecbadf411635f2fd011d98c81f8..6ecc6400487ff2a5e148eb772d1afe932c9953f8 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <stdlib.h>
 #include <rpc/rpc.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_string.h"
 #include "mp/mp_auth.h"
 #include "mp/mp_file_utils.h"
diff --git a/cde/lib/tt/lib/tttk/Makefile.am b/cde/lib/tt/lib/tttk/Makefile.am
new file mode 100644 (file)
index 0000000..0a11019
--- /dev/null
@@ -0,0 +1,13 @@
+headerdir = ${prefix}/share/include/Tt
+
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+noinst_LTLIBRARIES = libtttk.la
+
+libtttk_la_CXXFLAGS = $(TT_VERSION_DEFINE) -I../ -I../../lib
+
+libtttk_la_SOURCES = ttdesktop.C     ttdtfile.C      ttdtprocid.C \
+                    ttmedia.C       tttk.C          tttk2free.C \
+                    tttkmessage.C   tttkpattern.C   tttkutils.C
index 68794db70d99c4edc67028137ddbaab5ce60a96b..a352cfe74b811cb35a17dc78a219266a11eea843 100644 (file)
 #include <X11/Intrinsic.h>
 #include <X11/StringDefs.h>
 #include <X11/Shell.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
 #include "util/tt_Xlib.h"
 #include "util/tt_port.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttk2free.h"
 #include "tttk/tttkutils.h"
 #include "tttk/tttkmessage.h"
index 7d4f7083878893d241a4d99f6647452b99b32ab1..581d9177e3ec937164c54beb9da7ee7d55b7481b 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef ttdesktop_h
 #define ttdesktop_h
 
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkmessage.h"
 
 typedef struct {
index 6dbb9ef887611030e642e1cffb1c543c268b984e..de5d62ad9fba9400b6bba40c48709387ad489105 100644 (file)
@@ -31,9 +31,9 @@
  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
  */
 #include <unistd.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_api.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkpattern.h"
 #include "tttk/tttkmessage.h"
 #include "tttk/tttk2free.h"
index 3fdcb96c3cc80ef612d6bf57e35b7d084e55a20c..b6312e46e5470376139586f248cb99c6ab7f9354 100644 (file)
@@ -35,7 +35,7 @@
 #define ttdtprocid_h
 
 #include "util/tt_new.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 
 class _TtDtProcid: public _Tt_allocated {
     public:
index 2b5c323c9001567298d1133f885d1dab16ae4b30..74f73354b94c971536e832a59c55478390d2afaa 100644 (file)
@@ -25,9 +25,9 @@
 //%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                  
 //%%  (c) Copyright 1993, 1994 Novell, Inc.                            
 //%%  $XConsortium: ttmedia.C /main/3 1995/10/23 10:32:41 rswiston $                                                   
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_gettext.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/ttdesktop.h"
 #include "tttk/tttkmessage.h"
 #include "tttk/tttkpattern.h"
index 8ce2be4118070ab55d8e10bd6dc30f77cd3cf2d9..826ec8b9ed5237e846e0d7fcc6c125b9472d99dc 100644 (file)
 #include <errno.h>
 #include <unistd.h>
 #include <limits.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_gettext.h"
 #include "util/tt_Xlib.h"
 #include "util/tt_port.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttk2free.h"
 #include "tttk/tttkutils.h"
 #include "tttk/tttkpattern.h"
diff --git a/cde/lib/tt/lib/tttk/tttk.h b/cde/lib/tt/lib/tttk/tttk.h
deleted file mode 100644 (file)
index f3e9d0d..0000000
+++ /dev/null
@@ -1,366 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: tttk.h /main/3 1995/10/23 10:33:00 rswiston $ */
-/*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                  */
-/*%%  (c) Copyright 1993, 1994 International Business Machines Corp.    */
-/*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                   */
-/*%%  (c) Copyright 1993, 1994 Novell, Inc.                             */
-
-/*
- * @(#)tttk.h  1.11 93/09/29
- */
-
-#ifndef tttk_h
-#define tttk_h
-
-#include <Tt/tt_c.h>
-#include <X11/Intrinsic.h>
-
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-typedef enum {
-       TTDT_OP_NONE,
-       TTDT_CREATED,
-       TTDT_DELETED,
-       TTDT_DO_COMMAND,
-       TTDT_SET_ENVIRONMENT,
-       TTDT_GET_ENVIRONMENT,
-       TTDT_SET_GEOMETRY,
-       TTDT_GET_GEOMETRY,
-       TTDT_SET_ICONIFIED,
-       TTDT_GET_ICONIFIED,
-       TTDT_SET_LOCALE,
-       TTDT_GET_LOCALE,
-       TTDT_SET_MAPPED,
-       TTDT_GET_MAPPED,
-       TTDT_MODIFIED,
-       TTDT_REVERTED,
-       TTDT_GET_MODIFIED,
-       TTDT_MOVED,
-       TTDT_PAUSE,
-       TTDT_RESUME,
-       TTDT_QUIT,
-       TTDT_RAISE,
-       TTDT_LOWER,
-       TTDT_SAVE,
-       TTDT_REVERT,
-       TTDT_SAVED,
-       TTDT_SET_SITUATION,
-       TTDT_GET_SITUATION,
-       TTDT_SIGNAL,
-       TTDT_STARTED,
-       TTDT_STOPPED,
-       TTDT_STATUS,
-       TTDT_GET_STATUS,
-       TTDT_GET_SYSINFO,
-       TTDT_SET_XINFO,
-       TTDT_GET_XINFO,
-       TTME_ABSTRACT,
-       TTME_DEPOSIT,
-       TTME_DISPLAY,
-       TTME_EDIT,
-       TTME_COMPOSE,
-       TTME_INTERPRET,
-       TTME_PRINT,
-       TTME_TRANSLATE,
-       TTME_MAIL,
-       TTME_MAIL_COMPOSE,
-       TTME_MAIL_EDIT,
-       TTME_INSTANTIATE,
-       TTDT_OP_LAST
-} Tttk_op;
-
-/*
- * Standard vtype names
- */
-extern const char      *Tttk_integer;
-extern const char      *Tttk_string;
-extern const char      *Tttk_boolean;
-extern const char      *Tttk_file;
-extern const char      *Tttk_message_id;
-extern const char      *Tttk_title;
-extern const char      *Tttk_width;
-extern const char      *Tttk_height;
-extern const char      *Tttk_xoffset;
-extern const char      *Tttk_yoffset;
-
-/*
- **********************************************************************
- *
- * Procid lifecycle
- *
- **********************************************************************
- */
-char                  *ttdt_open(
-                               int            *tt_fd,
-                               const char     *toolname,
-                               const char     *vendor,
-                               const char     *version,
-                               int             sendStarted
-                       );
-Tt_status              ttdt_sender_imprint_on(
-                               const char     *handler,
-                               Tt_message      commission,
-                               char          **display,
-                               int            *width,
-                               int            *height,
-                               int            *xoffset,
-                               int            *yoffset,
-                               XtAppContext    app2run,
-                               int             ms_timeout
-                       );
-Tt_status              ttdt_close(
-                               const char     *procid,
-                               const char     *newprocid,
-                               int             sendStopped
-                       );
-/*
- **********************************************************************
- *
- * Sessions
- *
- **********************************************************************
- */
-typedef Tt_message     (*Ttdt_contract_cb)(
-                               Tt_message      msg,
-                               void           *clientdata,
-                               Tt_message      contract
-                       );
-Tt_pattern            *ttdt_session_join(
-                               const char             *sessid,
-                               Ttdt_contract_cb        cb,
-                               Widget                  shell,
-                               void                   *clientdata,
-                                int                    join
-                       );
-Tt_status              ttdt_session_quit(
-                               const char     *sessid,
-                               Tt_pattern     *sess_pats,
-                                int            quit
-                       );
-/*
- **********************************************************************
- *
- * Contracts
- *
- **********************************************************************
- */
-Tt_pattern            *ttdt_message_accept(
-                               Tt_message      contract,
-                               Ttdt_contract_cb        cb,
-                               Widget          shell,
-                               void           *clientdata,
-                               int             accept,
-                               int             sendStatus
-                       );
-Tt_pattern            *ttdt_subcontract_manage(
-                               Tt_message      subcontract,
-                               Ttdt_contract_cb cb,
-                               Widget          shell,
-                               void           *clientdata
-                       );
-/*
- **********************************************************************
- *
- * Desktop: Files
- *
- **********************************************************************
- */
-typedef Tt_message     (*Ttdt_file_cb)(
-                               Tt_message      msg,
-                               Tttk_op         op,
-                               char           *pathname,
-                               void           *clientdata,
-                               int             same_euid_egid,
-                               int             same_procid
-                       );
-Tt_pattern            *ttdt_file_join(
-                                const char     *pathname,
-                                Tt_scope       scope,
-                               int             join,
-                               Ttdt_file_cb    cb,
-                               void           *clientdata
-                       );
-Tt_status              ttdt_file_event(
-                               Tt_message      context,
-                               Tttk_op         event,
-                               Tt_pattern     *patterns,
-                               int             send
-                       );
-Tt_status              ttdt_file_quit(
-                               Tt_pattern     *patterns,
-                               int             quit
-                       );
-int                    ttdt_Get_Modified(
-                               Tt_message      context,
-                               const char     *pathname,
-                                Tt_scope       scope,
-                               XtAppContext    app2run,
-                               int             ms_timeout
-                       );
-Tt_status              ttdt_Save(
-                               Tt_message      context,
-                               const char     *pathname,
-                                Tt_scope       scope,
-                               XtAppContext    app2run,
-                               int             ms_timeout
-                       );
-Tt_status              ttdt_Revert(
-                               Tt_message      context,
-                               const char     *pathname,
-                                Tt_scope       scope,
-                               XtAppContext    app2run,
-                               int             ms_timeout
-                       );
-Tt_message             ttdt_file_notice(
-                               Tt_message      context,
-                               Tttk_op         op,
-                               Tt_scope        scope,
-                               const char     *file,
-                               int             send_and_destroy
-                       );
-Tt_message             ttdt_file_request(
-                               Tt_message      context,
-                               Tttk_op         op,
-                               Tt_scope        scope,
-                               const char     *file,
-                               Ttdt_file_cb    cb,
-                               void           *clientdata,
-                               int             send
-                       );
-/*
- **********************************************************************
- *
- * Media Exchange
- *
- **********************************************************************
- */
-typedef Tt_message     (*Ttmedia_load_pat_cb)(
-                               Tt_message      msg,
-                               void           *clientdata,
-                               Tttk_op         op,
-                               Tt_status       diagnosis,
-                               unsigned char  *contents,
-                               int             len,
-                               char           *file,
-                               char           *docname
-                       );
-Tt_status              ttmedia_ptype_declare(
-                               const char     *ptype,
-                               int             base_opnum,
-                               Ttmedia_load_pat_cb     cb,
-                               void           *clientdata,
-                               int             declare
-                       );
-typedef Tt_message     (*Ttmedia_load_msg_cb)(
-                               Tt_message      msg,
-                               void           *clientdata,
-                               Tttk_op         op,
-                               unsigned char  *contents,
-                               int             len,
-                               char           *file
-                       );
-Tt_message             ttmedia_load(
-                               Tt_message              context,
-                               Ttmedia_load_msg_cb     cb,
-                               void                   *clientdata,
-                               Tttk_op                 op,
-                               const char             *media_type,
-                               const unsigned char    *contents,
-                               int                     len,
-                               const char             *file,
-                               const char             *docname,
-                               int                     send
-                       );
-Tt_status              ttmedia_load_reply(
-                               Tt_message              contract,
-                               const unsigned char    *new_contents,
-                               int                     new_len,
-                               int                     reply_and_destroy
-                       );
-Tt_status              ttmedia_Deposit(
-                               Tt_message              contract,
-                               const char             *buffer_id,
-                               const char             *media_type,
-                               const unsigned char    *new_contents,
-                               int                     new_len,
-                               const char             *file,
-                               XtAppContext            app2run,
-                               int                     ms_timeout
-                       );
-/*
- **********************************************************************
- *
- * ToolTalk Toolkit
- *
- **********************************************************************
- */
-void                   tttk_Xt_input_handler(
-                               XtPointer               procid,
-                               int                    *,
-                               XtInputId              *
-                       );
-Tt_status              tttk_block_while(
-                               XtAppContext            app2run,
-                               const int              *blocked,
-                               int                     ms_timeout
-                       );
-Tt_message             tttk_message_create(
-                               Tt_message              context,
-                               Tt_class                the_class,
-                               Tt_scope                the_scope,
-                               const char             *handler,
-                               const char             *op,
-                               Tt_message_callback     callback
-                       );
-Tt_status              tttk_message_destroy(
-                               Tt_message              msg
-                       );
-Tt_status              tttk_message_reject(
-                               Tt_message              msg,
-                               Tt_status               status,
-                               const char             *status_string,
-                               int                     destroy
-                       );
-Tt_status              tttk_message_fail(
-                               Tt_message              msg,
-                               Tt_status               status,
-                               const char              *status_string,
-                               int                     destroy
-                       );
-Tt_status              tttk_message_abandon(
-                               Tt_message              msg
-                       );
-Tttk_op                        tttk_string_op(
-                               const char     *s
-                       );
-char                  *tttk_op_string(
-                               Tttk_op         op
-                       );
-#if defined(__cplusplus)
-}
-#endif
-
-#endif
index 20089b02a8cc8f2329d9e7f31213d245adbcce9a..3fcc592810923bbdcad138b0cc6c4afc4a57f637 100644 (file)
@@ -33,9 +33,9 @@
 #ifndef tttk2free_h
 #define tttk2free_h
 
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_new.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 
 //
 // An instance of this class will automatically destroy() a message or
index 4741c20b0fd800d13cf55e5567a1895946e549de..633f04dedcf8cb179fdbcee2ae58fb64e5fd9667 100644 (file)
@@ -30,9 +30,9 @@
  *
  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
  */
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "api/c/api_mp.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkpattern.h"
 #include "tttk/tttkmessage.h"
 #include "tttk/tttk2free.h"
index c5bfcc39eb958456eefb6cc280324647bb29a8ef..e138ba32b6a5192d8df35a040a6310e520338f74 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef ttdtmessage_h
 #define ttdtmessage_h
 
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 
 typedef Tt_message     (*_TtDtMessageCB)(
                                Tt_message      msg,
index 2a021398224ed9d29adda2fedb2ef0e02dcb1496..4b5496cf0590825df2a0d7c2a08065d11eeb5941 100644 (file)
@@ -30,8 +30,8 @@
  *
  * Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
  */
-#include "api/c/tt_c.h"
-#include "tttk/tttk.h"
+#include "Tt/tt_c.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkmessage.h"
 #include "tttk/tttk2free.h"
 #include "tttk/tttkutils.h"
index eb53a820f6ea5173905d38ca7049cd13ab6374e7..e81dc33fcc764bdad4268d6030e72571ba0fa26f 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef tttkpattern_h
 #define tttkpattern_h
 
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkmessage.h"
 
 Tt_status              _tttk_patterns_destroy(
index 6b050a4b7cf60868c9af14acba7c8dd3ddd4fcd4..b5bdc15164e21e7d2b8989988e264bcb29023f00 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_port.h"
 #include "api/c/api_api.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include "tttk/tttkutils.h"
 
 char _TttkKeys[ _TttkNumKeys ] = { 0 };
diff --git a/cde/lib/tt/lib/util/Makefile.am b/cde/lib/tt/lib/util/Makefile.am
new file mode 100644 (file)
index 0000000..db05b94
--- /dev/null
@@ -0,0 +1,28 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../tooltalk.inc
+
+noinst_LTLIBRARIES = libutil.la
+
+libutil_la_CXXFLAGS = $(TT_VERSION_DEFINE) -I../../lib 
+
+libutil_la_SOURCES = copyright.C           tt_map_entry_utils.C \
+       tt_Xlib.C                           tt_new.C \
+       tt_audit.C                          tt_new_ptr.C \
+       tt_base64.C                         tt_object.C \
+       tt_enumname.C                       tt_object_list.C \
+       tt_file_system.C                    tt_object_table.C \
+       tt_file_system_entry_utils.C        tt_path.C \
+       tt_gettext.C                        tt_port.C \
+       tt_global_env.C                     tt_string.C \
+       tt_host.C                           tt_string_map.C \
+       tt_host_equiv.C                     tt_string_map_utils.C \
+       tt_host_equiv_utils.C               tt_string_match.C \
+       tt_host_utils.C                     tt_threadspecific.C \
+       tt_int_rec.C                        tt_trace.C \
+       tt_iostream.C                       tt_trace_parser.C \
+       tt_ldpath.C                         tt_trace_stream.C \
+       tt_log.C                            tt_tracefile_parse.C \
+       tt_map_entry.C                      tt_xdr_utils.C \
+       tt_entry_pt.C
+
index d1037c3a4ed8115128d5ba8400b4abfb44585633..c751650307a084f4bcc7fcf77cbbf23ada7e1eed 100644 (file)
@@ -151,7 +151,7 @@ extern struct tt_trace_svf tt_trace_svec[], *tt_trace_bgin;
 #include <stdio.h>
 #include <string.h>
 #include <sys/param.h>
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include "util/tt_trace.tab.h"
 
 #undef input
index 1dd4bf364ee75458018c9d368634ef5e64e7c9d5..7903d84409a26230b0c4cbd0d6fd799a302d261f 100644 (file)
@@ -33,7 +33,7 @@
  */
 #include <unistd.h>
 #include <fcntl.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_trace.h"
 #include "util/tt_global_env.h"
 #include "util/tt_audit.h"
index 418abcf914f9bdbc7d53963b128ee2c2f8f68a3b..d21e17db14b7c9ec769ddd4176917deb29783746 100644 (file)
@@ -35,7 +35,7 @@
  */
 #if !defined(_TT_ENUMNAME_H)
 #define _TT_ENUMNAME_H
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_entry_pt.h"
 
 typedef int _Tt_ce_status;
index e56915bf39e7afac530a0cd4b1cd5f595429b401..60927144828d4fd1267eebc01701d2a081a9e47f 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <stdio.h>
 #include "util/tt_string.h"
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 
 class _Tt_message;
 class _Tt_pattern;
index a92255f15f5b6b34f56c0d4598d36cfa2de5cd85..426d2ff2b88675494979246c0b9bdde04b95b8dd 100644 (file)
@@ -32,7 +32,7 @@
  */
 #include <unistd.h>
 #include <fcntl.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_global_env.h"
 #include "util/tt_trace.h"
 #include "util/tt_port.h"
index f073ada9fb4ef6c7dabf008f2e061e81548277e0..67d192f63c6f11cd665df605495c46e4c505e39d 100644 (file)
@@ -38,7 +38,7 @@
 #ifdef _OPT_TIMERS_SUNOS
 #include <sys/time.h>
 #endif
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "mp/mp_message.h"
 #include "mp/mp_pattern.h"
 #include "util/tt_trace_stream.h"
index 209cb2160af757355fa2b97082200efc268f6899..9ec1e77cdc6106b41e8448fbfbe049b31f8e5698 100644 (file)
@@ -15,7 +15,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/param.h>
-#include <api/c/tt_c.h>
+#include <Tt/tt_c.h>
 #include "util/tt_trace.tab.h"
 
 #undef input
index 2be309b52f0b53042c956f7b2596a1c857c5e8e7..aa0661e85de1a0086a2ba8c0258688e5818cf118 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef _TT_TRACE_PARSER_H
 #define _TT_TRACE_PARSER_H
  
-#include       "api/c/tt_c.h"
+#include       "Tt/tt_c.h"
 #include       "util/tt_object.h"
 #include       "util/tt_string.h"
 #include       "util/tt_int_rec.h"
index f338635075986bb861ee05565ae191188b63b68a..8d66ce3454230c803942c3ba4fd3e2206443641c 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #include <ctype.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "util/tt_string.h"
 #include "util/tt_port.h"
 #include "util/tt_gettext.h"
diff --git a/cde/lib/tt/mini_isam/Makefile.am b/cde/lib/tt/mini_isam/Makefile.am
new file mode 100644 (file)
index 0000000..244fa66
--- /dev/null
@@ -0,0 +1,22 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../tooltalk.inc
+
+noinst_LIBRARIES= libisam.a
+
+libisam_a_CFLAGS = $(TT_VERSION_DEFINE)
+
+libisam_a_SOURCES = isaddindex.c isamaddindex.c isopen.c isamopen.c \
+             isdelcurr.c isdelrec.c isamdelrec.c isbuild.c \
+             isvars.c isrewrec.c iserase.c iscntl.c isstart.c \
+             isaddprimary.c isrewcurr.c isclose.c isread.c \
+             iswrite.c isamwrite.c issync.c isapplmr.c ismngfcb.c \
+             issort.c ischange1key.c isfab.c isdiskbufs2.c isfd.c isbtree.c \
+             isdel1key.c isfcb.c isfixrec.c issignals.c isapplmw.c \
+             isfcbwatchfd.c isamhooks.c isfcbindex.c isalloc.c isbytearray.c \
+             isdatconv.c isminmax.c isfname.c isvarrec.c isperm.c iserror.c \
+             iskeycmp.c iskeycalc.c iskeyvalid.c isamerror.c iskeyaux.c \
+             isfileio.c ispageio.c isdlink.c isbtree2.c \
+             isbtree3.c isindfreel.c isindexconv.c isbsearch.c isadd1key.c \
+             iskeyconv.c isversion.c isrepair.c iswrrec.c isrename.c \
+            isindexinfo.c isgarbage.c iscurpos.c
diff --git a/cde/lib/tt/slib/Makefile.am b/cde/lib/tt/slib/Makefile.am
new file mode 100644 (file)
index 0000000..a6499ca
--- /dev/null
@@ -0,0 +1,20 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../tooltalk.inc
+
+noinst_LIBRARIES = libstt.a
+
+libstt_a_CXXFLAGS = $(TIRPC_DEFINES) -I../lib
+
+libstt_a_SOURCES = mp_ce_attrs.C mp_observer.C mp_observer_utils.C  \
+mp_otype.C              mp_otype_utils.C           mp_ptype.C           \
+mp_ptype_utils.C        mp_rpc_implement.C         mp_rpc_server.C      \
+mp_rpc_server_utils.C                                                   \
+mp_s_file.C             mp_s_file_utils.C                               \
+mp_s_message.C          mp_s_message_utils.C       mp_s_mp.C            \
+mp_s_pattern.C          mp_s_pattern_utils.C       mp_s_procid.C        \
+mp_s_procid_utils.C     mp_s_msg_context.C         mp_s_pat_context.C   \
+mp_s_session.C          mp_s_session_prop.C        mp_s_session_utils.C \
+mp_s_xdr_functions.C    mp_self_procid.C                                \
+mp_signature.C          mp_signature_utils.C       mp_typedb.C          \
+mp_typedb_utils.C       tt_isstrerror.C
index 274fb7f2be1d5bf3a69f31abbc7c81d202ad1ef6..9bb3e2e7d3b9cc0123e5e179f515dfed3fd05be0 100644 (file)
@@ -37,7 +37,7 @@
 #ifndef MP_S_XDR_FUNCTIONS_H
 #define MP_S_XDR_FUNCTIONS_H
 #include <rpc/rpc.h>
-#include "api/c/tt_c.h"
+#include "Tt/tt_c.h"
 #include "mp_s_message_utils.h"
 #include "mp_s_pattern_utils.h"
 #include "mp_s_procid_utils.h"
index 4bd4f52486efd3b97b80cbc84c1609e2f637a6c7..f997cc71a94d086124768a15b723b5a574cdf883 100644 (file)
@@ -52,7 +52,7 @@
 #include "mp_ptype.h"
 #include "mp_typedb.h"
 #include "api/c/api_api.h"
-#include "tttk/tttk.h"
+#include "Tt/tttk.h"
 #include <sys/stat.h>
 #include <errno.h>
 #include <sys/wait.h>
diff --git a/cde/lib/tt/tooltalk.inc b/cde/lib/tt/tooltalk.inc
new file mode 100644 (file)
index 0000000..8712262
--- /dev/null
@@ -0,0 +1,13 @@
+# This file is imbedded near the top of  every ToolTalk Imakefile.
+# It contains definitions and redefinitions that are common to all
+# of ToolTalk but which aren't referred to anywhere else in the
+# build. 
+
+# It should match tooltalk.tmpl in terms of definitions...
+
+# TT_VERSION defines the version string which is imbedded in all the 
+# binaries and shipped libraries.
+
+TT_VERSION = "CDE Version 2.3.1a"
+TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
+
diff --git a/cde/m4/ax_pthread.m4 b/cde/m4/ax_pthread.m4
new file mode 100644 (file)
index 0000000..d218d1a
--- /dev/null
@@ -0,0 +1,485 @@
+# ===========================================================================
+#        http://www.gnu.org/software/autoconf-archive/ax_pthread.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+#
+# DESCRIPTION
+#
+#   This macro figures out how to build C programs using POSIX threads. It
+#   sets the PTHREAD_LIBS output variable to the threads library and linker
+#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
+#   flags that are needed. (The user can also force certain compiler
+#   flags/libs to be tested by setting these environment variables.)
+#
+#   Also sets PTHREAD_CC to any special C compiler that is needed for
+#   multi-threaded programs (defaults to the value of CC otherwise). (This
+#   is necessary on AIX to use the special cc_r compiler alias.)
+#
+#   NOTE: You are assumed to not only compile your program with these flags,
+#   but also to link with them as well. For example, you might link with
+#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
+#
+#   If you are only building threaded programs, you may wish to use these
+#   variables in your default LIBS, CFLAGS, and CC:
+#
+#     LIBS="$PTHREAD_LIBS $LIBS"
+#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+#     CC="$PTHREAD_CC"
+#
+#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
+#   has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
+#   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
+#
+#   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
+#   PTHREAD_PRIO_INHERIT symbol is defined when compiling with
+#   PTHREAD_CFLAGS.
+#
+#   ACTION-IF-FOUND is a list of shell commands to run if a threads library
+#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
+#   is not found. If ACTION-IF-FOUND is not specified, the default action
+#   will define HAVE_PTHREAD.
+#
+#   Please let the authors know if this macro fails on any platform, or if
+#   you have any other suggestions or comments. This macro was based on work
+#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
+#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
+#   Alejandro Forero Cuervo to the autoconf macro repository. We are also
+#   grateful for the helpful feedback of numerous users.
+#
+#   Updated for Autoconf 2.68 by Daniel Richard G.
+#
+# LICENSE
+#
+#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
+#   Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
+#
+#   This program is free software: you can redistribute it and/or modify it
+#   under the terms of the GNU General Public License as published by the
+#   Free Software Foundation, either version 3 of the License, or (at your
+#   option) any later version.
+#
+#   This program is distributed in the hope that it will be useful, but
+#   WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+#   Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License along
+#   with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#   As a special exception, the respective Autoconf Macro's copyright owner
+#   gives unlimited permission to copy, distribute and modify the configure
+#   scripts that are the output of Autoconf when processing the Macro. You
+#   need not follow the terms of the GNU General Public License when using
+#   or distributing such scripts, even though portions of the text of the
+#   Macro appear in them. The GNU General Public License (GPL) does govern
+#   all other use of the material that constitutes the Autoconf Macro.
+#
+#   This special exception to the GPL applies to versions of the Autoconf
+#   Macro released by the Autoconf Archive. When you make and distribute a
+#   modified version of the Autoconf Macro, you may extend this special
+#   exception to the GPL to apply to your modified version as well.
+
+#serial 22
+
+AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
+AC_DEFUN([AX_PTHREAD], [
+AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([AC_PROG_CC])
+AC_REQUIRE([AC_PROG_SED])
+AC_LANG_PUSH([C])
+ax_pthread_ok=no
+
+# We used to check for pthread.h first, but this fails if pthread.h
+# requires special compiler flags (e.g. on Tru64 or Sequent).
+# It gets checked for in the link test anyway.
+
+# First of all, check if the user has set any of the PTHREAD_LIBS,
+# etcetera environment variables, and if threads linking works using
+# them:
+if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
+       ax_pthread_save_CC="$CC"
+       ax_pthread_save_CFLAGS="$CFLAGS"
+       ax_pthread_save_LIBS="$LIBS"
+       AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       LIBS="$PTHREAD_LIBS $LIBS"
+       AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
+       AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
+       AC_MSG_RESULT([$ax_pthread_ok])
+       if test "x$ax_pthread_ok" = "xno"; then
+               PTHREAD_LIBS=""
+               PTHREAD_CFLAGS=""
+       fi
+       CC="$ax_pthread_save_CC"
+       CFLAGS="$ax_pthread_save_CFLAGS"
+       LIBS="$ax_pthread_save_LIBS"
+fi
+
+# We must check for the threads library under a number of different
+# names; the ordering is very important because some systems
+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
+# libraries is broken (non-POSIX).
+
+# Create a list of thread flags to try.  Items starting with a "-" are
+# C compiler flags, and other items are library names, except for "none"
+# which indicates that we try without any flags at all, and "pthread-config"
+# which is a program returning the flags for the Pth emulation library.
+
+ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+
+# The ordering *is* (sometimes) important.  Some notes on the
+# individual items follow:
+
+# pthreads: AIX (must check this before -lpthread)
+# none: in case threads are in libc; should be tried before -Kthread and
+#       other compiler flags to prevent continual compiler warnings
+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
+#           (Note: HP C rejects this with "bad form for `-t' option")
+# -pthreads: Solaris/gcc (Note: HP C also rejects)
+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
+#      doesn't hurt to check since this sometimes defines pthreads and
+#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
+#      is present but should not be used directly; and before -mthreads,
+#      because the compiler interprets this as "-mt" + "-hreads")
+# -mthreads: Mingw32/gcc, Lynx/gcc
+# pthread: Linux, etcetera
+# --thread-safe: KAI C++
+# pthread-config: use pthread-config program (for GNU Pth library)
+
+case $host_os in
+
+       freebsd*)
+
+       # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
+       # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
+
+       ax_pthread_flags="-kthread lthread $ax_pthread_flags"
+       ;;
+
+       hpux*)
+
+       # From the cc(1) man page: "[-mt] Sets various -D flags to enable
+       # multi-threading and also sets -lpthread."
+
+       ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
+       ;;
+
+       openedition*)
+
+       # IBM z/OS requires a feature-test macro to be defined in order to
+       # enable POSIX threads at all, so give the user a hint if this is
+       # not set. (We don't define these ourselves, as they can affect
+       # other portions of the system API in unpredictable ways.)
+
+       AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
+           [
+#           if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
+            AX_PTHREAD_ZOS_MISSING
+#           endif
+           ],
+           [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
+       ;;
+
+       solaris*)
+
+       # On Solaris (at least, for some versions), libc contains stubbed
+       # (non-functional) versions of the pthreads routines, so link-based
+       # tests will erroneously succeed. (N.B.: The stubs are missing
+       # pthread_cleanup_push, or rather a function called by this macro,
+       # so we could check for that, but who knows whether they'll stub
+       # that too in a future libc.)  So we'll check first for the
+       # standard Solaris way of linking pthreads (-mt -lpthread).
+
+       ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
+       ;;
+esac
+
+# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
+
+AS_IF([test "x$GCC" = "xyes"],
+      [ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"])
+
+# The presence of a feature test macro requesting re-entrant function
+# definitions is, on some systems, a strong hint that pthreads support is
+# correctly enabled
+
+case $host_os in
+       darwin* | hpux* | linux* | osf* | solaris*)
+       ax_pthread_check_macro="_REENTRANT"
+       ;;
+
+       aix* | freebsd*)
+       ax_pthread_check_macro="_THREAD_SAFE"
+       ;;
+
+       *)
+       ax_pthread_check_macro="--"
+       ;;
+esac
+AS_IF([test "x$ax_pthread_check_macro" = "x--"],
+      [ax_pthread_check_cond=0],
+      [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
+
+# Are we compiling with Clang?
+
+AC_CACHE_CHECK([whether $CC is Clang],
+    [ax_cv_PTHREAD_CLANG],
+    [ax_cv_PTHREAD_CLANG=no
+     # Note that Autoconf sets GCC=yes for Clang as well as GCC
+     if test "x$GCC" = "xyes"; then
+       AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
+           [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
+#           if defined(__clang__) && defined(__llvm__)
+            AX_PTHREAD_CC_IS_CLANG
+#           endif
+           ],
+           [ax_cv_PTHREAD_CLANG=yes])
+     fi
+    ])
+ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
+
+ax_pthread_clang_warning=no
+
+# Clang needs special handling, because older versions handle the -pthread
+# option in a rather... idiosyncratic way
+
+if test "x$ax_pthread_clang" = "xyes"; then
+
+       # Clang takes -pthread; it has never supported any other flag
+
+       # (Note 1: This will need to be revisited if a system that Clang
+       # supports has POSIX threads in a separate library.  This tends not
+       # to be the way of modern systems, but it's conceivable.)
+
+       # (Note 2: On some systems, notably Darwin, -pthread is not needed
+       # to get POSIX threads support; the API is always present and
+       # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
+       # -pthread does define _REENTRANT, and while the Darwin headers
+       # ignore this macro, third-party headers might not.)
+
+       PTHREAD_CFLAGS="-pthread"
+       PTHREAD_LIBS=
+
+       ax_pthread_ok=yes
+
+       # However, older versions of Clang make a point of warning the user
+       # that, in an invocation where only linking and no compilation is
+       # taking place, the -pthread option has no effect ("argument unused
+       # during compilation").  They expect -pthread to be passed in only
+       # when source code is being compiled.
+       #
+       # Problem is, this is at odds with the way Automake and most other
+       # C build frameworks function, which is that the same flags used in
+       # compilation (CFLAGS) are also used in linking.  Many systems
+       # supported by AX_PTHREAD require exactly this for POSIX threads
+       # support, and in fact it is often not straightforward to specify a
+       # flag that is used only in the compilation phase and not in
+       # linking.  Such a scenario is extremely rare in practice.
+       #
+       # Even though use of the -pthread flag in linking would only print
+       # a warning, this can be a nuisance for well-run software projects
+       # that build with -Werror.  So if the active version of Clang has
+       # this misfeature, we search for an option to squash it.
+
+       AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
+           [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
+           [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
+            # Create an alternate version of $ac_link that compiles and
+            # links in two steps (.c -> .o, .o -> exe) instead of one
+            # (.c -> exe), because the warning occurs only in the second
+            # step
+            ax_pthread_save_ac_link="$ac_link"
+            ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
+            ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
+            ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
+            ax_pthread_save_CFLAGS="$CFLAGS"
+            for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
+               AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
+               CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
+               ac_link="$ax_pthread_save_ac_link"
+               AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
+                   [ac_link="$ax_pthread_2step_ac_link"
+                    AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
+                        [break])
+                   ])
+            done
+            ac_link="$ax_pthread_save_ac_link"
+            CFLAGS="$ax_pthread_save_CFLAGS"
+            AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
+            ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
+           ])
+
+       case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
+               no | unknown) ;;
+               *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
+       esac
+
+fi # $ax_pthread_clang = yes
+
+if test "x$ax_pthread_ok" = "xno"; then
+for ax_pthread_try_flag in $ax_pthread_flags; do
+
+       case $ax_pthread_try_flag in
+               none)
+               AC_MSG_CHECKING([whether pthreads work without any flags])
+               ;;
+
+               -mt,pthread)
+               AC_MSG_CHECKING([whether pthreads work with -mt -lpthread])
+               PTHREAD_CFLAGS="-mt"
+               PTHREAD_LIBS="-lpthread"
+               ;;
+
+               -*)
+               AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
+               PTHREAD_CFLAGS="$ax_pthread_try_flag"
+               ;;
+
+               pthread-config)
+               AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
+               AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
+               PTHREAD_CFLAGS="`pthread-config --cflags`"
+               PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
+               ;;
+
+               *)
+               AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
+               PTHREAD_LIBS="-l$ax_pthread_try_flag"
+               ;;
+       esac
+
+       ax_pthread_save_CFLAGS="$CFLAGS"
+       ax_pthread_save_LIBS="$LIBS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       LIBS="$PTHREAD_LIBS $LIBS"
+
+       # Check for various functions.  We must include pthread.h,
+       # since some functions may be macros.  (On the Sequent, we
+       # need a special flag -Kthread to make this header compile.)
+       # We check for pthread_join because it is in -lpthread on IRIX
+       # while pthread_create is in libc.  We check for pthread_attr_init
+       # due to DEC craziness with -lpthreads.  We check for
+       # pthread_cleanup_push because it is one of the few pthread
+       # functions on Solaris that doesn't have a non-functional libc stub.
+       # We try pthread_create on general principles.
+
+       AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
+#                      if $ax_pthread_check_cond
+#                       error "$ax_pthread_check_macro must be defined"
+#                      endif
+                       static void routine(void *a) { a = 0; }
+                       static void *start_routine(void *a) { return a; }],
+                      [pthread_t th; pthread_attr_t attr;
+                       pthread_create(&th, 0, start_routine, 0);
+                       pthread_join(th, 0);
+                       pthread_attr_init(&attr);
+                       pthread_cleanup_push(routine, 0);
+                       pthread_cleanup_pop(0) /* ; */])],
+           [ax_pthread_ok=yes],
+           [])
+
+       CFLAGS="$ax_pthread_save_CFLAGS"
+       LIBS="$ax_pthread_save_LIBS"
+
+       AC_MSG_RESULT([$ax_pthread_ok])
+       AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
+
+       PTHREAD_LIBS=""
+       PTHREAD_CFLAGS=""
+done
+fi
+
+# Various other checks:
+if test "x$ax_pthread_ok" = "xyes"; then
+       ax_pthread_save_CFLAGS="$CFLAGS"
+       ax_pthread_save_LIBS="$LIBS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       LIBS="$PTHREAD_LIBS $LIBS"
+
+       # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+       AC_CACHE_CHECK([for joinable pthread attribute],
+           [ax_cv_PTHREAD_JOINABLE_ATTR],
+           [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
+            for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
+                AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
+                                                [int attr = $ax_pthread_attr; return attr /* ; */])],
+                               [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
+                               [])
+            done
+           ])
+       AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
+              test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
+              test "x$ax_pthread_joinable_attr_defined" != "xyes"],
+             [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
+                                 [$ax_cv_PTHREAD_JOINABLE_ATTR],
+                                 [Define to necessary symbol if this constant
+                                  uses a non-standard name on your system.])
+              ax_pthread_joinable_attr_defined=yes
+             ])
+
+       AC_CACHE_CHECK([whether more special flags are required for pthreads],
+           [ax_cv_PTHREAD_SPECIAL_FLAGS],
+           [ax_cv_PTHREAD_SPECIAL_FLAGS=no
+            case $host_os in
+            solaris*)
+            ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
+            ;;
+            esac
+           ])
+       AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
+              test "x$ax_pthread_special_flags_added" != "xyes"],
+             [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
+              ax_pthread_special_flags_added=yes])
+
+       AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
+           [ax_cv_PTHREAD_PRIO_INHERIT],
+           [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
+                                            [[int i = PTHREAD_PRIO_INHERIT;]])],
+                           [ax_cv_PTHREAD_PRIO_INHERIT=yes],
+                           [ax_cv_PTHREAD_PRIO_INHERIT=no])
+           ])
+       AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
+              test "x$ax_pthread_prio_inherit_defined" != "xyes"],
+             [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
+              ax_pthread_prio_inherit_defined=yes
+             ])
+
+       CFLAGS="$ax_pthread_save_CFLAGS"
+       LIBS="$ax_pthread_save_LIBS"
+
+       # More AIX lossage: compile with *_r variant
+       if test "x$GCC" != "xyes"; then
+           case $host_os in
+               aix*)
+               AS_CASE(["x/$CC"],
+                   [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
+                   [#handle absolute path differently from PATH based program lookup
+                    AS_CASE(["x$CC"],
+                        [x/*],
+                        [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
+                        [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
+               ;;
+           esac
+       fi
+fi
+
+test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
+
+AC_SUBST([PTHREAD_LIBS])
+AC_SUBST([PTHREAD_CFLAGS])
+AC_SUBST([PTHREAD_CC])
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test "x$ax_pthread_ok" = "xyes"; then
+       ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
+       :
+else
+       ax_pthread_ok=no
+       $2
+fi
+AC_LANG_POP
+])dnl AX_PTHREAD
diff --git a/cde/programs/Makefile.am b/cde/programs/Makefile.am
new file mode 100644 (file)
index 0000000..5053d68
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = backdrops icons dsdm dtmail dtpad dtfile dtwm dtlogin \
+        dtsession dthello dtstyle dtexec dtdbcache dticon dtterm dtcalc \
+       dtaction dtspcd dtscreen dtcm dtsearchpath palettes \
+       dtappintegrate dtprintegrate dtconfig dtcreate dtprintinfo fontaliases \
+       dtdspmsg dtimsstart dtpdm dtsr dtpdmd types \
+       tttypes util dtopen localized
+
+# NOTYET = dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls ttsnoop 
diff --git a/cde/programs/backdrops/Makefile.am b/cde/programs/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..eb91fc1
--- /dev/null
@@ -0,0 +1,13 @@
+backdropdir = $(CDE_INSTALLATION_TOP)/share/backdrops
+
+dist_backdrop_DATA = Ankh.bm Crochet.pm Lattice.pm Paver.pm SkyLight.pm \
+Background.bm Foreground.bm Leaves.pm Pebbles.pm Sprinkles.pm \
+BrickWall.bm InlayColor.pm Makefile.am PinStripe.pm SunLogo.pm \
+Concave.pm InlayPlain.pm NoBackdrop.bm RakedSand.bm Toronto.bm \
+Convex.pm KnitLight.pm NoBackdrop.pm RicePaper.pm WaterDrops.pm \
+Corduroy.pm LatticeBig.pm OldChars.pm SkyDark.pm Wooly.pm
+
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/backdrops
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/ && $(LN_S) share/backdrops backdrops
+
diff --git a/cde/programs/dsdm/Makefile.am b/cde/programs/dsdm/Makefile.am
new file mode 100644 (file)
index 0000000..78a3202
--- /dev/null
@@ -0,0 +1,9 @@
+bin_PROGRAMS = dsdm
+
+dsdm_LDADD = $(XTOOLLIB)
+
+if SOLARIS
+dsdm_LDADD += -ldl
+endif
+
+dsdm_SOURCES = dsdm.c proxy.c
index 5d13780036452f59bd9de86c1e07b03ac4c8bc4d..d795c4efd1c639d6046b08547b60c77abd869e82 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
-#if defined(SVR4)
-#include <string.h>
-#else  /* SVR4 */
-#include <strings.h>
-#endif /* SVR4 */
+#if defined(HAVE_CONFIG_H)
+# include <autotools_config.h>
+#endif
+#if defined(HAVE_STRING_H)
+# include <string.h>
+#endif
+
+#if defined(HAVE_STRINGS_H)
+# include <strings.h>
+#endif
+
+#if defined(HAVE_SYS_TYPES_H)
+# include <sys/types.h>
+#endif
+
+#include <unistd.h>
 
 #define XFreeDefn      char *
 
@@ -77,6 +88,8 @@
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 
+extern void ProxyInit(Display *dpy, Window dsdm_win);
+extern void ProxyMain(Display *dpy, XEvent *event);
 /*
  * Use DPRINTF to write debugging messages.  Place all arguments in an
  * extra pair of parentheses, like so:
index 62704c853f964667b68761fa6d1107785e851440..60c212a77c68c6e705ee51ade572c25834398133 100644 (file)
@@ -185,7 +185,7 @@ extern Atom ATOM_WM_STATE;
 
 unsigned char *GetInterestProperty();
 
-static ForwardConversion();
+static int ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info);
 
 static drop_info_t drop_table[DROP_TABLE_MAX];
 Atom ATOM_SUN_DND_TRIGGER;
@@ -1134,7 +1134,7 @@ CopyTargets(Display *dpy, Atom prop, Window old_win, Window new_win)
 /* Forward the SelectionNotify to the receiver.
    Returns True if we get ATOM_SUN_DND_DONE or ATOM_SUN_SELECTION_END */
 static
-ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info)
+int ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info)
 {
     int ol_done = False;
 
diff --git a/cde/programs/dtaction/Makefile.am b/cde/programs/dtaction/Makefile.am
new file mode 100644 (file)
index 0000000..f1370df
--- /dev/null
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtaction
+
+dtaction_SOURCES = Main.c
+
+dtaction_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtaction_LDADD += -ldl
+endif
+
+if LINUX
+dtaction_LDADD += -lcrypt
+endif
+
+if FREEBSD
+dtaction_LDADD += -lcrypt
+endif
+
+if NETBSD
+dtaction_LDADD += -lcrypt
+endif
diff --git a/cde/programs/dtappbuilder/Makefile.am b/cde/programs/dtappbuilder/Makefile.am
new file mode 100644 (file)
index 0000000..bb371c6
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+SUBDIRS = src
diff --git a/cde/programs/dtappbuilder/src/Makefile.am b/cde/programs/dtappbuilder/src/Makefile.am
new file mode 100644 (file)
index 0000000..d3759c2
--- /dev/null
@@ -0,0 +1,28 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+SUBDIRS = libAButil libABobj libABobjXm libABil abmf ab
+
+dtbuilder::
+        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
+        for i in libAButil libABobj libABobjXm libABil ab ;\
+        do \
+        (cd $$i ; echo "making" dtbuilder "in $(CURRENT_DIR)/$$i..."; \
+        $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'FIRST_LIBPATH=$(FIRST_LIBPATH)' 'FIRST_INCLUDES=$(FIRST_INCLUDES)' dtbuilder); \
+        done
+
+dtcodegen::
+        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
+        for i in libAButil libABobj libABobjXm libABil abmf ;\
+        do \
+        (cd $$i ; echo "making" dtcodegen "in $(CURRENT_DIR)/$$i..."; \
+        $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'FIRST_LIBPATH=$(FIRST_LIBPATH)' 'FIRST_INCLUDES=$(FIRST_INCLUDES)' dtcodegen); \
+        done
+
+bin_PROGRAMS = dtcodegen dtbuilder
+
+clean::
+        $(RM) -rf include
diff --git a/cde/programs/dtappbuilder/src/ab/Makefile.am b/cde/programs/dtappbuilder/src/ab/Makefile.am
new file mode 100644 (file)
index 0000000..63b8c6b
--- /dev/null
@@ -0,0 +1,28 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+# Since dtcodegen depends on libXm, libDtWidget, and other libs,
+# it will not be built properly during make includes.
+# So, when 'all' is made in this directory, redo make includes/depend.
+# An imake hack no doubt, but it is necessary for now.
+
+
+all:: generated_includes abdepend
+
+include "../ab.tmpl"
+include "../ab.rules"
+
+bin_PROGRAMS = dtbuilder
+
+if BSD
+UTILLIB = -lutil
+endif
+
+dtbuilder_LDADD = ../libABil/libABil.a  ../libABobjXm/libABobjXm.a  \
+        ../libABobj/libABobj.a ../libAButil/libAButil.a \
+        $(LIBWIDGET) $(LIBTERM) $(LIBHELP) $(LIBSVC) \
+        $(LIBTT) -lUil $(MRESOURCELIB) -lXm $(XTOOLLIB) ${X_LIB} \
+        $(UTILLIB) -lm
+
+dtbuilder_CFLAGS = -DPIXMAP_WORKAROUND -I$(ABINCLUDES)
+
+dtbuilder_SOURCES =
diff --git a/cde/programs/dtappintegrate/Makefile.am b/cde/programs/dtappintegrate/Makefile.am
new file mode 100644 (file)
index 0000000..0947e14
--- /dev/null
@@ -0,0 +1,15 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_SCRIPTS = dtappintegrate
+BUILT_SOURCES = $(bin_SCRIPTS)
+CLEANFILES = $(bin_SCRIPTS)
+
+LOCAL_CPP_DEFINES = -DKORNSHELL=$(KSH)                 \
+       -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP)  \
+       -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
+
+dtappintegrate: dtappintegrate.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# -DSTAR='*' $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
index 62ee9f9a1cc988161ae2ed0ea17053a2876e776f..4404caa9c41b0a23362f35b18ab12f7fc41915f0 100755 (executable)
@@ -1,6 +1,5 @@
 XCOMM!KORNSHELL
 XCOMM $XConsortium: dtappintegrate.src /main/4 1996/04/21 19:27:37 drk $
-#define COMMENT_STAR *
 XCOMM ###################################################################
 XCOMM                                                                   #
 XCOMM  dtappintegrate                                                   #
@@ -153,9 +152,9 @@ function LinkCfgs
   do
     if [[ $pattern = "(*)" ]]
       then
-      files=$(ls -d "$source"/COMMENT_STAR 2>/dev/null)
+      files=$(ls -d "$source/"STAR 2>/dev/null)
     else
-      files=$(ls -d "$source"/"$pattern" 2>/dev/null)
+      files=$(ls -d "$source/$pattern" 2>/dev/null)
     fi
     if $files
       then
@@ -480,4 +479,5 @@ fi
 XCOMM -------------------------------------------------------------------
 XCOMM  Exit
 XCOMM -------------------------------------------------------------------
+
 ExitOut 0
diff --git a/cde/programs/dtcalc/Makefile.am b/cde/programs/dtcalc/Makefile.am
new file mode 100644 (file)
index 0000000..7dfd6f5
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtcalc
+
+dtcalc_CPPFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
+
+dtcalc_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtcalc_LDADD += -lintl -ldl
+endif
+
+
+dtcalc_SOURCES = calctool.c ds_common.c ds_popup.c ds_widget.c         \
+                ds_xlib.c functions.c help.c motif.c mp.c text.c       \
+                calctool.h ds_popup.h ds_xlib.h patchlevel.h           \
+                ds_common.h ds_widget.h motif.h
diff --git a/cde/programs/dtcm/Makefile.am b/cde/programs/dtcm/Makefile.am
new file mode 100644 (file)
index 0000000..ecd2556
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = libDtCmP dtcm server
diff --git a/cde/programs/dtcm/dtcm/Makefile.am b/cde/programs/dtcm/dtcm/Makefile.am
new file mode 100644 (file)
index 0000000..7a616ba
--- /dev/null
@@ -0,0 +1,46 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtcm dtcm_delete dtcm_insert dtcm_lookup dtcm_editor
+
+AM_CFLAGS = $(DT_INCDIR) $(CSA_INCDIR) -I../../../lib/csa      \
+-I../libDtCmP
+
+LDADD = ../libDtCmP/libDtCmP.a $(LIBCSA) $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+AM_CFLAGS += -xstrconst -Xc -v
+endif
+
+if FREEBSD
+LDADD += -lcompat
+endif
+
+if NETBSD
+LDADD += -lcompat
+endif
+
+dtcm_SOURCES = MonthPanel.c    RFCMIME.c       about.c \
+               alarm.c         blist.c         browser.c \
+               calendarA.c     cm_i18n.c       cmtt.c \
+               datefield.c     dayglance.c     deskset.c \
+               dnd.c           dssw.c          editor.c \
+               find.c          fns.c           font.c \
+               format.c        goto.c          graphics.c \
+               group_editor.c  help.c          i18nxlate.c \
+               icon.c          md5.c           misc.c \
+               monthglance.c   namesvc.c       print.c \
+               props.c         props_pu.c      reminders.c \
+               rfp.c           select.c        session.c \
+              submit.c        tempbr.c        timezone.c \
+               todo.c          weekglance.c    x_graphics.c \
+               yearglance.c
+
+dtcm_delete_SOURCES = cm_delete.c
+
+dtcm_insert_SOURCES = cm_insert.c
+
+dtcm_lookup_SOURCES = cm_lookup.c
+
+dtcm_editor_SOURCES = datefield.c     deskset.c       dssw.c \
+                     dtcm_editor.c   help.c          misc.c \
+                     reminders.c     rfp.c
diff --git a/cde/programs/dtcm/libDtCmP/Makefile.am b/cde/programs/dtcm/libDtCmP/Makefile.am
new file mode 100644 (file)
index 0000000..bd9bebd
--- /dev/null
@@ -0,0 +1,21 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libDtCmP.a
+
+libDtCmP_a_CFLAGS = $(CSA_INCDIR) -I../../../lib/csa -DRFC_MIME        \
+       -DLINE_COUNT -DV2 -DOW_I18N
+
+if SOLARIS
+libDtCmP_a_CFLAGS += -xstrconst -Xc -v
+endif
+
+libDtCmP_a_SOURCES = cm_tty.c cmfns.c dtfns.c props.c resource.c       \
+                    timeops.c util.c getdate.y
+
+# This is strange - ususally you generate a .h and a .c.  But CDE
+# comes with getdate.h, and you cannot generate it via yacc/lex.  So -
+# someday this should be redone properly...  see
+# https://opensource.apple.com/source/shell_cmds/shell_cmds-198/find/getdate.y.auto.html
+# for what seems like a more recent version...
+BUILT_SOURCES = getdate.c
+CLEANFILES = $(BUILT_SOURCES)
index 67c2e078e6170f41823ff43ad19084c815f25563..7fc47f133d62ddd7e96cc4c79e27d1534bc11fa2 100644 (file)
@@ -130,7 +130,7 @@ char *hours[24] = {
  * Given a weekmask and the first day of the week, calculate
  * the number of times outstanding in the week.
  */
-extern int
+int
 ntimes_this_week(u_int weekmask, int firstday)
 {
        int i, ntimes, weekdaymask = 1 << firstday;
@@ -146,21 +146,21 @@ ntimes_this_week(u_int weekmask, int firstday)
 }
 
 /* Return beginning of time */
-extern Tick
+Tick
 get_bot(void)
 {
        return bot;
 }
 
 /* Return end of time */
-extern Tick
+Tick
 get_eot(void)
 {
        return eot;
 }
 
 /* Given a weekmask, find the last appointment in the week */
-extern int
+int
 lastapptofweek(u_int mask)
 {
        int n;
@@ -174,7 +174,7 @@ lastapptofweek(u_int mask)
 }
 
 /*      Remove after v3 release */
-extern boolean_t
+boolean_t
 magic_time(Tick t)
 {
         boolean_t magic=B_FALSE;
@@ -188,7 +188,7 @@ magic_time(Tick t)
         return(magic);
 }
 /* for 12 hour clock, if 24 subtract 12 */
-extern boolean_t
+boolean_t
 adjust_hour(int *hr)
 {
        boolean_t am = B_TRUE;
@@ -204,7 +204,7 @@ adjust_hour(int *hr)
 }
 
 
-extern int
+int
 timeok( Tick t)
 {
        int r =((t >= bot) &&(t <= eot));
@@ -232,19 +232,19 @@ dst_changed(Tick old, Tick new)
        }
 }
        
-extern int
+int
 seconds(int n, Unit unit)
 {
        return(n *(int)unit);
 }
 
-extern double
+double
 seconds_dble(double n, Unit unit)
 {
        return((double)(n * (int)unit));
 }
 
-extern int
+int
 year(Tick t)
 {
        struct tm *tm;
@@ -254,7 +254,7 @@ year(Tick t)
        return(tm->tm_year + 1900);
 }
 
-extern int
+int
 month(Tick t)
 {
        struct tm *tm;
@@ -264,7 +264,7 @@ month(Tick t)
        return(tm->tm_mon+1);
 }
 
-extern int
+int
 hour(Tick t)
 {
        struct tm *tm;
@@ -274,7 +274,7 @@ hour(Tick t)
        return(tm->tm_hour);
 }
 
-extern int
+int
 minute(Tick t)
 {
        struct tm *tm;
@@ -284,14 +284,14 @@ minute(Tick t)
        return(tm->tm_min);
 }
 
-extern int
+int
 leapyr(int y)
 {
        return
         (y % 4 == 0 && y % 100 !=0 || y % 400 == 0);
 }
 
-extern int
+int
 monthlength(Tick t)
 {
        int mon;
@@ -303,7 +303,7 @@ monthlength(Tick t)
        return(((mon==1) && leapyr(tm.tm_year+1900))? 29 : monthdays[mon]);
 }
 
-extern int
+int
 monthseconds(Tick t)
 {
        int mon;
@@ -315,7 +315,7 @@ monthseconds(Tick t)
        return(((mon==1) && leapyr(tm.tm_year+1900))? 29*daysec : monthsecs[mon]);
 }
 
-extern int
+int
 dom(Tick t)
 {
        struct tm *tm;
@@ -325,7 +325,7 @@ dom(Tick t)
        return(tm->tm_mday);
 }
 
-extern int
+int
 wom(Tick t)
 {
        struct tm *tm;
@@ -365,13 +365,13 @@ next_nmonth(Tick t, int n)
        return(mktime(&tm));
 }
 
-extern Tick
+Tick
 nextmonth(Tick t)
 {
        return(next_nmonth(t, 1));
 }
 
-extern boolean_t
+boolean_t
 weekofmonth(Tick t, int *wk)
 {
        struct tm tm, tm1, tm2;
@@ -403,7 +403,7 @@ weekofmonth(Tick t, int *wk)
        }
 }
 
-extern int
+int
 dow(Tick t)
 {
        struct tm tm;
@@ -413,7 +413,7 @@ dow(Tick t)
        return(tm.tm_wday);
 }
 
-extern int /* find dow(0-6) that 1st dom falls on */
+int /* find dow(0-6) that 1st dom falls on */
 fdom(Tick t)
 {
        struct tm tm;
@@ -427,7 +427,7 @@ fdom(Tick t)
        return(tm.tm_wday);
 }
 
-extern int
+int
 ldom(Tick t /* find dow(0-6) that last dom falls on */ )
 {
        struct tm tm;
@@ -442,21 +442,21 @@ ldom(Tick t /* find dow(0-6) that last dom falls on */ )
 }
 
 /* returns tick of last day of month */
-extern Tick
+Tick
 last_dom(Tick tick)
 {
         return(upperbound(next_ndays(tick, monthlength(tick) - dom(tick))));
 }
 
 /* returns tick of first day of month */
-extern Tick
+Tick
 first_dom(Tick tick)
 {
         return(lowerbound(last_ndays(tick, dom(tick)-1)));
 }
 
 /* returns tick of first day of week */
-extern Tick
+Tick
 first_dow(Tick tick)
 {
        int d;
@@ -470,7 +470,7 @@ first_dow(Tick tick)
 }
 
 /* returns tick of first day of week */
-extern Tick
+Tick
 last_dow(Tick tick)
 {
        int d;
@@ -484,13 +484,13 @@ last_dow(Tick tick)
         return(upperbound(next_ndays(tick, d)));
 }
 /* returns number of weeks in month */
-extern int
+int
 numwks(Tick tick)
 {
         return (wom(last_dom(tick)));
 }
 
-extern int
+int
 adjust_dst(Tick start, Tick next) 
 {
        DSTchange change;
@@ -508,7 +508,7 @@ adjust_dst(Tick start, Tick next)
        return(next);
 }
 
-extern Tick
+Tick
 next_nhours(Tick t, int n)
 {
        Tick next;
@@ -525,7 +525,7 @@ next_nhours(Tick t, int n)
        return(next);
 }
 
-extern Tick
+Tick
 last_ndays(Tick t, int n)
 {
        Tick last;
@@ -543,7 +543,7 @@ last_ndays(Tick t, int n)
        return(last);
 }
 
-extern Tick
+Tick
 next_ndays(Tick t, int n)
 {
        Tick next;
@@ -565,7 +565,7 @@ next_ndays(Tick t, int n)
        return(next);
 }
 
-extern Tick
+Tick
 nextday(Tick t)
 {
        Tick next;
@@ -575,7 +575,7 @@ nextday(Tick t)
        return(next);
 }
 
-extern Tick
+Tick
 prevday(Tick t)
 {
        Tick prev;
@@ -585,7 +585,7 @@ prevday(Tick t)
        return(prev);
 }
 
-extern Tick
+Tick
 nextweek(Tick t)
 {
        Tick next;
@@ -595,7 +595,7 @@ nextweek(Tick t)
        return(next);
 }
 
-extern Tick
+Tick
 prevweek(Tick t)
 {
        Tick prev;
@@ -605,7 +605,7 @@ prevweek(Tick t)
        return(prev);
 }
 
-extern Tick
+Tick
 next2weeks(Tick t)
 {
        Tick next;
@@ -615,7 +615,7 @@ next2weeks(Tick t)
        return(next);
 }
 
-extern Tick
+Tick
 prev2weeks(Tick t)
 {
        Tick prev;
@@ -626,7 +626,7 @@ prev2weeks(Tick t)
 }
 
 /*             WORK OUT A BETTER WAY TO DO THIS!!      */
-extern Tick
+Tick
 prevmonth_exactday(Tick t)
 {
        Tick prev; int day;
@@ -660,7 +660,7 @@ prevmonth_exactday(Tick t)
 }
 
 /*             WORK OUT A BETTER WAY TO DO THIS!!      */
-extern Tick
+Tick
 nextmonth_exactday(Tick t)
 {
        Tick next; int day;
@@ -692,7 +692,7 @@ nextmonth_exactday(Tick t)
        return(next);
 }
 
-extern Tick
+Tick
 nextnyear(Tick t, int n)
 {
        struct tm tm;
@@ -707,13 +707,13 @@ nextnyear(Tick t, int n)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 nextyear(Tick t)
 {
        return(nextnyear(t, 1));
 }
 
-extern Tick
+Tick
 prevnday_exacttime(Tick t, int n)
 {
        Tick prev;
@@ -723,7 +723,7 @@ prevnday_exacttime(Tick t, int n)
        return(prev);
 }
 
-extern Tick
+Tick
 prevnyear(Tick t, int n)
 {
        struct tm tm;
@@ -738,13 +738,13 @@ prevnyear(Tick t, int n)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 prevyear(Tick t)
 {
        return(prevnyear(t, 1));
 }
 
-extern Tick
+Tick
 previousmonth(Tick t)
 {
        struct tm tm;
@@ -771,7 +771,7 @@ previousmonth(Tick t)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 prev_nmonth(Tick t, int n)
 {
        struct tm tm;
@@ -801,7 +801,7 @@ prev_nmonth(Tick t, int n)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 jan1(Tick t)
 {
        struct tm tm;
@@ -818,7 +818,7 @@ jan1(Tick t)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 nextjan1(Tick t)
 {
        struct tm tm;
@@ -836,7 +836,7 @@ nextjan1(Tick t)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 lastjan1(Tick t)
 {
        struct tm tm;
@@ -854,7 +854,7 @@ lastjan1(Tick t)
 #endif /* SVR4 */
 }
 
-extern Tick
+Tick
 lowerbound(Tick t)
 {
        struct tm tm;
@@ -871,7 +871,7 @@ lowerbound(Tick t)
        return(timelocal(&tm));
 #endif /* SVR4 */
 }
-extern Tick
+Tick
 lower_bound(int i, Tick t)
 {
         struct tm tm;
@@ -888,7 +888,7 @@ lower_bound(int i, Tick t)
         return (timelocal(&tm));
 #endif /* SVR4 */
 }
-extern Tick
+Tick
 upperbound(Tick t)
 {
         struct tm tm;
@@ -912,7 +912,7 @@ leapsB4(int y)
        return((y-1)/4 -(y-1)/100 +(y-1)/400);
 }
 
-extern Tick
+Tick
 xytoclock(int x, int y, Tick t)
 {
        int dd, mn, yr, ly, leaps;
@@ -943,13 +943,13 @@ xytoclock(int x, int y, Tick t)
        return(tick);
 }
 
-extern Tick
+Tick
 now(void)
 {
        return(time(0));
 }
 
-extern void
+void
 set_timezone(char *tzname)
 {
        static char tzenv[MAXPATHLEN];
@@ -970,7 +970,7 @@ set_timezone(char *tzname)
        }
 }
  
-extern long
+long
 gmt_off(void)
 {
         struct tm tm;
@@ -999,7 +999,7 @@ gmt_off(void)
  * definitions of eot and EOT need to be changed as well as some
  * of the routines in this file and the caller of these routines.
  */
-extern void
+void
 init_time(void)
 {
        struct tm tm, gm;
@@ -1035,57 +1035,57 @@ init_time(void)
        eot             =mktime(&tm);
 }
 
-extern int
+int
 seconds_to_hours(int n)
 {
         return(n/(int)hrsec);
 }
 
-extern int
+int
 hours_to_seconds(int n)
 {
         return(n *(int)hrsec);
 }
 
-extern int
+int
 seconds_to_minutes(int n)
 {
         return(n/60);
 }
 
-extern int
+int
 minutes_to_seconds(int n)
 {
         return(n *(int)minsec);
 }
 
 
-extern int
+int
 days_to_seconds(int n)
 {
         return(n *(int)daysec);
 }
 
-seconds_to_days(int n)
+int seconds_to_days(int n)
 {
         return(n/(int)daysec);
 }
 
 /*
-extern int
+int
 weeks_to_seconds(int n)
 {
         return(n *(int)wksec);
 }
 
-extern int
+int
 seconds_to_weeks(int)
 {
         return(n/(int)wksec);
 }
 */
 
-extern Tick
+Tick
 monthdayyear(int m, int d, int y)
 {
         int t, t1;
diff --git a/cde/programs/dtcm/server/Makefile.am b/cde/programs/dtcm/server/Makefile.am
new file mode 100644 (file)
index 0000000..541ad82
--- /dev/null
@@ -0,0 +1,37 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = rpc.cmsd
+
+rpc_cmsd_CFLAGS = -I../../../lib/csa $(DT_INCDIR) $(CSA_INCDIR)
+
+rpc_cmsd_LDADD = $(LIBCSA) $(DTCLIENTLIBS) $(XTOOLLIB) 
+
+if SOLARIS
+rpc_cmsd_CFLAGS += -xstrconst -Xc -v
+rpc_cmsd_LDADD += -lsocket -lnsl -lintl -lm -ldl
+endif
+
+rpc_cmsd_SOURCES = parser.c access.c callback.c cmscalendar.c          \
+                  cmsconvert.c cmsentry.c cmsmatch.c delete.c          \
+                  garbage.c insert.c lexit.c list.c log.c lookup.c     \
+                  reclotick.c recount.c relasttick.c reminder.c        \
+                  renexttick.c repeat.c reprevtick.c rerule.c          \
+                  reutil.c tree.c utility.c v4ops.c v5ops.c            \
+                  cmsfunc.c programtable.c rtable2.c rtable3.c         \
+                  rtable4.c svcmain.c update.c access.h cmsentry.h     \
+                  insert.h parser.h tree.h callback.h cmsmatch.h       \
+                  lexer.h reminder.h update.h cmsattr.h data.h         \
+                  list.h repeat.h utility.h cmscalendar.h delete.h     \
+                  log.h reutil.h v4ops.h cmsconvert.h garbage.h        \
+                  lookup.h rpcextras.h v5ops.h
+
+BUILT_SOURCES = parser.c parser.h
+CLEANFILES = parser.c parser.h y.tab.c  y.tab.h
+
+AM_YFLAGS = -d
+
+parser.c parser.h: parser.y
+       $(YACC) $(AM_YFLAGS) $<
+       $(SED) -e "s/yy/yyy/g" -e "/# line/d" y.tab.c > parser.c
+       $(SED) -e 's/yy/yyy/g' y.tab.h >  parser.h
+
index 8b9b27fa7ba8727c8a8a7c68ebeef6ca34a75d14..469daf9b8199d11a9d3a68e4b82963bfa86c6f0e 100644 (file)
@@ -38,6 +38,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <time.h>
 #include <sys/time.h>
 #include <sys/resource.h>
 #ifdef SVR4
diff --git a/cde/programs/dtconfig/Makefile.am b/cde/programs/dtconfig/Makefile.am
new file mode 100644 (file)
index 0000000..9495f0c
--- /dev/null
@@ -0,0 +1,6 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+if SOLARIS
+SUBDIRS = sun
+endif
+
diff --git a/cde/programs/dtconfig/hp/Imakefile b/cde/programs/dtconfig/hp/Imakefile
deleted file mode 100644 (file)
index 6e7fa4a..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/5 1996/07/24 14:15:31 drk $
-/*                                                                      *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-
-LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
-
-TARGETS = dtconfig dtlogin.rc \
-       dtrc dtrc.dtlogin_st dtrc.getty_wait dtrc.graph_conf
-
-AllTarget($(TARGETS))
-
-CppScriptTarget(dtconfig,dtconfig.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(dtlogin.rc,dtlogin.rc.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(dtrc,dtrc.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(dtrc.dtlogin_st,dtrc.dtlogin_st.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(dtrc.getty_wait,dtrc.getty_wait.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(dtrc.graph_conf,dtrc.graph_conf.src,$(LOCAL_CPP_DEFINES),)
diff --git a/cde/programs/dtconfig/hp/dtconfig.src b/cde/programs/dtconfig/hp/dtconfig.src
deleted file mode 100644 (file)
index e3be3ad..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtconfig.src /main/1 1996/07/24 11:39:47 drk $
-XCOMM
-XCOMM This version of the CDE dtconfig script is for use in the HP-UX
-XCOMM operating environment.
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM This script can be run after CDE installation to configure CDE within
-XCOMM the host platforms operating environment.  For example, when auto-start
-XCOMM is selected, the CDE desktop login window will be displayed at end of the
-XCOMM workstation's power up boot cycle.
-XCOMM
-XCOMM Location:        CDE_INSTALLATION_TOP/bin/dtconfig
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-mode=$1
-arg_count=$#
-prg_name=$0
-
-Message()
-{
-XCOMM Message() - display message from dtconfig.cat
-XCOMM   $1 - message id
-XCOMM   $2 - fallback message text
-
-    if [ -x $DTDSPMSG ]; then
-       NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat:/usr/dt/lib/nls/msg/C/%N.cat $DTDSPMSG -s 30 dtconfig $1 "$2" "$3"
-       echo " "
-    else
-       echo "$2"
-    fi
-}
-
-usage_error() {
-    echo " "
-    Message 1 " CDE configuration utility"
-    echo " "
-    Message 2 "  $prg_name -d     (disable auto-start)" $prg_name
-    Message 3 "  $prg_name -e     (enable auto-start)" $prg_name
-    Message 4 "  $prg_name -kill  (kill dtlogin)" $prg_name
-    Message 5 "  $prg_name -reset (reset dtlogin)" $prg_name
-    Message 6 "  $prg_name -p     (printer action update)" $prg_name
-    echo " "
-}
-
-
-DTDSPMSG=/usr/dt/bin/dtdspmsg
-RC_MASTER=/sbin/init.d/dtlogin.rc
-RC_CONFIG_DESKTOP=/etc/rc.config.d/desktop
-VUERC=/usr/vue/bin/vuerc
-
-set `id`
-if [ $1 != "uid=0(root)" ]; then
-    Message 7 "$prg_name: this script must be run as root" $prg_name
-    exit 1
-fi
-
-if [ $arg_count -ne 1 ]; then
-    echo " "
-XCOMM
-XCOMM Display error message for too many arguments
-XCOMM
-    if [ $arg_count -gt 1 ]; then
-       Message 8 "Usage: Too many arguments"
-
-XCOMM
-XCOMM Display error message for NULL arguments passed
-XCOMM
-    elif [ $arg_count -eq 0 ]; then
-       Message 9 "Usage: Needs one argument"
-    fi
-
-    usage_error
-    exit 1
-fi
-
-rc_master_check() {
-    if [ ! -x $RC_MASTER ]; then
-       Message 10 "option failed"
-       Message 11 "could not execute $RC_MASTER" $RC_MASTER
-       exit 1
-    fi
-}
-
-case "$mode" in
-    '-d')
-       (
-           if [ -f $RC_CONFIG_DESKTOP ]; then
-               DESKTOP=""
-               . $RC_CONFIG_DESKTOP
-               if [ CDE = "$DESKTOP" ]; then
-                   echo "# CDE Desktop disabled `date`" >$RC_CONFIG_DESKTOP
-               fi
-           fi
-       )
-
-       Message 14 "done"
-       Message 15 "desktop auto-start disabled."
-       ;;
-
-    '-e')
-#if (OSMAJORVERSION <= 10) && (OSMINORVERSION < 20)
-       if [ -f /tcb/files/auth/system/default ]; then
-           Message 25 "CDE can not be enabled on a trusted system"
-           Message 26 "unable to enable desktop auto-start"
-           exit 1
-       fi
-#endif
-        echo "# CDE Desktop enabled `date`" >$RC_CONFIG_DESKTOP
-        echo "DESKTOP=CDE" >>$RC_CONFIG_DESKTOP
-
-       Message 14 "done"
-       Message 20 "desktop auto-start enabled."
-       ;;
-
-    '-kill')
-       rc_master_check
-
-       $RC_MASTER stop
-
-       Message 14 "done"
-       Message 21 "dtlogin kill complete."
-       ;;
-
-    '-reset')
-       rc_master_check
-
-       $RC_MASTER reset
-
-       Message 14 "done"
-       Message 22 "dtlogin config resources reloaded."
-       ;;
-
-    '-p')
-       rc_master_check
-
-       $RC_MASTER update_printers
-
-       Message 14 "done"
-       Message 23 "printer action update is complete"
-       ;;
-
-    *)
-       echo " "
-       Message 24 "Usage:"
-       usage_error
-       exit 1
-       ;;
-
-esac
-
-exit 0
diff --git a/cde/programs/dtconfig/hp/dtlogin.rc.src b/cde/programs/dtconfig/hp/dtlogin.rc.src
deleted file mode 100644 (file)
index cc647f7..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtlogin.rc.src /main/1 1996/07/24 11:40:29 drk $
-XCOMM
-XCOMM This version of the dtlogin.rc script can be used on the HP-UX
-XCOMM operating system to initiate 1DE tasks such as starting the dtlogin
-XCOMM process.
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM When placed in the /sbin/rc3.d directory and named appropriately, such as
-XCOMM "S990dtlogin", this script will automatically start the dtlogin window
-XCOMM after the HP-UX system boots to its multi-user level.
-XCOMM
-XCOMM This script is also called indirectly by the CDE dtconfig command.
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-mode=$1
-
-case "$mode" in
-    'start_msg')
-       echo "Start CDE login server"
-       exit 0
-       ;;
-
-    'stop_msg')
-       echo "Stop CDE login server"
-       exit 0
-       ;;
-esac
-
-
-usage_error() {
-    echo "  $0 start             (start dtlogin process)"
-    echo "  $0 stop              (stop dtlogin process)"
-    echo "  $0 reset             (reset dtlogin process)"
-    echo "  $0 update_printers   (update print actions)"
-    echo " "
-}
-
-if [ ! -d /usr/bin ]; then             # /usr not mounted
-    exit 1
-fi
-
-set `id`
-if [ $1 != "uid=0(root)" ]; then
-    echo "$0: must be run as root"
-    exit 1
-fi
-
-XCOMM update_printers()
-XCOMM
-XCOMM Add print actions to workstation's database for all printers known
-XCOMM to this workstation if action is not already present in the database.
-
-update_printers() {
-    if [ -x /usr/dt/bin/dtprintinfo ]; then
-       /usr/dt/bin/dtprintinfo -populate
-    fi
-}
-
-XCOMM
-XCOMM Find login server pid from the process tree
-XCOMM
-login_server_pid() {
-
-XCOMM In following grep for "dtlogin" processes, explictly exclude any matches
-XCOMM on this shell file named "dtlogin.rc"
-
-#if (OSMAJORVERSION < 10) && (OSMINORVERSION < 20)
-    ps -u 0 -l | grep -v dtlogin. | grep dtlogin | 
-    cut -c1-24 | awk '{print $4 " " $5}' | 
-    while read pid ppid; do
-#else
-XCOMM
-XCOMM Use the new XPG4 features of "ps" (also "-C cmdlist" ) to get the pids.  
-XCOMM
-    UNIX95=1 ps -C dtlogin -o pid= -o ppid= | 
-    while read pid ppid; do
-#endif
-       if [ "$(ps -p $ppid | grep dtlogin)" = "" ]; then
-           print "$pid"
-           break
-       fi
-    done
-}
-
-case "$mode" in
-    'start')
-       if [ -f /etc/rc.config ]; then
-           . /etc/rc.config
-       else
-           echo "ERROR: /etc/rc.config defaults file MISSING"
-       fi
-       if [ "CDE" != "${DESKTOP:-}" ]; then
-           exit 2
-       fi
-       update_printers
-
-       if [ -x CDE_INSTALLATION_TOP/bin/dtrc ]; then
-           trap "" 1
-           CDE_INSTALLATION_TOP/bin/dtrc &
-       elif [ -x CDE_INSTALLATION_TOP/bin/dtlogin ]; then
-           CDE_INSTALLATION_TOP/bin/dtlogin -daemon
-       fi
-       ;;
-
-    'stop')
-XCOMM       get dtlogin pid
-
-       dtlogin_pid=`login_server_pid`
-
-XCOMM       kill dtlogin process
-
-        if [ "$dtlogin_pid" != "" ] ; then
-             kill $dtlogin_pid
-       fi
-       ;;
-
-    'reset')
-XCOMM       get dtlogin pid
-
-        dtlogin_pid=`login_server_pid`
-
-XCOMM       reset dtlogin process
-
-        if [ "$dtlogin_pid" != "" ] ; then
-             kill -HUP $dtlogin_pid
-        fi
-       ;;
-
-    'update_printers')
-       update_printers
-       ;;
-
-    *)
-       usage_error
-       exit 1
-       ;;
-esac
-
-exit 0
diff --git a/cde/programs/dtconfig/hp/dtrc.dtlogin_st.src b/cde/programs/dtconfig/hp/dtrc.dtlogin_st.src
deleted file mode 100644 (file)
index b5192f0..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtrc.dtlogin_st.src /main/1 1996/07/24 11:41:05 drk $
-XCOMM
-XCOMM This version of the CDE dtconfig script is for use in the HP-UX
-XCOMM operating environment.
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM This script runs dtlogin.
-XCOMM
-XCOMM Location:        CDE_INSTALLATION_TOP/config/dtrc.d/90_dtlogin_st
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-XCOMM  Default version
-DTLOGIN=CDE_INSTALLATION_TOP/bin/dtlogin
-VL_ARGS=""
-
-
-if [ -x "$DTLOGIN" ]; then
-    exec $DTLOGIN $VL_ARGS </dev/null >/dev/null 2>&1
-else
-
-XCOMM
-XCOMM Note: This path occurs if dtlogin can not be found or
-XCOMM       is not executable...
-XCOMM
-
-
-XCOMM
-XCOMM Wait for the console getty (if any) to start.
-XCOMM
-
-    for COUNT in 1 2 3 4 5
-    do
-       TMP=`ps -tconsole | fgrep getty`
-       if [ $? -eq 0 ]; then
-           GETTY=true
-           break
-       fi
-       sleep 1
-    done
-
-
-XCOMM
-XCOMM Print a message to the console.
-XCOMM
-
-    echo "" > /dev/console
-    DTRC=CDE_INSTALLATION_TOP/bin/dtrc
-    echo "The desktop can not be started. (See $DTRC)" > /dev/console
-
-
-XCOMM
-XCOMM If a getty is not already running on the console, start one.
-XCOMM
-    if [ -z "$GETTY" ]; then
-       exec /etc/getty console console
-    fi
-
-fi
-
-XCOMM ##################             eof         #####################
diff --git a/cde/programs/dtconfig/hp/dtrc.getty_wait.src b/cde/programs/dtconfig/hp/dtrc.getty_wait.src
deleted file mode 100644 (file)
index 38a7e36..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtrc.getty_wait.src /main/1 1996/07/24 11:41:57 drk $
-XCOMM
-XCOMM This version of the CDE dtconfig script is for use in the HP-UX
-XCOMM operating environment.
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM This script waits for the console getty to start.  This prevents dtlogin
-XCOMM from running an X server that would grab the display before the rc
-XCOMM checklist is complete.
-XCOMM
-XCOMM Location:        CDE_INSTALLATION_TOP/config/dtrc.d/10_getty_wait
-
-XCOMM
-XCOMM Wait for the console getty to start.
-XCOMM
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-let count=0
-while [ $count -lt 60 ]
-do
-    TMP=`ps -tconsole | fgrep getty`
-    if [ $? -eq 0 ]; then
-       GETTY=true
-       break
-    fi
-    sleep 2
-    let count=count+1
-done
diff --git a/cde/programs/dtconfig/hp/dtrc.graph_conf.src b/cde/programs/dtconfig/hp/dtrc.graph_conf.src
deleted file mode 100644 (file)
index 9ffb3fe..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtrc.graph_conf.src /main/1 1996/07/24 11:42:43 drk $
-XCOMM
-XCOMM This version of the CDE dtconfig script is for use in the HP-UX
-XCOMM operating environment.
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM This script:
-XCOMM  - copies CDE_INSTALLATION_TOP/config/Xservers to
-XCOMM          CDE_CONFIGURATION_TOP/config if it does not yet exist,
-XCOMM  - uses ioscan to find out if the system has a graphics card
-XCOMM          installed,
-XCOMM  - comments out the "Local" entry in the Xservers file if it
-XCOMM          does not,
-XCOMM
-XCOMM Location:        CDE_INSTALLATION_TOP/config/dtrc.d/20_graph_conf
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-XCOMM
-XCOMM create CDE_CONFIGURATION_TOP/config/Xservers if it does not exist
-
-if [ ! -f CDE_CONFIGURATION_TOP/config/Xservers ]; then
-    cp CDE_INSTALLATION_TOP/config/Xservers \
-       CDE_CONFIGURATION_TOP/config/Xservers
-fi
-
-XCOMM
-XCOMM comment out the Local entry if there is no graphics card
-
-if [[ -z `ioscan -kC graphics` ]]; then
-    TAB="      "
-    TS="[${TAB} ]"
-    sed -e "s:^${TS}*\*${TS}${TS}*Local:#  *   Local:" \
-       < CDE_CONFIGURATION_TOP/config/Xservers \
-       > /tmp/Xservers.tmp
-    cp /tmp/Xservers.tmp CDE_CONFIGURATION_TOP/config/Xservers
-    rm -f  /tmp/Xservers.tmp
-fi
-
-XCOMM ##################             eof         #####################
diff --git a/cde/programs/dtconfig/hp/dtrc.src b/cde/programs/dtconfig/hp/dtrc.src
deleted file mode 100644 (file)
index dd17b3a..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-XCOMM!/sbin/sh
-XCOMM $XConsortium: dtrc.src /main/6 1996/07/24 14:15:50 drk $
-XCOMM ################################################################
-XCOMM
-XCOMM  dtrc
-XCOMM
-XCOMM  Common Desktop Environment
-XCOMM
-XCOMM  Shell script for initialization of the Common Desktop Environment
-XCOMM
-XCOMM  (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM  (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
-XCOMM  (c) Copyright 1993-1994,1996 International Business Machines Corp.
-XCOMM  (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
-XCOMM  (c) Copyright 1993-1994,1996 Novell, Inc. 
-XCOMM  (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM  (c) Copyright 1996 Hitachi.
-XCOMM
-XCOMM       ************** DO NOT EDIT THIS FILE **************
-XCOMM
-XCOMM  CDE_INSTALLATION_TOP/bin/dtrc is a factory-default file and will
-XCOMM  be unconditionally overwritten upon subsequent installation.
-XCOMM  Modification is discouraged.
-XCOMM
-XCOMM ################################################################
-#define HASH #
-
-PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
-export PATH
-
-       DTRC_D=CDE_INSTALLATION_TOP/config/dtrc.d
-       DTLOGIN=CDE_INSTALLATION_TOP/bin/dtlogin
-       VL_ARGS=""
-
-       if [ -d $DTRC_D ]
-       then
-           HASH
-           HASH run the scripts in CDE_INSTALLATION_TOP/config/dtrc.d
-           HASH in lexical (ls) order
-           HASH
-
-           ls $DTRC_D/[0-9][0-9]_* |
-           while read DTRCFILE
-           do
-               $DTRCFILE
-           done
-       else
-           HASH
-           HASH dtrc.d directory does not exist
-           HASH
-
-           if [ -x "$DTLOGIN" ]
-           then
-               exec $DTLOGIN $VL_ARGS </dev/null >/dev/null 2>&1
-           else
-
-               HASH
-               HASH Note: This path occurs if dtlogin can not be found or
-               HASH       is not executable...
-               HASH
-
-
-               HASH
-               HASH Wait for the console getty (if any) to start.
-               HASH
-
-               for COUNT in 1 2 3 4 5
-               do
-                   TMP=`ps -tconsole | fgrep getty`
-                   if [ $? -eq 0 ]; then
-                       GETTY=true
-                       break
-                   fi
-                   sleep 1
-               done
-
-
-               HASH
-               HASH Print a message to the console.
-               HASH
-
-               echo "" > /dev/console
-               DTRC=CDE_INSTALLATION_TOP/bin/dtrc 
-               echo "The desktop can not be started. (See $DTRC)" > /dev/console
-
-
-               HASH
-               HASH Start getty on the console if it isn't running already.
-               HASH
-               if [ -z "$GETTY" ]; then
-                   exec /etc/getty console console
-               fi
-
-           fi
-       fi
-
-XCOMM ##################             eof         #####################
diff --git a/cde/programs/dtconfig/ibm/Imakefile b/cde/programs/dtconfig/ibm/Imakefile
deleted file mode 100644 (file)
index f9fe89b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:28:22 drk $
-/*                                                                      *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-
-LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
-
-AllTarget(dtconfig rc.dt)
-
-CppScriptTarget(dtconfig,dtconfig.src,$(LOCAL_CPP_DEFINES),)
-CppScriptTarget(rc.dt,rc.dt.src,$(LOCAL_CPP_DEFINES),)
diff --git a/cde/programs/dtconfig/ibm/dtconfig.src b/cde/programs/dtconfig/ibm/dtconfig.src
deleted file mode 100644 (file)
index 856a98c..0000000
+++ /dev/null
@@ -1,265 +0,0 @@
-XCOMM!/bin/ksh
-XCOMM $XConsortium: dtconfig.src /main/5 1996/04/23 12:05:26 drk $
-XCOMM *                                                                      *
-XCOMM * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
-XCOMM * (c) Copyright 1993, 1994 International Business Machines Corp.       *
-XCOMM * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
-XCOMM * (c) Copyright 1993, 1994 Novell, Inc.                                *
-XCOMM *
-#define HASH #
-
-DTPATH=CDE_INSTALLATION_TOP/bin/dtlogin
-XDMCONF=/usr/lpp/X11/lib/X11/xdm/xdmconf
-#ifdef  _POWER
-GETTY=/usr/sbin/getty
-#else
-GETTY=/etc/getty
-#endif
-
-#ifdef _POWER
-#define MKITAB /usr/sbin/mkitab
-#define RMITAB /usr/sbin/rmitab
-#define LSITAB /usr/sbin/lsitab
-#define RCDT    "dt:`cat /etc/.init.state`:wait:/etc/rc.dt"
-#define RCDT2   "dt:2:wait:/etc/rc.dt"
-#else
-#define MKITAB /etc/mkitab
-#define RMITAB /etc/rmitab
-#define LSITAB /etc/lsitab
-#define RCDT    "dt:`cat /etc/.init.state`:wait:/usr/dt/bin/rc.dt"
-#define RCDT2   "dt:2:wait:/usr/dt/bin/rc.dt"
-#endif
-
-XCOMM
-XCOMM Message text
-XCOMM
-
-msg1='can only be run by the super user. \n'
-
-msg2='The CDE environment is now set as the default user interface. This \
-interface will appear on login for all users of the system. \
-To see this change take effect you must shutdown and restart your system.\n'
-
-msg3='The Command line is now set as the default user interface. This\
-interface will appear on login for all users of the system.\
-To see this change take effect you must shutdown and restart your system.\n'
-
-msg4='The CDE environment is Already set as the default User Interface.\n'
-
-msg5='The Command line is already set as the default User Interface.\n'
-
-msg6='usage: %s \
-  -e (enable auto-start of dtlogin) \
-  -d (disable auto-start of dtlogin) \
-  -kill (kill dtlogin) \
-  -reset (reset dtlogin - reread configuration files)\n'
-
-msg7='Too many arguments \n'
-
-msg8='Needs one argument \n'
-
-msg9='Could not disable xdm, Please refer to xdm man pages to\
-disable xdm and try again.\n'
-
-msg10='Dtlogin is not running \n'
-
-GetLoginServerPid()
-{
-  HASH GetLoginServerPid() prints login server pid if found, else nothing
-
-  grep=/usr/bin/grep
-  ps=/usr/bin/ps
-  cut=/usr/bin/cut
-  awk=/usr/bin/awk
-
-  $ps -u 0 -el | $grep dtlogin | $awk '{print $4 " " $5}' |
-  while read -r pid ppid; do
-    if [ "$($ps -p $ppid | $grep dtlogin)" = "" ]; then
-      print "$pid"
-      break
-    fi
-  done
-}
-
-SignalDt()
-{
-  HASH SignalDt() - kill or reset login server
-  HASH $1 - operation (kill|reset)
-
-  pid=`GetLoginServerPid`
-
-  if [ "$pid" != "" ]; then
-    if [ "$1" = "kill" ]; then
-      /bin/kill $pid       #kill login server
-    else
-      /bin/kill -HUP $pid  #reset login server
-    fi 
-    Exit 0
-  else
-    Exit 1 200 "no login server is running\n"
-  fi
-}
-
-
-
-Message()
-{
-  HASH Message() - display message from dtconfig.cat
-  HASH   $1 - message id
-  HASH   $2 - fallback message text
-  HASH   $3 - message insert 1
-  HASH   $4 - message insert 2
-  dspmsg -s 10 dtconfig.cat $1 "$2" "$3" "$4"
-}
-
-Exit()
-{
-  HASH Exit() - display optional message and exit
-  HASH   $1 - exit code
-  HASH   $2 - message id (optional)
-  HASH   $3 - fallback message text
-  HASH   $4 - message insert 1
-  HASH   $5 - message insert 2
-
-  if [ "$2" != "" ]; then
-    Message $2 "$3" "$4" "$5"
-  fi
-
-  exit $1
-}
-
-DisableXdm()
-{
-  HASH DisableXdm() - disable inittab start of xdm if necessary
-
-  HASH
-  HASH Check for xdm inittab entry
-  HASH
-  egrep "^xdm" /etc/inittab > /dev/null 2>&1
-  rc=$?
-
-  HASH
-  HASH Check for the existence of xdm Subsystem.
-  HASH
-  lssrc -s xdm  > /dev/null 2>&1
-  rc1=$?
-
-  HASH
-  HASH if either or both of the tests are true unconfigure xdm
-  HASH Note that a return code of 0 is true
-  HASH
-  if [ "$rc" = "0" ] || [ "$rc1" = "0" ]; then
-    if [ ! -f $XDMCONF ]; then
-      Exit 1 9 "$msg9"
-    fi
-    $XDMCONF -d
-  fi
-}
-
-ConfigureDt()
-{
-  HASH ConfigureDt() - enable or disable inittab start of dtlogin
-  HASH $1 - operation (enable|disable)
-
-  HASH
-  HASH Disable xdm if necessary
-  HASH
-  DisableXdm
-
-  HASH
-  HASH Check for the existence of COSE Subsystem and create if
-  HASH it's not there are we are enabling dtlogin
-  HASH
-  /bin/lssrc -s dtsrc  > /dev/null 2>&1
-  if [ "$?" -ne 0 -a "$1" = "enable" ]; then
-    /bin/mkssys -s dtsrc -p $DTPATH -u 0 > /dev/null 2>&1
-  fi
-
-  HASH
-  HASH See if 'dt' is in inittab
-  HASH
-  LSITAB dt > /dev/null 2>&1
-  if [ "$?" -ne 0 ]; then
-    curstate="disabled"
-  else
-    curstate="enabled"
-  fi
-
-  if [ "$1" = "enable" ]; then
-    if [ "$curstate" = "enabled" ]; then
-      HASH
-      HASH Already enabled
-      HASH
-      Exit 0 4 "$msg4"
-    fi
-
-    HASH
-    HASH Enable it
-    HASH
-
-    if [ -s /etc/.init.state ]; then
-       MKITAB RCDT
-    else
-       HASH
-       HASH if /etc/.init.state does NOT exist, hard code a 2 in the inittab entry
-       HASH
-       MKITAB RCDT2
-    fi
-    Message 2 "$msg2"
-
-    HASH
-    HASH move the "cons" record to the end of inittab file,
-    HASH and, after the "dt" record to let desktop come up
-    HASH before console login.
-    HASH
-    consitab=`LSITAB cons`
-    if [ ! -z "$consitab" ]; then
-      RMITAB cons
-      MKITAB -i dt "$consitab"
-    fi
-    Exit 0
-  else # $1 = "disable"
-    if [ "$curstate" = "disabled" ]; then
-      HASH
-      HASH Already disabled
-      HASH
-      Exit 0 5 "$msg5"
-    fi
-
-    HASH
-    HASH remove the "dt" inittab entry for disabling "dt"
-    HASH Note: The "dtsrc" subsystem would remain intact.
-    HASH It gets removed only when the super user deletes it
-    HASH explicitly by the rmssys command.
-    HASH
-    RMITAB "dt"
-    Message 3 "$msg3"
-    Exit 0
-  fi
-}
-
-XCOMM
-XCOMM Check if the user is a super user.
-XCOMM
-if [ "root" != `/usr/bin/whoami` ]; then
-  echo "`basename $0`: \c" 
-  Exit 1 1 "$msg1"
-fi
-
-XCOMM
-XCOMM Check param count
-XCOMM
-if [ $# -ne 1 ]; then
-  Exit 1 6 "$msg6" "`basename $0` -e|-d|-kill|-reset"
-fi
-
-XCOMM
-XCOMM Check options and run command
-XCOMM
-case $1 in
-  -e) ConfigureDt enable;;
-  -d) ConfigureDt disable;;
-  -kill) SignalDt kill;;
-  -reset) SignalDt reset;;
-  *) Exit 1 6 "$msg6" "`basename $0` -e|-d|-kill|-reset"
-esac
diff --git a/cde/programs/dtconfig/ibm/rc.dt.src b/cde/programs/dtconfig/ibm/rc.dt.src
deleted file mode 100644 (file)
index 06f0496..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-XCOMM! /bin/ksh
-XCOMM $XConsortium: rc.dt.src /main/5 1996/04/23 12:05:38 drk $
-XCOMM *                                                                      *
-XCOMM * (c) Copyright 1996 Digital Equipment Corporation.
-XCOMM * (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
-XCOMM * (c) Copyright 1993,1994,1996 International Business Machines Corp.
-XCOMM * (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
-XCOMM * (c) Copyright 1993,1994,1996 Novell, Inc. 
-XCOMM * (c) Copyright 1996 FUJITSU LIMITED.
-XCOMM * (c) Copyright 1996 Hitachi.
-#define HASH #
-
-XCOMM COMPONENT_NAME: DESKTOP rc.dt
-XCOMM
-XCOMM FUNCTIONS:
-XCOMM
-XCOMM ORIGINS: 27
-XCOMM
-XCOMM (C) COPYRIGHT International Business Machines Corp. 1994, 1995
-XCOMM All Rights Reserved
-XCOMM Licensed Materials - Property of IBM
-XCOMM
-XCOMM US Government Users Restricted Rights - Use, duplication or
-XCOMM disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
-XCOMM
-XCOMM ###################################################################
-XCOMM rc.dt -
-XCOMM       starts the AIX Windows Desktop Login
-XCOMM       waits for the X Server to start
-XCOMM ###################################################################
-
-if [ "$1" != "boot" -a -f /.bootsequence ]
-then
-XCOMM
-XCOMM       clean things up from graphical boot
-XCOMM
-        /usr/bin/rm -f /.bootsequence
-       if [ -f /.bootsequence ]; then
-               echo "\n\nError: Unable to remove /.bootsequence.\n\n"
-       fi
-
-        /usr/bin/ps -ef | /usr/bin/grep "dtlogin" | /usr/bin/grep -v grep >/dev/null
-        if [ "$?" -eq 0 ] ; then
-                exit 0
-        fi
-fi
-
-
-XCOMM
-XCOMM Start the dtsrc subsystem
-XCOMM
-if [ "$1" = "boot" ]; then
-  /usr/dt/bin/dtlogin -daemon
-else
-  /usr/bin/startsrc -s dtsrc 2>/dev/null 1>/dev/null
-fi
-
-XCOMM
-XCOMM Check for error on starting the dtsrc subsystem
-XCOMM
-rc=$?
-if [ "$rc" != "0" ]; then
-       echo "\n\nERROR: The AIX Windows Desktop is not correctly configured\n"
-       exit 1
-fi
-
-echo "Starting AIX Windows Desktop....\c"
-
-XCOMM
-XCOMM Sleep for <= 10 secs for the X server to come up.
-XCOMM
-
-i=10
-while [ "$i" != 0 ]
-do
-       HASH
-       HASH checking if the X server is up and running.
-       HASH
-        XPID=`ps -ef | awk '$8~/^.*\/X$/{print $3}'`
-        if [ -n "$XPID" ]; then                  
-           ps -ef | grep $XPID | grep "dtlogin" | grep -v grep    1>/dev/null
-           rc=$?                                          
-        else                                                                    
-           rc=1                                                                 
-        fi                                                                      
-       if [ "$rc" -eq "0" ]; then
-               break 
-       fi
-       sleep 1
-       echo ".\c"
-       i=`expr $i - 1`  # decrement count
-done
-
-sleep 1
diff --git a/cde/programs/dtconfig/sun/Makefile.am b/cde/programs/dtconfig/sun/Makefile.am
new file mode 100644 (file)
index 0000000..805e1ad
--- /dev/null
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+dist_bin_SCRIPTS = dtconfig
+
+configdir = $(CDE_INSTALLATION_TOP)/config
+dist_config_DATA = dtlogin.rc dtlogin.xml
+
+SCRIPTFLAGS = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+              -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
+
+BUILT_SOURCES = dtconfig dtlogin.rc
+CLEANFILES = $(BUILT_SOURCES)
+
+dtconfig: dtconfig.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
+dtlogin.rc: dtlogin.rc.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
diff --git a/cde/programs/dtcreate/Makefile.am b/cde/programs/dtcreate/Makefile.am
new file mode 100644 (file)
index 0000000..b5b3c5c
--- /dev/null
@@ -0,0 +1,18 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtcreate
+
+dtcreate_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtcreate_LDADD += -ldl
+endif
+
+dtcreate_SOURCES = main.c AddFiletype.c Confirmed.c                    \
+        CreateActionAppShell.c FileCharacteristics.c OpenFile.c                \
+        UxXt.c ca_aux.c cmncbs.c cmnutils.c cmnrtns.c ErrorDialog.c    \
+        fileio.c af_aux.c icon_selection_dialog.c parser.c             \
+        AddFiletype.h Confirmed.h icon_selection_dialog.h af_aux.h     \
+        CreateActionAppShell.h OpenFile.h ca_aux.h dtcreate.h          \
+        parser.h cmncbs.h ErrorDialog.h UxXt.h cmnrtns.h               \
+        FileCharacteristics.h cmnutils.h fileio.h
index 96403000a3fad0d6eca46d880b493c26c5733ce0..3f4e9f4984909666212996e14de09e47503da4aa 100644 (file)
@@ -30,7 +30,9 @@ cc -g -o Main Main.c -I/usr/dt/include -I/usr/openwin/include -R/export2/build/S
 #include <Xm/MessageB.h>
 #include <Xm/Form.h>
 #include <Xm/Text.h>
+#include <Dt/Dt.h>
 #include <Dt/Dts.h>
+#include <Dt/DtsMM.h>
 #include <Dt/UserMsg.h>
 #include <Dt/EnvControlP.h>
 
diff --git a/cde/programs/dtdbcache/Makefile.am b/cde/programs/dtdbcache/Makefile.am
new file mode 100644 (file)
index 0000000..9ab1be7
--- /dev/null
@@ -0,0 +1,11 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtdbcache
+
+dtdbcache_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtdbcache_LDADD += -ldl -lw -lgen
+endif
+
+dtdbcache_SOURCES = Main.c
diff --git a/cde/programs/dtdocbook/Makefile.am b/cde/programs/dtdocbook/Makefile.am
new file mode 100644 (file)
index 0000000..249ac8e
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = doc2sdl lib instant xlate_locale
diff --git a/cde/programs/dtdocbook/doc2sdl/Makefile.am b/cde/programs/dtdocbook/doc2sdl/Makefile.am
new file mode 100644 (file)
index 0000000..07e7b50
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILE = Makefile.in
+
+SUBDIRS = SGML
diff --git a/cde/programs/dtdocbook/doc2sdl/SGML/Makefile.am b/cde/programs/dtdocbook/doc2sdl/SGML/Makefile.am
new file mode 100644 (file)
index 0000000..057f496
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+all::
+       $(LN_S) dtinfo.af $(srcdir)/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/SGML
+       $(LN_S) docbook.dtd $(srcdir)/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/SGML
diff --git a/cde/programs/dtdocbook/instant/Makefile.am b/cde/programs/dtdocbook/instant/Makefile.am
new file mode 100644 (file)
index 0000000..40417d4
--- /dev/null
@@ -0,0 +1,34 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = instant
+
+instant_CFLAGS = -I../lib/tptregexp -I$(SVCSRC)/DtUtil2
+
+instant_LDADD = $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIB} -L../lib/tptregexp \
+               -ltptregexp -lm
+if LINUX
+instant_CFLAGS += -I/usr/include/tcl
+instant_LDADD += -ltcl
+endif
+
+if FREEBSD
+instant_CFLAGS += -I/usr/local/include/tcl8.6
+instant_LDADD += -ltcl86
+endif
+
+if OPENBSD
+instant_CFLAGS += -I/usr/local/include/tcl8.6
+instant_LDADD += -ltcl86
+endif
+
+if NETBSD
+instant_CFLAGS += -I/usr/pkg/include/tcl
+instant_LDADD += -ltcl86
+endif
+
+if SOLARIS
+instant_LDADD += -lsocket -lnsl -lgen
+endif
+
+instant_SOURCES = main.c util.c info.c translate.c traninit.c tranvar.c \
+                 tables.c browse.c
diff --git a/cde/programs/dtdocbook/lib/Makefile.am b/cde/programs/dtdocbook/lib/Makefile.am
new file mode 100644 (file)
index 0000000..156ab94
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = tptregexp
diff --git a/cde/programs/dtdocbook/lib/tptregexp/Makefile.am b/cde/programs/dtdocbook/lib/tptregexp/Makefile.am
new file mode 100644 (file)
index 0000000..2656593
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = tptregexp.a
+
+tptregexp_a_SOURCES = regexp.c regsub.c regerror.c
diff --git a/cde/programs/dtdocbook/xlate_locale/Makefile.am b/cde/programs/dtdocbook/xlate_locale/Makefile.am
new file mode 100644 (file)
index 0000000..6af4a63
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = xlate_locale
+
+xlate_locale_CFLAGS = -I$(SVCSRC)/DtUtil2
+
+xlate_locale_LDADD = $(LIBTT) $(LIBSVC) $(XTOOLLIB) ${X_LIBS}
+
+xlate_locale_SOURCES = xlate_locale.c
diff --git a/cde/programs/dtdspmsg/Makefile.am b/cde/programs/dtdspmsg/Makefile.am
new file mode 100644 (file)
index 0000000..c412aed
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtdspmsg
+
+# this is just to initialize so the += ops can work later if needed
+dtdspmsg_LDADD =
+
+if SOLARIS
+dtdspmsg_LDADD += -ldl -lgen
+endif
+
+dtdspmsg_SOURCES = dtdspmsg.c
diff --git a/cde/programs/dtexec/Makefile.am b/cde/programs/dtexec/Makefile.am
new file mode 100644 (file)
index 0000000..3a4878e
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtexec
+
+dtexec_CFLAGS = -DMSGLOG_CLIENT_ONLY   \
+       -I../../lib/DtSvc/include
+
+dtexec_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+dtexec_SOURCES = Main.c
index c1fc99cf4bd237698df343492108820dfaa31ec0..4500b0a99e8ba30a415146924484e74a587e072b 100644 (file)
@@ -712,13 +712,13 @@ CopyDir(
         rc = execlp(DTCOPY, "dtfile_copy",
                      "-dontDelete", "-forceCopies", "-copyTop",
                      "-confirmReplace", "-confirmErrors", "-popDown",
-                     from, target, 0);
+                    from, target, (char *)NULL);
       else
          /* replace target dir */
          rc = execlp(DTCOPY, "dtfile_copy",
                      "-forceCopies", "-copyTop",
                      "-confirmErrors", "-popDown",
-                     from, target, 0);
+                     from, target, (char *)NULL);
 
       /* call errorhandler */
       perror ("Could not exec child process \"dtfile_copy\"");
diff --git a/cde/programs/dtfile/Makefile.am b/cde/programs/dtfile/Makefile.am
new file mode 100644 (file)
index 0000000..2cc1090
--- /dev/null
@@ -0,0 +1,59 @@
+configdir = ${prefix}/config/C
+
+SUBDIRS = dtcopy
+
+bin_PROGRAMS = dtfile
+
+BUILT_SOURCES = dtfile.config dtfile_error
+CLEANFILES = dtfile.config dtfile_error
+
+dist_config_DATA = dtfile.config
+
+dist_bin_SCRIPTS = dtfile_error
+
+dtfile_CPPFLAGS = -I./dtcopy -DSHAPE -D_ILS_MACROS -DSUN_PERF \
+               -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+               -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
+               -DKORNSHELL=\"$(KSH)\" $(FREETYPE_CFLAGS)
+
+dtfile_LDADD = dtcopy/sharedFuncs.o \
+       dtcopy/fsrtns.o \
+       $(DTCLIENTLIBS) $(TIRPCLIB) -lXm -lXext $(FREETYPE_LIBS) \
+       $(XTOOLLIB) 
+
+if OPENBSD
+dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
+endif
+
+if LINUX
+dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
+endif
+
+if SOLARIS
+dtfile_CFLAGS = -xF
+dtfile_LDADD += -lintl -lresolv
+endif
+
+dtfile_SOURCES = ChangeDir.c     ChangeDirP.c    Command.c       Common.c \
+                Desktop.c       Directory.c     Encaps.c        File.c \
+                FileDialog.c    FileManip.c     FileMgr.c       FileOp.c \
+                Filter.c        FilterP.c       Find.c          FindP.c \
+                Help.c          HelpCB.c        HelpP.c         IconWindow.c \
+                IconicPath.c    Main.c          Menu.c          MkDir.c \
+                ModAttr.c       ModAttrP.c      MultiView.c     OverWrite.c \
+                Prefs.c         PrefsP.c        SharedMsgs.c    SharedProcs.c \
+                ToolTalk.c      Trash.c         Utils.c         fsDialog.c
+
+# Mind the quoting here...
+SCRIPTFLAGS = -DSHAPE -D_ILS_MACROS -DSUN_PERF \
+       -DCDE_INSTALLATION_TOP="${prefix}" \
+       -DCDE_CONFIGURATION_TOP="$(CDE_CONFIGURATION_TOP)" \
+       -DKORNSHELL="$(KSH)"
+
+dtfile.config: dtfile.config.cpp
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
+
+dtfile_error: dtfile_error.cpp
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $<  > $@
index 124b20ff4e2c5e862fb0c13e3ad44c842b2d8f32..9299f25aea793903dfbe36089e0cad9e1b8ba012 100644 (file)
@@ -154,7 +154,8 @@ RunFileCommand(
       command_name++;
 
    _DtEnvControl(DT_ENV_RESTORE_PRE_DT);
-   (void) execl (command_path, command_name, argument1, argument2, argument3,0);
+   (void) execl (command_path, command_name, argument1, argument2,
+                 argument3, (char *)NULL);
     
    DBGFORK(("%s:  child exiting\n", pname));
 
index e5a744caa89f40f6ca9cd28768686cd02d982cb6..819bc9a8bd837eb870b93560376c6e8765e354e1 100644 (file)
@@ -41,6 +41,7 @@
 #ifndef _DtFile_SharedProcs_h
 #define _DtFile_SharedProcs_h
 
+#include <Xm/XmPrivate.h>
 #include <Dt/Icon.h>
 #include <Dt/Action.h>
 #include <Dt/Dnd.h>
diff --git a/cde/programs/dtfile/dtcopy/Makefile.am b/cde/programs/dtfile/dtcopy/Makefile.am
new file mode 100644 (file)
index 0000000..c3d33fb
--- /dev/null
@@ -0,0 +1,14 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtfile_copy
+
+dtfile_copy_CFLAGS = -DSHAPE
+
+if SOLARIS
+dtfile_copy_CFLAGS += -xF
+endif
+
+dtfile_copy_LDADD = @DTCLIENTLIBS@ -lXm $(TIRPCLIB) $(XTOOLLIB)
+
+dtfile_copy_SOURCES = main_dtcopy.c   copydialog.c    overwrtdialog.c dosync.c \
+                     fsrtns.c  utils.c  errordialog.c   sharedFuncs.c
diff --git a/cde/programs/dthello/Makefile.am b/cde/programs/dthello/Makefile.am
new file mode 100644 (file)
index 0000000..360e1db
--- /dev/null
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthello
+
+dthello_LDADD = $(DTCLIENTLIBS) ${X_LIBS} -lXm $(XTOOLLIB)
+
+if SOLARIS
+dthello_LDADD += -ldl -lgen
+endif
+
+if LINUX
+dthello_LDADD += $(TIRPCLIB)
+endif
+
+dthello_SOURCES = dthello.c
+
+CPP_TARGETS = Dthello
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+Dthello: Dthello.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=#  $< > $@
index 7789e7219294ddefc818e51711680f86971871ca..be50ec9bbff15f983b598a6b8dbef61e8daf6a16 100644 (file)
@@ -601,7 +601,7 @@ main (int argc, char **argv)
 #else /* AUTO_TOP */
     xwa.event_mask = ExposureMask;
 #endif /* AUTO_TOP */
-    xwa.cursor = GetHourGlass (dpy);
+    xwa.cursor = _DtGetHourGlassCursor(dpy);
 
     XChangeWindowAttributes (dpy, welcome, mask, &xwa);
 
@@ -981,148 +981,6 @@ CatchAlarm ( int sig)
 }
 
 \f
-/*************************************<->*************************************
- *
- *  Cursor GetHourGlass ()
- *
- *
- *  Description:
- *  -----------
- *  Builds and returns the appropriate Hourglass cursor
- *
- *
- *  Inputs:
- *  ------
- *  dpy        = display
- * 
- *  Outputs:
- *  -------
- *  Return = cursor.
- *
- *  Comments:
- *  --------
- *  None. (None doesn't count as a comment)
- * 
- *************************************<->***********************************/
-
-#define time32_width 32
-#define time32_height 32
-#define time32_x_hot 15
-#define time32_y_hot 15
-static unsigned char time32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0x8c, 0x00, 0x00, 0x31, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x8c, 0x00, 0x00, 0x31, 0x0c, 0x7f, 0xfe, 0x30, 0x0c, 0xfe, 0x7f, 0x30,
-   0x0c, 0xfc, 0x3f, 0x30, 0x0c, 0xf8, 0x1f, 0x30, 0x0c, 0xe0, 0x07, 0x30,
-   0x0c, 0x80, 0x01, 0x30, 0x0c, 0x80, 0x01, 0x30, 0x0c, 0x60, 0x06, 0x30,
-   0x0c, 0x18, 0x18, 0x30, 0x0c, 0x04, 0x20, 0x30, 0x0c, 0x02, 0x40, 0x30,
-   0x0c, 0x01, 0x80, 0x30, 0x8c, 0x00, 0x00, 0x31, 0x4c, 0x80, 0x01, 0x32,
-   0x4c, 0xc0, 0x03, 0x32, 0x4c, 0xf0, 0x1f, 0x32, 0x4c, 0xff, 0xff, 0x32,
-   0xcc, 0xff, 0xff, 0x33, 0x8c, 0xff, 0xff, 0x31, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
-
-#define time32m_width 32
-#define time32m_height 32
-static unsigned char time32m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xcf, 0x00, 0x00, 0xf3, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0xce, 0x00, 0x00, 0x73, 0x8e, 0x7f, 0xfe, 0x71, 0x0e, 0xff, 0xff, 0x70,
-   0x0e, 0xfe, 0x7f, 0x70, 0x0e, 0xfc, 0x3f, 0x70, 0x0e, 0xf8, 0x1f, 0x70,
-   0x0e, 0xe0, 0x07, 0x70, 0x0e, 0xe0, 0x07, 0x70, 0x0e, 0x78, 0x1e, 0x70,
-   0x0e, 0x1c, 0x38, 0x70, 0x0e, 0x06, 0x60, 0x70, 0x0e, 0x03, 0xc0, 0x70,
-   0x8e, 0x01, 0x80, 0x71, 0xce, 0x00, 0x00, 0x73, 0x6e, 0x80, 0x01, 0x76,
-   0x6e, 0xc0, 0x03, 0x76, 0x6e, 0xf0, 0x1f, 0x76, 0x6e, 0xff, 0xff, 0x76,
-   0xee, 0xff, 0xff, 0x77, 0xcf, 0xff, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 16
-#define time16_height 16
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x7f, 0x14, 0x28, 0x14, 0x28, 0x14, 0x28, 0x24, 0x24,
-   0x44, 0x22, 0x84, 0x21, 0x84, 0x21, 0x44, 0x22, 0x24, 0x24, 0x14, 0x28,
-   0x94, 0x29, 0xd4, 0x2b, 0xfe, 0x7f, 0x00, 0x00};
-
-#define time16m_width 16
-#define time16m_height 16
-static unsigned char time16m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff};
-
-
-Cursor GetHourGlass (Display *dpy)
-{
-    unsigned char *bits;
-    unsigned char *maskBits;
-    unsigned int width;
-    unsigned int height;
-    unsigned int xHotspot;
-    unsigned int yHotspot;
-    Pixmap       pixmap;
-    Pixmap       maskPixmap;
-    XColor       xcolors[2];
-    unsigned int cWidth;
-    unsigned int cHeight;
-    int                 useLargeCursors = 0;
-    Cursor      waitCursor;
-
-    if (XQueryBestCursor (dpy, DefaultRootWindow(dpy), 
-       32, 32, &cWidth, &cHeight))
-    {
-       if ((cWidth >= 32) && (cHeight >= 32))
-       {
-           useLargeCursors = 1;
-       }
-    }
-
-    if (useLargeCursors)
-    {
-       width = time32_width;
-       height = time32_height;
-       bits = time32_bits;
-       maskBits = time32m_bits;
-       xHotspot = time32_x_hot;
-       yHotspot = time32_y_hot;
-    }
-    else
-    {
-       width = time16_width;
-       height = time16_height;
-       bits = time16_bits;
-       maskBits = time16m_bits;
-       xHotspot = time16_x_hot;
-       yHotspot = time16_y_hot;
-    }
-
-    pixmap = XCreateBitmapFromData (dpy, 
-                    DefaultRootWindow(dpy), (char *)bits, 
-                    width, height);
-
-    maskPixmap = XCreateBitmapFromData (dpy, 
-                    DefaultRootWindow(dpy), (char *)maskBits, 
-                    width, height);
-
-    xcolors[0].pixel = BlackPixelOfScreen(DefaultScreenOfDisplay(dpy));
-    xcolors[1].pixel = WhitePixelOfScreen(DefaultScreenOfDisplay(dpy));
-
-    XQueryColors (dpy, 
-                 DefaultColormapOfScreen(DefaultScreenOfDisplay
-                                         (dpy)), xcolors, 2);
-
-    waitCursor = XCreatePixmapCursor (dpy, pixmap, maskPixmap,
-                                     &(xcolors[0]), &(xcolors[1]),
-                                     xHotspot, yHotspot);
-    XFreePixmap (dpy, pixmap);
-    XFreePixmap (dpy, maskPixmap);
-
-    return (waitCursor);
-}
-
 #ifndef NO_MESSAGE_CATALOG
 /*****************************************************************************
  *
index bc475686849c31304220cba88bd62d06b77af423..f46368302dc881e25324cde9d8e4dc93a2d38183 100644 (file)
@@ -141,8 +141,6 @@ extern void SeparateTextLines(
                         unsigned char *pchIn) ;
 extern void CatchAlarm( 
                         int sig) ;
-extern Cursor GetHourGlass( 
-                        Display *dpy) ;
 extern void VhGetResources( 
                         Display *dpy,
                         char *name,
diff --git a/cde/programs/dthelp/Makefile.am b/cde/programs/dthelp/Makefile.am
new file mode 100644 (file)
index 0000000..fe5465f
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = parser dthelpview dthelpdemo dthelpgen dthelpprint
diff --git a/cde/programs/dthelp/dthelpgen/Makefile.am b/cde/programs/dthelp/dthelpgen/Makefile.am
new file mode 100644 (file)
index 0000000..d333252
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelpgen
+
+bin_SCRIPTS = dthelpgen.dtsh
+
+dthelpgen_CPPFLAGS = -I.. -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+                  -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+
+dthelpgen_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+
+dthelpgen_SOURCES = helpgen.c
diff --git a/cde/programs/dthelp/dthelpprint/Makefile.am b/cde/programs/dthelp/dthelpprint/Makefile.am
new file mode 100644 (file)
index 0000000..7ee85f0
--- /dev/null
@@ -0,0 +1,13 @@
+bin_PROGRAMS = dthelpprint dthelpprint.sh
+
+dthelpprint_CPPFLAGS = -I.. -DCDE_CONFIGURATION_TOP='"${prefix}"' \
+                    -DCDE_INSTALLATION_TOP='"$(CDE_INSTALLATION_TOP)"'
+
+dthelpprint_LDADD = $(LIBSVC) $(LIBTT) $(LIBHELP) $(XTOOLLIB) ${X_LIBS}
+
+if SOLARIS
+dthelpprint_LDADD += -lw -ldl -lgen -lm
+endif
+
+dthelpprint_SOURCES = Main.c Initialize.c PrintUtil.c PrintTopics.c \
+                     PrintManStrFile.c
diff --git a/cde/programs/dthelp/dthelpview/Makefile.am b/cde/programs/dthelp/dthelpview/Makefile.am
new file mode 100644 (file)
index 0000000..a6de404
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelpview
+
+dthelpview_CFLAGS = -D_BMS
+
+dthelpview_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+
+dthelpview_SOURCES = Main.c ManPage.c Util.c
diff --git a/cde/programs/dthelp/parser/Makefile.am b/cde/programs/dthelp/parser/Makefile.am
new file mode 100644 (file)
index 0000000..a016712
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = pass1 canon1 pass2 helptag misc dtds
diff --git a/cde/programs/dthelp/parser/canon1/Makefile.am b/cde/programs/dthelp/parser/canon1/Makefile.am
new file mode 100644 (file)
index 0000000..71f20bf
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES =Makefile.in
+
+SUBDIRS = util build eltdef helptag parser
diff --git a/cde/programs/dthelp/parser/pass1/Makefile.am b/cde/programs/dthelp/parser/pass1/Makefile.am
new file mode 100644 (file)
index 0000000..d402baa
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util build eltdef helptag parser
diff --git a/cde/programs/dthelp/parser/pass1/build/Makefile.am b/cde/programs/dthelp/parser/pass1/build/Makefile.am
new file mode 100644 (file)
index 0000000..19f53ca
--- /dev/null
@@ -0,0 +1,70 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = build
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+
+build_CFLAGS = -I$(HELPUTILSRC)
+
+build_LDADD = -l$(HELPUTILLIB)
+
+if HPUX
+build_LDFLAGS = -Wl,-a archive
+endif
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+build_SOURCES = build.c buildutl.c eltree.c except.c fsa.c out.c param.c \
+               scan.c sref.c tree.c
+
+CHPRODS = context.h delim.h
+CCPRODS = case.c
+
+BHPRODS = arc.h dtd.h entity.h
+BCPRODS =
+
+CTRASH  = error delim.dat
+BTRASH  = error template
+
+CPRODS  = $(CHPRODS) $(CCPRODS)
+BPRODS  = $(BHPRODS) $(BCPRODS)
+TRASH   = error delim.dat template
+
+PRODUCTS = $(CPRODS) $(BPRODS)
+
+all:: $(PRODUCTS)
+
+$(BPRODS): build $(HELPDTDFILE)
+        $(RM) $(BPRODS) $(BTRASH)
+        ./build < $(HELPDTDFILE)
+
+$(CPRODS):  $(HELPUTILSRC)/context $(HELPTAGSRC)/delim.bld context.dat
+        $(RM) $(CPRODS) $(CTRASH)
+        $(CP) $(HELPTAGSRC)/delim.bld delim.dat  #appl.-specific delim.dat
+        $(HELPUTILSRC)/context sparse
+
+$(HELPUTILSRC)/context:
+        cd $(HELPUTILSRC); make context
+
+arc package :
+        if exist util.arc $(CP) build.arc old.arc
+        $(ARCCMD) util.arc *.c *.h makefile
+
+unarc dearc :
+        $(UNARCCMD) util.arc
+
+clean::
+        $(RM) $(PRODUCTS) $(TRASH)
diff --git a/cde/programs/dthelp/parser/pass1/eltdef/Makefile.am b/cde/programs/dthelp/parser/pass1/eltdef/Makefile.am
new file mode 100644 (file)
index 0000000..8b3c8d6
--- /dev/null
@@ -0,0 +1,71 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = eltdef
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+HELPIFFILE    = $(HELPTAGSRC)/help.if
+HELPTSSFILE   = $(HELPTAGSRC)/htag.tss
+
+eltdef_LDADD = -l$(HELPUTILLIB)
+
+if HPUX
+eltdef_LDFLAGS = -Wl,-a archive
+endif
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+eltdef_CFLAGS = -I$(HELPUTILSRC) -I$(HELPBUILDSRC)
+
+eltdef_SOURCES = eltdef.c eltutil.c entity.c scan.c
+
+CCPRODS = case.c
+ECPRODS = efile.c entfile.c pfile.c sfile.c stfile.c tfile.c
+
+CHPRODS = context.h delim.h
+EHPRODS = entity2.h globdec.h globdef.h if.h pval.h signon.h signonx.h
+
+CPRODS  = $(CCPRODS) $(CHPRODS)
+EPRODS  = $(ECPRODS) $(EHPRODS)
+
+CTRASH  = delim.dat error
+ETRASH  = estring.h error
+TRASH   = delim.dat estring.h error
+
+PRODUCTS = $(CPRODS) $(EPRODS)
+
+all:: $(PRODUCTS)
+
+$(EPRODS): eltdef  $(HELPIFFILE) $(HELPTSSFILE)
+       $(RM) $(EPRODS) $(ETRASH)
+       ./eltdef $(HELPIFFILE)
+
+$(CPRODS):  $(HELPUTILSRC)/context $(HELPTAGSRC)/delim.elt context.dat
+       $(RM) $(CPRODS) $(CTRASH)
+       $(CP) $(HELPTAGSRC)/delim.elt delim.dat  # appl.-specific delim.dat
+       $(HELPUTILSRC)/context
+
+$(HELPUTILSRC)/context:
+       cd $(HELPUTILSRC); make context
+
+arc package :
+        if exist util.arc $(CP) build.arc old.arc
+        $(ARCCMD) util.arc *.c *.h makefile
+
+unarc dearc :
+        $(UNARCCMD) util.arc
+
+clean::
+        $(RM) $(PRODUCTS) $(TRASH)
diff --git a/cde/programs/dthelp/parser/pass1/helptag/Makefile.am b/cde/programs/dthelp/parser/pass1/helptag/Makefile.am
new file mode 100644 (file)
index 0000000..ca07559
--- /dev/null
@@ -0,0 +1,67 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelp_htag1
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+HELPIFFILE    = $(HELPTAGSRC)/help.if
+HELPTSSFILE   = $(HELPTAGSRC)/htag.tss
+
+XLATESRC  = $(DTHELPSRC)
+XLATEHDRS = $(XLATESRC)/XlationSvc.h $(XLATESRC)/LocaleXlate.h
+XLATESRCS = ${top_srcdir}/lib/DtSvc/DtUtil2/XlationSvc.c \
+           ${top_srcdir}/lib/DtSvc/DtUtil2/LocaleXlate.c
+
+ELTHDRS = $(HELPUTILSRC)/entdef.h $(HELPUTILSRC)/entext.h
+
+# PARSEHDRS are header files used by many parser routines
+PARSEHDRS = $(HELPUTILSRC)/basic.h $(HELPUTILSRC)/trie.h \
+        $(HELPUTILSRC)/common.h $(HELPUTILSRC)/dtddef.h \
+        $(HELPUTILSRC)/dtdext.h $(HELPUTILSRC)/sparse.h \
+        parser.h proto.h
+
+APPLHDRS = $(PARSEHDRS) $(ELTHDRS) \
+        $(HELPUTILSRC)/version.h \
+        $(HELPTAGSRC)/global.h $(HELPTAGSRC)/charconv.h \
+        $(HELPTAGSRC)/roman8.h $(HELPTAGSRC)/fproto.h \
+        ../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
+        ../parser/userinc.h
+
+dthelp_htag1_CFLAGS = -I$(HELPUTILSRC) -I$(HELPPARSERSRC) -I$(HELPELTDEFSRC) \
+                     -I$(XLATESRC)
+
+dthelp_htag1_LDADD = $(HELPUTILLIB)
+
+if HPUX
+dthelp_htag1_LDFLAGS = -Wl,-a archive
+endif
+
+if SOLARIS
+dthelp_htag1_LDADD += -lm -ldl -lgen
+endif
+
+dthelp_htag1_SOURCES = custom.c default.c help.c make.c option.c out.c \
+                     special.c xref.c $(XLATESRCS)
+
+dthelp_htag1$(EXEEXT): $(HELPPARSERSRC)/parser
+        $(RM) dthelp_htag1
+        $(CP) $(HELPPARSERSRC)/parser dthelp_htag1
+
+arcappl archptag :
+        if exist hptag.arc $(CP) hptag.arc hptag.old
+        $(ARCCMD) hptag.arc *.c *.h linkcmd.dos linkcmd.unx $(HELPDTDFILE) \
+        tex.if makefile makefile.doc make.ini delim.*
+
+unarcappl unarchptag :
+        $(UNARCCMD) hptag.arc
+
diff --git a/cde/programs/dthelp/parser/pass2/Makefile.am b/cde/programs/dthelp/parser/pass2/Makefile.am
new file mode 100644 (file)
index 0000000..f2eb68d
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util build eltdef htag2 parser
diff --git a/cde/programs/dticon/Makefile.am b/cde/programs/dticon/Makefile.am
new file mode 100644 (file)
index 0000000..925c1c2
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dticon
+
+dticon_CFLAGS = -D__TOOLTALK
+
+dticon_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dticon_LDADD += -ldl
+endif
+
+dticon_SOURCES = dtIconShell.c event.c fileIO.c fileIODialog.c \
+                 globals.c graphics.c help.c image.c main.c    \
+                 newIconDialog.c process.c queryDialog.c       \
+                 stdErrDialog.c utils.c constants.h externals.h        \
+                 help.h main.h
diff --git a/cde/programs/dtimsstart/Makefile.am b/cde/programs/dtimsstart/Makefile.am
new file mode 100644 (file)
index 0000000..c2d9144
--- /dev/null
@@ -0,0 +1,37 @@
+xsessiondir = $(CDE_INSTALLATION_TOP)/config/Xsession.d
+
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtimsstart
+
+dist_xsession_SCRIPTS = 0020.dtims
+
+dtimsstart_CFLAGS = -DNLS 
+
+dtimsstart_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtimsstart_CFLAGS += -xF
+endif
+
+dtimsstart_SOURCES = action.c env.c file.c main.c remote.c select.c    \
+                    start.c util.c win.c ximserr.h ximsfunc.h xims.h   \
+                    ximspath.h
+
+BUILT_SOURCES = 0020.dtims
+CLEANFILE = $(BUILT_SOURCES)
+
+cfgdir = $(CDE_INSTALLATION_TOP)/config/Xsession.d
+dist_cfg_DATA = 0020.dtims
+
+imsdir = $(CDE_INSTALLATION_TOP)/config/ims
+dist_ims_DATA = conf/start.conf
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+                   -DKORNSHELL=$(KSH)
+
+0020.dtims: 0020.dtims.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
index 669623c46752f7e9c1bd9f1d20194ac32371265e..c7358c27f1f7ae5043d3283d218a2daaffc25eb5 100644 (file)
@@ -26,6 +26,8 @@
 #include "xims.h"
 
 
+int find_CDE_locale_name(void); /* from util.c */
+
 typedef        enum {
     P_Shell,   /* posix shell */
     K_Shell,   /* Korn shell */
index 78fc2a38235f99158357ecde7709c960b6be4cba..db75739511d6d36002a01f57490f0f11ecf2fb75 100644 (file)
@@ -27,6 +27,7 @@
 #include       <sys/wait.h>
 #include       <setjmp.h>
 #include       <unistd.h>
+#include       <time.h>
 
 #if (defined(__linux__) || defined(CSRG_BASED)) && !defined(_NFILE)
 #define _NFILE FOPEN_MAX
index 9437e3666ec113345f007d97940fe792b032e098..e359c319db187709a9e8b1ee4a56d306c03bf1be 100644 (file)
@@ -23,7 +23,8 @@
 /* @(#)$XConsortium: util.c /main/6 1996/07/12 15:44:21 pascale $ */
 
 #include <time.h>
-#include <DtHelp/LocaleXlate.h>  /* for locale equivalence between platforms */
+#include <ctype.h>
+#include <Dt/LocaleXlate.h>  /* for locale equivalence between platforms */
 #include "xims.h"
 #include <sys/stat.h>
 
index 547c1f9f507ef966e665ba7748190ddf7218a282..38fa7a17e4140476c31a056c211245d449366832 100644 (file)
@@ -23,6 +23,7 @@
 /* @(#)$TOG: win.c /main/9 1997/06/18 17:33:01 samborn $ */
 
 #include       <stdint.h>
+#include       <time.h>
 
 #include       <X11/X.h>
 #include       <X11/Xlib.h>
diff --git a/cde/programs/dtinfo/DtMmdb/Makefile.am b/cde/programs/dtinfo/DtMmdb/Makefile.am
new file mode 100644 (file)
index 0000000..19a7ae4
--- /dev/null
@@ -0,0 +1,24 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = \
+        api                     btree \
+        btree_berkeley          compression \
+        diskhash                dstr \
+        dti_excs                dynhash \
+        hmphf                   index \
+        mgrs                    misc \
+        object                  oliasdb \
+        schema                  storage \
+        utility
+
+lib_LTLIBRARIES = libDtMmdb.la
+
+libDtMmdb_la_SOURCES =
+
+libDtMmdb_la_LIBADD += libapi.la libbtree.la libbtree_berkeley.la \
+                      libcompression.la libdiskhash.la libdstr.la \
+                      libdti_excs.la libdynhash.la libhmphf.la libindex.la \
+                      libmgrs.la libmisc.la libobject.la liboliasdb.la \
+                      libschema.la libstorage.la libutility.la
+
+libDtMmdb_la_LDFLAGS = -version-info 2:1:0
diff --git a/cde/programs/dtinfo/DtMmdb/api/Makefile.am b/cde/programs/dtinfo/DtMmdb/api/Makefile.am
new file mode 100644 (file)
index 0000000..bc40829
--- /dev/null
@@ -0,0 +1,8 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libapi.la
+
+libapi_la_CXXFLAGS = -DC_API -I.. -I../misc -I../dti_excs
+
+libapi_la_SOURCES = base.C info_base.C info_lib.C smart_ptr.C transaction.C \
+                   utility.C
diff --git a/cde/programs/dtinfo/DtMmdb/btree/Makefile.am b/cde/programs/dtinfo/DtMmdb/btree/Makefile.am
new file mode 100644 (file)
index 0000000..1049600
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libbtree.la
+
+libbtree_la_CXXFLAGS = -DC_API -I.. -I../dti_excs
+
+libbtree_la_SOURCES = mmdb_btree.C
diff --git a/cde/programs/dtinfo/DtMmdb/btree_berkeley/Makefile.am b/cde/programs/dtinfo/DtMmdb/btree_berkeley/Makefile.am
new file mode 100644 (file)
index 0000000..dc7747d
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libbtree_berkeley.la
+
+libbtree_berkeley_la_CFLAGS = -DMEMMOVE -I..
+
+if AIX
+MEMMOVE =
+else
+MEMMOVE = memmove.c
+endif
+
+libbtree_berkeley_la_SOURCES =  bt_close.c bt_conv.c bt_debug.c bt_delete.c \
+                               bt_get.c bt_open.c bt_overflow.c bt_page.c \
+                               bt_put.c bt_search.c bt_seq.c bt_split.c \
+                               bt_stack.c bt_utils.c $(MEMMOVE) mktemp.c \
+                               realloc.c snprintf.c mpool.c db.c
diff --git a/cde/programs/dtinfo/DtMmdb/compression/Makefile.am b/cde/programs/dtinfo/DtMmdb/compression/Makefile.am
new file mode 100644 (file)
index 0000000..97b675f
--- /dev/null
@@ -0,0 +1,8 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libcompression.la
+
+libcompression_la_CXXFLAGS = -DC_API -I.. -I../dti_excs
+
+libcompression_la_SOURCES = abs_agent.C zip.C huffman.C trie.C code.C lzss.C \
+                           sgml.C ps.C
diff --git a/cde/programs/dtinfo/DtMmdb/diskhash/Makefile.am b/cde/programs/dtinfo/DtMmdb/diskhash/Makefile.am
new file mode 100644 (file)
index 0000000..0151a80
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libdiskhask.la
+
+libdiskhash_la_CXXFLAGS = -DC_API -I.. -I../dti_excs
+
+libdiskhash_la_SOURCES = disk_bucket.C bucket_array.C disk_hash.C
diff --git a/cde/programs/dtinfo/DtMmdb/dstr/Makefile.am b/cde/programs/dtinfo/DtMmdb/dstr/Makefile.am
new file mode 100644 (file)
index 0000000..2103e2e
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libdstr.la
+
+libdstr_la_CXXFLAGS = -DC_API -I.. -I../dti_excs
+
+libdstr_la_SOURCES = set.C bset.C slist.C dlist_cell.C dlist.C heap.C \
+                    void_ptr_array.C void_ptr_stack.C memory_pool.C \
+                    dstr_test.C index_agent.C token_stack.C \
+                    slist_char_ptr_cell.C
diff --git a/cde/programs/dtinfo/DtMmdb/dti_excs/Makefile.am b/cde/programs/dtinfo/DtMmdb/dti_excs/Makefile.am
new file mode 100644 (file)
index 0000000..fa5deee
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libdti_excs.la
+
+libdti_excs_la_CXXFLAGS = -DC_API -DCC_VERSION=30 -DCHECK_INITIALIZED
+
+if SOLARIS
+libdti_excs_la_CXXFLAGS += -DHAS_TERMINATE
+endif
+
+libdti_excs_la_SOURCES = Jump_Environment.C      Exceptions.C    Exception.C \
+                        Destructable.C          terminate.C     init.C
diff --git a/cde/programs/dtinfo/DtMmdb/dynhash/Makefile.am b/cde/programs/dtinfo/DtMmdb/dynhash/Makefile.am
new file mode 100644 (file)
index 0000000..1c83755
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libdynhash.la
+
+libdynhash_la_CXXFLAGS = -DC_API -I.. -I../dti_excs
+
+libdynhash_la_SOURCES = data_t.C imp_bucket.C imp_die.C
diff --git a/cde/programs/dtinfo/DtMmdb/hmphf/Makefile.am b/cde/programs/dtinfo/DtMmdb/hmphf/Makefile.am
new file mode 100644 (file)
index 0000000..3f0669e
--- /dev/null
@@ -0,0 +1,8 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libhmphf.la
+
+libhmphf_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs
+
+libhmphf_la_SOURCES = buckets.C       mphf_funcs.C    mphf_hash_table.C \
+                     params.C        pattern.C       sorter.C
diff --git a/cde/programs/dtinfo/DtMmdb/index/Makefile.am b/cde/programs/dtinfo/DtMmdb/index/Makefile.am
new file mode 100644 (file)
index 0000000..9e0b929
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libindex.la
+
+libindex_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs
+
+libindex_la_SOURCES = btree_index.C dyn_disk_index.C dyn_index.C  \
+                     dyn_memory_index.C fast_mphf.C hash.C index.C \
+                     inv_lists.C mphf_index.C
diff --git a/cde/programs/dtinfo/DtMmdb/mgrs/Makefile.am b/cde/programs/dtinfo/DtMmdb/mgrs/Makefile.am
new file mode 100644 (file)
index 0000000..c9cf20a
--- /dev/null
@@ -0,0 +1,8 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libmgrs.la
+
+libmgrs_la_CXXFLAGS = -DC_API -DCOMPACTED_DISK_REP -DPORTABLE_DB -I.. \
+                     -I../dti_excs
+
+libmgrs_la_SOURCES = managers.C misc.C query_mgr.C template_mgr.C
diff --git a/cde/programs/dtinfo/DtMmdb/misc/Makefile.am b/cde/programs/dtinfo/DtMmdb/misc/Makefile.am
new file mode 100644 (file)
index 0000000..ef83ec7
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES= Makefile.in
+
+noinst_LTLIBRARIES = libmisc.la
+
+libmisc_la_CFLAGS = -DPORTABLE_DB
+
+libmisc_la_SOURCES = unique_id.c
diff --git a/cde/programs/dtinfo/DtMmdb/object/Makefile.am b/cde/programs/dtinfo/DtMmdb/object/Makefile.am
new file mode 100644 (file)
index 0000000..dc96b75
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libobject.la
+
+libobject_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs
+
+libobject_la_SOURCES = composite.C     compressed_pstring.C    cset.C \
+                      dl_list.C       dl_list_cell.C          handler.C \
+                      integer.C       long_pstring.C          oid.C \
+                      oid_list.C      oid_t.C                 primitive.C \
+                      pstring.C       random_gen.C            root.C \
+                      short_list.C    tuple.C
diff --git a/cde/programs/dtinfo/DtMmdb/oliasdb/Makefile.am b/cde/programs/dtinfo/DtMmdb/oliasdb/Makefile.am
new file mode 100644 (file)
index 0000000..3e1ccfa
--- /dev/null
@@ -0,0 +1,34 @@
+infolibdir = ${prefix}/infolib
+
+MAINTAINERCLEANFILES = Makefile.in
+
+infolib_PROGRAMS = mmdb.infolib.spec
+
+noinst_LTLIBRARIES = liboliasdb.la
+
+liboliasdb_la_CXXFLAGS = -DC_API -DNO_DB_LOCK -DCDE_NEXT -I.. -I../misc \
+                        -I../dti_excs -I../dti_cc -I../..
+
+liboliasdb_la_SOURCES = asciiIn_filters.C       collectionIterator.C \
+                       dlp_hd.C                dlp_test.C \
+                       doc_hd.C                doc_test.C \
+                       graphic_hd.C            graphic_test.C \
+                       loc_test.C              locator_hd.C \
+                       mark.C                  mark_base.C \
+                       mark_test.C             mmdb.C \
+                       node_hd.C               node_test.C \
+                       olias_funcs.C           olias_test.C \
+                       stylesheet_hd.C         stylesheet_test.C \
+                       toc_hd.C                toc_test.C \
+                       user_base.C             c_api_book.C \
+                       c_api_book_test.C \
+                       c_api_bookcase.C        c_api_bookcase_test.C \
+                       c_api_common.C          \
+                       c_api_dlp.C             c_api_dlp_test.C \
+                       c_api_graphic.C         c_api_graphic_test.C \
+                       c_api_infolib.C         c_api_infolib_test.C \
+                       c_api_locator.C         c_api_locator_test.C \
+                       c_api_pure_virtual.C    \
+                       c_api_section.C         c_api_section_test.C \
+                       c_api_stylesheet.C      c_api_stylesheet_test.C \
+                       c_api_toc.C             c_api_toc_test.C
diff --git a/cde/programs/dtinfo/DtMmdb/schema/Makefile.am b/cde/programs/dtinfo/DtMmdb/schema/Makefile.am
new file mode 100644 (file)
index 0000000..7b3fc44
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+
+noinst_LTLIBRARIES = libschema.la
+
+libschema_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs -I../misc
+
+libschema_la_SOURCES = desc.C store_desc.C object_dict.C stored_object_desc.C \
+                      index_desc.C inv_desc.C agent_desc.C container_desc.C \
+                      sheet.C token.C
diff --git a/cde/programs/dtinfo/DtMmdb/storage/Makefile.am b/cde/programs/dtinfo/DtMmdb/storage/Makefile.am
new file mode 100644 (file)
index 0000000..f17489b
--- /dev/null
@@ -0,0 +1,11 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libstorage.la
+
+libstorage_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs
+
+libstorage_la_SOURCES = abs_storage.C   chunks_index.C  heap_comp_funcs.C \
+                       lru.C           page.C          page_cache.C \
+                       page_rep.C      page_storage.C  rep_cell.C \
+                       rep_policy.C    store_test.C    unixf_storage.C \
+                       version.C       vm_storage.C
diff --git a/cde/programs/dtinfo/DtMmdb/utility/Makefile.am b/cde/programs/dtinfo/DtMmdb/utility/Makefile.am
new file mode 100644 (file)
index 0000000..080f67c
--- /dev/null
@@ -0,0 +1,13 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LTLIBRARIES = libutility.la
+
+libutility_la_CXXFLAGS = -DC_API -DPORTABLE_DB -I.. -I../dti_excs -I../misc
+
+libutility_la_SOURCES = funcs.C         ostring.C       pm_random.C \
+                       atoi_pearson.C  xtime.C         buffer.C \
+                       atoi_larson.C   atomic_lock.C   rw_lock.C \
+                       atoi_fast.C     filter.C        mmdb_exception.C \
+                       randomize.C     streambuf.C     charbuf.C \
+                       filebuf.C       string.C        stringstream.C \
+                       iostream.C      fstream.C       stream.C        ios.C
diff --git a/cde/programs/dtinfo/Makefile.am b/cde/programs/dtinfo/Makefile.am
new file mode 100644 (file)
index 0000000..00f91a7
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = tools dtinfo dtinfogen clients
diff --git a/cde/programs/dtinfo/clients/Makefile.am b/cde/programs/dtinfo/clients/Makefile.am
new file mode 100644 (file)
index 0000000..6310d62
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = dtinfo_start
diff --git a/cde/programs/dtinfo/clients/dtinfo_start/Makefile.am b/cde/programs/dtinfo/clients/dtinfo_start/Makefile.am
new file mode 100644 (file)
index 0000000..8f08107
--- /dev/null
@@ -0,0 +1,13 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = dtinfo_start
+
+dtinfo_start_CFLAGS = -I.
+
+dtinfo_start_LDADD = ${X_LIBS} $(LIBTT) $(LIBSVC) $(XTOOLLIB) -lXm
+
+dtinfo_start.opnums: $(srcdir)/tttypes/dtinfo_start.opnums
+       $(RM) dtinfo_start.opnums
+       $(LN_S) $? $@
+
+dtinfo_start_SOURCES = dtinfo_start.c
diff --git a/cde/programs/dtinfo/dtinfo/Makefile.am b/cde/programs/dtinfo/dtinfo/Makefile.am
new file mode 100644 (file)
index 0000000..7125a94
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = wwl src install
diff --git a/cde/programs/dtinfo/dtinfo/install/Makefile.am b/cde/programs/dtinfo/dtinfo/install/Makefile.am
new file mode 100644 (file)
index 0000000..2433e6c
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = lib
diff --git a/cde/programs/dtinfo/dtinfo/install/lib/Makefile.am b/cde/programs/dtinfo/dtinfo/install/lib/Makefile.am
new file mode 100644 (file)
index 0000000..7feeb3f
--- /dev/null
@@ -0,0 +1,7 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+etcdir = $(CDE_CONFIGURATION_TOP)
+
+SUBDIRS = fonts
+
+etc_PROGRAMS = mmdb.mark.spec
diff --git a/cde/programs/dtinfo/dtinfo/install/lib/bitmaps/Makefile.am b/cde/programs/dtinfo/dtinfo/install/lib/bitmaps/Makefile.am
new file mode 100644 (file)
index 0000000..e87953e
--- /dev/null
@@ -0,0 +1,67 @@
+icondir = ${prefix}/appconfig/icons/C
+
+if JAPANESE
+jdir = ${prefix}/appconfig/icons/ja
+
+dist_j_DATA = bomb \
+              bomb16 \
+              bomb16m \
+              bomb32 \
+              bomb32m \
+              bombm \
+              browse.xbm \
+              browse_ins.xbm \
+              web_browse.xbm \
+              web_browse_ins.xbm \
+              default.xpm \
+              deiconify.xbm \
+              detached.xpm \
+              help.xbm \
+              help_ins.xbm \
+              history.xbm \
+              history_ins.xbm \
+              iconify.xbm \
+              locked.xbm \
+              logo.xpm.ps \
+              marks.xbm \
+              marks_ins.xbm \
+              pinin.xbm \
+              pinmid.xbm \
+              pinout.xbm \
+              quit.xbm \
+              search.xbm \
+              search_ins.xbm \
+              semilocked.xbm \
+              unlocked.xbm
+endif
+
+dist_icon_DATA = bomb \
+                bomb16 \
+                bomb16m \
+                bomb32 \
+                bomb32m \
+                bombm \
+                browse.xbm \
+                browse_ins.xbm \
+                web_browse.xbm \
+                web_browse_ins.xbm \
+                default.xpm \
+                deiconify.xbm \
+                detached.xpm \
+                help.xbm \
+                help_ins.xbm \
+                history.xbm \
+                history_ins.xbm \
+                iconify.xbm \
+                locked.xbm \
+                logo.xpm.ps \
+                marks.xbm \
+                marks_ins.xbm \
+                pinin.xbm \
+                pinmid.xbm \
+                pinout.xbm \
+                quit.xbm \
+                search.xbm \
+                search_ins.xbm \
+                semilocked.xbm \
+                unlocked.xbm
diff --git a/cde/programs/dtinfo/dtinfo/install/lib/fonts/Makefile.am b/cde/programs/dtinfo/dtinfo/install/lib/fonts/Makefile.am
new file mode 100644 (file)
index 0000000..142befa
--- /dev/null
@@ -0,0 +1 @@
+include $(srcdir)/programs/fontaliases/bdf/fonts.tmpl
diff --git a/cde/programs/dtinfo/dtinfo/wwl/Makefile.am b/cde/programs/dtinfo/dtinfo/wwl/Makefile.am
new file mode 100644 (file)
index 0000000..7bc72af
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = src
diff --git a/cde/programs/dtinfo/dtinfo/wwl/src/Makefile.am b/cde/programs/dtinfo/dtinfo/wwl/src/Makefile.am
new file mode 100644 (file)
index 0000000..b629945
--- /dev/null
@@ -0,0 +1,13 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libWWL.a
+
+libWWL_a_CXXFLAGS = -I../include
+
+if SOLARIS
+lbWWL_a_CXXFLAGS += -DSYSV -DSVR4
+endif
+
+libWWL_a_SOURCES = WArgList.C      WCallback.C     WComposite.C \
+                  WObject.C       WXmList.C       WXmMenu.C \
+                  WXmRadioBox.C   WXmString.C
diff --git a/cde/programs/dtinfo/dtinfogen/Makefile.am b/cde/programs/dtinfo/dtinfogen/Makefile.am
new file mode 100644 (file)
index 0000000..4e0e1ac
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = mmdb infolib install
diff --git a/cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/Makefile.am b/cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/Makefile.am
new file mode 100644 (file)
index 0000000..8d66275
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = SGML
diff --git a/cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/SGML/Makefile.am b/cde/programs/dtinfo/dtinfogen/infolib/C.ISO-8859-1/SGML/Makefile.am
new file mode 100644 (file)
index 0000000..4cd0fbe
--- /dev/null
@@ -0,0 +1,47 @@
+sgmldir = ${prefix}/infolib/C/SGML
+
+MAINTAINERCLEANFILES = Makefile.in
+
+DECL_FILES= \
+        dtinfo.decl
+
+DTD_FILES= \
+        dtinfoBook.dtd \
+        dtinfoStyle.dtd \
+        dtinfoTOC.dtd \
+        docbook.dtd
+
+ENTITY_FILES= \
+        dtinfo.af \
+        catalog \
+        hal.gml \
+        iso-catalog  \
+        iso-amsa.gml \
+        iso-amsb.gml \
+        iso-amsc.gml \
+        iso-amsn.gml \
+        iso-amso.gml \
+        iso-amsr.gml \
+        iso-box.gml  \
+        iso-cyr1.gml \
+        iso-cyr2.gml \
+        iso-dia.gml  \
+        iso-grk1.gml \
+        iso-grk2.gml \
+        iso-grk3.gml \
+        iso-grk4.gml \
+        iso-lat1.gml \
+        iso-lat2.gml \
+        iso-mfrk.gml \
+        iso-mopf.gml \
+        iso-mscr.gml \
+        iso-num.gml  \
+        iso-pub.gml  \
+        iso-tech.gml
+
+MISC_FILES= \
+        styprolog.sgml
+
+ALL_FILES = $(DECL_FILES) $(DTD_FILES) $(ENTITY_FILES) $(MISC_FILES)
+
+sgml_DATA = $(ALL_FILES)
diff --git a/cde/programs/dtinfo/dtinfogen/infolib/Makefile.am b/cde/programs/dtinfo/dtinfogen/infolib/Makefile.am
new file mode 100644 (file)
index 0000000..3ce08b2
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = etc C.ISO-8859-1 ja_JP.EUC-JP
+
+C:: C.ISO-8859-1
+       $(RM) $@
+       $(LN) $? $@
+
+clean::
+       $(RM) C
diff --git a/cde/programs/dtinfo/dtinfogen/infolib/ja_JP.EUC-JP/Makefile.am b/cde/programs/dtinfo/dtinfogen/infolib/ja_JP.EUC-JP/Makefile.am
new file mode 100644 (file)
index 0000000..8d66275
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = SGML
diff --git a/cde/programs/dtinfo/dtinfogen/mmdb/Makefile.am b/cde/programs/dtinfo/dtinfogen/mmdb/Makefile.am
new file mode 100644 (file)
index 0000000..ae1cbf3
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = src StyleSheet
diff --git a/cde/programs/dtinfo/tools/Makefile.am b/cde/programs/dtinfo/tools/Makefile.am
new file mode 100644 (file)
index 0000000..e71bb26
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = misc
diff --git a/cde/programs/dtksh/Makefile.am b/cde/programs/dtksh/Makefile.am
new file mode 100644 (file)
index 0000000..001512a
--- /dev/null
@@ -0,0 +1,73 @@
+kshdir = ${libdir}/dtksh
+
+dist_ksh_SCRIPTS = DtFuncs.dtsh
+
+KSH93SRC = ./ksh93
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+SUBDIRS = examples ksh93
+KSH93OBJ = $(KSH93SRC)/ksh93.o
+KSH93LIBSHELL = $(KSH93SRC)/src/cmd/ksh93/libshell.a
+
+bin_PROGRAMS = dtksh
+
+dtksh_CPPFLAGS = -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include \
+              -I$(KSH93SRC)/src/cmd/ksh93 -I${srcdir}/lib/DtPrint \
+              -I${srcdir}/lib/DtHelp
+dtksh_LDADD = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) $(TTLIB) \
+             -lXm $(XTOOLLIB) ${X_LIB} $(KSH93SRC)/lib/libcmd.a  \
+             $(KSH93SRC)/lib/libast.a -lm
+
+if LINUX
+dtksh_LDADD += -ldl
+endif
+
+if SOLARIS
+dtksh_CPPFLAGS += -DDYNLIB
+endif
+
+if HPUX
+dtksh_CFLAGS += -Wl,-E -DHPUX_DYNLIB -Wp,-H12000
+dtksh_LDADD += -lm -ldld
+endif
+
+if AIX
+dtksh_CPPFLAGS += -DDYNLIB -D_IBMRPC_
+dtksh_LDADD += -bE:dtksh.exp
+endif
+
+dtksh_SOURCES = \
+                userinit.c \
+                builtins.c \
+                aliases.c \
+                widget.c \
+                dtkcvt.c \
+                dtkcmds.c \
+                XtCvtrs.c \
+                xmcvt.c \
+                xmcmds.c \
+                xmwidgets.c \
+                extra.c \
+                xmdtksym.c \
+                findsym.c \
+                msgs.c
+
+all:: dtksh
+
+$(KSH93SRC)/ksh93.o:
+        cd $(KSH93SRC); $(MAKE)
+
+# Must replace standard ksh tables of builtins and aliases
+# with our augmented versions.
+
+libshell.a: $(KSH93SLIBSHELL) userinit.o builtins.o aliases.o
+        $(CP) $(KSH93LIBSHELL) libshell.a; \
+        ar d libshell.a userinit.o builtins.o aliases.o ; \
+        $(AR) libshell.a userinit.o builtins.o aliases.o
+
+clean::
+        @echo " Cleaning ksh directories"
+        $(SHELL) MakeClean
diff --git a/cde/programs/dtksh/ksh93/Makefile.am b/cde/programs/dtksh/ksh93/Makefile.am
new file mode 100644 (file)
index 0000000..690a722
--- /dev/null
@@ -0,0 +1,60 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBCFLAGS = -O
+UFLAGS = $(SUBCFLAGS)
+ULDFLAGS =
+IFFECDEBUGFLAGS = -O0
+
+if AIX
+CCFLAGS = CCFLAGS="  "
+else
+CCFLAGS =
+endif
+
+if SOLARIS
+.NO_PARALLEL:
+endif
+
+FORCE_SHIP = -F
+
+MALLOCOBJ =
+
+KSHSRC = ./src/cmd/ksh93
+
+KSHLIBS = \
+                $(KSHSRC)/../../lib/libcmd/libcmd.a
+
+KSH_OBJS = \
+                $(KSHSRC)/main.o \
+                $(KSHSRC)/timers.o \
+                $(KSHLIBS)
+
+OBJS = $(KSH_OBJS) $(KSH_LIBS)
+
+SUIDEXECDEFINES = \
+        -DPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/profile\" \
+        -DSUIDPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/suid_profile\" \
+        -DSUIDEXECPATH=\"${prefix}/bin/suid_exec\" \
+        -DCDE_INSTALLATION_TOP=\"${prefix}\"
+
+CCFLAGS = $(CDEBUGFLAGS) $(SUIDEXECDEFINES) $(STD_DEFINES) $(ANSI_DEFINES)
+ICCFLAGS = $(IFFECDEBUGFLAGS) $(STD_DEFINES) $(ANSI_DEFINES)
+
+all:: ksh93src ksh93.o
+
+SHIP_DIR = ship
+ALL_SUBS = *
+
+ksh93src:
+        $(RM) $(SHIP_DIR)/$(ALL_SUBS)/$(ALL_SUBS)/BUILT; \
+        SHELL=$(KSH) CC="$(CC)" CCFLAGS="$(CCFLAGS)" ICCFLAGS="$(ICCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)
+
+ksh93.o: $(OBJS)
+        $(LD) -r -o $@ $(OBJS)
+
+clobber:: clobmine
+
+clobmine:
+        $(RM) -f libksh93.a
+
+install::
diff --git a/cde/programs/dtlogin/Makefile.am b/cde/programs/dtlogin/Makefile.am
new file mode 100644 (file)
index 0000000..9551513
--- /dev/null
@@ -0,0 +1,88 @@
+SUBDIRS = config
+
+bin_PROGRAMS = dtlogin dtgreet dtchooser
+
+XDMDIR = $(CDE_LOGFILES_TOP)
+
+DEF_SERVER = $(XBINDIR)/X
+DEF_USER_PATH = $(PATH):$(XBINDIR)
+DEF_SYSTEM_PATH = $(PATH):$(XBINDIR)
+
+DEF_BM_PATH = $(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B
+DEF_PM_PATH = $(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/%L/%B:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_CONFIGURATION_TOP)/appconfig/icons/C/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/%L/%B:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.pm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B%M.bm:$(CDE_INSTALLATION_TOP)/appconfig/icons/C/%B
+
+AM_CFLAGS = -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
+            -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
+            -DCDE_LOGFILES_TOP=\"$(CDE_LOGFILES_TOP)\" \
+           $(FREETYPE_CFLAGS) -DBINDIR=\"$(XBINDIR)\" \
+           -DXDMDIR=\"$(XDMDIR)\" \
+           -DKORNSHELL=$(KSH) -DUNIXCONN -DTCPCONN -DXDMCP
+
+dtlogin_SOURCES = access.c account.c auth.c genauth.c daemon.c dm.c \
+                  dpylist.c error.c file.c mitauth.c protodpy.c policy.c \
+                  reset.c server.c session.c socket.c util.c \
+                  verify.c sysauth.c fontpath.c qualify.c choose.c netaddr.c \
+                 xdmcp.c
+
+# We play a game here with resources.o (dtlogin).  It needs special options.
+noinst_LIBRARIES = libresource.a
+libresource_a_SOURCES = resource.c
+libresource_a_CFLAGS = $(AM_CFLAGS) \
+                -DDEF_SESSION=\"$(CDE_INSTALLATION_TOP)/bin/Xsession\" \
+                -DDEF_SYSTEM_SHELL=\"/bin/sh\" \
+                 -DDEF_CHOOSER=\"$(CDE_INSTALLATION_TOP)/bin/dtchooser\" \
+                 -DDEF_XDM_CONFIG=\"Xconfig\" -DSIGNALRETURNSINT \
+                -DDEF_SERVER_LINE=\"":0 Local local $(DEF_SERVER) :0"\" \
+                 -DXRDB_PROGRAM=\"$(XRDB)\" \
+                 -DDEF_USER_PATH=\"$(DEF_USER_PATH)\" \
+                 -DDEF_SYSTEM_PATH=\"$(DEF_SYSTEM_PATH)\" \
+                 -DDEF_FAILSAFE_CLIENT=\"$(XBINDIR)/xterm\" \
+                 -DDEF_AUTH_FILE=\"$(XDMDIR)/auth-server\" \
+                 -DDEF_AUTH_DIR=\"$(XDMDIR)\" \
+                 -DCPP_PROGRAM=\""$(CPP_PROGRAM)"\" \
+                 -DDEF_PM_SEARCH_PATH=\"$(DEF_PM_PATH)\" \
+                 -DDEF_BM_SEARCH_PATH=\"$(DEF_BM_PATH)\"
+
+dtgreet_SOURCES = vgcallback.c vglogo.c vgmain.c vgutil.c vglang.c
+
+dtchooser_SOURCES = chooser.c dtchooser.c vglogo.c vgutil.c vgcallback.c \
+                   vglang.c
+
+dtlogin_LDADD = libresource.a @DTCLIENTLIBS@ -lXau -lXmu -lXext -lXdmcp \
+       $(FREETYPE_LIBS) $(XTOOLLIB) $(TIRPCLIB)
+
+dtgreet_LDADD = $(DTCLIENTLIBS) $(FREETYPE_LIBS) $(XTOOLLIB)
+
+dtchooser_LDADD = $(DTCLIENTLIBS) $(FREETYPE_LIBS) -lXmu -lXext -lXdmcp $(XTOOLLIB)
+
+
+if LINUX
+AM_CFLAGS += -DHASDES -DHASXDMAUTH
+XBINDIR = /usr/bin
+dtlogin_SOURCES += xdmauth.c
+endif
+
+if FREEBSD
+AM_CFLAGS += -DHASDES -DHASXDMAUTH
+XBINDIR = /usr/local/bin
+dtlogin_SOURCES += xdmauth.c
+endif
+
+if OPENBSD
+XBINDIR = /usr/X11R6/bin
+AM_CFLAGS += -DHASDES -DHASXDMAUTH
+dtlogin_SOURCES += xdmauth.c
+endif
+
+if NETBSD
+XBINDIR = /usr/X11R7/bin
+endif
+
+if SOLARIS
+XBINDIR = /usr/bin/X11
+dtlogin_LDADD += -ldl -lgen -lresolv -lbsm -lcmd
+dtgreet_LDADD += -ldl -lgen -lresolv -lbsm -lcmd
+dtchooser_LDADD += -ldl -lgen -lresolv -lbsm -lcmd
+dtlogin_SOURCES += solaris.c
+endif
+
diff --git a/cde/programs/dtlogin/config/Makefile.am b/cde/programs/dtlogin/config/Makefile.am
new file mode 100644 (file)
index 0000000..faa7fb5
--- /dev/null
@@ -0,0 +1,151 @@
+
+AM_CPPFLAGS = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+            -DCDE_INSTALLATION_TOP=${prefix} \
+            -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
+           -DKORNSHELL=$(KSH)
+
+if LINUX
+AM_CPPFLAGS += -DXPROJECTROOT="/usr" -Dlinux -D__linux__
+endif
+
+if FREEBSD
+AM_CPPFLAGS += -DFREEBSD -DXPROJECTROOT="/usr/local" -D__FreeBSD__
+endif
+
+if SOLARIS
+AM_CPPFLAGS += -DXPROJECTROOT="/usr" -Dsun
+endif
+
+if OPENBSD
+AM_CPPFLAGS += -DXPROJECTROOT="/usr/X11R6" -D__OpenBSD__
+endif
+
+if NETBSD
+AM_CPPFLAGS += -DXPROJECTROOT="/usr/X11R7" -D__NetBSD__
+endif
+
+if BSD
+AM_CPPFLAGS += -DCSRG_BASED
+endif
+
+
+CPP_TARGETS = 0060.dtsysenv Dtlogin Xaccess Xconfig Xconfig.con        \
+       Xconfig.nc Xfailsafe Xreset Xresources Xresources.ive   \
+       Xservers Xservers.con Xservers.nc Xsession Xsession.ive \
+       Xsetup Xstartup current.session display.current.session \
+       display.home.session dtlslocale dtprofile home.session  \
+       sys.dtprofile
+
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+# Some of these are installed here, others are installed via
+# programs/localization/
+
+configsdir=$(CDE_INSTALLATION_TOP)/config
+dist_configs_DATA = Xaccess Xconfig Xfailsafe Xservers
+dist_configs_SCRIPTS = sys.dtprofile Xfailsafe Xreset Xsetup Xstartup
+
+xsessdir=$(CDE_INSTALLATION_TOP)/config/Xsession.d
+dist_xsess_SCRIPTS = 0060.dtsysenv
+
+dist_bin_SCRIPTS = Xsession
+
+# fake - installed under a different name
+sys.dtprofile: dtprofile
+       $(RM) $@
+       $(LN_S) $< $@
+
+# regular targets
+0060.dtsysenv: 0060.dtsysenv.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS)  $< > $@
+
+Dtlogin: Dtlogin.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xaccess: Xaccess.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xconfig: Xconfig.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xconfig.con: Xconfig.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xconfig.nc: Xconfig.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DNO_CONSOLE $< > $@
+
+Xfailsafe: Xfailsafe.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xreset: Xreset.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xresources: Xresources.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xresources.ive: Xresources.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DIVE $< > $@
+
+Xservers: Xservers.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xservers.con: Xservers.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xservers.nc: Xservers.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DNO_CONSOLE $< > $@
+
+Xsession: Xsession.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xsession.ive: Xsession.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) -DIVE $< > $@
+
+Xsetup: Xsetup.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+Xstartup: Xstartup.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+current.session: current.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+display.current.session: display.current.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+display.home.session: display.home.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+dtlslocale: dtlslocale.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+dtprofile: dtprofile.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
+home.session: home.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(AM_CPPFLAGS) $< > $@
+
index 6f550edfca2270d9122d66b299c1be274f259647..ae82c47503135a4290c6bc9b09e18ece1d35b7bb 100644 (file)
@@ -69,7 +69,7 @@ XCOMM ##########################################################################
 #endif
 
 #ifdef linux
-#  define cpp_MAIL "/var/spool/mail/$USER"
+#  define cpp_MAIL "/var/mail/$USER"
 #  define cpp_XDIR "/usr/bin"
 #  define cpp_XINITUSER "$HOME/.xinitrc"
 #  define cpp_XDMSYS "/etc/X11/Xsession"
index 3e0f24997416641449b42a9d3b18a3108d56e40a..b3a0b2dcb8019b26b33851314031c922c10b1e95 100644 (file)
@@ -905,8 +905,6 @@ extern char * localHostname( void ) ;
 /*******************************     util.c      **************************/
 
 extern void CleanUpChild( void ) ;
-extern Cursor GetHourGlass(
-                       Display *dpy) ;
 #if !defined (ENABLE_DYNAMIC_LANGLIST)
 extern void MakeLangList( void ) ;
 #endif
index 60a54e983876b0ed6ef4775f600b197f29232694..84fb44375ef1df00c5bfe2cc2fe98dc1064e8bc5 100644 (file)
@@ -381,154 +381,6 @@ parseEnv( char **e, char *string )
     return (e);
 }    
 
-
-
-
-/*************************************<->*************************************
- *
- *  Cursor GetHourGlass ()
- *
- *
- *  Description:
- *  -----------
- *  Builds and returns the appropriate Hourglass cursor
- *
- *
- *  Inputs:
- *  ------
- *  dpy        = display
- * 
- *  Outputs:
- *  -------
- *  Return = cursor.
- *
- *  Comments:
- *  --------
- *  None. (None doesn't count as a comment)
- * 
- *************************************<->***********************************/
-
-#define time32_width 32
-#define time32_height 32
-#define time32_x_hot 15
-#define time32_y_hot 15
-static unsigned char time32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0x8c, 0x00, 0x00, 0x31, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x8c, 0x00, 0x00, 0x31, 0x0c, 0x7f, 0xfe, 0x30, 0x0c, 0xfe, 0x7f, 0x30,
-   0x0c, 0xfc, 0x3f, 0x30, 0x0c, 0xf8, 0x1f, 0x30, 0x0c, 0xe0, 0x07, 0x30,
-   0x0c, 0x80, 0x01, 0x30, 0x0c, 0x80, 0x01, 0x30, 0x0c, 0x60, 0x06, 0x30,
-   0x0c, 0x18, 0x18, 0x30, 0x0c, 0x04, 0x20, 0x30, 0x0c, 0x02, 0x40, 0x30,
-   0x0c, 0x01, 0x80, 0x30, 0x8c, 0x00, 0x00, 0x31, 0x4c, 0x80, 0x01, 0x32,
-   0x4c, 0xc0, 0x03, 0x32, 0x4c, 0xf0, 0x1f, 0x32, 0x4c, 0xff, 0xff, 0x32,
-   0xcc, 0xff, 0xff, 0x33, 0x8c, 0xff, 0xff, 0x31, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
-
-#define time32m_width 32
-#define time32m_height 32
-static unsigned char time32m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xcf, 0x00, 0x00, 0xf3, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0xce, 0x00, 0x00, 0x73, 0x8e, 0x7f, 0xfe, 0x71, 0x0e, 0xff, 0xff, 0x70,
-   0x0e, 0xfe, 0x7f, 0x70, 0x0e, 0xfc, 0x3f, 0x70, 0x0e, 0xf8, 0x1f, 0x70,
-   0x0e, 0xe0, 0x07, 0x70, 0x0e, 0xe0, 0x07, 0x70, 0x0e, 0x78, 0x1e, 0x70,
-   0x0e, 0x1c, 0x38, 0x70, 0x0e, 0x06, 0x60, 0x70, 0x0e, 0x03, 0xc0, 0x70,
-   0x8e, 0x01, 0x80, 0x71, 0xce, 0x00, 0x00, 0x73, 0x6e, 0x80, 0x01, 0x76,
-   0x6e, 0xc0, 0x03, 0x76, 0x6e, 0xf0, 0x1f, 0x76, 0x6e, 0xff, 0xff, 0x76,
-   0xee, 0xff, 0xff, 0x77, 0xcf, 0xff, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 16
-#define time16_height 16
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x7f, 0x14, 0x28, 0x14, 0x28, 0x14, 0x28, 0x24, 0x24,
-   0x44, 0x22, 0x84, 0x21, 0x84, 0x21, 0x44, 0x22, 0x24, 0x24, 0x14, 0x28,
-   0x94, 0x29, 0xd4, 0x2b, 0xfe, 0x7f, 0x00, 0x00};
-
-#define time16m_width 16
-#define time16m_height 16
-static unsigned char time16m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff};
-
-
-Cursor GetHourGlass (Display *dpy)
-{
-    char        *bits;
-    char        *maskBits;
-    unsigned int width;
-    unsigned int height;
-    unsigned int xHotspot;
-    unsigned int yHotspot;
-    Pixmap       pixmap;
-    Pixmap       maskPixmap;
-    XColor       xcolors[2];
-    unsigned int cWidth;
-    unsigned int cHeight;
-    int                 useLargeCursors = 0;
-    Cursor      waitCursor;
-
-    if (XQueryBestCursor (dpy, DefaultRootWindow(dpy), 
-       32, 32, &cWidth, &cHeight))
-    {
-       if ((cWidth >= 32) && (cHeight >= 32))
-       {
-           useLargeCursors = 1;
-       }
-    }
-
-    if (useLargeCursors)
-    {
-       width = time32_width;
-       height = time32_height;
-       bits = (char *)time32_bits;
-       maskBits = (char *)time32m_bits;
-       xHotspot = time32_x_hot;
-       yHotspot = time32_y_hot;
-    }
-    else
-    {
-       width = time16_width;
-       height = time16_height;
-       bits = (char *)time16_bits;
-       maskBits = (char *)time16m_bits;
-       xHotspot = time16_x_hot;
-       yHotspot = time16_y_hot;
-    }
-
-    pixmap = XCreateBitmapFromData (dpy, 
-                    DefaultRootWindow(dpy), bits, 
-                    width, height);
-
-    maskPixmap = XCreateBitmapFromData (dpy, 
-                    DefaultRootWindow(dpy), maskBits, 
-                    width, height);
-
-    xcolors[0].pixel = BlackPixelOfScreen(DefaultScreenOfDisplay(dpy));
-    xcolors[1].pixel = WhitePixelOfScreen(DefaultScreenOfDisplay(dpy));
-
-    XQueryColors (dpy, 
-                 DefaultColormapOfScreen(DefaultScreenOfDisplay
-                                         (dpy)), xcolors, 2);
-
-    waitCursor = XCreatePixmapCursor (dpy, pixmap, maskPixmap,
-                                     &(xcolors[0]), &(xcolors[1]),
-                                     xHotspot, yHotspot);
-    XFreePixmap (dpy, pixmap);
-    XFreePixmap (dpy, maskPixmap);
-
-    return (waitCursor);
-}
-
-
-
-
 /*************************************<->*************************************
  *
  *  void SetHourGlassCursor
@@ -561,7 +413,7 @@ SetHourGlassCursor( Display *dpy, Window w )
     
     XUndefineCursor(dpy, w);
     
-    cursor = GetHourGlass(dpy);
+    cursor = _DtGetHourGlassCursor(dpy);
 
     XDefineCursor(dpy, w, cursor);
     XFreeCursor(dpy, cursor);
diff --git a/cde/programs/dtmail/Makefile.am b/cde/programs/dtmail/Makefile.am
new file mode 100644 (file)
index 0000000..a82b4ed
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = libDtMail MotifApp dtmail dtmailpr
diff --git a/cde/programs/dtmail/MotifApp/Makefile.am b/cde/programs/dtmail/MotifApp/Makefile.am
new file mode 100644 (file)
index 0000000..c77f7b7
--- /dev/null
@@ -0,0 +1,43 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libMotifApp.a
+
+libMotifApp_a_CXXFLAGS = -I../include/MotifApp -I../include -I../include/utils 
+
+# FIXME - some of these aren't set and sould be by configure.ac
+#if SOLARIS
+
+#if USE_SPRO_V3
+#libMotifApp_a_CXXFLAGS += -noex -xO0 -USPRO_V2
+#endif
+
+#if DEBUGTREE
+#libMotifApp_a_CXXFLAGS += -xsb
+#endif
+#
+#libMotifApp_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2
+
+#endif
+
+libMotifApp_a_SOURCES = Application.C           AskFirstCmd.C \
+                       BasicComponent.C        BusyPixmap.C \
+                       ButtonInterface.C       Cmd.C \
+                       CmdInterface.C          CmdList.C \
+                       DialogManager.C         Help.C \
+                       IconifyCmd.C            InfoDialogManager.C \
+                       InterruptibleCmd.C      Main.C \
+                       MainWindow.C            ManageCmd.C \
+                       MenuBar.C               MenuWindow.C \
+                       MotifCmds.C             NoUndoCmd.C \
+                       PixmapCycler.C          PromptDialogManager.C \
+                       QuestionDialogManager.C QuitCmd.C \
+                       ScrollingList.C         SelectFileCmd.C \
+                       ToggleButtonInterface.C UIComponent.C \
+                       UndoCmd.C               WarnNoUndoCmd.C \
+                       WorkingDialogManager.C
+
+if SOLARIS
+clean-local:
+       $(RM) -r .sb
+       $(RM) .make.state*
+endif
index 252022bc19b39a58cdd0ff6f4dfa530e91ae4f8d..0f6d0f8619db26d04ef44f97dfae0f17c11df0e4 100644 (file)
@@ -72,7 +72,7 @@
 
 #include "Dmx.h"
 // For CHARSET
-#include <LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 #include <locale.h>
 #include <strings.h>
 
diff --git a/cde/programs/dtmail/dtmail/Makefile.am b/cde/programs/dtmail/dtmail/Makefile.am
new file mode 100644 (file)
index 0000000..e9f9c65
--- /dev/null
@@ -0,0 +1,77 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtmail
+
+dtmail_CXXFLAGS = -I../include -I../include/MotifApp -I../include/utils \
+                 -I../include/DtMail -I../libDtMail/RFC -I$(x_includes) \
+                 -I$(srcdir)/lib -I../../dthelp -DRELEASE_NOTES \
+                 -DDTMAIL_TOOLTALK -DDTEDITOR
+
+dtmail_LDADD = ../libDtMail/libDtMail.a ../MotifApp/libMotifApp.a -lXm \
+               @DTCLIENTLIBS@ $(XTOOLLIB) $(TIRPCLIB)
+
+# FIXME solaris....
+#if SOLARIS
+#dtmail_LDFLAGS = -lw
+#if SUNPRODIR
+#SUNPRO_DIR = SUNPRODIR
+#else
+#SUNPRO_DIR = /opt/SUNWspro
+#endif
+#C++LIBPATH = -L$(SUNPRO_DIR)/lib
+#
+#if USE_SPRO_V3
+#SPRO_V3_OPTIONS =      -noex -USPRO_V2
+#if DEBUGTREE
+#3SPRO_V3_OPTIONS +=      -xsb
+#endif
+#else
+#EXTRA_CCOPTIONS +=      -DSPRO_V2
+#endif
+#
+#EXTRA_C++OPTIONS = -xF +w $(SPRO_V3_OPTIONS)
+#EXTRA_CCOPTIONS = -xF -xstrconst -Xa -v
+#if USE_EDITRES
+#EXTRA_LIBRARIES = $(XMULIB) ExtraLibraries
+#endif
+#endif SOLARIS
+
+
+dtmail_SOURCES = AliasListUiItem.C               AlternatesListUiItem.C \
+                AntiCheckBoxUiItem.C            AttachArea.C \
+                Attachment.C                    CheckBoxUiItem.C \
+                CheckForMailUiItem.C            ComposeCmds.C \
+                CustomListUiItem.C              Dialog.C \
+                DialogShell.C                   DmxMailbox.C \
+                DmxMessage.C                    DmxPrintJob.C \
+                DmxPrintOptions.C               DmxPrintOutput.C \
+                 DmxPrintSetup.C                DmxUtils.C \
+                DtEditor.C                      DtMailEditor.C \
+                DtMailGenDialog.C               DtMailWDM.C \
+                Editor.C                        EncryptedTextFieldUiItem.C \
+                FindDialog.C                    Fonts.C \
+                Icon.C                          IgnoreListUiItem.C \
+                Image.C                         InboxTextFieldUiItem.C \
+                IndexedOptionMenu.C             IndexedOptionMenuUiItem.C \
+                ListUiItem.C                    MailRcSource.C \
+                MailRetrievalOptions.C          MailSession.C \
+                MoveMenuListUiItem.C            MsgHndArray.C \
+                MsgScrollingList.C              NoOpCmd.C \
+                OptCmd.C                        PasswordDialogManager.C \
+                PropUi.C                        QueryDialogManager.C \
+                RoamApp.C                       RoamCmds.C \
+                RoamInterruptibleCmd.C          RoamMenuWindow.C \
+                ScaleUiItem.C                   SendMsgDialog.C \
+                Sort.C                          SortCmd.C \
+                SpinBoxUiItem.C                 StringTab.c \
+                TemplateListUiItem.C            TextFieldUiItem.C \
+                Undelete.C                      ViewMsgDialog.C \
+                WMSaveSession.C                 XmStrCollector.C \
+                XmTextEditor.C                  XtArgCollector.C \
+                dtb_utils.C                     options_stubs.C \
+                options_ui.C                    options_util.C
+
+install-exec-hook:
+       chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail
+       chgrp mail $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail
+       chmod 2755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail
diff --git a/cde/programs/dtmail/dtmailpr/Makefile.am b/cde/programs/dtmail/dtmailpr/Makefile.am
new file mode 100644 (file)
index 0000000..ae40c87
--- /dev/null
@@ -0,0 +1,38 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtmailpr
+
+dtmailpr_CXXFLAGS = -I../include -I../../dtcompat -I../../../. \
+                   -I$(srcdir)/lib
+
+dtmailpr_LDADD = ../libDtMail/libDtMail.a $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if FREEBSD
+dtmailpr_LDADD += -liconv
+endif
+
+# FIXME - solaris
+#if SOLARIS
+# if SUNPRODIR
+# SUNPRO_DIR = /opt/SUNWspro
+# else
+# SUNPRO_DIR = SUNPRODIR
+#endif
+#if I386
+# JET -- i386 is NOT big endian...
+#dtmailpr_CXXFLAGS += -DBIG_ENDIAN
+#endif
+#if USE_SPRO_V3
+#dtmailpr_CXXFLAGS += -noex -USPRO_V2
+#if DEBUGTREE
+#dtmailpr_CXXFLAGS += -xsb
+#endif
+#endif
+#
+#dtmailpr_CXXFLAGS += -L$(SUNPRO_DIR)/lib -xstrconst -Xc -v -DMMAP_NORESERVE \
+#                    -DSPRO_V2 +p +w
+#dtmailpr_LDADD += -Bstatic -lC -Bdynamic -lc -Bstatic -ldl -lgen -lm -lw \
+#                -lintl -lnsl
+#endif
+
+dtmailpr_SOURCES = main.C message.C mailbox.C utils.C
index 059f6b10f908a60aa2ebf2e872d029d3df7a65d8..4f6aea6948d649ec6969bdf95a9b395b90ee0578 100644 (file)
@@ -49,7 +49,7 @@
 
 #include "dmx.hh"
 // For CHARSET
-#include <DtHelp/LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 #include <locale.h>
 #include <strings.h>
 #include "utils/str_utils.h"
@@ -449,9 +449,9 @@ DmxMsg::parse (void)
        if (handleError (env, "getContents") == B_TRUE)
                exit (1);
 
-       bodyParts = new (DtMail::BodyPart *[bc]);
+       bodyParts = new DtMail::BodyPart *[bc];
        cachedValues = B_TRUE;
-       
+
        // cache values
        bodyParts [0] = part;
        numBPs++;
diff --git a/cde/programs/dtmail/libDtMail/Common/Makefile.am b/cde/programs/dtmail/libDtMail/Common/Makefile.am
new file mode 100644 (file)
index 0000000..2098dd8
--- /dev/null
@@ -0,0 +1,41 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libCommon.a
+
+libCommon_a_CXXFLAGS = -I../../include -I../../include/utils -I$(srcdir)/lib \
+                      -DDL_NOT_DYNAMIC -DUSE_SOCKSTREAM
+
+if SOLARIS
+libCommon_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2
+endif
+
+libCommon_a_SOURCES = APOPServer.C \
+                     AUTOServer.C \
+                     Buffer.C \
+                     DetermineFileLocality.C \
+                     DtMailBodyPart.C \
+                     DtMailEnvelope.C \
+                     DtMailError.C \
+                     DtMailMailBox.C \
+                     DtMailMessage.C \
+                     DtMailRc.C \
+                     DtMailServer.C \
+                     DtMailTransport.C \
+                     DtMailValuesBuiltin.C \
+                     DtMailXtProc.C \
+                     DtVirtArray.C \
+                     DynamicLib.C \
+                     FileShare.C \
+                     HashTable.C \
+                     IMAPServer.C \
+                     IO.C \
+                     LanguagePortability.C \
+                     ObjectKey.C \
+                     NotDynamic.C \
+                     POP2Server.C \
+                     POP3Server.C \
+                     Process.C \
+                     Session.C \
+                     Threads.C \
+                     md5.C \
+                     str_utils.C
index f36916c50905f793fc4babb11ac76095765605e4..404fcc67c3eb709be95ba91ad109525b81c8f320 100644 (file)
@@ -69,7 +69,7 @@
 //-------------------------------------
 #include <locale.h>
 #include <time.h>
-#include <DtHelp/LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <limits.h>
diff --git a/cde/programs/dtmail/libDtMail/Makefile.am b/cde/programs/dtmail/libDtMail/Makefile.am
new file mode 100644 (file)
index 0000000..ed62c45
--- /dev/null
@@ -0,0 +1,11 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = Common RFC
+
+noinst_LIBRARIES = libDtMail.a
+
+libDtMail_a_SOURCES =
+
+# Unfortunately, this does not work -
+# libDtMail_a_LIBADD = Common/libCommon.a RFC/libRFC.a
+libDtMail_a_LIBADD = Common/*.o RFC/*.o
index bcd888d086e5165648b234630ea9fc0c2ffb9849..7ec7058089587eb3525589931bf8930c66a95544 100644 (file)
@@ -57,7 +57,7 @@
 
 // For CHARSET
 #include <locale.h>
-#include <DtHelp/LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 #include "str_utils.h"
 
 MIMEBodyPart::MIMEBodyPart(DtMailEnv & error,
diff --git a/cde/programs/dtmail/libDtMail/RFC/Makefile.am b/cde/programs/dtmail/libDtMail/RFC/Makefile.am
new file mode 100644 (file)
index 0000000..df15c20
--- /dev/null
@@ -0,0 +1,18 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libRFC.a
+
+libRFC_a_CXXFLAGS = -I../Common -I../../include -I../../include/utils \
+                   -DTTLOCK_OFF
+
+if SOLARIS
+libRFC_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2
+endif
+
+libRFC_a_SOURCES = AliasExpand.C           MIMEBodyPart.C \
+                   MIMEPartial.C           RFCBodyPart.C \
+                   RFCEnvelope.C           RFCFormat.C \
+                   RFCMIME.C               RFCMailBox.C \
+                   RFCMailValues.C         RFCMessage.C \
+                   RFCTransport.C          SunV3.C \
+                   V3BodyPart.C
index ad180ee3d6a6f200a50acb56e9099c9f1d0bb61b..6fa98bdfc3a6e6b63c58fdabb8c6dbb258532e07 100644 (file)
@@ -64,7 +64,7 @@
 //-------------------------------------
 #include <locale.h>
 #include <time.h>
-#include <DtHelp/LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <limits.h>
index 940ed40241f792b57375b64c367f968f3bcb6ae4..e5a9e447da7d6a1a9f6b6d8b4b0140a93ca76b20 100644 (file)
@@ -58,7 +58,7 @@
 
 // For CHARSET
 #include <locale.h>
-#include <DtHelp/LocaleXlate.h>
+#include <Dt/LocaleXlate.h>
 
 V3BodyPart::V3BodyPart(DtMailEnv & error,
                       DtMail::Message * parent,
diff --git a/cde/programs/dtopen/Makefile.am b/cde/programs/dtopen/Makefile.am
new file mode 100644 (file)
index 0000000..aefee28
--- /dev/null
@@ -0,0 +1,21 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+dist_bin_SCRIPTS = dtopen
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+               -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+               -DKORNSHELL=$(KSH)
+
+BUILT_SOURCES = dtopen
+CLEANFILES = $(BUILT_SOURCES)
+
+dtopen: dtopen.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtopen_*
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin && $(LN_S) dtopen dtopen_video
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin && $(LN_S) dtopen dtopen_image
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin && $(LN_S) dtopen dtopen_ps
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin && $(LN_S) dtopen dtopen_pdf
index 4f1d0c9a00adb0e8ed2c0bed86e6938afe623e6f..72c3b3e461e818dded533ab7952b83796dd1153f 100755 (executable)
@@ -1,4 +1,4 @@
-XCOMM!/bin/ksh
+XCOMM!KORNSHELL
 XCOMM
 XCOMM dtopen - provide an interface for some useful applications.
 XCOMM
diff --git a/cde/programs/dtpad/Makefile.am b/cde/programs/dtpad/Makefile.am
new file mode 100644 (file)
index 0000000..03adbe5
--- /dev/null
@@ -0,0 +1,19 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtpad
+
+dtpad_CFLAGS = -DDT_LITE -DWORDWRAP
+
+dtpad_LDADD = @DTCLIENTLIBS@ -lXm $(TIRPCLIB) $(XTOOLLIB)
+
+if SOLARIS
+dtpad_CFLAGS += -xF
+dtpad_LDFLAGS = -lintl -lresolv
+endif
+
+dtpad_SOURCES = dtpad.c         editCB.c        fileCB.c \
+               fileDlg.c       fileIo.c        formatCB.c \
+               helpCB.c        helpDlg.c       main.c \
+               optionsCB.c     printJob.c      printOutput.c \
+               printSetup.c    session.c       ttMsgSupport.c \
+               ttSaveSupport.c
diff --git a/cde/programs/dtpdm/Makefile.am b/cde/programs/dtpdm/Makefile.am
new file mode 100644 (file)
index 0000000..178bf19
--- /dev/null
@@ -0,0 +1,16 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtpdm
+
+dtpdm_CFLAGS = -DI18N_MSG -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
+
+dtpdm_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtpdm_LDADD += -lintl -lgen -ldl -lresolv
+endif
+
+dtpdm_SOURCES = JobBox.c Main.c MainWindow.c PdmMsgs.c PdmOid.c                \
+               PdmXp.c PrinterBox.c JobBox.h PdmMsgs.h PdmOid.h        \
+               PdmXp.h MainWindow.h PdmOidDefs.h PdmOidStrs.h          \
+               PrinterBox.h
diff --git a/cde/programs/dtpdmd/Makefile.am b/cde/programs/dtpdmd/Makefile.am
new file mode 100644 (file)
index 0000000..08fb020
--- /dev/null
@@ -0,0 +1,14 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtpdmd
+
+dtpdmd_CFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
+
+dtpdmd_LDADD = $(XTOOLLIB)
+
+if SOLARIS
+dtpdmd_LDADD += -ldl
+endif
+
+dtpdmd_SOURCES = dispatch.c dtpdmd.c mailbox.c manager.c records.c     \
+                nlmsg.c setup.c util.c dtpdmdP.h nlmsg.h
index 5d2b49c9367f502b507dd77f77953baa8b4f8807..7c6f941c64d57278df1a77323c68a0df5144575a 100644 (file)
  *****************************************************************************/
 
 #include <stdio.h>
+#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <time.h>
 #include <setjmp.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
diff --git a/cde/programs/dtprintegrate/Makefile.am b/cde/programs/dtprintegrate/Makefile.am
new file mode 100644 (file)
index 0000000..8ebbe5a
--- /dev/null
@@ -0,0 +1,27 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_SCRIPTS = dtprintegrate dtlp dtlpsetup
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+               -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)   \
+               -DDTKORNSHELL="$(CDE_INSTALLATION_TOP)/bin/dtksh"  \
+               -DKORNSHELL=$(KSH)
+
+BUILT_SOURCES = dtprintegrate dtlp dtlpsetup
+CLEANFILES = $(BUILT_SOURCES)
+
+dtprintegrate: dtprintegrate.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
+dtlp: dtlp.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
+dtlpsetup: dtlpsetup.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
diff --git a/cde/programs/dtprintinfo/Makefile.am b/cde/programs/dtprintinfo/Makefile.am
new file mode 100644 (file)
index 0000000..104ecc8
--- /dev/null
@@ -0,0 +1,80 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtprintinfo
+
+AM_CPPFLAGS = -I./UI -I./libUI -I./util -I./libUI/MotifUI -I./objects  \
+       -I./objects/PrintObj -DKORNSHELL=\"$(KSH)\"
+
+dtprintinfo_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+UTIL_SRC = util/Invoke.C util/Invoke.h util/Process.C util/Process.h
+
+LIBUI_SRC = libUI/BaseUI.C libUI/BaseUI.h libUI/MotifUI/Application.C  \
+       libUI/MotifUI/LabelObj.C libUI/MotifUI/Application.h            \
+       libUI/MotifUI/LabelObj.h libUI/MotifUI/Button.C                 \
+       libUI/MotifUI/MainWindow.C libUI/MotifUI/Button.h               \
+       libUI/MotifUI/MainWindow.h libUI/MotifUI/ComboBoxObj.C          \
+       libUI/MotifUI/MenuBar.C libUI/MotifUI/ComboBoxObj.h             \
+       libUI/MotifUI/MenuBar.h libUI/MotifUI/Container.C               \
+       libUI/MotifUI/Menu.C libUI/MotifUI/Container.h                  \
+       libUI/MotifUI/Menu.h libUI/MotifUI/Dialog.C                     \
+       libUI/MotifUI/MotifThread.C libUI/MotifUI/Dialog.h              \
+       libUI/MotifUI/MotifThread.h libUI/MotifUI/DtDND.C               \
+       libUI/MotifUI/MotifUI.C libUI/MotifUI/DtDND.h                   \
+       libUI/MotifUI/MotifUI.h libUI/MotifUI/Group.C                   \
+       libUI/MotifUI/Prompt.C libUI/MotifUI/Group.h                    \
+       libUI/MotifUI/Prompt.h libUI/MotifUI/HelpSystem.C               \
+       libUI/MotifUI/ScaleObj.C libUI/MotifUI/HelpSystem.h             \
+       libUI/MotifUI/ScaleObj.h libUI/MotifUI/Icon.h                   \
+       libUI/MotifUI/Sep.C libUI/MotifUI/IconObj.C                     \
+       libUI/MotifUI/Sep.h libUI/MotifUI/IconObj.h                     \
+       libUI/MotifUI/WorkArea.h libUI/MotifUI/IconP.h                  \
+       libUI/MotifUI/WorkAreaP.h libUI/MotifUI/Debug.c                 \
+       libUI/MotifUI/Icon.c libUI/MotifUI/WorkArea.c
+
+OBJ_SRC = objects/BaseObj.C objects/BaseObj.h                          \
+       objects/PrintObj/ParseJobs.C objects/PrintObj/PrintSubSys.C     \
+       objects/PrintObj/ParseJobs.h objects/PrintObj/PrintSubSys.h     \
+       objects/PrintObj/PrintJob.C objects/PrintObj/Queue.C            \
+       objects/PrintObj/PrintJob.h objects/PrintObj/Queue.h
+
+UI_SRC = UI/DtActions.C UI/DtFindD.h UI/DtProps.C UI/DtSetModList.h    \
+       UI/DtActions.h UI/DtFindSet.C UI/DtProps.h UI/DtSetPref.C       \
+       UI/DtApp.C UI/DtFindSet.h UI/DtPrtJobIcon.C UI/DtSetPref.h      \
+       UI/DtApp.h UI/DtMainW.C UI/DtPrtJobIcon.h UI/DtWorkArea.C       \
+       UI/DtDetailsLabel.C UI/DtMainW.h UI/DtPrtProps.C                \
+       UI/DtWorkArea.h UI/DtDetailsLabel.h UI/DtPrinterIcon.C          \
+       UI/DtPrtProps.h UI/DtFindD.C UI/DtPrinterIcon.h                 \
+       UI/DtSetModList.C
+
+
+dtprintinfo_SOURCES = $(UTIL_SRC) $(LIBUI_SRC) $(OBJ_SRC) $(UI_SRC)    \
+       DtPrintinfo.C dtprintinfomsg.h
+
+if SOLARIS
+dtprintinfo_LDADD += -ldl
+endif
+
+# special processing for message files
+SYM2NUM_CMD = CPP=$(GENCPP) $(KSH) sym2num
+
+BUILT_SOURCES = dtprintinfo_cat.h dtprintinfo_msg.h dtprintinfo.msg
+CLEANFILES = $(BUILT_SOURCES)
+
+# we set this up as an empty target to please make.  The commands for
+# the dtprintinfo.msg target will generate it.  We do it this way so
+# that this module can be built in parallel without causing corruption
+# in the dtprintinfo_msg.h file.  Otherwise an attempt to call
+# SYM2NUM_CMD twice will occur during multi-core builds if it is
+# listed as the second target depending on dtprintinfo.msg.src along
+# with dtprintinfo.msg.
+dtprintinfo_msg.h:
+
+dtprintinfo.msg: dtprintinfo.msg.src
+       $(RM) dtprintinfo_msg.h dtprintinfo.msg
+       $(SYM2NUM_CMD) dtprintinfo dtprintinfo.msg.src > dtprintinfo.msg
+
+dtprintinfo_cat.h: dtprintinfo.msg.src
+       $(RM) dtprintinfo_cat.h
+       $(AWK) -f msg.awk dtprintinfo.msg.src > dtprintinfo_cat.h
+
index d4563f00d4a242f82049075d95c7ef5ce5846d24..d15c5afb061b60af65c1deb329e9ca75d564d618 100644 (file)
@@ -47,6 +47,8 @@
 #include <Dt/Help.h>
 #endif
 
+#include <Dt/HourGlass.h>
+
 #include <Xm/ToggleB.h>
 #include <Xm/RowColumn.h>
 #include <Xm/ScrolledW.h>
@@ -767,108 +769,6 @@ void MotifUI::GetPixmaps(Widget w,
    n_pixmaps++;
 }
 
-// Cursor Shape support
-
-#define time32_width 32
-#define time32_height 32
-#define time32_x_hot 15
-#define time32_y_hot 15
-static unsigned char time32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0x8c, 0x00, 0x00, 0x31, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x8c, 0x00, 0x00, 0x31, 0x0c, 0x7f, 0xfe, 0x30, 0x0c, 0xfe, 0x7f, 0x30,
-   0x0c, 0xfc, 0x3f, 0x30, 0x0c, 0xf8, 0x1f, 0x30, 0x0c, 0xe0, 0x07, 0x30,
-   0x0c, 0x80, 0x01, 0x30, 0x0c, 0x80, 0x01, 0x30, 0x0c, 0x60, 0x06, 0x30,
-   0x0c, 0x18, 0x18, 0x30, 0x0c, 0x04, 0x20, 0x30, 0x0c, 0x02, 0x40, 0x30,
-   0x0c, 0x01, 0x80, 0x30, 0x8c, 0x00, 0x00, 0x31, 0x4c, 0x80, 0x01, 0x32,
-   0x4c, 0xc0, 0x03, 0x32, 0x4c, 0xf0, 0x1f, 0x32, 0x4c, 0xff, 0xff, 0x32,
-   0xcc, 0xff, 0xff, 0x33, 0x8c, 0xff, 0xff, 0x31, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
-
-#define time32m_width 32
-#define time32m_height 32
-static unsigned char time32m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xcf, 0x00, 0x00, 0xf3, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0xce, 0x00, 0x00, 0x73, 0x8e, 0x7f, 0xfe, 0x71, 0x0e, 0xff, 0xff, 0x70,
-   0x0e, 0xfe, 0x7f, 0x70, 0x0e, 0xfc, 0x3f, 0x70, 0x0e, 0xf8, 0x1f, 0x70,
-   0x0e, 0xe0, 0x07, 0x70, 0x0e, 0xe0, 0x07, 0x70, 0x0e, 0x78, 0x1e, 0x70,
-   0x0e, 0x1c, 0x38, 0x70, 0x0e, 0x06, 0x60, 0x70, 0x0e, 0x03, 0xc0, 0x70,
-   0x8e, 0x01, 0x80, 0x71, 0xce, 0x00, 0x00, 0x73, 0x6e, 0x80, 0x01, 0x76,
-   0x6e, 0xc0, 0x03, 0x76, 0x6e, 0xf0, 0x1f, 0x76, 0x6e, 0xff, 0xff, 0x76,
-   0xee, 0xff, 0xff, 0x77, 0xcf, 0xff, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 16
-#define time16_height 16
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x7f, 0x14, 0x28, 0x14, 0x28, 0x14, 0x28, 0x24, 0x24,
-   0x44, 0x22, 0x84, 0x21, 0x84, 0x21, 0x44, 0x22, 0x24, 0x24, 0x14, 0x28,
-   0x94, 0x29, 0xd4, 0x2b, 0xfe, 0x7f, 0x00, 0x00};
-
-#define time16m_width 16
-#define time16m_height 16
-static unsigned char time16m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff};
-
-Cursor MotifUI::InitHourGlassCursor()
-{
-    unsigned int width;
-    unsigned int height;
-    unsigned int xHotspot;
-    unsigned int yHotspot;
-    Pixmap       pixmap;
-    Pixmap       maskPixmap;
-    XColor       xcolors[2];
-    char *      bits;
-    char *      maskBits;
-    Cursor       cursor = None;
-
-    if (XQueryBestCursor(display, root, 32, 32, &width, &height))
-      {
-       if ((width >= 32) && (height >= 32))
-         {
-           width = time32_width;
-           height = time32_height;
-           bits = (char *)time32_bits;
-           maskBits = (char *)time32m_bits;
-           xHotspot = time32_x_hot;
-           yHotspot = time32_y_hot;
-         }
-       else
-         {
-           width = time16_width;
-           height = time16_height;
-           bits = (char *)time16_bits;
-           maskBits = (char *)time16m_bits;
-           xHotspot = time16_x_hot;
-           yHotspot = time16_y_hot;
-         }
-
-        pixmap = XCreateBitmapFromData(display, root, bits, width, height);
-
-        maskPixmap = XCreateBitmapFromData(display, root, maskBits,
-                                          width, height);
-        xcolors[0].pixel = black;
-        xcolors[1].pixel = white;
-
-        XQueryColors(display, 
-           DefaultColormapOfScreen(DefaultScreenOfDisplay (display)),
-           xcolors, 2);
-       cursor = XCreatePixmapCursor(display, pixmap, maskPixmap,
-           &(xcolors[0]), &(xcolors[1]), xHotspot, yHotspot);
-        XFreePixmap(display, pixmap);
-        XFreePixmap(display, maskPixmap);
-      }
-    return cursor;
-}
-
 PointerCursor MotifUI::PointerShape()
 {
    return pointer_style;
@@ -906,7 +806,7 @@ void MotifUI::PointerShape(PointerCursor style)
       break;
    case HOUR_GLASS_CURSOR:
       if (!hour_glass)
-         hour_glass = InitHourGlassCursor();
+         hour_glass = _DtGetHourGlassCursor(display);
       cursor = hour_glass;
       break;
    case IBEAM_CURSOR:
index 038b578da7a20f86b37e6eaca9ec69fe4b62dbcd..bc1d1d47f97d803139752dd7b3a10740346dd48d 100644 (file)
 !#     $XConsortium: Dtscreen.src /main/3 1995/11/02 16:05:53 rswiston $
 !#
 !######################################################################
-#ifdef __hpux
-!# hpux will be using blank because swarm creates a lot of lan traffic
-Dtscreen.mode: blank
-#else
 Dtscreen.mode: swarm
-#endif
 Dtscreen.background: White
 Dtscreen.foreground: Black
 Dtscreen.nice: 10
diff --git a/cde/programs/dtscreen/Makefile.am b/cde/programs/dtscreen/Makefile.am
new file mode 100644 (file)
index 0000000..083bbfa
--- /dev/null
@@ -0,0 +1,22 @@
+MAITAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtscreen
+
+dtscreen_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtscreen_LDADD += -ldl -lgen
+endif
+
+dtscreen_SOURCES = blank.c dtscreen.c flame.c hopalong.c hsbramp.c     \
+                  image.c life.c pyro.c qix.c resource.c rotor.c       \
+                  swarm.c usleep.c worm.c dtscreen.h
+
+CPP_TARGETS = Dtscreen
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+Dtscreen: Dtscreen.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=#  $< > $@
+
index f8b99cd97b631048ea52e33f5f2e8d26afba7d04..db05cb191ebd27a0740ab8dea38fd9c100255709 100644 (file)
@@ -18,8 +18,8 @@ XCOMM ##  Invoked by:        CDE_INSTALLATION_TOP/bin/Xsession
 XCOMM ##
 XCOMM ##  Product:           @(#)Common Desktop Environment 1.0          
 XCOMM ##
-XCOMM ##  Note:              Creates the /var/dt directory if one doesn't exist.
-XCOMM ##                     However, root privilege may be required.  If /var/dt
+XCOMM ##  Note:              Creates the CDE_LOGFILES_TOP directory if one doesn't exist.
+XCOMM ##                     However, root privilege may be required.  If CDE_LOGFILES_TOP
 XCOMM ##                     disappears, then logging in as root should restore it.
 XCOMM ##
 XCOMM ##  $TOG: 0030.dttmpdir.src /main/7 1997/04/21 12:08:15 samborn $
@@ -61,28 +61,28 @@ then
 fi
 
 XCOMM 
-XCOMM  Create the /var/dt subdirectory, if one doesn't exist
+XCOMM  Create the CDE_LOGFILES_TOP subdirectory, if one doesn't exist
 XCOMM 
-if [[ ! -d /var/dt ]]
+if [[ ! -d CDE_LOGFILES_TOP ]]
 then
         HASH
        HASH  This step requires root privilege
        HASH
-       mkdir -p /var/dt >/dev/null 2>/dev/null
-       chmod 755 /var/dt >/dev/null 2>/dev/null
-       chgrp bin /var/dt >/dev/null 2>/dev/null
-       chown bin /var/dt >/dev/null 2>/dev/null
+       mkdir -p CDE_LOGFILES_TOP >/dev/null 2>/dev/null
+       chmod 755 CDE_LOGFILES_TOP >/dev/null 2>/dev/null
+       chgrp bin CDE_LOGFILES_TOP >/dev/null 2>/dev/null
+       chown bin CDE_LOGFILES_TOP >/dev/null 2>/dev/null
 fi
 
-if [ ! -d /var/dt/tmp ]
+if [ ! -d CDE_LOGFILES_TOP/tmp ]
 then
        HASH
        HASH  This step requires root privilege
        HASH
-       mkdir -p /var/dt/tmp >/dev/null 2>/dev/null
-       chmod 755 /var/dt/tmp >/dev/null 2>/dev/null
-       chgrp bin /var/dt/tmp >/dev/null 2>/dev/null
-       chown bin /var/dt/tmp >/dev/null 2>/dev/null
+       mkdir -p CDE_LOGFILES_TOP/tmp >/dev/null 2>/dev/null
+       chmod 755 CDE_LOGFILES_TOP/tmp >/dev/null 2>/dev/null
+       chgrp bin CDE_LOGFILES_TOP/tmp >/dev/null 2>/dev/null
+       chown bin CDE_LOGFILES_TOP/tmp >/dev/null 2>/dev/null
 fi
 
 XCOMM #########################         eof       ########################
diff --git a/cde/programs/dtsearchpath/Makefile.am b/cde/programs/dtsearchpath/Makefile.am
new file mode 100644 (file)
index 0000000..64deaaa
--- /dev/null
@@ -0,0 +1,22 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = libCliSrv dtsp dtappg
+
+BUILT_SOURCES = 0010.dtpaths 0030.dttmpdir
+CLEANFILES = $(BUILT_SOURCES)
+
+cfgdir = $(CDE_INSTALLATION_TOP)/config/Xsession.d
+dist_cfg_SCRIPTS = 0010.dtpaths 0030.dttmpdir
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP)     \
+       -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)                \
+       -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) -DKORNSHELL=$(KSH)
+
+0010.dtpaths: 0010.dtpaths.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+0030.dttmpdir: 0030.dttmpdir.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
diff --git a/cde/programs/dtsearchpath/dtappg/Makefile.am b/cde/programs/dtsearchpath/dtappg/Makefile.am
new file mode 100644 (file)
index 0000000..0740734
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtappgather
+
+dtappgather_CXXFLAGS = -I../libCliSrv $(DT_INCDIR)
+
+dtappgather_LDADD = ../libCliSrv/libCliSrv.a $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtappgather_LDADD += -ldl -lintl
+endif
+
+dtappgather_SOURCES = Options.C dtappgather.C dtappgather.h Options.h
+
+install-exec-hook:
+       chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtappgather
+       chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtappgather
diff --git a/cde/programs/dtsearchpath/dtsp/Makefile.am b/cde/programs/dtsearchpath/dtsp/Makefile.am
new file mode 100644 (file)
index 0000000..52e4272
--- /dev/null
@@ -0,0 +1,17 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtsearchpath
+
+dtsearchpath_CPPFLAGS = -I../libCliSrv $(DT_INCDIR)
+
+if SOLARIS
+dtsearchpath_CPPFLAGS += -DIOSTREAMSWORKS
+endif
+
+dtsearchpath_LDADD = ../libCliSrv/libCliSrv.a $(DTCLIENTLIBS) $(XTOOLLIB)
+
+dtsearchpath_SOURCES = AppSearchPath.C DbSearchPath.C                  \
+                      HelpSearchPath.C IconSearchPath.C                \
+                      InfoLibSearchPath.C ManSearchPath.C Options.C    \
+                      SearchPath.C dtsearchpath.C Options.h            \
+                      SearchPath.h
diff --git a/cde/programs/dtsearchpath/libCliSrv/Makefile.am b/cde/programs/dtsearchpath/libCliSrv/Makefile.am
new file mode 100644 (file)
index 0000000..2d46d44
--- /dev/null
@@ -0,0 +1,13 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_LIBRARIES = libCliSrv.a
+
+libCliSrv_a_CXXFLAGS = $(DT_INCDIR)
+
+if SOLARIS
+libCliSrv_a_CXXFLAGS += -DIOSTREAMSWORKS
+libCliSrv_a_LIBADD = -ldl -lintl -lc -ladm
+endif
+
+libCliSrv_a_SOURCES = DirIterator.C Environ.C TTFile.C UnixEnv.C       \
+       cstring.C cstring.h DirIterator.h Environ.h TTFile.h
diff --git a/cde/programs/dtsession/Makefile.am b/cde/programs/dtsession/Makefile.am
new file mode 100644 (file)
index 0000000..4e6726f
--- /dev/null
@@ -0,0 +1,124 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtsession
+
+bin_SCRIPTS = dtsession_res
+
+dtsession_CFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
+          -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
+         -Ddtsession
+
+dtsession_SOURCES = SmMain.c SmHelp.c SmGlobals.c SmCommun.c           \
+       SmError.c SmProperty.c SmProtocol.c SmSave.c SmScreen.c         \
+       SmRestore.c SmUI.c SmWindow.c SmLock.c SrvPalette.c             \
+       SrvFile_io.c SmStrDefs.c SmConMgmt.c SmXSMP.c SmAuth.c          \
+       SmWatch.c SmProp.c SmDB.c OWsync.h SmGlobals.h SmProperty.h     \
+       SmScreen.h SmXSMP.h SmAuth.h Sm.h SmProp.h SmUI.h               \
+       SrvFile_io.h SmCommun.h SmHelp.h SmProtocol.h SmWatch.h Srv.h   \
+       SmConMgmt.h SmHftRing.h SmResource.h SmWindow.h SrvPalette.h    \
+       SmDB.h SmLock.h SmRestore.h SmXdef.h SmError.h                  \
+       SmMigResources.h SmSave.h SmXrm.h
+
+
+dtsession_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtsession_SOURCES += OWsync.c
+dtsession_LDADD += -lelf -ldl
+endif
+
+if LINUX
+dtsession_CFLAGS += -DUSE_X11SSEXT
+dtsession_LDADD += $(TIRPCLIB) -lXss -ldl
+endif
+
+if BSD
+dtsession_CFLAGS += -DUSE_X11SSEXT
+dtsession_LDADD +=  -lXss
+endif
+
+DTSM_CMD1 = $(CDE_INSTALLATION_TOP)/bin/dtaction OpenHomeDir
+DTSM_CMD2 = $(CDE_INSTALLATION_TOP)/bin/dtfile -dir ~ -geometry +700+0
+DTSM_CMD4 = $(CDE_INSTALLATION_TOP)/bin/dthelpview -helpVolume Intromgr
+DTSM_CMD5 = $(CDE_INSTALLATION_TOP)/bin/dtaction Dthelpgen_delay
+
+LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+                   -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+                   -DXRDB=$(XRDB) \
+                   -DKORNSHELL=$(KSH) \
+                   -DDTSM_CMD1="\"$(DTSM_CMD1)\"" \
+                   -DDTSM_CMD2="\"$(DTSM_CMD2)\"" \
+                   -DDTSM_CMD4="\"$(DTSM_CMD4)\"" \
+                   -DDTSM_CMD5="\"$(DTSM_CMD5)\""
+
+if LINUX
+LOCAL_CPP_DEFINES += -Dlinux -D__linux__
+endif
+
+if FREEBSD
+LOCAL_CPP_DEFINES += -DFREEBSD -D__FreeBSD__
+endif
+
+if SOLARIS
+LOCAL_CPP_DEFINES += -Dsun
+endif
+
+if OPENBSD
+LOCAL_CPP_DEFINES += -D__OpenBSD__
+endif
+
+if NETBSD
+LOCAL_CPP_DEFINES += -D__NetBSD__
+endif
+
+if BSD
+LOCAL_CPP_DEFINES += -DCSRG_BASED
+endif
+
+
+BUILT_SOURCES = Dtsession dtloadresources dtsession.msg sys.font       \
+       sys.resources sys.resources.ive sys.session sys.session.ive
+CLEANFILES = $(BUILT_SOURCES)
+
+Dtsession: Dtsession.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtsession_res: dtloadresources
+       $(RM) $@
+       $(LN_S) $< $@
+
+dtloadresources: dtloadresources.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+       chmod 755 $@
+
+dtsession.msg: dtsession.msg.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+sys.font: sys.font.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+sys.resources: sys.resources.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+sys.resources.ive: sys.resources.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) -DIVE $< > $@
+
+sys.session: sys.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+sys.session.ive: sys.session.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) -DIVE $< > $@
+
+
+install-exec-hook:
+       chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtsession
+       chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtsession
+
index 55b722c968974afda91b5d35aa13d38245897709..4d6ea8a276c0a24e426f65effe91f1c6cfb0a979 100644 (file)
@@ -36,26 +36,26 @@ static char rcsid[] =
 **
 **  File:        SrvPalette.c
 **
-**  Project:     HP DT Style Manager , integrated into dtsession 
+**  Project:     HP DT Style Manager , integrated into dtsession
 **
 **  Description:
 **  -----------
 **  This is the main program for the color server portion of the dt session
 **  manager.  It:
-**             1. Determines the number of color cells for each screen 
+**             1. Determines the number of color cells for each screen
 **                attached to the server this session manager is running on.
 **             2. Reads in resouces for the colorserver on a per screen
-**                basis. 
+**                basis.
 **             3. Allocates pixels either Read/Write or Read Only depending
 **                on the resource DynamicColor.
 **             4. Handles query's about those allocated pixels through
-**                Selections. 
+**                Selections.
 **
 *******************************************************************
-**  (c) Copyright Hewlett-Packard Company, 1990.  All rights are  
-**  reserved.  Copying or other reproduction of this program      
-**  except for archival purposes is prohibited without prior      
-**  written consent of Hewlett-Packard Company.                     
+**  (c) Copyright Hewlett-Packard Company, 1990.  All rights are
+**  reserved.  Copying or other reproduction of this program
+**  except for archival purposes is prohibited without prior
+**  written consent of Hewlett-Packard Company.
 ********************************************************************
 **
 **
@@ -118,7 +118,7 @@ static XtResource resources[] = {
         DtRShadowPixmaps,
         sizeof(int),
         XtOffset(AppdataPtr, ShadowPixmaps),
-        XmRString, 
+        XmRString,
         "DEFAULT"},
 
     {   "foregroundColor",
@@ -126,7 +126,7 @@ static XtResource resources[] = {
         DtRForegroundColor,
         sizeof(int),
         XtOffset(AppdataPtr, ForegroundColor),
-        XmRString, 
+        XmRString,
         "DYNAMIC"},
 
     {   "dynamicColor",
@@ -134,7 +134,7 @@ static XtResource resources[] = {
         XmRBoolean,
         sizeof(Boolean),
         XtOffset(AppdataPtr, DynamicColor),
-        XmRImmediate, 
+        XmRImmediate,
         (XtPointer) True},
 
     {   "writeXrdbColors",
@@ -142,7 +142,7 @@ static XtResource resources[] = {
         XmRBoolean,
         sizeof(Boolean),
         XtOffset(AppdataPtr, WriteXrdbColors),
-        XmRImmediate, 
+        XmRImmediate,
         (XtPointer) True},
 
     {   "colorPalette",
@@ -172,12 +172,12 @@ Widget shell[MAX_NUM_SCREENS];
 
 /********    Static Function Declarations    ********/
 
-static Boolean AllocateColors( 
+static Boolean AllocateColors(
                         Display *dpy) ;
 static char *convert_pixel_set(
                         int typeOfMonitor,
                         ColorSet *color );
-static Boolean convert_selection( 
+static Boolean convert_selection(
                         Widget w,
                         Atom *selection,
                         Atom *target,
@@ -185,51 +185,51 @@ static Boolean convert_selection(
                         XtPointer *value,
                         unsigned long *length,
                         int *format) ;
-static void lose_selection( 
+static void lose_selection(
                         Widget w,
                         Atom *selection) ;
-static int FindMaximumDefault( 
+static int FindMaximumDefault(
                         Display *dpy,
                         int screen_number) ;
-static int FindNumOfPixels( 
+static int FindNumOfPixels(
                         Display *dpy,
                         int screen_number) ;
-static int GetNumOfPixels( 
+static int GetNumOfPixels(
                         int screen_number) ;
-static void MatchAndStore( 
+static void MatchAndStore(
                         Display *dpy,
                         int screen_number,
                         unsigned long *pixels) ;
-static Boolean AllocReadWrite( 
+static Boolean AllocReadWrite(
                         Display *dpy,
                         int screen_number,
                         int numOfPixels) ;
-static void AllocReadOnly( 
+static void AllocReadOnly(
                         Display *dpy,
                         int screen_number) ;
-static void CvtStringToColorUse( 
+static void CvtStringToColorUse(
                         XrmValue *args,
                         Cardinal *num_args,
                         XrmValue *from_val,
                         XrmValue *to_val) ;
-static void CvtStringToForegroundColor( 
+static void CvtStringToForegroundColor(
                         XrmValue *args,
                         Cardinal *num_args,
                         XrmValue *from_val,
                         XrmValue *to_val) ;
-static void CvtStringToShadowPixmaps( 
+static void CvtStringToShadowPixmaps(
                         XrmValue *args,
                         Cardinal *num_args,
                         XrmValue *from_val,
                         XrmValue *to_val) ;
-static Boolean _DtWmStringsAreEqual( 
+static Boolean _DtWmStringsAreEqual(
                         register char *in_str,
                         register char *test_str) ;
-static void SetDefaults( 
+static void SetDefaults(
                         Display *dpy,
                         int screen_number) ;
 
-static void _DtCacheProperties(        
+static void _DtCacheProperties(
                        Display *dpy,
                        Window Win) ;
 /********    End Static Function Declarations    ********/
@@ -245,7 +245,7 @@ static void _DtCacheProperties(
  *      for the color server.
  *
  **********************************************************************/
-int 
+int
 InitializeDtcolor(
         Display *dpy,
         short sessionType )
@@ -279,14 +279,14 @@ InitializeDtcolor(
        return(0);
 
 #ifdef sun
-    OWsyncColorResources(dpy, colorSrv.TypeOfMonitor[0], 
+    OWsyncColorResources(dpy, colorSrv.TypeOfMonitor[0],
                        colorSrv.pCurrentPalette[0]->color);
     OWsyncLocaleResources(dpy);
 #else
-   /* Set the *background: resource 
+   /* Set the *background: resource
        What gets set depends on what type of monitor */
      /* For XmCO_HIGH_COLOR the default primary colorset is 4, else 1 */
-    if(colorSrv.TypeOfMonitor[0] != XmCO_BLACK_WHITE) 
+    if(colorSrv.TypeOfMonitor[0] != XmCO_BLACK_WHITE)
     {
        int chipnum = colorSrv.TypeOfMonitor[0] == XmCO_HIGH_COLOR ? 4 : 1;
        sprintf(xrdb_string,
@@ -299,7 +299,7 @@ InitializeDtcolor(
                       colorSrv.pCurrentPalette[0]->color[chipnum].fg.blue);
 
     }
-     /* For XmCO_BLACK_WHITE the resources depended on whether the default 
+     /* For XmCO_BLACK_WHITE the resources depended on whether the default
         palette is White on Black or Black on White */
     else /* XmCO_BLACK_WHITE */
     {
@@ -317,7 +317,7 @@ InitializeDtcolor(
     }
     /* go merge the xrdb_string into the xrdb */
     _DtAddToResource(dpy, xrdb_string);
-#endif    
+#endif
 
     _DtCacheProperties(dpy, XtWindow(shell[0])) ;
 
@@ -344,18 +344,18 @@ _DtCacheProperties(
        palette->converted = convert_pixel_set(typeOfMonitor, palette->color);
        palette->converted_len = strlen(palette->converted);
      }
-  
+
   *(palette->converted + palette->converted_len) = XmPIXEL_SET_PROP_VERSION ;
   palette->converted_len++ ;
   palette->converted[palette->converted_len] = 0 ;
-  XChangeProperty(dpy, win, pixel_set_atom, XA_STRING, 8, PropModeAppend, 
-                (unsigned char *) XtNewString(palette->converted), 
+  XChangeProperty(dpy, win, pixel_set_atom, XA_STRING, 8, PropModeAppend,
+                (unsigned char *) XtNewString(palette->converted),
                 palette->converted_len) ;
 }
 
 /*****************************************************************************
 **
-**  Allocates color cells to be used by clients.  The global varible 
+**  Allocates color cells to be used by clients.  The global varible
 **  DynamicColor[screen_number] determines if the cells are to be allocated
 **  read/write or read only.  Right now this routine allocates
 **  all cells needed for a palette up front.  For performance tuning we will
@@ -382,7 +382,7 @@ _DtCacheProperties(
 **                                 of Bg
 **
 ***************************************************************************/
-static Boolean 
+static Boolean
 AllocateColors(
         Display *dpy )
 {
@@ -393,7 +393,7 @@ AllocateColors(
     for(screen_number=0;screen_number != colorSrv.NumOfScreens;screen_number++)
     {
        numOfPixels = GetNumOfPixels(screen_number);
+
    /* Now allocate the correct number of pixels using numOfPixels */
        if(numOfPixels != 0)  /* Not XmCO_BLACK_WHITE */
        {
@@ -406,7 +406,7 @@ AllocateColors(
           else
             /* go allocate Read Only cells for the color server */
              AllocReadOnly(dpy, screen_number);
-       } 
+       }
 
        if(colorSrv.TypeOfMonitor[screen_number] == XmCO_BLACK_WHITE)
        {
@@ -435,7 +435,7 @@ AllocateColors(
             WhiteColorSet(dpy,screen_number,palette->color[1].bs);
             BlackColorSet(dpy,screen_number,palette->color[1].sc);
           }
-          else 
+          else
           if(!(strcmp(colorSrv.pCurrentPalette[screen_number]->name, B_O_W)))
           {
             BlackColorSet(dpy,screen_number,palette->color[0].bg);
@@ -450,7 +450,7 @@ AllocateColors(
             BlackColorSet(dpy,screen_number,palette->color[1].bs);
             WhiteColorSet(dpy,screen_number,palette->color[1].sc);
           }
-          else 
+          else
           if(!(strcmp(colorSrv.pCurrentPalette[screen_number]->name, W_ONLY)))
           {
             WhiteColorSet(dpy,screen_number,palette->color[0].bg);
@@ -484,7 +484,7 @@ AllocateColors(
        }
      XSync(dpy, 0);
    } /* for screen_number=0 ; screen_number < NumOfScreens; screen_number++ */
-  
+
    return(True);
 }
 
@@ -494,7 +494,7 @@ AllocateColors(
 **                screens on the server is running on.
 **
 ************************************************************************/
-int 
+int
 CheckMonitor(
         Display *dpy )
 {
@@ -508,7 +508,7 @@ CheckMonitor(
 
     Widget mainShell;
     XtAppContext app_context;
-    
+
     /* Determine the number of screens attached to this server */
     colorSrv.NumOfScreens = ScreenCount(dpy);
 
@@ -518,24 +518,24 @@ CheckMonitor(
 
    /* create a top level shell to retrieve subresources from */
     n = 0;
-    XtSetArg(args[n], XmNbackground, 
+    XtSetArg(args[n], XmNbackground,
         BlackPixelOfScreen(DefaultScreenOfDisplay(dpy))); n++;
     XtSetArg(args[n], XmNmappedWhenManaged, False); n++;
     XtSetArg (args[n], XmNwidth, 1); n++;
     XtSetArg (args[n], XmNheight, 1); n++;
     mainShell = XtAppCreateShell("dtsession", XmSCOLOR_SRV_NAME,
-                                  applicationShellWidgetClass, 
+                                  applicationShellWidgetClass,
                                   dpy, args, n);
 
    /* create an application context */
     app_context = XtWidgetToApplicationContext(mainShell);
-    
+
    /* Register the resource converters */
-    XtAppAddConverter(app_context, XmRString, "ColorUse", 
+    XtAppAddConverter(app_context, XmRString, "ColorUse",
             CvtStringToColorUse, NULL, 0);
-    XtAppAddConverter(app_context, XmRString, "ForegroundColor", 
+    XtAppAddConverter(app_context, XmRString, "ForegroundColor",
             CvtStringToForegroundColor, NULL, 0);
-    XtAppAddConverter(app_context, XmRString, "ShadowPixmaps", 
+    XtAppAddConverter(app_context, XmRString, "ShadowPixmaps",
             CvtStringToShadowPixmaps, NULL, 0);
 
    /* cycle through each screen */
@@ -543,33 +543,32 @@ CheckMonitor(
     {
        snprintf(screenStr, sizeof(screenStr), "%d", screen_number);
        n = 0;
-       XtSetArg(args[n], XmNbackground, 
+       XtSetArg(args[n], XmNbackground,
            BlackPixelOfScreen(DefaultScreenOfDisplay(dpy))); n++;
        XtSetArg(args[n], XmNmappedWhenManaged, False); n++;
        XtSetArg (args[n], XmNwidth, 1); n++;
        XtSetArg (args[n], XmNheight, 1); n++;
-       shell[screen_number] = XtAppCreateShell(screenStr, XmSCOLOR_SRV_NAME, 
-                                               applicationShellWidgetClass, 
+       shell[screen_number] = XtAppCreateShell(screenStr, XmSCOLOR_SRV_NAME,
+                                               applicationShellWidgetClass,
                                                dpy, args, n);
 
-       /* 
-       * widget needs to be realized for the window ID for 
-       * selections to work 
+       /*
+       * widget needs to be realized for the window ID for
+       * selections to work
        */
-       
+
        XtRealizeWidget(shell[screen_number]);
-       
        snprintf(cust_msg, sizeof(cust_msg), "%s%d",
                 XmSCUSTOMIZE_DATA, screen_number);
        colorSrv.XA_CUSTOMIZE[screen_number] = 
           XInternAtom(dpy, cust_msg, FALSE);
-       
+
        /* go set ownership of the pixel set atoms */
        result = XtOwnSelection(shell[screen_number],
                               colorSrv.XA_CUSTOMIZE[screen_number],
-                              CurrentTime, convert_selection, 
+                              CurrentTime, convert_selection,
                               lose_selection, NULL);
-  
+
        if(result == False)
        {
           /*
@@ -593,18 +592,18 @@ CheckMonitor(
        XtGetSubresources(mainShell, &pColorSrvRsrc, screenStr, screenStr,
                           resources, XtNumber(resources), NULL, 0);
 
-      /* 
-       * Set TypeOfMonitor, UsePixmaps FgColor and 
+      /*
+       * Set TypeOfMonitor, UsePixmaps FgColor and
        * DynamicColor for this screen
        */
 
        SetDefaults(dpy, screen_number);
-       
+
        if (colorSrv.TypeOfMonitor[screen_number] != XmCO_BLACK_WHITE)
        {
-          colorSrv.pCurrentPalette[screen_number] = 
-                (struct _palette *) GetPaletteDefinition(dpy, 
-                                     screen_number, 
+          colorSrv.pCurrentPalette[screen_number] =
+                (struct _palette *) GetPaletteDefinition(dpy,
+                                     screen_number,
                                      pColorSrvRsrc.ColorPalette);
        }
        else
@@ -640,7 +639,7 @@ CheckMonitor(
        if (!xrdb_string)
            return -1;
 
-       if (colorSrv.TypeOfMonitor[0] == XmCO_HIGH_COLOR || 
+       if (colorSrv.TypeOfMonitor[0] == XmCO_HIGH_COLOR ||
            colorSrv.TypeOfMonitor[0] == XmCO_MEDIUM_COLOR ||
            colorSrv.TypeOfMonitor[0] == XmCO_LOW_COLOR)
        {
@@ -701,23 +700,23 @@ convert_pixel_set(
     case XmCO_MEDIUM_COLOR: colormappingindex = 1; break;
     case XmCO_LOW_COLOR:    colormappingindex = 2; break;
     case XmCO_BLACK_WHITE:  colormappingindex = 3; break;
-  } 
+  }
 
   p = converted = (char *)SRV_MALLOC(400);
+
   /* lead the string with the type of monitor */
   p += sprintf(p, "%x_", typeOfMonitor);
 
   for (i = 0; i < NUM_OF_COLORS; i++)
   {
-    p += sprintf (p, "%lx_%lx_%lx_%lx_%lx_", 
+    p += sprintf (p, "%lx_%lx_%lx_%lx_%lx_",
                   color[colormapping[colormappingindex][i]].bg.pixel,
                   color[colormapping[colormappingindex][i]].fg.pixel,
                   color[colormapping[colormappingindex][i]].ts.pixel,
                   color[colormapping[colormappingindex][i]].bs.pixel,
                   color[colormapping[colormappingindex][i]].sc.pixel);
   }
+
   return(converted);
 }
 
@@ -727,7 +726,7 @@ convert_pixel_set(
 **        to get information from the dtcolor (color server)
 **
 ************************************************************************/
-static Boolean 
+static Boolean
 convert_selection(
         Widget w,
         Atom *selection,
@@ -748,7 +747,7 @@ convert_selection(
   Boolean status;
   struct _palette *palette;
   int typeOfMonitor;
-                    
+
 
   /* Determine for which screen the selection came from */
   for(i=0; i < MAX_NUM_SCREENS; i++)
@@ -801,11 +800,11 @@ convert_selection(
 /************************************************************************
 **
 ** lose_selection - Callback, called when some other client wishes
-**        to take ownership of one of the servers selections ... 
+**        to take ownership of one of the servers selections ...
 **        should never happen.
 **
 ************************************************************************/
-static void 
+static void
 lose_selection(
         Widget w,
         Atom *selection )
@@ -816,15 +815,19 @@ lose_selection(
      pixel_set_atom = XInternAtom(XtDisplay(w), XmSPIXEL_SET_PROP, FALSE) ;
      XDeleteProperty(XtDisplay(w), XtWindow(shell[0]), pixel_set_atom) ;
 
-     tmpStr = (char *)SRV_MALLOC(strlen(MSG2) + strlen(MSG2a) +  6);
-     tmpStr2 = (char *)SRV_MALLOC(strlen(MSG2) + 1);
      if (selection != NULL) {
           tmpStr3 = XGetAtomName(XtDisplay(w), *selection);
      } else {
-          tmpStr3 = NULL;
+          tmpStr3 = "(null)";
      }
-     printf(tmpStr2,"%s", MSG2);
-     sprintf(tmpStr,"%s%s%s", tmpStr2, (tmpStr3 == NULL) ? "(null)" : tmpStr3, MSG2a);
+
+     const int str1len = strlen(MSG2) + strlen(MSG2a) + strlen(tmpStr3) + 10;
+     const int str2len = strlen(MSG2) + 1;
+     tmpStr = (char *)SRV_MALLOC(str1len);
+     tmpStr2 = (char *)SRV_MALLOC(str2len);
+
+     snprintf(tmpStr2, str2len, "%s", MSG2);
+     snprintf(tmpStr, str1len, "%s %s\n%s", tmpStr2, tmpStr3, MSG2a);
      _DtSimpleError(XmSCOLOR_SRV_NAME, DtWarning, NULL, tmpStr, NULL);
      SRV_FREE(tmpStr);
      SRV_FREE(tmpStr2);
@@ -837,8 +840,8 @@ lose_selection(
 ** are available .. this finds and allocates the maximum that are available
 ** It also adjusts TypeOfMonitor, UsePixmaps, and FgColor accordingly.
 **
-******************************************************************************/ 
-static int 
+******************************************************************************/
+static int
 FindMaximumDefault(
         Display *dpy,
         int screen_number )
@@ -866,7 +869,7 @@ FindMaximumDefault(
    }
    else if(colorSrv.TypeOfMonitor[screen_number] == XmCO_HIGH_COLOR)
    {
-       if(numOfPixelsLeft >= 32) /* was asking for 40 */ 
+       if(numOfPixelsLeft >= 32) /* was asking for 40 */
        {
           colorSrv.UsePixmaps[screen_number] = FALSE;
           colorSrv.FgColor[screen_number] = WHITE;
@@ -877,13 +880,13 @@ FindMaximumDefault(
           colorSrv.UsePixmaps[screen_number] = TRUE;
           colorSrv.FgColor[screen_number] = DYNAMIC;
           return(24);
-       } 
+       }
        else if(numOfPixelsLeft >= 16)
        {
           colorSrv.UsePixmaps[screen_number] = TRUE;
           colorSrv.FgColor[screen_number] = WHITE;
           return(16);
-       } 
+       }
        else  /* can't use XmCO_HIGH_COLOR anymore so set to
                next highest XmCO_MEDIUM_COLOR */
        {
@@ -893,7 +896,7 @@ FindMaximumDefault(
     }
 
    /* need to do an if instead of an else because TypeOfMonitor can be reset
-      in the else if above */     
+      in the else if above */
     if(colorSrv.TypeOfMonitor[screen_number] == XmCO_MEDIUM_COLOR)
     {
        if(numOfPixelsLeft >= 16)
@@ -915,7 +918,7 @@ FindMaximumDefault(
           return(8);
        }
        else /* can't use XmCO_MEDIUM_COLOR anymore so set to next */
-           /* highest XmCO_LOW_COLOR*/ 
+           /* highest XmCO_LOW_COLOR*/
        {
           colorSrv.TypeOfMonitor[screen_number] = XmCO_LOW_COLOR;
           colorSrv.pCurrentPalette[screen_number]->num_of_colors = 2;
@@ -924,7 +927,7 @@ FindMaximumDefault(
     }
 
    /* need to do an if instead of an else because TypeOfMonitor can be reset
-      in the else if above */     
+      in the else if above */
     if(colorSrv.TypeOfMonitor[screen_number] == XmCO_LOW_COLOR)
     {
        if(numOfPixelsLeft >= 10)
@@ -963,7 +966,7 @@ FindMaximumDefault(
 ** Maximum default for the user
 **
 ******************************************************************************/
-static int 
+static int
 FindNumOfPixels(
         Display *dpy,
         int screen_number )
@@ -1027,7 +1030,7 @@ FindNumOfPixels(
 **        and ForegroundColor(FgColor).
 **
 ************************************************************************/
-static int 
+static int
 GetNumOfPixels(
         int screen_number )
 {
@@ -1040,7 +1043,7 @@ GetNumOfPixels(
    {
       if(colorSrv.UsePixmaps[screen_number] == FALSE)
       {
-         if(colorSrv.FgColor[screen_number] == DYNAMIC) 
+         if(colorSrv.FgColor[screen_number] == DYNAMIC)
          {
             return(colorSrv.pCurrentPalette[screen_number]->num_of_colors * 5);
          }
@@ -1070,7 +1073,7 @@ GetNumOfPixels(
 **        correctly at the X server.
 **
 ************************************************************************/
-static void 
+static void
 MatchAndStore(
         Display *dpy,
         int screen_number,
@@ -1083,7 +1086,7 @@ MatchAndStore(
    p = colorSrv.pCurrentPalette[screen_number];
    xcolor = (XColor *)SRV_MALLOC (p->num_of_colors * 5 * sizeof (XColor));
 
-   for(i = 0; i < p->num_of_colors; i++) 
+   for(i = 0; i < p->num_of_colors; i++)
    {
       /* Background Pixel */
       p->color[i].bg.pixel = pixels[count];
@@ -1159,7 +1162,7 @@ MatchAndStore(
 **        the varibles TypeOfMonitor, UsePixmaps, and FgColor accordingly.
 **
 ************************************************************************/
-static Boolean 
+static Boolean
 AllocReadWrite(
         Display *dpy,
         int screen_number,
@@ -1177,7 +1180,7 @@ AllocReadWrite(
    status = XAllocColorCells (dpy, DefaultColormap(dpy, screen_number),
                               (Boolean)0, &plane_mask, 0, pixels, numOfPixels);
 
-  /* When status is false means the alloc couldn't get all the pixels 
+  /* When status is false means the alloc couldn't get all the pixels
     the user wanted or what the default is .. so lets go find the
     minumum and set up and use that */
    if(status == False)
@@ -1220,22 +1223,22 @@ AllocReadWrite(
         XStoreColors to set the RGB values of them */
       MatchAndStore(dpy, screen_number, pixels);
 
-   } 
+   }
 
   /* free the allocated space for pixels */
    SRV_FREE((char *) pixels);
    return(True);
-} 
+}
 
 /************************************************************************
 **
 ** AllocReadOnly - Allocates Read Only cells for use by the color
 **        server.  If the X server can't allocate the cell it finds the
 **        closest approximation to the color of a cell already allocated.
-**        Therefore there is no error recorded.  
+**        Therefore there is no error recorded.
 **
 ************************************************************************/
-static void 
+static void
 AllocReadOnly(
         Display *dpy,
         int screen_number )
@@ -1278,14 +1281,14 @@ AllocReadOnly(
          colorSrv.pCurrentPalette[screen_number]->color[i].fg.pixel =
                                           WhitePixel(dpy,screen_number);
    }
-} 
+}
 
 /*********************************************************************
 **
-** Converter which converts a string to the ColorUse value 
+** Converter which converts a string to the ColorUse value
 **
 **********************************************************************/
-static void 
+static void
 CvtStringToColorUse(
         XrmValue *args,
         Cardinal *num_args,
@@ -1317,10 +1320,10 @@ CvtStringToColorUse(
 }
 /**********************************************************************
 **
-** Converter which converts a string to the ForegroundColor value 
+** Converter which converts a string to the ForegroundColor value
 **
 **********************************************************************/
-static void 
+static void
 CvtStringToForegroundColor(
         XrmValue *args,
         Cardinal *num_args,
@@ -1349,10 +1352,10 @@ CvtStringToForegroundColor(
 
 /***********************************************************************
 **
-** Converter which converts a string to the ShadowPixmaps value 
+** Converter which converts a string to the ShadowPixmaps value
 **
 ***********************************************************************/
-static void 
+static void
 CvtStringToShadowPixmaps(
         XrmValue *args,
         Cardinal *num_args,
@@ -1387,7 +1390,7 @@ CvtStringToShadowPixmaps(
  *      responsibility to ensure that test_str is already lower cased.
  *
  ************************************************************************/
-static Boolean 
+static Boolean
 _DtWmStringsAreEqual(
         register char *in_str,
         register char *test_str )
@@ -1415,16 +1418,16 @@ _DtWmStringsAreEqual(
       test_str++;
    }
 }
-  
+
 /************************************************************************
  *
  * SetDefaults - set the TypeOfMonitor, UsePixmaps, FgColor, and DynamicColor
  *       for the screen passed in.  Use the resource values, the number of
- *       colors for this screen, and the visual type of the screen to 
+ *       colors for this screen, and the visual type of the screen to
  *       determine which values best fit.
  *
  *************************************************************************/
-static void 
+static void
 SetDefaults(
         Display *dpy,
         int screen_number )
@@ -1450,13 +1453,13 @@ SetDefaults(
    {
       if ((visual->class == GrayScale) || (visual->class == StaticGray))
       {
-          pColorSrvRsrc.ColorPalette = 
+          pColorSrvRsrc.ColorPalette =
                 XtMalloc(strlen(DEFAULT_GRAYSCALE_PALETTE)+1);
           strcpy(pColorSrvRsrc.ColorPalette, DEFAULT_GRAYSCALE_PALETTE);
       }
       else
       {
-          pColorSrvRsrc.ColorPalette = 
+          pColorSrvRsrc.ColorPalette =
                 XtMalloc(strlen(DEFAULT_COLOR_PALETTE)+1);
           strcpy(pColorSrvRsrc.ColorPalette, DEFAULT_COLOR_PALETTE);
       }
@@ -1465,7 +1468,7 @@ SetDefaults(
    numPlanes = XDisplayPlanes(dpy, screen_number);
 
    if( numPlanes < 3) /* 1 or 2 planes */
-   { 
+   {
       colorSrv.TypeOfMonitor[screen_number] = XmCO_BLACK_WHITE;
       colorSrv.DynamicColor[screen_number] = False;
    }
@@ -1508,8 +1511,8 @@ SetDefaults(
          case XmCO_HIGH_COLOR:
            /* for 5 planes ColorUse = hi_color shadowPixmaps have to be True */
             pColorSrvRsrc.ShadowPixmaps = -1;
-            colorSrv.TypeOfMonitor[screen_number] = XmCO_HIGH_COLOR; 
-            break; 
+            colorSrv.TypeOfMonitor[screen_number] = XmCO_HIGH_COLOR;
+            break;
          case XmCO_MEDIUM_COLOR:
             colorSrv.TypeOfMonitor[screen_number] = XmCO_MEDIUM_COLOR;
             break;
index 69c05188c5b23edb5ec895c1e2faddf27462a8ed..bd033e40ed4d9c46a5ea03fa601743dc45b34858 100644 (file)
@@ -166,4 +166,4 @@ display=$(echo ${display%.*} | /usr/bin/tr ".:" "__")
   if [ ! -z "$resourceFiles" ]; then
     cat $resourceFiles
   fi
-) | XBINDIR/xrdb -quiet $xrdbOption -DDISPLAY_$display
+) | XRDB -quiet $xrdbOption -DDISPLAY_$display
diff --git a/cde/programs/dtspcd/Makefile.am b/cde/programs/dtspcd/Makefile.am
new file mode 100644 (file)
index 0000000..c0b517a
--- /dev/null
@@ -0,0 +1,34 @@
+MAITAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtspcd
+
+dtspcd_CFLAGS = -DCDE_CONFIGURATION_TOP=\"${prefix}\" \
+               -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
+               $(DT_INCDIR)
+
+dtspcd_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dtspcd_LDADD += -ldl -lgen
+endif
+
+cfgdir = $(CDE_INSTALLATION_TOP)/config
+dist_cfg_DATA = dtspcdenv
+
+# I really think we should get rid of dtspcd in general...
+
+dtspcd_SOURCES = main.c spcd_event.c
+
+DEF_SYSTEM_PATH = "/bin:/usr/bin"
+LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)   \
+       -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
+       -DDEF_SYSTEM_PATH=$(DEF_SYSTEM_PATH)
+
+CPP_TARGETS = dtspcdenv
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+dtspcdenv: dtspcdenv.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
diff --git a/cde/programs/dtsr/Makefile.am b/cde/programs/dtsr/Makefile.am
new file mode 100644 (file)
index 0000000..d4a424b
--- /dev/null
@@ -0,0 +1,39 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtsrcreate dtsrdbrec dtsrhan dtsrload dtsrindex dtsrdelete \
+              huffcode dtsrkdump dtsrclean
+
+AM_CFLAGS = -I../../lib/DtSearch -I../../lib/DtSearch/raima    \
+       $(DT_INCDIR) -DMAIN_PROGRAM
+
+if I386
+AM_CFLAGS += -DBYTE_SWAP
+endif
+
+if X86_64
+AM_CFLAGS += -DBYTE_SWAP
+endif
+
+if ARM
+AM_CFLAGS += -DBYTE_SWAP
+endif
+
+LDADD = ../../lib/DtSearch/libDtSearch.la
+
+dtsrcreate_SOURCES = dtsrcreate.c
+
+dtsrdbrec_SOURCES = dtsrdbrec.c
+
+dtsrhan_SOURCES = dtsrhan.c
+
+dtsrload_SOURCES = dtsrload.c
+
+dtsrclean_SOURCES = dtsrclean.c
+
+dtsrindex_SOURCES = dtsrindex.c
+
+dtsrdelete_SOURCES = tomita.c
+
+huffcode_SOURCES = huffcode.c
+
+dtsrkdump_SOURCES = dtsrkdump.c
index 987ecc577af3a6c6d1cda7288779252e8e0ad83a..cd26ade4aab2e1074783cdf30373a0f815dc6065 100644 (file)
@@ -50,7 +50,7 @@
 #include <X11/Xlib.h>
 #include <X11/Intrinsic.h>
 
-#include <DtHelp/LocaleXlate.h>  /* for locale equivalence between platforms */
+#include <Dt/LocaleXlate.h>  /* for locale equivalence between platforms */
 
 #include "Main.h"
 #include "I18nEnv.h"
diff --git a/cde/programs/dtstyle/Makefile.am b/cde/programs/dtstyle/Makefile.am
new file mode 100644 (file)
index 0000000..11c826e
--- /dev/null
@@ -0,0 +1,45 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtstyle
+
+dtstyle_CPPFLAGS = -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"        \
+       -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" -I../dthelp  \
+       -I$(DT_INCDIR)
+
+dtstyle_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+dtstyle_SOURCES = Main.c MainWin.c Font.c Audio.c Startup.c Mouse.c    \
+                 SaveRestore.c Backdrop.c Screen.c Keyboard.c          \
+                 ColorMain.c ColorPalette.c ColorFile.c ColorEdit.c    \
+                 Resource.c Protocol.c Dtwm.c Help.c HelpCB.c          \
+                 I18nMain.c I18nEnv.c I18nUtil.c Audio.h ColorMain.h   \
+                 Help.h Keyboard.h OWsync.h Screen.h Backdrop.h        \
+                 ColorPalette.h I18nEnv.h Main.h Protocol.h            \
+                 Startup.h ColorEdit.h Dtwm.h I18nMain.h MainWin.h     \
+                 Resource.h ColorFile.h Font.h I18nUtil.h Mouse.h      \
+                 SaveRestore.h
+
+if SOLARIS
+dtstyle_SOURCES += OWsync.c
+endif
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=${prefix}
+
+CPP_TARGETS = Dtstyle Backdrops Palettes
+
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+Dtstyle: Dtstyle.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+Backdrops: Backdrops.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+Palettes: Palettes.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+
diff --git a/cde/programs/dtterm/Makefile.am b/cde/programs/dtterm/Makefile.am
new file mode 100644 (file)
index 0000000..2e60887
--- /dev/null
@@ -0,0 +1,49 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtterm
+
+dtterm_LDADD = $(LIBTERM) $(DTCLIENTLIBS) $(XTOOLLIB) 
+
+if BSD
+dtterm_LDADD += -lutil
+endif
+
+dtterm_CFLAGS = -I$(top_builddir)/lib/DtTerm/TermPrim  \
+       -I$(top_builddir)/lib/DtTerm/Term                       \
+       -I$(top_builddir)/lib/DtTerm/TermView   \
+       $(DT_INCDIR) \
+       -DSUN_TERMINAL_SERVER
+
+dtterm_SOURCES = DtTermLogit.c DtTermMain.c DtTermFallBackResources.c  \
+                sunDtTermServer.c DtTermSyntax.c DtTermLogit.h         \
+                DtTermMain.h DtTermServer.h DtTermSyntax.h
+
+CPP_TARGETS = dtterm.ti DtTermFallBackResources.c.src  \
+       DtTermFallBackResources.c Dtterm.ad
+
+BUILT_SOURCES = $(CPP_TARGETS)
+CLEANFILES = $(CPP_TARGETS)
+
+cfgdir = $(CDE_INSTALLATION_TOP)/config
+dist_cfg_DATA = dtterm.ti
+
+Dtterm.ad: Dtterm.ad.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $< > $@
+
+DtTermFallBackResources.c.src: Dtterm.ad.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# -DFALLBACK_RESOURCES $< > $@
+
+DtTermFallBackResources.c: DtTermFallBackResources.c.src
+       $(RM) $@
+       ./mkfallbk < DtTermFallBackResources.c.src > $@
+
+dtterm.ti: terminfoChecklist
+       $(RM) $@
+       CPP="$(GENCPP)" $(SHELL) terminfoCreate < terminfoChecklist > $@
+
+install-exec-hook:
+       chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtterm
+       chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtterm
+
diff --git a/cde/programs/dtterm/util/Imakefile b/cde/programs/dtterm/util/Imakefile
deleted file mode 100644 (file)
index bc82f04..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-XCOMM $XConsortium: Imakefile /main/4 1996/04/21 19:51:51 drk $
-
-        DEFINES =
-           SRCS = logger.c
-           OBJS = logger.o
-  SYS_LIBRARIES = -lm
-
-ComplexProgramTarget(logger)
diff --git a/cde/programs/dtterm/util/logger.c b/cde/programs/dtterm/util/logger.c
deleted file mode 100644 (file)
index 0a25770..0000000
+++ /dev/null
@@ -1,221 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* $XConsortium: logger.c /main/3 1995/10/31 12:04:16 rswiston $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <fcntl.h>
-
-/*                                                                      *
- * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
- * (c) Copyright 1993, 1994 International Business Machines Corp.       *
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
- * (c) Copyright 1993, 1994 Novell, Inc.                                *
- */
-
-static void serve(char *progName, int s, int logfd);
-
-int
-main(int argc, char **argv)
-{
-    int s;
-    int i1;
-    int noFork = 0;
-    int pid;
-    int logfd = 1;
-    struct sockaddr_in myaddr_in;
-    extern char *optarg;
-    extern int optind, optopt;
-
-    while(EOF != (i1 = getopt(argc, argv, "fl:"))) {
-       switch(i1) {
-       case 'f' :
-           noFork = 1;
-           break;
-
-       case 'l' :
-           if ((logfd =
-                   open(optarg, O_WRONLY | O_APPEND | O_CREAT, 0644)) < 0) {
-               (void) perror(optarg);
-               (void) exit(1);
-           }
-           break;
-       }
-    }
-
-    /* init data... */
-#if defined(__linux__) || defined(sun) || defined(CSRG_BASED)
-    (void) memset((void *) &myaddr_in, (int) '\0', sizeof(myaddr_in));
-#else
-    (void) memset(myaddr_in, '\0', sizeof(myaddr_in));
-#endif
-
-    /* set up my address for socket... */
-    myaddr_in.sin_family = AF_INET;
-    /* listen to the wildcard address... */
-    myaddr_in.sin_addr.s_addr = INADDR_ANY;
-    /* use port 4444... */
-    myaddr_in.sin_port = 4444;
-
-    /* create a socket... */
-    s = socket(AF_INET, SOCK_DGRAM, 0);
-    if (s < 0) {
-       (void) perror("socket");
-       (void) exit(1);
-    }
-
-    /* bind the servers addr to the socket... */
-    if (bind(s, (struct sockaddr *)&myaddr_in, sizeof(myaddr_in)) == -1) {
-       (void) perror("bind");
-       (void) exit(1);
-    }
-
-    /* daemonize ourself... */
-    (void) setsid();
-
-    if (noFork) {
-       pid = 0 ;
-    } else {
-       pid = fork();
-    }
-
-    switch(pid) {
-    case -1:
-       /* unable to fork... */
-       (void) perror("fork");
-       (void) _exit(1);
-       break;
-
-    case 0:
-       /* child... */
-       (void) serve(argv[0], s, logfd);
-       break;
-
-    default:
-       /* parent... */
-       (void) exit(0);
-    }
-
-    (void) exit(0);
-}
-
-static void
-logStartStop(char *progName, int logfd, int start)
-{
-    static char *savedProgName = (char *) 0;
-    static int savedLogfd = -1;
-    time_t now;
-    char buffer[BUFSIZ];
-    char *tstring;
-
-    if (progName && *progName)
-       savedProgName = progName;
-    if (logfd >= 0)
-       savedLogfd = logfd;
-
-    (void) time(&now);
-    tstring = ctime(&now);
-    /* remove the trailing '\n'... */
-    tstring[strlen(tstring) - 1] = '\0';
-
-    (void) snprintf(buffer, sizeof buffer, "%s: %s %s\n",
-           (savedProgName && *savedProgName) ? savedProgName : "logger",
-           start ? "starting" : "terminating",
-           tstring);
-
-    if (savedLogfd >= 0)
-       (void) write(savedLogfd, buffer, strlen(buffer));
-}
-    
-void
-shutDown(int sig)
-{
-    (void) logStartStop(NULL, -1, 0);
-}
-
-static void
-serve(char *progName, int s, int logfd)
-{
-    int i;
-    int cc;
-    socklen_t addrlen;
-    char *c1;
-    char buffer[BUFSIZ];
-    struct sockaddr_in clientaddr_in;
-    struct hostent *hp;
-    
-    for (i = 0; i < 2; i++) {
-       if ((i != s) && (i != logfd)) {
-           (void) close(i);
-       }
-    }
-
-    (void) logStartStop(progName, logfd, 1);
-    (void) signal(SIGINT, shutDown);
-    (void) signal(SIGQUIT, shutDown);
-    (void) signal(SIGTERM, shutDown);
-    (void) signal(SIGUSR1, shutDown);
-    (void) signal(SIGUSR2, shutDown);
-
-    addrlen = sizeof(clientaddr_in);
-    while (1) {
-       (void) memset((char *) &clientaddr_in, 0, sizeof(clientaddr_in));
-       cc = recvfrom(s, buffer, sizeof(buffer) - 1, 0, 
-                     (struct sockaddr *)&clientaddr_in, &addrlen);
-
-       if (cc < 0) {
-           (void) exit(1);
-       }
-
-       /* null term the buffer... */
-       buffer[cc] = '\0';
-
-       hp = gethostbyaddr((char *) &clientaddr_in.sin_addr,
-               sizeof(clientaddr_in.sin_addr), clientaddr_in.sin_family);
-       if (hp) {
-           c1 = hp->h_name;
-       } else {
-           c1 = inet_ntoa(clientaddr_in.sin_addr);
-       }
-       (void) write(logfd, c1, strlen(c1));
-       (void) write(logfd, ": ", 2);
-
-       (void) write(logfd, buffer, strlen(buffer));
-       (void) write(logfd, "\n", 1);
-
-       /* find the first space after the id... */
-       for (c1 = buffer; *c1 && (*c1 != ' ') && (*c1 != '\t'); c1++) {
-           ;
-       }
-       (void) strcpy(c1, " ACK");
-       (void) sendto(s, buffer, strlen(buffer), 0, (struct sockaddr *)&clientaddr_in, addrlen);
-    }
-}
diff --git a/cde/programs/dtudcexch/Makefile.am b/cde/programs/dtudcexch/Makefile.am
new file mode 100644 (file)
index 0000000..4bce8dc
--- /dev/null
@@ -0,0 +1,26 @@
+bin_PROGRAMS = dtudcexch
+
+FONTEDT_PATH1 = ../dtudcfonted
+
+dtudcexch_CFLAGS = -I$(FONTEDT_PATH1) -I$(FONTEDT_PATH1)/include \
+                  -I$(FONTEDT_PATH1)/libfal -I$(FONTEDT_PATH1)/dtgpftobdf \
+                  -DFONTC='"'$(BDFTOPCF)'"'
+
+dtudcexch_LDADD = $(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS} \
+                $(FONTEDT_PATH1)/libfuty/liboakfuty.a \
+                $(FONTEDT_PATH1)/libfal/libfal.a
+
+if SOLARIS
+dtudcexch_LDADD += -ldl -lgen
+endif
+
+if AIX
+dtudcexch_LDADD += -ldl -liconv
+endif
+
+if FREEBSD
+dtudcexch_LDADD += -liconv
+endif
+
+dtudcexch_SOURCES = udcexc.c udcexp.c udcimp.c getbdffn.c excutil.c \
+                    selectx.c exportbdf.c importbdf.c
index 5dc7785dd7de6d998f0b0f3c92c0a6f9d52a7e13..d653bea73571a08d3343b83a87cb88f82599d82e 100644 (file)
@@ -145,7 +145,7 @@ static void SetSegment(
                         int y1,
                         int x2,
                         int y2) ;
-static int round( 
+static int wmround( 
                         double x) ;
 static void DrawClockFace( 
                         DtClockGadget g) ;
@@ -535,13 +535,13 @@ DrawHand(
        wc = width * cosangle;
        ws = width * sinangle;
        SetSegment (w,
-                  x = w->clock.centerX + round (length * sinangle),
-                  y = w->clock.centerY - round (length * cosangle),
-                  x1 = w->clock.centerX - round (ws + wc), 
-                  y1 = w->clock.centerY + round (wc - ws));  /* 1 ---- 2 */
+                  x = w->clock.centerX + wmround (length * sinangle),
+                  y = w->clock.centerY - wmround (length * cosangle),
+                  x1 = w->clock.centerX - wmround (ws + wc), 
+                  y1 = w->clock.centerY + wmround (wc - ws));  /* 1 ---- 2 */
        SetSegment (w, x1, y1, 
-                  x2 = w->clock.centerX - round (ws - wc), 
-                  y2 = w->clock.centerY + round (wc + ws));  /* 2 ----- 3 */
+                  x2 = w->clock.centerX - wmround (ws - wc), 
+                  y2 = w->clock.centerY + wmround (wc + ws));  /* 2 ----- 3 */
        SetSegment (w, x2, y2, x, y);   /* 3 ----- 1 (4) */
 }
 
@@ -572,7 +572,7 @@ SetSegment(
 **             round integer.
 */
 static int 
-round(
+wmround(
         double x )
 {
        return (x >= 0.0 ? (int) (x + .5) : (int) (x - .5));
diff --git a/cde/programs/dtwm/Makefile.am b/cde/programs/dtwm/Makefile.am
new file mode 100644 (file)
index 0000000..0c05b35
--- /dev/null
@@ -0,0 +1,53 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dtwm dtfplist
+
+configdir = $(CDE_INSTALLATION_TOP)/config/C
+dist_config_DATA = sys.dtwmrc
+
+BUILT_SOURCES = sys.dtwmrc Dtwm.defs
+CLEANFILES = sys.dtwmrc Dtwm.defs
+
+AM_CPPFLAGS = -DLARGECURSORS -DR2_COMPAT -DOPAQUE -DSHAPE -DUNMAP_ON_RESTART \
+             -DBATCH_DRAG_REQUESTS -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+             -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+
+dtwm_LDADD = $(DTCLIENTLIBS) -lXext $(XTOOLLIB)
+dtfplist_LDADD = @DTCLIENTLIBS@ $(TIRPCLIB) -lXm -lXext $(XTOOLLIB)
+
+if SOLARIS
+dtwm_LDADD += -lintl -lresolv
+dtfplist_LDADD += -lintl -lresolv
+endif
+
+dtwm_SOURCES = WmCDInfo.c      WmCDecor.c      WmCEvent.c \
+               WmCPlace.c      WmColormap.c    WmError.c \
+               WmEvent.c       WmFeedback.c    WmFunction.c \
+               WmGraphics.c    WmIDecor.c      WmIPlace.c \
+               WmIconBox.c     WmImage.c       WmInitWs.c \
+               WmKeyFocus.c    WmMain.c        WmManage.c \
+               WmMenu.c        WmProperty.c    WmProtocol.c \
+               WmResCvt.c      WmResParse.c    WmResource.c \
+               WmSignal.c      WmWinConf.c     WmWinInfo.c \
+               WmWinList.c     WmWinState.c    WmMultiHead.c \
+              Button.c        Callback.c      Clock.c \
+               DataBaseLoad.c  PanelS.c        Parse.c \
+               PopupMenu.c     Session.c       UI.c \
+               WmBackdrop.c    WmFP.c          WmHelp.c \
+               WmIPC.c         WmOL.c          WmParse.c \
+               WmParseP.c      WmPresence.c    WmWrkspace.c \
+               WmXSMP.c
+
+dtfplist_SOURCES = Print.c Parse.c DataBaseLoad.c WmParse.c Session.c
+
+SCRIPTFLAGS = -DCDE_INSTALLATION_TOP=${prefix} \
+              -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
+
+Dtwm.defs: Dtwm.defs.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
+
+sys.dtwmrc: sys.dtwmrc.src
+       $(RM) $@
+       $(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
+
index 8c0b66db94bff393e021defa39c68f9f120e17ce..2b50a9da70527b3447c944256f532286f9b4f9f8 100644 (file)
@@ -44,9 +44,6 @@ header file include flags, and macros (e.g. ABS).
     OLD_CODE
        Vestigal code.
 
-    PORT_NOVFORK
-       Enable for systems that don't have the vfork() call.
-
     R2_COMPAT
        Enables support for old clients that still pass window geometry
        hint information in WM_NORMAL_HINTS.
index af6c7c40ee5e092dc88afe4bcfee485f96b1ea3a..6ed10af8fe2ae2db17463da8f981be76b731f505 100644 (file)
@@ -66,8 +66,6 @@
 #include <langinfo.h>
 #include <stdint.h>
 
-#define MWM_NEED_TIME16
-#include "WmBitmap.h"
 #include "WmHelp.h"
 
 #include "DataBaseLoad.h"
@@ -394,7 +392,6 @@ Initialize (DtPanelShellWidget panel_shell)
 
    Pixmap busy_pixmap;
    Pixmap busy_pixmap_mask;
-   XColor xcolors[2];
 
    Pixel black_pixel = BlackPixelOfScreen (screen);
    Pixel white_pixel = WhitePixelOfScreen (screen);
@@ -410,25 +407,7 @@ Initialize (DtPanelShellWidget panel_shell)
 
    /*  Create busy cursor.  */
 
-   xcolors[0].pixel = black_pixel;
-   xcolors[1].pixel = white_pixel;
-
-   XQueryColors (display, DefaultColormapOfScreen (screen), xcolors, 2);
-   busy_pixmap = 
-      XCreateBitmapFromData (display, RootWindowOfScreen (screen),
-                             (char *)time16_bits, time16_width, time16_height);
-   busy_pixmap_mask = 
-      XCreateBitmapFromData (display, RootWindowOfScreen (screen),
-                             (char *)time16m_bits, time16_width, time16_height);
-
-   panel.busy_cursor = 
-      XCreatePixmapCursor (display, busy_pixmap, busy_pixmap_mask,
-                           &(xcolors[0]), &(xcolors[1]),
-                           time16_x_hot, time16_y_hot);
-
-   XFreePixmap (display, busy_pixmap);
-   XFreePixmap (display, busy_pixmap_mask);
-
+  _DtGetHourGlassCursor(display);
    
    panel.resolution = (int) (intptr_t) panel.element_values[PANEL_RESOLUTION].parsed_value;
 
diff --git a/cde/programs/dtwm/WmBitmap.h b/cde/programs/dtwm/WmBitmap.h
deleted file mode 100644 (file)
index 69a7f56..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
-/* 
- * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
- * ALL RIGHTS RESERVED 
-*/ 
-/* 
- * Motif Release 1.2.3
-*/ 
-/*
- * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
-
-/*
- * Global Variables And Definitions:
- */
-
-/*
- * Define HOURGLASS cursor
- */
-
-#ifdef LARGECURSORS
-#ifdef INTEGRATION_TESTING
-#include "integCursor.h"
-#endif /* INTEGRATION_TESTING */
-
-#define time32_width 32
-#define time32_height 32
-#define time32_x_hot 15
-#define time32_y_hot 15
-static unsigned char time32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0x8c, 0x00, 0x00, 0x31, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32, 0x4c, 0x00, 0x00, 0x32,
-   0x8c, 0x00, 0x00, 0x31, 0x0c, 0x7f, 0xfe, 0x30, 0x0c, 0xfe, 0x7f, 0x30,
-   0x0c, 0xfc, 0x3f, 0x30, 0x0c, 0xf8, 0x1f, 0x30, 0x0c, 0xe0, 0x07, 0x30,
-   0x0c, 0x80, 0x01, 0x30, 0x0c, 0x80, 0x01, 0x30, 0x0c, 0x60, 0x06, 0x30,
-   0x0c, 0x18, 0x18, 0x30, 0x0c, 0x04, 0x20, 0x30, 0x0c, 0x02, 0x40, 0x30,
-   0x0c, 0x01, 0x80, 0x30, 0x8c, 0x00, 0x00, 0x31, 0x4c, 0x80, 0x01, 0x32,
-   0x4c, 0xc0, 0x03, 0x32, 0x4c, 0xf0, 0x1f, 0x32, 0x4c, 0xff, 0xff, 0x32,
-   0xcc, 0xff, 0xff, 0x33, 0x8c, 0xff, 0xff, 0x31, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
-
-#define time32m_width 32
-#define time32m_height 32
-static unsigned char time32m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xcf, 0x00, 0x00, 0xf3, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76, 0x6e, 0x00, 0x00, 0x76,
-   0xce, 0x00, 0x00, 0x73, 0x8e, 0x7f, 0xfe, 0x71, 0x0e, 0xff, 0xff, 0x70,
-   0x0e, 0xfe, 0x7f, 0x70, 0x0e, 0xfc, 0x3f, 0x70, 0x0e, 0xf8, 0x1f, 0x70,
-   0x0e, 0xe0, 0x07, 0x70, 0x0e, 0xe0, 0x07, 0x70, 0x0e, 0x78, 0x1e, 0x70,
-   0x0e, 0x1c, 0x38, 0x70, 0x0e, 0x06, 0x60, 0x70, 0x0e, 0x03, 0xc0, 0x70,
-   0x8e, 0x01, 0x80, 0x71, 0xce, 0x00, 0x00, 0x73, 0x6e, 0x80, 0x01, 0x76,
-   0x6e, 0xc0, 0x03, 0x76, 0x6e, 0xf0, 0x1f, 0x76, 0x6e, 0xff, 0xff, 0x76,
-   0xee, 0xff, 0xff, 0x77, 0xcf, 0xff, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-#endif /* LARGECURSORS */
-
-
-#ifdef MWM_NEED_TIME16
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 16
-#define time16_height 16
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x7f, 0x14, 0x28, 0x14, 0x28, 0x14, 0x28, 0x24, 0x24,
-   0x44, 0x22, 0x84, 0x21, 0x84, 0x21, 0x44, 0x22, 0x24, 0x24, 0x14, 0x28,
-   0x94, 0x29, 0xd4, 0x2b, 0xfe, 0x7f, 0x00, 0x00};
-
-#define time16m_width 16
-#define time16m_height 16
-static unsigned char time16m_bits[] = {
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfe, 0x7f, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff};
-#endif /* MWM_NEED_TIME16 */
-
-
-\f
-/*
- * Define DO NOT ENTER cursor
- */
-
-#ifdef LARGECURSORS
-
-#define noenter32_width 32
-#define noenter32_height 32
-#define noenter32_x_hot 15
-#define noenter32_y_hot 15
-
-static unsigned char noenter32_bits[] = {
-   0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0xfc, 0x3f, 0x00,
-   0x00, 0xff, 0xff, 0x00, 0x80, 0xff, 0xff, 0x01, 0xc0, 0xff, 0xff, 0x03,
-   0xe0, 0xff, 0xff, 0x07, 0xf0, 0xff, 0xff, 0x0f, 0xf8, 0xff, 0xff, 0x1f,
-   0xf8, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
-   0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
-   0x06, 0x00, 0x00, 0x60, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
-   0xf0, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0x03,
-   0x80, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x00, 0x00, 0xfc, 0x3f, 0x00,
-   0x00, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00};
-
-static unsigned char noenter32m_bits[] = {
-   0x00, 0xe0, 0x07, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x00,
-   0x80, 0xff, 0xff, 0x01, 0xc0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x07,
-   0xf0, 0xff, 0xff, 0x0f, 0xf8, 0xff, 0xff, 0x1f, 0xfc, 0xff, 0xff, 0x3f,
-   0xfc, 0xff, 0xff, 0x3f, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
-   0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
-   0xfe, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0x3f,
-   0xf8, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0x07,
-   0xc0, 0xff, 0xff, 0x03, 0x80, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0x00,
-   0x00, 0xfc, 0x3f, 0x00, 0x00, 0xe0, 0x07, 0x00};
-
-#endif /* LARGECURSORS */
-
-#ifdef MWM_NEED_NOENTER16
-#define noenter16_width 16
-#define noenter16_height 16
-#define noenter16_x_hot 7
-#define noenter16_y_hot 7
-
-static unsigned char noenter16_bits[] = {
-   0x00, 0x00, 0xc0, 0x03, 0xf0, 0x0f, 0xf8, 0x1f, 0xfc, 0x3f, 0xfc, 0x3f,
-   0xfe, 0x7f, 0x02, 0x40, 0x02, 0x40, 0xfe, 0x7f, 0xfc, 0x3f, 0xfc, 0x3f,
-   0xf8, 0x1f, 0xf0, 0x0f, 0xc0, 0x03, 0x00, 0x00};
-
-static unsigned char noenter16m_bits[] = {
-   0xc0, 0x03, 0xf0, 0x0f, 0xf8, 0x1f, 0xfc, 0x3f, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xfe, 0x7f,
-   0xfc, 0x3f, 0xf8, 0x1f, 0xf0, 0x0f, 0xc0, 0x03};
-
-#endif /* MWM_NEED_NOENTER16 */
index 7d7df6839eae4153baed09a4dc3b7980de4c0205..c359cf6970bba94d70ac8dbb74252c2153706165 100644 (file)
@@ -36,8 +36,6 @@
 #include "WmGlobal.h"
 #include "WmResNames.h"
 
-#define MWM_NEED_TIME16
-#include "WmBitmap.h"
 #include "WmError.h"
 #include <Xm/Xm.h>
 #include <X11/Shell.h>
@@ -898,8 +896,6 @@ void ConfirmAction (WmScreenData *pSD, int nbr)
 
 void ShowWaitState (Boolean flag)
 {
-    char        *bits;
-    char        *maskBits;
     unsigned int width;
     unsigned int height;
     unsigned int xHotspot;
@@ -908,56 +904,7 @@ void ShowWaitState (Boolean flag)
     Pixmap       maskPixmap;
     XColor       xcolors[2];
 
-    if (!waitCursor)
-    {
-#ifdef LARGECURSORS
-       if (wmGD.useLargeCursors)
-       {
-           width = time32_width;
-           height = time32_height;
-           bits = (char *)time32_bits;
-           maskBits = (char *)time32m_bits;
-           xHotspot = time32_x_hot;
-           yHotspot = time32_y_hot;
-       }
-       else
-#endif /* LARGECURSORS */
-
-       {
-           width = time16_width;
-           height = time16_height;
-           bits = (char *)time16_bits;
-           maskBits = (char *)time16m_bits;
-           xHotspot = time16_x_hot;
-           yHotspot = time16_y_hot;
-       }
-
-        pixmap = XCreateBitmapFromData (DISPLAY, 
-                        DefaultRootWindow(DISPLAY), bits, 
-                        width, height);
-
-        maskPixmap = XCreateBitmapFromData (DISPLAY, 
-                        DefaultRootWindow(DISPLAY), maskBits, 
-                        width, height);
-#ifdef INTEGRATION_TESTING_
-        xcolors[1].pixel = BlackPixelOfScreen(DefaultScreenOfDisplay(DISPLAY));
-        xcolors[0].pixel = WhitePixelOfScreen(DefaultScreenOfDisplay(DISPLAY));
-#else /* INTEGRATION_TESTING */
-
-        xcolors[0].pixel = BlackPixelOfScreen(DefaultScreenOfDisplay(DISPLAY));
-        xcolors[1].pixel = WhitePixelOfScreen(DefaultScreenOfDisplay(DISPLAY));
-
-#endif /* INTEGRATION_TESTING */
-        XQueryColors (DISPLAY, 
-                     DefaultColormapOfScreen(DefaultScreenOfDisplay
-                                             (DISPLAY)), 
-                     xcolors, 2);
-       waitCursor = XCreatePixmapCursor (DISPLAY, pixmap, maskPixmap,
-                                         &(xcolors[0]), &(xcolors[1]),
-                                          xHotspot, yHotspot);
-        XFreePixmap (DISPLAY, pixmap);
-        XFreePixmap (DISPLAY, maskPixmap);
-    }
+   _DtGetHourGlassCursor(DISPLAY);
 
     if (flag)
     {
index 4ab4446e8ad193941cf317ffe7c7b99d3e1568d6..3f52e2c31d8db509bbaad75fcb8b67a05a7b801b 100644 (file)
 #include <Xm/RowColumnP.h> /* for MS_LastManagedMenuTime */
 extern XmMenuState _XmGetMenuState();
 
-extern int putenv ();
-extern char * getenv ();
-#ifndef PORT_NOVFORK
-extern pid_t vfork();
-#endif /* PORT_NOVFORK */
+#if defined(HAVE_CONFIG_H)
+#include <autotools_config.h>
+#endif
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+
+#include <unistd.h>
+#include <stdlib.h>
+
+#if defined(HAVE_VFORK) && defined(HAVE_VFORK_H)
+#include <vfork.h>
+#endif
 
 static unsigned int GetEventInverseMask(XEvent *event);
 
 #if (defined(__linux__) || defined(sun) || defined(CSRG_BASED)) && !defined(_NFILE)
 #define _NFILE FOPEN_MAX
 #endif
+
 #define CLOSE_FILES_ON_EXEC() \
-{int ifx; for (ifx=3; ifx < _NFILE; ifx++) (void) fcntl (ifx, F_SETFD, 1);}
+{int ifx; for (ifx=3; ifx < _NFILE; ifx++) (void) fcntl (ifx, F_SETFD, FD_CLOEXEC);}
 
 /*
  * Global Variables:
@@ -948,10 +958,10 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *event)
      * Fork a process to exec a shell to run the specified command:
      */
 
-#ifdef PORT_NOVFORK
-    if ((pid = fork ()) == 0)
-#else
+#if defined(HAVE_VFORK)
     if ((pid = vfork ()) == 0)
+#else
+    if ((pid = fork ()) == 0)
 #endif
     {
 
index 4978ba62fc410a6a7cc0777ecac7dbb22e558d16..e3971966e351d105e05aab1a8ad63d998f85882a 100644 (file)
@@ -296,29 +296,4 @@ static unsigned char bits6_bits[] = {
    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
 #endif /* DTWM_NEED_BACKBITS */
 
-/*
- *
- *  Used to define the small hourglass and mask used to indicate
- *  a front panel wait state.
- *
- */
-#ifdef DTWM_NEED_TIME16
-#define time16_x_hot 7
-#define time16_y_hot 7
-#define time16_width 14
-#define time16_height 15
-
-static unsigned char time16_bits[] = {
-   0x00, 0x00, 0xfe, 0x1f, 0xfe, 0x1f, 0x04, 0x0c, 0x54, 0x0d, 0xac, 0x0e,
-   0x58, 0x07, 0xb0, 0x03, 0x50, 0x03, 0x08, 0x06, 0x44, 0x0c, 0xa4, 0x0c,
-   0x54, 0x0d, 0xfe, 0x1f, 0xfe, 0x1f};
-
-#define time16m_width 14
-#define time16m_height 15
-static unsigned char time16m_bits[] = {
-   0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0x06, 0x1c, 0xfe, 0x1f, 0xfe, 0x1f,
-   0xfc, 0x0f, 0xf8, 0x07, 0x5c, 0x07, 0x0e, 0x0e, 0x66, 0x0c, 0xf6, 0x1c,
-   0xfe, 0x1f, 0xff, 0x3f, 0xff, 0x3f};
-#endif  /* DTWM_NEED_TIME16 */
-
 /****************************   eof    ***************************/
index e6909c66bbeba3c5efb54042ecdbec8873637373..3269687aee0229b7f283120193a462a59d627799 100644 (file)
 
 #include "WmGlobal.h"
 
-#define MWM_NEED_NOENTER16
-#include "WmBitmap.h"
-
-
 /*
  * include extern functions
  */
 #include "WmWinInfo.h"
 #include "WmWrkspace.h"
 
-
+#include <X11/bitmaps/xm_noenter16>
+#include <X11/bitmaps/xm_noenter16m>
+#include <X11/bitmaps/xm_noenter32>
+#include <X11/bitmaps/xm_noenter32m>
 
 
 /*
diff --git a/cde/programs/fontaliases/Makefile.am b/cde/programs/fontaliases/Makefile.am
new file mode 100644 (file)
index 0000000..04eded0
--- /dev/null
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = bdf
+
+if LINUX
+SUBDIRS += linux
+endif
+
+if SOLARIS
+SUBDIRS += sun
+endif
+
+if FREEBSD
+SUBDIRS += freebsd
+endif
+
+if OPENBSD
+SUBDIRS += openbsd
+endif
+
+if NETBSD
+SUBDIRS += netbsd
+endif
diff --git a/cde/programs/fontaliases/bdf/Makefile.am b/cde/programs/fontaliases/bdf/Makefile.am
new file mode 100644 (file)
index 0000000..30ec3a6
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+DTINFO_FONT = dtinfo.pcf.gz
+noinst_DATA = $(DTINFO_FONT)
+
+BUILT_SOURCES = $(DTINFO_FONT)
+CLEANFILES = $(BUILT_SOURCES)
+
+dtinfo.pcf.gz: dtinfo.bdf
+       $(RM) $@
+       $(BDFTOPCF) -t $< |$(GZIP) > $@
+
diff --git a/cde/programs/fontaliases/bdf/fonts.am b/cde/programs/fontaliases/bdf/fonts.am
new file mode 100644 (file)
index 0000000..6b24150
--- /dev/null
@@ -0,0 +1,15 @@
+# to be included by OS/LANG/Makefile.am's
+
+BUILT_SOURCES = fonts.dir dtinfo.pcf.gz
+CLEANFILES = $(BUILT_SOURCES)
+
+fontdir = $(CDE_INSTALLATION_TOP)/config/xfonts/$(LANG)
+dist_font_DATA = $(BUILT_SOURCES) fonts.alias
+
+dtinfo.pcf.gz: $(top_builddir)/programs/fontaliases/bdf/dtinfo.pcf.gz
+       $(RM) $@
+       $(CP) $< $@
+
+fonts.dir: fonts.alias dtinfo.pcf.gz
+       $(MKFONTDIR) .
+
diff --git a/cde/programs/fontaliases/freebsd/C/Makefile.am b/cde/programs/fontaliases/freebsd/C/Makefile.am
new file mode 100644 (file)
index 0000000..4f27e14
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/C.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/freebsd/Makefile.am b/cde/programs/fontaliases/freebsd/Makefile.am
new file mode 100644 (file)
index 0000000..55d3300
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = C
diff --git a/cde/programs/fontaliases/linux/C/Makefile.am b/cde/programs/fontaliases/linux/C/Makefile.am
new file mode 100644 (file)
index 0000000..4f27e14
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/C.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/linux/Makefile.am b/cde/programs/fontaliases/linux/Makefile.am
new file mode 100644 (file)
index 0000000..e57404b
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = C en_US.UTF-8
diff --git a/cde/programs/fontaliases/linux/en_US.UTF-8/Makefile.am b/cde/programs/fontaliases/linux/en_US.UTF-8/Makefile.am
new file mode 100644 (file)
index 0000000..74092a2
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/English.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/linux/en_US.UTF-8/fonts.dir b/cde/programs/fontaliases/linux/en_US.UTF-8/fonts.dir
deleted file mode 100644 (file)
index 573541a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/cde/programs/fontaliases/netbsd/C/Makefile.am b/cde/programs/fontaliases/netbsd/C/Makefile.am
new file mode 100644 (file)
index 0000000..4f27e14
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/C.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/netbsd/Makefile.am b/cde/programs/fontaliases/netbsd/Makefile.am
new file mode 100644 (file)
index 0000000..55d3300
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = C
diff --git a/cde/programs/fontaliases/openbsd/C/Makefile.am b/cde/programs/fontaliases/openbsd/C/Makefile.am
new file mode 100644 (file)
index 0000000..4f27e14
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/C.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/openbsd/Makefile.am b/cde/programs/fontaliases/openbsd/Makefile.am
new file mode 100644 (file)
index 0000000..55d3300
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = C
diff --git a/cde/programs/fontaliases/sun/C/Makefile.am b/cde/programs/fontaliases/sun/C/Makefile.am
new file mode 100644 (file)
index 0000000..4f27e14
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../../localized/templates/C.am
+include ../../bdf/fonts.am
+
diff --git a/cde/programs/fontaliases/sun/Makefile.am b/cde/programs/fontaliases/sun/Makefile.am
new file mode 100644 (file)
index 0000000..55d3300
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = C
diff --git a/cde/programs/icons/Makefile.am b/cde/programs/icons/Makefile.am
new file mode 100644 (file)
index 0000000..18ae634
--- /dev/null
@@ -0,0 +1,851 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+icondir = $(CDE_INSTALLATION_TOP)/appconfig/icons/C
+
+dist_icon_DATA = \
+acroread.l.pm                   Dtmanpg.t.pm \
+acroread.m.pm                   Dtmanvw.m.bm \
+acroread.t.pm                   Dtmanvw.m_m.bm \
+amarok.l.pm                     Dtmanvw.m.pm \
+amarok.m.pm                     Dtmanvw.t.bm \
+amarok.t.pm                     Dtmanvw.t_m.bm \
+bomb                            Dtmanvw.t.pm \
+bomb16                          DtMa.pm \
+bomb16m                         DtMdl.l.bm \
+bomb32                          DtMdl.l_m.bm \
+bomb32m                         DtMdl.l.pm \
+bombm                           DtMdl.m.bm \
+brasero.l.pm                    DtMdl.m_m.bm \
+brasero.m.pm                    DtMdl.m.pm \
+brasero.t.pm                    DtMdl.t.bm \
+browse_ins.xbm                  DtMdl.t_m.bm \
+browse.xbm                      DtMdl.t.pm \
+caja.l.pm                       Dtmime.m.bm \
+caja.m.pm                       Dtmime.m_m.bm \
+caja.t.pm                       Dtmime.m.pm \
+camera.l.pm                     Dtmime.t.bm \
+camera.m.pm                     Dtmime.t_m.bm \
+camera.t.pm                     Dtmime.t.pm \
+chrome.l.pm                     Dtminus.m.pm \
+chrome.m.pm                     DtMmsg.l.bm \
+chrome.t.pm                     DtMmsg.l_m.bm \
+default.xpm                     DtMmsg.l.pm \
+deiconify.xbm                   DtMmsg.m.bm \
+detached.xpm                    DtMmsg.m_m.bm \
+dia.l.pm                        DtMmsg.m.pm \
+dia.m.pm                        DtMmsg.t.bm \
+dia.t.pm                        DtMmsg.t_m.bm \
+dreamchess.l.pm                 DtMmsg.t.pm \
+dreamchess.m.pm                 DtMnew.l.bm \
+dreamchess.t.pm                 DtMnew.l_m.bm \
+DtABa0.m.bm                     DtMnew.l.pm \
+DtABabf.m.bm                    DtMnew.m.bm \
+DtABabF.m.bm                    DtMnew.m_m.bm \
+DtABabp.m.bm                    DtMnew.m.pm \
+DtABabw.m.bm                    DtMnew.t.bm \
+DtABabW.m.bm                    DtMnew.t_m.bm \
+DtABalb.m.bm                    DtMnew.t.pm \
+DtABalc.m.bm                    DtMnone.l.bm \
+DtABalf.m.bm                    DtMnone.l_m.bm \
+DtABalF.m.bm                    DtMnone.l.pm \
+DtABalg.m.bm                    DtMnone.m.bm \
+DtABalH.m.bm                    DtMnone.m_m.bm \
+DtABall.m.bm                    DtMnone.m.pm \
+DtABalL.m.bm                    DtMnone.t.bm \
+DtABalp.m.bm                    DtMnone.t_m.bm \
+DtABalr.m.bm                    DtMnone.t.pm \
+DtABalt.m.bm                    DtMouse.bm \
+DtABalV.m.bm                    DtMouse_m.bm \
+DtABalw.m.bm                    DtMouse.pm \
+DtABalW.m.bm                    Dtmpeg.m.bm \
+DtABarf.m.bm                    Dtmpeg.m_m.bm \
+DtABarF.m.bm                    Dtmpeg.m.pm \
+DtABarp.m.bm                    Dtmpeg.t.bm \
+DtABarw.m.bm                    Dtmpeg.t_m.bm \
+DtABarW.m.bm                    Dtmpeg.t.pm \
+DtABatc.m.bm                    DtMrfc.l.bm \
+DtABatf.m.bm                    DtMrfc.l_m.bm \
+DtABatF.m.bm                    DtMrfc.l.pm \
+DtABatp.m.bm                    DtMrfc.m.bm \
+DtABatw.m.bm                    DtMrfc.m_m.bm \
+DtABatW.m.bm                    DtMrfc.m.pm \
+DtABbil.l.bm                    DtMrfc.t.bm \
+DtABbil.l_m.bm                  DtMrfc.t_m.bm \
+DtABbil.l.pm                    DtMrfc.t.pm \
+DtABbil.m.bm                    Dtms2B.bm \
+DtABbil.m_m.bm                  Dtms2BR.bm \
+DtABbil.m.pm                    Dtms3B.bm \
+DtABbil.t.bm                    Dtms3BR.bm \
+DtABbil.t_m.bm                  Dtnopr.l.bm \
+DtABbil.t.pm                    Dtnopr.l_m.bm \
+DtABbip.l.bm                    Dtnopr.l.pm \
+DtABbip.l_m.bm                  Dtnopr.m.bm \
+DtABbip.l.pm                    Dtnopr.m_m.bm \
+DtABbip.m.bm                    Dtnopr.m.pm \
+DtABbip.m_m.bm                  DtOffice.l.pm \
+DtABbip.m.pm                    DtOffice.m.pm \
+DtABbip.t.bm                    DtOffice.t.pm \
+DtABbip.t_m.bm                  Dtpaint.l.bm \
+DtABbip.t.pm                    Dtpaint.l_m.bm \
+DtABbix.l.bm                    Dtpaint.l.pm \
+DtABbix.l_m.bm                  Dtpaint.m.bm \
+DtABbix.l.pm                    Dtpaint.m_m.bm \
+DtABbix.m.bm                    Dtpaint.m.pm \
+DtABbix.m_m.bm                  Dtpaint.t.bm \
+DtABbix.m.pm                    Dtpaint.t_m.bm \
+DtABbix.t.bm                    Dtpaint.t.pm \
+DtABbix.t_m.bm                  Dtpcl.m.bm \
+DtABbix.t.pm                    Dtpcl.m_m.bm \
+DtABbrw.m.bm                    Dtpcl.m.pm \
+DtABbrw.m_m.bm                  Dtpcl.t.bm \
+DtABbrw.m.pm                    Dtpcl.t_m.bm \
+DtABbrw.t.pm                    Dtpcl.t.pm \
+DtABbtn.bm                      Dtpenpd.l.bm \
+DtABbtn.pm                      Dtpenpd.l_m.bm \
+DtABbw2.bm                      Dtpenpd.l.pm \
+DtABbw2.pm                      Dtpenpd.m.bm \
+DtABbw.bm                       Dtpenpd.m_m.bm \
+DtABbw.pm                       Dtpenpd.m.pm \
+DtABcas.bm                      Dtpenpd.t.bm \
+DtABcas.pm                      Dtpenpd.t_m.bm \
+DtABccp.t.bm                    Dtpenpd.t.pm \
+DtABchk.bm                      Dtpixmp.m.bm \
+DtABchk.pm                      Dtpixmp.m_m.bm \
+DtABcmb.bm                      Dtpixmp.m.pm \
+DtABcmb.pm                      Dtpixmp.t.bm \
+DtABcmv.t.bm                    Dtpixmp.t_m.bm \
+DtABcnt2.bm                     Dtpixmp.t.pm \
+DtABcnt2.pm                     Dtplus.m.pm \
+DtABcnt.bm                      Dtprint.m.bm \
+DtABcnt.pm                      Dtprint.m_m.bm \
+DtABdfl.bm                      Dtprint.m.pm \
+DtABdfl.pm                      Dtprint.t.bm \
+DtABdhc.m.bm                    Dtprint.t_m.bm \
+DtABdh.m.bm                     Dtprint.t.pm \
+DtABdrw2.bm                     DtPrtjb.m.bm \
+DtABdrw2.pm                     DtPrtjb.m_m.bm \
+DtABdrw.bm                      DtPrtjb.m.pm \
+DtABdrw.pm                      DtPrtjb.t.bm \
+DtABdvc.m.bm                    DtPrtjb.t_m.bm \
+DtABdv.m.bm                     DtPrtjb.t.pm \
+DtABfsb2.bm                     DtPrtmg.l.bm \
+DtABfsb2.pm                     DtPrtmg.l_m.bm \
+DtABfsb.bm                      DtPrtmg.l.pm \
+DtABfsb.pm                      DtPrtmg.m.bm \
+DtABgai.m.bm                    DtPrtmg.m_m.bm \
+DtABgau.bm                      DtPrtmg.m.pm \
+DtABgau.pm                      DtPrtmg.t.bm \
+DtABgco.m.bm                    DtPrtmg.t_m.bm \
+DtABgrc.m.bm                    DtPrtmg.t.pm \
+DtABgro.m.bm                    DtPrtpr.m.bm \
+DtABgrp.bm                      DtPrtpr.m_m.bm \
+DtABgrp.pm                      DtPrtpr.m.pm \
+DtABitm.bm                      DtPrtpr.t.bm \
+DtABitm.pm                      DtPrtpr.t_m.bm \
+DtABlbl.bm                      DtPrtpr.t.pm \
+DtABlbl.pm                      DtPrtun.l.bm \
+DtABlll.t.bm                    DtPrtun.l_m.bm \
+DtABllr.t.bm                    DtPrtun.l.pm \
+Dtablnk.l.pm                    DtPrtun.m.bm \
+Dtablnk.m.bm                    DtPrtun.m_m.bm \
+Dtablnk.m_m.bm                  DtPrtun.m.pm \
+Dtablnk.m.pm                    DtPrtun.t.bm \
+Dtablnk.t.bm                    DtPrtun.t_m.bm \
+Dtablnk.t_m.bm                  DtPrtun.t.pm \
+Dtablnk.t.pm                    Dtps.m.bm \
+DtABlst.bm                      Dtps.m_m.bm \
+DtABlst.pm                      Dtps.m.pm \
+DtABlul.t.bm                    Dtps.t.bm \
+DtABlur.t.bm                    Dtps.t_m.bm \
+DtABlyr.bm                      Dtps.t.pm \
+DtABlyr.pm                      Dtqinfo.l.bm \
+DtABmbr.bm                      Dtqinfo.l_m.bm \
+DtABmbr.pm                      Dtqinfo.l.pm \
+DtABmbt.bm                      Dtras.m.bm \
+DtABmbt.pm                      Dtras.m_m.bm \
+DtABmbx.bm                      Dtras.m.pm \
+DtABmbx.pm                      Dtras.t.bm \
+DtABmdl.bm                      Dtras.t_m.bm \
+DtABmdl.pm                      Dtras.t.pm \
+DtABmer.m.bm                    DtRdMe.m.bm \
+DtABmin.m.bm                    DtRdMe.m_m.bm \
+DtABmqs.m.bm                    DtRdMe.m.pm \
+DtABmwk.m.bm                    DtRdMe.t.bm \
+DtABmwn.m.bm                    DtRdMe.t_m.bm \
+DtABopm.bm                      DtRdMe.t.pm \
+DtABopm.pm                      Dtrunpn.l.bm \
+DtABpnw.bm                      Dtrunpn.l_m.bm \
+DtABpnw.pm                      Dtrunpn.l.pm \
+DtABpum.bm                      Dtrunpn.m.bm \
+DtABpum.pm                      Dtrunpn.m_m.bm \
+DtABpuw2.bm                     Dtrunpn.m.pm \
+DtABpuw2.pm                     Dtrunpn.t.bm \
+DtABpuw.bm                      Dtrunpn.t_m.bm \
+DtABpuw.pm                      Dtrunpn.t.pm \
+DtABrad.bm                      Dtsatur.bm \
+DtABrad.pm                      Dtscope_editor.l.pm \
+DtABsep.bm                      Dtscope_editor.m.pm \
+DtABsep.pm                      DtScrn.bm \
+DtABsld.bm                      DtScrn_m.bm \
+DtABsld.pm                      DtScrn.pm \
+DtABspb.bm                      Dtsectnexti.m.pm \
+DtABspb.pm                      Dtsectnext.m.pm \
+DtABtmp2.bm                     Dtsectprevi.m.pm \
+DtABtmp2.pm                     Dtsectprev.m.pm \
+DtABtmp.bm                      Dtshar.m.bm \
+DtABtmp.pm                      Dtshar.m_m.bm \
+DtABtxf.bm                      Dtshar.m.pm \
+DtABtxf.pm                      Dtshar.t.bm \
+DtABtxp2.bm                     Dtshar.t_m.bm \
+DtABtxp2.pm                     Dtshar.t.pm \
+DtABtxp.bm                      Dtshell.m.bm \
+DtABtxp.pm                      Dtshell.m_m.bm \
+Dtactn.l.bm                     Dtshell.m.pm \
+Dtactn.l_m.bm                   Dtshell.st.bm \
+Dtactn.l.pm                     Dtshell.st_m.bm \
+Dtactn.m.bm                     Dtshell.t.bm \
+Dtactn.m_m.bm                   Dtshell.t_m.bm \
+Dtactn.m.pm                     Dtshell.t.pm \
+Dtactn.t.bm                     Dtsprds.m.bm \
+Dtactn.t_m.bm                   Dtsprds.m_m.bm \
+Dtactn.t.pm                     Dtsprds.m.pm \
+Dtadskt.l.bm                    Dtsprds.t.bm \
+Dtadskt.l_m.bm                  Dtsprds.t_m.bm \
+Dtadskt.l.pm                    Dtsprds.t.pm \
+Dtadskt.m.bm                    Dtsrch.l.bm \
+Dtadskt.m_m.bm                  Dtsrch.l_m.bm \
+Dtadskt.m.pm                    Dtsrch.l.pm \
+Dtadskt.t.bm                    Dtsrchnexti.m.pm \
+Dtadskt.t_m.bm                  Dtsrchnext.m.pm \
+Dtadskt.t.pm                    Dtsrchprevi.m.pm \
+Dtaexag.m.pm                    Dtsrchprev.m.pm \
+Dtaexbx.m.bm                    DtStart.bm \
+Dtaexbx.m_m.bm                  DtStart_m.bm \
+Dtaexbx.m.pm                    DtStart.pm \
+Dtaexbx.t.bm                    Dtstyle.l.bm \
+Dtaexbx.t_m.bm                  Dtstyle.l.pm \
+Dtaexbx.t.pm                    Dtstyle.m.bm \
+Dtaexe.m.pm                     Dtstyle.m_m.bm \
+Dtaexex.l.bm                    Dtstyle.m.pm \
+Dtaexex.l.pm                    Dtstyle.t.bm \
+Dtaexex.m.bm                    Dtstyle.t_m.bm \
+Dtaexex.m.pm                    Dtstyle.t.pm \
+Dtaexex.t.bm                    DtSystem.l.pm \
+Dtaexex.t.pm                    DtSystem.m.pm \
+Dtaexfl.m.bm                    DtSystem.t.pm \
+Dtaexfl.m_m.bm                  Dtterm.l.bm \
+Dtaexfl.m.pm                    Dtterm.l_m.bm \
+Dtaexfl.t.bm                    Dtterm.l.pm \
+Dtaexfl.t_m.bm                  Dtterm.m.bm \
+Dtaexfl.t.pm                    Dtterm.m_m.bm \
+Dtaextm.m.pm                    Dtterm.m.pm \
+Dtagen.l.bm                     Dtterm.t.bm \
+Dtagen.l_m.bm                   Dtterm.t_m.bm \
+Dtagen.l.pm                     Dtterm.t.pm \
+Dtagen.m.bm                     Dttif.m.bm \
+Dtagen.m_m.bm                   Dttif.m_m.bm \
+Dtagen.m.pm                     Dttif.m.pm \
+Dtagen.t.bm                     Dttif.t.bm \
+Dtagen.t_m.bm                   Dttif.t_m.bm \
+Dtagen.t.pm                     Dttif.t.pm \
+Dtagup.m.bm                     Dttrsh.m.bm \
+Dtagup.m_m.bm                   Dttrsh.m_m.bm \
+Dtagup.m.pm                     Dttrsh.m.pm \
+Dtagup.t.bm                     Dttrsh.t.bm \
+Dtagup.t_m.bm                   Dttrsh.t_m.bm \
+Dtagup.t.pm                     Dttrsh.t.pm \
+Dtainfo.l.bm                    Dttvbth.l.bm \
+Dtainfo.l_m.bm                  Dttvbth.l.pm \
+Dtainfo.l.pm                    Dttvbth.m.bm \
+Dtainfo.m.bm                    Dttvbth.m.pm \
+Dtainfo.m_m.bm                  Dttvbth.s.bm \
+Dtainfo.m.pm                    Dttvbth.s.pm \
+Dtainfo.t.bm                    Dttvemp.l.bm \
+Dtainfo.t_m.bm                  Dttvemp.l.pm \
+Dtainfo.t.pm                    Dttvemp.m.bm \
+Dtapplications-multimedia.l.pm  Dttvemp.m.pm \
+Dtapplications-multimedia.m.pm  Dttvemp.s.bm \
+Dtapplications-multimedia.t.pm  Dttvemp.s.pm \
+Dtapps.l.bm                     Dttverr.l.bm \
+Dtapps.l_m.bm                   Dttverr.l.pm \
+Dtapps.l.pm                     Dttverr.m.bm \
+Dtapps.m.bm                     Dttverr.m.pm \
+Dtapps.m_m.bm                   Dttverr.s.bm \
+Dtapps.m.pm                     Dttverr.s.pm \
+Dtapps.t.bm                     Dttvlss.l.bm \
+Dtapps.t_m.bm                   Dttvlss.l.pm \
+Dtapps.t.pm                     Dttvlss.m.bm \
+Dtaprnt.m.bm                    Dttvlss.m.pm \
+Dtaprnt.m_m.bm                  Dttvlss.s.bm \
+Dtaprnt.m.pm                    Dttvlss.s.pm \
+Dtaprnt.t.bm                    Dttvmor.l.bm \
+Dtaprnt.t_m.bm                  Dttvmor.l.pm \
+Dtaprnt.t.pm                    Dttvmor.m.bm \
+Dtassem.m.bm                    Dttvmor.m.pm \
+Dtassem.m_m.bm                  Dttvmor.s.bm \
+Dtassem.m.pm                    Dttvmor.s.pm \
+Dtassem.t.bm                    Dttvnil.l.bm \
+Dtassem.t_m.bm                  Dttvnil.l.pm \
+Dtassem.t.pm                    Dttvnil.m.bm \
+Dtasys.l.bm                     Dttvnil.m.pm \
+Dtasys.l_m.bm                   Dttvnil.s.bm \
+Dtasys.l.pm                     Dttvnil.s.pm \
+Dtasys.m.bm                     Dttvnor.l.bm \
+Dtasys.m_m.bm                   Dttvnor.l.pm \
+Dtasys.m.pm                     Dttvnor.m.bm \
+Dtasys.t.bm                     Dttvnor.m.pm \
+Dtasys.t_m.bm                   Dttvnor.s.bm \
+Dtasys.t.pm                     Dttvnor.s.pm \
+Dtaudio.m.bm                    Dtuil.m.bm \
+Dtaudio.m_m.bm                  Dtuil.m_m.bm \
+Dtaudio.m.pm                    Dtuil.m.pm \
+Dtaudio.t.bm                    Dtuil.t.bm \
+Dtaudio.t_m.bm                  Dtuil.t_m.bm \
+Dtaudio.t.pm                    Dtuil.t.pm \
+Dtautil.l.bm                    Dtuuncd.m.bm \
+Dtautil.l_m.bm                  Dtuuncd.m_m.bm \
+Dtautil.l.pm                    Dtuuncd.m.pm \
+Dtautil.m.bm                    Dtuuncd.t.bm \
+Dtautil.m_m.bm                  Dtuuncd.t_m.bm \
+Dtautil.m.pm                    Dtuuncd.t.pm \
+Dtautil.t.bm                    Dtvalue.bm \
+Dtautil.t_m.bm                  Dtviewi.m.pm \
+Dtautil.t.pm                    Dtview.l.bm \
+DtBeep.bm                       Dtview.l_m.bm \
+DtBeep_m.bm                     Dtview.l.pm \
+DtBeep.pm                       Dtview.m.pm \
+DtBento.l.bm                    Dtxwd.m.bm \
+DtBento.l_m.bm                  Dtxwd.m_m.bm \
+DtBento.l.pm                    Dtxwd.m.pm \
+DtBento.m.bm                    Dtxwd.t.bm \
+DtBento.m_m.bm                  Dtxwd.t_m.bm \
+DtBento.m.pm                    Dtxwd.t.pm \
+DtBento.t.bm                    dvi.l.pm \
+DtBento.t_m.bm                  dvi.m.pm \
+DtBento.t.pm                    dvi.t.pm \
+DtbigM.m.bm                     eboard.l.pm \
+DtbigM.m_m.bm                   eboard.m.pm \
+DtbigM.m.pm                     eboard.t.pm \
+DtbigM.t.bm                     emacs.l.pm \
+DtbigM.t_m.bm                   emacs.m.pm \
+DtbigM.t.pm                     emacs.t.pm \
+Dtbin.m.bm                      engrampa.l.pm \
+Dtbinml.m.bm                    engrampa.m.pm \
+Dtbinml.m_m.bm                  engrampa.t.pm \
+Dtbinml.m.pm                    eom.l.pm \
+Dtbinml.t.bm                    eom.m.pm \
+Dtbinml.t_m.bm                  eom.t.pm \
+Dtbinml.t.pm                    file-roller.l.pm \
+Dtbin.m_m.bm                    file-roller.m.pm \
+Dtbin.m.pm                      file-roller.t.pm \
+Dtbin.t.bm                      firefox.l.pm \
+Dtbin.t_m.bm                    firefox.m.pm \
+Dtbin.t.pm                      firefox.t.pm \
+Dtbitmp.m.bm                    firestarter.l.pm \
+Dtbitmp.m_m.bm                  firestarter.m.pm \
+Dtbitmp.m.pm                    firestarter.t.pm \
+Dtbitmp.t.bm                    fontforge.l.pm \
+Dtbitmp.t_m.bm                  fontforge.m.pm \
+Dtbitmp.t.pm                    fontforge.t.pm \
+DtBkdrp.bm                      Fpapps.l.bm \
+DtBkdrp_m.bm                    Fpapps.l_m.bm \
+DtBkdrp.pm                      Fpapps.l.pm \
+DtBldrA.bm                      Fpapps.m.bm \
+DtBldrA_m.bm                    Fpapps.m_m.bm \
+DtBldrA.pm                      Fpapps.m.pm \
+DtBldr.l.bm                     Fpapps.t.bm \
+DtBldr.l_m.bm                   Fpapps.t_m.bm \
+DtBldr.l.pm                     Fpapps.t.pm \
+DtBldr.m.bm                     Fpblank.l.pm \
+DtBldr.m_m.bm                   Fpblank.m.pm \
+DtBldr.m.pm                     FpblnkA.l.pm \
+DtBldr.t.bm                     FpblnkA.m.pm \
+DtBldr.t_m.bm                   FpblnkS.s.pm \
+DtBldr.t.pm                     FpblnkS.t.pm \
+Dtblink.l.bm                    Fpclock.l.bm \
+Dtblink.l_m.bm                  Fpclock.l_m.bm \
+Dtblink.l.pm                    Fpclock.l.pm \
+Dtblink.m.bm                    Fpclock.m.bm \
+Dtblink.m_m.bm                  Fpclock.m_m.bm \
+Dtblink.m.pm                    Fpclock.m.pm \
+Dtblink.t.bm                    FpCM.l.bm \
+Dtblink.t_m.bm                  FpCM.l_m.bm \
+Dtblink.t.pm                    FpCM.l.pm \
+Dtbmarki.m.pm                   FpCM.m.bm \
+Dtbmark.l.bm                    FpCM.m_m.bm \
+Dtbmark.l_m.bm                  FpCM.m.pm \
+Dtbmark.l.pm                    Fpdown.l.bm \
+Dtbmark.m.pm                    Fpdown.l_m.bm \
+Dtbooklst.m.pm                  Fpdown.l.pm \
+Dtbshll.m.bm                    Fpdown.m.bm \
+Dtbshll.m_m.bm                  Fpdown.m_m.bm \
+Dtbshll.m.pm                    Fpdown.m.pm \
+Dtbshll.t.bm                    FpdownY.l.bm \
+Dtbshll.t_m.bm                  FpdownY.l_m.bm \
+Dtbshll.t.pm                    FpdownY.l.pm \
+Dtcalc.l.bm                     FpdownY.m.bm \
+Dtcalc.l_m.bm                   FpdownY.m_m.bm \
+Dtcalc.l.pm                     FpdownY.m.pm \
+Dtcalc.m.bm                     Fpdropz.m.bm \
+Dtcalc.m_m.bm                   Fpdropz.m_m.bm \
+Dtcalc.m.pm                     Fpdropz.m.pm \
+Dtcalc.t.bm                     Fpdropz.t.bm \
+Dtcalc.t_m.bm                   Fpdropz.t_m.bm \
+Dtcalc.t.pm                     Fpdropz.t.pm \
+Dtcat.m.bm                      Fpexit.s.bm \
+Dtcat.m_m.bm                    Fpexit.s_m.bm \
+Dtcat.m.pm                      Fpexit.s.pm \
+Dtcat.t.bm                      Fpexit.t.bm \
+Dtcat.t_m.bm                    Fpexit.t_m.bm \
+Dtcat.t.pm                      Fpexit.t.pm \
+Dtclock.m.bm                    Fpfphlp.l.bm \
+Dtclock.m_m.bm                  Fpfphlp.l_m.bm \
+Dtclock.m.pm                    Fpfphlp.l.pm \
+Dtclock.t.bm                    Fpfphlp.m.bm \
+Dtclock.t_m.bm                  Fpfphlp.m_m.bm \
+Dtclock.t.pm                    Fpfphlp.m.pm \
+DtCMa.bm                        Fpfpmin.l.bm \
+DtCMa_m.bm                      Fpfpmin.l.pm \
+DtCMa.pm                        Fpfpmin.m.bm \
+DtCMapt.l.bm                    Fpfpmin.m.pm \
+DtCMapt.l_m.bm                  Fphandl.l.bm \
+DtCMapt.l.pm                    Fphandl.l.pm \
+DtCMapt.m.bm                    Fphelp.l.bm \
+DtCMapt.m_m.bm                  Fphelp.l_m.bm \
+DtCMapt.m.pm                    Fphelp.l.pm \
+DtCMapt.s.bm                    Fphelp.m.bm \
+DtCMapt.s_m.bm                  Fphelp.m_m.bm \
+DtCMapt.s.pm                    Fphelp.m.pm \
+DtCMapt.t.bm                    Fphome.l.bm \
+DtCMapt.t_m.bm                  Fphome.l_m.bm \
+DtCMapt.t.pm                    Fphome.l.pm \
+DtCMark.l.bm                    Fphome.m.bm \
+DtCMark.l_m.bm                  Fphome.m_m.bm \
+DtCMark.l.pm                    Fphome.m.pm \
+DtCMark.m.bm                    Fpindc.m.bm \
+DtCMark.m_m.bm                  Fpindc.m_m.bm \
+DtCMark.m.pm                    Fpindc.m.pm \
+DtCMark.t.bm                    Fpindc.t.bm \
+DtCMark.t_m.bm                  Fpindc.t_m.bm \
+DtCMark.t.pm                    Fpindc.t.pm \
+DtC++.m.bm                      FpindcY.m.bm \
+DtCMday.m.pm                    FpindcY.m_m.bm \
+DtCMday.s.bm                    FpindcY.m.pm \
+DtCMday.s_m.bm                  FpindcY.t.bm \
+DtCMday.s.pm                    FpindcY.t_m.bm \
+DtCMdnd.m.pm                    FpindcY.t.pm \
+DtCM.l.bm                       Fplite.s.bm \
+DtCM.l_m.bm                     Fplite.s_m.bm \
+DtCM.l.pm                       Fplite.s.pm \
+DtC++.m_m.bm                    Fplite.t.bm \
+DtCM.m.bm                       Fplite.t_m.bm \
+DtCM.m_m.bm                     Fplite.t.pm \
+DtCM.m.pm                       FpliteY.s.bm \
+DtCMmth.m.pm                    FpliteY.s_m.bm \
+DtCMmth.s.bm                    FpliteY.s.pm \
+DtCMmth.s_m.bm                  FpliteY.t.bm \
+DtCMmth.s.pm                    FpliteY.t_m.bm \
+DtC++.m.pm                      FpliteY.t.pm \
+Dtcmprs.m.bm                    Fplock.s.bm \
+Dtcmprs.m_m.bm                  Fplock.s_m.bm \
+Dtcmprs.m.pm                    Fplock.s.pm \
+Dtcmprs.t.bm                    Fplock.t.bm \
+Dtcmprs.t_m.bm                  Fplock.t_m.bm \
+Dtcmprs.t.pm                    Fplock.t.pm \
+DtCM.t.bm                       Fpmenu.l.bm \
+DtCMtdo.l.bm                    Fpmenu.l.pm \
+DtCMtdo.l_m.bm                  Fpmenu.m.bm \
+DtCMtdo.l.pm                    Fpmenu.m.pm \
+DtCMtdo.m.bm                    FpmenuY.l.bm \
+DtCMtdo.m_m.bm                  FpmenuY.l.pm \
+DtCMtdo.m.pm                    FpmenuY.m.bm \
+DtCMtdo.s.bm                    FpmenuY.m.pm \
+DtCMtdo.s_m.bm                  Fpmin.l.bm \
+DtCMtdo.s.pm                    Fpmin.l.pm \
+DtCMtdo.t.bm                    Fpmin.m.bm \
+DtCMtdo.t_m.bm                  Fpmin.m.pm \
+DtCMtdo.t.pm                    FpminY.l.bm \
+DtCM.t_m.bm                     FpminY.l.pm \
+DtCM.t.pm                       FpminY.m.bm \
+DtCMwk.m.pm                     FpminY.m.pm \
+DtCMwk.s.bm                     Fppenpd.l.bm \
+DtCMwk.s_m.bm                   Fppenpd.l_m.bm \
+DtCMwk.s.pm                     Fppenpd.l.pm \
+DtCMyr.m.pm                     Fppenpd.m.bm \
+DtCMyr.s.bm                     Fppenpd.m_m.bm \
+DtCMyr.s_m.bm                   Fppenpd.m.pm \
+DtCMyr.s.pm                     Fpprnt1.l.bm \
+DtColor.bm                      Fpprnt1.l_m.bm \
+DtColor_m.bm                    Fpprnt1.l.pm \
+DtColor.pm                      Fpprnt1.m.bm \
+Dtcore.m.bm                     Fpprnt1.m_m.bm \
+Dtcore.m_m.bm                   Fpprnt1.m.pm \
+Dtcore.m.pm                     Fpprnt2.l.bm \
+Dtcore.t.bm                     Fpprnt2.l_m.bm \
+Dtcore.t_m.bm                   Fpprnt2.l.pm \
+Dtcore.t.pm                     Fpprnt2.m.bm \
+Dtcshll.m.bm                    Fpprnt2.m_m.bm \
+Dtcshll.m_m.bm                  Fpprnt2.m.pm \
+Dtcshll.m.pm                    Fpprnt3.l.bm \
+Dtcshll.t.bm                    Fpprnt3.l_m.bm \
+Dtcshll.t_m.bm                  Fpprnt3.l.pm \
+Dtcshll.t.pm                    Fpprnt3.m.bm \
+DtC++.t.bm                      Fpprnt3.m_m.bm \
+DtC++.t_m.bm                    Fpprnt3.m.pm \
+DtC++.t.pm                      Fpprnt4.l.bm \
+Dtdata.l.pm                     Fpprnt4.l_m.bm \
+Dtdata.m.bm                     Fpprnt4.l.pm \
+Dtdata.m_m.bm                   Fpprnt4.m.bm \
+Dtdata.m.pm                     Fpprnt4.m_m.bm \
+Dtdata.s.pm                     Fpprnt4.m.pm \
+Dtdata.t.bm                     Fpprnt5.l.bm \
+Dtdata.t_m.bm                   Fpprnt5.l_m.bm \
+Dtdata.t.pm                     Fpprnt5.l.pm \
+Dtdate.m.bm                     Fpprnt5.m.bm \
+Dtdate.m_m.bm                   Fpprnt5.m_m.bm \
+Dtdate.m.pm                     Fpprnt5.m.pm \
+Dtdate.t.bm                     Fpprnt6.l.bm \
+Dtdate.t_m.bm                   Fpprnt6.l_m.bm \
+Dtdate.t.pm                     Fpprnt6.l.pm \
+Dtdeflt.l.bm                    Fpprnt6.m.bm \
+Dtdeflt.l_m.bm                  Fpprnt6.m_m.bm \
+Dtdeflt.l.pm                    Fpprnt6.m.pm \
+Dtdeflt.m.bm                    Fpprnt7.l.bm \
+Dtdeflt.m_m.bm                  Fpprnt7.l_m.bm \
+Dtdeflt.m.pm                    Fpprnt7.l.pm \
+Dtdeflt.t.bm                    Fpprnt7.m.bm \
+Dtdeflt.t_m.bm                  Fpprnt7.m_m.bm \
+Dtdeflt.t.pm                    Fpprnt7.m.pm \
+Dtdetachi.m.pm                  Fpprnt8.l.bm \
+Dtdetach.l.bm                   Fpprnt8.l_m.bm \
+Dtdetach.l_m.bm                 Fpprnt8.l.pm \
+Dtdetach.l.pm                   Fpprnt8.m.bm \
+Dtdetach.m.pm                   Fpprnt8.m_m.bm \
+Dtdgclk.m.bm                    Fpprnt8.m.pm \
+Dtdgclk.m.pm                    Fpprnt9.l.bm \
+Dtdgclk.t.bm                    Fpprnt9.l_m.bm \
+Dtdgclk.t.pm                    Fpprnt9.l.pm \
+DtdirB.m.bm                     Fpprnt9.m.bm \
+DtdirB.m_m.bm                   Fpprnt9.m_m.bm \
+DtdirB.m.pm                     Fpprnt9.m.pm \
+DtdirB.t.bm                     FpprntA.l.bm \
+DtdirB.t_m.bm                   FpprntA.l_m.bm \
+DtdirB.t.pm                     FpprntA.l.pm \
+Dtdirlk.l.bm                    FpprntA.m.bm \
+Dtdirlk.l_m.bm                  FpprntA.m_m.bm \
+Dtdirlk.l.pm                    FpprntA.m.pm \
+Dtdirlk.m.bm                    FpprntB.l.bm \
+Dtdirlk.m_m.bm                  FpprntB.l_m.bm \
+Dtdirlk.m.pm                    FpprntB.l.pm \
+Dtdirlk.t.bm                    FpprntB.m.bm \
+Dtdirlk.t_m.bm                  FpprntB.m_m.bm \
+Dtdirlk.t.pm                    FpprntB.m.pm \
+Dtdirnw.l.bm                    Fpprnt.l.bm \
+Dtdirnw.l_m.bm                  Fpprnt.l_m.bm \
+Dtdirnw.l.pm                    Fpprnt.l.pm \
+Dtdirnw.m.bm                    Fpprnt.m.bm \
+Dtdirnw.m_m.bm                  Fpprnt.m_m.bm \
+Dtdirnw.m.pm                    Fpprnt.m.pm \
+Dtdirnw.t.bm                    Fpprnt.t.bm \
+Dtdirnw.t_m.bm                  Fpprnt.t_m.bm \
+Dtdirnw.t.pm                    Fpprnt.t.pm \
+DtdirR.m.bm                     FpPrtmg.l.bm \
+DtdirR.m_m.bm                   FpPrtmg.l_m.bm \
+DtdirR.m.pm                     FpPrtmg.l.pm \
+DtdirR.t.bm                     FpPrtmg.m.bm \
+DtdirR.t_m.bm                   FpPrtmg.m_m.bm \
+DtdirR.t.pm                     FpPrtmg.m.pm \
+Dtdirup.m.bm                    FpPrtmg.t.bm \
+Dtdirup.m_m.bm                  FpPrtmg.t_m.bm \
+Dtdirup.m.pm                    FpPrtmg.t.pm \
+Dtdirup.t.bm                    Fpstyle.l.bm \
+Dtdirup.t_m.bm                  Fpstyle.l_m.bm \
+Dtdirup.t.pm                    Fpstyle.l.pm \
+DtdirY.m.bm                     Fpstyle.m.bm \
+DtdirY.m_m.bm                   Fpstyle.m_m.bm \
+DtdirY.m.pm                     Fpstyle.m.pm \
+DtdirY.t.bm                     Fpstyle.s.bm \
+DtdirY.t_m.bm                   Fpstyle.s_m.bm \
+DtdirY.t.pm                     Fpstyle.s.pm \
+DtdotC.m.bm                     Fpterm.l.bm \
+DtdotC.m_m.bm                   Fpterm.l_m.bm \
+DtdotC.m.pm                     Fpterm.l.pm \
+DtdotC.t.bm                     Fpterm.m.bm \
+DtdotC.t_m.bm                   Fpterm.m_m.bm \
+DtdotC.t.pm                     Fpterm.m.pm \
+DtdotH.m.bm                     Fpterm.s.bm \
+DtdotH.m_m.bm                   Fpterm.s_m.bm \
+DtdotH.m.pm                     Fpterm.s.pm \
+DtdotH.t.bm                     Fptrsh1.l.bm \
+DtdotH.t_m.bm                   Fptrsh1.l_m.bm \
+DtdotH.t.pm                     Fptrsh1.l.pm \
+Dtdtksh.m.bm                    Fptrsh1.m.bm \
+Dtdtksh.m_m.bm                  Fptrsh1.m_m.bm \
+Dtdtksh.m.pm                    Fptrsh1.m.pm \
+Dtdtksh.t.bm                    Fptrsh2.l.bm \
+Dtdtksh.t_m.bm                  Fptrsh2.l_m.bm \
+Dtdtksh.t.pm                    Fptrsh2.l.pm \
+Dtdt.m.bm                       Fptrsh2.m.bm \
+Dtdt.m_m.bm                     Fptrsh2.m_m.bm \
+Dtdt.m.pm                       Fptrsh2.m.pm \
+Dtdt.t.bm                       Fptrsh3.l.bm \
+Dtdt.t_m.bm                     Fptrsh3.l_m.bm \
+Dtdt.t.pm                       Fptrsh3.l.pm \
+DtDtwm.bm                       Fptrsh3.m.bm \
+DtDtwm_m.bm                     Fptrsh3.m_m.bm \
+DtDtwm.pm                       Fptrsh3.m.pm \
+Dteditqryi.m.pm                 Fptrsh4.l.bm \
+Dteditqry.l.bm                  Fptrsh4.l_m.bm \
+Dteditqry.l.pm                  Fptrsh4.l.pm \
+Dteditqry.m.pm                  Fptrsh4.m.bm \
+DtEducation.l.pm                Fptrsh4.m_m.bm \
+DtEducation.m.pm                Fptrsh4.m.pm \
+DtEducation.t.pm                Fptrsh5.l.bm \
+Dtexec.m.bm                     Fptrsh5.l_m.bm \
+Dtexec.m_m.bm                   Fptrsh5.l.pm \
+Dtexec.m.pm                     Fptrsh5.m.bm \
+Dtexec.t.bm                     Fptrsh5.m_m.bm \
+Dtexec.t_m.bm                   Fptrsh5.m.pm \
+Dtexec.t.pm                     Fptrsh6.l.bm \
+DtFlag.m.bm                     Fptrsh6.l_m.bm \
+DtFlag.m_m.bm                   Fptrsh6.l.pm \
+DtFlag.m.pm                     Fptrsh6.m.bm \
+DtFlag.t.bm                     Fptrsh6.m_m.bm \
+DtFlag.t_m.bm                   Fptrsh6.m.pm \
+DtFlag.t.pm                     Fptrsh7.l.bm \
+DtFont.bm                       Fptrsh7.l_m.bm \
+DtFont_m.bm                     Fptrsh7.l.pm \
+DtFont.pm                       Fptrsh7.m.bm \
+Dtfpcfg.m.bm                    Fptrsh7.m_m.bm \
+Dtfpcfg.m_m.bm                  Fptrsh7.m.pm \
+Dtfpcfg.m.pm                    Fptrsh.l.bm \
+Dtfpcfg.t.bm                    Fptrsh.l_m.bm \
+Dtfpcfg.t_m.bm                  Fptrsh.l.pm \
+Dtfpcfg.t.pm                    Fptrsh.m.bm \
+Dtfphlp.l.bm                    Fptrsh.m_m.bm \
+Dtfphlp.l_m.bm                  Fptrsh.m.pm \
+Dtfphlp.l.pm                    Fpup.l.bm \
+Dtfphlp.m.bm                    Fpup.l_m.bm \
+Dtfphlp.m_m.bm                  Fpup.l.pm \
+Dtfphlp.m.pm                    Fpup.m.bm \
+Dtfphlp.t.bm                    Fpup.m_m.bm \
+Dtfphlp.t_m.bm                  Fpup.m.pm \
+Dtfphlp.t.pm                    Fpupon.l.bm \
+DtGamesCards.l.pm               Fpupon.l_m.bm \
+DtGamesCards.m.pm               Fpupon.l.pm \
+DtGamesCards.t.pm               Fpupon.m.bm \
+Dtgif.m.bm                      Fpupon.m_m.bm \
+Dtgif.m_m.bm                    Fpupon.m.pm \
+Dtgif.m.pm                      FpupY.l.bm \
+Dtgif.t.bm                      FpupY.l_m.bm \
+Dtgif.t_m.bm                    FpupY.l.pm \
+Dtgif.t.pm                      FpupY.m.bm \
+DtGraphics.l.pm                 FpupY.m_m.bm \
+DtGraphics.m.pm                 FpupY.m.pm \
+DtGraphics.t.pm                 FreeBSDDtlogo.bm \
+Dtgraphmap.l.bm                 FreeBSDDtlogo.pm \
+Dtgraphmap.l_m.bm               f-spot.l.pm \
+Dtgraphmap.l.pm                 f-spot.m.pm \
+Dtgraphmap.m.bm                 f-spot.t.pm \
+Dtgraphmap.m_m.bm               gcompris.l.pm \
+Dtgraphmap.m.pm                 gcompris.m.pm \
+Dthelp.l.bm                     gcompris.t.pm \
+Dthelp.l_m.bm                   geogebra.l.pm \
+Dthelp.l.pm                     geogebra.m.pm \
+Dthelp.m.bm                     geogebra.t.pm \
+Dthelp.m_m.bm                   gimp.l.pm \
+Dthelp.m.pm                     gimp.m.pm \
+Dthelp.t.bm                     gimp.t.pm \
+Dthelp.t_m.bm                   gscan2pdf.l.pm \
+Dthelp.t.pm                     gscan2pdf.m.pm \
+Dthgraphic.bm                   gscan2pdf.t.pm \
+Dthinfo.l.bm                    gv.l.pm \
+Dthinfo.l_m.bm                  gv.m.pm \
+Dthinfo.l.pm                    gv.t.pm \
+Dthinfo.m.bm                    help_ins.xbm \
+Dthinfo.m_m.bm                  help.xbm \
+Dthinfo.m.pm                    history_ins.xbm \
+Dthinfo.t.bm                    history.xbm \
+Dthinfo.t_m.bm                  IcCMinv.l.pm \
+Dthinfo.t.pm                    IcCMinv.m.pm \
+Dthist.l.bm                     IcCM.l.bm \
+Dthist.l_m.bm                   IcCM.l_m.bm \
+Dthist.l.pm                     IcCM.l.pm \
+Dthistnexti.m.pm                IcCM.m.bm \
+Dthistnext.m.pm                 IcCM.m_m.bm \
+Dthistprevi.m.pm                IcCM.m.pm \
+Dthistprev.m.pm                 IcMcomp.l.bm \
+Dthitem.l.bm                    IcMcomp.l_m.bm \
+Dthitem.l_m.bm                  IcMcomp.l.pm \
+Dthitem.l.pm                    IcMcomp.m.bm \
+Dthitem.m.bm                    IcMcomp.m_m.bm \
+Dthitem.m_m.bm                  IcMcomp.m.pm \
+Dthitem.m.pm                    IcMxbdy.l.bm \
+Dthitem.t.bm                    IcMxbdy.l_m.bm \
+Dthitem.t_m.bm                  IcMxbdy.l.pm \
+Dthitem.t.pm                    IcMxbdy.m.bm \
+Dthome.l.bm                     IcMxbdy.m_m.bm \
+Dthome.l_m.bm                   IcMxbdy.m.pm \
+Dthome.l.pm                     IcMxbdy.t.bm \
+Dthome.m.bm                     IcMxbdy.t_m.bm \
+Dthome.m_m.bm                   IcMxbdy.t.pm \
+Dthome.m.pm                     iconify.xbm \
+Dthome.t.bm                     inkscape.l.pm \
+Dthome.t_m.bm                   inkscape.m.pm \
+Dthome.t.pm                     inkscape.t.pm \
+DthonFP.l.bm                    k3b.l.pm \
+DthonFP.l_m.bm                  k3b.m.pm \
+DthonFP.l.pm                    k3b.t.pm \
+DthonFP.m.bm                    k9copy.l.pm \
+DthonFP.m_m.bm                  k9copy.m.pm \
+DthonFP.m.pm                    k9copy.t.pm \
+DthonFP.t.bm                    kile.l.pm \
+DthonFP.t_m.bm                  kile.m.pm \
+DthonFP.t.pm                    kile.t.pm \
+Dthover.l.bm                    ktuberling.l.pm \
+Dthover.l_m.bm                  ktuberling.m.pm \
+Dthover.l.pm                    ktuberling.t.pm \
+Dthover.m.bm                    lbreakout2.l.pm \
+Dthover.m_m.bm                  lbreakout2.m.pm \
+Dthover.m.pm                    lbreakout2.t.pm \
+Dthover.t.bm                    libreoffice-base.l.pm \
+Dthover.t_m.bm                  libreoffice-base.m.pm \
+Dthover.t.pm                    libreoffice-base.t.pm \
+Dthsrc.m.bm                     libreoffice-calc.l.pm \
+Dthsrc.m_m.bm                   libreoffice-calc.m.pm \
+Dthsrc.m.pm                     libreoffice-calc.t.pm \
+Dthsrc.t.bm                     libreoffice-draw.l.pm \
+Dthsrc.t_m.bm                   libreoffice-draw.m.pm \
+Dthsrc.t.pm                     libreoffice-draw.t.pm \
+Dthtop.m.bm                     libreoffice-impress.l.pm \
+Dthtop.m_m.bm                   libreoffice-impress.m.pm \
+Dthtop.m.pm                     libreoffice-impress.t.pm \
+Dthtop.t.bm                     libreoffice-main.l.pm \
+Dthtop.t_m.bm                   libreoffice-main.m.pm \
+Dthtop.t.pm                     libreoffice-main.t.pm \
+Dthvol.m.bm                     libreoffice-math.l.pm \
+Dthvol.m_m.bm                   libreoffice-math.m.pm \
+Dthvol.m.pm                     libreoffice-math.t.pm \
+Dthvol.t.bm                     libreoffice-startcenter.l.pm \
+Dthvol.t_m.bm                   libreoffice-startcenter.m.pm \
+Dthvol.t.pm                     libreoffice-startcenter.t.pm \
+DtI18N.bm                       libreoffice-writer.l.pm \
+DtI18N_m.bm                     libreoffice-writer.m.pm \
+DtI18N.pm                       libreoffice-writer.t.pm \
+Dtimage.l.pm                    locked.pm \
+Dtimage.m.bm                    locked.xbm \
+Dtimage.m_m.bm                  logo.xpm.ps \
+Dtimage.m.pm                    Dtimage.s.pm \
+Dtimage.t.bm                    marks_ins.xbm \
+Dtimage.t_m.bm                  marks.xbm \
+Dtimage.t.pm                    mgv.l.pm \
+Dtimake.m.bm                    mgv.m.pm \
+Dtimake.m_m.bm                  mgv.pm \
+Dtimake.m.pm                    mgv.t.pm \
+Dtimake.t.bm                    mp3.l.pm \
+Dtimake.t_m.bm                  mp3.m.pm \
+Dtimake.t.pm                    mp3.t.pm \
+Dtinfbc.t.bm                    nedit.l.pm \
+Dtinfbc.t_m.bm                  nedit.m.pm \
+Dtinfbc.t.pm                    nedit.t.pm \
+Dtinfbk.m.bm                    nxclient-desktop.l.pm \
+Dtinfbk.m_m.bm                  nxclient-desktop.m.pm \
+Dtinfbk.m.pm                    nxclient-desktop.t.pm \
+Dtinfbk.t.bm                    nxclient-icon.l.pm \
+Dtinfbk.t_m.bm                  nxclient-icon.m.pm \
+Dtinfbk.t.pm                    okular.l.pm \
+Dtinf.m.bm                      okular.m.pm \
+Dtinf.m_m.bm                    okular.t.pm \
+Dtinf.m.pm                      pgadmin3.l.pm \
+Dtinfoaddi.m.pm                 pgadmin3.m.pm \
+Dtinfoadd.m.pm                  pgadmin3.t.pm \
+Dtinfo.l.bm                     pinin.xbm \
+Dtinfo.l.pm                     pinmid.xbm \
+Dtinfo.m.bm                     pinout.xbm \
+Dtinfo.m.pm                     powermanga.l.pm \
+Dtinfopri.m.pm                  powermanga.m.pm \
+Dtinfopr.m.pm                   powermanga.t.pm \
+Dtinfosubi.m.pm                 pychess.l.pm \
+Dtinfosub.m.pm                  pychess.m.pm \
+Dtinfo.t.bm                     pychess.t.pm \
+Dtinfo.t.pm                     quit.xbm \
+Dtinfsc.t.bm                    rhythmbox.l.pm \
+Dtinfsc.t_m.bm                  rhythmbox.m.pm \
+Dtinfsc.t.pm                    rhythmbox.t.pm \
+Dtinf.t.bm                      rosegarden.l.pm \
+Dtinf.t_m.bm                    rosegarden.m.pm \
+Dtinf.t.pm                      rosegarden.t.pm \
+Dtinlib.m.bm                    SDthtml.m.pm \
+Dtinlib.m_m.bm                  SDthtml.t.pm \
+Dtinlib.m.pm                    SDturlweb.l.pm \
+Dtinlib.t.bm                    SDturlweb.m.pm \
+Dtinlib.t_m.bm                  SDturlweb.t.pm \
+Dtinlib.t.pm                    SDtwebbr.l.pm \
+Dtjpegi.m.bm                    SDtwebbr.m.pm \
+Dtjpegi.m_m.bm                  SDtwebbr.t.pm \
+Dtjpegi.m.pm                    search_ins.xbm \
+Dtjpegi.t.bm                    search.xbm \
+Dtjpegi.t_m.bm                  semilocked.pm \
+Dtjpegi.t.pm                    semilocked.xbm \
+Dtjpeg.m.bm                     shotwell.l.pm \
+Dtjpeg.m_m.bm                   shotwell.m.pm \
+Dtjpeg.m.pm                     shotwell.t.pm \
+Dtjpeg.t.bm                     skype.l.pm \
+Dtjpeg.t_m.bm                   skype.m.pm \
+Dtjpeg.t.pm                     skype.t.pm \
+DtKeybd.bm                      sound-juicer.l.pm \
+DtKeybd_m.bm                    sound-juicer.m.pm \
+DtKeybd.pm                      sound-juicer.t.pm \
+Dtkey.m.bm                      stellarium.l.pm \
+Dtkey.m_m.bm                    stellarium.m.pm \
+Dtkey.m.pm                      stellarium.t.pm \
+Dtkey.t.bm                      supertux.l.pm \
+Dtkey.t_m.bm                    supertux.m.pm \
+Dtkey.t.pm                      supertux.t.pm \
+Dtkshll.m.bm                    synaptic.l.pm \
+Dtkshll.m_m.bm                  synaptic.m.pm \
+Dtkshll.m.pm                    synaptic.t.pm \
+Dtkshll.t.bm                    TeXGroup.l.pm \
+Dtkshll.t_m.bm                  TeXGroup.m.pm \
+Dtkshll.t.pm                    TeXGroup.t.pm \
+Dtlink.m.bm                     thunderbird.l.pm \
+Dtlink.m_m.bm                   thunderbird.m.pm \
+Dtlink.m.pm                     thunderbird.t.pm \
+Dtlink.t.bm                     TOGDtlogo.pm \
+Dtlink.t_m.bm                   tuxpaint.l.pm \
+Dtlink.t.pm                     tuxpaint.m.pm \
+Dtload.m.bm                     tuxpaint.t.pm \
+Dtload.m_m.bm                   unlocked.xbm \
+Dtload.m.pm                     video.l.pm \
+Dtload.t.bm                     video.m.pm \
+Dtload.t_m.bm                   video.t.pm \
+Dtload.t.pm                     virtualbox.l.pm \
+Dtlogo.pm                       virtualbox.m.pm \
+DtMa.bm                         virtualbox.t.pm \
+Dtmagtp.m.bm                    vlc.l.pm \
+Dtmagtp.m_m.bm                  vlc.m.pm \
+Dtmagtp.m.pm                    vlc.t.pm \
+Dtmagtp.t.bm                    web_browse_ins.xbm \
+Dtmagtp.t_m.bm                  web_browse.xbm \
+Dtmagtp.t.pm                    wicd.l.pm \
+DtMail.l.bm                     wicd.m.pm \
+DtMail.l_m.bm                   wicd.t.pm \
+DtMail.l.pm                     xboard.l.pm \
+Dtmail.m.bm                     xboard.m.pm \
+DtMail.m.bm                     xboard.t.pm \
+Dtmail.m_m.bm                   xdvi.l.pm \
+DtMail.m_m.bm                   xdvi.m.pm \
+Dtmail.m.pm                     xdvi.t.pm \
+DtMail.m.pm                     xine.l.pm \
+Dtmail.t.bm                     xine.m.pm \
+DtMail.t.bm                     xine.t.pm \
+Dtmail.t_m.bm                   xournal.l.pm \
+DtMail.t_m.bm                   xournal.m.pm \
+Dtmail.t.pm                     xournal.t.pm \
+DtMail.t.pm                     xpdf.l.pm \
+DtMa_m.bm                       xpdf.m.pm \
+Dtmanpg.m.bm                    xpdf.t.pm \
+Dtmanpg.m_m.bm                  xv.l.pm \
+Dtmanpg.m.pm                    xv.m.pm \
+Dtmanpg.t.bm                    xv.t.pm \
+Dtmanpg.t_m.bm
diff --git a/cde/programs/localized/C/Makefile.am b/cde/programs/localized/C/Makefile.am
new file mode 100644 (file)
index 0000000..c5e930f
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = app-defaults config types msg palettes backdrops
diff --git a/cde/programs/localized/C/app-defaults/Makefile.am b/cde/programs/localized/C/app-defaults/Makefile.am
new file mode 100644 (file)
index 0000000..16f2b5e
--- /dev/null
@@ -0,0 +1,12 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/app-defaults.am
+
+# Setup a symlink from C -> en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/app-defaults/en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/app-defaults/ && $(LN_S) C en_US.UTF-8
+
+
+
diff --git a/cde/programs/localized/C/backdrops/Makefile.am b/cde/programs/localized/C/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..d51bb47
--- /dev/null
@@ -0,0 +1,11 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/backdrops.am
+
+# Setup a symlink from C -> en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/share/backdrops/desc.en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/share/backdrops/ && $(LN_S) desc.C desc.en_US.UTF-8
+
+
diff --git a/cde/programs/localized/C/config/Makefile.am b/cde/programs/localized/C/config/Makefile.am
new file mode 100644 (file)
index 0000000..3e4a3dd
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/config.am
+
+# Setup a symlink from C -> en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/config/en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/config/ && $(LN_S) C en_US.UTF-8
+
diff --git a/cde/programs/localized/C/msg/Makefile.am b/cde/programs/localized/C/msg/Makefile.am
new file mode 100644 (file)
index 0000000..4d1730c
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/msg.C.am
+
+# Setup a symlink from C -> en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/lib/nls/msg/en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/lib/nls/msg/ && $(LN_S) C en_US.UTF-8
diff --git a/cde/programs/localized/C/palettes/Makefile.am b/cde/programs/localized/C/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..9ddc599
--- /dev/null
@@ -0,0 +1,11 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/palettes.am
+
+# link the C version to en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/share/palettes/desc.en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/share/palettes/ && $(LN_S) desc.C desc.en_US.UTF-8
+
+
diff --git a/cde/programs/localized/C/types/Makefile.am b/cde/programs/localized/C/types/Makefile.am
new file mode 100644 (file)
index 0000000..56c8d69
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/C.am
+include ../../templates/types.am
+
+# Setup a symlink from C -> en_US.UTF-8
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/appconfig/types/en_US.UTF-8
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/appconfig/types/ && $(LN_S) C en_US.UTF-8
+
index caec730e58c2e7e4ec4e1a2133c57725ed851cc6..2b5714bfd404aa799eb504e787c91f061dcfb1c7 100644 (file)
@@ -1917,9 +1917,7 @@ $ Message 10040 - an error message when the file the user provided the Tar
 $    action is not a folder. Don't translate %(File)Arg_1%, it will be
 $    the bad file name when the message is shown to the user.
 $ 
-$quote "
-10040 ERROR: "%(File)Arg_1%" is not a folder.
-$quote
+10040 ERROR: %(File)Arg_1% is not a folder.
 $ 
 $ Messsages 10041 and 10042 are status messages for the user.  These are
 $    shown to the user when the Tar action is creating the tarball.
diff --git a/cde/programs/localized/Makefile.am b/cde/programs/localized/Makefile.am
new file mode 100644 (file)
index 0000000..5c3a5d6
--- /dev/null
@@ -0,0 +1,21 @@
+SUBDIRS = util C
+
+if JAPANESE
+SUBDIRS += ja_JP.dt-eucJP
+endif
+
+if GERMAN
+SUBDIRS += de_DE.UTF-8
+endif
+
+if ITALIAN
+SUBDIRS += it_IT.UTF-8
+endif
+
+if SPANISH
+SUBDIRS += es_ES.UTF-8
+endif
+
+if FRENCH
+SUBDIRS += fr_FR.UTF-8
+endif
diff --git a/cde/programs/localized/de_DE.UTF-8/Makefile.am b/cde/programs/localized/de_DE.UTF-8/Makefile.am
new file mode 100644 (file)
index 0000000..8e43dfb
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = msg app-defaults config types palettes backdrops
diff --git a/cde/programs/localized/de_DE.UTF-8/app-defaults/Makefile.am b/cde/programs/localized/de_DE.UTF-8/app-defaults/Makefile.am
new file mode 100644 (file)
index 0000000..1972b0b
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/app-defaults.am
+
diff --git a/cde/programs/localized/de_DE.UTF-8/backdrops/Makefile.am b/cde/programs/localized/de_DE.UTF-8/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..a72cc72
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/backdrops.am
+
diff --git a/cde/programs/localized/de_DE.UTF-8/config/Makefile.am b/cde/programs/localized/de_DE.UTF-8/config/Makefile.am
new file mode 100644 (file)
index 0000000..f60bc5c
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/config.am
+
diff --git a/cde/programs/localized/de_DE.UTF-8/msg/Makefile.am b/cde/programs/localized/de_DE.UTF-8/msg/Makefile.am
new file mode 100644 (file)
index 0000000..78f3628
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/msg.am
+
diff --git a/cde/programs/localized/de_DE.UTF-8/palettes/Makefile.am b/cde/programs/localized/de_DE.UTF-8/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..36f97f7
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/palettes.am
+
diff --git a/cde/programs/localized/de_DE.UTF-8/types/Makefile.am b/cde/programs/localized/de_DE.UTF-8/types/Makefile.am
new file mode 100644 (file)
index 0000000..f13959b
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/German.am
+include ../../templates/types.am
+
diff --git a/cde/programs/localized/el_GR.UTF-8/config/Makefile.am b/cde/programs/localized/el_GR.UTF-8/config/Makefile.am
new file mode 100644 (file)
index 0000000..93cca0b
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Greek.am
+include ../../templates/config.am
+
diff --git a/cde/programs/localized/el_GR.UTF-8/msg/Makefile.am b/cde/programs/localized/el_GR.UTF-8/msg/Makefile.am
new file mode 100644 (file)
index 0000000..2ec4c9f
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Greek.am
+include ../../templates/msg.am
+
diff --git a/cde/programs/localized/el_GR.UTF-8/palettes/Makefile.am b/cde/programs/localized/el_GR.UTF-8/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..c224ec4
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Greek.am
+include ../../templates/palettes.am
+
diff --git a/cde/programs/localized/el_GR.UTF-8/types/Makefile.am b/cde/programs/localized/el_GR.UTF-8/types/Makefile.am
new file mode 100644 (file)
index 0000000..ef0ada0
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Greek.am
+include ../../templates/types.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/Makefile.am b/cde/programs/localized/es_ES.UTF-8/Makefile.am
new file mode 100644 (file)
index 0000000..8e43dfb
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = msg app-defaults config types palettes backdrops
diff --git a/cde/programs/localized/es_ES.UTF-8/app-defaults/Makefile.am b/cde/programs/localized/es_ES.UTF-8/app-defaults/Makefile.am
new file mode 100644 (file)
index 0000000..711f4ff
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/app-defaults.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/backdrops/Makefile.am b/cde/programs/localized/es_ES.UTF-8/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..b8bf14c
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/backdrops.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/config/Makefile.am b/cde/programs/localized/es_ES.UTF-8/config/Makefile.am
new file mode 100644 (file)
index 0000000..7ac5941
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/config.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/msg/Makefile.am b/cde/programs/localized/es_ES.UTF-8/msg/Makefile.am
new file mode 100644 (file)
index 0000000..1aca1cc
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/msg.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/palettes/Makefile.am b/cde/programs/localized/es_ES.UTF-8/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..9384615
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/palettes.am
+
diff --git a/cde/programs/localized/es_ES.UTF-8/types/Makefile.am b/cde/programs/localized/es_ES.UTF-8/types/Makefile.am
new file mode 100644 (file)
index 0000000..bc203b8
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Spanish.am
+include ../../templates/types.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/Makefile.am
new file mode 100644 (file)
index 0000000..8e43dfb
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = msg app-defaults config types palettes backdrops
diff --git a/cde/programs/localized/fr_FR.UTF-8/app-defaults/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/app-defaults/Makefile.am
new file mode 100644 (file)
index 0000000..0412a3b
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/app-defaults.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/backdrops/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..8f1d920
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/backdrops.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/config/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/config/Makefile.am
new file mode 100644 (file)
index 0000000..844b920
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/config.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/msg/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/msg/Makefile.am
new file mode 100644 (file)
index 0000000..cac6273
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/msg.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/palettes/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..9dabaaa
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/palettes.am
+
diff --git a/cde/programs/localized/fr_FR.UTF-8/types/Makefile.am b/cde/programs/localized/fr_FR.UTF-8/types/Makefile.am
new file mode 100644 (file)
index 0000000..4a0eef6
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/French.am
+include ../../templates/types.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/Makefile.am b/cde/programs/localized/it_IT.UTF-8/Makefile.am
new file mode 100644 (file)
index 0000000..8e43dfb
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = msg app-defaults config types palettes backdrops
diff --git a/cde/programs/localized/it_IT.UTF-8/app-defaults/Makefile.am b/cde/programs/localized/it_IT.UTF-8/app-defaults/Makefile.am
new file mode 100644 (file)
index 0000000..3c59cad
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/app-defaults.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/backdrops/Makefile.am b/cde/programs/localized/it_IT.UTF-8/backdrops/Makefile.am
new file mode 100644 (file)
index 0000000..5a828d8
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/backdrops.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/config/Makefile.am b/cde/programs/localized/it_IT.UTF-8/config/Makefile.am
new file mode 100644 (file)
index 0000000..618f17c
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/config.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/msg/Makefile.am b/cde/programs/localized/it_IT.UTF-8/msg/Makefile.am
new file mode 100644 (file)
index 0000000..63511b6
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/msg.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/palettes/Makefile.am b/cde/programs/localized/it_IT.UTF-8/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..7c3b914
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/palettes.am
+
diff --git a/cde/programs/localized/it_IT.UTF-8/types/Makefile.am b/cde/programs/localized/it_IT.UTF-8/types/Makefile.am
new file mode 100644 (file)
index 0000000..009c0ba
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+include ../../templates/Italian.am
+include ../../templates/types.am
+
diff --git a/cde/programs/localized/ja_JP.dt-eucJP/Makefile.am b/cde/programs/localized/ja_JP.dt-eucJP/Makefile.am
new file mode 100644 (file)
index 0000000..efe276f
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = types config msg app-defaults palettes backdrops
diff --git a/cde/programs/localized/templates/C.am b/cde/programs/localized/templates/C.am
new file mode 100644 (file)
index 0000000..bd077d8
--- /dev/null
@@ -0,0 +1,5 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for the C locale.
+
+LANG=C
+SOURCE_LANG=C
diff --git a/cde/programs/localized/templates/English.am b/cde/programs/localized/templates/English.am
new file mode 100644 (file)
index 0000000..ce033dd
--- /dev/null
@@ -0,0 +1,5 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for the C locale.
+
+LANG=en_US.UTF-8
+SOURCE_LANG=en_US.UTF-8
diff --git a/cde/programs/localized/templates/French.am b/cde/programs/localized/templates/French.am
new file mode 100644 (file)
index 0000000..570ee53
--- /dev/null
@@ -0,0 +1,17 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for a locale.
+
+if SOLARIS
+LANG=fr
+endif
+
+if LINUX
+LANG=fr_FR.UTF-8
+endif
+
+if BSD
+LANG=fr_FR.UTF-8
+endif
+
+SOURCE_LANG=fr_FR.ISO8859-1
+
diff --git a/cde/programs/localized/templates/German.am b/cde/programs/localized/templates/German.am
new file mode 100644 (file)
index 0000000..5bfefb8
--- /dev/null
@@ -0,0 +1,17 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for a locale.
+
+if SOLARIS
+LANG=de
+endif
+
+if LINUX
+LANG=de_DE.UTF-8
+endif
+
+if BSD
+LANG=de_DE.UTF-8
+endif
+
+SOURCE_LANG=de_DE.ISO8859-1
+
diff --git a/cde/programs/localized/templates/Italian.am b/cde/programs/localized/templates/Italian.am
new file mode 100644 (file)
index 0000000..8ec1913
--- /dev/null
@@ -0,0 +1,17 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for a locale.
+
+if SOLARIS
+LANG=it
+endif
+
+if LINUX
+LANG=it_IT.UTF-8
+endif
+
+if BSD
+LANG=it_IT.UTF-8
+endif
+
+SOURCE_LANG=it_IT.ISO8859-1
+
diff --git a/cde/programs/localized/templates/Spanish.am b/cde/programs/localized/templates/Spanish.am
new file mode 100644 (file)
index 0000000..db22212
--- /dev/null
@@ -0,0 +1,17 @@
+#  This file is a template for setting the platform-specific LANG
+#  variable for a locale.
+
+if SOLARIS
+LANG=es
+endif
+
+if LINUX
+LANG=es_ES.UTF-8
+endif
+
+if BSD
+LANG=es_ES.UTF-8
+endif
+
+SOURCE_LANG=es_ES.ISO8859-1
+
diff --git a/cde/programs/localized/templates/app-defaults.am b/cde/programs/localized/templates/app-defaults.am
new file mode 100644 (file)
index 0000000..548b00f
--- /dev/null
@@ -0,0 +1,82 @@
+# process the app-defaults files...
+
+# We can't do parallel builds here because MERGE is rather dumb and
+# hardcodes file names and the like.
+.NOTPARALLEL:
+
+#NOTYET - Dtinfo 
+
+BUILT_SOURCES = Dthelpview Dtimsstart Dtlogin Dthello Dtsession                \
+       Dtscreen Dtwm Dtfile Dtstyle Dtpad Dticon Dtcreate Dtcalc       \
+       Dtcm Dtterm Dtmail Dtbuilder Dtudcfonted Dt
+
+CLEANFILES = $(BUILT_SOURCES)
+
+appdefdir = $(CDE_INSTALLATION_TOP)/app-defaults/$(LANG)
+dist_appdef_DATA = $(BUILT_SOURCES)
+
+TOP = $(top_builddir)/programs
+DTSVCSRC = $(top_builddir)/lib/DtSvc
+MERGE = $(top_builddir)/programs/localized/util/merge
+
+
+Dthelpview: $(TOP)/dthelp/dthelpview/Dthelpview Dthelpview.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtimsstart: $(TOP)/dtimsstart/Dtimsstart Dtimsstart.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtlogin: $(TOP)/dtlogin/config/Dtlogin Dtlogin.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dthello: $(TOP)/dthello/Dthello Dthello.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtsession: $(TOP)/dtsession/Dtsession Dtsession.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtscreen: $(TOP)/dtscreen/Dtscreen Dtscreen.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtwm: $(TOP)/dtwm/Dtwm.defs Dtwm.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtfile: $(TOP)/dtfile/Dtfile Dtfile.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtstyle: $(TOP)/dtstyle/Dtstyle Dtstyle.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtpad: $(TOP)/dtpad/Dtpad Dtpad.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dticon: $(TOP)/dticon/Dticon Dticon.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtcreate: $(TOP)/dtcreate/Dtcreate Dtcreate.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtcalc: $(TOP)/dtcalc/Dtcalc Dtcalc.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtcm: $(TOP)/dtcm/dtcm/Dtcm.ad Dtcm.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtterm: $(TOP)/dtterm/Dtterm.ad Dtterm.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtmail: $(TOP)/dtmail/dtmail/Dtmail Dtmail.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtbuilder: $(TOP)/dtappbuilder/src/ab/Dtbuilder.ad Dtbuilder.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtinfo: $(TOP)/dtinfo/dtinfo/src/Dtinfo Dtinfo.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dtudcfonted: $(TOP)/dtudcfonted/resource/Dtudcfonted Dtudcfonted.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Dt: $(DTSVCSRC)/DtUtil2/Dt.ad Dt.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
diff --git a/cde/programs/localized/templates/backdrops.am b/cde/programs/localized/templates/backdrops.am
new file mode 100644 (file)
index 0000000..bda1630
--- /dev/null
@@ -0,0 +1,13 @@
+# process the backdrop file...
+
+BUILT_SOURCES = desc.$(LANG)
+CLEANFILES = $(BUILT_SOURCES)
+
+backdropsdir = $(CDE_INSTALLATION_TOP)/share/backdrops
+dist_backdrops_DATA = $(BUILT_SOURCES)
+
+TOP = $(top_builddir)/programs
+MERGE = $(top_builddir)/programs/localized/util/merge
+
+desc.$(LANG): $(TOP)/dtstyle/Backdrops Backdrops.tmsg
+       $(MERGE) -lang $(LANG) Backdrops.tmsg < $< > $@ || $(RM) $@
diff --git a/cde/programs/localized/templates/config.am b/cde/programs/localized/templates/config.am
new file mode 100644 (file)
index 0000000..d13e19b
--- /dev/null
@@ -0,0 +1,83 @@
+# process the config files...
+
+# We can't do parallel builds here because MERGE is rather dumb and
+# hardcodes file names and the like.
+.NOTPARALLEL:
+
+BUILT_SOURCES = sys.resources sys.session sys.font sys.dtwmrc  \
+       Xresources dtfile.config home.session current.session   \
+       display.home.session display.current.session 0100.session \
+       0120.session 0140.session 0160.session
+
+if SOLARIS
+BUILT_SOURCES += Xresources.ow
+endif
+
+CLEANFILES = $(BUILT_SOURCES)
+
+cfgmaindir = $(CDE_INSTALLATION_TOP)/config/$(LANG)
+dist_cfgmain_DATA = dtfile.config sys.dtwmrc sys.resources Xresources  \
+       sys.font sys.session
+
+cfgrsrcdir = $(CDE_INSTALLATION_TOP)/config/$(LANG)/Xresources.d
+dist_cfgrsrc_DATA = 0100.session 0120.session 0140.session     \
+       0160.session
+
+TOP = $(top_builddir)/programs
+MERGE = $(top_builddir)/programs/localized/util/merge
+
+# these are the names these 4 file are really installed as, so create
+# symlinks to them for installation
+0100.session: current.session
+       $(RM) $@
+       $(LN_S) $< $@
+
+0120.session: home.session
+       $(RM) $@
+       $(LN_S) $< $@
+
+0140.session: display.current.session
+       $(RM) $@
+       $(LN_S) $< $@
+
+0160.session: display.home.session
+       $(RM) $@
+       $(LN_S) $< $@
+
+
+# these are the real targets
+sys.resources: $(TOP)/dtsession/sys.resources sys.resources.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+sys.session: $(TOP)/dtsession/sys.session sys.session.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+sys.font: $(TOP)/dtsession/sys.font sys.font.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+sys.dtwmrc: $(TOP)/dtwm/sys.dtwmrc sys.dtwmrc.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+Xresources: $(TOP)/dtlogin/config/Xresources Xresources.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+if SOLARIS
+Xresources.ow: $(TOP)/dtlogin/config/Xresources.ow Xresources.ow.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+endif
+
+dtfile.config: $(TOP)/dtfile/dtfile.config dtfile.config.tmsg
+       $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
+
+home.session: $(TOP)/dtlogin/config/home.session _common.session.tmsg
+       $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
+
+current.session: $(TOP)/dtlogin/config/current.session _common.session.tmsg
+       $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
+
+display.home.session: $(TOP)/dtlogin/config/display.home.session _common.session.tmsg
+       $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
+
+display.current.session: $(TOP)/dtlogin/config/display.current.session _common.session.tmsg
+       $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
+
diff --git a/cde/programs/localized/templates/msg.C.am b/cde/programs/localized/templates/msg.C.am
new file mode 100644 (file)
index 0000000..f6d7f8b
--- /dev/null
@@ -0,0 +1,233 @@
+# process the message files...
+
+# NOTYET dtinfo.cat dtinfo_start.cat
+
+# BROKEN (always has been): fmt_tbl.cat
+
+BUILT_SOURCES = Xm.cat Mrm.cat Uil.cat DtHelp.cat              \
+      DtMail.cat DtPrint.cat DtWidget.cat MotifApp.cat                 \
+      SUNW_TOOLTALK.cat dt.cat dtact.cat dtbuilder.cat dtcalc.cat      \
+      dtcm.cat dtcodegen.cat dtconfig.cat dtcopy.cat dtcreate.cat      \
+      dtfile.cat dthello.cat dthelpgen.cat dthelpprint.cat dticon.cat  \
+      dtimsstart.cat dtksh.cat         \
+      dtlogin.cat dtlp.cat dtmailopts.cat dtpad.cat dtpdm.cat          \
+      dtpdmd.cat dtprintinfo.cat dtscreen.cat dtsearch.cat             \
+      dtsession.cat dtstyle.cat dtterm.cat dttypes.cat dtwm.cat                \
+      dtudcexch.cat dtudcfonted.cat libdtcm.cat libDtMail.cat
+
+CLEANFILES = $(BUILT_SOURCES)
+
+msgcatdir = $(CDE_INSTALLATION_TOP)/lib/nls/msg/$(LANG)
+dist_msgcat_DATA = $(BUILT_SOURCES)
+
+TOP = $(top_builddir)/programs
+TOPLIB = $(top_builddir)/lib
+TOPMOTIF = $(top_builddir)/imports/
+
+MKCATDEFS = $(TOP)/localized/util/mkcatdefs
+
+Xm.cat: $(top_srcdir)/imports/motif/localized/$(LANG)/msg/Xm.msg
+       $(RM) $@
+       $(MKCATDEFS) Xm $^ -h > Xm.tmp.msg
+       LANG=C $(GENCAT) $@ Xm.tmp.msg || $(RM) $@
+       $(RM) Xm.tmp.msg
+
+Mrm.cat: $(top_srcdir)/imports/motif/localized/$(LANG)/msg/Mrm.msg
+       $(RM) $@
+       $(MKCATDEFS) Mrm $^ -h > Mrm.tmp.msg
+       LANG=C $(GENCAT) $@ Mrm.tmp.msg || $(RM) $@
+       $(RM) Mrm.tmp.msg
+
+Uil.cat: $(top_srcdir)/imports/motif/localized/$(LANG)/msg/Uil.msg
+       $(RM) $@
+       $(MKCATDEFS) Uil $^ -h > Uil.tmp.msg
+       LANG=C $(GENCAT) $@ Uil.tmp.msg || $(RM) $@
+       $(RM) Uil.tmp.msg
+
+DtHelp.cat: $(TOPLIB)/DtHelp/DtHelp.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+# FIXME This appears to have been broken a long time ago.  Needs
+# investigation.
+#
+#fmt_tbl.cat: $(TOPLIB)/DtHelp/fmt_tbl.msg
+#      $(RM) $@
+#      LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+DtMail.cat: $(TOP)/dtmail/dtmail/DtMail.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+DtPrint.cat: $(TOPLIB)/DtPrint/DtPrint.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+DtWidget.cat: $(TOPLIB)/DtWidget/DtWidget.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+MotifApp.cat: $(TOP)/dtmail/MotifApp/MotifApp.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+SUNW_TOOLTALK.cat: $(TOPLIB)/tt/SUNW_TOOLTALK.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dt.cat: $(TOPLIB)/DtSvc/dtsvc.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtact.cat: $(TOP)/dtaction/dtact.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtcodegen.cat: $(TOP)/dtappbuilder/src/libAButil/libAButil.msg $(TOP)/dtappbuilder/src/libABobjXm/libABobjXm.msg $(TOP)/dtappbuilder/src/libABil/libABil.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtbuilder.cat: $(TOP)/dtappbuilder/src/libAButil/libAButil.msg $(TOP)/dtappbuilder/src/libABobjXm/libABobjXm.msg $(TOP)/dtappbuilder/src/libABil/libABil.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtcalc.cat: $(TOP)/dtcalc/dtcalc.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtcm.cat: $(TOP)/dtcm/dtcm/dtcm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtconfig.cat: $(TOP)/dtconfig/dtconfig.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtcopy.cat: $(TOP)/dtfile/dtcopy/dtcopy.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtcreate.cat: $(TOP)/dtcreate/dtcreate.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtfile.cat: $(TOP)/dtfile/dtfile.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dthello.cat: $(TOP)/dthello/dthello.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dthelpgen.cat: $(TOP)/dthelp/dthelpgen/dthelpgen.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dthelpprint.cat: $(TOP)/dthelp/dthelpprint/dthelpprint.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dticon.cat: $(TOP)/dticon/dticon.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtimsstart.cat: $(TOP)/dtimsstart/dtimsstart.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtinfo.cat: $(TOP)/dtinfo/dtinfo/src/dtinfo.msg.updated
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtinfo_start.cat: $(TOP)/dtinfo/clients/dtinfo_start/dtinfo_start.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtksh.cat: $(TOP)/dtksh/dtksh.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtlogin.cat: $(TOP)/dtlogin/dtlogin.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtlp.cat: $(TOP)/dtprintegrate/dtlp.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtmailopts.cat: $(TOP)/dtmail/dtmail/dtmailopts.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtpad.cat: $(TOP)/dtpad/dtpad.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtpdm.cat: $(TOP)/dtpdm/dtpdm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtpdmd.cat: $(TOP)/dtpdmd/dtpdmd.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+# This one assumes that sym2num was already run on this berfore we get here
+dtprintinfo.cat: $(TOP)/dtprintinfo/dtprintinfo.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtscreen.cat: $(TOP)/dtscreen/dtscreen.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtsearch.cat: $(TOPLIB)/DtSearch/dtsearch.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtsession.cat: $(TOP)/dtsession/dtsession.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtstyle.cat: $(TOP)/dtstyle/dtstyle.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtterm.cat: $(TOP)/dtterm/dtterm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dttypes.cat: $(TOP)/util/dttypes/dttypes.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtwm.cat: $(TOP)/dtwm/dtwm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtudcexch.cat: $(TOP)/dtudcexch/dtudcexch.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+dtudcfonted.cat: $(TOP)/dtudcfonted/dtudcfonted.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+libABil.cat: $(TOP)/dtappbuilder/src/libABil/libABil.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+libABobjXm.cat: $(TOP)/dtappbuilder/src/libABobjXm/libABobjXm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+libAButil.cat: $(TOP)/dtappbuilder/src/libAButil/libAButil.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+libdtcm.cat: $(TOP)/dtcm/libDtCmP/libdtcm.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
+
+libDtMail.cat: $(TOP)/dtmail/libDtMail/Common/libDtMail.msg
+       $(RM) $@
+       LANG=C $(GENCAT) $@ $^ || $(RM) $@
diff --git a/cde/programs/localized/templates/msg.am b/cde/programs/localized/templates/msg.am
new file mode 100644 (file)
index 0000000..00fb46d
--- /dev/null
@@ -0,0 +1,14 @@
+# message files for non-C locales - ie: local .msg files.  So much
+# nicer :)
+
+BUILT_SOURCES = $(shell ls *.msg |grep -v libAB |sed -e 's/.msg/.cat/g')
+CLEANFILES = $(BUILT_SOURCES)
+
+msgcatdir = $(CDE_INSTALLATION_TOP)/lib/nls/msg/$(LANG)
+dist_msgcat_DATA = $(BUILT_SOURCES)
+
+SUFFIXES = .msg .cat
+
+.msg.cat:
+       $(RM) $@
+       LANG=$(LANG) $(GENCAT) $@ $^ || $(RM) $@
diff --git a/cde/programs/localized/templates/palettes.am b/cde/programs/localized/templates/palettes.am
new file mode 100644 (file)
index 0000000..58b54d2
--- /dev/null
@@ -0,0 +1,13 @@
+# process the palettes file...
+
+BUILT_SOURCES = desc.$(LANG)
+CLEANFILES = $(BUILT_SOURCES)
+
+palettesdir = $(CDE_INSTALLATION_TOP)/share/palettes
+dist_palettes_DATA = $(BUILT_SOURCES)
+
+TOP = $(top_builddir)/programs
+MERGE = $(top_builddir)/programs/localized/util/merge
+
+desc.$(LANG): $(TOP)/dtstyle/Palettes Palettes.tmsg
+       $(MERGE) -lang $(LANG) Palettes.tmsg < $< > $@ || $(RM) $@
diff --git a/cde/programs/localized/templates/types.am b/cde/programs/localized/templates/types.am
new file mode 100644 (file)
index 0000000..c7169ac
--- /dev/null
@@ -0,0 +1,317 @@
+# process the types files...
+
+# We can't do parallel builds here because MERGE is rather dumb and
+# hardcodes file names and the like.
+.NOTPARALLEL:
+
+BUILT_SOURCES = autoStart.dt user-prefs.dt uxstd.dt dt.dt develop.dt   \
+       datatypes.dt dtappman.dt dtfile.dt dtims.dt dtinfo.dt           \
+       dtpad.dt xclients.dt dthelp.dt dthelpprint.dt print.dt          \
+       dthelptag.dt dtmail.dt dtwm.fp dtscreen.dt dtcm.dt              \
+       dtbuilder.dt miscActions.dt miscImages.dt IconBrowse.dt         \
+       DisplayImage.dt DisplayPDF.dt DisplayVideo.dt DisplayPS.dt      \
+       videoTypes.dt Education.dt gcompris.dt geogebra.dt              \
+       stellarium.dt tuxpaint.dt dreamchess.dt eboard.dt Games.dt      \
+       ktuberling.dt lbreakout2.dt powermanga.dt               \
+       pychess.dt supertux.dt xboard.dt fontforge.dt gimp.dt           \
+       Graphics.dt inkscape.dt okular.dt xv.dt chromium.dt             \
+       firefox.dt Internet.dt nxclient.dt skype.dt thunderbird.dt      \
+       amarok.dt brasero.dt k3b.dt k9copy.dt Media_Tools.dt            \
+       pavucontrol.dt rhythmbox.dt rosegarden.dt sound-juicer.dt       \
+       vlc.dt xine.dt libreoffice-base.dt libreoffice-calc.dt          \
+       libreoffice-draw.dt libreoffice-impress.dt                      \
+       libreoffice-main.dt libreoffice-math.dt libreoffice-writer.dt   \
+       nedit.dt Office.dt xournal.dt caja.dt engrampa.dt               \
+       file-roller.dt firestarter.dt pgadmin.dt synaptic.dt            \
+       System.dt virtualbox.dt wicd.dt acroread.dt emacs.dt gv.dt      \
+       kile.dt mgv.dt TeX.dt xdvi.dt xournal.dt xpdf.dt
+
+CLEANFILES = $(BUILT_SOURCES)
+
+typesdir = $(CDE_INSTALLATION_TOP)/appconfig/types/$(LANG)
+dist_types_DATA = $(BUILT_SOURCES)
+
+TOP = $(top_builddir)/programs
+MERGE = $(top_builddir)/programs/localized/util/merge
+
+autoStart.dt: $(TOP)/types/autoStart.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+user-prefs.dt: $(TOP)/types/user-prefs.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+uxstd.dt: $(TOP)/types/uxstd.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dt.dt: $(TOP)/types/dt.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+develop.dt: $(TOP)/types/develop.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+datatypes.dt: $(TOP)/types/datatypes.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtappman.dt: $(TOP)/types/dtappman.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtfile.dt: $(TOP)/types/dtfile.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtims.dt: $(TOP)/types/dtims.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtinfo.dt: $(TOP)/types/dtinfo.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtpad.dt: $(TOP)/types/dtpad.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xclients.dt: $(TOP)/types/xclients.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dthelp.dt: $(TOP)/types/dthelp.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dthelpprint.dt: $(TOP)/types/dthelpprint.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+print.dt: $(TOP)/types/print.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dthelptag.dt: $(TOP)/types/dthelptag.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtmail.dt: $(TOP)/types/dtmail.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtwm.fp: $(TOP)/types/dtwm.fp _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+action: $(TOP)/types/action action.tmsg
+       $(MERGE) -lang $(LANG) action.tmsg < $< > $@ || $(RM) $@
+
+dtscreen.dt: $(TOP)/types/dtscreen.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtcm.dt: $(TOP)/types/dtcm.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dtbuilder.dt: $(TOP)/types/dtbuilder.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+miscActions.dt: $(TOP)/types/miscActions.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+miscImages.dt: $(TOP)/types/miscImages.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+IconBrowse.dt: $(TOP)/types/IconBrowse.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+DisplayImage.dt: $(TOP)/types/DisplayImage.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+DisplayPDF.dt: $(TOP)/types/DisplayPDF.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+DisplayVideo.dt: $(TOP)/types/DisplayVideo.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+DisplayPS.dt: $(TOP)/types/DisplayPS.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+acroread.dt: $(TOP)/types/acroread.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+videoTypes.dt: $(TOP)/types/videoTypes.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+amarok.dt: $(TOP)/types/amarok.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+brasero.dt: $(TOP)/types/brasero.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+caja.dt: $(TOP)/types/caja.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+chromium.dt: $(TOP)/types/chromium.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+dreamchess.dt: $(TOP)/types/dreamchess.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+eboard.dt: $(TOP)/types/eboard.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Education.dt: $(TOP)/types/Education.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+emacs.dt: $(TOP)/types/emacs.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+engrampa.dt: $(TOP)/types/engrampa.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+file-roller.dt: $(TOP)/types/file-roller.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+firefox.dt: $(TOP)/types/firefox.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+firestarter.dt: $(TOP)/types/firestarter.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+fontforge.dt: $(TOP)/types/fontforge.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Games.dt: $(TOP)/types/Games.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+gcompris.dt: $(TOP)/types/gcompris.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+geogebra.dt: $(TOP)/types/geogebra.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+gimp.dt: $(TOP)/types/gimp.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Graphics.dt: $(TOP)/types/Graphics.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+gv.dt: $(TOP)/types/gv.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+inkscape.dt: $(TOP)/types/inkscape.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Internet.dt: $(TOP)/types/Internet.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+k3b.dt: $(TOP)/types/k3b.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+k9copy.dt: $(TOP)/types/k9copy.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+kile.dt: $(TOP)/types/kile.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+ktuberling.dt: $(TOP)/types/ktuberling.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+lbreakout2.dt: $(TOP)/types/lbreakout2.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-base.dt: $(TOP)/types/libreoffice-base.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-calc.dt: $(TOP)/types/libreoffice-calc.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-draw.dt: $(TOP)/types/libreoffice-draw.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-impress.dt: $(TOP)/types/libreoffice-impress.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-main.dt: $(TOP)/types/libreoffice-main.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-math.dt: $(TOP)/types/libreoffice-math.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+libreoffice-writer.dt: $(TOP)/types/libreoffice-writer.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Media_Tools.dt: $(TOP)/types/Media_Tools.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+mgv.dt: $(TOP)/types/mgv.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+nedit.dt: $(TOP)/types/nedit.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+nxclient.dt: $(TOP)/types/nxclient.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+Office.dt: $(TOP)/types/Office.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+okular.dt: $(TOP)/types/okular.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+pavucontrol.dt: $(TOP)/types/pavucontrol.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+pgadmin.dt: $(TOP)/types/pgadmin.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+powermanga.dt: $(TOP)/types/powermanga.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+pychess.dt: $(TOP)/types/pychess.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+rhythmbox.dt: $(TOP)/types/rhythmbox.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+rosegarden.dt: $(TOP)/types/rosegarden.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+skype.dt: $(TOP)/types/skype.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+sound-juicer.dt: $(TOP)/types/sound-juicer.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+stellarium.dt: $(TOP)/types/stellarium.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+supertux.dt: $(TOP)/types/supertux.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+synaptic.dt: $(TOP)/types/synaptic.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+System.dt: $(TOP)/types/System.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+TeX.dt: $(TOP)/types/TeX.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+thunderbird.dt: $(TOP)/types/thunderbird.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+tuxpaint.dt: $(TOP)/types/tuxpaint.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+virtualbox.dt: $(TOP)/types/virtualbox.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+vlc.dt: $(TOP)/types/vlc.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+wicd.dt: $(TOP)/types/wicd.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xboard.dt: $(TOP)/types/xboard.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xdvi.dt: $(TOP)/types/xdvi.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xine.dt: $(TOP)/types/xine.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xournal.dt: $(TOP)/types/xournal.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xpdf.dt: $(TOP)/types/xpdf.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
+
+xv.dt: $(TOP)/types/xv.dt _common.dt.tmsg
+       $(MERGE) -lang $(LANG) _common.dt.tmsg < $< > $@ || $(RM) $@
diff --git a/cde/programs/localized/util/Makefile.am b/cde/programs/localized/util/Makefile.am
new file mode 100644 (file)
index 0000000..be70d27
--- /dev/null
@@ -0,0 +1,5 @@
+noinst_PROGRAMS = merge mkcatdefs
+
+merge_SOURCES = merge.c
+
+mkcatdefs_SOURCES = mkcatdefs.c
index e51d1952ffc20f3ba46bc157cc01f959d995dcd8..576fb5fba6b829998c46f4aa48346ecfc38abef9 100644 (file)
@@ -95,6 +95,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <locale.h>
+#include <unistd.h>
 #include <nl_types.h>
 
 nl_catd catfile[2] = {NULL, NULL};     /* [0] for primary, [1] for default */
index c92dffb6b9913c5069ab28155785a02626972565..de8b2f8a6ae42795a1bd3db59c7e02e1607ddd92 100644 (file)
@@ -46,6 +46,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <locale.h>
+#include <unistd.h>
 #include <ctype.h>
 #include <ctype.h>
 
@@ -110,7 +111,7 @@ static int hash(char *);
  *         mkcatdefs <name> <msg_file>
  *
  *     Results are 1) Creates header file <name>.h.
- *                  2) Displays message file to stdout. The message file is 
+ *                  2) Displays message file to stdout. The message file is
  *                     ready to be used as input to gencat.
  *
  *     mkcatdefs takes a message definition file and produces
@@ -126,28 +127,28 @@ static int hash(char *);
  */
 
 int
-main (int argc, 
-      char *argv[]) 
+main (int argc,
+      char *argv[])
 {
   int i;
   char *cp;
   int count;
   char *t;
-  
+
   setlocale (LC_ALL,"");
-  
+
   /* usage: handle multiple files; -h option has to be at the end */
   if (argc < 3) {
-    fprintf (stderr, 
-            "mkcatdefs: Usage: %s header_file msg_file [msg_file...] [-h]\n", 
-            argv [0]); 
+    fprintf (stderr,
+            "mkcatdefs: Usage: %s header_file msg_file [msg_file...] [-h]\n",
+            argv [0]);
     exit (0);
   }
-  
+
   /* check if  include file should be created; -h is the last argument */
-  if (argv[argc-1][0] == '-' && argv[argc-1][1] == 'h') 
+  if (argv[argc-1][0] == '-' && argv[argc-1][1] == 'h')
     inclfile = 0;
-  
+
   /* open header output file */
   if (inclfile) {
     mname = argv [1];
@@ -178,14 +179,14 @@ main (int argc,
       }
     }
   } else sprintf (outname, "msg.h");
-  
-  
+
+
   /* open new msg output file */
   msgfp = stdout;
-  
-  /* if message descriptor files were specified then process each one in turn 
+
+  /* if message descriptor files were specified then process each one in turn
    */
-  
+
   if (inclfile == 0 )
     count = argc - 1;
   else
@@ -208,17 +209,17 @@ main (int argc,
       }
     }
   }
-  
+
   if (inclfile) {
     fflush (outfp);
     if (ferror (outfp)) {
-      fprintf (stderr, "mkcatdefs: There were write errors on file %s\n", 
+      fprintf (stderr, "mkcatdefs: There were write errors on file %s\n",
               outname);
       errflg = 1;
     }
     fclose (outfp);
   }
-  
+
   if (errflg) {
     fprintf (stderr, "mkcatdefs: Errors found: no %s created\n", outname);
     if (inclfile)  unlink(outname);
@@ -231,8 +232,8 @@ main (int argc,
                 outname);
        unlink (outname);
       }
-    } 
-    else 
+    }
+    else
       fprintf(stderr, "mkcatdefs: no %s created\n", outname);
   }
   exit (errflg);
@@ -260,16 +261,16 @@ mkcatdefs(char *fname)
   int n;
   int contin = 0;
   int len;             /* # bytes in a character */
-  
-  
+
+
   /* put out header for include file */
   if (inclfile)
     {
       fprintf (outfp, "/* $%s$ */\n", "XConsortium");
-      fprintf (outfp, "\n\n/* The following was generated from %s. */\n\n", 
+      fprintf (outfp, "\n\n/* The following was generated from %s. */\n\n",
               fname);
     }
-  
+
   /* process the message file */
   while (fgets(line, MAXLINELEN, descfile)) {
     line[MAXLINELEN-1] = '\0'; /* terminate in case length exceeded */
@@ -277,8 +278,8 @@ mkcatdefs(char *fname)
     for (cp=line; *cp; cp+=len) {
       len = mblen(cp, MB_CUR_MAX);
       if (len < 0) {
-       fprintf (stderr, 
-                "mkcatdefs: sourcefile contains invalid character:\n\t%s", 
+       fprintf (stderr,
+                "mkcatdefs: sourcefile contains invalid character:\n\t%s",
                 line);
        errflg = 1;
        return;
@@ -291,7 +292,7 @@ mkcatdefs(char *fname)
       for (cpt = cp; *cp; cp += len) {
        len = mblen(cp, MB_CUR_MAX);
        if (len < 0) {
-         fprintf (stderr, 
+         fprintf (stderr,
                   "mkcatdefs: sourcefile contains invalid character:\n\t%s",
                   line);
          errflg = 1;
@@ -310,19 +311,19 @@ mkcatdefs(char *fname)
          fputs (line, msgfp);
        continue; /* line is a comment */
       }
-      if ((strncmp (cp, "set", 3) == 0) && 
-         ((len = mblen(&(cp[3]), MB_CUR_MAX)) == 1) && 
+      if ((strncmp (cp, "set", 3) == 0) &&
+         ((len = mblen(&(cp[3]), MB_CUR_MAX)) == 1) &&
          (isspace(cp[3]) != 0)) {
        char setname [MAXIDLEN];
-       
+
        sscanf (cp+3+len, "%s", setname);
-       if (inclfile) 
-         fprintf (outfp, "\n/* definitions for set %s */\n", setname, "");
+       if (inclfile)
+         fprintf (outfp, "\n/* definitions for set %s */\n", setname);
        if (isdigit(setname[0])) {
          cpt = setname;
          do  {
            if (!isdigit(*cpt)) {
-             fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n", 
+             fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n",
                      setname);
              errflg = 1;
              return;
@@ -333,11 +334,11 @@ mkcatdefs(char *fname)
            setno = n;
          else {
            if (n == 0)
-             fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n", 
-                     setname); 
+             fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n",
+                     setname);
            else
-             fprintf(stderr, 
-                     "mkcatdefs: set # %d already assigned or sets not in ascending sequence\n", 
+             fprintf(stderr,
+                     "mkcatdefs: set # %d already assigned or sets not in ascending sequence\n",
                      n);
            errflg = 1;
            return;
@@ -347,15 +348,15 @@ mkcatdefs(char *fname)
          do  {
            len = mblen(cpt, MB_CUR_MAX);
            if (len <= 0) {
-             fprintf (stderr, 
+             fprintf (stderr,
                       "mkcatdefs: sourcefile contains invalid character:\n\t%s",
                       line);
              errflg = 1;
              return;
            }
            if (len == 1 && (isalnum(*cpt) == 0) && (*cpt != '_')) {
-             fprintf(stderr, 
-                     "mkcatdefs: %s is an invalid identifier\n", 
+             fprintf(stderr,
+                     "mkcatdefs: %s is an invalid identifier\n",
                      setname);
              errflg = 1;
              return;
@@ -382,12 +383,12 @@ mkcatdefs(char *fname)
          contin = 0;
       } else if (setno > 1) { /* set must have been seen first */
        char msgname [MAXIDLEN];
-       
+
        msgname [0] = '\0';
        if (sscanf (cp, "%s", msgname) && msgname[0]) {
          len = mblen(cp, MB_CUR_MAX);
          if (len < 0) {
-           fprintf (stderr, 
+           fprintf (stderr,
                     "mkcatdefs: sourcefile contains invalid character:\n\t%s",
                     line);
            errflg = 1;
@@ -398,15 +399,15 @@ mkcatdefs(char *fname)
            do  {
              len = mblen(cpt, MB_CUR_MAX);
              if (len < 0) {
-               fprintf (stderr, 
+               fprintf (stderr,
                         "mkcatdefs: sourcefile contains invalid character:\n\t%s",
                         line);
                errflg = 1;
                return;
              }
              if (len == 1 && (isalnum(*cpt) == 0) && (*cpt != '_')) {
-               fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n", 
-                       msgname);       
+               fprintf(stderr, "mkcatdefs: %s is an invalid identifier\n",
+                       msgname);
                errflg = 1;
                return;
              }
@@ -419,8 +420,8 @@ mkcatdefs(char *fname)
            if (chkcontin(line))
              contin = 1;
            if(insert(msgname,msgno++) < 0) {
-             fprintf(stderr, "mkcatdefs: name %s used more than once\n", 
-                     msgname); 
+             fprintf(stderr, "mkcatdefs: name %s used more than once\n",
+                     msgname);
              errflg = 1;
              return;
            }
@@ -440,11 +441,11 @@ mkcatdefs(char *fname)
            else {
              errflg = 1;
              if (n == 0)
-               fprintf(stderr, "mkcatdefs: %d is an invalid identifier\n", 
+               fprintf(stderr, "mkcatdefs: %d is an invalid identifier\n",
                        msgno);
-             else if (n == msgno) 
+             else if (n == msgno)
                fprintf(stderr,
-                       "mkcatdefs: message id %s already assigned to identifier\n", 
+                       "mkcatdefs: message id %s already assigned to identifier\n",
                        msgname);
              else
                fprintf(stderr,
@@ -458,7 +459,7 @@ mkcatdefs(char *fname)
       }
     fputs (line, msgfp);
   }
-  
+
   /* make sure the operations read/write operations were successful */
   if (ferror(descfile)) {
     fprintf (stderr, "mkcatdefs: There were read errors on file %s\n", inname);
@@ -479,17 +480,17 @@ mkcatdefs(char *fname)
  *          1 - continuation line.
  */
 static int
-chkcontin(char *line) 
+chkcontin(char *line)
 {
   int  len;            /* # bytes in character */
   wchar_t      wc;             /* process code of current character in line */
   wchar_t      wcprev;         /* process code of previous character in line */
-  
+
   for (wc=0; *line; line+=len) {
     wcprev = wc;
     len = mbtowc(&wc, line, MB_CUR_MAX);
     if (len < 0) {
-      fprintf (stderr, 
+      fprintf (stderr,
               "mkcatdefs: sourcefile contains invalid character:\n\t%s",
               line);
       errflg = 1;
@@ -518,9 +519,9 @@ static struct name *symtab[HASHSIZE];       /* hashed pointers to binary trees */
  *
  * FUNCTION: Insert symbol
  *
- * EXECUTION ENVIRONMENT: 
+ * EXECUTION ENVIRONMENT:
  *     User mode.
- * 
+ *
  * NOTES: These routines manipulate a symbol table for the mkcatdefs program.
  *       The symbol table is organized as a hashed set of binary trees. If the
  *       symbol being passed in is found then a -1 is returned, otherwise the
@@ -533,49 +534,49 @@ static struct name *symtab[HASHSIZE];     /* hashed pointers to binary trees */
  *         -1 - symbol exists.
  */
 
-static int 
+static int
 insert(char *tname,
        int seqno)
      /*
        tname - pointer to symbol
        seqno - integer value of symbol
        */
-     
+
 {
   struct name *ptr,*optr;
   int rslt = -1,i,hashval;
-  
+
   hashval = hash(tname);
   ptr = symtab[hashval];
-  
+
   /* search the binary tree for specified symbol */
   while (ptr && (rslt = strcmp(tname,ptr->regname))) {
-    optr=ptr;  
+    optr=ptr;
     if (rslt<0)
       ptr = ptr->left;
     else
       ptr = ptr->right;
   }
-  
+
   if (rslt == 0)  /* found the symbol already defined */
     return (-1);
-  else {          /* symbol not defined yet so put it into symbol table */    
+  else {          /* symbol not defined yet so put it into symbol table */
     ptr = (struct name *)calloc(sizeof(struct name), 1);
     ptr->regname = malloc(strlen(tname) + 1);
     strcpy (ptr->regname, tname);
     ptr->regnr = seqno;
-    
+
     /* not first entry in tree so update branch pointer */
     if (symtab[hashval]) {
       if (rslt < 0)
        optr->left = ptr;
       else
        optr->right = ptr;
-      
+
       /* first entry in tree so set the root pointer */
     } else
       symtab[hashval] = ptr;
-    
+
     return (0);
   }
 }
@@ -585,37 +586,37 @@ insert(char *tname,
  *
  * FUNCTION: Search for symbol
  *
- * EXECUTION ENVIRONMENT: 
+ * EXECUTION ENVIRONMENT:
  *     User mode.
- * 
+ *
  * NOTES: Searches for specific identifier. If found, return allocated number.
  *       If not found, return -1.
  *
  * RETURNS: Symbol sequence number if symbol is found.
  *          -1 if symbol is not found.
  */
-static int 
+static int
 nsearch (char *tname)
      /*
        tname - pointer to symbol
        */
-     
+
 {
   struct name *ptr,*optr;
   int rslt = -1,i,hashval;
-  
+
   hashval = hash(tname);
   ptr = symtab[hashval];
-  
+
   /* search the binary tree for specified symbol */
   while (ptr && (rslt = strcmp(tname,ptr->regname))) {
-    optr=ptr;  
+    optr=ptr;
     if (rslt<0)
       ptr = ptr->left;
     else
       ptr = ptr->right;
   }
-  
+
   if (rslt == 0)               /* found the symbol already defined */
     return(ptr->regnr);
   else
@@ -628,22 +629,22 @@ nsearch (char *tname)
  *
  * FUNCTION: Create hash value from symbol name.
  *
- * EXECUTION ENVIRONMENT: 
+ * EXECUTION ENVIRONMENT:
  *     User mode.
- * 
+ *
  * NOTES: Hash the symbol name using simple addition algorithm.
  *       Make sure that the hash value is in range when it is returned.
  *
  * RETURNS: A hash value.
  */
 
-static int 
+static int
 hash (char *name) /* pointer to symbol */
 {
   int hashval = 0;
-  
+
   while (*name)
     hashval += *name++;
-  
+
   return (hashval & HASHMAX);
 }
diff --git a/cde/programs/nsgmls/Makefile.am b/cde/programs/nsgmls/Makefile.am
new file mode 100644 (file)
index 0000000..280dff4
--- /dev/null
@@ -0,0 +1,142 @@
+CLEANFILES = $(GENERATED_SRCS)
+
+bin_PROGRAMS = nsgmls
+
+if LINUX
+nsgmls_CXXFLAGS = -DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST \
+                 -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST \
+                 -fno-implicit-templates
+endif
+
+if BSD
+nsgmls_CXXFLAGS = -DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST \
+                  -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST
+endif
+
+if SOLARIS
+nsgmls_CXXFLAGS = -DSP_VOLATILE= -DSP_CONST= -DSP_HAVE_LOCALE \
+                 -DSP_MULTI_BYTE -DSP_ANSI_CLASS_INST
+endif
+
+if HPUX
+nsgmls_CXXFLAGS = +a1 -z +T -DSP_VOLATILE= -DSP_CONST= -DSP_HAVE_LOCALE \
+                 -DSP_MULTI_BYTE -DSP_ANSI_CLASS_INST -I/opt/CC/include/CC
+endif
+
+if AIX
+nsgmls_CXXFLAGS = -DSP_VOLATILE=volatile -DSP_CONST=const \
+                 -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST
+endif
+
+.SUFFIXES: .m4
+.m4.C:
+       rm -f $@
+       $(M4) instmac.m4 $< >$@
+
+GENERATED_SRCS = app_inst.C                   \
+                 arc_inst.C                   \
+                 entmgr_inst.C                \
+                 nsgmls_inst.C                \
+                 parser_inst.C                \
+                 xentmgr_inst.C
+
+nsgmls_SOURCES = Allocator.C                  \
+                ArcEngine.C                  \
+                Attribute.C                  \
+                CharsetDecl.C                \
+                CharsetInfo.C                \
+                CharsetRegistry.C            \
+                CmdLineApp.C                 \
+                CodingSystem.C               \
+                ConsoleOutput.C              \
+                ContentState.C               \
+                ContentToken.C               \
+                DescriptorManager.C          \
+                Dtd.C                        \
+                EUCJPCodingSystem.C          \
+                ElementType.C                \
+                Entity.C                     \
+                EntityApp.C                  \
+                EntityCatalog.C              \
+                EntityDecl.C                 \
+                EntityManager.C              \
+                ErrnoMessageArg.C            \
+                ErrorCountEventHandler.C     \
+                Event.C                      \
+                EventGenerator.C             \
+                ExtendEntityManager.C        \
+                ExternalId.C                 \
+                Fixed2CodingSystem.C         \
+                GenericEventHandler.C        \
+                Group.C                      \
+                Hash.C                       \
+                IListBase.C                  \
+                ISO8859InputCodingSystem.C   \
+                Id.C                         \
+                IdentityCodingSystem.C       \
+                InputSource.C                \
+                InternalInputSource.C        \
+                Link.C                       \
+                LinkProcess.C                \
+                LiteralStorage.C             \
+                Location.C                   \
+                Lpd.C                        \
+                Markup.C                     \
+                Message.C                    \
+                MessageArg.C                 \
+                MessageEventHandler.C        \
+                MessageReporter.C            \
+                MessageTable.C               \
+                ModeInfo.C                   \
+                Notation.C                   \
+                NumericCharRefOrigin.C       \
+                OffsetOrderedList.C          \
+                OpenElement.C                \
+                OutputCharStream.C           \
+                OutputState.C                \
+                Parser.C                     \
+                Param.C                      \
+                ParserApp.C                  \
+                ParserEventGeneratorKit.C    \
+                ParserOptions.C              \
+                ParserState.C                \
+                Partition.C                  \
+                PosixStorage.C               \
+                RastEventHandler.C           \
+                Recognizer.C                 \
+                RewindStorageObject.C        \
+                SGMLApplication.C            \
+                SJISCodingSystem.C           \
+                SOEntityCatalog.C            \
+                Sd.C                         \
+                SdText.C                     \
+                SearchResultMessageArg.C     \
+                SgmlParser.C                 \
+                SgmlsEventHandler.C          \
+                ShortReferenceMap.C          \
+                StdioStorage.C               \
+                StorageManager.C             \
+                StringSet.C                  \
+                StringVectorMessageArg.C     \
+                Syntax.C                     \
+                Text.C                       \
+                TokenMessageArg.C            \
+                TranslateInputCodingSystem.C \
+                TrieBuilder.C                \
+                TypeId.C                     \
+                URLStorage.C                 \
+                UTF8CodingSystem.C           \
+                Undo.C                       \
+                UnicodeCodingSystem.C        \
+                UnivCharsetDesc.C            \
+                assert.C                     \
+                nsgmls.C                     \
+                parseAttribute.C             \
+                parseCommon.C                \
+                parseDecl.C                  \
+                parseInstance.C              \
+                parseMode.C                  \
+                parseParam.C                 \
+                parseSd.C                    \
+                splib.C                      \
+                $(GENERATED_SRCS)
diff --git a/cde/programs/palettes/Makefile.am b/cde/programs/palettes/Makefile.am
new file mode 100644 (file)
index 0000000..32abd4b
--- /dev/null
@@ -0,0 +1,14 @@
+palettedir = $(CDE_INSTALLATION_TOP)/share/palettes
+
+dist_palette_DATA = Alpine.dp Chocolate.dp Grass.dp PBNJ.dp Tundra.dp  \
+       Arizona.dp Cinnamon.dp GrayScale.dp Sand.dp Urchin.dp           \
+       BeigeRose.dp Clay.dp Lilac.dp SantaFe.dp Wheat.dp Black.dp      \
+       Crimson.dp Mustard.dp Savannah.dp WhiteBlack.dp BlackWhite.dp   \
+       DarkGold.dp Neptune.dp SeaFoam.dp White.dp Broica.dp            \
+       Default.dp NorthernSky.dp SkyRed.dp Cabernet.dp Delphinium.dp   \
+       Nutmeg.dp SoftBlue.dp Camouflage.dp Desert.dp Olive.dp          \
+       SouthWest.dp Charcoal.dp Golden.dp Orchid.dp Summer.dp
+
+install-data-hook:
+       $(RM) $(DESTDIR)$(CDE_INSTALLATION_TOP)/palettes
+       cd $(DESTDIR)$(CDE_INSTALLATION_TOP)/ && $(LN_S) share/palettes palettes
diff --git a/cde/programs/tttypes/Makefile.am b/cde/programs/tttypes/Makefile.am
new file mode 100644 (file)
index 0000000..47471a4
--- /dev/null
@@ -0,0 +1,34 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+# We need to ensure that the jobs here are run in sequence to build up
+# the types.xdr file.
+.NOTPARALLEL:
+
+SUFFIXES: .ptype .done
+
+# FIXME - dtinfo ones use #include which seems to fail with syntax error...
+
+LOCALDEPFILES = \
+        dtfile.done \
+        dticon.done \
+        dtpad.done \
+        dtcm.done \
+        dtmail.done \
+        dtdbcache.done \
+        dtterm.done \
+        dtinfo.done \
+        dtinfo_start.done
+
+BUILT_SOURCES = types.xdr
+CLEANFILES = *.done types.xdr .tt_lock
+
+tttypesdir = $(CDE_INSTALLATION_TOP)/appconfig/tttypes
+dist_tttypes_DATA = $(BUILT_SOURCES)
+
+types.xdr: $(LOCALDEPFILES)
+
+TT_TYPE_COMP = $(top_builddir)/lib/tt/bin/tt_type_comp/tt_type_comp
+
+.ptype.done:
+       $(RM) $@
+       TTPATH=. $(TT_TYPE_COMP) -sd user -m $< && touch $@ ; $(RM) .tt_lock
diff --git a/cde/programs/types/Makefile.am b/cde/programs/types/Makefile.am
new file mode 100644 (file)
index 0000000..836b2e2
--- /dev/null
@@ -0,0 +1,142 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+       -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) -DKORNSHELL=$(KSH) \
+       -DDTKORNSHELL=$(CDE_INSTALLATION_TOP)/bin/dtksh
+
+if SOLARIS
+LOCAL_CPP_DEFINES += -D__sun
+endif
+
+BUILT_SOURCES = autoStart.dt compat.dt datatypes.dt develop.dt         \
+       dtappman.dt dt.dt dtfile.dt dthelp.dt dthelpprint.dt            \
+       dthelptag.dt dtims.dt dtinfo.dt dtpad.dt dtscreen.dt            \
+       dt.softinit dtwm.fp error.ds hp.dt ibm.dt IconBrowse.dt         \
+       laserrom.dt miscActions.dt miscImages.dt print.dt               \
+       printerNN.dt sunOW.dt unsupported.dt user-prefs.dt uxstd.dt     \
+       xclients.dt
+
+CLEANFILES = $(BUILT_SOURCES)
+
+# Use -C to GENCPP to preserve /* and */ sequences
+
+autoStart.dt: autoStart.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+compat.dt: compat.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+datatypes.dt: datatypes.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+develop.dt: develop.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtappman.dt: dtappman.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dt.dt: dt.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtfile.dt: dtfile.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dthelp.dt: dthelp.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dthelpprint.dt: dthelpprint.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dthelptag.dt: dthelptag.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtims.dt: dtims.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtinfo.dt: dtinfo.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtpad.dt: dtpad.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtscreen.dt: dtscreen.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dt.softinit: dt.softinit.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+dtwm.fp: dtwm.fp.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+error.ds: error.ds.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+hp.dt: hp.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+ibm.dt: ibm.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+IconBrowse.dt: IconBrowse.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+laserrom.dt: laserrom.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+miscActions.dt: miscActions.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+miscImages.dt: miscImages.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+print.dt: print.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+printerNN.dt: printerNN.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+sunOW.dt: sunOW.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+unsupported.dt: unsupported.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+user-prefs.dt: user-prefs.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+uxstd.dt: uxstd.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
+xclients.dt: xclients.dt.src
+       $(RM) $@
+       $(GENCPP) -P -C -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
+
index 802cd638434fb216df935a3a3007b7603e4e816a..7965713e4818c433063fe32a27ff2e48f67a2280 100644 (file)
@@ -320,7 +320,6 @@ ACTION Open
 ACTION Print
 {
         LABEL           %|nls-2-Print|
-       LABEL           Print
        ARG_TYPE        AVI
        TYPE            MAP
        MAP_ACTION              NoPrint
diff --git a/cde/programs/util/Makefile.am b/cde/programs/util/Makefile.am
new file mode 100644 (file)
index 0000000..496892b
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = dttypes
diff --git a/cde/programs/util/dttypes/Makefile.am b/cde/programs/util/dttypes/Makefile.am
new file mode 100644 (file)
index 0000000..83d3e75
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dttypes
+
+dttypes_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+if SOLARIS
+dttypes_LDADD += -ldl -lgen
+endif
+
index 164da2f5fafa4e25506e079183f7289b1a24a5a8..347067f937bd3014c5a6ae803811cdf71d66f954 100644 (file)
@@ -57,6 +57,10 @@ static       int     rexp_errno = 0;
 #endif 
 
 extern char ** _DtsMMListDb(void);
+
+int usage(void);
+
+
 static enum    errors
 {
        BAD_DB,
diff --git a/cde/util/Makefile.am b/cde/util/Makefile.am
new file mode 100644 (file)
index 0000000..97a96d6
--- /dev/null
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = tradcpp
+
+
diff --git a/cde/util/tradcpp/CHANGES b/cde/util/tradcpp/CHANGES
new file mode 100644 (file)
index 0000000..3c92d44
--- /dev/null
@@ -0,0 +1,91 @@
+release 0.5.3 (20190121)
+   - Fix markup typo in the man page.
+   - Abort on line numbering or column numbering overflow. Line
+     numbers are limited to values that fit in "unsigned int". Also
+     reject input lines longer than 2^32-1 characters. It seems
+     reasonable to presume that any input that violates these
+     constraints is someone screwing around and not a serious attempt
+     to compile or preprocess anything useful. Done in response to
+     n2129, but without getting into any of the silliness found there.
+   - Recognize __ia64__ for IA64 builds.
+   - Recognize __aarch64__ for 64-bit ARM builds, as sent in by
+     various people.
+   - Recognize __riscv__ and __riscv64__ for risc-v builds.
+
+release 0.5.2 (20160904)
+   - Fix typo in -U usage message, noticed by Joerg.
+   - Add a -debuglog option to send an execution trace to a file.
+     Intended to be used when debugging imake templates and other
+     complex input, not for debugging tradcpp itself.
+
+release 0.5.1 (20150612)
+   - Fix a stupid regression in 0.5 that causes it to not recognize a
+     pile of options.
+   - Fix output corruption caused by mishandling which macros are
+     currently in use. In particular, "curmacro" is only valid while
+     we're parsing a macro name and arguments, and can change once we
+     start expanding, so don't use it to clear the in-use flag. This
+     problem has been around all along but was only just exposed.
+   - Also don't set curmacro to null after calling expand_domacro as
+     that can cause us to think a macro name we just read is defined().
+     This one was introduced in 0.5.
+   - Don't use "remove" as a local variable as gcc 4.1 gets upset
+     about it vs. remove(3) in stdio.h.
+
+release 0.5 (20150612)
+   - Don't report unclosed comments as "No newline at end of file".
+   - Don't rely on <stdbool.h> existing, as (predictably) it doesn't
+     work on Solaris.
+   - Similarly, don't rely on C11 anonymous unions as the Solaris
+     compiler vomits on them.
+   - Typo fix in man page from Jason McIntyre; and change "Usage" to
+     "usage" in usage for pedantic reasons, from Igor Sobrado.
+   - Accept "-" as either input or output file name to mean stdin or
+     stdout respectively. Suggested by Jonathan Gray.
+   - Fix output spacing behavior to match gcc when newlines appear in or
+     while looking for macro arguments. Partly from Joerg Sonnenberger.
+   - Implement __FILE__ and __LINE__ macros. Mostly from Joerg Sonnenberger.
+   - Implement #line. Partly from Joerg Sonnenberger.
+   - Declare usage() with PF(). From wiz.
+
+release 0.4 (20130713)
+   - Fix stupid build problem introduced in 0.3.1.
+   - Accept and ignore -m32, which imake issues willy-nilly on a bunch
+     of platforms. I thought this had already been done, but apparently
+     not.
+   - Don't use the <err.h> functions. There are still people out there
+     using legacy systems missing them.
+   - Sort out some more issues pertaining to handling quoted strings.
+   - Add some more tests.
+
+release 0.3.1 (20130709)
+   - Don't leak memory and assert if a bad command-line option comes
+     after a -D or a -include foo.
+   - Since imake is a principal application for tradcpp and imake carefully
+     hides what it's doing when you run it, when rejecting an invalid option
+     be sure to report *what* that option is.
+
+release 0.3 (20130616)
+   - Don't eval the control expression of the first #if of a block when
+     already in a false block; it might not be valid. Reported by
+     Baptiste Daroussin.
+   - Don't recognize comments within character constants.
+   - Don't recognize macro argument parentheses or commas within strings,
+     or within character constants either.
+
+release 0.2 (20130611)
+   - auto-recognize more builtin PowerPC and mips macros
+   - pass -Wunused (partly from Baptiste Daroussin)
+   - allow absolute paths in include files (partly from Baptiste Daroussin)
+   - don't use getprogname() in the name of portability
+   - add tests arising from December 2010 tech-toolchain thread (one
+     from der Mouse, one of mine)
+   - clean out usage of sys/cdefs.h macros and don't use the implementation
+     namespace
+   - make -Wcomment work again
+   - fix handling of relative includes
+   - provide a man page
+   - other minor improvements
+
+release 0.1 (20130610)
+   - first release, works with at least some imake templates
diff --git a/cde/util/tradcpp/Makefile.am b/cde/util/tradcpp/Makefile.am
new file mode 100644 (file)
index 0000000..1a1c86d
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = tradcpp
+
+tradcpp_SOURCES = array.c directive.c files.c macro.h output.h         \
+       utils.c array.h directive.h files.h main.c place.c utils.h      \
+       bool.h eval.c inlinedefs.h mode.h place.h version.h config.h    \
+       eval.h macro.c output.c union.h
+
+
diff --git a/cde/util/tradcpp/TODO b/cde/util/tradcpp/TODO
new file mode 100644 (file)
index 0000000..8539585
--- /dev/null
@@ -0,0 +1,37 @@
+not implemented:
+       - mode.input_allow_dollars.
+       - column counts do not take tabstops into account.
+       - mode.output_linenumbers.
+       - mode.do_depend.
+       - mode.do_macrolist.
+       - mode.do_trace.
+       - warns.endiflabels. (they cause errors)
+       - warns.unused. 
+       - the -iremap option.
+       - $CPP_RESTRICTED
+       - other environment variables
+
+tidy up:
+       - get rid of inlinedefs.h
+       - use of places in and below macro.c is pretty bogus.
+       - macro code should be reworked.
+       - place_changefile is manky and wastes memory. Also, in an ideal
+         world we'd remember the place #line changed the name and refer
+         to it when printing errors.
+
+fix:
+       - "#if 0 && 1/0" should not crash; fix eval method.
+       - quote characters and comment delimiters that are emitted by
+         macros are not recognized. See:
+               t34 (should produce a quote and FOO Q)
+               t35 (similarly, this test may be redundant once it's fixed)
+               t36 (C(3) should produce nothing)
+               t37 (BC foo EC should produce nothing)
+         Joerg says comments like in t36 should be stripped exactly
+         twice, once when the macro is defined and again when it's
+         expanded. Note that gcc's cpp -traditional is getting t37
+         wrong, and it gets t36 wrong with -C.
+       - remove the intentionally undocumented -p option and generate
+         proper linenumber output. (also, in this code what happens if
+         a comment spans files? I bet currently it will emit the line
+         number into the comment.)
diff --git a/cde/util/tradcpp/array.c b/cde/util/tradcpp/array.c
new file mode 100644 (file)
index 0000000..09ffa45
--- /dev/null
@@ -0,0 +1,115 @@
+/*-
+ * Copyright (c) 2009 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+
+#define ARRAYINLINE
+#include "array.h"
+
+struct array *
+array_create(void)
+{
+       struct array *a;
+
+       a = domalloc(sizeof(*a));
+       array_init(a);
+       return a;
+}
+
+void
+array_destroy(struct array *a)
+{
+       array_cleanup(a);
+       dofree(a, sizeof(*a));
+}
+
+void
+array_init(struct array *a)
+{
+       a->num = a->max = 0;
+       a->v = NULL;
+}
+
+void
+array_cleanup(struct array *a)
+{
+       arrayassert(a->num == 0);
+       dofree(a->v, a->max * sizeof(a->v[0]));
+#ifdef ARRAYS_CHECKED
+       a->v = NULL;
+#endif
+}
+
+void
+array_setsize(struct array *a, unsigned num)
+{
+       unsigned newmax;
+       void **newptr;
+
+       if (num > a->max) {
+               newmax = a->max;
+               while (num > newmax) {
+                       newmax = newmax ? newmax*2 : 4;
+               }
+               newptr = dorealloc(a->v, a->max * sizeof(a->v[0]),
+                                  newmax * sizeof(a->v[0]));
+               a->v = newptr;
+               a->max = newmax;
+       }
+       a->num = num;
+}
+
+void
+array_insert(struct array *a, unsigned index_)
+{
+       unsigned movers;
+
+       arrayassert(a->num <= a->max);
+       arrayassert(index_ < a->num);
+
+       movers = a->num - index_;
+
+       array_setsize(a, a->num + 1);
+
+       memmove(a->v + index_+1, a->v + index_, movers*sizeof(*a->v));
+}
+
+void
+array_remove(struct array *a, unsigned index_)
+{
+       unsigned movers;
+
+       arrayassert(a->num <= a->max);
+       arrayassert(index_ < a->num);
+
+       movers = a->num - (index_ + 1);
+       memmove(a->v + index_, a->v + index_+1, movers*sizeof(*a->v));
+       a->num--;
+}
diff --git a/cde/util/tradcpp/array.h b/cde/util/tradcpp/array.h
new file mode 100644 (file)
index 0000000..2fa4741
--- /dev/null
@@ -0,0 +1,279 @@
+/*-
+ * Copyright (c) 2009 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef ARRAY_H
+#define ARRAY_H
+
+#include "inlinedefs.h" // XXX
+#include "utils.h"
+
+#define ARRAYS_CHECKED
+
+#ifdef ARRAYS_CHECKED
+#include <assert.h>
+#define arrayassert assert
+#else
+#define arrayassert(x) ((void)(x))
+#endif
+
+#ifndef ARRAYINLINE
+#define ARRAYINLINE C99INLINE
+#endif
+
+////////////////////////////////////////////////////////////
+// type and base operations
+
+struct array {
+       void **v;
+       unsigned num, max;
+};
+
+struct array *array_create(void);
+void array_destroy(struct array *);
+void array_init(struct array *);
+void array_cleanup(struct array *);
+ARRAYINLINE unsigned array_num(const struct array *);
+ARRAYINLINE void *array_get(const struct array *, unsigned index_);
+ARRAYINLINE void array_set(const struct array *, unsigned index_, void *val);
+void array_setsize(struct array *, unsigned num);
+ARRAYINLINE void array_add(struct array *, void *val, unsigned *index_ret);
+void array_insert(struct array *a, unsigned index_);
+void array_remove(struct array *a, unsigned index_);
+
+////////////////////////////////////////////////////////////
+// inlining for base operations
+
+ARRAYINLINE unsigned
+array_num(const struct array *a)
+{
+       return a->num;
+}
+
+ARRAYINLINE void *
+array_get(const struct array *a, unsigned index_)
+{
+       arrayassert(index_ < a->num);
+       return a->v[index_];
+}
+
+ARRAYINLINE void
+array_set(const struct array *a, unsigned index_, void *val)
+{
+       arrayassert(index_ < a->num);
+       a->v[index_] = val;
+}
+
+ARRAYINLINE void
+array_add(struct array *a, void *val, unsigned *index_ret)
+{
+       unsigned index_ = a->num;
+       array_setsize(a, index_+1);
+       a->v[index_] = val;
+       if (index_ret != NULL) {
+               *index_ret = index_;
+       }
+}
+
+////////////////////////////////////////////////////////////
+// bits for declaring and defining typed arrays
+
+/*
+ * Usage:
+ *
+ * DECLARRAY_BYTYPE(foo, bar, INLINE) declares "struct foo", which is
+ * an array of pointers to "bar", plus the operations on it.
+ *
+ * DECLARRAY(foo, INLINE) is equivalent to
+ * DECLARRAY_BYTYPE(fooarray, struct foo, INLINE).
+ *
+ * DEFARRAY_BYTYPE and DEFARRAY are the same as DECLARRAY except that
+ * they define the operations.
+ *
+ * The argument INLINE can be used as follows:
+ *
+ * 1. For no inlining:
+ *    In foo.h:
+ *           DECLARRAY(foo, );
+ *    In foo.c:
+ *           DEFARRAY(foo, );
+ *
+ * 2. To be file-static:
+ *    In foo.c:
+ *           DECLARRAY(foo, static);
+ *           DEFARRAY(foo, static);
+ *
+ * 3. To inline using C99:
+ *    In foo.h:
+ *           DECLARRAY(foo, inline);
+ *           DEFARRAY(foo, inline);
+ *
+ * 4. To inline with old gcc:
+ *    In foo.h:
+ *           #ifndef FOO_INLINE
+ *           #define FOO_INLINE extern inline
+ *           #endif
+ *           DECLARRAY(foo, );
+ *           DEFARRAY(foo, FOO_INLINE);
+ *    In foo.c:
+ *           #define FOO_INLINE
+ *           #include "foo.h"
+ *
+ * 5. To inline such that it works both with old gcc and C99:
+ *    In foo.h:
+ *           #ifndef FOO_INLINE
+ *           #define FOO_INLINE extern inline
+ *           #endif
+ *           DECLARRAY(foo, FOO_INLINE);
+ *           DEFARRAY(foo, FOO_INLINE);
+ *    In foo.c:
+ *           #define FOO_INLINE
+ *           #include "foo.h"
+ *
+ * The mechanism in case (4) ensures that an externally linkable
+ * definition exists.
+ */
+
+#define DECLARRAY_BYTYPE(ARRAY, T, INLINE) \
+       struct ARRAY {                                                  \
+               struct array arr;                                       \
+       };                                                              \
+                                                                       \
+       INLINE struct ARRAY *ARRAY##_create(void);                      \
+       INLINE void ARRAY##_destroy(struct ARRAY *a);                   \
+       INLINE void ARRAY##_init(struct ARRAY *a);                      \
+       INLINE void ARRAY##_cleanup(struct ARRAY *a);                   \
+       INLINE unsigned ARRAY##_num(const struct ARRAY *a);             \
+       INLINE T *ARRAY##_get(const struct ARRAY *a, unsigned index_);  \
+       INLINE void ARRAY##_set(struct ARRAY *a, unsigned index_, T *val); \
+       INLINE void ARRAY##_setsize(struct ARRAY *a, unsigned num);     \
+       INLINE void ARRAY##_add(struct ARRAY *a, T *val, unsigned *index_ret);\
+       INLINE void ARRAY##_insert(struct ARRAY *a, unsigned index_);   \
+       INLINE void ARRAY##_remove(struct ARRAY *a, unsigned index_)
+
+
+#define DEFARRAY_BYTYPE(ARRAY, T, INLINE) \
+       INLINE void                                             \
+       ARRAY##_init(struct ARRAY *a)                           \
+       {                                                       \
+               array_init(&a->arr);                            \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_cleanup(struct ARRAY *a)                        \
+       {                                                       \
+               array_cleanup(&a->arr);                         \
+       }                                                       \
+                                                               \
+       INLINE struct                                           \
+       ARRAY *ARRAY##_create(void)                             \
+       {                                                       \
+               struct ARRAY *a;                                \
+                                                               \
+               a = domalloc(sizeof(*a));                       \
+               ARRAY##_init(a);                                \
+               return a;                                       \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_destroy(struct ARRAY *a)                        \
+       {                                                       \
+               ARRAY##_cleanup(a);                             \
+               dofree(a, sizeof(*a));                          \
+       }                                                       \
+                                                               \
+       INLINE unsigned                                         \
+       ARRAY##_num(const struct ARRAY *a)                      \
+       {                                                       \
+               return array_num(&a->arr);                      \
+       }                                                       \
+                                                               \
+       INLINE T *                                              \
+       ARRAY##_get(const struct ARRAY *a, unsigned index_)     \
+       {                                                       \
+               return (T *)array_get(&a->arr, index_);         \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_set(struct ARRAY *a, unsigned index_, T *val)   \
+       {                                                       \
+               array_set(&a->arr, index_, (void *)val);        \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_setsize(struct ARRAY *a, unsigned num)          \
+       {                                                       \
+               array_setsize(&a->arr, num);                    \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_add(struct ARRAY *a, T *val, unsigned *ret)     \
+       {                                                       \
+               array_add(&a->arr, (void *)val, ret);           \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_insert(struct ARRAY *a, unsigned index_)        \
+       {                                                       \
+               array_insert(&a->arr, index_);                  \
+       }                                                       \
+                                                               \
+       INLINE void                                             \
+       ARRAY##_remove(struct ARRAY *a, unsigned index_)        \
+       {                                                       \
+               array_remove(&a->arr, index_);                  \
+       }
+
+#define DECLARRAY(T, INLINE) DECLARRAY_BYTYPE(T##array, struct T, INLINE)
+#define DEFARRAY(T, INLINE) DEFARRAY_BYTYPE(T##array, struct T, INLINE)
+
+#define DESTROYALL_ARRAY(T, INLINE) \
+       INLINE void T##array_destroyall(struct T##array *arr);  \
+                                                       \
+       INLINE void                                     \
+       T##array_destroyall(struct T##array *arr)       \
+       {                                               \
+               unsigned i, num;                        \
+               struct T *t;                            \
+                                                       \
+               num = T##array_num(arr);                \
+               for (i=0; i<num; i++) {                 \
+                       t = T##array_get(arr, i);       \
+                       T##_destroy(t);                 \
+               }                                       \
+               T##array_setsize(arr, 0);               \
+       }
+
+
+////////////////////////////////////////////////////////////
+// basic array types
+
+DECLARRAY_BYTYPE(stringarray, char, ARRAYINLINE);
+DEFARRAY_BYTYPE(stringarray, char, ARRAYINLINE);
+
+#endif /* ARRAY_H */
diff --git a/cde/util/tradcpp/bool.h b/cde/util/tradcpp/bool.h
new file mode 100644 (file)
index 0000000..cf86ffb
--- /dev/null
@@ -0,0 +1,41 @@
+/*-
+ * Copyright (c) 2015 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef BOOL_H
+#define BOOL_H
+
+#if __STDC__ > 199901
+#include <stdbool.h>
+#else
+typedef int bool;
+#define true 1
+#define false 0
+#endif
+
+#endif /* BOOL_H */
diff --git a/cde/util/tradcpp/config.h b/cde/util/tradcpp/config.h
new file mode 100644 (file)
index 0000000..c42dcc5
--- /dev/null
@@ -0,0 +1,174 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Config for predefined macros. If this doesn't do what you want you
+ * can set any or all of the CONFIG_ defines from the compiler command
+ * line; or patch the list in main.c; or both.
+ */
+
+/*
+ * Paths
+ */
+
+#ifndef CONFIG_LOCALINCLUDE
+#define CONFIG_LOCALINCLUDE "/usr/local/include"
+#endif
+
+#ifndef CONFIG_SYSTEMINCLUDE
+#define CONFIG_SYSTEMINCLUDE "/usr/include"
+#endif
+
+/*
+ * Operating system
+ */
+
+#ifndef CONFIG_OS
+#if defined(__NetBSD__)
+#define CONFIG_OS "__NetBSD__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__FreeBSD__)
+#define CONFIG_OS "__FreeBSD__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__OpenBSD__)
+#define CONFIG_OS "__OpenBSD__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__DragonFly__)
+#define CONFIG_OS "__DragonFly__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__bsdi__)
+#define CONFIG_OS "__bsdi__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__sun)
+#define CONFIG_OS "__sun"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__sgi)
+#define CONFIG_OS "__sgi"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__SVR4)
+#define CONFIG_OS "__SVR4"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__APPLE__)
+#define CONFIG_OS "__APPLE__"
+#define CONFIG_OS_2 "__unix__"
+#elif defined(__linux__)
+#define CONFIG_OS "__linux__"
+#elif defined(__CYGWIN__)
+#define CONFIG_OS "__CYGWIN__"
+#elif defined(__INTERIX)
+#define CONFIG_OS "__INTERIX"
+#elif defined(__MINGW32)
+#define CONFIG_OS "__MINGW32"
+#else
+/* we could error... but let's instead assume generic unix */
+#define CONFIG_OS "__unix__"
+#endif
+#endif
+
+/*
+ * CPU
+ */
+
+#ifndef CONFIG_CPU
+#if defined(__x86_64__)
+#define CONFIG_CPU "__x86_64__"
+#define CONFIG_CPU_2 "__amd64__"
+#elif defined(__i386__) || defined(__i386)
+#define CONFIG_CPU "__i386__"
+#define CONFIG_CPU_2 "__i386"
+#elif defined(__sparc)
+#define CONFIG_CPU "__sparc"
+#elif defined(__mips)
+#define CONFIG_CPU "__mips"
+#elif defined(__mips__)
+#define CONFIG_CPU "__mips__"
+#elif defined(__mipsel__)
+#define CONFIG_CPU "__mipsel__"
+#elif defined(__POWERPC__)
+#define CONFIG_CPU "__POWERPC__"
+#elif defined(__POWERPC__)
+#define CONFIG_CPU "__powerpc__"
+#elif defined(__PPC__)
+#define CONFIG_CPU "__PPC__"
+#elif defined(__ppc__)
+#define CONFIG_CPU "__ppc__"
+#elif defined(__PPC64__)
+#define CONFIG_CPU "__PPC64__"
+#elif defined(__ppc64__)
+#define CONFIG_CPU "__ppc64__"
+#elif defined(__ARM__)
+#define CONFIG_CPU "__ARM__"
+#elif defined(__AARCH64__)
+#define CONFIG_CPU "__AARCH64__"
+#elif defined(__aarch64__)
+#define CONFIG_CPU "__aarch64__"
+#elif defined(__RISCV__)
+#define CONFIG_CPU "__RISCV__"
+#elif defined(__riscv__)
+#define CONFIG_CPU "__riscv__"
+#elif defined(__RISCV64__)
+#define CONFIG_CPU "__RISCV64__"
+#elif defined(__riscv64__)
+#define CONFIG_CPU "__riscv64__"
+#elif defined(__riscv64)
+#define CONFIG_CPU "__riscv64"
+#elif defined(__ia64__)
+#define CONFIG_CPU "__ia64__"
+#else
+/* let it go */
+#endif
+#endif
+
+/*
+ * Other stuff
+ */
+
+#ifndef CONFIG_SIZE
+#ifdef __LP64__
+#define CONFIG_SIZE "__LP64__"
+#else
+#define CONFIG_SIZE "__ILP32__"
+#endif
+#endif
+
+#ifndef CONFIG_BINFMT
+#ifdef __ELF__
+#define CONFIG_BINFMT "__ELF__"
+#endif
+#endif
+
+/*
+ * We are __TRADCPP__ by default, but if you want to masquerade as
+ * some other compiler this is a convenient place to change it.
+ */
+
+#ifndef CONFIG_COMPILER
+#define CONFIG_COMPILER "__TRADCPP__"
+#define CONFIG_COMPILER_MINOR "__TRADCPP_MINOR__"
+#endif
diff --git a/cde/util/tradcpp/directive.c b/cde/util/tradcpp/directive.c
new file mode 100644 (file)
index 0000000..308b5ac
--- /dev/null
@@ -0,0 +1,733 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <assert.h>
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+#include <errno.h>
+
+#include "bool.h"
+#include "utils.h"
+#include "mode.h"
+#include "place.h"
+#include "files.h"
+#include "directive.h"
+#include "macro.h"
+#include "eval.h"
+#include "output.h"
+
+struct ifstate {
+       struct ifstate *prev;
+       struct place startplace;
+       bool curtrue;
+       bool evertrue;
+       bool seenelse;
+};
+
+static struct ifstate *ifstate;
+
+////////////////////////////////////////////////////////////
+// common parsing bits
+
+static
+void
+uncomment(char *buf)
+{
+       char *s, *t, *u = NULL;
+       bool incomment = false;
+       bool inesc = false;
+       bool inquote = false;
+       char quote = '\0';
+
+       for (s = t = buf; *s; s++) {
+               if (incomment) {
+                       if (s[0] == '*' && s[1] == '/') {
+                               s++;
+                               incomment = false;
+                       }
+               } else {
+                       if (!inquote && s[0] == '/' && s[1] == '*') {
+                               incomment = true;
+                       } else {
+                               if (inesc) {
+                                       inesc = false;
+                               } else if (s[0] == '\\') {
+                                       inesc = true;
+                               } else if (!inquote &&
+                                          (s[0] == '"' || s[0] == '\'')) {
+                                       inquote = true;
+                                       quote = s[0];
+                               } else if (inquote && s[0] == quote) {
+                                       inquote = false;
+                               }
+
+                               if (t != s) {
+                                       *t = *s;
+                               }
+                               if (!strchr(ws, *t)) {
+                                       u = t;
+                               }
+                               t++;
+                       }
+               }
+       }
+       if (u) {
+               /* end string after last non-whitespace char */
+               u[1] = '\0';
+       } else {
+               *t = '\0';
+       }
+}
+
+static
+void
+oneword(const char *what, struct place *p2, char *line)
+{
+       size_t pos;
+
+       pos = strcspn(line, ws);
+       if (line[pos] != '\0') {
+               place_addcolumns(p2, pos);
+               complain(p2, "Garbage after %s argument", what);
+               complain_fail();
+               line[pos] = '\0';
+       }
+}
+
+////////////////////////////////////////////////////////////
+// if handling
+
+static
+struct ifstate *
+ifstate_create(struct ifstate *prev, struct place *p, bool startstate)
+{
+       struct ifstate *is;
+
+       is = domalloc(sizeof(*is));
+       is->prev = prev;
+       if (p != NULL) {
+               is->startplace = *p;
+       } else {
+               place_setbuiltin(&is->startplace, 1);
+       }
+       is->curtrue = startstate;
+       is->evertrue = is->curtrue;
+       is->seenelse = false;
+       return is;
+}
+
+static
+void
+ifstate_destroy(struct ifstate *is)
+{
+       dofree(is, sizeof(*is));
+}
+
+static
+void
+ifstate_push(struct place *p, bool startstate)
+{
+       struct ifstate *newstate;
+
+       newstate = ifstate_create(ifstate, p, startstate);
+       if (!ifstate->curtrue) {
+               newstate->curtrue = false;
+               newstate->evertrue = true;
+       }
+       ifstate = newstate;
+}
+
+static
+void
+ifstate_pop(void)
+{
+       struct ifstate *is;
+
+       is = ifstate;
+       ifstate = ifstate->prev;
+       ifstate_destroy(is);
+}
+
+static
+void
+d_if(struct lineplace *lp, struct place *p2, char *line)
+{
+       bool doprint;
+       char *expr;
+       bool val;
+       struct place p3 = *p2;
+       size_t oldlen;
+
+       doprint = ifstate->curtrue;
+
+       expr = macroexpand(p2, line, strlen(line), true);
+
+       oldlen = strlen(expr);
+       uncomment(expr);
+       /* trim to fit, so the malloc debugging won't complain */
+       expr = dorealloc(expr, oldlen + 1, strlen(expr) + 1);
+
+       if (ifstate->curtrue) {
+               val = eval(&p3, expr);
+       } else {
+               val = 0;
+       }
+       ifstate_push(&lp->current, val);
+       dostrfree(expr);
+
+       if (doprint) {
+               debuglog(&lp->current, "#if: %s",
+                         ifstate->curtrue ? "taken" : "not taken");
+       }
+}
+
+static
+void
+d_ifdef(struct lineplace *lp, struct place *p2, char *line)
+{
+       bool doprint;
+
+       doprint = ifstate->curtrue;
+
+       uncomment(line);
+       oneword("#ifdef", p2, line);
+       ifstate_push(&lp->current, macro_isdefined(line));
+
+       if (doprint) {
+               debuglog(&lp->current, "#ifdef %s: %s",
+                        line, ifstate->curtrue ? "taken" : "not taken");
+       }
+}
+
+static
+void
+d_ifndef(struct lineplace *lp, struct place *p2, char *line)
+{
+       bool doprint;
+
+       doprint = ifstate->curtrue;
+
+       uncomment(line);
+       oneword("#ifndef", p2, line);
+       ifstate_push(&lp->current, !macro_isdefined(line));
+
+       if (doprint) {
+               debuglog(&lp->current, "#ifndef %s: %s",
+                        line, ifstate->curtrue ? "taken" : "not taken");
+       }
+}
+
+static
+void
+d_elif(struct lineplace *lp, struct place *p2, char *line)
+{
+       bool doprint;
+       char *expr;
+       struct place p3 = *p2;
+       size_t oldlen;
+
+       if (ifstate->seenelse) {
+               complain(&lp->current, "#elif after #else");
+               complain_fail();
+       }
+
+       doprint = ifstate->curtrue;
+
+       if (ifstate->evertrue) {
+               ifstate->curtrue = false;
+       } else {
+               expr = macroexpand(p2, line, strlen(line), true);
+
+               oldlen = strlen(expr);
+               uncomment(expr);
+               /* trim to fit, so the malloc debugging won't complain */
+               expr = dorealloc(expr, oldlen + 1, strlen(expr) + 1);
+
+               ifstate->curtrue = eval(&p3, expr);
+               ifstate->evertrue = ifstate->curtrue;
+               dostrfree(expr);
+       }
+
+       if (doprint) {
+               debuglog2(&lp->current, &ifstate->startplace, "#elif: %s",
+                         ifstate->curtrue ? "taken" : "not taken");
+       }
+}
+
+static
+void
+d_else(struct lineplace *lp, struct place *p2, char *line)
+{
+       bool doprint;
+
+       (void)p2;
+       (void)line;
+
+       if (ifstate->seenelse) {
+               complain(&lp->current,
+                        "Multiple #else directives in one conditional");
+               complain_fail();
+       }
+
+       doprint = ifstate->curtrue;
+
+       ifstate->curtrue = !ifstate->evertrue;
+       ifstate->evertrue = true;
+       ifstate->seenelse = true;
+
+       if (doprint) {
+               debuglog2(&lp->current, &ifstate->startplace, "#else: %s",
+                         ifstate->curtrue ? "taken" : "not taken");
+       }
+}
+
+static
+void
+d_endif(struct lineplace *lp, struct place *p2, char *line)
+{
+       (void)p2;
+       (void)line;
+
+       if (ifstate->prev == NULL) {
+               complain(&lp->current, "Unmatched #endif");
+               complain_fail();
+       } else {
+               debuglog2(&lp->current, &ifstate->startplace, "#endif");
+               ifstate_pop();
+       }
+}
+
+////////////////////////////////////////////////////////////
+// macros
+
+static
+void
+d_define(struct lineplace *lp, struct place *p2, char *line)
+{
+       size_t pos, argpos;
+       struct place p3, p4;
+
+       (void)lp;
+
+       /*
+        * line may be:
+        *    macro expansion
+        *    macro(arg, arg, ...) expansion
+        */
+
+       pos = strcspn(line, " \t\f\v(");
+       if (line[pos] == '(') {
+               line[pos++] = '\0';
+               argpos = pos;
+               pos = pos + strcspn(line+pos, "()");
+               if (line[pos] == '(') {
+                       place_addcolumns(p2, pos);
+                       complain(p2, "Left parenthesis in macro parameters");
+                       complain_fail();
+                       return;
+               }
+               if (line[pos] != ')') {
+                       place_addcolumns(p2, pos);
+                       complain(p2, "Unclosed macro parameter list");
+                       complain_fail();
+                       return;
+               }
+               line[pos++] = '\0';
+#if 0
+               if (!strchr(ws, line[pos])) {
+                       p2->column += pos;
+                       complain(p2, "Trash after macro parameter list");
+                       complain_fail();
+                       return;
+               }
+#endif
+       } else if (line[pos] == '\0') {
+               argpos = 0;
+       } else {
+               line[pos++] = '\0';
+               argpos = 0;
+       }
+
+       pos += strspn(line+pos, ws);
+
+       p3 = *p2;
+       place_addcolumns(&p3, argpos);
+
+       p4 = *p2;
+       place_addcolumns(&p4, pos);
+
+       if (argpos) {
+               debuglog(&lp->current, "Defining %s()", line);
+               macro_define_params(p2, line, &p3,
+                                   line + argpos, &p4,
+                                   line + pos);
+       } else {
+               debuglog(&lp->current, "Defining %s", line);
+               macro_define_plain(p2, line, &p4, line + pos);
+       }
+}
+
+static
+void
+d_undef(struct lineplace *lp, struct place *p2, char *line)
+{
+       (void)lp;
+
+       uncomment(line);
+       oneword("#undef", p2, line);
+       debuglog(&lp->current, "Undef %s", line);
+       macro_undef(line);
+}
+
+////////////////////////////////////////////////////////////
+// includes
+
+static
+bool
+tryinclude(struct place *p, char *line)
+{
+       size_t len;
+
+       len = strlen(line);
+       if (len > 2 && line[0] == '"' && line[len-1] == '"') {
+               line[len-1] = '\0';
+               debuglog(p, "Entering include file \"%s\"", line+1);
+               file_readquote(p, line+1);
+               debuglog(p, "Leaving include file \"%s\"", line+1);
+               line[len-1] = '"';
+               return true;
+       }
+       if (len > 2 && line[0] == '<' && line[len-1] == '>') {
+               line[len-1] = '\0';
+               debuglog(p, "Entering include file <%s>", line+1);
+               file_readbracket(p, line+1);
+               debuglog(p, "Leaving include file <%s>", line+1);
+               line[len-1] = '>';
+               return true;
+       }
+       return false;
+}
+
+static
+void
+d_include(struct lineplace *lp, struct place *p2, char *line)
+{
+       char *text;
+       size_t oldlen;
+
+       uncomment(line);
+       if (tryinclude(&lp->current, line)) {
+               return;
+       }
+       text = macroexpand(p2, line, strlen(line), false);
+
+       oldlen = strlen(text);
+       uncomment(text);
+       /* trim to fit, so the malloc debugging won't complain */
+       text = dorealloc(text, oldlen + 1, strlen(text) + 1);
+
+       if (tryinclude(&lp->current, text)) {
+               dostrfree(text);
+               return;
+       }
+       complain(&lp->current, "Illegal #include directive");
+       complain(&lp->current, "Before macro expansion: #include %s", line);
+       complain(&lp->current, "After macro expansion: #include %s", text);
+       dostrfree(text);
+       complain_fail();
+}
+
+static
+void
+d_line(struct lineplace *lp, struct place *p2, char *line)
+{
+       char *text;
+       size_t oldlen;
+       unsigned long val;
+       char *moretext;
+       size_t moretextlen;
+       char *filename;
+
+       text = macroexpand(p2, line, strlen(line), true);
+
+       oldlen = strlen(text);
+       uncomment(text);
+       /* trim to fit, so the malloc debugging won't complain */
+       text = dorealloc(text, oldlen + 1, strlen(text) + 1);
+
+       /*
+        * What we should have here: either 1234 "file.c",
+        * or just 1234.
+        */
+
+       errno = 0;
+       val = strtoul(text, &moretext, 10);
+       if (errno) {
+               complain(&lp->current,
+                        "Invalid line number in #line directive");
+               goto fail;
+       }
+#if UINT_MAX < ULONG_MAX
+       if (val > UINT_MAX) {
+               complain(&lp->current,
+                        "Line number in #line directive too large");
+               goto fail;
+       }
+#endif
+       moretext += strspn(moretext, ws);
+       moretextlen = strlen(moretext);
+       place_addcolumns(&lp->current, moretext - text);
+
+       if (moretextlen > 2 &&
+           moretext[0] == '"' && moretext[moretextlen-1] == '"') {
+               filename = dostrndup(moretext+1, moretextlen-2);
+               place_changefile(&lp->nextline, filename);
+               dostrfree(filename);
+       }
+       else if (moretextlen > 0) {
+               complain(&lp->current,
+                        "Invalid file name in #line directive");
+               goto fail;
+       }
+
+       lp->nextline.line = val;
+       dostrfree(text);
+       return;
+
+fail:
+       complain(&lp->current, "Before macro expansion: #line %s", line);
+       complain(&lp->current, "After macro expansion: #line %s", text);
+       complain_fail();
+       dostrfree(text);
+}
+
+////////////////////////////////////////////////////////////
+// messages
+
+static
+void
+d_warning(struct lineplace *lp, struct place *p2, char *line)
+{
+       char *msg;
+
+       msg = macroexpand(p2, line, strlen(line), false);
+       complain(&lp->current, "#warning: %s", msg);
+       if (mode.werror) {
+               complain_fail();
+       }
+       dostrfree(msg);
+}
+
+static
+void
+d_error(struct lineplace *lp, struct place *p2, char *line)
+{
+       char *msg;
+
+       msg = macroexpand(p2, line, strlen(line), false);
+       complain(&lp->current, "#error: %s", msg);
+       complain_fail();
+       dostrfree(msg);
+}
+
+////////////////////////////////////////////////////////////
+// other
+
+static
+void
+d_pragma(struct lineplace *lp, struct place *p2, char *line)
+{
+       (void)p2;
+
+       complain(&lp->current, "#pragma %s", line);
+       complain_fail();
+}
+
+////////////////////////////////////////////////////////////
+// directive table
+
+static const struct {
+       const char *name;
+       bool ifskip;
+       void (*func)(struct lineplace *, struct place *, char *line);
+} directives[] = {
+       { "define",  true,  d_define },
+       { "elif",    false, d_elif },
+       { "else",    false, d_else },
+       { "endif",   false, d_endif },
+       { "error",   true,  d_error },
+       { "if",      false, d_if },
+       { "ifdef",   false, d_ifdef },
+       { "ifndef",  false, d_ifndef },
+       { "include", true,  d_include },
+       { "line",    true,  d_line },
+       { "pragma",  true,  d_pragma },
+       { "undef",   true,  d_undef },
+       { "warning", true,  d_warning },
+};
+static const unsigned numdirectives = HOWMANY(directives);
+
+static
+void
+directive_gotdirective(struct lineplace *lp, char *line)
+{
+       struct place p2;
+       size_t len, skip;
+       unsigned i;
+
+       p2 = lp->current;
+       for (i=0; i<numdirectives; i++) {
+               len = strlen(directives[i].name);
+               if (!strncmp(line, directives[i].name, len) &&
+                   strchr(ws, line[len])) {
+                       if (directives[i].ifskip && !ifstate->curtrue) {
+                               return;
+                       }
+                       skip = len + strspn(line+len, ws);
+                       place_addcolumns(&p2, skip);
+                       line += skip;
+
+                       len = strlen(line);
+                       len = notrailingws(line, len);
+                       if (len < strlen(line)) {
+                               line[len] = '\0';
+                       }
+                       directives[i].func(lp, &p2, line);
+                       return;
+               }
+       }
+       /* ugh. allow # by itself, including with a comment after it */
+       uncomment(line);
+       if (line[0] == '\0') {
+               return;
+       }
+
+       skip = strcspn(line, ws);
+       complain(&lp->current, "Unknown directive #%.*s", (int)skip, line);
+       complain_fail();
+}
+
+/*
+ * Check for nested comment delimiters in LINE.
+ */
+static
+size_t
+directive_scancomments(const struct lineplace *lp, char *line, size_t len)
+{
+       size_t pos;
+       bool incomment;
+       struct place p2;
+
+       p2 = lp->current;
+       incomment = 0;
+       for (pos = 0; pos+1 < len; pos++) {
+               if (line[pos] == '/' && line[pos+1] == '*') {
+                       if (incomment) {
+                               complain(&p2, "Warning: %c%c within comment",
+                                        '/', '*');
+                               if (mode.werror) {
+                                       complain_failed();
+                               }
+                       } else {
+                               incomment = true;
+                       }
+                       pos++;
+               } else if (line[pos] == '*' && line[pos+1] == '/') {
+                       if (incomment) {
+                               incomment = false;
+                       } else {
+                               /* stray end-comment; should we care? */
+                       }
+                       pos++;
+               }
+               if (line[pos] == '\n') {
+                       place_addlines(&p2, 1);
+                       p2.column = 0;
+               } else {
+                       place_addcolumns(&p2, 1);
+               }
+       }
+
+       /* multiline comments are supposed to arrive in a single buffer */
+       assert(!incomment);
+       return len;
+}
+
+void
+directive_gotline(struct lineplace *lp, char *line, size_t len)
+{
+       size_t skip;
+
+       if (warns.nestcomment) {
+               directive_scancomments(lp, line, len);
+       }
+
+       /* check if we have a directive line (# exactly in column 0) */
+       if (len > 0 && line[0] == '#') {
+               skip = 1 + strspn(line + 1, ws);
+               assert(skip <= len);
+               place_addcolumns(&lp->current, skip);
+               assert(line[len] == '\0');
+               directive_gotdirective(lp, line+skip /*, length = len-skip */);
+               place_addcolumns(&lp->current, len-skip);
+       } else if (ifstate->curtrue) {
+               macro_sendline(&lp->current, line, len);
+               place_addcolumns(&lp->current, len);
+       }
+}
+
+void
+directive_goteof(struct place *p)
+{
+       while (ifstate->prev != NULL) {
+               complain(p, "Missing #endif");
+               complain(&ifstate->startplace, "...opened at this point");
+               complain_failed();
+               ifstate_pop();
+       }
+       macro_sendeof(p);
+}
+
+////////////////////////////////////////////////////////////
+// module initialization
+
+void
+directive_init(void)
+{
+       ifstate = ifstate_create(NULL, NULL, true);
+}
+
+void
+directive_cleanup(void)
+{
+       assert(ifstate->prev == NULL);
+       ifstate_destroy(ifstate);
+       ifstate = NULL;
+}
diff --git a/cde/util/tradcpp/directive.h b/cde/util/tradcpp/directive.h
new file mode 100644 (file)
index 0000000..7491a7a
--- /dev/null
@@ -0,0 +1,49 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stddef.h>
+
+#include "place.h"
+
+/*
+ * Relevant places while we're processing a line:
+ *   the place in the current line
+ *   the beginning of the next line
+ */
+struct lineplace {
+       struct place current;
+       struct place nextline;
+};
+
+void directive_init(void);
+void directive_cleanup(void);
+
+void directive_gotline(struct lineplace *lp, char *line, size_t len);
+void directive_goteof(struct place *p);
+
diff --git a/cde/util/tradcpp/eval.c b/cde/util/tradcpp/eval.c
new file mode 100644 (file)
index 0000000..6a6bcad
--- /dev/null
@@ -0,0 +1,767 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+#include <errno.h>
+
+//#define DEBUG
+#ifdef DEBUG
+#include <stdio.h>
+#endif
+
+#include "utils.h"
+#include "array.h"
+#include "mode.h"
+#include "place.h"
+#include "eval.h"
+
+/*
+ * e ::=
+ *    e1 ? e2 : e3
+ *    e1 || e2
+ *    e1 && e2
+ *    e1 | e2
+ *    e1 ^ e2
+ *    e1 & e2
+ *    e1 == e2  |  e1 != e2
+ *    e1 < e2   |  e1 <= e2  |  e1 > e2  |  e1 >= e2
+ *    e1 << e2  |  e1 >> e2
+ *    e1 + e2   |  e1 - e2
+ *    e1 * e2   |  e1 / e2   |  e1 % e2
+ *    !e  |  ~e  |  -e  |  +e
+ *    ( e )  |  ident
+ */
+
+enum tokens {
+       T_EOF,          /* end of input */
+       T_VAL,          /* value */
+       T_LPAREN,       /* parens */
+       T_RPAREN,
+       T_PIPEPIPE,     /* operators */
+       T_AMPAMP,
+       T_EQEQ,
+       T_BANGEQ,
+       T_LTEQ,
+       T_GTEQ,
+       T_LTLT,
+       T_GTGT,
+       T_QUES,
+       T_COLON,
+       T_PIPE,
+       T_CARET,
+       T_AMP,
+       T_LT,
+       T_GT,
+       T_PLUS,
+       T_MINUS,
+       T_STAR,
+       T_SLASH,
+       T_PCT,
+       T_BANG,
+       T_TILDE,
+};
+
+static const struct {
+       char c1, c2;
+       enum tokens tok;
+} tokens_2[] = {
+       { '|', '|', T_PIPEPIPE },
+       { '&', '&', T_AMPAMP },
+       { '=', '=', T_EQEQ },
+       { '!', '=', T_BANGEQ },
+       { '<', '=', T_LTEQ },
+       { '>', '=', T_GTEQ },
+       { '<', '<', T_LTLT },
+       { '>', '>', T_GTGT },
+};
+static const unsigned num_tokens_2 = HOWMANY(tokens_2);
+
+static const struct {
+       char c1;
+       enum tokens tok;
+} tokens_1[] = {
+       { '?', T_QUES },
+       { ':', T_COLON },
+       { '|', T_PIPE },
+       { '^', T_CARET },
+       { '&', T_AMP },
+       { '<', T_LT },
+       { '>', T_GT },
+       { '+', T_PLUS },
+       { '-', T_MINUS },
+       { '*', T_STAR },
+       { '/', T_SLASH },
+       { '%', T_PCT },
+       { '!', T_BANG },
+       { '~', T_TILDE },
+       { '(', T_LPAREN },
+       { ')', T_RPAREN },
+};
+static const unsigned num_tokens_1 = HOWMANY(tokens_1);
+
+struct token {
+       struct place place;
+       enum tokens tok;
+       int val;
+};
+DECLARRAY(token, static UNUSED);
+DEFARRAY(token, static);
+
+static struct tokenarray tokens;
+
+static
+struct token *
+token_create(const struct place *p, enum tokens tok, int val)
+{
+       struct token *t;
+
+       t = domalloc(sizeof(*t));
+       t->place = *p;
+       t->tok = tok;
+       t->val = val;
+       return t;
+}
+
+static
+void
+token_destroy(struct token *t)
+{
+       dofree(t, sizeof(*t));
+}
+
+DESTROYALL_ARRAY(token, );
+
+#ifdef DEBUG
+static
+void
+printtokens(void)
+{
+       unsigned i, num;
+       struct token *t;
+
+       fprintf(stderr, "tokens:");
+       num = tokenarray_num(&tokens);
+       for (i=0; i<num; i++) {
+               t = tokenarray_get(&tokens, i);
+               switch (t->tok) {
+                   case T_EOF: fprintf(stderr, " <eof>"); break;
+                   case T_VAL: fprintf(stderr, " %d", t->val); break;
+                   case T_LPAREN: fprintf(stderr, " ("); break;
+                   case T_RPAREN: fprintf(stderr, " )"); break;
+                   case T_PIPEPIPE: fprintf(stderr, " ||"); break;
+                   case T_AMPAMP: fprintf(stderr, " &&"); break;
+                   case T_EQEQ: fprintf(stderr, " =="); break;
+                   case T_BANGEQ: fprintf(stderr, " !="); break;
+                   case T_LTEQ: fprintf(stderr, " <="); break;
+                   case T_GTEQ: fprintf(stderr, " >="); break;
+                   case T_LTLT: fprintf(stderr, " <<"); break;
+                   case T_GTGT: fprintf(stderr, " >>"); break;
+                   case T_QUES: fprintf(stderr, " ?"); break;
+                   case T_COLON: fprintf(stderr, " :"); break;
+                   case T_PIPE: fprintf(stderr, " |"); break;
+                   case T_CARET: fprintf(stderr, " ^"); break;
+                   case T_AMP: fprintf(stderr, " &"); break;
+                   case T_LT: fprintf(stderr, " <"); break;
+                   case T_GT: fprintf(stderr, " >"); break;
+                   case T_PLUS: fprintf(stderr, " +"); break;
+                   case T_MINUS: fprintf(stderr, " -"); break;
+                   case T_STAR: fprintf(stderr, " *"); break;
+                   case T_SLASH: fprintf(stderr, " /"); break;
+                   case T_PCT: fprintf(stderr, " %%"); break;
+                   case T_BANG: fprintf(stderr, " !"); break;
+                   case T_TILDE: fprintf(stderr, " ~"); break;
+               }
+       }
+       fprintf(stderr, "\n");
+}
+#endif
+
+static
+bool
+isuop(enum tokens tok)
+{
+       switch (tok) {
+           case T_BANG:
+           case T_TILDE:
+           case T_MINUS:
+           case T_PLUS:
+               return true;
+           default:
+               break;
+       }
+       return false;
+}
+
+static
+bool
+isbop(enum tokens tok)
+{
+       switch (tok) {
+           case T_EOF:
+           case T_VAL:
+           case T_LPAREN:
+           case T_RPAREN:
+           case T_COLON:
+           case T_QUES:
+           case T_BANG:
+           case T_TILDE:
+               return false;
+           default:
+               break;
+       }
+       return true;
+}
+
+static
+bool
+isop(enum tokens tok)
+{
+       switch (tok) {
+           case T_EOF:
+           case T_VAL:
+           case T_LPAREN:
+           case T_RPAREN:
+               return false;
+           default:
+               break;
+       }
+       return true;
+}
+
+static
+int
+getprec(enum tokens tok)
+{
+       switch (tok) {
+           case T_BANG: case T_TILDE: return -1;
+           case T_STAR: case T_SLASH: case T_PCT: return 0;
+           case T_PLUS: case T_MINUS: return 1;
+           case T_LTLT: case T_GTGT: return 2;
+           case T_LT: case T_LTEQ: case T_GT: case T_GTEQ: return 3;
+           case T_EQEQ: case T_BANGEQ: return 4;
+           case T_AMP: return 5;
+           case T_CARET: return 6;
+           case T_PIPE: return 7;
+           case T_AMPAMP: return 8;
+           case T_PIPEPIPE: return 9;
+           default: break;
+       }
+       return 10;
+}
+
+static
+bool
+looser(enum tokens t1, enum tokens t2)
+{
+       return getprec(t1) >= getprec(t2);
+}
+
+static
+int
+eval_uop(enum tokens op, int val)
+{
+       switch (op) {
+           case T_BANG: val = !val; break;
+           case T_TILDE: val = (int)~(unsigned)val; break;
+           case T_MINUS: val = -val; break;
+           case T_PLUS: break;
+           default: assert(0); break;
+       }
+       return val;
+}
+
+static
+int
+eval_bop(struct place *p, int lv, enum tokens op, int rv)
+{
+       unsigned mask;
+
+       switch (op) {
+           case T_PIPEPIPE: return lv || rv;
+           case T_AMPAMP:   return lv && rv;
+           case T_PIPE:     return (int)((unsigned)lv | (unsigned)rv);
+           case T_CARET:    return (int)((unsigned)lv ^ (unsigned)rv);
+           case T_AMP:      return (int)((unsigned)lv & (unsigned)rv);
+           case T_EQEQ:     return lv == rv;
+           case T_BANGEQ:   return lv != rv;
+           case T_LT:       return lv < rv;
+           case T_GT:       return lv > rv;
+           case T_LTEQ:     return lv <= rv;
+           case T_GTEQ:     return lv >= rv;
+
+           case T_LTLT:
+           case T_GTGT:
+               if (rv < 0) {
+                       complain(p, "Negative bit-shift");
+                       complain_fail();
+                       rv = 0;
+               }
+               if ((unsigned)rv >= CHAR_BIT * sizeof(unsigned)) {
+                       complain(p, "Bit-shift farther than type width");
+                       complain_fail();
+                       rv = 0;
+               }
+               if (op == T_LTLT) {
+                       return (int)((unsigned)lv << (unsigned)rv);
+               }
+               mask = ((unsigned)-1) << (CHAR_BIT * sizeof(unsigned) - rv);
+               lv = (int)(((unsigned)lv >> (unsigned)rv) | mask);
+               return lv;
+
+           case T_MINUS:
+               if (rv == INT_MIN) {
+                       if (lv == INT_MIN) {
+                               return 0;
+                       }
+                       lv--;
+                       rv++;
+               }
+               rv = -rv;
+               /* FALLTHROUGH */
+           case T_PLUS:
+               if (rv > 0 && lv > (INT_MAX - rv)) {
+                       complain(p, "Integer overflow");
+                       complain_fail();
+                       return INT_MAX;
+               }
+               if (rv < 0 && lv < (INT_MIN - rv)) {
+                       complain(p, "Integer underflow");
+                       complain_fail();
+                       return INT_MIN;
+               }
+               return lv + rv;
+
+           case T_STAR:
+               if (rv == 0) {
+                       return 0;
+               }
+               if (rv == 1) {
+                       return lv;
+               }
+               if (rv == -1 && lv == INT_MIN) {
+                       lv++;
+                       lv = -lv;
+                       if (lv == INT_MAX) {
+                               complain(p, "Integer overflow");
+                               complain_fail();
+                               return INT_MAX;
+                       }
+                       lv++;
+                       return lv;
+               }
+               if (lv == INT_MIN && rv < 0) {
+                       complain(p, "Integer overflow");
+                       complain_fail();
+                       return INT_MAX;
+               }
+               if (lv == INT_MIN && rv > 0) {
+                       complain(p, "Integer underflow");
+                       complain_fail();
+                       return INT_MIN;
+               }
+               if (rv < 0) {
+                       rv = -rv;
+                       lv = -lv;
+               }
+               if (lv > 0 && lv > INT_MAX / rv) {
+                       complain(p, "Integer overflow");
+                       complain_fail();
+                       return INT_MAX;
+               }
+               if (lv < 0 && lv < INT_MIN / rv) {
+                       complain(p, "Integer underflow");
+                       complain_fail();
+                       return INT_MIN;
+               }
+               return lv * rv;
+
+           case T_SLASH:
+               if (rv == 0) {
+                       complain(p, "Division by zero");
+                       complain_fail();
+                       return 0;
+               }
+               return lv / rv;
+
+           case T_PCT:
+               if (rv == 0) {
+                       complain(p, "Modulus by zero");
+                       complain_fail();
+                       return 0;
+               }
+               return lv % rv;
+
+           default: assert(0); break;
+       }
+       return 0;
+}
+
+static
+void
+tryreduce(void)
+{
+       unsigned num;
+       struct token *t1, *t2, *t3, *t4, *t5, *t6;
+
+       while (1) {
+#ifdef DEBUG
+               printtokens();
+#endif
+               num = tokenarray_num(&tokens);
+               t1 = (num >= 1) ? tokenarray_get(&tokens, num-1) : NULL;
+               t2 = (num >= 2) ? tokenarray_get(&tokens, num-2) : NULL;
+               t3 = (num >= 3) ? tokenarray_get(&tokens, num-3) : NULL;
+
+               if (num >= 3 &&
+                   t3->tok == T_LPAREN &&
+                   t2->tok == T_VAL &&
+                   t1->tok == T_RPAREN) {
+                       /* (x) -> x */
+                       t2->place = t3->place;
+                       token_destroy(t1);
+                       token_destroy(t3);
+                       tokenarray_remove(&tokens, num-1);
+                       tokenarray_remove(&tokens, num-3);
+                       continue;
+               }
+
+               if (num >= 2 &&
+                   (num == 2 || isop(t3->tok) || t3->tok == T_LPAREN) &&
+                   isuop(t2->tok) &&
+                   t1->tok == T_VAL) {
+                       /* unary operator */
+                       t1->val = eval_uop(t2->tok, t1->val);
+                       t1->place = t2->place;
+                       token_destroy(t2);
+                       tokenarray_remove(&tokens, num-2);
+                       continue;
+               }
+               if (num >= 2 &&
+                   (num == 2 || isop(t3->tok) || t3->tok == T_LPAREN) &&
+                   t2->tok != T_LPAREN && t2->tok != T_VAL &&
+                   t1->tok == T_VAL) {
+                       complain(&t2->place, "Invalid unary operator");
+                       complain_fail();
+                       token_destroy(t2);
+                       tokenarray_remove(&tokens, num-2);
+                       continue;
+               }
+
+                       
+               t4 = (num >= 4) ? tokenarray_get(&tokens, num-4) : NULL;
+
+               if (num >= 4 &&
+                   t4->tok == T_VAL &&
+                   isbop(t3->tok) &&
+                   t2->tok == T_VAL) {
+                       /* binary operator */
+                       if (looser(t1->tok, t3->tok)) {
+                               t4->val = eval_bop(&t3->place,
+                                                  t4->val, t3->tok, t2->val);
+                               token_destroy(t2);
+                               token_destroy(t3);
+                               tokenarray_remove(&tokens, num-2);
+                               tokenarray_remove(&tokens, num-3);
+                               continue;
+                       }
+                       break;
+               }
+
+               t5 = (num >= 5) ? tokenarray_get(&tokens, num-5) : NULL;
+               t6 = (num >= 6) ? tokenarray_get(&tokens, num-6) : NULL;
+
+               if (num >= 6 &&
+                   t6->tok == T_VAL &&
+                   t5->tok == T_QUES &&
+                   t4->tok == T_VAL &&
+                   t3->tok == T_COLON &&
+                   t2->tok == T_VAL &&
+                   !isop(t1->tok)) {
+                       /* conditional expression */
+                       t6->val = t6->val ? t4->val : t2->val;
+                       token_destroy(t2);
+                       token_destroy(t3);
+                       token_destroy(t4);
+                       token_destroy(t5);
+                       tokenarray_remove(&tokens, num-2);
+                       tokenarray_remove(&tokens, num-3);
+                       tokenarray_remove(&tokens, num-4);
+                       tokenarray_remove(&tokens, num-5);
+                       continue;
+               }
+
+               if (num >= 2 &&
+                   t2->tok == T_LPAREN &&
+                   t1->tok == T_RPAREN) {
+                       complain(&t1->place, "Value expected within ()");
+                       complain_fail();
+                       t1->tok = T_VAL;
+                       t1->val = 0;
+                       token_destroy(t1);
+                       tokenarray_remove(&tokens, num-1);
+                       continue;
+               }
+
+               if (num >= 2 &&
+                   t2->tok == T_VAL &&
+                   t1->tok == T_VAL) {
+                       complain(&t1->place, "Operator expected");
+                       complain_fail();
+                       token_destroy(t1);
+                       tokenarray_remove(&tokens, num-1);
+                       continue;
+               }
+
+               if (num >= 2 &&
+                   isop(t2->tok) &&
+                   t1->tok == T_EOF) {
+                       complain(&t1->place, "Value expected after operator");
+                       complain_fail();
+                       token_destroy(t2);
+                       tokenarray_remove(&tokens, num-2);
+                       continue;
+               }
+
+               if (num == 2 &&
+                   t2->tok == T_VAL &&
+                   t1->tok == T_RPAREN) {
+                       complain(&t1->place, "Excess right parenthesis");
+                       complain_fail();
+                       token_destroy(t1);
+                       tokenarray_remove(&tokens, num-1);
+                       continue;
+               }
+
+               if (num == 3 &&
+                   t3->tok == T_LPAREN &&
+                   t2->tok == T_VAL &&
+                   t1->tok == T_EOF) {
+                       complain(&t1->place, "Unclosed left parenthesis");
+                       complain_fail();
+                       token_destroy(t3);
+                       tokenarray_remove(&tokens, num-3);
+                       continue;
+               }
+
+               if (num == 2 &&
+                   t2->tok == T_VAL &&
+                   t1->tok == T_EOF) {
+                       /* accepting state */
+                       break;
+               }
+
+               if (num >= 1 &&
+                   t1->tok == T_EOF) {
+                       /* any other configuration at eof is an error */
+                       complain(&t1->place, "Parse error");
+                       complain_fail();
+                       break;
+               }
+
+               /* otherwise, wait for more input */
+               break;
+       }
+}
+
+static
+void
+token(struct place *p, enum tokens tok, int val)
+{
+       struct token *t;
+
+       t = token_create(p, tok, val);
+
+       tokenarray_add(&tokens, t, NULL);
+       tryreduce();
+}
+
+static
+int
+wordval(struct place *p, char *word)
+{
+       unsigned long val;
+       char *t;
+
+       if (word[0] >= '0' && word[0] <= '9') {
+               errno = 0;
+               val = strtoul(word, &t, 0);
+               if (errno) {
+                       complain(p, "Invalid integer constant");
+                       complain_fail();
+                       return 0;
+               }
+               while (*t == 'U' || *t == 'L') {
+                       t++;
+               }
+               if (*t != '\0') {
+                       complain(p, "Trailing garbage after integer constant");
+                       complain_fail();
+                       return 0;
+               }
+               if (val > INT_MAX) {
+                       complain(p, "Integer constant too large");
+                       complain_fail();
+                       return INT_MAX;
+               }
+               return val;
+       }
+
+       /* if it's a symbol, warn and substitute 0. */
+       if (warns.undef) {
+               complain(p, "Warning: value of undefined symbol %s is 0",
+                        word);
+               if (mode.werror) {
+                       complain_fail();
+               }
+       }
+       debuglog(p, "Undefined symbol %s; substituting 0", word);
+       return 0;
+}
+
+static
+bool
+check_word(struct place *p, char *expr, size_t pos, size_t *len_ret)
+{
+       size_t len;
+       int val;
+       char tmp;
+
+       if (!strchr(alnum, expr[pos])) {
+               return false;
+       }
+       len = strspn(expr + pos, alnum);
+       tmp = expr[pos + len];
+       expr[pos + len] = '\0';
+       val = wordval(p, expr + pos);
+       expr[pos + len] = tmp;
+       token(p, T_VAL, val);
+       *len_ret = len;
+       return true;
+}
+
+static
+bool
+check_tokens_2(struct place *p, char *expr, size_t pos)
+{
+       unsigned i;
+
+       for (i=0; i<num_tokens_2; i++) {
+               if (expr[pos] == tokens_2[i].c1 &&
+                   expr[pos+1] == tokens_2[i].c2) {
+                       token(p, tokens_2[i].tok, 0);
+                       return true;
+               }
+       }
+       return false;
+}
+
+static
+bool
+check_tokens_1(struct place *p, char *expr, size_t pos)
+{
+       unsigned i;
+
+       for (i=0; i<num_tokens_1; i++) {
+               if (expr[pos] == tokens_1[i].c1) {
+                       token(p, tokens_1[i].tok, 0);
+                       return true;
+               }
+       }
+       return false;
+}
+
+static
+void
+tokenize(struct place *p, char *expr)
+{
+       size_t pos, len;
+
+       pos = 0;
+       while (expr[pos] != '\0') {
+               len = strspn(expr+pos, ws);
+               pos += len;
+               place_addcolumns(p, len);
+               /* trailing whitespace is supposed to have been pruned */
+               assert(expr[pos] != '\0');
+               if (check_word(p, expr, pos, &len)) {
+                       pos += len;
+                       place_addcolumns(p, len);
+                       continue;
+               }
+               if (check_tokens_2(p, expr, pos)) {
+                       pos += 2;
+                       place_addcolumns(p, 2);
+                       continue;
+               }
+               if (check_tokens_1(p, expr, pos)) {
+                       pos++;
+                       place_addcolumns(p, 1);
+                       continue;
+               }
+               complain(p, "Invalid character %u in #if-expression",
+                        (unsigned char)expr[pos]);
+               complain_fail();
+               pos++;
+               place_addcolumns(p, 1);
+       }
+       token(p, T_EOF, 0);
+}
+
+bool
+eval(struct place *p, char *expr)
+{
+       struct token *t1, *t2;
+       unsigned num;
+       bool result;
+
+#ifdef DEBUG
+       fprintf(stderr, "eval: %s\n", expr);
+#endif
+       debuglog(p, "eval: %s", expr);
+
+       tokenarray_init(&tokens);
+       tokenize(p, expr);
+
+       result = false;
+       num = tokenarray_num(&tokens);
+       if (num == 2) {
+               t1 = tokenarray_get(&tokens, num-1);
+               t2 = tokenarray_get(&tokens, num-2);
+               if (t2->tok == T_VAL &&
+                   t1->tok == T_EOF) {
+                       result = t2->val != 0;
+               }
+       }
+
+       tokenarray_destroyall(&tokens);
+       tokenarray_cleanup(&tokens);
+       return result;
+}
diff --git a/cde/util/tradcpp/eval.h b/cde/util/tradcpp/eval.h
new file mode 100644 (file)
index 0000000..d9193de
--- /dev/null
@@ -0,0 +1,32 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "bool.h"
+
+bool eval(struct place *p, char *expr);
diff --git a/cde/util/tradcpp/files.c b/cde/util/tradcpp/files.c
new file mode 100644 (file)
index 0000000..52e2866
--- /dev/null
@@ -0,0 +1,441 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <errno.h>
+
+#include "bool.h"
+#include "array.h"
+#include "mode.h"
+#include "place.h"
+#include "files.h"
+#include "directive.h"
+
+struct incdir {
+       const char *name;
+       bool issystem;
+};
+
+DECLARRAY(incdir, static UNUSED);
+DEFARRAY(incdir, static);
+
+static struct incdirarray quotepath, bracketpath;
+
+////////////////////////////////////////////////////////////
+// management
+
+static
+struct incdir *
+incdir_create(const char *name, bool issystem)
+{
+       struct incdir *id;
+
+       id = domalloc(sizeof(*id));
+       id->name = name;
+       id->issystem = issystem;
+       return id;
+}
+
+static
+void
+incdir_destroy(struct incdir *id)
+{
+       dofree(id, sizeof(*id));
+}
+
+void
+files_init(void)
+{
+       incdirarray_init(&quotepath);
+       incdirarray_init(&bracketpath);
+}
+
+DESTROYALL_ARRAY(incdir, );
+
+void
+files_cleanup(void)
+{
+       incdirarray_destroyall(&quotepath);
+       incdirarray_cleanup(&quotepath);
+       incdirarray_destroyall(&bracketpath);
+       incdirarray_cleanup(&bracketpath);
+}
+
+////////////////////////////////////////////////////////////
+// path setup
+
+void
+files_addquotepath(const char *dir, bool issystem)
+{
+       struct incdir *id;
+
+       id = incdir_create(dir, issystem);
+       incdirarray_add(&quotepath, id, NULL);
+}
+
+void
+files_addbracketpath(const char *dir, bool issystem)
+{
+       struct incdir *id;
+
+       id = incdir_create(dir, issystem);
+       incdirarray_add(&bracketpath, id, NULL);
+}
+
+////////////////////////////////////////////////////////////
+// parsing
+
+/*
+ * Find the end of the logical line. End of line characters that are
+ * commented out do not count.
+ */
+static
+size_t
+findeol(const char *buf, size_t start, size_t limit)
+{
+       size_t i;
+       int incomment = 0;
+       bool inquote = false;
+       char quote = '\0';
+
+       for (i=start; i<limit; i++) {
+               if (incomment) {
+                       if (i+1 < limit && buf[i] == '*' && buf[i+1] == '/') {
+                               i++;
+                               incomment = 0;
+                       }
+               } else if (!inquote && i+1 < limit &&
+                          buf[i] == '/' && buf[i+1] == '*') {
+                       i++;
+                       incomment = 1;
+               } else if (i+1 < limit &&
+                          buf[i] == '\\' && buf[i+1] != '\n') {
+                       i++;
+               } else if (!inquote && (buf[i] == '"' || buf[i] == '\'')) {
+                       inquote = true;
+                       quote = buf[i];
+               } else if (inquote && buf[i] == quote) {
+                       inquote = false;
+               } else if (buf[i] == '\n') {
+                       return i;
+               }
+       }
+       return limit;
+}
+
+static
+unsigned
+countnls(const char *buf, size_t start, size_t limit)
+{
+       size_t i;
+       unsigned count = 0;
+
+       for (i=start; i<limit; i++) {
+               if (buf[i] == '\n') {
+                       count++;
+                       if (count == 0) {
+                               /* just return the max and error downstream */
+                               return count - 1;
+                       }
+               }
+       }
+       return count;
+}
+
+static
+void
+file_read(const struct placefile *pf, int fd, const char *name, bool toplevel)
+{
+       struct lineplace places;
+       struct place ptmp;
+       size_t bufend, bufmax, linestart, lineend, nextlinestart, tmp;
+       ssize_t result;
+       bool ateof = false;
+       char *buf;
+
+       place_setfilestart(&places.current, pf);
+       places.nextline = places.current;
+
+       if (name) {
+               debuglog(&places.current, "Reading file %s", name);
+       } else {
+               debuglog(&places.current, "Reading standard input");
+       }
+
+       bufmax = 128;
+       bufend = 0;
+       linestart = 0;
+       lineend = 0;
+       buf = domalloc(bufmax);
+
+       while (1) {
+               if (lineend >= bufend) {
+                       /* do not have a whole line in the buffer; read more */
+                       assert(bufend >= linestart);
+                       if (linestart > 0 && bufend > linestart) {
+                               /* slide to beginning of buffer */
+                               memmove(buf, buf+linestart, bufend-linestart);
+                               bufend -= linestart;
+                               lineend -= linestart;
+                               linestart = 0;
+                       }
+                       if (bufend >= bufmax) {
+                               /* need bigger buffer */
+                               buf = dorealloc(buf, bufmax, bufmax*2);
+                               bufmax = bufmax*2;
+                               /* just in case someone's screwing around */
+                               if (bufmax > 0xffffffff) {
+                                       complain(&places.current,
+                                                "Input line too long");
+                                       die();
+                               }
+                       }
+
+                       if (ateof) {
+                               /* don't read again, in case it's a socket */
+                               result = 0;
+                       } else {
+                               result = read(fd, buf+bufend, bufmax - bufend);
+                       }
+
+                       if (result == -1) {
+                               /* read error */
+                               complain(NULL, "%s: %s",
+                                        name, strerror(errno));
+                               complain_fail();
+                       } else if (result == 0 && bufend == linestart) {
+                               /* eof */
+                               ateof = true;
+                               break;
+                       } else if (result == 0) {
+                               /* eof in middle of line */
+                               ateof = true;
+                               ptmp = places.current;
+                               place_addcolumns(&ptmp, bufend - linestart);
+                               if (buf[bufend - 1] == '\n') {
+                                       complain(&ptmp, "Unclosed comment");
+                                       complain_fail();
+                               } else {
+                                       complain(&ptmp,
+                                                "No newline at end of file");
+                               }
+                               if (mode.werror) {
+                                       complain_fail();
+                               }
+                               assert(bufend < bufmax);
+                               lineend = bufend++;
+                               buf[lineend] = '\n';
+                       } else {
+                               bufend += (size_t)result;
+                               lineend = findeol(buf, linestart, bufend);
+                       }
+                       /* loop in case we still don't have a whole line */
+                       continue;
+               }
+
+               /* have a line */
+               assert(buf[lineend] == '\n');
+               buf[lineend] = '\0';
+               nextlinestart = lineend+1;
+               place_addlines(&places.nextline, 1);
+
+               /* check for CR/NL */
+               if (lineend > 0 && buf[lineend-1] == '\r') {
+                       buf[lineend-1] = '\0';
+                       lineend--;
+               }
+
+               /* check for continuation line */
+               if (lineend > 0 && buf[lineend-1]=='\\') {
+                       lineend--;
+                       tmp = nextlinestart - lineend;
+                       if (bufend > nextlinestart) {
+                               memmove(buf+lineend, buf+nextlinestart,
+                                       bufend - nextlinestart);
+                       }
+                       bufend -= tmp;
+                       nextlinestart -= tmp;
+                       lineend = findeol(buf, linestart, bufend);
+                       /* might not have a whole line, so loop */
+                       continue;
+               }
+
+               /* line now goes from linestart to lineend */
+               assert(buf[lineend] == '\0');
+
+               /* count how many commented-out newlines we swallowed */
+               place_addlines(&places.nextline,
+                              countnls(buf, linestart, lineend));
+
+               /* process the line (even if it's empty) */
+               directive_gotline(&places, buf+linestart, lineend-linestart);
+
+               linestart = nextlinestart;
+               lineend = findeol(buf, linestart, bufend);
+               places.current = places.nextline;
+       }
+
+       if (toplevel) {
+               directive_goteof(&places.current);
+       }
+       dofree(buf, bufmax);
+}
+
+////////////////////////////////////////////////////////////
+// path search
+
+static
+char *
+mkfilename(struct place *place, const char *dir, const char *file)
+{
+       size_t dlen, flen, rlen;
+       char *ret;
+       bool needslash = false;
+
+       if (dir == NULL) {
+               dir = place_getparsedir(place);
+       }
+
+       dlen = strlen(dir);
+       flen = strlen(file);
+       if (dlen > 0 && dir[dlen-1] != '/') {
+               needslash = true;
+       }
+
+       rlen = dlen + (needslash ? 1 : 0) + flen;
+       ret = domalloc(rlen + 1);
+       strcpy(ret, dir);
+       if (needslash) {
+               strcat(ret, "/");
+       }
+       strcat(ret, file);
+       return ret;
+}
+
+static
+int
+file_tryopen(const char *file)
+{
+       int fd;
+
+       /* XXX check for non-regular files */
+
+       fd = open(file, O_RDONLY);
+       if (fd < 0) {
+               if (errno != ENOENT && errno != ENOTDIR) {
+                       complain(NULL, "%s: %s", file, strerror(errno));
+               }
+               return -1;
+       }
+
+       return fd;
+}
+
+static
+void
+file_search(struct place *place, struct incdirarray *path, const char *name)
+{
+       unsigned i, num;
+       struct incdir *id;
+       const struct placefile *pf;
+       char *file;
+       int fd;
+
+       assert(place != NULL);
+
+       if (name[0] == '/') {
+               fd = file_tryopen(name);
+               if (fd >= 0) {
+                       pf = place_addfile(place, name, true);
+                       file_read(pf, fd, name, false);
+                       close(fd);
+                       return;
+               }
+       } else {
+               num = incdirarray_num(path);
+               for (i=0; i<num; i++) {
+                       id = incdirarray_get(path, i);
+                       file = mkfilename(place, id->name, name);
+                       fd = file_tryopen(file);
+                       if (fd >= 0) {
+                               pf = place_addfile(place, file, id->issystem);
+                               file_read(pf, fd, file, false);
+                               dostrfree(file);
+                               close(fd);
+                               return;
+                       }
+                       dostrfree(file);
+               }
+       }
+       complain(place, "Include file %s not found", name);
+       complain_fail();
+}
+
+void
+file_readquote(struct place *place, const char *name)
+{
+       file_search(place, &quotepath, name);
+}
+
+void
+file_readbracket(struct place *place, const char *name)
+{
+       file_search(place, &bracketpath, name);
+}
+
+void
+file_readabsolute(struct place *place, const char *name)
+{
+       const struct placefile *pf;
+       int fd;
+
+       assert(place != NULL);
+
+       if (name == NULL) {
+               fd = STDIN_FILENO;
+               pf = place_addfile(place, "<standard-input>", false);
+       } else {
+               fd = file_tryopen(name);
+               if (fd < 0) {
+                       complain(NULL, "%s: %s", name, strerror(errno));
+                       die();
+               }
+               pf = place_addfile(place, name, false);
+       }
+
+       file_read(pf, fd, name, true);
+
+       if (name != NULL) {
+               close(fd);
+       }
+}
diff --git a/cde/util/tradcpp/files.h b/cde/util/tradcpp/files.h
new file mode 100644 (file)
index 0000000..97b459d
--- /dev/null
@@ -0,0 +1,40 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+struct place;
+
+void files_init(void);
+void files_cleanup(void);
+
+void files_addquotepath(const char *dir, bool issystem);
+void files_addbracketpath(const char *dir, bool issystem);
+
+void file_readquote(struct place *, const char *name);
+void file_readbracket(struct place *, const char *name);
+void file_readabsolute(struct place *, const char *name);
diff --git a/cde/util/tradcpp/inlinedefs.h b/cde/util/tradcpp/inlinedefs.h
new file mode 100644 (file)
index 0000000..bfcef62
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2009 David A. Holland.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the Author nor the names of any contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
+/* gcc's non-C99 inline semantics */
+#define C99INLINE extern inline
+#elif defined(__STDC__) && __STDC_VERSION__ >= 199901L
+/* C99 */
+#define C99INLINE inline
+#else
+/* something else; static inline is safest */
+#define C99INLINE static inline
+#endif
diff --git a/cde/util/tradcpp/macro.c b/cde/util/tradcpp/macro.c
new file mode 100644 (file)
index 0000000..e1bdce3
--- /dev/null
@@ -0,0 +1,1313 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "union.h"
+#include "array.h"
+#include "mode.h"
+#include "place.h"
+#include "macro.h"
+#include "output.h"
+
+struct expansionitem {
+       enum { EI_STRING, EI_PARAM, EI_FILE, EI_LINE } itemtype;
+       union {
+               char *ei_string;                /* for EI_STRING */
+               unsigned ei_param;              /* for EI_PARAM */
+       } UN;
+};
+DECLARRAY(expansionitem, static UNUSED);
+DEFARRAY(expansionitem, static);
+
+#ifdef NEED_UNION_ACCESSORS
+#define ei_string un.ei_string
+#define ei_param un.ei_param
+#endif
+
+
+struct macro {
+       struct place defplace;
+       struct place expansionplace;
+       unsigned hash;
+       char *name;
+       bool hasparams;
+       struct stringarray params;
+       struct expansionitemarray expansion;
+       bool inuse;
+};
+DECLARRAY(macro, static UNUSED);
+DEFARRAY(macro, static);
+DECLARRAY(macroarray, static UNUSED);
+DEFARRAY(macroarray, static);
+
+static struct macroarrayarray macros;
+static unsigned total_macros;
+static unsigned hashmask;
+
+////////////////////////////////////////////////////////////
+// macro structure ops
+
+static
+struct expansionitem *
+expansionitem_create_string(const char *string)
+{
+       struct expansionitem *ei;
+
+       ei = domalloc(sizeof(*ei));
+       ei->itemtype = EI_STRING;
+       ei->ei_string = dostrdup(string);
+       return ei;
+}
+
+static
+struct expansionitem *
+expansionitem_create_stringlen(const char *string, size_t len)
+{
+       struct expansionitem *ei;
+
+       ei = domalloc(sizeof(*ei));
+       ei->itemtype = EI_STRING;
+       ei->ei_string = dostrndup(string, len);
+       return ei;
+}
+
+static
+struct expansionitem *
+expansionitem_create_param(unsigned param)
+{
+       struct expansionitem *ei;
+
+       ei = domalloc(sizeof(*ei));
+       ei->itemtype = EI_PARAM;
+       ei->ei_param = param;
+       return ei;
+}
+
+static
+struct expansionitem *
+expansionitem_create_file(void)
+{
+       struct expansionitem *ei;
+
+       ei = domalloc(sizeof(*ei));
+       ei->itemtype = EI_FILE;
+       return ei;
+}
+
+static
+struct expansionitem *
+expansionitem_create_line(void)
+{
+       struct expansionitem *ei;
+
+       ei = domalloc(sizeof(*ei));
+       ei->itemtype = EI_LINE;
+       return ei;
+}
+
+static
+void
+expansionitem_destroy(struct expansionitem *ei)
+{
+       switch (ei->itemtype) {
+           case EI_STRING:
+               dostrfree(ei->ei_string);
+               break;
+           case EI_PARAM:
+           case EI_FILE:
+           case EI_LINE:
+               break;
+       }
+       dofree(ei, sizeof(*ei));
+}
+
+static
+bool
+expansionitem_eq(const struct expansionitem *ei1,
+                const struct expansionitem *ei2)
+{
+       if (ei1->itemtype != ei2->itemtype) {
+               return false;
+       }
+       switch (ei1->itemtype) {
+           case EI_STRING:
+               if (strcmp(ei1->ei_string, ei2->ei_string) != 0) {
+                       return false;
+               }
+               break;
+           case EI_PARAM:
+               if (ei1->ei_param != ei2->ei_param) {
+                       return false;
+               }
+               break;
+           case EI_FILE:
+           case EI_LINE:
+               break;
+       }
+       return true;
+}
+
+static
+struct macro *
+macro_create(struct place *p1, const char *name, unsigned hash,
+            struct place *p2)
+{
+       struct macro *m;
+
+       m = domalloc(sizeof(*m));
+       m->defplace = *p1;
+       m->expansionplace = *p2;
+       m->hash = hash;
+       m->name = dostrdup(name);
+       m->hasparams = false;
+       stringarray_init(&m->params);
+       expansionitemarray_init(&m->expansion);
+       m->inuse = false;
+       return m;
+}
+
+DESTROYALL_ARRAY(expansionitem, );
+
+static
+void
+macro_destroy(struct macro *m)
+{
+       expansionitemarray_destroyall(&m->expansion);
+       expansionitemarray_cleanup(&m->expansion);
+       dostrfree(m->name);
+       dofree(m, sizeof(*m));
+}
+
+static
+bool
+macro_eq(const struct macro *m1, const struct macro *m2)
+{
+       unsigned num1, num2, i;
+       struct expansionitem *ei1, *ei2;
+       const char *p1, *p2;
+
+       if (strcmp(m1->name, m2->name) != 0) {
+               return false;
+       }
+
+       if (m1->hasparams != m2->hasparams) {
+               return false;
+       }
+
+       num1 = expansionitemarray_num(&m1->expansion);
+       num2 = expansionitemarray_num(&m2->expansion);
+       if (num1 != num2) {
+               return false;
+       }
+
+       for (i=0; i<num1; i++) {
+               ei1 = expansionitemarray_get(&m1->expansion, i);
+               ei2 = expansionitemarray_get(&m2->expansion, i);
+               if (!expansionitem_eq(ei1, ei2)) {
+                       return false;
+               }
+       }
+
+       num1 = stringarray_num(&m1->params);
+       num2 = stringarray_num(&m2->params);
+       if (num1 != num2) {
+               return false;
+       }
+
+       for (i=0; i<num1; i++) {
+               p1 = stringarray_get(&m1->params, i);
+               p2 = stringarray_get(&m2->params, i);
+               if (strcmp(p1, p2) != 0) {
+                       return false;
+               }
+       }
+       return true;
+}
+
+////////////////////////////////////////////////////////////
+// macro table
+
+/*
+ * Unless I've screwed up, this is something called Fletcher's Checksum
+ * that showed up in Dr. Dobbs in, according to my notes, May 1992. The
+ * implementation is new.
+ */
+static
+unsigned
+hashfunc(const char *s, size_t len)
+{
+       uint16_t x1, x2, a;
+       size_t i;
+
+       x1 = (uint16_t) (len >> 16);
+       x2 = (uint16_t) (len);
+       if (x1==0) {
+               x1++;
+       }
+       if (x2==0) {
+               x2++;
+       }
+
+       for (i=0; i<len; i+=2) {
+               if (i==len-1) {
+                       a = (unsigned char)s[i];
+                       /* don't run off the end of the array */
+               }
+               else {
+                       a = (unsigned char)s[i] +
+                               ((uint16_t)(unsigned char)s[i+1] << 8);
+               }
+               x1 += a;
+               if (x1 < a) {
+                       x1++;
+               }
+               x2 += x1;
+               if (x2 < x1) {
+                       x2++;
+               }
+       }
+
+       x1 ^= 0xffff;
+       x2 ^= 0xffff;
+       return ((uint32_t)x2)*65535U + x1;
+}
+
+static
+void
+macrotable_init(void)
+{
+       unsigned i;
+
+       macroarrayarray_init(&macros);
+       macroarrayarray_setsize(&macros, 4);
+       for (i=0; i<4; i++) {
+               macroarrayarray_set(&macros, i, NULL);
+       }
+       total_macros = 0;
+       hashmask = 0x3;
+}
+
+DESTROYALL_ARRAY(macro, );
+
+static
+void
+macrotable_cleanup(void)
+{
+       struct macroarray *bucket;
+       unsigned numbuckets, i;
+
+       numbuckets = macroarrayarray_num(&macros);
+       for (i=0; i<numbuckets; i++) {
+               bucket = macroarrayarray_get(&macros, i);
+               if (bucket != NULL) {
+                       macroarray_destroyall(bucket);
+                       macroarray_destroy(bucket);
+               }
+       }
+       macroarrayarray_setsize(&macros, 0);
+       macroarrayarray_cleanup(&macros);
+}
+
+static
+struct macro *
+macrotable_findlen(const char *name, size_t len, bool remove_it)
+{
+       unsigned hash;
+       struct macroarray *bucket;
+       struct macro *m, *m2;
+       unsigned i, num;
+       size_t mlen;
+
+       hash = hashfunc(name, len);
+       bucket = macroarrayarray_get(&macros, hash & hashmask);
+       if (bucket == NULL) {
+               return NULL;
+       }
+       num = macroarray_num(bucket);
+       for (i=0; i<num; i++) {
+               m = macroarray_get(bucket, i);
+               if (hash != m->hash) {
+                       continue;
+               }
+               mlen = strlen(m->name);
+               if (len == mlen && !memcmp(name, m->name, len)) {
+                       if (remove_it) {
+                               if (i < num-1) {
+                                       m2 = macroarray_get(bucket, num-1);
+                                       macroarray_set(bucket, i, m2);
+                               }
+                               macroarray_setsize(bucket, num-1);
+                               total_macros--;
+                       }
+                       return m;
+               }
+       }
+       return NULL;
+}
+
+static
+struct macro *
+macrotable_find(const char *name, bool remove_it)
+{
+       return macrotable_findlen(name, strlen(name), remove_it);
+}
+
+static
+void
+macrotable_rehash(void)
+{
+       struct macroarray *newbucket, *oldbucket;
+       struct macro *m;
+       unsigned newmask, tossbit;
+       unsigned numbuckets, i;
+       unsigned oldnum, j, k;
+
+       numbuckets = macroarrayarray_num(&macros);
+       macroarrayarray_setsize(&macros, numbuckets*2);
+
+       assert(hashmask == numbuckets - 1);
+       newmask = (hashmask << 1) | 1U;
+       tossbit = newmask & ~hashmask;
+       hashmask = newmask;
+
+       for (i=0; i<numbuckets; i++) {
+               newbucket = NULL;
+               oldbucket = macroarrayarray_get(&macros, i);
+               if (oldbucket == NULL) {
+                       macroarrayarray_set(&macros, numbuckets + i, NULL);
+                       continue;
+               }
+               oldnum = macroarray_num(oldbucket);
+               for (j=0; j<oldnum; j++) {
+                       m = macroarray_get(oldbucket, j);
+                       if (m->hash & tossbit) {
+                               if (newbucket == NULL) {
+                                       newbucket = macroarray_create();
+                               }
+                               macroarray_set(oldbucket, j, NULL);
+                               macroarray_add(newbucket, m, NULL);
+                       }
+               }
+               for (j=k=0; j<oldnum; j++) {
+                       m = macroarray_get(oldbucket, j);
+                       if (m != NULL) {
+                               if (k < j) {
+                                       macroarray_set(oldbucket, k, m);
+                               }
+                               k++;
+                       }
+               }
+               macroarray_setsize(oldbucket, k);
+               macroarrayarray_set(&macros, numbuckets + i, newbucket);
+       }
+}
+
+static
+void
+macrotable_add(struct macro *m)
+{
+       unsigned hash;
+       struct macroarray *bucket;
+       unsigned numbuckets;
+
+       numbuckets = macroarrayarray_num(&macros);
+       if (total_macros > 0 && total_macros / numbuckets > 9) {
+               macrotable_rehash();
+       }
+
+       hash = hashfunc(m->name, strlen(m->name));
+       bucket = macroarrayarray_get(&macros, hash & hashmask);
+       if (bucket == NULL) {
+               bucket = macroarray_create();
+               macroarrayarray_set(&macros, hash & hashmask, bucket);
+       }
+       macroarray_add(bucket, m, NULL);
+       total_macros++;
+}
+
+////////////////////////////////////////////////////////////
+// external macro definition interface
+
+static
+struct macro *
+macro_define_common_start(struct place *p1, const char *macro,
+                         struct place *p2)
+{
+       struct macro *m;
+       unsigned hash;
+
+       if (!is_identifier(macro)) {
+               complain(p1, "Invalid macro name %s", macro);
+               complain_fail();
+       }
+
+       hash = hashfunc(macro, strlen(macro));
+       m = macro_create(p1, macro, hash, p2);
+       return m;
+}
+
+static
+void
+macro_define_common_end(struct macro *m)
+{
+       struct macro *oldm;
+       bool ok;
+
+       oldm = macrotable_find(m->name, false);
+       if (oldm != NULL) {
+               ok = macro_eq(m, oldm);
+               if (ok) {
+                       /* in traditional cpp this is silent */
+                       //complain(&m->defplace,
+                       //       "Warning: redefinition of %s", m->name);
+                       //complain(&oldm->defplace,
+                       //       "Previous definition was here");
+                       //if (mode.werror) {
+                       //      complain_fail();
+                       //}
+               } else {
+                       complain(&m->defplace,
+                                "Warning: non-identical redefinition of %s",
+                                m->name);
+                       complain(&oldm->defplace,
+                                "Previous definition was here");
+                       /* in traditional cpp this is not fatal */
+                       if (mode.werror) {
+                               complain_fail();
+                       }
+               }
+               macro_destroy(m);
+               return;
+       }
+       macrotable_add(m);
+}
+
+static
+void
+macro_parse_parameters(struct macro *m, struct place *p, const char *params)
+{
+       size_t len;
+       const char *s;
+       char *param;
+
+       while (params != NULL) {
+               len = strspn(params, ws);
+               params += len;
+               place_addcolumns(p, len);
+               s = strchr(params, ',');
+               if (s) {
+                       len = s-params;
+                       param = dostrndup(params, len);
+                       s++;
+               } else {
+                       len = strlen(params);
+                       param = dostrndup(params, len);
+               }
+               notrailingws(param, strlen(param));
+               if (!is_identifier(param)) {
+                       complain(p, "Invalid macro parameter name %s", param);
+                       complain_fail();
+               } else {
+                       stringarray_add(&m->params, param, NULL);
+               }
+               params = s;
+               place_addcolumns(p, len);
+       }
+}
+
+static
+bool
+isparam(struct macro *m, const char *name, size_t len, unsigned *num_ret)
+{
+       unsigned num, i;
+       const char *param;
+
+       num = stringarray_num(&m->params);
+       for (i=0; i<num; i++) {
+               param = stringarray_get(&m->params, i);
+               if (strlen(param) == len && !memcmp(name, param, len)) {
+                       *num_ret = i;
+                       return true;
+               }
+       }
+       return false;
+}
+
+static
+void
+macro_parse_expansion(struct macro *m, const char *buf)
+{
+       size_t blockstart, wordstart, pos;
+       struct expansionitem *ei;
+       unsigned param;
+
+       pos = blockstart = 0;
+       while (buf[pos] != '\0') {
+               pos += strspn(buf+pos, ws);
+               if (strchr(alnum, buf[pos])) {
+                       wordstart = pos;
+                       pos += strspn(buf+pos, alnum);
+                       if (isparam(m, buf+wordstart, pos-wordstart, &param)) {
+                               if (wordstart > blockstart) {
+                                       ei = expansionitem_create_stringlen(
+                                               buf + blockstart,
+                                               wordstart - blockstart);
+                                       expansionitemarray_add(&m->expansion,
+                                                              ei, NULL);
+                               }
+                               ei = expansionitem_create_param(param);
+                               expansionitemarray_add(&m->expansion, ei,NULL);
+                               blockstart = pos;
+                               continue;
+                       }
+                       continue;
+               }
+               pos++;
+       }
+       if (pos > blockstart) {
+               ei = expansionitem_create_stringlen(buf + blockstart,
+                                                   pos - blockstart);
+               expansionitemarray_add(&m->expansion, ei, NULL);
+       }
+}
+
+void
+macro_define_plain(struct place *p1, const char *macro,
+                  struct place *p2, const char *expansion)
+{
+       struct macro *m;
+       struct expansionitem *ei;
+
+       m = macro_define_common_start(p1, macro, p2);
+       ei = expansionitem_create_string(expansion);
+       expansionitemarray_add(&m->expansion, ei, NULL);
+       macro_define_common_end(m);
+}
+
+void
+macro_define_params(struct place *p1, const char *macro,
+                   struct place *p2, const char *params,
+                   struct place *p3, const char *expansion)
+{
+       struct macro *m;
+
+       m = macro_define_common_start(p1, macro, p3);
+       m->hasparams = true;
+       macro_parse_parameters(m, p2, params);
+       macro_parse_expansion(m, expansion);
+       macro_define_common_end(m);
+}
+
+void
+macro_define_magic(struct place *p, const char *macro)
+{
+       struct macro *m;
+       struct expansionitem *ei;
+
+       m = macro_define_common_start(p, macro, p);
+       if (!strcmp(macro, "__FILE__")) {
+               ei = expansionitem_create_file();
+       }
+       else {
+               assert(!strcmp(macro, "__LINE__"));
+               ei = expansionitem_create_line();
+       }
+       expansionitemarray_add(&m->expansion, ei, NULL);
+       macro_define_common_end(m);
+}
+
+void
+macro_undef(const char *macro)
+{
+       struct macro *m;
+
+       m = macrotable_find(macro, true);
+       if (m) {
+               macro_destroy(m);
+       }
+}
+
+bool
+macro_isdefined(const char *macro)
+{
+       struct macro *m;
+
+       m = macrotable_find(macro, false);
+       return m != NULL;
+}
+
+////////////////////////////////////////////////////////////
+// macro expansion
+
+struct expstate {
+       bool honordefined;
+       enum { ES_NORMAL, ES_WANTLPAREN, ES_NOARG, ES_HAVEARG } state;
+       struct macro *curmacro;
+       struct stringarray args;
+       unsigned argparens;
+
+       bool tobuf;
+       char *buf;
+       size_t bufpos, bufmax;
+};
+
+static struct expstate mainstate;
+
+static void doexpand(struct expstate *es, struct place *p,
+                    const char *buf, size_t len);
+
+static
+void
+expstate_init(struct expstate *es, bool tobuf, bool honordefined)
+{
+       es->honordefined = honordefined;
+       es->state = ES_NORMAL;
+       es->curmacro = NULL;
+       stringarray_init(&es->args);
+       es->argparens = 0;
+       es->tobuf = tobuf;
+       es->buf = NULL;
+       es->bufpos = 0;
+       es->bufmax = 0;
+}
+
+static
+void
+expstate_cleanup(struct expstate *es)
+{
+       assert(es->state == ES_NORMAL);
+       stringarray_cleanup(&es->args);
+       if (es->buf) {
+               dofree(es->buf, es->bufmax);
+       }
+}
+
+static
+void
+expstate_destroyargs(struct expstate *es)
+{
+       unsigned i, num;
+
+       num = stringarray_num(&es->args);
+       for (i=0; i<num; i++) {
+               dostrfree(stringarray_get(&es->args, i));
+       }
+       stringarray_setsize(&es->args, 0);
+}
+
+static
+void
+expand_send(struct expstate *es, struct place *p, const char *buf, size_t len)
+{
+       size_t oldmax;
+
+       if (es->tobuf) {
+               assert(es->bufpos <= es->bufmax);
+               if (es->bufpos + len > es->bufmax) {
+                       oldmax = es->bufmax;
+                       if (es->bufmax == 0) {
+                               es->bufmax = 64;
+                       }
+                       while (es->bufpos + len > es->bufmax) {
+                               es->bufmax *= 2;
+                       }
+                       es->buf = dorealloc(es->buf, oldmax, es->bufmax);
+               }
+               memcpy(es->buf + es->bufpos, buf, len);
+               es->bufpos += len;
+               assert(es->bufpos <= es->bufmax);
+       } else {
+               output(p, buf, len);
+       }
+}
+
+static
+void
+expand_send_eof(struct expstate *es, struct place *p)
+{
+       if (es->tobuf) {
+               expand_send(es, p, "", 1);
+               es->bufpos--;
+       } else {
+               output_eof();
+       }
+}
+
+static
+void
+expand_newarg(struct expstate *es, const char *buf, size_t len)
+{
+       char *text;
+
+       text = dostrndup(buf, len);
+       stringarray_add(&es->args, text, NULL);
+}
+
+static
+void
+expand_appendarg(struct expstate *es, const char *buf, size_t len)
+{
+       unsigned num;
+       char *text;
+       size_t oldlen;
+
+       num = stringarray_num(&es->args);
+       assert(num > 0);
+
+       text = stringarray_get(&es->args, num - 1);
+       oldlen = strlen(text);
+       text = dorealloc(text, oldlen + 1, oldlen + len + 1);
+       memcpy(text + oldlen, buf, len);
+       text[oldlen+len] = '\0';
+       stringarray_set(&es->args, num - 1, text);
+}
+
+static
+char *
+expand_substitute(struct place *p, struct expstate *es)
+{
+       struct expansionitem *ei;
+       unsigned i, num;
+       size_t len;
+       char *arg;
+       char *ret;
+       unsigned numargs, numparams;
+       char numbuf[64];
+
+       numargs = stringarray_num(&es->args);
+       numparams = stringarray_num(&es->curmacro->params);
+
+       if (numargs == 0 && numparams == 1) {
+               /* no arguments <=> one empty argument */
+               stringarray_add(&es->args, dostrdup(""), NULL);
+               numargs++;
+       }
+       if (numargs != numparams) {
+               complain(p, "Wrong number of arguments for macro %s; "
+                        "found %u, expected %u",
+                        es->curmacro->name, numargs, numparams);
+               complain_fail();
+               while (numargs < numparams) {
+                       stringarray_add(&es->args, dostrdup(""), NULL);
+                       numargs++;
+               }
+       }
+
+       len = 0;
+       num = expansionitemarray_num(&es->curmacro->expansion);
+       for (i=0; i<num; i++) {
+               ei = expansionitemarray_get(&es->curmacro->expansion, i);
+               switch (ei->itemtype) {
+                   case EI_STRING:
+                       len += strlen(ei->ei_string);
+                       break;
+                   case EI_PARAM:
+                       arg = stringarray_get(&es->args, ei->ei_param);
+                       len += strlen(arg);
+                       break;
+                   case EI_FILE:
+                       len += strlen(place_getname(p)) + 2;
+                       break;
+                   case EI_LINE:
+                       len += snprintf(numbuf, sizeof(numbuf), "%u", p->line);
+                       break;
+               }
+       }
+
+       ret = domalloc(len+1);
+       *ret = '\0';
+       for (i=0; i<num; i++) {
+               ei = expansionitemarray_get(&es->curmacro->expansion, i);
+               switch (ei->itemtype) {
+                   case EI_STRING:
+                       strcat(ret, ei->ei_string);
+                       break;
+                   case EI_PARAM:
+                       arg = stringarray_get(&es->args, ei->ei_param);
+                       strcat(ret, arg);
+                       break;
+                   case EI_FILE:
+                       strcat(ret, "\"");
+                       strcat(ret, place_getname(p));
+                       strcat(ret, "\"");
+                       break;
+                   case EI_LINE:
+                       snprintf(numbuf, sizeof(numbuf), "%u", p->line);
+                       strcat(ret, numbuf);
+                       break;
+               }
+       }
+
+       return ret;
+}
+
+static
+void
+expand_domacro(struct expstate *es, struct place *p)
+{
+       struct macro *m;
+       const char *name, *val;
+       char *newbuf, *newbuf2;
+
+       if (es->curmacro == NULL) {
+               /* defined() */
+               if (stringarray_num(&es->args) != 1) {
+                       complain(p, "Too many arguments for defined()");
+                       complain_fail();
+                       expand_send(es, p, "0", 1);
+                       return;
+               }
+               name = stringarray_get(&es->args, 0);
+               m = macrotable_find(name, false);
+               val = (m != NULL) ? "1" : "0";
+               debuglog(p, "defined(%s): %s", name, val); 
+               expand_send(es, p, val, 1);
+               expstate_destroyargs(es);
+               return;
+       }
+
+       m = es->curmacro;
+       assert(m->inuse == false);
+       m->inuse = true;
+
+       debuglog(p, "Expanding macro %s", m->name);
+       newbuf = expand_substitute(p, es);
+       debuglog(p, "Substituting for %s: %s", m->name, newbuf);
+
+       newbuf2 = macroexpand(p, newbuf, strlen(newbuf), false);
+       dostrfree(newbuf);
+       expstate_destroyargs(es);
+       debuglog(p, "Complete expansion for %s: %s", m->name, newbuf2);
+
+       doexpand(es, p, newbuf2, strlen(newbuf2));
+       dostrfree(newbuf2);
+
+       m->inuse = false;
+}
+
+/*
+ * The traditional behavior if a function-like macro appears without
+ * arguments is to pretend it isn't a macro; that is, just emit its
+ * name.
+ */
+static
+void
+expand_missingargs(struct expstate *es, struct place *p, bool needspace)
+{
+       if (es->curmacro == NULL) {
+               /* defined */
+               expand_send(es, p, "defined", 7);
+               return;
+       }
+       expand_send(es, p, es->curmacro->name, strlen(es->curmacro->name));
+       /* send a space in case we ate whitespace after the macro name */
+       if (needspace) {
+               expand_send(es, p, " ", 1);
+       }
+}
+
+static
+void
+expand_got_ws(struct expstate *es, struct place *p,
+             const char *buf, size_t len)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               expand_send(es, p, buf, len);
+               break;
+           case ES_WANTLPAREN:
+               /* XXX notyet */
+               //expand_send(es, p, buf, len);
+               break;
+           case ES_NOARG:
+               expand_newarg(es, buf, len);
+               es->state = ES_HAVEARG;
+               break;
+           case ES_HAVEARG:
+               expand_appendarg(es, buf, len);
+               break;
+       }
+}
+
+static
+void
+expand_got_word(struct expstate *es, struct place *p,
+               const char *buf, size_t len)
+{
+       struct macro *m;
+
+       switch (es->state) {
+           case ES_NORMAL:
+               if (es->honordefined &&
+                   len == 7 && !memcmp(buf, "defined", 7)) {
+                       es->curmacro = NULL;
+                       es->state = ES_WANTLPAREN;
+                       break;
+               }
+               m = macrotable_findlen(buf, len, false);
+               if (m == NULL || m->inuse) {
+                       expand_send(es, p, buf, len);
+               } else if (!m->hasparams) {
+                       es->curmacro = m;
+                       expand_domacro(es, p);
+               } else {
+                       es->curmacro = m;
+                       es->state = ES_WANTLPAREN;
+               }
+               break;
+           case ES_WANTLPAREN:
+               if (es->curmacro != NULL) {
+                       expand_missingargs(es, p, true);
+                       es->state = ES_NORMAL;
+                       /* try again */
+                       expand_got_word(es, p, buf, len);
+               } else {
+                       /* "defined foo" means "defined(foo)" */
+                       expand_newarg(es, buf, len);
+                       es->state = ES_NORMAL;
+                       expand_domacro(es, p);
+               }
+               break;
+           case ES_NOARG:
+               expand_newarg(es, buf, len);
+               es->state = ES_HAVEARG;
+               break;
+           case ES_HAVEARG:
+               expand_appendarg(es, buf, len);
+               break;
+       }
+}
+
+static
+void
+expand_got_lparen(struct expstate *es, struct place *p,
+                 const char *buf, size_t len)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               expand_send(es, p, buf, len);
+               break;
+           case ES_WANTLPAREN:
+               es->state = ES_NOARG;
+               break;
+           case ES_NOARG:
+               expand_newarg(es, buf, len);
+               es->state = ES_HAVEARG;
+               es->argparens++;
+               break;
+           case ES_HAVEARG:
+               expand_appendarg(es, buf, len);
+               es->argparens++;
+               break;
+       }
+}
+
+static
+void
+expand_got_rparen(struct expstate *es, struct place *p,
+                 const char *buf, size_t len)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               expand_send(es, p, buf, len);
+               break;
+           case ES_WANTLPAREN:
+               expand_missingargs(es, p, false);
+               es->state = ES_NORMAL;
+               /* try again */
+               expand_got_rparen(es, p, buf, len);
+               break;
+           case ES_NOARG:
+               assert(es->argparens == 0);
+               if (stringarray_num(&es->args) > 0) {
+                       /* we are after a comma; enter an empty argument */
+                       expand_newarg(es, buf, 0);
+               }
+               es->state = ES_NORMAL;
+               expand_domacro(es, p);
+               break;
+           case ES_HAVEARG:
+               if (es->argparens > 0) {
+                       es->argparens--;
+                       expand_appendarg(es, buf, len);
+               } else {
+                       es->state = ES_NORMAL;
+                       expand_domacro(es, p);
+               }
+               break;
+       }
+}
+
+static
+void
+expand_got_comma(struct expstate *es, struct place *p,
+                const char *buf, size_t len)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               expand_send(es, p, buf, len);
+               break;
+           case ES_WANTLPAREN:
+               expand_missingargs(es, p, false);
+               es->state = ES_NORMAL;
+               /* try again */
+               expand_got_comma(es, p, buf, len);
+               break;
+           case ES_NOARG:
+               assert(es->argparens == 0);
+               expand_newarg(es, buf, 0);
+               break;
+           case ES_HAVEARG:
+               if (es->argparens > 0) {
+                       expand_appendarg(es, buf, len);
+               } else {
+                       es->state = ES_NOARG;
+               }
+               break;
+       }
+}
+
+static
+void
+expand_got_other(struct expstate *es, struct place *p,
+                const char *buf, size_t len)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               expand_send(es, p, buf, len);
+               break;
+           case ES_WANTLPAREN:
+               expand_missingargs(es, p, false);
+               es->state = ES_NORMAL;
+               /* try again */
+               expand_got_other(es, p, buf, len);
+               break;
+           case ES_NOARG:
+               expand_newarg(es, buf, len);
+               es->state = ES_HAVEARG;
+               break;
+           case ES_HAVEARG:
+               expand_appendarg(es, buf, len);
+               break;
+       }
+}
+
+static
+void
+expand_got_eof(struct expstate *es, struct place *p)
+{
+       switch (es->state) {
+           case ES_NORMAL:
+               break;
+           case ES_WANTLPAREN:
+               expand_missingargs(es, p, false);
+               break;
+           case ES_NOARG:
+           case ES_HAVEARG:
+               if (es->curmacro) {
+                       complain(p, "Unclosed argument list for macro %s",
+                                es->curmacro->name);
+               } else {
+                       complain(p, "Unclosed argument list for defined()");
+               }
+               complain_fail();
+               expstate_destroyargs(es);
+               break;
+       }
+       expand_send_eof(es, p);
+       es->state = ES_NORMAL;
+       es->curmacro = NULL;
+       es->argparens = 0;
+}
+
+static
+void
+doexpand(struct expstate *es, struct place *p, const char *buf, size_t len)
+{
+       char *s;
+       size_t x;
+       bool inquote = false;
+       char quote = '\0';
+
+       while (len > 0) {
+               x = strspn(buf, ws);
+               if (x > len) {
+                       /* XXX gross, need strnspn */
+                       x = len;
+               }
+
+               if (x > 0) {
+                       expand_got_ws(es, p, buf, x);
+                       buf += x;
+                       len -= x;
+                       continue;
+               }
+
+               x = strspn(buf, alnum);
+               if (x > len) {
+                       /* XXX gross, need strnspn */
+                       x = len;
+               }
+
+               if (!inquote && x > 0) {
+                       expand_got_word(es, p, buf, x);
+                       buf += x;
+                       len -= x;
+                       continue;
+               }
+
+               if (!inquote && len > 1 && buf[0] == '/' && buf[1] == '*') {
+                       s = strstr(buf, "*/");
+                       if (s) {
+                               x = s - buf;
+                       } else {
+                               x = len;
+                       }
+                       expand_got_ws(es, p, buf, x);
+                       buf += x;
+                       len -= x;
+                       continue;
+               }
+
+               if (!inquote && buf[0] == '(') {
+                       expand_got_lparen(es, p, buf, 1);
+                       buf++;
+                       len--;
+                       continue;
+               }
+
+               if (!inquote && buf[0] == ')') {
+                       expand_got_rparen(es, p, buf, 1);
+                       buf++;
+                       len--;
+                       continue;
+               }
+
+               if (!inquote && buf[0] == ',') {
+                       expand_got_comma(es, p, buf, 1);
+                       buf++;
+                       len--;
+                       continue;
+               }
+
+               if (len > 1 && buf[0] == '\\' &&
+                   (buf[1] == '"' || buf[1] == '\'')) {
+                       expand_got_other(es, p, buf, 2);
+                       buf += 2;
+                       len -= 2;
+                       continue;
+               }
+               if (!inquote && (buf[0] == '"' || buf[0] == '\'')) {
+                       inquote = true;
+                       quote = buf[0];
+               } else if (inquote && buf[0] == quote) {
+                       inquote = false;
+               }
+
+               expand_got_other(es, p, buf, 1);
+               buf++;
+               len--;
+       }
+}
+
+char *
+macroexpand(struct place *p, const char *buf, size_t len, bool honordefined)
+{
+       struct expstate es;
+       char *ret;
+
+       expstate_init(&es, true, honordefined);
+       doexpand(&es, p, buf, len);
+       expand_got_eof(&es, p);
+
+       /* trim to fit, so the malloc debugging won't complain */
+       es.buf = dorealloc(es.buf, es.bufmax, strlen(es.buf) + 1);
+
+       ret = es.buf;
+       es.buf = NULL;
+       es.bufpos = es.bufmax = 0;
+
+       expstate_cleanup(&es);
+
+       return ret;
+}
+
+void
+macro_sendline(struct place *p, const char *buf, size_t len)
+{
+       doexpand(&mainstate, p, buf, len);
+       switch (mainstate.state) {
+           case ES_NORMAL:
+               /*
+                * If we were sent a blank line, don't emit a newline
+                * for it. This matches the prior behavior of tradcpp.
+                */
+               if (len > 0) {
+                       output(p, "\n", 1);
+               }
+               break;
+           case ES_WANTLPAREN:
+           case ES_NOARG:
+           case ES_HAVEARG:
+               /*
+                * Apparently to match gcc's -traditional behavior we
+                * need to emit a space for each newline that appears
+                * while processing macro args.
+                */
+               expand_got_ws(&mainstate, p, " ", 1);
+               break;
+       }
+}
+
+void
+macro_sendeof(struct place *p)
+{
+       expand_got_eof(&mainstate, p);
+}
+
+////////////////////////////////////////////////////////////
+// module initialization
+
+void
+macros_init(void)
+{
+       macrotable_init();
+       expstate_init(&mainstate, false, false);
+}
+
+void
+macros_cleanup(void)
+{
+       expstate_cleanup(&mainstate);
+       macrotable_cleanup();
+}
diff --git a/cde/util/tradcpp/macro.h b/cde/util/tradcpp/macro.h
new file mode 100644 (file)
index 0000000..76938a3
--- /dev/null
@@ -0,0 +1,51 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stddef.h>
+#include "bool.h"
+
+struct place;
+
+void macros_init(void);
+void macros_cleanup(void);
+
+void macro_define_plain(struct place *, const char *macro,
+                       struct place *, const char *expansion);
+void macro_define_params(struct place *, const char *macro,
+                        struct place *, const char *params,
+                        struct place *, const char *expansion);
+void macro_define_magic(struct place *, const char *macro);
+void macro_undef(const char *macro);
+bool macro_isdefined(const char *macro);
+
+char *macroexpand(struct place *, const char *buf, size_t len,
+                 bool honordefined);
+
+void macro_sendline(struct place *, const char *buf, size_t len);
+void macro_sendeof(struct place *);
diff --git a/cde/util/tradcpp/main.c b/cde/util/tradcpp/main.c
new file mode 100644 (file)
index 0000000..7c8f265
--- /dev/null
@@ -0,0 +1,1113 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+
+#include "bool.h"
+#include "version.h"
+#include "config.h"
+#include "utils.h"
+#include "array.h"
+#include "mode.h"
+#include "place.h"
+#include "files.h"
+#include "directive.h"
+#include "macro.h"
+
+struct mode mode = {
+       .werror = false,
+
+       .input_allow_dollars = false,
+       .input_tabstop = 8,
+
+       .do_stdinc = true,
+       .do_stddef = true,
+
+       .do_output = true,
+       .output_linenumbers = true,
+       .output_cheaplinenumbers = false,
+       .output_retain_comments = false,
+       .output_file = NULL,
+
+       .do_depend = false,
+       .depend_report_system = false,
+       .depend_assume_generated = false,
+       .depend_issue_fakerules = false,
+       .depend_quote_target = true,
+       .depend_target = NULL,
+       .depend_file = NULL,
+
+       .do_macrolist = false,
+       .macrolist_include_stddef = false,
+       .macrolist_include_expansions = false,
+
+       .do_trace = false,
+       .trace_namesonly = false,
+       .trace_indented = false,
+};
+
+struct warns warns = {
+       .endiflabels = true,
+       .nestcomment = false,
+       .undef = false,
+       .unused = false,
+};
+
+////////////////////////////////////////////////////////////
+// commandline macros
+
+struct commandline_macro {
+       struct place where;
+       struct place where2;
+       const char *macro;
+       const char *expansion;
+};
+
+static struct array commandline_macros;
+
+static
+void
+commandline_macros_init(void)
+{
+       array_init(&commandline_macros);
+}
+
+static
+void
+commandline_macros_cleanup(void)
+{
+       unsigned i, num;
+       struct commandline_macro *cm;
+
+       num = array_num(&commandline_macros);
+       for (i=0; i<num; i++) {
+               cm = array_get(&commandline_macros, i);
+               dofree(cm, sizeof(*cm));
+       }
+       array_setsize(&commandline_macros, 0);
+       
+       array_cleanup(&commandline_macros);
+}
+
+static
+void
+commandline_macro_add(const struct place *p, const char *macro,
+                     const struct place *p2, const char *expansion)
+{
+       struct commandline_macro *cm;
+
+       cm = domalloc(sizeof(*cm));
+       cm->where = *p;
+       cm->where2 = *p2;
+       cm->macro = macro;
+       cm->expansion = expansion;
+
+       array_add(&commandline_macros, cm, NULL);
+}
+
+static
+void
+commandline_def(const struct place *p, char *str)
+{
+       struct place p2;
+       char *val;
+
+       if (*str == '\0') {
+               complain(NULL, "-D: macro name expected");
+               die();
+       }
+
+       val = strchr(str, '=');
+       if (val != NULL) {
+               *val = '\0';
+               val++;
+       }
+
+       if (val) {
+               p2 = *p;
+               place_addcolumns(&p2, strlen(str));
+       } else {
+               place_setbuiltin(&p2, 1);
+       }
+       commandline_macro_add(p, str, &p2, val ? val : "1");
+}
+
+static
+void
+commandline_undef(const struct place *p, char *str)
+{
+       if (*str == '\0') {
+               complain(NULL, "-U: macro name expected");
+               die();
+       }
+       commandline_macro_add(p, str, p, NULL);
+}
+
+static
+void
+apply_commandline_macros(void)
+{
+       struct commandline_macro *cm;
+       unsigned i, num;
+
+       num = array_num(&commandline_macros);
+       for (i=0; i<num; i++) {
+               cm = array_get(&commandline_macros, i);
+               if (cm->expansion != NULL) {
+                       macro_define_plain(&cm->where, cm->macro,
+                                          &cm->where2, cm->expansion);
+               } else {
+                       macro_undef(cm->macro);
+               }
+               dofree(cm, sizeof(*cm));
+       }
+       array_setsize(&commandline_macros, 0);
+}
+
+static
+void
+apply_magic_macro(unsigned num, const char *name)
+{
+       struct place p;
+
+       place_setbuiltin(&p, num);
+       macro_define_magic(&p, name);
+}
+
+static
+void
+apply_builtin_macro(unsigned num, const char *name, const char *val)
+{
+       struct place p;
+
+       place_setbuiltin(&p, num);
+       macro_define_plain(&p, name, &p, val);
+}
+
+static
+void
+apply_builtin_macros(void)
+{
+       unsigned n = 1;
+
+       apply_magic_macro(n++, "__FILE__");
+       apply_magic_macro(n++, "__LINE__");
+
+#ifdef CONFIG_OS
+       apply_builtin_macro(n++, CONFIG_OS, "1");
+#endif
+#ifdef CONFIG_OS_2
+       apply_builtin_macro(n++, CONFIG_OS_2, "1");
+#endif
+
+#ifdef CONFIG_CPU
+       apply_builtin_macro(n++, CONFIG_CPU, "1");
+#endif
+#ifdef CONFIG_CPU_2
+       apply_builtin_macro(n++, CONFIG_CPU_2, "1");
+#endif
+
+#ifdef CONFIG_SIZE
+       apply_builtin_macro(n++, CONFIG_SIZE, "1");
+#endif
+#ifdef CONFIG_BINFMT
+       apply_builtin_macro(n++, CONFIG_BINFMT, "1");
+#endif
+
+#ifdef CONFIG_COMPILER
+       apply_builtin_macro(n++, CONFIG_COMPILER, VERSION_MAJOR);
+       apply_builtin_macro(n++, CONFIG_COMPILER_MINOR, VERSION_MINOR);
+       apply_builtin_macro(n++, "__VERSION__", VERSION_LONG);
+#endif
+}
+
+////////////////////////////////////////////////////////////
+// extra included files
+
+struct commandline_file {
+       struct place where;
+       char *name;
+       bool suppress_output;
+};
+
+static struct array commandline_files;
+
+static
+void
+commandline_files_init(void)
+{
+       array_init(&commandline_files);
+}
+
+static
+void
+commandline_files_cleanup(void)
+{
+       unsigned i, num;
+       struct commandline_file *cf;
+
+       num = array_num(&commandline_files);
+       for (i=0; i<num; i++) {
+               cf = array_get(&commandline_files, i);
+               if (cf != NULL) {
+                       dofree(cf, sizeof(*cf));
+               }
+       }
+       array_setsize(&commandline_files, 0);
+
+       array_cleanup(&commandline_files);
+}
+
+static
+void
+commandline_addfile(const struct place *p, char *name, bool suppress_output)
+{
+       struct commandline_file *cf;
+
+       cf = domalloc(sizeof(*cf));
+       cf->where = *p;
+       cf->name = name;
+       cf->suppress_output = suppress_output;
+       array_add(&commandline_files, cf, NULL);
+}
+
+static
+void
+commandline_addfile_output(const struct place *p, char *name)
+{
+       commandline_addfile(p, name, false);
+}
+
+static
+void
+commandline_addfile_nooutput(const struct place *p, char *name)
+{
+       commandline_addfile(p, name, true);
+}
+
+static
+void
+read_commandline_files(void)
+{
+       struct commandline_file *cf;
+       unsigned i, num;
+       bool save = false;
+
+       num = array_num(&commandline_files);
+       for (i=0; i<num; i++) {
+               cf = array_get(&commandline_files, i);
+               array_set(&commandline_files, i, NULL);
+               if (cf->suppress_output) {
+                       save = mode.do_output;
+                       mode.do_output = false;
+                       file_readquote(&cf->where, cf->name);
+                       mode.do_output = save;
+               } else {
+                       file_readquote(&cf->where, cf->name);
+               }
+               dofree(cf, sizeof(*cf));
+       }
+       array_setsize(&commandline_files, 0);
+}
+
+////////////////////////////////////////////////////////////
+// include path accumulation
+
+static struct stringarray incpath_quote;
+static struct stringarray incpath_user;
+static struct stringarray incpath_system;
+static struct stringarray incpath_late;
+static const char *sysroot;
+
+static
+void
+incpath_init(void)
+{
+       stringarray_init(&incpath_quote);
+       stringarray_init(&incpath_user);
+       stringarray_init(&incpath_system);
+       stringarray_init(&incpath_late);
+}
+
+static
+void
+incpath_cleanup(void)
+{
+       stringarray_setsize(&incpath_quote, 0);
+       stringarray_setsize(&incpath_user, 0);
+       stringarray_setsize(&incpath_system, 0);
+       stringarray_setsize(&incpath_late, 0);
+
+       stringarray_cleanup(&incpath_quote);
+       stringarray_cleanup(&incpath_user);
+       stringarray_cleanup(&incpath_system);
+       stringarray_cleanup(&incpath_late);
+}
+
+static
+void
+commandline_isysroot(const struct place *p, char *dir)
+{
+       (void)p;
+       sysroot = dir;
+}
+
+static
+void
+commandline_addincpath(struct stringarray *arr, char *s)
+{
+       if (*s == '\0') {
+               complain(NULL, "Empty include directory");
+               die();
+       }
+       stringarray_add(arr, s, NULL);
+}
+
+static
+void
+commandline_addincpath_quote(const struct place *p, char *dir)
+{
+       (void)p;
+       commandline_addincpath(&incpath_quote, dir);
+}
+
+static
+void
+commandline_addincpath_user(const struct place *p, char *dir)
+{
+       (void)p;
+       commandline_addincpath(&incpath_user, dir);
+}
+
+static
+void
+commandline_addincpath_system(const struct place *p, char *dir)
+{
+       (void)p;
+       commandline_addincpath(&incpath_system, dir);
+}
+
+static
+void
+commandline_addincpath_late(const struct place *p, char *dir)
+{
+       (void)p;
+       commandline_addincpath(&incpath_late, dir);
+}
+
+static
+void
+loadincludepath(void)
+{
+       unsigned i, num;
+       const char *dir;
+       char *t;
+
+       num = stringarray_num(&incpath_quote);
+       for (i=0; i<num; i++) {
+               dir = stringarray_get(&incpath_quote, i);
+               files_addquotepath(dir, false);
+       }
+       files_addquotepath(NULL, false);
+
+       num = stringarray_num(&incpath_user);
+       for (i=0; i<num; i++) {
+               dir = stringarray_get(&incpath_user, i);
+               files_addquotepath(dir, false);
+               files_addbracketpath(dir, false);
+       }
+
+       if (mode.do_stdinc) {
+               if (sysroot != NULL) {
+                       t = dostrdup3(sysroot, "/", CONFIG_LOCALINCLUDE);
+                       freestringlater(t);
+                       dir = t;
+               } else {
+                       dir = CONFIG_LOCALINCLUDE;
+               }
+               files_addquotepath(dir, true);
+               files_addbracketpath(dir, true);
+
+               if (sysroot != NULL) {
+                       t = dostrdup3(sysroot, "/", CONFIG_SYSTEMINCLUDE);
+                       freestringlater(t);
+                       dir = t;
+               } else {
+                       dir = CONFIG_SYSTEMINCLUDE;
+               }
+               files_addquotepath(dir, true);
+               files_addbracketpath(dir, true);
+       }
+
+       num = stringarray_num(&incpath_system);
+       for (i=0; i<num; i++) {
+               dir = stringarray_get(&incpath_system, i);
+               files_addquotepath(dir, true);
+               files_addbracketpath(dir, true);
+       }
+
+       num = stringarray_num(&incpath_late);
+       for (i=0; i<num; i++) {
+               dir = stringarray_get(&incpath_late, i);
+               files_addquotepath(dir, false);
+               files_addbracketpath(dir, false);
+       }
+}
+
+////////////////////////////////////////////////////////////
+// silly commandline stuff
+
+static const char *commandline_prefix;
+
+static
+void
+commandline_setprefix(const struct place *p, char *prefix)
+{
+       (void)p;
+       commandline_prefix = prefix;
+}
+
+static
+void
+commandline_addincpath_user_withprefix(const struct place *p, char *dir)
+{
+       char *s;
+
+       if (commandline_prefix == NULL) {
+               complain(NULL, "-iprefix needed");
+               die();
+       }
+       s = dostrdup3(commandline_prefix, "/", dir);
+       freestringlater(s);
+       commandline_addincpath_user(p, s);
+}
+
+static
+void
+commandline_addincpath_late_withprefix(const struct place *p, char *dir)
+{
+       char *s;
+
+       if (commandline_prefix == NULL) {
+               complain(NULL, "-iprefix needed");
+               die();
+       }
+       s = dostrdup3(commandline_prefix, "/", dir);
+       freestringlater(s);
+       commandline_addincpath_late(p, s);
+}
+
+static
+void
+commandline_setstd(const struct place *p, char *std)
+{
+       (void)p;
+
+       if (!strcmp(std, "krc")) {
+               return;
+       }
+       complain(NULL, "Standard %s not supported by this preprocessor", std);
+       die();
+}
+
+static
+void
+commandline_setlang(const struct place *p, char *lang)
+{
+       (void)p;
+
+       if (!strcmp(lang, "c") || !strcmp(lang, "assembler-with-cpp")) {
+               return;
+       }
+       complain(NULL, "Language %s not supported by this preprocessor", lang);
+       die();
+}
+
+////////////////////////////////////////////////////////////
+// complex modes
+
+DEAD static
+void
+commandline_iremap(const struct place *p, char *str)
+{
+       (void)p;
+       /* XXX */
+       (void)str;
+       complain(NULL, "-iremap not supported");
+       die();
+}
+
+static
+void
+commandline_tabstop(const struct place *p, char *s)
+{
+       char *t;
+       unsigned long val;
+
+       (void)p;
+
+       t = strchr(s, '=');
+       if (t == NULL) {
+               /* should not happen */
+               complain(NULL, "Invalid tabstop");
+               die();
+       }
+       t++;
+       errno = 0;
+       val = strtoul(t, &t, 10);
+       if (errno || *t != '\0') {
+               complain(NULL, "Invalid tabstop");
+               die();
+       }
+       if (val > 64) {
+               complain(NULL, "Preposterously large tabstop");
+               die();
+       }
+       mode.input_tabstop = val;
+}
+
+/*
+ * macrolist
+ */
+
+static
+void
+commandline_dD(void)
+{
+       mode.do_macrolist = true;
+       mode.macrolist_include_stddef = false;
+       mode.macrolist_include_expansions = true;
+}
+
+static
+void
+commandline_dM(void)
+{
+       mode.do_macrolist = true;
+       mode.macrolist_include_stddef = true;
+       mode.macrolist_include_expansions = true;
+       mode.do_output = false;
+}
+
+static
+void
+commandline_dN(void)
+{
+       mode.do_macrolist = true;
+       mode.macrolist_include_stddef = false;
+       mode.macrolist_include_expansions = false;
+}
+
+/*
+ * include trace
+ */
+
+static
+void
+commandline_dI(void)
+{
+       mode.do_trace = true;
+       mode.trace_namesonly = false;
+       mode.trace_indented = false;
+}
+
+static
+void
+commandline_H(void)
+{
+       mode.do_trace = true;
+       mode.trace_namesonly = true;
+       mode.trace_indented = true;
+}
+
+/*
+ * depend
+ */
+
+static
+void
+commandline_setdependtarget(const struct place *p, char *str)
+{
+       (void)p;
+       mode.depend_target = str;
+       mode.depend_quote_target = false;
+}
+
+static
+void
+commandline_setdependtarget_quoted(const struct place *p, char *str)
+{
+       (void)p;
+       mode.depend_target = str;
+       mode.depend_quote_target = true;
+}
+
+static
+void
+commandline_setdependoutput(const struct place *p, char *str)
+{
+       (void)p;
+       mode.depend_file = str;
+}
+
+static
+void
+commandline_M(void)
+{
+       mode.do_depend = true;
+       mode.depend_report_system = true;
+       mode.do_output = false;
+}
+
+static
+void
+commandline_MM(void)
+{
+       mode.do_depend = true;
+       mode.depend_report_system = false;
+       mode.do_output = false;
+}
+
+static
+void
+commandline_MD(void)
+{
+       mode.do_depend = true;
+       mode.depend_report_system = true;
+}
+
+static
+void
+commandline_MMD(void)
+{
+       mode.do_depend = true;
+       mode.depend_report_system = false;
+}
+
+static
+void
+commandline_wall(void)
+{
+       warns.nestcomment = true;
+       warns.undef = true;
+       warns.unused = true;
+}
+
+static
+void
+commandline_wnoall(void)
+{
+       warns.nestcomment = false;
+       warns.undef = false;
+       warns.unused = false;
+}
+
+static
+void
+commandline_wnone(void)
+{
+       warns.nestcomment = false;
+       warns.endiflabels = false;
+       warns.undef = false;
+       warns.unused = false;
+}
+
+////////////////////////////////////////////////////////////
+// options
+
+struct ignore_option {
+       const char *string;
+};
+
+struct flag_option {
+       const char *string;
+       bool *flag;
+       bool setto;
+};
+
+struct act_option {
+       const char *string;
+       void (*func)(void);
+};
+
+struct prefix_option {
+       const char *string;
+       void (*func)(const struct place *, char *);
+};
+
+struct arg_option {
+       const char *string;
+       void (*func)(const struct place *, char *);
+};
+
+static const struct ignore_option ignore_options[] = {
+       { "m32" },
+       { "traditional" },
+};
+static const unsigned num_ignore_options = HOWMANY(ignore_options);
+
+static const struct flag_option flag_options[] = {
+       { "C",                          &mode.output_retain_comments,  true },
+       { "CC",                         &mode.output_retain_comments,  true },
+       { "MG",                         &mode.depend_assume_generated, true },
+       { "MP",                         &mode.depend_issue_fakerules,  true },
+       { "P",                          &mode.output_linenumbers,      false },
+       { "Wcomment",                   &warns.nestcomment,    true },
+       { "Wendif-labels",              &warns.endiflabels,    true },
+       { "Werror",                     &mode.werror,          true },
+       { "Wno-comment",                &warns.nestcomment,    false },
+       { "Wno-endif-labels",           &warns.endiflabels,    false },
+       { "Wno-error",                  &mode.werror,          false },
+       { "Wno-undef",                  &warns.undef,          false },
+       { "Wno-unused-macros",          &warns.unused,         false },
+       { "Wundef",                     &warns.undef,          true },
+       { "Wunused-macros",             &warns.unused,         true },
+       { "fdollars-in-identifiers",    &mode.input_allow_dollars,     true },
+       { "fno-dollars-in-identifiers", &mode.input_allow_dollars,     false },
+       { "nostdinc",                   &mode.do_stdinc,               false },
+       { "p",                          &mode.output_cheaplinenumbers, true },
+       { "undef",                      &mode.do_stddef,               false },
+};
+static const unsigned num_flag_options = HOWMANY(flag_options);
+
+static const struct act_option act_options[] = {
+       { "H",         commandline_H },
+       { "M",         commandline_M },
+       { "MD",        commandline_MD },
+       { "MM",        commandline_MM },
+       { "MMD",       commandline_MMD },
+       { "Wall",      commandline_wall },
+       { "Wno-all",   commandline_wnoall },
+       { "dD",        commandline_dD },
+       { "dI",        commandline_dI },
+       { "dM",        commandline_dM },
+       { "dN",        commandline_dN },
+       { "w",         commandline_wnone },
+};
+static const unsigned num_act_options = HOWMANY(act_options);
+
+static const struct prefix_option prefix_options[] = {
+       { "D",         commandline_def },
+       { "I",         commandline_addincpath_user },
+       { "U",         commandline_undef },
+       { "ftabstop=", commandline_tabstop },
+       { "std=",      commandline_setstd },
+};
+static const unsigned num_prefix_options = HOWMANY(prefix_options);
+
+static const struct arg_option arg_options[] = {
+       { "MF",          commandline_setdependoutput },
+       { "MQ",          commandline_setdependtarget_quoted },
+       { "MT",          commandline_setdependtarget },
+       { "debuglog",    debuglog_open },
+       { "idirafter",   commandline_addincpath_late },
+       { "imacros",     commandline_addfile_nooutput },
+       { "include",     commandline_addfile_output },
+       { "iprefix",     commandline_setprefix },
+       { "iquote",      commandline_addincpath_quote },
+       { "iremap",      commandline_iremap },
+       { "isysroot",    commandline_isysroot },
+       { "isystem",     commandline_addincpath_system },
+       { "iwithprefix", commandline_addincpath_late_withprefix },
+       { "iwithprefixbefore", commandline_addincpath_user_withprefix },
+       { "x",           commandline_setlang },
+};
+static const unsigned num_arg_options = HOWMANY(arg_options);
+
+static
+bool
+check_ignore_option(const char *opt)
+{
+       unsigned i;
+       int r;
+
+       for (i=0; i<num_ignore_options; i++) {
+               r = strcmp(opt, ignore_options[i].string);
+               if (r == 0) {
+                       return true;
+               }
+               if (r < 0) {
+                       break;
+               }
+       }
+       return false;
+}
+
+static
+bool
+check_flag_option(const char *opt)
+{
+       unsigned i;
+       int r;
+
+       for (i=0; i<num_flag_options; i++) {
+               r = strcmp(opt, flag_options[i].string);
+               if (r == 0) {
+                       *flag_options[i].flag = flag_options[i].setto;
+                       return true;
+               }
+               if (r < 0) {
+                       break;
+               }
+       }
+       return false;
+}
+
+static
+bool
+check_act_option(const char *opt)
+{
+       unsigned i;
+       int r;
+
+       for (i=0; i<num_act_options; i++) {
+               r = strcmp(opt, act_options[i].string);
+               if (r == 0) {
+                       act_options[i].func();
+                       return true;
+               }
+               if (r < 0) {
+                       break;
+               }
+       }
+       return false;
+}
+
+static
+bool
+check_prefix_option(const struct place *p, char *opt)
+{
+       unsigned i, len;
+       int r;
+
+       for (i=0; i<num_prefix_options; i++) {
+               len = strlen(prefix_options[i].string);
+               r = strncmp(opt, prefix_options[i].string, len);
+               if (r == 0) {
+                       prefix_options[i].func(p, opt + len);
+                       return true;
+               }
+               if (r < 0) {
+                       break;
+               }
+       }
+       return false;
+}
+
+static
+bool
+check_arg_option(const char *opt, const struct place *argplace, char *arg)
+{
+       unsigned i;
+       int r;
+
+       for (i=0; i<num_arg_options; i++) {
+               r = strcmp(opt, arg_options[i].string);
+               if (r == 0) {
+                       if (arg == NULL) {
+                               complain(NULL,
+                                        "Option -%s requires an argument",
+                                        opt);
+                               die();
+                       }
+                       arg_options[i].func(argplace, arg);
+                       return true;
+               }
+               if (r < 0) {
+                       break;
+               }
+       }
+       return false;
+}
+
+DEAD PF(2, 3) static
+void
+usage(const char *progname, const char *fmt, ...)
+{
+       va_list ap;
+
+       fprintf(stderr, "%s: ", progname);
+       va_start(ap, fmt);
+       vfprintf(stderr, fmt, ap);
+       va_end(ap);
+       fprintf(stderr, "\n");
+
+       fprintf(stderr, "usage: %s [options] [infile [outfile]]\n", progname);
+       fprintf(stderr, "Common options:\n");
+       fprintf(stderr, "   -C               Retain comments\n");
+       fprintf(stderr, "   -Dmacro[=def]    Predefine macro\n");
+       fprintf(stderr, "   -Idir            Add to include path\n");
+       fprintf(stderr, "   -M               Issue depend info\n");
+       fprintf(stderr, "   -MD              Issue depend info and output\n");
+       fprintf(stderr, "   -MM              -M w/o system headers\n");
+       fprintf(stderr, "   -MMD             -MD w/o system headers\n");
+       fprintf(stderr, "   -nostdinc        Drop default include path\n");
+       fprintf(stderr, "   -Umacro          Undefine macro\n");
+       fprintf(stderr, "   -undef           Undefine everything\n");
+       fprintf(stderr, "   -Wall            Enable all warnings\n");
+       fprintf(stderr, "   -Werror          Make warnings into errors\n");
+       fprintf(stderr, "   -w               Disable all warnings\n");
+       die();
+}
+
+////////////////////////////////////////////////////////////
+// exit and cleanup
+
+static struct stringarray freestrings;
+
+static
+void
+init(void)
+{
+       stringarray_init(&freestrings);
+
+       incpath_init();
+       commandline_macros_init();
+       commandline_files_init();
+
+       place_init();
+       files_init();
+       directive_init();
+       macros_init();
+}
+
+static
+void
+cleanup(void)
+{
+       unsigned i, num;
+
+       macros_cleanup();
+       directive_cleanup();
+       files_cleanup();
+       place_cleanup();
+
+       commandline_files_cleanup();
+       commandline_macros_cleanup();
+       incpath_cleanup();
+       debuglog_close();
+
+       num = stringarray_num(&freestrings);
+       for (i=0; i<num; i++) {
+               dostrfree(stringarray_get(&freestrings, i));
+       }
+       stringarray_setsize(&freestrings, 0);
+       stringarray_cleanup(&freestrings);
+}
+
+void
+die(void)
+{
+       cleanup();
+       exit(EXIT_FAILURE);
+}
+
+void
+freestringlater(char *s)
+{
+       stringarray_add(&freestrings, s, NULL);
+}
+
+////////////////////////////////////////////////////////////
+// main
+
+int
+main(int argc, char *argv[])
+{
+       const char *progname;
+       const char *inputfile = NULL;
+       const char *outputfile = NULL;
+       struct place cmdplace;
+       int i;
+
+       progname = strrchr(argv[0], '/');
+       progname = progname == NULL ? argv[0] : progname + 1;
+       complain_init(progname);
+
+       init();
+
+       for (i=1; i<argc; i++) {
+               if (argv[i][0] != '-' || argv[i][1] == 0) {
+                       break;
+               }
+               place_setcommandline(&cmdplace, i, 1);
+               if (check_ignore_option(argv[i]+1)) {
+                       continue;
+               }
+               if (check_flag_option(argv[i]+1)) {
+                       continue;
+               }
+               if (check_act_option(argv[i]+1)) {
+                       continue;
+               }
+               if (check_prefix_option(&cmdplace, argv[i]+1)) {
+                       continue;
+               }
+               place_setcommandline(&cmdplace, i+1, 1);
+               if (check_arg_option(argv[i]+1, &cmdplace, argv[i+1])) {
+                       i++;
+                       continue;
+               }
+               usage(progname, "Invalid option %s", argv[i]);
+       }
+       if (i < argc) {
+               inputfile = argv[i++];
+               if (!strcmp(inputfile, "-")) {
+                       inputfile = NULL;
+               }
+       }
+       if (i < argc) {
+               outputfile = argv[i++];
+               if (!strcmp(outputfile, "-")) {
+                       outputfile = NULL;
+               }
+       }
+       if (i < argc) {
+               usage(progname, "Extra non-option argument %s", argv[i]);
+       }
+
+       mode.output_file = outputfile;
+
+       loadincludepath();
+       apply_builtin_macros();
+       apply_commandline_macros();
+       read_commandline_files();
+       place_setnowhere(&cmdplace);
+       file_readabsolute(&cmdplace, inputfile);
+
+       cleanup();
+       if (complain_failed()) {
+               return EXIT_FAILURE;
+       }
+       return EXIT_SUCCESS;
+}
diff --git a/cde/util/tradcpp/mode.h b/cde/util/tradcpp/mode.h
new file mode 100644 (file)
index 0000000..1b90e54
--- /dev/null
@@ -0,0 +1,66 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "bool.h"
+
+struct mode {
+       bool werror;
+       bool input_allow_dollars;
+       unsigned input_tabstop;
+       bool do_stdinc;
+       bool do_stddef;
+       bool do_output;
+       bool output_linenumbers;
+       bool output_cheaplinenumbers;
+       bool output_retain_comments;
+       const char *output_file;
+       bool do_depend;
+       bool depend_report_system;
+       bool depend_assume_generated;
+       bool depend_issue_fakerules;
+       bool depend_quote_target;
+       const char *depend_target;
+       const char *depend_file;
+       bool do_macrolist;
+       bool macrolist_include_stddef;
+       bool macrolist_include_expansions;
+       bool do_trace;
+       bool trace_namesonly;
+       bool trace_indented;
+};
+
+struct warns {
+       bool endiflabels;
+       bool nestcomment;
+       bool undef;
+       bool unused;
+};
+
+extern struct mode mode;
+extern struct warns warns;
diff --git a/cde/util/tradcpp/output.c b/cde/util/tradcpp/output.c
new file mode 100644 (file)
index 0000000..d706a31
--- /dev/null
@@ -0,0 +1,203 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <errno.h>
+
+#include "utils.h"
+#include "mode.h"
+#include "place.h"
+#include "output.h"
+
+static int outputfd = -1;
+static bool incomment = false;
+static char *linebuf;
+static size_t linebufpos, linebufmax;
+static struct place linebufplace;
+
+static
+void
+output_open(void)
+{
+       if (mode.output_file == NULL) {
+               outputfd = STDOUT_FILENO;
+       } else {
+               outputfd = open(mode.output_file, O_WRONLY|O_CREAT|O_TRUNC,
+                               0664);
+               if (outputfd < 0) {
+                       complain(NULL, "%s: %s",
+                                mode.output_file, strerror(errno));
+                       die();
+               }
+       }
+}
+
+static
+void
+dowrite(const char *buf, size_t len)
+{
+       size_t done;
+       ssize_t result;
+       static unsigned write_errors = 0;
+
+       if (!mode.do_output) {
+               return;
+       }
+
+       if (outputfd < 0) {
+               output_open();
+       }
+
+       done = 0;
+       while (done < len) {
+               result = write(outputfd, buf+done, len-done);
+               if (result == -1) {
+                       complain(NULL, "%s: write: %s",
+                                mode.output_file, strerror(errno));
+                       complain_failed();
+                       write_errors++;
+                       if (write_errors > 5) {
+                               complain(NULL, "%s: giving up",
+                                        mode.output_file);
+                               die();
+                       }
+                       /* XXX is this really a good idea? */
+                       sleep(1);
+               }
+               done += (size_t)result;
+       }
+}
+
+
+static
+void
+filter_output(const char *buf, size_t len)
+{
+       size_t pos, start;
+       bool inesc = false;
+       bool inquote = false;
+       char quote = '\0';
+
+       start = 0;
+       for (pos = 0; pos < len - 1; pos++) {
+               if (!inquote && buf[pos] == '/' && buf[pos+1] == '*') {
+                       if (!incomment) {
+                               if (pos > start) {
+                                       dowrite(buf + start, pos - start);
+                               }
+                               start = pos;
+                               pos += 2;
+                               incomment = true;
+                               /* cancel out the loop's pos++ */
+                               pos--;
+                               continue;
+                       }
+               } else if (buf[pos] == '*' && buf[pos+1] == '/') {
+                       if (incomment) {
+                               pos += 2;
+                               if (mode.output_retain_comments) {
+                                       dowrite(buf + start, pos - start);
+                               }
+                               start = pos;
+                               incomment = false;
+                               /* cancel out the loop's pos++ */
+                               pos--;
+                               continue;
+                       }
+               }
+
+               if (incomment) {
+                       /* nothing */
+               } else if (inesc) {
+                       inesc = false;
+               } else if (buf[pos] == '\\') {
+                       inesc = true;
+               } else if (!inquote && (buf[pos] == '"' || buf[pos] == '\'')) {
+                       inquote = true;
+                       quote = buf[pos];
+               } else if (inquote && buf[pos] == quote) {
+                       inquote = false;
+               }
+       }
+       pos++;
+
+       if (pos > start) {
+               if (!incomment || mode.output_retain_comments) {
+                       dowrite(buf + start, pos - start);
+               }
+       }
+}
+
+void
+output(const struct place *p, const char *buf, size_t len)
+{
+       size_t oldmax;
+
+       if (linebufpos + len > linebufmax) {
+               oldmax = linebufmax;
+               if (linebufmax == 0) {
+                       linebufmax = 64;
+               }
+               while (linebufpos + len > linebufmax) {
+                       linebufmax *= 2;
+               }
+               linebuf = dorealloc(linebuf, oldmax, linebufmax);
+       }
+       if (linebufpos == 0) {
+               if (!place_samefile(&linebufplace, p)) {
+                       if (mode.output_cheaplinenumbers) {
+                               char str[256];
+
+                               snprintf(str, sizeof(str), "# %u \"%s\"\n",
+                                        p->line, place_getname(p));
+                               dowrite(str, strlen(str));
+                       }
+               }
+               linebufplace = *p;
+       }
+       memcpy(linebuf + linebufpos, buf, len);
+       linebufpos += len;
+
+       if (len == 1 && buf[0] == '\n') {
+               filter_output(linebuf, linebufpos);
+               linebufpos = 0;
+       }
+}
+
+void
+output_eof(void)
+{
+       if (mode.output_file != NULL && outputfd >= 0) {
+               close(outputfd);
+       }
+       outputfd = -1;
+}
diff --git a/cde/util/tradcpp/output.h b/cde/util/tradcpp/output.h
new file mode 100644 (file)
index 0000000..c1cb662
--- /dev/null
@@ -0,0 +1,31 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+void output(const struct place *p, const char *buf, size_t len);
+void output_eof(void);
diff --git a/cde/util/tradcpp/place.c b/cde/util/tradcpp/place.c
new file mode 100644 (file)
index 0000000..a2e1e02
--- /dev/null
@@ -0,0 +1,395 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <assert.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+
+#include "utils.h"
+#include "array.h"
+#include "place.h"
+
+struct placefile {
+       struct place includedfrom;
+       char *dir;
+       char *name;
+       int depth;
+       bool fromsystemdir;
+};
+DECLARRAY(placefile, static UNUSED);
+DEFARRAY(placefile, static);
+
+static struct placefilearray placefiles;
+static bool overall_failure;
+
+static const char *myprogname;
+
+static FILE *debuglogfile;
+
+////////////////////////////////////////////////////////////
+// placefiles
+
+static
+struct placefile *
+placefile_create(const struct place *from, const char *name,
+                bool fromsystemdir)
+{
+       struct placefile *pf;
+       const char *s;
+       size_t len;
+
+       pf = domalloc(sizeof(*pf));
+       pf->includedfrom = *from;
+
+       s = strrchr(name, '/');
+       len = (s == NULL) ? 0 : s - name;
+       pf->dir = dostrndup(name, len);
+
+       pf->name = dostrdup(name);
+       pf->fromsystemdir = fromsystemdir;
+
+       if (from->file != NULL) {
+               pf->depth = from->file->depth + 1;
+       } else {
+               pf->depth = 1;
+       }
+       return pf;
+}
+
+static
+void
+placefile_destroy(struct placefile *pf)
+{
+       dostrfree(pf->name);
+       dofree(pf, sizeof(*pf));
+}
+
+DESTROYALL_ARRAY(placefile, );
+
+const char *
+place_getparsedir(const struct place *place)
+{
+       if (place->file == NULL) {
+               return ".";
+       }
+       return place->file->dir;
+}
+
+static
+struct placefile *
+placefile_find(const struct place *incfrom, const char *name)
+{
+       unsigned i, num;
+       struct placefile *pf;
+
+       num = placefilearray_num(&placefiles);
+       for (i=0; i<num; i++) {
+               pf = placefilearray_get(&placefiles, i);
+               if (place_eq(incfrom, &pf->includedfrom) &&
+                   !strcmp(name, pf->name)) {
+                       return pf;
+               }
+       }
+       return NULL;
+}
+
+void
+place_changefile(struct place *p, const char *name)
+{
+       struct placefile *pf;
+
+       assert(p->type == P_FILE);
+       if (!strcmp(name, p->file->name)) {
+               return;
+       }
+       pf = placefile_find(&p->file->includedfrom, name);
+       if (pf == NULL) {
+               pf = placefile_create(&p->file->includedfrom, name,
+                                     p->file->fromsystemdir);
+               placefilearray_add(&placefiles, pf, NULL);
+       }
+       p->file = pf;
+}
+
+const struct placefile *
+place_addfile(const struct place *place, const char *file, bool issystem)
+{
+       struct placefile *pf;
+
+       pf = placefile_create(place, file, issystem);
+       placefilearray_add(&placefiles, pf, NULL);
+       if (pf->depth > 120) {
+               complain(place, "Maximum include nesting depth exceeded");
+               die();
+       }
+       return pf;
+}
+
+////////////////////////////////////////////////////////////
+// places
+
+void
+place_setnowhere(struct place *p)
+{
+       p->type = P_NOWHERE;
+       p->file = NULL;
+       p->line = 0;
+       p->column = 0;
+}
+
+void
+place_setbuiltin(struct place *p, unsigned num)
+{
+       p->type = P_BUILTIN;
+       p->file = NULL;
+       p->line = num;
+       p->column = 1;
+}
+
+void
+place_setcommandline(struct place *p, unsigned line, unsigned column)
+{
+       p->type = P_COMMANDLINE;
+       p->file = NULL;
+       p->line = line;
+       p->column = column;
+}
+
+void
+place_setfilestart(struct place *p, const struct placefile *pf)
+{
+       p->type = P_FILE;
+       p->file = pf;
+       p->line = 1;
+       p->column = 1;
+}
+
+void
+place_addcolumns(struct place *p, unsigned cols)
+{
+       unsigned newcol;
+
+       newcol = p->column + cols;
+       if (newcol < p->column) {
+               /* overflow (use the old place to complain) */
+               complain(p, "Column numbering overflow");
+               die();
+       }
+       p->column = newcol;
+}
+
+void
+place_addlines(struct place *p, unsigned lines)
+{
+       unsigned nextline;
+
+       nextline = p->line + lines;
+       if (nextline < p->line) {
+               /* overflow (use the old place to complain) */
+               complain(p, "Line numbering overflow");
+               die();
+       }
+       p->line = nextline;
+}
+
+const char *
+place_getname(const struct place *p)
+{
+       switch (p->type) {
+           case P_NOWHERE: return "<nowhere>";
+           case P_BUILTIN: return "<built-in>";
+           case P_COMMANDLINE: return "<command-line>";
+           case P_FILE: return p->file->name;
+       }
+       assert(0);
+       return NULL;
+}
+
+bool
+place_samefile(const struct place *a, const struct place *b)
+{
+       if (a->type != b->type) {
+               return false;
+       }
+       if (a->file != b->file) {
+               return false;
+       }
+       return true;
+}
+
+bool
+place_eq(const struct place *a, const struct place *b)
+{
+       if (!place_samefile(a, b)) {
+               return false;
+       }
+       if (a->line != b->line || a->column != b->column) {
+               return false;
+       }
+       return true;
+}
+
+static
+void
+place_printfrom(const struct place *p)
+{
+       const struct place *from;
+
+       if (p->file == NULL) {
+               return;
+       }
+       from = &p->file->includedfrom;
+       if (from->type != P_NOWHERE) {
+               place_printfrom(from);
+               fprintf(stderr, "In file included from %s:%u:%u:\n",
+                       place_getname(from), from->line, from->column);
+       }
+}
+
+////////////////////////////////////////////////////////////
+// complaints
+
+void
+complain_init(const char *pn)
+{
+       myprogname = pn;
+}
+
+void
+complain(const struct place *p, const char *fmt, ...)
+{
+       va_list ap;
+
+       if (p != NULL) {
+               place_printfrom(p);
+               fprintf(stderr, "%s:%u:%u: ", place_getname(p),
+                       p->line, p->column);
+       } else {
+               fprintf(stderr, "%s: ", myprogname);
+       }
+       va_start(ap, fmt);
+       vfprintf(stderr, fmt, ap);
+       va_end(ap);
+       fprintf(stderr, "\n");
+}
+
+void
+complain_fail(void)
+{
+       overall_failure = true;
+}
+
+bool
+complain_failed(void)
+{
+       return overall_failure;
+}
+
+////////////////////////////////////////////////////////////
+// debug logging
+
+void
+debuglog_open(const struct place *p, /*const*/ char *file)
+{
+       assert(debuglogfile == NULL);
+       debuglogfile = fopen(file, "w");
+       if (debuglogfile == NULL) {
+               complain(p, "%s: %s", file, strerror(errno));
+               die();
+       }
+}
+
+void
+debuglog_close(void)
+{
+       if (debuglogfile != NULL) {
+               fclose(debuglogfile);
+               debuglogfile = NULL;
+       }
+}
+
+PF(2, 3) void
+debuglog(const struct place *p, const char *fmt, ...)
+{
+       va_list ap;
+
+       if (debuglogfile == NULL) {
+               return;
+       }
+
+       fprintf(debuglogfile, "%s:%u: ", place_getname(p), p->line);
+       va_start(ap, fmt);
+       vfprintf(debuglogfile, fmt, ap);
+       va_end(ap);
+       fprintf(debuglogfile, "\n");
+       fflush(debuglogfile);
+}
+
+PF(3, 4) void
+debuglog2(const struct place *p, const struct place *p2, const char *fmt, ...)
+{
+       va_list ap;
+
+       if (debuglogfile == NULL) {
+               return;
+       }
+
+       fprintf(debuglogfile, "%s:%u: ", place_getname(p), p->line);
+       if (place_samefile(p, p2)) {
+               fprintf(debuglogfile, "(block began at line %u) ",
+                       p2->line);
+       } else {
+               fprintf(debuglogfile, "(block began at %s:%u)",
+                       place_getname(p2), p2->line);
+       }
+       va_start(ap, fmt);
+       vfprintf(debuglogfile, fmt, ap);
+       va_end(ap);
+       fprintf(debuglogfile, "\n");
+       fflush(debuglogfile);
+}
+
+////////////////////////////////////////////////////////////
+// module init and cleanup
+
+void
+place_init(void)
+{
+       placefilearray_init(&placefiles);
+}
+
+void
+place_cleanup(void)
+{
+       placefilearray_destroyall(&placefiles);
+       placefilearray_cleanup(&placefiles);
+}
diff --git a/cde/util/tradcpp/place.h b/cde/util/tradcpp/place.h
new file mode 100644 (file)
index 0000000..7dab037
--- /dev/null
@@ -0,0 +1,69 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef PLACE_H
+#define PLACE_H
+
+#include "bool.h"
+
+enum places {
+       P_NOWHERE,
+       P_BUILTIN,
+       P_COMMANDLINE,
+       P_FILE,
+};
+struct place {
+       enum places type;
+       const struct placefile *file;
+       unsigned line;
+       unsigned column;
+};
+
+void place_init(void);
+void place_cleanup(void);
+
+void place_setnowhere(struct place *p);
+void place_setbuiltin(struct place *p, unsigned num);
+void place_setcommandline(struct place *p, unsigned word, unsigned column);
+void place_setfilestart(struct place *p, const struct placefile *pf);
+
+void place_addcolumns(struct place *, unsigned cols);
+void place_addlines(struct place *, unsigned lines);
+
+const char *place_getname(const struct place *);
+const char *place_getparsedir(const struct place *incplace);
+bool place_eq(const struct place *, const struct place *);
+bool place_samefile(const struct place *, const struct place *);
+
+void place_changefile(struct place *p, const char *name);
+
+const struct placefile *place_addfile(const struct place *incplace,
+                                     const char *name, bool fromsystemdir);
+
+#endif /* PLACE_H */
diff --git a/cde/util/tradcpp/tests/subdir/test.h b/cde/util/tradcpp/tests/subdir/test.h
new file mode 100644 (file)
index 0000000..ce01362
--- /dev/null
@@ -0,0 +1 @@
+hello
diff --git a/cde/util/tradcpp/tests/t01.c b/cde/util/tradcpp/tests/t01.c
new file mode 100644 (file)
index 0000000..ffe414b
--- /dev/null
@@ -0,0 +1 @@
+glop.
diff --git a/cde/util/tradcpp/tests/t01.good b/cde/util/tradcpp/tests/t01.good
new file mode 100644 (file)
index 0000000..ffe414b
--- /dev/null
@@ -0,0 +1 @@
+glop.
diff --git a/cde/util/tradcpp/tests/t02.c b/cde/util/tradcpp/tests/t02.c
new file mode 100644 (file)
index 0000000..00baa01
--- /dev/null
@@ -0,0 +1,2 @@
+#define glop flop
+glop
diff --git a/cde/util/tradcpp/tests/t02.good b/cde/util/tradcpp/tests/t02.good
new file mode 100644 (file)
index 0000000..fca51a7
--- /dev/null
@@ -0,0 +1 @@
+flop
diff --git a/cde/util/tradcpp/tests/t03.c b/cde/util/tradcpp/tests/t03.c
new file mode 100644 (file)
index 0000000..1728198
--- /dev/null
@@ -0,0 +1,2 @@
+#define glop(x) flop x
+glop(boo)
diff --git a/cde/util/tradcpp/tests/t03.good b/cde/util/tradcpp/tests/t03.good
new file mode 100644 (file)
index 0000000..6f3795d
--- /dev/null
@@ -0,0 +1 @@
+flop boo
diff --git a/cde/util/tradcpp/tests/t04.c b/cde/util/tradcpp/tests/t04.c
new file mode 100644 (file)
index 0000000..7ef9c20
--- /dev/null
@@ -0,0 +1,2 @@
+#define string(x) "x"
+string(abc)
diff --git a/cde/util/tradcpp/tests/t04.good b/cde/util/tradcpp/tests/t04.good
new file mode 100644 (file)
index 0000000..d1cc1b4
--- /dev/null
@@ -0,0 +1 @@
+"abc"
diff --git a/cde/util/tradcpp/tests/t05.c b/cde/util/tradcpp/tests/t05.c
new file mode 100644 (file)
index 0000000..b52a29f
--- /dev/null
@@ -0,0 +1,2 @@
+#define concat(a, b) a/**/b
+concat(abc,def)
diff --git a/cde/util/tradcpp/tests/t05.good b/cde/util/tradcpp/tests/t05.good
new file mode 100644 (file)
index 0000000..0373d93
--- /dev/null
@@ -0,0 +1 @@
+abcdef
diff --git a/cde/util/tradcpp/tests/t06.c b/cde/util/tradcpp/tests/t06.c
new file mode 100644 (file)
index 0000000..13350a4
--- /dev/null
@@ -0,0 +1,2 @@
+/*glop*/
+
diff --git a/cde/util/tradcpp/tests/t06.good b/cde/util/tradcpp/tests/t06.good
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/cde/util/tradcpp/tests/t07.c b/cde/util/tradcpp/tests/t07.c
new file mode 100644 (file)
index 0000000..14eb502
--- /dev/null
@@ -0,0 +1,3 @@
+/*
+ * gloop
+ */
diff --git a/cde/util/tradcpp/tests/t07.good b/cde/util/tradcpp/tests/t07.good
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/cde/util/tradcpp/tests/t08.c b/cde/util/tradcpp/tests/t08.c
new file mode 100644 (file)
index 0000000..0f052ff
--- /dev/null
@@ -0,0 +1,41 @@
+/*#include <stdio.h>*/
+
+int d =
+#if 2 > 1 ? 0 : 0 ? 1 : 1
+1
+#else
+0
+#endif
+;
+
+int e =
+#if (2 > 1 ? 0 : 0) ? 1 : 1
+1
+#else
+0
+#endif
+;
+
+int f =
+#if 2 > 1 ? 0 : (0 ? 1 : 1)
+1
+#else
+0
+#endif
+;
+
+
+int
+main()
+{
+       int a, b, c;
+
+       a = 2 > 1 ? 0 : 0 ? 1 : 1;
+       b = (2 > 1 ? 0 : 0) ? 1 : 1;
+       c = 2 > 1 ? 0 : (0 ? 1 : 1);
+
+       printf("%d %d %d\n", a, b, c);
+       printf("%d %d %d\n", d, e, f);
+
+       return 0;
+}
diff --git a/cde/util/tradcpp/tests/t08.good b/cde/util/tradcpp/tests/t08.good
new file mode 100644 (file)
index 0000000..a5dee33
--- /dev/null
@@ -0,0 +1,21 @@
+
+int d =
+0
+;
+int e =
+1
+;
+int f =
+0
+;
+int
+main()
+{
+       int a, b, c;
+       a = 2 > 1 ? 0 : 0 ? 1 : 1;
+       b = (2 > 1 ? 0 : 0) ? 1 : 1;
+       c = 2 > 1 ? 0 : (0 ? 1 : 1);
+       printf("%d %d %d\n", a, b, c);
+       printf("%d %d %d\n", d, e, f);
+       return 0;
+}
diff --git a/cde/util/tradcpp/tests/t09.c b/cde/util/tradcpp/tests/t09.c
new file mode 100644 (file)
index 0000000..eea8518
--- /dev/null
@@ -0,0 +1,6 @@
+#define STOP */
+#define START /*
+
+/*
+ * blah blah blah STOP fnord START goop moop
+ */
diff --git a/cde/util/tradcpp/tests/t09.good b/cde/util/tradcpp/tests/t09.good
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cde/util/tradcpp/tests/t10.c b/cde/util/tradcpp/tests/t10.c
new file mode 100644 (file)
index 0000000..6a3b44b
--- /dev/null
@@ -0,0 +1,3 @@
+#define mac(r)o
+mac(3)
+mac()
diff --git a/cde/util/tradcpp/tests/t10.good b/cde/util/tradcpp/tests/t10.good
new file mode 100644 (file)
index 0000000..207853d
--- /dev/null
@@ -0,0 +1,2 @@
+o
+o
diff --git a/cde/util/tradcpp/tests/t11.c b/cde/util/tradcpp/tests/t11.c
new file mode 100644 (file)
index 0000000..62459f2
--- /dev/null
@@ -0,0 +1,2 @@
+#define BOO BOO
+BOO
diff --git a/cde/util/tradcpp/tests/t11.good b/cde/util/tradcpp/tests/t11.good
new file mode 100644 (file)
index 0000000..58265e2
--- /dev/null
@@ -0,0 +1 @@
+BOO
diff --git a/cde/util/tradcpp/tests/t12.c b/cde/util/tradcpp/tests/t12.c
new file mode 100644 (file)
index 0000000..748a61b
--- /dev/null
@@ -0,0 +1,2 @@
+#define BOO(yah) BOO(yah)
+BOO(yah)
diff --git a/cde/util/tradcpp/tests/t12.good b/cde/util/tradcpp/tests/t12.good
new file mode 100644 (file)
index 0000000..c5739ad
--- /dev/null
@@ -0,0 +1 @@
+BOO(yah)
diff --git a/cde/util/tradcpp/tests/t13.c b/cde/util/tradcpp/tests/t13.c
new file mode 100644 (file)
index 0000000..43311ff
--- /dev/null
@@ -0,0 +1,4 @@
+/*
+#define FOO BAR
+*/
+FOO
diff --git a/cde/util/tradcpp/tests/t13.good b/cde/util/tradcpp/tests/t13.good
new file mode 100644 (file)
index 0000000..85c94df
--- /dev/null
@@ -0,0 +1,2 @@
+
+FOO
diff --git a/cde/util/tradcpp/tests/t14.c b/cde/util/tradcpp/tests/t14.c
new file mode 100644 (file)
index 0000000..d511af5
--- /dev/null
@@ -0,0 +1,4 @@
+/*
+#define FOO BAR */
+FOO
+FOO
diff --git a/cde/util/tradcpp/tests/t14.good b/cde/util/tradcpp/tests/t14.good
new file mode 100644 (file)
index 0000000..5922e83
--- /dev/null
@@ -0,0 +1,3 @@
+
+FOO
+FOO
diff --git a/cde/util/tradcpp/tests/t15.c b/cde/util/tradcpp/tests/t15.c
new file mode 100644 (file)
index 0000000..a4ca3ab
--- /dev/null
@@ -0,0 +1,3 @@
+#define FOO /* BAR */ BAZ
+FOO
+FOO
diff --git a/cde/util/tradcpp/tests/t15.good b/cde/util/tradcpp/tests/t15.good
new file mode 100644 (file)
index 0000000..f013552
--- /dev/null
@@ -0,0 +1,2 @@
+ BAZ
+ BAZ
diff --git a/cde/util/tradcpp/tests/t16.c b/cde/util/tradcpp/tests/t16.c
new file mode 100644 (file)
index 0000000..b42eece
--- /dev/null
@@ -0,0 +1,11 @@
+#define a() x
+a()
+a ()
+#define b(p) p
+x/**/b(1)/**/x
+x/**/b (1)/**/x
+x/**/b()/**/x
+#define c(p,q) p/**/q
+x/**/c(1,2)/**/x
+x/**/c(1)/**/x
+x/**/c()/**/x
diff --git a/cde/util/tradcpp/tests/t16.good b/cde/util/tradcpp/tests/t16.good
new file mode 100644 (file)
index 0000000..8120b94
--- /dev/null
@@ -0,0 +1,11 @@
+x
+x
+x1x
+x1x
+xx
+x12x
+t16.c:10:1: Wrong number of arguments for macro c; found 1, expected 2
+x1x
+t16.c:11:1: Wrong number of arguments for macro c; found 0, expected 2
+xx
+FAILED
diff --git a/cde/util/tradcpp/tests/t17.c b/cde/util/tradcpp/tests/t17.c
new file mode 100644 (file)
index 0000000..a10530b
--- /dev/null
@@ -0,0 +1,2 @@
+#define file "subdir/test.h"
+#include file
diff --git a/cde/util/tradcpp/tests/t17.good b/cde/util/tradcpp/tests/t17.good
new file mode 100644 (file)
index 0000000..ce01362
--- /dev/null
@@ -0,0 +1 @@
+hello
diff --git a/cde/util/tradcpp/tests/t18.c b/cde/util/tradcpp/tests/t18.c
new file mode 100644 (file)
index 0000000..4515935
--- /dev/null
@@ -0,0 +1,2 @@
+#if FOO /* ignore me */
+#endif
diff --git a/cde/util/tradcpp/tests/t18.good b/cde/util/tradcpp/tests/t18.good
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cde/util/tradcpp/tests/t19.c b/cde/util/tradcpp/tests/t19.c
new file mode 100644 (file)
index 0000000..b690dbc
--- /dev/null
@@ -0,0 +1,3 @@
+#define foo /* comment continues
+               into the next line */ baz
+baz
diff --git a/cde/util/tradcpp/tests/t19.good b/cde/util/tradcpp/tests/t19.good
new file mode 100644 (file)
index 0000000..7601807
--- /dev/null
@@ -0,0 +1 @@
+baz
diff --git a/cde/util/tradcpp/tests/t20.c b/cde/util/tradcpp/tests/t20.c
new file mode 100644 (file)
index 0000000..372ca74
--- /dev/null
@@ -0,0 +1 @@
+#undef foo /* blah */
diff --git a/cde/util/tradcpp/tests/t20.good b/cde/util/tradcpp/tests/t20.good
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cde/util/tradcpp/tests/t21.c b/cde/util/tradcpp/tests/t21.c
new file mode 100644 (file)
index 0000000..8bb30b4
--- /dev/null
@@ -0,0 +1,3 @@
+# define FOO BAR
+ #undef FOO /* would be wrong */
+FOO
diff --git a/cde/util/tradcpp/tests/t21.good b/cde/util/tradcpp/tests/t21.good
new file mode 100644 (file)
index 0000000..187c1f5
--- /dev/null
@@ -0,0 +1,2 @@
+ #undef BAR 
+BAR
diff --git a/cde/util/tradcpp/tests/t22.c b/cde/util/tradcpp/tests/t22.c
new file mode 100644 (file)
index 0000000..4b10fe3
--- /dev/null
@@ -0,0 +1,2 @@
+pa/*
+*/ste
diff --git a/cde/util/tradcpp/tests/t22.good b/cde/util/tradcpp/tests/t22.good
new file mode 100644 (file)
index 0000000..b467804
--- /dev/null
@@ -0,0 +1 @@
+paste
diff --git a/cde/util/tradcpp/tests/t23.c b/cde/util/tradcpp/tests/t23.c
new file mode 100644 (file)
index 0000000..23ca402
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+fnord1
+/*
+fnord2
+ */
+foo
+*/
+bar
diff --git a/cde/util/tradcpp/tests/t23.good b/cde/util/tradcpp/tests/t23.good
new file mode 100644 (file)
index 0000000..9f9cc39
--- /dev/null
@@ -0,0 +1,4 @@
+
+foo
+*/
+bar
diff --git a/cde/util/tradcpp/tests/t24.c b/cde/util/tradcpp/tests/t24.c
new file mode 100644 (file)
index 0000000..6982e9e
--- /dev/null
@@ -0,0 +1,67 @@
+#if 0
+wrong
+#endif
+
+#if 1
+right
+#endif
+
+#if -1
+right
+#endif
+
+#if 0 + 0
+wrong
+#endif
+
+#if 1 + 1
+right
+#endif
+
+#if 1 - 1
+wrong
+#endif
+
+#if -1 + 1
+wrong
+#endif
+
+#if 3 - 2 - 1
+wrong
+#endif
+
+#if 3 * 2 - 6
+wrong
+#endif
+
+#if 6 - 2 * 3
+wrong
+#endif
+
+#if 3 - 3 && 1
+wrong
+#endif
+
+#if 3 - 3 || 0
+wrong
+#endif
+
+#if 1 && 0
+wrong
+#endif
+
+#if 0 && 1
+wrong
+#endif
+
+#if 1 || 0
+right
+#endif
+
+#if 0 || 1
+right
+#endif
+
+#if (0 || 1) && (0 || 0)
+wrong
+#endif
diff --git a/cde/util/tradcpp/tests/t24.good b/cde/util/tradcpp/tests/t24.good
new file mode 100644 (file)
index 0000000..d2dd3c2
--- /dev/null
@@ -0,0 +1,5 @@
+right
+right
+right
+right
+right
diff --git a/cde/util/tradcpp/tests/t25.c b/cde/util/tradcpp/tests/t25.c
new file mode 100644 (file)
index 0000000..16dd7bc
--- /dev/null
@@ -0,0 +1,4 @@
+#define FOO foo /*
+#undef FOO
+#define FOO bar */
+FOO
diff --git a/cde/util/tradcpp/tests/t25.good b/cde/util/tradcpp/tests/t25.good
new file mode 100644 (file)
index 0000000..564d4dd
--- /dev/null
@@ -0,0 +1 @@
+foo 
diff --git a/cde/util/tradcpp/tests/t26.c b/cde/util/tradcpp/tests/t26.c
new file mode 100644 (file)
index 0000000..3239b9d
--- /dev/null
@@ -0,0 +1,4 @@
+#define FOO foo
+FOO
+"FOO"
+'FOO'
diff --git a/cde/util/tradcpp/tests/t26.good b/cde/util/tradcpp/tests/t26.good
new file mode 100644 (file)
index 0000000..fcde2b3
--- /dev/null
@@ -0,0 +1,3 @@
+foo
+"FOO"
+'FOO'
diff --git a/cde/util/tradcpp/tests/t27.c b/cde/util/tradcpp/tests/t27.c
new file mode 100644 (file)
index 0000000..6201366
--- /dev/null
@@ -0,0 +1,29 @@
+1.
+#define A(a) a
+A();
+
+2.
+#define B(a, b) (a,b)
+B(a, );
+B(, b);
+B( , );
+B(a,);
+B(,b);
+B(,);
+
+3.
+#define C(a, b, c) (a,b,c)
+C(a, b, );
+C(a, , c);
+C(, , c);
+C(a, , );
+C(, b, );
+C(, , c);
+C(, , )
+C(a,b,);
+C(a,,c);
+C(,,c);
+C(a,,);
+C(,b,);
+C(,,c);
+C(,,)
diff --git a/cde/util/tradcpp/tests/t27.good b/cde/util/tradcpp/tests/t27.good
new file mode 100644 (file)
index 0000000..e9b36da
--- /dev/null
@@ -0,0 +1,24 @@
+1.
+;
+2.
+(a, );
+(, b);
+( , );
+(a,);
+(,b);
+(,);
+3.
+(a, b, );
+(a, , c);
+(, , c);
+(a, , );
+(, b, );
+(, , c);
+(, , )
+(a,b,);
+(a,,c);
+(,,c);
+(a,,);
+(,b,);
+(,,c);
+(,,)
diff --git a/cde/util/tradcpp/tests/t28.c b/cde/util/tradcpp/tests/t28.c
new file mode 100644 (file)
index 0000000..7fec3bf
--- /dev/null
@@ -0,0 +1,53 @@
+#if 1
+. right
+
+# if 1
+.. right
+# elif 1
+.. wrong
+# elif 0
+.. wrong
+# else
+.. wrong
+# endif
+
+#elif 1
+. wrong
+
+# if 1
+.. wrong
+# elif 1
+.. wrong
+# elif 0
+.. wrong
+# else
+.. wrong
+# endif
+
+#elif 0
+. wrong
+
+# if 1
+.. wrong
+# elif 1
+.. wrong
+# elif 0
+.. wrong
+# else
+.. wrong
+# endif
+
+#else
+. wrong
+
+# if 1
+.. wrong
+# elif 1
+.. wrong
+# elif 0
+.. wrong
+# else
+.. wrong
+# endif
+
+#endif
diff --git a/cde/util/tradcpp/tests/t28.good b/cde/util/tradcpp/tests/t28.good
new file mode 100644 (file)
index 0000000..ac7b1e3
--- /dev/null
@@ -0,0 +1,2 @@
+. right
+.. right
diff --git a/cde/util/tradcpp/tests/t29.c b/cde/util/tradcpp/tests/t29.c
new file mode 100644 (file)
index 0000000..cfd3695
--- /dev/null
@@ -0,0 +1,4 @@
+#if 0
+# if this is a syntax error
+# endif
+#endif
diff --git a/cde/util/tradcpp/tests/t29.good b/cde/util/tradcpp/tests/t29.good
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cde/util/tradcpp/tests/t30.c b/cde/util/tradcpp/tests/t30.c
new file mode 100644 (file)
index 0000000..77ea126
--- /dev/null
@@ -0,0 +1,2 @@
+#define x(a,b,c) a;b;c;
+x((,),x,",")
diff --git a/cde/util/tradcpp/tests/t30.good b/cde/util/tradcpp/tests/t30.good
new file mode 100644 (file)
index 0000000..2262237
--- /dev/null
@@ -0,0 +1 @@
+(,);x;",";
diff --git a/cde/util/tradcpp/tests/t31.c b/cde/util/tradcpp/tests/t31.c
new file mode 100644 (file)
index 0000000..b2e61fa
--- /dev/null
@@ -0,0 +1,6 @@
+this line 'has /* no' comment */ in it
+
+#define BELCH(x) 'x'
+"BELCH(123)": BELCH(123)
+'BELCH(123)': BELCH(123)
+
diff --git a/cde/util/tradcpp/tests/t31.good b/cde/util/tradcpp/tests/t31.good
new file mode 100644 (file)
index 0000000..e90ba2a
--- /dev/null
@@ -0,0 +1,3 @@
+this line 'has /* no' comment */ in it
+"BELCH(123)": '123'
+'BELCH(123)': '123'
diff --git a/cde/util/tradcpp/tests/t32.c b/cde/util/tradcpp/tests/t32.c
new file mode 100644 (file)
index 0000000..9d880ca
--- /dev/null
@@ -0,0 +1,21 @@
+#define foo(x) "x"
+#define bar(x) 'x'
+#define baz frob
+foo(3)
+bar(3)
+foo(baz)
+bar(baz)
+"baz"
+'baz'
+"foo(baz)"
+"bar(baz)"
+
+#define foo2(x) foo(x)
+#define bar2(x) bar(x)
+foo2(baz)
+bar2(baz)
+
+#define foo3(x) foo2(x)
+#define bar3(x) bar2(x)
+foo3(baz)
+bar3(baz)
diff --git a/cde/util/tradcpp/tests/t32.good b/cde/util/tradcpp/tests/t32.good
new file mode 100644 (file)
index 0000000..2b34601
--- /dev/null
@@ -0,0 +1,12 @@
+"3"
+'3'
+"baz"
+'baz'
+"baz"
+'baz'
+"foo(baz)"
+"bar(baz)"
+"baz"
+'baz'
+"baz"
+'baz'
diff --git a/cde/util/tradcpp/tests/t33.c b/cde/util/tradcpp/tests/t33.c
new file mode 100644 (file)
index 0000000..01f879c
--- /dev/null
@@ -0,0 +1,6 @@
+/* make sure that R gets defined and doesn't end up part of a string */
+#define Q "
+#define R r
+#define S "
+R
+Q
diff --git a/cde/util/tradcpp/tests/t33.good b/cde/util/tradcpp/tests/t33.good
new file mode 100644 (file)
index 0000000..5af7d8f
--- /dev/null
@@ -0,0 +1,3 @@
+
+r
+"
diff --git a/cde/util/tradcpp/tests/t34.c b/cde/util/tradcpp/tests/t34.c
new file mode 100644 (file)
index 0000000..c2cbe20
--- /dev/null
@@ -0,0 +1,5 @@
+#define Q "
+#define FOO foo
+Q FOO Q
+
+
diff --git a/cde/util/tradcpp/tests/t34.good b/cde/util/tradcpp/tests/t34.good
new file mode 100644 (file)
index 0000000..3dbb019
--- /dev/null
@@ -0,0 +1 @@
+" foo "
diff --git a/cde/util/tradcpp/tests/t35.c b/cde/util/tradcpp/tests/t35.c
new file mode 100644 (file)
index 0000000..636495e
--- /dev/null
@@ -0,0 +1,6 @@
+#define Q "
+#define FOO foo
+
+Q FOO Q 'I like "FOO" and "BAR"'
+
+
diff --git a/cde/util/tradcpp/tests/t35.good b/cde/util/tradcpp/tests/t35.good
new file mode 100644 (file)
index 0000000..396432b
--- /dev/null
@@ -0,0 +1 @@
+" foo " 'I like "FOO" and "BAR"'
diff --git a/cde/util/tradcpp/tests/t36.c b/cde/util/tradcpp/tests/t36.c
new file mode 100644 (file)
index 0000000..5f22e24
--- /dev/null
@@ -0,0 +1,7 @@
+#define C(x) //**/* x */**//
+C(3)
+C(abc /* def */ ghi)
+
+#define D(x) ///**/**/**///**/* x */**///**/**/**///
+D(3)
+D(abc /* def */ ghi)
diff --git a/cde/util/tradcpp/tests/t36.good b/cde/util/tradcpp/tests/t36.good
new file mode 100644 (file)
index 0000000..c2f258c
--- /dev/null
@@ -0,0 +1,4 @@
+/* 3 */
+/* abc  ghi */
+//**/* 3 */**//
+//**/* abc  ghi */**//
diff --git a/cde/util/tradcpp/tests/t37.c b/cde/util/tradcpp/tests/t37.c
new file mode 100644 (file)
index 0000000..16af5b1
--- /dev/null
@@ -0,0 +1,19 @@
+#define BC //**/*
+#define EC */**//
+
+BC
+comment?
+EC
+
+BC comment? EC
+
+#define FOO(x) x
+FOO(abc BC def EC ghi)
+
+#define BAR(x, y) x y
+BAR(abc BC def, ghi EC jkl)
+
+BC
+#define BAZ baz
+EC
+BAZ
diff --git a/cde/util/tradcpp/tests/t37.good b/cde/util/tradcpp/tests/t37.good
new file mode 100644 (file)
index 0000000..e8aa6a9
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+comment?
+*/
+/* comment? */
+abc /* def */ ghi
+abc /* def  ghi */ jkl
+/*
+*/
+baz
diff --git a/cde/util/tradcpp/tests/t38.c b/cde/util/tradcpp/tests/t38.c
new file mode 100644 (file)
index 0000000..ef45038
--- /dev/null
@@ -0,0 +1,11 @@
+#define m() __FILE__:__LINE__
+__LINE__
+__FILE__
+__LINE__
+m()
+#line 500
+m()
+#line 600 "foo.c"
+m()
+#include "subdir/test.h"
+m()
diff --git a/cde/util/tradcpp/tests/t38.good b/cde/util/tradcpp/tests/t38.good
new file mode 100644 (file)
index 0000000..1783caa
--- /dev/null
@@ -0,0 +1,8 @@
+2
+"t38.c"
+4
+"t38.c":5
+"t38.c":500
+"foo.c":600
+hello
+"foo.c":602
diff --git a/cde/util/tradcpp/tests/t39.c b/cde/util/tradcpp/tests/t39.c
new file mode 100644 (file)
index 0000000..a8dd204
--- /dev/null
@@ -0,0 +1,21 @@
+#define m(a,b) a::b
+=m(123,
+456)
+   ------
+=m
+(123, 456)
+   ------
+=m(
+123, 456)
+   ------
+=m(
+123,
+456
+)
+   ------
+=m(123,
+
+456)
+   ------
+=m(123,
+   456)
diff --git a/cde/util/tradcpp/tests/t39.good b/cde/util/tradcpp/tests/t39.good
new file mode 100644 (file)
index 0000000..a4561fc
--- /dev/null
@@ -0,0 +1,11 @@
+=123:: 456
+   ------
+=123:: 456
+   ------
+= 123:: 456
+   ------
+= 123:: 456 
+   ------
+=123::  456
+   ------
+=123::    456
diff --git a/cde/util/tradcpp/tests/t40.c b/cde/util/tradcpp/tests/t40.c
new file mode 100644 (file)
index 0000000..9e485bc
--- /dev/null
@@ -0,0 +1,6 @@
+#define foo bar
+
+#define bar(x) do x do
+
+foo(de)
+
diff --git a/cde/util/tradcpp/tests/t40.good b/cde/util/tradcpp/tests/t40.good
new file mode 100644 (file)
index 0000000..e98d592
--- /dev/null
@@ -0,0 +1 @@
+do de do
diff --git a/cde/util/tradcpp/tests/tradcpp.sh b/cde/util/tradcpp/tests/tradcpp.sh
new file mode 100644 (file)
index 0000000..fb3d0dc
--- /dev/null
@@ -0,0 +1,36 @@
+test_case() {
+       local name="$1"
+       local source="$2"
+       local tradcpp="$3"
+       local descr="Test tradcpp behavior"
+       atf_test_case ${name}
+       if [ -e "$(atf_get_srcdir)/${name}.txt" ]; then
+               descr=$(cat "$(atf_get_srcdir)/${name}.txt")
+       fi
+       eval "${name}_head() { \
+               atf_set descr \"${descr}\"; \
+               atf_set require.progs \"/usr/bin/tradcpp\"; \
+       }"
+       local stdout="file:$(atf_get_srcdir)/${name}.good"
+       local options=""
+       local options_file="$(atf_get_srcdir)/${name}.cmdline"
+       if [ -e ${options_file} ]; then
+               options=$(cat ${options_file})
+       fi
+       eval "${name}_body() { \
+               atf_check -s eq:0 -o ${stdout} -x '${tradcpp} ${options} ${source} 2>&1 || echo FAILED'; \
+       }"
+}
+
+atf_init_test_cases() {
+       local tradcpp=$(make -V .OBJDIR -C $(atf_get_srcdir)/..)/tradcpp
+       if [ ! -x ${tradcpp} ]; then
+               tradcpp=/usr/bin/tradcpp
+       fi
+       cd $(atf_get_srcdir)
+       for testfile in t*.c; do
+               local name=${testfile%%.c}
+               test_case ${name} ${testfile} ${tradcpp}
+               atf_add_test_case ${name}
+       done
+}
diff --git a/cde/util/tradcpp/tradcpp.1 b/cde/util/tradcpp/tradcpp.1
new file mode 100644 (file)
index 0000000..97e4edd
--- /dev/null
@@ -0,0 +1,361 @@
+.\"
+.\" Copyright (c) 2013 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by David A. Holland.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd June 11, 2013
+.Dt TRADCPP 1
+.Os
+.Sh NAME
+.Nm tradcpp
+.Nd traditional (K&R-style) C macro preprocessor
+.Sh SYNOPSIS
+.Nm tradcpp
+.Op Fl options
+.Op Ar input-file Op Ar output-file
+.Sh DESCRIPTION
+The
+.Nm
+command provides a traditional K&R-style C macro preprocessor.
+It is intended to be suitable for historical Unix uses of the
+preprocessor, such as
+.Xr imake 1 ,
+particularly those that depend on preservation of whitespace.
+.Pp
+The chief ways in which traditional cpp differs from
+Standard C are:
+.Bl -bullet -offset indent
+.It
+Macro arguments are expanded within quoted strings.
+There is no stringize operator.
+.It
+There is no token pasting operator; tokens can be concatenated by
+placing comments between them.
+This process is also not limited to valid C language tokens.
+.It
+Whitespace is preserved, and in particular tabs are not expanded into
+spaces.
+Furthermore, additional whitespace is not injected.
+.El
+.Sh OPTIONS
+.Nm
+has many options, many of which are defined for compatibility with
+.Xr gcc 1
+or other compilers.
+Many of the options are not yet implemented.
+.\" The option lists have been sorted in what I hope is a sensible
+.\" order. Please don't arbitrarily alphabetize them.
+.Ss Common Options
+.Bl -tag -width bubblebabble
+.It Fl C
+Retain comments in output.
+.It Fl Dmacro[=expansion]
+Provide a definition for the named macro.
+If no expansion is provided, the value
+.Dq 1
+is used.
+Note that like many Unix compilers,
+.Nm
+does not accept a space between the
+.Dq D
+and the macro name.
+.It Fl Ipath
+Add the specified path to the main list of include directories.
+Note that like many Unix compilers,
+.Nm
+does not accept a space between the
+.Dq I
+and the directory name.
+.It Fl nostdinc
+Do not search the standard system include directories.
+.It Fl P
+Suppress line number information in the output.
+Currently line number information is not generated at all and this
+option has no effect.
+.It Fl Umacro
+Remove any existing definition for the named macro.
+Note that like many Unix compilers,
+.Nm
+does not accept a space between the
+.Dq U
+and the macro name.
+.It Fl undef
+Remove all predefined macros.
+.El
+.Ss Warning Options
+Warning options can be disabled or enabled by inserting, or not, the
+string
+.Dq no-
+between the
+.Dq W
+and the warning name.
+Herein the
+.Dq Fl Wno-
+form is shown for options that are enabled by default.
+.Bl -tag -width bubblebabble
+.It Fl Wall
+Turn on all warnings.
+The option
+.Fl Wno-all
+disables only the warnings that are disabled by default.
+.It Fl w
+Turn off all warnings.
+.It Fl Werror
+Make warnings into fatal errors.
+.It Fl Wcomment
+Warn about nested comments.
+.It Fl Wno-endif-labels
+Don't warn about symbols attached to #endif directives.
+(The warning is currently not implemented.)
+.It Fl Wundef
+Warn about undefined symbols appearing in #if and #elif expressions.
+.It Fl Wunused-macros
+Warn about macros that are defined and never used.
+Not implemented.
+.El
+.Ss Depend Options
+.Bl -tag -width bubblebabble
+.It Fl M
+Generate dependency information for
+.Xr make 1
+on the standard output, instead of preprocessing.
+Not implemented.
+.It Fl MD
+Like
+.Fl M
+but skip system headers.
+Not implemented.
+.It Fl MM
+Like
+.Fl M
+but write the dependency information to a file named after the input
+file with extension
+.Pa \.d
+and preprocess normally to standard output.
+Not implemented.
+.It Fl MMD
+Like
+.Fl MM
+but skip system headers.
+Not implemented.
+.It Fl MF Ar file
+Send dependency output to the named file instead of the default
+location.
+Not implemented.
+.It Fl MG
+When generating dependency information, assume that missing files are
+generated instead of failing.
+Not implemented.
+.It Fl MP
+Issue dummy rules for all include files.
+This prevents
+.Xr make 1
+from choking if an include file is removed.
+Not implemented.
+.It Fl MQ Ar target
+Same as
+.Fl MT
+except that any
+.Xr make 1
+metacharacters appearing in the target are escaped.
+.It Fl MT Ar target
+Set the name of the
+.Xr make 1
+target appearing in the generated dependency information.
+The default is the name of the input file with its suffix replaced
+with the suffix for object files, normally
+.Pa .o .
+.\" If this option is given more than once, all named targets will
+.\" be emitted.
+.\" (The current operating mode framework doesn't support that.)
+.El
+.Ss More Include Path Options
+.Bl -tag -width bubblebabble
+.It Fl idirafter Ar path
+Add the specified path to the
+.Dq afterwards
+include path.
+This path is searched after all directories specified with
+.Fl I
+and the standard system directories.
+Directories on this path are treated as containing system include
+files.
+.It Fl imacros Ar file
+Read in
+.Ar file
+prior to reading the main input file, and preprocess it, but throw
+away the output and retain only the macro definitions.
+.It Fl include Ar file
+Read in and preprocess
+.Ar file
+prior to reading the main input file.
+.It Fl iprefix Ar prefix
+Set the path prefix used with the
+.Fl iwithprefix
+option.
+.It Fl iquote Ar path
+Add
+.Ar path
+to the list of directories searched for include directives written
+with quotes.
+This list is not searched for include directives written with angle
+brackets.
+.It Fl iremap Ar string:replacement
+Substitute
+.Ar replacement
+for
+.Ar string
+in the
+.Dv __FILE__
+built-in macro.
+Not supported.
+.It Fl isysroot Ar path
+Use
+.Ar path
+as the
+.Dq system root ,
+that is, the directory under which the standard system paths are found.
+.It Fl isystem Ar path
+Add
+.Ar path
+to the list of system include directories.
+This list is searched after the list given with
+.Ar I .
+Files found on this path are treated as system headers.
+.It Fl iwithprefix Ar dir
+Splice
+.Ar dir
+onto the prefix given with
+.Fl iprefix
+and add this directory as if it were specified with
+.Fl idirafter .
+.It Fl iwithprefixbefore
+Like
+.Fl iwithprefix
+but adds the result as if it were specified with
+.Fl I .
+.El
+.Ss Diagnostic Options
+.Bl -tag -width bubblebabble
+.It Fl debuglog Ar file
+Write a trace of actions and operations to
+.Ar file
+as the input is processed.
+Meant for debugging problems in complex substitution schemes fed to
+.Nm ,
+such as those used by
+.Xr imake 1 .
+.It Fl dD
+Dump all macro definitions, except for the predefined macros, after
+the normal preprocessing output.
+Not implemented.
+.It Fl dI
+Dump all include directives along with the normal preprocessing
+output.
+Not implemented.
+.It Fl dM
+Dump all macro definitions instead of the normal preprocessing
+output.
+Not implemented.
+.It Fl dN
+Like
+.Fl dD
+but emits only macro names and not the expansions.
+Not implemented.
+.It Fl H
+Output a trace of the include tree as it gets processed.
+Not implemented.
+.El
+.Ss Other Options
+.Bl -tag -width bubblebabble
+.It Fl CC
+Retain comments in output.
+Same as
+.Fl C ,
+accepted for compatibility with
+.Xr gcc 1 .
+.It Fl fdollars-in-identifiers , Fl fno-dollars-in-identifiers
+Enable
+.Pq or disable, respectively
+the use of the dollar sign in identifiers.
+Not implemented.
+.It Fl ftabstop=num
+Set the tab width to the specified value, for reporting column
+positions in diagnostics.
+The default is 8.
+Not implemented.
+.It Fl std=standard
+Ask
+.Nm
+to conform to the named standard.
+The default, and the only supported value, is
+.Dq krc .
+.It Fl traditional
+This option is accepted for compatibility with
+.Xr gcc 1
+and ignored.
+.It Fl x Ar lang
+Adjust the preprocessor for the given language.
+The only values accepted for
+.Ar lang
+are
+.Dq assembler-with-cpp
+and
+.Dq c ,
+neither of which have any effect on the behavior of
+.Nm .
+.El
+.Sh FILES
+The default list of directories searched for include files is:
+.Bl -item -offset indent -compact
+.It
+.Pa /usr/local/include
+.It
+.Pa /usr/include
+.El
+.Sh SEE ALSO
+.Xr cc 1 ,
+.Xr cpp 1 ,
+.Xr make 1
+.Sh STANDARDS
+None.
+The whole point of a traditional cpp is that it reflects practices
+in pre-standardization implementations of C.
+Some information is available from the first edition of Kernighan and
+Ritchie.
+Much of the rest of the behavior is based on lore, pragmatism,
+material encountered in the wild, and comparison to other
+implementations.
+.Sh HISTORY
+The original version of
+.Nm
+was written one evening in late 2010.
+This version had some problems and was put aside.
+The first working version was released in June 2013.
+.\" .Sh AUTHORS
+.\" .An David A. Holland
+.Sh BUGS
+Probably plenty.
diff --git a/cde/util/tradcpp/union.h b/cde/util/tradcpp/union.h
new file mode 100644 (file)
index 0000000..74113a5
--- /dev/null
@@ -0,0 +1,36 @@
+/*-
+ * Copyright (c) 2015 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if defined(__clang__) || defined(__GNUC__) || __STDC__ > 201101
+#define UN
+#undef NEED_UNION_ACCESSORS
+#else
+#define UN un
+#define NEED_UNION_ACCESSORS
+#endif
diff --git a/cde/util/tradcpp/utils.c b/cde/util/tradcpp/utils.c
new file mode 100644 (file)
index 0000000..d4ab7a1
--- /dev/null
@@ -0,0 +1,246 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+
+#include "utils.h"
+
+#define MALLOCDEBUG
+
+const char ws[] =
+       " \t\f\v"
+;
+const char alnum[] = 
+       "0123456789"
+       "abcdefghijklmnopqrstuvwxyz"
+       "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+       "_"
+;
+
+////////////////////////////////////////////////////////////
+// malloc
+
+#define ROUNDUP(len, size) ((size) * (((len) + (size) - 1) / (size)))
+
+#ifdef MALLOCDEBUG
+
+struct mallocheader {
+       struct mallocheader *self;
+       size_t len;
+};
+
+static
+size_t
+adjustsize(size_t len)
+{
+       const size_t sz = sizeof(struct mallocheader);
+       return ROUNDUP(len, sz) + 2*sz;
+}
+
+static
+void *
+placeheaders(void *block, size_t len)
+{
+       struct mallocheader *bothdr, *tophdr;
+       size_t roundedlen;
+       void *ret;
+
+       roundedlen = ROUNDUP(len, sizeof(struct mallocheader));
+       bothdr = block;
+       bothdr->len = len;
+       bothdr->self = block;
+       ret = bothdr + 1;
+       tophdr = (void *)(((unsigned char *)ret) + roundedlen);
+       tophdr->len = len;
+       tophdr->self = bothdr;
+       return ret;
+}
+
+static
+void *
+checkheaders(void *block, size_t len)
+{
+       struct mallocheader *bothdr, *tophdr;
+       size_t roundedlen;
+
+       if (block == NULL) {
+               assert(len == 0);
+               return block;
+       }
+
+       roundedlen = ROUNDUP(len, sizeof(struct mallocheader));
+       bothdr = block;
+       bothdr--;
+       assert(bothdr->self == bothdr);
+       assert(bothdr->len == len);
+       tophdr = (void *)(((unsigned char *)(bothdr + 1)) + roundedlen);
+       assert(tophdr->self == bothdr);
+       assert(tophdr->len == len);
+       return bothdr;
+}
+
+#else
+
+#define adjustsize(len) (len)
+#define placeheaders(block, len) ((void)(len), (block))
+#define checkheaders(ptr, len) ((void)(len), (ptr))
+
+#endif /* MALLOCDEBUG */
+
+void *
+domalloc(size_t len)
+{
+       void *ret;
+       size_t blocklen;
+
+       blocklen = adjustsize(len);
+       ret = malloc(blocklen);
+       if (ret == NULL) {
+               complain(NULL, "Out of memory");
+               die();
+       }
+
+       return placeheaders(ret, len);
+}
+
+void *
+dorealloc(void *ptr, size_t oldlen, size_t newlen)
+{
+       void *ret;
+       void *blockptr;
+       size_t newblocklen;
+
+       blockptr = checkheaders(ptr, oldlen);
+       newblocklen = adjustsize(newlen);
+
+       ret = realloc(blockptr, newblocklen);
+       if (ret == NULL) {
+               complain(NULL, "Out of memory");
+               die();
+       }
+
+       return placeheaders(ret, newlen);
+}
+
+void
+dofree(void *ptr, size_t len)
+{
+       void *blockptr;
+
+       blockptr = checkheaders(ptr, len);
+       free(blockptr);
+}
+
+////////////////////////////////////////////////////////////
+// string allocators
+
+char *
+dostrdup(const char *s)
+{
+       char *ret;
+       size_t len;
+
+       len = strlen(s);
+       ret = domalloc(len+1);
+       strcpy(ret, s);
+       return ret;
+}
+
+char *
+dostrdup2(const char *s, const char *t)
+{
+       char *ret;
+       size_t len;
+
+       len = strlen(s) + strlen(t);
+       ret = domalloc(len+1);
+       strcpy(ret, s);
+       strcat(ret, t);
+       return ret;
+}
+
+char *
+dostrdup3(const char *s, const char *t, const char *u)
+{
+       char *ret;
+       size_t len;
+
+       len = strlen(s) + strlen(t) + strlen(u);
+       ret = domalloc(len+1);
+       strcpy(ret, s);
+       strcat(ret, t);
+       strcat(ret, u);
+       return ret;
+}
+
+char *
+dostrndup(const char *s, size_t len)
+{
+       char *ret;
+
+       ret = domalloc(len+1);
+       memcpy(ret, s, len);
+       ret[len] = '\0';
+       return ret;
+}
+
+void
+dostrfree(char *s)
+{
+       dofree(s, strlen(s)+1);
+}
+
+////////////////////////////////////////////////////////////
+// other stuff
+
+size_t
+notrailingws(char *buf, size_t len)
+{
+       while (len > 0 && strchr(ws, buf[len-1])) {
+               buf[--len] = '\0';
+       }
+       return len;
+}
+
+bool
+is_identifier(const char *str)
+{
+       size_t len;
+
+       len = strlen(str);
+       if (len != strspn(str, alnum)) {
+               return false;
+       }
+       if (str[0] >= '0' && str[0] <= '9') {
+               return false;
+       }
+       return true;
+}
diff --git a/cde/util/tradcpp/utils.h b/cde/util/tradcpp/utils.h
new file mode 100644 (file)
index 0000000..06d5f02
--- /dev/null
@@ -0,0 +1,78 @@
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <stddef.h>
+#include "bool.h"
+
+struct place;
+
+#if defined(__CLANG__) || defined(__GNUC__)
+#define PF(a, b) __attribute__((__format__(__printf__, a, b)))
+#define DEAD __attribute__((__noreturn__))
+#define UNUSED __attribute__((__unused__))
+#else
+#define PF(a, b)
+#define DEAD
+#define UNUSED
+#endif
+
+#define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0]))
+
+extern const char ws[];
+extern const char alnum[];
+
+
+void *domalloc(size_t len);
+void *dorealloc(void *ptr, size_t oldlen, size_t newlen);
+void dofree(void *ptr, size_t len);
+
+char *dostrdup(const char *s);
+char *dostrdup2(const char *s, const char *t);
+char *dostrdup3(const char *s, const char *t, const char *u);
+char *dostrndup(const char *s, size_t len);
+void dostrfree(char *s);
+
+size_t notrailingws(char *buf, size_t len);
+bool is_identifier(const char *str);
+
+/* in place.c */
+void complain_init(const char *progname);
+PF(2, 3) void complain(const struct place *, const char *fmt, ...);
+void complain_fail(void);
+bool complain_failed(void);
+
+void debuglog_open(const struct place *p, /*const*/ char *file);
+void debuglog_close(void);
+PF(2, 3) void debuglog(const struct place *p, const char *fmt, ...);
+PF(3, 4) void debuglog2(const struct place *p, const struct place *p2,
+                       const char *fmt, ...);
+
+/* in main.c */
+void freestringlater(char *s);
+DEAD void die(void);
diff --git a/cde/util/tradcpp/version.h b/cde/util/tradcpp/version.h
new file mode 100644 (file)
index 0000000..bb77fd5
--- /dev/null
@@ -0,0 +1,33 @@
+/*-
+ * Copyright (c) 2010, 2013 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by David A. Holland.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#define VERSION_MAJOR  "0"
+#define VERSION_MINOR  "5"
+#define VERSION_STRING "0.5.3"
+#define VERSION_LONG   "NetBSD tradcpp 0.5.3"