system.xml 200 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <!--
  4. $Id$
  5. This file is part of the FPC documentation.
  6. Copyright (C) 1997, by Michael Van Canneyt
  7. The FPC documentation is free text; you can redistribute it and/or
  8. modify it under the terms of the GNU Library General Public License as
  9. published by the Free Software Foundation; either version 2 of the
  10. License, or (at your option) any later version.
  11. The FPC Documentation is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. Library General Public License for more details.
  15. You should have received a copy of the GNU Library General Public
  16. License along with the FPC documentation; see the file COPYING.LIB. If not,
  17. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. Boston, MA 02111-1307, USA.
  19. -->
  20. <package name="rtl">
  21. <module name="system">
  22. <short>The system unit</short>
  23. <!-- \FPCexampledir{refex} -->
  24. <descr>
  25. <p>
  26. The system unit contains the standard supported functions of Free Pascal. It is the
  27. same for all platforms. Basically it is the same as the system unit provided
  28. with Borland or Turbo Pascal.
  29. </p>
  30. <p>
  31. Functions are listed in alphabetical order. Arguments of functions or
  32. procedures that are optional are put between square brackets.
  33. </p>
  34. <p>
  35. The pre-defined constants and variables are listed in the first section.
  36. The second section contains an overview of all functions, grouped by
  37. functionality, and the last section contains the supported functions
  38. and procedures.
  39. </p>
  40. </descr>
  41. <topic name="integertypes">
  42. <short>Integer Types</short>
  43. <descr>
  44. <p>
  45. The following integer types are defined in the System unit:
  46. </p>
  47. <code>
  48. Shortint = -128..127;
  49. SmallInt = -32768..32767;
  50. Longint = $80000000..$7fffffff;
  51. byte = 0..255;
  52. word = 0..65535;
  53. dword = longword;
  54. cardinal = longword;
  55. Integer = smallint;
  56. </code>
  57. <p>
  58. The following types are used for the functions that need compiler magic
  59. such as <link id="Val"/> or <link id="Str"/>:
  60. </p>
  61. <code>
  62. StrLenInt = LongInt;
  63. ValSInt = Longint;
  64. ValUInt = Cardinal;
  65. ValReal = Extended;
  66. </code>
  67. <p>
  68. The <var>Real48</var> type is defined to emulate the old Turbo Pascal <var>Real</var> type:
  69. </p>
  70. <code>
  71. Real48 = Array[0..5] of byte;
  72. </code>
  73. <p>
  74. The assignment operator has been overloaded so this type can be assigned
  75. to the Free Pascal native <var>Double</var> and <var>Extended</var> types.
  76. <link id="Real2Double"/>.
  77. </p>
  78. <p>
  79. The following character types are defined for Delphi compatibility:
  80. </p>
  81. <code>
  82. TAnsiChar = Char;
  83. AnsiChar = TAnsiChar;
  84. </code>
  85. <p>
  86. And the following pointer types as well:
  87. </p>
  88. <code>
  89. PChar = ^char;
  90. pPChar = ^PChar;
  91. PAnsiChar = PChar;
  92. PQWord = ^QWord;
  93. PInt64 = ^Int64;
  94. pshortstring = ^shortstring;
  95. plongstring = ^longstring;
  96. pansistring = ^ansistring;
  97. pwidestring = ^widestring;
  98. pextended = ^extended;
  99. ppointer = ^pointer;
  100. </code>
  101. <p>
  102. For the <link id="SetJmp"/> and <link id="LongJmp"/> calls, the following jump bufer
  103. type is defined (for the I386 processor):
  104. </p>
  105. <code>
  106. jmp_buf = record
  107. ebx,esi,edi : Longint;
  108. bp,sp,pc : Pointer;
  109. end;
  110. PJmp_buf = ^jmp_buf;
  111. </code>
  112. <p>
  113. The following records and pointers can be used to scan the
  114. entries in the string message handler tables:
  115. </p>
  116. <code>
  117. tmsgstrtable = record
  118. name : pshortstring;
  119. method : pointer;
  120. end;
  121. pmsgstrtable = ^tmsgstrtable;
  122. tstringmessagetable = record
  123. count : dword;
  124. msgstrtable : array[0..0] of tmsgstrtable;
  125. end;
  126. pstringmessagetable = ^tstringmessagetable;
  127. </code>
  128. <p>
  129. The base class for all classes is defined as:
  130. </p>
  131. <code>
  132. Type
  133. TObject = Class
  134. Public
  135. constructor create;
  136. destructor destroy;virtual;
  137. class function newinstance : tobject;virtual;
  138. procedure freeinstance;virtual;
  139. function safecallexception(exceptobject : tobject;
  140. exceptaddr : pointer) : longint;virtual;
  141. procedure defaulthandler(var message);virtual;
  142. procedure free;
  143. class function initinstance(instance : pointer) : tobject;
  144. procedure cleanupinstance;
  145. function classtype : tclass;
  146. class function classinfo : pointer;
  147. class function classname : shortstring;
  148. class function classnameis(const name : string) : boolean;
  149. class function classparent : tclass;
  150. class function instancesize : longint;
  151. class function inheritsfrom(aclass : tclass) : boolean;
  152. class function inheritsfrom(aclass : tclass) : boolean;
  153. class function stringmessagetable : pstringmessagetable;
  154. procedure dispatch(var message);
  155. procedure dispatchstr(var message);
  156. class function methodaddress(const name : shortstring) : pointer;
  157. class function methodname(address : pointer) : shortstring;
  158. function fieldaddress(const name : shortstring) : pointer;
  159. procedure AfterConstruction;virtual;
  160. procedure BeforeDestruction;virtual;
  161. procedure DefaultHandlerStr(var message);virtual;
  162. end;
  163. TClass = Class Of TObject;
  164. PClass = ^TClass;
  165. </code>
  166. <p>
  167. Unhandled exceptions can be treated using a constant of the
  168. <var>TExceptProc</var> type:
  169. </p>
  170. <code>
  171. TExceptProc = Procedure (Obj : TObject; Addr,Frame: Pointer);
  172. </code>
  173. <p>
  174. <var>Obj</var> is the exception object that was used to raise the exception,
  175. <var>Addr</var> and <var>Frame</var> contain the exact address and stack frame
  176. where the exception was raised.
  177. </p>
  178. <p>
  179. The <var>TVarRec</var> type is used to access the elements passed in a \var{Array
  180. of Const} argument to a function or procedure:
  181. </p>
  182. <code>
  183. Type
  184. PVarRec = ^TVarRec;
  185. TVarRec = record
  186. case VType : Longint of
  187. vtInteger : (VInteger: Longint);
  188. vtBoolean : (VBoolean: Boolean);
  189. vtChar : (VChar: Char);
  190. vtExtended : (VExtended: PExtended);
  191. vtString : (VString: PShortString);
  192. vtPointer : (VPointer: Pointer);
  193. vtPChar : (VPChar: PChar);
  194. vtObject : (VObject: TObject);
  195. vtClass : (VClass: TClass);
  196. vtAnsiString : (VAnsiString: Pointer);
  197. vtWideString : (VWideString: Pointer);
  198. vtInt64 : (VInt64: PInt64);
  199. end;
  200. </code>
  201. <p>
  202. The heap manager uses the <var>TMemoryManager</var> type:
  203. </p>
  204. <code>
  205. PMemoryManager = ^TMemoryManager;
  206. TMemoryManager = record
  207. Getmem : Function(Size:Longint):Pointer;
  208. Freemem : Function(var p:pointer):Longint;
  209. FreememSize : Function(var p:pointer;Size:Longint):Longint;
  210. AllocMem : Function(Size:longint):Pointer;
  211. ReAllocMem : Function(var p:pointer;Size:longint):Pointer;
  212. MemSize : function(p:pointer):Longint;
  213. MemAvail : Function:Longint;
  214. MaxAvail : Function:Longint;
  215. HeapSize : Function:Longint;
  216. end;
  217. </code>
  218. <p>
  219. More information on using this record can be found in \progref.
  220. </p>
  221. </descr>
  222. </topic>
  223. <topic name="Constants">
  224. <short>Constants</short>
  225. <descr>
  226. <p>
  227. The following constants define the maximum values that can be used with
  228. various types:
  229. </p>
  230. <code>
  231. MaxSIntValue = High(ValSInt);
  232. MaxUIntValue = High(ValUInt);
  233. maxint = maxsmallint;
  234. maxLongint = $7fffffff;
  235. maxSmallint = 32767;
  236. </code>
  237. <p>
  238. The following constants for file-handling are defined in the system unit:
  239. </p>
  240. <code>
  241. Const
  242. fmclosed = $D7B0;
  243. fminput = $D7B1;
  244. fmoutput = $D7B2;
  245. fminout = $D7B3;
  246. fmappend = $D7B4;
  247. filemode : byte = 2;
  248. </code>
  249. <p>
  250. The <var>filemode</var> variable is used when a non-text file is opened using
  251. <var>Reset</var>. It indicates how the file will be opened. <var>filemode</var> can have one of
  252. the following values:
  253. </p>
  254. <dl>
  255. <dt>0</dt><dd> The file is opened for reading.
  256. </dd><dt>1</dt><dd> The file is opened for writing.
  257. </dd><dt>2</dt><dd> The file is opened for reading and writing.
  258. </dd>
  259. </dl>
  260. <p>
  261. The default value is 2. Other values are possible but are operating system specific.
  262. </p>
  263. <p>
  264. Further, the following non processor specific general-purpose constants
  265. are also defined:
  266. </p>
  267. <code>
  268. const
  269. erroraddr : pointer = nil;
  270. errorcode : word = 0;
  271. { max level in dumping on error }
  272. max_frame_dump : word = 20;
  273. </code>
  274. <p>
  275. </p>
  276. <remark>
  277. Processor specific global constants are named Testxxxx where xxxx
  278. represents the processor number (such as Test8086, Test68000),
  279. and are used to determine on what generation of processor the program
  280. is running on.
  281. </remark>
  282. <p>
  283. The following constants are defined to access VMT entries:
  284. </p>
  285. <code>
  286. vmtInstanceSize = 0;
  287. vmtParent = 8;
  288. vmtClassName = 12;
  289. vmtDynamicTable = 16;
  290. vmtMethodTable = 20;
  291. vmtFieldTable = 24;
  292. vmtTypeInfo = 28;
  293. vmtInitTable = 32;
  294. vmtAutoTable = 36;
  295. vmtIntfTable = 40;
  296. vmtMsgStrPtr = 44;
  297. vmtMethodStart = 48;
  298. vmtDestroy = vmtMethodStart;
  299. vmtNewInstance = vmtMethodStart+4;
  300. vmtFreeInstance = vmtMethodStart+8;
  301. vmtSafeCallException = vmtMethodStart+12;
  302. vmtDefaultHandler = vmtMethodStart+16;
  303. vmtAfterConstruction = vmtMethodStart+20;
  304. vmtBeforeDestruction = vmtMethodStart+24;
  305. vmtDefaultHandlerStr = vmtMethodStart+28;
  306. </code>
  307. <p>
  308. The constant names should be used, and never their values, because
  309. the VMT table can change, breaking code that uses direct values.
  310. </p>
  311. <p>
  312. The following constants will be used for the planned <var>variant</var> support:
  313. </p>
  314. <code>
  315. varEmpty = $0000;
  316. varNull = $0001;
  317. varSmallint = $0002;
  318. varInteger = $0003;
  319. varSingle = $0004;
  320. varDouble = $0005;
  321. varCurrency = $0006;
  322. varDate = $0007;
  323. varOleStr = $0008;
  324. varDispatch = $0009;
  325. varError = $000A;
  326. varBoolean = $000B;
  327. varVariant = $000C;
  328. varUnknown = $000D;
  329. varByte = $0011;
  330. varString = $0100;
  331. varAny = $0101;
  332. varTypeMask = $0FFF;
  333. varArray = $2000;
  334. varByRef = $4000;
  335. </code>
  336. <p>
  337. The following constants are used in the <var>TVarRec</var> record:
  338. </p>
  339. <code>
  340. vtInteger = 0;
  341. vtBoolean = 1;
  342. vtChar = 2;
  343. vtExtended = 3;
  344. vtString = 4;
  345. vtPointer = 5;
  346. vtPChar = 6;
  347. vtObject = 7;
  348. vtClass = 8;
  349. vtWideChar = 9;
  350. vtPWideChar = 10;
  351. vtAnsiString = 11;
  352. vtCurrency = 12;
  353. vtVariant = 13;
  354. vtInterface = 14;
  355. vtWideString = 15;
  356. vtInt64 = 16;
  357. vtQWord = 17;
  358. </code>
  359. <p>
  360. The <var>ExceptProc</var> is called when an unhandled exception occurs:
  361. </p>
  362. <code>
  363. Const
  364. ExceptProc : TExceptProc = Nil;
  365. </code>
  366. <p>
  367. It is set in the <file>objpas</file> unit, but it can be set by the programmer
  368. to change the default exception handling.
  369. </p>
  370. <p>
  371. The following constants are defined to describe the operating system's file
  372. system:
  373. </p>
  374. <code>
  375. LineEnding = #10;
  376. LFNSupport = true;
  377. DirectorySeparator = '/';
  378. DriveSeparator = ':';
  379. PathSeparator = ':';
  380. FileNameCaseSensitive : Boolean = True;
  381. </code>
  382. <p>
  383. The shown values are for unix platforms, but will be different on other
  384. platforms.
  385. The meaning of the constants is the following:
  386. </p>
  387. <dl>
  388. <dt>LineEnding</dt>
  389. <dd> End of line marker. This constant is used when writing end
  390. of lines to text files.
  391. </dd>
  392. <dt>LFNSupport</dt>
  393. <dd> This is <var>True</var> if the system supports long file names,
  394. i.e. filenames that are not restricted to 8.3 characters.
  395. </dd>
  396. <dt>DirectorySeparator</dt>
  397. <dd> The character that is used as a directory
  398. separator, i.e. it appears between various parts of a path to a file.
  399. </dd>
  400. <dt>DriveSeparator</dt>
  401. <dd> On systems that support drive letters, this character
  402. separates the drive indication from the rest of a filename.
  403. </dd>
  404. <dt>PathSeparator</dt>
  405. <dd> This character can be found between elements in a
  406. series of paths (such as the contents of the <var>PATH</var> environment
  407. variable.
  408. </dd>
  409. <dt>FileNameCaseSensitive</dt>
  410. <dd> Indicates whether filenames are case sensitive.
  411. </dd>
  412. </dl>
  413. <p>
  414. When programming cross-platform, use these constants instead of hard-coded
  415. characters. This will enhance portability of an application.
  416. </p>
  417. </descr>
  418. </topic>
  419. <topic name="variables">
  420. <short>Variables</short>
  421. <descr>
  422. <p>
  423. The following variables are defined and initialized in the system unit:
  424. </p>
  425. <code>
  426. var
  427. output,input,stderr : text;
  428. exitproc : pointer;
  429. exitcode : word;
  430. stackbottom : Cardinal;
  431. </code>
  432. <p>
  433. The variables <var>ExitProc</var>, <var>exitcode</var> are used in the Free Pascal exit
  434. scheme. It works similarly to the one in Turbo Pascal:
  435. </p>
  436. <p>
  437. When a program halts (be it through the call of the <var>Halt</var> function or
  438. <var>Exit</var> or through a run-time error), the exit mechanism checks the value
  439. of <var>ExitProc</var>. If this one is non-<var>Nil</var>, it is set to <var>Nil</var>, and
  440. the procedure is called. If the exit procedure exits, the value of ExitProc
  441. is checked again. If it is non-<var>Nil</var> then the above steps are repeated.
  442. So when an exit procedure must be installed, the old value of <var>ExitProc</var>
  443. should be saved (it may be non-<var>Nil</var>, since other units could have set
  444. it). In the exit procedure the value of <var>ExitProc</var> should be restored to
  445. the previous value, such that if it was non-<var>Nil</var> the exit-procedure can be
  446. called.
  447. </p>
  448. <p>
  449. The <var>ErrorAddr</var> and <var>ExitCode</var> can be used to check for
  450. error-conditions. If <var>ErrorAddr</var> is non-<var>Nil</var>, a run-time error has
  451. occurred. If so, <var>ExitCode</var> contains the error code. If <var>ErrorAddr</var> is
  452. <var>Nil</var>, then {ExitCode} contains the argument to <var>Halt</var> or 0 if the
  453. program terminated normally.
  454. </p>
  455. <p>
  456. <var>ExitCode</var> is always passed to the operating system as the exit-code of
  457. the current process.
  458. </p>
  459. <remark>
  460. The maximum error code under linux and unix like operating systems is 127.
  461. </remark>
  462. <p>
  463. Under <file>GO32</file>, the following constants are also defined :
  464. </p>
  465. <code>
  466. const
  467. seg0040 = $0040;
  468. segA000 = $A000;
  469. segB000 = $B000;
  470. segB800 = $B800;
  471. </code>
  472. <p>
  473. These constants allow easy access to the bios/screen segment via mem/absolute.
  474. </p>
  475. <p>
  476. The randomize function uses a seed stored in the <var>RandSeed</var> variable:
  477. </p>
  478. <code>
  479. RandSeed : Cardinal;
  480. </code>
  481. <p>
  482. This variable is initialized in the initialization code of the system unit.
  483. </p>
  484. <p>
  485. Other variables indicate the state of the application.
  486. </p>
  487. <code>
  488. IsLibrary : boolean;
  489. IsMultiThread : boolean;
  490. </code>
  491. <p>
  492. The <var>IsLibrary</var> variable is set to true if this module is a
  493. shared library instead of an application. The <var>IsMultiThread</var>
  494. variable is set to True if the application has spawned other
  495. threads, otherwise, and by default, it is set to False.
  496. </p>
  497. </descr>
  498. <example file="refex/ex98"/>
  499. </topic>
  500. <topic name="FileFunctions">
  501. <short>File handling functions</short>
  502. <descr>
  503. <p>
  504. Functions concerning input and output from and to file.
  505. </p>
  506. <table>
  507. <th><td>Name</td><td>Description</td></th>
  508. <tr><td><link id="Append"/></td><td>Open a file in append mode</td></tr>
  509. <tr><td><link id="Assign"/></td><td>Assign a name to a file</td></tr>
  510. <tr><td><link id="Blockread"/></td><td>Read data from a file into memory</td></tr>
  511. <tr><td><link id="Blockwrite"/></td><td>Write data from memory to a file</td></tr>
  512. <tr><td><link id="Close"/></td><td>Close a file</td></tr>
  513. <tr><td><link id="Eof"/></td><td>Check for end of file</td></tr>
  514. <tr><td><link id="Eoln"/></td><td>Check for end of line</td></tr>
  515. <tr><td><link id="Erase"/></td><td>Delete file from disk</td></tr>
  516. <tr><td><link id="Filepos"/></td><td>Position in file</td></tr>
  517. <tr><td><link id="Filesize"/></td><td>Size of file</td></tr>
  518. <tr><td><link id="Flush"/></td><td>Write file buffers to disk</td></tr>
  519. <tr><td><link id="IOresult"/></td><td>Return result of last file IO operation</td></tr>
  520. <tr><td><link id="Read"/></td><td>Read from file into variable</td></tr>
  521. <tr><td><link id="Readln"/></td><td>Read from file into variable and goto next line</td></tr>
  522. <tr><td><link id="Rename"/></td><td>Rename file on disk</td></tr>
  523. <tr><td><link id="Reset"/></td><td>Open file for reading</td></tr>
  524. <tr><td><link id="Rewrite"/></td><td>Open file for writing</td></tr>
  525. <tr><td><link id="Seek"/></td><td>Set file position</td></tr>
  526. <tr><td><link id="SeekEof"/></td><td>Set file position to end of file</td></tr>
  527. <tr><td><link id="SeekEoln"/></td><td>Set file position to end of line</td></tr>
  528. <tr><td><link id="SetTextBuf"/></td><td>Set size of file buffer</td></tr>
  529. <tr><td><link id="Truncate"/></td><td>Truncate the file at position</td></tr>
  530. <tr><td><link id="Write"/></td><td>Write variable to file</td></tr>
  531. <tr><td><link id="WriteLn"/></td><td>Write variable to file and append newline</td></tr>
  532. </table>
  533. </descr>
  534. </topic>
  535. <topic name="MemoryFunctions">
  536. <short>Memory management functions</short>
  537. <descr>
  538. <p>
  539. Functions concerning memory issues.
  540. </p>
  541. <table>
  542. <th><td>Name</td><td>Description</td></th>
  543. <tr><td><link id="Addr"/></td><td>Return address of variable</td></tr>
  544. <tr><td><link id="Assigned"/></td><td>Check if a pointer is valid</td></tr>
  545. <tr><td><link id="CompareByte"/></td><td>Compare 2 memory buffers byte per byte</td></tr>
  546. <tr><td><link id="CompareChar"/></td><td>Compare 2 memory buffers byte per byte</td></tr>
  547. <tr><td><link id="CompareDWord"/></td><td>Compare 2 memory buffers byte per byte</td></tr>
  548. <tr><td><link id="CompareWord"/></td><td>Compare 2 memory buffers byte per byte</td></tr>
  549. <tr><td><link id="CSeg"/></td><td>Return code segment</td></tr>
  550. <tr><td><link id="Dispose"/></td><td>Free dynamically allocated memory</td></tr>
  551. <tr><td><link id="DSeg"/></td><td>Return data segment</td></tr>
  552. <tr><td><link id="FillByte"/></td><td>Fill memory region with 8-bit pattern</td></tr>
  553. <tr><td><link id="Fillchar"/></td><td>Fill memory region with certain character</td></tr>
  554. <tr><td><link id="FillDWord"/></td><td>Fill memory region with 32-bit pattern</td></tr>
  555. <tr><td><link id="Fillword"/></td><td>Fill memory region with 16-bit pattern</td></tr>
  556. <tr><td><link id="Freemem"/></td><td>Release allocated memory</td></tr>
  557. <tr><td><link id="Getmem"/></td><td>Allocate new memory</td></tr>
  558. <tr><td><link id="GetMemoryManager"/></td><td>Return current memory manager</td></tr>
  559. <tr><td><link id="High"/></td><td>Return highest index of open array or enumerated</td></tr>
  560. <tr><td><link id="IsMemoryManagerSet"/></td><td>Is the memory manager set</td></tr>
  561. <tr><td><link id="Low"/></td><td>Return lowest index of open array or enumerated</td></tr>
  562. <tr><td><link id="Move"/></td><td>Move data from one location in memory to another</td></tr>
  563. <tr><td><link id="MoveChar0">MoveChar0</link></td><td>Move data till first zero character</td></tr>
  564. <tr><td><link id="New"/></td><td>Dynamically allocate memory for variable</td></tr>
  565. <tr><td><link id="Ofs"/></td><td>Return offset of variable</td></tr>
  566. <tr><td><link id="Ptr"/></td><td>Combine segment and offset to pointer</td></tr>
  567. <tr><td><link id="ReAllocMem"/></td><td>Resize a memory block on the heap</td></tr>
  568. <tr><td><link id="Seg"/></td><td>Return segment</td></tr>
  569. <tr><td><link id="SetMemoryManager"/></td><td>Set a memory manager</td></tr>
  570. <tr><td><link id="Sptr"/></td><td>Return current stack pointer</td></tr>
  571. <tr><td><link id="SSeg"/></td><td>Return stack segment register value</td></tr>
  572. </table>
  573. </descr>
  574. </topic>
  575. <topic name="MathematicalFunctions">
  576. <short>Mathematical routines</short>
  577. <descr>
  578. <p>
  579. Functions connected to calculating and coverting numbers.
  580. </p>
  581. <table>
  582. <th><td>Name</td><td>Description</td></th>
  583. <tr><td><link id="Abs"/></td><td>Calculate absolute value</td></tr>
  584. <tr><td><link id="Arctan"/></td><td>Calculate inverse tangent</td></tr>
  585. <tr><td><link id="Cos"/></td><td>Calculate cosine of angle</td></tr>
  586. <tr><td><link id="Dec"/></td><td>Decrease value of variable</td></tr>
  587. <tr><td><link id="Exp"/></td><td>Exponentiate</td></tr>
  588. <tr><td><link id="Frac"/></td><td>Return fractional part of floating point value</td></tr>
  589. <tr><td><link id="Hi"/></td><td>Return high byte/word of value</td></tr>
  590. <tr><td><link id="Inc"/></td><td>Increase value of variable</td></tr>
  591. <tr><td><link id="Int"/></td><td>Calculate integer part of floating point value</td></tr>
  592. <tr><td><link id="Ln"/></td><td>Calculate logarithm</td></tr>
  593. <tr><td><link id="Lo"/></td><td>Return low byte/word of value</td></tr>
  594. <tr><td><link id="Odd"/></td><td>Is a value odd or even ? </td></tr>
  595. <tr><td><link id="Pi"/></td><td>Return the value of pi</td></tr>
  596. <tr><td><link id="Power"/></td><td>Raise float to integer power</td></tr>
  597. <tr><td><link id="Random"/></td><td>Generate random number</td></tr>
  598. <tr><td><link id="Randomize"/></td><td>Initialize random number generator</td></tr>
  599. <tr><td><link id="Round"/></td><td>Round floating point value to nearest integer number</td></tr>
  600. <tr><td><link id="Sin"/></td><td>Calculate sine of angle</td></tr>
  601. <tr><td><link id="Sqr"/></td><td>Calculate the square of a value</td></tr>
  602. <tr><td><link id="Sqrt"/></td><td>Calculate the square root of a value</td></tr>
  603. <tr><td><link id="Swap"/></td><td>Swap high and low bytes/words of a variable</td></tr>
  604. <tr><td><link id="Trunc"/></td><td>Truncate a floating point value</td></tr>
  605. </table>
  606. </descr>
  607. </topic>
  608. <topic name="StringFunctions">
  609. <short>String handling</short>
  610. <descr>
  611. <p>
  612. All things connected to string handling.
  613. </p>
  614. <table>
  615. <th><td>Name</td><td>Description</td></th>
  616. <tr><td><link id="BinStr"/></td><td>Construct binary representation of integer</td></tr>
  617. <tr><td><link id="Chr"/></td><td>Convert ASCII code to character</td></tr>
  618. <tr><td><link id="Concat"/></td><td>Concatenate two strings</td></tr>
  619. <tr><td><link id="Copy"/></td><td>Copy part of a string</td></tr>
  620. <tr><td><link id="Delete"/></td><td>Delete part of a string</td></tr>
  621. <tr><td><link id="HexStr"/></td><td>Construct hexadecimal representation of integer</td></tr>
  622. <tr><td><link id="Insert"/></td><td>Insert one string in another</td></tr>
  623. <tr><td><link id="Length"/></td><td>Return length of string</td></tr>
  624. <tr><td><link id="Lowercase"/></td><td>Convert string to all-lowercase</td></tr>
  625. <tr><td><link id="OctStr"/></td><td>Construct octal representation of integer</td></tr>
  626. <tr><td><link id="Pos"/></td><td>Calculate position of one string in another</td></tr>
  627. <tr><td><link id="SetLength"/></td><td>Set length of a string</td></tr>
  628. <tr><td><link id="SetString"/></td><td>Set contents and length of a string</td></tr>
  629. <tr><td><link id="Str"/></td><td>Convert number to string representation</td></tr>
  630. <tr><td><link id="StringOfChar"/></td><td>Create string consisting of a number of characters</td></tr>
  631. <tr><td><link id="Upcase"/></td><td>Convert string to all-uppercase</td></tr>
  632. <tr><td><link id="Val"/></td><td>Convert string to number</td></tr>
  633. </table>
  634. </descr>
  635. </topic>
  636. <topic name="OSfunctions">
  637. <short>Operating System functions</short>
  638. <descr>
  639. <p>
  640. Functions that are connected to the operating system.
  641. </p>
  642. <table>
  643. <th><td>Name</td><td>Description</td></th>
  644. <tr><td><link id="Chdir"/></td><td>Change working directory</td></tr>
  645. <tr><td><link id="Getdir"/></td><td>Return current working directory</td></tr>
  646. <tr><td><link id="Halt"/></td><td>Halt program execution</td></tr>
  647. <tr><td><link id="Paramcount"/></td><td>Number of parameters with which program was called</td></tr>
  648. <tr><td><link id="Paramstr"/></td><td>Retrieve parameters with which program was called</td></tr>
  649. <tr><td><link id="Mkdir"/></td><td>Make a directory</td></tr>
  650. <tr><td><link id="Rmdir"/></td><td>Remove a directory</td></tr>
  651. <tr><td><link id="Runerror"/></td><td>Abort program execution with error condition</td></tr>
  652. </table>
  653. </descr>
  654. </topic>
  655. <topic name="MiscellaneousFunctions">
  656. <short>Miscellaneous functions</short>
  657. <descr>
  658. <p>
  659. Functions that do not belong in one of the other categories.
  660. </p>
  661. <table>
  662. <th><td>Name</td><td>Description</td></th>
  663. <tr><td><link id="Assert"/></td><td>Conditionally abort program with error</td></tr>
  664. <tr><td><link id="Break"/></td><td>Abort current loop</td></tr>
  665. <tr><td><link id="Continue"/></td><td>Next cycle in current loop</td></tr>
  666. <tr><td><link id="Exclude"/></td><td>Exclude an element from a set</td></tr>
  667. <tr><td><link id="Exit"/></td><td>Exit current function or procedure</td></tr>
  668. <tr><td><link id="Include"/></td><td>Include an element into a set</td></tr>
  669. <tr><td><link id="LongJmp"/></td><td>Jump to execution point</td></tr>
  670. <tr><td><link id="Ord"/></td><td>Return ordinal value of enumerated type</td></tr>
  671. <tr><td><link id="Pred"/></td><td>Return previous value of ordinal type</td></tr>
  672. <tr><td><link id="SetJmp"/></td><td>Mark execution point for jump</td></tr>
  673. <tr><td><link id="SizeOf"/></td><td>Return size of variable or type</td></tr>
  674. <tr><td><link id="Succ"/></td><td>Return next value of ordinal type</td></tr>
  675. </table>
  676. </descr>
  677. </topic>
  678. <element name="Abs">
  679. <short>Calculate absolute value</short>
  680. <descr>
  681. <var>Abs</var> returns the absolute value of a variable. The result of the
  682. function has the same type as its argument, which can be any numerical
  683. type.
  684. </descr>
  685. <errors>
  686. None.
  687. </errors>
  688. <seealso>
  689. <link id="Round"/>
  690. </seealso>
  691. <example file="refex/ex1"/>
  692. </element>
  693. <element name="Addr">
  694. <short>Return address of a variable</short>
  695. <descr>
  696. <var>Addr</var> returns a pointer to its argument, which can be any type, or a
  697. function or procedure name. The returned pointer isn't typed.
  698. The same result can be obtained by the <var>@</var> operator, which can return a
  699. typed pointer (\progref).
  700. </descr>
  701. <errors>
  702. None
  703. </errors>
  704. <seealso>
  705. <link id="SizeOf"/>
  706. </seealso>
  707. <example file="refex/ex2"/>
  708. </element>
  709. <element name="Append">
  710. <short>Open a file in append mode</short>
  711. <descr>
  712. <var>Append</var> opens an existing file in append mode. Any data written to
  713. <var>F</var> will be appended to the file. Only text files can be opened in
  714. append mode. After a call to <var>Append</var>, the file <var>F</var> becomes
  715. write-only.
  716. File sharing is not taken into account when calling <var>Append</var>.
  717. </descr>
  718. <errors>
  719. If the file doesn't exist when appending, a run-time error will be generated.
  720. This behaviour has changed on Windows and Linux platforms, where in versions
  721. prior to 1.0.6, the file would be created in append mode.
  722. </errors>
  723. <seealso>
  724. <link id="Rewrite"/>
  725. <link id="Close"/>
  726. <link id="Reset"/>
  727. </seealso>
  728. <example file="refex/ex3"/>
  729. </element>
  730. <element name="Arctan">
  731. <short>Calculate inverse tangent</short>
  732. <descr>
  733. <var>Arctan</var> returns the Arctangent of <var>X</var>, which can be any Real type.
  734. The resulting angle is in radial units.
  735. </descr>
  736. <errors>
  737. None
  738. </errors>
  739. <seealso>
  740. <link id="Sin"/>
  741. <link id="Cos"/>
  742. </seealso>
  743. <example file="refex/ex4"/>
  744. </element>
  745. <element name="Assert">
  746. <short>Check validity of a given condition.</short>
  747. <descr>
  748. With assertions on, <var>Assert</var> tests if <var>expr</var> is
  749. false, and if so, aborts the application with a Runtime error
  750. 227 and an optional error message in <var>msg</var>.
  751. If <var>expr</var> is true, program execution continues normally.
  752. If assertions are not enabled at compile time, this routine does
  753. nothing, and no code is generated for the <var>Assert</var> call.
  754. Enabling and disabling assertions at compile time is done via
  755. the <var>\$C</var> or <var>\$ASSERTIONS</var> compiler switches. These are
  756. global switches.
  757. The default behavior of the assert call can be changed by
  758. setting a new handler in the <var>AssertErrorProc</var> variable.
  759. Sysutils overrides the default handler to raise a <var>EAssertionFailed</var>
  760. exception.
  761. </descr>
  762. <errors>
  763. None.
  764. </errors>
  765. <seealso>
  766. <link id="Halt"/>
  767. <link id="Runerror"/>
  768. </seealso>
  769. </element>
  770. <element name="Assign">
  771. <short>Assign a name to a file</short>
  772. <descr>
  773. <var>Assign</var> assigns a name to <var>F</var>, which can be any file type.
  774. This call doesn't open the file, it just assigns a name to a file variable,
  775. and marks the file as closed.
  776. </descr>
  777. <errors>
  778. None.
  779. </errors>
  780. <seealso>
  781. <link id="Reset"/>
  782. <link id="Rewrite"/>
  783. <link id="Append"/>
  784. </seealso>
  785. <example file="refex/ex5"/>
  786. </element>
  787. <element name="Assigned">
  788. <short>Check if a pointer is valid</short>
  789. <descr>
  790. <var>Assigned</var> returns <var>True</var> if <var>P</var> is non-nil
  791. and retuns <var>False</var> of <var>P</var> is nil.
  792. The main use of Assigned is that Procedural variables, method variables and
  793. class-type variables also can be passed to <var>Assigned</var>.
  794. </descr>
  795. <errors>
  796. None
  797. </errors>
  798. <seealso>
  799. <link id="New"/>
  800. </seealso>
  801. <example file="refex/ex96"/>
  802. </element>
  803. <element name="BinStr">
  804. <short>Convert integer to string with binary representation.</short>
  805. <descr>
  806. <var>BinStr</var> returns a string with the binary representation
  807. of <var>Value</var>. The string has at most <var>cnt</var> characters.
  808. (i.e. only the <var>cnt</var> rightmost bits are taken into account)
  809. To have a complete representation of any longint-type value, 32
  810. bits are needed, i.e. <var>cnt=32</var>
  811. </descr>
  812. <errors>
  813. None.
  814. </errors>
  815. <seealso>
  816. <link id="Str"/>
  817. <link id="Val"/>
  818. <link id="HexStr"/>
  819. <link id="OctStr"/>
  820. </seealso>
  821. <example file="refex/ex82"/>
  822. </element>
  823. <element name="Blockread">
  824. <short>Read data from an untyped file into memory</short>
  825. <descr>
  826. <var>Blockread</var> reads <var>count</var> or less records from file <var>F</var>. A
  827. record is a block of bytes with size specified by the <link id="Rewrite"/> or
  828. <link id="Reset"/> statement.
  829. The result is placed in <var>Buffer</var>, which must contain enough room for
  830. <var>Count</var> records. The function cannot read partial records.
  831. If <var>Result</var> is specified, it contains the number of records actually
  832. read. If <var>Result</var> isn't specified, and less than <var>Count</var> records were
  833. read, a run-time error is generated. This behavior can be controlled by the
  834. \var{\{\$i\}} switch.
  835. </descr>
  836. <errors>
  837. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  838. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  839. to check for errors.
  840. </errors>
  841. <seealso>
  842. <link id="Blockwrite"/>
  843. <link id="Close"/>
  844. <link id="Reset"/>
  845. <link id="Assign"/>
  846. </seealso>
  847. <example file="refex/ex6"/>
  848. </element>
  849. <element name="Blockwrite">
  850. <short>Write data from memory to an untyped file</short>
  851. <descr>
  852. <var>BlockWrite</var> writes <var>count</var> records from <var>buffer</var> to the file
  853. <var>F</var>.A record is a block of bytes with size specified by the <link id="Rewrite"/> or
  854. <link id="Reset"/> statement.
  855. If the records couldn't be written to disk, a run-time error is generated.
  856. This behavior can be controlled by the \var{\{\$i\}} switch.
  857. </descr>
  858. <errors>
  859. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  860. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  861. to check for errors.
  862. </errors>
  863. <seealso>
  864. <link id="Blockread"/>
  865. <link id="Close"/>
  866. <link id="Rewrite"/>
  867. <link id="Assign"/>
  868. </seealso>
  869. </element>
  870. For the example, see <link id="Blockread"/>.
  871. <element name="Break">
  872. <short>Exit current loop construct.</short>
  873. <descr>
  874. <p>
  875. <var>Break</var> jumps to the statement following the end of the current
  876. repetitive statement. The code between the <var>Break</var> call and
  877. the end of the repetitive statement is skipped.
  878. The condition of the repetitive statement is NOT evaluated.
  879. </p>
  880. <p>
  881. This can be used with <var>For</var>, var{repeat} and <var>While</var> statements.
  882. </p>
  883. <p>
  884. Note that while this is a procedure, <var>Break</var> is a reserved word
  885. and hence cannot be redefined.
  886. </p>
  887. </descr>
  888. <errors>
  889. None.
  890. </errors>
  891. <seealso>
  892. <link id="Continue"/>
  893. <link id="Exit"/>
  894. </seealso>
  895. <example file="refex/ex87"/>
  896. </element>
  897. <element name="Chdir">
  898. <short>Change current working directory.</short>
  899. <descr>
  900. <var>Chdir</var> changes the working directory of the process to <var>S</var>.
  901. </descr>
  902. <errors>
  903. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  904. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  905. to check for errors.
  906. </errors>
  907. <seealso>
  908. <link id="Mkdir"/>
  909. <link id="Rmdir"/>
  910. </seealso>
  911. <example file="refex/ex7"/>
  912. </element>
  913. <element name="Chr">
  914. <short>Convert byte value to character value</short>
  915. <descr>
  916. <var>Chr</var> returns the character which has ASCII value <var>X</var>.
  917. </descr>
  918. <errors>
  919. None.
  920. </errors>
  921. <seealso>
  922. <link id="Ord"/>
  923. <link id="Str"/>
  924. </seealso>
  925. <example file="refex/ex8"/>
  926. </element>
  927. <element name="Close">
  928. <short>Close a file</short>
  929. <descr>
  930. <var>Close</var> flushes the buffer of the file <var>F</var> and closes <var>F</var>.
  931. After a call to <var>Close</var>, data can no longer be read from or written to
  932. <var>F</var>.
  933. To reopen a file closed with <var>Close</var>, it isn't necessary to assign the
  934. file again. A call to <link id="Reset"/> or <link id="Rewrite"/> is sufficient.
  935. </descr>
  936. <errors>
  937. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  938. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  939. to check for errors.
  940. </errors>
  941. <seealso>
  942. <link id="Assign"/>
  943. <link id="Reset"/>
  944. <link id="Rewrite"/>
  945. <link id="Flush"/>
  946. </seealso>
  947. <example file="refex/ex9"/>
  948. </element>
  949. <element name="CompareByte">
  950. <short>Compare 2 memory buffers byte per byte</short>
  951. <descr>
  952. <p>
  953. <var>CompareByte</var> compares two memory regions <var>buf1</var>,<var>buf2</var> on a
  954. byte-per-byte basis for a total of <var>len</var> bytes.
  955. </p>
  956. <p>
  957. The function returns one of the following values:
  958. </p>
  959. <dl>
  960. <dt>less than 0</dt>
  961. <dd> if <var>buf1</var> and <var>buf2</var> contain different bytes
  962. in the first <var>len</var> bytes, and the first such byte is smaller in <var>buf1</var>
  963. than the byte at the same position in <var>buf2</var>.
  964. </dd>
  965. <dt>0</dt>
  966. <dd> if the first <var>len</var> bytes in <var>buf1</var> and <var>buf2</var> are
  967. equal.
  968. \item [greater than 0] if <var>buf1</var> and <var>buf2</var> contain different bytes
  969. in the first <var>len</var> bytes, and the first such byte is larger in <var>buf1</var>
  970. than the byte at the same position in <var>buf2</var>.
  971. </dd>
  972. </dl>
  973. </descr>
  974. <errors>
  975. None.
  976. </errors>
  977. <seealso>
  978. <link id="CompareChar"/>
  979. <link id="CompareWord"/>
  980. <link id="CompareDWord"/>
  981. </seealso>
  982. <example file="refex/ex99"/>
  983. </element>
  984. <element name="CompareChar">
  985. <short>ompare 2 memory buffers character per character</short>
  986. <descr>
  987. <p>
  988. <var>CompareChar</var> compares two memory regions <var>buf1</var>,<var>buf2</var> on a
  989. character-per-character basis for a total of <var>len</var> characters.
  990. </p>
  991. <p>
  992. The <var>CompareChar0</var> variant compares <var>len</var> bytes, or until
  993. a zero character is found.
  994. </p>
  995. <p>
  996. The function returns one of the following values:
  997. </p>
  998. <dl>
  999. <dt>-1</dt>
  1000. <dd> if <var>buf1</var> and <var>buf2</var> contain different characters
  1001. in the first <var>len</var> positions, and the first such character is smaller in <var>buf1</var>
  1002. than the character at the same position in <var>buf2</var>.
  1003. </dd>
  1004. <dt>0</dt>
  1005. <dd> if the first <var>len</var> characters in <var>buf1</var> and <var>buf2</var> are
  1006. equal.
  1007. </dd>
  1008. <dt>1</dt>
  1009. <dd>if <var>buf1</var> and <var>buf2</var> contain different characters
  1010. in the first <var>len</var> positions, and the first such character is larger in
  1011. <var>buf1</var> than the character at the same position in <var>buf2</var>.
  1012. </dd>
  1013. </dl>
  1014. </descr>
  1015. <errors>
  1016. None.
  1017. </errors>
  1018. <seealso>
  1019. <link id="CompareByte"/>
  1020. <link id="CompareWord"/>
  1021. <link id="CompareDWord"/>
  1022. </seealso>
  1023. <example file="refex/ex100"/>
  1024. </element>
  1025. <element name="CompareDWord">
  1026. <short>Compare 2 memory buffers DWord per DWord</short>
  1027. <descr>
  1028. <p>
  1029. <var>CompareDWord</var> compares two memory regions <var>buf1</var>,<var>buf2</var> on a
  1030. DWord-per-DWord basis for a total of <var>len</var> DWords. (A DWord is 4 bytes).
  1031. </p>
  1032. <p>
  1033. The function returns one of the following values:
  1034. </p>
  1035. <dl>
  1036. <dt>-1</dt>
  1037. <dd> if <var>buf1</var> and <var>buf2</var> contain different DWords
  1038. in the first <var>len</var> DWords, and the first such DWord is smaller in <var>buf1</var>
  1039. than the DWord at the same position in <var>buf2</var>.
  1040. </dd>
  1041. <dt>0</dt>
  1042. <dd> if the first <var>len</var> DWords in <var>buf1</var> and <var>buf2</var> are
  1043. equal.
  1044. </dd>
  1045. <dt>1</dt>
  1046. <dd>if <var>buf1</var> and <var>buf2</var> contain different DWords
  1047. in the first <var>len</var> DWords, and the first such DWord is larger in <var>buf1</var>
  1048. than the DWord at the same position in <var>buf2</var>.
  1049. </dd>
  1050. </dl>
  1051. </descr>
  1052. <errors>
  1053. None.
  1054. </errors>
  1055. <seealso>
  1056. <link id="CompareChar"/>
  1057. <link id="CompareByte"/>
  1058. <link id="CompareWord"/>,
  1059. </seealso>
  1060. <example file="refex/ex101"/>
  1061. </element>
  1062. <element name="CompareWord">
  1063. <short>Compare 2 memory buffers word per word</short>
  1064. <descr>
  1065. <p>
  1066. <var>CompareWord</var> compares two memory regions <var>buf1</var>,<var>buf2</var> on a
  1067. Word-per-Word basis for a total of <var>len</var> Words. (A Word is 2 bytes).
  1068. </p>
  1069. <p>
  1070. The function returns one of the following values:
  1071. </p>
  1072. <dl>
  1073. <dt>-1</dt>
  1074. <dd> if <var>buf1</var> and <var>buf2</var> contain different Words
  1075. in the first <var>len</var> Words, and the first such Word is smaller in <var>buf1</var>
  1076. than the Word at the same position in <var>buf2</var>.
  1077. </dd>
  1078. <dt>0</dt>
  1079. <dd> if the first <var>len</var> Words in <var>buf1</var> and <var>buf2</var> are
  1080. equal.
  1081. </dd>
  1082. <dt>1</dt>
  1083. <dd>
  1084. if <var>buf1</var> and <var>buf2</var> contain different Words
  1085. in the first <var>len</var> Words, and the first such Word is larger in <var>buf1</var>
  1086. than the Word at the same position in <var>buf2</var>.
  1087. </dd>
  1088. </dl>
  1089. </descr>
  1090. <errors>
  1091. None.
  1092. </errors>
  1093. <seealso>
  1094. <link id="CompareChar"/>
  1095. <link id="CompareByte"/>
  1096. <link id="CompareDWord"/>,
  1097. </seealso>
  1098. <example file="refex/ex102"/>
  1099. </element>
  1100. <element name="Concat">
  1101. <short>Append one string to another.</short>
  1102. <descr>
  1103. <var>Concat</var> concatenates the strings <var>S1</var>,<var>S2</var> etc. to one long
  1104. string. The resulting string is truncated at a length of 255 bytes.
  1105. The same operation can be performed with the <var>+</var> operation.
  1106. </descr>
  1107. <errors>
  1108. None.
  1109. </errors>
  1110. <seealso>
  1111. <link id="Copy"/>
  1112. <link id="Delete"/>
  1113. <link id="Insert"/>
  1114. <link id="Pos"/>
  1115. <link id="Length"/>
  1116. </seealso>
  1117. <example file="refex/ex10"/>
  1118. </element>
  1119. <element name="Continue">
  1120. <short>Continue with next loop cycle.</short>
  1121. <descr>
  1122. <p>
  1123. <var>Continue</var> jumps to the end of the current repetitive statement.
  1124. The code between the <var>Continue</var> call and the end of the repetitive
  1125. statement is skipped. The condition of the repetitive statement is then
  1126. checked again.
  1127. </p>
  1128. <p>
  1129. This can be used with <var>For</var>, var{repeat} and <var>While</var> statements.
  1130. </p>
  1131. <p>
  1132. Note that while this is a procedure, <var>Continue</var> is a reserved word
  1133. and hence cannot be redefined.
  1134. </p>
  1135. </descr>
  1136. <errors>
  1137. None.
  1138. </errors>
  1139. <seealso>
  1140. <link id="Break"/>
  1141. <link id="Exit"/>
  1142. </seealso>
  1143. <example file="refex/ex86"/>
  1144. </element>
  1145. <element name="Copy">
  1146. <short>Copy part of a string.</short>
  1147. <descr>
  1148. <var>Copy</var> returns a string which is a copy if the <var>Count</var> characters
  1149. in <var>S</var>, starting at position <var>Index</var>. If <var>Count</var> is larger than
  1150. the length of the string <var>S</var>, the result is truncated.
  1151. If <var>Index</var> is larger than the length of the string <var>S</var>, then an
  1152. empty string is returned.
  1153. </descr>
  1154. <errors>
  1155. None.
  1156. </errors>
  1157. <seealso>
  1158. <link id="Delete"/>
  1159. <link id="Insert"/>
  1160. <link id="Pos"/>
  1161. </seealso>
  1162. <example file="refex/ex11"/>
  1163. </element>
  1164. <element name="Cos">
  1165. <short>Calculate cosine of angle</short>
  1166. <descr>
  1167. <var>Cos</var> returns the cosine of <var>X</var>, where X is an angle, in radians.
  1168. If the absolute value of the argument is larger than \var{2\^{}63}, then the
  1169. result is undefined.
  1170. </descr>
  1171. <errors>
  1172. None.
  1173. </errors>
  1174. <seealso>
  1175. <link id="Arctan"/>
  1176. <link id="Sin"/>
  1177. </seealso>
  1178. <example file="refex/ex12"/>
  1179. </element>
  1180. <element name="CSeg">
  1181. <short>Return code segment</short>
  1182. <descr>
  1183. <var>CSeg</var> returns the Code segment register. In Free Pascal, it returns always a
  1184. zero, since Free Pascal is a 32 bit compiler.
  1185. </descr>
  1186. <errors>
  1187. None.
  1188. </errors>
  1189. <seealso>
  1190. <link id="DSeg"/>
  1191. <link id="Seg"/>
  1192. <link id="Ofs"/>
  1193. <link id="Ptr"/>
  1194. </seealso>
  1195. <example file="refex/ex13"/>
  1196. </element>
  1197. <element name="Dec">
  1198. <short>Decrease value of variable</short>
  1199. <descr>
  1200. <var>Dec</var> decreases the value of <var>X</var> with <var>Decrement</var>.
  1201. If <var>Decrement</var> isn't specified, then 1 is taken as a default.
  1202. </descr>
  1203. <errors>
  1204. A range check can occur, or an underflow error, if an attempt it made
  1205. to decrease <var>X</var> below its minimum value.
  1206. </errors>
  1207. <seealso>
  1208. <link id="Inc"/>
  1209. </seealso>
  1210. <example file="refex/ex14"/>
  1211. </element>
  1212. <element name="Delete">
  1213. <short>Delete part of a string.</short>
  1214. <descr>
  1215. <var>Delete</var> removes <var>Count</var> characters from string <var>S</var>, starting
  1216. at position <var>Index</var>. All characters after the delected characters are
  1217. shifted <var>Count</var> positions to the left, and the length of the string is adjusted.
  1218. </descr>
  1219. <errors>
  1220. None.
  1221. </errors>
  1222. <seealso>
  1223. <link id="Copy"/>
  1224. <link id="Pos"/>
  1225. <link id="Insert"/>
  1226. </seealso>
  1227. <example file="refex/ex15"/>
  1228. </element>
  1229. <element name="Dispose">
  1230. <short>Free dynamically allocated memory</short>
  1231. <descr>
  1232. <p>
  1233. The first form <var>Dispose</var> releases the memory allocated with a call to
  1234. <link id="New"/>. The pointer <var>P</var> must be typed. The released memory is
  1235. returned to the heap.
  1236. </p>
  1237. <p>
  1238. The second form of <var>Dispose</var> accepts as a first parameter a pointer
  1239. to an object type, and as a second parameter the name of a destructor
  1240. of this object. The destructor will be called, and the memory allocated
  1241. for the object will be freed.
  1242. </p>
  1243. </descr>
  1244. <errors>
  1245. An runtime error will occur if the pointer doesn't point to a location in the
  1246. heap.
  1247. </errors>
  1248. <seealso>
  1249. <link id="New"/>
  1250. <link id="Getmem"/>
  1251. <link id="Freemem"/>
  1252. </seealso>
  1253. <example file="refex/ex16"/>
  1254. </element>
  1255. <element name="DSeg">
  1256. <short>Return data segment</short>
  1257. <descr>
  1258. <var>DSeg</var> returns the data segment register. In Free Pascal, it returns always a
  1259. zero, since Free Pascal is a 32 bit compiler.
  1260. </descr>
  1261. <errors>
  1262. None.
  1263. </errors>
  1264. <seealso>
  1265. <link id="CSeg"/>
  1266. <link id="Seg"/>
  1267. <link id="Ofs"/>
  1268. <link id="Ptr"/>
  1269. </seealso>
  1270. <example file="refex/ex17"/>
  1271. </element>
  1272. <element name="Eof">
  1273. <short>Check for end of file</short>
  1274. <descr>
  1275. <var>Eof</var> returns <var>True</var> if the file-pointer has reached the end of the
  1276. file, or if the file is empty. In all other cases <var>Eof</var> returns
  1277. <var>False</var>.
  1278. If no file <var>F</var> is specified, standard input is assumed.
  1279. </descr>
  1280. <errors>
  1281. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  1282. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  1283. to check for errors.
  1284. </errors>
  1285. <seealso>
  1286. <link id="Eoln"/>
  1287. <link id="Assign"/>
  1288. <link id="Reset"/>
  1289. <link id="Rewrite"/>
  1290. </seealso>
  1291. <example file="refex/ex18"/>
  1292. </element>
  1293. <element name="Eoln">
  1294. <short>Check for end of line</short>
  1295. <descr>
  1296. <var>Eof</var> returns <var>True</var> if the file pointer has reached the end of a
  1297. line, which is demarcated by a line-feed character (ASCII value 10), or if
  1298. the end of the file is reached.
  1299. In all other cases <var>Eof</var> returns <var>False</var>.
  1300. If no file <var>F</var> is specified, standard input is assumed.
  1301. It can only be used on files of type <var>Text</var>.
  1302. </descr>
  1303. <errors>
  1304. None.
  1305. </errors>
  1306. <seealso>
  1307. <link id="Eof"/>
  1308. <link id="Assign"/>
  1309. <link id="Reset"/>
  1310. <link id="Rewrite"/>
  1311. </seealso>
  1312. <example file="refex/ex19"/>
  1313. </element>
  1314. <element name="Erase">
  1315. <short>Delete a file from disk</short>
  1316. <descr>
  1317. <var>Erase</var> removes an unopened file from disk. The file should be
  1318. assigned with <var>Assign</var>, but not opened with <var>Reset</var> or <var>Rewrite</var>
  1319. </descr>
  1320. <errors>
  1321. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  1322. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  1323. to check for errors.
  1324. </errors>
  1325. <seealso>
  1326. <link id="Assign"/>
  1327. </seealso>
  1328. <example file="refex/ex20"/>
  1329. </element>
  1330. <element name="Exclude">
  1331. <short>Exlude element from a set if it is present.</short>
  1332. <descr>
  1333. <p>
  1334. <var>Exclude</var> removes <var>E</var> from the set <var>S</var> if it is
  1335. included inthe set. E should be of the same type as the base type
  1336. of the set <var>S</var>.
  1337. </p>
  1338. <p>
  1339. Thus, the two following statements do the same thing:
  1340. </p>
  1341. <code>
  1342. S:=S-[E];
  1343. Exclude(S,E);
  1344. </code>
  1345. </descr>
  1346. <errors>
  1347. If the type of the element <var>E</var> is not equal to the base type of the
  1348. set <var>S</var>, the compiler will generate an error.
  1349. </errors>
  1350. <seealso>
  1351. <link id="Include"/>
  1352. </seealso>
  1353. <example file="refex/ex111"/>
  1354. </element>
  1355. <element name="Exit">
  1356. <short>Exit current subroutine.</short>
  1357. <descr>
  1358. <var>Exit</var> exits the current subroutine, and returns control to the calling
  1359. routine. If invoked in the main program routine, exit stops the program.
  1360. The optional argument <var>X</var> allows to specify a return value, in the case
  1361. <var>Exit</var> is invoked in a function. The function result will then be
  1362. equal to <var>X</var>.
  1363. </descr>
  1364. <errors>
  1365. None.
  1366. </errors>
  1367. <seealso>
  1368. <link id="Halt"/>
  1369. </seealso>
  1370. <example file="refex/ex21"/>
  1371. </element>
  1372. <element name="Exp">
  1373. <short>Exponentiate</short>
  1374. <descr>
  1375. <var>Exp</var> returns the exponent of <var>X</var>, i.e. the number <var>e</var> to the
  1376. power <var>X</var>.
  1377. </descr>
  1378. <errors>
  1379. None.
  1380. </errors>
  1381. <seealso>
  1382. <link id="Ln"/>
  1383. <link id="Power"/>
  1384. </seealso>
  1385. <example file="refex/ex22"/>
  1386. </element>
  1387. <element name="Filepos">
  1388. <short>Get position in file</short>
  1389. <descr>
  1390. <var>Filepos</var> returns the current record position of the file-pointer in file
  1391. <var>F</var>. It cannot be invoked with a file of type <var>Text</var>. A compiler error
  1392. will be generated if this is attempted.
  1393. </descr>
  1394. <errors>
  1395. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  1396. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  1397. to check for errors.
  1398. </errors>
  1399. <seealso>
  1400. <link id="Filesize"/>
  1401. </seealso>
  1402. <example file="refex/ex23"/>
  1403. </element>
  1404. <element name="Filesize">
  1405. <short>Size of file</short>
  1406. <descr>
  1407. <var>Filesize</var> returns the total number of records in file <var>F</var>.
  1408. It cannot be invoked with a file of type <var>Text</var>. (under linux and unix, this
  1409. also means that it cannot be invoked on pipes).
  1410. If <var>F</var> is empty, 0 is returned.
  1411. </descr>
  1412. <errors>
  1413. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  1414. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  1415. to check for errors.
  1416. </errors>
  1417. <seealso>
  1418. <link id="Filepos"/>
  1419. </seealso>
  1420. <example file="refex/ex24"/>
  1421. </element>
  1422. <element name="FillByte">
  1423. <short>Fill memory region with 8-bit pattern</short>
  1424. <descr>
  1425. <var>FillByte</var> fills the memory starting at <var>X</var> with <var>Count</var> bytes
  1426. with value equal to <var>Value</var>.
  1427. This is useful for quickly zeroing out a memory location. When the size of
  1428. the memory location to be filled out is a multiple of 2 bytes, it is better
  1429. to use <link id="Fillword"/>, and if it is a multiple of 4 bytes it is better
  1430. to use <link id="FillDWord"/>, these routines are optimized for their respective sizes.
  1431. </descr>
  1432. <errors>
  1433. No checking on the size of <var>X</var> is done.
  1434. </errors>
  1435. <seealso>
  1436. <link id="Fillchar"/>
  1437. <link id="FillDWord"/>
  1438. <link id="Fillword"/>
  1439. <link id="Move"/>
  1440. </seealso>
  1441. <example file="refex/ex102"/>
  1442. </element>
  1443. <element name="Fillchar">
  1444. <short>Fill memory region with certain character</short>
  1445. <descr>
  1446. <var>Fillchar</var> fills the memory starting at <var>X</var> with <var>Count</var> bytes
  1447. or characters with value equal to <var>Value</var>.
  1448. </descr>
  1449. <errors>
  1450. No checking on the size of <var>X</var> is done.
  1451. </errors>
  1452. <seealso>
  1453. <link id="Fillword"/>
  1454. <link id="Move"/>
  1455. <link id="FillByte"/>
  1456. <link id="FillDWord"/>
  1457. </seealso>
  1458. <example file="refex/ex25"/>
  1459. </element>
  1460. <element name="FillDWord">
  1461. <short>Fill memory region with 32-bit pattern</short>
  1462. <descr>
  1463. <var>Fillword</var> fills the memory starting at <var>X</var> with <var>Count</var> DWords
  1464. with value equal to <var>Value</var>. A DWord is 4 bytes in size.
  1465. </descr>
  1466. <errors>
  1467. No checking on the size of <var>X</var> is done.
  1468. </errors>
  1469. <seealso>
  1470. <link id="FillByte"/>
  1471. <link id="Fillchar"/>
  1472. <link id="Fillword"/>
  1473. <link id="Move"/>
  1474. </seealso>
  1475. <example file="refex/ex103"/>
  1476. </element>
  1477. <element name="Fillword">
  1478. <short>Fill memory region with 16-bit pattern</short>
  1479. <descr>
  1480. <var>Fillword</var> fills the memory starting at <var>X</var> with <var>Count</var> words
  1481. with value equal to <var>Value</var>. A word is 2 bytes in size.
  1482. </descr>
  1483. <errors>
  1484. No checking on the size of <var>X</var> is done.
  1485. </errors>
  1486. <seealso>
  1487. <link id="Fillchar"/>
  1488. <link id="Move"/>
  1489. </seealso>
  1490. <example file="refex/ex76"/>
  1491. </element>
  1492. <element name="Flush">
  1493. <short>Write file buffers to disk</short>
  1494. <descr>
  1495. <var>Flush</var> empties the internal buffer of an opened file <var>F</var> and writes the
  1496. contents to disk. The file is \textit{not} closed as a result of this call.
  1497. </descr>
  1498. <errors>
  1499. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  1500. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  1501. to check for errors.
  1502. </errors>
  1503. <seealso>
  1504. <link id="Close"/>
  1505. </seealso>
  1506. <example file="refex/ex26"/>
  1507. </element>
  1508. <element name="Frac">
  1509. <short>Return fractional part of floating point value.</short>
  1510. <descr>
  1511. <var>Frac</var> returns the non-integer part of <var>X</var>.
  1512. </descr>
  1513. <errors>
  1514. None.
  1515. </errors>
  1516. <seealso>
  1517. <link id="Round"/>
  1518. <link id="Int"/>
  1519. </seealso>
  1520. <example file="refex/ex27"/>
  1521. </element>
  1522. <element name="Freemem">
  1523. <short>Release allocated memory</short>
  1524. <descr>
  1525. <var>Freemem</var> releases the memory occupied by the pointer <var>P</var>, of size
  1526. <var>Count</var> (in bytes), and returns it to the heap. <var>P</var> should point to the memory
  1527. allocated to a dynamic variable.
  1528. </descr>
  1529. <errors>
  1530. An error will occur when <var>P</var> doesn't point to the heap.
  1531. </errors>
  1532. <seealso>
  1533. <link id="Getmem"/>
  1534. <link id="New"/>
  1535. <link id="Dispose"/>
  1536. </seealso>
  1537. <example file="refex/ex28"/>
  1538. </element>
  1539. <element name="Getdir">
  1540. <short>Return the current directory</short>
  1541. <descr>
  1542. <var>Getdir</var> returns in <var>dir</var> the current directory on the drive
  1543. <var>drivenr</var>, where {drivenr} is 1 for the first floppy drive, 3 for the
  1544. first hard disk etc. A value of 0 returns the directory on the current disk.
  1545. On linux and unix systems, <var>drivenr</var> is ignored, as there is only one
  1546. directory tree.
  1547. </descr>
  1548. <errors>
  1549. An error is returned under dos, if the drive requested isn't ready.
  1550. </errors>
  1551. <seealso>
  1552. <link id="Chdir"/>
  1553. </seealso>
  1554. <example file="refex/ex29"/>
  1555. </element>
  1556. <element name="Getmem">
  1557. <short>Allocate new memory on the heap</short>
  1558. <descr>
  1559. <p>
  1560. <var>Getmem</var> reserves <var>Size</var> bytes memory on the heap, and returns a
  1561. pointer to this memory in <var>p</var>. If no more memory is available, nil is
  1562. returned.
  1563. </p>
  1564. <p>
  1565. For an example, see <link id="Freemem"/>.
  1566. </p>
  1567. </descr>
  1568. <errors>
  1569. None.
  1570. </errors>
  1571. <seealso>
  1572. <link id="Freemem"/>
  1573. <link id="Dispose"/>
  1574. <link id="New"/>
  1575. </seealso>
  1576. </element>
  1577. <element name="GetMemoryManager">
  1578. <short>Return current memory manager</short>
  1579. <descr>
  1580. <p>
  1581. <var>GetMemoryManager</var> stores the current Memory Manager record in
  1582. <var>MemMgr</var>.
  1583. </p>
  1584. <p>
  1585. For an example, see \progref.
  1586. </p>
  1587. </descr>
  1588. <errors>
  1589. None.
  1590. </errors>
  1591. <seealso>
  1592. <link id="SetMemoryManager"/>
  1593. <link id="IsMemoryManagerSet"/>.
  1594. </seealso>
  1595. </element>
  1596. <element name="Halt">
  1597. <short>Stop program execution.</short>
  1598. <descr>
  1599. <var>Halt</var> stops program execution and returns control to the calling
  1600. program. The optional argument <var>Errnum</var> specifies an exit value. If
  1601. omitted, zero is returned.
  1602. </descr>
  1603. <errors>
  1604. None.
  1605. </errors>
  1606. <seealso>
  1607. <link id="Exit"/>
  1608. </seealso>
  1609. <example file="refex/ex30"/>
  1610. </element>
  1611. <element name="HexStr">
  1612. <short>Convert integer value to string with hexadecimal representation.</short>
  1613. <descr>
  1614. <var>HexStr</var> returns a string with the hexadecimal representation
  1615. of <var>Value</var>. The string has exactly <var>cnt</var> charaters.
  1616. (i.e. only the <var>cnt</var> rightmost nibbles are taken into account)
  1617. To have a complete representation of a Longint-type value, 8
  1618. nibbles are needed, i.e. <var>cnt=8</var>.
  1619. </descr>
  1620. <errors>
  1621. None.
  1622. </errors>
  1623. <seealso>
  1624. <link id="Str"/>
  1625. <link id="Val"/>
  1626. <link id="BinStr"/>
  1627. </seealso>
  1628. <example file="refex/ex81"/>
  1629. </element>
  1630. <element name="Hi">
  1631. <short>Return high byte/word of value.</short>
  1632. <descr>
  1633. <var>Hi</var> returns the high byte or word from <var>X</var>, depending on the size
  1634. of X. If the size of X is 4, then the high word is returned. If the size is
  1635. 2 then the high byte is returned.
  1636. <var>Hi</var> cannot be invoked on types of size 1, such as byte or char.
  1637. </descr>
  1638. <errors>
  1639. None
  1640. </errors>
  1641. <seealso>
  1642. <link id="Lo"/>
  1643. </seealso>
  1644. <example file="refex/ex31"/>
  1645. </element>
  1646. <element name="High">
  1647. <short>Return highest index of open array or enumerated</short>
  1648. <descr>
  1649. <p>
  1650. The return value of <var>High</var> depends on it's argument:
  1651. </p>
  1652. <ol>
  1653. <li> If the argument is an ordinal type, <var>High</var> returns the highest
  1654. value in the range of the given ordinal type.
  1655. </li>
  1656. <li> If the argument is an array type or an array type variable then
  1657. <var>High</var> returns the highest possible value of it's index.
  1658. </li>
  1659. <li> If the argument is an open array identifier in a function or
  1660. procedure, then <var>High</var> returns the highest index of the array, as if the
  1661. array has a zero-based index.
  1662. </li>
  1663. </ol>
  1664. <p>
  1665. The return type is always the same type as the type of the argument
  1666. (This can lead to some nasty surprises !).
  1667. </p>
  1668. </descr>
  1669. <errors>
  1670. None.
  1671. </errors>
  1672. <seealso>
  1673. <link id="Low"/>
  1674. <link id="Ord"/>
  1675. <link id="Pred"/>
  1676. <link id="Succ"/>
  1677. </seealso>
  1678. <example file="refex/ex80"/>
  1679. </element>
  1680. <element name="Inc">
  1681. <short>Increase value of integer variable</short>
  1682. <descr>
  1683. <var>Inc</var> increases the value of <var>X</var> with <var>Increment</var>.
  1684. If <var>Increment</var> isn't specified, then 1 is taken as a default.
  1685. </descr>
  1686. <errors>
  1687. If range checking is on, then A range check can occur, or an overflow
  1688. error, when an attempt is made to increase <var>X</var> over its maximum value.
  1689. </errors>
  1690. <seealso>
  1691. <link id="Dec"/>
  1692. </seealso>
  1693. <example file="refex/ex32"/>
  1694. </element>
  1695. <element name="Include">
  1696. <short>Include element in set if it was not yet present.</short>
  1697. <descr>
  1698. <p>
  1699. <var>Include</var> includes <var>E</var> in the set <var>S</var> if it is
  1700. not yet part of the set. E should be of the same type as the base type
  1701. of the set <var>S</var>.
  1702. </p>
  1703. <p>
  1704. Thus, the two following statements do the same thing:
  1705. </p>
  1706. <code>
  1707. S:=S+[E];
  1708. Include(S,E);
  1709. </code>
  1710. <p>
  1711. For an example, see <link id="Exclude"/>
  1712. </p>
  1713. </descr>
  1714. <errors>
  1715. If the type of the element <var>E</var> is not equal to the base type of the
  1716. set <var>S</var>, the compiler will generate an error.
  1717. </errors>
  1718. <seealso>
  1719. <link id="Exclude"/>
  1720. </seealso>
  1721. </element>
  1722. <element name="IndexByte">
  1723. <short>Search for a byte in a memory range.</short>
  1724. <descr>
  1725. <var>IndexByte</var> searches the memory at <var>buf</var> for maximally <var>len</var>
  1726. positions for the byte <var>b</var> and returns it's position if it found one.
  1727. If <var>b</var> is not found then -1 is returned.
  1728. The position is zero-based.
  1729. </descr>
  1730. <errors>
  1731. <var>Buf</var> and <var>Len</var> are not checked to see if they are valid values.
  1732. </errors>
  1733. <seealso>
  1734. <link id="IndexChar"/>
  1735. <link id="IndexDWord"/>
  1736. <link id="IndexWord"/>
  1737. <link id="CompareByte"/>
  1738. </seealso>
  1739. <example file="refex/ex105"/>
  1740. </element>
  1741. <element name="IndexChar">
  1742. <short>Search for a character in a memory range.</short>
  1743. <descr>
  1744. <var>IndexChar</var> searches the memory at <var>buf</var> for maximally <var>len</var>
  1745. positions for the character <var>b</var> and returns it's position if it found one.
  1746. If <var>b</var> is not found then -1 is returned.
  1747. The position is zero-based. The <var>IndexChar0</var> variant stops looking if
  1748. a null character is found, and returns -1 in that case.
  1749. </descr>
  1750. <errors>
  1751. <var>Buf</var> and <var>Len</var> are not checked to see if they are valid values.
  1752. </errors>
  1753. <seealso>
  1754. <link id="IndexByte"/>
  1755. <link id="IndexDWord"/>
  1756. <link id="IndexWord"/>
  1757. <link id="CompareChar"/>
  1758. </seealso>
  1759. <example file="refex/ex108"/>
  1760. </element>
  1761. <element name="IndexDWord">
  1762. <short>Search for a DWord value in a memory range.</short>
  1763. <descr>
  1764. <var>IndexChar</var> searches the memory at <var>buf</var> for maximally <var>len</var>
  1765. positions for the DWord <var>DW</var> and returns it's position if it found one.
  1766. If <var>DW</var> is not found then -1 is returned.
  1767. The position is zero-based.
  1768. </descr>
  1769. <errors>
  1770. <var>Buf</var> and <var>Len</var> are not checked to see if they are valid values.
  1771. </errors>
  1772. <seealso>
  1773. <link id="IndexByte"/>
  1774. <link id="IndexChar"/>
  1775. <link id="IndexWord"/>
  1776. <link id="CompareDWord"/>
  1777. </seealso>
  1778. <example file="refex/ex106"/>
  1779. </element>
  1780. <element name="IndexWord">
  1781. <short>Search for a WORD value in a memory range.</short>
  1782. <descr>
  1783. <var>IndexChar</var> searches the memory at <var>buf</var> for maximally <var>len</var>
  1784. positions for the Word <var>W</var> and returns it's position if it found one.
  1785. If <var>W</var> is not found then -1 is returned.
  1786. </descr>
  1787. <errors>
  1788. <var>Buf</var> and <var>Len</var> are not checked to see if they are valid values.
  1789. </errors>
  1790. <seealso>
  1791. <link id="IndexByte"/>
  1792. <link id="IndexDWord"/>
  1793. <link id="IndexChar"/>
  1794. <link id="CompareWord"/>
  1795. </seealso>
  1796. <example file="refex/ex107"/>
  1797. </element>
  1798. <element name="Insert">
  1799. <short>Insert one string in another.</short>
  1800. <descr>
  1801. <var>Insert</var> inserts string <var>Source</var> in string <var>S</var>, at position
  1802. <var>Index</var>, shifting all characters after <var>Index</var> to the right. The
  1803. resulting string is truncated at 255 characters, if needed. (i.e. for
  1804. shortstrings)
  1805. </descr>
  1806. <errors>
  1807. None.
  1808. </errors>
  1809. <seealso>
  1810. <link id="Delete"/>
  1811. <link id="Copy"/>
  1812. <link id="Pos"/>
  1813. </seealso>
  1814. <example file="refex/ex33"/>
  1815. </element>
  1816. <element name="IsMemoryManagerSet">
  1817. <short>Is the memory manager set</short>
  1818. <descr>
  1819. <var>IsMemoryManagerSet</var> will return <var>True</var> if the memory manager has
  1820. been set to another value than the system heap manager, it will return
  1821. <var>False</var> otherwise.
  1822. </descr>
  1823. <errors>
  1824. None.
  1825. </errors>
  1826. <seealso>
  1827. <link id="SetMemoryManager"/>
  1828. <link id="GetMemoryManager"/>
  1829. </seealso>
  1830. </element>
  1831. <element name="Int">
  1832. <short>Calculate integer part of floating point value.</short>
  1833. <descr>
  1834. <var>Int</var> returns the integer part of any Real <var>X</var>, as a Real.
  1835. </descr>
  1836. <errors>
  1837. None.
  1838. </errors>
  1839. <seealso>
  1840. <link id="Frac"/>
  1841. <link id="Round"/>
  1842. </seealso>
  1843. <example file="refex/ex34"/>
  1844. </element>
  1845. <element name="IOresult">
  1846. <short>Return result of last file IO operation</short>
  1847. <descr>
  1848. <p>
  1849. IOresult contains the result of any input/output call, when the
  1850. <var>{\$i-}</var> compiler directive is active, disabling IO checking.
  1851. When the flag is read, it is reset to zero.
  1852. If <var>IOresult</var> is zero, the operation completed successfully. If
  1853. non-zero, an error occurred. The following errors can occur:
  1854. </p>
  1855. <p>
  1856. dos errors :
  1857. </p>
  1858. <dl><dt>2</dt><dd> File not found.</dd>
  1859. <dt>3</dt><dd> Path not found.</dd>
  1860. <dt>4</dt><dd> Too many open files.</dd>
  1861. <dt>5</dt><dd> Access denied.</dd>
  1862. <dt>6</dt><dd> Invalid file handle.</dd>
  1863. <dt>12</dt><dd> Invalid file-access mode.</dd>
  1864. <dt>15</dt><dd> Invalid disk number.</dd>
  1865. <dt>16</dt><dd> Cannot remove current directory.</dd>
  1866. <dt>17</dt><dd> Cannot rename across volumes.</dd>
  1867. </dl>
  1868. <p>
  1869. I/O errors :
  1870. </p>
  1871. <dl>
  1872. <dt>100</dt><dd> Error when reading from disk.</dd>
  1873. <dt>101</dt><dd> Error when writing to disk.</dd>
  1874. <dt>102</dt><dd> File not assigned.</dd>
  1875. <dt>103</dt><dd> File not open.</dd>
  1876. <dt>104</dt><dd> File not opened for input.</dd>
  1877. <dt>105</dt><dd> File not opened for output.</dd>
  1878. <dt>106</dt><dd> Invalid number.</dd>
  1879. </dl>
  1880. <p>
  1881. Fatal errors :
  1882. </p>
  1883. <dl>
  1884. <dt>150</dt><dd> Disk is write protected.</dd>
  1885. <dt>151</dt><dd> Unknown device.</dd>
  1886. <dt>152</dt><dd> Drive not ready.</dd>
  1887. <dt>153</dt><dd> Unknown command.</dd>
  1888. <dt>154</dt><dd> CRC check failed.</dd>
  1889. <dt>155</dt><dd> Invalid drive specified..</dd>
  1890. <dt>156</dt><dd> Seek error on disk.</dd>
  1891. <dt>157</dt><dd> Invalid media type.</dd>
  1892. <dt>158</dt><dd> Sector not found.</dd>
  1893. <dt>159</dt><dd> Printer out of paper.</dd>
  1894. <dt>160</dt><dd> Error when writing to device.</dd>
  1895. <dt>161</dt><dd> Error when reading from device.</dd>
  1896. <dt>162</dt><dd> Hardware failure.</dd>
  1897. </dl>
  1898. </descr>
  1899. <errors>
  1900. None.
  1901. </errors>
  1902. <seealso>
  1903. All I/O functions.
  1904. </seealso>
  1905. <example file="refex/ex35"/>
  1906. </element>
  1907. <element name="Length">
  1908. <short>Calculate length of a string.</short>
  1909. <descr>
  1910. <var>Length</var> returns the length of the string <var>S</var>, which is limited
  1911. to 255 for shortstrings. If the strings <var>S</var> is empty, 0 is returned.
  1912. <em> Note:</em> The length of the string <var>S</var> is stored in <var>S[0]</var> for
  1913. shortstrings only. The <var>Length</var> fuction should always be used on
  1914. ansistrings and widestrings.
  1915. </descr>
  1916. <errors>
  1917. None.
  1918. </errors>
  1919. <seealso>
  1920. <link id="Pos"/>
  1921. </seealso>
  1922. <example file="refex/ex36"/>
  1923. </element>
  1924. <element name="Ln">
  1925. <short>Calculate logarithm</short>
  1926. <descr>
  1927. <var>Ln</var> returns the natural logarithm of the Real parameter <var>X</var>.
  1928. <var>X</var> must be positive.
  1929. </descr>
  1930. <errors>
  1931. An run-time error will occur when <var>X</var> is negative.
  1932. </errors>
  1933. <seealso>
  1934. <link id="Exp"/>
  1935. <link id="Power"/>
  1936. </seealso>
  1937. <example file="refex/ex37"/>
  1938. </element>
  1939. <element name="Lo">
  1940. <short>Return low byte/word of value.</short>
  1941. <descr>
  1942. <var>Lo</var> returns the low byte of its argument if this is of type
  1943. <var>Integer</var> or
  1944. <var>Word</var>. It returns the low word of its argument if this is of type
  1945. <var>Longint</var> or <var>Cardinal</var>.
  1946. </descr>
  1947. <errors>
  1948. None.
  1949. </errors>
  1950. <seealso>
  1951. <link id="Ord"/>
  1952. <link id="Chr"/>
  1953. <link id="Hi"/>
  1954. </seealso>
  1955. <example file="refex/ex38"/>
  1956. </element>
  1957. <element name="LongJmp">
  1958. <short>Jump to address.</short>
  1959. <descr>
  1960. <p>
  1961. <var>LongJmp</var> jumps to the adress in the <var>env</var> <var>jmp_buf</var>,
  1962. and restores the registers that were stored in it at the corresponding
  1963. <link id="SetJmp"/> call.
  1964. In effect, program flow will continue at the <var>SetJmp</var> call, which will
  1965. return <var>value</var> instead of 0. If a <var>value</var> equal to zero is passed,
  1966. it will be converted to 1 before passing it on. The call will not return, so it must be
  1967. used with extreme care.
  1968. This can be used for error recovery, for instance when a segmentation fault
  1969. occurred.
  1970. </p>
  1971. <p>
  1972. For an example, see <link id="SetJmp"/>
  1973. </p>
  1974. </descr>
  1975. <errors>
  1976. None.
  1977. </errors>
  1978. <seealso>
  1979. <link id="SetJmp"/>
  1980. </seealso>
  1981. </element>
  1982. <element name="Low">
  1983. <short>Return lowest index of open array or enumerated</short>
  1984. <descr>
  1985. <p>
  1986. The return value of <var>Low</var> depends on it's argument:
  1987. </p>
  1988. <ol>
  1989. <li> If the argument is an ordinal type, <var>Low</var> returns the lowest
  1990. value in the range of the given ordinal type.
  1991. </li>
  1992. <li> If the argument is an array type or an array type variable then
  1993. <var>Low</var> returns the lowest possible value of it's index.
  1994. </li>
  1995. </ol>
  1996. <p>
  1997. The return type is always the same type as the type of the argument.
  1998. </p>
  1999. <p>
  2000. for an example, see <link id="High"/>.
  2001. </p>
  2002. </descr>
  2003. <errors>
  2004. None.
  2005. </errors>
  2006. <seealso>
  2007. <link id="High"/>
  2008. <link id="Ord"/>
  2009. <link id="Pred"/>
  2010. <link id="Succ"/>
  2011. </seealso>
  2012. </element>
  2013. <element name="Lowercase">
  2014. <short>Return lowercase version of a string.</short>
  2015. <descr>
  2016. <var>Lowercase</var> returns the lowercase version of its argument <var>C</var>.
  2017. If its argument is a string, then the complete string is converted to
  2018. lowercase. The type of the returned value is the same as the type of the
  2019. argument.
  2020. </descr>
  2021. <errors>
  2022. None.
  2023. </errors>
  2024. <seealso>
  2025. <link id="Upcase"/>
  2026. </seealso>
  2027. <example file="refex/ex73"/>
  2028. </element>
  2029. <element name="Mark">
  2030. <short>Mark current memory position</short>
  2031. <descr>
  2032. This routine is here for compatibility with Turbo Pascal, but
  2033. it is not implemented and currently does nothing.
  2034. </descr>
  2035. <errors>
  2036. None.
  2037. </errors>
  2038. <seealso>
  2039. <link id="Getmem"/>
  2040. <link id="Freemem"/>
  2041. <link id="New"/>
  2042. <link id="Dispose"/>
  2043. <link id="Maxavail"/>
  2044. </seealso>
  2045. </element>
  2046. <element name="Maxavail">
  2047. <short>Return size of largest free memory block</short>
  2048. <descr>
  2049. <p>
  2050. <var>Maxavail</var> returns the size, in bytes, of the biggest free memory block in
  2051. the heap.
  2052. </p>
  2053. <remark>
  2054. The heap grows dynamically if more memory is needed than is available.
  2055. </remark>
  2056. </descr>
  2057. <errors>
  2058. None.
  2059. </errors>
  2060. <seealso>
  2061. <link id="Memavail"/>
  2062. <link id="Freemem"/>
  2063. <link id="Getmem"/>
  2064. </seealso>
  2065. <example file="refex/ex40"/>
  2066. </element>
  2067. <element name="Memavail">
  2068. <short>Return total available memory</short>
  2069. <descr>
  2070. <p>
  2071. <var>Memavail</var> returns the size, in bytes, of the free heap memory.
  2072. </p>
  2073. <remark>
  2074. The heap grows dynamically if more memory is needed than is available. The
  2075. heap size is not equal to the size of the memory available to the
  2076. operating system, it is internal to the programs created by Free Pascal.
  2077. </remark>
  2078. </descr>
  2079. <errors>
  2080. None.
  2081. </errors>
  2082. <seealso>
  2083. <link id="Maxavail"/>
  2084. <link id="Freemem"/>
  2085. <link id="Getmem"/>
  2086. </seealso>
  2087. <example file="refex/ex41"/>
  2088. </element>
  2089. <element name="Mkdir">
  2090. <short>Create a new directory.</short>
  2091. <descr>
  2092. <p>
  2093. <var>Mkdir</var> creates a new directory <var>S</var>.
  2094. </p>
  2095. <p>
  2096. For an example, see <link id="Rmdir"/>.
  2097. </p>
  2098. </descr>
  2099. <errors>
  2100. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2101. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2102. to check for errors.
  2103. </errors>
  2104. <seealso>
  2105. <link id="Chdir"/>
  2106. <link id="Rmdir"/>
  2107. </seealso>
  2108. </element>
  2109. <element name="Move">
  2110. <short>Move data from one location in memory to another</short>
  2111. <descr>
  2112. <var>Move</var> moves <var>Count</var> bytes from <var>Source</var> to <var>Dest</var>.
  2113. </descr>
  2114. <errors>
  2115. If either <var>Dest</var> or <var>Source</var> is outside the accessible memory for
  2116. the process, then a run-time error will be generated.
  2117. </errors>
  2118. <seealso>
  2119. <link id="Fillword"/>
  2120. <link id="Fillchar"/>
  2121. </seealso>
  2122. <example file="refex/ex42"/>
  2123. </element>
  2124. <element name="MoveChar0">
  2125. <short>Move data till first zero character</short>
  2126. <descr>
  2127. <var>MoveChar0</var> moves <var>Count</var> bytes from <var>Src</var> to <var>Dest</var>, and
  2128. stops moving if a zero character is found.
  2129. </descr>
  2130. <errors>
  2131. No checking is done to see if <var>Count</var> stays within the memory allocated
  2132. to the process.
  2133. </errors>
  2134. <seealso>
  2135. <link id="Move"/>
  2136. </seealso>
  2137. <example file="refex/ex109"/>
  2138. </element>
  2139. <element name="New">
  2140. <short>Dynamically allocate memory for variable</short>
  2141. <descr>
  2142. <p>
  2143. <var>New</var> allocates a new instance of the type pointed to by <var>P</var>, and
  2144. puts the address in <var>P</var>.
  2145. If P is an object, then it is possible to
  2146. specify the name of the constructor with which the instance will be created.
  2147. </p>
  2148. <p>
  2149. For an example, see <link id="Dispose"/>.
  2150. </p>
  2151. </descr>
  2152. <errors>
  2153. If not enough memory is available, <var>Nil</var> will be returned.
  2154. </errors>
  2155. <seealso>
  2156. <link id="Dispose"/>
  2157. <link id="Freemem"/>
  2158. <link id="Getmem"/>
  2159. </seealso>
  2160. </element>
  2161. <element name="Odd">
  2162. <short>Is a value odd or even ?</short>
  2163. <descr>
  2164. <var>Odd</var> returns <var>True</var> if <var>X</var> is odd, or <var>False</var> otherwise.
  2165. </descr>
  2166. <errors>
  2167. None.
  2168. </errors>
  2169. <seealso>
  2170. <link id="Abs"/>
  2171. <link id="Ord"/>
  2172. </seealso>
  2173. <example file="refex/ex43"/>
  2174. </element>
  2175. <element name="OctStr">
  2176. <short>Convert integer to a string with octal representation.</short>
  2177. <descr>
  2178. <var>OctStr</var> returns a string with the octal representation
  2179. of <var>Value</var>. The string has exactly <var>cnt</var> charaters.
  2180. </descr>
  2181. <errors>
  2182. None.
  2183. </errors>
  2184. <seealso>
  2185. <link id="Str"/>
  2186. <link id="Val"/>
  2187. <link id="BinStr"/>
  2188. <link id="HexStr"/>
  2189. </seealso>
  2190. <example file="refex/ex112"/>
  2191. </element>
  2192. <element name="Ofs">
  2193. <short>Return offset of a variable.</short>
  2194. <descr>
  2195. <var>Ofs</var> returns the offset of the address of a variable.
  2196. This function is only supported for compatibility. In Free Pascal, it
  2197. returns always the complete address of the variable, since Free Pascal is a 32 bit
  2198. compiler.
  2199. </descr>
  2200. <errors>
  2201. None.
  2202. </errors>
  2203. <seealso>
  2204. <link id="DSeg"/>
  2205. <link id="CSeg"/>
  2206. <link id="Seg"/>
  2207. <link id="Ptr"/>
  2208. </seealso>
  2209. <example file="refex/ex44"/>
  2210. </element>
  2211. <element name="Ord">
  2212. <short>Return ordinal value of an ordinal type.</short>
  2213. <descr>
  2214. <var>Ord</var> returns the Ordinal value of a ordinal-type variable <var>X</var>.
  2215. </descr>
  2216. <errors>
  2217. None.
  2218. </errors>
  2219. <seealso>
  2220. <link id="Chr"/>
  2221. <link id="Succ"/>
  2222. <link id="Pred"/>
  2223. <link id="High"/>
  2224. <link id="Low"/>
  2225. </seealso>
  2226. <example file="refex/ex45"/>
  2227. </element>
  2228. <element name="Paramcount">
  2229. <short>Return number of command-line parameters passed to the program.</short>
  2230. <descr>
  2231. <var>Paramcount</var> returns the number of command-line arguments. If no
  2232. arguments were given to the running program, <var>0</var> is returned.
  2233. </descr>
  2234. <errors>
  2235. None.
  2236. </errors>
  2237. <seealso>
  2238. <link id="Paramstr"/>
  2239. </seealso>
  2240. <example file="refex/ex46"/>
  2241. </element>
  2242. <element name="Paramstr">
  2243. <short>Return value of a command-line argument.</short>
  2244. <descr>
  2245. <p>
  2246. <var>Paramstr</var> returns the <var>L</var>-th command-line argument. <var>L</var> must
  2247. be between <var>0</var> and <var>Paramcount</var>, these values included.
  2248. The zeroth argument is the path and file name with which the program was
  2249. started.
  2250. </p>
  2251. <p>
  2252. The command-line parameters will be truncated to a length of 255,
  2253. even though the operating system may support bigger command-lines.
  2254. The <var>Objpas</var> unit (used in <var>objfpc</var> or <var>delphi</var> mode) define versions
  2255. of <var>Paramstr</var> which return the full-length command-line arguments.
  2256. </p>
  2257. <p>
  2258. When the complete command-line must be accessed, the <var>argv</var> pointer
  2259. should be used to retrieve the real values of the command-line parameters.
  2260. </p>
  2261. <p>
  2262. For an example, see <link id="Paramcount"/>.
  2263. </p>
  2264. </descr>
  2265. <errors>
  2266. None.
  2267. </errors>
  2268. <seealso>
  2269. <link id="Paramcount"/>
  2270. </seealso>
  2271. </element>
  2272. <element name="Pi">
  2273. <short>Return the value of PI.</short>
  2274. <descr>
  2275. <var>Pi</var> returns the value of Pi (3.1415926535897932385).
  2276. </descr>
  2277. <errors>
  2278. None.
  2279. </errors>
  2280. <seealso>
  2281. <link id="Cos"/>
  2282. <link id="Sin"/>
  2283. </seealso>
  2284. <example file="refex/ex47"/>
  2285. </element>
  2286. <element name="Pos">
  2287. <short>Search for substring in a string.</short>
  2288. <descr>
  2289. <var>Pos</var> returns the index of <var>Substr</var> in <var>S</var>, if <var>S</var> contains
  2290. <var>Substr</var>. In case <var>Substr</var> isn't found, <var>0</var> is returned.
  2291. The search is case-sensitive.
  2292. </descr>
  2293. <errors>
  2294. None
  2295. </errors>
  2296. <seealso>
  2297. <link id="Length"/>
  2298. <link id="Copy"/>
  2299. <link id="Delete"/>
  2300. <link id="Insert"/>
  2301. </seealso>
  2302. <example file="refex/ex48"/>
  2303. </element>
  2304. <element name="Power">
  2305. <short>Raise float to integer power</short>
  2306. <descr>
  2307. <p>
  2308. <var>Power</var> returns the value of <var>base</var> to the power <var>expon</var>.
  2309. <var>Base</var> and <var>expon</var> can be of type Longint, in which case the
  2310. result will also be a Longint.
  2311. </p>
  2312. <p>
  2313. The function actually returns <var>Exp(expon*Ln(base))</var>
  2314. </p>
  2315. </descr>
  2316. <errors>
  2317. None.
  2318. </errors>
  2319. <seealso>
  2320. <link id="Exp"/>
  2321. <link id="Ln"/>
  2322. </seealso>
  2323. <example file="refex/ex78"/>
  2324. </element>
  2325. <element name="Pred">
  2326. <short>Return previous element for an ordinal type.</short>
  2327. <descr>
  2328. <p>
  2329. <var>Pred</var> returns the element that precedes the element that was passed
  2330. to it. If it is applied to the first value of the ordinal type, and the
  2331. program was compiled with range checking on (\var{\{\$R+\}}, then a run-time
  2332. error will be generated.
  2333. </p>
  2334. <p>
  2335. for an example, see <link id="Ord"/>
  2336. </p>
  2337. </descr>
  2338. <errors>
  2339. Run-time error 201 is generated when the result is out of
  2340. range.
  2341. </errors>
  2342. <seealso>
  2343. <link id="Ord"/>
  2344. <link id="Pred"/>
  2345. <link id="High"/>
  2346. <link id="Low"/>
  2347. </seealso>
  2348. </element>
  2349. <element name="Ptr">
  2350. <short>Combine segment and offset to pointer</short>
  2351. <descr>
  2352. <p>
  2353. <var>Ptr</var> returns a pointer, pointing to the address specified by
  2354. segment <var>Sel</var> and offset <var>Off</var>.
  2355. </p>
  2356. <remark>
  2357. <ol>
  2358. <li> In the 32-bit flat-memory model supported by Free Pascal, this
  2359. function is obsolete.
  2360. </li>
  2361. <li> The returned address is simply the offset.
  2362. </li>
  2363. </ol>
  2364. </remark>
  2365. </descr>
  2366. <errors>
  2367. None.
  2368. </errors>
  2369. <seealso>
  2370. <link id="Addr"/>
  2371. </seealso>
  2372. <example file="refex/ex59"/>
  2373. </element>
  2374. <element name="Random">
  2375. <short>Generate random number</short>
  2376. <descr>
  2377. <var>Random</var> returns a random number larger or equal to <var>0</var> and
  2378. strictly less than <var>L</var>.
  2379. If the argument <var>L</var> is omitted, a Real number between 0 and 1 is returned.
  2380. (0 included, 1 excluded)
  2381. </descr>
  2382. <errors>
  2383. None.
  2384. </errors>
  2385. <seealso>
  2386. <link id="Randomize"/>
  2387. </seealso>
  2388. <example file="refex/ex49"/>
  2389. </element>
  2390. <element name="Randomize">
  2391. <short>Initialize random number generator</short>
  2392. <descr>
  2393. <p>
  2394. <var>Randomize</var> initializes the random number generator of Free Pascal, by giving
  2395. a value to <var>Randseed</var>, calculated with the system clock.
  2396. </p>
  2397. <p>
  2398. For an example, see <link id="Random"/>.
  2399. </p>
  2400. </descr>
  2401. <errors>
  2402. None.
  2403. </errors>
  2404. <seealso>
  2405. <link id="Random"/>
  2406. </seealso>
  2407. </element>
  2408. <element name="Read">
  2409. <short>Read from a text file into variable</short>
  2410. <descr>
  2411. <var>Read</var> reads one or more values from a file <var>F</var>, and stores the
  2412. result in <var>V1</var>, <var>V2</var>, etc.; If no file <var>F</var> is specified, then
  2413. standard input is read.
  2414. If <var>F</var> is of type <var>Text</var>, then the variables <var>V1, V2</var> etc. must be
  2415. of type <var>Char</var>, <var>Integer</var>, <var>Real</var>, <var>String</var> or <var>PChar</var>.
  2416. If <var>F</var> is a typed file, then each of the variables must be of the type
  2417. specified in the declaration of <var>F</var>. Untyped files are not allowed as an
  2418. argument.
  2419. </descr>
  2420. <errors>
  2421. If no data is available, a run-time error is generated. This behavior can
  2422. be controlled with the \var{\{\$i\}} compiler switch.
  2423. </errors>
  2424. <seealso>
  2425. <link id="Readln"/>
  2426. <link id="Blockread"/>
  2427. <link id="Write"/>
  2428. <link id="Blockwrite"/>
  2429. </seealso>
  2430. <example file="refex/ex50"/>
  2431. </element>
  2432. <element name="Readln">
  2433. <short>Read from a text file into variable and goto next line</short>
  2434. <descr>
  2435. <p>
  2436. <var>Read</var> reads one or more values from a file <var>F</var>, and stores the
  2437. result in <var>V1</var>, <var>V2</var>, etc. After that it goes to the next line in
  2438. the file. The end of the line is marked by the <var>LineEnding</var>
  2439. character sequence (which is platform dependent). The end-of-line marker is
  2440. not considered part of the line and is ignored.
  2441. </p>
  2442. <p>
  2443. If no file <var>F</var> is specified, then standard input is read.
  2444. The variables <var>V1, V2</var> etc. must be of type <var>Char</var>, <var>Integer</var>,
  2445. <var>Real</var>, <var>String</var> or <var>PChar</var>.
  2446. </p>
  2447. <p>
  2448. For an example, see <link id="Read"/>.
  2449. </p>
  2450. </descr>
  2451. <errors>
  2452. If no data is available, a run-time error is generated. This behavior can
  2453. be controlled with the \var{\{\$i\}} compiler switch.
  2454. </errors>
  2455. <seealso>
  2456. <link id="Read"/>
  2457. <link id="Blockread"/>
  2458. <link id="Write"/>
  2459. <link id="Blockwrite"/>
  2460. </seealso>
  2461. </element>
  2462. <element name="Real2Double">
  2463. <short>Convert Turbo Pascal style real to double.</short>
  2464. <descr>
  2465. <p>
  2466. The <var>Real2Double</var> function converts a Turbo Pascal style real (6 bytes long) to
  2467. a native Free Pascal double type. It can be used e.g. to read old binary TP files with
  2468. FPC and convert them to Free Pacal binary files.
  2469. </p>
  2470. <p>
  2471. Note that the assignment operator has been overloaded so a <var>Real48</var> type
  2472. can be assigned directly to a double or extended.
  2473. </p>
  2474. </descr>
  2475. <errors>
  2476. None.
  2477. </errors>
  2478. <seealso>
  2479. </seealso>
  2480. <example file="refex/ex110"/>
  2481. </element>
  2482. <element name="Release">
  2483. <short>Release memory above mark point</short>
  2484. <descr>
  2485. This routine is here for compatibility with Turbo Pascal, but
  2486. it is not implemented and currently does nothing.
  2487. </descr>
  2488. <errors>
  2489. None.
  2490. </errors>
  2491. <seealso>
  2492. <link id="Mark"/>
  2493. <link id="Memavail"/>
  2494. <link id="Maxavail"/>
  2495. <link id="Getmem"/>
  2496. <link id="Freemem"/>
  2497. <link id="New"/>
  2498. <link id="Dispose"/>
  2499. </seealso>
  2500. </element>
  2501. <element name="Rename">
  2502. <short>Rename file on disk</short>
  2503. <descr>
  2504. <var>Rename</var> changes the name of the assigned file <var>F</var> to <var>S</var>.
  2505. <var>F</var>
  2506. must be assigned, but not opened.
  2507. </descr>
  2508. <errors>
  2509. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2510. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2511. to check for errors.
  2512. </errors>
  2513. <seealso>
  2514. <link id="Erase"/>
  2515. </seealso>
  2516. <example file="refex/ex77"/>
  2517. </element>
  2518. <element name="Reset">
  2519. <short>Open file for reading</short>
  2520. <descr>
  2521. <var>Reset</var> opens a file <var>F</var> for reading. <var>F</var> can be any file type.
  2522. If <var>F</var> is a text file, or refers to standard I/O (e.g : '') then it is
  2523. opened read-only, otherwise it is opened using the mode specified in
  2524. <var>filemode</var>.
  2525. If <var>F</var> is an untyped file, the record size can be specified in
  2526. the optional parameter <var>L</var>. A default value of 128 is used.
  2527. File sharing is not taken into account when calling <var>Reset</var>.
  2528. </descr>
  2529. <errors>
  2530. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2531. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2532. to check for errors.
  2533. </errors>
  2534. <seealso>
  2535. <link id="Rewrite"/>
  2536. <link id="Assign"/>
  2537. <link id="Close"/>
  2538. <link id="Append"/>
  2539. </seealso>
  2540. <example file="refex/ex51"/>
  2541. </element>
  2542. <element name="Rewrite">
  2543. <short>Open file for writing</short>
  2544. <descr>
  2545. <var>Rewrite</var> opens a file <var>F</var> for writing. <var>F</var> can be any file type.
  2546. If <var>F</var> is an untyped or typed file, then it is opened for reading and
  2547. writing. If <var>F</var> is an untyped file, the record size can be specified in
  2548. the optional parameter <var>L</var>. Default a value of 128 is used.
  2549. if <var>Rewrite</var> finds a file with the same name as <var>F</var>, this file is
  2550. truncated to length <var>0</var>. If it doesn't find such a file, a new file is
  2551. created.
  2552. Contrary to Turbo Pascal, Free Pascal opens the file with mode <var>fmoutput</var>. If it should
  2553. be opened in <var>fminout</var> mode, an extra call to <link id="Reset"/> is needed.
  2554. File sharing is not taken into account when calling <var>Rewrite</var>.
  2555. </descr>
  2556. <errors>
  2557. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2558. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2559. to check for errors.
  2560. </errors>
  2561. <seealso>
  2562. <link id="Reset"/>
  2563. <link id="Assign"/>
  2564. <link id="Close"/>
  2565. <link id="Flush"/>
  2566. <link id="Append"/>
  2567. </seealso>
  2568. <example file="refex/ex52"/>
  2569. </element>
  2570. <element name="Rmdir">
  2571. <short>Remove directory when empty.</short>
  2572. <descr>
  2573. <var>Rmdir</var> removes the directory <var>S</var>.
  2574. </descr>
  2575. <errors>
  2576. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2577. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2578. to check for errors.
  2579. </errors>
  2580. <seealso>
  2581. <link id="Chdir"/>
  2582. <link id="Mkdir"/>
  2583. </seealso>
  2584. <example file="refex/ex53"/>
  2585. </element>
  2586. <element name="Round">
  2587. <short>Round floating point value to nearest integer number.</short>
  2588. <descr>
  2589. <var>Round</var> rounds <var>X</var> to the closest integer, which may be bigger or
  2590. smaller than <var>X</var>.
  2591. </descr>
  2592. <errors>
  2593. None.
  2594. </errors>
  2595. <seealso>
  2596. <link id="Frac"/>
  2597. <link id="Int"/>
  2598. <link id="Trunc"/>
  2599. </seealso>
  2600. <example file="refex/ex54"/>
  2601. </element>
  2602. <element name="Runerror">
  2603. <short>Generate a run-time error.</short>
  2604. <descr>
  2605. <var>Runerror</var> stops the execution of the program, and generates a
  2606. run-time error <var>ErrorCode</var>.
  2607. </descr>
  2608. <errors>
  2609. None.
  2610. </errors>
  2611. <seealso>
  2612. <link id="Exit"/>
  2613. <link id="Halt"/>
  2614. </seealso>
  2615. <example file="refex/ex55"/>
  2616. </element>
  2617. <element name="Seek">
  2618. <short>Set file position</short>
  2619. <descr>
  2620. <var>Seek</var> sets the file-pointer for file <var>F</var> to record Nr. <var>Count</var>.
  2621. The first record in a file has <var>Count=0</var>. F can be any file type, except
  2622. <var>Text</var>. If <var>F</var> is an untyped file, with no record size specified in
  2623. <link id="Reset"/> or <link id="Rewrite"/>, 128 is assumed.
  2624. </descr>
  2625. <errors>
  2626. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  2627. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  2628. to check for errors.
  2629. </errors>
  2630. <seealso>
  2631. <link id="Eof"/>
  2632. <link id="SeekEof"/>
  2633. <link id="SeekEoln"/>
  2634. </seealso>
  2635. <example file="refex/ex56"/>
  2636. </element>
  2637. <element name="SeekEof">
  2638. <short>Set file position to end of file</short>
  2639. <descr>
  2640. <var>SeekEof</var> returns <var>True</var> is the file-pointer is at the end of the
  2641. file. It ignores all whitespace.
  2642. Calling this function has the effect that the file-position is advanced
  2643. until the first non-whitespace character or the end-of-file marker is
  2644. reached.
  2645. If the end-of-file marker is reached, <var>True</var> is returned. Otherwise,
  2646. False is returned.
  2647. If the parameter <var>F</var> is omitted, standard <var>Input</var> is assumed.
  2648. </descr>
  2649. <errors>
  2650. A run-time error is generated if the file <var>F</var> isn't opened.
  2651. </errors>
  2652. <seealso>
  2653. <link id="Eof"/>
  2654. <link id="SeekEoln"/>
  2655. <link id="Seek"/>
  2656. </seealso>
  2657. <example file="refex/ex57"/>
  2658. </element>
  2659. <element name="SeekEoln">
  2660. <short>Set file position to end of line</short>
  2661. <descr>
  2662. <var>SeekEoln</var> returns <var>True</var> is the file-pointer is at the end of the
  2663. current line. It ignores all whitespace.
  2664. Calling this function has the effect that the file-position is advanced
  2665. until the first non-whitespace character or the end-of-line marker is
  2666. reached.
  2667. If the end-of-line marker is reached, <var>True</var> is returned. Otherwise,
  2668. False is returned.
  2669. The end-of-line marker is defined as <var>#10</var>, the LineFeed character.
  2670. If the parameter <var>F</var> is omitted, standard <var>Input</var> is assumed.
  2671. </descr>
  2672. <errors>
  2673. A run-time error is generated if the file <var>F</var> isn't opened.
  2674. </errors>
  2675. <seealso>
  2676. <link id="Eof"/>
  2677. <link id="SeekEof"/>
  2678. <link id="Seek"/>
  2679. </seealso>
  2680. <example file="refex/ex58"/>
  2681. </element>
  2682. <element name="Seg">
  2683. <short>Return segment</short>
  2684. <descr>
  2685. <var>Seg</var> returns the segment of the address of a variable.
  2686. This function is only supported for compatibility. In Free Pascal, it
  2687. returns always 0, since Free Pascal is a 32 bit compiler, segments have no meaning.
  2688. </descr>
  2689. <errors>
  2690. None.
  2691. </errors>
  2692. <seealso>
  2693. <link id="DSeg"/>
  2694. <link id="CSeg"/>
  2695. <link id="Ofs"/>
  2696. <link id="Ptr"/>
  2697. </seealso>
  2698. <example file="refex/ex60"/>
  2699. </element>
  2700. <element name="SetMemoryManager">
  2701. <short>Set a memory manager</short>
  2702. <descr>
  2703. <p>
  2704. <var>SetMemoryManager</var> sets the current memory manager record to
  2705. <var>MemMgr</var>.
  2706. </p>
  2707. <p>
  2708. For an example, see \progref.
  2709. </p>
  2710. </descr>
  2711. <errors>
  2712. None.
  2713. </errors>
  2714. <seealso>
  2715. <link id="GetMemoryManager"/>
  2716. <link id="IsMemoryManagerSet"/>
  2717. </seealso>
  2718. </element>
  2719. <element name="SetJmp">
  2720. <short>Save current execution point.</short>
  2721. <descr>
  2722. <var>SetJmp</var> fills <var>env</var> with the necessary data for a jump back to the
  2723. point where it was called. It returns zero if called in this way.
  2724. If the function returns nonzero, then it means that a call to <link id="LongJmp"/>
  2725. with <var>env</var> as an argument was made somewhere in the program.
  2726. </descr>
  2727. <errors>
  2728. None.
  2729. </errors>
  2730. <seealso>
  2731. <link id="LongJmp"/>
  2732. </seealso>
  2733. <example file="refex/ex79"/>
  2734. </element>
  2735. <element name="SetLength">
  2736. <short>Set length of a string.</short>
  2737. <descr>
  2738. <var>SetLength</var> sets the length of the string <var>S</var> to <var>Len</var>. <var>S</var>
  2739. can be an ansistring, a short string or a widestring.
  2740. For <var>ShortStrings</var>, <var>Len</var> can maximally be 255. For <var>AnsiStrings</var>
  2741. it can have any value. For <var>AnsiString</var> strings, <var>SetLength</var> {\em
  2742. must} be used to set the length of the string.
  2743. </descr>
  2744. <errors>
  2745. None.
  2746. </errors>
  2747. <seealso>
  2748. <link id="Length"/>
  2749. </seealso>
  2750. <example file="refex/ex85"/>
  2751. </element>
  2752. <element name="SetString">
  2753. <short>Set length of a string and copy buffer.</short>
  2754. <descr>
  2755. <var>SetString</var> sets the length of the string <var>S</var> to <var>Len</var> and
  2756. if <var>Buf</var> is non-nil, copies <var>Len</var> characters from <var>Buf</var>
  2757. into <var>S</var>. <var>S</var> can be an ansistring, a short string or a widestring.
  2758. For <var>ShortStrings</var>, <var>Len</var> can maximally be 255.
  2759. </descr>
  2760. <errors>
  2761. None.
  2762. </errors>
  2763. <seealso>
  2764. <link id="SetLength"/>
  2765. </seealso>
  2766. </element>
  2767. <element name="SetTextBuf">
  2768. <short>Set size of text file internal buffer</short>
  2769. <descr>
  2770. <p>
  2771. <var>SetTextBuf</var> assigns an I/O buffer to a text file. The new buffer is
  2772. located at <var>Buf</var> and is <var>Size</var> bytes long. If <var>Size</var> is omitted,
  2773. then <var>SizeOf(Buf)</var> is assumed.
  2774. The standard buffer of any text file is 128 bytes long. For heavy I/O
  2775. operations this may prove too slow. The <var>SetTextBuf</var> procedure allows
  2776. to set a bigger buffer for the IO of the application, thus reducing the number of
  2777. system calls, and thus reducing the load on the system resources.
  2778. The maximum size of the newly assigned buffer is 65355 bytes.
  2779. </p>
  2780. <remark>
  2781. <ul>
  2782. <li> Never assign a new buffer to an opened file. A
  2783. new buffer can be assigned immediately after a call to <link id="Rewrite"/>
  2784. <link id="Reset"/> or
  2785. <var>Append</var>, but not after the file was read from/written to. This may cause
  2786. loss of data. If a new buffer must be assigned after read/write
  2787. operations have been performed, the file should be flushed first.
  2788. This will ensure that the current buffer is emptied.
  2789. </li>
  2790. <li> Take care that the assigned buffer is always valid. If a local variable is
  2791. assigned as a buffer, then after the program exits the local program block,
  2792. the buffer will no longer be valid, and stack problems may occur.
  2793. </li>
  2794. </ul>
  2795. </remark>
  2796. </descr>
  2797. <errors>
  2798. No checking on <var>Size</var> is done.
  2799. </errors>
  2800. <seealso>
  2801. <link id="Assign"/>
  2802. <link id="Reset"/>
  2803. <link id="Rewrite"/>
  2804. <link id="Append"/>
  2805. </seealso>
  2806. <example file="refex/ex61"/>
  2807. </element>
  2808. <element name="Sin">
  2809. <short>Calculate sine of angle</short>
  2810. <descr>
  2811. <var>Sin</var> returns the sine of its argument <var>X</var>, where <var>X</var> is an
  2812. angle in radians.
  2813. If the absolute value of the argument is larger than \var{2\^{}63}, then the
  2814. result is undefined.
  2815. </descr>
  2816. <errors>
  2817. None.
  2818. </errors>
  2819. <seealso>
  2820. <link id="Cos"/>
  2821. <link id="Pi"/>
  2822. <link id="Exp"/>
  2823. <link id="Ln"/>
  2824. </seealso>
  2825. <example file="refex/ex62"/>
  2826. </element>
  2827. <element name="SizeOf">
  2828. <short>Return size of a variable or type.</short>
  2829. <descr>
  2830. <p>
  2831. <var>SizeOf</var> returns the size, in bytes, of any variable or type-identifier.
  2832. </p>
  2833. <remark>
  2834. This isn't really a RTL function. Its result is calculated at
  2835. compile-time, and hard-coded in the executable.
  2836. </remark>
  2837. </descr>
  2838. <errors>
  2839. None.
  2840. </errors>
  2841. <seealso>
  2842. <link id="Addr"/>
  2843. </seealso>
  2844. <example file="refex/ex63"/>
  2845. </element>
  2846. <element name="Sptr">
  2847. <short>Return current stack pointer</short>
  2848. <descr>
  2849. <var>Sptr</var> returns the current stack pointer.
  2850. </descr>
  2851. <errors>
  2852. None.
  2853. </errors>
  2854. <seealso>
  2855. <link id="SSeg"/>
  2856. </seealso>
  2857. <example file="refex/ex64"/>
  2858. </element>
  2859. <element name="Sqr">
  2860. <short>Calculate the square of a value.</short>
  2861. <descr>
  2862. <var>Sqr</var> returns the square of its argument <var>X</var>.
  2863. </descr>
  2864. <errors>
  2865. None.
  2866. </errors>
  2867. <seealso>
  2868. <link id="Sqrt"/>
  2869. <link id="Ln"/>
  2870. <link id="Exp"/>
  2871. </seealso>
  2872. <example file="refex/ex65"/>
  2873. </element>
  2874. <element name="Sqrt">
  2875. <short>Calculate the square root of a value</short>
  2876. <descr>
  2877. <var>Sqrt</var> returns the square root of its argument <var>X</var>, which must be
  2878. positive.
  2879. </descr>
  2880. <errors>
  2881. If <var>X</var> is negative, then a run-time error is generated.
  2882. </errors>
  2883. <seealso>
  2884. <link id="Sqr"/>
  2885. <link id="Ln"/>
  2886. <link id="Exp"/>
  2887. </seealso>
  2888. <example file="refex/ex66"/>
  2889. </element>
  2890. <element name="SSeg">
  2891. <short>Return stack segment register value.</short>
  2892. <descr>
  2893. <var>SSeg</var> returns the Stack Segment. This function is only
  2894. supported for compatibility reasons, as <var>Sptr</var> returns the
  2895. correct contents of the stackpointer.
  2896. </descr>
  2897. <errors>
  2898. None.
  2899. </errors>
  2900. <seealso>
  2901. <link id="Sptr"/>
  2902. </seealso>
  2903. <example file="refex/ex67"/>
  2904. </element>
  2905. <element name="Str">
  2906. <short>Convert a numerical value to a string.</short>
  2907. <descr>
  2908. <var>Str</var> returns a string which represents the value of X. X can be any
  2909. numerical type.
  2910. The optional <var>NumPLaces</var> and <var>Decimals</var> specifiers control the
  2911. formatting of the string.
  2912. </descr>
  2913. <errors>
  2914. None.
  2915. </errors>
  2916. <seealso>
  2917. <link id="Val"/>
  2918. </seealso>
  2919. <example file="refex/ex68"/>
  2920. </element>
  2921. <element name="StringOfChar">
  2922. <short>Return a string consisting of 1 character repeated N times.</short>
  2923. <descr>
  2924. <p>
  2925. <var>StringOfChar</var> creates a new String of length <var>l</var> and fills
  2926. it with the character <var>c</var>.
  2927. </p>
  2928. <p>
  2929. It is equivalent to the following calls:
  2930. </p>
  2931. <code>
  2932. SetLength(StringOfChar,l);
  2933. FillChar(Pointer(StringOfChar)^,Length(StringOfChar),c);
  2934. </code>
  2935. </descr>
  2936. <errors>
  2937. None.
  2938. </errors>
  2939. <seealso>
  2940. <link id="SetLength"/>
  2941. </seealso>
  2942. <example file="refex/ex97"/>
  2943. </element>
  2944. <element name="Succ">
  2945. <short>Return next element of ordinal type.</short>
  2946. <descr>
  2947. <p>
  2948. <var>Succ</var> returns the element that succeeds the element that was passed
  2949. to it. If it is applied to the last value of the ordinal type, and the
  2950. program was compiled with range checking on (\var{\{\$R+\}}), then a run-time
  2951. error will be generated.
  2952. </p>
  2953. <p>
  2954. for an example, see <link id="Ord"/>.
  2955. </p>
  2956. </descr>
  2957. <errors>
  2958. Run-time error 201 is generated when the result is out of
  2959. range.
  2960. </errors>
  2961. <seealso>
  2962. <link id="Ord"/>
  2963. <link id="Pred"/>
  2964. <link id="High"/>
  2965. <link id="Low"/>
  2966. </seealso>
  2967. </element>
  2968. <element name="Swap">
  2969. <short>Swap high and low bytes/words of a variable</short>
  2970. <descr>
  2971. <var>Swap</var> swaps the high and low order bytes of <var>X</var> if <var>X</var> is of
  2972. type <var>Word</var> or <var>Integer</var>, or swaps the high and low order words of
  2973. <var>X</var> if <var>X</var> is of type <var>Longint</var> or <var>Cardinal</var>.
  2974. The return type is the type of <var>X</var>
  2975. </descr>
  2976. <errors>
  2977. None.
  2978. </errors>
  2979. <seealso>
  2980. <link id="Lo"/>
  2981. <link id="Hi"/>
  2982. </seealso>
  2983. <example file="refex/ex69"/>
  2984. </element>
  2985. <element name="Trunc">
  2986. <short>Truncate a floating point value.</short>
  2987. <descr>
  2988. <var>Trunc</var> returns the integer part of <var>X</var>,
  2989. which is always smaller than (or equal to) <var>X</var> in absolute value.
  2990. </descr>
  2991. <errors>
  2992. None.
  2993. </errors>
  2994. <seealso>
  2995. <link id="Frac"/>
  2996. <link id="Int"/>
  2997. <link id="Round"/>
  2998. </seealso>
  2999. <example file="refex/ex70"/>
  3000. </element>
  3001. <element name="Truncate">
  3002. <short>Truncate the file at position</short>
  3003. <descr>
  3004. <var>Truncate</var> truncates the (opened) file <var>F</var> at the current file
  3005. position.
  3006. </descr>
  3007. <errors>
  3008. Depending on the state of the \var{\{\$I\}} switch, a runtime error can be
  3009. generated if there is an error. In the \var{\{\$I-\}} state, use <var>IOResult</var>
  3010. to check for errors.
  3011. </errors>
  3012. <seealso>
  3013. <link id="Append"/>
  3014. <link id="Filepos"/>,
  3015. <link id="Seek"/>
  3016. </seealso>
  3017. <example file="refex/ex71"/>
  3018. </element>
  3019. <element name="Upcase">
  3020. <short>Convert a string to all uppercase.</short>
  3021. <descr>
  3022. <var>Upcase</var> returns the uppercase version of its argument <var>C</var>.
  3023. If its argument is a string, then the complete string is converted to
  3024. uppercase. The type of the returned value is the same as the type of the
  3025. argument.
  3026. </descr>
  3027. <errors>
  3028. None.
  3029. </errors>
  3030. <seealso>
  3031. <link id="Lowercase"/>
  3032. </seealso>
  3033. <example file="refex/ex72"/>
  3034. </element>
  3035. <element name="Val">
  3036. <short>Calculate numerical value of a string.</short>
  3037. <descr>
  3038. <var>Val</var> converts the value represented in the string <var>S</var> to a numerical
  3039. value, and stores this value in the variable <var>V</var>, which
  3040. can be of type <var>Longint</var>, <var>Real</var> and <var>Byte</var>.
  3041. If the conversion isn't succesfull, then the parameter <var>Code</var> contains
  3042. the index of the character in <var>S</var> which prevented the conversion.
  3043. The string <var>S</var> is allowed to contain spaces in the beginning.
  3044. The string <var>S</var> can contain a number in decimal, hexadecimal, binary
  3045. or octal format, as described in the language reference.
  3046. </descr>
  3047. <errors>
  3048. If the conversion doesn't succeed, the value of <var>Code</var> indicates the
  3049. position where the conversion went wrong.
  3050. </errors>
  3051. <seealso>
  3052. <link id="Str"/>
  3053. </seealso>
  3054. <example file="refex/ex74"/>
  3055. </element>
  3056. <element name="Write">
  3057. <short>Write variable to a text file</short>
  3058. <descr>
  3059. <var>Write</var> writes the contents of the variables <var>V1</var>, <var>V2</var> etc. to
  3060. the file <var>F</var>. <var>F</var> can be a typed file, or a <var>Text</var> file.
  3061. If <var>F</var> is a typed file, then the variables <var>V1</var>, <var>V2</var> etc. must
  3062. be of the same type as the type in the declaration of <var>F</var>. Untyped files
  3063. are not allowed.
  3064. If the parameter <var>F</var> is omitted, standard output is assumed.
  3065. If <var>F</var> is of type <var>Text</var>, then the necessary conversions are done
  3066. such that the output of the variables is in human-readable format.
  3067. This conversion is done for all numerical types. Strings are printed exactly
  3068. as they are in memory, as well as <var>PChar</var> types.
  3069. The format of the numerical conversions can be influenced through
  3070. the following modifiers:
  3071. <var> OutputVariable : NumChars [: Decimals ] </var>
  3072. This will print the value of <var>OutputVariable</var> with a minimum of
  3073. <var>NumChars</var> characters, from which <var>Decimals</var> are reserved for the
  3074. decimals. If the number cannot be represented with <var>NumChars</var> characters,
  3075. <var>NumChars</var> will be increased, until the representation fits. If the
  3076. representation requires less than <var>NumChars</var> characters then the output
  3077. is filled up with spaces, to the left of the generated string, thus
  3078. resulting in a right-aligned representation.
  3079. If no formatting is specified, then the number is written using its natural
  3080. length, with nothing in front of it if it's positive, and a minus sign if
  3081. it's negative.
  3082. Real numbers are, by default, written in scientific notation.
  3083. </descr>
  3084. <errors>
  3085. If an error occurs, a run-time error is generated. This behavior can be
  3086. controlled with the \var{\{\$i\}} switch.
  3087. </errors>
  3088. <seealso>
  3089. <link id="WriteLn"/>
  3090. <link id="Read"/>
  3091. <link id="Readln"/>
  3092. <link id="Blockwrite"/>
  3093. </seealso>
  3094. </element>
  3095. <element name="WriteLn">
  3096. <short>Write variable to a text file and append newline</short>
  3097. <descr>
  3098. <p>
  3099. <var>WriteLn</var> does the same as <link id="Write"/> for text files, and emits a
  3100. Carriage Return - LineFeed character pair after that.
  3101. If the parameter <var>F</var> is omitted, standard output is assumed.
  3102. If no variables are specified, a Carriage Return - LineFeed character pair
  3103. is emitted, resulting in a new line in the file <var>F</var>.
  3104. </p>
  3105. <remark>
  3106. Under linux and unix, the Carriage Return character is omitted, as
  3107. customary in Unix environments.
  3108. </remark>
  3109. </descr>
  3110. <errors>
  3111. If an error occurs, a run-time error is generated. This behavior can be
  3112. controlled with the \var{\{\$i\}} switch.
  3113. </errors>
  3114. <seealso>
  3115. <link id="Write"/>
  3116. <link id="Read"/>
  3117. <link id="Readln"/>
  3118. <link id="Blockwrite"/>
  3119. </seealso>
  3120. <example file="refex/ex75"/>
  3121. </element>
  3122. <!-- range type Visibility: default -->
  3123. <element name="ShortInt">
  3124. <short>A signed 8-bits integer</short>
  3125. </element>
  3126. <!-- range type Visibility: default -->
  3127. <element name="SmallInt">
  3128. <short>A signed 16-bits integer</short>
  3129. </element>
  3130. <!-- range type Visibility: default -->
  3131. <element name="Longint">
  3132. <short>A signed 32-bits integer</short>
  3133. </element>
  3134. <!-- range type Visibility: default -->
  3135. <element name="Byte">
  3136. <short>An unsigned 8-bits integer</short>
  3137. </element>
  3138. <!-- range type Visibility: default -->
  3139. <element name="Word">
  3140. <short>An unsigned 16-bits integer</short>
  3141. </element>
  3142. <!-- alias type Visibility: default -->
  3143. <element name="DWord">
  3144. <short>An unsigned 32-bits integer</short>
  3145. </element>
  3146. <!-- alias type Visibility: default -->
  3147. <element name="Cardinal">
  3148. <short>An unsigned 32-bits integer.</short>
  3149. </element>
  3150. <!-- alias type Visibility: default -->
  3151. <element name="Integer">
  3152. <short>A signed 16-bits integer</short>
  3153. <descr>
  3154. The system unit defines <var>Integer</var> as a signed 16-bit integer.
  3155. But when <var>DELPHI</var> or <var>OBJFPC</var> mode are active, then
  3156. the <file>objpas</file> unit redefines <var>Integer</var> as a 16-bit
  3157. integer.
  3158. </descr>
  3159. </element>
  3160. <!-- pointer type Visibility: default -->
  3161. <element name="PChar">
  3162. <short>Pointer to null-terminated string.</short>
  3163. <descr>
  3164. Or the same as a pointer to an array of char. See the reference manual for
  3165. more information about this type.
  3166. </descr>
  3167. </element>
  3168. <!-- pointer type Visibility: default -->
  3169. <element name="PPChar">
  3170. <short>Pointer to an array of pointers to null-terminated strings.</short>
  3171. </element>
  3172. <!-- alias type Visibility: default -->
  3173. <element name="TAnsiChar">
  3174. <short>Alias for 1-byte sized char.</short>
  3175. </element>
  3176. <!-- alias type Visibility: default -->
  3177. <element name="AnsiChar">
  3178. <short>Alias for 1-byte sized char.</short>
  3179. </element>
  3180. <!-- alias type Visibility: default -->
  3181. <element name="PAnsiChar">
  3182. <short>Alias for <link id="PChar"/> type.</short>
  3183. </element>
  3184. <!-- alias type Visibility: default -->
  3185. <element name="PPAnsiChar">
  3186. <short>Alias for <link id="PPChar"/> type.</short>
  3187. </element>
  3188. <!-- "type" alias type Visibility: default -->
  3189. <element name="UCS4Char">
  3190. <short>UCS unicode character (unsigned 32 bit word)</short>
  3191. </element>
  3192. <!-- pointer type Visibility: default -->
  3193. <element name="PUCS4Char">
  3194. <short>Pointer to <link id="UCS4Char"/></short>
  3195. </element>
  3196. <!-- array type Visibility: default -->
  3197. <element name="TUCS4CharArray">
  3198. <short>Array of <link id="UCS4Char"/> characters.</short>
  3199. </element>
  3200. <!-- pointer type Visibility: default -->
  3201. <element name="PUCS4CharArray">
  3202. <short>Pointer to array of <link id="UCS4Char"/> characters.</short>
  3203. </element>
  3204. <!-- array type Visibility: default -->
  3205. <element name="UCS4String">
  3206. <short>String of <link id="UCS4Char"/> characters.</short>
  3207. </element>
  3208. <!-- "type" alias type Visibility: default -->
  3209. <element name="UTF8String">
  3210. <short>UTF-8 unicode (ansi) string.</short>
  3211. </element>
  3212. <!-- pointer type Visibility: default -->
  3213. <element name="PUTF8String">
  3214. <short>Pointer to <link id="UTF8String"/></short>
  3215. </element>
  3216. <!-- alias type Visibility: default -->
  3217. <element name="Currency">
  3218. <short>Currency type.</short>
  3219. </element>
  3220. <!-- "type" alias type Visibility: default -->
  3221. <element name="HRESULT">
  3222. <short>32-Bit signed integer.</short>
  3223. </element>
  3224. <!-- "type" alias type Visibility: default -->
  3225. <element name="TDateTime">
  3226. <short>Encoded Date-Time type.</short>
  3227. </element>
  3228. <!-- "type" alias type Visibility: default -->
  3229. <element name="Error">
  3230. <short>32-bit signed integer.</short>
  3231. </element>
  3232. <!-- pointer type Visibility: default -->
  3233. <element name="PSingle">
  3234. <short>Pointer to single-sized float value.</short>
  3235. </element>
  3236. <!-- pointer type Visibility: default -->
  3237. <element name="PDouble">
  3238. <short>Pointer to double-sized float value.</short>
  3239. </element>
  3240. <!-- pointer type Visibility: default -->
  3241. <element name="PCurrency">
  3242. <short>Pointer to currency type.</short>
  3243. </element>
  3244. <!-- pointer type Visibility: default -->
  3245. <element name="PExtended">
  3246. <short>Pointer to extended-sized float value.</short>
  3247. </element>
  3248. <!-- pointer type Visibility: default -->
  3249. <element name="PSmallInt">
  3250. <short>Pointer to <link id="smallint"/> type</short>
  3251. </element>
  3252. <!-- pointer type Visibility: default -->
  3253. <element name="PShortInt">
  3254. <short>Pointer to <link id="shortint"/> type</short>
  3255. </element>
  3256. <!-- pointer type Visibility: default -->
  3257. <element name="PInteger">
  3258. <short>Pointer to <link id="integer"/> type</short>
  3259. </element>
  3260. <!-- pointer type Visibility: default -->
  3261. <element name="PByte">
  3262. <short>Pointer to <link id="byte"/> type</short>
  3263. </element>
  3264. <!-- pointer type Visibility: default -->
  3265. <element name="PWord">
  3266. <short>Pointer to <link id="word"/> type</short>
  3267. </element>
  3268. <!-- pointer type Visibility: default -->
  3269. <element name="PDWord">
  3270. <short>Pointer to <link id="DWord"/> type</short>
  3271. </element>
  3272. <!-- pointer type Visibility: default -->
  3273. <element name="PLongWord">
  3274. <short>Pointer to <var>LongWord</var> type</short>
  3275. </element>
  3276. <!-- pointer type Visibility: default -->
  3277. <element name="PLongint">
  3278. <short>Pointer to <link id="Longint"/> type</short>
  3279. </element>
  3280. <!-- pointer type Visibility: default -->
  3281. <element name="PCardinal">
  3282. <short>Pointer to <link id="Cardinal"/> type</short>
  3283. </element>
  3284. <!-- pointer type Visibility: default -->
  3285. <element name="PQWord">
  3286. <short>Pointer to <var>QWord</var> type</short>
  3287. </element>
  3288. <!-- pointer type Visibility: default -->
  3289. <element name="PInt64">
  3290. <short>Pointer to <var>Int64</var> type</short>
  3291. </element>
  3292. <!-- pointer type Visibility: default -->
  3293. <element name="PPtrInt">
  3294. <short>Pointer to <link id="PtrInt"/> type.</short>
  3295. </element>
  3296. <!-- pointer type Visibility: default -->
  3297. <element name="PSizeInt">
  3298. <short>Pointer to a <link id="SizeInt"/> type</short>
  3299. </element>
  3300. <!-- pointer type Visibility: default -->
  3301. <element name="PPointer">
  3302. <short>Pointer to a pointer type.</short>
  3303. </element>
  3304. <!-- pointer type Visibility: default -->
  3305. <element name="PPPointer">
  3306. <short>Pointer to a <link id="PPointer"/> type.</short>
  3307. </element>
  3308. <!-- pointer type Visibility: default -->
  3309. <element name="PBoolean">
  3310. <short>Pointer to a Boolean type.</short>
  3311. </element>
  3312. <!-- pointer type Visibility: default -->
  3313. <element name="PWordBool">
  3314. <short>Pointer to a <var>WordBool</var> type.</short>
  3315. </element>
  3316. <!-- pointer type Visibility: default -->
  3317. <element name="PLongBool">
  3318. <short>Pointer to a <var>LongBool</var> type.</short>
  3319. </element>
  3320. <!-- pointer type Visibility: default -->
  3321. <element name="PShortString">
  3322. <short>Pointer to a shortstring type.</short>
  3323. </element>
  3324. <!-- pointer type Visibility: default -->
  3325. <element name="PAnsiString">
  3326. <short>Pointer to an ansistring type.</short>
  3327. </element>
  3328. <!-- pointer type Visibility: default -->
  3329. <element name="PDate">
  3330. <short>Pointer to a <link id="TDateTime"/> type.</short>
  3331. </element>
  3332. <!-- pointer type Visibility: default -->
  3333. <element name="PError">
  3334. <short>Pointer to an <link id="Error"/> type.</short>
  3335. </element>
  3336. <!-- alias type Visibility: default -->
  3337. <element name="WChar">
  3338. <short>Wide char (16-bit sized char)</short>
  3339. </element>
  3340. <!-- enumeration type Visibility: default -->
  3341. <element name="TTextLineBreakStyle">
  3342. <short>Text line break style. (end of line character)</short>
  3343. </element>
  3344. <!-- enumeration value Visibility: default -->
  3345. <element name="TTextLineBreakStyle.tlbsLF">
  3346. <short>Line-feed only (#10, unix style)</short>
  3347. </element>
  3348. <!-- enumeration value Visibility: default -->
  3349. <element name="TTextLineBreakStyle.tlbsCRLF">
  3350. <short>Carriage-return, line-feed (#13#30, Windows style)</short>
  3351. </element>
  3352. <!-- enumeration value Visibility: default -->
  3353. <element name="TTextLineBreakStyle.tlbsCR">
  3354. <short>Carriage-return (#13, Mac-OS style)</short>
  3355. </element>
  3356. <!-- procedure type Visibility: default -->
  3357. <element name="TProcedure">
  3358. <short>Simple procedural type.</short>
  3359. </element>
  3360. <!-- constant Visibility: default -->
  3361. <element name="MaxSIntValue">
  3362. <short>Maximum String-size value.</short>
  3363. </element>
  3364. <!-- constant Visibility: default -->
  3365. <element name="MaxUIntValue">
  3366. <short>Maximum unsigned integer value.</short>
  3367. </element>
  3368. <!-- constant Visibility: default -->
  3369. <element name="maxLongint">
  3370. <short>Maximum longint value.</short>
  3371. </element>
  3372. <!-- constant Visibility: default -->
  3373. <element name="maxSmallint">
  3374. <short>Maximum smallint value.</short>
  3375. </element>
  3376. <!-- constant Visibility: default -->
  3377. <element name="maxint">
  3378. <short>Maximum integer value.</short>
  3379. </element>
  3380. <!-- array type Visibility: default -->
  3381. <element name="IntegerArray">
  3382. <short>Generic array of integer. </short>
  3383. </element>
  3384. <!-- pointer type Visibility: default -->
  3385. <element name="PIntegerArray">
  3386. <short>Pointer to <link id="IntegerArray"/> type</short>
  3387. </element>
  3388. <!-- array type Visibility: default -->
  3389. <element name="PointerArray">
  3390. <short>Generic pointer array.</short>
  3391. </element>
  3392. <!-- pointer type Visibility: default -->
  3393. <element name="PPointerArray">
  3394. <short>Pointer to <link id="PointerArray"/> type</short>
  3395. </element>
  3396. <!-- array type Visibility: default -->
  3397. <element name="TBoundArray">
  3398. <short>Dynamic array of integer.</short>
  3399. </element>
  3400. <!-- array type Visibility: default -->
  3401. <element name="TPCharArray">
  3402. <short>Array of PChar</short>
  3403. </element>
  3404. <!-- pointer type Visibility: default -->
  3405. <element name="PPCharArray">
  3406. <short>Pointer to <link id="TPCharArray"/> type.</short>
  3407. </element>
  3408. <!-- constant Visibility: default -->
  3409. <element name="Max_Frame_Dump">
  3410. <short>Maximum number of frames to show in error frame dump.</short>
  3411. </element>
  3412. <!-- constant Visibility: default -->
  3413. <element name="ExitProc">
  3414. <short>Exit procedure pointer.</short>
  3415. </element>
  3416. <!-- constant Visibility: default -->
  3417. <element name="Erroraddr">
  3418. <short>Address where the last error occurred.</short>
  3419. </element>
  3420. <!-- constant Visibility: default -->
  3421. <element name="Errorcode">
  3422. <short>Last error code.</short>
  3423. </element>
  3424. <!-- constant Visibility: default -->
  3425. <element name="fmClosed">
  3426. <short>File mode: File is closed.</short>
  3427. </element>
  3428. <!-- constant Visibility: default -->
  3429. <element name="fmInput">
  3430. <short>File mode: File is open for reading.</short>
  3431. </element>
  3432. <!-- constant Visibility: default -->
  3433. <element name="fmOutput">
  3434. <short>File mode: File is open for writing.</short>
  3435. </element>
  3436. <!-- constant Visibility: default -->
  3437. <element name="fmInOut">
  3438. <short>File mode: File is open for reading and writing.</short>
  3439. </element>
  3440. <!-- constant Visibility: default -->
  3441. <element name="fmAppend">
  3442. <short>File mode: File is open for writing, appending to the end.</short>
  3443. </element>
  3444. <!-- constant Visibility: default -->
  3445. <element name="ProcessID">
  3446. <short>Current process ID.</short>
  3447. </element>
  3448. <!-- constant Visibility: default -->
  3449. <element name="Filemode">
  3450. <short>Default file mode for untyped files.</short>
  3451. </element>
  3452. <!-- constant Visibility: default -->
  3453. <element name="CmdLine">
  3454. <short>Current command-line.</short>
  3455. </element>
  3456. <!-- constant Visibility: default -->
  3457. <element name="IsMultiThread">
  3458. <short>Indicates whether more than one thread is running in the application.</short>
  3459. </element>
  3460. <!-- constant Visibility: default -->
  3461. <element name="StackError">
  3462. <short>Indicate whether there was a stack error.</short>
  3463. </element>
  3464. <!-- variable Visibility: default -->
  3465. <element name="ExitCode">
  3466. <short>Exit code for the program, will be communicated to the OS on exit.</short>
  3467. </element>
  3468. <!-- variable Visibility: default -->
  3469. <element name="RandSeed">
  3470. <short>Seed for <link id="Random"/> function.</short>
  3471. </element>
  3472. <!-- variable Visibility: default -->
  3473. <element name="IsLibrary">
  3474. <short><var>True</var> if the current module is a library. Otherwise module
  3475. is an excutable</short>
  3476. </element>
  3477. <!-- variable Visibility: default -->
  3478. <element name="IsConsole">
  3479. <short><var>True</var> for console applications, <var>False</var> for GUI applications.</short>
  3480. </element>
  3481. <!-- variable Visibility: default -->
  3482. <element name="fpc_threadvar_relocate_proc" skip="1">
  3483. </element>
  3484. <!-- variable Visibility: default -->
  3485. <element name="ThreadID">
  3486. <short>Current Thread ID.</short>
  3487. </element>
  3488. <!-- variable Visibility: default -->
  3489. <element name="Output">
  3490. <short>Standard output text file.</short>
  3491. </element>
  3492. <!-- variable Visibility: default -->
  3493. <element name="Input">
  3494. <short>Standard input text file.</short>
  3495. </element>
  3496. <!-- variable Visibility: default -->
  3497. <element name="StdOut">
  3498. <short>Alias for <link id="Output"/>.</short>
  3499. </element>
  3500. <!-- variable Visibility: default -->
  3501. <element name="StdErr">
  3502. <short>Standard diagnostic output text file.</short>
  3503. </element>
  3504. <!-- variable Visibility: default -->
  3505. <element name="InOutRes">
  3506. <short>Result of last I/O operation. Read-Only.</short>
  3507. </element>
  3508. <!-- variable Visibility: default -->
  3509. <element name="StackBottom">
  3510. <short>Current stack bottom.</short>
  3511. </element>
  3512. <!-- variable Visibility: default -->
  3513. <element name="StackLength">
  3514. <short>Maximum stack length.</short>
  3515. </element>
  3516. <!-- function Visibility: default -->
  3517. <element name="IndexChar0">
  3518. <short>Return index of a character in null-terminated array of char.</short>
  3519. <descr>
  3520. <var>IndexChar0</var> returns the index of the character <var>b</var> in the
  3521. null-terminated array <var>Buf</var>. At most <var>len</var> characters will
  3522. be searched, or the null character if it is encountered first. If the
  3523. character is not found, 0 is returned.
  3524. </descr>
  3525. <errors>
  3526. On error, 0 is returned.
  3527. </errors>
  3528. <seealso>
  3529. <link id="IndexByte"/>
  3530. <link id="IndexChar"/>
  3531. <link id="IndexWord"/>
  3532. <link id="IndexDWord"/>
  3533. <link id="CompareChar0"/>
  3534. </seealso>
  3535. </element>
  3536. <!-- function Visibility: default -->
  3537. <element name="CompareChar0">
  3538. <short>Compare two buffers character by character till a null-character is reached.</short>
  3539. <descr>
  3540. <p>
  3541. <var>CompareChar0</var> compares 2 buffers <var>buf1</var> and <var>buf2</var>
  3542. for a maximum length of <var>len</var> or till a null character is reached
  3543. in either buffer. The result depends on the contents of the buffers:
  3544. </p>
  3545. <dl>
  3546. <dt>&lt; 0</dt><dd>If <var>buf1</var> contains a character less than the
  3547. corresponding character in <var>buf2</var>.</dd>
  3548. <dt>0</dt><dd>If both buffers are equal</dd>
  3549. <dt>&gt; 0</dt><dd>If <var>buf1</var> contains a character greater than the
  3550. corresponding character in <var>buf2</var>.</dd>
  3551. </dl>
  3552. </descr>
  3553. <errors>
  3554. None.
  3555. </errors>
  3556. <seealso>
  3557. <link id="CompareByte"/>
  3558. <link id="CompareChar"/>
  3559. <link id="CompareDWord"/>
  3560. <link id="CompareWord"/>
  3561. </seealso>
  3562. </element>
  3563. <!-- procedure Visibility: default -->
  3564. <element name="prefetch">
  3565. <short>Prefetch a memory location</short>
  3566. <descr>
  3567. <var>Prefetch</var> can be used to optimize the CPU behaviour by already
  3568. loading a memory location. It is mainly used as a hint for those processors
  3569. that support it.
  3570. </descr>
  3571. <errors>
  3572. None.
  3573. </errors>
  3574. </element>
  3575. <!-- array type Visibility: default -->
  3576. <element name="real48">
  3577. <short>TP compatible real type (6 bytes) definition</short>
  3578. </element>
  3579. <!-- function Visibility: default -->
  3580. <element name="strpas">
  3581. <short>Convert a null-terminated string to a shortstring.</short>
  3582. <descr>
  3583. Converts a null terminated string in <var>P</var> to a Pascal string, and
  3584. returns
  3585. this string. The string is truncated at 255 characters.
  3586. </descr>
  3587. <errors>
  3588. None.
  3589. </errors>
  3590. </element>
  3591. <!-- function Visibility: default -->
  3592. <element name="strlen">
  3593. <short>Length of a null-terminated string.</short>
  3594. <descr>
  3595. Returns the length of the null-terminated string <var>P</var>.
  3596. </descr>
  3597. <errors>
  3598. None.
  3599. </errors>
  3600. </element>
  3601. <!-- function Visibility: default -->
  3602. <element name="Space">
  3603. <short>Return a string of spaces</short>
  3604. <descr>
  3605. <var>Space</var> returns a shortstring with length <var>B</var>, consisting
  3606. of spaces.
  3607. </descr>
  3608. <seealso>
  3609. <link id="StringOfChar"/>
  3610. </seealso>
  3611. </element>
  3612. <!-- procedure Visibility: default -->
  3613. <element name="UniqueString">
  3614. <short>Make sure reference count of string is 1</short>
  3615. <descr>
  3616. <var>UniqueString</var> ensures that the ansistring <var>S</var> has
  3617. reference count 1. It makes a copy of <var>S</var> if this is necesary, and
  3618. returns the copy in <var>S</var>
  3619. </descr>
  3620. <errors>
  3621. None.
  3622. </errors>
  3623. </element>
  3624. <!-- procedure Visibility: default -->
  3625. <element name="SetTextLineEnding">
  3626. <short>Set the end-of-line character for the given text file.</short>
  3627. <descr>
  3628. <var>SetTextLineEnding</var> sets the end-of-line character for the text
  3629. file <var>F</var> to <var>Ending</var>. By default, this is the string
  3630. indicated by <link id="DefaultTextLineBreakStyle"/>.
  3631. </descr>
  3632. <errors>
  3633. None.
  3634. </errors>
  3635. <seealso>
  3636. <link id="DefaultTextLineBreakStyle"/>
  3637. <link id="TTextLineBreakStyle"/>
  3638. </seealso>
  3639. </element>
  3640. <!-- function Visibility: default -->
  3641. <element name="get_frame">
  3642. <short>Return the current frame</short>
  3643. <descr>
  3644. <var>get_frame</var> returns a pointer to the current stack frame.
  3645. </descr>
  3646. <seealso>
  3647. <link id="get_caller_addr"/>
  3648. <link id="get_caller_frame"/>
  3649. </seealso>
  3650. </element>
  3651. <!-- function Visibility: default -->
  3652. <element name="get_caller_addr">
  3653. <short>Return the address of the caller.</short>
  3654. <descr>
  3655. <var>get_caller_frame</var> returns a pointer to address ( the return
  3656. address) of the caller of the routine which has as frame <var>framebp</var>.
  3657. </descr>
  3658. <seealso>
  3659. <link id="get_frame"/>
  3660. <link id="get_caller_frame"/>
  3661. <link id="Dump_Stack"/>
  3662. </seealso>
  3663. </element>
  3664. <!-- function Visibility: default -->
  3665. <element name="get_caller_frame">
  3666. <short>Return the frame pointer of the caller</short>
  3667. <descr>
  3668. <var>get_caller_frame</var> returns a pointer to the frame of the caller
  3669. of the routine which has as frame <var>framebp</var>.
  3670. </descr>
  3671. <seealso>
  3672. <link id="get_caller_addr"/>
  3673. <link id="get_frame"/>
  3674. <link id="Dump_Stack"/>
  3675. </seealso>
  3676. </element>
  3677. <!-- procedure Visibility: default -->
  3678. <element name="Dump_Stack">
  3679. <short>Dump stack to the given text file.</short>
  3680. <descr>
  3681. <var>Dump_Stack</var> prints a stack dump to the file <var>f</var>, with
  3682. base frame pointer <var>bp</var>
  3683. </descr>
  3684. <errors>
  3685. The file <var>f</var> must be opened for writing or an error will occur.
  3686. </errors>
  3687. <seealso>
  3688. <link id="get_caller_addr"/>
  3689. <link id="get_caller_frame"/>
  3690. <link id="get_frame"/>
  3691. </seealso>
  3692. </element>
  3693. <!-- procedure Visibility: default -->
  3694. <element name="AddExitProc">
  3695. <short>Add an exit procedure to the exit procedure chain.</short>
  3696. <descr>
  3697. <var>AddExitProc</var> adds <var>Proc</var> to the exit procedure chain. At
  3698. program exit, all procedures added in this way will be called in reverse
  3699. order.
  3700. </descr>
  3701. <errors>
  3702. None.
  3703. </errors>
  3704. <seealso>
  3705. <link id="ExitProc"/>
  3706. </seealso>
  3707. </element>
  3708. <!-- procedure Visibility: default -->
  3709. <element name="SysInitExceptions">
  3710. <short>Initialize exceptions.</short>
  3711. <descr>
  3712. <var>SysInitExceptions</var> initializes the exception system. This
  3713. procedure should never be called directly, it is taken care of by the RTL.
  3714. </descr>
  3715. </element>
  3716. <!-- procedure Visibility: default -->
  3717. <element name="SysInitStdIO">
  3718. <short>Initialize standard input and output.</short>
  3719. <descr>
  3720. <var>SysInitStdIO</var> initializes the standard input and output files:
  3721. <link id="Output"/>, <link id="Input"/> and <link id="StdErr"/>. This
  3722. routine is called by the initialization code of the system unit, there
  3723. should be no need to call it directly.
  3724. </descr>
  3725. </element>
  3726. <!-- procedure Visibility: default -->
  3727. <element name="SysResetFPU">
  3728. <short>Reset the floating point unit.</short>
  3729. <descr>
  3730. <var>SysResetFPU</var> resets the floating point unit. There should normally
  3731. be no need to call this unit; the compiler itself takes care of this.
  3732. </descr>
  3733. </element>
  3734. <!-- procedure Visibility: default -->
  3735. <element name="AbstractError">
  3736. <short>Generate an abstract error.</short>
  3737. <descr>
  3738. <var>AbstractError</var> generates an abstract error (run-time error 211).
  3739. If the <link id="AbstractErrorProc"/> constant is set, it will be called
  3740. instead.
  3741. </descr>
  3742. <errors>
  3743. This routine causes a run-time error 211.
  3744. </errors>
  3745. <seealso>
  3746. <link id="AbstractErrorProc"/>
  3747. </seealso>
  3748. </element>
  3749. <!-- function Visibility: default -->
  3750. <element name="SysBackTraceStr">
  3751. <short>Format an address suitable for inclusion in a backtrace</short>
  3752. <descr>
  3753. <var>SysBackTraceStr</var> will create a string representation of the
  3754. address <var>Addr</var>, suitable for inclusion in a stack backtrace.
  3755. </descr>
  3756. <errors>
  3757. None.
  3758. </errors>
  3759. </element>
  3760. <!-- procedure Visibility: default -->
  3761. <element name="SysAssert">
  3762. <short>Standard Assert failure implementation</short>
  3763. <descr>
  3764. <var>SysAssert</var> is the standard implementation of the assertion failed
  3765. code. It is the default value of the <var>AssertErrorProc</var> constant.
  3766. It will print the assert message <var>Msg</var> together with the filename
  3767. <var>FName</var> and linenumber <var>LineNo</var> to standard error output
  3768. (<var>StdErr</var>) and will halt the program with exit code 227.
  3769. The error address <var>ErrorAddr</var> is ignored.
  3770. </descr>
  3771. <seealso>
  3772. <link id="AssertErrorProc"/>
  3773. </seealso>
  3774. </element>
  3775. <!-- function type Visibility: default -->
  3776. <element name="TBackTraceStrFunc">
  3777. <short>Type for formatting of backtrace dump.</short>
  3778. </element>
  3779. <!-- procedure type Visibility: default -->
  3780. <element name="TErrorProc">
  3781. <short>Standard error handler procedural type.</short>
  3782. </element>
  3783. <!-- procedure type Visibility: default -->
  3784. <element name="TAbstractErrorProc">
  3785. <short>Abstract error handler procedural type.</short>
  3786. </element>
  3787. <!-- procedure type Visibility: default -->
  3788. <element name="TAssertErrorProc">
  3789. <short>Assert error handler procedural type.</short>
  3790. </element>
  3791. <!-- constant Visibility: default -->
  3792. <element name="BackTraceStrFunc">
  3793. <short>Standard backtrace formatting routine</short>
  3794. <descr>
  3795. This handler is called to get a standard format for the backtrace routine.
  3796. </descr>
  3797. </element>
  3798. <!-- constant Visibility: default -->
  3799. <element name="ErrorProc">
  3800. <short>Custom error handling procedure.</short>
  3801. <descr>
  3802. <p>
  3803. If set, the <var>ErrorProc</var> constant is used when a run-time error
  3804. occurs. If it is not set, then the standard error handling is done: a stack
  3805. dump is performed, and the program exits with the indicated error code.
  3806. </p>
  3807. <p>
  3808. The <file>SysUtils</file> unit sets this procedure and raises an exception
  3809. in its handler.
  3810. </p>
  3811. </descr>
  3812. <seealso>
  3813. <link id="TErrorProc"/>
  3814. <link id="Halt"/>
  3815. </seealso>
  3816. </element>
  3817. <!-- constant Visibility: default -->
  3818. <element name="AbstractErrorProc">
  3819. <short>Custom abstract error handling procedure</short>
  3820. <descr>
  3821. <p>
  3822. If set, the <var>AbstractErrorProc</var> constant is used when an abstract
  3823. error occurs. If it is not set, then the standard error handling is done:
  3824. A stack dump is performed, and the program exits with error code 211.
  3825. </p>
  3826. <p>
  3827. The <file>SysUtils</file> unit sets this procedure and raises an exception
  3828. in its handler.
  3829. </p>
  3830. </descr>
  3831. <seealso>
  3832. <link id="TAbstractErrorProc"/>
  3833. </seealso>
  3834. </element>
  3835. <!-- constant Visibility: default -->
  3836. <element name="AssertErrorProc">
  3837. <short>Custom assert error handling procedure</short>
  3838. <descr>
  3839. <p>
  3840. If set, the <var>AbstractErrorProc</var> constant is used when an assert
  3841. error occurs. If it is not set, then the standard error handling is done:
  3842. The assertion error message is printed, together with the location of the
  3843. assertion, and A stack dump is performed, and the program exits with error code
  3844. 227.
  3845. </p>
  3846. <p>
  3847. The <file>SysUtils</file> unit sets this procedure and raises an exception
  3848. in its handler.
  3849. </p>
  3850. </descr>
  3851. <seealso>
  3852. </seealso>
  3853. </element>
  3854. <!-- record type Visibility: default -->
  3855. <element name="jmp_buf">
  3856. <short>Record type to store processor information.</short>
  3857. <seealso>
  3858. <link id="setjmp"/>
  3859. <link id="longjmp"/>
  3860. </seealso>
  3861. </element>
  3862. <!-- variable Visibility: default -->
  3863. <element name="jmp_buf.ebx">
  3864. <short>EBX register.</short>
  3865. </element>
  3866. <!-- variable Visibility: default -->
  3867. <element name="jmp_buf.esi">
  3868. <short>ESI register</short>
  3869. </element>
  3870. <!-- variable Visibility: default -->
  3871. <element name="jmp_buf.edi">
  3872. <short>EDI register</short>
  3873. </element>
  3874. <!-- variable Visibility: default -->
  3875. <element name="jmp_buf.bp">
  3876. <short>BP register</short>
  3877. </element>
  3878. <!-- variable Visibility: default -->
  3879. <element name="jmp_buf.sp">
  3880. <short>SP register</short>
  3881. </element>
  3882. <!-- variable Visibility: default -->
  3883. <element name="jmp_buf.pc">
  3884. <short>PC register</short>
  3885. </element>
  3886. <!-- pointer type Visibility: default -->
  3887. <element name="PJmp_buf">
  3888. <short>Pointer to <link id="jmp_buf"/> record</short>
  3889. </element>
  3890. <!-- constant Visibility: default -->
  3891. <element name="vmtInstanceSize">
  3892. <short>VMT Layout: Location of class instance size in VMT</short>
  3893. </element>
  3894. <!-- constant Visibility: default -->
  3895. <element name="vmtParent">
  3896. <short>VMT Layout: location of pointer to parent VMT.</short>
  3897. </element>
  3898. <!-- constant Visibility: default -->
  3899. <element name="vmtClassName">
  3900. <short>VMT Layout: location of class name.</short>
  3901. </element>
  3902. <!-- constant Visibility: default -->
  3903. <element name="vmtDynamicTable">
  3904. <short>VMT Layout: location of dynamic methods table.</short>
  3905. </element>
  3906. <!-- constant Visibility: default -->
  3907. <element name="vmtMethodTable">
  3908. <short>VMT Layout: Method table start.</short>
  3909. </element>
  3910. <!-- constant Visibility: default -->
  3911. <element name="vmtFieldTable">
  3912. <short>VMT Layout: Location of fields table.</short>
  3913. </element>
  3914. <!-- constant Visibility: default -->
  3915. <element name="vmtTypeInfo">
  3916. <short>VMT Layout: Location of class type information.</short>
  3917. </element>
  3918. <!-- constant Visibility: default -->
  3919. <element name="vmtInitTable">
  3920. <short>VMT Layout: ?</short>
  3921. </element>
  3922. <!-- constant Visibility: default -->
  3923. <element name="vmtAutoTable">
  3924. <short>VMT layout: ?</short>
  3925. </element>
  3926. <!-- constant Visibility: default -->
  3927. <element name="vmtIntfTable">
  3928. <short>VMT layout: Interface table</short>
  3929. </element>
  3930. <!-- constant Visibility: default -->
  3931. <element name="vmtMsgStrPtr">
  3932. <short>VMT layout: message strings table.</short>
  3933. </element>
  3934. <!-- constant Visibility: default -->
  3935. <element name="vmtMethodStart">
  3936. <short>VMT layout: start of method table.</short>
  3937. </element>
  3938. <!-- constant Visibility: default -->
  3939. <element name="vmtDestroy">
  3940. <short>VMT Layout: Location of destructor pointer.</short>
  3941. </element>
  3942. <!-- constant Visibility: default -->
  3943. <element name="vmtNewInstance">
  3944. <short>VMT Layout: location of NewInstance method.</short>
  3945. </element>
  3946. <!-- constant Visibility: default -->
  3947. <element name="vmtFreeInstance">
  3948. <short>VMT Layout: location of FreeInstance method.</short>
  3949. </element>
  3950. <!-- constant Visibility: default -->
  3951. <element name="vmtSafeCallException">
  3952. <short>VMT Layout: ?</short>
  3953. </element>
  3954. <!-- constant Visibility: default -->
  3955. <element name="vmtDefaultHandler">
  3956. <short>VMT Layout: ?</short>
  3957. </element>
  3958. <!-- constant Visibility: default -->
  3959. <element name="vmtAfterConstruction">
  3960. <short>VMT Layout: ?</short>
  3961. </element>
  3962. <!-- constant Visibility: default -->
  3963. <element name="vmtBeforeDestruction">
  3964. <short>VMT Layout: ?</short>
  3965. </element>
  3966. <!-- constant Visibility: default -->
  3967. <element name="vmtDefaultHandlerStr">
  3968. <short>VMT Layout: ?</short>
  3969. </element>
  3970. <!-- alias type Visibility: default -->
  3971. <element name="TextFile">
  3972. <short>Alias for <var>Text</var> file type.</short>
  3973. </element>
  3974. <!-- object Visibility: default -->
  3975. <element name="TObject">
  3976. <short>Parent class for all classes.</short>
  3977. <descr>
  3978. <var>TObject</var> is used as the parent class for all class definitions.
  3979. It contains some standard methods that are available in all classes.
  3980. </descr>
  3981. <seealso>
  3982. <link id="TClass"/>
  3983. </seealso>
  3984. </element>
  3985. <!-- "class of" type Visibility: default -->
  3986. <element name="TClass">
  3987. <short>Class of <link id="TObject"/>.</short>
  3988. </element>
  3989. <!-- pointer type Visibility: default -->
  3990. <element name="PClass">
  3991. <short>Pointer to <link id="TClass"/></short>
  3992. </element>
  3993. <!-- record type Visibility: default -->
  3994. <element name="TMsgStrTable">
  3995. <short>Record used in string message handler table.</short>
  3996. </element>
  3997. <!-- variable Visibility: default -->
  3998. <element name="TMsgStrTable.name">
  3999. <short>Message name</short>
  4000. </element>
  4001. <!-- variable Visibility: default -->
  4002. <element name="TMsgStrTable.method">
  4003. <short>Method to call</short>
  4004. </element>
  4005. <!-- pointer type Visibility: default -->
  4006. <element name="PMsgStrTable">
  4007. <short>Pointer to array of <link id="TMsgStrTable"/> records.</short>
  4008. </element>
  4009. <!-- record type Visibility: default -->
  4010. <element name="TStringMessageTable">
  4011. <short>String message table container for class.</short>
  4012. <descr>
  4013. Record used to describe the string messages handled by a class.
  4014. It consists of a count, followed by an array of <link id="TMsgStrTable"/>
  4015. records.
  4016. </descr>
  4017. <seealso>
  4018. <link id="TMsgStrTable"/>
  4019. </seealso>
  4020. </element>
  4021. <!-- variable Visibility: default -->
  4022. <element name="TStringMessageTable.count">
  4023. <short>Number of messages in the string table.</short>
  4024. <descr>
  4025. </descr>
  4026. <seealso>
  4027. </seealso>
  4028. </element>
  4029. <!-- variable Visibility: default -->
  4030. <element name="TStringMessageTable.msgstrtable">
  4031. <short>First <link id="TMsgStrTable"/> record.</short>
  4032. </element>
  4033. <!-- pointer type Visibility: default -->
  4034. <element name="pstringmessagetable">
  4035. <short>Pointer to <link id="TStringMessageTable"/> record.</short>
  4036. </element>
  4037. <!-- pointer type Visibility: default -->
  4038. <element name="PGuid">
  4039. <short>Pointer to <link id="TGUID"/> type. </short>
  4040. </element>
  4041. <!-- record type Visibility: default -->
  4042. <element name="TGuid">
  4043. <short>Standard GUID representation type.</short>
  4044. </element>
  4045. <!-- pointer type Visibility: default -->
  4046. <element name="pinterfaceentry">
  4047. <short>Pointer to <link id="tinterfaceentry"/> record.</short>
  4048. </element>
  4049. <!-- record type Visibility: default -->
  4050. <element name="tinterfaceentry">
  4051. <short>Interfaces table entry.</short>
  4052. <descr>
  4053. <var>tinterfaceentry</var> is used to store the list of Interfaces of a
  4054. class. This list is stored as an array of <var>tinterfaceentry</var>
  4055. records.
  4056. </descr>
  4057. </element>
  4058. <!-- variable Visibility: default -->
  4059. <element name="tinterfaceentry.IID">
  4060. <short>Unique GUID for this interface.</short>
  4061. </element>
  4062. <!-- variable Visibility: default -->
  4063. <element name="tinterfaceentry.VTable">
  4064. <short>Pointer to interface VTable.</short>
  4065. </element>
  4066. <!-- variable Visibility: default -->
  4067. <element name="tinterfaceentry.IOffset">
  4068. <short>Offset</short>
  4069. </element>
  4070. <!-- variable Visibility: default -->
  4071. <element name="tinterfaceentry.IIDStr">
  4072. <short>Pointer to GUID string. Always assigned for COM.</short>
  4073. </element>
  4074. <!-- pointer type Visibility: default -->
  4075. <element name="pinterfacetable">
  4076. <short>Pointer to <link id="tinterfacetable"/> record.</short>
  4077. </element>
  4078. <!-- record type Visibility: default -->
  4079. <element name="tinterfacetable">
  4080. <short>Record to store list of interfaces of a class.</short>
  4081. </element>
  4082. <!-- variable Visibility: default -->
  4083. <element name="tinterfacetable.EntryCount">
  4084. <short>Number of interfaces.</short>
  4085. </element>
  4086. <!-- variable Visibility: default -->
  4087. <element name="tinterfacetable.Entries">
  4088. <short>Array of <link id="tinterfaceentry"/> records.</short>
  4089. </element>
  4090. <!-- object Visibility: default -->
  4091. <element name="TObject">
  4092. <short>Base class of all classes.</short>
  4093. <descr>
  4094. <var>TObject</var> is the parent root class for all classes in Object
  4095. Pascal. If a class has no parent class explicitly declared, it is dependent
  4096. on <var>TObject</var>. <var>TObject</var> introduces class methods that deal
  4097. with the class' type information, and contains all necessary methods to
  4098. create an instance at runtime, and to dispatch messages to the correct
  4099. method (both string and integer messages).
  4100. </descr>
  4101. <seealso>
  4102. <link id="TClass"/>
  4103. </seealso>
  4104. </element>
  4105. <!-- constructor Visibility: public -->
  4106. <element name="TObject.Create">
  4107. <short><var>TObject</var> Constructor</short>
  4108. <descr>
  4109. <var>Create</var> creates a new instance of <var>TObject</var>. Currently it
  4110. does nothing. It is also not virtual, so there is in principle no need to
  4111. call it directly.
  4112. </descr>
  4113. <seealso>
  4114. <link id="TObject.Destroy">Destroy</link>
  4115. </seealso>
  4116. </element>
  4117. <!-- destructor Visibility: public -->
  4118. <element name="TObject.Destroy">
  4119. <short><var>TObject</var> destructor.</short>
  4120. <descr>
  4121. <p>
  4122. <var>Destroy</var> is the destructor of <var>TObject</var>.
  4123. It will clean up the memory assigned to the instance. Descendent classes
  4124. should override destroy if they want to do additional clean-up. No other
  4125. destructor should be implemented.
  4126. </p>
  4127. <p>
  4128. It is bad programming practice to call <var>Destroy</var> directly. It is
  4129. better to call the <link id="TObject.Free">Free</link> method, because that
  4130. one will check first if <var>Self</var> is different from <var>Nil</var>.
  4131. </p>
  4132. <p>
  4133. To clean up an instance and reset the refence to the instance, it is best to
  4134. use the <link id="#rtl.sysutils.freeandnil">FreeAndNil</link> function.
  4135. </p>
  4136. </descr>
  4137. <seealso>
  4138. <link id="TObject.Create">Create</link>
  4139. <link id="TObject.Free">Free</link>
  4140. </seealso>
  4141. </element>
  4142. <!-- function Visibility: public -->
  4143. <element name="TObject.newinstance">
  4144. <short>Allocate memory on the heap for a new instance</short>
  4145. <descr>
  4146. <var>NewInstance</var> allocates memory on the heap for a new instance of
  4147. the current class. If the memory was allocated, the class will be
  4148. initialized by a call to <link id="TObject.InitInstance">InitInstance</link>.
  4149. The function returns the newly initialized instance.
  4150. </descr>
  4151. <errors>
  4152. If not enough memory is available, a <var>Nil</var> pointer may be returned,
  4153. or an exception may be raised.
  4154. </errors>
  4155. <seealso>
  4156. <link id="TObject.Create">Create</link>
  4157. <link id="TObject.InitInstance">InitInstance</link>
  4158. <link id="TObject.InstanceSize">InstanceSize</link>
  4159. <link id="TObject.FreeInstance">FreeInstance</link>
  4160. </seealso>
  4161. </element>
  4162. <!-- procedure Visibility: public -->
  4163. <element name="TObject.FreeInstance">
  4164. <short>Clean up instance and free the memory reserved for the instance.</short>
  4165. <descr>
  4166. <var>FreeInstance</var> cleans up an instance of the current class, and
  4167. releases the heap memory occupied by the class instance.
  4168. </descr>
  4169. <seealso>
  4170. <link id="TObject.Destroy">Destroy</link>
  4171. <link id="TObject.InitInstance">InitInstance</link>
  4172. <link id="TObject.NewInstance">NewInstance</link>
  4173. </seealso>
  4174. </element>
  4175. <!-- function Visibility: public -->
  4176. <element name="TObject.SafeCallException">
  4177. <short>Handle exception object</short>
  4178. <descr>
  4179. <var>SafeCallException</var> should be overridden to handle exceptions in a
  4180. method marked with the savecall directive. The implementation in
  4181. <var>TObject</var> simply returns zero.
  4182. </descr>
  4183. </element>
  4184. <!-- procedure Visibility: public -->
  4185. <element name="TObject.DefaultHandler">
  4186. <short>Default handler for integer message handlers.</short>
  4187. <descr>
  4188. <var>DefaultHandler</var> is the default handler for messages. If a message
  4189. has an unknown message ID (i.e. does not appear in the table with integer
  4190. message handlers), then it will be passed to
  4191. <var>DefaultHandler</var> by the <link id="TObject.Dispatch">Dispatch</link>
  4192. method.
  4193. </descr>
  4194. <errors>
  4195. </errors>
  4196. <seealso>
  4197. <link id="TObject.Dispatch">Dispatch</link>
  4198. <link id="TObject.DefaultHandlerStr">DefaultHandlerStr</link>
  4199. </seealso>
  4200. </element>
  4201. <!-- procedure Visibility: public -->
  4202. <element name="TObject.Free">
  4203. <short>Check for <var>Nil</var> and call destructor.</short>
  4204. <descr>
  4205. <var>Free</var> will check the <var>Self</var> pointer and calls
  4206. <link id="TObject.Destroy">Destroy</link> if it is different from
  4207. <var>Nil</var>. This is a safer method than calling <var>Destroy</var>
  4208. directly. If a reference to the object must be reset as well (a recommended
  4209. technque), then the function <link id="#rtl.sysutils.freeandnil">FreeAndNil</link> should be called.
  4210. </descr>
  4211. <errors>
  4212. None.
  4213. </errors>
  4214. <seealso>
  4215. <link id="TObject.Destroy">Destroy</link>
  4216. <link id="#rtl.sysutils.freeandnil">FreeAndNil</link>
  4217. </seealso>
  4218. </element>
  4219. <!-- function Visibility: public -->
  4220. <element name="TObject.InitInstance">
  4221. <short>Initialize a new class instance.</short>
  4222. <descr>
  4223. <var>InitInstance</var> initializes the memory pointer to by
  4224. <var>Instance</var>. This means that the VMT is initialized, and the
  4225. interface pointers are set up correctly.
  4226. The function returns the newly initialized instance.
  4227. </descr>
  4228. <seealso>
  4229. <link id="TObject.NewInstance">NewInstance</link>
  4230. <link id="TObject.Create">Create</link>
  4231. </seealso>
  4232. </element>
  4233. <!-- procedure Visibility: public -->
  4234. <element name="TObject.CleanupInstance">
  4235. <short>Finalize the class instance.</short>
  4236. <descr>
  4237. <p>
  4238. <var>CleanUpinstance</var> finalizes the instance, i.e. takes care of all
  4239. reference counted objects, by decreasing their reference count by 1, and
  4240. freeing them if their count reaches zero.
  4241. </p>
  4242. <p>
  4243. Normally, <var>CleanupInstance</var> should never be called, it is called
  4244. automatically when the object is freed with it's constructor.
  4245. </p>
  4246. </descr>
  4247. <errors>
  4248. None.
  4249. </errors>
  4250. <seealso>
  4251. <link id="TObject.Destroy">Destroy</link>
  4252. <link id="TObject.Free">Free</link>
  4253. <link id="TObject.InitInstance">InitInstance</link>
  4254. </seealso>
  4255. </element>
  4256. <!-- function Visibility: public -->
  4257. <element name="TObject.ClassInfo">
  4258. <short>Return a pointer to the type information for this class.</short>
  4259. <descr>
  4260. <var>ClassInfo</var> returns a pointer to the type information for this
  4261. class. This pointer can be used in the various type information routines.
  4262. </descr>
  4263. </element>
  4264. <!-- function Visibility: public -->
  4265. <element name="TObject.ClassType">
  4266. <short>Return a "class of" pointer for the current class</short>
  4267. <descr>
  4268. <var>ClassType</var> returns a <link id="TClass"/> class type reference for
  4269. the current class.
  4270. </descr>
  4271. <seealso>
  4272. <link id="TClass"/>
  4273. <link id="TObject.ClassInfo">ClassInfo</link>
  4274. <link id="TObject.ClassName">ClassName</link>
  4275. </seealso>
  4276. </element>
  4277. <!-- function Visibility: public -->
  4278. <element name="TObject.ClassName">
  4279. <short>Return the current class name.</short>
  4280. <descr>
  4281. <var>ClassName</var> returns the class name for the current class, in
  4282. all-uppercase letters. To check for the class name, use the <link
  4283. id="TObject.ClassNameIs">ClassNameIs</link> class method.
  4284. </descr>
  4285. <errors>
  4286. None.
  4287. </errors>
  4288. <seealso>
  4289. <link id="TObject.ClassInfo">ClassInfo</link>
  4290. <link id="TObject.ClassType">ClassType</link>
  4291. <link id="TObject.ClassNameIs">ClassNameIs</link>
  4292. </seealso>
  4293. </element>
  4294. <!-- function Visibility: public -->
  4295. <element name="TObject.ClassNameIs">
  4296. <short>Check whether the class name equals the given name.</short>
  4297. <descr>
  4298. <var>ClassNameIs</var> checks whether <var>Name</var> equals the class name.
  4299. It takes of case sensitivity, i.e. it converts both names to uppercase
  4300. before comparing.
  4301. </descr>
  4302. <seealso>
  4303. <link id="TObject.ClassInfo">ClassInfo</link>
  4304. <link id="TObject.ClassType">ClassType</link>
  4305. <link id="TObject.ClassName">ClassName</link>
  4306. </seealso>
  4307. </element>
  4308. <!-- function Visibility: public -->
  4309. <element name="TObject.ClassParent">
  4310. <short>Return the parent class.</short>
  4311. <descr>
  4312. <var>ClassParent</var> returns the class of the parent class of the current
  4313. class. This is always different from <var>Nil</var>, except for
  4314. <var>TObject</var>.
  4315. </descr>
  4316. <errors>
  4317. None.
  4318. </errors>
  4319. <seealso>
  4320. <link id="TObject.ClassInfo">ClassInfo</link>
  4321. <link id="TObject.ClassType">ClassType</link>
  4322. <link id="TObject.ClassName">ClassNameIs</link>
  4323. </seealso>
  4324. </element>
  4325. <!-- function Visibility: public -->
  4326. <element name="TObject.InstanceSize">
  4327. <short>Return the size of an instance.</short>
  4328. <descr>
  4329. <var>InstanceSize</var> returns the number of bytes an instance takes in
  4330. memory. This is Just the memory occupied by the class structure, and does
  4331. not take into account any additional memory that might be allocated by the
  4332. constructor of the class.
  4333. </descr>
  4334. <errors>
  4335. None.
  4336. </errors>
  4337. <seealso>
  4338. <link id="TObject.InitInstance">InitInstance</link>
  4339. <link id="TObject.ClassName">ClassName</link>
  4340. <link id="TObject.ClassInfo">ClassInfo</link>
  4341. <link id="TObject.ClassType">ClassType</link>
  4342. </seealso>
  4343. </element>
  4344. <!-- function Visibility: public -->
  4345. <element name="TObject.InheritsFrom">
  4346. <short>Chck wether class is an ancestor.</short>
  4347. <descr>
  4348. <var>InheritsFrom</var> returns <var>True</var> if <var>AClass</var> is an
  4349. ancestor class from the current class, and returns false if it is not.
  4350. </descr>
  4351. <errors>
  4352. </errors>
  4353. <seealso>
  4354. <link id="TObject.ClassName">ClassName</link>
  4355. <link id="TObject.ClassInfo">ClassInfo</link>
  4356. <link id="TObject.ClassType">ClassType</link>
  4357. <link id="TClass"/>
  4358. </seealso>
  4359. </element>
  4360. <!-- function Visibility: public -->
  4361. <element name="TObject.StringMessageTable">
  4362. <short>Return a pointer to the string message table.</short>
  4363. <descr>
  4364. <var>StringMessageTable</var> returns a pointer to the string message table,
  4365. which can be used to look up methods for dispatching a string message. It is
  4366. used by the <link id="TObject.DispatchStr">DispatchStr</link> method.
  4367. </descr>
  4368. <errors>
  4369. If there are no string message handlers, nil is returned.
  4370. </errors>
  4371. <seealso>
  4372. <link id="TObject.DispatchStr">DispatchStr</link>
  4373. <link id="TObject.Dispatch">Dispatch</link>
  4374. </seealso>
  4375. </element>
  4376. <!-- procedure Visibility: public -->
  4377. <element name="TObject.Dispatch">
  4378. <short>Dispatch an integer message</short>
  4379. <descr>
  4380. <p>
  4381. <var>Dispatch</var> looks in the message handler table for a handler that
  4382. handles <var>message</var>. The message is identified by the first dword
  4383. (cardinal) in the message structure.
  4384. </p>
  4385. <p>
  4386. If no matching message handler is found, the message is passed to the
  4387. <link id="TObject.DefaultHandler">DefaultHandler</link> method, which can be
  4388. overridden by descendent classes to add custom handling of messages.
  4389. </p>
  4390. </descr>
  4391. <seealso>
  4392. <link id="TObject.DispatchStr">DispatchStr</link>
  4393. <link id="TObject.DefaultHandler">DefaultHandler</link>
  4394. </seealso>
  4395. </element>
  4396. <!-- procedure Visibility: public -->
  4397. <element name="TObject.DispatchStr">
  4398. <short>Dispatch a string message.</short>
  4399. <descr>
  4400. <var>DispatchStr</var> extracts the message identifier from
  4401. <var>Message</var> and checks the message handler table to see if a handler
  4402. for the message is found, and calls the handler, passing along the message.
  4403. If no handler is found, the default <link id="TObject.DefaultHandlerStr">DefaultHandlerStr</link>
  4404. is called.
  4405. </descr>
  4406. <errors>
  4407. None.
  4408. </errors>
  4409. <seealso>
  4410. <link id="TObject.DefaultHandlerStr">DefaultHandlerStr</link>
  4411. <link id="TObject.Dispatch">Dispatch</link>
  4412. <link id="TObject.DefaultHandler">DefaultHandler</link>
  4413. </seealso>
  4414. </element>
  4415. <!-- function Visibility: public -->
  4416. <element name="TObject.MethodAddress">
  4417. <short>Return the address of a method</short>
  4418. <descr>
  4419. <var>MethodAddress</var> returns the address of a method, searching the
  4420. method by its name. The <var>Name</var> parameter specifies which method
  4421. should be taken. The search is conducted in a case-insensitive manner.
  4422. </descr>
  4423. <errors>
  4424. If no matching method is found, <var>Nil</var> is returned.
  4425. </errors>
  4426. <seealso>
  4427. <link id="TObject.MethodName">MethodName</link>
  4428. <link id="TObject.FieldAddress">FieldAddress</link>
  4429. </seealso>
  4430. </element>
  4431. <!-- function Visibility: public -->
  4432. <element name="TObject.MethodName">
  4433. <short>Return the name of a method.</short>
  4434. <descr>
  4435. <var>MethodName</var> searches the VMT for a method with the specified
  4436. <var>address</var> and returns the name of the method.
  4437. </descr>
  4438. <errors>
  4439. If no method with the matching address is found, an empty string is
  4440. returned.
  4441. </errors>
  4442. <seealso>
  4443. <link id="TObject.MethodAddress">MethodAddress</link>
  4444. <link id="TObject.FieldAddress">FieldAddress</link>
  4445. </seealso>
  4446. </element>
  4447. <!-- function Visibility: public -->
  4448. <element name="TObject.FieldAddress">
  4449. <short>Return the address of a field.</short>
  4450. <descr>
  4451. <var>FieldAddress</var> returns the address of the field with name <var>name</var>.
  4452. The address is the address of the field in the current class instance.
  4453. </descr>
  4454. <errors>
  4455. If no field with the specified name is found, <var>Nil</var> is returned.
  4456. </errors>
  4457. <seealso>
  4458. <link id="TObject.MethodAddress">MethodAddress</link>
  4459. <link id="TObject.MethodName">MethodName</link>
  4460. </seealso>
  4461. </element>
  4462. <!-- procedure Visibility: public -->
  4463. <element name="TObject.AfterConstruction">
  4464. <short>Method called after the constructor was called.</short>
  4465. <descr>
  4466. <var>AfterConstruction</var> is a method called after the constructor was
  4467. called. It does nothing in the implementation of <var>TObject</var> and must
  4468. be overridden by descendent classes to provide specific behaviour that is
  4469. executed after the constructor has finished executing. (for instance, call
  4470. an event handler)
  4471. </descr>
  4472. <errors>
  4473. None.
  4474. </errors>
  4475. <seealso>
  4476. <link id="TObject.BeforeDestruction">BeforeDestruction</link>
  4477. <link id="TObject.Create">Create</link>
  4478. </seealso>
  4479. </element>
  4480. <!-- procedure Visibility: public -->
  4481. <element name="TObject.BeforeDestruction">
  4482. <short>Method called before the destructor is called.</short>
  4483. <descr>
  4484. <var>BeforeDestruction</var> is a method called before the destructor is
  4485. called. It does nothing in the implementation of <var>TObject</var> and must
  4486. be overridden by descendent classes to provide specific behaviour that is
  4487. executed before the destructor has finished executing. (for instance, call
  4488. an event handler)
  4489. </descr>
  4490. <errors>
  4491. None.
  4492. </errors>
  4493. <seealso>
  4494. <link id="TObject.AfterConstruction">AfterConstruction</link>
  4495. <link id="TObject.Destroy">Destroy</link>
  4496. <link id="TObject.Free">Free</link>
  4497. </seealso>
  4498. </element>
  4499. <!-- procedure Visibility: public -->
  4500. <element name="TObject.DefaultHandlerStr">
  4501. <short>Default handler for string messages.</short>
  4502. <descr>
  4503. <var>DefaultHandlerStr</var> is called for string messages which have no
  4504. handler associated with them in the string message handler table. The
  4505. implementation of <var>DefaultHandlerStr</var> in <var>TObject</var> does
  4506. nothing and mut be overridden by descendent classes to provide specific
  4507. message handling behaviour.
  4508. </descr>
  4509. <seealso>
  4510. <link id="TObject.DispatchStr">DispatchStr</link>
  4511. <link id="TObject.Dispatch">Dispatch</link>
  4512. <link id="TObject.DefaultHandler">DefaultHandler</link>
  4513. </seealso>
  4514. </element>
  4515. <!-- procedure type Visibility: default -->
  4516. <element name="TExceptProc">
  4517. <short>Exception handler procedural type</short>
  4518. </element>
  4519. <!-- pointer type Visibility: default -->
  4520. <element name="PExceptObject">
  4521. <short>Pointer to Exception handler procedural type <link id="TExceptProc"/></short>
  4522. <descr>
  4523. </descr>
  4524. <seealso>
  4525. </seealso>
  4526. </element>
  4527. <!-- record type Visibility: default -->
  4528. <element name="TExceptObject">
  4529. <short>Exception object</short>
  4530. <descr>
  4531. <var>TExceptObject</var> is the exception description record which is found
  4532. on the exception stack.
  4533. </descr>
  4534. </element>
  4535. <!-- variable Visibility: default -->
  4536. <element name="TExceptObject.FObject">
  4537. <short>Exception instance.</short>
  4538. </element>
  4539. <!-- variable Visibility: default -->
  4540. <element name="TExceptObject.Addr">
  4541. <short>Address where exception occurred</short>
  4542. </element>
  4543. <!-- variable Visibility: default -->
  4544. <element name="TExceptObject.Frame">
  4545. <short>Exception frame where exception occurred</short>
  4546. </element>
  4547. <!-- variable Visibility: default -->
  4548. <element name="TExceptObject.Next">
  4549. <short>Next exception object on the stack.</short>
  4550. </element>
  4551. <!-- variable Visibility: default -->
  4552. <element name="TExceptObject.refcount">
  4553. <short>Reference count for this exception object</short>
  4554. </element>
  4555. <!-- constant Visibility: default -->
  4556. <element name="ExceptProc">
  4557. <short>Current exception handling procedure.</short>
  4558. <descr>
  4559. <p>
  4560. This constant points to the current exception handling procedure.
  4561. This routine is called when an unhandled exception occurs, i.e. an exception
  4562. that is not stopped by a except block.
  4563. </p>
  4564. <p>
  4565. If the handler is not set, the RTL will emit a run-time error 217 when an
  4566. unhandler exception occurs.
  4567. </p>
  4568. <p>
  4569. It is set by the <link id="#rtl.sysutils">sysutils</link> unit.
  4570. </p>
  4571. </descr>
  4572. </element>
  4573. <!-- constant Visibility: default -->
  4574. <element name="RaiseProc">
  4575. <short>Procedure to raise an exception.</short>
  4576. </element>
  4577. <!-- function Visibility: default -->
  4578. <element name="RaiseList">
  4579. <short>List of currently raised exceptions.</short>
  4580. <descr>
  4581. <var>RaiseList</var> returns a pointer to the list of currently raised
  4582. exceptions (i.e. a pointer to the first exception block.
  4583. </descr>
  4584. <errors>
  4585. </errors>
  4586. <seealso>
  4587. </seealso>
  4588. </element>
  4589. <!-- function Visibility: default -->
  4590. <element name="AcquireExceptionObject">
  4591. <short>Obtain a reference to the current exception object</short>
  4592. <descr>
  4593. <p>
  4594. <var>AcquireExceptionObject</var> returns the current exception object.
  4595. It raises the reference count of the exception object, so it will not be
  4596. freed. Calling this method is only valid within an except block.
  4597. </p>
  4598. <p>
  4599. The effect of this function is countered by re-raising an exception
  4600. via <var>raise;</var>
  4601. </p>
  4602. <p>
  4603. To make sure that the exception object is released when it is no longer
  4604. needed, <link id="ReleaseExceptionObject"/> must be called when the
  4605. reference is no longer needed.
  4606. </p>
  4607. </descr>
  4608. <errors>
  4609. If there is no current exception, a run-time error 231 will occur.
  4610. </errors>
  4611. <seealso>
  4612. <link id="ReleaseExceptionObject"/>
  4613. </seealso>
  4614. </element>
  4615. <!-- procedure Visibility: default -->
  4616. <element name="ReleaseExceptionObject">
  4617. <short>Decrease the reference count of the current exception object.</short>
  4618. <descr>
  4619. <p>
  4620. <var>ReleaseExceptionObject</var> decreases the reference count of the
  4621. current exception object. This should be called whenever a reference to the
  4622. exception object was obtained via the <link id="AcquireExceptionObject"/>
  4623. call.
  4624. </p>
  4625. <p>
  4626. Calling this method is only valid within an except block.
  4627. </p>
  4628. </descr>
  4629. <errors>
  4630. If there is no current exception object, a run-time error 231 will occur.
  4631. </errors>
  4632. <seealso>
  4633. <link id="AcquireExceptionObject"/>
  4634. </seealso>
  4635. </element>
  4636. <!-- constant Visibility: default -->
  4637. <element name="vtInteger">
  4638. <short>TVarRec type: Integer</short>
  4639. </element>
  4640. <!-- constant Visibility: default -->
  4641. <element name="vtBoolean">
  4642. <short>TVarRec type: Boolean</short>
  4643. </element>
  4644. <!-- constant Visibility: default -->
  4645. <element name="vtChar">
  4646. <short>TVarRec type: Char</short>
  4647. </element>
  4648. <!-- constant Visibility: default -->
  4649. <element name="vtExtended">
  4650. <short>TVarRec type: Extended</short>
  4651. </element>
  4652. <!-- constant Visibility: default -->
  4653. <element name="vtString">
  4654. <short>TVarRec type: String</short>
  4655. </element>
  4656. <!-- constant Visibility: default -->
  4657. <element name="vtPointer">
  4658. <short>TVarRec type: pointer</short>
  4659. </element>
  4660. <!-- constant Visibility: default -->
  4661. <element name="vtPChar">
  4662. <short>TVarRec type: PChar</short>
  4663. </element>
  4664. <!-- constant Visibility: default -->
  4665. <element name="vtObject">
  4666. <short>TVarRec type: Object instance</short>
  4667. </element>
  4668. <!-- constant Visibility: default -->
  4669. <element name="vtClass">
  4670. <short>TVarRec type: Class type</short>
  4671. </element>
  4672. <!-- constant Visibility: default -->
  4673. <element name="vtWideChar">
  4674. <short>TVarRec type: Widechar</short>
  4675. </element>
  4676. <!-- constant Visibility: default -->
  4677. <element name="vtPWideChar">
  4678. <short>TVarRec type: PWideChar</short>
  4679. </element>
  4680. <!-- constant Visibility: default -->
  4681. <element name="vtAnsiString">
  4682. <short>TVarRec type: Ansistring</short>
  4683. </element>
  4684. <!-- constant Visibility: default -->
  4685. <element name="vtCurrency">
  4686. <short>TVarRec type: Currency</short>
  4687. </element>
  4688. <!-- constant Visibility: default -->
  4689. <element name="vtVariant">
  4690. <short>TVarRec type: Variant</short>
  4691. </element>
  4692. <!-- constant Visibility: default -->
  4693. <element name="vtInterface">
  4694. <short>TVarRec type: Interface</short>
  4695. </element>
  4696. <!-- constant Visibility: default -->
  4697. <element name="vtWideString">
  4698. <short>TVarRec type: WideString</short>
  4699. </element>
  4700. <!-- constant Visibility: default -->
  4701. <element name="vtInt64">
  4702. <short>TVarRec type: Int64 (signed 64-bit integer)</short>
  4703. </element>
  4704. <!-- constant Visibility: default -->
  4705. <element name="vtQWord">
  4706. <short>TVarRec type: QWord (unsigned 64-bit integer)</short>
  4707. </element>
  4708. <!-- pointer type Visibility: default -->
  4709. <element name="PVarRec">
  4710. <short>Pointer to <link id="TVarRec"/> type.</short>
  4711. </element>
  4712. <!-- record type Visibility: default -->
  4713. <element name="TVarRec">
  4714. <short>Record describing an element in an array of const</short>
  4715. <descr>
  4716. <var>TVarRec</var> is a record generated by the compiler for each element in
  4717. a <var>array of const</var> call. The procedure that receives the constant
  4718. array receives an array of <var>TVarRec</var> elements, with lower bound zero
  4719. and high bound equal to the number of elements in the array minus one
  4720. (as returned by <var>High(Args)</var>)
  4721. </descr>
  4722. <seealso>
  4723. </seealso>
  4724. </element>
  4725. <!-- alias type Visibility: default -->
  4726. <element name="tdynarrayindex">
  4727. <short>Type with the correct size for index into a dynamic array.</short>
  4728. <descr>
  4729. A variable of type <var>tdynarrayindex</var> will always have the correct
  4730. size, suitable for serving as an index in a dynamic array.
  4731. </descr>
  4732. </element>
  4733. <!-- pointer type Visibility: default -->
  4734. <element name="pdynarrayindex">
  4735. <short>Pointer to <link id="tdynarrayindex"/> type.</short>
  4736. </element>
  4737. <!-- array type Visibility: default -->
  4738. <element name="fpc_big_chararray" skip="1">
  4739. <short>Array of char.</short>
  4740. <descr>
  4741. </descr>
  4742. <seealso>
  4743. </seealso>
  4744. </element>
  4745. <!-- alias type Visibility: default -->
  4746. <element name="fpc_small_set" skip="1">
  4747. <short>Type with the size of a small set</short>
  4748. </element>
  4749. <!-- array type Visibility: default -->
  4750. <element name="fpc_normal_set" skip="1">
  4751. <short>Type with the size of a normal set</short>
  4752. </element>
  4753. <!-- pointer type Visibility: default -->
  4754. <element name="PMemoryManager">
  4755. <short>Pointer to <link id="TMemoryManager"/> record</short>
  4756. </element>
  4757. <!-- record type Visibility: default -->
  4758. <element name="TMemoryManager">
  4759. <short>Record describing the current memory manager</short>
  4760. <descr>
  4761. <var>TMemoryManager</var> describes the memory manager. For more information
  4762. about the memory manager, see the programmer's reference.
  4763. </descr>
  4764. </element>
  4765. <!-- variable Visibility: default -->
  4766. <element name="TMemoryManager.NeedLock">
  4767. <short>Does the memory manager require a lock</short>
  4768. </element>
  4769. <!-- variable Visibility: default -->
  4770. <element name="TMemoryManager.Getmem">
  4771. <short>Function called when memory must be allocated on the heap.</short>
  4772. </element>
  4773. <!-- variable Visibility: default -->
  4774. <element name="TMemoryManager.Freemem">
  4775. <short>Function called when previously allocated memory can be freed again.</short>
  4776. </element>
  4777. <!-- variable Visibility: default -->
  4778. <element name="TMemoryManager.FreememSize">
  4779. <short>Function called when previously allocated memory with a known size can be freed again.</short>
  4780. </element>
  4781. <!-- variable Visibility: default -->
  4782. <element name="TMemoryManager.AllocMem">
  4783. <short>Same as getmem.</short>
  4784. </element>
  4785. <!-- variable Visibility: default -->
  4786. <element name="TMemoryManager.ReAllocMem">
  4787. <short>Handler called when an allocated memory block should be resized</short>
  4788. </element>
  4789. <!-- variable Visibility: default -->
  4790. <element name="TMemoryManager.MemSize">
  4791. <short>Return the size of a memory block.</short>
  4792. </element>
  4793. <!-- variable Visibility: default -->
  4794. <element name="TMemoryManager.GetHeapStatus">
  4795. <short>Handler called when the heap status must be reported.</short>
  4796. </element>
  4797. <element name="GetHeapStatus">
  4798. <short>Return the memory manager heap status.</short>
  4799. </element>
  4800. <!-- record type Visibility: default -->
  4801. <element name="TMemoryMutexManager">
  4802. <short>Record describing the mutex manager for the heap.</short>
  4803. <descr>
  4804. When the heapmanager needs a lock, then the mutex manager is used to handle
  4805. the lock.
  4806. </descr>
  4807. </element>
  4808. <!-- variable Visibility: default -->
  4809. <element name="TMemoryMutexManager.MutexInit">
  4810. <short>Initialize the mutex</short>
  4811. </element>
  4812. <!-- variable Visibility: default -->
  4813. <element name="TMemoryMutexManager.MutexDone">
  4814. <short>Finalize (i.e. dispose of) the mutex.</short>
  4815. </element>
  4816. <!-- variable Visibility: default -->
  4817. <element name="TMemoryMutexManager.MutexLock">
  4818. <short>Lock the mutex</short>
  4819. </element>
  4820. <!-- variable Visibility: default -->
  4821. <element name="TMemoryMutexManager.MutexUnlock">
  4822. <short>Unlock the mutex.</short>
  4823. </element>
  4824. <!-- procedure Visibility: default -->
  4825. <element name="SetMemoryMutexManager">
  4826. <short>Procedure to set the mutex manager.</short>
  4827. <descr>
  4828. <var>SetMemoryMutexManager</var> sets the mutex manager used by the memory
  4829. manager to <var>MutexMgr</var>. The current mutex manager is returned in
  4830. <var>MutexMgr</var>
  4831. </descr>
  4832. <errors>
  4833. None.
  4834. </errors>
  4835. <seealso>
  4836. <link id="TMemoryMutexManager"/>
  4837. <link id="SetMemoryManager"/>
  4838. </seealso>
  4839. </element>
  4840. <!-- constant Visibility: default -->
  4841. <element name="growheapsizesmall">
  4842. <short>Fixed size small blocks grow rate</short>
  4843. </element>
  4844. <!-- constant Visibility: default -->
  4845. <element name="growheapsize1">
  4846. <short>Grow rate for block less than 256 Kb.</short>
  4847. </element>
  4848. <!-- constant Visibility: default -->
  4849. <element name="growheapsize2">
  4850. <short>Grow rate for block larger than 256 Kb.</short>
  4851. </element>
  4852. <!-- variable Visibility: default -->
  4853. <element name="ReturnNilIfGrowHeapFails">
  4854. <short>Describe behaviour if getmem fails.</short>
  4855. <descr>
  4856. <var>ReturnNilIfGrowHeapFails</var> describes what happens if there is no
  4857. more memory available from the operating system. if set to <var>True</var>
  4858. the memory manager will return <var>Nil</var>. If set to <var>False</var>
  4859. then a run-time error will occur.
  4860. </descr>
  4861. </element>
  4862. <!-- function Visibility: default -->
  4863. <element name="SysGetmem">
  4864. <short>System memory manager memory allocator.</short>
  4865. <descr>
  4866. <var>SysGetmem</var> is the system memory manager implementation for <link
  4867. id="GetMem"/>
  4868. </descr>
  4869. <seealso>
  4870. <link id="GetMem"/>
  4871. <link id="GetMemory"/>
  4872. </seealso>
  4873. </element>
  4874. <!-- function Visibility: default -->
  4875. <element name="SysFreemem">
  4876. <short>System memory manager free routine.</short>
  4877. <descr>
  4878. <var>SysFreeem</var> is the system memory manager implementation for <link id="FreeMem"/>
  4879. </descr>
  4880. <seealso>
  4881. <link id="FreeMem"/>
  4882. </seealso>
  4883. </element>
  4884. <!-- function Visibility: default -->
  4885. <element name="SysFreememSize">
  4886. <short>System memory manager free routine.</short>
  4887. <descr>
  4888. <var>SysFreemSize</var> is the system memory manager implementation for <link
  4889. id="FreeMem"/>
  4890. </descr>
  4891. <seealso>
  4892. <link id="MemSize"/>
  4893. </seealso>
  4894. </element>
  4895. <!-- function Visibility: default -->
  4896. <element name="SysMemSize">
  4897. <short>System memory manager: free size.</short>
  4898. <descr>
  4899. <var>SysFreemSize</var> is the system memory manager implementation for
  4900. <link id="MemSize"/>
  4901. </descr>
  4902. <seealso>
  4903. <link id="MemSize"/>
  4904. </seealso>
  4905. </element>
  4906. <!-- function Visibility: default -->
  4907. <element name="SysAllocMem">
  4908. <short>System memory manager: Allocate memory</short>
  4909. <descr>
  4910. <var>SysFreemSize</var> is the system memory manager implementation for
  4911. <link id="AllocMem"/>
  4912. </descr>
  4913. <seealso>
  4914. <link id="AllocMem"/>
  4915. </seealso>
  4916. </element>
  4917. <!-- function Visibility: default -->
  4918. <element name="SysTryResizeMem">
  4919. <short>System memory manager: attempt to resize memory.</short>
  4920. <descr>
  4921. <var>SysTryResizeMem</var> is a help routine for the system memory
  4922. manager implementation for <link id="ReAllocMem"/>, <link
  4923. id="SysReAllocMem"/>
  4924. </descr>
  4925. <seealso>
  4926. <link id="SysReAllocMem"/>
  4927. <link id="ReAllocMem"/>
  4928. </seealso>
  4929. </element>
  4930. <!-- function Visibility: default -->
  4931. <element name="SysReAllocMem">
  4932. <short>System memory manager: Reallocate memory</short>
  4933. <descr>
  4934. <var>SysReallocMem</var> is a help routine for the system memory
  4935. manager implementation for <link id="ReAllocMem"/>.
  4936. </descr>
  4937. <seealso>
  4938. <link id="ReAllocMem"/>
  4939. </seealso>
  4940. </element>
  4941. <!-- procedure Visibility: default -->
  4942. <element name="Getmemory">
  4943. <short>Alias for <link id="GetMem"/></short>
  4944. <descr>
  4945. <var>Getmemory</var> is an alias for <link id="GetMem"/>.
  4946. </descr>
  4947. <seealso>
  4948. <link id="GetMem"/>
  4949. </seealso>
  4950. </element>
  4951. <!-- procedure Visibility: default -->
  4952. <element name="Freememory">
  4953. <short>Alias for <link id="FreeMem"/></short>
  4954. <descr>
  4955. <var>FreeMemory</var> is an alias for <link id="FreeMem"/>.
  4956. </descr>
  4957. <seealso>
  4958. <link id="FreeMem"/>
  4959. </seealso>
  4960. </element>
  4961. <!-- function Visibility: default -->
  4962. <element name="MemSize">
  4963. <short>Return the size of a memory block.</short>
  4964. <descr>
  4965. <var>MemSize</var> returns the size of a memory block on the heap.
  4966. </descr>
  4967. <errors>
  4968. Passing an invalid pointer may lead to run-time errors (access violations).
  4969. </errors>
  4970. <seealso>
  4971. <link id="GetMem"/>
  4972. <link id="FreeMem"/>
  4973. </seealso>
  4974. </element>
  4975. <element name="AllocMem">
  4976. <short>Alias for <link id="GetMem"/></short>
  4977. <descr>
  4978. <var>AllocMem</var> is an alias for <link id="GetMem"/>.
  4979. </descr>
  4980. <seealso>
  4981. <link id="GetMem"/>
  4982. </seealso>
  4983. </element>
  4984. <!-- function Visibility: default -->
  4985. <element name="ReAllocMem">
  4986. <short>Re-allocate memory on the heap</short>
  4987. <descr>
  4988. <p>
  4989. <var>ReAllocMem</var> resizes the memory pointed to by <var>P</var> so it has size
  4990. <var>Size</var>. The value of <var>P</var> may change during this operation.
  4991. The contents of the memory pointed to by <var>P</var> (if any) will be copied to
  4992. the new location, but may be truncated if the newly allocated memory block
  4993. is smaller in size. If a larger block is allocated, only the used memory is
  4994. initialized, extra memory will not be zeroed out.
  4995. </p>
  4996. <p>
  4997. Note that <var>P</var> may be nil, in that case the behaviour of
  4998. <var>ReAllocMem</var> is equivalent to <var>Getmem</var>.
  4999. </p>
  5000. </descr>
  5001. <seealso>
  5002. <link id="GetMem"/>
  5003. <link id="FreeMem"/>
  5004. </seealso>
  5005. </element>
  5006. <!-- function Visibility: default -->
  5007. <element name="ReAllocMemory">
  5008. <short>Alias for <link id="ReAllocMem"/></short>
  5009. <descr>
  5010. <var>ReAllocMemory</var> is an alias for <link id="ReAllocMem"/>.
  5011. </descr>
  5012. <seealso>
  5013. <link id="ReAllocMem"/>
  5014. </seealso>
  5015. </element>
  5016. <!-- procedure Visibility: default -->
  5017. <element name="AsmGetmem">
  5018. <short>Routine that can be called from assembler routines to get memory.</short>
  5019. <descr>
  5020. <var>AsmGetmem</var> is a routine that can be called from assembler code to
  5021. get memory. The assembler reader cannot decide which overloaded <link
  5022. id="GetMem"/> call should be used. <var>AsmGetMem</var> provides a unique
  5023. name that can be called from assembler. Other than that it is completely
  5024. equivalent to <var>GetMem</var>.
  5025. </descr>
  5026. <seealso>
  5027. <link id="GetMem"/>
  5028. <link id="AsmFreeMem"/>
  5029. </seealso>
  5030. </element>
  5031. <!-- procedure Visibility: default -->
  5032. <element name="AsmFreemem">
  5033. <short>Routine that can be called from assembler routines to release memory.</short>
  5034. <descr>
  5035. <var>AsmFreemem</var> is a routine that can be called from assembler code to
  5036. release previously alocated memory. The assembler reader cannot decide which
  5037. overloaded <link id="FreeMem"/> call should be used. <var>AsmFreeMem</var>
  5038. provides a unique name that can be called from assembler. Other than that it
  5039. is completely equivalent to <var>FreeMem</var>.
  5040. </descr>
  5041. <seealso>
  5042. <link id="FreeMem"/>
  5043. <link id="AsmGetMem"/>
  5044. </seealso>
  5045. </element>
  5046. <!-- alias type Visibility: default -->
  5047. <element name="THandle">
  5048. <short>Type alias.</short>
  5049. <descr>
  5050. This type should be considered opaque. It is used to describe file and other
  5051. handles.
  5052. </descr>
  5053. </element>
  5054. <!-- constant Visibility: default -->
  5055. <element name="LineEnding">
  5056. <short>Constant describing the current line ending character.</short>
  5057. <descr>
  5058. <p>
  5059. <var>LineEnding</var> is a constant which contains the current line-ending
  5060. character. This character is system dependent, and is initialized by the
  5061. system. It should not be set.
  5062. </p>
  5063. <p>
  5064. This constant is part of a set of constants that describe the OS
  5065. characteristics. These constants should be used instead of hardcoding
  5066. OS characteristics.
  5067. </p>
  5068. </descr>
  5069. <seealso>
  5070. <link id="DriveSeparator"/>
  5071. <link id="DirectorySeparator"/>
  5072. <link id="LFNSupport"/>
  5073. <link id="PathSeparator"/>
  5074. <link id="sLineBreak"/>
  5075. <link id="FileNameCaseSensitive"/>
  5076. <link id="DefaultTextLineBreakStyle"/>
  5077. </seealso>
  5078. </element>
  5079. <!-- constant Visibility: default -->
  5080. <element name="LFNSupport">
  5081. <short>COnstant describing support for long filenames.</short>
  5082. <descr>
  5083. <p>
  5084. <var>LFNSupport</var> determines whether the current OS supports long file
  5085. names, i.e. filenames that are not of the form 8.3 as on ancient DOS
  5086. systems. If the value of this constant is <var>True</var> then long
  5087. filenames are supported. If it is false, then not.
  5088. </p>
  5089. <p>
  5090. This constant is part of a set of constants that describe the OS
  5091. characteristics. These constants should be used instead of hardcoding
  5092. OS characteristics.
  5093. </p>
  5094. </descr>
  5095. <link id="DriveSeparator"/>
  5096. <link id="DirectorySeparator"/>
  5097. <link id="LineEnding"/>
  5098. <link id="PathSeparator"/>
  5099. <link id="FileNameCaseSensitive"/>
  5100. <link id="DefaultTextLineBreakStyle"/>
  5101. </element>
  5102. <!-- constant Visibility: default -->
  5103. <element name="DirectorySeparator">
  5104. <short>Character used to separate directory parts.</short>
  5105. <descr>
  5106. <p>
  5107. <var>DirectorySeparator</var> is the character used by the current operating
  5108. system to separate directory parts in a pathname. This constant is system
  5109. dependent, and should not be set.
  5110. </p>
  5111. <p>
  5112. This constant is part of a set of constants that describe the OS
  5113. characteristics. These constants should be used instead of hardcoding
  5114. OS characteristics.
  5115. </p>
  5116. </descr>
  5117. <seealso>
  5118. <link id="DriveSeparator"/>
  5119. <link id="LineEnding"/>
  5120. <link id="LFNSupport"/>
  5121. <link id="PathSeparator"/>
  5122. <link id="FileNameCaseSensitive"/>
  5123. <link id="DefaultTextLineBreakStyle"/>
  5124. </seealso>
  5125. </element>
  5126. <!-- constant Visibility: default -->
  5127. <element name="DriveSeparator">
  5128. <short>Character used to separate directory parts.</short>
  5129. <descr>
  5130. <p>
  5131. On systems that support driveletters, the <var>DriveSeparator</var> constant
  5132. denotes the character that separates the drive indicator from the directory
  5133. part in a filename path.
  5134. </p>
  5135. <p>
  5136. This constant is part of a set of constants that describe the OS
  5137. characteristics. These constants should be used instead of hardcoding
  5138. OS characteristics.
  5139. </p>
  5140. </descr>
  5141. <seealso>
  5142. <link id="DirectorySeparator"/>
  5143. <link id="LineEnding"/>
  5144. <link id="LFNSupport"/>
  5145. <link id="PathSeparator"/>
  5146. <link id="FileNameCaseSensitive"/>
  5147. <link id="DefaultTextLineBreakStyle"/>
  5148. </seealso>
  5149. </element>
  5150. <!-- constant Visibility: default -->
  5151. <element name="PathSeparator">
  5152. <short>Character used to separate paths in a search list</short>
  5153. <descr>
  5154. <p>
  5155. <var>PathSeparator</var> is the character used commonly on the current
  5156. operating system to separate paths in a list of paths, such as the
  5157. <var>PATH</var> environment variable.
  5158. </p>
  5159. <p>
  5160. This constant is part of a set of constants that describe the OS
  5161. characteristics. These constants should be used instead of hardcoding
  5162. OS characteristics.
  5163. </p>
  5164. </descr>
  5165. <seealso>
  5166. <link id="DirectorySeparator"/>
  5167. <link id="LineEnding"/>
  5168. <link id="LFNSupport"/>
  5169. <link id="DriveSeparator"/>
  5170. <link id="FileNameCaseSensitive"/>
  5171. <link id="DefaultTextLineBreakStyle"/>
  5172. </seealso>
  5173. </element>
  5174. <!-- constant Visibility: default -->
  5175. <element name="FileNameCaseSensitive">
  5176. <short>OS treatment of filenames is case sensitive.</short>
  5177. <descr>
  5178. <p>
  5179. <var>FileNameCaseSensitive</var> is <var>True</var> if case is important
  5180. when using filenames on the current OS. In this case, the OS will treat
  5181. files with different cased names as different files. Note that this may
  5182. depend on the filesystem: Unix operating systems that access a DOS or
  5183. Windows partition will have this constant set to true, but when writing to
  5184. the DOS partition, the casing is ignored.
  5185. </p>
  5186. <p>
  5187. This constant is part of a set of constants that describe the OS
  5188. characteristics. These constants should be used instead of hardcoding
  5189. OS characteristics.
  5190. </p>
  5191. </descr>
  5192. <seealso>
  5193. <link id="DriveSeparator"/>
  5194. <link id="DirectorySeparator"/>
  5195. <link id="LineEnding"/>
  5196. <link id="LFNSupport"/>
  5197. <link id="PathSeparator"/>
  5198. <link id="FileNameCaseSensitive"/>
  5199. <link id="DefaultTextLineBreakStyle"/>
  5200. </seealso>
  5201. </element>
  5202. <!-- constant Visibility: default -->
  5203. <element name="sLineBreak">
  5204. <short>Alias for <link id="LineEnding"/></short>
  5205. <descr>
  5206. <p>
  5207. <var>sLineBreak</var> is an alias for <link id="LineEnding"/> and is
  5208. supplied for Delphi compatibility.
  5209. </p>
  5210. <p>
  5211. This constant is part of a set of constants that describe the OS
  5212. characteristics. These constants should be used instead of hardcoding
  5213. OS characteristics.
  5214. </p>
  5215. </descr>
  5216. <seealso>
  5217. <link id="DriveSeparator"/>
  5218. <link id="DirectorySeparator"/>
  5219. <link id="LineEnding"/>
  5220. <link id="LFNSupport"/>
  5221. <link id="PathSeparator"/>
  5222. <link id="FileNameCaseSensitive"/>
  5223. <link id="DefaultTextLineBreakStyle"/>
  5224. </seealso>
  5225. </element>
  5226. <!-- constant Visibility: default -->
  5227. <element name="DefaultTextLineBreakStyle">
  5228. <short>Default line ending style.</short>
  5229. <descr>
  5230. <p>
  5231. <var>DefaultTextLineBreakStyle</var> contains the default OS setting for the
  5232. <link id="TTextLineBreakStyle"/> type. It is initizliaed by the system unit,
  5233. and is used to determine the default line ending when writing to text files.
  5234. </p>
  5235. <p>
  5236. This constant is part of a set of constants that describe the OS
  5237. characteristics. These constants should be used instead of hardcoding
  5238. OS characteristics.
  5239. </p>
  5240. </descr>
  5241. <seealso>
  5242. <link id="SetTextLineEnding"/>
  5243. <link id="TTextLineBreakStyle"/>
  5244. <link id="DriveSeparator"/>
  5245. <link id="DirectorySeparator"/>
  5246. <link id="LineEnding"/>
  5247. <link id="LFNSupport"/>
  5248. <link id="PathSeparator"/>
  5249. <link id="FileNameCaseSensitive"/>
  5250. </seealso>
  5251. </element>
  5252. <!-- constant Visibility: default -->
  5253. <element name="maxExitCode">
  5254. <short>Maximum exit code supported by the operating system.</short>
  5255. <descr>
  5256. <var>maxExitCode</var> is the maximum value for the <link id="Halt"/> call.
  5257. </descr>
  5258. <seealso>
  5259. <link id="Halt"/>
  5260. </seealso>
  5261. </element>
  5262. <!-- constant Visibility: default -->
  5263. <element name="UnusedHandle">
  5264. <short>Value indicating an unused file handle (as reported by the OS).</short>
  5265. </element>
  5266. <!-- constant Visibility: default -->
  5267. <element name="StdInputHandle">
  5268. <short>Value of the OS handle for the standard input file.</short>
  5269. </element>
  5270. <!-- constant Visibility: default -->
  5271. <element name="StdOutputHandle">
  5272. <short>Value of the OS handle for the standard output file.</short>
  5273. </element>
  5274. <!-- constant Visibility: default -->
  5275. <element name="StdErrorHandle">
  5276. <short>Value of the OS handle for the standard error-output file.</short>
  5277. </element>
  5278. <!-- variable Visibility: default -->
  5279. <element name="argc" skip="1">
  5280. <short>Number of command-line arguments.</short>
  5281. <descr>
  5282. <var>argc</var> contains the number of command-line arguments passed to
  5283. the program by the OS. It is not available on all systems.
  5284. </descr>
  5285. <seealso>
  5286. <link id="argv"/>
  5287. <link id="envp"/>
  5288. </seealso>
  5289. </element>
  5290. <!-- variable Visibility: default -->
  5291. <element name="argv">
  5292. <short>Pointer to the array of command-line arguments</short>
  5293. <descr>
  5294. <var>argp</var> contains a pointer to a <var>nil</var>-terminated
  5295. array of null-terminated strings, containing the command-line
  5296. arguments passed to the program by the OS. It is not available
  5297. on all systems.
  5298. </descr>
  5299. <seealso>
  5300. <link id="argc"/>
  5301. <link id="envp"/>
  5302. </seealso>
  5303. </element>
  5304. <!-- variable Visibility: default -->
  5305. <element name="envp">
  5306. <short>Pointer to the array of environment variables</short>
  5307. <descr>
  5308. <var>envp</var> contains a pointer to a <var>nil</var>-terminated
  5309. array of null-terminated strings, containing the environment variables
  5310. passed to the program by the OS. It is not available on all systems.
  5311. </descr>
  5312. <seealso>
  5313. <link id="argc"/>
  5314. <link id="argv"/>
  5315. </seealso>
  5316. </element>
  5317. <!-- alias type Visibility: default -->
  5318. <element name="SizeInt">
  5319. <short>Signed integer type which fits for sizes</short>
  5320. <seealso>
  5321. <link id="SizeUInt"/>
  5322. </seealso>
  5323. </element>
  5324. <!-- alias type Visibility: default -->
  5325. <element name="SizeUInt">
  5326. <short>Unsigned Integer type which fits for sizes</short>
  5327. <seealso>
  5328. <link id="SizeInt"/>
  5329. </seealso>
  5330. </element>
  5331. <!-- alias type Visibility: default -->
  5332. <element name="PtrInt">
  5333. <short>Signed integer type with same size as Pointer.</short>
  5334. <descr>
  5335. <var>PtrInt</var> is an integer type which has always the same size as a
  5336. pointer. When using integers which will be cast to pointers and vice versa,
  5337. use this type, never the regular integer type.
  5338. </descr>
  5339. <seealso>
  5340. <link id="PtrUInt"/>
  5341. </seealso>
  5342. </element>
  5343. <!-- alias type Visibility: default -->
  5344. <element name="PtrUInt">
  5345. <short>Unsigned integer type with same size as Pointer.</short>
  5346. <descr>
  5347. <var>PtrUInt</var> is an unsigned integer type which has always the same size as a
  5348. pointer. When using integers which will be cast to pointers and vice versa,
  5349. use this type, never the regular Cardinal type.
  5350. </descr>
  5351. <seealso>
  5352. <link id="PtrInt"/>
  5353. </seealso>
  5354. </element>
  5355. <!-- alias type Visibility: default -->
  5356. <element name="ValSInt">
  5357. <short>Val-Signed integer.</short>
  5358. <descr>
  5359. Integer with teh same size as the return code of the <link id="Val"/>
  5360. function.
  5361. </descr>
  5362. <seealso>
  5363. <link id="Val"/>
  5364. <link id="ValUInt"/>
  5365. </seealso>
  5366. </element>
  5367. <!-- alias type Visibility: default -->
  5368. <element name="ValUInt">
  5369. <short>Val-unsigned integer</short>
  5370. <descr>
  5371. Integer with teh same size as the return code of the <link id="Val"/>
  5372. function.
  5373. </descr>
  5374. <seealso>
  5375. <link id="Val"/>
  5376. <link id="ValUInt"/>
  5377. </seealso>
  5378. </element>
  5379. <!-- pointer type Visibility: default -->
  5380. <element name="PVariant">
  5381. <short>Pointer to <var>Variant</var> type.</short>
  5382. </element>
  5383. <!-- pointer type Visibility: default -->
  5384. <element name="POleVariant">
  5385. <short>Pointer to <var>OleVariant</var> type.</short>
  5386. </element>
  5387. <!-- pointer type Visibility: default -->
  5388. <element name="PWideChar">
  5389. <short>Pointer to <link id="WChar"/>.</short>
  5390. </element>
  5391. <!-- pointer type Visibility: default -->
  5392. <element name="PPWideChar">
  5393. <short>Pointer to link id="PWideChar"> type.</short>
  5394. </element>
  5395. <!-- alias type Visibility: default -->
  5396. <element name="UCS2Char">
  5397. <short>UCS2 unicode character.</short>
  5398. </element>
  5399. <!-- alias type Visibility: default -->
  5400. <element name="PUCS2Char">
  5401. <short>Pointer to <link id="UCS2Char"/> character.</short>
  5402. </element>
  5403. <!-- pointer type Visibility: default -->
  5404. <element name="PText">
  5405. <short>Pointer to text file.</short>
  5406. </element>
  5407. <!-- variable Visibility: default -->
  5408. <element name="ErrOutput">
  5409. <short>Alias for <link id="StdErr"/></short>
  5410. <descr>
  5411. <var>ErrOutput</var> is provided for Delphi compatibility.
  5412. </descr>
  5413. <seealso>
  5414. <link id="StdErr"/>
  5415. </seealso>
  5416. </element>
  5417. <!-- constant Visibility: default -->
  5418. <element name="fpc_in_lo_word">
  5419. <short>FPC compiler internal procedure index: lo (word)</short>
  5420. </element>
  5421. <!-- constant Visibility: default -->
  5422. <element name="fpc_in_hi_word">
  5423. <short>FPC compiler internal procedure index: hi (word)</short>
  5424. </element>
  5425. <!-- constant Visibility: default -->
  5426. <element name="fpc_in_lo_long">
  5427. <short>FPC compiler internal procedure index: lo (long)</short>
  5428. </element>
  5429. <!-- constant Visibility: default -->
  5430. <element name="fpc_in_hi_long">
  5431. <short>FPC compiler internal procedure index: hi (long)</short>
  5432. </element>
  5433. <!-- constant Visibility: default -->
  5434. <element name="fpc_in_ord_x">
  5435. <short>FPC compiler internal procedure index: ord </short>
  5436. </element>
  5437. <!-- constant Visibility: default -->
  5438. <element name="fpc_in_length_string">
  5439. <short>FPC compiler internal procedure index: length</short>
  5440. </element>
  5441. <!-- constant Visibility: default -->
  5442. <element name="fpc_in_chr_byte">
  5443. <short>FPC compiler internal procedure index: chr</short>
  5444. </element>
  5445. <!-- constant Visibility: default -->
  5446. <element name="fpc_in_write_x">
  5447. <short>FPC compiler internal procedure index: write</short>
  5448. </element>
  5449. <!-- constant Visibility: default -->
  5450. <element name="fpc_in_writeln_x">
  5451. <short>FPC compiler internal procedure index: writeln</short>
  5452. </element>
  5453. <!-- constant Visibility: default -->
  5454. <element name="fpc_in_read_x">
  5455. <short>FPC compiler internal procedure index: read</short>
  5456. </element>
  5457. <!-- constant Visibility: default -->
  5458. <element name="fpc_in_readln_x">
  5459. <short>FPC compiler internal procedure index: readln</short>
  5460. </element>
  5461. <!-- constant Visibility: default -->
  5462. <element name="fpc_in_concat_x">
  5463. <short>FPC compiler internal procedure index: concat </short>
  5464. </element>
  5465. <!-- constant Visibility: default -->
  5466. <element name="fpc_in_assigned_x">
  5467. <short>FPC compiler internal procedure index: assigned </short>
  5468. </element>
  5469. <!-- constant Visibility: default -->
  5470. <element name="fpc_in_str_x_string">
  5471. <short>FPC compiler internal procedure index: str </short>
  5472. </element>
  5473. <!-- constant Visibility: default -->
  5474. <element name="fpc_in_ofs_x">
  5475. <short>FPC compiler internal procedure index: ofs </short>
  5476. </element>
  5477. <!-- constant Visibility: default -->
  5478. <element name="fpc_in_sizeof_x">
  5479. <short>FPC compiler internal procedure index: sizeof </short>
  5480. </element>
  5481. <!-- constant Visibility: default -->
  5482. <element name="fpc_in_typeof_x">
  5483. <short>FPC compiler internal procedure index: typeof </short>
  5484. </element>
  5485. <!-- constant Visibility: default -->
  5486. <element name="fpc_in_val_x">
  5487. <short>FPC compiler internal procedure index: val </short>
  5488. </element>
  5489. <!-- constant Visibility: default -->
  5490. <element name="fpc_in_reset_x">
  5491. <short>FPC compiler internal procedure index: reset </short>
  5492. </element>
  5493. <!-- constant Visibility: default -->
  5494. <element name="fpc_in_rewrite_x">
  5495. <short>FPC compiler internal procedure index: rewrite </short>
  5496. </element>
  5497. <!-- constant Visibility: default -->
  5498. <element name="fpc_in_low_x">
  5499. <short>FPC compiler internal procedure index: low </short>
  5500. </element>
  5501. <!-- constant Visibility: default -->
  5502. <element name="fpc_in_high_x">
  5503. <short>FPC compiler internal procedure index: high </short>
  5504. </element>
  5505. <!-- constant Visibility: default -->
  5506. <element name="fpc_in_seg_x">
  5507. <short>FPC compiler internal procedure index: seg </short>
  5508. </element>
  5509. <!-- constant Visibility: default -->
  5510. <element name="fpc_in_pred_x">
  5511. <short>FPC compiler internal procedure index: pred </short>
  5512. </element>
  5513. <!-- constant Visibility: default -->
  5514. <element name="fpc_in_succ_x">
  5515. <short>FPC compiler internal procedure index: succ </short>
  5516. </element>
  5517. <!-- constant Visibility: default -->
  5518. <element name="fpc_in_reset_typedfile">
  5519. <short>FPC compiler internal procedure index: reset </short>
  5520. </element>
  5521. <!-- constant Visibility: default -->
  5522. <element name="fpc_in_rewrite_typedfile">
  5523. <short>FPC compiler internal procedure index: rewrite </short>
  5524. </element>
  5525. <!-- constant Visibility: default -->
  5526. <element name="fpc_in_settextbuf_file_x">
  5527. <short>FPC compiler internal procedure index: settextbuf </short>
  5528. </element>
  5529. <!-- constant Visibility: default -->
  5530. <element name="fpc_in_inc_x">
  5531. <short>FPC compiler internal procedure index: inc </short>
  5532. </element>
  5533. <!-- constant Visibility: default -->
  5534. <element name="fpc_in_dec_x">
  5535. <short>FPC compiler internal procedure index: dec </short>
  5536. </element>
  5537. <!-- constant Visibility: default -->
  5538. <element name="fpc_in_include_x_y">
  5539. <short>FPC compiler internal procedure index: include </short>
  5540. </element>
  5541. <!-- constant Visibility: default -->
  5542. <element name="fpc_in_exclude_x_y">
  5543. <short>FPC compiler internal procedure index: exclude </short>
  5544. </element>
  5545. <!-- constant Visibility: default -->
  5546. <element name="fpc_in_break">
  5547. <short>FPC compiler internal procedure index: break </short>
  5548. </element>
  5549. <!-- constant Visibility: default -->
  5550. <element name="fpc_in_continue">
  5551. <short>FPC compiler internal procedure index: continue </short>
  5552. </element>
  5553. <!-- constant Visibility: default -->
  5554. <element name="fpc_in_assert_x_y">
  5555. <short>FPC compiler internal procedure index: assert </short>
  5556. </element>
  5557. <!-- constant Visibility: default -->
  5558. <element name="fpc_in_addr_x">
  5559. <short>FPC compiler internal procedure index: addr </short>
  5560. </element>
  5561. <!-- constant Visibility: default -->
  5562. <element name="fpc_in_typeinfo_x">
  5563. <short>FPC compiler internal procedure index: typeinfo </short>
  5564. </element>
  5565. <!-- constant Visibility: default -->
  5566. <element name="fpc_in_setlength_x">
  5567. <short>FPC compiler internal procedure index: setlength </short>
  5568. </element>
  5569. <!-- constant Visibility: default -->
  5570. <element name="fpc_in_finalize_x">
  5571. <short>FPC compiler internal procedure index: finalize </short>
  5572. </element>
  5573. <!-- constant Visibility: default -->
  5574. <element name="fpc_in_new_x">
  5575. <short>FPC compiler internal procedure index: new </short>
  5576. </element>
  5577. <!-- constant Visibility: default -->
  5578. <element name="fpc_in_dispose_x">
  5579. <short>FPC compiler internal procedure index: dispose </short>
  5580. </element>
  5581. <!-- constant Visibility: default -->
  5582. <element name="fpc_in_exit">
  5583. <short>FPC compiler internal procedure index: exit </short>
  5584. </element>
  5585. <!-- constant Visibility: default -->
  5586. <element name="fpc_in_copy_x">
  5587. <short>FPC compiler internal procedure index: copy </short>
  5588. </element>
  5589. <!-- constant Visibility: default -->
  5590. <element name="fpc_in_initialize_x">
  5591. <short>FPC compiler internal procedure index: initialize </short>
  5592. </element>
  5593. <!-- constant Visibility: default -->
  5594. <element name="fpc_in_leave">
  5595. <short>FPC compiler internal procedure index: leave </short>
  5596. </element>
  5597. <!-- constant Visibility: default -->
  5598. <element name="fpc_in_cycle">
  5599. <short>FPC compiler internal procedure index: cycle </short>
  5600. </element>
  5601. <!-- constant Visibility: default -->
  5602. <element name="fpc_in_const_trunc">
  5603. <short>FPC compiler internal procedure index: trunc </short>
  5604. </element>
  5605. <!-- constant Visibility: default -->
  5606. <element name="fpc_in_const_round">
  5607. <short>FPC compiler internal procedure index: round </short>
  5608. </element>
  5609. <!-- constant Visibility: default -->
  5610. <element name="fpc_in_const_frac">
  5611. <short>FPC compiler internal procedure index: frac </short>
  5612. </element>
  5613. <!-- constant Visibility: default -->
  5614. <element name="fpc_in_const_abs">
  5615. <short>FPC compiler internal procedure index: abs </short>
  5616. </element>
  5617. <!-- constant Visibility: default -->
  5618. <element name="fpc_in_const_int">
  5619. <short>FPC compiler internal procedure index: int </short>
  5620. </element>
  5621. <!-- constant Visibility: default -->
  5622. <element name="fpc_in_const_sqr">
  5623. <short>FPC compiler internal procedure index: sqr </short>
  5624. </element>
  5625. <!-- constant Visibility: default -->
  5626. <element name="fpc_in_const_odd">
  5627. <short>FPC compiler internal procedure index: sqr </short>
  5628. </element>
  5629. <!-- constant Visibility: default -->
  5630. <element name="fpc_in_const_ptr">
  5631. <short>FPC compiler internal procedure index: sqr </short>
  5632. </element>
  5633. <!-- constant Visibility: default -->
  5634. <element name="fpc_in_const_swap_word">
  5635. <short>FPC compiler internal procedure index: swap (word) </short>
  5636. </element>
  5637. <!-- constant Visibility: default -->
  5638. <element name="fpc_in_const_swap_long">
  5639. <short>FPC compiler internal procedure index: swap (long) </short>
  5640. </element>
  5641. <!-- constant Visibility: default -->
  5642. <element name="fpc_in_const_pi">
  5643. <short>FPC compiler internal procedure index: pi </short>
  5644. </element>
  5645. <!-- constant Visibility: default -->
  5646. <element name="fpc_in_const_sqrt">
  5647. <short>FPC compiler internal procedure index: sqrt </short>
  5648. </element>
  5649. <!-- constant Visibility: default -->
  5650. <element name="fpc_in_const_arctan">
  5651. <short>FPC compiler internal procedure index: arctan </short>
  5652. </element>
  5653. <!-- constant Visibility: default -->
  5654. <element name="fpc_in_const_cos">
  5655. <short>FPC compiler internal procedure index: cos </short>
  5656. </element>
  5657. <!-- constant Visibility: default -->
  5658. <element name="fpc_in_const_exp">
  5659. <short>FPC compiler internal procedure index: exp </short>
  5660. </element>
  5661. <!-- constant Visibility: default -->
  5662. <element name="fpc_in_const_ln">
  5663. <short>FPC compiler internal procedure index: in </short>
  5664. </element>
  5665. <!-- constant Visibility: default -->
  5666. <element name="fpc_in_const_sin">
  5667. <short>FPC compiler internal procedure index: sin </short>
  5668. </element>
  5669. <!-- constant Visibility: default -->
  5670. <element name="fpc_in_lo_qword">
  5671. <short>FPC compiler internal procedure index: lo (qword) </short>
  5672. </element>
  5673. <!-- constant Visibility: default -->
  5674. <element name="fpc_in_hi_qword">
  5675. <short>FPC compiler internal procedure index: hi (qword) </short>
  5676. </element>
  5677. <!-- constant Visibility: default -->
  5678. <element name="fpc_in_cos_real">
  5679. <short>FPC compiler internal procedure index: cos (real) </short>
  5680. </element>
  5681. <!-- constant Visibility: default -->
  5682. <element name="fpc_in_pi">
  5683. <short>FPC compiler internal procedure index: pi </short>
  5684. </element>
  5685. <!-- constant Visibility: default -->
  5686. <element name="fpc_in_abs_real">
  5687. <short>FPC compiler internal procedure index: abs (real) </short>
  5688. </element>
  5689. <!-- constant Visibility: default -->
  5690. <element name="fpc_in_sqr_real">
  5691. <short>FPC compiler internal procedure index: sqr (real) </short>
  5692. </element>
  5693. <!-- constant Visibility: default -->
  5694. <element name="fpc_in_sqrt_real">
  5695. <short>FPC compiler internal procedure index: sqrt (real) </short>
  5696. </element>
  5697. <!-- constant Visibility: default -->
  5698. <element name="fpc_in_arctan_real">
  5699. <short>FPC compiler internal procedure index: arctan (real) </short>
  5700. </element>
  5701. <!-- constant Visibility: default -->
  5702. <element name="fpc_in_ln_real">
  5703. <short>FPC compiler internal procedure index: ln (real) </short>
  5704. </element>
  5705. <!-- constant Visibility: default -->
  5706. <element name="fpc_in_sin_real">
  5707. <short>FPC compiler internal procedure index: sin (real) </short>
  5708. </element>
  5709. <!-- constant Visibility: default -->
  5710. <element name="fpc_in_const_swap_qword">
  5711. <short>FPC compiler internal procedure index: swap (qword) </short>
  5712. </element>
  5713. <!-- constant Visibility: default -->
  5714. <element name="fpc_in_prefetch_var">
  5715. <short>FPC compiler internal procedure index: prefetch </short>
  5716. </element>
  5717. <!-- constant Visibility: default -->
  5718. <element name="fpc_in_mmx_pcmpeqb">
  5719. <short>FPC compiler internal procedure index: MMX </short>
  5720. </element>
  5721. <!-- constant Visibility: default -->
  5722. <element name="fpc_in_mmx_pcmpeqw">
  5723. <short>FPC compiler internal procedure index: MMX </short>
  5724. </element>
  5725. <!-- constant Visibility: default -->
  5726. <element name="fpc_in_mmx_pcmpeqd">
  5727. <short>FPC compiler internal procedure index: MMX </short>
  5728. </element>
  5729. <!-- constant Visibility: default -->
  5730. <element name="fpc_in_mmx_pcmpgtb">
  5731. <short>FPC compiler internal procedure index: MMX </short>
  5732. </element>
  5733. <!-- constant Visibility: default -->
  5734. <element name="fpc_in_mmx_pcmpgtw">
  5735. <short>FPC compiler internal procedure index: MMX </short>
  5736. </element>
  5737. <!-- constant Visibility: default -->
  5738. <element name="fpc_in_mmx_pcmpgtd">
  5739. <short>FPC compiler internal procedure index: MMX </short>
  5740. </element>
  5741. <!-- function Visibility: default -->
  5742. <element name="Align">
  5743. <short>Return aligned version of an address</short>
  5744. <descr>
  5745. <var>Align</var> returns <var>Address</var>, aligned to <var>Alignment</var>
  5746. bytes.
  5747. </descr>
  5748. <errors>
  5749. None.
  5750. </errors>
  5751. </element>
  5752. <element name="ArrayStringToPPchar">
  5753. <short>Concert an array of string to an array of null-terminated strings</short>
  5754. <descr>
  5755. <p>
  5756. <var>ArrayStringToPPchar</var> creates an array of null-terminated strings
  5757. that point to strings which are the same as the strings in the array
  5758. <var>S</var>. The function returns a pointer to this array. The array and
  5759. the strings it contains must be disposed of after being used, because it
  5760. they are allocated on the heap.
  5761. </p>
  5762. <p>
  5763. The <var>ReserveEntries</var> parameter tells <var>ArrayStringToPPchar</var>
  5764. to allocate room at the end of the array for another <var>ReserveEntries</var>
  5765. entries.
  5766. </p>
  5767. </descr>
  5768. <errors>
  5769. If not enough memory is available, an error may occur.
  5770. </errors>
  5771. <seealso>
  5772. <link id="StringToPPChar"/>
  5773. </seealso>
  5774. </element>
  5775. <element name="StringToPPChar">
  5776. <short>Split string in list of null-terminated strings</short>
  5777. <descr>
  5778. <p>
  5779. <var>StringToPPChar</var> splits the string <var>S</var> in words, replacing any
  5780. whitespace with zero characters. It returns a pointer to an array of pchars
  5781. that point to the first letters of the words in <var>S</var>. This array is terminated
  5782. by a <var>Nil</var> pointer.
  5783. </p>
  5784. <p>
  5785. The function does <em> not</em> add a zero character to the end of the string
  5786. unless it ends on whitespace.
  5787. </p>
  5788. <p>
  5789. The function reserves memory on the heap to store the array of <var>PChar</var>;
  5790. The caller is responsible for freeing this memory.
  5791. </p>
  5792. <p>
  5793. This function is only available on certain platforms.
  5794. </p>
  5795. </descr>
  5796. <errors>
  5797. None.
  5798. </errors>
  5799. <seealso>
  5800. <link id="ArrayStringToPPchar"/>
  5801. </seealso>
  5802. </element>
  5803. <!-- constant Visibility: default -->
  5804. <element name="varempty">
  5805. <short>Variant type: <var>Empty</var> variant</short>
  5806. </element>
  5807. <!-- constant Visibility: default -->
  5808. <element name="varnull">
  5809. <short>Variant type: <link id="Null"/> variant </short>
  5810. </element>
  5811. <!-- constant Visibility: default -->
  5812. <element name="varsmallint">
  5813. <short>Variant type: smallint (8 bit) </short>
  5814. </element>
  5815. <!-- constant Visibility: default -->
  5816. <element name="varinteger">
  5817. <short>Variant type: Integer (32-bit)</short>
  5818. </element>
  5819. <!-- constant Visibility: default -->
  5820. <element name="varsingle">
  5821. <short>Variant type: Single float </short>
  5822. </element>
  5823. <!-- constant Visibility: default -->
  5824. <element name="vardouble">
  5825. <short>Variant type: Double float </short>
  5826. </element>
  5827. <!-- constant Visibility: default -->
  5828. <element name="varcurrency">
  5829. <short>Variant type: Currency </short>
  5830. </element>
  5831. <!-- constant Visibility: default -->
  5832. <element name="vardate">
  5833. <short>Variant type: Date </short>
  5834. </element>
  5835. <!-- constant Visibility: default -->
  5836. <element name="varolestr">
  5837. <short>Variant type: OLE string (widestring) </short>
  5838. </element>
  5839. <!-- constant Visibility: default -->
  5840. <element name="vardispatch">
  5841. <short>Variant type: dispatch interface </short>
  5842. </element>
  5843. <!-- constant Visibility: default -->
  5844. <element name="varerror">
  5845. <short>Variant type: Error type </short>
  5846. </element>
  5847. <!-- constant Visibility: default -->
  5848. <element name="varboolean">
  5849. <short>Variant type: Boolean type </short>
  5850. </element>
  5851. <!-- constant Visibility: default -->
  5852. <element name="varvariant">
  5853. <short>Variant type: Variant (arrays only) </short>
  5854. </element>
  5855. <!-- constant Visibility: default -->
  5856. <element name="varunknown">
  5857. <short>Variant type: Unknown </short>
  5858. </element>
  5859. <!-- constant Visibility: default -->
  5860. <element name="vardecimal">
  5861. <short>Variant type: Decimal (BCD) </short>
  5862. </element>
  5863. <!-- constant Visibility: default -->
  5864. <element name="varshortint">
  5865. <short>Variant type: Shortint (16 bit) </short>
  5866. </element>
  5867. <!-- constant Visibility: default -->
  5868. <element name="varbyte">
  5869. <short>Variant type: Byte (8 bit) </short>
  5870. </element>
  5871. <!-- constant Visibility: default -->
  5872. <element name="varword">
  5873. <short>Variant type: Word (16 bit) </short>
  5874. </element>
  5875. <!-- constant Visibility: default -->
  5876. <element name="varlongword">
  5877. <short>Variant type: Word (32 bit) </short>
  5878. </element>
  5879. <!-- constant Visibility: default -->
  5880. <element name="varint64">
  5881. <short>Variant type: Integer (64-Bit) </short>
  5882. </element>
  5883. <!-- constant Visibility: default -->
  5884. <element name="varqword">
  5885. <short>Variant type: Word (64-bit) </short>
  5886. </element>
  5887. <!-- constant Visibility: default -->
  5888. <element name="varstrarg">
  5889. <short>Variant type: String </short>
  5890. </element>
  5891. <!-- constant Visibility: default -->
  5892. <element name="varstring">
  5893. <short>Variant type: String </short>
  5894. </element>
  5895. <!-- constant Visibility: default -->
  5896. <element name="varany">
  5897. <short>Variant type: Any </short>
  5898. </element>
  5899. <!-- constant Visibility: default -->
  5900. <element name="vartypemask">
  5901. <short>Variant type: Mask to extract type </short>
  5902. </element>
  5903. <!-- constant Visibility: default -->
  5904. <element name="vararray">
  5905. <short>Variant type: variant Array </short>
  5906. </element>
  5907. <!-- constant Visibility: default -->
  5908. <element name="varbyref">
  5909. <short>Variant type: By reference </short>
  5910. </element>
  5911. <!-- constant Visibility: default -->
  5912. <element name="varword64">
  5913. <short>Variant type: Word (64-bit) </short>
  5914. </element>
  5915. <!-- alias type Visibility: default -->
  5916. <element name="tvartype">
  5917. <short>Type with size of variant type.</short>
  5918. </element>
  5919. <!-- pointer type Visibility: default -->
  5920. <element name="pvararrayboundarray">
  5921. <short>Pointer to <link id="tvararrayboundarray"/> type.</short>
  5922. </element>
  5923. <!-- pointer type Visibility: default -->
  5924. <element name="pvararraycoorarray">
  5925. <short>Pointer to <link id="tvararraycoorarray"/> type.</short>
  5926. </element>
  5927. <!-- pointer type Visibility: default -->
  5928. <element name="pvararraybound">
  5929. <short>Pointer to <link id="tvararraybound"/> type.</short>
  5930. </element>
  5931. <!-- pointer type Visibility: default -->
  5932. <element name="pvararray">
  5933. <short>Pointer to <link id="TVarArray"/> type.</short>
  5934. </element>
  5935. <!-- record type Visibility: default -->
  5936. <element name="tvararraybound">
  5937. <short>Type describing variant array bounds.</short>
  5938. <descr>
  5939. <var>tvararraybound</var> is used to describe one dimension in a variant
  5940. array.
  5941. </descr>
  5942. <seealso>
  5943. <link id="tvararray"/>
  5944. </seealso>
  5945. </element>
  5946. <!-- variable Visibility: default -->
  5947. <element name="tvararraybound.elementcount">
  5948. <short>Number of elements in this array dimension.</short>
  5949. </element>
  5950. <!-- variable Visibility: default -->
  5951. <element name="tvararraybound.lowbound">
  5952. <short>Lower bound of this array dimension (index of first element).</short>
  5953. </element>
  5954. <!-- record type Visibility: default -->
  5955. <element name="tvararray">
  5956. <short>Type describing variant array</short>
  5957. <descr>
  5958. <var>tvararray</var> is a record describing a variant array. It contains
  5959. some general data, followed by a number of <link id="TVarArrayBound"/>
  5960. records equal to the number of dimensions in the array (<var>dimcoun</var>).
  5961. </descr>
  5962. <seealso>
  5963. <link id="TVarArrayBound"/>
  5964. </seealso>
  5965. </element>
  5966. <!-- variable Visibility: default -->
  5967. <element name="tvararray.dimcount">
  5968. <short>Number of dimensions</short>
  5969. </element>
  5970. <!-- variable Visibility: default -->
  5971. <element name="tvararray.flags">
  5972. <short>Array flags.</short>
  5973. </element>
  5974. <!-- variable Visibility: default -->
  5975. <element name="tvararray.elementsize">
  5976. <short>Size of one element in the array.</short>
  5977. </element>
  5978. <!-- variable Visibility: default -->
  5979. <element name="tvararray.lockcount">
  5980. <short>Lock (reference) count of the array.</short>
  5981. </element>
  5982. <!-- variable Visibility: default -->
  5983. <element name="tvararray.data">
  5984. <short>Pointer to the array data.</short>
  5985. </element>
  5986. <!-- variable Visibility: default -->
  5987. <element name="tvararray.bounds">
  5988. <short>Array describing the bounds in the array.</short>
  5989. </element>
  5990. <!-- array type Visibility: default -->
  5991. <element name="tvararrayboundarray">
  5992. <short>array of <link id="tvararraybound"/> records.</short>
  5993. </element>
  5994. <!-- array type Visibility: default -->
  5995. <element name="tvararraycoorarray">
  5996. <short>Array of variant array coordinates</short>
  5997. </element>
  5998. <!-- enumeration type Visibility: default -->
  5999. <element name="tvarop">
  6000. <short>Variant operation.</short>
  6001. <descr>
  6002. <var>tvarop</var> describes a variant operation. It is mainly used for the
  6003. variant manager to implement the various conversions and mathematical
  6004. operations on a variant.
  6005. </descr>
  6006. <seealso>
  6007. <link id="TVariantManager"/>
  6008. </seealso>
  6009. </element>
  6010. <!-- enumeration value Visibility: default -->
  6011. <element name="tvarop.opadd">
  6012. <short>Variant operation: Addition.</short>
  6013. </element>
  6014. <!-- enumeration value Visibility: default -->
  6015. <element name="tvarop.opsubtract">
  6016. <short>Variant operation: Substraction</short>
  6017. </element>
  6018. <!-- enumeration value Visibility: default -->
  6019. <element name="tvarop.opmultiply">
  6020. <short>Variant operation: multiplication</short>
  6021. </element>
  6022. <!-- enumeration value Visibility: default -->
  6023. <element name="tvarop.opdivide">
  6024. <short>Variant operation: division</short>
  6025. </element>
  6026. <!-- enumeration value Visibility: default -->
  6027. <element name="tvarop.opintdivide">
  6028. <short>Variant operation: integer divide</short>
  6029. </element>
  6030. <!-- enumeration value Visibility: default -->
  6031. <element name="tvarop.opmodulus">
  6032. <short>Variant operation: Modulus</short>
  6033. </element>
  6034. <!-- enumeration value Visibility: default -->
  6035. <element name="tvarop.opshiftleft">
  6036. <short>Variant operation: Shift left</short>
  6037. </element>
  6038. <!-- enumeration value Visibility: default -->
  6039. <element name="tvarop.opshiftright">
  6040. <short>Variant operation: Shift right</short>
  6041. </element>
  6042. <!-- enumeration value Visibility: default -->
  6043. <element name="tvarop.opand">
  6044. <short>Variant operation: Binary AND operation</short>
  6045. </element>
  6046. <!-- enumeration value Visibility: default -->
  6047. <element name="tvarop.opor">
  6048. <short>Variant operation: Binary OR operation</short>
  6049. </element>
  6050. <!-- enumeration value Visibility: default -->
  6051. <element name="tvarop.opxor">
  6052. <short>Variant operation: binary XOR operation.</short>
  6053. </element>
  6054. <!-- enumeration value Visibility: default -->
  6055. <element name="tvarop.opcompare">
  6056. <short>Variant operation: Compare</short>
  6057. </element>
  6058. <!-- enumeration value Visibility: default -->
  6059. <element name="tvarop.opnegate">
  6060. <short>Variant operation: negation.</short>
  6061. </element>
  6062. <!-- enumeration value Visibility: default -->
  6063. <element name="tvarop.opnot">
  6064. <short>Variant operation: Binary NOT operation.</short>
  6065. </element>
  6066. <!-- enumeration value Visibility: default -->
  6067. <element name="tvarop.opcmpeq">
  6068. <short>Variant operation: Compare equal.</short>
  6069. </element>
  6070. <!-- enumeration value Visibility: default -->
  6071. <element name="tvarop.opcmpne">
  6072. <short>Variant operation: Compare not equal</short>
  6073. </element>
  6074. <!-- enumeration value Visibility: default -->
  6075. <element name="tvarop.opcmplt">
  6076. <short>Variant operation: Compare less than.</short>
  6077. </element>
  6078. <!-- enumeration value Visibility: default -->
  6079. <element name="tvarop.opcmple">
  6080. <short>Variant operation: Compare less than or equal to</short>
  6081. </element>
  6082. <!-- enumeration value Visibility: default -->
  6083. <element name="tvarop.opcmpgt">
  6084. <short>Variant operation: Compare larger than</short>
  6085. </element>
  6086. <!-- enumeration value Visibility: default -->
  6087. <element name="tvarop.opcmpge">
  6088. <short>Variant operation: Compare larger than or equal</short>
  6089. </element>
  6090. <!-- record type Visibility: default -->
  6091. <element name="tvardata">
  6092. <short>Variant record.</short>
  6093. <descr>
  6094. <var>TVarData</var> is a record representation of a variant. It contains the
  6095. internal structure of a variant and is handled by the various variant
  6096. handling routines.
  6097. </descr>
  6098. </element>
  6099. <!-- variable Visibility: default -->
  6100. <element name="tvardata.vtype">
  6101. <short>Type of variant.</short>
  6102. </element>
  6103. <!-- pointer type Visibility: default -->
  6104. <element name="pvardata">
  6105. <short>Pointer to <link id="TVarData"/> record.</short>
  6106. </element>
  6107. <!-- pointer type Visibility: default -->
  6108. <element name="pcalldesc">
  6109. <short>Pointer to <link id="TCallDesc"/> record.</short>
  6110. </element>
  6111. <!-- record type Visibility: default -->
  6112. <element name="tcalldesc">
  6113. <short>COM/OLE dispatch call argument description.</short>
  6114. <descr>
  6115. <var>tcalldesc</var> is used to encode the arguments to a dispatch call to
  6116. an OLE dual interface. It is used on windows only. It describes the
  6117. arguments to a call.
  6118. </descr>
  6119. </element>
  6120. <!-- variable Visibility: default -->
  6121. <element name="tcalldesc.calltype">
  6122. <short>Call type.</short>
  6123. </element>
  6124. <!-- variable Visibility: default -->
  6125. <element name="tcalldesc.argcount">
  6126. <short>Number of arguments to call.</short>
  6127. </element>
  6128. <!-- variable Visibility: default -->
  6129. <element name="tcalldesc.namedargcount">
  6130. <short>Number of named arguments in the call.</short>
  6131. </element>
  6132. <!-- variable Visibility: default -->
  6133. <element name="tcalldesc.argtypes">
  6134. <short>Types of arguments.</short>
  6135. </element>
  6136. <!-- pointer type Visibility: default -->
  6137. <element name="tdispdesc">
  6138. <short>COM/OLE dispatch call description.</short>
  6139. <descr>
  6140. <var>tcalldesc</var> is used to encode a dispatch call to an OLE dispatch
  6141. interface. It is used on windows only. It describes the dispath call call.
  6142. </descr>
  6143. <seealso>
  6144. <link id="tcalldesc"/>
  6145. </seealso>
  6146. </element>
  6147. <!-- record type Visibility: default -->
  6148. <element name="pdispdesc">
  6149. <short>Pointer to <link id="tdispdesc"/> record</short>
  6150. </element>
  6151. <!-- variable Visibility: default -->
  6152. <element name="tdispdesc.dispid">
  6153. <short>Dispatch ID</short>
  6154. </element>
  6155. <!-- variable Visibility: default -->
  6156. <element name="tdispdesc.restype">
  6157. <short>Result type.</short>
  6158. </element>
  6159. <!-- variable Visibility: default -->
  6160. <element name="tdispdesc.calldesc">
  6161. <short>Arguments description.</short>
  6162. </element>
  6163. <!-- record type Visibility: default -->
  6164. <element name="tvariantmanager">
  6165. <short>Record describing the variant manager.</short>
  6166. <descr>
  6167. <var>TVariantManager</var> describes the variant manager as expected by the
  6168. <link id="SetVariantManager"/> call.
  6169. </descr>
  6170. <seealso>
  6171. <link id="SetVariantManager"/>
  6172. </seealso>
  6173. </element>
  6174. <!-- variable Visibility: default -->
  6175. <element name="tvariantmanager.vartoint">
  6176. <short>Called to convert a variant to an integer value</short>
  6177. </element>
  6178. <!-- variable Visibility: default -->
  6179. <element name="tvariantmanager.vartoint64">
  6180. <short>Called to convert a variant to an int64 value</short>
  6181. </element>
  6182. <!-- variable Visibility: default -->
  6183. <element name="tvariantmanager.vartoword64">
  6184. <short>Called to convert a variant to a word64 value</short>
  6185. </element>
  6186. <!-- variable Visibility: default -->
  6187. <element name="tvariantmanager.vartobool">
  6188. <short>Called to convert a variant to a boolean value</short>
  6189. </element>
  6190. <!-- variable Visibility: default -->
  6191. <element name="tvariantmanager.vartoreal">
  6192. <short>Called to convert a variant to a value</short>
  6193. </element>
  6194. <!-- variable Visibility: default -->
  6195. <element name="tvariantmanager.vartocurr">
  6196. <short>Called to convert a variant to a value</short>
  6197. </element>
  6198. <!-- variable Visibility: default -->
  6199. <element name="tvariantmanager.vartopstr">
  6200. <short>Called to convert a variant to a value</short>
  6201. </element>
  6202. <!-- variable Visibility: default -->
  6203. <element name="tvariantmanager.vartolstr">
  6204. <short>Called to convert a variant to a value</short>
  6205. </element>
  6206. <!-- variable Visibility: default -->
  6207. <element name="tvariantmanager.vartowstr">
  6208. <short>Called to convert a variant to a value</short>
  6209. </element>
  6210. <!-- variable Visibility: default -->
  6211. <element name="tvariantmanager.vartointf">
  6212. <short>Called to convert a variant to a value</short>
  6213. </element>
  6214. <!-- variable Visibility: default -->
  6215. <element name="tvariantmanager.vartodisp">
  6216. <short>Called to convert a variant to a value</short>
  6217. </element>
  6218. <!-- variable Visibility: default -->
  6219. <element name="tvariantmanager.vartodynarray">
  6220. <short>Called to convert a variant to a value</short>
  6221. </element>
  6222. <!-- variable Visibility: default -->
  6223. <element name="tvariantmanager.varfrombool">
  6224. <short>Called to convert a value to a variant</short>
  6225. </element>
  6226. <!-- variable Visibility: default -->
  6227. <element name="tvariantmanager.varfromint">
  6228. <short>Called to convert a value to a variant</short>
  6229. </element>
  6230. <!-- variable Visibility: default -->
  6231. <element name="tvariantmanager.varfromint64">
  6232. <short>Called to convert a value to a variant</short>
  6233. </element>
  6234. <!-- variable Visibility: default -->
  6235. <element name="tvariantmanager.varfromword64">
  6236. <short>Called to convert a value to a variant</short>
  6237. </element>
  6238. <!-- variable Visibility: default -->
  6239. <element name="tvariantmanager.varfromreal">
  6240. <short>Called to convert a value to a variant</short>
  6241. </element>
  6242. <!-- variable Visibility: default -->
  6243. <element name="tvariantmanager.varfrompstr">
  6244. <short>Called to convert a value to a variant</short>
  6245. </element>
  6246. <!-- variable Visibility: default -->
  6247. <element name="tvariantmanager.varfromlstr">
  6248. <short>Called to convert a value to a variant</short>
  6249. </element>
  6250. <!-- variable Visibility: default -->
  6251. <element name="tvariantmanager.varfromwstr">
  6252. <short>Called to convert a value to a variant</short>
  6253. </element>
  6254. <!-- variable Visibility: default -->
  6255. <element name="tvariantmanager.varfromintf">
  6256. <short>Called to convert a value to a variant</short>
  6257. </element>
  6258. <!-- variable Visibility: default -->
  6259. <element name="tvariantmanager.varfromdisp">
  6260. <short>Called to convert a value to a variant</short>
  6261. </element>
  6262. <!-- variable Visibility: default -->
  6263. <element name="tvariantmanager.varfromdynarray">
  6264. <short>Called to convert a value to a variant</short>
  6265. </element>
  6266. <!-- variable Visibility: default -->
  6267. <element name="tvariantmanager.olevarfrompstr">
  6268. <short>Called to convert a value to a variant</short>
  6269. </element>
  6270. <!-- variable Visibility: default -->
  6271. <element name="tvariantmanager.olevarfromlstr">
  6272. <short>Called to convert a value to a variant</short>
  6273. </element>
  6274. <!-- variable Visibility: default -->
  6275. <element name="tvariantmanager.olevarfromvar">
  6276. <short>Called to convert a value to a variant</short>
  6277. </element>
  6278. <!-- variable Visibility: default -->
  6279. <element name="tvariantmanager.olevarfromint">
  6280. <short>Called to convert a value to a variant</short>
  6281. </element>
  6282. <!-- variable Visibility: default -->
  6283. <element name="tvariantmanager.varop">
  6284. <short>Called to perform a variant operation: </short>
  6285. </element>
  6286. <!-- variable Visibility: default -->
  6287. <element name="tvariantmanager.cmpop">
  6288. <short>Called to perform a variant operation: </short>
  6289. </element>
  6290. <!-- variable Visibility: default -->
  6291. <element name="tvariantmanager.varneg">
  6292. <short>Called to perform a variant operation: </short>
  6293. </element>
  6294. <!-- variable Visibility: default -->
  6295. <element name="tvariantmanager.varnot">
  6296. <short>Called to perform a variant operation: </short>
  6297. </element>
  6298. <!-- variable Visibility: default -->
  6299. <element name="tvariantmanager.varinit">
  6300. <short>Called to perform a variant operation: </short>
  6301. </element>
  6302. <!-- variable Visibility: default -->
  6303. <element name="tvariantmanager.varclear">
  6304. <short>Called to perform a variant operation: </short>
  6305. </element>
  6306. <!-- variable Visibility: default -->
  6307. <element name="tvariantmanager.varaddref">
  6308. <short>Called to perform a variant operation: </short>
  6309. </element>
  6310. <!-- variable Visibility: default -->
  6311. <element name="tvariantmanager.varcopy">
  6312. <short>Called to perform a variant operation: </short>
  6313. </element>
  6314. <!-- variable Visibility: default -->
  6315. <element name="tvariantmanager.varcast">
  6316. <short>Called to perform a variant operation: </short>
  6317. </element>
  6318. <!-- variable Visibility: default -->
  6319. <element name="tvariantmanager.varcastole">
  6320. <short>Called to perform a variant operation: </short>
  6321. </element>
  6322. <!-- variable Visibility: default -->
  6323. <element name="tvariantmanager.dispinvoke">
  6324. <short>Called to perform a variant operation: </short>
  6325. </element>
  6326. <!-- variable Visibility: default -->
  6327. <element name="tvariantmanager.vararrayredim">
  6328. <short>Called to perform a variant operation: </short>
  6329. </element>
  6330. <!-- variable Visibility: default -->
  6331. <element name="tvariantmanager.vararrayget">
  6332. <short>Called to perform a variant operation: </short>
  6333. </element>
  6334. <!-- variable Visibility: default -->
  6335. <element name="tvariantmanager.vararrayput">
  6336. <short>Called to perform a variant operation: </short>
  6337. </element>
  6338. <!-- variable Visibility: default -->
  6339. <element name="tvariantmanager.writevariant">
  6340. <short>Called to perform a variant operation: </short>
  6341. </element>
  6342. <!-- variable Visibility: default -->
  6343. <element name="tvariantmanager.write0Variant">
  6344. <short>Called to perform a variant operation: </short>
  6345. </element>
  6346. <!-- pointer type Visibility: default -->
  6347. <element name="pvariantmanager">
  6348. <short>Pointer to <link id="TVariantManager"/> record.</short>
  6349. </element>
  6350. <!-- procedure Visibility: default -->
  6351. <element name="GetVariantManager">
  6352. <short>Return the current variant manager.</short>
  6353. <descr>
  6354. <var>GetVariantManager</var> returns the current variant manager in
  6355. <var>varmgr</var>.
  6356. </descr>
  6357. <seealso>
  6358. <link id="IsVariantManagerSet"/>
  6359. <link id="SetVariantManager"/>
  6360. </seealso>
  6361. </element>
  6362. <!-- procedure Visibility: default -->
  6363. <element name="SetVariantManager">
  6364. <short>Set the current variant manager.</short>
  6365. <descr>
  6366. <var>SetVariantManager</var> sets the variant manager to <var>varmgr</var>.
  6367. </descr>
  6368. <seealso>
  6369. <link id="IsVariantManagerSet"/>
  6370. <link id="GetVariantManager"/>
  6371. </seealso>
  6372. </element>
  6373. <!-- function Visibility: default -->
  6374. <element name="IsVariantManagerSet">
  6375. <short>Determine if variant manager is currently set.</short>
  6376. <descr>
  6377. <p>
  6378. <var>IsVariantManagerSet</var> determines whether the variant manager was
  6379. set to a correct variant manager. It returns <var>True</var> if it is,
  6380. or <var>False</var> if it is not.
  6381. </p>
  6382. <p>
  6383. The routine checks all variant operation handlers, they should all be set correctly.
  6384. </p>
  6385. </descr>
  6386. <seealso>
  6387. <link id="SetVariantManager"/>
  6388. <link id="GetVariantManager"/>
  6389. </seealso>
  6390. </element>
  6391. <!-- variable Visibility: default -->
  6392. <element name="VarDispProc">
  6393. <short>Callback to perform dispatch interface procedure call by name.</short>
  6394. <descr>
  6395. <p>
  6396. <var>VarDispProc</var> is called by the compiler if it needs to perform an
  6397. interface call from a variant. For instance, the following call:
  6398. </p>
  6399. <code>
  6400. Var
  6401. V : OleVariant;
  6402. begin
  6403. V.OpenDocument('c:\temp\mydoc.doc');
  6404. end;
  6405. </code>
  6406. <p>
  6407. is encoded by the compiler and passed to <var>VarDispProc</var>.
  6408. </p>
  6409. <p>
  6410. This pointer must be set by a routine that calls the OS COM handling
  6411. routines.
  6412. </p>
  6413. </descr>
  6414. <seealso>
  6415. <link id="DispCallByIDProc"/>
  6416. </seealso>
  6417. </element>
  6418. <!-- variable Visibility: default -->
  6419. <element name="DispCallByIDProc">
  6420. <short>Callback to perform dispatch interface procedure call by ID.</short>
  6421. <descr>
  6422. <p>
  6423. <var>VarDispProc</var> is called by the compiler if it needs to perform an
  6424. interface call from a variant which contains a dispatch interface.
  6425. For instance, the following call:
  6426. </p>
  6427. <code>
  6428. Var
  6429. V : OleVariant;
  6430. begin
  6431. (V as IWord).OpenDocument('c:\temp\mydoc.doc');
  6432. end;
  6433. </code>
  6434. <p>
  6435. where <var>IWord</var> is a dispatch interface is encoded by the compiler and
  6436. passed to <var>DispCallByIDProc</var>.
  6437. </p>
  6438. <p>
  6439. This pointer must be set by a routine that calls the OS COM handling
  6440. routines.
  6441. </p>
  6442. </descr>
  6443. <seealso>
  6444. <link id="VarDispProc"/>
  6445. </seealso>
  6446. </element>
  6447. <!-- variable Visibility: default -->
  6448. <element name="Null">
  6449. <short>Null variant</short>
  6450. </element>
  6451. <!-- variable Visibility: default -->
  6452. <element name="Unassigned">
  6453. <short>Unassigned variant.</short>
  6454. </element>
  6455. <!-- record type Visibility: default -->
  6456. <element name="THeapStatus">
  6457. <short>Record describing current heap status.</short>
  6458. <descr>
  6459. <var>THeapStatus</var> is the record describing the current heap status. It
  6460. is returned by the <link id="GetHeapStatus"/> call.
  6461. </descr>
  6462. <seealso>
  6463. <link id="GetHeapStatus"/>
  6464. </seealso>
  6465. </element>
  6466. <!-- variable Visibility: default -->
  6467. <element name="THeapStatus.MaxHeapSize">
  6468. <short>Biggest heap size used.</short>
  6469. </element>
  6470. <!-- variable Visibility: default -->
  6471. <element name="THeapStatus.MaxHeapUsed">
  6472. <short>Biggest used part of heap memory.</short>
  6473. </element>
  6474. <!-- variable Visibility: default -->
  6475. <element name="THeapStatus.CurrHeapSize">
  6476. <short>Current heap size. </short>
  6477. </element>
  6478. <!-- variable Visibility: default -->
  6479. <element name="THeapStatus.CurrHeapUsed">
  6480. <short>Current size of used heap memory.</short>
  6481. </element>
  6482. <!-- variable Visibility: default -->
  6483. <element name="THeapStatus.CurrHeapFree">
  6484. <short>Current size of free heap memory.</short>
  6485. </element>
  6486. <!-- procedure Visibility: default -->
  6487. <element name="SysGetHeapStatus">
  6488. <short>System implementation of <link id="GetHeapStatus"/></short>
  6489. <descr>
  6490. <var>SysGetHeapStatus</var> is the system implementation of the <link
  6491. id="GetHeapStatus"/> call.
  6492. </descr>
  6493. <seealso>
  6494. <link id="GetHeapStatus"/>
  6495. </seealso>
  6496. </element>
  6497. <!-- function Visibility: default -->
  6498. <element name="Heapsize">
  6499. <short>Current heap size</short>
  6500. <descr>
  6501. <var>HeapSize</var> returns the current heap size. The heap grows
  6502. dynamically (as allowed by the OS) and the <var>HeapSize</var> reflects the
  6503. current state of the heap.
  6504. </descr>
  6505. <seealso>
  6506. <link id="GetHeapStatus"/>
  6507. </seealso>
  6508. </element>
  6509. </module>
  6510. </package>
  6511. </fpdoc-descriptions>