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
mono_debug_image_has_debug_info (MonoImage *image) { LookupImageData data; if (!mono_debug_handles) return FALSE; memset (&data, 0, sizeof (data)); data.image = image; mono_debugger_lock (); g_hash_table_foreach (mono_debug_handles, lookup_image_func, &data); mono_debugger_unlock (); return data.found; }
false
false
false
false
false
0
registerGroupInRE(RuleElement *re, FWObject *grp) { string key_str = getREKey(re); rule_element_groups[key_str].insert(grp->getName()); }
false
false
false
false
false
0
glist_setenabled(GGadget *g, int enabled ) { GList *gl = (GList *) g; if ( gl->vsb!=NULL ) _ggadget_setenabled(&gl->vsb->g,enabled); _ggadget_setenabled(g,enabled); }
false
false
false
false
false
0
get(const std::string key, int&value) { t_atom*a=get(key); if(a && A_FLOAT==a->a_type) { value=atom_getint(a); } }
false
false
false
false
false
0
e_ilist_selector_set(Evas_Object *obj, int selector) { API_ENTRY return; sd->selector = selector; }
false
false
false
false
false
0
tracker_status_get_progress (TrackerStatus* self) { gdouble result = 0.0; gdouble _tmp0_; #line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-status.vala" g_return_val_if_fail (self != NULL, 0.0); #line 105 "/home/martyn/Source/tracker/src/tracker-store/tracker-status.vala" _tmp0_ = self->priv->_progre...
false
false
false
false
false
0
ex_breakdel(eap) exarg_T *eap; { struct debuggy *bp, *bpi; int nr; int todel = -1; int del_all = FALSE; int i; linenr_T best_lnum = 0; garray_T *gap; gap = &dbg_breakp; if (eap->cmdidx == CMD_profdel) { #ifdef FEAT_PROFILE gap = &prof_ga; #else ex_ni(eap); return; #en...
false
false
false
false
false
0
player_save_target_and_weapon_link_prefs() { Player->save_flags = 0; if ( Player->flags & PLAYER_FLAGS_AUTO_TARGETING ) { Player->save_flags |= PLAYER_FLAGS_AUTO_TARGETING; } if ( Player->flags & PLAYER_FLAGS_AUTO_MATCH_SPEED ) { // multiplayer observers can't match target speed if(!((Game_mode & GM_MULTIPL...
false
false
false
false
false
0
init(const log4cplus::tstring& pattern_, bool formatEachLine_) { this->pattern = pattern_; this->formatEachLine = formatEachLine_; this->parsedPattern = PatternParser(pattern).parse(); // Let's validate that our parser didn't give us any NULLs. If it did, // we will convert them to a valid Pattern...
false
false
false
false
false
0
gdict_source_dialog_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GdictSourceDialog *dialog = GDICT_SOURCE_DIALOG (object); switch (prop_id) { case PROP_SOURCE_LOADER: set_source_loader (dialog, g_value_get_object (value)); ...
false
false
false
false
false
0
SetSpatialFilter( OGRGeometry * poGeomIn ) { GetLayerDefn(); if( InstallFilter( poGeomIn ) ) { bMustRunSpatialFilter = TRUE; ResetReading(); } }
false
false
false
false
false
0
init_xml_parser(struct tia_eegdev* tdev) { if (!(tdev->parser = XML_ParserCreate("UTF-8"))) return -1; XML_SetElementHandler(tdev->parser, start_xmlelt, end_xmlelt); return 0; }
false
false
false
false
false
0
Clone(FCDEntity* _clone, bool cloneChildren) const { FCDPhysicsModel* clone = NULL; if (_clone == NULL) _clone = clone = new FCDPhysicsModel(const_cast<FCDocument*>(GetDocument())); else if (_clone->HasType(FCDPhysicsModel::GetClassType())) clone = (FCDPhysicsModel*) _clone; Parent::Clone(_clone, cloneChildr...
false
false
false
false
false
0
ladish_room_get_template_uuid(ladish_room_handle room_handle, uuid_t uuid_ptr) { if (uuid_is_null(room_ptr->template_uuid)) { return false; } uuid_copy(uuid_ptr, room_ptr->template_uuid); return true; }
false
false
false
false
false
0
prtn_intxn_list_check(prtn_intxn_list_t* list, unsigned *pitxn, off_t start, size_t size) { prtn_intxn_node_t *new_node, *check_node; int ret = CL_CLEAN; *pitxn = list->Size; check_node = list->Head; while (check_node != NULL) { (*pitxn)--; if (start > check_node->Start) { ...
false
false
false
false
false
0
sendMidi_values () { if (!_midiIface) { std::cerr << "error: cannot send midi values, no midi output interface present\n"; return -1; } for (unsigned i = 0; i < MAX_CC; i++) { if (midi_controllers[i]->getName() != "null") { float fval=mi...
false
false
false
false
false
0
check_EPHuse( int coff, opj_marker_info_t *markers, int marknum, opj_cio_t *cio) { opj_bool EPHused = OPJ_FALSE; int i=0; int org_pos; unsigned int Scod; for(i = 0; i < marknum; i++){ if( markers[i].type == J2K_MS_COD){ org_pos = cio_tell( cio); cio_seek( cio, coff+markers[i].pos+2); ...
false
false
false
false
false
0
finish_connect(struct child_process *conn) { int code; if (!conn || conn == &no_fork) return 0; code = finish_command(conn); free(conn->argv); free(conn); return code; }
false
false
false
false
false
0
SndTellFile(SndInfo *si) { return si->writing ? -1 : (si->fp == stdin ? -1 : ftell(si->fp) - si->h.dataOffset); }
false
false
false
false
false
0
TraverseWorldInfo(GF_Node *node, void *rs, Bool is_destroy) { GF_Scene *scene = (GF_Scene *)gf_node_get_private(node); scene->world_info = is_destroy ? NULL : (M_WorldInfo *) node; }
false
false
false
false
false
0
fillBufferPool (void) { unsigned int i ; bufferPool = xmalloc (sizeof(struct buffer_s) * BUFFER_POOL_SIZE) ; for (i = 0; i < BUFFER_POOL_SIZE - 1; i++) bufferPool[i] . next = &(bufferPool [i + 1]) ; bufferPool [BUFFER_POOL_SIZE-1] . next = NULL ; }
false
false
false
false
false
0
os_relative_if_possible(string_ty *path) { string_ty *dot; string_ty *rel; if (path->str_text[0] != '/') return str_copy(path); dot = os_curdir(); rel = os_below_dir(dot, path); if (!rel) return str_copy(path); return rel; }
false
false
false
false
false
0
locate(char *rockName) { // -------- search a rock by rock_type, width and height ---------// short rockRecno = 0; RockInfo *rockInfo; int i; for( i = 1, rockInfo = rock_info_array; i <= rock_info_count; ++i, ++rockInfo) { if( strcmp(rockName, rockInfo->rock_name) == 0 ) { rockRecno = i; break; } } ...
false
false
false
false
false
0
gtk_xtext_destroy(GtkObject * object) { GtkXText *xtext = GTK_XTEXT(object); if (xtext->add_io_tag) { g_source_remove(xtext->add_io_tag); xtext->add_io_tag = 0; } if (xtext->scroll_tag) { g_source_remove(xtext->scroll_tag); xtext->scroll_tag = 0; } if (xtext->io_tag) { g_source_remove(xtext->io_tag);...
false
false
false
false
false
0
erase_off(struct solo_dev *solo_dev) { if (!solo_dev->erasing) return 0; /* First time around, assert erase off */ if (!solo_dev->frame_blank) solo_reg_write(solo_dev, SOLO_VO_DISP_ERASE, 0); /* Keep the erasing flag on for 8 frames minimum */ if (solo_dev->frame_blank++ >= 8) solo_dev->erasing = 0; retur...
false
false
false
false
false
0
ocrdma_process_mcqe(struct ocrdma_dev *dev, struct ocrdma_mcqe *cqe) { if (dev->mqe_ctx.tag == cqe->tag_lo && dev->mqe_ctx.cmd_done == false) { dev->mqe_ctx.cqe_status = (cqe->status & OCRDMA_MCQE_STATUS_MASK) >> OCRDMA_MCQE_STATUS_SHIFT; dev->mqe_ctx.ext_status = (cqe->status & OCRDMA_MCQE_ESTATUS_MA...
false
false
false
false
false
0
gee_linked_list_real_remove_at (GeeAbstractList* base, gint index) { GeeLinkedList * self; gpointer result = NULL; gint _tmp0_ = 0; gint _tmp1_ = 0; gint _tmp2_ = 0; GeeLinkedListNode* n = NULL; gint _tmp3_ = 0; GeeLinkedListNode* _tmp4_ = NULL; gpointer element = NULL; gconstpointer _tmp5_ = NULL; gpointer ...
false
false
false
false
false
0
IncreaseFrequency(const InstanceIdentifier id, const AbsoluteFrequencyType value) { if ( id >= m_FrequencyContainer->Size() ) { return false; } AbsoluteFrequencyType frequency = this->GetFrequency(id); ( *m_FrequencyContainer )[id] = frequency + value; m_TotalFrequency += value; return true; }
false
false
false
false
false
0
sch5627_remove(struct platform_device *pdev) { struct sch5627_data *data = platform_get_drvdata(pdev); if (data->watchdog) sch56xx_watchdog_unregister(data->watchdog); if (data->hwmon_dev) hwmon_device_unregister(data->hwmon_dev); sysfs_remove_group(&pdev->dev.kobj, &sch5627_group); return 0; }
false
false
false
false
false
0
mr_authenticate(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { struct Client *agent_p = NULL; /* They really should use CAP for their own sake. */ if(!IsCapable(source_p, CLICAP_SASL)) return 0; if (strlen(client_p->id) == 3) { exit_client(client_p, client_p, client_p, "Mi...
false
false
false
false
false
0
align_smith_waterman( struct matrix *m, const char * a, const char * b ) { int width = m->width; int height = m->height; int i,j; int best_i = 0; int best_j = 0; int best_score = 0; // Zero out the first row. for(i=0; i<=width; i++) { matrix(m,i,0).score = 0; matrix(m,i,0).traceback = TRACEBACK_LEFT; } ...
false
false
false
false
false
0
__db_put_pp(dbp, txn, key, data, flags) DB *dbp; DB_TXN *txn; DBT *key, *data; u_int32_t flags; { DB_THREAD_INFO *ip; ENV *env; int handle_check, ret, txn_local, t_ret; env = dbp->env; txn_local = 0; STRIP_AUTO_COMMIT(flags); DB_ILLEGAL_BEFORE_OPEN(dbp, "DB->put"); if ((ret = __db_put_arg(dbp, key, data,...
false
false
false
true
false
1
update_cond_flag(struct trace_event_file *file) { struct event_trigger_data *data; bool set_cond = false; list_for_each_entry_rcu(data, &file->triggers, list) { if (data->filter || data->cmd_ops->post_trigger) { set_cond = true; break; } } if (set_cond) set_bit(EVENT_FILE_FL_TRIGGER_COND_BIT, &file->...
false
false
false
false
false
0
metacontact_remove(const char *name) { metacontact_t *m = metacontact_find(name); metacontact_item_t *i; for (i = m->metacontact_items; i; ) { metacontact_item_t *next = i->next; metacontact_remove_item(m, i->s_uid, i->name, 1); i = next; } metacontacts_remove(m); return 1; }
false
false
false
false
false
0
init_hwif_ali15x3(ide_hwif_t *hwif) { u8 ideic, inmir; s8 irq_routing_table[] = { -1, 9, 3, 10, 4, 5, 7, 6, 1, 11, 0, 12, 0, 14, 0, 15 }; int irq = -1; if (isa_dev) { /* * read IDE interface control */ pci_read_config_byte(isa_dev, 0x58, &ideic); /* bit0, bit1 */ ideic = ideic & 0x03; ...
false
false
false
false
false
0
AppendCoordinateList( OGRLineString *poLine, OGRILI1DataSource *poDS) { int b3D = (poLine->getGeometryType() & wkb25DBit); for( int iPoint = 0; iPoint < poLine->getNumPoints(); iPoint++ ) { if (iPoint == 0) VSIFPrintf( poDS->GetTransferFile(), "STPT" ); else VSIFPrintf( poDS->GetTra...
false
false
false
false
false
0
vmap_find_xobj(path_map_t path_map[], view_map_t *vmap, loc_t loc, move_info_t *move_info, int start, int expand) { perimeter_t *from; perimeter_t *to; int cur_cost; from = &p1; to = &p2; start_perimeter (path_map, from, loc, start); cur_cost = 0; /* cost to reach current perimeter */ ...
false
false
false
false
false
0
processCollision (btCollisionObject* body0,btCollisionObject* body1,const btDispatcherInfo& dispatchInfo,btManifoldResult* resultOut) { if (!m_manifoldPtr) return; btCollisionObject* col0 = body0; btCollisionObject* col1 = body1; btBoxShape* box0 = (btBoxShape*)col0->getCollisionShape(); btBoxShape* box1 = (btB...
false
false
false
false
false
0
slap_sasl_regexp_unparse( BerVarray *out ) { int i; BerVarray bva = NULL; char ibuf[32], *ptr; struct berval idx; if ( !nSaslRegexp ) return; idx.bv_val = ibuf; bva = ch_malloc( (nSaslRegexp+1) * sizeof(struct berval) ); BER_BVZERO(bva+nSaslRegexp); for ( i=0; i<nSaslRegexp; i++ ) { idx.bv_len = sprintf( i...
false
false
false
false
false
0
ast_sockaddr_is_ipv4_mapped(const struct ast_sockaddr *addr) { const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&addr->ss; return addr->len && IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr); }
false
false
false
false
false
0
glade_gtk_toolbar_child_selected (GladeBaseEditor *editor, GladeWidget *gchild, gpointer data) { GObject *child = glade_widget_get_object (gchild); GladeWidget *gparent = glade_widget_get_parent (gchild); GObject *parent = glade_widget_get_object (gparent); GType type = G_OBJECT_TYPE (child); glade_b...
false
false
false
false
false
0
avl_tree_new (avl_key_compare_fun_type compare_fun, void * compare_arg) { avl_tree * t = (avl_tree *) malloc (sizeof (avl_tree)); if (!t) { return NULL; } else { avl_node * root = avl_node_new((void *)NULL, (avl_node *) NULL); if (!root) { return NULL; } else { t->root = roo...
false
false
false
false
false
0
same_file (Square square, Square square2) { char *s1; char *s2; char same1; char same2; s1 = &same1; s2 = &same2; file_to_ascii (&s1, square); file_to_ascii (&s2, square2); if (same1 == same2) return 1; return 0; }
false
false
false
false
false
0
db_d_describe_table(void) { dbTable *table; dbString name; int stat; db_init_string(&name); /* get the arg(s) */ DB_RECV_STRING(&name); /* call the procedure */ stat = db_driver_describe_table(&name, &table); /* send the return code */ if (stat != DB_OK) { DB_SEND_FAILURE();...
false
false
false
false
false
0
server_handle_authentication_agent_response (Server *server, GVariant *parameters, PolkitSubject *caller, GDBusMethodInvocation *invocation) { ...
false
false
false
false
false
0
doEvaluate() const { QString lang = arg( 0 )->evaluate().toString().string(); NodeImpl* node = evaluationContext().node; DOMString langNodeValue; while ( node ) { if (node->isElementNode()) { langNodeValue = static_cast<ElementImpl*>(node)->getAttribute("xml:lang"); if ( !langNodeValue.isNull() ) bre...
false
false
false
false
false
0
setHyperlink(fp_HyperlinkRun * pH) { if(pH != m_pHyperlink) { _setHyperlink(pH); clearScreen(); } }
false
false
false
false
false
0
sci_remote_device_reset_complete(struct isci_remote_device *idev) { struct sci_base_state_machine *sm = &idev->sm; enum sci_remote_device_states state = sm->current_state_id; if (state != SCI_DEV_RESETTING) { dev_warn(scirdev_to_dev(idev), "%s: in wrong state: %s\n", __func__, dev_state_name(state)); return...
false
false
false
false
false
0
_index_open(BLURAY *bd) { if (!bd->index) { char *file; file = str_printf("%s/BDMV/index.bdmv", bd->device_path); bd->index = indx_parse(file); X_FREE(file); } return !!bd->index; }
false
false
false
false
false
0
ahc_qinfifo_requeue_tail(struct ahc_softc *ahc, struct scb *scb) { struct scb *prev_scb; prev_scb = NULL; if (ahc_qinfifo_count(ahc) != 0) { u_int prev_tag; uint8_t prev_pos; prev_pos = ahc->qinfifonext - 1; prev_tag = ahc->qinfifo[prev_pos]; prev_scb = ahc_lookup_scb(ahc, prev_tag); } ahc_qinfifo_requ...
false
false
false
false
false
0
ossl_ec_point_is_on_curve(VALUE self) { EC_POINT *point; VALUE group_v = rb_iv_get(self, "@group"); const EC_GROUP *group; Require_EC_POINT(self, point); SafeRequire_EC_GROUP(group_v, group); switch (EC_POINT_is_on_curve(group, point, ossl_bn_ctx)) { case 1: return Qtrue; case 0: retur...
false
false
false
false
false
0
FindNGByNum(unsigned long ngnumber) { NGTENT *ngtp; NGTREENODE *curnode; curnode = NGTree; while (curnode) { if (curnode->ngnumber == ngnumber) { ngtp = curnode->ngtp; return ngtp->ngname; } if (curnode->ngnumber < ngnumber) { curnode = curnode->right; } else { curnode = curnod...
false
false
false
false
false
0
get_connection(sock, peer_addr) int sock; u_long *peer_addr; { struct sockaddr_in peer ; int peerlen, sd ; while (TRUE) { peerlen = sizeof(peer) ; sd = accept(sock, (struct sockaddr *)&peer, &peerlen) ; /* if EINTR re-issue accept */ if (sd == -1) { if (errno == EINTR) ...
false
false
false
false
false
0
add_header(const char *value) { int len = strlen(value); while (len && value[len - 1] == '\n') len--; if (!strncasecmp(value, "to: ", 4)) { ALLOC_GROW(extra_to, extra_to_nr + 1, extra_to_alloc); extra_to[extra_to_nr++] = xstrndup(value + 4, len - 4); return; } if (!strncasecmp(value, "cc: ", 4)) { ALLOC_...
false
false
false
false
false
0
que_extract_data(que_t * q) { node_t * n; char * d; if(NULL == q || NULL == q->list) return(NULL); ENTRY(); n = q->list; q->list = n->next; q->amount--; n->next = NULL; if (NULL == q->list) { q->tail = NULL; } /* LOG("Extracted from que: %s\n", n->filename ); */ /* e = ((struct ev...
false
false
false
false
false
0
has_string (gchar **list, const gchar *text) { gchar **i; for (i = list; *i; i++) if (strcmp (*i, text) == 0) return TRUE; return FALSE; }
false
false
false
false
false
0
snippet_get_keywords_list (AnjutaSnippet* snippet) { GList *iter = NULL; GList *keywords_copy = NULL; gchar *cur_keyword; /* Assertions */ g_return_val_if_fail (ANJUTA_IS_SNIPPET (snippet), NULL); for (iter = g_list_first (snippet->priv->keywords); iter != NULL; iter = g_list_next (iter)) { cur_keyword = (gc...
false
false
false
false
false
0
st_fail_count_increment(const char *target, int rc) { struct st_fail_rec *rec = NULL; if (stonith_failures == NULL) { stonith_failures = g_hash_table_new_full(crm_str_hash, g_str_equal, g_hash_destroy_str, free); } rec = g_hash_table_lookup(stonith_failures, target); if (rec) {...
false
false
false
false
false
0
lastIndexOf(char ch, int pos) const { if (pos >= Length) return -1; while (pos >= 0) { if (Data[pos] == ch) return pos; pos--; } return -1; }
false
false
false
false
false
0
process_sdta(int size, SFInfo *sf, FILE *fd) { while (size > 0) { SFChunk chunk; /* read a sub chunk */ READCHUNK(chunk, fd); size -= 8; if (feof(fd)) return -1; switch (chunkid(chunk.id)) { case SNAM_ID: /* sample name list */ load_sample_names(chunk.size, sf, fd); break; case SMPL_ID: ...
false
false
false
false
false
0
RemovePoint(ePoint *p) { if (p == leakPoint) st_Breakpoint(); if (p->ID < 0) return; points.Remove(p, p->ID); }
false
false
false
false
false
0
pilDfsUpdateFromEnv(char *(*agent)(void), const char *group, const char *name) { register char *value; if ((value = agent())) { if (pilCdbModifyValue(cfgDB, group, name, value) == EXIT_FAILURE) { pil_free(value); return 0; } else pil_free(value); } return 1; }
false
false
false
false
false
0
sg_load_player_units_transport(struct loaddata *loading, struct player *plr) { int nunits, i, plrno = player_number(plr); /* Check status and return if not OK (sg_success != TRUE). */ sg_check_ret(); /* Recheck the number of units for the player. This is a copied fro...
false
false
false
false
false
0
equal(DOMStringImpl* string, const QChar* characters, unsigned length) { if (string->length() != length) return false; /* Do it 4-bytes-at-a-time on architectures where it's safe */ const uint32_t* stringCharacters = reinterpret_cast<const uint32_t*>(string->unicode()); const uint32_t* bufferC...
false
false
false
false
false
0
selftouch(arg) const char *arg; { char kbuf[BUFSZ]; if(uwep && uwep->otyp == CORPSE && touch_petrifies(&mons[uwep->corpsenm]) && !Stone_resistance) { pline("%s touch the %s corpse.", arg, mons[uwep->corpsenm].mname); Sprintf(kbuf, "%s corpse", an(mons[uwep->corpsenm].mname)); instapetrify(kbuf); ...
false
false
false
false
false
0
ges_asset_request (GType extractable_type, const gchar * id, GError ** error) { gchar *real_id; GError *lerr = NULL; GESAsset *asset = NULL; g_return_val_if_fail (error == NULL || *error == NULL, NULL); g_return_val_if_fail (g_type_is_a (extractable_type, G_TYPE_OBJECT), NULL); g_return_val_if_fail (g_typ...
false
false
false
false
false
0
panel_stop(panel *p) { ENTER; if (p->autohide) ah_stop(p); g_list_foreach(p->plugins, delete_plugin, NULL); g_list_free(p->plugins); p->plugins = NULL; XSelectInput(GDK_DISPLAY(), GDK_ROOT_WINDOW(), NoEventMask); gdk_window_remove_filter(gdk_get_default_root_window(), (G...
false
false
false
false
false
0
_folks_debug_log_handler_cb (FolksDebug* self, const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message) { gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; GLogFunc _tmp2_ = NULL; void* _tmp2__target = NULL; const gchar* _tmp3_ = NULL; GLogLevelFlags _tmp4_ = 0; const gchar* _tmp5_ = NULL; g_re...
false
false
false
false
false
0
change_one_path (ETreeSelectionModel *etsm, ETreePath path, gboolean grow) { if (path == NULL) return; if (grow) g_hash_table_add (etsm->priv->paths, path); else g_hash_table_remove (etsm->priv->paths, path); }
false
false
false
false
false
0
rfOpen(const string& szPort, const string& baudrate) { int result; AsyncPort = (szPort[0] == '/'); TncSysopMode = false; txrdy = false; APIRET rc; //cout << "Debug: szPort == " << szPort << endl; if (AsyncPort) { //cout << "AsyncPort is true" << endl; result = AsyncOpen...
false
false
false
false
false
0
panel_widget_applet_button_release_event (GtkWidget *widget, GdkEventButton *event) { GtkWidget *parent; PanelWidget *panel; parent = gtk_widget_get_parent (widget); g_return_val_if_fail (PANEL_IS_WIDGET (parent), FALSE); panel = PANEL_WIDGET (parent); /* don't propagate this event */ if (pane...
false
false
false
false
false
0
status_change_removemap_end(struct block_list *bl) { struct status_change *sc; nullpo_retr(0, bl); sc = status_get_sc(bl); if(sc == NULL || sc->count <= 0) return 0; status_calc_pc_stop_begin(bl); if(sc->data[SC_BLADESTOP].timer != -1) status_change_end(bl, SC_BLADESTOP, -1); if(sc->data[SC_GRAFFITI].tim...
false
false
false
false
false
0
getV(OfxTime time, va_list arg) { int *value = va_arg(arg, int*); OfxStatus stat = get(time, *value); # ifdef OFX_DEBUG_PARAMETERS if (stat == kOfxStatOK) { std::cout << ' ' << *value; } # endif return stat; }
false
false
false
false
false
0
x_dialog_edit_pin_type (GSCHEM_TOPLEVEL *w_current, const GList *obj_list) { GtkWidget *dialog; GtkWidget *vbox; GtkWidget *radio1; GtkWidget *radio2; const GList *iter; int new_type; int found_pins = FALSE; int changed_anything = FALSE; for (iter = obj_list; iter != NULL; iter = g_list_next (iter)) ...
false
false
false
false
false
0
ufshcd_copy_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { struct ufs_query_res *query_res = &hba->dev_cmd.query.response; memcpy(&query_res->upiu_res, &lrbp->ucd_rsp_ptr->qr, QUERY_OSF_SIZE); /* Get the descriptor */ if (lrbp->ucd_rsp_ptr->qr.opcode == UPIU_QUERY_OPCODE_READ_DESC) { u8 *descp =...
false
false
false
false
false
0
sfree_mp_struct(void) { int i; for (i = 0; i < 3; i++) { free(st_cpu[i]); free(st_irq[i]); free(st_irqcpu[i]); free(st_softirqcpu[i]); } free(cpu_bitmap); }
false
false
false
false
false
0
actor_stand (edict_t *self) { self->monsterinfo.currentmove = &actor_move_stand; // randomize on startup if (level.time < 1.0) self->s.frame = self->monsterinfo.currentmove->firstframe + (rand() % (self->monsterinfo.currentmove->lastframe - self->monsterinfo.currentmove->firstframe + 1)); }
false
false
false
false
false
0
Configure() // ---------------------------------------------------------------------------- { if ( !IsAttached() ) return -1; // Creates and displays the configuration dialog for the plugin cbConfigurationDialog dlg(Manager::Get()->GetAppWindow(), wxID_ANY, wxT("Snippets search")); cbConfigurat...
false
false
false
false
false
0
_archive_read_finish(struct archive *_a) { struct archive_read_disk *a = (struct archive_read_disk *)_a; if (a->cleanup_gname != NULL && a->lookup_gname_data != NULL) (a->cleanup_gname)(a->lookup_gname_data); if (a->cleanup_uname != NULL && a->lookup_uname_data != NULL) (a->cleanup_uname)(a...
false
false
false
false
false
0
_wi_string_sqlite3_escaped_string(wi_string_t *string) { wi_mutable_string_t *newstring; wi_range_t range, searchrange; newstring = wi_mutable_copy(string); searchrange = wi_make_range(0, wi_string_length(newstring)); while((range = wi_string_range_of_string_in_range(newstring, WI_STR("'"), 0, searchrang...
false
false
false
false
false
0
xaccAccountSetNonStdSCU (Account *acc, gboolean flag) { AccountPrivate *priv; g_return_if_fail(GNC_IS_ACCOUNT(acc)); priv = GET_PRIVATE(acc); if (priv->non_standard_scu == flag) return; xaccAccountBeginEdit(acc); priv->non_standard_scu = flag; mark_account (acc); xaccAccountCom...
false
false
false
false
false
0
digest_file(dst_work *work) { static int f_cnt = 0; static unsigned long f_round = 0; FILE *fp; void *ctx; const char *name; int no, i; struct stat st; struct timeval tv; u_char buf[1024]; if (f_round == 0 || files[f_cnt] == NULL || work->file_digest == NULL) if (gettimeofday(&tv, NULL)) /* only do thi...
false
false
false
false
true
1
gui_mch_maximized() { return (gui.mainwin != NULL && gui.mainwin->window != NULL && (gdk_window_get_state(gui.mainwin->window) & GDK_WINDOW_STATE_MAXIMIZED)); }
false
false
false
false
false
0
ldap_parse_subnet (struct ldap_config_stack *item, struct parse *cfile) { struct berval **tempbv, **netmaskstr; char netmaskbuf[sizeof("255.255.255.255")]; int i; if ((tempbv = ldap_get_values_len (ld, item->ldent, "cn")) == NULL || tempbv[0] == NULL) { if (tempbv != NULL) ldap_value_fr...
true
true
false
false
false
1
m6809_set_context(void *src) { if( src ) m6809 = *(m6809_Regs*)src; CHANGE_PC; CHECK_IRQ_LINES; }
false
false
false
false
false
0
gst_base_audio_sink_get_time (GstClock * clock, GstBaseAudioSink * sink) { guint64 raw, samples; guint delay; GstClockTime result; if (sink->ringbuffer == NULL || sink->ringbuffer->spec.rate == 0) return GST_CLOCK_TIME_NONE; /* our processed samples are always increasing */ raw = samples = gst_ring_bu...
false
false
false
false
false
0
gnc_table_refresh_cursor_gnome (Table * table, VirtualCellLocation vcell_loc, gboolean do_scroll) { GnucashSheet *sheet; if (!table || !table->ui_data) return; g_return_if_fail (GNUCASH_IS_SHEET (table->ui_data)); if (gnc_table_v...
false
false
false
false
false
0
eq_read_field(struct mlx5_core_dev *dev, struct mlx5_eq *eq, int index) { struct mlx5_query_eq_mbox_out *out; struct mlx5_eq_context *ctx; u64 param = 0; int err; out = kzalloc(sizeof(*out), GFP_KERNEL); if (!out) return param; ctx = &out->ctx; err = mlx5_core_eq_query(dev, eq, out, sizeof(*out)); if ...
false
false
false
false
false
0
TraverseAndMark (vtkDataSet *input) { vtkIdType i, j, k, cellId, numIds, ptId, numPts, numCells; vtkIdList *tmpWave; while ( (numIds=this->Wave->GetNumberOfIds()) > 0 ) { for ( i=0; i < numIds; i++ ) { cellId = this->Wave->GetId(i); if ( this->Visited[cellId] < 0 ) { thi...
false
false
false
false
false
0
ArmClasses(struct Average av, char *timekey) { double sig; int code; struct Item *classlist = NULL, *ip; int i; char buffer[CF_BUFSIZE]; char temp1[256], temp2[256]; FILE *newfp; FILE *oldfp; struct flock lock; /* printf("Arm classes for %s\n", timekey); */ sig = SetClasses(NAME, VALUE, av.expect, ...
true
true
false
false
true
1
mcam_ctlr_image(struct mcam_camera *cam) { struct v4l2_pix_format *fmt = &cam->pix_format; u32 widthy = 0, widthuv = 0, imgsz_h, imgsz_w; cam_dbg(cam, "camera: bytesperline = %d; height = %d\n", fmt->bytesperline, fmt->sizeimage / fmt->bytesperline); imgsz_h = (fmt->height << IMGSZ_V_SHIFT) & IMGSZ_V_MASK; imgs...
false
false
false
false
false
0
parseImplemMethods (vString * const ident, objcToken what) { switch (what) { case Tok_PLUS: /* + */ toDoNext = &parseMethodsImplemName; methodKind = K_CLASSMETHOD; break; case Tok_MINUS: /* - */ toDoNext = &parseMethodsImplemName; methodKind = K_METHOD; break; case ObjcEND: /* @end */ popEnclosingC...
false
false
false
false
false
0
quicksort_naive_parallel(uint32_t n, uint32_t *in, uint32_t *out) { uint32_t stack_n[num_threads]; uint32_t *stack_out[num_threads]; stack_n[0] = n; stack_out[0] = out; for(uint32_t i = 1; i < num_threads; i *= 2) { for(uint32_t j = 0; j < i; j++) { uint32_t cur_n = stack_n[...
false
false
false
false
false
0
block_get_host(struct cntrl_device *cntrl, int host_id) { struct _host_type *hosts = NULL; if (!cntrl) return hosts; hosts = cntrl->hosts; while (hosts) { if (hosts->host_id == host_id) break; hosts = hosts->next; } return hosts; }
false
false
false
false
false
0
read_monom_row(FILE *fp, char *start_str, double *coeff, char **name, int cnt_coeff) const { double mult; char buff[1024], loc_name[1024], *start; int read_sense = -1; sprintf(buff, "%s", start_str); read_sense = is_sense(buff); if(read_sense > -1) { return(read_sense); } start = buff; ...
false
false
false
false
false
0
syncJournal(Pager *pPager){ PgHdr *pPg; int rc = SQLITE_OK; /* Sync the journal before modifying the main database ** (assuming there is a journal and it needs to be synced.) */ if( pPager->needSync ){ if( !pPager->tempFile ){ assert( pPager->journalOpen ); /* assert( !pPager->noSync ); // ...
false
false
false
false
false
0
collectAttributes(const DIE &Die, DIEAttrs &Attrs) { #define COLLECT_ATTR(NAME) \ case dwarf::NAME: \ Attrs.NAME = V; \ break for (const ...
false
false
false
false
false
0
HandleMotion(wxDC &dc, int x, int y) { PNGButton *hit = CalculateHit(x, y); if( hit != m_current ) { // clean up old hit if( m_current ) { m_current->Normal(dc); } m_current = hit; // draw the new state if( m_current ) m_current->Focus(dc); } }
false
false
false
false
false
0
allocMonitor(Object *obj) { Monitor *mon; if(mon_free_list != NULL) { mon = mon_free_list; mon_free_list = mon->next; } else { mon = sysMalloc(sizeof(Monitor)); monitorInit(mon); } mon->obj = obj; /* No need to wrap in LOCKWORD_WRITE as no thread should ...
false
false
false
false
false
0
rb_proc_exec(str) const char *str; { const char *s = str; char *ss, *t; char **argv, **a; while (*str && ISSPACE(*str)) str++; #ifdef _WIN32 before_exec(); do_spawn(P_OVERLAY, (char *)str); after_exec(); #else for (s=str; *s; s++) { if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]...
false
false
false
false
true
1