(MTEXT_READ_ONLY_P): New macro.
authorhanda <handa>
Mon, 21 Jun 2004 00:21:07 +0000 (00:21 +0000)
committerhanda <handa>
Mon, 21 Jun 2004 00:21:07 +0000 (00:21 +0000)
src/internal.h

index e009d86..1dd0782 100644 (file)
@@ -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)           \