2020-02-15 20:01:48 +00:00
|
|
|
/*
|
Rename abs_addres to abs_address.
Update documentation/comments to rename addr, fun, var, stmt, blk, desc, reg, seg, ptr, dup, clus, val, and bttn, to address, function, variable, statement, block, description, register, segment, pointer, duplicate, cluster, value, and button, respectively.
2021-10-07 02:35:32 +01:00
|
|
|
If you are sure a function won't be called before import is resolved, you can use
|
|
|
|
"import". Otherwise, use a function pointer variable and check it before calling.
|
2020-02-15 20:01:48 +00:00
|
|
|
*/
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
import U0 ClassRep(U8 *_d, U8 *class_name=lastclass, I64 max_depth=2, Bool u8_chars=FALSE, Bool fun=FALSE, I64 offset=0);
|
|
|
|
|
|
|
|
import U8 *DocSave(CDoc *doc, I64 *_size=NULL);
|
|
|
|
import Bool DocUnlock(CDoc *doc);
|
2021-07-03 00:38:56 +01:00
|
|
|
import Bool Ed(U8 *link_st=NULL, I64 edf_dof_flags=0);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
2021-07-02 00:53:42 +01:00
|
|
|
extern U0 SysErr(U8 *format, ...);
|
|
|
|
extern U0 SysLog(U8 *format, ...);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
2020-02-21 08:09:06 +00:00
|
|
|
extern I64 MemBIOSTotal();
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern I64 BlkDevAdd(CBlkDev *bd, I64 prt_num=I64_MIN, Bool whole_drive, Bool make_free);
|
|
|
|
extern CBlkDev *BlkDevCheck(CBlkDev *bd, Bool except=TRUE);
|
|
|
|
extern Bool BlkDevLock(CBlkDev *bd);
|
|
|
|
extern CBlkDev *BlkDevNextFreeSlot(U8 first_drive_let, I64 type);
|
|
|
|
extern Bool BlkDevUnlock(CBlkDev *bd, Bool reset=FALSE);
|
|
|
|
extern U0 BlkDevsRelease();
|
|
|
|
|
|
|
|
extern Bool BlkRead(CDrive *drive, U8 *buf, I64 blk, I64 count);
|
|
|
|
extern Bool BlkWrite(CDrive *drive, U8 *buf, I64 blk, I64 count);
|
|
|
|
|
2020-02-15 20:01:48 +00:00
|
|
|
extern U8 *Caller(I64 num=1);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern U8 *CatPrint(U8 *_dst, U8 *format, ...);
|
|
|
|
|
|
|
|
extern Bool Cd(U8 *dirname=NULL, Bool make_dirs=FALSE);
|
|
|
|
|
2020-02-15 22:25:33 +00:00
|
|
|
extern U0 DebugHelp();
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
2020-02-15 20:01:48 +00:00
|
|
|
extern U8 *Define(U8 *dname);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
extern I64 DefineMatch(U8 *needle, U8 *haystack_list_dname, I64 flags=0);
|
|
|
|
extern U8 *DefineSub(I64 sub, U8 *dname);
|
|
|
|
|
|
|
|
extern I64 Del(U8 *files_find_mask, Bool make_mask=FALSE, Bool del_dir=FALSE, Bool print_message=TRUE);
|
|
|
|
|
|
|
|
extern Bool DirMake(U8 *filename, I64 entry_count=0);
|
|
|
|
|
2021-08-04 20:25:55 +01:00
|
|
|
extern Bool Drive(U8 drv_let=0);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
extern U8 Drive2Letter(CDrive *drive=NULL);
|
|
|
|
extern U0 DriveBlkDevDel(CBlkDev *bd);
|
|
|
|
extern CDrive *DriveCheck(CDrive *drive, Bool except=TRUE);
|
|
|
|
extern U8 DriveTextAttrGet(U8 drv_let=0);
|
|
|
|
extern Bool DriveTypeSet(U8 drv_let, I64 type=FSt_REDSEA);
|
|
|
|
extern U0 DrivesRelease();
|
|
|
|
|
2020-02-16 02:31:50 +00:00
|
|
|
extern U0 DiskCacheInvalidate(CDrive *drive);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
2020-02-15 20:01:48 +00:00
|
|
|
extern U0 Exit();
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern U8 *ExtDefault(U8 *filename, U8 *extension);
|
|
|
|
|
|
|
|
extern I64 FAT32AllocClus(CDrive *drive, I64 c, I64 count);
|
|
|
|
extern I64 FAT32AllocContiguousClus(CDrive *drive, I64 count);
|
|
|
|
extern Bool FAT32DirNew(CDrive *drive, U8 *cur_dir, CDirEntry *tmpde, Bool free_old_chain);
|
|
|
|
extern Bool FAT32FileFind(CDrive *drive, I64 cur_dir_clus, U8 *name, CDirEntry *_res, I64 fuf_flags=0);
|
|
|
|
extern U0 FAT32Init(CDrive *drive);
|
|
|
|
|
2020-03-21 00:35:06 +00:00
|
|
|
extern U0 Free(U8 *addr);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern Bool FBlkRead(CFile *f, U8 *buf, I64 blk=FFB_NEXT_BLK, I64 count=1);
|
|
|
|
extern Bool FBlkWrite(CFile *f, U8 *buf, I64 blk=FFB_NEXT_BLK, I64 count=1);
|
|
|
|
extern U0 FClose(CFile *f);
|
|
|
|
extern CFile *FOpen(U8 *filename, U8 *flags, I64 count=0);
|
|
|
|
|
|
|
|
extern U8 *FileExtRemove(U8 *src, U8 *dst=NULL);
|
|
|
|
extern Bool FileFind(U8 *filename, CDirEntry *_de=NULL, I64 fuf_flags=0);
|
|
|
|
extern U8 *FileNameAbs(U8 *_filename, I64 fuf_flags=0);
|
|
|
|
extern U8 *FileRead(U8 *filename, I64 *_size=NULL, I64 *_attr=NULL);
|
|
|
|
extern I64 FileWrite(U8 *filename, U8 *fbuf, I64 size, CDate cdt=0, I64 attr=0);
|
|
|
|
|
2020-02-15 23:56:05 +00:00
|
|
|
extern I64 FlushMessages(CTask *task=NULL);
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern I64 CharGet(I64 *_scan_code=NULL, Bool echo=TRUE, Bool raw_cursor=FALSE);
|
|
|
|
extern I64 StrNGet(U8 *buf, I64 size, Bool allow_ext=TRUE);
|
|
|
|
|
|
|
|
extern CHeapCtrl *HeapCtrlInit(CHeapCtrl *hc=NULL, CTask *task=NULL, CBlkPool *bp);
|
|
|
|
|
|
|
|
extern Bool ISOInit(CDrive *drive, I64 blk);
|
|
|
|
|
2020-02-15 22:25:33 +00:00
|
|
|
extern Bool IsDebugMode();
|
2020-02-15 20:01:48 +00:00
|
|
|
extern Bool IsDir(U8 *dir_name);
|
|
|
|
extern Bool IsRaw();
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
|
|
|
extern U0 JobCtrlInit(CJobCtrl *ctrl);
|
|
|
|
extern U0 JobDel(CJob *tmpc);
|
|
|
|
extern U0 JobQueueDel(CJob *head);
|
|
|
|
extern I64 JobsHandler(I64 run_flags, CTask *task=NULL);
|
|
|
|
|
|
|
|
extern CBlkDev *Letter2BlkDev(U8 drv_let=0, Bool except=TRUE);
|
|
|
|
extern I64 Letter2BlkDevType(U8 drv_let);
|
|
|
|
extern CDrive *Letter2Drive(U8 drv_let=0, Bool except=TRUE);
|
|
|
|
extern U8 Letter2Letter(U8 drv_let=0);
|
|
|
|
|
|
|
|
extern U0 MPInt(U8 num, I64 cpu_num=1);
|
|
|
|
|
|
|
|
extern U8 *MStrPrint(U8 *format, ...);
|
|
|
|
extern U8 *StrNew(U8 *buf, CTask *mem_task=NULL);
|
|
|
|
|
|
|
|
extern U0 MouseHardSet(I64 x, I64 y, I64 z, I64 l, I64 r);
|
|
|
|
|
|
|
|
extern U0 Message(I64 message_code, I64 arg1, I64 arg2, I64 flags=0);
|
|
|
|
|
|
|
|
extern U0 Panic(U8 *message=NULL, I64 message_num=0, Bool panic=TRUE);
|
|
|
|
|
|
|
|
extern I64 PopUp(U8 *buf, CTask *parent=NULL, CTask **_pu_task=NULL);
|
|
|
|
|
|
|
|
extern U0 Print(U8 *format, ...);
|
2020-02-15 20:01:48 +00:00
|
|
|
extern U0 PutChars(U64 ch);
|
|
|
|
extern U0 PutS(U8 *st); //Use $LK,"Print",A="MN:Print"$()
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
|
2021-06-27 01:36:19 +01:00
|
|
|
extern U0 Reboot(Bool format_ramdisks=FALSE);
|
|
|
|
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
extern I64 RedSeaAllocClus(CDrive *drive, I64 count);
|
|
|
|
extern Bool RedSeaDirNew(CDrive *drive, U8 *cur_dir, CDirEntry *tmpde, Bool free_old_chain);
|
|
|
|
extern Bool RedSeaFileFind(CDrive *drive, I64 cur_dir_clus, U8 *name, CDirEntry *_res, I64 fuf_flags=0);
|
|
|
|
extern U0 RedSeaFormat(U8 drv_let, Bool quick=TRUE);
|
|
|
|
extern U0 RedSeaFreeFreeList(CDrive *drive);
|
|
|
|
extern U0 RedSeaInit(CDrive *drive);
|
|
|
|
extern Bool RedSeaValidate(U8 drv_let);
|
|
|
|
|
|
|
|
extern CTask *SpawnQueue(U0 (*fp_addr)(U8 *data), U8 *data=NULL,
|
2021-07-04 06:19:15 +01:00
|
|
|
U8 *task_name=NULL, I64 target_cpu, CTask *parent=NULL, //NULL means sys_task
|
Reformatted some kernel files.
Changed DVD Resolution in DoDistro to 1024x768.
Kernel files reformatted: Display.CC, EdLite.CC, FunSeg.CC, Job.CC, KConfig.CC, KDataTypes.CC, KDate.CC, KDebug.CC, KDefine.CC, KExcept.CC, KExterns.CC, KGlobals.CC, KHashA.CC, KHashB.CC, KInterrupts.CC, KLoad.CC, KMain.CC, KStart16.CC, KStart32.CC.
2020-09-07 19:01:54 +01:00
|
|
|
I64 stack_size=0, I64 flags=1<<JOBf_ADD_TO_QUE);
|
|
|
|
|
|
|
|
extern U8 *StrPrint(U8 *dst, U8 *format, ...);
|
|
|
|
extern U0 StrPrintFunSeg(U8 *buf, I64 addr, I64 field_len, I64 flags);
|
|
|
|
|
|
|
|
extern Bool Suspend(CTask *task=NULL, Bool state=TRUE);
|
|
|
|
|
|
|
|
extern CJob *TaskMessage(CTask *_server, CTask *master, I64 message_code, I64 arg1, I64 arg2, I64 flags);
|
|
|
|
extern U0 TaskResetAwaitingMessage(CTask *task=NULL);
|
|
|
|
extern Bool TaskValidate(CTask *task);
|
|
|
|
extern U0 TaskWait(CTask *task=NULL, Bool cmd_line_prompt=FALSE);
|
|
|
|
extern CTask *User(U8 *format=NULL, ...);
|
|
|
|
extern U0 UserTaskCont();
|
|
|
|
extern U0 XTalk(CTask *task, U8 *format, ...);
|
|
|
|
|
|
|
|
extern U0 throw(I64 ch=0, Bool no_log=FALSE);
|