missing define
This commit is contained in:
parent
f6d434e314
commit
a478a83c27
@ -19,6 +19,8 @@
|
||||
|
||||
#define ENCODING_H 1
|
||||
|
||||
#include "YapError.h"
|
||||
|
||||
typedef enum {
|
||||
ENC_OCTET = 0, /// binary files
|
||||
ENC_ISO_LATIN1 = 1, /// US+West Europe
|
||||
@ -186,9 +188,7 @@ static inline encoding_t enc_id(const char *s, encoding_t enc_bom) {
|
||||
if (enc_bom != ENC_OCTET)
|
||||
return enc_bom;
|
||||
return Yap_DefaultEncoding();
|
||||
}
|
||||
else {
|
||||
Yap_Error(DOMAIN_ERROR_OUT_OF_RANGE, MkAtomTerm(Yap_LookupAtom(s)), "bad encoding %s", s);
|
||||
} else {
|
||||
return Yap_DefaultEncoding();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user