Annotation of OpenXM/src/asir-doc/int-parts/macro.texi, Revision 1.1
1.1 ! noro 1: @comment $OpenXM$
! 2: @chapter $B%^%/%m(B, $BBg0hJQ?t(B
! 3:
! 4: @section macro
! 5: @samp{ca.h} $B$GDj5A$5$l$k<g$J%^%/%m$O<!$NDL$j$G$"$k(B.
! 6: @subsection $B0lHL%^%/%m(B
! 7: @table @code
! 8: @item MAX(a,b)
! 9: @code{((a) > (b) ? (a) : (b) )}
! 10: @item MIN(a,b)
! 11: @code{((a) > (b) ? (b) : (a) )}
! 12: @item ABS(a)
! 13: @code{((a)>0?(a):-(a))}
! 14: @item ID(p)
! 15: @code{((p)->id)}
! 16: @item BDY(p)
! 17: @code{((p)->body)}
! 18: @item NEXT(p)
! 19: @code{((p)->next)}
! 20: @item VR(p)
! 21: @code{((p)->v)}
! 22: @item NM(q)
! 23: @code{((q)->nm)}
! 24: @item DN(q)
! 25: @code{((q)->dn)}
! 26: @item SGN(q)
! 27: @code{((q)->sgn)}
! 28: @item PL(n)
! 29: @code{((n)->p)}
! 30: @item BD(n)
! 31: @code{((n)->b)}
! 32: @end table
! 33:
! 34: @subsection $B=R8l(B
! 35: @table @code
! 36: @item NUM(a)
! 37: @code{ID(a)==O_Q}
! 38: @item INT(a)
! 39: @code{(!DN(a))}
! 40: @item UNIQ(a)
! 41: @code{a $B$,M-M}?t$N(B 1 $B$KEy$7$$(B}
! 42: @item MUNIQ(a)
! 43: @code{a $B$,M-M}?t$N(B -1 $B$KEy$7$$(B}
! 44: @item UNIN(a)
! 45: @code{a $B$,<+A3?t$N(B 1 $B$KEy$7$$(B}
! 46: @end table
! 47:
! 48: @subsection $B%a%b%j3d$jEv$F4o(B
! 49: @table @code
! 50: @item (char *) MALLOC(d)
! 51: @code{d bytes $B$NNN0h$r3d$jEv$F$k(B. }
! 52: @item (char *) CALLOC(d,e)
! 53: @code{d * e bytes $B$NNN0h$r3d$jEv$F$F(B, 0 $B$G=i4|2=$9$k(B. }
! 54: @item (N) NALLOC(d)
! 55: @code{d $B7e$N<+A3?tMQ$NNN0h$r3d$jEv$F$k(B. }
! 56: @end table
! 57: @noindent
! 58: $B$3$l$i$O$9$Y$FNN0h$N@hF,%]%$%s%?$rJV$9(B.
! 59: @subsection cell allocators
! 60: @table @code
! 61: @item NEWQ(q)
! 62: @code{q $B$K(B Q $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 63: @item NEWP(p)
! 64: @code{p $B$K(B P $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 65: @item NEWR(r)
! 66: @code{r $B$K(B R $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 67: @item NEWNODE(a)
! 68: @code{a $B$K(B NODE $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 69: @item NEWDC(dc)
! 70: @code{dc $B$K(B DCP $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 71: @item NEWV(v)
! 72: @code{v $B$K(B V $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 73: @item NEWVL(vl)
! 74: @code{vl $B$K(B VL $BMQ$NNN0h$r3d$jEv$F$k(B. }
! 75: @end table
! 76: @noindent
! 77: @code{NEWP()}, @code{NEWQ()}, @code{NEWR()} $B$K$*$$$F$O(B, $B%a%s%P(B @code{id}
! 78: $B$b$7$+$k$Y$-CM$K=i4|2=$5$l$k(B.
! 79:
! 80: @section $B<g$JBg0hJQ?t(B
! 81: @table @code
! 82: @item VL CO;
! 83: @code{$B8=:_$NJQ?t=g=x(B. }
! 84: @item Q ONE;
! 85: @code{$BM-M}?t$N(B 1. }
! 86: @item N ONEN;
! 87: @code{$B<+A3?t$N(B 1. }
! 88: @item int prime[];
! 89: @code{4 $B7e$^$G$NAG?t(B($B>.(B->$BBg(B). }
! 90: @item int lprime[];
! 91: @code{8 $B7eDxEY$NAG?t(B 1000 $B8D(B($BBg(B->$B>.(B). }
! 92: @end table
! 93: @noindent
! 94: @code{CO} $B$O(B, $B%f!<%6$,=i4|2=(B, $B$*$h$S?7$?$KJQ?t$,=P8=$7$?>l9g$K99?7$9$kI,(B
! 95: $BMW$,$"$k(B. $B$^$?(B, @code{ONER}, @code{ONE}, @code{ONEN}$B$O(B, $B5/F0;~$KH!?t(B
! 96: @code{nglob_init()} $B$K$h$j=i4|2=$9$kI,MW$,$"$k(B.
! 97:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>