--- Begin Message ---* Alan W. Irwin <[EMAIL PROTECTED]> [2008-09-04 16:17]: > I would love to see that happen so I agree with Rafael this is well worth > doing. However, an alternative implementation would be to follow the > cookbook in the above wiki to extend what we currently do for windows in > include/pldll.h to handle the gcc case. The obvious advantage of this > approach is once include/pldll.h is changed it affects both current API and > future API so there is some benefit in terms of not having to maintain an > additional file such as included in Rafael's patch whenever we add to our > API.The doc/docbook/src/api.xml should also be updated whenever the API changes. Here is a simple one-line Perl script that extracts the list of API functions from the documentation file: perl -e '$/=undef;print(join("\n",map{"c_$_"}<>=~m:<funcdef>\s+<function>(.*)</function>\s+</funcdef>:g),"\n")' < doc/docbook/src/api.xml This could be used to generate the symbols file needed by the --retain-symbols-file option from a centralized location. Rafael P.S.: Okay, I agree, the Perl code is a little bit obfuscated :-) Here is the equivalent of the above, but in a verbose script file with lots of variables and commentaries (launch it as '/path/to/script-file < doc/docbook/src/api.xml'): =========================================================================== #!/usr/bin/perl -w # Slurp the whole input as a single multi-line string $ /= undef; $text = <>; # Collect all function names in the XML input @functions = ($text =~ m:<funcdef>\s+<function>(.*)</function>\s+</funcdef>:g); # Prepend "c_" to the function names @c_functions = map {"c_$_"} @functions; # Print the names, separated by newlines print (join ("\n", @c_functions),"\n"); ===========================================================================
--- End Message ---
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
