00001 /* 00002 Copyright (C) 2006, 2007. QLogic Corporation. All Rights Reserved. 00003 00004 This program is free software; you can redistribute it and/or modify it 00005 under the terms of version 2 of the GNU General Public License as 00006 published by the Free Software Foundation. 00007 00008 This program is distributed in the hope that it would be useful, but 00009 WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 00012 Further, this software is distributed without any warranty that it is 00013 free of the rightful claim of any third person regarding infringement 00014 or the like. Any license provided herein, whether implied or 00015 otherwise, applies only to this software file. Patent licenses, if 00016 any, provided herein do not apply to combinations of this program with 00017 other software, or any other product whatsoever. 00018 00019 You should have received a copy of the GNU General Public License along 00020 with this program; if not, write the Free Software Foundation, Inc., 59 00021 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef __GSPIN_LIST_H__ 00025 #define __GSPIN_LIST_H__ 00026 00027 static inline gs_t gs_cons (gs_t e, gs_t es) 00028 { 00029 gs_t node = __gs(CONS); 00030 gs_set_operand(node, 0, e); 00031 gs_set_operand(node, 1, es); 00032 return node; 00033 } 00034 00035 gs_count_t gs_length (gs_t list); 00036 gs_t gs_index (gs_t list, gs_count_t index); 00037 #ifdef FE_GNU_4_2_0 00038 void gs_set_index (gs_t list, gs_count_t index, gs_t value); 00039 #endif 00040 00041 #endif // __GSPIN_LIST_H__
1.5.6