"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/src/usermat.c" between
gretl-2020a.tar.xz and gretl-2020b.tar.xz

About: gretl (Gnu Regression, Econometrics and Time-series Library) is a cross-platform statistical package mainly for econometric analysis.

usermat.c  (gretl-2020a.tar.xz):usermat.c  (gretl-2020b.tar.xz)
skipping to change at line 252 skipping to change at line 252
{ {
if (k != MSEL_MAX && (k < 1 || k > n)) { if (k != MSEL_MAX && (k < 1 || k > n)) {
gretl_errmsg_sprintf(_("Index value %d is out of bounds"), k); gretl_errmsg_sprintf(_("Index value %d is out of bounds"), k);
return E_INVARG; return E_INVARG;
} }
return 0; return 0;
} }
/* convert a matrix subspec component into list of rows /* convert a matrix subspec component into list of rows
or columns */ or columns: n is the maximal dimension of selectable items
*/
static int *mspec_make_list (int type, union msel *sel, int n, int *mspec_make_list (int type, union msel *sel, int n,
int *err) int *err)
{ {
int *slice = NULL; int *slice = NULL;
int single_exclude = 0; int single_exclude = 0;
int i, ns = 0; int i, ns = 0;
if (type == SEL_ALL || type == SEL_NULL) { if (type == SEL_ALL || type == SEL_NULL) {
return NULL; return NULL;
} }
if (type == SEL_MATRIX) { if (type == SEL_MATRIX) {
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)