2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A while (p >
line && (p[-
1] ==
'\n' || p[-
1] ==
'\r'))
2N/A * Finish off the rest of the line. 2N/A * A space after ']' should not be fatal 2N/A * Parse the relations 2N/A /* Look for whitespace on left-hand side. */ 2N/A /* Found some sort of whitespace. */ 2N/A /* If we have more non-whitespace, it's an error. */ 2N/A /* Solaris Kerberos: check if an unconfigured file */ 2N/A /* The string may have foreign newlines and 2N/A gotten chopped off on a non-newline 2N/A boundary. Seek backwards to the last known 2N/A if (*c ==
'\r' || *c ==
'\n') {
2N/A /* First change all newlines to \n */ 2N/A /* Then parse all lines */ 2N/A /* parse_line modifies contents of p */ 2N/A * Return TRUE if the string begins or ends with whitespace 2N/A * Output a string with double quotes, doing appropriate backquoting 2N/A * of characters as necessary. 2N/A /* This would be a lot faster if we scanned 2N/A forward for the next "interesting" 2N/A/* Errors should be returned, not ignored! */ 2N/A void (*
cb)(
const char *,
void *),
void *
data)
2N/A }
else {
/* xxx = { ... } */