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

name mangling for 'char' type using [u]byte alias "char" #386

Merged
merged 1 commit into from Aug 1, 2022

Conversation

jayrm
Copy link
Member

@jayrm jayrm commented Jul 27, 2022

name mangling for 'char' type using [u]byte alias "char"

  • Name mangling for c++ 'char' through BYTE/UBYTE parameters using the form "[unsigned] byte alias "char".
  • Data type size is still 8 byte signed/unsigned from fbc side, but will be mangled as 'char'; neither signed nor unsigned for the c++ side.

fbc does not directly support the c++ 'char' type; only char* through zstring ptr.

This addition allows procedure parameters to be declared with the the built-in datatype ubyte or byte but have the mangled (decorated) name generated as if the type was a char.

Should also work with const, ptr, etc, but not tested. Documentation to be updated later on freebasic wiki at Alias (Modified)

- using the form "[unsigned] byte alias "char".
- Data type size is still 8 byte signed/unsigned from fbc side, but will mangled as 'char'; neither signed nor unsigned for the c++ side.
@jayrm jayrm merged commit 216d4e6 into freebasic:master Aug 1, 2022
@jayrm jayrm deleted the char-type branch August 13, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant