bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnustep-base.dll on mingw part II


From: Michael Scheibler
Subject: gnustep-base.dll on mingw part II
Date: Mon, 26 Mar 2001 14:11:50 +0200

Another declaration has to be changed for mingw-dll support:


NSRange.h:

GS_RANGE_SCOPE NSRange
NSMakeRange(unsigned int location, unsigned int length)
{
  NSRange range;
  unsigned int end = location + length;

  if (end < location || end < length)
    {
!      GS_EXPORT void _NSRangeExceptionRaise ();  // needs GS_EXPORT for DLL
support
      /* NB: The implementation of _NSRangeExceptionRaise is:
         [NSException raise: NSRangeException
                     format: @"Range location + length too great"]; */

      /* _NSRangeExceptionRaise is defined in NSRange.m so that this
         file (NSRange.h) can be included without problems in the
         implementation of the base classes themselves. */
      _NSRangeExceptionRaise ();
    }
  range.location = location;
  range.length   = length;
  return range;
}




NSRange.m:

GS_EXPORT void _NSRangeExceptionRaise ()




Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]