system.xml 216 KB

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