Changeset 7258c6a in buchla-68k for libcio/dirfns.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/dirfns.c
r0292fbb r7258c6a 9 9 #include "biosdefs.h" 10 10 11 extern long sprintf(char *str, char*fmt, ...);11 extern int32_t sprintf(int8_t *str, int8_t *fmt, ...); 12 12 13 static charatrcons[] = "ADVSHR";13 static int8_t atrcons[] = "ADVSHR"; 14 14 15 15 /* … … 19 19 */ 20 20 21 char *atrstr(short atr, chars[])21 int8_t *atrstr(int16_t atr, int8_t s[]) 22 22 { 23 register short i, j;23 register int16_t i, j; 24 24 25 25 i = 0x20; … … 42 42 */ 43 43 44 static char*mnames[] = {44 static int8_t *mnames[] = { 45 45 46 46 "???", … … 65 65 */ 66 66 67 char *mname(short n)67 int8_t *mname(int16_t n) 68 68 { 69 69 return((n < 1 || n > 12) ? mnames[0] : mnames[n]); … … 81 81 */ 82 82 83 char *dtunpk(short din, short tin, short fmt, char*s)83 int8_t *dtunpk(int16_t din, int16_t tin, int16_t fmt, int8_t *s) 84 84 { 85 register short ftm, fdt;85 register int16_t ftm, fdt; 86 86 87 87 ftm = ((tin << 8) & 0xFF00) | ((tin >> 8) & 0x00FF);
Note:
See TracChangeset
for help on using the changeset viewer.