Leaked source code of windows server 2003
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.

23 lines
549 B

  1. # genwraps.pl
  2. # helps generate wrappers for a module's imports
  3. #input an imports file
  4. #generated by 'link /dump /imports MODULE'
  5. #outputs the replacer macros that should go in uwrap.h
  6. # nadima
  7. while(<>)
  8. {
  9. #look for a single line containing a dll
  10. if(m/\W*(\w*\.dll)$/)
  11. {
  12. print "// ". $1 ."\n";
  13. }
  14. #look for a 'W' function
  15. if(m/.* (\w*)W$/)
  16. {
  17. print "#ifdef " . $1 . "\n";
  18. print "#undef " . $1 . "\n";
  19. print "#endif\n";
  20. print "#define " . $1 . " " . $1 . "XWrap\n\n" ;
  21. }
  22. }