gretl  2020e
About: gretl (Gnu Regression, Econometrics and Time-series Library) is a cross-platform statistical package mainly for econometric analysis.
  Fossies Dox: gretl-2020e.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dataset.c File Reference
#include "libgretl.h"
#include "gretl_func.h"
#include "uservar.h"
#include "gretl_string_table.h"
#include "libset.h"
#include "dbread.h"
Include dependency graph for dataset.c:

Go to the source code of this file.

Data Structures

struct  VARINFO_
 

Macros

#define DDEBUG   0
 
#define FULLDEBUG   0
 
#define Z_COLS_BORROWED   2
 
#define dset_zcols_borrowed(d)   (d->auxiliary == Z_COLS_BORROWED)
 

Functions

static int pad_daily_data (DATASET *dset, int pd, PRN *prn)
 
int check_dataset_is_changed (DATASET *dset)
 
void set_dataset_is_changed (DATASET *dset, int s)
 
static void dataset_set_nobs (DATASET *dset, int n)
 
void free_Z (DATASET *dset)
 
void dataset_destroy_obs_markers (DATASET *dset)
 
static void free_varinfo (DATASET *dset, int v)
 

Macro Definition Documentation

◆ DDEBUG

#define DDEBUG   0

Definition at line 27 of file dataset.c.

◆ dset_zcols_borrowed

#define dset_zcols_borrowed (   d)    (d->auxiliary == Z_COLS_BORROWED)

Definition at line 32 of file dataset.c.

◆ FULLDEBUG

#define FULLDEBUG   0

Definition at line 28 of file dataset.c.

◆ Z_COLS_BORROWED

#define Z_COLS_BORROWED   2

Definition at line 30 of file dataset.c.

Function Documentation

◆ check_dataset_is_changed()

int check_dataset_is_changed ( DATASET dset)

check_dataset_is_changed: @dset: dataset to check.

Returns: 1 if @dset has been modified since the last call to this function.

Definition at line 60 of file dataset.c.

References DATASET_::modflag.

Referenced by do_minibuf(), gui_exec_callback(), real_GUI_function_call(), really_set_variable_info(), and update_console().

◆ dataset_destroy_obs_markers()

void dataset_destroy_obs_markers ( DATASET dset)

◆ dataset_set_nobs()

static void dataset_set_nobs ( DATASET dset,
int  n 
)
static

Definition at line 83 of file dataset.c.

References destroy_matrix_mask(), n, and DATASET_::n.

◆ free_varinfo()

static void free_varinfo ( DATASET dset,
int  v 
)
static

Definition at line 139 of file dataset.c.

References VARINFO_::label, series_table_destroy(), VARINFO_::st, and DATASET_::varinfo.

◆ free_Z()

◆ pad_daily_data()

static int pad_daily_data ( DATASET dset,
int  pd,
PRN prn 
)
static

◆ set_dataset_is_changed()

void set_dataset_is_changed ( DATASET dset,
int  s 
)

set_dataset_is_changed: @dset: dataset. @s: 1 or 0.

Sets the internal boolean "changed" flag to @s.

Definition at line 76 of file dataset.c.

References gretl_function_depth(), and DATASET_::modflag.

Referenced by create_or_edit_list(), gen_special(), generate(), gretl_cmd_exec(), gretl_join_data(), lib_open_append(), really_set_variable_info(), save_generated_var(), and set_series_obs_value().