system.xml 198 KB

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