author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 10 Jul 2008 07:31:14 +0000 | |
changeset 5 | c110eef5b9ef |
parent 2 | cfd2c393abfe |
child 6 | ae25dce94003 |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'cvut:fel/cface' }" |
2 |
||
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CTypeNode subclass:#CTypedefNode |
|
6 |
instanceVariableNames:'type' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
!CTypedefNode class methodsFor:'documentation'! |
|
13 |
||
14 |
history |
|
15 |
||
16 |
"Created: / 25-10-2007 / 15:07:10 / haja" |
|
17 |
"Created: #local / 25-10-2007 / 15:07:18 / haja" |
|
18 |
"Created: #local: / 25-10-2007 / 15:07:18 / haja" |
|
19 |
"Created: #names / 25-10-2007 / 15:07:18 / haja" |
|
20 |
"Created: #names: / 25-10-2007 / 15:07:18 / haja" |
|
21 |
"Created: #local:names: / 25-10-2007 / 15:08:27 / haja" |
|
22 |
"Deleted: #local / 29-10-2007 / 19:58:35 / haja" |
|
23 |
"Deleted: #local: / 29-10-2007 / 19:58:35 / haja" |
|
24 |
"Deleted: #names / 29-10-2007 / 19:58:35 / haja" |
|
25 |
"Deleted: #names: / 29-10-2007 / 19:58:35 / haja" |
|
26 |
"Created: #name / 29-10-2007 / 19:58:43 / haja" |
|
27 |
"Created: #name: / 29-10-2007 / 19:58:43 / haja" |
|
28 |
"Created: #id / 29-10-2007 / 19:58:43 / haja" |
|
29 |
"Created: #id: / 29-10-2007 / 19:58:43 / haja" |
|
30 |
"Created: #name:id: / 29-10-2007 / 19:59:29 / haja" |
|
31 |
"Deleted: #local:names: / 29-10-2007 / 19:59:43 / haja" |
|
32 |
"Created: #acceptVisitor: / 02-11-2007 / 10:46:04 / haja" |
|
33 |
"Created: #foreign / 19-11-2007 / 09:41:32 / haja" |
|
34 |
"Created: #foreign: / 19-11-2007 / 09:41:32 / haja" |
|
35 |
"Created: #name:id:foreign: / 19-11-2007 / 09:41:41 / haja" |
|
36 |
"Deleted: #name:id: / 19-11-2007 / 09:41:43 / haja" |
|
37 |
! ! |
|
38 |
||
39 |
!CTypedefNode methodsFor:'accessing'! |
|
40 |
||
5
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
41 |
cByteSize |
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
42 |
|
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
43 |
^type cByteSize |
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
44 |
|
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
45 |
"Created: / 09-07-2008 / 19:39:38 / Jan Vrany <vranyj1@fel.cvut.cz>" |
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
46 |
! |
c110eef5b9ef
- externalization of libraryName (now supports unix & win32 simultaneously)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
47 |
|
2
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
48 |
ffiTypeSymbol |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
49 |
|
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
50 |
^type ffiTypeSymbol |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
51 |
|
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
52 |
"Created: / 03-07-2008 / 22:40:25 / Jan Vrany <vranyj1@fel.cvut.cz>" |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
53 |
! |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
54 |
|
1 | 55 |
foreign |
56 |
^ foreign |
|
57 |
||
58 |
"Created: / 19-11-2007 / 09:41:32 / haja" |
|
59 |
! |
|
60 |
||
61 |
foreign:something |
|
62 |
foreign := something. |
|
63 |
||
64 |
"Created: / 19-11-2007 / 09:41:32 / haja" |
|
65 |
! |
|
66 |
||
67 |
id |
|
68 |
^ id |
|
69 |
||
70 |
"Created: / 29-10-2007 / 19:58:43 / haja" |
|
71 |
! |
|
72 |
||
73 |
id:something |
|
74 |
id := something. |
|
75 |
||
76 |
"Created: / 29-10-2007 / 19:58:43 / haja" |
|
77 |
! |
|
78 |
||
79 |
name |
|
80 |
^ name |
|
81 |
||
82 |
"Created: / 29-10-2007 / 19:58:43 / haja" |
|
83 |
! |
|
84 |
||
85 |
name:something |
|
86 |
name := something. |
|
87 |
||
88 |
"Created: / 29-10-2007 / 19:58:43 / haja" |
|
89 |
! |
|
90 |
||
91 |
type |
|
92 |
^ type |
|
93 |
||
94 |
"Created: / 10-02-2008 / 19:23:13 / janfrog" |
|
95 |
! |
|
96 |
||
97 |
type:something |
|
98 |
type := something. |
|
99 |
||
100 |
"Created: / 10-02-2008 / 19:23:13 / janfrog" |
|
101 |
! ! |
|
102 |
||
103 |
!CTypedefNode methodsFor:'printing'! |
|
104 |
||
105 |
printOn: stream indent: level |
|
106 |
||
107 |
stream |
|
108 |
nextPutAll: '(typedef '; cr; |
|
109 |
next: level + 1 put: Character tab; nextPutAll: cName; cr; |
|
110 |
next: level + 1 put: Character tab. |
|
111 |
type printOn: stream indent: level + 1. |
|
112 |
stream nextPut: $) |
|
113 |
||
114 |
"Created: / 17-02-2008 / 18:13:13 / janfrog" |
|
115 |
"Modified: / 18-02-2008 / 15:12:01 / janfrog" |
|
116 |
! ! |
|
117 |
||
118 |
!CTypedefNode methodsFor:'visiting'! |
|
119 |
||
120 |
acceptVisitor:aVisitor |
|
121 |
"Double dispatch back to the visitor, passing my type encoded in |
|
122 |
the selector (visitor pattern)" |
|
123 |
"stub code automatically generated - please change if required" |
|
124 |
||
125 |
^ aVisitor visitCTypedefNode:self |
|
126 |
||
127 |
"Created: / 02-11-2007 / 10:46:04 / haja" |
|
128 |
"Modified: / 10-02-2008 / 10:45:50 / janfrog" |
|
129 |
! ! |
|
130 |
||
131 |
!CTypedefNode class methodsFor:'documentation'! |
|
132 |
||
133 |
version |
|
134 |
^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CTypedefNode.st,v 1.1 2008/02/26 16:00:01 vranyj1 Exp $' |
|
135 |
! ! |