Skip to content

Conversation

@wesm
Copy link
Member

@wesm wesm commented Jul 31, 2017

I added the ARROW_NO_DEFAULT_MEMORY_POOL define option to disable this in third party use.

I also flipped the order of arguments to the builder constructors to be a bit more natural. I don't feel strongly about this, but it does make the code a bit nicer:

FixedSizeBinaryBuilder builder(type);
FixedSizeBinaryBuilder builder(type, pool);

versus

FixedSizeBinaryBuilder builder(type);
FixedSizeBinaryBuilder builder(pool, type);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather prefer a second internal macro:

#ifdef ARROW_NO_DEFAULT_MEMORY_POOL
#define ARROW_ARG_MEMORY_POOL MemoryPool* pool
#else
#define ARROW_ARG_MEMORY_POOL MemoryPool* pool = default_memory_pool()
#endif

This would avoid the if…else…endif duplications here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing. I may need to twiddle the Doxyfile a little bit so it expands the macro properly

wesm added 2 commits August 1, 2017 10:31
…ssing explicitly. Add ARROW_NO_DEFAULT_MEMORY_POOL define. Flip builder constructor order, deprecate old constructors. README documentation

Change-Id: Ie640d044a2f078127e81072b81e94ee20ebb9544
…ro expansion to Doxyfile

Change-Id: Ie632a77e3d8530a87bdab53f53ffa1f2b48c0ef9
wesm added 4 commits August 1, 2017 11:37
Change-Id: I9dea1f4b5acc2d1b7f5b7cf6556031745d7fc858
Change-Id: I15c66cb3d32bbaa3a0b2b7a9fc9547fc9b81b487
Change-Id: I4847b207b46f5b70922bb31d5bf3120a3d42a265
pushd $ARROW_C_GLIB_DIR

export ARROW_C_GLIB_CFLAGS="-DARROW_NO_DEPRECATED_API"
export ARROW_C_GLIB_CXXFLAGS="-DARROW_NO_DEPRECATED_API"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about calling ./configure with CFLAGS and CXXFLAGS like the following?:

CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS CFLAGS=-DARROW_NO_DEPRECATED_API"
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS CXXFLAGS=-DARROW_NO_DEPRECATED_API"
./configure $CONFIGURE_OPTIONS

If we use generic configure options, we don't need to introduce Arrow specific variable such as ARROW_C_GLIB_CFLAGS.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Change-Id: Iadb85d7df49f4fd79812fc6738ae891555cd8a68
@wesm
Copy link
Member Author

wesm commented Aug 2, 2017

Appveyor build: https://ci.appveyor.com/project/wesm/arrow/build/1.0.838. Will merge when completed

@asfgit asfgit closed this in ee928d2 Aug 2, 2017
@wesm wesm deleted the ARROW-1211 branch August 2, 2017 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants