author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 17 Sep 2015 07:36:40 +0100 | |
changeset 49 | 307d55f736ec |
parent 42 | a428eeead6ad |
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 |
CBuiltinNode subclass:#CIntNode |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
||
16 | 13 |
!CIntNode methodsFor:'accessing'! |
14 |
||
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 |
"superclass Cface::CBuiltinNode says that I am responsible to implement this method" |
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 |
^ 'int' |
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 |
"Modified: / 06-07-2015 / 07:31:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
27 |
! |
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
28 |
|
16 | 29 |
ffiTypeSymbol |
30 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
31 |
||
42
a428eeead6ad
64bit fixes: for C99 fixed-width int types, generate proper fixed-width FFI types. For int and longs generate generic, machine-dependent FFI types
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
32 |
^ #int |
16 | 33 |
|
42
a428eeead6ad
64bit fixes: for C99 fixed-width int types, generate proper fixed-width FFI types. For int and longs generate generic, machine-dependent FFI types
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
34 |
"Modified: / 12-08-2015 / 07:40:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
16 | 35 |
! |
36 |
||
37 |
smalltalkName |
|
38 |
"superclass Cface::CBuiltinNode says that I am responsible to implement this method" |
|
39 |
||
40 |
^ self shouldImplement |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
41 |
! |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
42 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
43 |
stxStructFieldGetterSelector |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
44 |
^ #longAt: |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
45 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
46 |
"Created: / 30-05-2012 / 21:36:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
47 |
! ! |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
48 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
49 |
!CIntNode methodsFor:'testing'! |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
50 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
51 |
isCIntNode |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
52 |
^ true |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
53 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
54 |
"Created: / 30-05-2012 / 21:37:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
16 | 55 |
! ! |
56 |
||
57 |
!CIntNode methodsFor:'visiting'! |
|
58 |
||
59 |
acceptVisitor:aVisitor |
|
60 |
"Double dispatch back to the visitor, passing my type encoded in |
|
61 |
the selector (visitor pattern)" |
|
62 |
||
63 |
"stub code automatically generated - please change if required" |
|
64 |
||
65 |
^ aVisitor visitCIntNode:self |
|
66 |
! ! |
|
67 |
||
1 | 68 |
!CIntNode class methodsFor:'documentation'! |
69 |
||
14 | 70 |
version_SVN |
71 |
^ '$Id$' |
|
1 | 72 |
! ! |
37
1ad7fb72801a
Generate comment in FFI callouts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
73 |