Subversion Repositories SvarDOS

Rev

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

Rev 538 Rev 542
Line 36... Line 36...
36
 
36
 
37
/* outputs a NULL-terminated string to handle (hSTDOUT or hSTDERR) */
37
/* outputs a NULL-terminated string to handle (hSTDOUT or hSTDERR) */
38
void output_internal(const char *s, unsigned char nl, unsigned char handle);
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, unsigned char handle);
42
 
42
 
43
#define hSTDOUT 1
43
#define hSTDOUT 1
44
#define hSTDERR 2
44
#define hSTDERR 2
45
 
45
 
46
#define output(x) output_internal(x, 0, hSTDOUT)
46
#define output(x) output_internal(x, 0, hSTDOUT)
47
#define outputnl(x) output_internal(x, 1, hSTDOUT)
47
#define outputnl(x) output_internal(x, 1, hSTDOUT)
48
#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, hSTDOUT)
49
#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, hSTDOUT)
-
 
50
#define nls_outputnl_err(x,y) nls_output_internal((x << 8) | y, 1, hSTDERR)
50
 
51
 
51
/* output DOS error e to stderr */
52
/* output DOS error e to stderr */
52
void nls_outputnl_doserr(unsigned short e);
53
void nls_outputnl_doserr(unsigned short e);
53
 
54
 
54
/*
55
/*
Line 113... Line 114...
113
#define DOS_ATTR_VOL  8
114
#define DOS_ATTR_VOL  8
114
#define DOS_ATTR_DIR 16
115
#define DOS_ATTR_DIR 16
115
#define DOS_ATTR_ARC 32
116
#define DOS_ATTR_ARC 32
116
 
117
 
117
/* find first matching files using a FindFirst DOS call
118
/* find first matching files using a FindFirst DOS call
118
 * attr contains DOS attributes that files MUST have (ie attr=0 will match all
119
 * attr contains DOS attributes that files MAY have (ie attr=0 will match only
119
 * files)
120
 * files that have no attributes at all)
120
 * returns 0 on success or a DOS err code on failure */
121
 * returns 0 on success or a DOS err code on failure */
121
unsigned short findfirst(struct DTA *dta, const char *pattern, unsigned short attr);
122
unsigned short findfirst(struct DTA *dta, const char *pattern, unsigned short attr);
122
 
123
 
123
/* find next matching, ie. continues an action intiated by findfirst() */
124
/* find next matching, ie. continues an action intiated by findfirst() */
124
unsigned short findnext(struct DTA *dta);
125
unsigned short findnext(struct DTA *dta);