ObjFW  Check-in [7da45d5ccf]

Overview
Comment:Indentation fix.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7da45d5ccf5cceab6961eda74278df28679f9f381b33ba80ee5383826ac37056
User & Date: js on 2011-10-22 16:57:50
Other Links: manifest | tags
Context
2011-10-22
17:06
Fix libobjc version check. check-in: 79b09ea934 user: js tags: trunk
16:57
Indentation fix. check-in: 7da45d5ccf user: js tags: trunk
16:14
Define of_thread_current without the ().
This way, it's possible to get a pointer to the actual function.
check-in: 376cff4c0b user: js tags: trunk
Changes

Modified src/OFStreamObserver_select.m from [7d6a58ffc2] to [d0c40db2e0].

79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	size_t i, count;

	[self _processQueue];

	if ([self _processCache])
		return YES;

# ifdef FD_COPY
	FD_COPY(&readFDs, &readFDs_);
	FD_COPY(&writeFDs, &writeFDs_);
	FD_COPY(&exceptFDs, &exceptFDs_);
# else
	readFDs_ = readFDs;
	writeFDs_ = writeFDs;
	exceptFDs_ = exceptFDs;
# endif

	time.tv_sec = timeout / 1000;
	time.tv_usec = (timeout % 1000) * 1000;

	if (select((int)maxFD + 1, &readFDs_, &writeFDs_, &exceptFDs_,
	    (timeout != -1 ? &time : NULL)) < 1)
		return NO;







|



|



|







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	size_t i, count;

	[self _processQueue];

	if ([self _processCache])
		return YES;

#ifdef FD_COPY
	FD_COPY(&readFDs, &readFDs_);
	FD_COPY(&writeFDs, &writeFDs_);
	FD_COPY(&exceptFDs, &exceptFDs_);
#else
	readFDs_ = readFDs;
	writeFDs_ = writeFDs;
	exceptFDs_ = exceptFDs;
#endif

	time.tv_sec = timeout / 1000;
	time.tv_usec = (timeout % 1000) * 1000;

	if (select((int)maxFD + 1, &readFDs_, &writeFDs_, &exceptFDs_,
	    (timeout != -1 ? &time : NULL)) < 1)
		return NO;