moo/stix/kernel/Stdio.st
hyunghwan.chung 394a21b8d6 renamed stix_prim_mod_t to stix_mod_t and made relevant changes
added stix_bcstoucs() and stix_ucstobcs()
added stix_setcmgr() and stix_getcmgr()
2016-11-27 15:37:14 +00:00

58 lines
784 B
Smalltalk

## #class(#byte) Stdio(Object) from 'stdio'.
#class(#byte) Stdio(Object)
{
#method(#class) _newInstSize
{
<primitive: #stdio_newInstSize>
}
#method(#class) new: size
{
##self prohibited
##raise exception. prohibited...
^(super new: (self _newInstSize))
}
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new: (self _newInstSize))
}
#method(#class) open: name for: mode
{
^(super new: 1) open: name for: mode
}
#method open: name for: mode
{
<primitive: #stdio_open>
}
#method close
{
<primitive: #stdio_close>
}
}
#extend Stdio
{
#method xxxx
{
self basicSize dump.
}
}
#class(#byte) Stdio2(Stdio)
{
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new).
}
}