(no title)
jaimzob | 14 years ago
For anyone interested in a C version, I wrote this a while ago, YMMV: https://github.com/jaimz/core_ds/blob/master/MxStringBuffer....
jaimzob | 14 years ago
For anyone interested in a C version, I wrote this a while ago, YMMV: https://github.com/jaimz/core_ds/blob/master/MxStringBuffer....
ExpiredLink|14 years ago
- _MxStringBuffer need not be defined in the header, a forward declaration would be sufficient (a.k.a. encapsulation).
- the two #defines can be removed form the header, too.
- I wouldn't try to typedef away a pointer (as in typedef struct _MxStringBuffer * MxStringBufferRef) but either use the pointer (MxStringBuffer* ) or create a handle: struct MxHandleStringBuffer { _MxStringBuffer * impl; };
jaimzob|14 years ago
alexchamberlain|14 years ago
Edit: In fact, you must need the declaration to access the internals.
gravitronic|14 years ago
It's on github. Post a pull request or keep it to yourself. Especially as your comments are stylistic.
politician|14 years ago