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: |
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> |
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) |