mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Rename CosmiC to ZealC.
Rename all .CC files to .ZC extension.
This commit is contained in:
parent
48d4f999cb
commit
3a33e6baaf
639 changed files with 733 additions and 1804 deletions
BIN
build/AUTO.ISO
BIN
build/AUTO.ISO
Binary file not shown.
|
@ -16,8 +16,8 @@ sudo qemu-nbd -c dev/nbd0 -f raw ./ZealOS.raw
|
|||
sudo partprobe /dev/nbd0
|
||||
echo "Merging with src/"
|
||||
sudo mount /dev/nbd0p1 /tmp/zealtmp
|
||||
rm ../src/Home/Registry.CC # we use Registry for auto-iso process, don't want to overwrite
|
||||
rm ../src/Home/MakeHome.CC # unneeded file
|
||||
rm ../src/Home/Registry.ZC # we use Registry for auto-iso process, don't want to overwrite
|
||||
rm ../src/Home/MakeHome.ZC # unneeded file
|
||||
sudo cp -r ../src/* /tmp/zealtmp/
|
||||
sudo sync
|
||||
echo "Files copied, unmounting"
|
||||
|
|
|
@ -62,7 +62,7 @@ I64 AddTri(BallDefineStruct *, I64 c, I64 n0, I64 n1, I64 n2)
|
|||
|
||||
U8 *Ball2CSprite()
|
||||
{
|
||||
//See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ for how CSprite are stored.
|
||||
//See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ for how CSprite are stored.
|
||||
U8 *res = MAlloc(sizeof(CSpriteMeshU8s) +
|
||||
b->vertex_count * sizeof(CD3I32) +
|
||||
b->tri_count * sizeof(CMeshTri) + sprite_elem_base_sizes[SPT_END]),
|
|
@ -187,7 +187,7 @@ U0 AddBox(ManDefineStruct *md, I64 c,
|
|||
|
||||
U8 *Man2CSprite()
|
||||
{
|
||||
//See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ for how CSprite are stored.
|
||||
//See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ for how CSprite are stored.
|
||||
U8 *res = MAlloc(sizeof(CSpriteMeshU8s) +
|
||||
m->vertex_count * sizeof(CD3I32) + m->tri_count * sizeof(CMeshTri) + sprite_elem_base_sizes[SPT_END]),
|
||||
*dst = res;
|
|
@ -1,5 +1,5 @@
|
|||
//The ball and men were generated
|
||||
//with $LK,"::/Apps/GrModels/Run.CC"$.
|
||||
//with $LK,"::/Apps/GrModels/Run.ZC"$.
|
||||
//They were cut-and-pasted here.
|
||||
|
||||
$BG,YELLOW$
|
|
@ -4,10 +4,10 @@ $WW,1$$FG,5$$TX+CX,"Psalmody Help"$$FG$
|
|||
|
||||
* The clip can be used to cut and paste.
|
||||
|
||||
* $FG,2$Psalmody$FG$ uses $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ files as the song format! See $LK,"::/Apps/Psalmody/Examples/prosper.CC"$. The $FG,2$Psalmody$FG$ program does not fully parse the songs when loading them back in, so changes made outside $FG,2$Psalmody$FG$ will be lost, like if you add graphics.
|
||||
* $FG,2$Psalmody$FG$ uses $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ files as the song format! See $LK,"::/Apps/Psalmody/Examples/prosper.ZC"$. The $FG,2$Psalmody$FG$ program does not fully parse the songs when loading them back in, so changes made outside $FG,2$Psalmody$FG$ will be lost, like if you add graphics.
|
||||
|
||||
* The first line of the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can request your reward from God by pressing $FG,2$r$FG$. You can press $FG,2$<DEL>$FG$ to delete songs.
|
||||
* The first line of the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can request your reward from God by pressing $FG,2$r$FG$. You can press $FG,2$<DEL>$FG$ to delete songs.
|
||||
|
||||
* You can take the $LK,"Play",A="MN:Play"$() statements out of a song file and place them in your programs. You can also add a song to a document with $FG,2$<CTRL-l>$FG$, but you should do it after pressing $FG,2$<CTRL-t>$FG$ because the clip-insert in $FG,2$<CTRL-l>$FG$ is screwy. See this $SO,"<Song>",A="4qG5EC4BeGG5qCeFD4sB5G4B5G4qG5EC4BeGG5qCeFD4sB5G4B5GqEeEFqE4BeG5FetC4A5GqFCEeEFqE4BeG5FetC4A5GqFC"$ after pressing $FG,2$<CTRL-t>$FG$, now.
|
||||
|
||||
* You can call $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$("~/Psalmody"); to play your songs.
|
||||
* You can call $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$("~/Psalmody"); to play your songs.
|
||||
|
|
|
@ -134,7 +134,7 @@ public U0 JukeBox(U8 *dirname="~/Psalmody", U8 **_filename=NULL)
|
|||
try
|
||||
{
|
||||
dirname = StrNew(dirname);
|
||||
st = MStrPrint("%s/*.CC", dirname);
|
||||
st = MStrPrint("%s/*.ZC", dirname);
|
||||
tmpde = tmpde1 = FilesFind(st);
|
||||
Free(st);
|
||||
Free(dirname);
|
|
@ -489,7 +489,7 @@ U8 *PsmSaveSong(U8 *dirname, U8 *full_filename)
|
|||
if (full_filename)
|
||||
Free(full_filename);
|
||||
else
|
||||
StrPrint(doc->filename.name, "%s/Tmp.CC", dirname);
|
||||
StrPrint(doc->filename.name, "%s/Tmp.ZC", dirname);
|
||||
DocWrite(doc, TRUE);
|
||||
full_filename = StrNew(doc->filename.name);
|
||||
DocDel(doc);
|
|
@ -440,10 +440,10 @@ U0 PlayerPick(U8 *dirname, I64 player)
|
|||
CDoc *doc = DocNew;
|
||||
Bool *old_silent = Silent;
|
||||
|
||||
st = MStrPrint("%s/*.CC*", dirname);
|
||||
st = MStrPrint("%s/*.ZC*", dirname);
|
||||
tmpde = FilesFind(st);
|
||||
Free(st);
|
||||
tmpde2 = FilesFind("~/ToTheFront/*.CC*");
|
||||
tmpde2 = FilesFind("~/ToTheFront/*.ZC*");
|
||||
tmpde1 = tmpde;
|
||||
Silent(old_silent);
|
||||
|
|
@ -711,7 +711,7 @@ I64 ExePrint(U8 *format, ...)
|
|||
I64 ExeFile(U8 *name, I64 ccf_flags=0)
|
||||
{//JIT Compile and execute a file.
|
||||
I64 res;
|
||||
U8 *name2 = ExtDefault(name, "CC"), *st = MStrPrint("#include \"%s\";", name2);
|
||||
U8 *name2 = ExtDefault(name, "ZC"), *st = MStrPrint("#include \"%s\";", name2);
|
||||
|
||||
res = ExePutS(st, name, ccf_flags);
|
||||
Free(st);
|
||||
|
@ -760,7 +760,7 @@ I64 ExePrint2(U8 *format, ...)
|
|||
I64 ExeFile2(U8 *name, I64 ccf_flags=0)
|
||||
{//throws exceptions
|
||||
I64 res;
|
||||
U8 *name2 = ExtDefault(name, "CC"), *st = MStrPrint("#include \"%s\";", name2);
|
||||
U8 *name2 = ExtDefault(name, "ZC"), *st = MStrPrint("#include \"%s\";", name2);
|
||||
|
||||
res = ExePutS2(st, name, ccf_flags);
|
||||
Free(st);
|
|
@ -34,7 +34,7 @@ CCompCtrl *CompCtrlNew(U8 *buf=NULL, I64 flags=0, U8 *filename=NULL)
|
|||
{//MAlloc and Init CCompCtrl.
|
||||
//Frees buf in $LK,"CompCtrlDel",A="MN:CompCtrlDel"$ unless $LK,"CCF_DONT_FREE_BUF",A="MN:CCF_DONT_FREE_BUF"$ flag is set.
|
||||
//FileName is for error reporting. If files are #included,
|
||||
//new names are used. See $LK,"Psalmody CompCtrlNew",A="FF:::/Apps/Psalmody/PsalmodyFile.CC,CompCtrlNew"$.
|
||||
//new names are used. See $LK,"Psalmody CompCtrlNew",A="FF:::/Apps/Psalmody/PsalmodyFile.ZC,CompCtrlNew"$.
|
||||
CCompCtrl *cc = CAlloc(sizeof(CCompCtrl));
|
||||
CLexFile *tmpf;
|
||||
|
||||
|
@ -842,7 +842,7 @@ lex_float_start:
|
|||
case KW_INCLUDE:
|
||||
if (Lex(cc) != TK_STR)
|
||||
goto lex_end;
|
||||
fbuf = ExtDefault(cc->cur_str, "CC");
|
||||
fbuf = ExtDefault(cc->cur_str, "ZC");
|
||||
buf2 = FileNameAbs(fbuf);
|
||||
Free(fbuf);
|
||||
if (Bt(&sys_run_level, RLf_DOC))
|
|
@ -48,7 +48,7 @@ U0 LexPopNoRestore(CCompCtrl *cc)
|
|||
}
|
||||
|
||||
I64 MemberMetaData(U8 *needle_str, CMemberList *haystack_member_list)
|
||||
{//Find meta data name, return meta data value. See $LK,"::/Demo/ClassMeta.CC"$.
|
||||
{//Find meta data name, return meta data value. See $LK,"::/Demo/ClassMeta.ZC"$.
|
||||
CMemberListMeta *meta = haystack_member_list->meta;
|
||||
|
||||
while (meta)
|
||||
|
@ -62,7 +62,7 @@ I64 MemberMetaData(U8 *needle_str, CMemberList *haystack_member_list)
|
|||
}
|
||||
|
||||
CMemberListMeta *MemberMetaFind(U8 *needle_str, CMemberList *haystack_member_list)
|
||||
{//Find meta data name, return meta data struct. See $LK,"::/Demo/ClassMeta.CC"$.
|
||||
{//Find meta data name, return meta data struct. See $LK,"::/Demo/ClassMeta.ZC"$.
|
||||
CMemberListMeta *meta = haystack_member_list->meta;
|
||||
|
||||
while (meta)
|
|
@ -3,7 +3,7 @@
|
|||
Pass #0
|
||||
When parsing the arg expressions to a function
|
||||
call, there is a call to OptPass012 to determine
|
||||
the type of the expression. $LK,"OptPass012",A="FF:::/Compiler/ParseExp.CC,OptPass012"$
|
||||
the type of the expression. $LK,"OptPass012",A="FF:::/Compiler/ParseExp.ZC,OptPass012"$
|
||||
|
||||
Pass #1 & #2
|
||||
Constant expressions are simplified.
|
|
@ -410,7 +410,7 @@ p4_sib:
|
|||
case IC_ASSIGN_PP:
|
||||
case IC_ASSIGN_MM:
|
||||
//this value was stashed during pass012 for pointer arithmetic
|
||||
tmpi->ic_class2 = tmpi->t.class2; //See $LK,"ic_class2",A="FF:::/Compiler/BackB.CC,ic_class2"$
|
||||
tmpi->ic_class2 = tmpi->t.class2; //See $LK,"ic_class2",A="FF:::/Compiler/BackB.ZC,ic_class2"$
|
||||
case IC_ASSIGN:
|
||||
case IC_SHL_EQU:
|
||||
case IC_SHR_EQU:
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue