2020-02-15 20:01:48 +00:00
|
|
|
U8 *Tabs2Spaces(U8 *src)
|
|
|
|
{//MAlloc str with tabs to spaces.
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
I64 ch, i, j, l = StrLen(src) << 1 + 2, col = 0;
|
|
|
|
U8 *dst = MAlloc(l), *tmp;
|
|
|
|
|
|
|
|
while (ch = *src++)
|
|
|
|
{
|
|
|
|
if (ch == '\t')
|
|
|
|
{
|
|
|
|
j = (col + 8) & ~7;
|
|
|
|
for (i = col; i < j; i++)
|
|
|
|
{
|
|
|
|
dst[i] = CH_SPACE;
|
|
|
|
if (i >= l - 2)
|
|
|
|
{
|
|
|
|
tmp = MAlloc(l << 1);
|
|
|
|
MemCopy(tmp, dst, i + 1);
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(dst);
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
l <<= 1;
|
|
|
|
dst = tmp;
|
2020-02-20 23:40:10 +00:00
|
|
|
}
|
|
|
|
}
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
col = j;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
dst[col] = ch;
|
|
|
|
if (col >= l - 2)
|
|
|
|
{
|
|
|
|
tmp = MAlloc(l << 1);
|
|
|
|
MemCopy(tmp, dst, col + 1);
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(dst);
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
l <<= 1;
|
|
|
|
dst = tmp;
|
2020-02-20 23:40:10 +00:00
|
|
|
}
|
|
|
|
col++;
|
|
|
|
}
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
dst[col] = 0;
|
2020-02-20 23:40:10 +00:00
|
|
|
return dst;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
U8 *ScaleIndent(U8 *src, F64 indent_scale_factor)
|
2020-02-20 23:40:10 +00:00
|
|
|
{//MAlloced str. 8*0.25-->2 or 8*2.0-->16
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
I64 ch, i, col = 0;
|
|
|
|
U8 *dst, *dst2;
|
|
|
|
|
|
|
|
while (ch = *src++)
|
|
|
|
{
|
|
|
|
if (ch == '\t')
|
|
|
|
col = (col + 8) & -0x8;
|
|
|
|
else if (ch == CH_SPACE)
|
2020-02-20 23:40:10 +00:00
|
|
|
col++;
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
src--;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
col = Round(indent_scale_factor * col);
|
|
|
|
dst = dst2 = MAlloc(StrLen(src) + col / 8 + col & 7 + 1);
|
|
|
|
for (i = col / 8; i > 0; i--)
|
|
|
|
*dst2++ = '\t';
|
|
|
|
for (i = col & 7; i > 0; i--)
|
|
|
|
*dst2++ = CH_SPACE;
|
|
|
|
StrCopy(dst2, src);
|
2020-02-20 23:40:10 +00:00
|
|
|
return dst;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
U8 *MStrUtil(U8 *src, I64 flags, F64 indent_scale_factor=0)
|
2020-02-15 20:01:48 +00:00
|
|
|
{//MAlloc $LK,"StrUtil",A="MN:StrUtil"$().
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
U8 *dst = StrNew(src), *dst2, *tmp;
|
|
|
|
|
|
|
|
StrUtil(dst, flags);
|
|
|
|
if (flags & SUF_T2S)
|
|
|
|
{
|
|
|
|
tmp = Tabs2Spaces(dst);
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(dst);
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
dst = tmp;
|
2020-02-20 23:40:10 +00:00
|
|
|
}
|
|
|
|
if (flags & SUF_SCALE_INDENT)
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
dst2 = ScaleIndent(dst, indent_scale_factor);
|
2020-02-20 23:40:10 +00:00
|
|
|
else
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
dst2 = StrNew(dst); //Shorten to just right size.
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(dst);
|
|
|
|
return dst2;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U0 GetOutOfDollar()
|
|
|
|
{//If a $$ has been printed, print another $$ to exit mode.
|
2020-02-20 23:40:10 +00:00
|
|
|
CDoc *doc;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
|
|
|
|
if (IsRaw)
|
|
|
|
{
|
|
|
|
if (text.raw_flags & RAWF_IN_DOLLAR)
|
2020-02-20 23:40:10 +00:00
|
|
|
'$$';
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (fp_doc_put && (doc = (*fp_doc_put)(Fs)) && doc->flags & DOCF_IN_DOLLAR)
|
2020-02-20 23:40:10 +00:00
|
|
|
'$$';
|
|
|
|
}
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool YorN()
|
|
|
|
{//Wait for user to answer Y or N.
|
2020-02-20 23:40:10 +00:00
|
|
|
I64 ch;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
|
2020-02-20 23:40:10 +00:00
|
|
|
"(y or n)? ";
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
while (TRUE)
|
|
|
|
{
|
|
|
|
ch = ToUpper(CharGet(, FALSE));
|
|
|
|
if (ch == 'Y')
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
"$$PT$$YES$$FG$$\n";
|
|
|
|
return TRUE;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
}
|
|
|
|
else if (ch == 'N')
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
"$$PT$$NO$$FG$$\n";
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
I64 PressAKey()
|
|
|
|
{//Print "Press a key" and wait for non-zero $LK,"ASCII",A="MN:CH_CTRLA"$ key.
|
2020-02-20 23:40:10 +00:00
|
|
|
"$$BK,1$$PRESS A KEY$$BK,0$$\n";
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
return CharGet(, FALSE);
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool AreYouSure()
|
|
|
|
{//Print "Are you sure" and waits for Y or N.
|
2020-02-20 23:40:10 +00:00
|
|
|
"ARE YOU SURE ";
|
|
|
|
return YorN;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
U0 Help()
|
2020-02-15 22:25:33 +00:00
|
|
|
{//Debug help or master help index file.
|
2020-02-20 23:40:10 +00:00
|
|
|
if (IsDebugMode)
|
|
|
|
DebugHelp;
|
|
|
|
else
|
|
|
|
PopUp("Type(\"::/Doc/HelpIndex.DD\");DocTop;View;");
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
U0 FlagsScan(U8 *_dst_flags, U8 *list, U8 *src)
|
2020-02-15 20:01:48 +00:00
|
|
|
{/*More than 64 flags. Flags passed by ref.
|
|
|
|
|
|
|
|
Examples:
|
2020-04-10 01:43:07 +01:00
|
|
|
$LK,"FlagsScan",A="FF:::/Zenith/Utils/Find.CC,FlagsScan:2"$(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags);
|
2020-02-15 20:01:48 +00:00
|
|
|
|
|
|
|
I64 flags=0;
|
2020-04-10 01:43:07 +01:00
|
|
|
FlagsScan(&flags,"R\0L\0Dump\0Scan\0","+Dump-R"); //Sets Bit#2, Clears Bit#0.
|
2020-02-15 20:01:48 +00:00
|
|
|
*/
|
2020-02-20 23:40:10 +00:00
|
|
|
I64 i;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
U8 *buf, *ptr;
|
|
|
|
|
|
|
|
if (src)
|
|
|
|
{
|
|
|
|
buf = MAlloc(StrLen(src) + 1);
|
|
|
|
while (*src)
|
|
|
|
{
|
|
|
|
while (*src && *src != '+' && *src != '-')
|
2020-02-20 23:40:10 +00:00
|
|
|
src++;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
if (*src == '+')
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
src++;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
if (*src)
|
|
|
|
{
|
|
|
|
ptr = buf;
|
|
|
|
while (*src && *src != '+' && *src != '-' && *src != CH_SPACE)
|
|
|
|
*ptr++ = *src++;
|
|
|
|
*ptr = 0;
|
|
|
|
i = ListMatch(buf, list);
|
|
|
|
if (i >= 0)
|
|
|
|
LBts(_dst_flags, i);
|
|
|
|
else
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(buf);
|
|
|
|
throw('ScanFlag');
|
|
|
|
}
|
|
|
|
}
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
}
|
|
|
|
else if (*src == '-')
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
src++;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
if (*src)
|
|
|
|
{
|
|
|
|
ptr = buf;
|
|
|
|
while (*src && *src != '+' && *src != '-' && *src != CH_SPACE)
|
|
|
|
*ptr++ = *src++;
|
|
|
|
*ptr = 0;
|
|
|
|
i = ListMatch(buf, list);
|
|
|
|
if (i >= 0)
|
|
|
|
LBtr(_dst_flags, i);
|
|
|
|
else
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
Free(buf);
|
|
|
|
throw('ScanFlag');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Free(buf);
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-10 01:43:07 +01:00
|
|
|
U8 *FlagsStrPrint(U8 *dst, U8 *list, I64 flags, Bool print_all=FALSE, I64 print_all_length=0)
|
2020-03-29 23:11:28 +01:00
|
|
|
{//Only 64 flags. Flags passed by value. print_all will print false flags using `-`.
|
|
|
|
//Specify print_all_length (list length) if print_all is true.
|
|
|
|
I64 i = 0;
|
Reformatted more Kernel files.
Reformatted KMathA.CC, KMathB.CC, KMisc.CC, KTask.CC, KUtils.CC, Kernel.PRJ, KernelA.HH, KernelB.HH, KernelC.HH, KeyDev.CC, MultiProc.CC, PCIBIOS.CC, QuickSort.CC, Sched.CC, StrA.CC, StrB.CC, StrPrint.CC, StrScan.CC.
All top-level Kernel files are now reformatted. Remaining are files in Kernel/ subdirectories.
2020-09-12 22:37:51 +01:00
|
|
|
|
2020-03-29 23:11:28 +01:00
|
|
|
*dst = 0;
|
|
|
|
if (!print_all_length)
|
|
|
|
print_all_length = 64;
|
|
|
|
while (i < print_all_length)
|
|
|
|
{
|
|
|
|
if (Bt(&flags, i))
|
|
|
|
CatPrint(dst, "+%z", i, list);
|
|
|
|
else if (print_all)
|
|
|
|
CatPrint(dst, "-%z", i, list);
|
|
|
|
i++;
|
2020-02-20 23:40:10 +00:00
|
|
|
}
|
|
|
|
return dst;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|