-void note_add_citation(Gom_ctxt ctxt, struct source_citation* cit)
-{
- struct note *note = SAFE_CTXT_CAST(note, ctxt);
- if (note)
- LINK_CHAIN_ELT(source_citation, note->citation, cit);
-}
-
-void note_add_user_ref(Gom_ctxt ctxt, struct user_ref_number* ref)
-{
- struct note *note = SAFE_CTXT_CAST(note, ctxt);
- if (note)
- LINK_CHAIN_ELT(user_ref_number, note->ref, ref);
-}
-
-void note_set_record_id(Gom_ctxt ctxt, const char *rin)
-{
- struct note *note = SAFE_CTXT_CAST(note, ctxt);
- if (note) {
- note->record_id = strdup(rin);
- if (! note->record_id) MEMORY_ERROR;
- }
-}
-
-void note_set_change_date(Gom_ctxt ctxt, struct change_date* chan)
-{
- struct note *note = SAFE_CTXT_CAST(note, ctxt);
- if (note)
- note->change_date = chan;
-}
-
-void note_add_user_data(Gom_ctxt ctxt, struct user_data* data)
-{
- struct note *obj = SAFE_CTXT_CAST(note, ctxt);
- if (obj)
- LINK_CHAIN_ELT(user_data, obj->extra, data);
-}
-
-void note_cleanup(struct note* note)