emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic loading progress


From: Daniel Colascione
Subject: Re: Dynamic loading progress
Date: Sun, 15 Feb 2015 09:31:12 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/15/2015 09:28 AM, Eli Zaretskii wrote:
>> Date: Sun, 15 Feb 2015 09:04:01 -0800
>> From: Daniel Colascione <address@hidden>
>> CC: address@hidden, address@hidden
>>
>> Modules provide an initialization function to Emacs: Emacs then
>> calls this initialization function with a pointer to a C structure
>> containing a table of function pointers. Modules call these function
>> pointers to do their work.
> 
> How will modules know which function in the table does what job?

Positionally, as fixed in the structure that defines the table.

struct {
  void (*func1)(int);
  void (*func2)(double);
  /* etc. */
}

This way, the ABI Emacs exports is explicit, and breaking it is unlikely
to happen accidentally.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]