ObjFW  Check-in [e67130bd2d]

Overview
Comment:Minor style change - no functional change
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e67130bd2de2d9645e282df59c38e7bf58569ad61efb215b1f01553030c03ae6
User & Date: js on 2014-02-26 18:38:22
Other Links: manifest | tags
Context
2014-02-27
22:40
Allow thread-unsafe getaddrinfo() with locks check-in: fae85e954f user: js tags: trunk
2014-02-26
18:38
Minor style change - no functional change check-in: e67130bd2d user: js tags: trunk
2014-02-24
03:00
Update buildsys check-in: 053bccb220 user: js tags: trunk
Changes

Modified configure.ac from [12cfb0cf48] to [bc2e61633f].

869
870
871
872
873
874
875
876

877
878
879
880
881
882
883
884
885

886
887

888
889
890
891
892
893
894
869
870
871
872
873
874
875

876
877
878
879
880
881
882
883
884

885
886

887
888
889
890
891
892
893
894







-
+








-
+

-
+







	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$old_OBJCFLAGS"
	])

	old_OBJCFLAGS="$OBJCFLAGS"
	OBJCFLAGS="$OBJCFLAGS -Wdocumentation"
	AC_MSG_CHECKING(whether -Wdocumentation is buggy)
	AC_MSG_CHECKING(whether -Wdocumentation works correctly)
	AC_TRY_COMPILE([
		/*!
		 * @class Test conftest.m conftest.m
		 */
		@interface Test
		@end
	], [
	], [
		AC_MSG_RESULT(no, adding -Wdocumentation)
		AC_MSG_RESULT(yes)
	], [
		AC_MSG_RESULT(yes)
		AC_MSG_RESULT(no)
		OBJCFLAGS="$old_OBJCFLAGS"
	])
])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "${host_alias}-")

Modified src/OFConstantString.m from [ca9a42565c] to [dca68d3ede].

117
118
119
120
121
122
123
124

125
126
127
128
129
130
131
117
118
119
120
121
122
123

124
125
126
127
128
129
130
131







-
+







+ (void)load
{
#if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__)
	/*
	 * objc_setFutureClass suddenly stopped working as OFConstantString
	 * became more complex. So the only solution is to make
	 * _OFConstantStringClassRerence the actual class, but there is no
	 * objc_initializeClassPair in 10.5.  However, objc_allocateClassPair
	 * objc_initializeClassPair in 10.5. However, objc_allocateClassPair
	 * does not register the new class with the subclass in the ObjC1
	 * runtime like the ObjC2 runtime does, so this workaround should be
	 * fine.
	 */
	Class class;

	if ((class = objc_allocateClassPair(self, "OFConstantString_hack",