diff options
-rw-r--r-- | Doc/Manual/Extending.html | 8 | ||||
-rw-r--r-- | Source/DOH/README | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Doc/Manual/Extending.html b/Doc/Manual/Extending.html index 5cd89a280..0123a08ae 100644 --- a/Doc/Manual/Extending.html +++ b/Doc/Manual/Extending.html @@ -1500,12 +1500,11 @@ Create a File object wrapper around an existing <tt>FILE *</tt> object. </div> <p> -<b><tt>int Close(String_or_FILE *f)</tt></b> +There's no explicit function to close a file, just call <tt>Delete(f)</tt> - +this decreases the reference count, and the file will be closed when the +reference count reaches zero. </p> -<div class="indent"> -<p>Closes a file. Has no effect on strings.</p> - <p> The use of the above I/O functions and strings play a critical role in SWIG. It is common to see small code fragments of code generated using code like this: @@ -2832,7 +2831,6 @@ int Python::top(Node *n) { Delete(f_header); Delete(f_wrappers); Delete(f_init); - Close(f_begin); Delete(f_begin); return SWIG_OK; diff --git a/Source/DOH/README b/Source/DOH/README index 9baaabc8a..9817876bd 100644 --- a/Source/DOH/README +++ b/Source/DOH/README @@ -65,7 +65,7 @@ Putc(ch,obj) Put a character Ungetc(ch,obj) Put character back on input stream Seek(obj,offset,whence) Seek Tell(obj) Return file pointer -Close(obj) Close +Delete(obj) Decrease the reference count, close file if zero String Operations ----------------- |