/[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 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: symbol.c,v 1.29 2005/08/09 17:18:22 debug Exp $   *  $Id: symbol.c,v 1.34 2006/01/14 12:51:59 debug Exp $
29   *   *
30   *  Address to symbol translation routines.   *  Address to symbol translation routines.
31   *   *
32   *  This module is (probably) independant from the rest of the emulator.   *  This module is (probably) independent from the rest of the emulator.
33   *  symbol_init() must be called before any other function in this   *  symbol_init() must be called before any other function in this file is used.
  *  file is used.  
34   */   */
35    
36  #include <stdio.h>  #include <stdio.h>
# Line 242  void add_symbol_name(struct symbol_conte Line 241  void add_symbol_name(struct symbol_conte
241                          n_args = 2;                          n_args = 2;
242                  if (strcmp(name, "strcpy") == 0)                  if (strcmp(name, "strcpy") == 0)
243                          n_args = 2;                          n_args = 2;
244                    if (strcmp(name, "strncpy") == 0)
245                            n_args = 3;
246                    if (strcmp(name, "strlcpy") == 0)
247                            n_args = 3;
248                    if (strcmp(name, "strlcat") == 0)
249                            n_args = 3;
250                  if (strcmp(name, "strncmp") == 0)                  if (strcmp(name, "strncmp") == 0)
251                          n_args = 3;                          n_args = 3;
252                  if (strcmp(name, "memset") == 0)                  if (strcmp(name, "memset") == 0)

Legend:
Removed from v.12  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26