00001 /* 00002 # This file is Copyright 2006, 2007, 2009 Dean Hall. 00003 # 00004 # This file is part of the PyMite VM. 00005 # The PyMite VM is free software: you can redistribute it and/or modify 00006 # it under the terms of the GNU GENERAL PUBLIC LICENSE Version 2. 00007 # 00008 # The PyMite VM is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 # A copy of the GNU GENERAL PUBLIC LICENSE Version 2 00012 # is seen in the file COPYING in this directory. 00013 */ 00014 00015 00016 #ifndef __SEQ_H__ 00017 #define __SEQ_H__ 00018 00019 00032 typedef struct PmSeqIter_s 00033 { 00035 PmObjDesc_t od; 00036 00038 pPmObj_t si_sequence; 00039 00041 int16_t si_index; 00042 } PmSeqIter_t, 00043 *pPmSeqIter_t; 00044 00045 00053 int8_t seq_compare(pPmObj_t pobj1, pPmObj_t pobj2); 00054 00062 PmReturn_t seq_getLength(pPmObj_t pobj, int16_t *r_index); 00063 00072 PmReturn_t seq_getSubscript(pPmObj_t pobj, int16_t index, pPmObj_t *r_pobj); 00073 00081 PmReturn_t seqiter_getNext(pPmObj_t pobj, pPmObj_t *r_pitem); 00082 00083 00091 PmReturn_t seqiter_new(pPmObj_t pobj, pPmObj_t *r_pobj); 00092 00093 #endif /* __SEQ_H__ */