commit
stringlengths 40
40
| old_file
stringlengths 4
237
| new_file
stringlengths 4
237
| old_contents
stringlengths 1
4.24k
| new_contents
stringlengths 1
4.87k
| subject
stringlengths 15
778
| message
stringlengths 15
8.75k
| lang
stringclasses 266
values | license
stringclasses 13
values | repos
stringlengths 5
127k
|
|---|---|---|---|---|---|---|---|---|---|
53ab89427f4c061e86a3f43ef3d5e860601aec86
|
src/debugUtils.h
|
src/debugUtils.h
|
#pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <exception>
#include <boost/format.hpp>
using boost::format;
class LogFile
{
public:
LogFile();
explicit LogFile(const std::string& filename);
~LogFile();
void open(const std::string& filename);
void close();
template <class T>
void write(const T& other, bool newline=true) {
if (haveFile) {
file << other;
if (newline) {
file << std::endl;
}
} else {
std::cout << other;
if (newline) {
std::cout << std::endl;
}
}
}
private:
bool haveFile;
std::ofstream file;
};
class debugParameters
{
public:
static bool debugAdapt;
static bool debugRegrid;
static bool debugTimesteps;
static bool debugFlameRadiusControl;
static bool veryVerbose;
};
extern LogFile logFile;
class debugException : public std::exception
{
public:
std::string errorString;
debugException(void);
~debugException(void) throw() {}
debugException(const std::string& error);
virtual const char* what() throw();
};
|
#pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <exception>
#include <boost/format.hpp>
using boost::format;
class LogFile
{
public:
LogFile();
explicit LogFile(const std::string& filename);
~LogFile();
void open(const std::string& filename);
void close();
template <class T>
void write(const T& other, bool newline=true) {
if (haveFile) {
file << other;
if (newline) {
file << std::endl;
}
} else {
std::cout << other;
if (newline) {
std::cout << std::endl;
}
#ifndef NDEBUG
std::cout.flush();
std::cerr.flush();
#endif
}
}
private:
bool haveFile;
std::ofstream file;
};
class debugParameters
{
public:
static bool debugAdapt;
static bool debugRegrid;
static bool debugTimesteps;
static bool debugFlameRadiusControl;
static bool veryVerbose;
};
extern LogFile logFile;
class debugException : public std::exception
{
public:
std::string errorString;
debugException(void);
~debugException(void) throw() {}
debugException(const std::string& error);
virtual const char* what() throw();
};
|
Synchronize logging to stderr and stdout in debug mode
|
Synchronize logging to stderr and stdout in debug mode
|
C
|
mit
|
speth/ember,speth/ember,speth/ember
|
c473a67a06813dc3d4ae5d312633657d7093b324
|
include/materials/NoEvapFreeEnergy.h
|
include/materials/NoEvapFreeEnergy.h
|
/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions */
/****************************************************************/
#ifndef NOEVAPFREEENERGY_H
#define NOEVAPFREEENERGY_H
#include "DerivativeFunctionMaterialBase.h"
//Forward Declarations
class NoEvapFreeEnergy;
template<>
InputParameters validParams<NoEvapFreeEnergy>();
/**
* Material class that creates a piecewise free energy with supressed evaporation and its derivatives
* for use with CHParsed and SplitCHParsed. F = .
*/
class NoEvapFreeEnergy : public DerivativeFunctionMaterialBase
{
public:
NoEvapFreeEnergy(const InputParameters & parameters);
protected:
virtual Real computeF();
virtual Real computeDF(unsigned int j_var);
virtual Real computeD2F(unsigned int j_var, unsigned int k_var);
private:
/// Coupled variable value for the concentration \f$ \c \f$.
VariableValue & _c;
unsigned int _c_var;
};
#endif //NOEVAPFREEENERGY_H
|
/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions */
/****************************************************************/
#ifndef NOEVAPFREEENERGY_H
#define NOEVAPFREEENERGY_H
#include "DerivativeFunctionMaterialBase.h"
//Forward Declarations
class NoEvapFreeEnergy;
template<>
InputParameters validParams<NoEvapFreeEnergy>();
/**
* Material class that creates a piecewise free energy with supressed evaporation and its derivatives
* for use with CHParsed and SplitCHParsed. F = .
*/
class NoEvapFreeEnergy : public DerivativeFunctionMaterialBase
{
public:
NoEvapFreeEnergy(const InputParameters & parameters);
protected:
virtual Real computeF();
virtual Real computeDF(unsigned int j_var);
virtual Real computeD2F(unsigned int j_var, unsigned int k_var);
private:
/// Coupled variable value for the concentration \f$ \c \f$.
const VariableValue & _c;
unsigned int _c_var;
};
#endif //NOEVAPFREEENERGY_H
|
Add const in newly-added file.
|
Add const in newly-added file.
|
C
|
lgpl-2.1
|
dinayuryev/panda,dinayuryev/panda,dinayuryev/panda
|
79e698a2b20277e2c7c8b2d2d688ff1529b8df9d
|
src/gfx/extra/json.h
|
src/gfx/extra/json.h
|
/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
inline glm::vec3 vec3_from_js_array(rapidjson::Value const& v) noexcept
{
return glm::vec3{v[0].GetDouble(),v[1].GetDouble(),v[2].GetDouble()};
}
}
|
/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include "rapidjson/document.h"
#include "glm/glm.hpp"
namespace redc
{
inline glm::vec3 vec3_from_js_object(rapidjson::Value const& v) noexcept
{
return glm::vec3{v["x"].GetDouble(),v["y"].GetDouble(),v["z"].GetDouble()};
}
inline glm::vec3 vec3_from_js_array(rapidjson::Value const& v) noexcept
{
return glm::vec3{v[0].GetDouble(),v[1].GetDouble(),v[2].GetDouble()};
}
inline bool load_js_vec3(rapidjson::Value const& v, glm::vec3& vec,
std::string* err)
{
if(v.IsArray())
{
vec = vec3_from_js_array(v);
return true;
}
else if(v.IsObject())
{
vec = vec3_from_js_object(v);
return true;
}
else
{
if(err) (*err) = "Invalid JSON; expected Vec3 (object or array)";
return false;
}
}
}
|
Support loading vec3s from JSON objects or arrays
|
Support loading vec3s from JSON objects or arrays
|
C
|
bsd-3-clause
|
RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine
|
d80d80192972f1a90b10a43b2a4f4c88fd66f88c
|
vim/avr/compat.h
|
vim/avr/compat.h
|
#pragma once
#ifndef __AVR_ARCH__
#include <unistd.h>
#define _BV(bit) (1<<(bit))
inline void _delay_ms(int ms) { usleep(ms*1000); }
inline void _delay_us(int us) { usleep(us); }
extern unsigned char UCSR0B;
extern unsigned char DDRB;
extern unsigned char DDRD;
extern unsigned char PINB;
extern unsigned char PIND;
extern unsigned char PORTB;
extern unsigned char PORTD;
#endif
|
#pragma once
#ifndef __AVR_ARCH__
#include <unistd.h>
#define _BV(bit) (1<<(bit))
inline void _delay_ms(int ms) { usleep(ms*1000); }
inline void _delay_us(int us) { usleep(us); }
extern unsigned char UCSR0A;
extern unsigned char UCSR0B;
extern unsigned char UCSR0C;
extern unsigned char UBRR0H;
extern unsigned char UBRR0L;
extern unsigned char DDRB;
extern unsigned char DDRD;
extern unsigned char PINB;
extern unsigned char PIND;
extern unsigned char PORTB;
extern unsigned char PORTD;
extern unsigned char UDR0;
#define U2X0 1
#define RXEN0 4
#define TXEN0 3
#endif
|
Add some more common ports and pins
|
Add some more common ports and pins
|
C
|
mit
|
vargad/dotfiles,vargad/dotfiles,vargad/dotfiles
|
c4c2ca46421f642a05f12aa5d0ab7af8313c7df0
|
extobjc/extobjc.h
|
extobjc/extobjc.h
|
/*
* extobjc.h
* extobjc
*
* Created by Justin Spahr-Summers on 2010-11-09.
* Released into the public domain.
*/
#import "EXTADT.h"
#import "EXTAspect.h"
#import "EXTBlockMethod.h"
#import "EXTBlockTarget.h"
#import "EXTConcreteProtocol.h"
#import "EXTDispatchObject.h"
#import "EXTFinalMethod.h"
#import "EXTKeyPathCoding.h"
#import "EXTMaybe.h"
#import "EXTMixin.h"
#import "EXTMultiObject.h"
#import "EXTNil.h"
#import "EXTPrivateMethod.h"
#import "EXTProtocolCategory.h"
#import "EXTSafeCategory.h"
#import "EXTScope.h"
#import "EXTSwizzle.h"
#import "EXTTuple.h"
#import "EXTVarargs.h"
#import "NSInvocation+EXT.h"
#import "NSMethodSignature+EXT.h"
|
/*
* extobjc.h
* extobjc
*
* Created by Justin Spahr-Summers on 2010-11-09.
* Released into the public domain.
*/
#import "EXTADT.h"
#import "EXTAspect.h"
#import "EXTBlockMethod.h"
#import "EXTBlockTarget.h"
#import "EXTConcreteProtocol.h"
#import "EXTDispatchObject.h"
#import "EXTFinalMethod.h"
#import "EXTKeyPathCoding.h"
#import "EXTMaybe.h"
#import "EXTMixin.h"
#import "EXTMultimethod.h"
#import "EXTMultiObject.h"
#import "EXTNil.h"
#import "EXTPrivateMethod.h"
#import "EXTProtocolCategory.h"
#import "EXTSafeCategory.h"
#import "EXTScope.h"
#import "EXTSwizzle.h"
#import "EXTTuple.h"
#import "EXTVarargs.h"
#import "NSInvocation+EXT.h"
#import "NSMethodSignature+EXT.h"
|
Add EXTMultimethod to umbrella header
|
Add EXTMultimethod to umbrella header
|
C
|
mit
|
sandyway/libextobjc,kolyuchiy/libextobjc,WPDreamMelody/libextobjc,sunfei/libextobjc,goodheart/libextobjc,bboyesc/libextobjc,sanojnambiar/libextobjc,telly/libextobjc,jiakai-lian/libextobjc,liuruxian/libextobjc,KBvsMJ/libextobjc
|
c86aa8f5c20a9d85460851418d8ba92fab23bb30
|
sql/src/client/mem.h
|
sql/src/client/mem.h
|
#ifndef _MEM_H_
#define _MEM_H_
#include <config.h>
#ifdef _MSC_VER
#include <sql_config.h>
#endif
#include <stdio.h>
#include <assert.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#define NEW( type ) (type*)malloc(sizeof(type) )
#define NEW_ARRAY( type, size ) (type*)malloc((size)*sizeof(type))
#define RENEW_ARRAY( type,ptr,size) (type*)realloc((void*)ptr,(size)*sizeof(type))
#define NEWADT( size ) (adt*)malloc(size)
#define _DELETE( ptr ) free(ptr)
#define _strdup( ptr ) strdup((char*)ptr)
#endif /*_MEM_H_*/
|
#ifndef _MEM_H_
#define _MEM_H_
#include <config.h>
#include <sql_config.h>
#include <stdio.h>
#include <assert.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#define NEW( type ) (type*)malloc(sizeof(type) )
#define NEW_ARRAY( type, size ) (type*)malloc((size)*sizeof(type))
#define RENEW_ARRAY( type,ptr,size) (type*)realloc((void*)ptr,(size)*sizeof(type))
#define NEWADT( size ) (adt*)malloc(size)
#define _DELETE( ptr ) free(ptr)
#define _strdup( ptr ) strdup((char*)ptr)
#endif /*_MEM_H_*/
|
Include sql_config.h always so that we get HAVE_TERMIOS_H, so that the password doesn't get echoed.
|
Include sql_config.h always so that we get HAVE_TERMIOS_H, so that the
password doesn't get echoed.
|
C
|
mpl-2.0
|
zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb
|
fbf5b9c1da353780074ca0129f80dd5f6b43664e
|
unix/sig_all.c
|
unix/sig_all.c
|
#include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#define SIGMAX _NSIG
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_default(void)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_default(i);
}
void sig_all_block(void)
{
int i;
#ifdef HASSIGPROCMASK
sigset_t set;
sigemptyset(&set);
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sigaddset(&set, i);
sigprocmask(SIG_BLOCK, &set, 0);
#else
sigblock(~(1 << (SIGPROF-1)));
#endif
}
void sig_all_unblock(void)
{
#ifdef HASSIGPROCMASK
sigset_t set;
sigemptyset(&set);
sigprocmask(SIG_UNBLOCK, &set, 0);
#else
sigsetmask(0);
#endif
}
|
#include <signal.h>
#include "sig.h"
#include "sysdeps.h"
#ifdef _SIG_MAXSIG
#define SIGMAX _SIG_MAXSIG
#else
#ifdef _NSIG
#define SIGMAX _NSIG
#else
#define SIGMAX 32
#endif
#endif
void sig_all_catch(signalfn fn)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_catch(i, fn);
}
void sig_all_default(void)
{
int i;
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sig_default(i);
}
void sig_all_block(void)
{
int i;
#ifdef HASSIGPROCMASK
sigset_t set;
sigemptyset(&set);
for (i = 1; i < SIGMAX; i++)
if (i != SIGPROF)
sigaddset(&set, i);
sigprocmask(SIG_BLOCK, &set, 0);
#else
sigblock(~(1 << (SIGPROF-1)));
#endif
}
void sig_all_unblock(void)
{
#ifdef HASSIGPROCMASK
sigset_t set;
sigemptyset(&set);
sigprocmask(SIG_UNBLOCK, &set, 0);
#else
sigsetmask(0);
#endif
}
|
Work on systems that don't define _NSIG
|
Work on systems that don't define _NSIG
|
C
|
lgpl-2.1
|
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
|
3e8df9192426b28a6fdad02faeb98a5e51dc4e43
|
src/vast/aliases.h
|
src/vast/aliases.h
|
#ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// Uniquely identifies a VAST type.
using type_id = uint64_t;
} // namespace vast
#endif
|
#ifndef VAST_ALIASES_H
#define VAST_ALIASES_H
#include <cstdint>
#include <limits>
namespace vast {
/// Uniquely identifies a VAST event.
using event_id = uint64_t;
/// The smallest possible event ID.
static constexpr event_id min_event_id = 1;
/// The largest possible event ID.
static constexpr event_id max_event_id =
std::numeric_limits<event_id>::max() - 1;
/// Uniquely identifies a VAST type.
using type_id = uint64_t;
} // namespace vast
#endif
|
Add names for ID space boundaries.
|
Add names for ID space boundaries.
|
C
|
bsd-3-clause
|
mavam/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,pmos69/vast,vast-io/vast,vast-io/vast,pmos69/vast
|
4cec50d3ba00a1a7afc1fc6f4ce536fe9759170f
|
src/plparrot.c
|
src/plparrot.c
|
#include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
PG_MODULE_MAGIC;
PG_FUNCTION_INFO_V1(plparrot_call_handler);
Datum
plparrot_call_handler(PG_FUNCTION_ARGS)
{
PG_RETURN_VOID();
}
|
#include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "utils/syscache.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
PG_MODULE_MAGIC;
Datum plparrot_call_handler(PG_FUNCTION_ARGS);
void plparrot_elog(int level, char *message);
PG_FUNCTION_INFO_V1(plparrot_call_handler);
Datum
plparrot_call_handler(PG_FUNCTION_ARGS)
{
PG_RETURN_VOID();
}
void
plparrot_elog(int level, char *message)
{
elog(level, "%s", message);
}
|
Add simple function to interact with pgsql APIs, and make something for the NQP bits to export
|
Add simple function to interact with pgsql APIs, and make something for the NQP bits to export
|
C
|
artistic-2.0
|
leto/plparrot,leto/plparrot,leto/plparrot
|
5b3f7c5dd5173b07bec251e3a685ccead22a1002
|
src/readstat_convert.c
|
src/readstat_convert.c
|
#include <errno.h>
#include "readstat.h"
#include "readstat_iconv.h"
#include "readstat_convert.h"
readstat_error_t readstat_convert(char *dst, size_t dst_len, const char *src, size_t src_len, iconv_t converter) {
/* strip off spaces from the input because the programs use ASCII space
* padding even with non-ASCII encoding. */
while (src_len && src[src_len-1] == ' ') {
src_len--;
}
if (converter) {
size_t dst_left = dst_len;
char *dst_end = dst;
size_t status = iconv(converter, (readstat_iconv_inbuf_t)&src, &src_len, &dst_end, &dst_left);
if (status == (size_t)-1) {
if (errno == E2BIG) {
return READSTAT_ERROR_CONVERT_LONG_STRING;
} else if (errno == EILSEQ) {
return READSTAT_ERROR_CONVERT_BAD_STRING;
} else if (errno != EINVAL) { /* EINVAL indicates improper truncation; accept it */
return READSTAT_ERROR_CONVERT;
}
}
dst[dst_len - dst_left] = '\0';
} else {
memcpy(dst, src, src_len);
dst[src_len] = '\0';
}
return READSTAT_OK;
}
|
#include <errno.h>
#include "readstat.h"
#include "readstat_iconv.h"
#include "readstat_convert.h"
readstat_error_t readstat_convert(char *dst, size_t dst_len, const char *src, size_t src_len, iconv_t converter) {
/* strip off spaces from the input because the programs use ASCII space
* padding even with non-ASCII encoding. */
while (src_len && src[src_len-1] == ' ') {
src_len--;
}
if (converter) {
size_t dst_left = dst_len;
char *dst_end = dst;
size_t status = iconv(converter, (readstat_iconv_inbuf_t)&src, &src_len, &dst_end, &dst_left);
if (status == (size_t)-1) {
if (errno == E2BIG) {
return READSTAT_ERROR_CONVERT_LONG_STRING;
} else if (errno == EILSEQ) {
return READSTAT_ERROR_CONVERT_BAD_STRING;
} else if (errno != EINVAL) { /* EINVAL indicates improper truncation; accept it */
return READSTAT_ERROR_CONVERT;
}
}
dst[dst_len - dst_left] = '\0';
} else if (src_len + 1 > dst_len) {
return READSTAT_ERROR_CONVERT_LONG_STRING;
} else {
memcpy(dst, src, src_len);
dst[src_len] = '\0';
}
return READSTAT_OK;
}
|
Fix out of bounds writes during charset conversion
|
Fix out of bounds writes during charset conversion
Fixes #128. Thanks to Google Autofuzz Project
|
C
|
mit
|
WizardMac/ReadStat,WizardMac/ReadStat
|
a68494b48bbbdeb8293a0e5c521a501bf3eb3750
|
OpenMRS-iOS/MRSVisit.h
|
OpenMRS-iOS/MRSVisit.h
|
//
// MRSVisit.h
// OpenMRS-iOS
//
// Created by Parker Erway on 12/2/14.
// Copyright (c) 2014 Erway Software. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MRSVisit : NSObject
@property (nonatomic, strong) NSString *displayName;
@property (nonatomic, strong) NSString *UUID;
@property (nonatomic) BOOL active;
@end
|
//
// MRSVisit.h
// OpenMRS-iOS
//
// Created by Parker Erway on 12/2/14.
// Copyright (c) 2014 Erway Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MRSLocation.h"
@class MRSVisitType;
@interface MRSVisit : NSObject
@property (nonatomic, strong) NSString *displayName;
@property (nonatomic, strong) NSString *UUID;
@property (nonatomic, strong) NSString *startDateTime;
@property (nonatomic, strong) MRSVisitType *visitType;
@property (nonatomic, strong) MRSLocation *location;
@property (nonatomic) BOOL active;
@end
|
Add new attributes to Visit class
|
Add new attributes to Visit class
|
C
|
mpl-2.0
|
yousefhamza/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client,yousefhamza/openmrs-contrib-ios-client,Undo1/openmrs-contrib-ios-client
|
17e3691b024a18b4c5bd7359436bd8002074f537
|
Equinox/SimpleTimer.h
|
Equinox/SimpleTimer.h
|
#ifndef __TIMER_H__
#define __TIMER_H__
#include "SDL/include/SDL.h"
class SimpleTimer
{
public:
SimpleTimer()
{
pausedTicks = 0, runTicks = 0;
running = false;
}
void Start()
{
running = true;
runTicks = SDL_GetTicks();
}
void Stop()
{
if(running)
{
running = false;
pausedTicks = SDL_GetTicks() - runTicks;
}
}
void Resume()
{
if(!running)
{
running = true;
runTicks = SDL_GetTicks() - pausedTicks;
pausedTicks = 0;
}
}
void Clear()
{
running = false;
runTicks = 0;
pausedTicks = 0;
}
int GetTimerTicks() const
{
if (running)
return SDL_GetTicks() - runTicks;
return 0;
}
bool IsRunning() const
{
return running;
}
private:
int pausedTicks, runTicks;
bool running;
};
#endif // __TIMER_H__
|
#ifndef __TIMER_H__
#define __TIMER_H__
#include "SDL/include/SDL.h"
class SimpleTimer
{
public:
SimpleTimer()
{
pausedTicks = 0, runTicks = 0;
running = false;
}
void Start()
{
running = true;
runTicks = SDL_GetTicks();
}
int Stop()
{
if(running)
{
running = false;
return pausedTicks = SDL_GetTicks() - runTicks;
}
return 0;
}
void Resume()
{
if(!running)
{
running = true;
runTicks = SDL_GetTicks() - pausedTicks;
pausedTicks = 0;
}
}
void Clear()
{
running = false;
runTicks = 0;
pausedTicks = 0;
}
unsigned int GetTimerTicks() const
{
if (running)
return SDL_GetTicks() - runTicks;
return 0;
}
unsigned int GetPausedTicks() const
{
if (!running)
return pausedTicks;
return 0;
}
bool IsRunning() const
{
return running;
}
private:
unsigned int pausedTicks, runTicks;
bool running;
};
#endif // __TIMER_H__
|
Change int to unsigned int
|
Change int to unsigned int
|
C
|
mit
|
NeebulaGames/EquinoxEngine,NeebulaGames/EquinoxEngine,NeebulaGames/EquinoxEngine
|
896daac6a878b6cf5feaa718c6a518335dfcc109
|
src/dtkCore/dtkSingleton.h
|
src/dtkCore/dtkSingleton.h
|
#ifndef DTKSINGLETON_H
#define DTKSINGLETON_H
#include <QtCore/QMutex>
template <class T> class dtkSingleton
{
public:
static T& instance(void)
{
static QMutex mutex;
if(!s_instance) {
mutex.lock();
if(!s_instance)
s_instance = new T;
mutex.unlock();
}
return s_instance;
}
private:
dtkSingleton(void) {};
~dtkSingleton(void) {};
private:
Q_DISABLE_COPY(dtkSingleton)
private:
static T *s_instance;
};
template <class T> T *dtkSingleton<T>::s_instance = NULL;
#define DTK_IMPLEMENT_SINGLETON(T) \
T *T::instance() \
{ \
return &(dtkSingleton<T>::instance()); \
}
#endif //DTKSINGLETON
|
#ifndef DTKSINGLETON_H
#define DTKSINGLETON_H
#include <QtCore/QMutex>
template <class T> class dtkSingleton
{
public:
static T& instance(void)
{
static QMutex mutex;
if(!s_instance) {
mutex.lock();
if(!s_instance)
s_instance = new T;
mutex.unlock();
}
return (*s_instance);
}
private:
dtkSingleton(void) {};
~dtkSingleton(void) {};
private:
Q_DISABLE_COPY(dtkSingleton)
private:
static T *s_instance;
};
template <class T> T *dtkSingleton<T>::s_instance = NULL;
#define DTK_IMPLEMENT_SINGLETON(T) \
T *T::instance() \
{ \
return &(dtkSingleton<T>::instance()); \
}
#endif //DTKSINGLETON
|
Fix generic singleton accessor syntax.
|
Fix generic singleton accessor syntax.
|
C
|
bsd-3-clause
|
d-tk/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk,d-tk/dtk,rdebroiz/dtk,d-tk/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk
|
d8036e2cc4c1c60c5a2344df288af8d5e67b1bfc
|
src/string_reverse/string_reverse.c
|
src/string_reverse/string_reverse.c
|
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
// Read string from a file
FILE* file_ptr = fopen("test.txt", "r");
if (file_ptr == NULL)
return 1;
char* string = malloc(256);
fscanf(file_ptr, "%s", string);
// Solution
int length = sprintf(string, "%s", string);
int front = 0;
int back = length - 1;
while(front < back)
{
// swap 2 characters
char tmp = string[front];
string[front] = string[back];
string[back] = tmp;
++front;
--back;
}
printf("%s\n", string);
return 0;
}
|
#include <stdio.h>
#include <stdlib.h>
void reverse(char* string)
{
char* back = string;
char tmp;
while(*back)
++back;
// Move from the null terminator
--back;
while (string < back)
{
char tmp = *string;
*string = *back;
*back = tmp;
++string;
--back;
}
}
int main()
{
// Read string from a file
FILE* file_ptr = fopen("test.txt", "r");
if (file_ptr == NULL)
return 1;
char* string = malloc(256);
fscanf(file_ptr, "%s", string);
// Solution
reverse(string);
printf("%s\n", string);
return 0;
}
|
Handle null terminator in string reverse
|
Handle null terminator in string reverse
|
C
|
mit
|
cknadler/questions
|
4020b05b515c5a486de3224739e370dedfb5c005
|
ext/ffi_c/Pointer.h
|
ext/ffi_c/Pointer.h
|
#ifndef _POINTER_H
#define _POINTER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "AbstractMemory.h"
extern void rbffi_Pointer_Init(VALUE moduleFFI);
extern void rbffi_NullPointer_Init(VALUE moduleFFI);
extern VALUE rbffi_Pointer_NewInstance(void* addr);
extern VALUE rbffi_PointerClass;
extern VALUE rbffi_NullPointerClass;
extern VALUE rbffi_NullPointerSingleton;
extern MemoryOps rbffi_NullPointerOps;
#ifdef __cplusplus
}
#endif
#endif /* _POINTER_H */
|
/*
* Copyright (c) 2008, 2009, Wayne Meissner
*
* 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.
* * The name of the author or authors may not 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.
*/
#ifndef RBFFI_POINTER_H
#define RBFFI_POINTER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "AbstractMemory.h"
extern void rbffi_Pointer_Init(VALUE moduleFFI);
extern VALUE rbffi_Pointer_NewInstance(void* addr);
extern VALUE rbffi_PointerClass;
extern VALUE rbffi_NullPointerSingleton;
#ifdef __cplusplus
}
#endif
#endif /* RBFFI_POINTER_H */
|
Remove some leftover null pointer vars
|
Remove some leftover null pointer vars
|
C
|
bsd-3-clause
|
majioa/ffi,tduehr/ffi,sparkchaser/ffi,ferventcoder/ffi,majioa/ffi,mvz/ffi,yghannam/ffi,tduehr/ffi,sparkchaser/ffi,ferventcoder/ffi,tduehr/ffi,MikaelSmith/ffi,ffi/ffi,majioa/ffi,ffi/ffi,mvz/ffi,sparkchaser/ffi,sparkchaser/ffi,MikaelSmith/ffi,tduehr/ffi,mvz/ffi,yghannam/ffi,ferventcoder/ffi,MikaelSmith/ffi,mvz/ffi,yghannam/ffi,ferventcoder/ffi,yghannam/ffi,majioa/ffi,MikaelSmith/ffi,yghannam/ffi,ffi/ffi
|
a81e238bcc471d0d8bf305a05da54d56eeef7ff5
|
test/Driver/no-canonical-prefixes.c
|
test/Driver/no-canonical-prefixes.c
|
// Due to ln -sf:
// REQUIRES: shell
// RUN: rm -rf %t.real
// RUN: mkdir -p %t.real
// RUN: cd %t.real
// RUN: ln -sf %clang test-clang
// RUN: cd ..
// Important to remove %t.fake: If it already is a symlink to %t.real when
// `ln -sf %t.real %t.fake` runs, then that would symlink %t.real to itself,
// forming a cycle.
// RUN: rm -rf %t.fake
// RUN: ln -sf %t.real %t.fake
// RUN: cd %t.fake
// RUN: ./test-clang -v -S %s 2>&1 | FileCheck --check-prefix=CANONICAL %s
// RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-CANONICAL %s
//
// FIXME: This should really be '.real'.
// CANONICAL: InstalledDir: {{.*}}.fake
// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
//
// NON-CANONICAL: InstalledDir: .{{$}}
// NON-CANONICAL: test-clang" -cc1
|
// Due to ln -sf:
// REQUIRES: shell
// RUN: mkdir -p %t.real
// RUN: cd %t.real
// RUN: ln -sf %clang test-clang
// RUN: cd ..
// If %.fake already is a symlink to %t.real when `ln -sf %t.real %t.fake`
// runs, then that would symlink %t.real to itself, forming a cycle.
// The `-n` flag prevents this.
// RUN: ln -sfn %t.real %t.fake
// RUN: cd %t.fake
// RUN: ./test-clang -v -S %s 2>&1 | FileCheck --check-prefix=CANONICAL %s
// RUN: ./test-clang -v -S %s -no-canonical-prefixes 2>&1 | FileCheck --check-prefix=NON-CANONICAL %s
//
// FIXME: This should really be '.real'.
// CANONICAL: InstalledDir: {{.*}}.fake
// CANONICAL: {{[/|\\]*}}clang{{.*}}" -cc1
//
// NON-CANONICAL: InstalledDir: .{{$}}
// NON-CANONICAL: test-clang" -cc1
|
Use `ln -n` to prevent forming a symlink cycle, instead of rm'ing the source
|
Use `ln -n` to prevent forming a symlink cycle, instead of rm'ing the source
This is a better fix for the problem fixed in r334972.
Also remove the rm'ing of the symlink destination that was there to
clean up the bots -- it's over a year later, bots should be happy now.
Differential Revision: https://reviews.llvm.org/D64301
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@365414 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
|
cde8356ff78ad98f1c5cf8f34fa92014a1c0342f
|
kernel.h
|
kernel.h
|
extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
SPATIAL,
TEMPORAL_AVG,
KNN,
AKNN,
ADAPTIVE_TEMPORAL_AVG,
DIFF,
SOBEL,
MOTION,
};
|
extern void denoise(void*, int, const uint32_t *in, uint32_t *out, int h, int w);
extern void *kernelInit(void);
extern void kernelFinalize(void*);
enum {
// "Real" filters
SPATIAL,
TEMPORAL_AVG,
ADAPTIVE_TEMPORAL_AVG,
KNN,
AKNN,
// Helpers
DIFF,
SOBEL,
MOTION,
NFILTERS,
};
|
Add comments for filter enums
|
Add comments for filter enums
|
C
|
mit
|
xiaq/webcamfilter,xiaq/webcamfilter,xiaq/webcamfilter
|
82a080813c8def8caace0d3b11079cfa20c72766
|
src/modules/conf_randr/e_smart_monitor.h
|
src/modules/conf_randr/e_smart_monitor.h
|
#ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
# endif
#endif
|
#ifdef E_TYPEDEFS
#else
# ifndef E_SMART_MONITOR_H
# define E_SMART_MONITOR_H
Evas_Object *e_smart_monitor_add(Evas *evas);
void e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Config *crtc);
void e_smart_monitor_output_set(Evas_Object *obj, E_Randr_Output_Config *output);
# endif
#endif
|
Add function prototypes for setting monitor crtc and output config.
|
Add function prototypes for setting monitor crtc and output config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 84129
|
C
|
bsd-2-clause
|
tasn/enlightenment,rvandegrift/e,rvandegrift/e,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment
|
50c4ea79c8ba7f43cf0c47b8670824d0e60597ce
|
crater.c
|
crater.c
|
/* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
Released under the terms of the MIT License. See LICENSE for details. */
#include <stdlib.h>
#include "src/config.h"
#include "src/logging.h"
#include "src/rom.h"
/*
Main function.
*/
int main(int argc, char *argv[])
{
Config *config;
ROM *rom;
int retval;
retval = config_create(&config, argc, argv);
if (retval != CONFIG_OK)
return retval == CONFIG_EXIT_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
printf("crater: a Sega Game Gear emulator\n\n");
#ifdef DEBUG_MODE
config_dump_args(config);
#endif
if (!(rom = rom_open(config->rom_path))) {
if (errno == ENOMEM)
OUT_OF_MEMORY()
else
FATAL_ERRNO("couldn't load ROM image '%s'", config->rom_path)
}
printf("Loaded ROM image: %s.\n", rom->name);
// TODO: start from here
rom_close(rom);
config_destroy(config);
return EXIT_SUCCESS;
}
|
/* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
Released under the terms of the MIT License. See LICENSE for details. */
#include <stdlib.h>
#include "src/config.h"
#include "src/logging.h"
#include "src/rom.h"
/*
Main function.
*/
int main(int argc, char *argv[])
{
Config *config;
int retval;
retval = config_create(&config, argc, argv);
if (retval != CONFIG_OK)
return retval == CONFIG_EXIT_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
#ifdef DEBUG_MODE
config_dump_args(config);
#endif
if (config->assemble) {
printf("Running assembler: %s -> %s.\n",config->src_path, config->dst_path);
} else if (config->disassemble) {
printf("Running disassembler: %s -> %s.\n", config->src_path, config->dst_path);
} else {
ROM *rom;
printf("crater: a Sega Game Gear emulator\n\n");
if (!(rom = rom_open(config->rom_path))) {
if (errno == ENOMEM)
OUT_OF_MEMORY()
else
FATAL_ERRNO("couldn't load ROM image '%s'", config->rom_path)
}
printf("Loaded ROM image: %s.\n", rom->name);
// TODO: start from here
rom_close(rom);
}
config_destroy(config);
return EXIT_SUCCESS;
}
|
Call different stuff for the assembler/disassembler.
|
Call different stuff for the assembler/disassembler.
|
C
|
mit
|
earwig/crater,earwig/crater,earwig/crater,earwig/crater
|
0319204b74cf182ffe0670e51154bd14b3510dc7
|
include/flatcc/portable/pwarnings.h
|
include/flatcc/portable/pwarnings.h
|
#ifndef PWARNINGS_H
#define PWARNINGS_H
#if defined(_MSC_VER)
/* Needed when flagging code in or out and more. */
#pragma warning(disable: 4127) /* conditional expression is constant */
/* happens also in MS's own headers. */
#pragma warning(disable: 4668) /* preprocessor name not defined */
/* MSVC does not respect double parenthesis for intent */
#pragma warning(disable: 4706) /* assignment within conditional expression */
/* `inline` only advisory anyway. */
#pragma warning(disable: 4710) /* function not inlined */
/* Well, we don't intend to add the padding manually. */
#pragma warning(disable: 4820) /* x bytes padding added in struct */
/* Define this in the build as `-D_CRT_SECURE_NO_WARNINGS`, it has no effect here. */
/* #define _CRT_SECURE_NO_WARNINGS don't warn that fopen etc. are unsafe */
/*
* Anonymous union in struct is valid in C11 and has been supported in
* GCC and Clang for a while, but it is not C99. MSVC also handles it,
* but warns. Truly portable code should perhaps not use this feature,
* but this is not the place to complain about it.
*/
#pragma warning(disable: 4201) /* nonstandard extension used: nameless struct/union */
#endif
#endif PWARNINGS_H
|
#ifndef PWARNINGS_H
#define PWARNINGS_H
#if defined(_MSC_VER)
/* Needed when flagging code in or out and more. */
#pragma warning(disable: 4127) /* conditional expression is constant */
/* happens also in MS's own headers. */
#pragma warning(disable: 4668) /* preprocessor name not defined */
/* MSVC does not respect double parenthesis for intent */
#pragma warning(disable: 4706) /* assignment within conditional expression */
/* `inline` only advisory anyway. */
#pragma warning(disable: 4710) /* function not inlined */
/* Well, we don't intend to add the padding manually. */
#pragma warning(disable: 4820) /* x bytes padding added in struct */
/* Define this in the build as `-D_CRT_SECURE_NO_WARNINGS`, it has no effect here. */
/* #define _CRT_SECURE_NO_WARNINGS don't warn that fopen etc. are unsafe */
/*
* Anonymous union in struct is valid in C11 and has been supported in
* GCC and Clang for a while, but it is not C99. MSVC also handles it,
* but warns. Truly portable code should perhaps not use this feature,
* but this is not the place to complain about it.
*/
#pragma warning(disable: 4201) /* nonstandard extension used: nameless struct/union */
#endif
#endif /* PWARNINGS_H */
|
Fix warning in header disabling some warnings (sigh)
|
Fix warning in header disabling some warnings (sigh)
|
C
|
apache-2.0
|
skhoroshavin/flatcc,skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc
|
8ab76006de60ad761be1528e75f7e9898270c1f9
|
include/dfb_types.h
|
include/dfb_types.h
|
#ifndef __DFB_TYPES_H__
#define __DFB_TYPES_H__
#ifdef USE_KOS
#include <sys/types.h>
typedef uint8 u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;
typedef sint8 s8;
typedef sint16 s16;
typedef sint32 s32;
typedef sint64 s64;
#else
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
#endif
#endif
|
#ifndef __DFB_TYPES_H__
#define __DFB_TYPES_H__
#ifdef USE_KOS
#include <sys/types.h>
typedef uint8 u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;
typedef sint8 s8;
typedef sint16 s16;
typedef sint32 s32;
typedef sint64 s64;
#else
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
#endif
#ifndef DIRECTFB_NO_CRUFT
#define __u8 u8
#define __u16 u16
#define __u32 u32
#define __u64 u64
#define __s8 s8
#define __s16 s16
#define __s32 s32
#define __s64 s64
#endif
#endif
|
Define compatibility macros for __ types unless DIRECTFB_NO_CRUFT is defined.
|
Define compatibility macros for __ types unless DIRECTFB_NO_CRUFT is defined.
|
C
|
lgpl-2.1
|
dfbdok/DirectFB1,dfbdok/DirectFB1,mtsekm/test,deniskropp/DirectFB,kevleyski/directfb,kevleyski/DirectFB-1,deniskropp/DirectFB,deniskropp/DirectFB,mtsekm/test,lancebaiyouview/DirectFB,kaostao/directfb,lancebaiyouview/DirectFB,djbclark/directfb-core-DirectFB,djbclark/directfb-core-DirectFB,djbclark/directfb-core-DirectFB,Distrotech/DirectFB,sklnet/DirectFB,lancebaiyouview/DirectFB,Distrotech/DirectFB,kaostao/directfb,Distrotech/DirectFB,kaostao/directfb,sklnet/DirectFB,kevleyski/directfb,sklnet/DirectFB,mtsekm/test,kevleyski/directfb,kevleyski/DirectFB-1,djbclark/directfb-core-DirectFB,jcdubois/DirectFB,dfbdok/DirectFB1,DirectFB/directfb,kevleyski/DirectFB-1,jcdubois/DirectFB,deniskropp/DirectFB,kevleyski/directfb,jcdubois/DirectFB,DirectFB/directfb,DirectFB/directfb,lancebaiyouview/DirectFB,sklnet/DirectFB,kevleyski/DirectFB-1
|
5c80c5e640d0fcb238cd3b9546c3a33edf7ca45c
|
tests/dcpu-testing.c
|
tests/dcpu-testing.c
|
int test(int a, int b, int c, int d, int e);
typedef (*funcCall)();
short array = {0x61c1};
int main()
{
((funcCall)array)();
return test(1, 2, 3, 4, 5);
}
int test(int a, int b, int c, int d, int e)
{
return (e + (a + b + c) * a / d) + (a * 6);
}
|
int test(int a, int b, int c, int d, int e);
typedef (*funcCall)();
short array = {0x61c1};
int main()
{
((funcCall)array)();
int some_var = 3;
int ret = test(1, 2, 3, 4, 5);
return some_var + ret;
}
int foo(int a)
{
return 9 + a;
}
int test(int a, int b, int c, int d, int e)
{
a = foo(a);
return ((a + b + c) * d / a) + (d * e);
}
|
Make example a bit more advanced
|
Make example a bit more advanced
|
C
|
lgpl-2.1
|
Wallbraker/DCPU-TCC,Wallbraker/DCPU-TCC,Wallbraker/DCPU-TCC
|
9ef6cf64a9fff87a5e2135fd831e5586f38b0d6d
|
Applications/Simple/FragariaAppDelegate.h
|
Applications/Simple/FragariaAppDelegate.h
|
//
// FragariaAppDelegate.h
// Fragaria
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MGSFragaria/MGSFragariaTextViewDelegate.h>
#import <MGSFragaria/SMLSyntaxColouringDelegate.h>
@class SMLTextView;
@class MGSFragaria;
@class MGSSimpleBreakpointDelegate;
@interface FragariaAppDelegate : NSObject <NSApplicationDelegate, MGSFragariaTextViewDelegate, SMLSyntaxColouringDelegate>
- (IBAction)showPreferencesWindow:(id)sender;
- (IBAction)copyToPasteBoard:(id)sender;
- (IBAction)reloadString:(id)sender;
@property (weak) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSView *editView;
@property (nonatomic,assign) NSString *syntaxDefinition;
@end
|
//
// FragariaAppDelegate.h
// Fragaria
//
// Created by Jonathan on 30/04/2010.
// Copyright 2010 mugginsoft.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MGSFragaria/MGSFragariaTextViewDelegate.h>
#import <MGSFragaria/SMLSyntaxColouringDelegate.h>
#import <MGSFragaria/MGSDragOperationDelegate.h>
@class SMLTextView;
@class MGSFragaria;
@class MGSSimpleBreakpointDelegate;
@interface FragariaAppDelegate : NSObject <NSApplicationDelegate, MGSFragariaTextViewDelegate, SMLSyntaxColouringDelegate, MGSDragOperationDelegate>
- (IBAction)showPreferencesWindow:(id)sender;
- (IBAction)copyToPasteBoard:(id)sender;
- (IBAction)reloadString:(id)sender;
@property (weak) IBOutlet NSWindow *window;
@property (weak) IBOutlet NSView *editView;
@property (nonatomic,assign) NSString *syntaxDefinition;
@end
|
Fix simple example delegate's protocol compliance.
|
Fix simple example delegate's protocol compliance.
|
C
|
apache-2.0
|
vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,vakoc/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,shysaur/Fragaria,bitstadium/Fragaria,shysaur/Fragaria,shysaur/Fragaria
|
1a3e5dcc47629e1707191ab1641a89be5eb1328b
|
src/storage/module.h
|
src/storage/module.h
|
/*
* waysome - wayland based window manager
*
* Copyright in alphabetical order:
*
* Copyright (C) 2014-2015 Julian Ganz
* Copyright (C) 2014-2015 Manuel Messner
* Copyright (C) 2014-2015 Marcel Müller
* Copyright (C) 2014-2015 Matthias Beyer
* Copyright (C) 2014-2015 Nadja Sommerfeld
*
* This file is part of waysome.
*
* waysome 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.
*
* waysome 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 waysome. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __WS_STORAGE_MODULE_H__
#define __WS_STORAGE_MODULE_H__
#endif // __WS_STORAGE_MODULE_H__
|
/*
* waysome - wayland based window manager
*
* Copyright in alphabetical order:
*
* Copyright (C) 2014-2015 Julian Ganz
* Copyright (C) 2014-2015 Manuel Messner
* Copyright (C) 2014-2015 Marcel Müller
* Copyright (C) 2014-2015 Matthias Beyer
* Copyright (C) 2014-2015 Nadja Sommerfeld
*
* This file is part of waysome.
*
* waysome 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.
*
* waysome 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 waysome. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @addtogroup storage "Storage"
*
* @{
*/
#ifndef __WS_STORAGE_MODULE_H__
#define __WS_STORAGE_MODULE_H__
#endif // __WS_STORAGE_MODULE_H__
/**
* @}
*/
|
Add storage files to storage documentation group
|
Add storage files to storage documentation group
|
C
|
lgpl-2.1
|
waysome/waysome,waysome/waysome
|
e0a5c2288da7d2b7b20e3725e0e060269dbc2be5
|
src/rtpp_version.h
|
src/rtpp_version.h
|
#define RTPP_SW_VERSION "rel.20140506110718"
|
/* IPOLICE_FLAGS: DONT_REMOVE */
#define RTPP_SW_VERSION "rel.20160514172346"
|
Add IPOLICE_FLAGS: DONT_REMOVE, bump RTPP_SW_VERSION forward.
|
Add IPOLICE_FLAGS: DONT_REMOVE, bump RTPP_SW_VERSION forward.
|
C
|
bsd-2-clause
|
dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy
|
f651d51d97b75f12ba68f1cbfca914724136d121
|
tools/halide_image.h
|
tools/halide_image.h
|
#ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/*
This allows code that relied on halide_image.h and Halide::Tools::Image to
continue to work with newer versions of Halide where HalideBuffer.h and
Halide::Buffer are the way to work with data.
Besides mapping Halide::Tools::Image to Halide::Buffer, it defines
USING_HALIDE_BUFFER to allow code to conditionally compile for one or the
other.
It is intended as a stop-gap measure until the code can be updated.
*/
#include "HalideBuffer.h"
namespace Halide {
namespace Tools {
#define USING_HALIDE_BUFFER
template< typename T >
using Image = Buffer<T>;
} // namespace Tools
} // mamespace Halide
#endif // #ifndef HALIDE_TOOLS_IMAGE_H
|
#ifndef HALIDE_TOOLS_IMAGE_H
#define HALIDE_TOOLS_IMAGE_H
/** \file
*
* This allows code that relied on halide_image.h and
* Halide::Tools::Image to continue to work with newer versions of
* Halide where HalideBuffer.h and Halide::Buffer are the way to work
* with data.
*
* Besides mapping Halide::Tools::Image to Halide::Buffer, it defines
* USING_HALIDE_BUFFER to allow code to conditionally compile for one
* or the other.
*
* It is intended as a stop-gap measure until the code can be updated.
*/
#include "HalideBuffer.h"
namespace Halide {
namespace Tools {
#define USING_HALIDE_BUFFER
template< typename T >
using Image = Buffer<T>;
} // namespace Tools
} // mamespace Halide
#endif // #ifndef HALIDE_TOOLS_IMAGE_H
|
Reformat comment into Doxygen comment for file.
|
Reformat comment into Doxygen comment for file.
|
C
|
mit
|
kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,psuriana/Halide,psuriana/Halide,kgnk/Halide,psuriana/Halide,kgnk/Halide
|
cacbf0ecd02835adb555a9d64294e3ae987d918d
|
GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h
|
GoogleMaps/GoogleMapsDemos/SDKDemoAPIKey.h
|
/*
* Copyright 2016 Google LLC. 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.
*/
/**
* To use GoogleMapsDemos, please register an API Key for your application and set it here. Your
* API Key should be kept private.
*
* See documentation on getting an API Key for your API Project here:
* https://developers.google.com/maps/documentation/ios/start#get-key
*/
//#error Register for API Key and insert here. Then delete this line.
static NSString *const kAPIKey = @";ajlksdf";
|
/*
* Copyright 2016 Google LLC. 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.
*/
/**
* To use GoogleMapsDemos, please register an API Key for your application and set it here. Your
* API Key should be kept private.
*
* See documentation on getting an API Key for your API Project here:
* https://developers.google.com/maps/documentation/ios/start#get-key
*/
#error Register for API Key and insert here. Then delete this line.
static NSString *const kAPIKey = @"";
|
Use empty string as the default kAPIKey
|
fix: Use empty string as the default kAPIKey
|
C
|
apache-2.0
|
googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples
|
531ec1e7a2330a76ef7168167f42440cc88fbfd5
|
test/CFrontend/2007-06-18-SextAttrAggregate.c
|
test/CFrontend/2007-06-18-SextAttrAggregate.c
|
// RUN: llvm-gcc %s -o - -S -emit-llvm -O3 | grep {i8 sext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, char C) {
}
|
// RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 sext}
// PR1513
struct s{
long a;
long b;
};
void f(struct s a, char *b, char C) {
}
|
Fix this test to not rely on the path but to use the configured llvm-gcc instead.
|
Fix this test to not rely on the path but to use the
configured llvm-gcc instead.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@39992 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
bsd-2-clause
|
chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap
|
755fb0f25342c7ebd8df2c736e46a812d2408f91
|
Pod/Classes/PINRemoteImageMacros.h
|
Pod/Classes/PINRemoteImageMacros.h
|
//
// PINRemoteImageMacros.h
// PINRemoteImage
//
// Created by Brian Dorfman on 10/15/15.
// Copyright © 2015 Pinterest. All rights reserved.
//
#ifndef PINRemoteImageMacros_h
#define PINRemoteImageMacros_h
#define PINRemoteImageLogging 0
#if PINRemoteImageLogging
#define PINLog(args...) NSLog(args)
#else
#define PINLog(args...)
#endif
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#define USE_FLANIMATED_IMAGE 1
#else
#define USE_FLANIMATED_IMAGE 0
#define FLAnimatedImage NSObject
#endif
#define BlockAssert(condition, desc, ...) \
do { \
__PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS \
if (!(condition)) { \
[[NSAssertionHandler currentHandler] handleFailureInMethod:_cmd \
object:strongSelf file:[NSString stringWithUTF8String:__FILE__] \
lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
} \
__PRAGMA_POP_NO_EXTRA_ARG_WARNINGS \
} while(0);
#endif /* PINRemoteImageMacros_h */
|
//
// PINRemoteImageMacros.h
// PINRemoteImage
//
#ifndef PINRemoteImageMacros_h
#define PINRemoteImageMacros_h
#define PINRemoteImageLogging 0
#if PINRemoteImageLogging
#define PINLog(args...) NSLog(args)
#else
#define PINLog(args...)
#endif
#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#define USE_FLANIMATED_IMAGE 1
#else
#define USE_FLANIMATED_IMAGE 0
#define FLAnimatedImage NSObject
#endif
#define BlockAssert(condition, desc, ...) \
do { \
__PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS \
if (!(condition)) { \
[[NSAssertionHandler currentHandler] handleFailureInMethod:_cmd \
object:strongSelf file:[NSString stringWithUTF8String:__FILE__] \
lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
} \
__PRAGMA_POP_NO_EXTRA_ARG_WARNINGS \
} while(0);
#endif /* PINRemoteImageMacros_h */
|
Remove my name from xcode's auto gen header template
|
Remove my name from xcode's auto gen header template
|
C
|
apache-2.0
|
pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage
|
6a4888c54b31429442078f2bd804f0714b9e629d
|
button.h
|
button.h
|
/* Manages interaction with the buttons */
#ifndef BUTTON_H
#define BUTTON_H
const unsigned char BUTTON_NONE = 100;
bool button_isPressed(int buttonNumber);
void button_wait(int buttonNumber);
void button_ISR();
#endif
|
/* Manages interaction with the buttons */
#ifndef BUTTON_H
#define BUTTON_H
#include <Arduino.h>
const unsigned char BUTTON_NONE = 100;
bool button_isPressed(uint8_t buttonNumber);
void button_wait(uint8_t buttonNumber);
void button_ISR();
#endif
|
Fix header to be the same as cpp
|
Fix header to be the same as cpp
|
C
|
mit
|
SUPERETDUPER/bolt-arduino
|
52142e756e9bf6485d3d53596e8aff2e816a7253
|
include/asm-powerpc/page_32.h
|
include/asm-powerpc/page_32.h
|
#ifndef _ASM_POWERPC_PAGE_32_H
#define _ASM_POWERPC_PAGE_32_H
#ifdef __KERNEL__
#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
#define PPC_MEMSTART 0
#ifndef __ASSEMBLY__
/*
* The basic type of a PTE - 64 bits for those CPUs with > 32 bit
* physical addressing. For now this just the IBM PPC440.
*/
#ifdef CONFIG_PTE_64BIT
typedef unsigned long long pte_basic_t;
#define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
#else
typedef unsigned long pte_basic_t;
#define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
#endif
struct page;
extern void clear_pages(void *page, int order);
static inline void clear_page(void *page) { clear_pages(page, 0); }
extern void copy_page(void *to, void *from);
#include <asm-generic/page.h>
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_PAGE_32_H */
|
#ifndef _ASM_POWERPC_PAGE_32_H
#define _ASM_POWERPC_PAGE_32_H
#ifdef __KERNEL__
#define VM_DATA_DEFAULT_FLAGS VM_DATA_DEFAULT_FLAGS32
#define PPC_MEMSTART 0
#ifdef CONFIG_NOT_COHERENT_CACHE
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
#endif
#ifndef __ASSEMBLY__
/*
* The basic type of a PTE - 64 bits for those CPUs with > 32 bit
* physical addressing. For now this just the IBM PPC440.
*/
#ifdef CONFIG_PTE_64BIT
typedef unsigned long long pte_basic_t;
#define PTE_SHIFT (PAGE_SHIFT - 3) /* 512 ptes per page */
#else
typedef unsigned long pte_basic_t;
#define PTE_SHIFT (PAGE_SHIFT - 2) /* 1024 ptes per page */
#endif
struct page;
extern void clear_pages(void *page, int order);
static inline void clear_page(void *page) { clear_pages(page, 0); }
extern void copy_page(void *to, void *from);
#include <asm-generic/page.h>
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_PAGE_32_H */
|
Fix kmalloc alignment on non-coherent DMA platforms
|
[POWERPC] Fix kmalloc alignment on non-coherent DMA platforms
On platforms doing non-coherent DMA (4xx, 8xx, ...), it's important
that the kmalloc minimum alignment is set to the cache line size, to
avoid sharing cache lines between different objects, so that DMA to
one of the objects doesn't corrupt the other.
Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
Signed-off-by: Paul Mackerras <19a0ba370c443ba08d20b5061586430ab449ee8c@samba.org>
|
C
|
apache-2.0
|
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,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
|
44f9fbcddec64b7c43f7882ab58c8f23007a44d0
|
include/base/errors.h
|
include/base/errors.h
|
/* --------------------------------------------------------------------------
* Name: errors.h
* Purpose: Error type and constants
* ----------------------------------------------------------------------- */
#ifndef ERRORS_H
#define ERRORS_H
typedef unsigned long int error;
#define error_OK 0
#define error_EXISTS 1
#define error_NOT_FOUND 2
#define error_OOM 3
#define error_STOP_WALK 4
#define error_CLASHES 5 /* key would clash with existing one */
#define error_NOT_IMPLEMENTED 6
#define error_KEYLEN_REQUIRED 200
#define error_KEYCOMPARE_REQUIRED 201
#define error_KEYHASH_REQIURED 202
#define error_QUEUE_FULL 300
#define error_QUEUE_EMPTY 301
#define error_TEST_FAILED 400
#define error_HASH_END 500
#define error_HASH_BAD_CONT 501
#endif /* ERRORS_H */
|
/* --------------------------------------------------------------------------
* Name: errors.h
* Purpose: Error type and constants
* ----------------------------------------------------------------------- */
#ifndef ERRORS_H
#define ERRORS_H
typedef unsigned long int error;
/* Generic errors */
#define error_OK 0ul /* No error */
#define error_OOM 1ul /* Out of memory */
#define error_NOT_IMPLEMENTED 2ul /* Function not implemented */
#define error_NOT_FOUND 3ul /* Item not found */
#define error_EXISTS 4ul /* Item already exists */
#define error_STOP_WALK 5ul /* Callback was cancelled */
/* Data structure errors */
#define error_CLASHES 100ul /* Key would clash with existing one */
#define error_QUEUE_FULL 110ul
#define error_QUEUE_EMPTY 111ul
#define error_HASH_END 120ul
#define error_HASH_BAD_CONT 121ul
/* Container errors */
#define error_KEYLEN_REQUIRED 200ul
#define error_KEYCOMPARE_REQUIRED 201ul
#define error_KEYHASH_REQIURED 202ul
/* Test errors */
#define error_TEST_FAILED 300ul
#endif /* ERRORS_H */
|
Make error constants unsigned longs.
|
Make error constants unsigned longs.
|
C
|
bsd-2-clause
|
dpt/Containers,dpt/Containers
|
96018d05e6801cf935ef630288d45dc2238b5db8
|
src/util.c
|
src/util.c
|
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int status, const char* message) {
laco_destroy_laco_state(laco);
if(message != NULL) {
fprintf(stderr, "%s\n", message);
}
exit(status);
}
bool laco_is_match(const char** matches, const char* test_string) {
int i;
char* match;
for(i = 0; (match = (char*) matches[i]); i++) {
if(strcmp(test_string, match) == 0) {
return true;
}
}
return false;
}
char** laco_split_by(const char split_with, char* string,
int ignore_repeats) {
if(string == NULL) return NULL;
char** result = calloc(16, sizeof(char*));
size_t i = 0;
while(1) {
result[i] = strsep(&string, &split_with);
if(result[i] == NULL) break;
if(ignore_repeats) ignore_extra(split_with, &string);
i += 1;
}
return result;
}
|
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "laco.h"
static inline void ignore_extra(const char chr, char** string_ptr) {
if(*string_ptr == NULL) return;
while(**string_ptr == chr) {
*string_ptr += 1;
}
}
/* External API */
void laco_kill(LacoState* laco, int status, const char* message) {
laco_destroy_laco_state(laco);
if(message != NULL) {
fprintf(stderr, "%s\n", message);
}
exit(status);
}
bool laco_is_match(const char** matches, const char* test_string) {
int i;
const char* match;
for(i = 0; (match = matches[i]); i++) {
if(strcmp(test_string, match) == 0) {
return true;
}
}
return false;
}
char** laco_split_by(const char split_with, char* string,
int ignore_repeats) {
if(string == NULL) return NULL;
char** result = calloc(16, sizeof(char*));
size_t i = 0;
while(1) {
result[i] = strsep(&string, &split_with);
if(result[i] == NULL) break;
if(ignore_repeats) ignore_extra(split_with, &string);
i += 1;
}
return result;
}
|
Change type from `char*` to `const char*`
|
Change type from `char*` to `const char*`
This is to gets rid of the explicit type conversation every iteration of the
loop.
|
C
|
bsd-2-clause
|
sourrust/laco
|
5861b4b4ba13a3feedb9544e94d9d0bc4296662c
|
test/Driver/ios-simulator-arcruntime.c
|
test/Driver/ios-simulator-arcruntime.c
|
// RUN: %clang -### -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
// RUN: %clang -### -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
// CHECK-OPTIONS1: -fobjc-no-arc-runtime
// CHECK-OPTIONS2-NOT: -fobjc-no-arc-runtime
|
// RUN: %clang -### -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
// RUN: %clang -### -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
//
// CHECK-OPTIONS1: -fobjc-no-arc-runtime
// CHECK-OPTIONS2-NOT: -fobjc-no-arc-runtime
|
Make this test pretend to be on a darwin host.
|
Make this test pretend to be on a darwin host.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133125 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,llvm-mirror/clang,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,apple/swift-clang
|
4b399f1a943e556f1fcd6a248991be922ad9741c
|
src/rtpp_command_query.h
|
src/rtpp_command_query.h
|
/*
* Copyright (c) 2014 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. 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 AUTHOR 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 AUTHOR 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.
*
*/
#define RTPP_QUERY_NSTATS 5
struct rtpp_session_obj;
int handle_query(struct cfg *, struct rtpp_command *, struct rtpp_session_obj *, int);
|
/*
* Copyright (c) 2014 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. 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 AUTHOR 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 AUTHOR 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.
*
*/
#define RTPP_QUERY_NSTATS 5
struct rtpp_pipe;
int handle_query(struct cfg *, struct rtpp_command *, struct rtpp_pipe *, int);
|
Change from working on "session" to working on "pipes".
|
Change from working on "session" to working on "pipes".
|
C
|
bsd-2-clause
|
synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,sippy/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy
|
dae8629cff132d3abd5ae83852380b568fbf654a
|
src/utils/CommonParams.h
|
src/utils/CommonParams.h
|
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMONPARAMS_H
|
# ifndef COMMONPARAMS_H
# define COMMONPARAMS_H
struct CommonParams{
int nx,ny,nz;
int NX,NY,NZ;
int rank;
int np;
int nbrL;
int nbrR;
int xOff;
int iskip;
int jskip;
int kskip;
int nstep;
int numOutputs;
double dx,dy,dz;
double LX,LY,LZ;
double dt;
};
# endif // COMMONPARAMS_H
|
Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
|
Add SfieldFD class and TIPS3 and TIPS4 classes to phase_field app
|
C
|
mit
|
paulmillett/meso
|
9201aebbe24b8513b2af370d26bdfc2925daa037
|
Include/KAI/Config/Compiler.h
|
Include/KAI/Config/Compiler.h
|
#ifndef KAI_CONFIG_COMPILER_H
# define KAI_CONFIG_COMPILER_H
#
# if defined(BOOST_MSVC)
# define KAI_COMPILER_MSVC
# endif
#
# undef KAI_HAVE_PRAGMA_ONCE
#
# ifdef KAI_COMPILER_MSVC
# ifndef KAI_HAVE_PRAGMA_ONCE
# define KAI_HAVE_PRAGMA_ONCE
# endif
# endif // KAI_COMPILER_MSVC
#endif // KAI_CONFIG_COMPILER_H
//EOF
|
#ifndef KAI_CONFIG_COMPILER_H
# define KAI_CONFIG_COMPILER_H
#
# if defined(BOOST_MSVC)
# define KAI_COMPILER_MSVC
# endif
#
# undef KAI_HAVE_PRAGMA_ONCE
#pragma warning (disable: 4458 4456)
#
# ifdef KAI_COMPILER_MSVC
# ifndef KAI_HAVE_PRAGMA_ONCE
# define KAI_HAVE_PRAGMA_ONCE
# endif
# endif // KAI_COMPILER_MSVC
#endif // KAI_CONFIG_COMPILER_H
//EOF
|
Apply fixes required to work with VS 2015 Community.
|
Apply fixes required to work with VS 2015 Community.
Former-commit-id: 11fb6880db2d2d53bb8bf126a58e2eba7d0806d3
Former-commit-id: 6923894e1f89726caee9cecd8e43d078c17ce070
|
C
|
mit
|
cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI
|
fc89323210a5f3f53808f7d801705d6b8c0a4224
|
test/Analysis/unix-fns.c
|
test/Analysis/unix-fns.c
|
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
#include <fcntl.h>
void test_open(const char *path) {
int fd;
fd = open(path, O_RDONLY); // no-warning
if (!fd)
close(fd);
fd = open(path, O_CREAT); // expected-warning{{Call to 'open' requires a third argument when the 'O_CREAT' flag is set}}
if (!fd)
close(fd);
}
|
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
#ifndef O_CREAT
#define O_CREAT 0x0200
#define O_RDONLY 0x0000
#endif
int open(const char *, int, ...);
void test_open(const char *path) {
int fd;
fd = open(path, O_RDONLY); // no-warning
if (!fd)
close(fd);
fd = open(path, O_CREAT); // expected-warning{{Call to 'open' requires a third argument when the 'O_CREAT' flag is set}}
if (!fd)
close(fd);
}
|
Remove test case dependancy on platform headers.
|
Remove test case dependancy on platform headers.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97088 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang
|
6e95c0157afc35662e73b9caafe0d1d8bcf11f77
|
tests/shared_libs_toc/srcs/main.c
|
tests/shared_libs_toc/srcs/main.c
|
#include <stdio.h>
const char* output_hash(void);
int getValue(void);
int main(int argc, char **argv) {
printf("%s%d\n", output_hash(), getValue());
return 0;
}
|
#include <stdio.h>
const char* output_hash(void);
int getValue(void);
int main(void) {
printf("%s%d\n", output_hash(), getValue());
return 0;
}
|
Fix shared_lib_toc test on Android
|
Fix shared_lib_toc test on Android
In the shared_libs_toc test, the compiler complains about unused
arguments to main(), so just declare it with a void parameter list.
Change-Id: I5c5074c1012fec7c84d11fa1d8e5b7a0b74959b4
Signed-off-by: David Kilroy <159cd46f289d7961b38b0171b53c05be4aaef0b6@arm.com>
|
C
|
apache-2.0
|
ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build
|
f71ce7795e9204d7b8db08f46ec50c2ec56b5c31
|
loader.c
|
loader.c
|
// This will load a lorito bytecode file into a lorito codeseg
|
// This will load a lorito bytecode file into a lorito codeseg
// Since this is temporary, and we'll end up throwing it away in favor of
// integrating with parrot's packfile format, this will be real simple.
//
// Integer: segment type (0 = code, 1 = data)
// Integer: Size of segement name
// String: segment name, null terminated
// Integer: Count (in 8 bytes, so a count of 1 == 8 bytes)
// Data
|
Document the mini pack format.
|
Document the mini pack format.
Sadly, I mangled some nomenclature and called something a segment that
isn't in the parrot world. Will need to fix that sometime. Sorry.
|
C
|
artistic-2.0
|
atrodo/lorito,atrodo/lorito
|
4b53f8e967de8a0123cc029adc024e8b3cb16eeb
|
tests/regression/29-svcomp/14_addition_in_comparision_bot.c
|
tests/regression/29-svcomp/14_addition_in_comparision_bot.c
|
int main()
{
unsigned int top;
unsigned int start = 0;
unsigned int count = 0;
if(start + count > top) {
return 1;
}
return 0;
}
|
// PARAM: --enable ana.int.interval
int main()
{
unsigned int top;
unsigned int start = 0;
unsigned int count = 0;
if(start + count > top) {
return 1;
}
return 0;
}
|
Enable interval analysis for test
|
Enable interval analysis for test
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
9f8a92329efad8a14294e0006f7a279087e994bd
|
cbits/siphash.h
|
cbits/siphash.h
|
#ifndef _hashable_siphash_h
#define _hashable_siphash_h
#include <stdint.h>
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define SIPHASH_ROUNDS 2
#define SIPHASH_FINALROUNDS 4
u64 hashable_siphash(int, int, u64, u64, const u8 *, size_t);
u64 hashable_siphash24(u64, u64, const u8 *, size_t);
#if defined(__i386)
u64 hashable_siphash24_sse2(u64, u64, const u8 *, size_t);
u64 hashable_siphash24_sse41(u64, u64, const u8 *, size_t);
#endif
#endif /* _hashable_siphash_h */
|
#ifndef _hashable_siphash_h
#define _hashable_siphash_h
#include <stdint.h>
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define SIPHASH_ROUNDS 2
#define SIPHASH_FINALROUNDS 4
u64 hashable_siphash(int, int, u64, u64, const u8 *, size_t);
u64 hashable_siphash24(u64, u64, const u8 *, size_t);
#if defined(__i386) || defined(__x86_64)
/* To use SSE instructions on Windows, we have to adjust the stack
from its default of 4-byte alignment to use 16-byte alignment. */
# if defined(_WIN32)
# define ALIGNED_STACK __attribute__((force_align_arg_pointer))
# else
# define ALIGNED_STACK
# endif
u64 hashable_siphash24_sse2(u64, u64, const u8 *, size_t) ALIGNED_STACK;
u64 hashable_siphash24_sse41(u64, u64, const u8 *, size_t) ALIGNED_STACK;
#endif
#endif /* _hashable_siphash_h */
|
Use 16-byte stack alignment on Windows, if using SSE
|
Use 16-byte stack alignment on Windows, if using SSE
|
C
|
bsd-3-clause
|
ekmett/hashable
|
40d6218a4da5c87723142bc7015bd6a85c52b590
|
src/CPlusPlusMangle.h
|
src/CPlusPlusMangle.h
|
#ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target parameter is used to decide on the C++
* ABI/mangling style to use.
*/
std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
Type return_type, const std::vector<ExternFuncArgument> &args,
const Target &target);
void cplusplus_mangle_test();
}
}
#endif
|
#ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H
/** \file
*
* A simple function to get a C++ mangled function name for a function.
*/
#include <string>
#include "IR.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** Return the mangled C++ name for a function.
* The target parameter is used to decide on the C++
* ABI/mangling style to use.
*/
EXPORT std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
Type return_type, const std::vector<ExternFuncArgument> &args,
const Target &target);
EXPORT void cplusplus_mangle_test();
}
}
#endif
|
Add some EXPORT qualifiers for msvc
|
Add some EXPORT qualifiers for msvc
Former-commit-id: d0593d880573052e6ae2790328a336a6a9865cc3
|
C
|
mit
|
Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide
|
940a0d5b67b005f1fda448a4549a468745be827d
|
include/VolViz/src/GeometryDescriptor.h
|
include/VolViz/src/GeometryDescriptor.h
|
#ifndef VolViz_Geometry_h
#define VolViz_Geometry_h
#include "Types.h"
namespace VolViz {
enum MoveMask : uint8_t {
None = 0x00,
X = 0x01,
Y = 0x02,
Z = 0x04,
All = 0x07
};
struct GeometryDescriptor {
bool movable{true};
Color color{Colors::White()};
};
struct AxisAlignedPlaneDescriptor : public GeometryDescriptor {
Length intercept{0 * meter};
Axis axis{Axis::X};
};
} // namespace VolViz
#endif // VolViz_Geometry_h
|
#ifndef VolViz_Geometry_h
#define VolViz_Geometry_h
#include "Types.h"
namespace VolViz {
enum MoveMask : uint8_t {
None = 0x00,
X = 0x01,
Y = 0x02,
Z = 0x04,
All = 0x07
};
inline Vector3f maskToUnitVector(MoveMask mask) noexcept {
Vector3f v = Vector3f::Zero();
auto maskRep = static_cast<uint8_t>(mask);
Expects(maskRep <= 0x07);
int idx{0};
while (maskRep != 0) {
if (maskRep & 0x01) v(idx) = 1.f;
maskRep >>= 1;
++idx;
}
return v;
}
struct GeometryDescriptor {
bool movable{true};
Color color{Colors::White()};
};
struct AxisAlignedPlaneDescriptor : public GeometryDescriptor {
Length intercept{0 * meter};
Axis axis{Axis::X};
};
} // namespace VolViz
#endif // VolViz_Geometry_h
|
Add function to convert MoveMak to mask vector
|
Add function to convert MoveMak to mask vector
|
C
|
mit
|
ithron/VolViz,ithron/VolViz,ithron/VolViz
|
6114da642991db0da3122e5d129e5050a449605a
|
fmacros.h
|
fmacros.h
|
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#if !(defined(__APPLE__) && defined(__MACH__))
#define _XOPEN_SOURCE 600
#endif
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define _OSX
#endif
#endif
|
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__CYGWIN__)
#include <sys/cdefs.h>
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
#if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))
#define _XOPEN_SOURCE 600
#endif
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define _OSX
#endif
#endif
|
Fix compilation on FreeBSD 10.3 with default compiler
|
Fix compilation on FreeBSD 10.3 with default compiler
|
C
|
bsd-3-clause
|
jinguoli/hiredis,jinguoli/hiredis,thomaslee/hiredis,jinguoli/hiredis,thomaslee/hiredis,redis/hiredis,charsyam/hiredis,charsyam/hiredis,redis/hiredis,redis/hiredis
|
b8eb3a0a62af429ccd34fc43d1a74260733ce9c8
|
TDTChocolate/TDTFoundationAdditions.h
|
TDTChocolate/TDTFoundationAdditions.h
|
#import "FoundationAdditions/TDTLog.h"
#import "FoundationAdditions/TDTAssert.h"
#import "FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h"
#import "FoundationAdditions/NSArray+TDTFunctionalAdditions.h"
#import "FoundationAdditions/NSSet+TDTFunctionalAdditions.h"
#import "FoundationAdditions/TDTObjectOrDefault.h"
#import "FoundationAdditions/NSArray+TDTAdditions.h"
#import "FoundationAdditions/NSString+TDTAdditions.h"
#import "FoundationAdditions/NSData+TDTStringEncoding.h"
#import "FoundationAdditions/NSDate+TDTAdditions.h"
#import "FoundationAdditions/NSDate+TDTComparisons.h"
#import "FoundationAdditions/NSDateFormatter+TDTISO8601Formatting.h"
#import "FoundationAdditions/NSFileManager+TDTAdditions.h"
#import "FoundationAdditions/NSProcessInfo+TDTEnvironmentAdditions.h"
#import "FoundationAdditions/TDTBlockAdditions.h"
#import "FoundationAdditions/TDTKeychain.h"
|
#import "FoundationAdditions/TDTLog.h"
#import "FoundationAdditions/TDTAssert.h"
#import "FoundationAdditions/TDTSuppressPerformSelectorLeakWarning.h"
#import "FoundationAdditions/NSArray+TDTFunctionalAdditions.h"
#import "FoundationAdditions/NSSet+TDTFunctionalAdditions.h"
#import "FoundationAdditions/TDTObjectOrDefault.h"
#import "FoundationAdditions/NSArray+TDTAdditions.h"
#import "FoundationAdditions/NSString+TDTAdditions.h"
#import "FoundationAdditions/NSData+TDTStringEncoding.h"
#import "FoundationAdditions/NSDate+TDTAdditions.h"
#import "FoundationAdditions/NSDate+TDTComparisons.h"
#import "FoundationAdditions/NSDateFormatter+TDTISO8601Formatting.h"
#import "FoundationAdditions/NSFileManager+TDTAdditions.h"
#import "FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h"
#import "FoundationAdditions/TDTBlockAdditions.h"
|
Fix header paths in FoundationAdditions umbrella header
|
Fix header paths in FoundationAdditions umbrella header
|
C
|
bsd-3-clause
|
talk-to/Chocolate,talk-to/Chocolate
|
d27b6dbfdf02311c3b3a0182f835661512c07f6a
|
control.c
|
control.c
|
#include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
current /= 2;
}
strcat(buf, "\0");
}
int main(int argc, char *argv[]) {
// 0: device
// 1: group
// 2: plug
// 3: status
char device[] = "\\\\.\\\\COM5";
if (serial_connect(device) == SERIAL_ERROR) {
printf("Failed to connect to serial device \"%s\"\n", device);
return 1;
}
struct Packet packet = { 0, 0, 0 };
if (serial_transmit(packet) == SERIAL_ERROR) {
printf("Failed to send data to serial device \"%s\"\n", device);
return 1;
}
serial_close(device);
return 0;
}
|
#include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
current /= 2;
}
strcat(buf, "\0");
}
int main(int argc, char *argv[]) {
// 0: device
// 1: group
// 2: plug
// 3: status
char device[] = "\\\\.\\\\COM5";
if (serial_connect(device) == SERIAL_ERROR) {
printf("Failed to connect to serial device \"%s\"\n", device);
return 1;
}
struct Packet packet = { 1, 0, 3 };
if (serial_transmit(packet) == SERIAL_ERROR) {
printf("Failed to send data to serial device \"%s\"\n", device);
return 1;
}
serial_close();
return 0;
}
|
Add test packet data and fix invalid serial_close call
|
Add test packet data and fix invalid serial_close call
|
C
|
agpl-3.0
|
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
|
ee12537a18f3f9792f8379454affba5ad13030ad
|
hardware/main.c
|
hardware/main.c
|
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "deps/util.h"
#include "deps/rcswitch.h"
#define PIN_RC PB2
#include "deps/softuart.h"
#include "packet.h"
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
delay_ms(1000);
softuart_puts("Starting...\r\n");
// enable the rc switch
rcswitch_enable(PIN_RC);
while (1) {
// if there is some data waiting for us
if (softuart_kbhit()) {
// parse the data
struct Packet packet;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
|
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "deps/util.h"
#include "deps/rcswitch.h"
#define PIN_RC PB2
#include "deps/softuart.h"
#include "packet.h"
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
// enable the rc switch
rcswitch_enable(PIN_RC);
while (1) {
// if there is some data waiting for us
if (softuart_kbhit()) {
// parse the data
struct Packet packet;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
|
Remove startup delay and messages
|
Remove startup delay and messages
|
C
|
agpl-3.0
|
jackwilsdon/lightcontrol,jackwilsdon/lightcontrol
|
f7f41d9301d514a93c03a9cbcfeaf5be88906707
|
include/flags.h
|
include/flags.h
|
/*
* Copyright 2015-2016 Yury Gribov
*
* Use of this source code is governed by MIT license that can be
* found in the LICENSE.txt file.
*/
#ifndef FLAGS_H
#define FLAGS_H
enum CheckFlags {
CHECK_BASIC = 1 << 0,
CHECK_REFLEXIVITY = 1 << 1,
CHECK_SYMMETRY = 1 << 2,
CHECK_TRANSITIVITY = 1 << 3,
CHECK_SORTED = 1 << 4,
CHECK_GOOD_BSEARCH = 1 << 5,
CHECK_UNIQUE = 1 << 6,
// Do not check reflexivity because it's normally not important (CHECK_REFLEXIVITY).
// Do not assume bsearch is commutative (CHECK_GOOD_BSEARCH).
CHECK_DEFAULT = CHECK_BASIC | CHECK_SYMMETRY
| CHECK_TRANSITIVITY | CHECK_SORTED,
CHECK_ALL = 0xffffffff,
};
typedef struct {
char debug : 1;
char report_error : 1;
char print_to_syslog : 1;
char raise : 1;
unsigned max_errors;
unsigned sleep;
unsigned checks;
const char *out_filename;
} Flags;
int parse_flags(char *opts, Flags *flags);
#endif
|
/*
* Copyright 2015-2016 Yury Gribov
*
* Use of this source code is governed by MIT license that can be
* found in the LICENSE.txt file.
*/
#ifndef FLAGS_H
#define FLAGS_H
enum CheckFlags {
CHECK_BASIC = 1 << 0,
CHECK_REFLEXIVITY = 1 << 1,
CHECK_SYMMETRY = 1 << 2,
CHECK_TRANSITIVITY = 1 << 3,
CHECK_SORTED = 1 << 4,
CHECK_GOOD_BSEARCH = 1 << 5,
CHECK_UNIQUE = 1 << 6,
// Do not check reflexivity because it's normally not important (CHECK_REFLEXIVITY).
// Do not assume bsearch is commutative (CHECK_GOOD_BSEARCH).
CHECK_DEFAULT = CHECK_BASIC | CHECK_SYMMETRY
| CHECK_TRANSITIVITY | CHECK_SORTED,
CHECK_ALL = 0xffffffff,
};
typedef struct {
unsigned char debug : 1;
unsigned char report_error : 1;
unsigned char print_to_syslog : 1;
unsigned char raise : 1;
unsigned max_errors;
unsigned sleep;
unsigned checks;
const char *out_filename;
} Flags;
int parse_flags(char *opts, Flags *flags);
#endif
|
Make bitfield signs explicitly signed (detected by Semmle).
|
Make bitfield signs explicitly signed (detected by Semmle).
|
C
|
mit
|
yugr/sortcheck,yugr/sortcheck
|
b7e1c268a1f1d242fe44703438fc41ef5bbe4c82
|
testing/unittest/special_types.h
|
testing/unittest/special_types.h
|
#pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVector operator+(const FixedVector& bs) const
{
FixedVector output;
for(unsigned int i = 0; i < N; i++)
output.data[i] = data[i] + bs.data[i];
return output;
}
__host__ __device__
bool operator<(const FixedVector& bs) const
{
for(unsigned int i = 0; i < N; i++)
{
if(data[i] < bs.data[i])
return true;
else if(bs.data[i] < data[i])
return false;
}
return false;
}
__host__ __device__
bool operator==(const FixedVector& bs) const
{
for(unsigned int i = 0; i < N; i++)
{
if(!(data[i] == bs.data[i]))
return false;
}
return true;
}
};
|
#pragma once
template <typename T, unsigned int N>
struct FixedVector
{
T data[N];
__host__ __device__
FixedVector() : data() { }
__host__ __device__
FixedVector(T init)
{
for(unsigned int i = 0; i < N; i++)
data[i] = init;
}
__host__ __device__
FixedVector operator+(const FixedVector& bs) const
{
FixedVector output;
for(unsigned int i = 0; i < N; i++)
output.data[i] = data[i] + bs.data[i];
return output;
}
__host__ __device__
bool operator<(const FixedVector& bs) const
{
for(unsigned int i = 0; i < N; i++)
{
if(data[i] < bs.data[i])
return true;
else if(bs.data[i] < data[i])
return false;
}
return false;
}
__host__ __device__
bool operator==(const FixedVector& bs) const
{
for(unsigned int i = 0; i < N; i++)
{
if(!(data[i] == bs.data[i]))
return false;
}
return true;
}
};
|
Initialize FixedVector's member in its null constructor to eliminate a Wall warning.
|
Initialize FixedVector's member in its null constructor to eliminate a Wall warning.
|
C
|
apache-2.0
|
zeryx/thrust,xiongzhanblake/thrust,jaredhoberock/thrust,thrust/thrust,egaburov/thrust,raygit/thrust,arnabgho/thrust,Ricardo666666/thrust,sarvex/thrust,jaredhoberock/thrust,thvasilo/thrust,dachziegel/thrust,Ricardo666666/thrust,xiongzhanblake/thrust_src,dachziegel/thrust,thrust/thrust,xiongzhanblake/thrust,xiongzhanblake/thrust_src,zeryx/thrust,jaredhoberock/thrust,thrust/thrust,raygit/thrust,mohamed-ali/thrust,marksantos/thrust,mohamed-ali/thrust,sdalton1/thrust,zhenglaizhang/thrust,marksantos/thrust,sarvex/thrust,xiongzhanblake/thrust_src,mohamed-ali/thrust,thvasilo/thrust,sdalton1/thrust,andrewcorrigan/thrust-multi-permutation-iterator,GrimDerp/thrust,sdalton1/thrust,marksantos/thrust,andrewcorrigan/thrust-multi-permutation-iterator,sarvex/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust,thrust/thrust,egaburov/thrust,arnabgho/thrust,jaredhoberock/thrust,GrimDerp/thrust,zhenglaizhang/thrust,GrimDerp/thrust,zhenglaizhang/thrust,dachziegel/thrust,zeryx/thrust,arnabgho/thrust,thvasilo/thrust,xiongzhanblake/thrust,thrust/thrust,egaburov/thrust,raygit/thrust,Ricardo666666/thrust
|
e88a8f74d643ad6636683ff5304645fb203db34e
|
testmud/mud/home/Account/initd.c
|
testmud/mud/home/Account/initd.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/>.
*/
#include <kotaka/log.h>
#include <kotaka/paths.h>
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
KERNELD->set_global_access("Account", 1);
load_dir("sys");
LOGD->post_message("account", LOG_DEBUG, "Hello world from the account subsystem");
}
|
/*
* 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/>.
*/
#include <kotaka/log.h>
#include <kotaka/paths.h>
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
KERNELD->set_global_access("Account", 1);
load_dir("sys");
}
|
Remove spammy hello world from account system
|
Remove spammy hello world from account system
|
C
|
agpl-3.0
|
shentino/kotaka,shentino/kotaka,shentino/kotaka
|
bec95322a9361d3a0458e2ccae647dfb59821f0a
|
include/utilities/utilities.h
|
include/utilities/utilities.h
|
/** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES_UTILITIES_H_
// Keep this in alphabetical order
#include "buffer.h"
#include "checks.h"
#include "copy_array.h"
#include "CSR.h"
#include "format_convert.h"
#include "IJV.h"
#include "memory_allocation.h"
#include "misc.h"
#include "stringformat.h"
#include "timer.h"
#endif /* LINALG_UTILITIES_UTILITIES_H_ */
|
/** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES_UTILITIES_H_
// Keep this in alphabetical order
#include "buffer_helper.h"
#include "checks.h"
#include "copy_array.h"
#include "CSR.h"
#include "format_convert.h"
#include "IJV.h"
#include "memory_allocation.h"
#include "misc.h"
#include "stringformat.h"
#include "timer.h"
#endif /* LINALG_UTILITIES_UTILITIES_H_ */
|
Rename buffer.h to buffer_helper.h, part II
|
Rename buffer.h to buffer_helper.h, part II
|
C
|
bsd-3-clause
|
MauroCalderara/LinAlg,MauroCalderara/LinAlg,MauroCalderara/LinAlg
|
b13325f74d96d7e0a24c6f62b0910d6739835d47
|
src/plugins/crypto/compile_openssl.c
|
src/plugins/crypto/compile_openssl.c
|
/**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
int main (void)
{
EVP_CIPHER_CTX * opensslSpecificType;
return 0;
}
|
/**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
EVP_CIPHER_CTX * nothing (void)
{
return NULL;
}
int main (void)
{
nothing ();
return 0;
}
|
Fix detection of lib if we use `-Werror`
|
OpenSSL: Fix detection of lib if we use `-Werror`
Before this update detecting OpenSSL would fail, if we treated warnings
as errors (`-Werror`). The cause of this problem was that compiling
`compile_openssl.cpp` produced a warning about an unused variable.
|
C
|
bsd-3-clause
|
petermax2/libelektra,e1528532/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,e1528532/libelektra,mpranj/libelektra,e1528532/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,e1528532/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra
|
c102f62a41137d6a75500d46e272bc95a63cfae9
|
src/kernel/time/time_manager.c
|
src/kernel/time/time_manager.c
|
/*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static int64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
__time_system_time_ns = 0;
__time_system_clock = NULL;
}
void __time_set_system_clock(__clock_device_t * const device)
{
__time_system_clock = device;
}
sos_time_t __time_get_system_time(void)
{
sos_time_t time = SOS_ZERO_TIME;
if (__time_system_clock)
{
__time_system_time_ns = (int64_t)__time_system_clock->get_time();
time.seconds = (int32_t)__time_system_time_ns / ONE_SECOND_AS_NANOSECONDS;
time.nanoseconds = (int64_t)(__time_system_time_ns - ((int64_t)time.seconds * ONE_SECOND_AS_NANOSECONDS));
}
return time;
}
|
/*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static uint64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
__time_system_time_ns = 0;
__time_system_clock = NULL;
}
void __time_set_system_clock(__clock_device_t * const device)
{
__time_system_clock = device;
}
sos_time_t __time_get_system_time(void)
{
sos_time_t time = SOS_ZERO_TIME;
if (__time_system_clock)
{
__time_system_time_ns = __time_system_clock->get_time();
time.seconds = __time_system_time_ns / ONE_SECOND_AS_NANOSECONDS;
time.nanoseconds = (int64_t)(__time_system_time_ns - ((int64_t)time.seconds * ONE_SECOND_AS_NANOSECONDS));
}
return time;
}
|
Fix the powerpc clock from the tbr.
|
Fix the powerpc clock from the tbr.
|
C
|
mit
|
sam-truscott/tinker-kernel,sam-truscott/tinker-kernel
|
6772c4ea857328134e20eb6164d64b9ba2e038fd
|
You-DataStore/internal/internal_transaction.h
|
You-DataStore/internal/internal_transaction.h
|
#pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
/// The actual class that contains the logic for managing transactions.
class Transaction {
friend class DataStore;
friend class UnitTests::DataStoreApiTest;
public:
/// Default constructor. This is meant to be called by \ref DataStore.
Transaction() = default;
/// Commits the set of operations made.
void commit();
/// Rolls back all the operations made.
void rollback();
/// Pushes a transaction onto the stack. This is meant to be called by
/// \ref DataStore.
///
/// \param[in] operation The operation to push.
void push(std::unique_ptr<IOperation> operation);
private:
/// The set of operations that need to be executed when the transaction is
/// committed.
boost::ptr_deque<IOperation> operationsQueue;
};
} // namespace Internal
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
|
#pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
/// The actual class that contains the logic for managing transactions.
class Transaction {
friend class DataStore;
friend class UnitTests::DataStoreApiTest;
public:
/// Default constructor. This is meant to be called by \ref DataStore.
Transaction() = default;
/// Commits the set of operations made.
void commit();
/// Rolls back all the operations made.
void rollback();
/// Pushes a transaction onto the stack. This is meant to be called by
/// \ref DataStore.
///
/// \param[in] operation The operation to push.
void push(std::unique_ptr<IOperation> operation);
/// Merges the operationsQueue of the next transaction that is committed
/// earlier.
///
/// \param[in] queue The operations queue
void mergeQueue(boost::ptr_deque<IOperation>& queue);
private:
/// The set of operations that need to be executed when the transaction is
/// committed.
boost::ptr_deque<IOperation> operationsQueue;
boost::ptr_deque<IOperation> mergedOperationsQueue;
};
} // namespace Internal
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
|
Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified
|
Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified
|
C
|
mit
|
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
|
03a6bc7bedc52d6173436f789cc0329086447927
|
include/swift/Syntax/TokenKinds.h
|
include/swift/Syntax/TokenKinds.h
|
//===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines the Token kinds.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_TOKENKINDS_H
#define SWIFT_TOKENKINDS_H
namespace swift {
enum class tok {
#define TOKEN(X) X,
#include "swift/Syntax/TokenKinds.def"
NUM_TOKENS
};
/// Check whether a token kind is known to have any specific text content.
/// e.g., tol::l_paren has determined text however tok::identifier doesn't.
bool isTokenTextDetermined(tok kind);
/// If a token kind has determined text, return the text; otherwise assert.
StringRef getTokenText(tok kind);
void dumpTokenKind(llvm::raw_ostream &os, tok kind);
} // end namespace swift
#endif // SWIFT_TOKENKINDS_H
|
//===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines the Token kinds.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_TOKENKINDS_H
#define SWIFT_TOKENKINDS_H
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
namespace swift {
enum class tok {
#define TOKEN(X) X,
#include "swift/Syntax/TokenKinds.def"
NUM_TOKENS
};
/// Check whether a token kind is known to have any specific text content.
/// e.g., tol::l_paren has determined text however tok::identifier doesn't.
bool isTokenTextDetermined(tok kind);
/// If a token kind has determined text, return the text; otherwise assert.
StringRef getTokenText(tok kind);
void dumpTokenKind(llvm::raw_ostream &os, tok kind);
} // end namespace swift
#endif // SWIFT_TOKENKINDS_H
|
Prepare the header for stand-alone usage.
|
Prepare the header for stand-alone usage.
|
C
|
apache-2.0
|
roambotics/swift,rudkx/swift,ahoppen/swift,ahoppen/swift,JGiola/swift,atrick/swift,apple/swift,apple/swift,tkremenek/swift,benlangmuir/swift,roambotics/swift,tkremenek/swift,xwu/swift,rudkx/swift,atrick/swift,tkremenek/swift,JGiola/swift,xwu/swift,atrick/swift,glessard/swift,roambotics/swift,glessard/swift,hooman/swift,parkera/swift,roambotics/swift,apple/swift,ahoppen/swift,parkera/swift,glessard/swift,ahoppen/swift,gregomni/swift,xwu/swift,gregomni/swift,JGiola/swift,JGiola/swift,gregomni/swift,JGiola/swift,benlangmuir/swift,roambotics/swift,JGiola/swift,tkremenek/swift,parkera/swift,tkremenek/swift,rudkx/swift,benlangmuir/swift,xwu/swift,glessard/swift,benlangmuir/swift,hooman/swift,xwu/swift,hooman/swift,xwu/swift,apple/swift,tkremenek/swift,ahoppen/swift,hooman/swift,apple/swift,rudkx/swift,parkera/swift,hooman/swift,hooman/swift,xwu/swift,hooman/swift,parkera/swift,parkera/swift,parkera/swift,roambotics/swift,rudkx/swift,tkremenek/swift,gregomni/swift,gregomni/swift,atrick/swift,benlangmuir/swift,apple/swift,benlangmuir/swift,atrick/swift,glessard/swift,ahoppen/swift,rudkx/swift,atrick/swift,parkera/swift,glessard/swift,gregomni/swift
|
79162ce8caaf6d1f66666cdd52f677de812af47a
|
test/Preprocessor/macro_paste_bcpl_comment.c
|
test/Preprocessor/macro_paste_bcpl_comment.c
|
// RUN: clang-cc %s -Eonly 2>&1 | grep error
#define COMM1 / ## /
COMM1
|
// RUN: clang-cc %s -Eonly -fms-extensions=0 2>&1 | grep error
#define COMM1 / ## /
COMM1
|
Disable Microsoft extensions to fix failure on Windows.
|
Disable Microsoft extensions to fix failure on Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@84893 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang
|
c8e8ac42abb9225c3abfac036340548cfaaa0e92
|
common/opthelpers.h
|
common/opthelpers.h
|
#ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at the expense of a less optimal false path.
*/
#define LIKELY(x) __builtin_expect(!!(x), !0)
/* The opposite of LIKELY, optimizing the case where the condition is false. */
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
/* Unlike LIKELY, ASSUME requires the condition to be true or else it invokes
* undefined behavior. It's essentially an assert without actually checking the
* condition at run-time, allowing for stronger optimizations than LIKELY.
*/
#if HAS_BUILTIN(__builtin_assume)
#define ASSUME __builtin_assume
#else
#define ASSUME(x) do { if(!(x)) __builtin_unreachable(); } while(0)
#endif
#else /* __GNUC__ */
#define LIKELY(x) (!!(x))
#define UNLIKELY(x) (!!(x))
#ifdef _MSC_VER
#define ASSUME __assume
#else
#define ASSUME(x) ((void)0)
#endif /* _MSC_VER */
#endif /* __GNUC__ */
#endif /* OPTHELPERS_H */
|
#ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at the expense of a less optimal false path.
*/
#define LIKELY(x) __builtin_expect(!!(x), !false)
/* The opposite of LIKELY, optimizing the case where the condition is false. */
#define UNLIKELY(x) __builtin_expect(!!(x), false)
/* Unlike LIKELY, ASSUME requires the condition to be true or else it invokes
* undefined behavior. It's essentially an assert without actually checking the
* condition at run-time, allowing for stronger optimizations than LIKELY.
*/
#if HAS_BUILTIN(__builtin_assume)
#define ASSUME __builtin_assume
#else
#define ASSUME(x) do { if(!(x)) __builtin_unreachable(); } while(0)
#endif
#else /* __GNUC__ */
#define LIKELY(x) (!!(x))
#define UNLIKELY(x) (!!(x))
#ifdef _MSC_VER
#define ASSUME __assume
#else
#define ASSUME(x) ((void)0)
#endif /* _MSC_VER */
#endif /* __GNUC__ */
#endif /* OPTHELPERS_H */
|
Use false instead of 0 for a boolean
|
Use false instead of 0 for a boolean
|
C
|
lgpl-2.1
|
aaronmjacobs/openal-soft,aaronmjacobs/openal-soft
|
a2af1d8bff1b3729048f95c8c266ef8f2fb4c861
|
ps4/histogram_omp.c
|
ps4/histogram_omp.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit(-1);
}
int n_threads = atoi(argv[2]);
unsigned char* image = read_bmp(argv[1]);
unsigned char* output_image = malloc(sizeof(unsigned char) * image_size);
int* histogram = (int*)calloc(sizeof(int), color_depth);
for(int i = 0; i < image_size; i++){
histogram[image[i]]++;
}
float* transfer_function = (float*)calloc(sizeof(float), color_depth);
for(int i = 0; i < color_depth; i++){
for(int j = 0; j < i+1; j++){
transfer_function[i] += color_depth*((float)histogram[j])/(image_size);
}
}
for(int i = 0; i < image_size; i++){
output_image[i] = transfer_function[image[i]];
}
write_bmp(output_image, image_width, image_height);
}
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit(-1);
}
int n_threads = atoi(argv[2]);
unsigned char* image = read_bmp(argv[1]);
unsigned char* output_image = malloc(sizeof(unsigned char) * image_size);
int* histogram = (int*)calloc(sizeof(int), color_depth);
#pragma omp parallel for
for(int i = 0; i < image_size; i++){
histogram[image[i]]++;
}
float* transfer_function = (float*)calloc(sizeof(float), color_depth);
#pragma omp parallel for
for(int i = 0; i < color_depth; i++){
for(int j = 0; j < i+1; j++){
transfer_function[i] += color_depth*((float)histogram[j])/(image_size);
}
}
for(int i = 0; i < image_size; i++){
output_image[i] = transfer_function[image[i]];
}
write_bmp(output_image, image_width, image_height);
}
|
Add paralellism with race conditions to omp
|
Add paralellism with race conditions to omp
|
C
|
apache-2.0
|
Raane/Parallel-Computing,Raane/Parallel-Computing
|
3caf8297799b2b227501404925cf8f1389cf0065
|
libc/include/time.h
|
libc/include/time.h
|
/******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http://www.opensource.org/licenses/bsd-license.php
*
* Contributors:
* IBM Corporation - initial implementation
*****************************************************************************/
#ifndef _TIME_H
#define _TIME_H
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
/* unused in skiboot */
int tm_wday;
int tm_yday;
int tm_isdst;
};
typedef long time_t;
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
struct tm *gmtime_r(const time_t *timep, struct tm *result);
time_t mktime(struct tm *tm);
/* Not implemented by libc but by hosting environment, however
* this is where the prototype is expected
*/
int nanosleep(const struct timespec *req, struct timespec *rem);
#endif /* _TIME_H */
|
/******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http://www.opensource.org/licenses/bsd-license.php
*
* Contributors:
* IBM Corporation - initial implementation
*****************************************************************************/
#ifndef _TIME_H
#define _TIME_H
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
};
typedef long time_t;
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
struct tm *gmtime_r(const time_t *timep, struct tm *result);
time_t mktime(struct tm *tm);
/* Not implemented by libc but by hosting environment, however
* this is where the prototype is expected
*/
int nanosleep(const struct timespec *req, struct timespec *rem);
#endif /* _TIME_H */
|
Remove unused struct tm elements
|
Remove unused struct tm elements
Better to error out than suddenly have places use uninitalized data.
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>
|
C
|
apache-2.0
|
stewart-ibm/skiboot,legoater/skiboot,csmart/skiboot,legoater/skiboot,apopple/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,qemu/skiboot,apopple/skiboot,qemu/skiboot,ddstreet/skiboot,shenki/skiboot,shenki/skiboot,mikey/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,ddstreet/skiboot,shenki/skiboot,csmart/skiboot,stewart-ibm/skiboot,legoater/skiboot,mikey/skiboot,csmart/skiboot,qemu/skiboot,ddstreet/skiboot,open-power/skiboot,open-power/skiboot,shenki/skiboot,shenki/skiboot,apopple/skiboot,mikey/skiboot,open-power/skiboot
|
f89548fb28969bff4aa298013090037bb45484c5
|
media/tx/audio-tx.h
|
media/tx/audio-tx.h
|
#ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */
|
#ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
int init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */
|
Add return type in definition of init_audio_tx function.
|
Add return type in definition of init_audio_tx function.
|
C
|
lgpl-2.1
|
Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,shelsonjava/kc-media-native
|
e9b465ccf6e9ef2294487ea43caa669e94661e97
|
digest/DigestOOP.h
|
digest/DigestOOP.h
|
#pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str) { update(str.data(), str.length());
#endif
virtual std::string digest() = 0;
virtual int length() const = 0;
enum Type
{
SHA1 = 1,
SHA256 = 2,
MD5 = 5,
};
static std::unique_ptr<Digest> create(Type t);
protected:
Digest() {}
private:
Digest(const Digest&) = delete;
void operator=(const Digest&) = delete;
};
}
|
#pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str)
{
update(str.data(), str.length());
}
#endif
virtual std::string digest() = 0;
virtual int length() const = 0;
enum Type
{
SHA1 = 1,
SHA256 = 2,
MD5 = 5,
};
static std::unique_ptr<Digest> create(Type t);
protected:
Digest() {}
private:
Digest(const Digest&) = delete;
void operator=(const Digest&) = delete;
};
}
|
Fix digest oop for C++17.
|
Fix digest oop for C++17.
|
C
|
bsd-3-clause
|
chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes
|
60ababaf9ca888c2e74b840ad69188d84883623b
|
quic/platform/api/quic_test.h
|
quic/platform/api/quic_test.h
|
// Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
#include "net/quic/platform/impl/quic_test_impl.h"
using QuicFlagSaver = QuicFlagSaverImpl;
// Defines the base classes to be used in QUIC tests.
using QuicTest = QuicTestImpl;
template <class T>
using QuicTestWithParam = QuicTestWithParamImpl<T>;
// Class which needs to be instantiated in tests which use threads.
using ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;
#define QUIC_TEST_DISABLED_IN_CHROME(name) \
QUIC_TEST_DISABLED_IN_CHROME_IMPL(name)
inline std::string QuicGetTestMemoryCachePath() {
return QuicGetTestMemoryCachePathImpl();
#define EXPECT_QUIC_DEBUG_DEATH(condition, message) \
EXPECT_QUIC_DEBUG_DEATH_IMPL(condition, message)
}
#define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)
#endif // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
|
// Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/quic_logging.h"
#include "net/quic/platform/impl/quic_test_impl.h"
using QuicFlagSaver = QuicFlagSaverImpl;
// Defines the base classes to be used in QUIC tests.
using QuicTest = QuicTestImpl;
template <class T>
using QuicTestWithParam = QuicTestWithParamImpl<T>;
// Class which needs to be instantiated in tests which use threads.
using ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;
#define QUIC_TEST_DISABLED_IN_CHROME(name) \
QUIC_TEST_DISABLED_IN_CHROME_IMPL(name)
inline std::string QuicGetTestMemoryCachePath() {
return QuicGetTestMemoryCachePathImpl();
}
#define EXPECT_QUIC_DEBUG_DEATH(condition, message) \
EXPECT_QUIC_DEBUG_DEATH_IMPL(condition, message)
#define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)
#endif // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
|
Fix one curly brace placement in test code
|
Fix one curly brace placement in test code
gfe-relnote: n/a, test-only
PiperOrigin-RevId: 303203726
Change-Id: I26a7ad68cc83ecd85fe59c5af5998b318302c9a7
|
C
|
bsd-3-clause
|
google/quiche,google/quiche,google/quiche,google/quiche
|
19c6935dad2d04738b1d4289ac2e2791cf7e2569
|
rr_impl.c
|
rr_impl.c
|
/**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait_for_worker(sched_queue_t *queue) {
// TODO
}
|
/**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait(sched_queue_t *queue) {
// TODO
}
|
Revert change to rr_wait name
|
Revert change to rr_wait name
|
C
|
unlicense
|
nealian/cse325_project4
|
72db37d52802027c30b38181de09413d7ceb8f17
|
Source/Objects/GTLBatchQuery.h
|
Source/Objects/GTLBatchQuery.h
|
/* Copyright (c) 2011 Google Inc.
*
* 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.
*/
//
// GTLBatchQuery.h
//
#import "GTLQuery.h"
@interface GTLBatchQuery : NSObject <GTLQueryProtocol> {
@private
NSMutableArray *queries_;
NSMutableDictionary *requestIDMap_;
BOOL skipAuthorization_;
}
// Queries included in this batch. Each query should have a unique requestID.
@property (retain) NSArray *queries;
// Clients may set this to NO to disallow authorization. Defaults to YES.
@property (assign) BOOL shouldSkipAuthorization;
+ (id)batchQuery;
+ (id)batchQueryWithQueries:(NSArray *)array;
- (void)addQuery:(GTLQuery *)query;
- (GTLQuery *)queryForRequestID:(NSString *)requestID;
@end
|
/* Copyright (c) 2011 Google Inc.
*
* 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.
*/
//
// GTLBatchQuery.h
//
#import "GTLQuery.h"
@interface GTLBatchQuery : NSObject <GTLQueryProtocol> {
@private
NSMutableArray *queries_;
NSMutableDictionary *requestIDMap_;
BOOL skipAuthorization_;
}
// Queries included in this batch. Each query should have a unique requestID.
@property (retain) NSArray *queries;
// Clients may set this to YES to disallow authorization. Defaults to NO.
@property (assign) BOOL shouldSkipAuthorization;
+ (id)batchQuery;
+ (id)batchQueryWithQueries:(NSArray *)array;
- (void)addQuery:(GTLQuery *)query;
- (GTLQuery *)queryForRequestID:(NSString *)requestID;
@end
|
Fix comment on shouldSkipAuthorization property
|
Fix comment on shouldSkipAuthorization property
|
C
|
apache-2.0
|
justinhouse/google-api-objectivec-client,nanthi1990/google-api-objectivec-client,CarlosTrejo/google-api-objectivec-client,JonasGessner/google-api-objectivec-client,creationst/google-api-objectivec-client,daffodilistic/google-api-objectivec-client,clody/google-api-objectivec-client,JonasGessner/google-api-objectivec-client,johndpope/google-api-objectivec-client,TigrilloInc/google-api-objectivec-client,alimills/google-api-swift-client,SheltonWan/google-api-objectivec-client
|
3d69da22fd2a3aef7f34bdaddd379b8c8a57442a
|
include/cling/Interpreter/CIFactory.h
|
include/cling/Interpreter/CIFactory.h
|
//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
#ifndef CLING_CIFACTORY_H
#define CLING_CIFACTORY_H
#include "clang/Frontend/CompilerInstance.h"
#include "llvm/ADT/StringRef.h"
namespace llvm {
class LLVMContext;
class MemoryBuffer;
}
namespace clang {
class DiagnosticsEngine;
}
namespace cling {
class DeclCollector;
class CIFactory {
public:
// TODO: Add overload that takes file not MemoryBuffer
static clang::CompilerInstance* createCI(llvm::StringRef code,
int argc,
const char* const *argv,
const char* llvmdir);
static clang::CompilerInstance* createCI(llvm::MemoryBuffer* buffer,
int argc,
const char* const *argv,
const char* llvmdir,
DeclCollector* stateCollector);
private:
//---------------------------------------------------------------------
//! Constructor
//---------------------------------------------------------------------
CIFactory() {}
~CIFactory() {}
static void SetClingCustomLangOpts(clang::LangOptions& Opts);
static void SetClingTargetLangOpts(clang::LangOptions& Opts,
const clang::TargetInfo& Target);
};
} // namespace cling
#endif // CLING_CIFACTORY_H
|
//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
#ifndef CLING_CIFACTORY_H
#define CLING_CIFACTORY_H
#include "clang/Frontend/CompilerInstance.h"
#include "llvm/ADT/StringRef.h"
namespace llvm {
class LLVMContext;
class MemoryBuffer;
}
namespace clang {
class DiagnosticsEngine;
}
namespace cling {
class DeclCollector;
class CIFactory {
public:
// TODO: Add overload that takes file not MemoryBuffer
static clang::CompilerInstance* createCI(llvm::StringRef code,
int argc,
const char* const *argv,
const char* llvmdir);
static clang::CompilerInstance* createCI(llvm::MemoryBuffer* buffer,
int argc,
const char* const *argv,
const char* llvmdir,
DeclCollector* stateCollector);
private:
//---------------------------------------------------------------------
//! Constructor
//---------------------------------------------------------------------
CIFactory() = delete;
~CIFactory() = delete;
};
} // namespace cling
#endif // CLING_CIFACTORY_H
|
Remove unneeded static member decls; mark c'tor, d'tor as deleted.
|
Remove unneeded static member decls; mark c'tor, d'tor as deleted.
|
C
|
lgpl-2.1
|
root-mirror/cling,karies/cling,perovic/cling,perovic/cling,marsupial/cling,root-mirror/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,marsupial/cling,marsupial/cling,karies/cling,perovic/cling,marsupial/cling,perovic/cling,marsupial/cling,karies/cling,karies/cling,perovic/cling,karies/cling,karies/cling,root-mirror/cling
|
c37054eec60c9424923ec895d7dc23d744cd0b53
|
Expecta/Expecta.h
|
Expecta/Expecta.h
|
#import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatchers.h>
// Enable shorthand by default
#define expect(...) EXP_expect((__VA_ARGS__))
#define failure(...) EXP_failure((__VA_ARGS__))
|
#import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatchers.h>
// Enable shorthand by default
#define expect(...) EXP_expect((__VA_ARGS__))
#define failure(...) EXP_failure((__VA_ARGS__))
|
Add newline to the end of the umbrella header
|
Add newline to the end of the umbrella header
|
C
|
mit
|
tonyarnold/expecta,Lightricks/expecta,modocache/expecta,modocache/expecta,suxinde2009/expecta,iosdev-republicofapps/expecta,tonyarnold/expecta,udemy/expecta,suxinde2009/expecta,PatrykKaczmarek/expecta,wessmith/expecta,modocache/expecta,iosdev-republicofapps/expecta,specta/expecta,Bogon/expecta,jmburges/expecta,jmoody/expecta,PatrykKaczmarek/expecta,Lightricks/expecta,jmoody/expecta,iguchunhui/expecta,wessmith/expecta,iosdev-republicofapps/expecta,PatrykKaczmarek/expecta,iosdev-republicofapps/expecta,PatrykKaczmarek/expecta,udemy/expecta,jmburges/expecta,tonyarnold/expecta,jmoody/expecta,Bogon/expecta,jmburges/expecta,jmoody/expecta,modocache/expecta,iguchunhui/expecta,tonyarnold/expecta,jmburges/expecta
|
40b4170a0ccd05ae95589f55d989f0727f060367
|
ios/template/GMPExample/AppDelegate.h
|
ios/template/GMPExample/AppDelegate.h
|
//
// Copyright (c) 2015 Google Inc.
//
// 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.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// Copyright (c) 2015 Google Inc.
//
// 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.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (nonatomic, strong) UIWindow *window;
@end
|
Fix order of property attributes
|
Fix order of property attributes
Change-Id: I7a313d25a6707bada03328b0799300f07a26ba3b
|
C
|
apache-2.0
|
martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services
|
3cc1b3d340ecf3a2b742ce6d32fa4a47f457af0f
|
src/log.c
|
src/log.c
|
#include <imageloader.h>
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
va_start(args, format);
vsnprintf(buffer, sizeof(buffer) / sizeof(buffer[0]), format, args);
ctx->log.handler(ctx->log.ud, level, buffer);
va_end(args);
}
|
#include <imageloader.h>
#include "log.h"
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
va_start(args, format);
vsnprintf(buffer, sizeof(buffer) / sizeof(buffer[0]), format, args);
ctx->log.handler(ctx->log.ud, level, buffer);
va_end(args);
}
|
Include the header in the source file
|
Include the header in the source file
|
C
|
mit
|
asarium/imageloader,asarium/imageloader,asarium/imageloader
|
d952cdee083b9b4a5af4f6d58cbda03add196ceb
|
src/net/instaweb/util/public/re2.h
|
src/net/instaweb/util/public/re2.h
|
/*
* Copyright 2012 Google Inc.
*
* 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.
*/
// Author: gagansingh@google.com (Gagan Singh)
#ifndef NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
#define NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
#include "net/instaweb/util/public/string_util.h"
#include "third_party/re2/src/re2/re2.h"
using re2::RE2;
// Converts a Google StringPiece into an RE2 StringPiece. These are of course
// the same basic thing but are declared in distinct namespaces and as far as
// C++ type-checking is concerned they are incompatible.
//
// TODO(jmarantz): In the re2 code itself there are no references to
// re2::StringPiece, always just plain StringPiece, so if we can
// arrange to get the right definition #included we should be all set.
// We could somehow rewrite '#include "re2/stringpiece.h"' to
// #include Chromium's stringpiece then everything would just work.
inline re2::StringPiece StringPieceToRe2(StringPiece sp) {
return re2::StringPiece(sp.data(), sp.size());
}
#endif // NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
|
/*
* Copyright 2012 Google Inc.
*
* 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.
*/
// Author: gagansingh@google.com (Gagan Singh)
#ifndef NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
#define NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
// TODO(morlovich): Remove this forwarding header and change all references.
#include "pagespeed/kernel/util/re2.h"
#endif // NET_INSTAWEB_UTIL_PUBLIC_RE2_H_
|
Make this a proper forwarding header rather than a duplication what's under pagespeed/util/
|
Make this a proper forwarding header rather than
a duplication what's under pagespeed/util/
|
C
|
apache-2.0
|
patricmutwiri/mod_pagespeed,pagespeed/mod_pagespeed,patricmutwiri/mod_pagespeed,webhost/mod_pagespeed,patricmutwiri/mod_pagespeed,ajayanandgit/mod_pagespeed,webscale-networks/mod_pagespeed,patricmutwiri/mod_pagespeed,hashashin/src,VersoBit/mod_pagespeed,patricmutwiri/mod_pagespeed,webscale-networks/mod_pagespeed,webhost/mod_pagespeed,jalonsoa/mod_pagespeed,jalonsoa/mod_pagespeed,jalonsoa/mod_pagespeed,ajayanandgit/mod_pagespeed,VersoBit/mod_pagespeed,webscale-networks/mod_pagespeed,hashashin/src,VersoBit/mod_pagespeed,wanrui/mod_pagespeed,webhost/mod_pagespeed,webscale-networks/mod_pagespeed,webscale-networks/mod_pagespeed,ajayanandgit/mod_pagespeed,wanrui/mod_pagespeed,VersoBit/mod_pagespeed,wanrui/mod_pagespeed,patricmutwiri/mod_pagespeed,hashashin/src,pagespeed/mod_pagespeed,webhost/mod_pagespeed,hashashin/src,ajayanandgit/mod_pagespeed,patricmutwiri/mod_pagespeed,webhost/mod_pagespeed,webscale-networks/mod_pagespeed,pagespeed/mod_pagespeed,wanrui/mod_pagespeed,webhost/mod_pagespeed,webhost/mod_pagespeed,webscale-networks/mod_pagespeed,wanrui/mod_pagespeed,VersoBit/mod_pagespeed,pagespeed/mod_pagespeed,hashashin/src,pagespeed/mod_pagespeed,jalonsoa/mod_pagespeed,hashashin/src,webscale-networks/mod_pagespeed,jalonsoa/mod_pagespeed,patricmutwiri/mod_pagespeed,pagespeed/mod_pagespeed,jalonsoa/mod_pagespeed,hashashin/src,VersoBit/mod_pagespeed,VersoBit/mod_pagespeed,ajayanandgit/mod_pagespeed,jalonsoa/mod_pagespeed,ajayanandgit/mod_pagespeed,wanrui/mod_pagespeed,hashashin/src,ajayanandgit/mod_pagespeed,wanrui/mod_pagespeed,pagespeed/mod_pagespeed,ajayanandgit/mod_pagespeed,wanrui/mod_pagespeed,webhost/mod_pagespeed,jalonsoa/mod_pagespeed
|
2c23625aeeb91c496f68abd812eab53b6d87bae5
|
arch/loongson/include/vmparam.h
|
arch/loongson/include/vmparam.h
|
/* $OpenBSD: vmparam.h,v 1.3 2011/03/23 16:54:35 pirofti Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 2 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */
|
/* $OpenBSD: vmparam.h,v 1.4 2014/03/27 21:58:13 miod Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 3 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */
|
Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory (such as 2E and 3A systems).
|
Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory
(such as 2E and 3A systems).
|
C
|
isc
|
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
|
b191b25f364aa679173756114884231b4314eb24
|
tests/file_utils_tests.c
|
tests/file_utils_tests.c
|
#include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
mu_assert(DArray_count(lines) == 3, "Wrong number of lines.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 0), bfromcstr("two")) == 0, "First line is wrong.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 1), bfromcstr("three")) == 0, "Second line is wrong.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 2), bfromcstr("four")) == 0, "Third line is wrong.");
return NULL;
}
char *all_tests() {
mu_suite_start();
mu_run_test(test_getlines);
return NULL;
}
RUN_TESTS(all_tests);
|
#include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
bstring two = bfromcstr("two");
bstring three = bfromcstr("three");
bstring four = bfromcstr("four");
mu_assert(DArray_count(lines) == 3, "Wrong number of lines.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 0), two) == 0, "First line is wrong.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 1), three) == 0, "Second line is wrong.");
mu_assert(bstrcmp((bstring)DArray_at(lines, 2), four) == 0, "Third line is wrong.");
bstrListDestroy(file);
bdestroy(str);
bdestroy(two);
bdestroy(three);
bdestroy(four);
DArray_destroy(lines);
return NULL;
}
char *all_tests() {
mu_suite_start();
mu_run_test(test_getlines);
return NULL;
}
RUN_TESTS(all_tests);
|
Make file utils tests valgrind-kosher
|
Make file utils tests valgrind-kosher
|
C
|
mit
|
txus/terrorvm,txus/terrorvm,txus/terrorvm,txus/terrorvm
|
4d2173704ae6884eaab3e9f702fb910bfb84c30d
|
base/scoped_handle.h
|
base/scoped_handle.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 BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base/scoped_handle_win.h"
#endif
class ScopedStdioHandle {
public:
ScopedStdioHandle()
: handle_(NULL) { }
explicit ScopedStdioHandle(FILE* handle)
: handle_(handle) { }
~ScopedStdioHandle() {
Close();
}
void Close() {
if (handle_) {
fclose(handle_);
handle_ = NULL;
}
}
FILE* get() const { return handle_; }
FILE* Take() {
FILE* temp = handle_;
handle_ = NULL;
return temp;
}
void Set(FILE* newhandle) {
Close();
handle_ = newhandle;
}
private:
FILE* handle_;
DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle);
};
#endif // BASE_SCOPED_HANDLE_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 BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include <stdio.h>
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base/scoped_handle_win.h"
#endif
class ScopedStdioHandle {
public:
ScopedStdioHandle()
: handle_(NULL) { }
explicit ScopedStdioHandle(FILE* handle)
: handle_(handle) { }
~ScopedStdioHandle() {
Close();
}
void Close() {
if (handle_) {
fclose(handle_);
handle_ = NULL;
}
}
FILE* get() const { return handle_; }
FILE* Take() {
FILE* temp = handle_;
handle_ = NULL;
return temp;
}
void Set(FILE* newhandle) {
Close();
handle_ = newhandle;
}
private:
FILE* handle_;
DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle);
};
#endif // BASE_SCOPED_HANDLE_H_
|
Add stdio to this file becasue we use FILE.
|
Add stdio to this file becasue we use FILE.
It starts failing with FILE, identifier not found, when
you remove the include for logging.h, which is included
in scoped_handle_win.h
Review URL: http://codereview.chromium.org/16461
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@7441 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium
|
118fccc561b32dd8d7396786402b9035bd667b32
|
libpolyml/basicio.h
|
libpolyml/basicio.h
|
/*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef BASICIO_H
#define BASICIO_H
class SaveVecEntry;
typedef SaveVecEntry *Handle;
class TaskData;
extern Handle IO_dispatch_c(TaskData *mdTaskData, Handle args, Handle strm, Handle code);
extern Handle change_dirc(TaskData *mdTaskData, Handle name);
#ifndef WINDOWS_PC
extern void process_may_block(TaskData *taskData, int fd, int ioCall);
#endif
#endif /* BASICIO_H */
|
/*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef BASICIO_H
#define BASICIO_H
class SaveVecEntry;
typedef SaveVecEntry *Handle;
class TaskData;
extern Handle IO_dispatch_c(TaskData *mdTaskData, Handle args, Handle strm, Handle code);
extern Handle change_dirc(TaskData *mdTaskData, Handle name);
#endif /* BASICIO_H */
|
Remove process_may_block since it's no longer used except in xwindows.cpp.
|
Remove process_may_block since it's no longer used except in xwindows.cpp.
git-svn-id: 98787b36aaefbae4b30fa755be920954cd25e1e4@548 ae7d391e-3f74-4a2b-a0db-a8776840fd2a
|
C
|
lgpl-2.1
|
mn200/polyml,mn200/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,polyml/polyml,dcjm/polyml,mn200/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,mn200/polyml
|
0090ec7cb0d38cc29bf18b31c31a142e8f199f33
|
include/effects/SkStippleMaskFilter.h
|
include/effects/SkStippleMaskFilter.h
|
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
class SkStippleMaskFilter : public SkMaskFilter {
public:
SkStippleMaskFilter() : INHERITED() {
}
virtual bool filterMask(SkMask* dst, const SkMask& src,
const SkMatrix& matrix,
SkIPoint* margin) SK_OVERRIDE;
// getFormat is from SkMaskFilter
virtual SkMask::Format getFormat() SK_OVERRIDE {
return SkMask::kA8_Format;
}
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkStippleMaskFilter);
protected:
SkStippleMaskFilter::SkStippleMaskFilter(SkFlattenableReadBuffer& buffer)
: SkMaskFilter(buffer) {
}
private:
typedef SkMaskFilter INHERITED;
};
#endif // SkStippleMaskFilter_DEFINED
|
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
class SkStippleMaskFilter : public SkMaskFilter {
public:
SkStippleMaskFilter() : INHERITED() {
}
virtual bool filterMask(SkMask* dst, const SkMask& src,
const SkMatrix& matrix,
SkIPoint* margin) SK_OVERRIDE;
// getFormat is from SkMaskFilter
virtual SkMask::Format getFormat() SK_OVERRIDE {
return SkMask::kA8_Format;
}
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkStippleMaskFilter);
protected:
SkStippleMaskFilter(SkFlattenableReadBuffer& buffer)
: SkMaskFilter(buffer) {
}
private:
typedef SkMaskFilter INHERITED;
};
#endif // SkStippleMaskFilter_DEFINED
|
Fix for compiler error in r4154
|
Fix for compiler error in r4154
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
|
C
|
bsd-3-clause
|
geekboxzone/mmallow_external_skia,geekboxzone/lollipop_external_skia,Igalia/skia,CyanogenMod/android_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,android-ia/platform_external_chromium_org_third_party_skia,xin3liang/platform_external_chromium_org_third_party_skia,Purity-Lollipop/platform_external_skia,BrokenROM/external_skia,InfinitiveOS/external_skia,nox/skia,AOSPA-L/android_external_skia,TeamBliss-LP/android_external_skia,Pure-Aosp/android_external_skia,akiss77/skia,MinimalOS/android_external_chromium_org_third_party_skia,w3nd1go/android_external_skia,mozilla-b2g/external_skia,Hybrid-Rom/external_skia,HalCanary/skia-hc,DesolationStaging/android_external_skia,RadonX-ROM/external_skia,DesolationStaging/android_external_skia,Android-AOSP/external_skia,aospo/platform_external_skia,Omegaphora/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,Igalia/skia,google/skia,TeamTwisted/external_skia,MinimalOS/external_skia,MyAOSP/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,MinimalOS-AOSP/platform_external_skia,byterom/android_external_skia,Fusion-Rom/android_external_skia,vvuk/skia,AOSPB/external_skia,spezi77/android_external_skia,shahrzadmn/skia,AOSPU/external_chromium_org_third_party_skia,todotodoo/skia,OneRom/external_skia,mydongistiny/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,shahrzadmn/skia,Euphoria-OS-Legacy/android_external_skia,OptiPop/external_chromium_org_third_party_skia,OneRom/external_skia,UBERMALLOW/external_skia,TeamExodus/external_skia,aospo/platform_external_skia,noselhq/skia,codeaurora-unoffical/platform-external-skia,MinimalOS/android_external_skia,Infinitive-OS/platform_external_skia,pcwalton/skia,TeslaProject/external_skia,pcwalton/skia,Infusion-OS/android_external_skia,rubenvb/skia,sombree/android_external_skia,Plain-Andy/android_platform_external_skia,Samsung/skia,RadonX-ROM/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,chenlian2015/skia_from_google,wildermason/external_skia,suyouxin/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,chenlian2015/skia_from_google,ctiao/platform-external-skia,BrokenROM/external_skia,pacerom/external_skia,ominux/skia,TeamExodus/external_skia,scroggo/skia,TeamTwisted/external_skia,fire855/android_external_skia,HealthyHoney/temasek_SKIA,amyvmiwei/skia,Asteroid-Project/android_external_skia,geekboxzone/lollipop_external_skia,sombree/android_external_skia,AOSPU/external_chromium_org_third_party_skia,NamelessRom/android_external_skia,GladeRom/android_external_skia,suyouxin/android_external_skia,TeamBliss-LP/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,boulzordev/android_external_skia,Fusion-Rom/android_external_skia,ominux/skia,mmatyas/skia,OptiPop/external_skia,nvoron23/skia,aosp-mirror/platform_external_skia,AOSP-YU/platform_external_skia,mydongistiny/android_external_skia,FusionSP/external_chromium_org_third_party_skia,akiss77/skia,samuelig/skia,boulzordev/android_external_skia,jtg-gg/skia,NamelessRom/android_external_skia,pacerom/external_skia,AndroidOpenDevelopment/android_external_skia,Hikari-no-Tenshi/android_external_skia,DiamondLovesYou/skia-sys,invisiblek/android_external_skia,vvuk/skia,VRToxin-AOSP/android_external_skia,AOSPU/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,mmatyas/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,ominux/skia,TeslaProject/external_skia,DARKPOP/external_chromium_org_third_party_skia,wildermason/external_skia,sudosurootdev/external_skia,akiss77/skia,w3nd1go/android_external_skia,geekboxzone/mmallow_external_skia,MonkeyZZZZ/platform_external_skia,samuelig/skia,AOSPB/external_skia,RadonX-ROM/external_skia,Asteroid-Project/android_external_skia,OneRom/external_skia,codeaurora-unoffical/platform-external-skia,w3nd1go/android_external_skia,larsbergstrom/skia,sudosurootdev/external_skia,YUPlayGodDev/platform_external_skia,TeamExodus/external_skia,MarshedOut/android_external_skia,nox/skia,AsteroidOS/android_external_skia,geekboxzone/lollipop_external_skia,HalCanary/skia-hc,fire855/android_external_skia,FusionSP/android_external_skia,TeslaOS/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,OneRom/external_skia,vanish87/skia,Purity-Lollipop/platform_external_skia,Pure-Aosp/android_external_skia,sigysmund/platform_external_skia,DesolationStaging/android_external_skia,Hikari-no-Tenshi/android_external_skia,amyvmiwei/skia,MonkeyZZZZ/platform_external_skia,mmatyas/skia,invisiblek/android_external_skia,ench0/external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,MyAOSP/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,scroggo/skia,DesolationStaging/android_external_skia,pacerom/external_skia,timduru/platform-external-skia,Infinitive-OS/platform_external_skia,temasek/android_external_skia,Android-AOSP/external_skia,pcwalton/skia,larsbergstrom/skia,Khaon/android_external_skia,rubenvb/skia,mydongistiny/android_external_skia,Pure-Aosp/android_external_skia,Samsung/skia,MarshedOut/android_external_skia,Omegaphora/external_skia,VentureROM-L/android_external_skia,HealthyHoney/temasek_SKIA,spezi77/android_external_skia,AndroidOpenDevelopment/android_external_skia,Tesla-Redux/android_external_skia,Euphoria-OS-Legacy/android_external_skia,Infinitive-OS/platform_external_skia,jtg-gg/skia,invisiblek/android_external_skia,Purity-Lollipop/platform_external_skia,todotodoo/skia,Jichao/skia,Igalia/skia,TeamEOS/external_skia,FusionSP/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,mozilla-b2g/external_skia,larsbergstrom/skia,mmatyas/skia,DARKPOP/external_chromium_org_third_party_skia,google/skia,HealthyHoney/temasek_SKIA,todotodoo/skia,UBERMALLOW/external_skia,Euphoria-OS-Legacy/android_external_skia,wildermason/external_skia,TeamExodus/external_skia,VentureROM-L/android_external_skia,DiamondLovesYou/skia-sys,MinimalOS/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,VentureROM-L/android_external_skia,temasek/android_external_skia,F-AOSP/platform_external_skia,google/skia,wildermason/external_skia,shahrzadmn/skia,HealthyHoney/temasek_SKIA,vanish87/skia,AOSPA-L/android_external_skia,ench0/external_skia,jtg-gg/skia,google/skia,vanish87/skia,TeslaOS/android_external_skia,amyvmiwei/skia,DARKPOP/external_chromium_org_third_party_skia,MinimalOS/android_external_skia,sigysmund/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,vvuk/skia,todotodoo/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AOSPB/external_skia,UBERMALLOW/external_skia,F-AOSP/platform_external_skia,pcwalton/skia,MinimalOS/external_skia,samuelig/skia,ominux/skia,Igalia/skia,ench0/external_chromium_org_third_party_skia,ominux/skia,HalCanary/skia-hc,Euphoria-OS-Legacy/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,SlimSaber/android_external_skia,SlimSaber/android_external_skia,pcwalton/skia,NamelessRom/android_external_skia,Jichao/skia,TeamEOS/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,Fusion-Rom/android_external_skia,fire855/android_external_skia,wildermason/external_skia,shahrzadmn/skia,akiss77/skia,mozilla-b2g/external_skia,InfinitiveOS/external_skia,AndroidOpenDevelopment/android_external_skia,nox/skia,MarshedOut/android_external_skia,DesolationStaging/android_external_skia,vanish87/skia,houst0nn/external_skia,geekboxzone/lollipop_external_skia,nfxosp/platform_external_skia,DesolationStaging/android_external_skia,sudosurootdev/external_skia,Infusion-OS/android_external_skia,qrealka/skia-hc,noselhq/skia,ominux/skia,samuelig/skia,RadonX-ROM/external_skia,Omegaphora/external_skia,noselhq/skia,qrealka/skia-hc,TeslaOS/android_external_skia,Infinitive-OS/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,noselhq/skia,YUPlayGodDev/platform_external_skia,Hikari-no-Tenshi/android_external_skia,sombree/android_external_skia,scroggo/skia,VentureROM-L/android_external_skia,byterom/android_external_skia,Tesla-Redux/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,nvoron23/skia,amyvmiwei/skia,Khaon/android_external_skia,byterom/android_external_skia,nvoron23/skia,AOSPA-L/android_external_skia,MinimalOS-AOSP/platform_external_skia,suyouxin/android_external_skia,AOSPB/external_skia,Omegaphora/external_chromium_org_third_party_skia,mozilla-b2g/external_skia,AOSPA-L/android_external_skia,fire855/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,PAC-ROM/android_external_skia,PAC-ROM/android_external_skia,Pure-Aosp/android_external_skia,aosp-mirror/platform_external_skia,NamelessRom/android_external_skia,noselhq/skia,Plain-Andy/android_platform_external_skia,AOSPU/external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,PAC-ROM/android_external_skia,Fusion-Rom/android_external_skia,Infusion-OS/android_external_skia,VentureROM-L/android_external_skia,xzzz9097/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,mozilla-b2g/external_skia,sombree/android_external_skia,nox/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,GladeRom/android_external_skia,vvuk/skia,temasek/android_external_skia,geekboxzone/mmallow_external_skia,pacerom/external_skia,RadonX-ROM/external_skia,Omegaphora/external_chromium_org_third_party_skia,shahrzadmn/skia,Tesla-Redux/android_external_skia,PAC-ROM/android_external_skia,BrokenROM/external_skia,MIPS/external-chromium_org-third_party-skia,nox/skia,YUPlayGodDev/platform_external_skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,w3nd1go/android_external_skia,TeslaProject/external_skia,YUPlayGodDev/platform_external_skia,Purity-Lollipop/platform_external_skia,AOSPB/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,TeslaProject/external_skia,AOSPA-L/android_external_skia,vvuk/skia,DiamondLovesYou/skia-sys,mydongistiny/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,google/skia,Tesla-Redux/android_external_skia,vvuk/skia,rubenvb/skia,Hybrid-Rom/external_skia,geekboxzone/mmallow_external_skia,AndroidOpenDevelopment/android_external_skia,TeamEOS/external_skia,pacerom/external_skia,AOSPB/external_skia,Pure-Aosp/android_external_skia,sigysmund/platform_external_skia,Android-AOSP/external_skia,xzzz9097/android_external_skia,TeamEOS/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,OneRom/external_skia,YUPlayGodDev/platform_external_skia,HealthyHoney/temasek_SKIA,todotodoo/skia,F-AOSP/platform_external_skia,YUPlayGodDev/platform_external_skia,Samsung/skia,TeamExodus/external_skia,rubenvb/skia,TeamExodus/external_skia,google/skia,PAC-ROM/android_external_skia,temasek/android_external_skia,NamelessRom/android_external_skia,temasek/android_external_skia,todotodoo/skia,Infusion-OS/android_external_skia,tmpvar/skia.cc,AsteroidOS/android_external_skia,Infusion-OS/android_external_skia,Plain-Andy/android_platform_external_skia,Plain-Andy/android_platform_external_skia,DiamondLovesYou/skia-sys,Euphoria-OS-Legacy/android_external_skia,larsbergstrom/skia,android-ia/platform_external_chromium_org_third_party_skia,FusionSP/android_external_skia,MinimalOS/external_skia,AOSP-YU/platform_external_skia,fire855/android_external_skia,DiamondLovesYou/skia-sys,geekboxzone/lollipop_external_skia,w3nd1go/android_external_skia,MIPS/external-chromium_org-third_party-skia,F-AOSP/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,TeamTwisted/external_skia,mydongistiny/external_chromium_org_third_party_skia,samuelig/skia,akiss77/skia,android-ia/platform_external_skia,MarshedOut/android_external_skia,w3nd1go/android_external_skia,MinimalOS/external_skia,TeamBliss-LP/android_external_skia,AOSP-YU/platform_external_skia,NamelessRom/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,codeaurora-unoffical/platform-external-skia,TeslaProject/external_skia,byterom/android_external_skia,SlimSaber/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,SlimSaber/android_external_skia,VRToxin-AOSP/android_external_skia,NamelessRom/android_external_skia,AOSP-YU/platform_external_skia,DesolationStaging/android_external_skia,nox/skia,fire855/android_external_skia,android-ia/platform_external_skia,MinimalOS-AOSP/platform_external_skia,timduru/platform-external-skia,TeamEOS/external_skia,Hybrid-Rom/external_skia,Android-AOSP/external_skia,Omegaphora/external_skia,F-AOSP/platform_external_skia,geekboxzone/mmallow_external_skia,TeamTwisted/external_skia,HalCanary/skia-hc,TeamTwisted/external_skia,Android-AOSP/external_skia,Jichao/skia,Tesla-Redux/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,shahrzadmn/skia,suyouxin/android_external_skia,AOSP-YU/platform_external_skia,HalCanary/skia-hc,Plain-Andy/android_platform_external_skia,vvuk/skia,invisiblek/android_external_skia,qrealka/skia-hc,TeamExodus/external_skia,shahrzadmn/skia,DARKPOP/external_chromium_org_third_party_skia,aospo/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,mmatyas/skia,Euphoria-OS-Legacy/android_external_skia,Khaon/android_external_skia,aospo/platform_external_skia,mydongistiny/android_external_skia,MonkeyZZZZ/platform_external_skia,vanish87/skia,AndroidOpenDevelopment/android_external_skia,mmatyas/skia,OneRom/external_skia,MinimalOS/android_external_skia,boulzordev/android_external_skia,invisiblek/android_external_skia,fire855/android_external_skia,ctiao/platform-external-skia,BrokenROM/external_skia,MonkeyZZZZ/platform_external_skia,Tesla-Redux/android_external_skia,Khaon/android_external_skia,boulzordev/android_external_skia,AOSPU/external_chromium_org_third_party_skia,sombree/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,tmpvar/skia.cc,GladeRom/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,SlimSaber/android_external_skia,fire855/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,BrokenROM/external_skia,InfinitiveOS/external_skia,jtg-gg/skia,ench0/external_skia,DARKPOP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,UBERMALLOW/external_skia,timduru/platform-external-skia,OptiPop/external_chromium_org_third_party_skia,akiss77/skia,Infinitive-OS/platform_external_skia,HealthyHoney/temasek_SKIA,zhaochengw/platform_external_skia,mmatyas/skia,MinimalOS-AOSP/platform_external_skia,mmatyas/skia,F-AOSP/platform_external_skia,GladeRom/android_external_skia,Hybrid-Rom/external_skia,YUPlayGodDev/platform_external_skia,Android-AOSP/external_skia,Samsung/skia,Fusion-Rom/external_chromium_org_third_party_skia,android-ia/platform_external_skia,Hybrid-Rom/external_skia,OptiPop/external_chromium_org_third_party_skia,TeamEOS/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,TeamTwisted/external_skia,google/skia,OptiPop/external_skia,TeamEOS/external_chromium_org_third_party_skia,android-ia/platform_external_skia,RadonX-ROM/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,Omegaphora/external_skia,AsteroidOS/android_external_skia,todotodoo/skia,geekboxzone/mmallow_external_skia,boulzordev/android_external_skia,Infusion-OS/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,TeslaProject/external_skia,InfinitiveOS/external_skia,AOSPA-L/android_external_skia,TeamExodus/external_skia,Jichao/skia,sigysmund/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,vvuk/skia,Asteroid-Project/android_external_skia,geekboxzone/mmallow_external_skia,Fusion-Rom/android_external_skia,Igalia/skia,Hikari-no-Tenshi/android_external_skia,TeamBliss-LP/android_external_skia,FusionSP/external_chromium_org_third_party_skia,android-ia/platform_external_skia,MIPS/external-chromium_org-third_party-skia,ench0/external_skia,TeamEOS/external_chromium_org_third_party_skia,scroggo/skia,DesolationStaging/android_external_skia,OptiPop/external_chromium_org_third_party_skia,spezi77/android_external_skia,tmpvar/skia.cc,VentureROM-L/android_external_skia,mydongistiny/android_external_skia,zhaochengw/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,larsbergstrom/skia,FusionSP/android_external_skia,nfxosp/platform_external_skia,jtg-gg/skia,suyouxin/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,VentureROM-L/android_external_skia,codeaurora-unoffical/platform-external-skia,MinimalOS-AOSP/platform_external_skia,MinimalOS/external_skia,ctiao/platform-external-skia,mozilla-b2g/external_skia,nox/skia,timduru/platform-external-skia,MonkeyZZZZ/platform_external_skia,HalCanary/skia-hc,BrokenROM/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,MinimalOS/android_external_skia,ench0/external_skia,VRToxin-AOSP/android_external_skia,MonkeyZZZZ/platform_external_skia,xzzz9097/android_external_skia,aosp-mirror/platform_external_skia,Pure-Aosp/android_external_skia,larsbergstrom/skia,geekboxzone/mmallow_external_skia,Fusion-Rom/android_external_skia,nox/skia,Jichao/skia,aosp-mirror/platform_external_skia,AOSPU/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,xzzz9097/android_external_skia,sudosurootdev/external_skia,qrealka/skia-hc,Asteroid-Project/android_external_skia,Purity-Lollipop/platform_external_skia,BrokenROM/external_skia,InfinitiveOS/external_skia,codeaurora-unoffical/platform-external-skia,zhaochengw/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,temasek/android_external_skia,invisiblek/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,houst0nn/external_skia,OptiPop/external_chromium_org_third_party_skia,houst0nn/external_skia,AsteroidOS/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,rubenvb/skia,timduru/platform-external-skia,nvoron23/skia,mydongistiny/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,FusionSP/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,tmpvar/skia.cc,AOSPB/external_skia,timduru/platform-external-skia,xin3liang/platform_external_chromium_org_third_party_skia,GladeRom/android_external_skia,Igalia/skia,F-AOSP/platform_external_skia,AsteroidOS/android_external_skia,houst0nn/external_skia,nfxosp/platform_external_skia,TeslaOS/android_external_skia,OptiPop/external_skia,TeamEOS/external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,pacerom/external_skia,BrokenROM/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Khaon/android_external_skia,MinimalOS-AOSP/platform_external_skia,MarshedOut/android_external_skia,larsbergstrom/skia,rubenvb/skia,vanish87/skia,InfinitiveOS/external_skia,UBERMALLOW/external_skia,byterom/android_external_skia,TeslaOS/android_external_skia,TeamEOS/external_skia,UBERMALLOW/external_skia,AOSP-YU/platform_external_skia,AOSP-YU/platform_external_skia,SlimSaber/android_external_skia,Pure-Aosp/android_external_skia,MinimalOS-AOSP/platform_external_skia,larsbergstrom/skia,google/skia,Asteroid-Project/android_external_skia,AndroidOpenDevelopment/android_external_skia,AsteroidOS/android_external_skia,Euphoria-OS-Legacy/android_external_skia,HalCanary/skia-hc,F-AOSP/platform_external_skia,UBERMALLOW/external_skia,MarshedOut/android_external_skia,ominux/skia,codeaurora-unoffical/platform-external-skia,xzzz9097/android_external_skia,FusionSP/android_external_skia,OptiPop/external_skia,mydongistiny/android_external_skia,TeslaProject/external_skia,houst0nn/external_skia,sombree/android_external_skia,rubenvb/skia,geekboxzone/lollipop_external_skia,MIPS/external-chromium_org-third_party-skia,jtg-gg/skia,sudosurootdev/external_skia,ench0/external_skia,aosp-mirror/platform_external_skia,Omegaphora/external_skia,YUPlayGodDev/platform_external_skia,mydongistiny/android_external_skia,VentureROM-L/android_external_skia,TeamTwisted/external_skia,UBERMALLOW/external_skia,NamelessRom/android_external_skia,xzzz9097/android_external_skia,boulzordev/android_external_skia,rubenvb/skia,MinimalOS/android_external_skia,codeaurora-unoffical/platform-external-skia,OptiPop/external_skia,OneRom/external_skia,temasek/android_external_skia,TeamTwisted/external_skia,qrealka/skia-hc,FusionSP/android_external_skia,google/skia,aosp-mirror/platform_external_skia,Fusion-Rom/android_external_skia,mmatyas/skia,zhaochengw/platform_external_skia,nfxosp/platform_external_skia,mozilla-b2g/external_skia,Khaon/android_external_skia,Khaon/android_external_skia,ominux/skia,rubenvb/skia,amyvmiwei/skia,UBERMALLOW/external_skia,OptiPop/external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,AsteroidOS/android_external_skia,AOSPB/external_skia,MarshedOut/android_external_skia,spezi77/android_external_skia,todotodoo/skia,GladeRom/android_external_skia,pcwalton/skia,OneRom/external_skia,nvoron23/skia,nfxosp/platform_external_skia,Purity-Lollipop/platform_external_skia,ctiao/platform-external-skia,spezi77/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,qrealka/skia-hc,tmpvar/skia.cc,tmpvar/skia.cc,noselhq/skia,akiss77/skia,jtg-gg/skia,w3nd1go/android_external_skia,houst0nn/external_skia,w3nd1go/android_external_skia,MinimalOS/android_external_skia,wildermason/external_skia,VRToxin-AOSP/android_external_skia,MIPS/external-chromium_org-third_party-skia,zhaochengw/platform_external_skia,Tesla-Redux/android_external_skia,MIPS/external-chromium_org-third_party-skia,shahrzadmn/skia,OptiPop/external_skia,MinimalOS/android_external_skia,Jichao/skia,pacerom/external_skia,spezi77/android_external_skia,chenlian2015/skia_from_google,pcwalton/skia,vanish87/skia,TeamExodus/external_skia,Omegaphora/external_skia,TeslaProject/external_skia,AOSPA-L/android_external_skia,RadonX-ROM/external_skia,todotodoo/skia,nvoron23/skia,ench0/external_skia,aosp-mirror/platform_external_skia,OptiPop/external_skia,MinimalOS/external_skia,Jichao/skia,DiamondLovesYou/skia-sys,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,xzzz9097/android_external_skia,AsteroidOS/android_external_skia,aospo/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,Hybrid-Rom/external_skia,Fusion-Rom/android_external_skia,Jichao/skia,nvoron23/skia,Euphoria-OS-Legacy/android_external_skia,ench0/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,vvuk/skia,aospo/platform_external_skia,houst0nn/external_skia,Plain-Andy/android_platform_external_skia,MinimalOS/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,AOSPB/external_skia,OptiPop/external_skia,OneRom/external_skia,MyAOSP/external_chromium_org_third_party_skia,samuelig/skia,TeamBliss-LP/android_external_skia,scroggo/skia,sombree/android_external_skia,aospo/platform_external_skia,akiss77/skia,Samsung/skia,tmpvar/skia.cc,Android-AOSP/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,chenlian2015/skia_from_google,DARKPOP/external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,RadonX-ROM/external_skia,SlimSaber/android_external_skia,Samsung/skia,TeslaOS/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,samuelig/skia,noselhq/skia,xin3liang/platform_external_chromium_org_third_party_skia,sudosurootdev/external_skia,android-ia/platform_external_skia,Tesla-Redux/android_external_skia,zhaochengw/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,samuelig/skia,mydongistiny/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,invisiblek/android_external_skia,vanish87/skia,sudosurootdev/external_skia,MarshedOut/android_external_skia,MonkeyZZZZ/platform_external_skia,ench0/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,boulzordev/android_external_skia,scroggo/skia,Omegaphora/external_chromium_org_third_party_skia,google/skia,nfxosp/platform_external_skia,boulzordev/android_external_skia,Infinitive-OS/platform_external_skia,sigysmund/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,amyvmiwei/skia,aosp-mirror/platform_external_skia,byterom/android_external_skia,wildermason/external_skia,Omegaphora/external_skia,sigysmund/platform_external_skia,TeslaOS/android_external_skia,nfxosp/platform_external_skia,Purity-Lollipop/platform_external_skia,tmpvar/skia.cc,temasek/android_external_skia,sudosurootdev/external_skia,sigysmund/platform_external_skia,byterom/android_external_skia,amyvmiwei/skia,timduru/platform-external-skia,HalCanary/skia-hc,suyouxin/android_external_skia,ench0/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,Jichao/skia,wildermason/external_skia,Khaon/android_external_skia,FusionSP/android_external_skia,scroggo/skia,OptiPop/external_chromium_org_third_party_skia,Igalia/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,Igalia/skia,geekboxzone/lollipop_external_skia,AOSPA-L/android_external_skia,Samsung/skia,nvoron23/skia,TeamEOS/external_skia,suyouxin/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,aospo/platform_external_skia,SlimSaber/android_external_skia,Pure-Aosp/android_external_skia,mydongistiny/android_external_skia,MinimalOS/external_skia,HealthyHoney/temasek_SKIA,aosp-mirror/platform_external_skia,xzzz9097/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,pcwalton/skia,TeamBliss-LP/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,zhaochengw/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,ctiao/platform-external-skia,MinimalOS/external_skia,MinimalOS-AOSP/platform_external_skia,GladeRom/android_external_skia,MonkeyZZZZ/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,ominux/skia,VRToxin-AOSP/android_external_skia,Asteroid-Project/android_external_skia,w3nd1go/android_external_skia,MarshedOut/android_external_skia,MIPS/external-chromium_org-third_party-skia,mozilla-b2g/external_skia,ench0/external_skia,AOSP-YU/platform_external_skia,rubenvb/skia,ctiao/platform-external-skia,larsbergstrom/skia,sigysmund/platform_external_skia,PAC-ROM/android_external_skia,HalCanary/skia-hc,nox/skia,TeamTwisted/external_skia,akiss77/skia,android-ia/platform_external_skia,vanish87/skia,nvoron23/skia,MyAOSP/external_chromium_org_third_party_skia,scroggo/skia,YUPlayGodDev/platform_external_skia,chenlian2015/skia_from_google,qrealka/skia-hc,xin3liang/platform_external_chromium_org_third_party_skia,TeslaOS/android_external_skia,Infusion-OS/android_external_skia,android-ia/platform_external_skia,chenlian2015/skia_from_google,Infinitive-OS/platform_external_skia,GladeRom/android_external_skia,VRToxin-AOSP/android_external_skia,HealthyHoney/temasek_SKIA,tmpvar/skia.cc,invisiblek/android_external_skia,shahrzadmn/skia,noselhq/skia,amyvmiwei/skia,Asteroid-Project/android_external_skia,Infusion-OS/android_external_skia,ctiao/platform-external-skia,sombree/android_external_skia,zhaochengw/platform_external_skia,boulzordev/android_external_skia,ench0/external_skia,pcwalton/skia,Samsung/skia,chenlian2015/skia_from_google,HalCanary/skia-hc,noselhq/skia,Purity-Lollipop/platform_external_skia,byterom/android_external_skia
|
349ac725570cd5913fcc967e7f9abdc3a81ee6e9
|
priv/qcmainthreadrunner.h
|
priv/qcmainthreadrunner.h
|
#ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QVariant>
#include <QEVent>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
static void start(F func) {
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(func), Qt::QueuedConnection);
}
/// Run a function with custom data on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F,typename P1>
static void start(F func,P1 p1) {
auto wrapper = [=]() -> void{
func(p1);
};
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(wrapper), Qt::QueuedConnection);
}
template <typename F,typename P1, typename P2>
static void start(F func,P1 p1, P2 p2) {
auto wrapper = [=]() -> void{
func(p1, p2);
};
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(wrapper), Qt::QueuedConnection);
}
};
#endif // QCMAINTHREADRUNNER_H
|
#ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
static void start(F func) {
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(func), Qt::QueuedConnection);
}
/// Run a function with custom data on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F,typename P1>
static void start(F func,P1 p1) {
auto wrapper = [=]() -> void{
func(p1);
};
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(wrapper), Qt::QueuedConnection);
}
template <typename F,typename P1, typename P2>
static void start(F func,P1 p1, P2 p2) {
auto wrapper = [=]() -> void{
func(p1, p2);
};
QObject tmp;
QObject::connect(&tmp, &QObject::destroyed, QCoreApplication::instance(), std::move(wrapper), Qt::QueuedConnection);
}
};
#endif // QCMAINTHREADRUNNER_H
|
Fix build issue for Linux
|
Fix build issue for Linux
|
C
|
apache-2.0
|
benlau/quickcross,benlau/quickcross,benlau/quickcross
|
ad7d535ac60d0d3a2e43c72a5c9c41efd62fedb1
|
tests/test_collisions.h
|
tests/test_collisions.h
|
#ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
};
class CollisionGeomTest : public TestCase {
public:
void test_ray_box_floor_sensors() {
RayBox ray_box(nullptr, 0.5f, 1.0f);
ray_box.set_position(0, 0.5);
Box floor(nullptr, 10.0f, 1.0f);
floor.set_position(0, -0.5);
std::vector<Collision> collisions = collide(&ray_box, &floor);
assert_equal(2, collisions.size());
assert_equal('A', collisions[0].a_ray);
assert_equal('B', collisions[1].a_ray);
assert_equal(0.0, collisions[0].point.y);
assert_equal(0.0, collisions[1].point.y);
}
private:
};
#endif // TEST_COLLISIONS_H
|
#ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
#include "spindash/collision/box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
};
class CollisionGeomTest : public TestCase {
public:
void test_ray_box_floor_sensors() {
RayBox ray_box(nullptr, 0.5f, 1.0f);
ray_box.set_position(0, 0.5);
Box floor(nullptr, 10.0f, 1.0f);
floor.set_position(0, -0.5);
std::vector<Collision> collisions = collide(&ray_box, &floor);
assert_equal(2, collisions.size());
assert_equal('A', collisions[0].a_ray);
assert_equal('B', collisions[1].a_ray);
assert_equal(0.0, collisions[0].point.y);
assert_equal(0.0, collisions[1].point.y);
}
private:
};
#endif // TEST_COLLISIONS_H
|
Add a missing header from one of the tests
|
Add a missing header from one of the tests
|
C
|
bsd-2-clause
|
Kazade/Spindash
|
235b1753f48c8a22cb79e3115b637f179c3e1e8b
|
src/initiation/transport/sipauthentication.h
|
src/initiation/transport/sipauthentication.h
|
#pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credentials to request, if we have them
virtual void processOutgoingRequest(SIPRequest& request, QVariant& content);
// take challenge if they require authentication
virtual void processIncomingResponse(SIPResponse& response, QVariant& content);
private:
DigestResponse generateAuthResponse(DigestChallenge& challenge, QString username,
SIP_URI& requestURI, SIPRequestMethod method,
QVariant& content);
void updateNonceCount(DigestChallenge& challenge, DigestResponse& response);
// TODO: Test if these need to be separate
QList<DigestChallenge> wwwChallenges_;
QList<DigestChallenge> proxyChallenges_;
QList<DigestResponse> authorizations_;
QList<DigestResponse> proxyAuthorizations_;
// key is realm and value current nonce
std::map<QString, QString> realmToNonce_;
std::map<QString, uint32_t> realmToNonceCount_;
QByteArray a1_;
};
|
#pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credentials to request, if we have them
virtual void processOutgoingRequest(SIPRequest& request, QVariant& content);
// take challenge if they require authentication
virtual void processIncomingResponse(SIPResponse& response, QVariant& content);
private:
DigestResponse generateAuthResponse(DigestChallenge& challenge, QString username,
SIP_URI& requestURI, SIPRequestMethod method,
QVariant& content);
void updateNonceCount(DigestChallenge& challenge, DigestResponse& response);
QList<DigestChallenge> wwwChallenges_;
QList<DigestChallenge> proxyChallenges_;
QList<DigestResponse> authorizations_;
QList<DigestResponse> proxyAuthorizations_;
// key is realm and value current nonce
std::map<QString, QString> realmToNonce_;
std::map<QString, uint32_t> realmToNonceCount_;
QByteArray a1_;
};
|
Remove TODO. Tested common credentials, didn't work.
|
cosmetic(Transport): Remove TODO. Tested common credentials, didn't work.
|
C
|
isc
|
ultravideo/kvazzup,ultravideo/kvazzup
|
553faa1fcfc6a119959a66371ea355899dd8efd8
|
src/compat/deinompi.h
|
src/compat/deinompi.h
|
#ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
/* ---------------------------------------------------------------- */
static int PyMPI_DEINOMPI_argc = 0;
static char **PyMPI_DEINOMPI_argv = 0;
static char *PyMPI_DEINOMPI_args[2] = {0, 0};
static void PyMPI_DEINOMPI_FixArgs(int **argc, char ****argv)
{
if ((argc[0]==(int *)0) || (argv[0]==(char ***)0)) {
#ifdef Py_PYTHON_H
#if PY_MAJOR_VERSION >= 3
PyMPI_DEINOMPI_args[0] = (char *) "python";
#else
PyMPI_DEINOMPI_args[0] = Py_GetProgramName();
#endif
PyMPI_DEINOMPI_argc = 1;
#endif
PyMPI_DEINOMPI_argv = PyMPI_DEINOMPI_args;
argc[0] = &PyMPI_DEINOMPI_argc;
argv[0] = &PyMPI_DEINOMPI_argv;
}
}
static int PyMPI_DEINOMPI_MPI_Init(int *argc, char ***argv)
{
PyMPI_DEINOMPI_FixArgs(&argc, &argv);
return MPI_Init(argc, argv);
}
#undef MPI_Init
#define MPI_Init PyMPI_DEINOMPI_MPI_Init
static int PyMPI_DEINOMPI_MPI_Init_thread(int *argc, char ***argv,
int required, int *provided)
{
PyMPI_DEINOMPI_FixArgs(&argc, &argv);
return MPI_Init_thread(argc, argv, required, provided);
}
#undef MPI_Init_thread
#define MPI_Init_thread PyMPI_DEINOMPI_MPI_Init_thread
/* ---------------------------------------------------------------- */
#endif /* !PyMPI_COMPAT_DEINOMPI_H */
|
#ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
#endif /* !PyMPI_COMPAT_DEINOMPI_H */
|
Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine
|
Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine
|
C
|
bsd-2-clause
|
pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py
|
778fbd48981675b0a10383efe169e397153e81d6
|
tests/regression/01-cpa/72-library-function-pointer.c
|
tests/regression/01-cpa/72-library-function-pointer.c
|
#include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,int);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library function descriptior of ftruncate.
// -- "open" expects 3 arguments, while "ftruncate" expects only 2.
int main(){
fnct_ptr ptr;
int top;
if (top){
ptr = &open;
} else {
ptr = &ftruncate;
}
if (top) {
// Some (nonsensical, but compiling) call to open
open_t myopen;
myopen = (open_t) ptr;
myopen("some/path", O_CREAT, 0);
} else {
// Some (nonsensical, but compiling) call to ftruncate
ftruncate_t myftruncate;
myftruncate = (ftruncate_t) ptr;
myftruncate(0, 100);
}
return 0;
}
|
#include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,...);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library function descriptior of ftruncate.
// -- "open" expects 3 arguments, while "ftruncate" expects only 2.
int main(){
fnct_ptr ptr;
int top, top2, top3;
if (top){
ptr = (fnct_ptr) &open;
ftruncate_t myftruncate;
myftruncate = (ftruncate_t) ptr;
myftruncate(0, 100); //NOWARN
} else {
ptr = (fnct_ptr) &ftruncate;
}
if (top2) {
open_t myopen;
myopen = (open_t) ptr;
// Warn about possible call to ftruncate with wrong number of arguments
myopen("some/path", 0, 0); // WARN
} else if(top3) {
ftruncate_t myftruncate2;
myftruncate2 = (ftruncate_t) ptr;
off_t v = 100;
// We (currently) only warn about wrong number of args, not wrong type
// So no warning is emitted here about possibly calling the vararg function open.
myftruncate2(0, v);
} else {
// Warn about potential calls to open and ftruncate with too few arguments,
// and warn that none of the possible targets of the pointer fit as call targets.
ptr(); // WARN
}
return 0;
}
|
Add WARN annotations and explanations to test, expand it with one case.
|
Add WARN annotations and explanations to test, expand it with one case.
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
92a488818e157ed14631b9b0467e102556b64242
|
src/Console.h
|
src/Console.h
|
#ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
void tick() {
clockCounter++;
if (clockCounter == interval) {
clockCounter = 0;
}
}
bool hasClocked() {
return clockCounter == 0;
}
private:
int interval;
int clockCounter;
};
class Console {
public:
~Console();
void boot();
void runForOneFrame();
uint32_t *getFrameBuffer();
Cart cart;
Controller controller1;
private:
void tick();
CPU *cpu;
PPU *ppu;
APU apu;
Divider cpuDivider;
};
#endif
|
#ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
Divider(int interval = 1) {
setInterval(interval);
}
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
void tick() {
clockCounter++;
if (clockCounter == interval) {
clockCounter = 0;
}
}
bool hasClocked() {
return clockCounter == 0;
}
private:
int interval;
int clockCounter;
};
class Console {
public:
~Console();
void boot();
void runForOneFrame();
uint32_t *getFrameBuffer();
Cart cart;
Controller controller1;
private:
void tick();
CPU *cpu;
PPU *ppu;
APU apu;
Divider cpuDivider;
};
#endif
|
Add divider constructor with interval default argument
|
Add divider constructor with interval default argument
|
C
|
mit
|
scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES
|
76086d7eeb3e13f384c6b9bf84d3c30a3de246f9
|
src/utils.h
|
src/utils.h
|
/**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
int hex2str(unsigned length, uint8_t *data, char *buffer);
void print_int_array(uint8_t *array, unsigned length);
int str2hex(unsigned length, char *data, uint8_t *buffer);
void random_buffer(uint8_t *buf, size_t len);
uint64_t shard_size(int hops);
uint64_t get_time_milliseconds();
void memset_zero(void *v, size_t n);
#endif /* STORJ_UTILS_H */
|
/**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#include <time.h>
#else
#include <sys/time.h>
#endif
int hex2str(unsigned length, uint8_t *data, char *buffer);
void print_int_array(uint8_t *array, unsigned length);
int str2hex(unsigned length, char *data, uint8_t *buffer);
void random_buffer(uint8_t *buf, size_t len);
uint64_t shard_size(int hops);
uint64_t get_time_milliseconds();
void memset_zero(void *v, size_t n);
#endif /* STORJ_UTILS_H */
|
Fix implicit declaration of function ‘time’
|
Fix implicit declaration of function ‘time’
|
C
|
lgpl-2.1
|
braydonf/libstorj,Storj/libstorj-c,aleitner/libstorj-c,braydonf/libstorj-c,aleitner/libstorj-c,Storj/libstorj-c,braydonf/libstorj-c,braydonf/libstorj
|
bfff95e5e5b548a976340ca405991c61662c104f
|
src/bitwise.h
|
src/bitwise.h
|
#pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return (high << 8) + low;
}
inline bool check_bit(const u8 value, const int bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const int bit) {
return value | (1 << bit);
}
inline u8 clear_bit(const u8 value, const int bit) {
return value & ~(1 << bit);
}
inline u8 set_bit_to(const u8 value, const int bit, bool bit_on) {
if (bit_on) {
return set_bit(value, bit);
} else {
return clear_bit(value, bit);
}
}
|
#pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return static_cast<u16>((high << 8) + low);
}
inline bool check_bit(const u8 value, const u8 bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const u8 bit) {
auto value_set = value | (1 << bit);
return static_cast<u8>(value_set);
}
inline u8 clear_bit(const u8 value, const u8 bit) {
auto value_cleared = value & ~(1 << bit);
return static_cast<u8>(value_cleared);
}
inline u8 set_bit_to(const u8 value, const u8 bit, bool bit_on) {
if (bit_on) {
return set_bit(value, bit);
} else {
return clear_bit(value, bit);
}
}
|
Make conversions between integer sizes explicit
|
Make conversions between integer sizes explicit
|
C
|
bsd-3-clause
|
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
|
cf4ff469b193f6972cad1b6821ef99d51091e05a
|
test/Driver/hello.c
|
test/Driver/hello.c
|
// RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32
#include <stdio.h>
int main() {
printf("I'm a little driver, short and stout.");
return 0;
}
|
// RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang\(-[0-9.]\+\)\?" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32
#include <stdio.h>
int main() {
printf("I'm a little driver, short and stout.");
return 0;
}
|
Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>.
|
Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@126560 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang
|
452bc34d386c7158c042e2059b6a020ddd4a7e7f
|
include/kiste/kiste.h
|
include/kiste/kiste.h
|
#ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
namespace kiste
{
struct terminal_t
{
};
constexpr auto terminal = terminal_t{};
struct raw
{
std::ostream& _os;
template <typename T>
auto operator()(T&& t) const -> void
{
_os << std::forward<T>(t);
}
};
}
#endif
|
#ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
#endif
|
Remove types left over from header split
|
Remove types left over from header split
|
C
|
bsd-2-clause
|
rbock/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates,AndiDog/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates
|
21b8bddea55ff726108990263ee30072fcaa9d19
|
include/llvm/CodeGen/MachineFunctionAnalysis.h
|
include/llvm/CodeGen/MachineFunctionAnalysis.h
|
//===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the MachineFunctionAnalysis class.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_MACHINE_FUNCTION_ANALYSIS_H
#define LLVM_CODEGEN_MACHINE_FUNCTION_ANALYSIS_H
#include "llvm/Pass.h"
namespace llvm {
class MachineFunction;
class TargetMachine;
/// MachineFunctionAnalysis - This class is a Pass that manages a
/// MachineFunction object.
struct MachineFunctionAnalysis : public FunctionPass {
private:
const TargetMachine &TM;
CodeGenOpt::Level OptLevel;
MachineFunction *MF;
public:
static char ID;
explicit MachineFunctionAnalysis(const TargetMachine &tm,
CodeGenOpt::Level OL = CodeGenOpt::Default);
~MachineFunctionAnalysis();
MachineFunction &getMF() const { return *MF; }
CodeGenOpt::Level getOptLevel() const { return OptLevel; }
private:
virtual bool runOnFunction(Function &F);
virtual void releaseMemory();
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
};
} // End llvm namespace
#endif
|
//===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the MachineFunctionAnalysis class.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_MACHINE_FUNCTION_ANALYSIS_H
#define LLVM_CODEGEN_MACHINE_FUNCTION_ANALYSIS_H
#include "llvm/Pass.h"
#include "llvm/Target/TargetMachine.h"
namespace llvm {
class MachineFunction;
/// MachineFunctionAnalysis - This class is a Pass that manages a
/// MachineFunction object.
struct MachineFunctionAnalysis : public FunctionPass {
private:
const TargetMachine &TM;
CodeGenOpt::Level OptLevel;
MachineFunction *MF;
public:
static char ID;
explicit MachineFunctionAnalysis(const TargetMachine &tm,
CodeGenOpt::Level OL = CodeGenOpt::Default);
~MachineFunctionAnalysis();
MachineFunction &getMF() const { return *MF; }
CodeGenOpt::Level getOptLevel() const { return OptLevel; }
private:
virtual bool runOnFunction(Function &F);
virtual void releaseMemory();
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
};
} // End llvm namespace
#endif
|
Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h.
|
Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@88959 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm
|
272fd3b28f5ebbf20ccf39c511744cb682056434
|
drivers/scsi/qla4xxx/ql4_version.h
|
drivers/scsi/qla4xxx/ql4_version.h
|
/*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k0"
|
/*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k1"
|
Update driver version to 5.04.00-k1
|
[SCSI] qla4xxx: Update driver version to 5.04.00-k1
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
|
C
|
mit
|
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
|
1f0d489fdca7b9cd511ce4e4060389a6e4b41e43
|
include/problems/0001-0050/Problem15.h
|
include/problems/0001-0050/Problem15.h
|
//===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief Problem 15: Lattice paths
///
//===----------------------------------------------------------------------===//
#ifndef PROBLEMS_PROBLEM15_H
#define PROBLEMS_PROBLEM15_H
#include <string>
#include <gmpxx.h>
#include "../Problem.h"
namespace problems {
class Problem15 : public Problem {
public:
Problem15() : value(0), solved(false) {}
~Problem15() = default;
std::string answer();
std::string description() const;
void solve();
// Simple brute force solution
unsigned long long bruteForce(const unsigned long long limit) const;
private:
/// Cached answer
mpz_class value;
/// If cached answer is valid
bool solved;
};
}
#endif
|
//===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief Problem 15: Lattice paths
///
//===----------------------------------------------------------------------===//
#ifndef PROBLEMS_PROBLEM15_H
#define PROBLEMS_PROBLEM15_H
#include <string>
#include <gmpxx.h>
#include "../Problem.h"
namespace problems {
class Problem15 : public Problem {
public:
Problem15() : value(0), solved(false) {}
~Problem15() = default;
std::string answer();
std::string description() const;
void solve();
private:
/// Cached answer
mpz_class value;
/// If cached answer is valid
bool solved;
};
}
#endif
|
Remove extraneous method in Problem 15
|
Remove extraneous method in Problem 15
|
C
|
mit
|
wtmitchell/challenge_problems,wtmitchell/challenge_problems,wtmitchell/challenge_problems
|
bcb11829bab091c0e2c8ea4de42cc03aa5359f0c
|
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
|
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
|
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChanged(const QList<FormEditorItem *> &itemList) QTC_OVERRIDE;
virtual int wantHandleItem(const ModelNode &modelNode) const QTC_OVERRIDE = 0;
};
} // namespace QmlDesigner
#endif // QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
|
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChanged(const QList<FormEditorItem *> &itemList) QTC_OVERRIDE;
virtual QString name() const = 0;
virtual int wantHandleItem(const ModelNode &modelNode) const QTC_OVERRIDE = 0;
};
} // namespace QmlDesigner
#endif // QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
|
Add name method to custom tools
|
QmlDesigner.FormEditor: Add name method to custom tools
Change-Id: Icabf454fc49444a5a88c1f5eb84847967f09078e
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
|
C
|
lgpl-2.1
|
Distrotech/qtcreator,danimo/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,darksylinc/qt-creator,xianian/qt-creator,omniacreator/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,omniacreator/qtcreator,colede/qtcreator,duythanhphan/qt-creator,malikcjm/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,farseerri/git_code,xianian/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,malikcjm/qtcreator,malikcjm/qtcreator,maui-packages/qt-creator,xianian/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,colede/qtcreator,danimo/qt-creator,danimo/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,colede/qtcreator,maui-packages/qt-creator,richardmg/qtcreator,colede/qtcreator,maui-packages/qt-creator,danimo/qt-creator,danimo/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,maui-packages/qt-creator,malikcjm/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,kuba1/qtcreator,xianian/qt-creator,danimo/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,farseerri/git_code,xianian/qt-creator,duythanhphan/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,duythanhphan/qt-creator,duythanhphan/qt-creator,omniacreator/qtcreator,malikcjm/qtcreator,duythanhphan/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,martyone/sailfish-qtcreator,richardmg/qtcreator,kuba1/qtcreator,colede/qtcreator,richardmg/qtcreator,farseerri/git_code,kuba1/qtcreator,omniacreator/qtcreator,richardmg/qtcreator,kuba1/qtcreator,farseerri/git_code,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,Distrotech/qtcreator,omniacreator/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,colede/qtcreator,farseerri/git_code,malikcjm/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator
|
7683806ea3a16e14e8b7c0c9878f5211b4c8baa5
|
lib/CodeGen/Spiller.h
|
lib/CodeGen/Spiller.h
|
//===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_SPILLER_H
#define LLVM_CODEGEN_SPILLER_H
#include <vector>
namespace llvm {
/// Spiller interface.
///
/// Implementations are utility classes which insert spill or remat code on
/// demand.
class Spiller {
public:
virtual ~Spiller() = 0;
virtual std::vector<class LiveInterval*> spill(class LiveInterval *li) = 0;
};
/// Create and return a spiller object, as specified on the command line.
Spiller* createSpiller(class MachineFunction *mf, class LiveIntervals *li,
class VirtRegMap *vrm);
}
#endif
|
//===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_SPILLER_H
#define LLVM_CODEGEN_SPILLER_H
#include <vector>
namespace llvm {
struct LiveInterval;
/// Spiller interface.
///
/// Implementations are utility classes which insert spill or remat code on
/// demand.
class Spiller {
public:
virtual ~Spiller() = 0;
virtual std::vector<LiveInterval*> spill(class LiveInterval *li) = 0;
};
/// Create and return a spiller object, as specified on the command line.
Spiller* createSpiller(class MachineFunction *mf, class LiveIntervals *li,
class VirtRegMap *vrm);
}
#endif
|
Fix to compile on VS2008.
|
Fix to compile on VS2008.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@72112 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
bsd-2-clause
|
chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm
|
24f4d30135007cb729223094e0855c65cf7025f5
|
include/config/SkUserConfigManual.h
|
include/config/SkUserConfigManual.h
|
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)
#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024)
#define SK_USE_FREETYPE_EMBOLDEN
// Disable these Ganesh features
#define SK_DISABLE_REDUCE_OPLIST_SPLITTING
// Check error is expensive. HWUI historically also doesn't check its allocations
#define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0
// Legacy flags
#define SK_IGNORE_GPU_DITHER
#define SK_SUPPORT_DEPRECATED_CLIPOPS
// Needed until we fix https://bug.skia.org/2440
#define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG
#define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
#define SK_SUPPORT_LEGACY_AA_CHOICE
#define SK_SUPPORT_LEGACY_AAA_CHOICE
#define SK_DISABLE_DAA // skbug.com/6886
#define SK_LEGACY_HEIF_API
#endif // SkUserConfigManual_DEFINED
|
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)
#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (512 * 1024)
#define SK_USE_FREETYPE_EMBOLDEN
// Disable these Ganesh features
#define SK_DISABLE_REDUCE_OPLIST_SPLITTING
// Check error is expensive. HWUI historically also doesn't check its allocations
#define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0
// Legacy flags
#define SK_IGNORE_GPU_DITHER
#define SK_SUPPORT_DEPRECATED_CLIPOPS
// Needed until we fix https://bug.skia.org/2440
#define SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG
#define SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
#define SK_SUPPORT_LEGACY_AA_CHOICE
#define SK_SUPPORT_LEGACY_AAA_CHOICE
#define SK_DISABLE_DAA // skbug.com/6886
#endif // SkUserConfigManual_DEFINED
|
Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec
|
Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec
bug: 78868457
bug: 120414514
test: local test with OpenGL Rendrerer Tests animation
demo and heifs files
Change-Id: I09a7667a57f545927dbe9ac24c1a6b405ff0006d
|
C
|
bsd-3-clause
|
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia
|
22da76be1ee64120f69ed35d6f21c85c31df08b6
|
sky/shell/android/platform_view_android.h
|
sky/shell/android/platform_view_android.h
|
// Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namespace sky {
namespace shell {
class PlatformViewAndroid : public PlatformView {
public:
static bool Register(JNIEnv* env);
~PlatformViewAndroid() override;
// Called from Java
void Detach(JNIEnv* env, jobject obj);
void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
void SurfaceDestroyed(JNIEnv* env, jobject obj);
private:
void ReleaseWindow();
ANativeWindow* window_;
DISALLOW_COPY_AND_ASSIGN(PlatformViewAndroid);
};
} // namespace shell
} // namespace sky
#endif // SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
|
// Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namespace sky {
namespace shell {
class PlatformViewAndroid : public PlatformView {
public:
static bool Register(JNIEnv* env);
~PlatformViewAndroid() override;
// Called from Java
void Detach(JNIEnv* env, jobject obj);
void SurfaceCreated(JNIEnv* env, jobject obj, jobject jsurface);
void SurfaceDestroyed(JNIEnv* env, jobject obj);
private:
void ReleaseWindow();
DISALLOW_COPY_AND_ASSIGN(PlatformViewAndroid);
};
} // namespace shell
} // namespace sky
#endif // SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
|
Stop SkyShell from crashing on startup
|
Stop SkyShell from crashing on startup
R=chinmaygarde@google.com
Review URL: https://codereview.chromium.org/1178773002.
|
C
|
bsd-3-clause
|
afandria/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo
|
e850f2a6f16480dd37ac1c1b9ac4285bcd9fff7c
|
ext/osl/rbosl_move.h
|
ext/osl/rbosl_move.h
|
#include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
|
#ifndef RBOSL_MOVE_H
#define RBOSL_MOVE_H
#include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
#endif /* RBOSL_MOVE_H */
|
Add a missing include guard
|
Add a missing include guard
|
C
|
mit
|
myokoym/ruby-osl,myokoym/ruby-osl,myokoym/ruby-osl
|
fc94e16df9496ee6a8d12ed8476a545150526480
|
src/condor_includes/condor_fix_unistd.h
|
src/condor_includes/condor_fix_unistd.h
|
#ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
*/
#if defined(ULTRIX43)
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__STDC__) || defined(__cplusplus)
int symlink( const char *, const char * );
char *sbrk( int );
int gethostname( char *, int );
#else
int symlink();
char *sbrk();
int gethostname();
#endif
#if defined(__cplusplus)
}
#endif
#endif /* ULTRIX43 */
#endif
|
#ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(OSF1)
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__STDC__) || defined(__cplusplus)
int symlink( const char *, const char * );
char *sbrk( int );
int gethostname( char *, int );
#else
int symlink();
char *sbrk();
int gethostname();
#endif
#if defined(__cplusplus)
}
#endif
#endif /* ULTRIX43 */
#endif
|
Add OSF/1 to a pre-existing conditional compilation switch.
|
Add OSF/1 to a pre-existing conditional compilation switch.
|
C
|
apache-2.0
|
htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,htcondor/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,djw8605/condor,htcondor/htcondor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,bbockelm/condor-network-accounting,djw8605/htcondor,djw8605/htcondor,djw8605/condor,neurodebian/htcondor,djw8605/condor,bbockelm/condor-network-accounting,htcondor/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,bbockelm/condor-network-accounting,djw8605/condor,bbockelm/condor-network-accounting,djw8605/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/condor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,zhangzhehust/htcondor,djw8605/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,clalancette/condor-dcloud,djw8605/condor,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,clalancette/condor-dcloud,zhangzhehust/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,htcondor/htcondor,zhangzhehust/htcondor
|
063b55a1ac04addc0989efb15d41d2232e5353da
|
OrbitGl/GraphTrack.h
|
OrbitGl/GraphTrack.h
|
// Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class GraphTrack : public Track {
public:
explicit GraphTrack(TimeGraph* time_graph);
Type GetType() const override { return kGraphTrack; }
void Draw(GlCanvas* canvas, bool picking) override;
void OnDrag(int x, int y) override;
void AddTimer(const Timer& timer) override;
float GetHeight() const override;
protected:
std::map<uint64_t, double> values_;
double min_ = std::numeric_limits<double>::max();
double max_ = std::numeric_limits<double>::min();
double value_range_ = 0;
double inv_value_range_ = 0;
};
#endif
|
// Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class GraphTrack : public Track {
public:
explicit GraphTrack(TimeGraph* time_graph);
Type GetType() const override { return kGraphTrack; }
void Draw(GlCanvas* canvas, bool picking) override;
void OnDrag(int x, int y) override;
void AddTimer(const Timer& timer) override;
float GetHeight() const override;
protected:
std::map<uint64_t, double> values_;
double min_ = std::numeric_limits<double>::max();
double max_ = std::numeric_limits<double>::lowest();
double value_range_ = 0;
double inv_value_range_ = 0;
};
#endif
|
Use numeric_limits<double>::lowest instead of numeric_limits<double>::min
|
Use numeric_limits<double>::lowest instead of numeric_limits<double>::min
|
C
|
bsd-2-clause
|
google/orbit,google/orbit,google/orbit,google/orbit
|
af9dfccab1d126811fe6cab3f141a65b41884c6d
|
ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h
|
ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h
|
#define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO4)
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
// Flash chip is GD25Q32 connected over QSPI
#define TOTAL_FLASH_SIZE (4 * 1024 * 1024)
|
#define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO4)
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
// Flash chip is GD25Q64 connected over QSPI
#define TOTAL_FLASH_SIZE (8 * 1024 * 1024)
|
Update QT Py flash size
|
Update QT Py flash size
|
C
|
mit
|
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
|
0bd7dc36ef978a11bfe9a4c4d2a19f53e933a7c4
|
src/linux/epoll/peer_testing.h
|
src/linux/epoll/peer_testing.h
|
#ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusplus
}
#endif
#define READ fake_read
#define SEND fake_send
#define WRITEV fake_writev
#else
#define READ read
#define SEND send
#define WRITEV writev
#endif
#endif
|
#ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#include <sys/uio.h>
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusplus
}
#endif
#define READ fake_read
#define SEND fake_send
#define WRITEV fake_writev
#else
#define READ read
#define SEND send
#define WRITEV writev
#endif
#endif
|
Add include to provide type struct iovec.
|
Add include to provide type struct iovec.
|
C
|
mit
|
gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
|
82c12a3cec5c2351c2a114ee62f1d61dd57f4253
|
src/openboardview/imgui_impl_sdl_gles2.h
|
src/openboardview/imgui_impl_sdl_gles2.h
|
// ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// https://github.com/ocornut/imgui
#ifndef IMGUI_IMPL_SDL_GL2
#define IMGUI_IMPL_SDL_GL2
#include "../../../../../../../imgui.h"
struct SDL_Window;
typedef union SDL_Event SDL_Event;
IMGUI_API bool ImGui_ImplSdlGLES2_Init(SDL_Window *window);
IMGUI_API void ImGui_ImplSdlGLES2_Shutdown();
IMGUI_API void ImGui_ImplSdlGLES2_NewFrame();
IMGUI_API bool ImGui_ImplSdlGLES2_ProcessEvent(SDL_Event *event);
// Use if you want to reset your rendering device without losing ImGui state.
IMGUI_API void ImGui_ImplSdlGLES2_InvalidateDeviceObjects();
IMGUI_API bool ImGui_ImplSdlGLES2_CreateDeviceObjects();
#endif // IMGUI_IMPL_SDL_GL2
|
// ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// https://github.com/ocornut/imgui
#ifndef IMGUI_IMPL_SDL_GL2
#define IMGUI_IMPL_SDL_GL2
#include "imgui/imgui.h"
struct SDL_Window;
typedef union SDL_Event SDL_Event;
IMGUI_API bool ImGui_ImplSdlGLES2_Init(SDL_Window *window);
IMGUI_API void ImGui_ImplSdlGLES2_Shutdown();
IMGUI_API void ImGui_ImplSdlGLES2_NewFrame();
IMGUI_API bool ImGui_ImplSdlGLES2_ProcessEvent(SDL_Event *event);
// Use if you want to reset your rendering device without losing ImGui state.
IMGUI_API void ImGui_ImplSdlGLES2_InvalidateDeviceObjects();
IMGUI_API bool ImGui_ImplSdlGLES2_CreateDeviceObjects();
#endif // IMGUI_IMPL_SDL_GL2
|
Fix imgui include path in GLES renderer
|
Fix imgui include path in GLES renderer
|
C
|
mit
|
chloridite/OpenBoardView,chloridite/OpenBoardView
|
bd2ff3914c51693544eecbc477b505c7366d3cb3
|
Source/Regex.h
|
Source/Regex.h
|
// Copyright © 2015 Outware Mobile. All rights reserved.
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
|
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
|
Remove an invalid copyright notice
|
Remove an invalid copyright notice
|
C
|
mit
|
sharplet/Regex,sclukey/Regex,sclukey/Regex,sharplet/Regex,sharplet/Regex
|
9136fc058781cf31b7b045765be1202681eb6a0d
|
src/asynchronous_loader/file_loader.h
|
src/asynchronous_loader/file_loader.h
|
// Copyright 2015 Google Inc. 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 PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
#define PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
#include "fplbase/async_loader.h"
namespace pindrop {
class FileLoader;
class Resource : public fplbase::AsyncAsset {
public:
virtual ~Resource() {}
void LoadFile(const char* filename, FileLoader* loader);
private:
virtual void Finalize() {};
};
class FileLoader {
public:
void StartLoading();
bool TryFinalize();
void QueueJob(Resource* resource);
private:
fplbase::AsyncLoader loader;
};
} // namespace pindrop
#endif // PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
|
// Copyright 2015 Google Inc. 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 PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
#define PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
#include "fplbase/async_loader.h"
namespace pindrop {
class FileLoader;
class Resource : public fplbase::AsyncAsset {
public:
virtual ~Resource() {}
void LoadFile(const char* filename, FileLoader* loader);
private:
virtual bool Finalize() { return true; };
virtual bool IsValid() { return true; };
};
class FileLoader {
public:
void StartLoading();
bool TryFinalize();
void QueueJob(Resource* resource);
private:
fplbase::AsyncLoader loader;
};
} // namespace pindrop
#endif // PINDROP_ASYNCHRONOUS_LOADER_FILE_LOADER_H_
|
Update Resource with latest changes to FPLBase.
|
Update Resource with latest changes to FPLBase.
AsyncAsset had some changes to virtual functions, so Resource,
which inherits from it, needs to be updated.
Tested on Linux.
Change-Id: Ic12854c7d24a04f0049673fa1df6e96a6d68aa15
|
C
|
apache-2.0
|
google/pindrop,google/pindrop,google/pindrop
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.