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 |
|---|---|---|---|---|---|---|---|
char *alpha_bits(PS2RASTER_CTRL *Ctrl) {
char *c;
c = alpha_0;
alpha_0[0] = 0;
if (Ctrl->Q.on[0]) {
if (Ctrl->T.device == 1 || Ctrl->T.device == -1)
sprintf(alpha_0, " -dGraphicsAlphaBits=%d", 1);
else
sprintf(alpha_0, " -dGraphicsAlphaBits=%d", Ctrl->Q.bits[0]);
c = &alpha_0[strlen(alp... | GMT_LOCAL inline char *alpha_bits (struct PS2RASTER_CTRL *Ctrl) {
static char alpha[48];
char *c = alpha;
unsigned int bits;
*alpha = '\0';
if (Ctrl->Q.on[0]) {
if (Ctrl->T.device == GS_DEV_PDF || Ctrl->T.device == -GS_DEV_PDF)
bits = 1;
else
bits = Ctrl->Q.bits[0];
sprintf (c, " -dGraphicsAlpha... | alpha_bits | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_c_cplx_imag(uint64_t row, uint64_t col, uint64_t dim) {
return 2 * dim * row + col + 1;
} | GMT_LOCAL uint64_t api_2d_to_index_c_cplx_imag (uint64_t row, uint64_t col, uint64_t dim) {
return (2ULL*(row * dim) + col + 1ULL);
} | api_2d_to_index_c_cplx_imag | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_c_cplx_real(uint64_t row, uint64_t col, uint64_t dim) {
return 2 * dim * row + col;
} | GMT_LOCAL uint64_t api_2d_to_index_c_cplx_real (uint64_t row, uint64_t col, uint64_t dim) {
return (2ULL*(row * dim) + col);
} | api_2d_to_index_c_cplx_real | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_c_normal(uint64_t row, uint64_t col, uint64_t dim) {
return dim * row + col;
} | GMT_LOCAL uint64_t api_2d_to_index_c_normal (uint64_t row, uint64_t col, uint64_t dim) {
return ((row * dim) + col);
} | api_2d_to_index_c_normal | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_f_cplx_imag(uint64_t row, uint64_t col, uint64_t dim) {
return 2 * dim * col + row + 1;
} | GMT_LOCAL uint64_t api_2d_to_index_f_cplx_imag (uint64_t row, uint64_t col, uint64_t dim) {
return (2ULL*(col * dim) + row + 1ULL);
} | api_2d_to_index_f_cplx_imag | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_f_cplx_real(uint64_t row, uint64_t col, uint64_t dim) {
return 2 * dim * col + row;
} | GMT_LOCAL uint64_t api_2d_to_index_f_cplx_real (uint64_t row, uint64_t col, uint64_t dim) {
return (2ULL*(col * dim) + row);
} | api_2d_to_index_f_cplx_real | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_2d_to_index_f_normal(uint64_t row, uint64_t col, uint64_t dim) {
return dim * col + row;
} | GMT_LOCAL uint64_t api_2d_to_index_f_normal (uint64_t row, uint64_t col, uint64_t dim) {
return ((col * dim) + row);
} | api_2d_to_index_f_normal | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void api_GI_comment(GMTAPI_CTRL *API, unsigned int mode, void *arg,
GMT_GRID_HEADER *H) {
if ((mode & 4) != 0) {
api_update_txt_item(API, (unsigned char)mode, arg, 0xA0u, H->remark);
} else if ((mode & 2) != 0) {
api_update_txt_item(API, (unsigned char)mode, arg, 0x140u, H->command);
}... | GMT_LOCAL void api_GI_comment (struct GMTAPI_CTRL *API, unsigned int mode, void *arg, struct GMT_GRID_HEADER *H) {
if (mode & GMT_COMMENT_IS_REMARK) api_update_txt_item (API, mode, arg, GMT_GRID_REMARK_LEN160, H->remark);
else if (mode & GMT_COMMENT_IS_COMMAND) api_update_txt_item (API, mode, arg, GMT_GRID_COMMAN... | api_GI_comment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_add_comment(GMTAPI_CTRL *API, unsigned int mode, char *txt) {
unsigned int k;
GMT_COMMON *C;
k = 0;
C = &API->GMT->common;
if ((mode & 8) != 0) {
free(API->GMT->common.h.title);
C->h.title = 0;
C->h.title = strdup(txt);
k = 1;
}
if ((mode & 4) != 0) {
free(C->h.remark);
C-... | GMT_LOCAL int api_add_comment (struct GMTAPI_CTRL *API, unsigned int mode, char *txt) {
unsigned int k = 0;
struct GMT_COMMON *C = &API->GMT->common;
if (mode & GMT_COMMENT_IS_TITLE) { gmt_M_str_free (C->h.title); C->h.title = strdup (txt); k++; }
if (mode & GMT_COMMENT_IS_REMARK) { gmt_M_str_free (C->h.remark);... | api_add_comment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_add_data_object(GMTAPI_CTRL *API, GMTAPI_DATA_OBJECT *object) {
unsigned int unique_ID;
size_t old_n_alloc;
if (++API->n_objects == API->n_objects_alloc) {
old_n_alloc = API->n_objects_alloc;
API->n_objects_alloc = 2 * old_n_alloc;
API->object = (GMTAPI_DATA_OBJECT **)gmt_memory_func(
... | GMT_LOCAL int api_add_data_object (struct GMTAPI_CTRL *API, struct GMTAPI_DATA_OBJECT *object) {
API->n_objects++;
if (API->n_objects == API->n_objects_alloc) {
size_t old_n_alloc = API->n_objects_alloc;
API->n_objects_alloc <<= 1;
API->object = gmt_M_memory (API->GMT, API->object, API->n_objects_alloc,... | api_add_data_object | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int api_add_existing(GMTAPI_CTRL *API, GMT_enum_family family,
unsigned int geometry, unsigned int direction,
int *first_ID) {
unsigned int i;
unsigned int n;
*first_ID = -1;
n = 0;
for (i = 0; i < API->n_objects; ++i) {
if (API->object... | GMT_LOCAL unsigned int api_add_existing (struct GMTAPI_CTRL *API, enum GMT_enum_family family, unsigned int geometry, unsigned int direction, int *first_ID) {
unsigned int i, n;
*first_ID = GMT_NOTSET;
for (i = n = 0; i < API->n_objects; i++) {
if (!API->object[i]) continue;
if (API->object[i]->direction !=... | api_add_existing | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool api_adjust_grdpadding(GMT_GRID_HEADER *h, unsigned int *pad) {
unsigned int side;
for (side = 0; side <= 3; ++side) {
if (h->pad[side] != pad[side])
return 1;
}
return 0;
} | GMT_LOCAL bool api_adjust_grdpadding (struct GMT_GRID_HEADER *h, unsigned int *pad) {
unsigned int side;
for (side = 0; side < 4; side++) if (h->pad[side] != pad[side]) return (true);
return (false);
} | api_adjust_grdpadding | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASEGMENT *api_alloc_datasegment(void *V_API, uint64_t n_rows,
uint64_t n_columns, char *header,
GMT_DATASEGMENT *Sin) {
int v5;
bool first;
GMT_DATASEGMENT *S;
GMTAPI_CTRL *API;
first = 1;
API = api_get_api_ptr((GMTAPI_CTR... | struct GMT_DATASEGMENT *api_alloc_datasegment (void *V_API, uint64_t n_rows, uint64_t n_columns, char *header, struct GMT_DATASEGMENT *Sin) {
struct GMT_DATASEGMENT *S = NULL;
struct GMTAPI_CTRL *API = NULL;
bool first = true;
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
if ((S = Sin) != NULL)
f... | api_alloc_datasegment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_alloc_grid(GMT_CTRL *GMT, GMT_GRID *Grid) {
if (Grid->data)
return 68;
if (!Grid->header->size)
return 72;
Grid->data = (float *)gmt_memory_func(GMT, 0, Grid->header->size, 4u, 1,
"api_alloc_grid");
if (Grid->data)
return 0;
else
return 24;
} | GMT_LOCAL int api_alloc_grid (struct GMT_CTRL *GMT, struct GMT_GRID *Grid) {
if (Grid->data) return (GMT_PTR_NOT_NULL);
if (Grid->header->size == 0U) return (GMT_SIZE_IS_ZERO);
if ((Grid->data = gmt_M_memory_aligned (GMT, NULL, Grid->header->size, float)) == NULL) return (GMT_MEMORY_ERROR);
return (GMT_NOERROR)... | api_alloc_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_alloc_grid_xy(GMTAPI_CTRL *API, GMT_GRID *Grid) {
if (Grid->x || Grid->y)
return 68;
Grid->x = GMT_Get_Coord(API, 1u, 0, Grid);
Grid->y = GMT_Get_Coord(API, 1u, 1u, Grid);
return 0;
} | GMT_LOCAL int api_alloc_grid_xy (struct GMTAPI_CTRL *API, struct GMT_GRID *Grid) {
if (Grid->x || Grid->y) return (GMT_PTR_NOT_NULL);
Grid->x = GMT_Get_Coord (API, GMT_IS_GRID, GMT_X, Grid);
Grid->y = GMT_Get_Coord (API, GMT_IS_GRID, GMT_Y, Grid);
return (GMT_NOERROR);
} | api_alloc_grid_xy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_alloc_image(GMT_CTRL *GMT, uint64_t *dim, GMT_IMAGE *Image) {
if (Image->data)
return 68;
if (!Image->header->size)
return 72;
Image->data = (unsigned char *)gmt_memory_func(
GMT, 0, Image->header->n_bands * Image->header->size, 1u, 1,
"api_alloc_image");
if (!Image->data)
return... | GMT_LOCAL int api_alloc_image (struct GMT_CTRL *GMT, uint64_t *dim, struct GMT_IMAGE *Image) {
if (Image->data) return (GMT_PTR_NOT_NULL);
if (Image->header->size == 0U) return (GMT_SIZE_IS_ZERO);
if ((Image->data = gmt_M_memory_aligned (GMT, NULL, Image->header->size * Image->header->n_bands, unsigned char)) =... | api_alloc_image | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_alloc_image_xy(GMTAPI_CTRL *API, GMT_IMAGE *Image) {
if (Image->x || Image->y)
return 68;
Image->x = GMT_Get_Coord(API, 2u, 0, Image);
Image->y = GMT_Get_Coord(API, 2u, 1u, Image);
return 0;
} | GMT_LOCAL int api_alloc_image_xy (struct GMTAPI_CTRL *API, struct GMT_IMAGE *Image) {
if (Image->x || Image->y) return (GMT_PTR_NOT_NULL);
Image->x = GMT_Get_Coord (API, GMT_IS_IMAGE, GMT_X, Image);
Image->y = GMT_Get_Coord (API, GMT_IS_IMAGE, GMT_Y, Image);
return (GMT_NOERROR);
} | api_alloc_image_xy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_alloc_object_array(GMTAPI_CTRL *API, unsigned int n_items,
unsigned int type) {
void *p;
p = 0;
switch (type) {
case 0u:
case 1u:
case 2u:
case 3u:
case 4u:
case 5u:
case 6u:
case 7u:
p = gmt_memory_func(API->GMT, 0, n_items, 8u, 0, "api_alloc_object_arr... | GMT_LOCAL void *api_alloc_object_array (struct GMTAPI_CTRL *API, unsigned int n_items, unsigned int type) {
void *p = NULL;
switch (type) {
case GMT_IS_GRID: p = gmt_M_memory (API->GMT, NULL, n_items, struct GMT_GRID *); break;
case GMT_IS_DATASET: p = gmt_M_memory (API->GMT, NULL, n_items, struct GMT_DATASET *)... | api_alloc_object_array | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_TEXTSEGMENT *api_alloc_textsegment(void *V_API, uint64_t n_rows,
char *header, GMT_TEXTSEGMENT *Sin) {
GMT_TEXTSEGMENT *S;
GMTAPI_CTRL *API;
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
S = Sin;
if (Sin || (S = (GMT_TEXTSEGMENT *)gmt_memory_func(
... | GMT_LOCAL struct GMT_TEXTSEGMENT *api_alloc_textsegment (void *V_API, uint64_t n_rows, char *header, struct GMT_TEXTSEGMENT *Sin) {
struct GMT_TEXTSEGMENT *S = NULL;
struct GMTAPI_CTRL *API = NULL;
API = api_get_api_ptr (V_API);
API->error = GMT_NOERROR;
if ((S = Sin) == NULL && (S = gmt_M_memory (API->GMT, NUL... | api_alloc_textsegment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_alloc_vectors(GMT_CTRL *GMT, GMT_VECTOR *V, uint64_t n_alloc) {
int error;
uint64_t col;
if (!V)
return 67;
if (!V->n_columns)
return 67;
if (!n_alloc)
return 51;
if (!V->data)
return 67;
for (col = 0; col < V->n_columns; ++col) {
error = gmtlib_alloc_univector(GMT, &V->data[c... | GMT_LOCAL int api_alloc_vectors (struct GMT_CTRL *GMT, struct GMT_VECTOR *V, uint64_t n_alloc) {
uint64_t col;
int error;
if (!V) return (GMT_PTR_IS_NULL);
if (V->n_columns == 0) return (GMT_PTR_IS_NULL);
if (n_alloc == 0) return (GMT_N_ROWS_NOT_SET);
if (!V->data) return (GMT_PTR_IS_NULL);
for (col ... | api_alloc_vectors | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_begin_io(GMTAPI_CTRL *API, unsigned int direction) {
bool v3;
GMT_CTRL *GMT;
if (API) {
if (direction < 2) {
if (!API->registered[direction])
GMT_Report(API, 6u,
"api_begin_io: Warning: No %s resources registered\n",
GMT_direction[direction]);
... | GMT_LOCAL int api_begin_io (struct GMTAPI_CTRL *API, unsigned int direction) {
struct GMT_CTRL *GMT = NULL;
if (API == NULL) return_error (API, GMT_NOT_A_SESSION);
if (!(direction == GMT_IN || direction == GMT_OUT)) return_error (API, GMT_NOT_A_VALID_DIRECTION);
if (!API->registered[direction])
GMT_Report ... | api_begin_io | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_bin_input_memory(GMT_CTRL *GMT, uint64_t n, uint64_t n_use) {
GMT->current.io.status = 0;
++GMT->current.io.rec_no;
if (gmtlib_process_binary_input(GMT, n_use) == 1)
return -1;
if (gmtlib_gap_detected(GMT)) {
gmtlib_set_gap(GMT);
return -2;
} else {
++GMT->current.io.pt_no;
return ... | GMT_LOCAL int api_bin_input_memory (struct GMT_CTRL *GMT, uint64_t n, uint64_t n_use) {
unsigned int status;
gmt_M_unused(n);
GMT->current.io.status = GMT_IO_DATA_RECORD;
GMT->current.io.rec_no++;
status = gmtlib_process_binary_input (GMT, n_use);
if (status == 1) return (GMTAPI_GOT_SEGHEADER);
if (gmt... | api_bin_input_memory | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_change_gridlayout(GMTAPI_CTRL *API, char *code, unsigned int mode,
GMT_GRID *G, float *out) {
long v6;
GMT_enum_family family;
unsigned int row;
unsigned int col;
long old_layout;
uint64_t in_node;
uint64_t out_node;
float *tmp;
unsigned int pad[4];
unsigned long v1... | GMT_LOCAL int api_change_gridlayout (struct GMTAPI_CTRL *API, char *code, unsigned int mode, struct GMT_GRID *G, float *out) {
enum GMT_enum_family family;
unsigned int row, col, pad[4], old_layout, new_layout;
uint64_t in_node, out_node;
float *tmp = NULL;
gmt_M_unused(mode);
old_layout = api_decode_layout (API... | api_change_gridlayout | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_change_imagelayout(GMTAPI_CTRL *API, char *code, unsigned int mode,
GMT_IMAGE *I, unsigned char *out1,
unsigned char *out2) {
unsigned char *data;
uint64_t v8;
GMT_enum_family family;
unsigned int old_layout;
unsigned int new_layout;
unsigned cha... | GMT_LOCAL int api_change_imagelayout (struct GMTAPI_CTRL *API, char *code, unsigned int mode, struct GMT_IMAGE *I, unsigned char *out1, unsigned char *out2) {
unsigned char *tmp = NULL, *alpha = NULL;
enum GMT_enum_family family;
unsigned int old_layout, new_layout;
uint64_t band, row, col, in_node, out_nod... | api_change_imagelayout | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_colors2cpt(GMTAPI_CTRL *API, char **str, unsigned int *mode) {
__pid_t v4;
bool gray;
unsigned int pos;
unsigned int z;
size_t k;
char *pch;
FILE *fp;
size_t s_length;
double rgb[4];
char tmp_file[64];
char color[256];
char last_color[264];
unsigned long v17;
v17 = __readfsqword(0x2... | GMT_LOCAL int api_colors2cpt (struct GMTAPI_CTRL *API, char **str, unsigned int *mode) {
unsigned int pos = 0, z = 0;
char *pch = NULL, color[GMT_LEN256] = {""}, tmp_file[GMT_LEN64] = "";
double rgb[4] = {0.0, 0.0, 0.0, 0.0};
FILE *fp = NULL;
if (!(pch = strchr (*str, ','))) {
bool gray = true;
size_t ... | api_colors2cpt | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void api_cpt_comment(GMTAPI_CTRL *API, unsigned int mode, void *arg,
GMT_PALETTE *P) {
char **header;
unsigned int v5;
unsigned int k;
char *txt;
txt = gmtapi_create_header_item(API, (unsigned short)mode, arg);
if (api_add_comment(API, (unsigned short)mode, txt)) {
if ((mode & 0x10... | GMT_LOCAL void api_cpt_comment (struct GMTAPI_CTRL *API, unsigned int mode, void *arg, struct GMT_PALETTE *P) {
unsigned int k;
char *txt = gmtapi_create_header_item (API, mode, arg);
if (!api_add_comment (API, mode, txt)) return;
if (mode & GMT_COMMENT_IS_RESET) {
for (k = 0; k < P->n_headers; k++) gmt_M_s... | api_cpt_comment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_dataset2dataset(GMTAPI_CTRL *API, GMT_DATASET *In, GMT_DATASET *Out,
unsigned int header, unsigned int mode) {
uint64_t n_tables;
bool v6;
uint64_t n_segments;
uint64_t v8;
uint64_t n_records;
char **v10;
uint64_t n_rows;
void **v12;
GMT_DATASET *Outa;
char s_allo... | GMT_LOCAL void *api_dataset2dataset (struct GMTAPI_CTRL *API, struct GMT_DATASET *In, struct GMT_DATASET *Out, unsigned int header, unsigned int mode) {
unsigned int hdr;
uint64_t tbl, seg, row, col, n_rows, tbl_out = 0, row_out = 0, seg_out = 0;
bool s_alloc, t_alloc, alloc, was;
struct GMT_CTRL *GMT = API... | api_dataset2dataset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_dataset2matrix(GMTAPI_CTRL *API, GMT_DATASET *In, GMT_MATRIX *Out,
unsigned int header, unsigned int mode) {
bool v5;
uint64_t n_segments;
unsigned int export_type;
GMT_MATRIX *Outa;
bool add_NaN_record;
uint64_t tbl;
uint64_t seg;
uint64_t row;
uint64_t row_out;
u... | GMT_LOCAL void *api_dataset2matrix (struct GMTAPI_CTRL *API, struct GMT_DATASET *In, struct GMT_MATRIX *Out, unsigned int header, unsigned int mode) {
uint64_t tbl, seg, row, row_out, col, ij;
bool alloc = (Out == NULL), add_NaN_record = (In->n_segments > 1 && do_seg_header(header));
struct GMT_CTRL *GMT = AP... | api_dataset2matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_dataset2textset(GMTAPI_CTRL *API, GMT_DATASET *In, GMT_TEXTSET *Out,
unsigned int header, unsigned int mode) {
uint64_t n_tables;
bool v6;
uint64_t n_segments;
uint64_t v8;
uint64_t n_records;
char **v10;
void **v11;
uint64_t n_rows;
char **v13;
GMT_TEXTSET *Outa;... | GMT_LOCAL void *api_dataset2textset (struct GMTAPI_CTRL *API, struct GMT_DATASET *In, struct GMT_TEXTSET *Out, unsigned int header, unsigned int mode) {
unsigned int hdr, fmt;
uint64_t tbl, seg, row, col, tbl_out = 0, row_out = 0, seg_out = 0;
char record[BUFSIZ] = {""};
bool s_alloc, t_alloc, alloc, was;
... | api_dataset2textset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_dataset2vector(GMTAPI_CTRL *API, GMT_DATASET *In, GMT_VECTOR *Out,
unsigned int header, unsigned int mode) {
bool v5;
uint64_t v7;
unsigned int export_type;
GMT_VECTOR *Outa;
bool add_NaN_record;
uint64_t tbl;
uint64_t seg;
uint64_t row;
uint64_t row_out;
uint64_t ... | GMT_LOCAL void *api_dataset2vector (struct GMTAPI_CTRL *API, struct GMT_DATASET *In, struct GMT_VECTOR *Out, unsigned int header, unsigned int mode) {
uint64_t tbl, seg, row, row_out, col;
bool alloc = (Out == NULL), add_NaN_record = (In->n_segments > 1 && do_seg_header(header));
struct GMT_CTRL *GMT = API->GM... | api_dataset2vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void api_dataset_comment(GMTAPI_CTRL *API, unsigned int mode, void *arg,
GMT_DATASET *D) {
char **header;
unsigned int v5;
short modea;
unsigned int tbl;
unsigned int k;
GMT_DATATABLE *T;
char *txt;
modea = mode;
txt = gmtapi_create_header_item(API, mode, arg);
if (!api_add... | GMT_LOCAL void api_dataset_comment (struct GMTAPI_CTRL *API, unsigned int mode, void *arg, struct GMT_DATASET *D) {
unsigned int tbl, k;
struct GMT_DATATABLE *T = NULL;
char *txt = gmtapi_create_header_item (API, mode, arg);
if (api_add_comment (API, mode, txt)) return;
if (D->table == NULL) {
GMT_Report (API... | api_dataset_comment | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_decode_id(const char *filename) {
int object_ID;
unsigned long v3;
v3 = __readfsqword(0x28u);
object_ID = -1;
if (filename && !strncmp(filename, "@GMTAPI@-", 9u) &&
(unsigned int)__isoc99_sscanf(filename + 9, "%d", &object_ID) != 1) {
return -1;
} else {
return object_ID;
}
} | GMT_LOCAL int api_decode_id (const char *filename) {
int object_ID = GMT_NOTSET;
if (gmt_M_file_is_memory (filename)) {
if (sscanf (&filename[9], "%d", &object_ID) != 1) return (GMT_NOTSET);
}
return (object_ID);
} | api_decode_id | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int api_decode_layout(GMTAPI_CTRL *API, const char *code,
GMT_enum_family *family) {
int v3;
int v4;
int bits;
bits = 0;
*family = GMT_enum_family_GMT_IS_IMAGE;
v3 = *code;
if (v3 == 66) {
bits = 1;
} else if (v3 != 84) {
GMT_Report(API, 1u,
... | GMT_LOCAL unsigned int api_decode_layout (struct GMTAPI_CTRL *API, const char *code, enum GMT_enum_family *family) {
unsigned int bits = 0;
*family = GMT_IS_IMAGE;
switch (code[0]) {
case 'T': break;
case 'B': bits = 1; break;
default:
GMT_Report (API, GMT_MSG_NORMAL, "Illegal code [%c] for y-dir... | api_decode_layout | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_coord(GMTAPI_CTRL *API, double **ptr) {
gmt_free_func(API->GMT, *ptr, 0, "api_destroy_coord");
*ptr = 0;
return 0;
} | GMT_LOCAL int api_destroy_coord (struct GMTAPI_CTRL *API, double **ptr) {
gmt_M_free (API->GMT, *ptr);
return GMT_OK;
} | api_destroy_coord | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_data_ptr(GMTAPI_CTRL *API, GMT_enum_family family, void *ptr) {
int result;
GMT_CTRL *GMT;
if (!API)
return 27;
if (!ptr)
return 0;
GMT = API->GMT;
switch (family) {
case GMT_enum_family_GMT_IS_DATASET:
gmtlib_free_dataset_ptr(GMT, (GMT_DATASET *)ptr);
goto LABEL_14;
cas... | GMT_LOCAL int api_destroy_data_ptr (struct GMTAPI_CTRL *API, enum GMT_enum_family family, void *ptr) {
struct GMT_CTRL *GMT;
if (API == NULL) return (GMT_NOT_A_SESSION);
if (!ptr) return (GMT_OK);
GMT = API->GMT;
switch (family) {
case GMT_IS_GRID:
gmtgrdio_free_grid_ptr (GMT, ptr, true);
break;... | api_destroy_data_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_dataset(GMTAPI_CTRL *API, GMT_DATASET **D_obj) {
if (*D_obj) {
if ((*D_obj)->alloc_level == API->GMT->hidden.func_level) {
gmt_free_dataset(API->GMT, D_obj);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_dataset: Passed NULL pointer - ski... | GMT_LOCAL int api_destroy_dataset (struct GMTAPI_CTRL *API, struct GMT_DATASET **D_obj) {
if (!(*D_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_dataset: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*D_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVE... | api_destroy_dataset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_datasets(GMTAPI_CTRL *API, GMT_DATASET ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_DATASET **D;
D = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &D[k]);
if (error) {
gmtapi_report_error(API, error);
return ... | int api_destroy_datasets (struct GMTAPI_CTRL *API, struct GMT_DATASET ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_DATASET **D = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &D[k]))) return_error (API, error);
gmt_M_free (API->GMT, D); *obj = NULL;
return_error ... | api_destroy_datasets | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_grid(GMTAPI_CTRL *API, GMT_GRID **G_obj) {
if (*G_obj) {
if ((*G_obj)->alloc_level == API->GMT->hidden.func_level) {
gmt_free_grid(API->GMT, G_obj, 1);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_grid: Passed NULL pointer - skipped\n");... | GMT_LOCAL int api_destroy_grid (struct GMTAPI_CTRL *API, struct GMT_GRID **G_obj) {
if (!(*G_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_grid: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*G_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVEL);
gm... | api_destroy_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_grids(GMTAPI_CTRL *API, GMT_GRID ***obj, unsigned int n_items) {
unsigned int k;
int error;
GMT_GRID **G;
G = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &G[k]);
if (error) {
gmtapi_report_error(API, error);
return error;
}
}
gmt_free_func(A... | int api_destroy_grids (struct GMTAPI_CTRL *API, struct GMT_GRID ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_GRID **G = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &G[k]))) return_error (API, error);
gmt_M_free (API->GMT, G); *obj = NULL;
return_error (API, GMT... | api_destroy_grids | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_image(GMTAPI_CTRL *API, GMT_IMAGE **I_obj) {
if (*I_obj) {
if ((*I_obj)->alloc_level == API->GMT->hidden.func_level) {
gmtlib_free_image(API->GMT, I_obj, 1);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_image: Passed NULL pointer - skipp... | GMT_LOCAL int api_destroy_image (struct GMTAPI_CTRL *API, struct GMT_IMAGE **I_obj) {
if (!(*I_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_image: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*I_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVEL);
... | api_destroy_image | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_images(GMTAPI_CTRL *API, GMT_IMAGE ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_IMAGE **I;
I = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &I[k]);
if (error) {
gmtapi_report_error(API, error);
return error;
... | int api_destroy_images (struct GMTAPI_CTRL *API, struct GMT_IMAGE ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_IMAGE **I = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &I[k]))) return_error (API, error);
gmt_M_free (API->GMT, I); *obj = NULL;
return_error (API, ... | api_destroy_images | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_matrices(GMTAPI_CTRL *API, GMT_MATRIX ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_MATRIX **M;
M = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &M[k]);
if (error) {
gmtapi_report_error(API, error);
return er... | int api_destroy_matrices (struct GMTAPI_CTRL *API, struct GMT_MATRIX ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_MATRIX **M = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &M[k]))) return_error (API, error);
gmt_M_free (API->GMT, M); *obj = NULL;
return_error (A... | api_destroy_matrices | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_matrix(GMTAPI_CTRL *API, GMT_MATRIX **M_obj) {
if (*M_obj) {
if ((*M_obj)->alloc_level == API->GMT->hidden.func_level) {
gmtlib_free_matrix(API->GMT, M_obj, 1);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_matrix: Passed NULL pointer - s... | GMT_LOCAL int api_destroy_matrix (struct GMTAPI_CTRL *API, struct GMT_MATRIX **M_obj) {
if (!(*M_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_matrix: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*M_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVEL);... | api_destroy_matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_palette(GMTAPI_CTRL *API, GMT_PALETTE **P_obj) {
if (*P_obj) {
if ((*P_obj)->alloc_level == API->GMT->hidden.func_level) {
gmtlib_free_palette(API->GMT, P_obj);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_palette: Passed NULL pointer - ... | GMT_LOCAL int api_destroy_palette (struct GMTAPI_CTRL *API, struct GMT_PALETTE **P_obj) {
if (!(*P_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_palette: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*P_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVE... | api_destroy_palette | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_palettes(GMTAPI_CTRL *API, GMT_PALETTE ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_PALETTE **C;
C = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &C[k]);
if (error) {
gmtapi_report_error(API, error);
return ... | int api_destroy_palettes (struct GMTAPI_CTRL *API, struct GMT_PALETTE ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_PALETTE **C = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &C[k]))) return_error (API, error);
gmt_M_free (API->GMT, C); *obj = NULL;
return_error ... | api_destroy_palettes | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_postscript(GMTAPI_CTRL *API, GMT_POSTSCRIPT **P_obj) {
if (*P_obj) {
if ((*P_obj)->alloc_level == API->GMT->hidden.func_level) {
gmtlib_free_ps(API->GMT, P_obj);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u,
"api_destroy_postscript: Pas... | GMT_LOCAL int api_destroy_postscript (struct GMTAPI_CTRL *API, struct GMT_POSTSCRIPT **P_obj) {
if (!(*P_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_postscript: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*P_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_W... | api_destroy_postscript | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_postscripts(GMTAPI_CTRL *API, GMT_POSTSCRIPT ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_POSTSCRIPT **P;
P = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &P[k]);
if (error) {
gmtapi_report_error(API, error);
... | int api_destroy_postscripts (struct GMTAPI_CTRL *API, struct GMT_POSTSCRIPT ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_POSTSCRIPT **P = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &P[k]))) return_error (API, error);
gmt_M_free (API->GMT, P); *obj = NULL;
retu... | api_destroy_postscripts | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_textset(GMTAPI_CTRL *API, GMT_TEXTSET **T_obj) {
if (*T_obj) {
if ((*T_obj)->alloc_level == API->GMT->hidden.func_level) {
gmtlib_free_textset(API->GMT, T_obj);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_textset: Passed NULL pointer - ... | GMT_LOCAL int api_destroy_textset (struct GMTAPI_CTRL *API, struct GMT_TEXTSET **T_obj) {
if (!(*T_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_textset: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*T_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVE... | api_destroy_textset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_textsets(GMTAPI_CTRL *API, GMT_TEXTSET ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_TEXTSET **T;
T = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &T[k]);
if (error) {
gmtapi_report_error(API, error);
return ... | int api_destroy_textsets (struct GMTAPI_CTRL *API, struct GMT_TEXTSET ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_TEXTSET **T = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &T[k]))) return_error (API, error);
gmt_M_free (API->GMT, T); *obj = NULL;
return_error ... | api_destroy_textsets | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_vector(GMTAPI_CTRL *API, GMT_VECTOR **V_obj) {
if (*V_obj) {
if ((*V_obj)->alloc_level == API->GMT->hidden.func_level) {
gmt_free_vector(API->GMT, V_obj, 1);
return 0;
} else {
return 26;
}
} else {
GMT_Report(API, 6u, "api_destroy_vector: Passed NULL pointer - skip... | GMT_LOCAL int api_destroy_vector (struct GMTAPI_CTRL *API, struct GMT_VECTOR **V_obj) {
if (!(*V_obj)) {
GMT_Report (API, GMT_MSG_DEBUG, "api_destroy_vector: Passed NULL pointer - skipped\n");
return (GMT_PTR_IS_NULL);
}
if ((*V_obj)->alloc_level != API->GMT->hidden.func_level) return (GMT_FREE_WRONG_LEVEL);... | api_destroy_vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_destroy_vectors(GMTAPI_CTRL *API, GMT_VECTOR ***obj,
unsigned int n_items) {
unsigned int k;
int error;
GMT_VECTOR **V;
V = *obj;
for (k = 0; k < n_items; ++k) {
error = GMT_Destroy_Data(API, &V[k]);
if (error) {
gmtapi_report_error(API, error);
return erro... | int api_destroy_vectors (struct GMTAPI_CTRL *API, struct GMT_VECTOR ***obj, unsigned int n_items)
{
unsigned int k;
int error;
struct GMT_VECTOR **V = *obj;
for (k = 0; k < n_items; k++) if ((error = GMT_Destroy_Data (API, &V[k]))) return_error (API, error);
gmt_M_free (API->GMT, V); *obj = NULL;
return_error (AP... | api_destroy_vectors | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int api_determine_dimension(GMTAPI_CTRL *API, char *text) {
unsigned int n_slashes;
size_t k;
size_t s_length;
n_slashes = 0;
s_length = strlen(text);
if (*text == 63 && !text[1])
return 2;
for (k = 0; k < s_length; ++k) {
if (text[k] == 47)
++n_slashes;
}
if ((*text == 103 || ... | GMT_LOCAL unsigned int api_determine_dimension (struct GMTAPI_CTRL *API, char *text) {
unsigned int n_slashes = 0;
size_t k;
const size_t s_length = strlen(text);
if (text[0] == '?' && text[1] == '\0') return 2;
for (k = 0; k < s_length; k++)
if (text[k] == '/') n_slashes++;
if ((text[0] == 'g' || text... | api_determine_dimension | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_encode_id(void *V_API, char *filename, int object_ID) {
if (V_API) {
if (filename) {
if (object_ID == -1) {
gmtapi_report_error(V_API, 31);
return 31;
} else if (object_ID <= (int)&loc_F423F) {
sprintf(filename, "@GMTAPI@-%06d", object_ID);
gmtapi_report_error(V... | GMT_LOCAL int api_encode_id (void *V_API, char *filename, int object_ID) {
if (V_API == NULL) return_error (V_API, GMT_NOT_A_SESSION);
if (!filename) return_error (V_API, GMT_MEMORY_ERROR);
if (object_ID == GMT_NOTSET) return_error (V_API, GMT_NOT_A_VALID_ID);
if (object_ID > GMTAPI_MAX_ID) return_error (V_... | api_encode_id | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_end_io_dataset(GMTAPI_CTRL *API, GMTAPI_DATA_OBJECT *S,
unsigned int *item) {
void **v4;
GMT_DATASEGMENT *v5;
int object_ID;
unsigned int check;
int64_t *count;
GMT_DATASET *D;
GMT_DATATABLE *T;
count = API->GMT->current.io.curr_pos[1];
D = (GMT_DATASET *)S->resource;
... | GMT_LOCAL int api_end_io_dataset (struct GMTAPI_CTRL *API, struct GMTAPI_DATA_OBJECT *S, unsigned int *item) {
int check, object_ID;
int64_t *count = API->GMT->current.io.curr_pos[GMT_OUT];
struct GMT_DATASET *D = S->resource;
struct GMT_DATATABLE *T = NULL;
if (D == NULL || D->table == NULL || D->table[0] =... | api_end_io_dataset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_end_io_matrix(GMTAPI_CTRL *API, GMTAPI_DATA_OBJECT *S,
unsigned int *item) {
int error;
int object_ID;
unsigned int check;
uint64_t col;
GMT_MATRIX *M;
GMT_putfunction api_put_val;
p_func_uint64_t GMT_2D_to_index;
uint64_t ij;
M = (GMT_MATRIX *)S->resource;
if (S->allo... | GMT_LOCAL int api_end_io_matrix (struct GMTAPI_CTRL *API, struct GMTAPI_DATA_OBJECT *S, unsigned int *item) {
int error = 0, check, object_ID;
struct GMT_MATRIX *M = S->resource;
if (S->alloc_mode != GMT_ALLOC_EXTERNALLY && S->n_alloc != S->rec) {
size_t size = S->n_alloc = S->rec;
size *= M->n_columns;
i... | api_end_io_matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_end_io_textset(GMTAPI_CTRL *API, GMTAPI_DATA_OBJECT *S,
unsigned int *item) {
GMT_TEXTSEGMENT *v4;
int object_ID;
unsigned int check;
uint64_t seg;
int64_t *count;
GMT_TEXTSET *D;
GMT_TEXTTABLE *T;
count = API->GMT->current.io.curr_pos[1];
D = (GMT_TEXTSET *)S->resource... | GMT_LOCAL int api_end_io_textset (struct GMTAPI_CTRL *API, struct GMTAPI_DATA_OBJECT *S, unsigned int *item) {
int check, object_ID;
int64_t *count = API->GMT->current.io.curr_pos[GMT_OUT];
struct GMT_TEXTSET *D = S->resource;
struct GMT_TEXTTABLE *T = NULL;
if (D == NULL || D->table == NULL || D->table[0] == ... | api_end_io_textset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_end_io_vector(GMTAPI_CTRL *API, GMTAPI_DATA_OBJECT *S,
unsigned int *item) {
int error;
int object_ID;
unsigned int check;
GMT_putfunction api_put_val;
uint64_t col;
GMT_VECTOR *V;
V = (GMT_VECTOR *)S->resource;
if (S->alloc_mode && S->n_alloc != S->rec &&
(S->n_allo... | GMT_LOCAL int api_end_io_vector (struct GMTAPI_CTRL *API, struct GMTAPI_DATA_OBJECT *S, unsigned int *item) {
int error = 0, check, object_ID;
struct GMT_VECTOR *V = S->resource;
if (S->alloc_mode != GMT_ALLOC_EXTERNALLY && S->n_alloc != S->rec) {
S->n_alloc = S->rec;
if ((error = api_alloc_vectors (API->GM... | api_end_io_vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void api_exit(GMTAPI_CTRL *API, int code) {
if (!API->do_not_exit)
GMT_exit(API->GMT, code);
} | GMT_LOCAL inline void api_exit (struct GMTAPI_CTRL *API, int code) {
if (API->do_not_exit == false)
GMT_exit (API->GMT, code);
} | api_exit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_data(GMTAPI_CTRL *API, GMT_enum_family family, int object_ID,
unsigned int mode, void *data) {
GMTAPI_DATA_OBJECT *v6;
unsigned int object_IDa;
int error;
int errora;
int item;
object_IDa = object_ID;
if (!API)
return 27;
if (!data)
return 67;
if (!API->regi... | GMT_LOCAL int api_export_data (struct GMTAPI_CTRL *API, enum GMT_enum_family family, int object_ID, unsigned int mode, void *data) {
int error, item;
if (API == NULL) return (GMT_NOT_A_SESSION);
if (data == NULL) return (GMT_PTR_IS_NULL);
if (!API->registered[GMT_OUT]) return (gmtapi_report_error (API, GMT_N... | api_export_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_dataset(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_DATASET *D_obj) {
int v5;
uint64_t n_records;
uint64_t n_cols;
uint64_t n_rows;
double v9;
uint64_t n_columns;
uint64_t v11;
double v12;
GMT_enum_write modea;
char save;
char savea;
unsigned int... | GMT_LOCAL int api_export_dataset (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_DATASET *D_obj) {
int item, error, default_method;
unsigned int method;
uint64_t tbl, col, row_out, row, seg, ij;
bool save;
double value;
p_func_uint64_t GMT_2D_to_index = NULL;
struct GMTAPI_DATA_OBJEC... | api_export_dataset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_grid(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_GRID *G_obj) {
bool v5;
unsigned int method;
char v7;
char *filename;
int v9;
int v10;
uint32_t n_rows;
uint32_t v12;
unsigned int *pad;
long v14;
GMT_GRID_HEADER *header;
double z_min;
double z_max... | GMT_LOCAL int api_export_grid (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_GRID *G_obj) {
int item, error;
bool done = true, row_by_row;
uint64_t row, col, i0, i1, j0, j1, ij, ijp, ij_orig;
size_t size;
double dx, dy;
p_func_uint64_t GMT_2D_to_index = NULL;
GMT_putfunction api_put_val =... | api_export_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_image(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_IMAGE *I_obj) {
unsigned int method;
char *filename;
int v7;
short modea;
int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
modea = mode;
GMT_Report(API, 6u, "api_export_image: Passed ID = %d and mode = %d... | GMT_LOCAL int api_export_image (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_IMAGE *I_obj) {
int item, error;
bool done = true;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_IMAGE *I_copy = NULL;
GMT_Report (API, GMT_MSG_DEBUG, "api_export_image: Passed ID = %d and mode = %d\n", obj... | api_export_image | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_matrix(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_MATRIX *M_obj) {
unsigned int method;
unsigned int modea;
int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
GMT_CTRL *GMT;
modea = mode;
GMT = API->GMT;
GMT_Report(API, 6u, "api_export_matrix: Passed ID ... | GMT_LOCAL int api_export_matrix (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_MATRIX *M_obj) {
int item, error;
unsigned int kind;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_CTRL *GMT = API->GMT;
GMT_Report (API, GMT_MSG_DEBUG, "api_export_matrix: Passed ID = %d and mode = %d... | api_export_matrix | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_palette(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_PALETTE *P_obj) {
int result;
unsigned int modea;
int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
GMT_PALETTE *P_copy;
GMT_CTRL *GMT;
modea = mode;
GMT = API->GMT;
GMT_Report(API, 6u, "api_export_p... | GMT_LOCAL int api_export_palette (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_PALETTE *P_obj) {
int item, error;
unsigned int kind;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_PALETTE *P_copy = NULL;
struct GMT_CTRL *GMT = API->GMT;
GMT_Report (API, GMT_MSG_DEBUG, "api_expor... | api_export_palette | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_postscript(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_POSTSCRIPT *P_obj) {
int result;
unsigned int modea;
int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
GMT_POSTSCRIPT *P_copy;
GMT_CTRL *GMT;
modea = mode;
GMT = API->GMT;
GMT_Report(API, 6u, "... | GMT_LOCAL int api_export_postscript (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_POSTSCRIPT *P_obj) {
int item, error;
unsigned int kind;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_POSTSCRIPT *P_copy = NULL;
struct GMT_CTRL *GMT = API->GMT;
GMT_Report (API, GMT_MSG_DEBUG, "... | api_export_postscript | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_ppm(GMT_CTRL *GMT, char *fname, GMT_IMAGE *I) {
size_t v4;
size_t v5;
const char *ext;
FILE *fp;
char dim[40];
unsigned long v10;
v10 = __readfsqword(0x28u);
ext = gmt_get_ext(fname);
memset(dim, 0, 32);
if (strcmp(ext, "ppm"))
return 1;
fp = gmt_fopen(GMT, fname, GMT->current.... | GMT_LOCAL int api_export_ppm (struct GMT_CTRL *GMT, char *fname, struct GMT_IMAGE *I) {
char *ext = gmt_get_ext (fname), *magic = "P6\n# Produced by GMT\n", dim[GMT_LEN32] = {""};
FILE *fp = NULL;
if (strcmp (ext, "ppm")) return 1;
if ((fp = gmt_fopen (GMT, fname, GMT->current.io.w_mode)) == NULL) {
GMT_Re... | api_export_ppm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_textset(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_TEXTSET *T_obj) {
int method;
unsigned int v6;
uint64_t n_records;
GMT_enum_write modea;
unsigned int default_method;
int item;
int error;
uint64_t tbl;
uint64_t row;
uint64_t seg;
uint64_t row_ou... | GMT_LOCAL int api_export_textset (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_TEXTSET *T_obj) {
int item, error, default_method;
uint64_t tbl, row, seg, row_out;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_TEXTSET *T_copy = NULL;
struct GMT_MATRIX *M_obj = NULL;
struct GMT_C... | api_export_textset | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_export_vector(GMTAPI_CTRL *API, int object_ID, unsigned int mode,
GMT_VECTOR *V_obj) {
unsigned int method;
unsigned int modea;
int item;
int error;
GMTAPI_DATA_OBJECT *S_obj;
GMT_CTRL *GMT;
modea = mode;
GMT = API->GMT;
GMT_Report(API, 6u, "api_export_vector: Passed ID ... | GMT_LOCAL int api_export_vector (struct GMTAPI_CTRL *API, int object_ID, unsigned int mode, struct GMT_VECTOR *V_obj) {
int item, error;
unsigned int kind;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
struct GMT_CTRL *GMT = API->GMT;
GMT_Report (API, GMT_MSG_DEBUG, "api_export_vector: Passed ID = %d and mode = %d... | api_export_vector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_extract_argument(char *optarg, char *argument, char **key, int k,
bool colon, int *n_pre) {
int v6;
unsigned int pos;
char *c;
char *ca;
char *cb;
char code[3];
unsigned long v17;
v17 = __readfsqword(0x28u);
pos = 0;
*n_pre = 0;
if (k < 0 || key[k][3] != 61)
g... | GMT_LOCAL int api_extract_argument (char *optarg, char *argument, char **key, int k, bool colon, int *n_pre) {
char *c = NULL;
unsigned int pos = 0;
*n_pre = 0;
if (k >= 0 && key[k][K_EQUAL] == '=') {
*n_pre = (key[k][K_MODIFIER] && isdigit (key[k][K_MODIFIER])) ? (int)(key[k][K_MODIFIER]-'0') : 0;
... | api_extract_argument | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_fft_1d(GMTAPI_CTRL *API, GMT_DATASET *D, int direction,
unsigned int mode, GMT_FFT_WAVENUMBER *K) {
float v6;
int status;
uint64_t seg;
uint64_t row;
uint64_t rowa;
uint64_t tbl;
uint64_t last;
float *data;
GMT_DATASEGMENT *S;
status = 0;
last = 0;
data = 0;
if (API) {
... | GMT_LOCAL int api_fft_1d (struct GMTAPI_CTRL *API, struct GMT_DATASET *D, int direction, unsigned int mode, struct GMT_FFT_WAVENUMBER *K) {
int status = 0;
uint64_t seg, row, tbl, last = 0, col = 0;
float *data = NULL;
struct GMT_DATASEGMENT *S = NULL;
gmt_M_unused(K);
if (API == NULL) return_error (API, GMT_NO... | api_fft_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_fft_2d(GMTAPI_CTRL *API, GMT_GRID *G, int direction, unsigned int mode,
GMT_FFT_WAVENUMBER *K) {
int status;
if (K && !direction)
fft_save2d(API->GMT, G, 0, K);
gmt_grd_mux_demux(API->GMT, G->header, G->data, 1u);
status =
GMT_FFT_2D(API, G->data, G->header->mx, G->header->my, ... | GMT_LOCAL int api_fft_2d (struct GMTAPI_CTRL *API, struct GMT_GRID *G, int direction, unsigned int mode, struct GMT_FFT_WAVENUMBER *K) {
int status;
if (K && direction == GMT_FFT_FWD) fft_save2d (API->GMT, G, GMT_IN, K);
gmt_grd_mux_demux (API->GMT, G->header, G->data, GMT_GRID_IS_INTERLEAVED);
#ifdef DEBUG
gmt_... | api_fft_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_FFT_WAVENUMBER *api_fft_init_1d(GMTAPI_CTRL *API, GMT_DATASET *D,
unsigned int mode, void *v_info) {
return 0;
} | GMT_LOCAL struct GMT_FFT_WAVENUMBER * api_fft_init_1d (struct GMTAPI_CTRL *API, struct GMT_DATASET *D, unsigned int mode, void *v_info) {
struct GMT_FFT_WAVENUMBER *K = NULL;
gmt_M_unused(API); gmt_M_unused(D); gmt_M_unused(mode); gmt_M_unused(v_info);
#if 0
unsigned n_cols = 1;
struct GMT_FFT_INFO *F = api_get_f... | api_fft_init_1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_FFT_WAVENUMBER *api_fft_init_2d(GMTAPI_CTRL *API, GMT_GRID *G,
unsigned int mode, void *v_info) {
unsigned int verbose;
bool v6;
double v7;
double DIST_M_PR_DEG;
double delta_kx;
unsigned int k;
unsigned int pick;
size_t worksize;
double tdummy;
double edummy;... | GMT_LOCAL struct GMT_FFT_WAVENUMBER *api_fft_init_2d (struct GMTAPI_CTRL *API, struct GMT_GRID *G, unsigned int mode, void *v_info) {
unsigned int k, factors[32];
uint64_t node;
size_t worksize;
bool stop;
double tdummy, edummy;
struct GMT_FFT_SUGGESTION fft_sug[GMT_FFT_N_SUGGEST];
struct GMT_FFT_INFO *F = NUL... | api_fft_init_2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool api_file_with_netcdf_directive(GMTAPI_CTRL *API, const char *file) {
char *duplicate;
char *c;
if (!strchr(file, 63))
return 0;
duplicate = strdup(file);
c = strchr(duplicate, 63);
if (c)
*c = 0;
if (gmt_access(API->GMT, duplicate, 0)) {
free(duplicate);
return 0;
} else {
free... | GMT_LOCAL bool api_file_with_netcdf_directive (struct GMTAPI_CTRL *API, const char *file) {
char *duplicate = NULL, *c = NULL;
if (!strchr (file, '?')) return false;
duplicate = strdup (file);
c = strchr (duplicate, '?');
if (c) c[0] = '\0';
if (gmt_access (API->GM... | api_file_with_netcdf_directive | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool api_found_marker(char *text) { return *text == 63 && !text[1]; } | GMT_LOCAL bool api_found_marker (char *text) {
if (text[0] == '?' && text[1] == '\0') return true;
return false;
} | api_found_marker | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void api_free_sharedlibs(GMTAPI_CTRL *API) {
char *v1;
unsigned int k;
for (k = 0; k < API->n_shared_libs; ++k) {
if (k && API->lib[k].handle && dlclose(API->lib[k].handle)) {
v1 = dlerror();
GMT_Report(API, 1u, "Error closing GMT %s shared library: %s\n",
API->lib[k].name, v1);
... | GMT_LOCAL void api_free_sharedlibs (struct GMTAPI_CTRL *API) {
unsigned int k;
for (k = 0; k < API->n_shared_libs; k++) {
if (k > 0 && API->lib[k].handle && dlclose (API->lib[k].handle))
GMT_Report (API, GMT_MSG_NORMAL, "Error closing GMT %s shared library: %s\n", API->lib[k].name, dlerror());
gmt_M_str_free (... | api_free_sharedlibs | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
p_func_uint64_t api_get_2d_to_index(GMTAPI_CTRL *API, GMT_enum_fmt shape,
unsigned int mode) {
unsigned int v3;
v3 = mode & 0xC;
if (v3 == 8) {
if (shape)
return (p_func_uint64_t)api_2d_to_index_f_cplx_imag;
else
return (p_func_uint64_t)api_2d_to_index_c_cp... | GMT_LOCAL p_func_uint64_t api_get_2d_to_index (struct GMTAPI_CTRL *API, enum GMT_enum_fmt shape, unsigned int mode) {
p_func_uint64_t p = NULL;
switch (mode & GMT_GRID_IS_COMPLEX_MASK) {
case GMT_GRID_IS_REAL:
p = (shape == GMT_IS_ROW_FORMAT) ? api_2d_to_index_c_normal : api_2d_to_index_f_normal;
break;... | api_get_2d_to_index | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMTAPI_CTRL *api_get_api_ptr(GMTAPI_CTRL *ptr) { return ptr; } | GMT_LOCAL inline struct GMTAPI_CTRL * api_get_api_ptr (struct GMTAPI_CTRL *ptr) {return (ptr);} | api_get_api_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double *api_get_coord_ptr(double **ptr) { return *ptr; } | GMT_LOCAL inline double * api_get_coord_ptr (double **ptr) {return (*ptr);} | api_get_coord_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_PALETTE *api_get_cpt_ptr(GMT_PALETTE **ptr) { return *ptr; } | GMT_LOCAL inline struct GMT_PALETTE * api_get_cpt_ptr (struct GMT_PALETTE **ptr) {return (*ptr);} | api_get_cpt_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void *api_get_data(void *V_API, int object_ID, unsigned int mode, void *data) {
bool was_enabled;
int family;
int flag;
int item;
void *new_obj;
GMTAPI_CTRL *API;
flag = -1;
if (V_API) {
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
if (object_ID == -1) {
family = API->... | GMT_LOCAL void *api_get_data (void *V_API, int object_ID, unsigned int mode, void *data) {
int item, family, flag = GMT_NOTSET;
bool was_enabled;
void *new_obj = NULL;
struct GMTAPI_CTRL *API = NULL;
if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
API = api_get_api_ptr (V_API);
API->error = ... | api_get_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *api_get_dataset_data(GMT_DATASET *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_DATASET * api_get_dataset_data (struct GMT_DATASET *ptr) {return (ptr);} | api_get_dataset_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *api_get_dataset_ptr(GMT_DATASET **ptr) { return *ptr; } | GMT_LOCAL inline struct GMT_DATASET * api_get_dataset_ptr (struct GMT_DATASET **ptr) {return (*ptr);} | api_get_dataset_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_FFT_INFO *api_get_fftinfo_ptr(GMT_FFT_INFO *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_FFT_INFO * api_get_fftinfo_ptr (struct GMT_FFT_INFO *ptr) {return (ptr);} | api_get_fftinfo_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_FFT_WAVENUMBER **api_get_fftwave_addr(GMT_FFT_WAVENUMBER **ptr) {
return ptr;
} | GMT_LOCAL inline struct GMT_FFT_WAVENUMBER ** api_get_fftwave_addr (struct GMT_FFT_WAVENUMBER **ptr) {return (ptr);} | api_get_fftwave_addr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_FFT_WAVENUMBER *api_get_fftwave_ptr(GMT_FFT_WAVENUMBER *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_FFT_WAVENUMBER * api_get_fftwave_ptr (struct GMT_FFT_WAVENUMBER *ptr) {return (ptr);} | api_get_fftwave_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID *api_get_grid_data(GMT_GRID *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_GRID * api_get_grid_data (struct GMT_GRID *ptr) {return (ptr);} | api_get_grid_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID *api_get_grid_ptr(GMT_GRID **ptr) { return *ptr; } | GMT_LOCAL inline struct GMT_GRID * api_get_grid_ptr (struct GMT_GRID **ptr) {return (*ptr);} | api_get_grid_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_get_id(void *V_API, unsigned int family, unsigned int direction,
void *resource) {
unsigned int i;
int item;
GMTAPI_CTRL *API;
if (!V_API) {
gmtapi_report_error(0, 27);
return 27;
}
API = api_get_api_ptr((GMTAPI_CTRL *)V_API);
API->error = 0;
i = 0;
item = -1;
while (... | GMT_LOCAL int api_get_id (void *V_API, unsigned int family, unsigned int direction, void *resource) {
unsigned int i;
int item;
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;
for (i = 0, item = GMT_NOTSET; ite... | api_get_id | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_IMAGE *api_get_image_data(GMT_IMAGE *ptr) { return ptr; } | GMT_LOCAL inline struct GMT_IMAGE * api_get_image_data (struct GMT_IMAGE *ptr) {return (ptr);} | api_get_image_data | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_IMAGE *api_get_image_ptr(GMT_IMAGE **ptr) { return *ptr; } | GMT_LOCAL inline struct GMT_IMAGE * api_get_image_ptr (struct GMT_IMAGE **ptr) {return (*ptr);} | api_get_image_ptr | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRB(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return h->pad[0] + col + layer * h->size + (row + h->pad[3]) * h->mx;
} | GMT_LOCAL uint64_t api_get_index_from_TRB (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
return (h->pad[XLO] + col) + ((row + h->pad[YHI]) * h->mx) + (layer * h->size);
} | api_get_index_from_TRB | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRI(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return 2 * (col + h->mx * (row + h->pad[3]) + h->pad[0]) + 1;
} | GMT_LOCAL uint64_t api_get_index_from_TRI (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
gmt_M_unused(layer);
return (2ULL*gmt_M_ijp (h, row, col)+1ULL);
} | api_get_index_from_TRI | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRL(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return h->pad[0] + col + h->n_bands * h->mx * (row + h->pad[3]) +
layer * h->mx;
} | GMT_LOCAL uint64_t api_get_index_from_TRL (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
return (h->pad[XLO] + col) + (layer * h->mx) + ((row + h->pad[YHI]) * h->mx * h->n_bands);
} | api_get_index_from_TRL | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRP(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return h->n_bands * (h->pad[0] + col + (row + h->pad[3]) * h->mx) + layer;
} | GMT_LOCAL uint64_t api_get_index_from_TRP (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
return ((h->pad[XLO] + col) * h->n_bands) + layer + ((row + h->pad[YHI]) * h->mx * h->n_bands);
} | api_get_index_from_TRP | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRR(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return 2 * (col + h->mx * (row + h->pad[3]) + h->pad[0]);
} | GMT_LOCAL uint64_t api_get_index_from_TRR (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
gmt_M_unused(layer);
return (2ULL*gmt_M_ijp (h, row, col));
} | api_get_index_from_TRR | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t api_get_index_from_TRS(GMT_GRID_HEADER *h, uint64_t row, uint64_t col,
uint64_t layer) {
return col + h->mx * (row + h->pad[3]) + h->pad[0];
} | GMT_LOCAL uint64_t api_get_index_from_TRS (struct GMT_GRID_HEADER *h, uint64_t row, uint64_t col, uint64_t layer) {
gmt_M_unused(layer);
return (gmt_M_ijp (h, row, col));
} | api_get_index_from_TRS | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_get_item(GMTAPI_CTRL *API, unsigned int family, void *data) {
unsigned int i;
int item;
GMTAPI_DATA_OBJECT *S_obj;
API->error = 0;
i = 0;
item = -1;
while (item == -1 && i < API->n_objects) {
if (API->object[i]) {
S_obj = API->object[i];
if (S_obj->data) {
if (family != S_... | GMT_LOCAL int api_get_item (struct GMTAPI_CTRL *API, unsigned int family, void *data) {
unsigned int i;
int item;
struct GMTAPI_DATA_OBJECT *S_obj = NULL;
API->error = GMT_NOERROR;
for (i = 0, item = GMT_NOTSET; item == GMT_NOTSET && i < API->n_objects; i++) {
if (!API->object[i]) continue;
S_obj = API->o... | api_get_item | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int api_get_key(void *API, char option, char **keys, int n_keys) {
int k;
if (n_keys && !keys)
GMT_Report(
API, 1u,
"api_get_key: INTERNAL ERROR: keys array is NULL but n_keys = %d\n",
n_keys);
for (k = 0; keys && k < n_keys; ++k) {
if (option == *keys[k])
return k;
}
re... | GMT_LOCAL int api_get_key (void *API, char option, char *keys[], int n_keys) {
int k;
if (n_keys && keys == NULL)
GMT_Report (API, GMT_MSG_NORMAL, "api_get_key: INTERNAL ERROR: keys array is NULL but n_keys = %d\n", n_keys);
for (k = 0; keys && k < n_keys; k++) if (keys[k][K_OPT] == option) return (k);
return (... | api_get_key | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_MATRIX *api_get_matrix_ptr(GMT_MATRIX **ptr) { return *ptr; } | GMT_LOCAL inline struct GMT_MATRIX * api_get_matrix_ptr (struct GMT_MATRIX **ptr) {return (*ptr);} | api_get_matrix_ptr | 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.