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
void *gmt_z_input(GMT_CTRL *GMT, FILE *fp, uint64_t *n, int *status) { *status = (*(long (**)(GMT_CTRL *, FILE *, uint64_t, char *))( (char *)&loc_41468 + (_QWORD)GMT))(GMT, fp, *n, (char *)&loc_41498 + (_QWORD)GMT); if (*status != 9) return GMT->current.io.curr_re...
void * gmt_z_input (struct GMT_CTRL *GMT, FILE *fp, uint64_t *n, int *status) { if ((*status = GMT->current.io.read_item (GMT, fp, *n, GMT->current.io.curr_rec)) == GMT_DATA_READ_ERROR) { GMT->current.io.status = GMT_IO_EOF; return (NULL); } return (GMT->current.io.curr_rec); }
gmt_z_input
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_z_output(GMT_CTRL *GMT, FILE *fp, uint64_t n, double *data) { if (gmt_skip_output(GMT, data, n)) return -1; if (GMT->current.io.write_item(GMT, fp, n, data)) return -1; return 0; }
int gmt_z_output (struct GMT_CTRL *GMT, FILE *fp, uint64_t n, double *data) { int err; if (gmt_skip_output (GMT, data, n)) return (-1); err = GMT->current.io.write_item (GMT, fp, n, data); return (err ? -1 : 0); }
gmt_z_output
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_z_to_zz(GMT_CTRL *GMT, double z) { double zz[2]; *(_QWORD *)&zz[1] = __readfsqword(0x28u); ((void (*)(GMT_CTRL *, double *, double))GMT->current.proj.fwd_z)(GMT, zz, z); return GMT->current.proj.origin[2] + GMT->current.proj.scale[2] * zz[0]; }
double gmt_z_to_zz (struct GMT_CTRL *GMT, double z) { double zz; (*GMT->current.proj.fwd_z) (GMT, z, &zz); return (zz * GMT->current.proj.scale[GMT_Z] + GMT->current.proj.origin[GMT_Z]); }
gmt_z_to_zz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_zcrit(GMT_CTRL *GMT, double alpha) { double alphaa; double sign; if (alpha <= 0.5) { alphaa = alpha + alpha; sign = -1.0; } else { alphaa = 1.0 - alpha + 1.0 - alpha; sign = 1.0; } return gmt_erfinv(GMT, 1.0 - alphaa) * (sign * 1.414213562373095); }
double gmt_zcrit (struct GMT_CTRL *GMT, double alpha) { double sign; if (alpha > 0.5) { alpha = (1.0 - alpha) * 2.0; sign = 1.0; } else { alpha *= 2.0; sign = -1.0; } return (sign * M_SQRT2 * gmt_erfinv (GMT, 1.0 - alpha)); }
gmt_zcrit
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_zdist(GMT_CTRL *GMT, double x) { return 0.5 * (erf(x / 1.414213562373095) + 1.0); }
double gmt_zdist (struct GMT_CTRL *GMT, double x) { gmt_M_unused(GMT); return (0.5 * (erf (x / M_SQRT2) + 1.0)); }
gmt_zdist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtapi_close_grd(GMT_CTRL *GMT, GMT_GRID *G) { GMT_GRID_ROWBYROW *R; R = api_get_rbr_ptr((GMT_GRID_ROWBYROW *)G->extra); gmt_free_func(GMT, R->v_row, 0, "gmtapi_close_grd"); R->v_row = 0; if (*GMT->session.grdformat[G->header->type] == 99 || *GMT->session.grdformat[G->header->type] == 110) nc_...
void gmtapi_close_grd (struct GMT_CTRL *GMT, struct GMT_GRID *G) { struct GMT_GRID_ROWBYROW *R = api_get_rbr_ptr (G->extra); gmt_M_free (GMT, R->v_row); if (GMT->session.grdformat[G->header->type][0] == 'c' || GMT->session.grdformat[G->header->type][0] == 'n') nc_close (R->fid); else gmt_fclose (GMT, R->fp); ...
gmtapi_close_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtapi_count_objects(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 ...
unsigned int gmtapi_count_objects (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 != (e...
gmtapi_count_objects
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtapi_create_header_item(GMTAPI_CTRL *API, unsigned int mode, void *arg) { char *Cmd; size_t v4; char *txt; if ((mode & 1) != 0) Cmd = GMT_Create_Cmd(API, (GMT_OPTION *)arg); else Cmd = (char *)arg; txt = Cmd; memset(buffer_43, 0, sizeof(buffer_43)); if ((...
char *gmtapi_create_header_item (struct GMTAPI_CTRL *API, unsigned int mode, void *arg) { size_t lim; char *txt = (mode & GMT_COMMENT_IS_OPTION) ? GMT_Create_Cmd (API, arg) : (char *)arg; static char buffer[GMT_BUFSIZ]; gmt_M_memset (buffer, GMT_BUFSIZ, char); if (mode & GMT_COMMENT_IS_TITLE) strcat (buffer, " Ti...
gmtapi_create_header_item
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtapi_garbage_collection(GMTAPI_CTRL *API, int level) { unsigned int v2; void *data; unsigned int v4; unsigned int i; unsigned int ia; unsigned int j; unsigned int n_free; unsigned int u_level; int error; void *address; GMTAPI_DATA_OBJECT *S_obj; GMTAPI_DATA_OBJECT *S_obja; u_level = 0;...
void gmtapi_garbage_collection (struct GMTAPI_CTRL *API, int level) { unsigned int i, j, n_free = 0, u_level = 0; int error = GMT_NOERROR; void *address = NULL; struct GMTAPI_DATA_OBJECT *S_obj = NULL; if (API->n_objects == 0) return; i = n_free = 0; if (level != GMT_NOTSET) u_level = level; while ...
gmtapi_garbage_collection
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtapi_report_error(void *V_API, int error) { bool v2; struct _IO_FILE *fp; GMTAPI_CTRL *API; char message[264]; unsigned long v7; v7 = __readfsqword(0x28u); API = api_get_api_ptr((GMTAPI_CTRL *)V_API); v2 = !API || API->error != API->last_error; if (v2 && error) { if (!API || !API->GMT || (f...
int gmtapi_report_error (void *V_API, int error) { FILE *fp = NULL; bool report; char message[GMT_LEN256]; struct GMTAPI_CTRL *API = api_get_api_ptr (V_API); report = (API) ? API->error != API->last_error : true; if (report && error != GMT_OK) { if (!API || !API->GMT || (fp = API->GMT->session.std[GMT_ERR]...
gmtapi_report_error
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtapi_unregister_io(GMTAPI_CTRL *API, int object_ID, unsigned int direction) { unsigned int item; int s_item; if (!API) return 27; if (!API->n_objects) return gmtapi_report_error(API, 47); s_item = gmtapi_validate_id(API, -1, object_ID, direction, -1); if (s_item == -1...
int gmtapi_unregister_io (struct GMTAPI_CTRL *API, int object_ID, unsigned int direction) { int s_item; unsigned item; if (API == NULL) return (GMT_NOT_A_SESSION); if (API->n_objects == 0) return (gmtapi_report_error (API, GMT_NO_RESOURCES)); if ((s_item = gmtapi_validate_id (API, GMT_NOTSET, object_ID, d...
gmtapi_unregister_io
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtapi_validate_id(GMTAPI_CTRL *API, int family, int object_ID, int direction, int module_input) { unsigned long module_inputa; unsigned int i; int item; GMTAPI_DATA_OBJECT *S_obj; HIDWORD(module_inputa) = direction; LODWORD(module_inputa) = module_input; i = 0; item = -1; ...
int gmtapi_validate_id (struct GMTAPI_CTRL *API, int family, int object_ID, int direction, int module_input) { unsigned int i; int item; struct GMTAPI_DATA_OBJECT *S_obj = NULL; for (i = 0, item = GMT_NOTSET; item == GMT_NOTSET && i < API->n_objects; i++) { S_obj = API->object[i]; if (!S_obj) c...
gmtapi_validate_id
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtfft_fourt_stats(GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows, unsigned int *f, double *r, size_t *s, double *t) { unsigned int prime_factors; unsigned int v8; uint64_t v9; size_t v10; double v11; unsigned int i; signed int sum2; signe...
void gmtfft_fourt_stats (struct GMT_CTRL *GMT, unsigned int n_columns, unsigned int n_rows, unsigned int *f, double *r, size_t *s, double *t) { unsigned int n_factors, i, sum2, sumnot2, nnot2; uint64_t nonsymx, nonsymy, nonsym, storage, ntotal; double err_scale; n_factors = ...
gmtfft_fourt_stats
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtgrdio_free_grid_ptr(GMT_CTRL *GMT, GMT_GRID *G, bool free_grid) { if (!G) return 0; if (G->data && free_grid) { if (G->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) { gmt_free_func(GMT, G->data, 1, "gmtgrdio_free_grid_ptr"); G->data = 0; ...
unsigned int gmtgrdio_free_grid_ptr (struct GMT_CTRL *GMT, struct GMT_GRID *G, bool free_grid) { if (!G) return 0; if (G->data && free_grid) { if (G->alloc_mode == GMT_ALLOC_INTERNALLY) gmt_M_free_aligned (GMT, G->data); G->data = NULL; } if (G->x && G->y && free_grid) { if (G->alloc_mode == GMT_ALLOC_I...
gmtgrdio_free_grid_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtgrdio_init_grdheader(GMT_CTRL *GMT, unsigned int direction, GMT_GRID_HEADER *header, GMT_OPTION *options, uint64_t *dim, double *wesn, double *inc, unsigned int registration, unsigned int mode) { unsigned long v9; double v10;...
int gmtgrdio_init_grdheader (struct GMT_CTRL *GMT, unsigned int direction, struct GMT_GRID_HEADER *header, struct GMT_OPTION *options, uint64_t dim[], double wesn[], double inc[], unsigned int registration, unsigned int mode) { double wesn_dup[4] = {0.0, 0.0, 0.0, 0.0}, inc_dup[2] = {0.0...
gmtgrdio_init_grdheader
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_abs_col_dist(GMT_CTRL *GMT, uint64_t col) { return fabs(GMT->current.io.curr_rec[col] - GMT->current.io.prev_rec[col]); }
GMT_LOCAL double gmtinit_abs_col_dist (struct GMT_CTRL *GMT, uint64_t col) { return (fabs (GMT->current.io.curr_rec[col] - GMT->current.io.prev_rec[col])); }
gmtinit_abs_col_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_abs_col_map_dist(GMT_CTRL *GMT, uint64_t col) { double X[5]; unsigned long v4; v4 = __readfsqword(0x28u); j_gmt_geo_to_xy(GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], X, &X[2]); j_gmt_geo_to_xy(GMT, *(double *)((char *)&loc_41498 + (_QWORD)GMT), ...
GMT_LOCAL double gmtinit_abs_col_map_dist (struct GMT_CTRL *GMT, uint64_t col) { double X[2][2]; gmt_geo_to_xy (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], &X[GMT_X][0], &X[GMT_Y][0]); gmt_geo_to_xy (GMT, GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y], &X[GMT_X][1], &X[GM...
gmtinit_abs_col_map_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_append_trans(char *text, double transparency) { long v2; char trans[72]; unsigned long v4; v4 = __readfsqword(0x28u); memset(trans, 0, 64); if (fabs(transparency) >= 0.00000001 && *text != 45) { v2 = lrint(transparency * 100.0); snprintf(trans, 0x40u, "@%ld", v2); strcat(text, tran...
GMT_LOCAL void gmtinit_append_trans (char *text, double transparency) { char trans[GMT_LEN64] = {""}; if (!gmt_M_is_zero (transparency) && text[0] != '-') { snprintf (trans, GMT_LEN64, "@%ld", lrint (100.0 * transparency)); strcat (text, trans); } }
gmtinit_append_trans
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_backwards_SQ_parsing(GMT_CTRL *GMT, char option, char *item) { int v3; int j; GMT_Report(GMT->parent, 3u, "Warning: Option -%c[-]<mode>[/<threshold>] is deprecated. Use " "-n<mode>[+a][+t<threshold>] instead.\n", (unsigned int)option); for (j = 0; j <= 2 && it...
int gmtinit_backwards_SQ_parsing (struct GMT_CTRL *GMT, char option, char *item) { int j; GMT_Report (GMT->parent, GMT_MSG_COMPAT, "Warning: Option -%c[-]<mode>[/<threshold>] is deprecated. Use -n<mode>[+a][+t<threshold>] instead.\n", (int)option); for (j = 0; j < 3 && item[j]; j++) { switch (item[j]) { case ...
gmtinit_backwards_SQ_parsing
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_badvalreport(GMT_CTRL *GMT, const char *keyword) { GMT_Report(GMT->parent, 1u, "Syntax error: Unrecognized keyword %s. You may have been using a " "deprecated GMT3 or GMT4 keyword.\n" "Change keyword or use with GMT_COMPATIBILITY=4. Please see " "http:/...
GMT_LOCAL bool gmtinit_badvalreport (struct GMT_CTRL *GMT, const char *keyword) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error: Unrecognized keyword %s. You may have been using a deprecated GMT3 or GMT4 keyword.\nChange keyword or use with GMT_COMPATIBILITY=4. " GMT_COMPAT_INFO, keyword); return (true); }
gmtinit_badvalreport
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_compare_cols(const void *point_1, const void *point_2) { if (*(_DWORD *)point_1 >= *(_DWORD *)point_2) return *(_DWORD *)point_1 > *(_DWORD *)point_2; else return -1; }
GMT_LOCAL int gmtinit_compare_cols (const void *point_1, const void *point_2) { if (((struct GMT_COL_INFO *)point_1)->col < ((struct GMT_COL_INFO *)point_2)->col) return (-1); if (((struct GMT_COL_INFO *)point_1)->col > ((struct GMT_COL_INFO *)point_2)->col) return (+1); return (0); }
gmtinit_compare_cols
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_conf(GMT_CTRL *GMT) { int i; unsigned int ia; int errord; int errore; int errorf; int errorg; int error; int errorh; int errori; int errorj; int errork; int errorl; int errorm; int errorn; int erroro; int errorp; int errora; int errorb; int errorc; strcpy(GMT->curre...
void gmtinit_conf (struct GMT_CTRL *GMT) { int i, error = 0; double const pt = 1.0/72.0; strcpy(GMT->current.setting.format_clock_in, "hh:mm:ss"); gmtlib_clock_C_format (GMT, GMT->current.setting.format_clock_in, &GMT->current.io.clock_input, 0); strcpy (GMT->current.setting.format_date_in, "yyyy-mm-dd...
gmtinit_conf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_conf_US(GMT_CTRL *GMT) { int case_val; int case_vala; int case_valb; int case_valc; unsigned int i; case_val = gmt_hash_lookup(GMT, "PROJ_LENGTH_UNIT", keys_hashnode, 0xCEu, 0xCEu); if (case_val >= 0) GMT_keywords_updated[case_val] = 1; GMT->current.setting.proj_length_unit = 1; ...
void gmtinit_conf_US (struct GMT_CTRL *GMT) { int i, case_val; case_val = gmt_hash_lookup (GMT, "PROJ_LENGTH_UNIT", keys_hashnode, GMT_N_KEYS, GMT_N_KEYS); if (case_val >= 0) GMT_keywords_updated[case_val] = true; GMT->current.setting.proj_length_unit = GMT_INCH; case_val = gmt_hash_lookup (GMT, "PS_...
gmtinit_conf_US
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_count_x_terms(char *txt, int64_t *xstart, int64_t *xstop) { unsigned int n; size_t k; size_t len; n = 0; len = strlen(txt); k = 0; while (k < len) { if (((*__ctype_b_loc())[txt[k + 1]] & 0x800) != 0) { n += atoi(&txt[++k]); while (txt[k] && ((*__ctype_b_loc())[txt[k]] & 0x800)...
GMT_LOCAL int gmtinit_count_x_terms (char *txt, int64_t *xstart, int64_t *xstop) { unsigned int n = 0; size_t len = strlen (txt), k = 0; while (k < len) { if (isdigit (txt[k+1])) { n += atoi (&txt[k+1]); k++; while (txt[k] && isdigit (txt[k])) k++; } else { n++; k++; } } *xstart = *xs...
gmtinit_count_x_terms
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_decode4_wesnz(GMT_CTRL *GMT, const char *in, unsigned int *side, bool *draw_box, int part) { bool go; int i; int ia; int k; go = 1; ++GMT->current.map.frame.set_frame[part]; if (*(_DWORD *)((char *)&loc_12E42C + (_QWORD)GMT) <= 1u && GMT->current.map.frame.set_...
GMT_LOCAL int gmtinit_decode4_wesnz (struct GMT_CTRL *GMT, const char *in, unsigned int side[], bool *draw_box, int part) { int i, k; bool go = true; GMT->current.map.frame.set_frame[part]++; if (GMT->current.map.frame.set_frame[GMT_PRIMARY] > 1 || GMT->current.map.frame.set_frame[GMT_SECONDARY] > 1) { GMT_...
gmtinit_decode4_wesnz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_decode5_wesnz(GMT_CTRL *GMT, const char *in, bool check) { bool s_given; unsigned int k; unsigned int error; unsigned int z_axis[4]; unsigned int f_side[6]; unsigned long v9; v9 = __readfsqword(0x28u); error = 0; memset(f_side, 0, 20); *(_OWORD *)z_axis = 0u; s_given = 0; if (check ...
GMT_LOCAL int gmtinit_decode5_wesnz (struct GMT_CTRL *GMT, const char *in, bool check) { unsigned int k, error = 0, f_side[5] = {0, 0, 0, 0, 0}, z_axis[4] = {0, 0, 0, 0}; bool s_given = false; if (check) { GMT->current.map.frame.set_frame[GMT_PRIMARY]++, GMT->current.map.frame.set_frame[GMT_SECONDARY]++; if (G...
gmtinit_decode5_wesnz
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_decode_tinfo(GMT_CTRL *GMT, int axis, char flag, char *in, GMT_PLOT_AXIS *A) { char flaga; int k; int n_int[6]; unsigned long v11; v11 = __readfsqword(0x28u); if (!in) return 0; if (flag == 99) { if (gmt_access(GMT, in + 1, 4)) { GMT_Report( GM...
GMT_LOCAL int gmtinit_decode_tinfo (struct GMT_CTRL *GMT, int axis, char flag, char *in, struct GMT_PLOT_AXIS *A) { char *str = "xyz"; if (!in) return (GMT_NOERROR); if (flag == 'c') { int k, n_int[4]; char *list = "aifg"; if (!(gmt_access (GMT, &in[1], R_OK))) { gmt_M_str_free (A->file_custom); A->...
gmtinit_decode_tinfo
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_def_us_locale(GMT_CTRL *GMT) { *(_QWORD *)&GMT->current.language.month_name[0][0][0] = 0x797261756E614ALL; *(_DWORD *)&GMT->current.language.month_name[1][0][0] = 7233866; *(_WORD *)&GMT->current.language.month_name[2][0][0] = 74; *(_DWORD *)&GMT->current.language.month_name[3][0][0] = 5128522; s...
GMT_LOCAL void gmtinit_def_us_locale (struct GMT_CTRL *GMT) { strcpy (GMT->current.language.month_name[0][0], "January"); strcpy (GMT->current.language.month_name[1][0], "Jan"); strcpy (GMT->current.language.month_name[2][0], "J"); strcpy (GMT->current.language.month_name[3][0], "JAN"); strcpy (GMT->curr...
gmtinit_def_us_locale
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_determine_R_option_from_data(GMTAPI_CTRL *API, const char *args, bool exact, GMT_OPTION **options) { if (GMT_Find_Option(API, 82, *options)) return 0; if (strchr(args, 103)) return gmtinit_set_missing_R_from_grid(API, args, exact, options); if (strchr(a...
GMT_LOCAL int gmtinit_determine_R_option_from_data (struct GMTAPI_CTRL *API, const char *args, bool exact, struct GMT_OPTION **options) { if (GMT_Find_Option (API, 'R', *options)) return GMT_NOERROR; if (strchr (args, 'g')) return (gmtinit_set_missing_R_from_grid (API, args, exact, options)); else if (strc...
gmtinit_determine_R_option_from_data
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_free_GMT_ctrl(GMT_CTRL *GMT) { if (GMT) free(GMT); }
GMT_LOCAL void gmtinit_free_GMT_ctrl (struct GMT_CTRL *GMT) { if (!GMT) return; gmt_M_str_free (GMT); }
gmtinit_free_GMT_ctrl
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_free_dirnames(GMT_CTRL *GMT) { free(GMT->session.SHAREDIR); GMT->session.SHAREDIR = 0; free(*(void **)((char *)&stru_20C28.r_offset + (_QWORD)GMT)); *(unsigned long *)((char *)&stru_20C28.r_offset + (_QWORD)GMT) = 0; free(*(void **)((char *)&stru_20C40.r_offset + (_QWORD)GMT)); *(unsigned long ...
GMT_LOCAL void gmtinit_free_dirnames (struct GMT_CTRL *GMT) { gmt_M_str_free (GMT->session.SHAREDIR); gmt_M_str_free (GMT->session.HOMEDIR); gmt_M_str_free (GMT->session.DATADIR); gmt_M_str_free (GMT->session.DCWDIR); gmt_M_str_free (GMT->session.GSHHGDIR); gmt_M_str_free (GMT->session.USERDIR); gmt_M_str_fre...
gmtinit_free_dirnames
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_free_plot_array(GMT_CTRL *GMT) { if (*(_QWORD *)((char *)&loc_12E598 + (_QWORD)GMT)) { gmt_free_func(GMT, GMT->current.plot.x, 0, "gmtinit_free_plot_array"); GMT->current.plot.x = 0; gmt_free_func(GMT, GMT->current.plot.y, 0, "gmtinit_free_plot_array"); GMT->current.plot.y = 0; gmt_fr...
GMT_LOCAL void gmtinit_free_plot_array (struct GMT_CTRL *GMT) { if (GMT->current.plot.n_alloc) { gmt_M_free (GMT, GMT->current.plot.x); gmt_M_free (GMT, GMT->current.plot.y); gmt_M_free (GMT, GMT->current.plot.pen); } GMT->current.plot.n = GMT->current.plot.n_alloc = 0; }
gmtinit_free_plot_array
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_free_user_media(GMT_CTRL *GMT) { unsigned int i; if (GMT->session.n_user_media) { for (i = 0; i < GMT->session.n_user_media; ++i) { free(*(void **)(*(unsigned long *)((char *)&stru_20C58.r_offset + (_QWORD)GMT) + 8LL * i)); ...
GMT_LOCAL void gmtinit_free_user_media (struct GMT_CTRL *GMT) { unsigned int i; if (GMT->session.n_user_media == 0) return; for (i = 0; i < GMT->session.n_user_media; i++) gmt_M_str_free (GMT->session.user_media_name[i]); gmt_M_free (GMT, GMT->session.user_media_name); gmt_M_free (GMT, GMT->session.user_med...
gmtinit_free_user_media
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_freeshorthand(GMT_CTRL *GMT) { unsigned int i; if (GMT->session.n_shorthands) { for (i = 0; i < GMT->session.n_shorthands; ++i) { free(*(void **)(*(unsigned long *)((char *)&stru_20C70.r_offset + (_QWORD)GMT) + 16LL * i)); ...
GMT_LOCAL void gmtinit_freeshorthand (struct GMT_CTRL *GMT) { unsigned int i; if (GMT->session.n_shorthands == 0) return; for (i = 0; i < GMT->session.n_shorthands; ++i) { gmt_M_str_free (GMT->session.shorthand[i].suffix); gmt_M_str_free (GMT->session.shorthand[i].format); } gmt_M_free (GMT, GMT->session.s...
gmtinit_freeshorthand
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_get_history(GMT_CTRL *GMT) { int v2; int v3; bool done; bool process; int id; FILE *fp; char option[64]; char line[4096]; char hfile[4096]; char cwd[4096]; char value[4104]; unsigned long v13; v13 = __readfsqword(0x28u); done = 0; process = 0; memset(line, 0, sizeof(line)); ...
GMT_LOCAL int gmtinit_get_history (struct GMT_CTRL *GMT) { int id; size_t len = strlen ("BEGIN GMT " GMT_PACKAGE_VERSION); bool done = false, process = false; char line[GMT_BUFSIZ] = {""}, hfile[GMT_BUFSIZ] = {""}, cwd[GMT_BUFSIZ] = {""}; char option[GMT_LEN64] = {""}, value[GMT_BUFSIZ] = {""}; FILE *fp = NULL; ...
gmtinit_get_history
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_get_language(GMT_CTRL *GMT) { char dwu; int i; int nm; int nw; int nu; int nc; FILE *fp; char *months[12]; char full[16]; char abbrev[16]; char c[16]; char file[4096]; char line[4104]; unsigned long v15; v15 = __readfsqword(0x28u); fp = 0; memset(file, 0, sizeof(file)); ...
GMT_LOCAL int gmtinit_get_language (struct GMT_CTRL *GMT) { FILE *fp = NULL; char file[GMT_BUFSIZ] = {""}, line[GMT_BUFSIZ] = {""}, full[16] = {""}, abbrev[16] = {""}, c[16] = {""}, dwu; char *months[12]; int i, nm = 0, nw = 0, nu = 0, nc = 0; if (!strcmp(GMT->current.setting.language, "us")) { gmtinit_def_us_...
gmtinit_get_language
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_get_unit(GMT_CTRL *GMT, char c) { if (c == 112) return 3; if (c > 112) return -1; if (c == 109) { if (*(_DWORD *)((char *)strncmp + (_QWORD)GMT) > 4u) return -1; GMT_Report(GMT->parent, 3u, "Warning: Specifying a plot distance unit in meters is " "de...
GMT_LOCAL int gmtinit_get_unit (struct GMT_CTRL *GMT, char c) { int i; switch ((int)c) { case 'c': i = GMT_CM; break; case 'i': i = GMT_INCH; break; case 'm': if (gmt_M_compat_check (GMT, 4)) { GMT_Report (GMT->parent, GMT_MSG_COMPAT, "Warning: Specifying a plot distance unit in meters is...
gmtinit_get_unit
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_get_uservalue(GMT_CTRL *GMT, char *txt, int type, double *value, char *err_msg) { if (gmt_scanf(GMT, txt, type, value)) return 0; GMT_Report(GMT->parent, 1u, "Syntax error %s: %s\n", err_msg, txt); GMT_exit_10(GMT, 64); return 64; }
GMT_LOCAL int gmtinit_get_uservalue (struct GMT_CTRL *GMT, char *txt, int type, double *value, char *err_msg) { int kind; if ((kind = gmt_scanf (GMT, txt, type, value)) == GMT_IS_NAN) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error %s: %s\n", err_msg, txt); GMT_exit (GMT, GMT_PARSE_ERROR); return GMT_P...
gmtinit_get_uservalue
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_handle_atcolon(GMT_CTRL *GMT, char *txt, int old_p) { int new_p; ptrdiff_t pos; char *s; char *item[2]; char mark[2]; unsigned long v9; v9 = __readfsqword(0x28u); item[0] = "@:"; item[1] = "@^"; *(_WORD *)mark = 24122; if (txt && *txt) { new_p = 1 - old_p; while (1) { s...
GMT_LOCAL void gmtinit_handle_atcolon (struct GMT_CTRL *GMT, char *txt, int old_p) { int new_p; char *item[2] = {"@:", "@^"}, mark[2] = {':', '^'}, *s = NULL; gmt_M_unused(GMT); if (!txt || !txt[0]) return; new_p = 1 - old_p; while ((s = strstr (txt, item[old_p]))) { ptrdiff_t pos = ((size_t)s - (size_t)...
gmtinit_handle_atcolon
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_hash(GMT_CTRL *GMT, const char *v, unsigned int n_hash) { const char *va; signed int h; va = v; if (!v) __assert_fail("v!=NULL", "/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/" "src/gmt_init.c", 0x886u, "gmtinit_hash"); h = 0;...
GMT_LOCAL int gmtinit_hash (struct GMT_CTRL *GMT, const char *v, unsigned int n_hash) { int h; gmt_M_unused(GMT); assert (v!=NULL); for (h = 0; *v != '\0'; v++) h = (64 * h + (*v)) % n_hash; while (h < 0) h += n_hash; return (h); }
gmtinit_hash
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_init_custom_annot(GMT_CTRL *GMT, GMT_PLOT_AXIS *A, int *n_int) { int v4; int k; int n_errors; FILE *fp; char type[8]; char line[4104]; unsigned long v11; v11 = __readfsqword(0x28u); n_errors = 0; memset(line, 0, 4096); *(_QWORD *)type = 0; fp = gmt_fopen(GMT, A->file_custom, "r"); ...
GMT_LOCAL int gmtinit_init_custom_annot (struct GMT_CTRL *GMT, struct GMT_PLOT_AXIS *A, int *n_int) { int k, n_errors = 0; char line[GMT_BUFSIZ] = {""}, type[8] = {""}; FILE *fp = gmt_fopen (GMT, A->file_custom, "r"); if (fp == NULL) return 1; gmt_M_memset (n_int, 4, int); while (gmt_fgets (GMT, line, ...
gmtinit_init_custom_annot
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_init_fonts(GMT_CTRL *GMT) { unsigned int i; size_t n_alloc; FILE *in; char fullname[4096]; char buf[4104]; unsigned long v7; v7 = __readfsqword(0x28u); n_alloc = 0; memset(fullname, 0, sizeof(fullname)); gmt_set_meminc(GMT, 0x40u); GMT->session.font = (GMT_FONTSPEC *)gmt_malloc_func( ...
GMT_LOCAL int gmtinit_init_fonts (struct GMT_CTRL *GMT) { unsigned int i = 0, n_GMT_fonts; size_t n_alloc = 0; char fullname[GMT_BUFSIZ] = {""}; gmt_set_meminc (GMT, GMT_SMALL_CHUNK); GMT->session.font = gmt_M_malloc (GMT, GMT->session.font, 0, &n_alloc, struct GMT_FONTSPEC); gmt_M_memcpy (GMT->session...
gmtinit_init_fonts
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_init_unit_conversion(GMT_CTRL *GMT) { GMT->current.proj.m_per_unit[0] = 1.0; GMT->current.proj.m_per_unit[1] = 1000.0; *(_QWORD *)((char *)&loc_12BCE8 + (_QWORD)GMT) = 0x409925BB645A1CACLL; GMT->current.proj.m_per_unit[3] = 1852.0; *(_QWORD *)((char *)&loc_12BCF8 + (_QWORD)GMT) = 0x3F9A027525460A...
GMT_LOCAL void gmtinit_init_unit_conversion (struct GMT_CTRL *GMT) { GMT->current.proj.m_per_unit[GMT_IS_METER] = 1.0; GMT->current.proj.m_per_unit[GMT_IS_KM] = METERS_IN_A_KM; GMT->current.proj.m_per_unit[GMT_IS_MILE] = METERS_IN_A_MILE; GMT->current.proj.m_per_unit[GMT_IS_NAUTICAL_MILE] = METERS_IN_A...
gmtinit_init_unit_conversion
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_is_PS_module(GMTAPI_CTRL *API, const char *name, const char *keys, GMT_OPTION **in_options) { GMT_OPTION *opt; GMT_OPTION *options; if (!strstr(keys, ">X}")) return 0; if (!in_options) return 0; options = *in_options; if (!strncmp(name, "psbasemap", 9u)) { ...
GMT_LOCAL bool gmtinit_is_PS_module (struct GMTAPI_CTRL *API, const char *name, const char *keys, struct GMT_OPTION **in_options) { struct GMT_OPTION *opt = NULL, *options = NULL; if (strstr (keys, ">X}") == NULL) return false; if (in_options == NULL) return false; options = *in_options; if (!strncmp (name, ...
gmtinit_is_PS_module
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_is_valid_number(char *t) { int i; int n; if (!t) return 1; n = 0; i = 0; if (*t == 43 || *t == 45) i = 1; while (((*__ctype_b_loc())[t[i]] & 0x800) != 0) { ++i; ++n; } if (t[i] == 46) { ++i; while (((*__ctype_b_loc())[t[i]] & 0x800) != 0) { ++i; ++n; ...
GMT_LOCAL bool gmtinit_is_valid_number (char *t) { int i, n; if (!t) return (true); i = n = 0; if (t[i] == '+' || t[i] == '-') i++; while (isdigit ((int)t[i])) i++, n++; if (t[i] == '.') { i++; while (isdigit ((int)t[i])) i++, n++; } if (t[i] == 'e' || t[i] == 'E') { i++; if (t[i] == '...
gmtinit_is_valid_number
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtinit_key_lookup(char *name, char **list, unsigned int n) { unsigned int i; for (i = 0; i < n && strcmp(name, list[i]); ++i) ; return i; }
GMT_LOCAL unsigned int gmtinit_key_lookup (char *name, char **list, unsigned int n) { unsigned int i; for (i = 0; i < n && strcmp (name, list[i]); i++); return (i); }
gmtinit_key_lookup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_load_encoding(GMT_CTRL *GMT) { unsigned int pos; unsigned int code; int k; GMT_ENCODING *enc; char symbol[264]; unsigned long v7; v7 = __readfsqword(0x28u); memset(symbol, 0, 256); code = 0; pos = 0; enc = &GMT->current.setting.ps_encoding; snprintf(symbol, 0x100u, "PSL_%s", GMT->cu...
GMT_LOCAL int gmtinit_load_encoding (struct GMT_CTRL *GMT) { char symbol[GMT_LEN256] = {""}; unsigned int code = 0, pos = 0; int k; struct GMT_ENCODING *enc = &GMT->current.setting.ps_encoding; snprintf (symbol, GMT_LEN256, "PSL_%s", enc->name); if ((k = get_psl_encoding (symbol)) == -1) { GMT_exit (GMT, GMT_...
gmtinit_load_encoding
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtinit_load_user_media(GMT_CTRL *GMT) { char **v2; unsigned int n; size_t n_alloc; GMT_MEDIA w; size_t k; FILE *fp; char media[64]; char line[4096]; char file[4104]; unsigned long v11; v11 = __readfsqword(0x28u); n_alloc = 0; n = 0; memset(line, 0, sizeof(line)); memset(file...
GMT_LOCAL unsigned int gmtinit_load_user_media (struct GMT_CTRL *GMT) { size_t n_alloc = 0; unsigned int n = 0; double w, h; char line[GMT_BUFSIZ] = {""}, file[GMT_BUFSIZ] = {""}, media[GMT_LEN64] = {""}; FILE *fp = NULL; gmt_getsharepath (GMT, "postscriptlight", "gmt_custom_media", ".conf", file, R_OK); if (...
gmtinit_load_user_media
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_neg_col_dist(GMT_CTRL *GMT, uint64_t col) { return GMT->current.io.prev_rec[col] - GMT->current.io.curr_rec[col]; }
GMT_LOCAL double gmtinit_neg_col_dist (struct GMT_CTRL *GMT, uint64_t col) { return (GMT->current.io.prev_rec[col] - GMT->current.io.curr_rec[col]); }
gmtinit_neg_col_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_neg_col_map_dist(GMT_CTRL *GMT, uint64_t col) { double X[5]; unsigned long v4; v4 = __readfsqword(0x28u); j_gmt_geo_to_xy(GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], X, &X[2]); j_gmt_geo_to_xy(GMT, *(double *)((char *)&loc_41498 + (_QWORD)GMT), ...
GMT_LOCAL double gmtinit_neg_col_map_dist (struct GMT_CTRL *GMT, uint64_t col) { double X[2][2]; gmt_geo_to_xy (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], &X[GMT_X][0], &X[GMT_Y][0]); gmt_geo_to_xy (GMT, GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y], &X[GMT_X][1], &X[GM...
gmtinit_neg_col_map_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_CTRL *gmtinit_new_GMT_ctrl(GMTAPI_CTRL *API, const char *session, unsigned int pad) { GMT_PROJ4 *v3; int i; int ia; int ib; int ic; GMT_CTRL *GMT; char *unit_name[4]; double u2u[4][4]; GMT_PROJ4 GMT_proj4[31]; ELLIPSOID ref_ellipsoid[75]; DATUM datum[222]; char...
GMT_LOCAL struct GMT_CTRL *gmtinit_new_GMT_ctrl (struct GMTAPI_CTRL *API, const char *session, unsigned int pad) { int i; char path[PATH_MAX+1]; char *unit_name[4] = {"cm", "inch", "m", "point"}; double u2u[4][4] = { { 1.00, 1.0/2.54, 0.01, 72.0/2.54 }, { 2.54, 1.0, 0.0254, ...
gmtinit_new_GMT_ctrl
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmtinit_old_trendsyntax(GMT_CTRL *GMT, char option, char *in_arg) { int order; int ordera; char *arg; size_t end; char term[16]; char dest[4104]; unsigned long v10; v10 = __readfsqword(0x28u); arg = strdup(in_arg); end = strlen(arg) - 1; if ((((*__ctype_b_loc())[*arg] & 0x800) != 0 || ...
GMT_LOCAL char *gmtinit_old_trendsyntax (struct GMT_CTRL *GMT, char option, char *in_arg) { char *arg = strdup (in_arg); size_t end = strlen (arg) - 1; int order; if ((isdigit (arg[0]) || (end > 1 && arg[0] == 'f' && isdigit (arg[2]))) && ((arg[end] == 'r' && arg[end-1] != '+') || isdigit (arg[end]))) { if ...
gmtinit_old_trendsyntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse4_B_option(GMT_CTRL *GMT, char *in) { int v3; unsigned int v4; unsigned int v5; char *prefix; long v7; long v8; long v9; long v10; _QWORD *v11; long v12; long v13; long v14; long v15; signed int i; int ia; int ib; int ic; int j; int k; int ka; _BOOL4 ignore; ...
GMT_LOCAL int gmtinit_parse4_B_option (struct GMT_CTRL *GMT, char *in) { char out1[GMT_BUFSIZ] = "", out2[GMT_BUFSIZ] = "", out3[GMT_BUFSIZ] = "", info[3][GMT_BUFSIZ] = {""}; struct GMT_PLOT_AXIS *A = NULL; int i, j, k, ignore, g = 0, o = 0, part = 0, error = 0; if (!in || !in[0]) ...
gmtinit_parse4_B_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse5_B_frame_setting(GMT_CTRL *GMT, char *in) { int v3; unsigned int pos; unsigned int error; unsigned int is_frame; unsigned int k; char *mod; double pole[2]; char p[4096]; char text[4104]; unsigned long v12; v12 = __readfsqword(0x28u); pos = 0; error = 0; is_frame = 0; mem...
GMT_LOCAL int gmtinit_parse5_B_frame_setting (struct GMT_CTRL *GMT, char *in) { unsigned int pos = 0, k, error = 0, is_frame = 0; char p[GMT_BUFSIZ] = {""}, text[GMT_BUFSIZ] = {""}, *mod = NULL; double pole[2]; if (strchr ("pxy", in[0])) return (-1); if (strstr (in, "+b")) is_frame++; if (strstr (in, "+g...
gmtinit_parse5_B_frame_setting
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse5_B_option(GMT_CTRL *GMT, char *in) { int v3; int v4; int v5; int v6; int v7; unsigned int pos; unsigned int no; int k; int error; char *mod; GMT_PLOT_AXIS *A; bool side[3]; char string[4096]; char orig_string[4096]; char text[4096]; char p[4104]; unsigned long v19; ...
GMT_LOCAL int gmtinit_parse5_B_option (struct GMT_CTRL *GMT, char *in) { char string[GMT_BUFSIZ] = {""}, orig_string[GMT_BUFSIZ] = {""}, text[GMT_BUFSIZ] = {""}, *mod = NULL; struct GMT_PLOT_AXIS *A = NULL; unsigned int no; int k, error = 0; bool side[3] = {false, false, false}; ...
gmtinit_parse5_B_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_parse_J_option(GMT_CTRL *GMT, char *args) { int v3; int v4; unsigned int v5; int v6; int v7; unsigned int v8; int v9; unsigned int v10; int v11; int v12; unsigned int v13; unsigned int v14; int v15; unsigned int v16; unsigned int v17; unsigned int v18; unsigned int v19; ...
GMT_LOCAL bool gmtinit_parse_J_option (struct GMT_CTRL *GMT, char *args) { int i, j, k = 0, m, n, nlen, slash, l_pos[3], p_pos[3], t_pos[3], d_pos[3], id, project; int n_slashes = 0, last_pos, error = 0; unsigned int mod_flag = 0; bool width_given = false; double c, az, GMT_units[3] = {0.01, 0.0254, 1.0}; ...
gmtinit_parse_J_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_U_option(GMT_CTRL *GMT, char *item) { int i; signed int just; int n; int n_slashes; int error; char txt_j[256]; char txt_x[256]; char txt_y[264]; unsigned long v11; v11 = __readfsqword(0x28u); n = 0; error = 0; memset(txt_j, 0, sizeof(txt_j)); memset(txt_x, 0, sizeof(txt_x...
GMT_LOCAL int gmtinit_parse_U_option (struct GMT_CTRL *GMT, char *item) { int i, just, n = 0, n_slashes, error = 0; char txt_j[GMT_LEN256] = {""}, txt_x[GMT_LEN256] = {""}, txt_y[GMT_LEN256] = {""}; GMT->current.setting.map_logo = true; if (!item || !item[0]) return (GMT_NOERROR); for (i = n_slashes = 0; item[i...
gmtinit_parse_U_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_V_option(GMT_CTRL *GMT, char arg) { int mode; mode = gmt_get_V(arg); if (mode < 0) return 1; *(_DWORD *)((char *)gmtlib_free_palette + (_QWORD)GMT) = mode; return 0; }
GMT_LOCAL int gmtinit_parse_V_option (struct GMT_CTRL *GMT, char arg) { int mode = gmt_get_V (arg); if (mode < 0) return true; GMT->current.setting.verbose = (unsigned int)mode; return 0; }
gmtinit_parse_V_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_XY_option(GMT_CTRL *GMT, int axis, char *text) { unsigned int v4; int i; i = 0; if (text && *text) { v4 = *text - 97; if (v4 <= 0x11 && ((1LL << v4) & 0x20025) != 0) { *((_BYTE *)&loc_12F66F + (_QWORD)GMT + axis) = *text; i = 1; } else { *((_BYTE *)&loc_12F66F + ...
GMT_LOCAL int gmtinit_parse_XY_option (struct GMT_CTRL *GMT, int axis, char *text) { int i = 0; if (!text || !text[0]) { GMT->current.ps.origin[axis] = 'r'; GMT->current.setting.map_origin[axis] = 0.0; return (GMT_NOERROR); } switch (text[0]) { case 'r': case 'a': case 'f': case 'c': GMT->current.ps.ori...
gmtinit_parse_XY_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_a_option(GMT_CTRL *GMT, char *arg) { int result; int v3; int v4; unsigned int pos; int col; int a_col; char *s; char *c; char A[64]; char p[4096]; char name[4104]; unsigned long v13; v13 = __readfsqword(0x28u); pos = 0; a_col = 2; memset(p, 0, sizeof(p)); memset(name...
GMT_LOCAL int gmtinit_parse_a_option (struct GMT_CTRL *GMT, char *arg) { unsigned int pos = 0; int col, a_col = GMT_Z; char p[GMT_BUFSIZ] = {""}, name[GMT_BUFSIZ] = {""}, A[GMT_LEN64] = {""}, *s = NULL, *c = NULL; if (!arg || !arg[0]) return (GMT_PARSE_ERROR); strncpy (GMT->common.a.string, arg, GMT_LEN256-1); ...
gmtinit_parse_a_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_b_option(GMT_CTRL *GMT, char *text) { int v3; GMT_swap_direction v4; GMT_swap_direction v5; GMT_swap_direction v6; GMT_swap_direction v7; bool endian_swab; unsigned char swab; bool error; bool i_or_o; bool set; bool v4_parse; char c; unsigned int i; unsigned int col; unsi...
GMT_LOCAL int gmtinit_parse_b_option (struct GMT_CTRL *GMT, char *text) { unsigned int i, col = 0, id = GMT_IN, swap_flag; int k, ncol = 0; bool endian_swab = false, swab = false, error = false, i_or_o = false, set = false, v4_parse = false; char *p = NULL, c; if (!text) return (GMT_PARSE_ERROR); ...
gmtinit_parse_b_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_c_option(GMT_CTRL *GMT, char *arg) { int error; int i; error = 0; if (!arg || !*arg) return 64; i = atoi(arg); if (i <= 0) return 1; GMT->PSL->init.copies = i; return error; }
GMT_LOCAL int gmtinit_parse_c_option (struct GMT_CTRL *GMT, char *arg) { int i, error = 0; if (!arg || !arg[0]) return (GMT_PARSE_ERROR); i = atoi (arg); if (i < 1) error++; else GMT->PSL->init.copies = i; return (error); }
gmtinit_parse_c_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_colon_option(GMT_CTRL *GMT, char *item) { char v2; int error; int way; int off; bool ok[2]; unsigned long v8; v8 = __readfsqword(0x28u); error = 0; off = 0; ok[0] = 0; ok[1] = 0; if (item) v2 = *item; else v2 = 0; if (v2 == 111) { ok[1] = 1; } else { if (...
GMT_LOCAL int gmtinit_parse_colon_option (struct GMT_CTRL *GMT, char *item) { int error = 0, way, off = 0; bool ok[2] = {false, false}; static char *mode[4] = {"i", "o", "", ""}, *dir[2] = {"input", "output"}; char kase = (item) ? item[0] : '\0'; switch (kase) { case 'i': ok[GMT_IN] = true; break; ...
gmtinit_parse_colon_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_dash_option(GMT_CTRL *GMT, char *text) { unsigned int n; char *this_c; char message[136]; unsigned long v6; v6 = __readfsqword(0x28u); memset(message, 0, 128); if (!text) return 0; if (!strcmp(text, "version")) { snprintf(message, 0x80u, "%s\n", "5.4.4"); GMT->parent->prin...
GMT_LOCAL int gmtinit_parse_dash_option (struct GMT_CTRL *GMT, char *text) { int n; char *this_c = NULL, message[GMT_LEN128] = {""}; if (!text) return (GMT_NOERROR); if (strcmp (text, "version") == 0) { snprintf (message, GMT_LEN128, "%s\n", GMT_PACKAGE_VERSION_WITH_SVN_REVISION); GMT->parent->print_func (...
gmtinit_parse_dash_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmtinit_parse_e_option(GMT_CTRL *GMT, char *arg) { if (!arg || !*arg) return 64; strncpy(GMT->common.e.string, arg, 0x3Fu); GMT->common.e.select = gmt_set_text_selection(GMT, arg); return 0; }
GMT_LOCAL unsigned int gmtinit_parse_e_option (struct GMT_CTRL *GMT, char *arg) { if (!arg || !arg[0]) return (GMT_PARSE_ERROR); strncpy (GMT->common.e.string, arg, GMT_LEN64-1); GMT->common.e.select = gmt_set_text_selection (GMT, arg); return (GMT_NOERROR); }
gmtinit_parse_e_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_f_option(GMT_CTRL *GMT, char *arg) { bool both_i_and_o; unsigned int pos; unsigned int k; unsigned int code; gmt_enum_units unit; unsigned int ic; int64_t start; int64_t stop; unsigned int *col; int64_t i; int64_t inc; size_t len; char copy[4096]; char p[4104]; unsigned l...
GMT_LOCAL int gmtinit_parse_f_option (struct GMT_CTRL *GMT, char *arg) { char copy[GMT_BUFSIZ] = {""}, p[GMT_BUFSIZ] = {""}; unsigned int k = 1, ic, pos = 0, code, *col = NULL; size_t len; int64_t i, start = -1, stop = -1, inc; enum gmt_enum_units unit = GMT_IS_METER; bool both_i_and_o = false; if (!arg || !ar...
gmtinit_parse_f_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_parse_format_float_out(GMT_CTRL *GMT, char *value) { char *v2; unsigned int v3; unsigned int pos; unsigned int start; unsigned int stop; unsigned int col; unsigned int k; unsigned int error; char *p; char fmt[72]; unsigned long v12; v12 = __readfsqword(0x28u); pos = 0; col = 0;...
GMT_LOCAL void gmtinit_parse_format_float_out (struct GMT_CTRL *GMT, char *value) { unsigned int pos = 0, col = 0, k; char fmt[GMT_LEN64] = {""}; strncpy (GMT->current.setting.format_float_out_orig, value, GMT_LEN256-1); if (strchr (value, ',')) { unsigned int start = 0, stop = 0, error = 0; char *p = NULL; ...
gmtinit_parse_format_float_out
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_front(GMT_CTRL *GMT, char *text, GMT_SYMBOL *S) { double v3; double v4; double v5; unsigned int pos; unsigned int k; unsigned int error; int mods; int n; char txt_a[256]; char txt_b[256]; char p[4104]; unsigned long v16; v16 = __readfsqword(0x28u); pos = 0; error = 0; ...
GMT_LOCAL int gmtinit_parse_front (struct GMT_CTRL *GMT, char *text, struct GMT_SYMBOL *S) { unsigned int pos = 0, k, error = 0; int mods, n; char p[GMT_BUFSIZ] = {""}, txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""}; for (k = 0; text[k] && text[k] != '+'; k++); strncpy (p, text, k); p[k] = 0; mods = ...
gmtinit_parse_front
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_h_option(GMT_CTRL *GMT, char *item) { unsigned int pos; int k; int error; int col; int i; char *c; char p[4104]; unsigned long v10; v10 = __readfsqword(0x28u); k = 1; error = 0; col = -1; pos = 0; memset(p, 0, 4096); c = 0; if (item && *item) { if (*item == 105) { ...
GMT_LOCAL int gmtinit_parse_h_option (struct GMT_CTRL *GMT, char *item) { int i, k = 1, error = 0, col = -1; unsigned int pos = 0; char p[GMT_BUFSIZ] = {""}, *c = NULL; if (!item || !item[0]) { GMT->current.setting.io_header[GMT_IN] = GMT->current.setting.io_header[GMT_OUT] = true; return (GMT_NO...
gmtinit_parse_h_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_model1d(GMT_CTRL *GMT, char option, char *in_arg, GMT_MODEL *M) { unsigned int verbose; unsigned int v6; char got_pol; bool single; unsigned int pos; unsigned int n_model; unsigned int k; unsigned int j; unsigned int n_P; unsigned int n_p; GMT_enum_model...
GMT_LOCAL int gmtinit_parse_model1d (struct GMT_CTRL *GMT, char option, char *in_arg, struct GMT_MODEL *M) { unsigned int pos = 0, n_model = 0, k, j, n_P = 0, n_p = 0; int64_t order, xstart, xstop, step; bool got_pol = false, single = false; enum GMT_enum_model kind; char p[GMT_BUFSIZ] = {""}, *this_...
gmtinit_parse_model1d
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_n_option(GMT_CTRL *GMT, char *item) { int v2; unsigned int v4; size_t v5; size_t v6; unsigned int pos; unsigned int j; unsigned int k; char p[264]; unsigned long v11; v11 = __readfsqword(0x28u); pos = 0; k = 1; memset(p, 0, 256); strncpy(GMT->common.n.string, item, 0x3Fu);...
int gmtinit_parse_n_option (struct GMT_CTRL *GMT, char *item) { unsigned int pos = 0, j, k = 1; char p[GMT_LEN256] = {""}; strncpy (GMT->common.n.string, item, GMT_LEN64-1); switch (item[0]) { case '+': GMT->common.n.interpolant = BCR_BICUBIC; k = 0; break; case 'n': GMT->common.n.interpolant = BCR_NEA...
gmtinit_parse_n_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_p_option(GMT_CTRL *GMT, char *item) { int v2; unsigned int v4; unsigned int v5; unsigned int v6; unsigned int v7; unsigned int v8; unsigned int v9; unsigned int pos; unsigned int error; unsigned int l; unsigned int k; double az; double el; double z; char *c; char txt_a[...
GMT_LOCAL int gmtinit_parse_p_option (struct GMT_CTRL *GMT, char *item) { unsigned int k, l = 0, pos = 0, error = 0; double az, el = 0.0, z = 0.0; char txt_a[GMT_LEN256] = {""}, txt_b[GMT_LEN256] = {""}, txt_c[GMT_LEN256] = {""}; char p[GMT_LEN256] = {""}, *c = NULL; if (!GMT->common.J.active) { gmt_set_miss...
gmtinit_parse_p_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_parse_s_option(GMT_CTRL *GMT, char *item) { unsigned int v3; unsigned int pos; unsigned int n; unsigned int error; int64_t start; int64_t stop; int64_t i; int64_t inc; char p[4096]; char tmp[4104]; unsigned long v13; v13 = __readfsqword(0x28u); error = 0; pos = 0; start = -1;...
GMT_LOCAL bool gmtinit_parse_s_option (struct GMT_CTRL *GMT, char *item) { unsigned int error = 0, n, pos = 0; int64_t i, start = -1, stop = -1, inc; char p[GMT_BUFSIZ] = {""}, tmp[GMT_MAX_COLUMNS] = {""}; gmt_M_memset (GMT->current.io.io_nan_col, GMT_MAX_COLUMNS, int); GMT->current.io.io_nan_col[0] = GMT_Z; ...
gmtinit_parse_s_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_text(GMT_CTRL *GMT, char *text, GMT_SYMBOL *S) { char *v3; unsigned int v4; unsigned int v5; char *v7; unsigned int pos; unsigned int k; unsigned int j; unsigned int slash; unsigned int error; char *c; char p[4104]; unsigned long v16; v16 = __readfsqword(0x28u); pos = 0; ...
GMT_LOCAL int gmtinit_parse_text (struct GMT_CTRL *GMT, char *text, struct GMT_SYMBOL *S) { unsigned int pos = 0, k, j, slash, error = 0; if ((!strstr (text, "+t") && strchr (text, '/')) || strchr (text, '%')) { char *c = NULL; if (gmt_M_compat_check (GMT, 4)) { GMT_Report (GMT->parent, GMT_MSG_COMPAT, "Warn...
gmtinit_parse_text
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_parse_x_option(GMT_CTRL *GMT, char *arg) { int num_processors; int v4; GMT->common.x.active = 1; if (!arg) return 64; if (*arg) num_processors = atoi(arg); else num_processors = gmtlib_get_num_processors(); GMT->common.x.n_threads = num_processors; if (GMT->common.x.n_threads) {...
GMT_LOCAL int gmtinit_parse_x_option (struct GMT_CTRL *GMT, char *arg) { GMT->common.x.active = true; if (!arg) return (GMT_PARSE_ERROR); if (arg[0] == '\0') GMT->common.x.n_threads = gmtlib_get_num_processors(); else GMT->common.x.n_threads = atoi (arg); if (GMT->common.x.n_threads == 0...
gmtinit_parse_x_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_pos_col_dist(GMT_CTRL *GMT, uint64_t col) { return GMT->current.io.curr_rec[col] - GMT->current.io.prev_rec[col]; }
GMT_LOCAL double gmtinit_pos_col_dist (struct GMT_CTRL *GMT, uint64_t col) { return (GMT->current.io.curr_rec[col] - GMT->current.io.prev_rec[col]); }
gmtinit_pos_col_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_pos_col_map_dist(GMT_CTRL *GMT, uint64_t col) { double X[5]; unsigned long v4; v4 = __readfsqword(0x28u); j_gmt_geo_to_xy(GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], X, &X[2]); j_gmt_geo_to_xy(GMT, *(double *)((char *)&loc_41498 + (_QWORD)GMT), ...
GMT_LOCAL double gmtinit_pos_col_map_dist (struct GMT_CTRL *GMT, uint64_t col) { double X[2][2]; gmt_geo_to_xy (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], &X[GMT_X][0], &X[GMT_Y][0]); gmt_geo_to_xy (GMT, GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y], &X[GMT_X][1], &X[GM...
gmtinit_pos_col_map_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_project_type(char *args, int *pos, bool *width_given) { bool v3; unsigned char t; v3 = *args > 64 && *args <= 90; *width_given = v3; *pos = gmt_strlcmp("aea/", args); if (*pos) return 200; *pos = gmt_strlcmp("aeqd/", args); if (*pos) return 303; *pos = gmt_strlcmp("cyl_stere/", ar...
GMT_LOCAL int gmtinit_project_type (char *args, int *pos, bool *width_given) { unsigned char t; *width_given = (args[0] >= 'A' && args[0] <= 'Z'); if ((*pos = (int)gmt_strlcmp ("aea/" , args))) return (GMT_ALBERS); if ((*pos = (int)gmt_strlcmp ("aeqd/" , args))) return (GMT_AZ_EQDIST); ...
gmtinit_project_type
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_put_history(GMT_CTRL *GMT) { int v2; int v3; bool empty; int id; int ida; FILE *fp; char hfile[4096]; char cwd[4104]; unsigned long v10; v10 = __readfsqword(0x28u); memset(hfile, 0, sizeof(hfile)); memset(cwd, 0, 4096); if ((GMT->current.setting.history & 2) == 0) return 0; ...
GMT_LOCAL int gmtinit_put_history (struct GMT_CTRL *GMT) { int id; bool empty; char hfile[GMT_BUFSIZ] = {""}, cwd[GMT_BUFSIZ] = {""}; FILE *fp = NULL; if (!(GMT->current.setting.history & k_history_write)) return (GMT_NOERROR); for (id = 0, empty = true; id < GMT_N_UNIQUE && empty; id++) { if (GMT-...
gmtinit_put_history
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_rectR_to_geoR(GMT_CTRL *GMT, char unit, double *rect, double *out_wesn, bool get_R) { double v6; double v7; bool was_R; bool was_J; int proj_class; GMT_DATASET *In; GMT_DATASET *Out; uint64_t dim[4]; double wesn[4]; char in_string[16]; char out_string[16]; c...
GMT_LOCAL int gmtinit_rectR_to_geoR (struct GMT_CTRL *GMT, char unit, double rect[], double out_wesn[], bool get_R) { int proj_class; uint64_t dim[GMT_DIM_SIZE] = {1, 1, 2, 2}; bool was_R, was_J; double wesn[4]; char buffer[GMT_LEN256] = {""}, in_string[GMT_STR16] = {""}, out_string[GMT_STR16] = {""}; struc...
gmtinit_rectR_to_geoR
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_reset_colformats(GMT_CTRL *GMT) { unsigned int i; for (i = 0; i <= 0xFFF; ++i) { if (GMT->current.io.o_format[i]) { free(GMT->current.io.o_format[i]); GMT->current.io.o_format[i] = 0; } } }
GMT_LOCAL void gmtinit_reset_colformats (struct GMT_CTRL *GMT) { unsigned int i; for (i = 0; i < GMT_MAX_COLUMNS; i++) if (GMT->current.io.o_format[i]) gmt_M_str_free (GMT->current.io.o_format[i]); }
gmtinit_reset_colformats
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_round_wesn(double *wesn, bool geo) { double v2; unsigned int side; unsigned int item; unsigned int itema; double inc; double s; double mag; bool set[2]; double range[4]; *(_QWORD *)&range[3] = __readfsqword(0x28u); set[0] = 0; set[1] = 0; range[0] = 0.0; range[1] = 0.0; range...
GMT_LOCAL void gmtinit_round_wesn (double wesn[], bool geo) { bool set[2] = {false, false}; unsigned int side, item; double mag, inc, range[2] = {0.0, 0.0}, s; range[GMT_X] = wesn[XHI] - wesn[XLO]; range[GMT_Y] = wesn[YHI] - wesn[YLO]; if (geo) { if (range[GMT_X] > 306.0) { wesn[XLO] = 0.0; wesn[XHI] = 36...
gmtinit_round_wesn
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_savedefaults(GMT_CTRL *GMT, char *file) { unsigned int v3; char *v4; bool header; unsigned int k; unsigned int current_group; int case_val; FILE *fpo; header = 0; k = 0; current_group = 0; if (*file != 45 || file[1]) { fpo = fopen(file, "w"); if (!fpo) { GMT_Report(GMT->...
GMT_LOCAL int gmtinit_savedefaults (struct GMT_CTRL *GMT, char *file) { bool header = false; int case_val; unsigned int k = 0, current_group = 0; FILE *fpo = NULL; if (file[0] == '-' && !file[1]) fpo = GMT->session.std[GMT_OUT]; else if ((fpo = fopen (file, "w")) == NULL) { GMT_Report (GMT->parent, GMT_MSG_N...
gmtinit_savedefaults
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_scale_or_width(GMT_CTRL *GMT, char *scale_or_width, double *value) { GMT->current.proj.units_pr_degree = strncmp(scale_or_width, "1:", 2u) != 0; if (GMT->current.proj.units_pr_degree) { if (strlen(scale_or_width) == 1 && *scale_or_width == 49 && (!strncmp(GMT->init.module_name, "grdproject",...
GMT_LOCAL int gmtinit_scale_or_width (struct GMT_CTRL *GMT, char *scale_or_width, double *value) { int n, answer; answer = strncmp (scale_or_width, "1:", 2U); GMT->current.proj.units_pr_degree = (answer != 0); if (GMT->current.proj.units_pr_degree) { size_t k = strlen (scale_or_width); if (k == 1 && scale...
gmtinit_scale_or_width
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_scanf_epoch(GMT_CTRL *GMT, char *s, int64_t *rata_die, double *t0) { int yy; int mo; int dd; int hh; int mm; int i; double ss_0; int64_t rd; char tt[8]; unsigned long v16; v16 = __readfsqword(0x28u); ss_0 = 0.0; hh = 0; mm = 0; for (i = 0; s[i] == 32; ++i) ; if (!s[i]) ...
GMT_LOCAL int gmtinit_scanf_epoch (struct GMT_CTRL *GMT, char *s, int64_t *rata_die, double *t0) { double ss = 0.0; int i, yy, mo, dd, hh = 0, mm = 0; int64_t rd; char tt[8]; i = 0; while (s[i] && s[i] == ' ') i++; if (!(s[i])) return (-1); if (strchr (&s[i], 'W') ) { if (sscanf (&s[i], "%5d-W%2d-...
gmtinit_scanf_epoch
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_set_env(GMT_CTRL *GMT) { char *v2; unsigned int u; unsigned int c; const char *this_c; const char *this_ca; const char *this_cb; const char *this_cc; const char *this_cd; const char *this_ce; char path[4104]; unsigned long v12; v12 = __readfsqword(0x28u); u = 0; c = 0; this_c ...
GMT_LOCAL int gmtinit_set_env (struct GMT_CTRL *GMT) { char *this_c = NULL, path[PATH_MAX+1]; static char *how[2] = {"detected", "created"}; unsigned int u = 0, c = 0; #ifdef SUPPORT_EXEC_IN_BINARY_DIR bool running_in_bindir_src = !strncmp (GMT->init.runtime_bindir, GMT_BINARY_DIR_SRC_DEBUG, strlen(GMT_B...
gmtinit_set_env
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_set_missing_R_from_datasets(GMTAPI_CTRL *API, const char *args, bool exact, GMT_OPTION **options) { int err; GMT_OPTION *opt; double wesn[4]; char region[264]; unsigned long v10; v10 = __readfsqword(0x28u); memset(region, 0, 256); memset(wesn, 0, size...
GMT_LOCAL int gmtinit_set_missing_R_from_datasets (struct GMTAPI_CTRL *API, const char *args, bool exact, struct GMT_OPTION **options) { char region[GMT_LEN256] = {""}; int err = GMT_NOERROR; double wesn[4] = {0.0, 0.0, 0.0, 0.0}; struct GMT_OPTION *opt = NULL; gmt_M_unused(args); if ((err = gmtlib_get_re...
gmtinit_set_missing_R_from_datasets
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_set_missing_R_from_grid(GMTAPI_CTRL *API, const char *args, bool exact, GMT_OPTION **options) { int err; GMT_OPTION *opt; double wesn[4]; char region[264]; unsigned long v10; v10 = __readfsqword(0x28u); memset(wesn, 0, sizeof(wesn)); memset(region, 0, 256...
GMT_LOCAL int gmtinit_set_missing_R_from_grid (struct GMTAPI_CTRL *API, const char *args, bool exact, struct GMT_OPTION **options) { struct GMT_OPTION *opt = NULL; double wesn[4] = {0.0, 0.0, 0.0, 0.0}; char region[GMT_LEN256] = {""}; int err = GMT_NOERROR; gmt_M_unused(args); if ((err = gmtlib_get_region_...
gmtinit_set_missing_R_from_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_set_titem(GMT_CTRL *GMT, GMT_PLOT_AXIS *A, char *in, char flag, char axis, int custom) { int result; char v7; int v8; char *v9; char unit; char *s; GMT_PLOT_AXIS_ITEM *I; char *t; double phase; char *format; double val; unsigned long v21; v21 = __readfsqword(...
GMT_LOCAL int gmtinit_set_titem (struct GMT_CTRL *GMT, struct GMT_PLOT_AXIS *A, char *in, char flag, char axis, int custom) { struct GMT_PLOT_AXIS_ITEM *I = NULL; char *format = NULL, *t = NULL, *s = NULL, unit = 0; double phase = 0.0, val = 0.0; t = in; if ((val = strtod (t, &s)) < 0.0 && GMT->current.pro...
gmtinit_set_titem
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_set_today(GMT_CTRL *GMT) { time_t right_now; tm *moment; unsigned long v3; v3 = __readfsqword(0x28u); right_now = time(0); moment = gmtime(&right_now); GMT->current.time.today_rata_die = gmt_rd_from_gymd( GMT, moment->tm_year + 1900, moment->tm_mon + 1, moment->tm_mday); }
GMT_LOCAL void gmtinit_set_today (struct GMT_CTRL *GMT) { time_t right_now = time (NULL); struct tm *moment = gmtime (&right_now); GMT->current.time.today_rata_die = gmt_rd_from_gymd (GMT, 1900 + moment->tm_year, moment->tm_mon + 1, moment->tm_mday); }
gmtinit_set_today
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_setshorthand(GMT_CTRL *GMT) { char **v2; unsigned long v3; unsigned int id; unsigned int n; size_t n_alloc; FILE *fp; char a[64]; char b[64]; char c[64]; char d[64]; char e[64]; char file[4096]; char line[4104]; unsigned long v15; v15 = __readfsqword(0x28u); n = 0; n_alloc...
GMT_LOCAL int gmtinit_setshorthand (struct GMT_CTRL *GMT) { unsigned int id, n = 0; size_t n_alloc = 0; char file[GMT_BUFSIZ] = {""}, line[GMT_BUFSIZ] = {""}, a[GMT_LEN64] = {""}, b[GMT_LEN64] = {""}; char c[GMT_LEN64] = {""}, d[GMT_LEN64] = {""}, e[GMT_LEN64] = {""}; FILE *fp = NULL; GMT->session.n_shorthands =...
gmtinit_setshorthand
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_split_info_strings(GMT_CTRL *GMT, const char *in, char *x_info, char *y_info, char *z_info) { size_t v5; bool mute; size_t i; size_t ia; size_t ib; size_t n_slash; size_t s_pos[3]; unsigned long v16; v16 = __readfsqword(0x28u); mute = 0; *z_info = 0; *...
GMT_LOCAL int gmtinit_split_info_strings (struct GMT_CTRL *GMT, const char *in, char *x_info, char *y_info, char *z_info) { bool mute = false; size_t i, n_slash, s_pos[2]; x_info[0] = y_info[0] = z_info[0] = '\0'; for (i = n_slash = 0; in[i] && n_slash < 3; i++) { if (in[i] == ':') mute = !mute; if (in[i] ==...
gmtinit_split_info_strings
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_strip_colonitem(GMT_CTRL *GMT, int axis, const char *in, const char *pattern, char *item, char *out) { size_t v6; char *v7; size_t v8; size_t v9; char *v10; size_t v11; bool error; size_t i; size_t ia; size_t j; size_t k; char *s; error = 0; s = strst...
GMT_LOCAL int gmtinit_strip_colonitem (struct GMT_CTRL *GMT, int axis, const char *in, const char *pattern, char *item, char *out) { char *s = NULL, *str = "xyz"; bool error = false; if ((s = strstr (in, pattern))) { size_t i, j, k; k = (size_t)(s - in); strncpy (out, in, k); i = k + strlen (p...
gmtinit_strip_colonitem
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmtinit_trend_modifiers(GMT_CTRL *GMT, char option, char *c, unsigned int dim, GMT_MODEL *M) { unsigned int pos; int k; int sdim; char p[4104]; unsigned long v13; v13 = __readfsqword(0x28u); memset(p, 0, 4096); pos = 0; sdim = dim; if (dim <= 1) { while (gmt_strt...
GMT_LOCAL int gmtinit_trend_modifiers (struct GMT_CTRL *GMT, char option, char *c, unsigned int dim, struct GMT_MODEL *M) { char p[GMT_BUFSIZ] = {""}; unsigned int pos = 0; int k, sdim = dim; if (dim >= 2) { GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "INTERNAL Error gmtinit_trend_modifiers: was passed dim >= 2 (%...
gmtinit_trend_modifiers
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmtinit_true_false_or_error(char *value, bool *answer) { if (!strcmp(value, "true") || !strcmp(value, &arg[14]) || !strcmp(value, "1")) { *answer = 1; return 0; } else if (!strcmp(value, "false") || !strcmp(value, (const char *)&aXyabcf[5]) || !strcmp(value, "0")) { *answer = 0; ...
GMT_LOCAL bool gmtinit_true_false_or_error (char *value, bool *answer) { if (!strcmp (value, "true") || !strcmp (value, "t") || !strcmp (value, "1")) { *answer = true; return (false); } if (!strcmp (value, "false") || !strcmp (value, "f") || !strcmp (value, "0")) { *answer = false; return (false); ...
gmtinit_true_false_or_error
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_update_keys(GMT_CTRL *GMT, bool arg) { unsigned int k; if (!arg) { memset(GMT_keywords_updated, 0, sizeof(GMT_keywords_updated)); } else { for (k = 0; k <= 0xCD; ++k) GMT_keywords_updated[k] = 1; } }
void gmtinit_update_keys (struct GMT_CTRL *GMT, bool arg) { gmt_M_unused(GMT); if (arg == false) gmt_M_memset (GMT_keywords_updated, GMT_N_KEYS, bool); else { for (unsigned int k = 0; k < GMT_N_KEYS; k++) GMT_keywords_updated[k] = true; } }
gmtinit_update_keys
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmtinit_verify_encodings(GMT_CTRL *GMT) { if (*(_DWORD *)((char *)&loc_412B0 + (_QWORD)GMT) == 32 && GMT->current.setting.ps_encoding.code[1] == 32) { gmt_message(GMT, "Warning: Selected character encoding does not have " "suitable degree symbol - will use space instead\n"); } el...
GMT_LOCAL void gmtinit_verify_encodings (struct GMT_CTRL *GMT) { if (GMT->current.setting.ps_encoding.code[gmt_ring] == 32 && GMT->current.setting.ps_encoding.code[gmt_degree] == 32) { gmt_message (GMT, "Warning: Selected character encoding does not have suitable degree symbol - will use space instead\n"); } ...
gmtinit_verify_encodings
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_xy_cart_dist(GMT_CTRL *GMT, uint64_t col) { return j_gmt_cartesian_dist(GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], *(double *)((char *)&loc_41498 + (_QWORD)GMT), GMT->current.io.curr_rec[1]); }
GMT_LOCAL double gmtinit_xy_cart_dist (struct GMT_CTRL *GMT, uint64_t col) { gmt_M_unused(col); return (gmt_cartesian_dist (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y])); }
gmtinit_xy_cart_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_xy_deg_dist(GMT_CTRL *GMT, uint64_t col) { return j_gmtlib_great_circle_dist_degree( GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], *(double *)((char *)&loc_41498 + (_QWORD)GMT), GMT->current.io.curr_rec[1]); }
GMT_LOCAL double gmtinit_xy_deg_dist (struct GMT_CTRL *GMT, uint64_t col) { gmt_M_unused(col); return (gmtlib_great_circle_dist_degree (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y])); }
gmtinit_xy_deg_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmtinit_xy_map_dist(GMT_CTRL *GMT, uint64_t col) { return j_gmt_cartesian_dist_proj( GMT, GMT->current.io.prev_rec[0], GMT->current.io.prev_rec[1], *(double *)((char *)&loc_41498 + (_QWORD)GMT), GMT->current.io.curr_rec[1]); }
GMT_LOCAL double gmtinit_xy_map_dist (struct GMT_CTRL *GMT, uint64_t col) { gmt_M_unused(col); return (gmt_cartesian_dist_proj (GMT, GMT->current.io.prev_rec[GMT_X], GMT->current.io.prev_rec[GMT_Y], GMT->current.io.curr_rec[GMT_X], GMT->current.io.curr_rec[GMT_Y])); }
gmtinit_xy_map_dist
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0