[Refdb-cvs] CVS: refdb/src mods_checkdup.c,NONE,1.1 mods_checkdup.h,NONE,1.1
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2004-06-20 21:42:59
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8402 Added Files: mods_checkdup.c mods_checkdup.h Log Message: initial version --- NEW FILE --- /* mods_checkdup.c: duplicate checking of mods records */ /* ma...@mh... 2004-05-31 */ /* $Id: mods_checkdup.c,v 1.1 2004/06/20 21:42:51 mhoenicka Exp $ */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA [...1615 lines suppressed...] int free_name_lists returns 0 if ok struct name_lists* ptr_namelists ptr to name_lists structure ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ int free_name_lists(struct name_lists* ptr_namelists) { if (ptr_namelists != NULL) { delete_all_lilid(&(ptr_namelists->name)); delete_all_lilid(&(ptr_namelists->roleterm)); delete_all_lilid(&(ptr_namelists->nameval)); delete_all_lilid(&(ptr_namelists->nameparts)); free(ptr_namelists); } return 0; } --- NEW FILE --- /*+++++++++++++++++++++++ mods_checkdup.h header file for mods_checkdup.c ma...@mh... 2004-05-31 $Id: mods_checkdup.h,v 1.1 2004/06/20 21:42:51 mhoenicka Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++++++++++++++++++++++++*/ struct subject_lists { Lilid subject; Lilid topic; Lilid geographic; Lilid temporal; Lilid geographicCode; Lilid continent; Lilid country; Lilid province; Lilid region; Lilid state; Lilid territory; Lilid county; Lilid city; Lilid island; Lilid area; Lilid scale; Lilid projection; Lilid coordinates; Lilid occupation; Lilid date; }; struct subject_lists* new_subject_lists(); int free_subject_lists(struct subject_lists* ptr_sublists); struct titleinfo_lists { Lilid titleinfo; Lilid title; Lilid subTitle; Lilid partNumber; Lilid partName; Lilid nonSort; }; struct titleinfo_lists* new_titleinfo_lists(); int free_titleinfo_lists(struct titleinfo_lists* ptr_titleinfolists); struct name_lists { Lilid name; Lilid roleterm; Lilid nameval; Lilid nameparts; }; struct name_lists* new_name_lists(); int free_name_lists(struct name_lists* ptr_namelists); unsigned long long mods_checkdup_titleinfo(struct modsObject* ptr_titleinfo, struct addmods_data* ptr_amdata); unsigned long long mods_checkdup_name(struct modsObject* ptr_name, struct addmods_data* ptr_amdata); unsigned long long mods_checkdup_subject(struct modsObject* ptr_subject, struct addmods_data* ptr_amdata, char* type_q, char* href_q, char* role_q, char* arcrole_q, char* title_q, char* show_q, char* actuate_q, char* lang_q, char* script_q, char* transliteration_q); |