?? ad2c.man
字號:
.TH ad2c 1 "19 Apr 1993".SH NAMEad2c \- convert resource files to C declarations.SH SYNOPSIS.I ad2c[ files ].SH DESCRIPTION.LP.I Ad2cconverts X resource files into C declarations, appropriate forinclusion as fallback resources. The program is a.IR sed (1)script which is effectively a finite state machine, escaping quotesand backslashes (and newlines where necessary), and adding quotes andcommas as needed for array initialization..LPIt reads from the given files (or stdin if none are given) and writesthe C declarations to stdout..SH USAGEThe following example shows a typical use of.I ad2cto ensure that an application always has the latest version of itsresources compiled into the executable. Suppose the applicationdefaults file is named "Foobar.ad", for application.IR foobar .Then the following lines in a Makefile or Imakefile will indicatehow and when to run.IR ad2c :.nf.na Foobar.ad.h: Foobar.ad ad2c Foobar.ad >Foobar.ad.h.ad.fiThe resulting C strings should be included (say in "foobar.c"):.nf.na static char fallback_resources[] = { #include "Foobar.ad.h" NULL };.ad.fiThis array of strings can then be given as a parameter to.IR XtAppInitialize (3X)or otherwise used to initialize the application's resources. Running.I makedependor adding the line.nf.na foobar.c: Foobar.ad.h.ad.fito the Makefile or Imakefile will ensure that "foobar.c" isrecompiled when necessary (ie., whenever "Foobar.ad" changes)..SH "RETURN VALUE".LP.I Ad2creturns as for.IR sed ..SH "SEE ALSO"sed(1).SH DISCLAIMER.LPThis software is provided as is with no warranty expressed or implied.I hope you find it useful, but I won't be held responsable forany damage that may occur from reading, compiling, installing orusing it..LPYou are free to use any part of this code for other purposes. Itwould be nice if you could keep my name on some part of whatever thefinal product is..SH AUTHOR.LPGeorge Ferguson, ferguson@cs.rochester.edu..LPMan page by Joseph Beckenbach, jerbil@ultra.com. Usage section addedby George Ferguson. Example corrected by Tim Theisen, tim@cs.wisc.edu.Example further corrected by David Wojtowicz, davidw@vista.atmos.uiuc.edu..LPModified to work with Gnu and IBM sed by Charles Hannum,mycroft@gnu.ai.mit.edu.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -