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
|
|---|---|---|---|---|---|---|---|---|---|
f86f4873e8aef4d54ea45abc70b5f45af204186a
|
fitz/stm_filter.c
|
fitz/stm_filter.c
|
#include "fitz_base.h"
#include "fitz_stream.h"
fz_error
fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out)
{
fz_error reason;
unsigned char *oldrp;
unsigned char *oldwp;
assert(!out->eof);
oldrp = in->rp;
oldwp = out->wp;
if (f->done)
return fz_iodone;
reason = f->process(f, in, out);
assert(in->rp <= in->wp);
assert(out->wp <= out->ep);
f->consumed = in->rp > oldrp;
f->produced = out->wp > oldwp;
f->count += out->wp - oldwp;
/* iodone or error */
if (reason != fz_ioneedin && reason != fz_ioneedout)
{
if (reason != fz_iodone)
reason = fz_rethrow(reason, "cannot process filter");
out->eof = 1;
f->done = 1;
}
return reason;
}
fz_filter *
fz_keepfilter(fz_filter *f)
{
f->refs ++;
return f;
}
void
fz_dropfilter(fz_filter *f)
{
if (--f->refs == 0)
{
if (f->drop)
f->drop(f);
fz_free(f);
}
}
|
#include "fitz_base.h"
#include "fitz_stream.h"
fz_error
fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out)
{
fz_error reason;
unsigned char *oldrp;
unsigned char *oldwp;
oldrp = in->rp;
oldwp = out->wp;
if (f->done)
return fz_iodone;
assert(!out->eof);
reason = f->process(f, in, out);
assert(in->rp <= in->wp);
assert(out->wp <= out->ep);
f->consumed = in->rp > oldrp;
f->produced = out->wp > oldwp;
f->count += out->wp - oldwp;
/* iodone or error */
if (reason != fz_ioneedin && reason != fz_ioneedout)
{
if (reason != fz_iodone)
reason = fz_rethrow(reason, "cannot process filter");
out->eof = 1;
f->done = 1;
}
return reason;
}
fz_filter *
fz_keepfilter(fz_filter *f)
{
f->refs ++;
return f;
}
void
fz_dropfilter(fz_filter *f)
{
if (--f->refs == 0)
{
if (f->drop)
f->drop(f);
fz_free(f);
}
}
|
Move assert test of EOF to after testing if a filter is done.
|
Move assert test of EOF to after testing if a filter is done.
|
C
|
agpl-3.0
|
tophyr/mupdf,PuzzleFlow/mupdf,derek-watson/mupdf,cgogolin/penandpdf,ArtifexSoftware/mupdf,asbloomf/mupdf,lamemate/mupdf,lolo32/mupdf-mirror,lolo32/mupdf-mirror,loungeup/mupdf,knielsen/mupdf,kobolabs/mupdf,asbloomf/mupdf,TamirEvan/mupdf,hjiayz/forkmupdf,hackqiang/mupdf,seagullua/MuPDF,MokiMobility/muPDF,nqv/mupdf,sebras/mupdf,poor-grad-student/mupdf,benoit-pierre/mupdf,Kalp695/mupdf,ArtifexSoftware/mupdf,lolo32/mupdf-mirror,robamler/mupdf-nacl,ArtifexSoftware/mupdf,Kalp695/mupdf,derek-watson/mupdf,TamirEvan/mupdf,isavin/humblepdf,knielsen/mupdf,tribals/mupdf,lolo32/mupdf-mirror,lamemate/mupdf,michaelcadilhac/pdfannot,seagullua/MuPDF,geetakaur/NewApps,cgogolin/penandpdf,MokiMobility/muPDF,benoit-pierre/mupdf,michaelcadilhac/pdfannot,ArtifexSoftware/mupdf,PuzzleFlow/mupdf,FabriceSalvaire/mupdf-cmake,robamler/mupdf-nacl,lustersir/MuPDF,xiangxw/mupdf,wild0/opened_mupdf,FabriceSalvaire/mupdf-v1.3,poor-grad-student/mupdf,cgogolin/penandpdf,clchiou/mupdf,derek-watson/mupdf,sebras/mupdf,isavin/humblepdf,hxx0215/MuPDFMirror,FabriceSalvaire/mupdf-cmake,wzhsunn/mupdf,clchiou/mupdf,lamemate/mupdf,tophyr/mupdf,FabriceSalvaire/mupdf-v1.3,geetakaur/NewApps,wild0/opened_mupdf,FabriceSalvaire/mupdf-cmake,issuestand/mupdf,FabriceSalvaire/mupdf-v1.3,github201407/MuPDF,seagullua/MuPDF,TamirEvan/mupdf,github201407/MuPDF,cgogolin/penandpdf,zeniko/mupdf,fluks/mupdf-x11-bookmarks,ccxvii/mupdf,TamirEvan/mupdf,asbloomf/mupdf,wzhsunn/mupdf,ArtifexSoftware/mupdf,flipstudio/MuPDF,hjiayz/forkmupdf,xiangxw/mupdf,lolo32/mupdf-mirror,ziel/mupdf,benoit-pierre/mupdf,sebras/mupdf,fluks/mupdf-x11-bookmarks,wzhsunn/mupdf,flipstudio/MuPDF,kobolabs/mupdf,fluks/mupdf-x11-bookmarks,flipstudio/MuPDF,github201407/MuPDF,hxx0215/MuPDFMirror,crow-misia/mupdf,ArtifexSoftware/mupdf,hxx0215/MuPDFMirror,xiangxw/mupdf,Kalp695/mupdf,hackqiang/mupdf,lolo32/mupdf-mirror,zeniko/mupdf,seagullua/MuPDF,muennich/mupdf,sebras/mupdf,MokiMobility/muPDF,issuestand/mupdf,ylixir/mupdf,ccxvii/mupdf,ziel/mupdf,asbloomf/mupdf,samturneruk/mupdf_secure_android,clchiou/mupdf,flipstudio/MuPDF,samturneruk/mupdf_secure_android,nqv/mupdf,hackqiang/mupdf,crow-misia/mupdf,nqv/mupdf,isavin/humblepdf,seagullua/MuPDF,geetakaur/NewApps,TamirEvan/mupdf,ylixir/mupdf,robamler/mupdf-nacl,ccxvii/mupdf,hackqiang/mupdf,seagullua/MuPDF,Kalp695/mupdf,FabriceSalvaire/mupdf-v1.3,crow-misia/mupdf,benoit-pierre/mupdf,ArtifexSoftware/mupdf,tophyr/mupdf,derek-watson/mupdf,samturneruk/mupdf_secure_android,isavin/humblepdf,poor-grad-student/mupdf,loungeup/mupdf,ziel/mupdf,lustersir/MuPDF,ziel/mupdf,ylixir/mupdf,TamirEvan/mupdf,knielsen/mupdf,wzhsunn/mupdf,lustersir/MuPDF,TamirEvan/mupdf,loungeup/mupdf,andyhan/mupdf,knielsen/mupdf,lustersir/MuPDF,tribals/mupdf,derek-watson/mupdf,wzhsunn/mupdf,xiangxw/mupdf,FabriceSalvaire/mupdf-v1.3,PuzzleFlow/mupdf,zeniko/mupdf,zeniko/mupdf,hjiayz/forkmupdf,FabriceSalvaire/mupdf-cmake,asbloomf/mupdf,wzhsunn/mupdf,muennich/mupdf,knielsen/mupdf,andyhan/mupdf,wild0/opened_mupdf,andyhan/mupdf,crow-misia/mupdf,ccxvii/mupdf,kobolabs/mupdf,MokiMobility/muPDF,ylixir/mupdf,loungeup/mupdf,samturneruk/mupdf_secure_android,sebras/mupdf,samturneruk/mupdf_secure_android,flipstudio/MuPDF,xiangxw/mupdf,wild0/opened_mupdf,kobolabs/mupdf,wild0/opened_mupdf,lamemate/mupdf,samturneruk/mupdf_secure_android,github201407/MuPDF,crow-misia/mupdf,hackqiang/mupdf,wild0/opened_mupdf,issuestand/mupdf,andyhan/mupdf,benoit-pierre/mupdf,fluks/mupdf-x11-bookmarks,muennich/mupdf,lolo32/mupdf-mirror,benoit-pierre/mupdf,hjiayz/forkmupdf,PuzzleFlow/mupdf,michaelcadilhac/pdfannot,andyhan/mupdf,Kalp695/mupdf,hxx0215/MuPDFMirror,FabriceSalvaire/mupdf-v1.3,zeniko/mupdf,derek-watson/mupdf,FabriceSalvaire/mupdf-cmake,lamemate/mupdf,cgogolin/penandpdf,MokiMobility/muPDF,robamler/mupdf-nacl,cgogolin/penandpdf,lustersir/MuPDF,clchiou/mupdf,tribals/mupdf,tophyr/mupdf,ArtifexSoftware/mupdf,fluks/mupdf-x11-bookmarks,tophyr/mupdf,zeniko/mupdf,loungeup/mupdf,FabriceSalvaire/mupdf-cmake,sebras/mupdf,kobolabs/mupdf,geetakaur/NewApps,ylixir/mupdf,issuestand/mupdf,github201407/MuPDF,tribals/mupdf,ccxvii/mupdf,poor-grad-student/mupdf,poor-grad-student/mupdf,tophyr/mupdf,poor-grad-student/mupdf,ziel/mupdf,hxx0215/MuPDFMirror,Kalp695/mupdf,muennich/mupdf,kobolabs/mupdf,hxx0215/MuPDFMirror,issuestand/mupdf,hjiayz/forkmupdf,hjiayz/forkmupdf,isavin/humblepdf,knielsen/mupdf,nqv/mupdf,kobolabs/mupdf,xiangxw/mupdf,PuzzleFlow/mupdf,github201407/MuPDF,muennich/mupdf,nqv/mupdf,isavin/humblepdf,geetakaur/NewApps,wild0/opened_mupdf,muennich/mupdf,fluks/mupdf-x11-bookmarks,geetakaur/NewApps,fluks/mupdf-x11-bookmarks,michaelcadilhac/pdfannot,issuestand/mupdf,michaelcadilhac/pdfannot,robamler/mupdf-nacl,xiangxw/mupdf,isavin/humblepdf,asbloomf/mupdf,clchiou/mupdf,tribals/mupdf,clchiou/mupdf,muennich/mupdf,ccxvii/mupdf,ziel/mupdf,ylixir/mupdf,michaelcadilhac/pdfannot,nqv/mupdf,robamler/mupdf-nacl,MokiMobility/muPDF,andyhan/mupdf,TamirEvan/mupdf,tribals/mupdf,PuzzleFlow/mupdf,crow-misia/mupdf,Kalp695/mupdf,lamemate/mupdf,hackqiang/mupdf,loungeup/mupdf,flipstudio/MuPDF,lustersir/MuPDF,PuzzleFlow/mupdf
|
6c3a9502f0f9d5523102545bf344b5bc2e2bfeb9
|
include/mpi-compat.h
|
include/mpi-compat.h
|
/* Author: Lisandro Dalcin */
/* Contact: dalcinl@gmail.com */
#ifndef MPI_COMPAT_H
#define MPI_COMPAT_H
#include <mpi.h>
#if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message)
typedef void *PyMPI_MPI_Message;
#define MPI_Message PyMPI_MPI_Message
#endif
#endif/*MPI_COMPAT_H*/
|
/* Author: Lisandro Dalcin */
/* Contact: dalcinl@gmail.com */
#ifndef MPI_COMPAT_H
#define MPI_COMPAT_H
#include <mpi.h>
#if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message)
typedef void *PyMPI_MPI_Message;
#define MPI_Message PyMPI_MPI_Message
#endif
#if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Session)
typedef void *PyMPI_MPI_Session;
#define MPI_Session PyMPI_MPI_Session
#endif
#endif/*MPI_COMPAT_H*/
|
Define MPI_Session for compatibility with current mpi4py main branch
|
Define MPI_Session for compatibility with current mpi4py main branch
|
C
|
mit
|
Unidata/netcdf4-python,Unidata/netcdf4-python,Unidata/netcdf4-python
|
66be7388475932a5a2425e3bfd7ffc57f70dcd1c
|
tests/regression/13-privatized/66-mine-W-init.c
|
tests/regression/13-privatized/66-mine-W-init.c
|
#include <pthread.h>
#include <assert.h>
int g;
void *t_fun(void *arg) {
return NULL;
}
void main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
g = 1;
assert(g); // Mine's analysis would succeed, our mine-W doesn't
}
|
#include <pthread.h>
#include <assert.h>
int g;
void *t_fun(void *arg) {
return NULL;
}
void main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
g = 1;
assert(g); // TODO (Mine's analysis would succeed, our mine-W doesn't)
}
|
Mark Mine init privatization test TODO to make others pass
|
Mark Mine init privatization test TODO to make others pass
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
799188a34509000f87f139423a6ba52d93ee1f1d
|
test2/bitfields/init/pad_end.c
|
test2/bitfields/init/pad_end.c
|
// RUN: %layout_check %s
struct A
{
int : 0;
int a;
int : 0;
int b;
int : 0;
};
struct A a = { 1, 2 };
|
// RUN: %layout_check %s
struct A
{
int : 0;
int a;
int : 0;
int : 0;
int : 0;
int : 0;
int b;
int : 0;
};
struct A a = { 1, 2 };
|
Add more zero-width fields to bitfield padding test
|
Add more zero-width fields to bitfield padding test
|
C
|
mit
|
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
|
b79d3efea5f31ee74a5960522b0552fc9b43dc43
|
test/Parser/nullability.c
|
test/Parser/nullability.c
|
// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify
_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#pragma clang diagnostic pop
#if __has_feature(nullability)
# error Nullability should not be supported in C under -pedantic -std=c99
#endif
#if !__has_extension(nullability)
# error Nullability should always be supported as an extension
#endif
|
// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify
_Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-extension"
_Nonnull int *ptr2; // no-warning
#pragma clang diagnostic pop
#if !__has_feature(nullability)
# error Nullability should always be supported
#endif
#if !__has_extension(nullability)
# error Nullability should always be supported as an extension
#endif
|
Fix a test case broken by my previous commit.
|
Fix a test case broken by my previous commit.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240977 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang
|
ca005fb4d05df5ba680b20566baf4fac515f4fe3
|
Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h
|
Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h
|
//
// FLEXRuntimeSafety.h
// FLEX
//
// Created by Tanner on 3/25/17.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#pragma mark - Classes
extern NSUInteger const kFLEXKnownUnsafeClassCount;
extern const Class * FLEXKnownUnsafeClassList(void);
extern NSSet * FLEXKnownUnsafeClassNames(void);
extern CFSetRef FLEXKnownUnsafeClasses;
static inline BOOL FLEXClassIsSafe(Class cls) {
if (!cls) return NO;
return !CFSetContainsValue(FLEXKnownUnsafeClasses, (__bridge void *)cls);
}
static inline BOOL FLEXClassNameIsSafe(NSString *cls) {
if (!cls) return NO;
NSSet *ignored = FLEXKnownUnsafeClassNames();
return ![ignored containsObject:cls];
}
#pragma mark - Ivars
extern CFSetRef FLEXKnownUnsafeIvars;
static inline BOOL FLEXIvarIsSafe(Ivar ivar) {
if (!ivar) return NO;
return !CFSetContainsValue(FLEXKnownUnsafeIvars, ivar);
}
|
//
// FLEXRuntimeSafety.h
// FLEX
//
// Created by Tanner on 3/25/17.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#pragma mark - Classes
extern NSUInteger const kFLEXKnownUnsafeClassCount;
extern const Class * FLEXKnownUnsafeClassList(void);
extern NSSet * FLEXKnownUnsafeClassNames(void);
extern CFSetRef FLEXKnownUnsafeClasses;
static Class cNSObject = nil, cNSProxy = nil;
__attribute__((constructor))
static void FLEXInitKnownRootClasses() {
cNSObject = [NSObject class];
cNSProxy = [NSProxy class];
}
static inline BOOL FLEXClassIsSafe(Class cls) {
// Is it nil or known to be unsafe?
if (!cls || CFSetContainsValue(FLEXKnownUnsafeClasses, (__bridge void *)cls)) {
return NO;
}
// Is it a known root class?
if (!class_getSuperclass(cls)) {
return cls == cNSObject || cls == cNSProxy;
}
// Probably safe
return YES;
}
static inline BOOL FLEXClassNameIsSafe(NSString *cls) {
if (!cls) return NO;
NSSet *ignored = FLEXKnownUnsafeClassNames();
return ![ignored containsObject:cls];
}
#pragma mark - Ivars
extern CFSetRef FLEXKnownUnsafeIvars;
static inline BOOL FLEXIvarIsSafe(Ivar ivar) {
if (!ivar) return NO;
return !CFSetContainsValue(FLEXKnownUnsafeIvars, ivar);
}
|
Make FLEXClassIsSafe return NO for unknown root classes
|
Make FLEXClassIsSafe return NO for unknown root classes
|
C
|
bsd-3-clause
|
NSExceptional/FLEX,NSExceptional/FLEX,Flipboard/FLEX,Flipboard/FLEX
|
bf11d5ba74b8250248839cb48aad0840e9cfd357
|
hswebkit.h
|
hswebkit.h
|
/*
* Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef HS_WEBKIT_H
#define HS_WEBKIT_H
/* to avoid stdbool.h error in JavaScriptCore/JSBase.h*/
#define _Bool int
#define WINAPI
#define CALLBACK
/* include webkit headers*/
#include <webkit/webkit.h>
#include <webkit/webkitdom.h>
#endif
#include "events.h"
|
/*
* Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifdef __BLOCKS__
#undef __BLOCKS__
#endif
#ifndef HS_WEBKIT_H
#define HS_WEBKIT_H
/* to avoid stdbool.h error in JavaScriptCore/JSBase.h*/
#define _Bool int
#define WINAPI
#define CALLBACK
/* include webkit headers*/
#include <webkit/webkit.h>
#include <webkit/webkitdom.h>
#endif
#include "events.h"
|
Fix CPP issue on OS X
|
Fix CPP issue on OS X
|
C
|
lgpl-2.1
|
gtk2hs/webkit,gtk2hs/webkit,gtk2hs/webkit
|
437e9c5483751d62f8bbbbfb7a9f83b5888eada8
|
src/plugins/airplay/net_utils.h
|
src/plugins/airplay/net_utils.h
|
#ifndef _NET_UTILS_H
#define _NET_UTILS_H
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
char *get_local_addr(int fd);
int set_sock_nonblock(int sockfd);
int tcp_open();
int tcp_connect(int sock_fd, const char *host, unsigned int port);
int tcp_write(int fd, const char *buf, int n);
int tcp_read(int fd, char *buf, int n);
#endif /* _NET_UTILS_H */
|
#ifndef _NET_UTILS_H
#define _NET_UTILS_H
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
char *get_local_addr(int fd);
int set_sock_nonblock(int sockfd);
int tcp_open(void);
int tcp_connect(int sock_fd, const char *host, unsigned int port);
int tcp_write(int fd, const char *buf, int n);
int tcp_read(int fd, char *buf, int n);
#endif /* _NET_UTILS_H */
|
Fix function prototype in airplay plugin.
|
OTHER: Fix function prototype in airplay plugin.
|
C
|
lgpl-2.1
|
mantaraya36/xmms2-mantaraya36,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,xmms2/xmms2-stable,oneman/xmms2-oneman,theefer/xmms2,theeternalsw0rd/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,dreamerc/xmms2,theeternalsw0rd/xmms2,oneman/xmms2-oneman,krad-radio/xmms2-krad,oneman/xmms2-oneman,theeternalsw0rd/xmms2,six600110/xmms2,oneman/xmms2-oneman,theefer/xmms2,oneman/xmms2-oneman,mantaraya36/xmms2-mantaraya36,dreamerc/xmms2,six600110/xmms2,chrippa/xmms2,oneman/xmms2-oneman-old,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,theefer/xmms2,dreamerc/xmms2,theefer/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,krad-radio/xmms2-krad,chrippa/xmms2,krad-radio/xmms2-krad,krad-radio/xmms2-krad,chrippa/xmms2,theefer/xmms2,xmms2/xmms2-stable,xmms2/xmms2-stable,chrippa/xmms2,six600110/xmms2,dreamerc/xmms2,krad-radio/xmms2-krad,six600110/xmms2,theefer/xmms2,krad-radio/xmms2-krad,mantaraya36/xmms2-mantaraya36,xmms2/xmms2-stable,mantaraya36/xmms2-mantaraya36,xmms2/xmms2-stable,dreamerc/xmms2,theeternalsw0rd/xmms2,six600110/xmms2,chrippa/xmms2,oneman/xmms2-oneman-old,xmms2/xmms2-stable
|
7d08034b9e6805682c6bad0abe53b84312030196
|
src/main.c
|
src/main.c
|
#include <stdlib.h>
#include <event2/event.h>
#include <event2/http.h>
static void time_request_cb(struct evhttp_request *req, void *arg)
{
(void) arg;
printf("Received request for %s\n", evhttp_request_get_uri(req));
evhttp_send_reply(req, 200, "OK", NULL);
}
int main(int argc, char **argv) {
struct event_base *base;
struct evhttp *http;
struct evhttp_bound_socket *handle;
base = event_base_new();
if (base == NULL) {
fprintf(stderr, "couldn't create event base\n");
return EXIT_FAILURE;
}
http = evhttp_new(base);
if (http == NULL) {
fprintf(stderr, "couldn't create evhttp\n");
return EXIT_FAILURE;
}
evhttp_set_gencb(http, time_request_cb, NULL);
handle = evhttp_bind_socket_with_handle(http, "0.0.0.0", 8080);
if (handle == NULL) {
fprintf(stderr, "couldn't bind to port 8080\n");
return EXIT_FAILURE;
}
event_base_dispatch(base);
return EXIT_SUCCESS;
}
|
#include <stdlib.h>
#include <time.h>
#include <event2/buffer.h>
#include <event2/event.h>
#include <event2/http.h>
static void time_request_cb(struct evhttp_request *req, void *arg)
{
(void) arg;
struct evbuffer *evb = evbuffer_new();
printf("Received request for %s\n", evhttp_request_get_uri(req));
time_t ts = time(NULL);
evbuffer_add_printf(evb, "%s", ctime(&ts));
evhttp_send_reply(req, 200, "OK", evb);
evbuffer_free(evb);
}
int main(int argc, char **argv) {
struct event_base *base;
struct evhttp *http;
struct evhttp_bound_socket *handle;
base = event_base_new();
if (base == NULL) {
fprintf(stderr, "couldn't create event base\n");
return EXIT_FAILURE;
}
http = evhttp_new(base);
if (http == NULL) {
fprintf(stderr, "couldn't create evhttp\n");
return EXIT_FAILURE;
}
evhttp_set_gencb(http, time_request_cb, NULL);
handle = evhttp_bind_socket_with_handle(http, "0.0.0.0", 8080);
if (handle == NULL) {
fprintf(stderr, "couldn't bind to port 8080\n");
return EXIT_FAILURE;
}
event_base_dispatch(base);
return EXIT_SUCCESS;
}
|
Return local server time on request
|
Return local server time on request
|
C
|
mit
|
sfod/HTTP-server
|
63ed1676250ad8f8549716d60c8354ae800a12a3
|
sys/i386/svr4/svr4_genassym.c
|
sys/i386/svr4/svr4_genassym.c
|
/* $FreeBSD$ */
/* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */
#include <sys/param.h>
#include <sys/assym.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
/* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should
* fix the include files instead... */
#define SVR4_MACHDEP_JUST_REGS
#include <i386/svr4/svr4_machdep.h>
ASSYM(SVR4_SIGF_HANDLER, offsetof(struct svr4_sigframe, sf_handler));
ASSYM(SVR4_SIGF_UC, offsetof(struct svr4_sigframe, sf_uc));
ASSYM(SVR4_UC_FS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_FS]));
ASSYM(SVR4_UC_GS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_GS]));
ASSYM(SVR4_UC_EFLAGS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_EFL]));
|
/* $FreeBSD$ */
/* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/systm.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
/* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should
* fix the include files instead... */
#define SVR4_MACHDEP_JUST_REGS
#include <i386/svr4/svr4_machdep.h>
ASSYM(SVR4_SIGF_HANDLER, offsetof(struct svr4_sigframe, sf_handler));
ASSYM(SVR4_SIGF_UC, offsetof(struct svr4_sigframe, sf_uc));
ASSYM(SVR4_UC_FS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_FS]));
ASSYM(SVR4_UC_GS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_GS]));
ASSYM(SVR4_UC_EFLAGS, offsetof(struct svr4_ucontext,
uc_mcontext.greg[SVR4_X86_EFL]));
|
Include <sys/systm.h> for the definition of offsetof() instead of depending on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>.
|
Include <sys/systm.h> for the definition of offsetof() instead of depending
on the definition being misplaced in <sys/types.h>. The definition probably
belongs in <sys/stddef.h>.
|
C
|
bsd-3-clause
|
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
|
dd78e0e41887642975af2fa9952aed4993c4565b
|
opencv_detector/src/lib/filter/background_extractor.h
|
opencv_detector/src/lib/filter/background_extractor.h
|
#pragma once
#include "types/process_filter.h"
namespace TooManyPeeps {
class BackgroundExtractor : public ProcessFilter {
private:
static const bool TRACK_SHADOWS = false;
private:
cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;
public:
BackgroundExtractor(const cv::Mat& original, cv::Mat& result, int historySize, double threshold);
~BackgroundExtractor(void);
public:
virtual void execute(void);
};
};
|
#pragma once
#include "types/process_filter.h"
namespace TooManyPeeps {
class BackgroundExtractor : public ProcessFilter {
private:
static const bool TRACK_SHADOWS = true;
private:
cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor;
public:
BackgroundExtractor(const cv::Mat& original, cv::Mat& result, int historySize, double threshold);
~BackgroundExtractor(void);
public:
virtual void execute(void);
};
};
|
Allow mog to track shadows
|
Allow mog to track shadows
|
C
|
mit
|
99-bugs/toomanypeeps,99-bugs/toomanypeeps,99-bugs/toomanypeeps
|
9f0e132783fed48c41f762e8ec33388f6feb8784
|
kjchess/kjchess.h
|
kjchess/kjchess.h
|
//
// kjchess.h
// kjchess
//
// Created by Kristopher Johnson on 3/11/17.
// Copyright © 2017 Kristopher Johnson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for kjchess.
FOUNDATION_EXPORT double kjchessVersionNumber;
//! Project version string for kjchess.
FOUNDATION_EXPORT const unsigned char kjchessVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <kjchess/PublicHeader.h>
|
//
// kjchess.h
// kjchess
//
// Copyright © 2017 Kristopher Johnson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for kjchess.
FOUNDATION_EXPORT double kjchessVersionNumber;
//! Project version string for kjchess.
FOUNDATION_EXPORT const unsigned char kjchessVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <kjchess/PublicHeader.h>
|
Remove a "Created by" comment line
|
Remove a "Created by" comment line
|
C
|
mit
|
kristopherjohnson/kjchess,kristopherjohnson/kjchess
|
3efef59ae6fc987c6b05d677b91e0f30a694ccfa
|
lib/osx_cf_util.h
|
lib/osx_cf_util.h
|
void osx_cf_run_loop_run();
|
void osx_cf_run_loop_run();
CFRunLoopRunResult osx_cf_run_loop_run_in_mode
(CFStringRef mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
|
Add run_in_mode prototype to util header
|
Add run_in_mode prototype to util header
|
C
|
isc
|
dsheets/ocaml-osx-cf
|
ac08fb9eb09123e22d33f513a7ed11e59f6df96d
|
internal.h
|
internal.h
|
/*****************************************************************************
* internal.h:
*****************************************************************************
* Copyright (C) 2010-2012 L-SMASH project
*
* Authors: Takashi Hirata <silverfilain@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
/* This file is available under an ISC license. */
#ifndef INTERNAL_H
#define INTERNAL_H
#include "common/osdep.h" /* must be placed before stdio.h */
#include <stdio.h>
#include <assert.h>
#ifndef lsmash_fseek
#define lsmash_fseek fseek
#define lsmash_ftell ftell
#endif
#include "lsmash.h"
#endif
|
/*****************************************************************************
* internal.h:
*****************************************************************************
* Copyright (C) 2010-2012 L-SMASH project
*
* Authors: Takashi Hirata <silverfilain@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
/* This file is available under an ISC license. */
#ifndef INTERNAL_H
#define INTERNAL_H
#include "common/osdep.h" /* must be placed before stdio.h */
#include <stdio.h>
#include <assert.h>
#ifndef lsmash_fseek
#define lsmash_fseek fseeko
#define lsmash_ftell ftello
#endif
#include "lsmash.h"
#endif
|
Use ftello/fseeko instead of ftell/fseek
|
Use ftello/fseeko instead of ftell/fseek
On 32-bit systems, fseek returns a long, which is 32-bits, and
fseek takes its offset argument as a long, as well. In order
to return and use 64-bit offsets, use ftello and fseeko, along
which defining _FILE_OFFSET_BITS 64, which is already in osdep.h.
|
C
|
isc
|
maki-rxrz/L-SMASH,silverfilain/L-SMASH,dwbuiten/l-smash,mstorsjo/l-smash,canbal/l-smash,canbal/l-smash,l-smash/l-smash,maki-rxrz/L-SMASH,silverfilain/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,l-smash/l-smash,dwbuiten/l-smash
|
957004881ae4afbd1234f648b8419b5a2cde6434
|
src/main.c
|
src/main.c
|
#include <stdio.h>
#include "main.h"
int main(int argc, char *argv[]) {
usage(argv[0]);
}
void usage(char *utilname) {
printf("Usage: %s <input_file> <output_file> [options]\n", utilname);
printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n");
printf("Options:\n");
//TODO: add optional arguments for each filter option
printf(" -b --blur Apply box blur\n");
printf(" -g --gaussian Apply Gaussian blur\n");
printf(" -s --sharpen Sharpen image\n");
printf(" -u --unsharpen Unsharpen image\n");
printf(" -o --outline Outline image\n");
printf(" -e --emboss Emboss image\n");
printf(" --topsobel Apply top Sobel filter\n");
printf(" --bottomsobel Apply bottom Sobel filter\n");
printf(" --rightsobel Apply right Sobel filter\n");
printf(" --leftsobel Apply left Sobel filter\n");
printf(" -c FILE --custom=FILE Apply custom filter\n");
}
|
#include <stdio.h>
#include "main.h"
int main(int argc, char *argv[])
{
usage(argv[0]);
}
void usage(char *utilname)
{
printf("Usage: %s <input_file> <output_file> [options]\n", utilname);
printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n");
printf("Options:\n");
/* TODO: add optional arguments for each filter option */
printf(" -b --blur Apply box blur\n");
printf(" -g --gaussian Apply Gaussian blur\n");
printf(" -s --sharpen Sharpen image\n");
printf(" -u --unsharpen Unsharpen image\n");
printf(" -o --outline Outline image\n");
printf(" -e --emboss Emboss image\n");
printf(" --topsobel Apply top Sobel filter\n");
printf(" --bottomsobel Apply bottom Sobel filter\n");
printf(" --rightsobel Apply right Sobel filter\n");
printf(" --leftsobel Apply left Sobel filter\n");
printf(" -c FILE --custom=FILE Apply custom filter\n");
}
|
Convert to Linux kernel style
|
Convert to Linux kernel style
|
C
|
mit
|
TheUnderscores/qfilt
|
3735e6ade1f791994f7ee203feab3dbe233c3dad
|
src/main.h
|
src/main.h
|
#ifndef MAIN_H
#define MAIN_H
#include <cstdlib>
#include <iostream>
#include <tr1/unordered_map>
#include <vector>
#include <list>
#include <set>
#include <pthread.h>
#endif
|
#ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <tr1/unordered_map>
#include <vector>
#include <list>
#include <set>
#include <pthread.h>
#endif
|
Fix compile on some systems
|
Fix compile on some systems
|
C
|
mit
|
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
|
a9b6590ced1370537edad8dc60be32c044b2380e
|
include/asm-mips/mach-generic/dma-coherence.h
|
include/asm-mips/mach-generic/dma-coherence.h
|
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org>
*
*/
#ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H
#define __ASM_MACH_GENERIC_DMA_COHERENCE_H
struct device;
static dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size)
{
return virt_to_phys(addr);
}
static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page)
{
return page_to_phys(page);
}
static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr)
{
return dma_addr;
}
static void plat_unmap_dma_mem(dma_addr_t dma_addr)
{
}
static inline int plat_device_is_coherent(struct device *dev)
{
#ifdef CONFIG_DMA_COHERENT
return 1;
#endif
#ifdef CONFIG_DMA_NONCOHERENT
return 0;
#endif
}
#endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */
|
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org>
*
*/
#ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H
#define __ASM_MACH_GENERIC_DMA_COHERENCE_H
struct device;
static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr,
size_t size)
{
return virt_to_phys(addr);
}
static inline dma_addr_t plat_map_dma_mem_page(struct device *dev,
struct page *page)
{
return page_to_phys(page);
}
static inline unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr)
{
return dma_addr;
}
static inline void plat_unmap_dma_mem(dma_addr_t dma_addr)
{
}
static inline int plat_device_is_coherent(struct device *dev)
{
#ifdef CONFIG_DMA_COHERENT
return 1;
#endif
#ifdef CONFIG_DMA_NONCOHERENT
return 0;
#endif
}
#endif /* __ASM_MACH_GENERIC_DMA_COHERENCE_H */
|
Fix a bunch of warnings due to missing inline keywords.
|
[MIPS] DMA: Fix a bunch of warnings due to missing inline keywords.
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
|
C
|
mit
|
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
|
d9e17f30737a71df4ccc6b784f237a15484803f4
|
libspell.h
|
libspell.h
|
#ifndef LIBSPELL_H
#define LIBSPELL_H
char *spell(sqlite3*, char *);
char *get_suggestions(char *);
#endif
|
#ifndef LIBSPELL_H
#define LIBSPELL_H
char *spell(char *);
char *get_suggestions(char *);
#endif
|
Remove sqlite3 * parameter from the spell function's declaration.
|
Remove sqlite3 * parameter from the spell function's declaration.
|
C
|
bsd-2-clause
|
abhinav-upadhyay/spell,abhinav-upadhyay/spell
|
003e6f400e495cbbae7ecf4aa908c37c78c7e15a
|
test/Driver/offloading-interoperability.c
|
test/Driver/offloading-interoperability.c
|
// REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE
//
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}" "-cc1" "-triple" "nvptx64-nvidia-cuda"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas" "-m64"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary" "--cuda" "-64"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}" "-cc1" "-triple" "powerpc64le--linux-gnu"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld" {{.*}}"-m" "elf64lppc"
|
// REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -no-canonical-prefixes -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE
//
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}" "-cc1" "-triple" "nvptx64-nvidia-cuda"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas" "-m64"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary" "--cuda" "-64"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}" "-cc1" "-triple" "powerpc64le--linux-gnu"
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp
// NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld" {{.*}}"-m" "elf64lppc"
|
Add missing '-no-canonical-prefixes' in test.
|
Add missing '-no-canonical-prefixes' in test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277141 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,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
|
f9b710224dadb8157a1cf76df91509db29946e0c
|
src/lib/array.h
|
src/lib/array.h
|
#pragma once
#include <cassert>
namespace Utilities {
namespace Array {
template <class T, class Size = unsigned int>
class Array {
public:
Array(T* data, Size capacity) : data_(data), capacity_(capacity) {
assert(data_);
assert(capacity_ > 0);
}
T& operator[](Size index) {
assert(index < capacity_);
return data_[index];
}
const T& operator[](Size index) const {
assert(index < capacity_);
return data_[index];
}
T& operator*() { return *data_; }
const T& operator*() const { return *data_; }
T* data() { return data_; }
const T* data() const { return data_; }
/**
* If T is primitive but not floating point, or if value is zero, the
* caller should probably use memset on the raw pointer instead
*/
void assign(Size numElements, const T& value) {
#pragma vector always assert
for (Size i = 0; i < numElements; ++i) {
data_[i] = value;
}
}
void clear() { capacity_ = 0; }
Size capacity() const { return capacity_; }
Size size() const { return capacity_; }
Size length() const { return capacity_; }
private:
T* data_;
Size capacity_;
};
}
}
|
#pragma once
#include <cassert>
#include <functional>
namespace Utilities {
namespace Array {
template <class T, class Size = unsigned int>
class Array {
public:
Array(T*&& data, Size capacity, std::function<void(T**)>&& deleteData)
: data_(std::move(data)),
capacity_(capacity),
deleteData_(std::move(deleteData)) {
assert(data_);
assert(capacity_ > 0);
}
Array(T* data, Size capacity)
: data_(data), capacity_(capacity), deleteData_([](T**) {}) {
assert(data_);
assert(capacity_ > 0);
}
virtual ~Array() { deleteData_(&data_); }
T& operator[](Size index) {
assert(index < capacity_);
return data_[index];
}
const T& operator[](Size index) const {
assert(index < capacity_);
return data_[index];
}
T& operator*() { return *data_; }
const T& operator*() const { return *data_; }
T* data() { return data_; }
const T* data() const { return data_; }
/**
* If T is primitive but not floating point, or if value is zero, the
* caller should probably use memset on the raw pointer instead
*/
void assign(Size numElements, const T& value) {
#pragma vector always assert
for (Size i = 0; i < numElements; ++i) {
data_[i] = value;
}
}
void clear() { capacity_ = 0; }
Size capacity() const { return capacity_; }
Size size() const { return capacity_; }
Size length() const { return capacity_; }
protected:
T* data_;
Size capacity_;
std::function<void(T**)> deleteData_;
};
}
}
|
Add ability for Array to take ownership of its data
|
Add ability for Array to take ownership of its data
|
C
|
mit
|
dmorrill10/cpp_utilities
|
9f5f289c8cfc25ee4faac85cb4d13ac0668723e7
|
scene/Element.h
|
scene/Element.h
|
/*
* Represents an element which can be rendered as part of a scene.
* Author: Dino Wernli
*/
#ifndef ELEMENT_H_
#define ELEMENT_H_
#include <cstddef>
class IntersectionData;
class Ray;
class Element {
public:
virtual ~Element();
bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0;
};
#endif /* ELEMENT_H_ */
|
/*
* Represents an element which can be rendered as part of a scene.
* Author: Dino Wernli
*/
#ifndef ELEMENT_H_
#define ELEMENT_H_
#include <cstddef>
class IntersectionData;
class Ray;
class Element {
public:
virtual ~Element();
virtual bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0;
};
#endif /* ELEMENT_H_ */
|
Fix build failure by adding virtual keyword.
|
Fix build failure by adding virtual keyword.
|
C
|
mit
|
dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer
|
f25dddb1b73261e7829554b764178077f1e2ccd2
|
AFNetworking/AFJSONUtilities.h
|
AFNetworking/AFJSONUtilities.h
|
// AFJSONUtilities.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
NSData * AFJSONEncode(id object, NSError **error);
id AFJSONDecode(NSData *data, NSError **error);
|
// AFJSONUtilities.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
extern NSData * AFJSONEncode(id object, NSError **error);
extern id AFJSONDecode(NSData *data, NSError **error);
|
Mark the AFJSON* functions as 'extern'.
|
Mark the AFJSON* functions as 'extern'.
|
C
|
mit
|
skillz/AFNetworking
|
5d31b2abeec8bb6247048e8371067b753ab3e8bf
|
test/Frontend/stdin-input.c
|
test/Frontend/stdin-input.c
|
// RUN: cat %s | %clang -emit-llvm -g -S \
// RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s
// CHECK: ; ModuleID = 'test/foo.c'
// CHECK: source_filename = "test/foo.c"
// CHECK: !1 = !DIFile(filename: "test/foo.c"
int main() {}
|
// RUN: cat %s | %clang -emit-llvm -g -S \
// RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s
// CHECK: ; ModuleID = 'test/foo.c'
// CHECK: source_filename = "test/foo.c"
// CHECK: !DIFile(filename: "test/foo.c"
int main() {}
|
Fix buildbot failure from r373217 (don't match metadata id exactly)
|
Fix buildbot failure from r373217 (don't match metadata id exactly)
Fix this failure by ignoring the id of the metadata being checked:
http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/3046/consoleFull#-21332887158254eaf0-7326-4999-85b0-388101f2d404
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@373237 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
|
e34bafc84fd5a61c8bb9aeba69d7b1ebf671f99b
|
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
|
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
|
// Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/include/nacl_macros.h"
class PPB_Core;
namespace ppapi_proxy {
// Implements the untrusted side of the PPB_Core interface.
// We will also need an rpc service to implement the trusted side, which is a
// very thin wrapper around the PPB_Core interface returned from the browser.
class PluginCore {
public:
// Return an interface pointer usable by PPAPI plugins.
static const PPB_Core* GetInterface();
// Mark the calling thread as the main thread for IsMainThread.
static void MarkMainThread();
private:
NACL_DISALLOW_COPY_AND_ASSIGN(PluginCore);
};
} // namespace ppapi_proxy
#endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/include/nacl_macros.h"
struct PPB_Core;
namespace ppapi_proxy {
// Implements the untrusted side of the PPB_Core interface.
// We will also need an rpc service to implement the trusted side, which is a
// very thin wrapper around the PPB_Core interface returned from the browser.
class PluginCore {
public:
// Return an interface pointer usable by PPAPI plugins.
static const PPB_Core* GetInterface();
// Mark the calling thread as the main thread for IsMainThread.
static void MarkMainThread();
private:
NACL_DISALLOW_COPY_AND_ASSIGN(PluginCore);
};
} // namespace ppapi_proxy
#endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
|
Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
|
Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
Review URL: http://codereview.chromium.org/8002017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@102565 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
adobe/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium
|
9ece315eb7a01d212072acf474b6407956c7172e
|
src/main/entity/components/ComponentManager.h
|
src/main/entity/components/ComponentManager.h
|
#ifndef COMPONENTMANAGER_H_
#define COMPONENTMANAGER_H_
#include "entity/Entity.h"
/**
* Enumeration for each of our types of components
*/
enum component_t {
Position,
Render
};
/**
* Base class for all Component Managers.
*/
class ComponentManager
{
public:
/**
* Check if the given Entity has this manager's Component.
*
* @param e The Entity to test for.
*
* @return True if the Entity has this Component.
*/
virtual bool entityHasComponent(Entity e) = 0;
/**
* Add the Component (with default values) to the Entity.
*
* @param e The Entity to add the Component to.
*/
virtual void addComponent(Entity e) = 0;
/**
* Remove the Component from the Entity.
*
* @param e The Entity to remove it from.
*/
virtual void removeComponent(Entity e) = 0;
/**
* Gets the type of component that this ComponentManager subclass
* manages.
*
* @return One of the component_t enumerations.
*/
virtual component_t getComponentType() = 0;
protected:
/**
* This class must be inherited, it cannot be instantiated directly.
*
* NB: We actually gain this from having pure virtual methods already,
* but it can't hurt to have an extra layer e.g. in case for any reason
* we start to implement default versions of the above.
*/
ComponentManager() {};
};
#endif
|
#ifndef COMPONENTMANAGER_H_
#define COMPONENTMANAGER_H_
#include "entity/Entity.h"
/**
* Enumeration for each of our types of components
*/
enum component_t {
Position,
Sprite
};
/**
* Base class for all Component Managers.
*/
class ComponentManager
{
public:
/**
* Check if the given Entity has this manager's Component.
*
* @param e The Entity to test for.
*
* @return True if the Entity has this Component.
*/
virtual bool entityHasComponent(Entity e) = 0;
/**
* Add the Component (with default values) to the Entity.
*
* @param e The Entity to add the Component to.
*/
virtual void addComponent(Entity e) = 0;
/**
* Remove the Component from the Entity.
*
* @param e The Entity to remove it from.
*/
virtual void removeComponent(Entity e) = 0;
/**
* Gets the type of component that this ComponentManager subclass
* manages.
*
* @return One of the component_t enumerations.
*/
virtual component_t getComponentType() = 0;
protected:
/**
* This class must be inherited, it cannot be instantiated directly.
*
* NB: We actually gain this from having pure virtual methods already,
* but it can't hurt to have an extra layer e.g. in case for any reason
* we start to implement default versions of the above.
*/
ComponentManager() {};
};
#endif
|
Rename Render component to Sprite
|
Rename Render component to Sprite
The old name made no sense; the new isn't *entirely* accurate, though,
although neither is it entirely inaccurate.
|
C
|
mit
|
Kromey/roglick
|
406f4f8e9f92f92803f1efba52537866c1eed873
|
pod_node.h
|
pod_node.h
|
#ifndef INCLUDE_POD_NODE_H
#define INCLUDE_POD_NODE_H
#include <stddef.h>
// A node is a place on a list. It simplifies doubly linked lists because the
// header is just another node. Everything in Pod is a node, potentially a
// part of a list or map. Header nodes should be initialized to point to
// themselves. Otherwise, initialize them to NULL.
//
// For example:
// pod_node header;
//
// header.previous = &header;
// header.next = &header;
struct pod_node;
typedef struct pod_node pod_node;
struct pod_node {
pod_node *previous;
pod_node *next;
};
extern pod_node *pod_node_remove(pod_node *node);
inline pod_node *pod_node_remove(pod_node *node)
{
pod_node *next;
next = node->next;
node->previous->next = node->next;
node->next->previous = node->previous;
node->previous = node->next = NULL;
return next;
}
#endif /*INCLUDE_POD_NODE_H */
|
#ifndef INCLUDE_POD_NODE_H
#define INCLUDE_POD_NODE_H
#include <stddef.h>
// A node is a place on a list. It simplifies doubly linked lists because the
// header is just another node. Everything in Pod is a node, potentially a
// part of a list or map. Header nodes should be initialized to point to
// themselves. Otherwise, initialize them to NULL.
//
// For example:
// pod_node header;
//
// header.previous = &header;
// header.next = &header;
struct pod_node;
typedef struct pod_node pod_node;
struct pod_node {
pod_node *previous;
pod_node *next;
};
// Other pod_node related functions
// extern pod_node *pod_node_remove(pod_node *node);
extern inline pod_node *pod_node_remove(pod_node *node)
{
pod_node *next;
next = node->next;
node->previous->next = node->next;
node->next->previous = node->previous;
node->previous = node->next = NULL;
return next;
}
#endif /*INCLUDE_POD_NODE_H */
|
Use "extern inline" in declarations (I think).
|
Use "extern inline" in declarations (I think).
|
C
|
bsd-2-clause
|
jamesabanks/Pod
|
53a441240ae0097d620e9717ee10d2205c1648e0
|
src/util/Timeout.h
|
src/util/Timeout.h
|
#pragma once
#include <functional>
#include <boost/asio.hpp>
// This class abstracts the boost::asio timer in order to provide a generic
// facility for timeouts. Once constructed, this class will wait a certain
// amount of time and then call the function. The timeout must be canceled
// with cancel() before you invalidate your callback.
//
// You must start the timeout with start().
//
// NOTE: The thread that calls the function is undefined. Ensure that your
// callback is thread-safe.
class Timeout : public std::enable_shared_from_this<Timeout>
{
public:
Timeout(unsigned long ms, std::function<void()> f);
~Timeout();
inline void start() { reset(); }
void reset();
// cancel() attempts to invalidate the callback and ensure that it will not
// run. On success, returns true, guaranteeing that the callback has/will
// not be triggered. On failure, returns false, indicating either that the
// callback was already canceled, the callback has already finished
// running, or the callback is (about to be) called.
bool cancel();
private:
boost::asio::deadline_timer m_timer;
std::function<void()> m_callback;
long m_timeout_interval;
std::atomic<bool> m_callback_disabled;
void timer_callback(const boost::system::error_code &ec);
};
|
#pragma once
#include <functional>
#include <atomic>
#include <memory>
#include <boost/asio.hpp>
// This class abstracts the boost::asio timer in order to provide a generic
// facility for timeouts. Once constructed, this class will wait a certain
// amount of time and then call the function. The timeout must be canceled
// with cancel() before you invalidate your callback.
//
// You must start the timeout with start().
//
// NOTE: The thread that calls the function is undefined. Ensure that your
// callback is thread-safe.
class Timeout : public std::enable_shared_from_this<Timeout>
{
public:
Timeout(unsigned long ms, std::function<void()> f);
~Timeout();
inline void start() { reset(); }
void reset();
// cancel() attempts to invalidate the callback and ensure that it will not
// run. On success, returns true, guaranteeing that the callback has/will
// not be triggered. On failure, returns false, indicating either that the
// callback was already canceled, the callback has already finished
// running, or the callback is (about to be) called.
bool cancel();
private:
boost::asio::deadline_timer m_timer;
std::function<void()> m_callback;
long m_timeout_interval;
std::atomic<bool> m_callback_disabled;
void timer_callback(const boost::system::error_code &ec);
};
|
Add missing includes to fix Clang build.
|
util: Add missing includes to fix Clang build.
|
C
|
bsd-3-clause
|
blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron
|
78256b80780fb1a55effc03622e278df09bdb2b9
|
src/policy/rbf.h
|
src/policy/rbf.h
|
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
enum class RBFTransactionState {
UNKNOWN,
REPLACEABLE_BIP125,
FINAL
};
// Determine whether an in-mempool transaction is signaling opt-in to RBF
// according to BIP 125
// This involves checking sequence numbers of the transaction, as well
// as the sequence numbers of all in-mempool ancestors.
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
// SYSCOIN
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool, CTxMemPool::setEntries &setAncestors) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);
#endif // SYSCOIN_POLICY_RBF_H
|
// Copyright (c) 2016-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SYSCOIN_POLICY_RBF_H
#define SYSCOIN_POLICY_RBF_H
#include <txmempool.h>
/** The rbf state of unconfirmed transactions */
enum class RBFTransactionState {
/** Unconfirmed tx that does not signal rbf and is not in the mempool */
UNKNOWN,
/** Either this tx or a mempool ancestor signals rbf */
REPLACEABLE_BIP125,
/** Neither this tx nor a mempool ancestor signals rbf */
FINAL,
};
/**
* Determine whether an unconfirmed transaction is signaling opt-in to RBF
* according to BIP 125
* This involves checking sequence numbers of the transaction, as well
* as the sequence numbers of all in-mempool ancestors.
*
* @param tx The unconfirmed transaction
* @param pool The mempool, which may contain the tx
*
* @return The rbf state
*/
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
// SYSCOIN
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool, CTxMemPool::setEntries &setAncestors) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);
#endif // SYSCOIN_POLICY_RBF_H
|
Add doxygen comment to IsRBFOptIn
|
doc: Add doxygen comment to IsRBFOptIn
Former-commit-id: 9d51bef94ec279947bd1d28bbbc917d476da2f6e
|
C
|
mit
|
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin
|
f4bccc820b62e91af8f9bee26516c28e10476810
|
Source/Blu/Public/BluManager.h
|
Source/Blu/Public/BluManager.h
|
#pragma once
#if PLATFORM_WINDOWS
#include "AllowWindowsPlatformTypes.h"
#endif
#include "include/cef_client.h"
#include "include/cef_app.h"
#if PLATFORM_WINDOWS
#include "HideWindowsPlatformTypes.h"
#endif
class BLU_API BluManager : public CefApp
{
public:
BluManager();
static void doBluMessageLoop();
static CefSettings settings;
static CefMainArgs main_args;
virtual void OnBeforeCommandLineProcessing(const CefString& process_type,
CefRefPtr< CefCommandLine > command_line) override;
IMPLEMENT_REFCOUNTING(BluManager)
};
|
#pragma once
#if PLATFORM_WINDOWS
#include "AllowWindowsPlatformTypes.h"
#endif
#include "include/cef_client.h"
#include "include/cef_app.h"
#if PLATFORM_WINDOWS
#include "HideWindowsPlatformTypes.h"
#endif
class BLU_API BluManager : public CefApp
{
public:
BluManager();
static void doBluMessageLoop();
static CefSettings settings;
static CefMainArgs main_args;
static bool CPURenderSettings;
virtual void OnBeforeCommandLineProcessing(const CefString& process_type,
CefRefPtr< CefCommandLine > command_line) override;
IMPLEMENT_REFCOUNTING(BluManager)
};
|
Allow user to pick render settings
|
Allow user to pick render settings
|
C
|
mit
|
AaronShea/BLUI,AaronShea/BLUI,AaronShea/BLUI,bemon/BLUI,jgagner92/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,csfinch/BLUI,marcthenarc/BLUI,marcthenarc/BLUI,csfinch/BLUI,csfinch/BLUI,brandonwamboldt/BLUI,bemon/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,marcthenarc/BLUI,bemon/BLUI
|
3b45e689708533c3f3ac61b831b8d8a238161ca2
|
include/core/SkMilestone.h
|
include/core/SkMilestone.h
|
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 74
#endif
|
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 75
#endif
|
Update Skia milestone to 75
|
Update Skia milestone to 75
Bug: skia:
Change-Id: I5f682b3685eb68f36e36bf3581d068069af67ba4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198604
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Auto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
|
C
|
bsd-3-clause
|
rubenvb/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,rubenvb/skia,google/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,google/skia,rubenvb/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia
|
16c5392030f8f27d6b41395ccb45194cfbca79ed
|
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
|
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
|
#include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_join(id, NULL);
return 0;
}
|
#include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
// This must be before the other to get Mine to fail for the other even with thread ID partitioning.
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_join(id, NULL);
return 0;
}
|
Fix 13/32 to fail Mine even with thread ID partitioning
|
Fix 13/32 to fail Mine even with thread ID partitioning
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
b1fc4c2cd37d6ea015a016aa80514de1355b4664
|
win32/PlatWin.h
|
win32/PlatWin.h
|
// Scintilla source code edit control
/** @file PlatWin.h
** Implementation of platform facilities on Windows.
**/
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
extern bool IsNT();
extern void Platform_Initialise(void *hInstance);
extern void Platform_Finalise();
#if defined(_MSC_VER)
extern bool LoadD2D();
extern ID2D1Factory *pD2DFactory;
extern IDWriteFactory *pIDWriteFactory;
#endif
|
// Scintilla source code edit control
/** @file PlatWin.h
** Implementation of platform facilities on Windows.
**/
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
extern bool IsNT();
extern void Platform_Initialise(void *hInstance);
extern void Platform_Finalise();
#if defined(USE_D2D)
extern bool LoadD2D();
extern ID2D1Factory *pD2DFactory;
extern IDWriteFactory *pIDWriteFactory;
#endif
|
Allow choice of D2D on compiler command line.
|
Allow choice of D2D on compiler command line.
|
C
|
isc
|
R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone
|
cd6663b9bab8f725d1138946f1690e63ca440238
|
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
|
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
|
//===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#define LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#include "llvm/Pass.h"
struct UnifyMethodExitNodes : public MethodPass {
BasicBlock *ExitNode;
public:
static AnalysisID ID; // Pass ID
UnifyMethodExitNodes(AnalysisID id) : ExitNode(0) { assert(ID == id); }
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
// BasicBlock, and converting all returns to unconditional branches to this
// new basic block. The singular exit node is returned in ExitNode.
//
// If there are no return stmts in the Method, a null pointer is returned.
//
static bool doit(Method *M, BasicBlock *&ExitNode);
virtual bool runOnMethod(Method *M) {
return doit(M, ExitNode);
}
BasicBlock *getExitNode() const { return ExitNode; }
virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
// FIXME: Should invalidate CFG
Provided.push_back(ID); // Provide self!
}
};
#endif
|
//===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#define LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#include "llvm/Pass.h"
struct UnifyMethodExitNodes : public MethodPass {
BasicBlock *ExitNode;
public:
static AnalysisID ID; // Pass ID
UnifyMethodExitNodes(AnalysisID id = ID) : ExitNode(0) { assert(ID == id); }
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
// BasicBlock, and converting all returns to unconditional branches to this
// new basic block. The singular exit node is returned in ExitNode.
//
// If there are no return stmts in the Method, a null pointer is returned.
//
static bool doit(Method *M, BasicBlock *&ExitNode);
virtual bool runOnMethod(Method *M) {
return doit(M, ExitNode);
}
BasicBlock *getExitNode() const { return ExitNode; }
virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
// FIXME: Should invalidate CFG
Provided.push_back(ID); // Provide self!
}
};
#endif
|
Add constructor for addition to opt program
|
Add constructor for addition to opt program
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1626 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
bsd-2-clause
|
dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm
|
5564e6c45401c37adb9444b6bf0ef8ce70b1fce8
|
test/Misc/dev-fd-fs.c
|
test/Misc/dev-fd-fs.c
|
// Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s
// DEV-FD-INPUT: int x;
int x;
|
// Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s
//
// DEV-FD-INPUT: int x;
// Check writing to /dev/fd named pipes. We use cat here as before to ensure we
// get a named pipe.
//
// RUN: %clang -x c %s -E -o /dev/fd/1 | cat > %t
// RUN: FileCheck --check-prefix DEV-FD-FIFO-OUTPUT < %t %s
//
// DEV-FD-FIFO-OUTPUT: int x;
// Check writing to /dev/fd regular files.
//
// RUN: %clang -x c %s -E -o /dev/fd/1 > %t
// RUN: FileCheck --check-prefix DEV-FD-REG-OUTPUT < %t %s
//
// DEV-FD-REG-OUTPUT: int x;
int x;
|
Check that we can output to /dev/fd filesystem.
|
tests: Check that we can output to /dev/fd filesystem.
- An LLVM unique_file() bug could cause us to infinite loop on the later test
case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@168082 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang
|
478712e78ca63c1816adfdfc25ff323ab30df49d
|
src/quick_sort.h
|
src/quick_sort.h
|
// -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (first < last) {
while (first != last && cmp(*first, pivot))
++first;
while (first != last && cmp(pivot, *last))
--last;
if (first != last)
std::swap(*first, *last);
}
return first;
}
template<typename I, typename T = typename std::iterator_traits<I>::value_type, typename C = std::less<T>> void quick_sort(I first, I last, C cmp = C())
{
if (last - first > 1) {
I i = quicksort_partition<I, T, C>(first, last, cmp);
quick_sort(first, i, cmp);
quick_sort(i, last, cmp);
}
}
#endif
|
// -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (first < last) {
while (first != last && cmp(*first, pivot))
++first;
while (first != last && cmp(pivot, *last))
--last;
if (first != last)
std::swap(*first, *last);
}
return first;
}
template<typename I, typename T = typename std::iterator_traits<I>::value_type, typename C = std::less<T>> void quick_sort(I first, I last, C cmp = C())
{
if (last - first > 1) {
I i = quicksort_partition<I, T, C>(first, last, cmp);
quick_sort(first, i, cmp);
quick_sort(i + 1, last, cmp);
}
}
#endif
|
Fix sort of second half
|
Fix sort of second half
|
C
|
mit
|
olafdietsche/algorithms
|
1f8ab6a78828996947893bef790d5fb7d24d8197
|
src/bin/test_panel.c
|
src/bin/test_panel.c
|
#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
panel = elm_panel_add(win);
elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(panel);
evas_object_resize(win, 300, 300);
evas_object_show(win);
}
#endif
|
#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
Evas_Object *list;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
panel = elm_panel_add(win);
elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(panel);
list = elm_genlist_add(win);
evas_object_resize(list, 100, 100);
evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(list);
elm_panel_content_set(panel, list);
evas_object_resize(win, 300, 300);
evas_object_show(win);
}
#endif
|
Add a genlist to the panel test.
|
Add a genlist to the panel test.
SVN revision: 43175
|
C
|
lgpl-2.1
|
FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary
|
abbeadabe96f0d17430bff01e9d01643fa54ca82
|
Classes/GTDiff.h
|
Classes/GTDiff.h
|
//
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
@interface GTDiff : NSObject
@property (nonatomic, readonly, assign) git_diff_list *git_diff_list;
+ (GTDiff *)diffOldTree:(GTTree *)oldTree withNewTree:(GTTree *)newTree options:(NSUInteger)options;
+ (GTDiff *)diffIndexToOldTree:(GTTree *)oldTree withOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToIndexWithOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToTree:(GTTree *)tree withOptions:(NSUInteger)options;
@end
|
//
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
typedef enum : git_delta_t {
GTDiffFileDeltaUnmodified = GIT_DELTA_UNMODIFIED,
GTDiffFileDeltaAdded = GIT_DELTA_ADDED,
GTDiffFileDeltaDeleted = GIT_DELTA_DELETED,
GTDiffFileDeltaModified = GIT_DELTA_MODIFIED,
GTDiffFileDeltaRenamed = GIT_DELTA_RENAMED,
GTDiffFileDeltaCopied = GIT_DELTA_COPIED,
GTDiffFileDeltaIgnored = GIT_DELTA_IGNORED,
GTDiffFileDeltaUntracked = GIT_DELTA_UNTRACKED,
GTDiffFileDeltaTypeChange = GIT_DELTA_TYPECHANGE,
} GTDiffFileDelta;
@interface GTDiff : NSObject
@property (nonatomic, readonly, assign) git_diff_list *git_diff_list;
+ (GTDiff *)diffOldTree:(GTTree *)oldTree withNewTree:(GTTree *)newTree options:(NSUInteger)options;
+ (GTDiff *)diffIndexToOldTree:(GTTree *)oldTree withOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToIndexWithOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToTree:(GTTree *)tree withOptions:(NSUInteger)options;
@end
|
Declare an enum for git_delta_t
|
Declare an enum for git_delta_t
|
C
|
mit
|
phatblat/objective-git,c9s/objective-git,Acidburn0zzz/objective-git,dleehr/objective-git,tiennou/objective-git,libgit2/objective-git,misterfifths/objective-git,alehed/objective-git,blackpixel/objective-git,misterfifths/objective-git,c9s/objective-git,0x4a616e/objective-git,alehed/objective-git,TOMalley104/objective-git,blackpixel/objective-git,tiennou/objective-git,Acidburn0zzz/objective-git,Acidburn0zzz/objective-git,TOMalley104/objective-git,slavikus/objective-git,pietbrauer/objective-git,libgit2/objective-git,c9s/objective-git,phatblat/objective-git,tiennou/objective-git,javiertoledo/objective-git,royalwang/objective-git,0x4a616e/objective-git,Acidburn0zzz/objective-git,alehed/objective-git,slavikus/objective-git,nerdishbynature/objective-git,misterfifths/objective-git,pietbrauer/objective-git,blackpixel/objective-git,dleehr/objective-git,nerdishbynature/objective-git,dleehr/objective-git,TOMalley104/objective-git,pietbrauer/objective-git,javiertoledo/objective-git,dleehr/objective-git,misterfifths/objective-git,javiertoledo/objective-git,TOMalley104/objective-git,javiertoledo/objective-git,libgit2/objective-git,blackpixel/objective-git,phatblat/objective-git,c9s/objective-git,libgit2/objective-git,pietbrauer/objective-git,slavikus/objective-git,nerdishbynature/objective-git,0x4a616e/objective-git
|
162924dad528b4b475150405038f507876e1634d
|
composite.c
|
composite.c
|
#include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
}
return canvas;
}
|
#include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
ex->severity = DrawError;
return NULL;
}
return canvas;
}
|
Return an error if CompositeImage fails
|
Return an error if CompositeImage fails
|
C
|
mit
|
etix/magick,rainycape/magick,zuriu/magick,zuriu/magick,500px/magick,500px/magick,rainycape/magick,zuriu/magick,500px/magick,etix/magick,etix/magick,rainycape/magick
|
57113e9209a110d6ee9743b01f396f14016b13f6
|
include/nbind/nbind.h
|
include/nbind/nbind.h
|
// This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MULTIFUNCTION
#define method(...) NBIND_METHOD(__VA_ARGS__)
#define inherit(...) NBIND_INHERIT(__VA_ARGS__)
#define args NBIND_ARGS
#define multimethod NBIND_MULTIMETHOD
#define construct NBIND_CONSTRUCT
#define field(...) NBIND_FIELD(__VA_ARGS__)
#define getter NBIND_GETTER
#define getset NBIND_GETSET
|
// This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MULTIFUNCTION
#define method(...) NBIND_EXPAND(NBIND_METHOD(__VA_ARGS__))
#define inherit(...) NBIND_INHERIT(__VA_ARGS__)
#define args NBIND_ARGS
#define multimethod NBIND_MULTIMETHOD
#define construct NBIND_CONSTRUCT
#define field(...) NBIND_FIELD(__VA_ARGS__)
#define getter NBIND_GETTER
#define getset NBIND_GETSET
|
Fix build issue on Windows.
|
Fix build issue on Windows.
|
C
|
mit
|
charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind
|
b10f05e91dc5bd22105a4159e0ecf4f41f2d27f2
|
vsprojects/dummy.c
|
vsprojects/dummy.c
|
/*
*
* Copyright 2015, Google Inc.
* 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
|
/*
*
* Copyright 2015, Google Inc.
* 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.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
|
Fix newline at end of file
|
Fix newline at end of file
|
C
|
apache-2.0
|
malexzx/grpc,jtattermusch/grpc,kpayson64/grpc,grani/grpc,goldenbull/grpc,nicolasnoble/grpc,msiedlarek/grpc,ppietrasa/grpc,ipylypiv/grpc,goldenbull/grpc,donnadionne/grpc,Crevil/grpc,ppietrasa/grpc,ctiller/grpc,nicolasnoble/grpc,makdharma/grpc,greasypizza/grpc,ctiller/grpc,philcleveland/grpc,soltanmm/grpc,podsvirov/grpc,carl-mastrangelo/grpc,thunderboltsid/grpc,jboeuf/grpc,yang-g/grpc,ejona86/grpc,ncteisen/grpc,jboeuf/grpc,Vizerai/grpc,simonkuang/grpc,mehrdada/grpc,matt-kwong/grpc,a-veitch/grpc,makdharma/grpc,arkmaxim/grpc,wcevans/grpc,geffzhang/grpc,arkmaxim/grpc,VcamX/grpc,podsvirov/grpc,thinkerou/grpc,LuminateWireless/grpc,arkmaxim/grpc,simonkuang/grpc,jcanizales/grpc,7anner/grpc,muxi/grpc,sreecha/grpc,dklempner/grpc,ananthonline/grpc,kumaralokgithub/grpc,zhimingxie/grpc,VcamX/grpc,Vizerai/grpc,yugui/grpc,leifurhauks/grpc,dklempner/grpc,fuchsia-mirror/third_party-grpc,fuchsia-mirror/third_party-grpc,MakMukhi/grpc,vjpai/grpc,grpc/grpc,stanley-cheung/grpc,soltanmm-google/grpc,mehrdada/grpc,malexzx/grpc,grpc/grpc,matt-kwong/grpc,matt-kwong/grpc,hstefan/grpc,chrisdunelm/grpc,goldenbull/grpc,stanley-cheung/grpc,vjpai/grpc,msmania/grpc,sreecha/grpc,murgatroid99/grpc,baylabs/grpc,murgatroid99/grpc,pmarks-net/grpc,LuminateWireless/grpc,apolcyn/grpc,bogdandrutu/grpc,greasypizza/grpc,grani/grpc,vsco/grpc,yang-g/grpc,yugui/grpc,PeterFaiman/ruby-grpc-minimal,kskalski/grpc,leifurhauks/grpc,infinit/grpc,LuminateWireless/grpc,leifurhauks/grpc,tamihiro/grpc,murgatroid99/grpc,quizlet/grpc,carl-mastrangelo/grpc,murgatroid99/grpc,fuchsia-mirror/third_party-grpc,yongni/grpc,PeterFaiman/ruby-grpc-minimal,zhimingxie/grpc,yang-g/grpc,firebase/grpc,soltanmm/grpc,kriswuollett/grpc,kpayson64/grpc,carl-mastrangelo/grpc,deepaklukose/grpc,nicolasnoble/grpc,matt-kwong/grpc,VcamX/grpc,donnadionne/grpc,ppietrasa/grpc,kumaralokgithub/grpc,malexzx/grpc,daniel-j-born/grpc,royalharsh/grpc,philcleveland/grpc,mehrdada/grpc,grani/grpc,rjshade/grpc,wcevans/grpc,kumaralokgithub/grpc,yongni/grpc,donnadionne/grpc,jtattermusch/grpc,miselin/grpc,VcamX/grpc,soltanmm/grpc,donnadionne/grpc,soltanmm-google/grpc,ncteisen/grpc,firebase/grpc,leifurhauks/grpc,vjpai/grpc,y-zeng/grpc,soltanmm-google/grpc,PeterFaiman/ruby-grpc-minimal,stanley-cheung/grpc,a11r/grpc,miselin/grpc,apolcyn/grpc,msmania/grpc,a-veitch/grpc,miselin/grpc,yongni/grpc,ncteisen/grpc,mehrdada/grpc,nicolasnoble/grpc,kpayson64/grpc,donnadionne/grpc,bogdandrutu/grpc,thunderboltsid/grpc,jboeuf/grpc,bogdandrutu/grpc,kskalski/grpc,miselin/grpc,arkmaxim/grpc,ananthonline/grpc,soltanmm-google/grpc,ejona86/grpc,fuchsia-mirror/third_party-grpc,stanley-cheung/grpc,kriswuollett/grpc,kpayson64/grpc,podsvirov/grpc,rjshade/grpc,simonkuang/grpc,soltanmm/grpc,yugui/grpc,dgquintas/grpc,ncteisen/grpc,deepaklukose/grpc,murgatroid99/grpc,sreecha/grpc,thunderboltsid/grpc,a11r/grpc,kskalski/grpc,MakMukhi/grpc,dgquintas/grpc,ipylypiv/grpc,kriswuollett/grpc,baylabs/grpc,donnadionne/grpc,grpc/grpc,hstefan/grpc,a11r/grpc,tamihiro/grpc,MakMukhi/grpc,ejona86/grpc,jboeuf/grpc,msiedlarek/grpc,kpayson64/grpc,ejona86/grpc,stanley-cheung/grpc,mehrdada/grpc,geffzhang/grpc,Vizerai/grpc,Vizerai/grpc,bogdandrutu/grpc,MakMukhi/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,muxi/grpc,jboeuf/grpc,jtattermusch/grpc,Crevil/grpc,kpayson64/grpc,dgquintas/grpc,jcanizales/grpc,pmarks-net/grpc,rjshade/grpc,ipylypiv/grpc,podsvirov/grpc,PeterFaiman/ruby-grpc-minimal,jcanizales/grpc,yang-g/grpc,greasypizza/grpc,jtattermusch/grpc,ananthonline/grpc,ncteisen/grpc,perumaalgoog/grpc,tamihiro/grpc,andrewpollock/grpc,rjshade/grpc,jcanizales/grpc,miselin/grpc,malexzx/grpc,ncteisen/grpc,jtattermusch/grpc,zhimingxie/grpc,ananthonline/grpc,geffzhang/grpc,chrisdunelm/grpc,ejona86/grpc,yugui/grpc,makdharma/grpc,vsco/grpc,muxi/grpc,grpc/grpc,grpc/grpc,hstefan/grpc,ncteisen/grpc,jboeuf/grpc,apolcyn/grpc,a11r/grpc,Crevil/grpc,Crevil/grpc,ipylypiv/grpc,apolcyn/grpc,jcanizales/grpc,andrewpollock/grpc,jcanizales/grpc,dklempner/grpc,tengyifei/grpc,yongni/grpc,bogdandrutu/grpc,carl-mastrangelo/grpc,perumaalgoog/grpc,carl-mastrangelo/grpc,soltanmm/grpc,greasypizza/grpc,tamihiro/grpc,yang-g/grpc,dklempner/grpc,greasypizza/grpc,Vizerai/grpc,matt-kwong/grpc,yongni/grpc,adelez/grpc,ppietrasa/grpc,msiedlarek/grpc,msmania/grpc,wcevans/grpc,philcleveland/grpc,arkmaxim/grpc,deepaklukose/grpc,perumaalgoog/grpc,thinkerou/grpc,wcevans/grpc,vsco/grpc,grani/grpc,kskalski/grpc,stanley-cheung/grpc,deepaklukose/grpc,makdharma/grpc,infinit/grpc,quizlet/grpc,zhimingxie/grpc,royalharsh/grpc,quizlet/grpc,jtattermusch/grpc,muxi/grpc,simonkuang/grpc,chrisdunelm/grpc,andrewpollock/grpc,pmarks-net/grpc,thunderboltsid/grpc,podsvirov/grpc,chrisdunelm/grpc,baylabs/grpc,hstefan/grpc,yang-g/grpc,infinit/grpc,royalharsh/grpc,dgquintas/grpc,PeterFaiman/ruby-grpc-minimal,andrewpollock/grpc,yang-g/grpc,nicolasnoble/grpc,murgatroid99/grpc,yang-g/grpc,y-zeng/grpc,y-zeng/grpc,msiedlarek/grpc,apolcyn/grpc,nicolasnoble/grpc,sreecha/grpc,chrisdunelm/grpc,jtattermusch/grpc,firebase/grpc,goldenbull/grpc,msmania/grpc,Vizerai/grpc,a11r/grpc,baylabs/grpc,a-veitch/grpc,dklempner/grpc,vjpai/grpc,tamihiro/grpc,jboeuf/grpc,tamihiro/grpc,mehrdada/grpc,pmarks-net/grpc,daniel-j-born/grpc,kumaralokgithub/grpc,grpc/grpc,donnadionne/grpc,jboeuf/grpc,rjshade/grpc,infinit/grpc,carl-mastrangelo/grpc,yongni/grpc,7anner/grpc,vsco/grpc,perumaalgoog/grpc,mehrdada/grpc,thunderboltsid/grpc,muxi/grpc,vsco/grpc,tengyifei/grpc,daniel-j-born/grpc,infinit/grpc,a-veitch/grpc,murgatroid99/grpc,Vizerai/grpc,sreecha/grpc,baylabs/grpc,stanley-cheung/grpc,makdharma/grpc,ctiller/grpc,ppietrasa/grpc,stanley-cheung/grpc,tengyifei/grpc,ejona86/grpc,daniel-j-born/grpc,deepaklukose/grpc,philcleveland/grpc,fuchsia-mirror/third_party-grpc,PeterFaiman/ruby-grpc-minimal,adelez/grpc,firebase/grpc,grani/grpc,y-zeng/grpc,kriswuollett/grpc,quizlet/grpc,daniel-j-born/grpc,Vizerai/grpc,thinkerou/grpc,thunderboltsid/grpc,ipylypiv/grpc,kriswuollett/grpc,thinkerou/grpc,tengyifei/grpc,firebase/grpc,thunderboltsid/grpc,zhimingxie/grpc,malexzx/grpc,simonkuang/grpc,jcanizales/grpc,jtattermusch/grpc,rjshade/grpc,muxi/grpc,mehrdada/grpc,quizlet/grpc,ejona86/grpc,wcevans/grpc,PeterFaiman/ruby-grpc-minimal,royalharsh/grpc,apolcyn/grpc,VcamX/grpc,simonkuang/grpc,msmania/grpc,kriswuollett/grpc,rjshade/grpc,hstefan/grpc,baylabs/grpc,a-veitch/grpc,MakMukhi/grpc,soltanmm-google/grpc,pszemus/grpc,yugui/grpc,dklempner/grpc,soltanmm/grpc,simonkuang/grpc,kriswuollett/grpc,andrewpollock/grpc,ananthonline/grpc,Crevil/grpc,LuminateWireless/grpc,vjpai/grpc,ncteisen/grpc,pmarks-net/grpc,andrewpollock/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,makdharma/grpc,greasypizza/grpc,greasypizza/grpc,zhimingxie/grpc,geffzhang/grpc,murgatroid99/grpc,kpayson64/grpc,vjpai/grpc,wcevans/grpc,yugui/grpc,7anner/grpc,dklempner/grpc,vjpai/grpc,grpc/grpc,grpc/grpc,malexzx/grpc,kpayson64/grpc,tamihiro/grpc,infinit/grpc,hstefan/grpc,grpc/grpc,zhimingxie/grpc,ppietrasa/grpc,stanley-cheung/grpc,zhimingxie/grpc,dgquintas/grpc,a-veitch/grpc,carl-mastrangelo/grpc,kumaralokgithub/grpc,baylabs/grpc,perumaalgoog/grpc,grpc/grpc,jcanizales/grpc,geffzhang/grpc,firebase/grpc,sreecha/grpc,VcamX/grpc,podsvirov/grpc,pszemus/grpc,simonkuang/grpc,ejona86/grpc,thinkerou/grpc,miselin/grpc,greasypizza/grpc,adelez/grpc,quizlet/grpc,pmarks-net/grpc,matt-kwong/grpc,jboeuf/grpc,infinit/grpc,yugui/grpc,y-zeng/grpc,sreecha/grpc,firebase/grpc,yugui/grpc,philcleveland/grpc,adelez/grpc,7anner/grpc,kumaralokgithub/grpc,daniel-j-born/grpc,msiedlarek/grpc,royalharsh/grpc,murgatroid99/grpc,jboeuf/grpc,a-veitch/grpc,podsvirov/grpc,fuchsia-mirror/third_party-grpc,philcleveland/grpc,LuminateWireless/grpc,firebase/grpc,dklempner/grpc,yongni/grpc,sreecha/grpc,y-zeng/grpc,simonkuang/grpc,donnadionne/grpc,arkmaxim/grpc,jboeuf/grpc,pszemus/grpc,adelez/grpc,grani/grpc,ctiller/grpc,PeterFaiman/ruby-grpc-minimal,yugui/grpc,7anner/grpc,msiedlarek/grpc,nicolasnoble/grpc,royalharsh/grpc,Crevil/grpc,a11r/grpc,stanley-cheung/grpc,carl-mastrangelo/grpc,quizlet/grpc,ejona86/grpc,thinkerou/grpc,geffzhang/grpc,deepaklukose/grpc,ananthonline/grpc,VcamX/grpc,sreecha/grpc,dgquintas/grpc,makdharma/grpc,thinkerou/grpc,vjpai/grpc,vjpai/grpc,ncteisen/grpc,jboeuf/grpc,apolcyn/grpc,LuminateWireless/grpc,a-veitch/grpc,malexzx/grpc,matt-kwong/grpc,leifurhauks/grpc,kumaralokgithub/grpc,malexzx/grpc,geffzhang/grpc,kpayson64/grpc,vjpai/grpc,ppietrasa/grpc,quizlet/grpc,msmania/grpc,makdharma/grpc,geffzhang/grpc,fuchsia-mirror/third_party-grpc,perumaalgoog/grpc,pszemus/grpc,kumaralokgithub/grpc,grani/grpc,muxi/grpc,dgquintas/grpc,murgatroid99/grpc,kskalski/grpc,soltanmm-google/grpc,quizlet/grpc,LuminateWireless/grpc,y-zeng/grpc,carl-mastrangelo/grpc,hstefan/grpc,grani/grpc,tamihiro/grpc,kpayson64/grpc,sreecha/grpc,philcleveland/grpc,soltanmm/grpc,andrewpollock/grpc,donnadionne/grpc,mehrdada/grpc,pszemus/grpc,ppietrasa/grpc,grani/grpc,bogdandrutu/grpc,VcamX/grpc,chrisdunelm/grpc,msmania/grpc,malexzx/grpc,soltanmm-google/grpc,a11r/grpc,thunderboltsid/grpc,ncteisen/grpc,muxi/grpc,tengyifei/grpc,a-veitch/grpc,soltanmm/grpc,stanley-cheung/grpc,kskalski/grpc,wcevans/grpc,kriswuollett/grpc,MakMukhi/grpc,a11r/grpc,a11r/grpc,ejona86/grpc,muxi/grpc,geffzhang/grpc,7anner/grpc,tengyifei/grpc,7anner/grpc,Vizerai/grpc,ctiller/grpc,carl-mastrangelo/grpc,Vizerai/grpc,fuchsia-mirror/third_party-grpc,chrisdunelm/grpc,donnadionne/grpc,kpayson64/grpc,MakMukhi/grpc,adelez/grpc,firebase/grpc,royalharsh/grpc,Crevil/grpc,baylabs/grpc,nicolasnoble/grpc,chrisdunelm/grpc,leifurhauks/grpc,thinkerou/grpc,deepaklukose/grpc,daniel-j-born/grpc,perumaalgoog/grpc,bogdandrutu/grpc,msiedlarek/grpc,dgquintas/grpc,podsvirov/grpc,leifurhauks/grpc,wcevans/grpc,hstefan/grpc,pszemus/grpc,zhimingxie/grpc,pszemus/grpc,pmarks-net/grpc,kskalski/grpc,ejona86/grpc,goldenbull/grpc,ananthonline/grpc,ctiller/grpc,dgquintas/grpc,nicolasnoble/grpc,royalharsh/grpc,goldenbull/grpc,PeterFaiman/ruby-grpc-minimal,pszemus/grpc,ananthonline/grpc,7anner/grpc,msiedlarek/grpc,Vizerai/grpc,VcamX/grpc,grpc/grpc,nicolasnoble/grpc,bogdandrutu/grpc,stanley-cheung/grpc,carl-mastrangelo/grpc,miselin/grpc,muxi/grpc,ctiller/grpc,daniel-j-born/grpc,ncteisen/grpc,goldenbull/grpc,msmania/grpc,daniel-j-born/grpc,jtattermusch/grpc,firebase/grpc,thunderboltsid/grpc,goldenbull/grpc,pszemus/grpc,infinit/grpc,andrewpollock/grpc,pszemus/grpc,arkmaxim/grpc,philcleveland/grpc,ipylypiv/grpc,thinkerou/grpc,ctiller/grpc,matt-kwong/grpc,ctiller/grpc,nicolasnoble/grpc,PeterFaiman/ruby-grpc-minimal,y-zeng/grpc,MakMukhi/grpc,apolcyn/grpc,dgquintas/grpc,rjshade/grpc,vjpai/grpc,y-zeng/grpc,vsco/grpc,baylabs/grpc,muxi/grpc,carl-mastrangelo/grpc,grpc/grpc,miselin/grpc,mehrdada/grpc,royalharsh/grpc,msmania/grpc,dklempner/grpc,MakMukhi/grpc,soltanmm-google/grpc,kriswuollett/grpc,ananthonline/grpc,adelez/grpc,mehrdada/grpc,ipylypiv/grpc,yongni/grpc,Crevil/grpc,kskalski/grpc,sreecha/grpc,bogdandrutu/grpc,ipylypiv/grpc,podsvirov/grpc,adelez/grpc,philcleveland/grpc,ejona86/grpc,pszemus/grpc,vsco/grpc,thinkerou/grpc,soltanmm/grpc,tengyifei/grpc,makdharma/grpc,infinit/grpc,deepaklukose/grpc,jtattermusch/grpc,msiedlarek/grpc,chrisdunelm/grpc,jcanizales/grpc,perumaalgoog/grpc,rjshade/grpc,ncteisen/grpc,firebase/grpc,pszemus/grpc,leifurhauks/grpc,miselin/grpc,sreecha/grpc,ipylypiv/grpc,thinkerou/grpc,soltanmm-google/grpc,donnadionne/grpc,arkmaxim/grpc,goldenbull/grpc,greasypizza/grpc,dgquintas/grpc,chrisdunelm/grpc,firebase/grpc,apolcyn/grpc,pmarks-net/grpc,yang-g/grpc,perumaalgoog/grpc,chrisdunelm/grpc,matt-kwong/grpc,deepaklukose/grpc,jtattermusch/grpc,hstefan/grpc,nicolasnoble/grpc,thinkerou/grpc,vjpai/grpc,pmarks-net/grpc,LuminateWireless/grpc,adelez/grpc,Crevil/grpc,kumaralokgithub/grpc,ctiller/grpc,ppietrasa/grpc,tamihiro/grpc,andrewpollock/grpc,arkmaxim/grpc,wcevans/grpc,donnadionne/grpc,leifurhauks/grpc,kskalski/grpc,7anner/grpc,tengyifei/grpc,LuminateWireless/grpc,mehrdada/grpc,jtattermusch/grpc,vsco/grpc,muxi/grpc,vsco/grpc,yongni/grpc,tengyifei/grpc
|
a84cee8127a0e9724b26e7d1d527f220c358c328
|
util/cast_util.h
|
util/cast_util.h
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
namespace rocksdb {
// The helper function to assert the move from dynamic_cast<> to
// static_cast<> is correct. This function is to deal with legacy code.
// It is not recommanded to add new code to issue class casting. The preferred
// solution is to implement the functionality without a need of casting.
template <class DestClass, class SrcClass>
inline DestClass* static_cast_with_check(SrcClass* x) {
DestClass* ret = static_cast<DestClass*>(x);
#ifdef ROCKSDB_USE_RTTI
assert(ret == dynamic_cast<DestClass*>(x));
#endif
return ret;
}
} // namespace rocksdb
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
namespace rocksdb {
// The helper function to assert the move from dynamic_cast<> to
// static_cast<> is correct. This function is to deal with legacy code.
// It is not recommanded to add new code to issue class casting. The preferred
// solution is to implement the functionality without a need of casting.
template <class DestClass, class SrcClass>
inline DestClass* static_cast_with_check(SrcClass* x) {
DestClass* ret = static_cast<DestClass*>(x);
#ifdef ROCKSDB_USE_RTTI
assert(ret == dynamic_cast<DestClass*>(x));
#endif
return ret;
}
} // namespace rocksdb
|
Add a missing "once" in .h
|
Add a missing "once" in .h
Summary: Closes https://github.com/facebook/rocksdb/pull/2670
Differential Revision: D5529018
Pulled By: siying
fbshipit-source-id: 10a378933d509035d2dbe502247dd85fcea09789
|
C
|
bsd-3-clause
|
Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,bbiao/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,SunguckLee/RocksDB,Andymic/rocksdb,Andymic/rocksdb,Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB
|
ad7dfb9776553aefa94360bcf87032bea8a069fa
|
helpers.h
|
helpers.h
|
#ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 256
#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y
#ifdef DEBUG
# define PUTS(x) puts(x)
# define PRINTF(x,...) printf(x, ##__VA_ARGS__)
#else
# define PUTS(x) ((void)0)
# define PRINTF(x,...) ((void)0)
#endif
void logmsg(FILE *, char *, va_list);
void warn(char *, ...);
__attribute__((noreturn))
void die(char *, ...);
uint32_t get_color(char *);
#endif
|
#ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 256
#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y
#ifdef DEBUG
# define PUTS(x) puts(x)
# define PRINTF(x,...) printf(x, __VA_ARGS__)
#else
# define PUTS(x) ((void)0)
# define PRINTF(x,...) ((void)0)
#endif
void logmsg(FILE *, char *, va_list);
void warn(char *, ...);
__attribute__((noreturn))
void die(char *, ...);
uint32_t get_color(char *);
#endif
|
Address the non-portability of the PRINTF macro
|
Address the non-portability of the PRINTF macro
|
C
|
bsd-2-clause
|
nfnty/bspwm,0re5ama/bspwm,netzverweigerer/bspwm,nfnty/bspwm,JBouron/bspwm,JBouron/bspwm,XiKuuKy/bspwm,JBouron/bspwm,medisun/bspwm,Stebalien/bspwm,jbalint/bspwm,jbalint/bspwm,nfnty/bspwm,baskerville/bspwm,0re5ama/bspwm,medisun/bspwm,medisun/bspwm,XiKuuKy/bspwm,ikn/bspwm,netzverweigerer/bspwm,baskerville/bspwm,0re5ama/bspwm,Stebalien/bspwm,ikn/bspwm,jbalint/bspwm
|
7438c35b557fb834703ecc8c35acb20d2fd5abcc
|
include/rmd160.h
|
include/rmd160.h
|
#ifndef _RMD160_H_
#define _RMD160_H_
typedef struct {
unsigned int rmd[5];
unsigned char buf[64];
unsigned int nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned len);
void rmd160_final(rmd160_context *ctx, void *digest);
void rmd160_hash(const void *input, unsigned len, void *digest); // digest must be 20 bytes
#endif /* !_RMD160_H_ */
|
#ifndef _RMD160_H_
#define _RMD160_H_
#include <stdint.h>
typedef struct {
uint64_t len;
uint32_t rmd[5];
uint8_t buf[64];
uint32_t nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned nbytes);
void rmd160_final(rmd160_context *ctx, unsigned char digest[20]);
void rmd160_hash(const void *input, unsigned len, unsigned char digest[20]);
#endif /* !_RMD160_H_ */
|
Use C99 stdint types, update prototypes.
|
Use C99 stdint types, update prototypes.
|
C
|
bsd-2-clause
|
fmela/weecrypt,fmela/weecrypt
|
1f5f35cc0e89312c6b6aef13689ab0c821d36da6
|
src/modules/cpufreq/e_mod_main.h
|
src/modules/cpufreq/e_mod_main.h
|
#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
EAPI int e_modapi_about (E_Module *m);
#endif
|
#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
#endif
|
Remove unused (and deprecated) declaration.
|
Remove unused (and deprecated) declaration.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@32298 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
|
C
|
bsd-2-clause
|
jordemort/e17,jordemort/e17,jordemort/e17
|
62a27af5a8c9e03a1bfbf6ec796917277ee263d1
|
src/main.c
|
src/main.c
|
#include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,1);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 1);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}
}
|
#include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,0);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 0);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}
}
|
Fix C program - Leds were not toggling anymore
|
Fix C program - Leds were not toggling anymore
|
C
|
mit
|
rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg,rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg
|
c60e3d16e8f405b2e56bf530aa550e6223fca0f7
|
src/main.c
|
src/main.c
|
#include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ARGS_OK || arguments.error) {
_tprintf(_T("%s"), get_help());
quit();
}
if(arguments.debug) {
_ftprintf(stderr, _T("Debug log is enabled.\n"));
}
if(arguments.version == TRUE) {
_tprintf(_T("%s"), get_version());
quit();
}
if(arguments.service == TRUE) {
result = servicize();
if(result != 0) {
_ftprintf(stderr, _T("Unable to install as service.\n"));
}
quit();
}
if(arguments.persistent == TRUE) {
result = persist();
if(result != 0) {
_ftprintf(stderr, _T("An occurred when running persistent.\n"));
}
quit();
}
return 0;
}
|
#include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
TCHAR *get_copyright(void)
{
return _T("");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ARGS_OK || arguments.error) {
_tprintf(_T("%s"), get_help());
quit();
}
if(arguments.debug) {
_ftprintf(stderr, _T("Debug log is enabled.\n"));
}
if(arguments.version == TRUE) {
_tprintf(_T("%s"), get_version());
_tprintf(_T("%s"), get_copyright());
quit();
}
if(arguments.service == TRUE) {
result = servicize();
if(result != 0) {
_ftprintf(stderr, _T("Unable to install as service.\n"));
}
quit();
}
if(arguments.persistent == TRUE) {
result = persist();
if(result != 0) {
_ftprintf(stderr, _T("An occurred when running persistent.\n"));
}
quit();
}
return 0;
}
|
Add stub for legal notice.
|
Add stub for legal notice.
|
C
|
bsd-2-clause
|
abenson/hostkit,abenson/hostkit
|
667e5c1daf0f5e6183361e8c6ff47b34bae3bea3
|
src/uart.c
|
src/uart.c
|
#include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar( '\r', stream );
UDR0 = c;
loop_until_bit_is_set(UCSR0A, TXC0);
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H = (BAUDRATE>>8);
#if USE_2X
UCSR0A |= _BV(U2X0);
#else
UCSR0A &= ~(_BV(U2X0));
#endif
UCSR0C = _BV(UCSZ01) | _BV(UCSZ00); /* 8-bit data */
UCSR0B = _BV(RXEN0) | _BV(TXEN0); /* Enable RX and TX */
stdout = &uart_out;
}
|
#include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar('\r', stream);
loop_until_bit_is_set(UCSR0A, UDRE0);
UDR0 = c;
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H = (BAUDRATE>>8);
#if USE_2X
UCSR0A |= _BV(U2X0);
#else
UCSR0A &= ~(_BV(U2X0));
#endif
UCSR0C = _BV(UCSZ01) | _BV(UCSZ00); /* 8-bit data */
UCSR0B = _BV(RXEN0) | _BV(TXEN0); /* Enable RX and TX */
stdout = &uart_out;
}
|
Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
|
Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
|
C
|
mit
|
nathanhi/steep-beta,nathanhi/steep-beta
|
e95489710c532a005dec1eac1f742d2c794d14d3
|
lib/haka/regexp_module.c
|
lib/haka/regexp_module.c
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *module_name, struct parameters *args) {
struct module *module = module_load(module_name, args);
if (module == NULL || module->type != MODULE_REGEXP) {
error(L"Module %s is not of type MODULE_REGEXP", module_name);
return NULL;
}
return (struct regexp_module *)module;
}
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *module_name, struct parameters *args) {
struct module *module = module_load(module_name, args);
if (module == NULL || module->type != MODULE_REGEXP) {
if (module != NULL) module_release(module);
error(L"Module %s is not of type MODULE_REGEXP", module_name);
return NULL;
}
return (struct regexp_module *)module;
}
|
Fix memory leak on regexp module load
|
Fix memory leak on regexp module load
|
C
|
mpl-2.0
|
nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,Wingless-Archangel/haka,lcheylus/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka
|
c3a30babd416d7c91ba0d187ff9e57df49930595
|
ouzel/input/linux/InputLinux.h
|
ouzel/input/linux/InputLinux.h
|
// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
{
friend Engine;
public:
static KeyboardKey convertKeyCode(KeySym keyCode);
static uint32_t getModifiers(unsigned int state);
virtual ~InputLinux();
virtual void setCursorVisible(bool visible) override;
virtual bool isCursorVisible() const override;
virtual void setCursorLocked(bool locked) override;
virtual bool isCursorLocked() const override;
virtual void setCursorPosition(const Vector2& position) override;
protected:
InputLinux();
virtual bool init() override;
bool cursorVisible = true;
bool cursorLocked = false;
Cursor emptyCursor = None;
};
} // namespace input
} // namespace ouzel
|
// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
{
friend Engine;
public:
static KeyboardKey convertKeyCode(KeySym keyCode);
static uint32_t getModifiers(unsigned int state);
virtual ~InputLinux();
virtual void setCursorVisible(bool visible) override;
virtual bool isCursorVisible() const override;
virtual void setCursorLocked(bool locked) override;
virtual bool isCursorLocked() const override;
virtual void setCursorPosition(const Vector2& position) override;
protected:
InputLinux();
virtual bool init() override;
bool cursorVisible = true;
bool cursorLocked = false;
::Cursor emptyCursor = None;
};
} // namespace input
} // namespace ouzel
|
Fix the declaration of Cursor on Linux
|
Fix the declaration of Cursor on Linux
|
C
|
unlicense
|
Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel
|
20539f35218d24ec960e37b70927849f30c344f0
|
net/flip/flip_bitmasks.h
|
net/flip/flip_bitmasks.h
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_H_
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const unsigned int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const unsigned int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const unsigned int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_H_
|
Fix signed vs unsigned issue
|
linux: Fix signed vs unsigned issue
Review URL: http://codereview.chromium.org/297015
git-svn-id: http://src.chromium.org/svn/trunk/src@30099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 86a9c861257cd0e752a713d61f3f4a14473acfa2
|
C
|
bsd-3-clause
|
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser
|
f285f813cc3d270186ea4789da82cb8b8c9ff1f9
|
src/clientversion.h
|
src/clientversion.h
|
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 6
#define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE false
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
|
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
|
Mark Devcoin release version 0.8.7.0.
|
Mark Devcoin release version 0.8.7.0.
|
C
|
mit
|
coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin
|
5ffcc6ae21937e80848d6e37b23734aa999ab6af
|
src/ucc/filemodes.h
|
src/ucc/filemodes.h
|
#define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp") \
|
#ifndef FILEMODES_H
#define FILEMODES_H
#define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp")
#endif
|
Fix filesmodes multiple-inc and backslash-eof
|
Fix filesmodes multiple-inc and backslash-eof
|
C
|
mit
|
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
|
6a5388550ed2d5d5efcce1e164391eafe528dba1
|
tree/ntuple/inc/LinkDef.h
|
tree/ntuple/inc/LinkDef.h
|
// Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CLING__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ nestedtypedefs;
#pragma link C++ nestedclasses;
// Support for auto-loading in the RNTuple tutorials
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase-;
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-;
#pragma link C++ class ROOT::Experimental::RFieldVector-;
#pragma link C++ class ROOT::Experimental::RNTupleReader-;
#pragma link C++ class ROOT::Experimental::RNTupleWriter-;
#pragma link C++ class ROOT::Experimental::RNTupleModel-;
#pragma link C++ class ROOT::Experimental::RNTuple+;
#endif
|
// Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CLING__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ nestedtypedefs;
#pragma link C++ nestedclasses;
// Support for auto-loading in the RNTuple tutorials
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase-;
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-;
#pragma link C++ class ROOT::Experimental::RVectorField-;
#pragma link C++ class ROOT::Experimental::RNTupleReader-;
#pragma link C++ class ROOT::Experimental::RNTupleWriter-;
#pragma link C++ class ROOT::Experimental::RNTupleModel-;
#pragma link C++ class ROOT::Experimental::RNTuple+;
#endif
|
Fix class name spelling in class rule
|
[ntuple] Fix class name spelling in class rule
|
C
|
lgpl-2.1
|
karies/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,root-mirror/root
|
6e3256887f14fd4b946d37318ddaa37c799dcd17
|
test/tsan/thread_exit.c
|
test/tsan/thread_exit.c
|
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
pthread_exit(&var);
return 0;
}
int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpected return value\n");
exit(1);
}
fprintf(stderr, "PASS\n");
return 0;
}
// CHECK-NOT: WARNING: ThreadSanitizer:
// CHECK: PASS
|
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1
// | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
fprintf(stderr, "Thread\n");
pthread_exit(&var);
return 0;
}
int main() {
fprintf(stderr, "MAIN\n");
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
fprintf(stderr, "JOIN\n");
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpected return value\n");
exit(1);
}
fprintf(stderr, "PASS\n");
return 0;
}
// CHECK-NOT: WARNING: ThreadSanitizer:
// CHECK: PASS
|
Debug failing test on PPC bot
|
[tsan] Debug failing test on PPC bot
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@353617 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
|
822adf4743536e3c0fac1861fa23e57801ebf3aa
|
core/formats/nifti_utils.h
|
core/formats/nifti_utils.h
|
/* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "as is"
* basis, without warranty of any kind, either expressed, implied, or
* statutory, including, without limitation, warranties that the
* Covered Software is free of defects, merchantable, fit for a
* particular purpose or non-infringing.
* See the Mozilla Public License v. 2.0 for more details.
*
* For more details, see http://www.mrtrix.org/.
*/
#include <string>
#include "types.h"
namespace MR
{
namespace Formats
{
/*! basic convenience function to determine whether an image path
* corresponds to a NIfTI-format image. */
inline bool is_nifti (const std::string& path)
{
static const vector<std::string> exts { ".nii", ".nii.gz", ".img" };
for (const auto& ext : exts) {
if (path.substr (path.size() - ext.size()) == ext)
return true;
}
return false;
}
}
}
|
/* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "as is"
* basis, without warranty of any kind, either expressed, implied, or
* statutory, including, without limitation, warranties that the
* Covered Software is free of defects, merchantable, fit for a
* particular purpose or non-infringing.
* See the Mozilla Public License v. 2.0 for more details.
*
* For more details, see http://www.mrtrix.org/.
*/
#include <string>
#include "types.h"
namespace MR
{
namespace Formats
{
/*! basic convenience function to determine whether an image path
* corresponds to a NIfTI-format image. */
inline bool is_nifti (const std::string& path)
{
static const vector<std::string> exts { ".nii", ".nii.gz", ".img" };
for (const auto& ext : exts) {
if (path.size() >= ext.size() &&
path.substr (path.size() - ext.size()) == ext)
return true;
}
return false;
}
}
}
|
Fix for short file names
|
Formats::is_nifti(): Fix for short file names
|
C
|
mpl-2.0
|
MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3
|
e050411af032f62ce4e4f5775b13607e3c754e4a
|
meta.h
|
meta.h
|
#pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
char const* title;
char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
|
#pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
const char const* title;
const char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
|
Fix incorrect const pointer marking.
|
Fix incorrect const pointer marking.
|
C
|
mit
|
bakape/thumbnailer,bakape/thumbnailer
|
43fc1531f877c2c7d5369a29b236aa48d6ebe08c
|
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 QString name() const = 0;
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 = 0;
};
} // namespace QmlDesigner
#endif // QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
|
Remove wrong override for wantHandleItem
|
QmlDesigner: Remove wrong override for wantHandleItem
Change-Id: I283897f528e03df1d89200906f8d7d8f1066b6d3
Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@digia.com>
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
|
C
|
lgpl-2.1
|
duythanhphan/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,colede/qtcreator,duythanhphan/qt-creator,danimo/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,xianian/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,malikcjm/qtcreator,danimo/qt-creator,malikcjm/qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,colede/qtcreator,omniacreator/qtcreator,danimo/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,kuba1/qtcreator,AltarBeastiful/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,xianian/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,danimo/qt-creator,xianian/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,duythanhphan/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,xianian/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,farseerri/git_code,duythanhphan/qt-creator,farseerri/git_code,farseerri/git_code,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,xianian/qt-creator,richardmg/qtcreator,Distrotech/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,farseerri/git_code,richardmg/qtcreator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,danimo/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,malikcjm/qtcreator,colede/qtcreator,darksylinc/qt-creator,xianian/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,xianian/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,richardmg/qtcreator,farseerri/git_code,duythanhphan/qt-creator,farseerri/git_code,kuba1/qtcreator,richardmg/qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,maui-packages/qt-creator,malikcjm/qtcreator,duythanhphan/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator
|
d8c93163ddf1e91bffe0449a66fed3bd47e8844e
|
test/CFrontend/2005-02-27-MarkGlobalConstant.c
|
test/CFrontend/2005-02-27-MarkGlobalConstant.c
|
// RUN: %llvmgcc -xc %s -S -o - | grep 'ctor_.* constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
|
// RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
|
Fix this regex to match what llvmgcc4 produces also
|
Fix this regex to match what llvmgcc4 produces also
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27673 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
bsd-2-clause
|
chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm
|
953660c5630b5d3bdf4567b68ba6e51929395ee5
|
tensorflow/core/platform/default/stream_executor_util.h
|
tensorflow/core/platform/default/stream_executor_util.h
|
q /* 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 TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
#define TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
// IWYU pragma: private, include "third_party/tensorflow/core/platform/stream_executor_util.h"
// IWYU pragma: friend third_party/tensorflow/core/platform/stream_executor_util.h
#include "tensorflow/stream_executor/lib/status.h"
namespace tensorflow {
namespace gpu = ::perftools::gputools;
// On the open-source platform, stream_executor currently uses
// tensorflow::Status
inline Status FromStreamExecutorStatus(
const perftools::gputools::port::Status& s) {
return s;
}
} // namespace tensorflow
#endif // TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_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 TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
#define TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
// IWYU pragma: private, include "third_party/tensorflow/core/platform/stream_executor_util.h"
// IWYU pragma: friend third_party/tensorflow/core/platform/stream_executor_util.h
#include "tensorflow/stream_executor/lib/status.h"
namespace tensorflow {
namespace gpu = ::perftools::gputools;
// On the open-source platform, stream_executor currently uses
// tensorflow::Status
inline Status FromStreamExecutorStatus(
const perftools::gputools::port::Status& s) {
return s;
}
} // namespace tensorflow
#endif // TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
|
Fix build breakage from a typo. Change: 111528530
|
Fix build breakage from a typo.
Change: 111528530
|
C
|
apache-2.0
|
manazhao/tf_recsys,martinwicke/tensorflow,manjunaths/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Carmezim/tensorflow,Kongsea/tensorflow,petewarden/tensorflow_makefile,ppries/tensorflow,rabipanda/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,arborh/tensorflow,Mistobaan/tensorflow,renyi533/tensorflow,XueqingLin/tensorflow,Bulochkin/tensorflow_pack,Xeralux/tensorflow,SnakeJenny/TensorFlow,aselle/tensorflow,shreyasva/tensorflow,ZhangXinNan/tensorflow,petewarden/tensorflow,pcm17/tensorflow,ville-k/tensorflow,ville-k/tensorflow,freedomtan/tensorflow,thesuperzapper/tensorflow,chenjun0210/tensorflow,ZhangXinNan/tensorflow,MycChiu/tensorflow,AnishShah/tensorflow,ishay2b/tensorflow,llhe/tensorflow,cancan101/tensorflow,benoitsteiner/tensorflow-opencl,davidzchen/tensorflow,anand-c-goog/tensorflow,manazhao/tf_recsys,Intel-tensorflow/tensorflow,caisq/tensorflow,martinbede/second-sight,sandeepdsouza93/TensorFlow-15712,abhitopia/tensorflow,benoitsteiner/tensorflow-opencl,ppwwyyxx/tensorflow,Moriadry/tensorflow,lukas-krecan/tensorflow,sjperkins/tensorflow,calebfoss/tensorflow,apark263/tensorflow,freedomtan/tensorflow,johndpope/tensorflow,snnn/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,RyanYoung25/tensorflow,HKUST-SING/tensorflow,dongjoon-hyun/tensorflow,peterbraden/tensorflow,haeusser/tensorflow,strint/tensorflow,krikru/tensorflow-opencl,jbedorf/tensorflow,freedomtan/tensorflow,4Quant/tensorflow,drpngx/tensorflow,horance-liu/tensorflow,ppwwyyxx/tensorflow,benoitsteiner/tensorflow-xsmm,jhseu/tensorflow,elingg/tensorflow,RyanYoung25/tensorflow,laosiaudi/tensorflow,lukeiwanski/tensorflow,asadziach/tensorflow,juharris/tensorflow,mrry/tensorflow,ageron/tensorflow,pavelchristof/gomoku-ai,dhalleine/tensorflow,eadgarchen/tensorflow,handroissuazo/tensorflow,mengxn/tensorflow,chris-chris/tensorflow,hehongliang/tensorflow,ninotoshi/tensorflow,mdrumond/tensorflow,laszlocsomor/tensorflow,alisidd/tensorflow,pavelchristof/gomoku-ai,seanli9jan/tensorflow,jeffzheng1/tensorflow,tornadozou/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,ibab/tensorflow,av8ramit/tensorflow,Kongsea/tensorflow,pcm17/tensorflow,asimshankar/tensorflow,hsaputra/tensorflow,ravindrapanda/tensorflow,nanditav/15712-TensorFlow,annarev/tensorflow,jbedorf/tensorflow,adamtiger/tensorflow,hfp/tensorflow-xsmm,hsaputra/tensorflow,seaotterman/tensorflow,yanchen036/tensorflow,laszlocsomor/tensorflow,admcrae/tensorflow,laszlocsomor/tensorflow,kchodorow/tensorflow,johndpope/tensorflow,thjashin/tensorflow,tomasreimers/tensorflow-emscripten,DavidNorman/tensorflow,tiagofrepereira2012/tensorflow,manjunaths/tensorflow,dongjoon-hyun/tensorflow,memo/tensorflow,wangyum/tensorflow,sandeepgupta2k4/tensorflow,tomasreimers/tensorflow-emscripten,gibiansky/tensorflow,benoitsteiner/tensorflow-xsmm,krikru/tensorflow-opencl,Bismarrck/tensorflow,mortada/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,pierreg/tensorflow,wchan/tensorflow,chenjun0210/tensorflow,yongtang/tensorflow,whn09/tensorflow,anand-c-goog/tensorflow,anilmuthineni/tensorflow,hsaputra/tensorflow,TakayukiSakai/tensorflow,ivano666/tensorflow,ghchinoy/tensorflow,ravindrapanda/tensorflow,odejesush/tensorflow,Mistobaan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,hfp/tensorflow-xsmm,Kongsea/tensorflow,alistairlow/tensorflow,karllessard/tensorflow,dhalleine/tensorflow,raymondxyang/tensorflow,pcm17/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,laosiaudi/tensorflow,thjashin/tensorflow,girving/tensorflow,JingJunYin/tensorflow,apark263/tensorflow,eerwitt/tensorflow,gautam1858/tensorflow,pierreg/tensorflow,tillahoffmann/tensorflow,JingJunYin/tensorflow,Bulochkin/tensorflow_pack,llhe/tensorflow,aam-at/tensorflow,MostafaGazar/tensorflow,pavelchristof/gomoku-ai,frreiss/tensorflow-fred,benoitsteiner/tensorflow-xsmm,JVillella/tensorflow,tntnatbry/tensorflow,chemelnucfin/tensorflow,tntnatbry/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,ibmsoe/tensorflow,whn09/tensorflow,XueqingLin/tensorflow,dongjoon-hyun/tensorflow,meteorcloudy/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,jhseu/tensorflow,kevin-coder/tensorflow-fork,Kongsea/tensorflow,eerwitt/tensorflow,chris-chris/tensorflow,aldian/tensorflow,sandeepdsouza93/TensorFlow-15712,freedomtan/tensorflow,maciekcc/tensorflow,eaplatanios/tensorflow,davidzchen/tensorflow,guschmue/tensorflow,code-sauce/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,ZhangXinNan/tensorflow,alivecor/tensorflow,MoamerEncsConcordiaCa/tensorflow,apark263/tensorflow,brchiu/tensorflow,suiyuan2009/tensorflow,eerwitt/tensorflow,admcrae/tensorflow,asimshankar/tensorflow,alshedivat/tensorflow,taknevski/tensorflow-xsmm,whn09/tensorflow,juharris/tensorflow,tongwang01/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,gojira/tensorflow,HaebinShin/tensorflow,gnieboer/tensorflow,Bismarrck/tensorflow,alsrgv/tensorflow,sjperkins/tensorflow,DavidNorman/tensorflow,Bulochkin/tensorflow_pack,codrut3/tensorflow,cancan101/tensorflow,mrry/tensorflow,thjashin/tensorflow,yongtang/tensorflow,ivano666/tensorflow,alheinecke/tensorflow-xsmm,hfp/tensorflow-xsmm,unsiloai/syntaxnet-ops-hack,ravindrapanda/tensorflow,elingg/tensorflow,codrut3/tensorflow,tillahoffmann/tensorflow,chris-chris/tensorflow,annarev/tensorflow,eaplatanios/tensorflow,alivecor/tensorflow,nburn42/tensorflow,bowang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,johndpope/tensorflow,alivecor/tensorflow,asadziach/tensorflow,sarvex/tensorflow,thjashin/tensorflow,JinXinDeep/tensorflow,MycChiu/tensorflow,Bulochkin/tensorflow_pack,hehongliang/tensorflow,hehongliang/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,suiyuan2009/tensorflow,alsrgv/tensorflow,odejesush/tensorflow,ppwwyyxx/tensorflow,alistairlow/tensorflow,LUTAN/tensorflow,tensorflow/tensorflow,ivano666/tensorflow,seanli9jan/tensorflow,kamcpp/tensorflow,alsrgv/tensorflow,eaplatanios/tensorflow,moonboots/tensorflow,gautam1858/tensorflow,ageron/tensorflow,ibmsoe/tensorflow,drpngx/tensorflow,mdrumond/tensorflow,xzturn/tensorflow,meteorcloudy/tensorflow,elingg/tensorflow,ZhangXinNan/tensorflow,Mistobaan/tensorflow,tomasreimers/tensorflow-emscripten,tornadozou/tensorflow,mortada/tensorflow,awni/tensorflow,ZhangXinNan/tensorflow,lukas-krecan/tensorflow,rabipanda/tensorflow,brchiu/tensorflow,nightjean/Deep-Learning,XueqingLin/tensorflow,alheinecke/tensorflow-xsmm,handroissuazo/tensorflow,dendisuhubdy/tensorflow,davidzchen/tensorflow,lukeiwanski/tensorflow,dendisuhubdy/tensorflow,adamtiger/tensorflow,karllessard/tensorflow,zasdfgbnm/tensorflow,mdrumond/tensorflow,ishay2b/tensorflow,ageron/tensorflow,cg31/tensorflow,JingJunYin/tensorflow,mdrumond/tensorflow,admcrae/tensorflow,markslwong/tensorflow,apark263/tensorflow,strint/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,jendap/tensorflow,aselle/tensorflow,sarvex/tensorflow,scenarios/tensorflow,allenlavoie/tensorflow,ppries/tensorflow,taknevski/tensorflow-xsmm,raymondxyang/tensorflow,hsaputra/tensorflow,hsaputra/tensorflow,TakayukiSakai/tensorflow,suiyuan2009/tensorflow,ibmsoe/tensorflow,jalexvig/tensorflow,yaroslavvb/tensorflow,mrry/tensorflow,llhe/tensorflow,jart/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,yongtang/tensorflow,dyoung418/tensorflow,seaotterman/tensorflow,admcrae/tensorflow,martinwicke/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,elingg/tensorflow,caisq/tensorflow,ychfan/tensorflow,ppries/tensorflow,benoitsteiner/tensorflow-opencl,nanditav/15712-TensorFlow,jhseu/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,cg31/tensorflow,tensorflow/tensorflow,shreyasva/tensorflow,wchan/tensorflow,Bismarrck/tensorflow,mavenlin/tensorflow,nightjean/Deep-Learning,JinXinDeep/tensorflow,jhaux/tensorflow,guschmue/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,rdipietro/tensorflow,ville-k/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,krikru/tensorflow-opencl,elingg/tensorflow,pavelchristof/gomoku-ai,ville-k/tensorflow,ageron/tensorflow,rabipanda/tensorflow,EvenStrangest/tensorflow,chris-chris/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,kchodorow/tensorflow,chemelnucfin/tensorflow,martinwicke/tensorflow,Moriadry/tensorflow,karllessard/tensorflow,yanchen036/tensorflow,alheinecke/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,Carmezim/tensorflow,gojira/tensorflow,arborh/tensorflow,xodus7/tensorflow,naturali/tensorflow,yaroslavvb/tensorflow,ninotoshi/tensorflow,neilhan/tensorflow,manjunaths/tensorflow,codrut3/tensorflow,taknevski/tensorflow-xsmm,ibmsoe/tensorflow,scenarios/tensorflow,MostafaGazar/tensorflow,arborh/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,codrut3/tensorflow,DavidNorman/tensorflow,Mistobaan/tensorflow,ArtsiomCh/tensorflow,peterbraden/tensorflow,horance-liu/tensorflow,handroissuazo/tensorflow,apark263/tensorflow,lukeiwanski/tensorflow-opencl,EvenStrangest/tensorflow,drpngx/tensorflow,markslwong/tensorflow,4Quant/tensorflow,aselle/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,davidzchen/tensorflow,drpngx/tensorflow,ran5515/DeepDecision,tiagofrepereira2012/tensorflow,scenarios/tensorflow,eadgarchen/tensorflow,guschmue/tensorflow,tensorflow/tensorflow-pywrap_saved_model,lukeiwanski/tensorflow-opencl,meteorcloudy/tensorflow,pierreg/tensorflow,alsrgv/tensorflow,unsiloai/syntaxnet-ops-hack,TakayukiSakai/tensorflow,alsrgv/tensorflow,alisidd/tensorflow,eerwitt/tensorflow,sandeepgupta2k4/tensorflow,davidzchen/tensorflow,ravindrapanda/tensorflow,HKUST-SING/tensorflow,vrv/tensorflow,a-doumoulakis/tensorflow,petewarden/tensorflow_makefile,naturali/tensorflow,HKUST-SING/tensorflow,pcm17/tensorflow,anilmuthineni/tensorflow,ArtsiomCh/tensorflow,shreyasva/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,markslwong/tensorflow,benoitsteiner/tensorflow,abhitopia/tensorflow,benoitsteiner/tensorflow-xsmm,Intel-tensorflow/tensorflow,awni/tensorflow,aam-at/tensorflow,pcm17/tensorflow,eadgarchen/tensorflow,allenlavoie/tensorflow,yufengg/tensorflow,tornadozou/tensorflow,girving/tensorflow,tensorflow/tensorflow,yaroslavvb/tensorflow,girving/tensorflow,JingJunYin/tensorflow,guschmue/tensorflow,dancingdan/tensorflow,pcm17/tensorflow,frreiss/tensorflow-fred,hlt-mt/tensorflow,neilhan/tensorflow,kevin-coder/tensorflow-fork,peterbraden/tensorflow,apark263/tensorflow,martinwicke/tensorflow,lakshayg/tensorflow,jostep/tensorflow,llhe/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow,haeusser/tensorflow,anilmuthineni/tensorflow,asimshankar/tensorflow,lukeiwanski/tensorflow-opencl,asadziach/tensorflow,ninotoshi/tensorflow,naturali/tensorflow,alisidd/tensorflow,asimshankar/tensorflow,AnishShah/tensorflow,pavelchristof/gomoku-ai,tensorflow/tensorflow,lukeiwanski/tensorflow-opencl,kobejean/tensorflow,theflofly/tensorflow,panmari/tensorflow,RyanYoung25/tensorflow,mixturemodel-flow/tensorflow,allenlavoie/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow,anilmuthineni/tensorflow,mortada/tensorflow,MycChiu/tensorflow,DCSaunders/tensorflow,aselle/tensorflow,bowang/tensorflow,adit-chandra/tensorflow,LUTAN/tensorflow,meteorcloudy/tensorflow,wangyum/tensorflow,HKUST-SING/tensorflow,manjunaths/tensorflow,odejesush/tensorflow,shreyasva/tensorflow,seanli9jan/tensorflow,martinwicke/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,girving/tensorflow,yaroslavvb/tensorflow,eerwitt/tensorflow,aldian/tensorflow,kobejean/tensorflow,snnn/tensorflow,jalexvig/tensorflow,hfp/tensorflow-xsmm,vrv/tensorflow,gibiansky/tensorflow,sandeepgupta2k4/tensorflow,ran5515/DeepDecision,sandeepgupta2k4/tensorflow,cg31/tensorflow,mengxn/tensorflow,mixturemodel-flow/tensorflow,Intel-tensorflow/tensorflow,lukeiwanski/tensorflow,ibab/tensorflow,johndpope/tensorflow,MycChiu/tensorflow,Moriadry/tensorflow,ghchinoy/tensorflow,girving/tensorflow,jhseu/tensorflow,jbedorf/tensorflow,jendap/tensorflow,panmari/tensorflow,nolanliou/tensorflow,bowang/tensorflow,LUTAN/tensorflow,yaroslavvb/tensorflow,caisq/tensorflow,MoamerEncsConcordiaCa/tensorflow,seanli9jan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,thjashin/tensorflow,drpngx/tensorflow,elingg/tensorflow,pcm17/tensorflow,tiagofrepereira2012/tensorflow,tomasreimers/tensorflow-emscripten,Mistobaan/tensorflow,ravindrapanda/tensorflow,xodus7/tensorflow,cxxgtxy/tensorflow,krikru/tensorflow-opencl,4Quant/tensorflow,haeusser/tensorflow,zasdfgbnm/tensorflow,guschmue/tensorflow,Xeralux/tensorflow,cxxgtxy/tensorflow,kobejean/tensorflow,tiagofrepereira2012/tensorflow,nburn42/tensorflow,alheinecke/tensorflow-xsmm,MycChiu/tensorflow,mavenlin/tensorflow,juharris/tensorflow,lukeiwanski/tensorflow-opencl,paolodedios/tensorflow,nolanliou/tensorflow,freedomtan/tensorflow,rdipietro/tensorflow,aam-at/tensorflow,codrut3/tensorflow,jeffzheng1/tensorflow,jostep/tensorflow,handroissuazo/tensorflow,mixturemodel-flow/tensorflow,petewarden/tensorflow_makefile,mixturemodel-flow/tensorflow,seaotterman/tensorflow,ppwwyyxx/tensorflow,JinXinDeep/tensorflow,yongtang/tensorflow,JVillella/tensorflow,guschmue/tensorflow,andrewcmyers/tensorflow,tornadozou/tensorflow,kchodorow/tensorflow,manazhao/tf_recsys,zasdfgbnm/tensorflow,karllessard/tensorflow,nanditav/15712-TensorFlow,allenlavoie/tensorflow,nikste/tensorflow,dendisuhubdy/tensorflow,meteorcloudy/tensorflow,gunan/tensorflow,jbedorf/tensorflow,nikste/tensorflow,hsaputra/tensorflow,ZhangXinNan/tensorflow,jalexvig/tensorflow,MycChiu/tensorflow,laosiaudi/tensorflow,eaplatanios/tensorflow,ppries/tensorflow,Xeralux/tensorflow,alshedivat/tensorflow,kobejean/tensorflow,petewarden/tensorflow,Bulochkin/tensorflow_pack,gnieboer/tensorflow,HKUST-SING/tensorflow,tornadozou/tensorflow,jalexvig/tensorflow,renyi533/tensorflow,jhaux/tensorflow,yufengg/tensorflow,EvenStrangest/tensorflow,seanli9jan/tensorflow,ravindrapanda/tensorflow,ninotoshi/tensorflow,seaotterman/tensorflow,ychfan/tensorflow,RyanYoung25/tensorflow,handroissuazo/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,XueqingLin/tensorflow,Bulochkin/tensorflow_pack,cancan101/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,dyoung418/tensorflow,aam-at/tensorflow,renyi533/tensorflow,HaebinShin/tensorflow,jalexvig/tensorflow,tiagofrepereira2012/tensorflow,HaebinShin/tensorflow,allenlavoie/tensorflow,wangyum/tensorflow,pierreg/tensorflow,awni/tensorflow,yaroslavvb/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,tomasreimers/tensorflow-emscripten,haeusser/tensorflow,chemelnucfin/tensorflow,jhaux/tensorflow,meteorcloudy/tensorflow,admcrae/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhaux/tensorflow,ageron/tensorflow,mixturemodel-flow/tensorflow,cg31/tensorflow,caisq/tensorflow,Carmezim/tensorflow,gunan/tensorflow,odejesush/tensorflow,mengxn/tensorflow,dhalleine/tensorflow,pavelchristof/gomoku-ai,nolanliou/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,panmari/tensorflow,seanli9jan/tensorflow,arborh/tensorflow,renyi533/tensorflow,thjashin/tensorflow,aselle/tensorflow,elingg/tensorflow,guschmue/tensorflow,yanchen036/tensorflow,pierreg/tensorflow,kobejean/tensorflow,unsiloai/syntaxnet-ops-hack,yufengg/tensorflow,kobejean/tensorflow,paolodedios/tensorflow,admcrae/tensorflow,AndreasMadsen/tensorflow,eadgarchen/tensorflow,codrut3/tensorflow,lukeiwanski/tensorflow,MostafaGazar/tensorflow,maciekcc/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,whn09/tensorflow,krikru/tensorflow-opencl,paolodedios/tensorflow,guschmue/tensorflow,wangyum/tensorflow,unsiloai/syntaxnet-ops-hack,jeffzheng1/tensorflow,chris-chris/tensorflow,jwlawson/tensorflow,DavidNorman/tensorflow,strint/tensorflow,DCSaunders/tensorflow,manipopopo/tensorflow,wchan/tensorflow,hlt-mt/tensorflow,markslwong/tensorflow,jhaux/tensorflow,gibiansky/tensorflow,thesuperzapper/tensorflow,HKUST-SING/tensorflow,LUTAN/tensorflow,kchodorow/tensorflow,ychfan/tensorflow,Mazecreator/tensorflow,nightjean/Deep-Learning,sandeepgupta2k4/tensorflow,Mazecreator/tensorflow,seanli9jan/tensorflow,Bulochkin/tensorflow_pack,benoitsteiner/tensorflow,jostep/tensorflow,johndpope/tensorflow,sandeepgupta2k4/tensorflow,chenjun0210/tensorflow,taknevski/tensorflow-xsmm,adit-chandra/tensorflow,girving/tensorflow,tntnatbry/tensorflow,martinwicke/tensorflow,lukeiwanski/tensorflow,gojira/tensorflow,pcm17/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,lukeiwanski/tensorflow-opencl,wangyum/tensorflow,petewarden/tensorflow_makefile,yanchen036/tensorflow,snnn/tensorflow,Moriadry/tensorflow,AnishShah/tensorflow,jart/tensorflow,Bismarrck/tensorflow,awni/tensorflow,aldian/tensorflow,zasdfgbnm/tensorflow,snnn/tensorflow,benoitsteiner/tensorflow-xsmm,sjperkins/tensorflow,alshedivat/tensorflow,codrut3/tensorflow,alshedivat/tensorflow,ishay2b/tensorflow,EvenStrangest/tensorflow,odejesush/tensorflow,DCSaunders/tensorflow,RyanYoung25/tensorflow,ninotoshi/tensorflow,panmari/tensorflow,dyoung418/tensorflow,Intel-Corporation/tensorflow,Kongsea/tensorflow,gnieboer/tensorflow,AndreasMadsen/tensorflow,kevin-coder/tensorflow-fork,kamcpp/tensorflow,annarev/tensorflow,aselle/tensorflow,gautam1858/tensorflow,Bismarrck/tensorflow,krikru/tensorflow-opencl,MostafaGazar/tensorflow,dongjoon-hyun/tensorflow,ppries/tensorflow,ychfan/tensorflow,jeffzheng1/tensorflow,calebfoss/tensorflow,hfp/tensorflow-xsmm,yufengg/tensorflow,andrewcmyers/tensorflow,gibiansky/tensorflow,MoamerEncsConcordiaCa/tensorflow,anand-c-goog/tensorflow,HaebinShin/tensorflow,rdipietro/tensorflow,chenjun0210/tensorflow,cxxgtxy/tensorflow,gnieboer/tensorflow,neilhan/tensorflow,panmari/tensorflow,nikste/tensorflow,lukeiwanski/tensorflow,mixturemodel-flow/tensorflow,tiagofrepereira2012/tensorflow,aselle/tensorflow,nburn42/tensorflow,ghchinoy/tensorflow,allenlavoie/tensorflow,codrut3/tensorflow,xodus7/tensorflow,anilmuthineni/tensorflow,asimshankar/tensorflow,dyoung418/tensorflow,mortada/tensorflow,code-sauce/tensorflow,meteorcloudy/tensorflow,asimshankar/tensorflow,frreiss/tensorflow-fred,nolanliou/tensorflow,code-sauce/tensorflow,raymondxyang/tensorflow,nolanliou/tensorflow,MostafaGazar/tensorflow,gibiansky/tensorflow,hlt-mt/tensorflow,ArtsiomCh/tensorflow,pierreg/tensorflow,JinXinDeep/tensorflow,code-sauce/tensorflow,unsiloai/syntaxnet-ops-hack,nanditav/15712-TensorFlow,davidzchen/tensorflow,nightjean/Deep-Learning,horance-liu/tensorflow,MostafaGazar/tensorflow,haeusser/tensorflow,arborh/tensorflow,rdipietro/tensorflow,shreyasva/tensorflow,vrv/tensorflow,Intel-Corporation/tensorflow,memo/tensorflow,Mistobaan/tensorflow,adit-chandra/tensorflow,mavenlin/tensorflow,lakshayg/tensorflow,MoamerEncsConcordiaCa/tensorflow,markslwong/tensorflow,jeffzheng1/tensorflow,ghchinoy/tensorflow,mortada/tensorflow,juharris/tensorflow,mrry/tensorflow,eaplatanios/tensorflow,Intel-tensorflow/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,code-sauce/tensorflow,benoitsteiner/tensorflow,martinbede/second-sight,dyoung418/tensorflow,sandeepdsouza93/TensorFlow-15712,pavelchristof/gomoku-ai,frreiss/tensorflow-fred,aldian/tensorflow,ghchinoy/tensorflow,bowang/tensorflow,laosiaudi/tensorflow,wchan/tensorflow,caisq/tensorflow,TakayukiSakai/tensorflow,cancan101/tensorflow,mengxn/tensorflow,tensorflow/tensorflow,mdrumond/tensorflow,xzturn/tensorflow,xzturn/tensorflow,juharris/tensorflow,jwlawson/tensorflow,AndreasMadsen/tensorflow,hsaputra/tensorflow,aselle/tensorflow,tongwang01/tensorflow,SnakeJenny/TensorFlow,petewarden/tensorflow,rabipanda/tensorflow,calebfoss/tensorflow,chemelnucfin/tensorflow,snnn/tensorflow,eerwitt/tensorflow,gnieboer/tensorflow,martinwicke/tensorflow,xzturn/tensorflow,chenjun0210/tensorflow,dendisuhubdy/tensorflow,panmari/tensorflow,Mazecreator/tensorflow,brchiu/tensorflow,renyi533/tensorflow,mortada/tensorflow,adit-chandra/tensorflow,gibiansky/tensorflow,gautam1858/tensorflow,nikste/tensorflow,drpngx/tensorflow,XueqingLin/tensorflow,asimshankar/tensorflow,dongjoon-hyun/tensorflow,gibiansky/tensorflow,tiagofrepereira2012/tensorflow,meteorcloudy/tensorflow,EvenStrangest/tensorflow,sjperkins/tensorflow,nanditav/15712-TensorFlow,jwlawson/tensorflow,nolanliou/tensorflow,thesuperzapper/tensorflow,adamtiger/tensorflow,naturali/tensorflow,gunan/tensorflow,renyi533/tensorflow,rdipietro/tensorflow,nburn42/tensorflow,Intel-Corporation/tensorflow,sjperkins/tensorflow,vrv/tensorflow,arborh/tensorflow,sjperkins/tensorflow,nikste/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,zycdragonball/tensorflow,whn09/tensorflow,martinwicke/tensorflow,tntnatbry/tensorflow,panmari/tensorflow,wchan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,ghchinoy/tensorflow,sandeepdsouza93/TensorFlow-15712,jart/tensorflow,alistairlow/tensorflow,handroissuazo/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xodus7/tensorflow,jwlawson/tensorflow,xodus7/tensorflow,eaplatanios/tensorflow,jeffzheng1/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,haeusser/tensorflow,JinXinDeep/tensorflow,Kongsea/tensorflow,mengxn/tensorflow,jalexvig/tensorflow,krikru/tensorflow-opencl,awni/tensorflow,ville-k/tensorflow,suiyuan2009/tensorflow,scenarios/tensorflow,Xeralux/tensorflow,mavenlin/tensorflow,juharris/tensorflow,nightjean/Deep-Learning,martinbede/second-sight,jendap/tensorflow,sarvex/tensorflow,martinbede/second-sight,jhseu/tensorflow,av8ramit/tensorflow,peterbraden/tensorflow,karllessard/tensorflow,arborh/tensorflow,yongtang/tensorflow,moonboots/tensorflow,mengxn/tensorflow,kevin-coder/tensorflow-fork,jhaux/tensorflow,HKUST-SING/tensorflow,MoamerEncsConcordiaCa/tensorflow,martinwicke/tensorflow,RapidApplicationDevelopment/tensorflow,jendap/tensorflow,mixturemodel-flow/tensorflow,seanli9jan/tensorflow,ninotoshi/tensorflow,ravindrapanda/tensorflow,dancingdan/tensorflow,yaroslavvb/tensorflow,jwlawson/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,codrut3/tensorflow,alheinecke/tensorflow-xsmm,ageron/tensorflow,anilmuthineni/tensorflow,ZhangXinNan/tensorflow,chemelnucfin/tensorflow,jendap/tensorflow,maciekcc/tensorflow,ivano666/tensorflow,handroissuazo/tensorflow,nikste/tensorflow,av8ramit/tensorflow,jalexvig/tensorflow,alisidd/tensorflow,sjperkins/tensorflow,ychfan/tensorflow,adamtiger/tensorflow,sjperkins/tensorflow,pavelchristof/gomoku-ai,rdipietro/tensorflow,DCSaunders/tensorflow,llhe/tensorflow,wangyum/tensorflow,bowang/tensorflow,jendap/tensorflow,dyoung418/tensorflow,dancingdan/tensorflow,ibmsoe/tensorflow,horance-liu/tensorflow,mrry/tensorflow,jalexvig/tensorflow,neilhan/tensorflow,jostep/tensorflow,jart/tensorflow,zasdfgbnm/tensorflow,eadgarchen/tensorflow,manazhao/tf_recsys,tornadozou/tensorflow,ran5515/DeepDecision,hehongliang/tensorflow,ArtsiomCh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,nanditav/15712-TensorFlow,gojira/tensorflow,elingg/tensorflow,DavidNorman/tensorflow,maciekcc/tensorflow,DCSaunders/tensorflow,ppwwyyxx/tensorflow,ravindrapanda/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,MycChiu/tensorflow,mdrumond/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ibab/tensorflow,eerwitt/tensorflow,gautam1858/tensorflow,XueqingLin/tensorflow,gunan/tensorflow,jhseu/tensorflow,alistairlow/tensorflow,aldian/tensorflow,caisq/tensorflow,kobejean/tensorflow,andrewcmyers/tensorflow,Moriadry/tensorflow,scenarios/tensorflow,mdrumond/tensorflow,seaotterman/tensorflow,jwlawson/tensorflow,hfp/tensorflow-xsmm,shreyasva/tensorflow,jbedorf/tensorflow,mrry/tensorflow,alistairlow/tensorflow,peterbraden/tensorflow,thesuperzapper/tensorflow,Moriadry/tensorflow,jendap/tensorflow,sandeepgupta2k4/tensorflow,juharris/tensorflow,jeffzheng1/tensorflow,HaebinShin/tensorflow,yufengg/tensorflow,ivano666/tensorflow,alisidd/tensorflow,wangyum/tensorflow,Mazecreator/tensorflow,shreyasva/tensorflow,yaroslavvb/tensorflow,ghchinoy/tensorflow,pcm17/tensorflow,Xeralux/tensorflow,ibmsoe/tensorflow,code-sauce/tensorflow,allenlavoie/tensorflow,abhitopia/tensorflow,nikste/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,tillahoffmann/tensorflow,theflofly/tensorflow,anilmuthineni/tensorflow,cg31/tensorflow,codrut3/tensorflow,gibiansky/tensorflow,kevin-coder/tensorflow-fork,abhitopia/tensorflow,lakshayg/tensorflow,benoitsteiner/tensorflow-opencl,maciekcc/tensorflow,petewarden/tensorflow_makefile,TakayukiSakai/tensorflow,tomasreimers/tensorflow-emscripten,xzturn/tensorflow,girving/tensorflow,scenarios/tensorflow,alshedivat/tensorflow,gunan/tensorflow,calebfoss/tensorflow,horance-liu/tensorflow,strint/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,petewarden/tensorflow,with-git/tensorflow,eadgarchen/tensorflow,snnn/tensorflow,tntnatbry/tensorflow,JVillella/tensorflow,jhseu/tensorflow,rabipanda/tensorflow,llhe/tensorflow,pierreg/tensorflow,caisq/tensorflow,nolanliou/tensorflow,adit-chandra/tensorflow,laszlocsomor/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,thesuperzapper/tensorflow,markslwong/tensorflow,vrv/tensorflow,strint/tensorflow,Bulochkin/tensorflow_pack,MycChiu/tensorflow,kchodorow/tensorflow,Mazecreator/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,nolanliou/tensorflow,jwlawson/tensorflow,gojira/tensorflow,tntnatbry/tensorflow,drpngx/tensorflow,LUTAN/tensorflow,mdrumond/tensorflow,EvenStrangest/tensorflow,RapidApplicationDevelopment/tensorflow,eaplatanios/tensorflow,petewarden/tensorflow_makefile,lukas-krecan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,manipopopo/tensorflow,neilhan/tensorflow,nanditav/15712-TensorFlow,a-doumoulakis/tensorflow,adamtiger/tensorflow,tensorflow/tensorflow,dongjoon-hyun/tensorflow,dhalleine/tensorflow,whn09/tensorflow,with-git/tensorflow,tensorflow/tensorflow-pywrap_saved_model,manjunaths/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,horance-liu/tensorflow,Bismarrck/tensorflow,LUTAN/tensorflow,calebfoss/tensorflow,Carmezim/tensorflow,LUTAN/tensorflow,lukeiwanski/tensorflow-opencl,whn09/tensorflow,lukas-krecan/tensorflow,jhaux/tensorflow,Carmezim/tensorflow,cancan101/tensorflow,allenlavoie/tensorflow,gibiansky/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,jhseu/tensorflow,bowang/tensorflow,RyanYoung25/tensorflow,nikste/tensorflow,johndpope/tensorflow,andrewcmyers/tensorflow,cxxgtxy/tensorflow,nburn42/tensorflow,girving/tensorflow,odejesush/tensorflow,calebfoss/tensorflow,cancan101/tensorflow,Intel-tensorflow/tensorflow,anand-c-goog/tensorflow,brchiu/tensorflow,eaplatanios/tensorflow,chris-chris/tensorflow,abhitopia/tensorflow,ppries/tensorflow,alistairlow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,av8ramit/tensorflow,EvenStrangest/tensorflow,rdipietro/tensorflow,chemelnucfin/tensorflow,RyanYoung25/tensorflow,hehongliang/tensorflow,ville-k/tensorflow,jhaux/tensorflow,calebfoss/tensorflow,paolodedios/tensorflow,thesuperzapper/tensorflow,alshedivat/tensorflow,seaotterman/tensorflow,freedomtan/tensorflow,cg31/tensorflow,alheinecke/tensorflow-xsmm,nightjean/Deep-Learning,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,av8ramit/tensorflow,petewarden/tensorflow,mortada/tensorflow,aldian/tensorflow,yanchen036/tensorflow,calebfoss/tensorflow,rabipanda/tensorflow,renyi533/tensorflow,neilhan/tensorflow,JingJunYin/tensorflow,maciekcc/tensorflow,tillahoffmann/tensorflow,paolodedios/tensorflow,wchan/tensorflow,asadziach/tensorflow,code-sauce/tensorflow,LUTAN/tensorflow,xzturn/tensorflow,tongwang01/tensorflow,SnakeJenny/TensorFlow,Bulochkin/tensorflow_pack,manjunaths/tensorflow,rabipanda/tensorflow,ghchinoy/tensorflow,anilmuthineni/tensorflow,xzturn/tensorflow,suiyuan2009/tensorflow,manipopopo/tensorflow,girving/tensorflow,lakshayg/tensorflow,petewarden/tensorflow,dendisuhubdy/tensorflow,memo/tensorflow,aldian/tensorflow,eadgarchen/tensorflow,tongwang01/tensorflow,gautam1858/tensorflow,jwlawson/tensorflow,JinXinDeep/tensorflow,Carmezim/tensorflow,DavidNorman/tensorflow,abhitopia/tensorflow,apark263/tensorflow,ibmsoe/tensorflow,haeusser/tensorflow,AndreasMadsen/tensorflow,dongjoon-hyun/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,asadziach/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,naturali/tensorflow,brchiu/tensorflow,SnakeJenny/TensorFlow,ville-k/tensorflow,tongwang01/tensorflow,a-doumoulakis/tensorflow,Bulochkin/tensorflow_pack,Mistobaan/tensorflow,AnishShah/tensorflow,nightjean/Deep-Learning,rdipietro/tensorflow,zasdfgbnm/tensorflow,manjunaths/tensorflow,jwlawson/tensorflow,nburn42/tensorflow,sandeepdsouza93/TensorFlow-15712,Kongsea/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,chenjun0210/tensorflow,girving/tensorflow,strint/tensorflow,cancan101/tensorflow,zasdfgbnm/tensorflow,aselle/tensorflow,sarvex/tensorflow,awni/tensorflow,SnakeJenny/TensorFlow,sandeepdsouza93/TensorFlow-15712,ppwwyyxx/tensorflow,chenjun0210/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,renyi533/tensorflow,kchodorow/tensorflow,ppries/tensorflow,JingJunYin/tensorflow,rabipanda/tensorflow,mavenlin/tensorflow,RapidApplicationDevelopment/tensorflow,andrewcmyers/tensorflow,jart/tensorflow,maciekcc/tensorflow,martinbede/second-sight,gunan/tensorflow,ishay2b/tensorflow,JVillella/tensorflow,ageron/tensorflow,admcrae/tensorflow,naturali/tensorflow,horance-liu/tensorflow,apark263/tensorflow,benoitsteiner/tensorflow-opencl,tongwang01/tensorflow,theflofly/tensorflow,4Quant/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,DCSaunders/tensorflow,tomasreimers/tensorflow-emscripten,hsaputra/tensorflow,rdipietro/tensorflow,anand-c-goog/tensorflow,manipopopo/tensorflow,theflofly/tensorflow,dongjoon-hyun/tensorflow,benoitsteiner/tensorflow-opencl,jhseu/tensorflow,mavenlin/tensorflow,chris-chris/tensorflow,taknevski/tensorflow-xsmm,eerwitt/tensorflow,AnishShah/tensorflow,mrry/tensorflow,martinbede/second-sight,apark263/tensorflow,memo/tensorflow,Xeralux/tensorflow,peterbraden/tensorflow,wchan/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,anilmuthineni/tensorflow,lakshayg/tensorflow,moonboots/tensorflow,cg31/tensorflow,lukeiwanski/tensorflow-opencl,with-git/tensorflow,nburn42/tensorflow,admcrae/tensorflow,andrewcmyers/tensorflow,laszlocsomor/tensorflow,DCSaunders/tensorflow,raymondxyang/tensorflow,jeffzheng1/tensorflow,markslwong/tensorflow,Intel-Corporation/tensorflow,snnn/tensorflow,calebfoss/tensorflow,maciekcc/tensorflow,alheinecke/tensorflow-xsmm,rabipanda/tensorflow,kamcpp/tensorflow,apark263/tensorflow,Carmezim/tensorflow,tillahoffmann/tensorflow,karllessard/tensorflow,asadziach/tensorflow,ghchinoy/tensorflow,hlt-mt/tensorflow,brchiu/tensorflow,frreiss/tensorflow-fred,manazhao/tf_recsys,abhitopia/tensorflow,alisidd/tensorflow,memo/tensorflow,sarvex/tensorflow,krikru/tensorflow-opencl,caisq/tensorflow,unsiloai/syntaxnet-ops-hack,AnishShah/tensorflow,benoitsteiner/tensorflow-xsmm,juharris/tensorflow,benoitsteiner/tensorflow-xsmm,petewarden/tensorflow,theflofly/tensorflow,Moriadry/tensorflow,mengxn/tensorflow,peterbraden/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,annarev/tensorflow,awni/tensorflow,JinXinDeep/tensorflow,gunan/tensorflow,laosiaudi/tensorflow,alshedivat/tensorflow,ishay2b/tensorflow,jalexvig/tensorflow,benoitsteiner/tensorflow-xsmm,karllessard/tensorflow,Intel-Corporation/tensorflow,RapidApplicationDevelopment/tensorflow,snnn/tensorflow,ychfan/tensorflow,aam-at/tensorflow,a-doumoulakis/tensorflow,a-doumoulakis/tensorflow,av8ramit/tensorflow,naturali/tensorflow,wangyum/tensorflow,handroissuazo/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ArtsiomCh/tensorflow,aselle/tensorflow,awni/tensorflow,gnieboer/tensorflow,tomasreimers/tensorflow-emscripten,panmari/tensorflow,xodus7/tensorflow,Xeralux/tensorflow,lukas-krecan/tensorflow,ibmsoe/tensorflow,naturali/tensorflow,chenjun0210/tensorflow,memo/tensorflow,alivecor/tensorflow,tongwang01/tensorflow,eerwitt/tensorflow,RapidApplicationDevelopment/tensorflow,HKUST-SING/tensorflow,alsrgv/tensorflow,jendap/tensorflow,theflofly/tensorflow,benoitsteiner/tensorflow,johndpope/tensorflow,tensorflow/tensorflow,hlt-mt/tensorflow,haeusser/tensorflow,ibab/tensorflow,girving/tensorflow,alistairlow/tensorflow,alisidd/tensorflow,jart/tensorflow,SnakeJenny/TensorFlow,ychfan/tensorflow,ran5515/DeepDecision,benoitsteiner/tensorflow-opencl,dancingdan/tensorflow,a-doumoulakis/tensorflow,johndpope/tensorflow,with-git/tensorflow,sandeepdsouza93/TensorFlow-15712,manipopopo/tensorflow,Mistobaan/tensorflow,rabipanda/tensorflow,kamcpp/tensorflow,with-git/tensorflow,hehongliang/tensorflow,benoitsteiner/tensorflow-opencl,ran5515/DeepDecision,kevin-coder/tensorflow-fork,whn09/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,zycdragonball/tensorflow,dhalleine/tensorflow,drpngx/tensorflow,neilhan/tensorflow,nanditav/15712-TensorFlow,ibab/tensorflow,alsrgv/tensorflow,asadziach/tensorflow,cg31/tensorflow,Xeralux/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,dendisuhubdy/tensorflow,hlt-mt/tensorflow,mortada/tensorflow,ppwwyyxx/tensorflow,mavenlin/tensorflow,zasdfgbnm/tensorflow,seanli9jan/tensorflow,zycdragonball/tensorflow,LUTAN/tensorflow,kchodorow/tensorflow,Intel-Corporation/tensorflow,andrewcmyers/tensorflow,karllessard/tensorflow,brchiu/tensorflow,chenjun0210/tensorflow,ghchinoy/tensorflow,jart/tensorflow,alivecor/tensorflow,seaotterman/tensorflow,horance-liu/tensorflow,ArtsiomCh/tensorflow,arborh/tensorflow,annarev/tensorflow,Mazecreator/tensorflow,dongjoon-hyun/tensorflow,SnakeJenny/TensorFlow,JingJunYin/tensorflow,MycChiu/tensorflow,dhalleine/tensorflow,taknevski/tensorflow-xsmm,jart/tensorflow,frreiss/tensorflow-fred,lukeiwanski/tensorflow-opencl,AndreasMadsen/tensorflow,benoitsteiner/tensorflow,kamcpp/tensorflow,yanchen036/tensorflow,manipopopo/tensorflow,alshedivat/tensorflow,meteorcloudy/tensorflow,seaotterman/tensorflow,renyi533/tensorflow,allenlavoie/tensorflow,aam-at/tensorflow,snnn/tensorflow,kchodorow/tensorflow,pierreg/tensorflow,code-sauce/tensorflow,yongtang/tensorflow,yongtang/tensorflow,allenlavoie/tensorflow,llhe/tensorflow,cancan101/tensorflow,unsiloai/syntaxnet-ops-hack,jbedorf/tensorflow,laosiaudi/tensorflow,odejesush/tensorflow,thjashin/tensorflow,mortada/tensorflow,gunan/tensorflow,yufengg/tensorflow,cg31/tensorflow,lakshayg/tensorflow,benoitsteiner/tensorflow-opencl,laszlocsomor/tensorflow,petewarden/tensorflow,dongjoon-hyun/tensorflow,whn09/tensorflow,DCSaunders/tensorflow,aam-at/tensorflow,JinXinDeep/tensorflow,zasdfgbnm/tensorflow,tntnatbry/tensorflow,alistairlow/tensorflow,Bulochkin/tensorflow_pack,TakayukiSakai/tensorflow,laszlocsomor/tensorflow,caisq/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,llhe/tensorflow,eaplatanios/tensorflow,brchiu/tensorflow,mixturemodel-flow/tensorflow,ZhangXinNan/tensorflow,MostafaGazar/tensorflow,JVillella/tensorflow,Bismarrck/tensorflow,asadziach/tensorflow,theflofly/tensorflow,RapidApplicationDevelopment/tensorflow,ivano666/tensorflow,MostafaGazar/tensorflow,av8ramit/tensorflow,alistairlow/tensorflow,xodus7/tensorflow,wchan/tensorflow,eadgarchen/tensorflow,MostafaGazar/tensorflow,ivano666/tensorflow,taknevski/tensorflow-xsmm,taknevski/tensorflow-xsmm,benoitsteiner/tensorflow,aam-at/tensorflow,tornadozou/tensorflow,laosiaudi/tensorflow,ageron/tensorflow,thesuperzapper/tensorflow,RapidApplicationDevelopment/tensorflow,Intel-tensorflow/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,nightjean/Deep-Learning,av8ramit/tensorflow,lakshayg/tensorflow,HKUST-SING/tensorflow,ZhangXinNan/tensorflow,DCSaunders/tensorflow,lukas-krecan/tensorflow,manjunaths/tensorflow,MoamerEncsConcordiaCa/tensorflow,jhseu/tensorflow,anand-c-goog/tensorflow,jostep/tensorflow,vrv/tensorflow,thjashin/tensorflow,tornadozou/tensorflow,moonboots/tensorflow,ZhangXinNan/tensorflow,moonboots/tensorflow,lukas-krecan/tensorflow,aldian/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,jwlawson/tensorflow,av8ramit/tensorflow,bowang/tensorflow,abhitopia/tensorflow,RapidApplicationDevelopment/tensorflow,gunan/tensorflow,neilhan/tensorflow,XueqingLin/tensorflow,jendap/tensorflow,MoamerEncsConcordiaCa/tensorflow,4Quant/tensorflow,kobejean/tensorflow,neilhan/tensorflow,AnishShah/tensorflow,gnieboer/tensorflow,admcrae/tensorflow,snnn/tensorflow,gnieboer/tensorflow,dhalleine/tensorflow,Bulochkin/tensorflow_pack,dendisuhubdy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DCSaunders/tensorflow,JVillella/tensorflow,alisidd/tensorflow,anand-c-goog/tensorflow,gojira/tensorflow,JingJunYin/tensorflow,theflofly/tensorflow,gnieboer/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ibab/tensorflow,mengxn/tensorflow,gautam1858/tensorflow,HaebinShin/tensorflow,suiyuan2009/tensorflow,with-git/tensorflow,aam-at/tensorflow,yanchen036/tensorflow,yanchen036/tensorflow,jendap/tensorflow,Carmezim/tensorflow,mrry/tensorflow,thesuperzapper/tensorflow,hfp/tensorflow-xsmm,ppries/tensorflow,strint/tensorflow,JVillella/tensorflow,benoitsteiner/tensorflow,haeusser/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,DavidNorman/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,abhitopia/tensorflow,peterbraden/tensorflow,av8ramit/tensorflow,yongtang/tensorflow,zycdragonball/tensorflow,llhe/tensorflow,thesuperzapper/tensorflow,ivano666/tensorflow,renyi533/tensorflow,chris-chris/tensorflow,sarvex/tensorflow,alisidd/tensorflow,JingJunYin/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,nanditav/15712-TensorFlow,kamcpp/tensorflow,ibmsoe/tensorflow,AnishShah/tensorflow,ghchinoy/tensorflow,with-git/tensorflow,gojira/tensorflow,xodus7/tensorflow,caisq/tensorflow,zycdragonball/tensorflow,benoitsteiner/tensorflow-xsmm,HaebinShin/tensorflow,nolanliou/tensorflow,laosiaudi/tensorflow,eaplatanios/tensorflow,memo/tensorflow,odejesush/tensorflow,JingJunYin/tensorflow,freedomtan/tensorflow,4Quant/tensorflow,sandeepgupta2k4/tensorflow,Mazecreator/tensorflow,ageron/tensorflow,asimshankar/tensorflow,mengxn/tensorflow,asimshankar/tensorflow,mavenlin/tensorflow,ZhangXinNan/tensorflow,tiagofrepereira2012/tensorflow,ghchinoy/tensorflow,seanli9jan/tensorflow,ppwwyyxx/tensorflow,jalexvig/tensorflow,jbedorf/tensorflow,Xeralux/tensorflow,strint/tensorflow,allenlavoie/tensorflow,jostep/tensorflow,laszlocsomor/tensorflow,DavidNorman/tensorflow,eadgarchen/tensorflow,kobejean/tensorflow,Intel-tensorflow/tensorflow,martinbede/second-sight,moonboots/tensorflow,manazhao/tf_recsys,tensorflow/tensorflow-pywrap_tf_optimizer,thjashin/tensorflow,annarev/tensorflow,paolodedios/tensorflow,anand-c-goog/tensorflow,AndreasMadsen/tensorflow,alivecor/tensorflow,petewarden/tensorflow_makefile,ravindrapanda/tensorflow,Moriadry/tensorflow,ishay2b/tensorflow,ishay2b/tensorflow,elingg/tensorflow,lukeiwanski/tensorflow,renyi533/tensorflow,nikste/tensorflow,lukeiwanski/tensorflow,ran5515/DeepDecision,scenarios/tensorflow,jendap/tensorflow,tillahoffmann/tensorflow,Mistobaan/tensorflow,theflofly/tensorflow,AndreasMadsen/tensorflow,XueqingLin/tensorflow,hlt-mt/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow,zasdfgbnm/tensorflow,meteorcloudy/tensorflow,annarev/tensorflow,laszlocsomor/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,tongwang01/tensorflow,raymondxyang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,benoitsteiner/tensorflow,jart/tensorflow,SnakeJenny/TensorFlow,manazhao/tf_recsys,manjunaths/tensorflow,vrv/tensorflow,petewarden/tensorflow,lukeiwanski/tensorflow,gojira/tensorflow,kamcpp/tensorflow,ran5515/DeepDecision,alshedivat/tensorflow,nolanliou/tensorflow,gunan/tensorflow,gautam1858/tensorflow,hlt-mt/tensorflow,sjperkins/tensorflow,alivecor/tensorflow,ArtsiomCh/tensorflow,theflofly/tensorflow,jostep/tensorflow,yongtang/tensorflow,Xeralux/tensorflow,alheinecke/tensorflow-xsmm,TakayukiSakai/tensorflow,sandeepdsouza93/TensorFlow-15712,raymondxyang/tensorflow,scenarios/tensorflow,ninotoshi/tensorflow,alsrgv/tensorflow,snnn/tensorflow,jhseu/tensorflow,ppries/tensorflow,Bismarrck/tensorflow,markslwong/tensorflow,jhaux/tensorflow,annarev/tensorflow,eadgarchen/tensorflow,RyanYoung25/tensorflow,alsrgv/tensorflow,lakshayg/tensorflow,EvenStrangest/tensorflow,moonboots/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,laosiaudi/tensorflow,tillahoffmann/tensorflow,dhalleine/tensorflow,nburn42/tensorflow,ville-k/tensorflow,gautam1858/tensorflow,gojira/tensorflow,a-doumoulakis/tensorflow,asadziach/tensorflow,arborh/tensorflow,mrry/tensorflow,sandeepgupta2k4/tensorflow,arborh/tensorflow,paolodedios/tensorflow,4Quant/tensorflow,brchiu/tensorflow,llhe/tensorflow,tensorflow/tensorflow,dendisuhubdy/tensorflow,ychfan/tensorflow,johndpope/tensorflow,ageron/tensorflow,suiyuan2009/tensorflow,manipopopo/tensorflow,raymondxyang/tensorflow,chemelnucfin/tensorflow,AndreasMadsen/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,dyoung418/tensorflow,hsaputra/tensorflow,nburn42/tensorflow,davidzchen/tensorflow,code-sauce/tensorflow,TakayukiSakai/tensorflow,odejesush/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,raymondxyang/tensorflow,memo/tensorflow,unsiloai/syntaxnet-ops-hack,ninotoshi/tensorflow,Kongsea/tensorflow,laszlocsomor/tensorflow,HaebinShin/tensorflow,drpngx/tensorflow,zycdragonball/tensorflow,kchodorow/tensorflow,yufengg/tensorflow,chemelnucfin/tensorflow,ibab/tensorflow,jbedorf/tensorflow,vrv/tensorflow,andrewcmyers/tensorflow,petewarden/tensorflow_makefile,krikru/tensorflow-opencl,Xeralux/tensorflow,ville-k/tensorflow,xodus7/tensorflow,guschmue/tensorflow,adamtiger/tensorflow,manipopopo/tensorflow,tntnatbry/tensorflow,ageron/tensorflow,scenarios/tensorflow,hsaputra/tensorflow,gunan/tensorflow,nburn42/tensorflow,dancingdan/tensorflow,moonboots/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,RapidApplicationDevelopment/tensorflow,tntnatbry/tensorflow,a-doumoulakis/tensorflow,hfp/tensorflow-xsmm,xodus7/tensorflow,aselle/tensorflow,jeffzheng1/tensorflow,kevin-coder/tensorflow-fork,freedomtan/tensorflow,guschmue/tensorflow,ibab/tensorflow,annarev/tensorflow,seaotterman/tensorflow,manipopopo/tensorflow,alivecor/tensorflow,rabipanda/tensorflow,taknevski/tensorflow-xsmm,arborh/tensorflow,sarvex/tensorflow,cancan101/tensorflow,alistairlow/tensorflow,av8ramit/tensorflow,anand-c-goog/tensorflow,MoamerEncsConcordiaCa/tensorflow,DavidNorman/tensorflow,Mistobaan/tensorflow,AndreasMadsen/tensorflow,adit-chandra/tensorflow,shreyasva/tensorflow,sjperkins/tensorflow,Mazecreator/tensorflow,vrv/tensorflow,jwlawson/tensorflow,memo/tensorflow,wangyum/tensorflow,mdrumond/tensorflow,jostep/tensorflow,adit-chandra/tensorflow,martinbede/second-sight,Bismarrck/tensorflow,kamcpp/tensorflow,yaroslavvb/tensorflow,alheinecke/tensorflow-xsmm,bowang/tensorflow,4Quant/tensorflow,horance-liu/tensorflow,jart/tensorflow,johndpope/tensorflow,eaplatanios/tensorflow,Mazecreator/tensorflow,sandeepdsouza93/TensorFlow-15712,hfp/tensorflow-xsmm,jhaux/tensorflow,yongtang/tensorflow,lukas-krecan/tensorflow,benoitsteiner/tensorflow-xsmm,tomasreimers/tensorflow-emscripten,Carmezim/tensorflow,hfp/tensorflow-xsmm,with-git/tensorflow,tillahoffmann/tensorflow,ychfan/tensorflow,aam-at/tensorflow,chris-chris/tensorflow,MoamerEncsConcordiaCa/tensorflow,zycdragonball/tensorflow,drpngx/tensorflow,XueqingLin/tensorflow,ville-k/tensorflow,kamcpp/tensorflow,markslwong/tensorflow,Mistobaan/tensorflow,xzturn/tensorflow,strint/tensorflow,handroissuazo/tensorflow,adamtiger/tensorflow,horance-liu/tensorflow,dyoung418/tensorflow,gojira/tensorflow,zasdfgbnm/tensorflow,gojira/tensorflow
|
d456379d6c183b97b5fecae6f256fd6c931fcf04
|
include/rapidcheck-catch.h
|
include/rapidcheck-catch.h
|
#pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the property.
template <typename Testable>
void prop(const std::string &description, Testable &&testable) {
using namespace detail;
SECTION(description) {
const auto result = checkTestable(std::forward<Testable>(testable));
std::ostringstream ss;
printResultMessage(result, ss);
INFO(ss.str() << "\n");
if (!result.template is<SuccessResult>()) {
FAIL();
}
}
}
} // namespace rc
|
#pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the property.
template <typename Testable>
void prop(const std::string &description, Testable &&testable) {
using namespace detail;
SECTION(description) {
const auto result = checkTestable(std::forward<Testable>(testable));
if (result.template is<SuccessResult>()) {
const auto success = result.template get<SuccessResult>();
if (!success.distribution.empty()) {
std::cout << "- " << description << std::endl;
printResultMessage(result, std::cout);
std::cout << std::endl;
}
} else {
std::ostringstream ss;
printResultMessage(result, ss);
INFO(ss.str() << "\n");
FAIL();
}
}
}
} // namespace rc
|
Add printing of distribution to catch.hpp integration
|
Add printing of distribution to catch.hpp integration
|
C
|
bsd-2-clause
|
unapiedra/rapidfuzz,unapiedra/rapidfuzz,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck
|
6031c76c7967b748fa9f6fddf7d042bda3e2e5de
|
smbase/intstack.h
|
smbase/intstack.h
|
// intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list, with prepend and removeAt(0)
IntList<T> list;
public: // funcs
IntStack() : list() {}
~IntStack() {}
int count() const { return list.count(); }
bool isEmpty() const { return list.isEmpty(); }
bool isNotEmpty() const { return list.isNotEmpty(); }
T top() { return list.first(); }
T pop() { return list.removeAt(0); }
void delPop() { list.deleteAt(0); }
void push(T item) { list.prepend(item); }
void clear() { list.deleteAll(); }
bool contains(T const item) const { return list.contains((void*)item); }
};
#endif // INTSTACK_H
|
// intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list, with prepend and removeAt(0)
IntList<T> list;
public: // funcs
IntStack() : list() {}
~IntStack() {}
int count() const { return list.count(); }
bool isEmpty() const { return list.isEmpty(); }
bool isNotEmpty() const { return list.isNotEmpty(); }
T top() { return list.first(); }
// peek at nth item (linear time)
T nth(int which) { return list.nth(which); }
T pop() { return list.removeAt(0); }
void delPop() { list.deleteAt(0); }
void push(T item) { list.prepend(item); }
void clear() { list.deleteAll(); }
bool contains(T const item) const { return list.contains((void*)item); }
};
#endif // INTSTACK_H
|
Add IntStack::nth() for peeking at Nth item
|
Add IntStack::nth() for peeking at Nth item
|
C
|
bsd-3-clause
|
angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar
|
85854585eba837646ecd0977e65c95be89c53818
|
firmlaunch.h
|
firmlaunch.h
|
#ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32* search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
|
#ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32 search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
|
Fix my stupid error :/
|
Fix my stupid error :/
|
C
|
mit
|
fox8091/libFirmlaunch,fox8091/libFirmlaunch
|
fa7c9bc2318b195aa8218e51e8f1c4b1f52ac43e
|
src/math/p_acos.c
|
src/math/p_acos.c
|
#include <pal.h>
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
* @param n Size of 'a' and 'c' vector.
*
* @return None
*
*/
#include <math.h>
void p_acos_f32(const float *a, float *c, int n)
{
int i;
for (i = 0; i < n; i++) {
*(c + i) = acosf(*(a + i));
}
}
|
#include <math.h>
#include <pal.h>
static const float pi_2 = (float) M_PI / 2.f;
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
* @param n Size of 'a' and 'c' vector.
*
* @return None
*
*/
void p_acos_f32(const float *a, float *c, int n)
{
int i;
float tmp;
/* acos x = pi/2 - asin x */
p_asin_f32(a, c, n);
for (i = 0; i < n; i++) {
tmp = pi_2 - c[i];
c[i] = tmp;
}
}
|
Implement the inverse cosine function.
|
math:acos: Implement the inverse cosine function.
Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
|
C
|
apache-2.0
|
debug-de-su-ka/pal,parallella/pal,eliteraspberries/pal,aolofsson/pal,aolofsson/pal,Adamszk/pal3,debug-de-su-ka/pal,eliteraspberries/pal,eliteraspberries/pal,parallella/pal,mateunho/pal,debug-de-su-ka/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,olajep/pal,8l/pal,Adamszk/pal3,8l/pal,parallella/pal,debug-de-su-ka/pal,8l/pal,eliteraspberries/pal,aolofsson/pal,parallella/pal,eliteraspberries/pal,olajep/pal,parallella/pal,mateunho/pal,olajep/pal,aolofsson/pal,8l/pal,olajep/pal,Adamszk/pal3,mateunho/pal,Adamszk/pal3
|
90da898d0f4e4b3e664a081be92141e61b28fc46
|
You-DataStore/datastore.h
|
You-DataStore/datastore.h
|
#pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
void post(TaskId, SerializedTask&);
void put(TaskId, SerializedTask&);
void erase(TaskId);
std::vector<SerializedTask> getAllTask();
void notify();
private:
bool isServing = false;
std::shared_ptr<Transaction> activeTransaction;
std::stack<std::shared_ptr<Transaction> > transactionStack;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
|
#pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
void post(TaskId, const SerializedTask&);
void put(TaskId, const SerializedTask&);
void erase(TaskId);
std::vector<SerializedTask> getAllTask();
void notify();
private:
bool isServing = false;
std::shared_ptr<Transaction> activeTransaction;
std::stack<std::shared_ptr<Transaction> > transactionStack;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
|
Add const modifier to post and put method of DataStore
|
Add const modifier to post and put method of DataStore
|
C
|
mit
|
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
|
75338467e66fd3c862a0a48363c3f4681f30180a
|
OCDSpec/OCDSpecDescriptionRunner.h
|
OCDSpec/OCDSpecDescriptionRunner.h
|
#import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount;
id specProtocol;
id baseClass;
int successes;
int failures;
}
@property(nonatomic, assign) id specProtocol;
@property(nonatomic, assign) id baseClass;
@property(readonly) int successes;
@property(readonly) int failures;
-(void) runAllDescriptions;
@end
#define CONTEXT(classname) \
void descriptionOf##classname();\
@interface TestRunner##classname : AbstractDescriptionRunner \
@end\
@implementation TestRunner##classname\
+(int) getFailures \
{ \
return [[OCDSpecSharedResults sharedResults].failures intValue];\
} \
+(int)getSuccesses \
{ \
return [[OCDSpecSharedResults sharedResults].successes intValue];\
} \
+(void) run \
{ \
descriptionOf##classname(); \
} \
@end \
void descriptionOf##classname()
|
#import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/Abstract/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount;
id specProtocol;
id baseClass;
int successes;
int failures;
}
@property(nonatomic, assign) id specProtocol;
@property(nonatomic, assign) id baseClass;
@property(readonly) int successes;
@property(readonly) int failures;
-(void) runAllDescriptions;
@end
#define CONTEXT(classname) \
void descriptionOf##classname();\
@interface TestRunner##classname : AbstractDescriptionRunner \
@end\
@implementation TestRunner##classname\
+(int) getFailures \
{ \
return [[OCDSpecSharedResults sharedResults].failures intValue];\
} \
+(int)getSuccesses \
{ \
return [[OCDSpecSharedResults sharedResults].successes intValue];\
} \
+(void) run \
{ \
descriptionOf##classname(); \
} \
@end \
void descriptionOf##classname()
|
Correct the project for the move
|
Correct the project for the move
|
C
|
mit
|
paytonrules/OCDSpec,paytonrules/OCDSpec
|
0da6fb4d36a340b36f6153c66bcd432982abf1dd
|
src/python/pylogger.h
|
src/python/pylogger.h
|
#ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
virtual void write(const std::string& s) {
std::string ss = "sys.stdout.write(\"\"\"";
ss += s;
ss += "\"\"\")";
PyRun_SimpleString(ss.c_str());
PyRun_SimpleString("sys.stdout.flush()");
}
virtual void error(const std::string& msg) {
std::string err = "raise \""+msg+"\"";
PyRun_SimpleString((char*)err.c_str());
}
};
}
#endif
|
#ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
virtual void write(const std::string& s) {
std::string ss = "sys.stdout.write(\"\"\"";
ss += s;
ss += "\"\"\")";
PyRun_SimpleString(ss.c_str());
PyRun_SimpleString("sys.stdout.flush()");
}
virtual void error(const std::string& msg) {
std::string err = "raise Exception(\"\"\""+msg+"\"\"\")";
PyRun_SimpleString(err.c_str());
}
};
}
#endif
|
Fix Py_Logger to raise instances of Exception instead of strings
|
Fix Py_Logger to raise instances of Exception instead of strings
Raising string exceptions was removed in Python 2.6
|
C
|
bsd-3-clause
|
imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,Heathckliff/cantera,imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,Heathckliff/cantera
|
54ec1c1815f4ca6306eceac7b3297aa970962ec0
|
src/enums.h
|
src/enums.h
|
#ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
|
#ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax,
MidiValues
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
|
Add custom data role MidiValues
|
Add custom data role MidiValues
|
C
|
mit
|
charlesfleche/lpd8-editor,charlesfleche/lpd8-editor
|
b6a04637c81e41c348e985c78f3e9f3009a19826
|
hello_mpi.c
|
hello_mpi.c
|
#include <stdio.h>
#include <mpi.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);
// printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);
if (rank == 0) {
printf("I'm master\n");
int slaves_rank = -1;
int i;
struct MPI_Status status;
for (i = 1; i < numprocs; i++) {
MPI_Recv(&slaves_rank, 1, MPI_INT, i,10111, MPI_COMM_WORLD, &status);
printf("Master got reply from %d and status is: %d\n", slaves_rank,
status.MPI_ERROR);
}
}
else {
printf("Only a slave\n");
MPI_Send((void*)&rank, 1, MPI_INT, 0, 10111, MPI_COMM_WORLD);
}
MPI_Finalize();
return 0;
}
|
#include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);
// printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);
if (rank == 0) {
printf("I'm master\n");
int slaves_rank = -1;
int i;
MPI_Status status;
MPI_Request request;
for (i = 1; i < numprocs; i++) {
MPI_Irecv(&slaves_rank, 1, MPI_INT, i, 10111, MPI_COMM_WORLD, &request);
MPI_Wait(&request, &status);
printf("Master got reply from %d and request is: %d\n", slaves_rank,
request);
}
}
else {
MPI_Request request;
MPI_Isend((void*)&rank, 1, MPI_INT, 0, 10111, MPI_COMM_WORLD, &request);
printf("Only a slave - with request %d\n", request);
}
MPI_Finalize();
return 0;
}
|
Convert from MPI_Send/Recv, to MPI_ISend/IRecv
|
Convert from MPI_Send/Recv, to MPI_ISend/IRecv
|
C
|
mit
|
Convolution-filter/convolution-filter-MPI
|
fe85b79dbc358dc3ecddf77f33621798541f358f
|
src/forces/label_state.h
|
src/forces/label_state.h
|
#ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label's size, text and its id.
*
* It also stores the last force values for debugging purposes.
*/
class LabelState
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabelState(int id, std::string text, Eigen::Vector3f anchorPosition,
Eigen::Vector2f size);
const int id;
Eigen::Vector3f anchorPosition;
Eigen::Vector3f labelPosition;
Eigen::Vector2f size;
Eigen::Vector2f anchorPosition2D;
Eigen::Vector2f labelPosition2D;
float labelPositionDepth;
const std::string text;
std::map<Force *, Eigen::Vector2f> forces;
};
} // namespace Forces
#endif // SRC_FORCES_LABEL_STATE_H_
|
#ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label's size, text and its id.
*
* It also stores the last force values for debugging purposes.
*/
class LabelState
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabelState(int id, std::string text, Eigen::Vector3f anchorPosition,
Eigen::Vector2f size);
int id;
Eigen::Vector3f anchorPosition;
Eigen::Vector3f labelPosition;
Eigen::Vector2f size;
Eigen::Vector2f anchorPosition2D;
Eigen::Vector2f labelPosition2D;
float labelPositionDepth;
std::string text;
std::map<Force *, Eigen::Vector2f> forces;
};
} // namespace Forces
#endif // SRC_FORCES_LABEL_STATE_H_
|
Remove const modifier from LabelState members.
|
Remove const modifier from LabelState members.
This enables move and move assignment, which is necessary for
containers.
|
C
|
mit
|
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
|
8532fe7dbbe4425a76bdd945a342714624f8673c
|
webkit/glue/webkit_constants.h
|
webkit/glue/webkit_constants.h
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 1.0;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 0.004;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
|
Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
|
Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility impact of this change.
BUG=66078
TEST=none (tested manually with minimal test case)
Review URL: http://codereview.chromium.org/6546021
TBR=kbr@google.com
Review URL: http://codereview.chromium.org/6538073
git-svn-id: http://src.chromium.org/svn/trunk/src@75490 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: dbdcd34d8dfea30fcfcbb176db89e2a14f88eabc
|
C
|
bsd-3-clause
|
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser
|
784e657183e783a2db4c42e18d1e2224e408b052
|
src/botansqlite3/botansqlite3.c
|
src/botansqlite3/botansqlite3.c
|
/*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wfloat-equal"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wmissing-prototypes"
#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
#pragma clang diagnostic ignored "-Wparentheses-equality"
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wundef"
#pragma clang diagnostic ignored "-Wunreachable-code"
#pragma clang diagnostic ignored "-Wunreachable-code-break"
#pragma clang diagnostic ignored "-Wunused-macros"
#pragma clang diagnostic ignored "-Wunused-function"
#pragma clang diagnostic ignored "-Wunused-value"
#include "../sqlite3.c"
#pragma clang diagnostic pop
#include "codecext.c"
|
/*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wfloat-equal"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wmissing-prototypes"
#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
#pragma clang diagnostic ignored "-Wparentheses-equality"
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wundef"
#pragma clang diagnostic ignored "-Wunreachable-code"
#pragma clang diagnostic ignored "-Wunreachable-code-break"
#pragma clang diagnostic ignored "-Wunused-macros"
#pragma clang diagnostic ignored "-Wunused-function"
#pragma clang diagnostic ignored "-Wunused-value"
#endif
#include "../sqlite3.c"
#if defined __clang__
#pragma clang diagnostic pop
#endif
#include "codecext.c"
|
Fix unknown pragma warnings on MSVC
|
Fix unknown pragma warnings on MSVC
|
C
|
bsd-3-clause
|
kullo/smartsqlite,kullo/smartsqlite,kullo/smartsqlite
|
c62a4efe9492d867e281c2c680e0b8c185d9669b
|
eg/inc/LinkDef.h
|
eg/inc/LinkDef.h
|
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000/09/06 15:15:18 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TParticle-;
#pragma link C++ class TAttParticle;
#pragma link C++ class TPrimary;
#pragma link C++ class TGenerator-;
#pragma link C++ class TDatabasePDG+;
#pragma link C++ class TParticlePDG+;
#endif
|
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000/09/08 16:42:12 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TParticle-;
#pragma link C++ class TAttParticle+;
#pragma link C++ class TPrimary+;
#pragma link C++ class TGenerator+;
#pragma link C++ class TDatabasePDG+;
#pragma link C++ class TParticlePDG+;
#endif
|
Use option + for TAttParticle and TPrimary
|
Use option + for TAttParticle and TPrimary
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@932 27541ba8-7e3a-0410-8455-c3a389f83636
|
C
|
lgpl-2.1
|
nilqed/root,agarciamontoro/root,jrtomps/root,vukasinmilosevic/root,abhinavmoudgil95/root,zzxuanyuan/root,buuck/root,perovic/root,Dr15Jones/root,sawenzel/root,olifre/root,ffurano/root5,sawenzel/root,0x0all/ROOT,simonpf/root,agarciamontoro/root,sbinet/cxx-root,esakellari/root,omazapa/root,tc3t/qoot,mhuwiler/rootauto,ffurano/root5,georgtroska/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,krafczyk/root,sawenzel/root,veprbl/root,mattkretz/root,esakellari/root,bbockelm/root,bbockelm/root,ffurano/root5,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,strykejern/TTreeReader,gbitzes/root,buuck/root,satyarth934/root,georgtroska/root,zzxuanyuan/root,perovic/root,satyarth934/root,jrtomps/root,evgeny-boger/root,mkret2/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,olifre/root,karies/root,evgeny-boger/root,Y--/root,omazapa/root-old,arch1tect0r/root,mattkretz/root,olifre/root,bbockelm/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,davidlt/root,kirbyherm/root-r-tools,gbitzes/root,esakellari/root,dfunke/root,Duraznos/root,abhinavmoudgil95/root,thomaskeck/root,gganis/root,mattkretz/root,bbockelm/root,esakellari/my_root_for_test,simonpf/root,olifre/root,abhinavmoudgil95/root,BerserkerTroll/root,tc3t/qoot,evgeny-boger/root,evgeny-boger/root,bbockelm/root,karies/root,veprbl/root,perovic/root,veprbl/root,bbockelm/root,beniz/root,beniz/root,dfunke/root,mkret2/root,zzxuanyuan/root,mkret2/root,beniz/root,karies/root,kirbyherm/root-r-tools,root-mirror/root,buuck/root,esakellari/my_root_for_test,nilqed/root,georgtroska/root,gganis/root,Duraznos/root,davidlt/root,simonpf/root,nilqed/root,dfunke/root,mhuwiler/rootauto,dfunke/root,mattkretz/root,Dr15Jones/root,vukasinmilosevic/root,gbitzes/root,bbockelm/root,esakellari/my_root_for_test,sirinath/root,omazapa/root,mkret2/root,perovic/root,esakellari/my_root_for_test,jrtomps/root,pspe/root,omazapa/root-old,gganis/root,zzxuanyuan/root-compressor-dummy,mkret2/root,veprbl/root,simonpf/root,dfunke/root,davidlt/root,thomaskeck/root,Y--/root,esakellari/my_root_for_test,tc3t/qoot,thomaskeck/root,lgiommi/root,BerserkerTroll/root,smarinac/root,Y--/root,CristinaCristescu/root,sbinet/cxx-root,omazapa/root,mkret2/root,esakellari/my_root_for_test,evgeny-boger/root,mhuwiler/rootauto,satyarth934/root,pspe/root,abhinavmoudgil95/root,simonpf/root,alexschlueter/cern-root,Y--/root,omazapa/root-old,georgtroska/root,satyarth934/root,alexschlueter/cern-root,CristinaCristescu/root,krafczyk/root,omazapa/root,sirinath/root,sawenzel/root,davidlt/root,abhinavmoudgil95/root,omazapa/root-old,omazapa/root,vukasinmilosevic/root,CristinaCristescu/root,simonpf/root,cxx-hep/root-cern,Dr15Jones/root,jrtomps/root,gbitzes/root,smarinac/root,agarciamontoro/root,root-mirror/root,Dr15Jones/root,cxx-hep/root-cern,lgiommi/root,thomaskeck/root,vukasinmilosevic/root,sirinath/root,mattkretz/root,vukasinmilosevic/root,nilqed/root,nilqed/root,mhuwiler/rootauto,veprbl/root,beniz/root,CristinaCristescu/root,beniz/root,arch1tect0r/root,simonpf/root,olifre/root,buuck/root,agarciamontoro/root,omazapa/root-old,zzxuanyuan/root-compressor-dummy,krafczyk/root,0x0all/ROOT,krafczyk/root,sawenzel/root,smarinac/root,jrtomps/root,jrtomps/root,arch1tect0r/root,mhuwiler/rootauto,veprbl/root,davidlt/root,arch1tect0r/root,olifre/root,karies/root,zzxuanyuan/root,mattkretz/root,0x0all/ROOT,Duraznos/root,mkret2/root,omazapa/root-old,alexschlueter/cern-root,perovic/root,gbitzes/root,lgiommi/root,gbitzes/root,krafczyk/root,perovic/root,BerserkerTroll/root,satyarth934/root,arch1tect0r/root,root-mirror/root,gganis/root,sirinath/root,root-mirror/root,vukasinmilosevic/root,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,davidlt/root,pspe/root,BerserkerTroll/root,Y--/root,vukasinmilosevic/root,veprbl/root,cxx-hep/root-cern,abhinavmoudgil95/root,beniz/root,tc3t/qoot,dfunke/root,zzxuanyuan/root,omazapa/root-old,omazapa/root-old,abhinavmoudgil95/root,nilqed/root,Duraznos/root,mkret2/root,BerserkerTroll/root,krafczyk/root,Duraznos/root,esakellari/my_root_for_test,mkret2/root,strykejern/TTreeReader,evgeny-boger/root,lgiommi/root,root-mirror/root,arch1tect0r/root,mattkretz/root,gganis/root,kirbyherm/root-r-tools,CristinaCristescu/root,gbitzes/root,arch1tect0r/root,beniz/root,ffurano/root5,pspe/root,beniz/root,gbitzes/root,smarinac/root,kirbyherm/root-r-tools,lgiommi/root,Dr15Jones/root,Duraznos/root,gganis/root,agarciamontoro/root,esakellari/my_root_for_test,Duraznos/root,simonpf/root,zzxuanyuan/root,tc3t/qoot,sawenzel/root,davidlt/root,smarinac/root,davidlt/root,nilqed/root,buuck/root,lgiommi/root,sawenzel/root,abhinavmoudgil95/root,pspe/root,gganis/root,karies/root,olifre/root,veprbl/root,Duraznos/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,sawenzel/root,tc3t/qoot,CristinaCristescu/root,esakellari/root,dfunke/root,arch1tect0r/root,esakellari/my_root_for_test,tc3t/qoot,buuck/root,abhinavmoudgil95/root,bbockelm/root,karies/root,sirinath/root,omazapa/root-old,sirinath/root,zzxuanyuan/root,sbinet/cxx-root,gganis/root,root-mirror/root,strykejern/TTreeReader,krafczyk/root,arch1tect0r/root,perovic/root,simonpf/root,satyarth934/root,thomaskeck/root,kirbyherm/root-r-tools,pspe/root,lgiommi/root,cxx-hep/root-cern,karies/root,dfunke/root,alexschlueter/cern-root,gganis/root,olifre/root,beniz/root,lgiommi/root,zzxuanyuan/root,sbinet/cxx-root,cxx-hep/root-cern,cxx-hep/root-cern,esakellari/root,buuck/root,mattkretz/root,thomaskeck/root,agarciamontoro/root,lgiommi/root,mhuwiler/rootauto,strykejern/TTreeReader,buuck/root,veprbl/root,mhuwiler/rootauto,mkret2/root,strykejern/TTreeReader,zzxuanyuan/root,georgtroska/root,0x0all/ROOT,georgtroska/root,Duraznos/root,vukasinmilosevic/root,Dr15Jones/root,0x0all/ROOT,satyarth934/root,esakellari/root,pspe/root,vukasinmilosevic/root,buuck/root,smarinac/root,CristinaCristescu/root,jrtomps/root,sbinet/cxx-root,0x0all/ROOT,satyarth934/root,perovic/root,davidlt/root,satyarth934/root,lgiommi/root,abhinavmoudgil95/root,bbockelm/root,mattkretz/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,esakellari/root,alexschlueter/cern-root,karies/root,arch1tect0r/root,evgeny-boger/root,beniz/root,dfunke/root,alexschlueter/cern-root,Y--/root,pspe/root,ffurano/root5,agarciamontoro/root,omazapa/root,omazapa/root,jrtomps/root,Y--/root,agarciamontoro/root,dfunke/root,thomaskeck/root,mkret2/root,pspe/root,olifre/root,BerserkerTroll/root,nilqed/root,smarinac/root,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,CristinaCristescu/root,Y--/root,agarciamontoro/root,strykejern/TTreeReader,jrtomps/root,sbinet/cxx-root,perovic/root,root-mirror/root,lgiommi/root,jrtomps/root,strykejern/TTreeReader,zzxuanyuan/root-compressor-dummy,Y--/root,gbitzes/root,0x0all/ROOT,zzxuanyuan/root,sawenzel/root,mhuwiler/rootauto,CristinaCristescu/root,smarinac/root,0x0all/ROOT,mhuwiler/rootauto,ffurano/root5,smarinac/root,omazapa/root,sirinath/root,CristinaCristescu/root,sbinet/cxx-root,root-mirror/root,abhinavmoudgil95/root,evgeny-boger/root,krafczyk/root,evgeny-boger/root,root-mirror/root,mhuwiler/rootauto,smarinac/root,sawenzel/root,Dr15Jones/root,sirinath/root,tc3t/qoot,gganis/root,georgtroska/root,georgtroska/root,satyarth934/root,olifre/root,zzxuanyuan/root,gganis/root,mattkretz/root,sirinath/root,sbinet/cxx-root,perovic/root,sirinath/root,veprbl/root,thomaskeck/root,root-mirror/root,BerserkerTroll/root,gbitzes/root,vukasinmilosevic/root,sbinet/cxx-root,sbinet/cxx-root,nilqed/root,evgeny-boger/root,omazapa/root,esakellari/root,satyarth934/root,Y--/root,krafczyk/root,ffurano/root5,Duraznos/root,beniz/root,karies/root,Duraznos/root,root-mirror/root,omazapa/root-old,BerserkerTroll/root,esakellari/root,dfunke/root,omazapa/root,CristinaCristescu/root,perovic/root,karies/root,nilqed/root,esakellari/root,buuck/root,sirinath/root,nilqed/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,sawenzel/root,georgtroska/root,agarciamontoro/root,arch1tect0r/root,krafczyk/root,esakellari/my_root_for_test,esakellari/root,davidlt/root,BerserkerTroll/root,georgtroska/root,Y--/root,gbitzes/root,pspe/root,alexschlueter/cern-root,davidlt/root,thomaskeck/root,jrtomps/root,olifre/root,thomaskeck/root,bbockelm/root,krafczyk/root,veprbl/root,BerserkerTroll/root,pspe/root,georgtroska/root,karies/root,simonpf/root,omazapa/root,0x0all/ROOT,buuck/root,agarciamontoro/root,simonpf/root,BerserkerTroll/root
|
62f0dc07ed56e285e349a244ab402e20092b8eb0
|
frtstream/src/vespa/frtstream/frtserverstream.h
|
frtstream/src/vespa/frtstream/frtserverstream.h
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() {
return *request->GetReturn();
}
FRT_Value& nextOut() {
return request->GetParams()->GetValue(_nextOutValue++);
}
public:
FrtServerStream(FRT_RPCRequest* req) :
request(req),
_nextOutValue(0) {}
using FrtStream::operator<<;
using FrtStream::operator>>;
};
} //end namespace frtstream
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() override {
return *request->GetReturn();
}
FRT_Value& nextOut() override {
return request->GetParams()->GetValue(_nextOutValue++);
}
public:
FrtServerStream(FRT_RPCRequest* req) :
request(req),
_nextOutValue(0) {}
using FrtStream::operator<<;
using FrtStream::operator>>;
};
} //end namespace frtstream
|
Fix warnings hidden earlier due to including application headers as system includes
|
Fix warnings hidden earlier due to including application headers as system includes
|
C
|
apache-2.0
|
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
|
ab4d30fe039870d8912855a3550bf4b52fb262f2
|
srtp.h
|
srtp.h
|
#ifndef SRTP_H
#define SRTP_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t * sess, void *data, int len);
#endif
|
#ifndef SRTP_H
#define SRTP_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t *sess, void *data, int len);
#endif
|
Add <stdlib.h> to GStreamer code
|
Add <stdlib.h> to GStreamer code
Run clang-format on DTLS+SRTP
|
C
|
mit
|
pion/srtp
|
a1aadd55fb43e31407aecc4ebaf0258130a98238
|
include/asm-sparc64/kdebug.h
|
include/asm-sparc64/kdebug.h
|
#ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
static inline int register_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
static inline int unregister_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
extern void bad_trap(struct pt_regs *, long);
/* Grossly misnamed. */
enum die_val {
DIE_OOPS = 1,
DIE_DEBUG, /* ta 0x70 */
DIE_DEBUG_2, /* ta 0x71 */
DIE_DIE,
DIE_TRAP,
DIE_TRAP_TL1,
DIE_CALL,
DIE_PAGE_FAULT,
};
#endif
|
#ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
static inline int register_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
static inline int unregister_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
extern void bad_trap(struct pt_regs *, long);
/* Grossly misnamed. */
enum die_val {
DIE_OOPS = 1,
DIE_DEBUG, /* ta 0x70 */
DIE_DEBUG_2, /* ta 0x71 */
DIE_DIE,
DIE_TRAP,
DIE_TRAP_TL1,
DIE_CALL,
};
#endif
|
Kill unused DIE_PAGE_FAULT enum value.
|
[SPARC64]: Kill unused DIE_PAGE_FAULT enum value.
sparc64 got rid of the pagefault notifiers, so the enum value for them
can go away aswell.
Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
|
C
|
apache-2.0
|
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
|
de4ecf75c925661e8543a95d9a98c76d1382b5b1
|
examples/hello.c
|
examples/hello.c
|
#define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("You will see this WARNING message");
ZF_LOGI("You will NOT see this INFO message");
return 0;
}
|
#define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("You will see this WARNING message");
ZF_LOGI("You will NOT see this INFO message");
const char data[] =
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Aliquam pharetra orci id velit porttitor tempus.";
ZF_LOGW_MEM(data, sizeof(data), "Lorem ipsum at %p:", data);
return 0;
}
|
Add example for memory logging support
|
Add example for memory logging support
|
C
|
mit
|
wonder-mice/zf_log,wonder-mice/zf_log,wonder-mice/zf_log
|
a9865d3e8694bfe5f94e69fd87d6d90798578936
|
chapter-1/1-2-backslash-c.c
|
chapter-1/1-2-backslash-c.c
|
/**
* Exercise 1-2
*
* Experiment to find out what happens when prints's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <lizhineng@gmail.com>
* URL: https://zhineng.li
* File: 1-2-backslash-c.c
* Date: 2017-01-01
*/
#include <stdio.h>
main()
{
printf("hello, world\n\c");
}
|
/**
* Exercise 1-2
*
* Experiment to find out what happens when printfs's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <lizhineng@gmail.com>
* URL: https://zhineng.li
* File: 1-2-backslash-c.c
* Date: 2017-01-01
*/
#include <stdio.h>
main()
{
printf("hello, world\n\c");
}
|
Fix misspelling in execrise 2 in chapter 1
|
Fix misspelling in execrise 2 in chapter 1
|
C
|
mit
|
lizhineng/learning-the-c-programming-language
|
8bdf7b1d4d4534a373550ec20b6f4c8308094212
|
check_tests/eas_test_user.h
|
check_tests/eas_test_user.h
|
#ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("good.user@cstylianou.com")
// Password: "G00dP@55w0rd"
#endif
|
#ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("good.user@cstylianou.com")
// Password: "G00dP@55w0rd"
// #define TEST_ACCOUNT_ID ("bad.user@cstylianou.com")
#endif
|
Add in a bad user option. Exists in GConf but not on the server.
|
Add in a bad user option. Exists in GConf but not on the server.
|
C
|
lgpl-2.1
|
simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync
|
d60451381ed2d582505d55c6a5dedb4d22e3c23a
|
AFImage/Pod/AFImageCache.h
|
AFImage/Pod/AFImageCache.h
|
#import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Interface
@interface AFImageCache : NSObject
#pragma mark - Properties
// Allows overriding the creation of image cache operations.
@property (nonatomic, copy) AFImageCacheOperationCreateBlock imageCacheOperationCreateBlock;
#pragma mark - Static Methods
+ (id)sharedInstance;
#pragma mark - Instance Methods
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
@end // @interface AFImageCache
|
#import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Interface
@interface AFImageCache : NSObject
#pragma mark - Properties
// Allows overriding the creation of image cache operations.
@property (nonatomic, copy) AFImageCacheOperationCreateBlock imageCacheOperationCreateBlock;
#pragma mark - Static Methods
+ (instancetype)sharedInstance;
#pragma mark - Instance Methods
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
@end // @interface AFImageCache
|
Convert from id to instancetype
|
Convert from id to instancetype
|
C
|
mit
|
mlatham/AFImage
|
87fabd563cf81f09e61b006d07af03490b1092be
|
src/tests/eina_test_main.c
|
src/tests/eina_test_main.c
|
/* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#include "Eina.h"
#include "eina_suite.h"
START_TEST(eina_simple)
{
fail_if(!eina_init());
fail_if(eina_shutdown() != 0);
}
END_TEST
void eina_test_main(TCase *tc)
{
tcase_add_test(tc, eina_simple);
}
|
/* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#include "Eina.h"
#include "eina_suite.h"
#include <stdio.h>
START_TEST(eina_simple)
{
/* Eina_error as already been initialized by eina_hash
that was called by eina_mempool_init that's why we don't have 0 here */
fail_if(eina_init() != 2);
fail_if(eina_shutdown() != 1);
}
END_TEST
void eina_test_main(TCase *tc)
{
tcase_add_test(tc, eina_simple);
}
|
Fix test due to mempool internal change.
|
Fix test due to mempool internal change.
git-svn-id: 02e3ca972ab3b5e6aa10db2b13bd0ff52712197b@36223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
|
C
|
lgpl-2.1
|
jordemort/eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,jordemort/eina
|
fa009912d9b1df5b73e5807a263e4541756b9dfb
|
1337-617.c
|
1337-617.c
|
#include <util.h>
/*
* _1n17 is leet for init.
* This function initializes a 1337-617 repo.
* Meaning it creates a directory with the passed name
* In this directory it creates another one called `.1337-617`
* There it makes the first commit for the repo creation
*/
int _1n17 (char *restrict repo_name)
{
return 1;
}
|
#include <util.h>
/*
* _h45h stands for hash
* it simply creates a random hash of the passed length
*/
int _h45h (
const int length,
char *restrict hash
)
{
return 1;
}
/*
* c3c0_h45h stands for check hash
* Checks wether or not the passed hash has been used as a commit ID before
*/
int c3c0_h45h (const char *restrict hash)
{
return 1;
}
/*
* _1n17 is leet for init.
* This function initializes a 1337-617 repo.
* Meaning it creates a directory with the passed name
* In this directory it creates another one called `.1337-617`
* There it makes the first commit for the repo creation
*/
int _1n17 (char *restrict repo_name)
{
return 1;
}
|
Add definitons for some hash functions
|
Add definitons for some hash functions
|
C
|
mit
|
Kriegslustig/1337-617
|
d2508569281f2254caa9e12450010a50ab97e0a0
|
libkopete/kopeteversion.h
|
libkopete/kopeteversion.h
|
/*
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef _KOPETE_VERSION_H_
#define _KOPETE_VERSION_H_
#define KOPETE_VERSION_STRING "0.40.0"
#define KOPETE_VERSION_MAJOR 0
#define KOPETE_VERSION_MINOR 40
#define KOPETE_VERSION_RELEASE 0
#define KOPETE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
#define KOPETE_VERSION \
KOPETE_MAKE_VERSION(KOPETE_VERSION_MAJOR,KOPETE_VERSION_MINOR,KOPETE_VERSION_RELEASE)
#define KOPETE_IS_VERSION(a,b,c) ( KOPETE_VERSION >= KOPETE_MAKE_VERSION(a,b,c) )
#endif // _KOPETE_VERSION_H_
|
/*
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef _KOPETE_VERSION_H_
#define _KOPETE_VERSION_H_
#define KOPETE_VERSION_STRING "0.40.3"
#define KOPETE_VERSION_MAJOR 0
#define KOPETE_VERSION_MINOR 40
#define KOPETE_VERSION_RELEASE 3
#define KOPETE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
#define KOPETE_VERSION \
KOPETE_MAKE_VERSION(KOPETE_VERSION_MAJOR,KOPETE_VERSION_MINOR,KOPETE_VERSION_RELEASE)
#define KOPETE_IS_VERSION(a,b,c) ( KOPETE_VERSION >= KOPETE_MAKE_VERSION(a,b,c) )
#endif // _KOPETE_VERSION_H_
|
Update version string for next RC
|
Update version string for next RC
svn path=/trunk/KDE/kdenetwork/kopete/; revision=745111
|
C
|
lgpl-2.1
|
Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
|
8d9e49ed14c4fe40bbee51d6ae28867b72ff5f07
|
PodioKitCore/Common/PodioKitCore.h
|
PodioKitCore/Common/PodioKitCore.h
|
//
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKCKeychain.h"
#import "PKCKeychainTokenStore.h"
#import "PKCDatastore.h"
#import "PKCOAuth2Token.h"
#import "PKCFile.h"
#import "PKCPushCredential.h"
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
#import "PKCFile+UIImage.h"
#import "UIButton+PKCRemoteImage.h"
#import "UIImageView+PKCRemoteImage.h"
#endif
|
//
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKCKeychain.h"
#import "PKCKeychainTokenStore.h"
#import "PKCDatastore.h"
#import "PKCBaseAPI.h"
#import "PKCOAuth2Token.h"
#import "PKCFile.h"
#import "PKCPushCredential.h"
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
#import "PKCFile+UIImage.h"
#import "UIButton+PKCRemoteImage.h"
#import "UIImageView+PKCRemoteImage.h"
#endif
|
Include PKCBaseAPI in umbrella header
|
Include PKCBaseAPI in umbrella header
|
C
|
mit
|
podio/podio-objc-core,podio/podio-objc-core,podio/podio-objc-core
|
513ee4a749193cc8ba80666c852062bd7c9d2bf4
|
ext/opengl/glimpl.h
|
ext/opengl/glimpl.h
|
#ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usually 16 or 32 on today's high-end cards */
#define _MAX_VERTEX_ATTRIBS 64
extern VALUE g_default_glimpl;
struct glimpl {
struct glfunc_ptrs glfuncs;
int opengl_version[2]; /* major, minor */
char *opengl_extensions;
void * (* load_gl_function)(VALUE self, const char *name,int raise);
VALUE current_feed_buffer;
VALUE current_sel_buffer;
VALUE Vertex_ptr;
VALUE Normal_ptr;
VALUE Color_ptr;
VALUE Index_ptr;
VALUE TexCoord_ptr;
VALUE EdgeFlag_ptr;
VALUE FogCoord_ptr; /* OpenGL 1.4 */
VALUE SecondaryColor_ptr; /* OpenGL 1.4 */
VALUE VertexAttrib_ptr[_MAX_VERTEX_ATTRIBS];
VALUE error_checking;
VALUE inside_begin_end;
void *dl;
void * (* fptr_GetProcAddress)(const char *name);
};
#endif /* _GLIMPL_H_ */
|
#ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usually 16 or 32 on today's high-end cards */
#define _MAX_VERTEX_ATTRIBS 64
extern VALUE g_default_glimpl;
struct glimpl {
struct glfunc_ptrs glfuncs;
int opengl_version[2]; /* major, minor */
char *opengl_extensions;
void * (* load_gl_function)(VALUE self, const char *name,int raise);
VALUE current_feed_buffer;
VALUE current_sel_buffer;
VALUE Vertex_ptr;
VALUE Normal_ptr;
VALUE Color_ptr;
VALUE Index_ptr;
VALUE TexCoord_ptr;
VALUE EdgeFlag_ptr;
VALUE FogCoord_ptr; /* OpenGL 1.4 */
VALUE SecondaryColor_ptr; /* OpenGL 1.4 */
VALUE VertexAttrib_ptr[_MAX_VERTEX_ATTRIBS];
VALUE error_checking;
VALUE inside_begin_end;
void *dl;
void * (APIENTRY * fptr_GetProcAddress)(const char *name);
};
#endif /* _GLIMPL_H_ */
|
Fix call convention for wglGetProcAddress on Windows-i686
|
Fix call convention for wglGetProcAddress on Windows-i686
|
C
|
mit
|
larskanis/opengl,larskanis/opengl
|
ffb3fd2e84d778386e5da7b6d975cc4895dc2bd6
|
AssimpKit/Code/Model/SCNScene+AssimpImport.h
|
AssimpKit/Code/Model/SCNScene+AssimpImport.h
|
//
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (SCNScene*)assimpSceneNamed:(NSString*)name;
@end
|
//
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (instancetype)assimpSceneNamed:(NSString*)name;
@end
|
Use instancetype keyword for assimp method
|
Use instancetype keyword for assimp method
|
C
|
bsd-3-clause
|
dmsurti/AssimpKit
|
5b7106db8763b164b199fd9381cff9ba3445b9ff
|
src/parse.h
|
src/parse.h
|
// Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is PARSE_SUCCESS.
struct ParseResult {
size_t chars_read; // number of characters read
struct Expression expr; // parsed expression
int err_type; // PARSE_SUCCESS or a ParseErrorType value
};
// Parses a string as an s-expression of pairs, symbols, and numbers. On
// success, returns the parse result with 'err_type' set to PARSE_SUCCESS.
// Otherwise, returns a ParseErrorType in the result.
struct ParseResult parse(const char *text);
#endif
|
// Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
// Constant indicating that a parse was successful.
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is PARSE_SUCCESS.
struct ParseResult {
size_t chars_read; // number of characters read
struct Expression expr; // parsed expression
int err_type; // PARSE_SUCCESS or a ParseErrorType value
};
// Parses a string as an s-expression of pairs, symbols, and numbers. On
// success, returns the parse result with 'err_type' set to PARSE_SUCCESS.
// Otherwise, returns a ParseErrorType in the result.
struct ParseResult parse(const char *text);
#endif
|
Add comment for constant PARSE_SUCCESS
|
Add comment for constant PARSE_SUCCESS
|
C
|
mit
|
mk12/eva,mk12/eva
|
c4194bbe0dbae028bb35d465c4f6342c1d87b486
|
src/substr.c
|
src/substr.c
|
//
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#include <string.h>
char *substr(char *str, size_t begin, size_t len)
{
if (str == 0 || strlen(str) == 0)
return 0;
return strndup(str + begin, len);
}
|
//
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#define _NETBSD_SOURCE
#include <string.h>
char *substr(char *str, size_t begin, size_t len)
{
if (str == 0 || strlen(str) == 0)
return 0;
return strndup(str + begin, len);
}
|
Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
|
Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
|
C
|
bsd-2-clause
|
ansilove/AnsiLove-C,ansilove/ansilove
|
fd8a853dfba813b54ddb0eeebee14f9dc9fa5961
|
include/pipe/algorithm/pipe.h
|
include/pipe/algorithm/pipe.h
|
#pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std::move(gen));
}
}} // namespace pipe::algorithm
|
#pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm { namespace details {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std::move(gen));
}
}}} // namespace pipe::algorithm::details
|
Move operator| in details namespace
|
Move operator| in details namespace
|
C
|
mit
|
vladris/pipe,vladris/pipe
|
d351c50c960d6bad2469b08fd547936512c58a08
|
uart_echo.c
|
uart_echo.c
|
#include <avr/interrupt.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
|
#include <avr/interrupt.h>
#include <util/delay.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
DDRB = 0xFF;
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (1);
return 0;
}
|
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
|
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
|
C
|
mpl-2.0
|
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
|
c905615f0dd9db449f32f9a4adff40676e84b8a2
|
Reactor/MTRReactiveEngine.h
|
Reactor/MTRReactiveEngine.h
|
//
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReactive, and swizzles their
property setters/getters to add reactivity.
*/
+ (void)engage;
@end
|
//
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@protocol MTRReactive;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReactive, and swizzles their
property setters/getters to add reactivity.
*/
+ (void)engage;
/**
@brief Manually adds reactivity to marked classes
Use this method if you want to have on-demand reactification.
*/
+ (void)reactify:(Class<MTRReactive>)klass;
@end
|
Add feature to on-demand reactify classes
|
Add feature to on-demand reactify classes
|
C
|
mit
|
wzrad/Reactor,derkis/Reactor,derkis/Reactor
|
95acf0f82a339ca56201730369a9b641e72a4b20
|
arc/arc/Plugin/PluginDelegate.h
|
arc/arc/Plugin/PluginDelegate.h
|
//
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@protocol PluginDelegate <NSObject>
// Returns an array of NSStrings
// eg: [@"fontFamily", @"fontSize"]
@property (nonatomic, strong) NSArray *settingKeys;
// Returns a NSDictionary of properties for setting
// eg: [pluginInstance propertiesFor:@"fontFamily"]
// returns:
// {
// type: kMCQSettingType,
// values: [A, B, C, D]
// }
- (NSDictionary *)propertiesFor:(NSString *)settingKey;
// Returns Default Value for given setting
- (id<NSObject>)defaultValueFor:(NSString *)settingKey;
// Exec Method (Middleware)
+ (void)arcAttributedString:(ArcAttributedString*)arcAttributedString
ofFile:(id<File>)file
delegate:(id)delegate;
@end
|
//
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@protocol PluginDelegate <NSObject>
// Returns an array of NSStrings
// eg: [@"fontFamily", @"fontSize"]
@property (nonatomic, strong) NSArray *settingKeys;
// Returns a NSDictionary of properties for setting
// eg: [pluginInstance propertiesFor:@"fontFamily"]
// returns:
// {
// type: kMCQSettingType,
// labels: ["Inconsolata", "Source Code Pro", "Ubuntu Monospace"]
// values: ["Inconsolata", "SourceCodePro-Regular", "Ubuntu Mono Regular"]
// }
- (NSDictionary *)propertiesFor:(NSString *)settingKey;
// Returns Default Value for given setting
- (id<NSObject>)defaultValueFor:(NSString *)settingKey;
// Exec Method (Middleware)
+ (void)arcAttributedString:(ArcAttributedString*)arcAttributedString
ofFile:(id<File>)file
delegate:(id)delegate;
@end
|
Update comment to reflect dictionary layout.
|
Update comment to reflect dictionary layout.
|
C
|
mit
|
BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc
|
316572d9a3274a18a8def23c087b139e27f99ac8
|
snake.c
|
snake.c
|
#include <stdlib.h>
/**
* @author: Hendrik Werner
*/
int main() {
return EXIT_SUCCESS;
}
|
#include <stdlib.h>
/**
* @author: Hendrik Werner
*/
typedef struct Position {
int row;
int col;
} Position;
int main() {
return EXIT_SUCCESS;
}
|
Define a struct to represent 2d positions.
|
Define a struct to represent 2d positions.
|
C
|
mit
|
Hendrikto/Snake
|
fca387c79a274d3da8d5abb97ee9b1765188abaa
|
eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h
|
eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseTensorBuilder
{
public:
using Cells = DenseTensor::Cells;
using Address = DenseTensor::Address;
private:
eval::ValueType _type;
Cells _cells;
static size_t calculateCellAddress(const Address &address, const eval::ValueType &type) {
size_t result = 0;
for (size_t i = 0; i < address.size(); ++i) {
result *= type.dimensions()[i].size;
result += address[i];
}
return result;
}
public:
DirectDenseTensorBuilder(const eval::ValueType &type_in);
~DirectDenseTensorBuilder();
void insertCell(const Address &address, double cellValue) {
_cells[calculateCellAddress(address, _type)] = cellValue;
}
Tensor::UP build();
};
}
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseTensorBuilder
{
public:
using Cells = DenseTensor::Cells;
using Address = DenseTensor::Address;
private:
eval::ValueType _type;
Cells _cells;
static size_t calculateCellAddress(const Address &address, const eval::ValueType &type) {
size_t result = 0;
for (size_t i = 0; i < address.size(); ++i) {
result *= type.dimensions()[i].size;
result += address[i];
}
return result;
}
public:
DirectDenseTensorBuilder(const eval::ValueType &type_in);
~DirectDenseTensorBuilder();
void insertCell(const Address &address, double cellValue) {
insertCell(calculateCellAddress(address, _type), cellValue);
}
void insertCell(size_t index, double cellValue) {
_cells[index] = cellValue;
}
Tensor::UP build();
};
}
|
Allow for building index on the outside.
|
Allow for building index on the outside.
|
C
|
apache-2.0
|
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
|
0ef96b3c2dbf65fd92dd700e15689180af74d438
|
firmware/WidgetTerminal.h
|
firmware/WidgetTerminal.h
|
/**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#include <Blynk/BlynkApi.h>
class WidgetTerminal
: public Print
{
public:
WidgetTerminal(int vPin)
: mPin(vPin), mOutQty(0)
{}
virtual size_t write(uint8_t byte) {
mOutBuf[mOutQty++] = byte;
if (mOutQty >= sizeof(mOutBuf)) {
flush();
}
return 1;
}
void flush() {
if (mOutQty) {
Blynk.virtualWrite(mPin, mOutBuf, mOutQty);
mOutQty = 0;
}
}
using Print::write;
private:
uint8_t mPin;
uint8_t mOutBuf[32];
uint8_t mOutQty;
};
#endif
|
/**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#if !defined(SPARK) // On Spark this is auto-included
#include <Blynk/BlynkApi.h>
#endif
class WidgetTerminal
: public Print
{
public:
WidgetTerminal(int vPin)
: mPin(vPin), mOutQty(0)
{}
virtual size_t write(uint8_t byte) {
mOutBuf[mOutQty++] = byte;
if (mOutQty >= sizeof(mOutBuf)) {
flush();
}
return 1;
}
void flush() {
if (mOutQty) {
Blynk.virtualWrite(mPin, mOutBuf, mOutQty);
mOutQty = 0;
}
}
using Print::write;
private:
uint8_t mPin;
uint8_t mOutBuf[32];
uint8_t mOutQty;
};
#endif
|
Fix terminal widget on Spark Core
|
Fix terminal widget on Spark Core
|
C
|
mit
|
yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark
|
d2afa9534fc413ca9bd4d84e3f2398e922aec7c0
|
meta/inc/TVirtualIsAProxy.h
|
meta/inc/TVirtualIsAProxy.h
|
// @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.1 2005/05/27 16:42:58 pcanal Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualIsAProxy
#define ROOT_TVirtualIsAProxy
//////////////////////////////////////////////////////////////////////////
// //
// TClass //
// //
// Virtual IsAProxy base class. //
// //
//////////////////////////////////////////////////////////////////////////
class TVirtualIsAProxy {
public:
virtual ~TVirtualIsAProxy() { }
virtual void SetClass(TClass *cl) = 0;
virtual TClass* operator()(const void *obj) = 0;
};
#endif // ROOT_TVirtualIsAProxy
|
// @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.2 2005/06/08 18:51:36 rdm Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualIsAProxy
#define ROOT_TVirtualIsAProxy
//////////////////////////////////////////////////////////////////////////
// //
// TClass //
// //
// Virtual IsAProxy base class. //
// //
//////////////////////////////////////////////////////////////////////////
class TClass;
class TVirtualIsAProxy {
public:
virtual ~TVirtualIsAProxy() { }
virtual void SetClass(TClass *cl) = 0;
virtual TClass* operator()(const void *obj) = 0;
};
#endif // ROOT_TVirtualIsAProxy
|
Add the necessary includes and forward declarations such that the class can be compiled independently.
|
Add the necessary includes and forward declarations such that the class can be compiled independently.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@19581 27541ba8-7e3a-0410-8455-c3a389f83636
|
C
|
lgpl-2.1
|
dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT
|
ba62f0d82dda609e9e01b84797944e9d18a989eb
|
KBSCloudApp.h
|
KBSCloudApp.h
|
//
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBSCloudAppAPIInvalidUser,
KBSCloudAppInternalError
};
static NSString * const KBSCloudAppAPIErrorDomain = @"com.keithsmiley.cloudappapi";
static NSString * const baseAPI = @"http://my.cl.ly/";
static NSString * const baseShortURL = @"cl.ly";
static NSString * const itemsPath = @"items";
static NSString * const accountPath = @"account";
#endif
|
//
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
#import "KBSCloudAppURL.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBSCloudAppAPIInvalidUser,
KBSCloudAppInternalError
};
static NSString * const KBSCloudAppAPIErrorDomain = @"com.keithsmiley.cloudappapi";
static NSString * const baseAPI = @"http://my.cl.ly/";
static NSString * const baseShortURL = @"cl.ly";
static NSString * const itemsPath = @"items";
static NSString * const accountPath = @"account";
#endif
|
Include URL in common includes
|
Include URL in common includes
|
C
|
mit
|
keith/KBSCloudAppAPI
|
2d02b4ce02e4ec00b773f193f06ba44f0e1d57a4
|
source/common/hal/freescale/k20dx/read_uid.c
|
source/common/hal/freescale/k20dx/read_uid.c
|
/* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MK20D5.h"
#include "read_uid.h"
void read_unique_id(uint32_t * id) {
*id = SIM->UIDL ^ SIM->UIDML ^ SIM->UIDMH ^ SIM->UIDH;
}
|
/* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MK20D5.h"
#include "read_uid.h"
void read_unique_id(uint32_t * id) {
id[0] = SIM->UIDL;
id[1] = SIM->UIDML;
id[2] = SIM->UIDMH;
id[3] = SIM->UIDH;
}
|
Use the full UUID for the K20DX
|
Use the full UUID for the K20DX
Use all 4 words of the unique ID individually rather than xor ing them
all together.
|
C
|
apache-2.0
|
sg-/DAPLink,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port
|
93fcae8ec3035b4b3f1b3a789ecfa15e20c00f8b
|
program/driver/us100.c
|
program/driver/us100.c
|
/*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultrasonic_t Ultrasonic = {
.lenHigh = 0,
.lenLow = 0,
.d = 0
};
/*==============================================================================================*/
/*==============================================================================================*
**函數 : us100_distant
**功能 : get 1 calculated distant data from the data received by USART
**輸入 : Ultrasonic.lenHigh, Ultrasonic.lenLow
**輸出 : Ultrasonic.d (mm)
**使用 : print_us100_distant();
**==============================================================================================*/
/*==============================================================================================*/
void print_us100_distance(){
#if ULT_USE_UART2
serial2.putc('U');
vTaskDelay(500);
Ultrasonic.lenHigh = serial2.getc();
Ultrasonic.lenLow = serial2.getc();
Ultrasonic.d = (Ultrasonic.lenHigh*256 + Ultrasonic.lenLow)*0.1;
serial.printf("Distance: ");
serial.printf("%d",Ultrasonic.d);
serial.printf(" cm\n\r");
vTaskDelay(30);
#endif
}
|
/*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultrasonic_t Ultrasonic = {
.lenHigh = 0,
.lenLow = 0,
.d = 0
};
/*==============================================================================================*/
/*==============================================================================================*
**函數 : us100_distant
**功能 : get 1 calculated distant data from the data received by USART
**輸入 : Ultrasonic.lenHigh, Ultrasonic.lenLow
**輸出 : Ultrasonic.d (mm)
**使用 : print_us100_distant();
**==============================================================================================*/
/*==============================================================================================*/
void print_us100_distance(){
#if ULT_USE_UART2
serial2.putc('U');
vTaskDelay(70);
Ultrasonic.lenHigh = serial2.getc();
Ultrasonic.lenLow = serial2.getc();
Ultrasonic.d = (Ultrasonic.lenHigh*256 + Ultrasonic.lenLow)*0.1;
serial.printf("Distance: ");
serial.printf("%d",Ultrasonic.d);
serial.printf(" cm\n\r");
vTaskDelay(30);
#endif
}
|
Fix speed of ultrasonic display
|
Fix speed of ultrasonic display
|
C
|
mit
|
zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor
|
3e17ed56780465cd5bc949d8eed9c1e8bb6522fe
|
src/input.c
|
src/input.c
|
// input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport.mode) {
case S2D_FIXED:
*x = wx; *y = wy;
break;
case S2D_SCALE:
S2D_GL_GetViewportScale(window, &w, &h, &scale);
*x = wx * 1 / scale - (window->width - w) / (2.0 * scale);
*y = wy * 1 / scale - (window->height - h) / (2.0 * scale);
break;
case S2D_STRETCH:
*x = wx * window->viewport.width / (double)window->width;
*y = wy * window->viewport.height / (double)window->height;
break;
}
}
|
// input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport.mode) {
case S2D_FIXED:
*x = wx / (window->orig_width / (double)window->viewport.width);
*y = wy / (window->orig_height / (double)window->viewport.height);
break;
case S2D_SCALE:
S2D_GL_GetViewportScale(window, &w, &h, &scale);
*x = wx * 1 / scale - (window->width - w) / (2.0 * scale);
*y = wy * 1 / scale - (window->height - h) / (2.0 * scale);
break;
case S2D_STRETCH:
*x = wx * window->viewport.width / (double)window->width;
*y = wy * window->viewport.height / (double)window->height;
break;
}
}
|
Fix mouse position over an `S2D_FIXED` viewport
|
Fix mouse position over an `S2D_FIXED` viewport
|
C
|
mit
|
simple2d/simple2d,simple2d/simple2d
|
067bb0d1183573504aa10ac2132c37aa0dac4aa6
|
libraries/base/cbits/PrelIOUtils.c
|
libraries/base/cbits/PrelIOUtils.c
|
/*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsCore.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, char *t)
{
debugBelch(s,t);
}
#if defined(HAVE_LIBCHARSET)
# include <libcharset.h>
#elif defined(HAVE_LANGINFO_H)
# include <langinfo.h>
#endif
#if !defined(mingw32_HOST_OS)
const char* localeEncoding(void)
{
#if defined(HAVE_LIBCHARSET)
return locale_charset();
#elif defined(HAVE_LANGINFO_H)
return nl_langinfo(CODESET);
#else
#warning Depending on the unportable behavior of GNU iconv due to absence of both libcharset and langinfo.h
/* GNU iconv accepts "" to mean the current locale's
* encoding. Warning: This isn't portable.
*/
return "";
#endif
}
#endif
#endif /* __GLASGOW_HASKELL__ */
|
/*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsBase.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, char *t)
{
debugBelch(s,t);
}
#if defined(HAVE_LIBCHARSET)
# include <libcharset.h>
#elif defined(HAVE_LANGINFO_H)
# include <langinfo.h>
#endif
#if !defined(mingw32_HOST_OS)
const char* localeEncoding(void)
{
#if defined(HAVE_LIBCHARSET)
return locale_charset();
#elif defined(HAVE_LANGINFO_H)
return nl_langinfo(CODESET);
#else
#warning Depending on the unportable behavior of GNU iconv due to absence of both libcharset and langinfo.h
/* GNU iconv accepts "" to mean the current locale's
* encoding. Warning: This isn't portable.
*/
return "";
#endif
}
#endif
#endif /* __GLASGOW_HASKELL__ */
|
Update a comment in base cbits
|
Update a comment in base cbits
|
C
|
bsd-3-clause
|
ezyang/ghc,urbanslug/ghc,TomMD/ghc,shlevy/ghc,TomMD/ghc,tjakway/ghcjvm,sdiehl/ghc,mettekou/ghc,siddhanathan/ghc,TomMD/ghc,sgillespie/ghc,nathyong/microghc-ghc,jstolarek/ghc,nathyong/microghc-ghc,ezyang/ghc,gridaphobe/ghc,ml9951/ghc,mcschroeder/ghc,da-x/ghc,ml9951/ghc,oldmanmike/ghc,anton-dessiatov/ghc,sdiehl/ghc,nathyong/microghc-ghc,green-haskell/ghc,vikraman/ghc,spacekitteh/smcghc,da-x/ghc,nushio3/ghc,acowley/ghc,siddhanathan/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,TomMD/ghc,mfine/ghc,vikraman/ghc,da-x/ghc,olsner/ghc,vTurbine/ghc,anton-dessiatov/ghc,nkaretnikov/ghc,vikraman/ghc,TomMD/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,gridaphobe/ghc,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,jstolarek/ghc,urbanslug/ghc,jstolarek/ghc,gcampax/ghc,ezyang/ghc,mcschroeder/ghc,bitemyapp/ghc,sgillespie/ghc,oldmanmike/ghc,snoyberg/ghc,nushio3/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,olsner/ghc,acowley/ghc,mfine/ghc,gcampax/ghc,gcampax/ghc,mettekou/ghc,siddhanathan/ghc,mettekou/ghc,snoyberg/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,shlevy/ghc,da-x/ghc,ezyang/ghc,mfine/ghc,ghc-android/ghc,olsner/ghc,green-haskell/ghc,wxwxwwxxx/ghc,nathyong/microghc-ghc,nushio3/ghc,gcampax/ghc,mfine/ghc,sgillespie/ghc,anton-dessiatov/ghc,nushio3/ghc,elieux/ghc,siddhanathan/ghc,fmthoma/ghc,christiaanb/ghc,vTurbine/ghc,TomMD/ghc,TomMD/ghc,green-haskell/ghc,anton-dessiatov/ghc,vTurbine/ghc,oldmanmike/ghc,christiaanb/ghc,sgillespie/ghc,wxwxwwxxx/ghc,fmthoma/ghc,da-x/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,bitemyapp/ghc,snoyberg/ghc,tjakway/ghcjvm,nkaretnikov/ghc,urbanslug/ghc,gcampax/ghc,ezyang/ghc,AlexanderPankiv/ghc,elieux/ghc,elieux/ghc,shlevy/ghc,spacekitteh/smcghc,sgillespie/ghc,christiaanb/ghc,wxwxwwxxx/ghc,fmthoma/ghc,sdiehl/ghc,urbanslug/ghc,nushio3/ghc,mettekou/ghc,snoyberg/ghc,jstolarek/ghc,vTurbine/ghc,tjakway/ghcjvm,acowley/ghc,shlevy/ghc,gridaphobe/ghc,ezyang/ghc,vTurbine/ghc,olsner/ghc,ml9951/ghc,siddhanathan/ghc,mettekou/ghc,christiaanb/ghc,gridaphobe/ghc,fmthoma/ghc,vTurbine/ghc,fmthoma/ghc,ghc-android/ghc,gridaphobe/ghc,elieux/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,forked-upstream-packages-for-ghcjs/ghc,urbanslug/ghc,snoyberg/ghc,sdiehl/ghc,elieux/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,shlevy/ghc,vikraman/ghc,ml9951/ghc,nushio3/ghc,mfine/ghc,AlexanderPankiv/ghc,ml9951/ghc,urbanslug/ghc,oldmanmike/ghc,nushio3/ghc,ghc-android/ghc,oldmanmike/ghc,bitemyapp/ghc,fmthoma/ghc,siddhanathan/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,bitemyapp/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,ezyang/ghc,acowley/ghc,shlevy/ghc,nathyong/microghc-ghc,mcschroeder/ghc,ml9951/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,tjakway/ghcjvm,gridaphobe/ghc,gcampax/ghc,fmthoma/ghc,vikraman/ghc,ghc-android/ghc,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,tjakway/ghcjvm,ghc-android/ghc,sdiehl/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,bitemyapp/ghc,elieux/ghc,nkaretnikov/ghc,green-haskell/ghc,mfine/ghc,gridaphobe/ghc,siddhanathan/ghc,oldmanmike/ghc,da-x/ghc,shlevy/ghc,mettekou/ghc,urbanslug/ghc,mfine/ghc,GaloisInc/halvm-ghc,olsner/ghc,snoyberg/ghc,wxwxwwxxx/ghc,mettekou/ghc,sdiehl/ghc,spacekitteh/smcghc,christiaanb/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,acowley/ghc,olsner/ghc,olsner/ghc,vikraman/ghc,elieux/ghc,snoyberg/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,mcschroeder/ghc,acowley/ghc,ghc-android/ghc,sgillespie/ghc,tjakway/ghcjvm,ghc-android/ghc,ml9951/ghc,mcschroeder/ghc,gcampax/ghc,da-x/ghc,green-haskell/ghc,mcschroeder/ghc,christiaanb/ghc,jstolarek/ghc
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.