input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int GMT_Destroy_Group(void *V_API, void *object, unsigned int n_items) {
int result;
void **v4;
int error;
int object_ID;
int item;
GMTAPI_CTRL *API;
if (V_API) {
if (object) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
v4 = void3_to_void2((void ***)object);
object_ID = api_get_ob... | int GMT_Destroy_Group (void *V_API, void *object, unsigned int n_items) {
int error, object_ID, item;
void **ptr = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (object == NULL) return (false);
API = api_get_api_ptr (V_API);
ptr = void3_to_void2 (ob... | GMT_Destroy_Group | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Destroy_Options(void *V_API, GMT_OPTION **head) {
GMT_OPTION *current;
GMT_OPTION *to_delete;
GMTAPI_CTRL *API;
if (V_API) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
current = *head;
if (*head && current->option < 0) {
GMT_Report(API, 1u,
"WARNING in GMT_Destroy... | int GMT_Destroy_Options (void *V_API, struct GMT_OPTION **head) {
struct GMT_OPTION *current = NULL, *to_delete = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = parse_get_api_ptr (V_API);
current = *head;
if (current && current->option < 0) {
GMT_R... | GMT_Destroy_Options | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Destroy_Session(void *V_API) {
unsigned int i;
GMTAPI_CTRL *API;
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
if (API) {
GMT_Report(API, 6u, "Entering GMT_Destroy_Session\n");
gmtapi_garbage_collection(API, -1);
api_free_sharedlibs(API);
for (i = 0; i < API->n_objects; ++i)
gmtapi... | int GMT_Destroy_Session (void *V_API) {
unsigned int i;
struct GMTAPI_CTRL *API = api_get_api_ptr (V_API);
if (API == NULL) return_error (API, GMT_NOT_A_SESSION);
GMT_Report (API, GMT_MSG_DEBUG, "Entering GMT_Destroy_Session\n");
gmtapi_garbage_collection (API, GMT_NOTSET);
api_free_sharedlibs (API);
... | GMT_Destroy_Session | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Duplicate_Data(void *V_API, unsigned int family, unsigned int mode,
void *data) {
unsigned int modeb;
unsigned int modec;
unsigned int geometry;
unsigned int pmode;
int object_ID;
int item;
void *new_obj;
GMTAPI_CTRL *API;
GMT_CTRL *GMT;
GMT_DATASET *Din_0;
GMT_D... | void *GMT_Duplicate_Data (void *V_API, unsigned int family, unsigned int mode, void *data) {
int object_ID, item;
unsigned int geometry = 0U, pmode = 0U;
void *new_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
struct GMT_CTRL *GMT = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
AP... | GMT_Duplicate_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_OPTION *GMT_Duplicate_Options(void *V_API, GMT_OPTION *head) {
GMT_OPTION *opt;
GMT_OPTION *new_head;
GMT_OPTION *new_opt;
GMTAPI_CTRL *API;
new_head = 0;
if (V_API) {
if (head) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
for (opt = head; opt; opt = opt->next) {
new_opt = G... | struct GMT_OPTION * GMT_Duplicate_Options (void *V_API, struct GMT_OPTION *head) {
struct GMT_OPTION *opt = NULL, *new_opt = NULL, *new_head = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (head == NULL) return_null (V_API, GMT_OPTION_LIST_NULL);
API = pa... | GMT_Duplicate_Options | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *GMT_Duplicate_String(void *API, const char *string) {
return strdup(string);
} | char *GMT_Duplicate_String (void *API, const char* string) {
gmt_M_unused(API);
return strdup (string);
} | GMT_Duplicate_String | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Encode_ID(void *API, char *filename, int object_ID) {
return api_encode_id(API, filename, object_ID);
} | int GMT_Encode_ID (void *API, char *filename, int object_ID) {
return (api_encode_id (API, filename, object_ID));
} | GMT_Encode_ID | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_RESOURCE *GMT_Encode_Options(void *V_API, const char *module_name, int n_in,
GMT_OPTION **head, unsigned int *n) {
size_t v6;
char v7;
char v8;
char v9;
char v10;
unsigned int verbose;
char v12;
bool v13;
_BOOL4 v14;
char v15;
unsigned int v16;
_BOOL4 v17;
... | struct GMT_RESOURCE *GMT_Encode_Options (void *V_API, const char *module_name, int n_in, struct GMT_OPTION **head, unsigned int *n) {
unsigned int n_keys, direction = 0, kind, pos = 0, n_items = 0, ku, n_out = 0, nn[2][2];
unsigne... | GMT_Encode_Options | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_End_IO(void *V_API, unsigned int direction, unsigned int mode) {
unsigned int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
GMTAPI_CTRL *API;
unsigned long v8;
v8 = __readfsqword(0x28u);
item = 0;
S_obj = 0;
API = 0;
if (!V_API) {
gmtapi_report_error(0, 27);
return 27;
}
if (direc... | int GMT_End_IO (void *V_API, unsigned int direction, unsigned int mode) {
unsigned int item = 0;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (!(direction == GMT_IN || direction == GMT_OUT)) return_error (V_API, G... | GMT_End_IO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Expand_Option(void *V_API, GMT_OPTION *opt, const char *arg) {
size_t v4;
bool quote;
size_t in;
size_t out;
size_t s_lengtha;
size_t s_length;
char buffer[8200];
unsigned long v12;
v12 = __readfsqword(0x28u);
memset(buffer, 0, 0x2000);
in = 0;
out = 0;
quote = 0;
if (V_API) {
i... | int GMT_Expand_Option (void *V_API, struct GMT_OPTION *opt, const char *arg) {
char buffer[BUFSIZ] = {""};
size_t in = 0, out = 0;
size_t s_length;
bool quote = false;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (opt == NULL) return_error (V_API, GMT_OPTION_IS_NULL);
if (arg == NULL) re... | GMT_Expand_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_READGRD(float *array, unsigned int *dim, double *limit, double *inc,
char *title, char *remark, const char *name, int ltitle,
int lremark, int lname) {
return gmt_f77_readgrd_(array, dim, limit, inc, title, remark, name, ltitle,
lremark, ln... | int GMT_F77_READGRD (F77_ARG1) { return gmt_f77_readgrd_ (F77_ARG2); } | GMT_F77_READGRD | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_READGRDINFO(unsigned int *dim, double *limit, double *inc,
char *title, char *remark, const char *name, int ltitle,
int lremark, int lname) {
return gmt_f77_readgrdinfo_(dim, limit, inc, title, remark, name, ltitle,
lremark, lna... | int GMT_F77_READGRDINFO (F77_ARG1) { return gmt_f77_readgrdinfo_ (F77_ARG2); } | GMT_F77_READGRDINFO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_READGRDINFO_(unsigned int *dim, double *limit, double *inc,
char *title, char *remark, const char *name,
int ltitle, int lremark, int lname) {
return gmt_f77_readgrdinfo_(dim, limit, inc, title, remark, name, ltitle,
lremark, ... | int GMT_F77_READGRDINFO_ (F77_ARG1) { return gmt_f77_readgrdinfo_ (F77_ARG2); } | GMT_F77_READGRDINFO_ | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_READGRD_(float *array, unsigned int *dim, double *limit,
double *inc, char *title, char *remark, const char *name,
int ltitle, int lremark, int lname) {
return gmt_f77_readgrd_(array, dim, limit, inc, title, remark, name, ltitle,
lremark,... | int GMT_F77_READGRD_ (F77_ARG1) { return gmt_f77_readgrd_ (F77_ARG2); } | GMT_F77_READGRD_ | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_WRITEGRD(float *array, unsigned int *dim, double *limit,
double *inc, const char *title, const char *remark,
const char *name, int ltitle, int lremark, int lname) {
return gmt_f77_writegrd_(array, dim, limit, inc, title, remark, name, ltitle,
... | int GMT_F77_WRITEGRD (F77_ARG1) { return gmt_f77_writegrd_ (F77_ARG2); } | GMT_F77_WRITEGRD | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_F77_WRITEGRD_(float *array, unsigned int *dim, double *limit,
double *inc, const char *title, const char *remark,
const char *name, int ltitle, int lremark, int lname) {
return gmt_f77_writegrd_(array, dim, limit, inc, title, remark, name, ltitle,
... | int GMT_F77_WRITEGRD_ (F77_ARG1) { return gmt_f77_writegrd_ (F77_ARG2); } | GMT_F77_WRITEGRD_ | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_FFT(void *V_API, void *X, int direction, unsigned int mode, void *v_K) {
GMT_FFT_WAVENUMBER *K;
K = api_get_fftwave_ptr((GMT_FFT_WAVENUMBER *)v_K);
if (V_API) {
if (K->dim == 2)
return api_fft_2d((GMTAPI_CTRL *)V_API, (GMT_GRID *)X, direction, mode,
K);
else
re... | int GMT_FFT (void *V_API, void *X, int direction, unsigned int mode, void *v_K) {
struct GMT_FFT_WAVENUMBER *K = api_get_fftwave_ptr (v_K);
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (K->dim == 2) return (api_fft_2d (V_API, X, direction, mode, K));
else return (api_fft_1d (V_API, X, direction,... | GMT_FFT | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_FFT_1D(void *V_API, float *data, uint64_t n, int direction,
unsigned int mode) {
uint64_t v5;
double v6;
int use;
int status;
GMT_CTRL *GMT;
GMT = fft_get_api_ptr((GMTAPI_CTRL *)V_API)->GMT;
if (mode != 1)
__assert_fail("mode == GMT_FFT_COMPLEX",
"/var/tmp/por... | int GMT_FFT_1D (void *V_API, float *data, uint64_t n, int direction, unsigned int mode) {
int status, use;
struct GMTAPI_CTRL *API = fft_get_api_ptr (V_API);
struct GMT_CTRL *GMT = API->GMT;
assert (mode == GMT_FFT_COMPLEX);
use = fft_1d_selection (GMT, n);
GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "1... | GMT_FFT_1D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_FFT_2D(void *V_API, float *data, unsigned int n_columns,
unsigned int n_rows, int direction, unsigned int mode) {
unsigned long v6;
double v7;
int use;
int status;
GMT_CTRL *GMT;
GMT = fft_get_api_ptr((GMTAPI_CTRL *)V_API)->GMT;
if (mode != 1)
__assert_fail("mode == GMT_FFT_COM... | int GMT_FFT_2D (void *V_API, float *data, unsigned int n_columns, unsigned int n_rows, int direction, unsigned int mode) {
int status, use;
struct GMTAPI_CTRL *API = fft_get_api_ptr (V_API);
struct GMT_CTRL *GMT = API->GMT;
assert (mode == GMT_FFT_COMPLEX);
use = fft_2d_selection (GMT, n_columns, n_rows);
... | GMT_FFT_2D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_FFT_Create(void *V_API, void *X, unsigned int dim, unsigned int mode,
void *v_info) {
int v6;
if (V_API) {
if (dim == 1) {
return api_fft_init_1d((GMTAPI_CTRL *)V_API, (GMT_DATASET *)X, mode,
v_info);
} else if (dim == 2) {
return api_... | void *GMT_FFT_Create (void *V_API, void *X, unsigned int dim, unsigned int mode, void *v_info) {
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (dim == 1) return (api_fft_init_1d (V_API, X, mode, v_info));
if (dim == 2) return (api_fft_init_2d (V_API, X, mode, v_info));
GMT_Report (V_API, GMT_MSG_N... | GMT_FFT_Create | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_FFT_Destroy(void *V_API, void *v_info) {
GMT_FFT_WAVENUMBER **K;
GMTAPI_CTRL *API;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
K = api_get_fftwave_addr((GMT_FFT_WAVENUMBER **)v_info);
gmt_free_func(API->GMT, (*K)->info, 0, "GMT_FFT_Destroy");
(*K)->info = 0;
gmt_free_fun... | int GMT_FFT_Destroy (void *V_API, void *v_info) {
struct GMT_FFT_WAVENUMBER **K = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
K = api_get_fftwave_addr (v_info);
gmt_M_free (API->GMT, (*K)->info);
gmt_M_free (API->GMT, (*K));
... | GMT_FFT_Destroy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int GMT_FFT_Option(void *V_API, char option, unsigned int dim,
const char *string) {
unsigned int d1;
char *data_type[2];
char *dim_name[2];
char *trend_type[2];
char *dim_ref[2];
char *linear_type[2];
unsigned long v13;
v13 = __readfsqword(0x28u);
d1 = dim - 1;
... | unsigned int GMT_FFT_Option (void *V_API, char option, unsigned int dim, const char *string) {
unsigned int d1 = dim - 1;
char *data_type[2] = {"table", "grid"}, *dim_name[2] = {"<n_columns>", "<n_columns>/<n_rows>"}, *trend_type[2] = {"line", "plane"};
char *dim_ref[2] = {"dimension", "dimensions"}, *linear_type... | GMT_FFT_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_FFT_Parse(void *V_API, char option, unsigned int dim,
const char *args) {
double v5;
int v6;
unsigned int pos;
unsigned int n_errors;
GMT_FFT_INFO *info;
char *c;
GMTAPI_CTRL *API;
char p[4104];
unsigned long v15;
v15 = __readfsqword(0x28u);
n_errors = 0;
pos = 0;
... | void *GMT_FFT_Parse (void *V_API, char option, unsigned int dim, const char *args) {
unsigned int n_errors = 0, pos = 0;
char p[GMT_BUFSIZ] = {""}, *c = NULL;
struct GMT_FFT_INFO *info = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (args == NULL) return_nu... | GMT_FFT_Parse | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double GMT_FFT_Wavenumber(void *V_API, uint64_t k, unsigned int mode,
void *v_K) {
GMT_FFT_WAVENUMBER *K;
K = fft_get_fftwave_ptr((GMT_FFT_WAVENUMBER *)v_K);
if (K->dim == 2)
return gmt_fft_any_wave(k, mode, K);
else
return fft_kx(k, K);
} | double GMT_FFT_Wavenumber (void *V_API, uint64_t k, unsigned int mode, void *v_K) {
struct GMT_FFT_WAVENUMBER *K = fft_get_fftwave_ptr (v_K);
gmt_M_unused(V_API);
if (K->dim == 2) return (gmt_fft_any_wave (k, mode, K));
else return (fft_kx (k, K));
} | GMT_FFT_Wavenumber | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_OPTION *GMT_Find_Option(void *V_API, char option, GMT_OPTION *head) {
GMT_OPTION *current;
if (V_API) {
if (head) {
for (current = head; current && option != current->option;
current = current->next)
;
return current;
} else {
gmtapi_report_error(V_API, 58);
r... | struct GMT_OPTION * GMT_Find_Option (void *V_API, char option, struct GMT_OPTION *head) {
struct GMT_OPTION *current = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (head == NULL) return_null (V_API, GMT_OPTION_LIST_NULL);
for (current = head; current && current->option != option; curre... | GMT_Find_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Free_Option(void *V_API, GMT_OPTION **opt) {
GMTAPI_CTRL *API;
if (V_API) {
if (*opt) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
free((*opt)->arg);
(*opt)->arg = 0;
gmt_free_func(API->GMT, *opt, 0, "GMT_Free_Option");
*opt = 0;
*opt = 0;
return 0;
} e... | int GMT_Free_Option (void *V_API, struct GMT_OPTION **opt) {
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (*opt == NULL) return_error (V_API, GMT_OPTION_LIST_NULL);
API = parse_get_api_ptr (V_API);
gmt_M_str_free ((*opt)->arg);
gmt_M_free (API->GMT, *opt); ... | GMT_Free_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Common(void *V_API, unsigned int option, double *par) {
double v4;
int ret;
GMTAPI_CTRL *API;
GMT_CTRL *GMT;
ret = -1;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
GMT = API->GMT;
switch (option) {
case ':':
if (GMT->common.colon.toggle[0])... | int GMT_Get_Common (void *V_API, unsigned int option, double par[]) {
int ret = GMT_NOTSET;
struct GMTAPI_CTRL *API = NULL;
struct GMT_CTRL *GMT = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
GMT = API->GMT;
switch (option) {
... | GMT_Get_Common | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double *GMT_Get_Coord(void *V_API, unsigned int family, unsigned int dim,
void *container) {
int v5;
int item;
double *coord;
GMTAPI_CTRL *API;
if (!V_API) {
gmtapi_report_error(0, 27);
return 0;
}
if (!container) {
gmtapi_report_error(V_API, 4);
return 0;
}
API ... | double *GMT_Get_Coord (void *V_API, unsigned int family, unsigned int dim, void *container) {
int object_ID, item;
double *coord = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (container == NULL) return_null (V_API, GMT_ARG_IS_NULL);
API = api_get_ap... | GMT_Get_Coord | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Get_Data(void *API, int object_ID, unsigned int mode, void *data) {
return api_get_data(API, object_ID, mode, data);
} | void *GMT_Get_Data (void *API, int object_ID, unsigned int mode, void *data) {
return api_get_data (API, object_ID, mode, data);
} | GMT_Get_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Default(void *V_API, const char *keyword, char *value) {
char *v4;
int v5;
int error;
GMTAPI_CTRL *API;
error = 0;
if (V_API) {
if (keyword && value) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
if (!strncmp(keyword, "API_VERSION", 0xBu)) {
sprintf(value, "%s", "5.4.4"... | int GMT_Get_Default (void *V_API, const char *keyword, char *value) {
int error = GMT_NOERROR;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (keyword == NULL) return_error (V_API, GMT_NO_PARAMETERS);
if (value == NULL) return_error (V_API, GMT_NO_PARAMETERS);
... | GMT_Get_Default | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Family(void *V_API, unsigned int direction, GMT_OPTION *head) {
int v3;
char v4;
char desired_option;
int family;
unsigned int n_kinds;
unsigned int k;
int flag;
int object_ID;
int item;
GMT_OPTION *current;
GMTAPI_CTRL *API;
unsigned int counter[10];
unsigned long v17;
v17 = __... | int GMT_Get_Family (void *V_API, unsigned int direction, struct GMT_OPTION *head) {
struct GMTAPI_CTRL *API = NULL;
struct GMT_OPTION *current = NULL;
int item, object_ID, family = GMT_NOTSET, flag = (direction == GMT_IN) ? GMTAPI_MODULE_INPUT : GMT_NOTSET;
unsigned int n_kinds = 0, k, counter[GMT_N_FAMILIES... | GMT_Get_Family | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_ID(void *API, unsigned int family, unsigned int direction,
void *resource) {
return api_get_id(API, family, direction, resource);
} | int GMT_Get_ID (void *API, unsigned int family, unsigned int direction, void *resource) {
return (api_get_id (API, family, direction, resource));
} | GMT_Get_ID | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t GMT_Get_Index(void *V_API, GMT_GRID_HEADER *header, int row, int col) {
return header->index_function(header, row, col, 0);
} | uint64_t GMT_Get_Index (void *V_API, struct GMT_GRID_HEADER *header, int row, int col) {
gmt_M_unused(V_API);
return (header->index_function (header, row, col, 0));
} | GMT_Get_Index | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Get_Matrix(void *API, GMT_MATRIX *M) {
void *result;
void *matrix;
if (API) {
switch (M->type) {
case GMT_enum_type_GMT_CHAR:
matrix = M->data.uc1;
goto LABEL_15;
case GMT_enum_type_GMT_UCHAR:
matrix = M->data.uc1;
goto LABEL_15;
case GMT_enum_type_GMT_SHORT:
... | void *GMT_Get_Matrix (void *API, struct GMT_MATRIX *M) {
void *matrix = NULL;
if (API == NULL) return_null (API, GMT_NOT_A_SESSION);
switch (M->type) {
case GMT_DOUBLE: matrix = M->data.f8; break;
case GMT_FLOAT: matrix = M->data.f4; break;
case GMT_ULONG: matrix = M->data.ui8; break;
case GMT_LONG: ma... | GMT_Get_Matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t GMT_Get_Pixel(void *V_API, GMT_GRID_HEADER *header, int row, int col,
int layer) {
return header->index_function(header, row, col, layer);
} | uint64_t GMT_Get_Pixel (void *V_API, struct GMT_GRID_HEADER *header, int row, int col, int layer) {
gmt_M_unused(V_API);
return (header->index_function (header, row, col, layer));
} | GMT_Get_Pixel | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Get_Record(void *V_API, unsigned int mode, int *retval) {
uint64_t v4;
uint64_t v5;
unsigned int v6;
uint64_t v7;
int textrecord;
char *v9;
bool get_next_record;
int status;
unsigned int method;
int64_t n_fields;
uint64_t col;
void *record;
GMT_getfunction api_get_val;
GMTAPI_DATA_... | void *GMT_Get_Record (void *V_API, unsigned int mode, int *retval) {
int status;
unsigned int method;
int64_t *count = NULL, n_fields = 0;
uint64_t col, ij, n_use, col_pos, n_columns = 0;
bool get_next_record;
void *record = NULL;
p_func_uint64_t GMT_2D_to_index = NULL;
GMT_getfunction api_get_val... | GMT_Get_Record | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Row(void *V_API, int row_no, GMT_GRID *G, float *row) {
__m128i v4;
size_t v6;
size_t v7;
uint32_t col;
uint32_t cola;
unsigned int err;
unsigned int erra;
GMTAPI_CTRL *API;
char *fmt;
GMT_GRID_ROWBYROW *R;
GMT_CTRL *GMT;
size_t n_items;
if (!V_API) {
gmtapi_report_error(0, 27... | int GMT_Get_Row (void *V_API, int row_no, struct GMT_GRID *G, float *row) {
unsigned int err;
unsigned int col;
struct GMTAPI_CTRL *API = NULL;
char *fmt = NULL;
struct GMT_GRID_ROWBYROW *R = NULL;
struct GMT_CTRL *GMT = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_a... | GMT_Get_Row | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Value(void *V_API, const char *arg, double *par) {
return GMT_Get_Values(V_API, arg, par, 999);
} | int GMT_Get_Value (void *V_API, const char *arg, double *par) {
return (GMT_Get_Values (V_API, arg, par, 999));
} | GMT_Get_Value | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Get_Values(void *V_API, const char *arg, double *par, int maxpar) {
int v5;
char unit;
unsigned int pos;
int npar;
unsigned int mode;
double value;
GMTAPI_CTRL *API;
GMT_CTRL *GMT;
size_t len;
unsigned int col_type_save[2][2];
char p[4104];
unsigned long v18;
v18 = __readfsqword(0x28u... | int GMT_Get_Values (void *V_API, const char *arg, double par[], int maxpar) {
unsigned int pos = 0, mode, col_type_save[2][2];
int npar = 0;
size_t len;
char p[GMT_BUFSIZ] = {""}, unit;
double value;
struct GMTAPI_CTRL *API = NULL;
struct GMT_CTRL *GMT = NULL;
static const char separators[] = " \... | GMT_Get_Values | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Get_Vector(void *API, GMT_VECTOR *V, unsigned int col) {
void *result;
void *vector;
if (API) {
if (col < V->n_columns) {
switch (V->type[col]) {
case GMT_enum_type_GMT_CHAR:
vector = V->data[col].uc1;
goto LABEL_17;
case GMT_enum_type_GMT_UCHAR:
vector = V... | void *GMT_Get_Vector (void *API, struct GMT_VECTOR *V, unsigned int col) {
void *vector = NULL;
if (API == NULL) return_null (API, GMT_NOT_A_SESSION);
if (col >= V->n_columns) return_null (API, GMT_DIM_TOO_LARGE);
switch (V->type[col]) {
case GMT_DOUBLE: vector = V->data[col].f8; break;
case GMT_FLOAT: vect... | GMT_Get_Vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Init_IO(void *V_API, unsigned int family, unsigned int geometry,
unsigned int direction, unsigned int mode, unsigned int n_args,
void *args) {
int object_ID;
int object_IDa;
GMT_OPTION *head;
GMTAPI_CTRL *API;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API... | int GMT_Init_IO (void *V_API, unsigned int family, unsigned int geometry, unsigned int direction, unsigned int mode, unsigned int n_args, void *args) {
int object_ID;
struct GMT_OPTION *head = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api... | GMT_Init_IO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Init_VirtualFile(void *V_API, unsigned int mode, const char *name) {
int object_ID;
int item;
GMTAPI_DATA_OBJECT *S;
GMTAPI_CTRL *API;
if (V_API) {
if (name) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
object_ID = api_decode_id(name);
if (object_ID == -1) {
return 52;... | int GMT_Init_VirtualFile (void *V_API, unsigned int mode, const char *name) {
int object_ID = GMT_NOTSET, item;
struct GMTAPI_DATA_OBJECT *S = NULL;
struct GMTAPI_CTRL *API = NULL;
gmt_M_unused (mode);
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (name == NULL) return_error (V_API, GMT_PTR_... | GMT_Init_VirtualFile | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_OPTION *GMT_Make_Option(void *V_API, char option, const char *arg) {
GMT_OPTION *new_opt;
GMTAPI_CTRL *API;
if (V_API) {
API = parse_get_api_ptr((GMTAPI_CTRL *)V_API);
new_opt = (GMT_OPTION *)gmt_memory_func(API->GMT, 0, 1u, 0x20u, 0,
"GMT_Make_Option");
... | struct GMT_OPTION *GMT_Make_Option (void *V_API, char option, const char *arg) {
struct GMT_OPTION *new_opt = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
API = parse_get_api_ptr (V_API);
new_opt = gmt_M_memory (API->GMT, NULL, 1, struct GMT_OPTION);
ne... | GMT_Make_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Message(void *V_API, unsigned int mode, const char *format, ...) {
long v3;
long v4;
long v5;
const char *stamp;
GMTAPI_CTRL *API;
size_t source_info_len;
va_list args;
char message[16384];
unsigned long v13;
long v14;
long v15;
long v16;
va_start(args, format);
v3 = va_arg(args, _Q... | int GMT_Message (void *V_API, unsigned int mode, const char *format, ...) {
size_t source_info_len;
char message[4*GMT_BUFSIZ] = {""}, *stamp = NULL;
struct GMTAPI_CTRL *API = NULL;
va_list args;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (format == NULL) return GMT_PTR_IS_NULL;
API... | GMT_Message | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Open_VirtualFile(void *V_API, unsigned int family,
unsigned int geometry, unsigned int direction,
void *data, char *name) {
int object_ID;
int item_s;
unsigned int item;
GMTAPI_DATA_OBJECT *S_obj;
GMTAPI_CTRL *API;
void *object;
object_ID = -1;
... | int GMT_Open_VirtualFile (void *V_API, unsigned int family, unsigned int geometry, unsigned int direction, void *data, char *name) {
int object_ID = GMT_NOTSET, item_s = 0;
unsigned int item;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GM... | GMT_Open_VirtualFile | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Option(void *V_API, const char *options) {
char v3;
unsigned int v4;
unsigned int v5;
unsigned int v6;
unsigned int v7;
unsigned int v8;
unsigned int v9;
unsigned int v10;
unsigned int v11;
char v12;
unsigned int v13;
char v14;
unsigned int v15;
unsigned int v16;
unsigned int v17;
... | int GMT_Option (void *V_API, const char *options) {
unsigned int pos = 0, k = 0, n = 0;
char p[GMT_LEN64] = {""}, arg[GMT_LEN64] = {""};
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (options == NULL) return_error (V_API, GMT_NO_PARAMETERS);
API = api_get_api_pt... | GMT_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Parse_Common(void *V_API, const char *given_options,
GMT_OPTION *options) {
GMT_CTRL *GMT;
unsigned int i;
unsigned int ia;
unsigned int n_errors;
long s_length;
GMT_OPTION *opt;
GMT_OPTION *opta;
GMTAPI_CTRL *API;
char list[2];
char critical_opt_order[8];
unsigned lon... | int GMT_Parse_Common (void *V_API, const char *given_options, struct GMT_OPTION *options) {
struct GMT_OPTION *opt = NULL;
char list[2] = {0, 0}, critical_opt_order[] = GMT_CRITICAL_OPT_ORDER;
unsigned int i, n_errors;
struct GMTAPI_CTRL *API = NULL;
const unsigned int s_length = (unsigned int)strlen(criti... | GMT_Parse_Common | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Put_Data(void *API, int object_ID, unsigned int mode, void *data) {
return api_put_data(API, object_ID, mode, data);
} | int GMT_Put_Data (void *API, int object_ID, unsigned int mode, void *data) {
return api_put_data (API, object_ID, mode, data);
} | GMT_Put_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Put_Matrix(void *API, GMT_MATRIX *M, unsigned int type, void *matrix) {
int result;
if (API) {
switch (type) {
case 0u:
M->type = GMT_enum_type_GMT_CHAR;
M->data.uc1 = (uint8_t *)matrix;
goto LABEL_15;
case 1u:
M->type = GMT_enum_type_GMT_UCHAR;
M->data.uc1 = (uint... | int GMT_Put_Matrix (void *API, struct GMT_MATRIX *M, unsigned int type, void *matrix) {
if (API == NULL) return_error (API, GMT_NOT_A_SESSION);
switch (type) {
case GMT_DOUBLE: M->type = GMT_DOUBLE; M->data.f8 = matrix; break;
case GMT_FLOAT: M->type = GMT_FLOAT; M->data.f4 = matrix; break;
case GMT_ULONG... | GMT_Put_Matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Put_Record(void *V_API, unsigned int mode, void *record) {
unsigned int v4;
char *v5;
char *v6;
GMT_DATATABLE *v7;
char *v8;
char **v9;
unsigned int v10;
void **v11;
char *v12;
GMT_DATASEGMENT *v13;
char *v14;
char **header;
unsigned int v16;
GMT_TEXTSEGMENT *v17;
void **v18;
cha... | int GMT_Put_Record (void *V_API, unsigned int mode, void *record) {
int error = 0;
unsigned int method;
int64_t *count = NULL;
uint64_t col, ij;
char *s = NULL;
double *d = NULL, value;
p_func_uint64_t GMT_2D_to_index = NULL;
GMT_putfunction api_put_val = NULL;
struct GMTAPI_DATA_OBJECT *S_obj = NUL... | GMT_Put_Record | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Put_Row(void *V_API, int rec_no, GMT_GRID *G, float *row) {
int v5;
GMT_GRID_HEADER *header;
uint32_t col;
uint32_t cola;
unsigned int err;
unsigned int erra;
GMTAPI_CTRL *API;
char *fmt;
GMT_GRID_ROWBYROW *R;
GMT_CTRL *GMT;
size_t n_items;
if (!V_API) {
gmtapi_report_error(0, 27);
... | int GMT_Put_Row (void *V_API, int rec_no, struct GMT_GRID *G, float *row) {
unsigned int err;
unsigned int col;
size_t n_items;
struct GMTAPI_CTRL *API = NULL;
char *fmt = NULL;
struct GMT_GRID_ROWBYROW *R = NULL;
struct GMT_CTRL *GMT = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION)... | GMT_Put_Row | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Put_Vector(void *API, GMT_VECTOR *V, unsigned int col,
unsigned int type, void *vector) {
int result;
if (API) {
if (col < V->n_columns) {
switch (type) {
case 0u:
V->type[col] = GMT_enum_type_GMT_CHAR;
V->data[col].uc1 = (uint8_t *)vector;
goto LA... | int GMT_Put_Vector (void *API, struct GMT_VECTOR *V, unsigned int col, unsigned int type, void *vector) {
if (API == NULL) return_error (API, GMT_NOT_A_SESSION);
if (col >= V->n_columns) return_error (API, GMT_DIM_TOO_LARGE);
switch (type) {
case GMT_DOUBLE: V->type[col] = GMT_DOUBLE; V->data[col].f8 = vector;... | GMT_Put_Vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Read_Data(void *V_API, unsigned int family, unsigned int method,
unsigned int geometry, unsigned int mode, double *wesn,
const char *infile, void *data) {
bool v9;
char *v10;
unsigned int modea;
unsigned int geometrya;
unsigned int methoda;
unsigned int fami... | void *GMT_Read_Data (void *V_API, unsigned int family, unsigned int method, unsigned int geometry, unsigned int mode, double wesn[], const char *infile, void *data) {
int in_ID = GMT_NOTSET, item = GMT_NOTSET;
unsigned int module_input = 0;
bool just_get_data, reset;
void *new_obj = NULL;
char *input = ... | GMT_Read_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Read_Group(void *V_API, unsigned int family, unsigned int method,
unsigned int geometry, unsigned int mode, double *wesn,
void *sources, unsigned int *n_items, void *data) {
void **v10;
void **v11;
unsigned int n_files;
unsigned int k;
char **file;
char *p... | void *GMT_Read_Group (void *V_API, unsigned int family, unsigned int method, unsigned int geometry, unsigned int mode, double wesn[], void *sources, unsigned int *n_items, void *data) {
unsigned int n_files, k;
char **file = NULL, *pattern = NULL;
struct GMTAPI_CTRL *API = NULL;
void **object = NULL;
if (... | GMT_Read_Group | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Read_VirtualFile(void *V_API, const char *string) {
int object_ID;
void *object;
if (V_API) {
if (string) {
object_ID = api_decode_id(string);
if (object_ID == -1 ||
(object = api_retrieve_data(V_API, object_ID)) == 0) {
gmtapi_report_error(V_API, 52);
return 0... | void *GMT_Read_VirtualFile (void *V_API, const char *string) {
int object_ID;
void *object = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
if (string == NULL) return_null (V_API, GMT_PTR_IS_NULL);
if ((object_ID = api_decode_id (string)) == GMT_NOTSET)
return_null (V_API, GMT_OBJECT_NOT_FOUN... | GMT_Read_VirtualFile | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Register_IO(void *V_API, unsigned int family, unsigned int method,
unsigned int geometry, unsigned int direction, double *wesn,
void *resource) {
unsigned int v8;
unsigned int v9;
unsigned int v10;
unsigned int methodb;
GMT_enum_family familya;
char not_url;
... | int GMT_Register_IO (void *V_API, unsigned int family, unsigned int method, unsigned int geometry, unsigned int direction, double wesn[], void *resource) {
int item, object_ID;
unsigned int module_input, mode = method & GMT_IO_RESET;
unsigned int first ... | GMT_Register_IO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Report(void *V_API, unsigned int level, const char *format, ...) {
long v3;
long v4;
long v5;
unsigned int v7;
unsigned int verbose;
const char *module_name;
struct _IO_FILE *v10;
unsigned int g_level;
size_t source_info_len;
size_t source_info_lena;
GMTAPI_CTRL *API;
GMT_CTRL *GMT;
co... | int GMT_Report (void *V_API, unsigned int level, const char *format, ...) {
size_t source_info_len = 0;
unsigned int g_level;
char message[GMT_BUFSIZ] = {""};
struct GMTAPI_CTRL *API = NULL;
struct GMT_CTRL *GMT = NULL;
va_list args;
if (V_API == NULL) return GMT_NOERROR;
API = api_get_api_ptr (V_API);
... | GMT_Report | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *GMT_Retrieve_Data(void *API, int object_ID) {
return api_retrieve_data(API, object_ID);
} | void *GMT_Retrieve_Data (void *API, int object_ID) {
return api_retrieve_data (API, object_ID);
} | GMT_Retrieve_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Set_Columns(void *V_API, unsigned int n_cols, unsigned int mode) {
int error;
GMTAPI_CTRL *API;
unsigned long n_in;
error = 0;
if (!V_API) {
gmtapi_report_error(0, 27);
return 27;
}
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
n_in = gmt_get_cols(API->GMT, 0);
if (!n... | int GMT_Set_Columns (void *V_API, unsigned int n_cols, unsigned int mode) {
int error = 0;
uint64_t n_in;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
if ((n_in = gmt_get_cols (API->GMT, GMT_IN)) == 0) {
... | GMT_Set_Columns | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Set_Comment(void *V_API, unsigned int family, unsigned int mode,
void *arg, void *container) {
int error;
GMTAPI_CTRL *API;
error = 0;
if (V_API) {
if (container && arg) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
switch (family) {
case 0u:
api_datas... | int GMT_Set_Comment (void *V_API, unsigned int family, unsigned int mode, void *arg, void *container) {
int error = GMT_OK;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (container == NULL) return_error (V_API, GMT_ARG_IS_NULL);
if (arg == NULL) return_error (V_... | GMT_Set_Comment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Set_Default(void *V_API, const char *keyword, const char *txt_val) {
int v4;
int error;
signed int pad;
GMTAPI_CTRL *API;
char *value;
error = 0;
if (V_API) {
if (keyword) {
if (txt_val) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
value = strdup(txt_val);
if (... | int GMT_Set_Default (void *V_API, const char *keyword, const char *txt_val) {
unsigned int error = GMT_NOERROR;
struct GMTAPI_CTRL *API = NULL;
char *value = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (keyword == NULL) return_error (V_API, GMT_NOT_A_VALID_PARAMETER);
if (txt_val == N... | GMT_Set_Default | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Set_Geometry(void *V_API, unsigned int direction,
unsigned int geometry) {
GMTAPI_DATA_OBJECT *S_obj;
GMTAPI_CTRL *API;
GMT_DATASET *D_obj;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
if (!API->io_enabled[1]) {
gmtapi_report_error(API, 2);
return 2... | int GMT_Set_Geometry (void *V_API, unsigned int direction, unsigned int geometry) {
unsigned int method;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
if (!API->io_enabled[GMT_OUT]) return_er... | GMT_Set_Geometry | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Set_Index(void *V_API, GMT_GRID_HEADER *header, char *code) {
GMT_enum_family family;
unsigned int mode;
GMTAPI_CTRL *API;
unsigned long v8;
v8 = __readfsqword(0x28u);
API = 0;
if (!V_API) {
gmtapi_report_error(0, 27);
return 27;
}
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->e... | int GMT_Set_Index (void *V_API, struct GMT_GRID_HEADER *header, char *code) {
struct GMTAPI_CTRL *API = NULL;
enum GMT_enum_family family;
unsigned int mode;
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
mode = api_decode_layout (API, code, &... | GMT_Set_Index | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Status_IO(void *V_API, unsigned int mode) {
GMT_IO *IO;
if (V_API) {
IO = &api_get_api_ptr((GMTAPI_CTRL *)V_API)->GMT->current.io;
if (mode)
return mode & IO->status;
else
return !IO->status || IO->status == 16;
} else {
gmtapi_report_error(0, 27);
return -1;
}
} | int GMT_Status_IO (void *V_API, unsigned int mode) {
struct GMTAPI_CTRL *API = NULL;
struct GMT_IO *IO = NULL;
if (V_API == NULL) return_value (V_API, GMT_NOT_A_SESSION, GMT_NOTSET);
API = api_get_api_ptr (V_API);
IO = &(API->GMT->current.io);
if (mode == GMT_IO_DATA_RECORD) return (IO->status... | GMT_Status_IO | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Update_Option(void *V_API, GMT_OPTION *opt, const char *arg) {
if (V_API) {
if (opt) {
if (arg) {
free(opt->arg);
opt->arg = 0;
opt->arg = strdup(arg);
return 0;
} else {
gmtapi_report_error(V_API, 4);
return 4;
}
} else {
gmtapi_... | int GMT_Update_Option (void *V_API, struct GMT_OPTION *opt, const char *arg) {
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (opt == NULL) return_error (V_API, GMT_OPTION_IS_NULL);
if (arg == NULL) return_error (V_API, GMT_ARG_IS_NULL);
gmt_M_str_free (opt->arg);
opt->arg = strdup (arg);
re... | GMT_Update_Option | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_Write_Data(void *V_API, unsigned int family, unsigned int method,
unsigned int geometry, unsigned int mode, double *wesn,
const char *outfile, void *data) {
GMTAPI_DATA_OBJECT *v9;
int out_ID;
int in_item;
unsigned int n_reg;
int in_ID;
int out_item;
char *out... | int GMT_Write_Data (void *V_API, unsigned int family, unsigned int method, unsigned int geometry, unsigned int mode, double wesn[], const char *outfile, void *data) {
unsigned int n_reg;
int out_ID;
char *output = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_error (V_API, GMT_NOT_A... | GMT_Write_Data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_blind_change_struct(void *V_API, void *ptr, void *what, char *type,
size_t off) {
if (!strcmp(type, "Int32")) {
*(_DWORD *)((char *)ptr + off) = *(_DWORD *)what;
} else if (!strcmp(type, "UInt32")) {
*(_DWORD *)((char *)ptr + off) = *(_DWORD *)what;
} else if (!strcmp(t... | int GMT_blind_change_struct(void *V_API, void *ptr, void *what, char *type, size_t off) {
if (!strcmp(type, "Int32"))
*(int *)((char *)ptr + off) = *(int *)what;
else if (!strcmp(type, "UInt32"))
*(unsigned int *)((char *)ptr + off) = *(unsigned int *)what;
else if (!strcmp(type, "Int64"))
*(int64_t *... | GMT_blind_change_struct | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_blockmean(void *V_API, int mode, void *args) {
bool v4;
unsigned int v5;
int v6;
unsigned int verbose;
unsigned int v8;
char *v9;
bool v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
long v17;
double v18;
uint64_t v19;
long v20;
double v21;
uint... | int GMT_blockmean (void *V_API, int mode, void *args) {
uint64_t node, n_cells_filled, n_read, n_lost, n_pitched, w_col, *np = NULL;
unsigned int row, col, n_input;
int error;
bool use_xy, use_weight, duplicate_col;
double weight, weighted_z, iw, half_dx, wesn[4], out[7], *in = NULL;
char format[GMT_LEN256] = {... | GMT_blockmean | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_blockmedian(void *V_API, int mode, void *args) {
bool v4;
unsigned int v5;
unsigned int verbose;
uint64_t v7;
uint64_t v8;
double v9;
uint64_t v10;
char *v11;
uint64_t v12;
double v13;
double v14;
bool do_extra;
bool duplicate_col;
unsigned int row;
unsigned int col;
unsigned int... | int GMT_blockmedian (void *V_API, int mode, void *args) {
uint64_t n_lost, node, first_in_cell, first_in_new_cell;
uint64_t n_read, nz, n_pitched, n_cells_filled, w_col, i_col = 0, sid_col;
size_t n_alloc = 0, nz_alloc = 0;
bool do_extra = false, duplicate_col;
int error = 0;
unsigned int row, col, emode = 0, ... | GMT_blockmedian | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_blockmode(void *V_API, int mode, void *args) {
bool v4;
unsigned int verbose;
unsigned int v6;
uint64_t v7;
uint64_t v8;
double v9;
uint64_t v10;
char *v11;
double v12;
double v13;
double v14;
int v15;
uint64_t v16;
uint64_t v17;
double v18;
double v19;
double v20;
bool do_ex... | int GMT_blockmode (void *V_API, int mode, void *args) {
bool mode_xy, do_extra = false, is_integer, duplicate_col;
int way, error = 0;
unsigned int row, col, emode = 0, n_input, n_output;
uint64_t node, first_in_cell, first_in_new_cell, n_lost, n_read;
uint64_t n_cells_filled, n_in_cell, nz, n_pitched, src_id =... | GMT_blockmode | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void GMT_draw_z_scale(GMT_CTRL *GMT, PSL_CTRL *PSL, double x0, double y0,
double length, double zscale, int gave_xy, char *units) {
long v8;
double v9;
unsigned int v10;
double y0a;
double x0a;
double dy;
double off;
double xx[4];
double yy[4];
char txt[264];
unsigned long v2... | GMT_LOCAL void GMT_draw_z_scale (struct GMT_CTRL *GMT, struct PSL_CTRL *PSL, double x0, double y0, double length, double zscale, int gave_xy, char *units) {
int form;
double dy, off, xx[4], yy[4];
char txt[GMT_LEN256] = {""};
gmt_setpen (GMT, &GMT->current.setting.map_tick_pen[GMT_PRIMARY]);
if (!gave_xy) {
... | GMT_draw_z_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_filter1d(void *V_API, int mode, void *args) {
int result;
uint64_t n_rows;
int error;
int errora;
unsigned int save_col;
GMT_OPTION *options;
GMT_CTRL *GMT_cpy;
uint64_t col;
uint64_t tbl;
uint64_t row;
uint64_t seg;
double last_time;
GMT_DATASET *D;
FILTER1D_CTRL *Ctrl;
GMT_CTRL *... | int GMT_filter1d (void *V_API, int mode, void *args) {
uint64_t col, tbl, row, seg;
int error;
unsigned int save_col;
double last_time, new_time, in;
struct GMT_OPTION *options = NULL;
struct FILTER1D_INFO F;
struct GMT_DATASET *D = NULL;
struct FILTER1D_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT... | GMT_filter1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_fitcircle(void *V_API, int mode, void *args) {
unsigned int v4;
double v5;
double v6;
unsigned int v7;
unsigned int v8;
unsigned int v9;
unsigned int v10;
unsigned int v11;
unsigned int v12;
double v13;
unsigned int v14;
unsigned int v15;
unsigned int v16;
unsigned int v17;
unsigne... | int GMT_fitcircle (void *V_API, int mode, void *args) {
bool greenwich = false;
unsigned int imin, imax, nrots, j, k, n, np, o_mode, n_cols = 0, col = 0;
int error = 0;
uint64_t i, n_data;
size_t n_alloc;
char format[GMT_LEN256] = {""}, record[GMT_LEN256] = {""}, item[GMT_LEN256] = {""};
char *type[2] = {"great... | GMT_fitcircle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_get_V(char arg) { return gmt_get_V(arg); } | int GMT_get_V (char arg) {
return gmt_get_V (arg);
} | GMT_get_V | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmt2kml(void *V_API, int mode, void *args) {
bool v4;
char *format_float_out;
unsigned int v6;
bool v7;
int v8;
int v9;
int v10;
int v11;
int v12;
int v13;
double v14;
int v15;
char *v16;
int v17;
int v18;
char **v19;
int v20;
char *v21;
int v22;
bool v23;
int v24;
bo... | int GMT_gmt2kml (void *V_API, int mode, void *args) {
bool first = true, get_z = false, use_folder = false, do_description, no_dateline = false, act, no_text;
unsigned int n_coord = 0, t1_col, t2_col, pnt_nr = 0, tbl, col, pos, ix, iy;
uint64_t row, seg, n_tables, n_segments, n_rows;
size_t L = 0;
int set_nr = 0,... | GMT_gmt2kml | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmt2rgb(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 4u) {
GMT_Report(API, 1u, "Shared GMT module not found: gmt2rgb\n");
return 38;
} else {
GMT_Report(API, 3u,
... | int GMT_gmt2rgb (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 4)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module gmt2rgb is deprecated; use grd2rgb.\n");
return (GMT_Call_Module (API, "grd2rgb", mode, args));
}
GMT_Report (API,... | GMT_gmt2rgb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtconnect(void *V_API, int mode, void *args) {
char *v4;
char *v5;
unsigned int v6;
GMT_TEXTTABLE *v7;
long v8;
GMT_TEXTSEGMENT *v9;
GMT_TEXTSEGMENT *v10;
GMT_TEXTSEGMENT *v11;
GMT_TEXTTABLE *v12;
char *v13;
double v14;
uint64_t v15;
GMT_DATASEGMENT **v16;
GMT_DATASEGMENT *v17;
ch... | int GMT_gmtconnect (void *V_API, int mode, void *args) {
int error = 0;
bool save_type = false, first, wrap_up = false, done, closed, *skip = NULL;
unsigned int nearest_end[2][2], j, n_qfiles = 0, end_order;
unsigned int io_mode = GMT_WRITE_SET, q_mode = GMT_WRITE_SET, d_mode = 0, ii, end;
size_t n_seg_alloc[2]... | GMT_gmtconnect | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtconvert(void *V_API, int mode, void *args) {
uint64_t n_columns;
uint64_t v5;
GMT_TEXT_SELECTION *select;
unsigned int v7;
uint64_t n_tables;
uint64_t v9;
bool v10;
uint64_t v11;
uint64_t v12;
char *v13;
bool match;
bool prevent_seg_headers;
int error;
int errora;
GMT_CTRL *GMT_... | int GMT_gmtconvert (void *V_API, int mode, void *args) {
bool match = false, prevent_seg_headers = false;
int error = 0;
uint64_t out_col, col, n_cols_in, n_cols_out, tbl;
uint64_t n_horizontal_tbls, n_vertical_tbls, tbl_ver, tbl_hor, use_tbl;
uint64_t last_row, n_rows, row, seg, n_out_seg = 0, out_seg = 0;
doub... | GMT_gmtconvert | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtdefaults(void *V_API, int mode, void *args) {
int error;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMTDEFAULTS_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigned long v11;
v11 = __readfsqword(0x28u);
Ctrl = 0;
GMT = 0;
GMT_cpy = 0;
options = 0;
API = gmt_get_api_ptr((GMTAPI_CTRL *... | int GMT_gmtdefaults (void *V_API, int mode, void *args) {
int error;
struct GMTDEFAULTS_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_SESSION);
if (mode == GMT_MODULE_... | GMT_gmtdefaults | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtdp(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 4u) {
GMT_Report(API, 1u, "Shared GMT module not found: gmtdp\n");
return 38;
} else {
GMT_Report(API, 3u,
"W... | int GMT_gmtdp (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 4)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module gmtdp is deprecated; use gmtsimplify.\n");
return (GMT_Call_Module (API, "gmtsimplify", mode, args));
}
GMT_Report (... | GMT_gmtdp | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtget(void *V_API, int mode, void *args) {
int error;
int errora;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMTGET_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigned long v12;
v12 = __readfsqword(0x28u);
Ctrl = 0;
GMT = 0;
GMT_cpy = 0;
options = 0;
API = gmt_get_api_ptr((GMTAPI_CT... | int GMT_gmtget (void *V_API, int mode, void *args) {
int error = GMT_NOERROR;
struct GMTGET_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_SESSION);
if (mode == GMT_MOD... | GMT_gmtget | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtinfo(void *V_API, int mode, void *args) {
int v4;
uint64_t n_tables;
double v6;
signed long n_segments;
double v8;
uint64_t v9;
signed long n_records;
double v11;
uint64_t v12;
double v13;
double v14;
uint64_t n_rows;
double v16;
double v17;
uint64_t v18;
double v19;
bool v2... | int GMT_gmtinfo (void *V_API, int mode, void *args) {
bool got_stuff = false, first_data_record, give_r_string = false;
bool brackets = false, work_on_abs_value, do_report, done, full_range = false;
int i, j, error = 0, col_type[GMT_MAX_COLUMNS];
unsigned int fixed_phase[2] = {1, 1}, min_cols, o_mode, save_range;
... | GMT_gmtinfo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtlogo(void *V_API, int mode, void *args) {
int v4;
int v5;
int v6;
int error;
unsigned int fmode;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
PSL_CTRL *PSL;
GMT_MATRIX *M;
GMTLOGO_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
double scale;
double dim[2];
uint64_t par[4];
double wesn... | int GMT_gmtlogo (void *V_API, int mode, void *args) {
int error, fmode;
uint64_t par[4] = {0, 0, 0, 0};
double wesn[4] = {0.0, 0.0, 0.0, 0.0};
double scale, dim[2];
char cmd[GMT_LEN256] = {""}, pars[GMT_LEN128] = {""}, file[GMT_BUFSIZ] = {""};
struct GMT_FONT F;
struct GMT_MATRIX *M = NULL;
struct GMTLO... | GMT_gmtlogo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtmath(void *V_API, int mode, void *args) {
int v4;
bool v5;
unsigned int v6;
uint64_t v7;
double v8;
double d_NaN;
double max;
double v11;
double v12;
GMTMATH_STACK *v13;
double v14;
unsigned int v15;
unsigned int v16;
GMTMATH_STORED *v17;
GMTMATH_STORED *v18;
GMTMATH_STORED *v... | int GMT_gmtmath (void *V_API, int mode, void *args) {
int i, k, op = 0, status = 0;
unsigned int consumed_operands[GMTMATH_N_OPERATORS], produced_operands[GMTMATH_N_OPERATORS], new_stack = INT_MAX;
unsigned int j, nstack = 0, n_stored = 0, kk;
bool error = false, set_equidistant_t = false, got_t_from_file = false, ... | GMT_gmtmath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtread(void *V_API, int mode, void *args) {
int error;
int errora;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMTREAD_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigned long v12;
v12 = __readfsqword(0x28u);
Ctrl = 0;
GMT = 0;
GMT_cpy = 0;
options = 0;
API = gmt_get_api_ptr((GMTAPI_... | int GMT_gmtread (void *V_API, int mode, void *args) {
int error = 0;
struct GMTREAD_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_SESSION);
if (mode == GMT_MODULE_PURPO... | GMT_gmtread | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtregress(void *V_API, int mode, void *args) {
unsigned int v4;
double *v5;
bool v6;
double v7;
uint64_t n_rows;
double v9;
uint64_t v10;
double v11;
uint64_t v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
double v20;
bool outlier;
... | int GMT_gmtregress (void *V_API, int mode, void *args) {
uint64_t k, seg, tbl, col = 0, row, n_try = 0, n_t, n_alloc = 0, n_columns = GMTREGRESS_N_FARGS;
int error = 0;
unsigned geometry = GMT_IS_NONE;
double *x = NULL, *U = NULL, *V = NULL, *W = NULL, *e = NULL, *w[3] = {NULL, NULL, NULL};
double t_scale = 0... | GMT_gmtregress | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtselect(void *V_API, int mode, void *args) {
int v4;
char v5;
const char *v6;
const char *v7;
double v8;
double v9;
double dist;
bool v11;
unsigned int v12;
uint64_t cols;
bool v14;
unsigned int v15;
double v16;
double v17;
const char *v18;
const char *v19;
int v20;
int v21... | int GMT_gmtselect (void *V_API, int mode, void *args) {
int err;
unsigned int base = 3, np[2] = {0, 0}, r_mode;
unsigned int side, col, id;
int n_fields, ind, wd[2] = {0, 0}, n_minimum = 2, bin, last_bin = INT_MAX, error = 0;
bool inside = false, need_header = false, shuffle = false, just_copy_record = false, pt_... | GMT_gmtselect | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtset(void *V_API, int mode, void *args) {
int error;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMTSET_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigned long v11;
v11 = __readfsqword(0x28u);
Ctrl = 0;
GMT = 0;
GMT_cpy = 0;
options = 0;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
... | int GMT_gmtset (void *V_API, int mode, void *args) {
int error = 0;
struct GMTSET_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_SESSION);
if (mode == GMT_MODULE_PURPOS... | GMT_gmtset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtsimplify(void *V_API, int mode, void *args) {
bool v4;
GMT_DATATABLE *v5;
GMT_DATATABLE *v7;
bool geo;
bool poly;
int error;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t tbl;
uint64_t col;
uint64_t row;
uint64_t seg_in;
uint64_t seg_out;
uint64_t ns_in;
uint64_t ns_out;
ui... | int GMT_gmtsimplify (void *V_API, int mode, void *args) {
int error;
bool geo, poly, skip;
uint64_t tbl, col, row, seg_in, seg_out, np_out, ns_in = 0, ns_out = 0, n_in_tbl, *index = NULL;
uint64_t dim_out[4] = {1, 0, 0, 0}, n_saved;
double tolerance;
struct GMT_DATASET *D[2] = {NULL, NULL};
struct GMT_DATASE... | GMT_gmtsimplify | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtspatial(void *V_API, int mode, void *args) {
int inited;
__int128 neighbor;
_BOOL4 v6;
uint64_t v7;
int64_t v8;
uint64_t v9;
int64_t v10;
uint64_t v11;
unsigned int verbose;
double v13;
_BOOL4 v14;
double *v15;
_QWORD *v16;
double *v17;
_QWORD *v18;
_QWORD *v19;
double *v20;... | int GMT_gmtspatial (void *V_API, int mode, void *args) {
int error = 0;
unsigned int geometry = GMT_IS_POLY, internal = 0, external = 0;
bool mseg = false;
static char *kind[2] = {"CCW", "CW"};
double out[GMT_MAX_COLUMNS];
struct GMT_DATASET *D = NULL;
struct GMT_DATASEGMENT *S = NULL;
struct GMTSPATIAL_CTRL... | GMT_gmtspatial | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtstitch(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 4u) {
GMT_Report(API, 1u, "Shared GMT module not found: gmtstitch\n");
return 38;
} else {
GMT_Report(API, 3u,
... | int GMT_gmtstitch (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 4)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module gmtstitch is deprecated; use gmtconnect.\n");
return (GMT_Call_Module (API, "gmtconnect", mode, args));
}
GMT_Re... | GMT_gmtstitch | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtvector(void *V_API, int mode, void *args) {
int v4;
int v5;
int v6;
unsigned int v7;
int v8;
gmtvector_method v9;
int v10;
bool v11;
char *v12;
bool single;
bool convert;
unsigned int tbl;
unsigned int k;
unsigned int ka;
unsigned int kb;
unsigned int kc;
unsigned int kd;
... | int GMT_gmtvector (void *V_API, int mode, void *args) {
unsigned int tbl, error = 0, k, n, n_in, n_components, n_out, add_cols = 0;
bool single = false, convert;
uint64_t row, seg;
double out[3], vector_1[3], vector_2[3], vector_3[3], R[3][3], E[3];
struct GMT_DATASET *Din = NULL, *Dout = NULL;
struct GMT_DAT... | GMT_gmtvector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtwhich(void *V_API, int mode, void *args) {
int v4;
char *v5;
unsigned int first;
int error;
int fmode;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMT_OPTION *opt;
char *Yes;
char *No;
char *p;
GMTWHICH_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
char path[4096];
char cwd[4104];
... | int GMT_gmtwhich (void *V_API, int mode, void *args) {
int error = 0, fmode;
unsigned int first = 0;
char path[GMT_BUFSIZ] = {""}, *Yes = "Y", *No = "N", cwd[GMT_BUFSIZ] = {""}, *p = NULL;
struct GMTWHICH_CTRL *Ctrl = NULL;
struct GMT_OPTION *opt = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct ... | GMT_gmtwhich | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_gmtwrite(void *V_API, int mode, void *args) {
int error;
int errora;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMTWRITE_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigned long v12;
v12 = __readfsqword(0x28u);
Ctrl = 0;
GMT = 0;
GMT_cpy = 0;
options = 0;
API = gmt_get_api_ptr((GMTAP... | int GMT_gmtwrite (void *V_API, int mode, void *args) {
int error = 0;
struct GMTWRITE_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_SESSION);
if (mode == GMT_MODULE_PUR... | GMT_gmtwrite | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grd2cpt(void *V_API, int mode, void *args) {
char *v4;
int n_levels;
GMT_GRID **v6;
char **v7;
uint64_t v8;
double v9;
double v10;
unsigned int verbose;
double v12;
int v13;
unsigned int levels;
int kind;
double v16;
double v17;
double v18;
double v19;
double v20;
unsigned in... | int GMT_grd2cpt (void *V_API, int mode, void *args) {
uint64_t ij, k, ngrd = 0, nxyg, nfound, ngood;
unsigned int row, col, j, cpt_flags = 0;
int signed_levels, error = 0;
size_t n_alloc = GMT_TINY_CHUNK;
char format[GMT_BUFSIZ] = {""}, *l = NULL, **grdfile = NULL;
double *z = NULL, wesn[4], mean, sd;
struct ... | GMT_grd2cpt | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grd2rgb(void *V_API, int mode, void *args) {
float v4;
uint64_t v5;
unsigned int channel;
unsigned int channela;
unsigned int row;
unsigned int rowa;
signed int col;
signed int cola;
int n_columns;
int n_rows;
int error;
unsigned char *picture;
GMT_GRID *Grid;
GMT_GRID *Out;
GMT_PA... | int GMT_grd2rgb (void *V_API, int mode, void *args) {
unsigned int channel, row, col;
int error = 0;
uint64_t ij, k, k3;
char rgb[3] = {'r', 'g', 'b'}, *comp[3] = {"red", "green", "blue"};
char buffer[GMT_BUFSIZ] = {""}, *grdfile = NULL;
unsigned char *picture = NULL;
double f_rgb[4];
struct imageinfo head... | GMT_grd2rgb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grd2xyz(void *V_API, int mode, void *args) {
int v4;
int v5;
char *arg;
int v7;
long v8;
long v9;
size_t v10;
unsigned long v11;
double v12;
bool first;
bool rst;
bool previous;
unsigned int row;
signed int rowa;
unsigned int rowb;
unsigned int col;
signed int cola;
unsigned ... | int GMT_grd2xyz (void *V_API, int mode, void *args) {
bool first = true;
unsigned int row, col, n_output, w_col = 3;
int error = 0, write_error = 0;
uint64_t ij, ij_gmt, n_total = 0, n_suppressed = 0;
char header[GMT_BUFSIZ];
double wesn[4], d_value, out[4], *x = NULL, *y = NULL;
struct GMT_GRID *G = NULL, ... | GMT_grd2xyz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdblend(void *V_API, int mode, void *args) {
char *file;
const char *v5;
float nodata;
__pid_t v7;
__pid_t v8;
unsigned int v9;
bool v10;
unsigned int v11;
float v12;
float v13;
float scale;
float v15;
float v16;
unsigned int verbose;
signed int modea;
bool write_all_at_once;
... | int GMT_grdblend (void *V_API, int mode, void *args) {
unsigned int col, row, nx_360 = 0, k, kk, m, n_blend, nx_final, ny_final, out_case;
int status, pcol, err, error;
bool reformat, wrap_x, write_all_at_once = false;
uint64_t ij, n_fill, n_tot;
double wt_x, w, wt;
float *z = NULL, no_data_f;
char type;
ch... | GMT_grdblend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdclip(void *V_API, int mode, void *args) {
int v4;
GRDCLIP_RECLASSIFY *v5;
unsigned int verbose;
bool go;
bool new_grid;
unsigned int row;
signed int col;
unsigned int k;
unsigned int ka;
int error;
GMT_GRID *Out;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t ij;
uint64_t n_ab... | int GMT_grdclip (void *V_API, int mode, void *args) {
unsigned int row, col, k;
int error = 0;
bool new_grid, go = false;
uint64_t ij, n_above = 0, n_below = 0;
double wesn[4];
struct GRDCLIP_CTRL *Ctrl = NULL;
struct GMT_GRID *G = NULL, *Out = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct G... | GMT_grdclip | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdcontour(void *V_API, int mode, void *args) {
bool v4;
double v5;
bool v6;
double v7;
size_t v8;
size_t v9;
char v10;
double label_angle;
char v12;
double d_NaN;
size_t v14;
size_t v15;
bool v16;
double v17;
size_t v18;
size_t v19;
double v20;
double interval;
size_t v22;... | int GMT_grdcontour (void *V_API, int mode, void *args) {
int error, c;
bool need_proj, make_plot, two_only = false, begin, is_closed, data_is_time = false, use_t_offset = false;
enum grdcontour_contour_type closed;
unsigned int id, n_contours, n_edges, tbl_scl = 1, io_mode = 0, uc, tbl, label_mode = 0;
unsigne... | GMT_grdcontour | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.