functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
redraw(void) { if (mapped()==MSTrue&&owner()->mapped()==MSTrue&&frozen()==MSFalse) { drawMarkers(); redrawElevator(); drawSunken(); } }
false
false
false
false
false
0
lheapSwapDown(L_HEAP *lh) { l_int32 ip; /* index to heap for parent; 1 larger than array index */ l_int32 icr, icl; /* index into heap for left/right children */ l_float32 valp, valcl, valcr; PROCNAME("lheapSwapDown"); if (!lh) return ERROR_INT("lh not defined", procName, 1); if (lheapGetCount(l...
false
false
false
false
false
0
NotifyClientSubscribersOfDataChange( CloudData *cloudData, CloudKey &key, DataStructures::OrderedList<RakNetGUID, RakNetGUID> &subscribers, bool wasUpdated ) { RakNet::BitStream bsOut; bsOut.Write((MessageID) ID_CLOUD_SUBSCRIPTION_NOTIFICATION); bsOut.Write(wasUpdated); CloudQueryRow row; row.key=key; row....
false
false
false
false
false
0
do_bottom_half_rx(struct fst_card_info *card) { struct fst_port_info *port; int pi; int rx_count = 0; /* Check for rx completions on all ports on this card */ dbg(DBG_RX, "do_bottom_half_rx\n"); for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { if (!port->run) continue; while (!(FST_RDB...
false
false
false
false
false
0
MGD77_bit_test (double value, double limit) { unsigned int ivalue, ilimit; /* Test that checks for (value & limit) > 0 */ /* We except both value and limit to be integers encoded as doubles, but we first check for NaNs anyway */ if (GMT_is_dnan (value)) return (FALSE); /* Cannot pass a test with a NaN */ if (GMT...
false
false
false
false
false
0
select_account_by_id (GoaPanel *panel, const gchar *account_id) { GoaObject *goa_object = NULL; GtkTreeIter iter; gboolean iter_set = FALSE; goa_object = goa_client_lookup_by_id (panel->client, account_id); if (goa_object != NULL) { iter_set = goa_panel_accounts_model_get_i...
false
false
false
false
false
0
posix_getloadavg(PyObject *self, PyObject *noargs) { double loadavg[3]; if (getloadavg(loadavg, 3)!=3) { PyErr_SetString(PyExc_OSError, "Load averages are unobtainable"); return NULL; } else return Py_BuildValue("ddd", loadavg[0], loadavg[1], loadavg[2]); }
false
false
false
false
false
0
lpfc_issue_lip(struct Scsi_Host *shost) { struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; struct lpfc_hba *phba = vport->phba; LPFC_MBOXQ_t *pmboxq; int mbxstatus = MBXERR_ERROR; if ((vport->fc_flag & FC_OFFLINE_MODE) || (phba->sli.sli_flag & LPFC_BLOCK_MGMT_IO)) return -EPERM; pmboxq...
false
false
false
false
false
0
init_screen(SCREEN *sp GCC_UNUSED, void *arg) { DITTO *target = (DITTO *) arg; int high, wide; int k; cbreak(); noecho(); scrollok(stdscr, TRUE); box(stdscr, 0, 0); target->windows = typeCalloc(WINDOW *, (size_t) target->length); target->peeks = typeCalloc(PEEK, (size_t) target->le...
false
false
false
false
false
0
copy( SP_SidList * outList, SP_Sid_t * ignoreSid ) { sp_thread_mutex_lock( &mMutex ); for( int i = 0; i < mList.getCount(); i++ ) { if( NULL != ignoreSid ) { SP_Sid_t theSid = mList.get( i ); if( theSid.mKey == ignoreSid->mKey && theSid.mSeq == ignoreSid->mSeq ) { continue; } } outList->add( mLis...
false
false
false
false
false
0
k5_locate_server(krb5_context context, const krb5_data *realm, struct serverlist *serverlist, enum locate_service_type svc, int socktype) { krb5_error_code code; struct serverlist al = SERVERLIST_INIT; *serverlist = al; if (realm == NULL || realm->data == NULL || real...
false
false
false
false
false
0
set_migratetype_isolate(struct page *page, bool skip_hwpoisoned_pages) { struct zone *zone; unsigned long flags, pfn; struct memory_isolate_notify arg; int notifier_ret; int ret = -EBUSY; zone = page_zone(page); spin_lock_irqsave(&zone->lock, flags); pfn = page_to_pfn(page); arg.start_pfn = pfn; arg.nr...
false
false
false
false
false
0
prd_helpbox(const struct ltab *lt) { mvaddstr(lt->row, lt->col, helpbox? lt->prompts[1]: lt->prompts[0]); }
false
false
false
false
false
0
random_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { RandomObject *self; PyObject *tmp; if (type == &Random_Type && !_PyArg_NoKeywords("Random()", kwds)) return NULL; self = (RandomObject *)type->tp_alloc(type, 0); if (self == NULL) return NULL; tmp = random_seed(se...
false
false
false
false
false
0
Conf_Process(std::fstream & f) { char line[MAX_LINE_LENGTH]; unsigned l = 0; bool breakflag = false; while (!f.eof() && !breakflag) { l++; f.getline(line, sizeof(line)); if (line[0] == '\0') { // empty line, skip it (yeah we should ignore whitespaces too) continue; } if (line[0] == '/...
false
false
false
false
false
0
matchSymbol( QString json, int& idx, OrmLightType::OrmSymbol& sym ) { //My symbols QRegExp reg_white("[\\t ]*"); QRegExp reg_bool("(true|false)"); QRegExp reg_int("([-]?[0-9]+)"); QRegExp reg_double("([-]?[0-9]+\\.[0-9]+)"); QRegExp reg_string("\"(.*[^\\\\])\""); QRegExp reg_string_empty("\"()\""); QR...
false
false
false
false
false
0
unmap_partial_tx_skb(struct happy_meal *hp, u32 first_mapping, u32 first_len, u32 first_entry, u32 entry) { struct happy_meal_txd *txbase = &hp->happy_block->happy_meal_txd[0]; dma_unmap_single(hp->dma_dev, first_mapping, first_len, DMA_TO_DEVICE); first_entry = NEXT_TX(first_entry); while (first_entry != en...
false
false
false
false
false
0
_g_replace (const char *str, const char *from_str, const char *to_str) { char **tokens; int i; GString *gstr; if (str == NULL) return NULL; if (from_str == NULL) return g_strdup (str); if (strcmp (str, from_str) == 0) return g_strdup (to_str); tokens = g_strsplit (str, from_str, -1)...
false
false
false
false
false
0
il4965_mac_setup_register(struct il_priv *il, u32 max_probe_length) { int ret; struct ieee80211_hw *hw = il->hw; hw->rate_control_algorithm = "iwl-4965-rs"; /* Tell mac80211 our characteristics */ ieee80211_hw_set(hw, SUPPORTS_DYNAMIC_PS); ieee80211_hw_set(hw, SUPPORTS_PS); ieee80211_hw_set(hw, REPORTS_TX_ACK_...
false
false
false
false
false
0
setSymParam(OsiSymStrParam key, const std::string & value) { switch(key){ // case ' ': default: return false; } }
false
false
false
false
false
0
startLineField(const LineFieldNIC &) { start(); if (inlineState_ == inlineStart || inlineState_ == inlineFirst) { fieldTabPos_ = specFormat_.fieldWidth + paraFormat_.leftIndent; if (!continuePar_) fieldTabPos_ += paraFormat_.firstLineIndent; inlinePrepare(); inlineState_ = inlineField; // ...
false
false
false
false
false
0
gedit_plugins_engine_get_default (void) { if (default_engine == NULL) { default_engine = GEDIT_PLUGINS_ENGINE (g_object_new (GEDIT_TYPE_PLUGINS_ENGINE, NULL)); g_object_add_weak_pointer (G_OBJECT (default_engine), (gpointer) &def...
false
false
false
false
false
0
Perl_save_scalar(pTHX_ GV *gv) { dVAR; SV ** const sptr = &GvSVn(gv); PERL_ARGS_ASSERT_SAVE_SCALAR; if (SvGMAGICAL(*sptr)) { PL_localizing = 1; (void)mg_get(*sptr); PL_localizing = 0; } save_pushptrptr(SvREFCNT_inc_simple(gv), SvREFCNT_inc(*sptr), SAVEt_SV); return ...
false
false
false
false
false
0
recvPPM(TIFF* tif, int& ppr) { for (;;) { switch (atResponse(rbuf, conf.pageDoneTimeout)) { case AT_OK: protoTrace("MODEM protocol botch: OK without +FPTS:"); /* fall thru... */ case AT_TIMEOUT: case AT_EMPTYLINE: case AT_NOCARRIER: case AT_NODIALTONE: case AT_NOANSWER: case AT_ERROR: process...
false
false
false
false
false
0
gcr_collection_model_object_for_iter (GcrCollectionModel *self, const GtkTreeIter *iter) { g_return_val_if_fail (GCR_IS_COLLECTION_MODEL (self), NULL); g_return_val_if_fail (iter != NULL, NULL); g_return_val_if_fail (iter->stamp == COLLECTION_MODEL_STAMP, NULL); g_return_val_if_fail (G_IS_OBJECT (iter->user_data), ...
false
false
false
false
false
0
connection_obs_cb(int fd, short events, void *arg) { struct connection *conn = (struct connection *) arg; if (EV_READ & events) { int queued; if (ioctl(conn->fd, SIOCINQ, &queued)) { perror("ioctl"); connection_free(conn); return; } if (!queued) queued = 16; struct chunk *c =...
false
false
false
false
false
0
ListIterator_currentPosition(ListIterator * iterator) { int pos = 0; ListNode * current; if(iterator == NULL) return -1; if(iterator->currentNode == NULL) return -1; current = iterator->currentNode; while((current = current->previousNode) != NULL) pos++; return pos; }
false
false
false
false
false
0
RecursiveStackCheck(int n) { if (Ns_CheckStack() == NS_OK) { n = RecursiveStackCheck(n); } ++n; return n; }
false
false
false
false
false
0
brw_upload_gs_unit(struct brw_context *brw) { struct brw_gs_unit_state *gs; gs = brw_state_batch(brw, AUB_TRACE_GS_STATE, sizeof(*gs), 32, &brw->ff_gs.state_offset); memset(gs, 0, sizeof(*gs)); /* BRW_NEW_PROGRAM_CACHE | CACHE_NEW_GS_PROG */ if (brw->ff_gs.prog_active) { gs->thread0.grf_reg_c...
false
false
false
false
false
0
L5() {register object *base=vs_base; register object *sup=base+VM5; VC5 vs_check; bds_check; {register object V15; V15=(base[0]); vs_top=sup; goto TTL; TTL:; bds_bind(((object)VV[0]),((object)VV[1])); bds_bind(((object)VV[2]),((object)VV[3])); bds_bind(((object)VV[4]),((object)VV[5])); {register object x= (V...
false
false
false
false
false
0
reintegrate_workspace(Triangulator *triangulator, guint id, WorkSpace *wspace) { NeighbourBlock *nb; guint *neighbours; guint j; nb = triangulator->blocks + id; neighbours = triangulator->neighbours + nb->pos; if (wspace->len > nb->size) neigh...
false
false
false
false
false
0
Hash(void) { MD5Context context; context.Update(outpointer, (size_t)blocksize); MD5Hash hash; context.Final(hash); return hash; }
false
false
false
false
false
0
_e2_edit_dialog_button_press_cb (GtkWidget *textview, GdkEventButton *event, E2_ViewDialogRuntime *rt) { _e2_edit_dialog_blink_stop (rt); if (event->button == 3) { _e2_edit_dialog_show_context_menu (textview, 3, event->time, rt); return TRUE; } return FALSE; }
false
false
false
false
false
0
checkConsistency(EStyle style, const char* key, UErrorCode& err) { if (U_FAILURE(err)) { return; } // there should be patterns for each plural rule in each time unit. // For each time unit, // for each plural rule, following is unit pattern fall-back rule: // ( for example: ...
false
false
false
false
false
0
trace_automount(struct dentry *mntpt, void *ingore) { struct vfsmount *mnt; struct file_system_type *type; /* * To maintain backward compatibility for tools that mount * debugfs to get to the tracing facility, tracefs is automatically * mounted to the debugfs/tracing directory. */ type = get_fs_type("trace...
false
false
false
false
false
0
hseek(hFILE *fp, off_t offset, int whence) { off_t pos; if (writebuffer_is_nonempty(fp)) { int ret = flush_buffer(fp); if (ret < 0) return ret; } pos = fp->backend->seek(fp, offset, whence); if (pos < 0) { fp->has_errno = errno; return pos; } // Seeking succeeded, so discard a...
false
false
false
false
false
0
conf_load(void) { int stat; while (1) { cprint_init(); cprint("--inputbox"); cprint(load_config_text); cprint("11"); cprint("55"); cprint("%s", filename); stat = exec_conf(); switch(stat) { case 0: if (!input_buf[0]) return; if (!conf_read(input_buf)) return; show_textbox(NULL, _("...
false
false
false
false
false
0
createPane(int ch) { Notebook *nb; Text *op; char z[64]; nb=getNotebook(); if (!nb) return; op=new Text(); snprintf(z,64,"%s",getChannelTitle(ch) ); op->show(); nb->addPage(op->widget,z,-200-ch,true); op->setNotebook(nb,-200-ch); numbers.push_back(ch); panes.push_back(op); }
false
false
false
false
false
0
FuncSET_FILTER_LIST ( Obj self, Obj list, Obj filter ) { Int new; Obj flags; /* this could be done by a table lookup */ flags = FLAGS_FILT(filter); if (FuncIS_SUBSET_FLAGS(0,flags,FLAGS_FILT(IsSSo...
false
false
false
false
false
0
SHA(const unsigned char *d, size_t n, unsigned char *md) { SHA_CTX c; static unsigned char m[SHA_DIGEST_LENGTH]; if (md == NULL) md=m; if (!SHA_Init(&c)) return NULL; SHA_Update(&c,d,n); SHA_Final(md,&c); OPENSSL_cleanse(&c,sizeof(c)); return(md); }
false
false
false
false
false
0
tns_value_destroy(tns_value_t *value) { if(value == NULL) return; darray_t *L = value->value.list; int i = 0; switch(value->type) { case tns_tag_bool: break; case tns_tag_dict: hash_free_nodes(value->value.dict); hash_free(value->value.dict); ...
false
false
false
false
false
0
ngene_stop(struct ngene *dev) { down(&dev->cmd_mutex); i2c_del_adapter(&(dev->channel[0].i2c_adapter)); i2c_del_adapter(&(dev->channel[1].i2c_adapter)); ngwritel(0, NGENE_INT_ENABLE); ngwritel(0, NGENE_COMMAND); ngwritel(0, NGENE_COMMAND_HI); ngwritel(0, NGENE_STATUS); ngwritel(0, NGENE_STATUS_HI); ngwritel(0,...
false
false
false
false
false
0
findDAncestorBlocker ( DlCompletionTree* node ) { register const DlCompletionTree* p = node; #ifdef RKG_USE_FAIRNESS if ( nSkipBeforeBlock ) for ( int n = nSkipBeforeBlock-1; n >= 0 && p->hasParent() && p->isBlockableNode(); --n ) p = p->getParentNode(); #endif while ( p->hasParent() ) { p = p->getParentNo...
false
false
false
false
false
0
PyvtkUnicodeStringArray_SetValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkUnicodeStringArray *op = static_cast<vtkUnicodeStringArray *>(vp); vtkIdType temp0; vtkUnicodeString temp1; PyObject *result = NULL; if (op &...
false
false
false
false
false
0
bnx2x_set_gro_params(struct sk_buff *skb, u16 parsing_flags, u16 len_on_bd, unsigned int pkt_len, u16 num_of_coalesced_segs) { /* TPA aggregation won't have either IP options or TCP options * other than timestamp or IPv6 extension headers. */ u16 hdrs_len = ETH_HLEN + sizeof(struct tcphdr); if (GET_FL...
false
false
false
false
false
0
load_option_file(const char *path) { struct config_state config = { path, 0, FALSE }; struct io io; /* Do not read configuration from stdin if set to "" */ if (!path || !strlen(path)) return OPT_OK; /* It's OK that the file doesn't exist. */ if (!io_open(&io, "%s", path)) return OPT_ERR_FILE_DOES_NOT_EXIST;...
false
false
false
false
false
0
ref_at_iteration (struct loop *loop, tree ref, int iter) { tree idx, *idx_p, type, val, op0 = NULL_TREE, ret; affine_iv iv; bool ok; if (handled_component_p (ref)) { op0 = ref_at_iteration (loop, TREE_OPERAND (ref, 0), iter); if (!op0) return NULL_TREE; } else if (!INDIRECT_REF_P (ref) ...
false
false
false
false
false
0
add_teleport(int telnum, int x, int y, int tpair) { const int helpers[2][4] = { { ISO_REFRESH_1, ISO_REFRESH_1, ISO_REFRESH_1, ISO_REFRESH_1 }, { ISO_ENHANCER_RU, ISO_ENHANCER_LU, ISO_ENHANCER_RD, ISO_ENHANCER_LD } }; char *warp, *fromwarp; char tmp[500]; int obstacle, helper; sprintf(tmp, "%dtoX%d", tar...
false
false
false
false
false
0
Log(Ns_LogSeverity severity, char *fmt, va_list ap) { LogCache *cachePtr; cachePtr = LogGetCache(); if (nslogProcPtr == NULL) { if (LogStart(cachePtr, severity)) { Ns_DStringVPrintf(&cachePtr->buffer, fmt, ap); LogEnd(cachePtr); } } else { (*nslogProcPtr)(&cachePtr->buffer, severity, fmt, ...
false
false
false
false
false
0
ipoib_reap_ah(struct work_struct *work) { struct ipoib_dev_priv *priv = container_of(work, struct ipoib_dev_priv, ah_reap_task.work); struct net_device *dev = priv->dev; __ipoib_reap_ah(dev); if (!test_bit(IPOIB_STOP_REAPER, &priv->flags)) queue_delayed_work(priv->wq, &priv->ah_reap_task, round_jiffies...
false
false
false
false
false
0
session_remove(struct session_req *req) { struct btd_adapter *adapter = req->adapter; /* Ignore set_mode session */ if (req->owner == NULL) return; DBG("%s session %p with %s deactivated", req->mode ? "Mode" : "Discovery", req, req->owner); if (req->mode) { uint8_t mode; adapter->mode_sessions = g_slis...
false
false
false
false
false
0
WriteFile(ofstream *file, vtkImageData *data, int extent[6]) { int idx0, idx1, idx2; int rowLength; // in bytes void *ptr; unsigned long count = 0; unsigned long target; float progress = this->Progress; float area; int *wExtent; // Make sure we actually have data. if ...
false
false
false
false
false
0
isPowTen(int count) { double x = log(count) / log(10.0); if (0.0 != x - (double) (int) x) return 0; return 1; }
false
false
false
false
false
0
tab_tail_focus() { if( ! m_focus ) switch_admin(); tab_tail(); }
false
false
false
false
false
0
cmd_ins_del_colrow (WorkbookControl *wbc, Sheet *sheet, gboolean is_cols, gboolean is_insert, char const *descriptor, int index, int count) { CmdInsDelColRow *me; int first, last; GnmRange r; g_return_val_if_fail (IS_SHEET (sheet), TRUE); g_return_val_if_fail (count > 0, TRUE); me = g_object_n...
false
false
false
false
false
0
padata_get_next(struct parallel_data *pd) { int cpu, num_cpus; unsigned int next_nr, next_index; struct padata_parallel_queue *next_queue; struct padata_priv *padata; struct padata_list *reorder; num_cpus = cpumask_weight(pd->cpumask.pcpu); /* * Calculate the percpu reorder queue and the sequence * number ...
false
false
false
false
false
0
initialiseDefaultResourceGroups() const { DefaultGroupVector::const_iterator i = d_defaultResourceGroups.begin(); for (; i != d_defaultResourceGroups.end(); ++i) { switch ((*i).type) { case RT_IMAGESET: Imageset::setDefaultResourceGroup((*i).group); break; ...
false
false
false
false
false
0
syncop_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, int op_errno, struct iatt *preop, struct iatt *postop) { struct syncargs *args = NULL; args = cookie; args->op_ret = op_ret; args->op_errno = op_errno; ...
false
false
false
false
false
0
varcircles_refresh (GGobiData * d, ggobid * gg) { gint j; GtkWidget *da; for (j = 0; j < d->ncols; j++) { da = varcircles_get_nth (DA, j, d); if (GTK_WIDGET_REALIZED (da) && GTK_WIDGET_VISIBLE (da)) varcircle_draw (j, d, gg); } }
false
false
false
false
false
0
get_time_notify(DBusGProxy *proxy, DBusGProxyCall *call, gpointer data) { GError *error = NULL; int seconds = 0; DEBUG(GYPSY_TIME": GetTime: Notify"); dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_INT, &seconds, G_TYPE_INVALID); if (error) { WARNING(GYPSY_TIME": GetTime: %s", error->message); g_erro...
false
false
false
false
false
0
onCmdSync(FXObject*,FXSelector sel,void*ptr){ FXbool check=((FXint)(FXival)ptr)!=0; switch(FXSELID(sel)){ case ID_SYNC_NEW : GMPlayerManager::instance()->getPreferences().sync.import_new=check; break; case ID_SYNC_REMOVE_MISSING : GMPlayerManager::instance()->get...
false
false
false
false
false
0
extract_range_basic (value_range_t *vr, gimple stmt) { bool sop = false; tree type = gimple_expr_type (stmt); /* If the call is __builtin_constant_p and the argument is a function parameter resolve it to false. This avoids bogus array bound warnings. ??? We could do this as early as inlining is ...
false
false
false
false
false
0
UpdateDiskParameters(int disk) { char *fname = gui_options.disks[disk].path; int dlgpath_idx = PARTS_PATH[disk]; File_ShrinkName(part_path[disk], fname, partitiondlg[dlgpath_idx].w); strncpy(part_id[disk], gui_options.disks[disk].partID, sizeof(part_id[disk])); if (fname == NULL || strlen(fname) == 0) { strcp...
false
false
false
false
false
0
isl_vertex_get_domain(__isl_keep isl_vertex *vertex) { struct isl_vertex *v; if (!vertex) return NULL; v = &vertex->vertices->v[vertex->id]; if (!v->dom) { v->dom = isl_basic_set_copy(v->vertex); v->dom = isl_basic_set_params(v->dom); v->dom = isl_basic_set_set_integral(v->dom); } return isl_basic_set_...
false
false
false
false
false
0
set_fast_packetisation(t38_gateway_state_t *s) { int ind; ind = T38_IND_NO_SIGNAL; switch (s->fast_rx_active) { case T38_V17_RX: switch (s->fast_bit_rate) { case 7200: set_octets_per_data_packet(s, 7200); ind = (s->audio.short_train) ? T38_IND_V17_7...
false
false
false
false
false
0
gsf_ms_ole_sorting_key_copy (GsfMSOleSortingKey *sk) { GsfMSOleSortingKey *res = g_new (GsfMSOleSortingKey, 1); res->len = sk->len; res->name = g_new (gunichar2, sk->len + 1); memcpy (res->name, sk->name, (sk->len + 1) * sizeof (gunichar2)); return res; }
false
false
false
false
false
0
ml_utime(struct afp_volume * vol, const char * path, struct utimbuf * timebuf) { int ret=0; unsigned int dirid; struct afp_file_info fp; char basename[AFP_MAX_PATH]; char converted_path[AFP_MAX_PATH]; int rc; if (volume_is_readonly(vol)) return -EACCES; memset(&fp,0,sizeof(struct afp_file_info)); fp.mo...
false
false
false
false
false
0
give_tech(int toNationRecno, int techId, int techVersion) { Nation* toNation = nation_array[toNationRecno]; int curVersion = tech_res[techId]->get_nation_tech_level(toNationRecno); if( curVersion < techVersion ) tech_res[techId]->set_nation_tech_level( toNationRecno, techVersion ); NationRelation* nationRelati...
false
false
false
false
false
0
retrieve_col_tree (GnmConsolidate *cs) { GTree *tree; GSList *l; g_return_val_if_fail (cs != NULL, NULL); tree = g_tree_new ((GCompareFunc) cb_value_compare); for (l = cs->src; l != NULL; l = l->next) { GnmSheetRange const *sgr = l->data; int col; for (col = sgr->range.start.col; col <= sgr->range.end.co...
false
false
false
false
false
0
findFrame( const QString &f ) { khtml::ChildFrame *childFrame; KHTMLPart *parentFrame = findFrameParent(this, f, &childFrame); if (parentFrame) return qobject_cast<KHTMLPart*>(childFrame->m_part.data()); return 0; }
false
false
false
false
false
0
df_jump_pattern_emit_after (df, pattern, bb, insn) struct df *df; rtx pattern; basic_block bb; rtx insn; { rtx ret_insn; ret_insn = emit_jump_insn_after (pattern, insn); if (ret_insn == insn) return ret_insn; df_insns_modify (df, bb, NEXT_INSN (insn), ret_insn); return ret_insn; }
false
false
false
false
false
0
ReleaseMemory() { if (ip) { delete[] ip; ip = 0; } if (w) { delete[] w; w = 0; } }
false
false
false
false
false
0
get_images(struct smug_curl_buffer *buffer, struct album *album) { char *temp = buffer->data; struct filename *filename; char *id; char *key; char *name; char *caption; char *original_url; int found_one = 0; while (1) { id = find_value(temp, "Image id", &temp); if (!id) break; key = find_value(temp, ...
false
false
false
false
false
0
add_file (GtkListStore *list_store, GFile *file) { GtkTreeIter iter; g_return_if_fail (list_store != NULL); g_return_if_fail (file != NULL); gtk_list_store_append (list_store, &iter); if (!update_file_iter (list_store, &iter, file, FALSE)) gtk_list_store_remove (list_store, &iter); }
false
false
false
false
false
0
edac_device_ctrl_instance_release(struct kobject *kobj) { struct edac_device_instance *instance; edac_dbg(1, "\n"); /* map from this kobj to the main control struct * and then dec the main kobj count */ instance = to_instance(kobj); kobject_put(&instance->ctl->kobj); }
false
false
false
false
false
0
SetProperty(const char* p, bool v) { // make sure it is not at the end if (this->IsAtEnd()) { return; } if ( !strcmp(p, "TYPE") || !strcmp(p, "VALUE") ) { cmSystemTools::Error("Property \"", p, "\" cannot be accessed through the SetProperty()"); return; } Ca...
false
false
false
false
false
0
process_incoming_message(struct mrpc_message *msg) { struct mrpc_connection *conn=msg->conn; struct pending_reply *pending; struct mrpc_event *event; if (msg->hdr.status == MINIRPC_PENDING) { event=mrpc_alloc_message_event(msg, EVENT_REQUEST); queue_event(event); } else { pthread_mutex_lock(&conn->pending_r...
false
false
false
false
false
0
edge_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) { struct usb_serial_port *port = tty->driver_data; struct edgeport_port *edge_port = usb_get_serial_port_data(port); unsigned int mcr; mcr = edge_port->shadowMCR; if (set & TIOCM_RTS) mcr |= MCR_RTS; if (set & TIOCM_DTR) mcr |= ...
false
false
false
false
false
0
modeNumber(bool & cc,tcPDPtr parent, const tPDVector & children) const { int imode(-1); if(children.size()!=2) return imode; // ids of the particles int id0(parent->id()),id0bar(id0); if(parent->CC()){id0bar=-id0;} tPDVector::const_iterator pit = children.begin(); int id; unsigned ilep(4); f...
false
false
false
false
false
0
mem_dump_list(FILE *fp, int list) #endif { int i; MEM_CONNECT *mlist; if ( list < 0 || list >= MEM_CONNECT_MAX_LISTS ) return; mlist = &mem_connect[list]; fprintf(fp," %15s[%d]:\n","CONTENTS OF mem_connect",list); fprintf(fp," %-7s %-12s %-9s %s\n", "name of", "alloc.", "# alloc."...
false
false
false
false
false
0
snd_vt1724_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); unsigned int val, old; val = encode_spdif_bits(&ucontrol->value.iec958); spin_lock_irq(&ice->reg_lock); old = inw(ICEMT1724(ice, SPDIF_CTRL)); if (val !=...
false
false
false
false
false
0
bt878_remove(struct pci_dev *pci_dev) { u8 command; struct bt878 *bt = pci_get_drvdata(pci_dev); if (bt878_verbose) printk(KERN_INFO "bt878(%d): unloading\n", bt->nr); /* turn off all capturing, DMA and IRQs */ btand(~0x13, BT878_AGPIO_DMA_CTL); /* first disable interrupts before unmapping the memory! */ bt...
false
false
false
false
false
0
web_view_gtkhtml_link_clicked (EWebViewGtkHTML *web_view, const gchar *uri) { gpointer parent; parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view)); parent = gtk_widget_is_toplevel (parent) ? parent : NULL; e_show_uri (parent, uri); }
false
false
false
false
false
0
krb5_parse_list(char *buffer, char *delimiter, char **list) { char *str = NULL; char *token = NULL; char *ptrptr = NULL; char **plist = list; krb5_error_code retval = 0; int count = 0; if ((buffer == NULL) || (list == NULL) || (delimiter == NULL)) { return EINVAL; } str = s...
false
false
false
false
false
0
to_string() { string s = "WideMatch:\n"; for(list<match *>::iterator i = submatches.begin(); i!=submatches.end(); i++) { s += (*i)->to_string() + "\n"; } return s; }
false
false
false
false
false
0
lookup(const char* name) { return FontImpl::lookup( Session::instance()->default_display(), String(name), 1.0 ); }
false
false
false
false
false
0
lam_ssi_boot_base_receive_lamd_info(struct lamnode *nodes, int nnodes) { struct lamnode *node; int want_promisc; /* See if we want to accept promiscuous connections. NOTE: THIS WILL NEED TO BE CHANGED WHEN WE DO THREADED/TREE-BASED BOOT ALGORITHMS! */ want_promisc = lam_ssi_base_param_lookup_i...
false
false
false
false
false
0
hoist(Instruction &I) { DEBUG(dbgs() << "LICM hoisting to " << Preheader->getName() << ": " << I << "\n"); // Move the new node to the Preheader, before its terminator. I.moveBefore(Preheader->getTerminator()); if (isa<LoadInst>(I)) ++NumMovedLoads; else if (isa<CallInst>(I)) ++NumMovedCalls; ++Nu...
false
false
false
false
false
0
setServiceName(const QString& service) { // don't change if running if (!isRunning()) { d->input.service = service; d->status = Idle; d->results.setAddress(d->input.node, service); } }
false
false
false
false
false
0
arcmsr_hbaC_postqueue_isr(struct AdapterControlBlock *acb) { struct MessageUnit_C __iomem *phbcmu; struct ARCMSR_CDB *arcmsr_cdb; struct CommandControlBlock *ccb; uint32_t flag_ccb, ccb_cdb_phy, throttling = 0; int error; phbcmu = acb->pmuC; /* areca cdb command done */ /* Use correct offset and size for synci...
false
false
false
false
false
0
attachFileReferenceListInterface(as_object& o) { Global_as& gl = getGlobal(o); o.init_member("addListener", gl.createFunction(filereferencelist_addListener)); o.init_member("browse", gl.createFunction(filereferencelist_browse)); o.init_member("removeListener", gl.createFunction(filereferencelist_removeL...
false
false
false
false
false
0
default_palette (void) { static BablPalette pal; static int inited = 0; if (inited) return &pal; memset (&pal, 0, sizeof (pal)); inited = 1; pal.count = 16; pal.format = babl_format ("RGBA u8"); /* dynamically generated, so the default palette can ...
false
false
false
false
false
0
Free_dPij(arbre *tree) { int i,j,k; For(i,2*tree->n_otu-3) { For(j,tree->mod->n_catg) { For(k,tree->mod->ns) { Free(tree->t_edges[i]->dPij_rr[j][k]); Free(tree->t_edges[i]->d2Pij_rr[j][k]); } Free(tree->t_edges[i]->dPij_rr[j]); Free(tree->t_edges[i]->d2Pij_rr[j]); } ...
false
false
false
false
false
0
sti_dwmac_parse_data(struct sti_dwmac *dwmac, struct platform_device *pdev) { struct resource *res; struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct regmap *regmap; int err; if (!np) return -EINVAL; /* clk selection from extra syscfg register */ dwmac->clk_sel_reg = -ENXIO;...
false
false
false
false
false
0
update_accept_ra_save (NMDevice *self) { NMDevicePrivate *priv; const char *ip_iface; char *new_path; g_return_if_fail (self != NULL); g_return_if_fail (NM_IS_DEVICE (self)); priv = NM_DEVICE_GET_PRIVATE (self); ip_iface = nm_device_get_ip_iface (self); new_path = g_strdup_printf ("/proc/sys/net/ipv6/conf/%s...
false
false
false
false
false
0
doc_wait_ready(struct docg3 *docg3) { int maxWaitCycles = 100; do { doc_delay(docg3, 4); cpu_relax(); } while (!doc_is_ready(docg3) && maxWaitCycles--); doc_delay(docg3, 2); if (maxWaitCycles > 0) return 0; else return -EIO; }
false
false
false
false
false
0
sysfs_devname_to_devno(const char *name, const char *parent) { char buf[PATH_MAX], *path = NULL; dev_t dev = 0; if (strncmp("/dev/", name, 5) == 0) { /* * Read from /dev */ struct stat st; if (stat(name, &st) == 0) dev = st.st_rdev; else name += 5; /* unaccesible, or not node in /dev */ } if...
true
true
false
false
true
1
dlfb_parse_vendor_descriptor(struct dlfb_data *dev, struct usb_interface *interface) { char *desc; char *buf; char *desc_end; int total_len; buf = kzalloc(MAX_VENDOR_DESCRIPTOR_SIZE, GFP_KERNEL); if (!buf) return false; desc = buf; total_len = usb_get_descriptor(interface_to_usbdev(interface), 0x5...
false
false
false
false
false
0
getargs_Z(PyObject *self, PyObject *args) { Py_UNICODE *str; Py_ssize_t size; if (!PyArg_ParseTuple(args, "Z", &str)) return NULL; if (str != NULL) { size = Py_UNICODE_strlen(str); return PyUnicode_FromUnicode(str, size); } else Py_RETURN_NONE; }
false
false
false
false
false
0
H5Z_unregister(H5Z_filter_t filter_id) { size_t filter_index; /* Local index variable for filter */ H5Z_object_t object; herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(FAIL) HDassert(filter_id>=0 && filter_id<=H5Z_FILTER_MAX); /* Is the filter already regis...
false
false
false
false
false
0