zsh-workers
 help / color / mirror / code / Atom feed
* Why is the body of main() back in init.c again?
@ 2000-08-03 14:42 Bart Schaefer
  2000-08-03 14:52 ` Andrej Borsenkow
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2000-08-03 14:42 UTC (permalink / raw)
  To: zsh-workers

We started out with main() in init.c, and then we created main.c and moved
main() there, and now main() is a stub and it's body is back in init.c.

This sort of thing gives me a headache; it makes it very difficult to track
changes within the code that's bouncing back and forth.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Why is the body of main() back in init.c again?
  2000-08-03 14:42 Why is the body of main() back in init.c again? Bart Schaefer
@ 2000-08-03 14:52 ` Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 2000-08-03 14:52 UTC (permalink / raw)
  To: Bart Schaefer, zsh-workers

>
> We started out with main() in init.c, and then we created main.c and moved
> main() there, and now main() is a stub and it's body is back in init.c.
>
> This sort of thing gives me a headache; it makes it very difficult to track
> changes within the code that's bouncing back and forth.
>

Mea culpa. The problem is, main() was referencing many things from libzsh that
were not mod_export'ed. So, at least with current implementation, there were
not seen on Cygwin (currently only mod_export'ed symbols are put into DLL
export list).

Is there any specific reson why main() should be in main.c? In this case,
probably, it is possible to just export everything from DLLs on Cygwin (that
is what happens on Unix anyway) and move main() back into main.c

-andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-03 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-03 14:42 Why is the body of main() back in init.c again? Bart Schaefer
2000-08-03 14:52 ` Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).