Fenceposting the bug fixes with __arm__ ifdefs.

This commit is contained in:
Ward Fisher 2015-12-24 09:35:32 -07:00
parent 925da14d2a
commit d71e9ed5f6
2 changed files with 27 additions and 1 deletions

View File

@ -995,8 +995,10 @@ ncx_putn_ulonglong_ulonglong(void **xpp, size_t nelems, const ulonglong *ip);
*/
/* read ASCII characters */
#ifdef __arm__
extern int
ncx_getn_text(const void **xpp, size_t nchars, char *cp);
ncx_getn_text(const void **xpp, size_t nchars, signed char *cp);
extern int
ncx_pad_getn_text(const void **xpp, size_t nchars, signed char *cp);
@ -1006,6 +1008,21 @@ ncx_putn_text(void **xpp, size_t nchars, const signed char *cp);
extern int
ncx_pad_putn_text(void **xpp, size_t nchars, const signed char *cp);
#else // ifdef __arm__
extern int
ncx_getn_text(const void **xpp, size_t nchars, char *cp);
extern int
ncx_pad_getn_text(const void **xpp, size_t nchars, char *cp);
/* write ASCII characters */
extern int
ncx_putn_text(void **xpp, size_t nchars, const char *cp);
extern int
ncx_pad_putn_text(void **xpp, size_t nchars, const char *cp);
#endif //ifdef __arm__
/* for symmetry */
#define ncx_getn_char_char(xpp, nelems, fillp) ncx_getn_text(xpp, nelems, fillp)
#define ncx_putn_char_char(xpp, nelems, fillp) ncx_putn_text(xpp, nelems, fillp)

View File

@ -3330,14 +3330,23 @@ ncx_getn_text(const void **xpp, size_t nelems, char *tp)
NCX_GETN_Byte_Body
}
#ifdef __arm__
int
ncx_pad_getn_text(const void **xpp, size_t nelems, signed char *tp)
#else
int
ncx_pad_getn_text(const void **xpp, size_t nelems, char *tp)
#endif
{
NCX_PAD_GETN_Byte_Body
}
#ifdef __arm__
int ncx_putn_text(void **xp, size_t nelems, const signed char *tp)
#else
int
ncx_putn_text(void **xpp, size_t nelems, const char *tp)
#endif
{
NCX_PUTN_Byte_Body
}