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
DoIconize(bool iconize) { if (m_wndTaskbarNotifier && thePrefs::DoMinToTray()) { if (iconize) { // Skip() will do it. //Iconize(true); if (SafeState()) { Show(false); } } else { Show(true); Raise(); } } else { // Will be done by Skip(); //Iconize(iconize); } }
false
false
false
false
false
0
sort_shell(int *data, int len) { int gap; int i; int j; int k; int tmp; gap = len / 2; while (gap) { for (i = gap; i < len; i++) { tmp = data[i]; for (j = i - gap; j >=0; j -= gap) { if (data[j] > tmp) { data[j + gap] = d...
false
false
false
false
false
0
createNode(Interval *itemInterval) { Key *key=new Key(itemInterval); //System.out.println("input: " + env + " binaryEnv: " + key.getEnvelope()); Node* node=new Node(new Interval(key->getInterval()),key->getLevel()); delete key; return node; }
false
false
false
false
false
0
read_float4(int f, float *x) { #ifdef _CRAY long buffer = 0; if (read(f, &buffer, 4) == 4) { /* convert IEEE float (buffer) to Cray float (x) */ if_to_c((long *)x, &buffer); return 1; } return 0; #else # ifdef LITTLE unsigned int n, *iptr; if (read(f, &n, 4) == 4) { iptr = (unsigned int *...
false
true
false
false
true
1
tcp_close ( struct tcp_connection *tcp, int rc ) { struct io_buffer *iobuf; struct io_buffer *tmp; /* Close data transfer interface */ intf_shutdown ( &tcp->xfer, rc ); tcp->flags |= TCP_XFER_CLOSED; /* If we are in CLOSED, or have otherwise not yet received a * SYN (i.e. we are in LISTEN or SYN_SENT), just d...
false
false
false
false
false
0
flickcurl_user_icon_uri(int farm, int server, char *nsid) { char buf[1024]; char *result; if(server && farm && nsid) { size_t len; /* http://farm{icon-farm}.static.flickr.com/{icon-server}/buddyicons/{nsid}.jpg */ sprintf(buf, "http://farm%d.static.flickr.com/%d/buddicons/%s.jpg", farm...
true
true
false
false
false
1
get_bookmarks (TrackerSparqlConnection *connection, GStrv search_terms, gint search_offset, gint search_limit, gboolean use_or_operator) { GError *error = NULL; TrackerSparqlCursor *c...
false
false
false
false
false
0
OpenUri( QString Uri ) const { KUrl url( Uri ); The::playlistController()->insertOptioned( url, Playlist::OnPlayMediaAction ); }
false
false
false
false
false
0
is_deleted(int recNo) { Town *townPtr = (Town*) get_ptr(recNo); if( !townPtr ) return 1; if( townPtr->population==0 ) return 1; return 0; }
false
false
false
false
false
0
ConnectCB(int status) { ostringstream osstr; // fprintf(stderr, "debug - dcf connectcb %u\n", status); if (status != 0) { if (reconnect == 0) { osstr << "Kismet drone connection to " << cli_host << ":" << cli_port << " failed (" << strerror(errno) << ") and reconnection " "not enabled"; _MSG(osstr....
false
false
false
false
false
0
qla2x00_read_optrom_data(struct scsi_qla_host *vha, uint8_t *buf, uint32_t offset, uint32_t length) { uint32_t addr, midpoint; uint8_t *data; struct qla_hw_data *ha = vha->hw; struct device_reg_2xxx __iomem *reg = &ha->iobase->isp; /* Suspend HBA. */ qla2x00_suspend_hba(vha); /* Go with read. */ midpoint ...
false
false
false
false
false
0
H5Pget_est_link_info(hid_t plist_id, unsigned *est_num_entries /*out*/, unsigned *est_name_len /*out*/) { herr_t ret_value = SUCCEED; /* return value */ FUNC_ENTER_API(FAIL) H5TRACE3("e", "ixx", plist_id, est_num_entries, est_name_len); /* Get values */ if(est_num_entries || est_name_len) { ...
false
false
false
false
false
0
copy_gfile(MainInfo *min, DirPane *src, DirPane *dst, GFile *from, GFile *to, GError **err) { GFileInfo *fi; gboolean ok; if(min == NULL || from == NULL || to == NULL) return FALSE; switch(ovw_overwrite_unary_file(dst, to)) { case OVW_SKIP: return TRUE; case OVW_CANCEL: return FALSE; case OVW_PROCEED: ...
false
false
false
false
false
0
edupd(int flg) { W *w; int wid, hei; if (dostaupd) { staupd = 1; dostaupd = 0; } ttgtsz(&wid, &hei); if ((wid >= 2 && wid != maint->w) || (hei >= 1 && hei != maint->h)) { nresize(maint->t, wid, hei); sresize(maint); } dofollows(); ttflsh(); nscroll(maint->t); help_display(maint); w = maint->curwin;...
false
false
false
false
false
0
add(const string& name, awt_mask_item *item) { awt_mask_item *existing = lookup(name); if (existing) return GB_export_errorf("ID '%s' already exists", name.c_str()); id[name] = item; return 0; }
false
false
false
false
false
0
mmc_add_disk(struct mmc_blk_data *md) { int ret; struct mmc_card *card = md->queue.card; add_disk(md->disk); md->force_ro.show = force_ro_show; md->force_ro.store = force_ro_store; sysfs_attr_init(&md->force_ro.attr); md->force_ro.attr.name = "force_ro"; md->force_ro.attr.mode = S_IRUGO | S_IWUSR; ret = devic...
false
false
false
false
false
0
free_this_dosum_info(Block *dosum_block, Dosum_info *dosum_info){ Dosum_info *temp; if (dosum_info != NULL){ if (dosum_info == dosum_block->dosum_info){ dosum_block->dosum_info = dosum_info->next; temp = dosum_info; } else { temp = dosum_block->dosum_info; ...
false
false
false
false
false
0
_pager_cb_event_border_remove(void *data __UNUSED__, int type __UNUSED__, void *event) { E_Event_Border_Remove *ev = event; Eina_List *l; Pager *p; EINA_LIST_FOREACH(pagers, l, p) { Eina_List *l2; Pager_Desk *pd; if (p->zone != ev->border->zone) continue; EINA_LIST_FO...
false
false
false
false
false
0
me_chghost(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { struct Client *target_p; if (!(target_p = find_person(parv[1]))) return -1; do_chghost(source_p, target_p, parv[2], 1); return 0; }
false
false
false
false
false
0
ItemDone() { CurrentItem = 0; CurrentSize = 0; TotalSize = 0; Status = string(); }
false
false
false
false
false
0
intel_i915_setup_chipset_flush(void) { int ret; u32 temp; pci_read_config_dword(intel_private.bridge_dev, I915_IFPADDR, &temp); if (!(temp & 0x1)) { intel_alloc_chipset_flush_resource(); intel_private.resource_valid = 1; pci_write_config_dword(intel_private.bridge_dev, I915_IFPADDR, (intel_private.ifp_resour...
false
false
false
false
false
0
_mpd_fix_sqrt(mpd_t *result, const mpd_t *a, mpd_t *tmp, const mpd_context_t *ctx, uint32_t *status) { mpd_context_t maxctx; MPD_NEW_CONST(u,0,0,1,1,1,5); mpd_maxcontext(&maxctx); u.exp = u.digits - ctx->prec + result->exp - 1; _mpd_qsub(tmp, result, &u, &maxctx, status); if (*st...
false
false
false
false
false
0
_builtin_abs (CSPARSE *parse, CS_FUNCTION *csf, CSARG *args, CSARG *result) { NEOERR *err; int n1 = 0; CSARG val; memset(&val, 0, sizeof(val)); err = eval_expr(parse, args, &val); if (err) return nerr_pass(err); result->op_type = CS_TYPE_NUM; n1 = arg_eval_num(parse, &val...
false
false
false
false
false
0
adjustSeparatorVisibility() { bool visibleNonSeparator = false; int separatorToShow = -1; for (int index = 0; index < q->actions().count(); ++index) { QAction* action = q->actions()[ index ]; if (action->isSeparator()) { if (visibleNonSeparator) { separatorToShow = index; visibleNon...
false
false
false
false
false
0
fireResourceGroupScriptingEnded(const String& groupName) { OGRE_LOCK_AUTO_MUTEX; for (ResourceGroupListenerList::iterator l = mResourceGroupListenerList.begin(); l != mResourceGroupListenerList.end(); ++l) { (*l)->resourceGroupScriptingEnded(groupName); } ...
false
false
false
false
false
0
Iconcat (int argc, lvar_t *argv) { Tobj ao; char buf2[50]; char *s; int i, n, bufi; for (bufi = 0, i = 0; i < argc; i++) { ao = argv[i].o; switch (Tgettype (argv[i].o)) { case T_STRING: if (bufi + (n = strlen (Tgetstring (ao)) + 1) > bufn) growbuf...
false
false
false
false
true
1
CMMF_POPODecKeyChallContentSetNextChallenge (CMMFPOPODecKeyChallContent *inDecKeyChall, long inRandom, CERTGeneralName *inSender, SECKEYPublicKey *inPubKey, void *passwdArg) { C...
false
false
false
false
false
0
match(int *addr) { if(!pattern) return 0; if(addr){ if(addr == zero) return 0; subexp[0].s.rsp = getline(*addr); } else subexp[0].s.rsp = loc2; subexp[0].e.rep = 0; if(rregexec(pattern, linebuf, subexp, MAXSUB)) { loc1 = subexp[0].s.rsp; loc2 = subexp[0].e.rep; return 1; } loc1 = loc2 = 0; retu...
false
false
false
false
false
0
do_move(line1, line2, n) linenr_t line1; linenr_t line2; linenr_t n; { char_u *q; int has_mark; if (n >= line1 && n < line2 && line2 > line1) { EMSG("Move lines into themselves"); return FAIL; } /* * adjust line marks (global marks done below) * if the lines are moved down, the marks in the moved ...
false
false
false
false
false
0
process_shutdown(auparse_state_t *au) { uid_t uid = -1; time_t time = 0; struct event *down; list_node_t *it; int success = 0; if (extract_virt_fields(au, NULL, &uid, &time, NULL, &success)) return 0; for (it = events->tail; it; it = it->prev) { struct event *event = it->data; if (event->success) { if...
false
false
false
false
false
0
generic_update(Scanline *scanline, MemAccess *memaccess, bool clear_cache) { static byte_t old_flash = 0xff; static byte_t old_lmode = 0xff; static byte_t old_border = 0xff; static byte_t old_color_expansion = 0xff; int fchg = 0; int width = get_real_width(); int height = get_real_height(); int flash ...
false
false
false
false
false
0
read_netdump(int fd, void *bufptr, int cnt, ulong addr, physaddr_t paddr) { off_t offset; struct pt_load_segment *pls; int i; offset = 0; /* * The Elf32_Phdr has 32-bit fields for p_paddr, p_filesz and * p_memsz, so for now, multiple PT_LOAD segment support is * restricted to 64-bit machines for netdump...
false
true
false
false
true
1
pump_execute_abort (call_frame_t *frame, xlator_t *this) { afr_private_t *priv = NULL; pump_private_t *pump_priv = NULL; afr_local_t *local = NULL; call_frame_t *sync_frame = NULL; int ret = 0; priv = this->private; pump_...
false
false
false
false
false
0
CheckPath(const wxString &name, const std::string &path) const { if( path.size() > 7 && path.substr(0, 7) == "file://" ) { std::string p = path.substr(7); if( !EvoSources::PathExists(p) ) { wxString msg = wxString::Format(_W("File '%s' does not exist."), name.c_str()); return msg; } } return _T("");...
false
false
false
false
false
0
lpfc_hba_clean_txcmplq(struct lpfc_hba *phba) { struct lpfc_sli *psli = &phba->sli; struct lpfc_sli_ring *pring; LIST_HEAD(completions); int i; for (i = 0; i < psli->num_rings; i++) { pring = &psli->ring[i]; if (phba->sli_rev >= LPFC_SLI_REV4) spin_lock_irq(&pring->ring_lock); else spin_lock_irq(&phba...
false
false
false
false
false
0
save_program_settings(void) { const gchar *program_name = *program_executable ? program_executable : program_load_script; if (*program_name) { RecentProgram *recent = (RecentProgram *) array_find(recent_programs, program_name, TRUE); GKeyFile *config = g_key_file_new(); char *configfile; if (!recent) ...
false
false
false
false
false
0
shallow_copy (struct Node* node) { struct Node* root = (struct Node *) create_tree (node->data); struct Node *start, *next; start = next = node->firstchild; if (start) { insert_node_under (shallow_copy (start), root); while ((next = next->nextsibling) != start) { insert_node...
false
false
false
false
false
0
cpyFAlist( FALIST *dst, FALIST *src ) { if( dst != NULL ) dst = freeFAlist( dst ); while( src != NULL ){ dst = appendFAlist( dst, src->fa ); src = src->next; } return( dst ); }
false
false
false
false
false
0
e_destination_is_evolution_list (const EDestination *dest) { g_return_val_if_fail (dest && E_IS_DESTINATION (dest), FALSE); return dest->priv->list_dests != NULL; }
false
false
false
false
false
0
vxp_resume(struct pcmcia_device *link) { struct vx_core *chip = link->priv; snd_printdd(KERN_DEBUG "RESUME\n"); if (pcmcia_dev_present(link)) { //struct snd_vxpocket *vxp = (struct snd_vxpocket *)chip; if (chip) { snd_printdd(KERN_DEBUG "calling snd_vx_resume\n"); snd_vx_resume(chip); } } snd_printdd(...
false
false
false
false
false
0
NET_SV_NumClients(void) { int count; int i; count = 0; for (i=0; i<MAXNETNODES; ++i) { if (ClientConnected(&clients[i])) { ++count; } } return count; }
false
false
false
false
false
0
calc_capacity(struct pm860x_battery_info *info, int *cap) { int ret; int data; int ibat; int cap_ocv = 0; int cap_cc = 0; ret = calc_ccnt(info, &ccnt_data); if (ret) goto out; soc: data = info->max_capacity * info->start_soc / 100; if (ccnt_data.total_dischg - ccnt_data.total_chg <= data) { cap_cc = ...
false
false
false
false
false
0
EnvisatFile_GetKeyByIndex( EnvisatFile *self, EnvisatFile_HeaderFlag mph_or_sph, int key_index ) { int entry_count; EnvisatNameValue **entries; /* * Select source list. */ if( mph_or_sph == MPH ) { en...
false
false
false
false
false
0
log_reset_stub (const char *filename,int line,const char *function) { if (!initialized || filename == NULL || function == NULL) { errno = EINVAL; return (-1); } if ((log_private.flags & LOG_HAVE_LOGFILE)) { print_one_line (&log_private,filename,line,function,_LOG_VERBOSE,"Attempting to reload log fil...
false
false
false
false
false
0
parse_xml_scredentials_element_end(void *data, const char *element) { char *el, *err; Scredentials *sc; Parse_xml_scredentials_state *state; if (parse_xmlns_name(element, NULL, &el) == -1) { parse_xml_set_error(ds_xprintf("Invalid namespace: %s", element)); return; } sc = *(Scredentials **) data; if ...
false
false
false
false
false
0
do_root_summary( datum_t *key, datum_t *val, void *arg ) { Source_t *source = (Source_t*) val->data; int rc; llist_entry *le; /* We skip dead sources. */ if (source->ds->dead) return 0; /* We skip metrics not to be summarized. */ if (llist_search(&(gmetad_config.unsummarized_metrics), (void...
false
false
false
false
false
0
nilfs_mdt_find_block(struct inode *inode, unsigned long start, unsigned long end, unsigned long *blkoff, struct buffer_head **out_bh) { __u64 next; int ret; if (unlikely(start > end)) return -ENOENT; ret = nilfs_mdt_read_block(inode, start, true, out_bh); if (!ret) { *blkoff = start; goto out; } ...
false
false
false
false
false
0
nfanode(struct vars * v, struct subre * t, FILE *f) /* for debug output */ { struct nfa *nfa; long ret = 0; assert(t->begin != NULL); #ifdef REG_DEBUG if (f != NULL) { char idbuf[50]; fprintf(f, "\n\n\n========= TREE NODE %s ==========\n", stid(t, idbuf, sizeof(idbuf))); } #endif nfa = newnfa...
false
false
false
false
false
0
parse_string(char *opt, const char *arg, size_t optsize) { int arglen = strlen(arg); switch (arg[0]) { case '\"': case '\'': if (arglen == 1 || arg[arglen - 1] != arg[0]) return OPT_ERR_UNMATCHED_QUOTATION; arg += 1; arglen -= 2; default: string_ncopy_do(opt, optsize, arg, arglen); return OPT_OK; } }
false
false
false
false
false
0
createTemplatesActions(int actions) { if (!actions) return; QAction *a = 0; Command *cmd = 0; // QList<int> ctx = QList<int>() << Constants::C_GLOBAL; Core::Context ctx(Constants::C_GLOBAL); ActionContainer *menu = actionManager()->actionContainer(Constants::M_TEMPLATES); Q_ASSERT(me...
false
false
false
false
false
0
check_path(struct request *r) { char *p; char c; enum { s_normal, s_slash, s_slashdot, s_slashdotdot, s_forbidden } s; p = r->path; s = s_normal; do { c = *p++; switch (s) { case s_normal: if (c == '/') s = s_slash; break; case s_slash: if (c == '/') s = s_forbidden; else i...
false
false
false
false
false
0
main_window_edit_on_undo (MainWindowEdit* self) { MainWindow* _tmp0_ = NULL; DocumentTab* _tmp1_ = NULL; DocumentTab* _tmp2_ = NULL; MainWindow* _tmp3_ = NULL; Document* _tmp4_ = NULL; Document* _tmp5_ = NULL; gboolean _tmp6_ = FALSE; gboolean _tmp7_ = FALSE; g_return_if_fail (self != NULL); _tmp0_ = self->pr...
false
false
false
false
false
0
uvc_endpoint_max_bpi(struct usb_device *dev, struct usb_host_endpoint *ep) { u16 psize; switch (dev->speed) { case USB_SPEED_SUPER: return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval); case USB_SPEED_HIGH: psize = usb_endpoint_maxp(&ep->desc); return (psize & 0x07ff) * (1 + ((psize >> 11) & 3)); case...
false
false
false
false
false
0
pm_gui_load_directories (PluginManagerGUI *pm_gui, GSList const *plugin_dirs, gboolean is_conf) { for (; plugin_dirs; plugin_dirs = plugin_dirs->next) { GtkTreeIter iter; gtk_list_store_append (pm_gui->model_directories, &iter); gtk_list_store_set (pm_gui->model_directories, &iter, DIR_NAME, (char *)...
false
false
false
false
false
0
NVSetPattern(struct fb_info *info, u32 clr0, u32 clr1, u32 pat0, u32 pat1) { struct nvidia_par *par = info->par; NVDmaStart(info, par, PATTERN_COLOR_0, 4); NVDmaNext(par, clr0); NVDmaNext(par, clr1); NVDmaNext(par, pat0); NVDmaNext(par, pat1); }
false
false
false
false
false
0
__nfit_spa_map(struct acpi_nfit_desc *acpi_desc, struct acpi_nfit_system_address *spa, enum spa_map_type type) { resource_size_t start = spa->address; resource_size_t n = spa->length; struct nfit_spa_mapping *spa_map; struct resource *res; WARN_ON(!mutex_is_locked(&acpi_desc->spa_map_mutex)); spa_map = find_s...
false
false
false
false
false
0
extract_my_addr(header_t *header) { const char *field; host_addr_t addr; field = header_get(header, "Remote-Ip"); if (!field) field = header_get(header, "X-Remote-Ip"); if (field) { if (!string_to_host_addr(field, NULL, &addr)) { if (extract_addr_debugging(0)) { g_debug("cannot parse Remote-IP header ...
false
false
false
false
false
0
thread_search(gboolean cancelable, gchar *text, void *(*func)(void *), void *arg) { gint rc; pthread_attr_t thread_attr; void *p; LOG(LOG_DEBUG, "IN : thread_search(%s)", arg); thread_running = 1; hit_count = 0; pthread_attr_init (&thread_attr) ; pthread_attr_setstacksize (&thread_attr, 512*1024) ; pthre...
false
false
false
false
false
0
mx_label_set_property (GObject *gobject, guint prop_id, const GValue *value, GParamSpec *pspec) { MxLabel *label = MX_LABEL (gobject); switch (prop_id) { case PROP_TEXT: mx_label_set_text (label, g_value_get_string (v...
false
false
false
false
false
0
snprint_objid(char *buf, size_t buf_len, const oid * objid, size_t objidlen) { size_t out_len = 0; if (sprint_realloc_objid((u_char **) & buf, &buf_len, &out_len, 0, objid, objidlen)) { return (int) out_len; } else { return -1; } }
false
false
false
false
false
0
mojo_list_remove(struct mojo_list* list) { struct mojo_list_elem *e = TAILQ_LAST(&list->mojo_list_head, Lists_head); TAILQ_REMOVE(&list->mojo_list_head, e, mojo_lists); /* Also free the associated object : */ free_object(e->obj); free(e); }
false
false
false
false
false
0
ai_good_time_to_rearm(object *objp) { int team; Assert(objp->type == OBJ_SHIP); team = Ships[objp->instance].team; return timestamp_valid(Iff_info[team].ai_rearm_timestamp); }
false
false
false
false
false
0
hx509_request_get_name(hx509_context context, hx509_request req, hx509_name *name) { if (req->name == NULL) { hx509_set_error_string(context, 0, EINVAL, "Request have no name"); return EINVAL; } return hx509_name_copy(context, req->name, name); }
false
false
false
false
false
0
plpgsql_compile_inline(char *proc_source) { char *func_name = "inline_code_block"; PLpgSQL_function *function; ErrorContextCallback plerrcontext; Oid typinput; PLpgSQL_variable *var; int parse_rc; MemoryContext func_cxt; int i; /* * Setup the scanner input and error info. We assume that this functi...
false
false
false
false
false
0
map_v4v6_hostent(hp, bpp, lenp) struct hostent *hp; char **bpp; int *lenp; { char **ap; if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ) return; hp->h_addrtype = AF_INET6; hp->h_length = IN6ADDRSZ; for (ap = hp->h_addr_list; *ap; ap++) { int i = sizeof(align) - ((u_long)*bpp % sizeof(align)); ...
false
false
false
false
false
0
UnionWiggleIteratorPop(WiggleIterator * wi) { UnaryWiggleIteratorData * data = (UnaryWiggleIteratorData *) wi->data; WiggleIterator * iter = data->iter; int count = 0; if (iter->done) { wi->done = true; return; } while (!iter->done) { if (!count) { wi->chrom = iter->chrom; wi->start = iter->start; ...
false
false
false
false
false
0
gdict_strategy_chooser_has_strategy (GdictStrategyChooser *chooser, const gchar *strategy) { GdictStrategyChooserPrivate *priv; GtkTreeIter iter; gboolean retval; g_return_val_if_fail (GDICT_IS_STRATEGY_CHOOSER (chooser), FALSE); g_return_val_if_fail (strategy != NULL, FALSE); priv = cho...
false
false
false
false
false
0
EatBlockComment() { if (c == '{') { do { ExtractChar(); if (c == '\n') { ++line; pos = 0; } if (in.eof()) Error("end of file in comment"); } while (c != '}'); ExtractChar(); } }
false
false
false
false
false
0
mono_debug_lookup_method_addresses (MonoMethod *method) { MonoDebugMethodAddressList *info; MonoDebugMethodHeader *header = NULL; struct LookupMethodAddressData data; MonoMethod *declaring; int count, size; GSList *list; guint8 *ptr; g_assert ((mono_debug_debugger_version == 4) || (mono_debug_debugger_version ...
false
false
false
false
false
0
aclMatchUser(void *proxyauth_acl, char *user) { acl_user_data *data = (acl_user_data *) proxyauth_acl; splayNode *Top = data->names; debug(28, 7) ("aclMatchUser: user is %s, case_insensitive is %d\n", user, data->flags.case_insensitive); debug(28, 8) ("Top is %p, Top->data is %s\n", Top, (char *) (To...
false
false
false
false
false
0
dev_frameset_master(const char *p1) { cpl_frameset *frset = NULL; cpl_frame *fr = NULL; int i = 0; KMO_TRY { KMO_TRY_EXIT_IF_NULL( frset = cpl_frameset_new()); for (i = 0; i < 3; i++) { KMO_TRY_EXIT_IF_NULL( fr = cpl_frame_new()); ...
false
false
false
false
false
0
_secret_util_get_properties_finish (GDBusProxy *proxy, gpointer result_tag, GAsyncResult *result, GError **error) { GSimpleAsyncResult *res; g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJE...
false
false
false
false
false
0
BsaveFind( void *theEnv) { struct defglobal *defglobalPtr; struct defmodule *theModule; /*=======================================================*/ /* If a binary image is already loaded, then temporarily */ /* save the count values since these will be overwritten */ /* in the process of saving t...
false
false
false
false
false
0
listen(struct sockaddr *sa, int len) { if(::bind(nSocket, sa, len) == -1) { return SOCKET_ERR; } if(::listen(nSocket, 511) == -1) { return SOCKET_ERR; } return SOCKET_OK; }
false
false
false
false
false
0
read_line (FILE *file) { static char *string; static size_t string_len; size_t pos = 0; char *ptr; if (!string_len) { string_len = 200; string = XNEWVEC (char, string_len); } while ((ptr = fgets (string + pos, string_len - pos, file))) { size_t len = strlen (string + pos); ...
false
false
false
false
false
0
swap(chain_list* head, chain_list* elemchain) { chain_list *chain, *list_elem, *swap_elem; if (!elemchain) { if (!head) return addchain(NULL,NULL); return head; } /*return a list of all possibilities with the rest of elemchain*/ swap_elem=swap(NULL,elemchain->NEXT); list_elem=hea...
false
false
false
false
false
0
imap_open_store_authenticate_p3( imap_store_t *ctx, struct imap_cmd *cmd ATTR_UNUSED, int response ) { if (response == RESP_NO) imap_open_store_bail( ctx ); else if (response == RESP_OK) imap_open_store_authenticate2( ctx ); }
false
false
false
false
false
0
cyttsp4_si_get_test_data(struct cyttsp4 *cd) { struct cyttsp4_sysinfo *si = &cd->sysinfo; void *p; int rc; si->si_ofs.test_size = si->si_ofs.pcfg_ofs - si->si_ofs.test_ofs; p = krealloc(si->si_ptrs.test, si->si_ofs.test_size, GFP_KERNEL); if (p == NULL) { dev_err(cd->dev, "%s: fail alloc test memory\n", __fun...
false
false
false
false
false
0
gain_moves (int mp) { moves += mp; // cruise control TODO: enable for NPC? if (player_in_control(&g->u)) { if (cruise_on) if (abs(cruise_velocity - velocity) >= acceleration()/2 || (cruise_velocity != 0 && velocity == 0) || (cruise_velocity == 0 && velocity != 0))...
false
false
false
false
false
0
output_alias_pair_p (alias_pair *p, symbol_alias_set_t *defined, cgraph_node_set set, varpool_node_set vset) { struct cgraph_node *node; struct varpool_node *vnode; if (lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl))) { if (TREE_CODE (p->decl) == VAR_DECL) { vnode = varpool_get_node ...
false
false
false
false
false
0
add_to_dst_predicate_list (struct loop *loop, edge e, tree prev_cond, tree cond) { if (!flow_bb_inside_loop_p (loop, e->dest)) return; if (!is_true_predicate (prev_cond)) cond = fold_build2 (TRUTH_AND_EXPR, boolean_type_node, prev_cond, cond); add_to_predicate_list (e->dest, cond); }
false
false
false
false
false
0
SetCollection(vtkCollection* c) { if(c) { this->Superclass::SetCollection(vtkDataArrayCollection::SafeDownCast(c)); if(!this->Collection) { vtkErrorMacro("vtkDataArrayCollectionIterator cannot traverse a " << c->GetClassName()); } } else { this->Supercla...
false
false
false
false
false
0
__ecereNameSpace__ecere__com___free(void * pointer) { if(pointer) { if(__ecereNameSpace__ecere__com__memMutex != pointer) __ecereMethod___ecereNameSpace__ecere__sys__Mutex_Wait(__ecereNameSpace__ecere__com__memMutex); __ecereNameSpace__ecere__com___myfree(pointer); if(__ecereNameSpace__ecere__com__memMutex != pointer) ...
false
false
false
false
false
0
Perl_newSTUB(pTHX_ GV *gv, bool fake) { CV *cv = MUTABLE_CV(newSV_type(SVt_PVCV)); PERL_ARGS_ASSERT_NEWSTUB; assert(!GvCVu(gv)); GvCV_set(gv, cv); GvCVGEN(gv) = 0; if (!fake && HvENAME_HEK(GvSTASH(gv))) gv_method_changed(gv); CvGV_set(cv, gv); CvFILE_set_from_cop(cv, PL_curcop); CvS...
false
false
false
false
false
0
udp_receiver(void *arg) { Octstr *datagram, *cliaddr; int ret; Msg *msg; Udpc *conn = arg; Octstr *ip; gwlist_add_producer(incoming_wdp); gwlist_add_producer(flow_threads); gwthread_wakeup(MAIN_THREAD_ID); /* remove messages from socket until it is closed */ while (bb_statu...
false
false
false
false
false
0
display_application (SCM frame, int indentation, SCM sport, SCM port, scm_print_state *pstate) { SCM proc = SCM_FRAME_PROC (frame); SCM name = (scm_is_true (scm_procedure_p (proc)) ? scm_procedure_name (proc) : SCM_BOOL_F); display_frame_expr ("[", scm_cons (scm_is_true (name) ? name : proc,...
false
false
false
false
false
0
is_visible_from_outside (struct ld_plugin_symbol *lsym, struct bfd_link_hash_entry *blhe) { struct bfd_sym_chain *sym; if (link_info.relocatable) return TRUE; if (link_info.export_dynamic || !link_info.executable) { /* Check if symbol is hidden by version script. */ if (bfd_hide_sym_by_v...
false
false
false
false
false
0
bubble(game *g, int x, int y) { g->add_msg("You step on some bubblewrap!"); g->sound(x, y, 18, "Pop!"); g->m.tr_at(x, y) = tr_null; }
false
false
false
false
false
0
check_usermap(const char *usermap_name, const char *pg_role, const char *auth_user, bool case_insensitive) { bool found_entry = false, error = false; if (usermap_name == NULL || usermap_name[0] == '\0') { if (case_insensitive) { if (pg_strcasecmp(pg_role, auth_user) == 0) return STATU...
false
false
false
false
false
0
freerdp_event_new(uint32 event_type, FRDP_EVENT_CALLBACK on_event_free_callback, void* user_data) { FRDP_EVENT* event = NULL; switch (event_type) { case FRDP_EVENT_TYPE_DEBUG: event = xnew(FRDP_EVENT); break; case FRDP_EVENT_TYPE_VIDEO_FRAME: event = (FRDP_EVENT*)xnew(FRDP_VIDEO_FRAME_EVENT); break;...
false
false
false
false
false
0
AvanceEdge(int no, float to, AlphaLigne *line, bool exact, float step) { AvanceEdge(no,to,exact,step); if ( swrData[no].sens ) { if ( swrData[no].curX <= swrData[no].lastX ) { line->AddBord(swrData[no].curX, 0, swrDat...
false
false
false
false
false
0
sge_deliver_events_immediately(u_long32 event_client_id) { lListElem *client = NULL; DENTER(TOP_LAYER, "sge_event_immediate_delivery"); sge_mutex_lock("event_master_mutex", SGE_FUNC, __LINE__, &Event_Master_Control.mutex); if ((client = get_event_client(event_client_id)) == NULL) { ERROR((SGE_EVENT...
false
false
false
false
false
0
isTrue(std::string s) { if(s.empty() || s=="false" || s=="0") return false; return true; }
false
false
false
false
false
0
formatTimeStamp(const QDateTime &time) { // TODO: provide an option for user to customize // time stamp format return QString().sprintf("%02d:%02d:%02d", time.time().hour(), time.time().minute(), time.time().second());; }
false
false
false
false
false
0
fsl_edma_fill_tcd(struct fsl_edma_hw_tcd *tcd, u32 src, u32 dst, u16 attr, u16 soff, u32 nbytes, u32 slast, u16 citer, u16 biter, u16 doff, u32 dlast_sga, bool major_int, bool disable_req, bool enable_sg) { u16 csr = 0; /* * eDMA hardware SGs require the TCDs to be stored in little * e...
false
false
false
false
false
0
try_apache_listing_unusual(file_info &info,const char *str) { info.clear(); // unusual apache listing: size DD-Mon-YYYY int n=sscanf(str,"%30s %2d-%3s-%d", info.size_str,&info.day,info.month_name,&info.year); if(n==4 && (info.size_str[0]=='-' || is_ascii_digit(info.size_str[0]))) { debug("...
false
false
false
false
false
0
rl_history_search_internal (count, dir) int count, dir; { HIST_ENTRY *temp; int ret, oldpos; rl_maybe_save_line (); temp = (HIST_ENTRY *)NULL; /* Search COUNT times through the history for a line whose prefix matches history_search_string. When this loop finishes, TEMP, if non-null, is the h...
false
false
false
false
false
0
findRowSection(long index, HTMLTableSectionElementImpl*& outSection, long& outIndex) const { HTMLTableSectionElementImpl* foot = tFoot(); HTMLTableSectionElementImpl* head = tHead(); HTMLTableSectionElementImpl* section = 0L; HTMLT...
false
false
false
false
false
0
gfs1_rgrp_print(struct gfs1_rgrp *rg) { gfs2_meta_header_print(&rg->rg_header); pv(rg, rg_flags, "%u", "0x%x"); pv(rg, rg_free, "%u", "0x%x"); pv(rg, rg_useddi, "%u", "0x%x"); pv(rg, rg_freedi, "%u", "0x%x"); gfs2_inum_print(&rg->rg_freedi_list); pv(rg, rg_usedme...
false
false
false
false
false
0
ucm_mergeTables(UCMTable *fromUTable, UCMTable *toUTable, const uint8_t *subchar, int32_t subcharLength, uint8_t subchar1) { UCMapping *fromUMapping, *toUMapping; int32_t fromUIndex, toUIndex, fromUTop, toUTop, cmp; ucm_sortTable(fromUTable); ucm_sortTable(toUTable); ...
false
false
false
false
false
0