This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/691] New: __THROW problem
- From: "giffordj at linkline dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Jan 2005 20:32:58 -0000
- Subject: [Bug libc/691] New: __THROW problem
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
I have observed the following issue with __THROW on atftp. Is the code incorrect
or is this an issue with __THROW
Here is the section of code unmodified
#ifdef __USE_EXTERN_INLINES
extern inline char *
__argz_next (__const char *__argz, size_t __argz_len,
__const char *__entry) __THROW
{
if (__entry)
{
if (__entry < __argz + __argz_len)
__entry = strchr (__entry, '\0') + 1;
return __entry >= __argz + __argz_len ? (char *) NULL : (char *) __entry;
}
else
return __argz_len > 0 ? (char *) __argz : 0;
}
extern inline char *
argz_next (__const char *__argz, size_t __argz_len,
__const char *__entry) __THROW
{
return __argz_next (__argz, __argz_len, __entry);
}
#endif /* Use extern inlines. */
This gives the following error message
In file included from argz.c:42:
argz.h:184: error: parse error before '{' token
argz.h:198: error: parse error before '{' token
make[2]: *** [argz.o] Error 1
make[2]: Leaving directory `/usr/src/atftp-0.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/atftp-0.7'
make: *** [all] Error 2
Here is my modified code
#ifdef __USE_EXTERN_INLINES
extern inline char *
__NTH (__argz_next (__const char *__argz, size_t __argz_len,
__const char *__entry))
{
if (__entry)
{
if (__entry < __argz + __argz_len)
__entry = strchr (__entry, '\0') + 1;
return __entry >= __argz + __argz_len ? (char *) NULL : (char *) __entry;
}
else
return __argz_len > 0 ? (char *) __argz : 0;
}
extern inline char *
__NTH (argz_next (__const char *__argz, size_t __argz_len,
__const char *__entry))
{
return __argz_next (__argz, __argz_len, __entry);
}
#endif /* Use extern inlines. */
--
Summary: __THROW problem
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: giffordj at linkline dot com
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: mipsel-unknown-linux-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=691
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.