Lines Matching defs:ms
78 rowcol_convert(struct _citrus_mapper_std * __restrict ms,
88 rc = &ms->ms_rowcol;
233 rowcol_uninit(struct _citrus_mapper_std *ms)
237 rc = &ms->ms_rowcol;
242 rowcol_init(struct _citrus_mapper_std *ms)
252 ms->ms_convert = &rowcol_convert;
253 ms->ms_uninit = &rowcol_uninit;
254 rc = &ms->ms_rowcol;
257 ret = _db_lookup_by_s(ms->ms_db, _CITRUS_MAPPER_STD_SYM_TABLE,
266 ret = _db_lookup_by_s(ms->ms_db, _CITRUS_MAPPER_STD_SYM_INFO, &r, NULL);
297 ret = _db_lookup_by_s(ms->ms_db,
342 struct _citrus_mapper_std *ms;
356 ms = malloc(sizeof(*ms));
357 if (ms == NULL) {
365 ret = _map_file(&ms->ms_file, path);
369 ret = _db_open(&ms->ms_db, &ms->ms_file, _CITRUS_MAPPER_STD_MAGIC,
375 ret = _db_lookupstr_by_s(ms->ms_db, _CITRUS_MAPPER_STD_SYM_TYPE,
390 ret = (*types[id].t_init)(ms);
394 cm->cm_closure = ms;
399 _db_close(ms->ms_db);
401 _unmap_file(&ms->ms_file);
403 free(ms);
412 struct _citrus_mapper_std *ms;
414 ms = cm->cm_closure;
415 if (ms->ms_uninit)
416 (*ms->ms_uninit)(ms);
417 _db_close(ms->ms_db);
418 _unmap_file(&ms->ms_file);
419 free(ms);
434 struct _citrus_mapper_std *ms;
436 ms = cm->cm_closure;
437 return ((*ms->ms_convert)(ms, dst, src, ps));