\ From:	HENRY::IN%"carl%cithex.caltech.edu%sri-kl.ARPA%relay.cs.net@rca.com" 22-MAR-1987 07:53I To:	munnari!murdu.oz!u3369429@seismo.css.gov, info-vax@cithex.caltech.edu  Subj:	Re: bigsis  L > Our JPIDEF.H looks probably different from yours, but that can be fixed byN > commenting your JPI define`s. But I cant't find PCBDEF.H nor any PCB-symbols$ > in any library. What am I missing?  G You need to extract and edit the module $PCBDEF from SYS$SHARE:LIB.MLB. G If you'd rather not edit it by hand, the following procedure is a crude H MACRO to C include file converter (i.e., it simply takes the definitionsH in the macro code and converts them to C #defines; it doesn't attempt toH define the appropriate structures/unions.  Maybe someday there will be aI shareable image to enable the use of SDL to do such things for C [anybody L from DEC listening?  If so, this is part of my wishlist, as is documentation	 for SDL])   P $!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $       set noonJ $       IF "''F$SEARCH("TMPFILE.TMP")'" .NES. "" THEN delete tmpfile.tmp;* $	on error then goto oops G $       library/extract='p1'/output=tmpfile.tmp/macro sys$share:starlet  $	goto form  $ oops:	on error then exit= $	library/extract='p1'/output=tmpfile.tmp/macro sys$share:lib  $ form: ON ERROR THEN GOTO DONE  $	OPEN/READ INFILE tmpfile.tmp $	DELETE TMPFILE.TMP; $ $       OPEN/WRIT OUFILE TMPFILE.TMP $	MAXLEN = 0$ $ LOOP: READ/ERRO=SORT   INFILE  SYM# $	sym = f$edit(sym,"COMPRESS,TRIM") 6 $	if f$element(0," ", sym) .nes. "$EQU" then goto LOOP $	token = f$element(1," ",sym)8 $	IF F$LEN(TOKEN) .GT. MAXLEN THEN MAXLEN = F$LEN(TOKEN)6 $	value = F$FAO("!XL",f$integer(f$element(2," ",sym))) $	WRITE OUFILE VALUE,TOKEN1 $	IF "''P2'" .NES. "" THEN WRITE 'P2' VALUE,TOKEN  $	GOTO LOOP  $ SORT:	CLOSE INFILE $	CLOSE OUFILE7 $	SORT/KEY=(POS=9,SIZ='MAXLEN') TMPFILE.TMP TMPFILE.TMP  $	OPEN/READ INFILE TMPFILE.TMP $	DELETE TMPFILE.TMP;* $	OPEN/WRITE OUFILE 'P1'.H$ $	SPACES = F$FAO("!#* ", MAXLEN + 1) $	MAXLEN = MAXLEN + 9   $ NICE:	READ/ERR=DONE INFILE SYM $	VALUE = F$EXTRACT(0,8,SYM)I $	SYM = SYM - VALUE + F$EXTR(0, MAXLEN-F$LEN(SYM), SPACES) + "0x" + VALUE $ $       WRITE OUFILE "#define ", SYM5 $	IF "''P2'" .NES. "" THEN WRITE 'P2' "#define ", SYM  $       GOTO NICE  $ DONE: CLOSE INFILE $       CLOSE OUFILEJ $       IF "''F$SEARCH("TMPFILE.TMP")'" .NES. "" THEN delete tmpfile.tmp;*P $!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!