Skip to content

Change None in C/C++ source to NoneType.#545

Merged
jbeder merged 2 commits intojbeder:masterfrom
cybel:master
Nov 29, 2017
Merged

Change None in C/C++ source to NoneType.#545
jbeder merged 2 commits intojbeder:masterfrom
cybel:master

Conversation

@cybel
Copy link
Copy Markdown
Contributor

@cybel cybel commented Nov 28, 2017

For issue #320

Prevent name conflict with X11 None definition.

Passes all tests, simple update using the following commands:

find -type f -and ( -iname '.c' -or -iname '.h' ) -and -not -iname '*.cbproj' -and -exec sh -c 'egrep -n "None[^A-Za-z0-9]+" {}' ; -and -print -and -exec echo ; -exec sed -i.backup -re 's:([^A-Za-z0-9]+)(None)([^A-Za-z0-9]+):\1\2Type\3:g' {} ;

Confirmed to no longer conflict with X11.

Prevent name conflict with X11 None definition.
GTEST_DECLARE_string_(filter);

// This flag causes the Google Test to list tests. None of the tests listed
// This flag causes the Google Test to list tests. NoneType of the tests listed
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Revert this; and all of the ones in gtest.

NoneType -> None
@cybel
Copy link
Copy Markdown
Contributor Author

cybel commented Nov 29, 2017

Reverted changes to gtest files.

@jbeder jbeder merged commit 86ae3a5 into jbeder:master Nov 29, 2017
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.

2 participants