/[dynamips]/trunk/parser.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/parser.c

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

upstream/dynamips-0.2.6-RC4/parser.c revision 5 by dpavlin, Sat Oct 6 16:08:03 2007 UTC upstream/dynamips-0.2.8-RC1/parser.c revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   * Cisco 7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2006 Christophe Fillot (cf@utc.fr)   * Copyright (c) 2006 Christophe Fillot (cf@utc.fr)
4   *   *
5   * Mini-parser.   * Mini-parser.
# Line 84  char **parser_map_array(parser_context_t Line 84  char **parser_map_array(parser_context_t
84  }  }
85    
86  /* Add a character to temporary token (resize if necessary) */  /* Add a character to temporary token (resize if necessary) */
87  static int tmp_token_add_char(parser_context_t *ctx,u_char c)  static int tmp_token_add_char(parser_context_t *ctx,char c)
88  {  {
89     size_t new_size;     size_t new_size;
90     char *new_str;     char *new_str;
# Line 196  static int parser_get_char_type(u_char c Line 196  static int parser_get_char_type(u_char c
196  }  }
197    
198  /* Send a buffer to the tokenizer */  /* Send a buffer to the tokenizer */
199  int parser_scan_buffer(parser_context_t *ctx,u_char *buf,size_t buf_size)  int parser_scan_buffer(parser_context_t *ctx,char *buf,size_t buf_size)
200  {  {
201     int i,type;     int i,type;
202     u_char c;     u_char c;

Legend:
Removed from v.5  
changed lines
  Added in v.11

  ViewVC Help
Powered by ViewVC 1.1.26