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.

40 lines
890B

  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. ##
  14. ## Make Index
  15. ##
  16. ## Output sorted array of extension strings for indexing into extension
  17. ## enable/disable flags. This provides a way to convert an extension string
  18. ## into an integer index.
  19. ##
  20. my @extlist = ();
  21. if (@ARGV)
  22. {
  23. @extlist = @ARGV;
  24. foreach my $ext (sort @extlist)
  25. {
  26. my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) =
  27. parse_ext($ext);
  28. print "#ifdef $extname\n";
  29. print " \"$extname\",\n";
  30. print "#endif\n";
  31. }
  32. }