develooper Front page | perl.perl5.porters | Postings from September 2010

? new autogen'd hdr to be #included in perl.h; or manually updateperl.h when rare changes happen

Thread Next
From:
karl williamson
Date:
September 13, 2010 08:06
Subject:
? new autogen'd hdr to be #included in perl.h; or manually updateperl.h when rare changes happen
Message ID:
4C8E3DFA.3070807@khwilliamson.com
We have previously discussed on this list changing some macros, like 
isPUNCT(), in handy.h to use table lookup for speed.   The table should 
go in perl.h.

I have written a little script that generates the table; I propose to 
put the script in the Porting directory.  Once debugged, the table would 
not need to change except in the very rare event of adding a new macro 
that would make use of it.

The script could be written to generate a .h that would be included in 
perl.h.  Or it could be written so that its output would be saved and 
perl.h edited by hand to use it.  (It could even interpolate its result 
into perl.h directly, though I don't think that's a good idea.)

Given the rarity of needing to change the table, I'm inclined to think 
the manual change is the way to go to avoid needless complexity.

Are there contrary opinions?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About