idx
int64
func
string
target
int64
198,695
mp_sint32 LoaderS3M::load(XMFileBase& f, XModule* module) { module->cleanUp(); // this will make code much easier to read TXMHeader* header = &module->header; TXMInstrument* instr = module->instr; TXMSample* smp = module->smp; TXMPattern* phead = module->phead; // we're already out of memory here if...
1
283,751
static uint64_t zynq_slcr_compute_pll(uint64_t input, uint32_t ctrl_reg) { uint32_t mult = ((ctrl_reg & R_xxx_PLL_CTRL_PLL_FPDIV_MASK) >> R_xxx_PLL_CTRL_PLL_FPDIV_SHIFT); /* first, check if pll is bypassed */ if (ctrl_reg & R_xxx_PLL_CTRL_PLL_BYPASS_FORCE_MASK) { return input; } ...
0
317,224
static void smack_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) { struct smack_known *skp; struct inode_smack *isp = smack_inode(d_backing_inode(dentry)); if (strcmp(name, XATTR_NAME_SMACKTRANSMUTE) == 0) { isp->smk_flags |= SMK_INODE_TRANSMUTE; ...
0
90,852
void GetAvailableSpace() { quota_status_ = kQuotaStatusUnknown; available_space_ = -1; quota_manager_->GetAvailableSpace( callback_factory_.NewCallback( &QuotaManagerTest::DidGetAvailableSpace)); }
0
482,644
static inline unsigned int xt_write_recseq_begin(void) { unsigned int addend; /* * Low order bit of sequence is set if we already * called xt_write_recseq_begin(). */ addend = (__this_cpu_read(xt_recseq.sequence) + 1) & 1; /* * This is kind of a write_seqcount_begin(), but addend is 0 or 1 * We dont che...
0
512,936
in_string::~in_string() { if (base) { // base was allocated on THD::mem_root => following is OK for (uint i=0 ; i < count ; i++) ((String*) base)[i].free(); } }
0
346,446
get_scriptname(scid_T id) { if (id == SID_MODELINE) return (char_u *)_("modeline"); if (id == SID_CMDARG) return (char_u *)_("--cmd argument"); if (id == SID_CARG) return (char_u *)_("-c argument"); if (id == SID_ENV) return (char_u *)_("environment variable"); if (id == SID_ERROR) return (char...
0
432,154
StatusWith<std::unique_ptr<PlanExecutor, PlanExecutor::Deleter>> PipelineD::prepareExecutor( const intrusive_ptr<ExpressionContext>& expCtx, const CollectionPtr& collection, const NamespaceString& nss, Pipeline* pipeline, const boost::intrusive_ptr<DocumentSourceSort>& sortStage, std::unique_ptr...
0
198,983
SWTPM_NVRAM_CheckHeader(unsigned char *data, uint32_t length, uint32_t *dataoffset, uint16_t *hdrflags, uint8_t *hdrversion, bool quiet) { blobheader *bh = (blobheader *)data; if (length < sizeof(bh)) { if (!quiet) logprintf(STDERR_FILENO, ...
1
477,302
void tipc_crypto_stop(struct tipc_crypto **crypto) { struct tipc_crypto *c = *crypto; u8 k; if (!c) return; /* Flush any queued works & destroy wq */ if (is_tx(c)) { c->rekeying_intv = 0; cancel_delayed_work_sync(&c->work); destroy_workqueue(c->wq); } /* Release AEAD keys */ rcu_read_lock(); for (k ...
0
477,265
static void tipc_aead_users_inc(struct tipc_aead __rcu *aead, int lim) { struct tipc_aead *tmp; rcu_read_lock(); tmp = rcu_dereference(aead); if (tmp) atomic_add_unless(&tmp->users, 1, lim); rcu_read_unlock(); }
0
252,327
mz_bool mz_zip_reader_extract_file_to_callback(mz_zip_archive *pZip, const char *pFilename, mz_file_write_func pCallback, void *pOpaque, mz_uint flags) { int file_index = mz_zip...
0
259,183
static int mov_read_dvc1(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; uint8_t profile_level; int ret; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; if (atom.size >= (1<<28) || atom.size < 7) return AVERROR_INVALIDDATA; prof...
0
440,880
LogPrintMarkers(void) { /* Show what the message marker symbols mean. */ LogWrite(0, "Markers: "); LogMessageVerb(X_PROBED, 0, "probed, "); LogMessageVerb(X_CONFIG, 0, "from config file, "); LogMessageVerb(X_DEFAULT, 0, "default setting,\n\t"); LogMessageVerb(X_CMDLINE, 0, "from command line, ")...
0
285,159
static char *__get_target_os(r_bin_ne_obj_t *bin) { switch (bin->ne_header->targOS) { case 1: return "OS/2"; case 2: return "Windows"; case 3: return "European MS-DOS 4.x"; case 4: return "Windows 386"; case 5: return "BOSS (Borland Operating System Services)"; default: return "Unknown"; } }
0
224,218
R_API void r_io_bank_fini(RIO *io) { r_return_if_fail (io); if (io->banks) { r_id_storage_foreach (io->banks, _bank_free_cb, NULL); r_id_storage_free (io->banks); io->banks = NULL; } }
0
282,873
int rsi_handle_card_ready(struct rsi_common *common, u8 *msg) { int status; switch (common->fsm_state) { case FSM_CARD_NOT_READY: rsi_dbg(INIT_ZONE, "Card ready indication from Common HAL\n"); rsi_set_default_parameters(common); if (rsi_send_common_dev_params(common) < 0) return -EINVAL; common->fsm_stat...
0
359,364
DEFUN (ip_extcommunity_list_name_standard, ip_extcommunity_list_name_standard_cmd, "ip extcommunity-list standard WORD (deny|permit) .AA:NN", IP_STR EXTCOMMUNITY_LIST_STR "Specify standard extcommunity-list\n" "Extended Community list name\n" "Specify community to reject...
0
413,824
Method* LinkResolver::linktime_resolve_virtual_method_or_null( const LinkInfo& link_info) { EXCEPTION_MARK; Method* method_result = linktime_resolve_virtual_method(link_info, THREAD); if (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return NULL; } el...
0
229,256
sstring to_string(const event::status_change::status_type t) { using type = event::status_change::status_type; switch (t) { case type::UP: return "UP"; case type::DOWN: return "DOWN"; } throw std::invalid_argument("unknown change type"); }
0
226,057
GF_Box *dec3_box_new() { ISOM_DECL_BOX_ALLOC(GF_AC3ConfigBox, GF_ISOM_BOX_TYPE_DAC3); tmp->cfg.is_ec3 = 1; return (GF_Box *)tmp;
0
225,679
GF_Err dinf_box_read(GF_Box *s, GF_BitStream *bs) { GF_DataInformationBox *dinf; GF_Err e = gf_isom_box_array_read(s, bs); if (e) { return e; } dinf = (GF_DataInformationBox *)s; if (!dinf->dref) { if (! (gf_bs_get_cookie(bs) & GF_ISOM_BS_COOKIE_NO_LOGS) ) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[iso fi...
0
232,328
GF_Err gf_isom_parse_movie_boxes(GF_ISOFile *mov, u32 *boxType, u64 *bytesMissing, Bool progressive_mode) { GF_Err e; GF_Blob *blob = NULL; //if associated file is a blob, lock blob before parsing ! if (mov->movieFileMap && ((mov->movieFileMap->type == GF_ISOM_DATA_MEM) || (mov->movieFileMap->type == GF_ISOM_DATA_...
0
424,913
static void iwl_trans_pcie_configure(struct iwl_trans *trans, const struct iwl_trans_config *trans_cfg) { struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans_pcie->cmd_queue = trans_cfg->cmd_queue; trans_pcie->cmd_fifo = trans_cfg->cmd_fifo; trans_pcie->cmd_q_wdg_timeout = trans_cfg...
0
463,190
EXPORTED int annotate_delete_mailbox(struct mailbox *mailbox) { int r = 0; char *fname = NULL; annotate_db_t *d = NULL; init_internal(); assert(mailbox); /* remove any per-folder annotations from the global db */ r = _annotate_getdb(NULL, 0, /*don't create*/0, &d); if (r == CYRUSDB_NO...
0
406,210
static struct libmnt_table *append_fstab(struct libmnt_context *cxt, struct libmnt_table *fstab, const char *path) { if (!fstab) { fstab = mnt_new_table(); if (!fstab) err(MOUNT_EX_SYSERR, _("failed to initialize libmount table")); mnt_table_set_parser_errcb(fstab, table_parser_errcb); mnt_con...
0
233,857
static void do_box_sequence(deark *c, struct de_boxesctx *bctx, i64 pos1, i64 len, i64 max_nboxes, int level) { i64 pos; i64 box_len; i64 endpos; int ret; i64 box_count = 0; if(level >= 32) { // An arbitrary recursion limit. return; } pos = pos1; endpos = pos1 + len; while(pos < endpos) { if(max_nboxe...
0
274,656
callbacks_reload_layer_clicked (GtkButton *button, gpointer user_data) { gint index = callbacks_get_selected_row_index (); if (index < 0) { show_no_layers_warning (); return; } render_remove_selected_objects_belonging_to_layer ( &screen.selectionInfo, mainProject->file[index]->image); update_selected_obje...
0
336,670
void reds_handle_channel_event(RedsState *reds, int event, SpiceChannelEventInfo *info) { reds->core.channel_event(&reds->core, event, info); if (event == SPICE_CHANNEL_EVENT_DISCONNECTED) { g_free(info); } }
0
90,748
void CountOriginType(const std::set<GURL>& origins, SpecialStoragePolicy* policy, size_t* protected_origins, size_t* unlimited_origins) { DCHECK(protected_origins); DCHECK(unlimited_origins); *protected_origins = 0; *unlimited_origins = 0; if (!po...
0
331,774
void QPaintEngineEx::fillRect(const QRectF &r, const QBrush &brush) { qreal pts[] = { r.x(), r.y(), r.x() + r.width(), r.y(), r.x() + r.width(), r.y() + r.height(), r.x(), r.y() + r.height() }; QVectorPath vp(pts, 4, nullptr, QVectorPath::RectangleHint); fill(vp, brush); }
0
434,081
alist_expand(int *fnum_list, int fnum_len) { char_u **old_arg_files; int old_arg_count; char_u **new_arg_files; int new_arg_file_count; char_u *save_p_su = p_su; int i; // Don't use 'suffixes' here. This should work like the shell did the // expansion. Also, the vimrc file isn't re...
0
477,977
void simplestring_add(simplestring* target, const char* source) { if(target && source) { simplestring_addn(target, source, strlen(source)); } }
0
226,963
IRC_PROTOCOL_CALLBACK(734) { char *pos_args; IRC_PROTOCOL_MIN_ARGS(5); pos_args = (argc > 5) ? ((argv_eol[5][0] == ':') ? argv_eol[5] + 1 : argv_eol[5]) : NULL; weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( server, NULL, command, "monitor", NULL), da...
0
506,698
static int set_cn2(X509 *crt, const char *name) { return set_cn(crt, NID_commonName, "dummy value", NID_commonName, name, 0); }
0
437,389
onig_reg_init(regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax) { int r; xmemset(reg, 0, sizeof(*reg)); if (onig_inited == 0) { #if 0 return ONIGERR_LIBRARY_IS_NOT_INITIALIZED; #else r = onig_initialize(&enc, 1); if (r != 0)...
0
238,560
static int check_core_relo(struct bpf_verifier_env *env, const union bpf_attr *attr, bpfptr_t uattr) { u32 i, nr_core_relo, ncopy, expected_size, rec_size; struct bpf_core_relo core_relo = {}; struct bpf_prog *prog = env->prog; const struct btf *btf = prog->aux->btf; struct bpf_core_ctx ctx = { .log ...
0
441,819
SProcXkbGetDeviceInfo(ClientPtr client) { REQUEST(xkbGetDeviceInfoReq); swaps(&stuff->length); REQUEST_SIZE_MATCH(xkbGetDeviceInfoReq); swaps(&stuff->deviceSpec); swaps(&stuff->wanted); swaps(&stuff->ledClass); swaps(&stuff->ledID); return ProcXkbGetDeviceInfo(client); }
0
477,368
R_API void r_bin_java_print_element_pair_summary(RBinJavaElementValuePair *evp) { if (!evp) { eprintf ("Attempting to print an invalid RBinJavaElementValuePair *pair.\n"); return; } Eprintf ("Element Value Pair information:\n"); Eprintf (" EV Pair File Offset: 0x%08"PFMT64x "\n", evp->file_offset); Eprintf ("...
0
238,631
static int check_map_func_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, int func_id) { if (!map) return 0; /* We need a two way check, first is from map perspective ... */ switch (map->map_type) { case BPF_MAP_TYPE_PROG_ARRAY: if (func_id != BPF_FUNC_tail_call) goto error; break; ...
0
237,877
qeh_in_on_close (struct lsquic_stream *stream, lsquic_stream_ctx_t *ctx) { struct qpack_enc_hdl *const qeh = (void *) ctx; LSQ_DEBUG("closed incoming decoder stream"); qeh->qeh_dec_sm_in = NULL; }
0
328,843
R_API void r_bin_java_get_method_json_definition(RBinJavaObj *bin, RBinJavaField *fm_type, PJ *pj) { r_bin_java_get_fm_type_definition_json (bin, fm_type, pj, 1); }
0
386,526
bool DL_Dxf::handleSplineData(DL_CreationInterface* /*creationInterface*/) { // Allocate Spline knots (group code 72): if (groupCode==72) { maxKnots = toInt(groupValue); if (maxKnots>0) { if (knots!=NULL) { delete[] knots; } knots = new double[...
0
382,793
static dynamicPtr * newDynamic (int initialSize, void *data, int freeOKFlag) { dynamicPtr *dp; dp = (dynamicPtr *) gdMalloc (sizeof (dynamicPtr)); allocDynamic (dp, initialSize, data); dp->pos = 0; dp->freeOK = freeOKFlag; return dp; }
0
513,172
sys_var_pluginvar::sys_var_pluginvar(sys_var_chain *chain, const char *name_arg, st_plugin_int *p, st_mysql_sys_var *pv) : sys_var(chain, name_arg, pv->comment, pluginvar_sysvar_flags(pv), 0, pv->flags & PLUGIN_VAR_NOCMDOPT ? -1 : 0, NO_ARG, pluginvar_show_type(pv), 0, ...
0
293,741
static RList *symbols(RBinFile *bf) { RList *ret = r_list_newf (free); if (!ret) { return NULL; } RKernelCacheObj *obj = (RKernelCacheObj*) bf->o->bin_obj; symbols_from_mach0 (ret, obj->mach0, bf, 0, 0); HtPP *kernel_syms_by_addr = sdb_ht_new (); if (!kernel_syms_by_addr) { r_list_free (ret); return NUL...
0
384,782
linetabsize(char_u *s) { return linetabsize_col(0, s); }
0
468,352
g_socket_client_get_proxy_resolver (GSocketClient *client) { if (client->priv->proxy_resolver) return client->priv->proxy_resolver; else return g_proxy_resolver_get_default (); }
0
500,072
kssl_krb5_get_server_rcache(krb5_context con, krb5_const krb5_data * data, krb5_rcache * rcache) { if ( p_krb5_get_server_rcache ) return(p_krb5_get_server_rcache(con,data,rcache)); else return KRB5KRB_ERR_GENERIC; }
0
301,375
static uint64_t vfswrap_disk_free(vfs_handle_struct *handle, const char *path, bool small_query, uint64_t *bsize, uint64_t *dfree, uint64_t *dsize) { uint64_t result; result = sys_disk_free(handle->conn, path, small_query, bsize, dfree, dsize); return result; }
0
236,126
GF_Err text_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; u16 pSize; GF_TextSampleEntryBox *ptr = (GF_TextSampleEntryBox*)s; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_data(bs, ptr->reserved, 6); gf_bs_write_u16(bs, ptr->dataReferenceIndex); gf_bs_write_u32(bs, ptr->displayFlags); ...
0
238,652
static int set_loop_callback_state(struct bpf_verifier_env *env, struct bpf_func_state *caller, struct bpf_func_state *callee, int insn_idx) { /* bpf_loop(u32 nr_loops, void *callback_fn, void *callback_ctx, * u64 flags); * callback_fn(u32 index, void *callback_ctx); */ callee->regs[BPF...
0
226,024
GF_Err dinf_box_write(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_write_header(s, bs); }
0
267,950
R_API RBinPlugin *r_bin_file_cur_plugin(RBinFile *bf) { return (bf && bf->o)? bf->o->plugin: NULL; }
0
344,800
vdollar_percent_expand(int *parseerror, int dollar, int percent, const char *string, va_list ap) { #define EXPAND_MAX_KEYS 16 u_int num_keys = 0, i; struct { const char *key; const char *repl; } keys[EXPAND_MAX_KEYS]; struct sshbuf *buf; int r, missingvar = 0; char *ret = NULL, *var, *varend, *val; size_...
0
512,774
Item_bool_rowready_func2* Ne_creator::create_swap(THD *thd, Item *a, Item *b) const { return new(thd->mem_root) Item_func_ne(thd, b, a); }
0
236,208
void hclr_box_del(GF_Box *s) { gf_free(s); }
0
474,076
euckr_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED) { const UChar c = *s; if (c <= 0x7e) return TRUE; else return FALSE; }
0
224,709
GF_Err iinf_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_ItemInfoBox *ptr = (GF_ItemInfoBox *)s; if (a->type == GF_ISOM_BOX_TYPE_INFE) { BOX_FIELD_LIST_ASSIGN(item_infos) return GF_OK; } else { return GF_OK; } }
0
402,639
cmpstringp(const void *p1, const void *p2) { return strcmp(*(char * const *)p1, *(char * const *)p2); }
0
226,259
GF_Err rtp_hnti_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_RTPBox *ptr = (GF_RTPBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->subType); //don't write the NULL char!!! gf_bs_write_data(bs, ptr->sdpText, (u32) strlen(ptr->s...
0
459,101
static void tc_chain_tmplt_del(const struct tcf_proto_ops *tmplt_ops, void *tmplt_priv) { /* If template ops are set, no work to do for us. */ if (!tmplt_ops) return; tmplt_ops->tmplt_destroy(tmplt_priv); module_put(tmplt_ops->owner); }
0
477,276
int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey, u8 mode, bool master_key) { struct tipc_aead *aead = NULL; int rc = 0; /* Initiate with the new user key */ rc = tipc_aead_init(&aead, ukey, mode); /* Attach it to the crypto */ if (likely(!rc)) { rc = tipc_crypto_key_attach(c, ae...
0
317,270
static int smk_curacc_on_task(struct task_struct *p, int access, const char *caller) { struct smk_audit_info ad; struct smack_known *skp = smk_of_task_struct_obj(p); int rc; smk_ad_init(&ad, caller, LSM_AUDIT_DATA_TASK); smk_ad_setfield_u_tsk(&ad, p); rc = smk_curacc(skp, access, &ad); rc = smk_bu_task(p, a...
0
376,338
gpg_context_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_ALWAYS_TRUST: camel_gpg_context_set_always_trust ( CAMEL_GPG_CONTEXT (object), g_value_get_...
0
247,719
TestUtilOptionsV2& setExpectedServerCertDigest(const std::string& expected_server_cert_digest) { expected_server_cert_digest_ = expected_server_cert_digest; return *this; }
0
450,362
static int vnc_refresh_server_surface(VncDisplay *vd) { int width = MIN(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server)); int height = MIN(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server)); int cmp_bytes, server_stri...
0
369,889
static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd) { struct inode *inode = dentry->d_inode; int error = -EACCES; /* We don't need a base pointer in the /proc filesystem */ path_put(&nd->path); /* Are we allowed to snoop on the tasks file descriptors? */ if (!proc_fd_access_allowed(in...
0
432,193
void cpu_exec_unrealizefn(CPUState *cpu) { }
0
359,376
DEFUN (no_neighbor_attr_unchanged4, no_neighbor_attr_unchanged4_cmd, NO_NEIGHBOR_CMD2 "attribute-unchanged med (as-path|next-hop)", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "BGP attribute is propagated unchanged to this neighbor\n" "Med attribute\n" "As-path attribu...
0
221,691
int Socket::getPeerSourcePort() { return ntohs(peer_adr.sin_port); }
0
281,633
void CLASS parse_fuji (int offset) { unsigned entries, tag, len, save, c; fseek (ifp, offset, SEEK_SET); entries = get4(); if (entries > 255) return; while (entries--) { tag = get2(); len = get2(); save = ftell(ifp); if (tag == 0x100) { raw_height = get2(); raw_width = get2(); ...
0
227,010
IRC_PROTOCOL_CALLBACK(cap) { char *ptr_caps, **caps_supported, **caps_added, **caps_removed; char **caps_enabled, *pos_value, *str_name, **str_caps; char str_msg_auth[512], **str_caps_enabled, **str_caps_disabled; int num_caps_supported, num_caps_added, num_caps_removed; int num_caps_enabled, sasl_t...
0
291,811
static int rtrs_clt_read_req(struct rtrs_clt_io_req *req) { struct rtrs_clt_con *con = req->con; struct rtrs_path *s = con->c.path; struct rtrs_clt_path *clt_path = to_clt_path(s); struct rtrs_msg_rdma_read *msg; struct rtrs_ib_dev *dev = clt_path->s.dev; struct ib_reg_wr rwr; struct ib_send_wr *wr = NULL; in...
0
224,291
gopherSendComplete(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag errflag, int xerrno, void *data) { GopherStateData *gopherState = (GopherStateData *) data; StoreEntry *entry = gopherState->entry; debugs(10, 5, conn << " size: " << size << " errflag: " << errflag); if (size > 0) ...
0
317,309
static void smack_task_to_inode(struct task_struct *p, struct inode *inode) { struct inode_smack *isp = smack_inode(inode); struct smack_known *skp = smk_of_task_struct_obj(p); isp->smk_inode = skp; isp->smk_flags |= SMK_INODE_INSTANT; }
0
450,397
static int send_mono_rect(VncState *vs, int x, int y, int w, int h, uint32_t bg, uint32_t fg) { ssize_t bytes; int stream = 1; int level = tight_conf[vs->tight->compression].mono_zlib_level; #ifdef CONFIG_VNC_PNG if (tight_can_send_png_rect(vs, w, h)) { int ret; ...
0
313,556
static void rose_del_route_by_neigh(struct rose_neigh *rose_neigh) { struct rose_route *rose_route, *s; rose_neigh->restarted = 0; rose_stop_t0timer(rose_neigh); rose_start_ftimer(rose_neigh); skb_queue_purge(&rose_neigh->queue); spin_lock_bh(&rose_route_list_lock); rose_route = rose_route_list; while (ro...
0
387,789
bool InstanceKlass::is_same_class_package(oop other_class_loader, const Symbol* other_class_name) const { if (class_loader() != other_class_loader) { return false; } if (name()->fast_compare(other_class_name) == 0) { return true; } { ResourceMark rm; ...
0
221,461
flatpak_context_load_for_deploy (FlatpakDeploy *deploy, GError **error) { g_autoptr(FlatpakContext) context = NULL; g_autoptr(FlatpakContext) overrides = NULL; g_autoptr(GKeyFile) metakey = NULL; metakey = flatpak_deploy_get_metadata (deploy); context = flatpak_app_comp...
0
199,767
inbound_cap_ls (server *serv, char *nick, char *extensions_str, const message_tags_data *tags_data) { char buffer[256]; /* buffer for requesting capabilities and emitting the signal */ guint32 want_cap; /* format the CAP REQ string based on previous capabilities being requested or not */ guint32 want_sasl; /* ...
1
417,096
void PlayerGeneric::setAllowFilters(bool b) { allowFilters = b; if (player) player->setAllowFilters(allowFilters); }
0
427,191
static void open_func (LexState *ls, FuncState *fs, BlockCnt *bl) { Proto *f = fs->f; fs->prev = ls->fs; /* linked list of funcstates */ fs->ls = ls; ls->fs = fs; fs->pc = 0; fs->previousline = f->linedefined; fs->iwthabs = 0; fs->lasttarget = 0; fs->freereg = 0; fs->nk = 0; fs->nabslineinfo = 0;...
0
386,565
bool DL_Dxf::handleLWPolylineData(DL_CreationInterface* /*creationInterface*/) { // Allocate LWPolyline vertices (group code 90): if (groupCode==90) { maxVertices = toInt(groupValue); if (maxVertices>0) { if (vertices!=NULL) { delete[] vertices; } ...
0
333,084
frag(nfa_state_T *start, Ptrlist *out) { Frag_T n; n.start = start; n.out = out; return n; }
0
215,038
gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) { GstCaps *caps; guint avail; GstFlowReturn res = GST_FLOW_OK; GstFlxDec *flxdec; FlxHeader *flxh; g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR); flxdec = (GstFlxDec *) parent; g_return_val_if_fail (flxdec != NULL, GST_FLOW_ERRO...
1
90,153
template<typename T> const T GetWirelessNetworkByPath( const std::vector<T>& networks, const std::string& path) const { typedef typename std::vector<T>::const_iterator iter_t; iter_t iter = std::find_if(networks.begin(), networks.end(), WirelessNetwork::ServicePathEq(path)...
0
276,920
static int do_i2c_flags(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct udevice *dev; uint flags; int chip; int ret; if (argc < 2) return CMD_RET_USAGE; chip = hextoul(argv[1], NULL); ret = i2c_get_cur_bus_chip(chip, &dev); if (ret) return i2c_report_err(ret, I2C_ERR_READ); if...
0
446,420
static cache_hdr_t *read_cache_header(RzBuffer *cache_buf, ut64 offset) { if (!cache_buf) { return NULL; } cache_hdr_t *hdr = RZ_NEW0(cache_hdr_t); if (!hdr) { return NULL; } ut64 size = sizeof(cache_hdr_t); if (rz_buf_fread_at(cache_buf, offset, (ut8 *)hdr, "16c4i7l16clii4l", 1) != size) { free(hdr); ...
0
312,412
qf_setprop_items_from_lines( qf_info_T *qi, int qf_idx, dict_T *what, dictitem_T *di, int action) { char_u *errorformat = p_efm; dictitem_T *efm_di; int retval = FAIL; // Use the user supplied errorformat settings (if present) if ((efm_di = dict_find(what, (char_u *)"efm", -1)) != NULL) ...
0
225,951
GF_Err esds_box_read(GF_Box *s, GF_BitStream *bs) { GF_Err e=GF_OK; u32 descSize; GF_ESDBox *ptr = (GF_ESDBox *)s; descSize = (u32) (ptr->size); if (descSize) { char *enc_desc = (char*)gf_malloc(sizeof(char) * descSize); if (!enc_desc) return GF_OUT_OF_MEM; //get the payload gf_bs_read_data(bs, enc_desc,...
0
220,904
void LongestPathsLowerBounds( int source, const std::pair<int, int>& target_range, const std::vector<std::vector<int>>& outputs, std::vector<DistanceFromSource>* longest_distance) { std::deque<int> queue; queue.emplace_front(source); while (!queue.empty()) { int node = queue.front(); queue.pop...
0
326,093
regconcat(int *flagp) { char_u *first = NULL; char_u *chain = NULL; char_u *latest; int flags; int cont = TRUE; *flagp = WORST; // Tentatively. while (cont) { switch (peekchr()) { case NUL: case Magic('|'): case Magic('&'): case Magic(')'): cont = FALSE;...
0
247,134
u32 gf_fs_get_max_resolution_chain_length(GF_FilterSession *session) { if (!session) return 0; return session->max_resolve_chain_len; }
0
512,619
int Regexp_processor_pcre::default_regex_flags() { return default_regex_flags_pcre(current_thd); }
0
384,765
textpos2screenpos( win_T *wp, pos_T *pos, int *rowp, // screen row int *scolp, // start screen column int *ccolp, // cursor screen column int *ecolp) // end screen column { colnr_T scol = 0, ccol = 0, ecol = 0; int row = 0; int rowoff = 0; colnr_T coloff = 0; if (pos->lnum >= wp->w_topline ...
0
401,578
static int random_fasync(int fd, struct file *filp, int on) { return fasync_helper(fd, filp, on, &fasync); }
0
432,155
PipelineD::buildInnerQueryExecutorGeneric(const CollectionPtr& collection, const NamespaceString& nss, const AggregateCommandRequest* aggRequest, Pipeline* pipeline) { // Make a last effort ...
0
253,701
ccp_run_ecc_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { struct ccp_ecc_engine *ecc = &cmd->u.ecc; ecc->ecc_result = 0; if (!ecc->mod || (ecc->mod_len > CCP_ECC_MODULUS_BYTES)) return -EINVAL; switch (ecc->function) { case CCP_ECC_FUNCTION_MMUL_384BIT: case CCP_ECC_FUNCTION_MADD_384BIT: case...
0
385,836
SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) { struct path path; int error; unsigned int lookup_flags = LOOKUP_FOLLOW; retry: error = user_path_at(dfd, filename, lookup_flags, &path); if (!error) { error = chmod_common(&path, mode); path_put(&path); if (retry_estale(error...
0