Esempio n. 1
0
static void
a_delrange(menu_t * pm, const char *backup_dir)
{
    char            fname[PATHLEN];

    snprintf(fname, sizeof(fname), "%s/" FN_DIR, pm->path);
    del_range(0, NULL, fname, backup_dir);
    pm->num = get_num_records(fname, FHSZ);
}
Esempio n. 2
0
static void
unwind_decompress (void *ddata)
{
  struct decompress_unwind_data *data = ddata;
  fn_inflateEnd (data->stream);

  /* Delete any uncompressed data already inserted on error.  */
  if (data->start)
    del_range (data->start, PT);

  /* Put point where it was, or if the buffer has shrunk because the
     compressed data is bigger than the uncompressed, at
     point-max.  */
  SET_PT (min (data->old_point, ZV));
}
Esempio n. 3
0
int main(void){
    int a[] = {2, 4, 5, 5, 6, 8, 7, 9, 11};
    
    SqList la;
    init_linerseq(&la);
    cp_array_linerseq(&la, a, ARRAY_LEN(a));
    print_linerseq(&la);
    
    int i,j;
    scanf("%d%d", &i, &j);
    
    del_range(&la, i, j);
    
    print_linerseq(&la);
    
    return 0;
}
Esempio n. 4
0
void BinlogQueue::flush(){
	del_range(this->min_seq, this->last_seq);
}