Compare commits
4 Commits
dc279a53e2
...
6548bc18cc
Author | SHA1 | Date | |
---|---|---|---|
6548bc18cc | |||
707f39364f | |||
def456d7e2 | |||
73eaee7c6d |
24
Copy.HC
24
Copy.HC
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
U8 *FilenameToURL(U8 *filename, I64 line)
|
U8 *FilenameToURL(U8 *filename, I64 line)
|
||||||
{
|
{
|
||||||
filename[StrLen(filename) - 2] = NULL;
|
filename[StrLen(filename) - 2] = NULL;
|
||||||
|
|
||||||
U8 *htmlext = "";
|
U8 *htmlext = "";
|
||||||
if (StrMatch(".DD", filename))
|
if (StrMatch(".DD", filename))
|
||||||
htmlext = ".HTML";
|
htmlext = ".HTML";
|
||||||
|
|
||||||
return MStrPrint("/src%s%s#l%d", filename + 2, htmlext, line);
|
return MStrPrint("/Wb%s%s#l%d", filename + 2, htmlext, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
U8 *LinkCvt(U8 *link_st)
|
U8 *LinkCvt(U8 *link_st)
|
||||||
@ -48,22 +48,27 @@ U8 *LinkCvt(U8 *link_st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CDirEntry *start_entry = FilesFind(
|
CDirEntry *start_entry = FilesFind(
|
||||||
"/*.HC.Z;*.DD.Z;!/Home/*",
|
"/*.HC.Z;*/.HH.Z;*.DD.Z;!/Home/*",
|
||||||
FUF_RECURSE | FUF_JUST_FILES
|
FUF_RECURSE | FUF_JUST_FILES
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
CDirEntry *entry = start_entry;
|
CDirEntry *entry = start_entry;
|
||||||
|
|
||||||
U8 *header =
|
U8 *html_header =
|
||||||
"<!DOCTYPEhtml>\n"
|
"<!DOCTYPEhtml>\n"
|
||||||
"<html lang=\"en\">\n"
|
"<html lang=\"en\">\n"
|
||||||
"<head>\n"
|
"<head>\n"
|
||||||
"<meta charset=\"UTF-8\">\n"
|
"<meta charset=\"UTF-8\">\n"
|
||||||
"<meta name=\"generator\" content=\"TempleOS V5.03\">\n"
|
"<meta name=\"generator\" content=\"TempleOS V5.03\">\n"
|
||||||
|
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n"
|
||||||
"<link rel=\"stylesheet\" href=\"/style/templeos.css\">\n"
|
"<link rel=\"stylesheet\" href=\"/style/templeos.css\">\n"
|
||||||
"<script src=\"/script/templeos.js\"></script>\n";
|
"<script src=\"/script/templeos.js\"></script>\n";
|
||||||
|
|
||||||
|
U8 *body_header =
|
||||||
|
"<body>\n"
|
||||||
|
"<pre style=\"font-family: courier, monospace; font-size: 10pt;\">\n";
|
||||||
|
|
||||||
Del("C:/Home/Src", FALSE, TRUE);
|
Del("C:/Home/Src", FALSE, TRUE);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -86,9 +91,12 @@ do {
|
|||||||
ToHtml(
|
ToHtml(
|
||||||
entry->full_name,
|
entry->full_name,
|
||||||
new_name,
|
new_name,
|
||||||
header,
|
html_header,
|
||||||
NULL, NULL, NULL,
|
body_header,
|
||||||
80, TRUE,
|
NULL,
|
||||||
|
NULL,
|
||||||
|
80,
|
||||||
|
TRUE,
|
||||||
&LinkCvt,
|
&LinkCvt,
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
@ -96,4 +104,4 @@ do {
|
|||||||
|
|
||||||
} while (entry = entry->next);
|
} while (entry = entry->next);
|
||||||
|
|
||||||
DirTreeDel(start_entry);
|
DirTreeDel(start_entry);
|
50
file_index.xslt
Normal file
50
file_index.xslt
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
<xsl:param name="directory"/>
|
||||||
|
|
||||||
|
<xsl:template match="/">
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
|
<title>TempleOS files</title>
|
||||||
|
<link rel="stylesheet" href="/style/templeos.css"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<pre style="font-family: courier, monospace; font-size: 10pt; width: 700px; max-width: 100%;">
|
||||||
|
<p>Index of <script>document.write(location.pathname.substr(3));</script></p>
|
||||||
|
|
||||||
|
<a href=".." style="color: #aa00aa;">..</a>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<xsl:for-each select="list/*">
|
||||||
|
<xsl:variable name="name">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($name, '.DD.HTML')">
|
||||||
|
<a href="{$name}" style="color: #5555ff;"><xsl:value-of select="substring-before($name, '.HTML')"/></a>
|
||||||
|
</xsl:when>
|
||||||
|
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($name, '.')">
|
||||||
|
<a href="{$name}" style="color: #5555ff;"><xsl:value-of select="."/></a>
|
||||||
|
</xsl:when>
|
||||||
|
|
||||||
|
<xsl:otherwise>
|
||||||
|
<a href="{$name}" style="color: #aa00aa;">+] <xsl:value-of select="."/></a>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
</xsl:for-each>
|
||||||
|
</pre>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
BIN
public/Wb/Adam/AutoComplete/ACDefs.DATA
Executable file
BIN
public/Wb/Adam/AutoComplete/ACDefs.DATA
Executable file
Binary file not shown.
3
public/src/Adam/God/HSNotes.DD.HTML → public/Wb/Adam/God/HSNotes.DD.HTML
Normal file → Executable file
3
public/src/Adam/God/HSNotes.DD.HTML → public/Wb/Adam/God/HSNotes.DD.HTML
Normal file → Executable file
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="generator" content="TempleOS V5.03">
|
<meta name="generator" content="TempleOS V5.03">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" href="/style/templeos.css">
|
<link rel="stylesheet" href="/style/templeos.css">
|
||||||
<script src="/script/templeos.js"></script>
|
<script src="/script/templeos.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -25,7 +26,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<pre style="font-family:courier;font-size:10pt">
|
<pre style="font-family: courier, monospace; font-size: 10pt;">
|
||||||
<a name="l1"></a><span class=cF5> The Purpose of Life</span><span class=cF0>
|
<a name="l1"></a><span class=cF5> The Purpose of Life</span><span class=cF0>
|
||||||
<a name="l2"></a>
|
<a name="l2"></a>
|
||||||
<a name="l3"></a>The Catholic purpose of life is to know God, love God and obey God. However,
|
<a name="l3"></a>The Catholic purpose of life is to know God, love God and obey God. However,
|
3
public/src/Adam/God/Vocab.DD.HTML → public/Wb/Adam/God/Vocab.DD.HTML
Normal file → Executable file
3
public/src/Adam/God/Vocab.DD.HTML → public/Wb/Adam/God/Vocab.DD.HTML
Normal file → Executable file
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="generator" content="TempleOS V5.03">
|
<meta name="generator" content="TempleOS V5.03">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="stylesheet" href="/style/templeos.css">
|
<link rel="stylesheet" href="/style/templeos.css">
|
||||||
<script src="/script/templeos.js"></script>
|
<script src="/script/templeos.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -25,7 +26,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<pre style="font-family:courier;font-size:10pt">
|
<pre style="font-family: courier, monospace; font-size: 10pt;">
|
||||||
<a name="l1"></a><span class=cF0>a
|
<a name="l1"></a><span class=cF0>a
|
||||||
<a name="l2"></a>abandon
|
<a name="l2"></a>abandon
|
||||||
<a name="l3"></a>abandoned
|
<a name="l3"></a>abandoned
|
180
public/Wb/Adam/Gr/Gr.HH
Normal file
180
public/Wb/Adam/Gr/Gr.HH
Normal file
@ -0,0 +1,180 @@
|
|||||||
|
#help_index "Sprites/Binary"
|
||||||
|
|
||||||
|
class CMeshTri
|
||||||
|
{
|
||||||
|
I32 color; //Give one of 0-7 colors.
|
||||||
|
//Colors 8-15 are 0-7 with intensity bit set.
|
||||||
|
I32 nums[3]; //Vertex number
|
||||||
|
};
|
||||||
|
|
||||||
|
class CQueMeshTri
|
||||||
|
{
|
||||||
|
CQueMeshTri *next,*last;
|
||||||
|
U0 start;
|
||||||
|
I32 color;
|
||||||
|
I32 nums[3];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteBase
|
||||||
|
{
|
||||||
|
U8 type;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteColor : CSpriteBase
|
||||||
|
{
|
||||||
|
U8 color;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteDitherColor : CSpriteBase
|
||||||
|
{
|
||||||
|
U16 dither_color;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteT : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 thick;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePt : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 x1;
|
||||||
|
I32 y1;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtRad : CSpritePt
|
||||||
|
{
|
||||||
|
I32 radius;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtPt : CSpritePt
|
||||||
|
{
|
||||||
|
I32 x2;
|
||||||
|
I32 y2;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtPtAng : CSpritePtPt
|
||||||
|
{
|
||||||
|
F64 angle;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtWH : CSpritePt
|
||||||
|
{
|
||||||
|
I32 width;
|
||||||
|
I32 height;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtWHU8s : CSpritePtWH
|
||||||
|
{
|
||||||
|
U8 u[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtWHAng : CSpritePtWH
|
||||||
|
{
|
||||||
|
F64 angle;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtWHAngSides : CSpritePtWHAng
|
||||||
|
{
|
||||||
|
I32 sides;
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteNumU8s : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 num;
|
||||||
|
U8 u[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteNumPtU8s : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 num;
|
||||||
|
I32 x;
|
||||||
|
I32 y;
|
||||||
|
U8 u[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtStr : CSpritePt
|
||||||
|
{
|
||||||
|
U8 st[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpriteMeshU8s : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 vertex_cnt;
|
||||||
|
I32 tri_cnt;
|
||||||
|
U8 u[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CSpritePtMeshU8s : CSpriteBase
|
||||||
|
{
|
||||||
|
I32 x;
|
||||||
|
I32 y;
|
||||||
|
I32 z;
|
||||||
|
I32 vertex_cnt;
|
||||||
|
I32 tri_cnt;
|
||||||
|
U8 u[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
#define SPF_SEL 128
|
||||||
|
#define SPf_SEL 7
|
||||||
|
|
||||||
|
#define SPT_END 0 //$LK,"CSpriteBase",A="MN:CSpriteBase"$
|
||||||
|
#define SPT_COLOR 1 //$LK,"CSpriteColor",A="MN:CSpriteColor"$
|
||||||
|
#define SPT_DITHER_COLOR 2 //$LK,"CSpriteDitherColor",A="MN:CSpriteDitherColor"$
|
||||||
|
#define SPT_THICK 3 //$LK,"CSpriteT",A="MN:CSpriteT"$
|
||||||
|
#define SPT_PLANAR_SYMMETRY 4 //$LK,"CSpritePtPt",A="MN:CSpritePtPt"$
|
||||||
|
#define SPT_TRANSFORM_ON 5 //$LK,"CSpriteBase",A="MN:CSpriteBase"$
|
||||||
|
#define SPT_TRANSFORM_OFF 6 //$LK,"CSpriteBase",A="MN:CSpriteBase"$
|
||||||
|
#define SPT_SHIFT 7 //$LK,"CSpritePt",A="MN:CSpritePt"$
|
||||||
|
#define SPT_PT 8 //$LK,"CSpritePt",A="MN:CSpritePt"$
|
||||||
|
#define SPT_POLYPT 9 //$LK,"CSpriteNumPtU8s",A="MN:CSpriteNumPtU8s"$
|
||||||
|
#define SPT_LINE 10 //$LK,"CSpritePtPt",A="MN:CSpritePtPt"$
|
||||||
|
#define SPT_POLYLINE 11 //$LK,"CSpriteNumU8s",A="MN:CSpriteNumU8s"$
|
||||||
|
#define SPT_RECT 12 //$LK,"CSpritePtPt",A="MN:CSpritePtPt"$
|
||||||
|
#define SPT_ROTATED_RECT 13 //$LK,"CSpritePtPtAng",A="MN:CSpritePtPtAng"$
|
||||||
|
#define SPT_CIRCLE 14 //$LK,"CSpritePtRad",A="MN:CSpritePtRad"$
|
||||||
|
#define SPT_ELLIPSE 15 //$LK,"CSpritePtWHAng",A="MN:CSpritePtWHAng"$
|
||||||
|
#define SPT_POLYGON 16 //$LK,"CSpritePtWHAngSides",A="MN:CSpritePtWHAngSides"$
|
||||||
|
#define SPT_BSPLINE2 17 //$LK,"CSpriteNumU8s",A="MN:CSpriteNumU8s"$
|
||||||
|
#define SPT_BSPLINE2_CLOSED 18 //$LK,"CSpriteNumU8s",A="MN:CSpriteNumU8s"$
|
||||||
|
#define SPT_BSPLINE3 19 //$LK,"CSpriteNumU8s",A="MN:CSpriteNumU8s"$
|
||||||
|
#define SPT_BSPLINE3_CLOSED 20 //$LK,"CSpriteNumU8s",A="MN:CSpriteNumU8s"$
|
||||||
|
#define SPT_FLOOD_FILL 21 //$LK,"CSpritePt",A="MN:CSpritePt"$
|
||||||
|
#define SPT_FLOOD_FILL_NOT 22 //$LK,"CSpritePt",A="MN:CSpritePt"$
|
||||||
|
#define SPT_BITMAP 23 //$LK,"CSpritePtWHU8s",A="MN:CSpritePtWHU8s"$
|
||||||
|
#define SPT_MESH 24 //$LK,"CSpriteMeshU8s",A="MN:CSpriteMeshU8s"$ See $MA-X+PU,"::/Apps/GrModels",LM="Cd(\"::/Apps/GrModels\");Dir;View;\n"$.
|
||||||
|
#define SPT_SHIFTABLE_MESH 25 //$LK,"CSpritePtMeshU8s",A="MN:CSpritePtMeshU8s"$ See $MA-X+PU,"::/Apps/GrModels",LM="Cd(\"::/Apps/GrModels\");Dir;View;\n"$.
|
||||||
|
#define SPT_ARROW 26 //$LK,"CSpritePtPt",A="MN:CSpritePtPt"$
|
||||||
|
#define SPT_TEXT 27 //$LK,"CSpritePtStr",A="MN:CSpritePtStr"$
|
||||||
|
#define SPT_TEXT_BOX 28 //$LK,"CSpritePtStr",A="MN:CSpritePtStr"$
|
||||||
|
#define SPT_TEXT_DIAMOND 29 //$LK,"CSpritePtStr",A="MN:CSpritePtStr"$
|
||||||
|
#define SPT_TYPES_NUM 30
|
||||||
|
#define SPG_TYPE_MASK 0x7F
|
||||||
|
|
||||||
|
#help_index "Graphics/Sprite;Sprites;Sprites/Binary"
|
||||||
|
|
||||||
|
//See $LK,"Sprites",A="HI:Sprites"$. See $LK,"::/Adam/Gr/GrSpritePlot.HC",A="FL:::/Adam/Gr/GrSpritePlot.HC,1"$ and
|
||||||
|
//$LK,"::/Demo/Graphics/SpriteRaw.HC"$ for how CSprite are stored.
|
||||||
|
public class CSprite
|
||||||
|
{
|
||||||
|
CSprite *next,*last;
|
||||||
|
U0 start;
|
||||||
|
union {
|
||||||
|
U8 type;
|
||||||
|
CSpriteBase b;
|
||||||
|
CSpriteColor c;
|
||||||
|
CSpriteDitherColor d;
|
||||||
|
CSpriteT t;
|
||||||
|
CSpritePt p;
|
||||||
|
CSpritePtPt pp;
|
||||||
|
CSpritePtPtAng ppa;
|
||||||
|
CSpritePtRad pr;
|
||||||
|
CSpritePtWHU8s pwhu;
|
||||||
|
CSpritePtWHAng pwha;
|
||||||
|
CSpritePtWHAngSides pwhas;
|
||||||
|
CSpriteNumU8s nu;
|
||||||
|
CSpriteNumPtU8s npu;
|
||||||
|
CSpriteMeshU8s mu;
|
||||||
|
CSpritePtMeshU8s pmu;
|
||||||
|
CSpritePtStr ps;
|
||||||
|
}
|
||||||
|
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user