Пример #1
0
void db_filelist_rem_pkg_paths(const struct db_pkg* pkg)
{
  gchar path[MAXPATHLEN];
  gint rc;
  Word_t *p1, *p2;

  strcpy(path, "");
  JSLF(p1, pkg->paths, path);
  while (p1 != NULL)
  {
    JSLG(p2, _db.paths, path);
    if (p2)
    {
      Word_t* refs = p2;
      if (*refs == 1)
      {
        JSLD(rc, _db.paths, path);
      }
      else
      {
        (*refs)--;
      }
    }
    JSLN(p1, pkg->paths, path);
  }
}
Пример #2
0
int jtableS_remove(jtableS *table, const char *key) {
	int ret;

	JSLD(ret, table->t, (const uint8_t*)key);
	return ret;
}
Пример #3
0
void assoc_delete(char *key) {
    int Rc_int;
    JSLD( Rc_int, PJSLArray, key);
    return;
}