File: std-vars.xsl

package info (click to toggle)
xgridfit 2.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,000 kB
  • sloc: python: 1,262; xml: 466; sh: 283; makefile: 116; sed: 45
file content (64 lines) | stat: -rw-r--r-- 3,037 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:xgf="http://xgridfit.sourceforge.net/Xgridfit2"
                version="1.0"
                exclude-result-prefixes="xgf">

  <xsl:variable name="xgf-version" select="'2.1'"/>
  <!--
      First in the Storage Area is a block of locations used by legacy
      code (defined as the "legacy-storage" default). Next come some
      reserved locations used by Xgridfit to track state
      information. Next is the global variable area and finally a
      growable variable frame area.
  -->
  <xsl:variable name="var-round-state" select="0"/>
  <xsl:variable name="var-sround-info" select="1"/>
  <xsl:variable name="var-round-state-default" select="2"/>
  <xsl:variable name="var-sround-info-default" select="3"/>
  <xsl:variable name="var-return-value" select="4"/>
  <xsl:variable name="var-minimum-distance" select="5"/>
  <xsl:variable name="var-minimum-distance-default" select="6"/>
  <xsl:variable name="var-control-value-cut-in" select="7"/>
  <xsl:variable name="var-control-value-cut-in-default" select="8"/>
  <xsl:variable name="var-single-width" select="9"/>
  <xsl:variable name="var-single-width-cut-in" select="10"/>
  <xsl:variable name="var-single-width-default" select="11"/>
  <xsl:variable name="var-single-width-cut-in-default" select="12"/>
  <xsl:variable name="var-delta-base" select="13"/>
  <xsl:variable name="var-delta-base-default" select="14"/>
  <xsl:variable name="var-delta-shift" select="15"/>
  <xsl:variable name="var-delta-shift-default" select="16"/>
  <xsl:variable name="var-function-stack-count" select="17"/>
  <xsl:variable name="var-frame-bottom" select="18"/>
  <xsl:variable name="var-frame-top" select="19"/>
  <xsl:variable name="reg0" select="20"/>
  <xsl:variable name="reg1" select="21"/>
  <xsl:variable name="reg2" select="22"/>
  <xsl:variable name="reg3" select="23"/>

  <!-- This number + 1 is the lowest address of a global variable. -->
  <xsl:variable name="global-variable-base" select="23"/>
  <!-- This number + 1 is the lowest address of a variable
       in a glyph program or function. -->
  <xsl:variable name="variable-frame-base"
                select="$global-variable-base +
			count(/xgf:xgridfit/xgf:variable)"/>

  <xsl:variable name="no-namespace-error">
    <xsl:text>Either the xgridfit element is missing or it lacks the required</xsl:text>
    <xsl:value-of select="$text-newline"/>
    <xsl:text>namespace declaration. Run xgfupdate on this file to correct.</xsl:text>
    <xsl:value-of select="$text-newline"/>
  </xsl:variable>

  <xsl:variable name="py-start-message">
    <xsl:value-of select="$text-newline"/>
    <xsl:text># Program generated by Xgridfit, version </xsl:text>
    <xsl:value-of select="$xgf-version"/>
    <xsl:value-of select="$text-newline"/>
    <xsl:text># Don't edit this file unless you are very sure of what you're doing.</xsl:text>
    <xsl:value-of select="$text-newline"/>
  </xsl:variable>

</xsl:stylesheet>