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.

79 lines
1.7 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ane23Dec92: Added #define of DECLARE_ISA_TEXT
  7. * pcy13Jan93: Removed == and != member functions. They're already in the header.
  8. * pcy18Sep93: Moved implementation of equals to .cxx
  9. * rct05Nov93: Added memory check stuff
  10. * pcy04Apr94: Removed do nothing constructors for space
  11. * cad07Apr94: initing debug flag
  12. * mwh01Jun94: port for INTERACTIVE
  13. * ash08Aug96: Added new handler
  14. * poc17Sep96: New handler code should not be compiled on Unix
  15. * poc17Sep96: Missed a M. Windows specific file - should not be included.
  16. * srt30Sep96: Fixed initializer of memhdlr
  17. */
  18. //
  19. // Implementation of a generic object...derived from Borland's container
  20. // class libraries.
  21. //
  22. //
  23. #include "cdefine.h"
  24. extern "C" {
  25. #include <stdlib.h>
  26. #include <stdio.h>
  27. #include <windows.h>
  28. }
  29. #define DECLARE_ISA_TEXT
  30. #include "apcobj.h"
  31. #include "isa.h"
  32. //------------------------------------------------------------------------
  33. Obj::Obj() : theObjectStatus(ErrNO_ERROR)
  34. {
  35. #ifdef APCDEBUG
  36. theDebugFlag = 0;
  37. #endif
  38. }
  39. //------------------------------------------------------------------------
  40. Obj::~Obj()
  41. {
  42. #ifdef MCHK
  43. strncpy(memCheck, " ", 30);
  44. #endif
  45. }
  46. //------------------------------------------------------------------------
  47. INT Obj::IsA() const
  48. {
  49. return OBJ;
  50. }
  51. //------------------------------------------------------------------------
  52. INT Obj::Equal( RObj anObj) const
  53. {
  54. if(this == &anObj)
  55. {
  56. return TRUE;
  57. }
  58. else
  59. {
  60. return FALSE;
  61. }
  62. }