1. ver 4 Question about define_c_func

If I define a machine function to use CDECL calling (using the PLUS)

Is there any way to verify that the CDECL is really being used ?

No matter how I define the function it returns the same routine_id number ?

When I use the c_func to call the define machine code how does
Euphoria know how to call the function where is that calling
information kept track of ?

Does a c_func need to use the plus sign when calling ?

The latest manual entries are confusing concerning define_c_func
Using x parameter ( no x ); using c_proc to call define_c_func; etc.

new topic     » topic index » view message » categorize

2. Re: ver 4 Question about define_c_func

bernie said...

If I define a machine function to use CDECL calling (using the PLUS)

Is there any way to verify that the CDECL is really being used ?

No.

bernie said...

No matter how I define the function it returns the same routine_id number ?

Correct. The numbers are just entries in a list, first entry gets zero, second gets one, third gets two, etc.

bernie said...

When I use the c_func to call the define machine code how does
Euphoria know how to call the function where is that calling
information kept track of ?

This is done in be_callc.c, look for "cdecl".

bernie said...

Does a c_func need to use the plus sign when calling ?

No. Once defined, this information is remembered in the internal structures.

bernie said...

The latest manual entries are confusing concerning define_c_func
Using x parameter ( no x ); using c_proc to call define_c_func; etc.

new topic     » goto parent     » topic index » view message » categorize

3. Re: ver 4 Question about define_c_func

Thanks Jim

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu