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
b_vformat_attribute_add_param (b_VFormatAttribute *attr, b_VFormatParam *param) { g_return_if_fail (attr != NULL); g_return_if_fail (param != NULL); attr->params = g_list_append (attr->params, param); /* we handle our special encoding stuff here */ if (!g_ascii_strcasecmp (param->name, "ENCODING")) { ...
false
false
false
false
false
0
COPY_CHAIN(struct evbuffer *dst, struct evbuffer *src) { ASSERT_EVBUFFER_LOCKED(dst); ASSERT_EVBUFFER_LOCKED(src); dst->first = src->first; if (src->last_with_datap == &src->first) dst->last_with_datap = &dst->first; else dst->last_with_datap = src->last_with_datap; dst->last = src->last; dst->total_len = sr...
false
false
false
false
false
0
test_h5s_compound_scalar_write(void) { hid_t fid1; /* HDF5 File IDs */ hid_t dataset; /* Dataset ID */ hid_t tid1; /* Attribute datatype ID */ hid_t sid1; /* Dataspace ID */ int rank; /* Logical rank of dataspace */ hsize_t tdims[4]; /* Dimension array to t...
false
false
false
false
false
0
get_filesystem_info(double &total_space, double &free_space, const char* const path) { #ifdef STATFS struct STATFS fs_info; int retval = STATFS(path, &fs_info); if (retval) { #ifndef _USING_FCGI_ perror("statvfs"); #else FCGI::perror("statvfs"); #endif return ERR_STATFS; } #if H...
false
false
false
false
false
0
gx_default_fill_linear_color_triangle(gx_device *dev, const gs_fill_attributes *fa, const gs_fixed_point *p0, const gs_fixed_point *p1, const gs_fixed_point *p2, const frac31 *c0, const frac31 *c1, const frac31 *c2) { fixed dx1 = p1->x - p0->x, dy1 = p1->y - p0->y; fixed dx2 = p2->x - p0...
false
false
false
false
false
0
emitEdge (Agraph_t* G, Agedge_t* e, FILE* outFile) { fprintf (outFile, " edge [\n id %lu\n", (unsigned long)AGSEQ(e)); fprintf (outFile, " source %lu\n", ID(agtail(e))); fprintf (outFile, " target %lu\n", ID(aghead(e))); emitEdgeAttrs (G, e, outFile, 2); fprintf (outFile, " ]\n"); }
false
false
false
false
false
0
DGNGetLinkage( DGNHandle hDGN, DGNElemCore *psElement, int iIndex, int *pnLinkageType, int *pnEntityNum, int *pnMSLink, int *pnLength ) { int nAttrOffset; int iLinkage, nLinkSize; for( iLinkage=0, nAttrOffset=0; (nLinkSize = DGNGetA...
false
false
false
false
false
0
BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx) { int retn=0; #ifdef MONT_WORD BIGNUM *t; BN_CTX_start(ctx); if ((t = BN_CTX_get(ctx)) && BN_copy(t,a)) retn = BN_from_montgomery_word(ret,t,mont); BN_CTX_end(ctx); #else /* !MONT_WORD */ BIGNUM *t1,*t2; BN_CTX_start(ctx)...
false
false
false
false
false
0
translate_ranks(int* first, int* last, const group& to_group, int* out) { BOOST_MPI_CHECK_RESULT(MPI_Group_translate_ranks, ((MPI_Group)*this, last-first, first, (MPI_Group)to_group, out));...
false
false
false
false
false
0
iommu_init_domains(struct intel_iommu *iommu) { u32 ndomains, nlongs; size_t size; ndomains = cap_ndoms(iommu->cap); pr_debug("%s: Number of Domains supported <%d>\n", iommu->name, ndomains); nlongs = BITS_TO_LONGS(ndomains); spin_lock_init(&iommu->lock); iommu->domain_ids = kcalloc(nlongs, sizeof(unsigned...
false
false
false
false
false
0
glade_preview_dispose (GObject * gobject) { GladePreview *self = GLADE_PREVIEW (gobject); if (self->priv->watch) { g_source_remove (self->priv->watch); glade_preview_kill (self); } if (self->priv->channel) { g_io_channel_unref (self->priv->channel); self->priv->channel = NULL...
false
false
false
false
false
0
cert_stuff(struct connectdata *conn, int sockindex, char *cert_file, char *key_file) { struct SessionHandle *data = conn->data; CURLcode rv; if(cert_file) { rv = nss_load_cert(&conn->ssl[sockindex], cert_file, PR_FALSE); if(CURLE_OK != rv) { const PRErrorCode err = PR_Get...
false
false
false
false
false
0
getRegClass(const MCInstrDesc &MCID, unsigned OpNum, const TargetRegisterInfo *TRI, const MachineFunction &MF) const { if (OpNum >= MCID.getNumOperands()) return nullptr; short RegClass = MCID.OpInfo[OpNum].RegClass; if (MCID.OpInfo[OpNum].isLookupPtr...
false
false
false
false
false
0
algo04(const std::string& bankId, const std::string accountId) { // keep the interface argument constant std::string accountBuf = accountId; while (8 < accountBuf.length() && '0' == accountBuf[0]) accountBuf = accountBuf.substr(1); if (8 != accountBuf.length()) return AccountNumberCheck::ERROR; if (5 ...
false
false
false
false
false
0
viacam_irq(int irq, void *data) { int bufn; struct videobuf_buffer *vb; struct via_camera *cam = data; struct videobuf_dmabuf *vdma; /* * If there is no place to put the data frame, don't bother * with anything else. */ vb = viacam_next_buffer(cam); if (vb == NULL) goto done; /* * Figure out which bu...
false
false
false
false
false
0
zlib_stream_free(zlib_stream_t *zs, bool output) { z_streamp z; z = zs->z; if (z != NULL) { int ret = 0; switch (zs->magic) { case ZLIB_DEFLATER_MAGIC: ret = deflateEnd(z); break; case ZLIB_INFLATER_MAGIC: ret = inflateEnd(z); break; } if (ret != Z_OK && ret != Z_DATA_ERROR) { g_carp("...
false
false
false
false
false
0
_gcry_logv( int level, const char *fmt, va_list arg_ptr ) { if (log_handler) log_handler (log_handler_value, level, fmt, arg_ptr); else { switch (level) { case GCRY_LOG_CONT: break; case GCRY_LOG_INFO: break; case GCRY_LOG_WARN: break; case GCRY_LOG_ERROR: br...
false
false
false
false
true
1
fprints(FILE *fp, const char *format, const ucs2_char_t* value) { char *mbs = ucs2dupmbs(value); if (mbs) { fprintf(fp, format, mbs); ucs2free(mbs); } }
false
false
false
false
true
1
fwnet_broadcast_start(struct fwnet_device *dev) { struct fw_iso_context *context; int retval; unsigned num_packets; unsigned max_receive; struct fw_iso_packet packet; unsigned long offset; void **ptrptr; unsigned u; if (dev->broadcast_state != FWNET_BROADCAST_ERROR) return 0; max_receive = 1U << (dev->car...
false
false
false
false
false
0
initPQExpBuffer(PQExpBuffer str) { str->data = (char *) malloc(INITIAL_EXPBUFFER_SIZE); if (str->data == NULL) { str->maxlen = 0; str->len = 0; } else { str->maxlen = INITIAL_EXPBUFFER_SIZE; str->len = 0; str->data[0] = '\0'; } }
false
false
false
false
false
0
get() { iq_ = createIQ(doc(), "get", "", id()); QDomElement prvt = doc()->createElement("query"); prvt.setAttribute("xmlns", "jabber:iq:private"); iq_.appendChild(prvt); QDomElement options = doc()->createElement("options"); options.setAttribute("xmlns", ApplicationInfo::storageNS()); prvt.appendChild...
false
false
false
false
false
0
Pdf(const Point &, const Vector &w) const { PBRT_INFINITE_LIGHT_STARTED_PDF(); Vector wi = WorldToLight(w); float theta = SphericalTheta(wi), phi = SphericalPhi(wi); float sintheta = sinf(theta); if (sintheta == 0.f) return 0.f; float p = distribution->Pdf(phi * INV_TWOPI, theta * INV_PI) / ...
false
false
false
false
false
0
player_maybe_start_repair_sound() { Assert(Player); if ( Player->repair_sound_loop == -1 ) { Player->repair_sound_loop = snd_play_looping( &Snds[SND_SHIP_REPAIR] ); } }
false
false
false
false
false
0
string_istitle(PyStringObject *self, PyObject *uncased) { register const unsigned char *p = (unsigned char *) PyString_AS_STRING(self); register const unsigned char *e; int cased, previous_is_cased; /* Shortcut for single character strings */ if (PyString_GET_SIZE(self) == 1) return...
false
false
false
false
true
1
solveGroup(btCollisionObject** bodies,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc,btDispatcher* /*dispatcher*/) { BT_PROFILE("solveGroup"); //you need to ...
false
false
false
false
false
0
togglePause() // pause or continue game { if (!gameEnded) { if (gamePaused) { gamePaused = false; update(); timer->start(velocity); emit updatedScore(); } else { gamePaused = true; timer->stop(); update(); emit updatedScore(); } } }
false
false
false
false
false
0
createPluginList () { /* Number of entries here should be the same as in set_column_width below and as the number of elements in addPlugin(). */ static gchar *titles[] = { "Name", "Description", "Author", "Location", "Loaded", "Active" }; static const gint widths[] = { 100, 225, 150, 225, 50, 50 }; ...
false
false
false
false
false
0
test_status_worktree__swap_subdir_and_file(void) { status_entry_counts counts; git_repository *repo = cl_git_sandbox_init("status"); git_index *index; git_status_options opts = GIT_STATUS_OPTIONS_INIT; bool ignore_case; cl_git_pass(git_repository_index(&index, repo)); ignore_case = (git_index_caps(index) & GIT_...
false
false
false
false
false
0
_ast_register_timing_interface(struct ast_timing_interface *funcs, struct ast_module *mod) { struct timing_holder *h; if (!funcs->timer_open || !funcs->timer_close || !funcs->timer_set_rate || !funcs->timer_ack || !funcs->timer_get_event || !funcs->timer_get_max_rate || !funcs-...
false
false
false
false
false
0
i40e_write_dword(u8 *hmc_bits, struct i40e_context_ele *ce_info, u8 *src) { u32 src_dword, mask; u8 *from, *dest; u16 shift_width; __le32 dest_dword; /* copy from the next struct field */ from = src + ce_info->offset; /* prepare the bits and mask */ shift_width = ce_info->lsb % 8; /* if the ...
false
true
false
false
false
1
dumpValue (const Value &v, std::ostream &os) { dumpByte (v.type, os) ; switch (v.type) { case T_REAL : case T_INTEGER : case T_BOOL : dumpWord ((v.integer >> 32), os) ; dumpWord (v.integer & 0xffffffff, os) ; break ; case T_BYTE : case T_CHAR : dumpByte (v.int...
false
false
false
false
false
0
sst_fill_module_list(struct snd_kcontrol *kctl, struct snd_soc_dapm_widget *w, int type) { struct sst_module *module = NULL; struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); struct sst_ids *ids = w->priv; int ret = 0; module = devm_kzalloc(c->dev, sizeof(*module), GFP_KERNEL); if (!module) r...
false
false
false
false
false
0
mergeColour(tPPtr pold, tPPtr pnew, bool anti) const { ColinePtr clnew, clold; //save the corresponding colour lines clold = pold->colourLine(anti); clnew = pnew->colourLine(!anti); assert(clold); if(clnew){//there is already a colour line (not the final diquark) if( (clnew->coloured().size() ...
false
false
false
false
false
0
operator= (ckdb::Key *k) { if (key != k) { del(); key = k; operator++(); } return *this; }
false
false
false
false
false
0
iluContrast(ILfloat Contrast) { ILimage *Grey; ILuint i; iluCurImage = ilGetCurImage(); if (iluCurImage == NULL) { ilSetError(IL_ILLEGAL_OPERATION); return IL_FALSE; } Grey = ilNewImage(iluCurImage->Width, iluCurImage->Height, iluCurImage->Depth, iluCurImage->Bpp, iluCurImage->Bpc); if (Grey == NULL) { r...
false
false
false
false
false
0
airHeapNew(size_t dataUnit, unsigned int incr) { airHeap *h; airPtrPtrUnion appu; h = AIR_CALLOC(1, airHeap); if (h==NULL) { return NULL; } appu.d = &h->key; h->key_a = airArrayNew(appu.v, NULL, sizeof(double), incr); if (dataUnit>0) { /* data is optional */ h->data_a = airArrayNew(&h->data, NU...
false
false
false
false
false
0
gt_applycheckfunctiontotext(const GtUchar *text, unsigned long textlen, void *info) { unsigned long i; Checkcmppairfuntype checkfunction = (Checkcmppairfuntype) info; #ifdef SKDEBUG printf("%s\n",(char *) text); #endif for (i=0; i<=t...
false
false
false
false
false
0
recogShowMatch(L_RECOG *recog, PIX *pix1, PIX *pix2, BOX *box, l_int32 index, l_float32 score) { char buf[32]; L_BMF *bmf; PIX *pix3, *pix4, *pix5, *pixd; PIXA *pixa; PROCNAME("recogShowMatch"); if (!re...
false
false
false
false
false
0
XIOEHandler(dpy) Display *dpy; { CBDesc *cb; cb = cb_list; while (cb != NULL) { (*cb->callback)(cb->client_data); cb = cb->next; } return (*original_handler)(dpy); }
false
false
false
false
false
0
lsp2polyf(const float *lspf, double *f, int lp_half_order) { int i, j; f[0] = 1.0; f[1] = -2 * cos(M_PI * lspf[0]); lspf -= 2; for(i=2; i<=lp_half_order; i++) { double val = -2 * cos(M_PI * lspf[2*i]); f[i] = val * f[i-1] + 2*f[i-2]; for(j=i-1; j>1; j--) f[j]...
false
false
false
false
false
0
freeexpire(void) { struct expire_entry *a, *b; a = expire_base; while(a) { b = a->next; free(a->group); free(a); a = b; } }
false
false
false
false
false
0
handle_header(struct strbuf **out, const struct strbuf *line) { if (!*out) { *out = xmalloc(sizeof(struct strbuf)); strbuf_init(*out, line->len); } else strbuf_reset(*out); strbuf_addbuf(*out, line); }
false
false
false
false
false
0
init_elim_table () { struct elim_table *ep; #ifdef ELIMINABLE_REGS const struct elim_table_1 *ep1; #endif if (!reg_eliminate) reg_eliminate = (struct elim_table *) xcalloc (sizeof (struct elim_table), NUM_ELIMINABLE_REGS); /* Does this function require a frame pointer? */ frame_pointer_needed = ...
true
true
false
false
false
1
print_header(ogg_page *og){ int j; fprintf(stderr,"\nHEADER:\n"); fprintf(stderr," capture: %c %c %c %c version: %d flags: %x\n", og->header[0],og->header[1],og->header[2],og->header[3], (int)og->header[4],(int)og->header[5]); fprintf(stderr," granulepos: %d serialno: %d pageno: %ld\n...
false
false
false
false
false
0
getReturnAddressFrameIndex(SelectionDAG &DAG) const { MachineFunction &MF = DAG.getMachineFunction(); MSP430MachineFunctionInfo *FuncInfo = MF.getInfo<MSP430MachineFunctionInfo>(); int ReturnAddrIndex = FuncInfo->getRAIndex(); if (ReturnAddrIndex == 0) { // Set up a frame object for the return address. ...
false
false
false
false
false
0
load( const char * filename, const char * func, t_CKBOOL lazy ) { // open m_handle = dlopen( filename, lazy ? RTLD_LAZY : RTLD_NOW ); // still not there if( !m_handle ) { m_last_error = dlerror(); return FALSE; } // save the filename m_filename = filename; m_done_qu...
false
false
false
false
false
0
add_socket(int sock, char flags) /* * Function: Add socket to socktbl, with flags * Returns: 0 if OK * -1 if socktbl is full */ { int i, pos = -1; #ifdef DEBUG_STRICT if(find_socket(sock) != -1) internal("net: in priv add_socket(), duplicate sock entry! (sock=%d)", sock); #endif for(i = 0; (i ...
false
false
false
false
false
0
eioctl(int fd, int command,void * param, char *emsg) { int r; if ((r=ioctl(fd,command,param))<0 ) { perror(emsg); exit(1); } return r; }
false
false
false
false
false
0
buildString(void) const { std::string ret; char line[32000]; sprintf(line, "General information:\n"); ret += line; sprintf(line, "Robot is type '%s' subtype '%s'\n", getType(), getSubType()); ret += line; sprintf(line, "serial number '%s' name '%s'\n", getSerialNumber(), getName()); ret +=...
false
false
false
false
false
0
CloseIntoRel(QueryDesc *queryDesc) { DR_intorel *myState = (DR_intorel *) queryDesc->dest; /* OpenIntoRel might never have gotten called */ if (myState && myState->pub.mydest == DestIntoRel && myState->rel) { FreeBulkInsertState(myState->bistate); /* If we skipped using WAL, must heap_sync before commit */ ...
false
false
false
false
false
0
ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos) { struct ivtv_open_id *id = fh2id(filp->private_data); struct ivtv *itv = id->itv; struct ivtv_stream *s = &itv->streams[id->type]; ssize_t rc; IVTV_DEBUG_HI_FILE("read %zd bytes from %s\n", count, s->name); if (mutex_lock_interrup...
false
false
false
false
false
0
on_delete_range_after (GtkTextBuffer *buffer, GtkTextIter *start_iter, GtkTextIter *end_iter, gpointer user_data) { Sourceview *sv = NULL; GtkTextMark *start_mark = NULL, *end_mark = NULL; SourceviewCell *cell = NULL; IAnjutaIterable *po...
false
false
false
false
false
0
nvkm_therm_update_linear(struct nvkm_therm *therm) { u8 linear_min_temp = therm->fan->bios.linear_min_temp; u8 linear_max_temp = therm->fan->bios.linear_max_temp; u8 temp = therm->func->temp_get(therm); u16 duty; /* handle the non-linear part first */ if (temp < linear_min_temp) return therm->fan->bios.min_...
false
false
false
false
false
0
Itcl_EventuallyFree(cdata, fproc) ClientData cdata; /* data to be freed when not in use */ Tcl_FreeProc *fproc; /* procedure called to free data */ { int newEntry; Tcl_HashEntry *entry; ItclPreservedData *chunk; /* * If the clientData value is NULL, do nothing. */ ...
false
false
false
false
false
0
closeTransportTCP(PRIVATE_ASSOCIATIONKEY ** association) { if ((*association)->connection) { (*association)->connection->close(); delete (*association)->connection; (*association)->connection = NULL; } }
false
false
false
false
false
0
maxiradio_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { struct maxiradio *dev; struct v4l2_device *v4l2_dev; int retval = -ENOMEM; dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (dev == NULL) { dev_err(&pdev->dev, "not enough memory\n"); return -ENOMEM; } v4l2_dev = &dev->v4l2_dev; v4l...
false
false
false
false
false
0
SetFlags(const char *usage, int *argc, char ***argv, bool remove_flags, const char *src) { flag_usage = usage; prog_src = src; int index = 1; for (; index < *argc; ++index) { string argval = (*argv)[index]; if (argval[0] != '-' || argval == "-") break; while (argval[0] == '-') ...
false
false
false
false
false
0
velocity_face_sources (GfsDomain * domain, GfsVariable ** u, gdouble dt, GfsFunction * alpha, GfsVariable ** g) { FttComponent c; for (c = 0; c < FTT_DIMENSION; c++) if (u[c]->sources) { GSList * i = GTS_SLIST_CONTAINER (u[c]->sources)->items; while (i) { GfsSourc...
false
false
false
false
false
0
set_pairable(DBusConnection *conn, DBusMessage *msg, gboolean pairable, void *data) { struct btd_adapter *adapter = data; int err; if (adapter->scan_mode == SCAN_DISABLED) return btd_error_not_ready(msg); if (pairable == adapter->pairable) goto done; if (!(adapter->scan_mode & SCAN_INQUIRY)) goto stor...
false
false
false
false
false
0
nfs4_proc_get_rootfh(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *info, bool auth_probe) { int status = 0; if (!auth_probe) status = nfs4_lookup_root(server, fhandle, info); if (auth_probe || status == NFS4ERR_WRONGSEC) status = nfs4_do_find_root_sec(server, fhandle, info); i...
false
false
false
false
false
0
handleError() { switch (errno) { case EBADF: checkConnections(); break; case EINTR: if (_cqueue->isReady()) return true; break; default: fxFatal("Dispatcher: select: %s", strerror(errno)); /*NOTREACHED*/ } return false; // retry select }
false
false
false
false
false
0
gst_collect_pads_event (GstPad * pad, GstEvent * event) { gboolean res; GstCollectData *data; GstCollectPads *pads; /* some magic to get the managing collect_pads */ GST_OBJECT_LOCK (pad); data = (GstCollectData *) gst_pad_get_element_private (pad); if (G_UNLIKELY (data == NULL)) goto pad_removed; ...
false
false
false
false
false
0
uv_udp_getsockname(uv_udp_t* handle, struct sockaddr* name, int* namelen) { socklen_t socklen; int saved_errno; int rv = 0; /* Don't clobber errno. */ saved_errno = errno; if (handle->io_watcher.fd == -1) { uv__set_sys_error(handle->loop, EINVAL); rv = -1; goto out; } /* sizeof(socklen_t)...
false
false
false
false
false
0
visitGetElementPtrInst(GetElementPtrInst &Inst) { auto *Op = Inst.getPointerOperand(); Output.push_back(Edge(&Inst, Op, EdgeType::Assign, AttrNone)); for (auto I = Inst.idx_begin(), E = Inst.idx_end(); I != E; ++I) Output.push_back(Edge(&Inst, *I, EdgeType::Assign, AttrNone)); }
false
false
false
false
false
0
error_550_permission_or_not_found (GVfsFtpTask *task, gpointer file) { GFileInfo *info; info = g_vfs_ftp_dir_cache_lookup_file (task->backend->dir_cache, task, file, FALSE); if (info) { g_object_unref (info); g_set_error_literal (&task->error, G_IO_ERROR, ...
false
false
false
false
false
0
soap_in_methodResponse(struct soap *soap, const char *tag, struct methodResponse *a, const char *type) { size_t soap_flag_params = 1; size_t soap_flag_fault = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct methodResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_methodResponse, size...
false
false
false
false
false
0
find_openstateowner_str_locked(unsigned int hashval, struct nfsd4_open *open, struct nfs4_client *clp) { struct nfs4_stateowner *so; lockdep_assert_held(&clp->cl_lock); list_for_each_entry(so, &clp->cl_ownerstr_hashtbl[hashval], so_strhash) { if (!so->so_is_open_owner) continue; if (same_owner_str...
false
false
false
false
false
0
setupBlotsSwirlyCone (struct state *st) { FLOAT radSpace = 1.0 / (st->requestedBlotCount - 1); FLOAT zSpace = radSpace * 2; FLOAT rotAmt = RAND_FLOAT_PM1 * M_PI / 10; int n; FLOAT rot = 0.0; st->blotCount = st->requestedBlotCount; st->blots = calloc (sizeof (Blot), st->blotCount); for...
false
false
false
false
false
0
nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block, char *buffer) { struct NFTLrecord *nftl = (void *)mbd; u16 writeEUN; unsigned long blockofs = (block * 512) & (nftl->EraseSize - 1); size_t retlen; struct nftl_oob oob; writeEUN = NFTL_findwriteunit(nftl, block); if (writeEUN == BLOCK_NIL...
false
false
false
false
false
0
id_to_domain_size(int id) { /* Assume the id is in range. */ Symbol_data s = Cells[id].symbol; return (s->type == RELATION ? 2 : Domain_size); }
false
false
false
false
false
0
float_dealloc(PyFloatObject *op) { if (PyFloat_CheckExact(op)) { if (numfree >= PyFloat_MAXFREELIST) { PyObject_FREE(op); return; } numfree++; Py_TYPE(op) = (struct _typeobject *)free_list; free_list = op; } else Py_TYPE(op)->tp_free((...
false
false
false
false
false
0
gdata_access_rule_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { GDataAccessRule *self = GDATA_ACCESS_RULE (object); switch (property_id) { case PROP_ROLE: gdata_access_rule_set_role (self, g_value_get_string (value)); break; case PROP_SCOPE_TYPE: g_free (sel...
false
false
false
false
false
0
slotwise_x_on_subordinate(sge_gdi_ctx_class_t *ctx, lListElem *qinstance_where_task_is_running, u_long32 job_id, u_long32 task_id, bool suspend, monitoring_t *monitor) { bool ret = false; lListElem *jep = NULL; lListElem *jatep ...
false
false
false
false
false
0
LoadBuyerValues(AHB_Buyer_Config& config) { uint32 FactionChance; switch (config.GetHouseType()) { case AUCTION_HOUSE_ALLIANCE: config.BuyerPriceRatio = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ALLIANCE_PRICE_RATIO) + 50; FactionChance = sAuctionBotConfig.getConfig(CON...
false
false
false
false
false
0
atk_gobject_accessible_for_object (GObject *obj) { AtkObject* accessible; g_return_val_if_fail (G_IS_OBJECT (obj), NULL); /* See if we have a cached accessible for this object */ accessible = g_object_get_qdata (obj, quark_accessible_object); if (!accessible) { AtkObjectFactory *factory; ...
false
false
false
false
false
0
Cmd_New_Reload_f(edict_t * ent) { //FB 6/1/99 - refuse to reload during LCA if (lights_camera_action) return; ent->client->reload_attempts++; }
false
false
false
false
false
0
pending_number(struct tm *tm, int *num) { int number = *num; if (number) { *num = 0; if (tm->tm_mday < 0 && number < 32) tm->tm_mday = number; else if (tm->tm_mon < 0 && number < 13) tm->tm_mon = number-1; else if (tm->tm_year < 0) { if (number > 1969 && number < 2100) tm->tm_year = number - 190...
false
false
false
false
false
0
flash(const QString &text, int duration, const QTextOption &option) { if (text.isEmpty()) { return; } //kDebug() << duration << text; d->type = FlashingLabelPrivate::Text; d->text = text; d->textOption = option; d->setupFlash(duration); }
false
false
false
false
false
0
command_check_args(struct hub_command* cmd, struct command_handle* handler) { if (!handler->args) return 1; if (list_size(cmd->args) >= command_count_required_args(handler)) return 1; return 0; }
false
false
false
false
false
0
heal_nick(struct Client *source_p, struct Client *target_p) { if (rb_dlinkFindDestroy(target_p, &hurt_state.hurt_clients)) { sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s used HEAL on %s", get_oper_name(source_p), get_client_name(target_p, HIDE_IP)); sendto_one_notice(target_p, ":HURT restriction temporarily...
false
false
false
false
false
0
get_func_expr(FuncExpr *expr, deparse_context *context, bool showimplicit) { StringInfo buf = context->buf; Oid funcoid = expr->funcid; Oid argtypes[FUNC_MAX_ARGS]; int nargs; ListCell *l; /* * If the function call came from an implicit coercion, then just show the * first argument --- unless ca...
false
false
false
false
false
0
lto_tag_check_set (enum LTO_tags actual, int ntags, ...) { va_list ap; int i; va_start (ap, ntags); for (i = 0; i < ntags; i++) if ((unsigned) actual == va_arg (ap, unsigned)) { va_end (ap); return; } va_end (ap); internal_error ("bytecode stream: unexpected tag %s", lto_tag_name (actual...
false
false
false
false
false
0
create_cursor_name(SV *sth, imp_sth_t *imp_sth) { ISC_STATUS status[ISC_STATUS_LENGTH]; Newxz(imp_sth->cursor_name, 22, char); sprintf(imp_sth->cursor_name, "perl%16.16X", (uint32_t)imp_sth->stmt); isc_dsql_set_cursor_name(status, &(imp_sth->stmt), imp_sth->cursor_name, 0); if (ib_error_check(sth, ...
false
true
false
false
false
1
d9lgic_(doublereal *a, doublereal *x, doublereal *alx) { /* Initialized data */ /* static */ doublereal eps = 0.; /* System generated locals */ doublereal ret_val; /* Builtin functions */ double log(doublereal); /* Local variables */ integer k; doublereal p, r__, s, t, fk, xma, x...
false
false
false
false
false
0
set_select(struct tca6507_chip *tca, int led, int val) { int mask = (1 << led); int bit; for (bit = 0; bit < 3; bit++) { int n = tca->reg_file[bit] & ~mask; if (val & (1 << bit)) n |= mask; if (tca->reg_file[bit] != n) { tca->reg_file[bit] = n; tca->reg_set |= (1 << bit); } } }
false
false
false
false
false
0
ast_category_empty(struct ast_config *cfg, const char *category) { struct ast_category *cat; for (cat = cfg->root; cat; cat = cat->next) { if (!strcasecmp(cat->name, category)) continue; ast_variables_destroy(cat->root); cat->root = NULL; cat->last = NULL; return 0; } return -1; }
false
false
false
false
false
0
mEXP(bool _createToken) { int _ttype; antlr::RefToken _token; std::string::size_type _begin = text.length(); _ttype = EXP; std::string::size_type _saveIndex; { match('e' /* charlit */ ); { if ((_tokenSet_3.member(LA(1)))) { { switch ( LA(1)) { case 0x2b /* '+' */ : { match('+' /* charlit */ ); br...
false
false
false
false
false
0
rd_cpin_conn(void) { int32 namedport_form; struct cell_pin_t *cpp; if (__toktyp == DOT) { __get_vtok(); if (__toktyp != ID) { __pv_ferr(1052, "instance/gate connection name of port expected - %s read", __prt_kywrd_vtok()); return(FALSE); } strcpy(__portnam, __token); __ge...
true
true
false
false
false
1
__ecereMethod___ecereNameSpace__ecere__com__CustomAVLTree_GetPrev(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__IteratorPointer * node) { struct __ecereNameSpace__ecere__com__CustomAVLTree * __ecerePointer___ecereNameSpace__ecere__com__CustomAVLTree = (struct __ecereNameSpac...
false
false
false
false
false
0
setLineAttributes(void) { MSBoolean status=MSFalse; if (lineWidth()!=gcValues().line_width) { lineWidth(gcValues().line_width); pout<< ((lineWidth()>2)?lineWidth()-1:lineWidth()); pout<< " "; pout<< "w"; pout<< " "; status=MSTrue; } if (lineStyle()!=gcValues().line_style) ...
false
false
false
false
false
0
InfpFindFirstMatchLine(PINFCONTEXT ContextIn, PCWSTR Key, PINFCONTEXT ContextOut) { PINFCACHELINE CacheLine; if (ContextIn == NULL || ContextOut == NULL || Key == NULL || *Key == 0) return INF_STATUS_INVALID_PARAMETER; if (ContextIn->Inf == NULL || ContextIn->Se...
false
false
false
false
false
0
set_firsts (void) { symbol_number i, j; firsts = bitsetv_create (nvars, nvars, BITSET_FIXED); for (i = ntokens; i < nsyms; i++) for (j = 0; derives[i - ntokens][j]; ++j) { item_number sym = derives[i - ntokens][j]->rhs[0]; if (ISVAR (sym)) bitset_set (FIRSTS (i), sym - ntoken...
false
false
false
false
false
0
icon() const { QString iconName = property( "HintIconName" ).toString(); // non-cached if ( !iconName.isEmpty() ) { return iconName; } else if (isLoop() || isSwap()) { return "drive-harddisk"; } else if (isDrive()) { const bool isRemovable = prop("Removable").toB...
false
false
false
false
false
0
IsEventCompletedByIndex(unsigned eventIndex) const { ReadyEventNode *ren = readyEventNodeList[eventIndex]; unsigned i; if (ren->eventStatus==ID_READY_EVENT_FORCE_ALL_SET) return true; if (ren->eventStatus!=ID_READY_EVENT_ALL_SET) return false; for (i=0; i < ren->systemList.Size(); i++) if (ren->syst...
false
false
false
false
false
0
unquote(char *str) { unsigned char *s, *t; if (!str) return str; for (s = (unsigned char *)str; *s != '\0'; s++) if (*s == '\\') break; if (*s == '\0') return str; #define isoctal(c) \ ((c) >= '0' && (c) <= '7') t = s; do { if (*s == '\\' && isoctal(*(s+1)) && isoctal(*(s+2)) && isoctal(*(s+...
false
false
false
false
false
0
add_plugin_description(Slapi_Entry *e, const char *attrname, char *val) { struct berval desc; struct berval *newval[2] = {0, 0}; int status = 0; desc.bv_val = SLAPI_PLUGIN_NONE_IF_NULL( val ); desc.bv_len = strlen(desc.bv_val); newval[0] = &desc; if ((status = entry_replace_values(e, attrname, newval)) != 0) {...
false
false
false
false
false
0
check(const int typeOfInteraction, const QString &uid, const QString &drugGlobalAtcCode, const int drugSource) { Q_UNUSED(drugSource); if (m_ComputedInteractionCache.contains(uid)) { return; } bool found = false; if (needTest(typeOfInteraction, InnCode)) { // get all drugs inns ...
false
false
false
false
false
0
kmclipm_propertylist_load(const char *filename, int position) { cpl_propertylist *header = NULL; KMCLIPM_TRY { /* for the health of any developer: check if any pre-existing error is set */ if (cpl_error_get_code() != CPL_ERROR_NONE) { cpl_msg_error("","An alrea...
false
false
false
false
false
0
bcemit_binop(FuncState *fs, BinOpr op, ExpDesc *e1, ExpDesc *e2) { if (op <= OPR_POW) { bcemit_arith(fs, op, e1, e2); } else if (op == OPR_AND) { lua_assert(e1->t == NO_JMP); /* List must be closed. */ expr_discharge(fs, e2); jmp_append(fs, &e2->f, e1->f); *e1 = *e2; } else if (op == OPR_OR) ...
false
false
false
false
false
0
sigmaHat() { // Couplings to an incoming flavour. int idAbs = abs(id1); double ei = couplingsPtr->ef(idAbs); double ai = couplingsPtr->af(idAbs); double vi = couplingsPtr->vf(idAbs); double api = afZp[idAbs]; double vpi = vfZp[idAbs]; double ei2 = ei * ei; double eiv...
false
false
false
false
false
0