ChangeLog-2000 202 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556
  1. 2000-12-30 Michael Livshin <mlivshin@bigfoot.com>
  2. * guardians.c (guardian_print): for sharing guardians, print that
  3. they are sharing.
  4. (scm_guard, scm_get_one_zombie): place the critical section
  5. barriers more correctly.
  6. * weaks.c (scm_scan_weak_vectors): move the calculation of the
  7. `weak_keys' and `weak_values' flags out of the inner loop.
  8. 2000-12-29 Michael Livshin <mlivshin@bigfoot.com>
  9. * guardians.c: (greedily_guarded_prop): deleted.
  10. (greedily_guarded_whash): new variable. a doubly-weak hash table
  11. used to keep the "greedily guarded" object property. the previous
  12. implementation (via primitive object properties) was incorrect due
  13. to its only-the-key-is-weak semantics.
  14. (scm_guard, get_one_zombie, scm_init_guardians): use/init
  15. `greedily_guarded_whash'.
  16. 2000-12-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  17. * eval.c (check_map_args), gh_data.c (gh_set_substr,
  18. gh_scm2newstr, gh_get_substr, gh_symbol2newstr), print.c
  19. (scm_iprin1): Use scm_remember_upto_here_1 instead of
  20. scm_remember.
  21. * gc.[ch] (scm_remember_upto_here_1, scm_remember_upto_here_2,
  22. scm_remember_upto_here): New functions.
  23. (scm_remember): Deprecated.
  24. 2000-12-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  25. * continuations.c (scm_make_continuation): Make variable cont
  26. volatile to let the compiler know that it won't be clobbered by
  27. longjmp. (It wouldn't be anyway, but for some reason the compiler
  28. is not able to see that.)
  29. 2000-12-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  30. This patch re-introduces the unused member "properties" of
  31. struct scm_subr_entry as requested by Mikael Djurfeldt.
  32. * procs.h (scm_subr_entry): Re-introduced member "properties".
  33. (SCM_SUBR_PROPS): Un-deprecated.
  34. * procs.c (scm_make_subr_opt, scm_mark_subr_table): Struct
  35. scm_subr_entry has a member "properties" again.
  36. 2000-12-28 Michael Livshin <mlivshin@bigfoot.com>
  37. * guardians.c (mark_dependencies_in_tconc): new function.
  38. (mark_dependencies): bug fix. mark the dependencies of the known
  39. zombies, too. duh.
  40. 2000-12-24 Michael Livshin <mlivshin@bigfoot.com>
  41. * gc.c: (scm_gc_mark_dependencies): use SCM_EQ_P for SCMs, not
  42. '=='. also, return after calling `scm_gc_mark'.
  43. 2000-12-24 Michael Livshin <mlivshin@bigfoot.com>
  44. * gc.c: (scm_gc_mark_dependencies): new function. like
  45. `scm_gc_mark', but doesn't mark the argument itself. defined
  46. using an arrangement similar to that in eval.c: `scm_gc_mark' and
  47. `scm_gc_mark_dependencies' are derived from the same "template"
  48. by ugly preprocessor magic.
  49. * gc.h: added prototype for `scm_gc_mark_dependencies'.
  50. * init.c (scm_init_guile_1): call the renamed
  51. `scm_init_guardians'.
  52. * guardians.h: changed prototypes for `scm_make_guardian' and
  53. `scm_init_guardians'.
  54. * guardians.c (guardian_t): added new fields `greedy_p' and
  55. `listed_p'.
  56. (GUARDIAN_P): predicate that says whether its argument is a
  57. guardian.
  58. (GUARDIAN_GREEDY_P, GUARDIAN_LISTED_P): new predicates.
  59. (greedy_guardians, sharing_guardians): new variables. hold the
  60. greedy and sharing live guardian lists, respectively.
  61. (first_live_guardian, current_link_field): removed.
  62. (greedily_guarded_prop): new variable. holds the "is greedily
  63. guarded" object property.
  64. (self_centered_zombies): new variable. stores guarded objects
  65. that are parts of cycles.
  66. (add_to_live_list): new function, introduced to decouple marking a
  67. guardian and adding it to the live list.
  68. (guardian_mark): call `add_to_live_list'.
  69. (guardian_print): print whether the guardian is greedy or not.
  70. also change "live" and "zombie" to "reachable" and "unreachable"
  71. respectively, to be less confusing.
  72. (scm_guard): if the guardian is greedy, test whether the object is
  73. already greedily marked. throw an error if so.
  74. (scm_get_one_zombie): if the guardian is greedy, remove the
  75. "greedily guarded" property from the object.
  76. (scm_make_guardian): add a new optional boolean argument which
  77. says whether the guardian is greedy or sharing.
  78. (guardian_gc_init): init the new live lists.
  79. (mark_dependencies): new function.
  80. (mark_and_zombify): new function.
  81. (guardian_zombify): reworked to support the new guardian
  82. semantics. move some logic to `mark_dependencies' and
  83. `mark_and_zombify'.
  84. (whine_about_self_centered_zombies): new function. installed in
  85. the `after-gc-hook' to complain about guarded objects which are
  86. parts of cycles.
  87. (scm_init_guardians): init the new stuff. renamed from
  88. `scm_init_guardian'.
  89. 2000-12-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  90. * procs.h (scm_subr_entry): Removed unused struct member
  91. "properties".
  92. (SCM_SUBR_PROPS): Deprecated.
  93. * procs.c (scm_make_subr_opt, scm_mark_subr_table): Struct
  94. scm_subr_entry does not have a member "properties" any more.
  95. 2000-12-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  96. * procs.h (scm_subr_entry): Removed unused struct member
  97. "documentation".
  98. (SCM_SUBR_DOC): Deprecated.
  99. * procs.c (scm_make_subr_opt): Eliminate use of scm_intern0 in
  100. favor of scm_str2symbol. Similarly, prefer scm_sysintern over
  101. scm_sysintern0.
  102. (scm_make_subr_opt, scm_mark_subr_table): Struct scm_subr_entry
  103. does not have a member "documentation" any more.
  104. 2000-12-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  105. * eval.c (restore_environment): Make sure that changes to the
  106. current environment will take effect when re-entering the dynamic
  107. scope.
  108. 2000-12-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  109. * goops.h (SCM_PUREGENERICP): Include the SCM_STRUCTP test.
  110. * goops.c (scm_sys_invalidate_method_cache_x, scm_m_atdispatch,
  111. scm_pure_generic_p): The SCM_STRUCTP test is implied.
  112. 2000-12-20 Gary Houston <ghouston@arglist.com>
  113. * continuations.c (continuation_apply): subtract the length of
  114. continuation->dynenv, not the dynenv itself. I broke it last
  115. time I changed this file. thanks to Bernard Urban.
  116. 2000-12-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
  117. * goops.c (remove_duplicate_slots, maplist,
  118. scm_sys_initialize_object, scm_sys_prep_layout_x,
  119. scm_sys_inherit_magic_x, scm_instance_p,
  120. scm_sys_set_object_setter_x, scm_sys_invalidate_method_cache_x,
  121. scm_compute_applicable_methods, scm_m_atdispatch,
  122. scm_pure_generic_p): Remove redundant SCM_N?IMP tests.
  123. 2000-12-16 Keisuke Nishida <kxn30@po.cwru.edu>
  124. * validate.h (SCM_WRONG_NUM_ARGS): New macro.
  125. * goops.h: #include "libguile/validate.h"
  126. (SCM_CLASSP, SCM_GENERICP, SCM_METHODP): Moved from goops.c with
  127. prefix "SCM_".
  128. (SCM_VALIDATE_INSTANCE, SCM_VALIDATE_ACCESSOR, SCM_VALIDATE_CLASS,
  129. SCM_VALIDATE_GENERIC, SCM_VALIDATE_METHOD): New macros.
  130. * goops.c (CLASSP, GENERICP, METHODP): Moved to goops.h with
  131. prefix "SCM_".
  132. (scm_sys_compute_slots, scm_sys_initialize_object,
  133. scm_sys_prep_layout_x, s_sys_inherit_magic_x, scm_instance_p,
  134. scm_class_name, scm_class_direct_supers, scm_class_direct_slots,
  135. scm_class_direct_subclasses, scm_class_direct_methods,
  136. scm_class_precedence_list, scm_class_slots, scm_class_environment,
  137. scm_generic_function_name, scm_generic_function_methods,
  138. scm_method_generic_function, scm_method_specializers,
  139. scm_method_procedure, scm_accessor_method_slot_definition,
  140. scm_make_unbound, scm_unbound_p, scm_assert_bound,
  141. scm_at_assert_bound_ref, scm_sys_fast_slot_ref,
  142. scm_sys_fast_slot_set_x, scm_slot_ref_using_class,
  143. scm_slot_set_using_class_x, scm_slot_bound_using_class_p,
  144. scm_slot_exists_using_class_p, scm_slot_ref, scm_slot_set_x,
  145. scm_slot_bound_p, scm_slots_exists_p, scm_sys_allocate_instance,
  146. scm_sys_set_object_setter_x, scm_sys_modify_instance,
  147. scm_sys_modify_class, scm_sys_invalidate_class,
  148. scm_sys_invalidate_method_cache_x, scm_generic_capability_p,
  149. scm_enable_primitive_generic_x, scm_primitive_generic_generic,
  150. scm_make, scm_find_method, scm_sys_method_more_specific_p,
  151. scm_pure_generic_p, scm_sys_goops_loaded): Replaced SCM_PROC by
  152. SCM_DEFINE. Use validate macros defined above.
  153. (scm_assert_bound, scm_at_assert_bound_ref, scm_sys_goops_loaded):
  154. Declared as static functions.
  155. (s_class_of, scm_class_of): Replaced SCM_PROC by SCM_DEFINE
  156. in object.c.
  157. * object.c (scm_class_of): Use SCM_DEFINE.
  158. 2000-12-16 Keisuke Nishida <kxn30@po.cwru.edu>
  159. * symbols.h (scm_symbols_prehistory): Added prototype.
  160. 2000-12-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
  161. * environments.[ch] (scm_system_environment): New variable, will
  162. replace scm_symhash soon. We may decide for a better name and
  163. also to split this up into a set of environments later.
  164. (scm_environments_prehistory): Initialize scm_system_environment.
  165. * init.c (scm_init_guile_1): scm_environments_prehistory requires
  166. storage to be initialized.
  167. 2000-12-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
  168. * eval.c (change_environment, inner_eval, restore_environment):
  169. New functions.
  170. (scm_eval): Bring the global variable that holds the current
  171. environment up to date when entering or leaving the scope of the
  172. evaluated code. Thanks to Matthias Koeppe for the bug report.
  173. 2000-12-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
  174. * numbers.c (scm_init_numbers): Re-introduced bindings for
  175. most-positive-fixnum and most-negative-fixnum as requested by
  176. Mikael Djurfeldt.
  177. 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  178. The variable scm_symbols is made static within symbols.c and
  179. renamed to symbols. The initialization of the symbols hash table
  180. is done in function scm_symbols_prehistory.
  181. * gc.c (scm_init_storage): Don't initialize scm_symbols. Don't
  182. define most-positive-fixnum, most-negative-fixnum and
  183. bignum-radix.
  184. * init.c (scm_init_guile_1): Call scm_symbols_prehistory.
  185. * root.h (scm_symbols): Not in scm_sys_protects any more.
  186. * symbols.c (symbols): Renamed from scm_symbols and made static.
  187. (scm_mem2symbol): scm_symbols is renamed to symbols.
  188. * symbols.[ch] (scm_symbols_prehistory): Added.
  189. 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  190. * gc.c (scm_init_storage), root.h (scm_weak_symhash, scm_symbols):
  191. Removed the former scm_weak_symhash hash table. Added scm_symbols
  192. hash table.
  193. * stacks.c (get_applybody): scm_sym2vcell may return #f.
  194. * symbols.c (scm_mem2symbol): This function is now responsible
  195. for creating symbol objects and storing them in the global
  196. scm_symbols hash table.
  197. (scm_str2symbol): Rewritten in terms of scm_mem2symbol.
  198. (scm_sym2vcell): For system bindings, there is now only one
  199. obarray - scm_symhash. If scm_sym2vcell is called to look up a
  200. symbol that can't be found and shall not be created, #f is
  201. returned. Most callers of scm_sym2vcell have expected this
  202. behaviour anyway.
  203. (scm_intern_obarray_soft): Removed reference to scm_weak_symhash
  204. from comment.
  205. (scm_intern_obarray_soft, scm_sysintern0_no_module_lookup): These
  206. functions are not responsible for symbol creation any more, only
  207. for creation of bindings.
  208. (scm_symbol_value0): Don't use scm_intern_obarray_soft to create
  209. a symbol object.
  210. (scm_symbol_interned_p): scm_weak_symhash is removed.
  211. * symbols.[ch] (scm_builtin_weak_bindings): Removed. There are
  212. no weak bindings any more.
  213. 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  214. * hooks.c (scm_create_hook), script.c
  215. (scm_compile_shell_switches), snarf.h (SCM_VCELL,
  216. SCM_GLOBAL_VCELL, SCM_VCELL_INIT, SCM_GLOBAL_VCELL_INIT): Create
  217. a binding in one go (instead of first creating a vcell and then
  218. setting its cdr).
  219. 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  220. * hash.[ch] (scm_string_hash), symbols.[ch] (scm_string_hash):
  221. Moved function scm_string_hash to hash.c.
  222. 2000-12-11 Marius Vollmer <mvo@zagadka.ping.de>
  223. * gc_os_dep.c (scm_get_stack_base) [MSWIN32]: Added detection of
  224. page size on the w32 architecture. Updated from Boehms gc5.2.
  225. Thanks to Lars J. Aas!
  226. 2000-12-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  227. * debug.c (scm_sym_procname, scm_sym_dots, scm_sym_source,
  228. scm_init_debug), eval.c (scm_sym_dot, scm_sym_arrow, scm_sym_else,
  229. scm_sym_unquote, scm_sym_uq_splicing, scm_sym_enter_frame,
  230. scm_sym_apply_frame, scm_sym_exit_frame, scm_sym_trace,
  231. scm_init_eval), gsubr.c (scm_sym_name, scm_init_gsubr), srcprop.c
  232. (scm_sym_filename, scm_sym_copy, scm_sym_line, scm_sym_column,
  233. scm_sym_breakpoint), variable.c (anonymous_variable_sym):
  234. Initialize symbols by using SCM_(GLOBAL_)?SYMBOL.
  235. * gc.c (scm_i_getenv_int): Moved here from init.c.
  236. * gc.[ch] (scm_init_storage): Read gc configuration environment
  237. variables here, not in init.c.
  238. * init.c (scm_i_getenv_int): Moved to gc.c.
  239. (scm_init_guile_1): Move configuration code to scm_init_storage.
  240. Make sure procprops get initialized early.
  241. * keywords.c (scm_c_make_keyword): Report amount of memory freed
  242. by scm_must_free. Use scm_str2symbol instead of scm_sysintern0.
  243. * options.c (scm_init_opts): Use scm_str2symbol instead of
  244. scm_sysintern0.
  245. 2000-12-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  246. * threads.h (SCM_MUTEXP): Typo: removed extra parenthesis.
  247. 2000-12-08 Keisuke Nishida <kxn30@po.cwru.edu>
  248. * tags.h (SCM_TYP16_PREDICATE): New macro.
  249. * arbiters.c (scm_tc16_arbiter): Typed as scm_bits_t.
  250. (arbiter_print): Renamed from prinarb.
  251. (scm_init_arbiters): Don't use scm_make_smob_type_mfpe.
  252. * async.c (tc16_async): Typed as scm_bits_t.
  253. (SCM_ASYNCP): Use SCM_TYP16_PREDICATE.
  254. (async_mark): Renamed from mark_async.
  255. (scm_init_async): Updated.
  256. * continuations.h (SCM_CONTINUATIONP): Use SCM_TYP16_PREDICATE.
  257. * debug.c (scm_tc16_memoized, scm_tc16_debugobj): Typed as scm_bits_t.
  258. (memoized_print): Renamed from prinmemoized.
  259. (debugobj_print): Renamed from prindebugobj.
  260. (scm_init_debug): Don't use scm_make_smob_type_mfpe.
  261. * debug.h (scm_tc16_memoized, scm_tc16_debugobj): Typed as scm_bits_t.
  262. (SCM_DEBUGOBJP, SCM_MEMOIZEDP): Use SCM_TYP16_PREDICATE.
  263. * dynl.c (scm_tc16_dynamic_obj): Typed as scm_bits_t.
  264. (dynl_obj_mark): Renamed from mark_dynl_obj.
  265. (dynl_obj_print): Renamed from print_dynl_obj.
  266. (scm_dynamic_object_p): Use SCM_TYP16_PREDICATE.
  267. (scm_init_dynamic_linking): Updated.
  268. * dynwind.c (SCM_GUARDSP): Use SCM_TYP16_PREDICATE.
  269. (tc16_guards): Typed as scm_bits_t.
  270. (guards_print): Renamed from printguards.
  271. (scm_init_dynwind): Don't use scm_make_smob_type_mfpe.
  272. * environments.c (scm_tc16_environment, scm_tc16_observer):
  273. Typed as scm_bits_t.
  274. (environment_mark, environment_free, environment_print,
  275. observer_mark, observer_print, leaf_environment_mark,
  276. leaf_environment_free, leaf_environment_print,
  277. eval_environment_mark, eval_environment_free,
  278. eval_environment_print, import_environment_mark,
  279. import_environment_free, import_environment_print,
  280. export_environment_mark, export_environment_free,
  281. export_environment_print): Renamed from mark_environment,
  282. free_environment, print_environment, mark_observer,
  283. print_observer, mark_leaf_environment, free_leaf_environment,
  284. print_leaf_environment, mark_eval_environment,
  285. free_eval_environment, print_eval_environment,
  286. mark_import_environment, free_import_environment,
  287. print_import_environment, mark_export_environment,
  288. free_export_environment, and print_export_environment, respectively.
  289. (free_observer): Removed.
  290. (leaf_environment_funcs, eval_environment_funcs,
  291. import_environment_funcs, export_environment_funcs,
  292. scm_environments_prehistory): Updated.
  293. * environments.h (scm_tc16_environment, scm_tc16_observer):
  294. Typed as scm_bits_t.
  295. * eval.c (scm_tc16_promise): Typed as scm_bits_t.
  296. (promise_print): Renamed from prinprom.
  297. (scm_promise_p): Use SCM_TYP16_PREDICATE.
  298. (scm_init_eval): Updated.
  299. * eval.h (scm_tc16_promise): Typed as scm_bits_t.
  300. * filesys.c (scm_tc16_dir): Typed as scm_bits_t.
  301. (scm_init_filesys): Don't use scm_make_smob_type_mfpe.
  302. * filesys.h (scm_tc16_dir): Typed as scm_bits_t.
  303. * fluids.c (scm_tc16_fluid): Typed as scm_bits_t.
  304. (fluid_print): Renamed from print_fluid.
  305. (scm_init_fluids): Don't use scm_make_smob_type_mfpe.
  306. * fluids.h (scm_tc16_fluid): Typed as scm_bits_t.
  307. * fports.c (fport_print): Renamed from prinfport.
  308. (scm_make_fptob): Updated.
  309. * guardians.c (tc16_guardian): Typed as scm_bits_t.
  310. * hooks.c (scm_tc16_hook): Typed as scm_bits_t.
  311. (hook_print): Renamed from print_hook.
  312. (scm_init_hooks): Updated.
  313. * hooks.h (scm_tc16_hook): Typed as scm_bits_t.
  314. (SCM_HOOKP): Use SCM_TYP16_PREDICATE.
  315. * keywords.c (scm_tc16_keyword): Typed as scm_bits_t.
  316. (keyword_print): Renamed from prin_keyword.
  317. (scm_init_keywords): Don't use scm_make_smob_type_mfpe.
  318. * keywords.h (scm_tc16_keyword): Typed as scm_bits_t.
  319. * macros.c (scm_tc16_macro): Typed as scm_bits_t.
  320. (scm_macro_p, scm_macro_type): Use SCM_TYP16_PREDICATE.
  321. (scm_init_macros): Don't use scm_make_smob_type_mfpe.
  322. * macros.h (scm_tc16_macro): Typed as scm_bits_t.
  323. * mallocs.c (scm_tc16_malloc): Typed as scm_bits_t.
  324. (malloc_free): Renamed from fmalloc.
  325. (malloc_print): Renamed from prinmalloc.
  326. (scm_init_mallocs): Don't use scm_make_smob_type_mfpe.
  327. * mallocs.h (scm_tc16_malloc): Typed as scm_bits_t.
  328. * modules.h (SCM_EVAL_CLOSURE_P): Use SCM_TYP16_PREDICATE.
  329. (scm_tc16_eval_closure): Renamed from scm_eval_closure_tag.
  330. (scm_standard_eval_closure, scm_init_modules): Updated.
  331. * ports.c (scm_tc16_void_port): Typed as scm_bits_t.
  332. * print.c (scm_tc16_port_with_ps): Typed as scm_bits_t.
  333. (port_with_ps_print): Renamed from print_port_with_ps.
  334. (scm_init_print): Updated.
  335. * print.h (scm_tc16_port_with_ps): Typed as scm_bits_t.
  336. (SCM_PORT_WITH_PS_P): Use SCM_TYP16_PREDICATE.
  337. * random.c (scm_tc16_rstate): Typed as scm_bits_t.
  338. (rstate_free): Renamed from free_rstate.
  339. (scm_init_random): Don't use scm_make_smob_type_mfpe.
  340. * random.h (scm_tc16_rstate): Typed as scm_bits_t.
  341. (SCM_RSTATEP): Use SCM_TYP16_PREDICATE.
  342. * regex-posix.c (scm_tc16_regex): Typed as scm_bits_t.
  343. (regex_free): Renamed from free_regex.
  344. (scm_init_regex_posix): Don't use scm_make_smob_type_mfpe.
  345. * regex-posix.h (scm_tc16_regex): Typed as scm_bits_t.
  346. * root.c (scm_tc16_root): Typed as scm_bits_t.
  347. (root_mark): Renamed from mark_root.
  348. (root_print): Renamed from print_root.
  349. (scm_init_root): Updated.
  350. * root.h (scm_tc16_root): Typed as scm_bits_t.
  351. (SCM_ROOTP): Use SCM_TYP16_PREDICATE.
  352. * smob.c (free_print): Renamed from freeprint.
  353. (scm_smob_prehistory): Don't use scm_make_smob_type_mfpe.
  354. * smob.h (SCM_SMOB_PREDICATE): Use SCM_TYP16_PREDICATE.
  355. * srcprop.c (scm_tc16_srcprops): Typed as scm_bits_t.
  356. (srcprops_mark): Renamed from marksrcprops.
  357. (srcprops_free): Renamed from freesrcprops.
  358. (srcprops_print): Renamed from prinsrcprops.
  359. (scm_init_srcprop): Don't use scm_make_smob_type_mfpe.
  360. * srcprop.h (scm_tc16_srcprops): Typed as scm_bits_t.
  361. (SRCPROPSP): Use SCM_TYP16_PREDICATE.
  362. * threads.c (scm_tc16_thread, scm_tc16_mutex, scm_tc16_condvar):
  363. Typed as scm_bits_t.
  364. * threads.h (scm_tc16_thread, scm_tc16_mutex, scm_tc16_condvar):
  365. Typed as scm_bits_t.
  366. (SCM_THREADP, SCM_MUTEXP, SCM_CONDVARP): Use SCM_TYP16_PREDICATE.
  367. * throw.c (tc16_jmpbuffer): Renamed from scm_tc16_jmpbuffer.
  368. (make_jmpbuf): Updated.
  369. (tc16_lazy_catch): Typed as scm_bits_t.
  370. (SCM_JMPBUFP, SCM_LAZY_CATCH_P): Use SCM_TYP16_PREDICATE.
  371. (jmpbuffer_print): Renamed from printjb.
  372. (lazy_catch_print): Renamed from print_lazy_catch.
  373. (scm_init_throw): Don't use scm_make_smob_type_mfpe.
  374. * unif.c (scm_tc16_array): Typed as scm_bits_t.
  375. (array_mark): Renamed from markra.
  376. (array_free): Renamed from freera.
  377. (scm_init_unif): Don't use scm_make_smob_type_mfpe.
  378. * unif.h (scm_tc16_array): Typed as scm_bits_t.
  379. (SCM_ARRAYP): Use SCM_TYP16_PREDICATE.
  380. * validate.h (SCM_VALIDATE_SMOB): Use SCM_TYP16_PREDICATE.
  381. * variable.c (scm_tc16_variable): Typed as scm_bits_t.
  382. (variable_print): Renamed from prin_var.
  383. (variable_equalp): Renamed from var_equal.
  384. (scm_markvar): Removed.
  385. (scm_init_variable): Don't use scm_make_smob_type_mfpe.
  386. * variable.h (scm_tc16_variable): Typed as scm_bits_t.
  387. 2000-12-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  388. * feature.c (scm_add_feature), gh_data.c (gh_symbol2scm), goops.c
  389. (scm_sys_prep_layout_x, scm_make_class, scm_add_slot,
  390. scm_init_goops), load.c (init_build_info), print.c
  391. (scm_init_print), read.c (scm_lreadr), snarf.h (SCM_SYMBOL,
  392. SCM_GLOBAL_SYMBOL), stacks.c (scm_init_stacks), struct.c
  393. (scm_make_struct_layout), symbols.c (scm_sysintern0,
  394. scm_string_to_symbol, scm_gensym), throw.c
  395. (scm_handle_by_message): Use scm_mem2symbol or scm_str2symbol
  396. instead of scm_intern_* to create a symbol object.
  397. * goops.c (Intern): Removed.
  398. (CALL_GF1, CALL_GF2, CALL_GF3, CALL_GF4, build_class_class_slots,
  399. create_basic_classes, scm_class_name, scm_class_direct_supers,
  400. scm_class_direct_slots, scm_class_direct_subclasses,
  401. scm_class_direct_methods, scm_class_precedence_list,
  402. scm_class_slots, scm_class_environment,
  403. scm_generic_function_methods, scm_method_generic_function,
  404. scm_method_specializers, scm_method_procedure,
  405. scm_accessor_method_slot_definition, purgatory, scm_make,
  406. make_stdcls, create_standard_classes, make_class_from_template,
  407. scm_make_class): Replaced calls to Intern with calls to
  408. scm_str2symbol.
  409. * ramap.c (init_raprocs): Use scm_symbol_binding instead of
  410. scm_intern.
  411. * symbols.c (scm_sym2vcell): Add a bogus return to avoid compiler
  412. warnings.
  413. * unif.c (scm_array_prototype): Fix prototype return value for
  414. svects and llvects.
  415. 2000-12-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  416. * symbols.[ch] (scm_mem2symbol, scm_str2symbol): New functions.
  417. These shall replace all those calls to scm_intern... which are
  418. only required to create a scheme symbol from a C string or a field
  419. of chars.
  420. 2000-12-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  421. * environments.c (DEFAULT_OBARRAY_SIZE), gc.c
  422. (DEFAULT_SYMHASH_SIZE): Added to locally determine arbitrary
  423. default values for obarrays, thus removing the dependency from
  424. scm_symhash_dim.
  425. * environments.c (scm_make_leaf_environment,
  426. scm_make_eval_environment), gc.c (scm_init_storage): Don't use
  427. scm_symhash_dim.
  428. * symbols.c (NUM_HASH_BUCKETS), symbols.[ch] (scm_symhash_dim):
  429. Removed.
  430. * symbols.c (scm_sym2vcell, scm_sysintern0_no_module_lookup):
  431. Eliminate a redundant SCM_IMP test.
  432. (scm_sym2vcell, scm_sysintern0_no_module_lookup):
  433. Don't assume a fixed obarray size any more.
  434. 2000-12-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
  435. * gc.c (scm_init_gc): gc_async is already protected from gc,
  436. namely via scm_asyncs. Thanks to Keisuke Nishida for pointing
  437. this out.
  438. 2000-12-07 Keisuke Nishida <kxn30@po.cwru.edu>
  439. * smob.h (scm_smob_apply_0, scm_smob_apply_1, scm_smob_apply_2,
  440. scm_smob_apply_3): Removed declarations.
  441. (scm_set_smob_apply): Takes unsigned integers.
  442. (scm_make_smob_type_mfpe, scm_set_smob_mfpe): Deprecated.
  443. * smob.c (scm_smob_apply_0_000, scm_smob_apply_1_010,
  444. scm_smob_apply_2_020): Removed.
  445. (scm_set_smob_apply): Takes unsigned integers + some optimization.
  446. (Thanks to Dirk Herrmann)
  447. (scm_make_smob_type_mfpe, scm_set_smob_mfpe): Deprecated.
  448. 2000-12-07 Keisuke Nishida <kxn30@po.cwru.edu>
  449. * smob.h (SCM_SMOB_APPLICABLE_P, SCM_SMOB_APPLY_0,
  450. SCM_SMOB_APPLY_1, SCM_SMOB_APPLY_2, SCM_SMOB_APPLY_3): New macros.
  451. * eval.c (SCM_CEVAL, SCM_APPLY): Use macros above.
  452. * procprop.c (scm_i_procedure_arity): Ditto.
  453. * smob.c (scm_make_smob_type): Initialize gsubr_type.
  454. 2000-12-06 Keisuke Nishida <kxn30@po.cwru.edu>
  455. * smob.h (scm_smob_descriptor): New fields `apply_0', `apply_1',
  456. `apply_2', and `apply_3'.
  457. * smob.c (scm_make_smob_type): Init new fields.
  458. (SCM_SMOB_APPLY0, SCM_SMOB_APPLY1, SCM_SMOB_APPLY2, SCM_SMOB_APPLY3):
  459. New macros.
  460. (scm_smob_apply_0_000, scm_smob_apply_0_010, scm_smob_apply_0_020,
  461. scm_smob_apply_0_030, scm_smob_apply_0_001, scm_smob_apply_0_011,
  462. scm_smob_apply_0_021, scm_smob_apply_0_error,
  463. scm_smob_apply_1_010, scm_smob_apply_1_020, scm_smob_apply_1_030,
  464. scm_smob_apply_1_001, scm_smob_apply_1_011, scm_smob_apply_1_021,
  465. scm_smob_apply_1_error,
  466. scm_smob_apply_2_020, scm_smob_apply_2_030, scm_smob_apply_2_001,
  467. scm_smob_apply_2_011, scm_smob_apply_2_021, scm_smob_apply_2_error,
  468. scm_smob_apply_3_030, scm_smob_apply_3_001, scm_smob_apply_3_011,
  469. scm_smob_apply_3_021, scm_smob_apply_3_error): New functions.
  470. (scm_set_smob_apply): Set new fields to the above functions.
  471. (scm_smob_apply_0, scm_smob_apply_1, scm_smob_apply_2,
  472. scm_smob_apply_3): Removed.
  473. * eval.c (SCM_CEVAL, SCM_APPLY): Rewrote smob calls.
  474. 2000-12-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  475. * gc.c (scm_init_gc): gc_async must be protected from gc. I
  476. wonder why we never ran into problems up to now...
  477. 2000-12-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  478. * gc.c (scm_init_gc): Don't create a binding for %gc-thunk.
  479. 2000-12-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  480. * gsubr.c: No need to include vector.h.
  481. (scm_gsubr_apply): Use SCM_GSUBR_MAX instead of hard-coded value.
  482. Added FUNC_NAME wrapping. Improved (temporarily?) disabled
  483. debugging code. Replaced SCM_IMP with SCM_NULLP. Eliminated call
  484. to ASRTGO.
  485. (scm_init_gsubr): Eliminated outdated comment.
  486. 2000-12-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  487. * async.c (SCM_ASYNCP): Use SCM_TYP16 instead of SCM_GCTYP16.
  488. * eval.c (scm_m_vref, scm_m_vset, scm_m_define, SCM_CEVAL,
  489. SCM_APPLY, scm_copy_tree): Remove commented code.
  490. (SCM_CEVAL, SCM_APPLY): Remove #ifdef CCLO conditionals. Without
  491. CCLO being defined, guile would not compile at all anyway.
  492. * gc.h (SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK, SCM_GCTYP16,
  493. SCM_GCCDR): Deprecated.
  494. * gdbint.c (unmark_port, remark_port, gdb_read), procs.c
  495. (scm_mark_subr_table): Use SCM_(SET|CLR)?GCMARK(P)? instead of
  496. SCM_(SET|CLR)?GC8MARK(P)?.
  497. * gh_data.c (gh_scm2char): Remove bogus ';'.
  498. * tags.h: Removed comment about GCTYP16 macro.
  499. * weaks.c (scm_mark_weak_vector_spines): Use SCM_CDR instead of
  500. SCM_GCCDR.
  501. 2000-12-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  502. * print.c (scm_iprin1): Use scm_tc3_* codes instead of hardcoded
  503. values. Added comment about tc3 codes that may appear in
  504. immediates. Got rid of one goto command.
  505. 2000-12-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  506. * dynl.c (sysdep_dynl_link): Improved error reporting.
  507. * guardians.c: Changed the representation from a compiled closure
  508. to an applicable smob.
  509. (guard1, CCLO_G): Removed.
  510. (guard, g_mark, g_print, scm_tc16_guardian, scm_guardian_gc_init,
  511. scm_guardian_zombify): Renamed to guardian_apply, guardian_mark,
  512. guardian_print, tc16_guardian, guardian_gc_init and
  513. guardian_zombify, respectively.
  514. (guardian_free): Added, fixes a memory leak.
  515. (guardian_print): Don't use sprintf hack.
  516. (guardian_apply, scm_guard, scm_get_one_zombie,
  517. scm_make_guardian): Don't use a compiled closure.
  518. (guardian_zombify): Prefer !SCM_NULLP over SCM_NIMP. No need to
  519. use SCM_GCCDR any more. Simplified loop condition.
  520. (scm_init_guardian): Don't use scm_make_smob_type_mfpe for smob
  521. initialization. Initialize applicable smob.
  522. 2000-12-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
  523. * chars.c (scm_char_eq_p): Minor cleanup/optimization.
  524. * gc.c (scm_gc_mark): Don't use SCM_VELTS for CCLOs.
  525. * procprop.c (scm_i_procedure_arity): Separate handling of smobs
  526. and CCLOs.
  527. 2000-12-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
  528. * tags.h (scm_tc_free_cell, scm_tc16_big, scm_tc16_real,
  529. scm_tc16_complex): Eliminate hard-coded value of scm_tc7_smob.
  530. 2000-12-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  531. * list.[ch] (scm_c_memq): Added as a fast C level alternative for
  532. scm_memq for the case that the list parameter is known to be a
  533. proper list.
  534. * goops.c (filter_cpl, remove_duplicate_slots, applicablep),
  535. goops.h (SCM_SUBCLASSP): Use scm_c_memq if we are sure that we
  536. pass proper lists.
  537. 2000-12-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  538. * goops.c (scm_sys_compute_slots, scm_i_get_keyword,
  539. scm_get_keyword, scm_slot_ref_using_class,
  540. scm_slot_set_using_class_x): Update the code to match guile's
  541. current style (e. g. using SCM_DEFINE, adding comments, removing
  542. unnecessary SCM_NIMP tests etc.).
  543. 2000-11-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  544. Thanks to Julian Satchell for the bug report:
  545. * coop-threads.c (scm_join_thread): Check whether a thread is
  546. finished before trying to join it.
  547. * coop.c (coop_aborthelp, coop_join): When a thread finishes, its
  548. stack base is not set to NULL any more.
  549. 2000-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  550. * strop.c (scm_i_index): Removed outdated comment.
  551. 2000-11-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  552. * struct.c (scm_struct_ref, scm_struct_set_x), symbols.c
  553. (scm_intern_obarray_soft), symbols.h (SCM_ROUCHARS): Eliminate
  554. use of SCM_SYMBOL_UCHARS by using chars instead of unsigned
  555. chars.
  556. (SCM_SYMBOL_UCHARS): Removed.
  557. 2000-11-26 Gary Houston <ghouston@arglist.com>
  558. * reimplementation of values, call-with-values as primitives:
  559. * values.c, values.h: new files. use a struct to contain multiple
  560. values, similar to the previous Scheme-level implementation.
  561. * Makefile.am: add values.c, values.h, values.x.
  562. * continuations.c (continuation_apply): support R5RS multiple value
  563. continuations.
  564. * init.c: call scm_init_values.
  565. * struct.h: define SCM_SET_STRUCT_PRINTER.
  566. 2000-11-25 Gary Houston <ghouston@arglist.com>
  567. * use an applicable SMOB to represent continuations, instead of a
  568. custom tc7 type. This will make it easier to support R5RS
  569. multiple value continuations, without the use of a Scheme-level
  570. wrapper.
  571. * continuations.c (scm_tc16_continuation, continuation_mark,
  572. continuation_free, continuation_print, continuation_apply):
  573. new SMOB support.
  574. (scm_make_continuation): new procedure, replaces scm_make_cont
  575. with a different interface.
  576. (copy_stack_and_call, scm_dynthrow, scm_init_continuations): rewritten.
  577. (CHEAP_CONTINUATIONS): removed non-working code completely.
  578. (scm_call_continuation): removed.
  579. * continuations.h (struct scm_contregs): add num_stack_items and
  580. stack fields. previously stack was stored following this struct:
  581. use a tail array instead.
  582. (SCM_CONTINUATIONP): new macro.
  583. (SCM_CONTINUATION_LENGTH, SCM_SET_CONTINUATION_LENGTH):
  584. rewritten.
  585. (SCM_SET_CONTREGS): removed.
  586. * tags.h: removed scm_tc7_contin (was tag 61).
  587. * debug.c, gc.c, hash.c, print.c, procprop.c, procs.c:
  588. removed scm_tc7_contin support.
  589. * eval.c: use scm_make_continuation instead of scm_make_cont.
  590. don't set jump buffers here. remove scm_tc7_contin support.
  591. * init.c, root.c: create SMOB continuation for rootcont instead
  592. of scm_tc7_contin. call scm_init_continuations before
  593. scm_init_root.
  594. * root.c: remove support for static jmpbuf. It's not used by
  595. default and I broke it. create SMOB continuation for rootcont.
  596. * stacks.c: use SCM_CONTINUATIONP.
  597. 2000-11-24 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
  598. * goops.c (filter_cpl, remove_duplicate_slots), goops.h
  599. (SCM_SUBCLASSP): Fix previous change: In contrast to
  600. scm_sloppy_memq the function scm_memq returns #f if the
  601. object was not contained in the list.
  602. 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
  603. * goops.c: Include validate.h.
  604. (DEFVAR, scm_add_method): Don't use deprecated scm_eval2.
  605. (scm_sys_fast_slot_ref, scm_sys_fast_slot_set_x,
  606. scm_m_atdispatch): Provide FUNC_NAME definition. Don't use
  607. deprecated SCM_OUTOFRANGE macro.
  608. (scm_sloppy_num2ulong, scm_sys_logand): Removed. Guile's logand
  609. function now provides the desired behaviour.
  610. * goops.c (filter_cpl, remove_duplicate_slots), goops.h
  611. (SCM_SUBCLASSP): Don't use deprecated scm_sloppy_memq.
  612. 2000-11-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  613. * symbols.h (SCM_LENGTH_MAX): Deprecated.
  614. * unif.c (scm_make_uve): Use SCM_BITVECTOR_MAX_LENGTH and
  615. SCM_UVECTOR_MAX_LENGTH instead of SCM_LENGTH_MAX. Postpone length
  616. checks for strings and vectors to their constructors. Eliminate
  617. redundant SCM_IMP test.
  618. (scm_dimensions_to_uniform_array): Postpone length checks to
  619. scm_make_uve.
  620. * unif.h (SCM_BITVECTOR_MAX_LENGTH, SCM_UVECTOR_MAX_LENGTH):
  621. Added.
  622. 2000-11-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  623. * gh_data.c (makvect), numbers.c (scm_mkbig, scm_adjbig),
  624. strings.c (scm_makstr, scm_take_str), symbols.c
  625. (scm_intern_obarray_soft, scm_sysintern0_no_module_lookup), unif.c
  626. (scm_make_uve), vectors.c (scm_make_vector): Use appropriate
  627. SCM_SET_<type>_(CHARS|BASE) macro instead of SCM_SETCHARS.
  628. * numbers.h (SCM_SET_BIGNUM_BASE), strings.h
  629. (SCM_SET_STRING_CHARS), symbols.h (SCM_SET_SYMBOL_CHARS), unif.h
  630. (SCM_SET_UVECTOR_BASE, SCM_SET_BITVECTOR_BASE), vectors.h
  631. (SCM_SET_VECTOR_BASE): Added.
  632. * symbols.c (SCM_SETCHARS): Deprecated.
  633. 2000-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  634. * gc.c (scm_gc_sweep), unif.c (scm_make_uve): Don't allocate or
  635. free memory for empty bitvectors.
  636. * gh_data.c (makvect), strings.c (scm_makstr, scm_take_str),
  637. symbols.c (scm_intern_obarray_soft,
  638. scm_sysintern0_no_module_lookup), unif.c (scm_make_uve): Use
  639. appropriate SCM_SET_<type>_LENGTH macro instead of SCM_SETLENGTH.
  640. * strings.h (SCM_SET_STRING_LENGTH), symbols.h
  641. (SCM_SET_SYMBOL_LENGTH), unif.h (SCM_SET_UVECTOR_LENGTH,
  642. SCM_SET_BITVECTOR_LENGTH): Added.
  643. * symbols.h (SCM_SETLENGTH): Deprecated.
  644. 2000-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  645. * continuations.c (scm_make_cont): Use
  646. SCM_SET_CONTINUATION_LENGTH instead of SCM_SETLENGTH.
  647. * continuations.h (SCM_SET_CONTINUATION_LENGTH): Added.
  648. 2000-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  649. * vectors.c (scm_make_vector), weaks.c (scm_make_weak_vector):
  650. Use SCM_SET_VECTOR_LENGTH instead of SCM_SETLENGTH.
  651. * vectors.h (SCM_SET_VECTOR_LENGTH): Added.
  652. 2000-11-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  653. * dynl.c (scm_make_argv_from_stringlist), filesys.c (scm_dirname,
  654. scm_basename), gh_data.c (gh_scm2newstr, gh_get_substr), hash.c
  655. (scm_hasher), load.c (scm_parse_path, scm_search_path,
  656. scm_primitive_load_path), numbers.c (scm_string_to_number),
  657. ports.c (scm_unread_string), posix.c (scm_convert_exec_args,
  658. environ_list_to_c, scm_putenv), print.c (scm_iprin1,
  659. scm_simple_format), random.c (scm_seed_to_random_state), socket.c
  660. (scm_fill_sockaddr, scm_send, scm_sendto), strings.c
  661. (scm_string_ref, scm_substring, scm_string_append), strings.h
  662. (SCM_STRING_COERCE_0TERMINATION_X), strop.c (scm_i_index,
  663. scm_string_to_list, scm_string_copy), strorder.c
  664. (scm_string_equal_p, scm_string_ci_equal_p, scm_string_less_p,
  665. scm_string_ci_less_p), strports.c (scm_mkstrport), struct.c
  666. (scm_make_struct_layout), symbols.c (scm_string_to_symbol,
  667. scm_string_to_obarray_symbol, scm_gensym, scm_gentemp): Replace
  668. calls to SCM_ROU?CHARS with the corresponding call to
  669. SCM_STRING_U?CHARS.
  670. * symbols.h (SCM_ROCHARS, SCM_ROUCHARS): Deprecated.
  671. 2000-11-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  672. * ports.c: Include eval.h.
  673. * strings.c (scm_string_set_x), strings.h (SCM_RWSTRINGP),
  674. validate.h (SCM_VALIDATE_RWSTRING): Deprecate SCM_RWSTRINGP and
  675. SCM_VALIDATE_RWSTRING.
  676. * strings.h (SCM_STRING_UCHARS, SCM_STRING_CHARS): Handle strings
  677. and substrings uniformly. However, substring handling is
  678. deprecated.
  679. (SCM_RWSTRINGP): Deprecated.
  680. 2000-11-18 Gary Houston <ghouston@arglist.com>
  681. * Makefile.am (.c.x): don't prefix ".:" to $PATH when running
  682. guile-doc-snarf. it doesn't seem to do anything useful, but would
  683. fail if $PATH contained whitespace. Thanks to Lars J. Aas.
  684. 2000-11-17 Marius Vollmer <mvo@zagadka.ping.de>
  685. * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
  686. continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c,
  687. environments.c, eq.c, error.c, eval.c, evalext.c, feature.c,
  688. filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c,
  689. hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c,
  690. list.c, load.c, macros.c, modules.c, net_db.c, numbers.c,
  691. objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c,
  692. print.c, procprop.c, procs.c, properties.c, ramap.c, random.c,
  693. read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c,
  694. socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c,
  695. strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c,
  696. tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c,
  697. version.c, vports.c, weaks.c: Makes sure the snarfer output
  698. inclusion is disabled when the snarfer is run on the file. Thanks
  699. to Lars J. Aas!
  700. * Makefile.am: Install guile-procedures.txt in version-specific
  701. directory to enable multiple installed guile versions. Suggested
  702. by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
  703. 2000-11-13 Gary Houston <ghouston@arglist.com>
  704. * fports.c: include gc.h.
  705. (fport_flush, fport_close): silently ignore I/O errors when
  706. closing a port during gc. it's better than aborting in scm_error.
  707. * throw.c (scm_handle_by_message): remove obsolete comment.
  708. 2000-11-12 Gary Houston <ghouston@arglist.com>
  709. * fports.c (scm_open_file): fix the 'b' option. Thanks
  710. to George Caswell.
  711. 2000-11-09 Gary Houston <ghouston@arglist.com>
  712. * ports.c, ports.h (scm_close_all_ports_except): deprecated.
  713. use port-for-each. Updated its docstring.
  714. 2000-11-07 Gary Houston <ghouston@arglist.com>
  715. * ports.c (scm_port_for_each): new proc. implements port-for-each,
  716. which applies a procedure to each port in the port table.
  717. ports.h: declare scm_port_for_each.
  718. * ioext.c (scm_dup2): new proc. implements "dup2" which is a simple
  719. wrapper for the dup2 system call (unlike dup->fdes or
  720. primitive-move->fdes).
  721. * ioext.h: declare scm_dup2.
  722. * filesys.c (scm_close_fdes): new proc. implements "close-fdes"
  723. which is a simple wrapper for close system call (unlike scm_close).
  724. * filesys.h: declare for scm_close_fdes.
  725. 2000-11-06 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  726. * eval.c (SCM_IM_DISPATCH), objects.c (scm_mcache_lookup_cmethod):
  727. Count n_specialized + 1 turns before letting a match through.
  728. * goops.c (scm_sys_invalidate_method_cache_x): Don't convert
  729. scm_si_n_specialized from fixnum and don't take absolute value.
  730. (Thanks to Lars J. Aas.)
  731. 2000-11-04 Gary Houston <ghouston@arglist.com>
  732. * ports.c (scm_port_p): new function, implements "port?" which
  733. is mentioned in R5RS.
  734. * ports.h: declare scm_port_p.
  735. 2000-11-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  736. * backtrace.c (display_expression, display_error_body), fports.c
  737. (prinfport), print.c (scm_iprin1): Test for symbols and strings
  738. explicitly instead of using SCM_ROSTRINGP.
  739. * backtrace.c (scm_display_error_message): Don't pass a symbol to
  740. scm_simple_format. Prefer high-level output functions.
  741. (display_error_body): When displaying procedure names, give
  742. preference to the name passed as a parameter. Only if none is
  743. given extract a name from the stack information.
  744. * fports.c (scm_fdes_to_port, prinfport), gc.c (scm_gc_mark),
  745. ports.c (scm_port_filename, scm_set_port_filename_x): Use
  746. SCM_(SET_)?FILENAME.
  747. * gh_data.c (gh_set_substr, gh_scm2newstr, gh_get_substr,
  748. gh_symbol2newstr): Use scm_remember instead of a pair of calls to
  749. scm_protect/unprotect_object.
  750. * goops.c (make_struct_class), objects.c (scm_class_of): Struct
  751. table names are symbols.
  752. * ports.h (SCM_SET_FILENAME): Added.
  753. * print.c (scm_iprin1): Don't use scm_puts to write symbols or
  754. strings in order to treat substrings right. Reposition call to
  755. scm_remember after the last use of object's data.
  756. (scm_simple_format): Treat messages that are substrings right.
  757. * symbols.h (SCM_ROSTRINGP): Deprecated.
  758. 2000-11-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  759. * environments.c (obarray_replace, obarray_retrieve,
  760. obarray_remove): Don't use '==' to compare SCM objects.
  761. * posix.c (scm_getgroups): Don't create a redundant string.
  762. 2000-11-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  763. * symbols.c (scm_sym2vcell, scm_sym2ovcell_soft,
  764. scm_intern_symbol, scm_unintern_symbol): Symbol objects already
  765. hold their hash values, no need to recompute them.
  766. (scm_intern_obarray_soft): Speed up search for a matching symbol
  767. by comparing the hash values first.
  768. 2000-10-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  769. * unif.c (scm_make_uve, scm_dimensions_to_uniform_array): Don't
  770. allow vectors longer than SCM_LENGTH_MAX. This removes the
  771. SCM_HUGE_LENGTH trick, i. e. storing a vector length greater than
  772. SCM_LENGTH_MAX at the beginning of the vector's memory. Since not
  773. all of guile's code was implemented to be aware of this trick, it
  774. is unlikely that it was used anyway. We can implement such a
  775. feature more cleanly by using double cells for uniform vector
  776. types.
  777. (scm_shap2ra): Replace SCM_IMP and SCM_NIMP tests by more
  778. straightforward predicates.
  779. (scm_dimensions_to_uniform_array): Require that for dimensions
  780. given as lower-bound/upper-bound pairs the upper-bound is never
  781. less than the lower bound.
  782. 2000-10-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
  783. * dynl.c (scm_dynamic_link, scm_dynamic_func, scm_dynamic_call,
  784. scm_dynamic_args_call), filesys.c (scm_chown, scm_chmod,
  785. scm_open_fdes, scm_stat, scm_link, scm_rename, scm_delete_file,
  786. scm_mkdir, scm_rmdir, scm_opendir, scm_chdir, scm_symlink,
  787. scm_readlink, scm_lstat, scm_copy_file), fports.c (scm_open_file),
  788. ioext.c (scm_read_delimited_x, scm_fdopen), load.c
  789. (scm_primitive_load, scm_parse_path, scm_search_path,
  790. scm_sys_search_load_path, scm_primitive_load_path), net_db.c
  791. (scm_inet_aton, scm_gethost, scm_getnet, scm_getproto,
  792. scm_getserv), numbers.c (scm_string_to_number), ports.c
  793. (scm_truncate_file, scm_sys_make_void_port), posix.c
  794. (scm_getpwuid, scm_getgrgid, scm_execl, scm_execlp,
  795. environ_list_to_c, scm_execle, scm_utime, scm_access,
  796. scm_setlocale, scm_mknod), regex-posix.c (scm_make_regexp),
  797. simpos.c (scm_system, scm_getenv), socket.c (scm_fill_sockaddr,
  798. scm_send, scm_sendto), stime.c (scm_strftime, scm_strptime),
  799. strop.c (scm_i_index, scm_string_null_p, scm_string_to_list),
  800. strports.c (scm_mkstrport), symbols.c
  801. (scm_string_to_obarray_symbol), vports.c (scm_make_soft_port):
  802. Don't accept symbols as input parameters. Use SCM_STRING_LENGTH
  803. instead of SCM_ROLENGTH.
  804. * dynl.c (scm_dynamic_link, scm_dynamic_func), error.c
  805. (scm_error_scm), filesys.c (scm_chown, scm_chmod, scm_open_fdes,
  806. scm_stat, scm_link, scm_rename, scm_delete_file, scm_mkdir,
  807. scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
  808. scm_lstat, scm_copy_file), fports.c (scm_open_file), ioext.c
  809. (scm_fdopen), net_db.c (scm_inet_aton, scm_gethost, scm_getnet,
  810. scm_getproto, scm_getserv), ports.c (scm_truncate_file,
  811. scm_sys_make_void_port), posix.c (scm_getpwuid, scm_getgrgid,
  812. scm_execl, scm_execlp, scm_execle, scm_utime, scm_access,
  813. scm_setlocale, scm_mknod), regex-posix.c (scm_make_regexp,
  814. scm_regexp_exec), simpos.c (scm_system, scm_getenv), stime.c
  815. (setzone, scm_strftime, scm_strptime), vports.c
  816. (scm_make_soft_port): Use SCM_STRING_COERCE_0TERMINATION_X to
  817. make sure the characters of a string are followed by a \0.
  818. Further, use SCM_STRING_CHARS instead of SCM_ROCHARS on the
  819. resulting string.
  820. * dynl.c (scm_make_argv_from_stringlist), posix.c
  821. (scm_convert_exec_args): Aligned to match each other.
  822. * dynl.c (scm_coerce_rostring): Removed.
  823. (scm_dynamic_func): Changed the comment to reflect that the
  824. function name has to be a string. Further, hide implementation
  825. details from the scheme comment.
  826. * error (scm_error_scm): Don't accept a symbol as message
  827. parameter. Fix substring handling.
  828. * posix.c (environ_list_to_c): Use memcpy to copy environment
  829. strings. Handle substrings which don't have a trailing \0.
  830. * symbols.h (SCM_LENGTH, SCM_ROLENGTH, SCM_SUBSTRP,
  831. SCM_SUBSTR_STR, SCM_SUBSTR_OFFSET, SCM_COERCE_SUBSTR):
  832. Deprecated.
  833. * unif.h (SCM_HUGE_LENGTH): Deprecated.
  834. * validate.h (SCM_VALIDATE_ROSTRING, SCM_VALIDATE_ROSTRING_COPY,
  835. SCM_VALIDATE_NULLORROSTRING_COPY): Deprecated.
  836. 2000-10-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  837. * random.c: Include unif.h.
  838. * strings.h (SCM_STRING_COERCE_0TERMINATION_X): Added. This is
  839. intended to replace the macro SCM_COERCE_SUBSTR. Such a macro
  840. will be necessary, even after copy-on-write strings will be added
  841. to guile, but the current naming is inappropriate.
  842. * strorder.c (scm_string_equal_p, scm_string_ci_equal_p,
  843. scm_string_less_p, scm_string_ci_less_p): Don't accept symbols as
  844. input parameters. Further, the functions that test for equality
  845. are rewritten to compare from back to front, the others are also a
  846. little bit more polished.
  847. 2000-10-25 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  848. This change merges the GOOPS code into Guile. However, GOOPS
  849. is still not initialized until someone asks for the module.
  850. We need to optimize GOOPS initialization time before initializing
  851. it together with the rest of libguile. We also need to add the
  852. C API + primitive methods. Then we can start using it to
  853. modularize Guile, implement a real exception system etc.
  854. * goops.c, objects.c, objects.h, eval.c (scm_make_extended_class,
  855. scm_make_port_classes, scm_change_object_class,
  856. scm_memoize_method): Changed to ordinary functions (was plugin
  857. slots).
  858. * goops.c (wrap_init, scm_wrap_object): Unconditionally use
  859. SCM_STRUCT_GC_CHAIN.
  860. (scm_goops_version): Removed.
  861. (scm_oldfmt): and all uses of it: Removed.
  862. (scm_shared_array_root, scm_shared_array_offset,
  863. scm_shared_array_increments): Removed.
  864. (scm_init_goops): No need to support two arg mutex init.
  865. Removed #include "versiondat.h", #include "goops.h".
  866. * goops.h: Removed various superfluous conditions.
  867. Renamed class --> cls, new --> newinst in order to accomodate
  868. C++.
  869. * init.c (scm_init_guile_1): Call the goops module registration
  870. function.
  871. Added #include "libguile/goops.h".
  872. * Makefile.am (libguile_la_SOURCES): Added goops.c
  873. (DOT_X_FILES): Added goops.x
  874. (DOT_DOC_FILES): Added goops.doc
  875. (modinclude_HEADERS): Added goops.h
  876. 2000-10-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  877. * gc.c (scm_igc): Remove references to scm_vector_set_length_x.
  878. (scm_gc_sweep): SCM_CONTREGS is never NULL.
  879. * gc.c (scm_gc_sweep), vectors.c (scm_make_vector): Don't
  880. allocate/free memory for zero length vectors.
  881. * vectors.[ch] (scm_vector_set_length_x): Deprecated.
  882. 2000-10-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  883. * alist.c (scm_assq_ref): Add a suggestion about how to deal with
  884. this function when the API gets reviewed.
  885. * async.c (SET_ASYNC_GOT_IT): Use SCM_TYP16 instead of doing bit
  886. operations directly.
  887. * dynl.c (scm_coerce_rostring), filesys.c (scm_link,
  888. scm_copy_file), fports (scm_open_file), hash.c (scm_hasher),
  889. posix.c (scm_getpwuid), print.c (scm_iprin1), simpos.c
  890. (scm_system), strings.c (scm_string_ref, scm_substring,
  891. scm_string_append), strop.c (scm_string_copy), struct.c
  892. (scm_make_struct_layout), symbols.c (scm_gensym, scm_gentemp),
  893. symbols.h (SCM_COERCE_SUBSTR): Use SCM_STRING_LENGTH instead of
  894. SCM_ROLENGTH if the object is known to be a string or substring.
  895. * eval.c (scm_lookupcar): Use SCM_ITAG7 instead of doing bit
  896. operations directly.
  897. * filesys.c (scm_dirname, scm_basename): Don't create shared
  898. substrings as these are going to disappear from guile.
  899. * gc.c (scm_gc_sweep): Use SCM_UVECTOR_LENGTH instead of
  900. SCM_HUGE_LENGTH. (The SCM_HUGE_LENGTH mechanism does not work
  901. correctly anyway.)
  902. * gc.h (SCM_FREEP, SCM_NFREEP): Deprecated.
  903. * read.c (scm_flush_ws): Don't compare SCM values directly.
  904. * root.c (scm_make_root), root.h (scm_root_state): Removed
  905. system_transformer and top_level_lookup_closure_var from struct.
  906. (Since eval is now R5RS, binary compatibility is not granted
  907. anyway.)
  908. * simpos.c (scm_system): Fix condition.
  909. * strings.c (scm_string_length, scm_string_ref, scm_substring,
  910. scm_string_append), strop.c (scm_string_copy), struct.c
  911. (scm_make_struct_layout, scm_make_vtable_vtable), symbols.c
  912. (scm_gensym, scm_gentemp): Replace SCM_VALIDATE_STRINGORSUBSTR
  913. with SCM_VALIDATE_STRING, since they do the same thing.
  914. * strings.h (scm_make_shared_substring): Deprecated.
  915. * tags.h (SCM_ITAG7): Added.
  916. * validated.h (SCM_VALIDATE_STRINGORSUBSTR): Deprecated.
  917. 2000-10-20 Marius Vollmer <mvo@zagadka.ping.de>
  918. * init.c (scm_init_guile_1, invoke_main_func): Call
  919. scm_load_startup_files in scm_init_guile_1, not in
  920. invoke_main_func.
  921. 2000-10-18 Marius Vollmer <mvo@zagadka.ping.de>
  922. * print.c (grow_ref_stack): Pass a INUM to scm_make_vector as the
  923. size, not a naked int. Thanks to Brad Knotwell!
  924. * gc_os_dep.c (GC_noop1, GC_bool, TRUE, FALSE, VOLATILE):
  925. Definitions copied from Boehm collector.
  926. 2000-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
  927. * list.[ch] (scm_sloppy_memq, scm_sloppy_memv, scm_sloppy_member):
  928. Deprecated.
  929. (scm_memq, scm_memv, scm_member): Inline the sloppy code.
  930. 2000-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  931. * alloca.c: Fixed include file path. Thanks to Bruce Korb for
  932. the bug report.
  933. 2000-10-11 Marius Vollmer <mvo@zagadka.ping.de>
  934. * gc_os_dep.c: Added real implementation based on code from Boehms
  935. collector. This is not well tested yet.
  936. * gc.h (scm_get_stack_base): Added prototype.
  937. * init.c (scm_get_stack_base): Removed prototype.
  938. 2000-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  939. * random.c (scm_seed_to_random_state): Replace SCM_LENGTH with
  940. the appropriate SCM_<type>_LENGTH macro.
  941. (vector_scale, vector_sum_squares, scm_random_solid_sphere_x,
  942. scm_random_normal_vector_x): Use scm_uniform_vector_length to
  943. determine the length of a vector object generically.
  944. 2000-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  945. * ramap.c (scm_array_fill_int, scm_array_index_map_x): Replace
  946. SCM_LENGTH with the appropriate SCM_<type>_LENGTH macro.
  947. (scm_ra_matchp, scm_ramapc, ramap, rafe, scm_array_index_map_x,
  948. raeql_1, raeql): Use scm_uniform_vector_length to determine the
  949. length of a vector object generically.
  950. 2000-10-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  951. * unif.c (scm_make_uve, scm_uniform_vector_length, scm_array_p,
  952. scm_transpose_array, scm_array_contents, scm_ra2contig,
  953. scm_uniform_array_read_x, scm_uniform_array_write, scm_bit_count,
  954. scm_bit_position, scm_bit_set_star_x, scm_bit_count_star,
  955. scm_bit_invert_x, scm_array_to_list, scm_raprin1): Replace
  956. SCM_LENGTH with the appropriate SCM_<type>_LENGTH macro.
  957. (scm_array_dimensions, scm_make_shared_array, scm_enclose_array,
  958. scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x,
  959. scm_array_contents, scm_uniform_array_read_x,
  960. scm_uniform_array_write, scm_list_to_uniform_array, rapr1): Use
  961. scm_uniform_vector_length to determine the length of a vector
  962. object generically.
  963. (scm_bit_count, scm_bit_set_star_x, scm_bit_count_star,
  964. scm_bit_invert_x): Eliminated dummy type dispatch.
  965. (scm_ra2contig): Fixed array vector access.
  966. 2000-10-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  967. * unif.h (SCM_BITVECTOR_P, SCM_BITVECTOR_BASE): Added.
  968. * eval.c (iqq, SCM_CEVAL, SCM_APPLY, check_map_args, scm_map,
  969. scm_for_each, scm_copy_tree), gc.c (scm_igc, scm_gc_mark,
  970. scm_gc_sweep), gh_data.c (gh_scm2chars), sort.c
  971. (scm_restricted_vector_sort_x, scm_sorted_p, scm_sort_x,
  972. scm_sort, scm_stable_sort_x, scm_stable_sort), vectors.c
  973. (scm_vector_length, scm_vector_ref, scm_vector_set_x,
  974. scm_vector_to_list, scm_vector_fill_x, scm_vector_equal_p,
  975. scm_vector_move_left_x, scm_vector_move_right_x, ): Replace
  976. SCM_LENGTH with the appropriate SCM_<type>_LENGTH macro.
  977. * gc.c (scm_gc_sweep): Use SCM_BITVECTOR_BASE for bitvectors.
  978. * sort.c (scm_restricted_vector_sort_x, scm_sorted_p): Eliminated
  979. dummy type dispatch.
  980. (scm_sort_x, scm_sort, scm_stable_sort_x, scm_stable_sort):
  981. Eliminated redundant NIM test.
  982. 2000-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  983. * filesys.c (fill_select_type, retrieve_select_type, scm_select),
  984. gh_data.c (gh_set_substr, gh_scm2chars, gh_scm2shorts,
  985. gh_scm2longs, gh_scm2floats, gh_scm2doubles, gh_symbol2newstr),
  986. stime.c (bdtime2c), symbols.c (scm_sym2vcell, scm_sym2ovcell_soft,
  987. scm_intern_obarray_soft, scm_symbol_to_string, scm_intern_symbol,
  988. scm_unintern_symbol, copy_and_prune_obarray, scm_builtin_bindings,
  989. scm_builtin_weak_bindings), validate.h (SCM_VALIDATE_VECTOR_LEN):
  990. Replace SCM_LENGTH with the appropriate SCM_<type>_LENGTH macro.
  991. * filesys.c (scm_dirname, scm_basename), gh_data.c (gh_scm2newstr,
  992. gh_get_substr), posix.c (scm_putenv), regex-posix.c
  993. (scm_regexp_exec), stime.c (setzone), symbols.c
  994. (scm_string_to_symbol): Don't accept symbols as input parameters
  995. any more.
  996. 2000-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  997. * continuations.c (scm_make_cont, copy_stack_and_call,
  998. scm_dynthrow), environments.c (obarray_enter, obarray_replace,
  999. obarray_retrieve, obarray_remove, obarray_remove_all,
  1000. leaf_environment_fold), fluids.c (grow_fluids, scm_copy_fluids,
  1001. scm_fluid_ref, scm_fluid_set_x), hash.c (scm_hasher), hashtab.c
  1002. (scm_hash_fn_get_handle, scm_hash_fn_create_handle_x,
  1003. scm_hash_fn_remove_x, scm_internal_hash_fold), ioext.c
  1004. (scm_read_delimited_x), objects.c (scm_mcache_lookup_cmethod,
  1005. scm_make_subclass_object), ports.c (scm_unread_string), socket.c
  1006. (scm_recv, scm_recvfrom), stacks.c (scm_make_stack, scm_stack_id,
  1007. scm_last_stack_frame), strings.c (scm_string_length,
  1008. scm_string_set_x), strop.c (scm_substring_move_x,
  1009. scm_substring_fill_x, scm_string_fill_x, scm_string_upcase_x,
  1010. scm_string_downcase_x, scm_string_capitalize_x), struct.c
  1011. (scm_struct_init, scm_struct_vtable_p, scm_make_struct,
  1012. scm_make_vtable_vtable, scm_struct_ref, scm_struct_set_x), weaks.c
  1013. (scm_mark_weak_vector_spines, scm_scan_weak_vectors): Replace
  1014. SCM_LENGTH with the appropriate SCM_<type>_LENGTH macro.
  1015. 2000-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1016. * print.c (make_print_state, scm_iprin1): Replace SCM_LENGTH with
  1017. the appropriate SCM_<type>_LENGTH macro.
  1018. (grow_ref_stack): Don't call scm_vector_set_length_x to resize
  1019. the print stack.
  1020. 2000-10-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1021. * numbers.c (big2str): Avoid redundant copying.
  1022. (scm_bigprint): Use SCM_STRING_LENGTH instead of SCM_LENGTH.
  1023. 2000-10-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1024. * numbers.c (big2str), read.c (scm_grow_tok_buf), strports.c
  1025. (st_resize_port): Don't call scm_vector_set_length_x to resize
  1026. strings.
  1027. * read.c (scm_lreadr, scm_read_token): Use SCM_STRING_LENGTH for
  1028. string arguments (instead of SCM_LENGTH).
  1029. 2000-10-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1030. * continuations.h (SCM_CONTINUATION_LENGTH), strings.h
  1031. (SCM_STRING_LENGTH), symbols.h (SCM_SYMBOL_LENGTH), unif.h
  1032. (SCM_UVECTOR_LENGTH, SCM_BITVECTOR_LENGTH), vectors.h
  1033. (SCM_VECTOR_LENGTH): Added as replacements for SCM_LENGTH.
  1034. 2000-10-02 Marius Vollmer <mvo@zagadka.ping.de>
  1035. * coop-defs.h (coop_key_create): Don't use the C++ keyword
  1036. `destructor' in prototype. Thanks to Martin Baulig!
  1037. 2000-10-02 Michael Livshin <mlivshin@bigfoot.com>
  1038. * guile-func-name-check.in: now should not confuse SCO nawk
  1039. anymore. thanks to Bruce Korb for the fix!
  1040. 2000-10-01 Gary Houston <ghouston@arglist.com>
  1041. * net_db.c: declare inet_aton only if HAVE_INET_ATON is not
  1042. defined. thanks to Han-Wen Nienhuys.
  1043. 2000-09-30 Gary Houston <ghouston@arglist.com>
  1044. * filesys.c (scm_stat2scm), posix.c (s_scm_mknod): don't use
  1045. S_ISSOCK or S_IFSOCK if not defined. thanks to Bruce Korb.
  1046. 2000-09-29 Neil Jerram <neil@ossau.uklinux.net>
  1047. * Makefile.am (guile-procedures.txt): Insert a new rule such that
  1048. the output from guile-snarf.awk is processed by makeinfo to
  1049. produce guile-procedures.txt.
  1050. * guile-snarf.awk.in: Modify the way we snarf docstrings such that
  1051. the output is Texinfo-compliant and suitable for post-processing
  1052. with makeinfo. (Trim leading "./" from C file name if
  1053. present; reformat procedure prototype line in @deffn format;
  1054. improve representation of args to show optional and rest args;
  1055. explicitly quote quotation marks where they are used inside an AWK
  1056. regexp.)
  1057. * net_db.c (scm_inet_ntoa): Docstring fix: missing newline
  1058. inserted.
  1059. * hashtab.c (scm_hashx_create_handle_x, scm_hashx_ref): Insert
  1060. spaces between C parameters so that the snarfer doesn't coalesce
  1061. them all into a single very long-named parameter.
  1062. 2000-09-27 Neil Jerram <neil@ossau.uklinux.net>
  1063. * list.c (scm_append): Use @example texinfo markup in docstring.
  1064. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1065. * strings.c (scm_string, scm_make_string, scm_string_set_x,
  1066. scm_string_append), strop.c (scm_string_upcase_x,
  1067. scm_string_downcase_x), strports.c (st_resize_port), symbols.c
  1068. (scm_sym2vcell, scm_sym2ovcell_soft, scm_intern_obarray_soft,
  1069. scm_intern_symbol, scm_unintern_symbol), unif.c (scm_cvref,
  1070. scm_uniform_vector_ref, scm_array_set_x, rapr1): Replace calls to
  1071. SCM_UCHARS with SCM_STRING_UCHARS or SCM_SYMBOL_UCHARS.
  1072. * symbols.h (SCM_UCHARS): Deprecated.
  1073. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1074. * gc.c (scm_gc_sweep): Replace SCM_CHARS by SCM_COMPLEX_MEM.
  1075. * numbers.h (SCM_COMPLEX_MEM): Added as a replacement for
  1076. SCM_CHARS.
  1077. (SCM_COMPLEX_REAL, SCM_COMPLEX_IMAG): Use it.
  1078. * ramap.c (scm_array_fill_int, racp, raeql_1): Replace SCM_CHARS
  1079. with SCM_STRING_CHARS or SCM_UVECTOR_BASE.
  1080. (racp): Fix: Make sure that src and dst types match.
  1081. * read.c (scm_grow_tok_buf, scm_lreadr, scm_read_token): Replace
  1082. SCM_CHARS with SCM_STRING_CHARS.
  1083. * symbols.h (SCM_CHARS): Deprecated.
  1084. * unif.c (scm_enclose_array, scm_uniform_vector_ref, scm_cvref,
  1085. scm_array_set_x, scm_uniform_array_read_x, rapr1, freera,
  1086. scm_uniform_array_write): Replace SCM_CHARS with
  1087. SCM_STRING_CHARS, SCM_UVECTOR_BASE or SCM_ARRAY_MEM.
  1088. * unif.h (SCM_ARRAY_MEM): Added as a replacement for SCM_CHARS.
  1089. (SCM_ARRAY_V, SCM_ARRAY_BASE, SCM_ARRAY_DIMS): Use it.
  1090. * validate.h (SCM_COERCE_ROSTRING): Removed.
  1091. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1092. * gc.c (scm_igc): : Eliminate references to SCM_LENGTH and
  1093. SCM_CHARS from comment.
  1094. (scm_gc_mark, scm_gc_sweep): Replace SCM_CHARS with
  1095. SCM_SYMBOL_CHARS or SCM_CCLO_BASE or SCM_UVECTOR_BASE or
  1096. SCM_BDIGITS, and replace SCM_VELTS with SCM_VECTOR_BASE or
  1097. SCM_CONTREGS, according to the corresponding types.
  1098. (scm_gc_sweep): Simplify sweeping of uniform vectors.
  1099. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1100. * procs.h (SCM_CCLO_LENGTH, SCM_SET_CCLO_LENGTH, SCM_CCLO_BASE,
  1101. SCM_SET_CCLO_BASE, SCM_CCLO_REF, SCM_CCLO_SET, SCM_CCLO_SUBR,
  1102. SCM_SET_CCLO_SUBR): Added resp. changed such that none of the
  1103. macros SCM_CHARS, SCM_SETCHARS, SCM_VELTS and SCM_LENGTH have to
  1104. be used with compiled closures any more.
  1105. * procs.c (scm_makcclo), gsubr.h (SCM_GSUBR_TYPE, SCM_GSUBR_PROC):
  1106. Replace uses of SCM_CHARS, SCM_SETCHARS and SCM_VELTS with regards
  1107. to compiled closures.
  1108. * gsubr.h (SCM_SET_GSUBR_TYPE, SCM_SET_GSUBR_PROC): Added.
  1109. * gsubr.c (scm_make_gsubr): Use them.
  1110. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1111. * numbers.c (scm_adjbig): Use SCM_BDIGITS instead of SCM_CHARS.
  1112. (big2str, scm_bigprint): Use SCM_STRING_CHARS instead of
  1113. SCM_CHARS.
  1114. * vectors.c (scm_vector_set_length_x): Distinguish between
  1115. strings, scheme vectors and uniform vectors, thus getting rid of
  1116. references to SCM_CHARS. (The code still needs improvement.)
  1117. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1118. * eval.c (scm_m_letrec1, SCM_CEVAL, SCM_APPLY): Use
  1119. SCM_STRING_U?CHARS or SCM_SYMBOL_U?CHARS instead of SCM_U?CHARS.
  1120. * unif.h (SCM_UVECTOR_BASE), vectors.h (SCM_VECTOR_BASE): Added
  1121. as replacements for SCM_CHARS and SCM_VELTS.
  1122. 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1123. * continuations.c (scm_make_cont, scm_dynthrow), print.c
  1124. (scm_iprin1), stacks.c (scm_make_stack, scm_stack_id,
  1125. scm_last_stack_frame): For continuations, use SCM_CONTREGS
  1126. instead of SCM_CHARS.
  1127. * coop-threads.c (scm_threads_mark_stacks): Eliminate references
  1128. to SCM_LENGTH and SCM_CHARS from comments.
  1129. * dynl.c (scm_dynamic_link, scm_dynamic_func), symbols.h
  1130. (SCM_ROCHARS, SCM_ROUCHARS): Cleanly distinguish between string
  1131. and symbol arguments.
  1132. * hash.c (scm_hasher), keywords.c (prin_keyword), objects.c
  1133. (scm_make_subclass_object), print.c (scm_iprin1), regex-posix.c
  1134. (scm_regexp_error_msg), stime.c (bdtime2c, scm_strftime), struct.c
  1135. (scm_struct_init, scm_struct_vtable_p, scm_struct_ref,
  1136. scm_struct_set_x): Use SCM_STRING_U?CHARS or SCM_SYMBOL_U?CHARS
  1137. instead of SCM_U?CHARS.
  1138. * strings.h (SCM_STRING_UCHARS): Added as a replacement for
  1139. SCM_UCHARS for string arguments.
  1140. * strorder.c: Include strings.h and symbols.h.
  1141. * symbols.h: Replaced SCM_CHARS in comment.
  1142. (SCM_SYMBOL_UCHARS): Added as a replacement for SCM_UCHARS for
  1143. symbol arguments.
  1144. (SCM_SLOPPY_SUBSTRP): Deprecated.
  1145. * tags.h: Fixed comments not to reference SCM_LENGTH or
  1146. SCM_CHARS.
  1147. 2000-09-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1148. * gc.c (scm_gc_mark, scm_gc_sweep), tags.h: Removed the
  1149. scm_tc7_lvector type tag.
  1150. 2000-09-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1151. * eval.c (scm_m_define), evalext.c (scm_m_undefine): Removed dead
  1152. code.
  1153. * gc.c (scm_gc_sweep): Use SCM_STRING_CHARS or SCM_SYMBOL_CHARS
  1154. instead of SCM_CHARS.
  1155. 2000-09-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1156. * backtrace.c (display_frame_expr), environments.c
  1157. (print_observer, print_leaf_environment, print_eval_environment,
  1158. print_import_environment, print_export_environment), gh_data.c
  1159. (gh_set_substr, gh_symbol2newstr), keywords.c
  1160. (scm_make_keyword_from_dash_symbol), ports.c (scm_drain_input),
  1161. posix.c (scm_mknod), print.c (scm_iprin1), regexp-posix.c
  1162. (scm_regexp_error_msg), script.c (scm_compile_shell_switches),
  1163. simpos.c (scm_getenv), socket.c (scm_recv, scm_recvfrom),
  1164. strings.c (scm_makfromstr), strop.c (scm_substring_move_x,
  1165. scm_substring_fill_x, scm_string_capitalize_x), symbols.c
  1166. (scm_symbol_to_string), unif.c (scm_make_uve, scm_array_p),
  1167. validate.h (SCM_VALIDATE_STRING_COPY): Use SCM_STRING_CHARS or
  1168. SCM_SYMBOL_CHARS instead of SCM_CHARS.
  1169. 2000-09-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1170. * strings.h (SCM_STRING_CHARS): Added, should be used instead of
  1171. SCM_CHARS whenever the argument is known to be a string.
  1172. (SCM_SLOPPY_STRINGP): Deprecated.
  1173. * symbols.h (SCM_SYMBOL_CHARS): Added, should be used instead of
  1174. SCM_CHARS whenever the argument is known to be a symbol.
  1175. 2000-09-22 Neil Jerram <neil@ossau.uklinux.net>
  1176. * struct.c (scm_make_struct): Fix texinfo warning in docstring by
  1177. using @pxref rather than @xref.
  1178. * root.c (scm_call_with_dynamic_root): Fix texinfo warning in
  1179. docstring by using @code for (thunk) rather than @var.
  1180. 2000-09-20 Marius Vollmer <mvo@zagadka.ping.de>
  1181. * numbers.c (scm_istr2flo): Throw an `out of range' error when
  1182. exponent is too large instead of returning `#f'. The rationale is
  1183. that in this case the string represents a valid number but we
  1184. can't deal with it.
  1185. 2000-09-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1186. * symbols.c (scm_intern_obarray_soft,
  1187. scm_sysintern0_no_module_lookup): Make sure that symbol
  1188. properties initially form an empty list. Thanks to Keisuke
  1189. Nishida for pointing this out.
  1190. 2000-09-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1191. * throw.c (scm_handle_by_message): Added a FIXME comment.
  1192. (scm_ithrow): Removed some redundant tests. When compiling on
  1193. gcc, always add the GCSE bug workaround.
  1194. 2000-09-14 Gary Houston <ghouston@arglist.com>
  1195. * print.c (scm_iprin1): write the ascii delete character as #\del
  1196. instead of '#\', so it can be read back. like in SCM.
  1197. 2000-09-12 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1198. * symbols.c (duplicate_string): Don't try to copy the byte after
  1199. the string. This might not be `\0' and might even not be
  1200. allocated memory.
  1201. 2000-09-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1202. * symbols.c (scm_symbol_p): Eliminate redundant SCM_IMP test.
  1203. 2000-09-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1204. This patch unifies the formerly distinct ssymbol and msymbol types
  1205. to a common symbol type scm_tc7_symbol. The representation of the
  1206. new symbol type uses a double cell with the following layout:
  1207. <type/length, chars, raw_hash, prop-pair>, where the car of
  1208. prop-pair holds the symbol's function property and the cdr of
  1209. prop-pair holds the symbol's other properties. In the long run,
  1210. these properties will be removed. Then, the generic property
  1211. functions will be uses.
  1212. * eval.c (SCM_CEVAL), objects.c (scm_class_of), print.c
  1213. (scm_iprin1), tag.c (scm_tag): Use scm_tc7_symbol instead of
  1214. scm_tc7_ssymbol, scm_tc7_msymbol or scm_tcs_symbols.
  1215. * gc.c (scm_gc_mark): Mark the symbols property pair.
  1216. (scm_gc_sweep): There are no symbol slots any more.
  1217. * hash.c (scm_hasher): Instead of re-calculating the hash value
  1218. of a symbol, use the raw_hash value stored in the symbol itself.
  1219. * properties.h: Fix typo.
  1220. * strings.[ch] (scm_makstr, scm_makfromstr): The slot parameter
  1221. is not used any more.
  1222. * symbols.[ch] (scm_strhash): Deprecated, replaced by a macro.
  1223. (scm_intern_obarray_soft): Made softness parameter unsigned.
  1224. (scm_string_hash): New function with the same functionality as
  1225. scm_strhash had before, except that the hash value is not adjusted
  1226. to a hash table size. Instead, the 'raw' hash value is returned.
  1227. * symbols.c (duplicate_string): New static convenience function.
  1228. (scm_sym2vcell, scm_sym2ovcell_soft, scm_intern_obarray_soft):
  1229. Renamed local variable from scm_hash to hash.
  1230. (scm_intern_obarray_soft): Don't check for a negative softness
  1231. any more. When generating symbol cells, use the new layout and
  1232. store the raw hash value in the symbol's cell.
  1233. (scm_symbol_to_string): Removed unnecessary cast.
  1234. (scm_intern_symbol, scm_unintern_symbol): Use scm_string_hash to
  1235. determine the hash values.
  1236. (msymbolize): Removed.
  1237. (scm_symbol_fref, scm_symbol_pref, scm_symbol_fset_x,
  1238. scm_symbol_pset_x, scm_symbol_hash): No need to distinguish
  1239. between different symbol types any more.
  1240. (scm_symbol_hash): Comment fixed.
  1241. * symbols.h: Comment about the distinction between ssymbols and
  1242. msymbols removed.
  1243. (SCM_SYMBOLP, SCM_ROSTRINGP): No need to distinguish between
  1244. different symbol types any more.
  1245. (SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Added.
  1246. (SCM_SYMBOL_FUNC, SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS,
  1247. SCM_SET_SYMBOL_PROPS, SCM_SYMBOL_HASH, SCM_SET_SYMBOL_HASH): Use
  1248. the new symbol cell layout.
  1249. * tags.h (scm_tc7_ssymbol, scm_tc7_msymbol, scm_tcs_symbols):
  1250. Deprecated.
  1251. 2000-09-12 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1252. * symbols.h (scm_gentemp): Declared.
  1253. * symbols.c (scm_gensym): Reimplemented. Now only takes one
  1254. optional argument which should be a *string*.
  1255. (scm_gentemp): Reimplemented and moved from boot-9.scm.
  1256. 2000-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
  1257. * modules.c: Use applicable smobs for eval closures instead of
  1258. compiled closures. Include "libguile/smob.h".
  1259. (f_eval_closure): Removed.
  1260. (scm_eval_closure_tag): New variable.
  1261. (scm_eval_closure_lookup): Renamed from eval_closure.
  1262. This function now takes a smob instead of a compiled closure.
  1263. (scm_standard_eval_closure): Create a smob instead of a compiled
  1264. closure.
  1265. (scm_init_modules): Initialize the eval closure type as a smob.
  1266. * modules.h (SCM_EVAL_CLOSURE_P): New macro.
  1267. (scm_eval_closure_tag, scm_eval_closure_lookup): Declare.
  1268. * symbols.c: Include "libguile/smob.h".
  1269. (scm_sym2vcell): Call scm_eval_closure_lookup directly if THUNK
  1270. is an eval closure.
  1271. 2000-09-10 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1272. * Makefile.am (.x.doc): Bugfix: Added $(srcdir) to path in order
  1273. to allow for builds in separate tree.
  1274. * symbols.c (scm_gensym): Bugfixed my previous bugfix. (Thanks to
  1275. Dale P. Smith.)
  1276. 2000-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
  1277. * eval.c (SCM_APPLY): Fixed bugs in the applicable-smob calls.
  1278. 2000-09-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1279. * environments.c (obarray_enter, obarray_retrieve,
  1280. obarray_remove): Make sure the hash value is a valid obarray
  1281. index.
  1282. (obarray_enter, obarray_remove): Documentation improved.
  1283. (obarray_replace): Added.
  1284. (leaf_environment_define, leaf_environment_undefine): Cleaned up
  1285. and optimized.
  1286. 2000-09-05 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1287. * symbols.c (scm_gensym): Check that argument is a symbol, not a
  1288. string. (Thanks to Ralf Mattes.)
  1289. 2000-09-05 Marius Vollmer <mvo@zagadka.ping.de>
  1290. * init.c: Include "libguile/properties.h".
  1291. * gh_data.c (gh_scm2char): Validate that argument is a character.
  1292. 2000-08-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1293. * environments.h (SCM_IMPORT_ENVIRONMENT_P,
  1294. SCM_EXPORT_ENVIRONMENT_P): Before fetching the environment
  1295. functions, make sure that we really got an environment.
  1296. 2000-09-03 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1297. * validate.h (SCM_VALIDATE_NUMBER_DEF_COPY): New macro.
  1298. 2000-09-03 Marius Vollmer <mvo@zagadka.ping.de>
  1299. * Makefile.am (.x.doc): Pretend to create .doc files from .x files
  1300. and give explicit dependencies for .x files that depend on
  1301. generated files. This allows parallel builds. Thanks to Matthias
  1302. Koeppe!
  1303. 2000-08-27 Marius Vollmer <mvo@zagadka.ping.de>
  1304. * Makefile.am: Added gc_os_dep.c, properties.c, properties.x,
  1305. properties.h and properties.doc in the suitable places.
  1306. * init.h (scm_init_guile): New prototype.
  1307. * init.c (scm_init_guile, scm_init_guile_1): New interface for
  1308. initializing Guile that does return to the caller.
  1309. (scm_boot_guile_1): Use scm_init_guile_1 to initialize Guile.
  1310. Do not establish a catch-all, this is no longer needed.
  1311. * root.h (scm_properties_whash): New `sys_protect', used in
  1312. properties.c.
  1313. * throw.c (scm_ithrow): Perform catch-all handling here when no
  1314. suitable handler has been found. That way, we don't have to rely
  1315. on the user establishing a catch-all, which might be difficult for
  1316. him if he is using scm_init_guile instead of scm_boot_guile.
  1317. 2000-09-03 Neil Jerram <neil@ossau.uklinux.net>
  1318. * vectors.c (scm_vector): Docstring: add @deffnx line for
  1319. list->vector.
  1320. * unif.c (scm_uniform_vector_ref): Docstring: add @deffnx line for
  1321. array-ref.
  1322. (scm_array_set_x): Docstring: add @deffnx line for
  1323. uniform-array-set!.
  1324. * symbols.c (scm_symbol_to_string): Docstring: complete an
  1325. incomplete Texinfo reference to a node in r4rs.texi.
  1326. (scm_symbol_to_string): Escape double quotes correctly within
  1327. docstring.
  1328. * struct.c (scm_make_struct, scm_make_vtable_vtable): Docstring
  1329. fixes: `@dots' changed to `@dots{}'.
  1330. * strop.c (scm_substring_move_x): Docstring: add @deffnx lines for
  1331. substring-move-left! and substring-move-right!.
  1332. * strings.c (scm_string): Docstring: add @deffnx line for
  1333. list->string.
  1334. * stime.c (scm_strptime): Fix spelling mistake in docstring.
  1335. (scm_current_time): Docstring fix: insert missing newline.
  1336. * socket.c (scm_recvfrom): Docstring format fix: missing newline
  1337. inserted.
  1338. * ramap.c (scm_array_copy_x): Docstring: add @deffnx line for
  1339. array-copy-in-order!.
  1340. (scm_array_map_x): Docstring: add @deffnx line for
  1341. array-map-in-order!.
  1342. * posix.c (scm_mknod): Docstring format fix: missing newlines
  1343. inserted.
  1344. * modules.c (scm_interaction_environment): Docstring fix: add
  1345. newlines.
  1346. * eval.c (scm_cons_source): Added newly written docstring.
  1347. 2000-09-03 Michael Livshin <mlivshin@bigfoot.com>
  1348. the following changes let Guile get rid of the `allocated' cell
  1349. state.
  1350. * smob.c (scm_smob_prehistory): don't init the "allocated" smob
  1351. type.
  1352. * tags.h (scm_tc16_allocated): removed.
  1353. * gc.h: removed now-obsolete comments about the `allocated' cell
  1354. state.
  1355. (SCM_NEWCELL): don't change cell type to `allocated'.
  1356. (SCM_NEWCELL2): ditto.
  1357. * gc.c (scm_mark_locations): mark freecells too, and don't worry
  1358. about any possible false positives.
  1359. (scm_debug_newcell): don't change cell type to `allocated'.
  1360. (scm_debug_newcell2): ditto.
  1361. (scm_gc_for_newcell): ditto.
  1362. (scm_gc_mark): remove the tc16_allocated case.
  1363. 2000-08-26 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1364. * gdbint.c (gdb_print): Removed superfluous macro definition.
  1365. * objects.c (scm_init_objects), print.c (scm_init_print), struct.c
  1366. (scm_init_struct): First arg to scm_make_vtable_vtable should be a
  1367. string, not a symbol. (`make-vtable-vtable' needs to append this
  1368. string to another string and then pass it through
  1369. `make-struct-layout'.)
  1370. * stacks.c (scm_init_stacks): Pass a string, not a layout object,
  1371. to scm_make_vtable_vtable. (Thanks to Dale P. Smith.)
  1372. * struct.c (scm_make_struct_layout): Removed reference to
  1373. "read-only string" in comment; Check that argument is a string.
  1374. (scm_make_vtable_vtable): Check that argument is a string.
  1375. * environments.c (scm_init_environments): All internal includes in
  1376. libguile must use the prefix "libguile/" in path names since inly
  1377. the top-level source directory is on the include list. (That, in
  1378. turn, is because we want to distinguish between system header
  1379. files and hedares files internal to libguile.)
  1380. * strings.c (scm_make_shared_substring, scm_read_only_string_p):
  1381. Deprecated.
  1382. (scm_string_length, scm_string_ref, scm_substring,
  1383. scm_string_append): Don't accept symbols as arguments (R5RS).
  1384. 2000-08-25 Neil Jerram <neil@ossau.uklinux.net>
  1385. * ports.c (scm_set_port_column_x): Fix docstring so that it
  1386. mentions set-port-line! rather than set-port-column! twice.
  1387. * guardians.c (scm_make_guardian): Remove spurious . from doc string.
  1388. 2000-08-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1389. * Makefile.am: Added all necessary environments.* files.
  1390. * init.c: Include environments.h.
  1391. (scm_boot_guile_1): Initialize the environments.
  1392. * environments.[ch]: Added. Most of the credit for these files
  1393. goes to Jost Boekemeier.
  1394. 2000-08-25 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1395. * procprop.c: #include "libguile/smob.h"; handle applicable smobs.
  1396. 2000-08-24 Keisuke Nishida <kxn30@po.cwru.edu>
  1397. * smob.h (scm_smob_descriptor): Added `apply' and `gsubr_type'.
  1398. * smob.c (scm_make_smob_type): Initialize `apply' and `gsubr_type'.
  1399. (scm_set_smob_apply): New function.
  1400. (scm_smob_apply_0, scm_smob_apply_1, scm_smob_apply_2,
  1401. scm_smob_apply_3): New functions.
  1402. * eval.c (SCM_CEVAL, SCM_APPLY): Added dispatch for applicable smobs.
  1403. * procs.c (scm_procedure_p): Check applicable smobs.
  1404. 2000-08-24 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1405. * Makefile.am (BUILT_SOURCES): Experimentally added scmconfig.h
  1406. also here. (This is supposed to make sure that scmconfig.h is
  1407. built before all sources in order to prevent that everything has
  1408. to be rebuilt again. Hope it works---I'm just guessing. :)
  1409. * fluids.c (scm_fluid_set_x): Return SCM_UNSPECIFIED.
  1410. 2000-08-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1411. * gc.c (scm_gc_mark): Don't use GUILE_DEBUG flag to compile in
  1412. extra tests. (GUILE_DEBUG is only supposed to make extra
  1413. debugging functions available.)
  1414. 2000-08-21 Michael Livshin <mlivshin@bigfoot.com>
  1415. * gc.h (SCM_GC_CARD_N_CELLS): change to be a nice non-confusing
  1416. constant.
  1417. 2000-08-19 Michael Livshin <mlivshin@bigfoot.com>
  1418. * gc.c (scm_gc_sweep): added a `continue' statement that have
  1419. fallen through the cracks in the merge. thanks to Shuji Narazaki!
  1420. * gc.h: removed some stuff that broke compilation for people and
  1421. wasn't actually needed anyway.
  1422. 2000-08-18 Neil Jerram <neil@ossau.uklinux.net>
  1423. * filesys.c (scm_fcntl): Docstring fix - missing newlines inserted.
  1424. * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_sethost,
  1425. scm_setnet, setproto, setserv): Argument names changed to match
  1426. doc string.
  1427. * feature.c (scm_program_arguments): New docstring.
  1428. * simpos.c (scm_getenv): Reflow docstring.
  1429. * eq.c (scm_eq_p, scm_eqv_p, scm_equal_p): Add texinfo markup to
  1430. docstrings.
  1431. * chars.c (scm_char*): Docstring fixes - texinfo markup.
  1432. 2000-08-18 Neil Jerram <neil@ossau.uklinux.net>
  1433. * boolean.c (scm_not, scm_boolean_p): Docstring fixes - add
  1434. texinfo markup and remove trailing newlines.
  1435. 2000-08-17 Michael Livshin <mlivshin@bigfoot.com>
  1436. this changes the Guile GC to use cards (aka "chunklets").
  1437. (most of the ideas and some of the code are by Greg Harvey, though
  1438. the code is probably unrecognizable now. the original chunklet
  1439. proposal, way back, is by Dale Jordan).
  1440. * tags.h: (SCM_GCTYPE16, SCM_GCCDR, SCM_GC[8]MARKP,
  1441. SCM_SETGC[8]MARK, SCM_CLRGC[8]MARK): moved from here into gc.h.
  1442. some (most) of these are probably going to be deprecated.
  1443. * gc.h (SCM_MARKEDP): simplified, there are no different mark bit
  1444. locations anymore.
  1445. (SCM_GC_CARD_*, SCM_C_BVEC_*): lots of new macros to deal with
  1446. cards and bvecs (bit-vectors).
  1447. * gc.c: (scm_default_init_heap_size_*): defined to take cards into
  1448. account, but keeping more or less the same values as previously.
  1449. added some simple helper macros.
  1450. (CLUSTER_SIZE_IN_BYTES, ALIGNMENT_SLACK): defined to take cards
  1451. into account.
  1452. (BVEC_*, scm_mark_space_t, current_mark_space, mark_space_ptr,
  1453. current_mark_space_offset, mark_space_head, get_bvec,
  1454. clear_mark_space): new functions and supporting variables, types
  1455. and macros that implement mark space management.
  1456. (scm_igc): clear the mark space (all of it) before beginning the
  1457. mark phase.
  1458. (scm_gc_mark): changed the tests for rogue cells, much simplified
  1459. throughout (no different mark bit locations to worry about now).
  1460. (scm_mark_locations): don't consider card header cells.
  1461. (scm_cellp): ditto.
  1462. (scm_gc_sweep): simplified.
  1463. (init_heap_seg): changed to take cards into account.
  1464. 2000-08-16 Michael Livshin <mlivshin@bigfoot.com>
  1465. * stime.c (scm_c_get_internal_run_time): new function, same as
  1466. scm_get_internal_run_time but returns a long. it's used by the GC
  1467. for timekeeping, since with scm_get_internal_run_time there is a
  1468. (extremely theoretical) possibility of consing.
  1469. (scm_get_internal_run_time): redefined in terms of
  1470. scm_c_get_internal_run_time.
  1471. * stime.h: added prototype for scm_c_get_internal_run_time.
  1472. * gc.c (scm_gc_stats): add more obscure stats, such as: mark time,
  1473. sweep time, total marked cells, total swept cells, and number of
  1474. times GC was invoked.
  1475. (gc_start_stats): renamed from scm_gc_start, made static, taught
  1476. to init the new stats.
  1477. (gc_end_stats): renamed from scm_gc_end, made static, taught to
  1478. calculate the new stats.
  1479. (scm_igc): don't call gc_start_stats unless we are sure that we
  1480. are indeed going to collect. also, added some timekeeping between
  1481. the mark and sweep phases.
  1482. (scm_gc_sweep): count number of cells we sweep as we go.
  1483. * gc.h: removed prototypes for scm_gc_{start,end}.
  1484. 2000-08-13 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1485. * alist.c (scm_assq, scm_assv, scm_assoc): Report argument type
  1486. error for the alist rather than the sublist where the type
  1487. mismatch is discovered.
  1488. 2000-08-13 Neil Jerram <neil@ossau.uklinux.net>
  1489. * root.c (s_scm_call_with_dynamic_root): Docstring fix - rogue
  1490. newline.
  1491. 2000-08-12 Neil Jerram <neil@ossau.uklinux.net>
  1492. * numbers.c (scm_ash): Docstring fix - missing newlines.
  1493. * ports.c (scm_port_filename): Docstring fix - missing newline.
  1494. * strports.c (scm_eval_string): Docstring fix - missing newline.
  1495. * vports.c (s_scm_make_soft_port): Docstring updated so that
  1496. example is correct.
  1497. * strop.c: Docstring fixes - quotation marks and backslashes
  1498. needed quoting.
  1499. * numbers.c (s_scm_logand): Docstring fix - "@end lisp" inserted.
  1500. 2000-08-11 Neil Jerram <neil@ossau.uklinux.net>
  1501. * macros.c: Remove surplus newlines from end of docstrings.
  1502. * list.c (scm_list_tail): Add @deffnx line to docstring for
  1503. list-cdr-ref.
  1504. * keywords.c: Docstring improvements in conjunction with new
  1505. reference manual doc on keywords.
  1506. * error.c (scm_error_scm): Fix texinfo syntax error in
  1507. docstring. (@code(~S) should be @code{~S}.)
  1508. * dynl.c: Remove surplus newlines from end of docstrings.
  1509. 2000-08-11 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1510. * eval.c (scm_eval): Backward incompatible change: Now takes an
  1511. environment specifier as second arg. `eval' hereby becomes R5RS
  1512. compatible.
  1513. (scm_i_eval_x, scm_i_eval): New functions (replace
  1514. scm_eval_3).
  1515. (scm_eval2, scm_eval_3): Deprecated.
  1516. (scm_top_level_lookup_closure_var): Deprecated.
  1517. * eval.h: #include "struct.h".
  1518. * evalext.c (scm_definedp): Have to work before module system is
  1519. booted.
  1520. * modules.h (SCM_MODULEP, SCM_VALIDATE_MODULE,
  1521. SCM_MODULE_OBARRAY, SCM_MODULE_USES, SCM_MODULE_BINDER,
  1522. SCM_MODULE_EVAL_CLOSURE): New macros.
  1523. (scm_module_index_obarray, scm_module_index_uses,
  1524. scm_module_index_binder, scm_module_index_eval_closure): New
  1525. constants; #include "validate.h".
  1526. * modules.c (scm_module_tag, scm_module_system_booted_p): New
  1527. globals.
  1528. (scm_post_boot_init_modules): Initialize scm_module_tag.
  1529. (scm_interaction_environment): New primitive.
  1530. * symbols.c (scm_can_use_top_level_lookup_closure_var): Removed.
  1531. #include "modules.h".
  1532. * strports.c (scm_eval_string): Evaluate in
  1533. scm_interaction_environment ().
  1534. * script.c (scm_shell): Pass scm_the_root_module () as second arg
  1535. to new scm_eval_x.
  1536. * load.c (load): Use `scm_selected_module' to compute second arg
  1537. to new scm_i_eval_x; Don't call it if module system hasn't booted.
  1538. (scm_read_and_eval_x): Deprecated.
  1539. #include "modules.h".
  1540. * debug.c (scm_local_eval): Use scm_i_eval and scm_i_eval_x.
  1541. (scm_start_stack): Use scm_i_eval.
  1542. * strports.c: #include "modules.h".
  1543. * print.c (scm_simple_format): Be case-insensitive for ~A and ~S
  1544. directives.
  1545. 2000-08-09 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1546. The following changes are intended to ensure that struct instances
  1547. are freed before their vtables. It's optimized for the most
  1548. common case, which is freeing of struct instances.
  1549. * gc.c (scm_gc_mark, scm_gc_sweep): Remove vcell = 1 magic.
  1550. (scm_structs_to_free): New variable.
  1551. (scm_gc_sweep): Hook up structs to free on the scm_structs_to_free
  1552. chain.
  1553. * struct.h (SCM_STRUCT_GC_CHAIN, SCM_SET_STRUCT_GC_CHAIN): New
  1554. macros.
  1555. (scm_structs_to_free, scm_struct_prehistory): Declare.
  1556. * struct.c (scm_make_struct, scm_make_vtable_vtable): Structs
  1557. handles are now double cells; Initialize SCM_STRUCT_GC_CHAIN to
  1558. 0.
  1559. (scm_struct_gc_init, scm_free_structs): New GC C hooks.
  1560. (scm_struct_prehistory): Install them.
  1561. * init.c (scm_boot_guile_1): Call scm_struct_prehistory.
  1562. 2000-08-06 Marius Vollmer <mvo@zagadka.ping.de>
  1563. * read.c (scm_flush_ws): Include filename in error message when it
  1564. is not `#f'.
  1565. 2000-08-05 Marius Vollmer <mvo@zagadka.ping.de>
  1566. * iselect.c: Include <unistd.h>. Thanks to Bertrand Petit!
  1567. 2000-08-02 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
  1568. * struct.c (scm_make_struct_layout, scm_make_struct,
  1569. scm_make_vtable_vtable): Updated documentation.
  1570. * print.c (scm_simple_format): Bugfix: Coerce port before using
  1571. it.
  1572. 2000-07-31 Gary Houston <ghouston@arglist.com>
  1573. * net_db.c: declare h_errno only if HAVE_H_ERRNO is not defined
  1574. (thanks to Richard Kim for the bug report).
  1575. 2000-07-30 Marius Vollmer <mvo@zagadka.ping.de>
  1576. * alist.c (scm_assq_remove_x, scm_assv_remove_x,
  1577. scm_assoc_remove_x): Use scm_delq1_x instead of scm_delq_x, since
  1578. using the latter is pointless.
  1579. 2000-07-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1580. * gc.c (scm_gc_sweep): Renamed local variable from 'free' to
  1581. 'free_struct_data' to avoid confusion with stdlib's 'free'.
  1582. 2000-07-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1583. * vectors.c (scm_make_vector): Fix the initialization order of
  1584. the vector such that the type cell is initialized last.
  1585. 2000-07-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1586. * struct.[ch] (scm_struct_init): Made static. Fixed not to rely
  1587. on the struct cell to be fully initialized.
  1588. * struct.c (scm_make_struct, scm_make_vtable_vtable): Fix the
  1589. initialization order of the struct such that the type cell is
  1590. initialized last.
  1591. 2000-07-25 Marius Vollmer <mvo@zagadka.ping.de>
  1592. * alist.c (scm_assq_remove_x, scm_assv_remove_x,
  1593. scm_assoc_remove_x): Remove only the first cell with a matching
  1594. key, not all.
  1595. 2000-07-24 Marius Vollmer <mvo@zagadka.ping.de>
  1596. * stime.c (scm_strftime): Recognize a return value of zero from
  1597. strftime as buffer overflow and take care to detect a valid zero
  1598. length result regardless. Thanks to David Barts!
  1599. 2000-07-23 Marius Vollmer <mvo@zagadka.ping.de>
  1600. * alist.c (scm_assq_remove_x, scm_assv_remove_x,
  1601. scm_assoc_remove_x): Remove all cells whose key is eq, eqv, or
  1602. equal (respectively) to the argument key, not all cells that are
  1603. eq, eqv, or equal to the first cell with the argument key. Thanks
  1604. to Neil Jerram!
  1605. 2000-07-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1606. * gc.h (SCM_FREE_CELL_CDR, SCM_SET_FREE_CELL_CDR), hooks.c
  1607. (make_hook), modules.c (OBARRAY, USES, BINDER): Pack and unpack
  1608. SCM values appropriately.
  1609. * modules.c (scm_standard_eval_closure): Don't pass an inum to
  1610. scm_makcclo, but rather a long value.
  1611. 2000-07-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1612. read.c (scm_lreadrecparen), srcprop.c (scm_set_source_property_x):
  1613. SCM_SETCDR and SCM_WHASHSET macros don't deliver a return value.
  1614. Thanks to Han-Wen Nienhuys for the bug report.
  1615. 2000-07-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1616. * root.[ch] (scm_call_catching_errors): Deprecated.
  1617. * root.c (scm_init_root): Initialize the root smob type using the
  1618. standard initialization functions.
  1619. 2000-07-17 Marius Vollmer <mvo@zagadka.ping.de>
  1620. * eval.c (unmemocopy): Don't rely on V being a list of at least
  1621. one element. Thanks to Bill Schottstaedt!
  1622. 2000-07-15 Michael Livshin <mlivshin@bigfoot.com>
  1623. * gc.c (scm_done_free): new.
  1624. expanded comments about scm_done_malloc.
  1625. * gc.h: added prototype for scm_done_free
  1626. 2000-07-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1627. * gc.h (scm_take_stdin): Removed.
  1628. * gc.h (SCM_VALIDATE_CELL): Delegate cell checks to function
  1629. scm_assert_cell_valid to allow extensions to the checking
  1630. functionality without need to recompile everything.
  1631. * gc.[ch] (scm_assert_cell_valid, scm_set_debug_cell_accesses_x):
  1632. Added as conditionally compiled functions for the case that
  1633. SCM_DEBUG_CELL_ACCESSES is enabled.
  1634. * gc.c (debug_cells_p): Added to indicate whether compile-time
  1635. included cell access debugging is run-time enabled.
  1636. * gc.[ch] (scm_gc_running_p): Added to indicate that scm_igc is
  1637. being executed. Intended to be used instead of scm_gc_heap_lock
  1638. at most places.
  1639. * error.c (scm_error), gdbint.c (SCM_GC_P): Use scm_gc_running_p
  1640. instead of scm_gc_heap_lock.
  1641. * gc.c (scm_igc): Set scm_gc_running_p to true while running.
  1642. * gc.c (scm_mark_locations): Don't mark free cells.
  1643. * weaks.c (scm_scan_weak_vectors): Use SCM_FREE_CELL_P instead of
  1644. SCM_FREEP.
  1645. 2000-07-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1646. * gc.c (scm_mark_locations): Minimized some variable scopes and
  1647. simplified the code a bit.
  1648. 2000-07-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1649. * gc.h (SCM_SET_FREE_CELL_TYPE, SCM_SET_FREE_CELL_CDR,
  1650. SCM_FREE_CELL_P, SCM_FREE_CELL_CDR): Added since free cells
  1651. should not be accessed via SCM_C[AD]R. Further, using dedicated
  1652. macros to access free cells allows all other cell accessing macros
  1653. to treat acesses to free cells as errors, thus enabling better
  1654. error checks for cell accesses. SCM_FREE_CELL_P is supposed to
  1655. replace SCM_FREEP some time.
  1656. * gc.h (SCM_NEWCELL, SCM_NEWCELL2), gc.c (map_free_list,
  1657. free_list_length, scm_check_freelist, scm_debug_newcell,
  1658. scm_debug_newcell2, freelist_length, scm_gc_for_newcell,
  1659. scm_gc_mark, scm_gc_sweep, init_heap_seg): Only use the dedicated
  1660. cell accessors when accessing free cells.
  1661. 2000-07-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1662. * gc.h (SCM_CELL_WORD, SCM_CELL_OBJECT): Treat the referenced
  1663. object as const in order to make the compiler warn about code like
  1664. SCM_CELL_WORD (x, n) = y. Instead, SCM_SET_CELL_WORD (x, n, y)
  1665. should be used.
  1666. (SCM_CELL_WORD_LOC, SCM_CARLOC, SCM_CDRLOC): Return the address
  1667. as an address to a non-const object, since these macros are used
  1668. to allow direct write access to objects.
  1669. 2000-07-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1670. * hashtab.c (scm_hash_fn_create_handle_x): Signal an error if the
  1671. given hash table has no slots.
  1672. 2000-07-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1673. * gc.c (policy_on_error): Added in order to allow alloc_some_heap
  1674. to react to malloc failures in a context dependent way.
  1675. (scm_check_freelist): No need to flush streams before abort().
  1676. (scm_gc_for_newcell): Try to allocate new memory in three phases:
  1677. grow heap if preferred, if still no memory available collect
  1678. garbage, if still no memory available grow heap.
  1679. (heap_segment_table_size): Added to always reflect the actual
  1680. size of the heap segment table, because scm_n_heap_segs may differ
  1681. from the heap segment table size.
  1682. (alloc_some_heap): In case of malloc failure, react according to
  1683. the new policy_on_error parameter (either return to caller or
  1684. abort immediately). Further, keep heap_segment_table_size up to
  1685. date.
  1686. (scm_init_storage): Initialize heap_segment_table_size.
  1687. 2000-07-06 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1688. * gh.h: Don't include <stdio.h>. Thanks to Han-Wen Nienhuys for
  1689. the hint.
  1690. 2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1691. * __scm.h (SCM_OUTOFRANGE, SCM_NALLOC, SCM_HUP_SIGNAL,
  1692. SCM_INT_SIGNAL, SCM_FPE_SIGNAL, SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL,
  1693. SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, SCM_TICK_SIGNAL, SCM_SIG_ORD,
  1694. SCM_ORD_SIG, SCM_NUM_SIGS): Re-introduce these as deprecated
  1695. symbols.
  1696. * error.c (scm_wta): Re-introduce dispatching for SCM_OUTOFRANGE
  1697. and SCM_NALLOC, but as a deprecated feature.
  1698. 2000-06-30 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1699. * debug.c: Added #include fluids.h.
  1700. * numbers.c (scm_gr_p, scm_leq_p, scm_geq_p): Turned into
  1701. primitive generics. (Thanks to Nicolas Neuss.)
  1702. 2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1703. * gc.c (alloc_some_heap): Use scm_memory_error to indicate a
  1704. failed attempt to get additional memory from the system.
  1705. (scm_gc_for_newcell): Changed the control structure to make the
  1706. behaviour explicit for the case that gc is not able to free any
  1707. cells.
  1708. 2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1709. * __scm.h (SCM_OUTOFRANGE): Removed.
  1710. * error.c (scm_wta): Removed sick dispatch code for range
  1711. errors. (More sick dispatches still to be removed.)
  1712. * hashtab.c (scm_hash_fn_get_handle, scm_hash_fn_create_handle_x,
  1713. scm_hash_fn_remove_x): Eliminate redundant test for if unsigned
  1714. value is non-negative. Use scm_out_of_range to signal range
  1715. errors.
  1716. * hooks.c (make_hook), unif.c (scm_aind): Use scm_out_of_range to
  1717. signal range errors.
  1718. * list.c (scm_list_ref, scm_list_set_x, scm_list_cdr_set_x): Fix
  1719. error reporting (now uses original input parameter to report wrong
  1720. type argument errors). Use SCM_OUT_OF_RANGE to report range
  1721. errors and SCM_WRONG_TYPE_ARG to report type errors.
  1722. * strings.c (scm_substring): Make range checks for negative
  1723. values explicit (former behaviour relied on an implicit
  1724. conversion from signed to unsigned). Don't use SCM_ASSERT for
  1725. range checks.
  1726. * unif.c (scm_aind, scm_transpose_array, scm_bit_set_star_x,
  1727. scm_bit_count_star): Use scm_out_of_range to signal range
  1728. errors.
  1729. * unif.c (scm_transpose_array, scm_bit_position), vectors.c
  1730. (scm_vector_ref, scm_vector_set_x, scm_vector_move_left_x,
  1731. scm_vector_move_right_x): Use SCM_ASSERT_RANGE to check ranges.
  1732. 2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1733. * validate.h (SCM_VALIDATE_INUM_MIN_COPY,
  1734. SCM_VALIDATE_INUM_MIN_DEF_COPY, SCM_VALIDATE_INUM_RANGE_COPY):
  1735. Perform all range checks based on the input value. The former way
  1736. of using the value that is assigned to the target variable fails
  1737. if the assignment to the target variable itself can change the
  1738. value because of type conversion.
  1739. (SCM_ASSERT_RANGE): Use scm_out_of_range to signal range errors.
  1740. 2000-06-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1741. * gc.c (scm_gc_for_newcell): Behave gracefully also if scm_igc
  1742. doesn't yield any new cells. In theory this could happen if all
  1743. cells allocated with NEWCELL are either in use or conservatively
  1744. marked and all cluster spine cells are conservatively marked.
  1745. (Thanks to Dirk.)
  1746. 2000-06-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1747. * __scm.h (SCM_NALLOC): Removed.
  1748. * error.c (scm_wta): Removed sick dispatch code for memory
  1749. errors. (More sick dispatches still to be removed.)
  1750. * numbers.c (scm_mkbig, scm_adjbig), ports.c (scm_make_port_type),
  1751. random.c (scm_i_copy_rstate, scm_c_make_rstate), smob.c
  1752. (scm_make_smob_type), srcprop.c (scm_make_srcprops), vectors.c
  1753. (scm_vector_set_length_x): Now using scm_memory_error to signal
  1754. memory errors.
  1755. 2000-06-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1756. * __scm.h: Removed some commented code and fixed some comments.
  1757. (SCM_HUP_SIGNAL, SCM_INT_SIGNAL, SCM_FPE_SIGNAL, SCM_BUS_SIGNAL,
  1758. SCM_SEGV_SIGNAL, SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, SCM_TICK_SIGNAL,
  1759. SCM_SIG_ORD, SCM_ORD_SIG, SCM_NUM_SIGS): Removed.
  1760. * async.c: Removed some commented code.
  1761. 2000-06-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1762. * gc.c (scm_gc_mark, scm_gc_sweep, scm_must_malloc,
  1763. scm_must_realloc, scm_must_free, alloc_some_heap): Use the
  1764. appropriate error signalling function.
  1765. 2000-06-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1766. * root.h (scm_first_type): Removed.
  1767. 2000-06-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1768. * gc.c (MIN_GC_YIELD): Removed.
  1769. 2000-06-28 Michael Livshin <mlivshin@bigfoot.com>
  1770. * gc.c (scm_gc_for_newcell): don't try to do GC if it's blocked,
  1771. allocate instead.
  1772. 2000-06-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1773. * async.c (scm_gc_async, scm_gc_vcell, scm_sys_gc_async_thunk):
  1774. Moved to gc.c.
  1775. (scm_init_async): Moved initialization for scm_gc_async and
  1776. scm_gc_vcell to gc.c. Moved initialization of scm_asyncs here
  1777. from gc.c.
  1778. * async.h (scm_gc_async): Not globally visible any more.
  1779. * gc.c (scm_gc_stats): Made callable even from within regions
  1780. where gc is blocked.
  1781. (scm_gc_end): Eliminate the hardcoding of the marking of the
  1782. scm_gc_async from the gc core.
  1783. (scm_init_storage): Don't initialize the scm_asyncs list here.
  1784. This is now done in asyncs.c.
  1785. (scm_gc_vcell): Moved here from async.c.
  1786. (gc_async): Renamed from scm_gc_async, moved here from async.c
  1787. and made static.
  1788. (gc_async_thunk): Renamed from scm_sys_gc_async_thunk and moved
  1789. here from async.c.
  1790. (mark_gc_async): New hook function for scm_after_gc_c_hook.
  1791. (scm_init_gc): Added initialization of scm_gc_vcell and
  1792. gc_async. Further, add mark_gc_async to scm_after_gc_c_hook.
  1793. * init.c (scm_boot_guile_1): scm_init_gc requires asyncs to be
  1794. initialized.
  1795. 2000-06-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1796. * gc.c (scm_igc): Removed commented code that once was intended
  1797. to unprotect struct types with no instances.
  1798. * root.h (scm_type_obj_list): Removed.
  1799. 2000-06-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1800. * async.c (scm_init_async): Switch to standard way of smob
  1801. initialization.
  1802. 2000-06-21 Michael Livshin <mlivshin@bigfoot.com>
  1803. * guile-doc-snarf.in: use cut instead of sed, that's much much
  1804. faster. also, don't call basename more than needed. and, to gain
  1805. a couple of microseconds more, don't call cat needlessly. (thanks
  1806. to Brad Knotwell).
  1807. 2000-06-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1808. * guile-snarf.awk.in, guile-snarf.in, snarf.h: Rename SCM__I to
  1809. SCM_SNARF_INIT_START, SCM__D to SCM_SNARF_DOC_START, SCM__S to
  1810. SCM_SNARF_DOCSTRING_START and SCM__E to SCM_SNARF_DOCSTRING_END.
  1811. 2000-06-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1812. * eval.c, eval.h (scm_top_level_lookup_closure_var): Added.
  1813. #include "libguile/fluids.h".
  1814. * eval.h (SCM_TOP_LEVEL_LOOKUP_CLOSURE): New macro which replaces
  1815. SCM_CDR (scm_top_level_lookup_closure_var) everywhere.
  1816. * root.h (scm_top_level_lookup_closure_var,
  1817. scm_system_transformer): Removed. (It's no sense in having the
  1818. *variable* be a "fluid".)
  1819. * root.c (mark_root): Removed marking of
  1820. s->top_level_lookup_closure_var and s->system_transformer.
  1821. * modules.c (scm_selected_module): the_module is now a fluid.
  1822. 2000-06-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1823. * gc.h, tags.h: Be kind to compilers which must see hash signs in
  1824. column 0. (Thanks to Ian Grant.)
  1825. * numbers.h: Put #ifdef HAVE_LONG_LONGS around declarations using
  1826. the long_long type. (Thanks to Bernard Urban.)
  1827. 2000-06-20 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1828. * gc.c, gc.h (scm_default_init_heap_size_1,
  1829. scm_default_min_yield_1, scm_default_init_heap_size_2,
  1830. scm_default_min_yield_2, scm_default_max_segment_size): New global
  1831. variables. Can be customized by the application before booting
  1832. Guile. (We might want to be able to control these parameters
  1833. dynamically through the "options interface" in the future, but
  1834. note that that is additional functionality. Here we're giving
  1835. default values which the environment variables can override.)
  1836. * list.c (scm_cons_star): Updated comment.
  1837. * smob.h: Changed comments for scm_make_smob_type and
  1838. scm_make_smob_type_mfpe, warning that the latter might be
  1839. deprecated in a future release.
  1840. 2000-06-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1841. * list.[ch] (scm_cons_star/cons*): Renamed from
  1842. scm_list_star/list*.
  1843. * list.[ch] (scm_list_star/list*): Provided as a deprecated alias
  1844. for scm_cons_star/cons*.
  1845. * gc.c (scm_protect_object): Updated comment.
  1846. * numbers.h (SCM_NEWREAL, SCM_NEWCOMPLEX): Removed.
  1847. * tags.h (SCM_UNPACK_CAR, SCM_NDOUBLE_CELLP): Removed.
  1848. 2000-06-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1849. * init.c, init.h (scm_initialized_p): Renamed from `initialized'
  1850. and made global.
  1851. * gdbint.c (gdb_print): Print warning instead of calling scm_write
  1852. if Guile isn't yet initialized.
  1853. * print.c (scm_current_pstate, scm_make_print_state): Simplified
  1854. tests, using the assumption that Guile has been initialized.
  1855. Sun Jun 18 14:45:21 2000 Greg J. Badros <gjb@cs.washington.edu>
  1856. * print.c (s_scm_current_pstate): Do not segfault when the
  1857. print_state_pool is unitialized in `current-pstate', and better
  1858. verify its state before altering it in scm_make_print_state().
  1859. 2000-06-18 Michael Livshin <mlivshin@bigfoot.com>
  1860. * scmsigs.c (s_scm_sigaction): guard the SIGIOT case with an
  1861. #ifdef -- it's missing on at least one platform. (thanks to
  1862. Jan Nieuwenhuizen).
  1863. 2000-06-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1864. * list.c (list*): Added documentation from common-list.scm.
  1865. 2000-06-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1866. * gc.c (scm_unprotect_object): The reference count is guaranteed
  1867. to be a positive number.
  1868. 2000-06-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1869. * eval.c: Updated comment above scm_map.
  1870. 2000-06-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1871. * gc.c (scm_protect_object): Avoid looking up the object handle
  1872. twice.
  1873. (scm_unprotect_object): Abort if scm_unprotect_object is called on
  1874. an unprotected object.
  1875. 2000-06-14 Michael Livshin <mlivshin@bigfoot.com>
  1876. * gc.c (scm_unprotect_object): fix a nasty typo bug (thanks to
  1877. Dirk Herrmann).
  1878. 2000-06-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1879. * socket.c (scm_getsockopt): Changed type for `optlen' from int to
  1880. size_t.
  1881. (scm_accept, scm_getsockname, scm_getpeername, scm_recvfrom):
  1882. Ditto for `tmp_size'.
  1883. (scm_addr_buffer_size): Changed type from int to size_t.
  1884. * random.c: #include <string.h>. (Needed by memcpy.)
  1885. * guile-snarf.awk.in: Replace the dot_doc_file arg with "-",
  1886. indicating stdin, instead of "" and don't reset ARGC. This is a
  1887. workaround for `nawk' in AIX 4.3 on RS6000 but, as far as I know,
  1888. it is correct, and perhaps even better.
  1889. 2000-06-14 Gary Houston <ghouston@arglist.com>
  1890. * scmsigs.c (scm_init_scmsigs): if HAVE_SIGINTERRUPT is not
  1891. defined, add SA_RESTART to the sigaction flags correctly
  1892. (thanks to Dale P. Smith).
  1893. 2000-06-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1894. * strings.c: #include <string.h>. (Thanks to Bill Schottstaedt.)
  1895. * net_db.c (scm_resolv_error): Only use macro NETDB_INTERNAL if
  1896. defined. It isn't on sgi irix 5.3. (Thanks to Bill Schottstaedt.)
  1897. * Makefile.am (.c.doc): Pipe output (the .x contents) to /dev/null.
  1898. 2000-06-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1899. * fports.c (scm_setvbuf): Use `free' instead of `scm_must_free'
  1900. since read and write buffers are allocated by `malloc'.
  1901. * Makefile.am: Removed old test code.
  1902. * gh_test_c.c, gh_test_repl.c: Removed.
  1903. 2000-06-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1904. * iselect.c (SCM_NLONGBITS): Add workaround for the Sun 4.2
  1905. compiler.
  1906. * inet_aton.c (inet_aton): Cast init value for `cp'.
  1907. * ramap.c (s_scm_array_fill_x): Cast `ve' properly in case
  1908. `scm_tc7_uvect'.
  1909. * symbols.c (scm_intern_obarray_soft,
  1910. scm_sysintern0_no_module_lookup): Cast `name' to unsigned char ptr
  1911. in calls to scm_strhash.
  1912. * strports.c (st_resize_port): Substituted SCM_UCHARS for
  1913. SCM_CHARS.
  1914. (st_write): Cast argument to strncpy to char ptr.
  1915. (scm_mkstrport): Substituted SCM_ROUCHARS for SCM_ROCHARS.
  1916. (scm_strport_to_string): Cast argument to scm_makfromstr to char
  1917. ptr.
  1918. * ports.c (scm_ungetc): Cast value to unsigned char ptr before
  1919. storing in putback_buf.
  1920. (scm_unread_string): Substituted SCM_ROCHARS for SCM_ROUCHARS.
  1921. * ioext.c (s_scm_read_line): Cast result of call to
  1922. scm_do_read_line to unsigned char ptr.
  1923. * gdbint.c (SEND_STRING): Cast argument to char pointer.
  1924. * fports.c (fport_flush): Declare `ptr' as unsigned char (was
  1925. char).
  1926. * Makefile.am (DOT_DOC_FILES): List doc-files explicitly. (We
  1927. shouldn't use Make rules which aren't supported by most Make
  1928. programs.)
  1929. (OMIT_DEPENDENCIES): Defined to "libguile.h ltdl.h". (We don't
  1930. want these dependencies recorded, since they would get bogus
  1931. relative paths; libguile.h is only used in gh.h and guile.c.)
  1932. (EXTRA_DOT_X_FILES, EXTRA_DOT_DOC_FILES): New variables.
  1933. (guile-procedures.txt): Depend on EXTRA_DOT_DOC_FILES.
  1934. (modinclude_HEADERS): Removed kw.h.
  1935. * guile-snarf.in: Change regexp "^SCM__I" --> "^ *SCM__I".
  1936. (The preprocessor might insert spaces before the identifier.)
  1937. * snarf.h (SCM_SNARF_HERE, SCM_SNARF_INIT, SCM_SNARF_DOCS):
  1938. Renamed from SCM_HERE, SCM_INIT, SCM_DOCS.
  1939. * smob.h (scm_smobfuns): Removed deprecated type.
  1940. * smob.c, smob.h (scm_newsmob): Removed deprecated function.
  1941. (Replaced by `scm_make_smob_type'.)
  1942. * keywords.c (scm_tc16_kw): Removed deprecated type.
  1943. (Replaced by scm_tc16_keyword.)
  1944. * kw.h: Removed deprecated header file.
  1945. * evalext.c (serial-map): Removed deprected alias for scm_map.
  1946. (Has been replaced by `map-in-order'.)
  1947. * ramap.c (serial-array-copy!, serial-array-map!): Removed
  1948. depracted aliases. (Replaced by `array-copy-in-order!' and
  1949. `array-map-in-order'.)
  1950. 2000-06-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1951. * gc.h (SCM_VALIDATE_CELL): Rewritten.
  1952. (SCM_CELL_WORD, SCM_CELL_OBJECT, SCM_SET_CELL_WORD,
  1953. SCM_SET_CELL_OBJECT): Use new version of SCM_VALIDATE_CELL.
  1954. (Thanks to Han-Wen Nienhuys.)
  1955. 2000-06-10 Michael Livshin <mlivshin@bigfoot.com>
  1956. * guile-doc-snarf.in: don't pipe the CPP output right into sed --
  1957. write it to the temp file first and check the CPP return code.
  1958. (I introduced this bug earlier, and this probably caused people
  1959. with non-GNU C preprocessors to get empty *.x files and not to
  1960. have the build fail right away...).
  1961. * scmsigs.c (s_scm_sigaction): guard the SIGSYS case with an ifdef
  1962. -- at least my libc5-based Linux system doesn't define SIGSYS.
  1963. 2000-06-08 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1964. * snarf.h, guile-snarf.awk.in, guile-snarf.in: Replaced snarf
  1965. markers with identifiers (SCM__I, SCM__D, SCM__S, SCM__E).
  1966. (Thanks to Bernard Urban.)
  1967. 2000-06-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1968. * modules.c (scm_system_module_env_p): Fixed detection of system
  1969. modules.
  1970. 2000-06-06 Marius Vollmer <mvo@zagadka.ping.de>
  1971. * scmsigs.c (scm_sigaction): Silently ignore setting handlers for
  1972. `program error signals' because they can't currently be handled by
  1973. Scheme code.
  1974. 2000-06-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1975. * procs.h (SCM_SET_SUBRF): Added.
  1976. * procs.c (scm_make_subr_opt): Don't assign to SCM_SUBRF, use
  1977. SCM_SET_SUBRF instead. Thanks to Bernard Urban for the bug
  1978. report.
  1979. 2000-06-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1980. * gc.h (SCM_CARLOC, SCM_CDRLOC): Don't take the address of a SCM
  1981. value.
  1982. * sort.c (scm_sorted_p, scm_merge, scm_merge_list_x,
  1983. scm_merge_list_step): Don't take the address of SCM_CAR. Use
  1984. SCM_CARLOC instead. Thanks to Bernard Urban for the bug report.
  1985. 2000-06-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  1986. * boolean.h (SCM_TRUE_P): Removed, as people might use it as a
  1987. replacement for !SCM_FALSEP.
  1988. * backtrace.c (display_error_body), boolean.h (SCM_BOOLP), gc.c
  1989. (scm_unhash_name), gh_data.c (gh_module_lookup), load.c
  1990. (scm_primitive_load), print.c (scm_simple_format), procs.c
  1991. (scm_procedure_documentation), procs.h (SCM_TOP_LEVEL), ramap.c
  1992. (scm_array_fill_int), scmsigs.c (scm_sigaction), stacks.c
  1993. (narrow_stack, scm_make_stack, scm_stack_id), symbols.c
  1994. (scm_string_to_obarray_symbol), throw.c (scm_catch,
  1995. scm_lazy_catch, scm_ithrow), unif.c (scm_make_uve, scm_array_p,
  1996. scm_array_set_x, scm_bit_set_star_x, scm_bit_count_star),
  1997. validate.h (SCM_VALIDATE_BOOL_COPY, SCM_VALIDATE_PROC): Replace
  1998. uses of SCM_TRUE_P (x) with SCM_EQ_P (x, SCM_BOOL_T).
  1999. 2000-06-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2000. * eval.c (scm_badformalsp): New static function.
  2001. (SCM_CEVAL): Check arguments for procedure-with-setter closures.
  2002. (Thanks to Keisuke Nishida.)
  2003. The major reason for Guile's slow loading speed has been the fact
  2004. that a chain of Scheme level procedures has been evaluated for
  2005. every top-level symbol lookup during the first pass through the
  2006. code.
  2007. The following is a kludge which I suggested four years ago, and
  2008. which I've repeatedly suggested since. Personally, I've never
  2009. been bothered by Guile's slow loading speed, so I thought I would
  2010. let someone else do it...
  2011. But since the new environments will be included first in
  2012. Guile-1.5, I thought it would make people happy to get the kludge
  2013. into 1.4.
  2014. * modules.c: Added #include "libguile/vectors.h";
  2015. Added #include "libguile/hashtab.h";
  2016. Added #include "libguile/struct.h";
  2017. Added #include "libguile/variable.h";
  2018. Capture Scheme level `module-make-local-var!' to be used in the
  2019. standard eval closure.
  2020. (scm_standard_eval_closure): New primitive.
  2021. * modules.h (scm_standard_eval_closure): Declare.
  2022. * eval.c (scm_lookupcar): Test for !SCM_CONSP (SCM_CAR (env))
  2023. instead of SCM_TRUE (scm_procedurep (SCM_CAR (env))).
  2024. * symbols.c (scm_sym2vcell): Bypass dispatch in the evaluator for
  2025. standard eval closures.
  2026. * variable.c: Code layout fixes.
  2027. 2000-06-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2028. * Makefile.am: Added LIBS line to libpath which accidentally
  2029. disappeared in the change of 2000-06-01.
  2030. (Thanks to Dale P. Smith.)
  2031. 2000-06-03 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2032. * scmsigs.c (scm_segfault): Removed. (Was probably added by
  2033. mistake since it is not mentioned in ChangeLog.)
  2034. * gc.h (SCM_VALIDATE_CELL): Cast result to (void) in order to
  2035. avoid compiler warnings in gcc. (Does this work for other
  2036. compilers?)
  2037. 2000-06-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2038. * gc.h (SCM_VALIDATE_CELL): Don't "use" the value returned by
  2039. abort ().
  2040. (SCM_CARLOC, SCM_CDRLOC): Define directly instead of using
  2041. SCM_CELL_OBJECT_0 and SCM_CELL_OBJECT_1. It's not correct to take
  2042. the address of these expressions since they use SCM_VALIDATE_CELL.
  2043. (Thanks to Bernard Urban.)
  2044. * dynl.c: Changed #include <ltdl.h> --> #include
  2045. "libltdl/ltdl.h". (Thanks to Bill Schottstaedt.)
  2046. 2000-06-01 Craig Brozefsky <craig@red-bean.com>
  2047. * Makefile.am: libguile_la_LDFLAGS gets -version-info args
  2048. from GUILE-VERSION definition of LIBGUILE version. Added to
  2049. libpath.h definitions for guileversion and libguileversion which
  2050. both get their values from GUILE-VERSION definition.
  2051. 2000-05-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2052. * numbers.h (SCM_BIGP): Don't use SCM_SMOB_PREDICATE in header
  2053. file: Code using numbers should not be required to include
  2054. smob.h.
  2055. 2000-05-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2056. * coop-threads.c.cygnus, coop-threads.h.cygnus, fsu-pthreads.h,
  2057. mit-pthreads.c, mit-pthreads.h: Deleted.
  2058. * Makefile.am (EXTRA_DIST), scmsigs.c, threads.[ch]: Drop
  2059. references to deleted files and fsu/mit thread support in
  2060. general.
  2061. 2000-05-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2062. * hooks.c (symbol_name, scm_create_hook): Restored the original
  2063. behaviour of scm_create_hook. Changing it was bad as Carl
  2064. R. Witty has pointed out.
  2065. * gc.c (scm_init_gc): We can still rely on scm_create_hook to
  2066. protect the object.
  2067. 2000-05-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2068. * gc.c (scm_init_gc): Protect scm_after_gc_hook, since this will
  2069. soon not be done by scm_create_hook any longer.
  2070. * hooks.c (make_hook, print_hook, scm_create_hook,
  2071. scm_make_hook_with_name, scm_make_hook), hooks.h (SCM_HOOK_NAME,
  2072. SCM_HOOK_PROCEDURES, SCM_SET_HOOK_PROCEDURES,
  2073. scm_make_hook_with_name), init.c (scm_boot_guile_1): Hooks no
  2074. longer have names. As an intermediate solution, the name
  2075. predicate is emulated via object properties, but use of this
  2076. feature is deprecated.
  2077. * hooks.h (scm_free_hook): Removed, as it is never defined.
  2078. 2000-05-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2079. * numbers.[ch] (SCM_POSFIXABLE, SCM_NEGFIXABLE, SCM_FIXABLE):
  2080. Un-deprecated since otherwise user code can't determine whether a
  2081. number fits into an inum any longer. The names should be changed
  2082. some time, though.
  2083. * numbers.c (scm_big2inum): Eliminated use of SCM_UNEGFIXABLE.
  2084. * tags.h (SCM_UNPACK_CAR): Deprecated.
  2085. 2000-05-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2086. * filesys.h (SCM_OPDIRP), fluids.h (SCM_FLUIDP, SCM_FLUID_NUM),
  2087. fports.h (SCM_OPFPORTP, SCM_OPINFPORTP, SCM_OPOUTFPORTP), hooks.h
  2088. (SCM_HOOK_ARITY), keywords.h (SCM_KEYWORDP, SCM_KEYWORDSYM),
  2089. numbers.h (SCM_NUMP, SCM_BIGSIGN, SCM_BDIGITS, SCM_NUMDIGS):
  2090. Replace SCM_UNPACK_CAR appropriately. Don't access cells via
  2091. SCM_{SET}?C[AD]R unless they are known to be cons cells.
  2092. * gc.c (scm_heap_seg_data_t, scm_mark_locations, scm_cellp,
  2093. init_heap_seg): Remove unused struct member variable 'valid'.
  2094. 2000-05-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2095. * fports.c (fport_write), ports.c (scm_markstream, scm_port_mode,
  2096. scm_print_port_mode), ports.h (SCM_OPPORTP, SCM_OPINPORTP,
  2097. SCM_OPOUTPORTP, SCM_INPUT_PORT_P, SCM_OUTPUT_PORT_P, SCM_OPENP),
  2098. procs.h (SCM_CLOSCAR), unif.h (SCM_ARRAY_NDIM, SCM_ARRAY_CONTP),
  2099. variable.h (SCM_VARIABLEP): Replace SCM_UNPACK_CAR
  2100. appropriately.
  2101. 2000-05-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2102. * gc.c (free_list_length), hash.c (scm_hasher), macros.c
  2103. (scm_macro_type), objects.c (scm_class_of), options.c
  2104. (scm_options), print.c (scm_iprin1), strports.c (st_seek), throw.c
  2105. (SCM_LAZY_CATCH_P): Replace SCM_UNPACK_CAR appropriately.
  2106. 2000-05-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2107. * eval.c (scm_macroexp, SCM_CEVAL, scm_force), tags.h: Replace
  2108. SCM_UNPACK_CAR with SCM_CELL_TYPE or SCM_CELL_WORD_0.
  2109. * eval.c (scm_force): Add documentation.
  2110. * eval.c (scm_force, scm_cons_source): Don't access cells via
  2111. SCM_{SET}?C[AD]R unless they are known to be cons cells.
  2112. 2000-05-23 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2113. * strings.h (SCM_NSTRINGP, SCM_NRWSTRINGP), tags.h
  2114. (SCM_NDOUBLE_CELLP), vectors.h (SCM_NVECTORP): Deprecated.
  2115. * gc.c (scm_igc), gc.h (SCM_PTR_MASK, SCM_PTR_LT): Removed #ifdef
  2116. nosve #endif conditionally compiled code.
  2117. 2000-05-23 Michael Livshin <mlivshin@bigfoot.com>
  2118. * gc.c (scm_heap_seg_data_t): fixed comment for the `span' member.
  2119. 2000-05-22 Michael Livshin <mlivshin@bigfoot.com>
  2120. * guile-doc-snarf.in: put the preprocessed file through sed to
  2121. trim all lines to 1024 chars. I hope it doesn't break anybody's
  2122. sed. we'll see. (note: this is lossy trimming, i.e. the spill
  2123. isn't wrapped around but actually chopped off. this seemed to me
  2124. safe because the current snarfer doesn't understand multi-line
  2125. cookies anyway. in the long term, it would be nice not to depend
  2126. on AWK for anything.)
  2127. * gc.h (SCM_[SET_]CELL_{WORD,OBJECT}, SCM_VALIDATE_CELL): reverted
  2128. the previous change to this macros, after deciding to torture the
  2129. snarfer instead.
  2130. 2000-05-21 Michael Livshin <mlivshin@bigfoot.com>
  2131. * gc.h (SCM_[SET_]CELL_{WORD,OBJECT}, SCM_VALIDATE_CELL): brought
  2132. the yucky, ugly and nasty conditional compilation back. sorry,
  2133. but it was either that or requiring GAWK to build Guile.
  2134. (lots of places): removed the code that implemented the old GC
  2135. scheme.
  2136. * init.c (scm_boot_guile_1): removed the code conditioned on
  2137. !GUILE_NEW_GC_SCHEME.
  2138. * __scm.h: (GUILE_NEW_GC_SCHEME): removed.
  2139. * gc.c (scm_protect_object, scm_unprotect_object): change the
  2140. implementation to more efficient (at least in the time complexity
  2141. sense). the calls should now also be thread-safe -- I suspect
  2142. that people expect them to be. (thanks to Han-Wen Nienhuys)
  2143. (lots of places): removed the code that implemented the old GC
  2144. scheme.
  2145. * hashtab.c (scm_hash_fn_create_handle_x): add missing
  2146. SCM_REALLOW_INTS before return. I really wonder about the
  2147. possible interactions between hashtables, threads & GC. it
  2148. doesn't look healthy at all.
  2149. 2000-05-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2150. * unif.c (scm_bit_count): Fixed the parameter checks. Thanks to
  2151. Dale P. Smith.
  2152. 2000-05-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2153. * __scm.h (SCM_DEBUG_CELL_ACCESSES), gc.h (SCM_): Added as a new
  2154. debug option to verify all accesses to cells actually access
  2155. objects on the heap.
  2156. * gc.h (SCM_VALIDATE_CELL): Added. Only performs validation if
  2157. SCM_DEBUG_CELL_ACCESSES is set to 1.
  2158. (SCM_CELL_WORD, SCM_CELL_OBJECT, SCM_SET_CELL_WORD,
  2159. SCM_SET_CELL_OBJECT): Use SCM_VALIDATE_CELL to check every cell
  2160. that is accessed.
  2161. 2000-05-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2162. * gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs,
  2163. gh_scm2floats, gh_scm2doubles): Change !SCM_NIMP to SCM_IMP.
  2164. * gc.c (scm_cellp): Fixed and simplified.
  2165. * throw.c (JBJMPBUF, SETJBJMPBUF, SCM_JBDFRAME, SCM_SETJBDFRAME,
  2166. make_jmpbuf, scm_init_throw): Now using double cells to represent
  2167. jump buffers when using debug extensions.
  2168. (freejb): Removed.
  2169. 2000-05-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2170. * gh.h gh_data.c gh_funcs.c (gh_new_procedure*, gh_chars2byvect,
  2171. gh_shorts2svect, gh_longs2ivect, gh_ulongs2uvect, gh_floats2fvect,
  2172. gh_doubles2dvect, gh_doubles2scm, gh_define, gh_lookup,
  2173. gh_module_lookup): Accept const pointers as parameters.
  2174. * gh.h gh_data.c (gh_int2scmb): Deprecated.
  2175. 2000-05-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2176. * __scm.h (SCM_DEBUG_REST_ARGUMENT): Renamed from
  2177. SCM_DEBUG_REST_ARGUMENTS in order to clarify that we don't test
  2178. the actual arguments in the list, but rather the rest argument as
  2179. a list of arguments.
  2180. * validate.h (SCM_VALIDATE_REST_ARGUMENT): Added.
  2181. * async.c (scm_noop), eval.c (scm_map, scm_for_each), list.c
  2182. (scm_list_star, scm_append, scm_append_x), ports.c
  2183. (scm_close_all_ports_except), ramap.c (scm_array_map_x,
  2184. scm_array_for_each), regex-posix.c (scm_make_regexp), stacks.c
  2185. (scm_make_stack), strings.c (scm_string_append), struct.c
  2186. (scm_make_struct, scm_make_vtable_vtable): Validate rest arguments.
  2187. * dynl.c (DYNL_GLOBAL, sysdep_dynl_link, kw_global, sym_global,
  2188. scm_dynamic_link, scm_init_dynamic_linking), dynl.h
  2189. (scm_dynamic_link): Removed possibility to pass flags to
  2190. scm_dynamic_link, as it had no effect anyway.
  2191. * filesys.c (scm_fcntl): Made single optional rest argument into
  2192. a standard optional argument.
  2193. * hooks.c (scm_run_hook): A list of rest arguments is never
  2194. SCM_UNBNDP.
  2195. * list.c (scm_append, scm_append_x), stacks.c (scm_make_stack),
  2196. strings.c (scm_string_append): Don't perform half-hearted checks
  2197. to see whether the rest argument forms a proper list any more, use
  2198. SCM_VALIDATE_REST_ARGUMENTS instead.
  2199. * ports.c (scm_close_all_ports_except): Accept empty list of rest
  2200. arguments.
  2201. * posix.c (scm_convert_exec_args), print.c (scm_simple_format):
  2202. Simplify verification of rest argument.
  2203. * stacks.c (scm_make_stack), stacks.h (scm_make_stack), throw.c
  2204. (ss_handler, handler_message): Make first mandatory rest argument
  2205. of scm_make_stack into a standard mandatory argument.
  2206. * unif.c (scm_transpose_array, scm_enclose_array,
  2207. scm_array_in_bounds_p), unif.h (scm_transpose_array,
  2208. scm_enclose_array, scm_array_in_bounds_p): Make first mandatory
  2209. rest argument into a standard mandatory argument.
  2210. 2000-05-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2211. * __scm.h: Added SCM_DEBUG as default debug option. (Thanks to
  2212. Keisuke Nishida for the suggestion.) Added debug option
  2213. SCM_DEBUG_REST_ARGUMENTS.
  2214. * eval.c (scm_map, scm_for_each): Make sure all lists have the
  2215. same length. Also, removed redundant parameter checks.
  2216. 2000-05-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2217. * Makefile.am: Let 'make clean' remove *.x and *.doc files.
  2218. * __scm.h: Improved explanation of giving options to make.
  2219. * __scm.h (SCM_DEBUG_TYPING_STRICTNESS), tags.h
  2220. (SCM_STRICT_TYPING, SCM_DEBUG_TYPING_STRICTNESS): Renamed
  2221. SCM_STRICT_TYPING to SCM_DEBUG_TYPING_STRICTNESS and moved the
  2222. corresponding declaration and comment to __scm.h.
  2223. * _scm.h (errno), gc.h (SCM_CELLPTR, SCM_PTR_LT), numbers.c
  2224. (scm_remainder, scm_modulo), numbers.h (SCM_SRS, SCM_MAKINUM,
  2225. SCM_INUM): Removed conditionally compiled code for Turbo C.
  2226. * gdbint.c (gdb_maybe_valid_type_p): Eliminated call to scm_tag.
  2227. That check can be assumed to be redundant except for very rare
  2228. conditions that actually indicate broken heap data.
  2229. 2000-05-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2230. * numbers.c (scm_logcount, scm_integer_length): Reordered
  2231. dispatch sequence.
  2232. 2000-05-15 Gary Houston <ghouston@arglist.com>
  2233. * stime.c (scm_strftime): don't reset TZ if zone is an empty
  2234. string. append a "0" to the zone for TZ.
  2235. 2000-05-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2236. * numbers.c (scm_logbit_p, scm_bit_extract): Reordered dispatch
  2237. sequence.
  2238. (scm_bit_extract): Fixed handling of bignums.
  2239. 2000-05-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2240. * async.c (scm_sys_gc_async_thunk), chars.h (SCM_ICHRP, SCM_ICHR,
  2241. SCM_MAKICHR), continuations.h (SCM_SETJMPBUF), error.c
  2242. (scm_sysmissing), error.h (scm_sysmissing), evalext.c
  2243. ('serial-map), ioext.c (scm_fseek), ioext.h (scm_fseek),
  2244. keywords.c (scm_tc16_kw, scm_init_keywords), ports.h (SCM_CRDY,
  2245. SCM_INPORTP, SCM_OUTPORTP), ramap.c ('serial-array-copy!,
  2246. 'serial-array-map!), smob.c (scm_newsmob), smob.h (scm_smobfuns,
  2247. scm_newsmob), tag.c (scm_tag), tag.h (scm_tag), tags.h
  2248. (scm_tc16_flo, scm_tc_flo, scm_tc_dblr, scm_tc_dblc): Wrapped
  2249. deprecated code between #if (SCM_DEBUG_DEPRECATED == 0) #endif.
  2250. * fports.c (scm_fport_buffer_add), ports.c (scm_input_port_p,
  2251. scm_output_port_p), print.c (scm_get_print_state), validate.h
  2252. (SCM_VALIDATE_CHAR): Replace use of deprecated macros
  2253. SCM_INPORTP, SCM_OUTPORTP, SCM_ICHRP by SCM_INPUT_PORT_P,
  2254. SCM_OUTPUT_PORT_P, SCM_CHARP, respectively.
  2255. 2000-05-14 Gary Houston <ghouston@arglist.com>
  2256. * stime.c (scm_strftime): if HAVE_TM_ZONE is not defined, hack the
  2257. TZ environment variable so that the %Z format returns the zone
  2258. from the input vector instead of the system default.
  2259. from Keisuke Nishida:
  2260. * fports.c (scm_setvbuf): minor docstring fix.
  2261. * ports.h (scm_generic_fgets): obsolete prototype deleted.
  2262. 2000-05-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2263. * __scm.h: Added new section for debugging options.
  2264. (SCM_DEBUG_DEPRECATED): If 1, no deprecated code is included to
  2265. help developers to get rid of references to deprecated code.
  2266. * numbers.[ch] (SCM_POSFIXABLE, SCM_NEGFIXABLE, SCM_UNEGFIXABLE,
  2267. SCM_FIXABLE, SCM_FLOBUFLEN): These macros are no longer provided
  2268. as part of the interface and are marked as deprecated in the
  2269. header file.
  2270. * numbers.c (scm_make_real, scm_make_complex): Inlined the
  2271. corresponding macros SCM_NEWREAL and SCM_NEWCOMPLEX,
  2272. respectively.
  2273. * numbers.h (SCM_NEWREAL, SCM_NEWCOMPLEX, SCM_INEXP, SCM_CPLXP,
  2274. SCM_REAL, SCM_IMAG, SCM_REALPART, scm_makdbl, SCM_SINGP,
  2275. SCM_NO_BIGDIG, SCM_NUM2DBL, scm_dblproc): Deprecated.
  2276. 2000-05-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2277. * gc.h (scm_cell, SCM_CELL_WORD, SCM_CELL_OBJECT,
  2278. SCM_SET_CELL_WORD, SCM_SET_CELL_OBJECT): Scheme cells now consist
  2279. of two scm_bits_t values instead of two SCM values, because it is
  2280. legal for cell entries to hold values that are not scheme objects.
  2281. (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR, SCM_SETOR_CDR):
  2282. Use SCM_SETC[AD]R to modify contents of pairs.
  2283. 2000-05-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2284. * numbers.c (IS_INF, isfinite): Added FIXME comment.
  2285. (scm_abs, scm_magnitude): Make these two independent of each
  2286. other. scm_abs now reports an error if given a complex argument.
  2287. (scm_istr2flo, scm_integer_p). Use SCM_REAL_VALUE instead of
  2288. SCM_REALPART if the object is known to be real.
  2289. (scm_init_numbers): No need to use SCM_NEWREAL macro for speed
  2290. here.
  2291. * numbers.h (SCM_SINGP): Set to 0 instead of SCM_BOOL_F.
  2292. 2000-05-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2293. * eq.c (scm_eqv_p): Separate handling of real and complex
  2294. values. Remove #ifdef SCM_BIGDIG #endif test.
  2295. * eval.c (SCM_CEVAL, SCM_APPLY), gh_data.c (gh_scm2floats,
  2296. gh_scm2doubles), hash.c (scm_hasher), ramap.c (scm_array_fill_int,
  2297. ramap_rp, scm_array_map_x), random.c (vector_scale,
  2298. vector_sum_squares), unif.c (scm_make_uve, scm_array_p,
  2299. scm_array_set_x): Use SCM_REAL_VALUE instead of SCM_REALPART if
  2300. the object is known to be real. Use SCM_COMPLEXP instead of
  2301. deprecated SCM_CPLXP. Use SCM_INEXACTP instead of deprecated
  2302. SCM_INEXP.
  2303. 2000-05-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2304. * numbers.c: No need to include unif.h.
  2305. (IS_INF): Returned to old test for now: x == x + 1 will not work
  2306. for large numbers due to rounding errors.
  2307. Thanks to Kalle Olavi Niemitalo.
  2308. 2000-05-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2309. * numbers.c (scm_divbigdig): Removed outdated comment.
  2310. (scm_number_to_string, scm_string_to_number, scm_number_p,
  2311. scm_real_p, scm_integer_p, scm_inexact_p, scm_gr_p, scm_leq_p,
  2312. scm_geq_p, scm_make_rectangular, scm_make_polar,
  2313. scm_inexact_to_exact): Added comments.
  2314. (add1, scm_init_numbers): Removed add1.
  2315. 2000-05-09 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2316. * numbers.c (IS_INF): The new test is x == x + 1. The old test
  2317. x == x/2 did not work for zero values. Thanks to Han-Wen Nienhuys
  2318. and Ivan Toshkov.
  2319. (scm_number_to_string, scm_sum, scm_difference, scm_two_doubles,
  2320. scm_num2long, scm_num2long_long, scm_num2ulong): Reordered
  2321. dispatch sequence.
  2322. 2000-05-09 Marius Vollmer <mvo@zagadka.ping.de>
  2323. * scmsigs.c (take_signal): Execute SCM_ASYNC_TICK for SIGSEGV,
  2324. SIGILL and SIGBUS signals. These signals are not continuable and
  2325. must be handled for real right away.
  2326. 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2327. * numbers.c (scm_zero_p, scm_positive_p, scm_negative_p,
  2328. scm_real_part, scm_imag_part, scm_magnitude,
  2329. scm_inexact_to_exact): Reordered dispatch sequence.
  2330. 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2331. * feature.c: No need to include "libguile/smob.h"
  2332. (scm_loc_features, features, scm_add_feature, scm_init_feature):
  2333. Removed variable 'scm_loc_features' as a pointer to the SCM value
  2334. holding the features list. Using variable 'features' instead,
  2335. which holds the interned pair. Thus, SCM_SETCDR can be used
  2336. instead of pointer trickery.
  2337. 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2338. * alist.c (scm_acons): Use SCM{_SET}?_CELL_OBJECT as long as a
  2339. cell is not known to be a valid pair.
  2340. 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2341. * eval.c (ASRTSYNTAX, scm_m_body, scm_m_letrec1): Removed
  2342. ASRTSYNTAX. Using SCM_ASSYNT instead.
  2343. (scm_m_body): Don't create a redundant cons cell.
  2344. (scm_m_do): Removed redundant test 'bodycheck'.
  2345. (bodycheck): Removed.
  2346. * stacks.c (stack_depth, read_frame, read_frames): Removed
  2347. redundant calculation of size, minimized some variable scopes.
  2348. 2000-05-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2349. * pairs.c (scm_cons, scm_cons2): Use SCM{_SET}?_CELL_OBJECT as
  2350. long as a cell is not known to be a valid pair.
  2351. (scm_pair_p): Eliminated redundant SCM_IMP test.
  2352. 2000-05-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2353. * eval.c (scm_m_body, scm_macroexp, unmemocopy, scm_eval_args,
  2354. scm_deval_args): Eliminated redundant SCM_IMP tests.
  2355. * hashtab.c (scm_ihashx, scm_sloppy_assx, scm_delx_x), weaks.c
  2356. (scm_make_weak_key_hash_table, scm_make_weak_value_hash_table,
  2357. scm_make_doubly_weak_hash_table): Fixed critical sections.
  2358. Thanks to Keisuke Nishida.
  2359. 2000-05-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2360. * numbers.c (scm_logand, scm_logior, scm_logxor, scm_logtest):
  2361. Fixed some goto-related initialization bugs (introduced by me).
  2362. 2000-05-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2363. * numbers.h (SCM_INUM0): Uses SCM_MAKINUM instead of SCM_PACK.
  2364. * dynl.c (dynl_obj, DYNL_OBJ, get_dynl_obj): Removed.
  2365. (DYNL_FILENAME, DYNL_HANDLE): Use SCM_CELL... macros instead of
  2366. pointer trickery.
  2367. (SET_DYNL_HANDLE): Added.
  2368. (scm_dynamic_object_p): Simplified.
  2369. (scm_dynamic_unlink, scm_dynamic_func): Changed comment. Deliver
  2370. better error message when accessing unlinked dynamic objects.
  2371. Eliminated call to get_dynl_obj.
  2372. 2000-05-03 Marius Vollmer <mvo@zagadka.ping.de>
  2373. * scmsigs.c (orig_handlers) [!HAVE_SIGACTION]: Fix declaration to
  2374. be an array of function pointers instead of being a pointer to an
  2375. array returning function. Thanks to Kalle Olavi Niemitalo!
  2376. 2000-05-03 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2377. * numbers.c (scm_divbigbig, scm_divbigint), numbers.h
  2378. (scm_divbigbig, scm_divbigint): Don't return zero any more to
  2379. indicate that a division has a remainder, return SCM_UNDEFINED
  2380. instead. It is improbable that anyone actually used these
  2381. functions outside of numbers.c. For this reason and due to the
  2382. change in behaviour the functions are static now. Thus, if
  2383. surprisingly there are users of these functions they will at least
  2384. get alarmed.
  2385. * numbers.c: Removed #ifdef SCM_BIGDIG #endif in those functions,
  2386. that already have a clean dispatch order. Note: SCM_BIGDIG is
  2387. always defined.
  2388. * numbers.c (scm_inexact_p): Simplified.
  2389. * numbers.c (scm_num_eq_p, scm_less_p, scm_max, scm_min,
  2390. scm_product, scm_num2dbl, scm_angle): Reordered dispatch
  2391. sequence, thereby fixing some comparisons of SCM values with
  2392. integer constants.
  2393. * numbers.c (scm_divide): Division by zero of inums leads to an
  2394. error now. (Formerly, an infinite number was returned.)
  2395. Respect the fact, that scm_divbigbig does now return SCM_UNDEFINED
  2396. if a division has a remainder.
  2397. 2000-05-02 Gary Houston <ghouston@arglist.com>
  2398. * Makefile.am (INCLUDES): add ${INCLTDL} (thanks to Tim Mooney).
  2399. 2000-05-02 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2400. * numbers.c (scm_logtest, scm_division): Reordered dispatch
  2401. sequence, thereby fixing some comparisons of SCM values with
  2402. integer constants.
  2403. * numbers.h (scm_makdbl): Mark as deprecated at the point of
  2404. declaration.
  2405. * eval.c (SCM_CEVAL, SCM_APPLY), gh_data.c (gh_double2scm,
  2406. gh_doubles2scm), numbers.c (scm_istr2flo, scm_max, scm_min,
  2407. scm_sum, scm_difference, scm_product, scm_divide, scm_sys_expt,
  2408. scm_sys_atan2, scm_make_rectangular, scm_make_polar,
  2409. scm_real_part, scm_imag_part, scm_magnitude, scm_angle,
  2410. scm_long2num, scm_long_long2num, scm_ulong2num), ramap.c
  2411. (ramap_rp, scm_array_map_x), random.c (scm_random,
  2412. scm_random_uniform, scm_random_normal_vector_x, scm_random_exp),
  2413. struct.c (scm_struct_ref), unif.c (scm_array_to_list): Replace
  2414. call to scm_makdbl with a call to scm_make_real or
  2415. scm_make_complex, depending on whether the imaginary part is known
  2416. to be zero.
  2417. 2000-05-01 Gary Houston <ghouston@arglist.com>
  2418. * scmsigs.c: fix the definition of orig_handlers for the case
  2419. that HAVE_SIGACTION is not defined (thanks to
  2420. Kalle Olavi Niemitalo).
  2421. * Makefile.am: remove include_HEADERS (was libguile.h)
  2422. libguile.h: moved to top level directory.
  2423. 2000-04-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2424. * numbers.c (SCM_SWAP): Moved to the top of the file to allow for
  2425. a wider use.
  2426. * numbers.c (scm_modulo, scm_gcd, scm_lcm, scm_logand, scm_logior,
  2427. scm_logxor): Reordered dispatch sequence, thereby fixing some
  2428. comparisons of SCM values with integer constants.
  2429. * number.c (scm_logtest): Removed some redundant SCM_{N}?IMP
  2430. tests.
  2431. 2000-04-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2432. * numbers.c (scm_quotient, scm_remainder): Removed code that was
  2433. conditionally compiled based on BADIVSGNS. BADIVSGNS does not
  2434. occur anywhere else throughout guile.
  2435. * numbers.c (scm_quotient): Fixed parameter number in error
  2436. message.
  2437. * numbers.c (scm_remainder): Reordered dispatch sequence.
  2438. 2000-04-25 Gary Houston <ghouston@arglist.com>
  2439. * posix.c (scm_execlp): docstring fix (thanks to Martin
  2440. Grabmueller).
  2441. 2000-04-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2442. * eval.c (undef_object): Made into a local static variable
  2443. (suggested by Jost Boekemeier).
  2444. 2000-04-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2445. * pairs.c (cxrs, scm_init_pairs): Simplify initialization of
  2446. c[ad]+r functions.
  2447. * procs.c (scm_init_iprocs), procs.h (scm_subr, scm_iproc,
  2448. scm_dsubr, scm_init_iprocs): Removed.
  2449. * procs.h (SCM_SUBRF, SCM_DSUBRF): Access the cell words
  2450. directly instead of casting a cell to a C struct.
  2451. 2000-04-22 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2452. Better modularization of GC extensions through new C level GC
  2453. hooks:
  2454. * weaks.c (scm_weaks_prehistory): New function: Add
  2455. scm_weak_vector_gc_init to scm_before_mark_c_hook; Add
  2456. scm_mark_weak_vector_spines to scm_before_sweep_c_hook.
  2457. (scm_scan_weak_vectors): New function; added to
  2458. scm_after_sweep_c_hook.
  2459. * weaks.h (scm_weak_vectors, scm_weaks_prehistory): Added
  2460. declarations.
  2461. * guardians.h (scm_guardian_gc_init, scm_guardian_zombify): Are
  2462. now static.
  2463. * guardians.c (scm_guardian_gc_init): Turned into a hook function
  2464. and added to scm_before_mark_c_hook.
  2465. (scm_guardian_zombify): Turned into a hook function and added to
  2466. scm_before_sweep_c_hook.
  2467. * async.c (scm_sys_gc_async_thunk): Run after-gc-hook.
  2468. Added #include "libguile/gc.h".
  2469. * gc.h: Added #include "libguile/hooks.h".
  2470. * gc.c: Removed #include "libguile/guardians.h".
  2471. (scm_before_gc_c_hook, scm_before_mark_c_hook,
  2472. scm_before_sweep_c_hook, scm_after_sweep_c_hook,
  2473. scm_after_gc_c_hook): New C level hooks.
  2474. (scm_after_gc_hook): New Scheme level hook.
  2475. (scm_gc_sweep): Moved scanning of weak vectors to weaks.c.
  2476. (scm_igc): Moved initialization of scm_weak_vectors and the call
  2477. to scm_guardian_gc_init to respective module.
  2478. (scm_mark_weak_vector_spines): Moved to weaks.c;
  2479. Call to scm_guardian_zombify moved to guardians.c;
  2480. Run scm_before_gc_c_hook, scm_before_sweep_c_hook,
  2481. scm_after_gc_c_hook at appropriate places.
  2482. (scm_init_gc): Initialize scm_after_gc_hook.
  2483. * hooks.c, hooks.h (scm_make_hook_with_name): Removed deprecated
  2484. function.
  2485. * init.c (scm_boot_guile_1): Added `scm_init_hooks'.
  2486. * Makefile.am: Added hooks.c, hooks.h, hooks.x.
  2487. * feature.c, feature.h: Broke out hook code into separate files.
  2488. * hooks.c, hooks.h: New files.
  2489. * *.*: Change includes so that they always use the "prefixes"
  2490. libguile/, qt/, guile-readline/, or libltdl/.
  2491. (Thanks to Tim Mooney.)
  2492. * Makefile.am (INCLUDES): Removed THREAD_CPPFLAGS and INCLTDL.
  2493. (DEFS): Added. automake adds -I options to DEFS, and we don't
  2494. want that.
  2495. Removed all -I options except for the root source directory and
  2496. the root build directory.
  2497. * numbers.c (scm_odd_p, scm_even_p): Use SCM_WRONG_TYPE_ARG
  2498. instead of SCM_ASSERT (0, ...). (Some compilers will complain
  2499. about control reaching end of function otherwise, and, besides,
  2500. the new code is not less clear.)
  2501. * gc.c (scm_must_malloc, scm_must_realloc, scm_must_free): Added
  2502. calls to malloc debugging functions.
  2503. * init.c (scm_boot_guile_1): Added calls to debug-malloc init
  2504. functions.
  2505. * Makefile.am: Added debug-malloc.c, debug-malloc.h,
  2506. debug-malloc.x.
  2507. * debug-malloc.c, debug-malloc.h: New files.
  2508. 2000-04-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2509. * numbers.c (scm_exact_p, scm_odd_p, scm_even_p): Added
  2510. documentation strings.
  2511. * numbers.c (scm_exact_p, scm_odd_p, scm_even_p, scm_abs,
  2512. scm_quotient): Reordered dispatch sequence to first handle
  2513. immediates, second handle bignums and finally handle generic
  2514. functions respectively signal wrong type arguments. Hopefully
  2515. this will allow for easier separation when goops is integrated.
  2516. 2000-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2517. * gc.c (which_seg): Use SCM2PTR to convert a non immediate SCM
  2518. variable into a pointer to a heap cell.
  2519. * gc.c (scm_mark_locations, scm_cellp, init_heap_seg,
  2520. scm_unhash_name): Remove redundant cast to SCM_CELLPTR.
  2521. 2000-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2522. * print.c (scm_iprin1): Don't assign zero to SCM values, use
  2523. SCM_UNDEFINED instead.
  2524. * weaks.c (scm_make_weak_vector): Fix assignment of zero to a
  2525. vector element. (Still to be improved)
  2526. 2000-04-19 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2527. * eval.c (undef_cell): Removed, replaced by:
  2528. (undef_object): Added to replace undef_cell.
  2529. (scm_lookupcar, scm_lookupcar1): Use undef_object.
  2530. * eval.c (scm_lookupcar, scm_lookupcar1, scm_m_atfop,
  2531. scm_m_atbind, CHECK_EQVISH, SCM_CEVAL), procs.h (SCM_SETCODE):
  2532. Don't perform arithmetic operations with SCM values.
  2533. * eval.c (scm_lookupcar, scm_lookupcar1, scm_m_atfop,
  2534. scm_m_atbind, scm_eval_args, scm_deval_args, SCM_CEVAL): Use
  2535. symbolic names for the tc3 type codes.
  2536. * eval.c (scm_m_define, SCM_CEVAL, SCM_APPLY): Remove redundant
  2537. cast to SCM.
  2538. * eval.c (scm_eval_args, scm_deval_args, SCM_CEVAL): Made the
  2539. access of the struct vcell element explicit.
  2540. 2000-04-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2541. * struct.c (scm_struct_free_light, scm_struct_free_standard,
  2542. scm_struct_free_entity): Use `scm_must_free' instead of `free'.
  2543. * procs.c (scm_make_subr_opt): Tell scm_must_realloc that we're
  2544. realloc:ing scm_subr_table ("what" instead of "who").
  2545. * numbers.c (scm_adjbig): Ditto.
  2546. Tue Apr 18 08:22:41 2000 Greg J. Badros <gjb@cs.washington.edu>
  2547. * validate.h: Do not cast to (unsigned) in SCM_VALIDATE_INUM_RANGE
  2548. when testing high-end of the range. Mikael Djurfeldt noticed this
  2549. anomaly -- thanks Mikael!
  2550. 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2551. * unif.c (l2ra): Don't eliminate the call to scm_array_set_x
  2552. itself, as was done in the previous 'patch'. (Thanks to Radey
  2553. Shouman)
  2554. 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2555. * options.c (scm_options), read.c (recsexpr): Remove redundant
  2556. SCM_IMP test.
  2557. * print.c (scm_iprin1): Made the access of the struct vcell
  2558. element explicit.
  2559. * print.h (SCM_PRINT_CLOSURE): Added call to SCM_PACK.
  2560. * ramap.c (scm_ra_eqp, ra_compare), unif.c
  2561. (scm_uniform_vector_ref, scm_cvref, rapr1): Separated accesses to
  2562. unsigned long and signed long arrays and clarified the way the
  2563. access is performed.
  2564. * ramap.c (scm_array_map_x, raeql), read.c (scm_lreadr), stacks.c
  2565. (narrow_stack), unif.c (scm_cvref, scm_uniform_array_read_x,
  2566. scm_raprin1): Use SCM_EQ_P to compare SCM values.
  2567. * strings.c (scm_makstr): Treat the msymbol slots as a field of
  2568. scm_bits_t values.
  2569. * struct.h (SCM_SET_VTABLE_DESTRUCTOR): Treat the struct data as
  2570. a field of scm_bits_t values.
  2571. * unif.c (l2ra): Don't test result of scm_array_set_x against
  2572. zero: It is always SCM_UNSPECIFIED.
  2573. 2000-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2574. * script.c (scm_compile_shell_switches): Also enable
  2575. record-positions when given the --debug option. (Thanks to Diego
  2576. Dainese.)
  2577. 2000-04-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2578. * print.c (ENTER_NESTED_DATA, print_circref, scm_iprlist):
  2579. Compare SCM's with SCM_EQ_P.
  2580. * print.c (scm_make_print_state), srcprop.c
  2581. (scm_source_properties): Use valid scheme object to initialize
  2582. SCM variable.
  2583. * print.c (scm_iprin1): Remove redundant calls to SCM_UNPACK.
  2584. 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2585. * struct.c (scm_alloc_struct, scm_struct_free_0,
  2586. scm_struct_free_light, scm_struct_free_standard,
  2587. scm_struct_free_entity, scm_make_struct, scm_make_vtable_vtable),
  2588. struct.h (scm_struct_free_t, scm_alloc_struct, scm_struct_free_0,
  2589. scm_struct_free_light, scm_struct_free_standard,
  2590. scm_struct_free_entity): Struct data regions (and thus also
  2591. vtable data regions) are now C arrays of scm_bits_t elements.
  2592. * gc.c (scm_gc_mark, scm_gc_sweep, scm_unhash_name): Made the
  2593. mixup of glocs and structs explicit.
  2594. * gc.c (scm_unprotect_object): Compare SCM's with SCM_EQ_P.
  2595. 2000-04-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2596. * eval.c (scm_unmemocar): Use macros to test for gloc cell.
  2597. Minimize scope of variable 'ir'.
  2598. * eval.h (SCM_IFRAME, SCM_IDIST), weaks.h (SCM_IS_WHVEC_ANY):
  2599. Added missing call to SCM_UNPACK.
  2600. 2000-04-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2601. * validate.h (SCM_VALIDATE_INUM_RANGE_COPY,
  2602. SCM_VALIDATE_NUMBER_COPY): New macros.
  2603. 2000-04-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2604. * script.c (scm_compile_shell_switches): Added --debug option.
  2605. 2000-04-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2606. * vectors.c (scm_vector_set_x): Return SCM_UNSPECIFIED (as
  2607. specified by R5RS).
  2608. 2000-04-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2609. * ports.h (SCM_INPUT_PORT_P, SCM_OUTPUT_PORT_P): New macros.
  2610. (SCM_INPORTP, SCM_OUTPORTP): Marked as deprecated.
  2611. * validate.h (SCM_VALIDATE_INPUT_PORT, SCM_VALIDATE_OUTPUT_PORT):
  2612. New macros.
  2613. Cleanup of code layout.
  2614. * ports.c, ports.h (close-input-port, close-output-port): New R5RS
  2615. procedures.
  2616. 2000-04-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2617. * continuations.c (scm_make_cont, scm_dynthrow): Completely
  2618. separated implementations for defined (CHEAP_CONTINUATIONS) and
  2619. !defined (CHEAP_CONTINUATIONS). Also, now using memcpy for stack
  2620. copying.
  2621. * continuations.c (grow_stack): Renamed from grow_throw.
  2622. * continuations.c (copy_stack_and_call): New static function.
  2623. * continuations.c (scm_dynthrow): Simplified and made static.
  2624. * continuations.h (scm_dynthrow): Made static.
  2625. 2000-04-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2626. * unif.c, unif.h (shared-array-root, shared-array-offset,
  2627. shared-array-increments): New primitives.
  2628. 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2629. * gc.c (scm_gc_sweep): Simplify the computation of freed memory
  2630. size for msymbols.
  2631. * symbols.h (SCM_SLOTS, SCM_SYMBOL_FUNC, SCM_SYMBOL_PROPS,
  2632. SCM_SYMBOL_HASH): The msymbol slots are now a field of scm_bits_t
  2633. values.
  2634. * symbols.h (SCM_SET_SYMBOL_FUNC, SCM_SET_SYMBOL_PROPS): New
  2635. macros.
  2636. symbols.c (scm_intern_obarray_soft, msymbolize, scm_symbol_fset_x,
  2637. scm_symbol_pset_x): Use them.
  2638. * symbols.c (scm_symbol_hash): Unpack to access SCM raw data.
  2639. 2000-04-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2640. * ports.c (scm_port_print): The port data is read as raw data.
  2641. * ports.h (SCM_TC2PTOBNUM, SCM_PTOBNUM): Fix SCM/scm_bits_t
  2642. mismatch.
  2643. 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2644. * eval.c (SCM_CEVAL), objects.c (scm_mcache_lookup_cmethod,
  2645. scm_make_subclass_object), objects.h (SCM_CLASS_FLAGS,
  2646. SCM_ENTITY_PROCEDURE, SCM_ENTITY_SETTER), struct.c
  2647. (scm_struct_init, scm_struct_vtable_p, scm_make_struct,
  2648. scm_struct_ref, scm_struct_set_x), struct.h (SCM_STRUCT_DATA):
  2649. The struct data is now an array of scm_bits_t variables.
  2650. * objects.h (SCM_SET_ENTITY_PROCEDURE): New macro.
  2651. objects.c (scm_set_object_procedure_x): Use it.
  2652. * struct.c (scm_struct_init): Unused variable 'data' removed.
  2653. (scm_struct_vtable_p): Redundant SCM_IMP tests removed.
  2654. 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2655. * objects.h (SCM_OBJ_CLASS_FLAGS, SCM_OBJ_CLASS_REDEF), struct.h
  2656. (SCM_STRUCT_VTABLE_DATA, SCM_STRUCT_LAYOUT, SCM_STRUCT_VTABLE,
  2657. SCM_STRUCT_PRINTER): The struct vtable data is now an array of
  2658. scm_bits_t variables.
  2659. * struct.h (SCM_SET_STRUCT_LAYOUT): New macro.
  2660. struct.c (scm_make_vtable_vtable): Use it.
  2661. 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2662. * symbols.c (scm_sym2vcell, scm_sym2ovcell_soft, scm_sym2ovcell,
  2663. scm_intern_obarray_soft, scm_sysintern0,
  2664. scm_string_to_obarray_symbol, scm_intern_symbol,
  2665. scm_unintern_symbol, scm_symbol_binding, scm_symbol_interned_p,
  2666. scm_symbol_bound_p, scm_symbol_set_x): Don't use C operators to
  2667. compare SCM values.
  2668. 2000-04-11 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2669. * numbers.c (scm_quotient, scm_modulo): Reordered to handle the
  2670. case of immediate numbers parameters first. Also, only use
  2671. decoded numbers for numerical comparison.
  2672. 2000-04-10 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2673. * objects.h: Don't redeclare scm_call_generic_0 and
  2674. scm_apply_generic. (Thanks to Tal Tversky.)
  2675. 2000-04-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2676. * hash.c (scm_hasher): Use symbolic names for the tc3 constants.
  2677. Unpack SCM value to use it as a switch parameter. Don't cast SCM
  2678. values to int values.
  2679. 2000-04-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2680. * coop.c (mother): Handled EINTR (the wait has been interrupted by
  2681. a signal).
  2682. 2000-04-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2683. * __scm.h (SCM_WTA_DISPATCH_[012n]): To test whether a SCM value
  2684. contains a raw zero value it has to be unpacked.
  2685. * debug.c (with_traps_inner, scm_with_traps): Passing SCM values
  2686. via void * requires unpacking / packing.
  2687. * stacks.h (SCM_STACKP): Remove unnecessary SCM_NIMP test and use
  2688. SCM_EQ_P to compare SCM values.
  2689. * stacks.h (SCM_FRAME_VOID_P, SCM_FRAME_REAL_P, SCM_FRAME_PROC_P,
  2690. SCM_FRAME_EVAL_ARGS_P, SCM_FRAME_OVERFLOW_P): Remove unnecessary
  2691. call to SCM_UNPACK.
  2692. * tags.h (SCM_NECONSP): Define in terms of SCM_ECONSP
  2693. * tags.h (SCM_ECONSP): Clarify the test for glocs. This is still
  2694. quite ugly.
  2695. 2000-04-05 Michael Livshin <mlivshin@bigfoot.com>
  2696. * async.[ch]: unexpose low-level async access macros (thanks to
  2697. Dirk Herrmann).
  2698. * validate.h: move async validation macros to async.c (nobody else
  2699. needs them anyway), and rename them.
  2700. 2000-04-04 Michael Livshin <mlivshin@bigfoot.com>
  2701. * async.h: kill the scm_async_t struct. having a heap cell
  2702. pretending to be a C struct is not helthy, and is not needed here
  2703. anyway, as asyncs happily fit in one heap cell.
  2704. * async.c: reflect the fact that asyncs are now represented by
  2705. single heap cell each.
  2706. 2000-04-04 Gary Houston <ghouston@arglist.com>
  2707. * error.c (scm_syserror): save errno before doing anything else,
  2708. since it's used in two expressions and may get mutated (thanks to
  2709. Dirk Herrmann).
  2710. 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2711. * debug.c (scm_procedure_source, scm_procedure_environment),
  2712. gsubr.c (scm_make_gsubr_with_generic, scm_gsubr_apply), procs.c
  2713. (scm_procedure, scm_setter): Return valid scheme value as dummy.
  2714. * filesys.c (scm_readdir, scm_rewinddir, scm_closedir,
  2715. scm_dir_print, scm_dir_free), numbers.h (SCM_COMPLEX_REAL,
  2716. SCM_COMPLEX_IMAG), regex-posix.h (SCM_RGX), throw.c (JBJMPBUF,
  2717. SETJBJMPBUF, JBJMPBUF, SETJBJMPBUF, freejb, print_lazy_catch,
  2718. scm_ithrow), unif.c (scm_uniform_vector_ref, scm_cvref,
  2719. scm_array_set_x, rapr1), unif.h (SCM_ARRAY_V, SCM_ARRAY_BASE),
  2720. vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS, SCM_SETVELTS): Use
  2721. SCM_{SET_}?CELL_WORD* to access cell entries with raw data.
  2722. * filesys.c (scm_closedir), numbers.c (scm_addbig), numbers.h
  2723. (SCM_SETNUMDIGS), throw.c (JBACTIVE, SCM_JBDFRAME,
  2724. SCM_SETJBDFRAME): Read and modify data bits in cell entry #0 using
  2725. SCM_{SET_}?CELL_WORD_0.
  2726. * filesys.c (fill_select_type, retrieve_select_type, scm_select),
  2727. numbers.c (scm_gcd, scm_lcm, scm_integer_expt, scm_zero_p,
  2728. scm_product, scm_divide), posix.c (scm_getgrgid), ramap.c
  2729. (scm_array_fill_int, racp), throw.c (scm_catch, scm_lazy_catch,
  2730. scm_ithrow), unif.c (scm_make_uve, scm_array_p,
  2731. scm_transpose_array, scm_array_set_x, scm_bit_set_star_x,
  2732. scm_bit_count_star, l2ra), variable.c (prin_var,
  2733. scm_make_variable, scm_make_undefined_variable,
  2734. scm_builtin_variable), vectors.c (scm_vector_set_length_x),
  2735. vports.c (sf_flush, sf_close): Don't use C operators to compare
  2736. SCM values.
  2737. * numbers.c (scm_odd_p, scm_even_p), variable.c (prin_var): Must
  2738. unpack SCM values to access their raw contents.
  2739. * numbers.c (big2str): Eliminate unnecessary casts to SCM.
  2740. * numbers.h (SCM_NEWREAL), regex-posix.h (SCM_RGXP), vports.c
  2741. (scm_make_soft_port): Use SCM_{SET_}?CELL_TYPE to access the cell
  2742. type information.
  2743. * throw.c (printjb): Eliminated unnecessary unpack.
  2744. * variable.c (make_vcell_variable): Smob data is of type
  2745. scm_bits_t.
  2746. 2000-04-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2747. * print.c: Removed promise to rewrite printer code before next
  2748. release. :)
  2749. 2000-04-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2750. * iselect.c (add_fd_sets): Insert empty statement after label.
  2751. (Thanks to Tim Mooney.)
  2752. 2000-04-03 Michael Livshin <mlivshin@bigfoot.com>
  2753. * guardians.c (scm_guardian_zombify): mark all zombies in a
  2754. separate loop after processing all the currently known live
  2755. guardians, so as to not introduce order dependencies (thanks to
  2756. Gary Houston). note that the order problems are still there if
  2757. some guardians are themselves zombies, but that's a sick case that
  2758. I'm not going to worry about.
  2759. also, make another outer loop to process zombified
  2760. guardians (which are uncovered while marking zombies).
  2761. 2000-04-03 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2762. * evalext.c (scm_definedp, scm_m_undefine), gc.c
  2763. (scm_mark_weak_vector_spines, scm_gc_sweep), hashtab.c
  2764. (scm_hashq_ref, scm_hashv_ref, scm_hash_ref, scm_hashx_ref),
  2765. keywords.c (scm_make_keyword_from_dash_symbol), lang.c
  2766. (scm_nil_eq), lang.h (SCM_NILP, SCM_NIL2EOL), load.c
  2767. (scm_primitive_load), modules.c (scm_module_full_name), objects.c
  2768. (scm_class_of, scm_mcache_lookup_cmethod, scm_make_class_object),
  2769. ports.c (scm_close_all_ports_except), ports.h (SCM_EOF_OBJECT_P),
  2770. print.c (scm_iprin1, scm_prin1, scm_iprlist, scm_simple_format),
  2771. print.h (SCM_PRINT_STATE_P), procprop.c (scm_i_procedure_arity,
  2772. scm_stand_in_scm_proc, scm_procedure_property,
  2773. scm_set_procedure_property_x), procs.c
  2774. (scm_procedure_documentation), read.c (scm_lreadr, scm_lreadparen,
  2775. scm_lreadrecparen, scm_read_hash_extend), script.c
  2776. (scm_compile_shell_switches), srcprop.c (scm_source_property,
  2777. scm_set_source_property_x), srcprop.h (SCM_WHASHFOUNDP), stacks.c
  2778. (read_frame, NEXT_FRAME, read_frames, narrow_stack,
  2779. scm_make_stack, scm_stack_id), strop.c (scm_i_index,
  2780. scm_string_index, scm_string_rindex), struct.c (scm_struct_init),
  2781. validate.h (SCM_VALIDATE_BOOL_COPY, SCM_VALIDATE_INUM_DEF,
  2782. SCM_VALIDATE_INUM_DEF_COPY, SCM_VALIDATE_PROC,
  2783. SCM_VALIDATE_ARRAY): Don't use C operators to compare SCM values.
  2784. * feature.c (make_hook), keywords.c
  2785. (scm_make_keyword_from_dash_symbol), macros.c (scm_makacro,
  2786. scm_makmacro, scm_makmmacro), print.c (scm_iprin1,
  2787. scm_printer_apply, scm_port_with_print_state): Smob data is of type
  2788. scm_bits_t.
  2789. * feature.c (print_hook), gc.c (scm_object_address), hash.c
  2790. (scm_ihashq, scm_ihashv), print.c (scm_iprin1, scm_ipruk), smob.c
  2791. (freeprint), struct.c (scm_print_struct): Must unpack
  2792. SCM values to access their raw contents.
  2793. * fluids.c (apply_thunk, scm_with_fluids), hashtab.c (fold_proc,
  2794. scm_hash_fold), load.c (load, scm_primitive_load): Passing SCM
  2795. values via void * requires unpacking / packing.
  2796. * fports.c (scm_fport_buffer_add, scm_setvbuf), procs.h
  2797. (SCM_SUBRNUM, SCM_SET_SUBRNUM), srcprop.h (SRCPROPBRK, SRCBRKP):
  2798. Read and modify data bits in cell entry #0 using
  2799. SCM_{SET_}?CELL_WORD_0.
  2800. * fports.c (scm_fdes_to_port), gc.c (scm_gc_for_newcell,
  2801. scm_gc_sweep, init_heap_seg), init.c (start_stack), ports.c
  2802. (scm_void_port), procs.c (scm_make_subr_opt,
  2803. scm_make_procedure_with_setter), root.c (scm_internal_cwdr),
  2804. smob.c (scm_make_smob), strports.c (scm_mkstrport): Use
  2805. SCM_SET_CELL_TYPE to write the cell type information.
  2806. * gc.c (scm_gc_mark): Use SCM_CELL_OBJECT* to access SCM values
  2807. from cells that are no scheme pairs.
  2808. * gc.c (scm_gc_sweep), mallocs.c (prinmalloc), mallocs.h
  2809. (SCM_MALLOCDATA, SCM_SETMALLOCDATA), print.c (scm_ipruk), random.h
  2810. (SCM_RSTATE), root.h (SCM_ROOT_STATE), smob.c (scm_smob_free),
  2811. srcprop.c (freesrcprops), srcprop.h (SRCPROPPOS, SRCPROPFNAME,
  2812. SRCPROPCOPY, SRCPROPPLIST), struct.c (scm_make_struct,
  2813. scm_make_vtable_vtable): Use SCM_{SET_}?CELL_WORD* to access cell
  2814. entries with raw data.
  2815. * gc.c (scm_init_storage), sort.c (applyless), strop.c
  2816. (scm_string_to_list): Eliminate unnecessary casts to SCM.
  2817. * mallocs.c (scm_malloc_obj): Store result of malloc as raw
  2818. data.
  2819. * ports.c (scm_close_all_ports_except): Duplicate documentation
  2820. text removed.
  2821. * print.c (scm_iprin1): Use SCM_ITAG3.
  2822. * procs.h (SCM_SET_SUBRNUM): Fix shift direction.
  2823. * snarf.h (SCM_GPROC, SCM_GPROC1, SCM_SYMBOL, SCM_GLOBAL_SYMBOL,
  2824. SCM_KEYWORD, SCM_GLOBAL_KEYWORD, SCM_VCELL, SCM_GLOBAL_VCELL,
  2825. SCM_VCELL_INIT, SCM_GLOBAL_VCELL_INIT): Don't initialize globals
  2826. and static variables at their point of declaration, but rather in
  2827. the init function.
  2828. * tags.h (SCM_PACK): Automatically cast to scm_bits_t.
  2829. 2000-04-02 Gary Houston <ghouston@arglist.com>
  2830. * guardians.c (TCONC_IN, scm_make_guardian): set the CDR of the
  2831. empty tconc pair to SCM_EOL instead of SCM_BOOL_F, avoiding the
  2832. use of an improper list (which breaks g_print. g_print isn't
  2833. used).
  2834. guardians.c: Added more comments and modified the make-guardian
  2835. docstring. Reordered a few procedures.
  2836. 2000-04-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2837. * eval.c (scm_lookupcar1, scm_lookupcar, scm_m_case, scm_m_cond,
  2838. scm_m_lambda, iqq, scm_m_define, scm_m_expand_body, unmemocopy,
  2839. SCM_CEVAL), procs.h (SCM_TOP_LEVEL): Don't use C operators to
  2840. compare SCM values.
  2841. (scm_makprom): Smob data is of type scm_bits_t.
  2842. 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2843. * backtrace.c (display_error_body), debug.c (scm_procedure_source,
  2844. scm_reverse_lookup), dynl.c (scm_dynamic_link): Don't use C
  2845. operators to compare SCM values.
  2846. * debug.c (scm_make_debugobj), debug.h (SCM_DEBUGOBJ_FRAME,
  2847. SCM_SET_DEBUGOBJ_FRAME): Update SCM_{SET_}?DEBUGOBJ_FRAME to
  2848. access raw cell data with SCM_{SET_}?CELL_WORD_1.
  2849. * debug.c (scm_make_debugobj): Don't use SCM_SETCAR to set types.
  2850. * debug.c (scm_make_memoized), dynl.c (scm_dynamic_link): Smob
  2851. data is of type scm_bits_t.
  2852. 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2853. * gdbint.c (gdb_maybe_valid_type_p), guardians.c (TCONC_EMPTYP,
  2854. scm_guardian_zombify): Use SCM_EQ_P to compare SCM values.
  2855. * guardians.c (GUARDIAN): Use SCM_CELL_WORD_1 for raw data.
  2856. 2000-03-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2857. * ports.h (scm_port): Change type of stream member to scm_bits_t.
  2858. * gdbint.c (unmark_port, remark_port), ports.c (scm_markstream),
  2859. strports.c (st_resize_port, scm_mkstrport), vports (sf_flush,
  2860. sf_write, sf_fill_input, sf_close, scm_make_soft_port): Since
  2861. streams are now of type scm_bits_t, SCM streams have to be
  2862. unpacked/packed.
  2863. * ports.h (SCM_SETPTAB_ENTRY, SCM_SETSTREAM): Cast input to
  2864. scm_bits_t.
  2865. 2000-03-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2866. * coop-defs.h (struct coop_t): Added `sto'-field again because of
  2867. binary compatibility---let's remove it next time we alter some
  2868. major structure.
  2869. * coop.c (coop_quitting_p, coop_cond_create, coop_mutex_create,
  2870. coop_mother, coop_child): New variables.
  2871. (mother): New function.
  2872. (coop_create): New thread spawning mechanism which uses a "mother
  2873. thread". The "dummy" pthreads aren't healthy enough to give birth
  2874. to new threads since Linux threads thinks they are asleep.
  2875. * coop-defs.h (struct coop_t): Removed dummy_mutex.
  2876. * coop-defs.h, coop-threads.c (struct coop_t): Eliminate
  2877. `sto'-field when GUILE_PTHREAD_COMPAT is enabled.
  2878. 2000-03-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2879. * arbiters.c (scm_make_arbiter), async.c (scm_async), dynwind.c
  2880. (scm_internal_dynamic_wind): Smob data is always of type
  2881. scm_bits_t.
  2882. * arbiters.c (SCM_ARB_LOCKED, SCM_LOCK_ARB, SCM_UNLOCK_ARB):
  2883. Access the locking information in cell entry 0 with
  2884. SCM_{SET_}?CELL_WORD_0 instead of SCM_*CAR.
  2885. * async.c (scm_run_asyncs): Use SCM_NULLP to test for the empty
  2886. list.
  2887. * dynwind.c (scm_dowinds): Use SCM_EQ_P to compare SCM values.
  2888. * ports.h (SCM_PTAB_ENTRY, SCM_SETPTAB_ENTRY): Access the ptab
  2889. entry data using SCM_{SET_}?CELL_WORD_1 instead of SCM_{SET}?CDR.
  2890. 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2891. * alist.c (scm_sloppy_assq, scm_assq), eq.c (scm_eq_p, scm_eqv_p,
  2892. scm_equal_p), list.c (scm_ilength, scm_last_pair, scm_reverse,
  2893. scm_sloppy_memq, scm_delq_x, scm_delq1_x), tags.h (SCM_UNBNDP):
  2894. Don't use C operators == and != to compare SCM values, use
  2895. SCM_EQ_P instead.
  2896. * boolean.c (scm_boolean_p): Use SCM_BOOLP to determine whether a
  2897. SCM value is equal to #t or #f.
  2898. * eq.c (scm_eqv_p, scm_equal_p): Don't use SCM_CAR to access the
  2899. cell type entry of non immediate objects of unknown type. Use
  2900. SCM_CELL_TYPE instead.
  2901. * gh_data.c (gh_scm2bool, gh_module_lookup), list.c
  2902. (scm_sloppy_memv, scm_sloppy_member, scm_delv_x, scm_delete_x,
  2903. scm_delv1_x, scm_delete1_x), scmsigs.c (scm_sigaction): Use
  2904. SCM_FALSEP and SCM_TRUE_P to compare SCM values against #f and
  2905. #t.
  2906. * list.c (scm_listify): Use SCM_UNBNDP to test for an unbound
  2907. scheme value.
  2908. 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2909. * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread,
  2910. scm_make_mutex, scm_make_condition_variable): Cast data to
  2911. scm_bits_t in SCM_SET_CELL_WORD and SCM_NEWSMOB macros.
  2912. * coop.c (coop_create): Set `specific' field, not `data' to NULL.
  2913. 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2914. * smob.h (SCM_NEWSMOB, SCM_NEWSMOB2, SCM_NEWSMOB3, SCM_SMOB_DATA,
  2915. SCM_SET_SMOB_DATA, SCM_TC2SMOBNUM, SCM_SMOBNUM): To access smob
  2916. data, use SCM_{SET_}?CELL_TYPE or SCM_{SET_}?WORD_[1-3].
  2917. Note that this implies that smob data has always to be passed as
  2918. values of type scm_bits_t.
  2919. 2000-03-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  2920. * threads.c (scm_init_threads): Pass 0 size to scm_make_smob_type
  2921. for scm_tc16_thread. As the current COOP threads are written, GC
  2922. is not supposed to manage storage for threads.
  2923. * error.c (scm_error): Don't try to throw an error if
  2924. scm_gc_heap_lock is true.
  2925. * coop.c (coop_finish): New function. Called at exit.
  2926. (coop_aborthelp): Free thread structures when threads die.
  2927. Finished LinuxThreads compatibility support => COOP threads now
  2928. mesh with LinuxThreads.
  2929. * coop-threads.c (scm_call_with_new_thread, scm_spawn_thread):
  2930. Changed SETCDR --> SET_CELL_WORD_1.
  2931. * coop-threads.c (scheme_launch_thread): Set word 1 of handle to 0
  2932. when thread dies.
  2933. 2000-03-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2934. * boolean.h (SCM_TRUE_P): New macro.
  2935. * boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP), pairs.h
  2936. (SCM_NULLP, SCM_NNULLP): Use SCM_EQ_P to compare SCM values.
  2937. 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2938. * continuations.h (SCM_CONTREGS, SCM_SET_CONTREGS): New macros to
  2939. access continuation data.
  2940. (SCM_SETJMPBUF): Deprecated. Use SCM_SET_CONTREGS instead.
  2941. (SCM_JMPBUF, SCM_DYNENV, SCM_THROW_VALUE, SCM_BASE, SCM_SEQ,
  2942. SCM_DFRAME): Use SCM_CONTREGS instead of SCM_CHARS to access
  2943. continuation data.
  2944. * continuations.c (scm_make_cont), init.c (start_stack),
  2945. root.c (scm_internal_cwdr): Use SCM_SET_CONTREGS instead of
  2946. SCM_SETJMPBUF.
  2947. 2000-03-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2948. * symbols.h (SCM_LENGTH, SCM_SETLENGTH): Access the length field
  2949. of strings and symbols by using SCM_{SET_}?CELL_WORD_0.
  2950. (SCM_CHARS, SCM_UCHARS, SCM_SETCHARS): Use SCM_{SET_}?CELL_WORD_1
  2951. to access the char * field of strings and symbols.
  2952. 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2953. * gc.h (SCM_NEWCELL, SCM_NEWCELL2): Use SCM_SET_CELL_TYPE to set
  2954. the type entry of a new cell. Added a comment about things to
  2955. remember when updating the list of free cells.
  2956. (SCM_FREEP, SCM_MARKEDP): Use SCM_CELL_TYPE to access the type
  2957. entry of a cell.
  2958. 2000-03-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2959. * pairs.h (SCM_CAR, SCM_CDR, SCM_SETCAR, SCM_SETCDR): Use
  2960. SCM_CELL_OBJECT and SCM_SET_CELL_OBJECT. This change implies that
  2961. with strict type checking enabled these macros will only work if
  2962. given valid SCM parameters.
  2963. (SCM_GCCDR): Moved to tags.h.
  2964. * tags.h (SCM_GCCDR): Moved here from pairs.h.
  2965. 2000-03-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2966. * tags.h (SCM2PTR, PTR2SCM): Moved to gc.h.
  2967. * pairs.h (scm_cell, SCM_CELLPTR, SCM_CELL_WORD*, SCM_CELL_OBJECT*,
  2968. SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*, SCM_CELL_TYPE,
  2969. SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK, SCM_PTR_GT,
  2970. SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC, SCM_NEWCELL,
  2971. SCM_NEWCELL2): Moved to gc.h.
  2972. (SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR, SCM_SETAND_CDR,
  2973. SCM_SETOR_CAR, SCM_SETOR_CDR): Moved to gc.h. These names should
  2974. be changed, though, since the macros are not only pair related.
  2975. (SCMPTR): Deleted.
  2976. * gc.h (SCM2PTR, PTR2SCM, scm_cell, SCM_CELLPTR, SCM_CELL_WORD*,
  2977. SCM_CELL_OBJECT*, SCM_SET_CELL_WORD*, SCM_SET_CELL_OBJECT*,
  2978. SCM_CELL_TYPE, SCM_SET_CELL_TYPE, SCM_PTR_LT, SCM_PTR_MASK,
  2979. SCM_PTR_GT, SCM_PTR_LE, SCM_PTR_GE, SCM_CELL_WORD_LOC,
  2980. SCM_NEWCELL, SCM_NEWCELL2, SCM_CARLOC, SCM_CDRLOC, SCM_SETAND_CAR,
  2981. SCM_SETAND_CDR, SCM_SETOR_CAR, SCM_SETOR_CDR): Moved here from
  2982. tags.h and pairs.h.
  2983. 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2984. * tags.h (SCM_STRICT_TYPING): New macro that, if defined,
  2985. activates strict compile time type checking for variables of
  2986. type SCM.
  2987. (SCM, SCM_PACK, SCM_UNPACK): Define according to whether
  2988. SCM_STRICT_TYPING or SCM_VOIDP_TEST are defined.
  2989. (SCM_EQ_P): Defined as a macro equivalent for eq?.
  2990. 2000-03-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2991. * tags.h (SCM_POINTERS_MUNGED): Removed.
  2992. * gc.c (scm_gc_sweep, init_heap_seg): Removed use of
  2993. SCM_POINTERS_MUNGED, thus fixing some illegal casts to SCM.
  2994. 2000-03-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
  2995. * pairs.h (SCM_CELL_OBJECT, SCM_CELL_OBJECT_[0-3],
  2996. SCM_SET_CELL_OBJECT, SCM_SET_CELL_OBJECT_[0-3], SCM_CELL_TYPE,
  2997. SCM_SET_CELL_TYPE): Added a set of low level macros for accessing
  2998. cell entries.
  2999. (SCM_CELL_WORD_[0-3]): Renamed from the SCM_CELL_WORD[0-3].
  3000. * procs.h, procs.c: Instead of SCM_{SET_}?CELL_WORD[12], use the
  3001. newly introduced SCM_{SET_}?CELL_OBJECT_[12] macros.
  3002. 2000-03-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3003. * tags.h: Disabled definition of SCM_VOIDP_TEST.
  3004. Defining SCM as void * introduces problems which haven't been
  3005. handled yet. Developers who work with these issues can enable it
  3006. in their working copies.
  3007. Disabling this definition exposes a set of newly introduced and
  3008. older misuses of types which causes warning messages during
  3009. compilation. We'll fix this successively.
  3010. * gc.c (scm_mark_locations): Changed * (SCM **) X --> * (SCM *) X
  3011. in order to obtain a value of type SCM.
  3012. (scm_cellp): Updated with new changes to scm_mark_locations.
  3013. * continuations.h (SCM_SETJMPBUF): Cast second arg into SCM.
  3014. * continuations.c (scm_make_cont): Removed cast of size_t into
  3015. long.
  3016. * symbols.h (SCM_SETCHARS): Cast second arg into SCM.
  3017. 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3018. * numbers.h (SCM_SETNUMDIGS): Use SCM_BIGSIZEFIELD macro for
  3019. shifting, not constant. Thanks to Dale P. Smith.
  3020. * numbers.c (scm_sum, scm_difference): Don't test a SCM value
  3021. for being less than zero. Decode it to a C value first. Again,
  3022. thank you Dale.
  3023. 2000-03-22 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3024. * numbers.h, ramap.c, struct.h, vectors.h: Don't use SCM2PTR for
  3025. non scheme values. If raw data is stored in SCM variables, it has
  3026. to be accessed using SCM_UNPACK until a better solution is found.
  3027. 2000-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3028. * tags.h (SCM_ECONSP, SCM_NECONSP): More corrections of
  3029. pointer-arithmetic induced by the SCM_PACK/UNPACK change.
  3030. * print.c (scm_iprin1): SCM_PACK/UNPACK corrections.
  3031. * gc.c (scm_gc_sweep): SCM_PACK/UNPACK corrections.
  3032. * eval.c (SCM_CEVAL, scm_unmemocar): SCM_PACK/UNPACK corrections.
  3033. * dynwind.c (scm_swap_bindings): SCM_PACK/UNPACK corrections.
  3034. * async.c, __scm.h: Removed lots of the old async click logic. It
  3035. is possible to reinsert it by defining GUILE_OLD_ASYNC_CLICK in
  3036. __scm.h. Let's try this out and dump the old code after the
  3037. threads reorganization.
  3038. (set-tick-rate, set-switch-rate): Conditionally removed.
  3039. 2000-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3040. * gc.c (scm_gc_mark): Bugfix 1: The recent SCM_PACK/UNPACK change
  3041. made SCM values into pointers. This turned an arithmetic
  3042. computation of the address of the vcell into a pointer-arithmetic
  3043. one, thereby screwing up marking of structs.
  3044. Bugfix 2: Removed incompletely introduced loop variable `j' used
  3045. when protecting the tail array of a struct.
  3046. 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3047. * struct.h (SCM_STRUCT_DATA): Don't cast SCM values to pointers.
  3048. 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3049. * symbols.h, symbols.c (scm_strhash): Declare the string
  3050. parameter as constant, since it is not modified.
  3051. * symbols.c (scm_intern_obarray_soft,
  3052. scm_sysintern0_no_module_lookup): Can now pass constant strings
  3053. to scm_strhash without need for casting.
  3054. 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3055. * vectors.h (SCM_VELTS, SCM_VELTS_AS_STACKITEMS): Don't cast SCM
  3056. values to pointers. Use SCM2PTR instead.
  3057. 2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3058. * async.c (scm_set_tick_rate, scm_set_switch_rate): Don't unpack
  3059. results of SCM_INUM.
  3060. 2000-03-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3061. * init.c (scm_boot_guile_1): Renamed GUILE_GC_TRIGGER_1 -->
  3062. GUILE_MIN_YIELD_1, GUILE_GC_TRIGGER_2 --> GUILE_MIN_YIELD_2.
  3063. GUILE_MIN_YIELD_X now take *positive* fractions of heap size.
  3064. * gc.c, gc.h (SCM_MIN_YIELD_1, SCM_MIN_YIELD_2,
  3065. min_yield_fraction, min_yield, adjust_min_yield): Renamed from
  3066. SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2, gc_trigger_fraction,
  3067. gc_trigger, adjust_gc_trigger.
  3068. * gc.c (alloc_some_heap): Further improvement of minimal heap size
  3069. prediction.
  3070. (SCM_MAX): New macro.
  3071. (scm_freelist_t): New field: collected_1. Previous amount of
  3072. collected cells.
  3073. (gc_sweep_freelist_finish): Trigger based on two last values of
  3074. freelist->collected to avoid unnecessary allocation due to
  3075. temporary peaks.
  3076. (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2):
  3077. Adjusted to 45000 cells, 40% and 40%. Gives quick startup
  3078. without extra heap allocation.
  3079. 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3080. * numbers.h (SCM_MAKINUM): The parameter to SCM_MAKINUM should
  3081. already be a C value. No need to unpack it.
  3082. * numbers.c (scm_long_long2num): Cast the parameter to scm_bits_t
  3083. if we know it fits into an inum.
  3084. * ramap.c (ramap_rp): An scm_tc7_[ui]vect object does point to a
  3085. field of long values. In contrast, SCM_VELTS accesses a field of
  3086. SCM values.
  3087. 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3088. * gc.c (scm_gc_stats): Inserted explanation of local_scm_mtrigger
  3089. etc.
  3090. (scm_gc_yield_1): New variable: Holds previous yield. Used to
  3091. make better judgements.
  3092. (gc_sweep_freelist_finish): Inserted explanation of use of
  3093. gc_trigger.
  3094. * print.h, stacks.h, options.c, options.h: Changed C++
  3095. commentaries to C.
  3096. 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3097. * tags.h (SCM2PTR, PTR2SCM): Use SCM_PACK / SCM_UNPACK correctly.
  3098. * numbers.h (SCM_INUMP, SCM_MAKINUM, SCM_INUM0, SCM_COMPLEX_REAL,
  3099. SCM_COMPLEX_IMAG, SCM_NUMP, SCM_BDIGITS): Use SCM_PACK /
  3100. SCM_UNPACK / SCM2PTR correctly.
  3101. 2000-03-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3102. * gc.c (adjust_gc_trigger): Improved documentation.
  3103. (alloc_some_heap): Since gc_trigger is used against
  3104. freelist->collected, this is the value which should be used to
  3105. predict minimum growth.
  3106. 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3107. * eval.h: Fix mixup of packed/unpacked SCM values. (Thanks
  3108. Thien-Thi Nguyen for the patch.)
  3109. 2000-03-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3110. * numbers.c (scm_ash): Fixed typing problems with the second
  3111. parameter and added some documentation. (Thanks Thien-Thi Nguyen
  3112. for indicating the problem.)
  3113. 2000-03-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3114. * gc.c, gc.h (scm_gc_yield): New variable.
  3115. (adjust_gc_trigger): Use scm_gc_yield.
  3116. (alloc_some_heap): Use scm_gc_yield instead of
  3117. scm_gc_cells_collected.
  3118. * coop-threads.c: Addd #include "root.h", #include "strings.h".
  3119. * debug.c: Added #include "root.h". (Thanks to Thien-Thi Nguyen.)
  3120. * gc.c (scm_gc_for_newcell, adjust_gc_trigger): Improved GC
  3121. trigger adjustmeant: Take yield (freed cells) for all freelists
  3122. into account.
  3123. (SCM_INIT_HEAP_SIZE_1, SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Tuned
  3124. to 50000 cell heap with 45% trigger.
  3125. (scm_gc_cells_collected): Reintroduced.
  3126. (SCM_HEAP_SIZE): New macro.
  3127. (scm_gc_sweep): Reintroduced correct computation of
  3128. scm_cells_allocated.
  3129. (scm_freelist_t): Corrected commentary for field `cluster_size':
  3130. Clustersize counts objects, not cells; New member
  3131. `clusters_allocated'.
  3132. 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
  3133. * *.[hc]: add Emacs magic at the end of file, to ensure GNU
  3134. indentation style.
  3135. 2000-03-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3136. * threads.h: Added #include "libguile/throw.h". (Thanks to
  3137. Thien-Thi Nguyen.)
  3138. 2000-03-18 Michael Livshin <mlivshin@bigfoot.com>
  3139. * tags.h: (SCM_DOUBLE_CELLP, SCM_NDOUBLE_CELLP): new macros (bad
  3140. names, anyone got any better ones?)
  3141. * gc.h: (typedef struct scm_freelist_t) remove from here.
  3142. * gc.c: (CELL_UP, CELL_DN) made these macros take additional
  3143. parameter (the span).
  3144. (CLUSTER_SIZE_IN_BYTES, ALIGNMENT_SLACK) new macros.
  3145. (typedef struct scm_freelist_t) moved here from gc.h, it had no
  3146. business being externally visible.
  3147. (typedef struct scm_heap_seg_data_t) renamed from
  3148. scm_heap_seg_data, to be style-compliant.
  3149. (scm_mark_locations) if the possible pointer points to a
  3150. double-cell, check that it's properly aligned.
  3151. (init_heap_seg) align double-cells properly, work with the
  3152. assumption that the segment size divides cleanly by cluster size.
  3153. (round_to_cluster_size) new function.
  3154. (alloc_some_heap, make_initial_segment) use round_to_cluster_size
  3155. to satisfy the new init_heap_seg invariant.
  3156. 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3157. * _scm.h: Don't include async.h everywhere...
  3158. * eq.c eval.c iselect.c: ... only include it here.
  3159. 2000-03-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3160. * _scm.h: Don't include root.h everywhere...
  3161. * async.c continuations.c eq.c eval.c evalext.c feature.c gc.c
  3162. gdbint.c gsubr.c ioext.c keywords.c lang.c load.c macros.c
  3163. numbers.c objprop.c ports.c print.c procprop.c ramap.c read.c
  3164. srcprop.c stackchk.c stacks.c strports.c symbols.c unif.c
  3165. variable.c vectors.c vports.c: ... only include it here.
  3166. 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3167. * _scm.h: Don't include strings.h everywhere...
  3168. * backtrace.c dynl.c error.c feature.c filesys.c fports.c gc.c
  3169. gdbint.c ioext.c load.c net_db.c numbers.c objects.c options.c
  3170. ports.c posix.c print.c procs.c random.c read.c regex-posix.c
  3171. simpos.c socket.c stacks.c stime.c strop.c strports.c struct.c
  3172. symbols.c unif.c vectors.c version.c vports.c: ... only include it
  3173. here.
  3174. 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3175. * _scm.h: Don't include ports.h everywhere...
  3176. * arbiters.c backtrace.c debug.c dynl.c dynwind.c eval.c feature.c
  3177. fluids.c gc.c gdbint.c guardians.c hash.c keywords.c mallocs.c
  3178. numbers.c objects.c print.c read.c root.c smob.c srcprop.c
  3179. stackchk.c strports.c struct.c throw.c variable.c: ... only
  3180. include it here.
  3181. 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3182. * _scm.h: Don't include vectors.h everywhere...
  3183. * eq.c eval.c filesys.c gc.c gsubr.c guardians.c hash.c hashtab.c
  3184. keywords.c net_db.c numbers.c objects.c posix.c print.c procprop.c
  3185. procs.c ramap.c random.c read.c scmsigs.c socket.c sort.c stime.c
  3186. strports.c symbols.c unif.c vports.c weaks.c: ... only include it
  3187. here.
  3188. 2000-03-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
  3189. * genio.h: removed. (Only content was '/* delete me */'.)
  3190. * Makefile.am arbiters.c backtrace.c debug.c dynl.c dynwind.c
  3191. error.c filesys.c fluids.c gc.c gsubr.c guardians.c keywords.c
  3192. libguile.h mallocs.c numbers.c print.c random.c read.c root.c
  3193. srcprop.c stackchk.c struct.c threads.c throw.c variable.c:
  3194. Removed reference to genio.h
  3195. 2000-03-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3196. * gc.c, gc.h: Cleanup of the change of 2000-03-15.
  3197. Cluster sizes are now independent of GC trigger values.
  3198. GUILE_GC_TRIGGER_n can now specify a relative trigger value:
  3199. A negative integer gives fraction of total heap size in percent.
  3200. (SCM_GC_TRIGGER_1, SCM_GC_TRIGGER_2): Default values set to -40.
  3201. * init.c (scm_boot_guile_1): Introduced new variable
  3202. GUILE_MAX_SEGMENT_SIZE; New environment variable names:
  3203. GUILE_INIT_SEGMENT_SIZE_1, GUILE_GC_TRIGGER_1,
  3204. GUILE_INIT_SEGMENT_SIZE_2, GUILE_GC_TRIGGER_2
  3205. 2000-03-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3206. * __scm.h (GC_FREE_SEGMENTS): Disable this until we have made
  3207. freeing of segment work with the new GC scheme. (Thanks to
  3208. Michael Livshin.) Oops, also happened to make GUILE_NEW_GC_SCHEME
  3209. the default, but I'll let this change stay in CVS Guile since this
  3210. code is not expected to contain serious bugs.
  3211. 2000-03-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3212. * gc.c, gc.h (scm_map_free_list): Define also if GUILE_DEBUG is
  3213. defined.
  3214. (scm_free_list_length): New procedure (GUILE_DEBUG).
  3215. Fixed a small but serious bug introduced by the previous change.
  3216. * gc.c (scm_gc_sweep): Moved variable n_objects to inner sweep
  3217. loop and declare as register.
  3218. * gc.c (scm_gc_sweep): Sigh... forgot to clear private freelists
  3219. after GC.
  3220. Wed Mar 15 08:27:04 2000 Greg J. Badros <gjb@cs.washington.edu>
  3221. * fluids.c: Docstring patch from Keisuke Nishida. Some
  3222. reindentation, too, and a couple formals renamed. Should
  3223. fluid-set! return UNSPECIFIED instead of a value?
  3224. Wed Mar 15 08:24:58 2000 Greg J. Badros <gjb@cs.washington.edu>
  3225. * Makefile.am: Separate out DOT_X_FILES and DOT_DOC_FILES, and
  3226. generate the latter from the concrete listing of the former. Then
  3227. make guile-procedures.txt depend on DOT_DOC_FILES instead of
  3228. *.doc, so that rebuilding it works.
  3229. Wed Mar 15 08:12:14 2000 Greg J. Badros <gjb@cs.washington.edu>
  3230. * libguile.h: Include libguile/validate.h. Thanks Keisuke Nishida!
  3231. * guile-snarf.awk.in: Replace docstring line-ending \n" and \n\n"
  3232. with nothing and \n, respectively. Thanks Keisuke Nishida for
  3233. noticing this problem.
  3234. 2000-03-15 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3235. * __scm.h (GUILE_NEW_GC_SCHEME): Define this if you want to test a
  3236. new way of allocating heap. It makes Guile fast, but still
  3237. contains bugs.
  3238. * gc.c, gc.h, pairs.h, init.c: Implementation of a new way of
  3239. allocating heap. The basic idea is to trigger GC every Nth
  3240. allocated cell and grow heap when free list runs out. The scheme
  3241. has been extended so that GC isn't triggered until all remaining
  3242. cells are used. The implementation is also prepared for
  3243. development in the direction of POSIX threads.
  3244. * gc.c (SCM_EXPHEAP): In order to grow by a factor of 1.5,
  3245. SCM_EXPHEAP should return half of the heap size.
  3246. 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3247. The following change to init.c is only enabled if Guile was
  3248. configured with --enable-guile-debug.
  3249. * init.c (scm_i_getenv_int): New function.
  3250. (scm_boot_guile_1): Use the environment variables
  3251. GUILE_INIT_HEAP_SIZE, GUILE_INIT_HEAP_SIZE2 to select heap size if
  3252. they exist. (This may be replaced by a Scheme level mechanism in
  3253. the future.)
  3254. * objprop.c (s_scm_set_object_property_x): Use scm_assq instead of
  3255. scm_assoc. (Thanks to Keisuke Nishida.)
  3256. 2000-03-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3257. * eval.c, lang.c, lang.h (scm_lisp_nil, scm_lisp_t): Renamed from
  3258. scm_nil, scm_t. (Thanks to Keisuke Nishida.)
  3259. 2000-03-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3260. * init.c (scm_boot_guile_1): Use same initial segment size for
  3261. 1-word and 2-word segments. Having the smaller size causes Guile
  3262. to GC too often. Obviously something needs to be done to allow
  3263. for a smaller 2-word segment without this to happen. (The amount
  3264. of heap for each type should be automatically adapted to the
  3265. application somehow.)
  3266. [Almost all of these changes should be documented in the NEWS
  3267. file.]
  3268. * gc.h (scm_freelist_t): New type.
  3269. * pairs.h (SCM_NEWCELL, SCM_NEWCELL2): Use new style freelists.
  3270. * gc.c (SCM_INIT_HEAP_SIZE): Changed from 32768 --> 40000 so that
  3271. all of Guile basics fits into one segment and there suitable room
  3272. for work.
  3273. (SCM_EXPHEAP): Now takes an argument. Grow by a factor of 1.5
  3274. instead of 2.
  3275. (scm_freelist, scm_freelist2): Now of type scm_freelist_t.
  3276. Freelists now contains information about object span, cells
  3277. collected and amount of cells in heap segments belonging to the
  3278. list.
  3279. (scm_heap_size, scm_gc_cells_collected): Removed.
  3280. * init.c (scm_boot_guile_1): Make 2-word segment 8K (512 cells).
  3281. * Makefile.am (libguile_la_LDFLAGS): Bumped library version
  3282. number.
  3283. * __scm.h eq.c, eval.c, gc.c, gc.h, gh_data, hash.c, numbers.c,
  3284. numbers.h, objects.c, ramap.c, random.c, unif.c, unif.h: Extensive
  3285. rewrite of handling of real and complex numbers.
  3286. (SCM_FLOATS, SCM_SINGLES): These #ifdef conditionals have been
  3287. removed along with the support for floats. (Float vectors are
  3288. still supported.)
  3289. * tags.h (scm_tcs_bignums): Removed.
  3290. (scm_tc16_bigpos, scm_tc16_bigneg): Replaced by scm_tc16_big.
  3291. Use SCM_BIGSIGN(x) to test for sign!
  3292. (scm_tc16_big): The new bignum type.
  3293. (SCM_REAL_PART, SCM_IMAG_PART): Removed.
  3294. * numbers.h (SCM_BIGSIGN): Sign moved to bit 16.
  3295. (scm_makdbl): Deprecated.
  3296. (SCM_NEWREAL, SCM_NEWCOMPLEX): New macros.
  3297. (SCM_SINGP): Deprecated.
  3298. (SCM_FLO): Removed.
  3299. (SCM_INEXP, SCM_CPLXP): Deprecated.
  3300. (SCM_INEXACTP, SCM_COMPLEXP): New macros.
  3301. (SCM_COMPLEX_REAL, SCM_COMPLEX_IMAG): Renamed from
  3302. SCM_REAL, SCM_IMAG (and now only valid for complex numbers).
  3303. (SCM_REAL, SCM_IMAG): New, *deprecated*, selectors which work both
  3304. for doubles and complex numbers.
  3305. (SCM_REAL_VALUE): New selector for doubles.
  3306. (scm_double_t, scm_complex_t): New types.
  3307. (scm_dbl): Removed.
  3308. * numbers.c (scm_floprint, scm_floequal): Removed.
  3309. (scm_print_real, scm_print_complex, scm_real_equalp,
  3310. scm_complex_equalp): New functions.
  3311. * unif.c (scm_makflo): Removed.
  3312. * smob.h (SCM_SMOB_PREDICATE): New macro.
  3313. (SCM_NEWSMOB2, SCM_RETURN_NEWSMOB2, SCM_NEWSMOB3,
  3314. SCM_RETURN_NEWSMOB3): New macros.
  3315. 1999-11-21 Michael Livshin <mlivshin@bigfoot.com>
  3316. The following changes implement primitive support for double cells
  3317. (i.e. four-word cells) and change the representation of some
  3318. things to multi-cells instead of cons+malloc. (Applied and
  3319. modified by mdj.)
  3320. * pairs.h (SCM_NEWCELL2): double-cell variants of SCM_NEWCELL.
  3321. (SCM_CELL_WORD, SCM_CELL_WORDLOC, SCM_SET_CELL_WORD): primitive
  3322. multi-cell access macros (used by the ones below).
  3323. (SCM_CELL_WORD[0-3], SCM_SET_CELL_WORD[0-3]): multi-cell access
  3324. macros.
  3325. * gc.c (scm_freelist2): multi-cell freelists.
  3326. (inner_map_free_list): map_free_list, parameterized on ncells.
  3327. "nn cells in segment mm" was misleading for ncells > 1; changed to
  3328. "objects". still print cells too, though.
  3329. (scm_map_free_list): rewritten using inner_map_free_list.
  3330. (scm_check_freelist): get freelist as parameter, since now we have
  3331. more than one.
  3332. (scm_debug_newcell2): multi-cell variants of
  3333. scm_debug_newcell.
  3334. (scm_gc_for_newcell): take ncells and freelist pointer as
  3335. parameters.
  3336. (scm_gc_mark): add case for tc7_pws (procedures with setters are
  3337. now double cells).
  3338. (scm_gc_sweep): don't free the float data, since it's not malloced
  3339. anymore.
  3340. (init_heap_seg): didn't understand what n_new_objects stood for,
  3341. so changed to n_new_cells.
  3342. (make_initial_segment): new function, makes an initial segment
  3343. according to given ncells.
  3344. (scm_init_storage): call make_initial_segment, for ncells={1,2,3}.
  3345. * numbers.c (scm_makdbl): no malloc'ing needed, so the
  3346. {DEFER,ALLOW}_INTS thing removed.
  3347. * numbers.h (struct scm_dbl): changed to represent a double cell,
  3348. with the number in the second half.
  3349. * dynwind.c: changed the wind-guards representation to double
  3350. cell.
  3351. * procs.c, procs.h: changed the procedure-with-setter representation
  3352. to double cell.
  3353. * async.c, async.h: made async representation a double cell.
  3354. * dynl.c: made dynamic_obj representation a double cell.
  3355. 2000-03-13 Gary Houston <ghouston@arglist.com>
  3356. * ports.c (flush_void_port): renamed to flush_port_default.
  3357. (end_input_void_port): renamed to end_input_default.
  3358. * init.c (scm_standard_stream_to_port): create a void port instead
  3359. of opening /dev/null if the standard file descriptors are bad.
  3360. advantages: no portability problems, doesn't waste a file descriptor,
  3361. simplifies the code (thanks to Marius for the idea).
  3362. * vports.c (s_scm_make_soft_port): call scm_port_non_buffer.
  3363. * void ports: make reading from a void port give EOF instead of
  3364. segv:
  3365. * ports.c (s_scm_sys_make_void_port): modified docstring.
  3366. (fill_input_void_port): new proc.
  3367. (scm_init_ports): set up fill_input_void_port.
  3368. * ports.c (scm_port_non_buffer): new proc.
  3369. (scm_void_port): call scm_port_non_buffer.
  3370. * fports.c (scm_setvbuf): docstring: remove the fcntl documentation
  3371. which was incorrectly appended.
  3372. 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3373. * guile-doc-snarf.in: Don't use absolute path for `sed'. (Note
  3374. that we can't use autoconf for this. Autoconf itself relies on
  3375. the existence of `sed' somewhere on your path.) (Thanks to Dirk
  3376. Herrman.)
  3377. 2000-03-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3378. * Makefile.am (libguile_la_SOURCES): Moved iselect.c here from
  3379. EXTRA_libguile_la_SOURCES.
  3380. * iselect.h: Always declare scm_internal_select.
  3381. * iselect.c (scm_internal_select): Added SCM_ASYNC_TICK at the
  3382. end. Also let scm_internal_select be a real function also when
  3383. not using threads.
  3384. * __scm.h (SCM_TICK): Oops! Forgot to put SCM_ASYNC_TICK here...
  3385. 2000-03-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3386. * __scm.h (SCM_ALLOW_INTS, SCM_REALLOW_INTS): Removed call to
  3387. SCM_ASYNC_TICK. (This is a preparation for POSIX threads support,
  3388. and kind of an experiment: Will this cause problems?)
  3389. Sun Mar 12 13:26:30 2000 Greg J. Badros <gjb@cs.washington.edu>
  3390. * Makefile.am: Added *.doc to DISTCLEANFILES.
  3391. 2000-03-12 Gary Houston <ghouston@arglist.com>
  3392. * fports.c (scm_fdes_to_port): call fcntl F_GETFL to test that
  3393. the fdes is valid before doing anything else. check that
  3394. the file descriptor supports the modes required.
  3395. (scm_fport_buffer_add): don't throw an error if fstat doesn't
  3396. work: just use the default buffer size.
  3397. * throw.c: change an outdated comment about scm_internal_catch
  3398. BODY: it doesn't take a jumpbuf arg.
  3399. * init.c (scm_standard_stream_to_port): install a handler in case
  3400. scm_fdes_to_port throws an error. don't check here whether the
  3401. file descriptor is valid, since scm_fdes_to_port will do that.
  3402. set the revealed count depending on whether the port got the
  3403. standard file descriptor.
  3404. (stream_body_data): new type.
  3405. (stream_body, stream_handler): new procs.
  3406. 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3407. * stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):
  3408. Renamed from SCMWORD.
  3409. * tags.h (SCM_NCELLP): Removed (SCMWORD).
  3410. * arbiters.c (SCM_ARB_LOCKED): Use SCM_UNPACK_CAR.
  3411. * async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,
  3412. feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h,
  3413. hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c,
  3414. objects.h, options.c, pairs.h, ports.c, ports.h, print.c,
  3415. procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c,
  3416. stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h,
  3417. throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c,
  3418. weaks.h (SCM_PACK, SCM_UNPACK, SCM_UNPACK_CAR): Renamed from
  3419. SCM_ASSCM, SCM_ASWORD, SCM_CARW).
  3420. * numbers.h (SCM_SRS, SCM_INUM): Corrected SCM_ASSCM/ASWORD fixes.
  3421. * alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
  3422. tags.h: Fixed copyright notices.
  3423. * struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
  3424. 2000-03-12 Marius Vollmer <mvo@zagadka.ping.de>
  3425. * init.c (scm_standard_stream_to_port): Check whether the file
  3426. descriptor is valid and substitute "/dev/null" when not.
  3427. 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3428. * coop-defs.h (struct timespec): Conditionally defined.
  3429. * coop.c (coop_condition_variable_timed_wait_mutex): Use ETIMEDOUT
  3430. instead of ETIME.
  3431. * readline.c (match_paren): Bugfix: First arg to select is not
  3432. number of descriptors but the number of the highest descriptor +
  3433. 1.
  3434. This is a preliminary attempt at a cleanup of the threads support
  3435. code. It moves things to better places, makes arguments more
  3436. consistent with the POSIX API (which is used in GNOME's glib), and
  3437. adds new functionality.
  3438. * readline.c (scm_init_readline): Added new arg to scm_init_mutex.
  3439. * coop-defs.h (scm_mutex_trylock): New macro: alias for
  3440. coop_mutex_trylock.
  3441. (scm_cond_init): Changed definition to
  3442. coop_new_condition_variable_init.
  3443. * coop.c: #include <errno.h>
  3444. (coop_timeout_qinsert): Moved here from iselect.c
  3445. (coop_new_mutex_init, coop_new_condition_variable_init): New
  3446. functions. The strange names are temporary. Use scm_mutex_init
  3447. and scm_cond_init instead.
  3448. (coop_mutex_trylock): New function. Uses errno.h:EBUSY. errno.h
  3449. is ANSI C, but should we check for individual error codes in
  3450. configure.in?
  3451. (coop_condition_variable_timed_wait_mutex): New function.
  3452. (coop_key_create, coop_setspecific, coop_getspecific,
  3453. coop_key_delete): New functions.
  3454. * iselect.c (coop_timout_qinsert): Moved to coop.c
  3455. 2000-03-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3456. * pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
  3457. SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
  3458. * tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
  3459. Layout cleanups.
  3460. * objects.h (SCM_CLASS_FLAGS, SCM_OBJ_CLASS_FLAGS,
  3461. SCM_SET_CLASS_INSTANCE_SIZE), struct.h (SCM_STRUCT_VTABLE_DATA),
  3462. proc.h (SCM_CLOSCAR): SCM_ASSCM/WORD fixes.
  3463. * eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
  3464. dealing with ilocs.
  3465. 2000-03-11 Dale P. Smith <dpsm@en.com>, applied by Greg J. Badros, <gjb@cs.washington.edu>
  3466. * numbers.c (scm_copy_big_dec, scm_copy_smaller, scm_big_ior,
  3467. scm_big_xor, scm_big_and, scm_big_test): Added new lowlevel bignum
  3468. logical functions from SCM.
  3469. (logand, logior, logxor, logtest, logbit?): Extended scheme
  3470. logical functions to use bignums from SCM.
  3471. (lognot): Removed call to `SCM_VALIDATE_INUM' that prevented
  3472. lognot from using bignums.
  3473. Thu Mar 9 11:33:25 2000 Greg J. Badros <gjb@cs.washington.edu>
  3474. * vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
  3475. eliminating some warnings.
  3476. * unif.c, strports.c, print.c, options.c: Fix some warnings on
  3477. mis-use of SCM/long
  3478. * gc.c, gc.h: Added scm_return_first_int(), and added comment re:
  3479. what the scm_return_first* functions do.
  3480. 2000-03-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>, applied by Greg J. Badros, <gjb@cs.washington.edu>
  3481. * libguile/*.[ch]: make a distinction between SCM as a generic
  3482. name for a Scheme object (now a void*), and SCM as 32 bit word for
  3483. storing tags and immediates (now a long int). Introduced
  3484. SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
  3485. code in the process: arbiter.c (use macros), unif.c (scm_array_p),
  3486. Wed Mar 8 10:15:59 2000 Greg J. Badros <gjb@cs.washington.edu>
  3487. * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
  3488. various logXXX primitives. Thanks Eric Moore!
  3489. Tue Mar 7 08:05:22 2000 Greg J. Badros <gjb@cs.washington.edu>
  3490. * run-test, remaining-docs-needed: Added these scripts. The
  3491. second one is only temporary until the docstring additions are
  3492. complete. run-test may best live on, but is here mostly for
  3493. convenience and awareness for now.
  3494. * hash.c: Docs, minor cleanup patch from Dirk Herrman.
  3495. Thu Mar 2 16:06:58 2000 Greg J. Badros <gjb@cs.washington.edu>
  3496. * error.h, error.c: Added `scm_wrong_type_arg_msg' to support
  3497. displaying the expected type. Use SCM_LISTn in a couple places
  3498. instead of scm_cons-ing by hand.
  3499. * __scm.h: Added SCM_ASSERT_TYPE macro.
  3500. * validate.h, scm_validate.h: Added the former, as a renamed
  3501. version of the latter with SCM_ASSERT_TYPE used in
  3502. SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
  3503. * Makefile.am: Rename scm_validate.h to validate.h.
  3504. * *.c, *.h: Include validate.h, not scm_validate.h (old name's
  3505. prefix was superfluous).
  3506. Thu Mar 2 15:33:12 2000 Greg J. Badros <gjb@cs.washington.edu>
  3507. * hashtab.c: Improved documentation for lots of functions. Added
  3508. handwritten docs for `hash-fold'.
  3509. Thu Mar 2 15:13:25 2000 Greg J. Badros <gjb@cs.washington.edu>
  3510. * list.c: Added hand-written docs for `del{q,v,ete}1!'.
  3511. Thu Mar 2 12:38:30 2000 Greg J. Badros <gjb@cs.washington.edu>
  3512. * list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
  3513. added append docs from R4RS.
  3514. * strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
  3515. Thanks Dirk Hermann!
  3516. * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
  3517. deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
  3518. * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
  3519. Drop use of SCM_P for function prototypes... assume an ANSI C
  3520. compiler. Thanks Dirk Hermann!
  3521. Sat Feb 19 12:20:12 2000 Greg J. Badros <gjb@cs.washington.edu>
  3522. * ports.c: Made `set-port-column!' and `set-port-line!' each
  3523. return SCM_UNSPECIFIED instead of a (not-scheme-object) integer
  3524. that caused a seg fault. Also fixed `set-port-column!'s
  3525. docstring. Thanks Han-Wen Nienhuys for finding the bug!
  3526. Sun Feb 13 19:11:42 2000 Greg J. Badros <gjb@cs.washington.edu>
  3527. * arbiters.c, eq.c, gc.c, guardians.c, list.c, ports.c, print.c,
  3528. regex-posix.c, scmsigs.c, stime.c, strings.c, variable.c, stime.c,
  3529. strings.c, variable.c: Added lots of documentation, cleaned up
  3530. some existing documentation. Occasionally changed formal params
  3531. to match docs. Also folded an #ifdef into the inners of a
  3532. primitive instead of having two copies of the primitive
  3533. (`get-internal-real-time', from stime.c)
  3534. Sun Feb 13 18:12:19 2000 Greg J. Badros <gjb@cs.washington.edu>
  3535. * ports.c: Added docs for primitives missing them. Written by
  3536. hand.
  3537. Sun Feb 13 09:40:36 2000 Greg J. Badros <gjb@cs.washington.edu>
  3538. * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
  3539. just execing guile-func-name-check. Thanks Michael Livshin!
  3540. Thu Feb 10 11:43:23 2000 Greg J. Badros <gjb@cs.washington.edu>
  3541. * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
  3542. dead code. Patch from Michael Livshin.
  3543. * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from
  3544. Michael Livshin.
  3545. 2000-02-09 Gary Houston <ghouston@arglist.com>
  3546. * init.c (scm_init_standard_ports): when stdout is a tty, make the
  3547. current-output-port unbuffered by default. this is less confusing
  3548. for interactive use. it was line-buffered because of a
  3549. performance problem with unbuffered ports, but I think it will be
  3550. OK now.
  3551. 2000-02-08 Gary Houston <ghouston@arglist.com>
  3552. * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
  3553. is not defined.
  3554. * stime.c (scm_localtime, scm_mktime): if neither HAVE_TM_ZONE nor
  3555. HAVE_TZNAME are defined, use an empty string instead of giving two
  3556. spurious compile-time errors.
  3557. Tue Feb 8 13:57:46 2000 Greg J. Badros <gjb@cs.washington.edu>
  3558. * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
  3559. Thanks Richard!
  3560. Mon Feb 7 09:07:31 2000 Greg J. Badros <gjb@cs.washington.edu>
  3561. * macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
  3562. Sun Feb 6 20:26:21 2000 Greg J. Badros <gjb@cs.washington.edu>
  3563. * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
  3564. (which is GNU GPL'd).
  3565. 2000-01-31 Gary Houston <ghouston@arglist.com>
  3566. * strings.h: don't use SCM_P. don't include <string.h>.
  3567. * error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.
  3568. * strings.c (scm_string_ref): make the 2nd argument compulsory.
  3569. previously it defaulted to zero for no good reason that I can see.
  3570. use a local variable for SCM_INUM (k). replace
  3571. SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.
  3572. (scm_makfromstr): cosmetic changes.
  3573. (scm_string): Accept only chars in the list, not strings, for
  3574. conformance to R5RS (particularly for list->string, which is
  3575. supposed to be the inverse of string->list.) remove
  3576. SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
  3577. scm_makstr handles the cell allocation. when reporting wrong-type
  3578. arg, don't report the position as 1.
  3579. * posix.c (scm_init_posix): intern PIPE_BUF if it's defined.
  3580. 2000-01-29 Gary Houston <ghouston@arglist.com>
  3581. * posix.c (scm_pipe): rewrote the docstring.
  3582. * filesys.c (scm_select, retrieve_select_type, get_element,
  3583. fill_select_type, set_element): modified so that Scheme
  3584. "select" tests port buffers for the ability to provide input
  3585. or accept output. Previously only the underlying file descriptors
  3586. were checked. Rewrote the docstring.
  3587. Thu Jan 27 10:14:25 2000 Greg J. Badros <gjb@cs.washington.edu>
  3588. * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
  3589. from Gregg Reynolds. Thanks Gregg!
  3590. Thu Jan 27 09:59:38 2000 Greg J. Badros <gjb@cs.washington.edu>
  3591. * strop.c (scm_i_index): Obfuscated commented-out SCM_DEFINE by
  3592. adding "x" prefix to the line so that guile-func-name-check
  3593. doesn't complain unnecessarily.
  3594. Wed Jan 26 17:33:52 2000 Greg J. Badros <gjb@cs.washington.edu>
  3595. * throw.c: Factor out an #ifdef/#else/#endif choice more finely
  3596. for maintainability.
  3597. * strop.c: Documentation added by Gregg A. Reynolds. Pasted in
  3598. from qdocs, RnRs.
  3599. Wed Jan 26 10:02:11 2000 Greg J. Badros <gjb@cs.washington.edu>
  3600. * tag.c: Added doc for `tag', but mark as deprecated since Mikael
  3601. suggests removing tag.c altogether (and using a new `class-of'
  3602. instead).
  3603. * strings.c: Added documentation from Gregg A. Reynolds. Edited
  3604. a bit by me to use FOO instead of @var{foo} and to have the
  3605. summary come before preconditions on input. Also dropped trailing
  3606. (rnrs) note.
  3607. * gsubr.c: Do not use SCM_DEFINE for `gsubr-apply'. Register the
  3608. function with scm_make_subr_opt w/ last arg of 0 so it is not
  3609. visible at the Scheme level. Mikael says that this is the right
  3610. thing because the first arg to the proc is the guts of a compiled
  3611. closure and shouldn't be exposed to the Scheme level.
  3612. Tue Jan 25 17:15:47 2000 Greg J. Badros <gjb@cs.washington.edu>
  3613. * sort.c: typo in comment fixed.
  3614. * keywords.c: Added documentation.
  3615. * guardians.c: Added documentation (could be better).
  3616. * gc.c: Added docs for gc-set-debug-check-freelist.
  3617. * eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
  3618. * boolean.c: Added docs for `not', `boolean?' (by hand).
  3619. Tue Jan 25 13:28:56 2000 Greg J. Badros <gjb@cs.washington.edu>
  3620. * random.c: Added documentation, from SLIB page:
  3621. http://angela.ctrl-c.liu.se/~calle/scheme/slib_toc.html
  3622. Mon Jan 24 17:50:20 2000 Greg J. Badros <gjb@cs.washington.edu>
  3623. * variable.c, version.c: Added documentation, written by hand
  3624. since I could not find anything already written that was
  3625. relevant.
  3626. 2000-01-23 Gary Houston <ghouston@arglist.com>
  3627. * filesys.c (scm_chown): omit port/fdes support if HAVE_FCHOWN is
  3628. not defined (thanks to Richard Y. Kim).
  3629. Thu Jan 20 13:00:38 2000 Greg J. Badros <gjb@cs.washington.edu>
  3630. * Makefile.in: Removed, this is auto-generated.
  3631. Thu Jan 20 11:33:47 2000 Dirk Hermann <dirk@ida.ing.tu-bs.de> --applied 01/20/00 gjb
  3632. * list.c: Put some variable initialization code at the point of
  3633. declaration; Added a comment for list*; Formatting changes.
  3634. * load.c: use SCM_NNULLP to make sure the end of a list is not
  3635. reached yet.
  3636. 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3637. * backtrace.c (scm_display_error_message): Bugfix: Don't use
  3638. result of scm_list_p as C boolean.
  3639. (scm_display_error_message, scm_set_print_params_x): Use new
  3640. validation macros. (Thanks to Dirk Herrmann.)
  3641. * net_db.c (scm_resolv_error): Cast result from hstrerror.
  3642. * strports.c (st_end_input): Inserted parenthesis to get operator
  3643. grouping correct.
  3644. * list.h (scm_init_list): Removed SCM_P around prototypes.
  3645. * fports.c, list.c, numbers.c, ports.c, stime.c, symbols.c,
  3646. filesys.c, posix.c: Converted docstrings to ANSI C format and
  3647. escaped " occurring inside string literals.
  3648. Tue Jan 18 13:21:08 2000 Mikael Djurfeldt <mdj@r11n07-s.pdc.kth.se>
  3649. * posix.c (scm_mknod): Escape " occuring inside docstring.
  3650. 2000-01-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3651. * alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
  3652. evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
  3653. keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
  3654. objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
  3655. ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
  3656. stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
  3657. symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
  3658. weaks.c: Converted docstrings to ANSI C format.
  3659. * filesys.c (scm_chmod), simpos.c (scm_system), version
  3660. (scm_version), vports (scm_make_soft_port): Escape " occuring
  3661. inside docstring.
  3662. Mon Jan 17 11:41:22 2000 Greg J. Badros <gjb@cs.washington.edu>
  3663. * scm_validate.h: Added SCM_VALIDATE_ULONG_COPY,
  3664. SCM_VALIDATE_LONG_COPY
  3665. * numbers.c: Use SCM_VALIDATE_ULONG_COPY, instead of
  3666. SCM_VALIDATE_INUM_COPY to let bigger numbers be used. Rename a
  3667. couple of formal arguments (and fix their uses) to make arguments
  3668. match the documentation.
  3669. 2000-01-14 <mstachow@alum.mit.edu>
  3670. * Makefile.am: Augment path when running guile-doc-snarf so
  3671. guile-func-name-check is found.
  3672. Fri Jan 14 09:34:55 2000 Greg J. Badros <gjb@cs.washington.edu>
  3673. * scm_validate.h (SCM_NUM2LONG_DEF): Fix this macro to just use
  3674. def, not SCM_MAKINUM(def); thanks Janis Bzerins!
  3675. Wed Jan 12 00:06:53 2000 Greg J. Badros <gjb@cs.washington.edu>
  3676. * net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's
  3677. the way guile-1.3.4 worked, but #if 0 out the version using
  3678. SCM_VALIDATE_INUM_COPY for stricter testing.
  3679. Tue Jan 11 18:24:18 2000 Greg J. Badros <gjb@cs.washington.edu>
  3680. * guile-doc-snarf.in: Use new $fullfilename for running
  3681. guile-func-name-check, and put "$fullfilename" and "$filename" in
  3682. quotes at uses to make sure re-splitting on whitespace does not
  3683. occur (so filenames w/ embedded whitespace would work okay, though
  3684. I sure hope we never have to deal with that! :-) ). Thanks to
  3685. Mikael for pointing out the source_dir != build_dir was broken.
  3686. Tue Jan 11 17:42:40 2000 Greg J. Badros <gjb@cs.washington.edu>
  3687. * scm_validate.h: Added SCM_NUM2LONG_DEF macro. Make
  3688. SCM_OUT_OF_RANGE use SCM_MAKINUM, not scm_long2num. Added
  3689. SCM_COERCE_ROSTRING macro. Added SCM_VALIDATE_NONEMPTYLIST
  3690. macro. Fix SCM_VALIDATE_STRINGORSUBSTR macro to not use SLOPPY
  3691. variants.
  3692. * ports.c (scm_port_closed_p): Validate that the arg is a PORT,
  3693. then return whether it's an open port (was validating that it was
  3694. an open port -- this was a bug I introduced back in December, but
  3695. my careful reading of diffs caught it).
  3696. * numbers.c: Recombine the two conditional-compilation paths for
  3697. all the log* primitives -- they were split based on #ifndef
  3698. scm_long2num; factored out a SCM_LOGOP_RETURN macro, and fixed
  3699. some bugs and inconsistencies in the two sets of implementations.
  3700. (scm_lognot) Fixed *atrocious* re-use of a SCM as an integer!
  3701. * ioext.c: Use SCM_ASSERT_RANGE in a couple places, and
  3702. SCM_VALIDATE_INUM_COPY once where it should've been used.
  3703. * fluids.c (scm_internal_with_fluids): Use
  3704. SCM_VALIDATE_LIST_COPYLEN.
  3705. * filesys.c: Use SCM_NUM2LONG instead of SCM_VALIDATE_INUM_COPY;
  3706. this is questionable as it relaxes type safety, but other changes
  3707. were useful and all SCM_NUM2LONG's should probably be
  3708. revisited. Use SCM_OUT_OF_RANGE, SCM_WRONG_TYPE_ARG.
  3709. * evalext.c: line-break change on 1 line.
  3710. * eval.c (nconc2last): Takes a non-empty list as its first
  3711. argument, not just a list.
  3712. * dynl.c: Use new SCM_COERCE_ROSTRING macro.
  3713. Tue Jan 11 15:44:23 2000 Greg J. Badros <gjb@cs.washington.edu>
  3714. * dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
  3715. net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
  3716. where possible.
  3717. * symbols.c (scm_sysintern0): Fixed the function name in a
  3718. scm_misc_error invocation.
  3719. * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
  3720. use scm_return_first to ward off latent GC bug that Mikael caught.
  3721. * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
  3722. used before but should've been.
  3723. 2000-01-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3724. * snarf.h (SCM_PROC1): Replaced SCM (*) (...) with
  3725. SCM_FUNC_CAST_ARBITRARY_ARGS.
  3726. Tue Jan 11 13:44:07 2000 Greg J. Badros <gjb@cs.washington.edu>
  3727. * guile-func-name-check.in: Added this script to statically check
  3728. #define FUNC_NAME, #undef FUNC_NAME in the source.
  3729. * sort.c, posix.c: Fix #undef FUNC_NAME lines to not have trailing
  3730. redundant comment, semicolon; caught by new guile-func-name-check
  3731. script.
  3732. * debug.c: Fix mistaken #define FUNC_NAME for scm_make_iloc.
  3733. Caught by new guile-func-name-check-script.
  3734. * Makefile.am: Added guile-func-name-check to bin_SCRIPTS
  3735. * ramap.c: Fix #if 0'd out code to be syntactically acceptable to
  3736. guile-func-name-check.
  3737. * guile-doc-snarf.in: Run guile-func-name-check on the file before
  3738. doing the snarf.
  3739. Tue Jan 11 11:31:10 2000 Greg J. Badros <gjb@cs.washington.edu>
  3740. * fports.c, ports.c, ports.h, strports.c, vports.c: Make write
  3741. port function take const void*, not void*.
  3742. Tue Jan 11 11:18:07 2000 Greg J. Badros <gjb@cs.washington.edu>
  3743. * scm_validate.h, chars.c, ports.c, print.c, read.c, strings.c,
  3744. strop.c: Use SCM_VALIDATE_ICHR, SCM_VALIDATE_ICHR_COPY instead of
  3745. SCM_VALIDATE_CHAR, SCM_VALIDATE_CHAR_COPY. Change made for
  3746. consistency with the other macros dealing with immediate
  3747. characters. (Similar to INT -> INUM change a week or so ago).
  3748. Tue Jan 11 10:41:46 2000 Greg J. Badros <gjb@cs.washington.edu>
  3749. * dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,
  3750. net_db.c, read.c, socket.c: Update error messages to use ~A for
  3751. %s, ~S for %S to work with new `simple-format' format and be
  3752. standardized better.
  3753. * print.h, print.c (scm_simple_format): Added `simple-format'
  3754. primitive. It's the old scm_display_error, with ARGS now a rest
  3755. parameter, and the destination first instead of last (and a couple
  3756. new capabilities inspired by `format' -- #t as destination means
  3757. current-output-port, #f means return the formatted text as a
  3758. string.
  3759. * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications.
  3760. * backtrace.c (scm_display_error_message): Rewrote to use
  3761. scm_simple_format() procedure.
  3762. * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
  3763. 2000-01-09 Marius Vollmer <mvo@zagadka.ping.de>
  3764. Finally applied the libltdl patch from Thomas Tanner, with slight
  3765. modifications.
  3766. * DYNAMIC-LINKING: Removed because it is obsolete.
  3767. * dynl.c: Use ANSI prototypes.
  3768. (sysdep_dynl_link): Use lt_dlopenext instead of lt_dlopen.
  3769. * scmconfig.h.in: Do not change, as it is automatically generated.
  3770. 1999-07-25 Thomas Tanner <tanner@ffii.org>
  3771. * dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c: deleted
  3772. (obsolete)
  3773. * Makefile.am: likewise, add INCLTDL (libltdl headers) to
  3774. INCLUDES, set dlpreopened files in LDFLAGS, link libguile
  3775. against libltdl
  3776. * dynl.c: use libltdl if DYNAMIC_LINKING is enabled,
  3777. * guile.c: register preloaded modules
  3778. * scmconfig.h.in: remove obsolete symbols
  3779. 2000-01-09 Gary Houston <ghouston@arglist.com>
  3780. * These changes should make it unnecessary to call tzset from
  3781. Scheme after modifying the TZ environment variable, even if the
  3782. system date facilities cache the value.
  3783. * stime.c (setzone, scm_localtime): added comments.
  3784. (tzset): don't define a noop tzset macro if HAVE_TZSET not defined.
  3785. (setzone): don't call tzset.
  3786. (restorezone): call tzset only if HAVE_TZSET is defined.
  3787. (scm_tzset): don't define if HAVE_TZSET not defined. Change the
  3788. doc string to indicate that this procedure isn't likely to do
  3789. anything useful.
  3790. (scm_localtime, scm_strftime, scm_mktime): call tzset if
  3791. LOCALTIME_CACHE is defined.
  3792. 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3793. * posix.c (scm_sync): Return SCM_UNSPECIFIED.
  3794. 2000-01-09 Gary Houston <ghouston@arglist.com>
  3795. * eval.c: define scm_unbound_variable_key ('unbound-variable).
  3796. scm_lookupcar1: throw an error with key 'unbound-variable instead
  3797. of 'misc-error when an unbound variable is encountered.
  3798. * filesys.c (scm_mkdir, scm_rmdir, scm_getcwd, scm_select,
  3799. scm_symlink, scm_readlink, scm_lstat),
  3800. posix.c (scm_setpgid, scm_setsid, scm_ctermid, scm_tcgetpgrp,
  3801. scm_tcsetpgrp, scm_uname, scm_setlocale, scm_mknod, scm_nice,
  3802. scm_sync),
  3803. simpos.c (scm_system),
  3804. stime.c (scm_times, scm_strptime):
  3805. move the HAVE_XXX feature tests out of the procedure bodies.
  3806. don't use SCM_SYSMISSING.
  3807. scm_validate.h (SCM_SYSMISSING): removed.
  3808. error.h, error.c (scm_sysmissing): comment that this is deprecated.
  3809. see ChangeLog entry for 1999-12-28.
  3810. Sat Jan 8 19:52:04 2000 Greg J. Badros <gjb@cs.washington.edu>
  3811. * scm_validate.h (SCM_VALIDATE_BOOL_COPY): Fix typo.
  3812. Sat Jan 8 17:06:46 2000 Greg J. Badros <gjb@cs.washington.edu>
  3813. * backtrace.c: Fix spelling typo in a comment.
  3814. * snarf.h: Use new SCM_DOCS macro to encapsulate the non SCM_INIT
  3815. text. Reformatted some of the expansions.
  3816. Fri Jan 7 15:50:46 2000 Greg J. Badros <gjb@cs.washington.edu>
  3817. * scm_validate.h (SCM_OUT_OF_RANGE): Use scm_out_of_range_pos to
  3818. report the position of the argument.
  3819. * error.h, error.c (scm_out_of_range_pos): Added this function to
  3820. take extra "pos" argument, the position number of the errant
  3821. argument.
  3822. * debug.c: Use SCM_OUT_OF_RANGE instead of scm_out_of_range.
  3823. * snarf.h: Use SCM_HERE and SCM_INIT as names, not SCM_NOTSNARF
  3824. and SCM_SNARFING. Also put the %%% in the SCM_INIT since Mikael
  3825. prefers that and I'm reasonably indifferent.
  3826. Fri Jan 7 15:03:32 2000 Greg J. Badros <gjb@cs.washington.edu>
  3827. * snarf.h: Factor out differences between C++ and non-C++ into
  3828. SCM_FUNC_CAST_ARBITRARY_ARGS macro. Modify all the snarf macro
  3829. definitions to use SCM_NOTSNARF and SCM_SNARFING macros (like
  3830. Mikael's macros, below, but changed names and SCM_SNARFING no
  3831. longer expands to include %%% -- that must appear in the argument
  3832. so that the token appears at the call-site as a reminder).
  3833. 2000-01-07 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  3834. * snarf.h (SCM_INSITU, SCM_INIT): New snarf macros for use in user
  3835. snarf macro definitions.
  3836. 2000-01-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3837. * chars.c (scm_integer_to_char): Use Greg's nice
  3838. SCM_VALIDATE_INUM_RANGE macro for argument checking for closer
  3839. adherence to R5RS.
  3840. Thu Jan 6 11:48:49 2000 Greg J. Badros <gjb@cs.washington.edu>
  3841. * *.c, snarf.h: Replace GUILE_PROC1 with SCM_DEFINE1 throughout.
  3842. Thu Jan 6 11:22:53 2000 Greg J. Badros <gjb@cs.washington.edu>
  3843. * Makefile.am (ETAGS_ARGS): Switch to SCM_DEFINE, SCM_DEFINE1
  3844. instead of GUILE_PROC.
  3845. Thu Jan 6 11:21:49 2000 Greg J. Badros <gjb@cs.washington.edu>
  3846. * alist.c: Do not report mismatch errors on some uses of `tmp' (do
  3847. this by using SCM_ARG2 instead of `2' in the SCM_VALIDATE_CONS
  3848. macro call.
  3849. Thu Jan 6 09:54:33 2000 Dirk Herrmann <dirk@ida.ing.tu-bs.de> --gjb applied
  3850. * scm_validate.h: Remove some redundant NIMP tests.
  3851. * alist.c: minimize scope of the tmp variables, and initialize
  3852. them when declared. The strange SCM_NIMP tests are replaced by
  3853. SCM_CONSP tests that more closely reflect the intended semantics.
  3854. However, we don't get a performance penalty here, because the
  3855. SCM_CONSP test was performed by the ALISTCELL test anyway. * The
  3856. extremely ugly use of ASRTGO macros was removed: The calls to
  3857. ASRTGO were not encapsulated by "#ifndef SCM_RECKLESS", but got a
  3858. label parameter that only exists when SCM_RECKLESS is not defined.
  3859. This works, because ASRTGO itself is defined in a way that it only
  3860. makes use of the label parameter if SCM_RECKLESS is not defined
  3861. (shudder!). Does guile make at all use of the possibility to
  3862. define SCM_RECKLESS? * Codesize is likely to be reduced, since
  3863. instead of two calls to SCM_ASSERT performed by the ALISTCELL test
  3864. we now only get one test.
  3865. * list.c: Use SCM_NNULLP, not SCM_NIMP as appropriate. Also use
  3866. SCM_NULLP instead of SCM_IMP. Drop use of "register" keyword on
  3867. some variables in `list?'. Fix `reverse' and `reverse!'
  3868. primitives to handle improper lists better.
  3869. Wed Jan 5 11:24:53 2000 Greg J. Badros <gjb@cs.washington.edu>
  3870. * *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
  3871. macros and SCM_DEFINE macros to match GNU coding standards.
  3872. Wed Jan 5 11:04:24 2000 Greg J. Badros <gjb@cs.washington.edu>
  3873. * *.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
  3874. Wed Jan 5 10:59:06 2000 Greg J. Badros <gjb@cs.washington.edu>
  3875. * *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM for
  3876. better consistency with the names of other SCM_VALIDATE_ macros
  3877. and better conformance to guile naming policy.
  3878. Wed Jan 5 10:50:39 2000 Greg J. Badros <gjb@cs.washington.edu>
  3879. * ports.c (s_scm_close_all_ports_except): Use SCM_ARG1 in a
  3880. SCM_VALIDATE instead of 1 to avoid a check on the argument (since
  3881. it's not the actual name of the formal).
  3882. * guile-snarf.awk.in: Do argument/number mismatch checking and
  3883. print warnings in an Emacs compile-mode parseable format.
  3884. * struct.c: Use SCM_ASSERT_RANGE instead of SCM_ASSERT w/
  3885. SCM_OUTOFRANGE as 3rd argument.
  3886. * random.c: Fix argument/number mismatch (that I introduced :-( ).
  3887. * __scm.h: Do not #define SCM_ARG* when snarfing;
  3888. lets us distinguish between 1 and SCM_ARG1 when snarfing as only
  3889. the former (using the number) requires the argument to match the
  3890. formal in the current argument snarfing check.
  3891. * snarf.h: Give new definition of SCM_ASSERT when in
  3892. snarfing mode to output a lexically-identifiable sequence that the
  3893. guile-snarf.awk script uses to verify argument/position matching.
  3894. * ramap.c: Remove extraneous #undef FUNC_NAME.
  3895. Wed Jan 5 08:36:38 2000 Greg J. Badros <gjb@cs.washington.edu>
  3896. * guile-doc-snarf.awk.in: Removed -- guile-snarf.awk.in is the
  3897. current version of the same functionality; it writes the .x output
  3898. to stdout instead of directly into the file.
  3899. Wed Jan 5 08:15:04 2000 Greg J. Badros <gjb@cs.washington.edu>
  3900. * unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,
  3901. posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now
  3902. redundant with the safer macros. Patch from Dirk Hermann applied
  3903. by hand. Thanks Dirk!
  3904. * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some
  3905. uses in random.c.
  3906. * ramap.c: whitespace change.
  3907. Tue Jan 4 14:21:35 2000 Greg J. Badros <gjb@cs.washington.edu>
  3908. * options.c, objects.c, keywords.c, gc.c: Some redundant SCM_NIMP
  3909. removals from Dirk Hermann.
  3910. * alist.c: Rename formals to match the parameter names in the
  3911. documentation, updates to documentation. Thanks Dirk Hermann!
  3912. 2000-01-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3913. * eval.c (SCM_CEVAL): Reverse order of
  3914. scm_stack_checking_enabled_p and SCM_STACK_OVERFLOW_P
  3915. (Thanks to Brad Knotwell.)
  3916. Mon Jan 3 08:30:02 2000 Greg Harvey <Greg.Harvey@thezone.net> (applied --01/03/00 gjb)
  3917. * gc.c (scm_debug_newcell): Added SCM_SETCAR of the newly
  3918. allocated cell.
  3919. * pairs.h: Added a comment about the need for the SCM_SETCAR in
  3920. SCM_NEWCELL macro.
  3921. Mon Jan 3 08:25:19 2000 Greg J. Badros <gjb@cs.washington.edu>
  3922. * dynl-vms.c, debug.c, coop-threads.c, backtrace.c, eval.c: More
  3923. SCM_NIMP tests that were redundant are now eliminated. Patches
  3924. from Dirk Hermann applied by hand.
  3925. The ChangeLog continues in the file: "ChangeLog-1996-1999"