94 for (j = 0; j < level; j++)
98 fprintf(file,
"+-- osl_comment_t\n");
100 fprintf(file,
"+-- NULL comment\n");
102 if (comment != NULL) {
104 for(j = 0; j <= level; j++)
105 fprintf(file,
"|\t");
108 OSL_strdup(tmp, comment->
comment);
109 for (l = 0; l < strlen(tmp); l++)
112 fprintf(file,
"comment: %s\n", tmp);
117 for (j = 0; j <= level; j++)
118 fprintf(file,
"|\t");
143 int high_water_mark = OSL_MAX_STRING;
144 char *
string = NULL;
145 char buffer[OSL_MAX_STRING];
147 if (comment != NULL) {
148 OSL_malloc(
string,
char *, high_water_mark *
sizeof(
char));
152 sprintf(buffer,
"%s", comment->
comment);
156 OSL_realloc(
string,
char *, (strlen(
string) + 1) *
sizeof(
char));
181 if (*input == NULL) {
182 OSL_debug(
"no comment optional tag");
186 if (strlen(*input) > OSL_MAX_STRING)
187 OSL_error(
"comment too long");
191 OSL_strdup(comment->
comment, *input);
194 input += strlen(*input);
230 if (comment != NULL) {
275 if (((c1 == NULL) && (c2 != NULL)) || ((c1 != NULL) && (c2 == NULL))) {
276 OSL_info(
"comments are not the same");
300 OSL_strdup(interface->URI, OSL_URI_COMMENT);
osl_comment_p osl_comment_clone(osl_comment_p comment)
osl_interface_p osl_comment_interface()
void osl_comment_idump(FILE *file, osl_comment_p comment, int level)
osl_comment_p osl_comment_malloc()
void osl_comment_dump(FILE *file, osl_comment_p comment)
void *(* osl_clone_f)(void *)
osl_comment_p osl_comment_sread(char **input)
osl_interface_p osl_interface_malloc()
void osl_comment_free(osl_comment_p comment)
void *(* osl_sread_f)(char **)
void osl_util_safe_strcat(char **dst, char *src, int *hwm)
char * osl_comment_sprint(osl_comment_p comment)
void(* osl_idump_f)(FILE *, void *, int)
char *(* osl_sprint_f)(void *)
int(* osl_equal_f)(void *, void *)
int osl_comment_equal(osl_comment_p c1, osl_comment_p c2)
void(* osl_free_f)(void *)