forked from OpenSmalltalk/opensmalltalk-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OpenSmalltalk#6 from pharo-project/gc-tests
Gc tests
- Loading branch information
Showing
63 changed files
with
2,492 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
" | ||
FAPathPtr simulates the FAPathPtr structure. See platforms/Cross/plugins/FileAttributesPlugin/faCommon.h for details. | ||
Instance Variables | ||
faPath: <Array> | ||
plugin: <FileAttributesPlugin> | ||
sessionId: <Integer> | ||
faPath | ||
- The simulated fapath, currently an Array. | ||
plugin | ||
- The owning FileAttributesPlugin. In case access to the interpreterProxy is required later on. | ||
sessionId | ||
- As supplied by the VM. | ||
" | ||
Class { | ||
#name : #FAPathPtr, | ||
#superclass : #VMStructType, | ||
#instVars : [ | ||
'sessionId', | ||
'faPath', | ||
'plugin' | ||
], | ||
#category : #FileAttributesPlugin | ||
} | ||
|
||
{ #category : #'instance creation' } | ||
FAPathPtr class >> fromArray: anArray plugin: aFileAttributesPluginSimulator [ | ||
|
||
^self new | ||
sessionId: anArray first; | ||
faPath: anArray second; | ||
plugin: aFileAttributesPluginSimulator; | ||
yourself | ||
] | ||
|
||
{ #category : #translation } | ||
FAPathPtr class >> instVarNamesAndTypesForTranslationDo: aBinaryBlock [ | ||
"Define a CallbackContext, the argument to sendInvokeCallbackContext: | ||
self typedef" | ||
|
||
self instVarNames do: | ||
[:ivn| | ||
aBinaryBlock | ||
value: ivn | ||
value: (ivn caseOf: { | ||
['sessionId'] -> [#'int']. | ||
['faPath'] -> [#'fapath *']} | ||
otherwise: [#'void *'])] | ||
] | ||
|
||
{ #category : #'instance creation' } | ||
FAPathPtr class >> plugin: aFileAttributesPlugin [ | ||
|
||
^self new | ||
plugin: aFileAttributesPlugin; | ||
yourself | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> faPath [ | ||
|
||
^ faPath | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> faPath: anObject [ | ||
|
||
^ faPath := anObject. | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> plugin [ | ||
|
||
^ plugin | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> plugin: anObject [ | ||
|
||
^ plugin := anObject. | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> sessionId [ | ||
|
||
^ sessionId | ||
] | ||
|
||
{ #category : #accessing } | ||
FAPathPtr >> sessionId: anObject [ | ||
|
||
^ sessionId := anObject. | ||
] |
Oops, something went wrong.