commit
stringlengths 40
40
| old_file
stringlengths 4
112
| new_file
stringlengths 4
112
| old_contents
stringlengths 0
2.05k
| new_contents
stringlengths 28
3.9k
| subject
stringlengths 17
736
| message
stringlengths 18
4.78k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 7
111k
|
---|---|---|---|---|---|---|---|---|---|
f1e39690cf85b947ed6ccb1c12315b79f83708bb | 433Rx/Device.h | 433Rx/Device.h | // Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _DEVICE
#define _DEVICE
#include "MessageQueue.h"
#include "DeviceMessageHandler.h"
typedef struct MessageHandlerListEntry {
DeviceMessageHandler* handler;
MessageHandlerListEntry* next;
} MessageHandlerListEntry;
class Device {
protected:
MessageQueue* queue;
MessageHandlerListEntry* _messageHandlers;
public:
Device();
void setQueue(MessageQueue* queue);
// must be implemented by sub class
virtual int deviceType(void) = 0;
virtual char* deviceName(void) = 0;
virtual void processPulse(long duration) = 0;
virtual void decodeMessage(Message* message) = 0;
// can optionally be overridden by devices
virtual void handleMessage(Message* message);
virtual bool registerMessageHandler(DeviceMessageHandler* handler);
};
#endif
| // Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _DEVICE
#define _DEVICE
#include "MessageQueue.h"
#include "DeviceMessageHandler.h"
#ifdef __arm__
#define INTERRUPT_SAFE
#else
#include <Arduino.h>
#define INTERRUPT_SAFE ICACHE_RAM_ATTR
#endif
typedef struct MessageHandlerListEntry {
DeviceMessageHandler* handler;
MessageHandlerListEntry* next;
} MessageHandlerListEntry;
class Device {
protected:
MessageQueue* queue;
MessageHandlerListEntry* _messageHandlers;
public:
Device();
void setQueue(MessageQueue* queue);
// must be implemented by sub class
virtual int deviceType(void) = 0;
virtual char* deviceName(void) = 0;
virtual void processPulse(long duration) = 0;
virtual void decodeMessage(Message* message) = 0;
// can optionally be overridden by devices
virtual void handleMessage(Message* message);
virtual bool registerMessageHandler(DeviceMessageHandler* handler);
};
#endif
| Add back missing platform defines | Add back missing platform defines
| C | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
6ea747689679605c90dc4fa109a6988ccc10ff48 | application/tools/linux/xwalk_tizen_user.c | application/tools/linux/xwalk_tizen_user.c | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <pwd.h>
int xwalk_tizen_set_home_for_user_app(void) {
#if !defined(OS_TIZEN_MOBILE)
return 0;
#endif
// Tizen doesn't set HOME by default on login for user "app".
uid_t uid = getuid();
struct passwd* passwd = getpwuid(uid);
if (!passwd)
return -ENOENT;
if (strcmp(passwd->pw_name, "app")) {
fprintf(stderr, "User is not 'app', launching an application will not work\n");
return -EINVAL;
}
if (setenv("HOME", passwd->pw_dir, true) != 0) {
fprintf(stderr, "Couldn't set 'HOME' env variable to '%s'\n", passwd->pw_dir);
return -EINVAL;
}
return 0;
}
| // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <pwd.h>
int xwalk_tizen_set_home_for_user_app(void) {
#if !defined(OS_TIZEN_MOBILE)
return 0;
#endif
// Tizen doesn't set HOME by default on login for user "app".
uid_t uid = getuid();
struct passwd* passwd = getpwuid(uid);
if (!passwd)
return -ENOENT;
if (strcmp(passwd->pw_name, "app")) {
fprintf(stderr, "User is not 'app', launching an application will not work\n");
return -EINVAL;
}
if (setenv("HOME", passwd->pw_dir, true) != 0) {
fprintf(stderr, "Couldn't set 'HOME' env variable to '%s'\n", passwd->pw_dir);
return -EINVAL;
}
return 0;
}
| Fix warning about missing strcmp() definition | [Application][Tools] Fix warning about missing strcmp() definition
The #include <string.h> directive was missing.
| C | bsd-3-clause | jondwillis/crosswalk,ZhengXinCN/crosswalk,fujunwei/crosswalk,leonhsl/crosswalk,heke123/crosswalk,PeterWangIntel/crosswalk,hgl888/crosswalk,pk-sam/crosswalk,chuan9/crosswalk,minggangw/crosswalk,Pluto-tv/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,minggangw/crosswalk,dreamsxin/crosswalk,XiaosongWei/crosswalk,baleboy/crosswalk,zeropool/crosswalk,huningxin/crosswalk,amaniak/crosswalk,axinging/crosswalk,dreamsxin/crosswalk,hgl888/crosswalk-efl,PeterWangIntel/crosswalk,jpike88/crosswalk,axinging/crosswalk,marcuspridham/crosswalk,darktears/crosswalk,myroot/crosswalk,qjia7/crosswalk,XiaosongWei/crosswalk,lincsoon/crosswalk,jondong/crosswalk,jondwillis/crosswalk,huningxin/crosswalk,marcuspridham/crosswalk,weiyirong/crosswalk-1,minggangw/crosswalk,marcuspridham/crosswalk,Bysmyyr/crosswalk,minggangw/crosswalk,zeropool/crosswalk,zeropool/crosswalk,tedshroyer/crosswalk,fujunwei/crosswalk,crosswalk-project/crosswalk,rakuco/crosswalk,Pluto-tv/crosswalk,amaniak/crosswalk,crosswalk-project/crosswalk,hgl888/crosswalk-efl,stonegithubs/crosswalk,jondong/crosswalk,TheDirtyCalvinist/spacewalk,fujunwei/crosswalk,darktears/crosswalk,XiaosongWei/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk,jondong/crosswalk,dreamsxin/crosswalk,huningxin/crosswalk,mrunalk/crosswalk,leonhsl/crosswalk,heke123/crosswalk,weiyirong/crosswalk-1,zliang7/crosswalk,zliang7/crosswalk,ZhengXinCN/crosswalk,stonegithubs/crosswalk,DonnaWuDongxia/crosswalk,heke123/crosswalk,jpike88/crosswalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,tomatell/crosswalk,crosswalk-project/crosswalk-efl,PeterWangIntel/crosswalk,alex-zhang/crosswalk,hgl888/crosswalk,PeterWangIntel/crosswalk,ZhengXinCN/crosswalk,siovene/crosswalk,hgl888/crosswalk-efl,myroot/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,fujunwei/crosswalk,zeropool/crosswalk,RafuCater/crosswalk,darktears/crosswalk,chinakids/crosswalk,XiaosongWei/crosswalk,TheDirtyCalvinist/spacewalk,siovene/crosswalk,stonegithubs/crosswalk,tedshroyer/crosswalk,baleboy/crosswalk,stonegithubs/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk-efl,marcuspridham/crosswalk,tedshroyer/crosswalk,crosswalk-project/crosswalk,chuan9/crosswalk,jpike88/crosswalk,mrunalk/crosswalk,seanlong/crosswalk,chinakids/crosswalk,rakuco/crosswalk,xzhan96/crosswalk,dreamsxin/crosswalk,jondong/crosswalk,amaniak/crosswalk,hgl888/crosswalk-efl,pk-sam/crosswalk,minggangw/crosswalk,axinging/crosswalk,zliang7/crosswalk,hgl888/crosswalk,rakuco/crosswalk,XiaosongWei/crosswalk,chuan9/crosswalk,marcuspridham/crosswalk,seanlong/crosswalk,myroot/crosswalk,xzhan96/crosswalk,zeropool/crosswalk,bestwpw/crosswalk,rakuco/crosswalk,jondwillis/crosswalk,qjia7/crosswalk,bestwpw/crosswalk,darktears/crosswalk,zliang7/crosswalk,baleboy/crosswalk,DonnaWuDongxia/crosswalk,mrunalk/crosswalk,xzhan96/crosswalk,shaochangbin/crosswalk,amaniak/crosswalk,Pluto-tv/crosswalk,crosswalk-project/crosswalk-efl,RafuCater/crosswalk,hgl888/crosswalk-efl,ZhengXinCN/crosswalk,crosswalk-project/crosswalk-efl,jpike88/crosswalk,jondong/crosswalk,mrunalk/crosswalk,tedshroyer/crosswalk,minggangw/crosswalk,siovene/crosswalk,jondwillis/crosswalk,hgl888/crosswalk-efl,mrunalk/crosswalk,jpike88/crosswalk,zeropool/crosswalk,pk-sam/crosswalk,Pluto-tv/crosswalk,TheDirtyCalvinist/spacewalk,Bysmyyr/crosswalk,baleboy/crosswalk,darktears/crosswalk,zliang7/crosswalk,qjia7/crosswalk,Bysmyyr/crosswalk,axinging/crosswalk,shaochangbin/crosswalk,tomatell/crosswalk,marcuspridham/crosswalk,jondwillis/crosswalk,myroot/crosswalk,lincsoon/crosswalk,bestwpw/crosswalk,amaniak/crosswalk,zliang7/crosswalk,alex-zhang/crosswalk,marcuspridham/crosswalk,seanlong/crosswalk,myroot/crosswalk,PeterWangIntel/crosswalk,fujunwei/crosswalk,dreamsxin/crosswalk,darktears/crosswalk,alex-zhang/crosswalk,huningxin/crosswalk,shaochangbin/crosswalk,myroot/crosswalk,alex-zhang/crosswalk,Bysmyyr/crosswalk,qjia7/crosswalk,DonnaWuDongxia/crosswalk,weiyirong/crosswalk-1,DonnaWuDongxia/crosswalk,rakuco/crosswalk,tomatell/crosswalk,chuan9/crosswalk,stonegithubs/crosswalk,crosswalk-project/crosswalk-efl,lincsoon/crosswalk,zliang7/crosswalk,Pluto-tv/crosswalk,weiyirong/crosswalk-1,xzhan96/crosswalk,baleboy/crosswalk,RafuCater/crosswalk,minggangw/crosswalk,shaochangbin/crosswalk,bestwpw/crosswalk,ZhengXinCN/crosswalk,weiyirong/crosswalk-1,leonhsl/crosswalk,lincsoon/crosswalk,crosswalk-project/crosswalk,stonegithubs/crosswalk,darktears/crosswalk,PeterWangIntel/crosswalk,amaniak/crosswalk,alex-zhang/crosswalk,RafuCater/crosswalk,jondwillis/crosswalk,fujunwei/crosswalk,seanlong/crosswalk,hgl888/crosswalk,seanlong/crosswalk,ZhengXinCN/crosswalk,heke123/crosswalk,bestwpw/crosswalk,DonnaWuDongxia/crosswalk,stonegithubs/crosswalk,chinakids/crosswalk,shaochangbin/crosswalk,XiaosongWei/crosswalk,jondong/crosswalk,zliang7/crosswalk,lincsoon/crosswalk,jondong/crosswalk,zeropool/crosswalk,siovene/crosswalk,pk-sam/crosswalk,tomatell/crosswalk,tomatell/crosswalk,crosswalk-project/crosswalk-efl,leonhsl/crosswalk,crosswalk-project/crosswalk,siovene/crosswalk,hgl888/crosswalk,weiyirong/crosswalk-1,xzhan96/crosswalk,xzhan96/crosswalk,seanlong/crosswalk,DonnaWuDongxia/crosswalk,rakuco/crosswalk,pk-sam/crosswalk,bestwpw/crosswalk,chuan9/crosswalk,dreamsxin/crosswalk,RafuCater/crosswalk,heke123/crosswalk,heke123/crosswalk,tomatell/crosswalk,hgl888/crosswalk-efl,tedshroyer/crosswalk,axinging/crosswalk,axinging/crosswalk,darktears/crosswalk,crosswalk-project/crosswalk-efl,qjia7/crosswalk,tomatell/crosswalk,shaochangbin/crosswalk,lincsoon/crosswalk,axinging/crosswalk,RafuCater/crosswalk,hgl888/crosswalk,RafuCater/crosswalk,alex-zhang/crosswalk,Pluto-tv/crosswalk,lincsoon/crosswalk,chinakids/crosswalk,chuan9/crosswalk,lincsoon/crosswalk,hgl888/crosswalk,Bysmyyr/crosswalk,siovene/crosswalk,pk-sam/crosswalk,heke123/crosswalk,Pluto-tv/crosswalk,TheDirtyCalvinist/spacewalk,Bysmyyr/crosswalk,PeterWangIntel/crosswalk,chinakids/crosswalk,tedshroyer/crosswalk,rakuco/crosswalk,heke123/crosswalk,hgl888/crosswalk,alex-zhang/crosswalk,Bysmyyr/crosswalk,jondong/crosswalk,ZhengXinCN/crosswalk,marcuspridham/crosswalk,bestwpw/crosswalk,huningxin/crosswalk,baleboy/crosswalk,crosswalk-project/crosswalk,leonhsl/crosswalk,jondwillis/crosswalk,fujunwei/crosswalk,huningxin/crosswalk,tedshroyer/crosswalk,XiaosongWei/crosswalk,amaniak/crosswalk,Bysmyyr/crosswalk,weiyirong/crosswalk-1,siovene/crosswalk,qjia7/crosswalk,chinakids/crosswalk,minggangw/crosswalk,baleboy/crosswalk,dreamsxin/crosswalk,baleboy/crosswalk,rakuco/crosswalk,mrunalk/crosswalk,DonnaWuDongxia/crosswalk,pk-sam/crosswalk,chuan9/crosswalk |
aa5d17c0a52530b387ff6819b2cc5d2afd4eb38c | plugins/stardict/file.h | plugins/stardict/file.h | /******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MULA_PLUGIN_STARDICT_FILE
#define MULA_PLUGIN_STARDICT_FILE
#include <QtCore/QString>
const int invalidIndex = -100;
static inline int stardictStringCompare(QString string1, QString string2)
{
int retval = string1.compare(string2, Qt::CaseInsensitive);
if (retval == 0)
return string1.compare(string2);
else
return retval;
}
#endif // MULA_PLUGIN_STARDICT_FILE
| /******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MULA_PLUGIN_STARDICT_FILE
#define MULA_PLUGIN_STARDICT_FILE
#include <QtCore/QString>
const int invalidIndex = -100;
static inline int stardictStringCompare(QString string1, QString string2)
{
int retval = string1.compare(string2, Qt::CaseInsensitive);
return retval ? retval : string1.compare(string2);
}
#endif // MULA_PLUGIN_STARDICT_FILE
| Use the tenary operator instead of a simple if/else inside an inline function | Use the tenary operator instead of a simple if/else inside an inline function
| C | lgpl-2.1 | KDE/mula,KDE/mula |
64dbdcce076a64f7bcfd83ddf7e6f6440c004556 | types.h | types.h | #ifndef BFC_TYPES_H
#define BFC_TYPES_H
#ifndef __cplusplus
# include <stdint.h>
#else
# include <cstdint>
#endif
typedef bfc_cell uint8_t;
#endif /* !BFC_TYPES_H */
| #ifndef BFC_TYPES_H
#define BFC_TYPES_H
#ifndef __cplusplus
# include <stdint.h>
#else
# include <cstdint>
#endif
typedef bf_value uint8_t;
#endif /* !BFC_TYPES_H */
| Change basic cell type name to bf_value. | Change basic cell type name to bf_value.
| C | mit | bassettmb/bfc,bassettmb/bfc |
51f9648c1af205b9822a1dfe220c825eef07a2cc | test2/inline/static_local.c | test2/inline/static_local.c | // RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
inline int g2()
{
static const int i = 3; // CHECK: !/warn/
return i;
}
main()
{
return f() + g() + h();
}
| // RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: mutable static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
inline int g2()
{
static const int i = 3; // CHECK: !/warn/
return i;
}
main()
{
return f() + g() + h();
}
| Fix inline static local warning | Fix inline static local warning
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
39f66ecf2685e1d7a4d0bbe16d8db87e08e91ed9 | net/proxy/proxy_resolver_mac.h | net/proxy/proxy_resolver_mac.h | // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
#include "net/proxy/proxy_resolver.h"
namespace net {
// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
// proxies.
class ProxyResolverMac : public ProxyResolver {
public:
ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {}
// ProxyResolver methods:
virtual int GetProxyForURL(const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
RequestHandle* request,
const BoundNetLog& net_log);
virtual void CancelRequest(RequestHandle request) {
NOTREACHED();
}
virtual int SetPacScript(
const scoped_refptr<ProxyResolverScriptData>& script_data,
CompletionCallback* /*callback*/) {
script_data_ = script_data_;
return OK;
}
private:
scoped_refptr<ProxyResolverScriptData> script_data_;
};
} // namespace net
#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
| // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
#include "net/proxy/proxy_resolver.h"
namespace net {
// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
// proxies.
class ProxyResolverMac : public ProxyResolver {
public:
ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {}
// ProxyResolver methods:
virtual int GetProxyForURL(const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
RequestHandle* request,
const BoundNetLog& net_log);
virtual void CancelRequest(RequestHandle request) {
NOTREACHED();
}
virtual int SetPacScript(
const scoped_refptr<ProxyResolverScriptData>& script_data,
CompletionCallback* /*callback*/) {
script_data_ = script_data;
return OK;
}
private:
scoped_refptr<ProxyResolverScriptData> script_data_;
};
} // namespace net
#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
| Fix a typo, that could cause a crash on mac. | Fix a typo, that could cause a crash on mac.
BUG=50717
TBR=rvargas
TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash.
Review URL: http://codereview.chromium.org/3023030
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@54279 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | ropik/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium |
f2570192b6ea925e0db5957719525ebd144e0037 | common/osdep.h | common/osdep.h | /*****************************************************************************
* osdep.h:
*****************************************************************************
* Copyright (C) 2010 L-SMASH project
*
* Authors: Yusuke Nakamura <[email protected]>
* Takashi Hirata <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
/* This file is available under an ISC license. */
#ifndef OSDEP_H
#define OSDEP_H
#define _FILE_OFFSET_BITS 64
#ifdef __MINGW32__
#define lsmash_fseek fseeko64
#define lsmash_ftell ftello64
#else
#define lsmash_fseek fseek
#define lsmash_ftell ftell
#endif
#endif
| /*****************************************************************************
* osdep.h:
*****************************************************************************
* Copyright (C) 2010 L-SMASH project
*
* Authors: Yusuke Nakamura <[email protected]>
* Takashi Hirata <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
/* This file is available under an ISC license. */
#ifndef OSDEP_H
#define OSDEP_H
#define _FILE_OFFSET_BITS 64
#ifdef __MINGW32__
#define lsmash_fseek fseeko64
#define lsmash_ftell ftello64
#endif
#endif
| Remove redundant declaration of lsmash_fseek. | Remove redundant declaration of lsmash_fseek.
| C | isc | mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,silverfilain/L-SMASH,canbal/l-smash,dwbuiten/l-smash,dwbuiten/l-smash,maki-rxrz/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,maki-rxrz/L-SMASH,l-smash/l-smash,canbal/l-smash |
ece0b186333657c94cd50148fbf10802a052d214 | debugger/tui.h | debugger/tui.h | #ifndef DEBUGGER_TUI_H
#define DEBUGGER_TUI_H
#include "asic.h"
char **tui_parse_commandline(const char *, int *);
void tui_tick(asic_t *asic);
#endif
| #ifndef DEBUGGER_TUI_H
#define DEBUGGER_TUI_H
#include "asic.h"
char **tui_parse_commandline(const char *, int *);
#ifndef EMSCRIPTEN
void tui_tick(asic_t *asic);
#endif
#endif
| Add ifs around TUI function not available in emscripten | Add ifs around TUI function not available in emscripten
| C | mit | KnightOS/z80e,KnightOS/z80e |
b0149a850e2209301304e67dd4fab34245fe0d70 | include/perfetto/protozero/contiguous_memory_range.h | include/perfetto/protozero/contiguous_memory_range.h | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#define INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
namespace protozero {
// Keep this struct trivially constructible (no ctors, no default initializers).
struct ContiguousMemoryRange {
uint8_t* begin;
uint8_t* end; // STL style: one byte past the end of the buffer.
inline bool is_valid() const { return begin != nullptr; }
inline void reset() { begin = nullptr; }
inline size_t size() { return static_cast<size_t>(end - begin); }
};
} // namespace protozero
#endif // INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
| /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#define INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
namespace protozero {
// Keep this struct trivially constructible (no ctors, no default initializers).
struct ContiguousMemoryRange {
uint8_t* begin;
uint8_t* end; // STL style: one byte past the end of the buffer.
inline bool is_valid() const { return begin != nullptr; }
inline void reset() { begin = nullptr; }
inline size_t size() const { return static_cast<size_t>(end - begin); }
};
} // namespace protozero
#endif // INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
| Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 | Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2
Change-Id: Ib4ab16a01bcda43994c6d26f34d16e3579272cf6
| C | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
13b6f22f0473917e11ed650282b9b118edb12b90 | include/llvm/Analysis/BasicAliasAnalysis.h | include/llvm/Analysis/BasicAliasAnalysis.h | //===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#define LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Pass.h"
struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
// alias - This is the only method here that does anything interesting...
//
Result alias(const Value *V1, const Value *V2);
/// canCallModify - We are not interprocedural, so we do nothing exciting.
///
Result canCallModify(const CallInst &CI, const Value *Ptr) {
return MayAlias;
}
/// canInvokeModify - We are not interprocedural, so we do nothing exciting.
///
Result canInvokeModify(const InvokeInst &I, const Value *Ptr) {
return MayAlias; // We are not interprocedural
}
};
#endif
| //===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#define LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Pass.h"
class GetElementPtrInst;
struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AliasAnalysis::getAnalysisUsage(AU);
}
virtual void initializePass();
// alias - This is the only method here that does anything interesting...
//
AliasResult alias(const Value *V1, unsigned V1Size,
const Value *V2, unsigned V2Size);
private:
// CheckGEPInstructions - Check two GEP instructions of compatible types and
// equal number of arguments. This checks to see if the index expressions
// preclude the pointers from aliasing...
AliasResult CheckGEPInstructions(GetElementPtrInst *GEP1, unsigned G1Size,
GetElementPtrInst *GEP2, unsigned G2Size);
};
#endif
| Tweak to work with new AA implementation | Tweak to work with new AA implementation
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5632 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm |
ad2faeac06c7be527108d83cd8771b6c0f296257 | tensorflow/cc/saved_model/tag_constants.h | tensorflow/cc/saved_model/tag_constants.h | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
#define THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
namespace tensorflow {
/// Tag for the `serving` graph.
constexpr char kSavedModelTagServe[] = "serve";
/// Tag for the `training` graph.`
constexpr char kSavedModelTagTrain[] = "train";
} // namespace tensorflow
#endif // THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
| /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
#define THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
namespace tensorflow {
/// Tag for the `gpu` graph.
constexpr char kSavedModelTagGpu[] = "gpu";
/// Tag for the `serving` graph.
constexpr char kSavedModelTagServe[] = "serve";
/// Tag for the `training` graph.
constexpr char kSavedModelTagTrain[] = "train";
} // namespace tensorflow
#endif // THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
| Add SavedModel tag-constant for gpu. | Add SavedModel tag-constant for gpu.
PiperOrigin-RevId: 159600621
| C | apache-2.0 | xodus7/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,jhseu/tensorflow,karllessard/tensorflow,unsiloai/syntaxnet-ops-hack,lukeiwanski/tensorflow,rabipanda/tensorflow,tensorflow/tensorflow-pywrap_saved_model,zycdragonball/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,zycdragonball/tensorflow,meteorcloudy/tensorflow,gautam1858/tensorflow,manipopopo/tensorflow,Intel-Corporation/tensorflow,bowang/tensorflow,cxxgtxy/tensorflow,manazhao/tf_recsys,mixturemodel-flow/tensorflow,dongjoon-hyun/tensorflow,ychfan/tensorflow,manipopopo/tensorflow,frreiss/tensorflow-fred,suiyuan2009/tensorflow,arborh/tensorflow,mdrumond/tensorflow,dendisuhubdy/tensorflow,girving/tensorflow,ghchinoy/tensorflow,Mistobaan/tensorflow,aselle/tensorflow,rabipanda/tensorflow,benoitsteiner/tensorflow-opencl,mixturemodel-flow/tensorflow,manipopopo/tensorflow,eaplatanios/tensorflow,horance-liu/tensorflow,zasdfgbnm/tensorflow,allenlavoie/tensorflow,gunan/tensorflow,tornadozou/tensorflow,Bulochkin/tensorflow_pack,andrewcmyers/tensorflow,aselle/tensorflow,ppwwyyxx/tensorflow,jostep/tensorflow,tiagofrepereira2012/tensorflow,petewarden/tensorflow,jbedorf/tensorflow,ZhangXinNan/tensorflow,lukeiwanski/tensorflow,nolanliou/tensorflow,guschmue/tensorflow,aam-at/tensorflow,jhseu/tensorflow,AnishShah/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,cxxgtxy/tensorflow,jostep/tensorflow,petewarden/tensorflow,maciekcc/tensorflow,gautam1858/tensorflow,guschmue/tensorflow,JingJunYin/tensorflow,kobejean/tensorflow,Mazecreator/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,hehongliang/tensorflow,renyi533/tensorflow,eaplatanios/tensorflow,girving/tensorflow,tiagofrepereira2012/tensorflow,adamtiger/tensorflow,adamtiger/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,hsaputra/tensorflow,eadgarchen/tensorflow,ravindrapanda/tensorflow,ageron/tensorflow,maciekcc/tensorflow,andrewcmyers/tensorflow,petewarden/tensorflow,theflofly/tensorflow,mavenlin/tensorflow,jbedorf/tensorflow,adit-chandra/tensorflow,aselle/tensorflow,xzturn/tensorflow,aldian/tensorflow,gunan/tensorflow,annarev/tensorflow,yongtang/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,alistairlow/tensorflow,unsiloai/syntaxnet-ops-hack,raymondxyang/tensorflow,a-doumoulakis/tensorflow,aam-at/tensorflow,Bulochkin/tensorflow_pack,brchiu/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,adit-chandra/tensorflow,AnishShah/tensorflow,alshedivat/tensorflow,codrut3/tensorflow,andrewcmyers/tensorflow,arborh/tensorflow,caisq/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,zasdfgbnm/tensorflow,snnn/tensorflow,xodus7/tensorflow,aam-at/tensorflow,karllessard/tensorflow,benoitsteiner/tensorflow-opencl,seanli9jan/tensorflow,ychfan/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,Mazecreator/tensorflow,eadgarchen/tensorflow,jalexvig/tensorflow,benoitsteiner/tensorflow-xsmm,yanchen036/tensorflow,adamtiger/tensorflow,gautam1858/tensorflow,gojira/tensorflow,nburn42/tensorflow,nolanliou/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,yanchen036/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,bowang/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,tornadozou/tensorflow,ishay2b/tensorflow,jart/tensorflow,drpngx/tensorflow,snnn/tensorflow,Intel-tensorflow/tensorflow,pavelchristof/gomoku-ai,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,tillahoffmann/tensorflow,yufengg/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,snnn/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,laszlocsomor/tensorflow,eadgarchen/tensorflow,dancingdan/tensorflow,jart/tensorflow,jostep/tensorflow,maciekcc/tensorflow,AnishShah/tensorflow,apark263/tensorflow,unsiloai/syntaxnet-ops-hack,Bulochkin/tensorflow_pack,gunan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,zasdfgbnm/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,Mistobaan/tensorflow,aselle/tensorflow,aselle/tensorflow,alshedivat/tensorflow,jalexvig/tensorflow,yufengg/tensorflow,gojira/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,Mistobaan/tensorflow,Bismarrck/tensorflow,ZhangXinNan/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,av8ramit/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,brchiu/tensorflow,davidzchen/tensorflow,ageron/tensorflow,yufengg/tensorflow,a-doumoulakis/tensorflow,paolodedios/tensorflow,tornadozou/tensorflow,gojira/tensorflow,mixturemodel-flow/tensorflow,hehongliang/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,arborh/tensorflow,meteorcloudy/tensorflow,chemelnucfin/tensorflow,rabipanda/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,theflofly/tensorflow,ran5515/DeepDecision,tiagofrepereira2012/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,codrut3/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,benoitsteiner/tensorflow-opencl,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,drpngx/tensorflow,kevin-coder/tensorflow-fork,gautam1858/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,tornadozou/tensorflow,ageron/tensorflow,jostep/tensorflow,alistairlow/tensorflow,maciekcc/tensorflow,hehongliang/tensorflow,lukeiwanski/tensorflow,ghchinoy/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,ychfan/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kobejean/tensorflow,alistairlow/tensorflow,JVillella/tensorflow,jwlawson/tensorflow,allenlavoie/tensorflow,asimshankar/tensorflow,benoitsteiner/tensorflow-xsmm,andrewcmyers/tensorflow,yongtang/tensorflow,drpngx/tensorflow,aselle/tensorflow,Xeralux/tensorflow,aselle/tensorflow,eadgarchen/tensorflow,jart/tensorflow,bowang/tensorflow,jendap/tensorflow,Mazecreator/tensorflow,apark263/tensorflow,AnishShah/tensorflow,brchiu/tensorflow,hsaputra/tensorflow,mdrumond/tensorflow,a-doumoulakis/tensorflow,freedomtan/tensorflow,zasdfgbnm/tensorflow,ArtsiomCh/tensorflow,alsrgv/tensorflow,dendisuhubdy/tensorflow,bowang/tensorflow,arborh/tensorflow,asimshankar/tensorflow,lakshayg/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,jart/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,dongjoon-hyun/tensorflow,zycdragonball/tensorflow,JingJunYin/tensorflow,apark263/tensorflow,hsaputra/tensorflow,suiyuan2009/tensorflow,alshedivat/tensorflow,kevin-coder/tensorflow-fork,adamtiger/tensorflow,nolanliou/tensorflow,mixturemodel-flow/tensorflow,dyoung418/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,Xeralux/tensorflow,AnishShah/tensorflow,gojira/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,manazhao/tf_recsys,ghchinoy/tensorflow,dancingdan/tensorflow,Mistobaan/tensorflow,annarev/tensorflow,dancingdan/tensorflow,tillahoffmann/tensorflow,lakshayg/tensorflow,sarvex/tensorflow,av8ramit/tensorflow,jendap/tensorflow,cxxgtxy/tensorflow,asimshankar/tensorflow,dendisuhubdy/tensorflow,Intel-tensorflow/tensorflow,allenlavoie/tensorflow,caisq/tensorflow,AnishShah/tensorflow,nburn42/tensorflow,raymondxyang/tensorflow,aselle/tensorflow,hsaputra/tensorflow,laszlocsomor/tensorflow,girving/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,lukeiwanski/tensorflow,codrut3/tensorflow,kobejean/tensorflow,benoitsteiner/tensorflow-xsmm,aldian/tensorflow,pavelchristof/gomoku-ai,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,yongtang/tensorflow,JVillella/tensorflow,gunan/tensorflow,aldian/tensorflow,horance-liu/tensorflow,dongjoon-hyun/tensorflow,gojira/tensorflow,theflofly/tensorflow,nburn42/tensorflow,AnishShah/tensorflow,yongtang/tensorflow,nburn42/tensorflow,mixturemodel-flow/tensorflow,adamtiger/tensorflow,xzturn/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,a-doumoulakis/tensorflow,benoitsteiner/tensorflow-xsmm,adit-chandra/tensorflow,apark263/tensorflow,benoitsteiner/tensorflow-xsmm,ZhangXinNan/tensorflow,apark263/tensorflow,caisq/tensorflow,ageron/tensorflow,mdrumond/tensorflow,guschmue/tensorflow,zasdfgbnm/tensorflow,jhseu/tensorflow,benoitsteiner/tensorflow-opencl,renyi533/tensorflow,horance-liu/tensorflow,meteorcloudy/tensorflow,annarev/tensorflow,snnn/tensorflow,JingJunYin/tensorflow,eadgarchen/tensorflow,ghchinoy/tensorflow,manazhao/tf_recsys,xzturn/tensorflow,alshedivat/tensorflow,sarvex/tensorflow,a-doumoulakis/tensorflow,dyoung418/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,dyoung418/tensorflow,lukeiwanski/tensorflow,nburn42/tensorflow,allenlavoie/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,tillahoffmann/tensorflow,zycdragonball/tensorflow,mixturemodel-flow/tensorflow,JingJunYin/tensorflow,jart/tensorflow,xzturn/tensorflow,seanli9jan/tensorflow,freedomtan/tensorflow,brchiu/tensorflow,gunan/tensorflow,renyi533/tensorflow,andrewcmyers/tensorflow,yufengg/tensorflow,yongtang/tensorflow,a-doumoulakis/tensorflow,dyoung418/tensorflow,theflofly/tensorflow,theflofly/tensorflow,Moriadry/tensorflow,andrewcmyers/tensorflow,annarev/tensorflow,gautam1858/tensorflow,tiagofrepereira2012/tensorflow,ArtsiomCh/tensorflow,gojira/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,jalexvig/tensorflow,unsiloai/syntaxnet-ops-hack,renyi533/tensorflow,bowang/tensorflow,hehongliang/tensorflow,manazhao/tf_recsys,hsaputra/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,ravindrapanda/tensorflow,Mistobaan/tensorflow,ZhangXinNan/tensorflow,drpngx/tensorflow,karllessard/tensorflow,andrewcmyers/tensorflow,theflofly/tensorflow,yongtang/tensorflow,girving/tensorflow,dyoung418/tensorflow,sarvex/tensorflow,Moriadry/tensorflow,eaplatanios/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,JVillella/tensorflow,frreiss/tensorflow-fred,av8ramit/tensorflow,horance-liu/tensorflow,arborh/tensorflow,JingJunYin/tensorflow,arborh/tensorflow,gautam1858/tensorflow,Mazecreator/tensorflow,guschmue/tensorflow,yanchen036/tensorflow,mavenlin/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,drpngx/tensorflow,suiyuan2009/tensorflow,rabipanda/tensorflow,caisq/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Kongsea/tensorflow,kevin-coder/tensorflow-fork,Mistobaan/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,aselle/tensorflow,manazhao/tf_recsys,jwlawson/tensorflow,asimshankar/tensorflow,pavelchristof/gomoku-ai,girving/tensorflow,ishay2b/tensorflow,kobejean/tensorflow,Xeralux/tensorflow,jendap/tensorflow,laszlocsomor/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,benoitsteiner/tensorflow-opencl,jwlawson/tensorflow,Bulochkin/tensorflow_pack,renyi533/tensorflow,adit-chandra/tensorflow,jendap/tensorflow,ishay2b/tensorflow,ArtsiomCh/tensorflow,rabipanda/tensorflow,ran5515/DeepDecision,adit-chandra/tensorflow,jart/tensorflow,alshedivat/tensorflow,mdrumond/tensorflow,jwlawson/tensorflow,seanli9jan/tensorflow,yanchen036/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,alivecor/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,meteorcloudy/tensorflow,jendap/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,dongjoon-hyun/tensorflow,hsaputra/tensorflow,ishay2b/tensorflow,zasdfgbnm/tensorflow,Xeralux/tensorflow,tornadozou/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Bismarrck/tensorflow,Mistobaan/tensorflow,hsaputra/tensorflow,raymondxyang/tensorflow,gojira/tensorflow,Intel-Corporation/tensorflow,Moriadry/tensorflow,Moriadry/tensorflow,mavenlin/tensorflow,jart/tensorflow,freedomtan/tensorflow,benoitsteiner/tensorflow-opencl,hehongliang/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_tf_optimizer,manazhao/tf_recsys,tensorflow/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,xodus7/tensorflow,Moriadry/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow,karllessard/tensorflow,dancingdan/tensorflow,unsiloai/syntaxnet-ops-hack,caisq/tensorflow,bowang/tensorflow,tillahoffmann/tensorflow,frreiss/tensorflow-fred,kobejean/tensorflow,raymondxyang/tensorflow,tillahoffmann/tensorflow,chemelnucfin/tensorflow,alivecor/tensorflow,bowang/tensorflow,av8ramit/tensorflow,alshedivat/tensorflow,allenlavoie/tensorflow,manipopopo/tensorflow,asimshankar/tensorflow,caisq/tensorflow,nolanliou/tensorflow,yongtang/tensorflow,petewarden/tensorflow,JingJunYin/tensorflow,Mistobaan/tensorflow,with-git/tensorflow,meteorcloudy/tensorflow,laszlocsomor/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,nburn42/tensorflow,JingJunYin/tensorflow,dendisuhubdy/tensorflow,jbedorf/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,aldian/tensorflow,pavelchristof/gomoku-ai,lukeiwanski/tensorflow,kobejean/tensorflow,horance-liu/tensorflow,alshedivat/tensorflow,ageron/tensorflow,hehongliang/tensorflow,brchiu/tensorflow,jendap/tensorflow,ishay2b/tensorflow,mixturemodel-flow/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,horance-liu/tensorflow,ran5515/DeepDecision,av8ramit/tensorflow,gautam1858/tensorflow,rabipanda/tensorflow,jhseu/tensorflow,alivecor/tensorflow,ppwwyyxx/tensorflow,snnn/tensorflow,mixturemodel-flow/tensorflow,with-git/tensorflow,renyi533/tensorflow,ageron/tensorflow,JingJunYin/tensorflow,tensorflow/tensorflow,xodus7/tensorflow,seanli9jan/tensorflow,Bulochkin/tensorflow_pack,alshedivat/tensorflow,hfp/tensorflow-xsmm,seanli9jan/tensorflow,Xeralux/tensorflow,laszlocsomor/tensorflow,benoitsteiner/tensorflow-xsmm,zasdfgbnm/tensorflow,Xeralux/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,rabipanda/tensorflow,gojira/tensorflow,tiagofrepereira2012/tensorflow,Bismarrck/tensorflow,pavelchristof/gomoku-ai,ArtsiomCh/tensorflow,gunan/tensorflow,jart/tensorflow,aam-at/tensorflow,drpngx/tensorflow,JVillella/tensorflow,jhseu/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,brchiu/tensorflow,hfp/tensorflow-xsmm,eadgarchen/tensorflow,alistairlow/tensorflow,freedomtan/tensorflow,Mistobaan/tensorflow,Kongsea/tensorflow,ychfan/tensorflow,guschmue/tensorflow,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,jwlawson/tensorflow,Xeralux/tensorflow,xzturn/tensorflow,lakshayg/tensorflow,Intel-tensorflow/tensorflow,Moriadry/tensorflow,ageron/tensorflow,Bulochkin/tensorflow_pack,jart/tensorflow,zasdfgbnm/tensorflow,JVillella/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tornadozou/tensorflow,av8ramit/tensorflow,Mazecreator/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jwlawson/tensorflow,annarev/tensorflow,jwlawson/tensorflow,zasdfgbnm/tensorflow,caisq/tensorflow,rabipanda/tensorflow,eaplatanios/tensorflow,DavidNorman/tensorflow,dyoung418/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,with-git/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow,ravindrapanda/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,av8ramit/tensorflow,Bismarrck/tensorflow,a-doumoulakis/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,manipopopo/tensorflow,xzturn/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,jalexvig/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,rabipanda/tensorflow,sarvex/tensorflow,zycdragonball/tensorflow,allenlavoie/tensorflow,caisq/tensorflow,dyoung418/tensorflow,benoitsteiner/tensorflow-opencl,theflofly/tensorflow,asimshankar/tensorflow,ghchinoy/tensorflow,codrut3/tensorflow,meteorcloudy/tensorflow,alistairlow/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,nburn42/tensorflow,aldian/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,zycdragonball/tensorflow,karllessard/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow-xsmm,apark263/tensorflow,aldian/tensorflow,nolanliou/tensorflow,chemelnucfin/tensorflow,xodus7/tensorflow,Bulochkin/tensorflow_pack,frreiss/tensorflow-fred,laszlocsomor/tensorflow,ravindrapanda/tensorflow,mdrumond/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ishay2b/tensorflow,Bulochkin/tensorflow_pack,suiyuan2009/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow-opencl,with-git/tensorflow,alistairlow/tensorflow,lakshayg/tensorflow,eaplatanios/tensorflow,nolanliou/tensorflow,av8ramit/tensorflow,yongtang/tensorflow,chemelnucfin/tensorflow,aselle/tensorflow,adit-chandra/tensorflow,jart/tensorflow,hsaputra/tensorflow,ran5515/DeepDecision,petewarden/tensorflow,ychfan/tensorflow,davidzchen/tensorflow,Mazecreator/tensorflow,xodus7/tensorflow,horance-liu/tensorflow,freedomtan/tensorflow,mdrumond/tensorflow,jhseu/tensorflow,lakshayg/tensorflow,kevin-coder/tensorflow-fork,Kongsea/tensorflow,alsrgv/tensorflow,Kongsea/tensorflow,apark263/tensorflow,petewarden/tensorflow,guschmue/tensorflow,aam-at/tensorflow,lukeiwanski/tensorflow,tiagofrepereira2012/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,jbedorf/tensorflow,horance-liu/tensorflow,nolanliou/tensorflow,alsrgv/tensorflow,alistairlow/tensorflow,girving/tensorflow,eaplatanios/tensorflow,snnn/tensorflow,allenlavoie/tensorflow,Intel-Corporation/tensorflow,alistairlow/tensorflow,cxxgtxy/tensorflow,mavenlin/tensorflow,zasdfgbnm/tensorflow,tensorflow/tensorflow-pywrap_saved_model,laszlocsomor/tensorflow,mavenlin/tensorflow,gunan/tensorflow,codrut3/tensorflow,Mistobaan/tensorflow,jhseu/tensorflow,ran5515/DeepDecision,Kongsea/tensorflow,alivecor/tensorflow,jbedorf/tensorflow,xodus7/tensorflow,Bulochkin/tensorflow_pack,ppwwyyxx/tensorflow,alistairlow/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,with-git/tensorflow,jwlawson/tensorflow,Moriadry/tensorflow,nolanliou/tensorflow,JingJunYin/tensorflow,petewarden/tensorflow,eadgarchen/tensorflow,dendisuhubdy/tensorflow,suiyuan2009/tensorflow,jhseu/tensorflow,ravindrapanda/tensorflow,eaplatanios/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,JVillella/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,ZhangXinNan/tensorflow,codrut3/tensorflow,laszlocsomor/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,ageron/tensorflow,seanli9jan/tensorflow,maciekcc/tensorflow,Bulochkin/tensorflow_pack,raymondxyang/tensorflow,lakshayg/tensorflow,allenlavoie/tensorflow,dancingdan/tensorflow,lakshayg/tensorflow,seanli9jan/tensorflow,rabipanda/tensorflow,sarvex/tensorflow,aam-at/tensorflow,girving/tensorflow,aselle/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,kevin-coder/tensorflow-fork,manazhao/tf_recsys,raymondxyang/tensorflow,ravindrapanda/tensorflow,ychfan/tensorflow,jostep/tensorflow,gunan/tensorflow,Kongsea/tensorflow,DavidNorman/tensorflow,ravindrapanda/tensorflow,laszlocsomor/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,alistairlow/tensorflow,guschmue/tensorflow,yufengg/tensorflow,ychfan/tensorflow,codrut3/tensorflow,guschmue/tensorflow,davidzchen/tensorflow,mdrumond/tensorflow,Kongsea/tensorflow,av8ramit/tensorflow,alivecor/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tillahoffmann/tensorflow,xzturn/tensorflow,jbedorf/tensorflow,Mazecreator/tensorflow,jhseu/tensorflow,xzturn/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,with-git/tensorflow,unsiloai/syntaxnet-ops-hack,JVillella/tensorflow,benoitsteiner/tensorflow-xsmm,aldian/tensorflow,girving/tensorflow,arborh/tensorflow,ghchinoy/tensorflow,bowang/tensorflow,tiagofrepereira2012/tensorflow,lukeiwanski/tensorflow,arborh/tensorflow,laszlocsomor/tensorflow,dendisuhubdy/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,aam-at/tensorflow,codrut3/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,zycdragonball/tensorflow,ageron/tensorflow,eadgarchen/tensorflow,maciekcc/tensorflow,adit-chandra/tensorflow,adit-chandra/tensorflow,JingJunYin/tensorflow,frreiss/tensorflow-fred,asimshankar/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,manipopopo/tensorflow,yanchen036/tensorflow,nburn42/tensorflow,codrut3/tensorflow,annarev/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow,seanli9jan/tensorflow,horance-liu/tensorflow,theflofly/tensorflow,maciekcc/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,av8ramit/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,guschmue/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,Mistobaan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,ran5515/DeepDecision,tillahoffmann/tensorflow,Bismarrck/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,Xeralux/tensorflow,adamtiger/tensorflow,frreiss/tensorflow-fred,allenlavoie/tensorflow,theflofly/tensorflow,aam-at/tensorflow,mavenlin/tensorflow,allenlavoie/tensorflow,gojira/tensorflow,gautam1858/tensorflow,andrewcmyers/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,Moriadry/tensorflow,rabipanda/tensorflow,meteorcloudy/tensorflow,mavenlin/tensorflow,dancingdan/tensorflow,ravindrapanda/tensorflow,av8ramit/tensorflow,gunan/tensorflow,jbedorf/tensorflow,unsiloai/syntaxnet-ops-hack,dongjoon-hyun/tensorflow,tiagofrepereira2012/tensorflow,drpngx/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,hfp/tensorflow-xsmm,jwlawson/tensorflow,mdrumond/tensorflow,eadgarchen/tensorflow,eaplatanios/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,apark263/tensorflow,horance-liu/tensorflow,mavenlin/tensorflow,a-doumoulakis/tensorflow,zasdfgbnm/tensorflow,snnn/tensorflow,hfp/tensorflow-xsmm,caisq/tensorflow,Xeralux/tensorflow,pavelchristof/gomoku-ai,karllessard/tensorflow,snnn/tensorflow,jbedorf/tensorflow,snnn/tensorflow,ravindrapanda/tensorflow,ychfan/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,nburn42/tensorflow,nburn42/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,alivecor/tensorflow,seanli9jan/tensorflow,allenlavoie/tensorflow,ZhangXinNan/tensorflow,DavidNorman/tensorflow,dancingdan/tensorflow,ZhangXinNan/tensorflow,raymondxyang/tensorflow,brchiu/tensorflow,tornadozou/tensorflow,karllessard/tensorflow,benoitsteiner/tensorflow-opencl,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tornadozou/tensorflow,Bulochkin/tensorflow_pack,jostep/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,girving/tensorflow,tensorflow/tensorflow,ageron/tensorflow,snnn/tensorflow,jostep/tensorflow,Xeralux/tensorflow,guschmue/tensorflow,dongjoon-hyun/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,brchiu/tensorflow,jendap/tensorflow,adamtiger/tensorflow,gojira/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,manipopopo/tensorflow,theflofly/tensorflow,raymondxyang/tensorflow,codrut3/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,unsiloai/syntaxnet-ops-hack,gojira/tensorflow,alsrgv/tensorflow,girving/tensorflow,pavelchristof/gomoku-ai,apark263/tensorflow,sarvex/tensorflow,arborh/tensorflow,hfp/tensorflow-xsmm,ishay2b/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,with-git/tensorflow,suiyuan2009/tensorflow,drpngx/tensorflow,ychfan/tensorflow,theflofly/tensorflow,jostep/tensorflow,lakshayg/tensorflow,hsaputra/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,ran5515/DeepDecision,nolanliou/tensorflow,AnishShah/tensorflow,dongjoon-hyun/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,xzturn/tensorflow,hsaputra/tensorflow,caisq/tensorflow,jbedorf/tensorflow,nburn42/tensorflow,Intel-Corporation/tensorflow,ZhangXinNan/tensorflow,eadgarchen/tensorflow,alivecor/tensorflow,ghchinoy/tensorflow,dendisuhubdy/tensorflow,yanchen036/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,brchiu/tensorflow,Mazecreator/tensorflow,ppwwyyxx/tensorflow,tillahoffmann/tensorflow,davidzchen/tensorflow,pavelchristof/gomoku-ai,mdrumond/tensorflow,kevin-coder/tensorflow-fork,alivecor/tensorflow,ageron/tensorflow,jalexvig/tensorflow,yanchen036/tensorflow,nolanliou/tensorflow,ZhangXinNan/tensorflow,aldian/tensorflow,alsrgv/tensorflow,ArtsiomCh/tensorflow,ArtsiomCh/tensorflow,jwlawson/tensorflow,ArtsiomCh/tensorflow,Kongsea/tensorflow,eaplatanios/tensorflow,girving/tensorflow,maciekcc/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,Mazecreator/tensorflow,jalexvig/tensorflow,suiyuan2009/tensorflow,Bulochkin/tensorflow_pack,paolodedios/tensorflow,dyoung418/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,yufengg/tensorflow,yufengg/tensorflow,Xeralux/tensorflow,AnishShah/tensorflow,jwlawson/tensorflow,with-git/tensorflow,chemelnucfin/tensorflow |
f0705ea08c9c53f13113f60db2bea9786d7738bb | src/ee/common/UndoQuantumReleaseInterest.h | src/ee/common/UndoQuantumReleaseInterest.h | /* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VoltDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNDOQUANTUM_RELEASE_INTEREST_H_
#define UNDOQUANTUM_RELEASE_INTEREST_H_
namespace voltdb {
class UndoQuantumReleaseInterest {
public:
virtual void notifyQuantumRelease() = 0;
};
}
#endif /* UNDOQUANTUM_H_ */
| /* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VoltDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNDOQUANTUM_RELEASE_INTEREST_H_
#define UNDOQUANTUM_RELEASE_INTEREST_H_
namespace voltdb {
class UndoQuantumReleaseInterest {
public:
virtual void notifyQuantumRelease() = 0;
virtual ~UndoQuantumReleaseInterest() {}
};
}
#endif /* UNDOQUANTUM_H_ */
| Fix compile error on CentOS | Fix compile error on CentOS
| C | agpl-3.0 | simonzhangsm/voltdb,flybird119/voltdb,kobronson/cs-voltdb,flybird119/voltdb,flybird119/voltdb,deerwalk/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,zuowang/voltdb,flybird119/voltdb,kumarrus/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,VoltDB/voltdb,zuowang/voltdb,migue/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,deerwalk/voltdb,ingted/voltdb,migue/voltdb,migue/voltdb,flybird119/voltdb,paulmartel/voltdb,kumarrus/voltdb,zuowang/voltdb,creative-quant/voltdb,migue/voltdb,zuowang/voltdb,deerwalk/voltdb,kobronson/cs-voltdb,migue/voltdb,flybird119/voltdb,flybird119/voltdb,creative-quant/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,VoltDB/voltdb,VoltDB/voltdb,wolffcm/voltdb,migue/voltdb,creative-quant/voltdb,paulmartel/voltdb,kobronson/cs-voltdb,flybird119/voltdb,VoltDB/voltdb,deerwalk/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,creative-quant/voltdb,VoltDB/voltdb,kumarrus/voltdb,wolffcm/voltdb,kumarrus/voltdb,migue/voltdb,deerwalk/voltdb,kobronson/cs-voltdb,kumarrus/voltdb,creative-quant/voltdb,deerwalk/voltdb,ingted/voltdb,ingted/voltdb,simonzhangsm/voltdb,ingted/voltdb,creative-quant/voltdb,ingted/voltdb,deerwalk/voltdb,paulmartel/voltdb,creative-quant/voltdb,kobronson/cs-voltdb,zuowang/voltdb,VoltDB/voltdb,wolffcm/voltdb,ingted/voltdb,deerwalk/voltdb,zuowang/voltdb,creative-quant/voltdb,paulmartel/voltdb,kumarrus/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,ingted/voltdb,zuowang/voltdb,paulmartel/voltdb,wolffcm/voltdb,wolffcm/voltdb,wolffcm/voltdb,kobronson/cs-voltdb,migue/voltdb,ingted/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,zuowang/voltdb |
42078262c5a5a4203a3256d6b0ab16792c48a433 | include/charset.h | include/charset.h | n/*************************************************
* Character Set Handling Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_CHARSET_H__
#define BOTAN_CHARSET_H__
#include <botan/types.h>
#include <botan/enums.h>
#include <string>
namespace Botan {
namespace Charset {
/*************************************************
* Character Set Handling *
*************************************************/
std::string transcode(const std::string&, Character_Set, Character_Set);
bool is_digit(char);
bool is_space(char);
bool caseless_cmp(char, char);
byte char2digit(char);
char digit2char(byte);
}
}
#endif
| /*************************************************
* Character Set Handling Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_CHARSET_H__
#define BOTAN_CHARSET_H__
#include <botan/types.h>
#include <botan/enums.h>
#include <string>
namespace Botan {
namespace Charset {
/*************************************************
* Character Set Handling *
*************************************************/
std::string transcode(const std::string&, Character_Set, Character_Set);
bool is_digit(char);
bool is_space(char);
bool caseless_cmp(char, char);
byte char2digit(char);
char digit2char(byte);
}
}
#endif
| Remove stray character introduced during merge | Remove stray character introduced during merge
| C | bsd-2-clause | randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan |
e0c021bfef7292524964b4ab61db5db65c49f6aa | atom/utility/atom_content_utility_client.h | atom/utility/atom_content_utility_client.h | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "content/public/utility/content_utility_client.h"
class UtilityMessageHandler;
namespace atom {
class AtomContentUtilityClient : public content::ContentUtilityClient {
public:
AtomContentUtilityClient();
~AtomContentUtilityClient() override;
private:
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
};
} // namespace atom
#endif // ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
| // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "content/public/utility/content_utility_client.h"
class UtilityMessageHandler;
namespace atom {
class AtomContentUtilityClient : public content::ContentUtilityClient {
public:
AtomContentUtilityClient();
~AtomContentUtilityClient() override;
private:
#if defined(OS_WIN)
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
#endif
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
};
} // namespace atom
#endif // ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
| Fix compilation waring on Mac | Fix compilation waring on Mac
| C | mit | shiftkey/electron,shiftkey/electron,the-ress/electron,renaesop/electron,rajatsingla28/electron,electron/electron,rreimann/electron,Floato/electron,renaesop/electron,tonyganch/electron,miniak/electron,brenca/electron,the-ress/electron,miniak/electron,tonyganch/electron,electron/electron,shiftkey/electron,renaesop/electron,Floato/electron,Floato/electron,miniak/electron,gerhardberger/electron,seanchas116/electron,thompsonemerson/electron,rajatsingla28/electron,tonyganch/electron,Floato/electron,gerhardberger/electron,gerhardberger/electron,wan-qy/electron,twolfson/electron,tonyganch/electron,joaomoreno/atom-shell,biblerule/UMCTelnetHub,joaomoreno/atom-shell,bpasero/electron,thompsonemerson/electron,rreimann/electron,seanchas116/electron,twolfson/electron,thomsonreuters/electron,rajatsingla28/electron,the-ress/electron,rajatsingla28/electron,electron/electron,biblerule/UMCTelnetHub,wan-qy/electron,twolfson/electron,thompsonemerson/electron,rreimann/electron,Floato/electron,miniak/electron,electron/electron,brenca/electron,the-ress/electron,miniak/electron,joaomoreno/atom-shell,shiftkey/electron,brenca/electron,renaesop/electron,biblerule/UMCTelnetHub,joaomoreno/atom-shell,wan-qy/electron,joaomoreno/atom-shell,twolfson/electron,shiftkey/electron,rajatsingla28/electron,bpasero/electron,rreimann/electron,twolfson/electron,renaesop/electron,the-ress/electron,thompsonemerson/electron,seanchas116/electron,Floato/electron,tonyganch/electron,bpasero/electron,gerhardberger/electron,rreimann/electron,thomsonreuters/electron,thomsonreuters/electron,thompsonemerson/electron,wan-qy/electron,renaesop/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,gerhardberger/electron,brenca/electron,wan-qy/electron,biblerule/UMCTelnetHub,shiftkey/electron,thomsonreuters/electron,biblerule/UMCTelnetHub,thomsonreuters/electron,joaomoreno/atom-shell,brenca/electron,thompsonemerson/electron,gerhardberger/electron,biblerule/UMCTelnetHub,tonyganch/electron,bpasero/electron,electron/electron,twolfson/electron,the-ress/electron,wan-qy/electron,seanchas116/electron,bpasero/electron,brenca/electron,thomsonreuters/electron,rreimann/electron,rajatsingla28/electron,electron/electron,gerhardberger/electron,bpasero/electron,miniak/electron,electron/electron,the-ress/electron |
c7a41814a7f1a1519f107108233071646bd2fa6a | rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h | rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h | /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#if __cplusplus
extern "C"
{
#endif
#include "u_instanceHandle.h" // NOLINT
#include "v_collection.h" // NOLINT
v_gid
u_instanceHandleToGID(
u_instanceHandle _this);
#ifdef __cplusplus
}
#endif
#endif // ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
| /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
// Provides visibility macros like ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC.
#include <rosidl_typesupport_opensplice_cpp/visibility_control.h>
#if __cplusplus
extern "C"
{
#endif
#include "u_instanceHandle.h" // NOLINT
#include "v_collection.h" // NOLINT
ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC
v_gid
u_instanceHandleToGID(
u_instanceHandle _this);
#ifdef __cplusplus
}
#endif
#endif // ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
| Fix build issue on windows | Fix build issue on windows
export function
| C | apache-2.0 | ros2/rmw_opensplice |
643faa24287693f2692434e4641c2e80cec6588d | indra/llcommon/nd/ndboolswitch.h | indra/llcommon/nd/ndboolswitch.h | #ifndef NDBOOLSWITCH_H
#define NDBOOLSWITCH_H
/**
* $LicenseInfo:firstyear=2013&license=fsviewerlgpl$
* Phoenix Firestorm Viewer Source Code
* Copyright (C) 2013, Nicky Dasmijn
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* The Phoenix Firestorm Project, Inc., 1831 Oakwood Drive, Fairmont, Minnesota 56031-3225 USA
* http://www.firestormviewer.org
* $/LicenseInfo$
*/
namespace nd
{
namespace utils
{
class boolSwitch
{
bool *mLocation;
bool mOriginalValue;
bool mNeedsReset;
public:
boolSwitch( bool *aLocation, bool aValue )
: mLocation( aLocation )
, mNeedsReset( false )
{
if( mLocation )
{
mOriginalValue = *mLocation;
mNeedsReset = true;
*mLocation = aValue;
}
}
~boolSwitch( )
{
reset();
}
void reset()
{
if( mLocation && mNeedsReset )
*mLocation = mOriginalValue;
mNeedsReset = false;
}
};
}
}
#endif
| Add file that did not get added by MQ. | Add file that did not get added by MQ.
| C | lgpl-2.1 | gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm |
|
b8e969093e83bccc053e2102674561776ef5ee44 | evmjit/libevmjit/CompilerHelper.h | evmjit/libevmjit/CompilerHelper.h | #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelper(llvm::IRBuilder<>& _builder);
CompilerHelper(const CompilerHelper&) = delete;
CompilerHelper& operator=(CompilerHelper) = delete;
/// Reference to the IR module being compiled
llvm::Module* getModule();
/// Reference to the main module function
llvm::Function* getMainFunction();
/// Reference to parent compiler IR builder
llvm::IRBuilder<>& m_builder;
llvm::IRBuilder<>& getBuilder() { return m_builder; }
llvm::CallInst* createCall(llvm::Function* _func, std::initializer_list<llvm::Value*> const& _args);
friend class RuntimeHelper;
};
/// Compiler helper that depends on runtime data
class RuntimeHelper : public CompilerHelper
{
protected:
RuntimeHelper(RuntimeManager& _runtimeManager);
RuntimeManager& getRuntimeManager() { return m_runtimeManager; }
private:
RuntimeManager& m_runtimeManager;
};
using InsertPointGuard = llvm::IRBuilderBase::InsertPointGuard;
}
}
}
| #pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelper(llvm::IRBuilder<>& _builder);
CompilerHelper(const CompilerHelper&) = delete;
CompilerHelper& operator=(CompilerHelper) = delete;
/// Reference to the IR module being compiled
llvm::Module* getModule();
/// Reference to the main module function
llvm::Function* getMainFunction();
/// Reference to parent compiler IR builder
llvm::IRBuilder<>& m_builder;
llvm::IRBuilder<>& getBuilder() { return m_builder; }
llvm::CallInst* createCall(llvm::Function* _func, std::initializer_list<llvm::Value*> const& _args);
friend class RuntimeHelper;
};
/// Compiler helper that depends on runtime data
class RuntimeHelper : public CompilerHelper
{
protected:
RuntimeHelper(RuntimeManager& _runtimeManager);
RuntimeManager& getRuntimeManager() { return m_runtimeManager; }
private:
RuntimeManager& m_runtimeManager;
};
struct InsertPointGuard
{
explicit InsertPointGuard(llvm::IRBuilderBase& _builder): m_builder(_builder), m_insertPoint(_builder.saveIP()) {}
~InsertPointGuard() { m_builder.restoreIP(m_insertPoint); }
private:
llvm::IRBuilderBase& m_builder;
decltype(m_builder.saveIP()) m_insertPoint;
};
}
}
}
| Reimplement InsertPointGuard to avoid LLVM ABI incompatibility. | Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is built by homebrew with assertions by default.
| C | mit | johnpeter66/ethminer,smartbitcoin/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,ethers/cpp-ethereum,expanse-project/cpp-expanse,yann300/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,anthony-cros/cpp-ethereum,LefterisJP/webthree-umbrella,yann300/cpp-ethereum,d-das/cpp-ethereum,LefterisJP/cpp-ethereum,LefterisJP/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,d-das/cpp-ethereum,anthony-cros/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,karek314/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,chfast/webthree-umbrella,LefterisJP/webthree-umbrella,PaulGrey30/go-get--u-github.com-tools-godep,yann300/cpp-ethereum,expanse-project/cpp-expanse,Sorceror32/go-get--u-github.com-tools-godep,LefterisJP/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,gluk256/cpp-ethereum,joeldo/cpp-ethereum,expanse-org/cpp-expanse,programonauta/webthree-umbrella,yann300/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,smartbitcoin/cpp-ethereum,smartbitcoin/cpp-ethereum,eco/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,karek314/cpp-ethereum,expanse-org/cpp-expanse,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,anthony-cros/cpp-ethereum,expanse-project/cpp-expanse,ethers/cpp-ethereum,smartbitcoin/cpp-ethereum,eco/cpp-ethereum,eco/cpp-ethereum,programonauta/webthree-umbrella,johnpeter66/ethminer,d-das/cpp-ethereum,expanse-org/cpp-expanse,LefterisJP/cpp-ethereum,expanse-org/cpp-expanse,ethers/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,joeldo/cpp-ethereum,xeddmc/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,ethers/cpp-ethereum,d-das/cpp-ethereum,eco/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,expanse-org/cpp-expanse,anthony-cros/cpp-ethereum,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,yann300/cpp-ethereum,xeddmc/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,LefterisJP/cpp-ethereum,expanse-project/cpp-expanse,gluk256/cpp-ethereum,eco/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,d-das/cpp-ethereum,karek314/cpp-ethereum,d-das/cpp-ethereum,arkpar/webthree-umbrella,LefterisJP/cpp-ethereum,eco/cpp-ethereum,joeldo/cpp-ethereum,anthony-cros/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,expanse-project/cpp-expanse,vaporry/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,vaporry/webthree-umbrella,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,joeldo/cpp-ethereum,vaporry/cpp-ethereum,smartbitcoin/cpp-ethereum,yann300/cpp-ethereum,joeldo/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,expanse-org/cpp-expanse,gluk256/cpp-ethereum,gluk256/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,anthony-cros/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,smartbitcoin/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum |
fd21da62c853499531eb95fc666cde55e70b1d41 | Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h | Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h | /*=============================================================================
Library: CTK
Copyright (c) 2010 German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=============================================================================*/
#ifndef CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#define CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#include <QtCore/qglobal.h>
#if defined(CTKPluginFrameworkTestUtil_EXPORTS)
#define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
#else
#define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_IMPORT
#endif
#endif // CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
| /*=============================================================================
Library: CTK
Copyright (c) 2010 German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=============================================================================*/
#ifndef CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#define CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#include <QtCore/qglobal.h>
#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
# if defined(CTKPluginFrameworkTestUtil_EXPORTS)
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
# else
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_IMPORT
# endif
#endif
#if !defined(CTK_PLUGINFW_TESTUTIL_EXPORT)
//# if defined(CTK_SHARED)
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
//# else
//# define @MY_LIBRARY_EXPORT_DIRECTIVE@
//# endif
#endif
#endif // CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
| Fix export macro for plugin test utility library. | Fix export macro for plugin test utility library.
| C | apache-2.0 | commontk/CTK,finetjul/CTK,finetjul/CTK,sankhesh/CTK,CJGoch/CTK,commontk/CTK,msmolens/CTK,pieper/CTK,CJGoch/CTK,AndreasFetzer/CTK,rkhlebnikov/CTK,Sardge/CTK,jcfr/CTK,naucoin/CTK,rkhlebnikov/CTK,mehrtash/CTK,lassoan/CTK,151706061/CTK,mehrtash/CTK,commontk/CTK,espakm/CTK,SINTEFMedtek/CTK,pieper/CTK,danielknorr/CTK,jcfr/CTK,naucoin/CTK,danielknorr/CTK,AndreasFetzer/CTK,Sardge/CTK,151706061/CTK,pieper/CTK,jcfr/CTK,CJGoch/CTK,CJGoch/CTK,vovythevov/CTK,sankhesh/CTK,danielknorr/CTK,Heather/CTK,laurennlam/CTK,jcfr/CTK,mehrtash/CTK,espakm/CTK,jcfr/CTK,msmolens/CTK,Heather/CTK,laurennlam/CTK,naucoin/CTK,lassoan/CTK,naucoin/CTK,151706061/CTK,ddao/CTK,msmolens/CTK,SINTEFMedtek/CTK,espakm/CTK,fedorov/CTK,fedorov/CTK,151706061/CTK,vovythevov/CTK,danielknorr/CTK,lassoan/CTK,fedorov/CTK,pieper/CTK,vovythevov/CTK,msmolens/CTK,ddao/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,CJGoch/CTK,fedorov/CTK,finetjul/CTK,ddao/CTK,Heather/CTK,ddao/CTK,rkhlebnikov/CTK,mehrtash/CTK,espakm/CTK,Heather/CTK,sankhesh/CTK,151706061/CTK,AndreasFetzer/CTK,rkhlebnikov/CTK,vovythevov/CTK,lassoan/CTK,sankhesh/CTK,Sardge/CTK,Sardge/CTK,commontk/CTK,SINTEFMedtek/CTK,laurennlam/CTK,finetjul/CTK,AndreasFetzer/CTK,laurennlam/CTK |
b3400badf022b4ff6f3545d1baa706affc22d93d | include/gpu/gl/SkMesaGLContext.h | include/gpu/gl/SkMesaGLContext.h |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intptr_t Context;
public:
SkMesaGLContext();
virtual ~SkMesaGLContext();
virtual void makeCurrent() const SK_OVERRIDE;
class AutoContextRestore {
public:
AutoContextRestore();
~AutoContextRestore();
private:
Context fOldContext;
GLint fOldWidth;
GLint fOldHeight;
GLint fOldFormat;
void* fOldImage;
};
protected:
virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
virtual void destroyGLContext() SK_OVERRIDE;
private:
Context fContext;
GrGLubyte *fImage;
};
#endif
#endif
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intptr_t Context;
public:
SkMesaGLContext();
virtual ~SkMesaGLContext();
virtual void makeCurrent() const SK_OVERRIDE;
class AutoContextRestore {
public:
AutoContextRestore();
~AutoContextRestore();
private:
Context fOldContext;
GrGLint fOldWidth;
GrGLint fOldHeight;
GrGLint fOldFormat;
void* fOldImage;
};
protected:
virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
virtual void destroyGLContext() SK_OVERRIDE;
private:
Context fContext;
GrGLubyte *fImage;
};
#endif
#endif
| Fix undefined GLint in Mac builds | Fix undefined GLint in Mac builds
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | geekboxzone/lollipop_external_chromium_org_third_party_skia,sombree/android_external_skia,rubenvb/skia,Purity-Lollipop/platform_external_skia,FusionSP/android_external_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,zhaochengw/platform_external_skia,aospo/platform_external_skia,fire855/android_external_skia,Khaon/android_external_skia,FusionSP/android_external_skia,google/skia,TeamTwisted/external_skia,houst0nn/external_skia,fire855/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,aospo/platform_external_skia,GladeRom/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,amyvmiwei/skia,MinimalOS/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,Infusion-OS/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,mydongistiny/android_external_skia,Samsung/skia,Euphoria-OS-Legacy/android_external_skia,NamelessRom/android_external_skia,FusionSP/external_chromium_org_third_party_skia,tmpvar/skia.cc,xzzz9097/android_external_skia,chenlian2015/skia_from_google,GladeRom/android_external_skia,TeslaProject/external_skia,pacerom/external_skia,temasek/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,ominux/skia,NamelessRom/android_external_skia,boulzordev/android_external_skia,TeslaProject/external_skia,samuelig/skia,TeslaOS/android_external_skia,TeamEOS/external_skia,MinimalOS/external_chromium_org_third_party_skia,mmatyas/skia,Igalia/skia,Jichao/skia,Hybrid-Rom/external_skia,ominux/skia,sudosurootdev/external_skia,RadonX-ROM/external_skia,Infusion-OS/android_external_skia,invisiblek/android_external_skia,mozilla-b2g/external_skia,Hybrid-Rom/external_skia,DesolationStaging/android_external_skia,FusionSP/android_external_skia,aosp-mirror/platform_external_skia,Jichao/skia,ench0/external_skia,Omegaphora/external_skia,MarshedOut/android_external_skia,Asteroid-Project/android_external_skia,AOSPB/external_skia,Plain-Andy/android_platform_external_skia,F-AOSP/platform_external_skia,jtg-gg/skia,Pure-Aosp/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,Omegaphora/external_skia,larsbergstrom/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,BrokenROM/external_skia,timduru/platform-external-skia,todotodoo/skia,noselhq/skia,VRToxin-AOSP/android_external_skia,jtg-gg/skia,TeamEOS/external_chromium_org_third_party_skia,sudosurootdev/external_skia,AOSPA-L/android_external_skia,byterom/android_external_skia,Omegaphora/external_skia,Infinitive-OS/platform_external_skia,Hikari-no-Tenshi/android_external_skia,fire855/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamTwisted/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,AOSPA-L/android_external_skia,UBERMALLOW/external_skia,larsbergstrom/skia,sigysmund/platform_external_skia,nox/skia,MyAOSP/external_chromium_org_third_party_skia,timduru/platform-external-skia,NamelessRom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,houst0nn/external_skia,TeamTwisted/external_skia,Jichao/skia,android-ia/platform_external_skia,YUPlayGodDev/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MinimalOS/external_skia,suyouxin/android_external_skia,Jichao/skia,boulzordev/android_external_skia,zhaochengw/platform_external_skia,MonkeyZZZZ/platform_external_skia,suyouxin/android_external_skia,YUPlayGodDev/platform_external_skia,vanish87/skia,MinimalOS-AOSP/platform_external_skia,nfxosp/platform_external_skia,ctiao/platform-external-skia,google/skia,pcwalton/skia,spezi77/android_external_skia,OptiPop/external_skia,todotodoo/skia,DiamondLovesYou/skia-sys,F-AOSP/platform_external_skia,AndroidOpenDevelopment/android_external_skia,sigysmund/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,TeamTwisted/external_skia,OptiPop/external_chromium_org_third_party_skia,OneRom/external_skia,Infusion-OS/android_external_skia,FusionSP/android_external_skia,MinimalOS/external_skia,OptiPop/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,PAC-ROM/android_external_skia,Hikari-no-Tenshi/android_external_skia,geekboxzone/mmallow_external_skia,geekboxzone/mmallow_external_skia,nfxosp/platform_external_skia,todotodoo/skia,aospo/platform_external_skia,Fusion-Rom/android_external_skia,AOSPA-L/android_external_skia,Asteroid-Project/android_external_skia,shahrzadmn/skia,VRToxin-AOSP/android_external_skia,ench0/external_skia,HalCanary/skia-hc,Tesla-Redux/android_external_skia,AOSP-YU/platform_external_skia,TeamTwisted/external_skia,Purity-Lollipop/platform_external_skia,AOSPB/external_skia,OneRom/external_skia,nox/skia,InfinitiveOS/external_skia,houst0nn/external_skia,MarshedOut/android_external_skia,TeslaProject/external_skia,larsbergstrom/skia,codeaurora-unoffical/platform-external-skia,noselhq/skia,rubenvb/skia,fire855/android_external_skia,MIPS/external-chromium_org-third_party-skia,SlimSaber/android_external_skia,NamelessRom/android_external_skia,TeslaOS/android_external_skia,NamelessRom/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,mmatyas/skia,YUPlayGodDev/platform_external_skia,ominux/skia,Hybrid-Rom/external_skia,TeslaProject/external_skia,Euphoria-OS-Legacy/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,sombree/android_external_skia,nvoron23/skia,amyvmiwei/skia,Igalia/skia,pacerom/external_skia,aosp-mirror/platform_external_skia,PAC-ROM/android_external_skia,nfxosp/platform_external_skia,jtg-gg/skia,byterom/android_external_skia,android-ia/platform_external_skia,YUPlayGodDev/platform_external_skia,houst0nn/external_skia,UBERMALLOW/external_skia,android-ia/platform_external_chromium_org_third_party_skia,Igalia/skia,w3nd1go/android_external_skia,nox/skia,nvoron23/skia,timduru/platform-external-skia,pcwalton/skia,nvoron23/skia,GladeRom/android_external_skia,noselhq/skia,Fusion-Rom/external_chromium_org_third_party_skia,aospo/platform_external_skia,qrealka/skia-hc,DARKPOP/external_chromium_org_third_party_skia,xin3liang/platform_external_chromium_org_third_party_skia,ctiao/platform-external-skia,chenlian2015/skia_from_google,Tesla-Redux/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,AOSPB/external_skia,android-ia/platform_external_skia,amyvmiwei/skia,HalCanary/skia-hc,vanish87/skia,geekboxzone/lollipop_external_skia,android-ia/platform_external_chromium_org_third_party_skia,pcwalton/skia,YUPlayGodDev/platform_external_skia,nox/skia,FusionSP/android_external_skia,rubenvb/skia,MinimalOS/android_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,Purity-Lollipop/platform_external_skia,Pure-Aosp/android_external_skia,samuelig/skia,Asteroid-Project/android_external_skia,suyouxin/android_external_skia,HalCanary/skia-hc,temasek/android_external_skia,Omegaphora/external_skia,Euphoria-OS-Legacy/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,ench0/external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,CyanogenMod/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,OneRom/external_skia,qrealka/skia-hc,Infinitive-OS/platform_external_skia,F-AOSP/platform_external_skia,ench0/external_skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,TeslaOS/android_external_skia,vvuk/skia,MarshedOut/android_external_skia,nox/skia,MinimalOS/android_external_skia,OptiPop/external_skia,ominux/skia,OptiPop/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,byterom/android_external_skia,SlimSaber/android_external_skia,GladeRom/android_external_skia,Khaon/android_external_skia,TeamExodus/external_skia,nvoron23/skia,OptiPop/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,w3nd1go/android_external_skia,VRToxin-AOSP/android_external_skia,sudosurootdev/external_skia,akiss77/skia,suyouxin/android_external_skia,AOSPB/external_skia,Jichao/skia,ctiao/platform-external-skia,geekboxzone/lollipop_external_skia,ench0/external_chromium_org_third_party_skia,Infusion-OS/android_external_skia,mozilla-b2g/external_skia,nox/skia,MIPS/external-chromium_org-third_party-skia,zhaochengw/platform_external_skia,wildermason/external_skia,ctiao/platform-external-skia,qrealka/skia-hc,Infinitive-OS/platform_external_skia,InfinitiveOS/external_skia,rubenvb/skia,scroggo/skia,ench0/external_chromium_org_third_party_skia,TeslaProject/external_skia,Pure-Aosp/android_external_skia,Igalia/skia,DiamondLovesYou/skia-sys,invisiblek/android_external_skia,AndroidOpenDevelopment/android_external_skia,temasek/android_external_skia,samuelig/skia,geekboxzone/mmallow_external_skia,codeaurora-unoffical/platform-external-skia,VRToxin-AOSP/android_external_skia,suyouxin/android_external_skia,OptiPop/external_chromium_org_third_party_skia,Android-AOSP/external_skia,aosp-mirror/platform_external_skia,shahrzadmn/skia,pacerom/external_skia,Android-AOSP/external_skia,AOSPA-L/android_external_skia,vanish87/skia,xin3liang/platform_external_chromium_org_third_party_skia,Samsung/skia,OneRom/external_skia,houst0nn/external_skia,OptiPop/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,noselhq/skia,SlimSaber/android_external_skia,aosp-mirror/platform_external_skia,sigysmund/platform_external_skia,larsbergstrom/skia,MIPS/external-chromium_org-third_party-skia,android-ia/platform_external_skia,Tesla-Redux/android_external_skia,xzzz9097/android_external_skia,TeamEOS/external_skia,timduru/platform-external-skia,BrokenROM/external_skia,google/skia,todotodoo/skia,Fusion-Rom/android_external_skia,Purity-Lollipop/platform_external_skia,AsteroidOS/android_external_skia,xzzz9097/android_external_skia,SlimSaber/android_external_skia,Hikari-no-Tenshi/android_external_skia,Tesla-Redux/android_external_skia,w3nd1go/android_external_skia,amyvmiwei/skia,sudosurootdev/external_skia,fire855/android_external_skia,TeamBliss-LP/android_external_skia,TeamEOS/external_skia,AndroidOpenDevelopment/android_external_skia,AsteroidOS/android_external_skia,TeamEOS/external_skia,AOSPA-L/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,UBERMALLOW/external_skia,OptiPop/external_skia,MarshedOut/android_external_skia,sigysmund/platform_external_skia,F-AOSP/platform_external_skia,FusionSP/android_external_skia,Euphoria-OS-Legacy/android_external_skia,qrealka/skia-hc,MIPS/external-chromium_org-third_party-skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,vvuk/skia,Tesla-Redux/android_external_skia,ench0/external_chromium_org_third_party_skia,byterom/android_external_skia,AOSP-YU/platform_external_skia,nfxosp/platform_external_skia,TeslaProject/external_skia,Hikari-no-Tenshi/android_external_skia,TeamEOS/external_skia,aosp-mirror/platform_external_skia,Tesla-Redux/android_external_skia,geekboxzone/lollipop_external_skia,pcwalton/skia,xzzz9097/android_external_skia,MonkeyZZZZ/platform_external_skia,mydongistiny/android_external_skia,sombree/android_external_skia,ench0/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,HalCanary/skia-hc,sombree/android_external_skia,tmpvar/skia.cc,android-ia/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,wildermason/external_skia,VentureROM-L/android_external_skia,jtg-gg/skia,MyAOSP/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,MinimalOS-AOSP/platform_external_skia,MonkeyZZZZ/platform_external_skia,MinimalOS-AOSP/platform_external_skia,jtg-gg/skia,vvuk/skia,todotodoo/skia,boulzordev/android_external_skia,amyvmiwei/skia,pcwalton/skia,YUPlayGodDev/platform_external_skia,VentureROM-L/android_external_skia,boulzordev/android_external_skia,ench0/external_skia,chenlian2015/skia_from_google,codeaurora-unoffical/platform-external-skia,TeslaProject/external_skia,AOSPB/external_skia,Infinitive-OS/platform_external_skia,temasek/android_external_skia,zhaochengw/platform_external_skia,Fusion-Rom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,shahrzadmn/skia,fire855/android_external_skia,Igalia/skia,sombree/android_external_skia,aospo/platform_external_skia,boulzordev/android_external_skia,AOSPU/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,pacerom/external_skia,TeamTwisted/external_skia,mydongistiny/android_external_skia,Euphoria-OS-Legacy/android_external_skia,OptiPop/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,TeamTwisted/external_skia,geekboxzone/mmallow_external_skia,TeamEOS/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,scroggo/skia,MinimalOS/external_skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,amyvmiwei/skia,Infusion-OS/android_external_skia,RadonX-ROM/external_skia,TeamTwisted/external_skia,boulzordev/android_external_skia,mmatyas/skia,Khaon/android_external_skia,aospo/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,ominux/skia,zhaochengw/platform_external_skia,AsteroidOS/android_external_skia,UBERMALLOW/external_skia,VentureROM-L/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,MIPS/external-chromium_org-third_party-skia,vanish87/skia,OptiPop/external_chromium_org_third_party_skia,Jichao/skia,TeamTwisted/external_skia,nvoron23/skia,RadonX-ROM/external_skia,TeamBliss-LP/android_external_skia,zhaochengw/platform_external_skia,boulzordev/android_external_skia,ctiao/platform-external-skia,DiamondLovesYou/skia-sys,Hybrid-Rom/external_skia,Omegaphora/external_chromium_org_third_party_skia,temasek/android_external_skia,Android-AOSP/external_skia,Purity-Lollipop/platform_external_skia,mmatyas/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,wildermason/external_skia,vvuk/skia,MinimalOS/android_external_skia,shahrzadmn/skia,shahrzadmn/skia,TeslaOS/android_external_skia,MinimalOS/external_skia,MinimalOS/external_skia,android-ia/platform_external_skia,Omegaphora/external_chromium_org_third_party_skia,vvuk/skia,TeamExodus/external_skia,Khaon/android_external_skia,Plain-Andy/android_platform_external_skia,ench0/external_skia,MinimalOS/external_skia,Euphoria-OS-Legacy/android_external_skia,BrokenROM/external_skia,MonkeyZZZZ/platform_external_skia,MarshedOut/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,xin3liang/platform_external_chromium_org_third_party_skia,mozilla-b2g/external_skia,vanish87/skia,VRToxin-AOSP/android_external_skia,Khaon/android_external_skia,samuelig/skia,FusionSP/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,GladeRom/android_external_skia,noselhq/skia,AOSPU/external_chromium_org_third_party_skia,AOSPA-L/android_external_skia,vanish87/skia,rubenvb/skia,pcwalton/skia,AOSPA-L/android_external_skia,w3nd1go/android_external_skia,larsbergstrom/skia,InfinitiveOS/external_skia,DARKPOP/external_chromium_org_third_party_skia,vanish87/skia,VentureROM-L/android_external_skia,VRToxin-AOSP/android_external_skia,Hybrid-Rom/external_skia,scroggo/skia,spezi77/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,Omegaphora/external_skia,MyAOSP/external_chromium_org_third_party_skia,byterom/android_external_skia,vvuk/skia,samuelig/skia,sudosurootdev/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,akiss77/skia,sigysmund/platform_external_skia,Pure-Aosp/android_external_skia,spezi77/android_external_skia,Android-AOSP/external_skia,ctiao/platform-external-skia,google/skia,samuelig/skia,GladeRom/android_external_skia,Jichao/skia,mydongistiny/android_external_skia,Purity-Lollipop/platform_external_skia,MinimalOS/android_external_skia,VentureROM-L/android_external_skia,OptiPop/external_skia,Infinitive-OS/platform_external_skia,UBERMALLOW/external_skia,nfxosp/platform_external_skia,AOSPB/external_skia,TeamExodus/external_skia,FusionSP/android_external_skia,byterom/android_external_skia,RadonX-ROM/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,zhaochengw/platform_external_skia,ench0/external_chromium_org_third_party_skia,OptiPop/external_skia,BrokenROM/external_skia,Igalia/skia,android-ia/platform_external_chromium_org_third_party_skia,TeamEOS/external_skia,sudosurootdev/external_skia,todotodoo/skia,larsbergstrom/skia,AOSP-YU/platform_external_skia,Tesla-Redux/android_external_skia,geekboxzone/mmallow_external_skia,noselhq/skia,mozilla-b2g/external_skia,RadonX-ROM/external_skia,xzzz9097/android_external_skia,ench0/external_skia,AOSPU/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,OptiPop/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,OneRom/external_skia,mydongistiny/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,SlimSaber/android_external_skia,scroggo/skia,Android-AOSP/external_skia,Samsung/skia,FusionSP/external_chromium_org_third_party_skia,TeamExodus/external_skia,NamelessRom/android_external_skia,TeamExodus/external_skia,pcwalton/skia,Hybrid-Rom/external_skia,akiss77/skia,MarshedOut/android_external_skia,VentureROM-L/android_external_skia,TeslaOS/android_external_skia,w3nd1go/android_external_skia,HealthyHoney/temasek_SKIA,google/skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,OneRom/external_skia,Khaon/android_external_skia,Igalia/skia,xin3liang/platform_external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,UBERMALLOW/external_skia,timduru/platform-external-skia,Infusion-OS/android_external_skia,TeamBliss-LP/android_external_skia,jtg-gg/skia,android-ia/platform_external_skia,nfxosp/platform_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,OneRom/external_skia,Hikari-no-Tenshi/android_external_skia,Samsung/skia,DARKPOP/external_chromium_org_third_party_skia,OptiPop/external_skia,akiss77/skia,AOSP-YU/platform_external_skia,pacerom/external_skia,w3nd1go/android_external_skia,AsteroidOS/android_external_skia,mydongistiny/android_external_skia,w3nd1go/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,w3nd1go/android_external_skia,android-ia/platform_external_skia,Samsung/skia,MonkeyZZZZ/platform_external_skia,OptiPop/external_skia,amyvmiwei/skia,tmpvar/skia.cc,AsteroidOS/android_external_skia,FusionSP/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,google/skia,TeslaOS/android_external_skia,tmpvar/skia.cc,geekboxzone/lollipop_external_skia,VentureROM-L/android_external_skia,TeamExodus/external_skia,SlimSaber/android_external_skia,invisiblek/android_external_skia,sombree/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,ctiao/platform-external-skia,Omegaphora/external_chromium_org_third_party_skia,AOSPB/external_skia,AOSPB/external_skia,MyAOSP/external_chromium_org_third_party_skia,AsteroidOS/android_external_skia,tmpvar/skia.cc,ench0/external_skia,Samsung/skia,Fusion-Rom/android_external_skia,Tesla-Redux/android_external_skia,amyvmiwei/skia,xzzz9097/android_external_skia,vvuk/skia,DARKPOP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,RadonX-ROM/external_skia,aosp-mirror/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,Fusion-Rom/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,boulzordev/android_external_skia,Khaon/android_external_skia,temasek/android_external_skia,mmatyas/skia,MyAOSP/external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,Asteroid-Project/android_external_skia,spezi77/android_external_skia,InfinitiveOS/external_skia,aosp-mirror/platform_external_skia,boulzordev/android_external_skia,ominux/skia,Jichao/skia,xin3liang/platform_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,mozilla-b2g/external_skia,pcwalton/skia,vvuk/skia,ominux/skia,Android-AOSP/external_skia,larsbergstrom/skia,AOSP-YU/platform_external_skia,AOSPB/external_skia,Purity-Lollipop/platform_external_skia,MonkeyZZZZ/platform_external_skia,aospo/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,pcwalton/skia,wildermason/external_skia,UBERMALLOW/external_skia,RadonX-ROM/external_skia,AsteroidOS/android_external_skia,HealthyHoney/temasek_SKIA,chenlian2015/skia_from_google,Asteroid-Project/android_external_skia,byterom/android_external_skia,suyouxin/android_external_skia,GladeRom/android_external_skia,timduru/platform-external-skia,Hybrid-Rom/external_skia,TeslaOS/android_external_skia,mmatyas/skia,MarshedOut/android_external_skia,MarshedOut/android_external_skia,F-AOSP/platform_external_skia,Hikari-no-Tenshi/android_external_skia,NamelessRom/android_external_skia,byterom/android_external_skia,wildermason/external_skia,rubenvb/skia,AOSP-YU/platform_external_skia,sigysmund/platform_external_skia,xzzz9097/android_external_skia,suyouxin/android_external_skia,invisiblek/android_external_skia,qrealka/skia-hc,GladeRom/android_external_skia,sigysmund/platform_external_skia,HalCanary/skia-hc,Fusion-Rom/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,DesolationStaging/android_external_skia,Infusion-OS/android_external_skia,Plain-Andy/android_platform_external_skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_skia,aosp-mirror/platform_external_skia,fire855/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,google/skia,AOSPA-L/android_external_skia,SlimSaber/android_external_skia,NamelessRom/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,akiss77/skia,wildermason/external_skia,F-AOSP/platform_external_skia,sombree/android_external_skia,VentureROM-L/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,larsbergstrom/skia,HalCanary/skia-hc,PAC-ROM/android_external_skia,TeamExodus/external_skia,scroggo/skia,rubenvb/skia,ominux/skia,aospo/platform_external_skia,codeaurora-unoffical/platform-external-skia,TeslaOS/android_external_skia,HealthyHoney/temasek_SKIA,MinimalOS/external_skia,Omegaphora/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,todotodoo/skia,rubenvb/skia,wildermason/external_skia,mmatyas/skia,PAC-ROM/android_external_skia,HalCanary/skia-hc,DARKPOP/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,OneRom/external_skia,Asteroid-Project/android_external_skia,MIPS/external-chromium_org-third_party-skia,Jichao/skia,pacerom/external_skia,MinimalOS-AOSP/platform_external_skia,noselhq/skia,TeamExodus/external_skia,MinimalOS/android_external_skia,ench0/external_skia,Infinitive-OS/platform_external_skia,todotodoo/skia,DesolationStaging/android_external_skia,Omegaphora/external_skia,invisiblek/android_external_skia,BrokenROM/external_skia,nox/skia,xzzz9097/android_external_skia,akiss77/skia,noselhq/skia,mydongistiny/external_chromium_org_third_party_skia,tmpvar/skia.cc,F-AOSP/platform_external_skia,BrokenROM/external_skia,AOSPU/external_chromium_org_third_party_skia,timduru/platform-external-skia,mozilla-b2g/external_skia,larsbergstrom/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,houst0nn/external_skia,TeamBliss-LP/android_external_skia,Infusion-OS/android_external_skia,DiamondLovesYou/skia-sys,wildermason/external_skia,MarshedOut/android_external_skia,google/skia,nox/skia,AndroidOpenDevelopment/android_external_skia,nvoron23/skia,MinimalOS/android_external_skia,vvuk/skia,MinimalOS/android_external_chromium_org_third_party_skia,mmatyas/skia,Samsung/skia,chenlian2015/skia_from_google,Plain-Andy/android_platform_external_skia,mydongistiny/android_external_skia,ench0/external_chromium_org_third_party_skia,nvoron23/skia,aosp-mirror/platform_external_skia,Samsung/skia,PAC-ROM/android_external_skia,scroggo/skia,Omegaphora/external_skia,nvoron23/skia,sombree/android_external_skia,AOSP-YU/platform_external_skia,HealthyHoney/temasek_SKIA,Fusion-Rom/android_external_skia,MIPS/external-chromium_org-third_party-skia,ench0/external_chromium_org_third_party_skia,tmpvar/skia.cc,geekboxzone/mmallow_external_skia,zhaochengw/platform_external_skia,codeaurora-unoffical/platform-external-skia,DiamondLovesYou/skia-sys,PAC-ROM/android_external_skia,samuelig/skia,vanish87/skia,tmpvar/skia.cc,samuelig/skia,MinimalOS/android_external_chromium_org_third_party_skia,Euphoria-OS-Legacy/android_external_skia,PAC-ROM/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,ominux/skia,Plain-Andy/android_platform_external_skia,sudosurootdev/external_skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_skia,jtg-gg/skia,InfinitiveOS/external_skia,SlimSaber/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,invisiblek/android_external_skia,todotodoo/skia,qrealka/skia-hc,sudosurootdev/external_skia,android-ia/platform_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,codeaurora-unoffical/platform-external-skia,RadonX-ROM/external_skia,temasek/android_external_skia,geekboxzone/mmallow_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,qrealka/skia-hc,vanish87/skia,InfinitiveOS/external_skia,MinimalOS-AOSP/platform_external_skia,shahrzadmn/skia,mmatyas/skia,UBERMALLOW/external_skia,Fusion-Rom/android_external_skia,BrokenROM/external_skia,AsteroidOS/android_external_skia,MinimalOS/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,google/skia,sigysmund/platform_external_skia,HealthyHoney/temasek_SKIA,CyanogenMod/android_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,MyAOSP/external_chromium_org_third_party_skia,akiss77/skia,nfxosp/platform_external_skia,TeamExodus/external_skia,TeamEOS/external_skia,DARKPOP/external_chromium_org_third_party_skia,akiss77/skia,Khaon/android_external_skia,scroggo/skia,temasek/android_external_skia,fire855/android_external_skia,HealthyHoney/temasek_SKIA,mydongistiny/external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,shahrzadmn/skia,invisiblek/android_external_skia,OneRom/external_skia,F-AOSP/platform_external_skia,mozilla-b2g/external_skia,geekboxzone/mmallow_external_skia,FusionSP/external_chromium_org_third_party_skia,BrokenROM/external_skia,spezi77/android_external_skia,Igalia/skia,qrealka/skia-hc,Fusion-Rom/android_external_skia,houst0nn/external_skia,Pure-Aosp/android_external_skia,MonkeyZZZZ/platform_external_skia,MinimalOS/android_external_skia,scroggo/skia,HealthyHoney/temasek_SKIA,UBERMALLOW/external_skia,Purity-Lollipop/platform_external_skia,AndroidOpenDevelopment/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,HealthyHoney/temasek_SKIA,AOSP-YU/platform_external_skia,rubenvb/skia,android-ia/platform_external_chromium_org_third_party_skia,nox/skia,Android-AOSP/external_skia,shahrzadmn/skia,Fusion-Rom/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,Omegaphora/external_skia,YUPlayGodDev/platform_external_skia,nvoron23/skia,geekboxzone/mmallow_external_skia,DesolationStaging/android_external_skia,rubenvb/skia,MinimalOS/external_chromium_org_third_party_skia,mozilla-b2g/external_skia,shahrzadmn/skia,MinimalOS/android_external_chromium_org_third_party_skia,MinimalOS/external_skia,pacerom/external_skia,AOSPU/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,invisiblek/android_external_skia,spezi77/android_external_skia,DesolationStaging/android_external_skia,TeslaProject/external_skia,Asteroid-Project/android_external_skia,akiss77/skia,noselhq/skia |
b61ed65f563d19845a48554353ce46d79a39d44e | kode/kwsdl/wsdl/element.h | kode/kwsdl/wsdl/element.h | /*
This file is part of KDE.
Copyright (c) 2005 Tobias Koenig <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KWSDL_ELEMENT_H
#define KWSDL_ELEMENT_H
#include <QString>
namespace KWSDL {
class Element
{
public:
Element();
Element( const QString &nameSpace );
~Element();
void setNameSpace( const QString &nameSpace );
QString nameSpace() const;
void setDocumentation( const QString &documentation );
QString documentation() const;
private:
QString mNameSpace;
QString mDocumentation;
};
}
#endif // KWSDL_ELEMENT_H
| /*
This file is part of KDE.
Copyright (c) 2005 Tobias Koenig <[email protected]>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KWSDL_ELEMENT_H
#define KWSDL_ELEMENT_H
#include <QString>
#include <kode_export.h>
namespace KWSDL {
class KWSDL_EXPORT Element
{
public:
Element();
Element( const QString &nameSpace );
~Element();
void setNameSpace( const QString &nameSpace );
QString nameSpace() const;
void setDocumentation( const QString &documentation );
QString documentation() const;
private:
QString mNameSpace;
QString mDocumentation;
};
}
#endif // KWSDL_ELEMENT_H
| Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721 | Fix knode compilation on NetBSD.
Patch by Mark Davies, thanks.
BUG: 154721
svn path=/trunk/KDE/kdepim/; revision=753595
| C | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
dfeaa08d905e605519683cb85d25976264941d61 | tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c | tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c | #include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&B);
pthread_mutex_unlock(&B);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_join(id, NULL);
return 0;
}
| #include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_join(id, NULL);
return 0;
}
| Remove now somehow unnecessary empty mutex B section from 13/32 | Remove now somehow unnecessary empty mutex B section from 13/32
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
163393732a9a781b6b057c39ee6b1e0c96b9d199 | lib/Target/PowerPC/PPC32JITInfo.h | lib/Target/PowerPC/PPC32JITInfo.h | //===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the PowerPC implementation of the TargetJITInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef POWERPC_DARWIN_JITINFO_H
#define POWERPC_DARWIN_JITINFO_H
#include "PowerPCJITInfo.h"
namespace llvm {
class TargetMachine;
class IntrinsicLowering;
class PPC32JITInfo : public PowerPCJITInfo {
public:
PPC32JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
/// overwriting OLD with a branch to NEW. This is used for self-modifying
/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
};
}
#endif
| //===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the PowerPC implementation of the TargetJITInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef POWERPC_DARWIN_JITINFO_H
#define POWERPC_DARWIN_JITINFO_H
#include "PowerPCJITInfo.h"
namespace llvm {
class TargetMachine;
class IntrinsicLowering;
class PPC32JITInfo : public PowerPCJITInfo {
public:
PPC32JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}
virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
virtual void relocate(void *Function, MachineRelocation *MR,
unsigned NumRelocs);
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
/// overwriting OLD with a branch to NEW. This is used for self-modifying
/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
};
}
#endif
| Implement all of the methods | Implement all of the methods
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18142 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm |
1dd166ddec4d0fa72c42101adf4b89d734a332de | lib/lists/includes/list_commons.h | lib/lists/includes/list_commons.h | #ifndef _LIBADT_LIST_COMMONS_H
#define _LIBADT_LIST_COMMONS_H
typedef void (*t_destroyfunc)(void *data);
enum list_insert_el_mode {
HEAD,
TAIL
};
typedef struct _list_root list_root;
typedef struct _list_node list_node;
struct _list_node;
struct _list_root {
int size; // Size of the list structure.
t_destroyfunc destroyfunc;
list_node *head; // Position from where we start walking the list.
list_node *tail; // Last item on the list.
enum list_insert_el_mode mode;
};
/*
* Returns the size of the list.
*/
#define list_size(list) ((list) ->size)
#endif /* _LIBADT_LIST_COMMONS_H */
| Rename to reflect the list situation of this header | Rename to reflect the list situation of this header
| C | mit | vndmtrx/libadt |
|
730fae1f1d85b3fbe5c7cc35d89011228e441147 | lib/objpipe/include/monsoon/objpipe/doc_.h | lib/objpipe/include/monsoon/objpipe/doc_.h | // Document groups and namespaces.
///\defgroup objpipe Object Pipes.
/**
* \defgroup objpipe_errors Object pipe error handling.
* \ingroup objpipe
*/
/**
* \defgroup objpipe_detail Object pipe implementation details.
* \ingroup objpipe
*/
namespace monsooon {
/**
* \brief Namespace for object pipes.
*
* Object pipes are queues that move objects from one context to another.
* In addition, they allow filtering and transformations.
* \ingroup objpipe
*/
namespace objpipe {
/**
* \brief Namespace for object pipe implementation details.
* \ingroup objpipe_detail
*/
namespace detail {
}}} /* monsoon::objpipe::detail */
| // Document groups and namespaces.
///\defgroup objpipe Object Pipes
/**
* \defgroup objpipe_errors Object pipe error handling
* \ingroup objpipe
*/
/**
* \defgroup objpipe_detail Object pipe implementation details
* \ingroup objpipe
*/
namespace monsooon {
/**
* \brief Namespace for object pipes.
*
* Object pipes are queues that move objects from one context to another.
* In addition, they allow filtering and transformations.
* \ingroup objpipe
*/
namespace objpipe {
/**
* \brief Namespace for object pipe implementation details.
* \ingroup objpipe_detail
*/
namespace detail {
}}} /* monsoon::objpipe::detail */
| Remove trailing dots in group definitions. | Remove trailing dots in group definitions.
| C | bsd-2-clause | nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus |
25910be18da219c4a5a6cd292e25eb8b1dd147ed | ipxe/local/general.h | ipxe/local/general.h | #define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define VLAN_CMD /* VLAN commands */
| #define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define IMAGE_TRUST_CMD /* Image trust management commands */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define VLAN_CMD /* VLAN commands */
| Add support for image trust commands | Add support for image trust commands
| C | apache-2.0 | antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz,Dedsec1/netboot.xyz |
d377fe80b1396b82f8af7bfcd76f869410865001 | tests-clar/attr/attr_expect.h | tests-clar/attr/attr_expect.h | #ifndef __CLAR_TEST_ATTR_EXPECT__
#define __CLAR_TEST_ATTR_EXPECT__
enum attr_expect_t {
EXPECT_FALSE,
EXPECT_TRUE,
EXPECT_UNDEFINED,
EXPECT_STRING
};
struct attr_expected {
const char *path;
const char *attr;
enum attr_expect_t expected;
const char *expected_str;
};
static inline void attr_check_expected(
enum attr_expect_t expected,
const char *expected_str,
const char *value)
{
switch (expected) {
case EXPECT_TRUE:
cl_assert(GIT_ATTR_TRUE(value));
break;
case EXPECT_FALSE:
cl_assert(GIT_ATTR_FALSE(value));
break;
case EXPECT_UNDEFINED:
cl_assert(GIT_ATTR_UNSPECIFIED(value));
break;
case EXPECT_STRING:
cl_assert_strequal(expected_str, value);
break;
}
}
#endif
| Add missing header to test suite | attr: Add missing header to test suite
| C | lgpl-2.1 | yongthecoder/libgit2,mingyaaaa/libgit2,skabel/manguse,Aorjoa/libgit2_maked_lib,zodiac/libgit2.js,t0xicCode/libgit2,mingyaaaa/libgit2,rcorre/libgit2,yongthecoder/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,kissthink/libgit2,oaastest/libgit2,mrksrm/Mingijura,swisspol/DEMO-libgit2,jflesch/libgit2-mariadb,joshtriplett/libgit2,sygool/libgit2,nokiddin/libgit2,ardumont/libgit2,since2014/libgit2,JIghtuse/libgit2,nacho/libgit2,oaastest/libgit2,linquize/libgit2,mcanthony/libgit2,Tousiph/Demo1,mingyaaaa/libgit2,jeffhostetler/public_libgit2,stewid/libgit2,Aorjoa/libgit2_maked_lib,skabel/manguse,jflesch/libgit2-mariadb,swisspol/DEMO-libgit2,claudelee/libgit2,ardumont/libgit2,iankronquist/libgit2,chiayolin/libgit2,KTXSoftware/libgit2,mhp/libgit2,ardumont/libgit2,kissthink/libgit2,mcanthony/libgit2,oaastest/libgit2,sim0629/libgit2,MrHacky/libgit2,kissthink/libgit2,jamieleecool/ptest,JIghtuse/libgit2,zodiac/libgit2.js,Corillian/libgit2,Aorjoa/libgit2_maked_lib,ardumont/libgit2,spraints/libgit2,claudelee/libgit2,skabel/manguse,whoisj/libgit2,oaastest/libgit2,mingyaaaa/libgit2,chiayolin/libgit2,magnus98/TEST,iankronquist/libgit2,stewid/libgit2,dleehr/libgit2,stewid/libgit2,amyvmiwei/libgit2,Snazz2001/libgit2,Corillian/libgit2,kenprice/libgit2,raybrad/libit2,t0xicCode/libgit2,swisspol/DEMO-libgit2,sygool/libgit2,ardumont/libgit2,mrksrm/Mingijura,magnus98/TEST,zodiac/libgit2.js,yosefhackmon/libgit2,mcanthony/libgit2,rcorre/libgit2,saurabhsuniljain/libgit2,dleehr/libgit2,maxiaoqian/libgit2,JIghtuse/libgit2,joshtriplett/libgit2,amyvmiwei/libgit2,mrksrm/Mingijura,claudelee/libgit2,nacho/libgit2,jflesch/libgit2-mariadb,yongthecoder/libgit2,magnus98/TEST,claudelee/libgit2,mcanthony/libgit2,MrHacky/libgit2,jamieleecool/ptest,maxiaoqian/libgit2,jamieleecool/ptest,yosefhackmon/libgit2,falqas/libgit2,leoyanggit/libgit2,mcanthony/libgit2,falqas/libgit2,MrHacky/libgit2,mhp/libgit2,iankronquist/libgit2,kenprice/libgit2,oaastest/libgit2,skabel/manguse,maxiaoqian/libgit2,JIghtuse/libgit2,zodiac/libgit2.js,kissthink/libgit2,stewid/libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,swisspol/DEMO-libgit2,jeffhostetler/public_libgit2,linquize/libgit2,Corillian/libgit2,oaastest/libgit2,chiayolin/libgit2,MrHacky/libgit2,iankronquist/libgit2,jamieleecool/ptest,Tousiph/Demo1,Corillian/libgit2,kissthink/libgit2,Snazz2001/libgit2,spraints/libgit2,nokiddin/libgit2,yongthecoder/libgit2,Tousiph/Demo1,joshtriplett/libgit2,since2014/libgit2,mrksrm/Mingijura,nokiddin/libgit2,swisspol/DEMO-libgit2,chiayolin/libgit2,chiayolin/libgit2,Tousiph/Demo1,falqas/libgit2,rcorre/libgit2,evhan/libgit2,yosefhackmon/libgit2,jflesch/libgit2-mariadb,KTXSoftware/libgit2,raybrad/libit2,saurabhsuniljain/libgit2,claudelee/libgit2,whoisj/libgit2,JIghtuse/libgit2,rcorre/libgit2,mhp/libgit2,skabel/manguse,zodiac/libgit2.js,maxiaoqian/libgit2,saurabhsuniljain/libgit2,nokiddin/libgit2,JIghtuse/libgit2,whoisj/libgit2,kenprice/libgit2,Snazz2001/libgit2,KTXSoftware/libgit2,sim0629/libgit2,Tousiph/Demo1,spraints/libgit2,jeffhostetler/public_libgit2,sygool/libgit2,yongthecoder/libgit2,since2014/libgit2,skabel/manguse,Tousiph/Demo1,raybrad/libit2,MrHacky/libgit2,Corillian/libgit2,jeffhostetler/public_libgit2,maxiaoqian/libgit2,jeffhostetler/public_libgit2,kenprice/libgit2,spraints/libgit2,spraints/libgit2,KTXSoftware/libgit2,mcanthony/libgit2,saurabhsuniljain/libgit2,t0xicCode/libgit2,joshtriplett/libgit2,dleehr/libgit2,MrHacky/libgit2,since2014/libgit2,yosefhackmon/libgit2,Snazz2001/libgit2,joshtriplett/libgit2,evhan/libgit2,claudelee/libgit2,stewid/libgit2,nacho/libgit2,magnus98/TEST,saurabhsuniljain/libgit2,mingyaaaa/libgit2,chiayolin/libgit2,kenprice/libgit2,leoyanggit/libgit2,amyvmiwei/libgit2,amyvmiwei/libgit2,mhp/libgit2,mingyaaaa/libgit2,stewid/libgit2,whoisj/libgit2,sim0629/libgit2,mrksrm/Mingijura,rcorre/libgit2,since2014/libgit2,leoyanggit/libgit2,yosefhackmon/libgit2,sim0629/libgit2,linquize/libgit2,KTXSoftware/libgit2,yosefhackmon/libgit2,KTXSoftware/libgit2,amyvmiwei/libgit2,jeffhostetler/public_libgit2,dleehr/libgit2,Aorjoa/libgit2_maked_lib,Snazz2001/libgit2,raybrad/libit2,magnus98/TEST,iankronquist/libgit2,linquize/libgit2,leoyanggit/libgit2,sygool/libgit2,falqas/libgit2,Aorjoa/libgit2_maked_lib,leoyanggit/libgit2,sim0629/libgit2,since2014/libgit2,sygool/libgit2,t0xicCode/libgit2,nacho/libgit2,mrksrm/Mingijura,Snazz2001/libgit2,kissthink/libgit2,swisspol/DEMO-libgit2,jflesch/libgit2-mariadb,nokiddin/libgit2,magnus98/TEST,nokiddin/libgit2,whoisj/libgit2,leoyanggit/libgit2,kenprice/libgit2,sygool/libgit2,evhan/libgit2,rcorre/libgit2,spraints/libgit2,whoisj/libgit2,mhp/libgit2,mhp/libgit2,linquize/libgit2,joshtriplett/libgit2,dleehr/libgit2,dleehr/libgit2,yongthecoder/libgit2,amyvmiwei/libgit2,linquize/libgit2,t0xicCode/libgit2,evhan/libgit2,ardumont/libgit2,falqas/libgit2,jflesch/libgit2-mariadb,falqas/libgit2,raybrad/libit2,iankronquist/libgit2,sim0629/libgit2 |
|
8b013deb4e9cd4130ece436909878b7ec7d90a60 | src/shared/platform/win/nacl_exit.c | src/shared/platform/win/nacl_exit.c | /*
* Copyright 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include <stdlib.h>
#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
#include "native_client/src/trusted/service_runtime/nacl_signal.h"
void NaClAbort(void) {
NaClExit(-SIGABRT);
}
void NaClExit(int err_code) {
#ifdef COVERAGE
/* Give coverage runs a chance to flush coverage data */
exit(err_code);
#else
/* If the process is scheduled for termination, wait for it.*/
if (TerminateProcess(GetCurrentProcess(), err_code)) {
printf("Terminate passed, but returned.\n");
while(1);
}
printf("Terminate failed with %d.\n", GetLastError());
/* Otherwise use the standard C process exit to bybass destructors. */
ExitProcess(err_code);
#endif
}
| /*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* be found in the LICENSE file.
*/
#include <stdlib.h>
#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
#include "native_client/src/trusted/service_runtime/nacl_signal.h"
void NaClAbort(void) {
NaClExit(-SIGABRT);
}
void NaClExit(int err_code) {
#ifdef COVERAGE
/* Give coverage runs a chance to flush coverage data */
exit(err_code);
#else
/* If the process is scheduled for termination, wait for it.*/
if (TerminateProcess(GetCurrentProcess(), err_code)) {
while(1);
}
/* Otherwise use the standard C process exit to bybass destructors. */
ExitProcess(err_code);
#endif
}
| Remove printfs in exit path | Remove printfs in exit path
Due to failures in Win7Atom I added printfs for debugging. This CL removes the printfs which should
not be in the shipping code.
TEST= all
BUG= nacl1561
Review URL: http://codereview.chromium.org/6825057
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@4846 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
| C | bsd-3-clause | nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client |
f31ae20e998e8a456632cc3e96ba20c9e7ae1b12 | ext/fancy_math.c | ext/fancy_math.c | #include <ruby.h>
#include "add.h"
static VALUE call_add(VALUE rb_self, VALUE rb_a, VALUE rb_b) {
// Convert ruby values to C integers
int a = FIX2INT(rb_a);
int b = FIX2INT(rb_b);
// Call C function
int result = add(a, b);
// Convert C integer into ruby value and return it
VALUE rb_result = INT2FIX(result);
return rb_result;
}
// Function must be named Init_<gem name>"
int Init_fancy_math() {
// Create new module to contain our method
VALUE rb_module = rb_define_module("FancyMath");
// Add the C method to the FancyMath module
rb_define_module_function(rb_module, "add", call_add, 2);
// Initialization complete and successful
return 0;
}
| Create core FancyMath module and add hooks for ruby to access the C logic | Create core FancyMath module and add hooks for ruby to access the C logic
| C | mit | drosholt/fancy_math,drosholt/fancy_math,drosholt/fancy_math,drosholt/fancy_math |
|
ac39ed3a80fd71af70de0222a9dd1545f4d59dea | implementation/Cuda/lbm_sailfish_hist/sim.h | implementation/Cuda/lbm_sailfish_hist/sim.h | #ifndef __SIM_H_
#define __SIM_H_ 1
#define GEO_FLUID 0
#define GEO_WALL 1
#define GEO_INFLOW 2
#define LAT_H 180
#define LAT_W 420
#define BLOCK_SIZE 64
struct Dist {
float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW;
};
struct SimState {
int *map, *dmap;
// macroscopic quantities on the video card
float *dvx, *dvy, *drho;
// macroscopic quantities in RAM
float *vx, *vy, *rho;
float *lat[9];
Dist d1, d2;
};
void SimInit(struct SimState *state);
void SimCleanup(struct SimState *state);
void SimUpdate(int iter, struct SimState state);
void SimUpdateMap(struct SimState state);
#endif /* __SIM_H_ */
| #ifndef __SIM_H_
#define __SIM_H_ 1
#define GEO_FLUID 0
#define GEO_WALL 1
#define GEO_INFLOW 2
#define LAT_H 180
#define LAT_W 420
#define BLOCK_SIZE 64
#ifdef USE_FLOATS
#define double float
#define __dadd_rn __fadd_rn
#define __dmul_rn __fmul_rn
#else
#define float double
#define __fadd_rn __dadd_rn
#define __fmul_rn __dmul_rn
#endif
struct Dist {
float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW;
};
struct SimState {
int *map, *dmap;
// macroscopic quantities on the video card
float *dvx, *dvy, *drho;
// macroscopic quantities in RAM
float *vx, *vy, *rho;
float *lat[9];
Dist d1, d2;
};
void SimInit(struct SimState *state);
void SimCleanup(struct SimState *state);
void SimUpdate(int iter, struct SimState state);
void SimUpdateMap(struct SimState state);
#endif /* __SIM_H_ */
| Use doubles instead of floats ny default | Use doubles instead of floats ny default
| C | mit | Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis |
edef395077a75fd7137031a3ab83f8d1118dbb51 | MySQL/HelloWorld/src/mysql-c-api.c | MySQL/HelloWorld/src/mysql-c-api.c | /* http://zetcode.com/db/mysqlc/ */
/* http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html */
#include <mysql.h>
#include <stdio.h>
main(){
MYSQL *conn;
MYSQL_RES *res;
MYSQL_ROW row;
char *server = "localhost";
char *user = "sa";
char *password = "developsa"; /* set me first */
char *database = "mysql";
conn = mysql_init(NULL);
/* Connect to database */
if (!mysql_real_connect(conn, server,
user, password, database, 0, NULL, 0)) {
fprintf(stderr, "%s\n", mysql_error(conn));
exit(1);
}
/* send SQL query */
if (mysql_query(conn, "show tables")) {
fprintf(stderr, "%s\n", mysql_error(conn));
exit(1);
}
res = mysql_use_result(conn);
/* output table name */
printf("MySQL Tables in mysql database:\n");
while ((row = mysql_fetch_row(res)) != NULL)
printf("%s \n", row[0]);
/* close connection */
mysql_free_result(res);
mysql_close(conn);
} | Add C 'Hello World' for connect to MySQL | Add C 'Hello World' for connect to MySQL
| C | mit | xatienza/c-labs |
|
729361e8dc2b79aee6c185a112b30fc0c99529ed | You-DataStore/internal/operation.h | You-DataStore/internal/operation.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
namespace You {
namespace DataStore {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
virtual ~IOperation();
/// Executes the operation
virtual bool run() = 0;
protected:
TaskId taskId;
SerializedTask task;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_OPERATION_H_
| #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
namespace You {
namespace DataStore {
namespace Internal {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
virtual ~IOperation();
/// Executes the operation
virtual bool run() = 0;
protected:
TaskId taskId;
SerializedTask task;
};
} // namespace Internal
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_OPERATION_H_
| Move IOperation to Internal namespace | Move IOperation to Internal namespace
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
f1e2ac78eaa187d1ceabbb70883b2b9458580877 | rest-extras/test-runner.c | rest-extras/test-runner.c | /*
* librest - RESTful web services access
* Copyright (C) 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <config.h>
#include <glib-object.h>
#define test_add(unit_name, func) G_STMT_START { \
extern void func (void); \
g_test_add_func (unit_name, func); } G_STMT_END
int
main (int argc, char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
test_add ("/flickr/error", test_flickr_error);
return g_test_run ();
}
| /*
* librest - RESTful web services access
* Copyright (C) 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <config.h>
#include <glib-object.h>
#define test_add(unit_name, func) G_STMT_START { \
extern void func (void); \
g_test_add_func (unit_name, func); } G_STMT_END
int
main (int argc, char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
test_add ("/flickr/error", test_flickr_error);
test_add ("/lastfm/error", test_flickr_error);
return g_test_run ();
}
| Add lastfm error handling to the test suite | Add lastfm error handling to the test suite
| C | lgpl-2.1 | GNOME/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,GNOME/librest,GNOME/librest |
d7c9c58c7ef0b29fe6eb8c500e594aa99fbfdfef | security/nss/macbuild/NSSCommon.h | security/nss/macbuild/NSSCommon.h | /* Defines common to all versions of NSS */
#define NSPR20 1
| /* Defines common to all versions of NSS */
#define NSPR20 1
#define MP_API_COMPATIBLE 1
| Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly. | Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build
correctly.
| C | mpl-2.0 | nmav/nss,nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,nmav/nss |
753e1d55744ab3e79fa79612fc907e267521fbc4 | problem_5/solution.c | problem_5/solution.c | #include <stdio.h>
#define LIST_SIZE 20
unsigned long mdc(unsigned long a, unsigned long b){
unsigned long mod;
mod = a % b;
while(mod != 0){
a = b;
b = mod;
mod = a % b;
}
return b;
}
unsigned long mmc(unsigned long a, unsigned long b){
unsigned long r = a * b / mdc(a, b);
return r;
}
unsigned long reduce(unsigned long (*f)(unsigned long, unsigned long), unsigned long *list){
int i, next_item_pos;
unsigned long result, item;
result = (*f)((*list + 0), (*list + 1));
next_item_pos = 2;
for(i = 0; i < LIST_SIZE && next_item_pos < LIST_SIZE; i++){
item = (*list + next_item_pos);
result = (*f)(result, item);
next_item_pos++;
}
return result;
}
int main(int argc, char *argv[]){
int i, highest_number;
unsigned long l[LIST_SIZE];
unsigned long *list;
highest_number = 0;
for(i = 0; i < LIST_SIZE; i++){
l[i] = i+1;
}
list = l;
printf("%ld\n", reduce(mmc, list));
return 0;
}
| Add C implementation for problem 5 | Add C implementation for problem 5
| C | mit | mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler,mdsrosa/project_euler |
|
7c5ab46059bd8fa8bc1649a8dd6073161e703f9e | src/plat/win32/win32commandline.h | src/plat/win32/win32commandline.h |
#ifndef __win32commandline_h__
#define __win32commandline_h__
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <assert.h>
#include "..\..\commandline.h"
class CWin32CommandLine : public CCommandLine
{
public:
CWin32CommandLine();
~CWin32CommandLine();
public:
virtual LispInt GetKey();
void ReadLineSub(const LispChar * prompt);
virtual void NewLine();
virtual void ShowLine(const LispChar * prompt,LispInt promptlen,LispInt cursor);
virtual void Pause();
// new functionality
void color_print(const LispChar * str, WORD text_attrib);
void color_read(LispChar * str, WORD text_attrib);
protected:
void ShowLine();
const LispChar * iLastPrompt;
private:
HANDLE out_console;
HANDLE in_console;
bool _is_NT_or_later;
};
#endif
|
#ifndef __win32commandline_h__
#define __win32commandline_h__
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <assert.h>
#include "../../commandline.h"
class CWin32CommandLine : public CCommandLine
{
public:
CWin32CommandLine();
~CWin32CommandLine();
public:
virtual LispInt GetKey();
void ReadLineSub(const LispChar * prompt);
virtual void NewLine();
virtual void ShowLine(const LispChar * prompt,LispInt promptlen,LispInt cursor);
virtual void Pause();
// new functionality
void color_print(const LispChar * str, WORD text_attrib);
void color_read(LispChar * str, WORD text_attrib);
protected:
void ShowLine();
const LispChar * iLastPrompt;
private:
HANDLE out_console;
HANDLE in_console;
bool _is_NT_or_later;
};
#endif
| Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux | Replace backslashes in paths with slashes; should be compatible with both
win32 compilers and mingw32 on linux
| C | lgpl-2.1 | MateuszSnamina/yacas,MateuszSnamina/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,martanoga/yacas,martanoga/yacas,martanoga/yacas,qwert2003/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,MateuszSnamina/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,martanoga/yacas,qwert2003/yacas,martanoga/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,qwert2003/yacas,MateuszSnamina/yacas,tomaszkrysiuk/yacas,martanoga/yacas |
0968bf9a8ad06572c068e0024fcc29bbf744ef04 | demo/src/input.h | demo/src/input.h | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <cstdint>
#include <strstream>
#include <stdint.h>
#include <string>
class Goat {
public:
Goat();
~Goat();
void add_a_horn();
std::string describe() const;
private:
uint32_t horns;
};
inline uint32_t DoMath(uint32_t a) {
return a * 3;
}
Goat::Goat() : horns(0) {}
Goat::~Goat() {}
void Goat::add_a_horn() { horns++; }
std::string Goat::describe() const {
std::ostrstream oss;
std::string plural = horns == 1 ? "" : "s";
oss << "This goat has " << horns << " horn" << plural << ".";
return oss.str();
} | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <cstdint>
#include <sstream>
#include <stdint.h>
#include <string>
class Goat {
public:
Goat();
~Goat();
void add_a_horn();
std::string describe() const;
private:
uint32_t horns;
};
inline uint32_t DoMath(uint32_t a) {
return a * 3;
}
Goat::Goat() : horns(0) {}
Goat::~Goat() {}
void Goat::add_a_horn() { horns++; }
std::string Goat::describe() const {
std::ostringstream oss;
std::string plural = horns == 1 ? "" : "s";
oss << "This goat has " << horns << " horn" << plural << ".";
return oss.str();
} | Move away from deprecated C++ APIs in the demo | Move away from deprecated C++ APIs in the demo
A bit less cruft printed during tests which use it.
| C | apache-2.0 | google/autocxx,google/autocxx,google/autocxx,google/autocxx |
04b4c5a77120a26053cd853c603ff12cedf03a76 | testmud/mud/home/Game/sys/treed.c | testmud/mud/home/Game/sys/treed.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
| Add daemon to handle tree growth in the future | Add daemon to handle tree growth in the future
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
|
9fd8c99a43beea140d4656bc5871ed2b0ea3328c | src/plugins/ccode/ccode.h | src/plugins/ccode/ccode.h | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_CCODE_H
#define ELEKTRA_PLUGIN_CCODE_H
#include <kdbplugin.h>
typedef struct
{
char encode[256];
char decode[256];
char escape;
char * buf;
size_t bufalloc;
} CCodeData;
ssize_t keySetRaw (Key * key, const void * newBinary, size_t dataSize);
void elektraCcodeEncode (Key * cur, CCodeData * h);
void elektraCcodeDecode (Key * cur, CCodeData * h);
int elektraCcodeOpen (Plugin * handle, Key * k);
int elektraCcodeClose (Plugin * handle, Key * k);
int elektraCcodeGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraCcodeSet (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT (ccode);
#endif
| /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_CCODE_H
#define ELEKTRA_PLUGIN_CCODE_H
#include <kdbplugin.h>
typedef struct
{
unsigned char encode[256];
unsigned char decode[256];
char escape;
char * buf;
size_t bufalloc;
} CCodeData;
ssize_t keySetRaw (Key * key, const void * newBinary, size_t dataSize);
void elektraCcodeEncode (Key * cur, CCodeData * h);
void elektraCcodeDecode (Key * cur, CCodeData * h);
int elektraCcodeOpen (Plugin * handle, Key * k);
int elektraCcodeClose (Plugin * handle, Key * k);
int elektraCcodeGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraCcodeSet (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT (ccode);
#endif
| Use `unsigned char` for mapping | CCode: Use `unsigned char` for mapping
| C | bsd-3-clause | e1528532/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,e1528532/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra |
ce299fb3e2c5b68fd4a43975c854e5ffaf91d192 | Ansi.c | Ansi.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* 1) ĺһǸ
2) ΪͨԺǿ׳ҪܶԿʹκμ
*/
#define PRINT_GREETINGS do { \
printf("Hi there!\n"); \
} while (0)
int main(const int argc, const char* const* argv)
{
// macro
PRINT_GREETINGS;
return 0;
}
| Add ANSI C code snippet. | Add ANSI C code snippet.
| C | mit | niucheng/Snippets,niucheng/Snippets,niucheng/Snippets |
|
cda59be9314833305fad936ca78f625d9e4e7de1 | include/llvm/ExecutionEngine/Orc/JITSymbol.h | include/llvm/ExecutionEngine/Orc/JITSymbol.h | //===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Abstraction for target process addresses.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#include <functional>
namespace llvm {
/// @brief Represents an address in the target process's address space.
typedef uint64_t TargetAddress;
/// @brief Represents a symbol in the JIT.
class JITSymbol {
public:
typedef std::function<TargetAddress()> GetAddressFtor;
JITSymbol(std::nullptr_t) : CachedAddr(0) {}
JITSymbol(GetAddressFtor GetAddress)
: CachedAddr(0), GetAddress(std::move(GetAddress)) {}
/// @brief Returns true if the symbol exists, false otherwise.
explicit operator bool() const { return CachedAddr || GetAddress; }
/// @brief Get the address of the symbol in the target address space. Returns
/// '0' if the symbol does not exist.
TargetAddress getAddress() {
if (GetAddress) {
CachedAddr = GetAddress();
assert(CachedAddr && "Symbol could not be materialized.");
GetAddress = nullptr;
}
return CachedAddr;
}
private:
TargetAddress CachedAddr;
GetAddressFtor GetAddress;
};
}
#endif // LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
| //===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Abstraction for target process addresses.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#include "llvm/Support/Compiler.h"
#include <functional>
namespace llvm {
/// @brief Represents an address in the target process's address space.
typedef uint64_t TargetAddress;
/// @brief Represents a symbol in the JIT.
class JITSymbol {
public:
typedef std::function<TargetAddress()> GetAddressFtor;
JITSymbol(std::nullptr_t) : CachedAddr(0) {}
JITSymbol(GetAddressFtor GetAddress)
: CachedAddr(0), GetAddress(std::move(GetAddress)) {}
/// @brief Returns true if the symbol exists, false otherwise.
LLVM_EXPLICIT operator bool() const { return CachedAddr || GetAddress; }
/// @brief Get the address of the symbol in the target address space. Returns
/// '0' if the symbol does not exist.
TargetAddress getAddress() {
if (GetAddress) {
CachedAddr = GetAddress();
assert(CachedAddr && "Symbol could not be materialized.");
GetAddress = nullptr;
}
return CachedAddr;
}
private:
TargetAddress CachedAddr;
GetAddressFtor GetAddress;
};
}
#endif // LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
| Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit. | [Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@228564 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm |
f6f3aa060523c5f9b223e9d9665c266381cc2b6e | src/ios/GalleryAPI.h | src/ios/GalleryAPI.h | #import <AssetsLibrary/AssetsLibrary.h>
#import <AssetsLibrary/ALAssetsGroup.h>
#import <Cordova/CDVPlugin.h>
@interface GalleryAPI : CDVPlugin
- (void) getAlbums:(CDVInvokedUrlCommand*)command;
- (void) getMedia:(CDVInvokedUrlCommand*)command;
@end
| #import <Photos/Photos.h>
#import <Cordova/CDVPlugin.h>
@interface GalleryAPI : CDVPlugin
- (void) getAlbums:(CDVInvokedUrlCommand*)command;
- (void) getMedia:(CDVInvokedUrlCommand*)command;
@end
| Move to new Photo API | [ios] Move to new Photo API | C | mit | subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api,subitolabs/cordova-gallery-api,subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api |
c9200d420f8320a8d57437ae346b161dd092408a | kernel/x86/gdt.h | kernel/x86/gdt.h | #ifndef KERNEL_X86_GDT_H
#define KERNEL_X86_GDT_H
#define NULL_SEGMENT 0
#define KCODE_SEGMENT 1
#define KDATA_SEGMENT 2
#define SEGOFF(seg) (8 * seg)
#ifndef ASM_FILE
typedef struct GDTDesc GDTDesc;
extern GDTDesc gdt_desc;
void gdt_load(GDTDesc *);
#endif
#endif
| #ifndef KERNEL_X86_GDT_H
#define KERNEL_X86_GDT_H
/**
* Support for managing the Global Descriptor Table (GDT)
*
* GDT initialization in zero is trivial at runtime: the entire structure is
* baked into the binary, ready to go, and the bringup code need only load the
* GDT pointer. A simple call to:
*
* gdt_load(&gdt_desc);
*
* Will do the trick.
*/
/* symbolic constants for specific segments, as used by our kernel */
#define NULL_SEGMENT 0
#define KCODE_SEGMENT 1
#define KDATA_SEGMENT 2
/* The offset from the beginning of the GDT of a particular segment
* descriptor. */
#define SEGOFF(seg) (8 * seg)
#ifndef ASM_FILE
/* The GDT pointer structure. defined in gdt.c */
typedef struct GDTDesc GDTDesc;
extern GDTDesc gdt_desc;
/* Load the GDT pointer supplied as an argument, then start using it. defined in
* gdt_load.S */
void gdt_load(GDTDesc *);
#endif
#endif
| Add some comments to the GDT header. | Add some comments to the GDT header.
| C | isc | zenhack/zero,zenhack/zero,zenhack/zero |
71bc80b60e70084812deb646c8a12a964c2463ba | src/util/viratomic.h | src/util/viratomic.h | /*
* viratomic.h: atomic integer operations
*
* Copyright (C) 2012 IBM Corporation
*
* Authors:
* Stefan Berger <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __VIR_ATOMIC_H__
# define __VIR_ATOMIC_H__
# include "threads.h"
typedef struct _virAtomicInt virAtomicInt;
typedef virAtomicInt *virAtomicIntPtr;
struct _virAtomicInt {
virMutex lock;
int value;
};
static inline int
virAtomicIntInit(virAtomicIntPtr vaip)
{
vaip->value = 0;
return virMutexInit(&vaip->lock);
}
static inline void
virAtomicIntSet(virAtomicIntPtr vaip, int value)
{
virMutexLock(&vaip->lock);
vaip->value = value;
virMutexUnlock(&vaip->lock);
}
static inline int
virAtomicIntRead(virAtomicIntPtr vaip)
{
return vaip->value;
}
static inline int
virAtomicIntAdd(virAtomicIntPtr vaip, int add)
{
int ret;
virMutexLock(&vaip->lock);
vaip->value += add;
ret = vaip->value;
virMutexUnlock(&vaip->lock);
return ret;
}
static inline int
virAtomicIntSub(virAtomicIntPtr vaip, int sub)
{
int ret;
virMutexLock(&vaip->lock);
vaip->value -= sub;
ret = vaip->value;
virMutexUnlock(&vaip->lock);
return ret;
}
#endif /* __VIR_ATOMIC_H */
| Support for atomic operations on integers | Support for atomic operations on integers
For threading support, add atomic add and sub operations working on
integers. Base this on locking support provided by virMutex.
| C | lgpl-2.1 | wiedi/libvirt,trainstack/libvirt,jfehlig/libvirt,bjzhang/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,emaste/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,emaste/libvirt,elmarco/libvirt,agx/libvirt,trainstack/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jfehlig/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,wiedi/libvirt,trainstack/libvirt,wiedi/libvirt,rmarwaha/libvirt,jeckersb/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,crobinso/libvirt,agx/libvirt,shugaoye/libvirt,wiedi/libvirt,shugaoye/libvirt,andreabolognani/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,rmarwaha/libvirt,libvirt/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,warewolf/libvirt,eskultety/libvirt,taget/libvirt,rlaager/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,eskultety/libvirt,eskultety/libvirt,trainstack/libvirt,datto/libvirt,elmarco/libvirt,jardasgit/libvirt,libvirt/libvirt,trainstack/libvirt,trainstack/libvirt,jeckersb/libvirt,rmarwaha/libvirt1,nertpinx/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,warewolf/libvirt,elmarco/libvirt,wiedi/libvirt,fabianfreyer/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt,cbosdo/libvirt,bjzhang/libvirt,dumbbell/libvirt,crobinso/libvirt,olafhering/libvirt,warewolf/libvirt,jfehlig/libvirt,zippy2/libvirt,warewolf/libvirt,rlaager/libvirt,emaste/libvirt,VenkatDatta/libvirt,eskultety/libvirt,nertpinx/libvirt,agx/libvirt,nertpinx/libvirt,datto/libvirt,bjzhang/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt1,fabianfreyer/libvirt,datto/libvirt,elmarco/libvirt,cbosdo/libvirt,wiedi/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,novel/fbsd-libvirt,agx/libvirt,crobinso/libvirt,taget/libvirt,rlaager/libvirt,jardasgit/libvirt,jeckersb/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,VenkatDatta/libvirt,novel/fbsd-libvirt,bjzhang/libvirt,rlaager/libvirt,crobinso/libvirt,zippy2/libvirt,datto/libvirt,iam-TJ/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,zippy2/libvirt,olafhering/libvirt,shugaoye/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,novel/fbsd-libvirt,libvirt/libvirt,rmarwaha/libvirt,cbosdo/libvirt,wiedi/libvirt,jeckersb/libvirt,bjzhang/libvirt,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt,novel/fbsd-libvirt,dumbbell/libvirt,shugaoye/libvirt,emaste/libvirt,warewolf/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,taget/libvirt,cbosdo/libvirt,siboulet/libvirt-openvz,eskultety/libvirt,dumbbell/libvirt,jfehlig/libvirt,olafhering/libvirt,trainstack/libvirt,andreabolognani/libvirt,jardasgit/libvirt,emaste/libvirt,jeckersb/libvirt,datto/libvirt,rmarwaha/libvirt1,agx/libvirt,warewolf/libvirt,taget/libvirt,dumbbell/libvirt,rmarwaha/libvirt,jeckersb/libvirt,dumbbell/libvirt,shugaoye/libvirt,cbosdo/libvirt,elmarco/libvirt,iam-TJ/libvirt,rmarwaha/libvirt1,iam-TJ/libvirt,emaste/libvirt,rlaager/libvirt,emaste/libvirt,iam-TJ/libvirt,taget/libvirt,warewolf/libvirt,libvirt/libvirt |
|
05bf8903188764ffe423b03b72b8c2cb44eeb6b2 | testmud/mud/home/Game/sys/subd.c | testmud/mud/home/Game/sys/subd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
| /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
float *measure_delta(object a, object b)
{
object cc;
float dx, dy, dz;
cc = SUBD->query_common_container(a, b);
if (!cc) {
error("Objects not on same plane of existence");
}
while (b != cc) {
dx += b->query_x_position();
dy += b->query_y_position();
dz += b->query_z_position();
b = b->query_environment();
}
while (a != cc) {
dx -= a->query_x_position();
dy -= a->query_y_position();
dz -= a->query_z_position();
a = a->query_environment();
}
return ({ dx, dy, dz });
}
| Add difference delta measurement routine | Add difference delta measurement routine
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
d3a2ae6d315382b2dcc7747c5b3b70f0490e9157 | drivers/net/ixgbe/ixgbe_fcoe.c | drivers/net/ixgbe/ixgbe_fcoe.c | /*******************************************************************************
Intel 10 Gigabit PCI Express Linux driver
Copyright(c) 1999 - 2009 Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
version 2, as published by the Free Software Foundation.
This program is distributed in the hope it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in
the file called "COPYING".
Contact Information:
e1000-devel Mailing List <[email protected]>
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
*******************************************************************************/
#include "ixgbe.h"
#include <linux/if_ether.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/fc/fc_fs.h>
#include <scsi/fc/fc_fcoe.h>
#include <scsi/libfc.h>
#include <scsi/libfcoe.h>
/**
* ixgbe_configure_fcoe - configures registers for fcoe at start
* @adapter: ptr to ixgbe adapter
*
* This sets up FCoE related registers
*
* Returns : none
*/
void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter)
{
struct ixgbe_hw *hw = &adapter->hw;
/* L2 filter for FCoE: default to queue 0 */
IXGBE_WRITE_REG(hw, IXGBE_ETQF(IXGBE_ETQF_FILTER_FCOE),
(ETH_P_FCOE | IXGBE_ETQF_FCOE | IXGBE_ETQF_FILTER_EN));
IXGBE_WRITE_REG(hw, IXGBE_FCRECTL, 0);
IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FCOE),
IXGBE_ETQS_QUEUE_EN);
IXGBE_WRITE_REG(hw, IXGBE_FCRXCTRL,
IXGBE_FCRXCTRL_FCOELLI |
IXGBE_FCRXCTRL_FCCRCBO |
(FC_FCOE_VER << IXGBE_FCRXCTRL_FCOEVER_SHIFT));
}
| Add FCoE feature code to 82599 | ixgbe: Add FCoE feature code to 82599
This adds the FCoE feature code ixgbe_fcoe.c to 82599. For a start, this patch
only adds ixgbe_configure_fcoe() to configure related register for FCoE to 82599.
In patches that follow, I will be adding more functions to ixgbe_fcoe.c to add
support of FCoE offload features to 82599.
Signed-off-by: Yi Zou <[email protected]>
Acked-by: Peter P Waskiewicz Jr <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas |
|
33fbf34388889fb5e771f51f8c34ef39079f2aa3 | micropython-1.5/stmhal/ledtask.c | micropython-1.5/stmhal/ledtask.c | #include "stdio.h"
#include "FreeRTOS.h"
#include "task.h"
#include STM32_HAL_H
void LedTask(void *pvParameters)
{
/* GPIO structure */
GPIO_InitTypeDef GPIO_InitStructure;
/* Configure I/O speed, mode, output type and pull */
GPIO_InitStructure.Pin = GPIO_PIN_5;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Pull = GPIO_PULLUP;
GPIO_InitStructure.Speed = GPIO_SPEED_FAST;
HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);
const TickType_t xDelay = 1000 / portTICK_PERIOD_MS;
/* Toggle LED in an infinite loop */
while (1) {
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
/* Insert a 1000ms delay */
vTaskDelay(xDelay);
}
}
| #include "stdio.h"
#include "FreeRTOS.h"
#include "task.h"
#include STM32_HAL_H
void LedTask(void *pvParameters)
{
/* GPIO structure */
GPIO_InitTypeDef GPIO_InitStructure;
/* Configure I/O speed, mode, output type and pull */
GPIO_InitStructure.Pin = GPIO_PIN_5;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Pull = GPIO_PULLUP;
GPIO_InitStructure.Speed = GPIO_SPEED_FAST;
HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Toggle LED in an infinite loop */
while (1) {
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
/* Insert a 1000ms delay */
HAL_Delay(1000);
}
}
| Use HAL_Delay in LED Task | Use HAL_Delay in LED Task
| C | mit | jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos |
cebc280640017d412058c2bf40d31a5af3d82d32 | Sources/Foundation/OCAFoundation.h | Sources/Foundation/OCAFoundation.h | //
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
/// Producers
#import "OCAProducer.h"
#import "OCACommand.h"
#import "OCAHub.h"
#import "OCAProperty.h"
#import "OCAInvoker.h"
#import "OCANotificator.h"
#import "OCATimer.h"
/// Mediators
#import "OCAMediator.h"
#import "OCABridge.h"
#import "OCAContext.h"
#import "OCAFilter.h"
/// Consumers
#import "OCAConsumer.h"
#import "OCASubscriber.h"
#import "OCAMulticast.h"
/// Transformers
#import "OCATransformer.h"
/// Predicates
#import "OCAPredicate.h"
/// Utilities
#import "OCAKeyPathAccessor.h"
#import "OCAStructureAccessor.h"
#import "OCAQueue.h"
#import "OCASemaphore.h"
#import "NSValue+Boxing.h"
#import "NSArray+Ordinals.h"
#import "OCADecomposer.h"
#import "OCAInvocationCatcher.h"
| //
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
/// Producers
#import "OCAProducer.h"
#import "OCACommand.h"
#import "OCAHub.h"
#import "OCAProperty.h"
#import "OCATimer.h"
#import "OCANotificator.h"
/// Mediators
#import "OCAMediator.h"
#import "OCABridge.h"
#import "OCAContext.h"
#import "OCAFilter.h"
#import "OCAThrottle.h"
/// Consumers
#import "OCAConsumer.h"
#import "OCASubscriber.h"
#import "OCAMulticast.h"
#import "OCAInvoker.h"
/// Transformers
#import "OCATransformer.h"
/// Predicates
#import "OCAPredicate.h"
/// Utilities
#import "OCAKeyPathAccessor.h"
#import "OCAStructureAccessor.h"
#import "OCAQueue.h"
#import "OCASemaphore.h"
#import "NSValue+Boxing.h"
#import "NSArray+Ordinals.h"
#import "OCADecomposer.h"
#import "OCAInvocationCatcher.h"
#import "OCAKeyValueChange.h"
#import "OCAVariadic.h"
#import "OCAPlaceholderObject.h"
| Add missing classes to Foundation import | Add missing classes to Foundation import
| C | mit | Tricertops/Objective-Chain,iMartinKiss/Objective-Chain |
cde5e48b099ffafee3d30404f72871142959a494 | test/test_trim.c | test/test_trim.c |
#include <string_manip.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TEST_STRS 4
char *test_strs_initial[TEST_STRS] = {" ", " a", "a ", " a "};
char *test_strs_correct[TEST_STRS] = {"", "a", "a", "a"};
int main() {
int i;
for(i = 0; i < TEST_STRS; i++) {
char *dup, *correct, *initial;
int result;
initial = test_strs_initial[i];
correct = test_strs_correct[i];
dup = strdup(test_strs_initial[i]);
trim(dup);
result = strcmp(dup, correct);
if(result != 0) {
fprintf(stderr, "Trim failed! "
"Got [%s] Expected [%s] Initial [%s].\n", dup, correct, initial);
free(dup);
return result;
}
free(dup);
}
return 0;
}
|
#include <string_manip.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TEST_STRS 6
char *test_strs_initial[TEST_STRS] = {"", " ", " a", "a ", " a ", " a a "};
char *test_strs_correct[TEST_STRS] = {"", "", "a", "a", "a", "a a"};
int main() {
int i, result = 0;
for(i = 0; i < TEST_STRS && result == 0; i++) {
char *dup, *correct, *initial;
initial = test_strs_initial[i];
correct = test_strs_correct[i];
// Duplicate for modification
dup = strdup(test_strs_initial[i]);
trim(dup);
// Compare results
result = strcmp(dup, correct);
if(result != 0) {
fprintf(stderr, "Trim failed! "
"Got [%s] Expected [%s] Initial [%s].\n", dup, correct, initial);
}
free(dup);
}
return result;
}
| Add more test cases to trim | Add more test cases to trim
| C | mit | Coderlane/morse_translator |
e682b4021995c43d257d0dda0a542723dfa35e68 | src/common/timer.h | src/common/timer.h | #pragma once
#include <boost/timer/timer.hpp>
namespace marian {
namespace timer {
using Timer = boost::timer::cpu_timer;
using AutoTimer = boost::timer::auto_cpu_timer;
}
} | #pragma once
#include <boost/timer/timer.hpp>
namespace marian {
namespace timer {
using Timer = boost::timer::cpu_timer;
using AutoTimer = boost::timer::auto_cpu_timer;
}
}
| Add new line at end | Add new line at end | C | mit | marian-nmt/marian-train,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,emjotde/Marian,emjotde/amunn,marian-nmt/marian-train,emjotde/amunn,amunmt/marian,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/Marian,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,marian-nmt/marian-train |
2dc37817bc768b03dacbbe72503216f5e0c7f2a0 | cpu/lm4f120/include/hwtimer_cpu.h | cpu/lm4f120/include/hwtimer_cpu.h | /*
* Copyright (C) 2015 Rakendra Thapa <[email protected]>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_lm4f120
* @{
*
* @file
* @brief CPU specific hwtimer configuration options
*
* @author Rakendra Thapa <[email protected]>
*/
#ifndef HWTIMER_CPU_H
#define HWTIMER_CPU_H
#ifdef __cplusplus
extern "C"{
#endif
/**
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS 1 /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS 0xffffffff /**< 32-bit timer */
#define HWTIMER_MSEC (HWTIMER_SPEED/1000)
#define HWTIMER_SEC (HWTIMER_SPEED/1000000)
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* HWTIMER_CPU_H */
/** @} */
| /*
* Copyright (C) 2015 Rakendra Thapa <[email protected]>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_lm4f120
* @{
*
* @file
* @brief CPU specific hwtimer configuration options
*
* @author Rakendra Thapa <[email protected]>
*/
#ifndef HWTIMER_CPU_H
#define HWTIMER_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS 1 /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS 0xffffffff /**< 32-bit timer */
#define HWTIMER_MSEC (HWTIMER_SPEED/1000)
#define HWTIMER_SEC (HWTIMER_SPEED/1000000)
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* HWTIMER_CPU_H */
/** @} */
| Modify to have C++ compatible header | Modify to have C++ compatible header
| C | lgpl-2.1 | stevenj/RIOT,rfuentess/RIOT,lebrush/RIOT,malosek/RIOT,adrianghc/RIOT,immesys/RiSyn,bartfaizoltan/RIOT,binarylemon/RIOT,jfischer-phytec-iot/RIOT,binarylemon/RIOT,avmelnikoff/RIOT,attdona/RIOT,abp719/RIOT,stevenj/RIOT,MonsterCode8000/RIOT,centurysys/RIOT,arvindpdmn/RIOT,RubikonAlpha/RIOT,DipSwitch/RIOT,adrianghc/RIOT,avmelnikoff/RIOT,mtausig/RIOT,Darredevil/RIOT,kerneltask/RIOT,RBartz/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,jremmert-phytec-iot/RIOT,Yonezawa-T2/RIOT,rfuentess/RIOT,OTAkeys/RIOT,luciotorre/RIOT,ks156/RIOT,kbumsik/RIOT,asanka-code/RIOT,alex1818/RIOT,kaspar030/RIOT,BytesGalore/RIOT,gbarnett/RIOT,kaleb-himes/RIOT,immesys/RiSyn,latsku/RIOT,rousselk/RIOT,BytesGalore/RIOT,ntrtrung/RIOT,MonsterCode8000/RIOT,OlegHahm/RIOT,jremmert-phytec-iot/RIOT,zhuoshuguo/RIOT,MohmadAyman/RIOT,MohmadAyman/RIOT,josephnoir/RIOT,RIOT-OS/RIOT,backenklee/RIOT,roberthartung/RIOT,Hyungsin/RIOT-OS,rakendrathapa/RIOT,robixnai/RIOT,abp719/RIOT,l3nko/RIOT,openkosmosorg/RIOT,thiagohd/RIOT,BytesGalore/RIOT,rousselk/RIOT,smlng/RIOT,adjih/RIOT,abp719/RIOT,attdona/RIOT,msolters/RIOT,yogo1212/RIOT,RBartz/RIOT,ant9000/RIOT,immesys/RiSyn,authmillenon/RIOT,DipSwitch/RIOT,neiljay/RIOT,mziegert/RIOT,miri64/RIOT,mfrey/RIOT,MarkXYang/RIOT,EmuxEvans/RIOT,Hyungsin/RIOT-OS,mziegert/RIOT,FrancescoErmini/RIOT,brettswann/RIOT,patkan/RIOT,aeneby/RIOT,haoyangyu/RIOT,rfuentess/RIOT,lebrush/RIOT,stevenj/RIOT,LudwigKnuepfer/RIOT,centurysys/RIOT,authmillenon/RIOT,RubikonAlpha/RIOT,neumodisch/RIOT,A-Paul/RIOT,OTAkeys/RIOT,gebart/RIOT,openkosmosorg/RIOT,malosek/RIOT,neiljay/RIOT,beurdouche/RIOT,d00616/RIOT,yogo1212/RIOT,LudwigOrtmann/RIOT,adrianghc/RIOT,openkosmosorg/RIOT,MonsterCode8000/RIOT,kaspar030/RIOT,neiljay/RIOT,haoyangyu/RIOT,alignan/RIOT,watr-li/RIOT,l3nko/RIOT,TobiasFredersdorf/RIOT,msolters/RIOT,OlegHahm/RIOT,MohmadAyman/RIOT,daniel-k/RIOT,TobiasFredersdorf/RIOT,daniel-k/RIOT,thomaseichinger/RIOT,authmillenon/RIOT,LudwigOrtmann/RIOT,JensErdmann/RIOT,jasonatran/RIOT,neumodisch/RIOT,attdona/RIOT,neiljay/RIOT,robixnai/RIOT,syin2/RIOT,automote/RIOT,abkam07/RIOT,aeneby/RIOT,automote/RIOT,adjih/RIOT,adrianghc/RIOT,zhuoshuguo/RIOT,neumodisch/RIOT,miri64/RIOT,rakendrathapa/RIOT,jfischer-phytec-iot/RIOT,altairpearl/RIOT,ks156/RIOT,DipSwitch/RIOT,khhhh/RIOT,x3ro/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,rakendrathapa/RIOT,khhhh/RIOT,josephnoir/RIOT,ntrtrung/RIOT,gebart/RIOT,asanka-code/RIOT,hamilton-mote/RIOT-OS,bartfaizoltan/RIOT,Osblouf/RIOT,josephnoir/RIOT,gbarnett/RIOT,backenklee/RIOT,Hyungsin/RIOT-OS,biboc/RIOT,x3ro/RIOT,binarylemon/RIOT,lebrush/RIOT,marcosalm/RIOT,jasonatran/RIOT,x3ro/RIOT,DipSwitch/RIOT,dhruvvyas90/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,dailab/RIOT,lazytech-org/RIOT,watr-li/RIOT,FrancescoErmini/RIOT,jremmert-phytec-iot/RIOT,PSHIVANI/Riot-Code,toonst/RIOT,OlegHahm/RIOT,LudwigOrtmann/RIOT,herrfz/RIOT,dailab/RIOT,cladmi/RIOT,binarylemon/RIOT,rfuentess/RIOT,kYc0o/RIOT,kb2ma/RIOT,wentaoshang/RIOT,arvindpdmn/RIOT,luciotorre/RIOT,thiagohd/RIOT,mfrey/RIOT,marcosalm/RIOT,EmuxEvans/RIOT,Osblouf/RIOT,basilfx/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,ant9000/RIOT,bartfaizoltan/RIOT,abkam07/RIOT,jbeyerstedt/RIOT-OTA-update,PSHIVANI/Riot-Code,kYc0o/RIOT,RBartz/RIOT,alex1818/RIOT,gebart/RIOT,patkan/RIOT,robixnai/RIOT,patkan/RIOT,automote/RIOT,RIOT-OS/RIOT,alignan/RIOT,EmuxEvans/RIOT,asanka-code/RIOT,kbumsik/RIOT,herrfz/RIOT,rajma996/RIOT,automote/RIOT,haoyangyu/RIOT,Ell-i/RIOT,syin2/RIOT,alex1818/RIOT,lazytech-org/RIOT,automote/RIOT,thomaseichinger/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,aeneby/RIOT,altairpearl/RIOT,rousselk/RIOT,Darredevil/RIOT,tdautc19841202/RIOT,immesys/RiSyn,Ell-i/RIOT,backenklee/RIOT,jasonatran/RIOT,jfischer-phytec-iot/RIOT,lazytech-org/RIOT,dhruvvyas90/RIOT,toonst/RIOT,x3ro/RIOT,MonsterCode8000/RIOT,PSHIVANI/Riot-Code,binarylemon/RIOT,rajma996/RIOT,mfrey/RIOT,mziegert/RIOT,x3ro/RIOT,kaleb-himes/RIOT,robixnai/RIOT,authmillenon/RIOT,smlng/RIOT,abp719/RIOT,altairpearl/RIOT,tdautc19841202/RIOT,d00616/RIOT,malosek/RIOT,Josar/RIOT,Yonezawa-T2/RIOT,bartfaizoltan/RIOT,khhhh/RIOT,miri64/RIOT,neiljay/RIOT,adjih/RIOT,arvindpdmn/RIOT,toonst/RIOT,plushvoxel/RIOT,jbeyerstedt/RIOT-OTA-update,immesys/RiSyn,mfrey/RIOT,gbarnett/RIOT,msolters/RIOT,tdautc19841202/RIOT,kaleb-himes/RIOT,alex1818/RIOT,adjih/RIOT,Osblouf/RIOT,ntrtrung/RIOT,l3nko/RIOT,beurdouche/RIOT,ThanhVic/RIOT,kb2ma/RIOT,RubikonAlpha/RIOT,abp719/RIOT,asanka-code/RIOT,josephnoir/RIOT,attdona/RIOT,LudwigOrtmann/RIOT,shady33/RIOT,LudwigKnuepfer/RIOT,kb2ma/RIOT,EmuxEvans/RIOT,FrancescoErmini/RIOT,shady33/RIOT,FrancescoErmini/RIOT,gbarnett/RIOT,cladmi/RIOT,arvindpdmn/RIOT,LudwigKnuepfer/RIOT,biboc/RIOT,stevenj/RIOT,watr-li/RIOT,gautric/RIOT,syin2/RIOT,hamilton-mote/RIOT-OS,abkam07/RIOT,MohmadAyman/RIOT,thiagohd/RIOT,arvindpdmn/RIOT,d00616/RIOT,OTAkeys/RIOT,luciotorre/RIOT,asanka-code/RIOT,OlegHahm/RIOT,kbumsik/RIOT,rfuentess/RIOT,herrfz/RIOT,toonst/RIOT,wentaoshang/RIOT,zhuoshuguo/RIOT,jremmert-phytec-iot/RIOT,authmillenon/RIOT,ntrtrung/RIOT,thomaseichinger/RIOT,bartfaizoltan/RIOT,JensErdmann/RIOT,kYc0o/RIOT,aeneby/RIOT,brettswann/RIOT,asanka-code/RIOT,RBartz/RIOT,l3nko/RIOT,alignan/RIOT,alignan/RIOT,arvindpdmn/RIOT,thiagohd/RIOT,patkan/RIOT,roberthartung/RIOT,TobiasFredersdorf/RIOT,mtausig/RIOT,Josar/RIOT,LudwigKnuepfer/RIOT,dkm/RIOT,dkm/RIOT,beurdouche/RIOT,JensErdmann/RIOT,OlegHahm/RIOT,Lexandro92/RIOT-CoAP,jbeyerstedt/RIOT-OTA-update,d00616/RIOT,LudwigOrtmann/RIOT,abkam07/RIOT,l3nko/RIOT,MohmadAyman/RIOT,daniel-k/RIOT,Ell-i/RIOT,yogo1212/RIOT,ks156/RIOT,toonst/RIOT,zhuoshuguo/RIOT,jremmert-phytec-iot/RIOT,authmillenon/RIOT,thomaseichinger/RIOT,PSHIVANI/Riot-Code,kerneltask/RIOT,stevenj/RIOT,altairpearl/RIOT,patkan/RIOT,kbumsik/RIOT,MarkXYang/RIOT,brettswann/RIOT,abkam07/RIOT,BytesGalore/RIOT,TobiasFredersdorf/RIOT,dailab/RIOT,khhhh/RIOT,latsku/RIOT,latsku/RIOT,RBartz/RIOT,msolters/RIOT,A-Paul/RIOT,altairpearl/RIOT,abp719/RIOT,herrfz/RIOT,Josar/RIOT,A-Paul/RIOT,Darredevil/RIOT,avmelnikoff/RIOT,katezilla/RIOT,katezilla/RIOT,alignan/RIOT,JensErdmann/RIOT,biboc/RIOT,kYc0o/RIOT,ks156/RIOT,adjih/RIOT,jbeyerstedt/RIOT-OTA-update,hamilton-mote/RIOT-OS,ThanhVic/RIOT,watr-li/RIOT,mtausig/RIOT,ks156/RIOT,marcosalm/RIOT,luciotorre/RIOT,wentaoshang/RIOT,TobiasFredersdorf/RIOT,wentaoshang/RIOT,stevenj/RIOT,aeneby/RIOT,gautric/RIOT,jfischer-phytec-iot/RIOT,jbeyerstedt/RIOT-OTA-update,mtausig/RIOT,malosek/RIOT,rakendrathapa/RIOT,cladmi/RIOT,brettswann/RIOT,Hyungsin/RIOT-OS,tfar/RIOT,Yonezawa-T2/RIOT,thiagohd/RIOT,rousselk/RIOT,watr-li/RIOT,d00616/RIOT,avmelnikoff/RIOT,smlng/RIOT,Ell-i/RIOT,rousselk/RIOT,kerneltask/RIOT,kaleb-himes/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,gebart/RIOT,ThanhVic/RIOT,jfischer-phytec-iot/RIOT,watr-li/RIOT,alex1818/RIOT,latsku/RIOT,cladmi/RIOT,backenklee/RIOT,tfar/RIOT,tfar/RIOT,d00616/RIOT,hamilton-mote/RIOT-OS,binarylemon/RIOT,dkm/RIOT,thiagohd/RIOT,rajma996/RIOT,yogo1212/RIOT,mziegert/RIOT,haoyangyu/RIOT,kYc0o/RIOT,adrianghc/RIOT,marcosalm/RIOT,MarkXYang/RIOT,miri64/RIOT,rakendrathapa/RIOT,Lexandro92/RIOT-CoAP,JensErdmann/RIOT,abkam07/RIOT,rakendrathapa/RIOT,luciotorre/RIOT,tdautc19841202/RIOT,basilfx/RIOT,dhruvvyas90/RIOT,dhruvvyas90/RIOT,malosek/RIOT,thomaseichinger/RIOT,daniel-k/RIOT,zhuoshuguo/RIOT,basilfx/RIOT,kb2ma/RIOT,tdautc19841202/RIOT,kerneltask/RIOT,MonsterCode8000/RIOT,wentaoshang/RIOT,syin2/RIOT,gautric/RIOT,katezilla/RIOT,MarkXYang/RIOT,kaspar030/RIOT,daniel-k/RIOT,shady33/RIOT,gbarnett/RIOT,Lexandro92/RIOT-CoAP,DipSwitch/RIOT,shady33/RIOT,neumodisch/RIOT,latsku/RIOT,roberthartung/RIOT,josephnoir/RIOT,katezilla/RIOT,alex1818/RIOT,brettswann/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,EmuxEvans/RIOT,dkm/RIOT,neumodisch/RIOT,miri64/RIOT,ntrtrung/RIOT,daniel-k/RIOT,ant9000/RIOT,Hyungsin/RIOT-OS,kaspar030/RIOT,Josar/RIOT,backenklee/RIOT,Osblouf/RIOT,openkosmosorg/RIOT,kbumsik/RIOT,mfrey/RIOT,luciotorre/RIOT,biboc/RIOT,hamilton-mote/RIOT-OS,centurysys/RIOT,lebrush/RIOT,rajma996/RIOT,lebrush/RIOT,dhruvvyas90/RIOT,kaleb-himes/RIOT,ThanhVic/RIOT,immesys/RiSyn,RubikonAlpha/RIOT,PSHIVANI/Riot-Code,MarkXYang/RIOT,bartfaizoltan/RIOT,kerneltask/RIOT,Osblouf/RIOT,shady33/RIOT,OTAkeys/RIOT,beurdouche/RIOT,Darredevil/RIOT,MonsterCode8000/RIOT,kaspar030/RIOT,malosek/RIOT,A-Paul/RIOT,plushvoxel/RIOT,tdautc19841202/RIOT,JensErdmann/RIOT,gebart/RIOT,yogo1212/RIOT,patkan/RIOT,haoyangyu/RIOT,gbarnett/RIOT,syin2/RIOT,PSHIVANI/Riot-Code,Yonezawa-T2/RIOT,katezilla/RIOT,zhuoshuguo/RIOT,smlng/RIOT,RBartz/RIOT,mziegert/RIOT,attdona/RIOT,plushvoxel/RIOT,LudwigOrtmann/RIOT,dailab/RIOT,biboc/RIOT,basilfx/RIOT,RubikonAlpha/RIOT,FrancescoErmini/RIOT,lebrush/RIOT,mziegert/RIOT,Osblouf/RIOT,mtausig/RIOT,l3nko/RIOT,roberthartung/RIOT,centurysys/RIOT,khhhh/RIOT,automote/RIOT,msolters/RIOT,gautric/RIOT,A-Paul/RIOT,altairpearl/RIOT,RIOT-OS/RIOT,Darredevil/RIOT,rajma996/RIOT,robixnai/RIOT,centurysys/RIOT,DipSwitch/RIOT,plushvoxel/RIOT,gautric/RIOT,ThanhVic/RIOT,tfar/RIOT,neumodisch/RIOT,ant9000/RIOT,wentaoshang/RIOT,ThanhVic/RIOT,ntrtrung/RIOT,plushvoxel/RIOT,yogo1212/RIOT,EmuxEvans/RIOT,FrancescoErmini/RIOT,basilfx/RIOT,centurysys/RIOT,cladmi/RIOT,OTAkeys/RIOT,Lexandro92/RIOT-CoAP,latsku/RIOT,msolters/RIOT,jasonatran/RIOT,Ell-i/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,Lexandro92/RIOT-CoAP,Josar/RIOT,herrfz/RIOT,Lexandro92/RIOT-CoAP,ant9000/RIOT,rajma996/RIOT,lazytech-org/RIOT,marcosalm/RIOT,LudwigKnuepfer/RIOT,Darredevil/RIOT,brettswann/RIOT,MohmadAyman/RIOT,RubikonAlpha/RIOT,smlng/RIOT,shady33/RIOT,dhruvvyas90/RIOT,avmelnikoff/RIOT,beurdouche/RIOT,robixnai/RIOT,herrfz/RIOT,attdona/RIOT,dailab/RIOT,khhhh/RIOT,roberthartung/RIOT,tfar/RIOT,BytesGalore/RIOT,haoyangyu/RIOT,dkm/RIOT,rousselk/RIOT,jasonatran/RIOT,MarkXYang/RIOT,lazytech-org/RIOT,kb2ma/RIOT,marcosalm/RIOT,jremmert-phytec-iot/RIOT |
7ddebf3b6651e4c18b9ec9692c214429b5e89912 | Modules/Components/DisplacementFieldMeshWarper/include/selxModuleDisplacementFieldMeshWarper.h | Modules/Components/DisplacementFieldMeshWarper/include/selxModuleDisplacementFieldMeshWarper.h | /*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#include "selxTypeList.h"
#include "selxDisplacementFieldMeshWarperComponent.h"
namespace selx
{
using ModuleDisplacementFieldMeshWarperComponents = selx::TypeList<
ItkDisplacementFieldMeshWarperComponent< 2, float, float >
>;
}
| Add displacement mesh warper module header file | ENH: Add displacement mesh warper module header file
| C | apache-2.0 | kaspermarstal/SuperElastix,kaspermarstal/SuperElastix,SuperElastix/SuperElastix,SuperElastix/SuperElastix,kaspermarstal/SuperElastix,SuperElastix/SuperElastix,SuperElastix/SuperElastix |
|
b6e07bbe538d0e7620b5f8c4786526f485e9c6fa | tests/addition_tests.c | tests/addition_tests.c | #include <check.h>
#include "../src/roman_calculator.h"
START_TEST(can_add_by_simple_repetition)
{
ck_assert_str_eq("II", roman_calculator_add("I", "I"));
ck_assert_str_eq("III", roman_calculator_add("I", "II"));
ck_assert_str_eq("XXX", roman_calculator_add("XX", "X"));
ck_assert_str_eq("CC", roman_calculator_add("C", "C"));
ck_assert_str_eq("MMM", roman_calculator_add("M", "MM"));
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
return test_case;
}
| #include <stdlib.h>
#include <check.h>
#include "../src/roman_calculator.h"
void verify_addition(const char *left, const char *right, const char *expected_result) {
char *actual_result = roman_calculator_add(left, right);
ck_assert_msg(
strcmp(expected_result, actual_result) == 0,
"%s + %s: expected %s, but was %s",
left, right, expected_result, actual_result);
free(actual_result);
}
START_TEST(can_add_by_simple_repetition)
{
verify_addition("I", "I", "II");
verify_addition("I", "II", "III");
verify_addition("XX", "X", "XXX");
verify_addition("C", "C", "CC");
verify_addition("M", "MM", "MMM");
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
return test_case;
}
| Make sure to free memory in tests, and have better failure messages | Make sure to free memory in tests, and have better failure messages
| C | mit | greghaskins/roman-calculator.c |
f58c4ece0ec733f0703325c9d3d38c786258d493 | tests/regression/56-witness/05-prec-problem.c | tests/regression/56-witness/05-prec-problem.c | //PARAM: --enable witness.yaml.enabled --enable ana.int.interval
#include <stdlib.h>
int foo(int* ptr1, int* ptr2){
int result;
if(ptr1 == ptr2){
result = 0;
} else {
result = 1;
}
// Look at the generated witness.yml to check whether there contradictory precondition_loop_invariant[s]
return result;
}
int main(){
int five = 5;
int five2 = 5;
int y = foo(&five, &five);
int z = foo(&five, &five2);
assert(y != z);
return 0;
}
| Add example where the generated witnesses are unsound. | Add example where the generated witnesses are unsound.
In this example, among others, the following precondition_loop_invariants are generated:
loop_invariant:
string: result == 1
[...]
precondition:
string: '*ptr1 == 5 && *ptr2 == 5'
and:
loop_invariant:
string: result == 0
[...]
precondition:
string: '*ptr1 == 5 && *ptr2 == 5'
To fix this issue, grouping of precondition_loop_invariants is required.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
231c752d99db285edc7cdfce77297ce63f23f34a | src/tconf.c | src/tconf.c | // Copyright 2017 Adam Cowdy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "tconf.h"
#include <stdio.h>
#define TCONF_INPUT_SOURCE_FILE 0
#define TCONF_INPUT_SOURCE_STRING 1
tconf_parser_t *tconf_new_file_parser(FILE *file) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_FILE;
parser->input.file = file;
return parser;
}
tconf_parser_t *tconf_new_string_parser(char *string) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_STRING;
parser->input.string = string;
return parser;
}
| // Copyright 2017 Adam Cowdy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "tconf.h"
#include <stdio.h>
#include <stdlib.h>
#define TCONF_INPUT_SOURCE_FILE 0
#define TCONF_INPUT_SOURCE_STRING 1
tconf_parser_t *tconf_new_file_parser(FILE *file) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_FILE;
parser->input.file = file;
return parser;
}
tconf_parser_t *tconf_new_string_parser(char *string) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_STRING;
parser->input.string = string;
return parser;
}
| Fix 'implicitly declaring library function 'malloc' ...' warning | Fix 'implicitly declaring library function 'malloc' ...' warning
| C | apache-2.0 | Acowdy/tconf |
b36bf96bc95556d07cfa3c289beb51a998723d19 | library/library_pch.h | library/library_pch.h | #pragma once
#include "dependencies/tinyformat/tinyformat.h"
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/locale.hpp>
#include <cstdint>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <ostream>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
| #pragma once
#include "dependencies/tinyformat/tinyformat.h"
#include <algorithm>
#include <cstdint>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <ostream>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
| Remove some rarely-used headers from library pch | Remove some rarely-used headers from library pch
| C | mit | FranciscoDA/OpenApoc,Istrebitel/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc |
2d48efc8e7fd44688f5dcb8bad5b91ffba39c0aa | src/google/protobuf/stubs/atomicops_internals_pnacl.h | src/google/protobuf/stubs/atomicops_internals_pnacl.h | // Protocol Buffers - Google's data interchange format
// Copyright 2012 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This file is an internal atomic implementation, use atomicops.h instead.
#ifndef GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_PNACL_H_
#define GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_PNACL_H_
namespace google {
namespace protobuf {
namespace internal {
inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,
Atomic32 old_value,
Atomic32 new_value) {
return __sync_val_compare_and_swap(ptr, old_value, new_value);
}
inline void MemoryBarrier() {
__sync_synchronize();
}
inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr,
Atomic32 old_value,
Atomic32 new_value) {
Atomic32 ret = NoBarrier_CompareAndSwap(ptr, old_value, new_value);
MemoryBarrier();
return ret;
}
inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
MemoryBarrier();
*ptr = value;
}
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
Atomic32 value = *ptr;
MemoryBarrier();
return value;
}
} // namespace internal
} // namespace protobuf
} // namespace google
#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_PNACL_H_
| Add the missing PNaCl atomicops support. | Add the missing PNaCl atomicops support.
| C | bsd-3-clause | LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf |
|
c1289c7c8c4b373ca6682c3e33fa1f030b46685c | examples/blink_modular/Atm_blink.h | examples/blink_modular/Atm_blink.h |
#ifndef Atm_blink_h
#define Atm_blink_h
#include <Automaton.h>
class Atm_blink: public Machine {
public:
Atm_blink( void ) : Machine() { class_label = "BLNK"; };
short pin;
atm_timer_millis timer;
enum { LED_ON, LED_OFF } STATES;
enum { EVT_TIMER, ELSE } EVENTS;
enum { ACT_ON, ACT_OFF } ACTIONS;
Atm_blink & begin( int attached_pin, int blinkrate );
Atm_blink & onSwitch( swcb_sym_t switch_callback );
int event( int id );
void action( int id );
};
#endif
|
#ifndef Atm_blink_h
#define Atm_blink_h
#include <Automaton.h>
class Atm_blink: public Machine {
public:
Atm_blink( void ) : Machine() { class_label = "BLNK"; };
short pin;
atm_timer_millis timer;
enum { LED_ON, LED_OFF } STATES;
enum { EVT_TIMER, ELSE } EVENTS;
enum { ACT_ON, ACT_OFF } ACTIONS;
Atm_blink & begin( int attached_pin, uint32_t blinkrate );
Atm_blink & onSwitch( swcb_sym_t switch_callback );
int event( int id );
void action( int id );
};
#endif
| Update blink_modular.ino: changed blinkrate argument to uint32_t | Update blink_modular.ino: changed blinkrate argument to uint32_t | C | mit | tinkerspy/Automaton,tinkerspy/Automaton |
a0ff95bed586084cdbd693a3f71e902c7aafa7f2 | targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c | targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "PeripheralPins.h"
#include "PeripheralPinMaps.h"
| /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "PeripheralPins.h"
#include "PeripheralPinMaps.h"
// List of GPIOs with limited functionality
const PinList *pinmap_gpio_restricted_pins()
{
static const PinName pins[] = {
A4, // fixed pull-up (for I2C)
A5, // fixed pull-up (for I2C)
D5, // fixed pull-up (for LED)
D3, // fixed pull-up (for LED)
D4, // fixed pull-up (for LED)
D7, // fixed pull-up
D15, // fixed pull-up (for I2C)
D14 // fixed pull-up (for I2C)
};
static const PinList pin_list = {
sizeof(pins) / sizeof(pins[0]),
pins
};
return &pin_list;
}
| Add restricted GPIO pins for FPGA testing | LPC55S69: Add restricted GPIO pins for FPGA testing
| C | apache-2.0 | kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed |
9ff859ce71b1df689af6df4434ceddd7c107e8b1 | apps/Empty/main.c | apps/Empty/main.c | /*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//-------------------------------------------
// Blink - demo application that blinks a single LED with one second interval
//-------------------------------------------
#include "stdmansos.h"
void appMain(void)
{
}
| /*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//-------------------------------------------
// Empty - demo application that compiles and does nothing
//-------------------------------------------
#include "stdmansos.h"
void appMain(void)
{
}
| Fix comment for Empty app | Fix comment for Empty app
| C | mit | IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS |
f6cddeef0ef79460b257b86e6ffe5cb57534c28e | OneTimePasswordLegacy/OneTimePasswordLegacy.h | OneTimePasswordLegacy/OneTimePasswordLegacy.h | //
// OneTimePasswordLegacy.h
// OneTimePasswordLegacy
//
// Created by Matt Rubin on 7/10/14.
// Copyright (c) 2014 Matt Rubin. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for OneTimePasswordLegacy.
FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber;
//! Project version string for OneTimePasswordLegacy.
FOUNDATION_EXPORT const unsigned char OneTimePasswordLegacyVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <OneTimePasswordLegacy/PublicHeader.h>
#import <OneTimePasswordLegacy/OTPTypes.h>
| //
// OneTimePasswordLegacy.h
// OneTimePasswordLegacy
//
// Created by Matt Rubin on 7/10/14.
// Copyright (c) 2014 Matt Rubin. All rights reserved.
//
@import Foundation;
//! Project version number for OneTimePasswordLegacy.
FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber;
//! Project version string for OneTimePasswordLegacy.
FOUNDATION_EXPORT const unsigned char OneTimePasswordLegacyVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <OneTimePasswordLegacy/PublicHeader.h>
#import <OneTimePasswordLegacy/OTPTypes.h>
| Remove unnecessary import of UIKit | Remove unnecessary import of UIKit
| C | mit | mattrubin/onetimepassword,mattrubin/onetimepassword |
4447cbac38eca7657a77e5d96a4c9f9d9710207c | src/main.c | src/main.c | /**
* main.c
*
* Copyright (C) 2017 Nickolas Burr <[email protected]>
*/
#include "common.h"
#include "argv.h"
#include "daemon.h"
#include "usage.h"
int main (int argc, char *argv[]) {
int i;
/**
* If the `--help` option was given, display usage details and exit
*/
if (in_array(GIT_STASHD_USAGE_OPT, argv, argc)) {
pfusage();
printf("%d\n", is_dir("/var/log"));
exit(EXIT_SUCCESS);
}
/**
* Start daemon process
*/
// stashd();
for (i = 0; i < argc; i += 1) {
const char *flag = argv[i];
printf("%s\n", flag);
}
FILE *fp = fopen(GIT_STASHD_LOG_FILE, GIT_STASHD_LOG_MODE);
if (!fp) {
printf("Error opening file %s\n", GIT_STASHD_LOG_FILE);
exit(EXIT_FAILURE);
}
while (1) {
fprintf(fp, "git-stashd started.\n");
sleep(10);
break;
}
fprintf(fp, "git-stashd terminated.\n");
fclose(fp);
return EXIT_SUCCESS;
}
| /**
* main.c
*
* Copyright (C) 2017 Nickolas Burr <[email protected]>
*/
#include "common.h"
#include "argv.h"
#include "daemon.h"
#include "usage.h"
int main (int argc, char *argv[]) {
/**
* If the `--help` option was given, display usage details and exit.
*/
if (in_array(GIT_STASHD_USAGE_OPT, argv, argc)) {
pfusage();
printf("%d\n", is_dir("/var/log"));
exit(EXIT_SUCCESS);
}
/**
* If the `--daemon` option was given, start a daemon.
*/
if (in_array("--daemon", argv, argc)) {
stashd("/var/log");
}
FILE *fp = fopen(GIT_STASHD_LOG_FILE, GIT_STASHD_LOG_MODE);
if (!fp) {
printf("Error opening file %s\n", GIT_STASHD_LOG_FILE);
exit(EXIT_FAILURE);
}
while (1) {
fprintf(fp, "git-stashd started.\n");
sleep(10);
break;
}
fprintf(fp, "git-stashd terminated.\n");
fclose(fp);
return EXIT_SUCCESS;
}
| Work on --daemon option handling | Work on --daemon option handling
| C | mit | nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd |
cceede5a3cbe1b8b508b8193aafb75d44319d472 | gps-transmitter/gps_transmitter/xbee_helpers.h | gps-transmitter/gps_transmitter/xbee_helpers.h | /*
*
*/
typedef union {
float floatingPoint;
byte binary[4];
} binaryFloat;
uint8_t setXBeePanId (uint16_t addr);
uint8_t setXBeeMyAddress (uint16_t addr);
uint8_t setXBeeChannel (uint8_t channel);
uint8_t setXBeeHoppingChannel (uint8_t channel);
uint8_t setXBeeChannelVerification (uint8_t mode);
uint8_t setXBeeNetworkWatchdogTimeout (uint16_t timeout);
uint8_t resetXBeeNetwork (uint8_t mode);
void setPayload (float lat, float lng, uint8_t* payload);
| /*
*
*/
typedef union {
float floatingPoint;
byte binary[4];
} binaryFloat;
uint8_t setXBeePanId (uint16_t addr);
uint8_t setXBeeMyAddress (uint16_t addr);
uint8_t setXBeeChannel (uint8_t channel);
uint8_t setXBeeHoppingChannel (uint8_t channel);
uint8_t setXBeeChannelVerification (uint8_t mode);
uint8_t setXBeeNetworkWatchdogTimeout (uint16_t timeout);
uint8_t resetXBeeNetwork (uint8_t mode);
void setPayload (byte status, float lat, float lng, uint8_t* payload);
| Make the declatarion match reality. | Make the declatarion match reality.
| C | isc | lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker |
c9df2beb473f7461797074c51789761e0dbc1567 | cmake/utils/CheckJemallocBuilds.c | cmake/utils/CheckJemallocBuilds.c | #include <jemalloc.h>
int main(int argc, char** argv) {
(void)argv;
return argc + (int)(malloc(42));
}
| #include <jemalloc.h>
int main(int argc, char** argv) {
void *volatile dummyPtr = malloc(42);
(void)argv;
return argc;
}
| Fix a -Wpointer-to-int-cast when searching Jemalloc | [CMAKE] Fix a -Wpointer-to-int-cast when searching Jemalloc
Summary:
This would trigger failures when `-Werror` is enabled, such as:
https://build.bitcoinabc.org/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=66573&guest=1#footer
Test Plan:
cmake -GNinja .. \
-DUSE_JEMALLOC_EXPERIMENTAL=ON \
-DCMAKE_C_FLAGS=-Werror
This will fail before this patch and succeed after.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6343
| C | mit | cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc |
e0b1bc3afd755baa44092cfb0e80926718f8f9f8 | ObjectiveC_AdvancedFeatures/ObjectiveC_AdvancedFeatures/Protocol_and_Proxy/MyProtocol.h | ObjectiveC_AdvancedFeatures/ObjectiveC_AdvancedFeatures/Protocol_and_Proxy/MyProtocol.h | /**************************************************************************************************
* File name : MyProtocol.h
* Description : Study how to create a protocol and use it.
* Creator : Frederick Hsu
* Creation date: Wed. 07 Sep. 2016
* Copyright(C) 2016 All rights reserved.
*
**************************************************************************************************/
#ifndef MYPROTOCOL_H
#define MYPROTOCOL_H
#import <Foundation/Foundation.h>
@protocol MyProtocol <NSObject>
-(void)eat;
@optional
-(void)run;
@end
#endif /* MYPROTOCOL_H */ | Define a protocol, study how to create and use the protocol in Objective-C programming. | Define a protocol, study how to create and use the protocol in Objective-C programming.
| C | apache-2.0 | Frederick-Hsu/iOS_Objective_C_Development,Frederick-Hsu/iOS_Objective_C_Development |
|
b575eb91ea7cf5917ac6917e9ce2fb289915e24b | kernel/muen/muen-console.c | kernel/muen/muen-console.c | /*
* Copyright (c) 2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a unikernel base layer.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose with or without fee is hereby granted, provided
* that the above copyright notice and this permission notice appear
* in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../kernel.h"
#include "sinfo.h"
#include "writer.h"
#define DEBUGLOG_PROTO 0xf00789094b6f70cfUL
struct log_msg {
uint64_t timestamp;
char data[56];
} __attribute__((packed));
static struct muchannel *channel_out;
static struct log_msg msg_buffer;
static int msg_index;
static void clear_buffer()
{
msg_index = 0;
memset(&msg_buffer, 0, sizeof(struct log_msg));
}
static void flush()
{
msg_buffer.timestamp = muen_get_sched_start();
muen_channel_write(channel_out, &msg_buffer);
clear_buffer();
}
int platform_puts(const char *buf, int n)
{
int i;
for (i = 0; i < n; i++) {
if (buf[i] && buf[i] != 0x0d)
{
msg_buffer.data[msg_index] = buf[i];
if (msg_index == 55 || buf[i] == 0x0a)
flush();
else
msg_index++;
}
}
return n;
}
int solo5_console_write(const char *, size_t)
__attribute__ ((alias("platform_puts")));
void console_init(void)
{
struct muen_channel_info channel;
uint64_t epoch;
if (!muen_get_channel_info("debuglog", &channel)) {
return;
}
clear_buffer();
epoch = muen_get_sched_start();
channel_out = (struct muchannel *)(channel.address);
muen_channel_init_writer(channel_out, DEBUGLOG_PROTO, sizeof(struct log_msg),
channel.size, epoch);
log(INFO, "Solo5: Console: Muen Channel @ 0x%lx, size 0x%lx, epoch 0x%lx\n",
channel.address, channel.size, epoch);
}
| Add console implementation for Muen | Add console implementation for Muen
The console writes output using a shared memory stream channel.
| C | isc | djwillia/solo5,Weichen81/solo5,Weichen81/solo5,mato/solo5,mato/solo5,djwillia/solo5,Weichen81/solo5,djwillia/solo5,Solo5/solo5,Solo5/solo5,mato/solo5 |
|
6d21ed0d97f5486c6508082c3646ad26024dc7a6 | src/plugins/zlib/istream-bzlib.c | src/plugins/zlib/istream-bzlib.c | /* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#define gzseek BZ2_bzseek
#define i_stream_create_zlib i_stream_create_bzlib
#include "istream-zlib.c"
#endif
| /* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <stdio.h>
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#define gzseek BZ2_bzseek
#define i_stream_create_zlib i_stream_create_bzlib
#include "istream-zlib.c"
#endif
| Include stdio.h in case bzlib.h needs it. | bzlib: Include stdio.h in case bzlib.h needs it.
| C | mit | LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot |
3446ef49a05fe50bc1e6632983f9d78033af7be4 | src/global_mapper/global_mapper.h | src/global_mapper/global_mapper.h | // Copyright 2017 Massachusetts Institute of Technology
#pragma once
#include <csignal>
#include <deque>
#include <vector>
#include <mutex>
#include "pcl_ros/point_cloud.h"
namespace global_mapper {
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
class GlobalMapper {
public:
explicit GlobalMapper(volatile std::sig_atomic_t* stop_signal_ptr_);
~GlobalMapper();
void PushPointCloud(const PointCloud::ConstPtr& point_cloud);
const PointCloud::ConstPtr PopPointCloud();
const PointCloud::ConstPtr TransformPointCloud(const PointCloud::ConstPtr& point_cloud);
void InsertPointCloud(const PointCloud::ConstPtr& point_cloud);
void Run();
volatile std::sig_atomic_t* stop_signal_ptr_;
// std::mutex mutex_;
private:
std::deque<PointCloud::ConstPtr > point_cloud_buffer_;
int global_map_size_x_;
int global_map_size_y_;
int global_map_size_z_;
std::vector<float> global_map_;
};
} // namespace global_mapper
| // Copyright 2017 Massachusetts Institute of Technology
#pragma once
#include <csignal>
#include <deque>
#include <vector>
#include <mutex>
#include "pcl_ros/point_cloud.h"
namespace global_mapper {
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
class GlobalMapper {
public:
explicit GlobalMapper(volatile std::sig_atomic_t* stop_signal_ptr_);
~GlobalMapper();
GlobalMapper(const GlobalMapper& rhs) = delete;
GlobalMapper& operator=(const GlobalMapper& rhs) = delete;
GlobalMapper(GlobalMapper&& rhs) = delete;
GlobalMapper& operator=(GlobalMapper&& rhs) = delete;
void PushPointCloud(const PointCloud::ConstPtr& point_cloud);
const PointCloud::ConstPtr PopPointCloud();
const PointCloud::ConstPtr TransformPointCloud(const PointCloud::ConstPtr& point_cloud);
void InsertPointCloud(const PointCloud::ConstPtr& point_cloud);
void Run();
volatile std::sig_atomic_t* stop_signal_ptr_;
// std::mutex mutex_;
private:
std::deque<PointCloud::ConstPtr > point_cloud_buffer_;
int global_map_size_x_;
int global_map_size_y_;
int global_map_size_z_;
std::vector<float> global_map_;
};
} // namespace global_mapper
| Delete copy and move constructors. | Delete copy and move constructors.
| C | mit | jakeware/global_mapper |
0cd7be4c4d330aa4f8918986b59e104411bf107d | test/PCH/modified-header-crash.c | test/PCH/modified-header-crash.c | // Don't crash.
// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
// RUN: touch %S/modified-header-crash.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
void f(void) {
foo = 3;
}
| // Don't crash.
// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
// RUN: touch %S/modified-header-crash.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
// FIXME: On Windows we don't detect that the header was modified ?
// XFAIL: win32
void f(void) {
foo = 3;
}
| Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp. | Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130204 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang |
467b5716d03b64dfe37c66769576ce9fe1d7fa62 | tests/matcher_argument_run_tests.c | tests/matcher_argument_run_tests.c | //
// Created by Jake Kinsella on 6/19/17.
//
#include <assert.h>
#include "../src/matcher/matcher.h"
int main(int argc, const char* argv[])
{
return 0;
}
| //
// Created by Jake Kinsella on 6/19/17.
//
#include <assert.h>
#include "../src/matcher/matcher.h"
#include "../src/registers.h"
void dst_run(uint8_t *dst_register);
void src_run(const uint8_t src_register);
void rp_run(RegisterPair *dst_register_pair);
void dst_src_run(uint8_t *dst_register, const uint8_t src_register);
int value_register1 = 0;
int value_register2 = 0;
int main(int argc, const char* argv[])
{
return 0;
}
void dst_run(uint8_t *dst_register)
{
value_register1 = *dst_register;
}
void src_run(const uint8_t src_register)
{
value_register1 = src_register;
}
void rp_run(RegisterPair *dst_register_pair)
{
value_register1 = combine_bytes(*dst_register_pair->register1, *dst_register_pair->register2);
}
void dst_src_run(uint8_t *dst_register, const uint8_t src_register)
{
value_register1 = *dst_register;
value_register2 = src_register;
}
| Create dummy functions for future matcher tests | Create dummy functions for future matcher tests
| C | mit | TheLocust3/Intel-8080-Emulator,TheLocust3/Intel-8080-Emulator |
c7b85c55569d65966601ba3fc1cdc709d1693fe7 | src/qt/logging/messageboxlogger.h | src/qt/logging/messageboxlogger.h | /*Copyright 2010-2015 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
#ifndef GUTIL_NO_GUI_FUNCTIONALITY
#ifndef GUTIL_MESSAGEBOXLOGGER_H
#define GUTIL_MESSAGEBOXLOGGER_H
#include <gutil/ilog.h>
#include <QObject>
class QWidget;
namespace GUtil{ namespace Qt{
/** A logger implementation which displays the message in a modal dialog box. */
class MessageBoxLogger : public QObject, public GUtil::ILog
{
Q_OBJECT
QWidget *m_parentWidget;
public:
explicit MessageBoxLogger(QWidget *parent = 0);
virtual ~MessageBoxLogger() {}
/** Displays a modal dialog box with the title and message, with the
appropriate severity.
*/
virtual void Log(const LoggingData &) noexcept;
private slots:
void _log(const LoggingData &);
};
}}
#endif // GUTIL_MESSAGEBOXLOGGER_H
#endif // GUI_FUNCTIONALITY
| /*Copyright 2010-2015 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
#ifndef GUTIL_NO_GUI_FUNCTIONALITY
#ifndef GUTIL_MESSAGEBOXLOGGER_H
#define GUTIL_MESSAGEBOXLOGGER_H
#include <gutil/ilog.h>
#include <QObject>
class QWidget;
namespace GUtil{ namespace Qt{
/** A logger implementation which displays the message in a modal dialog box. */
class MessageBoxLogger : public QObject, public GUtil::ILog
{
Q_OBJECT
QWidget *m_parentWidget;
public:
explicit MessageBoxLogger(QWidget *parent = 0);
virtual ~MessageBoxLogger() {}
void SetParentWidget(QWidget *parent){ m_parentWidget = parent; }
QWidget *GetParentWidget() const{ return m_parentWidget; }
/** Displays a modal dialog box with the title and message, with the
appropriate severity.
*/
virtual void Log(const LoggingData &) noexcept;
private slots:
void _log(const LoggingData &);
};
}}
#endif // GUTIL_MESSAGEBOXLOGGER_H
#endif // GUI_FUNCTIONALITY
| Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger. | Allow to change the parent widget after construction. Sometimes your main
widget changes and you don't want to make a new logger.
| C | apache-2.0 | karagog/gutil,karagog/gutil,karagog/gutil |
496e639962fb8add9c62896cfd3c30096a1bdf08 | src/libOL/Chunks.h | src/libOL/Chunks.h | // Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#ifndef __libol__Chunks__
#define __libol__Chunks__
#include <vector>
#include <cstdint>
namespace libol {
namespace Chunks {
static std::vector<uint8_t> decrypt(std::vector<uint8_t> bytes, std::vector<uint8_t> key);
}
}
#endif /* defined(__libol__Chunks__) */
| // Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#ifndef __libol__Chunks__
#define __libol__Chunks__
#include <vector>
#include <cstdint>
namespace libol {
namespace Chunks {
std::vector<uint8_t> decryptAndDecompress(std::vector<uint8_t> bytes, std::vector<uint8_t> key);
}
}
#endif /* defined(__libol__Chunks__) */
| Fix dumb header issue (didn't update implementation) | Fix dumb header issue (didn't update implementation)
| C | mit | loldevs/libOL,loldevs/libOL |
7ddca23839bcd6316a185970fa78c2ce5813c23d | test/CodeGen/ms-inline-asm-EVEN.c | test/CodeGen/ms-inline-asm-EVEN.c | // RUN: %clang_cc1 %s -triple i386-unknown-unknown -fasm-blocks -emit-llvm -o - | FileCheck %s
// CHECK: .byte 64
// CHECK: .byte 64
// CHECK: .byte 64
// CHECK: .even
void t1() {
__asm {
.byte 64
.byte 64
.byte 64
EVEN
mov eax, ebx
}
}
| Add support for MS 'EVEN' directive | [X86][inline-asm] Add support for MS 'EVEN' directive
MS assembly syntax provide us with the 'EVEN' directive as a synonymous to at&t '.even'.
This patch include the (small, simple) changes need to allow it.
llvm-side:
https://reviews.llvm.org/D27417
Differential Revision: https://reviews.llvm.org/D27418
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@299454 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang |
|
ed2c064dc76995cd8027b7c27a4de00ffc28bebc | system.h | system.h | #ifndef SYSTEM_H
#define SYSTEM_H
#define FIXED_ADDRESS_MEMORY
#define IN_DATA_BUFFER_ADDRESS_TAG __at(0x200) // for CDC device (XC8)
#define OUT_DATA_BUFFER_ADDRESS_TAG __at(0x240)
#define CONTROL_BUFFER_ADDRESS_TAG __at(0x280)
#define DRIVER_DATA_ADDRESS_TAG __at(0x2C0)
#endif
| Use static USB buffer positions. | Use static USB buffer positions.
| C | apache-2.0 | kmzbrnoI/uLI-fw,kmzbrnoI/uLI-fw |
|
3306b3ed35a2501ad2b517e10b09940b85072d33 | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 0.004;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
| // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 1.0;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
| Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility impact of this change.
BUG=66078
TEST=none (tested manually with minimal test case)
Review URL: http://codereview.chromium.org/6546021
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@75430 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | junmin-zhu/chromium-rivertrail,patrickm/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,littlstar/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,ltilve/chromium,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,keishi/chromium,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,keishi/chromium,anirudhSK/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,robclark/chromium,ltilve/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,dednal/chromium.src,M4sse/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,keishi/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,Chilledheart/chromium,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,ondra-novak/chromium.src,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,Just-D/chromium-1,dednal/chromium.src,axinging/chromium-crosswalk,dednal/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,robclark/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,rogerwang/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,hujiajie/pa-chromium,keishi/chromium,Just-D/chromium-1,ondra-novak/chromium.src,keishi/chromium,patrickm/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,hujiajie/pa-chromium,ltilve/chromium,dushu1203/chromium.src,anirudhSK/chromium,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,keishi/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,jaruba/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,Jonekee/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,dushu1203/chromium.src,rogerwang/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,zcbenz/cefode-chromium,keishi/chromium,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,robclark/chromium,dushu1203/chromium.src,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,keishi/chromium,hgl888/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,rogerwang/chromium,robclark/chromium,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ltilve/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,dednal/chromium.src,markYoungH/chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,M4sse/chromium.src,ltilve/chromium,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,jaruba/chromium.src,chuan9/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,dednal/chromium.src,Chilledheart/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,dushu1203/chromium.src,robclark/chromium,ChromiumWebApps/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,rogerwang/chromium,patrickm/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,anirudhSK/chromium,M4sse/chromium.src,Jonekee/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,rogerwang/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,M4sse/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,robclark/chromium,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk |
037429a86d8cd163f2d0af608f6e415bdf891bab | webkit/glue/unittest_test_server.h | webkit/glue/unittest_test_server.h | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"
class UnittestTestServer : public net::TestServer {
public:
UnittestTestServer()
: net::TestServer(net::TestServer::TYPE_HTTP,
FilePath(FILE_PATH_LITERAL("webkit/data"))) {
}
};
#endif // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
| // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"
class UnittestTestServer : public net::TestServer {
public:
UnittestTestServer()
: net::TestServer(net::TestServer::TYPE_HTTP,
net::TestServer::kLocalhost,
FilePath(FILE_PATH_LITERAL("webkit/data"))) {
}
};
#endif // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
| Remove usage of a deprecated TestServer constructor. | Remove usage of a deprecated TestServer constructor.
Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details:
http://codereview.chromium.org/9369029/
A follow-up CL will remove the deprecated constructor:
http://codereview.chromium.org/9431002/
BUG=114369
TEST=everything still compiles and passes
Review URL: http://codereview.chromium.org/9429052
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@123095 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium |
aa7e1ce0e564afd205acd5fc1323cd18232b0620 | TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c | TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c | /* Copyright (c) 2018 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "test_pits.h"
#include "test_pits_impl.h"
psa_its_status_t test_psa_its_reset(void)
{
return test_psa_its_reset_impl();
}
| /* Copyright (c) 2018 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TARGET_PSA
#error [NOT_SUPPORTED] ITS tests can run only on PSA-enabled targets.
#endif // TARGET_PSA
#include "test_pits.h"
#include "test_pits_impl.h"
psa_its_status_t test_psa_its_reset(void)
{
return test_psa_its_reset_impl();
}
| Fix its tests in non-psa targets | Fix its tests in non-psa targets
| C | apache-2.0 | mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed |
0e52c608224046c8e6a737e13bf0ca258fea87e3 | src/ConfirmationHandler.h | src/ConfirmationHandler.h | /*
* This file is part of btag.
*
* © 2011 Fernando Tarlá Cardoso Lemos
*
* Refer to the LICENSE file for licensing information.
*
*/
#ifndef CONFIRMATION_HANDLER_H
#define CONFIRMATION_HANDLER_H
#include <string>
#include "BasicStringFilter.h"
#include "InteractiveTerminal.h"
class ConfirmationHandler
{
public:
ConfirmationHandler(InteractiveTerminal &terminal,
BasicStringFilter *input_filter = NULL, BasicStringFilter *output_filter = NULL);
void reset();
void set_local_default(const std::wstring &local);
bool ask(const std::wstring &question);
bool complies() const { return m_complies; }
const std::wstring &answer() const { return m_output; }
private:
bool do_ask(const std::wstring &question);
InteractiveTerminal &m_terminal;
BasicStringFilter *m_input_filter, *m_output_filter;
std::wstring m_global_def, m_local_def, m_output;
bool m_retry, m_complies;
};
#endif
| /*
* This file is part of btag.
*
* © 2011 Fernando Tarlá Cardoso Lemos
*
* Refer to the LICENSE file for licensing information.
*
*/
#ifndef CONFIRMATION_HANDLER_H
#define CONFIRMATION_HANDLER_H
#include <string>
#include "BasicStringFilter.h"
#include "InteractiveTerminal.h"
class ConfirmationHandler
{
public:
ConfirmationHandler(InteractiveTerminal &terminal,
BasicStringFilter *input_filter = NULL, BasicStringFilter *output_filter = NULL);
void reset();
void set_local_default(const std::wstring &local);
bool ask(const std::wstring &question);
bool complies() const { return m_complies; }
const std::wstring &answer() const { return m_output; }
private:
bool do_ask(const std::wstring &question);
InteractiveTerminal &m_terminal;
BasicStringFilter *m_input_filter, *m_output_filter;
std::wstring m_global_def, m_local_def, m_output;
bool m_complies;
};
#endif
| Remove unused private instance variable | Remove unused private instance variable
btag now compiles again in OS X without warnings.
| C | bsd-2-clause | fernandotcl/btag,fernandotcl/btag |
44562efeedb317fecdcbe60b802d86ec361b6f61 | ext/cool.io/ev_wrap.h | ext/cool.io/ev_wrap.h | #define EV_STANDALONE /* keeps ev from requiring config.h */
#ifdef _WIN32
# define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */
# define FD_SETSIZE 2048 /* wishful thinking, as msvcrt6 [?] seems to only allow 512 fd's and 256 sockets max */
#endif
#include "../libev/ev.h"
| #define EV_STANDALONE /* keeps ev from requiring config.h */
#ifdef _WIN32
#define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */
#define EV_USE_MONOTONIC 0
#define EV_USE_REALTIME 0
#endif
#include "../libev/ev.h"
| Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows | Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
| C | mit | nurse/cool.io,tarcieri/cool.io,nurse/cool.io,tarcieri/cool.io,tarcieri/cool.io,cosmo0920/cool.io,cosmo0920/cool.io |
0b0347a7fded792024f223c7693bed7f7a91881c | ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h | ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h | //
// NSString+RACKeyPathUtilities.h
// ReactiveCocoa
//
// Created by Uri Baghin on 05/05/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (RACKeyPathUtilities)
// Returns an array of the components of the receiver, or nil if the receiver is
// not a valid key path.
- (NSArray *)rac_keyPathComponents;
// Returns a key path with all the components of the receiver except for the
// last one or nil if the receiver is not a valid key path, or has only one
// component.
- (NSString *)rac_keyPathByDeletingLastKeyPathComponent;
// Returns a key path with all the components of the receiver expect for the
// first one or nil if the receiver is not a valid key path, or has only one
// component.
- (NSString *)rac_keyPathByDeletingFirstKeyPathComponent;
@end
| //
// NSString+RACKeyPathUtilities.h
// ReactiveCocoa
//
// Created by Uri Baghin on 05/05/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (RACKeyPathUtilities)
// Returns an array of the components of the receiver.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSArray *)rac_keyPathComponents;
// Returns a key path with all the components of the receiver except for the
// last one.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSString *)rac_keyPathByDeletingLastKeyPathComponent;
// Returns a key path with all the components of the receiver expect for the
// first one.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSString *)rac_keyPathByDeletingFirstKeyPathComponent;
@end
| Change RACKeyPathUtilities to be undefined on strings that aren't key paths. | Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
| C | mit | KJin99/ReactiveCocoa,buildo/ReactiveCocoa,pzw224/ReactiveCocoa,paulyoung/ReactiveCocoa,terry408911/ReactiveCocoa,swizzlr/ReactiveCocoa,brightcove/ReactiveCocoa,tonyli508/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,Khan/ReactiveCocoa,calebd/ReactiveCocoa,Ethan89/ReactiveCocoa,loupman/ReactiveCocoa,llb1119/test,KuPai32G/ReactiveCocoa,itschaitanya/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,DreamHill/ReactiveCocoa,zhiwen1024/ReactiveCocoa,imkerberos/ReactiveCocoa,tzongw/ReactiveCocoa,chao95957/ReactiveCocoa,tonyarnold/ReactiveCocoa,valleyman86/ReactiveCocoa,JohnJin007/ReactiveCocoa,icepy/ReactiveCocoa,libiao88/ReactiveCocoa,towik/ReactiveCocoa,clg0118/ReactiveCocoa,tiger8888/ReactiveCocoa,Eveian/ReactiveCocoa,vincentiss/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,hilllinux/ReactiveCocoa,SuPair/ReactiveCocoa,natestedman/ReactiveCocoa,zhukaixy/ReactiveCocoa,natan/ReactiveCocoa,yytong/ReactiveCocoa,calebd/ReactiveCocoa,WEIBP/ReactiveCocoa,brasbug/ReactiveCocoa,natan/ReactiveCocoa,LHDsimon/ReactiveCocoa,lixar/ReactiveCocoa,paulyoung/ReactiveCocoa,on99/ReactiveCocoa,Rupert-RR/ReactiveCocoa,chao95957/ReactiveCocoa,FelixYin66/ReactiveCocoa,victorlin/ReactiveCocoa,eyu1988/ReactiveCocoa,andersio/ReactiveCocoa,kaylio/ReactiveCocoa,KuPai32G/ReactiveCocoa,natestedman/ReactiveCocoa,JackLian/ReactiveCocoa,tonyarnold/ReactiveCocoa,calebd/ReactiveCocoa,howandhao/ReactiveCocoa,stevielu/ReactiveCocoa,takeshineshiro/ReactiveCocoa,zhiwen1024/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,pzw224/ReactiveCocoa,fanghao085/ReactiveCocoa,jrmiddle/ReactiveCocoa,DreamHill/ReactiveCocoa,zzzworm/ReactiveCocoa,tzongw/ReactiveCocoa,xiaoliyang/ReactiveCocoa,FelixYin66/ReactiveCocoa,dachaoisme/ReactiveCocoa,Ray0218/ReactiveCocoa,kevin-zqw/ReactiveCocoa,alvinvarghese/ReactiveCocoa,JohnJin007/ReactiveCocoa,chieryw/ReactiveCocoa,dz1111/ReactiveCocoa,zhigang1992/ReactiveCocoa,andersio/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,Juraldinio/ReactiveCocoa,ailyanlu/ReactiveCocoa,tiger8888/ReactiveCocoa,JackLian/ReactiveCocoa,jianwoo/ReactiveCocoa,bscarano/ReactiveCocoa,cogddo/ReactiveCocoa,Khan/ReactiveCocoa,gengjf/ReactiveCocoa,brasbug/ReactiveCocoa,xiaobing2007/ReactiveCocoa,esttorhe/ReactiveCocoa,xumaolin/ReactiveCocoa,yoichitgy/ReactiveCocoa,takeshineshiro/ReactiveCocoa,dskatz22/ReactiveCocoa,wangqi211/ReactiveCocoa,yytong/ReactiveCocoa,jrmiddle/ReactiveCocoa,buildo/ReactiveCocoa,fhchina/ReactiveCocoa,Carthage/ReactiveCocoa,yonekawa/ReactiveCocoa,dullgrass/ReactiveCocoa,bscarano/ReactiveCocoa,FelixYin66/ReactiveCocoa,ShawnLeee/ReactiveCocoa,isghe/ReactiveCocoa,SanChain/ReactiveCocoa,ohwutup/ReactiveCocoa,AllanChen/ReactiveCocoa,liufeigit/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,yonekawa/ReactiveCocoa,jsslai/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,libiao88/ReactiveCocoa,rpowelll/ReactiveCocoa,valleyman86/ReactiveCocoa,mtxs007/ReactiveCocoa,luerhouhou/ReactiveCocoa,kevin-zqw/ReactiveCocoa,emodeqidao/ReactiveCocoa,esttorhe/ReactiveCocoa,zxq3220122/ReactiveCocoa,dskatz22/ReactiveCocoa,qq644531343/ReactiveCocoa,dskatz22/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,add715/ReactiveCocoa,xulibao/ReactiveCocoa,terry408911/ReactiveCocoa,on99/ReactiveCocoa,leichunfeng/ReactiveCocoa,llb1119/test,llb1119/test,nickcheng/ReactiveCocoa,ioshger0125/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,qq644531343/ReactiveCocoa,jackywpy/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,BlessNeo/ReactiveCocoa,nickcheng/ReactiveCocoa,jam891/ReactiveCocoa,Liquidsoul/ReactiveCocoa,cnbin/ReactiveCocoa,kiurentu/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,cstars135/ReactiveCocoa,xumaolin/ReactiveCocoa,sandyway/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,andersio/ReactiveCocoa,xiaobing2007/ReactiveCocoa,liufeigit/ReactiveCocoa,itschaitanya/ReactiveCocoa,ShawnLeee/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,buildo/ReactiveCocoa,Carthage/ReactiveCocoa,Ricowere/ReactiveCocoa,hoanganh6491/ReactiveCocoa,sujeking/ReactiveCocoa,Remitly/ReactiveCocoa,sugar2010/ReactiveCocoa,chao95957/ReactiveCocoa,jianwoo/ReactiveCocoa,Pingco/ReactiveCocoa,alvinvarghese/ReactiveCocoa,ceekayel/ReactiveCocoa,jaylib/ReactiveCocoa,smilypeda/ReactiveCocoa,beni55/ReactiveCocoa,ztchena/ReactiveCocoa,dz1111/ReactiveCocoa,icepy/ReactiveCocoa,sandyway/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,bencochran/ReactiveCocoa,WEIBP/ReactiveCocoa,walkingsmarts/ReactiveCocoa,almassapargali/ReactiveCocoa,tonyarnold/ReactiveCocoa,koamac/ReactiveCocoa,Juraldinio/ReactiveCocoa,richeterre/ReactiveCocoa,ddc391565320/ReactiveCocoa,Pikdays/ReactiveCocoa,smilypeda/ReactiveCocoa,Pikdays/ReactiveCocoa,zhenlove/ReactiveCocoa,bensonday/ReactiveCocoa,nikita-leonov/ReactiveCocoa,KJin99/ReactiveCocoa,AlanJN/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,zzzworm/ReactiveCocoa,zzqiltw/ReactiveCocoa,jaylib/ReactiveCocoa,ioshger0125/ReactiveCocoa,xulibao/ReactiveCocoa,chieryw/ReactiveCocoa,add715/ReactiveCocoa,howandhao/ReactiveCocoa,Rupert-RR/ReactiveCocoa,cnbin/ReactiveCocoa,hbucius/ReactiveCocoa,mxxiv/ReactiveCocoa,jaylib/ReactiveCocoa,Ethan89/ReactiveCocoa,zhaoguohui/ReactiveCocoa,jeelun/ReactiveCocoa,yizzuide/ReactiveCocoa,dz1111/ReactiveCocoa,hj3938/ReactiveCocoa,towik/ReactiveCocoa,towik/ReactiveCocoa,ioshger0125/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,stupidfive/ReactiveCocoa,jam891/ReactiveCocoa,gengjf/ReactiveCocoa,Pingco/ReactiveCocoa,fanghao085/ReactiveCocoa,tonyli508/ReactiveCocoa,JohnJin007/ReactiveCocoa,vincentiss/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,jackywpy/ReactiveCocoa,jeelun/ReactiveCocoa,zhukaixy/ReactiveCocoa,cstars135/ReactiveCocoa,cstars135/ReactiveCocoa,jam891/ReactiveCocoa,emodeqidao/ReactiveCocoa,jeelun/ReactiveCocoa,Ricowere/ReactiveCocoa,zzqiltw/ReactiveCocoa,WEIBP/ReactiveCocoa,zzqiltw/ReactiveCocoa,ailyanlu/ReactiveCocoa,pzw224/ReactiveCocoa,leelili/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,zhaoguohui/ReactiveCocoa,taylormoonxu/ReactiveCocoa,j364960953/ReactiveCocoa,hoanganh6491/ReactiveCocoa,monkeydbobo/ReactiveCocoa,yonekawa/ReactiveCocoa,hj3938/ReactiveCocoa,richeterre/ReactiveCocoa,tornade0913/ReactiveCocoa,mtxs007/ReactiveCocoa,Khan/ReactiveCocoa,kiurentu/ReactiveCocoa,OneSmallTree/ReactiveCocoa,huiping192/ReactiveCocoa,kevin-zqw/ReactiveCocoa,335g/ReactiveCocoa,richeterre/ReactiveCocoa,gabemdev/ReactiveCocoa,eyu1988/ReactiveCocoa,sugar2010/ReactiveCocoa,bencochran/ReactiveCocoa,SanChain/ReactiveCocoa,victorlin/ReactiveCocoa,zhenlove/ReactiveCocoa,mxxiv/ReactiveCocoa,cogddo/ReactiveCocoa,nickcheng/ReactiveCocoa,zhigang1992/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,yoichitgy/ReactiveCocoa,victorlin/ReactiveCocoa,longv2go/ReactiveCocoa,SuPair/ReactiveCocoa,hilllinux/ReactiveCocoa,add715/ReactiveCocoa,wangqi211/ReactiveCocoa,longv2go/ReactiveCocoa,tornade0913/ReactiveCocoa,SmartEncounter/ReactiveCocoa,mattpetters/ReactiveCocoa,huiping192/ReactiveCocoa,almassapargali/ReactiveCocoa,BrooksWon/ReactiveCocoa,xulibao/ReactiveCocoa,on99/ReactiveCocoa,200895045/ReactiveCocoa,mattpetters/ReactiveCocoa,paulyoung/ReactiveCocoa,leichunfeng/ReactiveCocoa,jrmiddle/ReactiveCocoa,ShawnLeee/ReactiveCocoa,wpstarnice/ReactiveCocoa,valleyman86/ReactiveCocoa,eliperkins/ReactiveCocoa,DreamHill/ReactiveCocoa,zxq3220122/ReactiveCocoa,Remitly/ReactiveCocoa,loupman/ReactiveCocoa,CQXfly/ReactiveCocoa,ddc391565320/ReactiveCocoa,zhukaixy/ReactiveCocoa,ohwutup/ReactiveCocoa,jackywpy/ReactiveCocoa,Rupert-RR/ReactiveCocoa,ikesyo/ReactiveCocoa,BlessNeo/ReactiveCocoa,imkerberos/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,Ricowere/ReactiveCocoa,stupidfive/ReactiveCocoa,zhaoguohui/ReactiveCocoa,Eveian/ReactiveCocoa,hoanganh6491/ReactiveCocoa,BrooksWon/ReactiveCocoa,LHDsimon/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,ailyanlu/ReactiveCocoa,KJin99/ReactiveCocoa,liufeigit/ReactiveCocoa,imkerberos/ReactiveCocoa,almassapargali/ReactiveCocoa,goodheart/ReactiveCocoa,esttorhe/ReactiveCocoa,windgo/ReactiveCocoa,libiao88/ReactiveCocoa,brasbug/ReactiveCocoa,esttorhe/ReactiveCocoa,LHDsimon/ReactiveCocoa,terry408911/ReactiveCocoa,sdhzwm/ReactiveCocoa,AllanChen/ReactiveCocoa,tipbit/ReactiveCocoa,j364960953/ReactiveCocoa,clg0118/ReactiveCocoa,bscarano/ReactiveCocoa,stevielu/ReactiveCocoa,Farteen/ReactiveCocoa,eliperkins/ReactiveCocoa,nikita-leonov/ReactiveCocoa,gengjf/ReactiveCocoa,rpowelll/ReactiveCocoa,Liquidsoul/ReactiveCocoa,cnbin/ReactiveCocoa,shaohung001/ReactiveCocoa,ikesyo/ReactiveCocoa,monkeydbobo/ReactiveCocoa,ztchena/ReactiveCocoa,stevielu/ReactiveCocoa,Ray0218/ReactiveCocoa,walkingsmarts/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,zxq3220122/ReactiveCocoa,hj3938/ReactiveCocoa,leelili/ReactiveCocoa,kaylio/ReactiveCocoa,Pingco/ReactiveCocoa,icepy/ReactiveCocoa,windgo/ReactiveCocoa,beni55/ReactiveCocoa,zhigang1992/ReactiveCocoa,zhenlove/ReactiveCocoa,Pikdays/ReactiveCocoa,200895045/ReactiveCocoa,natan/ReactiveCocoa,sandyway/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,ericzhou2008/ReactiveCocoa,mattpetters/ReactiveCocoa,Juraldinio/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,isghe/ReactiveCocoa,walkingsmarts/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,200895045/ReactiveCocoa,taylormoonxu/ReactiveCocoa,huiping192/ReactiveCocoa,chieryw/ReactiveCocoa,brightcove/ReactiveCocoa,cogddo/ReactiveCocoa,nikita-leonov/ReactiveCocoa,Ethan89/ReactiveCocoa,jaylib/ReactiveCocoa,lixar/ReactiveCocoa,dullgrass/ReactiveCocoa,AlanJN/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,stupidfive/ReactiveCocoa,wpstarnice/ReactiveCocoa,tipbit/ReactiveCocoa,bencochran/ReactiveCocoa,shaohung001/ReactiveCocoa,rpowelll/ReactiveCocoa,OneSmallTree/ReactiveCocoa,alvinvarghese/ReactiveCocoa,jsslai/ReactiveCocoa,koamac/ReactiveCocoa,nickcheng/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,kaylio/ReactiveCocoa,Carthage/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,Farteen/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,zhiwen1024/ReactiveCocoa,jsslai/ReactiveCocoa,dachaoisme/ReactiveCocoa,SmartEncounter/ReactiveCocoa,kiurentu/ReactiveCocoa,loupman/ReactiveCocoa,mtxs007/ReactiveCocoa,emodeqidao/ReactiveCocoa,sdhzwm/ReactiveCocoa,sujeking/ReactiveCocoa,leelili/ReactiveCocoa,ericzhou2008/ReactiveCocoa,takeshineshiro/ReactiveCocoa,qq644531343/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,AlanJN/ReactiveCocoa,ohwutup/ReactiveCocoa,yizzuide/ReactiveCocoa,Remitly/ReactiveCocoa,sugar2010/ReactiveCocoa,SuPair/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,Farteen/ReactiveCocoa,hbucius/ReactiveCocoa,dachaoisme/ReactiveCocoa,howandhao/ReactiveCocoa,CQXfly/ReactiveCocoa,tiger8888/ReactiveCocoa,JackLian/ReactiveCocoa,Eveian/ReactiveCocoa,dullgrass/ReactiveCocoa,yizzuide/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,eyu1988/ReactiveCocoa,CQXfly/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,Ricowere/ReactiveCocoa,koamac/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,longv2go/ReactiveCocoa,fanghao085/ReactiveCocoa,luerhouhou/ReactiveCocoa,BrooksWon/ReactiveCocoa,OneSmallTree/ReactiveCocoa,sujeking/ReactiveCocoa,fhchina/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,jianwoo/ReactiveCocoa,clg0118/ReactiveCocoa,SanChain/ReactiveCocoa,brightcove/ReactiveCocoa,xiaoliyang/ReactiveCocoa,ddc391565320/ReactiveCocoa,tonyli508/ReactiveCocoa,eliperkins/ReactiveCocoa,hilllinux/ReactiveCocoa,wpstarnice/ReactiveCocoa,isghe/ReactiveCocoa,windgo/ReactiveCocoa,Ray0218/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,shaohung001/ReactiveCocoa,hbucius/ReactiveCocoa,smilypeda/ReactiveCocoa,tornade0913/ReactiveCocoa,Liquidsoul/ReactiveCocoa,zzzworm/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,j364960953/ReactiveCocoa,beni55/ReactiveCocoa,yoichitgy/ReactiveCocoa,goodheart/ReactiveCocoa,xumaolin/ReactiveCocoa,fhchina/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,yytong/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,leichunfeng/ReactiveCocoa,goodheart/ReactiveCocoa,KuPai32G/ReactiveCocoa,gabemdev/ReactiveCocoa,itschaitanya/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,mxxiv/ReactiveCocoa,ericzhou2008/ReactiveCocoa,luerhouhou/ReactiveCocoa,tzongw/ReactiveCocoa,335g/ReactiveCocoa,bensonday/ReactiveCocoa,swizzlr/ReactiveCocoa,monkeydbobo/ReactiveCocoa,bensonday/ReactiveCocoa,xiaobing2007/ReactiveCocoa,xiaoliyang/ReactiveCocoa,wangqi211/ReactiveCocoa,sdhzwm/ReactiveCocoa,ceekayel/ReactiveCocoa,natestedman/ReactiveCocoa,ceekayel/ReactiveCocoa,vincentiss/ReactiveCocoa,lixar/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,BlessNeo/ReactiveCocoa,taylormoonxu/ReactiveCocoa,335g/ReactiveCocoa,ztchena/ReactiveCocoa,huiping192/ReactiveCocoa |
c938227b9fcbf43d079bfd3a1e12244da2b3b73c | include/psp2/update.h | include/psp2/update.h | /**
* \usergroup{SceUpdateMgr}
* \usage{psp2/update.h,SceSblSsUpdateMgr_stub}
*/
#ifndef _PSP2_UPDATE_MGR_H_
#define _PSP2_UPDATE_MGR_H_
#include <psp2/types.h>
typedef char SceUpdateMode;
#define SCE_UPDATE_MODE_SWU_GUI 0x10
#define SCE_UPDATE_MODE_SWU_CUI 0x30
/**
* Getting system update mode on boot
*
* @param[out] mode - The pointer of SceUpdateMode variable
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsGetUpdateMode(SceUpdateMode *mode);
/**
* Setting system update mode on boot
*
* @param[in] mode - The update mode
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsSetUpdateMode(SceUpdateMode mode);
/**
* Verify PUP
*
* @param[in] path - The PUP path
*
* @return 0 on success, < 0 on error.
*
* note - If verify CEX PUP on Devkit system, got error.
*/
int sceSblUsVerifyPup(const char *path);
#endif /* _PSP2_UPDATE_MGR_H_ */
| /**
* \usergroup{SceUpdateMgr}
* \usage{psp2/update.h,SceSblSsUpdateMgr_stub}
*/
#ifndef _PSP2_UPDATE_MGR_H_
#define _PSP2_UPDATE_MGR_H_
#include <psp2/types.h>
typedef char SceUpdateMode;
#define SCE_UPDATE_MODE_SWU_GUI 0x10
#define SCE_UPDATE_MODE_SWU_CUI 0x30
/**
* Getting system update mode on boot
*
* @param[out] mode - The pointer of SceUpdateMode variable
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsGetUpdateMode(SceUpdateMode *mode);
#define sceSblSsUpdateMgrGetBootMode sceSblUsGetUpdateMode
/**
* Setting system update mode on boot
*
* @param[in] mode - The update mode
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsSetUpdateMode(SceUpdateMode mode);
#define sceSblSsUpdateMgrSetBootMode sceSblUsSetUpdateMode
/**
* Verify PUP
*
* @param[in] path - The PUP path
*
* @return 0 on success, < 0 on error.
*
* note - If verify CEX PUP on Devkit system, got error.
*/
int sceSblUsVerifyPup(const char *path);
#endif /* _PSP2_UPDATE_MGR_H_ */
| Fix compatibility with some modules | Fix compatibility with some modules | C | mit | Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers |
8969691343354bdd80eff5405a0f879edbf013d6 | arch/x86/include/asm/jump_label.h | arch/x86/include/asm/jump_label.h | #ifndef _ASM_X86_JUMP_LABEL_H
#define _ASM_X86_JUMP_LABEL_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <asm/nops.h>
#define JUMP_LABEL_NOP_SIZE 5
# define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
# define JUMP_LABEL(key, label) \
do { \
asm goto("1:" \
JUMP_LABEL_INITIAL_NOP \
".pushsection __jump_table, \"a\" \n\t"\
_ASM_PTR "1b, %l[" #label "], %c0 \n\t" \
".popsection \n\t" \
: : "i" (key) : : label); \
} while (0)
#endif /* __KERNEL__ */
#ifdef CONFIG_X86_64
typedef u64 jump_label_t;
#else
typedef u32 jump_label_t;
#endif
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif
| #ifndef _ASM_X86_JUMP_LABEL_H
#define _ASM_X86_JUMP_LABEL_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <asm/nops.h>
#define JUMP_LABEL_NOP_SIZE 5
# define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
# define JUMP_LABEL(key, label) \
do { \
asm goto("1:" \
JUMP_LABEL_INITIAL_NOP \
".pushsection __jump_table, \"aw\" \n\t"\
_ASM_PTR "1b, %l[" #label "], %c0 \n\t" \
".popsection \n\t" \
: : "i" (key) : : label); \
} while (0)
#endif /* __KERNEL__ */
#ifdef CONFIG_X86_64
typedef u64 jump_label_t;
#else
typedef u32 jump_label_t;
#endif
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif
| Fix jump label with RO/NX module protection crash | x86: Fix jump label with RO/NX module protection crash
If we use jump table in module init, there are marked
as removed in __jump_table section after init is done.
But we already applied ro permissions on the module, so
we can't modify a read only section (crash in
remove_jump_label_module_init).
Make the __jump_table section rw.
Signed-off-by: Matthieu CASTET <[email protected]>
Cc: Xiaotian Feng <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Cc: Siarhei Liakh <[email protected]>
Cc: Xuxian Jiang <[email protected]>
Cc: James Morris <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs |
bbf167646bc113cbf33bc9e6e5bdf99314187e49 | test/CodeGen/ms-inline-asm-align.c | test/CodeGen/ms-inline-asm-align.c | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s --check-prefix=DARWIN
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fasm-blocks -emit-llvm -o - | FileCheck %s --check-prefix=WINDOWS
// On Windows, .align is in bytes, and on Darwin, .align is in log2 form. The
// Intel inline assembly parser should rewrite to the appropriate form depending
// on the platform.
void align_test() {
__asm align 8
__asm align 16;
__asm align 128;
__asm ALIGN 256;
}
// DARWIN-LABEL: define void @align_test()
// DARWIN: call void asm sideeffect inteldialect
// DARWIN-SAME: .align 3
// DARWIN-SAME: .align 4
// DARWIN-SAME: .align 7
// DARWIN-SAME: .align 8
// DARWIN-SAME: "~{dirflag},~{fpsr},~{flags}"()
// WINDOWS-LABEL: define void @align_test()
// WINDOWS: call void asm sideeffect inteldialect
// WINDOWS-SAME: .align 8
// WINDOWS-SAME: .align 16
// WINDOWS-SAME: .align 128
// WINDOWS-SAME: .align 256
// WINDOWS-SAME: "~{dirflag},~{fpsr},~{flags}"()
| Test case for alignment directive change in LLVM r251418 | [ms-inline-asm] Test case for alignment directive change in LLVM r251418
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@251419 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
|
ff4f57f38db46266b15f843aa65fb4eada76d9de | mod_xinerama/ls_xinerama.c | mod_xinerama/ls_xinerama.c | #include <X11/Xlib.h>
#include <X11/extensions/Xinerama.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
Display *dpy = XOpenDisplay(NULL);
int xinerama_event_base;
int xinerama_error_base;
bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base);
if (!xinerama_ready)
fprintf(stderr, "No Xinerama support detected, mod_xinerama won't do anything.");
else {
int nRects,i;
XineramaScreenInfo* sInfo = XineramaQueryScreens(dpy, &nRects);
for(i = 0 ; i < nRects ; ++i) {
fprintf(stdout, "Screen %d: %dx%d+%d+%d\n", i, sInfo[i].width, sInfo[i].height, sInfo[i].x_org, sInfo[i].y_org);
}
}
return 0;
}
| #include <X11/Xlib.h>
#include <X11/extensions/Xinerama.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
Display *dpy = XOpenDisplay(NULL);
int xinerama_event_base;
int xinerama_error_base;
bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base);
fprintf(stdout, "Basic Xinerama screen information - for all the details run 'xdpyinfo -ext XINERAMA'\n");
if (!xinerama_ready)
fprintf(stderr, "No Xinerama support detected, mod_xinerama won't do anything.");
else {
int nRects,i;
XineramaScreenInfo* sInfo = XineramaQueryScreens(dpy, &nRects);
for(i = 0 ; i < nRects ; ++i) {
fprintf(stdout, "Screen %d: %dx%d+%d+%d\n", i, sInfo[i].width, sInfo[i].height, sInfo[i].x_org, sInfo[i].y_org);
}
}
return 0;
}
| Document command to get even more details | Document command to get even more details
| C | lgpl-2.1 | knixeur/notion,neg-serg/notion,p5n/notion,dkogan/notion,raboof/notion,p5n/notion,dkogan/notion,p5n/notion,anoduck/notion,p5n/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,raboof/notion,anoduck/notion,raboof/notion,p5n/notion,raboof/notion,anoduck/notion,neg-serg/notion,knixeur/notion,dkogan/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,dkogan/notion.xfttest |
af1ac09a53e9b9f7d330522b7109c3ae65dbba61 | sys/sys/dataacq.h | sys/sys/dataacq.h | /* Header for general data acquisition definitions.
*/
#ifndef _SYS_DATAACQ_H_
#define _SYS_DATAACQ_H_
#include <sys/ioccom.h>
/* Period in microseconds between analog I/O samples.
*/
#define AD_MICRO_PERIOD_SET _IOW('A', 1, long)
#define AD_MICRO_PERIOD_GET _IOR('A', 2, long)
/* Gain list support. Initially all gains are 1. If the board
* supports no gains at all then AD_NGAINS_GET will return a 0.
*
* AD_NGAINS_GET: Return the number of gains the board supports
*
* AD_SUPPORTED_GAINS: Get the supported gains.
* The driver will copy out "ngains" doubles,
* where "ngains" is obtained with AD_NGAINS_GET.
*
* AD_GAINS_SET: Set the gain list. The driver will copy in "ngains" ints.
*
* AD_GAINS_GET: Get the gain list. The driver will copy out "ngains" ints.
*/
#define AD_NGAINS_GET _IOR('A', 3, int)
#define AD_NCHANS_GET _IOR('A', 4, int)
#define AD_SUPPORTED_GAINS _IO('A', 5)
#define AD_GAINS_SET _IO('A', 6)
#define AD_GAINS_GET _IO('A', 7)
#endif /* !_SYS_DATAACQ_H_ */
| Put back this wholly innocent victim of Mike's drive-by shooting on alog; it belongs to the labpc driver. Mike will be in the corner wearing the pointed hat, should anyone be looking for him. | Put back this wholly innocent victim of Mike's drive-by shooting on alog;
it belongs to the labpc driver. Mike will be in the corner wearing
the pointed hat, should anyone be looking for him.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
|
627c29bd229a5fb302087c4360d461079b59df9d | subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h | subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h | /*
* Called by the Gradle CUnit launcher to register all CUnit tests.
*/
void gradle_cunit_register(); | /*
* Called by the Gradle CUnit launcher to register all CUnit tests.
*/
void gradle_cunit_register();
| Add newline to end of generated cunit header file | Add newline to end of generated cunit header file
| C | apache-2.0 | blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle |
9f18e587c4365cab87c12df3ca889d96ee345e76 | test/unit/test_exception.c | test/unit/test_exception.c | #include "preamble.h"
int main(int argc, char const *argv[]) {
hvm_gen *gen = hvm_new_gen();
hvm_obj_ref *obj0 = NULL;
hvm_obj_ref *obj1 = NULL;
byte reg0 = hvm_vm_reg_gen(0);
byte reg1 = hvm_vm_reg_gen(1);
// Immediately jump to the code that's going to throw the exception
hvm_gen_goto_label(gen->block, "main");
// Label for the code to actually catch the exception
hvm_gen_label(gen->block, "catch");
// Do a straight die so the test harness can check the register and make
// sure there's an exception object in it
hvm_gen_die(gen->block);
hvm_gen_label(gen->block, "main");
// Register our exception handler for the frame
hvm_gen_catch_label(gen->block, "catch", reg0);
hvm_gen_structnew(gen->block, reg1);
hvm_gen_throw(gen->block, reg1);
hvm_gen_die(gen->block);
hvm_vm *vm = gen_chunk_and_run(gen);
obj0 = vm->general_regs[0];
obj1 = vm->general_regs[1];
// Make sure the object thrown and the object in the catch register are
// the same
assert_true(obj0 == obj1, "Expected thrown object and caught object to be the same");
return done();
}
| Add basic exceptions unit test | Add basic exceptions unit test
| C | mpl-2.0 | dirk/hivm,dirk/hivm,dirk/hivm,dirk/hivm |
|
8b3bbb541d210883666ea58c21e0bd33de8ac96c | list.h | list.h | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
#endif | #include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
#endif | Add List destroy function declaration | Add List destroy function declaration
| C | mit | MaxLikelihood/CADT |
816bde39fe14670950bca6555adfb25d62aed147 | chrome/nacl/nacl_broker_listener.h | chrome/nacl/nacl_broker_listener.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/common/nacl_types.h"
#include "ipc/ipc_channel.h"
// The BrokerThread class represents the thread that handles the messages from
// the browser process and starts NaCl loader processes.
class NaClBrokerListener : public IPC::Channel::Listener {
public:
NaClBrokerListener();
~NaClBrokerListener();
void Listen();
// IPC::Channel::Listener implementation.
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
private:
void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id);
void OnShareBrowserHandle(int browser_handle);
void OnStopBroker();
base::ProcessHandle browser_handle_;
scoped_ptr<IPC::Channel> channel_;
DISALLOW_COPY_AND_ASSIGN(NaClBrokerListener);
};
#endif // CHROME_NACL_NACL_BROKER_LISTENER_H_
| // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/common/nacl_types.h"
#include "ipc/ipc_channel.h"
// The BrokerThread class represents the thread that handles the messages from
// the browser process and starts NaCl loader processes.
class NaClBrokerListener : public IPC::Channel::Listener {
public:
NaClBrokerListener();
~NaClBrokerListener();
void Listen();
// IPC::Channel::Listener implementation.
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
private:
void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id);
void OnStopBroker();
base::ProcessHandle browser_handle_;
scoped_ptr<IPC::Channel> channel_;
DISALLOW_COPY_AND_ASSIGN(NaClBrokerListener);
};
#endif // CHROME_NACL_NACL_BROKER_LISTENER_H_
| Remove declaration of non-existent method | NaCl: Remove declaration of non-existent method
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9592039
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,keishi/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,hgl888/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,markYoungH/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,keishi/chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,markYoungH/chromium.src,robclark/chromium,jaruba/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,ltilve/chromium,robclark/chromium,dednal/chromium.src,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ltilve/chromium,robclark/chromium,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,keishi/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,patrickm/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,Jonekee/chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,Just-D/chromium-1,keishi/chromium,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,Just-D/chromium-1,Just-D/chromium-1,patrickm/chromium.src,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,robclark/chromium,Jonekee/chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,ltilve/chromium,Just-D/chromium-1,bright-sparks/chromium-spacewalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,rogerwang/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,patrickm/chromium.src,keishi/chromium,Jonekee/chromium.src,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,keishi/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,M4sse/chromium.src,littlstar/chromium.src,rogerwang/chromium,dednal/chromium.src,ChromiumWebApps/chromium,keishi/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,nacl-webkit/chrome_deps,Chilledheart/chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,anirudhSK/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,robclark/chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,patrickm/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,robclark/chromium,dednal/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,jaruba/chromium.src,keishi/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dednal/chromium.src,ChromiumWebApps/chromium,jaruba/chromium.src,jaruba/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,Just-D/chromium-1,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,keishi/chromium,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,robclark/chromium,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,patrickm/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,dednal/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,rogerwang/chromium,fujunwei/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,rogerwang/chromium,krieger-od/nwjs_chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,Jonekee/chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,patrickm/chromium.src,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,littlstar/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl |
74eb3e370f275ef1825b2a5fb877cf7f1ae9be52 | tests/regression/15-deadlock/11-common_mutex_nodeadlock.c | tests/regression/15-deadlock/11-common_mutex_nodeadlock.c | // PARAM: --set ana.activated[+] deadlock
#include <pthread.h>
#include <stdio.h>
int g1, g2;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex3 = PTHREAD_MUTEX_INITIALIZER;
void *t1(void *arg) {
pthread_mutex_lock(&mutex3); // NODEADLOCK
pthread_mutex_lock(&mutex1); // TODO NODEADLOCK (common mutex3)
pthread_mutex_lock(&mutex2); // TODO NODEADLOCK (common mutex3)
g1 = g2 + 1;
pthread_mutex_unlock(&mutex2);
pthread_mutex_unlock(&mutex1);
return NULL;
}
void *t2(void *arg) {
pthread_mutex_lock(&mutex3); // NODEADLOCK
pthread_mutex_lock(&mutex2); // TODO NODEADLOCK (common mutex3)
pthread_mutex_lock(&mutex1); // TODO NODEADLOCK (common mutex3)
g2 = g1 + 1;
pthread_mutex_unlock(&mutex1);
pthread_mutex_unlock(&mutex2);
return NULL;
}
int main(void) {
pthread_t id1, id2;
int i;
for (i = 0; i < 10000; i++) {
pthread_create(&id1, NULL, t1, NULL);
pthread_create(&id2, NULL, t2, NULL);
pthread_join (id1, NULL);
pthread_join (id2, NULL);
printf("%d: g1 = %d, g2 = %d.\n", i, g1, g2);
}
return 0;
}
| Add TODO no deadlock test due to common mutex | Add TODO no deadlock test due to common mutex
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
be9a42d018015f8c8a2037884a9bfa1e1a240676 | src/chemkit/vector3.h | src/chemkit/vector3.h | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <[email protected]>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** chemkit is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with chemkit. If not, see <http://www.gnu.org/licenses/>.
**
******************************************************************************/
#ifndef CHEMKIT_VECTOR3_H
#define CHEMKIT_VECTOR3_H
#include "chemkit.h"
#include "genericvector.h"
namespace chemkit {
/// A three-dimensional vector.
typedef GenericVector<Float> Vector3;
typedef GenericVector<float> Vector3f;
typedef GenericVector<double> Vector3d;
} // end chemkit namespace
#endif // CHEMKIT_VECTOR3_H
| /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <[email protected]>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** chemkit is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with chemkit. If not, see <http://www.gnu.org/licenses/>.
**
******************************************************************************/
#ifndef CHEMKIT_VECTOR3_H
#define CHEMKIT_VECTOR3_H
#include "chemkit.h"
#include "genericvector.h"
namespace chemkit {
/// A three-dimensional vector.
typedef GenericVector<Float> Vector3;
/// A three-dimensional vector containing \c float values.
typedef GenericVector<float> Vector3f;
/// A three-dimensional vector containing \c double values.
typedef GenericVector<double> Vector3d;
} // end chemkit namespace
#endif // CHEMKIT_VECTOR3_H
| Add documentation to Vector3 typedefs | Add documentation to Vector3 typedefs
This adds documentation for the Vector3f and Vector3d
typedefs.
| C | bsd-3-clause | kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit |
2db6decc5d89b83aa2560f11f0039925998095a5 | src/exercise203.c | src/exercise203.c | /*
* A solution to Exercise 2-3 in The C Programming Language (Second Edition).
*
* This file was written by Damien Dart <[email protected]>. This is free
* and unencumbered software released into the public domain. For more
* information, please refer to the accompanying "UNLICENCE" file.
*/
#include <ctype.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
int32_t htoi(char *);
int main(void)
{
/* This whole this is pretty fragile. Don't feed it exotic input and things
* should be ok. A few checks here and there wouldn't go amiss.
* TODO: Handle invalid and exotic input properly. */
char *buffer = NULL;
uint32_t buffer_length = 0;
char character = 0;
while ((character = getchar()) != EOF) {
if (!(isspace(character))) {
buffer = realloc(buffer, ++buffer_length * sizeof(char));
buffer[buffer_length - 1] = character;
}
}
buffer = realloc(buffer, ++buffer_length * sizeof(char));
buffer[buffer_length - 1] = '\0';
printf("%d\n", htoi(buffer));
return EXIT_SUCCESS;
}
int32_t htoi(char *string)
{
int32_t value = 0;
uint32_t start_position = string[0] == '-' ? 1 : 0;
if (string[start_position] == '0' &&
(string[start_position + 1] == 'x' ||
string[start_position + 1] == 'X')) {
start_position += 2;
}
uint32_t i = 0;
for ( ; string[i] != '\0'; i++);
for (uint32_t j = 0; i > start_position; i--, j++) {
if (string[i - 1] >= '0' && string[i - 1] <= '9') {
value += (string[i - 1] - '0') * (int)pow(16, j);
} else if (string[i - 1] >= 'a' && string[i - 1] <= 'f') {
value += ((string[i - 1] - 'a') + 10) * (int)pow(16, j);
} else if (string[i - 1] >= 'A' && string[i - 1] <= 'F') {
value += ((string[i - 1] - 'A') + 10) * (int)pow(16, j);
} else {
/* FIXME: Handle invalid input properly. */
return 0;
}
}
return string[0] == '-' ? -(value) : value;
}
| Add solution to Exercise 2-3. | Add solution to Exercise 2-3.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions |
|
37267bfe7ecf46ce3a37b1156c51c6076815c16f | src/platform/assert.h | src/platform/assert.h | // Copyright (c) 2015, the scalloc project authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_PLATFORM_ASSERT_H_
#define SCALLOC_PLATFORM_ASSERT_H_
#include "log.h"
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
private: \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
private: \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)
#define DISALLOW_ALLOCATION() \
public: \
void operator delete(void* pointer) { \
UNREACHABLE(); \
} \
private: \
void* operator new(size_t size);
#define QUOTEME(x) #x
#ifdef DEBUG
#define ScallocAssert(c) do { \
if (!(c)) { \
Fatal("assertion failed: " QUOTEME((c))); \
} \
} while (0)
#else // !DEBUG
#define ScallocAssert(c) do { \
} while (0)
#endif // DEBUG
#define UNREACHABLE() \
Fatal("unreachable code segment");
#endif // SCALLOC_PLATFORM_ASSERT_H_
| // Copyright (c) 2015, the scalloc project authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_PLATFORM_ASSERT_H_
#define SCALLOC_PLATFORM_ASSERT_H_
#include "log.h"
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
private: \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
private: \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)
#define DISALLOW_ALLOCATION() \
public: \
void operator delete(void* pointer) { \
UNREACHABLE(); \
} \
private: \
void* operator new(size_t size);
#define QUOTEME(x) #x
#ifdef DEBUG
#define ScallocAssert(c) do { \
if (!(c)) { \
Fatal("assertion failed: " QUOTEME((c))); \
} \
} while (0)
#else // !DEBUG
#define ScallocAssert(c) do { \
if (c) {} \
} while (0)
#endif // DEBUG
#define UNREACHABLE() \
Fatal("unreachable code segment");
#endif // SCALLOC_PLATFORM_ASSERT_H_
| Allow ScallocAssert() to be used in Release code | Allow ScallocAssert() to be used in Release code
| C | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc |
4319688dfb39444d9edcc384e4c56977967cda4b | src/includes/kernel/util.h | src/includes/kernel/util.h | /**
arm-016-util.h
*/
#ifndef RPI_UTIL_H
#define RPI_UTIL_H
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCREEN_DEPTH 24 /* 16 or 32-bit */
#define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */
#include <math.h>
typedef struct {
float r;
float g;
float b;
float a;
} colour_t;
extern void setColor(volatile unsigned char* fb, colour_t pixel, long x, long y, long pitch);
int * getCoordinates();
double scale_to_x_origin(int);
int scale_to_y_pixel(double);
#endif
| /**
arm-016-util.h
*/
#ifndef RPI_UTIL_H
#define RPI_UTIL_H
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCREEN_DEPTH 24 /* 16 or 32-bit */
#define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */
#include <math.h>
#include <stdlib.h>
typedef struct {
float r;
float g;
float b;
float a;
} colour_t;
extern void setColor(volatile unsigned char* fb, colour_t pixel, long x, long y, long pitch);
extern int * getCoordinates();
extern double scale_to_x_origin(int);
extern int scale_to_y_pixel(double);
#endif
| Include stdlib.h and changed function declaration to extern | Include stdlib.h and changed function declaration to extern
| C | mit | Neo-Desktop/bare-metal-pi,Neo-Desktop/bare-metal-pi |
362fb9e62b878adae788b3120608418da057d522 | arch/arm/core/irq_offload.c | arch/arm/core/irq_offload.c | /*
* Copyright (c) 2015 Intel corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file Software interrupts utility code - ARM implementation
*/
#include <nanokernel.h>
#include <irq_offload.h>
static irq_offload_routine_t offload_routine;
static void *offload_param;
/* Called by __svc */
void _irq_do_offload(void)
{
offload_routine(offload_param);
}
void irq_offload(irq_offload_routine_t routine, void *parameter)
{
int key;
key = irq_lock();
offload_routine = routine;
offload_param = parameter;
__asm__ volatile ("svc #1");
irq_unlock(key);
}
| /*
* Copyright (c) 2015 Intel corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file Software interrupts utility code - ARM implementation
*/
#include <nanokernel.h>
#include <irq_offload.h>
static irq_offload_routine_t offload_routine;
static void *offload_param;
/* Called by __svc */
void _irq_do_offload(void)
{
offload_routine(offload_param);
}
void irq_offload(irq_offload_routine_t routine, void *parameter)
{
int key;
key = irq_lock();
offload_routine = routine;
offload_param = parameter;
__asm__ volatile ("svc #1" : : : "memory");
irq_unlock(key);
}
| Fix irq offload inline asm memory ordering. | arm: Fix irq offload inline asm memory ordering.
Add a "memory" clobber to inline asm SVC call to ensure the compiler
does not reorder the instruction relative to other memory accesses.
Issue found by inspect the source code. There is no evidence to
suggest that this bug will manifest for any current ARM target using a
current compiler.
Change-Id: I32b1e5ede02a6dbea02bb8f98729fff1cca1ef2a
Signed-off-by: Marcus Shawcroft <[email protected]>
| C | apache-2.0 | punitvara/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,Vudentz/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,ldts/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,kraj/zephyr,runchip/zephyr-cc3200,nashif/zephyr,runchip/zephyr-cc3220,kraj/zephyr,bigdinotech/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,rsalveti/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,bboozzoo/zephyr,bboozzoo/zephyr,bboozzoo/zephyr,zephyriot/zephyr,nashif/zephyr,bigdinotech/zephyr,mbolivar/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,fbsder/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,GiulianoFranchetto/zephyr,tidyjiang8/zephyr-doc,zephyriot/zephyr,erwango/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,pklazy/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3200,pklazy/zephyr,punitvara/zephyr,punitvara/zephyr,kraj/zephyr,galak/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,pklazy/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,pklazy/zephyr,Vudentz/zephyr,erwango/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,holtmann/zephyr,mbolivar/zephyr,galak/zephyr,holtmann/zephyr,kraj/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,fbsder/zephyr,sharronliu/zephyr,zephyriot/zephyr,bigdinotech/zephyr,finikorg/zephyr,erwango/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,sharronliu/zephyr,nashif/zephyr,explora26/zephyr,fbsder/zephyr,rsalveti/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,rsalveti/zephyr,holtmann/zephyr,Vudentz/zephyr,explora26/zephyr,Vudentz/zephyr,ldts/zephyr,runchip/zephyr-cc3220,Vudentz/zephyr,Vudentz/zephyr,erwango/zephyr,tidyjiang8/zephyr-doc,bboozzoo/zephyr,mbolivar/zephyr,nashif/zephyr,finikorg/zephyr,explora26/zephyr,galak/zephyr,mbolivar/zephyr,sharronliu/zephyr,pklazy/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,kraj/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,fractalclone/zephyr-riscv,finikorg/zephyr,fbsder/zephyr,zephyriot/zephyr,rsalveti/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,mbolivar/zephyr,galak/zephyr,rsalveti/zephyr,sharronliu/zephyr,ldts/zephyr,zephyriot/zephyr,galak/zephyr,fractalclone/zephyr-riscv,tidyjiang8/zephyr-doc |
b0a84087556b24b9fa76306a80ed7fb59f2dac11 | dtool/src/parser-inc/stdtypedefs.h | dtool/src/parser-inc/stdtypedefs.h | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file stdtypedefs.h
* @author drose
* @date 2000-05-12
*/
// This file, and all the other files in this directory, aren't
// intended to be compiled--they're just parsed by CPPParser (and
// interrogate) in lieu of the actual system headers, to generate the
// interrogate database.
#ifndef STDTYPEDEFS_H
#define STDTYPEDEFS_H
typedef long time_t;
typedef long clock_t;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
inline namespace std {
#ifdef _WIN64
typedef unsigned long long size_t;
typedef long long ssize_t;
typedef long long ptrdiff_t;
#else
typedef unsigned long size_t;
typedef long ssize_t;
typedef long ptrdiff_t;
#endif
}
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((void *)0)
#endif
// One day, we might extend interrogate to be able to parse this,
// but we currently don't need it.
#define alignas(x)
#endif
| /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file stdtypedefs.h
* @author drose
* @date 2000-05-12
*/
// This file, and all the other files in this directory, aren't
// intended to be compiled--they're just parsed by CPPParser (and
// interrogate) in lieu of the actual system headers, to generate the
// interrogate database.
#ifndef STDTYPEDEFS_H
#define STDTYPEDEFS_H
typedef long time_t;
typedef long clock_t;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
inline namespace std {
#ifdef _WIN64
typedef unsigned long long size_t;
typedef long long ssize_t;
typedef long long ptrdiff_t;
#else
typedef unsigned long size_t;
typedef long ssize_t;
typedef long ptrdiff_t;
#endif
}
struct timeval;
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((void *)0)
#endif
// One day, we might extend interrogate to be able to parse this,
// but we currently don't need it.
#define alignas(x)
#endif
| Fix issue with Windows build | Fix issue with Windows build
| C | bsd-3-clause | chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,grimfang/panda3d,chandler14362/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,grimfang/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d |
c960766f51d6ad7069f2ef0084f2f31fbdf20365 | igor/parser/DEIgorParserException.h | igor/parser/DEIgorParserException.h | @interface DEIgorParserException : NSObject
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
| @interface DEIgorParserException : NSException
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
| Make Igor parser exception extend NSParserException | Make Igor parser exception extend NSParserException
| C | mit | dhemery/igor,dhemery/igor,dhemery/igor |
dabdca497602225931441dec89a5d557659ebef1 | tests/mpich-example.c | tests/mpich-example.c | #include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int
main (int argc, char *argv[])
{
int rank, size, length;
char name[BUFSIZ];
MPI_Init (&argc, &argv);
MPI_Comm_rank (MPI_COMM_WORLD, &rank);
MPI_Comm_size (MPI_COMM_WORLD, &size);
MPI_Get_processor_name (name, &length);
printf ("%s: hello world from process %d of %d\n", name, rank, size);
MPI_Finalize ();
return EXIT_SUCCESS;
}
| Add missing file for the MPI test. | Add missing file for the MPI test.
git-svn-id: 71c8032c709790ec749031c4215f8515ac00dc5a@27337 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
| C | mit | falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos,falsifian/personal_nixos |
|
a302b82b8de5a2427baec8257b023fb65f9cd607 | test/functionalities/process_attach/main.c | test/functionalities/process_attach/main.c | #include <stdio.h>
#include <unistd.h>
int main(int argc, char const *argv[]) {
// Waiting to be attached by the debugger.
int temp = 0;
while (temp < 30) // Waiting to be attached...
{
sleep(1);
temp++;
}
printf("Exiting now\n");
}
| #include <stdio.h>
#include <unistd.h>
#if defined(__linux__)
#include <sys/prctl.h>
#endif
int main(int argc, char const *argv[]) {
int temp;
#if defined(__linux__)
// Immediately enable any ptracer so that we can allow the stub attach
// operation to succeed. Some Linux kernels are locked down so that
// only an ancestor process can be a ptracer of a process. This disables that
// restriction. Without it, attach-related stub tests will fail.
#if defined(PR_SET_PTRACER) && defined(PR_SET_PTRACER_ANY)
int prctl_result;
// For now we execute on best effort basis. If this fails for
// some reason, so be it.
prctl_result = prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0);
(void) prctl_result;
#endif
#endif
// Waiting to be attached by the debugger.
temp = 0;
while (temp < 30) // Waiting to be attached...
{
sleep(1);
temp++;
}
printf("Exiting now\n");
}
| Fix TestProcessAttach for Linux ptracer lock-down and llgs-local. | Fix TestProcessAttach for Linux ptracer lock-down and llgs-local.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220660 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb |
023e066734f60dc9f8153d5f34b6d122c94ad83a | lib/vpsc/block.h | lib/vpsc/block.h | /**
* \brief A block is a group of variables that must be moved together to improve
* the goal function without violating already active constraints.
* The variables in a block are spanned by a tree of active constraints.
*
* Authors:
* Tim Dwyer <[email protected]>
*
* Copyright (C) 2005 Authors
*
* This version is released under the CPL (Common Public License) with
* the Graphviz distribution.
* A version is also available under the LGPL as part of the Adaptagrams
* project: http://sourceforge.net/projects/adaptagrams.
* If you make improvements or bug fixes to this code it would be much
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
#ifndef SEEN_REMOVEOVERLAP_BLOCK_H
#define SEEN_REMOVEOVERLAP_BLOCK_H
#include <vector>
#include <iostream>
class Variable;
class Constraint;
template <class T> class PairingHeap;
class StupidPriorityQueue;
class Block
{
friend std::ostream& operator <<(std::ostream &os,const Block &b);
public:
std::vector<Variable*> *vars;
double posn;
double weight;
double wposn;
Block(Variable *v=NULL);
~Block(void);
Constraint* findMinLM();
Constraint* findMinLMBetween(Variable* lv, Variable* rv);
Constraint* findMinInConstraint();
Constraint* findMinOutConstraint();
void deleteMinInConstraint();
void deleteMinOutConstraint();
double desiredWeightedPosition();
void merge(Block *b, Constraint *c, double dist);
void merge(Block *b, Constraint *c);
void mergeIn(Block *b);
void mergeOut(Block *b);
void split(Block *&l, Block *&r, Constraint *c);
Constraint* splitBetween(Variable* vl, Variable* vr, Block* &lb, Block* &rb);
void setUpInConstraints();
void setUpOutConstraints();
double cost();
bool deleted;
long timeStamp;
PairingHeap<Constraint*> *in;
PairingHeap<Constraint*> *out;
private:
typedef enum {NONE, LEFT, RIGHT} Direction;
typedef std::pair<double, Constraint*> Pair;
void reset_active_lm(Variable *v, Variable *u);
double compute_dfdv(Variable *v, Variable *u, Constraint *&min_lm);
Pair compute_dfdv_between(
Variable*, Variable*, Variable*, Direction, bool);
bool canFollowLeft(Constraint *c, Variable *last);
bool canFollowRight(Constraint *c, Variable *last);
void populateSplitBlock(Block *b, Variable *v, Variable *u);
void addVariable(Variable *v);
void setUpConstraintHeap(PairingHeap<Constraint*>* &h,bool in);
};
#endif // SEEN_REMOVEOVERLAP_BLOCK_H
| Add the vpsc library for IPSEPCOLA features | Add the vpsc library for IPSEPCOLA features
| C | epl-1.0 | jho1965us/graphviz,tkelman/graphviz,MjAbuz/graphviz,ellson/graphviz,kbrock/graphviz,pixelglow/graphviz,ellson/graphviz,pixelglow/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,tkelman/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,pixelglow/graphviz,tkelman/graphviz,kbrock/graphviz,kbrock/graphviz,ellson/graphviz,MjAbuz/graphviz,kbrock/graphviz,jho1965us/graphviz,tkelman/graphviz,jho1965us/graphviz,kbrock/graphviz,pixelglow/graphviz,pixelglow/graphviz,kbrock/graphviz,kbrock/graphviz,tkelman/graphviz,ellson/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,tkelman/graphviz,ellson/graphviz,jho1965us/graphviz,tkelman/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,kbrock/graphviz,tkelman/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,jho1965us/graphviz,tkelman/graphviz,ellson/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,tkelman/graphviz,MjAbuz/graphviz,pixelglow/graphviz,kbrock/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,tkelman/graphviz,MjAbuz/graphviz,ellson/graphviz,kbrock/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,jho1965us/graphviz,kbrock/graphviz,jho1965us/graphviz,MjAbuz/graphviz,jho1965us/graphviz |
|
e88be22a0b19d365c3c20d45b50da8af88fd6960 | static_ar_param.c | static_ar_param.c | int f(int x[static volatile /*const*/ 10])
{
return *++x;
}
main()
{
int x[5];
x[1] = 2;
f(x);
//int y[1];
//int *y;
//#define y (void *)0
//pipe(y);
}
| int f(int x[static /*const*/ 10])
{
return *++x;
}
main()
{
int x[5];
x[1] = 2;
f(x);
//int y[1];
//int *y;
//#define y (void *)0
//pipe(y);
}
| Remove volatile from test (decl_equal doesn't check properly for now) | Remove volatile from test (decl_equal doesn't check properly for now)
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.