From: Nicholas Clark Date: Fri, 10 Mar 2006 12:57:18 +0000 (+0000) Subject: Teaching embed.pl about conditional symbols is a TODO. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eed3664497ab4a98ed2fb1f5396c6cb89df184a8;p=p5sagit%2Fp5-mst-13.2.git Teaching embed.pl about conditional symbols is a TODO. p4raw-id: //depot/perl@27461 --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index c87c9a1..be129d8 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -155,6 +155,17 @@ Ilya observed that use POSIX; eats memory like there's no tomorrow, and at various times worked to cut it down. There is probably still fat to cut out - for example POSIX passes Exporter some very memory hungry data structures. +=head2 embed.pl/makedef.pl + +There is a script F that generates several header files to prefix +all of Perl's symbols in a consistent way, to provide some semblance of +namespace support in C. Functions are declared in F, variables +in F and F. Quite a few of the functions and variables +are conditionally declared there, using C<#ifdef>. However, F +doesn't understand the C macros, so the rules about which symbols are present +when is duplicated in F. Writing things twice is bad, m'kay. +It would be good to teach C to understand the conditional +compilation, and hence remove the duplication, and the mistakes it has caused.