N 21 core/ast.h #define PN_AST(T, A, N, L) potion_source(P, AST_##T, A, PN_NIL, PN_NIL, N, L) N 22 core/ast.h #define PN_AST2(T, A, B, N, L) potion_source(P, AST_##T, A, B, PN_NIL, N, L) N 23 core/ast.h #define PN_AST3(T, A, B, C, N, L) potion_source(P, AST_##T, A, B, C, N, L) N 31 core/ast.h #define PN_S_(S, N) ((struct PNSource *)S)->a[N] //lvalue N 32 core/ast.h #define PN_S(S, N) (PN)(((struct PNSource *)S)->a[N]) N 15 core/internal.h #define PN_REALLOC(X,V,T,N) (X)=(T *)potion_gc_realloc(P, V, (struct PNObject *)(X), sizeof(T) + N) N 16 core/internal.h #define PN_DALLOC_N(T,N) potion_data_alloc(P, sizeof(T)*N) N 19 core/internal.h #define PN_MEMZERO_N(X,T,N) memset((X), 0, sizeof(T)*(N)) N 21 core/internal.h #define PN_MEMCPY_N(X,Y,T,N) memcpy((void *)(X), (void *)(Y), sizeof(T)*(N)) N 22 core/internal.h #define PN_MEMMOVE_N(DST,SRC,T,N) memmove((void *)(DST), (void *)(SRC), sizeof(T)*(N)) N 34 core/internal.h #define PN_FLEX_NEW(N, V, T, S) \ N 35 core/internal.h (N) = PN_ALLOC_N(V, T, (sizeof(*(N)->ptr) * S)); \ N 36 core/internal.h (N)->siz = sizeof(*(N)->ptr) * S; \ N 37 core/internal.h (N)->len = 0 N 39 core/internal.h #define PN_FLEX_NEEDS(X, N, V, T, S) ({ \ N 40 core/internal.h PN_SIZE capa = (N)->siz / sizeof(*(N)->ptr); \ N 41 core/internal.h if (capa < (N)->len + X) { \ N 42 core/internal.h while (capa < (N)->len + X) \ N 44 core/internal.h capa = sizeof(*(N)->ptr) * capa; \ N 45 core/internal.h PN_REALLOC(N, V, T, capa); \ N 46 core/internal.h (N)->siz = capa; \ N 50 core/internal.h #define PN_ATOI(X,N,B) ({ \ N 53 core/internal.h size_t Al = N; \ N 60 core/mt19937ar.c static unsigned long state[N]; /* the array for the state vector */ N 69 core/mt19937ar.c for (j=1; j<N; j++) { N 88 core/mt19937ar.c k = (N>key_length ? N : key_length); N 94 core/mt19937ar.c if (i>=N) { state[0] = state[N-1]; i=1; } N 97 core/mt19937ar.c for (k=N-1; k; k--) { N 102 core/mt19937ar.c if (i>=N) { state[0] = state[N-1]; i=1; } N 117 core/mt19937ar.c left = N; N 120 core/mt19937ar.c for (j=N-M+1; --j; p++) N 124 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], p[1]); N 126 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], state[0]); N 226 core/potion.h #define PN_FLEX(N, T) typedef struct { PN_OBJECT_HEADER; PN_SIZE len; PN_SIZE siz; T ptr[0]; } N N 227 core/potion.h #define PN_FLEX_AT(N, I) ((PNFlex *)(N))->ptr[I] N 228 core/potion.h #define PN_FLEX_SIZE(N) ((PNFlex *)(N))->len N 28 syn/compile.c #define YY_ALLOC(N, D) malloc(N) N 31 syn/compile.c #define YY_CALLOC(N, S, D) calloc(N, S) N 34 syn/compile.c #define YY_REALLOC(B, N, D) realloc(B, N) N 45 syn/syntax-p5.y #define YY_NAME(N) p5_code_##N N 530 syn/syntax-p5.y # single types without name (N,o) as for FFIs forbidden, use (dummy=N) instead N 41 syn/syntax.y #define YY_NAME(N) potion_code_##N N 357 syn/syntax.y # single types without name (N,o) as for FFIs forbidden, use (dummy=N) instead