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
fileIfNecessary() { if (mFinishedShapes.size() > MOVE_FINISHED_AT) moveFinishedToFile(); if (mUnfinishedShapes.size() > MOVE_UNFINISHED_AT) moveUnfinishedToTwoFiles(); else if (mUnfinishedShapes.empty()) getUnfinishedFromFile(); }
false
false
false
false
false
0
allot_array_2(CELL v1, CELL v2) { REGISTER_ROOT(v1); REGISTER_ROOT(v2); F_ARRAY *a = allot_array_internal(ARRAY_TYPE,2); UNREGISTER_ROOT(v2); UNREGISTER_ROOT(v1); set_array_nth(a,0,v1); set_array_nth(a,1,v2); return tag_object(a); }
false
false
false
false
false
0
bgav_track_skipto(bgav_track_t * track, int64_t * time, int scale) { int i; bgav_stream_t * s; int64_t t; for(i = 0; i < track->num_video_streams; i++) { t = *time; s = &track->video_streams[i]; if(!bgav_stream_skipto(s, &t, scale)) { return 0; } if(!i) *tim...
false
false
false
false
false
0
stmt_command_alloc(blob_ty *bp) { stmt_ty *result; stmt_command_ty *this; blob_list_ty *blp; string_ty *s; size_t j; /* * allocate the statement */ trace(("stmt_command_alloc()\n{\n")); result = stmt_alloc(&method); this = (stmt_command_ty *)resul...
false
false
false
false
false
0
index_has_root(const void *t, int n) { const off_t *roots; roots = (const off_t *)((const char *)t + trie_get_index_offset(t)); if (n == 0) return 1; if (n < 0 || n >= trie_count(t) || !roots[n-1]) return 0; return 1; }
false
false
false
false
false
0
cp_find_or_insert(JVM_CLASS *class, JVM_CONSTANT tag, const void *value) { int temp; if(!class || !value) { BAD_ARG(); return -1; } temp = cp_find_function_body(class, tag, value, FALSE); if(temp < 0) CP_CHECK_NONZERO("cp_find_or_insert", temp); return temp; }
false
false
false
false
false
0
xsltCleanupGlobals(void) { xsltUnregisterAllExtModules(); xsltUnregisterAllExtModuleFunction(); xsltUnregisterAllExtModuleElement(); xsltUnregisterAllExtModuleTopLevel(); xmlMutexLock(xsltExtMutex); /* cleanup dynamic module hash */ if (NULL != xsltModuleHash) { xmlHashScan(xsltModu...
false
false
false
false
false
0
rule_list_remove_by_connection (DBusList **rules, DBusConnection *connection) { DBusList *link; link = _dbus_list_get_first_link (rules); while (link != NULL) { BusMatchRule *rule; DBusList *next; rule = link->data; next = _dbus_list_get_next_li...
false
false
false
false
false
0
level_to_char(int level) { switch(level) { case PROT_CLEAR: return 'C'; case PROT_SAFE: return 'S'; case PROT_CONFIDENTIAL: return 'E'; case PROT_PRIVATE: return 'P'; case PROT_CMD: /* Fall through */ default: /* Those 2 cases should not be reached! */ break; } DEBUGASSERT(...
false
false
false
false
false
0
gdome_xml_n_hasAttributes (GdomeNode *self, GdomeException *exc) { Gdome_xml_Node *priv = (Gdome_xml_Node *)self; g_return_val_if_fail (priv != NULL, 0); g_return_val_if_fail (GDOME_XML_IS_N (priv), 0); g_return_val_if_fail (exc != NULL, 0); if (GDOME_XML_IS_EL (priv)) return (gdome_xmlGetAttrList (priv->n) !=...
false
false
false
false
false
0
x11ImageDestroy( DFBX11 *x11, x11Image *image ) { int ret; DFBX11Shared *shared = x11->shared; D_MAGIC_ASSERT( image, x11Image ); if (fusion_call_execute( &shared->call, FCEF_NONE, X11_IMAGE_DESTROY, image, &ret )) return DFB_FUSION; if (ret) { ...
false
false
false
false
false
0
ahci_error_handler(struct ata_port *ap) { struct ahci_host_priv *hpriv = ap->host->private_data; if (!(ap->pflags & ATA_PFLAG_FROZEN)) { /* restart engine */ ahci_stop_engine(ap); hpriv->start_engine(ap); } sata_pmp_error_handler(ap); if (!ata_dev_enabled(ap->link.device)) ahci_stop_engine(ap); }
false
false
false
false
false
0
AP_LeftRuler(XAP_Frame * pFrame) : XAP_CustomWidgetLU() #if XAP_DONTUSE_XOR , m_guideCache(NULL) #endif { m_pFrame = pFrame; m_pView = NULL; m_pScrollObj = NULL; m_pG = NULL; m_iHeight = 0; m_iWidth = 0; m_oldY = 0; m_yScrollOffset = 0; m_yScrollLimit = 0; m_bValidMouseClick = false; m_draggingWhat = DW_NO...
false
false
false
false
false
0
board_id_in_array(u32 a[], int nelems, u32 board_id) { int i; for (i = 0; i < nelems; i++) if (a[i] == board_id) return 1; return 0; }
false
false
false
false
false
0
bus_input_context_page_up_lookup_table (BusInputContext *context) { g_assert (BUS_IS_INPUT_CONTEXT (context)); if (!ibus_lookup_table_page_up (context->lookup_table)) { return; } if ((context->capabilities & IBUS_CAP_LOOKUP_TABLE) == IBUS_CAP_LOOKUP_TABLE) { bus_input_context_emit_sign...
false
false
false
false
false
0
selectSegment(Segment* segment) { ASSERT_ENGAUGE(segment != 0); Q3CanvasItemList list = segment->lines(); selectItemsReplace(&list); }
false
false
false
true
false
1
CloseDependentDatasets() { int bHasDroppedRef = GDALPamDataset::CloseDependentDatasets(); if( poImageDS != NULL ) { delete poImageDS; poImageDS = NULL; bHasDroppedRef = TRUE; } /* -------------------------------------------------------------------- */ /* Disconnect the ban...
false
false
false
false
false
0
i40e_config_irq_link_list(struct i40e_vf *vf, u16 vsi_id, struct i40e_virtchnl_vector_map *vecmap) { unsigned long linklistmap = 0, tempmap; struct i40e_pf *pf = vf->pf; struct i40e_hw *hw = &pf->hw; u16 vsi_queue_id, pf_queue_id; enum i40e_queue_type qtype; u16 next_q, vector_id; u32 reg, reg_idx; u1...
false
false
false
false
false
0
adjustOpenFilesLimit(void) { rlim_t maxfiles = server.maxclients+32; struct rlimit limit; if (getrlimit(RLIMIT_NOFILE,&limit) == -1) { redisLog(REDIS_WARNING,"Unable to obtain the current NOFILE limit (%s), assuming 1024 and setting the max clients configuration accordingly.", strerror(...
false
false
false
false
false
0
ajQuerylistTrace(const AjPList list) { AjIList iter; AjPQueryList node; ajuint i = 0; iter = ajListIterNewread(list); ajDebug("ajQuerylistTrace %Lu nodes\n", ajListGetLength(list)); while(!ajListIterDone(iter)) { node = (AjPQueryList) ajListIterGet(iter); ajDebug("%3d: '%S' '%S' %d\n", ...
false
false
false
false
false
0
update_hkl_list() { lookup.init( hkl ); hkl_class_lookup.resize( num_reflections() ); invresolsq_lookup.resize( num_reflections() ); invresolsq_range_ = Range<ftype>(); for ( int i = 0; i < num_reflections(); i++ ) { hkl_class_lookup[i] = spacegroup_.hkl_class( hkl_of( i ) ); invresolsq_lookup[i] = hk...
false
false
false
false
false
0
rcu_accelerate_cbs(struct rcu_state *rsp, struct rcu_node *rnp, struct rcu_data *rdp) { unsigned long c; int i; bool ret; /* If the CPU has no callbacks, nothing to do. */ if (!rdp->nxttail[RCU_NEXT_TAIL] || !*rdp->nxttail[RCU_DONE_TAIL]) return false; /* * Starting from the sublist containing the...
false
false
false
false
false
0
gtab_buf_backspace_ex(gboolean auto_hide) { if (!ggg.gbuf_cursor) { return ggg.gbufN>0; } ggg.gbuf_cursor--; gtab_buf_delete_ex(auto_hide); if (hime_pop_up_win && !gtab_has_input() && auto_hide) hide_win_gtab(); return 1; }
false
false
false
false
false
0
destroyAllResourcePools() { OGRE_LOCK_AUTO_MUTEX; for (ResourcePoolMap::iterator i = mResourcePoolMap.begin(); i != mResourcePoolMap.end(); ++i) OGRE_DELETE i->second; mResourcePoolMap.clear(); }
false
false
false
false
false
0
add_linkage_attr (dw_die_ref die, tree decl) { const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); /* Mimic what assemble_name_raw does with a leading '*'. */ if (name[0] == '*') name = &name[1]; if (dwarf_version >= 4) add_AT_string (die, DW_AT_linkage_name, name); else add_AT_...
false
false
false
false
false
0
music_player_bridge_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) { GObject * obj; GObjectClass * parent_class; MusicPlayerBridge * self; GeeHashMap* _tmp0_ = NULL; GeeHashMap* _tmp1_ = NULL; SettingsManager* _tmp2_ = NULL; SettingsManager* _tmp3_ = NULL; S...
false
false
false
false
false
0
verticalScroll(int value) { if (!widget) { return; } if (!dragging) { widget.data()->setPos(QPoint(widget.data()->pos().x(), -value*10)); } }
false
false
false
false
false
0
ftrace_hash_ipmodify_update(struct ftrace_ops *ops, struct ftrace_hash *new_hash) { struct ftrace_hash *old_hash = ops->func_hash->filter_hash; if (ftrace_hash_empty(old_hash)) old_hash = NULL; if (ftrace_hash_empty(new_hash)) new_hash = NULL; return __ftrace_hash_update_ipmodify(ops, old_hash, ne...
false
false
false
false
false
0
_IsExtremum(int xdir, SplinePoint *sp) { return xdir? (!sp->nonextcp && !sp->noprevcp && sp->nextcp.x==sp->me.x && sp->prevcp.x==sp->me.x): (!sp->nonextcp && !sp->noprevcp && sp->nextcp.y==sp->me.y && sp->prevcp.y==sp->me.y); }
false
false
false
false
false
0
jpeg_start_output (j_decompress_ptr cinfo, int scan_number) { if (cinfo->global_state != DSTATE_BUFIMAGE && cinfo->global_state != DSTATE_PRESCAN) ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); /* Limit scan number to valid range */ if (scan_number <= 0) scan_number = 1; if (cinfo->inputctl...
false
false
false
false
false
0
explain_buffer_errno_link_explanation(explain_string_buffer_t *sb, int errnum, const char *oldpath, const char *newpath) { explain_final_t oldpath_final_component; explain_final_t newpath_final_component; explain_final_init(&oldpath_final_component); explain_final_init(&newpath_final_component); ...
false
false
false
false
false
0
SETNB_EbR(bxInstruction_c *i) { BX_WRITE_8BIT_REGx(i->rm(), i->extend8bitL(), !getB_CF()); }
false
false
false
false
false
0
initializeDefaultSettings() { static bool initialized = false; if ( !initialized ) { ConfigurationData* config = fraqtive()->configuration(); if ( !config->contains( "Gradient" ) ) config->setValue( "Gradient", QVariant::fromValue( DataFunctions::defaultGradient() ) ); if ( ...
false
false
false
false
false
0
populate_action_groups() { Glib::RefPtr<Gtk::Action> action; action = Gtk::Action::create( "QuitGNoteAction", Gtk::Stock::QUIT, _("_Quit"), _("Quit Gnote")); m_main_window_actions->add(action, Gtk::AccelKey("<Control>Q")); action = Gtk::Action::create( "ShowPreferencesAction", Gtk:...
false
false
false
false
false
0
close() { ExifStatus returnValue = EXIF_FILE_CLOSE_ERROR ; if ( mFileHandle ) { if( fclose( mFileHandle ) == 0 ) returnValue = EXIF_OK ; } return returnValue ; }
false
false
false
false
false
0
ReorderFields( int* panMap ) { if (HasLayerDefnError()) return OGRERR_FAILURE; if (!poDS->GetUpdate()) { CPLError( CE_Failure, CPLE_NotSupported, UNSUPPORTED_OP_READ_ONLY, "ReorderFields"); return OGRERR_FAILURE; } if (poFeatureDefn->GetF...
false
false
false
false
false
0
IsHaveSideEffect() { return (left->IsHaveSideEffect()) || (left->GetAffectedVar()->GetClassName() & SYM_VAR_GLOBAL) || right->IsHaveSideEffect(); }
false
false
false
false
false
0
recvLine(int client, char *bufLine, size_t nsize) { size_t bufLineLen=0; char c; int n; do { n = recv(client, &c, 1, 0); if (n > 0) bufLine[bufLineLen++] = c; } while ((bufLineLen + 1 < nsize ) && (c != '\n') && ( n > 0 )); bufLine[bufLineLen] = '\0'; return bufLineLen; }
false
false
false
false
false
0
GameOver(void) { int anFinalScore[2]; int nMatch; const listOLD *firstGame = lMatch.plNext->p; if (firstGame) { const moverecord *pmr = firstGame->plNext->p; if (pmr) { g_assert(pmr->mt == MOVE_GAMEINFO); nMatch = pmr->g.nMatch; if (ms.nMatchTo) { /* ...
false
false
false
false
false
0
checkObject(Object *ob, Class *type) { if(ob == NULL) { signalException(java_lang_NullPointerException, NULL); return FALSE; } if(!isInstanceOf(type, ob->class)) { signalException(java_lang_IllegalArgumentException, "object is not an instance of declaring cla...
false
false
false
false
false
0
notification_banner_show(GSList *msg_list) { G_LOCK(banner); if((notify_config.banner_show != NOTIFY_BANNER_SHOW_NEVER) && (g_slist_length(msg_list) || (notify_config.banner_show == NOTIFY_BANNER_SHOW_ALWAYS))) notification_banner_create(msg_list); else notification_banner_destroy(); G_UNLOC...
false
false
false
false
false
0
_wrap_svn_repos_parse_dumpstream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; svn_stream_t *arg1 = (svn_stream_t *) 0 ; svn_repos_parser_fns_t *arg2 = (svn_repos_parser_fns_t *) 0 ; void *arg3 = (void *) 0 ; svn_cancel_func_t arg4 = (svn_cancel_func_t) 0 ; void *arg5 = (void *)...
false
false
false
false
false
0
ms_forecast() { mod_file->addStatement(new MSSBVARForecastStatement(options_list)); options_list.clear(); }
false
false
false
false
false
0
flmAddField( FlmRecord * pRecord, FLMUINT uiTagNum, const void * pvData, FLMUINT uiDataLen, FLMUINT uiDataType) { RCODE rc = FERR_OK; void * pvField; // Insert new field. if( RC_BAD( rc = pRecord->insertLast( 1, uiTagNum, uiDataType, &pvField))) { goto Exit; } switch( uiDataType) { cas...
false
false
false
false
false
0
operator<< (std::ostream &os, const ProbeResult &pr) { ios_format_state state(os); os << _("Device ID: ") << pr.m_dev.m_impl.get() << ". " << _("PIN: ") << pr.m_pin.Str() << ", " << _("Description: ") << pr.m_description; if( pr.m_cfgDeviceName.size() ) os << ", " << _("Name: ") << pr.m_cfgDeviceName; re...
false
false
false
false
false
0
ea_acl_chmod_unstuffed(struct gfs2_inode *ip, struct gfs2_ea_header *ea, char *data) { struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); unsigned int amount = GFS2_EA_DATA_LEN(ea); unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); int ret; ret = gfs2_trans_begin(sdp, nptrs + RES_DINODE, 0); if (ret) ...
false
false
false
false
false
0
H5Idestroy_type(H5I_type_t type) { herr_t ret_value; /* Return value */ FUNC_ENTER_API(FAIL) H5TRACE1("e", "It", type); if(H5I_IS_LIB_TYPE(type)) HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "cannot call public function on library type") ret_value = H5I_destroy_type(type); done: ...
false
false
false
false
false
0
store_tab(attr, pos) int attr; POSITION pos; { int to_tab = column + cshift - lmargin; int i; if (ntabstops < 2 || to_tab >= tabstops[ntabstops-1]) to_tab = tabdefault - ((to_tab - tabstops[ntabstops-1]) % tabdefault); else { for (i = ntabstops - 2; i >= 0; i--) if (to_tab >= tabstops[i]) br...
false
false
false
false
false
0
MatchUpperCase(Accessor &styler, int pos, const char *s) //Same as styler.Match() but uppercase comparison (a-z,A-Z and space only) { char ch; for (int i=0; *s; i++) { ch=styler.SafeGetCharAt(pos+i); if (ch > 0x60) ch -= '\x20'; if (*s != ch) return false; s++; } re...
false
false
false
false
false
0
nvkm_oproxy_sclass(struct nvkm_object *object, int index, struct nvkm_oclass *oclass) { struct nvkm_oproxy *oproxy = nvkm_oproxy(object); oclass->parent = oproxy->object; if (!oproxy->object->func->sclass) return -ENODEV; return oproxy->object->func->sclass(oproxy->object, index, oclass); }
false
false
false
false
false
0
setThemePath(ThemePath path, const QString &absPath) { QDir test(absPath); if (!test.exists()) LOG_ERROR(QString("Theme path does not exist %1").arg(test.absolutePath())); d->m_ThemePath.insert(path, QDir::cleanPath(absPath)); }
false
false
false
false
false
0
setup(const Tree2toNDiagram& diag, int pos) { pair<int,int> dchildren = diag.children(pos); data = diag.allPartons()[pos]; spacelike = pos < diag.nSpace(); if ( pos == 0 ) externalId = 0; if ( dchildren.first == -1 ) { externalId = diag.externalId(pos); leafs.insert(externalId); ...
false
false
false
false
false
0
intel_mocs_init_l3cc_table(struct drm_device *dev) { struct drm_i915_private *dev_priv = to_i915(dev); struct drm_i915_mocs_table table; unsigned int i; if (!get_mocs_settings(dev_priv, &table)) return; for (i = 0; i < table.size/2; i++) I915_WRITE(GEN9_LNCFCMOCS(i), l3cc_combine(&table, 2*i, 2*i+1)); /* O...
false
false
false
false
false
0
cheap_ascii2uni(char *src, char *dest, int l) { for (; l > 0; l--) { *dest++ = *src++; *dest++ = 0; } }
false
false
false
false
false
0
do_uncompress( compress_filter_context_t *zfx, z_stream *zs, IOBUF a, size_t *ret_len ) { int zrc; int rc=0; size_t n; int nread, count; int refill = !zs->avail_in; if( DBG_FILTER ) log_debug("begin inflate: avail_in=%u, avail_out=%u, inbuf=%u\n", (unsigned)zs->avail_in, (unsigned)zs...
false
false
false
false
false
0
sentinelCollectTerminatedScripts(void) { int statloc; pid_t pid; while ((pid = wait3(&statloc,WNOHANG,NULL)) > 0) { int exitcode = WEXITSTATUS(statloc); int bysignal = 0; listNode *ln; sentinelScriptJob *sj; if (WIFSIGNALED(statloc)) bysignal = WTERMSIG(statloc); ...
false
false
false
false
false
0
initProc() { // Set process properties: H_L^++-- or H_R^++--. if (leftRight == 1) { idHLR = 9900041; codeSave = 3125; nameSave = "f_1 f_2 -> H_L^++-- f_3 f_4 (W+- W+- fusion)"; } else { idHLR = 9900042; codeSave = 3145; nameSave = "f_1 f_2 -> H_R^++-- f_3 f_4 (W+- W+- fu...
false
false
false
false
false
0
get_label_size(const sensors_chip_name *name) { int i; const sensors_feature *iter; char *label; unsigned int max_size = 11; /* 11 as minumum label width */ i = 0; while ((iter = sensors_get_features(name, &i))) { if ((label = sensors_get_label(name, iter)) && strlen(label) > max_size) max_size = strl...
false
false
false
false
false
0
SQLRemoveDriverW (LPCWSTR lpszDriver, BOOL fRemoveDSN, LPDWORD lpdwUsageCount) { char *_driver_u8 = NULL; BOOL retcode = FALSE; _driver_u8 = (char *) dm_SQL_WtoU8 ((SQLWCHAR *) lpszDriver, SQL_NTS); if (_driver_u8 == NULL && lpszDriver) { PUSH_ERROR (ODBC_ERROR_OUT_OF_MEM); goto done; } ...
false
false
false
false
false
0
ack_sol_packet( struct ipmi_intf * intf, struct ipmi_rs * rsp) { if (rsp && (rsp->session.authtype == IPMI_SESSION_AUTHTYPE_RMCP_PLUS) && (rsp->session.payloadtype == IPMI_PAYLOAD_TYPE_SOL) && (rsp->payload.sol_packet.packet_sequence_...
false
false
false
false
false
0
a_gname_at(x,y) /* returns the name of an altar's deity */ xchar x, y; { if(!IS_ALTAR(levl[x][y].typ)) return((char *)0); return align_gname(a_align(x,y)); }
false
false
false
false
false
0
is_a_cookie_line(gchar *line) { /* a valid cookie line has 6 tabs */ int tab_count; size_t i; /* always deal with the possibility of a null string! */ if (line == NULL) { return FALSE; } tab_count = 0; for (i = 0; i < strlen(line); i++) { if (line[i] == '\t') { tab_count++; ...
false
false
false
false
false
0
chart_add_tick(chart_priv *c, float *val) { int i; ENTER; if (!c->ticks) RET(); for (i = 0; i < c->rows; i++) { if (val[i] < 0) val[i] = 0; if (val[i] > 1) val[i] = 1; c->ticks[i][c->pos] = val[i] * c->h; DBG("new wval = %uld\n", c...
false
false
false
false
false
0
vidioc_enumaudio(struct file *file, void *priv, struct v4l2_audio *a) { if (a->index > 1) return -EINVAL; dprintk(1, "%s called\n", __func__); if (a->index == 0) strcpy(a->name, "Television"); else strcpy(a->name, "Line in"); a->capability = V4L2_AUDCAP_STEREO; return 0; }
false
true
false
false
false
1
free_ssa_liveness(struct compilation_unit *cu) { struct basic_block *bb; for_each_basic_block(bb, &cu->bb_list) { free(bb->def_set); free(bb->use_set); free(bb->live_in_set); free(bb->live_out_set); } }
false
false
false
false
false
0
tile_get_name( FILE *file, int id, char *buf ) { memset( buf, 0, 21 ); fseek( file, 2 + id * 20, SEEK_SET ); if ( feof( file ) ) sprintf( buf, "none" ); else fread( buf, 20, 1, file ); }
false
true
true
false
false
1
iGammaFunc(float factor, float min, float gamma, float value) { // Here 0<value<1 (always) if (gamma != 0) { if (gamma < 0) value = log(value*(-gamma) + 1); else value = exp(value*gamma) - 1; } return factor*value + min; }
false
false
false
false
false
0
job_test_resv_now(struct job_record *job_ptr) { slurmctld_resv_t * resv_ptr; time_t now; if (job_ptr->resv_name == NULL) return SLURM_SUCCESS; resv_ptr = (slurmctld_resv_t *) list_find_first (resv_list, _find_resv_name, job_ptr->resv_name); job_ptr->resv_ptr = resv_ptr; if (!resv_ptr) return ESLURM_RESER...
false
false
false
false
false
0
mono_thread_get_name (MonoInternalThread *this_obj, guint32 *name_len) { gunichar2 *res; LOCK_THREAD (this_obj); if (!this_obj->name) { *name_len = 0; res = NULL; } else { *name_len = this_obj->name_len; res = g_new (gunichar2, this_obj->name_len); memcpy (res, this_obj->name, sizeof (gunichar2) * this...
false
false
false
false
false
0
OnMenuAddDataBreak(cb_unused wxCommandEvent &event) { wxPGProperty *selected = m_grid->GetSelection(); if (!selected) return; WatchesProperty *prop = static_cast<WatchesProperty*>(selected); wxString expression; prop->GetWatch()->GetSymbol(expression); cbDebuggerPlugin *plugin = Manage...
false
false
false
false
false
0
parseTransliterator(char *tag, uint32_t startline, const struct UString* comment, UErrorCode *status) { struct SResource *result = NULL; struct UString *tokenValue; FileStream *file = NULL; char filename[256] = { '\0' }; char cs[128] = { '\0' }; u...
false
false
false
false
false
0
nautilus_path_bar_remove (GtkContainer *container, GtkWidget *widget) { NautilusPathBar *path_bar; GList *children; path_bar = NAUTILUS_PATH_BAR (container); if (widget == path_bar->priv->up_slider_button) { nautilus_path_bar_remove_1 (container, widget);...
false
false
false
false
false
0
LM93_ALARMS_FROM_REG(struct block1_t b1) { unsigned result; result = b1.host_status_2 & 0x3f; if (vccp_limit_type[0]) result |= (b1.host_status_4 & 0x10) << 2; else result |= b1.host_status_2 & 0x40; if (vccp_limit_type[1]) result |= (b1.host_status_4 & 0x20) << 2; else result |= b1.host_status_2 & 0x8...
false
false
false
false
false
0
_get_info_tabs(GtkTable *table, display_data_t *display_data) { int i; static bool init = 0; if (!table || init) { return; } init = 1; /* This only needs to be ran once */ for(i=0; i<PAGE_CNT; i++) { if (main_display_data[i].id == -1) break; if (!main_display_data[i].name || (i == TAB_PAGE)) conti...
false
false
false
false
false
0
TKA_Eye(struct Togl *togl, GLint argc, CONST84 char **argv) { struct Antenna *antenna = Togl_GetClientData(togl); /** Antenna data **/ GLint result; /** Result **/ result = PA_ParseArgs(Togl_Interp(togl), argc-2, argv+2, CfgEye, antenna); if(result == PA_CHAN...
false
false
false
false
false
0
on_anim_save(GtkWidget *widget, gpointer user_data) { Explorer *self = EXPLORER (user_data); if (!current_filename) { on_anim_save_as(widget, user_data); return; } animation_save_file (self->animation, current_filename); }
false
false
false
false
false
0
getUnique(vector<unsigned int> const &dim) { static set<vector<unsigned int> > _dimset; set<vector<unsigned int> >::const_iterator p = _dimset.find(dim); if (p == _dimset.end()) { _dimset.insert(dim); p = _dimset.find(dim); } return *p; }
false
false
false
false
false
0
AddWeighedStatFreqs(const SymbolStats* stats1, double w1, const SymbolStats* stats2, double w2, SymbolStats* result) { size_t i; for (i = 0; i < 288; i++) { result->litlens[i] = (size_t) (stats1->litlens[i] * w1 + stats2->litlens[i] * w2); ...
false
false
false
false
false
0
ramoops_register_dummy(void) { if (!mem_size) return; pr_info("using module parameters\n"); dummy_data = kzalloc(sizeof(*dummy_data), GFP_KERNEL); if (!dummy_data) { pr_info("could not allocate pdata\n"); return; } dummy_data->mem_size = mem_size; dummy_data->mem_address = mem_address; dummy_data->mem_...
false
false
false
false
false
0
parser_content (Parser *parser, const char *content, int len, GError **error) { g_return_val_if_fail (error == NULL || *error == NULL, FALSE); /* FIXME check that it's all whitespace */ return TRUE; }
false
false
false
false
false
0
hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) { int i; u32 subsystem_vendor_id, subsystem_device_id; subsystem_vendor_id = pdev->subsystem_vendor; subsystem_device_id = pdev->subsystem_device; *board_id = ((subsystem_device_id << 16) & 0xffff0000) | subsystem_vendor_id; for (i = 0; i < ARRAY_S...
false
false
false
false
false
0
analyze_access_subtree (struct access *root, bool allow_replacements, enum mark_rw_status mark_read, enum mark_rw_status mark_write) { struct access *child; HOST_WIDE_INT limit = root->offset + root->size; HOST_WIDE_INT covered_to = root->offset; bool scalar = is_gimple_reg_type (root->type); bool hole ...
false
false
false
false
true
1
Remove_dd_from_dds ( SOIP_Dds * p_dds, int id ) { ISNS_LIST_NODE *pnode; if ((pnode=FindNode(&p_dds->dd_list, (char *)&id, sizeof(id)))) { RemoveNode(&p_dds->dd_list, pnode); } return (ISNS_NO_ERR); }
false
false
false
false
false
0
getLowestRoot(f32 a, f32 b, f32 c, f32 maxR, f32* root) { // check if solution exists f32 determinant = b*b - 4.0f*a*c; // if determinant is negative, no solution if (determinant < 0.0f) return false; // calculate two roots: (if det==0 then x1==x2 // but lets disregard that slight optimization) // bu...
false
false
false
false
false
0
unit_can_airlift_to(const struct unit *punit, const struct city *pdest_city) { /* FIXME: really we want client_player(), not unit_owner(). */ struct player *restriction = is_server() ? NULL : unit_owner(punit); fc_assert_ret_val(pdest_city, FALSE); return is_successful_airlift_result( ...
false
false
false
false
false
0
GdipSetSmoothingMode (GpGraphics *graphics, SmoothingMode mode) { if (!graphics) return InvalidParameter; graphics->draw_mode = mode; switch (graphics->backend) { case GraphicsBackEndCairo: return cairo_SetSmoothingMode (graphics, mode); case GraphicsBackEndMetafile: return metafile_SetSmoothingMode (graph...
false
false
false
false
false
0
rc_print_src_register(FILE * f, struct rc_instruction * inst, struct rc_src_register src) { int trivial_negate = (src.Negate == RC_MASK_NONE || src.Negate == RC_MASK_XYZW); if (src.Negate == RC_MASK_XYZW) fprintf(f, "-"); if (src.Abs) fprintf(f, "|"); if(src.File == RC_FILE_PRESUB) rc_print_presub_ins...
false
false
false
false
false
0
fli_GetVRoot( Display * dpy, int scr ) { Window rootReturn; Window parentReturn; Window *children; unsigned int numChildren; Window root = RootWindow( dpy, scr ); Atom __SWM_VROOT = None; unsigned int i; __SWM_VROOT = XInternAtom( dpy, "__SWM_VROOT", False ); XQu...
false
false
false
false
false
0
slot_tp_init(PyObject *self, PyObject *args, PyObject *kwds) { _Py_IDENTIFIER(__init__); PyObject *meth = lookup_method(self, &PyId___init__); PyObject *res; if (meth == NULL) return -1; res = PyObject_Call(meth, args, kwds); Py_DECREF(meth); if (res == NULL) return -1; ...
false
false
false
false
false
0
process_csa_genes(GtQueue *gt_genome_node_buffer, GtArray *csa_genes, GtStr *gt_csa_source_str) { unsigned long i; gt_assert(csa_genes); for (i = 0; i < gt_array_size(csa_genes); i++) { GtFeatureNode *gene_feature = create_gene_feature(*(GtCSAGene**)...
false
false
false
false
false
0
checkAndAdjustCellSize(fl_ContainerLayout * pCL) { if(pCL->getContainerType() != FL_CONTAINER_CELL) { return; } fl_ContainerLayout * pShadowBL = NULL; UT_uint32 iCount = m_vecPages.getItemCount(); for (UT_uint32 i=0; i<iCount; i++) { _PageHdrFtrShadowPair* pPair = m_vecPages.getNthItem(i); // Find matching...
false
false
false
false
false
0
dumpTagMap() { for( TagMap::iterator iter = tagMap.begin(); iter != tagMap.end(); iter++ ) { Node* pNode=((*iter).second); if (!pNode->children.size()) //supress node with children Log::info( "%s%s%s%s", //(no index string this time) pNode->key.c_str(), pNode->value.size()?" = '":"", pNode->valu...
false
false
false
false
false
0
check_host (struct sockaddr *sa, socklen_t len) { int err; char addr[INET6_ADDRSTRLEN]; char name[NI_MAXHOST]; if (sa->sa_family != AF_INET && sa->sa_family != AF_INET6) return 1; (void) getnameinfo(sa, len, addr, sizeof (addr), NULL, 0, NI_NUMERICHOST); err = getnameinfo(sa, len, name, sizeof (...
false
false
false
false
false
0
__team_port_change_check(struct team_port *port, bool linkup) { if (port->state.linkup != linkup) __team_port_change_send(port, linkup); __team_carrier_check(port->team); }
false
false
false
false
false
0
_set_sensor_event_enable (ipmi_sensors_config_state_data_t *state_data, const char *section_name, struct sensor_event_enable_data *data, uint8_t event_message_action) { fiid_obj_t obj_cmd_rs = NULL; uint8_t sdr_record[IPMI_SDR_CACHE_MAX_S...
false
false
false
false
false
0
gth_browser_go_back (GthBrowser *browser, int steps) { GList *new_current; new_current = browser->priv->history_current; while ((new_current != NULL) && (steps-- > 0)) new_current = new_current->next; if (new_current == NULL) return; browser->priv->history_current = new_current; _gth_browser...
false
false
false
false
false
0
OnPreview(wxCommandEvent & WXUNUSED(event)) { TransferDataFromWindow(); // Save & restore parameters around Preview, because we didn't do OK. double oldSemitonesChange = m_dSemitonesChange; if( m_dPercentChange < PERCENTCHANGE_MIN) { m_dPercentChange = PERCENTCHANGE_MIN; this->Update_Text_Pe...
false
false
false
false
false
0
cbaf_wusb_ck_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { ssize_t result; struct usb_interface *iface = to_usb_interface(dev); struct cbaf *cbaf = usb_get_intfdata(iface); result = sscanf(buf, "%02hhx %02hhx %02hhx %02hhx " "%02hhx %02hhx %02hhx %02hhx ...
false
false
false
false
false
0
feedStaticHash() { m_Link_PaperName_ModelIndex.insert(USER_DATA_GENERICHEADER, Core::IUser::GenericHeader); m_Link_PaperName_ModelIndex.insert(USER_DATA_GENERICFOOTER, Core::IUser::GenericFooter); m_Link_PaperName_ModelIndex.insert(USER_DATA_GENERICWATERMARK, Core::IUser::GenericWatermark); ...
false
false
false
false
false
0
DestroyCList(CList *clist) { if (clist) { CList *c = clist; while (c->list) { DXDeleteSegList(c->list); c++; } DXFree((Pointer)clist); } return OK; }
false
false
false
false
false
0