eiffelroom

C

blog

In case you did not know, C++ s....

manus_eiffel's picture

Last week, I was wrapping some C++ code for a customer and I was surprised that my code did not work properly. I'm not a C++ programmer and thus this error might have been a typical gotcha but still this was a very surprising behavior.

The code in question was:

<c>void my_routine (CppClass my_obj, int buffer_count, char * buffer) { const char * l_cstr = my_obj->getName().c_str();

article

Protecting objects

Having looked at code for interfacing Eiffel to C and creating callbacks from C to Eiffel, I frequently found that things were not done properly, resulting in potential memory corruption or crashes.

blog

C global variables in Eiffel

Per Module C Global Variables

If we write a C header file for a Eiffel application (not for Eiffel runtime), there are C variables in C header file which we use for interactive with Eiffel language. We should take care about the global C variables. They are not application level global variables if they are included several times. Note static C global variables of the same case.

tool

espawn

A tool for launching multiple processes synchronously or asynchronously using the same environment configured in tools such as finish_freezing or ec
tool

EWG

EWG (Eiffel Wrapper Generator) is a tool that generates Eiffel wrapper classes for C libraries.
Syndicate content
about - contact