Skip to content

Commit

Permalink
remove trailing newlines and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Oct 22, 2023
1 parent 520b68a commit bdd4293
Show file tree
Hide file tree
Showing 26 changed files with 1 addition and 50 deletions.
1 change: 0 additions & 1 deletion hdr/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ struct buffer {
#define BFR_DIR 0x04 /* buffer is from dir area */
#define BFR_FAT 0x02 /* buffer is from fat area */
#define BFR_UNCACHE 0x01 /* buffer to be released ASAP */

1 change: 0 additions & 1 deletion hdr/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ struct ClockRecord {
UBYTE clkHundredths; /* residual hundredths of a second. */
UBYTE clkSeconds; /* residual seconds. */
};

1 change: 0 additions & 1 deletion hdr/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ static BYTE *date_hRcsId =
typedef UWORD date;

#endif

1 change: 0 additions & 1 deletion hdr/dcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,3 @@ ANNOTATE_SIZE(struct dpb, 0x3d);
#define UNKNCLUSTER 0x0000 /* see RBIL INT 21/AH=52 entry */
#define XUNKNCLSTFREE 0xffffffffl /* unknown for DOS */
#define UNKNCLSTFREE 0xffff /* unknown for DOS */

1 change: 0 additions & 1 deletion hdr/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,4 +497,3 @@ COUNT block_error(request * rq, COUNT nDrive, __FAR(struct dhdr) lpDevice, int m
/*
* end of device.h
*/

1 change: 0 additions & 1 deletion hdr/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,3 @@ static BYTE *error_hRcsId =
#define RETRY 1
#define ABORT 2
#define FAIL 3

1 change: 0 additions & 1 deletion hdr/exe.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ typedef struct {

#define MAGIC 0x5a4d
#define OLD_MAGIC 0x4d5a

1 change: 0 additions & 1 deletion hdr/fat.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,3 @@ void setdstart(__FAR(struct dpb) dpbp, struct dirent *dentry, CLUSTER value);
#define DIR_SIZE (FNAME_SIZE+FEXT_SIZE+17)

#define DIRENT_SIZE 32

1 change: 0 additions & 1 deletion hdr/fcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@ typedef struct _rfcb {
AR_MEMB(_rfcb, BYTE, renNewExtent, 3); /* New FileExtension */
BYTE renReserved2[9];
} rfcb;

1 change: 0 additions & 1 deletion hdr/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ static BYTE *file_hRcsId =

/* status for extended open */
enum {S_OPENED = 1, S_CREATED = 2, S_REPLACED = 3};

1 change: 0 additions & 1 deletion hdr/pcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,3 @@ ANNOTATE_SIZE(pcb, 4 + sizeof(iregs));
#define FLG_CARRY 0x0001

#endif

1 change: 0 additions & 1 deletion hdr/tail.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ typedef struct _cct {
// AR_MEMB(_cct, char, ctBuffer, CTBUFFERSIZE); /* the buffer itself */
char ctBuffer[CTBUFFERSIZE]; /* the buffer itself */
} CommandTail;

1 change: 0 additions & 1 deletion hdr/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ struct dosdate
};

#endif

1 change: 0 additions & 1 deletion kernel/break.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ void handle_break(struct dhdr FAR *pdev)

spawn_int23(); /* invoke user INT-23 and never come back */
}

1 change: 0 additions & 1 deletion kernel/chario.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,4 +584,3 @@ size_t read_line_handle(int sft_idx, size_t n, char FAR * bp, BOOL check_break)
inputptr = NULL;
return n;
}

7 changes: 0 additions & 7 deletions kernel/dsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,10 +1140,3 @@ STATIC int LBA_Transfer(ddt FAR * pddt, UWORD mode, VOID FAR * buffer,

return (error_code);
}

/*
* Revision 1.17 2001/05/13 tomehlert
* Added full support for LBA hard drives
* initcode moved (mostly) to initdisk.c
* lower interface partly redesigned
*/
1 change: 0 additions & 1 deletion kernel/fatdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,3 @@ const char *ConvertNameSZToName83(char *fcbname, const char *dirname)
}
return dirname;
}

13 changes: 0 additions & 13 deletions kernel/fatfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1916,16 +1916,3 @@ STATIC int shrink_file(f_node_ptr fnp)
fnp->f_offset = lastoffset; /* has to be restored */
return ret;
}

/*
* TE 12 jun 2001 bugs corrected
* handles disk full (in a incompatible way :-( )
* allows use of last cluster
* prevents mkdir, if disk is full (was creating crosslinked dirs)
* bugs detected, but NOT corrected
* on disk full, MSDOS will NOT write any byte, simply return SUCCESS, 0 bytes
* FreeDOS will write all possible bytes, then close file(BUG)
*
* the dos_mkdir/extenddir (with getblock() instead of getblockOver) was a real
* performance killer on large drives. (~0.5 sec /dos_mkdir) TE
*/
1 change: 0 additions & 1 deletion kernel/fcbfns.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,3 @@ UBYTE FcbFindNext(xfcb FAR * lpXfcb)
return FCB_SUCCESS;
}
#endif

1 change: 0 additions & 1 deletion kernel/init-mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,3 @@ ULONG ASMCFUNC FAR MULULUL(ULONG mul1, ULONG mul2); /* MULtiply ULong by ULo
ULONG ASMCFUNC FAR DIVULUS(ULONG mul1, UWORD mul2); /* DIVide ULong by UShort */
ULONG ASMCFUNC FAR DIVMODULUS(ULONG mul1, UWORD mul2, UWORD * rem); /* DIVide ULong by UShort */
#endif

6 changes: 0 additions & 6 deletions kernel/inthndlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2295,9 +2295,3 @@ VOID ASMCFUNC int2F_08_handler(iregs FAR * regs)
regs->DI = FP_OFF(ddt_buf[0]);
}
}

/*
* 2000/09/04 Brian Reifsnyder
* Modified interrupts 0x25 & 0x26 to return more accurate error codes.
*/

3 changes: 1 addition & 2 deletions kernel/io.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@
extern _IODone
extern _IOCommandError
extern GetUnitNum
extern _ReqPktPtr

extern _ReqPktPtr
1 change: 0 additions & 1 deletion kernel/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ VOID fmemset(VOID FAR * d, int ch, size_t n)
}

#endif

1 change: 0 additions & 1 deletion kernel/nls.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,3 @@ UWORD ASMCFUNC syscall_MUX14(iregs FAR * regs)
log(("NLS: MUX14(): Invalid function %x\n", regs->AL));
return DE_INVLDFUNC; /* no such function */
}

1 change: 0 additions & 1 deletion kernel/sysclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,3 @@ WORD ASMCFUNC FAR clk_driver(rqptr rp)
return failure(E_FAILURE); /* general failure */
}
}

1 change: 0 additions & 1 deletion kernel/systime.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,3 @@ int DosSetDate(const struct dosdate *dd)
return char_error(&ClkReqHdr, (struct dhdr FAR *)_clock_);
return SUCCESS;
}

0 comments on commit bdd4293

Please sign in to comment.