329 |
return; |
return; |
330 |
|
|
331 |
left= (*stack_head)->content.ptr; |
left= (*stack_head)->content.ptr; |
332 |
right= (*stack_head)->next->content.ptr; |
swap(stack_head); |
333 |
|
right= (*stack_head)->content.ptr; |
334 |
result= (left==right); |
result= (left==right); |
335 |
|
|
336 |
toss(stack_head); toss(stack_head); |
toss(stack_head); toss(stack_head); |
355 |
not(stack_head); |
not(stack_head); |
356 |
} |
} |
357 |
|
|
358 |
|
extern void def(stackitem** stack_head) |
359 |
|
{ |
360 |
|
stackitem *temp, *value; |
361 |
|
|
362 |
|
if(*stack_head==NULL || (*stack_head)->next==NULL |
363 |
|
|| (*stack_head)->type!=ref) |
364 |
|
return; |
365 |
|
|
366 |
|
temp= (*stack_head)->content.ptr; |
367 |
|
value= (*stack_head)->next; |
368 |
|
temp->content= value->content; |
369 |
|
value->content.ptr=NULL; |
370 |
|
temp->type= value->type; |
371 |
|
|
372 |
|
toss(stack_head); toss(stack_head); |
373 |
|
} |
374 |
|
|
375 |
extern void quit() |
extern void quit() |
376 |
{ |
{ |
377 |
exit(EXIT_SUCCESS); |
exit(EXIT_SUCCESS); |