mygetval.c 617 B

123456789101112131415161718192021222324252627
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #if defined(WIN16)
  6. #include <windows.h>
  7. #endif
  8. #include "prtypes.h"
  9. extern PRIntn my_global;
  10. PR_IMPLEMENT(PRIntn) My_GetValue()
  11. {
  12. return my_global;
  13. }
  14. #if defined(WIN16)
  15. int CALLBACK LibMain( HINSTANCE hInst, WORD wDataSeg,
  16. WORD cbHeapSize, LPSTR lpszCmdLine )
  17. {
  18. return TRUE;
  19. }
  20. #endif /* WIN16 */