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 32 core/ast.h #define PN_S_(S, N) ((struct PNSource *)S)->a[N] //lvalue N 33 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 20 core/internal.h #define PN_MEMZERO_N(X,T,N) memset((X), 0, sizeof(T)*(N)) N 22 core/internal.h #define PN_MEMCPY_N(X,Y,T,N) memcpy((void *)(X), (void *)(Y), sizeof(T)*(N)) N 23 core/internal.h #define PN_MEMMOVE_N(DST,SRC,T,N) memmove((void *)(DST), (void *)(SRC), sizeof(T)*(N)) N 35 core/internal.h #define PN_FLEX_NEW(N, V, T, S) \ N 36 core/internal.h (N) = PN_ALLOC_N(V, T, (sizeof(*(N)->ptr) * S)); \ N 37 core/internal.h (N)->siz = sizeof(*(N)->ptr) * S; \ N 38 core/internal.h (N)->len = 0 N 40 core/internal.h #define PN_FLEX_NEEDS(X, N, V, T, S) ({ \ N 41 core/internal.h PN_SIZE capa = (N)->siz / sizeof(*(N)->ptr); \ N 42 core/internal.h if (capa < (N)->len + X) { \ N 43 core/internal.h while (capa < (N)->len + X) \ N 45 core/internal.h capa = sizeof(*(N)->ptr) * capa; \ N 46 core/internal.h PN_REALLOC(N, V, T, capa); \ N 47 core/internal.h (N)->siz = capa; \ N 51 core/internal.h #define PN_ATOI(X,N,B) ({ \ N 54 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 129 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], p[1]); N 134 core/mt19937ar.c *p = p[M-N] ^ TWIST(p[0], state[0]); N 229 core/potion.h #define PN_FLEX(N, T) typedef struct { PN_OBJECT_HEADER; PN_SIZE len; PN_SIZE siz; T ptr[]; } N N 230 core/potion.h #define PN_FLEX_AT(N, I) ((PNFlex *)(N))->ptr[I] N 231 core/potion.h #define PN_FLEX_SIZE(N) ((PNFlex *)(N))->len N 41 core/syntax.y #define YY_NAME(N) potion_code_##N N 372 core/syntax.y # single types without name (N,o) as for FFIs forbidden, use (dummy=N) instead N 28 tools/compile.c #define YY_ALLOC(N, D) malloc(N) N 31 tools/compile.c #define YY_CALLOC(N, S, D) calloc(N, S) N 34 tools/compile.c #define YY_REALLOC(B, N, D) realloc(B, N)