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
failtest_lseek(int fd, off_t offset, int whence, const char *file, unsigned int line) { struct failtest_call *p; struct lseek_call call; call.fd = fd; call.offset = offset; call.whence = whence; call.old_off = lseek(fd, 0, SEEK_CUR); p = add_history(FAILTEST_LSEEK, false, file, line, &call); p->fail = f...
false
false
false
false
false
0
qla2x00_vp_abort_isp(scsi_qla_host_t *vha) { /* * Physical port will do most of the abort and recovery work. We can * just treat it as a loop down */ if (atomic_read(&vha->loop_state) != LOOP_DOWN) { atomic_set(&vha->loop_state, LOOP_DOWN); qla2x00_mark_all_devices_lost(vha, 0); } else { if (!atomic_read...
false
false
false
false
false
0
htmlizeCmd( Th_Interp *interp, void *p, int argc, const char **argv, int *argl ){ char *zOut; if( argc!=2 ){ return Th_WrongNumArgs(interp, "htmlize STRING"); } zOut = htmlize((char*)argv[1], argl[1]); Th_SetResult(interp, zOut, -1); free(zOut); return TH_OK; }
false
false
false
false
false
0
ompi_attr_free_predefined(void) { int ret; if (OMPI_SUCCESS != (ret = free_comm(MPI_TAG_UB)) || OMPI_SUCCESS != (ret = free_comm(MPI_HOST)) || OMPI_SUCCESS != (ret = free_comm(MPI_IO)) || OMPI_SUCCESS != (ret = free_comm(MPI_WTIME_IS_GLOBAL)) || OMPI_SUCCESS != (ret = free_comm(...
false
false
false
false
false
0
ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, unsigned char *md, unsigned int *len) { int i; unsigned char *str,*p; i=i2d(data,NULL); if ((str=(unsigned char *)OPENSSL_malloc(i)) == NULL) { ASN1err(ASN1_F_ASN1_DIGEST,ERR_R_MALLOC_FAILURE); return(0); } p=str; i2d(data,&p); if (!EVP_D...
false
false
false
false
false
0
to_index(line) int line; { int cp = 0; while (cp < bufmax && line > 1) { cp = 1+fseekeol(cp); line--; } return(cp); }
false
false
false
false
false
0
NameChange(wxCommandEvent &/*event*/) { if(m_selected<0) return; if((unsigned int)m_selected>=idfavlist->GetCount()) //TODO: Perhaps more correct to define unsigned int j, set j=i, then do the comparison return; idfavlist->SetString(m_selected,idalias->GetValue()); }
false
false
false
false
false
0
make_cop_io_object(pTHX_ COP *cop) { SV *const value = newSV(0); Perl_emulate_cop_io(aTHX_ cop, value); if(SvOK(value)) { return make_sv_object(aTHX_ value); } else { SvREFCNT_dec(value); return make_sv_object(aTHX_ NULL); } }
false
false
false
false
false
0
EvaluateIF(IODSCellEvaluator* poEvaluator) { CPLAssert( eNodeType == SNT_OPERATION ); CPLAssert( eOp == ODS_IF ); CPLAssert(nSubExprCount == 2 || nSubExprCount == 3); if (!(papoSubExpr[0]->Evaluate(poEvaluator))) return FALSE; if (!(papoSubExpr[1]->Evaluate(poEvaluator))) return FAL...
false
false
false
false
false
0
PredicateLockPromotionThreshold(const PREDICATELOCKTARGETTAG *tag) { switch (GET_PREDICATELOCKTARGETTAG_TYPE(*tag)) { case PREDLOCKTAG_RELATION: return max_predicate_locks_per_xact / 2; case PREDLOCKTAG_PAGE: return 3; case PREDLOCKTAG_TUPLE: /* * not reachable: nothing is finer-granularity than...
false
false
false
false
false
0
idcin_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { IdcinContext *s = avctx->priv_data; AVPaletteControl *palette_control = avctx->palctrl; s->buf = buf; s->size = buf_size; if (s->fra...
false
false
false
false
false
0
grecs_vasprintf(char **pbuf, size_t *psize, const char *fmt, va_list ap) { char *buf = *pbuf; size_t buflen = *psize; int rc = 0; if (!buf) { if (buflen == 0) buflen = 512; /* Initial allocation */ buf = calloc(1, buflen); if (buf == NULL) return ENOMEM; } for (;;) { va_list aq; ssize...
false
false
false
false
true
1
print (std::ostream& strm) const { fprint(strm, "Exception <cl_composite_condition> occurred: p = "); fprint(strm, p); fprint(strm, " is not a prime, "); if (zerop(factor)) fprint(strm, "no factor found"); else { fprint(strm, "factor found: "); fprint(strm, factor); } fprint(strm, "\n"); } }
false
false
false
false
false
0
user_panel(void) { int i, j; const char *filter, *login, *gecos; uid_t curs; if (utable.cnt > panel_user.usr_alloc) { panel_user.usr_alloc = utable.cnt; if (panel_user.users) free(panel_user.users); panel_user.users = emalloc(panel_user.usr_alloc * sizeof(USER_ENTRY)); } curs = VALID_CURSOR(panel_user....
false
false
false
false
false
0
_wrap_gst_rtsp_server_get_media_mapping(PyGObject *self) { GstRTSPMediaMapping *ret; pyg_begin_allow_threads; ret = gst_rtsp_server_get_media_mapping(GST_RTSP_SERVER(self->obj)); pyg_end_allow_threads; /* pygobject_new handles NULL checking */ return pygobject_new((GObject *)ret); }
false
false
false
false
false
0
test_generic (const char *before, const char *after) { GString *newc; /* Get the new /etc/hosts contents */ newc = nm_policy_get_etc_hosts (before, strlen (before)); if (after == NULL) { /* No change to /etc/hosts required */ #if DEBUG if (newc != NULL) { g_message ("\n- NEW -------------------------------...
false
false
false
false
false
0
driver_get_axis_info( CoreInputDevice *device, void *driver_data, DFBInputDeviceAxisIdentifier axis, DFBInputDeviceAxisInfo *ret_info ) { LinuxInputData *data = (LinuxInputData*) driver_data; if (dat...
false
false
false
false
false
0
update_changed(GtkToggleButton *button, MarkControls *controls) { controls->args->update = gtk_toggle_button_get_active(button); gtk_dialog_set_response_sensitive(GTK_DIALOG(controls->dialog), RESPONSE_PREVIEW, !controls->args->update);...
false
false
false
false
false
0
add_subscript_to_argument_for_hetero(Hetero_Stasche **sinfo_vec, Hetero_Acc_Stasche *acc_sinfo) { int i; Hetero_Stasche *sinfo; for (i = 1; i < get_max_mtg_id() + 1; i++) { sinfo = sinfo_vec[i]; if (sinfo == NULL) { continue; } ...
false
false
false
false
false
0
bcm203x_probe(struct usb_interface *intf, const struct usb_device_id *id) { const struct firmware *firmware; struct usb_device *udev = interface_to_usbdev(intf); struct bcm203x_data *data; int size; BT_DBG("intf %p id %p", intf, id); if (intf->cur_altsetting->desc.bInterfaceNumber != 0) return -ENODEV; data...
false
false
false
false
false
0
dxf_point_init ( DxfPoint *dxf_point /*!< DXF point entity. */ ) { #if DEBUG DXF_DEBUG_BEGIN #endif /* Do some basic checks. */ if (dxf_point == NULL) { fprintf (stderr, (_("Warning in %s () a NULL pointer was passed.\n")), ...
false
false
false
false
false
0
luaH_pos (Hash *t, TObject *r) { Node *n = luaH_present(t, r); luaL_arg_check(ttype(val(n)) != LUA_T_NIL, 2, "key not found"); return n-(t->node); }
false
false
false
false
false
0
htleimage_init(Bounds *b, File *file, ht_format_group *group) { ht_le_shared_data *le_shared=(ht_le_shared_data *)group->get_shared_data(); File *myfile = le_shared->reloc_file; String fn; LOG("%y: LE: loading image (starting analyser)...", &file->getFilename(fn)); LEAnalyser *p = new LEAnalyser(); p->init(le_s...
false
false
false
false
false
0
ll_name_to_index(const char *name) { static char ncache[16]; static int icache; struct idxmap *im; int i; if (name == NULL) return 0; if (icache && strcmp(name, ncache) == 0) return icache; for (i=0; i<16; i++) { for (im = idxmap[i]; im; im = im->next) { if (strcmp(im->name, name) == 0) { icache = ...
false
false
false
false
false
0
EmitSymbol(MCStreamer &streamer, const MCSymbol &symbol, unsigned symbolEncoding, const char *comment = 0) { MCContext &context = streamer.getContext(); const MCAsmInfo &asmInfo = context.getAsmInfo(); const MCExpr *v = asmInfo.getExprForFDESymbol(&symbol, ...
false
false
false
false
false
0
gelf_getclass(Elf *elf) { if (elf && elf->e_kind == ELF_K_ELF && valid_class(elf->e_class)) { return elf->e_class; } return ELFCLASSNONE; }
false
false
false
false
false
0
SCH_Initialise(void) { FD_ZERO(&read_fds); n_read_fds = 0; n_timer_queue_entries = 0; next_tqe_id = 0; timer_queue.next = &timer_queue; timer_queue.prev = &timer_queue; need_to_exit = 0; LCL_AddParameterChangeHandler(handle_slew, NULL); LCL_ReadRawTime(&last_select_ts_raw); last_select_ts = las...
false
false
false
false
true
1
setCerr(STD_NAMESPACE ostream *newCerr) { lockCerr(); STD_NAMESPACE ostream *tmpCerr = currentCerr; #ifdef DCMTK_GUI if (newCerr) currentCerr = newCerr; else currentCerr = &CERR; #else if (newCerr) currentCerr = newCerr; else currentCerr = &STD_NAMESPACE cerr; #endif unlockCerr(); return tmpCerr; }
false
false
false
false
false
0
m68ec020_set_reg(int regnum, unsigned val) { switch( regnum ) { case M68K_MSP: m68k_set_reg(M68K_REG_MSP, val); break; /* 68020+ */ case M68K_CACR: m68k_set_reg(M68K_REG_CACR, val); break; /* 68020+ */ case M68K_CAAR: m68k_set_reg(M68K_REG_CAAR, val); break; /* 68020+ */ case M68K_VBR: m68k_set_reg(M6...
false
false
false
false
false
0
spif_mbuff_index(spif_mbuff_t self, spif_uint8_t c) { spif_byteptr_t tmp; spif_memidx_t i; ASSERT_RVAL(!SPIF_MBUFF_ISNULL(self), (SPIF_CAST(memidx) -1)); for (tmp = self->buff, i = 0; (*tmp & (~c)) && (i < self->len); i++, tmp++); return SPIF_CAST(memidx) (SPIF_CAST(long) tmp - SPIF_CAST(long) self...
false
false
false
false
false
0
encode_AttributeTypeAndValue(unsigned char *p HEIMDAL_UNUSED_ATTRIBUTE, size_t len HEIMDAL_UNUSED_ATTRIBUTE, const AttributeTypeAndValue *data, size_t *size) { size_t ret HEIMDAL_UNUSED_ATTRIBUTE = 0; size_t l HEIMDAL_UNUSED_ATTRIBUTE; int i HEIMDAL_UNUSED_ATTRIBUTE, e HEIMDAL_UNUSED_ATTRIBUTE; /* value */ { size_t To...
false
false
false
false
false
0
_dxf_deleteWindow(Pointer p) { ImageWindow *iw = (ImageWindow *)p; _dxf_deleteWindowX(p); DXFree(iw->iwx); if (iw->where) { DXFree((void *)iw->where); iw->where = NULL; } DXFreeModuleId(iw->mod_id); DXFree((void *)iw->cacheTag); DXFree((void *)iw); return OK; }
true
true
false
false
false
1
on_file_activated(const CL_TreeNode &node) { CL_TreeItem *treeitem = (CL_TreeItem *)node.get_component(); std::string item = treeitem->get_text(0); if(treeitem->get_text(2) == "Directory") { CL_Directory::change_to(item); read_dir(); } else { set_file(item, false); } }
false
false
false
false
false
0
find_child_reaper(struct task_struct *father) __releases(&tasklist_lock) __acquires(&tasklist_lock) { struct pid_namespace *pid_ns = task_active_pid_ns(father); struct task_struct *reaper = pid_ns->child_reaper; if (likely(reaper != father)) return reaper; reaper = find_alive_thread(father); if (reaper) { ...
false
false
false
false
false
0
md50_print_page(gx_device_printer *pdev, FILE *prn_stream, const char *init_str, int init_size) { int lnum; int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev); byte *data = (byte *)gs_malloc(pdev->memory->non_gc_memory, 8, line_size, "md50_print_page(data)" ); int skipping = 0; int ...
false
false
false
false
false
0
mlx4_fmr_enable(struct mlx4_dev *dev, struct mlx4_fmr *fmr) { struct mlx4_priv *priv = mlx4_priv(dev); int err; err = mlx4_mr_enable(dev, &fmr->mr); if (err) return err; fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table, key_to_hw_index(fmr->mr.key), NULL); if (!fmr->mpt) return -ENOMEM; retur...
false
false
false
false
false
0
long_neg(PyLongObject *v) { PyLongObject *z; if (ABS(Py_SIZE(v)) <= 1) return PyLong_FromLong(-MEDIUM_VALUE(v)); z = (PyLongObject *)_PyLong_Copy(v); if (z != NULL) Py_SIZE(z) = -(Py_SIZE(v)); return (PyObject *)z; }
false
false
false
false
false
0
e_cell_date_edit_on_now_clicked (GtkWidget *button, ECellDateEdit *ecde) { struct tm tmp_tm; time_t t; gchar buffer[64]; if (ecde->time_callback) { tmp_tm = ecde->time_callback ( ecde, ecde->time_callback_data); } else { t = time (NULL); tmp_tm = *localtime (&t); } e_t...
false
false
false
false
false
0
modperl_const_compile(pTHX_ const char *classname, const char *arg, const char *name) { HV *stash = gv_stashpv(classname, TRUE); HV *caller_stash = (HV *)NULL; constants_lookup lookup; constants_group_lookup group_lookup; if (strnEQ(classname, "AP...
false
false
false
false
false
0
exclude_is_line_excluded( func_unit* funit, /*!< Pointer to functional unit to check */ int line /*!< Line number of line to check */ ) { PROFILE(EXCLUDE_IS_LINE_EXCLUDED); func_iter fi; /* Functional unit iterator */ statement* stmt; /* Pointer to current statement */ func_iter_init( &fi, f...
false
false
false
false
false
0
dnd_picked(GtkWidget *widget, GdkDragContext *dc, GtkSelectionData *selection_data, guint info, guint t, gpointer data) { struct gui_object *obj; int row; if (GTK_CLIST(widget)->selection_end) row = (gint) (long)GTK_CLIST(widget)->selection_end->data; else return; obj = gtk_clist_get_row_data(GTK_CLIST(widget)...
false
false
false
false
false
0
bisho_pane_get_auth_type (BishoPaneClass *klass) { if (klass->get_auth_type) return klass->get_auth_type (klass); else return NULL; }
false
false
false
false
false
0
rb_f_open(int argc, VALUE *argv) { ID to_open = 0; int redirect = FALSE; if (argc >= 1) { CONST_ID(to_open, "to_open"); if (rb_respond_to(argv[0], to_open)) { redirect = TRUE; } else { VALUE tmp = argv[0]; FilePathValue(tmp); if (NIL_P(tmp)) { redirect = TRUE; } else { ...
false
false
false
false
false
0
write_reads(const pos_t pos) { for (unsigned s(0); s<_n_samples; ++s) { bam_dumper* bamd_ptr(_client_io.realign_bam_ptr(s)); if (NULL == bamd_ptr) continue; bam_dumper& bamd(*bamd_ptr); read_segment_iter ri(sample(s).read_buff.get_pos_read_segment_iter(pos)); read_segment_i...
false
false
false
false
false
0
PBI_XLD_D1ffPutByte(UBYTE byte) { int result = 0; /* handled */ if (xld_d_enabled && byte == DISK_MASK) { memcpy(MEMORY_mem + 0xd800, diskrom, 0x800); D(printf("DISK rom activated\n")); } else if (byte == MODEM_MASK) { memcpy(MEMORY_mem + 0xd800, voicerom + 0x800, 0x800); D(printf("MODEM rom activated\n"))...
false
false
false
false
false
0
Support1(const btVector3& d) const { return(m_toshape0*((m_shapes[1])->*(Ls))(m_toshape1*d)); }
false
false
false
false
false
0
operator<<(std::string s) { if (fwrite(&s[0], s.size(), 1, tFile) != 1) ; // Ignore gcc warning return *this; }
false
false
false
false
false
0
CKYBuffer_SetShortLE(CKYBuffer *buf, CKYOffset offset, unsigned short val) { CKYStatus ret; if (buf->len < offset+2) { ret = CKYBuffer_Resize(buf,offset+2); if (ret != CKYSUCCESS) { return ret; } } buf->data[offset+1] = (CKYByte) ((val >> 8) & 0xff); buf->data[offset+0] = (CKYByte) ((val >>...
false
false
false
false
false
0
layout(){ // Calculate contents FXScrollArea::layout(); // Place header control header->position(0,0,viewport_w,header->getDefaultHeight()); // Set line size based on item size if(firstitem){ vertical->setLine(firstitem->getHeight(this)); horizontal->setLine(firstitem->getWidth(this)/10); } ...
false
false
false
false
false
0
ldbm_instance_start(backend *be) { int rc; PR_Lock (be->be_state_lock); if (be->be_state != BE_STATE_STOPPED && be->be_state != BE_STATE_DELETED) { LDAPDebug( LDAP_DEBUG_TRACE, "ldbm_instance_start: warning - backend is in a wrong state - %d\n", be->b...
false
false
false
false
false
0
sample_prp_sans_replacement(const unsigned char *ki, unsigned int ki_size, unsigned int samp_sz, unsigned int pop_sz, unsigned int S[]) { unsigned int N, M, V, i, j, keyidx; unsigned char* hist = NULL; unsigned int hist_size; int status = -1; N = pop_sz; M = samp_sz; V = 0; key...
false
true
false
false
false
1
game_position_make_move_test (GamePositionDbFixture *fixture, gconstpointer test_data) { GamePositionDb *db = fixture->db; GamePosition *after_make_move; GamePosition *initial = get_gp_from_db(db, "initial"); after_make_move = game_position_make_move(initial, D3); GamePosition...
false
false
false
false
false
0
mx_entry_set_primary_icon_tooltip_text (MxEntry *entry, const gchar *text) { MxEntryPrivate *priv; g_return_if_fail (MX_IS_ENTRY (entry)); priv = entry->priv; if (!priv->primary_icon_tooltip) { priv->primary_icon_tooltip = g_object_new (MX_TYPE_TOOLTIP, ...
false
false
false
false
false
0
sub1arr(x,n,y,m) word2 *x, *y; int n, m; { if(n < m) cpyarr(y+n,m-n,x+n); if(diff1arr(x,n,y)) m = n + decarr(x+n,m-n,1); while(m > 0 && x[m-1] == 0) m--; return(m); }
false
false
false
false
false
0
symbol_db_engine_update_files_symbols (SymbolDBEngine * dbe, const gchar * project, const GPtrArray * files_path, gboolean update_prj_analyse_time) { SymbolDBEnginePriv *priv; UpdateFileSymbolsData *update_data; gboolean ret_code; gint ret_id, scan_id; gint i; GPtrArray * ready_files; ...
false
false
false
false
false
0
gp_cairo_initialize_context(plot_struct *plot) { cairo_matrix_t matrix; if (plot->oversampling) plot->oversampling_scale = GP_CAIRO_SCALE; else plot->oversampling_scale = 1; if (plot->antialiasing) cairo_set_antialias(plot->cr,CAIRO_ANTIALIAS_DEFAULT); else cairo_set_antialias(plot->cr,CAIRO_ANTIALIAS_NO...
false
false
false
false
false
0
gst_ebml_read_date (GstEbmlRead * ebml, guint32 * id, gint64 * date) { gint64 ebml_date; GstFlowReturn ret; ret = gst_ebml_read_sint (ebml, id, &ebml_date); if (ret != GST_FLOW_OK) return ret; *date = (ebml_date / GST_SECOND) + GST_EBML_DATE_OFFSET; return ret; }
false
false
false
false
false
0
ai_settle_to_other_town(ActionNode* actionNode) { if(!seek_path.total_node_avail) return 0; //------- check if both towns are ready first --------// if(!check_town_ready(actionNode->action_x_loc, actionNode->action_y_loc) || !check_town_ready(actionNode->ref_x_loc, actionNode->ref_y_loc)) { return -1; } ...
false
false
false
false
false
0
rtw_classify8021d(struct sk_buff *skb) { unsigned int dscp; /* skb->priority values from 256->263 are magic values to * directly indicate a specific 802.1d priority. This is used * to allow 802.1d priority to be passed directly in from VLAN * tags, etc. */ if (skb->priority >= 256 && skb->priority <= 263) ...
false
false
false
false
false
0
permute( int k, int max_k ) #else permute( k, max_k ) int k, max_k; #endif { Tree *t, *u; if ( k>max_k ) return NULL; if ( ftbl[k][findex[k]] == nil ) return NULL; t = permute(k+1, max_k); if ( t==NULL&&k<max_k ) /* no permutation left below for k+1 tokens? */ { findex[k+1] = 0; (findex[k])++; /* try nex...
false
false
false
true
false
1
__pyx_tp_dealloc_7sklearn_5utils_12arraybuilder_ArrayBuilder(PyObject *o) { struct __pyx_obj_7sklearn_5utils_12arraybuilder_ArrayBuilder *p = (struct __pyx_obj_7sklearn_5utils_12arraybuilder_ArrayBuilder *)o; Py_XDECREF(p->_arr); (*Py_TYPE(o)->tp_free)(o); }
false
false
false
false
false
0
ancestor_context_ends_here (Context *state, LineInfo *line, gint line_pos) { Context *current_context; GSList *current_context_list; GSList *check_ancestors; Context *terminating_context; /* A context can be terminated by the parent if extend_parent is...
false
false
false
false
false
0
o_conjugate(void) { VALUE *vp; VALUE tmp; vp = stack; if (vp->v_type == V_ADDR) vp = vp->v_addr; if (vp->v_type == V_NUM) { if (stack->v_type == V_ADDR) { stack->v_num = qlink(vp->v_num); stack->v_type = V_NUM; stack->v_subtype = V_NOSUBTYPE; } return; } conjvalue(vp, &tmp); freevalue(stack); ...
false
false
false
false
false
0
command(const char *fmt, const char *param) { const char *msg = fmt; if (timeout) alarm(timeout); if (msg) { msg = xasprintf(fmt, param); printf("%s\r\n", msg); } fflush_all(); return msg; }
false
false
false
false
false
0
del_mdas(struct dm_list *mdas) { struct dm_list *mdah, *tmp; struct metadata_area *mda; dm_list_iterate_safe(mdah, tmp, mdas) { mda = dm_list_item(mdah, struct metadata_area); dm_free(mda->metadata_locn); dm_list_del(&mda->list); dm_free(mda); } }
false
false
false
false
false
0
BuildGeometry( unsigned int surface, unsigned int colorScheme, unsigned int subdivisions, unsigned int xyRatio ){ long i,j, index; long maxI = subdivisions * xyRatio, maxJ = subdivisions; double u, v, delta=0.001; double p1[3]; double p2[3]; double p[3]; double q[3]; SGFaceList *f; // set val...
false
false
false
false
false
0
external_toolbar_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_External_Param *param) { Elm_Toolbar_Shrink_Mode shrink_mode; if (!strcmp(param->name, "icon size")) { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT) { elm_toolbar_icon_size_set(obj, param->i); ...
false
false
false
false
false
0
setYear( int newYear ) { if( !m_collection ) return; MediaDeviceYearPtr yearPtr; MediaDeviceTrackPtr track( this ); YearMap yearMap = m_collection.data()->memoryCollection()->yearMap(); // do cleanup of soon to be previous year yearPtr = m_year; if ( !yearPtr.isNull() ) { ...
false
false
false
false
false
0
zecho(i_ctx_t *i_ctx_p) { os_ptr op = osp; check_type(*op, t_boolean); /****** NOT IMPLEMENTED YET ******/ pop(1); return 0; }
false
false
false
false
false
0
add_conv_candidate (struct z_candidate **candidates, tree fn, tree obj, tree first_arg, const vec<tree, va_gc> *arglist, tree access_path, tree conversion_path, tsubst_flags_t complain) { tree totype = TREE_TYPE (TREE_TYPE (fn)); int i, len, viable, flags; tree parmlist, parmnode; conversion *...
false
false
false
false
false
0
TXT_SetWidgetFocus(TXT_UNCAST_ARG(widget), int focused) { TXT_CAST_ARG(txt_widget_t, widget); if (widget == NULL) { return; } if (widget->focused != focused) { widget->focused = focused; if (widget->widget_class->focus_change != NULL) { widget->widg...
false
false
false
false
false
0
gtkstock_create_button( GtkWidget *widget, GtkAccelGroup *accel, const gtkstock_button *button ) { GtkWidget *btn; gboolean link_object = ( button->label[0] == '!' ); gboolean is_stock = !strncmp( button->label, "gtk-", 4 ); if( !accel ) accel = gtkstock_add_accel_group (widget); if( is_stock ) { btn...
false
false
false
false
false
0
ADDON_Cleanup() { delete GUI; delete PVR; delete XBMC; delete CODEC; GUI = NULL; PVR = NULL; XBMC = NULL; CODEC = NULL; }
false
false
false
false
false
0
ff_random(ft_ull n) { static bool initialized = false; if (!initialized) { initialized = true; ff_misc_random_init(time(NULL)); } ft_ull r; if (n == 0) return 0; if (n < RAND_MAX) { ft_ull max = RAND_MAX - (RAND_MAX % (n + 1)); do { r = ff_mis...
false
false
false
false
false
0
vrFilter_free( Operation *op, ValuesReturnFilter *vrf ) { ValuesReturnFilter *p, *next; if ( vrf == NULL ) { return; } for ( p = vrf; p != NULL; p = next ) { next = p->vrf_next; switch ( vrf->vrf_choice & SLAPD_FILTER_MASK ) { case LDAP_FILTER_PRESENT: break; case LDAP_FILTER_EQUALITY: case LDAP_...
false
false
false
false
false
0
unchain_one_value (cselib_val *v) { while (v->addr_list) unchain_one_elt_list (&v->addr_list); pool_free (cselib_val_pool, v); }
false
false
false
false
false
0
nut_snmp_set(const char *OID, char type, const char *value) { int status; bool_t ret = FALSE; struct snmp_pdu *pdu, *response = NULL; oid name[MAX_OID_LEN]; size_t name_len = MAX_OID_LEN; upsdebugx(1, "entering nut_snmp_set (%s, %c, %s)", OID, type, value); if (!snmp_parse_oid(OID, name, &name_len)) { upslog...
false
false
false
false
false
0
RegisterHost(const shared_ptr<host::Host> &host) { Must(host); Must(!TheHost); TheHost = host; drainStagingArea(); }
false
false
false
false
false
0
slamZ(double z) { PaletteItemBase::slamZ(z); foreach (ItemBase * lkpi, m_layerKin) { lkpi->slamZ(z); } }
false
false
false
false
false
0
nilfs_ioctl_trim_fs(struct inode *inode, void __user *argp) { struct the_nilfs *nilfs = inode->i_sb->s_fs_info; struct request_queue *q = bdev_get_queue(nilfs->ns_bdev); struct fstrim_range range; int ret; if (!capable(CAP_SYS_ADMIN)) return -EPERM; if (!blk_queue_discard(q)) return -EOPNOTSUPP; if (copy_...
false
false
false
false
false
0
getNFCInstance(UErrorCode &errorCode) { umtx_initOnce(nfcInitOnce, &initSingletons, "nfc", errorCode); return nfcSingleton!=NULL ? &nfcSingleton->comp : NULL; }
false
false
false
false
false
0
eventOK () { setAnswer ( AP_Dialog_Annotation::a_OK ) ; // TODO: gather data const char * txt = NULL ; GRAB_ENTRY_TEXT(Title); GRAB_ENTRY_TEXT(Author); GtkTextIter start, end; GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (m_textDescription)); gtk_text_buffer_get_iter_at_offset ( buffe...
false
false
false
false
false
0
gst_rtsp_session_free_media (GstRTSPSessionMedia * media, GstRTSPSession * session) { guint size, i; size = media->streams->len; GST_INFO ("free session media %p", media); gst_rtsp_session_media_set_state (media, GST_STATE_NULL); for (i = 0; i < size; i++) { GstRTSPSessionStream *stream; stre...
false
false
false
false
false
0
evm_inode_post_removexattr(struct dentry *dentry, const char *xattr_name) { if (!evm_initialized || !evm_protected_xattr(xattr_name)) return; evm_update_evmxattr(dentry, xattr_name, NULL, 0); }
false
false
false
false
false
0
eat_gates(void) { register struct net_t *np; register int32 pi, ni; register struct tfrec_t *tfrp; int32 some_eaten, first_time, wlen; word32 *wp; struct mod_t *mdp; struct tfarg_t *tfap; /* first mark all wires in design that are undeletable */ for (mdp = __modhdr; mdp != NULL; mdp = mdp->mnxt) { if (md...
false
false
false
false
false
0
compare3(struct PointValue *RealPos, gint i, gint j, gint orderv) { if (orderv == 1) { if (RealPos[i].Xv < RealPos[j].Xv) return (-1); else return (1); } else { if (RealPos[i].Yv < RealPos[j].Yv) return (-1); else return (1); } }
false
false
false
false
false
0
clear_internal_type (def) struct internal_type *def; { struct internal_type *cyclic_pointer; if (POINTER_P(def) && NULL != (cyclic_pointer = cyclic_def (def, def->output))) cyclic_pointer->output = NULL; if (NULL != def->input) clear_internal_type (def->input); if (NULL != def->arity) cle...
false
false
false
false
false
0
SV_saved_scores() { char *buf_token; buf_token = get_token(NULL); if ((strcasecmp(buf_token, "TRUE") == 0) || (strcasecmp(buf_token, "YES") == 0) || (strcasecmp(buf_token, "T") == 0) || (strcasecmp(buf_token, "Y") == 0) || ((isdigit(buf_token[0])) && (strcmp(buf_token, "0") != 0))) { ...
false
false
false
false
false
0
aat2870_ldo_is_enabled(struct regulator_dev *rdev) { struct aat2870_regulator *ri = rdev_get_drvdata(rdev); struct aat2870_data *aat2870 = ri->aat2870; u8 val; int ret; ret = aat2870->read(aat2870, ri->enable_addr, &val); if (ret) return ret; return val & ri->enable_mask ? 1 : 0; }
false
true
false
false
true
1
TotSlots() { #if 0 if (CAdunanzAUtilities::AduDebt()) return (int)(CAdunanzAUtilities::SetSlots() * 1.5f); else return CAdunanzAUtilities::SetSlots(); #endif /* // return CPreferences::ADU_GetMaxUpSlots(); // calcolo l'attuale upload rate massimo uint32 maxUpDataRate = CAdunanzAUtilities::getAllowedUpload...
false
false
false
false
false
0
git_default_config(const char *var, const char *value, void *dummy) { if (!prefixcmp(var, "core.")) return git_default_core_config(var, value); if (!prefixcmp(var, "user.")) return git_default_user_config(var, value); if (!prefixcmp(var, "i18n.")) return git_default_i18n_config(var, value); if (!prefixcmp(...
false
false
false
false
false
0
ReadPair( CPLString &osName, CPLString &osValue ) { osName = ""; osValue = ""; if( !ReadWord( osName ) ) return FALSE; SkipWhite(); if( EQUAL(osName,"END") ) return TRUE; if( *pszHeaderNext != '=' ) { // ISIS3 does not have anything after the end group/object key...
false
false
false
false
false
0
arg_type_tuple(jl_value_t **args, size_t nargs) { jl_tuple_t *tt = jl_alloc_tuple(nargs); JL_GC_PUSH(&tt); size_t i; for(i=0; i < tt->length; i++) { jl_value_t *a; if (jl_is_nontuple_type(args[i])) { //*** a = (jl_value_t*)jl_wrap_Type(args[i]); } else { ...
false
false
false
false
false
0
PlayPrev() { GDK_THREADS_LEAVE(); playlist->Pause(); playlist->Prev(); playlist->UnPause(); GDK_THREADS_ENTER(); }
false
false
false
false
false
0
history_search_internal (string, direction, anchored) char *string; int direction, anchored; { register int i, reverse; register char *line; register int line_index; int string_len; i = history_offset; reverse = (direction < 0); /* Take care of trivial cases first. */ if (!history_length ||...
false
false
false
false
false
0
point_add_or_double_vartime( felem x_out, felem y_out, felem z_out, const felem x1, const felem y1, const felem z1, const felem x2, const felem y2, const felem z2) { felem z1z1, z1z1z1, z2z2, z2z2z2, s1, s2, u1, u2, h, i, j, r, rr, v, tmp; char x_equal, y_equal; felem_square(z1z1, z1); fele...
false
false
false
false
false
0
network_connection_do_write(Network_connection *con) { int ret,size; if (con->bytes_sent < 0) { NETDEBUG("Writing packet size on fd %d",con->fd); size = htonl(con->outp->size); ret = network_connection_do_send(con, &size + con->bytes_sent + sizeof(uint32_t), ...
false
false
false
false
false
0
PyFrame_BlockPop(PyFrameObject *f) { PyTryBlock *b; if (f->f_iblock <= 0) Py_FatalError("XXX block stack underflow"); b = &f->f_blockstack[--f->f_iblock]; return b; }
false
false
false
false
false
0
update_meter(struct acpi_power_meter_resource *resource) { unsigned long long data; acpi_status status; unsigned long local_jiffies = jiffies; if (time_before(local_jiffies, resource->sensors_last_updated + msecs_to_jiffies(resource->caps.sampling_time)) && resource->sensors_valid) return 0; status = acp...
false
false
false
false
false
0
snd_timer_dev_disconnect(struct snd_device *device) { struct snd_timer *timer = device->device_data; struct snd_timer_instance *ti; mutex_lock(&register_mutex); list_del_init(&timer->device_list); /* wake up pending sleepers */ list_for_each_entry(ti, &timer->open_list_head, open_list) { /* FIXME: better to ha...
false
false
false
false
false
0