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()
This commit is contained in:
hyunghwan.chung
2016-11-27 15:37:14 +00:00
parent e8985e6dc5
commit 394a21b8d6
13 changed files with 692 additions and 565 deletions

View File

@ -1,18 +1,24 @@
#class(#word) Stdio(Object)
## #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: 1)
^(super new: (self _newInstSize))
}
#method(#class) new
{
##self prohibited
##raise exception. prohibited...
^(super new: 1)
^(super new: (self _newInstSize))
}
#method(#class) open: name for: mode
@ -29,14 +35,17 @@
{
<primitive: #stdio_close>
}
}
#method xxx
#extend Stdio
{
#method xxxx
{
self basicSize dump.
}
}
#class(#word) Stdio2(Stdio)
#class(#byte) Stdio2(Stdio)
{
#method(#class) new
{

View File

@ -126,7 +126,7 @@
##v1 := Stdio2 open: '/tmp/1.txt' for: 'w+'.
v1 := Stdio2 new open: '/tmp/1.txt' for: 'w+'.
v1 xxx.
v1 xxxx.
v1 close.
nil isNil ifTrue: [ 'NIL NIL NIL' dump. ].
(Apex new) notNil ifTrue: [ 'APEX NIL NIL NIL' dump. ].