Home
last modified time | relevance | path

Searched refs:num_spring_alloc (Results 1 – 2 of 2) sorted by relevance

/dports/games/xspringies/xspringies-1.12/
H A Dobj.c32 static int num_mass_alloc, num_spring_alloc; variable
49 num_spring_alloc = ALLOC_SIZE; in init_objects()
50 springs = (spring *)xmalloc(sizeof(spring) * num_spring_alloc); in init_objects()
112 if (num_spring >= num_spring_alloc) { in create_spring()
114 num_spring_alloc += ALLOC_SIZE; in create_spring()
220 num_spring = num_spring_alloc = 0; in delete_all()
247 num_spring_alloc = num_spring_savedalloc; in restore_state()
251 springs = (spring *)xmalloc(sizeof(spring) * num_spring_alloc); in restore_state()
252 memcpy(springs, springs_save, sizeof(spring) * num_spring_alloc); in restore_state()
266 memcpy(springs_save, springs, sizeof(spring) * num_spring_alloc); in save_state()
[all …]
H A Dxdisp.c356 static num_mass_alloc = 0, num_spring_alloc = 0; in redraw_system()
365 if (num_spring_alloc < num_spring) { in redraw_system()
366 num_spring_alloc = num_spring; in redraw_system()
367 segs = (XSegment *)xrealloc(segs, num_spring_alloc * sizeof(XSegment)); in redraw_system()
368 selsegs = (XSegment *)xrealloc(selsegs, num_spring_alloc * sizeof(XSegment)); in redraw_system()