Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libutils: Properly #ifdef NEEDS_VECTORIMPL_SYMBOLS #25

Merged
merged 1 commit into from
Jan 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/utils/VectorImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class VectorImpl
virtual void do_move_forward(void* dest, const void* from, size_t num) const = 0;
virtual void do_move_backward(void* dest, const void* from, size_t num) const = 0;

#if NEEDS_VECTORIMPL_SYMBOLS
#ifdef NEEDS_VECTORIMPL_SYMBOLS
// take care of FBC...
virtual void reservedVectorImpl1();
virtual void reservedVectorImpl2();
Expand Down Expand Up @@ -168,7 +168,7 @@ class SortedVectorImpl : public VectorImpl
protected:
virtual int do_compare(const void* lhs, const void* rhs) const = 0;

#if NEEDS_VECTORIMPL_SYMBOLS
#ifdef NEEDS_VECTORIMPL_SYMBOLS
// take care of FBC...
virtual void reservedSortedVectorImpl1();
virtual void reservedSortedVectorImpl2();
Expand Down
4 changes: 2 additions & 2 deletions libutils/VectorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ void VectorImpl::_do_move_backward(void* dest, const void* from, size_t num) con
do_move_backward(dest, from, num);
}

#if NEEDS_VECTORIMPL_SYMBOLS
#ifdef NEEDS_VECTORIMPL_SYMBOLS
void VectorImpl::reservedVectorImpl1() { }
void VectorImpl::reservedVectorImpl2() { }
void VectorImpl::reservedVectorImpl3() { }
Expand Down Expand Up @@ -644,7 +644,7 @@ ssize_t SortedVectorImpl::remove(const void* item)
return i;
}

#if NEEDS_VECTORIMPL_SYMBOLS
#ifdef NEEDS_VECTORIMPL_SYMBOLS
void SortedVectorImpl::reservedSortedVectorImpl1() { };
void SortedVectorImpl::reservedSortedVectorImpl2() { };
void SortedVectorImpl::reservedSortedVectorImpl3() { };
Expand Down