This is pretty9.c in view mode; [Download] [Up]
/* ANSI C code generated by SmallEiffel. */ /* -- SmallEiffel -- Release (- 0.95) -- FRANCE -- Copyright (C), 1994 - Dominique COLNET and Suzanne COLLIN -- University Henri Poincare' - Nancy 1 - email colnet@loria.fr -- CRIN (Centre de Recherche en Informatique de Nancy) -- FRANCE */ #include "pretty.h" T0** rT231realloc(T231 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT231add_last(T231 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT231count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT231malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT231realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT231put(C,a1,(C)->_upper); } T0** rT231malloc(T231 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT231put(T231 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT228count(T228 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT228item(T228 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT228realloc(T228 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT228add_last(T228 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT228count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT228malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT228realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT228put(C,a1,(C)->_upper); } T0** rT228malloc(T228 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT228put(T228 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT222count(T222 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT222item(T222 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT222realloc(T222 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT222add_last(T222 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT222count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT222malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT222realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT222put(C,a1,(C)->_upper); } T0** rT222malloc(T222 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT222put(T222 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT216count(T216 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT216item(T216 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT216realloc(T216 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT216add_last(T216 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT216count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT216malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT216realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT216put(C,a1,(C)->_upper); } T0** rT216malloc(T216 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT216put(T216 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT94clear_all(T94 *C){ T0* _value=NULL; rT94set_all_with(C,_value); } T0* rT94first(T94 *C){ T0* R=NULL; R=rT94item(C,(C)->_lower); return R; } int rT94count(T94 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT94set_all_with(T94 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT94put(C,a1,_i); _i=(_i)-(1); } } T0* rT94item(T94 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT94realloc(T94 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT94add_last(T94 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT94count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT94malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT94realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT94put(C,a1,(C)->_upper); } T0** rT94malloc(T94 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } int rT94equal_like(/*C*/T0* a1,T0* a2){ int R=0; /*IF*//*AF*/if (((T0 *)a1)==((T0 *)a2)) { R=1; } else if ((!(a1))||(!(a2))) { } else { R=rT92is_equal((T92*)a1,a2); } /*FI*/return R; } int rT94index_of(T94 *C,T0* a1){ int R=0; R=(C)->_lower; while (!(((R)>((C)->_upper))||(rT94equal_like(a1,rT94item(C,R))))) { R=(R)+(1); } return R; } void rT94put(T94 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT94make(T94 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT94malloc(C,(C)->_capacity); rT94clear_all(C); } /*FI*/} int rT84count(T84 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT84item(T84 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT84realloc(T84 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT84add_last(T84 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT84count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT84malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT84realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT84put(C,a1,(C)->_upper); } T0** rT84malloc(T84 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT84put(T84 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT81count(T81 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT81item(T81 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT81realloc(T81 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT81add_last(T81 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT81count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT81malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT81realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT81put(C,a1,(C)->_upper); } T0** rT81malloc(T81 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT81put(T81 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT79count(T79 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT79item(T79 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT79realloc(T79 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT79add_last(T79 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT79count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT79malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT79realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT79put(C,a1,(C)->_upper); } T0** rT79malloc(T79 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT79put(T79 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT61clear_all(T61 *C){ T0* _value=NULL; rT61set_all_with(C,_value); } int rT61count(T61 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT61set_all_with(T61 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT61put(C,a1,_i); _i=(_i)-(1); } } void rT61resize(T61 *C,int a1,int a2){ int _up=0; int _i=0; T0* _other=NULL; {T61 *n=((T61*)se_new(61)); rT61make(n,a1,a2); _other=(T0 *)n;} _i=rT2max((C)->_lower,((T61*)_other)->_lower); _up=rT2min((C)->_upper,((T61*)_other)->_upper); while (!((_i)>(_up))) { rT61put((T61*)_other,rT61item(C,_i),_i); _i=(_i)+(1); } /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/rT61standard_copy(C,_other); free((T61*)_other); } T0* rT61item(T61 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } int rT61empty(T61 *C){ int R=0; R=(rT61count(C))==(0); return R; } T0** rT61realloc(T61 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT61add_last(T61 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT61count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT61malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT61realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT61put(C,a1,(C)->_upper); } T0** rT61malloc(T61 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT61put(T61 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT61standard_copy(T61 *C,T0* a1){ memcpy(C,a1,s[a1->id]); } void rT61make(T61 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT61malloc(C,(C)->_capacity); rT61clear_all(C); } /*FI*/} void rT54clear_all(T54 *C){ T0* _value=NULL; rT54set_all_with(C,_value); } int rT54count(T54 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT54set_all_with(T54 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT54put(C,a1,_i); _i=(_i)-(1); } } void rT54resize(T54 *C,int a1,int a2){ int _up=0; int _i=0; T0* _other=NULL; {T54 *n=((T54*)se_new(54)); rT54make(n,a1,a2); _other=(T0 *)n;} _i=rT2max((C)->_lower,((T54*)_other)->_lower); _up=rT2min((C)->_upper,((T54*)_other)->_upper); while (!((_i)>(_up))) { rT54put((T54*)_other,rT54item(C,_i),_i); _i=(_i)+(1); } /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/rT54standard_copy(C,_other); free((T54*)_other); } T0* rT54item(T54 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT54malloc(T54 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT54put(T54 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT54standard_copy(T54 *C,T0* a1){ memcpy(C,a1,s[a1->id]); } void rT54make(T54 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT54malloc(C,(C)->_capacity); rT54clear_all(C); } /*FI*/} void rT53clear_all(T53 *C){ int _value=0; rT53set_all_with(C,_value); } int rT53count(T53 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT53set_all_with(T53 *C,int a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT53put(C,a1,_i); _i=(_i)-(1); } } int rT53fast_index_of(T53 *C,int a1){ int R=0; R=(C)->_lower; while (!(((R)>((C)->_upper))||((a1)==(rT53item(C,R))))) { R=(R)+(1); } return R; } int rT53fast_has(T53 *C,int a1){ int R=0; R=(rT53fast_index_of(C,a1))!=(((C)->_upper)+(1)); return R; } void rT53resize(T53 *C,int a1,int a2){ int _up=0; int _i=0; T0* _other=NULL; {T53 *n=((T53*)se_new(53)); rT53make(n,a1,a2); _other=(T0 *)n;} _i=rT2max((C)->_lower,((T53*)_other)->_lower); _up=rT2min((C)->_upper,((T53*)_other)->_upper); while (!((_i)>(_up))) { rT53put((T53*)_other,rT53item(C,_i),_i); _i=(_i)+(1); } /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/rT53standard_copy(C,_other); free((T53*)_other); } int rT53item(T53 *C,int a1){ int R=0; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } int* rT53realloc(T53 *C,int* a1,int a2){ int* R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT53add_last(T53 *C,int a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT53count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT53malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT53realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT53put(C,a1,(C)->_upper); } int* rT53malloc(T53 *C,int a1){ int* R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT53put(T53 *C,int a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT53standard_copy(T53 *C,T0* a1){ memcpy(C,a1,s[a1->id]); } void rT53make(T53 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT53malloc(C,(C)->_capacity); rT53clear_all(C); } /*FI*/} void rT45clear(T45 *C){ C->_upper=((C)->_lower)-(1); } void rT45clear_all(T45 *C){ T0* _value=NULL; rT45set_all_with(C,_value); } int rT45count(T45 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT45set_all_with(T45 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT45put(C,a1,_i); _i=(_i)-(1); } } T0* rT45item(T45 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT45realloc(T45 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT45add_last(T45 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT45count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT45malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT45realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT45put(C,a1,(C)->_upper); } T0** rT45malloc(T45 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } int rT45equal_like(/*C*/T0* a1,T0* a2){ int R=0; /*IF*//*AF*/if (((T0 *)a1)==((T0 *)a2)) { R=1; } else if ((!(a1))||(!(a2))) { } else { R=rT44is_equal((T44*)a1,a2); } /*FI*/return R; } int rT45index_of(T45 *C,T0* a1){ int R=0; R=(C)->_lower; while (!(((R)>((C)->_upper))||(rT45equal_like(a1,rT45item(C,R))))) { R=(R)+(1); } return R; } void rT45put(T45 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT45has(T45 *C,T0* a1){ int R=0; R=(rT45index_of(C,a1))!=(((C)->_upper)+(1)); return R; } void rT45make(T45 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT45malloc(C,(C)->_capacity); rT45clear_all(C); } /*FI*/} void rT34clear(T34 *C){ C->_upper=((C)->_lower)-(1); } void rT34clear_all(T34 *C){ T0* _value=NULL; rT34set_all_with(C,_value); } T0* rT34first(T34 *C){ T0* R=NULL; R=rT34item(C,(C)->_lower); return R; } int rT34count(T34 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT34set_all_with(T34 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT34put(C,a1,_i); _i=(_i)-(1); } } int rT34fast_index_of(T34 *C,T0* a1){ int R=0; R=(C)->_lower; while (!(((R)>((C)->_upper))||(((T0 *)a1)==((T0 *)rT34item(C,R))))) { R=(R)+(1); } return R; } int rT34fast_has(T34 *C,T0* a1){ int R=0; R=(rT34fast_index_of(C,a1))!=(((C)->_upper)+(1)); return R; } void rT34resize(T34 *C,int a1,int a2){ int _up=0; int _i=0; T0* _other=NULL; {T34 *n=((T34*)se_new(34)); rT34make(n,a1,a2); _other=(T0 *)n;} _i=rT2max((C)->_lower,((T34*)_other)->_lower); _up=rT2min((C)->_upper,((T34*)_other)->_upper); while (!((_i)>(_up))) { rT34put((T34*)_other,rT34item(C,_i),_i); _i=(_i)+(1); } /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/rT34standard_copy(C,_other); free((T34*)_other); } int rT34empty(T34 *C){ int R=0; R=(rT34count(C))==(0); return R; } T0* rT34item(T34 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT34realloc(T34 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT34add_last(T34 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT34count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT34malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT34realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT34put(C,a1,(C)->_upper); } T0** rT34malloc(T34 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } int rT34equal_like(/*C*/T0* a1,T0* a2){ int R=0; /*IF*//*AF*/if (((T0 *)a1)==((T0 *)a2)) { R=1; } else if ((!(a1))||(!(a2))) { } else { R=rT7is_equal((T7*)a1,a2); } /*FI*/return R; } int rT34index_of(T34 *C,T0* a1){ int R=0; R=(C)->_lower; while (!(((R)>((C)->_upper))||(rT34equal_like(a1,rT34item(C,R))))) { R=(R)+(1); } return R; } void rT34put(T34 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } void rT34standard_copy(T34 *C,T0* a1){ memcpy(C,a1,s[a1->id]); } void rT34make(T34 *C,int a1,int a2){ /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/C->_lower=a1; C->_upper=a2; C->_capacity=(((C)->_upper)-((C)->_lower))+(1); /*IF*/if (((C)->_capacity)>(0)) { C->_capacity=((C)->_capacity)+(16); C->_storage=rT34malloc(C,(C)->_capacity); rT34clear_all(C); } /*FI*/} int rT104count(T104 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT104item(T104 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT104realloc(T104 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT104add_last(T104 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT104count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT104malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT104realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT104put(C,a1,(C)->_upper); } T0** rT104malloc(T104 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT104put(T104 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT119count(T119 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT119item(T119 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT119realloc(T119 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT119add_last(T119 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT119count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT119malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT119realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT119put(C,a1,(C)->_upper); } T0** rT119malloc(T119 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT119put(T119 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT123count(T123 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT123item(T123 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT123realloc(T123 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT123add_last(T123 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT123count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT123malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT123realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT123put(C,a1,(C)->_upper); } T0** rT123malloc(T123 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT123put(T123 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } int rT125count(T125 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } T0* rT125item(T125 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT125realloc(T125 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT125add_last(T125 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT125count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT125malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT125realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT125put(C,a1,(C)->_upper); } T0** rT125malloc(T125 *C,int a1){ T0** R=0; R=malloc((size_t)(a1*sizeof(*(C->_storage)))); return R; } void rT125put(T125 *C,T0* a1,int a2){ /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/((C->_storage)[a2-(C->_lower)])=a1; } T0* rT127twin(T127 *C){ T0* R=NULL; /*IF*//*AF*//*AE*/ R=(T0 *)se_new(C->id); AF_1 rT127copy((T127*)R,(T0 *)C); AF_0 /*FI*/return R; } void rT127clear(T127 *C){ C->_upper=((C)->_lower)-(1); } void rT127clear_all(T127 *C){ T0* _value=NULL; rT127set_all_with(C,_value); } T0* rT127first(T127 *C){ T0* R=NULL; R=rT127item(C,(C)->_lower); return R; } int rT127count(T127 *C){ int R=0; R=(((C)->_upper)-((C)->_lower))+(1); return R; } void rT127set_all_with(T127 *C,T0* a1){ int _i=0; _i=(C)->_upper; while (!((_i)<((C)->_lower))) { rT127put(C,a1,_i); _i=(_i)-(1); } } void rT127resize(T127 *C,int a1,int a2){ int _up=0; int _i=0; T0* _other=NULL; {T127 *n=((T127*)se_new(127)); rT127make(n,a1,a2); _other=(T0 *)n;} _i=rT2max((C)->_lower,((T127*)_other)->_lower); _up=rT2min((C)->_upper,((T127*)_other)->_upper); while (!((_i)>(_up))) { rT127put((T127*)_other,rT127item(C,_i),_i); _i=(_i)+(1); } /*IF*/if (((int)(C)->_storage)) { free((C)->_storage); } /*FI*/rT127standard_copy(C,_other); free((T127*)_other); } T0* rT127item(T127 *C,int a1){ T0* R=NULL; /*IF*//*AF*//*AE*/ /*FI*//*IF*//*AF*//*AE*/ /*FI*/R=(((C->_storage))[a1-(C->_lower)]); return R; } T0** rT127realloc(T127 *C,T0** a1,int a2){ T0** R=0; R=realloc(a1,((size_t)(a2*sizeof(*(C->_storage))))); return R; } void rT127add_last(T127 *C,T0* a1){ /*IF*//*AF*//*AE*/ /*FI*//*IF*/if (((C)->_capacity)<((rT127count(C))+(1))) { /*IF*/if (((C)->_capacity)==(0)) { C->_capacity=16; C->_storage=rT127malloc(C,(C)->_capacity); } else { C->_capacity=((C)->_capacity)+(16); C->_storage=rT127realloc(C,(C)->_storage,(C)->_capacity); } /*FI*/} /*FI*/C->_upper=((C)->_upper)+(1); rT127put(C,a1,(C)->_upper); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.