You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
852B

  1. #!/usr/bin/perl
  2. ##
  3. ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  4. ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ##
  6. ## This program is distributed under the terms and conditions of the GNU
  7. ## General Public License Version 2 as published by the Free Software
  8. ## Foundation or, at your option, any later version.
  9. use strict;
  10. use warnings;
  11. use lib '.';
  12. do 'bin/make.pl';
  13. # function pointer declaration
  14. sub make_pfn_decl($%)
  15. {
  16. our $export;
  17. return $export . " PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . ";";
  18. }
  19. my @extlist = ();
  20. my %extensions = ();
  21. our $export = shift;
  22. if (@ARGV)
  23. {
  24. @extlist = @ARGV;
  25. foreach my $ext (sort @extlist)
  26. {
  27. my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
  28. output_decls($functions, \&make_pfn_decl);
  29. }
  30. }