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__
parent
5136270920
commit
f976af56a4
|
@ -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
|
||||
{
|
||||
|
|
|
@ -61,11 +61,6 @@
|
|||
#include "jim-eventloop.h"
|
||||
#endif
|
||||
|
||||
#include "replacements.h"
|
||||
|
||||
|
||||
/* --- */
|
||||
|
||||
/* File event structure */
|
||||
typedef struct Jim_FileEvent {
|
||||
void *handle;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
#include "replacements.h"
|
||||
#include "command.h"
|
||||
|
||||
/* logging priorities
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#endif
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "replacements.h"
|
||||
#include "binarybuffer.h"
|
||||
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include "algorithm.h"
|
||||
#include "command.h"
|
||||
|
||||
#include "replacements.h"
|
||||
|
||||
struct reg_s;
|
||||
struct trace_s;
|
||||
struct command_context_s;
|
||||
|
|
Loading…
Reference in New Issue