Comments (5)
Looks bad! I think it can largely be fixed around here and transitive functinos.
from ctest.
So I have partially fixed this, but I am having a bit of trouble generating the functions that return function pointer types (I have to generate a typedef for the pointer first).
from ctest.
The syntax for doing so, while obscure, is possible to do without a typedef!
from ctest.
@alexcrichton yeah, it can be done, but it gets nastier as the function pointers being returned also return function pointers (e.g. fn() -> fn() -> fn() -> fn()
). I'll try to special case the C code generated for statics to, instead of adding a function that returns a type, have it use that function pointer syntax when the return type is a function pointer.
from ctest.
Will be closed by https://github.com/alexcrichton/ctest/pull/39 .
from ctest.
Related Issues (20)
- structs don't survive macro expansion HOT 7
- Test extern statics HOT 1
- Not clear how to test `const <type> <obj>;` fields HOT 2
- the cfg example is unclear HOT 1
- Migrate from appveyor to azure pipelines HOT 2
- Test C Macros with custom code HOT 5
- References in C FFI should emit the restrict qualifier in the tests HOT 2
- cannot parse modern rust due to reliance of syntex_syntax HOT 6
- Alignment checks are broken for u64 on i686-unknown-linux-gnu HOT 8
- Relies on deprecated syntex crate HOT 2
- Use of uninitialized warns on 1.36.0 HOT 3
- typedef for a struct is missing the struct keyword HOT 1
- panic on latest nightly HOT 3
- Getting `internal error: entered unreachable code`
- Error with rust-openssl and Alpine Linux HOT 1
- Add repository topics
- Fails to build on nightly HOT 1
- builtin f32 type isn't handled HOT 1
- Warnings about deprecated atomic initializers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctest.