1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720 |
- {
- $Id$
- Copyright (c) 1998-2000 by the FPC Development Team
- Dumps the contents of a FPC unit file (PPU File)
- 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 2 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, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- ****************************************************************************}
- {$ifdef TP}
- {$N+,E+}
- {$endif}
- program pppdump;
- uses
- {$ifdef go32v2}
- dpmiexcp,
- {$endif go32v2}
- ppu;
- const
- Version = 'Version 1.10';
- Title = 'PPU-Analyser';
- Copyright = 'Copyright (c) 1998-2001 by the Free Pascal Development Team';
- { verbosity }
- v_none = $0;
- v_header = $1;
- v_defs = $2;
- v_syms = $4;
- v_interface = $8;
- v_implementation = $10;
- v_browser = $20;
- v_all = $ff;
- var
- ppufile : tppufile;
- space : string;
- read_member : boolean;
- unitindex : longint;
- verbose : longint;
- {****************************************************************************
- Helper Routines
- ****************************************************************************}
- const has_errors : boolean = false;
- Procedure Error(const S : string);
- Begin
- Writeln(S);
- has_errors:=true;
- End;
- Function Target2Str(w:longint):string;
- type
- { taken from systems.pas }
- ttarget =
- (
- target_none, { 0 }
- target_i386_GO32V1, { 1 }
- target_i386_GO32V2, { 2 }
- target_i386_linux, { 3 }
- target_i386_OS2, { 4 }
- target_i386_Win32, { 5 }
- target_i386_freebsd, { 6 }
- target_m68k_Amiga, { 7 }
- target_m68k_Atari, { 8 }
- target_m68k_Mac, { 9 }
- target_m68k_linux, { 10 }
- target_m68k_PalmOS, { 11 }
- target_alpha_linux, { 12 }
- target_powerpc_linux, { 13 }
- target_powerpc_macos, { 14 }
- target_i386_sunos, { 15 }
- target_i386_beos, { 16 }
- target_i386_netbsd, { 17 }
- target_m68k_netbsd, { 18 }
- target_i386_Netware { 19 }
- );
- const
- Targets : array[ttarget] of string[12]=(
- { 0 } 'none',
- { 1 } 'GO32V1',
- { 2 } 'GO32V2',
- { 3 } 'Linux-i386',
- { 4 } 'OS/2',
- { 5 } 'Win32',
- { 6 } 'FreeBSD-i386',
- { 7 } 'Amiga',
- { 8 } 'Atari',
- { 9 } 'MacOS-m68k',
- { 10 } 'Linux-m68k',
- { 11 } 'PalmOS-m68k',
- { 12 } 'Linux-alpha',
- { 13 } 'Linux-ppc',
- { 14 } 'MacOS-ppc',
- { 15 } 'Solaris-i386',
- { 16 } 'BeOS-i386',
- { 17 } 'NetBSD-i386',
- { 18 } 'NetBSD-m68k',
- { 19 } 'Netware'
- );
- begin
- if w<=ord(high(ttarget)) then
- Target2Str:=Targets[ttarget(w)]
- else
- Target2Str:='<Unknown>';
- end;
- Function Cpu2Str(w:longint):string;
- type
- { Copied from systems.pas }
- ttargetcpu=
- (
- no_cpu, { 0 }
- i386, { 1 }
- m68k, { 2 }
- alpha, { 3 }
- powerpc { 4 }
- );
- const
- CpuTxt : array[ttargetcpu] of string[7]=
- ('none','i386','m68k','alpha','powerpc');
- begin
- if w<=ord(high(ttargetcpu)) then
- Cpu2Str:=CpuTxt[ttargetcpu(w)]
- else
- Cpu2Str:='<Unknown>';
- end;
- function PPUFlags2Str(flags:longint):string;
- type
- tflagopt=record
- mask : longint;
- str : string[30];
- end;
- const
- flagopts=14;
- flagopt : array[1..flagopts] of tflagopt=(
- (mask: $1 ;str:'init'),
- (mask: $2 ;str:'final'),
- (mask: $4 ;str:'big_endian'),
- (mask: $8 ;str:'dbx'),
- (mask: $10 ;str:'browser'),
- (mask: $20 ;str:'in_library'),
- (mask: $40 ;str:'smart_linked'),
- (mask: $80 ;str:'static_linked'),
- (mask: $100 ;str:'shared_linked'),
- (mask: $200 ;str:'local_browser'),
- (mask: $400 ;str:'no_link'),
- (mask: $800 ;str:'has_resources'),
- (mask: $1000 ;str:'little_endian'),
- (mask: $2000 ;str:'release')
- );
- var
- i : longint;
- first : boolean;
- s : string;
- begin
- s:='';
- if flags<>0 then
- begin
- first:=true;
- for i:=1to flagopts do
- if (flags and flagopt[i].mask)<>0 then
- begin
- if first then
- first:=false
- else
- s:=s+', ';
- s:=s+flagopt[i].str;
- end;
- end
- else
- s:='none';
- PPUFlags2Str:=s;
- end;
- const
- HexTbl : array[0..15] of char='0123456789ABCDEF';
- function HexB(b:byte):string;
- begin
- HexB[0]:=#2;
- HexB[1]:=HexTbl[b shr 4];
- HexB[2]:=HexTbl[b and $f];
- end;
- function hexstr(val : cardinal;cnt : byte) : string;
- const
- HexTbl : array[0..15] of char='0123456789ABCDEF';
- var
- i : longint;
- begin
- hexstr[0]:=char(cnt);
- for i:=cnt downto 1 do
- begin
- hexstr[i]:=hextbl[val and $f];
- val:=val shr 4;
- end;
- end;
- {****************************************************************************
- Read Routines
- ****************************************************************************}
- Procedure ReadLinkContainer(const prefix:string);
- {
- Read a serie of strings and write to the screen starting every line
- with prefix
- }
- function maskstr(m:longint):string;
- const
- { link options }
- link_none = $0;
- link_allways = $1;
- link_static = $2;
- link_smart = $4;
- link_shared = $8;
- var
- s : string;
- begin
- s:='';
- if (m and link_allways)<>0 then
- s:=s+'always ';
- if (m and link_static)<>0 then
- s:=s+'static ';
- if (m and link_smart)<>0 then
- s:=s+'smart ';
- if (m and link_shared)<>0 then
- s:=s+'shared ';
- maskstr:=s;
- end;
- var
- s : string;
- m : longint;
- begin
- while not ppufile.endofentry do
- begin
- s:=ppufile.getstring;
- m:=ppufile.getlongint;
- WriteLn(prefix,s,' (',maskstr(m),')');
- end;
- end;
- Procedure ReadContainer(const prefix:string);
- {
- Read a serie of strings and write to the screen starting every line
- with prefix
- }
- begin
- while not ppufile.endofentry do
- WriteLn(prefix,ppufile.getstring);
- end;
- Procedure ReadRef;
- begin
- if (verbose and v_browser)=0 then
- exit;
- while (not ppufile.endofentry) and (not ppufile.error) do
- Writeln(space,' - Refered : ',ppufile.getword,', (',ppufile.getlongint,',',ppufile.getword,')');
- end;
- Procedure ReadPosInfo;
- begin
- Writeln(ppufile.getword,' (',ppufile.getlongint,',',ppufile.getword,')');
- end;
- function readderef(const s:string;skipnil:boolean):boolean;
- type
- tdereftype = (derefnil,derefaktrecordindex,derefaktstaticindex,
- derefunit,derefrecord,derefindex,
- dereflocal,derefpara,derefaktlocalindex);
- var
- b : tdereftype;
- begin
- readderef:=true;
- repeat
- b:=tdereftype(ppufile.getbyte);
- case b of
- derefnil :
- begin
- if not skipnil then
- writeln('nil');
- readderef:=false;
- break;
- end;
- derefaktrecordindex :
- begin
- writeln('AktRecord ',s,' ',ppufile.getword);
- break;
- end;
- derefaktstaticindex :
- begin
- writeln('AktStatic ',s,' ',ppufile.getword);
- break;
- end;
- derefaktlocalindex :
- begin
- writeln('AktLocal ',s,' ',ppufile.getword);
- break;
- end;
- derefunit :
- begin
- writeln('Unit ',ppufile.getword);
- break;
- end;
- derefrecord :
- begin
- write('RecordDef ',ppufile.getword,', ');
- end;
- derefpara :
- begin
- write('Parameter of procdef ',ppufile.getword,', ');
- end;
- dereflocal :
- begin
- write('Local of procdef ',ppufile.getword,', ');
- end;
- derefindex :
- begin
- write(s,' ',ppufile.getword,', ');
- end;
- else
- begin
- writeln('!! unsupported dereftyp: ',ord(b));
- break;
- end;
- end;
- until false;
- end;
- function readdefref:boolean;
- begin
- readdefref:=readderef('Definition',false);
- end;
- function readsymref:boolean;
- begin
- readsymref:=readderef('Symbol',false);
- end;
- procedure readtype;
- var
- b1,b2 : boolean;
- begin
- b1:=readderef('Definition',true);
- b2:=readderef('Symbol',true);
- if not(b1 or b2) then
- Writeln('nil')
- else
- if (b1 and b2) then
- Writeln('!! Type has both definition and symbol stored');
- end;
- procedure readsymlist(const s:string);
- type
- tsltype = (sl_none,
- sl_load,
- sl_call,
- sl_subscript,
- sl_vec
- );
- const
- slstr : array[tsltype] of string[9] = ('',
- 'load',
- 'call',
- 'subscript',
- 'vec'
- );
- var
- sl : tsltype;
- begin
- readdefref;
- repeat
- sl:=tsltype(ppufile.getbyte);
- if sl=sl_none then
- break;
- write(s,'(',slstr[sl],') ');
- case sl of
- sl_call,
- sl_load,
- sl_subscript :
- readsymref;
- sl_vec :
- writeln(ppufile.getlongint);
- end;
- until false;
- end;
- { Read abstract procdef and return if inline procdef }
- type
- tproccalloption=(pocall_none,
- pocall_cdecl, { procedure uses C styled calling }
- pocall_cppdecl, { C++ calling conventions }
- pocall_compilerproc, { Procedure is used for internal compiler calls }
- pocall_far16, { Far16 for OS/2 }
- pocall_fpccall, { FPC default calling }
- pocall_inline, { Procedure is an assembler macro }
- pocall_internconst, { procedure has constant evaluator intern }
- pocall_internproc, { Procedure has compiler magic}
- pocall_palmossyscall, { procedure is a PalmOS system call }
- pocall_pascal, { pascal standard left to right }
- pocall_register, { procedure uses register (fastcall) calling }
- pocall_safecall, { safe call calling conventions }
- pocall_stdcall, { procedure uses stdcall call }
- pocall_system { system call }
- );
- tproccalloptions=set of tproccalloption;
- tproctypeoption=(potype_none,
- potype_proginit, { Program initialization }
- potype_unitinit, { unit initialization }
- potype_unitfinalize, { unit finalization }
- potype_constructor, { Procedure is a constructor }
- potype_destructor, { Procedure is a destructor }
- potype_operator { Procedure defines an operator }
- );
- tproctypeoptions=set of tproctypeoption;
- tprocoption=(po_none,
- po_classmethod, { class method }
- po_virtualmethod, { Procedure is a virtual method }
- po_abstractmethod, { Procedure is an abstract method }
- po_staticmethod, { static method }
- po_overridingmethod, { method with override directive }
- po_methodpointer, { method pointer, only in procvardef, also used for 'with object do' }
- po_containsself, { self is passed explicit to the compiler }
- po_interrupt, { Procedure is an interrupt handler }
- po_iocheck, { IO checking should be done after a call to the procedure }
- po_assembler, { Procedure is written in assembler }
- po_msgstr, { method for string message handling }
- po_msgint, { method for int message handling }
- po_exports, { Procedure has export directive (needed for OS/2) }
- po_external, { Procedure is external (in other object or lib)}
- po_savestdregs, { save std regs cdecl and stdcall need that ! }
- po_saveregisters, { save all registers }
- po_overload, { procedure is declared with overload directive }
- po_varargs { printf like arguments }
- );
- tprocoptions=set of tprocoption;
- function read_abstract_proc_def:tproccalloption;
- type
- tproccallopt=record
- mask : tproccalloption;
- str : string[30];
- end;
- tproctypeopt=record
- mask : tproctypeoption;
- str : string[30];
- end;
- tprocopt=record
- mask : tprocoption;
- str : string[30];
- end;
- const
- proccalloptionStr : array[tproccalloption] of string[14]=('',
- 'CDecl',
- 'CPPDecl',
- 'CompilerProc',
- 'Far16',
- 'FPCCall',
- 'Inline',
- 'InternConst',
- 'InternProc',
- 'PalmOSSysCall',
- 'Pascal',
- 'Register',
- 'SafeCall',
- 'StdCall',
- 'System'
- );
- proctypeopts=6;
- proctypeopt : array[1..proctypeopts] of tproctypeopt=(
- (mask:potype_proginit; str:'ProgInit'),
- (mask:potype_unitinit; str:'UnitInit'),
- (mask:potype_unitfinalize;str:'UnitFinalize'),
- (mask:potype_constructor; str:'Constructor'),
- (mask:potype_destructor; str:'Destructor'),
- (mask:potype_operator; str:'Operator')
- );
- procopts=18;
- procopt : array[1..procopts] of tprocopt=(
- (mask:po_classmethod; str:'ClassMethod'),
- (mask:po_virtualmethod; str:'VirtualMethod'),
- (mask:po_abstractmethod; str:'AbstractMethod'),
- (mask:po_staticmethod; str:'StaticMethod'),
- (mask:po_overridingmethod;str:'OverridingMethod'),
- (mask:po_methodpointer; str:'MethodPointer'),
- (mask:po_containsself; str:'ContainsSelf'),
- (mask:po_interrupt; str:'Interrupt'),
- (mask:po_iocheck; str:'IOCheck'),
- (mask:po_assembler; str:'Assembler'),
- (mask:po_msgstr; str:'MsgStr'),
- (mask:po_msgint; str:'MsgInt'),
- (mask:po_exports; str:'Exports'),
- (mask:po_external; str:'External'),
- (mask:po_savestdregs; str:'SaveStdRegs'),
- (mask:po_saveregisters; str:'SaveRegisters'),
- (mask:po_overload; str:'Overload'),
- (mask:po_varargs; str:'VarArgs')
- );
- tvarspez : array[0..3] of string[5]=('Value','Const','Var ','Out ');
- var
- proctypeoption : tproctypeoption;
- proccalloption : tproccalloption;
- procoptions : tprocoptions;
- i,params : longint;
- first : boolean;
- begin
- write(space,' Return type : ');
- readtype;
- writeln(space,' Fpu used : ',ppufile.getbyte);
- proctypeoption:=tproctypeoption(ppufile.getbyte);
- if proctypeoption<>potype_none then
- begin
- write(space,' TypeOption : ');
- first:=true;
- for i:=1to proctypeopts do
- if (proctypeopt[i].mask=proctypeoption) then
- begin
- if first then
- first:=false
- else
- write(', ');
- write(proctypeopt[i].str);
- end;
- writeln;
- end;
- proccalloption:=tproccalloption(ppufile.getbyte);
- read_abstract_proc_def:=proccalloption;
- writeln(space,' CallOption : ',proccalloptionStr[proccalloption]);
- ppufile.getsmallset(procoptions);
- if procoptions<>[] then
- begin
- write(space,' Options : ');
- first:=true;
- for i:=1to procopts do
- if (procopt[i].mask in procoptions) then
- begin
- if first then
- first:=false
- else
- write(', ');
- write(procopt[i].str);
- end;
- writeln;
- end;
- params:=ppufile.getword;
- writeln(space,' Nr of parameters : ',params);
- if params>0 then
- begin
- repeat
- write(space,' - ',tvarspez[ppufile.getbyte],' : ');
- readtype;
- write(space,' Default : ');
- readsymref;
- dec(params);
- until params=0;
- end;
- end;
- procedure readcommonsym(const s:string);
- type
- tsymoption=(sp_none,
- sp_public,
- sp_private,
- sp_published,
- sp_protected,
- sp_forwarddef,
- sp_static,
- sp_primary_typesym { this is for typesym, to know who is the primary symbol of a def }
- );
- tsymoptions=set of tsymoption;
- tsymopt=record
- mask : tsymoption;
- str : string[30];
- end;
- const
- symopts=7;
- symopt : array[1..symopts] of tsymopt=(
- (mask:sp_public; str:'Public'),
- (mask:sp_private; str:'Private'),
- (mask:sp_published; str:'Published'),
- (mask:sp_protected; str:'Protected'),
- (mask:sp_forwarddef; str:'ForwardDef'),
- (mask:sp_static; str:'Static'),
- (mask:sp_primary_typesym;str:'PrimaryTypeSym')
- );
- var
- symoptions : tsymoptions;
- i : longint;
- first : boolean;
- begin
- writeln(space,'** Symbol Nr. ',ppufile.getword,' **');
- writeln(space,s,ppufile.getstring);
- ppufile.getsmallset(symoptions);
- if symoptions<>[] then
- begin
- write(space,' File Pos: ');
- readposinfo;
- write(space,' SymOptions: ');
- first:=true;
- for i:=1to symopts do
- if (symopt[i].mask in symoptions) then
- begin
- if first then
- first:=false
- else
- write(', ');
- write(symopt[i].str);
- end;
- writeln;
- end;
- end;
- procedure readcommondef(const s:string);
- type
- tdefoption=(df_none,
- df_has_inittable, { init data has been generated }
- df_has_rttitable { rtti data has been generated }
- );
- tdefoptions=set of tdefoption;
- var
- defopts : tdefoptions;
- begin
- writeln(space,'** Definition Nr. ',ppufile.getword,' **');
- writeln(space,s);
- write (space,' Type symbol : ');
- readsymref;
- ppufile.getsmallset(defopts);
- if df_has_rttitable in defopts then
- begin
- write (space,' RTTI symbol : ');
- readsymref;
- end;
- if df_has_inittable in defopts then
- begin
- write (space,' Init symbol : ');
- readsymref;
- end;
- end;
- {****************************************************************************
- Read Symbols Part
- ****************************************************************************}
- procedure readsymbols;
- Const
- vo_is_C_var = 2;
- Type
- absolutetyp = (tovar,toasm,toaddr);
- tconsttyp = (constnone,
- constord,conststring,constreal,constbool,
- constint,constchar,constset,constpointer,constnil,
- constresourcestring
- );
- var
- b : byte;
- pc : pchar;
- totalsyms,
- symcnt,
- i,j,len : longint;
- l1,l2 : longint;
- begin
- symcnt:=1;
- with ppufile do
- begin
- if space<>'' then
- Writeln(space,'-----------------------------');
- if readentry=ibstartsyms then
- begin
- totalsyms:=getlongint;
- Writeln(space,'Number of symbols : ',totalsyms);
- Writeln(space,'Symtable datasize : ',getlongint);
- Writeln(space,'Symtable alignment: ',getlongint);
- end
- else
- begin
- totalsyms:=-1;
- Writeln('!! ibstartsym not found');
- end;
- repeat
- b:=readentry;
- if not (b in [iberror,ibendsyms]) then
- inc(symcnt);
- case b of
- ibunitsym :
- readcommonsym('Unit symbol ');
- iblabelsym :
- readcommonsym('Label symbol ');
- ibtypesym :
- begin
- readcommonsym('Type symbol ');
- write(space,' Result Type: ');
- readtype;
- end;
- ibprocsym :
- begin
- readcommonsym('Procedure symbol ');
- repeat
- write(space,' Definition: ');
- until not readdefref;
- end;
- ibconstsym :
- begin
- readcommonsym('Constant symbol ');
- b:=getbyte;
- case tconsttyp(b) of
- constord :
- begin
- write (space,'OrdinalType: ');
- readtype;
- writeln (space,' Value: ',getlongint)
- end;
- constpointer :
- begin
- write (space,' Pointer Type: ');
- readtype;
- writeln (space,' Value: ',getlongint)
- end;
- conststring,
- constresourcestring :
- begin
- len:=getlongint;
- getmem(pc,len+1);
- getdata(pc^,len);
- writeln(space,' Length: ',len);
- writeln(space,' Value: "',pc,'"');
- freemem(pc,len+1);
- if tconsttyp(b)=constresourcestring then
- writeln(space,' Index: ',getlongint);
- end;
- constreal :
- writeln(space,' Value: ',getreal);
- constbool :
- if getlongint<>0 then
- writeln (space,' Value : True')
- else
- writeln (space,' Value: False');
- constint :
- begin
- l1:=getlongint;
- l2:=getlongint;
- writeln(space,' Value: ',int64(l2 shl 32) or l1);
- end;
- constchar :
- writeln(space,' Value: "'+chr(getlongint)+'"');
- constset :
- begin
- write (space,' Set Type: ');
- readtype;
- for i:=1to 4 do
- begin
- write (space,' Value: ');
- for j:=1to 8 do
- begin
- if j>1 then
- write(',');
- write(hexb(getbyte));
- end;
- writeln;
- end;
- end;
- else
- Writeln ('!! Invalid unit format : Invalid const type encountered: ',b);
- end;
- end;
- ibvarsym :
- begin
- readcommonsym('Variable symbol ');
- writeln(space,' Type: ',getbyte);
- if read_member then
- writeln(space,' Address: ',getlongint);
- write (space,' Var Type: ');
- readtype;
- i:=getlongint;
- writeln(space,' Options: ',i);
- if (i and vo_is_C_var)<>0 then
- writeln(space,' Mangledname: ',getstring);
- end;
- ibenumsym :
- begin
- readcommonsym('Enumeration symbol ');
- write (space,' Definition: ');
- readdefref;
- writeln(space,' Value: ',getlongint);
- end;
- ibsyssym :
- begin
- readcommonsym('Internal system symbol ');
- writeln(space,' Internal Nr: ',getlongint);
- end;
- ibrttisym :
- begin
- readcommonsym('RTTI symbol ');
- writeln(space,' RTTI Type: ',getbyte);
- end;
- ibtypedconstsym :
- begin
- readcommonsym('Typed constant ');
- write (space,' Constant Type: ');
- readtype;
- writeln(space,' Label: ',getstring);
- writeln(space,' ReallyConst: ',(getbyte<>0));
- end;
- ibabsolutesym :
- begin
- readcommonsym('Absolute variable symbol ');
- writeln(space,' Type: ',getbyte);
- if read_member then
- writeln(space,' Address: ',getlongint);
- write (space,' Var Type: ');
- readtype;
- writeln(space,' Options: ',getlongint);
- Write (space,' Relocated to ');
- b:=getbyte;
- case absolutetyp(b) of
- tovar :
- Writeln('Name : ',getstring);
- toasm :
- Writeln('Assembler name : ',getstring);
- toaddr :
- begin
- Write('Address : ',getlongint);
- WriteLn(' (Far: ',getbyte<>0,')');
- end;
- else
- Writeln ('!! Invalid unit format : Invalid absolute type encountered: ',b);
- end;
- end;
- ibpropertysym :
- begin
- readcommonsym('Property ');
- i:=getlongint;
- writeln(space,' PropOptions: ',i);
- if (i and 32)>0 then
- begin
- write (space,'OverrideProp: ');
- readsymref;
- end
- else
- begin
- write (space,' Prop Type: ');
- readtype;
- writeln(space,' Index: ',getlongint);
- writeln(space,' Default: ',getlongint);
- write (space,' Index Type: ');
- readtype;
- write (space,' Readaccess: ');
- readsymlist(space+' Sym: ');
- write (space,' Writeaccess: ');
- readsymlist(space+' Sym: ');
- write (space,'Storedaccess: ');
- readsymlist(space+' Sym: ');
- end;
- end;
- ibfuncretsym :
- begin
- readcommonsym('Func return value ');
- write (space,' Return Type: ');
- readtype;
- writeln(space,' Address: ',getlongint);
- end;
- iberror :
- begin
- Writeln('!! Error in PPU');
- exit;
- end;
- ibendsyms :
- break;
- else
- WriteLn('!! Skipping unsupported PPU Entry in Symbols: ',b);
- end;
- if not EndOfEntry then
- Writeln('!! Entry has more information stored');
- until false;
- if (totalsyms<>-1) and (symcnt-1<>totalsyms) then
- Writeln('!! Only read ',symcnt-1,' of ',totalsyms,' symbols');
- end;
- end;
- {****************************************************************************
- Read defintions Part
- ****************************************************************************}
- procedure readdefinitions(start_read : boolean);
- type
- tsettype = (normset,smallset,varset);
- tbasetype = (
- uauto,uvoid,uchar,
- u8bit,u16bit,u32bit,
- s8bit,s16bit,s32bit,
- bool8bit,bool16bit,bool32bit,
- u64bit,s64bit,uwidechar
- );
- tobjectdeftype = (odt_none,
- odt_class,
- odt_object,
- odt_interfacecom,
- odt_interfacecorba,
- odt_cppclass
- );
- var
- b : byte;
- oldread_member : boolean;
- totaldefs,l,j,
- defcnt : longint;
- calloption : tproccalloption;
- begin
- defcnt:=0;
- with ppufile do
- begin
- if space<>'' then
- Writeln(space,'-----------------------------');
- if not start_read then
- if readentry=ibstartdefs then
- begin
- totaldefs:=getlongint;
- Writeln(space,'Number of definitions: ',totaldefs);
- end
- else
- begin
- totaldefs:=-1;
- Writeln('!! ibstartdef not found');
- end;
- repeat
- b:=readentry;
- if not (b in [iberror,ibenddefs]) then
- inc(defcnt);
- case b of
- ibpointerdef :
- begin
- readcommondef('Pointer definition');
- write (space,' Pointed Type : ');
- readtype;
- writeln(space,' Is Far : ',(getbyte<>0));
- end;
- iborddef :
- begin
- readcommondef('Ordinal definition');
- write (space,' Base type : ');
- b:=getbyte;
- case tbasetype(b) of
- uauto : writeln('uauto');
- uvoid : writeln('uvoid');
- uchar : writeln('uchar');
- u8bit : writeln('u8bit');
- u16bit : writeln('u16bit');
- u32bit : writeln('s32bit');
- s8bit : writeln('s8bit');
- s16bit : writeln('s16bit');
- s32bit : writeln('s32bit');
- bool8bit : writeln('bool8bit');
- bool16bit : writeln('bool16bit');
- bool32bit : writeln('bool32bit');
- u64bit : writeln('u64bit');
- s64bit : writeln('s64bit');
- uwidechar : writeln('uwidechar');
- else writeln('!! Warning: Invalid base type ',b);
- end;
- writeln(space,' Range : ',getlongint,' to ',getlongint);
- end;
- ibfloatdef :
- begin
- readcommondef('Float definition');
- writeln(space,' Float type : ',getbyte);
- end;
- ibarraydef :
- begin
- readcommondef('Array definition');
- write (space,' Element type : ');
- readtype;
- write (space,' Range Type : ');
- readtype;
- writeln(space,' Range : ',getlongint,' to ',getlongint);
- writeln(space,' Is Constructor : ',(getbyte<>0));
- writeln(space,' Is Dynamic : ',(getbyte<>0));
- end;
- ibprocdef :
- begin
- readcommondef('Procedure definition');
- calloption:=read_abstract_proc_def;
- writeln(space,' Used Register : ',getbyte);
- writeln(space,' Mangled name : ',getstring);
- writeln(space,' Number : ',getlongint);
- write (space,' Class : ');
- readdefref;
- write (space,' Procsym : ');
- readsymref;
- write (space,' File Pos : ');
- readposinfo;
- if (calloption=pocall_inline) then
- begin
- write (space,' FuncretSym : ');
- readdefref;
- end;
- space:=' '+space;
- { parast }
- readdefinitions(false);
- readsymbols;
- { localst }
- if (calloption=pocall_inline) or
- ((ppufile.header.flags and uf_local_browser) <> 0) then
- begin
- readdefinitions(false);
- readsymbols;
- end;
- delete(space,1,4);
- end;
- ibprocvardef :
- begin
- readcommondef('Procedural type (ProcVar) definition');
- read_abstract_proc_def;
- end;
- ibshortstringdef :
- begin
- readcommondef('ShortString definition');
- writeln(space,' Length : ',getbyte);
- end;
- ibwidestringdef :
- begin
- readcommondef('WideString definition');
- writeln(space,' Length : ',getlongint);
- end;
- ibansistringdef :
- begin
- readcommondef('AnsiString definition');
- writeln(space,' Length : ',getlongint);
- end;
- iblongstringdef :
- begin
- readcommondef('Longstring definition');
- writeln(space,' Length : ',getlongint);
- end;
- ibrecorddef :
- begin
- readcommondef('Record definition');
- writeln(space,' Size : ',getlongint);
- {read the record definitions and symbols}
- space:=' '+space;
- oldread_member:=read_member;
- read_member:=true;
- readdefinitions(false);
- readsymbols;
- read_member:=oldread_member;
- Delete(space,1,4);
- end;
- ibobjectdef :
- begin
- readcommondef('Object/Class definition');
- b:=getbyte;
- write (space,' Type : ');
- case tobjectdeftype(b) of
- odt_class : writeln('class');
- odt_object : writeln('object');
- odt_interfacecom : writeln('interfacecom');
- odt_interfacecorba : writeln('interfacecorba');
- odt_cppclass : writeln('cppclass');
- else writeln('!! Warning: Invalid object type ',b);
- end;
- writeln(space,' Size : ',getlongint);
- writeln(space,' Vmt offset : ',getlongint);
- writeln(space,' Name of Class : ',getstring);
- write(space, ' Ancestor Class : ');
- readdefref;
- writeln(space,' Options : ',getlongint);
- if tobjectdeftype(b) in [odt_interfacecom,odt_interfacecorba] then
- begin
- writeln(space,' GUID Valid : ',(getbyte<>0));
- { IIDGUID }
- for j:=1to 16 do
- getbyte;
- writeln(space,' IID String : ',getstring);
- writeln(space,' Last VTable idx : ',getlongint);
- end;
- if tobjectdeftype(b) in [odt_class,odt_interfacecorba] then
- begin
- l:=getlongint;
- writeln(space,' Impl Intf Count : ',l);
- for j:=1 to l do
- begin
- write (space,' - Definition : ');
- readdefref;
- writeln(space,' IOffset : ',getlongint);
- end;
- end;
- {read the record definitions and symbols}
- space:=' '+space;
- oldread_member:=read_member;
- read_member:=true;
- readdefinitions(false);
- readsymbols;
- read_member:=oldread_member;
- Delete(space,1,4);
- end;
- ibfiledef :
- begin
- ReadCommonDef('File definition');
- write (space,' Type : ');
- case getbyte of
- 0 : writeln('Text');
- 1 : begin
- writeln('Typed');
- write (space,' File of Type : ');
- Readtype;
- end;
- 2 : writeln('Untyped');
- end;
- end;
- ibformaldef :
- readcommondef('Generic Definition (void-typ)');
- ibenumdef :
- begin
- readcommondef('Enumeration type definition');
- write(space,'Base enumeration type : ');
- readdefref;
- writeln(space,' Smallest element : ',getlongint);
- writeln(space,' Largest element : ',getlongint);
- writeln(space,' Size : ',getlongint);
- end;
- ibclassrefdef :
- begin
- readcommondef('Class reference definition');
- write (space,' Pointed Type : ');
- readtype;
- end;
- ibsetdef :
- begin
- readcommondef('Set definition');
- write (space,' Element type : ');
- readtype;
- b:=getbyte;
- case tsettype(b) of
- smallset : writeln(space,' Set with 32 Elements');
- normset : writeln(space,' Set with 256 Elements');
- varset : writeln(space,' Set with ',getlongint,' Elements');
- else writeln('!! Warning: Invalid set type ',b);
- end;
- end;
- ibvariantdef :
- begin
- readcommondef('Variant definition');
- end;
- iberror :
- begin
- Writeln('!! Error in PPU');
- exit;
- end;
- ibenddefs :
- break;
- else
- WriteLn('!! Skipping unsupported PPU Entry in definitions: ',b);
- end;
- if not EndOfEntry then
- Writeln('!! Entry has more information stored');
- until false;
- if (totaldefs<>-1) and (defcnt<>totaldefs) then
- Writeln('!! Only read ',defcnt,' of ',totaldefs,' definitions');
- end;
- end;
- {****************************************************************************
- Read General Part
- ****************************************************************************}
- procedure readinterface;
- var
- b : byte;
- sourcenumber,
- unitnumber : word;
- ucrc,uintfcrc : longint;
- begin
- with ppufile do
- begin
- repeat
- b:=readentry;
- case b of
- ibmodulename :
- Writeln('Module Name: ',getstring);
- ibsourcefiles :
- begin
- sourcenumber:=1;
- while not EndOfEntry do
- begin
- Writeln('Source file ',sourcenumber,' : ',getstring);
- inc(sourcenumber);
- end;
- end;
- ibusedmacros :
- begin
- while not EndOfEntry do
- begin
- Write('Conditional ',getstring);
- b:=getbyte;
- if boolean(b)=true then
- write(' defined at startup')
- else
- write(' not defined at startup');
- b:=getbyte;
- if boolean(b)=true then
- writeln(' was used')
- else
- writeln;
- end;
- end;
- ibloadunit :
- begin
- unitnumber:=1;
- while not EndOfEntry do
- begin
- write('Uses unit: ',getstring,' (Number: ',unitnumber,')');
- ucrc:=getlongint;
- uintfcrc:=getlongint;
- write(' (Crc: ',hexstr(ucrc,8),', IntfcCrc: ',hexstr(uintfcrc,8),')');
- if getbyte<>0 then
- writeln(' (interface)')
- else
- writeln(' (implementation)');
- inc(unitnumber);
- end;
- end;
- iblinkunitofiles :
- ReadLinkContainer('Link unit object file: ');
- iblinkunitstaticlibs :
- ReadLinkContainer('Link unit static lib: ');
- iblinkunitsharedlibs :
- ReadLinkContainer('Link unit shared lib: ');
- iblinkotherofiles :
- ReadLinkContainer('Link other object file: ');
- iblinkotherstaticlibs :
- ReadLinkContainer('Link other static lib: ');
- iblinkothersharedlibs :
- ReadLinkContainer('Link other shared lib: ');
- iberror :
- begin
- Writeln('Error in PPU');
- exit;
- end;
- ibendinterface :
- break;
- else
- WriteLn('!! Skipping unsupported PPU Entry in General Part: ',b);
- end;
- until false;
- end;
- end;
- {****************************************************************************
- Read Implementation Part
- ****************************************************************************}
- procedure readimplementation;
- var
- b : byte;
- begin
- with ppufile do
- begin
- repeat
- b:=readentry;
- case b of
- iberror :
- begin
- Writeln('Error in PPU');
- exit;
- end;
- ibendimplementation :
- break;
- else
- WriteLn('!! Skipping unsupported PPU Entry in Implementation: ',b);
- end;
- until false;
- end;
- end;
- {****************************************************************************
- Read Browser Part
- ****************************************************************************}
- procedure readbrowser;
- var
- b : byte;
- const indent : string = '';
- begin
- Writeln(indent,'Start of symtable browser');
- indent:=indent+'**';
- with ppufile do
- begin
- repeat
- b:=readentry;
- case b of
- ibbeginsymtablebrowser :
- begin
- { here we must read object and record symtables !! }
- indent:=indent+' ';
- Writeln(indent,'Record/Object symtable');
- readbrowser;
- Indent:=Copy(Indent,1,Length(Indent)-2);
- end;
- ibsymref :
- begin
- readsymref;
- readref;
- end;
- ibdefref :
- begin
- readdefref;
- readref;
- if ((ppufile.header.flags and uf_local_browser)<>0) and
- (UnitIndex=0) then
- begin
- { parast and localst }
- indent:=indent+' ';
- b:=ppufile.readentry;
- if b=ibbeginsymtablebrowser then
- readbrowser;
- b:=ppufile.readentry;
- if b=ibbeginsymtablebrowser then
- readbrowser;
- Indent:=Copy(Indent,1,Length(Indent)-2);
- end;
- end;
- iberror :
- begin
- Writeln('Error in PPU');
- exit;
- end;
- ibendsymtablebrowser :
- break;
- else
- begin
- WriteLn('!! Skipping unsupported PPU Entry in Browser: ',b);
- Halt;
- end;
- end;
- until false;
- end;
- Indent:=Copy(Indent,1,Length(Indent)-2);
- Writeln(Indent,'End of symtable browser');
- end;
- procedure dofile (filename : string);
- var
- b : byte;
- begin
- { reset }
- space:='';
- { fix filename }
- if pos('.',filename)=0 then
- filename:=filename+'.ppu';
- ppufile:=tppufile.create(filename);
- if not ppufile.openfile then
- begin
- writeln ('IO-Error when opening : ',filename,', Skipping');
- exit;
- end;
- { PPU File is open, check for PPU Id }
- if not ppufile.CheckPPUID then
- begin
- writeln(Filename,' : Not a valid PPU file, Skipping');
- exit;
- end;
- { Check PPU Version }
- Writeln('Analyzing ',filename,' (v',ppufile.GetPPUVersion,')');
- if ppufile.GetPPUVersion<16 then
- begin
- writeln(Filename,' : Old PPU Formats (<v16) are not supported, Skipping');
- exit;
- end;
- { Write PPU Header Information }
- if (verbose and v_header)<>0 then
- begin
- Writeln;
- Writeln('Header');
- Writeln('-------');
- with ppufile.header do
- begin
- Writeln('Compiler version : ',hi(ppufile.header.compiler and $ff),'.',lo(ppufile.header.compiler));
- WriteLn('Target processor : ',Cpu2Str(cpu));
- WriteLn('Target operating system : ',Target2Str(target));
- Writeln('Unit flags : ',PPUFlags2Str(flags));
- Writeln('FileSize (w/o header) : ',size);
- Writeln('Checksum : ',hexstr(checksum,8));
- Writeln('Interface Checksum : ',hexstr(interface_checksum,8));
- end;
- end;
- {read the general stuff}
- if (verbose and v_interface)<>0 then
- begin
- Writeln;
- Writeln('Interface section');
- Writeln('------------------');
- readinterface;
- end
- else
- ppufile.skipuntilentry(ibendinterface);
- {read the definitions}
- if (verbose and v_defs)<>0 then
- begin
- Writeln;
- Writeln('Interface definitions');
- Writeln('----------------------');
- readdefinitions(false);
- end
- else
- ppufile.skipuntilentry(ibenddefs);
- {read the symbols}
- if (verbose and v_syms)<>0 then
- begin
- Writeln;
- Writeln('Interface Symbols');
- Writeln('------------------');
- readsymbols;
- end
- else
- ppufile.skipuntilentry(ibendsyms);
- {read the implementation stuff}
- { Not used at the moment (PFV)
- if (verbose and v_implementation)<>0 then
- begin
- Writeln;
- Writeln('Implementation section');
- Writeln('-----------------------');
- readimplementation;
- end
- else}
- ppufile.skipuntilentry(ibendimplementation);
- {read the static browser units stuff}
- if (ppufile.header.flags and uf_local_browser)<>0 then
- begin
- if (verbose and v_defs)<>0 then
- begin
- Writeln;
- Writeln('Static definitions');
- Writeln('----------------------');
- readdefinitions(false);
- end
- else
- ppufile.skipuntilentry(ibenddefs);
- {read the symbols}
- if (verbose and v_syms)<>0 then
- begin
- Writeln;
- Writeln('Static Symbols');
- Writeln('------------------');
- readsymbols;
- end;
- end;
- {read the browser units stuff}
- if (ppufile.header.flags and uf_has_browser)<>0 then
- begin
- if (verbose and v_browser)<>0 then
- begin
- Writeln;
- Writeln('Browser section');
- Writeln('---------------');
- UnitIndex:=0;
- repeat
- b:=ppufile.readentry;
- if b = ibendbrowser then break;
- if b=ibbeginsymtablebrowser then
- begin
- Writeln('Unit ',UnitIndex);
- readbrowser;
- Inc(UnitIndex);
- end
- else
- Writeln('Wrong end browser entry ',b,' should be ',ibendbrowser);
- until false;
- end;
- end;
- {read the static browser units stuff}
- if (ppufile.header.flags and uf_local_browser)<>0 then
- begin
- if (verbose and v_browser)<>0 then
- begin
- Writeln;
- Writeln('Static browser section');
- Writeln('---------------');
- UnitIndex:=0;
- b:=ppufile.readentry;
- if b=ibbeginsymtablebrowser then
- readbrowser
- else
- Writeln('Wrong end browser entry ',b,' should be ',ibendbrowser);
- end;
- end;
- {shutdown ppufile}
- ppufile.closefile;
- ppufile.free;
- Writeln;
- end;
- procedure help;
- begin
- writeln('usage: ppudump [options] <filename1> <filename2>...');
- writeln;
- writeln('[options] can be:');
- writeln(' -V<verbose> Set verbosity to <verbose>');
- writeln(' H - Show header info');
- writeln(' I - Show interface');
- writeln(' M - Show implementation');
- writeln(' S - Show interface symbols');
- writeln(' D - Show interface definitions');
- writeln(' B - Show browser info');
- writeln(' A - Show all');
- writeln(' -? This helpscreen');
- halt;
- end;
- var
- startpara,
- nrfile,i : longint;
- para : string;
- begin
- writeln(Title+' '+Version);
- writeln(Copyright);
- writeln;
- if paramcount<1 then
- begin
- writeln('usage: dumpppu [options] <filename1> <filename2>...');
- halt(1);
- end;
- { turn verbose on by default }
- verbose:=v_all;
- { read options }
- startpara:=1;
- while copy(paramstr(startpara),1,1)='-' do
- begin
- para:=paramstr(startpara);
- case upcase(para[2]) of
- 'V' : begin
- verbose:=0;
- for i:=3to length(para) do
- case upcase(para[i]) of
- 'H' : verbose:=verbose or v_header;
- 'I' : verbose:=verbose or v_interface;
- 'M' : verbose:=verbose or v_implementation;
- 'D' : verbose:=verbose or v_defs;
- 'S' : verbose:=verbose or v_syms;
- 'B' : verbose:=verbose or v_browser;
- 'A' : verbose:=verbose or v_all;
- end;
- end;
- '?' : help;
- end;
- inc(startpara);
- end;
- { process files }
- for nrfile:=startpara to paramcount do
- dofile (paramstr(nrfile));
- if has_errors then
- Halt(1);
- end.
- {
- $Log$
- Revision 1.9 2001-11-02 22:58:12 peter
- * procsym definition rewrite
- Revision 1.8 2001/09/22 04:52:27 carl
- * updated targets
- Revision 1.7 2001/08/30 20:55:02 peter
- * rttisym support
- Revision 1.6 2001/08/19 09:39:29 peter
- * local browser support fixed
- Revision 1.5 2001/06/29 19:42:18 peter
- * new flags added
- Revision 1.4 2001/06/04 11:53:15 peter
- + varargs directive
- Revision 1.3 2001/05/09 14:11:10 jonas
- * range check error fixes from Peter
- Revision 1.2 2001/05/06 14:49:19 peter
- * ppu object to class rewrite
- * move ppu read and write stuff to fppu
- Revision 1.1 2001/04/25 22:40:07 peter
- * compiler dependent utils in utils/ subdir
- Revision 1.5 2001/04/10 21:21:41 peter
- * variantdef support
- * propertysym fixed
- Revision 1.4 2001/04/04 22:42:59 peter
- * updated for new objectdef with interfaces
- Revision 1.3 2000/09/09 19:46:40 peter
- * show dataalignment
- Revision 1.2 2000/08/13 12:58:06 peter
- * updated for ppu additions
- Revision 1.1 2000/07/13 10:16:22 michael
- + Initial import
- Revision 1.15 2000/07/04 19:05:54 peter
- * be optimistic: version 1.00 for some utils
- Revision 1.14 2000/02/09 16:44:14 peter
- * log truncated
- Revision 1.13 2000/01/23 16:34:36 peter
- * updated for new aktlocalindex
- Revision 1.12 2000/01/07 16:46:03 daniel
- * copyright 2000
- Revision 1.11 1999/11/30 10:35:37 peter
- * support new readtype
- Revision 1.10 1999/11/08 14:06:45 florian
- + indexref of propertysym is handle too now
- Revision 1.9 1999/08/31 16:07:37 pierre
- + support for writeusedmacros
- Revision 1.8 1999/08/15 10:47:14 peter
- * updates for new options
- Revision 1.7 1999/08/13 21:25:35 peter
- * updated flags
- Revision 1.6 1999/07/27 23:45:29 peter
- * updated for typesym writing
- }
|