8728
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2004 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
"{ Package: 'stx:libbasic' }"
|
|
14 |
|
6286
|
15 |
OSFileHandle subclass:#Win32FILEHandle
|
6285
|
16 |
instanceVariableNames:''
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'OS-Windows'
|
|
20 |
!
|
|
21 |
|
6286
|
22 |
!Win32FILEHandle primitiveDefinitions!
|
6285
|
23 |
%{
|
|
24 |
#include <stdio.h>
|
|
25 |
%}
|
|
26 |
|
|
27 |
! !
|
|
28 |
|
8728
|
29 |
!Win32FILEHandle class methodsFor:'documentation'!
|
|
30 |
|
|
31 |
copyright
|
|
32 |
"
|
|
33 |
COPYRIGHT (c) 2004 by eXept Software AG
|
|
34 |
All Rights Reserved
|
|
35 |
|
|
36 |
This software is furnished under a license and may be used
|
|
37 |
only in accordance with the terms of that license and with the
|
|
38 |
inclusion of the above copyright notice. This software may not
|
|
39 |
be provided or otherwise made available to, or used by, any
|
|
40 |
other person. No title to or ownership of the software is
|
|
41 |
hereby transferred.
|
|
42 |
"
|
9102
|
43 |
!
|
6285
|
44 |
|
9102
|
45 |
documentation
|
|
46 |
"
|
|
47 |
I represent a FILE*, as used in the stdio library.
|
6285
|
48 |
|
9102
|
49 |
Since most stdio libs are inherently buggy, thread-unsave
|
|
50 |
and hard to use in a multithreading environment,
|
|
51 |
these will no longer be used in future ST/X versions.
|
|
52 |
However, they may be useful when interfacing to external
|
|
53 |
libraries...
|
|
54 |
"
|
6285
|
55 |
! !
|
|
56 |
|
6286
|
57 |
!Win32FILEHandle methodsFor:'release'!
|
6285
|
58 |
|
9102
|
59 |
closeFile
|
6285
|
60 |
"close the file"
|
|
61 |
|
|
62 |
%{
|
|
63 |
FILE *f = (FILE *)(__externalAddressVal(self));
|
|
64 |
|
|
65 |
if (f) {
|
|
66 |
__externalAddressVal(self) = NULL;
|
|
67 |
fclose(f);
|
|
68 |
}
|
|
69 |
%}.
|
|
70 |
! !
|
|
71 |
|
6286
|
72 |
!Win32FILEHandle class methodsFor:'documentation'!
|
6285
|
73 |
|
|
74 |
version
|
9102
|
75 |
^ '$Header: /cvs/stx/stx/libbasic/Win32FILEHandle.st,v 1.4 2006-02-08 18:27:22 cg Exp $'
|
6285
|
76 |
! !
|