-
Notifications
You must be signed in to change notification settings - Fork 146
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
DLL-inteface for operator<< (MSVC compatibility) #114
Open
dvetutnev
wants to merge
14
commits into
docopt:master
Choose a base branch
from
dvetutnev:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+60
−28
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
def54d4
Add __declspec(dllexport) for docopt::operator<< (compotibility for M…
dvetutnev 915e57e
Remove namespace-prefix from docopt_parse (GCC compatibility)
dvetutnev c36c797
Remove copyrigth from docopt_api
dvetutnev 27a3c75
Use previous stile
dvetutnev 682acc2
Use previous style (value const&)
dvetutnev 591799b
Add Appveyor
dvetutnev 578ec0f
Appveyor script mode
dvetutnev eb69580
Appveyor script mode, 2
dvetutnev 56d671a
Appveyor, fix generator
dvetutnev 2f5d711
Appveyor, fix generator, 2
dvetutnev 77c0318
Appveyor, fix generator, 3
dvetutnev e2fa032
Appveyor, fix generator, 4
dvetutnev d5da55c
Appveyor, build folder
dvetutnev 125faf3
Appveyor, remove test_script
dvetutnev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
skip_tags: true | ||
|
||
environment: | ||
PYTHON: C:\\Python27-x64 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
|
||
install: | ||
- set PATH=%PYTHON%;%PYTHON%\\Scripts\\;%PATH% | ||
|
||
build: false | ||
|
||
build_script: | ||
- mkdir build && cd build | ||
- cmake -G "Visual Studio 15 2017 Win64" .. | ||
- cmake --build . --config Debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// docopt_api.h | ||
// docopt | ||
// | ||
// | ||
|
||
#ifndef docopt__api_h_ | ||
#define docopt__api_h_ | ||
|
||
#ifdef DOCOPT_HEADER_ONLY | ||
#define DOCOPT_INLINE inline | ||
#define DOCOPT_API | ||
#else | ||
#define DOCOPT_INLINE | ||
|
||
// With Microsoft Visual Studio, export certain symbols so they | ||
// are available to users of docopt.dll (shared library). The DOCOPT_DLL | ||
// macro should be defined if building a DLL (with Visual Studio), | ||
// and by clients using the DLL. The CMakeLists.txt and the | ||
// docopt-config.cmake it generates handle this. | ||
#ifdef DOCOPT_DLL | ||
// Whoever is *building* the DLL should define DOCOPT_EXPORTS. | ||
// The CMakeLists.txt that comes with docopt does this. | ||
// Clients of docopt.dll should NOT define DOCOPT_EXPORTS. | ||
#ifdef DOCOPT_EXPORTS | ||
#define DOCOPT_API __declspec(dllexport) | ||
#else | ||
#define DOCOPT_API __declspec(dllimport) | ||
#endif | ||
#else | ||
#define DOCOPT_API | ||
#endif | ||
#endif | ||
|
||
#endif /* defined(docopt__api_h_) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little nervous about swapping the order of these (the return type and the annotation). Was this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__declspec(dllexport)/__declspec(dllimport) should be of left-side */& (MSVC specfic). This change for one-style with operator<<