ExternalAddress.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 01 Jul 2010 19:21:34 +0100
branchjv
changeset 17772 6e0b3c06c364
parent 17767 a4a32df3aa5e
child 17780 b6e42c92eba0
permissions -rw-r--r--
Method reverted to r10532
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
6491
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
    12
"{ Package: 'stx:libbasic' }"
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
    13
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Object subclass:#ExternalAddress
1267
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
    15
	instanceVariableNames:'address*'
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
    16
	classVariableNames:''
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
    17
	poolDictionaries:''
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
    18
	category:'System-Support'
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ExternalAddress class methodsFor:'documentation'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1995 by Claus Gittinger
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	      All Rights Reserved
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    Instances of this class represent external (non-Smalltalk) addresses.
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    They are only useful to represent handles as returned by C functions
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    41
    as smalltalk objects. 
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    42
    For example, Window- or WidgetIDs (which are actually 32 bit pointers) could be represented this way
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    43
    (better create a handle-subclass for it, to care for proper finalization).
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    (you should not use SmallIntegers for this, since they can only represent 31
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
     bits; LargeIntegers could be used in theory, but it is not a very good style
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
     to do so, since it makes things a bit cryptic - having ExternalAddresses
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
     around makes things pretty clear in inspectors etc.).
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    There is not much you can do with ExternalAddresses on the smalltalk level;
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    50
    creation/use should be done in primitive C-code via 
1317
cc737e0fdf48 examples
Claus Gittinger <cg@exept.de>
parents: 1286
diff changeset
    51
       __MKEXTERNALADDRESS(voidPtr) and __ExternalAddressVal(obj).
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ExternallAddresses are much like ExternalBytes - however, the latter
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    allow you to access bytes via indexed at:/at:put: messages.
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    55
    ExternalAddresses do not allow such accesses (they are meant to remain anonymous, opaque handles).
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    56
    Also, memory blocks which are freeable should be represented as ExternalBytes.
1286
4270a0b4917d documentation
Claus Gittinger <cg@exept.de>
parents: 1267
diff changeset
    57
4270a0b4917d documentation
Claus Gittinger <cg@exept.de>
parents: 1267
diff changeset
    58
    [author:]
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    59
        Claus Gittinger
1317
cc737e0fdf48 examples
Claus Gittinger <cg@exept.de>
parents: 1286
diff changeset
    60
cc737e0fdf48 examples
Claus Gittinger <cg@exept.de>
parents: 1286
diff changeset
    61
    [see also:]
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    62
        ByteArray
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    63
        ExternalBytes ExternalFunction
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
    64
        ( how to write primitive code :html: programming/primitive.html )
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
examples
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    To pass some C-pointer from primitive code to smalltalk:
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
	...
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
	RETURN (__MKEXTERNALADDRESS(foo));
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    pass it back to C and use it there:
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
	...
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
	if (__isExternalAddress(anExternalAddress)) {
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
	    ptr = __externalAddressVal(anExternalAddress));
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
	}
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
	...
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    concrete example:
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
	test1
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
	%{
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
	    static char foo[] = {'h', 'e' ,'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '\n'};
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
	    RETURN (__MKEXTERNALADDRESS(foo));
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
	%}
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
	test2:anExternalAddress
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
	%{
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
	    if (__isExternalAddress(anExternalAddress)) {
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
		printf(__externalAddressVal(anExternalAddress));
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
		RETURN (self);
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
	    }
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
	%}
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
3957
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   102
!ExternalAddress class methodsFor:'instance creation'!
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   103
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   104
newAddress:addr
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   105
    ^ self new setAddress:addr
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   106
! !
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   107
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!ExternalAddress class methodsFor:'queries'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
isBuiltInClass
1267
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   111
    "return true if this class is known by the run-time-system.
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   112
     Here, true is returned."
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
3552
686923fc2096 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3487
diff changeset
   114
    ^ self == ExternalAddress
1267
e285a3a94d9e commentary
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   115
3552
686923fc2096 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3487
diff changeset
   116
    "Modified: / 11.6.1998 / 17:12:40 / cg"
6491
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   117
!
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   118
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   119
pointerSize
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   120
    "answer the size in bytes of a pointer"
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   121
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   122
%{ /* NOCONTEXT */
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   123
    RETURN(__mkSmallInteger(sizeof(void *)));
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   124
%}.
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   125
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   126
    "
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   127
     self pointerSize
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   128
    "
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
8463
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   131
!ExternalAddress methodsFor:'Compatibility-Squeak'!
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   132
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   133
beNull
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   134
    self setAddress:0
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   135
! !
65b467ab6ff0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7258
diff changeset
   136
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
!ExternalAddress methodsFor:'accessing'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
address
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
    "return the start address as an integer"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
%{  /* NOCONTEXT */
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
2869
6fcc9aafb7c4 alpha64 stuff
Claus Gittinger <cg@exept.de>
parents: 2472
diff changeset
   144
    unsigned INT addr;
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
2877
cc3a4903d692 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2872
diff changeset
   146
    addr = (unsigned INT)__INST(address_);
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
    RETURN ( __MKUINT(addr));
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
%}
4673
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   149
!
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   150
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   151
instVarAt:index
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   152
    "redefined to suppress direct access to my address, which is a non-object"
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   153
17763
019bb9c842c5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17761
diff changeset
   154
    index == 1 ifTrue:[^ self address].
4673
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   155
    ^ super instVarAt:index
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   156
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   157
    "Created: / 3.9.1999 / 13:47:03 / ps"
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   158
!
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   159
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   160
instVarAt:index put:newAddress
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   161
    "redefined to suppress direct access to my address, which is a non-object"
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   162
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   163
    index == 1 ifTrue:[
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   164
        self setAddress:newAddress.
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   165
        ^ newAddress
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   166
    ].
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   167
    ^ super instVarAt:index put:newAddress
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   168
39fa7949617b care for access to address (non-object inst)
ps
parents: 3957
diff changeset
   169
    "Created: / 3.9.1999 / 14:31:57 / ps"
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
!ExternalAddress methodsFor:'comparing'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
= anExternalAddress
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
    "return true, if two externalAddress instance represent the same
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
     C pointer"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
%{  /* NOCONTEXT */
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
    if (__isExternalAddress(anExternalAddress)
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
     && (__externalAddressVal(self) == __externalAddressVal(anExternalAddress))) {
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
	RETURN (true);
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    }
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
%}.
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
    ^ false
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
hash
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
    "return a number useful for hashing"
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
%{  /* NOCONTEXT */
2869
6fcc9aafb7c4 alpha64 stuff
Claus Gittinger <cg@exept.de>
parents: 2472
diff changeset
   191
    unsigned INT addr = (unsigned INT) __externalAddressVal(self);
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
2472
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   193
    if (addr > _MAX_INT) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   194
	if ((addr & 1) == 0) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   195
	    addr >>= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   196
	}
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   197
	if (addr > _MAX_INT) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   198
	    if ((addr & 1) == 0) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   199
		addr >>= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   200
	    }
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   201
	}
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   202
	if (addr > _MAX_INT) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   203
	    addr &= _MAX_INT;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   204
	}
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   205
    } else {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   206
	addr <<= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   207
	if (addr <= _MAX_INT) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   208
	    addr <<= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   209
	    if (addr <= _MAX_INT) {
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   210
		addr <<= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   211
	    }
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   212
	}
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   213
	addr >>= 1;
00e7a1b3b07f better distribution of the hash-key (look for zero-bits)
Claus Gittinger <cg@exept.de>
parents: 1960
diff changeset
   214
    }
8913
b9498d27a554 64bit; mkSmallInteger
Claus Gittinger <cg@exept.de>
parents: 8595
diff changeset
   215
    RETURN (__mkSmallInteger(addr));
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
%}
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
!ExternalAddress methodsFor:'converting'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
6491
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   221
asExternalAddress
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   222
    "convert to an ExternalAddress.
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   223
     Useful to convert subclasses"
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   224
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   225
%{ /* NOCONTEXT */
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   226
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   227
    if (__qClass(self) == @global(ExternalAddress)) {
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   228
        RETURN(self)
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   229
    }
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   230
    RETURN(__MKEXTERNALADDRESS(__INST(address_)));
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   231
%}.
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   232
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   233
    "
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   234
      (ExternalAddress newAddress:16r12345678) asExternalAddress
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   235
    "
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   236
!
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   237
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
asExternalBytes
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    "return an ExternalBytes object pointing to where the receiver points to.
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
     Use of this is not recommended; primitives which return externalAddresses
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
     dont think that access to the memory is required/useful, while primitives
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
     which do think so should return an externalBytes instance right away."
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
6491
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   244
%{ /* NOCONTEXT */
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   245
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   246
    RETURN(__MKEXTERNALBYTES(__INST(address_)));
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   247
%}
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   248
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   249
    "
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   250
      (ExternalAddress newAddress:16r12345678) asExternalBytes
6976d9b69e01 Conversion between ExternalBytes and ExternalAddress
Stefan Vogel <sv@exept.de>
parents: 4673
diff changeset
   251
    "
17742
3fef0ed4c2d5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17735
diff changeset
   252
!
3fef0ed4c2d5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17735
diff changeset
   253
3fef0ed4c2d5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17735
diff changeset
   254
copyCStringFromHeap
3fef0ed4c2d5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17735
diff changeset
   255
    ^ self asExternalBytes copyCStringFromHeap
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
!ExternalAddress methodsFor:'printing & storing'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
7018
5ceb0daa7b1b Print address when doing #printOn:
Stefan Vogel <sv@exept.de>
parents: 6491
diff changeset
   260
printOn:aStream
5ceb0daa7b1b Print address when doing #printOn:
Stefan Vogel <sv@exept.de>
parents: 6491
diff changeset
   261
    "return a printed representation of the receiver"
2957
46015145c398 comments
Claus Gittinger <cg@exept.de>
parents: 2877
diff changeset
   262
7018
5ceb0daa7b1b Print address when doing #printOn:
Stefan Vogel <sv@exept.de>
parents: 6491
diff changeset
   263
    self class name printOn:aStream.
5ceb0daa7b1b Print address when doing #printOn:
Stefan Vogel <sv@exept.de>
parents: 6491
diff changeset
   264
    aStream nextPutAll:' at:'.
5ceb0daa7b1b Print address when doing #printOn:
Stefan Vogel <sv@exept.de>
parents: 6491
diff changeset
   265
    self address printOn:aStream base:16.
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
! !
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
7258
9ccdbee7d1ad method category rename
Claus Gittinger <cg@exept.de>
parents: 7018
diff changeset
   268
!ExternalAddress methodsFor:'private-accessing'!
3957
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   269
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   270
setAddress:anInteger
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   271
    "set the address"
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   272
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   273
%{  /* NOCONTEXT */
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   274
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   275
    unsigned INT addr;
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   276
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   277
    if (__isSmallInteger(anInteger)) {
8595
a756fee49327 #setAddress: use unsignedLongIntVal()
Stefan Vogel <sv@exept.de>
parents: 8463
diff changeset
   278
        addr = __intVal(anInteger);
3957
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   279
    } else {
8595
a756fee49327 #setAddress: use unsignedLongIntVal()
Stefan Vogel <sv@exept.de>
parents: 8463
diff changeset
   280
        addr = __unsignedLongIntVal(anInteger);
3957
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   281
    }
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   282
    __INST(address_) = (OBJ)addr;
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   283
%}
9477
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   284
!
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   285
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   286
setAddressFromBytes:aByteArray
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   287
    "set the address from a pointer to which we have a pointer to"
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   288
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   289
%{  /* NOCONTEXT */
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   290
17735
6a5bc05f696a Merged with trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   291
    if (__isByteArrayLike(aByteArray)) {
9477
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   292
        if (__byteArraySize(aByteArray) == sizeof(void *)) {
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   293
            __INST(address_) = (OBJ)(((void **)__byteArrayVal(aByteArray))[0]);
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   294
            RETURN (self);
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   295
        }
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   296
    }
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   297
%}.
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   298
    self primitiveFailed.
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   299
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   300
    "Created: / 27-07-2006 / 14:37:57 / fm"
ee3efc29a68f *** empty log message ***
fm
parents: 8913
diff changeset
   301
    "Modified: / 07-08-2006 / 15:16:32 / fm"
3957
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   302
! !
925e247ae8df *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3552
diff changeset
   303
847
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
!ExternalAddress class methodsFor:'documentation'!
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
a79ec4e6670d ExternalAddress moved from libbasic2
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
version
17772
6e0b3c06c364 Method reverted to r10532
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17767
diff changeset
   307
    ^ '$Id: ExternalAddress.st 10534 2010-07-01 18:21:34Z vranyj1 $'
17735
6a5bc05f696a Merged with trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   308
!
6a5bc05f696a Merged with trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   309
6a5bc05f696a Merged with trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   310
version_CVS
17772
6e0b3c06c364 Method reverted to r10532
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17767
diff changeset
   311
    ^ 'Header: /cvs/stx/stx/libbasic/ExternalAddress.st,v 1.25 2010/04/08 11:57:19 cg Exp ยง'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17759
diff changeset
   312
!
17735
6a5bc05f696a Merged with trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
   313
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17759
diff changeset
   314
version_SVN
17772
6e0b3c06c364 Method reverted to r10532
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17767
diff changeset
   315
    ^ '$Id: ExternalAddress.st 10534 2010-07-01 18:21:34Z vranyj1 $'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17759
diff changeset
   316
! !
17763
019bb9c842c5 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17761
diff changeset
   317
17767
a4a32df3aa5e merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17763
diff changeset
   318
17772
6e0b3c06c364 Method reverted to r10532
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17767
diff changeset
   319