Skip to content

Conversation

@brianebeyer
Copy link
Owner

No description provided.


def install
args = std_cmake_args
# if build.with? "static-lib"
Copy link
Owner Author

Choose a reason for hiding this comment

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

Not sure osquery standard for this or how to ensure this flag gets set

#include <osquery/registry.h>
#include <osquery/tables.h>

#include "yaml-cpp/yaml.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you mean to use <yaml-cpp/yaml.h> instead of "yaml-cpp/yaml.h". By convention - you use the angle brackets when it's part of the include path. You use the quotation marks when it's local to your own directory.

convertedJsonWriter.Bool(false);
} else {
if (node.Tag() != "!") {
const char* end = nodeVal.c_str() + nodeVal.length();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: probably a good place to use auto.

}

// try parsing it as a long
auto i = strtoll(nodeVal.c_str(), &pos, 10);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it useful to support decimal annotated integers? (YAML Spec - section 2.4)

For example: +1234. I'm not sure if strtoll supports that or not.


def install
args = std_cmake_args
# if build.with? "static-lib"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you mean to leave these comment lines in? Do they need to be uncommented?

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