Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!jos@cs.vu.nl From: jos@cs.vu.nl (Jos Warmer) Newsgroups: comp.lang.eiffel Subject: Calling eiffel-routines from C ? Message-ID: <2135@vlot.cs.vu.nl> Date: 9 Mar 89 10:33:21 GMT Sender: jos@cs.vu.nl Reply-To: jos@cs.vu.nl (Jos Warmer) Organization: VU Informatica, Amsterdam Lines: 24 Many window-system, written and callable from C, have the following architecture. You initialise your application and install some callback-functions and tell on which event they shoul be called. Then you give control to the window-system which takes over everything and calls one of the installed C callback-functions when an event happens. E.g. XtMainLoop in Xt toolkit, window_main_loop in SunView. Using this from eiffel poses the problem that the C window-system takes over and needs to call eiffel-routines (not C), otherwise eiffel loses control altogether. Is it possible in eiffel to make C functions call eiffel-routines. I know it is in standalone C packages, but that's not what I need. Or does anyone know another solution ? ============================================================================ Jos Warmer jos@cs.vu.nl ...uunet!mcvax!cs.vu.nl!jos ============================================================================