Smalltalk/X generator improvements:
- generate C enums as SharedPools with accessors
- generate externa function calls using FFI. Not yet finished!
- CairoMappings improved.
"{ Package: 'cvut:fel/cface' }"
"{ NameSpace: Cface }"
CBuiltinNode subclass:#CIntNode
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Cface-C AST'
!
!CIntNode methodsFor:'accessing'!
ffiTypeSymbol
"Superclass Cface::CTypeNode says that I am responsible to implement this method"
^ #int16
"Created: / 03-07-2008 / 22:54:39 / Jan Vrany <vranyj1@fel.cvut.cz>"
!
smalltalkName
"Superclass says that I am responsible to implement this method"
^#SmallInteger
"Created: / 12-02-2008 / 22:06:24 / janfrog"
! !
!CIntNode methodsFor:'printing'!
printOn: stream indent: indent
stream nextPutAll:'int'
"Created: / 04-03-2008 / 10:57:12 / janfrog"
! !
!CIntNode methodsFor:'testing'!
isCIntNode
^ true
"Created: / 17-02-2008 / 21:50:25 / janfrog"
! !
!CIntNode methodsFor:'visiting'!
acceptVisitor:aVisitor
"Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)"
"stub code automatically generated - please change if required"
^ aVisitor visitCIntNode:self
"Created: / 12-02-2008 / 23:03:58 / janfrog"
! !
!CIntNode class methodsFor:'documentation'!
version
^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CIntNode.st,v 1.1 2008/02/26 16:00:08 vranyj1 Exp $'
! !