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
|
|---|---|---|---|---|---|---|---|---|---|
702bc06cd7418160e2592cc2a5dae386c6faf227
|
snake.c
|
snake.c
|
#include <stdlib.h>
/**
* @author: Hendrik Werner
*/
#define BOARD_HEIGHT 50
#define BOARD_WIDTH 50
typedef struct Position {
int row;
int col;
} Position;
typedef enum Cell {
EMPTY
,SNAKE
,FOOD
} Cell;
typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH];
typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;
/**
* Represent a cell using a character.
*
* @return A character representing the content of the cell provided.
*/
char representCell(const Cell c) {
switch (c) {
case SNAKE: return 'S';
case FOOD: return 'F';
default: return '.';
}
}
int main() {
return EXIT_SUCCESS;
}
|
#include <stdlib.h>
/**
* @author: Hendrik Werner
*/
#define BOARD_HEIGHT 50
#define BOARD_WIDTH 50
typedef struct Position {
int row;
int col;
} Position;
typedef enum Cell {
EMPTY
,SNAKE
,FOOD
} Cell;
typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH];
typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;
/**
* Represent a cell using a character.
*
* @return A character representing the content of the cell provided.
*/
char representCell(const Cell c) {
switch (c) {
case SNAKE: return 'S';
case FOOD: return 'F';
default: return '.';
}
}
/**
* Create a string representation of some board.
*
* @param board The board that is to be represented.
*
* @return A string representation of the given board. The caller must take care
* to free the string returned.
*/
char *stringify(const Board board) {
char *str = malloc(BOARD_WIDTH * BOARD_HEIGHT + BOARD_HEIGHT + 1);
size_t pos = 0;
for (size_t row = 0; row < BOARD_HEIGHT; row++) {
for (size_t col = 0; col < BOARD_WIDTH; col++) {
str[pos++] = representCell(board[row][col]);
}
str[pos++] = '\n';
}
str[pos] = '\0';
return str;
}
int main() {
return EXIT_SUCCESS;
}
|
Add a function to stringify boards.
|
Add a function to stringify boards.
|
C
|
mit
|
Hendrikto/Snake
|
6f3db08828b139d50b6f91a8fd87e8b3b18fbf1f
|
stack.c
|
stack.c
|
#include "stack.h"
struct Stack
{
size_t size;
size_t top;
void** e;
}
Stack* Stack_Create(size_t n)
{
Stack* s = (Stack *)malloc(sizeof(Stack));
s->size = n;
s->top = 0;
s->e = (void**)malloc(sizeof(void*) * (n + 1));
return s;
}
int Stack_Empty(Stack* s)
{
if (s->top == 0)
{
return 1;
} else {
return 0;
}
}
void Stack_Push(Stack* s, void* e)
{
if (s == NULL) return;
if (s->top == s->size) return;
s->top = s->top + 1;
s->e[s->top] = e;
}
void* Stack_Pop(Stack* s)
{
if (Stack_Empty(s)) return;
s->top = s->top - 1;
return s->e[s->top+1];
}
void Stack_Destroy(Stack* s)
{
if (s == NULL) return;
free(s->e);
free(s);
}
|
#include "stack.h"
struct Stack
{
size_t size;
size_t top;
void** e;
};
Stack* Stack_Create(size_t n)
{
Stack* s = (Stack *)malloc(sizeof(Stack));
s->size = n;
s->top = 0;
s->e = (void**)malloc(sizeof(void*) * (n + 1));
return s;
}
int Stack_Empty(Stack* s)
{
if (s->top == 0)
{
return 1;
} else {
return 0;
}
}
void Stack_Push(Stack* s, void* e)
{
if (s == NULL) return;
if (s->top == s->size) return;
s->top = s->top + 1;
s->e[s->top] = e;
}
void* Stack_Pop(Stack* s)
{
if (Stack_Empty(s)) return;
s->top = s->top - 1;
return s->e[s->top+1];
}
void Stack_Destroy(Stack* s)
{
if (s == NULL) return;
free(s->e);
free(s);
}
|
Fix missing ; in struct implementation
|
Fix missing ; in struct implementation
|
C
|
mit
|
MaxLikelihood/CADT
|
41886d53f3c007f5a23781361e3b638afb62ea6d
|
Include/node.h
|
Include/node.h
|
/* Parse tree node interface */
#ifndef Py_NODE_H
#define Py_NODE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _node {
short n_type;
char *n_str;
int n_lineno;
int n_nchildren;
struct _node *n_child;
} node;
extern DL_IMPORT(node *) PyNode_New(int type);
extern DL_IMPORT(int) PyNode_AddChild(node *n, int type,
char *str, int lineno);
extern DL_IMPORT(void) PyNode_Free(node *n);
/* Node access functions */
#define NCH(n) ((n)->n_nchildren)
#define CHILD(n, i) (&(n)->n_child[i])
#define TYPE(n) ((n)->n_type)
#define STR(n) ((n)->n_str)
/* Assert that the type of a node is what we expect */
#ifndef Py_DEBUG
#define REQ(n, type) { /*pass*/ ; }
#else
#define REQ(n, type) \
{ if (TYPE(n) != (type)) { \
fprintf(stderr, "FATAL: node type %d, required %d\n", \
TYPE(n), type); \
abort(); \
} }
#endif
extern DL_IMPORT(void) PyNode_ListTree(node *);
#ifdef __cplusplus
}
#endif
#endif /* !Py_NODE_H */
|
/* Parse tree node interface */
#ifndef Py_NODE_H
#define Py_NODE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _node {
short n_type;
char *n_str;
int n_lineno;
int n_nchildren;
struct _node *n_child;
} node;
extern DL_IMPORT(node *) PyNode_New(int type);
extern DL_IMPORT(int) PyNode_AddChild(node *n, int type,
char *str, int lineno);
extern DL_IMPORT(void) PyNode_Free(node *n);
/* Node access functions */
#define NCH(n) ((n)->n_nchildren)
#define CHILD(n, i) (&(n)->n_child[i])
#define TYPE(n) ((n)->n_type)
#define STR(n) ((n)->n_str)
/* Assert that the type of a node is what we expect */
#define REQ(n, type) assert(TYPE(n) == (type))
extern DL_IMPORT(void) PyNode_ListTree(node *);
#ifdef __cplusplus
}
#endif
#endif /* !Py_NODE_H */
|
Use an assert() for the REQ() macro instead of making up our own assertion.
|
Use an assert() for the REQ() macro instead of making up our own
assertion.
|
C
|
mit
|
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
|
810f19c8fd7b21a8ba65bc510b8b38e8b19f7aba
|
src/DGLCommon/gl-headers.h
|
src/DGLCommon/gl-headers.h
|
#ifndef GL_HEADERS_H
#define GL_HEADERS_H
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#define WINGDIAPI KHRONOS_APICALL
#define APIENTRY KHRONOS_APIENTRY
#endif
#include <codegen/input/egl.h>
#include <codegen/input/eglext.h>
#include <codegen/input/GL.h>
#include <codegen/input/glext.h>
#ifdef _WIN32
#include <codegen/input/wglext.h>
#endif
#endif
|
#ifndef GL_HEADERS_H
#define GL_HEADERS_H
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#define WINGDIAPI KHRONOS_APICALL
#define APIENTRY KHRONOS_APIENTRY
#endif
#include <codegen/input/egl.h>
#include <codegen/input/eglext.h>
#include <codegen/input/GL.h>
#include <codegen/input/glext.h>
#ifdef _WIN32
#include <codegen/input/wglext.h>
#else
#include <codegen/input/glx.h>
//#include <codegen/input/glxext.h>
#endif
#endif
|
Include glx as a gl-header
|
Include glx as a gl-header
|
C
|
apache-2.0
|
scygan/debugler,scygan/debugler,scygan/debugler,scygan/debugler
|
f1e39690cf85b947ed6ccb1c12315b79f83708bb
|
433Rx/Device.h
|
433Rx/Device.h
|
// Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _DEVICE
#define _DEVICE
#include "MessageQueue.h"
#include "DeviceMessageHandler.h"
typedef struct MessageHandlerListEntry {
DeviceMessageHandler* handler;
MessageHandlerListEntry* next;
} MessageHandlerListEntry;
class Device {
protected:
MessageQueue* queue;
MessageHandlerListEntry* _messageHandlers;
public:
Device();
void setQueue(MessageQueue* queue);
// must be implemented by sub class
virtual int deviceType(void) = 0;
virtual char* deviceName(void) = 0;
virtual void processPulse(long duration) = 0;
virtual void decodeMessage(Message* message) = 0;
// can optionally be overridden by devices
virtual void handleMessage(Message* message);
virtual bool registerMessageHandler(DeviceMessageHandler* handler);
};
#endif
|
// Copyright 2014-2016 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#ifndef _DEVICE
#define _DEVICE
#include "MessageQueue.h"
#include "DeviceMessageHandler.h"
#ifdef __arm__
#define INTERRUPT_SAFE
#else
#include <Arduino.h>
#define INTERRUPT_SAFE ICACHE_RAM_ATTR
#endif
typedef struct MessageHandlerListEntry {
DeviceMessageHandler* handler;
MessageHandlerListEntry* next;
} MessageHandlerListEntry;
class Device {
protected:
MessageQueue* queue;
MessageHandlerListEntry* _messageHandlers;
public:
Device();
void setQueue(MessageQueue* queue);
// must be implemented by sub class
virtual int deviceType(void) = 0;
virtual char* deviceName(void) = 0;
virtual void processPulse(long duration) = 0;
virtual void decodeMessage(Message* message) = 0;
// can optionally be overridden by devices
virtual void handleMessage(Message* message);
virtual bool registerMessageHandler(DeviceMessageHandler* handler);
};
#endif
|
Add back missing platform defines
|
Add back missing platform defines
|
C
|
mit
|
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
|
6ea747689679605c90dc4fa109a6988ccc10ff48
|
application/tools/linux/xwalk_tizen_user.c
|
application/tools/linux/xwalk_tizen_user.c
|
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <pwd.h>
int xwalk_tizen_set_home_for_user_app(void) {
#if !defined(OS_TIZEN_MOBILE)
return 0;
#endif
// Tizen doesn't set HOME by default on login for user "app".
uid_t uid = getuid();
struct passwd* passwd = getpwuid(uid);
if (!passwd)
return -ENOENT;
if (strcmp(passwd->pw_name, "app")) {
fprintf(stderr, "User is not 'app', launching an application will not work\n");
return -EINVAL;
}
if (setenv("HOME", passwd->pw_dir, true) != 0) {
fprintf(stderr, "Couldn't set 'HOME' env variable to '%s'\n", passwd->pw_dir);
return -EINVAL;
}
return 0;
}
|
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <pwd.h>
int xwalk_tizen_set_home_for_user_app(void) {
#if !defined(OS_TIZEN_MOBILE)
return 0;
#endif
// Tizen doesn't set HOME by default on login for user "app".
uid_t uid = getuid();
struct passwd* passwd = getpwuid(uid);
if (!passwd)
return -ENOENT;
if (strcmp(passwd->pw_name, "app")) {
fprintf(stderr, "User is not 'app', launching an application will not work\n");
return -EINVAL;
}
if (setenv("HOME", passwd->pw_dir, true) != 0) {
fprintf(stderr, "Couldn't set 'HOME' env variable to '%s'\n", passwd->pw_dir);
return -EINVAL;
}
return 0;
}
|
Fix warning about missing strcmp() definition
|
[Application][Tools] Fix warning about missing strcmp() definition
The #include <string.h> directive was missing.
|
C
|
bsd-3-clause
|
jondwillis/crosswalk,ZhengXinCN/crosswalk,fujunwei/crosswalk,leonhsl/crosswalk,heke123/crosswalk,PeterWangIntel/crosswalk,hgl888/crosswalk,pk-sam/crosswalk,chuan9/crosswalk,minggangw/crosswalk,Pluto-tv/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,minggangw/crosswalk,dreamsxin/crosswalk,XiaosongWei/crosswalk,baleboy/crosswalk,zeropool/crosswalk,huningxin/crosswalk,amaniak/crosswalk,axinging/crosswalk,dreamsxin/crosswalk,hgl888/crosswalk-efl,PeterWangIntel/crosswalk,jpike88/crosswalk,axinging/crosswalk,marcuspridham/crosswalk,darktears/crosswalk,myroot/crosswalk,qjia7/crosswalk,XiaosongWei/crosswalk,lincsoon/crosswalk,jondong/crosswalk,jondwillis/crosswalk,huningxin/crosswalk,marcuspridham/crosswalk,weiyirong/crosswalk-1,minggangw/crosswalk,marcuspridham/crosswalk,Bysmyyr/crosswalk,minggangw/crosswalk,zeropool/crosswalk,zeropool/crosswalk,tedshroyer/crosswalk,fujunwei/crosswalk,crosswalk-project/crosswalk,rakuco/crosswalk,Pluto-tv/crosswalk,amaniak/crosswalk,crosswalk-project/crosswalk,hgl888/crosswalk-efl,stonegithubs/crosswalk,jondong/crosswalk,TheDirtyCalvinist/spacewalk,fujunwei/crosswalk,darktears/crosswalk,XiaosongWei/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk,jondong/crosswalk,dreamsxin/crosswalk,huningxin/crosswalk,mrunalk/crosswalk,leonhsl/crosswalk,heke123/crosswalk,weiyirong/crosswalk-1,zliang7/crosswalk,zliang7/crosswalk,ZhengXinCN/crosswalk,stonegithubs/crosswalk,DonnaWuDongxia/crosswalk,heke123/crosswalk,jpike88/crosswalk,TheDirtyCalvinist/spacewalk,TheDirtyCalvinist/spacewalk,tomatell/crosswalk,crosswalk-project/crosswalk-efl,PeterWangIntel/crosswalk,alex-zhang/crosswalk,hgl888/crosswalk,PeterWangIntel/crosswalk,ZhengXinCN/crosswalk,siovene/crosswalk,hgl888/crosswalk-efl,myroot/crosswalk,crosswalk-project/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,fujunwei/crosswalk,zeropool/crosswalk,RafuCater/crosswalk,darktears/crosswalk,chinakids/crosswalk,XiaosongWei/crosswalk,TheDirtyCalvinist/spacewalk,siovene/crosswalk,stonegithubs/crosswalk,tedshroyer/crosswalk,baleboy/crosswalk,stonegithubs/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk-efl,marcuspridham/crosswalk,tedshroyer/crosswalk,crosswalk-project/crosswalk,chuan9/crosswalk,jpike88/crosswalk,mrunalk/crosswalk,seanlong/crosswalk,chinakids/crosswalk,rakuco/crosswalk,xzhan96/crosswalk,dreamsxin/crosswalk,jondong/crosswalk,amaniak/crosswalk,hgl888/crosswalk-efl,pk-sam/crosswalk,minggangw/crosswalk,axinging/crosswalk,zliang7/crosswalk,hgl888/crosswalk,rakuco/crosswalk,XiaosongWei/crosswalk,chuan9/crosswalk,marcuspridham/crosswalk,seanlong/crosswalk,myroot/crosswalk,xzhan96/crosswalk,zeropool/crosswalk,bestwpw/crosswalk,rakuco/crosswalk,jondwillis/crosswalk,qjia7/crosswalk,bestwpw/crosswalk,darktears/crosswalk,zliang7/crosswalk,baleboy/crosswalk,DonnaWuDongxia/crosswalk,mrunalk/crosswalk,xzhan96/crosswalk,shaochangbin/crosswalk,amaniak/crosswalk,Pluto-tv/crosswalk,crosswalk-project/crosswalk-efl,RafuCater/crosswalk,hgl888/crosswalk-efl,ZhengXinCN/crosswalk,crosswalk-project/crosswalk-efl,jpike88/crosswalk,jondong/crosswalk,mrunalk/crosswalk,tedshroyer/crosswalk,minggangw/crosswalk,siovene/crosswalk,jondwillis/crosswalk,hgl888/crosswalk-efl,mrunalk/crosswalk,jpike88/crosswalk,zeropool/crosswalk,pk-sam/crosswalk,Pluto-tv/crosswalk,TheDirtyCalvinist/spacewalk,Bysmyyr/crosswalk,baleboy/crosswalk,darktears/crosswalk,zliang7/crosswalk,qjia7/crosswalk,Bysmyyr/crosswalk,axinging/crosswalk,shaochangbin/crosswalk,tomatell/crosswalk,marcuspridham/crosswalk,jondwillis/crosswalk,myroot/crosswalk,lincsoon/crosswalk,bestwpw/crosswalk,amaniak/crosswalk,zliang7/crosswalk,alex-zhang/crosswalk,marcuspridham/crosswalk,seanlong/crosswalk,myroot/crosswalk,PeterWangIntel/crosswalk,fujunwei/crosswalk,dreamsxin/crosswalk,darktears/crosswalk,alex-zhang/crosswalk,huningxin/crosswalk,shaochangbin/crosswalk,myroot/crosswalk,alex-zhang/crosswalk,Bysmyyr/crosswalk,qjia7/crosswalk,DonnaWuDongxia/crosswalk,weiyirong/crosswalk-1,DonnaWuDongxia/crosswalk,rakuco/crosswalk,tomatell/crosswalk,chuan9/crosswalk,stonegithubs/crosswalk,crosswalk-project/crosswalk-efl,lincsoon/crosswalk,zliang7/crosswalk,Pluto-tv/crosswalk,weiyirong/crosswalk-1,xzhan96/crosswalk,baleboy/crosswalk,RafuCater/crosswalk,minggangw/crosswalk,shaochangbin/crosswalk,bestwpw/crosswalk,ZhengXinCN/crosswalk,weiyirong/crosswalk-1,leonhsl/crosswalk,lincsoon/crosswalk,crosswalk-project/crosswalk,stonegithubs/crosswalk,darktears/crosswalk,PeterWangIntel/crosswalk,amaniak/crosswalk,alex-zhang/crosswalk,RafuCater/crosswalk,jondwillis/crosswalk,fujunwei/crosswalk,seanlong/crosswalk,hgl888/crosswalk,seanlong/crosswalk,ZhengXinCN/crosswalk,heke123/crosswalk,bestwpw/crosswalk,DonnaWuDongxia/crosswalk,stonegithubs/crosswalk,chinakids/crosswalk,shaochangbin/crosswalk,XiaosongWei/crosswalk,jondong/crosswalk,zliang7/crosswalk,lincsoon/crosswalk,jondong/crosswalk,zeropool/crosswalk,siovene/crosswalk,pk-sam/crosswalk,tomatell/crosswalk,tomatell/crosswalk,crosswalk-project/crosswalk-efl,leonhsl/crosswalk,crosswalk-project/crosswalk,siovene/crosswalk,hgl888/crosswalk,weiyirong/crosswalk-1,xzhan96/crosswalk,xzhan96/crosswalk,seanlong/crosswalk,DonnaWuDongxia/crosswalk,rakuco/crosswalk,pk-sam/crosswalk,bestwpw/crosswalk,chuan9/crosswalk,dreamsxin/crosswalk,RafuCater/crosswalk,heke123/crosswalk,heke123/crosswalk,tomatell/crosswalk,hgl888/crosswalk-efl,tedshroyer/crosswalk,axinging/crosswalk,axinging/crosswalk,darktears/crosswalk,crosswalk-project/crosswalk-efl,qjia7/crosswalk,tomatell/crosswalk,shaochangbin/crosswalk,lincsoon/crosswalk,axinging/crosswalk,RafuCater/crosswalk,hgl888/crosswalk,RafuCater/crosswalk,alex-zhang/crosswalk,Pluto-tv/crosswalk,lincsoon/crosswalk,chinakids/crosswalk,chuan9/crosswalk,lincsoon/crosswalk,hgl888/crosswalk,Bysmyyr/crosswalk,siovene/crosswalk,pk-sam/crosswalk,heke123/crosswalk,Pluto-tv/crosswalk,TheDirtyCalvinist/spacewalk,Bysmyyr/crosswalk,PeterWangIntel/crosswalk,chinakids/crosswalk,tedshroyer/crosswalk,rakuco/crosswalk,heke123/crosswalk,hgl888/crosswalk,alex-zhang/crosswalk,Bysmyyr/crosswalk,jondong/crosswalk,ZhengXinCN/crosswalk,marcuspridham/crosswalk,bestwpw/crosswalk,huningxin/crosswalk,baleboy/crosswalk,crosswalk-project/crosswalk,leonhsl/crosswalk,jondwillis/crosswalk,fujunwei/crosswalk,huningxin/crosswalk,tedshroyer/crosswalk,XiaosongWei/crosswalk,amaniak/crosswalk,Bysmyyr/crosswalk,weiyirong/crosswalk-1,siovene/crosswalk,qjia7/crosswalk,chinakids/crosswalk,minggangw/crosswalk,baleboy/crosswalk,dreamsxin/crosswalk,baleboy/crosswalk,rakuco/crosswalk,mrunalk/crosswalk,DonnaWuDongxia/crosswalk,pk-sam/crosswalk,chuan9/crosswalk
|
aa5d17c0a52530b387ff6819b2cc5d2afd4eb38c
|
plugins/stardict/file.h
|
plugins/stardict/file.h
|
/******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <lpapp@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MULA_PLUGIN_STARDICT_FILE
#define MULA_PLUGIN_STARDICT_FILE
#include <QtCore/QString>
const int invalidIndex = -100;
static inline int stardictStringCompare(QString string1, QString string2)
{
int retval = string1.compare(string2, Qt::CaseInsensitive);
if (retval == 0)
return string1.compare(string2);
else
return retval;
}
#endif // MULA_PLUGIN_STARDICT_FILE
|
/******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <lpapp@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MULA_PLUGIN_STARDICT_FILE
#define MULA_PLUGIN_STARDICT_FILE
#include <QtCore/QString>
const int invalidIndex = -100;
static inline int stardictStringCompare(QString string1, QString string2)
{
int retval = string1.compare(string2, Qt::CaseInsensitive);
return retval ? retval : string1.compare(string2);
}
#endif // MULA_PLUGIN_STARDICT_FILE
|
Use the tenary operator instead of a simple if/else inside an inline function
|
Use the tenary operator instead of a simple if/else inside an inline function
|
C
|
lgpl-2.1
|
KDE/mula,KDE/mula
|
64dbdcce076a64f7bcfd83ddf7e6f6440c004556
|
types.h
|
types.h
|
#ifndef BFC_TYPES_H
#define BFC_TYPES_H
#ifndef __cplusplus
# include <stdint.h>
#else
# include <cstdint>
#endif
typedef bfc_cell uint8_t;
#endif /* !BFC_TYPES_H */
|
#ifndef BFC_TYPES_H
#define BFC_TYPES_H
#ifndef __cplusplus
# include <stdint.h>
#else
# include <cstdint>
#endif
typedef bf_value uint8_t;
#endif /* !BFC_TYPES_H */
|
Change basic cell type name to bf_value.
|
Change basic cell type name to bf_value.
|
C
|
mit
|
bassettmb/bfc,bassettmb/bfc
|
51f9648c1af205b9822a1dfe220c825eef07a2cc
|
test2/inline/static_local.c
|
test2/inline/static_local.c
|
// RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
inline int g2()
{
static const int i = 3; // CHECK: !/warn/
return i;
}
main()
{
return f() + g() + h();
}
|
// RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: mutable static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
inline int g2()
{
static const int i = 3; // CHECK: !/warn/
return i;
}
main()
{
return f() + g() + h();
}
|
Fix inline static local warning
|
Fix inline static local warning
|
C
|
mit
|
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
|
39f66ecf2685e1d7a4d0bbe16d8db87e08e91ed9
|
net/proxy/proxy_resolver_mac.h
|
net/proxy/proxy_resolver_mac.h
|
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
#include "net/proxy/proxy_resolver.h"
namespace net {
// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
// proxies.
class ProxyResolverMac : public ProxyResolver {
public:
ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {}
// ProxyResolver methods:
virtual int GetProxyForURL(const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
RequestHandle* request,
const BoundNetLog& net_log);
virtual void CancelRequest(RequestHandle request) {
NOTREACHED();
}
virtual int SetPacScript(
const scoped_refptr<ProxyResolverScriptData>& script_data,
CompletionCallback* /*callback*/) {
script_data_ = script_data_;
return OK;
}
private:
scoped_refptr<ProxyResolverScriptData> script_data_;
};
} // namespace net
#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
|
// Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_
#define NET_PROXY_PROXY_RESOLVER_MAC_H_
#pragma once
#include <string>
#include "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
#include "net/proxy/proxy_resolver.h"
namespace net {
// Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
// proxies.
class ProxyResolverMac : public ProxyResolver {
public:
ProxyResolverMac() : ProxyResolver(false /*expects_pac_bytes*/) {}
// ProxyResolver methods:
virtual int GetProxyForURL(const GURL& url,
ProxyInfo* results,
CompletionCallback* callback,
RequestHandle* request,
const BoundNetLog& net_log);
virtual void CancelRequest(RequestHandle request) {
NOTREACHED();
}
virtual int SetPacScript(
const scoped_refptr<ProxyResolverScriptData>& script_data,
CompletionCallback* /*callback*/) {
script_data_ = script_data;
return OK;
}
private:
scoped_refptr<ProxyResolverScriptData> script_data_;
};
} // namespace net
#endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
|
Fix a typo, that could cause a crash on mac.
|
Fix a typo, that could cause a crash on mac.
BUG=50717
TBR=rvargas
TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash.
Review URL: http://codereview.chromium.org/3023030
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@54279 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
ropik/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium
|
f2570192b6ea925e0db5957719525ebd144e0037
|
common/osdep.h
|
common/osdep.h
|
/*****************************************************************************
* osdep.h:
*****************************************************************************
* Copyright (C) 2010 L-SMASH project
*
* Authors: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
* 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 OSDEP_H
#define OSDEP_H
#define _FILE_OFFSET_BITS 64
#ifdef __MINGW32__
#define lsmash_fseek fseeko64
#define lsmash_ftell ftello64
#else
#define lsmash_fseek fseek
#define lsmash_ftell ftell
#endif
#endif
|
/*****************************************************************************
* osdep.h:
*****************************************************************************
* Copyright (C) 2010 L-SMASH project
*
* Authors: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
* 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 OSDEP_H
#define OSDEP_H
#define _FILE_OFFSET_BITS 64
#ifdef __MINGW32__
#define lsmash_fseek fseeko64
#define lsmash_ftell ftello64
#endif
#endif
|
Remove redundant declaration of lsmash_fseek.
|
Remove redundant declaration of lsmash_fseek.
|
C
|
isc
|
mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,silverfilain/L-SMASH,canbal/l-smash,dwbuiten/l-smash,dwbuiten/l-smash,maki-rxrz/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,maki-rxrz/L-SMASH,l-smash/l-smash,canbal/l-smash
|
ece0b186333657c94cd50148fbf10802a052d214
|
debugger/tui.h
|
debugger/tui.h
|
#ifndef DEBUGGER_TUI_H
#define DEBUGGER_TUI_H
#include "asic.h"
char **tui_parse_commandline(const char *, int *);
void tui_tick(asic_t *asic);
#endif
|
#ifndef DEBUGGER_TUI_H
#define DEBUGGER_TUI_H
#include "asic.h"
char **tui_parse_commandline(const char *, int *);
#ifndef EMSCRIPTEN
void tui_tick(asic_t *asic);
#endif
#endif
|
Add ifs around TUI function not available in emscripten
|
Add ifs around TUI function not available in emscripten
|
C
|
mit
|
KnightOS/z80e,KnightOS/z80e
|
b0149a850e2209301304e67dd4fab34245fe0d70
|
include/perfetto/protozero/contiguous_memory_range.h
|
include/perfetto/protozero/contiguous_memory_range.h
|
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#define INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
namespace protozero {
// Keep this struct trivially constructible (no ctors, no default initializers).
struct ContiguousMemoryRange {
uint8_t* begin;
uint8_t* end; // STL style: one byte past the end of the buffer.
inline bool is_valid() const { return begin != nullptr; }
inline void reset() { begin = nullptr; }
inline size_t size() { return static_cast<size_t>(end - begin); }
};
} // namespace protozero
#endif // INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
|
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#define INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
namespace protozero {
// Keep this struct trivially constructible (no ctors, no default initializers).
struct ContiguousMemoryRange {
uint8_t* begin;
uint8_t* end; // STL style: one byte past the end of the buffer.
inline bool is_valid() const { return begin != nullptr; }
inline void reset() { begin = nullptr; }
inline size_t size() const { return static_cast<size_t>(end - begin); }
};
} // namespace protozero
#endif // INCLUDE_PERFETTO_PROTOZERO_CONTIGUOUS_MEMORY_RANGE_H_
|
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2
|
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2
Change-Id: Ib4ab16a01bcda43994c6d26f34d16e3579272cf6
|
C
|
apache-2.0
|
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
|
13b6f22f0473917e11ed650282b9b118edb12b90
|
include/llvm/Analysis/BasicAliasAnalysis.h
|
include/llvm/Analysis/BasicAliasAnalysis.h
|
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#define LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Pass.h"
struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
// alias - This is the only method here that does anything interesting...
//
Result alias(const Value *V1, const Value *V2);
/// canCallModify - We are not interprocedural, so we do nothing exciting.
///
Result canCallModify(const CallInst &CI, const Value *Ptr) {
return MayAlias;
}
/// canInvokeModify - We are not interprocedural, so we do nothing exciting.
///
Result canInvokeModify(const InvokeInst &I, const Value *Ptr) {
return MayAlias; // We are not interprocedural
}
};
#endif
|
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#define LLVM_ANALYSIS_BASIC_ALIAS_ANALYSIS_H
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Pass.h"
class GetElementPtrInst;
struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AliasAnalysis::getAnalysisUsage(AU);
}
virtual void initializePass();
// alias - This is the only method here that does anything interesting...
//
AliasResult alias(const Value *V1, unsigned V1Size,
const Value *V2, unsigned V2Size);
private:
// CheckGEPInstructions - Check two GEP instructions of compatible types and
// equal number of arguments. This checks to see if the index expressions
// preclude the pointers from aliasing...
AliasResult CheckGEPInstructions(GetElementPtrInst *GEP1, unsigned G1Size,
GetElementPtrInst *GEP2, unsigned G2Size);
};
#endif
|
Tweak to work with new AA implementation
|
Tweak to work with new AA implementation
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5632 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm
|
ad2faeac06c7be527108d83cd8771b6c0f296257
|
tensorflow/cc/saved_model/tag_constants.h
|
tensorflow/cc/saved_model/tag_constants.h
|
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
#define THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
namespace tensorflow {
/// Tag for the `serving` graph.
constexpr char kSavedModelTagServe[] = "serve";
/// Tag for the `training` graph.`
constexpr char kSavedModelTagTrain[] = "train";
} // namespace tensorflow
#endif // THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
|
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
#define THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
namespace tensorflow {
/// Tag for the `gpu` graph.
constexpr char kSavedModelTagGpu[] = "gpu";
/// Tag for the `serving` graph.
constexpr char kSavedModelTagServe[] = "serve";
/// Tag for the `training` graph.
constexpr char kSavedModelTagTrain[] = "train";
} // namespace tensorflow
#endif // THIRD_PARTY_TENSORFLOW_CC_SAVED_MODEL_TAG_CONSTANTS_H_
|
Add SavedModel tag-constant for gpu.
|
Add SavedModel tag-constant for gpu.
PiperOrigin-RevId: 159600621
|
C
|
apache-2.0
|
xodus7/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,jhseu/tensorflow,karllessard/tensorflow,unsiloai/syntaxnet-ops-hack,lukeiwanski/tensorflow,rabipanda/tensorflow,tensorflow/tensorflow-pywrap_saved_model,zycdragonball/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,zycdragonball/tensorflow,meteorcloudy/tensorflow,gautam1858/tensorflow,manipopopo/tensorflow,Intel-Corporation/tensorflow,bowang/tensorflow,cxxgtxy/tensorflow,manazhao/tf_recsys,mixturemodel-flow/tensorflow,dongjoon-hyun/tensorflow,ychfan/tensorflow,manipopopo/tensorflow,frreiss/tensorflow-fred,suiyuan2009/tensorflow,arborh/tensorflow,mdrumond/tensorflow,dendisuhubdy/tensorflow,girving/tensorflow,ghchinoy/tensorflow,Mistobaan/tensorflow,aselle/tensorflow,rabipanda/tensorflow,benoitsteiner/tensorflow-opencl,mixturemodel-flow/tensorflow,manipopopo/tensorflow,eaplatanios/tensorflow,horance-liu/tensorflow,zasdfgbnm/tensorflow,allenlavoie/tensorflow,gunan/tensorflow,tornadozou/tensorflow,Bulochkin/tensorflow_pack,andrewcmyers/tensorflow,aselle/tensorflow,ppwwyyxx/tensorflow,jostep/tensorflow,tiagofrepereira2012/tensorflow,petewarden/tensorflow,jbedorf/tensorflow,ZhangXinNan/tensorflow,lukeiwanski/tensorflow,nolanliou/tensorflow,guschmue/tensorflow,aam-at/tensorflow,jhseu/tensorflow,AnishShah/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,cxxgtxy/tensorflow,jostep/tensorflow,petewarden/tensorflow,maciekcc/tensorflow,gautam1858/tensorflow,guschmue/tensorflow,JingJunYin/tensorflow,kobejean/tensorflow,Mazecreator/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,hehongliang/tensorflow,renyi533/tensorflow,eaplatanios/tensorflow,girving/tensorflow,tiagofrepereira2012/tensorflow,adamtiger/tensorflow,adamtiger/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,hsaputra/tensorflow,eadgarchen/tensorflow,ravindrapanda/tensorflow,ageron/tensorflow,maciekcc/tensorflow,andrewcmyers/tensorflow,petewarden/tensorflow,theflofly/tensorflow,mavenlin/tensorflow,jbedorf/tensorflow,adit-chandra/tensorflow,aselle/tensorflow,xzturn/tensorflow,aldian/tensorflow,gunan/tensorflow,annarev/tensorflow,yongtang/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,alistairlow/tensorflow,unsiloai/syntaxnet-ops-hack,raymondxyang/tensorflow,a-doumoulakis/tensorflow,aam-at/tensorflow,Bulochkin/tensorflow_pack,brchiu/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,adit-chandra/tensorflow,AnishShah/tensorflow,alshedivat/tensorflow,codrut3/tensorflow,andrewcmyers/tensorflow,arborh/tensorflow,caisq/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,zasdfgbnm/tensorflow,snnn/tensorflow,xodus7/tensorflow,aam-at/tensorflow,karllessard/tensorflow,benoitsteiner/tensorflow-opencl,seanli9jan/tensorflow,ychfan/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,Mazecreator/tensorflow,eadgarchen/tensorflow,jalexvig/tensorflow,benoitsteiner/tensorflow-xsmm,yanchen036/tensorflow,adamtiger/tensorflow,gautam1858/tensorflow,gojira/tensorflow,nburn42/tensorflow,nolanliou/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,yanchen036/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,bowang/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,tornadozou/tensorflow,ishay2b/tensorflow,jart/tensorflow,drpngx/tensorflow,snnn/tensorflow,Intel-tensorflow/tensorflow,pavelchristof/gomoku-ai,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,tillahoffmann/tensorflow,yufengg/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,snnn/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,laszlocsomor/tensorflow,eadgarchen/tensorflow,dancingdan/tensorflow,jart/tensorflow,jostep/tensorflow,maciekcc/tensorflow,AnishShah/tensorflow,apark263/tensorflow,unsiloai/syntaxnet-ops-hack,Bulochkin/tensorflow_pack,gunan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jendap/tensorflow,zasdfgbnm/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,Mistobaan/tensorflow,aselle/tensorflow,aselle/tensorflow,alshedivat/tensorflow,jalexvig/tensorflow,yufengg/tensorflow,gojira/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,Mistobaan/tensorflow,Bismarrck/tensorflow,ZhangXinNan/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,av8ramit/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,brchiu/tensorflow,davidzchen/tensorflow,ageron/tensorflow,yufengg/tensorflow,a-doumoulakis/tensorflow,paolodedios/tensorflow,tornadozou/tensorflow,gojira/tensorflow,mixturemodel-flow/tensorflow,hehongliang/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,arborh/tensorflow,meteorcloudy/tensorflow,chemelnucfin/tensorflow,rabipanda/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,theflofly/tensorflow,ran5515/DeepDecision,tiagofrepereira2012/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,codrut3/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,benoitsteiner/tensorflow-opencl,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,drpngx/tensorflow,kevin-coder/tensorflow-fork,gautam1858/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,tornadozou/tensorflow,ageron/tensorflow,jostep/tensorflow,alistairlow/tensorflow,maciekcc/tensorflow,hehongliang/tensorflow,lukeiwanski/tensorflow,ghchinoy/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,ychfan/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kobejean/tensorflow,alistairlow/tensorflow,JVillella/tensorflow,jwlawson/tensorflow,allenlavoie/tensorflow,asimshankar/tensorflow,benoitsteiner/tensorflow-xsmm,andrewcmyers/tensorflow,yongtang/tensorflow,drpngx/tensorflow,aselle/tensorflow,Xeralux/tensorflow,aselle/tensorflow,eadgarchen/tensorflow,jart/tensorflow,bowang/tensorflow,jendap/tensorflow,Mazecreator/tensorflow,apark263/tensorflow,AnishShah/tensorflow,brchiu/tensorflow,hsaputra/tensorflow,mdrumond/tensorflow,a-doumoulakis/tensorflow,freedomtan/tensorflow,zasdfgbnm/tensorflow,ArtsiomCh/tensorflow,alsrgv/tensorflow,dendisuhubdy/tensorflow,bowang/tensorflow,arborh/tensorflow,asimshankar/tensorflow,lakshayg/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,jart/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,dongjoon-hyun/tensorflow,zycdragonball/tensorflow,JingJunYin/tensorflow,apark263/tensorflow,hsaputra/tensorflow,suiyuan2009/tensorflow,alshedivat/tensorflow,kevin-coder/tensorflow-fork,adamtiger/tensorflow,nolanliou/tensorflow,mixturemodel-flow/tensorflow,dyoung418/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,Xeralux/tensorflow,AnishShah/tensorflow,gojira/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,manazhao/tf_recsys,ghchinoy/tensorflow,dancingdan/tensorflow,Mistobaan/tensorflow,annarev/tensorflow,dancingdan/tensorflow,tillahoffmann/tensorflow,lakshayg/tensorflow,sarvex/tensorflow,av8ramit/tensorflow,jendap/tensorflow,cxxgtxy/tensorflow,asimshankar/tensorflow,dendisuhubdy/tensorflow,Intel-tensorflow/tensorflow,allenlavoie/tensorflow,caisq/tensorflow,AnishShah/tensorflow,nburn42/tensorflow,raymondxyang/tensorflow,aselle/tensorflow,hsaputra/tensorflow,laszlocsomor/tensorflow,girving/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,lukeiwanski/tensorflow,codrut3/tensorflow,kobejean/tensorflow,benoitsteiner/tensorflow-xsmm,aldian/tensorflow,pavelchristof/gomoku-ai,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,yongtang/tensorflow,JVillella/tensorflow,gunan/tensorflow,aldian/tensorflow,horance-liu/tensorflow,dongjoon-hyun/tensorflow,gojira/tensorflow,theflofly/tensorflow,nburn42/tensorflow,AnishShah/tensorflow,yongtang/tensorflow,nburn42/tensorflow,mixturemodel-flow/tensorflow,adamtiger/tensorflow,xzturn/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,a-doumoulakis/tensorflow,benoitsteiner/tensorflow-xsmm,adit-chandra/tensorflow,apark263/tensorflow,benoitsteiner/tensorflow-xsmm,ZhangXinNan/tensorflow,apark263/tensorflow,caisq/tensorflow,ageron/tensorflow,mdrumond/tensorflow,guschmue/tensorflow,zasdfgbnm/tensorflow,jhseu/tensorflow,benoitsteiner/tensorflow-opencl,renyi533/tensorflow,horance-liu/tensorflow,meteorcloudy/tensorflow,annarev/tensorflow,snnn/tensorflow,JingJunYin/tensorflow,eadgarchen/tensorflow,ghchinoy/tensorflow,manazhao/tf_recsys,xzturn/tensorflow,alshedivat/tensorflow,sarvex/tensorflow,a-doumoulakis/tensorflow,dyoung418/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,dyoung418/tensorflow,lukeiwanski/tensorflow,nburn42/tensorflow,allenlavoie/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,tillahoffmann/tensorflow,zycdragonball/tensorflow,mixturemodel-flow/tensorflow,JingJunYin/tensorflow,jart/tensorflow,xzturn/tensorflow,seanli9jan/tensorflow,freedomtan/tensorflow,brchiu/tensorflow,gunan/tensorflow,renyi533/tensorflow,andrewcmyers/tensorflow,yufengg/tensorflow,yongtang/tensorflow,a-doumoulakis/tensorflow,dyoung418/tensorflow,theflofly/tensorflow,theflofly/tensorflow,Moriadry/tensorflow,andrewcmyers/tensorflow,annarev/tensorflow,gautam1858/tensorflow,tiagofrepereira2012/tensorflow,ArtsiomCh/tensorflow,gojira/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,jalexvig/tensorflow,unsiloai/syntaxnet-ops-hack,renyi533/tensorflow,bowang/tensorflow,hehongliang/tensorflow,manazhao/tf_recsys,hsaputra/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,ravindrapanda/tensorflow,Mistobaan/tensorflow,ZhangXinNan/tensorflow,drpngx/tensorflow,karllessard/tensorflow,andrewcmyers/tensorflow,theflofly/tensorflow,yongtang/tensorflow,girving/tensorflow,dyoung418/tensorflow,sarvex/tensorflow,Moriadry/tensorflow,eaplatanios/tensorflow,aam-at/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,JVillella/tensorflow,frreiss/tensorflow-fred,av8ramit/tensorflow,horance-liu/tensorflow,arborh/tensorflow,JingJunYin/tensorflow,arborh/tensorflow,gautam1858/tensorflow,Mazecreator/tensorflow,guschmue/tensorflow,yanchen036/tensorflow,mavenlin/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,drpngx/tensorflow,suiyuan2009/tensorflow,rabipanda/tensorflow,caisq/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Kongsea/tensorflow,kevin-coder/tensorflow-fork,Mistobaan/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,aselle/tensorflow,manazhao/tf_recsys,jwlawson/tensorflow,asimshankar/tensorflow,pavelchristof/gomoku-ai,girving/tensorflow,ishay2b/tensorflow,kobejean/tensorflow,Xeralux/tensorflow,jendap/tensorflow,laszlocsomor/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,benoitsteiner/tensorflow-opencl,jwlawson/tensorflow,Bulochkin/tensorflow_pack,renyi533/tensorflow,adit-chandra/tensorflow,jendap/tensorflow,ishay2b/tensorflow,ArtsiomCh/tensorflow,rabipanda/tensorflow,ran5515/DeepDecision,adit-chandra/tensorflow,jart/tensorflow,alshedivat/tensorflow,mdrumond/tensorflow,jwlawson/tensorflow,seanli9jan/tensorflow,yanchen036/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,alivecor/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,meteorcloudy/tensorflow,jendap/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,dongjoon-hyun/tensorflow,hsaputra/tensorflow,ishay2b/tensorflow,zasdfgbnm/tensorflow,Xeralux/tensorflow,tornadozou/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Bismarrck/tensorflow,Mistobaan/tensorflow,hsaputra/tensorflow,raymondxyang/tensorflow,gojira/tensorflow,Intel-Corporation/tensorflow,Moriadry/tensorflow,Moriadry/tensorflow,mavenlin/tensorflow,jart/tensorflow,freedomtan/tensorflow,benoitsteiner/tensorflow-opencl,hehongliang/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_tf_optimizer,manazhao/tf_recsys,tensorflow/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,xodus7/tensorflow,Moriadry/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow,karllessard/tensorflow,dancingdan/tensorflow,unsiloai/syntaxnet-ops-hack,caisq/tensorflow,bowang/tensorflow,tillahoffmann/tensorflow,frreiss/tensorflow-fred,kobejean/tensorflow,raymondxyang/tensorflow,tillahoffmann/tensorflow,chemelnucfin/tensorflow,alivecor/tensorflow,bowang/tensorflow,av8ramit/tensorflow,alshedivat/tensorflow,allenlavoie/tensorflow,manipopopo/tensorflow,asimshankar/tensorflow,caisq/tensorflow,nolanliou/tensorflow,yongtang/tensorflow,petewarden/tensorflow,JingJunYin/tensorflow,Mistobaan/tensorflow,with-git/tensorflow,meteorcloudy/tensorflow,laszlocsomor/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,nburn42/tensorflow,JingJunYin/tensorflow,dendisuhubdy/tensorflow,jbedorf/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,aldian/tensorflow,pavelchristof/gomoku-ai,lukeiwanski/tensorflow,kobejean/tensorflow,horance-liu/tensorflow,alshedivat/tensorflow,ageron/tensorflow,hehongliang/tensorflow,brchiu/tensorflow,jendap/tensorflow,ishay2b/tensorflow,mixturemodel-flow/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,horance-liu/tensorflow,ran5515/DeepDecision,av8ramit/tensorflow,gautam1858/tensorflow,rabipanda/tensorflow,jhseu/tensorflow,alivecor/tensorflow,ppwwyyxx/tensorflow,snnn/tensorflow,mixturemodel-flow/tensorflow,with-git/tensorflow,renyi533/tensorflow,ageron/tensorflow,JingJunYin/tensorflow,tensorflow/tensorflow,xodus7/tensorflow,seanli9jan/tensorflow,Bulochkin/tensorflow_pack,alshedivat/tensorflow,hfp/tensorflow-xsmm,seanli9jan/tensorflow,Xeralux/tensorflow,laszlocsomor/tensorflow,benoitsteiner/tensorflow-xsmm,zasdfgbnm/tensorflow,Xeralux/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,rabipanda/tensorflow,gojira/tensorflow,tiagofrepereira2012/tensorflow,Bismarrck/tensorflow,pavelchristof/gomoku-ai,ArtsiomCh/tensorflow,gunan/tensorflow,jart/tensorflow,aam-at/tensorflow,drpngx/tensorflow,JVillella/tensorflow,jhseu/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,brchiu/tensorflow,hfp/tensorflow-xsmm,eadgarchen/tensorflow,alistairlow/tensorflow,freedomtan/tensorflow,Mistobaan/tensorflow,Kongsea/tensorflow,ychfan/tensorflow,guschmue/tensorflow,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,jwlawson/tensorflow,Xeralux/tensorflow,xzturn/tensorflow,lakshayg/tensorflow,Intel-tensorflow/tensorflow,Moriadry/tensorflow,ageron/tensorflow,Bulochkin/tensorflow_pack,jart/tensorflow,zasdfgbnm/tensorflow,JVillella/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tornadozou/tensorflow,av8ramit/tensorflow,Mazecreator/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jwlawson/tensorflow,annarev/tensorflow,jwlawson/tensorflow,zasdfgbnm/tensorflow,caisq/tensorflow,rabipanda/tensorflow,eaplatanios/tensorflow,DavidNorman/tensorflow,dyoung418/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,with-git/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow,ravindrapanda/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,av8ramit/tensorflow,Bismarrck/tensorflow,a-doumoulakis/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,manipopopo/tensorflow,xzturn/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,jalexvig/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,rabipanda/tensorflow,sarvex/tensorflow,zycdragonball/tensorflow,allenlavoie/tensorflow,caisq/tensorflow,dyoung418/tensorflow,benoitsteiner/tensorflow-opencl,theflofly/tensorflow,asimshankar/tensorflow,ghchinoy/tensorflow,codrut3/tensorflow,meteorcloudy/tensorflow,alistairlow/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,nburn42/tensorflow,aldian/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,zycdragonball/tensorflow,karllessard/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow-xsmm,apark263/tensorflow,aldian/tensorflow,nolanliou/tensorflow,chemelnucfin/tensorflow,xodus7/tensorflow,Bulochkin/tensorflow_pack,frreiss/tensorflow-fred,laszlocsomor/tensorflow,ravindrapanda/tensorflow,mdrumond/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ishay2b/tensorflow,Bulochkin/tensorflow_pack,suiyuan2009/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow-opencl,with-git/tensorflow,alistairlow/tensorflow,lakshayg/tensorflow,eaplatanios/tensorflow,nolanliou/tensorflow,av8ramit/tensorflow,yongtang/tensorflow,chemelnucfin/tensorflow,aselle/tensorflow,adit-chandra/tensorflow,jart/tensorflow,hsaputra/tensorflow,ran5515/DeepDecision,petewarden/tensorflow,ychfan/tensorflow,davidzchen/tensorflow,Mazecreator/tensorflow,xodus7/tensorflow,horance-liu/tensorflow,freedomtan/tensorflow,mdrumond/tensorflow,jhseu/tensorflow,lakshayg/tensorflow,kevin-coder/tensorflow-fork,Kongsea/tensorflow,alsrgv/tensorflow,Kongsea/tensorflow,apark263/tensorflow,petewarden/tensorflow,guschmue/tensorflow,aam-at/tensorflow,lukeiwanski/tensorflow,tiagofrepereira2012/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,jbedorf/tensorflow,horance-liu/tensorflow,nolanliou/tensorflow,alsrgv/tensorflow,alistairlow/tensorflow,girving/tensorflow,eaplatanios/tensorflow,snnn/tensorflow,allenlavoie/tensorflow,Intel-Corporation/tensorflow,alistairlow/tensorflow,cxxgtxy/tensorflow,mavenlin/tensorflow,zasdfgbnm/tensorflow,tensorflow/tensorflow-pywrap_saved_model,laszlocsomor/tensorflow,mavenlin/tensorflow,gunan/tensorflow,codrut3/tensorflow,Mistobaan/tensorflow,jhseu/tensorflow,ran5515/DeepDecision,Kongsea/tensorflow,alivecor/tensorflow,jbedorf/tensorflow,xodus7/tensorflow,Bulochkin/tensorflow_pack,ppwwyyxx/tensorflow,alistairlow/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,with-git/tensorflow,jwlawson/tensorflow,Moriadry/tensorflow,nolanliou/tensorflow,JingJunYin/tensorflow,petewarden/tensorflow,eadgarchen/tensorflow,dendisuhubdy/tensorflow,suiyuan2009/tensorflow,jhseu/tensorflow,ravindrapanda/tensorflow,eaplatanios/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,JVillella/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,ZhangXinNan/tensorflow,codrut3/tensorflow,laszlocsomor/tensorflow,dongjoon-hyun/tensorflow,gunan/tensorflow,ageron/tensorflow,seanli9jan/tensorflow,maciekcc/tensorflow,Bulochkin/tensorflow_pack,raymondxyang/tensorflow,lakshayg/tensorflow,allenlavoie/tensorflow,dancingdan/tensorflow,lakshayg/tensorflow,seanli9jan/tensorflow,rabipanda/tensorflow,sarvex/tensorflow,aam-at/tensorflow,girving/tensorflow,aselle/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,kevin-coder/tensorflow-fork,manazhao/tf_recsys,raymondxyang/tensorflow,ravindrapanda/tensorflow,ychfan/tensorflow,jostep/tensorflow,gunan/tensorflow,Kongsea/tensorflow,DavidNorman/tensorflow,ravindrapanda/tensorflow,laszlocsomor/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,alistairlow/tensorflow,guschmue/tensorflow,yufengg/tensorflow,ychfan/tensorflow,codrut3/tensorflow,guschmue/tensorflow,davidzchen/tensorflow,mdrumond/tensorflow,Kongsea/tensorflow,av8ramit/tensorflow,alivecor/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tillahoffmann/tensorflow,xzturn/tensorflow,jbedorf/tensorflow,Mazecreator/tensorflow,jhseu/tensorflow,xzturn/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,with-git/tensorflow,unsiloai/syntaxnet-ops-hack,JVillella/tensorflow,benoitsteiner/tensorflow-xsmm,aldian/tensorflow,girving/tensorflow,arborh/tensorflow,ghchinoy/tensorflow,bowang/tensorflow,tiagofrepereira2012/tensorflow,lukeiwanski/tensorflow,arborh/tensorflow,laszlocsomor/tensorflow,dendisuhubdy/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,aam-at/tensorflow,codrut3/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,zycdragonball/tensorflow,ageron/tensorflow,eadgarchen/tensorflow,maciekcc/tensorflow,adit-chandra/tensorflow,adit-chandra/tensorflow,JingJunYin/tensorflow,frreiss/tensorflow-fred,asimshankar/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,manipopopo/tensorflow,yanchen036/tensorflow,nburn42/tensorflow,codrut3/tensorflow,annarev/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow,seanli9jan/tensorflow,horance-liu/tensorflow,theflofly/tensorflow,maciekcc/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,av8ramit/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,guschmue/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,Mistobaan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,ran5515/DeepDecision,tillahoffmann/tensorflow,Bismarrck/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,Xeralux/tensorflow,adamtiger/tensorflow,frreiss/tensorflow-fred,allenlavoie/tensorflow,theflofly/tensorflow,aam-at/tensorflow,mavenlin/tensorflow,allenlavoie/tensorflow,gojira/tensorflow,gautam1858/tensorflow,andrewcmyers/tensorflow,renyi533/tensorflow,freedomtan/tensorflow,Moriadry/tensorflow,rabipanda/tensorflow,meteorcloudy/tensorflow,mavenlin/tensorflow,dancingdan/tensorflow,ravindrapanda/tensorflow,av8ramit/tensorflow,gunan/tensorflow,jbedorf/tensorflow,unsiloai/syntaxnet-ops-hack,dongjoon-hyun/tensorflow,tiagofrepereira2012/tensorflow,drpngx/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,hfp/tensorflow-xsmm,jwlawson/tensorflow,mdrumond/tensorflow,eadgarchen/tensorflow,eaplatanios/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,apark263/tensorflow,horance-liu/tensorflow,mavenlin/tensorflow,a-doumoulakis/tensorflow,zasdfgbnm/tensorflow,snnn/tensorflow,hfp/tensorflow-xsmm,caisq/tensorflow,Xeralux/tensorflow,pavelchristof/gomoku-ai,karllessard/tensorflow,snnn/tensorflow,jbedorf/tensorflow,snnn/tensorflow,ravindrapanda/tensorflow,ychfan/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,nburn42/tensorflow,nburn42/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,alivecor/tensorflow,seanli9jan/tensorflow,allenlavoie/tensorflow,ZhangXinNan/tensorflow,DavidNorman/tensorflow,dancingdan/tensorflow,ZhangXinNan/tensorflow,raymondxyang/tensorflow,brchiu/tensorflow,tornadozou/tensorflow,karllessard/tensorflow,benoitsteiner/tensorflow-opencl,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tornadozou/tensorflow,Bulochkin/tensorflow_pack,jostep/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,girving/tensorflow,tensorflow/tensorflow,ageron/tensorflow,snnn/tensorflow,jostep/tensorflow,Xeralux/tensorflow,guschmue/tensorflow,dongjoon-hyun/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,brchiu/tensorflow,jendap/tensorflow,adamtiger/tensorflow,gojira/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,manipopopo/tensorflow,theflofly/tensorflow,raymondxyang/tensorflow,codrut3/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,unsiloai/syntaxnet-ops-hack,gojira/tensorflow,alsrgv/tensorflow,girving/tensorflow,pavelchristof/gomoku-ai,apark263/tensorflow,sarvex/tensorflow,arborh/tensorflow,hfp/tensorflow-xsmm,ishay2b/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,with-git/tensorflow,suiyuan2009/tensorflow,drpngx/tensorflow,ychfan/tensorflow,theflofly/tensorflow,jostep/tensorflow,lakshayg/tensorflow,hsaputra/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,ran5515/DeepDecision,nolanliou/tensorflow,AnishShah/tensorflow,dongjoon-hyun/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,xzturn/tensorflow,hsaputra/tensorflow,caisq/tensorflow,jbedorf/tensorflow,nburn42/tensorflow,Intel-Corporation/tensorflow,ZhangXinNan/tensorflow,eadgarchen/tensorflow,alivecor/tensorflow,ghchinoy/tensorflow,dendisuhubdy/tensorflow,yanchen036/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,brchiu/tensorflow,Mazecreator/tensorflow,ppwwyyxx/tensorflow,tillahoffmann/tensorflow,davidzchen/tensorflow,pavelchristof/gomoku-ai,mdrumond/tensorflow,kevin-coder/tensorflow-fork,alivecor/tensorflow,ageron/tensorflow,jalexvig/tensorflow,yanchen036/tensorflow,nolanliou/tensorflow,ZhangXinNan/tensorflow,aldian/tensorflow,alsrgv/tensorflow,ArtsiomCh/tensorflow,ArtsiomCh/tensorflow,jwlawson/tensorflow,ArtsiomCh/tensorflow,Kongsea/tensorflow,eaplatanios/tensorflow,girving/tensorflow,maciekcc/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,Mazecreator/tensorflow,jalexvig/tensorflow,suiyuan2009/tensorflow,Bulochkin/tensorflow_pack,paolodedios/tensorflow,dyoung418/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,yufengg/tensorflow,yufengg/tensorflow,Xeralux/tensorflow,AnishShah/tensorflow,jwlawson/tensorflow,with-git/tensorflow,chemelnucfin/tensorflow
|
f0705ea08c9c53f13113f60db2bea9786d7738bb
|
src/ee/common/UndoQuantumReleaseInterest.h
|
src/ee/common/UndoQuantumReleaseInterest.h
|
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VoltDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNDOQUANTUM_RELEASE_INTEREST_H_
#define UNDOQUANTUM_RELEASE_INTEREST_H_
namespace voltdb {
class UndoQuantumReleaseInterest {
public:
virtual void notifyQuantumRelease() = 0;
};
}
#endif /* UNDOQUANTUM_H_ */
|
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VoltDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNDOQUANTUM_RELEASE_INTEREST_H_
#define UNDOQUANTUM_RELEASE_INTEREST_H_
namespace voltdb {
class UndoQuantumReleaseInterest {
public:
virtual void notifyQuantumRelease() = 0;
virtual ~UndoQuantumReleaseInterest() {}
};
}
#endif /* UNDOQUANTUM_H_ */
|
Fix compile error on CentOS
|
Fix compile error on CentOS
|
C
|
agpl-3.0
|
simonzhangsm/voltdb,flybird119/voltdb,kobronson/cs-voltdb,flybird119/voltdb,flybird119/voltdb,deerwalk/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,zuowang/voltdb,flybird119/voltdb,kumarrus/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,VoltDB/voltdb,zuowang/voltdb,migue/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,deerwalk/voltdb,ingted/voltdb,migue/voltdb,migue/voltdb,flybird119/voltdb,paulmartel/voltdb,kumarrus/voltdb,zuowang/voltdb,creative-quant/voltdb,migue/voltdb,zuowang/voltdb,deerwalk/voltdb,kobronson/cs-voltdb,migue/voltdb,flybird119/voltdb,flybird119/voltdb,creative-quant/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,VoltDB/voltdb,VoltDB/voltdb,wolffcm/voltdb,migue/voltdb,creative-quant/voltdb,paulmartel/voltdb,kobronson/cs-voltdb,flybird119/voltdb,VoltDB/voltdb,deerwalk/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,creative-quant/voltdb,VoltDB/voltdb,kumarrus/voltdb,wolffcm/voltdb,kumarrus/voltdb,migue/voltdb,deerwalk/voltdb,kobronson/cs-voltdb,kumarrus/voltdb,creative-quant/voltdb,deerwalk/voltdb,ingted/voltdb,ingted/voltdb,simonzhangsm/voltdb,ingted/voltdb,creative-quant/voltdb,ingted/voltdb,deerwalk/voltdb,paulmartel/voltdb,creative-quant/voltdb,kobronson/cs-voltdb,zuowang/voltdb,VoltDB/voltdb,wolffcm/voltdb,ingted/voltdb,deerwalk/voltdb,zuowang/voltdb,creative-quant/voltdb,paulmartel/voltdb,kumarrus/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,ingted/voltdb,zuowang/voltdb,paulmartel/voltdb,wolffcm/voltdb,wolffcm/voltdb,wolffcm/voltdb,kobronson/cs-voltdb,migue/voltdb,ingted/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,paulmartel/voltdb,zuowang/voltdb
|
42078262c5a5a4203a3256d6b0ab16792c48a433
|
include/charset.h
|
include/charset.h
|
n/*************************************************
* Character Set Handling Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_CHARSET_H__
#define BOTAN_CHARSET_H__
#include <botan/types.h>
#include <botan/enums.h>
#include <string>
namespace Botan {
namespace Charset {
/*************************************************
* Character Set Handling *
*************************************************/
std::string transcode(const std::string&, Character_Set, Character_Set);
bool is_digit(char);
bool is_space(char);
bool caseless_cmp(char, char);
byte char2digit(char);
char digit2char(byte);
}
}
#endif
|
/*************************************************
* Character Set Handling Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_CHARSET_H__
#define BOTAN_CHARSET_H__
#include <botan/types.h>
#include <botan/enums.h>
#include <string>
namespace Botan {
namespace Charset {
/*************************************************
* Character Set Handling *
*************************************************/
std::string transcode(const std::string&, Character_Set, Character_Set);
bool is_digit(char);
bool is_space(char);
bool caseless_cmp(char, char);
byte char2digit(char);
char digit2char(byte);
}
}
#endif
|
Remove stray character introduced during merge
|
Remove stray character introduced during merge
|
C
|
bsd-2-clause
|
randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan
|
e0c021bfef7292524964b4ab61db5db65c49f6aa
|
atom/utility/atom_content_utility_client.h
|
atom/utility/atom_content_utility_client.h
|
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "content/public/utility/content_utility_client.h"
class UtilityMessageHandler;
namespace atom {
class AtomContentUtilityClient : public content::ContentUtilityClient {
public:
AtomContentUtilityClient();
~AtomContentUtilityClient() override;
private:
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
};
} // namespace atom
#endif // ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
|
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "content/public/utility/content_utility_client.h"
class UtilityMessageHandler;
namespace atom {
class AtomContentUtilityClient : public content::ContentUtilityClient {
public:
AtomContentUtilityClient();
~AtomContentUtilityClient() override;
private:
#if defined(OS_WIN)
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
#endif
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
};
} // namespace atom
#endif // ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
|
Fix compilation waring on Mac
|
Fix compilation waring on Mac
|
C
|
mit
|
shiftkey/electron,shiftkey/electron,the-ress/electron,renaesop/electron,rajatsingla28/electron,electron/electron,rreimann/electron,Floato/electron,renaesop/electron,tonyganch/electron,miniak/electron,brenca/electron,the-ress/electron,miniak/electron,tonyganch/electron,electron/electron,shiftkey/electron,renaesop/electron,Floato/electron,Floato/electron,miniak/electron,gerhardberger/electron,seanchas116/electron,thompsonemerson/electron,rajatsingla28/electron,tonyganch/electron,Floato/electron,gerhardberger/electron,gerhardberger/electron,wan-qy/electron,twolfson/electron,tonyganch/electron,joaomoreno/atom-shell,biblerule/UMCTelnetHub,joaomoreno/atom-shell,bpasero/electron,thompsonemerson/electron,rreimann/electron,seanchas116/electron,twolfson/electron,thomsonreuters/electron,rajatsingla28/electron,the-ress/electron,rajatsingla28/electron,electron/electron,biblerule/UMCTelnetHub,wan-qy/electron,twolfson/electron,thompsonemerson/electron,rreimann/electron,Floato/electron,miniak/electron,electron/electron,brenca/electron,the-ress/electron,miniak/electron,joaomoreno/atom-shell,shiftkey/electron,brenca/electron,renaesop/electron,biblerule/UMCTelnetHub,joaomoreno/atom-shell,wan-qy/electron,joaomoreno/atom-shell,twolfson/electron,shiftkey/electron,rajatsingla28/electron,bpasero/electron,rreimann/electron,twolfson/electron,renaesop/electron,the-ress/electron,thompsonemerson/electron,seanchas116/electron,Floato/electron,tonyganch/electron,bpasero/electron,gerhardberger/electron,rreimann/electron,thomsonreuters/electron,thomsonreuters/electron,thompsonemerson/electron,wan-qy/electron,renaesop/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,gerhardberger/electron,brenca/electron,wan-qy/electron,biblerule/UMCTelnetHub,shiftkey/electron,thomsonreuters/electron,biblerule/UMCTelnetHub,thomsonreuters/electron,joaomoreno/atom-shell,brenca/electron,thompsonemerson/electron,gerhardberger/electron,biblerule/UMCTelnetHub,tonyganch/electron,bpasero/electron,electron/electron,twolfson/electron,the-ress/electron,wan-qy/electron,seanchas116/electron,bpasero/electron,brenca/electron,thomsonreuters/electron,rreimann/electron,rajatsingla28/electron,electron/electron,gerhardberger/electron,bpasero/electron,miniak/electron,electron/electron,the-ress/electron
|
c7a41814a7f1a1519f107108233071646bd2fa6a
|
rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h
|
rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h
|
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#if __cplusplus
extern "C"
{
#endif
#include "u_instanceHandle.h" // NOLINT
#include "v_collection.h" // NOLINT
v_gid
u_instanceHandleToGID(
u_instanceHandle _this);
#ifdef __cplusplus
}
#endif
#endif // ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
|
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
#define ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
// Provides visibility macros like ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC.
#include <rosidl_typesupport_opensplice_cpp/visibility_control.h>
#if __cplusplus
extern "C"
{
#endif
#include "u_instanceHandle.h" // NOLINT
#include "v_collection.h" // NOLINT
ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC
v_gid
u_instanceHandleToGID(
u_instanceHandle _this);
#ifdef __cplusplus
}
#endif
#endif // ROSIDL_TYPESUPPORT_OPENSPLICE_CPP__U__INSTANCEHANDLE_H_
|
Fix build issue on windows
|
Fix build issue on windows
export function
|
C
|
apache-2.0
|
ros2/rmw_opensplice
|
b8e969093e83bccc053e2102674561776ef5ee44
|
evmjit/libevmjit/CompilerHelper.h
|
evmjit/libevmjit/CompilerHelper.h
|
#pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelper(llvm::IRBuilder<>& _builder);
CompilerHelper(const CompilerHelper&) = delete;
CompilerHelper& operator=(CompilerHelper) = delete;
/// Reference to the IR module being compiled
llvm::Module* getModule();
/// Reference to the main module function
llvm::Function* getMainFunction();
/// Reference to parent compiler IR builder
llvm::IRBuilder<>& m_builder;
llvm::IRBuilder<>& getBuilder() { return m_builder; }
llvm::CallInst* createCall(llvm::Function* _func, std::initializer_list<llvm::Value*> const& _args);
friend class RuntimeHelper;
};
/// Compiler helper that depends on runtime data
class RuntimeHelper : public CompilerHelper
{
protected:
RuntimeHelper(RuntimeManager& _runtimeManager);
RuntimeManager& getRuntimeManager() { return m_runtimeManager; }
private:
RuntimeManager& m_runtimeManager;
};
using InsertPointGuard = llvm::IRBuilderBase::InsertPointGuard;
}
}
}
|
#pragma once
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IRBuilder.h>
#include "preprocessor/llvm_includes_end.h"
namespace dev
{
namespace eth
{
namespace jit
{
class RuntimeManager;
/// Base class for compiler helpers like Memory, GasMeter, etc.
class CompilerHelper
{
protected:
CompilerHelper(llvm::IRBuilder<>& _builder);
CompilerHelper(const CompilerHelper&) = delete;
CompilerHelper& operator=(CompilerHelper) = delete;
/// Reference to the IR module being compiled
llvm::Module* getModule();
/// Reference to the main module function
llvm::Function* getMainFunction();
/// Reference to parent compiler IR builder
llvm::IRBuilder<>& m_builder;
llvm::IRBuilder<>& getBuilder() { return m_builder; }
llvm::CallInst* createCall(llvm::Function* _func, std::initializer_list<llvm::Value*> const& _args);
friend class RuntimeHelper;
};
/// Compiler helper that depends on runtime data
class RuntimeHelper : public CompilerHelper
{
protected:
RuntimeHelper(RuntimeManager& _runtimeManager);
RuntimeManager& getRuntimeManager() { return m_runtimeManager; }
private:
RuntimeManager& m_runtimeManager;
};
struct InsertPointGuard
{
explicit InsertPointGuard(llvm::IRBuilderBase& _builder): m_builder(_builder), m_insertPoint(_builder.saveIP()) {}
~InsertPointGuard() { m_builder.restoreIP(m_insertPoint); }
private:
llvm::IRBuilderBase& m_builder;
decltype(m_builder.saveIP()) m_insertPoint;
};
}
}
}
|
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
|
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is built by homebrew with assertions by default.
|
C
|
mit
|
johnpeter66/ethminer,smartbitcoin/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,ethers/cpp-ethereum,expanse-project/cpp-expanse,yann300/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,anthony-cros/cpp-ethereum,LefterisJP/webthree-umbrella,yann300/cpp-ethereum,d-das/cpp-ethereum,LefterisJP/cpp-ethereum,LefterisJP/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,vaporry/cpp-ethereum,joeldo/cpp-ethereum,d-das/cpp-ethereum,anthony-cros/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,karek314/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,chfast/webthree-umbrella,LefterisJP/webthree-umbrella,PaulGrey30/go-get--u-github.com-tools-godep,yann300/cpp-ethereum,expanse-project/cpp-expanse,Sorceror32/go-get--u-github.com-tools-godep,LefterisJP/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,gluk256/cpp-ethereum,joeldo/cpp-ethereum,expanse-org/cpp-expanse,programonauta/webthree-umbrella,yann300/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,smartbitcoin/cpp-ethereum,smartbitcoin/cpp-ethereum,eco/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,karek314/cpp-ethereum,expanse-org/cpp-expanse,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,anthony-cros/cpp-ethereum,expanse-project/cpp-expanse,ethers/cpp-ethereum,smartbitcoin/cpp-ethereum,eco/cpp-ethereum,eco/cpp-ethereum,programonauta/webthree-umbrella,johnpeter66/ethminer,d-das/cpp-ethereum,expanse-org/cpp-expanse,LefterisJP/cpp-ethereum,expanse-org/cpp-expanse,ethers/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,PaulGrey30/go-get--u-github.com-tools-godep,joeldo/cpp-ethereum,xeddmc/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,ethers/cpp-ethereum,d-das/cpp-ethereum,eco/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-project/cpp-expanse,expanse-org/cpp-expanse,anthony-cros/cpp-ethereum,johnpeter66/ethminer,Sorceror32/go-get--u-github.com-tools-godep,yann300/cpp-ethereum,xeddmc/cpp-ethereum,xeddmc/cpp-ethereum,karek314/cpp-ethereum,LefterisJP/cpp-ethereum,expanse-project/cpp-expanse,gluk256/cpp-ethereum,eco/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,d-das/cpp-ethereum,karek314/cpp-ethereum,d-das/cpp-ethereum,arkpar/webthree-umbrella,LefterisJP/cpp-ethereum,eco/cpp-ethereum,joeldo/cpp-ethereum,anthony-cros/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,expanse-project/cpp-expanse,vaporry/cpp-ethereum,ethers/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,vaporry/webthree-umbrella,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,joeldo/cpp-ethereum,vaporry/cpp-ethereum,smartbitcoin/cpp-ethereum,yann300/cpp-ethereum,joeldo/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,vaporry/cpp-ethereum,expanse-org/cpp-expanse,gluk256/cpp-ethereum,gluk256/cpp-ethereum,Sorceror32/go-get--u-github.com-tools-godep,anthony-cros/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,smartbitcoin/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum
|
fd21da62c853499531eb95fc666cde55e70b1d41
|
Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h
|
Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h
|
/*=============================================================================
Library: CTK
Copyright (c) 2010 German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=============================================================================*/
#ifndef CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#define CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#include <QtCore/qglobal.h>
#if defined(CTKPluginFrameworkTestUtil_EXPORTS)
#define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
#else
#define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_IMPORT
#endif
#endif // CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
|
/*=============================================================================
Library: CTK
Copyright (c) 2010 German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=============================================================================*/
#ifndef CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#define CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
#include <QtCore/qglobal.h>
#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
# if defined(CTKPluginFrameworkTestUtil_EXPORTS)
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
# else
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_IMPORT
# endif
#endif
#if !defined(CTK_PLUGINFW_TESTUTIL_EXPORT)
//# if defined(CTK_SHARED)
# define CTK_PLUGINFW_TESTUTIL_EXPORT Q_DECL_EXPORT
//# else
//# define @MY_LIBRARY_EXPORT_DIRECTIVE@
//# endif
#endif
#endif // CTKPLUGINFRAMEWORKTESTUTILEXPORT_H
|
Fix export macro for plugin test utility library.
|
Fix export macro for plugin test utility library.
|
C
|
apache-2.0
|
commontk/CTK,finetjul/CTK,finetjul/CTK,sankhesh/CTK,CJGoch/CTK,commontk/CTK,msmolens/CTK,pieper/CTK,CJGoch/CTK,AndreasFetzer/CTK,rkhlebnikov/CTK,Sardge/CTK,jcfr/CTK,naucoin/CTK,rkhlebnikov/CTK,mehrtash/CTK,lassoan/CTK,151706061/CTK,mehrtash/CTK,commontk/CTK,espakm/CTK,SINTEFMedtek/CTK,pieper/CTK,danielknorr/CTK,jcfr/CTK,naucoin/CTK,danielknorr/CTK,AndreasFetzer/CTK,Sardge/CTK,151706061/CTK,pieper/CTK,jcfr/CTK,CJGoch/CTK,CJGoch/CTK,vovythevov/CTK,sankhesh/CTK,danielknorr/CTK,Heather/CTK,laurennlam/CTK,jcfr/CTK,mehrtash/CTK,espakm/CTK,jcfr/CTK,msmolens/CTK,Heather/CTK,laurennlam/CTK,naucoin/CTK,lassoan/CTK,naucoin/CTK,151706061/CTK,ddao/CTK,msmolens/CTK,SINTEFMedtek/CTK,espakm/CTK,fedorov/CTK,fedorov/CTK,151706061/CTK,vovythevov/CTK,danielknorr/CTK,lassoan/CTK,fedorov/CTK,pieper/CTK,vovythevov/CTK,msmolens/CTK,ddao/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,CJGoch/CTK,fedorov/CTK,finetjul/CTK,ddao/CTK,Heather/CTK,ddao/CTK,rkhlebnikov/CTK,mehrtash/CTK,espakm/CTK,Heather/CTK,sankhesh/CTK,151706061/CTK,AndreasFetzer/CTK,rkhlebnikov/CTK,vovythevov/CTK,lassoan/CTK,sankhesh/CTK,Sardge/CTK,Sardge/CTK,commontk/CTK,SINTEFMedtek/CTK,laurennlam/CTK,finetjul/CTK,AndreasFetzer/CTK,laurennlam/CTK
|
b3400badf022b4ff6f3545d1baa706affc22d93d
|
include/gpu/gl/SkMesaGLContext.h
|
include/gpu/gl/SkMesaGLContext.h
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intptr_t Context;
public:
SkMesaGLContext();
virtual ~SkMesaGLContext();
virtual void makeCurrent() const SK_OVERRIDE;
class AutoContextRestore {
public:
AutoContextRestore();
~AutoContextRestore();
private:
Context fOldContext;
GLint fOldWidth;
GLint fOldHeight;
GLint fOldFormat;
void* fOldImage;
};
protected:
virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
virtual void destroyGLContext() SK_OVERRIDE;
private:
Context fContext;
GrGLubyte *fImage;
};
#endif
#endif
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intptr_t Context;
public:
SkMesaGLContext();
virtual ~SkMesaGLContext();
virtual void makeCurrent() const SK_OVERRIDE;
class AutoContextRestore {
public:
AutoContextRestore();
~AutoContextRestore();
private:
Context fOldContext;
GrGLint fOldWidth;
GrGLint fOldHeight;
GrGLint fOldFormat;
void* fOldImage;
};
protected:
virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
virtual void destroyGLContext() SK_OVERRIDE;
private:
Context fContext;
GrGLubyte *fImage;
};
#endif
#endif
|
Fix undefined GLint in Mac builds
|
Fix undefined GLint in Mac builds
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
|
C
|
bsd-3-clause
|
geekboxzone/lollipop_external_chromium_org_third_party_skia,sombree/android_external_skia,rubenvb/skia,Purity-Lollipop/platform_external_skia,FusionSP/android_external_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,zhaochengw/platform_external_skia,aospo/platform_external_skia,fire855/android_external_skia,Khaon/android_external_skia,FusionSP/android_external_skia,google/skia,TeamTwisted/external_skia,houst0nn/external_skia,fire855/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,aospo/platform_external_skia,GladeRom/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,amyvmiwei/skia,MinimalOS/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,Infusion-OS/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,mydongistiny/android_external_skia,Samsung/skia,Euphoria-OS-Legacy/android_external_skia,NamelessRom/android_external_skia,FusionSP/external_chromium_org_third_party_skia,tmpvar/skia.cc,xzzz9097/android_external_skia,chenlian2015/skia_from_google,GladeRom/android_external_skia,TeslaProject/external_skia,pacerom/external_skia,temasek/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,ominux/skia,NamelessRom/android_external_skia,boulzordev/android_external_skia,TeslaProject/external_skia,samuelig/skia,TeslaOS/android_external_skia,TeamEOS/external_skia,MinimalOS/external_chromium_org_third_party_skia,mmatyas/skia,Igalia/skia,Jichao/skia,Hybrid-Rom/external_skia,ominux/skia,sudosurootdev/external_skia,RadonX-ROM/external_skia,Infusion-OS/android_external_skia,invisiblek/android_external_skia,mozilla-b2g/external_skia,Hybrid-Rom/external_skia,DesolationStaging/android_external_skia,FusionSP/android_external_skia,aosp-mirror/platform_external_skia,Jichao/skia,ench0/external_skia,Omegaphora/external_skia,MarshedOut/android_external_skia,Asteroid-Project/android_external_skia,AOSPB/external_skia,Plain-Andy/android_platform_external_skia,F-AOSP/platform_external_skia,jtg-gg/skia,Pure-Aosp/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,Omegaphora/external_skia,larsbergstrom/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,BrokenROM/external_skia,timduru/platform-external-skia,todotodoo/skia,noselhq/skia,VRToxin-AOSP/android_external_skia,jtg-gg/skia,TeamEOS/external_chromium_org_third_party_skia,sudosurootdev/external_skia,AOSPA-L/android_external_skia,byterom/android_external_skia,Omegaphora/external_skia,Infinitive-OS/platform_external_skia,Hikari-no-Tenshi/android_external_skia,fire855/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamTwisted/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,AOSPA-L/android_external_skia,UBERMALLOW/external_skia,larsbergstrom/skia,sigysmund/platform_external_skia,nox/skia,MyAOSP/external_chromium_org_third_party_skia,timduru/platform-external-skia,NamelessRom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,houst0nn/external_skia,TeamTwisted/external_skia,Jichao/skia,android-ia/platform_external_skia,YUPlayGodDev/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MinimalOS/external_skia,suyouxin/android_external_skia,Jichao/skia,boulzordev/android_external_skia,zhaochengw/platform_external_skia,MonkeyZZZZ/platform_external_skia,suyouxin/android_external_skia,YUPlayGodDev/platform_external_skia,vanish87/skia,MinimalOS-AOSP/platform_external_skia,nfxosp/platform_external_skia,ctiao/platform-external-skia,google/skia,pcwalton/skia,spezi77/android_external_skia,OptiPop/external_skia,todotodoo/skia,DiamondLovesYou/skia-sys,F-AOSP/platform_external_skia,AndroidOpenDevelopment/android_external_skia,sigysmund/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,TeamTwisted/external_skia,OptiPop/external_chromium_org_third_party_skia,OneRom/external_skia,Infusion-OS/android_external_skia,FusionSP/android_external_skia,MinimalOS/external_skia,OptiPop/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,PAC-ROM/android_external_skia,Hikari-no-Tenshi/android_external_skia,geekboxzone/mmallow_external_skia,geekboxzone/mmallow_external_skia,nfxosp/platform_external_skia,todotodoo/skia,aospo/platform_external_skia,Fusion-Rom/android_external_skia,AOSPA-L/android_external_skia,Asteroid-Project/android_external_skia,shahrzadmn/skia,VRToxin-AOSP/android_external_skia,ench0/external_skia,HalCanary/skia-hc,Tesla-Redux/android_external_skia,AOSP-YU/platform_external_skia,TeamTwisted/external_skia,Purity-Lollipop/platform_external_skia,AOSPB/external_skia,OneRom/external_skia,nox/skia,InfinitiveOS/external_skia,houst0nn/external_skia,MarshedOut/android_external_skia,TeslaProject/external_skia,larsbergstrom/skia,codeaurora-unoffical/platform-external-skia,noselhq/skia,rubenvb/skia,fire855/android_external_skia,MIPS/external-chromium_org-third_party-skia,SlimSaber/android_external_skia,NamelessRom/android_external_skia,TeslaOS/android_external_skia,NamelessRom/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,mmatyas/skia,YUPlayGodDev/platform_external_skia,ominux/skia,Hybrid-Rom/external_skia,TeslaProject/external_skia,Euphoria-OS-Legacy/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,sombree/android_external_skia,nvoron23/skia,amyvmiwei/skia,Igalia/skia,pacerom/external_skia,aosp-mirror/platform_external_skia,PAC-ROM/android_external_skia,nfxosp/platform_external_skia,jtg-gg/skia,byterom/android_external_skia,android-ia/platform_external_skia,YUPlayGodDev/platform_external_skia,houst0nn/external_skia,UBERMALLOW/external_skia,android-ia/platform_external_chromium_org_third_party_skia,Igalia/skia,w3nd1go/android_external_skia,nox/skia,nvoron23/skia,timduru/platform-external-skia,pcwalton/skia,nvoron23/skia,GladeRom/android_external_skia,noselhq/skia,Fusion-Rom/external_chromium_org_third_party_skia,aospo/platform_external_skia,qrealka/skia-hc,DARKPOP/external_chromium_org_third_party_skia,xin3liang/platform_external_chromium_org_third_party_skia,ctiao/platform-external-skia,chenlian2015/skia_from_google,Tesla-Redux/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,AOSPB/external_skia,android-ia/platform_external_skia,amyvmiwei/skia,HalCanary/skia-hc,vanish87/skia,geekboxzone/lollipop_external_skia,android-ia/platform_external_chromium_org_third_party_skia,pcwalton/skia,YUPlayGodDev/platform_external_skia,nox/skia,FusionSP/android_external_skia,rubenvb/skia,MinimalOS/android_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,Purity-Lollipop/platform_external_skia,Pure-Aosp/android_external_skia,samuelig/skia,Asteroid-Project/android_external_skia,suyouxin/android_external_skia,HalCanary/skia-hc,temasek/android_external_skia,Omegaphora/external_skia,Euphoria-OS-Legacy/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,ench0/external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,CyanogenMod/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,OneRom/external_skia,qrealka/skia-hc,Infinitive-OS/platform_external_skia,F-AOSP/platform_external_skia,ench0/external_skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,TeslaOS/android_external_skia,vvuk/skia,MarshedOut/android_external_skia,nox/skia,MinimalOS/android_external_skia,OptiPop/external_skia,ominux/skia,OptiPop/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,byterom/android_external_skia,SlimSaber/android_external_skia,GladeRom/android_external_skia,Khaon/android_external_skia,TeamExodus/external_skia,nvoron23/skia,OptiPop/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,w3nd1go/android_external_skia,VRToxin-AOSP/android_external_skia,sudosurootdev/external_skia,akiss77/skia,suyouxin/android_external_skia,AOSPB/external_skia,Jichao/skia,ctiao/platform-external-skia,geekboxzone/lollipop_external_skia,ench0/external_chromium_org_third_party_skia,Infusion-OS/android_external_skia,mozilla-b2g/external_skia,nox/skia,MIPS/external-chromium_org-third_party-skia,zhaochengw/platform_external_skia,wildermason/external_skia,ctiao/platform-external-skia,qrealka/skia-hc,Infinitive-OS/platform_external_skia,InfinitiveOS/external_skia,rubenvb/skia,scroggo/skia,ench0/external_chromium_org_third_party_skia,TeslaProject/external_skia,Pure-Aosp/android_external_skia,Igalia/skia,DiamondLovesYou/skia-sys,invisiblek/android_external_skia,AndroidOpenDevelopment/android_external_skia,temasek/android_external_skia,samuelig/skia,geekboxzone/mmallow_external_skia,codeaurora-unoffical/platform-external-skia,VRToxin-AOSP/android_external_skia,suyouxin/android_external_skia,OptiPop/external_chromium_org_third_party_skia,Android-AOSP/external_skia,aosp-mirror/platform_external_skia,shahrzadmn/skia,pacerom/external_skia,Android-AOSP/external_skia,AOSPA-L/android_external_skia,vanish87/skia,xin3liang/platform_external_chromium_org_third_party_skia,Samsung/skia,OneRom/external_skia,houst0nn/external_skia,OptiPop/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,noselhq/skia,SlimSaber/android_external_skia,aosp-mirror/platform_external_skia,sigysmund/platform_external_skia,larsbergstrom/skia,MIPS/external-chromium_org-third_party-skia,android-ia/platform_external_skia,Tesla-Redux/android_external_skia,xzzz9097/android_external_skia,TeamEOS/external_skia,timduru/platform-external-skia,BrokenROM/external_skia,google/skia,todotodoo/skia,Fusion-Rom/android_external_skia,Purity-Lollipop/platform_external_skia,AsteroidOS/android_external_skia,xzzz9097/android_external_skia,SlimSaber/android_external_skia,Hikari-no-Tenshi/android_external_skia,Tesla-Redux/android_external_skia,w3nd1go/android_external_skia,amyvmiwei/skia,sudosurootdev/external_skia,fire855/android_external_skia,TeamBliss-LP/android_external_skia,TeamEOS/external_skia,AndroidOpenDevelopment/android_external_skia,AsteroidOS/android_external_skia,TeamEOS/external_skia,AOSPA-L/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,UBERMALLOW/external_skia,OptiPop/external_skia,MarshedOut/android_external_skia,sigysmund/platform_external_skia,F-AOSP/platform_external_skia,FusionSP/android_external_skia,Euphoria-OS-Legacy/android_external_skia,qrealka/skia-hc,MIPS/external-chromium_org-third_party-skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,vvuk/skia,Tesla-Redux/android_external_skia,ench0/external_chromium_org_third_party_skia,byterom/android_external_skia,AOSP-YU/platform_external_skia,nfxosp/platform_external_skia,TeslaProject/external_skia,Hikari-no-Tenshi/android_external_skia,TeamEOS/external_skia,aosp-mirror/platform_external_skia,Tesla-Redux/android_external_skia,geekboxzone/lollipop_external_skia,pcwalton/skia,xzzz9097/android_external_skia,MonkeyZZZZ/platform_external_skia,mydongistiny/android_external_skia,sombree/android_external_skia,ench0/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,HalCanary/skia-hc,sombree/android_external_skia,tmpvar/skia.cc,android-ia/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,wildermason/external_skia,VentureROM-L/android_external_skia,jtg-gg/skia,MyAOSP/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,MinimalOS-AOSP/platform_external_skia,MonkeyZZZZ/platform_external_skia,MinimalOS-AOSP/platform_external_skia,jtg-gg/skia,vvuk/skia,todotodoo/skia,boulzordev/android_external_skia,amyvmiwei/skia,pcwalton/skia,YUPlayGodDev/platform_external_skia,VentureROM-L/android_external_skia,boulzordev/android_external_skia,ench0/external_skia,chenlian2015/skia_from_google,codeaurora-unoffical/platform-external-skia,TeslaProject/external_skia,AOSPB/external_skia,Infinitive-OS/platform_external_skia,temasek/android_external_skia,zhaochengw/platform_external_skia,Fusion-Rom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,shahrzadmn/skia,fire855/android_external_skia,Igalia/skia,sombree/android_external_skia,aospo/platform_external_skia,boulzordev/android_external_skia,AOSPU/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,pacerom/external_skia,TeamTwisted/external_skia,mydongistiny/android_external_skia,Euphoria-OS-Legacy/android_external_skia,OptiPop/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,TeamTwisted/external_skia,geekboxzone/mmallow_external_skia,TeamEOS/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,scroggo/skia,MinimalOS/external_skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,amyvmiwei/skia,Infusion-OS/android_external_skia,RadonX-ROM/external_skia,TeamTwisted/external_skia,boulzordev/android_external_skia,mmatyas/skia,Khaon/android_external_skia,aospo/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,ominux/skia,zhaochengw/platform_external_skia,AsteroidOS/android_external_skia,UBERMALLOW/external_skia,VentureROM-L/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,MIPS/external-chromium_org-third_party-skia,vanish87/skia,OptiPop/external_chromium_org_third_party_skia,Jichao/skia,TeamTwisted/external_skia,nvoron23/skia,RadonX-ROM/external_skia,TeamBliss-LP/android_external_skia,zhaochengw/platform_external_skia,boulzordev/android_external_skia,ctiao/platform-external-skia,DiamondLovesYou/skia-sys,Hybrid-Rom/external_skia,Omegaphora/external_chromium_org_third_party_skia,temasek/android_external_skia,Android-AOSP/external_skia,Purity-Lollipop/platform_external_skia,mmatyas/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,wildermason/external_skia,vvuk/skia,MinimalOS/android_external_skia,shahrzadmn/skia,shahrzadmn/skia,TeslaOS/android_external_skia,MinimalOS/external_skia,MinimalOS/external_skia,android-ia/platform_external_skia,Omegaphora/external_chromium_org_third_party_skia,vvuk/skia,TeamExodus/external_skia,Khaon/android_external_skia,Plain-Andy/android_platform_external_skia,ench0/external_skia,MinimalOS/external_skia,Euphoria-OS-Legacy/android_external_skia,BrokenROM/external_skia,MonkeyZZZZ/platform_external_skia,MarshedOut/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,xin3liang/platform_external_chromium_org_third_party_skia,mozilla-b2g/external_skia,vanish87/skia,VRToxin-AOSP/android_external_skia,Khaon/android_external_skia,samuelig/skia,FusionSP/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,GladeRom/android_external_skia,noselhq/skia,AOSPU/external_chromium_org_third_party_skia,AOSPA-L/android_external_skia,vanish87/skia,rubenvb/skia,pcwalton/skia,AOSPA-L/android_external_skia,w3nd1go/android_external_skia,larsbergstrom/skia,InfinitiveOS/external_skia,DARKPOP/external_chromium_org_third_party_skia,vanish87/skia,VentureROM-L/android_external_skia,VRToxin-AOSP/android_external_skia,Hybrid-Rom/external_skia,scroggo/skia,spezi77/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,Omegaphora/external_skia,MyAOSP/external_chromium_org_third_party_skia,byterom/android_external_skia,vvuk/skia,samuelig/skia,sudosurootdev/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,akiss77/skia,sigysmund/platform_external_skia,Pure-Aosp/android_external_skia,spezi77/android_external_skia,Android-AOSP/external_skia,ctiao/platform-external-skia,google/skia,samuelig/skia,GladeRom/android_external_skia,Jichao/skia,mydongistiny/android_external_skia,Purity-Lollipop/platform_external_skia,MinimalOS/android_external_skia,VentureROM-L/android_external_skia,OptiPop/external_skia,Infinitive-OS/platform_external_skia,UBERMALLOW/external_skia,nfxosp/platform_external_skia,AOSPB/external_skia,TeamExodus/external_skia,FusionSP/android_external_skia,byterom/android_external_skia,RadonX-ROM/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,zhaochengw/platform_external_skia,ench0/external_chromium_org_third_party_skia,OptiPop/external_skia,BrokenROM/external_skia,Igalia/skia,android-ia/platform_external_chromium_org_third_party_skia,TeamEOS/external_skia,sudosurootdev/external_skia,todotodoo/skia,larsbergstrom/skia,AOSP-YU/platform_external_skia,Tesla-Redux/android_external_skia,geekboxzone/mmallow_external_skia,noselhq/skia,mozilla-b2g/external_skia,RadonX-ROM/external_skia,xzzz9097/android_external_skia,ench0/external_skia,AOSPU/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,OptiPop/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,OneRom/external_skia,mydongistiny/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,SlimSaber/android_external_skia,scroggo/skia,Android-AOSP/external_skia,Samsung/skia,FusionSP/external_chromium_org_third_party_skia,TeamExodus/external_skia,NamelessRom/android_external_skia,TeamExodus/external_skia,pcwalton/skia,Hybrid-Rom/external_skia,akiss77/skia,MarshedOut/android_external_skia,VentureROM-L/android_external_skia,TeslaOS/android_external_skia,w3nd1go/android_external_skia,HealthyHoney/temasek_SKIA,google/skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,OneRom/external_skia,Khaon/android_external_skia,Igalia/skia,xin3liang/platform_external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,UBERMALLOW/external_skia,timduru/platform-external-skia,Infusion-OS/android_external_skia,TeamBliss-LP/android_external_skia,jtg-gg/skia,android-ia/platform_external_skia,nfxosp/platform_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,OneRom/external_skia,Hikari-no-Tenshi/android_external_skia,Samsung/skia,DARKPOP/external_chromium_org_third_party_skia,OptiPop/external_skia,akiss77/skia,AOSP-YU/platform_external_skia,pacerom/external_skia,w3nd1go/android_external_skia,AsteroidOS/android_external_skia,mydongistiny/android_external_skia,w3nd1go/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,Plain-Andy/android_platform_external_skia,w3nd1go/android_external_skia,android-ia/platform_external_skia,Samsung/skia,MonkeyZZZZ/platform_external_skia,OptiPop/external_skia,amyvmiwei/skia,tmpvar/skia.cc,AsteroidOS/android_external_skia,FusionSP/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,TeamBliss-LP/android_external_skia,google/skia,TeslaOS/android_external_skia,tmpvar/skia.cc,geekboxzone/lollipop_external_skia,VentureROM-L/android_external_skia,TeamExodus/external_skia,SlimSaber/android_external_skia,invisiblek/android_external_skia,sombree/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,ctiao/platform-external-skia,Omegaphora/external_chromium_org_third_party_skia,AOSPB/external_skia,AOSPB/external_skia,MyAOSP/external_chromium_org_third_party_skia,AsteroidOS/android_external_skia,tmpvar/skia.cc,ench0/external_skia,Samsung/skia,Fusion-Rom/android_external_skia,Tesla-Redux/android_external_skia,amyvmiwei/skia,xzzz9097/android_external_skia,vvuk/skia,DARKPOP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,RadonX-ROM/external_skia,aosp-mirror/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,AOSPU/external_chromium_org_third_party_skia,Fusion-Rom/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,boulzordev/android_external_skia,Khaon/android_external_skia,temasek/android_external_skia,mmatyas/skia,MyAOSP/external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,Asteroid-Project/android_external_skia,spezi77/android_external_skia,InfinitiveOS/external_skia,aosp-mirror/platform_external_skia,boulzordev/android_external_skia,ominux/skia,Jichao/skia,xin3liang/platform_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,mozilla-b2g/external_skia,pcwalton/skia,vvuk/skia,ominux/skia,Android-AOSP/external_skia,larsbergstrom/skia,AOSP-YU/platform_external_skia,AOSPB/external_skia,Purity-Lollipop/platform_external_skia,MonkeyZZZZ/platform_external_skia,aospo/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,pcwalton/skia,wildermason/external_skia,UBERMALLOW/external_skia,RadonX-ROM/external_skia,AsteroidOS/android_external_skia,HealthyHoney/temasek_SKIA,chenlian2015/skia_from_google,Asteroid-Project/android_external_skia,byterom/android_external_skia,suyouxin/android_external_skia,GladeRom/android_external_skia,timduru/platform-external-skia,Hybrid-Rom/external_skia,TeslaOS/android_external_skia,mmatyas/skia,MarshedOut/android_external_skia,MarshedOut/android_external_skia,F-AOSP/platform_external_skia,Hikari-no-Tenshi/android_external_skia,NamelessRom/android_external_skia,byterom/android_external_skia,wildermason/external_skia,rubenvb/skia,AOSP-YU/platform_external_skia,sigysmund/platform_external_skia,xzzz9097/android_external_skia,suyouxin/android_external_skia,invisiblek/android_external_skia,qrealka/skia-hc,GladeRom/android_external_skia,sigysmund/platform_external_skia,HalCanary/skia-hc,Fusion-Rom/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,DesolationStaging/android_external_skia,Infusion-OS/android_external_skia,Plain-Andy/android_platform_external_skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_skia,aosp-mirror/platform_external_skia,fire855/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,google/skia,AOSPA-L/android_external_skia,SlimSaber/android_external_skia,NamelessRom/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,akiss77/skia,wildermason/external_skia,F-AOSP/platform_external_skia,sombree/android_external_skia,VentureROM-L/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,larsbergstrom/skia,HalCanary/skia-hc,PAC-ROM/android_external_skia,TeamExodus/external_skia,scroggo/skia,rubenvb/skia,ominux/skia,aospo/platform_external_skia,codeaurora-unoffical/platform-external-skia,TeslaOS/android_external_skia,HealthyHoney/temasek_SKIA,MinimalOS/external_skia,Omegaphora/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,todotodoo/skia,rubenvb/skia,wildermason/external_skia,mmatyas/skia,PAC-ROM/android_external_skia,HalCanary/skia-hc,DARKPOP/external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,OneRom/external_skia,Asteroid-Project/android_external_skia,MIPS/external-chromium_org-third_party-skia,Jichao/skia,pacerom/external_skia,MinimalOS-AOSP/platform_external_skia,noselhq/skia,TeamExodus/external_skia,MinimalOS/android_external_skia,ench0/external_skia,Infinitive-OS/platform_external_skia,todotodoo/skia,DesolationStaging/android_external_skia,Omegaphora/external_skia,invisiblek/android_external_skia,BrokenROM/external_skia,nox/skia,xzzz9097/android_external_skia,akiss77/skia,noselhq/skia,mydongistiny/external_chromium_org_third_party_skia,tmpvar/skia.cc,F-AOSP/platform_external_skia,BrokenROM/external_skia,AOSPU/external_chromium_org_third_party_skia,timduru/platform-external-skia,mozilla-b2g/external_skia,larsbergstrom/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,houst0nn/external_skia,TeamBliss-LP/android_external_skia,Infusion-OS/android_external_skia,DiamondLovesYou/skia-sys,wildermason/external_skia,MarshedOut/android_external_skia,google/skia,nox/skia,AndroidOpenDevelopment/android_external_skia,nvoron23/skia,MinimalOS/android_external_skia,vvuk/skia,MinimalOS/android_external_chromium_org_third_party_skia,mmatyas/skia,Samsung/skia,chenlian2015/skia_from_google,Plain-Andy/android_platform_external_skia,mydongistiny/android_external_skia,ench0/external_chromium_org_third_party_skia,nvoron23/skia,aosp-mirror/platform_external_skia,Samsung/skia,PAC-ROM/android_external_skia,scroggo/skia,Omegaphora/external_skia,nvoron23/skia,sombree/android_external_skia,AOSP-YU/platform_external_skia,HealthyHoney/temasek_SKIA,Fusion-Rom/android_external_skia,MIPS/external-chromium_org-third_party-skia,ench0/external_chromium_org_third_party_skia,tmpvar/skia.cc,geekboxzone/mmallow_external_skia,zhaochengw/platform_external_skia,codeaurora-unoffical/platform-external-skia,DiamondLovesYou/skia-sys,PAC-ROM/android_external_skia,samuelig/skia,vanish87/skia,tmpvar/skia.cc,samuelig/skia,MinimalOS/android_external_chromium_org_third_party_skia,Euphoria-OS-Legacy/android_external_skia,PAC-ROM/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,ominux/skia,Plain-Andy/android_platform_external_skia,sudosurootdev/external_skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_skia,jtg-gg/skia,InfinitiveOS/external_skia,SlimSaber/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,invisiblek/android_external_skia,todotodoo/skia,qrealka/skia-hc,sudosurootdev/external_skia,android-ia/platform_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,codeaurora-unoffical/platform-external-skia,RadonX-ROM/external_skia,temasek/android_external_skia,geekboxzone/mmallow_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,qrealka/skia-hc,vanish87/skia,InfinitiveOS/external_skia,MinimalOS-AOSP/platform_external_skia,shahrzadmn/skia,mmatyas/skia,UBERMALLOW/external_skia,Fusion-Rom/android_external_skia,BrokenROM/external_skia,AsteroidOS/android_external_skia,MinimalOS/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,google/skia,sigysmund/platform_external_skia,HealthyHoney/temasek_SKIA,CyanogenMod/android_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,MyAOSP/external_chromium_org_third_party_skia,akiss77/skia,nfxosp/platform_external_skia,TeamExodus/external_skia,TeamEOS/external_skia,DARKPOP/external_chromium_org_third_party_skia,akiss77/skia,Khaon/android_external_skia,scroggo/skia,temasek/android_external_skia,fire855/android_external_skia,HealthyHoney/temasek_SKIA,mydongistiny/external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,shahrzadmn/skia,invisiblek/android_external_skia,OneRom/external_skia,F-AOSP/platform_external_skia,mozilla-b2g/external_skia,geekboxzone/mmallow_external_skia,FusionSP/external_chromium_org_third_party_skia,BrokenROM/external_skia,spezi77/android_external_skia,Igalia/skia,qrealka/skia-hc,Fusion-Rom/android_external_skia,houst0nn/external_skia,Pure-Aosp/android_external_skia,MonkeyZZZZ/platform_external_skia,MinimalOS/android_external_skia,scroggo/skia,HealthyHoney/temasek_SKIA,UBERMALLOW/external_skia,Purity-Lollipop/platform_external_skia,AndroidOpenDevelopment/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,InfinitiveOS/external_skia,HealthyHoney/temasek_SKIA,AOSP-YU/platform_external_skia,rubenvb/skia,android-ia/platform_external_chromium_org_third_party_skia,nox/skia,Android-AOSP/external_skia,shahrzadmn/skia,Fusion-Rom/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,Omegaphora/external_skia,YUPlayGodDev/platform_external_skia,nvoron23/skia,geekboxzone/mmallow_external_skia,DesolationStaging/android_external_skia,rubenvb/skia,MinimalOS/external_chromium_org_third_party_skia,mozilla-b2g/external_skia,shahrzadmn/skia,MinimalOS/android_external_chromium_org_third_party_skia,MinimalOS/external_skia,pacerom/external_skia,AOSPU/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,invisiblek/android_external_skia,spezi77/android_external_skia,DesolationStaging/android_external_skia,TeslaProject/external_skia,Asteroid-Project/android_external_skia,akiss77/skia,noselhq/skia
|
b61ed65f563d19845a48554353ce46d79a39d44e
|
kode/kwsdl/wsdl/element.h
|
kode/kwsdl/wsdl/element.h
|
/*
This file is part of KDE.
Copyright (c) 2005 Tobias Koenig <tokoe@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KWSDL_ELEMENT_H
#define KWSDL_ELEMENT_H
#include <QString>
namespace KWSDL {
class Element
{
public:
Element();
Element( const QString &nameSpace );
~Element();
void setNameSpace( const QString &nameSpace );
QString nameSpace() const;
void setDocumentation( const QString &documentation );
QString documentation() const;
private:
QString mNameSpace;
QString mDocumentation;
};
}
#endif // KWSDL_ELEMENT_H
|
/*
This file is part of KDE.
Copyright (c) 2005 Tobias Koenig <tokoe@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KWSDL_ELEMENT_H
#define KWSDL_ELEMENT_H
#include <QString>
#include <kode_export.h>
namespace KWSDL {
class KWSDL_EXPORT Element
{
public:
Element();
Element( const QString &nameSpace );
~Element();
void setNameSpace( const QString &nameSpace );
QString nameSpace() const;
void setDocumentation( const QString &documentation );
QString documentation() const;
private:
QString mNameSpace;
QString mDocumentation;
};
}
#endif // KWSDL_ELEMENT_H
|
Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721
|
Fix knode compilation on NetBSD.
Patch by Mark Davies, thanks.
BUG: 154721
svn path=/trunk/KDE/kdepim/; revision=753595
|
C
|
lgpl-2.1
|
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
|
dfeaa08d905e605519683cb85d25976264941d61
|
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
|
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
|
#include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&B);
pthread_mutex_unlock(&B);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_join(id, NULL);
return 0;
}
|
#include <pthread.h>
#include <assert.h>
int g = 0;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&C);
pthread_mutex_lock(&B);
g = 5;
pthread_mutex_unlock(&B);
pthread_mutex_lock(&B);
g = 0;
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&A);
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
assert(g == 0);
pthread_mutex_unlock(&B);
pthread_mutex_unlock(&A);
pthread_mutex_lock(&B);
pthread_mutex_lock(&C);
assert(g == 0);
pthread_mutex_unlock(&C);
pthread_mutex_unlock(&B);
pthread_join(id, NULL);
return 0;
}
|
Remove now somehow unnecessary empty mutex B section from 13/32
|
Remove now somehow unnecessary empty mutex B section from 13/32
|
C
|
mit
|
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
|
163393732a9a781b6b057c39ee6b1e0c96b9d199
|
lib/Target/PowerPC/PPC32JITInfo.h
|
lib/Target/PowerPC/PPC32JITInfo.h
|
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the PowerPC implementation of the TargetJITInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef POWERPC_DARWIN_JITINFO_H
#define POWERPC_DARWIN_JITINFO_H
#include "PowerPCJITInfo.h"
namespace llvm {
class TargetMachine;
class IntrinsicLowering;
class PPC32JITInfo : public PowerPCJITInfo {
public:
PPC32JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
/// overwriting OLD with a branch to NEW. This is used for self-modifying
/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
};
}
#endif
|
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the PowerPC implementation of the TargetJITInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef POWERPC_DARWIN_JITINFO_H
#define POWERPC_DARWIN_JITINFO_H
#include "PowerPCJITInfo.h"
namespace llvm {
class TargetMachine;
class IntrinsicLowering;
class PPC32JITInfo : public PowerPCJITInfo {
public:
PPC32JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}
virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
virtual void relocate(void *Function, MachineRelocation *MR,
unsigned NumRelocs);
/// replaceMachineCodeForFunction - Make it so that calling the function
/// whose machine code is at OLD turns into a call to NEW, perhaps by
/// overwriting OLD with a branch to NEW. This is used for self-modifying
/// code.
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
};
}
#endif
|
Implement all of the methods
|
Implement all of the methods
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18142 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
bsd-2-clause
|
chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm
|
730fae1f1d85b3fbe5c7cc35d89011228e441147
|
lib/objpipe/include/monsoon/objpipe/doc_.h
|
lib/objpipe/include/monsoon/objpipe/doc_.h
|
// Document groups and namespaces.
///\defgroup objpipe Object Pipes.
/**
* \defgroup objpipe_errors Object pipe error handling.
* \ingroup objpipe
*/
/**
* \defgroup objpipe_detail Object pipe implementation details.
* \ingroup objpipe
*/
namespace monsooon {
/**
* \brief Namespace for object pipes.
*
* Object pipes are queues that move objects from one context to another.
* In addition, they allow filtering and transformations.
* \ingroup objpipe
*/
namespace objpipe {
/**
* \brief Namespace for object pipe implementation details.
* \ingroup objpipe_detail
*/
namespace detail {
}}} /* monsoon::objpipe::detail */
|
// Document groups and namespaces.
///\defgroup objpipe Object Pipes
/**
* \defgroup objpipe_errors Object pipe error handling
* \ingroup objpipe
*/
/**
* \defgroup objpipe_detail Object pipe implementation details
* \ingroup objpipe
*/
namespace monsooon {
/**
* \brief Namespace for object pipes.
*
* Object pipes are queues that move objects from one context to another.
* In addition, they allow filtering and transformations.
* \ingroup objpipe
*/
namespace objpipe {
/**
* \brief Namespace for object pipe implementation details.
* \ingroup objpipe_detail
*/
namespace detail {
}}} /* monsoon::objpipe::detail */
|
Remove trailing dots in group definitions.
|
Remove trailing dots in group definitions.
|
C
|
bsd-2-clause
|
nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus
|
25910be18da219c4a5a6cd292e25eb8b1dd147ed
|
ipxe/local/general.h
|
ipxe/local/general.h
|
#define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define VLAN_CMD /* VLAN commands */
|
#define DIGEST_CMD /* Image crypto digest commands */
#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */
#define IMAGE_COMBOOT /* COMBOOT */
#define IMAGE_TRUST_CMD /* Image trust management commands */
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define VLAN_CMD /* VLAN commands */
|
Add support for image trust commands
|
Add support for image trust commands
|
C
|
apache-2.0
|
antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz,Dedsec1/netboot.xyz
|
8b013deb4e9cd4130ece436909878b7ec7d90a60
|
src/shared/platform/win/nacl_exit.c
|
src/shared/platform/win/nacl_exit.c
|
/*
* Copyright 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include <stdlib.h>
#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
#include "native_client/src/trusted/service_runtime/nacl_signal.h"
void NaClAbort(void) {
NaClExit(-SIGABRT);
}
void NaClExit(int err_code) {
#ifdef COVERAGE
/* Give coverage runs a chance to flush coverage data */
exit(err_code);
#else
/* If the process is scheduled for termination, wait for it.*/
if (TerminateProcess(GetCurrentProcess(), err_code)) {
printf("Terminate passed, but returned.\n");
while(1);
}
printf("Terminate failed with %d.\n", GetLastError());
/* Otherwise use the standard C process exit to bybass destructors. */
ExitProcess(err_code);
#endif
}
|
/*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* be found in the LICENSE file.
*/
#include <stdlib.h>
#include <stdio.h>
#include "native_client/src/include/portability.h"
#include "native_client/src/shared/platform/nacl_exit.h"
#include "native_client/src/trusted/service_runtime/nacl_signal.h"
void NaClAbort(void) {
NaClExit(-SIGABRT);
}
void NaClExit(int err_code) {
#ifdef COVERAGE
/* Give coverage runs a chance to flush coverage data */
exit(err_code);
#else
/* If the process is scheduled for termination, wait for it.*/
if (TerminateProcess(GetCurrentProcess(), err_code)) {
while(1);
}
/* Otherwise use the standard C process exit to bybass destructors. */
ExitProcess(err_code);
#endif
}
|
Remove printfs in exit path
|
Remove printfs in exit path
Due to failures in Win7Atom I added printfs for debugging. This CL removes the printfs which should
not be in the shipping code.
TEST= all
BUG= nacl1561
Review URL: http://codereview.chromium.org/6825057
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@4846 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
|
C
|
bsd-3-clause
|
nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client
|
ac39ed3a80fd71af70de0222a9dd1545f4d59dea
|
implementation/Cuda/lbm_sailfish_hist/sim.h
|
implementation/Cuda/lbm_sailfish_hist/sim.h
|
#ifndef __SIM_H_
#define __SIM_H_ 1
#define GEO_FLUID 0
#define GEO_WALL 1
#define GEO_INFLOW 2
#define LAT_H 180
#define LAT_W 420
#define BLOCK_SIZE 64
struct Dist {
float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW;
};
struct SimState {
int *map, *dmap;
// macroscopic quantities on the video card
float *dvx, *dvy, *drho;
// macroscopic quantities in RAM
float *vx, *vy, *rho;
float *lat[9];
Dist d1, d2;
};
void SimInit(struct SimState *state);
void SimCleanup(struct SimState *state);
void SimUpdate(int iter, struct SimState state);
void SimUpdateMap(struct SimState state);
#endif /* __SIM_H_ */
|
#ifndef __SIM_H_
#define __SIM_H_ 1
#define GEO_FLUID 0
#define GEO_WALL 1
#define GEO_INFLOW 2
#define LAT_H 180
#define LAT_W 420
#define BLOCK_SIZE 64
#ifdef USE_FLOATS
#define double float
#define __dadd_rn __fadd_rn
#define __dmul_rn __fmul_rn
#else
#define float double
#define __fadd_rn __dadd_rn
#define __fmul_rn __dmul_rn
#endif
struct Dist {
float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW;
};
struct SimState {
int *map, *dmap;
// macroscopic quantities on the video card
float *dvx, *dvy, *drho;
// macroscopic quantities in RAM
float *vx, *vy, *rho;
float *lat[9];
Dist d1, d2;
};
void SimInit(struct SimState *state);
void SimCleanup(struct SimState *state);
void SimUpdate(int iter, struct SimState state);
void SimUpdateMap(struct SimState state);
#endif /* __SIM_H_ */
|
Use doubles instead of floats ny default
|
Use doubles instead of floats ny default
|
C
|
mit
|
Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis
|
729361e8dc2b79aee6c185a112b30fc0c99529ed
|
You-DataStore/internal/operation.h
|
You-DataStore/internal/operation.h
|
#pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
namespace You {
namespace DataStore {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
virtual ~IOperation();
/// Executes the operation
virtual bool run() = 0;
protected:
TaskId taskId;
SerializedTask task;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_OPERATION_H_
|
#pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATION_H_
#include <unordered_map>
#include "../task_typedefs.h"
namespace You {
namespace DataStore {
namespace Internal {
/// A pure virtual class of operations to be put into transaction stack
class IOperation {
public:
virtual ~IOperation();
/// Executes the operation
virtual bool run() = 0;
protected:
TaskId taskId;
SerializedTask task;
};
} // namespace Internal
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_INTERNAL_OPERATION_H_
|
Move IOperation to Internal namespace
|
Move IOperation to Internal namespace
|
C
|
mit
|
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
|
f1e2ac78eaa187d1ceabbb70883b2b9458580877
|
rest-extras/test-runner.c
|
rest-extras/test-runner.c
|
/*
* librest - RESTful web services access
* Copyright (C) 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <config.h>
#include <glib-object.h>
#define test_add(unit_name, func) G_STMT_START { \
extern void func (void); \
g_test_add_func (unit_name, func); } G_STMT_END
int
main (int argc, char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
test_add ("/flickr/error", test_flickr_error);
return g_test_run ();
}
|
/*
* librest - RESTful web services access
* Copyright (C) 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <config.h>
#include <glib-object.h>
#define test_add(unit_name, func) G_STMT_START { \
extern void func (void); \
g_test_add_func (unit_name, func); } G_STMT_END
int
main (int argc, char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
test_add ("/flickr/error", test_flickr_error);
test_add ("/lastfm/error", test_flickr_error);
return g_test_run ();
}
|
Add lastfm error handling to the test suite
|
Add lastfm error handling to the test suite
|
C
|
lgpl-2.1
|
GNOME/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,GNOME/librest,GNOME/librest
|
d7c9c58c7ef0b29fe6eb8c500e594aa99fbfdfef
|
security/nss/macbuild/NSSCommon.h
|
security/nss/macbuild/NSSCommon.h
|
/* Defines common to all versions of NSS */
#define NSPR20 1
|
/* Defines common to all versions of NSS */
#define NSPR20 1
#define MP_API_COMPATIBLE 1
|
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly.
|
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build
correctly.
|
C
|
mpl-2.0
|
nmav/nss,nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,nmav/nss
|
7c5ab46059bd8fa8bc1649a8dd6073161e703f9e
|
src/plat/win32/win32commandline.h
|
src/plat/win32/win32commandline.h
|
#ifndef __win32commandline_h__
#define __win32commandline_h__
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <assert.h>
#include "..\..\commandline.h"
class CWin32CommandLine : public CCommandLine
{
public:
CWin32CommandLine();
~CWin32CommandLine();
public:
virtual LispInt GetKey();
void ReadLineSub(const LispChar * prompt);
virtual void NewLine();
virtual void ShowLine(const LispChar * prompt,LispInt promptlen,LispInt cursor);
virtual void Pause();
// new functionality
void color_print(const LispChar * str, WORD text_attrib);
void color_read(LispChar * str, WORD text_attrib);
protected:
void ShowLine();
const LispChar * iLastPrompt;
private:
HANDLE out_console;
HANDLE in_console;
bool _is_NT_or_later;
};
#endif
|
#ifndef __win32commandline_h__
#define __win32commandline_h__
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <assert.h>
#include "../../commandline.h"
class CWin32CommandLine : public CCommandLine
{
public:
CWin32CommandLine();
~CWin32CommandLine();
public:
virtual LispInt GetKey();
void ReadLineSub(const LispChar * prompt);
virtual void NewLine();
virtual void ShowLine(const LispChar * prompt,LispInt promptlen,LispInt cursor);
virtual void Pause();
// new functionality
void color_print(const LispChar * str, WORD text_attrib);
void color_read(LispChar * str, WORD text_attrib);
protected:
void ShowLine();
const LispChar * iLastPrompt;
private:
HANDLE out_console;
HANDLE in_console;
bool _is_NT_or_later;
};
#endif
|
Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux
|
Replace backslashes in paths with slashes; should be compatible with both
win32 compilers and mingw32 on linux
|
C
|
lgpl-2.1
|
MateuszSnamina/yacas,MateuszSnamina/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,martanoga/yacas,martanoga/yacas,martanoga/yacas,qwert2003/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,MateuszSnamina/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,martanoga/yacas,qwert2003/yacas,martanoga/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,qwert2003/yacas,MateuszSnamina/yacas,tomaszkrysiuk/yacas,martanoga/yacas
|
0968bf9a8ad06572c068e0024fcc29bbf744ef04
|
demo/src/input.h
|
demo/src/input.h
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <cstdint>
#include <strstream>
#include <stdint.h>
#include <string>
class Goat {
public:
Goat();
~Goat();
void add_a_horn();
std::string describe() const;
private:
uint32_t horns;
};
inline uint32_t DoMath(uint32_t a) {
return a * 3;
}
Goat::Goat() : horns(0) {}
Goat::~Goat() {}
void Goat::add_a_horn() { horns++; }
std::string Goat::describe() const {
std::ostrstream oss;
std::string plural = horns == 1 ? "" : "s";
oss << "This goat has " << horns << " horn" << plural << ".";
return oss.str();
}
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <cstdint>
#include <sstream>
#include <stdint.h>
#include <string>
class Goat {
public:
Goat();
~Goat();
void add_a_horn();
std::string describe() const;
private:
uint32_t horns;
};
inline uint32_t DoMath(uint32_t a) {
return a * 3;
}
Goat::Goat() : horns(0) {}
Goat::~Goat() {}
void Goat::add_a_horn() { horns++; }
std::string Goat::describe() const {
std::ostringstream oss;
std::string plural = horns == 1 ? "" : "s";
oss << "This goat has " << horns << " horn" << plural << ".";
return oss.str();
}
|
Move away from deprecated C++ APIs in the demo
|
Move away from deprecated C++ APIs in the demo
A bit less cruft printed during tests which use it.
|
C
|
apache-2.0
|
google/autocxx,google/autocxx,google/autocxx,google/autocxx
|
9fd8c99a43beea140d4656bc5871ed2b0ea3328c
|
src/plugins/ccode/ccode.h
|
src/plugins/ccode/ccode.h
|
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_CCODE_H
#define ELEKTRA_PLUGIN_CCODE_H
#include <kdbplugin.h>
typedef struct
{
char encode[256];
char decode[256];
char escape;
char * buf;
size_t bufalloc;
} CCodeData;
ssize_t keySetRaw (Key * key, const void * newBinary, size_t dataSize);
void elektraCcodeEncode (Key * cur, CCodeData * h);
void elektraCcodeDecode (Key * cur, CCodeData * h);
int elektraCcodeOpen (Plugin * handle, Key * k);
int elektraCcodeClose (Plugin * handle, Key * k);
int elektraCcodeGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraCcodeSet (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT (ccode);
#endif
|
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_CCODE_H
#define ELEKTRA_PLUGIN_CCODE_H
#include <kdbplugin.h>
typedef struct
{
unsigned char encode[256];
unsigned char decode[256];
char escape;
char * buf;
size_t bufalloc;
} CCodeData;
ssize_t keySetRaw (Key * key, const void * newBinary, size_t dataSize);
void elektraCcodeEncode (Key * cur, CCodeData * h);
void elektraCcodeDecode (Key * cur, CCodeData * h);
int elektraCcodeOpen (Plugin * handle, Key * k);
int elektraCcodeClose (Plugin * handle, Key * k);
int elektraCcodeGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraCcodeSet (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT (ccode);
#endif
|
Use `unsigned char` for mapping
|
CCode: Use `unsigned char` for mapping
|
C
|
bsd-3-clause
|
e1528532/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,e1528532/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra
|
cda59be9314833305fad936ca78f625d9e4e7de1
|
include/llvm/ExecutionEngine/Orc/JITSymbol.h
|
include/llvm/ExecutionEngine/Orc/JITSymbol.h
|
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Abstraction for target process addresses.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#include <functional>
namespace llvm {
/// @brief Represents an address in the target process's address space.
typedef uint64_t TargetAddress;
/// @brief Represents a symbol in the JIT.
class JITSymbol {
public:
typedef std::function<TargetAddress()> GetAddressFtor;
JITSymbol(std::nullptr_t) : CachedAddr(0) {}
JITSymbol(GetAddressFtor GetAddress)
: CachedAddr(0), GetAddress(std::move(GetAddress)) {}
/// @brief Returns true if the symbol exists, false otherwise.
explicit operator bool() const { return CachedAddr || GetAddress; }
/// @brief Get the address of the symbol in the target address space. Returns
/// '0' if the symbol does not exist.
TargetAddress getAddress() {
if (GetAddress) {
CachedAddr = GetAddress();
assert(CachedAddr && "Symbol could not be materialized.");
GetAddress = nullptr;
}
return CachedAddr;
}
private:
TargetAddress CachedAddr;
GetAddressFtor GetAddress;
};
}
#endif // LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
|
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Abstraction for target process addresses.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
#include "llvm/Support/Compiler.h"
#include <functional>
namespace llvm {
/// @brief Represents an address in the target process's address space.
typedef uint64_t TargetAddress;
/// @brief Represents a symbol in the JIT.
class JITSymbol {
public:
typedef std::function<TargetAddress()> GetAddressFtor;
JITSymbol(std::nullptr_t) : CachedAddr(0) {}
JITSymbol(GetAddressFtor GetAddress)
: CachedAddr(0), GetAddress(std::move(GetAddress)) {}
/// @brief Returns true if the symbol exists, false otherwise.
LLVM_EXPLICIT operator bool() const { return CachedAddr || GetAddress; }
/// @brief Get the address of the symbol in the target address space. Returns
/// '0' if the symbol does not exist.
TargetAddress getAddress() {
if (GetAddress) {
CachedAddr = GetAddress();
assert(CachedAddr && "Symbol could not be materialized.");
GetAddress = nullptr;
}
return CachedAddr;
}
private:
TargetAddress CachedAddr;
GetAddressFtor GetAddress;
};
}
#endif // LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
|
Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.
|
[Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@228564 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm
|
f6f3aa060523c5f9b223e9d9665c266381cc2b6e
|
src/ios/GalleryAPI.h
|
src/ios/GalleryAPI.h
|
#import <AssetsLibrary/AssetsLibrary.h>
#import <AssetsLibrary/ALAssetsGroup.h>
#import <Cordova/CDVPlugin.h>
@interface GalleryAPI : CDVPlugin
- (void) getAlbums:(CDVInvokedUrlCommand*)command;
- (void) getMedia:(CDVInvokedUrlCommand*)command;
@end
|
#import <Photos/Photos.h>
#import <Cordova/CDVPlugin.h>
@interface GalleryAPI : CDVPlugin
- (void) getAlbums:(CDVInvokedUrlCommand*)command;
- (void) getMedia:(CDVInvokedUrlCommand*)command;
@end
|
Move to new Photo API
|
[ios] Move to new Photo API
|
C
|
mit
|
subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api,subitolabs/cordova-gallery-api,subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api
|
c9200d420f8320a8d57437ae346b161dd092408a
|
kernel/x86/gdt.h
|
kernel/x86/gdt.h
|
#ifndef KERNEL_X86_GDT_H
#define KERNEL_X86_GDT_H
#define NULL_SEGMENT 0
#define KCODE_SEGMENT 1
#define KDATA_SEGMENT 2
#define SEGOFF(seg) (8 * seg)
#ifndef ASM_FILE
typedef struct GDTDesc GDTDesc;
extern GDTDesc gdt_desc;
void gdt_load(GDTDesc *);
#endif
#endif
|
#ifndef KERNEL_X86_GDT_H
#define KERNEL_X86_GDT_H
/**
* Support for managing the Global Descriptor Table (GDT)
*
* GDT initialization in zero is trivial at runtime: the entire structure is
* baked into the binary, ready to go, and the bringup code need only load the
* GDT pointer. A simple call to:
*
* gdt_load(&gdt_desc);
*
* Will do the trick.
*/
/* symbolic constants for specific segments, as used by our kernel */
#define NULL_SEGMENT 0
#define KCODE_SEGMENT 1
#define KDATA_SEGMENT 2
/* The offset from the beginning of the GDT of a particular segment
* descriptor. */
#define SEGOFF(seg) (8 * seg)
#ifndef ASM_FILE
/* The GDT pointer structure. defined in gdt.c */
typedef struct GDTDesc GDTDesc;
extern GDTDesc gdt_desc;
/* Load the GDT pointer supplied as an argument, then start using it. defined in
* gdt_load.S */
void gdt_load(GDTDesc *);
#endif
#endif
|
Add some comments to the GDT header.
|
Add some comments to the GDT header.
|
C
|
isc
|
zenhack/zero,zenhack/zero,zenhack/zero
|
05bf8903188764ffe423b03b72b8c2cb44eeb6b2
|
testmud/mud/home/Game/sys/subd.c
|
testmud/mud/home/Game/sys/subd.c
|
/*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
|
/*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
float *measure_delta(object a, object b)
{
object cc;
float dx, dy, dz;
cc = SUBD->query_common_container(a, b);
if (!cc) {
error("Objects not on same plane of existence");
}
while (b != cc) {
dx += b->query_x_position();
dy += b->query_y_position();
dz += b->query_z_position();
b = b->query_environment();
}
while (a != cc) {
dx -= a->query_x_position();
dy -= a->query_y_position();
dz -= a->query_z_position();
a = a->query_environment();
}
return ({ dx, dy, dz });
}
|
Add difference delta measurement routine
|
Add difference delta measurement routine
|
C
|
agpl-3.0
|
shentino/kotaka,shentino/kotaka,shentino/kotaka
|
33fbf34388889fb5e771f51f8c34ef39079f2aa3
|
micropython-1.5/stmhal/ledtask.c
|
micropython-1.5/stmhal/ledtask.c
|
#include "stdio.h"
#include "FreeRTOS.h"
#include "task.h"
#include STM32_HAL_H
void LedTask(void *pvParameters)
{
/* GPIO structure */
GPIO_InitTypeDef GPIO_InitStructure;
/* Configure I/O speed, mode, output type and pull */
GPIO_InitStructure.Pin = GPIO_PIN_5;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Pull = GPIO_PULLUP;
GPIO_InitStructure.Speed = GPIO_SPEED_FAST;
HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);
const TickType_t xDelay = 1000 / portTICK_PERIOD_MS;
/* Toggle LED in an infinite loop */
while (1) {
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
/* Insert a 1000ms delay */
vTaskDelay(xDelay);
}
}
|
#include "stdio.h"
#include "FreeRTOS.h"
#include "task.h"
#include STM32_HAL_H
void LedTask(void *pvParameters)
{
/* GPIO structure */
GPIO_InitTypeDef GPIO_InitStructure;
/* Configure I/O speed, mode, output type and pull */
GPIO_InitStructure.Pin = GPIO_PIN_5;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStructure.Pull = GPIO_PULLUP;
GPIO_InitStructure.Speed = GPIO_SPEED_FAST;
HAL_GPIO_Init(GPIOA, &GPIO_InitStructure);
/* Toggle LED in an infinite loop */
while (1) {
HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
/* Insert a 1000ms delay */
HAL_Delay(1000);
}
}
|
Use HAL_Delay in LED Task
|
Use HAL_Delay in LED Task
|
C
|
mit
|
jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos
|
cebc280640017d412058c2bf40d31a5af3d82d32
|
Sources/Foundation/OCAFoundation.h
|
Sources/Foundation/OCAFoundation.h
|
//
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
/// Producers
#import "OCAProducer.h"
#import "OCACommand.h"
#import "OCAHub.h"
#import "OCAProperty.h"
#import "OCAInvoker.h"
#import "OCANotificator.h"
#import "OCATimer.h"
/// Mediators
#import "OCAMediator.h"
#import "OCABridge.h"
#import "OCAContext.h"
#import "OCAFilter.h"
/// Consumers
#import "OCAConsumer.h"
#import "OCASubscriber.h"
#import "OCAMulticast.h"
/// Transformers
#import "OCATransformer.h"
/// Predicates
#import "OCAPredicate.h"
/// Utilities
#import "OCAKeyPathAccessor.h"
#import "OCAStructureAccessor.h"
#import "OCAQueue.h"
#import "OCASemaphore.h"
#import "NSValue+Boxing.h"
#import "NSArray+Ordinals.h"
#import "OCADecomposer.h"
#import "OCAInvocationCatcher.h"
|
//
// ObjectiveChain.h
// Objective-Chain
//
// Created by Martin Kiss on 30.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
/// Producers
#import "OCAProducer.h"
#import "OCACommand.h"
#import "OCAHub.h"
#import "OCAProperty.h"
#import "OCATimer.h"
#import "OCANotificator.h"
/// Mediators
#import "OCAMediator.h"
#import "OCABridge.h"
#import "OCAContext.h"
#import "OCAFilter.h"
#import "OCAThrottle.h"
/// Consumers
#import "OCAConsumer.h"
#import "OCASubscriber.h"
#import "OCAMulticast.h"
#import "OCAInvoker.h"
/// Transformers
#import "OCATransformer.h"
/// Predicates
#import "OCAPredicate.h"
/// Utilities
#import "OCAKeyPathAccessor.h"
#import "OCAStructureAccessor.h"
#import "OCAQueue.h"
#import "OCASemaphore.h"
#import "NSValue+Boxing.h"
#import "NSArray+Ordinals.h"
#import "OCADecomposer.h"
#import "OCAInvocationCatcher.h"
#import "OCAKeyValueChange.h"
#import "OCAVariadic.h"
#import "OCAPlaceholderObject.h"
|
Add missing classes to Foundation import
|
Add missing classes to Foundation import
|
C
|
mit
|
Tricertops/Objective-Chain,iMartinKiss/Objective-Chain
|
cde5e48b099ffafee3d30404f72871142959a494
|
test/test_trim.c
|
test/test_trim.c
|
#include <string_manip.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TEST_STRS 4
char *test_strs_initial[TEST_STRS] = {" ", " a", "a ", " a "};
char *test_strs_correct[TEST_STRS] = {"", "a", "a", "a"};
int main() {
int i;
for(i = 0; i < TEST_STRS; i++) {
char *dup, *correct, *initial;
int result;
initial = test_strs_initial[i];
correct = test_strs_correct[i];
dup = strdup(test_strs_initial[i]);
trim(dup);
result = strcmp(dup, correct);
if(result != 0) {
fprintf(stderr, "Trim failed! "
"Got [%s] Expected [%s] Initial [%s].\n", dup, correct, initial);
free(dup);
return result;
}
free(dup);
}
return 0;
}
|
#include <string_manip.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TEST_STRS 6
char *test_strs_initial[TEST_STRS] = {"", " ", " a", "a ", " a ", " a a "};
char *test_strs_correct[TEST_STRS] = {"", "", "a", "a", "a", "a a"};
int main() {
int i, result = 0;
for(i = 0; i < TEST_STRS && result == 0; i++) {
char *dup, *correct, *initial;
initial = test_strs_initial[i];
correct = test_strs_correct[i];
// Duplicate for modification
dup = strdup(test_strs_initial[i]);
trim(dup);
// Compare results
result = strcmp(dup, correct);
if(result != 0) {
fprintf(stderr, "Trim failed! "
"Got [%s] Expected [%s] Initial [%s].\n", dup, correct, initial);
}
free(dup);
}
return result;
}
|
Add more test cases to trim
|
Add more test cases to trim
|
C
|
mit
|
Coderlane/morse_translator
|
e682b4021995c43d257d0dda0a542723dfa35e68
|
src/common/timer.h
|
src/common/timer.h
|
#pragma once
#include <boost/timer/timer.hpp>
namespace marian {
namespace timer {
using Timer = boost::timer::cpu_timer;
using AutoTimer = boost::timer::auto_cpu_timer;
}
}
|
#pragma once
#include <boost/timer/timer.hpp>
namespace marian {
namespace timer {
using Timer = boost::timer::cpu_timer;
using AutoTimer = boost::timer::auto_cpu_timer;
}
}
|
Add new line at end
|
Add new line at end
|
C
|
mit
|
marian-nmt/marian-train,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,emjotde/Marian,emjotde/amunn,marian-nmt/marian-train,emjotde/amunn,amunmt/marian,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/Marian,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,marian-nmt/marian-train
|
2dc37817bc768b03dacbbe72503216f5e0c7f2a0
|
cpu/lm4f120/include/hwtimer_cpu.h
|
cpu/lm4f120/include/hwtimer_cpu.h
|
/*
* Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_lm4f120
* @{
*
* @file
* @brief CPU specific hwtimer configuration options
*
* @author Rakendra Thapa <rakendrathapa@gmail.com>
*/
#ifndef HWTIMER_CPU_H
#define HWTIMER_CPU_H
#ifdef __cplusplus
extern "C"{
#endif
/**
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS 1 /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS 0xffffffff /**< 32-bit timer */
#define HWTIMER_MSEC (HWTIMER_SPEED/1000)
#define HWTIMER_SEC (HWTIMER_SPEED/1000000)
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* HWTIMER_CPU_H */
/** @} */
|
/*
* Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa>
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_lm4f120
* @{
*
* @file
* @brief CPU specific hwtimer configuration options
*
* @author Rakendra Thapa <rakendrathapa@gmail.com>
*/
#ifndef HWTIMER_CPU_H
#define HWTIMER_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS 1 /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED 1000000 /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS 0xffffffff /**< 32-bit timer */
#define HWTIMER_MSEC (HWTIMER_SPEED/1000)
#define HWTIMER_SEC (HWTIMER_SPEED/1000000)
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* HWTIMER_CPU_H */
/** @} */
|
Modify to have C++ compatible header
|
Modify to have C++ compatible header
|
C
|
lgpl-2.1
|
stevenj/RIOT,rfuentess/RIOT,lebrush/RIOT,malosek/RIOT,adrianghc/RIOT,immesys/RiSyn,bartfaizoltan/RIOT,binarylemon/RIOT,jfischer-phytec-iot/RIOT,binarylemon/RIOT,avmelnikoff/RIOT,attdona/RIOT,abp719/RIOT,stevenj/RIOT,MonsterCode8000/RIOT,centurysys/RIOT,arvindpdmn/RIOT,RubikonAlpha/RIOT,DipSwitch/RIOT,adrianghc/RIOT,avmelnikoff/RIOT,mtausig/RIOT,Darredevil/RIOT,kerneltask/RIOT,RBartz/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,jremmert-phytec-iot/RIOT,Yonezawa-T2/RIOT,rfuentess/RIOT,OTAkeys/RIOT,luciotorre/RIOT,ks156/RIOT,kbumsik/RIOT,asanka-code/RIOT,alex1818/RIOT,kaspar030/RIOT,BytesGalore/RIOT,gbarnett/RIOT,kaleb-himes/RIOT,immesys/RiSyn,latsku/RIOT,rousselk/RIOT,BytesGalore/RIOT,ntrtrung/RIOT,MonsterCode8000/RIOT,OlegHahm/RIOT,jremmert-phytec-iot/RIOT,zhuoshuguo/RIOT,MohmadAyman/RIOT,MohmadAyman/RIOT,josephnoir/RIOT,RIOT-OS/RIOT,backenklee/RIOT,roberthartung/RIOT,Hyungsin/RIOT-OS,rakendrathapa/RIOT,robixnai/RIOT,abp719/RIOT,l3nko/RIOT,openkosmosorg/RIOT,thiagohd/RIOT,BytesGalore/RIOT,rousselk/RIOT,smlng/RIOT,adjih/RIOT,abp719/RIOT,attdona/RIOT,msolters/RIOT,yogo1212/RIOT,RBartz/RIOT,ant9000/RIOT,immesys/RiSyn,authmillenon/RIOT,DipSwitch/RIOT,neiljay/RIOT,mziegert/RIOT,miri64/RIOT,mfrey/RIOT,MarkXYang/RIOT,EmuxEvans/RIOT,Hyungsin/RIOT-OS,mziegert/RIOT,FrancescoErmini/RIOT,brettswann/RIOT,patkan/RIOT,aeneby/RIOT,haoyangyu/RIOT,rfuentess/RIOT,lebrush/RIOT,stevenj/RIOT,LudwigKnuepfer/RIOT,centurysys/RIOT,authmillenon/RIOT,RubikonAlpha/RIOT,neumodisch/RIOT,A-Paul/RIOT,OTAkeys/RIOT,gebart/RIOT,openkosmosorg/RIOT,malosek/RIOT,neiljay/RIOT,beurdouche/RIOT,d00616/RIOT,yogo1212/RIOT,LudwigOrtmann/RIOT,adrianghc/RIOT,openkosmosorg/RIOT,MonsterCode8000/RIOT,kaspar030/RIOT,neiljay/RIOT,haoyangyu/RIOT,alignan/RIOT,watr-li/RIOT,l3nko/RIOT,TobiasFredersdorf/RIOT,msolters/RIOT,OlegHahm/RIOT,MohmadAyman/RIOT,daniel-k/RIOT,TobiasFredersdorf/RIOT,daniel-k/RIOT,thomaseichinger/RIOT,authmillenon/RIOT,LudwigOrtmann/RIOT,JensErdmann/RIOT,jasonatran/RIOT,neumodisch/RIOT,attdona/RIOT,neiljay/RIOT,robixnai/RIOT,syin2/RIOT,automote/RIOT,abkam07/RIOT,aeneby/RIOT,automote/RIOT,adjih/RIOT,adrianghc/RIOT,zhuoshuguo/RIOT,neumodisch/RIOT,miri64/RIOT,rakendrathapa/RIOT,jfischer-phytec-iot/RIOT,altairpearl/RIOT,ks156/RIOT,DipSwitch/RIOT,khhhh/RIOT,x3ro/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,rakendrathapa/RIOT,khhhh/RIOT,josephnoir/RIOT,ntrtrung/RIOT,gebart/RIOT,asanka-code/RIOT,hamilton-mote/RIOT-OS,bartfaizoltan/RIOT,Osblouf/RIOT,josephnoir/RIOT,gbarnett/RIOT,backenklee/RIOT,Hyungsin/RIOT-OS,biboc/RIOT,x3ro/RIOT,binarylemon/RIOT,lebrush/RIOT,marcosalm/RIOT,jasonatran/RIOT,x3ro/RIOT,DipSwitch/RIOT,dhruvvyas90/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,dailab/RIOT,lazytech-org/RIOT,watr-li/RIOT,FrancescoErmini/RIOT,jremmert-phytec-iot/RIOT,PSHIVANI/Riot-Code,toonst/RIOT,OlegHahm/RIOT,LudwigOrtmann/RIOT,herrfz/RIOT,dailab/RIOT,cladmi/RIOT,binarylemon/RIOT,rfuentess/RIOT,kYc0o/RIOT,kb2ma/RIOT,wentaoshang/RIOT,arvindpdmn/RIOT,luciotorre/RIOT,thiagohd/RIOT,mfrey/RIOT,marcosalm/RIOT,EmuxEvans/RIOT,Osblouf/RIOT,basilfx/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,ant9000/RIOT,bartfaizoltan/RIOT,abkam07/RIOT,jbeyerstedt/RIOT-OTA-update,PSHIVANI/Riot-Code,kYc0o/RIOT,RBartz/RIOT,alex1818/RIOT,gebart/RIOT,patkan/RIOT,robixnai/RIOT,patkan/RIOT,automote/RIOT,RIOT-OS/RIOT,alignan/RIOT,EmuxEvans/RIOT,asanka-code/RIOT,kbumsik/RIOT,herrfz/RIOT,rajma996/RIOT,automote/RIOT,haoyangyu/RIOT,Ell-i/RIOT,syin2/RIOT,alex1818/RIOT,lazytech-org/RIOT,automote/RIOT,thomaseichinger/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,aeneby/RIOT,altairpearl/RIOT,rousselk/RIOT,Darredevil/RIOT,tdautc19841202/RIOT,immesys/RiSyn,Ell-i/RIOT,backenklee/RIOT,jasonatran/RIOT,jfischer-phytec-iot/RIOT,lazytech-org/RIOT,dhruvvyas90/RIOT,toonst/RIOT,x3ro/RIOT,MonsterCode8000/RIOT,PSHIVANI/Riot-Code,binarylemon/RIOT,rajma996/RIOT,mfrey/RIOT,mziegert/RIOT,x3ro/RIOT,kaleb-himes/RIOT,robixnai/RIOT,authmillenon/RIOT,smlng/RIOT,abp719/RIOT,altairpearl/RIOT,tdautc19841202/RIOT,d00616/RIOT,malosek/RIOT,Josar/RIOT,Yonezawa-T2/RIOT,bartfaizoltan/RIOT,khhhh/RIOT,miri64/RIOT,neiljay/RIOT,adjih/RIOT,arvindpdmn/RIOT,toonst/RIOT,plushvoxel/RIOT,jbeyerstedt/RIOT-OTA-update,immesys/RiSyn,mfrey/RIOT,gbarnett/RIOT,msolters/RIOT,tdautc19841202/RIOT,kaleb-himes/RIOT,alex1818/RIOT,adjih/RIOT,Osblouf/RIOT,ntrtrung/RIOT,l3nko/RIOT,beurdouche/RIOT,ThanhVic/RIOT,kb2ma/RIOT,RubikonAlpha/RIOT,abp719/RIOT,asanka-code/RIOT,josephnoir/RIOT,attdona/RIOT,LudwigOrtmann/RIOT,shady33/RIOT,LudwigKnuepfer/RIOT,kb2ma/RIOT,EmuxEvans/RIOT,FrancescoErmini/RIOT,shady33/RIOT,FrancescoErmini/RIOT,gbarnett/RIOT,cladmi/RIOT,arvindpdmn/RIOT,LudwigKnuepfer/RIOT,biboc/RIOT,stevenj/RIOT,watr-li/RIOT,gautric/RIOT,syin2/RIOT,hamilton-mote/RIOT-OS,abkam07/RIOT,MohmadAyman/RIOT,thiagohd/RIOT,arvindpdmn/RIOT,d00616/RIOT,OTAkeys/RIOT,luciotorre/RIOT,asanka-code/RIOT,OlegHahm/RIOT,kbumsik/RIOT,rfuentess/RIOT,herrfz/RIOT,toonst/RIOT,wentaoshang/RIOT,zhuoshuguo/RIOT,jremmert-phytec-iot/RIOT,authmillenon/RIOT,ntrtrung/RIOT,thomaseichinger/RIOT,bartfaizoltan/RIOT,JensErdmann/RIOT,kYc0o/RIOT,aeneby/RIOT,brettswann/RIOT,asanka-code/RIOT,RBartz/RIOT,l3nko/RIOT,alignan/RIOT,alignan/RIOT,arvindpdmn/RIOT,thiagohd/RIOT,patkan/RIOT,roberthartung/RIOT,TobiasFredersdorf/RIOT,mtausig/RIOT,Josar/RIOT,LudwigKnuepfer/RIOT,dkm/RIOT,dkm/RIOT,beurdouche/RIOT,JensErdmann/RIOT,OlegHahm/RIOT,Lexandro92/RIOT-CoAP,jbeyerstedt/RIOT-OTA-update,d00616/RIOT,LudwigOrtmann/RIOT,abkam07/RIOT,l3nko/RIOT,MohmadAyman/RIOT,daniel-k/RIOT,Ell-i/RIOT,yogo1212/RIOT,ks156/RIOT,toonst/RIOT,zhuoshuguo/RIOT,jremmert-phytec-iot/RIOT,authmillenon/RIOT,thomaseichinger/RIOT,PSHIVANI/Riot-Code,kerneltask/RIOT,stevenj/RIOT,altairpearl/RIOT,patkan/RIOT,kbumsik/RIOT,MarkXYang/RIOT,brettswann/RIOT,abkam07/RIOT,BytesGalore/RIOT,TobiasFredersdorf/RIOT,dailab/RIOT,khhhh/RIOT,latsku/RIOT,latsku/RIOT,RBartz/RIOT,msolters/RIOT,A-Paul/RIOT,altairpearl/RIOT,abp719/RIOT,herrfz/RIOT,Josar/RIOT,A-Paul/RIOT,Darredevil/RIOT,avmelnikoff/RIOT,katezilla/RIOT,katezilla/RIOT,alignan/RIOT,JensErdmann/RIOT,biboc/RIOT,kYc0o/RIOT,ks156/RIOT,adjih/RIOT,jbeyerstedt/RIOT-OTA-update,hamilton-mote/RIOT-OS,ThanhVic/RIOT,watr-li/RIOT,mtausig/RIOT,ks156/RIOT,marcosalm/RIOT,luciotorre/RIOT,wentaoshang/RIOT,TobiasFredersdorf/RIOT,wentaoshang/RIOT,stevenj/RIOT,aeneby/RIOT,gautric/RIOT,jfischer-phytec-iot/RIOT,jbeyerstedt/RIOT-OTA-update,mtausig/RIOT,malosek/RIOT,rakendrathapa/RIOT,cladmi/RIOT,brettswann/RIOT,Hyungsin/RIOT-OS,tfar/RIOT,Yonezawa-T2/RIOT,thiagohd/RIOT,rousselk/RIOT,watr-li/RIOT,d00616/RIOT,avmelnikoff/RIOT,smlng/RIOT,Ell-i/RIOT,rousselk/RIOT,kerneltask/RIOT,kaleb-himes/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,gebart/RIOT,ThanhVic/RIOT,jfischer-phytec-iot/RIOT,watr-li/RIOT,alex1818/RIOT,latsku/RIOT,cladmi/RIOT,backenklee/RIOT,tfar/RIOT,tfar/RIOT,d00616/RIOT,hamilton-mote/RIOT-OS,binarylemon/RIOT,dkm/RIOT,thiagohd/RIOT,rajma996/RIOT,yogo1212/RIOT,mziegert/RIOT,haoyangyu/RIOT,kYc0o/RIOT,adrianghc/RIOT,marcosalm/RIOT,MarkXYang/RIOT,miri64/RIOT,rakendrathapa/RIOT,Lexandro92/RIOT-CoAP,JensErdmann/RIOT,abkam07/RIOT,rakendrathapa/RIOT,luciotorre/RIOT,tdautc19841202/RIOT,basilfx/RIOT,dhruvvyas90/RIOT,dhruvvyas90/RIOT,malosek/RIOT,thomaseichinger/RIOT,daniel-k/RIOT,zhuoshuguo/RIOT,basilfx/RIOT,kb2ma/RIOT,tdautc19841202/RIOT,kerneltask/RIOT,MonsterCode8000/RIOT,wentaoshang/RIOT,syin2/RIOT,gautric/RIOT,katezilla/RIOT,MarkXYang/RIOT,kaspar030/RIOT,daniel-k/RIOT,shady33/RIOT,gbarnett/RIOT,Lexandro92/RIOT-CoAP,DipSwitch/RIOT,shady33/RIOT,neumodisch/RIOT,latsku/RIOT,roberthartung/RIOT,josephnoir/RIOT,katezilla/RIOT,alex1818/RIOT,brettswann/RIOT,openkosmosorg/RIOT,Yonezawa-T2/RIOT,EmuxEvans/RIOT,dkm/RIOT,neumodisch/RIOT,miri64/RIOT,ntrtrung/RIOT,daniel-k/RIOT,ant9000/RIOT,Hyungsin/RIOT-OS,kaspar030/RIOT,Josar/RIOT,backenklee/RIOT,Osblouf/RIOT,openkosmosorg/RIOT,kbumsik/RIOT,mfrey/RIOT,luciotorre/RIOT,biboc/RIOT,hamilton-mote/RIOT-OS,centurysys/RIOT,lebrush/RIOT,rajma996/RIOT,lebrush/RIOT,dhruvvyas90/RIOT,kaleb-himes/RIOT,ThanhVic/RIOT,immesys/RiSyn,RubikonAlpha/RIOT,PSHIVANI/Riot-Code,MarkXYang/RIOT,bartfaizoltan/RIOT,kerneltask/RIOT,Osblouf/RIOT,shady33/RIOT,OTAkeys/RIOT,beurdouche/RIOT,Darredevil/RIOT,MonsterCode8000/RIOT,kaspar030/RIOT,malosek/RIOT,A-Paul/RIOT,plushvoxel/RIOT,tdautc19841202/RIOT,JensErdmann/RIOT,gebart/RIOT,yogo1212/RIOT,patkan/RIOT,haoyangyu/RIOT,gbarnett/RIOT,syin2/RIOT,PSHIVANI/Riot-Code,Yonezawa-T2/RIOT,katezilla/RIOT,zhuoshuguo/RIOT,smlng/RIOT,RBartz/RIOT,mziegert/RIOT,attdona/RIOT,plushvoxel/RIOT,LudwigOrtmann/RIOT,dailab/RIOT,biboc/RIOT,basilfx/RIOT,RubikonAlpha/RIOT,FrancescoErmini/RIOT,lebrush/RIOT,mziegert/RIOT,Osblouf/RIOT,mtausig/RIOT,l3nko/RIOT,roberthartung/RIOT,centurysys/RIOT,khhhh/RIOT,automote/RIOT,msolters/RIOT,gautric/RIOT,A-Paul/RIOT,altairpearl/RIOT,RIOT-OS/RIOT,Darredevil/RIOT,rajma996/RIOT,robixnai/RIOT,centurysys/RIOT,DipSwitch/RIOT,plushvoxel/RIOT,gautric/RIOT,ThanhVic/RIOT,tfar/RIOT,neumodisch/RIOT,ant9000/RIOT,wentaoshang/RIOT,ThanhVic/RIOT,ntrtrung/RIOT,plushvoxel/RIOT,yogo1212/RIOT,EmuxEvans/RIOT,FrancescoErmini/RIOT,basilfx/RIOT,centurysys/RIOT,cladmi/RIOT,OTAkeys/RIOT,Lexandro92/RIOT-CoAP,latsku/RIOT,msolters/RIOT,jasonatran/RIOT,Ell-i/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,Lexandro92/RIOT-CoAP,Josar/RIOT,herrfz/RIOT,Lexandro92/RIOT-CoAP,ant9000/RIOT,rajma996/RIOT,lazytech-org/RIOT,marcosalm/RIOT,LudwigKnuepfer/RIOT,Darredevil/RIOT,brettswann/RIOT,MohmadAyman/RIOT,RubikonAlpha/RIOT,smlng/RIOT,shady33/RIOT,dhruvvyas90/RIOT,avmelnikoff/RIOT,beurdouche/RIOT,robixnai/RIOT,herrfz/RIOT,attdona/RIOT,dailab/RIOT,khhhh/RIOT,roberthartung/RIOT,tfar/RIOT,BytesGalore/RIOT,haoyangyu/RIOT,dkm/RIOT,rousselk/RIOT,jasonatran/RIOT,MarkXYang/RIOT,lazytech-org/RIOT,kb2ma/RIOT,marcosalm/RIOT,jremmert-phytec-iot/RIOT
|
b6e07bbe538d0e7620b5f8c4786526f485e9c6fa
|
tests/addition_tests.c
|
tests/addition_tests.c
|
#include <check.h>
#include "../src/roman_calculator.h"
START_TEST(can_add_by_simple_repetition)
{
ck_assert_str_eq("II", roman_calculator_add("I", "I"));
ck_assert_str_eq("III", roman_calculator_add("I", "II"));
ck_assert_str_eq("XXX", roman_calculator_add("XX", "X"));
ck_assert_str_eq("CC", roman_calculator_add("C", "C"));
ck_assert_str_eq("MMM", roman_calculator_add("M", "MM"));
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
return test_case;
}
|
#include <stdlib.h>
#include <check.h>
#include "../src/roman_calculator.h"
void verify_addition(const char *left, const char *right, const char *expected_result) {
char *actual_result = roman_calculator_add(left, right);
ck_assert_msg(
strcmp(expected_result, actual_result) == 0,
"%s + %s: expected %s, but was %s",
left, right, expected_result, actual_result);
free(actual_result);
}
START_TEST(can_add_by_simple_repetition)
{
verify_addition("I", "I", "II");
verify_addition("I", "II", "III");
verify_addition("XX", "X", "XXX");
verify_addition("C", "C", "CC");
verify_addition("M", "MM", "MMM");
}
END_TEST
TCase *addition_tests()
{
TCase *test_case = tcase_create("addition tests");
tcase_add_test(test_case, can_add_by_simple_repetition);
return test_case;
}
|
Make sure to free memory in tests, and have better failure messages
|
Make sure to free memory in tests, and have better failure messages
|
C
|
mit
|
greghaskins/roman-calculator.c
|
231c752d99db285edc7cdfce77297ce63f23f34a
|
src/tconf.c
|
src/tconf.c
|
// Copyright 2017 Adam Cowdy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "tconf.h"
#include <stdio.h>
#define TCONF_INPUT_SOURCE_FILE 0
#define TCONF_INPUT_SOURCE_STRING 1
tconf_parser_t *tconf_new_file_parser(FILE *file) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_FILE;
parser->input.file = file;
return parser;
}
tconf_parser_t *tconf_new_string_parser(char *string) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_STRING;
parser->input.string = string;
return parser;
}
|
// Copyright 2017 Adam Cowdy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "tconf.h"
#include <stdio.h>
#include <stdlib.h>
#define TCONF_INPUT_SOURCE_FILE 0
#define TCONF_INPUT_SOURCE_STRING 1
tconf_parser_t *tconf_new_file_parser(FILE *file) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_FILE;
parser->input.file = file;
return parser;
}
tconf_parser_t *tconf_new_string_parser(char *string) {
tconf_parser_t *parser = malloc(sizeof(tconf_parser_t));
if (parser == NULL) {
return NULL;
}
parser->input_source_tag = TCONF_INPUT_SOURCE_STRING;
parser->input.string = string;
return parser;
}
|
Fix 'implicitly declaring library function 'malloc' ...' warning
|
Fix 'implicitly declaring library function 'malloc' ...' warning
|
C
|
apache-2.0
|
Acowdy/tconf
|
b36bf96bc95556d07cfa3c289beb51a998723d19
|
library/library_pch.h
|
library/library_pch.h
|
#pragma once
#include "dependencies/tinyformat/tinyformat.h"
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/locale.hpp>
#include <cstdint>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <ostream>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
|
#pragma once
#include "dependencies/tinyformat/tinyformat.h"
#include <algorithm>
#include <cstdint>
#include <fstream>
#include <glm/glm.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <ostream>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
|
Remove some rarely-used headers from library pch
|
Remove some rarely-used headers from library pch
|
C
|
mit
|
FranciscoDA/OpenApoc,Istrebitel/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc
|
c1289c7c8c4b373ca6682c3e33fa1f030b46685c
|
examples/blink_modular/Atm_blink.h
|
examples/blink_modular/Atm_blink.h
|
#ifndef Atm_blink_h
#define Atm_blink_h
#include <Automaton.h>
class Atm_blink: public Machine {
public:
Atm_blink( void ) : Machine() { class_label = "BLNK"; };
short pin;
atm_timer_millis timer;
enum { LED_ON, LED_OFF } STATES;
enum { EVT_TIMER, ELSE } EVENTS;
enum { ACT_ON, ACT_OFF } ACTIONS;
Atm_blink & begin( int attached_pin, int blinkrate );
Atm_blink & onSwitch( swcb_sym_t switch_callback );
int event( int id );
void action( int id );
};
#endif
|
#ifndef Atm_blink_h
#define Atm_blink_h
#include <Automaton.h>
class Atm_blink: public Machine {
public:
Atm_blink( void ) : Machine() { class_label = "BLNK"; };
short pin;
atm_timer_millis timer;
enum { LED_ON, LED_OFF } STATES;
enum { EVT_TIMER, ELSE } EVENTS;
enum { ACT_ON, ACT_OFF } ACTIONS;
Atm_blink & begin( int attached_pin, uint32_t blinkrate );
Atm_blink & onSwitch( swcb_sym_t switch_callback );
int event( int id );
void action( int id );
};
#endif
|
Update blink_modular.ino: changed blinkrate argument to uint32_t
|
Update blink_modular.ino: changed blinkrate argument to uint32_t
|
C
|
mit
|
tinkerspy/Automaton,tinkerspy/Automaton
|
a0ff95bed586084cdbd693a3f71e902c7aafa7f2
|
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
|
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
|
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "PeripheralPins.h"
#include "PeripheralPinMaps.h"
|
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "PeripheralPins.h"
#include "PeripheralPinMaps.h"
// List of GPIOs with limited functionality
const PinList *pinmap_gpio_restricted_pins()
{
static const PinName pins[] = {
A4, // fixed pull-up (for I2C)
A5, // fixed pull-up (for I2C)
D5, // fixed pull-up (for LED)
D3, // fixed pull-up (for LED)
D4, // fixed pull-up (for LED)
D7, // fixed pull-up
D15, // fixed pull-up (for I2C)
D14 // fixed pull-up (for I2C)
};
static const PinList pin_list = {
sizeof(pins) / sizeof(pins[0]),
pins
};
return &pin_list;
}
|
Add restricted GPIO pins for FPGA testing
|
LPC55S69: Add restricted GPIO pins for FPGA testing
|
C
|
apache-2.0
|
kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed
|
9ff859ce71b1df689af6df4434ceddd7c107e8b1
|
apps/Empty/main.c
|
apps/Empty/main.c
|
/*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//-------------------------------------------
// Blink - demo application that blinks a single LED with one second interval
//-------------------------------------------
#include "stdmansos.h"
void appMain(void)
{
}
|
/*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//-------------------------------------------
// Empty - demo application that compiles and does nothing
//-------------------------------------------
#include "stdmansos.h"
void appMain(void)
{
}
|
Fix comment for Empty app
|
Fix comment for Empty app
|
C
|
mit
|
IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS
|
f6cddeef0ef79460b257b86e6ffe5cb57534c28e
|
OneTimePasswordLegacy/OneTimePasswordLegacy.h
|
OneTimePasswordLegacy/OneTimePasswordLegacy.h
|
//
// OneTimePasswordLegacy.h
// OneTimePasswordLegacy
//
// Created by Matt Rubin on 7/10/14.
// Copyright (c) 2014 Matt Rubin. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for OneTimePasswordLegacy.
FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber;
//! Project version string for OneTimePasswordLegacy.
FOUNDATION_EXPORT const unsigned char OneTimePasswordLegacyVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <OneTimePasswordLegacy/PublicHeader.h>
#import <OneTimePasswordLegacy/OTPTypes.h>
|
//
// OneTimePasswordLegacy.h
// OneTimePasswordLegacy
//
// Created by Matt Rubin on 7/10/14.
// Copyright (c) 2014 Matt Rubin. All rights reserved.
//
@import Foundation;
//! Project version number for OneTimePasswordLegacy.
FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber;
//! Project version string for OneTimePasswordLegacy.
FOUNDATION_EXPORT const unsigned char OneTimePasswordLegacyVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <OneTimePasswordLegacy/PublicHeader.h>
#import <OneTimePasswordLegacy/OTPTypes.h>
|
Remove unnecessary import of UIKit
|
Remove unnecessary import of UIKit
|
C
|
mit
|
mattrubin/onetimepassword,mattrubin/onetimepassword
|
4447cbac38eca7657a77e5d96a4c9f9d9710207c
|
src/main.c
|
src/main.c
|
/**
* main.c
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#include "common.h"
#include "argv.h"
#include "daemon.h"
#include "usage.h"
int main (int argc, char *argv[]) {
int i;
/**
* If the `--help` option was given, display usage details and exit
*/
if (in_array(GIT_STASHD_USAGE_OPT, argv, argc)) {
pfusage();
printf("%d\n", is_dir("/var/log"));
exit(EXIT_SUCCESS);
}
/**
* Start daemon process
*/
// stashd();
for (i = 0; i < argc; i += 1) {
const char *flag = argv[i];
printf("%s\n", flag);
}
FILE *fp = fopen(GIT_STASHD_LOG_FILE, GIT_STASHD_LOG_MODE);
if (!fp) {
printf("Error opening file %s\n", GIT_STASHD_LOG_FILE);
exit(EXIT_FAILURE);
}
while (1) {
fprintf(fp, "git-stashd started.\n");
sleep(10);
break;
}
fprintf(fp, "git-stashd terminated.\n");
fclose(fp);
return EXIT_SUCCESS;
}
|
/**
* main.c
*
* Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com>
*/
#include "common.h"
#include "argv.h"
#include "daemon.h"
#include "usage.h"
int main (int argc, char *argv[]) {
/**
* If the `--help` option was given, display usage details and exit.
*/
if (in_array(GIT_STASHD_USAGE_OPT, argv, argc)) {
pfusage();
printf("%d\n", is_dir("/var/log"));
exit(EXIT_SUCCESS);
}
/**
* If the `--daemon` option was given, start a daemon.
*/
if (in_array("--daemon", argv, argc)) {
stashd("/var/log");
}
FILE *fp = fopen(GIT_STASHD_LOG_FILE, GIT_STASHD_LOG_MODE);
if (!fp) {
printf("Error opening file %s\n", GIT_STASHD_LOG_FILE);
exit(EXIT_FAILURE);
}
while (1) {
fprintf(fp, "git-stashd started.\n");
sleep(10);
break;
}
fprintf(fp, "git-stashd terminated.\n");
fclose(fp);
return EXIT_SUCCESS;
}
|
Work on --daemon option handling
|
Work on --daemon option handling
|
C
|
mit
|
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
|
cceede5a3cbe1b8b508b8193aafb75d44319d472
|
gps-transmitter/gps_transmitter/xbee_helpers.h
|
gps-transmitter/gps_transmitter/xbee_helpers.h
|
/*
*
*/
typedef union {
float floatingPoint;
byte binary[4];
} binaryFloat;
uint8_t setXBeePanId (uint16_t addr);
uint8_t setXBeeMyAddress (uint16_t addr);
uint8_t setXBeeChannel (uint8_t channel);
uint8_t setXBeeHoppingChannel (uint8_t channel);
uint8_t setXBeeChannelVerification (uint8_t mode);
uint8_t setXBeeNetworkWatchdogTimeout (uint16_t timeout);
uint8_t resetXBeeNetwork (uint8_t mode);
void setPayload (float lat, float lng, uint8_t* payload);
|
/*
*
*/
typedef union {
float floatingPoint;
byte binary[4];
} binaryFloat;
uint8_t setXBeePanId (uint16_t addr);
uint8_t setXBeeMyAddress (uint16_t addr);
uint8_t setXBeeChannel (uint8_t channel);
uint8_t setXBeeHoppingChannel (uint8_t channel);
uint8_t setXBeeChannelVerification (uint8_t mode);
uint8_t setXBeeNetworkWatchdogTimeout (uint16_t timeout);
uint8_t resetXBeeNetwork (uint8_t mode);
void setPayload (byte status, float lat, float lng, uint8_t* payload);
|
Make the declatarion match reality.
|
Make the declatarion match reality.
|
C
|
isc
|
lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker
|
c9df2beb473f7461797074c51789761e0dbc1567
|
cmake/utils/CheckJemallocBuilds.c
|
cmake/utils/CheckJemallocBuilds.c
|
#include <jemalloc.h>
int main(int argc, char** argv) {
(void)argv;
return argc + (int)(malloc(42));
}
|
#include <jemalloc.h>
int main(int argc, char** argv) {
void *volatile dummyPtr = malloc(42);
(void)argv;
return argc;
}
|
Fix a -Wpointer-to-int-cast when searching Jemalloc
|
[CMAKE] Fix a -Wpointer-to-int-cast when searching Jemalloc
Summary:
This would trigger failures when `-Werror` is enabled, such as:
https://build.bitcoinabc.org/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=66573&guest=1#footer
Test Plan:
cmake -GNinja .. \
-DUSE_JEMALLOC_EXPERIMENTAL=ON \
-DCMAKE_C_FLAGS=-Werror
This will fail before this patch and succeed after.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6343
|
C
|
mit
|
cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc
|
6d21ed0d97f5486c6508082c3646ad26024dc7a6
|
src/plugins/zlib/istream-bzlib.c
|
src/plugins/zlib/istream-bzlib.c
|
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#define gzseek BZ2_bzseek
#define i_stream_create_zlib i_stream_create_bzlib
#include "istream-zlib.c"
#endif
|
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"
#ifdef HAVE_BZLIB
#include <stdio.h>
#include <bzlib.h>
#define BZLIB_INCLUDE
#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#define gzseek BZ2_bzseek
#define i_stream_create_zlib i_stream_create_bzlib
#include "istream-zlib.c"
#endif
|
Include stdio.h in case bzlib.h needs it.
|
bzlib: Include stdio.h in case bzlib.h needs it.
|
C
|
mit
|
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
|
3446ef49a05fe50bc1e6632983f9d78033af7be4
|
src/global_mapper/global_mapper.h
|
src/global_mapper/global_mapper.h
|
// Copyright 2017 Massachusetts Institute of Technology
#pragma once
#include <csignal>
#include <deque>
#include <vector>
#include <mutex>
#include "pcl_ros/point_cloud.h"
namespace global_mapper {
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
class GlobalMapper {
public:
explicit GlobalMapper(volatile std::sig_atomic_t* stop_signal_ptr_);
~GlobalMapper();
void PushPointCloud(const PointCloud::ConstPtr& point_cloud);
const PointCloud::ConstPtr PopPointCloud();
const PointCloud::ConstPtr TransformPointCloud(const PointCloud::ConstPtr& point_cloud);
void InsertPointCloud(const PointCloud::ConstPtr& point_cloud);
void Run();
volatile std::sig_atomic_t* stop_signal_ptr_;
// std::mutex mutex_;
private:
std::deque<PointCloud::ConstPtr > point_cloud_buffer_;
int global_map_size_x_;
int global_map_size_y_;
int global_map_size_z_;
std::vector<float> global_map_;
};
} // namespace global_mapper
|
// Copyright 2017 Massachusetts Institute of Technology
#pragma once
#include <csignal>
#include <deque>
#include <vector>
#include <mutex>
#include "pcl_ros/point_cloud.h"
namespace global_mapper {
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
class GlobalMapper {
public:
explicit GlobalMapper(volatile std::sig_atomic_t* stop_signal_ptr_);
~GlobalMapper();
GlobalMapper(const GlobalMapper& rhs) = delete;
GlobalMapper& operator=(const GlobalMapper& rhs) = delete;
GlobalMapper(GlobalMapper&& rhs) = delete;
GlobalMapper& operator=(GlobalMapper&& rhs) = delete;
void PushPointCloud(const PointCloud::ConstPtr& point_cloud);
const PointCloud::ConstPtr PopPointCloud();
const PointCloud::ConstPtr TransformPointCloud(const PointCloud::ConstPtr& point_cloud);
void InsertPointCloud(const PointCloud::ConstPtr& point_cloud);
void Run();
volatile std::sig_atomic_t* stop_signal_ptr_;
// std::mutex mutex_;
private:
std::deque<PointCloud::ConstPtr > point_cloud_buffer_;
int global_map_size_x_;
int global_map_size_y_;
int global_map_size_z_;
std::vector<float> global_map_;
};
} // namespace global_mapper
|
Delete copy and move constructors.
|
Delete copy and move constructors.
|
C
|
mit
|
jakeware/global_mapper
|
0cd7be4c4d330aa4f8918986b59e104411bf107d
|
test/PCH/modified-header-crash.c
|
test/PCH/modified-header-crash.c
|
// Don't crash.
// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
// RUN: touch %S/modified-header-crash.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
void f(void) {
foo = 3;
}
|
// Don't crash.
// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
// RUN: touch %S/modified-header-crash.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
// FIXME: On Windows we don't detect that the header was modified ?
// XFAIL: win32
void f(void) {
foo = 3;
}
|
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp.
|
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130204 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang
|
467b5716d03b64dfe37c66769576ce9fe1d7fa62
|
tests/matcher_argument_run_tests.c
|
tests/matcher_argument_run_tests.c
|
//
// Created by Jake Kinsella on 6/19/17.
//
#include <assert.h>
#include "../src/matcher/matcher.h"
int main(int argc, const char* argv[])
{
return 0;
}
|
//
// Created by Jake Kinsella on 6/19/17.
//
#include <assert.h>
#include "../src/matcher/matcher.h"
#include "../src/registers.h"
void dst_run(uint8_t *dst_register);
void src_run(const uint8_t src_register);
void rp_run(RegisterPair *dst_register_pair);
void dst_src_run(uint8_t *dst_register, const uint8_t src_register);
int value_register1 = 0;
int value_register2 = 0;
int main(int argc, const char* argv[])
{
return 0;
}
void dst_run(uint8_t *dst_register)
{
value_register1 = *dst_register;
}
void src_run(const uint8_t src_register)
{
value_register1 = src_register;
}
void rp_run(RegisterPair *dst_register_pair)
{
value_register1 = combine_bytes(*dst_register_pair->register1, *dst_register_pair->register2);
}
void dst_src_run(uint8_t *dst_register, const uint8_t src_register)
{
value_register1 = *dst_register;
value_register2 = src_register;
}
|
Create dummy functions for future matcher tests
|
Create dummy functions for future matcher tests
|
C
|
mit
|
TheLocust3/Intel-8080-Emulator,TheLocust3/Intel-8080-Emulator
|
c7b85c55569d65966601ba3fc1cdc709d1693fe7
|
src/qt/logging/messageboxlogger.h
|
src/qt/logging/messageboxlogger.h
|
/*Copyright 2010-2015 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
#ifndef GUTIL_NO_GUI_FUNCTIONALITY
#ifndef GUTIL_MESSAGEBOXLOGGER_H
#define GUTIL_MESSAGEBOXLOGGER_H
#include <gutil/ilog.h>
#include <QObject>
class QWidget;
namespace GUtil{ namespace Qt{
/** A logger implementation which displays the message in a modal dialog box. */
class MessageBoxLogger : public QObject, public GUtil::ILog
{
Q_OBJECT
QWidget *m_parentWidget;
public:
explicit MessageBoxLogger(QWidget *parent = 0);
virtual ~MessageBoxLogger() {}
/** Displays a modal dialog box with the title and message, with the
appropriate severity.
*/
virtual void Log(const LoggingData &) noexcept;
private slots:
void _log(const LoggingData &);
};
}}
#endif // GUTIL_MESSAGEBOXLOGGER_H
#endif // GUI_FUNCTIONALITY
|
/*Copyright 2010-2015 George Karagoulis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
#ifndef GUTIL_NO_GUI_FUNCTIONALITY
#ifndef GUTIL_MESSAGEBOXLOGGER_H
#define GUTIL_MESSAGEBOXLOGGER_H
#include <gutil/ilog.h>
#include <QObject>
class QWidget;
namespace GUtil{ namespace Qt{
/** A logger implementation which displays the message in a modal dialog box. */
class MessageBoxLogger : public QObject, public GUtil::ILog
{
Q_OBJECT
QWidget *m_parentWidget;
public:
explicit MessageBoxLogger(QWidget *parent = 0);
virtual ~MessageBoxLogger() {}
void SetParentWidget(QWidget *parent){ m_parentWidget = parent; }
QWidget *GetParentWidget() const{ return m_parentWidget; }
/** Displays a modal dialog box with the title and message, with the
appropriate severity.
*/
virtual void Log(const LoggingData &) noexcept;
private slots:
void _log(const LoggingData &);
};
}}
#endif // GUTIL_MESSAGEBOXLOGGER_H
#endif // GUI_FUNCTIONALITY
|
Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger.
|
Allow to change the parent widget after construction. Sometimes your main
widget changes and you don't want to make a new logger.
|
C
|
apache-2.0
|
karagog/gutil,karagog/gutil,karagog/gutil
|
496e639962fb8add9c62896cfd3c30096a1bdf08
|
src/libOL/Chunks.h
|
src/libOL/Chunks.h
|
// Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#ifndef __libol__Chunks__
#define __libol__Chunks__
#include <vector>
#include <cstdint>
namespace libol {
namespace Chunks {
static std::vector<uint8_t> decrypt(std::vector<uint8_t> bytes, std::vector<uint8_t> key);
}
}
#endif /* defined(__libol__Chunks__) */
|
// Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#ifndef __libol__Chunks__
#define __libol__Chunks__
#include <vector>
#include <cstdint>
namespace libol {
namespace Chunks {
std::vector<uint8_t> decryptAndDecompress(std::vector<uint8_t> bytes, std::vector<uint8_t> key);
}
}
#endif /* defined(__libol__Chunks__) */
|
Fix dumb header issue (didn't update implementation)
|
Fix dumb header issue (didn't update implementation)
|
C
|
mit
|
loldevs/libOL,loldevs/libOL
|
3306b3ed35a2501ad2b517e10b09940b85072d33
|
webkit/glue/webkit_constants.h
|
webkit/glue/webkit_constants.h
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 0.004;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 1.0;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
|
Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
|
Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility impact of this change.
BUG=66078
TEST=none (tested manually with minimal test case)
Review URL: http://codereview.chromium.org/6546021
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@75430 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
junmin-zhu/chromium-rivertrail,patrickm/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,littlstar/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,ltilve/chromium,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,keishi/chromium,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,keishi/chromium,anirudhSK/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,robclark/chromium,ltilve/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,dednal/chromium.src,M4sse/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,keishi/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,Chilledheart/chromium,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,ondra-novak/chromium.src,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,Just-D/chromium-1,dednal/chromium.src,axinging/chromium-crosswalk,dednal/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,robclark/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,rogerwang/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,hujiajie/pa-chromium,keishi/chromium,Just-D/chromium-1,ondra-novak/chromium.src,keishi/chromium,patrickm/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,hujiajie/pa-chromium,ltilve/chromium,dushu1203/chromium.src,anirudhSK/chromium,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,keishi/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,jaruba/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,Jonekee/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,dushu1203/chromium.src,rogerwang/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,zcbenz/cefode-chromium,keishi/chromium,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,robclark/chromium,dushu1203/chromium.src,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,axinging/chromium-crosswalk,Just-D/chromium-1,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,keishi/chromium,hgl888/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,rogerwang/chromium,robclark/chromium,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ltilve/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,dednal/chromium.src,markYoungH/chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,M4sse/chromium.src,ltilve/chromium,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,jaruba/chromium.src,chuan9/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,dednal/chromium.src,Chilledheart/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,ltilve/chromium,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,dushu1203/chromium.src,robclark/chromium,ChromiumWebApps/chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,rogerwang/chromium,patrickm/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,anirudhSK/chromium,M4sse/chromium.src,Jonekee/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,rogerwang/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,M4sse/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,robclark/chromium,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk
|
037429a86d8cd163f2d0af608f6e415bdf891bab
|
webkit/glue/unittest_test_server.h
|
webkit/glue/unittest_test_server.h
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"
class UnittestTestServer : public net::TestServer {
public:
UnittestTestServer()
: net::TestServer(net::TestServer::TYPE_HTTP,
FilePath(FILE_PATH_LITERAL("webkit/data"))) {
}
};
#endif // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"
class UnittestTestServer : public net::TestServer {
public:
UnittestTestServer()
: net::TestServer(net::TestServer::TYPE_HTTP,
net::TestServer::kLocalhost,
FilePath(FILE_PATH_LITERAL("webkit/data"))) {
}
};
#endif // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
|
Remove usage of a deprecated TestServer constructor.
|
Remove usage of a deprecated TestServer constructor.
Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details:
http://codereview.chromium.org/9369029/
A follow-up CL will remove the deprecated constructor:
http://codereview.chromium.org/9431002/
BUG=114369
TEST=everything still compiles and passes
Review URL: http://codereview.chromium.org/9429052
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@123095 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium
|
aa7e1ce0e564afd205acd5fc1323cd18232b0620
|
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
|
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
|
/* Copyright (c) 2018 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "test_pits.h"
#include "test_pits_impl.h"
psa_its_status_t test_psa_its_reset(void)
{
return test_psa_its_reset_impl();
}
|
/* Copyright (c) 2018 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TARGET_PSA
#error [NOT_SUPPORTED] ITS tests can run only on PSA-enabled targets.
#endif // TARGET_PSA
#include "test_pits.h"
#include "test_pits_impl.h"
psa_its_status_t test_psa_its_reset(void)
{
return test_psa_its_reset_impl();
}
|
Fix its tests in non-psa targets
|
Fix its tests in non-psa targets
|
C
|
apache-2.0
|
mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed
|
0e52c608224046c8e6a737e13bf0ca258fea87e3
|
src/ConfirmationHandler.h
|
src/ConfirmationHandler.h
|
/*
* This file is part of btag.
*
* © 2011 Fernando Tarlá Cardoso Lemos
*
* Refer to the LICENSE file for licensing information.
*
*/
#ifndef CONFIRMATION_HANDLER_H
#define CONFIRMATION_HANDLER_H
#include <string>
#include "BasicStringFilter.h"
#include "InteractiveTerminal.h"
class ConfirmationHandler
{
public:
ConfirmationHandler(InteractiveTerminal &terminal,
BasicStringFilter *input_filter = NULL, BasicStringFilter *output_filter = NULL);
void reset();
void set_local_default(const std::wstring &local);
bool ask(const std::wstring &question);
bool complies() const { return m_complies; }
const std::wstring &answer() const { return m_output; }
private:
bool do_ask(const std::wstring &question);
InteractiveTerminal &m_terminal;
BasicStringFilter *m_input_filter, *m_output_filter;
std::wstring m_global_def, m_local_def, m_output;
bool m_retry, m_complies;
};
#endif
|
/*
* This file is part of btag.
*
* © 2011 Fernando Tarlá Cardoso Lemos
*
* Refer to the LICENSE file for licensing information.
*
*/
#ifndef CONFIRMATION_HANDLER_H
#define CONFIRMATION_HANDLER_H
#include <string>
#include "BasicStringFilter.h"
#include "InteractiveTerminal.h"
class ConfirmationHandler
{
public:
ConfirmationHandler(InteractiveTerminal &terminal,
BasicStringFilter *input_filter = NULL, BasicStringFilter *output_filter = NULL);
void reset();
void set_local_default(const std::wstring &local);
bool ask(const std::wstring &question);
bool complies() const { return m_complies; }
const std::wstring &answer() const { return m_output; }
private:
bool do_ask(const std::wstring &question);
InteractiveTerminal &m_terminal;
BasicStringFilter *m_input_filter, *m_output_filter;
std::wstring m_global_def, m_local_def, m_output;
bool m_complies;
};
#endif
|
Remove unused private instance variable
|
Remove unused private instance variable
btag now compiles again in OS X without warnings.
|
C
|
bsd-2-clause
|
fernandotcl/btag,fernandotcl/btag
|
44562efeedb317fecdcbe60b802d86ec361b6f61
|
ext/cool.io/ev_wrap.h
|
ext/cool.io/ev_wrap.h
|
#define EV_STANDALONE /* keeps ev from requiring config.h */
#ifdef _WIN32
# define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */
# define FD_SETSIZE 2048 /* wishful thinking, as msvcrt6 [?] seems to only allow 512 fd's and 256 sockets max */
#endif
#include "../libev/ev.h"
|
#define EV_STANDALONE /* keeps ev from requiring config.h */
#ifdef _WIN32
#define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */
#define EV_USE_MONOTONIC 0
#define EV_USE_REALTIME 0
#endif
#include "../libev/ev.h"
|
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
|
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
|
C
|
mit
|
nurse/cool.io,tarcieri/cool.io,nurse/cool.io,tarcieri/cool.io,tarcieri/cool.io,cosmo0920/cool.io,cosmo0920/cool.io
|
0b0347a7fded792024f223c7693bed7f7a91881c
|
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
|
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
|
//
// NSString+RACKeyPathUtilities.h
// ReactiveCocoa
//
// Created by Uri Baghin on 05/05/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (RACKeyPathUtilities)
// Returns an array of the components of the receiver, or nil if the receiver is
// not a valid key path.
- (NSArray *)rac_keyPathComponents;
// Returns a key path with all the components of the receiver except for the
// last one or nil if the receiver is not a valid key path, or has only one
// component.
- (NSString *)rac_keyPathByDeletingLastKeyPathComponent;
// Returns a key path with all the components of the receiver expect for the
// first one or nil if the receiver is not a valid key path, or has only one
// component.
- (NSString *)rac_keyPathByDeletingFirstKeyPathComponent;
@end
|
//
// NSString+RACKeyPathUtilities.h
// ReactiveCocoa
//
// Created by Uri Baghin on 05/05/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (RACKeyPathUtilities)
// Returns an array of the components of the receiver.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSArray *)rac_keyPathComponents;
// Returns a key path with all the components of the receiver except for the
// last one.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSString *)rac_keyPathByDeletingLastKeyPathComponent;
// Returns a key path with all the components of the receiver expect for the
// first one.
//
// Calling this method on a string that isn't a key path is considered undefined
// behavior.
- (NSString *)rac_keyPathByDeletingFirstKeyPathComponent;
@end
|
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
|
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
|
C
|
mit
|
KJin99/ReactiveCocoa,buildo/ReactiveCocoa,pzw224/ReactiveCocoa,paulyoung/ReactiveCocoa,terry408911/ReactiveCocoa,swizzlr/ReactiveCocoa,brightcove/ReactiveCocoa,tonyli508/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,Khan/ReactiveCocoa,calebd/ReactiveCocoa,Ethan89/ReactiveCocoa,loupman/ReactiveCocoa,llb1119/test,KuPai32G/ReactiveCocoa,itschaitanya/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,DreamHill/ReactiveCocoa,zhiwen1024/ReactiveCocoa,imkerberos/ReactiveCocoa,tzongw/ReactiveCocoa,chao95957/ReactiveCocoa,tonyarnold/ReactiveCocoa,valleyman86/ReactiveCocoa,JohnJin007/ReactiveCocoa,icepy/ReactiveCocoa,libiao88/ReactiveCocoa,towik/ReactiveCocoa,clg0118/ReactiveCocoa,tiger8888/ReactiveCocoa,Eveian/ReactiveCocoa,vincentiss/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,hilllinux/ReactiveCocoa,SuPair/ReactiveCocoa,natestedman/ReactiveCocoa,zhukaixy/ReactiveCocoa,natan/ReactiveCocoa,yytong/ReactiveCocoa,calebd/ReactiveCocoa,WEIBP/ReactiveCocoa,brasbug/ReactiveCocoa,natan/ReactiveCocoa,LHDsimon/ReactiveCocoa,lixar/ReactiveCocoa,paulyoung/ReactiveCocoa,on99/ReactiveCocoa,Rupert-RR/ReactiveCocoa,chao95957/ReactiveCocoa,FelixYin66/ReactiveCocoa,victorlin/ReactiveCocoa,eyu1988/ReactiveCocoa,andersio/ReactiveCocoa,kaylio/ReactiveCocoa,KuPai32G/ReactiveCocoa,natestedman/ReactiveCocoa,JackLian/ReactiveCocoa,tonyarnold/ReactiveCocoa,calebd/ReactiveCocoa,howandhao/ReactiveCocoa,stevielu/ReactiveCocoa,takeshineshiro/ReactiveCocoa,zhiwen1024/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,pzw224/ReactiveCocoa,fanghao085/ReactiveCocoa,jrmiddle/ReactiveCocoa,DreamHill/ReactiveCocoa,zzzworm/ReactiveCocoa,tzongw/ReactiveCocoa,xiaoliyang/ReactiveCocoa,FelixYin66/ReactiveCocoa,dachaoisme/ReactiveCocoa,Ray0218/ReactiveCocoa,kevin-zqw/ReactiveCocoa,alvinvarghese/ReactiveCocoa,JohnJin007/ReactiveCocoa,chieryw/ReactiveCocoa,dz1111/ReactiveCocoa,zhigang1992/ReactiveCocoa,andersio/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,Juraldinio/ReactiveCocoa,ailyanlu/ReactiveCocoa,tiger8888/ReactiveCocoa,JackLian/ReactiveCocoa,jianwoo/ReactiveCocoa,bscarano/ReactiveCocoa,cogddo/ReactiveCocoa,Khan/ReactiveCocoa,gengjf/ReactiveCocoa,brasbug/ReactiveCocoa,xiaobing2007/ReactiveCocoa,esttorhe/ReactiveCocoa,xumaolin/ReactiveCocoa,yoichitgy/ReactiveCocoa,takeshineshiro/ReactiveCocoa,dskatz22/ReactiveCocoa,wangqi211/ReactiveCocoa,yytong/ReactiveCocoa,jrmiddle/ReactiveCocoa,buildo/ReactiveCocoa,fhchina/ReactiveCocoa,Carthage/ReactiveCocoa,yonekawa/ReactiveCocoa,dullgrass/ReactiveCocoa,bscarano/ReactiveCocoa,FelixYin66/ReactiveCocoa,ShawnLeee/ReactiveCocoa,isghe/ReactiveCocoa,SanChain/ReactiveCocoa,ohwutup/ReactiveCocoa,AllanChen/ReactiveCocoa,liufeigit/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,yonekawa/ReactiveCocoa,jsslai/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,libiao88/ReactiveCocoa,rpowelll/ReactiveCocoa,valleyman86/ReactiveCocoa,mtxs007/ReactiveCocoa,luerhouhou/ReactiveCocoa,kevin-zqw/ReactiveCocoa,emodeqidao/ReactiveCocoa,esttorhe/ReactiveCocoa,zxq3220122/ReactiveCocoa,dskatz22/ReactiveCocoa,qq644531343/ReactiveCocoa,dskatz22/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,add715/ReactiveCocoa,xulibao/ReactiveCocoa,terry408911/ReactiveCocoa,on99/ReactiveCocoa,leichunfeng/ReactiveCocoa,llb1119/test,llb1119/test,nickcheng/ReactiveCocoa,ioshger0125/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,qq644531343/ReactiveCocoa,jackywpy/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,BlessNeo/ReactiveCocoa,nickcheng/ReactiveCocoa,jam891/ReactiveCocoa,Liquidsoul/ReactiveCocoa,cnbin/ReactiveCocoa,kiurentu/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,cstars135/ReactiveCocoa,xumaolin/ReactiveCocoa,sandyway/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,andersio/ReactiveCocoa,xiaobing2007/ReactiveCocoa,liufeigit/ReactiveCocoa,itschaitanya/ReactiveCocoa,ShawnLeee/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,buildo/ReactiveCocoa,Carthage/ReactiveCocoa,Ricowere/ReactiveCocoa,hoanganh6491/ReactiveCocoa,sujeking/ReactiveCocoa,Remitly/ReactiveCocoa,sugar2010/ReactiveCocoa,chao95957/ReactiveCocoa,jianwoo/ReactiveCocoa,Pingco/ReactiveCocoa,alvinvarghese/ReactiveCocoa,ceekayel/ReactiveCocoa,jaylib/ReactiveCocoa,smilypeda/ReactiveCocoa,beni55/ReactiveCocoa,ztchena/ReactiveCocoa,dz1111/ReactiveCocoa,icepy/ReactiveCocoa,sandyway/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,bencochran/ReactiveCocoa,WEIBP/ReactiveCocoa,walkingsmarts/ReactiveCocoa,almassapargali/ReactiveCocoa,tonyarnold/ReactiveCocoa,koamac/ReactiveCocoa,Juraldinio/ReactiveCocoa,richeterre/ReactiveCocoa,ddc391565320/ReactiveCocoa,Pikdays/ReactiveCocoa,smilypeda/ReactiveCocoa,Pikdays/ReactiveCocoa,zhenlove/ReactiveCocoa,bensonday/ReactiveCocoa,nikita-leonov/ReactiveCocoa,KJin99/ReactiveCocoa,AlanJN/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,zzzworm/ReactiveCocoa,zzqiltw/ReactiveCocoa,jaylib/ReactiveCocoa,ioshger0125/ReactiveCocoa,xulibao/ReactiveCocoa,chieryw/ReactiveCocoa,add715/ReactiveCocoa,howandhao/ReactiveCocoa,Rupert-RR/ReactiveCocoa,cnbin/ReactiveCocoa,hbucius/ReactiveCocoa,mxxiv/ReactiveCocoa,jaylib/ReactiveCocoa,Ethan89/ReactiveCocoa,zhaoguohui/ReactiveCocoa,jeelun/ReactiveCocoa,yizzuide/ReactiveCocoa,dz1111/ReactiveCocoa,hj3938/ReactiveCocoa,towik/ReactiveCocoa,towik/ReactiveCocoa,ioshger0125/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,stupidfive/ReactiveCocoa,jam891/ReactiveCocoa,gengjf/ReactiveCocoa,Pingco/ReactiveCocoa,fanghao085/ReactiveCocoa,tonyli508/ReactiveCocoa,JohnJin007/ReactiveCocoa,vincentiss/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,jackywpy/ReactiveCocoa,jeelun/ReactiveCocoa,zhukaixy/ReactiveCocoa,cstars135/ReactiveCocoa,cstars135/ReactiveCocoa,jam891/ReactiveCocoa,emodeqidao/ReactiveCocoa,jeelun/ReactiveCocoa,Ricowere/ReactiveCocoa,zzqiltw/ReactiveCocoa,WEIBP/ReactiveCocoa,zzqiltw/ReactiveCocoa,ailyanlu/ReactiveCocoa,pzw224/ReactiveCocoa,leelili/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,zhaoguohui/ReactiveCocoa,taylormoonxu/ReactiveCocoa,j364960953/ReactiveCocoa,hoanganh6491/ReactiveCocoa,monkeydbobo/ReactiveCocoa,yonekawa/ReactiveCocoa,hj3938/ReactiveCocoa,richeterre/ReactiveCocoa,tornade0913/ReactiveCocoa,mtxs007/ReactiveCocoa,Khan/ReactiveCocoa,kiurentu/ReactiveCocoa,OneSmallTree/ReactiveCocoa,huiping192/ReactiveCocoa,kevin-zqw/ReactiveCocoa,335g/ReactiveCocoa,richeterre/ReactiveCocoa,gabemdev/ReactiveCocoa,eyu1988/ReactiveCocoa,sugar2010/ReactiveCocoa,bencochran/ReactiveCocoa,SanChain/ReactiveCocoa,victorlin/ReactiveCocoa,zhenlove/ReactiveCocoa,mxxiv/ReactiveCocoa,cogddo/ReactiveCocoa,nickcheng/ReactiveCocoa,zhigang1992/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,yoichitgy/ReactiveCocoa,victorlin/ReactiveCocoa,longv2go/ReactiveCocoa,SuPair/ReactiveCocoa,hilllinux/ReactiveCocoa,add715/ReactiveCocoa,wangqi211/ReactiveCocoa,longv2go/ReactiveCocoa,tornade0913/ReactiveCocoa,SmartEncounter/ReactiveCocoa,mattpetters/ReactiveCocoa,huiping192/ReactiveCocoa,almassapargali/ReactiveCocoa,BrooksWon/ReactiveCocoa,xulibao/ReactiveCocoa,on99/ReactiveCocoa,200895045/ReactiveCocoa,mattpetters/ReactiveCocoa,paulyoung/ReactiveCocoa,leichunfeng/ReactiveCocoa,jrmiddle/ReactiveCocoa,ShawnLeee/ReactiveCocoa,wpstarnice/ReactiveCocoa,valleyman86/ReactiveCocoa,eliperkins/ReactiveCocoa,DreamHill/ReactiveCocoa,zxq3220122/ReactiveCocoa,Remitly/ReactiveCocoa,loupman/ReactiveCocoa,CQXfly/ReactiveCocoa,ddc391565320/ReactiveCocoa,zhukaixy/ReactiveCocoa,ohwutup/ReactiveCocoa,jackywpy/ReactiveCocoa,Rupert-RR/ReactiveCocoa,ikesyo/ReactiveCocoa,BlessNeo/ReactiveCocoa,imkerberos/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,Ricowere/ReactiveCocoa,stupidfive/ReactiveCocoa,zhaoguohui/ReactiveCocoa,Eveian/ReactiveCocoa,hoanganh6491/ReactiveCocoa,BrooksWon/ReactiveCocoa,LHDsimon/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,ailyanlu/ReactiveCocoa,KJin99/ReactiveCocoa,liufeigit/ReactiveCocoa,imkerberos/ReactiveCocoa,almassapargali/ReactiveCocoa,goodheart/ReactiveCocoa,esttorhe/ReactiveCocoa,windgo/ReactiveCocoa,libiao88/ReactiveCocoa,brasbug/ReactiveCocoa,esttorhe/ReactiveCocoa,LHDsimon/ReactiveCocoa,terry408911/ReactiveCocoa,sdhzwm/ReactiveCocoa,AllanChen/ReactiveCocoa,tipbit/ReactiveCocoa,j364960953/ReactiveCocoa,clg0118/ReactiveCocoa,bscarano/ReactiveCocoa,stevielu/ReactiveCocoa,Farteen/ReactiveCocoa,eliperkins/ReactiveCocoa,nikita-leonov/ReactiveCocoa,gengjf/ReactiveCocoa,rpowelll/ReactiveCocoa,Liquidsoul/ReactiveCocoa,cnbin/ReactiveCocoa,shaohung001/ReactiveCocoa,ikesyo/ReactiveCocoa,monkeydbobo/ReactiveCocoa,ztchena/ReactiveCocoa,stevielu/ReactiveCocoa,Ray0218/ReactiveCocoa,walkingsmarts/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,zxq3220122/ReactiveCocoa,hj3938/ReactiveCocoa,leelili/ReactiveCocoa,kaylio/ReactiveCocoa,Pingco/ReactiveCocoa,icepy/ReactiveCocoa,windgo/ReactiveCocoa,beni55/ReactiveCocoa,zhigang1992/ReactiveCocoa,zhenlove/ReactiveCocoa,Pikdays/ReactiveCocoa,200895045/ReactiveCocoa,natan/ReactiveCocoa,sandyway/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,ericzhou2008/ReactiveCocoa,mattpetters/ReactiveCocoa,Juraldinio/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,isghe/ReactiveCocoa,walkingsmarts/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,200895045/ReactiveCocoa,taylormoonxu/ReactiveCocoa,huiping192/ReactiveCocoa,chieryw/ReactiveCocoa,brightcove/ReactiveCocoa,cogddo/ReactiveCocoa,nikita-leonov/ReactiveCocoa,Ethan89/ReactiveCocoa,jaylib/ReactiveCocoa,lixar/ReactiveCocoa,dullgrass/ReactiveCocoa,AlanJN/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,stupidfive/ReactiveCocoa,wpstarnice/ReactiveCocoa,tipbit/ReactiveCocoa,bencochran/ReactiveCocoa,shaohung001/ReactiveCocoa,rpowelll/ReactiveCocoa,OneSmallTree/ReactiveCocoa,alvinvarghese/ReactiveCocoa,jsslai/ReactiveCocoa,koamac/ReactiveCocoa,nickcheng/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,kaylio/ReactiveCocoa,Carthage/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,Farteen/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,zhiwen1024/ReactiveCocoa,jsslai/ReactiveCocoa,dachaoisme/ReactiveCocoa,SmartEncounter/ReactiveCocoa,kiurentu/ReactiveCocoa,loupman/ReactiveCocoa,mtxs007/ReactiveCocoa,emodeqidao/ReactiveCocoa,sdhzwm/ReactiveCocoa,sujeking/ReactiveCocoa,leelili/ReactiveCocoa,ericzhou2008/ReactiveCocoa,takeshineshiro/ReactiveCocoa,qq644531343/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,AlanJN/ReactiveCocoa,ohwutup/ReactiveCocoa,yizzuide/ReactiveCocoa,Remitly/ReactiveCocoa,sugar2010/ReactiveCocoa,SuPair/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,Farteen/ReactiveCocoa,hbucius/ReactiveCocoa,dachaoisme/ReactiveCocoa,howandhao/ReactiveCocoa,CQXfly/ReactiveCocoa,tiger8888/ReactiveCocoa,JackLian/ReactiveCocoa,Eveian/ReactiveCocoa,dullgrass/ReactiveCocoa,yizzuide/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,eyu1988/ReactiveCocoa,CQXfly/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,Ricowere/ReactiveCocoa,koamac/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,longv2go/ReactiveCocoa,fanghao085/ReactiveCocoa,luerhouhou/ReactiveCocoa,BrooksWon/ReactiveCocoa,OneSmallTree/ReactiveCocoa,sujeking/ReactiveCocoa,fhchina/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,jianwoo/ReactiveCocoa,clg0118/ReactiveCocoa,SanChain/ReactiveCocoa,brightcove/ReactiveCocoa,xiaoliyang/ReactiveCocoa,ddc391565320/ReactiveCocoa,tonyli508/ReactiveCocoa,eliperkins/ReactiveCocoa,hilllinux/ReactiveCocoa,wpstarnice/ReactiveCocoa,isghe/ReactiveCocoa,windgo/ReactiveCocoa,Ray0218/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,shaohung001/ReactiveCocoa,hbucius/ReactiveCocoa,smilypeda/ReactiveCocoa,tornade0913/ReactiveCocoa,Liquidsoul/ReactiveCocoa,zzzworm/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,j364960953/ReactiveCocoa,beni55/ReactiveCocoa,yoichitgy/ReactiveCocoa,goodheart/ReactiveCocoa,xumaolin/ReactiveCocoa,fhchina/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,yytong/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,leichunfeng/ReactiveCocoa,goodheart/ReactiveCocoa,KuPai32G/ReactiveCocoa,gabemdev/ReactiveCocoa,itschaitanya/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,mxxiv/ReactiveCocoa,ericzhou2008/ReactiveCocoa,luerhouhou/ReactiveCocoa,tzongw/ReactiveCocoa,335g/ReactiveCocoa,bensonday/ReactiveCocoa,swizzlr/ReactiveCocoa,monkeydbobo/ReactiveCocoa,bensonday/ReactiveCocoa,xiaobing2007/ReactiveCocoa,xiaoliyang/ReactiveCocoa,wangqi211/ReactiveCocoa,sdhzwm/ReactiveCocoa,ceekayel/ReactiveCocoa,natestedman/ReactiveCocoa,ceekayel/ReactiveCocoa,vincentiss/ReactiveCocoa,lixar/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,BlessNeo/ReactiveCocoa,taylormoonxu/ReactiveCocoa,335g/ReactiveCocoa,ztchena/ReactiveCocoa,huiping192/ReactiveCocoa
|
c938227b9fcbf43d079bfd3a1e12244da2b3b73c
|
include/psp2/update.h
|
include/psp2/update.h
|
/**
* \usergroup{SceUpdateMgr}
* \usage{psp2/update.h,SceSblSsUpdateMgr_stub}
*/
#ifndef _PSP2_UPDATE_MGR_H_
#define _PSP2_UPDATE_MGR_H_
#include <psp2/types.h>
typedef char SceUpdateMode;
#define SCE_UPDATE_MODE_SWU_GUI 0x10
#define SCE_UPDATE_MODE_SWU_CUI 0x30
/**
* Getting system update mode on boot
*
* @param[out] mode - The pointer of SceUpdateMode variable
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsGetUpdateMode(SceUpdateMode *mode);
/**
* Setting system update mode on boot
*
* @param[in] mode - The update mode
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsSetUpdateMode(SceUpdateMode mode);
/**
* Verify PUP
*
* @param[in] path - The PUP path
*
* @return 0 on success, < 0 on error.
*
* note - If verify CEX PUP on Devkit system, got error.
*/
int sceSblUsVerifyPup(const char *path);
#endif /* _PSP2_UPDATE_MGR_H_ */
|
/**
* \usergroup{SceUpdateMgr}
* \usage{psp2/update.h,SceSblSsUpdateMgr_stub}
*/
#ifndef _PSP2_UPDATE_MGR_H_
#define _PSP2_UPDATE_MGR_H_
#include <psp2/types.h>
typedef char SceUpdateMode;
#define SCE_UPDATE_MODE_SWU_GUI 0x10
#define SCE_UPDATE_MODE_SWU_CUI 0x30
/**
* Getting system update mode on boot
*
* @param[out] mode - The pointer of SceUpdateMode variable
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsGetUpdateMode(SceUpdateMode *mode);
#define sceSblSsUpdateMgrGetBootMode sceSblUsGetUpdateMode
/**
* Setting system update mode on boot
*
* @param[in] mode - The update mode
*
* @return 0 on success, < 0 on error.
*/
int sceSblUsSetUpdateMode(SceUpdateMode mode);
#define sceSblSsUpdateMgrSetBootMode sceSblUsSetUpdateMode
/**
* Verify PUP
*
* @param[in] path - The PUP path
*
* @return 0 on success, < 0 on error.
*
* note - If verify CEX PUP on Devkit system, got error.
*/
int sceSblUsVerifyPup(const char *path);
#endif /* _PSP2_UPDATE_MGR_H_ */
|
Fix compatibility with some modules
|
Fix compatibility with some modules
|
C
|
mit
|
Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers
|
8969691343354bdd80eff5405a0f879edbf013d6
|
arch/x86/include/asm/jump_label.h
|
arch/x86/include/asm/jump_label.h
|
#ifndef _ASM_X86_JUMP_LABEL_H
#define _ASM_X86_JUMP_LABEL_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <asm/nops.h>
#define JUMP_LABEL_NOP_SIZE 5
# define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
# define JUMP_LABEL(key, label) \
do { \
asm goto("1:" \
JUMP_LABEL_INITIAL_NOP \
".pushsection __jump_table, \"a\" \n\t"\
_ASM_PTR "1b, %l[" #label "], %c0 \n\t" \
".popsection \n\t" \
: : "i" (key) : : label); \
} while (0)
#endif /* __KERNEL__ */
#ifdef CONFIG_X86_64
typedef u64 jump_label_t;
#else
typedef u32 jump_label_t;
#endif
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif
|
#ifndef _ASM_X86_JUMP_LABEL_H
#define _ASM_X86_JUMP_LABEL_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <asm/nops.h>
#define JUMP_LABEL_NOP_SIZE 5
# define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
# define JUMP_LABEL(key, label) \
do { \
asm goto("1:" \
JUMP_LABEL_INITIAL_NOP \
".pushsection __jump_table, \"aw\" \n\t"\
_ASM_PTR "1b, %l[" #label "], %c0 \n\t" \
".popsection \n\t" \
: : "i" (key) : : label); \
} while (0)
#endif /* __KERNEL__ */
#ifdef CONFIG_X86_64
typedef u64 jump_label_t;
#else
typedef u32 jump_label_t;
#endif
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif
|
Fix jump label with RO/NX module protection crash
|
x86: Fix jump label with RO/NX module protection crash
If we use jump table in module init, there are marked
as removed in __jump_table section after init is done.
But we already applied ro permissions on the module, so
we can't modify a read only section (crash in
remove_jump_label_module_init).
Make the __jump_table section rw.
Signed-off-by: Matthieu CASTET <2b6a54c52e56976a5646892b66a1a13421db0d2c@free.fr>
Cc: Xiaotian Feng <ac8085f9c424e98c8fe0d0e67b1c7a8a00757580@gmail.com>
Cc: Jason Baron <af9bd1db766a43cb09b647251c97dbddcd2e59dc@redhat.com>
Cc: Steven Rostedt <43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org>
Cc: Frederic Weisbecker <e8a1bf9163cb25e93cfd6540f223b3872ea7ee55@gmail.com>
Cc: Peter Zijlstra <645ca7d3a8d3d4f60557176cd361ea8351edc32b@chello.nl>
Cc: Arjan van de Ven <9043bf4b08f6c93a2cb55d98c3494b123858348f@linux.intel.com>
Cc: Siarhei Liakh <04848bc4c6728e62385922426cceead13c9e9458@gmail.com>
Cc: Xuxian Jiang <4e7b08952acae50abec9e06cac9ae2c424c73473@cs.ncsu.edu>
Cc: James Morris <10d11de3abc355eabe955bb734f0f8e71da56e16@namei.org>
Cc: Rusty Russell <df9728c9e5104131c08c7adb03af425394842596@rustcorp.com.au>
Cc: Dave Jones <d5ec0d24602845f6f4b6a35ef729998d1fba5507@redhat.com>
Cc: Kees Cook <e9b0cc8b545b1477b7cee8fbfcd6abb9c2d70cb5@canonical.com>
Cc: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
Cc: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
LKML-Reference: <839f467c9c1c781060a2c104d5ccbd3605c01c1a@free.fr>
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>
|
C
|
apache-2.0
|
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs
|
ff4f57f38db46266b15f843aa65fb4eada76d9de
|
mod_xinerama/ls_xinerama.c
|
mod_xinerama/ls_xinerama.c
|
#include <X11/Xlib.h>
#include <X11/extensions/Xinerama.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
Display *dpy = XOpenDisplay(NULL);
int xinerama_event_base;
int xinerama_error_base;
bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base);
if (!xinerama_ready)
fprintf(stderr, "No Xinerama support detected, mod_xinerama won't do anything.");
else {
int nRects,i;
XineramaScreenInfo* sInfo = XineramaQueryScreens(dpy, &nRects);
for(i = 0 ; i < nRects ; ++i) {
fprintf(stdout, "Screen %d: %dx%d+%d+%d\n", i, sInfo[i].width, sInfo[i].height, sInfo[i].x_org, sInfo[i].y_org);
}
}
return 0;
}
|
#include <X11/Xlib.h>
#include <X11/extensions/Xinerama.h>
#include <stdbool.h>
#include <stdio.h>
int main() {
Display *dpy = XOpenDisplay(NULL);
int xinerama_event_base;
int xinerama_error_base;
bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base);
fprintf(stdout, "Basic Xinerama screen information - for all the details run 'xdpyinfo -ext XINERAMA'\n");
if (!xinerama_ready)
fprintf(stderr, "No Xinerama support detected, mod_xinerama won't do anything.");
else {
int nRects,i;
XineramaScreenInfo* sInfo = XineramaQueryScreens(dpy, &nRects);
for(i = 0 ; i < nRects ; ++i) {
fprintf(stdout, "Screen %d: %dx%d+%d+%d\n", i, sInfo[i].width, sInfo[i].height, sInfo[i].x_org, sInfo[i].y_org);
}
}
return 0;
}
|
Document command to get even more details
|
Document command to get even more details
|
C
|
lgpl-2.1
|
knixeur/notion,neg-serg/notion,p5n/notion,dkogan/notion,raboof/notion,p5n/notion,dkogan/notion,p5n/notion,anoduck/notion,p5n/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,raboof/notion,anoduck/notion,raboof/notion,p5n/notion,raboof/notion,anoduck/notion,neg-serg/notion,knixeur/notion,dkogan/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,dkogan/notion.xfttest
|
627c29bd229a5fb302087c4360d461079b59df9d
|
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
|
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
|
/*
* Called by the Gradle CUnit launcher to register all CUnit tests.
*/
void gradle_cunit_register();
|
/*
* Called by the Gradle CUnit launcher to register all CUnit tests.
*/
void gradle_cunit_register();
|
Add newline to end of generated cunit header file
|
Add newline to end of generated cunit header file
|
C
|
apache-2.0
|
blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle
|
8b3bbb541d210883666ea58c21e0bd33de8ac96c
|
list.h
|
list.h
|
#include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
#endif
|
#include <stdlib.h>
#ifndef __LIST_H__
#define __LIST_H__
struct ListNode;
struct List;
typedef struct ListNode ListNode;
typedef struct List List;
List* List_Create(void);
void List_Destroy(List* l);
#endif
|
Add List destroy function declaration
|
Add List destroy function declaration
|
C
|
mit
|
MaxLikelihood/CADT
|
816bde39fe14670950bca6555adfb25d62aed147
|
chrome/nacl/nacl_broker_listener.h
|
chrome/nacl/nacl_broker_listener.h
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/common/nacl_types.h"
#include "ipc/ipc_channel.h"
// The BrokerThread class represents the thread that handles the messages from
// the browser process and starts NaCl loader processes.
class NaClBrokerListener : public IPC::Channel::Listener {
public:
NaClBrokerListener();
~NaClBrokerListener();
void Listen();
// IPC::Channel::Listener implementation.
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
private:
void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id);
void OnShareBrowserHandle(int browser_handle);
void OnStopBroker();
base::ProcessHandle browser_handle_;
scoped_ptr<IPC::Channel> channel_;
DISALLOW_COPY_AND_ASSIGN(NaClBrokerListener);
};
#endif // CHROME_NACL_NACL_BROKER_LISTENER_H_
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_
#define CHROME_NACL_NACL_BROKER_LISTENER_H_
#pragma once
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/common/nacl_types.h"
#include "ipc/ipc_channel.h"
// The BrokerThread class represents the thread that handles the messages from
// the browser process and starts NaCl loader processes.
class NaClBrokerListener : public IPC::Channel::Listener {
public:
NaClBrokerListener();
~NaClBrokerListener();
void Listen();
// IPC::Channel::Listener implementation.
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
private:
void OnLaunchLoaderThroughBroker(const std::wstring& loader_channel_id);
void OnStopBroker();
base::ProcessHandle browser_handle_;
scoped_ptr<IPC::Channel> channel_;
DISALLOW_COPY_AND_ASSIGN(NaClBrokerListener);
};
#endif // CHROME_NACL_NACL_BROKER_LISTENER_H_
|
Remove declaration of non-existent method
|
NaCl: Remove declaration of non-existent method
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9592039
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
|
C
|
bsd-3-clause
|
TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,keishi/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,hgl888/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,markYoungH/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,keishi/chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,markYoungH/chromium.src,robclark/chromium,jaruba/chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,ltilve/chromium,robclark/chromium,dednal/chromium.src,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ltilve/chromium,robclark/chromium,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,keishi/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,patrickm/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,Jonekee/chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,robclark/chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,Just-D/chromium-1,keishi/chromium,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,hujiajie/pa-chromium,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,Just-D/chromium-1,Just-D/chromium-1,patrickm/chromium.src,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,robclark/chromium,Jonekee/chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,ltilve/chromium,Just-D/chromium-1,bright-sparks/chromium-spacewalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,rogerwang/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,ltilve/chromium,patrickm/chromium.src,keishi/chromium,Jonekee/chromium.src,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,keishi/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,M4sse/chromium.src,littlstar/chromium.src,rogerwang/chromium,dednal/chromium.src,ChromiumWebApps/chromium,keishi/chromium,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,nacl-webkit/chrome_deps,Chilledheart/chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,anirudhSK/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,robclark/chromium,dushu1203/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,patrickm/chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,pozdnyakov/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,robclark/chromium,dednal/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,jaruba/chromium.src,keishi/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dednal/chromium.src,ChromiumWebApps/chromium,jaruba/chromium.src,jaruba/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,Just-D/chromium-1,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,keishi/chromium,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,robclark/chromium,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,patrickm/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,dednal/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,rogerwang/chromium,fujunwei/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,rogerwang/chromium,krieger-od/nwjs_chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,Jonekee/chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,patrickm/chromium.src,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,littlstar/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl
|
be9a42d018015f8c8a2037884a9bfa1e1a240676
|
src/chemkit/vector3.h
|
src/chemkit/vector3.h
|
/******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** chemkit is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with chemkit. If not, see <http://www.gnu.org/licenses/>.
**
******************************************************************************/
#ifndef CHEMKIT_VECTOR3_H
#define CHEMKIT_VECTOR3_H
#include "chemkit.h"
#include "genericvector.h"
namespace chemkit {
/// A three-dimensional vector.
typedef GenericVector<Float> Vector3;
typedef GenericVector<float> Vector3f;
typedef GenericVector<double> Vector3d;
} // end chemkit namespace
#endif // CHEMKIT_VECTOR3_H
|
/******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** chemkit is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with chemkit. If not, see <http://www.gnu.org/licenses/>.
**
******************************************************************************/
#ifndef CHEMKIT_VECTOR3_H
#define CHEMKIT_VECTOR3_H
#include "chemkit.h"
#include "genericvector.h"
namespace chemkit {
/// A three-dimensional vector.
typedef GenericVector<Float> Vector3;
/// A three-dimensional vector containing \c float values.
typedef GenericVector<float> Vector3f;
/// A three-dimensional vector containing \c double values.
typedef GenericVector<double> Vector3d;
} // end chemkit namespace
#endif // CHEMKIT_VECTOR3_H
|
Add documentation to Vector3 typedefs
|
Add documentation to Vector3 typedefs
This adds documentation for the Vector3f and Vector3d
typedefs.
|
C
|
bsd-3-clause
|
kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit
|
37267bfe7ecf46ce3a37b1156c51c6076815c16f
|
src/platform/assert.h
|
src/platform/assert.h
|
// Copyright (c) 2015, the scalloc project authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_PLATFORM_ASSERT_H_
#define SCALLOC_PLATFORM_ASSERT_H_
#include "log.h"
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
private: \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
private: \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)
#define DISALLOW_ALLOCATION() \
public: \
void operator delete(void* pointer) { \
UNREACHABLE(); \
} \
private: \
void* operator new(size_t size);
#define QUOTEME(x) #x
#ifdef DEBUG
#define ScallocAssert(c) do { \
if (!(c)) { \
Fatal("assertion failed: " QUOTEME((c))); \
} \
} while (0)
#else // !DEBUG
#define ScallocAssert(c) do { \
} while (0)
#endif // DEBUG
#define UNREACHABLE() \
Fatal("unreachable code segment");
#endif // SCALLOC_PLATFORM_ASSERT_H_
|
// Copyright (c) 2015, the scalloc project authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_PLATFORM_ASSERT_H_
#define SCALLOC_PLATFORM_ASSERT_H_
#include "log.h"
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
private: \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
private: \
TypeName(); \
DISALLOW_COPY_AND_ASSIGN(TypeName)
#define DISALLOW_ALLOCATION() \
public: \
void operator delete(void* pointer) { \
UNREACHABLE(); \
} \
private: \
void* operator new(size_t size);
#define QUOTEME(x) #x
#ifdef DEBUG
#define ScallocAssert(c) do { \
if (!(c)) { \
Fatal("assertion failed: " QUOTEME((c))); \
} \
} while (0)
#else // !DEBUG
#define ScallocAssert(c) do { \
if (c) {} \
} while (0)
#endif // DEBUG
#define UNREACHABLE() \
Fatal("unreachable code segment");
#endif // SCALLOC_PLATFORM_ASSERT_H_
|
Allow ScallocAssert() to be used in Release code
|
Allow ScallocAssert() to be used in Release code
|
C
|
bsd-2-clause
|
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
|
4319688dfb39444d9edcc384e4c56977967cda4b
|
src/includes/kernel/util.h
|
src/includes/kernel/util.h
|
/**
arm-016-util.h
*/
#ifndef RPI_UTIL_H
#define RPI_UTIL_H
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCREEN_DEPTH 24 /* 16 or 32-bit */
#define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */
#include <math.h>
typedef struct {
float r;
float g;
float b;
float a;
} colour_t;
extern void setColor(volatile unsigned char* fb, colour_t pixel, long x, long y, long pitch);
int * getCoordinates();
double scale_to_x_origin(int);
int scale_to_y_pixel(double);
#endif
|
/**
arm-016-util.h
*/
#ifndef RPI_UTIL_H
#define RPI_UTIL_H
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define SCREEN_DEPTH 24 /* 16 or 32-bit */
#define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */
#include <math.h>
#include <stdlib.h>
typedef struct {
float r;
float g;
float b;
float a;
} colour_t;
extern void setColor(volatile unsigned char* fb, colour_t pixel, long x, long y, long pitch);
extern int * getCoordinates();
extern double scale_to_x_origin(int);
extern int scale_to_y_pixel(double);
#endif
|
Include stdlib.h and changed function declaration to extern
|
Include stdlib.h and changed function declaration to extern
|
C
|
mit
|
Neo-Desktop/bare-metal-pi,Neo-Desktop/bare-metal-pi
|
362fb9e62b878adae788b3120608418da057d522
|
arch/arm/core/irq_offload.c
|
arch/arm/core/irq_offload.c
|
/*
* Copyright (c) 2015 Intel corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file Software interrupts utility code - ARM implementation
*/
#include <nanokernel.h>
#include <irq_offload.h>
static irq_offload_routine_t offload_routine;
static void *offload_param;
/* Called by __svc */
void _irq_do_offload(void)
{
offload_routine(offload_param);
}
void irq_offload(irq_offload_routine_t routine, void *parameter)
{
int key;
key = irq_lock();
offload_routine = routine;
offload_param = parameter;
__asm__ volatile ("svc #1");
irq_unlock(key);
}
|
/*
* Copyright (c) 2015 Intel corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file Software interrupts utility code - ARM implementation
*/
#include <nanokernel.h>
#include <irq_offload.h>
static irq_offload_routine_t offload_routine;
static void *offload_param;
/* Called by __svc */
void _irq_do_offload(void)
{
offload_routine(offload_param);
}
void irq_offload(irq_offload_routine_t routine, void *parameter)
{
int key;
key = irq_lock();
offload_routine = routine;
offload_param = parameter;
__asm__ volatile ("svc #1" : : : "memory");
irq_unlock(key);
}
|
Fix irq offload inline asm memory ordering.
|
arm: Fix irq offload inline asm memory ordering.
Add a "memory" clobber to inline asm SVC call to ensure the compiler
does not reorder the instruction relative to other memory accesses.
Issue found by inspect the source code. There is no evidence to
suggest that this bug will manifest for any current ARM target using a
current compiler.
Change-Id: I32b1e5ede02a6dbea02bb8f98729fff1cca1ef2a
Signed-off-by: Marcus Shawcroft <cf6354583ee83038f2010cbcbe1b1f2adb85107d@arm.com>
|
C
|
apache-2.0
|
punitvara/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,Vudentz/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,ldts/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,kraj/zephyr,runchip/zephyr-cc3200,nashif/zephyr,runchip/zephyr-cc3220,kraj/zephyr,bigdinotech/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,rsalveti/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,bboozzoo/zephyr,bboozzoo/zephyr,bboozzoo/zephyr,zephyriot/zephyr,nashif/zephyr,bigdinotech/zephyr,mbolivar/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,fbsder/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,GiulianoFranchetto/zephyr,tidyjiang8/zephyr-doc,zephyriot/zephyr,erwango/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,pklazy/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3200,pklazy/zephyr,punitvara/zephyr,punitvara/zephyr,kraj/zephyr,galak/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,pklazy/zephyr,tidyjiang8/zephyr-doc,ldts/zephyr,pklazy/zephyr,Vudentz/zephyr,erwango/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,holtmann/zephyr,mbolivar/zephyr,galak/zephyr,holtmann/zephyr,kraj/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,fbsder/zephyr,sharronliu/zephyr,zephyriot/zephyr,bigdinotech/zephyr,finikorg/zephyr,erwango/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,sharronliu/zephyr,nashif/zephyr,explora26/zephyr,fbsder/zephyr,rsalveti/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,rsalveti/zephyr,holtmann/zephyr,Vudentz/zephyr,explora26/zephyr,Vudentz/zephyr,ldts/zephyr,runchip/zephyr-cc3220,Vudentz/zephyr,Vudentz/zephyr,erwango/zephyr,tidyjiang8/zephyr-doc,bboozzoo/zephyr,mbolivar/zephyr,nashif/zephyr,finikorg/zephyr,explora26/zephyr,galak/zephyr,mbolivar/zephyr,sharronliu/zephyr,pklazy/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,kraj/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,fractalclone/zephyr-riscv,finikorg/zephyr,fbsder/zephyr,zephyriot/zephyr,rsalveti/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,mbolivar/zephyr,galak/zephyr,rsalveti/zephyr,sharronliu/zephyr,ldts/zephyr,zephyriot/zephyr,galak/zephyr,fractalclone/zephyr-riscv,tidyjiang8/zephyr-doc
|
b0a84087556b24b9fa76306a80ed7fb59f2dac11
|
dtool/src/parser-inc/stdtypedefs.h
|
dtool/src/parser-inc/stdtypedefs.h
|
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file stdtypedefs.h
* @author drose
* @date 2000-05-12
*/
// This file, and all the other files in this directory, aren't
// intended to be compiled--they're just parsed by CPPParser (and
// interrogate) in lieu of the actual system headers, to generate the
// interrogate database.
#ifndef STDTYPEDEFS_H
#define STDTYPEDEFS_H
typedef long time_t;
typedef long clock_t;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
inline namespace std {
#ifdef _WIN64
typedef unsigned long long size_t;
typedef long long ssize_t;
typedef long long ptrdiff_t;
#else
typedef unsigned long size_t;
typedef long ssize_t;
typedef long ptrdiff_t;
#endif
}
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((void *)0)
#endif
// One day, we might extend interrogate to be able to parse this,
// but we currently don't need it.
#define alignas(x)
#endif
|
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file stdtypedefs.h
* @author drose
* @date 2000-05-12
*/
// This file, and all the other files in this directory, aren't
// intended to be compiled--they're just parsed by CPPParser (and
// interrogate) in lieu of the actual system headers, to generate the
// interrogate database.
#ifndef STDTYPEDEFS_H
#define STDTYPEDEFS_H
typedef long time_t;
typedef long clock_t;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
inline namespace std {
#ifdef _WIN64
typedef unsigned long long size_t;
typedef long long ssize_t;
typedef long long ptrdiff_t;
#else
typedef unsigned long size_t;
typedef long ssize_t;
typedef long ptrdiff_t;
#endif
}
struct timeval;
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((void *)0)
#endif
// One day, we might extend interrogate to be able to parse this,
// but we currently don't need it.
#define alignas(x)
#endif
|
Fix issue with Windows build
|
Fix issue with Windows build
|
C
|
bsd-3-clause
|
chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,grimfang/panda3d,chandler14362/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,grimfang/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d
|
c960766f51d6ad7069f2ef0084f2f31fbdf20365
|
igor/parser/DEIgorParserException.h
|
igor/parser/DEIgorParserException.h
|
@interface DEIgorParserException : NSObject
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
|
@interface DEIgorParserException : NSException
+ (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner;
@end
|
Make Igor parser exception extend NSParserException
|
Make Igor parser exception extend NSParserException
|
C
|
mit
|
dhemery/igor,dhemery/igor,dhemery/igor
|
a302b82b8de5a2427baec8257b023fb65f9cd607
|
test/functionalities/process_attach/main.c
|
test/functionalities/process_attach/main.c
|
#include <stdio.h>
#include <unistd.h>
int main(int argc, char const *argv[]) {
// Waiting to be attached by the debugger.
int temp = 0;
while (temp < 30) // Waiting to be attached...
{
sleep(1);
temp++;
}
printf("Exiting now\n");
}
|
#include <stdio.h>
#include <unistd.h>
#if defined(__linux__)
#include <sys/prctl.h>
#endif
int main(int argc, char const *argv[]) {
int temp;
#if defined(__linux__)
// Immediately enable any ptracer so that we can allow the stub attach
// operation to succeed. Some Linux kernels are locked down so that
// only an ancestor process can be a ptracer of a process. This disables that
// restriction. Without it, attach-related stub tests will fail.
#if defined(PR_SET_PTRACER) && defined(PR_SET_PTRACER_ANY)
int prctl_result;
// For now we execute on best effort basis. If this fails for
// some reason, so be it.
prctl_result = prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0);
(void) prctl_result;
#endif
#endif
// Waiting to be attached by the debugger.
temp = 0;
while (temp < 30) // Waiting to be attached...
{
sleep(1);
temp++;
}
printf("Exiting now\n");
}
|
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local.
|
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220660 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
|
e88be22a0b19d365c3c20d45b50da8af88fd6960
|
static_ar_param.c
|
static_ar_param.c
|
int f(int x[static volatile /*const*/ 10])
{
return *++x;
}
main()
{
int x[5];
x[1] = 2;
f(x);
//int y[1];
//int *y;
//#define y (void *)0
//pipe(y);
}
|
int f(int x[static /*const*/ 10])
{
return *++x;
}
main()
{
int x[5];
x[1] = 2;
f(x);
//int y[1];
//int *y;
//#define y (void *)0
//pipe(y);
}
|
Remove volatile from test (decl_equal doesn't check properly for now)
|
Remove volatile from test (decl_equal doesn't check properly for now)
|
C
|
mit
|
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
|
68772ba85b158325b82743a9df55d583cc547c48
|
bpf/netdev_config.h
|
bpf/netdev_config.h
|
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2016-2020 Authors of Cilium */
/*
* This is just a dummy header with dummy values to allow for test
* compilation without the full code generation engine backend.
*/
#define DROP_NOTIFY
#ifndef SKIP_DEBUG
#define DEBUG
#endif
#define ENCAP_IFINDEX 1
#define SECLABEL 2
#define SECLABEL_NB 0xfffff
|
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2016-2020 Authors of Cilium */
/*
* This is just a dummy header with dummy values to allow for test
* compilation without the full code generation engine backend.
*/
#define DROP_NOTIFY
#ifndef SKIP_DEBUG
#define DEBUG
#endif
#define ENCAP_IFINDEX 1
#define SECLABEL 2
#define SECLABEL_NB 0xfffff
#define CALLS_MAP test_cilium_calls_65535
|
Replace CALLS_MAP symbol in compile-tested binaries
|
bpf: Replace CALLS_MAP symbol in compile-tested binaries
Because we don't define CALLS_MAP for several programs, the binaries end
up with 'CALLS_MAP' as the actual map name:
$ for f in $(ls bpf/*.o); do ( readelf -s $f | grep -q CALLS_MAP ) && echo $f; done
bpf/bpf_alignchecker.o
bpf/bpf_network.o
bpf/bpf_overlay.o
bpf/bpf_xdp.o
That can lead to warnings when trying to load the programs with
test/bpf/verifier-test.sh. This commit fixes it.
$ for f in $(ls bpf/*.o); do ( readelf -s $f | grep -q CALLS_MAP ) && echo $f; done
bpf/bpf_alignchecker.o
Signed-off-by: Paul Chaignon <a027184a55211cd23e3f3094f1fdc728df5e0500@cilium.io>
|
C
|
apache-2.0
|
cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,tklauser/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,tklauser/cilium,michi-covalent/cilium,tklauser/cilium
|
f7c7267e99a50ece23ff4db05e6fdb5aead0fdbe
|
test/cpp-raw/os.h
|
test/cpp-raw/os.h
|
#define INTERCOM_FLATTEN_DECLARATIONS
#include <intercom.h>
#include "../../intercom-cpp/src/msdef.h"
// Interface definitions.
#ifdef _MSC_VER
#include "msvc/import.h"
#endif
// Platform specific runtime initialization.
void InitializeRuntime();
// Platform specific runtime uninitialization.
void UninitializeRuntime();
// Create Intercom object instance.
HRESULT CreateInstance( REFCLSID clsid, REFIID iid, void** pout );
// Create Intercom object instance.
template <class TInterface>
HRESULT CreateInstance( REFCLSID clsid, REFIID iid, TInterface** pout )
{
return CreateInstance( clsid, iid, reinterpret_cast< void** >( pout ) );
}
|
// Interface definitions.
#ifdef _MSC_VER
#include "msvc/import.h"
#else
// Include declarations on non-Windows platforms.
#define INTERCOM_FLATTEN_DECLARATIONS
#include <intercom.h>
#include "../../intercom-cpp/src/msdef.h"
#endif
// Platform specific runtime initialization.
void InitializeRuntime();
// Platform specific runtime uninitialization.
void UninitializeRuntime();
// Create Intercom object instance.
HRESULT CreateInstance( REFCLSID clsid, REFIID iid, void** pout );
// Create Intercom object instance.
template <class TInterface>
HRESULT CreateInstance( REFCLSID clsid, REFIID iid, TInterface** pout )
{
return CreateInstance( clsid, iid, reinterpret_cast< void** >( pout ) );
}
|
Include specific declarations only on ńon-Windows platform
|
Include specific declarations only on ńon-Windows platform
The "intercom.h" is not currently visible on Windows build chain.
|
C
|
mit
|
Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs
|
a9f39225c5502b7d8948dc195292db80a5814834
|
src/ent.c
|
src/ent.c
|
#include <ent/ent.h>
#if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE)
# include <unistd.h>
# define getentropy_impl getentropy
#elif defined __APPLE__ && defined __MACH__
# include <sys/random.h>
# define getentropy_impl getentropy
#else
# error "Port: getentropy unimplemented"
#endif
int
ent_getentropy(void *buf, size_t buflen)
{
return getentropy_impl(buf, buflen);
}
|
#include <ent/ent.h>
#if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE)
# include <unistd.h>
# define getentropy_impl getentropy
#elif defined __APPLE__ && defined __MACH__
# include <unistd.h>
# include <sys/random.h>
# define getentropy_impl getentropy
#else
# error "Port: getentropy unimplemented"
#endif
int
ent_getentropy(void *buf, size_t buflen)
{
return getentropy_impl(buf, buflen);
}
|
Fix build on OS X
|
Fix build on OS X
|
C
|
mit
|
jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,ngzax/urbit,urbit/urbit,ngzax/urbit,jfranklin9000/urbit
|
facd3c72a46b2a62ec347a1527583abc2bd529ab
|
block.h
|
block.h
|
#ifndef BLOCK_PAGE_SIZE
# define BLOCK_PAGE_SIZE 65536
#endif
#include <stddef.h>
struct block {
void **pages;
size_t *offsets;
size_t count;
size_t size;
};
struct block *block_new(void);
void block_free(struct block*);
void *block_alloc(struct block*, size_t bytes);
|
#ifndef BLOCK_PAGE_SIZE
# define BLOCK_PAGE_SIZE 4096
#endif
#include <stddef.h>
struct block {
void **pages;
size_t *offsets;
size_t count;
size_t size;
};
struct block *block_new(void);
void block_free(struct block*);
void *block_alloc(struct block*, size_t bytes);
|
Use 4KB as the default page size
|
Use 4KB as the default page size
|
C
|
mit
|
chriso/intern
|
ce976a1d0bfd1679fd9eef466f993216e88dc7e5
|
ann.c
|
ann.c
|
#include <stdio.h>
#define INPUTS 3
#define HIDDEN 5
#define OUTPUTS 2
#define ROWS 5
typedef struct {
double input[HIDDEN][INPUTS];
double hidden[ROWS - 3][HIDDEN][HIDDEN];
double output[OUTPUTS][HIDDEN];
} Links;
typedef struct {
int input[INPUTS];
int hidden[HIDDEN];
int output[OUTPUTS];
} Neurons;
typedef struct {
Links weights;
Neurons values;
} ANN;
int main(void)
{
return 0;
}
|
#include <stdio.h>
#define INPUTS 3
#define HIDDEN 5
#define OUTPUTS 2
#define ROWS 5
typedef struct {
double input[HIDDEN][INPUTS];
double hidden[ROWS - 3][HIDDEN][HIDDEN];
double output[OUTPUTS][HIDDEN];
} Links;
typedef struct {
int input[INPUTS];
int hidden[ROWS - 3][HIDDEN];
int output[OUTPUTS];
} Neurons;
typedef struct {
Links weights;
Neurons values;
} ANN;
int main(void)
{
return 0;
}
|
Fix Neurons struct so that hidden is 2D
|
Fix Neurons struct so that hidden is 2D
|
C
|
mit
|
tysonzero/c-ann
|
169dc7b8de2f347edb54ce9007cfbf1c551be33a
|
Settings/Display.h
|
Settings/Display.h
|
#pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
private:
virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId);
virtual DLGPROC Notification(NMHDR *nHdr);
virtual void Initialize();
virtual void LoadSettings();
void OnPositionChanged();
void OnCustomCheckChanged();
void OnAnimationChanged();
private:
/* Controls: */
Checkbox _onTop;
Checkbox _hideFullscreen;
ComboBox _position;
Label _customX;
EditBox _positionX;
Label _customY;
EditBox _positionY;
Checkbox _customDistance;
Spinner _edgeSpinner;
Label _displayDevLabel;
ComboBox _displayDevice;
ComboBox _animation;
Label _hideDelayLabel;
Spinner _hideDelay;
Label _hideSpeedLabel;
Spinner _hideSpeed;
private:
/* Constants: */
const int MIN_EDGE = -65535;
const int MAX_EDGE = 65535;
const int MIN_MS = USER_TIMER_MINIMUM;
const int MAX_MS = 60000;
};
|
#pragma once
#include "Tab.h"
class Display : public Tab {
public:
virtual void SaveSettings();
private:
virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId);
virtual DLGPROC Notification(NMHDR *nHdr);
virtual void Initialize();
virtual void LoadSettings();
void OnPositionChanged();
void OnCustomCheckChanged();
void OnAnimationChanged();
private:
/* Controls: */
Checkbox _onTop;
Checkbox _hideFullscreen;
ComboBox _position;
Label _customX;
EditBox _positionX;
Label _customY;
EditBox _positionY;
Checkbox _customDistance;
Spinner _edgeSpinner;
Label _displayDevLabel;
ComboBox _displayDevice;
ComboBox _animation;
Label _hideDelayLabel;
Spinner _hideDelay;
Label _hideSpeedLabel;
Spinner _hideSpeed;
private:
/* Strings: */
std::wstring primaryMonitorStr = L"Primary Monitor";
std::wstring allMonitorStr = L"All Monitors";
std::wstring customPositionStr = L"Custom";
std::wstring noAnimStr = L"None";
private:
/* Constants: */
const int MIN_EDGE = -65535;
const int MAX_EDGE = 65535;
const int MIN_MS = USER_TIMER_MINIMUM;
const int MAX_MS = 60000;
};
|
Add strings (will be used for translation)
|
Add strings (will be used for translation)
|
C
|
bsd-2-clause
|
Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX
|
280ced6bd1aebd62b1288b3b55f70fe1d00e3b2f
|
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 94
#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 95
#endif
|
Update Skia milestone to 95
|
Update Skia milestone to 95
Change-Id: I17a6adf5f14cfc160c13a2341453e9767ab39f0a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/439158
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
|
C
|
bsd-3-clause
|
aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia
|
673ab60ceb8dbb42bebd52241178741a57f5f7a0
|
main.c
|
main.c
|
int main() {
printf("Hello World!\n");
return 0;
}
|
#include <bwio.h>
int main() {
bwsetfifo(COM2, OFF);
bwprintf(COM2, "Hello World!\n");
return 0;
}
|
Add Makefile, bwio lib, headers and compile script
|
Add Makefile, bwio lib, headers and compile script
|
C
|
mit
|
gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel
|
204927c50f6ca2549092e422fe5377ae3aae1b63
|
Files/VelibModel.h
|
Files/VelibModel.h
|
//
// Velib.h
// Bicyclette
//
// Created by Nicolas on 09/10/10.
// Copyright 2010 Nicolas Bouilleaud. All rights reserved.
//
#import "CoreDataManager.h"
#import <MapKit/MapKit.h>
#define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto"
#define kVelibStationsStatusURL @"http://www.velib.paris.fr/service/stationdetails/"
/****************************************************************************/
#pragma mark -
@class Station;
@class DataUpdater;
@interface VelibModel : CoreDataManager
@property (nonatomic, retain, readonly) DataUpdater * updater;
@property (readonly) BOOL updatingXML;
@property (readonly, nonatomic) MKCoordinateRegion regionContainingData;
@property (readonly, nonatomic, retain) CLRegion * hardcodedLimits;
@end
// reverse link to obtain the CoreDataManager from a moc, for example in the objects implementation.
@interface NSManagedObjectContext (AssociatedModel)
@property (nonatomic, retain, readonly) VelibModel * model;
@end
|
//
// Velib.h
// Bicyclette
//
// Created by Nicolas on 09/10/10.
// Copyright 2010 Nicolas Bouilleaud. All rights reserved.
//
#import "CoreDataManager.h"
#import <MapKit/MapKit.h>
#define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto"
#define kVelibStationsStatusURL @"http://www.velib.paris.fr/service/stationdetails/paris/"
/****************************************************************************/
#pragma mark -
@class Station;
@class DataUpdater;
@interface VelibModel : CoreDataManager
@property (nonatomic, retain, readonly) DataUpdater * updater;
@property (readonly) BOOL updatingXML;
@property (readonly, nonatomic) MKCoordinateRegion regionContainingData;
@property (readonly, nonatomic, retain) CLRegion * hardcodedLimits;
@end
// reverse link to obtain the CoreDataManager from a moc, for example in the objects implementation.
@interface NSManagedObjectContext (AssociatedModel)
@property (nonatomic, retain, readonly) VelibModel * model;
@end
|
Fix stations details request url (webservices were updated)
|
Fix stations details request url (webservices were updated)
|
C
|
bsd-2-clause
|
durvalrafael/Bicyclette,n-b/Bicyclette,durvalrafael/Bicyclette,n-b/Bicyclette
|
265bbe4f8fed33baff0f6340ac0f36965b2f24ed
|
src/gba/renderers/video-software.h
|
src/gba/renderers/video-software.h
|
#ifndef VIDEO_SOFTWARE_H
#define VIDEO_SOFTWARE_H
#include "gba-video.h"
#include <pthread.h>
struct GBAVideoSoftwareRenderer {
struct GBAVideoRenderer d;
uint16_t* outputBuffer;
unsigned outputBufferStride;
union GBARegisterDISPCNT dispcnt;
pthread_mutex_t mutex;
pthread_cond_t cond;
};
void GBAVideoSoftwareRendererCreate(struct GBAVideoSoftwareRenderer* renderer);
#endif
|
#ifndef VIDEO_SOFTWARE_H
#define VIDEO_SOFTWARE_H
#include "gba-video.h"
#include <pthread.h>
struct GBAVideoSoftwareBackground {
int index;
int enabled;
int priority;
uint32_t charBase;
int mosaic;
int multipalette;
uint32_t screenBase;
int overflow;
int size;
uint16_t x;
uint16_t y;
uint32_t refx;
uint32_t refy;
uint16_t dx;
uint16_t dmx;
uint16_t dy;
uint16_t dmy;
uint32_t sx;
uint32_t sy;
};
struct GBAVideoSoftwareRenderer {
struct GBAVideoRenderer d;
uint16_t* outputBuffer;
unsigned outputBufferStride;
union GBARegisterDISPCNT dispcnt;
struct GBAVideoSoftwareBackground bg[4];
pthread_mutex_t mutex;
pthread_cond_t cond;
};
void GBAVideoSoftwareRendererCreate(struct GBAVideoSoftwareRenderer* renderer);
#endif
|
Add struct for keeping track of background state
|
Add struct for keeping track of background state
|
C
|
mpl-2.0
|
Anty-Lemon/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,Iniquitatis/mgba,Touched/mgba,askotx/mgba,Anty-Lemon/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,jeremyherbert/mgba,askotx/mgba,askotx/mgba,fr500/mgba,AdmiralCurtiss/mgba,fr500/mgba,matthewbauer/mgba,Anty-Lemon/mgba,bentley/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,mgba-emu/mgba,jeremyherbert/mgba,libretro/mgba,cassos/mgba,cassos/mgba,sergiobenrocha2/mgba,iracigt/mgba,zerofalcon/mgba,iracigt/mgba,Touched/mgba,libretro/mgba,jeremyherbert/mgba,nattthebear/mgba,MerryMage/mgba,iracigt/mgba,zerofalcon/mgba,fr500/mgba,sergiobenrocha2/mgba,matthewbauer/mgba,askotx/mgba,MerryMage/mgba,AdmiralCurtiss/mgba,libretro/mgba,cassos/mgba,iracigt/mgba,jeremyherbert/mgba,MerryMage/mgba,bentley/mgba,libretro/mgba,AdmiralCurtiss/mgba,nattthebear/mgba,Iniquitatis/mgba,Anty-Lemon/mgba,mgba-emu/mgba,Touched/mgba,sergiobenrocha2/mgba,Iniquitatis/mgba,zerofalcon/mgba
|
7558b9540b6c51b9822c63bbbdf42da282b1a7c1
|
src/include/cynara-creds-commons.h
|
src/include/cynara-creds-commons.h
|
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd 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
*/
/*
* @file cynara-creds-commons.h
* @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
* @version 1.0
* @brief This file contains common APIs for Cynara credentials helper.
*/
#ifndef CYNARA_CREDS_COMMONS_H
#define CYNARA_CREDS_COMMONS_H
#ifdef __cplusplus
extern "C" {
#endif
/* empty initial file */
#ifdef __cplusplus
}
#endif
#endif /* CYNARA_CREDS_COMMONS_H */
|
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd 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
*/
/*
* @file cynara-creds-commons.h
* @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
* @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
* @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
* @version 1.0
* @brief This file contains common APIs for Cynara credentials helper.
*/
#ifndef CYNARA_CREDS_COMMONS_H
#define CYNARA_CREDS_COMMONS_H
enum cynara_client_creds {
CLIENT_METHOD_SMACK,
CLIENT_METHOD_PID
};
enum cynara_user_creds {
USER_METHOD_UID,
USER_METHOD_GID
};
#ifdef __cplusplus
extern "C" {
#endif
/* empty initial file */
#ifdef __cplusplus
}
#endif
#endif /* CYNARA_CREDS_COMMONS_H */
|
Add enums for credentials acquire methods
|
Add enums for credentials acquire methods
Change-Id: I5719a7622a78ae6d1ca86a7dcce986c69abb3e23
|
C
|
apache-2.0
|
Samsung/cynara,Samsung/cynara,pohly/cynara,pohly/cynara,pohly/cynara,Samsung/cynara
|
9c48a952435797ead8239b7e0c9d5eeda1d7f999
|
lib/libmid/errstr.c
|
lib/libmid/errstr.c
|
#include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz + 1];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vsnprintf(curerr, Bufsz + 1, fmt, ap);
va_end(ap);
}
const char *miderrstr(void){
int err = errno;
if (curerr[0] != '\0') {
static char retbuf[Bufsz + 1];
strncpy(retbuf, curerr, Bufsz);
retbuf[Bufsz] = '\0';
curerr[0] = '\0';
return retbuf;
}
const char *e = SDL_GetError();
if(e[0] != '\0')
return e;
return strerror(err);
}
|
#include "../../include/mid.h"
#include <SDL/SDL_error.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
enum { Bufsz = 1024 };
static char curerr[Bufsz];
void seterrstr(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vsnprintf(curerr, Bufsz, fmt, ap);
va_end(ap);
}
const char *miderrstr(void){
int err = errno;
if (curerr[0] != '\0') {
static char retbuf[Bufsz];
strncpy(retbuf, curerr, Bufsz - 1);
retbuf[Bufsz - 1] = '\0';
curerr[0] = '\0';
return retbuf;
}
const char *e = SDL_GetError();
if(e[0] != '\0')
return e;
return strerror(err);
}
|
Change buffer sizes to ease stk5.
|
Change buffer sizes to ease stk5.
|
C
|
mit
|
velour/mid,velour/mid,velour/mid
|
c083b0c24035620ec14db062fff8e62bd689c237
|
test/Driver/compilation_database.c
|
test/Driver/compilation_database.c
|
// RUN: %clang -MD -MP -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s
// RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s
// CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]*}}clang{{[^"]*}}", "-xc", "[[SRC]]", "-c", "-Wall", "--target={{[^"]+}}"]},
// CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]*}}clang{{[^"]*}}", "-xc++", "[[SRC]]", "-c", "-Wall", "--target={{[^"]+}}"]},
// ERROR: error: compilation database '{{.*}}/non-existant' could not be opened:
int main(void) {
return 0;
}
|
// RUN: %clang -MD -MP --sysroot=somewhere -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s
// RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s
// CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]*}}clang{{[^"]*}}", "-xc", "[[SRC]]", "--sysroot=somewhere", "-c", "-Wall", "--target={{[^"]+}}"]},
// CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]*}}clang{{[^"]*}}", "-xc++", "[[SRC]]", "--sysroot=somewhere", "-c", "-Wall", "--target={{[^"]+}}"]},
// ERROR: error: compilation database '{{.*}}/non-existant' could not be opened:
int main(void) {
return 0;
}
|
Make test case slightly more robust by explicitly passing --sysroot. Otherwise it would change when DEFAULT_SYSROOT is provided.
|
Make test case slightly more robust by explicitly passing --sysroot.
Otherwise it would change when DEFAULT_SYSROOT is provided.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@288823 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
|
79ecdd107f7531d36f69d6e7089b4a685a370312
|
src/graphics_tb.h
|
src/graphics_tb.h
|
#ifndef __GRAPHICS_TB_H__
#define __GRAPHICS_TB_H__
#include <termbox.h>
#include "models.h"
#include "graphics.h"
typedef struct {} graphics_tb_t;
// graphics_tb initialize the graphic module.
graphics_tb_t *graphics_tb_init();
// graphics_tb_draw draws the given state on the screen.
void graphics_tb_draw(void *context, state_to_draw_t *state);
// graphics_tb_quit terminate the graphic module.
void graphics_tb_quit(graphics_tb_t *tg);
#endif
|
#ifndef __GRAPHICS_TB_H__
#define __GRAPHICS_TB_H__
#include <termbox.h>
#include "models.h"
#include "graphics.h"
typedef struct {} graphics_tb_t;
// graphics_tb initializes the graphic module.
graphics_tb_t *graphics_tb_init();
// graphics_tb_draw draws the given state on the screen.
//
// We do not use `graphics_tb_t *tg` but `void *context` because this function
// is used as a callback and the caller shouldn't have to know about
// graphics_tb. This way, this module is pluggable.
void graphics_tb_draw(void *context, state_to_draw_t *state);
// graphics_tb_quit terminates the graphic module.
void graphics_tb_quit(graphics_tb_t *tg);
#endif
|
Add an explanation for graphics_*_draw prototype
|
Add an explanation for graphics_*_draw prototype
|
C
|
mit
|
moverest/bagh-chal,moverest/bagh-chal,moverest/bagh-chal
|
d1e345a13ca28825b672aa8e75e9f5d0f48be1bd
|
overseer.c
|
overseer.c
|
// vim: sw=4 ts=4 et filetype=c
#include <stdio.h>
#include <stdlib.h>
#include "overseer.h"
#include "iface_lcd.h"
#include "iface_uart.h"
#include "iface_w1_gpio.h"
int main()
{
sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array));
size_t actualsize = getSensorList(sensor_array);
char outbuf[16];
(void)uartInit();
lcdClear();
int i = 0;
for (i = 0; i < (int)actualsize; i++)
{
printf("Sensor %d (%s) = %g degrees C\n",
i, sensor_array[i].filename, sensor_array[i].reading);
snprintf(outbuf, 16, "s%d = %3.1f", i, sensor_array[i].reading);
lcdWrite(outbuf);
}
return 0;
}
|
// vim: sw=4 ts=4 et filetype=c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "overseer.h"
#include "iface_lcd.h"
#include "iface_uart.h"
#include "iface_w1_gpio.h"
int main()
{
sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array));
size_t actualsize = getSensorList(sensor_array);
char outbuf[16];
int i = 0;
time_t t;
struct tm *tmp;
// Initialize the display
(void)uartInit();
lcdClear();
// Produce a hunk of output for munin
for (i = 0; i < (int)actualsize; i++)
{
printf("sensor_%s.value %g\n",
sensor_array[i].filename, sensor_array[i].reading);
}
// Output the current time to the display
t = time(NULL);
tmp = localtime(&t);
if (tmp == NULL)
{
snprintf(outbuf, 16, "Time: NULL");
}
else if (strftime(outbuf, 16, "%a %H:%M", tmp) == 0)
{
snprintf(outbuf, 16, "Time: INVALID");
}
lcdWrite(outbuf);
// Output two temperatures to the display
if((int)actualsize > 1)
{
snprintf(outbuf, 16, "0=%3.1f 1=%3.1f",
sensor_array[0].reading, sensor_array[1].reading);
}
else if((int)actualsize > 0)
{
snprintf(outbuf, 16, "Temp: %3.1f", sensor_array[0].reading);
}
else
{
snprintf(outbuf, 16, "NO DATA");
}
lcdWrite(outbuf);
return 0;
}
|
Adjust output to LCD and console
|
Adjust output to LCD and console
Better kitchen usefulness w/ a timestamp.
Also munin support!
|
C
|
mit
|
rtucker/raspi-fridge-overseer,rtucker/raspi-fridge-overseer
|
228304d144861aa3e13384835aea7dc51fae140f
|
include/lldb/Host/freebsd/HostInfoFreeBSD.h
|
include/lldb/Host/freebsd/HostInfoFreeBSD.h
|
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef lldb_Host_freebsd_HostInfoFreeBSD_h_
#define lldb_Host_freebsd_HostInfoFreeBSD_h_
#include "lldb/Host/posix/HostInfoPosix.h"
namespace lldb_private
{
class HostInfoFreeBSD : public HostInfoPosix
{
public:
bool GetOSVersion(uint32_t &major, uint32_t &minor, uint32_t &update);
bool GetOSBuildString(std::string &s);
bool GetOSKernelDescription(std::string &s);
};
}
#endif
|
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef lldb_Host_freebsd_HostInfoFreeBSD_h_
#define lldb_Host_freebsd_HostInfoFreeBSD_h_
#include "lldb/Host/posix/HostInfoPosix.h"
namespace lldb_private
{
class HostInfoFreeBSD : public HostInfoPosix
{
public:
static bool GetOSVersion(uint32_t &major, uint32_t &minor, uint32_t &update);
static bool GetOSBuildString(std::string &s);
static bool GetOSKernelDescription(std::string &s);
};
}
#endif
|
Fix FreeBSD build after r215992
|
Fix FreeBSD build after r215992
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@216021 91177308-0d34-0410-b5e6-96231b3b80d8
|
C
|
apache-2.0
|
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb
|
2044a19198c1a178b0994ece8db9286099586ed4
|
text_widget.c
|
text_widget.c
|
// Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size;
}
|
// Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size
+ XSTATUS_CONST_PAD;
}
|
Include configured padding in offset calculation.
|
Include configured padding in offset calculation.
|
C
|
mit
|
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus
|
324243f6bb70687aeaeb2419193a335648c5869d
|
thrust/detail/config/cpp_dialect.h
|
thrust/detail/config/cpp_dialect.h
|
/*
* Copyright 2018 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#ifdef _MSC_VER
#define THRUST_CPP_VER _MSVC_LANG
#else
#define THRUST_CPP_VER __cplusplus
#endif
#if THRUST_CPP_VER < 201103L
#define THRUST_CPP03
#define THRUST_CPP_DIALECT 2003
#elif THRUST_CPP_VER < 201402L
#define THRUST_CPP11
#define THRUST_CPP_DIALECT 2011
#elif THRUST_CPP_VER < 201703L
#define THRUST_CPP14
#define THRUST_CPP_DIALECT 2014
#else
#define THRUST_CPP17
#define THRUST_CPP_DIALECT 2017
#endif
#undef THRUST_CPP_VER
|
/*
* Copyright 2018 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#if __cplusplus < 201103L
#define THRUST_CPP03
#define THRUST_CPP_DIALECT 2003
#elif __cplusplus < 201402L
#define THRUST_CPP11
#define THRUST_CPP_DIALECT 2011
#elif __cplusplus < 201703L
#define THRUST_CPP14
#define THRUST_CPP_DIALECT 2014
#else
#define THRUST_CPP17
#define THRUST_CPP_DIALECT 2017
#endif
|
Revert "Handle MSVC's definition of __cplusplus"
|
Revert "Handle MSVC's definition of __cplusplus"
This reverts commit 20e1c433e05c7147af5c267e0e0a38a781a6efb4.
|
C
|
apache-2.0
|
thrust/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,andrewcorrigan/thrust-multi-permutation-iterator,thrust/thrust,thrust/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust
|
2766579a314f92c3fdf3f87e7bb20e5a4e52c01b
|
JPetUnpacker/Unpacker2/TDCChannel.h
|
JPetUnpacker/Unpacker2/TDCChannel.h
|
#ifndef TDCChannel_h
#define TDCChannel_h
#include <fstream>
#include <TObject.h>
#include <TClonesArray.h>
#include <iostream>
#define MAX_FULL_HITS 100
class TDCChannel : public TObject {
protected:
Int_t channel;
double leadTime1;
double trailTime1;
double tot1;
double referenceDiff1;
double leadTimes[MAX_FULL_HITS];
double trailTimes[MAX_FULL_HITS];
double tots[MAX_FULL_HITS];
double referenceDiffs[MAX_FULL_HITS];
int hitsNum;
public:
TDCChannel();
~TDCChannel();
void SetChannel(Int_t channel) { this->channel = channel; }
int GetChannel() { return channel; }
int GetHitsNum() { return hitsNum; }
void AddHit(double lead, double trail, double ref);
void AddHit(double lead, double trail);
double GetLeadTime1() { return leadTime1; }
double GetLeadTime(int mult) { return leadTimes[mult]; }
double GetTrailTime1() { return trailTime1; }
double GetTrailTime(int mult) { return trailTimes[mult]; }
double GetTOT1() { return tot1; }
int GetMult() { return hitsNum; }
double GetTOT(int mult) { return tots[mult]; }
ClassDef(TDCChannel,1);
};
#endif
|
#ifndef TDCChannel_h
#define TDCChannel_h
#include <fstream>
#include <TObject.h>
#include <TClonesArray.h>
#include <iostream>
#define MAX_FULL_HITS 50
class TDCChannel : public TObject {
protected:
Int_t channel;
double leadTime1;
double trailTime1;
double tot1;
double referenceDiff1;
double leadTimes[MAX_FULL_HITS];
double trailTimes[MAX_FULL_HITS];
double tots[MAX_FULL_HITS];
double referenceDiffs[MAX_FULL_HITS];
int hitsNum;
public:
TDCChannel();
~TDCChannel();
void SetChannel(Int_t channel) { this->channel = channel; }
int GetChannel() { return channel; }
int GetHitsNum() { return hitsNum; }
void AddHit(double lead, double trail, double ref);
void AddHit(double lead, double trail);
double GetLeadTime1() { return leadTime1; }
double GetLeadTime(int mult) { return leadTimes[mult]; }
double GetTrailTime1() { return trailTime1; }
double GetTrailTime(int mult) { return trailTimes[mult]; }
double GetTOT1() { return tot1; }
int GetMult() { return hitsNum; }
double GetTOT(int mult) { return tots[mult]; }
ClassDef(TDCChannel,1);
};
#endif
|
Change TDCHits array size from 100 to 50
|
Change TDCHits array size from 100 to 50
For consistency with the standalone version
of the Unpacker.
|
C
|
apache-2.0
|
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework
|
f5eda040d34b33f438d562ae5cef8bf144d7f9fe
|
bin/varnishd/mgt.h
|
bin/varnishd/mgt.h
|
/*
* $Id$
*/
#include "common.h"
#include "miniobj.h"
extern struct evbase *mgt_evb;
/* mgt_child.c */
void mgt_run(int dflag);
void mgt_start_child(void);
void mgt_stop_child(void);
extern pid_t mgt_pid, child_pid;
/* mgt_cli.c */
void mgt_cli_init(void);
void mgt_cli_setup(int fdi, int fdo, int verbose);
int mgt_cli_askchild(int *status, char **resp, const char *fmt, ...);
void mgt_cli_start_child(int fdi, int fdo);
void mgt_cli_stop_child(void);
/* mgt_vcc.c */
void mgt_vcc_init(void);
int mgt_vcc_default(const char *bflag, const char *fflag);
int mgt_push_vcls_and_start(int *status, char **p);
/* tcp.c */
int open_tcp(const char *port);
#include "stevedore.h"
extern struct stevedore sma_stevedore;
extern struct stevedore smf_stevedore;
#include "hash_slinger.h"
extern struct hash_slinger hsl_slinger;
extern struct hash_slinger hcl_slinger;
|
/*
* $Id$
*/
#include "common.h"
#include "miniobj.h"
extern struct evbase *mgt_evb;
/* mgt_child.c */
void mgt_run(int dflag);
extern pid_t mgt_pid, child_pid;
/* mgt_cli.c */
void mgt_cli_init(void);
void mgt_cli_setup(int fdi, int fdo, int verbose);
int mgt_cli_askchild(int *status, char **resp, const char *fmt, ...);
void mgt_cli_start_child(int fdi, int fdo);
void mgt_cli_stop_child(void);
/* mgt_vcc.c */
void mgt_vcc_init(void);
int mgt_vcc_default(const char *bflag, const char *fflag);
int mgt_push_vcls_and_start(int *status, char **p);
/* tcp.c */
int open_tcp(const char *port);
#include "stevedore.h"
extern struct stevedore sma_stevedore;
extern struct stevedore smf_stevedore;
#include "hash_slinger.h"
extern struct hash_slinger hsl_slinger;
extern struct hash_slinger hcl_slinger;
|
Remove prototypes for no longer existing functions
|
Remove prototypes for no longer existing functions
git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@659 d4fa192b-c00b-0410-8231-f00ffab90ce4
|
C
|
bsd-2-clause
|
gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,gauthier-delacroix/Varnish-Cache,ajasty-cavium/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,1HLtd/Varnish-Cache,ambernetas/varnish-cache,chrismoulton/Varnish-Cache,gauthier-delacroix/Varnish-Cache,zhoualbeart/Varnish-Cache,feld/Varnish-Cache,varnish/Varnish-Cache,franciscovg/Varnish-Cache,alarky/varnish-cache-doc-ja,wikimedia/operations-debs-varnish,varnish/Varnish-Cache,feld/Varnish-Cache,franciscovg/Varnish-Cache,ambernetas/varnish-cache,feld/Varnish-Cache,wikimedia/operations-debs-varnish,mrhmouse/Varnish-Cache,ajasty-cavium/Varnish-Cache,feld/Varnish-Cache,mrhmouse/Varnish-Cache,gauthier-delacroix/Varnish-Cache,mrhmouse/Varnish-Cache,drwilco/varnish-cache-old,ssm/pkg-varnish,1HLtd/Varnish-Cache,zhoualbeart/Varnish-Cache,ajasty-cavium/Varnish-Cache,chrismoulton/Varnish-Cache,ssm/pkg-varnish,gquintard/Varnish-Cache,drwilco/varnish-cache-drwilco,zhoualbeart/Varnish-Cache,ssm/pkg-varnish,ajasty-cavium/Varnish-Cache,wikimedia/operations-debs-varnish,zhoualbeart/Varnish-Cache,franciscovg/Varnish-Cache,varnish/Varnish-Cache,1HLtd/Varnish-Cache,chrismoulton/Varnish-Cache,chrismoulton/Varnish-Cache,alarky/varnish-cache-doc-ja,gquintard/Varnish-Cache,gquintard/Varnish-Cache,ambernetas/varnish-cache,gquintard/Varnish-Cache,varnish/Varnish-Cache,drwilco/varnish-cache-drwilco,zhoualbeart/Varnish-Cache,ajasty-cavium/Varnish-Cache,mrhmouse/Varnish-Cache,mrhmouse/Varnish-Cache,drwilco/varnish-cache-old,1HLtd/Varnish-Cache,feld/Varnish-Cache,gauthier-delacroix/Varnish-Cache,franciscovg/Varnish-Cache,wikimedia/operations-debs-varnish,franciscovg/Varnish-Cache,alarky/varnish-cache-doc-ja,alarky/varnish-cache-doc-ja,drwilco/varnish-cache-old,ssm/pkg-varnish,chrismoulton/Varnish-Cache,varnish/Varnish-Cache,alarky/varnish-cache-doc-ja
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.