[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Jason Stover
Subject: var_create_internal
Date: Wed, 7 Jan 2009 17:17:40 -0500
User-agent: Mutt/1.5.18 (2008-05-17)


/* Create a variable to be used for internal calculations only */
struct variable *
var_create_internal (int case_idx)
  struct variable *v = var_create ("$internal", 0);

  struct vardict_info vdi;

  vdi.dict = NULL;
  vdi.dict_index = 0;
  vdi.case_index = case_idx;

  var_set_vardict (v, &vdi);

  return v;

/* Dictionary data stored in variable. */
struct vardict_info
    int dict_index;     /* Dictionary index containing the variable. */
    int case_index;     /* Index into case of variable data. */
    struct dictionary *dict;  /* The dictionary containing the variable */

What is the "case of variable data"? All the examples I see in
src/language/stats show a value of either 0, 1 or 2.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]