1 /* 2 csound_standard_types.h: 3 4 Copyright (C) 2012, 2013 Steven Yi 5 6 This file is part of Csound. 7 8 The Csound Library is free software; you can redistribute it 9 and/or modify it under the terms of the GNU Lesser General Public 10 License as published by the Free Software Foundation; either 11 version 2.1 of the License, or (at your option) any later version. 12 13 Csound is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU Lesser General Public License for more details. 17 18 You should have received a copy of the GNU Lesser General Public 19 License along with Csound; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 21 02110-1301 USA 22 */ 23 24 #ifndef CSOUND_STANDARD_TYPES_H 25 #define CSOUND_STANDARD_TYPES_H 26 27 #include "csound_type_system.h" 28 #include "csound.h" 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 PUBLIC void csoundAddStandardTypes(CSOUND* csound, TYPE_POOL* pool); 35 36 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_A; 37 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_K; 38 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_I; 39 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_S; 40 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_P; 41 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_R; 42 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_C; 43 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_W; 44 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_F; 45 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_B; 46 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_b; 47 PUBLIC_DATA extern const CS_TYPE CS_VAR_TYPE_ARRAY; 48 49 typedef struct arrayVarInit { 50 int dimensions; 51 CS_TYPE* type; 52 } ARRAY_VAR_INIT; 53 54 55 /* Type maps for poly, optional, and var arg types 56 * format is in pairs of specified type and types it can resolve into, 57 * termintated by a NULL */ 58 extern const char* POLY_IN_TYPES[]; 59 extern const char* OPTIONAL_IN_TYPES[]; 60 extern const char* VAR_ARG_IN_TYPES[]; 61 extern const char* POLY_OUT_TYPES[]; 62 extern const char* VAR_ARG_OUT_TYPES[]; 63 64 65 66 #ifdef __cplusplus 67 } 68 #endif 69 70 #endif /* CSOUND_STANDARD_TYPES_H */ 71