Audit and remove redundant uses of replacements.h in the tree.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1761 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
zwelch 2009-05-12 08:35:17 +00:00
parent 5136270920
commit f976af56a4
8 changed files with 8 additions and 25 deletions

View File

@ -26,9 +26,9 @@
#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
{

View File

@ -61,11 +61,6 @@
#include "jim-eventloop.h"
#endif
#include "replacements.h"
/* --- */
/* File event structure */
typedef struct Jim_FileEvent {
void *handle;

View File

@ -56,8 +56,6 @@
#include <stdarg.h>
#include <limits.h>
#include "replacements.h"
/* Include the platform dependent libraries for
* dynamic loading of libraries. */
#ifdef JIM_DYNLIB

View File

@ -26,7 +26,6 @@
#ifndef ERROR_H
#define ERROR_H
#include "replacements.h"
#include "command.h"
/* logging priorities

View File

@ -23,17 +23,10 @@
* 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>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
/*
* clear_malloc
*
@ -65,9 +58,12 @@ void *fill_malloc(size_t size)
}
#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>

View File

@ -26,8 +26,6 @@
#ifndef REPLACEMENTS_H
#define REPLACEMENTS_H
#include "types.h"
/* MIN,MAX macros */
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))

View File

@ -22,7 +22,6 @@
#endif
#include "algorithm.h"
#include "replacements.h"
#include "binarybuffer.h"

View File

@ -30,8 +30,6 @@
#include "algorithm.h"
#include "command.h"
#include "replacements.h"
struct reg_s;
struct trace_s;
struct command_context_s;