Skip to content

Very minor improvements in C source code#116

Open
ghost wants to merge 1 commit into
masterfrom
unknown repository
Open

Very minor improvements in C source code#116
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Mar 4, 2017

Copy link
Copy Markdown

No description provided.

Comment thread src/check_log.c
sr->tap_fname = fname;
}

int srunner_has_tap(SRunner * sr)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It used srunner_tap_fname that is not defined before.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It was already defined in src/check_log.h which is included in the beginning of src/check_log.c.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe make this a separate commit, instead of combining multiple unrelated improvements in one commit.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment thread src/check_msg.c
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

For unlink

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This header is not available if in the Windows environment. Because of this, the MSVC and Visual Studio build fails: https://ci.appveyor.com/project/brarcher46583/check/build/1.0.467.

@ghost

ghost commented Mar 7, 2017

Copy link
Copy Markdown
Author

I removed from this pull request what I have split in an other one. #119

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