ExternalLibrary.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 22804 1811fc3f6f19
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22804
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
     1
"{ Encoding: utf8 }"
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
     2
12671
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     3
"
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     4
 COPYRIGHT (c) 2009 by eXept Software AG
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     5
              All Rights Reserved
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     6
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     7
 This software is furnished under a license and may be used
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     8
 only in accordance with the terms of that license and with the
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    10
 be provided or otherwise made available to, or used by, any
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    11
 other person.  No title to or ownership of the software is
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    12
 hereby transferred.
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    13
"
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libbasic' }"
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
17453
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    16
"{ NameSpace: Smalltalk }"
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    17
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
Object subclass:#ExternalLibrary
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'System-Support'
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
17453
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    25
ExternalLibrary class instanceVariableNames:'default'
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    26
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    27
"
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    28
 No other class instance variables are inherited by this class.
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    29
"
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    30
!
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    31
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
!ExternalLibrary class methodsFor:'documentation'!
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
12671
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    34
copyright
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    35
"
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    36
 COPYRIGHT (c) 2009 by eXept Software AG
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    37
              All Rights Reserved
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    38
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    39
 This software is furnished under a license and may be used
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    40
 only in accordance with the terms of that license and with the
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    41
 inclusion of the above copyright notice.   This software may not
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    42
 be provided or otherwise made available to, or used by, any
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    43
 other person.  No title to or ownership of the software is
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    44
 hereby transferred.
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    45
"
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    46
!
9dc24b30457c added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12440
diff changeset
    47
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
documentation
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
"
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    This is only a hook for compatibility (to be able to fileIn squeak libraries)
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
"
22804
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    52
!
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    53
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    54
externalCallFailed
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    55
    "{ Pragma: +optSpace }"
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    56
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    57
    "report an error that some external libraray call failed.
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    58
     The error is reported by raising the PrimitiveFailure exception."
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    59
     
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    60
    "Copy on the inst side, so subclasses may make their calls on either side"
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    61
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    62
    <resource: #skipInDebuggersWalkBack>
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    63
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    64
    |sender|
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    65
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    66
    sender := thisContext sender.
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    67
    ^ PrimitiveFailure 
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    68
        raiseRequestWith:(Message selector:sender selector arguments:sender args)
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    69
        in:sender.
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
! !
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
13335
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    72
!ExternalLibrary methodsFor:'error reporting'!
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    73
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    74
externalCallFailed
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    75
    "{ Pragma: +optSpace }"
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    76
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    77
    "report an error that some external libraray call failed.
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    78
     The error is reported by raising the PrimitiveFailure exception."
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    79
22804
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    80
    "Copy on the class side, so subclasses may make their calls on either side"
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    81
13335
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    82
    <resource: #skipInDebuggersWalkBack>
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    83
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    84
    |sender|
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    85
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    86
    sender := thisContext sender.
22804
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    87
    ^ PrimitiveFailure 
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    88
        raiseRequestWith:(Message selector:sender selector arguments:sender args)
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    89
        in:sender.
13335
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    90
! !
bbed71341524 added: #externalCallFailed
Stefan Vogel <sv@exept.de>
parents: 12671
diff changeset
    91
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
!ExternalLibrary class methodsFor:'documentation'!
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
version_CVS
22804
1811fc3f6f19 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17453
diff changeset
    95
    ^ '$Header$'
12440
1f96c89e1eb4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
! !
17453
28bacb6df32d class: ExternalLibrary
Claus Gittinger <cg@exept.de>
parents: 13335
diff changeset
    97