[elinks-dev] Re: [patch 1/5] Define separate structs for events passed

2006-08-05 Thread Kalle Olavi Niemitalo
Miciah Dashiel Butler Masters [EMAIL PROTECTED] writes: It looks messy, but I don't know whether there is a better approach. I'll need to think about it more. Of course, Jonas is the boss. There are three reasons to have separate data formats for the interlink protocol and for internal use in

Re: [elinks-dev] Re: [patch 1/5] Define separate structs for events

2006-08-05 Thread Miciah Dashiel Butler Masters
On Sat, Aug 05, 2006 at 10:15:25AM +0300, Kalle Olavi Niemitalo wrote: Miciah Dashiel Butler Masters [EMAIL PROTECTED] writes: [...] What if we introduced a separate routine to convert term_event to interlink_event, so as to minimise change to handle_interlink_event? I don't see how that

[elinks-dev] Re: [patch 1/5] Define separate structs for events

2006-08-05 Thread Kalle Olavi Niemitalo
Miciah Dashiel Butler Masters [EMAIL PROTECTED] writes: How about a separate routine to convert from interlink_event to term_event? For EVENT_KBD, the conversion from interlink_event to term_event can be many-to-many if CONFIG_UTF_8 is not defined. I don't think it would be a good idea to