94 for (j = 0; j < level; j++)
98 fprintf(file,
"+-- osl_clay_t\n");
100 fprintf(file,
"+-- NULL clay\n");
104 for(j = 0; j <= level; j++)
105 fprintf(file,
"|\t");
108 OSL_strdup(tmp, clay->
script);
109 for (l = 0; l < strlen(tmp); l++)
112 fprintf(file,
"script: %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];
148 OSL_malloc(
string,
char *, high_water_mark *
sizeof(
char));
152 sprintf(buffer,
"%s", clay->
script);
156 OSL_realloc(
string,
char *, (strlen(
string) + 1) *
sizeof(
char));
182 if (*input == NULL) {
183 OSL_debug(
"no clay optional tag");
187 if (strlen(*input) > OSL_MAX_STRING)
188 OSL_error(
"clay script too long");
196 while (*script && (*script ==
'\n'))
198 OSL_strdup(clay->
script, script);
201 input += strlen(*input);
282 if (((c1 == NULL) && (c2 != NULL)) || ((c1 != NULL) && (c2 == NULL))) {
283 OSL_info(
"clay extensions are not the same");
288 OSL_info(
"clay scripts are not the same");
305 OSL_strdup(interface->URI, OSL_URI_CLAY);
osl_interface_p osl_clay_interface()
void *(* osl_clone_f)(void *)
int osl_clay_equal(osl_clay_p c1, osl_clay_p c2)
osl_clay_p osl_clay_malloc()
osl_interface_p osl_interface_malloc()
osl_clay_p osl_clay_sread(char **input)
void *(* osl_sread_f)(char **)
void osl_util_safe_strcat(char **dst, char *src, int *hwm)
void osl_clay_idump(FILE *file, osl_clay_p clay, int level)
void(* osl_idump_f)(FILE *, void *, int)
void osl_clay_free(osl_clay_p clay)
char *(* osl_sprint_f)(void *)
void osl_clay_dump(FILE *file, osl_clay_p clay)
char * osl_clay_sprint(osl_clay_p clay)
int(* osl_equal_f)(void *, void *)
osl_clay_p osl_clay_clone(osl_clay_p clay)
void(* osl_free_f)(void *)