ObjFW  Diff

Differences From Artifact [1f1aa20392]:

  • File src/OFFile.m — part of check-in [c5e7dd679b] at 2013-09-17 16:12:37 on branch trunk — Work around Android bugs.

    Includes:
    * Check environ against NULL before using it, since Android sets it to
    NULL.
    * Cast st_size of struct stat to off_t. Android uses long long for
    st_size as its off_t is only 32 bit, but st_size should be off_t
    according to POSIX.
    * Android's strtod() does not accept 0x, as specified by C99. Thus,
    the test is disabled if __ANDROID__ is defined. (user: js, size: 17848) [annotate] [blame] [check-ins using]

To Artifact [65676b97b5]:


687
688
689
690
691
692
693
694
695
696
697
698
699
700

701
702
703
704
705
706
707
708
687
688
689
690
691
692
693







694

695
696
697
698
699
700
701







-
-
-
-
-
-
-
+
-







				  encoding: OF_STRING_ENCODING_NATIVE
				    length: length];
}
#endif

- init
{
	@try {
		[self doesNotRecognizeSelector: _cmd];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	OF_INVALID_INIT_METHOD
	abort();
}

- initWithPath: (OFString*)path
	  mode: (OFString*)mode
{
	self = [super init];