home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / tp / bt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-12  |  1.1 KB  |  36 lines

  1. #ifndef lint
  2. static char *sccsid = "@(#)bt.c 1.3 1/22/92 16:07:58 [1/26/92] (c)IBM Corp. 1992";
  3. #endif
  4.  
  5. /*
  6.  * This class is adapted from the book
  7.  *   Class Construction in C and C++, Object Oriented Fundamentals
  8.  *   by Roger Sessions, Copyright (c) 1992 Prentice Hall.
  9.  * Reprinted with permission.
  10.  */
  11.  
  12. #define baseType_Class_Source
  13. #include "bt.ih"
  14. #include "helper.h"
  15.  
  16. SOM_Scope int SOMLINK match(baseType * somSelf,
  17.                  void *target)
  18. {
  19.     /* baseTypeData *somThis = baseTypeGetData(somSelf); */
  20.     baseTypeMethodDebug("baseType", "match");
  21.     shouldHaveOverridden(somSelf, "match");
  22.     target;                   /* Avoid unreferenced parameter compiler
  23.                     * warning for OS/2 compiler */
  24.     return 0;
  25. }
  26.  
  27. SOM_Scope void SOMLINK print(baseType * somSelf,
  28.                   FILE * outputFile)
  29. {
  30.     /* baseTypeData *somThis = baseTypeGetData(somSelf); */
  31.     baseTypeMethodDebug("baseType", "print");
  32.     shouldHaveOverridden(somSelf, "print");
  33.     outputFile;                /* Avoid unreferenced parameter compiler
  34.                     * warning for OS/2 compiler */
  35. }
  36.