RoboTux wrote:
I also changed the load/save_buffer_state horrible hack into a dynarray
approach. Take a look at the code, I'm sure you'll be happy with it.
Yes, happy!
I guess these 6 lines:
file_name = tcc_malloc(sizeof(char) * (strlen(filename) + 1));
strcpy(file_name, filename);
dynarray_add((void ***) &libs, &nblibs, file_name);
lib_name = tcc_malloc(sizeof(char) * (strlen(libname) + 1));
strcpy(lib_name, libname);
dynarray_add((void ***) &libs, &nblibs, lib_name);
are logically equal to these 2 lines:
dynarray_add((void ***) &libs, &nblibs, tcc_strdup(filename));
dynarray_add((void ***) &libs, &nblibs, tcc_strdup(libname));
But then again I'm a perfectionist ;)
--- grischka
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel