Comments (1)
That is something you would have to do manually, since this is a potentially dangerous conversion. The TArray<> type is only compatible with a C pointer in very specific situations, and only when the array is used only as input to the C function. C doesn't know anything about the internal structure of a Delphi TArray, so when a C function would write to the "brokers" field, this would result in an access violation on the Delphi side.
Also, pointers in C are not always arrays, but a lot of times just pointers to a single structure. Converting all pointers to arrays would therefore most probably be wrong.
Most of the times, you would have to update the generated Pascal file anyway because conversion is not always possible/accurate. So you can manually convert this field as well if needed.
from chet.
Related Issues (20)
- Post Processing Support HOT 2
- Anonymous Unions HOT 1
- Pulling in extra includes
- Translation Error HOT 3
- Please create a release
- Ok, so....
- [Question] Why no C++? HOT 1
- Error Messages
- Converting C structs issue HOT 3
- Post Processing does not work HOT 3
- Type declarations
- How to include struct tm from C standard library? HOT 2
- Fatal error HOT 1
- error: unknown type name 'bool' HOT 4
- Chet does not support tm time struct from time.h HOT 1
- CreateDynamicImport(0) should not parse comments HOT 3
- CreateDynamicImport(0) does not insert var before function declarations HOT 1
- Generate pointer types for C unions
- Error converting XMLSec library HOT 4
- Justify the project with Godot headers HOT 1
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 chet.