"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/src/gretl_typemap.c" between
gretl-2020d.tar.xz and gretl-2020e.tar.xz

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

gretl_typemap.c  (gretl-2020d.tar.xz):gretl_typemap.c  (gretl-2020e.tar.xz)
skipping to change at line 39 skipping to change at line 39
static struct type_map gretl_type_map[] = { static struct type_map gretl_type_map[] = {
{ GRETL_TYPE_MATRIX, GRETL_TYPE_MATRIX_REF, { GRETL_TYPE_MATRIX, GRETL_TYPE_MATRIX_REF,
GRETL_TYPE_MATRICES, GRETL_TYPE_MATRICES_REF}, GRETL_TYPE_MATRICES, GRETL_TYPE_MATRICES_REF},
{ GRETL_TYPE_BUNDLE, GRETL_TYPE_BUNDLE_REF, { GRETL_TYPE_BUNDLE, GRETL_TYPE_BUNDLE_REF,
GRETL_TYPE_BUNDLES, GRETL_TYPE_BUNDLES_REF}, GRETL_TYPE_BUNDLES, GRETL_TYPE_BUNDLES_REF},
{ GRETL_TYPE_STRING, GRETL_TYPE_STRING_REF, { GRETL_TYPE_STRING, GRETL_TYPE_STRING_REF,
GRETL_TYPE_STRINGS, GRETL_TYPE_STRINGS_REF}, GRETL_TYPE_STRINGS, GRETL_TYPE_STRINGS_REF},
{ GRETL_TYPE_ARRAY, GRETL_TYPE_ARRAY_REF, { GRETL_TYPE_ARRAY, GRETL_TYPE_ARRAY_REF,
GRETL_TYPE_ARRAYS, GRETL_TYPE_ARRAYS_REF}, GRETL_TYPE_ARRAYS, GRETL_TYPE_ARRAYS_REF},
{ GRETL_TYPE_LIST, 0, { GRETL_TYPE_LIST, GRETL_TYPE_LIST_REF,
GRETL_TYPE_LISTS, GRETL_TYPE_LISTS_REF}, GRETL_TYPE_LISTS, GRETL_TYPE_LISTS_REF},
{ GRETL_TYPE_SERIES, GRETL_TYPE_SERIES_REF, 0, 0}, { GRETL_TYPE_SERIES, GRETL_TYPE_SERIES_REF, 0, 0},
{ GRETL_TYPE_DOUBLE, GRETL_TYPE_SCALAR_REF, 0, 0} { GRETL_TYPE_DOUBLE, GRETL_TYPE_SCALAR_REF, 0, 0}
}; };
GretlType gretl_type_get_plural (GretlType type) GretlType gretl_type_get_plural (GretlType type)
{ {
int i, n = G_N_ELEMENTS(gretl_type_map); int i, n = G_N_ELEMENTS(gretl_type_map);
if (type == 0) return 0; if (type == 0) return 0;
skipping to change at line 142 skipping to change at line 142
case GRETL_TYPE_INT: return "int"; case GRETL_TYPE_INT: return "int";
case GRETL_TYPE_UNSIGNED: return "unsigned"; case GRETL_TYPE_UNSIGNED: return "unsigned";
case GRETL_TYPE_OBS: return "obs"; case GRETL_TYPE_OBS: return "obs";
case GRETL_TYPE_DOUBLE: return "scalar"; case GRETL_TYPE_DOUBLE: return "scalar";
case GRETL_TYPE_SERIES: return "series"; case GRETL_TYPE_SERIES: return "series";
case GRETL_TYPE_USERIES: return "series"; case GRETL_TYPE_USERIES: return "series";
case GRETL_TYPE_MATRIX: return "matrix"; case GRETL_TYPE_MATRIX: return "matrix";
case GRETL_TYPE_LIST: return "list"; case GRETL_TYPE_LIST: return "list";
case GRETL_TYPE_BUNDLE: return "bundle"; case GRETL_TYPE_BUNDLE: return "bundle";
case GRETL_TYPE_ARRAY: return "array"; case GRETL_TYPE_ARRAY: return "array";
case GRETL_TYPE_STRING: return "string";
case GRETL_TYPE_SCALAR_REF: return "scalar *"; case GRETL_TYPE_SCALAR_REF: return "scalar *";
case GRETL_TYPE_SERIES_REF: return "series *"; case GRETL_TYPE_SERIES_REF: return "series *";
case GRETL_TYPE_MATRIX_REF: return "matrix *"; case GRETL_TYPE_MATRIX_REF: return "matrix *";
case GRETL_TYPE_BUNDLE_REF: return "bundle *"; case GRETL_TYPE_BUNDLE_REF: return "bundle *";
case GRETL_TYPE_ARRAY_REF: return "array *"; case GRETL_TYPE_ARRAY_REF: return "array *";
case GRETL_TYPE_STRING: return "string";
case GRETL_TYPE_STRING_REF: return "string *"; case GRETL_TYPE_STRING_REF: return "string *";
case GRETL_TYPE_LIST_REF: return "list *";
case GRETL_TYPE_STRINGS: return "strings"; case GRETL_TYPE_STRINGS: return "strings";
case GRETL_TYPE_MATRICES: return "matrices"; case GRETL_TYPE_MATRICES: return "matrices";
case GRETL_TYPE_BUNDLES: return "bundles"; case GRETL_TYPE_BUNDLES: return "bundles";
case GRETL_TYPE_LISTS: return "lists"; case GRETL_TYPE_LISTS: return "lists";
case GRETL_TYPE_ARRAYS: return "arrays"; case GRETL_TYPE_ARRAYS: return "arrays";
case GRETL_TYPE_STRINGS_REF: return "strings *"; case GRETL_TYPE_STRINGS_REF: return "strings *";
case GRETL_TYPE_MATRICES_REF: return "matrices *"; case GRETL_TYPE_MATRICES_REF: return "matrices *";
case GRETL_TYPE_BUNDLES_REF: return "bundles *"; case GRETL_TYPE_BUNDLES_REF: return "bundles *";
skipping to change at line 257 skipping to change at line 258
p = s + 4; p = s + 4;
if (*p == 's') { if (*p == 's') {
p++; p++;
if (*p == '\0') { if (*p == '\0') {
return GRETL_TYPE_LISTS; return GRETL_TYPE_LISTS;
} else if (!strcmp(p, " *") || !strcmp(p, "ref")) { } else if (!strcmp(p, " *") || !strcmp(p, "ref")) {
return GRETL_TYPE_LISTS_REF; return GRETL_TYPE_LISTS_REF;
} }
} else if (*p == '\0') { } else if (*p == '\0') {
return GRETL_TYPE_LIST; return GRETL_TYPE_LIST;
} else if (!strcmp(p, " *") || !strcmp(p, "ref")) {
return GRETL_TYPE_LIST_REF;
} }
} else { } else {
/* aliases */ /* aliases */
if (!strcmp(s, "bool")) return GRETL_TYPE_BOOL; if (!strcmp(s, "bool")) return GRETL_TYPE_BOOL;
if (!strcmp(s, "boolean")) return GRETL_TYPE_BOOL; if (!strcmp(s, "boolean")) return GRETL_TYPE_BOOL;
if (!strcmp(s, "int")) return GRETL_TYPE_INT; if (!strcmp(s, "int")) return GRETL_TYPE_INT;
if (!strcmp(s, "unsigned")) return GRETL_TYPE_UNSIGNED; if (!strcmp(s, "unsigned")) return GRETL_TYPE_UNSIGNED;
if (!strcmp(s, "obs")) return GRETL_TYPE_OBS; if (!strcmp(s, "obs")) return GRETL_TYPE_OBS;
} }
 End of changes. 5 change blocks. 
2 lines changed or deleted 5 lines changed or added

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