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 |
|---|---|---|---|---|---|---|
ajp14_compute_md5(jk_login_service_t *s, jk_logger_t *l)
{
JK_TRACE_ENTER(l);
jk_md5((const unsigned char *)s->entropy,
(const unsigned char *)s->secret_key, s->computed_key);
if (JK_IS_DEBUG_LEVEL(l))
jk_log(l, JK_LOG_DEBUG, "(%s/%s) -> (%s)",
s->entropy, s->secret_key, s... | false | false | false | false | false | 0 |
hub_command_args_free(struct hub_command* cmd)
{
struct hub_command_arg_data* data = NULL;
if (!cmd->args)
return;
LIST_FOREACH(struct hub_command_arg_data*, data, cmd->args,
{
switch (data->type)
{
case type_string:
hub_free(data->data.string);
break;
case type_range:
hub_free(data->data.... | false | false | false | false | false | 0 |
get16_arch(visearch *p) {
unsigned int val;
if (p->off >= (p->asize-1)) {
error("Went past end of archive");
}
val = (0xff & p->abuf[p->off]);
val = ((val << 8) + (0xff & p->abuf[p->off+1]));
p->off += 2;
return val;
} | false | false | false | false | false | 0 |
create_autodetect_quirk(struct snd_usb_audio *chip,
struct usb_interface *iface,
struct usb_driver *driver)
{
int err;
err = create_auto_pcm_quirk(chip, iface, driver);
if (err == -ENODEV)
err = create_auto_midi_quirk(chip, iface, driver);
return err;
} | false | false | false | false | false | 0 |
pat_match_reg(struct sample *smp, struct pattern_expr *expr, int fill)
{
struct pattern_list *lst;
struct pattern *pattern;
/* look in the list */
list_for_each_entry(lst, &expr->patterns, list) {
pattern = &lst->pat;
if (regex_exec2(pattern->ptr.reg, smp->data.str.str, smp->data.str.len))
return pattern;
... | false | false | false | false | false | 0 |
OutputBestSurface(std::ostream &out, const Hypothesis *hypo, const std::vector<FactorType> &outputFactorOrder,
bool reportSegmentation, bool reportAllFactors)
{
if (hypo != NULL) {
// recursively retrace this best path through the lattice, starting from the end of the hypothesis sentence
Ou... | false | false | false | false | false | 0 |
ProcessCaptchaRequest(CMemFile* data)
{
uint64 id = GUI_ID(GetIP(),GetUserPort());
// received a captcha request, check if we actually accept it (only after sending a message ourself to this client)
if (GetChatCaptchaState() == CA_ACCEPTING && GetChatState() != MS_NONE
&& theApp->amuledlg->m_chatwnd->IsIdValid(id)... | false | false | false | false | false | 0 |
AdjustWindow()
{
int new_width=0,new_height=0,tw,i,total;
char *temp;
total=ItemCount(&windows);
if (!total) {
if (WindowIsUp==1) {
XUnmapWindow(dpy,win);
WindowIsUp=2;
}
return;
}
for(i=0;i<total;i++) {
temp=ItemName(&windows,i);
if(temp != NULL)
{
tw=10+XTextWidth(Butto... | false | false | false | false | false | 0 |
drop_temp_touch (edict_t * ent, edict_t * other, cplane_t * plane,
csurface_t * surf)
{
if (other == ent->owner)
return;
Touch_Item (ent, other, plane, surf);
} | false | false | false | false | false | 0 |
serial_init ( void ) {
int status;
int divisor, lcs;
DBG ( "Serial port %#x initialising\n", UART_BASE );
divisor = COMBRD;
lcs = UART_LCS;
#ifdef COMPRESERVE
lcs = uart_readb(UART_BASE + UART_LCR) & 0x7f;
uart_writeb(0x80 | lcs, UART_BASE + UART_LCR);
divisor = (uart_readb(UART_BASE + UART_DLM) << 8) | uar... | false | false | false | false | false | 0 |
objc_get_class_reference (tree ident)
{
tree orig_ident = (DECL_P (ident)
? DECL_NAME (ident)
: TYPE_P (ident)
? OBJC_TYPE_NAME (ident)
: ident);
bool local_scope = false;
#ifdef OBJCPLUS
if (processing_template_decl)
/* Must wait until template instantiation time. */
return ... | false | false | false | false | false | 0 |
get_last_nonnote_insn (void)
{
rtx insn = last_insn;
if (insn)
{
if (NOTE_P (insn))
for (insn = previous_insn (insn);
insn && NOTE_P (insn);
insn = previous_insn (insn))
continue;
else
{
if (GET_CODE (insn) == INSN
&& GET_CODE (PATTERN (insn)) == SEQUENCE)
insn = XVE... | false | false | false | false | false | 0 |
query_module (const char *dir, const char *name)
{
void (*list) (const ClutterIMContextInfo ***contexts,
guint *n_contexts);
gpointer list_ptr;
gpointer init_ptr;
gpointer exit_ptr;
gpointer create_ptr;
GModule *module;
gchar *path;
gboolean error = FALSE;
... | false | false | false | false | false | 0 |
be_irq_unregister(struct be_adapter *adapter)
{
struct net_device *netdev = adapter->netdev;
struct be_eq_obj *eqo;
int i, vec;
if (!adapter->isr_registered)
return;
/* INTx */
if (!msix_enabled(adapter)) {
free_irq(netdev->irq, &adapter->eq_obj[0]);
goto done;
}
/* MSIx */
for_all_evt_queues(adapter,... | false | false | false | false | false | 0 |
dup_block_and_redirect (basic_block bb, basic_block copy_bb, rtx before,
bitmap_head *need_prologue)
{
edge_iterator ei;
edge e;
rtx insn = BB_END (bb);
/* We know BB has a single successor, so there is no need to copy a
simple jump at the end of BB. */
if (simplejump_p (insn))
insn = PREV_INSN ... | false | false | false | false | false | 0 |
main(int argc, char *argv[])
{
if (argc < 2) {
fprintf(stderr, "Usage: %s <filename>\n", argv[0]);
return 1;
}
char *tbl = g_strdup_printf("%s.tbl", argv[1]);
fs_ptable *ptbl = fs_ptable_open_filename(tbl, O_CREAT | O_TRUNC | O_RDWR);
if (!ptbl) {
printf("failed to create ... | false | false | false | false | false | 0 |
index_name_pos(const struct index_state *istate, const char *name, int namelen)
{
int first, last;
first = 0;
last = istate->cache_nr;
while (last > first) {
int next = (last + first) >> 1;
struct cache_entry *ce = istate->cache[next];
int cmp = cache_name_compare(name, namelen, ce->name, ce->ce_flags);
if... | false | false | false | false | false | 0 |
get_dt_table(const int mtno,
const dt_kind kind,
const Array_def_use_table *src_du,
const Array_def_use_table *dst_du,
const int vpe_no)
{
Dt_table *dt_head = NULL, *dpt = NULL;
Array_region_list *src_reg, *dst_reg;
int dim;
if (src_du == NULL || ... | false | false | false | false | false | 0 |
biftim(bifcxdef *ctx, int argc)
{
time_t timer;
struct tm *tblock;
uchar ret[80];
uchar *p;
runsdef val;
int typ;
if (argc == 1)
{
/* get the time type */
typ = (int)runpopnum(ctx->bifcxrun);
}
else
{
/* make sur... | false | false | false | false | false | 0 |
getOrCreateInlinedScope(MDNode *Scope,
MDNode *InlinedAt) {
LexicalScope *InlinedScope = LexicalScopeMap.lookup(InlinedAt);
if (InlinedScope)
return InlinedScope;
DebugLoc InlinedLoc = DebugLoc::getFromDILocation(InlinedAt);
InlinedScope = new LexicalSc... | false | false | false | false | false | 0 |
ffz(unsigned int x)
{
// DO NOT DEFINE FASTBSR :
// Test shows that it hardly helps on a PPro,
// and rumors are that BSR is very slow on PPlain.
#if defined(FASTBSR) && defined(_MSC_VER) && defined(_M_IX86)
int r;
__asm {
mov ebx, x
xor ebx, 0xffff
mov eax, -1
bsr eax, ... | false | false | false | false | false | 0 |
AddRegex(const VOMSTrustRegex& reg) {
RegularExpression* r = new RegularExpression(reg);
regexs_.insert(regexs_.end(),r);
return *r;
} | false | false | false | false | false | 0 |
t_decrypt(tea_block_t *res, const tea_key_t *key, const tea_block_t *value)
{
uint32 v0, v1, sum = 0xC6EF3720;
int i;
uint32 delta = TEA_CONSTANT;
uint32 k0, k1, k2, k3; /* cache key */
v0 = peek_le32(&value->v[0]);
v1 = peek_le32(&value->v[4]);
k0 = peek_le32(&key->v[0]);
k1 = peek_le32(&key->v[4]);
k2 ... | false | false | false | false | false | 0 |
get_event_func_id(ushort *event_tab, int event_id)
{
int func_id;
if (!event_tab)
return 0;
func_id = event_tab[event_id];
if (!func_id)
return 0;
return func_id;
} | false | false | false | false | false | 0 |
applySettings( bool firstTime )
{
///Called when the configDialog is closed with OK or Apply
DEBUG_BLOCK
if( AmarokConfig::showTrayIcon() && ! m_tray )
{
m_tray = new Amarok::TrayIcon( m_mainWindow.data() );
}
else if( !AmarokConfig::showTrayIcon() && m_tray )
{
delete m_tr... | false | false | false | false | false | 0 |
optimizeBitmask(const char *columnname, uint32_t *mask)
{
bool optimized = false;
for (_subfilters_t::iterator it = _subfilters.begin();
it != _subfilters.end();
++it)
{
Filter *filter = *it;
if (filter->optimizeBitmask(columnname, mask))
optimized = true;... | false | false | false | false | false | 0 |
delete_attributes(Attribute a, int id)
{
if (a == NULL)
return NULL;
else {
a->next = delete_attributes(a->next, id);
if (a->id == id) {
Attribute b = a->next;
/* If there is any memory associted with the attribure, free it here. */
if (attribute_type(a) == TERM_ATTRIBUTE)
zap_term(a-... | false | false | false | false | false | 0 |
on_entry_changed (GtkWidget *widget, gpointer data)
{
GtkAssistant *assistant = GTK_ASSISTANT (data);
GtkWidget *current_page;
gint page_number;
const gchar *text;
page_number = gtk_assistant_get_current_page (assistant);
current_page = gtk_assistant_get_nth_page (assistant, page_number);
text = gtk_entr... | false | false | false | false | false | 0 |
bcm3510_write_ram(struct bcm3510_state *st, u16 addr, const u8 *b,
u16 len)
{
int ret = 0,i;
bcm3510_register_value vH, vL,vD;
vH.MADRH_a9 = addr >> 8;
vL.MADRL_aa = addr;
if ((ret = bcm3510_writeB(st,0xa9,vH)) < 0) return ret;
if ((ret = bcm3510_writeB(st,0xaa,vL)) < 0) return ret;
for (i = 0; i < len... | false | false | false | false | false | 0 |
OTF_KeyValueList_close(OTF_KeyValueList* list) {
OTF_KeyValuePairList *next;
OTF_KeyValuePairList *p;
if (list == NULL) {
/* error */
OTF_Error( "ERROR in function %s, file: %s, line: %i:\n "
"no list has been specified.\n",
__FUNCTION__, __FILE__, __LINE__ );
return 1;
}
p = list->kvBegin;
whil... | false | false | false | false | false | 0 |
CreateGingleEncryptionElem(const CryptoParamsVec& cryptos,
const buzz::QName& usage_qname,
bool required) {
buzz::XmlElement* encryption_elem =
CreateJingleEncryptionElem(cryptos, required);
if (required) {
encrypti... | false | false | false | false | false | 0 |
save_to_uri (GESFormatter * formatter, GESTimeline * timeline, gchar * uri)
{
gchar *location;
GError *e = NULL;
gboolean ret = TRUE;
GESFormatterPrivate *priv = GES_FORMATTER (formatter)->priv;
if (!(location = g_filename_from_uri (uri, NULL, NULL))) {
return FALSE;
}
if (!ges_formatter_save (forma... | false | false | false | false | false | 0 |
AO_EditUserDialog_HandleActivated(GWEN_DIALOG *dlg, const char *sender) {
DBG_ERROR(0, "Activated: %s", sender);
if (strcasecmp(sender, "abortButton")==0) {
return GWEN_DialogEvent_ResultReject;
}
else if (strcasecmp(sender, "okButton")==0) {
int rv;
rv=AO_EditUserDialog_GetBankPageData(dlg);
i... | false | false | false | false | false | 0 |
buf_out (TCHAR *buffer, int *bufsize, const TCHAR *format, ...) {
va_list parms;
va_start (parms, format);
if (buffer == NULL) {
return 0;
}
vsnprintf (buffer, (*bufsize) - 1, format, parms);
va_end (parms);
*bufsize -= _tcslen (buffer);
return buffer + _tcslen (buffer);
} | false | false | false | false | false | 0 |
ensTranscriptCalculateTranscriptCodingEnd(
EnsPTranscript transcript,
EnsPTranslation translation)
{
ajuint tcend = 0U;
AjBool debug = AJFALSE;
AjIList iter = NULL;
const AjPList exons = NULL;
AjPList ses = NULL;
EnsPExon exon = NULL;
EnsPFeature feature = NULL;
Ens... | false | false | false | false | false | 0 |
ok_to_delete_ticket(int tn){
time_t cutoff = time(0)-86400;
if( g.okSetup ){
return 1;
}
if( g.isAnon || !g.okDelete ){
return 0;
}
if( db_exists(
"SELECT 1 FROM ticket"
" WHERE tn=%d AND (owner!='anonymous' OR origtime<%d)"
"UNION ALL "
"SELECT 1 FROM tktchng"
" WHERE tn=%d... | false | false | false | false | false | 0 |
OnbtnBrowseClick(cb_unused wxCommandEvent& event)
{
cbProject* prj = Manager::Get()->GetProjectManager()->GetActiveProject();
wxFileDialog dlg(this,
_("Select filename"),
prj ? prj->GetBasePath() : _T(""),
txtFilename->GetValue(),
... | false | false | false | false | false | 0 |
SWIG_AsVal_int (PyObject * obj, int *val)
{
long v;
int res = SWIG_AsVal_long (obj, &v);
if (SWIG_IsOK(res)) {
if ((v < INT_MIN || v > INT_MAX)) {
return SWIG_OverflowError;
} else {
if (val) *val = (int)(v);
}
}
return res;
} | false | false | false | false | false | 0 |
convert(int ch, unsigned char* bytes, int length) const
{
if (ch <= 0x7F)
{
if (bytes && length >= 1)
*bytes = (unsigned char) ch;
return 1;
}
else if (ch <= 0x7FF)
{
if (bytes && length >= 2)
{
*bytes++ = (unsigned char) (((ch >> 6) & 0x1F) | 0xC0);
*bytes = (unsigned char) ((ch & 0x3F) | 0x80)... | false | false | false | false | false | 0 |
EscapeString(char *s, const char *qchars, char echar)
{
char *t;
char *ret;
int len;
for (len = 1, t = s; *t ; t++, len++)
{
if (strchr(qchars, *t) != NULL)
{
len++;
}
}
ret = (char *)safemalloc(len);
for (t = ret; *s; s++, t++)
{
if (strchr(qchars, *s) != NULL)
{
*t = echar;
t++;
}
*t ... | false | false | false | false | false | 0 |
sys_lseek64(struct tcb *tcp)
{
if (entering(tcp)) {
int argn;
tprintf("%ld, ", tcp->u_arg[0]);
if (tcp->u_arg[3] == SEEK_SET)
argn = printllval(tcp, "%llu, ", 1);
else
argn = printllval(tcp, "%lld, ", 1);
printxval(whence, tcp->u_arg[argn], "SEEK_???");
}
return RVAL_LUDECIMAL;
} | false | false | false | false | false | 0 |
_k_slotCurrentPageChanged(const QModelIndex ¤t, const QModelIndex &before)
{
KPageWidgetItem *currentItem = 0;
if ( current.isValid() )
currentItem = model()->item( current );
KPageWidgetItem *beforeItem = 0;
if ( before.isValid() )
beforeItem = model()->item( before );
Q_Q(KPageWidget);
... | false | false | false | false | false | 0 |
iarray_free(iarray* ia) {
size_t i;
for (i=0; i<ia->pagefence; ++i)
if (ia->pages[i]) free(ia->pages[i]);
free(ia->pages);
} | false | false | false | false | false | 0 |
server_child(int readyfd, struct in_addr addr, int port,
server_fn callback, void *userdata)
{
ne_socket *s = ne_sock_create();
int ret, listener;
in_child();
listener = do_listen(addr, port);
if (listener < 0)
return FAIL;
#ifdef USE_PIPE
/* Tell the parent we're ready for the request. *... | false | false | false | false | false | 0 |
help_open(struct view *view)
{
enum keymap keymap;
reset_view(view);
add_line_text(view, "Quick reference for tig keybindings:", LINE_DEFAULT);
add_line_text(view, "", LINE_DEFAULT);
for (keymap = 0; keymap < ARRAY_SIZE(keymap_table); keymap++)
help_open_keymap(view, keymap);
return TRUE;
} | false | false | false | false | false | 0 |
setVel( const Vector2D &newVel ) {
Vector2D temp = vel;
vel = newVel;
if ( vel.getLength() >= getActVelMax() ) {
vel.setLength(getActVelMax());
}
return temp;
} | false | false | false | false | false | 0 |
SetSignalMask (ml_val_t sigList)
{
SigMask_t mask;
int i;
SIG_ClearMask(mask);
if (sigList != OPTION_NONE) {
sigList = OPTION_get(sigList);
if (LIST_isNull(sigList)) {
/* SOME[] -- mask all signals */
for (i = 0; i < NUM_SYSTEM_SIGS; i++) {
SIG_AddToMask(mask, SigInfo[i].id);
}
}
... | false | false | false | false | false | 0 |
plog_response(int level, struct sockaddr *to, char sockchar, dns_msg_question_t *q, dns_header_t *h)
{
int rcode;
char buf[256];
if (LogFlags & DNS_LOG_FLAG_QUERY) {
dns_util_sa2str(buf, sizeof(buf), to);
rcode = DNS_RCODE(ntohs(h->hdr_flags));
plog(level, "response to %s %c: %s %s... | false | false | false | false | false | 0 |
esl_msa_CompareMandatory(ESL_MSA *a1, ESL_MSA *a2)
{
int i;
if (a1->nseq != a2->nseq) return eslFAIL;
if (a1->alen != a2->alen) return eslFAIL;
if (a1->flags != a2->flags) return eslFAIL;
for (i = 0; i < a1->nseq; i++)
{
if (strcmp(a1->sqname[i], a2->sqname[i]) != 0) return eslFAIL;... | false | false | false | false | false | 0 |
FcNameParseCharSet (FcChar8 *string)
{
FcCharSet *c;
FcChar32 ucs4;
FcCharLeaf *leaf;
FcCharLeaf temp;
FcChar32 bits;
int i;
c = FcCharSetCreate ();
if (!c)
goto bail0;
while (*string)
{
string = FcCharSetParseValue (string, &ucs4);
if (!string)
goto bail1;
bits = 0;
... | false | false | false | false | false | 0 |
gnats_strftime (char *s, size_t size, const char *template,
const struct tm *brokentime)
{
static short have_strftime_with_z = -1;
if (have_strftime_with_z < 0)
{
char buf[16];
strftime (buf, 16, "%z", brokentime);
/* jonm@alchemetrics.co.uk - added check for +/- at the start
** of t... | true | true | false | false | false | 1 |
draw_sprites( struct mame_bitmap *bitmap, const struct rectangle *cliprect )
{
const struct GfxElement *pGfx = Machine->gfx[2];
const data16_t *pSource = spriteram16;
int i;
int transparent_pen;
if( pGfx->total_elements > 0x200 )
{ /* HORE HORE Kid */
transparent_pen = 0xf;
}
else
{
transpare... | false | false | false | false | false | 0 |
LL_insert( LinkedList list, int item, void *pObj )
{
Link *pLink;
if( list == NULL || pObj == NULL )
return;
AssertValidPtr( list );
CHANGE_STATE(list);
/*
* We have to do some faking here because adding to the end
* of the list is a more natural result for item == -1 than
* adding to the pos... | false | false | false | false | false | 0 |
hackrf_urb_complete_in(struct urb *urb)
{
struct hackrf_dev *dev = urb->context;
struct usb_interface *intf = dev->intf;
struct hackrf_buffer *buffer;
unsigned int len;
dev_dbg_ratelimited(&intf->dev, "status=%d length=%u/%u\n", urb->status,
urb->actual_length, urb->transfer_buffer_length);
switch (urb->... | false | false | false | false | false | 0 |
callback_receive_banner(const void *data, size_t len, void *user) {
char *buffer = (char *)data;
ssh_session session=(ssh_session) user;
char *str = NULL;
size_t i;
int ret=0;
if(session->session_state != SSH_SESSION_STATE_SOCKET_CONNECTED){
ssh_set_error(session,SSH_FATAL,"Wrong state in callback_recei... | false | false | false | false | false | 0 |
debug_turn_update (sc_gameref_t game)
{
const sc_debuggerref_t debug = debug_get_debugger (game);
/* If debugging disallowed (not initialized), ignore the call. */
if (debug)
{
/*
* Again using carnal knowledge of the run main loop, if we're in
* mid-wait, ignore the call. Also, ignore t... | false | false | false | false | false | 0 |
cfapi_object_remove_depletion(int *type, ...) {
va_list args;
object *op;
int level, *result;
va_start(args, type);
op = va_arg(args, object *);
level = va_arg(args, int);
result = va_arg(args, int*);
va_end(args);
*result = remove_depletion(op, level);
*type = CFAPI_INT;
} | false | false | false | false | false | 0 |
ADDR_SIZE_AFFECT(_DecodeType dt, _iflags totalPrefixes)
{
/* Switch to non default mode if prefix exists, only for ADDRESS SIZE. */
if (totalPrefixes & INST_PRE_ADDR_SIZE) {
switch (dt)
{
case Decode16Bits:
dt = Decode32Bits;
break;
case Decode32Bits:
dt = Decode16Bits;
break;
c... | false | false | false | false | false | 0 |
setPrevNode(BasicBlock *BB) {
PrevNode = ParentRegion->contains(BB) ? ParentRegion->getBBNode(BB)
: nullptr;
} | false | false | false | false | false | 0 |
abraca_tool_bar_on_time_slider_motion_notify (AbracaToolBar* self, GtkWidget* widget, GdkEventMotion* ev) {
gboolean result = FALSE;
GtkWidget* _tmp0_;
gdouble _tmp1_ = 0.0;
gdouble percent;
gint _tmp2_;
g_return_val_if_fail (self != NULL, FALSE);
g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fa... | false | false | false | false | false | 0 |
set_mime_binary(FILE *out, ObjectType type, const string &ver,
EncodingType enc, const time_t last_modified)
{
ostringstream oss;
set_mime_binary(oss, type, ver, enc, last_modified);
fwrite(oss.str().data(), 1, oss.str().length(), out);
} | false | false | false | false | false | 0 |
rsvg_start_extra (RsvgHandle * ctx,
const char *name,
GString **stringptr)
{
RsvgSaxHandlerExtra *handler = g_new0 (RsvgSaxHandlerExtra, 1);
RsvgNode *treebase = ctx->priv->treebase;
RsvgNode *currentnode = ctx->priv->currentnode;
gboolean do_care;
/* only parse ... | false | false | false | false | false | 0 |
print_band(__isl_take isl_printer *p,
__isl_keep isl_band *band)
{
isl_band_list *children;
p = isl_printer_start_line(p);
p = isl_printer_print_union_pw_multi_aff(p, band->pma);
p = isl_printer_end_line(p);
if (!isl_band_has_children(band))
return p;
children = isl_band_get_children(band);
p = isl_printe... | false | false | false | false | false | 0 |
onFeedClosed(PlexyDesk::AbstractDesktopWidget *)
{
qDebug() << Q_FUNC_INFO ;
d->mFeedWall = 0;
} | false | false | false | false | false | 0 |
validationsContainsValidatedUuid(const QString &uuid)
{
for(int i=0; i< _validations.count(); ++i) {
const AlertValidation &val = _validations.at(i);
if (val.validatedUid().compare(uuid, Qt::CaseInsensitive)==0)
return true;
}
return false;
} | false | false | false | false | false | 0 |
SetFileName( const char* fname )
{
vtkSetStringMacroBody(FileName,fname);
if ( modified )
{
this->Metadata->Reset();
this->FileNameMTime.Modified();
}
} | false | false | false | false | false | 0 |
JS_SealObject(JSContext *cx, JSObject *obj, JSBool deep)
{
JSScope *scope;
JSIdArray *ida;
uint32 nslots, i;
jsval v;
if (OBJ_IS_DENSE_ARRAY(cx, obj) && !js_MakeArraySlow(cx, obj))
return JS_FALSE;
if (!OBJ_IS_NATIVE(obj)) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
... | false | false | false | false | false | 0 |
bcol_basesmuma_memsync_progress(bcol_function_args_t *input_args,
coll_ml_function_t *c_input_args)
{
int memory_bank = input_args->root;
mca_bcol_basesmuma_module_t* bcol_module =
(mca_bcol_basesmuma_module_t *)c_input_args->bcol_module;
sm_buffer_mgmt *buff_block = &(bcol_module->... | false | false | false | false | false | 0 |
xbothcasep(void)
{
int ch;
ch = getchcode(xlgachar());
xllastarg();
return (isupper(ch) || islower(ch) ? s_true : NIL);
} | false | false | false | false | false | 0 |
LoadNumber (ZIO* Z, int native)
{
real x;
if (native)
{
LoadBlock(&x,sizeof(x),Z);
return x;
}
else
{
char b[256];
int size=ezgetc(Z);
LoadBlock(b,size,Z);
b[size]=0;
return luaU_str2d(b,zname(Z));
}
} | true | true | false | false | true | 1 |
newvector(int len) {
VECTOR v = newvector_noinit(len);
int i;
for (i = 0; i < len; i++)
ATPUT(v, i, NULL);
return v;
} | false | false | false | false | false | 0 |
syscon_poweroff_probe(struct platform_device *pdev)
{
char symname[KSYM_NAME_LEN];
map = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, "regmap");
if (IS_ERR(map)) {
dev_err(&pdev->dev, "unable to get syscon");
return PTR_ERR(map);
}
if (of_property_read_u32(pdev->dev.of_node, "offset", &offset)) {
dev... | false | false | false | false | false | 0 |
cproxy_http_error_ind(struct http_async *handle, http_errtype_t type, void *v)
{
struct cproxy *cp = http_async_get_opaque(handle);
cproxy_check(cp);
http_async_log_error(handle, type, v, "HTTP push-proxy request");
cp->http_handle = NULL;
cp->done = TRUE;
if (
type == HTTP_ASYNC_ERROR &&
(
GPOINTER_TO... | false | false | false | false | false | 0 |
__ecereMethod___ecereNameSpace__eda__ListSection_OnResize(struct __ecereNameSpace__ecere__com__Instance * this, int width, int height)
{
struct __ecereNameSpace__ecere__sys__Size __simpleStruct3;
struct __ecereNameSpace__ecere__sys__Point __simpleStruct2;
struct __ecereNameSpace__ecere__sys__Point __simpleStruct1;
stru... | false | false | false | true | false | 1 |
origin_decref(struct origin *o)
{
if (o && --o->refcnt <= 0) {
if (o->previous)
origin_decref(o->previous);
free(o->file.ptr);
free(o);
}
} | false | false | false | false | false | 0 |
add_modules(VALUE *req_list, const char *mod)
{
VALUE list = *req_list;
VALUE feature;
if (!list) {
*req_list = list = rb_ary_new();
RBASIC(list)->klass = 0;
}
feature = rb_str_new2(mod);
RBASIC(feature)->klass = 0;
rb_ary_push(list, feature);
} | false | false | false | false | false | 0 |
brief_preload_anims()
{
int num_icons, num_stages, i, j;
brief_icon *bi;
num_stages = Briefing->num_stages;
for ( i = 0; i < num_stages; i++ ) {
num_icons = Briefing->stages[i].num_icons;
for ( j = 0; j < num_icons; j++ ) {
bi = &Briefing->stages[i].icons[j];
brief_preload_icon_anim(bi);
brief_pre... | false | false | false | false | false | 0 |
eb_subbook_directory(EB_Book *book, char *directory)
{
EB_Error_Code error_code;
char *p;
eb_lock(&book->lock);
LOG(("in: eb_subbook_directory(book=%d)", (int)book->code));
/*
* Current subbook must have been set.
*/
if (book->subbook_current == NULL) {
error_code = EB_ERR_NO_CUR_SU... | false | true | false | false | false | 1 |
parse_message_line(char *line)
{
char *rest;
switch(GetTokenIndex(line, message_options, -1, &rest))
{
case 0:
parse_colorset(rest);
break;
}
} | false | false | false | false | false | 0 |
linear_persim(struct uct_dynkomi *d, struct board *b, struct tree *tree, struct tree_node *node)
{
struct dynkomi_linear *l = d->data;
if (l->rootbased)
return tree->extra_komi;
/* We don't reuse computed value from tree->extra_komi,
* since we want to use value correct for this node depth.
* This also means t... | false | false | false | false | false | 0 |
eq_status_in(__isl_keep isl_basic_map *bmap_i,
struct isl_tab *tab_j)
{
int k, l;
int *eq = isl_calloc_array(bmap_i->ctx, int, 2 * bmap_i->n_eq);
unsigned dim;
if (!eq)
return NULL;
dim = isl_basic_map_total_dim(bmap_i);
for (k = 0; k < bmap_i->n_eq; ++k) {
for (l = 0; l < 2; ++l) {
isl_seq_neg(bmap_i->... | false | false | false | false | false | 0 |
isScanBypassURL(String * url, const char *magic, const char *clientip)
{
if ((*url).length() <= 45)
return false; // Too short, can't be a bypass
if (!(*url).contains("GSBYPASS=")) { // If this is not a bypass url
return false;
}
#ifdef DGDEBUG
std::cout << "URL GSBYPASS found checking..." << std::endl;
#endi... | false | false | false | false | false | 0 |
GetAuthProfile(std::string name)
{
std::stringstream query;
query << "SELECT eperson, apikey, app_name, url FROM auth_profile WHERE "
"profile_name='" << name << "'";
midasAuthProfile profile;
this->Database->ExecuteQuery(query.str().c_str());
if(this->Database->GetNextRow())
{
profile.Name = na... | false | false | false | false | false | 0 |
__chk_rhsexpr(struct expr_t *ndp, int32 csiz)
{
int32 saverr_cnt;
saverr_cnt = __pv_err_cnt;
/* intercept and convert any selects from paramters to num or is num */
/* this finds all in expr. - returns F if error */
if (!__isleaf(ndp))
{
try_cnvt_parmsel_toconst(ndp);
if (saverr_cnt != __pv_err_cnt) ret... | false | false | false | false | false | 0 |
hexbuf(fz_context *ctx, unsigned char *p, int n)
{
static const char hex[16] = "0123456789abcdef";
fz_buffer *buf;
int x = 0;
buf = fz_new_buffer(ctx, n * 2 + (n / 32) + 2);
while (n--)
{
buf->data[buf->len++] = hex[*p >> 4];
buf->data[buf->len++] = hex[*p & 15];
if (++x == 32)
{
buf->data[buf->len++... | false | false | false | false | false | 0 |
dumpTableConstraintComment(Archive *fout, DumpOptions *dopt, ConstraintInfo *coninfo)
{
TableInfo *tbinfo = coninfo->contable;
PQExpBuffer labelq = createPQExpBuffer();
appendPQExpBuffer(labelq, "CONSTRAINT %s ",
fmtId(coninfo->dobj.name));
appendPQExpBuffer(labelq, "ON %s",
fmtId(tbinfo->dobj.name)... | false | false | false | false | false | 0 |
UpdateCell(unsigned rowId, unsigned columnIndex, int value)
{
RakAssert(columns[columnIndex].columnType==NUMERIC);
Row *row = GetRowByID(rowId);
if (row)
{
row->UpdateCell(columnIndex, value);
return true;
}
return false;
} | false | false | false | false | false | 0 |
ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
{
int max_frames, first_frames = 0, frames;
uint8_t *buf, *buf2, *end;
AC3HeaderInfo hdr;
GetBitContext gbc;
enum CodecID codec_id = CODEC_ID_AC3;
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
for(; buf < end; ... | false | false | false | false | false | 0 |
Sacc_to_Aop_argb1666( GenefxState *gfxs )
{
int w = gfxs->length;
GenefxAccumulator *S = gfxs->Sacc;
u8 *D = gfxs->Aop[0];
while (w--) {
if (!(S->RGB.a & 0xF000)) {
u32 pixel = PIXEL_ARGB1666( (S->RGB.a & 0xFF00) ? 0xFF : S->RGB.a,
... | false | false | false | false | false | 0 |
print(const struct ebt_u_entry *entry,
const struct ebt_entry_match *match)
{
struct ebt_ip6_info *ipinfo = (struct ebt_ip6_info *)match->data;
if (ipinfo->bitmask & EBT_IP6_SOURCE) {
printf("--ip6-src ");
if (ipinfo->invflags & EBT_IP6_SOURCE)
printf("! ");
printf("%s", ebt_ip6_to_numeric(&ipinfo->saddr... | false | false | false | false | false | 0 |
chips_hw_init(struct fb_info *p)
{
int i;
for (i = 0; i < ARRAY_SIZE(chips_init_xr); ++i)
write_xr(chips_init_xr[i].addr, chips_init_xr[i].data);
write_xr(0x81, 0x12);
write_xr(0x82, 0x08);
write_xr(0x20, 0x00);
for (i = 0; i < ARRAY_SIZE(chips_init_sr); ++i)
write_sr(chips_init_sr[i].addr, chips_init_sr[i].... | false | false | false | false | false | 0 |
net_sendbuffer_destroy(NET_SENDBUF_REC *rec, int close)
{
if (rec->send_tag != -1) g_source_remove(rec->send_tag);
if (close) net_disconnect(rec->handle);
if (rec->readbuffer != NULL) line_split_free(rec->readbuffer);
g_free_not_null(rec->buffer);
g_free(rec);
} | false | false | false | false | false | 0 |
__map_bio(struct dm_target_io *tio)
{
int r;
sector_t sector;
struct mapped_device *md;
struct dm_offload o;
struct bio *clone = &tio->clone;
struct dm_target *ti = tio->ti;
clone->bi_end_io = clone_endio;
/*
* Map the clone. If r == 0 we don't need to do
* anything, the target has assumed ownership of
... | false | false | false | false | false | 0 |
ipw_queue_tx_free(struct ipw_priv *priv, struct clx2_tx_queue *txq)
{
struct clx2_queue *q = &txq->q;
struct pci_dev *dev = priv->pci_dev;
if (q->n_bd == 0)
return;
/* first, empty all BD's */
for (; q->first_empty != q->last_used;
q->last_used = ipw_queue_inc_wrap(q->last_used, q->n_bd)) {
ipw_queue_t... | false | false | false | false | false | 0 |
packet_handler(u_char *args, const struct pcap_pkthdr *header, const u_char *packet){
printf("\n");
printf("Got packet...\n");
/* Parse packet */
// Print its length
//printf("Jacked a packet with length of [%d]\n", header->len);
// Get packet info
struct tcp_ip_packet packe... | false | false | false | false | false | 0 |
isPreferredDetail(const QString& actionName, const QContactDetail& detail) const
{
if (!d->m_details.contains(detail))
return false;
if (actionName.isEmpty())
return d->m_preferences.values().contains(detail.d->m_id);
QMap<QString, int>::const_iterator it = d->m_preferences.find(actionNam... | false | false | false | false | false | 0 |
__pyx_pw_6Cython_8Compiler_7Visitor_21RecursiveNodeReplacer_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_orig_node = 0;
PyObject *__pyx_v_new_node = 0;
int __pyx_lineno = 0;
const char *__pyx_filename = NULL;
int __pyx_clineno = 0;
int __pyx_r;
__Pyx_Re... | false | false | false | false | false | 0 |
pie_scan (Pie_Scanner * scanner, int start)
{
SANE_Status status;
DBG (DBG_proc, "pie_scan\n");
/* TUR */
status = pie_wait_scanner (scanner);
if (status)
{
return status;
}
set_scan_cmd (scan.cmd, start);
do
{
status = sanei_scsi_cmd (scanner->sfd, scan.cmd, s... | false | false | false | false | false | 0 |
visitStringType(StringType* t)
{
if (t->bound())
printf("string<%ld>", (long)t->bound());
else
printf("string");
} | false | false | false | false | false | 0 |
elvin_event_loop (Elvin *elvin)
{
while (elvin_is_open (elvin) && elvin_error_ok (&elvin->error))
{
elvin_poll (elvin);
/* timeout is OK, continue loop */
if (elvin->error.code == ELVIN_ERROR_TIMEOUT)
elvin_error_reset (&elvin->error);
}
return elvin_error_ok (&elvin->error);
} | false | false | false | false | false | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.