ChangeLog-1996-1999 361 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829
  1. 1999-12-28 Gary Houston <ghouston@arglist.com>
  2. * posix.c (scm_waitpid): move the HAVE_WAITPID test out of the
  3. procedure body, so that the procedure is left undefined if waitpid
  4. is not available. previously in this case the procedure was
  5. defined but would raise a system-error when called, which is
  6. pointless. I intend to make the same change for other procedures
  7. and deprecate SCM_SYSMISSING and scm_sysmissing.
  8. 1999-12-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  9. * feature.c (s_scm_add_hook_x): Call scm_wrong_type_arg instead of
  10. scm_misc_error when add-hook! is passed a procedure of wring
  11. arity. (Thanks to Greg Harvey.)
  12. 1999-12-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  13. * macros.c (scm_make_synt): Use scm_make_subr_opt to make the
  14. transformer subr. (Thanks to Bill Schottstaedt.)
  15. 1999-12-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  16. * objects.c (scm_class_of): Bugfix: Inserted missing SCM_CDR
  17. setting struct table class.
  18. Sun Dec 19 10:22:34 1999 Greg J. Badros <gjb@cs.washington.edu>
  19. * threads.c, mit-pthreads.c, list.c, coop.c: Remove K&R
  20. prototypes; just use ANSI C prototypes. I'm not sure how
  21. mit-pthreads.c ever compiled -- it still doesn't for me, but the
  22. normal make procedure does not try to build it anyway (even
  23. --with-threads I get the other threads code building) so I'm not
  24. too worried about it.
  25. Sat Dec 18 16:58:34 1999 Greg J. Badros <gjb@cs.washington.edu>
  26. * tags.h (SCM_CONSP, SCM_NCONSP): Define these in terms of
  27. SCM_SLOPPY_CONSP and SCM_SLOPPY_NCONSP. (SCM_CONSP) Define this
  28. in terms of SCM_SLOPPY_NCONSP instead of repeating the
  29. expression.
  30. * symbols.h (SCM_SLOPPY_SUBSTRP, SCM_SUBSTRP): Added former, and
  31. define latter in terms of sloppy variant.
  32. * strings.h (SCM_SLOPPY_STRINGP, SCM_STRINGP): Added former, and
  33. define latter in terms of sloppy variant.
  34. * scm_validate.h (SCM_MAKE_VALIDATE): Added this macro to factor
  35. out the commonality of the various basic SCM_VALIDATE_foop
  36. macros. Use SCM_MAKE_VALIDATE macro where possible. Fix
  37. SCM_VALIDATE_INT_COPY to not use scm_num2ulong -- that does
  38. coercion to an integer which is more advanced than desired and
  39. SCM_NUM2ULONG provides that functionality. Use SCM_ASSERT_RANGE
  40. appropriately for the various _MIN, _MAX, _RANGE macros. Drop
  41. some superfluous "SCM_NIMP &&" where possible. Eliminate obsoleted
  42. SCM_VALIDATE_NIMCONS (SCM_VALIDATE_CONS now does the NIMP test as
  43. part of its SCM_CONSP test).
  44. * socket.c, ports.c, pairs.c, list.c, lang.c, async.c: Use
  45. SCM_VALIDATE_CONS, not obsoleted SCM_VALIDATE_NIMCONS.
  46. Sat Dec 18 15:33:05 1999 Greg J. Badros <gjb@cs.washington.edu>
  47. * dynl.c: Added #include "scm_validate.h"
  48. Sat Dec 18 15:22:10 1999 Greg J. Badros <gjb@cs.washington.edu>
  49. * alist.c, chars.c, dynl.c, net_db.c, numbers.c, unif.c: Use
  50. SCM_NUM2ULONG instead of scm_num2ulong; SCM_NUM2LONG instead of
  51. scm_num2long; SCM_WTA instead of scm_wta. Only done for when
  52. FUNC_NAME was used as an argument of the macro and the formal
  53. argument name was the explicit argument in the old function call.
  54. These were just missed in my first pass of changes.
  55. 1999-12-18 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  56. * guile-doc-snarf.in (filename): Strip path to source dir before
  57. touching the .x-files.
  58. 1999-12-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  59. * debug.c (scm_reverse_lookup): Bugfix: Reinserted SCM_NIMP.
  60. * eval.c (SCM_CEVAL): Removed check for unbound slot in
  61. SCM_IM_SLOT_REF. (This is now handled in a smarter way in GOOPS.)
  62. 1999-12-17 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  63. * tags.h (SCM_SLOPPY_NCONSP, SCM_SLOPPY_CONSP): New macros.
  64. (SCM_ECONSP): Version which doesn't mix && and || without
  65. parenthesis.
  66. (SCM_NECONSP): Bugfree version.
  67. Fri Dec 17 12:09:11 1999 Greg J. Badros <gjb@cs.washington.edu>
  68. * tags.h (SCM_ECONSP, SCM_NECONSP): Fix these macros to have the
  69. SCM_NIMP test integrated into an || clause that I'd missed before
  70. and was causing a segfault in the regression tests.
  71. * symbols.h (SCM_ROUCHARS): Make cast be to (unsigned char *), not
  72. (char *); fixes a problem reported by the regression test
  73. ports.test.
  74. * ports.c: Fixed a couple of arg/number mismatches in
  75. SCM_VALIDATE_ macros.
  76. Now passes the (not-comprehensive) guile-modules test-suite again!
  77. Thu Dec 16 12:41:22 1999 Greg J. Badros <gjb@cs.washington.edu>
  78. * coop-threads.c: Remove K&R function headers.
  79. * scm_validate.h: Added SCM_VALIDATE_THREAD.
  80. * *.c: Remove SCM_NIMP(X) when it is an extraneous pre-test given
  81. that SCM_FOOP macros all now include SCM_NIMP in their expansion.
  82. This simplifies lots of code, making it far more readable.
  83. Wed Dec 15 19:45:14 1999 Greg J. Badros <gjb@cs.washington.edu>
  84. * *.h: Use SCM_NIMP(X) && in all the FOOP macros.
  85. * *.[ch]: Use do { ... } while (0) idiom in macros that expanded
  86. to a bare block.
  87. Tue Dec 14 10:53:14 1999 Greg J. Badros <gjb@cs.washington.edu>
  88. * snarf.h: Put SCM_PROC and SCM_PROC1 back in for
  89. backward-compatibility of packages that use Guile. Internally
  90. Guile should not use them, though. (Maybe enforce this with a new
  91. -DBUILDING_GUILE compile-time flag?).
  92. Tue Dec 14 09:41:01 1999 Greg J. Badros <gjb@cs.washington.edu>
  93. * backtrace.c (scm_set_print_params_x): Renamed from
  94. set_print_params_x.
  95. * guile-doc-snarf.in: Use guile-snarf.awk, not
  96. guile-doc-snarf.awk. Pass the basename of $filename
  97. * load.h: Added prototypes for scm_sys_library_dir,
  98. scm_sys_site_dir.
  99. * load.c (scm_sys_library_dir, scm_sys_site_dir): Added these
  100. functions, and took out the old scm_library_dir, scm_site_dir,
  101. scm_pkgdata_dir. Now the primitives are %package-data-dir
  102. (already existed), %library-dir, and %site-dir.
  103. * debug.c: Use SCM_MISC_ERROR when possible instead of using
  104. s_scm_* in a scm_misc_error() call.
  105. * Makefile.am: Use guile-snarf.awk, not guile-doc-snarf.awk. Make
  106. using guile-doc-snarf send stdout to $@ to create the .x file like
  107. guile-snarf does.
  108. * guile-snarf.awk.in: Added.
  109. * guile-doc-snarf.awk.in: Removed (sorry to back out a recent
  110. commit; if we're going to switch to guile-snarf I figure it makes
  111. sense to get this right now-- I'd already had the change in my
  112. working copy when the below commit happened).
  113. 1999-12-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  114. * guile-doc-snarf.awk: Removed.
  115. * guile-doc-snarf.awk.in: Added.
  116. * ports.c (s_scm_pt_member): Fixed validation.
  117. * guile-doc-snarf.in (filename): Use basename in order to strip
  118. away path.
  119. * debug.c (scm_make_iloc, s_scm_proc_to_mem): Added missing
  120. semicolon.
  121. (scm_memcons, scm_memcons, mem_to_proc): Renamed function name
  122. strings to new form.
  123. * backtrace.c (set_print_params_x): Fixed GUILE_PROC macro.
  124. * tags.h (SCM_UNBOUND): New iflag which is needed for some time to
  125. mark the unboundness of a GOOPS slot. (Added now in order to
  126. correct a oversight. Should probably be removed again and
  127. replaced with SCM_UNDEFINED when the corresponding code in GOOPS
  128. is rewritten.)
  129. * print.c (scm_isymnames): Added printed representation for
  130. SCM_UNBOUND.
  131. * eval.c (SCM_CEVAL): Bugfix: Added check for unbound slot in
  132. SCM_IM_SLOT_REF.
  133. Mon Dec 13 17:23:22 1999 Greg J. Badros <gjb@cs.washington.edu>
  134. * strings.c: Fixed mistaken default value in
  135. scm_make_shared_substring; thanks Eric Moore!
  136. Mon Dec 13 16:29:13 1999 Greg J. Badros <gjb@cs.washington.edu>
  137. * guile-doc-snarf.awk: Use sub instead of gsub in ^ anchored
  138. replacement for docstrings. Fixes problem Ryan Yeske observed
  139. with using mawk on his system. Thanks Ryan!
  140. Mon Dec 13 13:30:06 1999 Greg J. Badros <gjb@cs.washington.edu>
  141. * guile-doc-snarf.in: Do not echo to stdout since the output now
  142. gets stuck directly in the files instead of redirected from
  143. stdout.
  144. * guile-doc-snarf.awk: Escape a literal ) -- thanks Ryan
  145. Yeske. Use print instead of printf to prime the .x file since
  146. AIX's cpp has problems with #include-ing empty files (according to
  147. the old guile-snarf.in file).
  148. Sun Dec 12 19:39:00 1999 Greg J. Badros <gjb@cs.washington.edu>
  149. * Makefile.am: Fix ETAGS_ARGS to recognize GUILE_PROC,
  150. GUILE_PROC1. Build guile-procedures.txt, and add that file to
  151. pkgdata_DATA.
  152. * load.c: Added `pkgdata-dir', `site-dir', `library-dir'
  153. primitives.
  154. * guile-doc-snarf.awk: Drop trailing space when no arguments:
  155. e.g., "(foo )" is now "(foo)".
  156. * *.c, alist.c: moved all the documentation for primitives from
  157. guile-doc/ref/{appendices,posix,scheme}.texi into the source code.
  158. This leaves about half of the primitives undocumented. Also, all
  159. the markup is currently still texinfo. I don't have a problem
  160. with texinfo per se, but the markup is not very descriptive or
  161. accurate.
  162. Sun Dec 12 16:50:26 1999 Greg J. Badros <gjb@cs.washington.edu>
  163. * scm_validate.h: Drop the SCM_DOCSTRING_SNARF for turning off
  164. SCM_VALIDATE macros; the SCM_VALIDATE macros should be checked for
  165. argument mismatches (along with the FUNC_NAME macro checking) by a
  166. static tool that runs directly over the .c files.
  167. * snarf.h: Handle SCM_REGISTER_PROC better when snarfing. The
  168. docstring is still missing from the .doc file; it just gives the
  169. name of the C function that gets called instead.
  170. * guile-doc-snarf.awk: Be sure to touch the output files to help
  171. make out. Also handle SCM_REGISTER_PROC better, and change the
  172. output format slightly.
  173. Sun Dec 12 15:33:40 1999 Greg J. Badros <gjb@cs.washington.edu>
  174. * snarf.h: Drop SCM_PROC, SCM_PROC1. Added extra output for
  175. guile-doc-snarf script.
  176. * guile-doc-snarf.in, guile-doc-snarf.awk: New, simple doc
  177. extraction system. Builds foo.x, foo.doc from foo.{c,cc}.
  178. There are dependencies between these files and snarf.h. This
  179. replaces guile-snarf.
  180. * guile-snarf.in: Drop everything after $$$ for the new snarf.h
  181. macros. This is obsoleted by guile-doc-snarf, but kept here for
  182. now for good measure.
  183. * Makefile.am: Added guile-doc-snarf, guile-doc-snarf.awk to
  184. bin_SCRIPTS. Added .doc to SUFFIXES, and give rule for creating
  185. .doc files to use guile-doc-snarf. Update the rule for creating
  186. .x files to use guile-doc-snarf.
  187. Sun Dec 12 12:31:38 1999 Greg J. Badros <gjb@cs.washington.edu>
  188. * *.c: Finish replacing K&R style prototypes with ANSI C
  189. prototypes.
  190. * eval.c: Make scm_m_mody's 3rd argument be a const char *, not a
  191. char *. ANSI prototypes caught this.
  192. * strorder.c: Use GUILE_PROC1 for the couple SCM_PROC1 expansions
  193. that I missed.
  194. * scm_validate.h: Use SCM_BOOLP for validating bools. Do not
  195. expand macros if SCM_DOCSTRING_SNARF.
  196. Sun Dec 12 11:23:22 1999 Greg J. Badros <gjb@cs.washington.edu>
  197. * *.c, srcprop.h: Use SCM_BOOL(f) instead of (f? SCM_BOOL_T:
  198. SCM_BOOL_F) and use SCM_NEGATE_BOOL(f) instead of (f? SCM_BOOL_F:
  199. SCM_BOOL_T).
  200. Sun Dec 12 11:08:51 1999 Greg J. Badros <gjb@cs.washington.edu>
  201. * boolean.h: Added SCM_BOOL, SCM_NEGATE_BOOL, SCM_BOOLP to here,
  202. from scm_validate.h.
  203. * scm_validate.h: Moved above out into boolean.h, fix typo in
  204. SCM_VALIDATE_NIM macro.
  205. Sun Dec 12 10:29:12 1999 Greg J. Badros <gjb@cs.washington.edu>
  206. * *.c, scm_validate.h: Use SCM_VALIDATE_NIM, not SCM_VALIDATE_NIMP
  207. (none of the other validate macros have the trailing P).
  208. Sun Dec 12 10:07:29 1999 Greg J. Badros <gjb@cs.washington.edu>
  209. * scm_validate.h: Added the FSF copyright to the top.
  210. * strings.c: Use SCM_ASSERT_RANGE in a couple of places instead of
  211. SCM_ASSERT w/ SCM_OUT_OF_RANGE.
  212. Sat Dec 11 18:34:12 1999 Greg J. Badros <gjb@cs.washington.edu>
  213. * Makefile.am: Added scm_validate.h to modinclude_HEADERS.
  214. * *.c: Pervasive software-engineering-motivated rewrite of
  215. function headers and argument checking. Switched SCM_PROC,
  216. SCM_PROC1 macros to be GUILE_PROC, GUILE_PROC1 (may change names
  217. later, but was useful to keep old versions around while migrate)
  218. that has docstrings and argument lists embedded in the GUILE_PROC
  219. macro invocations that expand into a function header. Use lots of
  220. new SCM_VALIDATE_* macros to simplify error checking and reduce
  221. tons of redundancy. This is very similar to what I did for Scwm.
  222. Note that none of the extraction of the docstrings, nor software
  223. engineering checks of Scwm is yet added to Guile. I'll work on
  224. that tomorrow, I expect.
  225. * chars.c: Added docstrings for the primitives defined in here.
  226. * snarf.h: Added GUILE_PROC, GUILE_PROC1. Added
  227. SCM_REGISTER_PROC to be like old SCM_PROC, though old SCM_PROC
  228. still remains for now. Changed naming convention for the s_foo
  229. string name of the primitive to be s_scm_foo for ease of use with
  230. the macro.
  231. * scm_validate.h: Lots of new SCM_VALIDATE macros to simplify
  232. argument checking through guile. Maybe some of these should be
  233. folded into the header file for the types they check, but for now
  234. it was easiest to just stick them all in one place.
  235. 1999-12-10 Greg Harvey <Greg.Harvey@thezone.net> (applied --12/10/99 gjb)
  236. * smob.c (scm_smob_prehistory): initialize allocated smob
  237. * tags.h: new tag: scm_tc16_allocated
  238. * gc.c (scm_gc_for_newcell): set the car of the new cell
  239. to scm_tc16_allocated
  240. * pairs.h (SCM_NEWCELL): set the car to scm_tc16_allocated
  241. (scm_gc_mark): mark allocated cells.
  242. 1999-12-09 Greg J. Badros <gjb@cs.washington.edu>
  243. * strports.h, strports.c (scm_eval_0str): Fix constness. Some
  244. thanks to Dirk Hermann.
  245. * gh_eval.c (gh_eval_str, gh_eval_file, gh_eval_str_with_catch,
  246. gh_eval_str_with_standard_handler,
  247. gh_eval_str_with_stack_saving_handler): Fix constness. Some
  248. thanks to Dirk Hermann.
  249. * gh_data.c (gh_str02scm): Fix constness.
  250. * gh.h: Fix constness of prototypes for the above.
  251. * vectors.c: Include "unif.h" to avoid a warning about missing
  252. prototype for scm_uniform_element_size().
  253. 1999-12-09 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  254. * vectors.c (scm_vector_length, scm_vector_ref, scm_vector_set_x):
  255. Turned into primitive generics.
  256. 1999-12-04 Gary Houston <ghouston@freewire.co.uk>
  257. * ports.c (scm_port_closed_p): new procedure, implements
  258. "port-closed?" suggested by Bernard Urban.
  259. ports.h: added prototype, removed the SCM_P macros.
  260. 1999-11-30 Gary Houston <ghouston@freewire.co.uk>
  261. * unif.h: added some comments, removed the SCM_P macros.
  262. 1999-11-29 Gary Houston <ghouston@freewire.co.uk>
  263. * vports.c (sf_write): use scm_makfromstr, not scm_makfrom0str
  264. (thanks to Daniel Skarda).
  265. 1999-11-22 Jim Blandy <jimb@savonarola.red-bean.com>
  266. * gscm.c, gscm.h: Deleted. They were unused.
  267. 1999-11-20 Gary Houston <ghouston@freewire.co.uk>
  268. * unif.c (scm_list_to_uniform_array): call
  269. scm_dimensions_to_uniform_array with a third argument of
  270. SCM_UNDEFINED instead of SCM_EOL.
  271. 1999-11-19 Gary Houston <ghouston@freewire.co.uk>
  272. * the following changes allow guile to be built with the array
  273. "module" omitted. some of this stuff is just tc7 type support,
  274. which wouldn't be needed if uniform array types were converted
  275. to smobs.
  276. * tag.c (scm_utag_bvect ... scm_utag_cvect): don't define unless
  277. HAVE_ARRAYS.
  278. (scm_tag): don't check array types unless HAVE_ARRAYS.
  279. * sort.c (scm_restricted_vector_sort_x, scm_sorted_p):
  280. remove the unused array types.
  281. * (scm_stable_sort, scm_sort): don't support vectors if not
  282. HAVE_ARRAYS. a bit excessive.
  283. * random.c (vector_scale, vector_sum_squares,
  284. scm_random_solid_sphere_x, scm_random_hollow_sphere_x,
  285. scm_random_normal_vector_x): don't define unless HAVE_ARRAYS.
  286. * gh_data.c (makvect, gh_chars2byvect, gh_shorts2svect,
  287. gh_longs2ivect, gh_ulongs2uvect, gh_floats2fvect, gh_doubles2dvect,
  288. gh_uniform_vector_length, gh_uniform_vector_ref):
  289. don't define unless HAVE_ARRAYS.
  290. (gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats,
  291. gh_scm2doubles):
  292. don't check vector types if not HAVE_ARRAYS.
  293. * eq.c (scm_equal_p), eval.c (SCM_CEVAL), print.c (scm_iprin1),
  294. gc.c (scm_gc_mark, scm_gc_sweep), objects.c (scm_class_of):
  295. don't support the array types unless HAVE_ARRAYS is defined.
  296. * tags.h: make nine tc7 types conditional on HAVE_ARRAYS.
  297. * read.c (scm_lreadr): don't check for #* unless HAVE_ARRAYS is
  298. defined (this should use read-hash-extend).
  299. * ramap.c, unif.c: don't check whether ARRAYS is defined.
  300. * vectors.c (scm_vector_set_length_x): moved here from unif.c. call
  301. scm_uniform_element_size if HAVE_ARRAYS.
  302. vectors.h: prototype too.
  303. * unif.c (scm_uniform_element_size): new procedure.
  304. * init.c (scm_boot_guile_1): don't call scm_init_ramap or
  305. scm_init_unif unless HAVE_ARRAYS is defined.
  306. * __scm.h: don't define ARRAYS.
  307. * Makefile.am (EXTRA_libguile_la_SOURCES): unif.c and ramap.c
  308. moved here from libguile_la_SOURCES.
  309. 1999-11-18 Gary Houston <ghouston@freewire.co.uk>
  310. * socket.c (scm_htons, scm_ntohs, scm_htonl, scm_ntohl): new
  311. functions for network data conversion.
  312. * numbers.c (scm_num2long, scm_num2longlong):
  313. throw out-of-range instead of wrong-type-arg if appropriate.
  314. (scm_iint2str): handle -2^31 correctly.
  315. (scm_num2long): handle -2^31 bignum correctly.
  316. (scm_num2long_long): rewrite the bigdig case: basically copied
  317. from scm_num2long.
  318. numbers.h: (SCM_BITSPERLONGLONG): deleted.
  319. * unif.c (rapr1): use sprintf instead of intprint for unsigned
  320. longs: intprint can't cope with large values.
  321. * numbers.c (scm_num2ulong): check more consistently that the
  322. input is not negative. if it is, throw out-of-range instead of
  323. wrong-type-arg.
  324. * ramap.c (scm_array_fill_int): don't limit fill to INUM for
  325. uvect, ivect or llvect.
  326. Check that fill doesn't overflow short uniform array.
  327. * __scm.h: add another long to the definition of long_long and
  328. ulong_long.
  329. * unif.c (scm_raprin1): use 'l' instead of "long_long" in the
  330. print representation of llvect. read can't handle more than
  331. one character.
  332. (scm_dimensions_to_uniform_array): make "fill" an optional argument
  333. instead of a rest argument.
  334. * tags.h (scm_tc7_llvect): wasn't defined anywhere, so use the free
  335. tag 29 for now.
  336. * __scm.h: don't mention LONGLONGS.
  337. * unif.c, numbers.c, eq.c, gc.c, print.c, eval.c, ramap.c:
  338. replace LONGLONGS with HAVE_LONG_LONGS as set by configure.
  339. 1999-11-17 Gary Houston <ghouston@freewire.co.uk>
  340. * net_db.c (scm_inet_aton): throw errors using the misc-error key
  341. instead of system-error. inet_aton doesn't set errno.
  342. system-error isn't right in gethost either, since it's throwing
  343. the value of h_errno instead of errno. so:
  344. (scm_host_not_found_key, scm_try_again_key,
  345. scm_no_recovery_key, scm_no_data_key): new error keys.
  346. (scm_resolv_error): new procedure, use the new keys.
  347. (scm_gethost): call scm_resolv_error not scm_syserror_msg.
  348. 1999-11-16 Gary Houston <ghouston@freewire.co.uk>
  349. * error.c: (various): use scm_cons instead of scm_listify
  350. to build short lists.
  351. 1999-11-03 Gary Houston <ghouston@freewire.co.uk>
  352. * socket.c (scm_fill_sockaddr): zero the address structure before
  353. use, in case it has a sin_len field and the OS doesn't like random
  354. values (thanks to Bertrand Petit).
  355. 1999-10-26 Mark Galassi <rosalia@lanl.gov>
  356. * gh.h, gh_data.c (gh_symbol2scm): changed gh_symbol2scm() to take
  357. a const char * argument, upon suggestion from Lynn Winebarger.
  358. 1999-10-26 Gary Houston <ghouston@freewire.co.uk>
  359. * strports.c (st_end_input): avoid dubious pointer arithmetic.
  360. 1999-10-24 Gary Houston <ghouston@freewire.co.uk>
  361. * Move the responsibility for resetting port buffers from the
  362. caller of the ptob seek procedure to the implementation. This
  363. gives more control in general to the ptob seek: in particular the
  364. change of 1999-10-20 can be made to work without breaking seek on
  365. string ports. There's a comment in NEWS about upgrading port
  366. types.
  367. * ports.c (scm_seek): don't reset the port buffers here.
  368. * fports.c (fport_seek): reset the buffers, except for the
  369. 0 SEEK_CUR case.
  370. * strports.c (st_end_input): (bug fix): decrement pt->read_pos by
  371. offset. check that it's not less than read_buf.
  372. (st_seek): reset the buffers first, unless it's the 0 SEEK_CUR
  373. case and currently reading.
  374. 1999-10-20 Gary Houston <ghouston@freewire.co.uk>
  375. * ports.c (scm_seek): Add a special case for SEEK_CUR, offset 0,
  376. so that unread chars are not needlessly discarded. (thanks to
  377. Roland Orre).
  378. 1999-10-18 Gary Houston <ghouston@freewire.co.uk>
  379. * fports.c (scm_fdes_to_port): always set rw_random if the fdes is
  380. random access. rw_active needs to be maintained even for single
  381. directional ports, otherwise scm_seek and probably other things are
  382. broken. (thanks to Roland Orre).
  383. * strports.c (scm_mkstrport): set rw_random to 1 unconditionally.
  384. * ports.c (scm_add_to_port_table): initialise rw_random to 0.
  385. * ports.h (scm_port): change the comments on rw_random and rw_active.
  386. 1999-10-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  387. * ioext.c: Added #include "feature.h".
  388. These changes turns `delay' into a memoizing macro. This is
  389. because it may be expanded before evaluation if it occurs at the
  390. beginning of a body. (Thanks to Lauri Alanko.)
  391. * eval.c, eval.h (scm_sym_delay): New global symbol.
  392. * tags.h (SCM_IM_DELAY): New immediate symbol.
  393. * print.c (scm_isymnames): Printed representation.
  394. * eval.c (unmemocopy, SCM_CEVAL): Handle SCM_IM_DELAY.
  395. (scm_m_delay): Turned into a memoizing macro.
  396. * Makefile.am (libguile_la_LDFLAGS): Bumped libguile version.
  397. 1999-10-11 Jim Blandy <jimb@savonarola.red-bean.com>
  398. * gh_data.c (gh_ints2scm, gh_doubles2scm): Make sure elements are
  399. protected from GC while building the vector. (Thanks to Bernard
  400. Urban and Greg Harvey.)
  401. 1999-10-08 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  402. * throw.c (handler_message): Display backtrace if backtraces
  403. enabled.
  404. 1999-10-05 Jim Blandy <jimb@savonarola.red-bean.com>
  405. * Makefile.in, scmconfig.h.in: Deleted from CVS repository. Run
  406. the autogen.sh script to create generated files like these.
  407. * numbers.c (scm_string_to_number): Signal an error if radix is
  408. less than two. (Thanks to Jorgen Schaefer.)
  409. * print.c (scm_write, scm_display, scm_newline, scm_write_char):
  410. Don't assume that the current output port is valid. Somebody
  411. might close it. (Thanks to Bernard Urban.)
  412. 1999-10-02 Jim Blandy <jimb@zwingli.cygnus.com>
  413. * scmconfig.h.in: Regenerated.
  414. * Makefile.am (EXTRA_libguile_la_SOURCES): fix typo.
  415. Mon Sep 27 17:15:14 1999 Greg J. Badros <gjb@cs.washington.edu>
  416. * __scm.h: Fix a bunch of macros that were missing do-while(0)
  417. sandwiches.
  418. * debug.c, eval.c: Fix buggy uses of SCM_ALLOW_INTS (missing
  419. semicolon) exposed by the above change.
  420. 1999-09-27 Greg J. Badros <gjb@cs.washington.edu>
  421. * stacks.c: Avoid compiler warning re: unitialized var.
  422. * scmconfig.h.in: Added DEBUG_FREELIST
  423. * pairs.h: Fix macro that was not do-while(0) sandwiched.
  424. * gc.h, gc.c: Added scm_gc_set_debug_check_freelist_x,
  425. scm_map_free_list
  426. 1999-09-23 Gary Houston <ghouston@freewire.co.uk>
  427. * ioext.c (scm_init_ioext): enable "i/o-extensions" feature here
  428. instead of in scm_init_filesys.
  429. * init.c (scm_boot_guile_1): don't call scm_init_posix or
  430. scm_init_filesys unless HAVE_POSIX is defined.
  431. don't call scm_init_netdb or scm_init_socket unless
  432. HAVE_NETWORKING is defined.
  433. * Makefile.am (EXTRA_libguile_la_SOURCES): filesys.c, posix.c,
  434. net_db.c, socket.c: moved here from libguile_la_SOURCES.
  435. 1999-09-25 Jim Blandy <jimb@savonarola.red-bean.com>
  436. * root.c (scm_make_root): Initialize all the fields of the new
  437. root. GC could happen any time, you know. (Thanks to Greg
  438. Harvey.)
  439. * numbers.c (scm_number_to_string): Signal an error if radix is
  440. less than two. (Thanks to Jorgen Schaefer.)
  441. * Makefile.am (EXTRA_libguile_la_SOURCES): Add memmove.c here,
  442. so automake will actually generate rules for it.
  443. * Makefile.in: Regenerated.
  444. 1999-09-21 Jim Blandy <jimb@savonarola.red-bean.com>
  445. * backtrace.c: #include "_scm.h" before testing whether
  446. HAVE_UNISTD_H is #defined.
  447. 1999-09-20 Jim Blandy <jimb@savonarola.red-bean.com>
  448. * read.c (scm_read): Don't assume that scm_cur_inp is always open.
  449. * ports.c (scm_read_char): Same.
  450. * ioext.c (scm_read_line): Same.
  451. (Thanks to Bernard Urban.)
  452. 1999-09-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  453. * vectors.c (scm_vector_move_right_x): Bugfix: Remove side effect
  454. in SCM_ASSERT macro.
  455. numbers.c: Removed #ifndef SCM_RECKLESS at places where type
  456. checking may invoke a generic. (Thanks to Michael Livshin.)
  457. * __scm.h (SCM_WTA_DISPATCH_0, SCM_GASSERT0): New macros.
  458. * numbers.c (scm_max, scm_min, scm_sum, scm_difference,
  459. scm_product, scm_divide): Bugfix: Don't pass SCM_UNDEFINED to the
  460. generic function if the asubr is called with only one arg.
  461. 1999-09-20 Gary Houston <ghouston@freewire.co.uk>
  462. * scmsigs.c (scm_sigaction): add SA_RESTART to flags only if
  463. HAVE_RESTARTABLE_SYSCALLS.
  464. (scm_init_scmsigs): use siginterrupt if it's available. not
  465. everyone who has restartable syscalls has SA_RESTART it seems.
  466. (scm_sigaction): use scm_num2long/scm_long2num when converting
  467. SIG_DFL/SIG_IGN, in case it doesn't fit in an INUM. use
  468. scm_integer_p to test the type.
  469. 1999-09-18 Gary Houston <ghouston@freewire.co.uk>
  470. * _scm.h, scmsigs.c: replace HAVE_RESTARTS with
  471. HAVE_RESTARTABLE_SYSCALLS.
  472. * strports.c (scm_strport_to_string): create the string from
  473. pt->read_buf instead of an expression that evaluates to the
  474. same thing.
  475. * gdbint.c (gdb_print): don't just use SCM_CHARS to get a C string
  476. from the port: the port's buffer may not be NUL terminated.
  477. 1999-09-16 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  478. * Makefile.am (.c.x): Added missing semicolon after `false'.
  479. 1999-09-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  480. * print.c (scm_iprin1): Turn `write' and `display' into
  481. primitive generics and use their associated generic functions in
  482. scm_iprin1 for GOOPS objects.
  483. * backtrace.c: #include <unistd.h> if present.
  484. 1999-09-14 Jim Blandy <jimb@savonarola.red-bean.com>
  485. * Makefile.am (.c.x): Don't create a subshell just to delete the
  486. .x file and return false.
  487. * Makefile.in: Regenerated.
  488. 1999-09-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  489. * feature.c (scm_create_hook): New function. Replaces
  490. scm_make_named_hook which is now deprecated.
  491. (scm_make_hook_with_name): New primitive.
  492. (print_hook): Hooks now print in a fancy way.
  493. 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  494. * __scm.h, backtrace.c, backtrace.h, debug.c, debug.h, dynl-dld.c,
  495. dynwind.c, dynwind.h, eval.h, evalext.c, evalext.h, feature.c,
  496. feature.h, hashtab.c, hashtab.h, objects.c, objects.h, print.c,
  497. procs.c, procs.h, smob.c, smob.h, srcprop.c, strorder.c, struct.c,
  498. struct.h: Updated copyright notices.
  499. * srcprop.c (scm_source_property): Bugfix: Use SCM_NECONSP instead
  500. of SCM_NCONSP. (Thanks to Greg Badros.)
  501. * gsubr.c (scm_make_gsubr): Use scm_make_subr_opt for creation of
  502. the self subr.
  503. * eval.c, debug.h (SCM_BACKTRACE_WIDTH): New debug option: width.
  504. * backtrace.c: Keep backtraces within specified width by
  505. adaptively adjusting fancy printing parameters and cut output if
  506. necessary.
  507. (scm_display_application): Check args.
  508. 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
  509. Change the name of the objects returned by OPENDIR from
  510. "directory" to "directory stream". A predicate named "directory?"
  511. would be confusing.
  512. * filesys.c (scm_directory_stream_p): Renamed from scm_directory_p.
  513. At the Scheme level, "directory?" -> "directory-stream?".
  514. (scm_dir_print): Use the phrase "directory stream" in printed form.
  515. * filesys.h (scm_directory_stream_p): Prototype renamed
  516. accordingly.
  517. * Makefile.am (CLEANFILES): Remove versiondat.h; that should only
  518. be removed by `make distclean', since it's generated by configure.
  519. * Makefile.in: Regenerated.
  520. (Thanks to Robert Bihlmeyer.)
  521. * strop.c (scm_substring_move_x): Signal an error if start1
  522. doesn't come before end1. (Thanks to Karoly Lorentey).
  523. * numbers.c (scm_istr2flo): Don't call SCM_INEXP without first
  524. calling SCM_NIMP. (Thanks to Karoly Lorentey).
  525. * version.c (scm_libguile_config_stamp): Deleted. See
  526. corresponding change to ../ice-9/boot-9.scm.
  527. * versiondat.h.in: Remove definition for GUILE_STAMP.
  528. * version.h: Delete prototype.
  529. * Makefile.in: Regenerated.
  530. 1999-09-11 Gary Houston <ghouston@easynet.co.uk>
  531. * filesys.c (scm_directory_p): new procedure "directory?" Returns
  532. a boolean indicating whether its argument is a directory
  533. port as returned by opendir (thanks to Dirk Herrmann for the
  534. suggestion.)
  535. 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  536. * backtrace.c (display_frame_expr): Don't print a newline.
  537. (display_frame): Print the newline here instead.
  538. (display_backtrace_body): Don't print "Backtrace:".
  539. (scm_backtrace): Print "Backtrace:" here instead.
  540. 1999-09-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  541. * procs.c (scm_setter): Signal WTA if handed an entity or operator
  542. lacking a setter.
  543. * feature.c, feature.h: (scm_hook_p, scm_hook_empty_p): New
  544. primitives. (Thanks to Greg Badros);
  545. (scm_hook_to_list): New primitive; Hooks are now smobs.
  546. 1999-09-08 Gary Houston <ghouston@easynet.co.uk>
  547. * stime.c (bdtime2c): rewrite the ASSERTs. Accept a value
  548. of #f for the 10th vector element to avoid an exception
  549. seen by Bernard Urban.
  550. (scm_mktime): unneeded ASSERT removed.
  551. 1999-09-07 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  552. * eval.c (scm_map, scm_for_each): Converted to dispatch on generic
  553. if args don't match.
  554. * __scm.h (SCM_WTA_DISPATCH_n, SCM_GASSERTn): New macros.
  555. 1999-09-06 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  556. * numbers.c: Converted comparison operations to dispatch on
  557. generic if args don't match.
  558. * Makefile.am (ETAGS_ARGS): Added support for GPROC and GPROC1.
  559. 1999-09-06 James Blandy <jimb@mule.m17n.org>
  560. * guile-snarf.c: Deleted. Snarfing should respect CPP
  561. conditionals, so it needs to actually run CPP. Bleah.
  562. 1999-09-05 James Blandy <jimb@mule.m17n.org>
  563. Handle errors properly in guile-snarf. (Thanks to Han-Wen Nienhuys.)
  564. * guile-snarf.in: Be sure to exit with an error if CPP does.
  565. * Makefile.am (.c.x): Delete the .x file and exit with an error
  566. status if guile-snarf exits with an error status.
  567. * Makefile.in: Regenerated.
  568. * snarf.h (SCM_GLOBAL_KEYWORD): Call scm_c_make_keyword, not
  569. scm_makekey, which doesn't exist any more. Guess nobody's using
  570. this.
  571. * guile-snarf.c: New implementation of guile-snarf, meant to be
  572. more robust than the shell script. I think it's complete, but I
  573. haven't tested it at all, and I haven't changed the build process
  574. to actually use it. We should compare its output against that of
  575. the existing shell script, for all source files.
  576. * guile-snarf.c (parse_args): Abort if we haven't handled some
  577. character type.
  578. 1999-09-03 James Blandy <jimb@mule.m17n.org>
  579. * load.c (scm_search_path): If the filename has any extension at
  580. all, ignore the entire list of extensions. Also, don't check whether
  581. the file is accessible. If the file exists, accessible or not, we
  582. should return it. Inaccessible files should cause an error later.
  583. (Thanks to Keisuke Nishida for the suggestions.)
  584. 1999-09-02 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  585. * gc.c (cleanup, scm_init_storage): Use on_exit if present and
  586. atexit not available. (sunos4.1.4 needs it.)
  587. 1999-09-01 James Blandy <jimb@mule.m17n.org>
  588. I take it all back --- bcopy does handle overlapping source and
  589. destination areas correctly. At least on every system I could
  590. find. But it is better to use AC_REPLACE_FUNCS than to introduce
  591. new CPP conditionals.
  592. * memmove.c: New file, implementing memmove in terms of bcopy.
  593. * scmconfig.h.in: Regenerated.
  594. Allocators should use the `void *' type for generic pointers.
  595. * gc.c (scm_must_malloc, scm_must_realloc, scm_must_free): Change
  596. argument and return types.
  597. * gc.h: Corresponding changes to prototypes.
  598. (Thanks to Forcer.)
  599. 1999-08-31 James Blandy <jimb@mule.m17n.org>
  600. * numbers.c (scm_init_numbers): Claim to support the `complex'
  601. feature, as expected by (ice-9 format). (Thanks to Ceri Storey.)
  602. * Makefile.am (check-local): Set GUILE_LOAD_PATH so the tests can
  603. find (ice-9 boot-9) when Guile was compiled in a separate
  604. directory from the source. (Thanks to Rodney Brown.)
  605. * Makefile.in: Regenerated.
  606. * procs.c (scm_make_subr_opt): Fix typo. Remember to multiply
  607. table lengths by the size of a single element when growing the
  608. table. (Thanks to Bill Schottstaedt.)
  609. 1999-08-30 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  610. * eval.c (SCM_CEVAL): Duplicated the method dispatch code at the
  611. SCM_IM_DISPATCH form instead of calling scm_mcache_lookup_cmethod
  612. since that cuts down the time for type dispatch by 50%.
  613. 1999-08-30 James Blandy <jimb@mule.m17n.org>
  614. * gh_data.c (gh_set_substr): Revert change of 1999-08-29; bcopy is
  615. not a correct substitute for memmove, because it doesn't handle
  616. overlapping source and destination areas on many platforms.
  617. Overlaps are the primary reason to use memmove in the first place.
  618. * ports.c (scm_ungetc): Same.
  619. * strop.c (scm_substring_move_x): Same.
  620. 1999-08-30 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  621. * gc.c (scm_init_storage): Skip registration of cleanup on systems
  622. which lack atexit. (Is it important that cleanup is made
  623. properly? Maybe we should replace all `exit' with `scm_exit' and
  624. call cleanup there?)
  625. * struct.c, struct.h (scm_struct_free_0, scm_struct_free_light,
  626. scm_struct_free_standard, scm_struct_free_entity): Declared to
  627. return scm_sizet instead of size_t.
  628. * gdbint.c, strports.c: #include <unistd.h>. (SEEK_SET is defined
  629. there on sunos4.1.4.)
  630. 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  631. * numbers.c (scm_lcm): Bugfix: BIGDIG --> SCM_BIGDIG;
  632. Account for the case when second argument is unbound.
  633. * strorder.c (scm_string_less_p, scm_string_ci_less_p): Bugfix.
  634. (Thanks to Karoly Lorentey.)
  635. * gh_data.c, ports.c, strop.c: Alternatively use bcopy if memmove
  636. isn't present. (Thanks to Suzuki Toshiya.)
  637. * ports.c: Use ANSI C prototypes in definitions. (Thanks to
  638. Bernard Urban.)
  639. * filesys.c (scm_stat2scm): Conditionally use S_ISLNK. (Thanks to
  640. Bernard Urban.)
  641. * dynl-dl.c (RTLD_GLOBAL): Define if non-existent. (Thanks to
  642. Bernard Urban and Ian Grant.)
  643. * Makefile.am (libguile_la_LDFLAGS): Bumped libguile version
  644. again. (1.3.4 will be binary incompatible with 1.3.2 because of a
  645. change in the representation of entities and operators.)
  646. 1999-08-29 Gary Houston <ghouston@easynet.co.uk>
  647. * ports.c (scm_ungetc): bugfix: if putback_buf is NULL
  648. don't allocate zero bytes (thanks to Bill Schottstaedt).
  649. 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  650. * procs.c (scm_setter): Converted to use generic dispatch.
  651. * eval.c, eval.h: Bugfix: scm_sym_apply was not initialized
  652. correctly.
  653. * load.c (scm_search_path): Don't try extensions which already are
  654. present at the end of the filename.
  655. (scm_init_load): Check .scm first. (Thanks to Keisuke Nishida.)
  656. * stacks.c (scm_sym_apply): Removed. (Thanks to Ken Raeburn.)
  657. Cleanup and simplification of generic method dispatch.
  658. Also, the quadruple representation of entity and operator
  659. procedures has been replaced with single.
  660. * tags.h (SCM_IM_HASH_DISPATCH): Removed.
  661. * print.c (scm_isymnames): Removed #@hash-dispatch.
  662. * objects.c, objects.h (scm_mcache_lookup_cmethod): Moved here
  663. from eval.c; Support 0 arity methods.
  664. (scm_set_object_procedure_x): Removed scm_sym_atdispatch;
  665. (scm_apply_generic_env): Removed.
  666. Replaced slots proc0-3 with procedure.
  667. * objects.h (SCM_OPERATOR_PROC_0, SCM_OPERATOR_PROC_1,
  668. SCM_OPERATOR_PROC_2, SCM_OPERATOR_PROC_3): Replaced by
  669. SCM_OPERATOR_PROCEDURE.
  670. (SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_1, SCM_ENTITY_PROC_2,
  671. SCM_ENTITY_PROC_3): Replaced by SCM_ENTITY_PROCEDURE.
  672. * struct.c, struct.h: Replace 4 procedure slots with one.
  673. (scm_struct_i_procedure): Replaces scm_struct_i_procedure.
  674. * gc.c (scm_gc_mark): Mark 1 procedure slot in entities instead of
  675. 4.
  676. * eval.c (scm_sym_args): Removed.
  677. (SCM_CEVAL): Simplified entity application.
  678. Moved dispatch code to objects.c.
  679. * procprop.c (scm_i_procedure_arity): Bugfix: Handle generics.
  680. 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  681. * sort.c (closureless): Use scm_eval_body.
  682. * eval.c (SCM_APPLY): Fixed serious evaluator bug: If a closure
  683. with a symbol as last form was first called normally and then via
  684. `map' or some other mechanism using primitive apply, an ILOC was
  685. returned.
  686. 1999-08-26 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  687. This change extends the representation of primitive procedures
  688. with more data fields, e.g. a place for documentation and true
  689. procedure properties.
  690. * procs.c, procs.h (scm_subr_entry): New type: Stores data
  691. associated with subrs.
  692. (SCM_SUBRNUM, SCM_SUBR_ENTRY, SCM_SUBR_GENERIC, SCM_SUBR_PROPS,
  693. SCM_SUBR_DOC): New macros.
  694. (scm_subr_table): New variable.
  695. (scm_mark_subr_table): New function.
  696. * init.c (scm_boot_guile_1): Call scm_init_subr_table.
  697. * gc.c (scm_gc_mark): Don't mark subr names here.
  698. (scm_igc): Call scm_mark_subr_table.
  699. This change implements a scheme for letting a generic work as a
  700. shadow for a primitive procedure. If the primitive procedure
  701. can't dispatch on its arguments, control is left over to the
  702. generic. Normal wrong type arg errors will be generated until the
  703. user has hung the first method on the primitive.
  704. * snarf.h (SCM_GPROC, SCM_GPROC1): New macros.
  705. * procs.c, procs.h (scm_subr_p): New function (used internally).
  706. * gsubr.c, gsubr.h (scm_make_gsubr_with_generic): New function.
  707. * objects.c, objects.h (scm_primitive_generic): New class.
  708. * objects.h (SCM_CMETHOD_CODE, SCM_CMETHOD_ENV): New macros.
  709. * print.c (scm_iprin1): Print primitive-generics.
  710. * __scm.h (SCM_WTA_DISPATCH_1, SCM_GASSERT1,
  711. SCM_WTA_DISPATCH_2, SCM_GASSERT2): New macros.
  712. * eval.c (SCM_CEVAL, SCM_APPLY): Replace scm_wta -->
  713. SCM_WTA_DISPATCH_1 for scm_cxr's (unary floating point
  714. primitives). NOTE: This means that it is now *required* to use
  715. SCM_GPROC1 when creating float scm_cxr's (float scm_cxr's is an
  716. obscured representation that will be removed in the future anyway,
  717. so backward compatibility is no problem here).
  718. * numbers.c: Converted most numeric primitives (all but bit
  719. comparison operations and bit operations) to dispatch on generic
  720. if args don't match.
  721. Better support for applying generic functions.
  722. * eval.c, eval.h (scm_eval_body): New function.
  723. * objects.c (scm_call_generic_0, scm_call_generic_1,
  724. scm_call_generic_2, scm_call_generic_3, scm_apply_generic): New
  725. functions.
  726. Optimization of the generic function dispatch mechanism.
  727. * eval.c (SCM_CEVAL): Apply the cmethod directly after having
  728. called scm_memoize_method instead of doing a second lookup.
  729. * objects.h (scm_memoize_method): Now returns the memoized cmethod.
  730. Bugfix
  731. * procs.c (scm_make_subr_opt): Use scm_sysintern0 instead of
  732. scm_sysintern so that the binding connected with the subr name
  733. isn't cleared when we give set = 0.
  734. 1999-08-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  735. More transparent handling of ports with print states.
  736. * print.h (SCM_PORT_WITH_PS_P, SCM_PORT_WITH_PS_PORT,
  737. SCM_PORT_WITH_PS_PS): Represent ports with print states as a smob
  738. instead of a pair of a port and a print state. We'll need to cons
  739. once extra in scm_printer_apply but the type system will be
  740. cleaner, it will mix better with GOOPS, and, it will be even more
  741. transparent to the user.
  742. * print.c (scm_get_print_state): New procedure: Given an output
  743. port, return the print state associated to it in the current print
  744. chain, if one exists;
  745. (scm_port_with_print_state): New procedure: Associate a
  746. print-state with a port.
  747. (scm_valid_oport_value_p): Use SCM_PORT_WITH_PS_P;
  748. (scm_printer_apply): Wrap port and pstate as a smob;
  749. (print_state_printer): Removed.
  750. * objects.c (scm_class_of): Treat scm_tc16_port_with_ps as ports.
  751. * eval.c (scm_init_eval): Use scm_make_smob_type instead of
  752. scm_newsmob.
  753. * ports.c (scm_output_port_p): Bugfix: Coerce output port before
  754. testing (otherwise the port-print-state trick won't be transparent
  755. to the user; one example where this caused problems was in the
  756. (ice-9 format) module).
  757. 1999-08-23 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  758. * eval.c (SCM_CEVAL): Let the SCM_IM_SLOT_SET_X form return
  759. SCM_UNSPECIFIED instead of the set value.
  760. 1999-08-20 James Blandy <jimb@mule.m17n.org>
  761. * load.c (scm_init_load_path): Remove support for SCHEME_LOAD_PATH.
  762. * ports.h (enum scm_port_rw_active): New enum, containing
  763. SCM_PORT_READ, SCM_PORT_WRITE, and SCM_PORT_NEITHER (instead of
  764. zero). The debugger knows about enums, but doesn't know about
  765. #defines.
  766. (typedef scm_port): Declare rw_active member to be an enum
  767. scm_port_rw_active.
  768. * fports.c (fport_flush, fport_end_input): Use SCM_PORT_NEITHER
  769. instead of zero.
  770. * ports.c (scm_add_to_port_table): Same.
  771. * strports.c (st_flush, st_end_input): Same.
  772. * ioext.c (scm_do_read_line, scm_read_line): Use scm_must_malloc,
  773. scm_must_realloc, and scm_done_malloc as appropriate.
  774. 1999-08-20 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  775. * sort.c (quicksort): Added condition to protect the algorithm
  776. from crashing the interpreter if the less predicate is buggy.
  777. 1999-08-19 Gary Houston <ghouston@easynet.co.uk>
  778. * fports.c (fport_write): fix line-buffering mode again.
  779. (scm_open_file): recognise 'l' for line-buffering.
  780. (scm_setvbuf): recognise _IOLBF for line-buffering.
  781. 1999-08-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  782. * Makefile.am (libguile_la_LDFLAGS): Increased the version number
  783. of libguile to 5.0.
  784. * eval.c (SCM_APPLY), sort.c (closureless): Expand body when
  785. evaluating closures.
  786. 1999-08-18 Gary Houston <ghouston@easynet.co.uk>
  787. * fports.c (fport_write): use memcpy instead of strncpy, in case
  788. the data contains NUL.
  789. 1999-08-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  790. * gh.h (gh_vector_to_list): Bugfix. (Thanks to Frank Cieslok.)
  791. * backtrace.c, debug.c, eval.c, eval.h, gsubr.c, procprop.h,
  792. read.c, srcprop.c, srcprop.h (scm_i_filename, scm_i_line,
  793. scm_i_column, scm_i_copy, scm_i_name, scm_i_lambda, scm_i_source,
  794. scm_i_more, scm_i_procname, scm_i_dot, scm_i_arrow, scm_i_else,
  795. scm_i_unquote, scm_i_uq_splicing, scm_i_apply, scm_i_enter_frame,
  796. scm_i_apply_frame, scm_i_exit_frame, scm_i_trace, scm_i_quote,
  797. scm_i_begin, scm_i_if, scm_i_and, scm_i_or, scm_i_case,
  798. scm_i_cond, scm_i_letstar, scm_i_do, scm_i_quasiquote,
  799. scm_i_define, scm_i_letrec, scm_i_let, scm_i_atapply,
  800. scm_i_atcall_cc, scm_i_breakpoint): Renamed: Consequently use
  801. scm_sym_ as prefix for symbols.
  802. * debug.c (scm_i_proc, scm_i_args, scm_i_eval_args): Removed.
  803. * eval.c, eval.h (scm_sym_begin, scm_sym_if, scm_sym_and,
  804. scm_sym_case, scm_sym_cond, scm_sym_letstar, scm_sym_do,
  805. scm_sym_define, scm_sym_letrec, scm_sym_atapply,
  806. scm_sym_atcall_cc): Made global.
  807. 1999-08-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  808. * eval.c (scm_sym_args): Made global.
  809. * objects.c (scm_set_object_procedure_x): Disallow setting of
  810. procedures for pure generic functions.
  811. 1999-08-12 Gary Houston <ghouston@easynet.co.uk>
  812. * ports.c (scm_seek): one more: was scm_lseek. Also changed the
  813. Scheme name from lseek to seek, but lseek was added recently so
  814. it shouldn't be a big problem.
  815. * ports.c, gdbint.c, ioext.c: changed callers.
  816. 1999-08-11 Gary Houston <ghouston@easynet.co.uk>
  817. * fports.c (fport_input_waiting): if select is used, return 1
  818. instead of whatever FD_ISSET expands to. maybe it will be useful
  819. to interpret the value from the input_waiting ptob procedure as a
  820. lower bound on the number of bytes available.
  821. * Mikael asked for a few names to be changed...
  822. * ports.c (scm_make_port_type): take the write procedure as the
  823. second argument instead of the flush procedure.
  824. * ports.h (scm_ptob_descriptor): rename the ptob procedures:
  825. fflush -> flush, read_flush -> end_input, fclose -> close,
  826. fill_buffer -> fill_input, ftruncate -> truncate,
  827. input_waiting_p -> input_waiting.
  828. * ports.c (end_input_void_port): was read_flush_void_port.
  829. (scm_set_port_end_input): was scm_set_port_flush_input.
  830. (scm_set_port_flush): was scm_set_port_write.
  831. (scm_set_port_input_waiting): was scm_set_port_input_waiting_p
  832. (scm_end_input): was scm_read_flush.
  833. (scm_fill_input): was scm_fill_buffer.
  834. (scm_flush): was scm_fflush.
  835. * fports.c (fport_input_waiting): renamed from fport_input_waiting_p.
  836. (fport_end_input): was local_read_flush.
  837. (fport_flush): was local_fflush.
  838. (fport_close): was local_fclose.
  839. (fport_truncate): was local_ftruncate.
  840. (fport_seek): was local_seek.
  841. (fport_free): was local_free.
  842. (fport_fill_input): was fport_fill_buffer.
  843. * strports.c (st_end_input): was st_read_flush.
  844. (st_truncate): was st_ftruncate.
  845. * vports.c: (sf_flush): was sfflush.
  846. (sf_close): was sfclose.
  847. (sf_fill_input): was sf_fill_buffer.
  848. * ports.c, fports.c, strports, vports.c, ioext.c, unif.c, filesys.c:
  849. change callers.
  850. 1999-08-06 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  851. * eval.c (SCM_IM_DISPATCH): Rewrote dispatch protocol. Dispatch
  852. forms now contain the expressions to be dispatched upon instead of
  853. depending on a surrounding lambda or let; Generic function
  854. dispatch has been optimized; `apply' on a generic function now
  855. works a little bit strangely. It uses a trick so that the type
  856. dispatch code in SCM_CEVAL can be reused.
  857. * objects.h, objects.c (scm_apply_generic_env): Added (used by
  858. apply).
  859. (scm_operator_p): Added.
  860. (scm_sym_atdispatch): Added.
  861. (scm_set_object_procedure_x): Modified to handle the new style
  862. generic functions.
  863. (scm_object_procedures): New debugging procedure.
  864. 1999-08-05 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  865. * eval.c, eval.h (scm_sym_args): Added.
  866. * objects.h (SCM_CLASSF_PURE_GENERIC): Added.
  867. * feature.c, feature.h (scm_c_run_hook): Added.
  868. * eval.c (SCM_CEVAL:SCM_IM_DISPATCH): Bugfix: Jump back to
  869. cdrxnoap and loopnoap instead of begin and loop.
  870. 1999-08-04 Gary Houston <ghouston@easynet.co.uk>
  871. * ports.c (scm_putc, scm_puts),
  872. * unif.c (scm_uniform_array_write): use scm_lfwrite.
  873. * ports.c (scm_putc): change type of first argument from int to char.
  874. 1999-08-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  875. * eval.c (SCM_CEVAL): Improvements to SCM_IM_DISPATCH and
  876. SCM_IM_HASH_DISPATCH.
  877. * objects.h (SCM_CLASSF_GOOPS_VALID): Added.
  878. (scm_si_redfined, scm_si_hashsets): Moved.
  879. * objects.c (scm_class_of): Use the new SCM_CLASSF_GOOPS_VALID
  880. flag which combines type and status info so that the class
  881. redefinition protocol has zero cost during normal execution.
  882. 1999-08-03 Gary Houston <ghouston@easynet.co.uk>
  883. * ports.h (scm_ptob_descriptor): include a write procedure again.
  884. it's more efficient for unbuffered fports (e.g., sockets.)
  885. * ports.c (scm_puts): use ptob->write.
  886. * vports.c (scm_make_sfptob): set write proc in ptob.
  887. * strports.c (scm_make_stptob): set write proc in ptob.
  888. * ports.c (write_void_port): new procedure.
  889. * vports.c (sf_write): new procedure.
  890. * ports.c (scm_lfwrite): use ptob->write.
  891. * strports.c (st_write): new procedure.
  892. * fports.c (fport_write): new procedure.
  893. (scm_make_fptob): set write in ptob to fport_write.
  894. * ports.h: prototype for scm_set_port_write.
  895. * ports.c (scm_make_port_type): initialise ptob write procedure.
  896. (scm_set_port_write): new proc.
  897. 1999-08-01 Jim Blandy <jimb@savonarola.red-bean.com>
  898. * ports.c (scm_char_ready_p): Don't try to find PORT's ptab entry
  899. until we've verified that it is actually a port. (Thanks to
  900. Lorentey Karoly.)
  901. 1999-07-31 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  902. * gc.c (scm_must_malloc, scm_must_realloc): Removed unnecessary
  903. code, particularly an unnecessary test (len != size, where len ==
  904. size). (Was this leftovers from debugging code, or have I missed
  905. something profound?)
  906. * hashtab.c: Bugfix: Don't declare s_hash_fold without storage
  907. size. (Thanks to James Dean Palmer.)
  908. * numbers.c (scm_makdbl): Bugfix: Initialize imaginary part.
  909. (Thanks to Lorentey Karoly.)
  910. 1999-07-30 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  911. * eval.c (scm_m_expand_body): Use scm_cons_source.
  912. * struct.c (scm_print_struct): Use vtable name.
  913. * print.c (scm_init_print): Set name of print state type.
  914. * stacks.c (scm_init_stacks): Set name of stack type.
  915. 1999-07-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  916. * eval.c (SCM_CEVAL): Removed old implementation of internal
  917. define.
  918. * gsubr.c, procprop.h (scm_i_inner_name): Removed.
  919. * debug.c, debug.h (scm_reverse_lookup): Added.
  920. (scm_procedure_name): Use scm_reverse_lookup to lookup the name of
  921. internal procedure definitions; Don't use scm_i_inner_name.
  922. * eval.c, tags.h, print.c (SCM_IM_SLOT_REF, SCM_IM_SLOT_SET_X):
  923. New isym operations.
  924. * eval.h: Added prototypes for multi language support functions.
  925. * eval.c (SCM_IM_DISPATCH, SCM_IM_HASH_DISPATCH): Don't use
  926. improper lists in the low-level representation, since that will
  927. cause a begin to be prepended at macro expansion.
  928. * eval.c (scm_cons_source): Version of cons which copies source
  929. properties from an existing cell.
  930. (scm_copy_tree, SCM_CEVAL): Use scm_cons_source.
  931. * debug.c (scm_procedure_source): Cons SCM_IM_LAMBDA onto
  932. procedure source before calling scm_unmemocopy instead of faking
  933. an environment.
  934. 1998-10-25 Marius Vollmer <mvo@zagadka.ping.de>
  935. Ported `internal defines' fix from SCM. Original ChangeLog entry:
  936. 1998-07-09 Radey Shouman <radey@colorage.com>
  937. * eval.c (ceval_1): Modifications to allow rewriting of interal
  938. DEFINE to LETREC: If an ISYM is evaluated in non-tail position the
  939. body of which it is the CAR is macro expanded by m_expand_body,
  940. which rewrites internal DEFINE.
  941. (m_expand_body): Added.
  942. (m_macroexp1): Added argument to control error checking:
  943. m_expand_body may speculatively expand forms in the wrong
  944. environments. Made argument number checks conditional on
  945. RECKLESS.
  946. (m_body): Added, error checks bodies and inserts the ISYM tokens.
  947. (m_lambda): (m_letstar): (m_letrec1): (m_letrec): (m_let): Now
  948. call m_body.
  949. (m_cond): (m_case): (m_quote): Modified to avoid destructively
  950. changing their argument forms. Since m_expand_body
  951. speculatively macro expands forms the process must be
  952. reversible.
  953. (m_ident_eqp): Fixed to use proper environment.
  954. (renamed_ident): Added DEFER_INTS_EGC.
  955. Added prototypes for static functions.
  956. * eval.c
  957. (undef_cell): New.
  958. (scm_lookupcar1, scm_lookupcar): Added CHECK argument. When CHECK
  959. is false, do not produce an error for unbound variables, return a
  960. pointer to cell_undef instead.
  961. (EVALCELLCAR, XEVALCAR): Call scm_lookupcar with check=1.
  962. (scm_m_body): New.
  963. (scm_m_cond, scm_m_case, scm_m_quote): Modified to avoid
  964. destructively changing their argument forms. Since m_expand_body
  965. speculatively macro expands forms the process must be reversible.
  966. (scm_m_lambda): Use scm_m_body instead of bodycheck. Account for
  967. SCM_IM_LET introduced by named lets.
  968. (scm_m_letstar): Use scm_m_body instead of bodycheck.
  969. (scm_m_letrec1, scm_letrec): Split scm_letrec into scm_letrec1 and
  970. scm_letrec. scm_letrec1 does not check for a null binding and
  971. takes an additional argument to specify the ISYM of the body. Use
  972. scm_m_body instead of bodycheck.
  973. (scm_m_let): Use scm_m_body instead of bodycheck.
  974. (scm_m_expand_body, scm_macroexp): New.
  975. (unmemocopy): Account for ISYMs introduced by scm_m_body.
  976. (ceval, deval): Call scm_m_expand_body. Call scm_lookupcar with
  977. check=1. Throw error for internal defined that have not been
  978. rewritten by scm_m_expand_body.
  979. * eval.h: Added prototypes for scm_m_expand_body and scm_macroexp.
  980. Removed prototype for SCM_APPLY.
  981. * tags.h: Added extern declaration of scm_isymnames.
  982. 1999-07-27 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  983. * Makefile.am (EXTRA_libguile_la_SOURCES): Added lang.c.
  984. * lang.c: New file: Beginning of multi-language support.
  985. * init.c (scm_boot_guile_1): Added call to scm_init_lang ().
  986. * dynwind.c (scm_dowinds): Removed obsolete wind_key #f case.
  987. (scm_dynamic_wind): Added argument checking for the after guard so
  988. that we don't add garbage on the dynwind chain.
  989. (scm_swap_bindings): Added.
  990. * tags.h, print.c (SCM_IM_NIL_COND, SCM_IM_NIL_IFY, SCM_IM_T_IFY,
  991. SCM_IM_0_COND, SCM_IM_0_IFY, SCM_IM_1_IFY), print.c
  992. (scm_isymnames): New isyms for multi-language support.
  993. * eval.c (scm_nil, scm_t): New symbols.
  994. (nil-cond, nil-ify, t-ify, 0-cond, 0-ify, 1-ify): New special
  995. forms for multi-language support.
  996. 1999-07-25 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  997. * random.c, random.h (scm_c_default_rstate, scm_c_uniform32):
  998. Added.
  999. Renamed functions in the random function library interface
  1000. from scm_i_XXX --> scm_c_XXX.
  1001. 1999-07-25 Gary Houston <ghouston@easynet.co.uk>
  1002. * ports.c (scm_putc): fix line-buffering.
  1003. 1999-07-25 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1004. * ports.c, ports.h, fports.c, strports.c, vports.c: Renamed
  1005. scm_set_ptob_XXX --> scm_set_port_XXX.
  1006. 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1007. * ports.c, ports.h (scm_make_port_type): New interface for
  1008. creation of port types (replaces scm_newptob). Just as for the
  1009. smobs, we need to separate the internal representation of smob
  1010. types from the interface, so that we easily can add new fields and
  1011. rearrange things without caring about backward compatibility.
  1012. This change was forced by the need in GOOPS to create classes
  1013. representing port types.
  1014. (scm_set_ptob_mark, scm_set_ptob_free, scm_set_ptob_print,
  1015. scm_set_ptob_equalp, scm_set_ptob_flush_input, scm_set_ptob_close,
  1016. scm_set_ptob_seek, scm_set_ptob_truncate,
  1017. scm_set_ptob_input_waiting_p): New setters.
  1018. (scm_newptob): Rewritten to use scm_make_port_type. For backward
  1019. compatibility.
  1020. (scm_ptobs): Changed type scm_ptobfuns --> scm_ptob_descriptor.
  1021. (scm_prinport): Removed.
  1022. (scm_port_print): Added.
  1023. (scm_print_port_mode): Added.
  1024. (void_port_ptob, print_void_port, close_void_port, noop0):
  1025. Removed. Removed #include "genio.h" Added #include "objects.h",
  1026. #include "smobs.h"
  1027. * fports.c (prinfport): Moved code from ports.c.
  1028. (local_free): Added.
  1029. (scm_fptob): Removed. Instead use new interface.
  1030. (scm_make_fptob): Added. (Need to create basic ports in a
  1031. specific order in ports.c.)
  1032. * strports.c (scm_stptob, prinstpt, noop0): Removed
  1033. (scm_make_stptob): Added.
  1034. * vports.c (scm_sfport, prinsfpt, sf_read_flush, noop0): Removed.
  1035. (scm_make_sfport): Added.
  1036. * filesys.c (scm_dir_print): Don't use the port printing code.
  1037. Instead provide specific directory printer.
  1038. * gc.c (scm_gc_sweep): Use value returned from scm_ptobs[].free.
  1039. * ioext.c (scm_redirect_port): Replaced scm_ptobfuns -->
  1040. scm_ptob_descriptor.
  1041. * smob.c (scm_smob_print): Handle non-existing type name nicely.
  1042. Removed #include "genio.h"
  1043. * objects.c (scm_make_port_classes): New function ptr.
  1044. 1999-07-24 Gary Houston <ghouston@easynet.co.uk>
  1045. * gdbint.c (gdb_print, gdb_read): call scm_truncate_file.
  1046. * ports.c (scm_truncate_file): renamed from scm_ftruncate.
  1047. allow the 1st argument to be a fdes or filename as well as a
  1048. port (as in the filesys.c version).
  1049. * filesys.c (scm_truncate_file): removed.
  1050. 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
  1051. * readline.c, readline.h: Removed.
  1052. * objects.c, objects.h (scm_port_class): Added.
  1053. (scm_class_of): Look up port class in scm_port_class.
  1054. (SCM_IN_PCLASS_INDEX, SCM_OUT_PCLASS_INDEX,
  1055. SCM_INOUT_PCLASS_INDEX): Added.
  1056. * Makefile.am: Removed genio.c, genio.x.
  1057. * genio.c: Removed.
  1058. 1999-07-23 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  1059. * init.c: Make sure that scm_post_boot_init_modules is called only
  1060. once. (Important when using a dumped image.; Thanks to Bernard
  1061. Urban.)
  1062. 1999-07-19 Jim Blandy <jimb@savonarola.red-bean.com>
  1063. * guardians.c (scm_guardian_zombify): Separate scanning for
  1064. zombies from marking the pairs of the free list.
  1065. * guardians.c (scm_guardian_zombify): Don't set marks manually ---
  1066. use the macros. (Thanks to Michael Livshin.)
  1067. * eval.c (scm_m_lambda): Let bodycheck check the body of the
  1068. lambda. Let your sins be purified by the blood of the lambda.
  1069. (Thanks to Eric Hanchrow.)
  1070. * net_db.c (h_errno): Don't declare this if it's #defined. Eew.
  1071. (Thanks to Valdis Kletnieks.)
  1072. Fixes for EMX from Mikael Ståldal.
  1073. * filesys.c: #include <io.h>, if we have it.
  1074. * scmconfig.h.in: Regenerated.
  1075. * stime.c (ftime): Delete declaration for this function --- let
  1076. the system supply it.
  1077. Cleanups from John Bley.
  1078. * gdbint.c: Don't include <stdio.h> and "_scm.h" twice.
  1079. * gsubr.c: Don't include "gsubr.h" twice.
  1080. Cleanups for compilation on Irix 6, from David Kaelbling.
  1081. * regex-posix.c (scm_regexp_error_msg): Change `rx' argument to
  1082. regex_t pointer. This is what the callers have, mostly.
  1083. (scm_regexp_exec): Don't forget to pass the `rx' argument to
  1084. scm_regexp_error_msg.
  1085. * scmsigs.c (scm_sigaction): Cast SIG_DFL and SIG_IGN to SCM, not
  1086. int. That way, if we get a warning on this line, it's more likely
  1087. that we're really missing bits we care about.
  1088. * snarf.h (SCM_CONST_LONG): Remove trailing semicolon from
  1089. definition.
  1090. * tags.h (SCM_IMP, SCM_NCONSP, SCM_NCELLP, SCM_ITAG3, SCM_TYP3,
  1091. SCM_TYP7, SCM_TYP7S, SCM_TYP16, SCM_TYP16S, SCM_GCTYP16,
  1092. SCM_GCMARKP, SCM_GC8MARKP): Don't cast to int. Either SCM or no
  1093. cast at all is more appropriate in every case. At the moment, we
  1094. assume everywhere that SCM is an integral type anyway.
  1095. 1999-07-14 Gary Houston <ghouston@easynet.co.uk>
  1096. * unif.c (scm_uniform_array_read_x), ports.c (scm_getc): increment
  1097. read_pos after scm_fill_buffer.
  1098. * ioext.c (scm_do_read_line): simplify by ignoring the fill_buffer
  1099. return char.
  1100. * vports.c (sf_fill_buffer), strports.c (stfill_buffer),
  1101. fports.c (fport_fill_buffer): implement the interface change.
  1102. * ports.c (scm_fill_buffer): interface change: no longer increments
  1103. read_pos past the character that's returned. it seems clearer to
  1104. leave it to the caller to decide what to do (thanks Jim).
  1105. * vports.c (sf_fill_buffer): put the read char into the buffer
  1106. as well as returning it.
  1107. * ports.c (scm_grow_port_cbuf): residue of this deleted procedure
  1108. deleted.
  1109. 1999-07-13 Gary Houston <ghouston@easynet.co.uk>
  1110. * strports.c (scm_strprint_obj): simplify. start with initial
  1111. buffer size of 0.
  1112. (st_seek): don't allow string to be extended if seeking past
  1113. the end of a read-only port.
  1114. 1999-07-12 Gary Houston <ghouston@easynet.co.uk>
  1115. * strports.c (st_seek): change the resize checks.
  1116. * ports.c (scm_ftruncate): throw error if offset works out negative.
  1117. * strports.c (st_flush): increase string size in blocks of
  1118. SCM_WRITE_BLOCK instead of 1. set read_end to read_pos if
  1119. it's greater and reset read_buf_size.
  1120. (scm_mkstrport): set rw_randow if only writing, since read_buf needs
  1121. to be maintained for output ports too (it holds the written
  1122. part of the string, while write_buf may have unwritten buffer
  1123. chars.)
  1124. (st_truncate): rewritten.
  1125. (top of file): added a few notes.
  1126. 1999-07-10 Jim Blandy <jimb@savonarola.red-bean.com>
  1127. Patch from Greg Badros:
  1128. * snarf.h (SCM_PROC, SCM_PROC1): Use __cplusplus or
  1129. GUILE_CPLUSPLUS_SNARF macros to force adding a cast to the last
  1130. (function pointer) argument to scm_make_gsubr and scm_make_subr
  1131. calls. This avoids warnings in C++ programs using guile-snarf.
  1132. 1999-07-06 Gary Houston <ghouston@easynet.co.uk>
  1133. * strports.c (st_grow_port): set pt->read_pos. set
  1134. pt->read_buf_size one less than pt->write_buf_size if there's
  1135. an unwritten char at the end of the string. similarly for
  1136. pt->read_end.
  1137. (st_resize_port): renamed from st_grow_port.
  1138. (st_seek): simplify by assuming that pt->write_pos == pt->read_pos.
  1139. seek from read_end instead of write_end for SEEK_END.
  1140. (st_ftruncate): calculate current length using readbuf, not write
  1141. buf.
  1142. (scm_strport_to_string): use read_buf_size for length.
  1143. (stfill_buffer): don't re-initialise the readbuf.
  1144. 1999-07-05 Gary Houston <ghouston@easynet.co.uk>
  1145. * strports.c (scm_strport_to_string): new procedure.
  1146. (scm_call_with_output_string, scm_strprint_obj): use
  1147. scm_strport_to_string.
  1148. used SCM_INUM0 instead of SCM_MAKINUM (0) in a few places.
  1149. 1999-07-08 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  1150. * symbols.c (scm_gensym): Bugfix. (Thanks to Johannes Hjorth.)
  1151. Fri Jun 25 22:14:32 1999 Greg Badros <gjb@cs.washington.edu>
  1152. * smob.c: added scm_make_smob_type_mfpe (), scm_set_smob_mfpe ();
  1153. use scm_make_smob_type_mfpe to initialize "free", "flo", "bigpos",
  1154. and "bigneg" smob types.
  1155. * smob.h: Add do ... while(0) idiom to SCM_NEWSMOB. Added
  1156. SCM_RETURN_NEWSMOB macro. Added protos for new functions in
  1157. smob.c.
  1158. * *.c: Use scm_make_smob_type_mfpe, instead of scm_newsmob, and
  1159. use SCM_NEWSMOB or SCM_RETURN_NEWSMOB in constructors instead of
  1160. SCM_NEWCELL and setting the CAR/CDR by hand.
  1161. 1999-07-04 Gary Houston <ghouston@easynet.co.uk>
  1162. * ports.c (scm_putc): call scm_read_flush.
  1163. (scm_puts): likewise.
  1164. (scm_lfwrite): likewise.
  1165. (scm_lseek): likewise.
  1166. (scm_ftruncate): likewise.
  1167. * unif.c (scm_uniform_array_write): likewise.
  1168. * ioext.c (scm_redirect_port): likewise.
  1169. * ports.c (scm_fill_buffer): don't take pt argument. change callers.
  1170. (read_flush_void_port): new proc, for void port ptob.
  1171. * vports.c (sf_read_flush): likewise.
  1172. * strports.c (st_read_flush): take offset arg.
  1173. * fports.c (local_read_flush): use offset, don't reset putback
  1174. buffer here.
  1175. * ports.h (scm_ptobfuns): let read_flush take an offset argument,
  1176. which is the number of chars from the putback buffer.
  1177. * ports.c (scm_read_flush): new procedure, resets the putback
  1178. buffer before calling the ptob routine.
  1179. * strports.c (scm_strprint_obj): bug fix: get pt from the port,
  1180. not from the parameter obj. (Thanks to Eric Moore.)
  1181. * ports.h: SCM_CRDY, SCM_CUC, SCM_CRDYP, SCM_SETRDY, SCM_CUNGET,
  1182. SCM_CGETUN, SCM_CLRDY, SCM_TRY_CLRDY, SCM_N_READY_CHARS: deleted.
  1183. * strings.c (scm_make_string): throw error if 2nd arg isn't
  1184. a char.
  1185. * unif.c (scm_uniform_array_read_x): fix reading from a port.
  1186. allow non-fports.
  1187. (scm_uniform_array_write): likewise.
  1188. 1999-06-29 Gary Houston <ghouston@easynet.co.uk>
  1189. * ports.c (scm_drain_input): rewritten.
  1190. * fports.c (local_fclose): check putback_buf.
  1191. (local_read_flush): likewise.
  1192. * ports.c (scm_remove_from_port_table): maybe free putback_buf.
  1193. * ports.h (scm_port): replace cbuf/cbufend/cp with putback_buf/
  1194. putback_buf_size.
  1195. (SCM_INITIAL_PUTBACK_BUF_SIZE): renamed from SCM_INITIAL_CBUF_SIZE.
  1196. * ports.c (scm_grow_port_cbuf): deleted.
  1197. (scm_add_to_port_table): initialise putback_buf to 0. remove cbuf
  1198. stuff.
  1199. (scm_char_ready_p): check putback_buf
  1200. (scm_fill_buffer): likewise.
  1201. (scm_ungetc): rewritten.
  1202. 1999-06-27 Gary Houston <ghouston@easynet.co.uk>
  1203. * fports.c (local_fclose): account for push-back buffer.
  1204. * ports.c (scm_char_ready_p): check the push-back buffer in
  1205. a new way.
  1206. * ioext.c (scm_do_read_line): remove the extra code to handle
  1207. the push-back buffer.
  1208. * ports.c (scm_getc): don't use SCM_CRDYP etc.
  1209. * ioext.c (scm_do_read_line): call scm_fill_buffer.
  1210. * ports.c (scm_ungetc): don't call SCM_CUNGET. reset the
  1211. read buffer pointers.
  1212. scm_fill_buffer: new procedure.
  1213. (scm_getc): call scm_fill_buffer.
  1214. * ports.h (struct scm_port): saved_read_buf, saved_read_pos,
  1215. saved_read_end: new fields.
  1216. 1999-06-24 Mikael Djurfeldt <mdj@orjan.nada.kth.se>
  1217. * dynl-dl.c (sysdep_dynl_link): Added parenthesis around the
  1218. trinary conditional in order for the flag computation to be
  1219. correct.
  1220. 1999-06-23 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  1221. * struct.c, struct.h:
  1222. In order to support different kinds of deallocation, a destructor
  1223. slot has been added to struct vtables. This allows for structs
  1224. containing pointers to other memory blocks.
  1225. (scm_struct_i_free): New hidden struct slot. Holds destructor for
  1226. instances to this vtable.
  1227. (scm_struct_free_0): New destructor: Doesn't deallocate data.
  1228. (scm_struct_free_light): New destructor: Deallocates a light
  1229. struct (i.e. a struct without hidden slots).
  1230. (scm_struct_free_standard): New destructor: Deallocates standard
  1231. structs.
  1232. (scm_struct_free_entity): New destructor: Deallocates entity
  1233. structs.
  1234. (SCM_SET_VTABLE_DESTRUCTOR): New macro.
  1235. Changes to hidden slots:
  1236. (scm_struct_i_size): scm_struct_i_flags now shares space with
  1237. scm_struct_i_size which holds the size of light structs.
  1238. (scm_struct_i_n_words): This slot has changed meaning. Previously
  1239. it included hidden slots. Now it indicates visible slots.
  1240. (scm_alloc_struct): Clear flags.
  1241. (SCM_STRUCTF_MASK): 4 new flag positions added => 12 bits.
  1242. (struct_num, scm_struct_i_tag): Removed.
  1243. (scm_struct_vtable_tag): Base tag on the pointer to mallocated
  1244. memory.
  1245. (scm_struct_ihashq): Base hash value on pointer to struct handle.
  1246. * tag.c (scm_tag): Base tag on vtable pointer.
  1247. * objects.c (scm_init_objects): Initialize destructor slot of the
  1248. primordial entity class.
  1249. * objects.h (SCM_SET_CLASS_DESTRUCTOR,
  1250. SCM_SET_CLASS_INSTANCE_SIZE): New macros.
  1251. * gc.c (scm_gc_sweep): Call struct free slot.
  1252. * keywords.c, keywords.h (scm_c_make_keyword): New function.
  1253. (We should remove the use of the prefix '-'.)
  1254. * snarf.h (SCM_KEYWORD, SCM_GLOBAL_KEYWORD): New macros.
  1255. * libguile.h: #include "objects.h"
  1256. 1999-06-22 Marius Vollmer <mvo@zagadka.ping.de>
  1257. * dynl.c (DYNL_GLOBAL): New.
  1258. (sysdep_dynl_link): Added `flags' argument.
  1259. (kw_global, sym_global): New.
  1260. (scm_dynamic_link): Handle keyword arguments. Pass suitable flags
  1261. to sysdep_dynl_link.
  1262. * dynl-dl.c (sysdep_dynl_link): Handle new `flags' argument by
  1263. conditrionally adding RTLD_GLOBAL to DLOPEN_MODES.
  1264. * dynl-shl.c (sysdep_dynl_link): Add and ignore new flags
  1265. argument.
  1266. * dynl-dld.c (sysdep_dynl_link): Add and ignore new flags
  1267. argument.
  1268. * dynl.h (scm_dynamic_link): Added rest argument.
  1269. 1999-06-21 Marius Vollmer <mvo@zagadka.ping.de>
  1270. * dynl.c (sysdep_dynl_unlink, sysdep_dynl_func): Use const
  1271. qualifier for char* argument, to match prototypes. Thanks to Mark
  1272. Elbrecht.
  1273. 1999-06-21 Jim Blandy <jimb@savonarola.red-bean.com>
  1274. * dynl.c (no_dynl_error, sysdep_dynl_link, sysdep_dynl_unlink,
  1275. sysdep_dynl_func): Use ANSI declarations, and const char *
  1276. pointers. (Thanks to Mark Elbrecht.)
  1277. 1999-06-19 Jim Blandy <jimb@savonarola.red-bean.com>
  1278. Patch from Greg Harvey:
  1279. * eq.c, eval.c, list.c, ramap.c, vectors.c: Always write parens
  1280. around the condition of an `if', `while', etc., even if the
  1281. condition is a macro invocation that expands to something
  1282. surrounded by parens. It's more readable.
  1283. * eval.c (scm_map, scm_for_each): Verify that all arguments are
  1284. proper lists, and of the appropriate lengths.
  1285. (check_map_args): New function. (Thanks to Greg Harvey for the
  1286. bug report.)
  1287. 1999-06-19 Michael Livshin <mike@olan.com>
  1288. * guardians.c (guardian_t): `next' - new field to be used for
  1289. chaining the live guardians in a single-linked list during the GC
  1290. mark phase.
  1291. (GUARDIAN_NEXT): convenience macro to access the `next' field.
  1292. (guardians, guardians_size, n_guardians): deleted.
  1293. (first_live_guardian, current_link_field): new globals used to
  1294. point to the head of the live guardian list and current `next'
  1295. field, respectively.
  1296. (g_mark): append the guardian to the live guardian list.
  1297. (scm_guardian_gc_init): zero the live guardian list.
  1298. (scm_guardian_zombify): iterate through the live guardian list.
  1299. (Applied by Jim Blandy.)
  1300. 1999-06-16 Jim Blandy <jimb@savonarola.red-bean.com>
  1301. * gc.c (scm_mallocated): Just make this signed.
  1302. (scm_igc): Check for underflow by seeing if this is negative.
  1303. Much cleaner.
  1304. * gc.h (scm_mallocated): Fix declaration.
  1305. (Thanks to Greg Harvey.)
  1306. * ports.h: #include <sys/types.h>, to get a definition for `off_t'.
  1307. 1999-06-15 Jim Blandy <jimb@savonarola.red-bean.com>
  1308. * stime.c (bdtime2c): Initialize lt->gmtoff and lt->tm_zone from
  1309. sbd_time. (Thanks to Eric Hanchrow.)
  1310. Fix from Ken Raeburn <raeburn@raeburn.org>:
  1311. * weaks.c (scm_make_weak_vector): Add another extra slot before
  1312. vector contents, to be used only during garbage collection.
  1313. * weaks.h (SCM_WVECT_GC_CHAIN): New macro to access it.
  1314. * gc.c (scm_weak_vectors): Now a SCM instead of a SCM*, and now
  1315. static.
  1316. (scm_weak_size, scm_n_weak): Deleted.
  1317. (scm_igc): Use SCM_WVECT_GC_CHAIN to build up a chain of weak
  1318. vectors without allocating new storage during GC, using
  1319. scm_weak_vectors as the head of the chain.
  1320. (scm_mark_weak_vector_spines): Walk SCM_WVECT_GC_CHAIN chain
  1321. instead of stepping through an array.
  1322. (scm_gc_sweep): Update offset used to find start of weak vector to
  1323. free it.
  1324. (scm_init_storage): Set scm_weak_vectors to EOL.
  1325. Fix from Ken Raeburn <raeburn@raeburn.org>:
  1326. * gc.c (already_in_gc): New variable.
  1327. (scm_igc): Set and clear already_in_gc; abort if it's set at
  1328. entry.
  1329. 1999-06-14 Jim Blandy <jimb@savonarola.red-bean.com>
  1330. Fix from Gary Houston:
  1331. * fports.c (local_seek): Signal an error if the seek fails.
  1332. * ports.c (scm_lseek): Don't check return value of port's seek
  1333. function; it's its job to signal an error if there's a problem.
  1334. 1999-06-12 Jim Blandy <jimb@savonarola.red-bean.com>
  1335. * strports.c (scm_call_with_output_string): Don't include the
  1336. extra character at the end of the string in the result.
  1337. * ioext.c (scm_read_line): Switch to reading properly.
  1338. * fports.c, fports.h, gc.c, gdbint.c, ioext.c, ports.c, ports.h,
  1339. scmsigs.c, strports.c, vports.c: Install the sources which
  1340. actually correspond to the changes described below. I got the
  1341. ChangeLog entries and the patch from two different places...
  1342. 1999-06-09 Jim Blandy <jimb@savonarola.red-bean.com>
  1343. * gc.c (scm_igc): Check for scm_mallocated underflow. Otherwise,
  1344. it shows up as terrible performance, as we GC constantly.
  1345. * ioext.c (scm_do_read_line): Rewritten to use memchr to find the
  1346. newline. A bit faster, and definitely hairier.
  1347. (scm_read_line): Count newlines here instead.
  1348. * strings.c (scm_take_str): New function.
  1349. (scm_take0str): Reimplement in terms of scm_take_str. * strings.h
  1350. (scm_take_str): New declaration. * ioext.c (scm_read_line): Use
  1351. scm_take_str, to avoid copying the string.
  1352. Add some simple-minded support for line buffered ports.
  1353. * ports.h (SCM_BUFLINE): New flag for ports.
  1354. * init.c (scm_init_standard_ports): Request line-buffering on
  1355. the standard output port.
  1356. * ports.c (scm_mode_bits): Recognize 'l' as a request for line
  1357. buffering.
  1358. (scm_putc, scm_puts, scm_lfwrite): If the port is line-buffered,
  1359. and there's a newline to be written, flush the port.
  1360. Gary Houston's open-buffer port patches:
  1361. 1999-04-26 Gary Houston <ghouston@easynet.co.uk>
  1362. * ports.c: (scm_lseek): clear buffers even if just reading current
  1363. position.
  1364. * fports.c (local_fclose): call local_fflush unconditionally.
  1365. (various): don't use the scm_must... memory procs.
  1366. 1999-04-25 Gary Houston <ghouston@easynet.co.uk>
  1367. * ports.h (scm_port): make read_pos a pointer to const.
  1368. strports.c: take care of rw_active and rw_randow.
  1369. fports.c: scm_fport_drain_input: removed. do it all in ports.c.
  1370. strports.c (scm_mkstrport): check that pos is reasonable.
  1371. ioext.c (scm_ftell, scm_fseek): use lseek.
  1372. (SCM_CLEAR_BUFFERS): macro deleted.
  1373. ioext.c (redirect_port: use ptob fflush, read_flush.
  1374. ports.h (scm_ptobfuns): add ftruncate.
  1375. ports.c (scm_newptob): set ftruncate.
  1376. adjust ptob tables.
  1377. ports.c (scm_ftruncate): new procedure.
  1378. fports.c (local_ftrunate), strports.c (str_ftruncate): new procs.
  1379. strports.c (st_seek, st_grow_port): new procs.
  1380. fports.h (scm_port): change size types from int to off_t.
  1381. ports.c (scm_init_ports): initialise the seek symbols here
  1382. instead of in ioext.c.
  1383. strports.c (scm_call_with_output_string): start with an empty
  1384. string, so seek and ftruncate can be used.
  1385. gdbint.c: adjust string port usage.
  1386. 1999-04-24 Gary Houston <ghouston@easynet.co.uk>
  1387. * ports.h (scm_ptobfuns): add a read_flush procedure which is the
  1388. equivalent to fflush for the read buffer.
  1389. * ports.c (scm_newptob): set read_flush.
  1390. ports.c (void_port_ptob): set read_flush.
  1391. fports.c (local_read_flush): new proc. add to ptob.
  1392. strport.c (st_read_flush): likewise.
  1393. vport.c (sf_read_flush): likewise.
  1394. fports.h (struct scm_fport): remove random member. there's nothing
  1395. left but fdes. leaving it as a struct to allow for future changes.
  1396. fports.c: replace usage of scm_fport::random with scm_port::rw_random.
  1397. ports.c: (scm_putc, scm_puts, scm_lfwrite): call the read_flush
  1398. ptob proc if the read buffer is filled.
  1399. 1999-04-23 Gary Houston <ghouston@easynet.co.uk>
  1400. * ports.h (scm_port): add a rw_random member and replace
  1401. reading and writing members with rw_active member.
  1402. SCM_PORT_READ/SCM_PORT_WRITE: new values.
  1403. 1999-04-22 Gary Houston <ghouston@easynet.co.uk>
  1404. * ports.h (struct scm_port_table): add writing and reading members
  1405. to replace write_needs_seek: it isn't good enough for non-fports.
  1406. ports.c, ioext.c, fports.c: corresponding changes.
  1407. (struct scm_port_table): give it a typedef and rename to scm_port.
  1408. ports.c, fports.c, strports.c, vports.c, ioext.c, ports.h:
  1409. corresponding changes.
  1410. 1999-04-20 Gary Houston <ghouston@easynet.co.uk>
  1411. * ports.c (scm_newptob): bugfix: set seek member.
  1412. * (scm_lseek): new procedure, using code from ioext.c:scm_fseek
  1413. and generalised to all port types.
  1414. 1999-04-18 Gary Houston <ghouston@easynet.co.uk>
  1415. * scmsigs.c (scm_init_scmsigs): set the SA_RESTART flag for all
  1416. signals (it was only being done for handlers installed from Scheme).
  1417. Otherwise (for example) SIGSTOP followed by SIGCONT on an interpreter
  1418. waiting for input caused an EINTR error from read.
  1419. 1999-04-07 Gary Houston <ghouston@easynet.co.uk>
  1420. * ports.h (struct scm_port_table): make all the char members
  1421. unsigned, so they convert to int without becoming negative if large.
  1422. 1999-03-14 Gary Houston <ghouston@easynet.co.uk>
  1423. * fports.c (scm_fdes_wait_for_input): forgot to check compilation
  1424. with threads enabled. rename this procedure to
  1425. fport_wait_for_input and take a port instead of a fdes.
  1426. use scm_fport_input_waiting_p instead of scm_fdes_waiting_p.
  1427. * readline.c (scm_readline): Applied a patch from Greg Harvey to
  1428. get readline support working again: use fdopen to get FILE objects.
  1429. 1999-02-26 Gary Houston <ghouston@easynet.co.uk>
  1430. * gc.c (scm_init_storage): install an atexit proc to flush the
  1431. ports.
  1432. (cleanup): the new proc. it sets a global variable which can be
  1433. checked by the ptob flush procs to avoid trying to throw
  1434. exceptions during exit. not very pleasant but it seems more reliable.
  1435. * fports.c (local_fflush): check terminating variable and if set
  1436. don't throw exception.
  1437. * CHECKME: that the atexit proc is installed if unexec used.
  1438. * throw.c (scm_handle_by_message): don't flush all ports here.
  1439. it still causes bus errors.
  1440. * fports.h (SCM_FPORT_CLEAR_BUFFERS): rename to SCM_CLEAR_BUFFERS
  1441. and move to ioext.c.
  1442. * fports.c (scm_fdes_waiting_p): merged into fport_input_waiting_p.
  1443. * ports.c (scm_char_ready_p): check the port buffer and call the
  1444. ptob entry if needed.
  1445. * ports.h (scm_ptobfuns): input_waiting_p added. change all the
  1446. ptob initialisers. use it in char-ready
  1447. * ioext.c (scm_do_read_line): moved from ports.c. make it static.
  1448. * vports.c (sfflush): modified to write a char (since softports
  1449. currently use shortbuf.)
  1450. * fports.c (scm_standard_stream_to_port): moved to init.c and
  1451. made static.
  1452. * init.c (scm_init_standard_ports): make stdout and stderr
  1453. unbuffered if connected to a terminal. with stdio they
  1454. were line-buffered by default.
  1455. (scm_ptobfuns): fputc, fputs, fwrite, fgetc, fgets removed.
  1456. update ptob tables.
  1457. * ports.h (scm_ptobfuns): change fflush return to void.
  1458. change flush proc definitions.
  1459. * strports.c (scm_call_with_output_string): get size from
  1460. buffer instead of port stream.
  1461. (st_flush): new proc.
  1462. * ports.h (struct scm_port_table): added write_end member,
  1463. as an optimisation. set it where write_buf_size is set.
  1464. * ports.h (struct scm_port_table): change stream from void *
  1465. back to SCM. SCM presumably must be large enough to hold a
  1466. pointer (and probably vice versa but who knows.)
  1467. (SCM_SSTREAM): deleted. change users back to SCM_STREAM.
  1468. (scm_puts): rewritten
  1469. * fports.c (local_ffwrite, local_fputs): removed.
  1470. * strports.c (stputc, stputs, stwrite): dyked out (FIXME)
  1471. * vports.c (sfputc, sfputs, sfwrite) likewise.
  1472. * ports.c (write_void_port, puts_void_port): removed.
  1473. (putc_void_port, getc_void_port, fgets_void_port): likewise.
  1474. * ports.c (scm_lfwrite): rewritten using fport.c version.
  1475. * fports.c (local_fputc): deleted.
  1476. * ports.c (scm_add_to_port_table): initialise write_needs_seek.
  1477. * ports.h (scm_ptobfuns): add seek function pointer.
  1478. * fports.c: set it to local_seek, new procedure.
  1479. * fports.h (SCM_MAYBE_DRAIN_INPUT): moved to ports.c.
  1480. use ptob for seek. take ptob instead of fport arg.
  1481. * ports.h (struct scm_port_table): new member write_needs_seek,
  1482. replaces reading member in fport struct.
  1483. * vports.c (sfgetc): store the getted char into the buffer.
  1484. rename to sf_fill_buffer and install it for fill-buffer in ptob.
  1485. the Scheme interface is still a procedure that gets a char.
  1486. (scm_make_soft_port): set up the port buffer (shortbuf).
  1487. * fports.c (local_fgetc, local_fgets): deleted.
  1488. * strports.c (stgetc): likewise.
  1489. * ports.c: scm_generic_fgets: likewise.
  1490. * ports.h (scm_ptobfuns): add fill_buffer.
  1491. * ports.c (scm_newptob): assign it.
  1492. * strports.c (scm_mkstrport): set up the buffer.
  1493. put just the string into the stream, not cons (pos stream).
  1494. (stfill_buffer): new proc.
  1495. * ports.h: fport buffer moved into port table: to be
  1496. used for all port types.
  1497. 1998-12-20 Gary Houston <ghouston@easynet.co.uk>
  1498. * throw.c (scm_handle_by_message): flush ports at exit.
  1499. * socket.c (scm_sock_fd_to_port): use scm_fdes_to_port.
  1500. (scm_getsockopt, scm_setsockopt, scm_shutdown, scm_connect,
  1501. scm_bind, scm_listen, scm_accept, scm_getsockname,
  1502. scm_getpeername, scm_recv, scm_send, scm_recvfrom,
  1503. scm_sendto,
  1504. use SCM_FPORT_FDES. use SCM_OPFPORTP not SCM_FPORTP.
  1505. * posix.c (scm_getgroups): use SCM_ALLOW/DEFER_INTS.
  1506. (scm_ttyname): use SCM_FPORT_FDES.
  1507. (scm_tcgetpgrp, scm_tcsetpgrp): likewise.
  1508. * filesys.c (scm_chown): use SCM_FPORT_FDES.
  1509. (scm_chmod, scm_stat, scm_truncate_file: likewise.
  1510. * ioext.c (scm_isatty_p): use SCM_FPORT_FDES.
  1511. (scm_fdes_to_ports): modified.
  1512. (scm_fdopen): use scm_fdes_to_port.
  1513. * ports.c (scm_init_ports): don't try to flush ports using
  1514. atexit(). it's too late, errors will cause SEGV.
  1515. * fports.c (scm_fport_buffer_add): new procedure.
  1516. * fports.h (SCM_FDES_RANDOM_P): new macro. use it in
  1517. scm_fdes_to_port and scm_redirect_port.
  1518. * ioext.c (scm_redirect_port): use setvbuf to set buffers in the
  1519. new port. reset fp->random.
  1520. * fports.c (scm_fdes_to_port), ports.c (scm_void_port),
  1521. filesys.c (scm_opendir):
  1522. restore defer interrupts while the port is constructed.
  1523. (scm_setvbuf): if mode is _IOFBF and size is not supplied,
  1524. derive buffer size from fdes or use a default.
  1525. (scm_fdes_to_port): use setvbuf instead of creating the buffers
  1526. directly.
  1527. vports.c (various places): use SCM_SSTREAM.
  1528. strports.c: likewise.
  1529. * gdbint.c: likewise.
  1530. * ports.h (SCM_SSTREAM): new macro.
  1531. * fports.c (scm_input_waiting_p): use scm_return_first, since port
  1532. may be removed from the stack by the tail call to scm_fdes_waiting_p.
  1533. * fports.h (SCM_CLEAR_BUFFERS): new macro.
  1534. * filesys.c (scm_fsync): use SCM_FDES.
  1535. * ports.c (scm_force_output): call scm_fflush.
  1536. * print.c (scm_newline): don't check errno for EPIPE (it wouldn't
  1537. reach this point.) don't flush port (if scm_cur_outp).
  1538. * fports.h (SCM_FPORT_FDES): new macro.
  1539. * filesys.c (scm_fcntl): get fdes from fport.
  1540. (set_element, get_element): likewise.
  1541. * vports.c (sfflush): don't need to set errno.
  1542. * ports.c: install scm_flush_all_ports to be run on exit.
  1543. * filesys.c (scm_open): adjust port_mode for O_APPEND and O_CREAT.
  1544. ports.c fports.c ioext.c posix.c socket.c net_db.c filesys.c:
  1545. removed all uses of SCM_DEFER/ALLOW ints for now. they were mainly
  1546. just protecting errno. some may need to be put back.
  1547. * scmsigs.c (take_signal): save and restore errno while this
  1548. proc runs.
  1549. *fports.c (print_pipe_port, local_pclose, scm_pipob): deleted.
  1550. open-pipe, close-pipe are emulated in (ice-9 popen)
  1551. ports.c (scm_ports_prehistory): don't init scm_pipob.
  1552. ports.h (scm_tc16_pipe): deleted.
  1553. posix.c (scm_open_pipe, scm_close_pipe): deleted.
  1554. * ioext.c (scm_primitive_move_to_fdes): use fport.
  1555. * fport.c (scm_fport_fill_buffer): flush write buffer if needed.
  1556. change arg type from scm_fport to SCM port.
  1557. fport.h (SCM_SETFDES): removed.
  1558. (SCM_MAYBE_DRAIN_INPUT): new macro.
  1559. * fport.h (struct scm_fport): added 'random'.
  1560. fport.c (scm_open_file): set random if lseek works.
  1561. * ioext.c (scm_dup_to_fdes): use SCM_FSTREAM.
  1562. (scm_ftell): always use lseek and account for the buffer.
  1563. (scm_fileno): use fport buffer.
  1564. (scm_fseek): clear fport buffers. always use lseek.
  1565. * posix.c (scm_pipe): use fport buffer.
  1566. * unif.c: include fports.h instead of genio.h.
  1567. * fports.c (scm_fdes_wait_for_input, scm_fport_fill_buffer): new
  1568. procedures.
  1569. (local_fgetc): use them.
  1570. (local_ffwrite): use buffer.
  1571. (local_fgets): use buffer.
  1572. (scm_setbuf0): deleted.
  1573. (scm_setvbuf): set the buffer.
  1574. (scm_setfileno): deleted.
  1575. (scm_evict_ports): set fdes directly.
  1576. (scm_freopen): deleted. doesn't seem useful in Guile.
  1577. (scm_stdio_to_port): deleted.
  1578. fports.h (struct scm_fport): add shortbuf member to avoid separate
  1579. code for unbuffered ports.
  1580. (SCM_FPORTP, SCM_OPFPORTP, SCM_OPINFPORTP, SCM_OPOUTFPORTP): moved
  1581. from ports.h.
  1582. * genio.c, genio.h: move contents into ports.c, ports.h. The
  1583. division wasn't useful.
  1584. * fports.c, fports.h (scm_fport_drain_input): new procedure.
  1585. * ports.c (scm_drain_input): call scm_fport_drain_input.
  1586. * scm_fdes_waiting_p: new procedure.
  1587. * fports.c (scm_fdes_to_port): allocate read and/or write buffers.
  1588. (scm_input_waiting_p): check the buffer.
  1589. (local_fgetc, local_fflush, local_fputc): likewise.
  1590. * fports.h (scm_fport): read/write_buf,_pos,_buf_end,,_buf_size:
  1591. new members.
  1592. * init.c (scm_init_standard_ports): pass fdes instead of FILE *.
  1593. * ports.c (scm_drain_input): new procedure.
  1594. ports.h: prototype.
  1595. * fports.c (FPORT_READ_SAFE, FPORT_WRITE_SAFE, FPORT_ALL_OKAY,
  1596. pre_read, pre_write): removed.
  1597. (local_fputc, local_fputs, local_ffwrite): use write, not stdio.
  1598. (scm_standard_stream_to_port): change first arg from FILE * to
  1599. int fdes.
  1600. (local_fflush): flush fdes, not FILE *.
  1601. * fports.h (SCM_NOFTELL): removed.
  1602. * genio.c, ports.c: don't include filesys.h.
  1603. * genio.c (scm_getc): don't use scm_internal_select if FPORT.
  1604. do it in fports.c:local_fgetc.
  1605. * genio.c: don't use SCM_SYSCALL when calling ptob procedures.
  1606. do it where it's needed in the port smobs.
  1607. * filesys.c (scm_input_waiting_p): moved to fports.c, stdio
  1608. buffer support removed. take SCM arg, not FILE *.
  1609. * filesys.h: prototype moved too.
  1610. * fports.c (scm_fdes_to_port): new procedure.
  1611. (local_fgetc): use read not fgetc.
  1612. (local_fclose): use close, not fclose.
  1613. (local_fgets): use read, not fgets
  1614. * fports.h: prototype for scm_fdes_to_port.
  1615. * fports.h (scm_fport): new struct.
  1616. * fports.c (scm_open_file): use open, not fopen.
  1617. #include fcntl.h
  1618. * ports.h (struct scm_port_table): change stream from SCM to void *.
  1619. * ports.c (scm_add_to_port_table): check for memory allocation error.
  1620. (scm_prinport): remove MSDOS hair.
  1621. (scm_void_port): set stream to 0 instead of SCM_BOOL_F.
  1622. (scm_close_port): don't throw errors: do it in fports.c.
  1623. 1999-06-04 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
  1624. * numbers.c: Added #include "feature.h".
  1625. 1999-05-23 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1626. * smob.c, smob.h (scm_make_smob_type): New interface to smob
  1627. types (supersedes scm_newsmob).
  1628. (scm_set_smob_mark, scm_set_smob_free, scm_set_smob_print,
  1629. scm_set_smob_equalp): New functions. Sets smob functions.
  1630. (SCM_NEWSMOB): New macro. Creates smob objects.
  1631. (scm_make_smob): New function. Creates smob objects and
  1632. mallocates memory.
  1633. (scm_smob_free, scm_smob_print): Default free and print
  1634. functions.
  1635. * Makefile.am: Removed markers.c, markers.x, markers.h.
  1636. * markers.c, markers.h: Removed. (Contents moved to smob.c,
  1637. smob.h.)
  1638. * arbiters.c, async.c, regex-posix.c: Use new smob interface.
  1639. * eval.c, fports.c, libguile.h, ports.c: Removed #include
  1640. "markers.h".
  1641. * fluids.c, guardians.c, srcprop.c, threads.c: Added #include
  1642. "genio.h".
  1643. * regex-posix.c, regex-posix.h: Renamed scm_tc16_regex_t -->
  1644. scm_tc16_regex.
  1645. 1999-05-09 Jim Blandy <jimb@savonarola.red-bean.com>
  1646. * strop.c (scm_string_capitalize_x): Use the SCM object `s' in
  1647. error messages, not the uninitialized string `str'. Love that
  1648. typechecking.
  1649. * strop.c (scm_substring_move_x): New function, which can handle
  1650. arbitrary overlapping substrings.
  1651. (substring-move-left!, substring-move-right!): These are
  1652. now just synonyms for substring-move!.
  1653. * strop.h (scm_substring_move_x): New prototype.
  1654. (scm_substring_move_left_x, scm_substring_move_right_x):
  1655. #define these as synonyms for scm_substring_move_x.
  1656. Fixes, cleanups, and new functions from Greg Harvey.
  1657. 1999-05-03 Greg Harvey <Greg.Harvey@thezone.net>
  1658. * strop.c (scm_string_capitalize_x, scm_string_capitalize): new
  1659. functions; capitalize the first letter of each word in the
  1660. argument string, and downcase the rest.
  1661. (scm_string_ci_to_symbol): string->symbol, such that the same
  1662. symbol is returned for any argument where the only difference
  1663. between strings is in capitalization.
  1664. (scm_string_upcase, scm_string_downcase): non-destructive
  1665. versions.
  1666. 1999-01-13 Greg Harvey <Greg.Harvey@thezone.net>
  1667. * strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
  1668. changed to use memmove.
  1669. * strop.c (scm_i_index): removed the pos arguments (it's only
  1670. called twice, and each time it's SCM_ARG1, SCM_ARG2, SCM_ARG3,
  1671. SCM_ARG4).
  1672. 1999-01-11 Greg Harvey <Greg.Harvey@thezone.net>
  1673. * strop.h: fixed prototypes.
  1674. * strop.c (scm_substring_move_left_x, scm_substring_move_right_x):
  1675. changed to have 5 required args, rather than 2 required, and 3 required
  1676. rest args. Also modified to allow str1 & str2 to overlap.
  1677. (scm_substring_fill_x): changed to 4 args, rather than 2 args and
  1678. 2 required rest args.
  1679. 1999-05-02 Jim Blandy <jimb@savonarola.red-bean.com>
  1680. * procs.h: Doc fix.
  1681. * Makefile.am (modinclude_HEADERS): Add kw.h, so the new version
  1682. gets installed.
  1683. * Makefile.in: Regenerated.
  1684. * numbers.c: If we're supporting floating-point, provide the
  1685. feature "inexact".
  1686. * scmconfig.h.in: Regenerated; see today's change to
  1687. ../configure.in.
  1688. 1999-04-17 Jim Blandy <jimb@savonarola.red-bean.com>
  1689. * Makefile.in: Regenerated.
  1690. Remove readline support, to avoid copyright confusion.
  1691. * Makefile.am: Remove readline files from lists.
  1692. * init.c: Don't initialize readline.
  1693. * scmconfig.h.in: Regenerated.
  1694. * numbers.c (s_bignum): Renamed to s_bignum, and made static.
  1695. Libguile should not be exporting random little strings.
  1696. * numbers.h (s_bignum): Extern declaration removed.
  1697. More const changes from Ken Raeburn.
  1698. * numbers.c (scm_s_bignum, fx): Now const.
  1699. (scm_logtab, scm_ilentab, s_adjbig): Now static and const.
  1700. * numbers.h (scm_s_bignum): Update declaration.
  1701. * eval.c (bodycheck): Argument WHAT now points to const.
  1702. * snarf.h (SCM_SYNTAX): Name is const.
  1703. * eval.c (scm_i_let): Make this globally visible, to avoid dynamic
  1704. linking crashes on NetBSD. (Thanks to Ken Raeburn.)
  1705. 1999-03-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1706. * numbers.c (isfinite): Define this macro if not defined: Return a
  1707. non-zero value if X is finite. (From ISO C 9x standard.)
  1708. (scm_inexact_to_exact): Bugfix: Don't pass NaNs to scm_dbl2big.
  1709. (Thanks to Jon Trowbridge and Greg Harvey.)
  1710. 1999-03-22 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1711. * keywords.c (scm_tc16_kw): Added for backward compatibility.
  1712. Will be removed in next release.
  1713. * Makefile.am (modinclude_HEADERS): Added kw.h;
  1714. * kw.h: New file.
  1715. * libguile.h: #include "libguile/kw.h"
  1716. 1999-03-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1717. * pairs.c (scm_set_car_x, scm_set_cdr_x): Return SCM_UNSPECIFIED.
  1718. 1999-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1719. * print.c (scm_isymnames): Added #@dispatch and #@hash-dispatch.
  1720. * hashtab.c, hashtab.h (scm_hash_fold, scm_internal_hash_fold):
  1721. Place the table argument last.
  1722. 1999-03-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1723. * modules.c: #include "procprop.h"
  1724. (scm_system_module_env_p): Assume root environment is no lookup
  1725. closure is found.
  1726. * debug.c, eval.c, evalext.c, gdbint.c stacks.c:
  1727. #include "modules.h".
  1728. * modules.c, modules.h, eval.c, eval.h (scm_env_top_level,
  1729. scm_top_level_env, scm_system_module_env_p): Moved to modules.c.
  1730. * eval.c, eval.h (scm_top_level_lookup_closure): Removed.
  1731. 1999-03-18 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1732. * error.c (scm_wta): Pass SCM_LIST1 (arg) instead of SCM_EOL to
  1733. scm_misc_error when pos is a string. This allows for dispatching
  1734. arbitrary error messages with one argument via SCM_ASSERT:
  1735. SCM_ASSERT (<cond>, obj, "Undigestable object: %S", <subr>);
  1736. 1999-03-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1737. * list.c (scm_reverse): Report an error if given a circular list
  1738. instead of filling memory.
  1739. * list.c (scm_reverse_x): Check args.
  1740. 1999-03-14 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1741. Most of this batch of changes is about how to deal with extended
  1742. types when an object system is loaded into Guile. A nice object
  1743. system is capable of representing Guile's types as class objects.
  1744. For example, we want a regular expression to be of class <regex>.
  1745. But regular expressions are smobs which aren't under direct
  1746. control of the object system, so there has to be some mechanism
  1747. which informs the object system that a new class should be created
  1748. which can represent the smob type. I call this a "wrapper class".
  1749. * objects.c: #include "smob.h";
  1750. (scm_class_keyword): Removed. (Class is automatically created by
  1751. make_smob_classes.)
  1752. (scm_smob_class): Array of smob classes indexed by smobnum.
  1753. (scm_make_extended_class): "Plugin" function pointer for creation
  1754. of wrapper classes for smob and struct types.
  1755. (scm_class_of): Handle compiled closures. (Currently regarded as
  1756. <procedure>.);
  1757. Use scm_smob_class to handle smob types;
  1758. Handle scm_tc16_bigpos, scm_tc16_bigneg, and, scm_tc16_keyword
  1759. through scm_smob_class;
  1760. Handle structs.
  1761. * smob.c (scm_newsmob): Also create a wrapper class if
  1762. scm_smob_class has been initialized.
  1763. * smob.h (SCM_TC2SMOBNUM): New macro for conversion between tc16
  1764. type code and smobnum.
  1765. * struct.c: #include "alist.h", "weaks.h", "hashtab.h";
  1766. (scm_struct_table): Weak key table with auxilliary information for
  1767. struct types. Currently used for names and wrapper classes.
  1768. (scm_struct_ihashq): Hash function for structs.
  1769. (scm_struct_create_handle): Get/create entry in scm_struct_table.
  1770. (scm_struct_vtable_name, scm_set_struct_vtable_name_x): Procedures
  1771. for accessing names of vtables. The record implementation in
  1772. boot-9.scm currently uses the setter to record the name of record
  1773. types. When the object system is initialized, it can use this
  1774. information to create wrapper classes with suitable names.
  1775. (scm_init_struct): Allocate scm_struct_table.
  1776. (scm_alloc_struct): Don't initialize scm_struct_i_tag here.
  1777. (struct tags are a finite resource and we might want to restrict
  1778. the use of tags to vtables only. E.g., Goops only uses tags for
  1779. classes.)
  1780. (scm_make_struct): Use scm_struct_entity_n_extra_words instead of
  1781. magic number 5.
  1782. (scm_struct_vtable_tag): Use scm_struct_i_tag instead of magic
  1783. number -1.
  1784. * struct.h (SCM_STRUCT_TABLE_NAME, SCM_SET_STRUCT_TABLE_NAME,
  1785. SCM_STRUCT_TABLE_CLASS, SCM_SET_STRUCT_TABLE_CLASS): New macros.
  1786. Used for access of struct table entries.
  1787. * hashtab.c, hashtab.h (scm_internal_hash_fold): New function.
  1788. (scm_hash_fold): New procedure. Used to process all entries in a
  1789. hash table (in no particular order).
  1790. Argh! For the umpteenth time I got compilation errors because of
  1791. the "intuitive" name `kw'. This has to have an end:
  1792. * Makefile.am, init.c, libguile.h, objects.c, root.h: Replaced
  1793. "kw" --> "keywords" everywhere.
  1794. (I doubt that this will cause big compatibility problems since the
  1795. application interface is unaffected.)
  1796. * keywords.c, keywords.h: Files renamed from kw.c, kw.h.
  1797. 1999-03-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1798. * srcprop.c (scm_set_source_property_x): Bugfix: Convert line and
  1799. column inums to native form.
  1800. Improvement of backtraces: Introduces a new stack narrowing
  1801. specifier, #t, for the inner cut. (See further in the comments in
  1802. stacks.c:narrow_stack ().)
  1803. * procprop.c, procprop.h (scm_sym_system_procedure): New symbol.
  1804. (Used to flag certain system procedures which shouldn't turn up in
  1805. backtraces.)
  1806. * eval.c (scm_sym_system_module): New symbol. (Used to flag
  1807. modules which aren't "user" modules and the code of which
  1808. shouldn't turn up in backtraces.)
  1809. * eval.c, eval.h (scm_top_level_lookup_closure): New function:
  1810. Extract the lookup closure from an environment.
  1811. (scm_system_module_env_p): New function: Return non-#f if MODULE
  1812. is a system module.
  1813. * stacks.c: #include "eval.h"; #include "procprop.h";
  1814. (narrow_stack): Handle new narrowing specifier #t.
  1815. * debug.c (scm_procedure_name): Use name property in the default
  1816. case.
  1817. * gc.c, gc.h (scm_object_address): Renamed from scm_object_addr ().
  1818. * objects.h (scm_si_redefined, scm_si_hashsets): Shifted.
  1819. * eval.c, procs.c, procs.h, procprop.c: Renamed getter ->
  1820. procedure throughout.
  1821. * print.c (scm_iprin1): Removed extraneous space when printing
  1822. procedure-with-setters.
  1823. Entity and operator setter slots were introduced as a complement
  1824. to the <procedure-with-setter> type in order to support entities
  1825. and operators with setters in a reasonable and efficient way.
  1826. * procs.c (scm_procedure, scm_setter): Handle entity and operator
  1827. setter slots.
  1828. * objects.h (SCM_OPERATOR_SETTER, SCM_ENTITY_SETTER): New macros.
  1829. (struct scm_metaclass_operator): New setter slot.
  1830. * gc.c (scm_gc_mark): Mark struct setter slot.
  1831. * struct.c (scm_make_struct): Allocate one word more for
  1832. entities and initialize the new slot.
  1833. * struct.h (scm_struct_i_setter): New constant.
  1834. 1999-03-08 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1835. * objects.h (SCM_OBJ_CLASS_REDEF): New macro: Find class slots
  1836. directly through the instance.
  1837. * objects.c (scm_class_of): Use SCM_OBJ_CLASS_REDEF.
  1838. * gc.c (scm_gc_sweep): Bugfix: Look for SCM_STRUCT_F_LIGHT flag at
  1839. scm_struct_i_flags instead of scm_vtable_index_layout!
  1840. * list.c (scm_list_star): New procedure.
  1841. 1999-02-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1842. * debug.c (scm_init_debug): Added scheme level constant
  1843. SCM_IM_DISPATCH.
  1844. 1999-02-12 Jim Blandy <jimb@savonarola.red-bean.com>
  1845. * __scm.h (SCM_FENCE): Fix `asm volatile' warnings for EGCS.
  1846. * gc.c (scm_gc_sweep): Properly properly record the size of a
  1847. freed structure. (Thanks to Greg Harvey.)
  1848. 1999-02-07 Jim Blandy <jimb@savonarola.red-bean.com>
  1849. * gc.c (scm_gc_sweep): Properly record the size of a freed
  1850. structure. (Thanks to Michael Livshin.)
  1851. 1999-02-06 Jim Blandy <jimb@savonarola.red-bean.com>
  1852. Readline paren matching from Greg Harvey, with modifications from
  1853. Mikael Djurfeldt:
  1854. * readline.c (in_readline, reentry_barrier_mutex): Make these
  1855. static.
  1856. * readline.c: #include <sys/time.h> and "iselect.h", so we can
  1857. control how long we're paused, and threads will run while we're
  1858. paused.
  1859. (match_paren, find_matching_paren, init_bouncing_parens): New
  1860. functions.
  1861. (scm_init_readline): Call init_bouncing_parens.
  1862. (scm_readline_opts): Add the bounce-parens option.
  1863. * readline.h (SCM_READLINE_BOUNCE_PARENS): New readline option.
  1864. (SCM_N_READLINE_OPTIONS): Adjust.
  1865. 1999-02-06 Jim Blandy <jimb@zwingli.cygnus.com>
  1866. All the below are changes from Ken Raeburn, to get Guile to use
  1867. const where it can.
  1868. * chars.c (scm_lowers, scm_uppers, scm_charnames, scm_charnums),
  1869. eval.c (s_expression, s_test, s_body, s_bindings, s_variable,
  1870. s_clauses, s_formals): Variables now const.
  1871. * eval.c (promsmob): Now const.
  1872. * macros.c (macrosmob): Now const.
  1873. * smob.c (scm_newsmob): Smobfuns argument now points to const.
  1874. (freecell, flob, bigob): Now const.
  1875. * dynl.c (scm_make_argv_from_stringlist, scm_coerce_rostring),
  1876. error.c (scm_error, scm_syserror, scm_syserror_msg,
  1877. scm_num_overflow, scm_out_of_range, scm_wrong_type_arg,
  1878. scm_memory_error, scm_misc_error, scm_wta), macros.c
  1879. (scm_make_synt), feature.c (scm_add_feature), filesys.c
  1880. (scm_input_waiting_p), gc.c (scm_gc_start, scm_igc,
  1881. scm_must_malloc, scm_must_realloc), gsubr.c (scm_make_gsubr),
  1882. numbers.c (scm_num2dbl, scm_two_doubles, scm_num2long,
  1883. scm_num2long_long, scm_num2ulong),
  1884. options.c (scm_options), posix.c (scm_convert_exec_args,
  1885. environ_list_to_c), procs.c (scm_make_subr_opt, scm_make_subr),
  1886. ramap.c (scm_ramapc), read.c (scm_flush_ws), socket.c
  1887. (scm_sock_fd_to_port, scm_fill_sockaddr, scm_addr_vector), stime.c
  1888. (setzone, restorezone, bdtime2c), strop.c (scm_i_index),
  1889. strports.c (scm_mkstrport), symbols.c (scm_intern_obarray_soft,
  1890. scm_intern_obarray, scm_intern, scm_intern0,
  1891. scm_sysintern0_no_module_lookup, scm_sysintern, scm_sysintern0,
  1892. scm_symbol_value0), unif.c (scm_aind, scm_shap2ra): Argument
  1893. indicating calling subr, error message text, reason for error,
  1894. symbol name or feature name are now pointer to const.
  1895. * snarf.h (SCM_PROC, SCM_PROC1): String variables are now const.
  1896. * procs.c (scm_init_iprocs): iproc argument now points to const.
  1897. * pairs.c (cxrs): Now const.
  1898. * chars.h, error.h, feature.h, filesys.h, gc.h, gsubr.h, macros.h,
  1899. numbers.h, options.h, procs.h, ramap.h, read.h, smob.h,
  1900. strports.h, symbols.h, unif.h: Update variable declarations and
  1901. function prototypes for above changes.
  1902. * dynl.c, dynl-dld.c, dynl-dl.c, dynl-shl.c (sysdep_dynl_link,
  1903. sysdep_dynl_unlink, sysdep_dynl_func): Arguments FNAME, SUBR, and
  1904. SYMB now point to const.
  1905. 1999-01-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1906. * print.c (scm_iprin1): Use scm_procedure_name instead of
  1907. scm_procedure_property for compiled closures.
  1908. * tags.h (scm_tc7_pws): New procedure type. Four representations
  1909. for procedure-with-setters were considered before selecting this
  1910. one:
  1911. 1. A closure where the CODE and ENV slots are used to represent
  1912. the getter and a new SETTER slot is used for the setter. The
  1913. original getter is stored as a `getter' procedure property. For
  1914. closure getters, the CODE and ENV slots contains a copy of the
  1915. getter's CODE and ENV slots. For subr getters, the CODE contains
  1916. a call to the subr.
  1917. 2. A compiled closure with a call to the getter in the cclo
  1918. procedure. The getter and setter are stored in slots 1 and 2.
  1919. 3. An entity (i.e. a struct with an associated procedure) with a
  1920. call to the getter in the entity procedure and the setter stored
  1921. in slot 0. The original getter is stored in slot 1.
  1922. 4. A new primitive procedure type supported in the evaluator. The
  1923. getter and setter are stored in a GETTER and SETTER slot. A call
  1924. to this procedure type results in a retrieval of the getter and a
  1925. jump back to the correct eval dispatcher.
  1926. Representation 4 was selected because of efficiency and
  1927. simplicity.
  1928. Rep 1 has the advantage that there is zero penalty for closure
  1929. getters, but primitive getters will get considerable overhead
  1930. because the procedure-with-getter will be a closure which calls
  1931. the getter.
  1932. Rep 3 has the advantage that a GOOPS accessor can be a subclass of
  1933. <procedure-with-setter>, but together with rep 2 it suffers from a
  1934. three level dispatch for non-GOOPS getters:
  1935. cclo/struct --> dispatch proc --> getter
  1936. This is because the dispatch procedure must take an extra initial
  1937. argument (cclo for rep 2, struct for rep 3).
  1938. Rep 4 has the single disadvantage that it uses up one tc7 type
  1939. code, but the plan for uniform vectors will very likely free tc7
  1940. codes, so this is probably no big problem. Also note that the
  1941. GETTER and SETTER slots can live directly on the heap, using the
  1942. new four-word cells.
  1943. * procs.c, procs.h (SCM_PROCEDURE_WITH_SETTER_P, SCM_GETTER,
  1944. SCM_SETTER): New macros.
  1945. (scm_procedure_with_setter_p, scm_make_procedure_with_setter,
  1946. scm_getter, scm_setter): New procedures.
  1947. * eval.c, print.c (scm_iprin1): Added entries for scm_tc7_pws.
  1948. * gc.c (scm_gc_mark, scm_gc_sweep): Added case labels for
  1949. scm_tc7_pws.
  1950. * objects.c, objects.h (scm_class_of,
  1951. scm_class_procedure_with_setter): Added.
  1952. * procprop.c (scm_i_procedure_arity), procs.c (scm_thunk_p): Added
  1953. entry for scm_tc7_pws.
  1954. * procs.c (scm_procedure_p): Added case label for scm_tc7_pws.
  1955. 1999-01-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1956. * evalext.c, evalext.h (scm_m_generalized_set_x): New memoizing
  1957. macro.
  1958. (scm_init_evalext): Call scm_make_gsubr for
  1959. scm_m_generalized_set_x.
  1960. * eval.c, debug.c, tags.h (SCM_IM_SET_X): Renamed from SCM_IM_SET.
  1961. * eval.h: Declare scm_s_set_x, scm_sym_set_x;
  1962. * eval.c: Renamed "set" --> "set_x" in various names for
  1963. consistency of name correspondence between Scheme and C;
  1964. Renamed scm_i_set_x --> scm_sym_set_x and made global.
  1965. Renamed s_set_x --> scm_s_set_x and made global.
  1966. 1999-01-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1967. * random.c (scm_i_random_bignum): Made independent of endianness.
  1968. 1999-01-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1969. * eval.c (SCM_CEVAL): Added ENTER_APPLY in code for SCM_IM_APPLY.
  1970. (Thanks to Eric Hanchrow.)
  1971. 1999-01-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1972. * objects.c, objects.h (SCM_CLASS_REDEF): Renamed from CLASS_REDEF.
  1973. * random.c: Bugfix: Retrieve and store most significant 32 bits in
  1974. different order if the machine is bigendian.
  1975. (scm_init_random): Added safety check for bignum digit size.
  1976. 1999-01-21 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  1977. * random.c, random.h (scm_i_make_rstate): New function: Makes
  1978. scm_rstate from seed.
  1979. (scm_copy_random_state, scm_seed_to_random_state): New functions.
  1980. (scm_make_random_state): Removed.
  1981. * random.c (scm_make_random_state): Use scm_i_make_rstate().
  1982. 1999-01-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1983. * random.c: Bugfix: Retrieve and store most significant 32 bits in
  1984. different order if the machine is bigendian.
  1985. (scm_init_random): Added safety check for bignum digit size.
  1986. 1999-01-11 Roland Orre <mdj@mdj.nada.kth.se>
  1987. * sort.c (scm_merge, scm_merge_list_x): Bugfix: Place elements
  1988. from first arg before equal elements in second arg in result.
  1989. (scm_merge_list_step): Bugfix: Don't presume that arguments in a C
  1990. function call are executed in a well defined order.
  1991. 1999-01-11 Jim Blandy <jimb@zwingli.cygnus.com>
  1992. * alloca.c (alloca): Cast value returned by malloc. (Thanks to
  1993. Christian Lynbech.)
  1994. 1999-01-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  1995. * random.c: Removed alloca includes.
  1996. 1999-01-11 Jim Blandy <jimb@zwingli.cygnus.com>
  1997. * Makefile.in: This changed, for some reason I don't really
  1998. understand, when I ran automake in the top level directory. This
  1999. may be contamination by Cygnus internal releases. If you re-run
  2000. automake and this change gets reverted, don't worry about it.
  2001. 1999-01-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2002. * sort.c, sort.h: New files: Implement slib's and scsh's sort
  2003. interfaces. Author: Roland Orre.
  2004. * Makefile.am: Added sort.c, sort.h, sort.x.
  2005. * init.c: #include "sort.h";
  2006. (scm_boot_guile_1): Call scm_init_sort ().
  2007. * numbers.h: Added #include "libguile/print.h".
  2008. * numbers.c: Formatted according to Guile conventions;
  2009. Renamed s_bignum --> scm_s_bignum.
  2010. * random.c, random.h: New files: Random number support.
  2011. Interface same as slib's.
  2012. * Makefile.am: Added random.c, random.h, random.x.
  2013. * init.c: #include "random.h";
  2014. (scm_boot_guile_1): Call scm_init_random ().
  2015. 1998-12-23 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2016. * Makefile.am: New files: guardians.c, guardians.x, guardians.h
  2017. * guardians.c, guardians.h (scm_make_guardian,
  2018. scm_guardian_gc_init, scm_guardian_zombify, scm_guard,
  2019. scm_get_one_zombie, scm_init_guardian): This is an implementation
  2020. of guardians as described in R. Kent Dybvig, Carl Bruggeman, and
  2021. David Eby (1993) "Guardians in a Generation-Based Garbage
  2022. Collector" ACM SIGPLAN Conference on Programming Language Design
  2023. and Implementation, June 1993 ftp://ftp.cs.indiana.edu
  2024. /pub/scheme-repository/doc/pubs/guardians.ps.gz
  2025. Author: Michael N. Livshin.
  2026. * gc.h (SCM_MARKEDP, SCM_NMARKEDP): New macros.
  2027. * gc.c (scm_igc): Call scm_guardian_gc_init and
  2028. scm_guardian_zombify.
  2029. * init.c (scm_boot_guile_1): Call scm_init_guardian.
  2030. 1998-12-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2031. * macros.c (scm_makacro, scm_makmacro, scm_makmmacro): Added
  2032. argument checking.
  2033. 1998-12-15 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2034. Move the procedure slots of entities to invisible slots (so that
  2035. we can have operator class objects which themselves are entities).
  2036. * struct.h (scm_struct_i_proc, scm_struct_i_flags,
  2037. SCM_STRUCTF_ENTITY): New constants.
  2038. * struct.c (scm_make_struct): Allocate "invisible" room for
  2039. procedures if SCM_STRUCTF_ENTITY is set in vtable.
  2040. * gc.c (scm_gc_mark): Mark entity procedures.
  2041. * struct.c, struct.h (scm_alloc_struct): Renamed from alloc_struct
  2042. and made global.
  2043. (scm_struct_init): Renamed from init_struct and made global.
  2044. * objects.h (SCM_ENTITY, scm_entity): Removed.
  2045. (SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_0, SCM_ENTITY_PROC_0,
  2046. SCM_ENTITY_PROC_3): Adjusted for new location of procedure slots.
  2047. Mon Dec 14 18:10:12 1998 Maciej Stachowiak <mstachow@mit.edu>
  2048. * snarf.h (SCM_SYNTAX): New macro to allow convenient declaration
  2049. of syntactic forms, similar to SCM_PROC.
  2050. * debug.c, eval.c, evalext.c: use SCM_SYNTAX to declare all special
  2051. forms, and SCM_SYMBOL or SCM_GLOBAL_SYMBOL to delcare C variables
  2052. for the name symbols when needed.
  2053. 1998-12-14 Jim Blandy <jimb@zwingli.cygnus.com>
  2054. * Makefile.in: Regenerated.
  2055. 1998-12-05 Jim Blandy <jimb@zwingli.cygnus.com>
  2056. * pairs.h (SCM_NEWCELL): When DEBUG_FREELIST is defined, don't
  2057. take the address of _into; it might be a register. Just have
  2058. scm_debug_newcell return the new cell.
  2059. * gc.c (scm_debug_newcell): Just return the new cell, instead of
  2060. taking the address of a place to store it as an argument.
  2061. * gc.h (scm_debug_newcell): Change declaration.
  2062. (Thanks to Greg Harvey.)
  2063. 1998-12-08 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2064. * ramap.c (array-copy-in-order!, array-map-in-order): New names.
  2065. Replaces old names serial-array-copy! and serial-array-map!.
  2066. * evalext.c (map-in-order): New name. Replaces serial-map.
  2067. 1998-12-05 Jim Blandy <jimb@totoro.red-bean.com>
  2068. * smob.c (freeprint): New function.
  2069. (freecell): Use it to print freed objects, for slightly easier
  2070. debugging.
  2071. 1998-12-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2072. * backtrace.c (display_frame): Made more robust. Doesn't throw an
  2073. error if no source properties can be found for a frame. (Thanks
  2074. to Christian Lynbech.)
  2075. 1998-11-27 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2076. * objects.h: Removed slots direct_supers and direct_slots from the
  2077. definitions of the rudimentary classes described by objects.h.
  2078. * objects.c, objects.h (scm_entity_p): New procedure. Together
  2079. with the predicates scm_procedure_p and scm_struct_p, this
  2080. predicate makes it possible to differ between structs, entities
  2081. and operators.
  2082. * modules.c, modules.h (scm_resolve_module): New function.
  2083. 1998-11-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2084. * objects.h (SCM_METACLASS_STANDARD_LAYOUT,
  2085. SCM_METACLASS_OPERATOR_LAYOUT): Removed slots `direct_supers' and
  2086. `direct_slots'.
  2087. * objects.c (scm_entity_p): New procedure.
  2088. * procprop.c (scm_i_procedure_arity): Bugfix: Return correct value
  2089. for asubrs, rpsubrs, lsubrs and lsubr_2s.
  2090. 1998-11-26 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2091. * procprop.h (scm_i_procedure_arity): Added declaration.
  2092. * procprop.c (scm_i_procedure_arity): Made global; New code to
  2093. handle operators and entities.
  2094. (scm_procedure_property): No need to call scm_procedure_p since
  2095. scm_i_procedure_arity now does all necessary type checking.
  2096. Added #include "objects.h".
  2097. * feature.c (scm_remove_hook_x): Bugfix: Changed reference to
  2098. s_add_hook_x --> s_remove_hook_x.
  2099. (scm_add_hook_x, scm_remove_hook_x): Hooks now takes arguments.
  2100. Added #include "procprop.h"
  2101. * feature.c, feature.h (scm_reset_hook_x): New procedure.
  2102. (scm_make_hook): Optional argument defines number of arguments to
  2103. the hook.
  2104. (scm_make_named_hook): Take number of args as second arg.
  2105. (scm_run_hook): Renamed from scm_run_hooks (old name defined in
  2106. boot-9.scm for a while); First arg is the hook. The rest are
  2107. arguments passed on to the hook procedures.
  2108. 1998-11-23 Jim Blandy <jimb@zwingli.cygnus.com>
  2109. * numbers.c (scm_logand, scm_logior, scm_logxor, scm_logtest,
  2110. scm_logbit_p): Do the computation in ulongs. This is not as nice
  2111. as doing it in bignums, but at least it's good enough for
  2112. manipulating flags in 32-bit words. (Thanks to Jim Wilson.)
  2113. * regex-posix.c (scm_regexp_exec): Reliably mark unmatched
  2114. subexpressions. (Thanks to Charbel Jacquin.)
  2115. 1998-11-23 Mikael Djurfeldt <mdj@kenneth>
  2116. * feature.c, feature.h (scm_make_hook, scm_add_hook_x,
  2117. scm_remove_hook_x, scm_run_hooks): Moved from ice-9/boot-9.scm.
  2118. (scm_make_named_hook): New function.
  2119. * feature.c: Added #include "eval.h".
  2120. * modules.c (scm_make_module): Beautify the module.
  2121. 1998-11-22 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2122. * modules.c, modules.h: New files: C interface to modules. (This
  2123. is necessary in order to interface the object system to Guile
  2124. properly. The guts of these modules will be replaced by the new
  2125. module system in the future.)
  2126. * init.c: Added #include "modules.h"
  2127. (scm_boot_guile_1): Call scm_init_modules.
  2128. (invoke_main_func): Call scm_post_boot_init_modules.
  2129. * Makefile.am: Added modules.c, modules.x, modules.h.
  2130. 1998-11-22 Mikael Djurfeldt <mdj@kenneth>
  2131. * procs.c: #include "objects.h"
  2132. (scm_procedure_p): Return #t also on structs which are operators.
  2133. * objects.c (scm_init_objects): Renamed <standard-metaclass>,
  2134. <operator-metaclass> and <entity-class> to <standard-class>,
  2135. <operator-class> and <entity> in order to conform with STKlos
  2136. naming conventions.
  2137. * eval.c (SCM_CEVAL): Jump to badfun if trying to apply a struct
  2138. which isn't an operator.
  2139. (SCM_APPLY): Ditto, but jump to badproc.
  2140. 1998-11-21 Mikael Djurfeldt <mdj@kenneth>
  2141. * eval.c (SCM_CEVAL): Allow structs implanted in code.
  2142. Previously, structs implanted in code were interpreted as forms
  2143. the operator of which was a gloc. We solve this by checking for
  2144. the zero in the emulated vcell in the struct vtable. Since
  2145. implanted structs always will look like forms with a gloc
  2146. operator, execution will only be slowed down by maximally one
  2147. extra test-and-branch per application.
  2148. * evalext.c (scm_definedp): Removed check for isyms; Added a
  2149. second optional argument: It is now possible to supply an
  2150. evaluation environment in which to look for the symbol.
  2151. 1998-11-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2152. * readline.c (scm_init_readline): Set
  2153. rl_basic_word_break_characters. (Thanks to Ian Grant.)
  2154. * coop.c (coop_condition_variable_wait): Removed
  2155. (coop_condition_variable_wait_mutex): Folded logic of
  2156. coop_mutex_unlock into coop_condition_variable_wait_mutex to
  2157. prevent condvar signal lossage. Previously, another thread could
  2158. start to run after unlocking the mutex but before putting the
  2159. current thread on the wait queue. If that thread then would
  2160. signal the first, the signal would be lost. (Thanks to Christian
  2161. Lynbech.)
  2162. 1998-11-17 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2163. * eval.c (SCM_CEVAL): Added missing case for cclo. (Thanks to
  2164. Christian Lynbech.)
  2165. 1998-11-14 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2166. * objects.c (scm_i_make_class_object): Renamed from
  2167. make_class_object; exported; error checking moved to
  2168. scm_make_class_object and scm_make_subclass_object.
  2169. (scm_make_class_object, scm_make_subclass_object): Use
  2170. scm_i_make_class_object.
  2171. (scm_make_subclass_object): Let the subclass have same metaclass
  2172. as the superclass.
  2173. 1998-11-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2174. * debug.c (scm_debug_options): Bugfix: Set the value of
  2175. scm_stack_checking_enabled_p after setting debug options;
  2176. #include "stackchk.h". (Thanks to Richard Polton.)
  2177. 1998-11-13 Radey Shouman <rshouman@metro2000.com>
  2178. * unif.c (scm_array_contents): removed unnecessary test for 0
  2179. base.
  2180. 1998-11-13 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2181. * evalext.c, evalext.h (scm_m_sequence_to_list): Removed.
  2182. Replaced by macro `collect' in boot-9.scm.
  2183. 1998-11-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2184. * eval.c (scm_copy_tree): Copy source properties if existent.
  2185. * debug.c (scm_start_stack): Copy source when evaluating. (If we
  2186. don't, we may end up passing memoized source to a transformer.)
  2187. 1998-11-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2188. * stack.c (get_applybody): Help function which lookups the first
  2189. body form of the apply closure.
  2190. (read_frames): Prevent the source of the first form of the apply
  2191. closure from being recorded. This would only be confusing.
  2192. * debug.h (SCM_SET_MACROEXP, SCM_CLEAR_MACROEXP, SCM_MACROEXPP):
  2193. Replaces SCM_MACROFRAME, SCM_MACROFRAMEP.
  2194. * eval.c (SCM_CEVAL): Use SCM_SET/CLEAR_MACROEXP.
  2195. * stacks.c (read_frame): Bugfix: Removed lingering `else'
  2196. statement.
  2197. (read_frames): Use SCM_MACROEXPP.
  2198. 1998-11-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2199. * stacks.c (read_frames): Skip gsubr frames in backtraces. (They
  2200. don't contain interesting information since all arguments are
  2201. present in the frame which applies the compiled closure anyway.);
  2202. Skip the transformer application frames.
  2203. * print.c (scm_iprin1): Print gsubrs as primitives.
  2204. 1998-11-09 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2205. * debug.h (SCM_MACROFRAME, SCM_MACROFRAMEP): New frame type.
  2206. * eval.c (SCM_CEVAL): Mark macro frames at `handle_a_macro' so
  2207. that we can identify these in a backtrace. (This change doesn't
  2208. introduce any significant speed penalty.)
  2209. * eval.c: Added note about `serial-map' using scm_map.
  2210. * read.c, read.h (scm_read_options, scm_read_opts): Removed
  2211. readline options. They should reside in their own options array.
  2212. * readline.c, readline.h (scm_readline_options,
  2213. scm_readline_opts): Moved readline options here.
  2214. 1998-11-07 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2215. * readline.c (scm_read_history, scm_write_history): Bugfix: Use
  2216. SCM_ROCHARS instead of SCM_CHARS.
  2217. * ports.c (scm_unread_string): Bugfixes: Check for SCM_STRINGP,
  2218. not SCM_ROSTRINGP; use SCM_ROUCHARS instead of SCM_UCHARS.
  2219. 1998-11-06 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2220. * ports.h (SCM_CUC): #define as ~SCM_CRDY instead of 0x001fffffL.
  2221. This is quite important since the latter clears the
  2222. FPORT_READ_SAFE and FPORT_WRITE_SAFE flags causing flushes at
  2223. every single character read...
  2224. 1998-11-03 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2225. * print.c (scm_iprin1): Removed suspect looking (and indeed
  2226. malevolent) semicolon after test for user supplied closure print
  2227. procedure. (Thanks to Telford Tendys.)
  2228. * list.c (scm_sloppy_memq): Removed sloppy_mem_check.
  2229. (scm_memq, scm_memv, scm_member): Do argument checking *before*
  2230. starting to search the list. Removed call to sloppy_mem_check.
  2231. * list.c, list.h (scm_delq1_x, scm_delv1_x, scm_delete1_x): New
  2232. procedures: Same as scm_delq_x et al, but delete maximally one
  2233. element.
  2234. * options.c (scm_options, scm_init_options): GC-protect option
  2235. values of type SCM. (Thanks to Telford Tendys.)
  2236. 1998-11-01 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2237. * eval.c: Don't #define scm_lookupcar to scm_lookupcar1. Instead
  2238. make sure that there always is a "real" scm_lookupcar.
  2239. 1998-11-01 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2240. * read.c, read.h (scm_read_opts): New read options
  2241. "history-length" and "history-file".
  2242. (scm_read_options): Stifle history to history length.
  2243. * readline.c (scm_read_history, scm_write_history): New procedures.
  2244. 1998-10-31 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2245. * eval.h (scm_macro_eval_x): Removed declaration.
  2246. * eval.c (scm_s_expression, scm_s_test, scm_s_body,
  2247. scm_s_bindings, scm_s_variable, scm_s_clauses, scm_s_formals):
  2248. Renamed and made global.
  2249. * eval.c, eval.h (SCM_EVALIM): Renamed from EVALIM.
  2250. (SCM_XEVAL, SCM_XEVALCAR): Renamed from XEVAL, XEVALCAR.
  2251. * evalext.c, evalext.h: New files. Contain non-R5RS things
  2252. having to do with evaluation.
  2253. * evalext.c (scm_serial_map): New procedure: Version of `map'
  2254. which guarantees that the procedure is applied to the lists in
  2255. serial order.
  2256. (scm_m_sequence_to_list): New syntax: Version of `begin' which
  2257. returns a list of the results of the body forms instead of the
  2258. result of the last body form.
  2259. (scm_definedp, scm_m_undefine): Moved from eval.c
  2260. * evalext.h (scm_m_sequence_to_list): Added declaration.
  2261. * macros.c, macros.h: New files.
  2262. (scm_procedure_to_syntax, scm_procedure_to_macro,
  2263. scm_procedure_to_memoizing_macro, scm_macro_p, scm_macro_type,
  2264. scm_macro_name, scm_macro_transformer): Moved from eval.c
  2265. (scm_make_synt): Moved from eval.c
  2266. * procs.c, procs.h (scm_procedure_documentation): Moved from eval.c.
  2267. * init.c (scm_boot_guile_1): Added calls to scm_init_macros and
  2268. scm_init_evalext.
  2269. * Makefile.am: Added evalext.c, evalext.h, macros.c, macros.h.
  2270. * debug.c, print.c: Added #include "macros.h".
  2271. 1998-10-29 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2272. This change adds the ability to use `unread-char' multiple times
  2273. without interspersed reads and adds the new procedure
  2274. `unread-string'. The change is optimized for the common case of
  2275. unreading a single character. This is also the reason behind the
  2276. choice to store characters in the port itself: in most cases no
  2277. extra malloc is required.
  2278. The amount of code in some macros in ports.h has been increased to
  2279. the extent that they would fit better as C functions, but, since
  2280. this code belongs to the port representation, such functions
  2281. should be placed in ports.c which would cause calls back and forth
  2282. between ports.c and genio.c. That is not good for performance.
  2283. Also, keeping them as macros allows the compiler to do some
  2284. optimizations which are needed to make the current interface
  2285. (SCM_CRDYP, SCM_CGETUN, SCM_TRY_CLRDY) efficient.
  2286. One benchmark (Guile startup time) indicates an increase of
  2287. loading speed of 1%. Another (reading (using `read') boot-9.scm
  2288. 10 times) shows no change in performance.
  2289. (Caveat: Since Gary is redesigning I/O anyway, no big efforts were
  2290. made to find a beautiful solution.)
  2291. * ports.h (SCM_CLRDY, SCM_CUNGET, SCM_CGETUN): Rewritten.
  2292. (SCM_TRY_CLRDY): New macro: Only clear the first unread
  2293. character. (SCM_CLRDY clears all.)
  2294. (SCM_N_READY_CHARS): New macro: Returns number of unread
  2295. characters in a port. Returns wrong answer if SCM_CRDYP is false.
  2296. (struct scm_port_table): New fields: `entry' contains port table
  2297. index, `cp' points to last unread char, `cbuf' is the buffer for
  2298. unread chars, `cbufend' points after end of the character buffer.
  2299. * ports.h, ports.c (scm_unread_string): New procedure.
  2300. (scm_grow_port_cbuf): New function.
  2301. * ports.c (scm_add_to_port_table, scm_remove_from_port_table):
  2302. Handle new fields.
  2303. (scm_generic_fgets), fports.c (local_fgets): Use a loop
  2304. to read unread characters. Use SCM_TRY_CLRDY instead of
  2305. SCM_CLRDY.
  2306. * ioext.c (scm_ftell): Use SCM_N_READY_CHARS to correct position.
  2307. * genio.c (scm_getc): Use SCM_TRY_CLRDY instead of SCM_CLRDY.
  2308. * genio.c, genio.h (scm_ungets): New function.
  2309. * genio.c (scm_puts): Removed mysterious TRANSCRIPT_SUPPORT code
  2310. sections.
  2311. 1998-10-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2312. * threads.h (scm_thread_sleep, scm_thread_usleep): Fixed
  2313. declarations. (Thanks to Russ McManus.)
  2314. 1998-10-26 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2315. * numbers.c (num2long): As a software archeologist, I'm proud of
  2316. this finding! :) Preliminary dating suggests an almost 4 year old
  2317. remnant from the SCM ancestor. The sample has been removed from
  2318. the finding site and is now safely stored in the repository.
  2319. * numbers.h: Removed prototype for num2long.
  2320. * unif.c (scm_array_set_x): Use scm_num2long instead of num2long.
  2321. * gh_data.c (gh_scm2doubles): Make it possible to pass result
  2322. array as second arg.
  2323. (gh_chars2byvect, gh_shorts2svect, gh_floats2fvect, gh_scm2chars,
  2324. gh_scm2shorts, gh_scm2longs, gh_scm2floats): New functions.
  2325. * gh.h: Updated and added prototypes.
  2326. * gh_data.c (gh_ints2scm): Handle integers outside INUM limits.
  2327. 1998-10-24 Jim Blandy <jimb@zwingli.cygnus.com>
  2328. * gc.h: Remove all uses of SCM_P. (Thanks to Richard Polton.)
  2329. * guile-snarf.in: Never generate an empty file. (Thanks to
  2330. Richard Polton.)
  2331. * gh.h (gh_enter, gh_new_procedure0_0, gh_new_procedure0_1,
  2332. gh_new_procedure0_2, gh_new_procedure1_0, gh_new_procedure1_1,
  2333. gh_new_procedure1_2, gh_new_procedure2_0, gh_new_procedure2_1,
  2334. gh_new_procedure2_2, gh_new_procedure3_0, gh_new_procedure4_0,
  2335. gh_new_procedure5_0): Specify argument types, to appease C++
  2336. compilers. (Thanks to Brad Bowman.)
  2337. Bug reports from Russ McManus:
  2338. * guile-snarf.in: If the CPP environment variable is set, use that
  2339. as the C preprocessor, instead of the preprocessor autoconf
  2340. found.
  2341. * snarf.h (SCM_PROC): Cast the function pointer passed to
  2342. scm_make_gsubr, to satisfy C++.
  2343. * gh_eval.c (gh_eval_str_with_catch, gh_eval_file_with_catch):
  2344. Use the handler passed, instead of ignoring it and using
  2345. gh_standard_handler. (Thanks to Etienne Bernard.)
  2346. 1998-10-20 Jim Blandy <jimb@zwingli.cygnus.com>
  2347. * ports.h: Put text after #endif in comment. (Thanks to Nicolas
  2348. Neuss.)
  2349. 1998-10-19 Jim Blandy <jimb@zwingli.cygnus.com>
  2350. * __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,
  2351. continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h,
  2352. dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h,
  2353. feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h,
  2354. genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c,
  2355. hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h,
  2356. list.c, list.h, load.c, load.h, mallocs.c, markers.c,
  2357. mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c,
  2358. ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
  2359. procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c,
  2360. regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c,
  2361. script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c,
  2362. srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h,
  2363. strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c,
  2364. symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c,
  2365. vectors.c, vectors.h, version.h, vports.c, weaks.c: Update
  2366. copyright years.
  2367. * script.c (scm_compile_shell_switches): Define
  2368. use-emacs-interface in the root module, so the repl code can see
  2369. it. See today's change to top-repl in ice-9/boot-9.scm.
  2370. * filesys.c (set_element, get_element): Make sure that `element'
  2371. is a cell before applying SCM_FPORTP to it. (Thanks to Jost
  2372. Boekemeier and Jorgen "forcer" Schaefer.)
  2373. 1998-10-18 Jim Blandy <jimb@zwingli.cygnus.com>
  2374. * chars.c (scm_charnames): In ASCII character name table, make
  2375. newlines print as #\newline by default, not #\nl.
  2376. * Makefile.am (libguile_la_SOURCES, BUILT_SOURCES): Put these in
  2377. alphabetical order. Oh thrills. But it helps me know how far
  2378. along in the compilation I am.
  2379. * Makefile.in: Regenerated.
  2380. 1998-10-18 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2381. * unif.c (scm_raprin1): Changed print syntax for byte vectors from
  2382. #bytes(...) to #y(...), and syntax for short vectors from
  2383. #short(...) to #h(...). This may seem nutty, but, like the other
  2384. uniform vectors, byte vectors and short vectors want to have the
  2385. same print and read syntax (and, more basic, want to have read
  2386. syntax!). Changing the read syntax to use multiple characters
  2387. after the hash sign breaks with the conventions used in R5RS and
  2388. the conventions used for the other uniform vectors. It also
  2389. introduces complexity in the current reader, both on the C and
  2390. Scheme levels. (The Right solution is probably to change the
  2391. syntax and prototypes for uniform vectors entirely.)
  2392. 1998-10-17 Jim Blandy <jimb@savonarola.red-bean.com>
  2393. Don't use local_fgets on sockets; ftell doesn't work on sockets.
  2394. (Thanks to Jorgen "forcer" Schaefer.)
  2395. * ports.h (SCM_NOFTELL): New flag.
  2396. * fports.c (local_fgets): If it's set, use the generic fgets.
  2397. * socket.c (scm_socket): Set SCM_NOFTELL on the ports we produce.
  2398. 1998-10-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2399. * script.c (scm_compile_shell_switches): Add handling of -q switch
  2400. (inhibit loading of user init file).
  2401. (scm_shell_usage): Add usage text for -q switch.
  2402. (scm_compile_shell_switches): Always load user init file first if
  2403. it is loaded at all.
  2404. 1998-10-16 Jim Blandy <jimb@zwingli.cygnus.com>
  2405. * stime.c: The CPP hair to determine a value for CLKTCK is weird,
  2406. and is now broken under NetBSD. I can't fathom what it's trying
  2407. to do, so I've replaced it with something that I do understand,
  2408. which seems to work, and which isn't broken on NetBSD. "Progress?
  2409. You Decide." (Thanks to Perry Metzger.)
  2410. * regex-posix.c (scm_regexp_exec): Add a cast to remove a
  2411. signed/unsigned comparison.
  2412. 1998-10-15 Jim Blandy <jimb@zwingli.cygnus.com>
  2413. Warning fixes from Greg Harvey:
  2414. * unif.c (scm_array_set_x): initializer for pos
  2415. * throw.c (scm_ithrow): added initializer for jmpbuf (SCM_UNDEFINED)
  2416. * struct.c (scm_struct_ref, scm_struct_set_x): Added
  2417. initializers for field_type, since EGCS so desparately wants to
  2418. play dumb
  2419. * debug.h (scm_make_gloc, scm_gloc_p, scm_make_iloc, scm_memcons,
  2420. scm_mem_to_proc, scm_proc_to_mem, scm_debug_hang): Added prototypes
  2421. when GUILE_DEBUG is defined.
  2422. * dynwind.h (scm_wind_chain): Same.
  2423. * ports.h (scm_pt_size, scm_pt_member): Same.
  2424. * print.h (scm_current_pstate): Same.
  2425. * procs.h (scm_make_cclo): Same.
  2426. 1998-10-14 Jim Blandy <jimb@zwingli.cygnus.com>
  2427. Handle short and long long uniform arrays properly. (Thanks to
  2428. Clark McGrew.)
  2429. * ramap.c (scm_ra_matchp, scm_array_fill_int, scm_array_index_map_x,
  2430. raeql_1): Add cases for scm_tc7_svect (short vectors) and
  2431. scm_tc7_llvect (long long vectors).
  2432. Change the way libguile and boot-9.scm are timestamped, to try to
  2433. get rid of these spurious mismatch warnings. Now both
  2434. libguile/versiondat.h and ice-9/version.scm are generated directly
  2435. by the configuration process, rather than having version.scm
  2436. generated directly, and libguile/versiondat.h generated by the
  2437. Makefile, which is generated by configure. It seems that
  2438. sometimes the Makefile would change, but versiondat.h depends on
  2439. Makefile.in, not Makefile, so it wouldn't get rebuilt.
  2440. * Makefile.am (versiondat.h): Target removed; this is generated
  2441. directly by the configure script now.
  2442. (BUILT_SOURCES): Remove versiondat.h.
  2443. * versiondat.h.in: New file, transformed by the configure script
  2444. into versiondat.h.
  2445. * Makefile.in: Regenerated.
  2446. * (__scm.h, alist.c, eval.c, feature.c, gsubr.c, numbers.c,
  2447. options.c): Rename RECKLESS -> SCM_RECKLESS, CAUTIOUS ->
  2448. SCM_CAUTIOUS; this way, 1) there's only one version of each flag
  2449. to define (we used to have both RECKLESS and SCM_RECKLESS), and 2)
  2450. if we want to use them in a header file some day, we can. (Thanks
  2451. to Michael Livshin.)
  2452. * stime.c (scm_get_internal_real_time): Do the arithmetic using
  2453. SCM numbers, so we won't have rollover problems; the range of a
  2454. signed long in milliseconds is about 25 days. (Thanks to Karl
  2455. Hegbloom.)
  2456. Don't redefine sleep and usleep; fix this problem now.
  2457. * coop.c (sleep, usleep): Remove declarations; we don't use or
  2458. redefine these any more.
  2459. (scm_thread_usleep, scm_thread_sleep): New functions which do the
  2460. job of usleep and sleep in a thread-friendly way. We can use
  2461. these in the rest of Guile. Define versions for systems both with
  2462. and without iselect.
  2463. * threads.h (scm_thread_usleep, scm_thread_sleep): New declarations.
  2464. * scmsigs.c (usleep): Clean up oddities declaring usleep; since
  2465. we're just using it, not redefining it, we can use a K&R style
  2466. declaration here.
  2467. (sleep): Declare this, too, if the system hasn't.
  2468. (scm_sleep, scm_usleep): Use scm_thread_sleep and
  2469. scm_uthread_sleep if they're available; otherwise, just call the
  2470. system functions.
  2471. * scmconfig.h.in: Regenerated.
  2472. * coop.c (scm_thread_sleep): Make `slept' an unsigned long.
  2473. * coop.c (coop_sleephelp): Remove ANSI #ifdef hair.
  2474. 1998-10-12 Jim Blandy <jimb@zwingli.cygnus.com>
  2475. * threads.c: Doc fix.
  2476. The argument type of usleep varies from system to system,
  2477. as does the return type. We really shouldn't be redefining usleep
  2478. at all, but I don't have time to clean that up before the 1.3.
  2479. release. It's on the schedule for afterwards. (Thanks to Julian
  2480. Satchell.)
  2481. * coop.c (usleep): Use USLEEP_ARG_TYPE in prototype and
  2482. definition.
  2483. * scmsigs.c (usleep): Use USLEEP_ARG_TYPE in prototype.
  2484. * scmconfig.h: Regenerated.
  2485. * simpos.c (scm_software_type): Procedure deleted. This isn't the
  2486. right way to handle system variation. Autoconf's approach is the
  2487. way and the light.
  2488. * simpos.h (scm_software_type): Declaration deleted.
  2489. * script.c (scm_find_executable): Don't test if unix is #defined
  2490. here; first, NetBSD doesn't #define it, and second, it's the wrong
  2491. way to go about these things. (Thanks to Perry Metzger.)
  2492. (dld_find_executable): Delete this MSDOS support code. This isn't
  2493. the way we want to support this; it needs to be rethunk at a
  2494. larger scale.
  2495. * genio.c (scm_do_read_line): Don't just politely check that the
  2496. line was either non-empty or EOF. Abort if it's empty and not
  2497. EOF.
  2498. 1998-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
  2499. * scmconfig.h.in: Regenerated.
  2500. * libguile.h: Don't omit the dynamic linking functions. (Thanks
  2501. to Greg Badros.)
  2502. * genio.c (scm_do_read_line): Count lines correctly when the file
  2503. doesn't end in a newline.
  2504. 1998-10-10 Jim Blandy <jimb@zwingli.cygnus.com>
  2505. * genio.c (scm_do_read_line): Maintain the line count correctly.
  2506. (Thanks to Harvey J. Stein and Greg Harvey.)
  2507. * gc.c (scm_return_first): Remove #ifdef __STDC__ garbage; Guile
  2508. requires ANSI now.
  2509. * numbers.c (big2str): Protect t from garbage collection until
  2510. we're done. (Thanks to Gary Houston.)
  2511. 1998-10-09 Jim Blandy <jimb@zwingli.cygnus.com>
  2512. * Makefile.am (libguile_la_LDFLAGS): Increment shared library
  2513. version number.
  2514. * Makefile.in: Regenerated.
  2515. * fports.h (scm_setbuf0, scm_setvbuf, scm_setfileno,
  2516. scm_evict_ports, scm_open_file, scm_stdio_to_port): Get rid of
  2517. SCM_P macro.
  2518. Do magic to mix reads and writes on stdio FILE-based ports.
  2519. (Thanks to Christian Lynbech.)
  2520. * fports.c (FPORT_READ_SAFE, FPORT_WRITE_SAFE, FPORT_ALL_OKAY):
  2521. New macros.
  2522. (pre_read, pre_write): New functions.
  2523. (local_fgetc, local_fgets, local_ffwrite, local_fputc,
  2524. local_fputs): Call them.
  2525. (local_fflush): Mark the port as ready for reading and writing.
  2526. (scm_stdio_to_port): Set the FPORT_READ_SAFE, FPORT_WRITE_SAFE
  2527. flags on new port objects. This might not be accurate --- who
  2528. knows what state the FILE * is in when we get it --- but it won't
  2529. do extraneous calls to fflush or fseek, so it's no worse than the
  2530. behavior before this change.
  2531. * ports.h: Add comment.
  2532. Centralize the creation of port objects based on stdio FILE * in
  2533. fports.c; don't just throw them together anywhere.
  2534. * fports.c (scm_stdio_to_port): Make NAME a SCM value, which is
  2535. what the rest of Guile wants. Don't set the revealed count;
  2536. that's only appropriate for stdin, stdout, stderr.
  2537. (scm_standard_stream_to_port): This function does set the revealed
  2538. count.
  2539. * init.c (scm_init_standard_ports): Use scm_standard_stream_to_port,
  2540. not scm_stdio_to_port.
  2541. * filesys.c (scm_open): Call scm_stdio_to_port; don't write it out.
  2542. * fports.c (scm_open_file): Same.
  2543. * posix.c (scm_pipe): Same.
  2544. * socket.c (scm_sock_fd_to_port): Same.
  2545. * ioext.c (scm_fdopen): Same.
  2546. (scm_freopen): Moved from here to...
  2547. * fports.c (scm_freopen): ... here. This is really something that
  2548. munges the internals of an fport, so it should go here.
  2549. * fports.h (scm_stdio_to_port): Adjust prototype.
  2550. (scm_standard_stream_to_port, scm_freopen): New protoypes.
  2551. * ioext.h (scm_freopen): Prototype removed.
  2552. * filesys.c (set_element, get_element): This can work on both pipe
  2553. and file ports, so use SCM_FPORTP to typecheck, instead of testing
  2554. for scm_tc16_fport.
  2555. * scmconfig.h.in: Regenerated.
  2556. Change the definition of the functions in scm_ptobfuns so that
  2557. they get passed the port object, not the port's stream.
  2558. * ports.h (scm_ptobfuns): Rename all `stream' arguments to `port'.
  2559. * gc.c (scm_gc_sweep): Pass the port itself to the free function.
  2560. * genio.c (scm_putc, scm_puts, scm_lfwrite, scm_fflush, scm_getc):
  2561. Pass the port itself to the scm_ptobs function.
  2562. * ports.c (scm_close_port, scm_force_output, scm_flush_all_ports,
  2563. scm_generic_fgets): Same.
  2564. (putc_void_port, puts_void_port, write_void_port, flush_void_port,
  2565. getc_void_port, fgets_void_port, close_void_port): Just change the
  2566. argument names; these functions don't really do anything.
  2567. * fports.c (local_fgetc, local_fgets, local_fclose, local_fflush,
  2568. local_fputc, local_fputs, local_ffwrite, local_pclose): Take the
  2569. port as an argument, and use SCM_STREAM to get the stdio FILE *.
  2570. Also, use prototyped definitions, and get rid of the extra
  2571. declarations.
  2572. (scm_fptob, scm_pipob): We don't need casts here any more.
  2573. * strports.c (prinstpt): Use prototype declarations.
  2574. (stputc, stwrite, stputs, stgetc): Take the port as an argument,
  2575. and use SCM_STREAM to get the string info. Also, use prototyped
  2576. definitions, and get rid of the extra declarations.
  2577. * vports.c (sfputc, sfwrite, sfputs, sfflush, sfgetc, sfclose,
  2578. noop0): Same.
  2579. * ports.h (scm_ptobfuns): Replace uses of SCM_P with a straight
  2580. prototype; it's okay (preferred, even!) to use ANSI C in Guile.
  2581. * fports.c (local_fgetc, local_fgets): Renamed from scm_fgetc and
  2582. scm_fgets, for consistency.
  2583. (scm_fptop, scm_pipob): References updated.
  2584. 1998-10-08 Jim Blandy <jimb@zwingli.cygnus.com>
  2585. Include the source location in error messages for scripts.
  2586. * init.c (scm_boot_guile_1): Use scm_internal_lazy_catch, so the
  2587. stack is still there when we catch the error.
  2588. * throw.c (handler_message): If we are handling an error with a
  2589. message, then put together the proper arguments and call
  2590. scm_display_error, instead of scm_display_error_message. That
  2591. displays source location, if it can find it.
  2592. 1998-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
  2593. * gc.c (scm_unprotect_object): Change this so that calls to
  2594. scm_protect_object and scm_unprotect_object nest properly.
  2595. (scm_protect_object): Doc fixes.
  2596. * strings.c (scm_string_set_x): Require the argument to be a
  2597. writable string, not a substring or a symbol.
  2598. * strings.h (SCM_RWSTRINGP, SCM_NRWSTRINGP): New predicates.
  2599. (Thanks to John Redford and Charbel Jacquin.)
  2600. * scmconfig.h.in: Regenerated; ../acconfig.h has changed.
  2601. 1998-10-07 Jim Blandy <jimb@totoro.red-bean.com>
  2602. * eval.c (safe_setjmp): Remove this misunderstanding.
  2603. (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Replace with references to
  2604. ordinary setjmp.
  2605. 1998-10-06 Jim Blandy <jimb@zwingli.cygnus.com>
  2606. * libguile.h: Mark these as C declarations, for compilation by C++
  2607. compilers.
  2608. * snarf.h (SCM_PROC, SCM_PROC1): Remove very odd code in #ifdef
  2609. __cplusplus clause. I seriously doubt this ever worked the way
  2610. the author seems to have intended.
  2611. 1998-10-05 Jim Blandy <jimb@zwingli.cygnus.com>
  2612. Utterly needless cleanups to hopelessly messy code.
  2613. * ports.c: Doc fixes.
  2614. (scm_fflush): Moved to ...
  2615. * genio.c (scm_fflush): ... here, amongst all the other port
  2616. method invocation functions.
  2617. * genio.h, ports.h: The prototype moves too.
  2618. 1998-10-04 Jim Blandy <jimb@zwingli.cygnus.com>
  2619. * backtrace.c (display_error_body): The current frame does not
  2620. always have a parent frame; consider a function called directly
  2621. from the MAIN_FUNC passed to scm_boot_guile. (Thanks to Maciej
  2622. Stachowiak.)
  2623. * alloca.c (alloca): Undo yesterday's changes, and simply call
  2624. malloc directly for storage, and abort if we don't get what we
  2625. want. The situation is much simpler --- just call malloc. Emacs
  2626. has bizarre/evil requirements (signal handlers might malloc unless
  2627. you set this global flag, so you have to set the flag around all
  2628. calls to malloc) which we are certainly not going to conform to,
  2629. so we can do the simple and obvious thing.
  2630. * coop.c (coop_condition_variable_wait): Make this function
  2631. static. It's only useful internally --- you should never just
  2632. wait on a condition variable.
  2633. * coop-defs.h (coop_condition_variable_wait): Delete prototype.
  2634. 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
  2635. * unif.c (scm_array_set_x): Accept any kind of number as an
  2636. element for a uniform vector of doubles. This is more consistent
  2637. with Scheme's view of numbers. (Thanks to Miroslav Silovic.)
  2638. * alloca.c: Use scm_must_malloc to obtain storage. Hopefully this
  2639. works; I can't conveniently test it myself. (Thanks to Dvid
  2640. Tillman for the bug report.)
  2641. * init.c: Doc fixes.
  2642. * init.c (invoke_main_func): Load the startup files (boot-9.scm)
  2643. from here, not from scm_compile_shell_switches (which is a pretty
  2644. dumb place to do it).
  2645. (scm_load_startup_files): New function.
  2646. (scm_ice_9_already_loaded): Variable moved to here from script.c.
  2647. * script.c (scm_compile_shell_switches): Don't load the startup
  2648. files here.
  2649. (scm_ice_9_already_loaded): Variable moved.
  2650. * init.c (scm_load_startup_files): Prototype for new function.
  2651. * gh_init.c (gh_enter): Doc fix.
  2652. 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
  2653. Some anti-warning changes from Greg Harvey.
  2654. * gh_data.c (gh_scm2doubles): Initialize m, to avoid compiler
  2655. warnings when it doesn't understand our NORETURN declarations in
  2656. error.h.
  2657. * posix.c (scm_mknod): Similar.
  2658. 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
  2659. * posix.c (scm_getpwuid): If we can't find an entry, return our
  2660. own message, instead of using scm_syserror --- the getpwMUMBLE
  2661. functions don't set `errno' to anything interesting.
  2662. 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
  2663. Get rid of warnings from the cooperative threading system.
  2664. * threads.h (scm_single_thread_p, scm_yield,
  2665. scm_call_with_new_thread, scm_join_thread, scm_make_mutex,
  2666. scm_lock_mutex, scm_unlock_mutex, scm_make_condition_variable,
  2667. scm_wait_condition_variable, scm_signal_condition_variable): Add
  2668. prototypes for these Scheme-visible functions.
  2669. * coop-defs.h (coop_next_runnable_thread,
  2670. coop_wait_for_runnable_thread_now, coop_wait_for_runnable_thread):
  2671. Prototypes for these here, even though they're from iselect.c.
  2672. (coop_condition_variable_wait, coop_join): Add prototypes.
  2673. * coop-threads.c (scm_threads_free_thread, scm_threads_free_mutex,
  2674. scm_threads_free_condvar): Make these smob functions static.
  2675. * coop-threads.h (coop_init): Give this a real prototype.
  2676. * coop.c: #include <unistd.h>, if we have it, for `usleep' and `sleep'.
  2677. (coop_next_runnable_thread): No need to provide prototype; it's in
  2678. coop-defs.h.
  2679. * scmconfig.h.in: .detarenegeR
  2680. * iselect.c, threads.c: Doc fixes.
  2681. 1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
  2682. * Makefile.in: Regenerated with a patched automake, to get
  2683. dependency generation right when using EGCS.
  2684. * inet_aton.c (inet_aton): Add prototype, to remove compiler
  2685. warning. (Thanks to Robert Pluim.)
  2686. * inet_aton.c (inet_aton): Reassure the compiler that the
  2687. arguments to the <ctype.h> macros are all unsigned characters, not
  2688. signed characters.
  2689. 1998-10-03 Jim Blandy <jimb@savonarola.red-bean.com>
  2690. Getting rid of more warnings...
  2691. * iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see
  2692. today's change to ../configure.in.
  2693. * scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP.
  2694. * scmconfig.h.in: Regenertaded.de.,.__
  2695. * stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL.
  2696. (scm_localtime, scm_mktime): Use a const char * to manipulate the
  2697. time zone name.
  2698. * readline.c: Doc fix.
  2699. (rl_cleanup_after_signal, rl_free_line_state): Make these static.
  2700. * readline.h (scm_filename_completion_function): Add prototype.
  2701. (scm_init_readline): Make this into a prototype.
  2702. * readline.c (scm_filename_completion_function): Use SCM_PROC to
  2703. declare this, instead of calling scm_make_subr manually.
  2704. 1998-10-02 Jim Blandy <jimb@savonarola.red-bean.com>
  2705. * readline.h (scm_init_readline): Add prototype for this.
  2706. (scm_init_readline): Make this a real prototype.
  2707. 1998-09-30 Jim Blandy <jimb@zwingli.cygnus.com>
  2708. Warning fixes from Maciej Stachowiak:
  2709. * backtrace.h (scm_display_application, scm_backtrace): Add
  2710. prototypes.
  2711. * debug.c (scm_m_start_stack): Make this function static.
  2712. * fluids.h (scm_fluid_p): Add prototype.
  2713. * procprop.c (scm_i_procedure_arity): Make this function static.
  2714. * regex-posix.c (scm_regexp_error_msg): Make this function static.
  2715. * regex-posix.h (scm_init_regex_posix): Use prototype, not K&R decl.
  2716. * root.h (scm_dynamic_root): Add external prototype.
  2717. * scmsigs.h (scm_usleep): Add external prototype.
  2718. * script.h (scm_init_script): Use prototype, not K&R decl.
  2719. * stacks.h (scm_stack_id): Add external prototype.
  2720. * symbols.h (scm_sysintern0_no_module_lookup): Add external prototype.
  2721. 1998-09-30 Mark Galassi <rosalia@cygnus.com>
  2722. * gh.h: took out the definitions of vset and vref, since they are
  2723. replaced by the proper vector routines that correspond to the R4RS
  2724. procedures.
  2725. 1998-09-29 Jim Blandy <jimb@totoro.red-bean.com>
  2726. * snarf.h (SCM_VCELL_INIT, SCM_GLOBAL_VCELL_INIT): New macros;
  2727. these are analogous to SCM_VCELL and SCM_GLOBAL_VCELL but take a
  2728. third argument, a C expression that should result in a SCM value,
  2729. which is used to initialize the variable. Reimplemented
  2730. SCM_CONST_LONG in terms of SCM_VCELL_INIT. (Thanks to Maciej
  2731. Stachowiak.)
  2732. * version.h (scm_libguile_config_stamp): Add prototype.
  2733. (From Maciej Stachowiak.)
  2734. 1998-09-26 Jim Blandy <jimb@zwingli.cygnus.com>
  2735. * eval.c (scm_force): Assert that x is SCM_NIMP to fix segv when
  2736. (force 9) is tried. (Thanks to Karl M. Hegbloom.)
  2737. 1998-09-06 Jim Blandy <jimb@zwingli.cygnus.com>
  2738. * print.c (scm_iprin1): Rather than having one i, and using it in
  2739. several places, declare a fresh i local to each block where it is
  2740. used, and give it a signedness appropriate to its use in each case.
  2741. (scm_iprlist): Same.
  2742. * print.c (scm_iprin1): Add cast to avoid unsigned/signed
  2743. comparison warnings.
  2744. * print.c (ENTER_NESTED_DATA): Make i an unsigned long, to avoid
  2745. signed/unsigned clashes.
  2746. * posix.h (scm_tmpnam): Added prototype.
  2747. * objects.h (scm_set_object_procedure_x, scm_make_class_object,
  2748. scm_make_subclass_object): Add external prototypes.
  2749. * numbers.c (scm_mkbig): Add cast, and note that signed/unsigned
  2750. comparison is okay here.
  2751. * numbers.c (scm_istr2int): Add cast; len is known to be positive.
  2752. * numbers.c (scm_bigcomp): Clarify logic, and avoid relying on the
  2753. (true, but confusing) fact that -1 == ((unsigned) 0 - 1).
  2754. * numbers.c (scm_adjbig): Make nsiz an scm_sizet, to avoid mixing
  2755. signed/unsigned.
  2756. * load.c (swap_port): Make this function static.
  2757. * load.c (scm_search_path): Make max_path_len and max_ext_len
  2758. unsigned, since they're compared against string sizes.
  2759. * load.c (init_build_info): Make i unsigned.
  2760. * ioext.h (scm_read_line): Add prototype.
  2761. * hashtab.c (scm_hash_fn_get_handle, scm_hash_fn_create_handle_x,
  2762. scm_hash_fn_remove_x): Make hash bucket index local variable k
  2763. unsigned. Use scm_ulong2num to pass it to SCM_ASSERT as
  2764. accurately as possible.
  2765. * gh_data.c (gh_set_substr): Add casts to avoid signed/unsigned
  2766. comparisons, and range checking to make sure those casts are
  2767. harmless.
  2768. * stackchk.h (SCM_STACK_OVERFLOW_P): Change definition to avoid
  2769. signed/unsigned comparisons.
  2770. * smob.c (scm_numsmob): Make this an int, not an scm_sizet, to
  2771. avoid signed/unsigned comparisons.
  2772. * smob.h (scm_numsmob): Change extern declaration to match.
  2773. * ports.c (scm_numptob): Make this an int, not an scm_sizet, to
  2774. avoid signed/unsigned comparisons.
  2775. * ports.h (scm_numptob): Change extern declaration to match.
  2776. (scm_current_load_port, scm_set_port_line_x,
  2777. scm_set_port_column_x): New prototypes.
  2778. * gsubr.c (GSUBR_TEST): Don't #define this. Nobody's using the
  2779. test code, and it causes warnings.
  2780. * gh.h (gh_int2scmb, gh_uniform_vector_length,
  2781. gh_uniform_vector_ref): Added prototypes.
  2782. * Makefile.am (libguile_la_SOURCES): Include Scheme-level
  2783. debugging support unconditionally. That's backtrace.c, stack.c,
  2784. debug.c, and srcprop.c.
  2785. (EXTRA_libguile_la_SOURCES): Omit those from here.
  2786. * Makefile.in: Regenerated.
  2787. 1998-08-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2788. * options.c (scm_options): Bugfix: Allow empty list of options!
  2789. * debug.c, debug.h (scm_single_step): Removed.
  2790. (scm_with_traps): New procedure. This procedure could easily be
  2791. written in Scheme but needs to be highly optimized.
  2792. * eval.h, eval.c: New evaluator trap flag: SCM_TRAPS_P.
  2793. * eval.c (SCM_CEVAL, SCM_APPLY): Removed resetting of trap flags.
  2794. Check SCM_TRAPS_P before trapping.
  2795. 1998-07-30 Jim Blandy <jimb@zwingli.cygnus.com>
  2796. Changes to avoid signed/unsigned comparison warnings.
  2797. * gc.c (scm_mtrigger, scm_heap_size): Make these unsigned longs.
  2798. (scm_gc_sweep): Make n and j local to the blocks they're used in,
  2799. so they can have appropriate types for each application. Make i
  2800. signed. Use initializers in some spots. I'll probably pay for
  2801. all this tweaking.
  2802. (scm_must_malloc, scm_must_realloc): Use scm_sizet for size args.
  2803. (scm_must_realloc): Make nm unsigned.
  2804. (init_heap_seg): Make new_seg_index and n_new_objects signed.
  2805. (scm_init_storage): Use prototype-style definition, and make the
  2806. argument unsigned.
  2807. * gc.h (scm_heap_size, scm_mtrigger, scm_must_malloc,
  2808. scm_must_realloc, scm_init_storage): Adjust prototype accordingly.
  2809. * filesys.c (scm_readlink): Make local vars rv and size ints, to
  2810. avoid signed/unsigned comparison warnings, and because the return
  2811. value of readlink may be -1. Don't bother casting the third
  2812. argument to readlink.
  2813. * filesys.c (scm_dirname, scm_basename): Move these to their own
  2814. page, at the end of the file.
  2815. * filesys.h (scm_dirname, scm_basename): Add prototypes for these.
  2816. * eval.h (scm_eval_options_interface): Add external prototype for this.
  2817. * eval.c (scm_eval_options_interface): Use prototype-style def'n.
  2818. * eval.c (scm_lookupcar1): Make this static.
  2819. * dynl.h (scm_registered_modules, scm_clear_registered_modules):
  2820. Make these prototype declarations, not K&R-style.
  2821. * chars.c (scm_tables_prehistory): Add cast, to remove signed/
  2822. unsigned comparison warning.
  2823. * appinit.c: File removed. It had a single function in it, empty,
  2824. whose reason for existence is explained in no documentation or
  2825. comment. I think it's there as a default for some Tcl-style
  2826. initialization, but Tcl abandoned that approach a while ago.
  2827. * Makefile.am (libguile_la_SOURCES): Remove appinit.c.
  2828. (BUILT_SOURCES): Remove appinit.x.
  2829. * Makefile.in: Regenerated.
  2830. 1998-07-29 Jim Blandy <jimb@zwingli.cygnus.com>
  2831. * Makefile.in: Regenerated using the last public version of
  2832. automake, not the hacked Cygnus version.
  2833. 1998-07-28 Jim Blandy <jimb@zwingli.cygnus.com>
  2834. Remove Totoro kludge.
  2835. * Makefile.in, scmconfig.h.in: Regenerated.
  2836. * init.c, readline.c: Don't check if TOTORO is #defined.
  2837. 1998-07-26 Jim Blandy <jimb@zwingli.cygnus.com>
  2838. * Makefile.am: Adjust for new thread configuration system.
  2839. (INCLUDES): Include the value of THREAD_CPPFLAGS.
  2840. (guile_LDADD, check_ldadd): THREAD_LIBS_LOCAL has been renamed from
  2841. THREAD_LIBS.
  2842. (THREAD_LIBS): Definition deleted; automake will generate such
  2843. things automatically.
  2844. * Makefile.in: Regenerated.
  2845. 1998-07-23 Jim Blandy <jimb@zwingli.cygnus.com>
  2846. Simplify smob and port marking; set the mark bit in the generic
  2847. marking code, and make marker routines only responsible for
  2848. turning up outgoing pointers.
  2849. * gc.c (scm_gc_mark): Set the mark bit on ports and smobs here,
  2850. before calling the marking function. Don't call the marking
  2851. function if it's zero.
  2852. * markers.c (scm_mark0): Just return #f. This function isn't
  2853. necessary at all now, but it's harmless to call it. We'll leave
  2854. it in so other folks' code doesn't croak at link time.
  2855. (scm_markcdr): Don't call SCM_SETGC8MARK.
  2856. * async.c (mark_async): Don't call SCM_SETGC8MARK.
  2857. * dynl.c (mark_dynl_obj): Same.
  2858. * root.c (mark_root): Same.
  2859. * srcprop.c (marksrcprops): Same.
  2860. * unif.c (markra): Same.
  2861. * variable.c (scm_markvar): Same.
  2862. * ports.c (scm_markstream): Same.
  2863. (void_port_ptob): Specify zero for our marking function.
  2864. * debug.c (debugobjsmob): Same.
  2865. * dynwind.c (guardsmob): Same.
  2866. * filesys.c (dir_smob): Same.
  2867. * fluids.c (fluid_smob): Same.
  2868. * fports.c (scm_fptob, scm_pipob): Same.
  2869. * mallocs.c (mallocsmob): Same.
  2870. * regex-posix.c (regex_t_smob): Same.
  2871. * smob.c (freecell, flob, bigob): Same.
  2872. * threads.c (thread_smob, mutex_smob, condvar_smob): Same.
  2873. * throw.c (jbsmob, lazy_catch_funs): Same.
  2874. 1998-07-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2875. * eval.c (scm_copy_tree): Reverted last change: `eval' uses
  2876. scm_copy_tree on code in order not to let memoized code to leak
  2877. out. Thus, scm_copy_tree needs to copy vectors as well since
  2878. quasiquote can introduce evaluated code also inside vector
  2879. constants.
  2880. 1998-07-17 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2881. * eval.c (scm_copy_tree): Removed ability to copy vectors.
  2882. * gh_data.c, gh.h (gh_ints2scm, gh_longs2ivect,
  2883. gh_ulongs2uvect): New procedures. (Complements gh_doubles2scm and
  2884. gh_doubles2dvect.)
  2885. * unif.c: Say that ivect and uvect are of type signed and unsigned
  2886. long instead of int in commentary so that it correctly describes
  2887. the implementation.
  2888. 1998-07-12 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2889. * stime.c: Removed declaration of strptime. (It should be
  2890. declared by the system headers. If it turns out that some systems
  2891. don't, we'll handle that then.) (Thanks to Greg Troxel.)
  2892. * stime.h: Renamed TIMEH --> STIMEH
  2893. * backtrace.c (scm_display_error, scm_display_backtrace): In order
  2894. to increase portability, don't use structure assignment.
  2895. (Thanks to Nicolas Neuss.)
  2896. * iselect.c: Use LONG_MAX instead of ULONG_MAX for increased
  2897. portability.
  2898. (finalize_fd_sets): Added empty statement after last case label.
  2899. (Thanks to Nicolas Neuss.)
  2900. * gc.c (scm_igc): Changed //-comment into /*-comment. (Thanks to
  2901. Nicolas Neuss.)
  2902. Sat Jul 11 22:08:21 1998 Mikael Djurfeldt <mdj@totoro.red-bean.com>
  2903. * init.c, readline.c: OK, I won't have these readline.x bug
  2904. reports anymore. We've had them since April. The current reason
  2905. is a completely unintelligible failure of totoro.red-bean.com to
  2906. do the test for rl_getc_function in libreadline correctly. This
  2907. kludge overrides the test if we're on totoro so that the snapshot
  2908. generation process can work.
  2909. * readline.c: Define a strdup replacement if not existent on system.
  2910. 1998-07-12 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2911. * vectors.c, vectors.h (scm_make_vector): Removed third argument.
  2912. This change makes scm_make_vector R5RS compatible. We cannot keep
  2913. the third argument since people want to be able to deduce the form
  2914. of the C function call only by looking at R5RS. (At the same time
  2915. we have removed some unnecessary complexity!)
  2916. * eval.c, filesys.c, fluids.c, gc.c, gh_data.c, init.c, kw.c,
  2917. net_db.c, posix.c, print.c, regex-posix.c, scmsigs.c, socket.c,
  2918. stime.c, symbols.c, unif.c, vectors.c, weaks.c: Removed third
  2919. argument in call to scm_make_vector.
  2920. 1998-07-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2921. * numbers.h (SCM_NUM2DBL): New macro. Complements SCM_NUMBERP.
  2922. This macro is useful in applications.
  2923. 1998-06-21 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2924. * load.c (scm_internal_parse_path): Renamed from scm_parse_path.
  2925. (scm_parse_path, scm_search_path): New Scheme level procedures.
  2926. * load.h (scm_internal_parse_path, scm_parse_path,
  2927. scm_search_path): Declared.
  2928. 1998-06-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2929. * filesys.c (dirname, basename): New procedures.
  2930. * init.c (scm_boot_guile_1): Removed condition around
  2931. scm_init_options.
  2932. * dynwind.c: #include "genio.h"; #include "smob.h"; Implemented a
  2933. new data type (guards) for representation of C level guards and
  2934. data on the wind chain.
  2935. (scm_internal_dynamic_wind): New function.
  2936. * dynwind.h: Declare scm_internal_dynamic_wind.
  2937. * root.h (scm_root_state): Added scm_cur_loadp.
  2938. * root.c (mark_root): Added comment about cur_loadp.
  2939. * load.c: #include "dynwind.h";
  2940. (scm_primitive_load): Use scm_inner_dynamic_wind to update
  2941. scm_cur_loadp.
  2942. * init.c (scm_init_standard_ports): Initialize scm_def_loadp.
  2943. * ports.c (current-load-port): New procedure.
  2944. 1998-06-09 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2945. * ioext.c (scm_isatty_p): Accept any kind of data as argument. If
  2946. not a tty, return #f.
  2947. * regex-posix.c (scm_regexp_exec): Free malloced memory. (Thanks
  2948. to Julian Satchell and Roland Kaufmann.)
  2949. * gh.h (gh_memv, gh_member): Fixed typos in macro definitions.
  2950. (gh_write): Added declaration. (Thanks to Eiichi Takamori.)
  2951. 1998-06-07 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
  2952. * debug.h, debug.c (scm_start_stack): New function. Implements
  2953. the guts of old scm_m_start_stack.
  2954. * debug.c (scm_m_start_stack): Use scm_start_stack.
  2955. * init.c (scm_start_stack, scm_restart_stack): Renamed to
  2956. start_stack and restart_stack. (These have static scope.)
  2957. 1998-05-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2958. * readline.c (rl_cleanup_after_signals, rl_free_line_state): New
  2959. readline functions to come in release 2.3. (Thanks to Chet
  2960. Ramey.)
  2961. (handle_errors): Use the above functions.
  2962. 1998-05-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2963. * readline.c: Improvements for readline support: Handle errors
  2964. better; Implement before-read-hook.
  2965. 1998-05-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2966. * init.c (scm_boot_guile_1), readline.c: Test for
  2967. HAVE_RL_GETC_FUNCTION instead of HAVE_LIBREADLINE. (Need to
  2968. assure that we have version >= 2.1.)
  2969. 1998-05-11 Mikael Djurfeldt <mdj@kenneth>
  2970. * readline.c (scm_readline): Defer interrupts while we're calling
  2971. readline.
  2972. * readline.c (scm_add_history): Bugfix: Do strdup before giving
  2973. away the string to add_history.
  2974. (completion_function): Do completion for readline. (Thanks to
  2975. Andrew Archibald.)
  2976. (scm_filename_completion_function): New procedure: Filename
  2977. completer.
  2978. (current_input_getc): New function. Use this one instead of
  2979. standard getc from readline.
  2980. * throw.c, throw.h (scm_handle_by_throw): New function: This
  2981. handler throws errors to next handler on the dynwind chain.
  2982. 1998-05-09 Mikael Djurfeldt <mdj@kenneth>
  2983. * scmsigs.c (scm_usleep): Bugfix: Don't define j if it isn't
  2984. used.
  2985. 1998-05-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  2986. * procprop.c (scm_i_procedure_arity): New function. Returns arity
  2987. of procedure.
  2988. (scm_procedure_properties): Modified to return arity together with
  2989. other properties.
  2990. (scm_procedure_property): Added the read-only property `arity'.
  2991. (scm_set_procedure_property_x): It is an error to set the `arity'
  2992. property.
  2993. * gsubr.h, gsubr.c: Moved macros from gsubr.c to gsubr.h and added
  2994. prefix SCM_; Made f_gsubr_apply global and added prefix scm_.
  2995. * procprop.h (scm_sym_arity): New symbol.
  2996. * objects.c (scm_set_object_procedure_x): New procedure: Use this
  2997. to set the dispatch procedure of an operator or entity object.
  2998. * objects.h (SCM_METACLASS_OPERATOR_LAYOUT, SCM_ENTITY_LAYOUT):
  2999. Made procedure slots read-only.
  3000. * eval.c (SCM_CEVAL): Moved scm_tc7_contin case above
  3001. scm_tcs_cons_gloc case in zero args switch; Fixed args
  3002. construction for operators in scm_tcs_cons_gloc case in two args
  3003. switch.
  3004. 1998-05-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3005. * fluids.c: Removed use of assert.h (in order to avoid
  3006. __eprintf).
  3007. * Makefile.am (libguile_la_LDFLAGS): Added -export-dynamic.
  3008. * dynl.c (maybe_drag_in_eprintf): Disabled through #ifdef 0.
  3009. * eval.c (SCM_CEVAL): Do more thorough argument checking. This
  3010. change makes the evaluator safer at the cost of evaluation speed.
  3011. It handles the case when the user has added a non-immediate
  3012. improper end of the application form, e.g., `(+ 0 . x)'.
  3013. (Earlier only cases like `(+ 0 . 0)' were handled.) I've tried to
  3014. minimize the extra cost as much as possible. The new code is
  3015. enclosed in #ifdef CAUTIOUS regions. NOTE: This also fixes the
  3016. problem with structs planted directly in the code (e.g. by a
  3017. macro). This no longer causes segmentation fault. (Thanks to
  3018. Eric Hanchrow.)
  3019. * eval.c, eval.h (scm_eval_args, scm_deval_args): Take one extra
  3020. arg `proc' in order to be able to throw errors; New argument
  3021. checking code.
  3022. * Removed extra #include "debug.h"
  3023. 1998-04-25 Mikael Djurfeldt <mdj@kenneth>
  3024. * scmsigs.c: Declare usleep as returning void on some systems.
  3025. (scm_usleep): Return SCM_INUM0 on those systems. (Thanks to Julian
  3026. Satchell.)
  3027. * coop.c (usleep): Return void on some systems.
  3028. 1998-04-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3029. * Makefile.am (libguile_la_LDFLAGS): Removed redundant -rpath.
  3030. * coop.c: Changed return type of usleep to int.
  3031. * scmsigs.c (scm_usleep): New procedure; Declare usleep if it
  3032. isn't found in the OS.
  3033. * iselect.h: #define scm_internal_select select if GUILE_ISELECT
  3034. isn't enabled. (Thought that I had made this change ages ago...)
  3035. * iselect.c: Declare bzero if not defined by OS.
  3036. 1998-04-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3037. * dynl.c (scm_must_free_argv): Fixed memory leak due to negated
  3038. condition. (Thanks to John Tobey.)
  3039. * continuations.c (scm_make_cont), debug.c (scm_make_memoized,
  3040. scm_make_debugobj), eval.c (scm_makprom): SCM_DEFER/ALLOW_INTS -->
  3041. A section.
  3042. * __scm.h: Start the long-term project of moving to POSIX threads.
  3043. Phase 1: Classification of all critical sections.
  3044. (SCM_ENTER_A_SECTION, SCM_EXIT_A_SECTION): New macros: Delimiters
  3045. for A sections. (See comments in __scm.h for details.)
  3046. * dynl.c: Only check that HAVE_DLOPEN is defined before loading
  3047. dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
  3048. 1998-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3049. * Makefile.am (BUILT_SOURCES): Added cpp_err_symbols.c,
  3050. cpp_sig_symbols.c, libpath.h and versiondat.h to BUILT_SOURCES
  3051. (libpath.h, versiondat.h): Replaced dependency on Makefile with
  3052. dependencies on $(srcdir)/Makefile.in
  3053. $(top_builddir)/config.status in order to avoid circularity.
  3054. * script.c (scm_compile_shell_switches): Bugfix: Don't discount i
  3055. from argc if argc was 0 initially.
  3056. * Makefile.am (Makefile.am): Replaced THREAD_LIBS --> GUILE_LIBS
  3057. in generation of libpath.h.
  3058. 1998-04-15 Mikael Djurfeldt <mdj@nada.kth.se>
  3059. * Makefile.am (libguile_la_LDFLAGS): Bumped version number of
  3060. libguile from 2 to 3.
  3061. 1998-04-14 Mikael Djurfeldt <mdj@nada.kth.se>
  3062. * Makefile.am: Added .x-dependencies to variable BUILT_SOURCES.
  3063. 1998-04-13 Mikael Djurfeldt <mdj@kenneth>
  3064. * ports.c (scm_port_line, scm_set_port_line_x, scm_port_column,
  3065. scm_set_port_column_x, scm_port_filename,
  3066. scm_set_port_filename_x): Removed optional arguments. Added
  3067. proper argument checking.
  3068. * eval.c, eval.h, coop.c (scm_eval_stack, SCM_EVAL_STACK): Measure
  3069. stack size in machine words.
  3070. * unif.c (scm_uniform_vector_ref, scm_cvref, scm_array_set_x,
  3071. rapr1): Use SCM_UCHARS instead of SCM_CHARS for strings. (Thanks
  3072. to Ole Myren Röhne.)
  3073. 1998-04-12 Mikael Djurfeldt <mdj@kenneth>
  3074. * socket.c: Check for HAVE_UNIX_DOMAIN_SOCKETS instead of
  3075. UNIX_DOMAIN_SOCKETS. (Thanks to Lauri Alanko.)
  3076. * gc.c (scm_gc_sweep): Count cells correctly. (Thanks to Ben
  3077. Caradoc-Davies.)
  3078. * eval.c (SCM_CEVAL, SCM_APPLY): In SCM_IM_APPLY and in the
  3079. procedure apply: Copy argument lists before pushing them unto the
  3080. environment so that the environment won't get mutated due to
  3081. manipulation of procedure arguments. This should perhaps be
  3082. regarded as a temporary solution until someone finds a more
  3083. efficient one. (Thanks to Maciej Stachowiak.)
  3084. 1998-04-10 Mikael Djurfeldt <mdj@kenneth>
  3085. * script.c (scm_compile_shell_switches): Use "guile" as default
  3086. zero arg if argc is NULL.
  3087. 1998-04-02 Mikael Djurfeldt <mdj@nada.kth.se>
  3088. * script.c (scm_compile_shell_switches): Allow NULL argv if argc
  3089. is zero. (Thanks to Dirk Herrmann.)
  3090. 1998-03-30 Mikael Djurfeldt <mdj@nada.kth.se>
  3091. * ports.c (scm_add_to_port_table): First line is now line 0
  3092. (was 1). (Interface changed according to suggestion by Per
  3093. Bothner.)
  3094. * backtrace.c (display_header): Add 1 to line and column numbers
  3095. when presenting them to the user.
  3096. * eval.h, eval.c, debug.h, debug.c (scm_evaluator_traps): Moved
  3097. from debug.c --> eval.c
  3098. * eval.h, eval.c (scm_eval_options_interface): New options
  3099. interface.
  3100. (SCM_EVAL_STACK): New option: Size of newly created stacks,
  3101. i.e. stacks for new threads.
  3102. * coop.c (COOP_STKSIZE): Use SCM_EVAL_STACK.
  3103. * eval.c (unsafe_setjmp): Removed with #if 0.
  3104. * gsubr.c (scm_gsubr_apply): Added dummy return to avoid compiler
  3105. warning.
  3106. * eval.c, numbers.c, unif.c, srcprop.c: Added a few curly braces
  3107. to avoid compiler warnings.
  3108. * dynl-dl.c (sysdep_dynl_func): Only define usymb if needed.
  3109. 1998-03-28 Mikael Djurfeldt <mdj@nada.kth.se>
  3110. * throw.c (handler_message): Print message on current error port
  3111. instead of default error port. (Thanks to Maciej Stachowiak.)
  3112. Mon Mar 2 21:35:02 1998 Gary Houston <ghouston@actrix.gen.nz>
  3113. * ports.c (scm_add_to_port_table): allocate in units of
  3114. struct scm_port_table *, not struct scm_port_table.
  3115. * posix.c (scm_close_pipe): remove the port from the port table
  3116. and mark as closed.
  3117. Thanks to Rob Engle for both fixes.
  3118. 1998-02-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3119. * iselect.h, iselect.c, coop.c, coop-threads.c, coop-threads.h,
  3120. coop-defs.h, throw.c, backtrace.c: Added new copyright year 1998.
  3121. 1998-02-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3122. * throw.h: Removed jmpbuf arg in scm_catch_body_t.
  3123. * backtrace.c (display_error_body, display_backtrace_body),
  3124. coop-threads.c (scheme_body_bootstrip, c_body_bootstrip),
  3125. gh_eval.c (eval_str_wrapper, eval_file_wrapper), init.c
  3126. (invoke_main_func), root.c (cwdr_body), throw.c (cwss_body,
  3127. scm_body_thunk, hbpca_body): Removed the second jmpbuf arg on body
  3128. functions.
  3129. * throw.c (scm_internal_catch, scm_internal_lazy_catch): Bodies
  3130. don't receive the jmpbuf arg anylonger.
  3131. (scm_catch): Don't accept a #f tag.
  3132. (scm_throw): Check that key is a symbol.
  3133. (scm_ithrow): Don't take a jmpbuf as key. Don't check key arg.
  3134. Fri Jan 30 22:28:07 1998 Mikael Djurfeldt <mdj@kenneth>
  3135. * async.c (async_pending): Removed declaration.
  3136. 1998-01-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3137. * dynwind.c (scm_wind_chain): New debug function.
  3138. * coop-threads.c (scheme_launch_data, scheme_body_bootstrip,
  3139. scheme_handler_bootstrip, scheme_launch_thread, c_launch_data,
  3140. c_body_bootstrip, c_handler_bootstrip, c_launch_thread): Add an
  3141. extra layer of functions around the body and handler of a thread.
  3142. This extra layer makes sure that the handler is called in the
  3143. dynamic context of the surround (= empty dynwind list), but under
  3144. the *dynamic root* of the body. We can not use the dynamic root
  3145. of the surround since that root belongs to another thread => stack
  3146. is not handled correctly. It may seem ugly to use this extra
  3147. layer, but the extra cost in terms of execution time is really
  3148. negligible compared to the total amount of time required to create
  3149. a thread, and it would reduce maintainability to duplicate the
  3150. crucial and complicated steps performed by cwdr.
  3151. * __scm.h (SCM_ASYNC_TICK): Removed thread switching code.
  3152. (SCM_ALLOW_INTS): Added thread switching code before interrupts
  3153. get re-enabled. The important effect of this is that interrupts
  3154. are blocked during thread switching so that thread data structures
  3155. don't risk getting messed up by an unfortunate signal.
  3156. (SCM_REDEFER_INTS, SCM_REALLOW_INTS): It turned out that gcc-2.8.0
  3157. seems to do more aggressive optimization which actually move
  3158. instructions around in these macros in a fatal way. Therefore:
  3159. Introduce Anthony's SCM_FENCE macro! (And I who thought he was
  3160. just superstitious...)
  3161. (SCM_TICK): Maybe do a context switch and take care of asyncs.
  3162. This macro should be used instead of SCM_ASYNC_TICK since the
  3163. latter doesn't do context switches any more.
  3164. * eval.c (scm_eval, scm_deval), eq.c (scm_equal_p): Use SCM_TICK
  3165. instead of SCM_ASYNC_TICK.
  3166. * coop.c, iselect.c: Since thread switches are now performed with
  3167. interrupts masked, we can't use the old mechanism of delivering
  3168. signals immediately when they arrive. Signals must instead be
  3169. delivered when the asyncs run *after* the end of the critical
  3170. section in scm_internal_select. But this also means after context
  3171. switch so that the signal will be delivered to a different thread.
  3172. To avoid this, I have changed the protocol of
  3173. coop_wait_for_runnable_thread and friends so that they are allowed
  3174. to return the original thread. So, if a signal arrives during
  3175. scm_internal_select, we won't any longer be forced do a context
  3176. switch, but can remain in the same thread and deliver the signal
  3177. to it.
  3178. * async.c, async.h (asyncs_pending): Renamed asyncs_pending -->
  3179. scm_asyncs_pending and made it global.
  3180. * iselect.c: Small fixes.
  3181. * coop.c (coop_mutex_init, coop_mutex_lock, coop_mutex_unlock,
  3182. coop_condition_variable_init, coop_condition_variable_wait,
  3183. coop_condition_variable_signal): Changed return type from `void'
  3184. to `int'. This is to adhere closer to the pthreads interface.
  3185. This, in turn, is part of an attempt to provide C versions of the
  3186. mutex and condition variable primitives which can be part of a
  3187. frontend to COOP or pthreads.
  3188. * coop.c (coop_mutex_destroy, coop_condition_variable_wait_mutex,
  3189. coop_condition_variable_destroy): New functions.
  3190. * coop-threads.c (scm_wait_condition_variable): Use
  3191. coop_condition_variable_wait_mutex.
  3192. * coop-threads.h, coop-defs.h (coop_q_t, coop_m, coop_c):
  3193. Definitions moved to coop-defs.h.
  3194. * coop-defs.h (scm_mutex_init, scm_mutex_lock, scm_mutex_unlock,
  3195. scm_mutex_destroy, scm_cond_init, scm_cond_wait, scm_cond_signal,
  3196. scm_cond_destroy): New C interface to mutecis and cond vars.
  3197. 1998-01-24 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3198. * error.c (scm_wta): Added support for SCM_ARG6 and SCM_ARG7.
  3199. * iselect.c: Now several threads can wait on the same file
  3200. descriptor. The behaviour is compatible with OS select: All
  3201. threads waiting for the fd return with the same status.
  3202. 1998-01-23 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3203. * coop-threads.c, threads.h (scm_spawn_thread): New function.
  3204. Can spawn a thread from application C code.
  3205. 1998-01-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3206. * gh.h, gh_data.c (gh_doubles2scm, gh_doubles2dvect,
  3207. gh_doubles2scm): New functions.
  3208. 1998-01-15 Mark Galassi <rosalia@nis.lanl.gov>
  3209. * gh_eval.c (gh_eval_str): cleanup -- threw out the old
  3210. commented-out version of gh_eval_str()
  3211. Sun Jan 4 02:23:36 1998 Gary Houston <ghouston@actrix.gen.nz>
  3212. * socket.c (scm_bind): free soka after use.
  3213. Sat Jan 3 20:55:07 1998 Gary Houston <ghouston@actrix.gen.nz>
  3214. * stime.c (tzvar): new variable.
  3215. (setzone, restorezone, scm_localtime, scm_mktime, scm_strftime):
  3216. avoid memory leaks when allocating.
  3217. 1998-01-03 Jim Blandy <jimb@totoro.red-bean.com>
  3218. * iselect.h: Some systems require <sys/types.h> to get the FD_SET
  3219. macro definitions.
  3220. * gc.c, tags.h: Doc fixes.
  3221. 1998-01-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3222. * eval.c (macro-eval!): Removed. This function was a design bug.
  3223. It allowed memoized code to leak out to the scheme level. Most
  3224. things that you could do with `macro-eval!' can be done with
  3225. `local-eval'.
  3226. 1997-12-20 Tim Pierce <twp@skepsis.com>
  3227. * fports.c (scm_pipob): Use scm_generic_fgets for line i/o, since
  3228. scm_fgets now depends on ftell(3) to know how many bytes were
  3229. read. Sigh.
  3230. 1997-12-15 Tim Pierce <twp@skepsis.com>
  3231. * gh_data.c (gh_scm2newstr, gh_get_substr): Use RO macros for
  3232. dealing with strings.
  3233. 1997-12-13 Tim Pierce <twp@skepsis.com>
  3234. Make %read-line more suitable for implementing read-line efficiently.
  3235. * ioext.c (scm_read_line): Strip the terminating newline from a
  3236. string, and return a cons of the string and its terminator.
  3237. * fports.c, fports.h (scm_fgets): Add `len' argument. The length
  3238. of the string that is read is stored in this memory location.
  3239. * ports.c, ports.h (scm_generic_fgets, fgets_void_port): Same.
  3240. * genio.c, genio.h (scm_do_read_line): Update caller.
  3241. * ports.h (scm_ptobfuns): Update typedef.
  3242. * fports.c (scm_fptob, scm_pipob): Update struct.
  3243. 1997-12-08 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3244. * filesys.c (set_element): Return file descriptor.
  3245. (fill_select_type): Return the highest file descriptor.
  3246. (scm_select): Tell select about the highest file descriptor. On
  3247. some systems the SELECT_SET_SIZE can be as much as 128 bytes.
  3248. Therefore the extra overhead for calculating the maximum fd seems
  3249. to be more than compensated. Is this correct? In any case,
  3250. scm_internal_select will be much faster with this info.
  3251. (scm_select, fill_select_type, set_element): Don't accept any kind
  3252. of object in the file descriptor list or vector.
  3253. 1997-12-07 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3254. * iselect.c (finalize_fd_sets): Bugfix.
  3255. 1997-12-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3256. * filesys.c (scm_select): Don't use SCM_DEFER_INTS/SCM_ALLOW_INTS
  3257. when using scm_internal_select (since we might switch to another
  3258. thread).
  3259. Sun Dec 7 01:43:56 1997 Gary Houston <ghouston@actrix.gen.nz>
  3260. * simpos.c (scm_system): always define: use sysmissing if not
  3261. available. Check for HAVE_SYSTEM instead of _Windows (does
  3262. Windows lack system or does it have an unusable one?).
  3263. Check for error conditions -1 and 127. Use SCM_DEFER_INTS.
  3264. Let the argument be optional: if not supplied, call system(NULL).
  3265. * ports.c (scm_close_port): relax the type check from OPPORTP to
  3266. PORTP; closing a closed port is allowed.
  3267. 1997-12-04 Tim Pierce <twp@ppp39.Nantucket.net>
  3268. * fports.c (scm_fgets): Return if the last char in a chunk is
  3269. newline. When fgets returns a string whose length is `size-1', it
  3270. is ambiguous whether a whole line was retrieved, so we must check
  3271. explicitly whether a line terminator is present.
  3272. 1997-12-04 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3273. * print.h (SCM_COERCE_OUTPORT): Check that the object is a pair
  3274. before taking the CDR. (Thanks to Harald Meland.)
  3275. * filesys.c (scm_stat): Slightly optimized.
  3276. Wed Dec 3 12:23:06 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3277. * ports.c (scm_close_port): Make sure the port is open before
  3278. trying to close it.
  3279. * guile-snarf.in: Pass args through to gcc in a way that preserves
  3280. whitespace boundaries. (Thanks to Greg Badros.)
  3281. 1997-12-02 Tim Pierce <twp@skepsis.com>
  3282. * stacks.c (scm_frame_procedure): Reverse the logic in the return
  3283. statement. (Thanks to Doug Evans for pointing this out.)
  3284. 1997-12-01 Tim Pierce <twp@skepsis.com>
  3285. * scmconfig.h.in: Regenerated for USCORE change in ../acconfig.h.
  3286. Sun Nov 30 11:29:18 1997 Mikael Djurfeldt <mdj@kenneth>
  3287. * coop-defs.h (struct coop_t): Renamed errno --> _errno to prevent
  3288. errno macro expansion of this field name. (errno is a C
  3289. preprocessor macro on some systems.)
  3290. 1997-11-29 Tim Pierce <twp@skepsis.com>
  3291. * iselect.c: Doc fix.
  3292. Sat Nov 29 01:16:53 1997 Mikael Djurfeldt <mdj@kenneth>
  3293. * init.c (scm_start_stack): Removed initialization of
  3294. scm_the_last_stack_var.
  3295. * backtrace.h: Declare scm_the_last_stack_var.
  3296. * backtrace.c: Define scm_the_last_stack_var.
  3297. * root.c (mark_root): Don't mark the_last_stack_var.
  3298. * root.h (scm_root_state): Removed the_last_stack_var.
  3299. * throw.c: Added #include "fluids.h"
  3300. (ss_handler): `the-last-stack' is now a fluid.
  3301. * (backtrace.h, backtrace.c, throw.c): Renamed the_last_stack_var
  3302. --> the_last_stack_fluid.
  3303. * backtrace.c: Added #include "fluids.h"
  3304. (scm_init_backtrace): Initialize `the-last-stack' to a fluid.
  3305. (scm_backtrace): `the-last-stack' is now a fluid.
  3306. * init.c (scm_boot_guile_1): Moved call to scm_init_backtrace
  3307. after scm_init_fluids.
  3308. 1997-11-28 Tim Pierce <twp@skepsis.com>
  3309. * iselect.c: #ifdef USE_THREADS around thread-related includes.
  3310. * dynl-dl.c (sysdep_dynl_func): Check both USCORE and
  3311. DLSYM_ADDS_USCORE to decide whether to add an underscore.
  3312. 1997-11-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3313. * iselect.c (coop_next_runnable_thread,
  3314. coop_wait_for_runnable_thread): Disable interrupts so that no
  3315. async is executed before a potential error_revive.
  3316. (scm_internal_select): Disable interrupts during the parts of the
  3317. code which manipulate the sleep queue and the file descriptors.
  3318. 1997-11-27 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3319. * Makefile.am: Added iselect.c and iselect.h.
  3320. * coop.c (coop_qinit): Initialize fields used by
  3321. scm_internal_select.
  3322. (coop_qget, coop_qget, coop_tmp_queue): Made global.
  3323. (coop_next_runnable_thread): If GUILE_ISELECT enabled, use
  3324. replacement in iselect.c.
  3325. (coop_mutex_lock, coop_condition_variable_wait, coop_abort,
  3326. coop_join): If GUILE_ISELECT enabled, use
  3327. coop_wait_for_runnable_thread instead of
  3328. coop_next_runnable_thread.
  3329. (usleep, sleep): New replacements for system functions if
  3330. GUILE_ISELECT is enabled.
  3331. * coop-threads.h: Declare coop_wait_for_runnable_thread.
  3332. * coop-defs.h (coop_t): Added fields used by scm_internal_select.
  3333. * filesys.c: Added #include "iselect.h". Moved FD-macros to
  3334. iselect.h. Implement Scheme level `select' using
  3335. scm_internal_select. (See NEWS.)
  3336. * genio.c (scm_getc): Block with scm_internal_select. (See NEWS.)
  3337. * init.c: Call scm_init_iselect.
  3338. * iselect.h, iselect.c: New files. Implements
  3339. scm_internal_select. (See NEWS.)
  3340. 1997-11-27 Tim Pierce <twp@skepsis.com>
  3341. Fix a memory leak in scm_read_line and a type cast bug in the ptob.
  3342. * fports.c (scm_fgets): Use malloc/free rather than scm_must_malloc
  3343. and scm_must_free, since ultimately the string returned will be copied
  3344. by scm_makfrom0str anyway. Also, read any characters that may have
  3345. been pushed onto the port with scm_ungetc.
  3346. * ports.c (scm_generic_fgets): Same as for scm_fgets.
  3347. * ioext.c (scm_read_line): Free string after Guilifying it.
  3348. * ports.h (scm_ptobfuns): fgets method returns a char *, not a char.
  3349. 1997-11-26 Anthony Green <green@hoser.cygnus.com>
  3350. * gh_data.c (gh_set_substr): Strings can be longer than 256 bytes.
  3351. * gh.h: Safely wrap prototypes for c++ usage.
  3352. 1997-11-25 Mark Galassi <rosalia@cygnus.com>
  3353. * gh_test_repl.c (main_prog): changed invocation of gh_repl() to
  3354. gh_repl (argc, argv).
  3355. 1997-11-24 Mark Galassi <rosalia@nis.lanl.gov>
  3356. * gh_init.c (gh_repl): modified gh_repl() to accept argc and argv
  3357. and to invoke scm_shell().
  3358. (gh_launch_pad): took out the loading of boot-9.scm from here,
  3359. since it is probably best to let the user control that. In fact,
  3360. gh_repl() now invokes scm_shell() which does that.
  3361. 1997-11-23 Mark Galassi <rosalia@cygnus.com>
  3362. * gh_test_repl.c (main_prog): added argc and argv to the gh_repl()
  3363. invocation.
  3364. 1997-11-22 Tim Pierce <twp@twp.tezcat.com>
  3365. * dynl-dl.c (sysdep_dynl_func): Fix memory leak created by
  3366. yesterday's underscore patch. (Thanks to Marius Vollmer for
  3367. spotting this.)
  3368. 1997-11-21 Tim Pierce <twp@twp.tezcat.com>
  3369. * dynl-dl.c (sysdep_dynl_func): Prepend symb with underscore if
  3370. DLSYM_ADDS_USCORE is not defined.
  3371. 1997-11-17 Mark Galassi <rosalia@nis.lanl.gov>
  3372. * gh_data.c (gh_uniform_vector_length):
  3373. (gh_uniform_vector_ref): started implementing the uniform types in
  3374. the gh_ interface.
  3375. 1997-11-06 Mikael Djurfeldt <mdj@nada.kth.se>
  3376. * regex-posix.c (scm_free_regex_t): Return size of regex_t instead
  3377. of 0; size_t --> scm_size_t. Thanks to Bernard Urban.
  3378. 1997-10-26 Mikael Djurfeldt <mdj@nada.kth.se>
  3379. * scmconfig.h.in: Updated (HAVE_LIBTERMCAP was added when
  3380. configure.in was changed).
  3381. Sun Oct 26 02:20:11 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3382. * Makefile.am (modinclude_HEADERS): Include readline.h here.
  3383. * Makefile.in: Regenerated.
  3384. 1997-10-25 Marius Vollmer <mvo@zagadka.ping.de>
  3385. * print.h (SCM_COERCE_OPORT): Renamed to SCM_COERCE_OUTPORT. An
  3386. OPORT is an `open' port, not an output port.
  3387. * filesys.c (scm_close, set_element, get_element, scm_chown,
  3388. scm_chmod, scm_stat, scm_truncate_file, scm_fcntl, scm_fsync): Use
  3389. SCM_COERCE_OUTPORT to cope with the printstate/port magic.
  3390. * ports.c (scm_port_revealed, scm_set_port_revealed_x,
  3391. scm_close_port, scm_port_line, scm_set_port_line_x,
  3392. scm_port_column, scm_set_port_column_x, scm_port_filename,
  3393. scm_set_port_filename_x, scm_port_mode,
  3394. scm_close_all_ports_except, scm_set_current_output_port,
  3395. scm_set_current_error_port): Likewise
  3396. * ioext.c (scm_redirect_port, scm_dup_to_fdes, scm_freopen,
  3397. scm_ftell, scm_fileno, scm_isatty_p, scm_primitive_move_to_fdes):
  3398. Likewise
  3399. * posix.c (scm_ttyname, scm_tcgetpgrp, scm_tcsetpgrp): Likewise
  3400. * backtrace.c (display_backtrace_body): Likewise
  3401. * fports (scm_setvbuf): Likewise
  3402. * socket.c (scm_getsockopt, scm_setsockopt, scm_shutdown,
  3403. scm_connect, scm_bind, scm_listen, scm_accept, scm_getsockname,
  3404. scm_getpeername, scm_send, scm_sendto): Likewise
  3405. * unif.c (scm_uniform_array_write): Likewise
  3406. Sat Oct 25 02:52:58 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3407. Minor problems with substring-related tag changes.
  3408. * symbols.h (SCM_SUBSTRP): Don't mask off the S bit; that's
  3409. exactly what we want to leave in to detect substrings.
  3410. (SCM_ROSTRINGP, ROUCHARS): Formatting tweaks.
  3411. * tags.h: Fix diagrams and comments describing the S tag bit;
  3412. remove vestigial remarks about the D tag bit.
  3413. (SCM_TYP7, SCM_TYP7S): Rephrased for readability.
  3414. * strings.c: Formatting tweaks.
  3415. * load.c (scm_init_load_path): Check GUILE_LOAD_PATH environment
  3416. variable first; then SCHEME_LOAD_PATH, with a warning message.
  3417. (scm_parse_path): New function.
  3418. * script.c: Doc fixes.
  3419. Thu Oct 23 01:02:03 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3420. Readline support, from Daniel Risacher.
  3421. * readline.c, readline.h: New files.
  3422. * init.c: #include "readline.h".
  3423. (scm_boot_guile_1): Call scm_init_readline, if we have it.
  3424. * Makefile.am (libguile_la_SOURCES): Include readline.c.
  3425. * Makefile.in: Regenerated.
  3426. * scmconfig.h.in: Regenerated, after change to ../configure.
  3427. 1997-10-20 Mark Galassi <rosalia@nis.lanl.gov>
  3428. * gh.h: gh_vector_set -> gh_vector_set_x
  3429. 1997-10-20 Mark Galassi <rosalia@nis.lanl.gov>
  3430. * gh_data.c (gh_vector_set_x): changed name to make it consistent
  3431. with the ! -> _x mapping when going from Scheme to C.
  3432. 1997-10-19 Mark Galassi <rosalia@cygnus.com>
  3433. * gh.h (gh_reverse):
  3434. (gh_list_tail):
  3435. (gh_list_ref):
  3436. (gh_memq):
  3437. (gh_memv):
  3438. (gh_member):
  3439. (gh_assq):
  3440. (gh_assv):
  3441. (gh_assoc): added these gh_ functions implemented as macros.
  3442. * gh_predicates.c (gh_null_p):
  3443. (gh_string_equal_p): added these two missing predicates.
  3444. * gh_list.c (gh_append):
  3445. (gh_append2):
  3446. (gh_append3):
  3447. (gh_append4):
  3448. (gh_set_car_x):
  3449. (gh_set_cdr_x): added these routines as I go through and try to
  3450. complete the picture R4RS functions that should be mirrored in the
  3451. gh_ interface.
  3452. Sat Oct 18 01:52:51 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3453. * tags.h (scm_tc7_substring): Changed the comment and code to
  3454. conform with the changes below. Folks! We have suddenly two new
  3455. free tc7 codes!!! Jummy, jummy!
  3456. Tue Oct 14 22:03:06 1997 Tom Tromey <tromey@cygnus.com>
  3457. * Makefile.in: Rebuilt.
  3458. * Makefile.am (libguile_la_SOURCES): Removed extchrs.c,
  3459. mbstrings.c.
  3460. (modinclude_HEADERS): Removed extchrs.h, mbstrings.h.
  3461. * unif.c (scm_vector_set_length_x): Don't handle multibyte
  3462. strings.
  3463. * tag.c (scm_utag_mb_string, scm_utag_mb_substring): Removed.
  3464. (scm_tag): Don't handle multibyte strings.
  3465. * read.c: Don't include mbstrings.h.
  3466. (scm_lreadr): Don't handle multibyte ports.
  3467. * kw.c: Don't include mbstrings.h.
  3468. * init.c: Don't include mbstrings.h.
  3469. (scm_boot_guile_1): Don't init mbstrings module.
  3470. * hash.c (scm_hasher): Don't handle mbstrings.
  3471. * gscm.c (gscm_run_scm): Don't init mbstrings module.
  3472. * gc.c (scm_gc_mark): Don't handle mbstrings.
  3473. (scm_gc_sweep): Likewise.
  3474. * eval.c (SCM_CEVAL): Don't handle mbstrings.
  3475. * eq.c (scm_equal_p): Use SCM_TYP7S, not SCM_TYP7SD.
  3476. * tags.h (SCM_TYP7SD): Removed.
  3477. (SCM_TYP7D): Removed.
  3478. (scm_tc7_mb_string): Removed.
  3479. (scm_tc7_mb_substring): Removed.
  3480. * print.c (scm_iprin1): Handle char printing directly. Don't
  3481. handle mbstrings.
  3482. Don't include "mbstrings.h".
  3483. * symbols.c (scm_intern_obarray_soft, scm_string_to_symbol,
  3484. scm_string_to_obarray_symbol, msymbolize): Don't set symbol's
  3485. multi-byte flag.
  3486. Don't include "mbstrings.h".
  3487. * symbols.h (SCM_SYMBOL_MULTI_BYTE_STRINGP): Removed.
  3488. (SCM_SYMBOL_SLOTS): Define as 4.
  3489. (SCM_ROSTRINGP): Use SCM_TYP7S, not SCM_TYP7SD.
  3490. * arbiters.c, backtrace.c, debug.c, dynl.c, eval.c, fluids.c,
  3491. gc.c, gsubr.c, ioext.c, kw.c, mallocs.c, numbers.c, ports.c,
  3492. print.c, read.c, regex-posix.c, root.c, srcprop.c, stackchk.c,
  3493. struct.c, threads.c, throw.c, unif.c, variable.c: Use new
  3494. ("gen"-less) I/O function names.
  3495. * ports.c (scm_add_to_port_table): Don't set port's
  3496. representation.
  3497. * ports.h (scm_port_representation_type): Removed.
  3498. (scm_string_representation_type): Removed.
  3499. (struct scm_port_table ): Removed representation field.
  3500. (SCM_PORT_REPRESENTATION): Removed.
  3501. (SCM_SET_PORT_REPRESENTATION): Removed.
  3502. * genio.h: Use new function names.
  3503. * genio.c: Don't include "extchrs.h".
  3504. (scm_gen_putc, scm_gen_puts, scm_gen_write, scm_get_getc):
  3505. Removed.
  3506. (scm_putc, scm_puts, scm_lfwrite): No longer static.
  3507. (scm_getc): No longer static; handle line and column changes.
  3508. (scm_ungetc): Renamed from scm_gen_ungetc.
  3509. (scm_do_read_line): Renamed from scm_gen_read_line.
  3510. * libguile.h: Don't include "extchrs.h" or "mbstrings.h"
  3511. * extchrs.h, extchrs.c, mbstrings.h, mbstrings.c: Removed.
  3512. 1997-10-12 Mark Galassi <rosalia@cygnus.com>
  3513. * gh_test_repl.c (c_vector_test): same as gh_test_c.c
  3514. * gh_test_c.c (c_vector_test): some improvements on the vector
  3515. routines test.
  3516. * gh.h (gh_vector): this used to exist but do the wrong thing.
  3517. Now it (almost) does the right thing, though it takes a list
  3518. instead of the individual arguments. I need to see how it could
  3519. be done right.
  3520. (gh_list_to_vector): added this function as a macro. Corresponds
  3521. to Scheme's (list->vector ...).
  3522. (gh_vector_to_list): added this function as a macro. Corresponds
  3523. to Scheme's (vector->list ...).
  3524. * gh_data.c (gh_vector_ref): renamed from gh_vref to
  3525. gh_vector_ref, so that it resembles the Scheme routines more.
  3526. (gh_vector_set): renamed from gh_vset to gh_vector_set, so that it
  3527. resembles the Scheme routines more.
  3528. (gh_make_vector): this used to be (stupidly) called gh_vector().
  3529. This is the right name, since it does the same thing as the Scheme
  3530. (make-vector ...) procedure.
  3531. Sun Oct 12 14:41:39 1997 Mikael Djurfeldt <mdj@kenneth>
  3532. * ports.h: #include "libguile/print.h"
  3533. * eval.c (SCM_CEVAL, scm_apply): Completed GOOPS support code;
  3534. Some indentation fixes.
  3535. * objects.h (SCM_METACLASS_STANDARD_LAYOUT): Printer field is no
  3536. longer a user field; New field: class_flags.
  3537. * objets.c, objects.h: New metaclass: scm_metaclass_operator.
  3538. Tue Oct 7 09:37:24 1997 Mark Galassi <rosalia@cygnus.com>
  3539. * gh_data.c (gh_bool2scm): new function which replaces
  3540. gh_int2scmb(), which is now tagged as obsolete.
  3541. 1997-10-03 Mikael Djurfeldt <mdj@nada.kth.se>
  3542. * print.h (SCM_PRINT_STATE_P): Removed SCM_NIMP test. (NIMP
  3543. macros should by convention not test for NIMPness.)
  3544. (SCM_COERCE_OPORT): Adjust indentation.
  3545. * print.c (scm_valid_oport_value_p): Adjusted indentation; Added
  3546. SCM_NIMP test before SCM_PRINT_STATE_P.
  3547. * struct.c, struct.h, gc.c: Renamed:
  3548. scm_struct_i_layout --> scm_vtable_index_layout
  3549. scm_struct_i_vcell --> scm_vtable_index_vcell
  3550. scm_struct_i_vtable --> scm_vtable_index_vtable
  3551. scm_struct_i_printer --> scm_vtable_index_printer
  3552. scm_struct_i_vtable_offset --> scm_vtable_offset_user
  3553. * struct.c (scm_print_struct): Use new printer slot; Default
  3554. printing: Also output hex code of vtable so that type identity
  3555. will be indicated as well.
  3556. (scm_init_struct): Updated required_vtable_fields to "pruosrpw";
  3557. Removed struct_printer_var; Removed struct-vtable-offset;
  3558. (vtable-index-layout, vtable-index-vtable, vtable-index-printer,
  3559. vtable-offset-user): New constants.
  3560. * struct.h (scm_struct_i_vtable_offset): Bumped from 3 to 4.
  3561. (scm_struct_i_printer, SCM_STRUCT_PRINTER): New slot in vtables.
  3562. If this slot contains a procedure, use that to print structures of
  3563. the type represented by this vtable.
  3564. * print.c (scm_iprin1): Don't print arguments of macro
  3565. transformers. (They are always: exp env.); Bugfix: Unmemoize
  3566. transformer source with correct environment.
  3567. 1997-10-02 Marius Vollmer <mvo@zagadka.ping.de>
  3568. Streamlining of call-with-dynamic-root:
  3569. * root.c (cwdr_inner_body, cwdr_body): Remove "inner" from name,
  3570. there is now only one catch.
  3571. (cwdr_outer_body): Removed.
  3572. (cwdr_handler): New function.
  3573. (scm_internal_cwdr): New function to perform the function of cwdr
  3574. but take args that are more useful to C code. Also, the handler
  3575. is now invoked *outside* of the new dynamic root, like the docs
  3576. say. We no longer have to catch absolutely all errors, the caller
  3577. is responsible for using a handler that does not throw, if he
  3578. wants that.
  3579. (cwdr): Reimplemented in terms of scm_internal_cwdr.
  3580. * root.h (scm_internal_cwdr): New prototype.
  3581. Even more but risky streamlining:
  3582. * root.c (USE_STACKJMPBUF): New define to activate a stack-based
  3583. allocation of the jumpbuf of a root continuation. The changes
  3584. below are controlled by it. They are now deactivated.
  3585. (scm_internal_cwdr): Allocate the scm_contregs on the stack. Set
  3586. the JMPBUF of the scm_rootcont to NULL before returning.
  3587. * gc.c (scm_gc_sweep): Free the SCM_VELTS of a scm_tc7_contin only
  3588. when they are non-NULL.
  3589. (scm_gc_mark): Likewise, mark only when non-NULL.
  3590. Make dynamic linking work on Dec Unix. (Thanks to Clark McGrew)
  3591. * dynl.c: Include "dynl-dl.c" also when HAVE_DLOPEN is defined.
  3592. * gc.c (scm_done_malloc): New function.
  3593. gc.h (scm_done_malloc): New prototype.
  3594. * print.h (SCM_PRINT_STATE_P, SCM_COERCE_OPORT): New macros.
  3595. (struct scm_print_state) [revealed]: New field.
  3596. (scm_print_state_vtable): Make visible to the outside world for
  3597. type checking purposes.
  3598. (scm_valid_oport_value_p): New prototype.
  3599. * print.c (scm_valid_oport_value_p): New function to check whether
  3600. a certain value is acceptable as a port argument.
  3601. (scm_print_state_vtable): New variable.
  3602. (scm_free_print_state): Set `revealed' field to false.
  3603. (scm_iprin1): Call user supplied closure printer with
  3604. scm_printer_apply. Print in the traditional way when there isn't
  3605. one or when it returns #f.
  3606. (scm_prin1, scm_display, scm_write, scm_newline, scm_write_char):
  3607. Accept a port/print-state pair in addition to just a port.
  3608. (scm_prin1): Don't return the print_state to the pool when it has
  3609. been `revealed'.
  3610. (scm_printer_apply): Set `revealed' field of print_state to true.
  3611. (scm_init_print): Set scm_print_state_vtable.
  3612. (print_state_fluid, print_state_fluid_num): Removed.
  3613. * throw.h (scm_handle_by_proc_catching_all): New prototype
  3614. throw.c (scm_handle_by_proc_catching_all): New function
  3615. Mon Sep 29 23:54:09 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3616. * Makefile.in: Regenerated with automake 1.2c.
  3617. Sun Sep 28 21:35:42 1997 Radey Shouman <shouman@zianet.com>
  3618. * ramap.c (scm_array_index_map_x): Fixed for zero-rank arguments,
  3619. was looping endlessly.
  3620. Sun Sep 28 00:04:29 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3621. * strports.c (scm_eval_string): Don't close the port.
  3622. * stime.c (bdtime2c): Use SCM_LENGTH, not scm_vector_length; the
  3623. former returns a nice normal integer. (Thanks to Daniel
  3624. Risacher.)
  3625. Sat Sep 27 20:19:34 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3626. * Makefile.am (libpath.h): Include the value of the THREAD_LIBS
  3627. makefile variable as a build parameter called LIBS. The
  3628. build-guile program will use this, for the time being.
  3629. * Makefile.in: Regenerated.
  3630. Thanks to Shiro Kawai:
  3631. * gc.c (scm_gc_mark): Pass NULL to scm_wta as the subroutine name.
  3632. * ports.h (scm_ptobfuns): The fgets method returns a char *, not
  3633. an SCM.
  3634. * Makefile.in: Regenerated with automake 1.2a.
  3635. * script.c (scm_compile_shell_switches): If we hit the -c or --
  3636. arguments, don't set the car of (command-line) to scm_usage_name,
  3637. the prettified name of the guile executable; give it the full
  3638. path, the way shells usually handle $0.
  3639. Wed Sep 24 22:09:52 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3640. * ramap.c (scm_array_map): Renamed to scm_array_map_x. Removed
  3641. Scheme-level name `array-map' and renamed `serial-array-map' to
  3642. `serial-array-map!'.
  3643. * backtrace.c: Introduced exception handlers which now enclose
  3644. `display-error' and `display-backtrace' so that error reporting
  3645. won't get into infinite loops if an error occurs during displaying
  3646. of the error. This can very easily happen with user supplied
  3647. print call-back routines.
  3648. Tue Sep 23 12:43:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3649. * ramap.c: Added alias `array-map!' for `array-map'. (Probably,
  3650. the names `serial-array-map' and `array-map' should be removed.)
  3651. Mon Sep 22 01:21:54 1997 Mikael Djurfeldt <mdj@kenneth>
  3652. * init.c (scm_boot_guile_1): Added scm_init_objects ().
  3653. Added #include "objects.h"
  3654. * eval.c (scm_makprom): Added SCM_DEFER_INTS and SCM_ALLOW_INTS.
  3655. Add #include "feature.h".
  3656. * Makefile.am (libguile_la_SOURCES): Added objects.c.
  3657. (modinclude_HEADERS): Added objects.h.
  3658. * ports.h (SCM_EOF_OBJECT_P): New macro predicate.
  3659. This test is needed at many places in the code and should be
  3660. abstracted. (Motivated by the need of this test in libguiletk.)
  3661. * ports.c (scm_eof_object_p), vports.c (sfgetc), strports.c
  3662. (scm_eval_string), load.c (scm_primitive_load,
  3663. scm_read_and_eval_x), gh_eval.c (gh_eval_str):
  3664. Use SCM_EOF_OBJECT_P.
  3665. * eval.c (scm_init_eval): Add feature `delay'.
  3666. Tue Sep 16 02:12:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3667. * scmhob.h: Removed.
  3668. Mon Sep 15 20:42:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3669. * list.h (SCM_LISTn): New macros. Make list creation in C code
  3670. prettier. The idea comes from STk.
  3671. * sequences.h, sequences.c, append.h, append.c: Removed. These
  3672. files implemented non-R4RS operations which would encourage
  3673. non-portable programming style and less easy-to-read code.
  3674. * Makefile.am (sequences.h, sequences.c, append.h, append.c):
  3675. Removed.
  3676. * libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include
  3677. sequences.h, #include append.h.
  3678. * init.c (scm_boot_guile_1): Removed calls to scm_init_append and
  3679. scm_init_sequences.
  3680. * gh.h, gh_list.c: Renamed gh_list_length --> gh_length.
  3681. * list.h, list.c: Renamed scm_list_length --> scm_length, scm
  3682. * stime.c (bdtime2c): Changed scm_obj_length --> scm_vector_length.
  3683. Sat Sep 13 00:21:41 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3684. * eval.c: Added #include "objects.h"
  3685. * tags.h (scm_tc16_object, scm_tc16_entity): Smobtags for objects
  3686. and entities.
  3687. * smob.c (scm_smob_prehistory): Create two objectsmobs with
  3688. adjacent smob numbers.
  3689. Thu Sep 11 00:59:17 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3690. * procprop.h: Added declaration of scm_i_inner_name.
  3691. * gsubr.c: New global symbol scm_i_inner_name.
  3692. * debug.c (scm_procedure_name): Try procedure property
  3693. `inner-name' if `name' fails.
  3694. * print.c (scm_iprin1): Use scm_macro_name.
  3695. * eval.c (scm_m_define): Give names to macros as well; Only the
  3696. first top-level definition gives a procedure/macro a name.
  3697. Otherwise confusing names can turn up in backtraces.
  3698. (SCM_CEVAL): SCM_IM_DEFINE: Set `inner-name' property instead of
  3699. `name'; Give names to macros as well.
  3700. * procs.c (scm_closure_p), print.c (scm_iprin1), eval.c
  3701. (scm_macro_transformer): Use SCM_CLOSUREP instead of
  3702. scm_closure_p.
  3703. Wed Sep 10 20:52:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3704. * eval.c (macro?, macro-type, macro-name, macro-transformer): New
  3705. procedures;
  3706. (prinmacro): Removed. The code has been moved/merged into print.c
  3707. in order to decrease code redundancy. We want macros to print in
  3708. a way equivalent to procedures, and it would be silly to duplicate
  3709. the required code. (We don't want to maintain two places.)
  3710. (macrosmob): Print field is now a NULL pointer.
  3711. * eval.h (scm_macro_p, scm_macro_type, scm_macro_name,
  3712. scm_macro_transformer): New prototypes.
  3713. (scm_tc16_macro): Declared.
  3714. * print.c (scm_iprin1): Added code for printing of macros. Macros
  3715. are now printed in a way equivalent to procedures.
  3716. Sat Sep 6 12:20:42 1997 Mikael Djurfeldt <mdj@kenneth>
  3717. * procs.h (scm_closure_p): Added declaration.
  3718. Fri Sep 5 13:36:14 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3719. * gc.c (scm_gc_mark): Fixed "rogue pointer in heap" message:
  3720. Shouldn't pass "heap" as the subr name.
  3721. Tue Sep 2 18:14:30 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3722. * gh_predicates.c (gh_boolean_p, gh_symbol_p, gh_char_p,
  3723. gh_vector_p, gh_pair_p, gh_number_p, gh_string_p, gh_procedure_p,
  3724. gh_list_p, gh_inexact_p, gh_exact_p, gh_eq_p, gh_eqv_p,
  3725. gh_equal_p): Use SCM_NFALSEP, instead of testing against
  3726. SCM_BOOL_T. Any non-false value is true.
  3727. Tue Sep 2 00:27:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3728. * symbols.h (scm_builtin_bindings, scm_builtin_weak_bindings,
  3729. scm_gensym): Added prototypes.
  3730. * symbols.c (scm_gensym): New function. This will speed up
  3731. certain types of applications (such as macro systems) which
  3732. generate lots of symbols.
  3733. Mon Sep 1 22:30:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3734. * numbers.c (logand, logior, logxor): Handle 0 or 1 arguments.
  3735. Sat Aug 30 18:56:19 1997 Gary Houston <ghouston@actrix.gen.nz>
  3736. * unif.c (scm_shap2ra): tighten the checking of the array dimension
  3737. specifier, since (2) or (2 . 3) would cause SEGV.
  3738. (scm_transpose_array): more argument checking fixes.
  3739. Thu Aug 28 23:48:53 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3740. * Makefile.in: Regenerated.
  3741. Wed Aug 27 17:44:44 1997 Jim Blandy <jimb@totoro.red-bean.com>
  3742. * Makefile.in: Regenerated, so it uses "tar", not "gtar".
  3743. Mon Aug 25 13:47:25 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3744. * error.c, error.h (scm_error_callback): Removed (see NEWS).
  3745. Sun Aug 24 01:25:35 1997 Mikael Djurfeldt <mdj@kenneth>
  3746. * regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
  3747. <rx/rxposix.h>. (This is in order to accomodate for the GNU Rx
  3748. library.)
  3749. * ramap.c (scm_ra_matchp, scm_array_fill_int, racp, ramap_1,
  3750. ramap_2o, scm_array_index_map_x, raeql_1, scm_array_equal_p),
  3751. unif.c (scm_vector_set_length_x, scm_uniform_vector_length,
  3752. scm_array_p, scm_array_rank, scm_array_dimensions,
  3753. scm_enclose_array, scm_array_in_bounds_p, scm_uniform_vector_ref,
  3754. scm_cvref, scm_array_set_x, scm_array_contents, scm_array_to_list,
  3755. scm_array_prototype): Added case scm_tc7_wvect.
  3756. Sat Aug 23 18:45:44 1997 Gary Houston <ghouston@actrix.gen.nz>
  3757. * errno.h: prototype for scm_strerror.
  3758. * error.c (scm_strerror): new procedure.
  3759. Mon Aug 18 14:58:22 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3760. * list.c (scm_list_append_x): Allow non-pair as last argument.
  3761. This is consistent with the R4RS append and is probably the
  3762. correct behaviour as specified by R2RS. (Thanks to Radey Shouman)
  3763. Sat Aug 16 18:42:15 1997 Gary Houston <ghouston@actrix.gen.nz>
  3764. * stime.h: prototype for scm_times.
  3765. * stime.c (scm_times): new procedure.
  3766. * ioext.c (scm_fseek): if the first argument is a file descriptor
  3767. call lseek.
  3768. (scm_ftell): if the first argument is a file descriptor call lseek
  3769. (sic).
  3770. * filesys.h: prototypes for scm_open_fdes, scm_fsync.
  3771. * filesys.c (scm_chmod): if the first argument is a file descriptor,
  3772. call fchmod.
  3773. (scm_chown): if the first argument is a port or file descriptor,
  3774. call fchown.
  3775. (scm_truncate_file): new procedure.
  3776. Add DEFER/ALLOW INTS to a few other procedures.
  3777. (scm_fsync): new procedure.
  3778. (scm_open_fdes): new procedure.
  3779. (scm_open): use scm_open_fdes. If mode isn't specified, 666 will
  3780. now be used.
  3781. (scm_fcntl): the first argument can now be a file descriptor. The
  3782. third argument is now optional.
  3783. * posix.c (scm_execl, scm_execlp): make the filename argument
  3784. compulsory, since omitting it causes SEGV.
  3785. (scm_sync): return unspecified instead of #f.
  3786. (scm_execle): new procedure.
  3787. (environ_list_to_c): new procedure.
  3788. (scm_environ): use environ_list_to_c. disable interrupts.
  3789. (scm_convert_exec_args): take pos and subr arguments and
  3790. improve error checking.
  3791. 1997-08-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3792. * stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
  3793. (scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
  3794. argument to SCM_ASSERT. Furthermore, the name of the function
  3795. should be passed as first argument when signalling
  3796. SCM_WNA. (Thanks to Thomas Morgan)
  3797. * gsubr.c (scm_gsubr_apply): From Radey Shouman
  3798. <shouman@zianet.com>: "The switch in scm_gsubr_apply that
  3799. dispatches on the number of actual args has a default case
  3800. reporting an internal error. This is a vestige from a version
  3801. that mallocated a SCM vector to hold the arguments. In the
  3802. current version this check is too late: if it ever happens we will
  3803. have already overstepped the bounds of the array.
  3804. Also, the patch [...] adds a check for too many actual arguments."
  3805. mdj: Removed check for "internal programming error".
  3806. Wed Aug 13 15:38:44 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3807. * gh_io.c (gh_write): New function.
  3808. * gh_eval.c (catch_with_saved_stack): Removed. Replaced by:
  3809. throw.c (scm_internal_stack_catch): New sibling to the other catch
  3810. functions. Code moved from gh_eval.c.
  3811. throw.h: Added header.
  3812. gh_eval.c (gh_eval_str_with_stack_saving_handler): Renamed call to
  3813. scm_internal_stack_catch.
  3814. Tue Jul 29 01:03:08 1997 Gary Houston <ghouston@actrix.gen.nz>
  3815. * ioext.h: fix up prototypes.
  3816. * ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
  3817. Scheme name is now dup->fdes.
  3818. (scm_dup_to_fdes): make the second argument optional and
  3819. fold in the functionality of scm_primitive_dup.
  3820. (scm_primitive_dup): deleted.
  3821. Mon Jul 28 05:24:42 1997 Gary Houston <ghouston@actrix.gen.nz>
  3822. * fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
  3823. * fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
  3824. ultrix are defined. Use setvbuf instead of setbuf.
  3825. (scm_setvbuf): new procedure.
  3826. (scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
  3827. (scm_setfileno): moved from ioext.c.
  3828. (scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
  3829. (top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.
  3830. Sun Jul 27 10:54:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3831. * fluids.c (scm_fluid_p): New function.
  3832. * fluids.h (scm_fluid_p): New prototype.
  3833. Sat Jul 26 21:33:37 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3834. * print.c (scm_iprin1): Enter printed structures into the print
  3835. state as nested data while they are printed.
  3836. (print_state_fluid, print_state_fluid_num): New variables.
  3837. (scm_init_print): Initialize them.
  3838. (scm_iprin): If print_state_fluid carries a print_state, use that
  3839. instead of creating a new one.
  3840. (scm_printer_apply, apply_stub, struct apply_data): New
  3841. definitions to help with calling printer functions written in
  3842. Scheme.
  3843. * print.h (scm_printer_apply): New prototype.
  3844. * struct.c (scm_print_struct): Use scm_printer_apply to call the
  3845. user defined struct printer.
  3846. * dynwind.c (scm_dowinds): Handle fluids on the wind list.
  3847. * fluids.h (scm_internal_with_fluids, scm_with_fluids,
  3848. scm_swap_fluids, scm_swap_fluids_reverse): New prototypes.
  3849. * fluids.c (scm_internal_with_fluids, scm_with_fluids,
  3850. scm_swap_fluids, scm_swap_fluids_reverse): New functions.
  3851. Fri Jul 25 12:05:46 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3852. * fluids.c (scm_fluid_ref, scm_fluid_set_x): Fixed use of
  3853. SCM_ASSERT: arg comes before pos.
  3854. Fri Jul 25 17:00:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  3855. * eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
  3856. to a list of length zero correctly.
  3857. Wed Jul 23 16:17:46 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
  3858. Supply an `fgets' method for port objects to do fast line i/o.
  3859. * ioext.c (scm_read_line): New function.
  3860. * genio.c (scm_gen_read_line): New function.
  3861. * fports.c (scm_fgets): New function.
  3862. (scm_fptob, scm_pipob): Add scm_fgets method.
  3863. * ports.c (fgets_void_port, scm_generic_fgets): New functions.
  3864. (void_port_ptob): Add void fgets method.
  3865. (scm_newptob): Initialize fgets method from ptob struct.
  3866. * ports.h (scm_ptobfuns): Add fgets method.
  3867. * vports.c (scm_sfptob): Supply generic fgets method.
  3868. * strports.c (scm_stptob): Supply generic fgets method.
  3869. Mon Jul 21 04:03:42 1997 Gary Houston <ghouston@actrix.gen.nz>
  3870. * ioext.h: removed scm_duplicate_port prototype.
  3871. * ioext.c (scm_primitive_dup2): return the new file descriptor
  3872. instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
  3873. is convenient.
  3874. (scm_fdopen): bug fix: don't try to make port unbuffered until its
  3875. stream has been set.
  3876. (scm_duplicate_port): deleted, there's now an implementation in
  3877. boot-9.scm.
  3878. (scm_primitive_dup2): do nothing if newfd == oldfd.
  3879. Sun Jul 20 03:55:49 1997 Gary Houston <ghouston@actrix.gen.nz>
  3880. * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
  3881. argument.
  3882. * ioext.h: new prototypes.
  3883. * ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
  3884. * fluids.c (next_fluid_num): don't do
  3885. SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.
  3886. * ports.h: prototypes too.
  3887. * ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.
  3888. * fports.h: prototype too.
  3889. * fports.c (scm_evict_ports): moved from ioext.c.
  3890. Sat Jul 19 04:56:52 1997 Gary Houston <ghouston@actrix.gen.nz>
  3891. * ports.c (scm_close_port): return a boolean instead of unspecified.
  3892. throw an error if an error other than EBADF occurs.
  3893. * filesys.h: scm_close prototype.
  3894. * filesys.c (scm_close): new procedure, can close file descriptors
  3895. and ports (scsh compatible).
  3896. * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
  3897. optional argument.
  3898. Fri Jul 18 11:19:53 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3899. * fluids.c, fluid.h: New files.
  3900. * Makefile.am (libguile_la_SOURCES): Added "fluids.c".
  3901. (modinclude_HEADERS): Added "fluids.h"
  3902. * init.c: Include "fluids.h". (scm_boot_guile_1): Added call to
  3903. scm_init_fluids to initialize the fluid machine.
  3904. (scm_start_stack): Initialize the fluids of the first root with
  3905. scm_make_initial_fluids.
  3906. * root.h: Added "fluids" member to scm_root_state.
  3907. * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
  3908. (scm_make_root): Call scm_copy_fluids to make fluid bindings
  3909. unique for the new root when it has a parent.
  3910. * smob.h: Include "libguile/print.h" to make scm_print_state
  3911. visible.
  3912. * dynl.c (free_dynl_obj): New function to free the dynamic object
  3913. data. (dynl_smob): Use it.
  3914. * dynl.c (scm_dynamic_link): Moved allocating of the memory for
  3915. the dynamic object data below the linking of the object to avoid
  3916. memory leak when the linking code throws an error. Now the code
  3917. leaks a whole dynamically linked library when must_malloc throws,
  3918. but that should be much less likely.
  3919. Fri Jul 11 00:19:47 1997 Jim Blandy <jimb@floss.red-bean.com>
  3920. Changes to compile under gnu-win32, from Marcus Daniels:
  3921. * stime.c (tzset): If tzset isn't provided, make it a NOP.
  3922. (scm_localtime): Change SCM_EOF to SCM_EOL.
  3923. (scm_mktime): Likewise.
  3924. * socket.c: Don't include sys/un.h unless autoconf tells
  3925. us Unix domain sockets are available.
  3926. (scm_fill_sockaddr): Ignore Unix domain code.
  3927. (scm_addr_vector): Likewise.
  3928. (scm_init_addr_buffer): Likewise.
  3929. (scm_socketpair): Don't include unless socketpair was
  3930. found during autoconf.
  3931. * simpos.c (SYSTNAME): Treat cygwin like Unix.
  3932. * scmsigs.c (scm_pause): Don't include unless pause was found
  3933. during autoconf.
  3934. * posix.c (scm_getgroups): Don't include unless support function
  3935. was found during autoconf (in this case, getgroups).
  3936. (scm_setpwent): For setpwent.
  3937. (scm_setegid): For setegid.
  3938. * net_db.c (scm_inet_netof): Don't include unless support
  3939. function was found during autoconf (in this case, inet_netof).
  3940. (scm_lnaof): For inet_lnaof.
  3941. (scm_inet_makeaddr): For inet_makeaddr.
  3942. (scm_getnet): For getnetent, getnetbyname, getnetbyaddr.
  3943. (scm_getproto): For getprotoent.
  3944. (scm_getserv): For getservent.
  3945. (scm_sethost): For sethostent, endhostent.
  3946. (scm_setnet): For setnetent, endnetent.
  3947. (scm_setproto): For setprotoent, endprotoent.
  3948. (scm_setserv): For setservent, endservent.
  3949. * scmconfig.h.in: Regenerated.
  3950. Thu Jul 10 00:22:24 1997 Jim Blandy <jimb@floss.red-bean.com>
  3951. * stime.c (scm_localtime, scm_mktime): Pass SCM_EOL to
  3952. scm_misc_error, not SCM_EOF.
  3953. * error.c (scm_wta): Pass SCM_EOL to scm_misc_error as the list of
  3954. arguments for formatting the error message, not SCM_BOOL_F. I
  3955. think this is left over from the (eq? '() #f) days.
  3956. * read.c (recsexpr): Give this a dummy definition if
  3957. DEBUG_EXTENSIONS isn't #defined.
  3958. Fri Jul 4 23:42:17 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3959. * coop-threads.c (scm_wait_condition_variable): Lock mutex again
  3960. after waiting.
  3961. Thu Jul 3 16:31:24 1997 Marius Vollmer <mvo@zagadka.ping.de>
  3962. * root.c (cwdr_outer_body): Bugfix: Pass `c' instead of `&c' to
  3963. scm_internal_catch.
  3964. Sat Jun 28 16:14:09 1997 Tim Pierce <twp@twp.tezcat.com>
  3965. * Makefile.am (libguile_la_LIBADD): Remove @ALLOCA@, since
  3966. alloca.lo will be included in @LIBLOBJS@. Something better than
  3967. this should be possible.
  3968. * Makefile.in: Regenerated.
  3969. Sat Jun 28 03:40:15 1997 Gary Houston <ghouston@actrix.gen.nz>
  3970. * simpos.h: prototype for scm_primitive_exit.
  3971. * simpos.c (scm_primitive_exit): new procedure, terminates the
  3972. process without unwinding the stack.
  3973. Sat Jun 28 03:45:25 1997 Tim Pierce <twp@twp.tezcat.com>
  3974. * regex-posix.c (scm_make_regexp): Make `flags' a variable-length
  3975. argument and logior its components together, so the user doesn't
  3976. have to do this explicitly. Also, if regexp/basic is supplied, then
  3977. turn off REG_EXTENDED.
  3978. (scm_init_regex_posix): New regexp/basic symbol.
  3979. (REG_BASIC): #define this if it is not already present.
  3980. Fri Jun 27 20:36:35 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
  3981. * Makefile.am (libguile_la_LIBADD): Include @ALLOCA@.
  3982. (MOSTLYCLEANFILES): New target, changed from CLEANFILES.
  3983. (CLEANFILES): New target, clean versiondat.h, libpath.h.
  3984. (DISTCLEANFILES): New target, clean *.x.
  3985. * Makefile.in: Regenerated.
  3986. Tue Jun 24 00:29:07 1997 Jim Blandy <jimb@floss.red-bean.com>
  3987. * script.c (scm_compile_shell_switches): Add 1997 to copyright
  3988. years in usage message.
  3989. * Makefile.am (libguile_la_LDFLAGS): Bump library version.
  3990. * Makefile.in: Regenerated.
  3991. * regex-posix.c (scm_init_regex_posix): Delete the regexp/nosub
  3992. flag; I don't think we support it.
  3993. (scm_make_regexp): Make sure the user doesn't pass the
  3994. regexp/nosub flag.
  3995. * regex-posix.c (scm_make_regexp, scm_regexp_exec): Add optional
  3996. FLAGS arguments.
  3997. (scm_init_regex_posix): Define constants for the REG_mumble flags;
  3998. name them according to the SCSH convention: regexp/mumble.
  3999. * regex-posix.h (scm_make_regexp, scm_regexp_exec): Update prototypes.
  4000. Mon Jun 23 18:44:49 1997 Jim Blandy <jimb@floss.red-bean.com>
  4001. * Makefile.am (libpath.h): Include the values of all the standard
  4002. Makefile directory variables. Print a message, but don't print
  4003. all the commands.
  4004. (versiondat.h): Print a message, but don't print all the commands.
  4005. * load.c: #include "alist.h".
  4006. (init_build_info): New function.
  4007. (scm_init_load): Call it.
  4008. * Makefile.in: Regenerated.
  4009. Sun Jun 22 19:12:58 1997 Jim Blandy <jimb@floss.red-bean.com>
  4010. * root.c: Establish a reliable catch-all handler for the new root.
  4011. After all the Scheme handler function might signal an error too,
  4012. and we don't want to lose that.
  4013. (cwdr_inner_body): Renamed from cwdr_body.
  4014. (cwdr_outer_body): New function, to establish the user's handler,
  4015. and pass control to cwdr_inner_body.
  4016. (cwdr): Establish the reliable catch-all handler here, and pass
  4017. control to cwdr_outer_body.
  4018. (struct cwdr_body_data): New field, handler, to allow cwdr to pass
  4019. the user's handler through to cwdr_outer_body.
  4020. * throw.c (scm_handle_by_message): Move guts into....
  4021. (handler_message): New static function.
  4022. (scm_handle_by_message_noexit): New function.
  4023. * throw.h (scm_handle_by_message_noexit): New prototype.
  4024. * __scm.h: (SCM_FENCE): New macro: optimizer will not move code
  4025. across this. Only works on GCC. Otherwise, we hope for the best.
  4026. (SCM_DEFER_INTS, SCM_ALLOW_INTS): Use FENCE appropriately. I have
  4027. the feeling that real thread systems will not need this...
  4028. Sun Jun 22 15:46:35 1997 Jim Blandy <jimb@floss.red-bean.com>
  4029. Try to detect when people are using one version of libguile and a
  4030. different version of ice-9. People have been skewing things and
  4031. sending in bug reports.
  4032. * Makefile.am (versiondat.h): New file to generate.
  4033. * version.c: #include "versiondat.h", to get version info.
  4034. (scm_libguile_config_stamp): New function.
  4035. * script.c: #include "version.h".
  4036. (scm_compile_switches): Call scm_version to get version number.
  4037. * scmconfig.h.in, Makefile.in: Regenerated.
  4038. * Makefile.in: Regenerated.
  4039. * Makefile.am (ETAGS_ARGS): Catch SCM_PROC, etc. so we can find
  4040. primitive definitions under their Scheme names.
  4041. * Makefile.am (libguile_la_LDFLAGS): Update library version to
  4042. 1:2. Helps avoid confusion between installed and uninstalled libs.
  4043. * scmconfig.h.in: Regenerated. (Needed after June 3 change to
  4044. ../configure.in.)
  4045. * gdb_interface.h (GDB_INTERFACE): Remove semicolon and trailing
  4046. backslash from definition; this should be used like: GDB_INTERFACE;
  4047. Sun Jun 22 04:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
  4048. * ioext.c (scm_duplicate_port): bug fix: don't try to make the
  4049. new port unbuffered until its stream has been set.
  4050. Sat Jun 21 18:44:03 1997 Gary Houston <ghouston@actrix.gen.nz>
  4051. * ports.h: new prototype.
  4052. * ports.c (scm_flush_all_ports): new procedure, scsh compatible.
  4053. Sat Jun 21 00:25:03 1997 Jim Blandy <jimb@floss.red-bean.com>
  4054. Make things compile neatly under Sun's C compiler.
  4055. * dynl.c (scm_dynamic_func): Cast return value from sysdep_dynl_func.
  4056. * extchrs.c (xmbtowc): Make the second arg a normal char, not
  4057. unsigned, because that's what the ANSI function takes.
  4058. * extchrs.h (xmbtowc): Corresponding change to prototype.
  4059. * genio.c (scm_gen_getc): Make buf plain chars. Nobody wants
  4060. uchars here.
  4061. * mbstrings.c (scm_mb_ilength): Use ANSI arg syntax. Make DATA
  4062. argument plain char *.
  4063. * strings.c (scm_string): Use SCM_ROCHARS, since c is a plain
  4064. char.
  4065. * tag.c (scm_tag): Remove unreachable statement.
  4066. * unif.c (scm_array_to_list): If we want to shift a 1 bit to the
  4067. top of the word, it should be unsigned.
  4068. * eval.c (scm_lookupcar1): Don't declare var2 unless USE_THREADS
  4069. is defined, to avoid warnings; it's only used in the
  4070. conflict-checking code. Which might go away anyway.
  4071. (SCM_CEVAL): All goto's targeting the `dispatch' label are in
  4072. conditionals; put the label definition in an #if too, to stifle
  4073. warnings.
  4074. * Makefile.am (EXTRA_DIST): Include ChangeLog-gh and
  4075. ChangeLog-threads in the distribution.
  4076. * Makefile.in: Regenerated.
  4077. Fri Jun 20 10:03:41 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
  4078. * guile-snarf.in: Changed regexp to support CPPs that insert
  4079. whitespace between lexical tokens (which munges the `%%%' snarf
  4080. cookie).
  4081. Tue Jun 17 13:49:56 1997 Tim Pierce <twpierce@bio-5.bsd.uchicago.edu>
  4082. * load.c (scm_init_load_path): Append $(datadir)/guile to
  4083. %load-path, so modules do not have to be installed in Guile's
  4084. current version directory.
  4085. Mon Jun 16 17:20:55 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4086. * dynl.c (scm_dynamic_call, scm_dynamic_args_call): Wrap dynamic
  4087. function call in SCM_DEFER_INTS/SCM_ALLOW_INTS.
  4088. (scm_dynamic_link, scm_dynamic_unlink, scm_dynamic_func): Always
  4089. call the sysdep functions with deferred ints.
  4090. * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c (sysdep_dynl_link,
  4091. sysdep_dynl_unlink, sysdep_dynl_func): Expect to be called with
  4092. deferred interrupts and insert SCM_ALLOW_INTS before throwing an
  4093. error.
  4094. * dynl.c (scm_dynamic_unlink, scm_dynamic_call): Return
  4095. SCM_UNSPECIFIED.
  4096. Sat Jun 14 19:00:58 1997 Gary Houston <ghouston@actrix.gen.nz>
  4097. * scmsigs.c (sys_deliver_signals): add a comment about a probable bug.
  4098. Wed Jun 11 00:33:00 1997 Jim Blandy <jimb@floss.red-bean.com>
  4099. * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
  4100. ../configure.in.
  4101. Sun Jun 8 14:37:26 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4102. * eval.c (scm_lookupcar1): New procedure to cope with a race
  4103. condition during lookup (when using threads).
  4104. (scm_lookupcar): Implement in terms of scm_lookupcar1.
  4105. (SCM_CEVAL): Use scm_lookupcar1 instead of scm_lookupcar in one
  4106. place.
  4107. Fri Jun 6 19:05:07 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4108. * regex-posix.c (scm_regexp_exec): Use the `start' argument if
  4109. supplied. (Change from Tim Pierce.)
  4110. Thu Jun 5 16:38:19 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4111. * struct.c (init_struct): Forget to mention this in the "Wed Jun 4
  4112. 23:47:01 1997" changelog: Slots are now initialized with `#f' by
  4113. default and not `()'. `#f' is the canonical non-value in Scheme,
  4114. right?
  4115. Wed Jun 4 23:47:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4116. * struct.c (struct_printer): New variable that holds a handle on
  4117. the Scheme variable *struct-printer*. This variable can be set by
  4118. Scheme code to override the printing of structures.
  4119. (scm_print_struct): If struct_printer is set, call it. If it is
  4120. not set, or returns #f, print the structure in the old fashion.
  4121. Include "eval.h" for scm_apply.
  4122. Tue Jun 3 23:01:39 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4123. * struct.c (scm_struct_ref, scm_struct_set_x): Use
  4124. scm_struct_i_n_words to get the number of fields, not
  4125. -scm_struct_n_extra_words.
  4126. On the route to fancier struct printing:
  4127. * struct.c (scm_print_struct): New function to print a structure.
  4128. Include "genio.h" to support it. This function doesn't do
  4129. anything interesting right now, but I think it should be here
  4130. anyway.
  4131. * struct.h: Include "print.h" and add prototype for
  4132. scm_print_struct.
  4133. * print.c (scm_iprin1): Call scm_print_struct instead of trying to
  4134. print structures ourself.
  4135. Sun Jun 1 07:58:41 1997 Gary Houston <ghouston@actrix.gen.nz>
  4136. * scmsigs.c (sys_deliver_signals): bug fix: reset got_signal[i]
  4137. before applying the handler in case it doesn't return.
  4138. Sat May 31 18:57:51 1997 Gary Houston <ghouston@actrix.gen.nz>
  4139. * scmsigs.h, async.h: updated.
  4140. * _scm.h: if HAVE_RESTARTS is defined then don't use a SYSCALL
  4141. loop.
  4142. * posix.c (scm_uname): interpret only negative values as an error.
  4143. Solaris normally returns a positive value.
  4144. * script.c (scm_compile_shell_switches): if we are not going into
  4145. an interactive repl, set scm_mask_ints to zero so that asyncs can
  4146. run.
  4147. * simpos.c (scm_system): don't ignore/unignore signals around
  4148. the "system" call.
  4149. * posix.c (scm_open_pipe): don't ignore/unignore signals around
  4150. the "popen" call.
  4151. * init.c (scm_boot_guile_1): don't call scm_init_signals, it's
  4152. done in boot-9.scm instead.
  4153. * scmsigs.c, async.c: Major rewriting of signal handling code.
  4154. (scm_sigaction): new procedure.
  4155. (scm_sleep): don't wrap sleep in SCM_SYSCALL, it would mess up the
  4156. timing.
  4157. (scm_raise): return unspecified, throw error on failure.
  4158. Thu May 29 02:47:36 1997 Jim Blandy <jimb@floss.cyclic.com>
  4159. * regex-posix.c (scm_init_regex_posix): Register the "regex"
  4160. feature, to help boot-9.scm decide whether to import the regex
  4161. module.
  4162. Thu May 29 02:19:40 1997 Jim Blandy <jimb@floss.cyclic.com>
  4163. * eval.c: Include scmconfig.h at the beginning of the file so that
  4164. HAVE_ALLOCA_H may properly be defined. Thanks to Bill Janssen for
  4165. pointing this out.
  4166. * regex-posix.c: #include "_scm.h" before conditionally #including
  4167. <regex.h>; the former defines HAVE_REGCOMP.
  4168. * regex-posix.c: #include <regex.h> conditionally, so the file is
  4169. CPP'able (for dependency scanning) even on systems that don't have
  4170. a <regex.h> header.
  4171. Tue May 27 23:48:38 1997 Jim Blandy <jimb@floss.cyclic.com>
  4172. Add new R4RS-compliant syntax for keywords.
  4173. * read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
  4174. regardless of the setting of the `keywords' read option.
  4175. * kw.c (prin_kw): Print keywords using the `#:' syntax, so they
  4176. can be re-read no matter what the setting of the `keywords' read
  4177. option.
  4178. Tue May 27 22:47:31 1997 Tim Pierce <twp@twp.tezcat.com>
  4179. Add support for POSIX regular expressions.
  4180. * regex-posix.c, regex-posix.h: New files. (Some code
  4181. is taken liberally from rx/rgx.c in the old Guile dist.)
  4182. * init.c: Include regex-posix.h.
  4183. (scm_boot_guile_1): Call scm_init_regex_posix.
  4184. * Makefile.am (EXTRA_libguile_la_SOURCES, modinclude_HEADERS):
  4185. Add regex-posix.[ch] sources.
  4186. * Makefile.in: Regenerated.
  4187. * scmconfig.h.in: Add HAVE_REGCOMP macro. (automake is supposed
  4188. to do this automatically? It didn't for me, bleh.)
  4189. Mon May 26 18:51:29 1997 Jim Blandy <jimb@floss.cyclic.com>
  4190. * fports.c (print_pipe_port): New function.
  4191. (scm_fptob): Use print_pipe_port instead of scm_prinport; the
  4192. latter doesn't even take the right arguments.
  4193. * Makefile.am: Increment shared lib revision number. I think
  4194. sometimes the uninstalled Guile finds the installed shared lib;
  4195. Gord says doing this might help. As things turned out, I can't
  4196. say whether it does.
  4197. * Makefile.in: Regenerated.
  4198. * gh_init.c (gh_enter): Cast c_main_prog to a void * before
  4199. passing it as the closure argument to scm_boot_guile. (Bill
  4200. Janssen)
  4201. * ports.c (print_void_port, putc_void_port, puts_void_port,
  4202. write_void_port, flush_void_port, getc_void_port, close_void_port,
  4203. noop0): Use ANSI prototypes instead of K&R declarations, so the
  4204. initialization of void_port_ptob gets aggressively type-checked.
  4205. Fix arguments of print_void_port and write_void_port. (Bill
  4206. Janssen)
  4207. * COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
  4208. appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
  4209. backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
  4210. continuations.c, continuations.h, coop-defs.h, coop-threads.c,
  4211. coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
  4212. coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
  4213. dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
  4214. error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
  4215. filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
  4216. gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
  4217. gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
  4218. gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
  4219. gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
  4220. init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
  4221. list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
  4222. markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
  4223. mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
  4224. objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
  4225. ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
  4226. procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
  4227. read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
  4228. script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
  4229. smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
  4230. stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
  4231. strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
  4232. strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
  4233. tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
  4234. unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
  4235. version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
  4236. address for FSF.
  4237. Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
  4238. * script.c (scm_find_executable): Use prototype-style definition
  4239. here; apparently it's not quite right to have const in a prototype
  4240. and then use a K&R declaration. I wonder if stuff like this will
  4241. go away if we compile with -Wrequire-prototypes, or whatever that
  4242. is... (Bernard URBAN)
  4243. * scmhob.h: New text from Bernard URBAN.
  4244. Sat May 17 17:14:36 1997 Jim Blandy <jimb@floss.cyclic.com>
  4245. * script.c: Don't #define const on hpux. Configure takes care of
  4246. this. (Thanks to Larry Schwimmer.)
  4247. * script.c: Use the HAVE_UNISTD_H symbol provided by autoconf to
  4248. decide whether to #include <unistd.h>, instead of listing a bunch
  4249. of systems. Don't #include stdio twice. Removed dyked-out
  4250. definition of scm_find_impl_file.
  4251. Fri May 16 03:06:08 1997 Jim Blandy <jimb@floss.cyclic.com>
  4252. * Makefile.am (libguile_la_LDFLAGS): Update libguile's shared
  4253. library version info to 1:0.
  4254. * Makefile.in: Regenerated.
  4255. * backtrace.c, backtrace.h, debug.c, debug.h, eq.c,
  4256. gdb_interface.h, gdbint.c, gdbint.h, gh_data.c, gh_init.c,
  4257. gh_io.c, gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c,
  4258. init.c, net_db.c, options.c, options.h, ports.c, print.c, read.c,
  4259. script.h, snarf.h, srcprop.c, srcprop.h, stacks.c, stacks.h,
  4260. throw.c: Update copyright years; these files have been worked on
  4261. significantly in 1997, but only had copyright years for 1996.
  4262. Also, change name of copyright holder on some from Mikael
  4263. Djurfeldt to Free Software Foundation; he has signed papers
  4264. assigning the changes to the FSF.
  4265. * script.c (scm_shell_usage): Pass FATAL to exit. There's no
  4266. reason not to give the user the option.
  4267. * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
  4268. Return #f on end-of-file when scanning table (i.e. when called
  4269. with no arguments). Try to catch errors, when we can.
  4270. * posix.c (scm_getgrgid, scm_getpwuid): Same.
  4271. * script.h (scm_shell_usage, scm_compile_shell_switches): New
  4272. external declarations. These are useful.
  4273. Thu May 15 05:21:36 1997 Gary Houston <ghouston@actrix.gen.nz>
  4274. * posix.c: don't include <sys/select.h> or define macros for
  4275. select, since they were not used in this file.
  4276. * filesys.c (scm_select): make the fifth parameter microseconds,
  4277. not milliseconds. let the fourth parameter be either a real value
  4278. or an integer or #f. The first, second and third arguments can
  4279. now be vectors: the type of the corresponding return set will be
  4280. the same.
  4281. (set_element, get_element): new static procedures.
  4282. Wed May 14 12:18:12 1997 Jim Blandy <jimb@floss.cyclic.com>
  4283. * strports.c (scm_eval_string): New function.
  4284. (scm_eval_0str): Trivially re-implemented in terms of
  4285. scm_eval_string.
  4286. * strports.h (scm_eval_string): New extern decl.
  4287. * net_db.c (h_errno): Add extern decl for this.
  4288. * fports.c (local_pclose): New function.
  4289. (scm_pipob): Use it in the initializer here.
  4290. From Tim Pierce:
  4291. * net_db.c (scm_gethost, scm_getproto, scm_getnet, scm_getserv):
  4292. Use a meaningful error message when signalling an error. For
  4293. this, scm_gethost must check h_errno rather than errno.
  4294. Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
  4295. * Makefile.in: Regenerated, using automake-1.1p.
  4296. Tue May 13 04:34:52 1997 Gary Houston <ghouston@actrix.gen.nz>
  4297. * socket.c (scm_addr_vector): use SCM_UNDEFINED in scm_listify,
  4298. not SCM_UNSPECIFIED.
  4299. * script.c (scm_compile_shell_switches): don't append (quit) if
  4300. interactive.
  4301. (scm_shell): call scm_exit_status and exit on the result of the
  4302. evaluation.
  4303. Mon May 12 17:23:58 1997 Jim Blandy <jimb@floss.cyclic.com>
  4304. Ensure that shared substrings are handled properly when passed to
  4305. a system call or other foreign function. Many thanks to Tim
  4306. Pierce!
  4307. * symbols.h (SCM_COERCE_SUBSTR): new macro.
  4308. * filesys.c (scm_chmod, scm_rename, scm_delete_file, scm_mkdir,
  4309. scm_rmdir, scm_opendir, scm_chdir, scm_symlink, scm_readlink,
  4310. scm_lstat), ports.c (scm_sys_make_void_port), posix.c (scm_utime,
  4311. scm_putenv, scm_setlocale, scm_mknod), stime.c (setzone,
  4312. scm_strftime), vports.c (scm_make_soft_port), backtrace.c
  4313. (scm_display_error_message): use RO macros when strings may be RO.
  4314. * error.c (scm_error_scm), filesys.c (scm_chown, scm_chmod,
  4315. scm_rename, scm_delete_file, scm_mkdir, scm_rmdir, scm_opendir,
  4316. scm_chdir, scm_symlink, scm_readlink, scm_lstat), ioext.c
  4317. (scm_freopen, scm_duplicate_port, scm_fdopen), net_db.c
  4318. (scm_gethost, scm_getnet, scm_getproto, scm_getserv), ports.c
  4319. (scm_sys_make_void_port), posix.c (scm_getgrgid, scm_utime,
  4320. scm_setlocale, scm_mknod), stime.c (setzone, scm_strptime,
  4321. scm_strftime), vports.c (scm_make_soft_port): use
  4322. SCM_COERCE_SUBSTR to make sure shared substrings are
  4323. null-terminated.
  4324. Mon May 12 15:33:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4325. * error.c (scm_error): Add newline to error message.
  4326. * init.c (scm_init_standard_ports): Doc fix.
  4327. Thu May 8 14:38:01 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4328. * dynl-shl.c: Completely replaced with new code from Bernard
  4329. URBAN.
  4330. * script.c (scm_ice_9_already_loaded): New variable.
  4331. (scm_compile_shell_switches): Use it.
  4332. Mon May 5 20:35:08 1997 Gary Houston <ghouston@actrix.gen.nz>
  4333. * filesys.c (scm_input_waiting_p): add missing third argument to
  4334. scm_misc_error.
  4335. * stime.c (scm_localtime): copy the result of localtime before
  4336. calling gmtime in case they share a buffer.
  4337. (scm_localtime, scm_mktime): throw an error if neither HAVE_TM_ZONE
  4338. nor HAVE_TZNAME.
  4339. Fri May 2 19:07:11 1997 Gary Houston <ghouston@actrix.gen.nz>
  4340. * eq.c (scm_equal_p): use SCM_TYP7SD (y) not SCM_TYP7SD (x).
  4341. Thu May 1 17:01:45 1997 Jim Blandy <jimb@floss.cyclic.com>
  4342. * Makefile.am (check-local): New target, which causes 'make check'
  4343. to run gh_test_c and gh_test_repl, with some trivial input.
  4344. * Makefile.in: Rgnrtd.
  4345. Tue Apr 29 19:00:40 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4346. * dynl.c (print_dynl_obj): Indicate whether the dynamic object has
  4347. been unlinked.
  4348. Mon Apr 28 06:10:14 1997 Gary Houston <ghouston@actrix.gen.nz>
  4349. * async.c (scm_sys_tick_async_thunk): commented out. I'm not
  4350. sure how this was supposed to work.
  4351. (scm_async_click): don't send SCM_TICK_SIGNAL.
  4352. (scm_init_async): don't initialize %tick-thunk.
  4353. * the following change doesn't affect the Scheme interface:
  4354. gc-thunk is called at the end of garbage collection. however it's
  4355. no longer implemented by pretending it's a signal.
  4356. * gc.c (scm_gc_end): don't call scm_take_signal. instead mark the
  4357. system async corresponding to scm_gc_thunk.
  4358. * async.h: declare scm_gc_async.
  4359. * async.c (scm_sys_gc_async_thunk): apply the thunk named by
  4360. gc-thunk directly, instead of going through a signal handler.
  4361. (scm_gc_async): new variable, points to the GC system-async.
  4362. (scm_init_async): save the GC async as scm_gc_async instead
  4363. of using system_signal_asyncs.
  4364. (scm_gc_vcell): new variable, stores the gc-thunk vcell.
  4365. Mon Apr 28 19:14:44 1997 Jim Blandy <jimb@floss.cyclic.com>
  4366. * Makefile.am (libpath.h, cpp_err_symbols.c, cpp_sig_symbols.c):
  4367. Don't screw up if we're interrupted.
  4368. * Makefile.in: Regeneradet.
  4369. Sun Apr 27 17:57:15 1997 Jim Blandy <jimb@floss.cyclic.com>
  4370. * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
  4371. * Makefile.am (modincludedir): Use "ice-9" instead of "@module@";
  4372. we're not using AM_INIT_GUILE_MODULE any more.
  4373. * Makefile.in: Reneregated.
  4374. Thu Apr 24 00:41:08 1997 Jim Blandy <jimb@floss.cyclic.com>
  4375. Functions for finding variable bindings, grace à Tim Pierce.
  4376. * gh_data.c (gh_lookup, gh_module_lookup): New functions.
  4377. * gh.h (gh_lookup, gh_module_lookup): New prototypes.
  4378. Get 'make dist' to work again.
  4379. * Makefile.am (EXTRA_DIST): Remove PLUGIN files.
  4380. * Makefile.in: Regenerated, like a surry without a fringe on top.
  4381. Changes for reduced Guile distribution: one configure script,
  4382. no plugins.
  4383. * configure.in, configure: Removed.
  4384. * acconfig.h, acinclude.m4: Moved to parent directory, where the
  4385. real configure script lives.
  4386. * Makefile.in, scmconfig.h.in: Regenerated.
  4387. * init.c: #include "script.h", to get prototype for script.c's
  4388. init function.
  4389. Wed Apr 23 21:25:39 1997 Jim Blandy <jimb@floss.cyclic.com>
  4390. * gh_data.c (gh_scm2newstr, gh_symbol2newstr): Use
  4391. scm_must_malloc, not raw malloc.
  4392. * script.c (scm_compile_shell_switches): Dyke out debugging output
  4393. code.
  4394. Mon Apr 21 05:00:32 1997 Gary Houston <ghouston@actrix.gen.nz>
  4395. * eq.c (scm_equal_p): use "SCM_TYP7SD", not "SCM (TYP7SD".
  4396. * stime.c: include both <sys/times.h> and <sys/timeb.h> if the
  4397. system has them. Hope this is safe. Previously
  4398. sys/timeb.h was included if HAVE_FTIME was defined or if
  4399. HAVE_SYS_TIMEB_H was defined but HAVE_SYS_TIMES_H was not,
  4400. but IRIX iris 5.3 apparently has ftime but not sys/timeb.h.
  4401. * ioext.c (scm_setfileno): add missing third argument to
  4402. scm_misc_error call.
  4403. Sun Apr 20 15:09:31 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4404. * eq.c (scm_equal_p): Correctly compare strings of different
  4405. varieties. (Thanks to Tim Pierce.)
  4406. Sat Apr 19 03:59:02 1997 Jim Blandy <jimb@floss.cyclic.com>
  4407. * read.c (skip_scsh_block_comment): SCSH says the !# that ends a
  4408. #! block comment must occur on a line all by itself.
  4409. Move most of the guts of shell command processing into libguile,
  4410. so guile.c can be very small (and eventuallly auto-generated. (I
  4411. mean, generated mechanically, not self-generated. Hmm.))
  4412. * guile.c, script.c, script.h: New source files.
  4413. * init.c (scm_boot_guile_1): Call scm_init_script.
  4414. * libguile.h: #include "script.h".
  4415. * Makefile.am (bin_PROGRAMS, guile_SOURCES, guile_LDADD): New
  4416. targets, for new executable.
  4417. (libguile_la_SOURCES): Mention script.c.
  4418. (modinclude_HEADERS): Add script.h.
  4419. * configure.in: Always check for -lm, -lsocket, -lnsl, whether or
  4420. not dynamic linking is enabled. This is because we're generating
  4421. executables now. Move CY_AC_WITH_THREADS call after those, so the
  4422. values of cy_cv_threads_libs captures the libs chosen above.
  4423. * Makefile.in, configure, aclocal.m4: Regenerated.
  4424. * Makefile.am (EXTRA_DIST): Don't distribute gscm.c or gscm.h.
  4425. We don't maintain this interface any more, and it just confuses
  4426. people.
  4427. * alloca.c: #include <scmconfig.h>, not <config.h>.
  4428. * Makefile.am (EXTRA_libguile_la_SOURCES): Mention alloca.c, so
  4429. it'll get included in disties.
  4430. Thu Apr 17 17:45:10 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4431. * gscm.c, gscm.h: These aren't supported any more, and shouldn't
  4432. be distributed, because they confuse people.
  4433. * Makefile.am (EXTRA_DIST): Remove gscm.c, gscm.h.
  4434. Sat Apr 19 11:56:18 1997 Tim Pierce <twp@twp.tezcat.com>
  4435. * configure.in: check for presence of gethostent (not present on
  4436. OpenBSD by default).
  4437. * net_db.c (scm_gethost): Check HAVE_GETHOSTENT.
  4438. * configure, scmconfig.h.in: Regenerated.
  4439. Wed Apr 16 17:52:38 1997 Jim Blandy <jimb@floss.cyclic.com>
  4440. * backtrace.c (scm_backtrace): Split message string across
  4441. newlines properly. GCC is more tolerant of this than other
  4442. compilers.
  4443. Mon Apr 14 20:20:14 1997 Jim Blandy <jimb@floss.cyclic.com>
  4444. Merge threads directory into libguile.
  4445. * coop-defs.h, coop-threads.c, coop-threads.h, coop.c, threads.c,
  4446. threads.h: New source files.
  4447. * Makefile.am (EXTRA_libguile_la_SOURCES): Add threads.c.
  4448. (noinst_HEADERS): Add coop-threads.c, coop-threads.h, coop.c
  4449. here; see comment.
  4450. (modinclude_HEADERS): Add threads.h, coop-defs.h.
  4451. (EXTRA_DIST): Add fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
  4452. coop-threads.c.cygnus, coop-threads.h.cygnus.
  4453. * configure.in: If we're using threads, include threads.o in
  4454. LIBOBJS.
  4455. * _scm.h, libguile.h: threads.h lives in this directory now.
  4456. * fsu-pthreads.h, mit-pthreads.c, mit-pthreads.h,
  4457. coop-threads.c.cygnus, coop-threads.h.cygnus: New files, not
  4458. currently used, but brought along for information's sake.
  4459. * ChangeLog-threads: log from old 'threads' directory.
  4460. * Makefile.in, configure: Rebuilt.
  4461. Mon Apr 14 20:15:29 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4462. * stime.c (scm_mktime): #ifndef HAVE_TM_ZONE, Use lt.tm_zone, not
  4463. lt->tm_zone.
  4464. Mon Apr 14 01:32:57 1997 Jim Blandy <jimb@floss.cyclic.com>
  4465. * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.
  4466. Merge GH interface library into libguile.
  4467. * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c,
  4468. gh_list.c, gh_predicates.c, gh_test_c.c, gh_test_repl.c: New files.
  4469. * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c,
  4470. gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move
  4471. _scm.h to ...
  4472. (EXTRA_libguile_la_SOURCES): ... here.
  4473. (pkginclude_HEADERS): Add variable, to get gh.h installed.
  4474. (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES,
  4475. gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD):
  4476. New variables, describing how to build the gh test programs.
  4477. * configure.in: Check for -lm, -lsocket, -lnsl; we need this to
  4478. build the test programs, and we probably should have been linking
  4479. libguile.la against them all along, to support AIX shared libs.
  4480. Add cflags for threads to CFLAGS; add libs for threads to new
  4481. variable THREAD_LIBS, used in Makefile.am.
  4482. * ChangeLog-gh: log from old `gh' subdirectory.
  4483. * Makefile.in, configure, scmconfig.h.in: Rebuilt.
  4484. Sun Apr 13 23:03:55 1997 Jim Blandy <jimb@floss.cyclic.com>
  4485. * acconfig.h: Undo change of Apr 9; including the definition of
  4486. PACKAGE in the guile headers conflicts with applications' own
  4487. definitions.
  4488. * scmconfig.h.in: Regenerated.
  4489. Fri Apr 11 14:12:13 1997 Jim Blandy <jimb@floss.cyclic.com>
  4490. * filesys.c (scm_fcntl): New function from Roland McGrath.
  4491. (scm_init_filesys): New symbols for use with fcntl.
  4492. * filesys.h: Added prototype.
  4493. * eval.c (SCM_APPLY): Set debug apply frame argument list correctly
  4494. when PROC is receiving no arguments.
  4495. Fri Apr 11 19:39:32 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4496. * filesys.c (S_ISSOCK): Define this if it's missing, but we do
  4497. have S_IFSOCK. This is the case under Ultrix.
  4498. * posix.c (scm_status_exit_val, scm_status_exit_val,
  4499. scm_status_term_sig, scm_status_stop_sig): Modified to work with
  4500. Ultrix versions of WIFSTOPPED, etc., which assume that their
  4501. arguments are lvalues (hmm).
  4502. Thu Apr 10 15:10:07 1997 Jim Blandy <jimb@floss.cyclic.com>
  4503. * eval.c: Doc fixes.
  4504. * throw.c: Doc fixes; rearranged.
  4505. * putenv.c: #include "libguile/scmconfig.h", not <config.h>.
  4506. Wed Apr 9 18:01:20 1997 Jim Blandy <jimb@floss.cyclic.com>
  4507. * acconfig.h: Added entry for PACKAGE.
  4508. * scmconfig.h.in: Regenerated.
  4509. Changes to work with automake-1.1n, which has better libtool support.
  4510. * Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS.
  4511. Use libguile_la_LIBADD instead of libguile_la_LDADD. (What's the
  4512. difference here?)
  4513. (libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for
  4514. readability.
  4515. * Makefile.in: Rebuild.
  4516. Wed Apr 9 09:08:54 1997 Gary Houston <ghouston@actrix.gen.nz>
  4517. * stime.c (scm_mktime): take an optional zone argument.
  4518. (scm_localtime): check putenv return value.
  4519. (scm_strftime, scm_strptime): moved from posix.c. move #include
  4520. sequences.h too.
  4521. stime.h, posix.h: update prototypes.
  4522. (bdtime2c, setzone, restorezone): new static procedures.
  4523. (scm_mktime, scm_strftime): use them.
  4524. (scm_strftime): don't call mktime before strftime. Use
  4525. filltime for return value.
  4526. (filltime): convert NULL zname to #f.
  4527. (scm_strptime): return a count of characters consumed, not
  4528. the remaining string.
  4529. Sun Apr 6 05:44:11 1997 Gary Houston <ghouston@actrix.gen.nz>
  4530. * stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME.
  4531. (scm_mktime): likewise.
  4532. Declare *tzname[].
  4533. Uncomment localtime and mktime.
  4534. * configure.in: add AC_STRUCT_TIMEZONE.
  4535. Sat Apr 5 23:56:40 1997 Gary Houston <ghouston@actrix.gen.nz>
  4536. * stime.c (scm_init_stime): don't define ticks/sec.
  4537. (scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple
  4538. return value problem and is still portable.)
  4539. Sat Apr 5 17:59:24 1997 Jim Blandy <jimb@floss.cyclic.com>
  4540. * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid
  4541. make's implicit cpp_err_symbols: cpp_err_symbols.c rule.
  4542. * cpp_sig_symbols.in: Renamed from cpp_sig_symbols.
  4543. * Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c,
  4544. cpp_err_symbols.c): Corresponding changes.
  4545. * Makefile.in: Regenerated.
  4546. Sat Apr 5 02:39:02 1997 Gary Houston <ghouston@actrix.gen.nz>
  4547. * posix.c (scm_putenv): don't check HAVE_PUTENV.
  4548. * Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c.
  4549. * configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS.
  4550. * putenv.c: new file, from sh-utils 1.12.
  4551. * posix.c (scm_environ): use malloc in place of scm_must_malloc
  4552. since allocation isn't for Scheme objects.
  4553. (scm_putenv): copy strings before placing in the environment.
  4554. * stime.c (scm_current_time): throw an error if time returns -1,
  4555. instead of returning #f.
  4556. (scm_get_internal_real_time, scm_get_internal_real_time): use
  4557. scm_long2num for return value instead of SCM_MAKINUM.
  4558. * stime.h: prototypes updated.
  4559. * stime.c (scm_time_in_msec): apparently unused, deleted.
  4560. Fri Apr 4 08:53:41 1997 Gary Houston <ghouston@actrix.gen.nz>
  4561. * configure.in: check for gettimeofday.
  4562. * stime.c (scm_time_plus_ticks): new procedure, an scsh interface
  4563. which may be more usefully portable than a gettimeofday interface.
  4564. Wed Apr 2 17:11:39 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4565. * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not
  4566. cpp_err_signals.
  4567. * Makefile.in: Regenerated.
  4568. Mon Mar 31 03:22:37 1997 Gary Houston <ghouston@actrix.gen.nz>
  4569. * stime.c (filltime): recovered static procedure.
  4570. (scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from
  4571. an earlier Guile.
  4572. * posix.h: add prototype for scm_close_pipe, remove prototypes for
  4573. scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype.
  4574. * posix.c (scm_mknod): split the mode argument into type and perms
  4575. arguments, like the extra fields returned by stat.
  4576. * fports.c (scm_pipob): set the close, free and print procedures.
  4577. (scm_close_pipe): new procedure.
  4578. * posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted,
  4579. define them in boot-9.scm
  4580. Wed Mar 26 04:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
  4581. * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
  4582. wan't defined. Don't include fd.h.
  4583. * Previously fd.h was regenerated whenever configure was run,
  4584. forcing a couple of files to be recompiled.
  4585. * fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
  4586. * configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
  4587. Check for _fileno as well as _file.
  4588. Don't output fd.h.
  4589. * ioext.c: don't fd.h.
  4590. * acconfig.h: remove duplicate HAVE_FD_SETTER and change the
  4591. other to FD_SETTER.
  4592. * Change the stratigy for getting information about errno
  4593. (and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of
  4594. generating lists of symbols during the build process, which will
  4595. not always work, include comprehensive lists in the distribution.
  4596. To help keep the lists up to date, the "check_signals" and
  4597. "check_errnos" make targets can be used.
  4598. * configure.in: don't check for a command to extract errno codes.
  4599. * Makefile.am: update file lists, remove errnos.list and errnos.c
  4600. targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
  4601. check_errnos targets.
  4602. (CLEANFILES): remove errnos.c and errnos.list, add
  4603. cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
  4604. cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
  4605. * errnos.default: deleted.
  4606. * cpp_signal.c: new file.
  4607. * cpp_errno.c: renamed from errnos_get.c.
  4608. * cpp_err_symbols, cpp_sig_symbols: new files.
  4609. * cpp_cnvt.awk: renamed from errnos_cnvt_awk.
  4610. * error.c (scm_init_error): #include cpp_err_symbols instead of
  4611. errnos.c.
  4612. * posix.c (scm_init_posix): don't intern signal symbols. #include
  4613. cpp_sig_symbols.c.
  4614. Tue Mar 25 04:51:10 1997 Gary Houston <ghouston@actrix.gen.nz>
  4615. * strop.c (scm_i_index): allow the lower bound to be equal to the
  4616. length of the string, so a null string doesn't always give an error.
  4617. * posix.h: new prototypes.
  4618. * posix.c (scm_status_exit_val, scm_status_term_sig,
  4619. scm_status_stop_sig): new functions, as in scsh. They break down
  4620. process status values as returned by waitpid.
  4621. Sat Mar 22 18:16:29 1997 Gary Houston <ghouston@actrix.gen.nz>
  4622. * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since
  4623. configure doesn't know about it.
  4624. Fri Mar 21 23:49:28 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4625. * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL.
  4626. * snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL
  4627. which defines C variables with global linkage.
  4628. Mon Mar 17 05:57:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4629. * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for
  4630. zero arg subrs.
  4631. Sun Mar 16 11:43:49 1997 Mikael Djurfeldt <mdj@floss.cyclic.com>
  4632. * eval.c (safe_setjmp): Temporarily use old setjmp until someone
  4633. has time to check why this doesn't work well with continuations.
  4634. Sun Mar 16 05:09:55 1997 Jim Blandy <jimb@totoro.cyclic.com>
  4635. * Fix shell syntax error; some shells won't tolerate
  4636. multiple "fi" statements on a single line. (Thanks to Fred Fish.)
  4637. Sat Mar 15 01:11:40 1997 Gary Houston <ghouston@actrix.gen.nz>
  4638. * posix.c (scm_uname): throw an error if uname fails instead
  4639. of returning errno.
  4640. * error.h (scm_errno, scm_perror): obsolete prototypes removed.
  4641. * error.c (err_head, scm_errno, scm_perror): obsolete procedures
  4642. removed.
  4643. * async.c (scm_ints_disabled): definition moved from error.c.
  4644. Sat Mar 15 00:06:08 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4645. * acconfig.h: Removed PACKAGE.
  4646. * scmconfig.h.in: Regenerated.
  4647. * snarf.h: g++ says it's non-portable not to specify the first
  4648. argument in a varargs declaration. I introduced the first
  4649. argument by using preprocessor conditionals.
  4650. Thu Mar 13 21:28:25 1997 Gary Houston <ghouston@actrix.gen.nz>
  4651. * ioext.c (scm_read_delimited_x): use RO string macros for delims.
  4652. (scm_freopen): use RO string macros for filename and modes.
  4653. (scm_duplicate_port, scm_fdopen): use RO string macros for modes.
  4654. * posix.c (scm_getgrgid): simplify conversion of name to C string.
  4655. (scm_mknod): use RO string macros for path.
  4656. * socket.c (scm_fill_sockaddr, scm_send, scm_sendto):
  4657. use SCM_ROSTRINGP, SCM_ROCHARS, SCM_ROLENGTH.
  4658. * net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
  4659. use SCM_ROSTRINGP and SCM_ROCHARS.
  4660. Thu Mar 13 18:31:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4661. * unif.c (scm_array_set_x): Cast ICHR (obj) to char if storing in
  4662. a scm_tc7_byvect.
  4663. * ramap.c (scm_ra_matchp, scm_array_fill_int, racp,
  4664. scm_array_index_map_x, raeql_1, scm_array_equal_p): Completed
  4665. support for byte vectors.
  4666. * print.c (scm_iprin1): Limit number of vector elements printed
  4667. according to pstate->length.
  4668. Thu Mar 13 00:12:35 1997 Gary Houston <ghouston@actrix.gen.nz>
  4669. * backtrace.c (scm_display_error_message): don't segv if message
  4670. is an immediate.
  4671. * error.h: prototype for scm_error_scm.
  4672. * error.c (scm_error_scm): new procedure, reimplements scm-error
  4673. in C and uses scm_error.
  4674. Tue Mar 11 03:51:00 1997 Gary Houston <ghouston@actrix.gen.nz>
  4675. * read.c (scm_read_hash_extend): make scm_read_hash_procedures a
  4676. pointer to the Scheme variable read-hash-procedures and intern it
  4677. in scm_init_read. Modify scm_read_hash_extend and
  4678. scm_get_hash_procedure to use the pointer.
  4679. Mon Mar 10 06:28:54 1997 Gary Houston <ghouston@actrix.gen.nz>
  4680. * read.h (SCM_N_READ_OPTIONS): increase SCM_N_READ_OPTIONS to 4.
  4681. (SCM_KEYWORD_STYLE): defined.
  4682. * read.c (scm_read_opts): add a keywords option. This isn't a
  4683. boolean option, in case someone wants to add support for DSSSL
  4684. keywords too.
  4685. Setup scm_keyword_prefix symbol.
  4686. (scm_lreadr): Only process keywords if SCM_KEYWORD_STYLE is
  4687. set to 'prefix.
  4688. I've left keyword support disabled by default, since it doesn't
  4689. seem to break the module system and it gives R4RS standard behaviour.
  4690. It can be reactivated with (read-set! keywords 'prefix).
  4691. Sun Mar 9 14:14:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4692. * arbiters.c (scm_make_arbiter): Bugfix: Must SCM_DEFER_INTS
  4693. before constructing arbiter.
  4694. * eval.c (scm_m_define): Bugfix: Check that the object is a
  4695. closure before setting the procedure property!
  4696. * ports.h: Removed prototype for scm_ungetc_char_ready_p.
  4697. * ports.c: Removed `ungetc-char-ready?'.
  4698. Sat Mar 8 00:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
  4699. * read.c (scm_init_read): intitialise scm_read_hash_procedures
  4700. (idea from Mikael: make it a pair so scm_permanent object only
  4701. called once.)
  4702. (scm_read_hash_extend): don't call scm_permanent_object.
  4703. (ideas from Mikael): if chr is already in the list, replace its
  4704. procedure instead of appending it again. If proc is #f, remove
  4705. it from the list.
  4706. (scm_get_hash_procedure): take CDR of scm_read_hash_procedures.
  4707. * strports.c (scm_read_0str, scm_eval_0str): update scm_read usage.
  4708. * gdbint.c (gdb_read): update scm_lreadr usage.
  4709. * load.h: update prototypes.
  4710. * load.c (scm_primitive_load, scm_read_and_eval_x,
  4711. scm_primitive_load_path): remove case_insensitive_p, sharp arguments.
  4712. * read.h: add prototype for scm_read_hash_extend. Change args for
  4713. other prototypes.
  4714. * read.c (scm_read_hash_procedures): new variable.
  4715. (scm_read_hash_extend): new procedure.
  4716. (scm_get_hash_procedure): new procedure.
  4717. (scm_lreadr): use scm_get_hash_procedure instead of an argument
  4718. for extended # processing.
  4719. (scm_read, scm_lreadr, scm_lreadrecparen, scm_lreadparen,
  4720. scm_read_token): remove case_i, sharp arguments. Change callers.
  4721. Fri Mar 7 08:58:21 1997 Gary Houston <ghouston@actrix.gen.nz>
  4722. * read.h (SCM_N_READ_OPTIONS): increase to 3.
  4723. (SCM_CASE_INSENSITIVE_P): define.
  4724. * read.c: add case-insensitive option to scm_read_opts.
  4725. (scm_read_token): use SCM_CASE_INSENSITIVE_P instead of an argument
  4726. to determine whether to convert symbol case.
  4727. (default_case_i): definition removed.
  4728. * read.c (scm_read_token): if case_i, downcase ic before doing
  4729. anything with it.
  4730. Sat Mar 8 03:49:03 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4731. * configure.in: Added configuration option `guile-debug'.
  4732. Configure with --enable-guile-debug if you want a bunch of extra
  4733. functions used for debugging when developing Guile.
  4734. * acconfig.h: Added new preprocessor symbol GUILE_DEBUG.
  4735. * procs.c (make-cclo): New undocumented debugging procedure: Make
  4736. compiled closure with internal procedure PROC and length LENGTH.
  4737. Only compiled if GUILE_DEBUG is defined.
  4738. * debug.c: Only include `debug-hang' if GUILE_DEBUG is defined.
  4739. * print.c: Put #ifdef GUILE_DEBUG around `current-pstate'.
  4740. * ports.c: Changed preprocessor symbol DEBUG --> GUILE_DEBUG.
  4741. * eval.c (SCM_CEVAL): Added code sections for handling of rpsubrs
  4742. with 3 or more args internally to the evaluator.
  4743. Fri Mar 7 19:38:18 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4744. * eval.c (SCM_CEVAL): Added code sections for handling of asubrs
  4745. with 3 or more args internally to the evaluator. This is mainly
  4746. because we don't want to pass entry and exit points of the
  4747. debug support twice, but it also seems to increase the speed of
  4748. the evaluator for such calls (e. g. (+ 1 2 3)).
  4749. * backtrace.c (scm_display_application): New procedure:
  4750. display-application; Set fancy printing parameters individually
  4751. for different types of display (backtrace, error, application).
  4752. (These should of course be customizable!)
  4753. * debug.h (SCM_RESET_DEBUG_MODE): Bugfix: The old code didn't
  4754. clear the CHECK-flags.
  4755. Thu Mar 6 00:53:02 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4756. * tags.h, eval.c (iqq): Fixes to comments about SCM_ECONSP.
  4757. Wed Mar 5 23:31:21 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4758. * tags.h (SCM_ECONSP, SCM_NECONSP): Bugfix: Discriminate structs
  4759. from pairs with a GLOC in the car.
  4760. * symbols.c (msymbolize): Bugfix: Also initialize SCM_SYMBOL_HASH,
  4761. otherwise `symbol-hash' will behave badly.
  4762. (scm_symbol_hash): Bugfix: Must msymbolize if tc7_ssymbol, othwise
  4763. we get segmentation fault!
  4764. * symbols.c: Added #include "weaks.h". New functions:
  4765. `builtin-bindings' and `builtin-weak-bindings'. (These will be
  4766. moved to an extraneous library when we split libguile.)
  4767. Tue Mar 4 19:50:07 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4768. * filesys.c (scm_stat): stat now takes fport arguments too as
  4769. documented in the manual.
  4770. Mon Mar 3 07:11:33 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4771. * debug.c (scm_single_step): Bugfix: Call continuation with
  4772. scm_call_continuation instead of throwing to it.
  4773. Mon Mar 3 09:07:56 1997 Gary Houston <ghouston@actrix.gen.nz>
  4774. * ports.c (scm_char_ready_p): bug fix: in SCM_PROC char-ready's
  4775. argument wasn't declared to be optional.
  4776. Sun Mar 2 16:34:40 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4777. * stime.c (scm_init_stime): Add feature "current-time".
  4778. Sun Mar 2 06:37:31 1997 Gary Houston <ghouston@actrix.gen.nz>
  4779. * throw.h: prototype for scm_exit_status.
  4780. * throw.c (scm_handle_by_message): if a 'quit is caught, use its
  4781. args to derive an exit status. Allows (quit) to work from a
  4782. script.
  4783. (scm_exit_status): new function.
  4784. #include "eq.h".
  4785. Sat Mar 1 00:09:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4786. * eval.c (scm_deval): Removed some old code.
  4787. (ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
  4788. with the others.
  4789. (ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
  4790. exit-frame traps.
  4791. * symbols.c (msymbolize): Bugfix: Must initialize property list to
  4792. SCM_EOL.
  4793. * procs.c: Introduce the existent C function scm_thunk_p at the
  4794. Scheme level as well.
  4795. Wed Feb 26 12:53:58 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4796. * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
  4797. used from C to easily lookup the value of a symbol in the current
  4798. module.
  4799. Tue Feb 25 00:14:10 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4800. * unif.c (scm_init_unif): Added #include "unif.x". (There are two
  4801. scm_init_unif in this file. This will also fix a previous problem
  4802. with guile-snarf.)
  4803. * configure.in: Added AM_MAINTAINER_MODE
  4804. Fri Feb 21 23:07:26 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  4805. * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to
  4806. avoid warnings.
  4807. Fri Feb 21 18:00:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4808. * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
  4809. source files that are not always included in libguile but should
  4810. have their dependencies calculated by automake. This variable is
  4811. recognized by automake, no further magic is needed.
  4812. (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants
  4813. to deal exclusively with *.lo files, as it seems. The *.o files
  4814. are built automatically when the corresponding *.lo file gets
  4815. built.
  4816. Wed Feb 19 14:04:23 1997 Jim Blandy <jimb@floss.cyclic.com>
  4817. * list.h (scm_list_cdr_ref): Delete prototype; function no longer
  4818. exists.
  4819. Thu Feb 13 21:44:07 1997 Gary Houston <ghouston@actrix.gen.nz>
  4820. * unif.c (scm_array_set_x): minor change to argument error checking.
  4821. Tue Feb 11 18:19:47 1997 Jim Blandy <jimb@floss.cyclic.com>
  4822. * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
  4823. inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
  4824. They should only be included in the library at configure.in's
  4825. discretion.
  4826. (libguile_la_LDADD): Include the appropriate .lo files here.
  4827. (libguile_la_DEPENDENCIES): List the corresponding .o files here,
  4828. so we know when to build them (and their .lo bretheren).
  4829. * configure.in (LIBLOBJS): New substituted variable. We let
  4830. configure decide which .o files to include in LIBOBJS, and then
  4831. put the corresponding list of .lo files in LIBLOBJS. The latter
  4832. is what we pass to libtool.
  4833. * Makefile.in, configure: regenerated.
  4834. Mon Feb 10 00:08:08 1997 Mikael Djurfeldt <mdj@kenneth>
  4835. * symbols.c (scm_sysintern0): New function. Contains the core of
  4836. old scm_sysintern but doesn't take a second value argument.
  4837. (scm_sysintern): Now uses scm_sysintern0.
  4838. (scm_sysintern_no_module_lookup): Renamed to
  4839. scm_sysintern0_no_module_lookup and doesn't take a second value
  4840. argument any longer.
  4841. * symbols.h (scm_sysintern0: Added declaration.
  4842. * options.c (scm_init_opts): Use scm_sysintern0 instead of
  4843. scm_sysintern when interning option keys. Otherwise we risk
  4844. destroying the values of already interned variables.
  4845. * symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
  4846. scheme-level boolean (use SCM_NFALSEP).
  4847. * backtrace.c (scm_init_backtrace): Make Scheme-level variable
  4848. `the-last-stack'.
  4849. (scm_backtrace): New function. (C version of old function from
  4850. boot-9.scm) Motivation: Make it possible to display backtraces
  4851. without depending on boot-9.scm. (I'm uncertain if this
  4852. motivation is good enough...)
  4853. * root.h (scm_root_state): Add member the_last_stack_var.
  4854. (scm_the_stack_var): Defined to scm_root->the_last_stack_var.
  4855. * root.c (mark_root): Mark scm_the_last_stack_var.
  4856. * init.c (scm_start_stack): Initialize scm_the_last_stack_var to
  4857. SCM_BOOL_F.
  4858. Sun Feb 9 18:04:41 1997 Mikael Djurfeldt <mdj@kenneth>
  4859. * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
  4860. 1. mark_lazy_catch didn't mark the smob.
  4861. 2. Both functions above have standard variants:
  4862. (lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
  4863. free_lazy_catch --> scm_free0.
  4864. Fri Feb 7 17:30:26 1997 Jim Blandy <jimb@floss.cyclic.com>
  4865. * throw.c (scm_internal_lazy_catch): New function.
  4866. (scm_lazy_catch): Rewritten to use it.
  4867. (scm_ithrow): Handle the new lazy catch representation.
  4868. Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
  4869. that doesn't have a jmpbuf is a lazy catch clause.
  4870. (tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
  4871. free_lazy_catch, print_lazy_catch, lazy_catch_funs,
  4872. make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
  4873. smob.
  4874. (scm_init_throw): Register the new lazy-catch smob type.
  4875. * throw.h (scm_internal_lazy_catch): decl for new function.
  4876. * throw.c (scm_internal_catch): Doc fixes.
  4877. * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
  4878. configure.in. Including this might cause problems if applications
  4879. that link against libguile include their own copies of alloca, but
  4880. if they're using autoconf, they should be adding libguile to LIBS
  4881. before calling AC_FUNC_ALLOCA anyway, in which case they'll find
  4882. the copy in libguile, and things will be okay. (I think.)
  4883. Thu Feb 6 03:10:32 1997 Gary Houston <ghouston@actrix.gen.nz>
  4884. * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
  4885. unif.c.
  4886. strop.h: move prototypes too.
  4887. Wed Feb 5 08:33:00 1997 Gary Houston <ghouston@actrix.gen.nz>
  4888. * posix.c (scm_init_posix): don't intern EINTR since it's now done
  4889. elsewhere.
  4890. * ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
  4891. etc. I deleted them from filesys.c long ago, but didn't
  4892. notice they were here too (although ineffective since
  4893. sys/stat.h wasn't included).
  4894. Tue Feb 4 18:17:50 1997 Tom Tromey <tromey@cygnus.com>
  4895. * eval.c: Don't define alloca in GCC case. gcc will automatically
  4896. use __builtin_alloca if appropriate.
  4897. Tue Feb 4 16:57:40 1997 Jim Blandy <jimb@floss.cyclic.com>
  4898. * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
  4899. (SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
  4900. that values of automatic variables are preserved. See comments
  4901. for safe_setjmp for details.
  4902. Change from Thomas Morgan:
  4903. * variable.c: Include eq.h.
  4904. (var_equal): New function.
  4905. (variable_smob): Use var_equal as the discriminator for variables.
  4906. * throw.c (s_throw): Remove extraneous declaration.
  4907. * configure.in: Call AC_FUNC_ALLOCA, to see if we have alloca.
  4908. * eval.c: Add necessary CPP cruft to support that.
  4909. * configure, Makefile.in, scmconfig.h.in: regenerated.
  4910. Change from Thomas Morgan:
  4911. * procprop.c (scm_procedure_properties): Convert the Scheme
  4912. boolean returned by scm_procedure_p into a C boolean before using
  4913. it as a condition for SCM_ASSERT.
  4914. (scm_procedure_property): Likewise.
  4915. * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
  4916. indications of Unixness.
  4917. * stime.c: Same.
  4918. Tue Feb 4 05:07:35 1997 Gary Houston <ghouston@actrix.gen.nz>
  4919. * net_db.c (scm_lnaof): change scheme name from lnaof to inet-lnaof.
  4920. Mon Feb 3 06:12:37 1997 Gary Houston <ghouston@actrix.gen.nz>
  4921. * read.c (scm_lreadr): use scm_misc_error to improve one of the
  4922. "unknown # object" error messages.
  4923. * strop.c (scm_i_index, scm_i_rindex): combine into one procedure
  4924. (scm_i_index) and declare it static. Add a 'direction' argument
  4925. to indicate what way the search should go.
  4926. (scm_i_index): throw out-of-range error instead of wrong-type-arg
  4927. if indices are bad.
  4928. (scm_string_index, scm_string_rindex): adjust usage of scm_i_index.
  4929. strop.h: remove scm_i_index, scm_i_rindex prototypes.
  4930. Fri Jan 31 04:33:11 1997 Gary Houston <ghouston@actrix.gen.nz>
  4931. * ioext.c, ioext.h: remove obsolete _sys_ from 9 procedure names.
  4932. * posix.c (scm_fork): Scheme name changed from fork to primitive-fork,
  4933. to avoid clash with various scsh forks.
  4934. Thu Jan 30 20:14:09 1997 Mikael Djurfeldt <mdj@syk-0606.pdc.kth.se>
  4935. The following two changes (ramap.c, throw.c) are motivated by the
  4936. apparent unportability of forward declarations of static arrays of
  4937. the form `static foo bar[];'.
  4938. * ramap.c (scm_array_fill_x): Moved above scm_array_fill_int.
  4939. (ra_rpsubrs, ra_asubrs): Moved to the top of array code.
  4940. * throw.c (scm_throw): Moved above scm_ithrow.
  4941. * options.h: Removed the extern declarations of scm_yes_sym and
  4942. scm_no_sym since these are static.
  4943. Fri Jan 24 06:16:32 1997 Gary Houston <ghouston@actrix.gen.nz>
  4944. * ports.c: add SCM_PROC declarations for pt-size and pt-member.
  4945. * Makefile.am: remove AWK=@AWK@.
  4946. Add a rule for generating errnos.list.
  4947. (CLEANFILES): put errnos.list here instead of in DISTCLEANFILES.
  4948. * configure.in: add AC_SUBST(AWK) and AC_SUBST(ERRNO_EXTRACT).
  4949. don't extract errnos, just set a variable (avoids the
  4950. need to recompile error.c just because configure is run.)
  4951. * unif.h: update prototypes.
  4952. * unif.c (scm_uniform_array_read,write): change the offset and
  4953. length arguments to start and end, for consistency.
  4954. * __scm.h: uncomment SCM_ARG6 and SCM_ARG7, I needed SCM_ARG6.
  4955. * ioext.h: update prototypes.
  4956. * ioext.c (scm_read_delimited_x): replaces scm_read_line and
  4957. scm_read_line_x, it's a more general procedure using an
  4958. interface from scsh. read-line and read-line! are now defined
  4959. in boot-9.scm.
  4960. Note that the new read-line trims the terminator
  4961. by default, previously it was appended to the returned string. An
  4962. optional argument specifies how to process the terminator (scsh
  4963. compatible). For the old behaviour: (read-line port 'concat).
  4964. scm_read_line, scm_read_line_x: deleted. (read-line port 'split)
  4965. returns a pair, but is converted to multiple values if the scsh
  4966. module is loaded.
  4967. socket.h: update prototypes.
  4968. * socket.c (scm_recvfrom): for consistency with other procedures,
  4969. take start and end as separate optional arguments.
  4970. (scm_recv, scm_recvfrom): don't allow the second argument
  4971. to be a size, only a buffer. Change the scheme names to
  4972. recv! and recvfrom!. Don't return the buffer.
  4973. * ioext.h, posix.h: move prototypes too.
  4974. * ioext.c, posix.c (scm_read_line, scm_read_line_x, scm_write_line:
  4975. moved back from posix.c to ioext.c. Also move #includes of "genio.h"
  4976. "read.h" and "unif.h".
  4977. * ioext.c: include "chars.h"
  4978. Mon Jan 20 19:54:49 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4979. * dynl.c: The dynamic linking and module registration functions
  4980. are now defined even when dynamic linking is not available for the
  4981. host system. Some of their functionality can be done without
  4982. dynamic linking; when it's really needed, they throw errors.
  4983. Thu Jan 16 16:39:29 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4984. * configure.in: Only define DYNAMIC_LINKING when one of the system
  4985. dependent functions is detected.
  4986. * dynl.c (scm_dynamic_func): New function to get the address of a
  4987. function in a dynamic object.
  4988. (scm_dynamic_call, scm_dynamic_args_call): Accept the values
  4989. produced by scm_dynamic_func as the thing to call.
  4990. Sun Jan 12 21:09:42 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4991. * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c: Restructured.
  4992. (scm_register_module_xxx, scm_registered_modules,
  4993. scm_clear_registered_modules): New functions.
  4994. Sat Jan 11 21:37:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
  4995. * symbols.c (scm_sysintern): Renamed to
  4996. scm_sysintern_no_module_lookup.
  4997. (scm_sysintern): New function to take the place of the old
  4998. scm_sysintern. It uses the current toplevel lookup closure to give
  4999. the symbol its value. This is a temporary hack to put packages
  5000. like gtcltk into their own module.
  5001. (scm_can_use_top_level_lookup_closure_var): New variable to tell
  5002. us whether `scm_top_level_lookup_closure_var' has been initialized
  5003. and is usable.
  5004. * eval.c (scm_init_eval): Set it.
  5005. Sat Jan 18 00:03:31 1997 Gary Houston <ghouston@actrix.gen.nz>
  5006. * fports.c (scm_open_file): pass errno to scm_syserror_msg.
  5007. * filesys.h: update prototypes. Remove macros: SCM_FD_P, SCM_FD_FLAGS,
  5008. SCM_FD.
  5009. * filesys.c (scm_sys_stat, scm_sys_lstat): pass errno to
  5010. scm_syserror_msg.
  5011. (scm_sys_read_fd, scm_sys_write_fd, scm_sys_close, scm_sys_lseek,
  5012. scm_sys_dup): deleted: FD capability will be added to other
  5013. procedures.
  5014. Remove support for the FD object type: scm_tc16_fd, scm_fd_print,
  5015. scm_fd_free, fd_smob, scm_intern_fd.
  5016. (scm_open): renamed from scm_sys_open. Return a port instead of
  5017. an FD object. Make the mode argument optional.
  5018. (scm_sys_create): deleted, it's just a special case of open.
  5019. (scm_init_filesys): move interning of constants O_CREAT etc.,
  5020. here (were previously using SCM_CONST_LONG macro).
  5021. Add missing constants: O_RDONLY, O_WRONLY, O_RDWR, O_CREAT.
  5022. don't newsmob fd.
  5023. (numerous _sys_ procedures): remove gratuitous _sys_ from names.
  5024. include "fports.h" and <stdio.h>
  5025. (scm_stat, scm_select): don't support FD objects.
  5026. * error.h: adjust scm_syserror_msg prototype.
  5027. * error.c (scm_syserror_msg): take an extra argument for errno.
  5028. Using the global value didn't always work, since it could be
  5029. reset by procedure calls in the message or args arguments.
  5030. * fports.c (scm_setbuf0): call setbuf even if FIONREAD is not defined.
  5031. I don't understand why the check was there (and what about the
  5032. ultrix check?)
  5033. * strop.c (scm_string_copy): allow shared substrings to be copied.
  5034. * unif.h: corresponding change to prototypes.
  5035. * unif.c (scm_uniform_array_read_x, scm_uniform_array_write_x):
  5036. recognize two new optional arguments: offset and length. Allow
  5037. the port argument to be an integer (file descriptor, for scsh).
  5038. Include <unistd.h> for "read" prototype.
  5039. Tue Jan 14 02:42:02 1997 Gary Houston <ghouston@actrix.gen.nz>
  5040. * socket.c: don't include filesys.h.
  5041. Mon Jan 13 03:47:04 1997 Gary Houston <ghouston@actrix.gen.nz>
  5042. * Makefile.am: add AWK=@AWK@ (?)
  5043. * Makefile.am (EXTRA_DIST): add errnos_cnvt.awk, errnos.default,
  5044. errnos_get.c.
  5045. Add a rule to generate errnos.c from errnos.
  5046. * error.c (scm_init_error): include errnos.c.
  5047. * errnos_cnvt.awk: new file, converts the list of errno codes to
  5048. C expressions.
  5049. * errnos_get.c: new file.
  5050. * errnos.default: new file, contains errnos to try if they can't
  5051. be extracted from errno.h.
  5052. * configure.in: if using GCC, try and extract errno codes from
  5053. errno.h.
  5054. Added AC_PROG_AWK.
  5055. Sat Jan 11 14:47:00 1997 Marius Vollmer <mvo@zagadka.ping.de>
  5056. * configure.in: Replaced AC_PROG_RANLIB with AM_PROG_LIBTOOL.
  5057. * Makefile.am: Made libguile into a libtool library.
  5058. * PLUGIN/guile.config: Removed "-L ../libguile" from xtra_cflags.
  5059. Set libtool_libs to indicate that libguile is a libtool library.
  5060. See guile/ChangeLog for details.
  5061. * .cvsignore: ignore "*.lo", the libtool library objects.
  5062. Wed Jan 8 06:54:54 1997 Gary Houston <ghouston@actrix.gen.nz>
  5063. * net_db.c (scm_getserv): add missing SCM_ALLOW_INTS.
  5064. use htons in getservbyport argument.
  5065. Tue Jan 7 18:11:24 1997 Jim Blandy <jimb@floss.cyclic.com>
  5066. * ports.h (SCM_PTOBNUM): Removed extraneous semicolon.
  5067. * smob.h: (SCM_PTOBNUM): Removed entirely; this definition is a
  5068. duplicate.
  5069. * objprop.c (scm_object_property): No need to take the CDR of the
  5070. value returned by scm_object_properties, since Aug 20 change.
  5071. * configure.in: When checking for struct linger, #include
  5072. <sys/types.h> as well as <sys/socket.h>. I've never known
  5073. <sys/types.h> to cause any portability problems, and Solaris's
  5074. <sys/socket.h> needs it.
  5075. * configure: Rebuilt.
  5076. I think the Sun compiler has chosen a perverse way to interpret
  5077. ANSI declarations combined with K&R definitions. We'll
  5078. appease it a little bit. But when it invades France, we fight.
  5079. * print.c (scm_iprlist): Change 'tlr' argument to an int.
  5080. * print.h (scm_iprlist): Here too.
  5081. * numbers.c (scm_divbigdig): Change definition to match
  5082. declaration in numbers.h.
  5083. * unif.c (scm_makflo): Change definition to match declaration in
  5084. unif.h.
  5085. * init.c (scm_boot_guile): Don't return the value of
  5086. scm_boot_guile_1. This function doesn't return a value;
  5087. scm_boot_guile_1 doesn't return a value (or return at all).
  5088. * eval.c (unmemocopy): Add a semicolon to appease the Sun
  5089. compiler.
  5090. * simpos.c (SYSTNAME): Add case for AIX; otherwise it won't
  5091. compile. I have a feeling this function is a bad idea anyway ---
  5092. one should always test for features, not systems.
  5093. * smob.h (SCM_SMOBNUM, SCM_PTOBNUM): Remove extraneous
  5094. semicolons. Only pure luck kept this from being noticed earlier.
  5095. Tue Jan 7 15:04:06 1997 Mikael Djurfeldt <mdj@kenneth>
  5096. * socket.c (scm_recvfrom): Added missing semicolon.
  5097. Mon Jan 6 20:39:08 1997 Gary Houston <ghouston@actrix.gen.nz>
  5098. * socket.c (scm_recvfrom): allow buff_or_size to be a list containing
  5099. the buffer and start and end positions for scsh networking
  5100. implementation.
  5101. Sun Jan 5 13:53:53 1997 Jim Blandy <jimb@floss.cyclic.com>
  5102. * configure.in: Revert previous change to this file; the problem
  5103. is due to transient automake weirdness.
  5104. * configure: Rebuilt.
  5105. * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in, not
  5106. PLUGIN/guile.libs. configure generates the latter from the former.
  5107. * Makefile.in: Rebuilt.
  5108. * configure.in: Call AM_PROG_INSTALL; the automake manual says we
  5109. need this if we install scripts, like guile-snarf.
  5110. * configure: Rebuilt.
  5111. Thu Jan 2 01:56:38 1997 Marius Vollmer <mvo@zagadka.ping.de>
  5112. * Makefile.am (EXTRA_DIST): Added DYNAMIC-LINKING
  5113. Sat Dec 28 19:14:01 1996 Gary Houston <ghouston@actrix.gen.nz>
  5114. * socket.c (scm_addr_vector): fix faulty scm_listify.
  5115. Sat Dec 28 13:55:58 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5116. * read.c (scm_lreadr): Encountering EOF after skipping a SCSH
  5117. style block comment is no longer considered an error.
  5118. Fri Dec 27 13:44:23 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5119. * PLUGIN/guile.libs.in: New file.
  5120. * PLUGIN/guile.libs: Removed from repository.
  5121. * configure.in: Create PLUGIN/guile.libs from
  5122. PLUGIN/guile.libs.in. This is for including additonal libraries
  5123. needed for dynamic linking.
  5124. * Makefile.am (EXTRA_DIST): Distribute PLUGIN/guile.libs.in
  5125. instead of PLUGIN/guile.libs.
  5126. * Makefile.am: Added explicit dependency "dynl.o: dynl.x".
  5127. Sun Dec 22 23:06:14 1996 Jim Blandy <jimb@floss.cyclic.com>
  5128. * list.c (scm_delq_x, scm_delv_x, scm_delete_x): Delete all
  5129. occurrences of the given element from the list, not just the
  5130. first. This is how the Emacs Lisp functions behave, how the
  5131. analogous Common Lisp functions behave, and (I believe) how the
  5132. older Maclisp functions worked. I realize that this change may
  5133. break code, but it seemed better to break it before the Guile
  5134. release than after.
  5135. * gc.c (scm_protect_object, scm_unprotect_object): New functions.
  5136. Their prototypes were already present in gc.h, but they weren't
  5137. implemented.
  5138. (scm_init_storage): Initialize scm_protects.
  5139. * root.c (scm_protects): New element of scm_sys_protects.
  5140. * net_db.h (scm_init_net_db): Fix spelling from scm_init_netdb.
  5141. Sat Dec 21 15:38:32 1996 Jim Blandy <jimb@floss.cyclic.com>
  5142. * libguile.h: Added #include "libguile/net_db.h".
  5143. * libguile.h: Don't #include "libguile/libpath.h", contrary to Oct
  5144. 30 change. That file is only meant for communication between the
  5145. configuration process and load.c. If code linked against libguile
  5146. wants to get at the paths mentioned in libpath.h, it can call
  5147. functions declared in load.h.
  5148. Sat Dec 21 14:50:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5149. * libguile.h: Removed #include "libguile/fdsocket.h"
  5150. * net_db.c: Added #include <sys/socket.h>.
  5151. Sat Dec 21 00:33:03 1996 Gary Houston <ghouston@actrix.gen.nz>
  5152. * filesys.c (scm_input_waiting_p): use select in preference to
  5153. FIONREAD, since the latter doesn't detect EOF.
  5154. Throw error if neither select nor FIONREAD available.
  5155. * socket.c (scm_connect): take a port, not a fd object.
  5156. (scm_fill_sockaddr): throw an error if fam is not recognised.
  5157. (scm_bind): use scm_fill_sockaddr.
  5158. (scm_listen): take a port, not a fd object.
  5159. (scm_accept): take and return a port. return #f in the car if
  5160. address can't be got
  5161. (scm_sock_fd_to_port): new procedure.
  5162. (scm_socket): use scm_sock_fd_to_port.
  5163. (scm_addr_vector): throw error if unrecognised address type.
  5164. take an extra argument with the calling procedure name.
  5165. (scm_getsockname): take a port. return #f if address can't be got.
  5166. (scm_getpeername): take a port. return #f if address can't be got.
  5167. (scm_recvfrom): take a port. return #f for address component if can't
  5168. be got.
  5169. (scm_sendto, scm_socketpair, scm_getsockopt scm_shutdown,
  5170. scm_setsockopt, scm_recv, scm_send): take a port not a fd object.
  5171. Fri Dec 20 23:06:53 1996 Jim Blandy <jimb@floss.cyclic.com>
  5172. * throw.c (scm_internal_catch): Make body funcs and handler funcs
  5173. use separate data pointers, to allow them to be designed
  5174. independently and reused.
  5175. (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message):
  5176. Renamed from catch_body, catch_handler, and uncaught_throw; made
  5177. generically useful.
  5178. (struct scm_catch_body_data): Renamed from catch_body_data; moved
  5179. to throw.h.
  5180. (scm_catch): Use the above.
  5181. (scm_throw): Don't bother printing a message for an uncaught
  5182. throw; we establish a default handler in init.
  5183. * throw.h (scm_internal_catch): Prototype updated.
  5184. (scm_body_thunk, scm_handle_by_proc, scm_handle_by_message): New
  5185. decls.
  5186. (struct scm_body_thunk_data): New structure, used as data
  5187. argument to scm_body_thunk.
  5188. * init.c (struct main_func_closure): New structure, packaging up
  5189. the data to pass to the user's main function.
  5190. (scm_boot_guile): Create one. Pass it to scm_boot_guile_1.
  5191. (scm_boot_guile_1): Pass it through to invoke_main_func. Use
  5192. scm_internal_catch to establish a catch-all handler, using
  5193. scm_handle_by_message. This replaces the special-case code in
  5194. scm_throw.
  5195. (invoke_main_func): Body function for scm_internal_catch; invoke
  5196. the user's main function, using the main_func_closure pointer to
  5197. decide what to pass it.
  5198. * root.c (struct cwdr_body_data): Remove handler_proc member.
  5199. (cwdr): Use scm_handle_by_proc instead of cwdr_handler.
  5200. (cwdr_handler): Removed.
  5201. Thu Dec 19 00:00:26 1996 Gary Houston <ghouston@actrix.gen.nz>
  5202. * socket.h (SCM_P): update bind prototype.
  5203. * socket.c (scm_init_socket): intern PF_UNSPEC, PF_UNIX, PF_INET.
  5204. include "feature.h".
  5205. (scm_socket): return a port, not a file descriptor object.
  5206. include "fports.h" and <unistd.h>
  5207. (scm_bind): take a port, not a file descriptor object.
  5208. take an extra argument for address args.
  5209. * net_db.c (scm_init_net_db): intern INADDR_ANY, INADDR_BROADCAST,
  5210. INADDR_NONE, INADDR_LOOPBACK.
  5211. Tue Dec 17 22:58:26 1996 Gary Houston <ghouston@actrix.gen.nz>
  5212. * init.c: include net_db.h and not fdsocket.h.
  5213. (scm_boot_guile_1): call scm_init_net_db and not scm_init_fdsocket.
  5214. * Makefile.am: corresponding changes.
  5215. * socket.h: renamed from fdsocket.h, fix names.
  5216. * net_db.h: renamed from socket.h, fix names.
  5217. * socket.c: renamed from fdsocket.c.
  5218. remove _sys from procedure names.
  5219. (scm_init_socket): rename from scm_init_fdsocket. include socket.x.
  5220. add "socket" to features list.
  5221. * net_db.c: renamed from socket.c.
  5222. remove _sys from procedure names.
  5223. (scm_init_net_db): rename from scm_init_socket. include net_db.x.
  5224. add "net-db" to features list.
  5225. include "net_db.h". don't include <sys/socket.h> or
  5226. <sys/un.h>.
  5227. Thu Dec 19 14:03:24 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5228. * tags.h (scm_tags): Removed comma at end of last enumerator.
  5229. Thu Dec 19 02:54:59 1996 Jim Blandy <jimb@floss.cyclic.com>
  5230. Don't use GCC extensions to allocate space for debugging frames.
  5231. (Here he goes again! Why do we put up with this?!)
  5232. * debug.h (scm_debug_frame): Make the 'vect' member a pointer to
  5233. an scm_debug_info structure, not an in-line array of them. Add
  5234. 'info' member, to say how many vect elements we've used, for eval
  5235. frames.
  5236. * eval.c (SCM_CEVAL): Use alloca to allocate space for vect. Use
  5237. a new variable debug_info_end to mark the end of vect, instead of
  5238. the address of the 'info' pointer itself.
  5239. [DEVAL] (ENTER_APPLY, SCM_CEVAL, SCM_APPLY): Remove casts of
  5240. &debug to scm_debug_frame *; debug is a real scm_debug_frame now.
  5241. (SCM_APPLY): Explicitly allocate space for debug.vect.
  5242. * debug.c (scm_m_start_stack): Same, for vframe.vect.
  5243. * stacks.c: Adjusted for new debug frame structure.
  5244. (RELOC_INFO, RELOC_FRAME): New macros.
  5245. (stack_depth, read_frames): Use them, and new scm_debug_frame
  5246. element 'info', instead of magically knowing that eval frames have
  5247. an info pointer sitting after vect.
  5248. (scm_make_stack, scm_stack_id, scm_last_stack_frame): Use
  5249. RELOC_FRAME.
  5250. (scm_init_stacks): Formatting tweaks.
  5251. Wed Dec 18 14:57:57 1996 Jim Blandy <jimb@floss.cyclic.com>
  5252. Give GCC more control flow information, so it can be sure that
  5253. variables aren't used uninitialized.
  5254. * error.h (scm_error, scm_syserror, scm_syserror_msg,
  5255. scm_sysmissing, scm_num_overflow, scm_out_of_range,
  5256. scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
  5257. scm_misc_error): Tell GCC that these functions never return.
  5258. * struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
  5259. out the field type, call abort if SCM_ASSERT returns, to placate
  5260. the optimizer.
  5261. * stacks.c (scm_make_stack, scm_last_stack_frame): abort if
  5262. scm_wta ever returns. We can't handle this case anyway, and this
  5263. gives the optimizer more information.
  5264. * unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
  5265. scm_wta ever returns.
  5266. In some cases, the code is fine, but GCC isn't smart enough to
  5267. figure that out; this usually happens when one variable is only
  5268. initialized and used when a particular condition holds true, and
  5269. we know that condition will never change within a given invocation
  5270. of the function. In this case, we simply initialize the variables
  5271. to placate the compiler, hopefully to a value which will cause a
  5272. crash if it is ever actually used.
  5273. * print.c (scm_iprin1): Initialize mw_pos.
  5274. * read.c (scm_lreadrecparen): Initialize tl2, ans2.
  5275. * throw.c (scm_ithrow): Initialize dynpair.
  5276. * unif.c (scm_uniform_vector_ref): Initialize cra.
  5277. * struct.c (init_struct): Initialize prot.
  5278. * mbstrings.c (scm_print_mb_symbol): Initialize mw_pos and inc.
  5279. * strports.c (scm_eval_0str): Don't return uninitialized garbage
  5280. if EXPR contains no expressions.
  5281. Wed Dec 18 11:43:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5282. * eval.c, debug.h: Revert changes of Dec 16 and Nov 21. They
  5283. cause an infinite loop (???). So much for the algebraic
  5284. equivalency of variable-sized arrays and alloca...
  5285. Tue Dec 17 20:29:03 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5286. * backtrace.c (scm_display_error): Bugfix: scm_procedure_p returns
  5287. a SCM boolean, not a C boolean.
  5288. Sat Dec 14 23:21:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5289. * gc.c (SCM_MTRIGGER_HYSTERESIS): New memory management parameter.
  5290. (scm_must_malloc, scm_must_realloc): Added a hysteresis to the
  5291. rules for raising scm_mtrigger. Previously, unfortunate but not
  5292. unlikely circumstances could result in almost constant invokation
  5293. of the gc. Now, this situations should be less likely, but they
  5294. are not prevented completely.
  5295. Tue Dec 17 16:19:07 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5296. * numbers.c (scm_fuck): Procedure removed; looks like old test
  5297. code.
  5298. * numbers.h: Prototype removed.
  5299. Mon Dec 16 18:20:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5300. * debug.h (scm_debug_frame): Change `vect' member from an in-line
  5301. array to a pointer, to match my Nov 21 change in eval.c.
  5302. Fri Dec 13 16:12:14 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5303. * libguile.h: Added #include "libguile/backtrace.h", #include
  5304. "libguile/stacks.h".
  5305. * strings.c (scm_string scm_make_string scm_string_ref
  5306. scm_string_set_x scm_string_equal_p scm_string_append):
  5307. Bugfix according to scm patch from Aubrey Jaffer:
  5308. Corrected long-standing
  5309. (not (eqv? (integer->char 128)
  5310. (string-ref (make-string 1 (integer->char 128)) 0)))
  5311. bug found by John Kozak <jk@noontide.demon.co.uk>.
  5312. * strports.c, strports.h: Make scm_eval_0str return the value of
  5313. the last expression evaluated (previously, it returned void).
  5314. * strports.c, strports.h: New function: scm_read_0str. Does what
  5315. it sounds like.
  5316. Tue Dec 10 23:38:43 1996 Gary Houston <ghouston@actrix.gen.nz>
  5317. * simpos.c (scm_getenv): return #f if string can't be found in the
  5318. environment instead of throwing an exception, for compatibility
  5319. with numerous other systems.
  5320. Mon Dec 9 23:23:35 1996 Tom Tromey <tromey@cygnus.com>
  5321. * Makefile.am (.c.x): Use guile-snarf.
  5322. * configure.in (AC_OUTPUT): Generate guile-snarf; make it
  5323. executable.
  5324. * guile-snarf.in: New file, resurrected from old guile-snarf.sh.
  5325. Mon Dec 9 18:36:50 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
  5326. * backtrace.c (scm_display_error_message): Made non-static, and
  5327. renamed from display_error_message.
  5328. * backtrace.h (scm_display_error_message): Added extern decl.
  5329. * throw.c (uncaught_throw): Use it to display the error message.
  5330. Mon Dec 9 10:10:38 1996 Tom Tromey <tromey@cygnus.com>
  5331. * inet_aton.c: Use #if 0, not #ifdef 0.
  5332. Mon Dec 9 06:36:48 1996 Gary Houston <ghouston@actrix.gen.nz>
  5333. * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
  5334. to convert the returned value.
  5335. (scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
  5336. the offset argument.
  5337. Sun Dec 8 21:06:38 1996 Jim Blandy <jimb@duality.gnu.ai.mit.edu>
  5338. Add new interface to catch/throw, usable from C as well as
  5339. Scheme.
  5340. * throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
  5341. (scm_internal_catch): New function, replaces...
  5342. (scm_catch_apply): Deleted.
  5343. * throw.c (scm_catch_apply): Deleted; replaced with a more general
  5344. mechanism which is a bit more code, but can be used nicely from C
  5345. and implement the Scheme semantics as well.
  5346. (scm_internal_catch): This is the replacement; it's named after
  5347. the analogous function in Emacs.
  5348. (scm_catch): Reimplemented in terms of the above.
  5349. (struct catch_body_data, catch_body, catch_handler): New
  5350. functions, used by scm_catch.
  5351. * root.c (cwdr): Reimplemented in terms of scm_internal_catch.
  5352. (struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
  5353. support for new cwdr.
  5354. * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
  5355. Oct 30.
  5356. Sun Dec 8 17:55:34 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5357. * acconfig.h: Added DYNAMIC_LINKING symbol.
  5358. * configure.in: Add option and checks for dynamic linking.
  5359. * dynl.c, dynl-dl.c, dynl-dld.c, dynl-shl.c, dynl-vms.c,
  5360. dynl.h: New files for dynamic linking support.
  5361. * Makefile.am (libguile_a_SOURCES):
  5362. Added "dynl.c".
  5363. (modinclude_HEADERS): Added "dynl.h".
  5364. (EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
  5365. "dynl-vms.c".
  5366. * init.c (scm_boot_guile_1): Call
  5367. scm_init_dynamic_linking to initialize dynamic linking support.
  5368. Thu Dec 5 22:47:53 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5369. * init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
  5370. (as we Schemers say). It needs to be global, so that I can tweak
  5371. it for the proper operation of unexec.
  5372. (scm_boot_guile_1_live): New variable, see above.
  5373. Sun Dec 1 00:00:49 1996 Tom Tromey <tromey@cygnus.com>
  5374. * guile-snarf.sh: Removed.
  5375. * PLUGIN/guile.libs: Added dependency for -lm.
  5376. * acinclude.m4: Renamed from aclocal.m4.
  5377. * PLUGIN/greet: Removed.
  5378. * Makefile.am, aclocal.m4: New files.
  5379. * configure.in: Updated for Automake.
  5380. Thu Nov 28 00:23:55 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5381. * eval.c (scm_definedp): Use top_level_lookup_closure_var
  5382. and not top_level_lookup_thunk_var.
  5383. Wed Nov 27 22:04:19 1996 Jim Blandy <jimb@baalperazim.frob.com>
  5384. * Makefile.in (ancillary): List ChangeLog-scm, not ChangeLog.scm.
  5385. Wed Nov 27 14:14:56 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5386. * eval.c (scm_definedp): Incompatibly changed to be a builtin
  5387. Scheme function, instead of syntax. Single argument is now a
  5388. symbol.
  5389. Thu Nov 21 20:26:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5390. * ramap.c (scm_ra_sum, scm_ra_difference, scm_ra_product,
  5391. scm_ra_divide): Properly terminate statements passed as arguments
  5392. to IVDEP macros. (Thanks to Bernard Urban.)
  5393. * eval.c (SCM_CEVAL): Use alloca, not GCC's extensions for arrays
  5394. with non-constant sizes. (Thanks to Bernard Urban.)
  5395. Thu Nov 21 11:17:42 1996 Jim Blandy <jimb@floss.cyclic.com>
  5396. It's an "eval closure", not an "eval thunk." A thunk is a
  5397. function of no arguments.
  5398. * root.h (struct scm_root_state): Renamed
  5399. top_level_lookup_closure_var from top_level_lookup_thunk_var.
  5400. (scm_top_level_lookup_closure_var): Renamed from
  5401. scm_top_level_lookup_thunk_var.
  5402. * root.c (mark_root): Uses changed.
  5403. * gdbint.c (gdb_eval, gdb_binding): Uses changed.
  5404. * init.c (scm_start_stack): Uses changed.
  5405. * eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
  5406. Change scheme-visible name to *top-level-lookup-closure* from
  5407. *top-level-lookup-thunk*.
  5408. Tue Nov 19 22:43:31 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5409. * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
  5410. pass to scm_mark_locations. (Thanks to Aubrey Jaffer.)
  5411. Sun Nov 10 13:35:05 1996 Jim Blandy <jimb@floss.cyclic.com>
  5412. * gc.c (struct scm_heap_seg_data): Doc fixes.
  5413. * gc.c (scm_gc_sweep): Empty all segments' freelists before
  5414. sweeping. Then, prepend each segment's free cells to its
  5415. freelist, rather than wiping out the old value. (Thanks to Marius
  5416. Vollmer.)
  5417. * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
  5418. scm_check_freelist, scm_debug_newcell): New functions and
  5419. variables, for debugging freelist problems.
  5420. * pairs.h (SCM_NEWCELL): New debugging version added.
  5421. * gc.h (scm_debug_newcell): Added extern declaration, used by
  5422. debugging version of SCM_NEWCELL.
  5423. Sat Nov 9 19:02:46 1996 Jim Blandy <jimb@floss.cyclic.com>
  5424. On some systems <libc.h> conflicts with <unistd.h>, and should not
  5425. be #included at all.
  5426. * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
  5427. * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
  5428. * configure.in: Call it.
  5429. * posix.c, filesys.c: Use its results to decide whether or not to
  5430. #include <libc.h>.
  5431. * configure, scmconfig.h.in: Rebuilt with autoconf and
  5432. autoheader.
  5433. Wed Nov 6 16:19:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5434. * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
  5435. pointer to the stdio stream before calling scm_setbuf0, so the
  5436. latter will be able to retrieve it. I'm surprised this didn't
  5437. segfault earlier. (Thanks to Christopher Lee.)
  5438. Wed Nov 6 16:01:20 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5439. * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
  5440. of `lazy-catch'.
  5441. Sat Nov 2 21:01:48 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5442. * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
  5443. number of stack narrowing specifier pairs. The first specifier in
  5444. a pair controls inner border, the second the outer border. A
  5445. number means cut that number of frames, a procedure object means
  5446. cut until that object is found in operator position in a frame.
  5447. * root.c (cwdr): Bugfix.
  5448. * read.c: Recording of positions disabled by default.
  5449. * procs.c (scm_closure_p): New function.
  5450. * posix.c (scm_tmpnam): New function.
  5451. * load.c: Added #include "throw.h".
  5452. (scm_sys_search_load_path): Bugfix: Don't add an extra '/' if path
  5453. ends with '/'.
  5454. * load.c, load.h (scm_read_and_eval_x): New function.
  5455. * eval.c: Renamed debug option "deval" to "debug".
  5456. (scm_eval_x): `eval!' is no longer accessible from the scheme
  5457. level. Motivation: We can't allow operations which introduce
  5458. glocs into the scheme level. Guile's type system can't handle
  5459. these as data. Use `eval' or `read-and-eval!' as replacement.
  5460. * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
  5461. SCM_CONSP since this is a macro!; Set vframe.prev to
  5462. scm_last_debug_frame instead of 0. In this way we can look
  5463. "above" the virtual start stack frame if we wish.
  5464. (scm_debug_hang): New function: Useful for debugging Guile in
  5465. certain tricky situations. Will probably be removed later...
  5466. * debug.h: Changed semantics of debug option "backtrace". This
  5467. option now only indicates whether we want automatic backtrace at
  5468. an error.
  5469. Wed Oct 30 00:31:55 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5470. * ports.c: #include "filesys.h"
  5471. (scm_char_ready_p): input_waiting renamed and moved to filesys.c.
  5472. * filesys.c, filesys.h (scm_input_waiting_p): Moved from ports.c.
  5473. Motivation: This is system specific code which is related to file
  5474. I/O. It also may use select. Added code by Gary Houston to
  5475. detect presence of character in stdio buffers.
  5476. * libguile.h: #include "libguile/libpath.h"
  5477. * Makefile.in (libpath.h): Renamed definition of: LIBRARY_PATH -->
  5478. SCM_LIBRARY_DIR; Added definitions of: SCM_PKGDATA_DIR,
  5479. SCM_SITE_DIR; Install libpath.h among the other include files.
  5480. * load.c, load.h (scm_sys_package_data_dir): New function.
  5481. Mon Oct 28 11:43:41 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5482. * stacks.h: Bugfix: Don't use tail-array length field as stack
  5483. length field! This screwed GC.
  5484. Tue Oct 22 01:01:00 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5485. * _scm.h: Added #ifndef around definition of macros min and max.
  5486. * __scm.h: Added hooks for threads to plugin to in ints protection
  5487. macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
  5488. SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2. Motivation: We don't want
  5489. the main code in these macros duplicated and spread over multiple
  5490. files. Renamed SCM_THREADS_SWITCHING_CODE ->
  5491. SCM_THREAD_SWITCHING_CODE.
  5492. Tue Oct 29 14:55:40 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5493. * snarf.h: New file.
  5494. * guile-snarf.sh: New file.
  5495. * Makefile.in (inner_h_files): Added snarf.h
  5496. (ancillary, install, uninstall, distclean): Added actions for
  5497. guile-snarf.
  5498. (.c.x): Use guile-snarf.
  5499. (guile-snarf): New rule, to produce guile-snarf from guile-snarf.sh.
  5500. (gen_c_files): Note that these depend on guile-snarf.
  5501. * _scm.h: Removed the snarfing macros (SCM_PROC, etc). They are
  5502. now in "snarf.h". Added #include "snarf.h" to get them.
  5503. * libguile.h: Added #include "snarf.h".
  5504. (Patches applied and tweaked by Jim Blandy.)
  5505. Tue Oct 29 13:21:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5506. * socket.c: Use K&R style declaration for 'close'; the GNU coding
  5507. standards suggest against providing prototypes for system
  5508. functions. Thanks to Greg Troxel.
  5509. Mon Oct 28 16:48:32 1996 Jim Blandy <jimb@floss.cyclic.com>
  5510. * strports.c (scm_eval_0str): New function.
  5511. #include "read.h", to get prototype for scm_read.
  5512. * Makefile.in (strports.o): Update dependencies.
  5513. * strports.h: New prototype.
  5514. * numbers.c (scm_integer_p): Renamed from scm_int_p; change its
  5515. scheme name from "int?" to "integer?". It seems to do the job.
  5516. * numbers.h: Rename prototype too.
  5517. * scmhob.h (intp): Change definition to refer to scm_integer_p. I
  5518. hope this is right.
  5519. * numbers.c (scm_less_p, scm_gr_p, scm_leq_p, scm_geq_p,
  5520. scm_num_eq_p): Rename these according to R4RS conventions: call
  5521. them <, <=, =, >, and >=, not <?, <=?, =?, >?, and >=?. En route
  5522. to making libguile R4RS compliant without ice-9...
  5523. * load.c (scm_sys_search_load_path): Search for files under all
  5524. extensions listed in the %load-extensions variable. If FILENAME
  5525. is absolute, return it unchanged, without searching the load path.
  5526. (scm_loc_load_extensions): New variable, pointing to
  5527. %load-extensions' value cell.
  5528. (scm_init_load): Initialize it, and the value it points to.
  5529. (scm_primitive_load_path): Improve error reporting.
  5530. * load.c (scm_loc_load_hook): New variable, pointing to value cell
  5531. of new Scheme variable %load-hook.
  5532. (scm_primitive_load): Apply %load-hook to filename.
  5533. Mon Oct 28 06:28:28 1996 Gary Houston <ghouston@actrix.gen.nz>
  5534. * configure.in: add tests for figuring out whether buffered data
  5535. is available in a FILE structure, which is needed by char-ready.
  5536. * acconfig.h: define FILE_CNT_FIELD, FILE_CNT_GPTR and
  5537. FILE_CNT_READPTR.
  5538. * simpos.c (scm_getenv): renamed from scm_sys_getenv. Throw
  5539. exceptions using misc_error instead of syserror. It seems a bit
  5540. odd to throw an exception if a string can't be found in the
  5541. environment, but it's consistent with open-file, stat etc.
  5542. (simpos.h): remove sys_ from getenv.
  5543. * posix.c (scm_putenv): renamed from scm_sys_putenv. If an error
  5544. occurs, throw an error instead of returning errno. Return value
  5545. is now unspecified.
  5546. (numerous in posix.c and posix.h): removed superfluous sys_ from names.
  5547. Sun Oct 27 01:22:04 1996 Gary Houston <ghouston@actrix.gen.nz>
  5548. * filesys.c (scm_stat2scm): derive file type and permissions from
  5549. the stat mode and append them to the returned vector.
  5550. There isn't much overhead in doing this and it avoids the need to
  5551. work with S_IRUSR et al. in Scheme.
  5552. Define symbols scm_sym_regular etc.
  5553. (scm_init_filesys): don't intern S_IRUSR etc.
  5554. * load.c: change s_try_load and s_try_load_path to s_primitive_load
  5555. and s_primitive_load_path.
  5556. * eval.c, load.c, error.c (scm_wta): use scm_misc_error.
  5557. * error.h: don't declare error symbols. prototype for scm_misc_error.
  5558. * stackchk.c (scm_stack_overflow_key): defined here instead of in
  5559. error.c.
  5560. * error.c: use SCM_SYMBOL to set up error keys.
  5561. scm_misc_error: new procedure.
  5562. Fri Oct 25 01:56:30 1996 Jim Blandy <jimb@floss.cyclic.com>
  5563. * read.c (scm_lreadr): Recognize SCSH-style block comments; text
  5564. between `#!' and `!#' is ignored.
  5565. (skip_scsh_block_comment): New function.
  5566. * feature.c (scm_set_program_arguments): New argument, FIRST.
  5567. * feature.h: Update prototype.
  5568. * init.c (scm_boot_guile_1): Pass new argument to
  5569. scm_set_program_arguments.
  5570. Tue Oct 22 20:54:42 1996 Jim Blandy <jimb@floss.cyclic.com>
  5571. * init.c (scm_start_stack): Don't initialize scm_progargs here.
  5572. (scm_boot_guile): Call scm_set_program_arguments here, later than
  5573. the old initialization.
  5574. * init.c: (scm_boot_guile, scm_boot_guile_1): New, simplified
  5575. initialization procedure.
  5576. - Delete in, out, err arguments; there are other perfectly good
  5577. ways to override these when desired.
  5578. - Delete result argument; this function shouldn't ever return.
  5579. - Rename init_func argument to main_func, for less confusion.
  5580. - Delete boot_cmd argument; main_func is more general.
  5581. -Add 'closure' argument, to help people pass data to main_func
  5582. without resorting to global variables.
  5583. - Abort if reentered; don't bother returning an error code.
  5584. - Call scm_init_standard_ports to set up the default/current
  5585. standard ports; no need to pass them to scm_start_stack.
  5586. - Remove code to evaluate the boot_cmd, and start the repl; let
  5587. the user do something like that in main_func if they want.
  5588. - Remove code to package up a return value; main_func can do any
  5589. of that as needed.
  5590. - Call exit (0), instead of returning.
  5591. (scm_start_stack): Don't initialize the I/O ports here; that's
  5592. weird. Delete in, out, err arguments. Move guts to
  5593. scm_init_standard_ports, scm_stdio_to_port.
  5594. (scm_init_standard_ports): New function, to set up current and
  5595. default standard ports.
  5596. (scm_start_stack, scm_restart_stack): Make these static.
  5597. * init.h (scm_boot_guile): Adjust declaration.
  5598. (scm_start_stack, scm_restart_stack): Remove externally
  5599. visible declarations for these.
  5600. (enum scm_boot_status): Removed; now scm_boot_guile never returns.
  5601. * fports.c (scm_stdio_to_port): New function. Its guts used to be
  5602. written out several times in scm_start_stack.
  5603. * fports.h: New declaration for the above.
  5604. * feature.c (scm_set_program_arguments): New function.
  5605. * feature.h: New declaration for the above.
  5606. * ports.c: Formatting tweak.
  5607. Sun Oct 20 03:29:32 1996 Mikael Djurfeldt <mdj@kenneth>
  5608. * pairs.h, eval.c, eval.h, feature.c, gc.c, list.c, load.c,
  5609. ramap.c, symbols.c: Added new selectors SCM_CARLOC and SCM_CDRLOC
  5610. for obtaining the address of a car or cdr field. Motivation:
  5611. &SCM_CXR make assumptions about the internal structure of the
  5612. SCM_CXR selectors.
  5613. * eval.h, eval.c: Added new selector SCM_GLOC_VAL_LOC.
  5614. Motivation: see SCM_CXRLOC.
  5615. * pairs.h, eval.c, gc.c, init.c, ioext.c, ports.c, ports.h,
  5616. srcprop.h, tags.h, throw.c, unif.c: Added new selectors
  5617. SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR and SCM_SETOR_CDR.
  5618. Motivation: Safer use. Some other macros are defined in terms of
  5619. these operations. If these are defined using the SCM_SETCXR
  5620. (<e1>, SCM_CXR (<e1>) <op> <e2>) pattern a complex <e1> will lead
  5621. to inefficiency and an <e1> with side-effects could potentially
  5622. break. Also, these particular operations are heavily utilized in
  5623. the garbage collector. In unoptimized code there will be a
  5624. measurable speedup.
  5625. * alist.c, arbiters.c, continuations.c, debug.c, debug.h, eval.c,
  5626. eval.h, feature.c, filesys.c, fports.c, gc.c, gsubr.c, init.c,
  5627. ioext.c, kw.c, list.c, load.c, mallocs.c, numbers.c, numbers.h,
  5628. pairs.c, pairs.h, ports.c, ports.h, posix.c, procprop.c, procs.c,
  5629. procs.h, ramap.c, read.c, root.c, srcprop.c, srcprop.h,
  5630. strports.c, symbols.c, tags.h, throw.c, unif.c, variable.c,
  5631. vports.c: Cleaned up use of pairs: Don't make any special
  5632. assumptions about the internal structure of selectors and
  5633. mutators: SCM_CXR (<e1>) = <e2> --> SCM_SETCXR (<e1>, <e2>),
  5634. SCM_CXR (<e1>) &= <e2> --> SCM_SETAND_CXR (<e1>, <e2>) etc.
  5635. (Among other things, this change makes it easier to build Guile
  5636. with certain compilers which have problems with casted lvalues.)
  5637. Fri Oct 18 01:11:56 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
  5638. * stacks.c: Improve selection of relevant stack frames when making
  5639. a stack object. Introduce one level of indirection in the stack
  5640. object to make it possible to "narrow" to a certain region of the
  5641. stack. This facilitates making use of more clever algorithms (not
  5642. implemented) for selecting relevant frames and gives a cleaner
  5643. design since selection of frames can be done independently of
  5644. extraction of frames from the real stack.
  5645. (scm_stack_id): Also take #t as argument which means look at
  5646. current stack.
  5647. * stacks.h: In struct scm_stack: Turn field frames into a pointer.
  5648. Turn n_tail into an integer directly representing current number
  5649. of frames in stack. Add field tail.
  5650. * ports.c (scm_port_line_x, scm_port_column_x): New mutators.
  5651. * debug.c (scm_make_memoized): Made it available at scheme level.
  5652. (scm_unmemoize, scm_memoized_environment): Bugfix: Check for
  5653. SCM_NIMP before applying heavier predicates in argument checking.
  5654. (scm_local_eval): Also take memoized object as argument.
  5655. * backtrace.c (scm_display_error): Just a safety measure: Stacks
  5656. aren't created with zero length, but should such a strange
  5657. creature suddenly turn up...
  5658. Wed Oct 16 11:08:41 1996 Marius Vollmer <mvo@zagadka.ping.de>
  5659. * hashtab.h (scm_hashx_remove_x): Renamed `delete' parameter to
  5660. `del', for the sake of C++ compilers. (Patch applied by JimB.)
  5661. Tue Oct 15 17:06:13 1996 Jim Blandy <jimb@floss.cyclic.com>
  5662. * variable.c (scm_make_variable): Make the name hint optional, as
  5663. documented.
  5664. (anonymous_variable_sym): Renamed from variable_sym. All uses
  5665. changed.
  5666. * load.c (scm_primitive_load, scm_primitive_load_path): Renamed
  5667. from scm_sys_try_load and scm_sys_try_load_path. The Scheme name
  5668. of scm_primitive_load_path was also changed to
  5669. "primitive-load-path", from "%try-load-path". Callers changed.
  5670. We'd like to respect the convention that a function named
  5671. "try-mumble" should behave just like the function called "mumble",
  5672. but return #f instead of signalling some error.
  5673. * load.h: Rename prototypes.
  5674. Tue Oct 15 05:34:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5675. * print.c (make_print_state, grow_print_state), print.h: Modified
  5676. the print state representation: Don't use a tail array for
  5677. recording of circular references. Resizing of the print state
  5678. structure invalidates the print state pointer. To avoid passing
  5679. around an indirect print state reference to all printing
  5680. functions, we instead let the print state reference a resizable
  5681. vector.
  5682. Mon Oct 14 19:25:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5683. * alist.c (scm_sloppy_assq, scm_sloppy_assv, scm_sloppy_assoc):
  5684. Don't crash when passed an improper list terminated by a
  5685. non-immediate value.
  5686. Mon Oct 14 19:08:33 1996 Jim Blandy <jimb@floss.cyclic.com>
  5687. Allocate data for structures on an eight-byte boundary, as
  5688. required by the tagging system.
  5689. * struct.c (alloc_struct): New function.
  5690. (scm_make_struct, scm_make_vtable_vtable): Call it.
  5691. * struct.h (scm_struct_n_extra_words): Bump to 3.
  5692. (scm_struct_i_ptr): New "field".
  5693. * gc.c (scm_gc_sweep): When we need to free the data, use the
  5694. information stored by alloc_struct to find the beginning of the
  5695. block allocated to the structure, so we can free it.
  5696. Mon Oct 14 17:07:55 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5697. * init.c (scm_boot_guile_1): Moved scm_init_struct in front of
  5698. scm_init_stacks.
  5699. * debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
  5700. (scm_debug_info): New member: id.
  5701. * stacks.c: Stacks are now represented as structs; Stacks have an
  5702. id given to them by `start-stack'.
  5703. (scm_last_stack_frame): Added predicates `stack?' and `frame?'.
  5704. * stacks.h: Added declarations of scm_stack_p and scm_frame_p;
  5705. Changed stack representation.
  5706. * debug.c (scm_procedure_name): Try procedure property `name' for
  5707. compiled closures aswell.
  5708. * gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
  5709. * eval.c: scm_i_name moved to gsubr.c
  5710. (scm_m_define): Record names of all kinds of procedure
  5711. objects. (Earlier, only closures were recorded.)
  5712. * procprop.h: Added declaration of scm_i_name.
  5713. * gsubr.c: Added global scm_i_name. Added #include "procprop.h".
  5714. (scm_make_gsubr): Record names of compiled closures.
  5715. Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5716. * debug.c, debug.h: Removed obsolete code.
  5717. * continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
  5718. stacks.c: Renamed regs --> scm_contregs.
  5719. * print.c (scm_free_print_state): Cleanup print state before
  5720. returning it to pool. It is better to do it here than in
  5721. scm_prin1 since scm_prin1 is called often.
  5722. * srcprop.c (scm_source_properties, scm_set_source_properties_x,
  5723. s_set_source_property_x): Check that first argument is a pair or a
  5724. memoized object.
  5725. * srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
  5726. scm_i_line, scm_i_column and scm_i_breakpoint global.
  5727. * init.c: Added #include "backtrace.h" and #include "stacks.h".
  5728. (scm_boot_guile_1): Added calls to scm_init_backtrace and
  5729. scm_init_stacks.
  5730. * debug.h: Added debug object smob declaration and macro
  5731. definitions.
  5732. * configure.in: Build with backtrace.o and stacks.o if debug
  5733. support enabled.
  5734. * Makefile.in: Added entries for new files: backtrace.c,
  5735. backtrace.h, stacks.c and stacks.h.
  5736. * symbols.c (scm_sym2ovcell): Fixed documentation.
  5737. * _scm.h (min, max): Added.
  5738. * async.c: Moved `min' macro to _scm.h.
  5739. * debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
  5740. SCM_BACKTRACE_INDENT.
  5741. * eval.c: Added new debug options `maxdepth' and `indent'.
  5742. * print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
  5743. * print.h: Added selector SCM_PRINT_STATE.
  5744. * print.c: New functions: scm_make_print_state,
  5745. scm_free_print_state.
  5746. * print.h: Added declarations for scm_make_print_state,
  5747. scm_free_print_state.
  5748. * debug.c (scm_m_start_stack): New acro.
  5749. * debug.h: Small cleanup.
  5750. * init.c (scm_boot_guile_1): Moved scm_init_debug below
  5751. scm_init_eval.
  5752. Sun Oct 13 20:14:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5753. * __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
  5754. arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
  5755. chars.c, chars.h, continuations.c, continuations.h, debug.c,
  5756. debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
  5757. eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
  5758. filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
  5759. gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
  5760. hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
  5761. kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
  5762. markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
  5763. objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
  5764. ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
  5765. procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
  5766. root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
  5767. simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
  5768. stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
  5769. strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
  5770. struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
  5771. unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
  5772. version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
  5773. declare functions with prototypes. (Patch thanks to Marius
  5774. Vollmer.)
  5775. More prototype-related changes from Marius Vollmer:
  5776. * gdb_interface.h: Wrapped header file in #ifdef/#endif
  5777. * gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
  5778. * ports.h (ptobfuns): Added prototypes. This means some casting in
  5779. fports.c.
  5780. * fports.c: Added casts for initializations, since the functions
  5781. are defined to take FILE * as their stream argument, not SCM.
  5782. * fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
  5783. * genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
  5784. to `char *str_data' to conform to prototype.
  5785. Sat Oct 12 21:49:29 1996 Gary Houston <ghouston@actrix.gen.nz>
  5786. * error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
  5787. * __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
  5788. * stime.c, stime.h: use SCM_P method.
  5789. Sat Oct 12 16:16:25 1996 Jim Blandy <jimb@floss.cyclic.com>
  5790. * eval.c (scm_nconc2last): Don't accept an empty list; apply must
  5791. be given at least two arguments. Insist that lst's last element
  5792. be a list, but don't make any requirements of its predecessors.
  5793. Fri Oct 11 03:58:25 1996 Jim Blandy <jimb@floss.cyclic.com>
  5794. * eval.c (scm_nconc2last): Revert last change; there seems to be
  5795. other stuff going on here.
  5796. Fri Oct 11 02:43:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5797. * eval.c (scm_nconc2last): Make sure that each element of lst
  5798. (which is a list of argument lists, except for the tail) is a
  5799. proper list, i.e., finite and terminated by '().
  5800. Thu Oct 10 21:09:13 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5801. * unif.c (scm_ra_set_contp): Localize `inc' declaration.
  5802. Clarifies flow.
  5803. * struct.c (scm_make_struct, scm_make_vtable_vtable): Use the
  5804. symbolic name for the tag, scm_tc3_cons_gloc, instead of just
  5805. saying "1".
  5806. * vectors.c (scm_make_vector): Fill vectors with the undefined
  5807. value, to help make Guile Scheme code more portable to other
  5808. Schemes.
  5809. * symbols.c (scm_intern_obarray_soft, scm_sysintern): Doc fixes.
  5810. * symbols.h, tags.h: Doc fixes.
  5811. Wed Oct 9 19:39:29 1996 Jim Blandy <jimb@floss.cyclic.com>
  5812. * async.c (scm_take_signal): Doc fixes.
  5813. Mon Oct 7 22:30:34 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5814. * numbers.c (scm_divbigint): When the remainder is zero, we don't
  5815. want to subtract it from the modulus; we just want to leave it
  5816. alone.
  5817. Mon Oct 7 00:14:17 1996 Mikael Djurfeldt <mdj@kenneth>
  5818. * init.c (scm_boot_guile_1): Bugfix: i --> base in argument to
  5819. `scm_init_threads'.
  5820. * throw.h (scm_catch_apply): Removed the `lazyp' argument.
  5821. * throw.c (scm_catch_apply): Finished implementation of
  5822. `lazy-catch'.
  5823. Sun Oct 6 05:26:05 1996 Gary Houston <ghouston@actrix.gen.nz>
  5824. * filesys.c (scm_sys_select): move SCM_ALLOW_INTS past the sreturn
  5825. check.
  5826. (scm_init_filesys): set "i/o-extensions" feature.
  5827. include feature.h.
  5828. Sat Oct 5 12:22:00 1996 Jim Blandy <jimb@floss.cyclic.com>
  5829. * Makefile.in (root.o): Correct dependencies.
  5830. Sat Oct 5 18:40:42 1996 Mikael Djurfeldt <mdj@kenneth>
  5831. * Makefile.in: Added dependency entry for root.o.
  5832. * continuations.c, debug.[ch], eval.c, gscm.c init.c, root.c,
  5833. throw.c: Renamed last_debug_info_frame -> scm_last_debug_frame.
  5834. * init.c (scm_start_stack): Set initial root continuation number
  5835. to 0.
  5836. * procs.c: New function: scm_thunk_p.
  5837. * procs.h: Added declarations of scm_thunk_p.
  5838. * root.c: Renamed `call-with-new-root' -->
  5839. `call-with-dynamic-root'.
  5840. (cwdr): Removed allocation of new root state. This should be done
  5841. separately by use of scm_make_root.
  5842. (scm_apply_with_dynamic_root): New function: Does what it
  5843. sounds like. Needed when spawning threads.
  5844. * root.h: Added member last_debug_frame to root state.
  5845. Added #include "libguile/debug.h"
  5846. * throw.c: Renamed scm_catch --> scm_catch_apply and added more
  5847. arguments. The motivation is that code in root.c needs catch
  5848. functionality, and we want to avoid code duplication.
  5849. New functions: scm_catch, scm_lazy_catch. These are wrappers for
  5850. scm_catch_apply. scm_lazy_catch is intended to introduce catch
  5851. handlers that run without popping the stack into the dynwind
  5852. chain.
  5853. * throw.h: Added prototypes for scm_catch_apply and
  5854. scm_lazy_catch.
  5855. Thu Oct 3 11:12:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5856. * root.h (scm_root, scm_set_root): Decouple thread support details
  5857. by introducing the selector SCM_THREAD_LOCAL_DATA and the mutator
  5858. SCM_SET_THREAD_LOCAL_DATA.
  5859. * print.c (scm_iprlist): Bugfix: Added SCM_ECONSP tests in hare
  5860. and tortoise scanning loop.
  5861. Thu Oct 3 00:04:53 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5862. * Makefile.in: Rebuild dependencies.
  5863. * libguile.h: #include "libguile/print.h" before "smob.h", since
  5864. the latter uses the print_state structure.
  5865. * throw.c (scm_ithrow): Use the correct variable when checking to
  5866. see if a given element of scm_dynwinds is a valid catch.
  5867. * throw.c (scm_ithrow): If scm_dynwinds has invalid list
  5868. structure, abort; don't just silently ignore the garbage.
  5869. * _scm.h: #include "print.h" here, since it seems to be used just
  5870. about everywhere.
  5871. * eval.c, gdbint.c, genio.h, numbers.h, smob.h, srcprop.c,
  5872. strports.c, unif.h: Don't #include "print.h".
  5873. Tue Oct 1 05:15:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5874. * feature.h (scm_loc_features): Removed external declaration.
  5875. (Bug fix suggested by Petr Adamek <adamek@mit.edu>.)
  5876. Tue Oct 1 00:00:10 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  5877. * feature.c (scm_init_feature): Added threads feature (needs to be
  5878. initialized here, since features doesn't exist when
  5879. scm_init_threads is called).
  5880. * libguile.h: Added #include "libguile/../threads/threads.h".
  5881. (This is a kludge to get thread support working. This should be
  5882. fixed.)
  5883. * configure.in, acconfig.h: Added flags for thread support.
  5884. * scmsigs.c: Define `signal' to be `pthread_signal' if using
  5885. mit-pthreads.
  5886. * gc.c (scm_igc): Added SCM_THREAD_CRITICAL_SECTION_START and
  5887. SCM_THREAD_CRITICAL_SECTION_END. Moved marking of root data to
  5888. root.c:mark_root.
  5889. * _scm.h: Added conditional #include "threads.h"
  5890. * __scm.h (SCM_ASYNC_TICK): Added call to macro
  5891. SCM_THREADS_SWITCHING_CODE.
  5892. * init.c (scm_start_stack): Call `scm_make_root' to dynamically
  5893. allocate the basic dynamic root object.
  5894. (scm_boot_guile): Added call to scm_init_root.
  5895. * root.c, root.h: Added root smob.
  5896. (cwdr, scm_call_with_new_root, scm_dynamic_root, scm_app_wdr): New
  5897. functions: Implements dynamic roots mostly according to spec in
  5898. SCM manual. Main difference is that the second argument is a
  5899. throw handler rather than an error "thunk".
  5900. * root.h: Added declaration of scm_init_root.
  5901. * root.c: Added #include "genio.h", #include "smob.h", #include
  5902. "pairs.h", #include "throw.h", #include "dynwind.h", #include
  5903. "eval.h"
  5904. (scm_init_root): Added #include "root.x".
  5905. * throw.c: Added #include "stackchk.h"
  5906. (scm_catch): Changed SCM_DEFER_INTS --> SCM_REDEFER_INTS and
  5907. SCM_ALLOW_INTS --> SCM_REALLOW_INTS. This is so that scm_catch
  5908. can be used in scm_call_with_new_root; Added reenabling of stack
  5909. checking when catching a throw.
  5910. Mon Sep 30 21:48:11 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5911. * list.c, list.h: Use SCM_P instead of CPP hair. Doc fixes.
  5912. * list.c (scm_member, scm_memv, scm_memq): Return #f if a matching
  5913. element is not found, as per R4RS.
  5914. Sat Sep 28 18:13:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5915. * list.c: Doc fixes throughout.
  5916. Sat Sep 28 02:07:43 1996 Gary Houston <ghouston@actrix.gen.nz>
  5917. * strings.c, strings.h: (scm_makfrom0str, scm_makefrom0str_opt:
  5918. declare the char * to be const. Avoids a warning in rgx.c.
  5919. * ports.h: spelling fix.
  5920. * filesys.c (scm_sys_stat, scm_sys,lstat): include file name in
  5921. error messages.
  5922. * load.c (scm_sys_try_load_path): throw an error if file not found
  5923. (like it says it in NEWS).
  5924. Fri Sep 27 18:27:01 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5925. * symbols.c (scm_intern_obarray_soft): Initialize the new symbol's
  5926. PROPS slot to '(), not #f; it's an empty alist.
  5927. * throw.h, throw.c: Use SCM_P instead of #if hair.
  5928. Remove special support for uncaught throws; see throw.c for
  5929. rationale.
  5930. * throw.c (uncaught_throw): New function.
  5931. (scm_ithrow): Call uncaught_throw if we don't find a throw
  5932. target; don't mess with scm_bad_throw_vcell.
  5933. (scm_bad_throw_vcell): Variable deleted.
  5934. (scm_init_throw): Don't initialize it.
  5935. * throw.c (scm_ithrow): Don't let outer key matches shadow inner
  5936. #t catches.
  5937. Wed Sep 25 04:35:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5938. * numbers.c (scm_istr2int): If the number is short (as most
  5939. numbers are), just call scm_small_istr2int to deal with it.
  5940. (scm_small_istr2int): New function, created by un-#ifdefing the
  5941. non-bignum version of scm_istr2int and renaming it.
  5942. Tue Sep 24 06:48:38 1996 Gary Houston <ghouston@actrix.gen.nz>
  5943. * load.c (scm_sys_try_load): don't check whether value returned
  5944. by scm_open_file is #f, it won't be. Always return SCM_UNSPECIFIED.
  5945. Change the Scheme name from %try-load to primitive-load.
  5946. * error.c (scm_error): convert a NULL message to SCM_BOOL_F.
  5947. Can avoid passing a message, allowing it to be derived in the
  5948. error handler (e.g., if we want to throw to the key both from
  5949. Scheme and C).
  5950. Mon Sep 23 00:42:15 1996 Mikael Djurfeldt <mdj@kenneth>
  5951. * print.c (scm_iprin1, scm_prin1, scm_iprlist): Circular
  5952. references now have a new appearance which is more compact and
  5953. also gives a clue about what the target of the reference is.
  5954. By setting parameters in the print state, more fancy printing can
  5955. be achieved. This is used by the (not yet commited) backtrace
  5956. code.
  5957. Sun Sep 22 17:10:06 1996 Mikael Djurfeldt <mdj@kenneth>
  5958. * eval.c, numbers.h, unif.h, smob.h, srcprop.c: Added #include
  5959. "print.h"
  5960. * print.c: Added #include "struct.h". Removed function
  5961. scm_prlist.
  5962. * print.h: Modified prototypes for scm_iprlist, scm_prin1 and
  5963. scm_iprin1. Removed prototype for scm_prlist.
  5964. * arbiters.c (prinarb),
  5965. async.c (print_async),
  5966. debug.c (prindebugobj, prinmemoized),
  5967. eval.c (prinprom, prinmacro),
  5968. filesys.c (scm_fd_print, scm_dir_print),
  5969. kw.c (print_kw),
  5970. mallocs.c (prinmalloc),
  5971. numbers.c, numbers.h (scm_floprint, scm_bigprint),
  5972. smob.h (scm_smobfuns),
  5973. srcprop.c (prinsrcprops),
  5974. throw.c (prinjb),
  5975. unif.c, unif.h (scm_raprin1, rapr1),
  5976. variable.c (prin_var): Changed argument `int writing' to
  5977. `scm_print_state *pstate'.
  5978. * init.c (scm_boot_guile): Moved scm_init_struct upwards so
  5979. that it will be called before scm_init_print.
  5980. * print.c (scm_prin1): Print states are now allocated when calling
  5981. scm_prin1 and then passed around to all printing functions as an
  5982. argument. A cache `print_state_pool' enables reuse of print
  5983. states.
  5984. (scm_make_print_state): New function.
  5985. (scm_iprin1): Adaption to print states.
  5986. (scm_iprlist): An initial "hare and tortoise" scan brings down
  5987. time complexity to O (depth * N). (Better time complexity will be
  5988. achieved when the printing code is completely rewritten.)
  5989. Fri Sep 20 22:01:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5990. * aclocal.m4 (GUILE_STRUCT_UTIMBUF): Use AC_CACHE_CHECK instead of
  5991. AC_CACHE_VAL; #define UTIMBUF_NEEDS_POSIX outside AC_CACHE_VAL, so
  5992. it gets done whether or not the cache variable has a value.
  5993. Thu Sep 19 17:06:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
  5994. Distinguish #f and ().
  5995. * __scm.h: #undef SICP.
  5996. * pairs.h (SCM_EOL): Delete this definition, equating it with
  5997. SCM_BOOL_F.
  5998. * tags.h (SCM_EOL): Give it a new definition here; I think I found
  5999. the value it used to have. Doc fixes, too.
  6000. Thu Sep 19 15:33:51 1996 Mikael Djurfeldt <mdj@kenneth>
  6001. * struct.c (scm_make_struct_layout, init_struct, scm_struct_ref,
  6002. scm_struct_set_x), struct.h, gc.c (scm_gc_mark): Completed Tom
  6003. Lord's implementation of structs, allowing for tail arrays as
  6004. described in the manual. Also fixed some bugs. (Both the interface
  6005. and the implementation should be improved.)
  6006. * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS
  6007. * print.c, print.h: Closures now print like #<procedure foo (x)>.
  6008. People who whish to see the source can do `(print-enable 'source)'.
  6009. Removed #ifdef DEBUG_EXTENSIONS.
  6010. Thu Sep 19 00:00:29 1996 Gary Houston <ghouston@actrix.gen.nz>
  6011. * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
  6012. integer (assuming for now accepting an integer is a good thing).
  6013. * error.c, fports.c: replace use of %S in lgh_error args with %s.
  6014. %S will be used instead for write'ing arguments.
  6015. * unif.c (scm_transpose_array): change arguments in the SCM_WNA
  6016. asserts. fix a few other asserts.
  6017. (scm_aind, scm_enclose_array, scm_array_in_bounds_p,
  6018. scm_uniform_vector_ref, scm_array_set_x,
  6019. scm_dimensions_to_unform_array): change args in
  6020. SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
  6021. strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
  6022. scm_substring_fill_x): likewise.
  6023. gsubr.c (scm_gsubr_apply): likewise.
  6024. eval.c (SCM_APPLY): likewise.
  6025. * eval.c (4 places): replace scm_everr with lgh_error or
  6026. scm_wrong_num_args.
  6027. * error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
  6028. scm_memory_error): new procedures.
  6029. scm_everr: deleted. can use scm_wta, dropping first two args.
  6030. scm_error: convert NULL subr to SCM_BOOL_F.
  6031. * __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
  6032. SCM_ARGERR.
  6033. * stackchk.c (scm_report_stack_overflow): use lgh_error instead
  6034. of scm_wta.
  6035. * error.c, error.h: new error keys: scm_arg_type_key,
  6036. scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
  6037. scm_misc_error_key.
  6038. scm_wta: reimplement using lgh_error instead of scm_everr.
  6039. Wed Sep 18 17:13:35 1996 Mikael Djurfeldt <mdj@kenneth>
  6040. * gdbint.c: scm_lread now has one more argument.
  6041. * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
  6042. scm_port_\1; Added mutator scm_set_port_filename_x (used when
  6043. loading source from non-file ports, which, e. g., happens when
  6044. using the Emacs interface).
  6045. * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
  6046. object.
  6047. * read.c: Added code for recording of positions of source code
  6048. expressions; New functions: recsexpr, scm_lreadrecparen;
  6049. _scm_make_srcprops --> scm_make_srcprops
  6050. (scm_flush_ws): Removed updating of positions counters. This work
  6051. is already done by scm_gen_getc
  6052. * read.h: Added prototype for scm_lreadrecparen
  6053. * print.c: Added #include "alist.h"
  6054. * eval.c: Added #include "hash.h"
  6055. * eq.c: Added #include "ramap.h"
  6056. * options.c: Documentation fixes.
  6057. * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
  6058. (scm_init_srcprop): Adjusted size of initial source-whash. Name
  6059. changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
  6060. --> scm_make_srcprops
  6061. * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
  6062. _scm_make_srcprops --> scm_make_srcprops; Remove one layer of
  6063. function calls in the definition of the whash access macros.
  6064. Tue Sep 17 11:33:16 1996 Lee Iverson <leei@Canada.AI.SRI.COM>
  6065. * init.c (scm_boot_guile): Add level of indirection to
  6066. scm_boot_guile_1() to ensure that stack base pointer is properly
  6067. initialized. There was no guarantee that variable i was the
  6068. highest/lowest variable on stack (i.e. the call frame of
  6069. scm_boot_guile was not completely protected from gc).
  6070. Tue Sep 17 01:40:56 1996 Gary Houston <ghouston@actrix.gen.nz>
  6071. * ports.h (scm_port_table): put back file_name, it will be used to
  6072. support debugging. Undo related changes in fports.c, ioext.c,
  6073. ports.c, gc.c.
  6074. Sun Sep 15 03:58:29 1996 Gary Houston <ghouston@actrix.gen.nz>
  6075. * ports.h (scm_port_table): remove file_name member for now, it seems
  6076. undesirable.
  6077. * fports.c (scm_open_file): don't set file_name in PTAB.
  6078. (prinfport): don't use file_name in PTAB.
  6079. * ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
  6080. * ports.c (scm_add_to_port_table): don't intialize file_name.
  6081. (scm_port_file_name): remove for now.
  6082. * gc.c (scm_gc_mark): don't mark PTAB file_name.
  6083. * fports.h (scm_mkfile): prototype deleted.
  6084. * fports.c (scm_mkfile): merged into scm_open_file to simplify.
  6085. * debug.c, unif.c: use scm_out_of_range instead of
  6086. wta for range errors (ASSERT still needs work).
  6087. * error.c, error.h (scm_out_of_range): new procedure.
  6088. * error.c, error.h (scm_out_of_range_key): new key.
  6089. * posix.c (scm_sync): #else was missing.
  6090. * error.c, error.h: append _key to names scm_num_overflow and
  6091. scm_system_error.
  6092. * __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
  6093. of consing an empty list.
  6094. (SCM_SYSERROR etc.): move into error.c, make them procedures instead
  6095. of macros, saves code and string space.
  6096. error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
  6097. fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
  6098. lower case. Rename scm_syserror_m to scm_syserror_msg.
  6099. error.h: prototypes for new procedures.
  6100. Sat Sep 14 03:35:41 1996 Gary Houston <ghouston@actrix.gen.nz>
  6101. * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
  6102. * error.c, error.h: setup scm_num_overflow key.
  6103. * __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
  6104. Remove definition of SCM_OVSCM_FLOW.
  6105. * fports.c (scm_open_file): use SCM_SYSERROR_M.
  6106. * __scm.h: SCM_SYSERROR_M: new macro for system errors with an
  6107. explicit message and args.
  6108. * error.c, error.h, __scm.h: change system_error_sym to
  6109. scm_system_error.
  6110. * error.c (system_error_sym): remove leading %% from the Scheme name
  6111. "%%system-error".
  6112. * __scm.h (SCM_SYSMISSING): Redefine using lgh_error.
  6113. Fri Sep 13 12:58:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6114. * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
  6115. fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
  6116. numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
  6117. tags.h, throw.c, variable.h: Name cleanup. Lots of xxxSCM_yyy
  6118. renamed. (These were introduced by unsupervised name
  6119. substitution.)
  6120. Fri Sep 13 01:19:08 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6121. * print.c: Added code for detection of circular references during
  6122. printing. (init_ref_stack, grow_ref_stack): New functions. Added
  6123. a hook for printing of closures (accessible via print options).
  6124. This leads to a split of calls to scm_iprin1 into two classes:
  6125. elementary print operations (e. g. the code which prints a smob)
  6126. still use scm_iprin1 while top level calls (like scm_display) use
  6127. scm_prin1. scm_prin1 begins by clearing the data structure used
  6128. to record reference information.
  6129. * print.h: Added declarations of scm_prin1 and scm_prlist.
  6130. * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1
  6131. * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1
  6132. * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1
  6133. * error.c (err_head): scm_iprin1 --> scm_prin1
  6134. * debug.c: Adjusted header comment.
  6135. * tags.h: Typo.
  6136. Wed Sep 11 17:55:59 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6137. * strerror.c: Doc fix.
  6138. Thu Sep 12 00:00:32 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6139. * gdbint.c (gdb_read): Now possible to run during GC.
  6140. (unmark_port, remark_port): New functions.
  6141. * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR.
  6142. * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
  6143. of allocating a new string object. Also, increase size by
  6144. the factor 2 instead of 1.5.
  6145. Wed Sep 11 15:10:38 1996 Petr Adamek <jimb@floss.cyclic.com>
  6146. * __scm.h (SCM_P): Corrected to run under traditional C.
  6147. * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
  6148. removed.
  6149. * async.c: Calls to scm_sysintern corrected.
  6150. * async.h (scm_async_clock): Redundant declaration removed.
  6151. * continuations.c (scm_dynthrow): Redundant declaration removed.
  6152. * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
  6153. Definition typos corrected.
  6154. * debug.h: Missing declarations of functions in debug.c added
  6155. (lots).
  6156. * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
  6157. Missing declarations to functions in eval.c added.
  6158. * filesys.c: Possibly uninitialized variable rv.
  6159. * gc.h (scm_object_addr, scm_unhash_name): Missing
  6160. declarations of functions defined in gc.c added.
  6161. * genio.c: Possible typos str_data -> wstr_data. ???
  6162. * genio.c: Possibly unintended shadowing of local variable
  6163. `int c' (gotos out of scope of inner `c'). ???
  6164. * init.c: Uninitialized `SCM last' may be used.
  6165. * ioext.h: (scm_sys_isatty_p): Typo.
  6166. * list.h (scm_list_head): Missing prototype for function in
  6167. list.c added.
  6168. * numbers.c (scm_two_doubles): Changed from extern to static
  6169. (is used only within numbers.c).
  6170. * numbers.h: Repeated declarations removed.
  6171. * ports.h (scm_close_all_ports_except): Declaration for the
  6172. function defined in ports.c added.
  6173. * posix.h: Missing declarations added.
  6174. * procs.h (scm_make_subr_opt): Missing declaration added.
  6175. * socket.h (scm_sys_gethost): Missing declaration added.
  6176. * socket.h: Redundant declarations removed (they are in fdsocket.h).
  6177. * srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
  6178. Missing declarations added.
  6179. * stime.h (scm_get_internal_real_time): Repeated declarations removed.
  6180. * struct.c: Uninitialized variable `SCM answer' may be used.
  6181. * unif.c (l2ra): Declaration prototype.
  6182. * unif.c (scm_array_equal_p): Dummy definition removed (it is
  6183. defined in ramap.c).
  6184. * unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
  6185. Redundant declarations removed (they are in ramap.h).
  6186. * variable.h (scm_make_udvariable,
  6187. scm_make_undefined_variable): Declaration corrected to
  6188. correspond variable.c.
  6189. * vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
  6190. Missing declarations added.
  6191. Wed Sep 11 14:38:50 1996 Jim Blandy <jimb@floss.cyclic.com>
  6192. * Makefile.in (distclean): Don't forget to delete fd.h.
  6193. Tue Sep 10 14:01:46 1996 Jim Blandy <jimb@floss.cyclic.com>
  6194. * fd.h.in, tags.h: Trivial cleanups.
  6195. * marksweep.c, marksweep.h: Deleted; marksweep.c was empty, and
  6196. marksweep.h just declared functions from gc.c.
  6197. * gc.h, libguile.h: Don't #include "marksweep.h".
  6198. * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
  6199. marksweep.o, marksweep.h, marksweep.c, and marksweep.x. Other
  6200. dependencies updated.
  6201. * libguile.h: Don't #include "files.h"; it's been deleted.
  6202. * files.c (scm_sys_delete_file): Moved to filesys.c.
  6203. File is now empty; deleted.
  6204. * files.h: Deleted.
  6205. * filesys.c: scm_sys_delete_file is now here. Remove
  6206. #if's; they seem to rely on remnants of an old portability
  6207. regimen. If the problems come up again, solve them properly,
  6208. using autoconf. Specifically: Don't test M_SYSV, and #define
  6209. remove to be unlink if it's #defined; don't use remove just
  6210. because HAVE_STDC_HEADERS is #defined.
  6211. * filesys.h: Add declarations for scm_sys_delete_file.
  6212. * Makefile.in (libobjs, inner_h_files, c_files, gen_c_files): Omit
  6213. files.o, files.h, files.c, and files.x.
  6214. * init.c: Don't #include "files.h", and don't call scm_init_files.
  6215. Use SCM_P instead of PROTO; the latter intrudes on the user's
  6216. namespace.
  6217. * params.h: Deleted; definition of SCM_P moved to...
  6218. * __scm.h: ... here, where it replaces PROTO macro.
  6219. * libguile.h, smob.h: Don't #include "params.h".
  6220. * continuations.c, error.h, feature.h, gc.c, gc.h, init.h, load.h,
  6221. smob.h: Fix prototypes accordingly.
  6222. * Makefile.in: Update dependencies.
  6223. (inner_h_files): Remove params.h.
  6224. * gc.c: #include "gc.h"; every module should include its header,
  6225. to let the compiler cross-check the declarations against the
  6226. definitions.
  6227. * eq.h, files.h, hashtab.h, load.h, mallocs.h, scmsigs.h,
  6228. simpos.h: #include "libguile/__scm.h".
  6229. Mon Sep 9 20:00:15 1996 Jim Blandy <jimb@floss.cyclic.com>
  6230. * init.c: Don't forget to #include smob.h and init.h.
  6231. * Makefile.in: Dependencies updated.
  6232. * smob.h: Use PROTO instead of #if __STDC__.
  6233. * continuations.c (scm_dynthrow): Use PROTO, not SCM_P.
  6234. * __scm.h: Doc fixes.
  6235. * __scm.h, libguile.h: Use "quotes" in the #includes, not
  6236. <angles>; this allows `make depends' to work properly.
  6237. * libguile.h: #include smob.h and pairs.h before the others; they
  6238. define typedefs used by other headers.
  6239. C files should #include only the header files they need, not
  6240. libguile.h (which #includes all the header files); the pointless
  6241. recompilation was wasting my time.
  6242. * Makefile.in (all .o dependency lists): Regenerated.
  6243. * libguile.h: Don't try to get a definition for size_t here...
  6244. * __scm.h: Do it here.
  6245. * _scm.h: Since this is the internal libguile header, put things
  6246. here that all (or a majority) of the libguile files will want.
  6247. Don't #include <libguile.h> here; that generates dependencies on
  6248. way too much. Instead, get "__scm.h", "error.h", "pairs.h",
  6249. "list.h", "gc.h", "gsubr.h", "procs.h", "numbers.h", "symbols.h",
  6250. "boolean.h", "strings.h", "vectors.h", "root.h", "ports.h", and
  6251. "async.h".
  6252. * alist.c: Get "eq.h", "list.h", "alist.h".
  6253. * append.c: Get "append.h", "list.h".
  6254. * arbiters.c: Get "arbiters.h", "smob.h".
  6255. * async.c: Get "async.h", "smob.h", "throw.h", "eval.h".
  6256. * boolean.c: Get "boolean.h".
  6257. * chars.c: Get "chars.h".
  6258. * continuations.c: Get "continuations.h", "dynwind.h", "debug.h",
  6259. "stackchk.h".
  6260. * debug.c: Get "debug.h", "feature.h", "read.h", "strports.h",
  6261. "continuations.h", "alist.h", "srcprop.h", "procprop.h", "smob.h",
  6262. "genio.h", "throw.h", "eval.h".
  6263. * dynwind.c: Get "dynwind.h", "alist.h", "eval.h".
  6264. * eq.c: Get "eq.h", "unif.h", "smob.h", "strorder.h",
  6265. "stackchk.h".
  6266. * error.c: Get "error.h", "throw.h", "genio.h", "pairs.h".
  6267. * eval.c: Get "eval.h", "stackchk.h", "srcprop.h", "debug.h",
  6268. "hashtab.h", "procprop.h", "markers.h", "smob.h", "throw.h",
  6269. "continuations.h", "eq.h", "sequences.h", "alist.h", "append.h",
  6270. "debug.h".
  6271. * fdsocket.c: Get "fdsocket.h", "unif.h", "filesys.h".
  6272. * feature.c: Get "feature.h".
  6273. * files.c: Get "files.h".
  6274. * filesys.c: Get "filesys.h", "smob.h", "genio.h".
  6275. * fports.c: Get "fports.h", "markers.h".
  6276. * gc.c: Get "async.h", "unif.h", "smob.h", "weaks.h",
  6277. "genio.h", "struct.h", "stackchk.h", "stime.h".
  6278. * gdbint.c: Get "gdbint.h", "chars.h", "eval.h", "print.h",
  6279. "read.h", "strports.h", "tag.h".
  6280. * genio.c: Get "genio.h", "chars.h".
  6281. * gsubr.c: Get "gsubr.h", "genio.h".
  6282. * hash.c: Get "hash.h", "chars.h".
  6283. * hashtab.c: Get "hashtab.h", "eval.h", "hash.h", "alist.h".
  6284. * init.c: Get everyone who has an scm_init_mumble function:
  6285. "weaks.h", "vports.h", "version.h", "vectors.h", "variable.h",
  6286. "unif.h", "throw.h", "tag.h", "symbols.h", "struct.h",
  6287. "strports.h", "strorder.h", "strop.h", "strings.h", "stime.h",
  6288. "stackchk.h", "srcprop.h", "socket.h", "simpos.h", "sequences.h",
  6289. "scmsigs.h", "read.h", "ramap.h", "procs.h", "procprop.h",
  6290. "print.h", "posix.h", "ports.h", "pairs.h", "options.h",
  6291. "objprop.h", "numbers.h", "mbstrings.h", "mallocs.h", "load.h",
  6292. "list.h", "kw.h", "ioext.h", "hashtab.h", "hash.h", "gsubr.h",
  6293. "gdbint.h", "gc.h", "fports.h", "filesys.h", "files.h",
  6294. "feature.h", "fdsocket.h", "eval.h", "error.h", "eq.h",
  6295. "dynwind.h", "debug.h", "continuations.h", "chars.h", "boolean.h",
  6296. "async.h", "arbiters.h", "append.h", "alist.h".
  6297. * ioext.c: Get "ioext.h", "fports.h".
  6298. * kw.c: Get "kw.h", "smob.h", "mbstrings.h", "genio.h".
  6299. * list.c: Get "list.h", "eq.h".
  6300. * load.c: Get "load.h", "eval.h", "read.h", "fports.h".
  6301. * mallocs.c: Get "smob.h", "genio.h".
  6302. * markers.c: Get "markers.h".
  6303. * mbstrings.c: Get "mbstrings.h", "read.h", "genio.h", "unif.h",
  6304. "chars.h".
  6305. * numbers.c: Get "unif.h", "genio.h".
  6306. * objprop.c: Get "objprop.h", "weaks.h", "alist.h", "hashtab.h".
  6307. * options.c: Get "options.h".
  6308. * ports.c: Get "ports.h", "vports.h", "strports.h", "fports.h",
  6309. "markers.h", "chars.h", "genio.h".
  6310. * posix.c: Get "posix.h", "sequences.h", "feature.h", "unif.h",
  6311. "read.h", "scmsigs.h", "genio.h", "fports.h".
  6312. * print.c: Get "print.h", "unif.h", "weaks.h", "read.h",
  6313. "procprop.h", "eval.h", "smob.h", "mbstrings.h", "genio.h",
  6314. "chars.h".
  6315. * procprop.c: Get "procprop.h", "eval.h", "alist.h".
  6316. * procs.c: Get "procs.h".
  6317. * ramap.c: Get "ramap.h", "feature.h", "eval.h", "eq.h",
  6318. "chars.h", "smob.h", "unif.h".
  6319. * read.c: Get "alist.h", "kw.h", "mbstrings.h", "unif.h",
  6320. "eval.h", "genio.h", "chars.h".
  6321. * root.c: Get "root.h", "stackchk.h".
  6322. * scmsigs.c: Get "scmsigs.h".
  6323. * sequences.c: Get "sequences.h".
  6324. * simpos.c: Get "simpos.h", "scmsigs.h".
  6325. * smob.c: Get "smob.h".
  6326. * socket.c: Get "socket.h", "feature.h".
  6327. * srcprop.c: Get "srcprop.h", "weaks.h", "hashtab.h", "debug.h",
  6328. "alist.h", "smob.h".
  6329. * stackchk.c: Get "stackchk.h", "genio.h".
  6330. * stime.c: Get "stime.h"."libguile/continuations.h".
  6331. * strings.c: Get "strings.h", "chars.h".
  6332. * strop.c: Get "strop.h", "chars.h".
  6333. * strorder.c: Get "strorder.h", "chars.h".
  6334. * strports.c: Get "strports.h", "print.h", "eval.h", "unif.h".
  6335. * struct.c: Get "struct.h", "chars.h".
  6336. * symbols.c: Get "symbols.h", "mbstrings.h", "alist.h",
  6337. "variable.h", "eval.h", "chars.h".
  6338. * tag.c: Get "tag.h", "struct.h", "chars.h".
  6339. * throw.c: Get "throw.h", "continuations.h", "debug.h",
  6340. "dynwind.h", "eval.h", "alist.h", "smob.h", "genio.h".
  6341. * unif.c: Get "unif.h", "feature.h", "strop.h", "sequences.h",
  6342. "smob.h", "genio.h", "eval.h", "chars.h".
  6343. * variable.c: Get "variable.h", "smob.h", "genio.h".
  6344. * vectors.c: Get "vectors.h", "eq.h".
  6345. * version.c: Get "version.h".
  6346. * vports.c: Get "vports.h", "fports.h", "chars.h", "eval.h".
  6347. * weaks.c: Get "weaks.h".
  6348. * stackchk.h: #include "libguile/debug.h",
  6349. * print.h, read.h: #include "options.h", since everyone who uses
  6350. either of these files will need that.
  6351. * smob.h: #include "ports.h", "genio.h", and "print.h", since
  6352. anyone who uses this file will need them to define the smob
  6353. printing functions. Also, get markers.h, since people will need
  6354. to #define the mark functions.
  6355. * smob.h (scm_ptobfuns, SCM_PTOBNUM): Definitions moved...
  6356. * ports.h: ... to here.
  6357. * ports.h (scm_port_table_size): Explicitly give type as 'int';
  6358. don't rely on archaic C default type rules.
  6359. * fports.h: #include "libguile/ports.h", since you need that in
  6360. order to parse this.
  6361. * genio.h: #include "libguile/print.h", because you need that to
  6362. parse this; don't bother #including "ports.h", since print.h gets
  6363. that.
  6364. * error.h: Don't #include "pairs.h"; _scm.h will do that now.
  6365. * eval.h (scm_top_level_lookup_thunk_var): Remove declaration for
  6366. this; it's now a reference to an element of *scm_root.
  6367. * debug.h: Don't #include "options.h"; the compiler won't be able
  6368. to find that once the headers are installed; instead, #include
  6369. "libguile/options.h".
  6370. * gc.h: Same, with marksweep.h.
  6371. * mbstrings.h: Same, with symbols.h.
  6372. * scmhob.h: Same, with _scm.h.
  6373. * smob.h: Same, with params.h.
  6374. * Makefile.in (depends): Don't nuke scmconfig.h and the generated
  6375. C files; there's no need for this, and it forces recompilations
  6376. unnecessarily.
  6377. Sat Sep 7 06:57:23 1996 Gary Houston <ghouston@actrix.gen.nz>
  6378. * error.c (scm_error): declare scm_error_callback.
  6379. * error.h: prototype for scm_error_callback.
  6380. * __scm.h: define lgh_error.
  6381. (SCM_SYSERROR): redefine using lgh_error.
  6382. Thu Sep 5 22:40:06 1996 Gary Houston <ghouston@actrix.gen.nz>
  6383. * error.c (scm_error): new procedure.
  6384. * error.h: prototype for scm_error.
  6385. * Makefile.in (install): install scmconfig.h from the current
  6386. directory, not $(srcdir).
  6387. Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
  6388. * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
  6389. continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
  6390. feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
  6391. hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
  6392. mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
  6393. posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
  6394. sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
  6395. strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
  6396. tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
  6397. vports.h, weaks.h: #include "libguile/__scm.h", not
  6398. <libguile/__scm.h>. This allows 'gcc -MM' to determine which
  6399. dependencies are within libguile properly.
  6400. Thu Sep 5 11:38:07 1996 Jim Blandy <jimb@floss.cyclic.com>
  6401. * Makefile.in (.c.x): Simplify; there's no need to run this rule
  6402. when scmconfig.h doesn't exist.
  6403. * load.c (scm_sys_try_load): Correct spelling.
  6404. * feature.c (scm_loc_features): Make this static.
  6405. * Makefile.in (libpath.h): Omit trailing slash from path. We
  6406. shouldn't require it of users, so why put it here?
  6407. Move code to initialize and search %load-path from ice-9 to C
  6408. code, so we can use the load-path to find the ice-9 boot code;
  6409. this makes it easier to run Guile without installing it. See
  6410. corresponding changes in guile/Makefile.in.
  6411. * feature.c: Move stuff concerned with the load path to load.c.
  6412. (scm_compiled_library_path): Deleted.
  6413. Don't #include libpath.h here.
  6414. * feature.h: Don't mention scm_compiled_library_path.
  6415. * load.c: #include "libpath.h" here, as well as <sys/types.h>,
  6416. <sys/stat.h>, and <unistd.h> (if present).
  6417. (R_OK): #define if the system hasn't deigned to.
  6418. (scm_loc_load_path): New variable.
  6419. (scm_init_load_path, scm_sys_search_load_path,
  6420. scm_sys_try_load_path): New functions.
  6421. (scm_init_load): Initialize scm_loc_load_path to point to the
  6422. value cell of the Scheme %load-path variable.
  6423. * load.h: Add declarations for scm_sys_search_load_path,
  6424. scm_sys_try_load_path.
  6425. * init.c: Call scm_init_load_path.
  6426. * Makefile.in (feature.o, load.o): Dependencies updated.
  6427. * load.c, load.h: Rewrite using PROTO macro.
  6428. Thu Sep 5 01:54:33 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6429. * gc.c (scm_cellp): New function: C predicate to determine if an
  6430. SCM value can be regarded as a pointer to a cell on the heap.
  6431. * gc.h: Added declaration of scm_cellp.
  6432. * gdb_interface.h: New file: The GDB interface header from the GDB
  6433. distribution.
  6434. * gdbint.c: New file: GDB interface.
  6435. * gdbint.h: New file: GDB interface.
  6436. * libguile.h: Added #include <libguile/gdbint.h>.
  6437. * init.c (scm_boot_guile): Added scm_init_gdbint.
  6438. * Makefile.in: Added gdb_interface.h, gdbint.[hc].
  6439. Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
  6440. found if object files and source are kept separate).
  6441. Wed Sep 4 14:35:02 1996 Jim Blandy <jimb@floss.cyclic.com>
  6442. * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__.
  6443. Wed Sep 4 01:30:47 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6444. * configure.in: Don't substitute the values of TCL_SRC_DIR and
  6445. TK_SRC_DIR; they're not relevant any more.
  6446. * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
  6447. * configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
  6448. Wed Sep 4 00:55:49 1996 Jim Blandy <jimb@floss.cyclic.com>
  6449. * PLUGIN/guile.config (xtra_cflags): Include .. in the header
  6450. search path, so we can find the <libguile/MUMBLE.h> headers.
  6451. * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
  6452. * Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
  6453. implicit in the .c.o rule.
  6454. (.c.x): Don't mention ALL_CFLAGS here; its value is included in
  6455. $(CC) already.
  6456. Put the library path in a header file, instead of passing it on
  6457. the command line in every compilation.
  6458. * Makefile.in (libpath.h): New target.
  6459. (feature.o): Depend on libpath.h.
  6460. (clean): Delete libpath.h.
  6461. (ALL_CFLAGS): Don't use -DLIBRARY_PATH here. Instead ...
  6462. * feature.c: ... #include "libpath.h" here.
  6463. * .cvsignore: Ignore libpath.h.
  6464. Don't install the unwashed masses of Guile header files in the
  6465. main #include path; put most of them in a subdirectory called
  6466. 'libguile'. This avoids naming conflicts between Guile header
  6467. files and system header files (of which there were a few).
  6468. * Makefile.in (pkgincludedir): Deleted.
  6469. (innerincludedir): New variable; this and $(includedir) are enough.
  6470. (INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
  6471. (installed_h_files): Divide this up. Now this variable lists
  6472. those header files which should go into $(includedir) (i.e. appear
  6473. directly in the #include path), and ...
  6474. (inner_h_files): ... this new variable says which files appear in
  6475. a subdirectory, and are referred to as <libguile/mumble.h>.
  6476. (h_files): List them both.
  6477. (install): Create innerincludedir, not pkgincludedir. Put
  6478. the installed_h_files and inner_h_files in their proper places.
  6479. (uninstall): Corresponding changes.
  6480. * alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
  6481. continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
  6482. feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
  6483. ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
  6484. mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
  6485. print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
  6486. sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
  6487. strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
  6488. tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
  6489. vports.h, weaks.h: Find __scm.h in its new location.
  6490. * __scm.h: Find scmconfig.h and tags.h in their new locations
  6491. (they're both "inner" files).
  6492. Tue Sep 3 20:27:35 1996 Jim Blandy <jimb@floss.cyclic.com>
  6493. * Makefile.in (.c.x): Remove duplicate use of $(ALL_CFLAGS).
  6494. Tue Sep 3 19:53:00 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6495. * posix.c: Doc fixes.
  6496. Mon Sep 2 15:22:40 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6497. * socket.c: Don't include a prototype for inet_aton; just use a
  6498. K&R style declaration, to avoid warnings but minimize the chance
  6499. of conflicts with the system.
  6500. On NextStep, <utime.h> doesn't define struct utime, unless we
  6501. #define _POSIX_SOURCE before #including it.
  6502. * aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
  6503. * acconfig.h: New comment text for above CPP symbol.
  6504. * configure.in: Call it.
  6505. * posix.c: #define _POSIX_SOURCE if it seems necessary.
  6506. * configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
  6507. in the list.
  6508. * posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
  6509. testing for __EMX__.
  6510. * posix.c: #include <libc.h>, if it exists.
  6511. * posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
  6512. don't even know if the latter exists.
  6513. * posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
  6514. s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
  6515. s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.
  6516. * posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
  6517. header files don't.
  6518. (scm_init_posix): Use them when initializing the Scheme constants
  6519. of the same name.
  6520. Fri Aug 30 16:01:30 1996 Jim Blandy <jimb@floss.cyclic.com>
  6521. * Makefile.in (libdir, includedir, bindir): Use the
  6522. autoconf-supplied values, instead of deriving them ourselves.
  6523. (pkgincludedir, datadir, pkgdatadir): New variables.
  6524. (install, uninstall): Put the header files in a special
  6525. subdirectory, not in the main search path.
  6526. * Makefile.in (ALL_CFLAGS): Provide the proper value for
  6527. LIBRARY_PATH --- use $(pkgdatadir) instead of $(libdir).
  6528. * Makefile.in (IMPLPATH): Deleted; never used.
  6529. * Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
  6530. on the Tcl/Tk source any more.
  6531. (INCLUDE_CFLAGS): Remove references to the above.
  6532. * Makefile.in (version.o): Corrected dependencies.
  6533. Thu Aug 29 23:06:19 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
  6534. * libguile.h: #include "version.h"
  6535. * init.c (scm_boot_guile): Call scm_init_version.
  6536. * gscm.c (gscm_run_scm): Call scm_init_version.
  6537. * configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
  6538. GUILE_VERSION): AC_DEFINE these.
  6539. (acconfig.h): #undef the above symbols.
  6540. * Makefile.in (libobjs): Add version.o.
  6541. (installed_h_files): Add version.h.
  6542. (c_files): Add version.c.
  6543. (gen_c_files): Add version.x.
  6544. (version.o): New rule.
  6545. (alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
  6546. chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
  6547. fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
  6548. genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
  6549. mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
  6550. objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
  6551. procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
  6552. simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
  6553. strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
  6554. throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
  6555. weaks.o): Add version.h to dependency lists.
  6556. (markers.o): Remove duplicate rule.
  6557. * version.h: New file.
  6558. * version.c: New file.
  6559. Thu Aug 29 15:21:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6560. * symbols.c (scm_strhash): scm_downcase is now a function, not an
  6561. array; use it appropriately. Since GCC is quite happy to
  6562. subscript functions, it never warned us about this; we should use
  6563. -Wpointer-arith in the future. I guess we never tested
  6564. case-insensitivity.
  6565. Wed Aug 28 18:52:22 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6566. * socket.c: Doc and copyright fixes.
  6567. Sat Aug 24 05:29:19 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6568. * debug.c: Fixed and improved gdb support.
  6569. Fri Aug 23 18:00:16 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6570. * socket.c: Added declaration of inet_aton to avoid compiler
  6571. warning. (Hope this solution is correct.)
  6572. * stime.c: Added declaration of ftime. (This is missing in
  6573. Solaris 2 headers.)
  6574. Fri Aug 23 02:03:32 1996 Gary Houston <ghouston@actrix.gen.nz>
  6575. * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
  6576. * Makefile.in (c_files): add strerror.c.
  6577. * strerror.c: new file from Emacs' sysdep.c.
  6578. maybe configure should also check for sys_errlist.
  6579. * configure.in (AC_REPLACE_FUNCS): add strerror.
  6580. Fri Aug 23 03:02:46 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6581. * debug.c (scm_init_debug): Added initialization for
  6582. scm_evaluator_traps.
  6583. * debug.h, debug.c: Various name changes.
  6584. (Mostly prefixing with SCM_.) Renamed "debug-options" -->
  6585. "debug-options-interface". See commentary in options.c.
  6586. * options.h, options.c: Options now have documentation strings.
  6587. Also added a long explanatory commentary.
  6588. * eval.c, print.h, print.c, read.h, read.c: Modifications to
  6589. run-time options.
  6590. * gscm.c, init.c, root.c, throw.c: Bug fixes:
  6591. last_debug_info_frame is now updated in all cases.
  6592. * __scm.h, stackchk.h, stackchk.c: Guile now performs stack
  6593. checking.
  6594. Thu Aug 22 17:34:17 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
  6595. * __scm.h: SCM_STACK_LIMIT removed (now a run-time option).
  6596. Added option STACK_CHECKING.
  6597. Tue Aug 20 18:48:40 1996 Mikael Djurfeldt <djurfeldt@nada.kth.se>
  6598. * Makefile.in: Added {debug,options,srcprop}.{h,c}
  6599. * __scm.h: Removed symbols for debugging support.
  6600. * acconfig.h: Added symbols for debugging support.
  6601. * configure.in: Added user option for debugging support.
  6602. --enable-debug will include the debugging code into libguile.a.
  6603. * continuations.c (scm_make_cont): Enlarged the #if 0 around
  6604. scm_relocate_chunk_to_heap.
  6605. * debug.c: New file: low-level debugging support. It also
  6606. includes support for debugging with gdb. (The extensions to gdb
  6607. are written by Per Bothner at Cygnus.)
  6608. * debug.h: New file: low-level debugging support.
  6609. * eval.c: scm_m_set and SCM_IM_SET no longer supports multiple
  6610. argument pairs. Extensive modifications to the debugging
  6611. evaluator. Added "SECTION:" commentaries to clarify what happens
  6612. when, during double compilation. Renamed EVALIMP --> EVALIM.
  6613. Renamed EVAL --> XEVAL. Removed function evalcar. Defined
  6614. evalcar to scm_eval_car. Added explanation of "EVAL" symbols to
  6615. the beginning of the file. New procedure: scm_unmemocopy.
  6616. Added some global state variables needed by the debugging
  6617. evaluator: scm_ceval_ptr, last_debug_info_frame, debug_mode,
  6618. check_entry, check_apply, check_exit, debug_options and
  6619. evaluator_traps. New acro: undefine.
  6620. * eval.h: Renamed EVAL --> XEVAL.
  6621. * gc.c (scm_init_storage): Renamed scm_make_weak_hash_table
  6622. --> scm_make_weak_key_hash_table.
  6623. * init.c (scm_restart_stack, scm_boot_guile): Added initialization
  6624. of SCM_DFRAME. Added calls to scm_init_{debug,options,srcprop}.
  6625. * libguile.h: Conditionally include debug.h
  6626. * objprop.c (scm_object_properties, scm_set_object_properties_x):
  6627. scm_object_properties shouldn't return handle. `handle' now gets
  6628. initialized in scm_set_object_properties_x. scm_object_properties
  6629. doesn't any longer create an entry in scm_object_whash.
  6630. * options.c: New file: handling of run time options.
  6631. * options.h: New file: handling of run time options.
  6632. * posix.c (scm_getpgrp): Cast pointer to getpgrp.
  6633. * print.c: New procedure: scm_print_options
  6634. * print.h: Defines for print options.
  6635. * read.c: New procedure: scm_read_options
  6636. * read.h: Defines for reader options.
  6637. * root.h: Added scm_source_whash among scm_sys_protects.
  6638. * srcprop.c: New file: source properties.
  6639. * srcprop.h: New file: source properties.
  6640. * throw.c (jbsmob): Jump buffers are now correctly allocated.
  6641. (Bug found by A. Green.)
  6642. * weak.c: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
  6643. * weak.h: Renamed scm_weak_hash_table --> scm_weak_key_hash_table.
  6644. Thu Aug 15 02:05:14 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6645. * libguile.h: #include "objprop.h"; I guess this was forgotten.
  6646. * init.c (scm_boot_guile): Don't call scm_init_rgx; it's a plugin,
  6647. and should be called by the final client.
  6648. Wed Aug 14 21:41:37 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6649. * gc.h: Use the PROTO macro when declaring functions.
  6650. * gc.c: Use the PROTO macro when declaring static functions.
  6651. Remove the CPP hair around function definitions.
  6652. * gc.c (scm_init_storage): Initialize scm_asyncs.
  6653. * libguile.h: #include "__scm.h" before testing the STDC_HEADERS
  6654. preprocessor symbol; "__scm.h" is where it might get #defined.
  6655. * __scm.h: Similar: #include <scmconfig.h> before testing
  6656. HAVE_LIMITS_H.
  6657. * __scm.h: It's HAVE_LIMITS_H, not HAVE_LIMITSH.
  6658. Fri Aug 9 11:09:28 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6659. * init.c (scm_boot_guile): Add init_func argument; call
  6660. (*init_func) instead of calling scm_appinit; it's ucky to
  6661. hard-code names for the user's procedures.
  6662. * init.h (scm_boot_guile): Adjust declaration.
  6663. * __scm.h (PROTO): New macro, for declaring functions with
  6664. prototypes.
  6665. * init.h (scm_start_stack, scm_restart_stack): Use PROTO;
  6666. eliminate all the __STDC__ conditionals.
  6667. (scm_boot_guile): Add declaration.
  6668. * init.c (scm_start_stack, scm_restart_stack, scm_boot_guile):
  6669. Remove __STDC__ conditionals around function definitions; the
  6670. declarations in init.h will provide the same information, more
  6671. usefully.
  6672. * __scm.h (SCM_SYSMISSING): When we don't have ENOSYS, don't
  6673. complain about it in the error message; the error message is
  6674. adequate without that note, and there's nothing the user can do
  6675. about it.
  6676. Wed Aug 7 14:14:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6677. * Makefile.in (ancillary): Drop def.sed.
  6678. * posix.c (scm_init_posix): Use numeric values, rather than
  6679. CPP symbols, when defining the scheme values R_OK, W_OK, X_OK, and
  6680. F_OK. The symbols aren't available on some systems, and I'm
  6681. pretty sure their values are fixed by common widespread practice.
  6682. * ioext.c (scm_init_ioext): Code here defined them too; remove it.
  6683. More functions unavailable on some systems.
  6684. * configure.in (AC_CHECK_FUNCS): Add ctermid, setpgid, setsid,
  6685. tcgetpgrp, tcsetpgrp, and waitpid to the list of functions to
  6686. check for.
  6687. * configure, scmconfig.h.in: Updated, using autoconf and autoheader.
  6688. * posix.c (scm_sys_ctermid, scm_sys_setpgid, scm_sys_setsid,
  6689. scm_sys_tcgetpgrp, scm_sys_tcsetpgrp, scm_sys_waitpid): Put the
  6690. bodies of these functions in "#ifdef HAVE_MUMBLE" clauses, with a
  6691. stub that signals an error as the #else.
  6692. * Makefile.in (ancillary): Drop acconfig-1.5.h; add acconfig.h.
  6693. Wed Aug 7 06:28:42 1996 Gary Houston <ghouston@actrix.gen.nz>
  6694. * Fixes motivated by Petr Adamek <adamek@mit.edu>:
  6695. * unif.c: include ramap.h.
  6696. * read.c (endif): case_insensative_p renamed case_insensitive_p.
  6697. * ramap.h: rename scm_array_copy prototypes to scm_array_copy_x.
  6698. * ports.c: include sys/ioctl.h.
  6699. * scmconfig.h.in: add HAVE_SYS_IOCTL_H.
  6700. * configure.in: check for sys/ioctl.h.
  6701. * ports.c: include <malloc.h> not "malloc.h".
  6702. * mallocs.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
  6703. * fports.c: remove ttyname and tmpnam declarations.
  6704. * posix.c: fewer ttyname declarations.
  6705. * fports.c: include <string.h> not "string.h".
  6706. * init.c, ioext.c: include string.h and unistd.h.
  6707. * gc.c: include <malloc.h> not "malloc.h", likewise for unistd.h.
  6708. * async.c, strings.h, strports.c, struct.c, symbols.c, feature.c,
  6709. genio.c, simpos.c, vports.c: include string.h.
  6710. * socket.c, fdsocket.c: include string.h only if HAVE_STRING_H.
  6711. * fdsocket.c (getsockopt, setsockopt): change type of optlen from
  6712. scm_sizet to int.
  6713. (scm_addr_buffer_size): change type from scm_sizet to int.
  6714. (accept, getsockname, getpeername, recvfrom): change type of tmp_size
  6715. from scm_sizet to int.
  6716. * error.c: include unistd.h.
  6717. * __scm.h: (SCM_SYSMISSING): another version in case ENOSYS isn't
  6718. defined.
  6719. * Makefile.in: remove references to .hd, .cd suffix and __scm.hd.
  6720. * __scm.hd, def.sed: deleted.
  6721. Tue Aug 6 14:49:08 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6722. Changes for NeXT, suggested by Robert Brown.
  6723. * configure.in: Call AC_TYPE_MODE_T.
  6724. (AC_CHECK_HEADERS): Add libc.h, to get more prototypes on the
  6725. NeXT. Put header file list in alphabetical order.
  6726. * configure, scmconfig.h.in: Regenerated.
  6727. * filesys.c [HAVE_LIBC_H]: #include <libc.h>.
  6728. * filesys.c [HAVE_STRING_H]: #include <string.h>, to get prototype
  6729. for strerror.
  6730. * acconfig.h: New file, providing documentation for the CPP
  6731. symbols defined in configure.in
  6732. * acconfig-1.5.h: Removed; superceded by the above.
  6733. Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
  6734. * ioext.c (scm_sys_fdopen): fix the port-table assignment.
  6735. * fports.c (scm_open_file): don't return #f, throw error.
  6736. * ioext.c (fileno): renamed from %fileno.
  6737. (soft-fileno): deleted.
  6738. * ports.c (scm_port_revealed): don't need to check for -1 from
  6739. scm_revealed_count.
  6740. (scm_set_port_revealed_x): return unspecified, not #f.
  6741. * ioext.c (primitive-move->fdes): return #t or #f, not 1 or 0.
  6742. * fdsocket.c: getsockopt, setsockopt: use HAVE_STRUCT_LINGER.
  6743. * scmconfig.h.in: add HAVE_STRUCT_LINGER.
  6744. * configure.in: check for struct linger, set HAVE_STRUCT_LINGER.
  6745. Thu Aug 1 02:58:39 1996 Jim Blandy <jimb@totoro.cyclic.com>
  6746. * filesys.c, posix.c: #include <sys/types.h> before <sys/stat.h>.
  6747. This is necessary on Ultrix, and doesn't hurt portability.
  6748. * Makefile.in (dist-dir): New target, implementing a new dist system.
  6749. (installed_h_files): Put in alphabetical order.
  6750. Remove duplicate entries for markers.h and unif.h.
  6751. (c_files): Remove duplicate entries for markers.c.
  6752. (ancillary): Renamed from anillery; all uses changed. Remove
  6753. PLUGIN; it's a directory, and needs special treatment in dist-dir.
  6754. Remove all the ../doc/* files; doc/Makefile.in handles that.
  6755. * Makefile.in (libobjs): Remove duplicate entry for markers.o.
  6756. * Makefile.in (.c.x): Compensate for Ultrix's broken Bourne shell:
  6757. every if must have an else, or else the whole command has a
  6758. non-zero exit code whenever the if's condition is false.
  6759. Thu Aug 1 08:22:24 1996 Gary Houston <ghouston@actrix.gen.nz>
  6760. * posix.c: include string.h.
  6761. Wed Jul 31 23:43:05 1996 Gary Houston <ghouston@actrix.gen.nz>
  6762. * numbers.c: rename %expt -> $expt, %atan2 -> $atan2, as it must
  6763. have been once.
  6764. * posix.c, ioext.c, socket.c, fdsocket.c, files.c, filesys.c, simpos.c:
  6765. Remove leading % from scheme names.
  6766. Do not return error values, call SCM_SYSERROR or similar.
  6767. * __scm.h (SCM_SYSERROR, SCM_SYSMISSING): new macros.
  6768. Wed Jun 12 00:28:31 1996 Tom Lord <lord@beehive>
  6769. * struct.c (scm_init_struct): new file.
  6770. Fri Jun 7 14:02:00 1996 Tom Lord <lord@beehive>
  6771. * list.c (scm_list_tail): list-cdr-ref is the same as list-tail.
  6772. (scm_list_head): added list-head for rapidly chopping argument
  6773. lists off of longer lists (and similar).
  6774. Tue Jun 4 09:40:33 1996 Tom Lord <lord@beehive>
  6775. * objprop.c (scm_object_property): assq the cdr of the whash
  6776. handle for obj, not the handle itself.
  6777. Mon Jun 3 17:19:30 1996 Tom Lord <lord@beehive>
  6778. * gc.c (scm_mark_weak_vector_spines): Mark the spines (alists) of
  6779. weak hash tables last of all marking to avoid an obscure gc bug.
  6780. WARNING: circular lists stored in a weak hash table will hose us.
  6781. Fri May 24 09:53:39 1996 Tom Lord <lord@beehive>
  6782. * vectors.c (scm_vector_move_left_x, scm_vector_move_right_x):
  6783. new functions similar to scm_substring_move_left_x and
  6784. scm_substring_move_right_x.
  6785. Wed May 22 20:07:01 1996 Tom Lord <lord@beehive>
  6786. * init.c (scm_boot_guile): prevent gc with scm_block_gc not
  6787. scm_gc_heap_lock!
  6788. Wed May 15 16:13:29 1996 Tom Lord <lord@beehive>
  6789. * ports.c (scm_unread_char): scm_gen_ungetc as a scheme procedure.
  6790. Thu May 9 09:33:17 1996 Tom Lord <lord@beehive>
  6791. * strports.c (scm_strprint_obj): convenience function. C for
  6792. (lambda (obj) (call-with-output-string (lambda (p) (write obj p))))
  6793. * guile-{tcl,tk}.[ch], events.[ch], keysyms.[ch], tcl-channels.[ch]
  6794. removed to a separate library
  6795. * init.c (scm_boot_guile): copied from guile-tcl.c.
  6796. Initialization specific to tcl interpreters removed.
  6797. Wed May 8 15:07:37 1996 Tom Lord <lord@beehive>
  6798. * ports.c (scm_ports_prehistory): size malloced here doesn't
  6799. matter so long as it is non-0 (got rid of "* 4").
  6800. Tue May 7 11:43:37 1996 Tom Lord <lord@beehive>
  6801. * gscm.h: gscm_mkarray eliminated (presumably was not being used
  6802. since its definition was bogus).
  6803. Mon May 6 13:02:56 1996 Tom Lord <lord@beehive>
  6804. * mallocs.[ch]: back again (for rx at least).
  6805. Wed Apr 17 08:54:20 1996 Tom Lord <lord@beehive>
  6806. * ports.c: removed functions relating to the mapping between ports
  6807. and descriptors. (That stuff is unix-specific and should be collected
  6808. in a separate library).
  6809. * ramap.c (scm_array_copy): return #<unspecified> not #<undefined>.
  6810. (Tom Mckay@avanticorp.com)
  6811. Mon Apr 15 14:16:55 1996 Tom Lord <lord@beehive>
  6812. * gc.c (scm_gc_sweep): Immediates in weak vectors were not
  6813. handled correctly (SCM_FREEP was applied to them) -- test for
  6814. NIMP. Keys in weak hash tables were spuriously (though harmlessly)
  6815. being overwritten with #f. (brown@grettir.bibliotech.com)
  6816. Tue Apr 2 22:25:00 1996 Tom Lord <lord@beehive>
  6817. * gc.c (scm_unhash_name): new procedure, unhash-name, flushes glocs
  6818. for a specific symbol or for all symbols.
  6819. Mon Apr 1 10:34:55 1996 Tom Lord <lord@beehive>
  6820. * gc.c (scm_gc_mark): mark weak hash tables correctly (was getting weak
  6821. keys and weak values confused).
  6822. Thu Mar 14 22:20:20 1996 Tom Lord <lord@beehive>
  6823. * list.c (scm_last_pair): map '()=>'()
  6824. Wed Mar 13 16:43:34 1996 Tom Lord <lord@beehive>
  6825. * pairs.c, hashtab.c, list.c, alist.c append.c, sequences.c:
  6826. Generalized assoc and hash-table functions.
  6827. Factored pairs.c into multiple files.
  6828. Fri Mar 8 14:44:39 1996 Tom Lord <lord@beehive>
  6829. * gscm.c (gscm_run_scm): got rid of objprop.
  6830. Fri Mar 1 10:39:52 1996 Tom Lord <lord@beehive>
  6831. * genio.c (scm_getc):
  6832. NOTE: fgetc may not be interruptable.
  6833. * procprop.c (scm_stand_in_scm_proc):
  6834. NOTE: don't use a alist here.
  6835. (scm_set_procedure_properties_x): fix type checking throughout this file.
  6836. * gc.c (scm_gc_sweep): free heap segments with free, not must_free.
  6837. * ports.c (scm_remove_from_port_table): adjust scm_mallocated
  6838. after freeing part of the port table.
  6839. Thu Feb 29 16:21:17 1996 Tom Lord <lord@beehive>
  6840. * strports.c (scm_mkstrport):
  6841. * vports.c (scm_make_soft_port): allocate a port table entry
  6842. (possibly triggering gc) before setting the tag of the corresponding
  6843. ports handle.
  6844. * pairs.c (scm_delq_x): never throw an error.
  6845. * vectors.c (scm_make_vector): made the default vector fill argument
  6846. into '() (much more useful than the previous value, "#unspecified")
  6847. Mon Feb 26 17:19:09 1996 Tom Lord <lord@beehive>
  6848. * ports.c (scm_add_to_port_table): Added fields
  6849. to port table entries: file_name, line_num, col.
  6850. Update these in open_file, gen_getc and gen_ungetc.
  6851. Added procedures to access those fields.
  6852. Sun Feb 25 00:10:36 1996 Tom Lord <lord@beehive>
  6853. * procs.c (scm_make_subr_opt): new entry point for making
  6854. anonymous subrs.
  6855. Sat Feb 24 17:11:31 1996 Tom Lord <lord@beehive>
  6856. * gc.h: SCM_STACK_GROWS_UP is now set by autoconf.
  6857. Fri Feb 23 10:26:29 1996 Tom Lord <lord@beehive>
  6858. * numbers.c (scm_exact_p): This function no longer
  6859. implements "integer?".
  6860. Thu Feb 22 20:56:16 1996 Tom Lord <lord@beehive>
  6861. * gc.c (scm_gc_end): simulate a signal at the end of each GC.
  6862. (scm_gc_stats): return an assoc of useful data. Replaces "room"
  6863. and the stats reporting formerlly built into repl.
  6864. * repl.[ch]: removed.
  6865. GC statistics keeping moved to gc.c.
  6866. Other statistics keeping can be done from Scheme.
  6867. REPLS are now written in Scheme.
  6868. Wed Feb 21 10:28:53 1996 Tom Lord <lord@beehive>
  6869. * cnsvobj.c (gscm_is_gscm_obj): new file for old functions (icky
  6870. conservatively marked objects).
  6871. * throw.c (scm_ithrow): Unwind up to the right catch during a throw!
  6872. * error.c (scm_init_error): init system_error_sym here, not in repl.c.
  6873. * feature.c (scm_compiled_library_path): moved here from repl.c.
  6874. This file is for stuff relating specifically to Scheme libraries
  6875. like slib.
  6876. * eval.c (scm_m_define): don't give warning about redefinition, don't
  6877. check verbosity.
  6878. NOTE: this should throw a resumable exception with parameters --
  6879. the name, the top-level env, the variable, the definition, #t/#f: redefining builtin?
  6880. * repl.c (scm_gc_begin/end): don't print a message, don't check verbosity.
  6881. * error.c: scm_warn eliminated.
  6882. * read.c (scm_lreadr): extra right paren gets an error, not a warning.
  6883. * repl.c, marksweep.c, gc.c (various):
  6884. lose exit_report, growth_mon.
  6885. * gscm.c: got rid of verbosity functions.
  6886. Tue Feb 20 00:19:10 1996 Tom Lord <lord@beehive>
  6887. * throw.c (scm_ithrow): guard against the bad-throw hook changing
  6888. between the call to procedurep and use.
  6889. * error.c (scm_everr):
  6890. * gc.c (fixconfig):
  6891. * gsubr.c (scm_make_gsubr): use exit, not scm_quit. still wrong,
  6892. but less so.
  6893. * strports.c: don't reveal the port's string to the caller
  6894. because it changes size.
  6895. (stputc stwrite): check/change the strings length with interrupts
  6896. blocked.
  6897. * objprop.c (scm_set_object_property_x &c): use the generic
  6898. hashing functions and be threadsafe.
  6899. * eval.c (scm_unmemocar): do this operation in a thread-safe way.
  6900. (per suggestion jaffer@gnu.ai.mit.edu).
  6901. * mbstrings.c (scm_multi_byte_string): guard against argument list
  6902. changing length.
  6903. * strings.c (scm_make_string): loop cleanup
  6904. * unif.c (scm_vector_set_length_x): scm_vector_set_length_x no longer
  6905. a scheme function.
  6906. * weaks.c (scm_weak_vector): guard against argument list
  6907. changing length.
  6908. * variable.c (scm_builtin_variable): check for/make a built-in
  6909. variable automicly.
  6910. * vectors.c (scm_vector): while filling the new array,
  6911. guard against a list of fill elements that grows after
  6912. the vector is allocated.
  6913. * hashtab.c -- new file: general hash table
  6914. functions. hash, hashq, hashv, hashx.
  6915. * tags.h: made wvect an option bit of vector.
  6916. Mon Feb 19 09:38:05 1996 Tom Lord <lord@beehive>
  6917. * symbols.c: made the basic symbol table operations atomic.
  6918. * root.c &c.: collected stack-specific global state.
  6919. linum/colnum etc *should* be port-specific state.
  6920. * struct.c (scm_init_struct): init the first struct type during
  6921. initialization to fix a race condition.
  6922. * continuations.c (scm_dynthrow): pass throwval in the 'regs'
  6923. object, not in a global.
  6924. (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
  6925. * throw.c (_scm_throw): Pass throwval on the stack, not in a global
  6926. (suggested by green@cygnus, jaffer@gnu.ai.mit.edu)
  6927. * *.[ch]: namespace cleanup. Changed all (nearly) exported CPP
  6928. and C symbols to begin with SCM_ or scm_.
  6929. Sun Feb 18 15:55:38 1996 Tom Lord <lord@beehive>
  6930. * gsubr.c (scm_gsubr_apply): statically allocate the
  6931. array of arguments (bothner@cygnus.com).
  6932. Sat Feb 17 20:20:40 1996 Tom Lord <lord@beehive>
  6933. * scmsigs.c: Simplified to use async rountines.
  6934. * async.c: New support for interrupt handlers.
  6935. Thu Feb 15 11:39:09 1996 Tom Lord <lord@beehive>
  6936. * symbols.c (scm_string_to_symbol et al.): number of tweaky changes to
  6937. set the multi_byte flag correctly in symbols. This is wrong.
  6938. intern_obbary_soft and msymbolize should take an extra parameter.
  6939. Also, weird multibyte symbols don't print correctly.
  6940. The weird symbol syntax is also a bit bogus (emacs doesn't quite
  6941. cope).
  6942. Tue Feb 13 11:39:37 1996 Tom Lord <lord@beehive>
  6943. * symbols.c (scm_string_to_obarray_symbol): obarray == #f means
  6944. use the system symhash. == #t means create an uninterned symbol.
  6945. Wed Feb 7 09:28:02 1996 Tom Lord <lord@beehive>
  6946. * strings.c (scm_make_shared_substring): build'em.
  6947. It might better to keep a table of these and use one
  6948. less cons-pair per shared-substring.
  6949. Tue Feb 6 17:45:21 1996 Tom Lord <lord@beehive>
  6950. * strings.c (scm_string_shared_substring): create shared
  6951. substrings. (Doesn't handle mb strings yet).
  6952. * mbstrings.c (scm_print_mb_string): handle RO strings.
  6953. * print.c (scm_iprin1): print substrings as their non-substring
  6954. counterparts (dubious).
  6955. * marksweep.c (scm_gc_mark scm_gc_sweep): handle RO and MB
  6956. strings.
  6957. * hash.c (scm_hasher): hash RO and MB strings as bytestrings.
  6958. * eval.c (SCM_CEVAL): self-evaluate RO and MB strings.
  6959. * eq.c (scm_equal_p): handle RO and MB strings.
  6960. * symbols.c (scm_string_to_symbol):
  6961. (scm_string_to_obarray_symbol):
  6962. * strop.c (scm_i_index):
  6963. (scm_i_rindex):
  6964. (scm_string_null_p):
  6965. (scm_string_to_list):
  6966. * strings.c (scm_string_length):
  6967. (scm_string_ref):
  6968. (scm_substring):
  6969. (scm_string_append):
  6970. * simpos.c (scm_system):
  6971. (scm_getenv):
  6972. * fports.c (scm_open_file):
  6973. * strorder.c (scm_string_equal_p):
  6974. (scm_string_ci_equal_p):
  6975. (scm_string_less_p):
  6976. (scm_string_ci_less_p):
  6977. * pairs.c (scm_obj_length):
  6978. * mbstrings.c (scm_multi_byte_string_length):
  6979. Use RO string macros for RO strings.
  6980. Tue Jan 30 09:19:08 1996 Tom Lord <lord@beehive>
  6981. * Makefile.in (CFLAGS ALL_CFLAGS): be more standard.
  6982. * strop.c (scm_i_rindex, scm_i_index): Don't use the BSD functions
  6983. index/rindex. Do handle embedded \000 characters.
  6984. Sun Jan 28 13:16:18 1996 Tom Lord <lord@beehive>
  6985. * error.c (def_err_response): (int)scm_err_pos => (long)scm_err_pos
  6986. Eliminate a (presumed) warning on some systems.
  6987. * gscm.c (gscm_run_scm): SCM_INIT_PATH => GUILE_INIT_PATH
  6988. (Mikael Djurfeldt <mdj@nada.kth.se>)
  6989. Sat Jan 27 12:36:55 1996 Tom Lord <lord@beehive>
  6990. * eval.c (scm_map): added argument type checking.
  6991. (kawai@sail.t.u-tokyo.ac.jp)
  6992. * gscm.c (gscm_set_procedure_properties_x): parameter "new" => "new_val"
  6993. for C++. (Seth Alves <alves@gryphon.com>)
  6994. (gscm_cstr): uses an uninitialized local variable causing
  6995. segv. (kawai@sail.t.u-tokyo.ac.jp)
  6996. * lvectors.c (scm_get_lvector_hook):
  6997. In guile-ii, the lvector code was broken. It was fixed in guile-iii.
  6998. It seems to me like if it is broken again in guile-iv...Here is a patch.
  6999. "! || (LENGTH (keyvec) == 0))"
  7000. (From: Mikael Djurfeldt <mdj@nada.kth.se>)
  7001. * gscm.c (gscm_sys_default_verbosity):
  7002. incorrectly declared for non-__STDC__
  7003. (Tom_Mckay@avanticorp.com)
  7004. * ports.c (scm_setfileno): Tweak the macro a bit
  7005. to make it easier to port to systems that use
  7006. more than a single structure field to hold a descriptor.
  7007. * debug.c (change_mode): Avoid GNUCism "int foo[n];"
  7008. Give a warning, not an error, for unrecognized modes.
  7009. * eval.c (SCM_CEVAL):
  7010. static char scm_s_for_each[];
  7011. static char scm_s_map[];
  7012. not needed.
  7013. * strings.c (scm_string_p):
  7014. static char s_string[];
  7015. (see next entry)
  7016. * struct.c (scm_sys_struct_set_x):
  7017. static char s_sys_make_struct[];
  7018. static char s_sys_struct_ref[];
  7019. static char s_sys_struct_set_x[];
  7020. Rearrange code to eliminate those forward decls for the sake of
  7021. broken compilers.
  7022. * variable.c (make_vcell_variable): static char s_make_variable[];
  7023. isn't needed.
  7024. * fports.c (scm_port_mode):
  7025. chars modes[3] = "";
  7026. to
  7027. chars modes[3];
  7028. modes[0] = '\0';
  7029. (Tom_Mckay@avanticorp.com)
  7030. * pairs.c (scm_set_cdr_x): non-__STDC__ declaration of
  7031. scm_cons2(), scm_acons(), and scm_set_cdr_x() missing semicolon
  7032. (Tom_Mckay@avanticorp.com)
  7033. * numbers.c (scm_num_eq_p): Non-__STDC__ declaration of
  7034. scm_num_eq_p() was scm_equal_p().
  7035. (Tom_Mckay@avanticorp.com)
  7036. * symbols.c (msymbolize): "CHARS(X) = " => "SETCHARS..."
  7037. (Tom_Mckay@avanticorp.com)
  7038. Fri Jan 26 14:03:01 1996 Tom Lord <lord@beehive>
  7039. * weaks.c (scm_make_weak_vector): "VELTS(X) =" => "SETVELTS..."
  7040. (Tom_Mckay@avanticorp.com)
  7041. * strop.c (scm_substring_fill_x):
  7042. Non-__STDC__ declaration of scm_substring_fill_x() missing semicolon
  7043. (Tom_Mckay@avanticorp.com)
  7044. * eval.c (SCM_APPLY): variables "debug_info" -> dbg_info.
  7045. Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
  7046. * _scm.h (CxR functions): #define CxR SCM_CxR => #define CxR(X) SCM_CxR(X)
  7047. Works around a compiler bug on some machines. (Tom_Mckay@avanticorp.com)
  7048. * lvectors.c (scm_lvector_set_x): avoid VELTS (VELTS (...)[..]) which
  7049. can turn into an obscure gc bug.
  7050. * chars.c (scm_char_p): fixed PROC call.
  7051. * gscm.h (gscm_vset): use scm_vector_set_x not (the missing)
  7052. scm_vector_set.
  7053. Tue Jan 23 13:29:40 1996 Tom Lord <lord@beehive>
  7054. * elisp.c (new file): dynamic scoping and other bits for
  7055. elisp. Don't use this yet unless you specificly want to
  7056. hack on elisp emulation.
  7057. * dynwind.c (scm_dowinds): When entering or leaving a dynamic
  7058. scope created by scm_with_dynamic_bindings_operation_x, swap
  7059. the bindings of that scope with the corresponding globals.
  7060. * continuations.c (scm_make_cont): when a continuation is captured,
  7061. relocate the continuation stack chunks registered on the wind chain
  7062. to the heap.
  7063. Sun Jan 21 19:31:17 1996 Tom Lord <lord@beehive>
  7064. * eval.c (SCM_CEVAL): if the function position evaluates
  7065. to a macro, process it accordingly. (Previously, macros were
  7066. handled only if the function position was a symbol naming a
  7067. variable bound to a macro).
  7068. Sat Jan 20 23:21:37 1996 Tom Lord <lord@beehive>
  7069. * eval.c (scm_m_set): allow multi-variable set! like
  7070. (set! x 1 y 2 z 3).
  7071. Wed Dec 6 02:40:49 1995 Tom Lord <lord@beehive>
  7072. * ports.h fports.c vports.c marksweep.c gc.c strports.c: moved the
  7073. STREAM of ports into the port table and replaced it with a
  7074. port-table index.
  7075. * repl.c (iprin1): added tc7_mb_string -- same as tc7_string.
  7076. * marksweep.c (scm_gc_mark): added tc7_mb_string -- same as tc7_string.
  7077. * mbstrings.c (new file): functions on multi-byte strings.
  7078. * tags.h (scm_typ7_string, scm_typ7_mb_string): added a tag
  7079. for multi-byte strings. Moved the string tag.
  7080. * chars.h chars.c repl.c (many functions): made scm_upcase and
  7081. scm_downcase functions that are safe for extended character sets.
  7082. Changed the range of integer->char.
  7083. Changed the type of SCM_ICHR.
  7084. Tue May 16 17:49:58 1995 Mikael Djurfeldt <mdj@sanscalc.nada.kth.se>
  7085. * guile.c: Changed init file name from "SCM_INIT_PATH" to
  7086. "GUILE_INIT_PATH"
  7087. Sun Aug 6 15:14:46 1995 Andrew McCallum <mccallum@vein.cs.rochester.edu>
  7088. * guile.c (gscm_is_gscm_type): New function. (Without this how will we
  7089. know that it's safe to pass an object to gscm_get_type?)
  7090. (gscm_get_type): Fix tyop in error message.
  7091. * variable.c (scm_variable_ref): fixed assertion test.
  7092. (Robert STRANDH <strandh@labri.u-bordeaux.fr>)
  7093. * gscm.h: fixed several prototypes, notably gscm_vref.
  7094. Add gscm_is_eq and temporarily commented out gscm_eq (see
  7095. the note in gscm.h near gscm_eq if this change effects your
  7096. code).
  7097. (Reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
  7098. * pairs.c (scm_obj_length): see next entry.
  7099. * gscm.h (gscm_obj_length): A way to get an integer
  7100. length for lists, strings, symbols (treated as strings),
  7101. and vectors. Returns -1 on error.
  7102. * eq.c (scm_equal_p): fixed smob case.
  7103. (William Gribble <grib@arlut.utexas.edu>)
  7104. * Makefile.in (X_CFLAGS): defined.
  7105. (William Gribble <grib@arlut.utexas.edu>)
  7106. * gscm.h (gscm_2_double): provided now
  7107. (reported by Mark Galassi <rosalia@sstcx1.lanl.gov>)
  7108. Tue Jun 13 01:04:09 1995 gnu
  7109. * Vrooom!