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.

16 lines
638 B

  1. while (<>) {
  2. if (/^ FILEVERSION (\d+),(\d+),(\d+),(\d+).*$/) {
  3. $build = $1 . "." . $2 . "." . $3 . "." . $4;
  4. print "#define RICHEDIT_VER \"" . $build ."\"\n";
  5. print "#define RICHEDIT_VERMAJ $2\n";
  6. printf "#define RICHEDIT_VERMIN %d\n", $3;
  7. printf "#define RICHEDIT_VERBUILD %d\n", $4;
  8. }
  9. }
  10. print "#ifdef DEBUG\n";
  11. print "#define RICHEDIT_BUILD RICHEDIT_VER ## \" (Debug)\"\n";
  12. print "#else\n";
  13. print "#define RICHEDIT_BUILD RICHEDIT_VER\n";
  14. print "#endif\n";
  15. print "#define RICHEDIT_HEADER \"Msftedit \" ## RICHEDIT_BUILD\n";
  16. print "#define RTF_GENINFO \"{\\\\*\\\\generator \" ## RICHEDIT_HEADER ## \";}\"\n";