Commit 0071420d authored by kfox's avatar kfox

Add ability to comment entire lines.

Print message when interest cannot be parsed.
parent c38f032f
......@@ -114,6 +114,9 @@ _parseConfigurationFile(PARCIdentity *identity, const char *configurationFile)
while (isspace(*commandPtr)) {
commandPtr++;
}
if ((*commandPtr == '#') || (*commandPtr == '\0') ) { // Commented line
continue;
}
interestName = commandPtr;
// Scan and terminate the interest url
......@@ -133,6 +136,10 @@ _parseConfigurationFile(PARCIdentity *identity, const char *configurationFile)
// Run the command
CCNxName *name = ccnxName_CreateFromCString(interestName);
if (name == NULL) {
printf("Could not parse %s\n", interestName);
continue;
}
CCNxInterest *interest = ccnxInterest_CreateSimple(name);
ccnxName_Release(&name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment