pelib
2.0.0
|
00001 /* 00002 * integer.h 00003 * 00004 * Created on: 20 Feb 2012 00005 * Copyright 2012 Nicolas Melot 00006 * 00007 * This file is part of pelib. 00008 * 00009 * pelib is free software: you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation, either version 3 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * pelib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with pelib. If not, see <http://www.gnu.org/licenses/>. 00021 * 00022 */ 00023 00024 #include <pelib/template.h> 00025 00026 #if PELIB_CONCAT_2(DONE_cfifo_array_, CFIFO_ARRAY_T) == 0 00027 00028 #define pelib_cfifo_from_array(elem) PELIB_CONCAT_3(pelib_, cfifo(elem), _from_array) 00029 #define pelib_array_from_cfifo(elem) PELIB_CONCAT_3(pelib_, array(elem), _from_cfifo) 00030 00032 cfifo_t(CFIFO_ARRAY_T)* 00033 pelib_cfifo_from_array(CFIFO_ARRAY_T)(array_t(CFIFO_ARRAY_T)*); 00034 00036 array_t(CFIFO_ARRAY_T)* 00037 pelib_array_from_cfifo(CFIFO_ARRAY_T)(cfifo_t(CFIFO_ARRAY_T)*); 00038 00039 #endif 00040 #undef CFIFO_ARRAY_T