Skip to content

Issue converting typedef pointers to checked types #619

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

Closed
hasantouma opened this issue Jun 17, 2019 · 2 comments
Closed

Issue converting typedef pointers to checked types #619

hasantouma opened this issue Jun 17, 2019 · 2 comments

Comments

@hasantouma
Copy link
Contributor

hasantouma commented Jun 17, 2019

I came across this issue when converting the icecast code.

The issue can be illustrated with this small example:

#ifndef foo
#define foo int
#endif

int main() {
  foo* a;

  return 0;
}

checked-c-convert produces this:

#ifndef foo
#define foo int
#endif

int main() {
  _Ptr<int>  aa;

  return 0;
}

Note the variable name change and the _Ptr<> change from foo to int

@hasantouma
Copy link
Contributor Author

This is a more extensive example of the issue:

C code:

#ifndef foo
#define foo int
#endif

int main() {
  foo *a, *b, *c;

  return 0;
}

checked-c-convert output:

#ifndef foo
#define foo int
#endif

int main() {
  foo *a, *b, *c_Ptr<int> a;
_Ptr<int> b;
_Ptr<int> c;
;

  return 0;
}

@mgrang mgrang added the bug This labels issues that are bugs. label Sep 5, 2019
@sulekhark sulekhark removed the bug This labels issues that are bugs. label Jan 27, 2021
@mgrang
Copy link

mgrang commented Jan 28, 2021

Transferred this issue to the 3C team: correctcomputation#409

@mgrang mgrang closed this as completed Jan 28, 2021
sulekhark pushed a commit that referenced this issue Jul 8, 2021
…indows. (#626)

* Fix escaping bugs that currently affect the JSON formatting test on
Windows.

Other escaping bugs may remain; #620 is to fix all of them.

Fixes #619.

* Add test of a backslash in a file path on Linux and Mac OS X.

While I'm here, fix a typo in the name of json_formating.c and add `--`
to its `3c` command lines.
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

No branches or pull requests

3 participants