On Thu, 1 Nov 2001, Gregor N. Purdy wrote:

> We may end up needing to consolidate these platform-isms into a small
> number of files (one?) rather than have them split by type (like I did for
> Parrot_*_time). I don't know if we can get away with something as simple
> as platform.[hc] with all the yuck in one place or whether we need to have
> a platform/ directory with platform_*.[hc] in it that get copied at config
> time to platform.c and include/parrot/platform.h...

platform.c and platform.h is exactly what we're going to do. We need a
platforms directory as well. In there we'll have a win32.[ch], a
linux.[ch], a vms.[ch], a generic.[ch] and so on. Configure.pl will copy
the appropriate ones up and rename them platform.c & platform.h, and we'll
go from there.

For things like sleep that are not everywhere, I think we need to restrict
our usage to PP_sleep (for example) and #define that as appropriate in teh
platform.h file.

                                        Dan

Reply via email to