Subject | Re: [Firebird-Architect] External Engines (and Plugins) |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2008-06-23T15:26:35Z |
Adriano dos Santos Fernandes escreveu:
strings are just returned as pointer, and we don't deal with lengths.
They're all null-terminated.
I'd also want to remove lengths of many things (names, entrypoints, but
not of Value::getString) in the others interfaces. Do you see any problem?
While all this functions deals with char*, assuming we have wide
character sets usable as attachment charset in the future, the callers
are expected to cast the pointers, i.e., null-terminated UTF-16 will end
with two ((char) '\0'), one ((short) 0).
Adriano
> The files are all using int's to represent sizes, positions and whateverDoing it.
> matters. Though I prefer int's, there is no problem if you all decides
> to using uint's.
> I also plan to remove all Error parameters where errorsAnother thing I missed... Plugin interface born later, and you see
> are expected to never happen (Values::getCount, for example).
strings are just returned as pointer, and we don't deal with lengths.
They're all null-terminated.
I'd also want to remove lengths of many things (names, entrypoints, but
not of Value::getString) in the others interfaces. Do you see any problem?
While all this functions deals with char*, assuming we have wide
character sets usable as attachment charset in the future, the callers
are expected to cast the pointers, i.e., null-terminated UTF-16 will end
with two ((char) '\0'), one ((short) 0).
Adriano