home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / ExampleLibrary / Sources / ExampleLibrary.exp < prev    next >
Encoding:
Text File  |  1996-11-19  |  1.0 KB  |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ExampleLibrary.exp
  3.  
  4.     Contains:    Export declarations for ExampleLibrary
  5.  
  6.     Copyright:    © 1992-1994 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11. #include "ExampleClass.h"
  12. #include <LibraryManager.h>
  13.  
  14. #define kExampleLibID    "appl$ExampleLibrary,1.2"
  15.  
  16. Library
  17. {
  18.     id = kExampleLibID;
  19.     version = 1.0…1.2;
  20.     memory = client;
  21.     flags=segunload;
  22. };
  23.  
  24. //
  25. //    ASLM cannot automatically detect static functions based on their mangled names
  26. //    when SCpp or MRC is used. Because of this, we have to explicity tell ASLM not to
  27. //    export static functions that we want to export from a function set instead.
  28. //
  29. Class TExampleClass
  30. {
  31.     flags = newobject;
  32. #if defined(__SC__) || defined(__MRC__)
  33.     dontexport = Test;
  34. #endif
  35. };
  36.  
  37. FunctionSet ExampleFSet
  38. {
  39.     id = kExampleFunctionSet;
  40. // 
  41. // We could use the following export line, but we want all exported
  42. // functions from the library to be exported, so we say nothing!
  43. //
  44. //    exports = Hello, extern HelloC, pascal extern HelloPascal, Goodbye,
  45. //             pascal GoodbyePascal, TExampleClass::Test;
  46. };
  47.