ObjFW  Check-in [1ff91c7491]

Overview
Comment:of_explicit_memset(): Add explicit cast for C++
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1ff91c7491ddc0f2c63ed83e27a6d1e8c181991b995c944e256aabefdb3e93d0
User & Date: js on 2017-03-20 22:50:26
Other Links: manifest | tags
Context
2017-03-26
14:02
Call the right C++ personality for SEH exceptions check-in: 26d0e98438 user: js tags: trunk
2017-03-20
22:50
of_explicit_memset(): Add explicit cast for C++ check-in: 1ff91c7491 user: js tags: trunk
2017-03-12
23:40
Fix compilation with --disable-files check-in: 1bf4f2e210 user: js tags: trunk
Changes

Modified src/macros.h from [7f5d9116f6] to [db7b5a88fe].

591
592
593
594
595
596
597
598
599
600
601
602
603
604
605

	return copy;
}

static OF_INLINE void
of_explicit_memset(void *buffer_, int character, size_t length)
{
	volatile unsigned char *buffer = buffer_;

	while (buffer < (unsigned char*)buffer_ + length)
		*buffer++ = character;
}

static OF_INLINE bool
of_ascii_isalpha(char c)







|







591
592
593
594
595
596
597
598
599
600
601
602
603
604
605

	return copy;
}

static OF_INLINE void
of_explicit_memset(void *buffer_, int character, size_t length)
{
	volatile unsigned char *buffer = (volatile unsigned char*)buffer_;

	while (buffer < (unsigned char*)buffer_ + length)
		*buffer++ = character;
}

static OF_INLINE bool
of_ascii_isalpha(char c)