author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 17 Sep 2015 07:36:40 +0100 | |
changeset 49 | 307d55f736ec |
parent 37 | 1ad7fb72801a |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
1 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CTypeNode subclass:#CBuiltinNode |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!CBuiltinNode methodsFor:'accessing'! |
|
14 |
||
16 | 15 |
cByteSize |
16 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
17 |
||
18 |
^ self shouldImplement |
|
19 |
! |
|
20 |
||
37
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
21 |
cName |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
22 |
^ self subclassResponsibility |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
23 |
|
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
24 |
"Created: / 06-07-2015 / 07:30:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
25 |
! |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
26 |
|
18 | 27 |
ffiPointerTypeSymbol |
28 |
||
29 |
^ (self ffiTypeSymbol , 'Pointer') asSymbol |
|
30 |
||
31 |
"Created: / 18-07-2011 / 16:40:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
32 |
! |
|
33 |
||
16 | 34 |
ffiTypeSymbol |
35 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
36 |
||
37 |
^ self shouldImplement |
|
38 |
! |
|
39 |
||
1 | 40 |
smalltalkName |
41 |
||
42 |
^self subclassResponsibility |
|
43 |
||
44 |
"Created: / 12-02-2008 / 22:06:11 / janfrog" |
|
45 |
! |
|
46 |
||
47 |
smalltalkName: aSymbol |
|
48 |
||
49 |
^self shouldNotImplement |
|
50 |
||
51 |
"Created: / 12-02-2008 / 22:05:16 / janfrog" |
|
52 |
! ! |
|
53 |
||
18 | 54 |
!CBuiltinNode methodsFor:'printing'! |
55 |
||
56 |
printOn: stream indent: level |
|
57 |
||
58 |
stream next: level put: Character tab. |
|
59 |
stream nextPutAll: self ffiTypeSymbol. |
|
60 |
||
61 |
"Created: / 18-07-2011 / 16:51:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
62 |
! ! |
|
63 |
||
16 | 64 |
!CBuiltinNode methodsFor:'visiting'! |
65 |
||
66 |
acceptVisitor:aVisitor |
|
67 |
"Double dispatch back to the visitor, passing my type encoded in |
|
68 |
the selector (visitor pattern)" |
|
69 |
||
70 |
"stub code automatically generated - please change if required" |
|
71 |
||
72 |
^ aVisitor visitCBuiltinNode:self |
|
73 |
! ! |
|
74 |
||
1 | 75 |
!CBuiltinNode class methodsFor:'documentation'! |
76 |
||
77 |
version |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
78 |
^ '$Id$' |
14 | 79 |
! |
80 |
||
81 |
version_SVN |
|
82 |
^ '$Id$' |
|
1 | 83 |
! ! |
37
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
84 |