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
checkMimeTypes() { // check if there are mimetypes const QStringList globFiles = KGlobal::dirs()->findAllResources("xdgdata-mime", QLatin1String("globs")); return !globFiles.isEmpty(); }
false
false
false
false
false
0
get_channel(unsigned char cmd) { int p = cmd & 0x0f; if (p == 0) p = 9; else if (p < 10) p--; return p; }
false
false
false
false
false
0
t1_hinter__hint_stem_snap_range(t1_hinter * self, t1_glyph_space_coord w0, t1_glyph_space_coord w1, bool horiz, short *index0, short *index1) { int k = (horiz ? 0 : 1), i; bool index0_set = false; *index0 = 0; *index1 = -1; ...
false
false
false
false
false
0
shift_text(u16 y, u16 start_x, u16 end_x, s16 num) { if (!num) return; u32 yp = linenumbers[y]*max_width; u16 mx = end_x-start_x+1; if (num>mx) num = mx; if (-num>mx) num = -mx; if (num<mx && -num<mx) { if (num<0) { memmove(text+yp+start_x, text+yp+start_x-num, sizeof(*text) * (mx+num)); memmove(attrs+...
false
false
false
false
false
0
subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, u8 *data, struct ib_device *ibdev, u8 port, u32 *resp_len) { int ret; struct hfi1_ibport *ibp = to_iport(ibdev, port); switch (attr_id) { case IB_SMP_ATTR_NODE_DESC: ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port, re...
false
false
false
false
false
0
lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) { struct map_info *map = mtd->priv; struct lpddr_private *lpddr = map->fldrv_priv; int chipnum = adr >> lpddr->chipshift, err = 0; unsigned long ofs; /* ofs: offset within the first chip that the first read should start */ ofs = adr - (chipnum << lpddr...
false
false
false
false
false
0
mpd_executeCommand(mpd_Connection * connection, char * command) { int ret; struct timeval tv; fd_set fds; char * commandPtr = command; int commandLen = strlen(command); if(!connection->doneProcessing && !connection->commandList) { strcpy(connection->errorStr,"not done processing current command"); connection...
false
false
false
false
false
0
gwy_color_button_set_color (GwyColorButton *color_button, GwyRGBA *color) { g_return_if_fail(GWY_IS_COLOR_BUTTON(color_button)); color_button->color.r = color->r; color_button->color.g = color->g; color_button->color.b = color->b; color_button->color.a = color->a;...
false
false
false
false
false
0
ath_hw_pll_rx_hang_check(struct ath_softc *sc, u32 pll_sqsum) { static int count; struct ath_common *common = ath9k_hw_common(sc->sc_ah); if (pll_sqsum >= 0x40000) { count++; if (count == 3) { ath_dbg(common, RESET, "PLL WAR, resetting the chip\n"); ath9k_queue_reset(sc, RESET_TYPE_PLL_HANG); count = 0...
false
false
false
false
false
0
_policy_focus_forward(E_Zone *zone) { Eina_List *l, *fl = NULL; E_Border *bd, *fbd; if (!zone) return; if (eina_list_count(_pol_focus_stack) < 1) return; // printf("Focus forward\n"); EINA_LIST_FOREACH(_pol_focus_stack, l, bd) { if (bd->zone != zone) continue; fl = eina_list_append(fl, bd); ...
false
false
false
false
false
0
remove_semicolon(chunk_t *pc) { LOG_FMT(LDELSEMI, "%s: Removed semicolon at line %d, col %d\n", __func__, pc->orig_line, pc->orig_col); /* TODO: do we want to shift stuff back a column? */ chunk_del(pc); }
false
false
false
false
false
0
gen9_init_workarounds(struct intel_engine_cs *ring) { struct drm_device *dev = ring->dev; struct drm_i915_private *dev_priv = dev->dev_private; uint32_t tmp; /* WaEnableLbsSlaRetryTimerDecrement:skl */ I915_WRITE(BDW_SCRATCH1, I915_READ(BDW_SCRATCH1) | GEN9_LBS_SLA_RETRY_TIMER_DECREMENT_ENABLE); /* WaDisab...
false
false
false
false
false
0
copy_to_array(const char *key, void *data, void *void_rock) { int *attributes = (int *)data; struct list_rock_recursivematch *rock = (struct list_rock_recursivematch *)void_rock; assert(rock->count > 0); rock->array[--rock->count].name = key; rock->array[rock->count].attributes = *attributes; }
false
false
false
false
false
0
unity_internal_aggregator_scope_impl_category_merger_by_field_real_remap (UnityInternalAggregatorScopeImplCategoryMerger* base, const gchar* scope_id, guint32 category_index) { UnityInternalAggregatorScopeImplCategoryMergerByField * self; gint result = 0; GHashTable* subscope_category_map = NULL; GHashTable* _tmp0_...
false
false
false
false
false
0
printValue (std::ostream &os, Value &v) { switch (v.type) { case T_INTEGER: os << v.integer ; break ; case T_BYTE: os << "0x" << std::hex << v.integer << std::dec ; break ; case T_CHAR: os << '\'' << (char)v.integer << '\'' ; break ; case T_REAL: ...
false
false
false
false
false
0
ConnectionRequestSystemComp( const Router2::ConnectionRequestSystem & key, const Router2::ConnectionRequestSystem &data ) { if (key.pingToEndpoint * (key.usedForwardingEntries+1) < data.pingToEndpoint * (data.usedForwardingEntries+1)) return -1; if (key.pingToEndpoint * (key.usedForwardingEntries+1) == data.pin...
false
false
false
false
false
0
ajFtpOpen(const AjPStr dbname, const AjPStr host, ajint iport, const AjPStr get, ajlong fpos, AjPSysSocket Psock) { FILE* fp; struct addrinfo hints; struct addrinfo *add = NULL; struct addrinfo *addinit = NULL; AjPStr portstr = NULL; const char *phost = NULL; const char *pp...
false
false
false
false
false
0
egl_g3d_create_driver(const struct egl_g3d_loader *loader) { struct egl_g3d_driver *gdrv; gdrv = CALLOC_STRUCT(egl_g3d_driver); if (!gdrv) return NULL; gdrv->loader = loader; egl_g3d_init_driver_api(&gdrv->base); gdrv->base.API.Initialize = egl_g3d_initialize; gdrv->base.API.Terminate = eg...
false
false
false
false
false
0
formatTimeDiff(const QTime& from, const QTime& to) { const int diff = from.msecsTo(to); const QTime diffTime = QTime(0, 0).addMSecs(diff > 0? diff: -diff); return QString("%1 %2").arg(formatSign(diff), formatTime(diffTime)); }
false
false
false
false
false
0
sig_handler(int sig) { if (getpid() != pidlist.main) return; //Only allow signals from main thread. if (sig == SIGINT) serverQuit(); //Shut ourself down. }
false
false
false
false
false
0
_detailed_output_event_message_list (ipmi_sensors_state_data_t *state_data, int event_message_output_type, uint16_t sensor_event_bitmask, char **event_message_list, unsigne...
false
false
false
false
false
0
ptp_pin_name2index(struct ptp_clock *ptp, const char *name) { int i; for (i = 0; i < ptp->info->n_pins; i++) { if (!strcmp(ptp->info->pin_config[i].name, name)) return i; } return -1; }
false
false
false
false
false
0
reconfigure_plugins (gxine_chain_t *chain) { char *params = NULL; GSList *info; xine_cfg_entry_t entry; logprintf ("post_config: configuring plugins\n"); if (!xine_config_lookup_entry (xine, cfgname[chain->type], &entry)) return; foreach_glist (info, chain->plugins) { const gxine_post_t *post =...
false
false
false
false
false
0
scif_rma_list_mmap(struct scif_window *start_window, s64 offset, int nr_pages, struct vm_area_struct *vma) { s64 end_offset, loop_offset = offset; struct scif_window *window = start_window; int loop_nr_pages, nr_pages_left = nr_pages; struct scif_endpt *ep = (struct scif_endpt *)start_window->ep; struct l...
false
false
false
false
false
0
objset_add_obj(Objset *set, Object *object) { objset_object *p; int exists = 0; int rc = OBJSET_SUCCESS; PR_ASSERT(NULL != set); PR_ASSERT(NULL != object); PR_Lock(set->lock); /* Make sure this object isn't already in the set */ p = set->head; while (NULL != p) { if (p->obj == object) { exists = 1; ...
false
false
false
false
false
0
eoh(char *p, char *lim) { while (p < lim) { if (*p == LF && p + 1 < lim && *(p + 1) == LF) return p + 1; p++; } return lim - 1; }
false
false
false
false
false
0
record_io_usage( Token *stmt ) { /* First, see if we have something to record. (We don't record I/O to internal files, for instance.) Either id or number should be defined. */ if( current_io_unit_id != IO_UNIT_UNKNOWN || current_io_unit_no != IO_UNIT_UNKNOWN ) { /* Allocate space for table if tha...
false
false
false
false
false
0
component_master_add_with_match(struct device *dev, const struct component_master_ops *ops, struct component_match *match) { struct master *master; int ret; if (ops->add_components && match) return -EINVAL; if (match) { /* Reallocate the match array for its true size */ match = component_match_realloc(dev...
false
false
false
false
false
0
PySequence_InPlaceConcat(PyObject *s, PyObject *o) { PySequenceMethods *m; if (s == NULL || o == NULL) return null_error(); m = s->ob_type->tp_as_sequence; if (m && m->sq_inplace_concat) return m->sq_inplace_concat(s, o); if (m && m->sq_concat) return m->sq_concat(s, o); ...
false
false
false
false
false
0
insertRows(int position, int rows, const QModelIndex &index) { Q_UNUSED(index); beginInsertRows(QModelIndex(), position, position+rows-1); for (int row=0; row < rows; row++) { DeviceConfiguration emptyEntry; Configuration.insert(position, emptyEntry); } endInsertRows(); ...
false
false
false
false
false
0
netdev_tx(struct sk_buff *skb, struct net_device *dev) { struct dev_priv *priv = netdev_priv(dev); struct dev_info *hw_priv = priv->adapter; struct ksz_hw *hw = &hw_priv->hw; int left; int num = 1; int rc = 0; if (hw->features & SMALL_PACKET_TX_BUG) { struct sk_buff *org_skb = skb; if (skb->len <= 48) { ...
false
true
false
false
false
1
argcv_unquote_copy (char *dst, const char *src, size_t n) { int i = 0; int c; int expect_delim = 0; while (i < n) { switch (src[i]) { case '\'': case '"': if (!expect_delim) { const char *p; for (p = src+i+1; *p && *p != src[i]; p++) if (*p == '\\') p++; ...
false
false
false
false
false
0
CreateInstanceData(Map* pMap) { Script* pTempScript = m_scripts[pMap->GetScriptId()]; if (!pTempScript || !pTempScript->GetInstanceData) { return NULL; } return pTempScript->GetInstanceData(pMap); }
false
false
false
false
false
0
hdmv_vm_get_uo_mask(HDMV_VM *p) { uint32_t mask = 0; MOBJ_OBJECT *o = NULL; bd_mutex_lock(&p->mutex); if ((o = p->object ? p->object : (p->playing_object ? p->playing_object : p->suspended_object))) { mask |= o->menu_call_mask; mask |= o->title_search_mask << 1; } bd_mu...
false
false
false
false
false
0
closeConnectionPlayer( QString name, ConnectionInfo info ) { TRACE("AttalServer::closeConnectionPlayer " ); AttalPlayerSocket * uneso = NULL; uint nbSockets = (uint) _theSockets.count(); for( uint i = 0; i < nbSockets; ++i ) { if( _theSockets[ i ]->getPlayer()->getConnectionName() == name ) { uneso = _theS...
false
false
false
false
false
0
rtsp_session_no_more_pads (GstElement * session, GstSDPDemux * demux) { GST_DEBUG_OBJECT (demux, "got no-more-pads"); gst_element_no_more_pads (GST_ELEMENT_CAST (demux)); }
false
false
false
false
false
0
lgl_db_does_template_exist (const gchar *brand, const gchar *part) { GList *p_tmplt; lglTemplate *template; if (!model) { lgl_db_init (); } if ((brand == NULL) || (part == NULL)) { retur...
false
false
false
false
false
0
check_partial_completion(GeanyEditor *editor, const gchar *entry) { gchar *stem, *ptr, *text = utils_strdupa(entry); read_current_word(editor, -1, current_word, sizeof current_word, NULL, TRUE); stem = current_word; if (strstr(text, stem) != text) return FALSE; /* shouldn't happen */ if (strlen(text) <= strlen(...
false
false
false
false
false
0
fat_search_long(struct inode *inode, const unsigned char *name, int name_len, struct fat_slot_info *sinfo) { struct super_block *sb = inode->i_sb; struct msdos_sb_info *sbi = MSDOS_SB(sb); struct buffer_head *bh = NULL; struct msdos_dir_entry *de; unsigned char nr_slots; wchar_t *unicode = NULL; unsigned c...
false
false
false
false
false
0
rtl_dump_bb_for_graph (pretty_printer *pp, basic_block bb) { rtx insn; bool first = true; /* TODO: inter-bb stuff. */ FOR_BB_INSNS (bb, insn) { if (! first) { pp_character (pp, '|'); pp_write_text_to_stream (pp); } first = false; print_insn_with_notes (pp, insn); pp_write_t...
false
false
false
false
false
0
parse_audio_format_i_type(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, void *_fmt) { int sample_width, sample_bytes; u64 pcm_formats = 0; switch (fp->protocol) { case UAC_VERSION_1: default: { struct uac_format_type_i_discrete_descriptor *fmt = _fmt; sample_width ...
false
false
false
false
false
0
__bam_ritem_nolog(dbc, h, indx, hdr, data, type) DBC *dbc; PAGE *h; u_int32_t indx; DBT *hdr, *data; u_int32_t type; { BKEYDATA *bk; BINTERNAL *bi; DB *dbp; db_indx_t cnt, off, lo, ln; db_indx_t *inp; int32_t nbytes; u_int8_t *p, *t; dbp = dbc->dbp; /* * Set references to the first in-use byte on the p...
false
false
false
false
false
0
atp_variable_get_anjuta_variable (const ATPVariable *this, guint id) { GValue value = {0,}; GError* err = NULL; anjuta_shell_get_value (this->shell, variable_list[id].name, &value, &err); if (err != NULL) { /* Value probably does not exist */ g_error_free (err); return NULL; } else { gpointer ret; ...
false
false
false
false
false
0
psia_detect(const GwyFileDetectInfo *fileinfo, gboolean only_name) { GwyTIFF *tiff; gint score = 0; guint magic, version; if (only_name) return score; /* Weed out non-TIFFs */ if (fileinfo->buffer_len <= MAGIC_SIZE || memcmp(fileinfo->head, MAGIC, MAGIC_SIZE) != 0) retu...
false
false
false
false
false
0
OnChange() { REAL value = 0.0f; for ( int i = 0; i < nBandwidthTask::Type_Count; ++i ) { nType type = nType(i); const nTaskHeap& heap = this->Tasks(type); if ( heap.Len() > 0 ) { value += heap(0)->Val(); } } this->SetVal( value, *this->Heap() ); ...
false
false
false
false
false
0
feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv, int argc) { sds buf = sdsempty(); int j; ssize_t nwritten; time_t now; robj *tmpargv[3]; /* The DB this command was targetting is not the same as the last command * we appendend. To issue a SELECT command is needed. */ ...
false
false
false
false
false
0
IsExtensionSupported(const char* ext) { int extCount = NUM_EXTENSIONS + (int)extraExtensions.size(); for (int i = 0; i < extCount; ++i) { const char* supported = GetSupportedExtensionAt(i); if (IsEquivalent(ext, supported)) return true; } return false; }
false
false
false
false
false
0
AuditStatusMessage(FILE *fp,char status) { switch (status) /* Reminder */ { case CF_CHG: fprintf(fp,"made a system correction"); break; case CF_WARN: fprintf(fp,"promise not kept, no action taken"); break; case CF_TIMEX: fprintf(fp,"timed out"); bre...
false
false
false
false
false
0
check_region(Displayer *displayer, int *start, int *len) { SGREPDATA(displayer); if ( *start>=displayer->last && (!displayer->start_warned) ) { sgrep_error(sgrep,"Warning: region start point greater than input size detected\n"); displayer->start_warned=1; *len=0; return; } if (*start+*len>displa...
false
false
false
false
false
0
handle_pmi2_cmd(int fd, int lrank) { int i, len; char len_buf[7], *buf = NULL; client_req_t *req = NULL; int rc = SLURM_SUCCESS; debug3("mpi/pmi2: in handle_pmi2_cmd"); safe_read(fd, len_buf, 6); len_buf[6] = '\0'; len = atoi(len_buf); buf = xmalloc(len + 1); safe_read(fd, buf, len); buf[len] = '\0'; deb...
true
true
false
false
true
1
handle_activity (CS *c) { Msg *m; bool ret = true; m = c->get_msg (0); if (!m) { handle_end (c, m); return false; } /* First we need to login. */ if (c->state == CS::CONNECTED) return try_login (c, m); switch (m->type) { case M_JOB_BEGIN: ret = handle_job_begin (c, m); br...
false
false
false
false
false
0
xgene_enet_reset(struct xgene_enet_pdata *pdata) { struct device *dev = &pdata->pdev->dev; if (!xgene_ring_mgr_init(pdata)) return -ENODEV; if (dev->of_node) { clk_prepare_enable(pdata->clk); udelay(5); clk_disable_unprepare(pdata->clk); udelay(5); clk_prepare_enable(pdata->clk); udelay(5); } else {...
false
false
false
false
false
0
fprintI64(FILE* out, uint64_t filesize, int width, int zero_pad) { char *buf = (char*)rsh_malloc(width > 40 ? width + 1 : 41); int len = int_len(filesize); sprintI64(buf, filesize, width); if(len < width && zero_pad) { memset(buf, '0', width-len); } fprintf(out, "%s", buf); free(buf); }
false
false
false
false
false
0
add_metadata (GFileInfo *info, const char *key, char *raw, char *formatted) { GthMetadata *metadata; if (raw == NULL) return; if (strcmp (key, "general::dimensions") == 0) { g_file_info_set_attribute_string (info, key, raw); return; } else if (strcmp (...
false
false
false
false
false
0
netio_desc_create_null(char *nio_name) { netio_desc_t *nio; if (!(nio = netio_create(nio_name))) return NULL; nio->type = NETIO_TYPE_NULL; nio->send = (void *)netio_null_send; nio->recv = (void *)netio_null_recv; nio->save_cfg = netio_null_save_cfg; nio->dptr = NULL; ...
false
false
false
false
false
0
write_pidfile(void) { int fd; char buff[20]; (void)truncate(IRCDPID_PATH, 0); if ((fd = open(IRCDPID_PATH, O_CREAT|O_WRONLY, 0600))>=0) { bzero(buff, sizeof(buff)); (void)sprintf(buff,"%5d\n", (int)getpid()); if (write(fd, buff, strlen(buff)) == -1) { Debug((DEBUG_NOTICE,"Error writing to pid file %...
false
false
false
false
false
0
previousEnd() { AnimationCommand* previous = mAnimList.last(); if (previous != 0) return previous->end; return QPointF(x()/getScale(), y()/getScale()); }
false
false
false
false
false
0
WaitForCommands(long milliSeconds) { long remainingMilliSeconds; long elapsedMilliSeconds; struct timeval beginTime; /* * If there is no sleep then just collect any keyboard events * that are ready right now and execute commands for them. */ if (milliSeconds <= 0) { DpyEventWait(0); ReadCommands(); ...
false
false
false
false
false
0
kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva) { gpa_t gpa; int r; if (vcpu->arch.mmu.direct_map) return 0; gpa = kvm_mmu_gva_to_gpa_read(vcpu, gva, NULL); r = kvm_mmu_unprotect_page(vcpu->kvm, gpa >> PAGE_SHIFT); return r; }
false
false
false
false
false
0
init_style() { if (!atom->q_flag) error->all(FLERR,"Pair coul/wolf requires atom attribute q"); int irequest = neighbor->request(this); cut_coulsq = cut_coul*cut_coul; }
false
false
false
false
false
0
qmonScaleWeightToggle(Widget w, XtPointer cld, XtPointer cad) { XmToggleButtonCallbackStruct *cbs = (XmToggleButtonCallbackStruct*)cad; tScaleWeight *weights = (tScaleWeight*) cld; int index; int *ip; DENTER(GUI_LAYER, "qmonScaleWeightToggle"); XtVaGetValues(w, XmNuserData, &ip, NULL); index =...
false
false
false
false
false
0
e1000_get_software_flag(struct e1000_hw *hw) { int32_t timeout = PHY_CFG_TIMEOUT; uint32_t extcnf_ctrl; DEBUGFUNC("e1000_get_software_flag"); if (hw->mac_type == e1000_ich8lan) { while (timeout) { extcnf_ctrl = E1000_READ_REG(hw, EXTCNF_CTRL); extcnf_ctrl |= E1000_EXTCN...
false
false
false
false
false
0
ast_module_reload(const char *name) { struct ast_module *cur; int res = 0; /* return value. 0 = not found, others, see below */ int i; /* If we aren't fully booted, we just pretend we reloaded but we queue this up to run once we are booted up. */ if (!ast_fully_booted) { queue_reload_request(name); return...
true
true
false
false
false
1
p54u_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct usb_device *udev = interface_to_usbdev(intf); struct ieee80211_hw *dev; struct p54u_priv *priv; int err; unsigned int i, recognized_pipes; dev = p54_init_common(sizeof(*priv)); if (!dev) { dev_err(&udev->dev, "(p54usb) ieee80...
false
false
false
false
false
0
bdf_grid_image(bdf_glyph_grid_t *grid, bdf_bitmap_t *image) #else bdf_grid_image(grid, image) bdf_glyph_grid_t *grid; bdf_bitmap_t *image; #endif { short x, y, ix, iy; unsigned short bpr, ibpr, si, di, col, colx, byte; unsigned char *masks; if (grid == 0 || image == 0) return; masks = 0; ...
false
false
false
true
false
1
est_doc_new_from_draft_enc(const char *buf, int size, const char *enc){ ESTDOC *doc; char *rbuf; assert(buf); if(enc && (rbuf = est_iconv(buf, size, enc, "UTF-8", NULL, NULL)) != NULL){ doc = est_doc_new_from_draft(rbuf); free(rbuf); } else { doc = est_doc_new_from_draft(buf); } return doc; }
false
false
false
false
false
0
builtin_import( FRAME * frame, int flags ) { LIST * source_module_list = lol_get( frame->args, 0 ); LIST * source_rules = lol_get( frame->args, 1 ); LIST * target_module_list = lol_get( frame->args, 2 ); LIST * target_rules = lol_get( frame->args, 3 ); LIST * localize = lol_get...
false
false
false
false
false
0
real_matrix_from_list (const int *list, const DATASET *dset, parser *p) { gretl_matrix *M; if (list != NULL && list[0] == 0) { M = gretl_null_matrix_new(); } else { const gretl_matrix *mmask = get_matrix_mask(); if (mmask != NULL) { M = gretl_matrix_data_subset_special(list, dset...
false
false
false
false
false
0
check_options() { int opt_idx; for (opt_idx = 0; options[opt_idx].fullname != NULL; opt_idx++) if ((options[opt_idx].flags & P_STRING) && options[opt_idx].var != NULL) check_string_option((char_u **)get_varp(&(options[opt_idx]))); }
false
false
false
false
false
0
dump_stack_ring(void) { FvwmWindow *t1; if (!debugging_stack_ring) { return; } XBell(dpy, 0); fprintf(stderr,"dumping stack ring:\n"); for ( t1 = Scr.FvwmRoot.stack_next; t1 != &Scr.FvwmRoot; t1 = t1->stack_next) { fprintf(stderr," l=%d fw=%p f=0x%08x '%s'\n", t1->layer, t1, (int)FW_W_FRAME(t1), ...
false
false
false
false
false
0
drugData(const QVariant &drugId, const int column) { IDrug *drug = d->getDrug(drugId); if (!drug) return QVariant(); return d->getDrugValue(drug, column); }
false
false
false
false
false
0
rootObject() { // Plugin root is always LC object #0. return acquireValue(QVariant::fromValue(ScriptableExtension::Object(this, 0))); }
false
false
false
false
false
0
test_cancel (void) { GrlOperationOptions *options; GrlRegistry *registry; GrlSource *source; registry = grl_registry_get_default (); source = grl_registry_lookup_source (registry, VIMEO_ID); g_assert (source); options = grl_operation_options_new (NULL); grl_operation_options_set_count (options, 2); g...
false
false
false
false
false
0
getAllParts() { QList<ModelPart*> empty; if (m_model == NULL) return empty; if (m_model->root() == NULL) return empty; return m_model->root()->getAllParts(); }
false
false
false
false
false
0
gd_revealer_set_position (GdRevealer *revealer, gdouble pos) { GdRevealerPrivate *priv = revealer->priv; gboolean new_visible; GtkWidget *child; priv->current_pos = pos; /* We check target_pos here too, because we want to ensure we set * child_visible immediately when starting a...
false
false
false
false
false
0
close () { app_thread->remove_socket (this); // Pointer to the dispatcher must be retrieved before the socket is // deallocated. Afterwards it is not available. dispatcher_t *dispatcher = get_dispatcher (); shutting_down = true; while (true) { // On third pass of the loop there sh...
false
false
false
false
false
0
SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // repeated int32 path = 1 [packed = true]; if (this->path_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,...
false
false
false
false
false
0
tiffsep_encode_color(gx_device *dev, const gx_color_value colors[]) { int bpc = ((tiffsep_device *)dev)->devn_params.bitspercomponent; gx_color_index color = 0; int i = 0; int ncomp = dev->color_info.num_components; COLROUND_VARS; COLROUND_SETUP(bpc); for (; i < ncomp; i++) { color ...
false
false
false
false
false
0
ScanText( const char *zText, /* The input text to be scanned */ GenState *pState /* Current state of the code generator */ ){ int nextValid = 0; /* True is sNext contains valid data */ InStream sIn; /* The input text */ Token sToken; /* The current token being examined */ Token sN...
false
false
false
false
false
0
x264_reference_check_reorder( x264_t *h ) { /* The reorder check doesn't check for missing frames, so just * force a reorder if one of the reference list is corrupt. */ for( int i = 0; h->frames.reference[i]; i++ ) if( h->frames.reference[i]->b_corrupt ) { h->b_ref_reorder[0] = ...
false
false
false
false
false
0
_e2_mkdirdlg_dialog_destroy (E2_MkdirDialogRuntime *rt) { //#ifdef RACE_CHECK printd (DEBUG, "mkdir dialog destroy"); //#endif gtk_widget_destroy (rt->dialog); e2_list_free_with_data (&rt->history); e2_hook_unregister (&app.pane1.hook_change_dir, _e2_mkdirdlg_change_dir_hook, rt, TRUE); e2_hook_unregister (&app.pa...
false
false
false
false
false
0
sanitize_cookie_path(const char *cookie_path) { size_t len; char *new_path = strdup(cookie_path); if(!new_path) return NULL; /* some stupid site sends path attribute with '"'. */ len = strlen(new_path); if(new_path[0] == '\"') { memmove((void *)new_path, (const void *)(new_path + 1), len); len-...
false
false
false
false
false
0
fl_color( FL_COLOR col ) { static int vmode = -1; long p; if ( flx->color != col || vmode != fl_vmode ) { flx->color = col; vmode = fl_vmode; p = fl_get_pixel( col ); XSetForeground( flx->display, flx->gc, p ); fli_free_newpixel( p ); } }
false
false
false
false
false
0
RemoveFactorFromExpression(Value *V, Value *Factor) { BinaryOperator *BO = isReassociableOp(V, Instruction::Mul, Instruction::FMul); if (!BO) return nullptr; SmallVector<RepeatedValue, 8> Tree; MadeChange |= LinearizeExprTree(BO, Tree); SmallVector<ValueEntry, 8> Factors; Factors.reserve(Tree.size()); ...
false
false
false
false
false
0
get_samu_clock_voltage_limit_table_offset( struct pp_hwmgr *hwmgr, const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table) { uint16_t table_offset = get_samu_table_offset(hwmgr, powerplay_table); if (table_offset > 0) return table_offset + 1; return 0; }
false
false
false
false
false
0
gst_rmdemux_parse_audio_packet (GstRMDemux * rmdemux, GstRMDemuxStream * stream, GstBuffer * in, guint offset, guint16 version, GstClockTime timestamp, gboolean key) { GstFlowReturn ret; GstBuffer *buffer; const guint8 *data; guint size; data = GST_BUFFER_DATA (in) + offset; size = GST_BUFFER_SIZE ...
false
false
false
false
false
0
ak4642_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { struct device *dev = &i2c->dev; struct device_node *np = dev->of_node; const struct ak4642_drvdata *drvdata = NULL; struct regmap *regmap; struct ak4642_priv *priv; struct clk *mcko = NULL; if (np) { const struct of_device_id *o...
false
false
false
false
false
0
get_task_kdeicon (task *tk) { unsigned long *data; data = get_prop_data (tk->win, atom_KWM_WIN_ICON, atom_KWM_WIN_ICON, 0); if (data) { tk->icon = data[0]; tk->mask = data[1]; XFree (data); } }
false
false
false
false
false
0
ppdFindCustomParam(ppd_coption_t *opt, /* I - Custom option */ const char *name) /* I - Parameter name */ { ppd_cparam_t *param; /* Current custom parameter */ if (!opt) return (NULL); for (param = (ppd_cparam_t *)cupsArrayFirst(opt->params); param; param = (ppd_cparam...
false
false
false
false
false
0
casts_away_constness (tree t1, tree t2) { if (TREE_CODE (t2) == REFERENCE_TYPE) { /* [expr.const.cast] Casting from an lvalue of type T1 to an lvalue of type T2 using a reference cast casts away constness if a cast from an rvalue of type "pointer to T1" to the type "pointer to T2" casts away constn...
false
false
false
false
false
0
mCMOA(bool _createToken) { int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); _ttype = CMOA; std::string::size_type _saveIndex; { mC(false); match('M' /* charlit */ ); match('O' /* charlit */ ); mA(false); } if ( _createToken && _token==antlr::nullToken && _ttype!=antlr::Toke...
false
false
false
false
false
0
select_data_cb(GtkTreeSelection *selection, gpointer user_data) { GtkTreeIter iter; data *my_data; char *s_title; char *message; GtkTextIter start, end; if (!gtk_tree_selection_get_selected(selection, NULL, &iter)) { gtk_editable_delete_text(GTK_EDITABLE(title), 0, -1); gtk_text_buffer_get_bounds(buffer, &st...
false
false
false
false
false
0
_U_dyn_register (unw_dyn_info_t *di) { mutex_lock (&_U_dyn_info_list_lock); { ++_U_dyn_info_list.generation; di->next = _U_dyn_info_list.first; di->prev = NULL; if (di->next) di->next->prev = di; _U_dyn_info_list.first = di; } mutex_unlock (&_U_dyn_info_list_lock); }
false
false
false
false
false
0
SendData( FILE *stream, int hres, int vres, int noz, int col ) { SendString( stream, ESC "." ); SendByte( stream, 1 ); /* Run-length encoded data */ /* If we use 1 nozzle, then vertical resolution is what it is. Otherwise it must be set to 90 dpi */ if ( noz == 1 ) ...
false
false
false
false
false
0
NsMakeTmpRSAKey(int keylen) { RSA **rsaPtrPtr; switch (keylen) { case 512: rsaPtrPtr = &rsa_512; break; case 1024: rsaPtrPtr = &rsa_1024; break; default: Ns_Log(Error, "nsopenssl: unexpected request to generate a %d-bit temporary RSA key", keylen); ...
false
false
false
false
false
0
rb_alert_dialog_new (GtkWindow *parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, const gchar *primary_message, const gchar *secondary_message) { GtkWidget *widget; GtkDialog ...
false
false
false
false
false
0
uv_tcp_connect(uv_connect_t* req, uv_tcp_t* handle, struct sockaddr_in address, uv_connect_cb cb) { if (handle->type != UV_TCP || address.sin_family != AF_INET) { uv__set_artificial_error(handle->loop, UV_EINVAL); return -1; } return uv__tcp_connec...
false
false
false
false
false
0
isacsx_xpr_interrupt(struct isac *isac) { if (!isac->tx_skb) return; if (isac->tx_skb->len > 0) { isac_fill_fifo(isac); return; } dev_kfree_skb_irq(isac->tx_skb); isac->tx_skb = NULL; isac->tx_cnt = 0; D_L1L2(isac, PH_DATA | CONFIRM, NULL); }
false
false
false
false
false
0
hermon_fill_rc_send_wqe ( struct ib_device *ibdev, struct ib_queue_pair *qp __unused, struct ib_address_vector *av __unused, struct io_buffer *iobuf, union hermon_send_wqe *wqe ) { struct hermon *hermon = ib_get_drvdata ( ibdev ); MLX_FILL_1 ( &wqe->rc.ctrl, 1, ds, ( ( offsetof ( typeof ( ...
false
false
false
false
false
0
set_subqueryscan_references(PlannerGlobal *glob, SubqueryScan *plan, int rtoffset) { Plan *result; /* First, recursively process the subplan */ plan->subplan = set_plan_references(glob, plan->subplan, plan->subrtable, plan->subrowmark); /* subrtable/subrowmark are no longer needed in th...
false
false
false
false
false
0