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
gncs_get_widget (GNCSearchCoreType *fe) { GtkWidget *toggle, *menu, *box; GNCSearchReconciled *fi = (GNCSearchReconciled *)fe; g_return_val_if_fail (fi, NULL); g_return_val_if_fail (IS_GNCSEARCH_RECONCILED (fi), NULL); box = gtk_hbox_new (FALSE, 3); /* Build and connect the option menu */ ...
false
false
false
false
false
0
request_do_timeout_single2(request * k) { // This is a single request (the linked list one) timeout printf("Found timeout\n"); if (k->active && (!k->timedout)) k->timeout(k->reqno, k); if (!k->active) { g_tree_remove(tree, GINT_TO_POINTER((gint) k->reqno)); free(k); } k->timedout = TRUE; }
false
false
false
false
true
1
AVCE00ParseSuperSectionHeader(AVCE00ParseInfo *psInfo, const char *pszLine) { /*----------------------------------------------------------------- * If we're already inside a supersection or a section, then * return AVCFileUnknown right away. *--------------...
false
false
false
false
false
0
ican3_reset_module(struct ican3_dev *mod) { unsigned long start; u8 runold, runnew; /* disable interrupts so no more work is scheduled */ iowrite8(1 << mod->num, &mod->ctrl->int_disable); /* the first unallocated page in the DPM is #9 */ mod->free_page = DPM_FREE_START; ican3_set_page(mod, QUEUE_OLD_CONTROL);...
false
false
false
false
false
0
find_data (GCObject *obj) { ScanData *a = NULL; mword *o = (mword*)obj; if ((o [0] & SGEN_VTABLE_BITS_MASK) == SGEN_VTABLE_BITS_MASK) a = (ScanData*)o [1]; return a; }
false
false
false
false
false
0
il3945_get_prev_ieee_rate(u8 rate_idx) { u8 rate = il3945_rates[rate_idx].prev_ieee; if (rate == RATE_INVALID) rate = rate_idx; return rate; }
false
false
false
false
false
0
bet_array_initializes_account_settings ( gint account_number ) { GtkWidget *widget = NULL; GtkWidget *button = NULL; GtkWidget *toggled = NULL; gpointer pointeur; gint param; gint months; /* devel_debug_int ( account_number ); */ button = g_object_get_data ( G_OBJECT ( account_page ), "...
false
false
false
false
false
0
owlqn_pseudo_gradient( lbfgsfloatval_t* pg, const lbfgsfloatval_t* x, const lbfgsfloatval_t* g, const int n, const lbfgsfloatval_t c, const int start, const int end ) { int i; /* Compute the negative of gradients. */ for (i = 0;i < start;++i) { pg[i] = g[i]; } ...
false
false
false
true
false
1
cache_write_string(FILE *fp, string_ty *s) { if (fwrite_sane(fp, &s->str_length, sizeof(s->str_length))) return -1; if (fwrite_sane(fp, s->str_text, s->str_length)) return -1; return 0; }
false
false
false
false
false
0
gen_extendsfxf2 (rtx operand0, rtx operand1) { rtx _val = 0; start_sequence (); { rtx operands[2]; operands[0] = operand0; operands[1] = operand1; #line 4168 "../../src/gcc/config/i386/i386.md" { /* ??? Needed for compress_float_constant since all fp constants are LEGITIMATE_CONSTANT_P. */ ...
false
false
false
false
false
0
do_binh(hfsfile *ifile, int ofile) { int result; if (bh_start(ofile) == -1) { ERROR(errno, bh_error); return -1; } result = binhx(ifile); if (bh_end() == -1 && result == 0) { ERROR(errno, bh_error); result = -1; } return result; }
false
false
false
false
false
0
SetExpressionPosition(Expression* expr, int pos) { #ifdef ENABLE_DEBUGGER_SUPPORT if (!isolate()->debugger()->IsDebuggerActive()) { CodeGenerator::RecordPositions(masm_, pos); } else { // Check if the expression will be breakable without adding a debug break // slot. BreakableStatementChecker checke...
false
false
false
false
false
0
rpc_call_prepare( enum dht_rpc_op op, knode_t *kn, int delay, uint32 flags, dht_rpc_cb_t cb, void *arg) { int i; struct rpc_cb *rcb; struct guid muid; knode_check(kn); /* * Generate a new random MUID for the RPC. */ for (i = 0; i < 100; i++) { guid_random_muid(&muid); if (!hikset_contains(pending, &...
false
false
false
false
false
0
file_node_data_free (FileNodeData *data, GNode *node) { guint i; if (data->file) { if (!data->shallow) { g_object_weak_unref (G_OBJECT (data->file), file_weak_ref_notify, node); } if (!data->unowned) { g_object_unref (data->file...
false
false
false
false
false
0
print(Leaf *leaf) { switch(leaf->type) { case Leaf::Float : qDebug()<<"float"<<leaf->lvalue.f; break; case Leaf::Integer : qDebug()<<"integer"<<leaf->lvalue.i; break; case Leaf::String : qDebug()<<"string"<<*leaf->lvalue.s; break; case Leaf::Symbol : qDebug()<<"symbol"<<*leaf->lvalue.n; break;...
false
false
false
false
false
0
_dxfSaveSoftwareWindow(char *where) { Field image = NULL; char *host, *title; int depth; if (! DXParseWhere(where, &depth, NULL, &host, &title, NULL, NULL)) goto error; image = _dxf_CaptureSoftwareImage(depth, host, title); if (! image) goto error; return image; error: DXDelet...
false
false
false
false
false
0
hashtable_create(int size, int key64) { int req = size; struct hashtable *tbl; int node_size = key64 ? sizeof (struct ht_int64_node) : sizeof (struct ht_int32_node); /* Pick a power of 2 that can hold the requested size. */ if (size & (size-1) || size < 16) { size = 16; while (size < req) size *= ...
false
false
false
false
false
0
normal_velocities (GfsDomain * domain, GfsVariable ** u) { g_return_if_fail (domain != NULL); g_return_if_fail (div != NULL); gfs_domain_face_traverse (domain, FTT_XY, FTT_PRE_ORDER, FTT_TRAVERSE_LEAFS, -1, (FttFaceTraverseFunc) gfs_face_reset_normal_velocity, NULL); gfs_domain_face_traverse (dom...
false
false
false
false
false
0
command_get_state(char * token, Channel * c) { char id[256]; Context * ctx = NULL; ContextExtensionRC * ext = NULL; int err = 0; json_read_string(&c->inp, id, sizeof(id)); if (read_stream(&c->inp) != 0) exception(ERR_JSON_SYNTAX); if (read_stream(&c->inp) != MARKER_EOM) exception(ERR_JSON_S...
true
true
false
false
false
1
pruneCorridors(std::vector<bool> &board, position player_pos, std::map<position, int> &corridorEntrances) { notCorridors.clear(); notCorridors.resize(width*height); position pos; for (pos.x = 1; pos.x < width - 1; ++pos.x) { for (pos.y = 1; pos.y < height - 1; ++pos.y) { vis...
false
false
false
false
false
0
DoLinkerOptions(TiXmlElement* parentNode, ProjectBuildTarget* target) { TiXmlElement* node = parentNode->FirstChildElement("Linker"); if (!node) return; // no options TiXmlElement* child = node->FirstChildElement("Add"); while (child) { wxString option = cbC2U(child->Attribute("opti...
false
false
false
false
false
0
inputs_to_chains(void) { /** * - go through all inputs * - depending on connectivity, read either to a mixdown slot, or * directly to a per-chain slot */ for(size_t inputnum = 0; inputnum < inputs_repp->size(); inputnum++) { if (input_chain_count_rep[inputnum] > 1) { /* case-1a: read buff...
false
false
false
false
false
0
_evas_font_style_find_internal(const char *style, const char *style_end, Style_Map _map[], size_t map_len) { size_t i; while (style < style_end) { for (i = 0 ; i < map_len ; i++) { size_t len; const char *cur = _map[i].name; len = strlen(cur); ...
false
false
false
false
false
0
_sprint_operand(char *buf, int imm, uint32_t op, int *psr) { char *start = buf; if (!imm) { if (op & 0x80000000) { buf += sprintf(buf, "PSR%-3u", op & 0x7f); *psr = op & 0x7f; } else { buf += sprintf(buf, "r%-5u", op & 0xfff); } } else { i...
false
false
false
false
false
0
getOrInsertFunction(StringRef Name, Type *RetTy, ...) { va_list Args; va_start(Args, RetTy); // Build the list of argument types... std::vector<Type*> ArgTys; while (Type *ArgTy = va_arg(Args, Type*)) ArgTys.push_back(ArgTy); va_end(Args); // Build the function...
false
false
false
false
false
0
mga_crtc_prepare(struct drm_crtc *crtc) { struct drm_device *dev = crtc->dev; struct mga_device *mdev = dev->dev_private; u8 tmp; /* mga_resume(crtc);*/ WREG8(MGAREG_CRTC_INDEX, 0x11); tmp = RREG8(MGAREG_CRTC_DATA); WREG_CRT(0x11, tmp | 0x80); if (mdev->type == G200_SE_A || mdev->type == G200_SE_B) { WREG_...
false
false
false
false
false
0
AnalyzeFormalArguments(const SmallVectorImpl<ISD::InputArg> &Ins, CCAssignFn Fn) { unsigned NumArgs = Ins.size(); for (unsigned i = 0; i != NumArgs; ++i) { EVT ArgVT = Ins[i].VT; ISD::ArgFlagsTy ArgFlags = Ins[i].Flags; if (Fn(i, ArgVT, ArgVT, CCValAssign::Full, ArgFlags...
false
false
false
false
false
0
nfs4_check_clientid_trunking(struct nfs_client *a, struct nfs_client *b) { struct nfs41_server_owner *o1 = a->cl_serverowner; struct nfs41_server_owner *o2 = b->cl_serverowner; if (o1->major_id_sz != o2->major_id_sz) goto out_major_mismatch; if (memcmp(o1->major_id, o2->major_id, o1->major_id_sz) != 0) goto ou...
false
false
false
false
false
0
mxf_metadata_generic_sound_essence_descriptor_from_caps (MXFMetadataGenericSoundEssenceDescriptor * self, GstCaps * caps) { gint rate; gint channels; GstStructure *s; g_return_val_if_fail (MXF_IS_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (self), FALSE); g_return_val_if_fail (GST_IS_CAPS (caps), FAL...
false
false
false
false
false
0
GtkHexxagonBoard() : bbBoard(0,0), bbColor(0,0), bbMask(0,0) { set_events(Gdk::EXPOSURE_MASK | Gdk::STRUCTURE_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK); setPixmaps(); add_tileChangeListener(sigc::mem_fun(*this, &GtkHexxagonBoard::setPixmaps)); add_tileChangeListener(sigc::mem_fun(*this,...
false
false
false
false
false
0
CleanOverviews() { CPLString osSQL; if (nLevel != 0) return CE_Failure; osSQL.Printf("BEGIN"); OGR_DS_ExecuteSQL(hDS, osSQL.c_str(), NULL, NULL); CPLString osResolutionCond; osResolutionCond.Printf( "(pixel_x_size < %.15f OR pixel_x_size > ...
false
false
false
false
false
0
dlm_our_addr(struct sockaddr_storage *addr, int num) { if (!local_comm) return -1; if (num + 1 > local_comm->addr_count) return -1; memcpy(addr, local_comm->addr[num], sizeof(*addr)); return 0; }
false
false
false
false
false
0
execute( const MapCoordinate& pos, ContainerBase* subject, int num ) { Vehicle* eht = actmap->getField(pos)->vehicle; auto_ptr<ReactionFireSwitchCommand> rf ( new ReactionFireSwitchCommand( eht )); rf->setNewState( true ); ActionResult res = rf->execute( createContext( actmap )); ...
false
false
false
false
false
0
imap_canonicalize(char *result, char *raw, size_t maxlen) /* encode an IMAP password as per RFC1730's quoting conventions */ { size_t i, j; j = 0; for (i = 0; i < strlen(raw) && i < maxlen; i++) { if ((raw[i] == '\\') || (raw[i] == '"')) result[j++] = '\\'; result[j++] = raw[i]; } result...
false
false
false
false
false
0
ms_nick(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { const char *nick, *server; nick = parc > 1 ? parv[1] : "?"; server = parc > 7 ? parv[7] : "?"; sendto_wallops_flags(UMODE_WALLOP, &me, "Link %s cancelled, TS5 nickname %s on %s introduced (old server?)", client_p->name...
false
false
false
false
false
0
asus_nb_wmi_quirks(struct asus_wmi_driver *driver) { quirks = &quirk_asus_unknown; dmi_check_system(asus_quirks); driver->quirks = quirks; driver->panel_power = FB_BLANK_UNBLANK; /* overwrite the wapf setting if the wapf paramater is specified */ if (wapf != -1) quirks->wapf = wapf; else wapf = quirks->wap...
false
false
false
false
false
0
Wrapper_hash(TableWrapper *wp) { enum BucketFlag flag = wp->rep.flag; long this, that; long result = 121345; /* silly init value */ TableWalker tw; Dprint(("Whash\n")); if (wp->hashvalue != NOHASH) { /* memoized hash value */ return wp->hashvalue; } result *= (wp->rep.entries+1); (void) I...
false
false
false
false
false
0
get_gpt_header( blkid_probe pr, struct gpt_header *hdr, struct gpt_entry **ents, uint64_t lba, uint64_t lastlba) { struct gpt_header *h; uint32_t crc, orgcrc; uint64_t lu, fu; size_t esz; uint32_t hsz, ssz; ssz = blkid_probe_get_sectorsize(pr); /* whole sector is allocated for GPT header */ h = (s...
false
false
false
false
false
0
store_to_file (const char* key_file_name) const { create_protected_file(key_file_name); std::ofstream key_file_out(key_file_name, std::fstream::binary); if (!key_file_out) { return false; } store(key_file_out); key_file_out.close(); if (!key_file_out) { return false; } return true; }
false
false
false
false
false
0
of_overlay_apply(struct of_overlay *ov) { int i, err; /* first we apply the overlays atomically */ for (i = 0; i < ov->count; i++) { struct of_overlay_info *ovinfo = &ov->ovinfo_tab[i]; err = of_overlay_apply_one(ov, ovinfo->target, ovinfo->overlay); if (err != 0) { pr_err("%s: overlay failed '%s'\n", ...
false
false
false
false
false
0
makeEquivalent( const icu::UnicodeString &lhs, const icu::UnicodeString &rhs, icu::Hashtable* hash, UErrorCode &status) { if (U_FAILURE(status)) { return; } if (lhs == rhs) { // already equivalent return; } EquivIterator leftIter(*hash, lhs); EquivIterator rig...
false
false
false
false
false
0
gnc_lot_get_latest_split (GNCLot *lot) { LotPrivate* priv; SplitList *node; if (!lot) return NULL; priv = GET_PRIVATE(lot); if (! priv->splits) return NULL; priv->splits = g_list_sort (priv->splits, (GCompareFunc) xaccSplitOrderDateOnly); for (node = priv->splits; node->next; node = node->...
false
false
false
false
false
0
calc_freq_trad(int abscents) { int mHz, val; mHz = awe_abscent_to_mHz(abscents); val = mHz / 42; if (val < 0) val = 0; if (val > 255) val = 255; return val; }
false
false
false
false
false
0
selectLineEdit() { if (m_navigationBar->isHidden()) m_navigationBar->show(); m_tabWidget->currentLocationBar()->selectAll(); m_tabWidget->currentLocationBar()->setFocus(); }
false
false
false
false
false
0
dump_resync(int idx) { struct share_msgq *q; tandbuf *t; for (t = tbuf; t && t->bot[0]; t = t->next) if (!egg_strcasecmp(dcc[idx].nick, t->bot)) { for (q = t->q; q && q->msg[0]; q = q->next) { dprintf(idx, "%s", q->msg); } flush_tbuf(dcc[idx].nick); break; } }
false
false
false
false
false
0
posix_clock_fasync(int fd, struct file *fp, int on) { struct posix_clock *clk = get_posix_clock(fp); int err = 0; if (!clk) return -ENODEV; if (clk->ops.fasync) err = clk->ops.fasync(clk, fd, fp, on); put_posix_clock(clk); return err; }
false
false
false
false
false
0
__h_unlink(struct hash_table *ht, unsigned h, struct entry *e, struct entry *prev) { if (prev) prev->hash_next = e->hash_next; else ht->buckets[h] = e->hash_next; }
false
false
false
false
false
0
response_notify(DBusPendingCall *pending, void *user_data) { DBusMessage * reply; reply = dbus_pending_call_steal_reply(pending); DBusMessage * msg = dbus_message_copy(reply); wxDBusConnection * connection = (wxDBusConnection *) user_data; wxDBusConnectionEvent event(wxEVT_DBUS_ASYNC_RESPONSE, connection->GetID(),...
false
false
false
false
false
0
evaluate_if_cond (parser *p, DATASET *dset, int *err) { double x = NADBL; *err = realgen(NULL, p, dset, NULL, P_EXEC | P_SCALAR | P_PRIVATE); if (!*err) { if (p->ret->t == MAT) { gretl_matrix *m = p->ret->v.m; if (gretl_matrix_is_scalar(m)) { x = p->ret->v.m->val[0]; } else if (!g...
false
false
false
false
false
0
fldsok23(struct spq * old) { if (old->spq_class == 0 || !formok(old->spq_form, MAXFORM) || !ptrok(old->spq_ptr, JPTRNAMESIZE, 1) || !unameok(old->spq_uname, old->spq_uid) || !jobok(old->spq_job, old->spq_size, 0)) return 0; return 1; }
false
false
false
false
false
0
setNeuronThreshold(unsigned char layer, unsigned char neuron, float threshold) { if(layer % (numHiddenLayers + 2) > 0 ) neuronLayers[(layer % (numHiddenLayers + 2)) - 1][neuron % neuronLayers[(layer % (numHiddenLayers + 2)) - 1].size()]->setThreshold(threshold)...
false
false
false
false
false
0
resize_grid (p_state *state) { int ow = state->grid_width; int oh = state->grid_height; p_cell *ocells = state->cells; int x, y; XGetWindowAttributes (state->dpy, state->window, &state->xgwa); state->grid_width = state->xgwa.width /(state->char_width * state->scale); state->grid_height = state->xgwa....
false
false
false
false
false
0
sign_hmac (OAuthProxy *proxy, RestProxyCall *call, GHashTable *oauth_params) { OAuthProxyPrivate *priv; RestProxyCallPrivate *callpriv; char *key, *signature, *ep, *eep; GString *text; GHashTable *all_params; priv = PROXY_GET_PRIVATE (proxy); callpriv = call->priv; text = g_string_new (NULL); g_stri...
false
false
false
false
false
0
giggle_view_file_set_model (GiggleViewFile *view_history, GtkTreeModel *model) { GiggleViewFilePriv *priv; g_return_if_fail (GIGGLE_IS_VIEW_FILE (view_history)); g_return_if_fail (GTK_IS_TREE_MODEL (model)); priv = GET_PRIV (view_history); giggle_rev_list_view_set_model (GIGGLE_REV_LIST_VIEW (priv->...
false
false
false
false
false
0
write_tape( libspectrum_tape *tape, const char *filename ) { libspectrum_byte *buffer; FILE *f; size_t length, written; int error; length = 0; error = libspectrum_tape_write( &buffer, &length, tape, LIBSPECTRUM_ID_TAPE_TZX ); if( error ) return error; f = fopen( file...
false
false
false
false
true
1
get_free_reg (HARD_REG_SET dont_begin_colors, HARD_REG_SET free_colors, enum machine_mode mode) { int c; int last_resort_reg = -1; int pref_reg = -1; int pref_reg_order = INT_MAX; int last_resort_reg_order = INT_MAX; for (c = 0; c < FIRST_PSEUDO_REGISTER; c++) if (!TEST_HARD_REG_BIT (dont_begin_...
false
false
false
false
false
0
SwitchDisplayIds () { vtkActor2DCollection *Actors = this->GetMeshRenderer()->GetActors2D (); vtkActor2D *Actor; Actors->InitTraversal (); Actor = Actors->GetNextActor2D (); while (Actor) { if (Actor == this->rectActor) { // Display was On. this->SetDisplayIdsOff (); return; } Actor = Actors->G...
false
false
false
false
false
0
main(int argc, const char **argv) /*{{{*/ { CommandLine::Args Args[] = { {'h',"help","help",0}, {'v',"version","version",0}, {'t',"tempdir","APT::ExtractTemplates::TempDir",CommandLine::HasArg}, {'c',"config-file",0,CommandLine::ConfigFile}, {'o',"option",0,CommandLine::ArbItem}, {0,0,0,0}}; // Set u...
false
false
false
false
false
0
ACL_ListHashInit() { ACLListHash = PR_NewHashTable(200, ACL_ListHashKeyHash, ACL_ListHashKeyCompare, ACL_ListHashValueCompare, &ACLPermAllocOps, NULL); if (ACLListHash == NULL) { ereport(LOG_SECURITY, "Unable to allocate ACL List Hash\n"); return; } return; }
false
false
false
false
false
0
exist_non_indexing_operands_for_use_p (tree use, gimple stmt) { tree operand; stmt_vec_info stmt_info = vinfo_for_stmt (stmt); /* USE corresponds to some operand in STMT. If there is no data reference in STMT, then any operand that corresponds to USE is not indexing an array. */ if (!STMT_VINFO_DAT...
false
false
false
false
false
0
shmem_seek_hole_data(struct address_space *mapping, pgoff_t index, pgoff_t end, int whence) { struct page *page; struct pagevec pvec; pgoff_t indices[PAGEVEC_SIZE]; bool done = false; int i; pagevec_init(&pvec, 0); pvec.nr = 1; /* start small: we may be there already */ while (!done) { pvec.nr = fin...
false
false
false
false
false
0
probinit( double *pc, u4 maxbits) { u8 i,j,k; for (i=0; i<=maxbits; ++i) { pc[i] = 0.0; } for (i=0; i<=maxbits; ++i) { k = 1; for (j=1; j<=i; ++j) { k = (k * (maxbits+1-j)) / j; } pc[ftab[i]] += ldexp((double)k,-32); } }
false
false
false
false
false
0
atc_select_mic_in(struct ct_atc *atc) { struct hw *hw = atc->hw; struct ct_mixer *mixer = atc->mixer; struct src *src; if (hw->is_adc_source_selected(hw, ADC_MICIN)) return 0; mixer->set_input_left(mixer, MIX_LINE_IN, NULL); mixer->set_input_right(mixer, MIX_LINE_IN, NULL); hw->select_adc_source(hw, ADC_MIC...
false
false
false
false
false
0
qfits_header_setitem( qfits_header * hdr, int idx, char * key, char * val, char * com, char ...
false
true
false
false
false
1
addKeyword (const char *const string, langType language, int value) { const unsigned long hashedValue = hashValue (string); hashEntry *entry = getHashTableEntry (hashedValue); if (entry == NULL) { hashEntry **const table = getHashTable (); table [hashedValue] = newEntry (string, language, value); } else { ...
false
false
false
false
false
0
update_type(ir_expression *ir) { if (ir->operands[0]->type->is_vector()) ir->type = ir->operands[0]->type; else ir->type = ir->operands[1]->type; }
false
false
false
false
false
0
list_delete(struct list_type **h, struct list_type *i) { for (; *h; h = &((*h)->next)) if (*h == i) { *h = i->next; return 1; } return 0; }
false
false
false
false
false
0
str_regsub(const char *pattern, const char *replacement, String *text, int cflags, int eflags, int all) { regex_t compiled[1]; String *ret; int err; if (!pattern || !replacement || !text) return set_errnull(EINVAL); if ((err = regexpr_compile(compiled, pattern, cflags))) return set_errnull(err); ret = str_...
false
false
false
false
false
0
vmw_user_shader_free(struct vmw_resource *res) { struct vmw_user_shader *ushader = container_of(res, struct vmw_user_shader, shader.res); struct vmw_private *dev_priv = res->dev_priv; ttm_base_object_kfree(ushader, base); ttm_mem_global_free(vmw_mem_glob(dev_priv), vmw_user_shader_size); }
false
false
false
false
false
0
avision_open_extended (const char* device_name, Avision_Connection* av_con, SANEI_SCSI_Sense_Handler sense_handler, void *sense_arg, int *buffersize) { if (av_con->connection_type == AV_SCSI) { return sanei_scsi_open_extended (device_name, &(av_con->scsi_fd), sense_handler, sense_arg...
false
false
false
false
false
0
PopupTipWindow(int px, int py, const char *text) { int newx, newy; Window child; Tip.px = px; Tip.py = py; if (!ShowTips) return; if (Tip.win != None) DestroyTipWindow(); Tip.tw = FlocaleTextWidth(FStatusFont, (char *)text, strlen(text)) + 6; Tip.th = FStatusFont->height + 4; XTranslateCoord...
false
false
false
false
false
0
e_container_border_stack_below(E_Border *bd, E_Border *below) { int pos = 0, i; if (!bd->zone) return; /* Remove from old layer */ for (i = 0; i < 11; i++) { bd->zone->container->layers[i].clients = eina_list_remove(bd->zone->container->layers[i].clients, bd); } /* Add to ne...
false
false
false
false
false
0
gnome_scan_job_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { g_return_if_fail (GNOME_IS_SCAN_JOB (object)); switch (prop_id) { case PROP_SETTINGS: g_value_set_object (value, gnome_scan_job_get_settings (GNOME_SCAN_JOB (object))); break; case PROP_SCANNER: g_...
false
false
false
false
false
0
chash_dequeue_srv(struct server *s) { while (s->lb_nodes_now > 0) { if (s->lb_nodes_now >= s->lb_nodes_tot) // should always be false anyway s->lb_nodes_now = s->lb_nodes_tot; s->lb_nodes_now--; if (s->proxy->lbprm.chash.last == &s->lb_nodes[s->lb_nodes_now].node) s->proxy->lbprm.chash.last = chash_skip_no...
false
false
false
false
false
0
on_gm_mcp_userlist_view_weak_notify(gpointer data, GObject *obj) { GmMcpUserlistView *view = (GmMcpUserlistView *)(data); GtkWidget *vbox; GList *children; if (GM_IS_WORLD_VIEW(view->view)) { gtk_widget_destroy(GTK_WIDGET(view->scrolled_window)); gtk_widget_destroy(view->label); vbox = gtk_paned_get_child2...
false
false
false
false
false
0
get_space (FILE *f, int c) { while (true) { if (c == ' ') in_column++; else if (c == '\t') { tabs = true; in_column = (in_column / TABWIDTH + 1) * TABWIDTH; } else return c; c = getc (f); } }
false
true
false
false
true
1
db_entry_deref(cache_entry* entry, bool table){ DEBUG("[#] Decrementing refcount - was: %d\n", entry->refs); entry->refs--; //Deref the table if (table && entry->table){ db_table_deref(entry->table); } //Actually clean up the entry if (entry->refs == 0 && entry->deleted){ db_entry_actually_delete(entry); ...
false
false
false
false
false
0
stv0900_get_frontend(struct dvb_frontend *fe) { struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct stv0900_state *state = fe->demodulator_priv; struct stv0900_internal *intp = state->internal; enum fe_stv0900_demod_num demod = state->demod; struct stv0900_signal_info p_result = intp->result[demod]...
false
false
false
false
false
0
c_ekkputl(const EKKfactinfo * COIN_RESTRICT2 fact, const int *COIN_RESTRICT mpt2, double *COIN_RESTRICT dwork1, double del3, int nincol, int nuspik) { double * COIN_RESTRICT dwork3 = fact->xeeadr+fact->nnentu; int * COIN_RESTRICT hrowi = fact->xeradr+fact->nnentu; int offset = fact->R_eta...
false
false
false
false
false
0
isc__rdatalist_first(dns_rdataset_t *rdataset) { dns_rdatalist_t *rdatalist; rdatalist = rdataset->private1; rdataset->private2 = ISC_LIST_HEAD(rdatalist->rdata); if (rdataset->private2 == NULL) return (ISC_R_NOMORE); return (ISC_R_SUCCESS); }
false
false
false
false
false
0
ipc_bufpool_spaceleft(struct ipc_bufpool* pool) { if( pool == NULL) { cl_log(LOG_ERR, "ipc_bufpool_spaceleft:" " invalid input argument"); return 0; } return pool->endpos - pool->currpos; }
false
false
false
false
false
0
getpwnam(const char *name) { const char *path = getenv(PASSWD_CONFIG_KEY); if (!path) return NULL; FILE *stream = fopen(path, "r"); if (!stream) return NULL; struct passwd *entry; while ((entry = fgetpwent(stream))) { if (strcmp(entry->pw_name, name) == 0) { fclose(stream); return ...
false
false
false
false
false
0
begin() const { shared_ptr<MatrixIterator> m(new MatrixIterator(*this)); return *m; }
false
false
false
false
false
0
scrollbar_jump_callback(Widget w, XtPointer client_data, XtPointer percent_ptr) { float percent=*(float*)percent_ptr; int xmin, ymin, xmax, ymax, xsize, ysize; int scroll_x, scroll_y; if (!can_client_change_view()) { return; } get_mapview_scroll_window(&xmin, &ymin, &xmax, &ymax, &xsize, &ysiz...
false
false
false
false
false
0
f_ellip_third(union argument *arg) { struct value a1,a2; double ak,en,q; (void) arg; /* avoid -Wunused warning */ (void) pop(&a1); (void) pop(&a2); if (fabs(imag(&a1)) > zero || fabs(imag(&a2)) > zero) int_error(NO_CARET, "can only do elliptic integrals of reals"); ak=real(&a1); en=...
false
false
false
false
false
0
ReadMSBShort(unsigned char **p,size_t *length) { int c, value; register long i; unsigned char buffer[2]; if (*length < 2) return(-1); for (i=0; i < 2; i++) { c=(*(*p)++); (*length)--; buffer[i]=(unsigned char) c; } value=buffer[0] << 8; value|=buffer[1]; return(val...
true
true
false
false
false
1
isns_default_security_context(int server_only) { static isns_security_t *ctx; if (ctx == NULL) ctx = __create_security_context(isns_config.ic_auth_name, isns_config.ic_auth_key_file, server_only? NULL : isns_config.ic_server_key_file); return ctx; }
false
false
false
false
false
0
qwtDrawRectSymbols( QPainter *painter, const QPointF *points, int numPoints, const QwtSymbol &symbol ) { const QSize size = symbol.size(); QPen pen = symbol.pen(); pen.setJoinStyle( Qt::MiterJoin ); painter->setPen( pen ); painter->setBrush( symbol.brush() ); painter->setRenderHint( QPainte...
false
false
false
false
false
0
Jim_ReaddirCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { const char *dirPath; DIR *dirPtr; struct dirent *entryPtr; int nocomplain = 0; if (argc == 3 && Jim_CompareStringImmediate(interp, argv[1], "-nocomplain")) { nocomplain = 1; } if (argc != 2 && !nocomplain) { ...
false
false
false
false
false
0
gee_hash_map_entry_set_construct (GType object_type, GType k_type, GBoxedCopyFunc k_dup_func, GDestroyNotify k_destroy_func, GType v_type, GBoxedCopyFunc v_dup_func, GDestroyNotify v_destroy_func, GeeHashMap* map) { GeeHashMapEntrySet * self = NULL; GeeHashMap* _tmp0_ = NULL; GeeHashMap* _tmp1_ = NULL; g_return_val...
false
false
false
false
false
0
last() { if( !enabled() ) return false; // look at lastidx 's previous's next range // prev(x) is garranteed to not contain x, and next(prev(x)) will contain x off_t min_size_decr = min( reader[0]->size()-1, reader[1]->size()-1 ); off_t offset = offsetConstraint->prev( min_size_decr ); hexGui[...
false
false
false
false
false
0
ftrace_trace_stack(struct trace_array *tr, struct ring_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs) { if (!(tr->trace_flags & TRACE_ITER_STACKTRACE)) return; __ftrace_trace_stack(buffer, flags, skip, pc, regs); }
false
false
false
false
false
0
object_verify_pe_range(lList **alpp, const char *pe_name, lList *pe_range, const char *object_descr) { lListElem *relem = NULL; unsigned long pe_range_max; unsigned long pe_range_min; DENTER(TOP_LAYER, "object_verify_pe_range"); /* ensure jobs PE range list reque...
false
false
false
false
false
0
SetPointFrameNumber(int frameNumber) { this->m_PointFrameNumber = frameNumber; PointIterator it = this->BeginPoint(); while (it != this->EndPoint()) { (*it)->SetFrameNumber(frameNumber); ++it; } }
false
false
false
false
false
0
locate_simplify_state(struct rev_info *revs, struct commit *commit) { struct merge_simplify_state *st; st = lookup_decoration(&revs->merge_simplification, &commit->object); if (!st) { st = xcalloc(1, sizeof(*st)); add_decoration(&revs->merge_simplification, &commit->object, st); } return st; }
false
false
false
false
false
0
ld9040_prepare(struct drm_panel *panel) { struct ld9040 *ctx = panel_to_ld9040(panel); int ret; ret = ld9040_power_on(ctx); if (ret < 0) return ret; ld9040_init(ctx); ret = ld9040_clear_error(ctx); if (ret < 0) ld9040_unprepare(panel); return ret; }
false
false
false
false
false
0
create_open_with_page (NautilusPropertiesWindow *window) { GtkWidget *vbox; char *mime_type; GList *files = NULL; NautilusFile *target_file; target_file = get_target_file (window); mime_type = nautilus_file_get_mime_type (target_file); if (!is_multi_file_window (window)) { files = g_list_prepend (NULL, targe...
false
false
false
false
false
0
allocate(Canvas* c, const Allocation& a, Extension& e) { Coord gap = specs_->cable_gap(); if (dimension_ == Dimension_X) { e.set_xy(c, a.left() - gap, a.bottom(), a.right() + gap, a.top()); } else { e.set_xy(c, a.left(), a.bottom() - gap, a.right(), a.top() + gap); } e.set_xy(c, e.left() - 1, e.bo...
false
false
false
false
false
0
IoSystemCall_asyncRun(IoSystemCall *self, IoObject *locals, IoMessage *m) { //doc SystemCall asyncRun(command, argList, envMap) Run the system call. IoSymbol *command = IoMessage_locals_symbolArgAt_(m, locals, 0); List *args = IoList_rawList(IoMessage_locals_listArgAt_(m, locals, 1)); IoMap *envMap = IoMessage_loc...
false
false
false
false
false
0
isAllSet() { return _bold_set && _italic_set && _name_set && _size_set && _strikeout_set && _underline_set; }
false
false
false
false
false
0