MAKEDATABASEAFacilityforAutomatingtheGenerationandMaintenanceofMasterscopeandWhereisDatabasesauthor:JonLWhitefiles:[Eris]--MAKEDATABASEandPAGEHOLDdocumentation:MAKEDATABASE.tedit/pressmodified:10-Mar-84and9-Oct-84byJonLThispackagecontainstwofunctionsofinterest--STARTMAKINGDATABASEandCONTINUEMAKINGDATABASE--eachofwhichtakesthreearguments:FILESLST-alistoffilestobemasterscopeanalyzedOUTPUTFILENAME-thenameoftheresultantoutputfileCONSCOUNTLIMIT-the"boxcount"atwhichthein-coredatabasewillbedumpedout.Theeffectistoproducea.DATABASEfileofallthesourcefilesinFILESLST;masterscopeprimitiveswillbecalledtoanalyzeeachfile,butaftereverysomany"cons"'s,itwillincrementallydumpouttheresults.ThisisparticularlyusefulwhenthetimerequiredtoanalyzeallthefilesinFILESLSTisontheorderofhours,orwhentheamountofinformationinsuchanalysesexceedsthecapacityofInterlisp-D'slimits(e.g.,addressspaceexhaustion,orexcessiveswappingduetosmallerrealmemories).STARTMAKINGDATABASEopensanewfileforoutput;CONTINUEMAKINGDATABASEassumesthatOUTPUTFILENAMEisanexistingfilewithsomepreviousnumberofoutputtingsalreadyonit.Thusifthereisacrashafteranalyzing,say,thefirst50filesofFILESLST,onecanstartupcallingCONTINUEMAKINGDATABASEwiththeremainderofthefilenames,andnothavetorepeattheanalysisofthefirst50files.Currently,theoutputfileisatextfileofdata,asproducedbyDUMPDATABASE(q.v.);assoonasareliablemasterscopehashfilefacilityisoperableinInterlisp-D,itwillconnectintothatformat.TheformatofthetextoutputfileissuchthatitcanalwaysbeLOAD'dintoLisp;italwayshasaSTOPattheend,andtheDUMPDATABASEphaseissomewhatprotectedsothatitdoesn'tleaveapartialdumpattheendofthefile.Furthermore,eachgroupoffileswhoseanalysesaredumpedoutispreceededbyalineintheoutputfilelike(*filesanalyzed:...)wherethevariousaretherootfilenamesofthefilesanalyzedanddumped.Thedumpedinformationappearsjustafterthiscomment-likeform.Thereasonforthislineofcommentaryissothatifacrashoccurs,onecansearchthepartialoutputfile(usingthefunctionBFILEPOSfoundinthelibrarypackageBSEARCH)forthelastoccurenceinthefileofapatternlike"(*filesanalyzed:"andthenusingCOPYBYTESsimplyviewthatlinetoseethenamesofthelastfewfilessuccessfullyanalyzed. q?` p q?` g_p bh bh aT aT _?qj 5G55_? \ \ Zrl/ &M( 1D43 ==Z Y  $&-94Y WX WX Vp V Ts8TpTTtTV/TpTT Ss SpS i SuSRSpS^bbSuS *M-4gS Qs QuQ'Q Os^OuO55OtOF #OuO#O N N M4 M4 K K J J HHtH$^%***HuH,HvH-t=iHtH=@J@JH GlvnGluGlEGltGl"$W(4+. 5Gl EEvEEtE!#3%'q)4 05E DTDTvDT DTtDT $_%(-13DT BBvB BtB ()o-L/}39];=BE$B A< A< ? 9w?v? ?t?!#<$&(,/11?v?7?t?8 @# F[HJJ? >- :"k$'-'.O0 9(<?AArEF@I*JhJh>- < v"${)3*-%/1c1c #%Y())3}v3}0Z3}t3}1 358:>>3} 1vn1t1!(H),.>2547z:<@BBG&HH1 0e %I0e . . -_ P9 6"$&)+31 22-_v-_ =-_t-_=ZAABEGYHVHV-_ + /<v!&{' /10Y27:a=AADHJyJy+ *P %(fh/#%%*Pv*P(*Pt*P*V+-V0168]9Z9Z*Pv*P<*Pt*P=>y@CFHEHE*P (v (t(`P%l')*/V237;=?9ACME~HHgHg( '8 =?Z!X&(-0)1g79:=>@EG@Ii'8 %v y%w% 'Y)*,c2D%v%3!% $]t $]w$]$]$$]$]$]t$]5!')u+.d36k<LIBRARY>MAKEDATABASE.TEDIT;5JONL.PA22-Nov-84 20:41:41