Subversion Repositories SvarDOS

Rev

Rev 530 | Rev 542 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 530 Rev 538
Line 32... Line 32...
32
#define imatch(a,b) imatchlim(a,b,0xffff)
32
#define imatch(a,b) imatchlim(a,b,0xffff)
33
 
33
 
34
/* returns zero if s1 starts with s2 */
34
/* returns zero if s1 starts with s2 */
35
int strstartswith(const char *s1, const char *s2);
35
int strstartswith(const char *s1, const char *s2);
36
 
36
 
37
/* outputs a NULL-terminated string to stdout */
37
/* outputs a NULL-terminated string to handle (hSTDOUT or hSTDERR) */
38
void output_internal(const char *s, unsigned char nl);
38
void output_internal(const char *s, unsigned char nl, unsigned char handle);
39
 
39
 
40
/* outputs a NULL-terminated NLS string to stdout */
40
/* outputs a NULL-terminated NLS string to stdout */
41
void nls_output_internal(unsigned short id, unsigned char nl);
41
void nls_output_internal(unsigned short id, unsigned char nl);
42
 
42
 
-
 
43
#define hSTDOUT 1
-
 
44
#define hSTDERR 2
-
 
45
 
43
#define output(x) output_internal(x, 0)
46
#define output(x) output_internal(x, 0, hSTDOUT)
44
#define outputnl(x) output_internal(x, 1)
47
#define outputnl(x) output_internal(x, 1, hSTDOUT)
45
#define nls_output(x,y) nls_output_internal((x << 8) | y, 0)
48
#define nls_output(x,y) nls_output_internal((x << 8) | y, 0)
46
#define nls_outputnl(x,y) nls_output_internal((x << 8) | y, 1)
49
#define nls_outputnl(x,y) nls_output_internal((x << 8) | y, 1)
47
 
50
 
-
 
51
/* output DOS error e to stderr */
-
 
52
void nls_outputnl_doserr(unsigned short e);
-
 
53
 
48
/*
54
/*
49
 * FileInfoRec (DTA) format:
55
 * FileInfoRec (DTA) format:
50
 * offset size desc
56
 * offset size desc
51
 *    +0   21  reserved
57
 *    +0   21  reserved
52
 *  +15h    1  file attr (1=RO 2=Hidden 4=System 8=VOL 16=DIR 32=Archive
58
 *  +15h    1  file attr (1=RO 2=Hidden 4=System 8=VOL 16=DIR 32=Archive