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");
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");
144 char *
string = NULL;
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) {
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");
void *(* osl_clone_f)(void *)
char * osl_comment_sprint(osl_comment_p comment)
void *(* osl_sread_f)(char **)
void(* osl_idump_f)(FILE *, void *, int)
void osl_comment_free(osl_comment_p comment)
osl_comment_p osl_comment_malloc(void)
osl_interface_p osl_interface_malloc(void)
void osl_util_safe_strcat(char **dst, char *src, size_t *hwm)
char *(* osl_sprint_f)(void *)
osl_comment_p osl_comment_clone(osl_comment_p comment)
void osl_comment_idump(FILE *file, osl_comment_p comment, int level)
#define OSL_strdup(destination, source)
void *(* osl_malloc_f)(void)
#define OSL_realloc(ptr, type, size)
osl_interface_p osl_comment_interface(void)
int(* osl_equal_f)(void *, void *)
osl_comment_p osl_comment_sread(char **input)
void osl_comment_dump(FILE *file, osl_comment_p comment)
int osl_comment_equal(osl_comment_p c1, osl_comment_p c2)
void(* osl_free_f)(void *)
#define OSL_malloc(ptr, type, size)