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
CDB___ham_groupalloc_print(notused1, dbtp, lsnp, notused2, notused3) DB_ENV *notused1; DBT *dbtp; DB_LSN *lsnp; int notused2; void *notused3; { __ham_groupalloc_args *argp; u_int32_t i; u_int ch; int ret; i = 0; ch = 0; notused1 = NULL; notused2 = 0; notused3 = NULL; if ((ret = CDB___ham_groupalloc_rea...
false
false
false
false
false
0
nm_udev_manager_init (NMUdevManager *self) { NMUdevManagerPrivate *priv = NM_UDEV_MANAGER_GET_PRIVATE (self); const char *subsys[4] = { "rfkill", "net", "atm", NULL }; GList *switches, *iter; guint32 i; for (i = 0; i < RFKILL_TYPE_MAX; i++) priv->rfkill_states[i] = RFKILL_UNBLOCKED; priv->client = g_udev_clie...
true
true
false
false
false
1
ippNewRequest(ipp_op_t op) /* I - Operation code */ { ipp_t *request; /* IPP request message */ cups_lang_t *language; /* Current language localization */ static int request_id = 0; /* Current request ID */ static _cups_mutex_t request_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for request ID */ DE...
false
false
false
false
false
0
getNextProgramCharDistance(const string &line, int i) const { bool inComment = false; int remainingCharNum = line.length() - i; int charDistance; char ch; for (charDistance = 1; charDistance < remainingCharNum; charDistance++) { ch = line[i + charDistance]; if (inComment) { if (line.compare(i + charDi...
false
false
false
false
false
0
gt_graphics_save_to_stream(const GtGraphics *g, GtStr *stream) { gt_assert(g && g->c_class); gt_rwlock_wrlock(g->pvt->lock); g->c_class->save_to_stream(g, stream); gt_rwlock_unlock(g->pvt->lock); }
false
false
false
false
false
0
fwdUnregister(int fd, FwdState * fwdState) { debug(17, 3) ("fwdUnregister: %s\n", storeUrl(fwdState->entry)); assert(fd == fwdState->server_fd); assert(fd > -1); commSetDefer(fd, NULL, NULL); if (EBIT_TEST(fwdState->entry->flags, ENTRY_DEFER_READ)) storeResumeRead(fwdState->entry); comm_remove_...
false
false
false
false
false
0
gm_backend_error(int errno, const char* str1, const char* str2) { gm_print_error_header(); if (curr_file != NULL) printf("%s:", curr_file); switch (errno) { case GM_ERROR_FILEWRITE_ERROR: printf("cannot open file %s for write\n", str1); break; case GM_ERROR_GPS_NUM_PR...
false
false
false
false
false
0
lis3l02dq_read_thresh(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, enum iio_event_type type, enum iio_event_direction dir, enum iio_event_info info, int *val, int *val2) { int ret; ret = lis3l02dq_read_reg_s16(indio_dev, LIS3L02DQ_REG_THS_L_ADDR, val); if (ret) return ret;...
false
false
false
false
false
0
unexecute() { QListIterator<K3Command *> it( d->commands ); it.toBack(); while ( it.hasPrevious() ) { it.previous()->unexecute(); } }
false
false
false
false
false
0
get_print_info(int type) { struct print_info printinfo; printinfo.ndo_type = 1; printinfo.ndo = gndo; printinfo.p.ndo_printer = lookup_ndo_printer(type); if (printinfo.p.ndo_printer == NULL) { printinfo.p.printer = lookup_printer(type); printinfo.ndo_type = 0; if (printinfo.p.printer == NULL) { gndo->ndo...
false
false
false
false
false
0
redraw_window(struct widget *pWindow) { int ret; SDL_Color title_bg_color = {255, 255, 255, 200}; SDL_Surface *pTmp = NULL; SDL_Rect dst = pWindow->size; ret = (*baseclass_redraw)(pWindow); if (ret != 0) { return ret; } /* Draw theme */ clear_surface(pWindow->dst->surface, &dst); alphabli...
false
false
false
false
false
0
ui_pay_comboboxentry_get_key(GtkComboBox *entry_box) { gchar *name; Payee *item; name = ui_pay_comboboxentry_get_name(entry_box); item = da_pay_get_by_name(name); g_free(name); if( item != NULL ) return item->key; return -1; }
false
false
false
false
false
0
pkix_VerifyNode_DuplicateHelper( PKIX_VerifyNode *original, PKIX_VerifyNode *parent, PKIX_VerifyNode **pNewNode, void *plContext) { PKIX_UInt32 numChildren = 0; PKIX_UInt32 childIndex = 0; PKIX_List *children = NULL; /* List of PKIX_VerifyNode */ PKIX_Veri...
false
false
false
false
false
0
costString(EventTypeSet* m) { return QString("%1, Calls %2") .arg(ProfileCostArray::costString(m)) .arg(_callCount.pretty()); }
false
false
false
false
false
0
gst_qtdemux_convert_seek (GstPad * pad, GstFormat * format, GstSeekType cur_type, gint64 * cur, GstSeekType stop_type, gint64 * stop) { gboolean res; g_return_val_if_fail (format != NULL, FALSE); g_return_val_if_fail (cur != NULL, FALSE); g_return_val_if_fail (stop != NULL, FALSE); if (*format == GST_FO...
false
false
false
false
false
0
DumpSynonyms(Synonym syns) { register Synonym s; register int count; /* NUMBER_OF_SYNONYMS */ count = 0; for (s = syns; s; s = s->synnext) count++; fprintf(ofp, "%2.2x ", count); /* list of synonyms */ for (s = syns; s; s = s->synnext) { if (s->adjclass) fprintf(ofp, "%s%s ", ...
false
false
false
false
false
0
ceph_arch_intel_probe(void) { /* i know how to check this on x86_64... */ unsigned int eax = 1, ebx, ecx, edx; do_cpuid(&eax, &ebx, &ecx, &edx); if ((ecx & CPUID_PCLMUL) != 0) { ceph_arch_intel_pclmul = 1; } if ((ecx & CPUID_SSE42) != 0) { ceph_arch_intel_sse42 = 1; } if ((ecx & CPUID_SSE41) != 0) { ceph_...
false
false
false
false
false
0
jpc_unk_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_stream_t *in) { jpc_unk_t *unk = &ms->parms.unk; /* Eliminate compiler warning about unused variables. */ cstate = 0; if (ms->len > 0) { if (!(unk->data = jas_malloc(ms->len * sizeof(unsigned char)))) { return -1; } if (jas_stream_read(in, (char *)...
false
false
false
false
false
0
intvector_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status) { struct SResource *res = res_open(bundle, tag, comment, status); if (U_FAILURE(*status)) { return NULL; } res->fType = URES_INT_VECTOR; res->u.fIntVector.fCount = 0; res->u.fIntVe...
false
false
false
false
false
0
gnuplot_pdf_terminal (void) { static int ret = -1; if (ret == -1) { int err = gnuplot_test_command("set term pdfcairo"); if (!err) { ret = GP_PDF_CAIRO; } else { err = gnuplot_test_command("set term pdf"); if (!err) { ret = GP_PDF_PDFLIB; } else { ret = GP_PDF_NONE; } } } ...
false
false
false
false
false
0
match_explicit_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail, struct refspec *rs, int rs_nr) { int i, errs; for (i = errs = 0; i < rs_nr; i++) errs += match_explicit(src, dst, dst_tail, &rs[i]); return errs; }
false
false
false
false
false
0
readHeader(bool ListFileMode){ char JUNK [40]; char testFileName [DBDataFileNameLen]; if(ListFileMode == true){ ifstream textFile(listFileName); textFile >> testFileName; } else strcpy(testFileName,listFileName); ifstream infile(testFileName); bool cellCenter = false; while(infile.good()){ infile >> JU...
false
false
false
false
false
0
sort_registered_by_n_attrs (gconstpointer a, gconstpointer b) { const GcrRegistered *ra = a; const GcrRegistered *rb = b; gulong na, nb; g_assert (a); g_assert (b); na = gck_attributes_count (ra->attrs); nb = gck_attributes_count (rb->attrs); /* Note we're sorting in reverse order */ if (na < nb) return 1...
false
false
false
false
false
0
ecore_file_monitor_inotify_shutdown(void) { int fd; while(_monitors) ecore_file_monitor_inotify_del(_monitors); if (_fdh) { fd = ecore_main_fd_handler_fd_get(_fdh); ecore_main_fd_handler_del(_fdh); close(fd); } _inotify_fd_pid = -1; return 1; }
false
false
false
false
false
0
complete_transfer(struct iax_session *session, int peercallno, int xfr2peer, int preserveSeq) { jb_frame frame; session->peercallno = peercallno; /* Change from transfer to session now */ if (xfr2peer) { memcpy(&session->peeraddr, &session->transfer, sizeof(session->peeraddr)); memset(&session->transfer, 0, si...
false
true
false
false
false
1
plotdot(long ix, long iy) { /* plot one dot at ix, iy */ long ix0, iy0, iy1 = 0, iy2 = 0; iy0 = strptop - iy; if ((unsigned)iy0 > strpdeep || ix <= 0 || ix > strpwide) return; empty = false; ix0 = ix; switch (plotter) { case citoh: iy1 = 1; iy2 = iy0; break; case epson: iy1 = 1;...
false
false
false
false
true
1
isPCRelativeRel(unsigned RelTy) const { if (is64Bit) { switch(RelTy) { case R_X86_64_PC32: return true; case R_X86_64_32: case R_X86_64_32S: case R_X86_64_64: return false; default: llvm_unreachable("unknown x86_64 relocation type"); } } else { switch(Re...
false
false
false
false
false
0
get_line_and_offset_from_text(const gchar *text, gint *line_no, gint *offset) { if (*text == '+' || *text == '-') { *line_no = atoi(text + 1); *offset = (*text == '+') ? 1 : -1; } else { *line_no = atoi(text) - 1; *offset = 0; } }
false
false
false
false
true
1
ReadTokenFromStdin( void *theEnv, struct token *theToken) { char *inputString; unsigned inputStringSize; int inchar; /*=============================================*/ /* Continue processing until a token is found. */ /*=============================================*/ theToken->type = STOP; ...
false
false
false
false
false
0
print_all_file_descs(const char *fname, list_info_t* list_opts, /* for print_SDattrs */ int32 an_id) { /* file desc */ int32 len; char *desc = NULL; int32 ann_id = FAIL; intn i; int32 n_file_label; int32 n_file_d...
false
false
false
false
false
0
Class_toString(CTX ctx, ksfp_t *sfp _RIX) { kClass *c = sfp[0].c; RETURN_(c->cTBL->sname); }
false
false
false
false
false
0
addHeaderLine( int y, const ASCString& name ) { PG_Rect f( 10, y, Width() - 20, 25 ); new PG_Label( this, PG_Rect( f.x, f.y, 50, f.h ), name ); Emboss* emb = new Emboss( this, PG_Rect( f.x + 50, f.y, f.w - 50, f.h ), true ); return new PG_Label( emb, PG_Rect( 2, 2, emb->w - 4,...
false
false
false
false
false
0
hostfile_parse(const char *hostfile, opal_list_t* updates, opal_list_t* exclude, bool keep_all) { int token; int rc = ORTE_SUCCESS; cur_hostfile_name = hostfile; orte_util_hostfile_done = false; orte_util_hostfile_in = fopen(hostfile, "r"); if (NULL == orte_util_hostfile_in) { if ...
false
false
false
false
true
1
emboss_getoptions(char *pgm, int argc, char *argv[]) { AjPStr matrixtype = NULL; long inseed0=0; minev = false; global = false; jumble = false; njumble = 1; lengths = false; lower = false; negallowed = false; outgrno = 1; outgropt = false; power = 2.0; replicates = false; trout = true; u...
false
false
false
false
false
0
soap_in_ns1__divResponse(struct soap *soap, const char *tag, struct ns1__divResponse *a, const char *type) { size_t soap_flag_result = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct ns1__divResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__divResponse, sizeof(struct ns1__divRes...
false
false
false
false
false
0
Perl_magic_clearpack(pTHX_ SV *sv, MAGIC *mg) { PERL_ARGS_ASSERT_MAGIC_CLEARPACK; if (mg->mg_type == PERL_MAGIC_tiedscalar) return 0; return magic_methpack(sv,mg,"DELETE"); }
false
false
false
false
false
0
ultoa_r(unsigned long n, char *buffer, int size) { char *pos; pos = buffer + size - 1; *pos-- = '\0'; do { *pos-- = '0' + n % 10; n /= 10; } while (n && pos >= buffer); return pos + 1; }
false
false
false
false
false
0
do_monstr() { register struct permonst *ptr; register int i, j; /* * create the source file, "monstr.c" */ filename[0]='\0'; #ifdef FILE_PREFIX Strcat(filename, file_prefix); #endif Sprintf(eos(filename), SOURCE_TEMPLATE, MON_STR_C); if (!(ofp = fopen(filename, WRTMODE))) { perro...
false
false
false
false
true
1
cache_get_meta_playlist_revision(){ unsigned int revision; /* Build cache filename. */ snprintf(cache_filename, PATH_MAX, "%s/meta_playlist_revision", cache_directory); /* Try to open file for reading. */ FILE *file = fopen(cache_filename, "r"); if(!file){ DSFYDEBUG("Error opening fil...
false
false
false
false
true
1
copy_replacements (rtx x, rtx y) { /* We can't support X being a SUBREG because we might then need to know its location if something inside it was replaced. */ if (GET_CODE (x) == SUBREG) abort (); copy_replacements_1 (&x, &y, n_replacements); }
false
false
false
false
false
0
gx_final_Separation(const gs_color_space * pcs) { rc_adjust_const(pcs->params.separation.map, -1, "gx_adjust_Separation"); }
false
false
false
false
false
0
disable_pubkey_algo (int algorithm) { gcry_module_t pubkey; ath_mutex_lock (&pubkeys_registered_lock); pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm); if (pubkey) { if (! (pubkey-> flags & FLAG_MODULE_DISABLED)) pubkey->flags |= FLAG_MODULE_DISABLED; _gcry_module_release (pubk...
false
false
false
false
false
0
regulator_unregister(struct regulator_dev *rdev) { if (rdev == NULL) return; if (rdev->supply) { while (rdev->use_count--) regulator_disable(rdev->supply); regulator_put(rdev->supply); } mutex_lock(&regulator_list_mutex); debugfs_remove_recursive(rdev->debugfs); flush_work(&rdev->disable_work.work); WA...
false
false
false
false
false
0
main (int argc, char *argv[]) { ASSERT (getdtablesize () >= 3); return 0; }
false
false
false
false
false
0
udbg_escape(const UnicodeString &src, UnicodeString *dst) { dst->remove(); for (int32_t i = 0; i < src.length(); ++i) { UChar c = src[i]; if(ICU_Utility::isUnprintable(c)) { *dst += UnicodeString("["); ICU_Utility::escapeUnprintable(*dst, c); *dst += UnicodeSt...
false
false
false
false
false
0
read_udp_packets(ares_channel channel, fd_set *read_fds, ares_socket_t read_fd, struct timeval *now) { struct server_state *server; int i; ssize_t count; unsigned char buf[PACKETSZ + 1]; #ifdef HAVE_RECVFROM ares_socklen_t fromlen; union { struct sockaddr sa; struct ...
true
true
false
false
false
1
prefetch(struct walker *walker, unsigned char *sha1) { struct object_request *newreq; struct object_request *tail; struct walker_data *data = walker->data; char *filename = sha1_file_name(sha1); newreq = xmalloc(sizeof(*newreq)); newreq->walker = walker; hashcpy(newreq->sha1, sha1); newreq->repo = data->alt; ...
false
false
false
false
true
1
SetDebugEventListener(v8::Handle<v8::Object> that, Handle<Value> data) { i::Isolate* isolate = i::Isolate::Current(); ON_BAILOUT(isolate, "v8::Debug::SetDebugEventListener()", return false); ENTER_V8(isolate); isolate->debugger()->SetEventListener(Utils::OpenHandle(*that), ...
false
false
false
false
false
0
_gth_grid_view_get_drop_target_at (GthGridView *self, int x, int y) { int row; int height; GList *scan; int items_per_line; int col; x += gtk_adjustment_get_value (self->priv->hadjustment); y += gtk_adjustment_get_value (self->priv->vadjustment); row = -1; height =...
false
false
false
false
false
0
ballfall() { boolean gets_hit; gets_hit = (((uball->ox != u.ux) || (uball->oy != u.uy)) && ((uwep == uball)? FALSE : (boolean)rn2(5))); if (carried(uball)) { pline("Startled, you drop the iron ball."); if (uwep == uball) setuwep((struct obj *)0); if (uswapwep == uball) setuswapwep((struct obj *)0)...
false
false
false
false
false
0
gnutls_x509_privkey_verify_data (gnutls_x509_privkey_t key, unsigned int flags, const gnutls_datum_t * data, const gnutls_datum_t * signature) { int result; if (key == NULL) { gnutls_assert (); return...
false
false
false
false
false
0
ahd_default_config(struct ahd_softc *ahd) { int targ; ahd->our_id = 7; /* * Allocate a tstate to house information for our * initiator presence on the bus as well as the user * data for any target mode initiator. */ if (ahd_alloc_tstate(ahd, ahd->our_id, 'A') == NULL) { printk("%s: unable to allocate ah...
false
false
false
false
false
0
getJointNumber(const c8* name) const { for (u32 i=0; i<AllJoints.size(); ++i) { if (AllJoints[i]->Name == name) return i; } return -1; }
false
false
false
false
false
0
MixinComputeOrder(Tcl_Interp *interp, XOTclObject *obj) { XOTclClasses *fullList, *checkList = NULL, *mixinClasses = NULL, *nextCl, *pl, *checker, *guardChecker; if (obj->mixinOrder) MixinResetOrder(obj); /*fprintf(stderr, "Mixin Order:\n First List: ");*/ /* append per-obj mixins */ if (obj->opt) { ...
false
false
false
false
false
0
notify_push(unsigned int event_type, u32 controller) { struct capictr_event *event = kmalloc(sizeof(*event), GFP_ATOMIC); if (!event) return -ENOMEM; INIT_WORK(&event->work, do_notify_work); event->type = event_type; event->controller = controller; queue_work(kcapi_wq, &event->work); return 0; }
false
false
false
false
false
0
schedule_directory_contents_update (NemoPropertiesWindow *window) { g_assert (NEMO_IS_PROPERTIES_WINDOW (window)); if (window->details->update_directory_contents_timeout_id == 0) { window->details->update_directory_contents_timeout_id = g_timeout_add (DIRECTORY_CONTENTS_UPDATE_INTERVAL, update_directory_c...
false
false
false
false
false
0
imx_phy_reg_write(u16 val, void __iomem *mmio) { u32 crval = val; int ret; /* Supply the data on cr_data_in */ writel(crval, mmio + IMX_P0PHYCR); /* Assert the cr_cap_data signal */ ret = imx_phy_crbit_assert(mmio, IMX_P0PHYCR_CR_CAP_DATA, true); if (ret) return ret; /* Deassert cr_cap_data */ ret = imx_p...
false
false
false
false
false
0
IPrcWrite(pfPrcHelper* prc) { plMessage::IPrcWrite(prc); prc->writeSimpleTag("EventCallbackSetups"); for (size_t i=0; i<fCallbacks.getSize(); i++) { prc->startTag("Callback"); prc->writeParam("Marker", fCallbacks[i].fMarker); prc->writeParam("User", fCallbacks[i].fUser); prc...
false
false
false
false
false
0
_rl_init_file_error (msg) const char *msg; { if (currently_reading_init_file) _rl_errmsg ("%s: line %d: %s\n", current_readline_init_file, current_readline_init_lineno, msg); else _rl_errmsg ("%s", msg); }
false
false
false
false
false
0
_swrast_span_interpolate_z( const struct gl_context *ctx, SWspan *span ) { const GLuint n = span->end; GLuint i; ASSERT(!(span->arrayMask & SPAN_Z)); if (ctx->DrawBuffer->Visual.depthBits <= 16) { GLfixed zval = span->z; GLuint *z = span->array->z; for (i = 0; i < n; i++) { z[i...
false
false
false
false
false
0
getConsecutiveDirection() const { if (StepValue && (StepValue->isOne() || StepValue->isMinusOne())) return StepValue->getSExtValue(); return 0; }
false
false
false
false
false
0
PyCMOR_time_varying_grid_coordinate(PyObject *self,PyObject *args) { int ierr,grid_id,coord_var_id; char *table_entry; char *units; char type; double missing; PyObject *missing_obj; void *pass_missing; /* HUGE assumtion here is that the data is contiguous! */ if (!PyArg_ParseTuple(args,"isscO",&grid_i...
false
false
false
false
false
0
acl__reset_cached_result (struct acl_pblock *aclpb ) { int j; for (j =0; j < aclpb->aclpb_last_cache_result; j++) { /* Unless we have to clear the result, move on */ if (!( aclpb->aclpb_cache_result[j].aci_ruleType & ACI_CACHE_RESULT_PER_ENTRY)) continue; aclpb->aclpb_cache_result[j].result = 0; } }
false
false
false
false
true
1
append_media_renderer_to_tree (GUPnPDeviceProxy *proxy, GUPnPServiceProxy *av_transport, GUPnPServiceProxy *rendering_control, const char *udn) { GUPnPDeviceInfo *info; GtkComboBox *combo; ...
false
false
false
false
false
0
tunnel_mod (int i, int x ATTRIBUTE_UNUSED, int y) { if (y > 126 && y < 133 && tempd != DONT_WRAP) level_map[i].info.tunnel.output = tempd; }
false
false
false
false
false
0
dap_get_record(char *rec, int reclen) { if (verbose > 2) DAPLOG((LOG_INFO, "in dap_get_record()\n")); dap_message *m = dap_message::read_message(conn,true); if (m) { if (m->get_type() == dap_message::STATUS) { dap_status_message *sm = (dap_status_message *)m; if ( (sm->get_code() & 0xFF) ==...
false
false
false
false
true
1
read_metadata_vorbiscomment_(FLAC__StreamDecoder *decoder, FLAC__StreamMetadata_VorbisComment *obj) { FLAC__uint32 i; FLAC__ASSERT(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input)); /* read vendor string */ FLAC__ASSERT(FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN == 32); if(!FLAC__bit...
false
false
false
false
false
0
ft_acl_get(struct ft_tpg *tpg, struct fc_rport_priv *rdata) { struct ft_node_acl *found = NULL; struct ft_node_acl *acl; struct se_portal_group *se_tpg = &tpg->se_tpg; struct se_node_acl *se_acl; mutex_lock(&se_tpg->acl_node_mutex); list_for_each_entry(se_acl, &se_tpg->acl_node_list, acl_list) { acl = containe...
false
false
false
false
false
0
process( double* src, unsigned int len, vector<int> &onsets ) { if (len < 4) return; vector <double> m_maxima; // Signal conditioning m_DFSmoothing->process( src, m_workBuffer ); for( unsigned int u = 0; u < len; u++) { m_maxima.push_back( m_workBuffer[ u ] ); } quadEval( m_ma...
false
false
false
false
false
0
endUndoGroup(DocIterator const & cur) { endUndoGroup(); if (!d->undostack_.empty() && !d->undostack_.top().cur_after.size()) d->undostack_.top().cur_after = cur; }
false
false
false
false
false
0
InvertProperties(uint64 inprops) { uint64 outprops = (kExpanded | kMutable | kError | kAcceptor | kNotAcceptor | kEpsilons | kNoEpsilons | kWeighted | kUnweighted | kCyclic | kAcyclic | kInitialCyclic | kInitialAcyclic | kTopSorted | kNotTopSorted | ...
false
false
false
false
false
0
ganv_canvas_base_set_center_scroll_region(GanvCanvasBase* canvas, gboolean center_scroll_region) { g_return_if_fail(GANV_IS_CANVAS_BASE(canvas)); canvas->center_scroll_region = center_scroll_region != 0; scroll_to(canvas, canvas->layout.hadjustment->value, canvas->layout.vadjustment->value); ...
false
false
false
false
false
0
set_undef(val_set& s) { value *undefined = get_undef_value(); if (!undefined->gvn_source) vt.add_value(undefined); val_set &vs = s; for (val_set::iterator I = vs.begin(*this), E = vs.end(*this); I != E; ++I) { value *v = *I; assert(!v->is_readonly() && !v->is_rel()); v->gvn_source = undefined->gvn_sourc...
false
false
false
false
false
0
output(const Char *s, size_t n, OutputByteStream *sb) { for (; n > 0; s++, n--) { Char c = *s; unsigned short mask = (unsigned short)(c & 0x8080); if (mask == 0) sb->sputc((unsigned char)(c & 0xff)); else if (mask == 0x8080) { unsigned char c1 = (c >> 8) & 0x7f; unsigned char c2 = c ...
false
false
false
false
false
0
smp_fetch_fhdr(struct proxy *px, struct session *l4, void *l7, unsigned int opt, const struct arg *args, struct sample *smp, const char *kw) { struct http_txn *txn = l7; struct hdr_idx *idx = &txn->hdr_idx; struct hdr_ctx *ctx = smp->ctx.a[0]; const struct http_msg *msg = ((opt & SMP_OPT_DIR) == SMP_...
false
false
false
false
false
0
add_action (const std::string icon, const std::string label, const boost::function0<void> callback) { GtkWidget *item = NULL; GtkWidget *image = NULL; const std::string gtk_icon = convert_icon_to_gtk (icon); Action *action = new Action (callback); nbr_elements++; last_was_separator = false; ...
false
false
false
false
false
0
perm_read(struct policydb *p, struct hashtab *h, void *fp) { char *key = NULL; struct perm_datum *perdatum; int rc; __le32 buf[2]; u32 len; rc = -ENOMEM; perdatum = kzalloc(sizeof(*perdatum), GFP_KERNEL); if (!perdatum) goto bad; rc = next_entry(buf, fp, sizeof buf); if (rc) goto bad; len = le32_to_cp...
false
false
false
false
false
0
qrt_patch_computed(struct bgtask *unused_h, void *unused_u, bgstatus_t status, void *arg) { struct qrt_patch_context *ctx = arg; GSList *sl; (void) unused_h; (void) unused_u; g_assert(ctx->magic == QRT_PATCH_MAGIC); g_assert(ctx == qrt_patch_ctx); g_assert(ctx->rpp != NULL); if (qrp_debugging(1)) g_debug("...
false
false
false
false
false
0
ds1685_rtc_print_regs(u8 hex, char *dest) { u32 i, j; char *tmp = dest; for (i = 0; i < NUM_BITS; i++) { *tmp++ = ((hex & 0x80) != 0 ? '1' : '0'); for (j = 0; j < NUM_SPACES; j++) *tmp++ = ' '; hex <<= 1; } *tmp++ = '\0'; return dest; }
false
false
false
false
false
0
dcc_append (struct DCC *dcc, GtkListStore *store, gboolean prepend) { GtkTreeIter iter; if (prepend) gtk_list_store_prepend (store, &iter); else gtk_list_store_append (store, &iter); if (dcc->type == TYPE_RECV) dcc_prepare_row_recv (dcc, store, &iter, FALSE); else dcc_prepare_row_send (dcc, store, &iter,...
false
false
false
false
false
0
get_layer_tlg_car_info(TlgDlgCarLayer *layer) { Block *outer = layer->block; Block *bpt = find_car_head_block(outer), *bpt_head; IntSet tlg_car_set; List *car_sample = NULL, *li; int max_tlg_no = get_max_tlg_no0(outer); int car_num, car_length, max_car_num; construct_IntSet(tlg_car_set, max...
false
false
false
false
false
0
make_dirname(const char *filepath) { char *dirname; int dirname_length; char *p; if ( !(p=strrchr(filepath, DIRSEP_C)) ) #ifdef HAVE_DRIVE_LETTERS if ( !(p=strrchr(filepath, '\\')) ) if ( !(p=strrchr(filepath, ':')) ) #endif { return xstrdup(EXTSEP_S); } dirname_length = p-f...
false
false
false
false
false
0
printProgressBar(bool* running, int* error, progress_t* p) { const char* action = p->encrypt ? "Encrypting" : "Decrypting"; static struct winsize ws; const size_t term_width = ioctl(1, TIOCGWINSZ, &ws) >= 0 ? ws.ws_col : STD_TERM_WIDTH; const uint16_t bar_size = term_width - SUBTRACT_SIZE; double ra...
false
false
false
false
false
0
p_spw_prop_response(GtkWidget *widget , gint response_id , GapStbSecpropWidget *spw ) { GtkWidget *dlg; GapStbMainGlobalParams *sgpp; gboolean ok_flag; sgpp = spw->sgpp; switch (response_id) { case GAP_STORY_SECTION_RESPONSE_CREATE: p_c...
false
false
false
false
false
0
_assuan_system_hooks_copy (assuan_system_hooks_t dst, assuan_system_hooks_t src) { memset (dst, '\0', sizeof (*dst)); dst->version = ASSUAN_SYSTEM_HOOKS_VERSION; if (src->version >= 1) { dst->usleep = src->usleep; dst->pipe = src->pipe; dst->close = src->close; dst->read = src-...
false
true
false
false
true
1
post_fmt(unicap_format_t*fmt) { if(!fmt)return; debugPost("format %dx%d+%d+%d '%s' -> %d (%d[%d]/%d)", fmt->size.width, fmt->size.height, fmt->size.x, fmt->size.y, fmt->identifier, fmt->buffer_size, fmt->buffer_type, fmt->system_buffer_count, ...
false
false
false
false
false
0
admin_route_show(void *ctx, const char *cmd) { struct nhrp_peer_selector sel; memset(&sel, 0, sizeof(sel)); sel.type_mask = BIT(NHRP_PEER_TYPE_LOCAL_ROUTE); if (!admin_parse_selector(ctx, cmd, &sel)) return; admin_write(ctx, "Status: ok\n\n"); nhrp_peer_foreach(admin_show_peer, ctx, &sel); admin_free_selecto...
false
false
false
false
false
0
lrc_exists(CONNECTION *c, DBH *dbh, char **arglist) { int rc; if (!arglist[0] || !arglist[1]) { rrpc_error(c, GLOBUS_RLS_BADARG, ""); return; } if ((rc = db_exists(dbh->lrc, arglist[0], atoi(arglist[1]), c->errmsg)) != GLOBUS_RLS_SUCCESS) { rrpc_error(c, rc, "%s", c->errmsg); return; ...
false
false
false
false
false
0
tcp_connect(char *addr, int port, struct sockaddr_in *serv, int blocking) { struct sockaddr_in sv; int sock, optval = 1; if (serv == NULL) serv = &sv; if (!fill_sockaddr(serv, addr, port)) return -1; sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { LOGL(0, "tcp_connect failed: socket() %s", strerro...
false
false
false
false
false
0
disp_news_log(int refreshFlag) { int x=NEWS_BROWSE_X1+9; int y=NEWS_BROWSE_Y1+4; if( refreshFlag == INFO_REPAINT ) { browse_news.init( NEWS_BROWSE_X1, NEWS_BROWSE_Y1, NEWS_BROWSE_X2, NEWS_BROWSE_Y2, 0, 32, news_array.size(), put_news_rec, 1 ); browse_news.open(browse_news_recno); } else { browse_...
false
false
false
false
false
0
av_access(ventry *ve, int amode) { int res; struct avfs *avfs = ve->mnt->avfs; AVFS_LOCK(avfs); res = avfs->access(ve, amode); AVFS_UNLOCK(avfs); return res; }
false
false
false
false
true
1
addScheme(XAP_PrefsScheme * pNewScheme) { const gchar * szBuiltinSchemeName = getBuiltinSchemeName(); const gchar * szThisSchemeName = pNewScheme->getSchemeName(); if (strcmp(static_cast<const char*>(szThisSchemeName), static_cast<const char*>(szBuiltinSchemeName)) == 0) { UT_ASSERT(m_builtinScheme == NULL); ...
false
false
false
false
false
0
_nc_ungetmouse(SCREEN *sp, MEVENT * aevent) { int result = ERR; T((T_CALLED("ungetmouse(%p)"), aevent)); if (aevent != 0 && sp != 0) { MEVENT *eventp = sp->_mouse_eventp; /* stick the given event in the next-free slot */ *eventp = *aevent; /* bump the next-free pointer into the circular list */ sp-...
false
false
false
false
false
0
SummonGameObject(uint32 id, float x, float y, float z, float angle, uint32 despwtime) { GameObject* pGameObj = new GameObject; Map *map = GetMap(); if (!map) return NULL; if (!pGameObj->Create(map->GenerateLocalLowGuid(HIGHGUID_GAMEOBJECT), id, map, x, y, z, angle)) { delete pGame...
false
false
false
false
false
0
_evas_preload_thread_shutdown(void) { /* FIXME: If function are still running in the background, should we kill them ? */ #ifdef BUILD_ASYNC_PRELOAD Evas_Preload_Pthread_Worker *work; /* Force processing of async events. */ evas_async_events_process(); LKL(_mutex); while (_workers) { wor...
false
false
false
false
false
0
s5h1411_register_reset(struct dvb_frontend *fe) { struct s5h1411_state *state = fe->demodulator_priv; dprintk("%s()\n", __func__); return s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf3, 0); }
false
false
false
false
false
0
killcomment(struct Client* sptr, const char* filename) { FBFILE* file = 0; char line[80]; struct stat sb; struct tm* tm; if (NULL == (file = fbopen(filename, "r"))) { send_reply(sptr, ERR_NOMOTD); send_reply(sptr, SND_EXPLICIT | ERR_YOUREBANNEDCREEP, ":Connection from your ...
false
false
false
false
false
0
signal_to_av(int sig) { u32 perm = 0; switch (sig) { case SIGCHLD: /* Commonly granted from child to parent. */ perm = PROCESS__SIGCHLD; break; case SIGKILL: /* Cannot be caught or ignored */ perm = PROCESS__SIGKILL; break; case SIGSTOP: /* Cannot be caught or ignored */ perm = PROCESS__SIGSTOP; ...
false
false
false
false
false
0
flatten_instance_layer (instance, ancetre, comp_sym, origin_x, origin_y, layer_tail, layer_num) rdsins_list *instance; /* instance where there is rectangles to flatten */ rdsins_list *ancetre; /* first instance where the ring is defined */ char comp_sym; /* symetry comp of instances ...
false
false
false
false
false
0
gegl_node_dump_depends_on (GeglNode *self) { GSList *depends_on = gegl_node_get_depends_on (self); GSList *iter = NULL; g_print ("GeglNode %p depends on:\n", self); for (iter = depends_on; iter; iter = iter->next) { GeglNode *source_node = depends_on->data; g_print (" %s\n", gegl_node_g...
false
false
false
false
false
0