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
Invalidate(LineLayout::validLevel validity_) { if (cache && !allInvalidated) { for (int i = 0; i < length; i++) { if (cache[i]) { cache[i]->Invalidate(validity_); } } if (validity_ == LineLayout::llInvalid) { allInvalidated = true; } } }
false
false
false
false
false
0
hash_name(struct fuse *f, struct node *node, fuse_ino_t parentid, const char *name) { size_t hash = name_hash(f, parentid, name); struct node *parent = get_node(f, parentid); if (strlen(name) < sizeof(node->inline_name)) { strcpy(node->inline_name, name); node->name = node->inline_name; } else { node->...
false
true
false
false
false
1
scanBasename(char const* s, char const** a, char const** b) { char const* s1 = s; char const* s2 = s; if (s != 0) { for (; *s; ++s) { switch (*s) { case SLASH: #ifdef _WIN32 case COLON: #endif s1 = s2 = s; break; case '....
false
false
false
false
false
0
PK11_FindKeyByDERCert(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx) { CK_OBJECT_HANDLE keyHandle; if((slot == NULL) || (cert == NULL)) { return NULL; } keyHandle = pk11_findKeyObjectByDERCert(slot, cert, wincx); if (keyHandle == CK_INVALID_HANDLE) { return NULL; } ret...
false
false
false
false
false
0
getPropertyCSSValue( int propertyID ) const { if(!m_lstValues) return 0; QListIterator<CSSProperty*> lstValuesIt(*m_lstValues); CSSProperty *current; while ( lstValuesIt.hasNext() ) { current = lstValuesIt.next(); if (current->m_id == propertyID) return current->value(); ...
false
false
false
false
false
0
iproute_get(in_addr_t dst, in_addr_t *gw) { struct ipaddr_req { struct nlmsghdr n; struct rtmsg r; char buf[4096]; } req; struct rtmsg *r; struct rtattr *tb[RTA_MAX+1]; int len; in_addr_t res = 0; if (gw) *gw = 0; if (!rth) open_rth(); if (!rth) return -1; memset(&req, 0, sizeof(req) - 4096);...
true
true
false
false
false
1
manager_pause_queue_member(struct mansession *s, const struct message *m) { const char *queuename, *interface, *paused_s, *reason; int paused; interface = astman_get_header(m, "Interface"); paused_s = astman_get_header(m, "Paused"); queuename = astman_get_header(m, "Queue"); /* Optional - if not supplied, pa...
false
false
false
false
false
0
bcm54xx_phydsp_config(struct phy_device *phydev) { int err, err2; /* Enable the SMDSP clock */ err = bcm54xx_auxctl_write(phydev, MII_BCM54XX_AUXCTL_SHDWSEL_AUXCTL, MII_BCM54XX_AUXCTL_ACTL_SMDSP_ENA | MII_BCM54XX_AUXCTL_ACTL_TX_6DB); if (err < 0) return err; if (BRCM_PHY_MODEL(phydev) == P...
false
false
false
false
false
0
tcommit_one(struct tfile_t* tf, size_t off) { #ifdef __WINNT__ wchar_t* wtf = 0; wchar_t* wf = 0; #endif int old_errno; if (fchmod(tf->fd, tf->mode)) goto err; #if 0 /* TODO: make this optional */ if (fsync(tf->fd)) goto err; #endif if (close(tf->fd)) goto err; /* TODO: rename is broken on windows. it ...
false
false
false
false
false
0
set_7220_ibspeed_fast(struct qib_pportdata *ppd, u32 speed) { ppd->cpspec->ibcddrctrl &= ~(IBA7220_IBC_SPEED_AUTONEG_MASK | IBA7220_IBC_IBTA_1_2_MASK); if (speed == (QIB_IB_SDR | QIB_IB_DDR)) ppd->cpspec->ibcddrctrl |= IBA7220_IBC_SPEED_AUTONEG_MASK | IBA7220_IBC_IBTA_1_2_MASK; else ppd->cpspec->ibcddrctrl...
false
false
false
false
false
0
physdev_print(const void *ip, const struct xt_entry_match *match, int numeric) { const struct xt_physdev_info *info = (const void *)match->data; printf(" PHYSDEV match"); if (info->bitmask & XT_PHYSDEV_OP_ISIN) printf("%s --physdev-is-in", info->invert & XT_PHYSDEV_OP_ISIN ? " !":""); if (info->bitmask ...
false
false
false
false
false
0
lowerMinNRows(Histogram * hist, double value) { if (hist->max != hist->min) { double ratio = (hist->max - hist->min) / (hist->max - value); int row, column; for (row = 0; row < hist->count; row++) // Careful to go from high to low to avoid compound effects as // you push weight to the high bins for (col...
false
false
false
false
false
0
strCaseCompare(const char * s1, const char * s2) { ASSERT(s1 != NULL && s2 != NULL); while(1) { if(tolower(*s1) != tolower(*s2)) { return (int) * s1 - (int) * s2; } if(*s1 == 0) { break; } s1++; s2++; } return ...
false
false
false
false
false
0
streamio_reopen(streamio_t *streamio) { struct stat status; streamio_t *newstreamio; if (streamio) { streamio->next = streamio->file; streamio->line = 0; if (stat(streamio->name, &status) == 0) { if (status.st_mtime != streamio->time) { if ((newstreamio = streamio_open(streamio->name))) { ...
false
false
false
false
false
0
on_menu_edit_board() { game->breakMove(); raiseEditWindow("Edit board layouts."); }
false
false
false
false
false
0
tkgen_begin_graph(GVJ_t * job) { obj_state_t *obj = job->obj; gvputs(job, "#"); if (agnameof(obj->u.g)[0]) { gvputs(job, " Title: "); gvputs(job, tkgen_string(agnameof(obj->u.g))); } gvprintf(job, " Pages: %d\n", job->pagesArraySize.x * job->pagesArraySize.y); }
false
false
false
false
false
0
coll_parse_unaryop (xmmsv_coll_token_t *tokens, xmmsv_coll_t **ret) { xmmsv_coll_t *coll; xmmsv_coll_token_t *pos; PARSER_TRY (coll_parse_notop); PARSER_TRY (coll_parse_reference); *ret = NULL; return tokens; }
false
false
false
false
false
0
nemo_file_get_size (NemoFile *file) { /* Before we have info on the file, we don't know the size. */ if (file->details->size == -1) return 0; return file->details->size; }
false
false
false
false
false
0
createInlineBox(bool makePlaceHolderBox, bool isRootLineBox/*, bool isOnlyRun*/) { kDebug() << "createInlineBox" << makePlaceHolderBox << isRootLineBox << endl; ASSERT(!isInlineFlow()); InlineFlowBox* flowBox = new (renderArena()) SVGRootInlineBox(this); if (!m_firstLineBox) m_firstLineBox ...
false
false
false
false
false
0
__lambda62_ (FolksIndividual* self, FolksPersona* p) { gboolean favourite = FALSE; FolksPersona* _tmp0_ = NULL; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; favourite = FALSE; _tmp0_ = p; if (_tmp0_ != NULL) { FolksPersona* _tmp1_ = NULL; gboolean _tmp2_ = FALSE; gboolean _tmp3_ = FALSE; _tmp1_ = p;...
false
false
false
false
false
0
from_para_to_div_para( Hmdf_information *hmdf_info, int *pc_num0, int *min_pc_num0, int *first0, int *end0, int *pc_entry, int *pe_entry ) { int pc_num, min_pc_num; int first, end; Boolean flg; first = *first0; end = *end0; min_pc_num = calc_parallelism_over_tmin...
false
false
false
false
false
0
search_combo_set_active_id (DhSearch *search, const gchar *book_id) { DhSearchPriv *priv = GET_PRIVATE (search); GtkTreeIter iter; GtkTreeModel *model; gboolean has_next; g_signal_handlers_block_by_func (priv->book_combo, ...
false
false
false
false
false
0
games_preimage_render_sub (GamesPreimage * preimage, const char *node, int width, int height, double xoffset, double yoffset, double xzoom, double yzoom) { int rowstride; guint8 *da...
false
false
false
false
false
0
compose_clear_exit_drafts(void) { gchar *filepath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, DRAFTED_AT_EXIT, NULL); if (is_file_exist(filepath)) claws_unlink(filepath); g_free(filepath); }
false
false
false
false
false
0
va1j5jf8007s_prepare(struct dvb_frontend *fe) { struct va1j5jf8007s_state *state; int ret; state = fe->demodulator_priv; ret = va1j5jf8007s_prepare_1(state); if (ret < 0) return ret; ret = va1j5jf8007s_prepare_2(state); if (ret < 0) return ret; return va1j5jf8007s_init_frequency(state); }
false
false
false
false
false
0
prepare_graph_key_and_clip(double ox, double oy, KeyInfo* keyinfo) { if (!keyinfo->hasHei()) keyinfo->setHei(g_fontsz); measure_key(keyinfo); if (keyinfo->getNbEntries() > 0 && !keyinfo->isDisabled() && !keyinfo->getNoBox() && keyinfo->getBackgroundColor()->isTransparent()) { g_gsave(); g_beginclip(); g_set_pa...
false
false
false
false
false
0
par_alloc_from_fragment (SgenFragmentAllocator *allocator, SgenFragment *frag, size_t size) { char *p = frag->fragment_next; char *end = p + size; if (end > frag->fragment_end) return NULL; /* p = frag->fragment_next must happen before */ mono_memory_barrier (); if (InterlockedCompareExchangePointer ((volati...
false
false
false
false
false
0
changeCurrentEngine() { if (QAction *action = qobject_cast<QAction*>(sender())) { QString name = action->data().toString(); openSearchManager()->setCurrentEngineName(name); } }
false
false
false
false
false
0
MultiExecBitmapIndexScan(BitmapIndexScanState *node) { TIDBitmap *tbm; IndexScanDesc scandesc; double nTuples = 0; bool doscan; /* must provide our own instrumentation support */ if (node->ss.ps.instrument) InstrStartNode(node->ss.ps.instrument); /* * extract necessary information from index scan node ...
false
false
false
false
false
0
toggle_wide_narrow(xstr *dest, xstr *src) { int f, i; dest->len = src->len; dest->str = anthy_xstr_dup_str(src); f = anthy_get_xstr_type(src) & XCT_WIDENUM; for (i = 0; i < dest->len; i++) { if (f) { dest->str[i] = wide_num_to_narrow_num(src->str[i]); } else { dest->str[i] = narrow_num_to_...
false
false
false
false
false
0
bind_tgtdefn(const tgtdefn_t *tgt) /** Find keymanager that is able to handle given target & keyfile */ { bound_tgtdefn_t *bound; keymanager_t *km; FILE *fp_key=NULL; if (tgt == NULL) return NULL; build_keymgrs(); bound = alloc_boundtgt(tgt); if (tgt->key.filename != NULL) { fp_k...
false
false
false
false
false
0
bin_read_dup(FILE * f, char c, list_t * list, int64_t num) { int rv; int32_t i32; dup_item_t * op_it; op_it = new_dup_item(); op_it->type = c; read_int32(op_it->o.new_fd); read_int32(op_it->o.old_fd); read_int32(op_it->o.flags); read_int32(op_it->o.retval); if ( (rv = bin_read_info(f, &op_it->o.info, c, nu...
false
false
false
false
true
1
AnnotationList__stateMakesContribution (AnnotationList const *self, size_t nitems, ContributionIndex ci, bitset *lookaheads) { if (AnnotationList__isContributionAlways (self, ci)) return true; if (!lookaheads) return false; { ...
false
false
false
false
false
0
do_jupe(struct Client *cptr, struct Client *sptr, struct Jupe *jupe) { struct Client *acptr; if (!JupeIsActive(jupe)) /* no action to be taken on inactive jupes */ return 0; acptr = FindServer(jupe->ju_server); /* server isn't online or isn't local or is me */ if (!acptr || !MyConnect(acptr) || IsMe(ac...
false
false
false
false
false
0
btdm_1AntPtaParaReload(struct rtw_adapter *padapter) { /* PTA parameter */ rtl8723au_write8(padapter, 0x6cc, 0x0); /* 1-Ant coex */ rtl8723au_write32(padapter, 0x6c8, 0xffff); /* wifi break table */ rtl8723au_write32(padapter, 0x6c4, 0x55555555); /* coex table */ /* Antenna switch control parameter */ rtl8...
false
false
false
false
false
0
gftp_match_filespec (gftp_request * request, const char *filename, const char *filespec) { const char *filepos, *wcpos, *pos; char search_str[20], *newpos; intptr_t show_hidden_files; size_t len, curlen; if (filename == NULL || *filename == '\0' || filespec == NULL || *filespec ...
true
true
true
false
false
1
calcQuickDistMatForAll(ofstream* clustalFile, ofstream* phylipFile, ofstream* nexusFile, ofstream* pimFile, ofstream* distFile, clustalw::Alignment* alignPtr) { int overspill = 0; bool _DNAFlag = clustalw::userParameters->getDNAFlag(); ...
false
false
false
false
false
0
OpenDictStream(number) { FILE *fp; char tbuf[STRINGSIZE]; char dictcall[STRINGSIZE]; static char dictok[] = "/ok/"; static char dictstream[] = "/stream/"; sprintf(dictcall, "%s %d", kickdict, number); Logger('I', "OpenDictStream: trying: %s\n", dictcall); /* open the relevant dictiona...
false
false
false
false
false
0
K056832_get_tile_info( int tile_index, int pageIndex ) { static struct K056832_SHIFTMASKS { int flips, palm1, pals2, palm2; } K056832_shiftmasks[4] = {{6,0x3f,0,0x00},{4,0x0f,2,0x30},{2,0x03,2,0x3c},{0,0x00,2,0x3f}}; struct K056832_SHIFTMASKS *smptr; int layer, flip, fbits, attr, code; data16_t *pMe...
false
false
false
false
false
0
substr(int idx, int len) const { // A negative idx specifies an idx from the right of the string. if (idx < 0) idx += length(); // A length of -1 specifies the rest of the string. if (len < 0 || len>length()-idx) len = length() - idx; if (idx<0 || idx>=length() || len<0 ) ...
false
false
false
false
true
1
__midgard_sql_query_select_data_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { MidgardSqlQuerySelectData *self = (MidgardSqlQuerySelectData *) object; switch (property_id) { case PROPERTY_CONNECTION: /* write and constructor only */ break; case PROPERTY_STORAGE:...
false
false
false
false
false
0
is_pred_expr_subset_of (use_pred_info_t expr1, use_pred_info_t expr2) { gimple cond1, cond2; enum tree_code code1, code2; struct norm_cond norm_cond1, norm_cond2; bool is_subset = false; cond1 = expr1->cond; cond2 = expr2->cond; code1 = gimple_cond_code (cond1); code2 = gimple_c...
false
false
false
false
false
0
parseForName(const QString & filename) { QFile file(filename); file.open(QFile::ReadOnly); QXmlStreamReader xml(&file); xml.setNamespaceProcessing(false); while (!xml.atEnd()) { switch (xml.readNext()) { case QXmlStreamReader::StartElement: if (xml.name().toString().compare("language") == 0) { ...
false
false
false
false
false
0
analog_poll(struct gameport *gameport) { struct analog_port *port = gameport_get_drvdata(gameport); int i; char saitek = !!(port->analog[0].mask & ANALOG_SAITEK); char chf = !!(port->analog[0].mask & ANALOG_ANY_CHF); if (port->cooked) { port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->butt...
false
false
false
false
false
0
ListenAtTcpPort(int port) { int sock; struct sockaddr_in addr; int one = 1; addr.sin_family = AF_INET; addr.sin_port = htons(port); addr.sin_addr.s_addr = htonl(INADDR_ANY); if (!initSockets()) return -1; sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { rfbClientErr("ListenAtTcpPort:...
false
false
false
false
false
0
_rtl8821ae_enable_l1off(struct ieee80211_hw *hw) { u8 tmp = 0; struct rtl_priv *rtlpriv = rtl_priv(hw); RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "--->\n"); tmp = _rtl8821ae_dbi_read(rtlpriv, 0x160); if (!(tmp & (BIT(2) | BIT(3)))) { RT_TRACE(rtlpriv, COMP_POWER | COMP_INIT, DBG_LOUD, "0x160(%#x)return!!\n",...
false
false
false
false
false
0
set_attach_widgets(PostWidgets *w, PostAttachment *pa) { set_enc_toggles(w, pa); set_disp_toggles(w, pa); TextFieldSetBuffer(w->type_field, attach_get_type(pa)); TextFieldSetBuffer(w->name_field, attach_get_name(pa)); TextFieldSetBuffer(w->descr_field, attach_get_descr(pa)); TextFieldS...
false
false
false
false
false
0
lang_ld_feature (char *str) { char *p, *q; p = str; while (*p) { char sep; while (*p == ',' || ISSPACE (*p)) ++p; if (!*p) break; q = p + 1; while (*q && *q != ',' && !ISSPACE (*q)) ++q; sep = *q; *q = 0; if (strcasecmp (p, "SANE_EXPR") == 0) config.sane_ex...
false
false
false
false
false
0
_but_edit(void *d1, void *d2) { E_Config_Dialog *cfd = d1; Evas_Object *il = d2; int n; Match_Config *m; n = e_widget_ilist_selected_get(il); m = e_widget_ilist_nth_data_get(il, n); if (!m) return; cfd->cfdata->edit_il = il; _create_edit_frame(cfd, evas_object_evas_get(il), cfd->c...
false
false
false
false
false
0
tracker_sparql_pattern_expect (TrackerSparqlPattern* self, TrackerSparqlTokenType type, GError** error) { gboolean result = FALSE; TrackerSparqlQuery* _tmp0_; TrackerSparqlTokenType _tmp1_; gboolean _tmp2_ = FALSE; gboolean _tmp3_; GError * _inner_error_ = NULL; #line 203 "/home/martyn/Source/tracker/src/libtrack...
false
false
false
false
false
0
get_device_size(int fd, struct stat *st) { unsigned long long blksize = 0; int ret = 0; #if defined(BLKGETSIZE64) /* linux */ ret = ioctl(fd, BLKGETSIZE64, &blksize); #elif defined(DIOCGMEDIASIZE) /* freebsd */ ret = ioctl(fd, DIOCGMEDIASIZE, &blksize); #elif defined(DKIOCGETBLOCKCOUNT) /* macos */ ret = ioctl...
false
false
false
false
false
0
memalloc_align(int size, int skip_amt, void **alloc_ptr) { byte *bptr; word32 addr; word32 offset; skip_amt = MAX(256, skip_amt); bptr = calloc(size + skip_amt, 1); if(alloc_ptr) { /* Save allocation address */ *alloc_ptr = bptr; } addr = PTR2WORD(bptr) & 0xff; /* must align bptr to be 256-byte aligned ...
false
false
false
false
false
0
slot_bookmark() { if( m_str_num.empty() ) return; int number = atoi( m_str_num.c_str() ); bool bookmark = ! DBTREE::is_bookmarked( m_url_article, number ); DBTREE::set_bookmark( m_url_article, number, bookmark ); if( bookmark ) m_current_bm = number; redraw_view(); ARTICLE::get_admin()->set...
false
false
false
false
false
0
fit_pairs_xy(GSList *pairs, struct wcs *wcs) { double dx=0.0; double dy=0.0; double dtheta = 0.0; double ds = 0.0; int ret; if ((ret = pairs_cs_diff(pairs, &dx, &dy, &ds, &dtheta, 1, 1))) return ret; clamp_double(&ds, 1 - MAX_SE, 1 + MAX_SE); adjust_wcs(wcs, dx, dy, ds, dtheta); return 0; }
false
false
false
false
false
0
t1_get_abort_message( int number) { static char *err_msgs[]={ "DLdiv: dividend too large", /* 1 */ "divide algorithm error", /* 2 */ "Beziers this big not yet supported", /* 3 */ "ComputeHint: invalid orientation", /* 4 */ "ComputeHint: invalid hinttype", /* 5 */ "ComputeHint: invalid orienta...
false
false
false
false
false
0
httpConnect(const char *host, /* I - Host to connect to */ int port) /* I - Port number */ { http_encryption_t encryption; /* Type of encryption to use */ /* * Set the default encryption status... */ if (port == 443) encryption = HTTP_ENCRYPT_ALWAYS; else encryption = HTTP_ENC...
false
false
false
false
false
0
pam_passthru_load_config(int skip_validate) { int status = PAM_PASSTHRU_SUCCESS; int result; int i; int alternate = 0; Slapi_PBlock *search_pb; Slapi_Entry **entries = NULL; slapi_log_error( SLAPI_LOG_TRACE, PAM_PASSTHRU_PLUGIN_SUBSYSTEM, "=> pam_passthru_load_config\n"...
false
false
false
false
false
0
sched_skb(struct sge *sge, struct sk_buff *skb, unsigned int credits) { struct sched *s = sge->tx_sched; struct sk_buff_head *skbq; unsigned int i, len, update = 1; pr_debug("sched_skb %p\n", skb); if (!skb) { if (!s->num) return NULL; } else { skbq = &s->p[skb->dev->if_port].skbq; __skb_queue_tail(...
false
false
false
false
false
0
_scan_for_start_code (const guint8 * data, guint offset, guint size) { guint i = 0; while (i <= (size - 4)) { if (data[i + 2] > 1) { i += 3; } else if (data[i + 1]) { i += 2; } else if (data[i] || data[i + 2] != 1) { i++; } else { break; } } if (i <= (size - 4)) ...
false
false
false
false
false
0
has_mean (PLOTGROUP *grp) { int i; for (i=0; i<grp->nplots; i++) { if (na(grp->plots[i].mean)) { return 0; } } return 1; }
false
false
false
false
false
0
HPDF_FontDef_Cleanup (HPDF_FontDef fontdef) { if (!fontdef) return; HPDF_PTRACE ((" HPDF_FontDef_Cleanup\n")); if (fontdef->clean_fn) fontdef->clean_fn (fontdef); fontdef->descriptor = NULL; }
false
false
false
false
false
0
initlissie(ModeInfo * mi, lissiestruct * lissie) { lissstruct *lp = &lisses[MI_SCREEN(mi)]; int size = MI_SIZE(mi); int i; if (MI_NPIXELS(mi) > 2) lissie->color = NRAND(MI_NPIXELS(mi)); else lissie->color = MI_WHITE_PIXEL(mi); /* Initialize parameters */ if (size < -MINSIZE) lissie->ri = N...
false
false
false
false
false
0
werr(pam_handle_t *pamh, int sid, int ecode, char *phase) { char buf[BUFSIZ]; int len; sprintf(&buf[2], "pam %d no %s %s", sid, phase, pam_strerror(pamh, ecode)); len = strlen(&buf[2]); put_int16(len, &buf[0]); if (write_fill(1, buf, len+2) != len+2) exit(1); }
true
true
false
false
false
1
fli_event_queue_delete( void ) { FL_EVENT_QUEUE_ENTRY *b; while ( ( b = event_queue.blocks ) != NULL ) { event_queue.blocks = b->next; fl_free( b ); } event_queue.tail = event_queue.head = event_queue.empty = NULL; }
false
false
false
false
false
0
AddAllArgsTranslated(ArgStringList &Output, OptSpecifier Id0, const char *Translation, bool Joined) const { for (auto Arg: filtered(Id0)) { Arg->claim(); if (Joined) { Output.push_back(MakeArgString(StringRef(Translation) + ...
false
false
false
false
false
0
trf7970a_read_target_proto(struct trf7970a *trf, u8 *target_proto) { int ret; u8 buf[2]; u8 addr; addr = TRF79070A_NFC_TARGET_PROTOCOL | TRF7970A_CMD_BIT_RW | TRF7970A_CMD_BIT_CONTINUOUS; ret = spi_write_then_read(trf->spi, &addr, 1, buf, 2); if (ret) dev_err(trf->dev, "%s - target_proto: Read failed: %d\n"...
false
false
false
false
false
0
event_refno(n) int n; { if (xinbody) { close_newabc(); }; output_on = 1; if (newrefnos) { emit_int_sprintf("X: %d", newref); newref = newref + 1; } else { emit_int_sprintf("X: %d", n); }; parseron(); xinhead = 1; notecount = 0; unitlen.num = 0; unitlen.denom = 1; barlen.num = 0; ...
false
false
false
false
false
0
check_unsubstituted2(gx_device_pdf * pdev, pdf_resource_t *pres0, pdf_resource_t *pres1) { pdf_pattern_t *ppat0 = (pdf_pattern_t *)pres0; pdf_pattern_t *ppat1 = (pdf_pattern_t *)pres1; return (ppat0->substitute == NULL && ppat1->substitute == NULL); }
false
false
false
false
false
0
printTraced(Trace *pTrace, unsigned int tbi, char *pBuf, int szBuf) { if (!pBuf || !pTrace) return 0; int m; if (bHasExpression()) { char buf[256]; printExpression(buf, sizeof(buf)); m = snprintf(pBuf, szBuf, " assertion at 0x%04x, expr:%s",address,buf); } else m = snprintf(p...
false
false
false
false
false
0
gftpui_gtk_transfer_action (GtkWidget * widget, gint response, gpointer user_data) { switch (response) { case GTK_RESPONSE_OK: gftpui_gtk_ok (widget, user_data); gtk_widget_destroy (widget); break; case GTK_RESPONSE_CANCEL: gftpui_gtk_cancel ...
false
false
false
false
false
0
e1000_copper_link_ggp_setup(struct e1000_hw *hw) { int32_t ret_val; uint16_t phy_data; uint32_t reg_data; DEBUGFUNC("e1000_copper_link_ggp_setup"); if (!hw->phy_reset_disable) { /* Enable CRS on TX for half-duplex operation. */ ret_val = e1000_read_phy_reg(hw, GG82563_PHY_MAC_SPEC...
false
false
false
false
false
0
know_damage(int r_idx, const monster_lore *l_ptr, int i) { const monster_race *r_ptr = &r_info[r_idx]; s32b level = r_ptr->level; s32b a = l_ptr->blows[i]; s32b d1 = r_ptr->blow[i].d_dice; s32b d2 = r_ptr->blow[i].d_side; s32b d = d1 * d2; /* Normal monsters */ if ((4 + level) * a >= 80 * d) return (TRUE);...
false
false
false
false
false
0
setCE_TypeValues( lListElem *ep, String *ce_entry ) { int i, type, relop; u_long32 requestable = REQU_NO; DENTER(GUI_LAYER, "setCE_TypeValues"); if (!ep) { DEXIT; return False; } /* name type relation value */ lSetString(ep, CE_name, ce_entry[CE_NAME] ? qmon_trim(ce_entry...
false
false
false
false
false
0
bgav_audio_parser_destroy(bgav_audio_parser_t * parser) { if(parser->packets) free(parser->packets); bgav_bytebuffer_free(&parser->buf); if(parser->out_packet) bgav_packet_pool_put(parser->s->pp, parser->out_packet); if(parser->cleanup) parser->cleanup(parser); free(parser); }
false
false
false
false
false
0
push_rtn_frame(struct parse_state *s, struct rtn *rtn, int start_offset) { struct parse_stack_frame *old_frame = DYNARRAY_GET_TOP(s->parse_stack); struct parse_stack_frame *new_frame = push_empty_frame(s, FRAME_TYPE_RTN, start_offset); struct rtn_frame *new_rtn_frame = &new_frame->f.rtn_frame; new_rtn_...
false
false
false
false
true
1
pxenv_tftp_open ( struct s_PXENV_TFTP_OPEN *tftp_open ) { int rc; DBG ( "PXENV_TFTP_OPEN" ); /* Guard against callers that fail to close before re-opening */ pxe_tftp_close ( 0 ); /* Open connection */ if ( ( rc = pxe_tftp_open ( tftp_open->ServerIPAddress, tftp_open->TFTPPort, tftp_open->FileN...
false
false
false
false
false
0
vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l, const unsigned char *u, int fam) { struct acl_e *ae2, *aen; int i; if (fam == PF_INET && ae->mask > 32) { VSB_printf(tl->sb, "Too wide mask (%u) for IPv4 address", ae->mask); vcc_ErrWhere(tl, ae->t_mask); return; } if (fam == PF_INET...
false
true
false
true
false
1
complete() const { // "complete" means that the image has been loaded // but also that its width/height (contentWidth(),contentHeight()) have been calculated. return m_cachedImage && m_cachedImage->isComplete() && !needsLayout(); }
false
false
false
false
false
0
loadFileType(VisuRendering *method, VisuData *data, guint fileType, int nSet, GCancellable *cancel, GError **error) { gchar *file; gboolean loadOk; GList *tmpLst; ToolFileFormat *fmt; LoadFormat *load; #if GLIB_MINOR_VERSION > 5 struct stat buf; #end...
false
false
false
false
false
0
copy_perform(t_int *w) { t_sample *in1 = (t_sample *)(w[1]); t_sample *out = (t_sample *)(w[2]); int n = (int)(w[3]); while (n--) *out++ = *in1++; return (w+4); }
false
false
false
false
false
0
intel_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb) { struct intel_context *intel = intel_context(ctx); struct intel_renderbuffer *depthRb = intel_get_renderbuffer(fb, BUFFER_DEPTH); struct intel_renderbuffer *stencilRb = intel_get_renderbuffer(fb, BUFFER_STENCIL); stru...
false
false
false
false
false
0
finishPopup(YMenuItem *item, YAction *action, unsigned int modifiers) { YActionListener *cmd = fActionListener; YPopupWindow::finishPopup(); if (item) item->actionPerformed(cmd, action, modifiers); }
false
false
false
false
false
0
start_initial_process_cb (gpointer data) { Netinfo *ni = data; NetinfoActivateFn fn_cb; g_return_val_if_fail (data != NULL, FALSE); fn_cb = (NetinfoActivateFn) ni->button_callback; if (fn_cb) (*fn_cb) (ni->button, data); return FALSE; }
false
false
false
false
false
0
remove_char(int ch) { erasechar(); if (!isprint(ch)) erasechar(); }
false
false
false
false
false
0
delVertices(size_t idx) { delete[] fVertBuffStorage[idx]; delete[] fCompGBuffStorage[idx]; fVertBuffStorage.remove(idx); fCompGBuffStorage.remove(idx); fVertBuffSizes.remove(idx); fCompGBuffSizes.remove(idx); }
false
false
false
false
false
0
putMark(int n) { // assert(segUsed <= segSize); if (segUsed == segSize) { size_t newSize = segSize * 2 + 5; // grow in chunks int *newMark = new int[newSize]; // do we assume that new can't fail? memcpy(newMark, segMark, segSize * sizeof(int)); delete segMark; segMark = newMark; segSize = newSize; } ...
false
false
false
false
false
0
acpi_ut_copy_ipackage_to_epackage(union acpi_operand_object *internal_object, u8 * buffer, acpi_size * space_used) { union acpi_object *external_object; acpi_status status; struct acpi_pkg_info info; ACPI_FUNCTION_TRACE(ut_copy_ipackage_to_epackage); /* * First package at head of the buffer */ externa...
false
false
false
false
false
0
promptQuery(Core::Query::Type type) { queryDlg_->setWindowTitle(tr("Query")); // Get the default pattern from the text under the cursor on the active // editor (if any). Editor::Editor* editor = editCont_->currentEditor(); if (editor) queryDlg_->setPattern(editor->currentSymbol()); // Prompt the user. if (qu...
false
false
false
false
false
0
zero_channel(int **channel, int channel_size) { int i, j; /* Reset everything to zero */ for (i = 0; i < channel_size; i++) { for (j = 0; j < channel_size; j++) { channel[i][j] = 0; } } }
false
false
false
false
false
0
safe_start_equals(const char * attribute, const char * line) { size_t len, atlen; if (line == NULL) return 0; len = strlen(line); atlen = strlen(attribute); if (len < atlen) return 0; return 0 == strncmp(attribute, line, atlen); }
false
false
false
false
false
0
constant_ASN_U(double *value, const char *name, const int len) { switch (len >= 12 ? name[12] : -1) { case '\0': TEST_CONSTANT(value, name, ASN_UNSIGNED); break; case '6': TEST_CONSTANT(value, name, ASN_UNSIGNED64); break; } return EINVAL; }
false
false
false
false
false
0
camCopyShift(CamImage* source, CamImage* dest, int shift) { if ((source->depth&CAM_DEPTH_MASK)>8) { if ((dest->depth&CAM_DEPTH_MASK)==8) { return camCopyShift16to8(source,dest, shift); } else return camCopyShift16(source,dest, shift); } else { if ((dest->depth&CAM_DEPT...
false
false
false
false
false
0
write_message (UnitySystemCompositor *compositor, guint16 id, const guint8 *payload, guint16 payload_length) { guint8 *data; gsize data_length = 4 + payload_length; data = g_malloc (data_length); data[0] = id >> 8; data[1] = id & 0xFF; data[2] = payload_length >> 8; data[3] = payload_length...
false
false
false
false
false
0
free_one_atomic_orbitals(gint AtNOrb, gint AtNAlphaOrb, gint AtNBetaOrb, gdouble* AtEnerAlphaOrbitals,gdouble* AtOccAlphaOrbitals,gchar** AtSymAlphaOrbitals,gdouble**AtCoefAlphaOrbitals, gdouble* AtEnerBetaOrbitals,gdouble* AtOccBetaOrbitals,gchar** AtSymBetaOrbitals,gdouble**AtCoefBetaOrbitals) { gint i; if(AtEner...
false
false
false
false
false
0
doTopOfFile( string & xmlFileName, xmlChar * version, xmlNode * copyNode, vector<AbstractHandler *> & handlers ) { char timeBuf[30]; time_t t; struct tm * formattedTime; xmlNode * node; vector<Ab...
false
false
false
false
false
0
mud_telnet_send_raw(MudTelnet *telnet, guint32 count, ...) { guchar byte; guint32 i; va_list va; va_start(va, count); for (i = 0; i < count; ++i) { byte = (guchar)va_arg(va, gint); gnet_conn_write(telnet->conn, (gchar *)&byte, 1); if (byte == (guchar)TEL_IAC) gnet_conn_write(telnet->co...
false
false
false
false
false
0
Capture_lstGetListItem(char *list_element_id) { struct list_ptr* item = g_list; while(item && strcmp(item->element->list_element_id, list_element_id)) item = item->next_item; return item; }
false
false
false
false
false
0
convertToUninterleaved( Uint8 *target, const Uint8 *source, Uint16 components, Uint32 width, Uint32 height, Uint16 bitsAllocated) const { Uint8 bytesAllocated = bitsAllocated / 8; Uint32 planeSize = width * height * bytesAllocated; if (bitsAllocated % 8 != 0) return EC_IllegalCall; ...
false
false
false
false
false
0
layoutAboutToBeChanged() { for ( int i = 0; i < qBound ( 0, model->rowCount(), 100 ); ++i ) changing.append ( QPersistentModelIndex ( model->index ( i, 0 ) ) ); }
false
false
false
false
false
0
vinlet_perform(t_int *w) { t_vinlet *x = (t_vinlet *)(w[1]); t_float *out = (t_float *)(w[2]); int n = (int)(w[3]); t_float *in = x->x_read; #if 0 if (tot < 5) post("-in %lx out %lx n %d", in, out, n); if (tot < 5) post("-buf %lx endbuf %lx", x->x_buf, x->x_endbuf); if (tot < 5) post("in[0] ...
false
false
false
false
false
0