*** empty log message ***
authorclaus
Fri, 28 Oct 1994 04:06:40 +0100
changeset 192 3b0eb8864842
parent 191 38d331e1e6b1
child 193 5f2ace36fc07
*** empty log message ***
Filename.st
Method.st
--- a/Filename.st	Fri Oct 28 04:05:01 1994 +0100
+++ b/Filename.st	Fri Oct 28 04:06:40 1994 +0100
@@ -20,7 +20,7 @@
 COPYRIGHT (c) 1992 by Claus Gittinger
 	     All Rights Reserved
 
-$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.14 1994-10-28 01:23:10 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.15 1994-10-28 03:06:40 claus Exp $
 '!
 
 !Filename class methodsFor:'documentation'!
@@ -41,7 +41,7 @@
 
 version
 "
-$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.14 1994-10-28 01:23:10 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.15 1994-10-28 03:06:40 claus Exp $
 "
 !
 
@@ -487,7 +487,8 @@
 !
 
 remove
-    "remove the file - the argument must be convertable to a String"
+    "remove the file - the argument must be convertable to a String.
+     Return true if sucessfull, false if not."
 
     ^ OperatingSystem removeFile:nameString
 
@@ -498,7 +499,8 @@
 !
 
 renameTo:newName
-    "rename the file - the argument must be convertable to a String"
+    "rename the file - the argument must be convertable to a String.
+     Return true if sucessfull, false if not."
 
     ^ OperatingSystem renameFile:nameString to:(newName asString)
 
--- a/Method.st	Fri Oct 28 04:05:01 1994 +0100
+++ b/Method.st	Fri Oct 28 04:06:40 1994 +0100
@@ -21,7 +21,7 @@
 COPYRIGHT (c) 1989 by Claus Gittinger
 	     All Rights Reserved
 
-$Header: /cvs/stx/stx/libbasic/Method.st,v 1.20 1994-10-28 01:25:18 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Method.st,v 1.21 1994-10-28 03:06:36 claus Exp $
 '!
 
 !Method class methodsFor:'documentation'!
@@ -42,7 +42,7 @@
 
 version
 "
-$Header: /cvs/stx/stx/libbasic/Method.st,v 1.20 1994-10-28 01:25:18 claus Exp $
+$Header: /cvs/stx/stx/libbasic/Method.st,v 1.21 1994-10-28 03:06:36 claus Exp $
 "
 !
 
@@ -184,6 +184,9 @@
 
 	aStream isNil ifTrue:[
 	    fileName := Smalltalk getSystemFileName:('source/' , source).
+	    fileName isNil ifTrue:[
+		fileName := source
+	    ].
 	    aStream := fileName asFilename readStream.
 	].
 
@@ -211,7 +214,7 @@
     sourcePosition := nil
 !
 
-sourceFileName
+sourceFilename
     "return the sourcefilename if source is extern; nil otherwise"
 
     sourcePosition notNil ifTrue:[^ source].
@@ -224,7 +227,7 @@
     ^ sourcePosition
 !
 
-sourceFileName:aFileName position:aNumber
+sourceFilename:aFileName position:aNumber
     "set the methods sourcefile/position"
 
     source := aFileName.
@@ -1218,7 +1221,7 @@
     "
      try to save a bit of memory, by sharing the source (whatever it is)
     "
-    temporaryMethod sourceFileName:source position:sourcePosition. 
+    temporaryMethod sourceFilename:source position:sourcePosition. 
     ^ temporaryMethod
 
     "