/[gxemul]/trunk/src/symbol.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/src/symbol.c

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

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: symbol.c,v 1.24 2005/04/10 16:42:56 debug Exp $   *  $Id: symbol.c,v 1.26 2005/06/21 16:22:52 debug Exp $
29   *   *
30   *  Address to symbol translation routines.   *  Address to symbol translation routines.
31   *   *
# Line 210  void add_symbol_name(struct symbol_conte Line 210  void add_symbol_name(struct symbol_conte
210                  exit(1);                  exit(1);
211          }          }
212    
213            if (name[0] == '\0')
214                    return;
215    
216          /*  TODO: Maybe this should be optional?  */          /*  TODO: Maybe this should be optional?  */
217          if (name[0] == '$')          if (name[0] == '$')
218                  return;                  return;
# Line 271  void symbol_readfile(struct symbol_conte Line 274  void symbol_readfile(struct symbol_conte
274                  memset(b4, 0, sizeof(b4));                  memset(b4, 0, sizeof(b4));
275                  fscanf(f, "%s %s\n", b1,b2);                  fscanf(f, "%s %s\n", b1,b2);
276                  if (strlen(b2) < 2 && !(b2[0]>='0' && b2[0]<='9')) {                  if (strlen(b2) < 2 && !(b2[0]>='0' && b2[0]<='9')) {
277                          strcpy(b3, b2);                          strlcpy(b3, b2, sizeof(b3));
278                          strcpy(b2, "0");                          strlcpy(b2, "0", sizeof(b2));
279                          fscanf(f, "%s\n", b4);                          fscanf(f, "%s\n", b4);
280                  } else {                  } else {
281                          fscanf(f, "%s %s\n", b3,b4);                          fscanf(f, "%s %s\n", b3,b4);

Legend:
Removed from v.4  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26