Moved 'gbmemcpy' macro to separate file

This commit is contained in:
Ivan Skytte Jørgensen 2018-07-26 17:01:42 +02:00
parent 53b9973d2f
commit 95f7e8b79c
26 changed files with 31 additions and 3 deletions

@ -7,6 +7,7 @@
#include "Dns_internals.h"
#include "ip.h"
#include "Mem.h"
#include "gbmemcpy.h"
#include <fcntl.h>

@ -8,6 +8,7 @@
#include "Conf.h"
#include "Sanity.h"
#include <fcntl.h>
#include "gbmemcpy.h"
HashTableX::HashTableX () {

@ -22,6 +22,7 @@
#include <sys/types.h>
#include <ifaddrs.h>
#include <sys/types.h>
#include "gbmemcpy.h"
// a global class extern'd in .h file
Hostdb g_hostdb;

@ -5,6 +5,7 @@
#include "HashTableX.h"
#include "Process.h"
#include "Conf.h"
#include "gbmemcpy.h"
#ifdef _VALGRIND_
#include <valgrind/memcheck.h>

@ -12,6 +12,7 @@
#include "CountryLanguage.h"
#include <stdlib.h>
#include <float.h>
#include "gbmemcpy.h"
HttpRequest::HttpRequest () {

@ -26,6 +26,7 @@
#include "GbUtil.h"
#include "Mem.h"
#include "ContentTypeBlockList.h"
#include "gbmemcpy.h"
#include <fcntl.h>

@ -15,6 +15,7 @@
#include <pthread.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include "gbmemcpy.h"
// TODO: image is bad if repeated on same page, check for that

@ -19,6 +19,7 @@
#include "Mem.h"
#include "JobScheduler.h"
#include "SpiderdbRdbSqliteBridge.h"
#include "gbmemcpy.h"
class State00;

@ -17,6 +17,7 @@
#include "Mem.h"
#include "SiteGetter.h"
#include "ip.h"
#include "gbmemcpy.h"
#ifdef _VALGRIND_
#include <valgrind/memcheck.h>

@ -42,6 +42,7 @@
#include "SiteMedianPageTemperature.h"
#include <set>
#include <fstream>
#include "gbmemcpy.h"
class WaitEntry {

@ -11,6 +11,7 @@
#include "ScopedLock.h"
#include <fcntl.h>
#include "Posdb.h"
#include "gbmemcpy.h"
#define BUCKET_SIZE 8192
#define INIT_SIZE 4096

@ -15,6 +15,7 @@
#include "Conf.h"
#include "Mem.h"
#include <fcntl.h>
#include "gbmemcpy.h"
static const int64_t m_maxColls = (1LL << (sizeof(collnum_t)*8)); // 65536

@ -10,6 +10,7 @@
#include "Mem.h"
#include <set>
#include <assert.h>
#include "gbmemcpy.h"
static const int signature_init = 0x07b39a1b;

@ -5,6 +5,7 @@
#include "Sanity.h"
#include <sys/stat.h> //O_CREAT etc.
#include <fcntl.h> //open()
#include "gbmemcpy.h"
SafeBuf::SafeBuf(int32_t initSize, const char *label ) {

@ -5,6 +5,7 @@
#include "Conf.h"
#include "Collectiondb.h"
#include "Process.h"
#include "gbmemcpy.h"
//
// BASIC IDEA

@ -6,6 +6,7 @@
#include "Lang.h"
#include "GbUtil.h"
#include "Sanity.h"
#include "gbmemcpy.h"
#ifdef _VALGRIND_
#include <valgrind/memcheck.h>

@ -19,6 +19,7 @@
#include "GbUtil.h"
#include "ScopedLock.h"
#include "Mem.h"
#include "gbmemcpy.h"
static HashTableX s_ht;

@ -14,6 +14,7 @@
#ifdef _VALGRIND_
#include <valgrind/memcheck.h>
#endif
#include "gbmemcpy.h"
int32_t g_cancelAcksSent = 0;
int32_t g_cancelAcksRead = 0;

@ -10,6 +10,7 @@
#include "GbMutex.h"
#include "ScopedLock.h"
#include "GbUtil.h"
#include "gbmemcpy.h"
#include <vector>
#include <algorithm>

@ -11,6 +11,7 @@
#include "Mem.h"
#include <sys/stat.h> //stat()
#include <fcntl.h>
#include "gbmemcpy.h"
// the global instance
Wiktionary g_wiktionary;

@ -8,6 +8,7 @@
#include "Pos.h"
#include "Sanity.h"
#include "Conf.h"
#include "gbmemcpy.h"
Xml::Xml () {

@ -60,6 +60,7 @@
#include <iostream>
#include <fstream>
#include <sysexits.h>
#include "gbmemcpy.h"
#ifdef _VALGRIND_
#include <valgrind/memcheck.h>

@ -18,6 +18,7 @@
#include "Lemma.h"
#include <unordered_set>
#include <string>
#include "gbmemcpy.h"
#ifdef _VALGRIND_

@ -10,6 +10,7 @@
#include "Hostdb.h"
#include "Mem.h"
#include <fcntl.h>
#include "gbmemcpy.h"
char *strncasestr( char *haystack, int32_t haylen, const char *needle){

@ -1,9 +1,6 @@
#ifndef GB_INCLUDE_H
#define GB_INCLUDE_H
//The function below are legacy. Don't use them in new code
#define gbmemcpy(xx,yy,zz) memmove(xx,yy,zz)
#include <inttypes.h>
#include <bits/wordsize.h>

7
gbmemcpy.h Normal file

@ -0,0 +1,7 @@
#ifndef GBMEMCPY_H_
#define GBMEMCPY_H_
//The function below is legacy. Don't use it in new code
#define gbmemcpy(xx,yy,zz) memmove(xx,yy,zz)
#endif