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
CreateAllInstance(const char *itkclassname) { ObjectFactoryBase::Initialize(); std::list< LightObject::Pointer > created; for ( FactoryListType::iterator i = ObjectFactoryBasePrivate::m_RegisteredFactories->begin(); i != ObjectFactoryBasePrivate::m_RegisteredFactories->end(); ++i ) { std...
false
false
false
false
false
0
_ssh_set_error(void *error, int code, const char *function, const char *descr, ...) { struct ssh_common_struct *err = error; va_list va; va_start(va, descr); vsnprintf(err->error.error_buffer, ERROR_BUFFERLEN, descr, va); va_end(va); ...
false
false
false
false
true
1
gmpc_paned_size_group_child_destroy_event (GmpcPanedSizeGroup* self, GtkWidget* paned, GdkEvent* event) { gboolean result = FALSE; GtkWidget* _tmp0_; g_return_val_if_fail (self != NULL, FALSE); g_return_val_if_fail (paned != NULL, FALSE); g_return_val_if_fail (event != NULL, FALSE); _tmp0_ = paned; self->priv->l...
false
false
false
false
false
0
clear_capture_buf(struct loopback_pcm *dpcm, unsigned int bytes) { struct snd_pcm_runtime *runtime = dpcm->substream->runtime; char *dst = runtime->dma_area; unsigned int dst_off = dpcm->buf_pos; if (dpcm->silent_size >= dpcm->pcm_buffer_size) return; if (dpcm->silent_size + bytes > dpcm->pcm_buffer_size) byt...
false
false
false
false
false
0
HasFocus() const { wxWindow *win = FindFocus(); return win && ((win==(wxSheet*)this) || (win==m_gridWin) || (win==m_rowLabelWin) || (win == m_colLabelWin) || (win == m_cornerLabelWin)); }
false
false
false
false
false
0
ata_is_40wire(struct ata_device *dev) { if (dev->horkage & ATA_HORKAGE_IVB) return ata_drive_40wire_relaxed(dev->id); return ata_drive_40wire(dev->id); }
false
false
false
false
false
0
CalcLargestMarkerHeight() { largestMarkerHeight = 0; for (int m = 0; m <= MARKER_MAX; ++m) { switch (markers[m].markType) { case SC_MARK_PIXMAP: if (markers[m].pxpm && markers[m].pxpm->GetHeight() > largestMarkerHeight) largestMarkerHeight = markers[m].pxpm->GetHeight(); break; case SC_MARK_RGBAIMAGE:...
false
false
false
false
false
0
lister_remove(Lister *lister) { if (!lister) { set_errno(EINVAL); return; } if (lister->index == -1) { set_errno(EINVAL); return; } list_remove_unlocked(lister->list, (size_t)lister->index--); }
false
false
false
false
false
0
CreateDataRepresentationFromImport( aiScene* pScene, XFile::Scene* pData) { // Read the global materials first so that meshes referring to them can find them later ConvertMaterials( pScene, pData->mGlobalMaterials); // copy nodes, extracting meshes and materials on the way pScene->mRootNode = CreateNodes( pScene, ...
false
false
false
false
false
0
ebook_test_utils_book_async_get_supported_auth_methods (EBook *book, GSourceFunc callback, gpointer user_data) { EBookTestClosure *closure; closure = g_new0 (EBookTestClosure, 1); closure->cb = callback; ...
false
false
false
false
false
0
sp_color_wheel_render_hue_wheel (SPColorWheel *wheel) { guchar *dp; gint x, y; guint r, g, b; gint size = wheel->_center * 2; gboolean dirty = FALSE; if (wheel->_image && (wheel->_bs < (size * size) )) { g_free (wheel->_image); wheel->_image = NULL; wheel->_bs = 0; ...
false
false
false
false
false
0
handleEvent(SoHandleEventAction *action) // //////////////////////////////////////////////////////////////////////// { // Set only a subset of the elements for this action SbViewVolume viewVol; SbBool changeRegion; SoState *state = action->getState(); // Get the current viewport region const...
false
false
false
false
false
0
sst_byt_pcm_hw_free(struct snd_pcm_substream *substream) { struct snd_soc_pcm_runtime *rtd = substream->private_data; dev_dbg(rtd->dev, "PCM: hw_free\n"); snd_pcm_lib_free_pages(substream); return 0; }
false
false
false
false
false
0
moveMembers (int delta) { stacksize += delta ; VarMap::iterator var ; for (var = variables.begin() ; var != variables.end() ; var++) { (*var).second->incOffset (delta) ; } std::list<Tag*>::iterator child ; for (child = children.begin() ; child != children.end() ; child++) { ...
false
false
false
false
false
0
load_keycert(const char *fn) { FILE *f; EVP_PKEY *key; X509 *cert; DH *dh; if (!(f = fopen(fn, "r"))) { perror(fn); return 0; } if (!(key = PEM_read_PrivateKey(f, NULL, NULL, NULL))) { fprintf(stderr, "%s: invalid private key\n", fn); fclose(f); return 0; } expect(SSL_CTX_use_PrivateKey(ctx, key)); ...
false
false
true
false
true
1
intel_fbc_schedule_enable(struct intel_crtc *crtc) { struct intel_fbc_work *work; struct drm_i915_private *dev_priv = crtc->base.dev->dev_private; WARN_ON(!mutex_is_locked(&dev_priv->fbc.lock)); intel_fbc_cancel_work(dev_priv); work = kzalloc(sizeof(*work), GFP_KERNEL); if (work == NULL) { DRM_ERROR("Failed ...
false
false
false
false
false
0
gdm_wimax_set_mac_addr(struct net_device *dev, void *p) { struct sockaddr *addr = p; if (netif_running(dev)) return -EBUSY; if (!is_valid_ether_addr(addr->sa_data)) return -EADDRNOTAVAIL; __gdm_wimax_set_mac_addr(dev, addr->sa_data); return 0; }
false
false
false
false
false
0
add_tcl_objcommands(tcl_cmds *table) { int i; for (i = 0; table[i].name; i++) Tcl_CreateObjCommand(interp, table[i].name, table[i].func, (ClientData) 0, NULL); }
false
false
false
false
false
0
get_text( const GP<DjVuFile> & file, const GP<ByteStream> &gstr_out) { DEBUG_MSG("DjVuFile::get_text()\n"); ByteStream &str_out=*gstr_out; if (!file->is_data_present() || (file->is_modified() && file->text)) { // Process the decoded (?) text GCriticalSectionLock lock(&file->text_lock); ...
false
false
false
false
false
0
proc2_fopen (t_pf_pair* pf_pair, tCC** pp_args) { t_fd_pair fd_pair; pid_t ch_id = proc2_open (&fd_pair, pp_args); if (ch_id == NOPROCESS) return ch_id; pf_pair->pf_read = fdopen (fd_pair.read_fd, "r"); pf_pair->pf_write = fdopen (fd_pair.write_fd, "w"); return ch_id; }
false
false
false
false
false
0
range_trans_new_diff(poldiff_t * diff, poldiff_form_e form, const void *item) { const pseudo_range_trans_t *prt = (const pseudo_range_trans_t *)item; const apol_vector_t *v1, *v2; const qpol_mls_range_t *orig_range = NULL, *mod_range = NULL; poldiff_range_trans_t *rt = NULL; int error; /* check if form should re...
false
false
false
false
false
0
check_buffer_tree_ref(struct extent_buffer *eb) { int refs; /* the ref bit is tricky. We have to make sure it is set * if we have the buffer dirty. Otherwise the * code to free a buffer can end up dropping a dirty * page * * Once the ref bit is set, it won't go away while the * buffer is dirty or in wr...
false
false
false
false
false
0
FindInScopeNamespaces(JSContext *cx, JSXML *xml, JSXMLArray *nsarray) { uint32 length, i, j, n; JSObject *ns, *ns2; JSString *prefix, *prefix2; length = nsarray->length; do { if (xml->xml_class != JSXML_CLASS_ELEMENT) continue; for (i = 0, n = xml->xml_namespaces.length;...
false
false
false
false
false
0
qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { Q_ASSERT(staticMetaObject.cast(_o)); TextContent *_t = static_cast<TextContent *>(_o); switch (_id) { case 0: _t->notifyHasShape((*reinterpret_cast< bool(*)>(_a[1]))...
false
false
false
false
false
0
renderListForm(int port) { INFO2("[WS]: renderListForm"); string_t* page = stringNew("Set(list,"); mutexLock(M_STATE); stringAppend(page, lfCaption()); stringAppend(page, ",replace"); SingleList* list = lfList(); while (list) { stringAppend(page, ","); stringAppend(...
false
false
false
false
false
0
add2freelist(unsigned int f, unsigned int l) { int i = 0; for ( ; i < 17 ; i++) if (freelist[i].last == 0) break; setfreelist(i, f, l); }
false
false
false
false
false
0
_utility_data_model_to_nodeset (GdaDataModel * model, xmlXPathObjectPtr * nodeset, GError ** error) { gint nrows, i; gint *rcols, rnb_cols; gchar **col_ids = NULL; gint c; xmlNodePtr mainnode; mainnode = xmlNewNode (NULL, (xmlChar *) "resultset"); if (mainnode == NULL) { #ifdef GDA_DEBUG_NO g_print ("xmlN...
false
false
false
false
false
0
mix_colors(fireshell *fs) { float flash; fs->h = rnd(360); fs->s = frand(0.4) + 0.6; fs->v = 1.0; fs_roll_rgb(fs); flash = rnd(444) + 111; /* Mega Jouls ! */ fs->flash_r = fs->r * flash; fs->flash_g = fs->g * flash; fs->flash_b = fs->b * flash; }
false
false
false
false
false
0
outname( char *fs ) #else outname( fs ) char *fs; #endif { static char buf[MaxFileName+1]; char *p; p = buf; strcpy(buf, fs); while ( *p != '\0' ) {p++;} /* Stop on '\0' */ while ( *p != '.' && p != buf ) {--p;} /* Find '.' */ if ( p != buf ) *p = '\0'; /* Found '.' */ require(strlen(buf) + 2 < (size_t)M...
false
false
false
false
false
0
evemu_set_name(struct evemu_device *dev, const char *name) { if (name && strlen(name) < sizeof(dev->name)) strcpy(dev->name, name); }
false
false
false
false
false
0
ll_stub (XDR *xdr_in) { char *r; struct guestfs_ll_args args; const char *directory; if (optargs_bitmask != 0) { reply_with_error ("header optargs_bitmask field must be passed as 0 for calls that don't take optional arguments"); goto done_no_free; } memset (&args, 0, sizeof args); if (!xdr_gues...
false
false
false
false
false
0
cgroup_get_subsys_mount_point(const char *controller, char **mount_point) { int i; int ret = ECGROUPNOTEXIST; if (!cgroup_initialized) return ECGROUPNOTINITIALIZED; if (!controller) return ECGINVAL; pthread_rwlock_rdlock(&cg_mount_table_lock); for (i = 0; cg_mount_table[i].name[0] != '\0'; i++) { if (str...
false
false
false
false
false
0
Verify(const DataSet& ds, Usage const & usage) const { bool success = true; if( usage == Usage::UserOption ) return success; Macro::MapModuleEntry::const_iterator it = ModuleInternal.begin(); for(;it != ModuleInternal.end(); ++it) { const Tag &tag = it->first; const ModuleEntry &me = it->second; ...
false
false
false
false
false
0
sizeHint() const { // save some CPU if ( !allowResize() ) return minimumSizeHint(); QSize s( Q3ListView::sizeHint().width(), 0 ); int border = 5; int h = border; Q3ListView *listView = (Q3ListView *)this; Q3ListViewItemIterator it( listView ); while ( it.current() ) { if ( it.current()->isVisible() ) { ...
false
false
false
false
false
0
Prepend (Graphic* g0, Graphic* g1, Graphic* g2, Graphic* g3) { if (g3 != nil) { invalidateCachesGraphic(g3); _kids->Prepend(new UList(g3)); setParent(g3, this); } if (g2 != nil) { invalidateCachesGraphic(g2); _kids->Prepend(new UList(g2)); setParent(g2, this); } if (g1 != nil) { invalidateCac...
false
false
false
false
false
0
get_services (SwCoreIface *self, DBusGMethodInvocation *context) { SwCore *core = SW_CORE (self); SwCorePrivate *priv = core->priv; GPtrArray *array; GList *l; array = g_ptr_array_new (); l = g_hash_table_get_keys (priv->service_types); while (l) { g_ptr_array_add (array, l->data); l = g_list_de...
false
false
false
false
false
0
hash_remove (string, table, flags) const char *string; HASH_TABLE *table; int flags; { int bucket; BUCKET_CONTENTS *prev, *temp; unsigned int hv; if (table == 0 || HASH_ENTRIES (table) == 0) return (BUCKET_CONTENTS *)NULL; bucket = HASH_BUCKET (string, table, hv); prev = (BUCKET_CONTENT...
false
false
false
false
false
0
varpanelTooltipsReset (displayd * display, ggobid * gg, GtkWidget * wx, GtkWidget * wy, GtkWidget * wz, GtkWidget * label) { ProjectionMode projection = pmode_get (display, gg); switch (projection) { case P1PLOT: gtk_tooltips_set_tip (GTK_TOOLTIPS (gg->tips), wx, ...
false
false
false
false
false
0
Update(uint32 update_diff, uint32 diff) { if (m_removed) // pet already removed, just wait in remove queue, no updates return; switch (m_deathState) { case CORPSE: { if (m_corpseDecayTimer <= update_diff) { ...
false
false
false
false
false
0
comp(const char *exp) { if (wascompiled) { regfree(&reg); wascompiled = false; } results.clear(); offsets.clear(); lengths.clear(); imatched = false; #ifdef DGDEBUG std::cout << "Compiling " << exp << std::endl; #endif #ifdef HAVE_PCRE #ifdef DGDEBUG std::cout << "...with PCRE " << std::endl; #endif if (re...
false
false
false
false
false
0
setShortImmediate(const Instruction *i, const int s) { const uint32_t u32 = i->getSrc(s)->asImm()->reg.data.u32; const uint64_t u64 = i->getSrc(s)->asImm()->reg.data.u64; if (i->sType == TYPE_F32) { assert(!(u32 & 0x00000fff)); code[0] |= ((u32 & 0x001ff000) >> 12) << 23; code[1] |= ((u32 & ...
false
false
false
false
false
0
Markup(GtkWidget * widget, const XAP_StringSet * /*pSS*/, char *string) { gchar * unixstr = NULL; // used for conversions UT_XML_cloneNoAmpersands(unixstr, string); UT_String markupStr(UT_String_sprintf(gtk_label_get_label (GTK_LABEL(widget)), unixstr)); gtk_label_set_markup (GTK_LABEL(widget), markupStr.c_str()); ...
false
false
false
false
false
0
ql_mb_get_port_cfg(struct ql_adapter *qdev) { struct mbox_params mbc; struct mbox_params *mbcp = &mbc; int status = 0; memset(mbcp, 0, sizeof(struct mbox_params)); mbcp->in_count = 1; mbcp->out_count = 3; mbcp->mbox_in[0] = MB_CMD_GET_PORT_CFG; status = ql_mailbox_command(qdev, mbcp); if (status) return ...
false
false
false
false
false
0
lineeditor_transpose_chars ___P((___device_tty *self, int start1, int end1, int start2, int end2), (self, start1, end1, start2, end2) ___device_tty *self; int start1; int end1; int start2; int end2;) { ___device_tty *d = self; ___SCM...
false
false
false
false
false
0
fp_lshd(fp_int *a, int x) { int y; /* move up and truncate as required */ y = MIN(a->used + x - 1, (int)(FP_SIZE-1)); /* store new size */ a->used = y + 1; /* move digits */ for (; y >= x; y--) { a->dp[y] = a->dp[y-x]; } /* zero lower digits */ for (; y >= 0; y--) { a->d...
false
false
false
false
true
1
lookup_last_hid_serv_request(routerstatus_t *hs_dir, const char *desc_id_base32, const rend_data_t *rend_query, time_t now, int set) { char hsdir_id_base32[REND_DESC_ID_V2_LEN_BASE32 + 1]; char hsdir_desc_comb_id[LAST_HID_SERV_RE...
true
true
false
false
false
1
main(int argc, char ** argv) { ARGS * ap; ARGS args; /* * Make sure someone hasn't closed off our standard file * descriptors so that we don't accidentally overwrite * something with our output. */ VerifyDescriptors(); ap = &args; ap->table = ++argv; ap->count = --argc; myPid = getpid(); myUid = get...
false
false
false
false
false
0
on_each_cpu(void (*func) (void *info), void *info, int wait) { unsigned long flags; int ret = 0; preempt_disable(); ret = smp_call_function(func, info, wait); local_irq_save(flags); func(info); local_irq_restore(flags); preempt_enable(); return ret; }
false
false
false
false
false
0
AddEntry(int nIndexNumber, GByte *pKeyValue, GInt32 nRecordNo) { if ((m_eAccessMode != TABWrite && m_eAccessMode != TABReadWrite) || ValidateIndexNo(nIndexNumber) != 0) return -1; return m_papoIndexRootNodes[nIndexNumber-1]->AddEntry(pKeyValue,nRecordNo); }
false
false
false
false
false
0
mng_minimum_box(MngBox box1,MngBox box2) { MngBox box; box=box1; if (box.left < box2.left) box.left=box2.left; if (box.top < box2.top) box.top=box2.top; if (box.right > box2.right) box.right=box2.right; if (box.bottom > box2.bottom) box.bottom=box2.bottom; return box; }
false
false
false
false
false
0
ComplexToIFFTOoura(const Spectrum &in) const { int i; Array<Complex> inbuffer = in.GetComplexArray(); ifftbuffer[0] = inbuffer[0].Real(); ifftbuffer[1] = inbuffer[mSize/2].Real(); for (i=1; i<mSize/2; i++) { ifftbuffer[2*i] = inbuffer[i].Real(); ifftbuffer[2*i+1] = -inbuffer[i].Imag(); } }
false
false
false
false
false
0
setSuggestedFileName(const QString& suggestedFileName) { if (suggestedFileName.isEmpty()) { return; } d->fileNameLabel->setText(i18nc("@label File name", "Name: %1", suggestedFileName)); d->fileNameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); d->fileNameLabel->setWhatsThis(i18...
false
false
false
false
false
0
showhide (char *togglebtn, char *widget, gboolean display) { GtkWidget *t=lookup_widget(window1,togglebtn); GtkWidget *w=lookup_widget(window1,widget); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(t),display); /* - is this [also] done by btn callback ? check */ if (display) { gtk_widget_show (w); } else { g...
false
false
false
false
false
0
check_cast_type (tree to_type, tree from_type) { int to_stars = count_stars (&to_type); int from_stars = count_stars (&from_type); if (to_stars != from_stars) return CT_SIDEWAYS; if (to_type == from_type) return CT_USELESS; if (parent_type_p (to_type, from_type)) return CT_UP; if (parent_type_p (f...
false
false
false
false
false
0
ThreadedRequestData( vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector), vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) { vtkDebugMacro(<< "Execute: inData = " << inData[0][0] ...
false
false
false
false
false
0
exo_icon_bar_rows_reordered (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gint *new_order, ExoIconBar *icon_bar) { ExoIconBarItem **item_array; GList *items = NULL;...
false
false
false
false
false
0
do_locate (byte *msg, size_t msglen) { if (msg[2] == 0) { warning << "MIDI::MMC: locate [I/F] command not supported" << endmsg; return 0; } /* regular "target" locate command */ Locate (*this, &msg[3]); return 0; }
false
false
false
false
false
0
ahd_aic790X_setup(struct ahd_softc *ahd) { ahd_dev_softc_t pci; u_int rev; pci = ahd->dev_softc; rev = ahd_pci_read_config(pci, PCIR_REVID, /*bytes*/1); if (rev < ID_AIC7902_PCI_REV_A4) { printk("%s: Unable to attach to unsupported chip revision %d\n", ahd_name(ahd), rev); ahd_pci_write_config(pci, P...
false
false
false
false
false
0
erl_mk_tuple (ETERM **arr,int size) { ETERM *ep; int i; if ((!arr) || (size < 0)) return NULL; for (i=0; i<size; i++) if (!arr[i]) return NULL; /* ASSERT(arr != NULL); */ ep = erl_alloc_eterm(ERL_TUPLE); ERL_COUNT(ep) = 1; ERL_TUPLE_SIZE(ep) = size; ERL_TUPLE_ELEMS(ep) = (ETERM**)...
false
false
false
false
false
0
bnx2x_reset_unicore(struct link_params *params, struct bnx2x_phy *phy, u8 set_serdes) { struct bnx2x *bp = params->bp; u16 mii_control; u16 i; CL22_RD_OVER_CL45(bp, phy, MDIO_REG_BANK_COMBO_IEEE0, MDIO_COMBO_IEEE0_MII_CONTROL, &mii_control); /* Reset the unicore */ CL22_WR_OVER_CL45...
false
false
false
false
false
0
cram_open(const char *filename, const char *mode) { cram_FILE *fp; cram_fd *fd; char fmode[3]= { mode[0], '\0', '\0' }; if (strlen(mode) > 1 && (mode[1] == 'b' || mode[1] == 'c')) { fmode[1] = 'b'; } #ifdef SAMTOOLS fp = hopen(filename, fmode); #else if (strcmp(filename, "-") == 0) { fp ...
false
false
false
false
false
0
twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg) { int ret; unsigned int val; ret = regmap_read(twl6040->regmap, reg, &val); if (ret < 0) return ret; return val; }
false
false
false
false
false
0
fold_builtin_constant_p (tree arg) { /* We return 1 for a numeric type that's known to be a constant value at compile-time or for an aggregate type that's a literal constant. */ STRIP_NOPS (arg); /* If we know this is a constant, emit the constant of one. */ if (CONSTANT_CLASS_P (arg) || (TRE...
false
false
false
false
false
0
testSelfAssignment() { core::array<int> myArray; myArray.push_back(1); myArray = myArray; return myArray.size() == 1; }
false
false
false
false
false
0
gst_avi_demux_reset (GstAviDemux * avi) { gint i; GST_DEBUG ("AVI: reset"); for (i = 0; i < avi->num_streams; i++) gst_avi_demux_reset_stream (avi, &avi->stream[i]); avi->header_state = GST_AVI_DEMUX_HEADER_TAG_LIST; avi->num_streams = 0; avi->num_v_streams = 0; avi->num_a_streams = 0; avi->num_t...
false
false
false
false
false
0
initCurrency(const char *isoCurrency) { int32_t result = binarySearch(gTypes, 0, LENGTHOF(gTypes), "currency"); U_ASSERT(result != -1); fTypeId = result; result = binarySearch( gSubTypes, gOffsets[fTypeId], gOffsets[fTypeId + 1], isoCurrency); if (result != -1) { fSubTypeId = res...
false
false
false
false
false
0
tc2fr(const char *tc) { int minutes = 0; int seconds = 0; int frames = 0; long totalframes = 0; char tmp[MAXDIGITS + 1]; int nums[NUMOFNUMS]; int n = 0; int i = 0; int last_was_colon = 0; int stop = 0; if (tc == NULL) return -1; for (i = 0; i <= MAXDIGITS; i++) tmp[i] = '\0'; while (isspace(*tc)) ...
false
false
false
false
false
0
dvb_manager_real_GetNameOfRegisteredDevice (DVBIDBusManager* base, guint adapter, guint frontend, gchar** name, GError** error) { DVBManager * self; gchar* _vala_name = NULL; gboolean result = FALSE; DVBDevice* dev = NULL; guint _tmp0_ = 0U; guint _tmp1_ = 0U; DVBDevice* _tmp2_ = NULL; DVBDevice* _tmp3_ = NULL;...
false
false
false
false
false
0
__udp_vskipto_any(int32 targ1) { for (;;) { if (__toktyp == targ1) { __syncto_class = SYNC_TARG; return(TRUE); } if (set_udpsyncto((byte) __toktyp)) break; if (__toktyp == TEOF) __fterr(315, "unexpected EOF while skipping to %s", prt2_vtok(targ1)); __get_vtok(); } return(FALSE); }
false
false
false
false
false
0
rb_dlptr_free_set(VALUE self, VALUE val) { struct ptr_data *data; TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data); data->free = get_freefunc(val, &data->wrap[1]); return Qnil; }
false
false
false
false
false
0
isns_object_get_attrlist(isns_object_t *obj, isns_attr_list_t *result, const isns_attr_list_t *req_attrs) { isns_attr_list_t *attrs = &obj->ie_attrs; isns_attr_t *attr; unsigned int i; if (req_attrs == NULL) { /* Retrieve all attributes */ isns_attr_list_append_list(result, attrs); } else { for (i = 0; ...
false
false
false
false
false
0
gtkmenu_gtk_menu_popup(ScmObj *SCM_FP, int SCM_ARGCNT, void *data_) { ScmObj menu_scm; GtkMenu* menu; ScmObj parent_menu_shell_scm; GtkWidget* parent_menu_shell; ScmObj parent_menu_item_scm; GtkWidget* parent_menu_item; ScmObj func_scm; ScmObj func; ScmObj button_scm; u_int button; ScmObj activate...
false
false
false
false
false
0
CheckRTCP(ConfServer *pCS) { char *end; union { rtcp_common_t *p; char *cp; } u; rtcp_common_t *p = (rtcp_common_t *) pCS->pControl->Buf; char Ret = 0; u.p = p; end = u.cp + pCS->pControl->Count; // Sanity check: Version correct, no padding in first packet, // first item is either RTC...
false
false
false
false
false
0
OnFile(const wxString& filename) { if (ParserCommon::FileType(filename) != ParserCommon::ftOther) m_Files.Add(filename); return wxDIR_CONTINUE; }
false
false
false
false
false
0
toAscii(const ENCODING *enc, const char *ptr, const char *end) { char buf[1]; char *p = buf; XmlUtf8Convert(enc, &ptr, end, &p, p + 1); if (p == buf) return -1; else return buf[0]; }
true
true
false
false
false
1
_draw_gl(Evas_Object *obj) { Evas_GL_API *gl = elm_glview_gl_api_get(obj); GLData *gld = evas_object_data_get(obj, "gld"); if (!gld) return; render_gears(gld); gl->glFinish(); }
false
false
false
false
false
0
writeNameIdx(StringRef FName) { const auto &ret = NameTable.find(FName); if (ret == NameTable.end()) return sampleprof_error::truncated_name_table; encodeULEB128(ret->second, OS); return sampleprof_error::success; }
false
false
false
false
false
0
is_end_of_headers(char *hline) { return ((hline[0] == LF) || ((hline[0] == CR) && (hline[1] == LF))); }
false
false
false
false
false
0
gth_window_apply_saved_size (GthWindow *window, int page) { g_return_if_fail (window != NULL); g_return_if_fail (GTH_IS_WINDOW (window)); g_return_if_fail (page >= 0 && page < window->priv->n_pages); if (! window->priv->window_size[page].saved) return; gtk_window_resize (GTK_WINDOW (window), ...
false
false
false
false
false
0
search_free(struct convert_rock *rock) { if (rock && rock->state) { struct search_state *s = (struct search_state *)rock->state; if (s->starts) free(s->starts); } basic_free(rock); }
false
false
false
false
false
0
btc8723b2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) { u8 wifi_rssi_state, bt_rssi_state; u32 wifi_bw; wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); bt_rssi_state = btc8723b2ant_bt_rssi_state(2, 29, 0); btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ...
false
false
false
false
false
0
rdp_read_remote_programs_capability_set(STREAM* s, rdpSettings* settings) { uint32 railSupportLevel; stream_read_uint32(s, railSupportLevel); /* railSupportLevel (4 bytes) */ if ((railSupportLevel & RAIL_LEVEL_SUPPORTED) == 0) { if (settings->remote_app == True) { /* RemoteApp Failure! */ settings->remo...
false
false
false
false
false
0
action_to_string (DispatcherAction action) { switch (action) { case DISPATCHER_ACTION_HOSTNAME: return "hostname"; case DISPATCHER_ACTION_UP: return "up"; case DISPATCHER_ACTION_PRE_DOWN: return "pre-down"; case DISPATCHER_ACTION_DOWN: return "down"; case DISPATCHER_ACTION_VPN_UP: return "vpn-up"; case...
false
false
false
false
false
0
list_isempty (List *list) { return list == NULL || list->list->next == list->list; }
false
false
false
false
false
0
write_handler(const String &in_str, Element *e, void *thunk, ErrorHandler *errh) { Counter *c = (Counter *)e; String str = in_str; switch ((intptr_t)thunk) { case H_COUNT_CALL: if (!IntArg().parse(cp_shift_spacevec(str), c->_count_trigger)) return errh->error("'count_call' first word should be...
false
false
false
false
false
0
glade_app_remove_project (GladeProject *project) { GladeApp *app; g_return_if_fail (GLADE_IS_PROJECT (project)); app = glade_app_get (); app->priv->projects = g_list_remove (app->priv->projects, project); /* this is needed to prevent clearing the selection of a closed project */ app->priv->active_project = ...
false
false
false
false
false
0
fiasco_c_options_set_frame_pattern (fiasco_c_options_t *options, const char *pattern) /* * Set `pattern' of input frames. * `pattern' has to be a sequence of the following * characters (case insensitive): * 'i' intra frame * 'p' predicted frame * 'b' bidirectional predicted frame * E.g. pattern = ...
false
false
false
false
false
0
bit_table(struct drm_device *dev, u8 id, struct bit_entry *bit) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvbios *bios = &drm->vbios; u8 entries, *entry; if (bios->type != NVBIOS_BIT) return -ENODEV; entries = bios->data[bios->offset + 10]; entry = &bios->data[bios->offset + 12]; while (entries-...
false
false
false
false
false
0
sqlite_create_aggregate( sqlite *db, /* Add the function to this database connection */ const char *zName, /* Name of the function to add */ int nArg, /* Number of arguments */ void (*xStep)(sqlite_func*,int,const char**), /* The step function */ void (*xFinalize)(sqlite_func*), ...
false
false
false
false
false
0
gsskrb5_set_default_realm(const char *realm) { struct _gss_mech_switch *m; gss_buffer_desc buffer; OM_uint32 junk; _gss_load_mech(); buffer.value = rk_UNCONST(realm); buffer.length = strlen(realm); HEIM_SLIST_FOREACH(m, &_gss_mechs, gm_link) { if (m->gm_mech.gm_set_sec_context_option == NULL) cont...
false
false
false
false
false
0
igb_set_channels(struct net_device *netdev, struct ethtool_channels *ch) { struct igb_adapter *adapter = netdev_priv(netdev); unsigned int count = ch->combined_count; unsigned int max_combined = 0; /* Verify they are not requesting separate vectors */ if (!count || ch->rx_count || ch->tx_count) return -E...
false
false
false
false
false
0
NULLWrite(cmsIOHANDLER* iohandler, cmsUInt32Number size, const void *Ptr) { FILENULL* ResData = (FILENULL*) iohandler ->stream; ResData ->Pointer += size; if (ResData ->Pointer > iohandler->UsedSpace) iohandler->UsedSpace = ResData ->Pointer; return TRUE; cmsUNUSED_PARAMETER(Ptr); }
false
false
false
false
false
0
accessx_status_applet_factory (PanelApplet *applet, const gchar *iid, gpointer data) { gboolean retval = FALSE; if (!strcmp (iid, "AccessxStatusApplet")) retval = accessx_status_applet_fill (applet); return retval; }
false
false
false
false
false
0
try_colormap(TGAContext *ctx, GError **err) { TGAColor color; guchar *p; guint i, n_colors; g_return_val_if_fail(ctx != NULL, FALSE); n_colors = LE16(ctx->hdr->cmap_n_colors); ctx->cmap = colormap_new (n_colors); if (!ctx->cmap) { g_set_error_literal(err, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERR...
false
false
false
false
false
0
bytesOutgoingAvailable() const { if(d->mode == Stream) return d->to_net.size(); else return 0; }
false
false
false
false
false
0
Validate_ClientV6( const string& sClientV6 ) { // Facultative if( sClientV6.size() == 0 ) return true; // If not auto then check if ip address is ok. if( sClientV6 != STR_AUTO ) { struct in6_addr address; if( pal_inet_pton(AF_INET6, sClientV6.c_str(), &address) <= 0 ) { gssLastError = GOGO...
false
false
false
false
false
0
_load_order(const char *path) { E_Order *order = NULL; Eina_List *apps = NULL, *l; Efreet_Desktop *desk; if (!path) return NULL; if (!(order = e_order_new(path))) return NULL; EINA_LIST_FOREACH(order->desktops, l, desk) { efreet_desktop_ref(desk); apps = eina_list_append(apps, de...
false
false
false
false
false
0
get_cpus_to_display(void) { int online = get_cpus_online(); return (online ? online : kt->cpus); }
false
false
false
false
false
0
evdev_init(void) { int ret; int i; char evdev[32]; int ndevs; int fd; internal_kbd_fd = -1; ndevs = 0; for (i = 0; i < EVDEV_MAX; i++) { ret = snprintf(evdev, 32, "%s%d", EVDEV_BASE, i); if ((ret <= 0) || (ret > 31)) return -1; fd = open(evdev, O_RDWR); if (fd < 0) { ...
false
false
false
false
false
0
at_mailto(const char *cp) { cp = at_email_lhs(cp); if (!cp) return 0; if (*cp++ != '@') return 0; cp = at_email_rhs(cp); if (!cp) return 0; int n = 0; for (;;) { if (*cp != '.') return (n > 0 ? cp : 0); const char *end = at_email_rhs(cp + 1); if (!end) return (n > 0 ? cp ...
false
false
false
false
false
0