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.

57 lines
1.0 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. INFSCAN
  5. infscan.inl
  6. Abstract:
  7. PNF generation and INF Parser functions (inlines)
  8. History:
  9. Created July 2001 - JamieHun
  10. --*/
  11. inline PnfGen::PnfGen(const SafeString & name)
  12. {
  13. InfName = name;
  14. }
  15. inline void InfScan::Fail(int err)
  16. {
  17. StringList errors;
  18. Fail(err,errors);
  19. }
  20. inline void InfScan::Fail(int err,const SafeString & one)
  21. {
  22. StringList errors;
  23. errors.push_back(one);
  24. Fail(err,errors);
  25. }
  26. inline void InfScan::Fail(int err,const SafeString & one,const SafeString & two)
  27. {
  28. StringList errors;
  29. errors.push_back(one);
  30. errors.push_back(two);
  31. Fail(err,errors);
  32. }
  33. inline void InfScan::Fail(int err,const SafeString & one,const SafeString & two,const SafeString & three)
  34. {
  35. StringList errors;
  36. errors.push_back(one);
  37. errors.push_back(two);
  38. errors.push_back(three);
  39. Fail(err,errors);
  40. }
  41. inline BOOL InfScan::Pedantic()
  42. {
  43. return pGlobalScan->Pedantic;
  44. }