Audit and remove redundant uses of replacements.h in the tree.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 12 May 2009 08:35:17 +0000 (08:35 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 12 May 2009 08:35:17 +0000 (08:35 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1761 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/fileio.h
src/helper/jim-eventloop.c
src/helper/jim.c
src/helper/log.h
src/helper/replacements.c
src/helper/replacements.h
src/target/algorithm.c
src/target/target.h

index 36e749b26c3ea5aefcc5a37c8d46f6b07667dcfa..e62f0ba8e488256f722482c67f92f1dfe1ab7ccf 100644 (file)
@@ -26,9 +26,9 @@
 #ifndef FILEIO_H
 #define FILEIO_H
 
 #ifndef FILEIO_H
 #define FILEIO_H
 
-#define FILEIO_MAX_ERROR_STRING                (128)
+#include "types.h"
 
 
-#include "replacements.h"
+#define FILEIO_MAX_ERROR_STRING                (128)
 
 enum fileio_type
 {
 
 enum fileio_type
 {
index d53a76db40d9e0db2110670a3c0a52cda4c8d08d..7524d39fd03d96234104ac558f6be9a9d2f72aea 100644 (file)
 #include "jim-eventloop.h"
 #endif
 
 #include "jim-eventloop.h"
 #endif
 
-#include "replacements.h"
-
-
-/* --- */
-
 /* File event structure */
 typedef struct Jim_FileEvent {
     void *handle;
 /* File event structure */
 typedef struct Jim_FileEvent {
     void *handle;
index e344ef590cb1a393a249b256f144a7dc54ff0454..261b86029dcb2ccf2aec93d0021e498e46484291 100644 (file)
@@ -56,8 +56,6 @@
 #include <stdarg.h>
 #include <limits.h>
 
 #include <stdarg.h>
 #include <limits.h>
 
-#include "replacements.h"
-
 /* Include the platform dependent libraries for
  * dynamic loading of libraries. */
 #ifdef JIM_DYNLIB
 /* Include the platform dependent libraries for
  * dynamic loading of libraries. */
 #ifdef JIM_DYNLIB
index 4f781991c257dd5221674052ac6d6db7de688ce8..1a032b26151171b670ab80dd713387083394cb30 100644 (file)
@@ -26,7 +26,6 @@
 #ifndef ERROR_H
 #define ERROR_H
 
 #ifndef ERROR_H
 #define ERROR_H
 
-#include "replacements.h"
 #include "command.h"
 
 /* logging priorities 
 #include "command.h"
 
 /* logging priorities 
index cc0c242aeac5c1d64e3bcc6edea4f3c894dc717e..6b367fa8437a1bcbc17b67d150df37d56fe6b4a5 100644 (file)
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 /* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
 
 #include <stdlib.h>
 #include <string.h>
 /* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
 
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
 /* 
  * clear_malloc
  *
 /* 
  * clear_malloc
  *
@@ -65,9 +58,12 @@ void *fill_malloc(size_t size)
 }
 
 #define IN_REPLACEMENTS_C
 }
 
 #define IN_REPLACEMENTS_C
-#include "replacements.h"
-
-#include <stdio.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 
 #ifdef _WIN32
 #include <io.h>
 
 #ifdef _WIN32
 #include <io.h>
index 34e5daa44fd209ef4e0137c1373583146567f286..7ecbbb22014621fb0caae5bc7d914ac3564c641a 100644 (file)
@@ -26,8 +26,6 @@
 #ifndef REPLACEMENTS_H
 #define REPLACEMENTS_H
 
 #ifndef REPLACEMENTS_H
 #define REPLACEMENTS_H
 
-#include "types.h"
-
 /* MIN,MAX macros */
 #ifndef MIN
 #define MIN(a,b) (((a)<(b))?(a):(b))
 /* MIN,MAX macros */
 #ifndef MIN
 #define MIN(a,b) (((a)<(b))?(a):(b))
index a3672b201bb35d9f09fbbb89e229162415d06e3b..664aeb276ce89b7f48786534ae6a34b060840ab6 100644 (file)
@@ -22,7 +22,6 @@
 #endif
 
 #include "algorithm.h"
 #endif
 
 #include "algorithm.h"
-#include "replacements.h"
 #include "binarybuffer.h"
 
 
 #include "binarybuffer.h"
 
 
index a664dc34bcb0a007bd09c559045d62c5dc8f4bed..4a6dde1addc88a0860a0d627394ee09436365539 100644 (file)
@@ -30,8 +30,6 @@
 #include "algorithm.h"
 #include "command.h"
 
 #include "algorithm.h"
 #include "command.h"
 
-#include "replacements.h"
-
 struct reg_s;
 struct trace_s;
 struct command_context_s;
 struct reg_s;
 struct trace_s;
 struct command_context_s;

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)