projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5e96a5
)
(MTEXT_READ_ONLY_P): New macro.
author
handa
<handa>
Mon, 21 Jun 2004 00:21:07 +0000
(
00:21
+0000)
committer
handa
<handa>
Mon, 21 Jun 2004 00:21:07 +0000
(
00:21
+0000)
src/internal.h
patch
|
blob
|
history
diff --git
a/src/internal.h
b/src/internal.h
index
e009d86
..
1dd0782
100644
(file)
--- 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) \