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
set_children(struct rev_info *revs) { struct commit_list *l; for (l = revs->commits; l; l = l->next) { struct commit *commit = l->item; struct commit_list *p; for (p = commit->parents; p; p = p->next) add_child(revs, p->item, commit); } }
false
false
false
false
false
0
vardcl(Namep v) #endif { struct Dimblock *t; expptr neltp; extern int doing_stmtfcn; if(v->vclass == CLUNKNOWN) { v->vclass = CLVAR; if (v->vinftype) { v->vtype = TYUNKNOWN; if (v->vdcldone) { v->vdcldone = 0; impldcl(v); } } } if(v->vdcldone) return; if(v->vclass == CLNAMELIST) re...
false
false
false
false
false
0
scan_conf(const char *restrict file) { struct dirent** namelist = (struct dirent**)0; char path[PATH_MAX+1]; int n; regcompiler(&creg.isysfaci, CONFLINE, REG_EXTENDED|REG_ICASE); regcompiler(&creg.isactive, CONFLINE2, REG_EXTENDED|REG_ICASE); n = snprintf(&path[0], sizeof(path), "%s%s", (ro...
false
false
false
false
false
0
ov965x_set_gain(struct ov965x *ov965x, int auto_gain) { struct i2c_client *client = ov965x->client; struct ov965x_ctrls *ctrls = &ov965x->ctrls; int ret = 0; u8 reg; /* * For manual mode we need to disable AGC first, so * gain value in REG_VREF, REG_GAIN is not overwritten. */ if (ctrls->auto_gain->is_new) ...
false
false
false
false
false
0
nhmex_uncore_msr_enable_box(struct intel_uncore_box *box) { unsigned msr = uncore_msr_box_ctl(box); u64 config; if (msr) { rdmsrl(msr, config); config |= (1ULL << uncore_num_counters(box)) - 1; /* WBox has a fixed counter */ if (uncore_msr_fixed_ctl(box)) config |= NHMEX_W_PMON_GLOBAL_FIXED_EN; wrmsrl(...
false
false
false
false
false
0
uvc_request_buffers(struct uvc_video_queue *queue, struct v4l2_requestbuffers *rb) { int ret; mutex_lock(&queue->mutex); ret = vb2_reqbufs(&queue->queue, rb); mutex_unlock(&queue->mutex); return ret ? ret : rb->count; }
false
false
false
false
false
0
ConvertLogToTable(uint64_t log) { struct LogReporter : public log::Reader::Reporter { Env* env; Logger* info_log; uint64_t lognum; virtual void Corruption(size_t bytes, const Status& s) { // We print error messages for corruption, but continue repairing. Log(info_log, "Log #%...
false
false
false
false
false
0
exo_icon_bar_update_item_text (ExoIconBar *icon_bar, ExoIconBarItem *item) { GtkTreePath *path; GtkTreeIter iter; gchar *text; if ((gtk_tree_model_get_flags (icon_bar->priv->model) & GTK_TREE_MODEL_ITERS_PERSIST) == 0) { path = gtk_tree_path_new_from_indices ...
false
false
false
false
false
0
cb_selection_changed (GtkTreeSelection *new_selection, TextExportState *state) { GtkTreeIter iter, it; gboolean first_selected = TRUE, last_selected = TRUE; GtkTreeSelection *selection = (new_selection == NULL) ? gtk_tree_view_get_selection (state->sheets.view) : new_selection; if (selection != NUL...
false
false
false
false
false
0
php_request_shutdown(void *dummy) { zend_bool report_memleaks; TSRMLS_FETCH(); report_memleaks = PG(report_memleaks); /* EG(opline_ptr) points into nirvana and therefore cannot be safely accessed * inside zend_executor callback functions. */ EG(opline_ptr) = NULL; EG(active_op_array) = NULL; php_deactivat...
false
false
false
false
false
0
tracker_preferences_checkbutton_index_optical_discs_toggled_cb (GtkCheckButton* source, TrackerPreferences* self) { GSettings* _tmp0_; GtkCheckButton* _tmp1_; gboolean _tmp2_; gboolean _tmp3_; #line 322 "/home/martyn/Source/tracker/src/tracker-preferences/tracker-preferences.vala" g_return_if_fail (self != NULL); ...
false
false
false
false
false
0
adjust_up (dtm_t dist) { #if 0 static const dtm_t adding[] = { 0, 1<<PLYSHIFT, 1<<PLYSHIFT, 0, 0, 1<<PLYSHIFT, 1<<PLYSHIFT, 0 }; dist += adding [dist&INFOMASK]; return dist; #else unsigned udist = (unsigned) dist; switch (udist & INFOMASK) { case iWMATE: case iWMATEt: case iBMATE: case iBMA...
false
false
false
false
false
0
d_list_remove_tail(LIST_ROOT* _root) { /* #ifdef _DEBUG */ /* L_DEBUG( "0x%08x\n", _root ); */ /* #endif */ if ( !_root ) { L_ERROR( "_root == NULL\n", "" ); return false; } return d_list_remove(_root, _root->count-1); }
false
false
false
false
false
0
ProcessTurnOrder(Unit *unit, Aorders *f, OrdersCheck *pCheck, int repeat) { int turnDepth = 1; int turnLast = 1; int formDepth = 0; TurnOrder *tOrder = new TurnOrder; tOrder->repeating = repeat; AString *order, *token; int atsign; while (turnDepth) { // get the next line order = f->GetLine(); if (!ord...
false
false
false
false
false
0
editor_window_changelist_next(EditorWin *win) { size_t pos = window_cursor_get(win->win); if (pos != win->changelist.pos) win->changelist.index = 0; else if (win->changelist.index > 0) win->changelist.index--; size_t newpos = text_history_get(win->text->data, win->changelist.index); if (newpos == EPOS) win->...
false
false
false
false
false
0
bert_encode_boolean(bert_encoder_t *encoder,unsigned int boolean) { if (boolean == 1) { return bert_encode_true(encoder); } else if (boolean == 0) { return bert_encode_false(encoder); } return BERT_ERRNO_INVALID; }
false
false
false
false
false
0
drawRect( QPainter *painter, const QRectF &rect ) { const QRectF r = rect; QRectF clipRect; const bool deviceClipping = isClippingNeeded( painter, clipRect ); if ( deviceClipping ) { if ( !clipRect.intersects( r ) ) return; if ( !clipRect.contains( r ) ) { ...
false
false
false
false
false
0
gfs_remove_droplets_read (GtsObject ** o, GtsFile * fp) { if (GTS_OBJECT_CLASS (gfs_remove_droplets_class ())->parent_class->read) (* GTS_OBJECT_CLASS (gfs_remove_droplets_class ())->parent_class->read) (o, fp); if (fp->type == GTS_ERROR) return; if (fp->type != GTS_STRING) { gts_file_error (f...
false
false
false
false
false
0
gt_file_dirname(GtStr *path, const char *file) { long i; gt_str_reset(path); for (i = (long) (strlen(file) - 1); i >= 0; i--) { if (file[i] == '/') break; } if (i > 0) gt_str_append_cstr_nt(path, file, (unsigned long) i); }
false
false
false
false
false
0
radeon_modeset_fini(struct radeon_device *rdev) { radeon_fbdev_fini(rdev); kfree(rdev->mode_info.bios_hardcoded_edid); if (rdev->mode_info.mode_config_initialized) { radeon_afmt_fini(rdev); drm_kms_helper_poll_fini(rdev->ddev); radeon_hpd_fini(rdev); drm_mode_config_cleanup(rdev->ddev); rdev->mode_info.mo...
false
false
false
false
false
0
rb_xfade_stream_dispose_stream_data (RBXFadeStream *stream) { if (stream->stream_data && stream->stream_data_destroy) { stream->stream_data_destroy (stream->stream_data); } stream->stream_data = NULL; stream->stream_data_destroy = NULL; }
false
false
false
false
false
0
pointer_from_offset_skipping_decomp (const gchar *str, gint offset) { gchar *casefold, *normal; const gchar *p, *q; p = str; while (offset > 0) { q = g_utf8_next_char (p); casefold = g_utf8_casefold (p, q - p); normal = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); offset -= g_utf8_strlen (normal, -1)...
false
false
false
false
false
0
gg_resolver_fork_start(int *fd, void **priv_data, const char *hostname) { struct gg_resolver_fork_data *data = NULL; int pipes[2], new_errno; gg_debug(GG_DEBUG_FUNCTION, "** gg_resolver_fork_start(%p, %p, \"%s\");\n", fd, priv_data, hostname); if (fd == NULL || priv_data == NULL || hostname == NULL) { gg_debug(...
false
false
false
false
false
0
copynodelist(lp) struct nodelist *lp; { struct nodelist *start; struct nodelist **lpp; lpp = &start; while (lp) { *lpp = funcblock; funcblock = (char *) funcblock + SHELL_ALIGN(sizeof(struct nodelist)); (*lpp)->n = copynode(lp->n); lp = lp->next; lpp = &(*lpp)->next; } *lpp = NULL; return start...
false
false
false
false
false
0
read2signed(FILE *f) { unsigned char b0, b1; signed int i0; b0 = fgetc(f); b1 = fgetc(f); i0 = b0 + (b1<<8); if (i0 >= 32768) { i0 -= 65536; } return (i0); }
false
false
false
false
false
0
fm10k_init_hw_vf(struct fm10k_hw *hw) { u32 tqdloc, tqdloc0 = ~fm10k_read_reg(hw, FM10K_TQDLOC(0)); s32 err; u16 i; /* verify we have at least 1 queue */ if (!~fm10k_read_reg(hw, FM10K_TXQCTL(0)) || !~fm10k_read_reg(hw, FM10K_RXQCTL(0))) { err = FM10K_ERR_NO_RESOURCES; goto reset_max_queues; } /* dete...
false
false
false
false
false
0
on_revision_panel_mapped (GtkWidget *page, GitgWindow *window) { gint nth; GitgRevisionPanel *panel; GitgRevision *revision = NULL; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreeIter iter; selection = gtk_tree_view_get_selection (window->priv->tree_view); if (gtk_tree_sel...
false
false
false
false
false
0
sp_svg_length_list_read(gchar const *str) { if (!str) { return std::vector<SVGLength>(); } SVGLength::Unit unit; float value; float computed; char *next = (char *) str; std::vector<SVGLength> list; while (sp_svg_length_read_lff(next, &unit, &value, &computed, &next)) { ...
false
false
false
false
false
0
mwifiex_associate(struct mwifiex_private *priv, struct mwifiex_bssdescriptor *bss_desc) { /* Return error if the adapter is not STA role or table entry * is not marked as infra. */ if ((GET_BSS_ROLE(priv) != MWIFIEX_BSS_ROLE_STA) || (bss_desc->bss_mode != NL80211_IFTYPE_STATION)) return -1; if (I...
false
false
false
false
false
0
cos_stream_release(cos_object_t *pco, client_name_t cname) { gs_memory_t *mem = cos_object_memory(pco); cos_stream_t *const pcs = (cos_stream_t *)pco; cos_stream_piece_t *cur; cos_stream_piece_t *next; for (cur = pcs->pieces; cur; cur = next) { next = cur->next; gs_free_object(mem, ...
false
false
false
false
false
0
ftvar_free(struct ftvar *ftvar) { struct ftvar_entry *ftve; while (!FT_SLIST_EMPTY(&ftvar->entries)) { ftve = FT_SLIST_FIRST(&ftvar->entries); if (ftve->name) free(ftve->name); if (ftve->val); free(ftve->val); FT_SLIST_REMOVE_HEAD(&ftvar->entries, chain); free(ftve); } }
false
false
false
false
false
0
create_allocnos (void) { /* We need to process BB first to correctly link allocnos by member next_regno_allocno. */ ira_traverse_loop_tree (true, ira_loop_tree_root, create_loop_tree_node_allocnos, NULL); if (optimize) ira_traverse_loop_tree (false, ira_loop_tree_root, NULL, propagate_modifi...
false
false
false
false
false
0
decide_wait_for_beacon_timeout23a(unsigned int bcn_interval) { if ((bcn_interval << 2) < WAIT_FOR_BCN_TO_MIN) return WAIT_FOR_BCN_TO_MIN; else if ((bcn_interval << 2) > WAIT_FOR_BCN_TO_MAX) return WAIT_FOR_BCN_TO_MAX; else return bcn_interval << 2; }
false
false
false
false
false
0
bcmgenet_init_tx_napi(struct bcmgenet_priv *priv) { unsigned int i; struct bcmgenet_tx_ring *ring; for (i = 0; i < priv->hw_params->tx_queues; ++i) { ring = &priv->tx_rings[i]; netif_napi_add(priv->dev, &ring->napi, bcmgenet_tx_poll, 64); } ring = &priv->tx_rings[DESC_INDEX]; netif_napi_add(priv->dev, &ring...
false
false
false
false
false
0
chatbox_autosplit_line() { char *remainder,msg[150]; char temp[150]; int msg_pixel_width; int target, target_length = -1; // if the chat line is getting too long, fire off the message, putting the last // word on the next input line. memset(msg,0,150); Chat_inputbox.get_text(msg); remainder = ""; // check...
false
false
false
false
false
0
setdomain(argv) char **argv; { gethostname(hostname, MAXNAMELEN); if (**argv != 0) { if (**argv != '.') strncat(hostname, ".", MAXNAMELEN - strlen(hostname)); domain = hostname + strlen(hostname); strncat(hostname, *argv, MAXNAMELEN - strlen(hostname)); } hostname[MAXNAMELEN-1] = 0; retu...
false
false
false
false
false
0
add_obs_markers_from_file (DATASET *dset, const char *fname) { char **S = NULL; FILE *fp; char line[128], marker[32]; int done = 0; int t, err = 0; fp = gretl_fopen(fname, "r"); if (fp == NULL) { return E_FOPEN; } S = strings_array_new_with_length(dset->n, OBSLEN); if (S == NU...
false
false
false
false
false
0
atl1e_set_features(struct net_device *netdev, netdev_features_t features) { netdev_features_t changed = netdev->features ^ features; if (changed & NETIF_F_HW_VLAN_CTAG_RX) atl1e_vlan_mode(netdev, features); if (changed & NETIF_F_RXALL) atl1e_rx_mode(netdev, features); return 0; }
false
false
false
false
false
0
SDL_VIDEO_BlitAF80_16(Uint32 *dest, int first_column, int last_column, int pitch, int first_line, int last_line, int blink, Uint16 *palette16) { Uint32 const black = (Uint32)palette16[0]; Uint32 const black2 = black << 16; int skip = pitch - (last_column - first_column)*4; register Uint32 *start32 = dest; unsigned...
false
false
false
false
false
0
popd_reset(void) { int bytes_in = 0; int bytes_out = 0; proc_cleanup(); syslog(LOG_NOTICE, "counts: retr=<%d> top=<%d> dele=<%d>", count_retr, count_top, count_dele); count_retr = 0; count_top = 0; count_dele = 0; /* close local mailbox */ if (popd_mailbox) ...
false
true
false
false
false
1
Clear() { m_pState->DoClear(); m_propHover = NULL; m_prevVY = 0; RecalculateVirtualSize(); // Need to clear some area at the end if ( !m_frozen ) RefreshRect(wxRect(0, 0, m_width, m_height)); }
false
false
false
false
false
0
perf_counter(_Py_clock_info_t *info) { #if defined(WIN32_PERF_COUNTER) || defined(PYMONOTONIC) PyObject *res; #endif #if defined(WIN32_PERF_COUNTER) static int use_perf_counter = 1; #endif #ifdef PYMONOTONIC static int use_monotonic = 1; #endif #ifdef WIN32_PERF_COUNTER if (use_perf_counter) { ...
false
false
false
false
false
0
cursorPositionChanged() { if (m_CurrentEditor) { alignmentChanged(m_CurrentEditor->textEdit()->alignment()); updateActions(); } }
false
false
false
false
false
0
getShortcutText(int id) { int flags, keyCode; if (findShortcutFor(id, flags, keyCode)) { // with different flags != wxACCEL_NORMAL ToString() will return stuff // like "Alt-Ctrl-X" -> fix this to read "Ctrl+Alt+X" instead wxString flagsText; if (flags & wxACCEL_SHIFT) ...
false
false
false
false
false
0
ahci_print_info(struct ata_host *host, const char *scc_s) { struct ahci_host_priv *hpriv = host->private_data; void __iomem *mmio = hpriv->mmio; u32 vers, cap, cap2, impl, speed; const char *speed_s; vers = readl(mmio + HOST_VERSION); cap = hpriv->cap; cap2 = hpriv->cap2; impl = hpriv->port_map; speed = (cap...
false
false
false
false
false
0
print(void) const { switch (oper) { case ast_assign: case ast_mul_assign: case ast_div_assign: case ast_mod_assign: case ast_add_assign: case ast_sub_assign: case ast_ls_assign: case ast_rs_assign: case ast_and_assign: case ast_xor_assign: case ast_or_assign: subexpressions[0]-...
false
false
false
false
false
0
opts(int argc, char **argv, Wal *w) { int i; int64 ms; for (i = 1; i < argc; ++i) { if (argv[i][0] != '-') usage("unknown option", argv[i]); if (argv[i][1] == 0 || argv[i][2] != 0) usage("unknown option",argv[i]); switch (argv[i][1]) { case 'p': port = re...
false
false
false
false
false
0
ftdi_process_read_urb(struct urb *urb) { struct usb_serial_port *port = urb->context; struct ftdi_private *priv = usb_get_serial_port_data(port); char *data = (char *)urb->transfer_buffer; int i; int len; int count = 0; for (i = 0; i < urb->actual_length; i += priv->max_packet_size) { len = min_t(int, urb->ac...
false
false
false
false
false
0
Type_Curve_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) { cmsUInt32Number Count; cmsToneCurve* NewGamma; *nItems = 0; if (!_cmsReadUInt32Number(io, &Count)) return NULL; switch (Count) { case 0: // Linear. ...
false
false
false
false
false
0
ajBtreeCacheNewUpdateS(const AjPStr file, const AjPStr ext, const AjPStr idir) { return ajBtreeCacheNewUpdateC(MAJSTRGETPTR(file), MAJSTRGETPTR(ext), MAJSTRGETPTR(idir)); }
false
false
false
false
false
0
gst_tag_list_peek_string_index (const GstTagList * list, const gchar * tag, guint index, const gchar ** value) { const GValue *v; g_return_val_if_fail (GST_IS_TAG_LIST (list), FALSE); g_return_val_if_fail (tag != NULL, FALSE); g_return_val_if_fail (value != NULL, FALSE); if ((v = gst_tag_list_get_value_...
false
false
false
false
false
0
ReadSplitData(struct ipmi_intf *intf, char* Buffer, char Sector, uint32_t NumBytes) { uint32_t BytesRead = 0; if(NumBytes == 0) { return 0; } while(BytesRead < NumBytes) { if(ReadCD(intf->fd, Sector, (Buffer+BytesRead), NumBytes) == -1) { return 1; } BytesRead += NumBytes; } return 0; }
false
false
false
false
false
0
newossmixerobject(PyObject *arg) { char *devicename = NULL; int fd; oss_mixer_t *self; if (!PyArg_ParseTuple(arg, "|s", &devicename)) { return NULL; } if (devicename == NULL) { devicename = getenv("MIXERDEV"); if (devicename == NULL) /* MIXERDEV not set */ ...
false
false
false
false
false
0
execd_slave_job_exit(u_long32 job_id, u_long32 ja_task_id) { lListElem *job = NULL; lListElem *ja_task = NULL; if (execd_get_job_ja_task(job_id, ja_task_id, &job, &ja_task)) { /* kill possibly still running tasks */ signal_job(job_id, ja_task_id, SGE_SIGKILL); /* if there are no pe_tasks ru...
false
false
false
false
false
0
font_resource_alloc(gx_device_pdf *pdev, pdf_font_resource_t **ppfres, pdf_resource_type_t rtype, gs_id rid, font_type ftype, int chars_count, pdf_font_write_contents_proc_t write_contents) { gs_memory_t *mem = pdev->pdf_memory; pdf_font_resource_t *pf...
false
false
false
false
false
0
cmac_create(encryption_algorithm_t algo, size_t key_size) { private_mac_t *this; crypter_t *crypter; u_int8_t b; crypter = lib->crypto->create_crypter(lib->crypto, algo, key_size); if (!crypter) { return NULL; } b = crypter->get_block_size(crypter); /* input and output of crypter must be equal for cmac */ ...
false
false
false
false
false
0
svg_compute_text_width(GF_Node *node, SVGAllAttributes *atts, GF_TraverseState *tr_state ) { GF_ChildNodeItem *child; Bool is_switch = 0; /*compute length of all text blocks*/ switch (gf_node_get_tag(node)) { case TAG_DOMText: get_domtext_width(node, atts, tr_state); break; case TAG_SVG_tspan: get_tspan_w...
false
false
false
false
false
0
ProcessLine( float *pafLastLineVal, float *pafThisLineVal, GInt32 *panLastLineId, GInt32 *panThisLineId, int nXSize ) { int i; /* -------------------------------------------------------------------- */ /* Special case for the first line. */ /* ---------------------...
false
false
false
false
false
0
iwl_ht_enabled(struct iwl_priv *priv) { struct iwl_tt_mgmt *tt = &priv->thermal_throttle; struct iwl_tt_restriction *restriction; if (!priv->thermal_throttle.advanced_tt) return true; restriction = tt->restriction + tt->state; return restriction->is_ht; }
false
false
false
false
false
0
HDGLremove_all_such_that(Generic_list list, intn (*fn)(VOIDP /* pointer */, VOIDP /* args */), VOIDP args) { VOIDP obj; /* reset to the beginning */ HDGLreset_to_beginning(list); while ((obj = HDGLnext_in_list(list))) { if ((*fn)(obj, args)) ...
false
false
false
false
false
0
gen_cpu_unit (rtx def) { decl_t decl; char **str_cpu_units; int vect_length; int i; str_cpu_units = get_str_vect ((char *) XSTR (def, 0), &vect_length, ',', FALSE); if (str_cpu_units == NULL) fatal ("invalid string `%s' in define_cpu_unit", XSTR (def, 0)); for (i = 0; i < vect_length; i++) { ...
false
false
false
false
false
0
build_local_file_url(git_buf *out, const char *fixture) { const char *in_buf; git_buf path_buf = GIT_BUF_INIT; cl_git_pass(git_path_prettify_dir(&path_buf, fixture, NULL)); cl_git_pass(git_buf_puts(out, "file://")); #ifdef _MSC_VER /* * A FILE uri matches the following format: file://[host]/path * where "ho...
false
false
false
false
false
0
HandleModPowerCostSchoolAuraProc(Unit* /*pVictim*/, uint32 /*damage*/, Aura* triggeredByAura, SpellEntry const* procSpell, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 /*cooldown*/) { // Skip melee hits and spells ws wrong school or zero cost return !(procSpell == NULL || (procSpell->manaCost == ...
false
false
false
false
false
0
EndsWith(const std::string& str, const std::string& with) { if (with.length() > (str.length())) { return false; } return (str.substr(str.length() - with.length(), with.length()) == with); }
false
false
false
false
false
0
gf_general_divide(gf_t *gf, gf_general_t *a, gf_general_t *b, gf_general_t *c) { gf_internal_t *h; int w; h = (gf_internal_t *) gf->scratch; w = h->w; if (w <= 32) { c->w32 = gf->divide.w32(gf, a->w32, b->w32); } else if (w <= 64) { c->w64 = gf->divide.w64(gf, a->w64, b->w64); } else { gf->d...
false
false
false
false
false
0
SetOption(const wxString& name, const wxString& value, bool update) { wxCHECK_MSG(M_PLOTCURVEDATA, -1, wxT("invalid plotcurve")); int n = M_PLOTCURVEDATA->m_optionNames.Index(name); if (n == wxNOT_FOUND) { n = M_PLOTCURVEDATA->m_optionNames.Add(name); M_PLOTCURVEDATA->m_optionValues.Inse...
false
false
false
false
false
0
ooSendFSUpdate(OOH323CallData *call) { int ret = 0; Q931Message *pQ931Msg = NULL; H225Facility_UUIE *facility = NULL; OOCTXT *pctxt = call->msgctxt; OOTRACEDBGA3("Building FS update message (%s, %s)\n", call->callType, call->callToken); ret = ooCreateQ931Message(pctxt, &pQ931Msg, Q93...
false
true
false
false
false
1
push_krell_pixmaps(GkrellmPanel *p) { GList *list; GkrellmKrell *k; GkrellmDrawrec *dr; gboolean restore_clip_mask = FALSE, restore_clip_origin = FALSE; if (!p) return; for (list = p->krell_list; list; list = list->next) { k = (GkrellmKrell *) list->data; gdk_gc_set_clip_mask(_GK.text_GC, k->s...
false
false
false
false
false
0
sizeof_func(PyObject *self, PyObject *obj) { StgDictObject *dict; dict = PyType_stgdict(obj); if (dict) return PyLong_FromSsize_t(dict->size); if (CDataObject_Check(obj)) return PyLong_FromSsize_t(((CDataObject *)obj)->b_size); PyErr_SetString(PyExc_TypeError, "...
false
false
false
false
false
0
demod_attach_stv0900(struct ngene_channel *chan) { struct i2c_adapter *i2c; struct stv090x_config *feconf = (struct stv090x_config *) chan->dev->card_info->fe_config[chan->number]; /* tuner 1+2: i2c adapter #0, tuner 3+4: i2c adapter #1 */ /* Note: Both adapters share the same i2c bus, but the demod */ /* ...
false
false
false
false
false
0
iwlagn_check_needed_chains(struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_bss_conf *bss_conf) { struct ieee80211_vif *vif = ctx->vif; struct iwl_rxon_context *tmp; struct ieee80211_sta *sta; struct iwl_ht_config *ht_conf = &priv->current_ht_config; struct ieee80211_sta_...
false
false
false
false
false
0
transformLinearRing( const LinearRing* geom, const Geometry* parent) { ::geos::ignore_unused_variable_warning(parent); #if GEOS_DEBUG std::cerr << "GeometryTransformer::transformLinearRing(LinearRing " << geom <<", Geometry " << parent << ");" << std::endl; #endif CoordinateSequence::AutoPtr seq(transformCo...
false
false
false
false
false
0
GetClassDefaultAttributes(wxWindowVariant variant) { #if _USE_VISATTR // Use the same color scheme as wxListBox return wxListBox::GetClassDefaultAttributes(variant); #else wxUnusedVar(variant); wxVisualAttributes attr; attr.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOXTEXT); attr.colB...
false
false
false
false
false
0
getSISOBytes(SISO_Option option, uint32_t cnvOption, uint8_t *value) { int32_t SISOLength = 0; switch (option) { case SI: if ((cnvOption&_MBCS_OPTION_KEIS)!=0) { value[0] = KEIS_SI_CHAR_1; value[1] = KEIS_SI_CHAR_2; SISOLength = 2; ...
false
false
false
false
false
0
digest() { if (_digest.empty()) { _digest = _engine.digest(); } return _digest; }
false
false
false
false
false
0
strip_command (win_struct *win) { gchar *command_copy=NULL; gchar *space=NULL; gchar *basename=NULL; command_copy=g_strdup (win->command); space=g_strstr_len (command_copy, strlen (command_copy) , " "); if (space) *space=0; if (debug) printf ("command without args: %s\n", command_copy); ...
false
false
false
false
false
0
cp2112_write_req(void *buf, u8 slave_address, u8 command, u8 *data, u8 data_length) { struct cp2112_write_req_report *report = buf; if (data_length > sizeof(report->data) - 1) return -EINVAL; report->report = CP2112_DATA_WRITE_REQUEST; report->slave_address = slave_address << 1; report->length = data_le...
false
false
false
false
false
0
sv_next(struct irs_sv *this) { struct pvt *pvt = (struct pvt *)this->private; struct servent *rval; struct irs_sv *sv; while (pvt->rule) { sv = pvt->rule->inst->sv; rval = (*sv->next)(sv); if (rval) return (rval); if (!(pvt->rule->flags & IRS_CONTINUE)) break; pvt->rule = pvt->rule->next; if (pv...
false
false
false
false
false
0
err_throw_v(err_id_t error_code, int param_count, va_list va) { size_t siz; int i; CVmException *exc; CVmExcParam *param; /* * Assert that the size of the err_param_type enum is no larger than * the size of the native 'int' type. Since this routine is called * with a...
false
false
false
false
false
0
jl_symbol(const char *str) { jl_sym_t **pnode; pnode = symtab_lookup(&symtab, str); if (*pnode == NULL) *pnode = mk_symbol(str); return *pnode; }
false
false
false
false
false
0
delConnection (Connection cxn) { bool shutDown; Connection c, q; if (cxn == NULL) return ; d_printf (1,"Deleting connection: %s:%d\n", hostPeerName (cxn->myHost),cxn->ident) ; for (c = gCxnList, q = NULL ; c != NULL ; q = c, c = c->next) if (c == cxn) { if (gCxnList == c) ...
true
true
false
false
false
1
dm_table_find_target(struct dm_table *t, sector_t sector) { unsigned int l, n = 0, k = 0; sector_t *node; for (l = 0; l < t->depth; l++) { n = get_child(n, k); node = get_node(t, l, n); for (k = 0; k < KEYS_PER_NODE; k++) if (node[k] >= sector) break; } return &t->targets[(KEYS_PER_NODE * n) + k]; ...
false
false
false
false
false
0
tuplestore_alloc_read_pointer(Tuplestorestate *state, int eflags) { /* Check for possible increase of requirements */ if (state->status != TSS_INMEM || state->memtupcount != 0) { if ((state->eflags | eflags) != state->eflags) elog(ERROR, "too late to require new tuplestore eflags"); } /* Make room for anothe...
false
false
false
false
false
0
__lambda5_ (AvatarCacheTests* self, GObject* obj, GAsyncResult* res) { GMainLoop* _tmp3_ = NULL; GError * _inner_error_ = NULL; #line 162 "/home/treitter/collabora/folks/tests/folks/avatar-cache.vala" g_return_if_fail (res != NULL); #line 781 "avatar-cache.c" { FolksAvatarCache* _tmp0_ = NULL; GAsyncResult* _tm...
false
false
false
false
false
0
initialize(const KUrl& url) { LocationData data; data.url = url; m_history.prepend(data); q->setLayoutDirection(Qt::LeftToRight); const int minHeight = m_pathBox->sizeHint().height(); q->setMinimumHeight(minHeight); q->setLayout(m_layout); q->setMinimumWidth(100); updateContent()...
false
false
false
false
false
0
exactMatch(const QString& s) const { Q_FOREACH(const QRegExp & filter, m_regexpCache) { if (filter.exactMatch(s)) { return true; } } return false; }
false
false
false
false
false
0
media_ctrl_read_event(struct media_ctrl *ctrl, struct media_ctrl_event *me) { ssize_t n; struct input_event ev; // struct media_ctrl_event me; if ( ctrl->fd > 0 ) { n = read(ctrl->fd, &ev, sizeof(ev)); } else { return; } if (n != sizeof(ev)) { //printf("JogShuttle::inputCallback: read: (%d) %s\n", ...
false
true
false
false
true
1
nautilus_canvas_container_select_first (NautilusCanvasContainer *container) { gboolean selection_changed; NautilusCanvasIcon *icon; g_return_if_fail (NAUTILUS_IS_CANVAS_CONTAINER (container)); selection_changed = FALSE; if (container->details->needs_resort) { resort (container); container->details->needs_re...
false
false
false
false
false
0
executor_many_threads(int n, const fftw_complex *in, fftw_complex *out, fftw_plan_node *p, int istride, int ostride, int howmany, int idist, int odist, int nthreads) { switch (p->type) { case FFTW_NOTW: { int s; if (nthreads <= 1) { fftw_notw_codelet ...
false
false
false
false
false
0
xfer_addsubmailboxes(struct xfer_header *xfer, const char *mboxname) { char buf[MAX_MAILBOX_NAME]; int r; snprintf(buf, sizeof(buf), "%s.*", mboxname); r = mboxlist_findall(NULL, buf, 1, imapd_userid, imapd_authstate, xfer_user_cb, xfer); if (r) return r; /* also move DELETED maiboxes ...
true
true
false
false
false
1
alloc_fpa_index(void) { struct fpa_index *p; int i; p = (struct fpa_index *) tp_alloc((int) sizeof(struct fpa_index)); for (i = 0; i < FPA_SIZE; i++) p->table[i] = NULL; return(p); }
false
false
false
false
false
0
ael2_semantic_check(pval *item, int *arg_errs, int *arg_warns, int *arg_notes) { #ifdef AAL_ARGCHECK int argapp_errs =0; char *rfilename; #endif struct argapp *apps=0; if (!item) return; /* don't check an empty tree */ #ifdef AAL_ARGCHECK rfilename = ast_alloca(10 + strlen(ast_config_AST_VAR_DIR)); sprintf(r...
false
true
false
false
false
1
set_server_ip(const CHAR* ip,BOOL enable) { sprintf(m_strserverip,"%s",ip); if ( enable == false ) return true; bzero(&m_serveripaddr,sizeof(m_serveripaddr)); m_serveripaddr.sin_family = AF_INET; m_serveripaddr.sin_port = htons(m_port); if ( inet_aton(m_strserverip,(struct in_addr *)&m_serveripaddr.sin_addr.s_add...
false
false
false
false
false
0
data(const QModelIndex &index, int role) const { // if we are valid, tell QCompleter that everything we have filtered matches // what the user typed; if not, nothing matches if (role == HistoryCompletionRole && index.isValid()) { if (isValid()) return QLatin1String("a"); else ...
false
false
false
false
false
0
gkrellm_gtk_check_button(GtkWidget *box, GtkWidget **button, gboolean active, gboolean expand, gint pad, gchar *string) { GtkWidget *b; if (!string) return; b = gtk_check_button_new_with_label(string); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(b), active); if (box) gtk_box_pack_start(GTK_BOX(box), b,...
false
false
false
false
false
0
e_mixer_pulse_get_mute(E_Mixer_System *self, E_Mixer_Channel *channel __UNUSED__, int *mute) { if (mute) *mute = pulse_sink_muted_get((void *)self); return 1; }
false
false
false
false
false
0
gigaset_register_appl(struct capi_ctr *ctr, u16 appl, capi_register_params *rp) { struct gigaset_capi_ctr *iif = container_of(ctr, struct gigaset_capi_ctr, ctr); struct cardstate *cs = ctr->driverdata; struct gigaset_capi_appl *ap; gig_dbg(DEBUG_CMD, "%s [%u] l3cnt=%u blkcnt=%u blklen=%u", __func__, appl...
false
false
false
false
false
0
WriteTransparentColor(file, colors, cpp, mask_pixel, colorTable) FILE *file; char **colors; unsigned int cpp; unsigned int mask_pixel; char ***colorTable; { unsigned int key, i; char *s; putc('"', file); for (i = 0, s = *colors; i < cpp; i++, s++) putc(*s, file); if (colorTable && mask_pixel != U...
false
false
false
false
false
0
v4l2_radio_set_freq(RadioDev *radio_dev, float frequency) { V4L2RadioDev *dev = (V4L2RadioDev*)radio_dev; struct v4l2_frequency freq; if (dev->fd<0) return; memset(&freq, 0, sizeof(freq)); freq.tuner = 0; freq.type = V4L2_TUNER_RADIO; freq.frequency = frequency * dev->freq_fact; if (freq.frequency < dev->r...
false
false
false
false
false
0
print_bag_data (gnutls_pkcs12_bag_t bag) { int result; int count, i, type; gnutls_datum_t cdata, id; const char *str, *name; gnutls_datum_t out; count = gnutls_pkcs12_bag_get_count (bag); if (count < 0) error (EXIT_FAILURE, 0, "get_count: %s", gnutls_strerror (count)); fprintf (outfile, "\tElement...
false
false
false
false
false
0