src/termflex.tab.c
int freeId(const char* name){
    int id = getIdIndex(name);
    if(id != ERROR && currentIndex > 1){
        ids[id] = ids[currentIndex];
        range[id] = range[currentIndex];
        currentIndex--;
        return 1;
    } else if(currentIndex == 1){
        currentIndex--;
        return 1;
    }
    return 0;
}
//free array by replacing with last value.
// if there is no last value, then just ignore value with moving currentIndex forward. 
free array by replacing with last value.
if there is no last value, then just ignore value with moving currentIndex forward.
free array by replacing with last value . if there is no last value then just ignore value with moving currentIndex forward .
int freeId(const char* name){
    int id = getIdIndex(name);
    if(id != ERROR && currentIndex > 1){
        ids[id] = ids[currentIndex];
        range[id] = range[currentIndex];
        currentIndex--;
        return 1;
    } else if(currentIndex == 1){
        currentIndex--;
        return 1;
    }
    return 0;
}
int freeId ( const char * name ) { int id = getIdIndex ( name ) ; if ( id != ERROR && currentIndex > 1 ) { ids [ id ] = ids [ currentIndex ] ; range [ id ] = range [ currentIndex ] ; currentIndex -- ; return 1 ; } else if ( currentIndex == 1 ) { currentIndex -- ; return 1 ; } return 0 ; }
free array by replacing with last value.
free array by replacing with last value .