mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 08:40:44 +00:00
A few mor compiler warning fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc71c9bb52
commit
d95bf96af8
4 changed files with 8 additions and 1 deletions
|
@ -31,6 +31,8 @@
|
|||
#include <base/Array.h>
|
||||
#include <Foundation/NSException.h>
|
||||
|
||||
extern BOOL sel_types_match(const char* t1, const char* t2);
|
||||
|
||||
static int debug_coder = 0;
|
||||
|
||||
@implementation Decoder
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include <Foundation/NSConnection.h>
|
||||
#include <Foundation/NSException.h>
|
||||
|
||||
extern BOOL sel_types_match(const char* t1, const char* t2);
|
||||
|
||||
/* xxx We are currently retaining the return value.
|
||||
We shouldn't always do this. Make is an option. */
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@
|
|||
/* memory.h and strings.h conflict on some systems. */
|
||||
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
|
||||
|
||||
extern BOOL sel_types_match(const char* t1, const char* t2);
|
||||
|
||||
|
||||
/* For encoding and decoding the method arguments, we have to know where
|
||||
to find things in the "argframe" as returned by __builtin_apply_args.
|
||||
|
|
|
@ -79,7 +79,8 @@ extern long strtol(const char *str, char** ptr, int base);
|
|||
#define inchar() ((c = (*inchar_func)(stream)) == EOF ? EOF : (++read_in, c))
|
||||
|
||||
/* #define conv_error() return ((c == EOF || ungetc(c, s)), done) */
|
||||
#define conv_error() return ((c == EOF || ((*unchar_func)(stream,c),c)), done)
|
||||
//#define conv_error() return ((c == EOF || ((*unchar_func)(stream,c),c)), done)
|
||||
#define conv_error() return (c==EOF ? done : ((*unchar_func)(stream,c), done))
|
||||
|
||||
#define input_error() return (done == 0 ? EOF : done)
|
||||
#define memory_error() return ((errno = ENOMEM), EOF)
|
||||
|
|
Loading…
Reference in a new issue