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
L38() {register object *base=vs_base; register object *sup=base+VM38; VC38 vs_check; {register object V134; V134=(base[0]); vs_top=sup; goto TTL; TTL:; if(((V134))!=Cnil){ goto T449;} base[1]= Ct; vs_top=(vs_base=base+1)+1; return; goto T449; T449:; {register object x= CMPcar((V134)),V136= CMPcdr((V134)); ...
false
false
false
false
false
0
setAspectRatio( int axis, double ratio ) { if ( ratio < 0.0 ) ratio = 0.0; if ( axis >= 0 && axis < QwtPlot::axisCnt ) d_data->axisData[axis].aspectRatio = ratio; }
false
false
false
false
false
0
get_id_list(Slot *slot, int sno, int dno, int mt_num) { List *ret; int key = get_slot_set_key(sno, dno, mt_num); if (hash_lookup(slot->id_hash, key, (void *)(&ret))) { return ret; } else { return NULL; } }
false
false
false
false
false
0
utest_occupancy(P7_HMM *hmm) { char *msg = "modelconfig.c::calculate_occupancy() unit test failed"; float *occ; float x; occ = malloc(sizeof(float) * (hmm->M+1)); p7_hmm_CalculateOccupancy(hmm, occ, NULL); x = esl_vec_FSum(occ+1, hmm->M) / (float) hmm->M; if (esl_FCompare(x, 0.6, 0.1) != eslOK) ...
false
false
false
false
false
0
netbeans_gui_register(void) { if (!NB_HAS_GUI || !NETBEANS_OPEN) return; # ifdef FEAT_GUI_X11 /* tell notifier we are interested in being called * when there is input on the editor connection socket */ if (inputHandler == (XtInputId)NULL) inputHandler = XtAppAddInput((XtAppContext)app_context, ...
false
false
false
false
false
0
queue_remove_downloads_with_file(fileinfo_t *fi, struct download *skip) { GSList *sources, *iter; file_info_check(fi); sources = file_info_get_sources(fi); for (iter = sources; iter; iter = g_slist_next(iter)) { struct download *d = iter->data; download_check(d); g_assert(d->file_info == fi); if (d == s...
false
false
false
false
false
0
post_process_prepass (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail) { my_post_ptr post = (my_post_ptr) cinfo->post; JDIMENSION old_next_row, num_ro...
false
false
false
false
false
0
LayoutWidgetBase() : m_pLayoutItem(0) #ifndef GLOM_ENABLE_CLIENT_ONLY , m_drag_in_progress(false) #endif // !GLOM_ENABLE_CLIENT_ONLY { }
false
false
false
false
false
0
isNested() const { OFBool nested = OFFalse; if (Parent != NULL) { // check for surrounding structure of item and sequence DcmEVR parentIdent = Parent->ident(); if ((parentIdent == EVR_item) || (parentIdent == EVR_dirRecord)) { if (Parent->getParent() != NULL) ...
false
false
false
false
false
0
calculate_convex_hulls() { std::vector<CL_Contour>::iterator it; for( it = contours.begin(); it != contours.end(); ++it ) { (*it).points = CL_PointSetMath::convex_hull_from_polygon((*it).points); } // We use smallest enclosing discs, // since that gives great results with a convex shapes. calculate_smallest_en...
false
false
false
false
false
0
set_srcdst_params(struct vpe_ctx *ctx) { struct vpe_q_data *s_q_data = &ctx->q_data[Q_DATA_SRC]; struct vpe_q_data *d_q_data = &ctx->q_data[Q_DATA_DST]; struct vpe_mmr_adb *mmr_adb = ctx->mmr_adb.addr; unsigned int src_w = s_q_data->c_rect.width; unsigned int src_h = s_q_data->c_rect.height; unsigned int dst_w ...
false
false
false
false
false
0
ProcessCommandSP(ICECAdapter *parser, const string &command, string &arguments) { if (command == "sp") { string strAddress; int iAddress; if (GetWord(arguments, strAddress)) { sscanf(strAddress.c_str(), "%x", &iAddress); if (iAddress >= 0 && iAddress <= CEC_INVALID_PHYSICAL_ADDRESS) ...
false
false
false
false
false
0
L43() {register object *base=vs_base; register object *sup=base+VM43; VC43 vs_check; {object V237; V237=(base[0]); vs_top=sup; goto TTL; TTL:; base[1]= (V237); vs_top=(vs_base=base+1)+1; (void) (*Lnk224)(); vs_top=sup; if((vs_base[0])==Cnil){ goto T802;} base[2]= (V237); vs_top=(vs_base=base+2)+1; Leval(...
false
false
false
false
false
0
WriteToBitStreamFromInternalPacket( RakNet::BitStream *bitStream, const InternalPacket *const internalPacket, CCTimeType curTime ) { (void) curTime; BitSize_t start = bitStream->GetNumberOfBitsUsed(); unsigned char tempChar; // (Incoming data may be all zeros due to padding) bitStream->AlignWriteToByteBo...
false
false
false
false
false
0
cvoronoiFn(VoronoiPointData& data, int n, const SeVec3d* args) { // args = p, type, jitter, // fbmScale, fbmOctaves, fbmLacunarity, fbmGain SeVec3d p; int type = 1; double jitter = 0.5; double fbmScale = 0; double fbmOctaves = 4; double fbmLacunarity = 2; double fbmGain = 0.5; switch (n) { case 7...
false
false
false
false
false
0
__connman_timezone_lookup(void) { struct stat st; void *map; int fd; char *zone; zone = read_key_file(ETC_SYSCONFIG_CLOCK, "ZONE"); DBG("sysconfig zone %s", zone); fd = open(ETC_LOCALTIME, O_RDONLY | O_CLOEXEC); if (fd < 0) { g_free(zone); return NULL; } if (fstat(fd, &st) < 0) goto done; if (S_IS...
false
false
false
false
false
0
gdome_xpnsresolv_lookupNamespaceURI (GdomeXPathNSResolver *self, GdomeDOMString *prefix, GdomeException *exc) { if (self == NULL) { *exc = GDOME_NULL_POINTER_ERR; return NULL; } *exc = 0; return ((Gdome_xpath_XPathNSResolver *)self)->vtab->lookupNamespaceURI (self, prefix, exc); }
false
false
false
false
false
0
inv_getsize(LargeObjectDesc *obj_desc) { uint32 lastbyte = 0; ScanKeyData skey[1]; SysScanDesc sd; HeapTuple tuple; Assert(PointerIsValid(obj_desc)); open_lo_relation(); ScanKeyInit(&skey[0], Anum_pg_largeobject_loid, BTEqualStrategyNumber, F_OIDEQ, ObjectIdGetDatum(obj_desc->id)); sd = systabl...
false
false
false
false
false
0
bgav_RIFFINFO_read_without_header(bgav_input_context_t * input, int size) { int string_len; bgav_RIFFINFO_t * ret; uint8_t *buf, * ptr, *end_ptr; buf = malloc(size); ptr = buf; if(bgav_input_read_data(input, ptr, size) < size) { free(buf); return NULL; } end_ptr = ptr + size; ret =...
false
false
false
false
false
0
H5Lget_info_by_idx(hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5L_info_t *linfo /*out*/, hid_t lapl_id) { H5G_loc_t loc; /* Group location for group to query */ H5L_trav_gibi_t udata; /* User data for callback */ herr_...
false
false
false
false
false
0
maxBud(unsigned char *cp) { /* check if the dmap word is all free. if so, the * free buddy size is BUDMIN. */ if (*((uint32_t *) cp) == 0) return (BUDMIN); /* check if the dmap word is half free. if so, the * free buddy size is BUDMIN-1. */ if (*((unsigned short *) cp) == 0 || *((unsigned short *) cp + 1...
false
false
false
false
false
0
find_a_focus_unit_tile_to_center_on(void) { struct unit *punit; if (NULL != (punit = get_focus_unit_on_tile(get_center_tile_mapcanvas()))) { return unit_tile(punit); } else if (get_num_units_in_focus() > 0) { return unit_tile(head_of_units_in_focus()); } else { return NULL; } }
false
false
false
false
false
0
applyPoseToVertexData(const Pose* pose, VertexData* data, Real influence) { if (mTargetMode == TM_HARDWARE) { // Hardware // If target mode is hardware, need to bind our pose buffer // to a target texcoord assert(!data->hwAnimationDataList.empt...
false
false
false
false
false
0
askToSave() { if (isWindowModified()) { QMessageBox::StandardButton result; result = QMessageBox::warning(this, QApplication::applicationName(), tr("The game was modified.\nDo you want to save your changes?"), QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); if (result == QMessageBox::Sa...
false
false
false
false
false
0
__iommu_detach_device(struct iommu_domain *domain, struct device *dev) { if (unlikely(domain->ops->detach_dev == NULL)) return; domain->ops->detach_dev(domain, dev); trace_detach_device_from_domain(dev); }
false
false
false
false
false
0
collectLineCounts(FileInfo &FI) { for (SmallVector<GCOVFunction *, 16>::iterator I = Functions.begin(), E = Functions.end(); I != E; ++I) (*I)->collectLineCounts(FI); FI.print(); }
false
false
false
false
false
0
node_recomp_nvn( ofps *s, node *pp ) { int e, di = s->di; int i, j, k; #ifdef DEBUG printf("node_recomp_nvn for node ix %d\n",pp->ix); #endif /* Clear any midpoints and nodes */ while (pp->nvn > 0) { if (pp->mm[--pp->nvn] != NULL) del_mid(s, pp->mm[pp->nvn]); } s->nvnflag++; /* Make sure each node is...
false
false
false
false
false
0
ftrace_get_event_type_fields(ulong call, ulong *fields) { static int inited; static int fields_offset; static int class_offset; static int get_fields_offset; static ulong syscall_get_enter_fields_value; static ulong syscall_get_exit_fields_value; struct syment *sp; ulong class, get_fields; if (inited) goto...
false
false
false
false
false
0
previous() { if(bufferPos>0 || previousNormalize()) { UChar32 c=buffer.char32At(bufferPos-1); bufferPos-=UTF_CHAR_LENGTH(c); return c; } else { return DONE; } }
false
false
false
false
false
0
main(int argc,char *argv[]) { Tracer tr("main"); OptionParser options(title, examples); try { // must include all wanted options here (the order determines how // the help message is printed) options.add(help); options.add(inname); options.add(outname); options.add(ptitle); options....
false
false
false
false
false
0
delete_note(int x, int y) { std::vector<om_note>::iterator it; for (it = notes.begin(); it < notes.end(); it++) { if (it->x == x && it->y == y){ notes.erase(it); } } }
false
false
false
false
false
0
L29() {register object *base=vs_base; register object *sup=base+VM29; VC29 vs_check; vs_top=sup; goto TTL; TTL:; {register object V94; V94= Cnil; vs_base=vs_top; (void) (*Lnk165)(); vs_top=sup; V95= vs_base[0]; V94= make_cons(V95,Cnil); goto T370; T370:; if(!(((((object)VV[26])->s.s_dbind))==(((object)VV[2...
false
false
false
false
false
0
gen_doloop_end (operand0, operand1, operand2, operand3, operand4) rtx operand0; rtx operand1; rtx operand2; rtx operand3; rtx operand4; { rtx _val = 0; start_sequence (); { rtx operands[5]; operands[0] = operand0; operands[1] = operand1; operands[2] = operand2; operand...
false
false
false
false
false
0
appendSpaceAfter() { int len = currentLine.length(); if (charNum + 1 < len && !isWhiteSpace(currentLine[charNum + 1])) { formattedLine.append(1, ' '); spacePadNum++; if (maxCodeLength != string::npos) { // These compares reduce the frequency of function calls. if (isOkToSplitFormattedLine()) update...
false
false
false
false
false
0
ahash_prepare_alg(struct ahash_alg *alg) { struct crypto_alg *base = &alg->halg.base; if (alg->halg.digestsize > PAGE_SIZE / 8 || alg->halg.statesize > PAGE_SIZE / 8 || alg->halg.statesize == 0) return -EINVAL; base->cra_type = &crypto_ahash_type; base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK; base->cra_f...
false
false
false
false
false
0
Free () { uint32 offset = 0; for(uint32 x = 0; x < iNumFields; ++x) { switch(dst_format[x]) { case FT_LOGIC: offset += sizeof(bool); break; case FT_BYTE: offset += sizeof(char); break; case FT_INT: offset...
false
false
false
false
false
0
has_wakealarm(struct device *dev, const void *data) { struct rtc_device *candidate = to_rtc_device(dev); if (!candidate->ops->set_alarm) return 0; if (!device_may_wakeup(candidate->dev.parent)) return 0; return 1; }
false
false
false
false
false
0
unknown() { QPixmap pix; if ( QPixmapCache::find("unknown", pix) ) //krazy:exclude=iconnames return pix; QString path = global()->iconPath("unknown", KIconLoader::Small, true); //krazy:exclude=iconnames if (path.isEmpty()) { kDebug(264) << "Warning: Cannot find \"unknown\" icon....
false
false
false
false
false
0
Create_Switch_Table(int type, int nb_elem) { SwtTbl *t; t = (SwtTbl *) malloc(sizeof(SwtTbl) + sizeof(SwtElt) * (nb_elem - 1)); if (t == NULL) { fprintf(stderr, "Cannot allocate memory for switch table\n"); exit(1); } t->type = type; t->tbl_no = nb_swt_tbl++; t->next = cur_pred->swt_tb...
false
true
false
false
false
1
gnm_sheet_set_solver_params (Sheet *sheet, GnmSolverParameters *param) { g_return_if_fail (IS_SHEET (sheet)); g_return_if_fail (GNM_IS_SOLVER_PARAMETERS (param)); g_object_ref (param); g_object_unref (sheet->solver_parameters); sheet->solver_parameters = param; }
false
false
false
false
false
0
c_fmt_dialog_apply_add_choice (CFormatState *state, GnmStyleCond *cond, gboolean add) { if (cond != NULL) { GnmStyleConditions *sc; int index = -1; sc = gnm_style_conditions_dup (gnm_style_get_conditions (state->style)); if (sc == NULL) sc = gnm_style_conditions_new (state->sheet); if (!add) { GtkTreeI...
false
false
false
false
false
0
set_chainsetup_buffersize(int bsize) { // -------- DBC_REQUIRE(is_selected() == true); // -------- selected_chainsetup_repp->set_buffersize(bsize); }
false
false
false
false
false
0
KfwumSetupBuffersFromFile(unsigned char * pFileName, unsigned long fileSize) { tKFWUM_Status status = KFWUM_STATUS_OK; FILE * pFileHandle; pFileHandle = fopen((const char *)pFileName, "rb"); if(pFileHandle) { int count = fileSize...
false
false
false
false
false
0
action_search_change_state (GSimpleAction *action, GVariant *state, gpointer user_data) { LogviewWindow *logview = user_data; gboolean open = g_variant_get_boolean (state); LogviewLog *active_log = logview_manager_get_active_log (logview_manager_get ()); ...
false
false
false
false
false
0
output_translate_vect (automaton) automaton_t automaton; { ainsn_t ainsn; int insn_value; vla_hwint_t translate_vect; VLA_HWINT_CREATE (translate_vect, 250, "translate vector"); VLA_HWINT_EXPAND (translate_vect, description->insns_num); for (insn_value = 0; insn_value <= description->insns_num; insn_v...
false
false
false
false
false
0
Reset() { // Null out the local material data for (unsigned int i=0;i<localMatData.size();i++) localMatData[i] = NULL; groupIDs.resize(0); isLoaded = false; location.x = location.y = -1; location.lod = -1; localData = NULL; childLocationInfo.clear(); }
false
false
false
false
false
0
parse_tab_separation(char *s, char **s_words, int maxwords) { /* if the buffer is empty then there are no words */ if (!*s) return 0; /* otherwise there are some words */ int word_index = 0; s_words[word_index++] = s; char *p; for (p=s; *p; p++) { if (*p == '\t') { /* terminate the previou...
false
false
false
false
false
0
store_host_key(const char *hostname, int port, const char *keytype, const char *key) { FILE *rfp, *wfp; char *newtext, *line; int headerlen; char *filename, *tmpfilename; newtext = dupprintf("%s@%d:%s %s\n", keytype, port, hostname, key); headerlen = 1 + strcspn(newtext, " "); /* count ...
false
false
true
false
true
1
findReplaceAll() { // manage the list of find & replace strings UT_UCSChar* findString = getFindString(); UT_UCSChar* replaceString = getReplaceString(); bool var1 = _manageList(&m_findList, findString); bool var2 = _manageList(&m_replaceList, replaceString); if (var1 || var2) { _updateLists(); } FREEP(f...
false
false
false
false
false
0
kdetach(pid) int pid; { struct kreq req; /* kernel request */ if (_kio.ki_pid != lam_getpid()) { errno = ENOTATTACHED; return(ERROR); } LAM_ZERO_ME(req); req.kq_req = KQDETACH; req.kq_index = _kio.ki_index; req.kq_pid = (pid == 0) ? lam_getpid() : pid; if (_cio_kreqfront(&req) < 0) { return(ERRO...
false
false
false
false
false
0
modules_valid_suffix(const char *name) { return ((name = strrchr(name, '.'))) && !strcmp(name, ".la"); }
false
false
false
false
false
0
httpHeaderNameById(int id) { if (!Headers) Headers = httpHeaderBuildFieldsInfo(HeadersAttrs, HDR_ENUM_END); assert(id >= 0 && id < HDR_ENUM_END); return strBuf(Headers[id].name); }
false
false
false
false
false
0
SerializePartialToArray(void* data, int size) const { int byte_size = ByteSize(); if (size < byte_size) return false; uint8* start = reinterpret_cast<uint8*>(data); uint8* end = SerializeWithCachedSizesToArray(start); if (end - start != byte_size) { ByteSizeConsistencyError(byte_size, ByteSize(), end - st...
false
false
false
false
false
0
wcn36xx_dxe_init(struct wcn36xx *wcn) { int reg_data = 0, ret; reg_data = WCN36XX_DXE_REG_RESET; wcn36xx_dxe_write_register(wcn, WCN36XX_DXE_REG_CSR_RESET, reg_data); /* Setting interrupt path */ reg_data = WCN36XX_DXE_CCU_INT; wcn36xx_dxe_write_register_x(wcn, WCN36XX_DXE_REG_CCU_INT, reg_data); /***********...
false
false
false
false
false
0
ath9k_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct ath_softc *sc = hw->priv; struct ath_hw *ah = sc->sc_ah; struct ath_common *common = ath9k_hw_common(ah); struct ath_vif *avp = (void *)vif->drv_priv; struct ath_node *an = &avp->mcast_node; mutex_lock(&sc->mutex); if (c...
false
false
false
false
false
0
H5D__get_dxpl_cache(hid_t dxpl_id, H5D_dxpl_cache_t **cache) { herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_PACKAGE /* Check args */ assert(cache); /* Check for the default DXPL */ if(dxpl_id==H5P_DATASET_XFER_DEFAULT) *cache=&H5D_def_dxpl_cache; else if(H5D__...
false
false
false
false
false
0
zr36060_setup (struct videocodec *codec) { struct zr36060 *ptr; int res; dprintk(2, "zr36060: initializing MJPEG subsystem #%d.\n", zr36060_codecs); if (zr36060_codecs == MAX_CODECS) { dprintk(1, KERN_ERR "zr36060: Can't attach more codecs!\n"); return -ENOSPC; } //mem structure init codec->data = ptr...
false
false
false
false
false
0
do_debug(FILE *debug_fp) { static int counter = CHECK_EVERY_N_TIMES; static int ok = 1; long filesize; if(!debugfile) return(0); if(debug <= DEFAULT_DEBUG && !ps_global->debug_flush && !ps_global->debug_tcp && !ps_global->debug_timestamp && !ps_global->debug_imap ...
false
false
false
false
false
0
collectVars(const Expr& e, vector<Expr>& vars, set<Expr>& cache) { // Check the cache first if(cache.count(e) > 0) return; // Not processed yet. Cache the expression and proceed cache.insert(e); if(isLeaf(e)) vars.push_back(e); else for(Expr::iterator i=e.begin(), iend=e.end(); i!=iend; ++i) ...
false
false
false
false
false
0
read(FileName const & filename, bool check_format) { Lexer lexrc(lyxrcTags); lexrc.setFile(filename); LYXERR(Debug::LYXRC, "Reading '" << filename << "'..."); ReturnValues retval = read(lexrc, check_format); if (!check_format || retval != FormatMismatch) return retval == ReadOK; LYXERR(Debug::FILES, "Convertin...
false
false
false
false
false
0
NSS_CMSMessage_IsSigned(NSSCMSMessage *cmsg) { NSSCMSContentInfo *cinfo; /* walk down the chain of contentinfos */ for (cinfo = &(cmsg->contentInfo); cinfo != NULL; cinfo = NSS_CMSContentInfo_GetChildContentInfo(cinfo)) { switch (NSS_CMSContentInfo_GetContentTypeTag(cinfo)) { case SEC_OID_PKCS7_SIGNE...
false
false
false
false
false
0
msp_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) { struct msp_state *state = to_state(sd); struct i2c_client *client = v4l2_get_subdevdata(sd); if (vt->type != V4L2_TUNER_ANALOG_TV) return 0; if (!state->radio) { if (state->opmode == OPMODE_AUTOSELECT) msp_detect_stereo(client); vt->rxsubchans =...
false
false
false
false
false
0
unlink_blobs(register TABLE *table) { for (Field **ptr=table->field ; *ptr ; ptr++) { if ((*ptr)->flags & BLOB_FLAG) ((Field_blob *) (*ptr))->clear_temporary(); } }
false
false
false
false
false
0
get_pf2_tile_info(int tile_index) { int tile,color,pri; tile_index = 4*tile_index + pf2_vram_ptr; tile=m92_vram_data[tile_index]+(m92_vram_data[tile_index+1]<<8)+((m92_vram_data[tile_index+3]&0x80)<<9); color=m92_vram_data[tile_index+2]; if (m92_vram_data[tile_index+3]&1) pri = 2; else if (color&0x80) pr...
false
false
false
false
false
0
reset_player_state (GthMediaViewerPage *self) { if (self->priv->update_progress_id != 0) { g_source_remove (self->priv->update_progress_id); self->priv->update_progress_id = 0; } update_play_button (self, GST_STATE_NULL); self->priv->rate = 1.0; set_playing_state (sel...
false
false
false
false
false
0
privgroup_check_authorization(request_rec *r, const char *line, const void *parsed_require_line UNUSED) { MWAL_LDAP_CTXT *lc; int rc; #ifdef SIGPIPE # if APR_HAVE_SIGACTION apr_sigfunc_t *old_signal; # else void *old_signal; # endif #endif /* Decline to authorize anyon...
false
false
false
false
false
0
DoRemoveFromSelection( wxPGProperty* prop ) { for ( unsigned int i=0; i<m_selection.size(); i++ ) { if ( m_selection[i] == prop ) { wxPropertyGrid* pg = m_pPropGrid; if ( i == 0 && pg ->GetState() == this ) { // If first item (ie. one with the ...
false
false
false
false
false
0
dump_graph (void) { static int counter = 0; MonoObject *obj; HashEntry *entry; size_t prefix_len = strlen (dump_prefix); char *filename = (char *)alloca (prefix_len + 64); FILE *file; int edge_id = 0; sprintf (filename, "%s.%d.gexf", dump_prefix, counter++); file = fopen (filename, "w"); if (file == NULL) ...
false
true
false
false
true
1
inthash_hash_value(const char *value) { #if HTS_INTHASH_USES_MD5 == 1 /* compute a regular MD5 and extract two 32-bit integers */ MD5_CTX ctx; union { unsigned char md5digest[16]; inthash_keys mhashes[2]; inthash_keys hashes; } u; /* compute MD5 */ MD5Init(&ctx, 0); MD5Update(&ctx, (const uns...
true
true
false
false
false
1
parse_list_hardsoft( lList *cmdline, char *option, lListElem *job, int hard_field, int soft_field ) { lList *hard_list = NULL; lList *soft_list = NULL; lList *lp = NULL; lListElem *ep = NULL; DENTER(TOP_LAYER, "parse_list_hardsoft"); hard_list = lCopyList("job_hard_sublist", lGetList(job, hard_fiel...
false
false
false
false
false
0
cirrusfb_cleanup(struct fb_info *info) { struct cirrusfb_info *cinfo = info->par; switch_monitor(cinfo, 0); unregister_framebuffer(info); fb_dealloc_cmap(&info->cmap); dev_dbg(info->device, "Framebuffer unregistered\n"); cinfo->unmap(info); framebuffer_release(info); }
false
false
false
false
false
0
mma9553_event_handler(int irq, void *private) { struct iio_dev *indio_dev = private; struct mma9553_data *data = iio_priv(indio_dev); u16 stepcnt; u8 activity; struct mma9553_event *ev_activity, *ev_prev_activity, *ev_step_detect; int ret; mutex_lock(&data->mutex); ret = mma9553_read_activity_stepcnt(data, &ac...
false
false
false
false
false
0
_tenEpiRegPairXforms(Nrrd *npxfr, Nrrd **nmom, int ninLen) { static const char me[]="_tenEpiRegPairXforms"; double *xfr, *A, *B, hh, ss, tt; int ai, bi, zi, sz; sz = nmom[0]->axis[1].size; if (nrrdMaybeAlloc_va(npxfr, nrrdTypeDouble, 4, AIR_CAST(size_t, 5), AIR...
false
false
false
false
false
0
cp_lookup(JVM_CLASS *class, JVM_CONSTANT tag, const void *value) { int retval; if(!class || !value) { BAD_ARG(); return -1; } switch(tag) { case CONSTANT_Utf8: retval = cp_lookup_utf8(class, value); break; case CONSTANT_Integer: retval = cp_lookup_int(class, value); bre...
false
false
false
false
false
0
ensure_ring (void) { if (ring_buffer) return; ring_buffer = g_new0 (gchar *, ring_buffer_max_lines); ring_buffer_next_index = 0; ring_buffer_num_lines = 0; }
false
false
false
false
false
0
mp_find_ioapic(u32 gsi) { int i; if (nr_ioapics == 0) return -1; /* Find the IOAPIC that manages this GSI. */ for_each_ioapic(i) { struct mp_ioapic_gsi *gsi_cfg = mp_ioapic_gsi_routing(i); if (gsi >= gsi_cfg->gsi_base && gsi <= gsi_cfg->gsi_end) return i; } printk(KERN_ERR "ERROR: Unable to locate IOA...
false
false
false
false
false
0
setColor(const QColor &color) { m_color = color; QPixmap pix(24, 24); QPainter painter(&pix); painter.setRenderHint(QPainter::Antialiasing, false); painter.fillRect(pix.rect(), m_color); painter.setPen(m_color.darker()); painter.drawRect(pix.rect().adjusted(0, 0, -1, -1)); setIcon(pix); ...
false
false
false
false
false
0
_gedit_tab_get_can_close (GeditTab *tab) { GeditDocument *doc; GeditTabState ts; g_return_val_if_fail (GEDIT_IS_TAB (tab), FALSE); ts = gedit_tab_get_state (tab); /* if we are loading or reverting, the tab can be closed */ if ((ts == GEDIT_TAB_STATE_LOADING) || (ts == GEDIT_TAB_STATE_LOADING_ERROR)...
false
false
false
false
false
0
brasero_app_run_mainwin (BraseroApp *app) { BraseroAppPrivate *priv; priv = BRASERO_APP_PRIVATE (app); if (!priv->mainwin) return FALSE; if (priv->mainwin_running) return TRUE; priv->mainwin_running = 1; gtk_widget_show (GTK_WIDGET (priv->mainwin)); if (priv->gapp) g_signal_connect (priv->gapp, ...
false
false
false
false
false
0
cfg_getchar(file_backend *cfg_file, int flags) { const int skip_whitespace = (flags & SKIP_WHITESPACE); const int skip_comments = (flags & SKIP_COMMENTS); int c; assert(cfg_file->reader.read_ptr); do c = cfg_getchar_raw(cfg_file); while (skip_whitespace && isspace(c)); if (skip_comments && (c == '#' || c == '...
false
false
false
false
false
0
osm_gps_map_gps_add (OsmGpsMap *map, float latitude, float longitude, float heading) { OsmGpsMapPrivate *priv; g_return_if_fail (OSM_IS_GPS_MAP (map)); priv = map->priv; /* update the current point */ priv->gps->rlat = deg2rad(latitude); priv->gps->rlon = deg2rad(longitude); priv->gps_trac...
false
false
false
false
false
0
xmlrpc_struct_set_value(xmlrpc_env * const envP, xmlrpc_value * const strctP, const char * const key, xmlrpc_value * const valueP) { XMLRPC_ASSERT(key != NULL); xmlrpc_struct_set_value_n(envP, strctP, key, strlen(key), valueP); }
false
false
false
false
false
0
gnc_commodity_get_namespace(const gnc_commodity * cm) { if (!cm) return NULL; return gnc_commodity_namespace_get_name(GET_PRIVATE(cm)->namespace); }
false
false
false
false
false
0
nautilus_view_bump_zoom_level (NautilusView *view, int zoom_increment) { g_return_if_fail (NAUTILUS_IS_VIEW (view)); if (!nautilus_view_supports_zooming (view)) { return; } NAUTILUS_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->bump_zoom_level (view, zoom_increment); }
false
false
false
false
false
0
finaliseLightmap(const Rect& rect, PixelBox* lightmapBox) { createOrDestroyGPULightmap(); // deal with race condition where lm has been disabled while we were working! if (!mLightmap.isNull()) { // blit the normals into the texture if (rect.left == 0 && rect.t...
false
false
false
false
false
0
_install_fork_handlers(void) { int err; err = pthread_atfork(&_atfork_prepare, &_atfork_final, &_atfork_final); if (err) error ("pthread_atfork: %m"); return; }
false
false
false
false
false
0
NsTclConfigSectionCmd(ClientData dummy, Tcl_Interp *interp, int argc, char **argv) { Ns_Set *set; if (argc != 2) { Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], " key\"", NULL); return TCL_ERROR; } set = Ns_ConfigGetSection(argv[1]); if (set == ...
false
false
false
false
false
0
get_matching_location(int sortgroupref, List *sortgrouprefs, List *exprs) { ListCell *lcs; ListCell *lce; forboth(lcs, sortgrouprefs, lce, exprs) { if (lfirst_int(lcs) == sortgroupref) return exprLocation((Node *) lfirst(lce)); } /* if no match, caller blew it */ elog(ERROR, "get_matching_location: no ...
false
false
false
false
false
0
CalcSize() { if (m_sizeInitialized) return; m_sizeInitialized = true; wxSize size = GetClientSize(); if (!m_icons.empty()) { int icons_per_line = wxMax(1, (size.GetWidth() - BORDER) / (m_iconSize.GetWidth() + BORDER)); // Number of lines and line height int lines = (m_icons.size() - 1) / icons...
false
false
false
false
false
0
parseFilter(MprTestService *sp, cchar *filter) { char *str, *word, *tok; mprAssert(filter); if (filter == 0 || *filter == '\0') { return 0; } tok = 0; str = sclone(filter); word = stok(str, " \t\r\n", &tok); while (word) { if (mprAddItem(sp->testFilter, sclone(word))...
false
false
false
false
false
0
FreeModules() { auto int nmods, nsyms; auto struct Module *mp; /* Check to see if the module symbol tables need to be cleared. */ have_modules = 0; if ( num_modules == 0 ) return; if ( sym_array_modules == NULL ) return; for (nmods = 0; nmods < num_modules; ++nmods) { mp = &sym_array_modules[nmod...
true
true
false
false
false
1
_ml_RunT_recordconcat (ml_state_t *msp, ml_val_t arg) { ml_val_t r1 = REC_SEL(arg,0); ml_val_t r2 = REC_SEL(arg,1); if (r1 == ML_unit) return r2; else if (r2 == ML_unit) return r1; else { ml_val_t res = RecordConcat (msp, r1, r2); if (res == ML_unit) return RAISE_ERROR(msp, "recordc...
false
false
false
false
false
0
sylk_rtd_w_parse (SylkReader *state, char *str) { char *next; for (; *str != '\0' ; str = next) { next = sylk_next_token (str); switch (*str) { case 'R' : /* ;R n1 n2 ... n14: (Mac Plan only) n1..n8: Title freeze info. n9..n12: Scroll bar info. n13..n14: Split bar info. */ break; case 'A' : ...
false
false
false
false
false
0
item( unsigned long i ) const { if (i >= numComputedProperties) return DOMString(); return getPropertyName(computedProperties[i]); }
false
false
false
false
false
0
dbg_orphan_check(struct ubifs_info *c, struct ubifs_zbranch *zbr, void *priv) { struct check_info *ci = priv; ino_t inum; int err; inum = key_inum(c, &zbr->key); if (inum != ci->last_ino) { /* Lowest node type is the inode node, so it comes first */ if (key_type(c, &zbr->key) != UBIFS_INO_KEY) ubifs...
false
false
false
false
false
0
diodon_controller_change_history_accelerator (DiodonController* self, const gchar* accelerator) { DiodonConfigurationModel* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; DiodonKeybindingManager* _tmp7_ = NULL; const gchar* _tmp8_ = NULL; _tmp0_ = self->priv->configuration_model; _tmp1_ =...
false
false
false
false
false
0
newPf(const string& name, const Proof& pf) { return Proof(Expr(d_pfOp, d_em->newVarExpr(name), pf.getExpr())); }
false
false
false
false
false
0
set_addresses(struct net_device *dev) { unsigned int ioaddr = dev->base_addr; struct local_info *lp = netdev_priv(dev); struct netdev_hw_addr *ha; struct set_address_info sa_info; int i; /* * Setup the info structure so that by first set_address call it will do * SelectPage with the right page number. Hence ...
false
false
false
false
false
0
SiS_SetChrontelGPIO(struct SiS_Private *SiS_Pr, unsigned short myvbinfo) { unsigned int acpibase; unsigned short temp; if(!(SiS_Pr->SiS_ChSW)) return; acpibase = sisfb_read_lpc_pci_dword(SiS_Pr, 0x74); acpibase &= 0xFFFF; if(!acpibase) return; temp = SiS_GetRegShort((acpibase + 0x3c)); /* ACPI ...
false
false
false
false
false
0
deactivate (NMModem *_self, NMDevice *device) { NMModemBroadband *self = NM_MODEM_BROADBAND (_self); /* TODO: cancel SimpleConnect() if any */ /* Cleanup IPv4 addresses and routes */ g_clear_object (&self->priv->ipv4_config); g_clear_object (&self->priv->ipv6_config); g_clear_object (&self->priv->bearer); sel...
false
false
false
false
false
0