Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce a character type class in typelib #41

Open
doudou opened this issue Mar 17, 2015 · 0 comments
Open

introduce a character type class in typelib #41

doudou opened this issue Mar 17, 2015 · 0 comments

Comments

@doudou
Copy link
Contributor

doudou commented Mar 17, 2015

The handling of C 'char' is currently very broken in typelib, as typelib represents it as a numerical type. Among the few consequences of that choice:

  • the type has to be signed, which is platform-dependent. This does not need to be represented on the typelib side, as the representation of 'A' is the same at the binary level, regardless of whether, in C, 'A' is a positive or negative number
  • when displaying a value, typelib does not know whether it should be displayed as a numerical type or a character (while it is unambiguous from the type's definition). This leads to the infamous problem that the command-line pocolog tools displays arrays of chars as arrays of values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant