From: handa Date: Mon, 21 Jun 2004 00:21:07 +0000 (+0000) Subject: (MTEXT_READ_ONLY_P): New macro. X-Git-Tag: withdl~62 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bbbc6c0ba483bde0cfd0be7446447ddc1877db09;p=m17n%2Fm17n-lib.git (MTEXT_READ_ONLY_P): New macro. --- diff --git a/src/internal.h b/src/internal.h index e009d86..1dd0782 100644 --- a/src/internal.h +++ b/src/internal.h @@ -438,6 +438,8 @@ struct MText } while (0) +#define MTEXT_READ_ONLY_P(mt) ((mt)->allocated < 0) + #define M_CHECK_READONLY(mt, ret) \ do { \ if ((mt)->allocated < 0) \