TempleOSCD_150216.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:15 +02:00
1 parent 64f679eeb9
commit 401601816c
531 files changed
+23341 -22071

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
if (!FileFind("HOME/TimeClock",,FUF_JUST_DIRS)) {
MkDir("HOME/TimeClock");
if (!FileFind("::/Home/TimeClock",,FUF_JUST_DIRS)) {
MkDir("::/Home/TimeClock");
DocClear;
"After Loading, type $$GREEN$$PunchIn;$$FG$$, "
"$$GREEN$$PunchOut;$$FG$$ or $$GREEN$$TimeRep;$$FG$$\n"
+3 -2
View File
@@ -1,6 +1,7 @@
#help_index "Misc"
#include "/Apps/TimeClock/TimeClk"
#include "/Apps/TimeClock/Install" //Might as well always install
Cd(__DIR__);;
#include "TimeClk"
#include "Install" //Might as well always install
#help_index ""
+4 -8
View File
@@ -1,4 +1,4 @@
#define TIME_FILENAME "HOME/TimeClock/TimeFile.DAT.Z"
#define TIME_FILENAME "::/Home/TimeClock/TimeFile.DAT.Z"
#define TET_EOF 0
#define TET_PUNCH_IN 1
@@ -20,7 +20,7 @@ U0 TimeFileRead(TimeEntry *header)
buf=FileRead(TIME_FILENAME);
if (!buf)
buf=CAlloc(1);
header->next=header->last=header;
QueInit(header);
ptr=buf;
while (type=*ptr++) {
tempt=CAlloc(sizeof(TimeEntry));
@@ -116,10 +116,8 @@ public Bool TimeRep(TimeEntry **_header=NULL)
public U0 PunchOut()
{
Bool is_in;
TimeEntry *tempt,*header;
is_in=TimeRep(&header);
if (!is_in)
if (!TimeRep(&header))
"$$BK,1$$Already Punched-Out$$BK,0$$\n";
else {
tempt=MAlloc(sizeof(TimeEntry));
@@ -136,10 +134,8 @@ public U0 PunchOut()
public U0 PunchIn()
{
Bool is_in;
TimeEntry *tempt,*header;
is_in=TimeRep(&header);
if (is_in)
if (TimeRep(&header))
"$$BK,1$$Already Punched-In$$BK,0$$\n";
else {
tempt=MAlloc(sizeof(TimeEntry));