/[cvs]/stack/stack.c
ViewVC logotype

Diff of /stack/stack.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.42 by teddy, Wed Feb 6 21:26:46 2002 UTC revision 1.43 by masse, Wed Feb 6 23:27:22 2002 UTC
# Line 537  void stack_read(environment *env, char * Line 537  void stack_read(environment *env, char *
537    rest= malloc(inlength);    rest= malloc(inlength);
538    
539    do {    do {
540        /* If comment */
541        if((convert= sscanf(in_line, "#%[^\n\r]", rest))) {
542          free(temp); free(rest);
543          return;
544        }
545    
546      /* If string */      /* If string */
547      if((convert= sscanf(in_line, "\"%[^\"\n\r]\" %[^\n\r]", temp, rest))) {      if((convert= sscanf(in_line, "\"%[^\"\n\r]\" %[^\n\r]", temp, rest))) {
548        push_cstring(&(env->head), temp);        push_cstring(&(env->head), temp);
# Line 615  extern void expand(environment *env) Line 621  extern void expand(environment *env)
621      return;      return;
622    }    }
623    
624      rev(env);
625    
626      if(env->err)
627        return;
628    
629    /* The first list element is the new stack head */    /* The first list element is the new stack head */
630    new_head= temp= env->head->item->content.ptr;    new_head= temp= env->head->item->content.ptr;
631    

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26