#line 8 "copy_doc.c-nw" #include #include #include /* copy_doc -- copy a W3ADocumentInfo, allocating space on the heap */ EXPORT void copy_doc(W3ADocumentInfo *target, const W3ADocumentInfo source) { dispose(target->url); dispose(target->mime_type); dispose(target->mime_params); dispose(target->title); dispose(target->referer); dispose(target->status); dispose(target->location); target->url = newstring(source.url); target->mime_type = newstring(source.mime_type); target->mime_params = newstring(source.mime_params); target->title = newstring(source.title); target->referer = newstring(source.referer); target->status = newstring(source.status); target->location = newstring(source.location); target->size = source.size; }