Code Review? Looking for some thoughts on OOP C Code
I'm wondering if anyone would be so kind as to read some code I wrote, and provide feedback about things I may have done wrong. Maybe performance considerations? Things like that. And I'm wondering if anyone has implemented C libraries like this.
I've been writing some code that started as me experimenting with C, and ended up being quite useful. I haven't added thread safety yet, but will probably do that in the next week or so. The code was experiments on how to implement retain, release, copying, types, and deallocators. Essentially allowing anyone to implement a certain structure to gain most of this functionality. It was essentially my tests at writing some OOP C code.
I'm asking for this help because I don't work with or know anyone that writes C code, so I don't have a good outlet for some review. I'd even be ok making contact outside of this forum for back and forth.
The project is here:
beheadedmyway's oop_gd_c at master - GitHub
I would start by looking at the gd_obj* files, and then look at the gd_data* files to see how you'd implement the GD functions.
Thanks!