2019-03-17 14:40:57 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
< title > P/ui< / title >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
< meta http-equiv = "Content-Language" content = "en-gb" >
< link href = "inweb.css" rel = "stylesheet" rev = "stylesheet" type = "text/css" >
< / head >
< body >
<!-- Weave of '1/bsc' generated by 7 -->
< ul class = "crumbs" > < li > < a href = "../webs.html" > ★ < / a > < / li > < li > < a href = "index.html" > inpolicy 1< / a > < / li > < li > < a href = "index.html#1" > Chapter 1: Setting Up< / a > < / li > < li > < b > Basics< / b > < / li > < / ul > < p class = "purpose" > Some fundamental definitions.< / p >
< ul class = "toc" > < li > < a href = "#SP1" > § 1. Build identity< / a > < / li > < li > < a href = "#SP2" > § 2. Setting up the memory manager< / a > < / li > < / ul > < hr class = "tocbar" >
< p class = "inwebparagraph" > < a id = "SP1" > < / a > < b > § 1. Build identity. < / b > First we define the build, using a notation which tangles out to the current
build number as specified in the contents section of this web.
< / p >
< pre class = "definitions" >
< span class = "definitionkeyword" > define< / span > < span class = "constant" > INTOOL_NAME< / span > < span class = "plain" > < / span > < span class = "string" > "inpolicy"< / span >
< / pre >
< p class = "inwebparagraph" > < a id = "SP2" > < / a > < b > § 2. Setting up the memory manager. < / b > We need to itemise the structures we'll want to allocate:
< / p >
< pre class = "definitions" >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > known_problem_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > version_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > project_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > macro_MT< / span >
< span class = "definitionkeyword" > enum< / span > < span class = "constant" > macro_tokens_MT< / span >
< / pre >
< p class = "inwebparagraph" > < a id = "SP3" > < / a > < b > § 3. < / b > And then expand:
< / p >
< pre class = "display" >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > known_problem< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > version< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > project< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > macro< / span > < span class = "plain" > )< / span >
< span class = "identifier" > ALLOCATE_INDIVIDUALLY< / span > < span class = "plain" > (< / span > < span class = "reserved" > macro_tokens< / span > < span class = "plain" > )< / span >
< / pre >
< p class = "inwebparagraph" > < / p >
< hr class = "tocbar" >
< ul class = "toc" > < li > < i > (This section begins Chapter 1: Setting Up.)< / i > < / li > < li > < a href = "1-mn.html" > Continue with 'Main'< / a > < / li > < / ul > < hr class = "tocbar" >
2019-04-22 17:42:10 +03:00
<!-- End of weave -->
2019-03-17 14:40:57 +02:00
< / body >
< / html >