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
gst_hls_demux_decrypt_fragment (GstHLSDemux * demux, GstFragment * encrypted_fragment, const gchar * key, const guint8 * iv) { GstFragment *key_fragment, *ret = NULL; GstBuffer *key_buffer, *encrypted_buffer, *decrypted_buffer; GstMapInfo key_info, encrypted_info, decrypted_info; gnutls_cipher_hd_t aes_ctx;...
false
false
false
false
false
0
dwmac1000_set_eee_pls(struct mac_device_info *hw, int link) { void __iomem *ioaddr = hw->pcsr; u32 value; value = readl(ioaddr + LPI_CTRL_STATUS); if (link) value |= LPI_CTRL_STATUS_PLS; else value &= ~LPI_CTRL_STATUS_PLS; writel(value, ioaddr + LPI_CTRL_STATUS); }
false
false
false
false
false
0
ReplaceCurrentArgRefs( void *theEnv, EXPRESSION *query) { while (query != NULL) { if ((query->type != SF_VARIABLE) ? FALSE : (strcmp(ValueToString(query->value),CURR_ARG_VAR) == 0)) { query->type = FCALL; query->value = (void *) FindFunction(theEnv,"(gnrc-current-...
false
false
false
false
false
0
mod_sysfs_setup(struct module *mod, const struct load_info *info, struct kernel_param *kparam, unsigned int num_params) { int err; err = mod_sysfs_init(mod); if (err) goto out; mod->holders_dir = kobject_create_and_add("holders", &mod->mkobj.kobj); if (!mod->holders_dir) { err = -ENOMEM; ...
false
false
false
false
false
0
alarm_timer_remove (Alarm *alarm) { AlarmPrivate *priv = ALARM_PRIVATE(alarm); if (alarm_timer_is_started(alarm)) { g_debug ("Alarm(%p) #%d: timer_remove", alarm, alarm->id); g_source_remove (priv->timer_id); priv->timer_id = 0; } }
false
false
false
false
false
0
vfat_revalidate_ci(struct dentry *dentry, unsigned int flags) { if (flags & LOOKUP_RCU) return -ECHILD; /* * This is not negative dentry. Always valid. * * Note, rename() to existing directory entry will have ->d_inode, * and will use existing name which isn't specified name by user. * * We may be able...
false
false
false
false
false
0
_e_fm2_icon_new(E_Fm2_Smart_Data *sd, const char *file, E_Fm2_Finfo *finf) { E_Fm2_Icon *ic; /* create icon */ ic = E_NEW(E_Fm2_Icon, 1); ic->info.fm = sd->obj; ic->info.ic = ic; ic->info.file = eina_stringshare_add(file); ic->sd = sd; if (!_e_fm2_icon_fill(ic, finf)) { eina_string...
false
false
false
false
false
0
response_cb (GtkDialog * dialog, gint response_id) { /* Act only on response IDs we recognize */ if (!(response_id == GTK_RESPONSE_ACCEPT || response_id == GTK_RESPONSE_OK || response_id == GTK_RESPONSE_YES || response_id == GTK_RESPONSE_APPLY)) return; if (!should_respond (GLADE_NAME...
false
false
false
false
false
0
ctl_bymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { int ret; const ctl_named_node_t *node; size_t i; if (ctl_initialized == false && ctl_init()) { ret = EAGAIN; goto label_return; } /* Iterate down the tree. */ node = super_root_node; for (i = 0; i < m...
false
false
false
false
false
0
_elm_config_init(void) { if (!ELM_EVENT_CONFIG_ALL_CHANGED) ELM_EVENT_CONFIG_ALL_CHANGED = ecore_event_type_new(); _desc_init(); _profile_fetch_from_conf(); _config_load(); _env_get(); if (_elm_preferred_engine) eina_stringshare_del(_elm_preferred_engine); _elm_preferred_engine = NULL; _tr...
false
false
false
false
false
0
hit() { switch (m_type) { case ALIVE: m_type = DEAD; m_parent->decLife(); return HitInfo::HIT; case WATER: m_type = MISS; return HitInfo::MISS; default: return HitInfo::INVALID; } }
false
false
false
false
false
0
autohelperowl_attackpat265(int trans, int move, int color, int action) { int a, b, C, D; UNUSED(color); UNUSED(action); a = AFFINE_TRANSFORM(683, trans, move); b = AFFINE_TRANSFORM(721, trans, move); C = AFFINE_TRANSFORM(722, trans, move); D = AFFINE_TRANSFORM(720, trans, move); return owl_escape_valu...
false
false
false
false
false
0
sci_remote_device_reset(struct isci_remote_device *idev) { struct sci_base_state_machine *sm = &idev->sm; enum sci_remote_device_states state = sm->current_state_id; switch (state) { case SCI_DEV_INITIAL: case SCI_DEV_STOPPED: case SCI_DEV_STARTING: case SCI_SMP_DEV_IDLE: case SCI_SMP_DEV_CMD: case SCI_DEV_ST...
false
false
false
false
false
0
xen_irq_enable(void) { struct vcpu_info *vcpu; /* * We may be preempted as soon as vcpu->evtchn_upcall_mask is * cleared, so disable preemption to ensure we check for * events on the VCPU we are still running on. */ preempt_disable(); vcpu = this_cpu_read(xen_vcpu); vcpu->evtchn_upcall_mask = 0; /* Doe...
false
false
false
false
true
1
binsm(P *p, unsigned char *blk, int amnt) { long nlines; H *h = NULL; int hdramnt = 0; P *q; if (!amnt) return p; q = pdup(p); if (amnt <= GGAPSZ(q->hdr)) { h = q->hdr; hdramnt = amnt; ginsm(q->hdr, q->ptr, q->ofst, blk, amnt); q->hdr->nlines += (nlines = mcnt(blk, '\n', amnt)); } else if (!q->ofst &...
false
false
false
false
false
0
btreeInsertNonfullSec(AjPBtcache cache, AjPBtpage page, const AjPStr key, ajulong less, ajulong greater) { unsigned char *buf = NULL; AjPBtMem arrays = NULL; AjPStr *karray = NULL; ajulong *parray = NULL; ajuint nkeys = 0U; ajuint ipos = 0U; ajuint i; ajuint count = 0U; ...
false
false
false
false
false
0
cards_deck_draw_random (CardsDeck *deck, gint number, gboolean mark_drawn) { GList *undrawn, *result; Card *card; gint i, j; undrawn = NULL; result = NULL; /* add all the non-drawn cards to a linked list */ for (i = 0; i < deck->len; i++) { card = &g_array_index(deck, Card, i); if (card->drawn == FALSE)...
false
false
false
false
false
0
VerifySubExpr(Value *Expr, SmallVectorImpl<Instruction*> &InstInputs) { // If this is a non-instruction value, there is nothing to do. Instruction *I = dyn_cast<Instruction>(Expr); if (!I) return true; // If it's an instruction, it is either in Tmp or its operands recursively // are...
false
false
false
false
false
0
binding(const std::string& propertyName, AbstractConfiguration* pConfig) { _binding = propertyName; if (_pConfig) _pConfig->release(); _pConfig = pConfig; if (_pConfig) _pConfig->duplicate(); return *this; }
false
false
false
false
false
0
ggd_opt_entry_free_data (GgdOptEntry *entry, gboolean free_opt) { if (entry) { ggd_opt_entry_set_proxy (entry, NULL, NULL); /* don't free the value to let it in a usable state, and it is consistent * since the user allocated it */ if (free_opt && entry->value_destroy) { ...
false
false
false
false
false
0
dump_memory(cell from, cell to) { from = UNTAG(from); for (; from <= to; from += sizeof(cell)) dump_cell(from); }
false
false
false
false
false
0
paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { // Add the fancy button if (option.state & QStyle::State_MouseOver) { if ((QApplication::mouseButtons() & Qt::LeftButton) == 0) pressedIndex = QModelIndex(); QBrush brush = optio...
false
false
false
false
false
0
trsp_lock_cb (GtkToggleButton *button, gpointer data) { GtkRigCtrl *ctrl = GTK_RIG_CTRL (data); ctrl->trsplock = gtk_toggle_button_get_active (button); /* set uplink according to downlink */ if (ctrl->trsplock) { track_downlink (ctrl); } }
false
false
false
false
false
0
FreeWorkerInfo(int code, Datum arg) { if (MyWorkerInfo != NULL) { LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE); /* * Wake the launcher up so that he can launch a new worker immediately * if required. We only save the launcher's PID in local memory here; * the actual signal will be sent when the PGPROC i...
false
false
false
false
false
0
VerifyFileSystem(char *name,struct Attributes a,struct Promise *pp) { struct stat statbuf, localstat; CFDIR *dirh; const struct dirent *dirp; off_t sizeinbytes = 0; long filecount = 0; char buff[CF_BUFSIZE]; CfOut(cf_verbose,""," -> Checking required filesystem %s\n",name); if (cfstat(name,&statbuf) == -1)...
false
false
false
false
false
0
ajNamListListAliases(AjPList dbnames) { ajint i; NamPEntry fnew; void **valarray = NULL; ajTableToarrayValues(namAliasMasterTable, &valarray); ajDebug("ajNamListListAliases\n"); for(i = 0; valarray[i]; i++) { fnew = (NamPEntry) valarray[i]; ajDebug("ALIAS: %S %S\n", fnew->name, fnew->va...
false
false
false
false
false
0
file_data_new (void) { FileData *fdata; fdata = g_new0 (FileData, 1); fdata->content_type = NULL; fdata->free_original_path = FALSE; fdata->dir_size = 0; return fdata; }
false
false
false
false
false
0
update_values( __isl_take isl_ast_build *build, __isl_take isl_basic_set *bounds) { int sv; isl_pw_multi_aff *pma; isl_aff *aff = NULL; isl_map *it_map; isl_set *set; set = isl_set_from_basic_set(bounds); set = isl_set_intersect(set, isl_set_copy(build->domain)); it_map = isl_ast_build_map_to_iterator(build, ...
false
false
false
false
false
0
main (int argc, char **argv) { GdomeDOMImplementation *domImpl = NULL; GdomeDocument *domdoc1 = NULL; GdomeDocument *domdoc2 = NULL; GdomeException exc = 0; gboolean ret; domImpl = gdome_di_mkref(); domdoc1 = gdome_di_createDocFromMemory (domImpl, buffer1, GDOME_LOAD_PARSING, &exc); if (domdoc1 == NUL...
false
false
false
false
false
0
velocity_free_td_ring(struct velocity_info *vptr) { int i, j; for (j = 0; j < vptr->tx.numq; j++) { if (vptr->tx.infos[j] == NULL) continue; for (i = 0; i < vptr->options.numtx; i++) velocity_free_td_ring_entry(vptr, j, i); kfree(vptr->tx.infos[j]); vptr->tx.infos[j] = NULL; } }
false
false
false
false
false
0
CreateManipulator ( Viewer* v, Event& e, Transformer* rel, Tool* tool ) { Manipulator* m = nil; if (tool->IsA(GRAPHIC_COMP_TOOL)) { ((OverlayEditor*)v->GetEditor())->MouseDocObservable()->textvalue(OverlayKit::mouse_tack); v->Constrain(e.x, e.y); Coord x[1], y[1]; x[0] = e.x...
false
false
false
false
false
0
read() { return RawData::constructor(mFile.readAll(), engine()); }
false
false
false
false
false
0
getLocalIP(UINT8 r_Ip[4]) { struct sockaddr_in addr; socklen_t namelen=sizeof(struct sockaddr_in); if(getsockname(m_Socket,(struct sockaddr*)&addr,&namelen)==SOCKET_ERROR) return SOCKET_ERROR; memcpy(r_Ip,&addr.sin_addr,4); return E_SUCCESS; }
false
false
false
false
false
0
dump_bt_info(struct bt_info *bt, char *where) { fprintf(fp, "[%lx] %s:\n", (ulong)bt, where); fprintf(fp, " task: %lx\n", bt->task); fprintf(fp, " flags: %llx\n", bt->flags); fprintf(fp, " instptr: %lx\n", bt->instptr); fprintf(fp, " stkptr: %lx\n", bt->stkptr); fprintf(fp, " bptr: %l...
false
false
false
false
false
0
selectionBegin() const { if (!selection()) return *this; DocIterator di; // FIXME: This is a work-around for the problem that // CursorSlice doesn't keep track of the boundary. if (normalAnchor() == top()) di = anchor_.boundary() > boundary() ? anchor_ : *this; else di = normalAnchor() < top() ? anchor_ : ...
false
false
false
false
false
0
init_aux(struct nvbios_init *init) { struct nvkm_i2c *i2c = init->bios->subdev.device->i2c; if (!init->outp) { if (init_exec(init)) error("script needs output for aux\n"); return NULL; } return nvkm_i2c_aux_find(i2c, init->outp->i2c_index); }
false
false
false
false
false
0
bzip2_reader_init(struct archive_read_filter *self) { static const size_t out_block_size = 64 * 1024; void *out_block; struct private_data *state; self->code = ARCHIVE_COMPRESSION_BZIP2; self->name = "bzip2"; state = (struct private_data *)calloc(sizeof(*state), 1); out_block = (unsigned c...
false
false
false
false
false
0
gst_frei0r_get_property (f0r_instance_t * instance, GstFrei0rFuncTable * ftable, GstFrei0rProperty * properties, gint n_properties, GstFrei0rPropertyValue * property_cache, guint prop_id, GValue * value) { gint i; GstFrei0rProperty *prop = NULL; for (i = 0; i < n_properties; i++) { if (properties[i]....
false
false
false
false
false
0
visitValueAbs(ValueAbs* v) { printf("abstract valuetype %s ", v->identifier()); if (v->inherits()) { printf(": "); char* ssn; for (ValueInheritSpec* vis = v->inherits(); vis; vis = vis->next()) { ssn = vis->value()->scopedName()->toString(); printf("%s%s%s ", vis->truncatable() ? "tru...
false
false
false
false
false
0
updateWindow(Focusable& win, bool died) { // all signals results in destruction of the notice delete m_attentions[&win]; m_attentions.erase(&win); win.setAttentionState(false); // update _NET_WM_STATE atom if the window is not dead FluxboxWindow *fbwin = win.fbwindow(); if (fbwin && ! died...
false
false
false
false
false
0
Curl_dupset(struct SessionHandle *dst, struct SessionHandle *src) { CURLcode r = CURLE_OK; enum dupstring i; /* Copy src->set into dst->set first, then deal with the strings afterwards */ dst->set = src->set; /* clear all string pointers first */ memset(dst->set.str, 0, STRING_LAST * sizeof(char *));...
false
false
false
false
false
0
InternalFieldCount() { if (IsDeadCheck("v8::Object::InternalFieldCount()")) return 0; i::Handle<i::JSObject> obj = Utils::OpenHandle(this); return obj->GetInternalFieldCount(); }
false
false
false
false
false
0
ide_gd_resume(ide_drive_t *drive) { if (ata_id_hpa_enabled(drive->id)) (void)drive->disk_ops->get_capacity(drive); }
false
false
false
false
false
0
VowelCloseness(frame_t *fr) {//=================================== // return a value 0-3 depending on the vowel's f1 int f1; if((f1 = fr->ffreq[1]) < 300) return(3); if(f1 < 400) return(2); if(f1 < 500) return(1); return(0); }
false
false
false
false
false
0
hideTipWidget() { if (tipWidget) { tipWidget->hide(); shadow->removeWindow(tipWidget); tipWidget->deleteLater(); tipWidget = 0; } }
false
false
false
false
false
0
doWrite(CommPortPtr dev, char c, bool hwecho, QString &err) { if (PT_DEBUG) printf("writing '%c' to device\n", c); int n = dev->write(&c, 1, err); if (n != 1) { if (n < 0) err = QString(tr("failed to write %1 to device: %2")).arg(c).arg(err); else err = QString(tr("ti...
false
false
false
false
false
0
deskew(const char *basename) { if (strncmp(basename, SKEW_PREFIX, sizeof(SKEW_PREFIX) - 1) == 0) return basename + sizeof(SKEW_PREFIX) - 1; return basename; }
false
false
false
false
false
0
Print (Schema *mySchema) { int n = mySchema->GetNumAtts(); Attribute *atts = mySchema->GetAtts(); // loop through all of the attributes for (int i = 0; i < n; i++) { // print the attribute name cout << atts[i].name << ": "; // use the i^th slot at the head of the record to get the // offset to the corre...
false
false
false
false
false
0
fixed_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) { struct fixed_mdio_bus *fmb = bus->priv; struct fixed_phy *fp; if (reg_num >= MII_REGS_NUM) return -1; /* We do not support emulating Clause 45 over Clause 22 register reads * return an error instead of bogus data. */ switch (reg_num) { case...
false
false
false
false
false
0
PyToEvalContext(PyObject * p, evalcontext * pec) { PyObject *pyKey, *pyValue; Py_ssize_t iPos = 0; char *pchKey; static const char *aszKeys[] = { "cubeful", "plies", "deterministic", "prune", "noise", NULL }; int iKey; int i; while (PyDict_Next(p, &iPos, &pyKey, &pyValue)) { ...
false
false
false
false
false
0
find_active_gateway(void) { GHashTableIter iter; gpointer value, key; DBG(""); g_hash_table_iter_init(&iter, gateway_hash); while (g_hash_table_iter_next(&iter, &key, &value) == TRUE) { struct gateway_data *data = value; if (data->ipv4_gateway != NULL && data->ipv4_gateway->active == TRUE) return da...
false
false
false
false
false
0
htab_create(uint32_t nel, const char* name) { hash_table* htab = calloc(1, sizeof(hash_table)); if (htab == NULL) return NULL; // change nel to the first prime number not smaller as nel. nel |= 1; while(!isprime(nel)) nel += 2; // constrain to 65534 elements so that the hash fits an uint16_t if (nel > 0x1000...
false
false
false
false
false
0
fire_bullet_sound(int BulletType, struct gps *shooter_pos) { if (!sound_on) return; if (!Bulletmap[BulletType].sound) { play_melee_weapon_missed_sound(shooter_pos); return; } char sound_file[100] = "effects/bullets/"; strcat(sound_file, Bulletmap[BulletType].sound); play_sound_at_position(sound_file, &Me...
true
true
false
false
false
1
glade_widget_child_set_property (GladeWidget *widget, GladeWidget *child, const gchar *property_name, const GValue *value) { GList *old_order = NULL; g_return_if_fail (GLADE_IS_WIDGET (widget)); g_return_if_fail (GLADE_IS_WIDGET (child)); g_return_if_fail (property_name != NULL &&...
false
false
false
false
false
0
rb_ary_shift(ary) VALUE ary; { VALUE top; rb_ary_modify_check(ary); if (RARRAY(ary)->len == 0) return Qnil; top = RARRAY(ary)->ptr[0]; ary_make_shared(ary); RARRAY(ary)->ptr++; /* shift ptr */ RARRAY(ary)->len--; return top; }
false
false
false
false
false
0
duplicateTab() { ProgramTab * oldTab = currentWidget(); if (oldTab == NULL) return; ProgramTab * newTab = addTab(); newTab->setText(oldTab->text()); }
false
false
false
false
false
0
writeValue (Value &v) { checkstreams() ; *output << v ; if (autoflush) { output->flush() ; } }
false
false
false
false
false
0
update() { memcpy(planetable[plane],in,geo.size); if(stock<PLANES) stock++; if(mode) { if(timer) { readplane = readplane + stride; while(readplane < 0) readplane += stock; while(readplane >= stock) readplane -= stock; timer--; } else { readplane = fastrand() % stock; ...
false
false
false
false
false
0
checkSeek(FILE *fp) { pgoff_t tpos; /* * If pgoff_t is wider than long, we must have "real" fseeko and not an * emulation using fseek. Otherwise report no seek capability. */ #ifndef HAVE_FSEEKO if (sizeof(pgoff_t) > sizeof(long)) return false; #endif /* Check that ftello works on this file */ tpos = f...
false
false
false
false
false
0
accel_edited_callback (GtkCellRendererText *cell, const char *path_string, guint keyval, GdkModifierType mask, guint keycode, CcWacomPage *pa...
false
false
false
false
false
0
skipspace (TCHAR **s) { while (_istspace (**s)) (*s)++; }
false
false
false
false
false
0
createInstance(const Vector3& from, const Vector3& to) { return OGRE_NEW OctreeNode(from, to); }
false
false
false
false
false
0
port_disappeared( void * graph_canvas, uint64_t client_id, uint64_t port_id) { struct client * client_ptr; struct port * port_ptr; log_info("canvas::port_disappeared(%"PRIu64", %"PRIu64")", client_id, port_id); client_ptr = find_client(graph_canvas_ptr, client_id); if (client_ptr == NULL) { log_...
false
false
false
false
false
0
net_con_clear_timeout(struct net_connection* con) { if (con->timeout && timeout_evt_is_scheduled(con->timeout)) { timeout_queue_remove(net_backend_get_timeout_queue(), con->timeout); hub_free(con->timeout); con->timeout = 0; } }
false
false
false
false
false
0
toplevel_on_copy_activate(gpointer user_data, GtkMenuItem * widget __attribute__ ((unused))) { toplevel_t *top = g_object_get_data(G_OBJECT(user_data), "toplevel"); GtkClipboard *clipboard = gtk_clipboard_get(NULL); GtkTextView *view = toplevel_get_text_view(top); GtkTextBuffer *txt = gtk_text_view_get_buffer(view)...
false
false
false
false
false
0
trash_applet_button_release (GtkWidget *widget, GdkEventButton *event) { TrashApplet *applet = TRASH_APPLET (widget); static GConfClient *client; if (client == NULL) client = gconf_client_get_default (); if (event->button == 1) { if (gconf_client_get_bool (clien...
false
false
false
false
false
0
hex2bin (int len, char *hexnum, char *binnum) { int i; for (i = 0; i < len; i++) *binnum++ = 16 * hexval (hexnum[2 * i]) + hexval (hexnum[2 * i + 1]); }
false
false
false
false
false
0
cvercmp_ver_subtokenize(const char *ver) { int num = 0; int idx; int verlen; char **tokens; int i; int tokenlen; /* Treat NULL string as empty string */ if (!ver) { ver = ""; } verlen = strlen(ver); for (idx = 0; idx < verlen; idx += cvercmp_next_subtoken(ver + idx)) { num++; } to...
false
false
false
false
false
0
LedbatNextSendTime () { tint owd_cur(TINT_NEVER), owd_min(TINT_NEVER); for(int i=0; i<4; i++) { if (owd_min>owd_min_bins_[i]) owd_min = owd_min_bins_[i]; if (owd_cur>owd_current_[i]) owd_cur = owd_current_[i]; } if (ack_not_rcvd_recent_) BackOffOnLosses(0....
false
false
false
false
false
0
dib9000_fw_tune(struct dvb_frontend *fe) { struct dib9000_state *state = fe->demodulator_priv; int ret = 10, search = state->channel_status.status == CHANNEL_STATUS_PARAMETERS_UNKNOWN; s8 i; switch (state->tune_state) { case CT_DEMOD_START: dib9000_fw_set_channel_head(state); /* write the channel context - a...
false
false
false
false
false
0
timezone_getinitargs(PyDateTime_TimeZone *self) { if (self->name == NULL) return Py_BuildValue("(O)", self->offset); return Py_BuildValue("(OO)", self->offset, self->name); }
false
false
false
false
false
0
zoran_restart(struct zoran *zr) { /* Now the stat_comm buffer is ready for restart */ unsigned int status = 0; int mode; if (zr->codec_mode == BUZ_MODE_MOTION_COMPRESS) { decoder_call(zr, video, g_input_status, &status); mode = CODEC_DO_COMPRESSION; } else { status = V4L2_IN_ST_NO_SIGNAL; mode = CODEC_DO_...
false
false
false
false
false
0
tsd_pat(uint8_t *ts, uint16_t pid) { int off=0; while(off < TS_PACKET_SIZE) { off=psi_reassemble(&patsec, ts, off); if (off < 0) break; printf("%u pid %04x new pat section complete\n", pktno, pid); tsd_pat_section_dump(&patsec); psi_update_table(&pat, &patsec); } }
false
false
false
false
false
0
SetUseBom( bool bom ) { if (!m_pData) return; if ( bom == GetUseBom() ) return; m_pData->m_useByteOrderMark = bom; SetModified(true); }
false
false
false
false
false
0
insert2Ha(struct cell_ptrHa **front_cell, struct cell_ptrHa **rear_cell, float angle, int row, int col) { struct cell_ptrHa *temp_cell, *temp_cell2; temp_cell = (struct cell_ptrHa *)(G_malloc(sizeof(struct cell_ptrHa))); temp_cell->angle = angle; temp_cell->row = row; temp_cell->col = col; ...
false
false
false
false
false
0
perf_output_sample_regs(struct perf_output_handle *handle, struct pt_regs *regs, u64 mask) { int bit; for_each_set_bit(bit, (const unsigned long *) &mask, sizeof(mask) * BITS_PER_BYTE) { u64 val; val = perf_reg_value(regs, bit); perf_output_put(handle, val); } }
false
false
false
false
false
0
brasero_playlist_parse_result (GObject *object, GError *error, const gchar *uri, GFileInfo *info, gpointer callback_data) { gint num; gint64 total_length; GtkTreeModel *model; GtkTreePath *treepath; GtkTreeIter parent, row; gchar *len_string, *num_string; BraseroPlaylistPa...
false
false
false
false
false
0
HtmlEscapeUriComponent(clientData, interp, objc, objv) ClientData clientData; /* The HTML widget data structure */ Tcl_Interp *interp; /* Current interpreter. */ int objc; /* Number of arguments. */ Tcl_Obj *CONST objv[]; /* Argument string...
false
false
false
false
false
0
iwl_mvm_start_fw_dbg_conf(struct iwl_mvm *mvm, u8 conf_id) { u8 *ptr; int ret; int i; if (WARN_ONCE(conf_id >= ARRAY_SIZE(mvm->fw->dbg_conf_tlv), "Invalid configuration %d\n", conf_id)) return -EINVAL; /* EARLY START - firmware's configuration is hard coded */ if ((!mvm->fw->dbg_conf_tlv[conf_id] || ...
false
false
false
false
false
0
ep_gp(A apick, A aobj) { I idx; A z; /* H("check: ep_gp\n"); */ switch(apick->t) { case It: case Ft: if (1==apick->n) { if (1!=aobj->r) ERROUT(ERR_RANK); if (It==apick->t) z=(A)pcki(*apick->p, aobj); else if (gpu_fillivec(&idx,apick)) ERROUT(ERR_TYPE) else z=(A)pcki(idx, aobj); ...
false
false
false
false
false
0
digest_mode(mode_t mode, const char *pathname, const char *name, struct stat *pstat, boolean leaf) { /* If we know the type of the directory entry, and it is not a * symbolic link, we may be able to avoid a stat() or lstat() call. */ if (mode) { if (S_ISLNK(mode) && following_lin...
false
false
false
false
false
0
Window_clear_tags(void) { word origin_x; word origin_y; word x_pos; word window_x_pos; //word window_y_pos; origin_x=Window_pos_X+(Window_palette_button_list->Pos_X+3)*Menu_factor_X; origin_y=Window_pos_Y+(Window_palette_button_list->Pos_Y+3)*Menu_factor_Y; for (x_pos=0,window_x_pos=origin_x;x_pos<16;x...
false
false
false
false
false
0
glusterd_quota_initiate_fs_crawl (glusterd_conf_t *priv, char *volname) { pid_t pid; int32_t ret = 0; int status = 0; char mountdir[] = "/tmp/mntXXXXXX"; runner_t ...
false
false
false
false
false
0
get_slc_defaults (void) { register int i; init_termbuf (); for (i = 1; i <= NSLC; i++) { slctab[i].defset.flag = spcset (i, &slctab[i].defset.val, &slctab[i].sptr); slctab[i].current.flag = SLC_NOSUPPORT; slctab[i].current.val = 0; } }
false
false
false
false
false
0
gth_image_loader_set_loader_func (GthImageLoader *self, GthImageLoaderFunc loader_func, gpointer loader_data) { g_return_if_fail (self != NULL); self->priv->loader_func = loader_func; self->priv->loader_data = loader_data; }
false
false
false
false
false
0
ktest_equal_transited(krb5_transited *ref, krb5_transited *var) { int p = TRUE; if (ref == var) return TRUE; else if (ref == NULL || var == NULL) return FALSE; p = p && scalar_equal(tr_type); p = p && struct_equal(tr_contents,ktest_equal_data); return p; }
false
false
false
false
false
0
intel_sdvo_output_cleanup(struct intel_sdvo *intel_sdvo) { struct drm_device *dev = intel_sdvo->base.base.dev; struct drm_connector *connector, *tmp; list_for_each_entry_safe(connector, tmp, &dev->mode_config.connector_list, head) { if (intel_attached_encoder(connector) == &intel_sdvo->base) { drm_connect...
false
false
false
false
false
0
findPackageTag (string &name) { Package *package = NULL ; for (;;) { Scope::PackageMap::iterator i ; // first time in, find the package in the scope chain if (package == NULL) { package = findPackage (name) ; if (package == NULL) { return NULL ; ...
false
false
false
false
false
0
on_help_info() { Gtk::AboutDialog* pDialog = 0; m_refGlade->get_widget("aboutdialog1", pDialog); if(pDialog) { pDialog->set_transient_for(*this); pDialog->set_name(PACKAGE_NAME); pDialog->set_copyright("Copyright (C) 2006-2009 Werner Pantke"); pDialog->set_version(version.c_str()); pDialog->...
false
false
false
false
false
0
SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string name = 1; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::...
false
false
false
false
false
0
SDP_Pair_destroy(SDP_Pair *sdp_pair){ register gint i; register SDP_Seed *seed; g_assert(sdp_pair); Comparison_destroy(sdp_pair->comparison); SDP_destroy(sdp_pair->sdp); for(i = 0; i < sdp_pair->seed_list->len; i++){ seed = sdp_pair->seed_list->pdata[i]; SDP_Seed_destroy(seed, sd...
false
false
false
false
false
0
contains(BoundBox* other_box) { //If this-box contains *other_box* return ( x1 <= (other_box->x1 + GAP_TOLERANCE) && x2 >= (other_box->x2 - GAP_TOLERANCE) && y1 <= (other_box->y1 + GAP_TOLERANCE) && y2 >= (other_box->y2 - GAP_TOLERANCE) && z1 <= (other_box->z1 + GAP_TOLE...
false
false
false
false
false
0
templates_create_personal_template (Templates* self, const gchar* name, const gchar* icon_id, const gchar* contents) { GtkListStore* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; const gchar* _tmp3_ = NULL; gint _tmp4_ = 0; GFile* file = NULL; gint _tmp5_ = 0; GFile* _tmp6_ = NULL; con...
false
false
false
false
false
0
JNI_CallStaticVoidMethod(JNIEnv *env, jclass clazz, jmethodID methodID, ...) { va_list args; enter_vm_from_jni(); va_start(args, methodID); vm_call_method_v(methodID, args, NULL); va_end(args); }
false
false
false
false
false
0
usb6fire_comm_receiver_handler(struct urb *urb) { struct comm_runtime *rt = urb->context; struct midi_runtime *midi_rt = rt->chip->midi; if (!urb->status) { if (rt->receiver_buffer[0] == 0x10) /* midi in event */ if (midi_rt) midi_rt->in_received(midi_rt, rt->receiver_buffer + 2, rt->receiver_b...
false
false
false
false
false
0
SendFleetsToFrontierPlanets(vector<int> frontier_planets) { vector<Planet> my_planets = pw->MyPlanets(); for(vector<Planet>::iterator it = my_planets.begin(); it < my_planets.end(); ++it) { int min_distance_to_frontier = 1000; int closest_frontier = 1; for(vector<int>::iterator it2 = frontier_planets.be...
false
false
false
false
false
0
iwl_mvm_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); int ret; mvmvif->mvm = mvm; /* * make sure D0i3 exit is completed, otherwise a target access * during tx queue ...
false
false
false
false
false
0
codec_decode_tokeninfo(k5_json_object obj) { krb5_responder_otp_tokeninfo *ti = NULL; krb5_error_code retval; ti = calloc(1, sizeof(krb5_responder_otp_tokeninfo)); if (ti == NULL) goto error; retval = codec_value_to_int32(obj, "flags", &ti->flags); if (retval != 0) goto error; ...
false
false
false
false
false
0
setRelativeValues() { dVector3 anchor; dJointGetHinge2Anchor(this, anchor); setAnchors( this, anchor[0], anchor[1], anchor[2], anchor1, anchor2 ); dVector3 axis; if ( node[0].body ) { dJointGetHinge2Axis1(this, axis); setAxes( this, axis[0],axis[1],axis[2], axis1, NULL ); }...
false
false
false
false
true
1
qtree_read_dquot(struct quota_handle *h, qid_t id) { struct qtree_mem_dqinfo *info = &h->qh_info.u.v2_mdqi.dqi_qtree; ext2_loff_t offset; ssize_t ret; char *ddquot; struct dquot *dquot = get_empty_dquot(); if (!dquot) return NULL; if (ext2fs_get_mem(info->dqi_entry_size, &ddquot)) { ext2fs_free_mem(&dquot);...
false
false
false
false
false
0