commit
stringlengths 40
40
| old_file
stringlengths 4
112
| new_file
stringlengths 4
112
| old_contents
stringlengths 0
2.05k
| new_contents
stringlengths 28
3.9k
| subject
stringlengths 17
736
| message
stringlengths 18
4.78k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 7
111k
|
---|---|---|---|---|---|---|---|---|---|
1341d104f298cc8bdf5ffae3f0d4199adf22e0a1 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 99
#define CLIENT_VERSION_BUILD 8
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
| #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 99
#define CLIENT_VERSION_BUILD 9
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
| Build number for OpenSSL bug fix | Build number for OpenSSL bug fix
| C | mit | myriadteam/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,argentumproject/argentum,myriadteam/myriadcoin,argentumproject/argentum,myriadteam/myriadcoin,myriadcoin/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,myriadcoin/myriadcoin,Richcoin-Project/RichCoin,Richcoin-Project/RichCoin,myriadcoin/myriadcoin,argentumproject/argentum,myriadteam/myriadcoin,myriadteam/myriadcoin,argentumproject/argentum,myriadteam/myriadcoin,Richcoin-Project/RichCoin,Richcoin-Project/RichCoin,myriadcoin/myriadcoin,Richcoin-Project/RichCoin,argentumproject/argentum |
3f9d1548236269530e441c996a6debbd88ec6cfd | src/modules/cpufreq/e_mod_main.h | src/modules/cpufreq/e_mod_main.h | #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
EAPI int e_modapi_about (E_Module *m);
#endif
| #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
#endif
| Remove unused (and deprecated) declaration. | Remove unused (and deprecated) declaration.
SVN revision: 32298
| C | bsd-2-clause | FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment |
5b72d74ce2fccca2a301de60f31b16ddf5c93984 | arch/powerpc/platforms/pseries/offline_states.h | arch/powerpc/platforms/pseries/offline_states.h | #ifndef _OFFLINE_STATES_H_
#define _OFFLINE_STATES_H_
/* Cpu offline states go here */
enum cpu_state_vals {
CPU_STATE_OFFLINE,
CPU_STATE_INACTIVE,
CPU_STATE_ONLINE,
CPU_MAX_OFFLINE_STATES
};
extern enum cpu_state_vals get_cpu_current_state(int cpu);
extern void set_cpu_current_state(int cpu, enum cpu_state_vals state);
extern enum cpu_state_vals get_preferred_offline_state(int cpu);
extern void set_preferred_offline_state(int cpu, enum cpu_state_vals state);
extern void set_default_offline_state(int cpu);
extern int start_secondary(void);
#endif
| #ifndef _OFFLINE_STATES_H_
#define _OFFLINE_STATES_H_
/* Cpu offline states go here */
enum cpu_state_vals {
CPU_STATE_OFFLINE,
CPU_STATE_INACTIVE,
CPU_STATE_ONLINE,
CPU_MAX_OFFLINE_STATES
};
#ifdef CONFIG_HOTPLUG_CPU
extern enum cpu_state_vals get_cpu_current_state(int cpu);
extern void set_cpu_current_state(int cpu, enum cpu_state_vals state);
extern void set_preferred_offline_state(int cpu, enum cpu_state_vals state);
extern void set_default_offline_state(int cpu);
#else
static inline enum cpu_state_vals get_cpu_current_state(int cpu)
{
return CPU_STATE_ONLINE;
}
static inline void set_cpu_current_state(int cpu, enum cpu_state_vals state)
{
}
static inline void set_preferred_offline_state(int cpu, enum cpu_state_vals state)
{
}
static inline void set_default_offline_state(int cpu)
{
}
#endif
extern enum cpu_state_vals get_preferred_offline_state(int cpu);
extern int start_secondary(void);
#endif
| Fix SMP build with disabled CPU hotplugging. | powerpc: Fix SMP build with disabled CPU hotplugging.
Compiling 2.6.33 with SMP enabled and HOTPLUG_CPU disabled gives me the
following link errors:
LD init/built-in.o
LD .tmp_vmlinux1
arch/powerpc/platforms/built-in.o: In function `.smp_xics_setup_cpu':
smp.c:(.devinit.text+0x88): undefined reference to `.set_cpu_current_state'
smp.c:(.devinit.text+0x94): undefined reference to `.set_default_offline_state'
arch/powerpc/platforms/built-in.o: In function `.smp_pSeries_kick_cpu':
smp.c:(.devinit.text+0x13c): undefined reference to `.set_preferred_offline_state'
smp.c:(.devinit.text+0x148): undefined reference to `.get_cpu_current_state'
smp.c:(.devinit.text+0x1a8): undefined reference to `.get_cpu_current_state'
make: *** [.tmp_vmlinux1] Error 1
The following change fixes that for me and seems to work as expected.
Signed-off-by: Adam Lackorzynski <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,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 |
d2b0573ba9a0edc53bd7800f8acd6718fd59f2a4 | Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h | Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h | /*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Xerces" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache\@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation, and was
* originally based on software copyright (c) 2001, International
* Business Machines, Inc., http://www.ibm.com . For more information
* on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
/*
* $Id$
*/
// Objective C only
#if __OBJC__
#endif
// C++ only
#if defined(__cplusplus)
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <cstdio>
#include <memory>
#endif
// Standard C headers
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
// Carbon Headers
#include <Carbon/Carbon.h>
#include <CoreFoundation/CoreFoundation.h>
| Add prefix file for ProjectBuilder samples | Add prefix file for ProjectBuilder samples
git-svn-id: 3ec853389310512053d525963cab269c063bb453@174526 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | Distrotech/xerces-c,colorer/xerces-c,ctapmex/xerces-c,ctapmex/xerces-c,colorer/xerces-c,Distrotech/xerces-c,Distrotech/xerces-c,Distrotech/xerces-c,ctapmex/xerces-c,colorer/xerces-c,ctapmex/xerces-c,Distrotech/xerces-c,colorer/xerces-c,colorer/xerces-c |
|
c4c76088f08a7539a5f4466ec4fe7f85a9a5bc6f | ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h | ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h | //
// RCTSpotlightSearch.h
// RCTSpotlightSearch
//
// Created by James (Home) on 21/06/2016.
// Copyright © 2016 James Munro. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
@interface RCTSpotlightSearch : NSObject <RCTBridgeModule>
+ (void)handleContinueUserActivity:(NSUserActivity *)userActivity;
@end
| //
// RCTSpotlightSearch.h
// RCTSpotlightSearch
//
// Created by James (Home) on 21/06/2016.
// Copyright © 2016 James Munro. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
@interface RCTSpotlightSearch : NSObject <RCTBridgeModule>
+ (void)handleContinueUserActivity:(NSUserActivity *)userActivity;
@end
| Fix import React/RCTBridgeModule.h, needed by RN 0.50 | Fix import React/RCTBridgeModule.h, needed by RN 0.50
| C | mit | jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search |
85d1e066e03030de91558746864dfd84ecd2f1bc | searchlib/src/vespa/searchlib/test/vector_buffer_writer.h | searchlib/src/vespa/searchlib/test/vector_buffer_writer.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/util/bufferwriter.h>
#include <vector>
namespace search::test
{
class VectorBufferWriter : public BufferWriter {
private:
char tmp[1024];
public:
std::vector<char> output;
VectorBufferWriter();
~VectorBufferWriter();
void flush() override;
};
}
| // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/util/bufferwriter.h>
#include <vector>
namespace search::test
{
class VectorBufferWriter : public BufferWriter {
private:
char tmp[1024];
public:
std::vector<char> output;
VectorBufferWriter();
~VectorBufferWriter() override;
void flush() override;
};
}
| Add override specifier for VectorBufferWriter destructor. | Add override specifier for VectorBufferWriter destructor.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
f0b6c5101e4b1c88410e8e9d227266500497e031 | list.c | list.c | #include "list.h"
struct ListNode
{
ListNode* prev;
ListNode* next;
void* k;
};
struct List
{
ListNode* head;
};
List* List_Create(void)
{
List* l = (List *)malloc(sizeof(List));
l->head = NULL;
return l;
}
ListNode* ListNode_Create(void* k)
{
ListNode* n = (ListNode *)malloc(sizeof(ListNode));
n->prev = NULL;
n->next = NULL;
n->k = k;
return n;
}
| #include "list.h"
struct ListNode
{
ListNode* prev;
ListNode* next;
void* k;
};
struct List
{
ListNode* head;
};
List* List_Create(void)
{
List* l = (List *)malloc(sizeof(List));
l->head = NULL;
return l;
}
ListNode* ListNode_Create(void* k)
{
ListNode* n = (ListNode *)malloc(sizeof(ListNode));
n->prev = NULL;
n->next = NULL;
n->k = k;
return n;
}
ListNode* List_Search(List* l, void* k, int (f)(void*, void*))
{
ListNode* n = l->head;
while (n != NULL && !f(n->k, k))
{
n = n->next;
}
return n;
}
| Add List Search function implementation | Add List Search function implementation
| C | mit | MaxLikelihood/CADT |
aa2916ff583a12e068251d36d0045c68e5895a5c | mudlib/mud/home/System/sys/extinguishd.c | mudlib/mud/home/System/sys/extinguishd.c | #include <status.h>
#include <kotaka/paths.h>
#include <kotaka/log.h>
#include <kotaka/privilege.h>
inherit SECOND_AUTO;
void extinguish(string path)
{
ACCESS_CHECK(KADMIN());
call_out("purge", 0, path, status(ST_OTABSIZE));
}
static void purge(string path, int quota)
{
int limit;
limit = 200;
if (quota % limit != 0) {
limit = quota % limit;
}
for (; quota > 0 && limit > 0; quota--, limit--) {
object obj;
if (obj = find_object(path + "#" + quota)) {
destruct_object(obj);
}
}
LOGD->post_message("test", LOG_INFO, quota + " objects to check.");
if (quota > 0) {
call_out("purge", 0, path, quota);
}
}
| #include <status.h>
#include <kotaka/paths.h>
#include <kotaka/log.h>
#include <kotaka/privilege.h>
inherit SECOND_AUTO;
void extinguish(string path)
{
if (!KADMIN()) {
string opath;
opath = object_name(previous_object());
ACCESS_CHECK(DRIVER->creator(opath));
ACCESS_CHECK(DRIVER->creator(opath) == DRIVER->creator(path));
}
call_out("purge", 0, path, status(ST_OTABSIZE));
}
static void purge(string path, int quota)
{
int limit;
limit = 128;
if (quota % limit != 0) {
limit = quota % limit;
}
for (; quota > 0 && limit > 0; quota--, limit--) {
object obj;
if (obj = find_object(path + "#" + quota)) {
destruct_object(obj);
}
}
LOGD->post_message("test", LOG_INFO, quota + " objects to check.");
if (quota > 0) {
call_out("purge", 0, path, quota);
}
}
| Allow extinguishing of objects with the same creator as yourself. | Allow extinguishing of objects with the same creator as yourself.
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
112d20ad5ca06a9ec7237602ee33bef6fa881daa | drivers/gpu/drm/nouveau/nv04_mc.c | drivers/gpu/drm/nouveau/nv04_mc.c | #include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
int
nv04_mc_init(struct drm_device *dev)
{
/* Power up everything, resetting each individual unit will
* be done later if needed.
*/
nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
return 0;
}
void
nv04_mc_takedown(struct drm_device *dev)
{
}
| #include "drmP.h"
#include "drm.h"
#include "nouveau_drv.h"
#include "nouveau_drm.h"
int
nv04_mc_init(struct drm_device *dev)
{
/* Power up everything, resetting each individual unit will
* be done later if needed.
*/
nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF);
/* Disable PROM access. */
nv_wr32(dev, NV_PBUS_PCI_NV_20, NV_PBUS_PCI_NV_20_ROM_SHADOW_ENABLED);
return 0;
}
void
nv04_mc_takedown(struct drm_device *dev)
{
}
| Disable PROM access on init. | drm/nouveau: Disable PROM access on init.
On older cards (<nv17) scanout gets blocked when the ROM is being
accessed. PROM access usually comes out enabled from suspend, switch
it off.
Signed-off-by: Francisco Jerez <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas |
77813adc0001c96511aa932ced1adc8500b3f280 | example/ex-multi05.c | example/ex-multi05.c | #include <stdio.h>
#include "m-array.h"
#include "m-string.h"
// Let's create an array of string_t and register it globaly
ARRAY_DEF(vector_string, string_t)
#define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST)
int main(void)
{
// Let's define a new string named str
M_LET(str, string_t)
// Let's define msg as a vector_array_t
M_LET( (msg, STRING_CTE("Hello"), STRING_CTE("C"), STRING_CTE("World!"), STRING_CTE("Let's"), STRING_CTE("discover"), STRING_CTE("M*LIB!")), vector_string_t) {
// Iterate over all words of the array msg
for M_EACH(word, msg, vector_string_t) {
// Cat the current word into the target string
string_cat(str, *word);
// Also add a space character
string_push_back(str, ' ');
}
// Print the result
printf("%s\n", string_get_cstr(str) );
}
return 0;
}
| #include <stdio.h>
#include "m-array.h"
#include "m-string.h"
// Let's create an array of string_t and register it globaly
ARRAY_DEF(vector_string, string_t)
#define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST)
int main(void)
{
// Let's define a new string named str
M_LET(str, string_t)
// Let's define msg as a vector_array_t
M_LET( (msg, STRING_CTE("Hello"), STRING_CTE("C"), STRING_CTE("World!"), STRING_CTE("Let's"), STRING_CTE("discover"), STRING_CTE("M*LIB!")), vector_string_t) {
// Iterate over all words of the array msg
for M_EACH(word, msg, vector_string_t) {
// Cat the current word into the target string
string_cat(str, *word);
// Also add a space character
string_push_back(str, ' ');
}
// Let's define another string and set it to a formatted value.
M_LET( (count, "\nTo display this it uses \"vector\" of %zu strings!", vector_string_size(msg)), string_t) {
string_cat(str, count);
}
// Print the result
printf("%s\n", string_get_cstr(str) );
}
return 0;
}
| Add example of formatted C string for string in M_LET | Add example of formatted C string for string in M_LET
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
aba2ec8c709b9bb5b2484e86d8f108b0ae0932d4 | src/modules/illume-keyboard/e_mod_main.c | src/modules/illume-keyboard/e_mod_main.c | #include "e.h"
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "e_kbd_int.h"
/* local variables */
static E_Kbd_Int *ki = NULL;
EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" };
EAPI void *
e_modapi_init(E_Module *m)
{
if (!il_kbd_config_init(m)) return NULL;
ki = e_kbd_int_new(mod_dir, mod_dir, mod_dir);
return m;
}
EAPI int
e_modapi_shutdown(E_Module *m)
{
if (ki)
{
e_kbd_int_free(ki);
ki = NULL;
}
il_kbd_config_shutdown();
return 1;
}
EAPI int
e_modapi_save(E_Module *m)
{
return il_kbd_config_save();
}
| #include "e.h"
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "e_kbd_int.h"
/* local variables */
static E_Kbd_Int *ki = NULL;
EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" };
EAPI void *
e_modapi_init(E_Module *m)
{
if (!il_kbd_config_init(m)) return NULL;
ki = e_kbd_int_new(il_kbd_cfg->mod_dir,
il_kbd_cfg->mod_dir, il_kbd_cfg->mod_dir);
return m;
}
EAPI int
e_modapi_shutdown(E_Module *m)
{
if (ki)
{
e_kbd_int_free(ki);
ki = NULL;
}
il_kbd_config_shutdown();
return 1;
}
EAPI int
e_modapi_save(E_Module *m)
{
return il_kbd_config_save();
}
| Use correct module directory when making keyboard. Previous commit fixed compiler warnings also. | Use correct module directory when making keyboard.
Previous commit fixed compiler warnings also.
git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@43875 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
02abf1a1f71cbd7db8b0e0e4d9e94ea1070d7d9a | doors.h | doors.h | #ifndef _DOORS_H_
#define _DOORS_H_
#ifndef NUMBER_OF_DOORS
#define NUMBER_OF_DOORS 3
#endif
typedef struct {
unsigned int has_prize : 1;
unsigned int currently_selected: 1;
unsigned int revealed : 1;
} door;
/*
* game status updates
*/
extern void set_doors(void);
extern void select_door(unsigned int number);
extern void show_doors(void);
extern void reveal_all_doors(void);
/*
* game status queries
*/
extern unsigned int get_door_number(void);
extern unsigned int current_guess(void);
extern unsigned int winning_door(void);
extern unsigned int hint_door(void);
#endif
| #ifndef _DOORS_H_
#define _DOORS_H_
#ifndef NUMBER_OF_DOORS
#define NUMBER_OF_DOORS 3
#endif
#include <limits.h>
#if (NUMBER_OF_DOORS > UINT_MAX)
#error (n) doors exceeds storage allocation limit for `unsigned int'.
#endif
typedef struct {
unsigned int has_prize : 1;
unsigned int currently_selected: 1;
unsigned int revealed : 1;
} door;
/*
* game status updates
*/
extern void set_doors(void);
extern void select_door(unsigned int number);
extern void show_doors(void);
extern void reveal_all_doors(void);
/*
* game status queries
*/
extern unsigned int get_door_number(void);
extern unsigned int current_guess(void);
extern unsigned int winning_door(void);
extern unsigned int hint_door(void);
#endif
| Throw a fatal pre-processor error if (n > UINT_MAX). | Throw a fatal pre-processor error if (n > UINT_MAX).
| C | cc0-1.0 | cxd4/Monty-Hall,cxd4/Monty-Hall |
246b6611122d65b4a7c5deef1d888ef0f88a14d9 | Common/CoreLocation+MITAdditions.h | Common/CoreLocation+MITAdditions.h | #import <CoreLocation/CLLocation.h>
#define DEGREES_PER_RADIAN 180.0 / M_PI
#define RADIANS_PER_DEGREE M_PI / 180.0
#define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325)
#define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006)
// these are 1 and 2 miles respectively
#define OUT_OF_BOUNDS_DISTANCE 1609
#define WAY_OUT_OF_BOUNDS_DISTANCE 3218
@interface CLLocation (MITAdditions)
- (CLLocationDistance)distanceFromCenterOfCampus;
- (BOOL)isOnCampus;
- (BOOL)isNearCampus;
@end
@interface NSValue (CL_MITAdditions)
+ (NSValue *)valueWithMKCoordinate:(CLLocationCoordinate2D)coordinate;
- (CLLocationCoordinate2D)MKCoordinateValue;
@end | #import <CoreLocation/CLLocation.h>
#import <CoreLocation/CoreLocation.h>
#define DEGREES_PER_RADIAN 180.0 / M_PI
#define RADIANS_PER_DEGREE M_PI / 180.0
#define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325)
#define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006)
// these are 1 and 2 miles respectively
#define OUT_OF_BOUNDS_DISTANCE 1609
#define WAY_OUT_OF_BOUNDS_DISTANCE 3218
FOUNDATION_STATIC_INLINE inline NSString* NSStringFromCLLocationCoordinate2D(CLLocationCoordinate2D coordinate) {
return [NSString stringWithFormat:@"{ x: %lf, y: %lf }", coordinate.longitude, coordinate.latitude];
}
@interface CLLocation (MITAdditions)
- (CLLocationDistance)distanceFromCenterOfCampus;
- (BOOL)isOnCampus;
- (BOOL)isNearCampus;
@end
@interface NSValue (CL_MITAdditions)
+ (NSValue *)valueWithMKCoordinate:(CLLocationCoordinate2D)coordinate;
- (CLLocationCoordinate2D)MKCoordinateValue;
@end | Add a convenience function to get an NSString from a CLLocationCoordinate2D object | Add a convenience function to get an NSString from a CLLocationCoordinate2D object
| C | lgpl-2.1 | MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS |
4b50bfb7b55d0aa4524a89bbed9b67c64481af1d | src/modularization_programs/c/parameter_passing/sample_parameter_passing.c | src/modularization_programs/c/parameter_passing/sample_parameter_passing.c | /*
* Author: Jhonatan Casale (jhc)
*
* Contact : [email protected]
* : [email protected]
* : https://github.com/jhonatancasale
* : https://twitter.com/jhonatancasale
* : http://jhonatancasale.github.io/
*
* Create date Sat 10 Dec 16:13:19 BRST 2016
*
*/
#include <stdlib.h>
#include <stdio.h>
int sumByReference (int *, int *);
int sumByValue (int, int);
int main (int argc, char **argv)
{
int a = 10;
int b = 37;
printf ("a:%d, b%d\n", a, b);
printf ("a:%d, b%d => sumByValue() = %d\n", a, b, sumByValue(a, b) );
printf ("a:%d, b%d => sumByReference() = %d\n", a, b, sumByReference(&a, &b) );
printf ("a:%d, b%d\n", a, b);
return (EXIT_SUCCESS);
}
int sumByValue (int a, int b) {
int aux = a;
a = b;
b = aux;
return (a + b);
}
int sumByReference ( int * a, int * b) {
int aux = *a;
*a = *b;
*b = aux;
return (*a + *b);
}
| Add parameter passing example in c | Add parameter passing example in c
| C | mit | jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs,jhonatancasale/c-python-r-diffs |
|
34d2be5fddf51413062f0995bfcb3b9401ffcef1 | utils.h | utils.h | #pragma once
namespace me {
template<class T>
class Optional {
T *m_object;
public:
Optional() : m_object(0) {}
Optional(const T& other) : m_object(new T(other)) {}
Optional& operator=(const T& other) {
if (m_object != 0) {
delete m_object;
}
m_object = new T(other);
return *this;
}
operator bool() const {
return m_object != 0;
}
T& operator *() const {
return *m_object;
}
T* operator ->() const {
return m_object;
}
T* pointer() const {
return m_object;
}
};
// splitting.
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
std::vector<std::string> split(const std::string &s, char delim);
} | #pragma once
namespace me {
// basic optional implementation.
template<class T>
class Optional {
T *m_object;
public:
Optional() : m_object(0) { }
// copy constructor
Optional(const Optional<T>& other) : m_object(new T(*other)) { }
// move constructor
Optional(Optional<T>&& other) : m_object(other.m_object) {
other.m_object = 0;
}
Optional(const T& other) : m_object(new T(other)) { }
// destructor
~Optional() {
delete m_object; // delete 0 is a no-op, so we are fine here.
}
// copy assignment operator
Optional& operator=(const Optional<T>& other) {
delete m_object; // delete 0 is a no-op
m_object = new T(*other);
return *this;
}
Optional& operator=(const T& other) {
delete m_object; // delete 0 is a no-op
m_object = new T(other);
return *this;
}
// move assignment operator
Optional& operator=(Optional<T>&& other) {
delete m_object; // delete 0 is a no-op
m_object = other.m_object;
other.m_object = 0;
return *this;
}
operator bool() const {
return m_object != 0;
}
T& operator *() const {
return *m_object;
}
T* operator ->() const {
return m_object;
}
T* pointer() const {
return m_object;
}
};
// splitting.
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
std::vector<std::string> split(const std::string &s, char delim);
} | Use move semantics in Optional implementation. | Use move semantics in Optional implementation.
| C | mit | ckarmann/TrackCommit,ckarmann/TrackCommit |
1b5ab79b0bd0973de3a2b6ca256f7d1d4d4c1736 | 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 | Mark ContiguousMemoryRange::size as const. am: f2c28cd765
Change-Id: I8f62e95dd64516e3a99b3123c48b16fd88264f7e
| C | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
4d53987845bce8e268926b5126ff426d1697cd40 | tests/sv-comp/cfg/main_goto_loop_true-unreach-call.c | tests/sv-comp/cfg/main_goto_loop_true-unreach-call.c | extern void __VERIFIER_error() __attribute__((__noreturn__));
int main()
{
f_empty_goto_loop();
f_empty_while_loop();
f_empty_goto_loop_suffix();
f_empty_while_loop_suffix();
f_nonempty_goto_loop();
f_nonempty_while_loop();
return 0;
}
void f_empty_goto_loop()
{
f_empty_goto_loop_label:
goto f_empty_goto_loop_label;
}
void f_empty_while_loop()
{
while (1) {}
}
void f_empty_goto_loop_suffix()
{
f_empty_goto_loop_suffix_label:
goto f_empty_goto_loop_suffix_label;
__VERIFIER_error();
}
void f_empty_while_loop_suffix()
{
while (1) {}
__VERIFIER_error();
}
void f_nonempty_goto_loop()
{
f_nonempty_goto_loop_label:
__VERIFIER_error();
goto f_nonempty_goto_loop_label;
}
void f_nonempty_while_loop()
{
while (1)
{
__VERIFIER_error();
}
} | Add infinite goto loop examples as SV-COMP tests | Add infinite goto loop examples as SV-COMP tests
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
708edbddabbe7f689839ff6a213fe350b565764e | Source/UnrealEnginePython/Public/UnrealEnginePython.h | Source/UnrealEnginePython/Public/UnrealEnginePython.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void StartupModule() override;
virtual void ShutdownModule() override;
void RunString(char *);
void RunFile(char *);
void RunFileSandboxed(char *);
private:
void *ue_python_gil;
// used by console
void *main_dict;
void *local_dict;
};
struct FScopePythonGIL {
FScopePythonGIL()
{
#if defined(UEPY_THREADING)
UnrealEnginePythonModule = FModuleManager::LoadModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
safeForRelease = UnrealEnginePythonModule.PythonGILAcquire();
#endif
}
~FScopePythonGIL()
{
#if defined(UEPY_THREADING)
if (safeForRelease) {
UnrealEnginePythonModule.PythonGILRelease();
}
#endif
}
FUnrealEnginePythonModule UnrealEnginePythonModule;
bool safeForRelease;
};
| // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void StartupModule() override;
virtual void ShutdownModule() override;
void RunString(char *);
void RunFile(char *);
void RunFileSandboxed(char *);
private:
void *ue_python_gil;
// used by console
void *main_dict;
void *local_dict;
void *main_module;
};
struct FScopePythonGIL {
FScopePythonGIL()
{
#if defined(UEPY_THREADING)
UnrealEnginePythonModule = FModuleManager::LoadModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
safeForRelease = UnrealEnginePythonModule.PythonGILAcquire();
#endif
}
~FScopePythonGIL()
{
#if defined(UEPY_THREADING)
if (safeForRelease) {
UnrealEnginePythonModule.PythonGILRelease();
}
#endif
}
FUnrealEnginePythonModule UnrealEnginePythonModule;
bool safeForRelease;
};
| Add support for the Python Stdout Log | Add support for the Python Stdout Log
Support the print(' ') and help(' '),
Can be used as the transition period.
| C | mit | getnamo/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython |
18f0174b401852cc6fbef23d9f9b2f1fa6ed3f82 | searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h | searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/storage/common/storage_chain_builder.h>
namespace feedbm {
class BmStorageLinkContext;
/*
* Storage chain builder that inserts a BmStorageLink right below the
* communication manager. This allows sending benchmark feed to chain.
*/
class BmStorageChainBuilder : public storage::StorageChainBuilder
{
std::shared_ptr<BmStorageLinkContext> _context;
public:
BmStorageChainBuilder();
~BmStorageChainBuilder() override;
const std::shared_ptr<BmStorageLinkContext>& get_context() { return _context; }
void add(std::unique_ptr<storage::StorageLink> link) override;
};
}
| // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/storage/common/storage_chain_builder.h>
namespace feedbm {
struct BmStorageLinkContext;
/*
* Storage chain builder that inserts a BmStorageLink right below the
* communication manager. This allows sending benchmark feed to chain.
*/
class BmStorageChainBuilder : public storage::StorageChainBuilder
{
std::shared_ptr<BmStorageLinkContext> _context;
public:
BmStorageChainBuilder();
~BmStorageChainBuilder() override;
const std::shared_ptr<BmStorageLinkContext>& get_context() { return _context; }
void add(std::unique_ptr<storage::StorageLink> link) override;
};
}
| Fix forward declaration of BmStorageLinkContext. | Fix forward declaration of BmStorageLinkContext.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
cf9b2331ac6fe98e3c0443853226f1ef76668f8e | src/tests/behaviour/dictionary/skip_list/test_behaviour_skip_list.c | src/tests/behaviour/dictionary/skip_list/test_behaviour_skip_list.c | /******************************************************************************/
/**
@file
@author Kris Wallperington
@brief Behaviour tests for the skip list implementation.
@copyright Copyright 2016
The University of British Columbia,
IonDB Project Contributors (see AUTHORS.md)
@par
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
@par
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 "../../../planckunit/src/planck_unit.h"
#include "../behaviour_dictionary.h"
#include "../../../../dictionary/skip_list/skip_list_handler.h"
#include "test_behaviour_skip_list.h"
void
runalltests_behaviour_skip_list(
void
) {
bhdct_run_tests(sldict_init, 7, BHDCT_ALL_TESTS);
}
| /******************************************************************************/
/**
@file
@author Kris Wallperington
@brief Behaviour tests for the skip list implementation.
@copyright Copyright 2016
The University of British Columbia,
IonDB Project Contributors (see AUTHORS.md)
@par
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
@par
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 "../../../planckunit/src/planck_unit.h"
#include "../behaviour_dictionary.h"
#include "../../../../dictionary/skip_list/skip_list_handler.h"
#include "test_behaviour_skip_list.h"
void
runalltests_behaviour_skip_list(
void
) {
#if defined(ARDUINO)
bhdct_run_tests(sldict_init, 7, BHDCT_ALL_TESTS & ~BHDCT_STRING_INT);
#else
bhdct_run_tests(sldict_init, 7, BHDCT_ALL_TESTS);
#endif
}
| Exclude skiplist string key tests from device | Exclude skiplist string key tests from device
| C | bsd-3-clause | iondbproject/iondb,iondbproject/iondb |
bb520e80e50731c9a2fb2009d8b0f9c8768db00d | test2/__attribute__/cleanup/auto_out_param.c | test2/__attribute__/cleanup/auto_out_param.c | // RUN: %ocheck 0 %s
struct store_out
{
int *local;
int *ret;
};
void store_out(const struct store_out *const so)
{
*so->ret = *so->local;
}
void f(int *p)
{
int i = *p;
struct store_out so __attribute((cleanup(store_out))) = {
.local = &i,
.ret = p
};
i = 5;
}
main()
{
int i = 3;
f(&i);
if(i != 5)
abort();
return 0;
}
| Test cleanup-attribute with const struct parameter | Test cleanup-attribute with const struct parameter
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
|
8174824ff0c364be8d5bdb057eed087fa9d2b55a | src-separate/linux/dux_timer_linux.c | src-separate/linux/dux_timer_linux.c | #if !defined(DUX_OPT_NO_TIMER) && defined(__linux__)
#include "../dux_internal.h"
#include <time.h>
DUK_INTERNAL duk_uint_t dux_timer_current(void)
{
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) != 0)
{
return 0;
}
return (duk_uint_t)(tp.tv_sec * 1000 + tp.tv_nsec / 1000000);
}
#endif /* !DUX_OPT_NO_TIMER && __linux__ */
| Add Linux porting (for testing) | Add Linux porting (for testing)
| C | mit | kimushu/duktape-extension,kimushu/duktape-extension,kimushu/duktape-extension |
|
5cc3518924500882d85dfa5a6c9d9816d5d60f07 | KLog/klog/basic_types.h | KLog/klog/basic_types.h | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KLOG_BASIC_TYPES_H_
#define KLOG_BASIC_TYPES_H_
#include <string>
#include "klog/basic_macros.h"
namespace klog {
#if defined(OS_WIN)
using PathChar = wchar_t;
using PathString = std::wstring;
#else
using PathChar = char;
using PathString = std::string;
#endif
} // namespace klog
#endif // KLOG_BASIC_TYPES_H_ | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KLOG_BASIC_TYPES_H_
#define KLOG_BASIC_TYPES_H_
#include <string>
#include "klog/basic_macros.h"
namespace klog {
#if defined(OS_WIN)
using PathChar = wchar_t;
using PathString = std::wstring;
#define PATH_LITERAL(str) L##str
#else
using PathChar = char;
using PathString = std::string;
#define PATH_LITERAL(str) str
#endif
} // namespace klog
#endif // KLOG_BASIC_TYPES_H_ | Introduce the macro `PATH_LITERAL` for helping construct `PathString`. | Introduce the macro `PATH_LITERAL` for helping construct `PathString`.
| C | mit | kingsamchen/KLog |
13c12a4e8ecdf3998cd2d89ade69f6f194819c95 | arch/sh/include/asm/sections.h | arch/sh/include/asm/sections.h | #ifndef __ASM_SH_SECTIONS_H
#define __ASM_SH_SECTIONS_H
#include <asm-generic/sections.h>
extern void __nosave_begin, __nosave_end;
extern long __machvec_start, __machvec_end;
extern char __uncached_start, __uncached_end;
extern char _ebss[];
extern char __start_eh_frame[], __stop_eh_frame[];
#endif /* __ASM_SH_SECTIONS_H */
| #ifndef __ASM_SH_SECTIONS_H
#define __ASM_SH_SECTIONS_H
#include <asm-generic/sections.h>
extern long __nosave_begin, __nosave_end;
extern long __machvec_start, __machvec_end;
extern char __uncached_start, __uncached_end;
extern char _ebss[];
extern char __start_eh_frame[], __stop_eh_frame[];
#endif /* __ASM_SH_SECTIONS_H */
| Change __nosave_XXX symbols to long | sh: Change __nosave_XXX symbols to long
This patch changes the:
- __nosave_begin
- __nosave_end
symbols from 'void' to 'long' as required by the latest
Gcc (4.5.2) which raises the compilation error:
cc1: warnings being treated as errors
arch/sh/kernel/swsusp.c: In function 'pfn_is_nosave':
arch/sh/kernel/swsusp.c:24:28: error: taking address of expression of type 'void'
arch/sh/kernel/swsusp.c:25:26: error: taking address of expression of type 'void'
arch/sh/kernel/swsusp.c:25:26: error: taking address of expression of type 'void'
arch/sh/kernel/swsusp.c:25:26: error: taking address of expression of type 'void'
Signed-off-by: Francesco Virlinzi <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas |
13bae2a0c5e8a4ee9c0c4c483f8b222308d3479a | You-Controller-Tests/exclusions.h | You-Controller-Tests/exclusions.h | #pragma once
#ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
#define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
// A local define since there is no way to test whether a header file exists.
// If you have VS Premium, then add it to the project definition (user
// properties) file
#ifdef MS_CPP_CODECOVERAGE
/// \file Exclusions from code coverage analysis.
/// See http://msdn.microsoft.com/en-sg/library/dd537628.aspx
#include <CodeCoverage/CodeCoverage.h>
#pragma managed(push, off)
ExcludeFromCodeCoverage(boost, L"boost::*");
ExcludeFromCodeCoverage(You_QueryEngine, L"You::QueryEngine::*");
#pragma managed(pop)
#endif // MS_CPP_CODECOVERAGE
#endif // YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
| #pragma once
#ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
#define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
// A local define since there is no way to test whether a header file exists.
// If you have VS Premium, then add it to the project definition (user
// properties) file
#ifdef MS_CPP_CODECOVERAGE
/// \file Exclusions from code coverage analysis.
/// See http://msdn.microsoft.com/en-sg/library/dd537628.aspx
#include <CodeCoverage/CodeCoverage.h>
#pragma managed(push, off)
ExcludeFromCodeCoverage(boost, L"boost::*");
ExcludeFromCodeCoverage(You_NLP, L"You::NLP::*");
ExcludeFromCodeCoverage(You_QueryEngine, L"You::QueryEngine::*");
ExcludeFromCodeCoverage(You_Utils, L"You::Utils::*");
#pragma managed(pop)
#endif // MS_CPP_CODECOVERAGE
#endif // YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
| Exclude 3rd party code from the controller tests code coverage. | Exclude 3rd party code from the controller tests code coverage.
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
6f0b8edb8a65d983b444efd04b787f68938a66f1 | sky/shell/ios/sky_surface.h | sky/shell/ios/sky_surface.h | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <UIKit/UIKit.h>
#import "sky/shell/shell_view.h"
@interface SkySurface : UIView
-(instancetype) initWithShellView:(sky::shell::ShellView *) shellView;
@end
extern "C" {
void SaveFrameToSkPicture();
}
| // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <UIKit/UIKit.h>
#import "sky/shell/shell_view.h"
@interface SkySurface : UIView
-(instancetype) initWithShellView:(sky::shell::ShellView *) shellView;
@end
| Remove deleted header declaration for SaveFrameToSkPicture | Remove deleted header declaration for SaveFrameToSkPicture
| C | bsd-3-clause | tvolkert/engine,jason-simmons/sky_engine,jamesr/sky_engine,jamesr/flutter_engine,cdotstout/sky_engine,lyceel/engine,tvolkert/engine,mpcomplete/engine,devoncarew/engine,devoncarew/sky_engine,flutter/engine,mikejurka/engine,chinmaygarde/flutter_engine,rmacnak-google/engine,mdakin/engine,abarth/sky_engine,tvolkert/engine,chinmaygarde/flutter_engine,abarth/sky_engine,mikejurka/engine,mikejurka/engine,mpcomplete/engine,aam/engine,cdotstout/sky_engine,devoncarew/engine,Hixie/sky_engine,jamesr/sky_engine,lyceel/engine,devoncarew/engine,rmacnak-google/engine,devoncarew/sky_engine,jason-simmons/flutter_engine,aam/engine,jamesr/sky_engine,mpcomplete/engine,krisgiesing/sky_engine,flutter/engine,mpcomplete/flutter_engine,flutter/engine,abarth/sky_engine,devoncarew/sky_engine,devoncarew/sky_engine,mxia/engine,mpcomplete/engine,krisgiesing/sky_engine,jason-simmons/sky_engine,rmacnak-google/engine,mdakin/engine,mikejurka/engine,chinmaygarde/sky_engine,mdakin/engine,mpcomplete/engine,abarth/sky_engine,mxia/engine,tvolkert/engine,chinmaygarde/sky_engine,jason-simmons/flutter_engine,krisgiesing/sky_engine,jamesr/sky_engine,tvolkert/engine,Hixie/sky_engine,jason-simmons/flutter_engine,chinmaygarde/sky_engine,cdotstout/sky_engine,lyceel/engine,chinmaygarde/flutter_engine,chinmaygarde/sky_engine,mikejurka/engine,aam/engine,mxia/engine,devoncarew/engine,chinmaygarde/flutter_engine,jason-simmons/sky_engine,jamesr/flutter_engine,rmacnak-google/engine,mpcomplete/flutter_engine,cdotstout/sky_engine,jamesr/sky_engine,jason-simmons/flutter_engine,Hixie/sky_engine,cdotstout/sky_engine,mxia/engine,rmacnak-google/engine,rmacnak-google/engine,devoncarew/sky_engine,cdotstout/sky_engine,mpcomplete/engine,jason-simmons/sky_engine,jason-simmons/sky_engine,jamesr/flutter_engine,chinmaygarde/sky_engine,mdakin/engine,jamesr/flutter_engine,devoncarew/sky_engine,jason-simmons/sky_engine,chinmaygarde/flutter_engine,chinmaygarde/flutter_engine,mpcomplete/flutter_engine,flutter/engine,aam/engine,mxia/engine,mikejurka/engine,Hixie/sky_engine,mdakin/engine,aam/engine,flutter/engine,lyceel/engine,mpcomplete/engine,mxia/engine,devoncarew/engine,mpcomplete/flutter_engine,abarth/sky_engine,tvolkert/engine,chinmaygarde/flutter_engine,Hixie/sky_engine,jason-simmons/flutter_engine,jamesr/sky_engine,mikejurka/engine,aam/engine,Hixie/sky_engine,krisgiesing/sky_engine,flutter/engine,mdakin/engine,lyceel/engine,Hixie/sky_engine,jamesr/flutter_engine,jamesr/flutter_engine,mikejurka/engine,jamesr/sky_engine,jason-simmons/sky_engine,mdakin/engine,mpcomplete/flutter_engine,mxia/engine,abarth/sky_engine,aam/engine,jamesr/flutter_engine,chinmaygarde/sky_engine,krisgiesing/sky_engine,mdakin/engine,flutter/engine,tvolkert/engine,lyceel/engine,aam/engine,jason-simmons/flutter_engine,mikejurka/engine,mxia/engine,jason-simmons/flutter_engine,mpcomplete/engine,abarth/sky_engine,krisgiesing/sky_engine,jamesr/flutter_engine,devoncarew/engine,devoncarew/sky_engine,flutter/engine,jason-simmons/flutter_engine,mpcomplete/flutter_engine,lyceel/engine,Hixie/sky_engine,chinmaygarde/sky_engine,jamesr/flutter_engine,rmacnak-google/engine,devoncarew/engine,cdotstout/sky_engine,krisgiesing/sky_engine |
d6476e4f3c29fc64ddb0b6ac8db81162deff1a41 | php_chdb.h | php_chdb.h | /* This module exposes to PHP the equivalent of:
* // Creates a chdb file containing the key-value pairs specified in the
* // array $data, or throws an exception in case of error.
* function chdb_create($pathname, $data);
*
* // Represents a loaded chdb file.
* class chdb
* {
* // Loads a chdb file, or throws an exception in case of error.
* public function __construct($pathname);
*
* // Returns the value of the given $key, or null if not found.
* public function get($key);
* }
*/
#ifndef PHP_CHDB_H
#define PHP_CHDB_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <php.h>
#define PHP_CHDB_VERSION "0.1"
extern zend_module_entry chdb_module_entry;
#define phpext_chdb_ptr &chdb_module_entry
#endif
| /* This module exposes to PHP the equivalent of:
* // Creates a chdb file containing the key-value pairs specified in the
* // array $data, or throws an exception in case of error.
* function chdb_create($pathname, $data);
*
* // Represents a loaded chdb file.
* class chdb
* {
* // Loads a chdb file, or throws an exception in case of error.
* public function __construct($pathname);
*
* // Returns the value of the given $key, or null if not found.
* public function get($key);
* }
*/
#ifndef PHP_CHDB_H
#define PHP_CHDB_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <php.h>
#define PHP_CHDB_VERSION "0.1.0"
extern zend_module_entry chdb_module_entry;
#define phpext_chdb_ptr &chdb_module_entry
#endif
| Change version to 0.1.0 to follow the PHP standard. | Change version to 0.1.0 to follow the PHP standard.
| C | bsd-3-clause | lcastelli/chdb |
745f0a06935763997083b714530421adc44f3452 | src/global.h | src/global.h | #ifndef GLOBAL__H
#define GLOBAL__H
namespace qflex::global {
// Default verbose level
inline int verbose = 0;
// Max allowed memory (default: 1GB)
inline std::size_t memory_limit = 1L << 30;
// Interval to track memory (default: 0)
inline std::size_t track_memory_seconds = 0;
} // namespace qflex::global
#endif
| #ifndef GLOBAL__H
#define GLOBAL__H
#include <cstddef>
namespace qflex::global {
// Default verbose level
inline int verbose = 0;
// Max allowed memory (default: 1GB)
inline std::size_t memory_limit = 1L << 30;
// Interval to track memory (default: 0)
inline std::size_t track_memory_seconds = 0;
} // namespace qflex::global
#endif
| Add <cstddef> to use std::size_t. | Add <cstddef> to use std::size_t.
| C | apache-2.0 | ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex |
59414b372770f32d94689711acde04b7c7d75fea | ReactiveCocoaFramework/ReactiveCocoa/RACDelegateProxy.h | ReactiveCocoaFramework/ReactiveCocoa/RACDelegateProxy.h | //
// RACDelegateProxy.h
// ReactiveCocoa
//
// Created by Cody Krieger on 5/19/12.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
// A delegate object suitable for using -rac_signalForSelector:fromProtocol:
// upon.
@interface RACDelegateProxy : NSObject
// The delegate to which messages should be forwarded if not handled by
// any -rac_signalForSelector:fromProtocol: applications.
@property (nonatomic, weak) id rac_proxiedDelegate;
// Creates a delegate proxy which will respond to selectors from `protocol`.
- (instancetype)initWithProtocol:(Protocol *)protocol;
@end
| //
// RACDelegateProxy.h
// ReactiveCocoa
//
// Created by Cody Krieger on 5/19/12.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
// A delegate object suitable for using -rac_signalForSelector:fromProtocol:
// upon.
@interface RACDelegateProxy : NSObject
// The delegate to which messages should be forwarded if not handled by
// any -rac_signalForSelector:fromProtocol: applications.
@property (nonatomic, unsafe_unretained) id rac_proxiedDelegate;
// Creates a delegate proxy which will respond to selectors from `protocol`.
- (instancetype)initWithProtocol:(Protocol *)protocol;
@end
| Use unsafe_unretained for delegates, to support OS X | Use unsafe_unretained for delegates, to support OS X
| C | mit | zhigang1992/ReactiveCocoa,nickcheng/ReactiveCocoa,andersio/ReactiveCocoa,ShawnLeee/ReactiveCocoa,chieryw/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,j364960953/ReactiveCocoa,zhukaixy/ReactiveCocoa,WEIBP/ReactiveCocoa,longv2go/ReactiveCocoa,Ray0218/ReactiveCocoa,mtxs007/ReactiveCocoa,zzqiltw/ReactiveCocoa,wpstarnice/ReactiveCocoa,taylormoonxu/ReactiveCocoa,natan/ReactiveCocoa,hj3938/ReactiveCocoa,taylormoonxu/ReactiveCocoa,ceekayel/ReactiveCocoa,eyu1988/ReactiveCocoa,Juraldinio/ReactiveCocoa,sujeking/ReactiveCocoa,leichunfeng/ReactiveCocoa,jrmiddle/ReactiveCocoa,KuPai32G/ReactiveCocoa,fanghao085/ReactiveCocoa,itschaitanya/ReactiveCocoa,takeshineshiro/ReactiveCocoa,Farteen/ReactiveCocoa,walkingsmarts/ReactiveCocoa,terry408911/ReactiveCocoa,Rupert-RR/ReactiveCocoa,buildo/ReactiveCocoa,kiurentu/ReactiveCocoa,isghe/ReactiveCocoa,beni55/ReactiveCocoa,yonekawa/ReactiveCocoa,ikesyo/ReactiveCocoa,tipbit/ReactiveCocoa,BrooksWon/ReactiveCocoa,j364960953/ReactiveCocoa,cstars135/ReactiveCocoa,libiao88/ReactiveCocoa,yizzuide/ReactiveCocoa,dachaoisme/ReactiveCocoa,WEIBP/ReactiveCocoa,jsslai/ReactiveCocoa,bscarano/ReactiveCocoa,isghe/ReactiveCocoa,loupman/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,monkeydbobo/ReactiveCocoa,FelixYin66/ReactiveCocoa,DreamHill/ReactiveCocoa,beni55/ReactiveCocoa,FelixYin66/ReactiveCocoa,JohnJin007/ReactiveCocoa,335g/ReactiveCocoa,calebd/ReactiveCocoa,rpowelll/ReactiveCocoa,LHDsimon/ReactiveCocoa,alvinvarghese/ReactiveCocoa,howandhao/ReactiveCocoa,calebd/ReactiveCocoa,emodeqidao/ReactiveCocoa,esttorhe/ReactiveCocoa,fhchina/ReactiveCocoa,gabemdev/ReactiveCocoa,cnbin/ReactiveCocoa,JohnJin007/ReactiveCocoa,on99/ReactiveCocoa,Juraldinio/ReactiveCocoa,paulyoung/ReactiveCocoa,dz1111/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,mattpetters/ReactiveCocoa,ohwutup/ReactiveCocoa,SmartEncounter/ReactiveCocoa,WEIBP/ReactiveCocoa,brightcove/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,mxxiv/ReactiveCocoa,yytong/ReactiveCocoa,Khan/ReactiveCocoa,Pingco/ReactiveCocoa,loupman/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,jsslai/ReactiveCocoa,almassapargali/ReactiveCocoa,andersio/ReactiveCocoa,Farteen/ReactiveCocoa,wpstarnice/ReactiveCocoa,SuPair/ReactiveCocoa,hbucius/ReactiveCocoa,wpstarnice/ReactiveCocoa,towik/ReactiveCocoa,nickcheng/ReactiveCocoa,200895045/ReactiveCocoa,add715/ReactiveCocoa,imkerberos/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,cogddo/ReactiveCocoa,KJin99/ReactiveCocoa,CQXfly/ReactiveCocoa,jsslai/ReactiveCocoa,jaylib/ReactiveCocoa,valleyman86/ReactiveCocoa,ericzhou2008/ReactiveCocoa,brightcove/ReactiveCocoa,Eveian/ReactiveCocoa,icepy/ReactiveCocoa,AllanChen/ReactiveCocoa,nickcheng/ReactiveCocoa,vincentiss/ReactiveCocoa,chieryw/ReactiveCocoa,goodheart/ReactiveCocoa,gengjf/ReactiveCocoa,vincentiss/ReactiveCocoa,zxq3220122/ReactiveCocoa,Eveian/ReactiveCocoa,sdhzwm/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,xiaoliyang/ReactiveCocoa,ddc391565320/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,huiping192/ReactiveCocoa,Ricowere/ReactiveCocoa,hbucius/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,Carthage/ReactiveCocoa,victorlin/ReactiveCocoa,tzongw/ReactiveCocoa,qq644531343/ReactiveCocoa,Carthage/ReactiveCocoa,SuPair/ReactiveCocoa,koamac/ReactiveCocoa,cogddo/ReactiveCocoa,JackLian/ReactiveCocoa,jianwoo/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,tonyarnold/ReactiveCocoa,ailyanlu/ReactiveCocoa,jackywpy/ReactiveCocoa,CQXfly/ReactiveCocoa,paulyoung/ReactiveCocoa,stupidfive/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,liufeigit/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,jeelun/ReactiveCocoa,wangqi211/ReactiveCocoa,stupidfive/ReactiveCocoa,j364960953/ReactiveCocoa,yizzuide/ReactiveCocoa,jam891/ReactiveCocoa,swizzlr/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,Ethan89/ReactiveCocoa,Liquidsoul/ReactiveCocoa,on99/ReactiveCocoa,huiping192/ReactiveCocoa,tzongw/ReactiveCocoa,tonyli508/ReactiveCocoa,itschaitanya/ReactiveCocoa,takeshineshiro/ReactiveCocoa,bensonday/ReactiveCocoa,ioshger0125/ReactiveCocoa,chieryw/ReactiveCocoa,KuPai32G/ReactiveCocoa,ioshger0125/ReactiveCocoa,jrmiddle/ReactiveCocoa,sandyway/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,wangqi211/ReactiveCocoa,zzzworm/ReactiveCocoa,zhiwen1024/ReactiveCocoa,isghe/ReactiveCocoa,natestedman/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,chao95957/ReactiveCocoa,nikita-leonov/ReactiveCocoa,nikita-leonov/ReactiveCocoa,zxq3220122/ReactiveCocoa,jackywpy/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,taylormoonxu/ReactiveCocoa,yizzuide/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,llb1119/test,brasbug/ReactiveCocoa,nikita-leonov/ReactiveCocoa,yonekawa/ReactiveCocoa,victorlin/ReactiveCocoa,esttorhe/ReactiveCocoa,hbucius/ReactiveCocoa,brasbug/ReactiveCocoa,zhukaixy/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,CQXfly/ReactiveCocoa,SanChain/ReactiveCocoa,KuPai32G/ReactiveCocoa,cogddo/ReactiveCocoa,richeterre/ReactiveCocoa,dskatz22/ReactiveCocoa,Ricowere/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,ericzhou2008/ReactiveCocoa,Liquidsoul/ReactiveCocoa,zhiwen1024/ReactiveCocoa,lixar/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,zhaoguohui/ReactiveCocoa,jianwoo/ReactiveCocoa,jeelun/ReactiveCocoa,cnbin/ReactiveCocoa,goodheart/ReactiveCocoa,tiger8888/ReactiveCocoa,dskatz22/ReactiveCocoa,qq644531343/ReactiveCocoa,zhukaixy/ReactiveCocoa,kaylio/ReactiveCocoa,shaohung001/ReactiveCocoa,zhigang1992/ReactiveCocoa,jam891/ReactiveCocoa,dz1111/ReactiveCocoa,walkingsmarts/ReactiveCocoa,Eveian/ReactiveCocoa,dskatz22/ReactiveCocoa,Ricowere/ReactiveCocoa,Pingco/ReactiveCocoa,almassapargali/ReactiveCocoa,Liquidsoul/ReactiveCocoa,smilypeda/ReactiveCocoa,ztchena/ReactiveCocoa,qq644531343/ReactiveCocoa,zhenlove/ReactiveCocoa,windgo/ReactiveCocoa,valleyman86/ReactiveCocoa,richeterre/ReactiveCocoa,alvinvarghese/ReactiveCocoa,clg0118/ReactiveCocoa,emodeqidao/ReactiveCocoa,mattpetters/ReactiveCocoa,xiaobing2007/ReactiveCocoa,cstars135/ReactiveCocoa,eliperkins/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,tonyarnold/ReactiveCocoa,vincentiss/ReactiveCocoa,mattpetters/ReactiveCocoa,kiurentu/ReactiveCocoa,terry408911/ReactiveCocoa,yoichitgy/ReactiveCocoa,shuxiashusheng/ReactiveCocoa,shaohung001/ReactiveCocoa,brightcove/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,PSPDFKit-labs/ReactiveCocoa,kevin-zqw/ReactiveCocoa,esttorhe/ReactiveCocoa,Juraldinio/ReactiveCocoa,buildo/ReactiveCocoa,Ray0218/ReactiveCocoa,SmartEncounter/ReactiveCocoa,longv2go/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,luerhouhou/ReactiveCocoa,335g/ReactiveCocoa,koamac/ReactiveCocoa,natestedman/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,fhchina/ReactiveCocoa,yangyangluoluo/ReactiveCocoa,jrmiddle/ReactiveCocoa,dachaoisme/ReactiveCocoa,SanChain/ReactiveCocoa,AlanJN/ReactiveCocoa,libiao88/ReactiveCocoa,hj3938/ReactiveCocoa,goodheart/ReactiveCocoa,fhchina/ReactiveCocoa,xiaoliyang/ReactiveCocoa,on99/ReactiveCocoa,335g/ReactiveCocoa,pzw224/ReactiveCocoa,dullgrass/ReactiveCocoa,liufeigit/ReactiveCocoa,kaylio/ReactiveCocoa,xiaoliyang/ReactiveCocoa,Khan/ReactiveCocoa,swizzlr/ReactiveCocoa,Rupert-RR/ReactiveCocoa,cnbin/ReactiveCocoa,tzongw/ReactiveCocoa,GuitarPlayer-Ma/ReactiveCocoa,lixar/ReactiveCocoa,hoanganh6491/ReactiveCocoa,loupman/ReactiveCocoa,natestedman/ReactiveCocoa,tornade0913/ReactiveCocoa,shaohung001/ReactiveCocoa,zhenlove/ReactiveCocoa,Khan/ReactiveCocoa,zzzworm/ReactiveCocoa,xumaolin/ReactiveCocoa,takeshineshiro/ReactiveCocoa,Ethan89/ReactiveCocoa,fanghao085/ReactiveCocoa,SuPair/ReactiveCocoa,hilllinux/ReactiveCocoa,add715/ReactiveCocoa,ceekayel/ReactiveCocoa,hilllinux/ReactiveCocoa,stevielu/ReactiveCocoa,Ethan89/ReactiveCocoa,hoanganh6491/ReactiveCocoa,richeterre/ReactiveCocoa,tonyarnold/ReactiveCocoa,OneSmallTree/ReactiveCocoa,yonekawa/ReactiveCocoa,stevielu/ReactiveCocoa,ailyanlu/ReactiveCocoa,tonyli508/ReactiveCocoa,ailyanlu/ReactiveCocoa,eyu1988/ReactiveCocoa,yoichitgy/ReactiveCocoa,jaylib/ReactiveCocoa,smilypeda/ReactiveCocoa,Farteen/ReactiveCocoa,xumaolin/ReactiveCocoa,ztchena/ReactiveCocoa,leichunfeng/ReactiveCocoa,BrooksWon/ReactiveCocoa,itschaitanya/ReactiveCocoa,howandhao/ReactiveCocoa,bscarano/ReactiveCocoa,almassapargali/ReactiveCocoa,sujeking/ReactiveCocoa,eliperkins/ReactiveCocoa,buildo/ReactiveCocoa,jeelun/ReactiveCocoa,ddc391565320/ReactiveCocoa,longv2go/ReactiveCocoa,huiping192/ReactiveCocoa,leelili/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,dachaoisme/ReactiveCocoa,towik/ReactiveCocoa,liufeigit/ReactiveCocoa,DreamHill/ReactiveCocoa,pzw224/ReactiveCocoa,lixar/ReactiveCocoa,tipbit/ReactiveCocoa,DreamHill/ReactiveCocoa,bencochran/ReactiveCocoa,yoichitgy/ReactiveCocoa,DongDongDongDong/ReactiveCocoa,chao95957/ReactiveCocoa,200895045/ReactiveCocoa,tornade0913/ReactiveCocoa,eliperkins/ReactiveCocoa,ztchena/ReactiveCocoa,OneSmallTree/ReactiveCocoa,xumaolin/ReactiveCocoa,sugar2010/ReactiveCocoa,walkingsmarts/ReactiveCocoa,llb1119/test,AllanChen/ReactiveCocoa,sdhzwm/ReactiveCocoa,tonyli508/ReactiveCocoa,xulibao/ReactiveCocoa,Ricowere/ReactiveCocoa,xulibao/ReactiveCocoa,llb1119/test,jianwoo/ReactiveCocoa,BlessNeo/ReactiveCocoa,KJin99/ReactiveCocoa,bscarano/ReactiveCocoa,nickcheng/ReactiveCocoa,ioshger0125/ReactiveCocoa,gabemdev/ReactiveCocoa,sugar2010/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,sugar2010/ReactiveCocoa,hilllinux/ReactiveCocoa,bensonday/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,CCOOOOLL/ReactiveCocoa,RuiAAPeres/ReactiveCocoa,emodeqidao/ReactiveCocoa,zhiwen1024/ReactiveCocoa,beni55/ReactiveCocoa,ShawnLeee/ReactiveCocoa,icepy/ReactiveCocoa,luerhouhou/ReactiveCocoa,OneSmallTree/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,kaylio/ReactiveCocoa,gengjf/ReactiveCocoa,ddc391565320/ReactiveCocoa,sujeking/ReactiveCocoa,SanChain/ReactiveCocoa,leelili/ReactiveCocoa,BlessNeo/ReactiveCocoa,alvinvarghese/ReactiveCocoa,clg0118/ReactiveCocoa,huiping192/ReactiveCocoa,KJin99/ReactiveCocoa,zhenlove/ReactiveCocoa,jaylib/ReactiveCocoa,windgo/ReactiveCocoa,sdhzwm/ReactiveCocoa,ikesyo/ReactiveCocoa,stevielu/ReactiveCocoa,leichunfeng/ReactiveCocoa,mtxs007/ReactiveCocoa,clg0118/ReactiveCocoa,smilypeda/ReactiveCocoa,kevin-zqw/ReactiveCocoa,wangqi211/ReactiveCocoa,mxxiv/ReactiveCocoa,xiaobing2007/ReactiveCocoa,yytong/ReactiveCocoa,windgo/ReactiveCocoa,200895045/ReactiveCocoa,hj3938/ReactiveCocoa,rpowelll/ReactiveCocoa,chao95957/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,kiurentu/ReactiveCocoa,Remitly/ReactiveCocoa,OnTheWay1988/ReactiveCocoa,stupidfive/ReactiveCocoa,zhigang1992/ReactiveCocoa,zzqiltw/ReactiveCocoa,Pingco/ReactiveCocoa,xulibao/ReactiveCocoa,eyu1988/ReactiveCocoa,ohwutup/ReactiveCocoa,rpowelll/ReactiveCocoa,BlessNeo/ReactiveCocoa,Remitly/ReactiveCocoa,zzqiltw/ReactiveCocoa,Remitly/ReactiveCocoa,sandyway/ReactiveCocoa,juliangrosshauser/ReactiveCocoa,calebd/ReactiveCocoa,LHDsimon/ReactiveCocoa,leelili/ReactiveCocoa,andersio/ReactiveCocoa,terry408911/ReactiveCocoa,Pikdays/ReactiveCocoa,monkeydbobo/ReactiveCocoa,add715/ReactiveCocoa,yytong/ReactiveCocoa,jam891/ReactiveCocoa,Pikdays/ReactiveCocoa,Ray0218/ReactiveCocoa,paulyoung/ReactiveCocoa,FelixYin66/ReactiveCocoa,brasbug/ReactiveCocoa,tiger8888/ReactiveCocoa,bensonday/ReactiveCocoa,monkeydbobo/ReactiveCocoa,jaylib/ReactiveCocoa,JackLian/ReactiveCocoa,icepy/ReactiveCocoa,AlanJN/ReactiveCocoa,jackywpy/ReactiveCocoa,ericzhou2008/ReactiveCocoa,hoanganh6491/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,luerhouhou/ReactiveCocoa,ShawnLeee/ReactiveCocoa,valleyman86/ReactiveCocoa,yangshengchaoios/ReactiveCocoa,ceekayel/ReactiveCocoa,xiaobing2007/ReactiveCocoa,imkerberos/ReactiveCocoa,zhaoguohui/ReactiveCocoa,libiao88/ReactiveCocoa,AndyZhaoHe/ReactiveCocoa,cstars135/ReactiveCocoa,Pikdays/ReactiveCocoa,AlanJN/ReactiveCocoa,natan/ReactiveCocoa,tiger8888/ReactiveCocoa,Adlai-Holler/ReactiveCocoa,towik/ReactiveCocoa,bencochran/ReactiveCocoa,ohwutup/ReactiveCocoa,esttorhe/ReactiveCocoa,gengjf/ReactiveCocoa,howandhao/ReactiveCocoa,koamac/ReactiveCocoa,zhaoguohui/ReactiveCocoa,zxq3220122/ReactiveCocoa,JohnJin007/ReactiveCocoa,Rupert-RR/ReactiveCocoa,LHDsimon/ReactiveCocoa,JackLian/ReactiveCocoa,bencochran/ReactiveCocoa,kevin-zqw/ReactiveCocoa,mtxs007/ReactiveCocoa,tornade0913/ReactiveCocoa,zzzworm/ReactiveCocoa,pzw224/ReactiveCocoa,imkerberos/ReactiveCocoa,dullgrass/ReactiveCocoa,BrooksWon/ReactiveCocoa,victorlin/ReactiveCocoa,dullgrass/ReactiveCocoa,Carthage/ReactiveCocoa,natan/ReactiveCocoa,sandyway/ReactiveCocoa,fanghao085/ReactiveCocoa,dz1111/ReactiveCocoa,mxxiv/ReactiveCocoa |
64aff1d651f06206a181e9a3883da913edf43b77 | arch/microblaze/include/asm/sections.h | arch/microblaze/include/asm/sections.h | /*
* Copyright (C) 2008-2009 Michal Simek <[email protected]>
* Copyright (C) 2008-2009 PetaLogix
* Copyright (C) 2006 Atmark Techno, Inc.
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#ifndef _ASM_MICROBLAZE_SECTIONS_H
#define _ASM_MICROBLAZE_SECTIONS_H
#include <asm-generic/sections.h>
# ifndef __ASSEMBLY__
extern char _ssbss[], _esbss[];
extern unsigned long __ivt_start[], __ivt_end[];
extern char _etext[], _stext[];
extern u32 _fdt_start[], _fdt_end[];
# endif /* !__ASSEMBLY__ */
#endif /* _ASM_MICROBLAZE_SECTIONS_H */
| /*
* Copyright (C) 2008-2009 Michal Simek <[email protected]>
* Copyright (C) 2008-2009 PetaLogix
* Copyright (C) 2006 Atmark Techno, Inc.
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#ifndef _ASM_MICROBLAZE_SECTIONS_H
#define _ASM_MICROBLAZE_SECTIONS_H
#include <asm-generic/sections.h>
# ifndef __ASSEMBLY__
extern char _ssbss[], _esbss[];
extern unsigned long __ivt_start[], __ivt_end[];
extern u32 _fdt_start[], _fdt_end[];
# endif /* !__ASSEMBLY__ */
#endif /* _ASM_MICROBLAZE_SECTIONS_H */
| Remove duplicate declarations of _stext[] and _etext[] | microblaze: Remove duplicate declarations of _stext[] and _etext[]
They're already provided by <asm/sections.h>.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: [email protected]
Signed-off-by: Michal Simek <[email protected]>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
43c6135208bd4f7a182ac3d871039d804ecc0f88 | include/aerial_autonomy/actions_guards/hovering_functors.h | include/aerial_autonomy/actions_guards/hovering_functors.h | #pragma once
#include <aerial_autonomy/actions_guards/base_functors.h>
#include <aerial_autonomy/basic_events.h>
#include <aerial_autonomy/logic_states/base_state.h>
#include <aerial_autonomy/robot_systems/uav_system.h>
#include <parsernode/common.h>
/**
* @brief Internal action when hovering.
*
* @tparam LogicStateMachineT Logic state machine used to process events
*/
template <class LogicStateMachineT>
struct HoveringInternalActionFunctor_
: EventAgnosticActionFunctor<UAVSystem, LogicStateMachineT> {
/**
* @brief Checks for enough battery voltage and land if battery critical
*
* @param robot_system robot system to get sensor data
* @param logic_state_machine logic state machine to trigger events
*/
void run(UAVSystem &robot_system, LogicStateMachineT &logic_state_machine) {
parsernode::common::quaddata data = robot_system.getUAVData();
// Transition to hovering state once reached high altitude
// Can also use uav status here TODO (Gowtham)
if (data.batterypercent < 40) {
logic_state_machine.process_event(Land());
}
}
};
/**
* @brief Hovering state that uses internal action
*
* @tparam LogicStateMachineT Logic state machine used to process events
*/
template <class LogicStateMachineT>
using Hovering_ = BaseState<UAVSystem, LogicStateMachineT,
HoveringInternalActionFunctor_<LogicStateMachineT>>;
| #pragma once
#include <aerial_autonomy/actions_guards/base_functors.h>
#include <aerial_autonomy/basic_events.h>
#include <aerial_autonomy/logic_states/base_state.h>
#include <aerial_autonomy/robot_systems/uav_system.h>
#include <parsernode/common.h>
using namespace basic_events;
/**
* @brief Internal action when hovering.
*
* @tparam LogicStateMachineT Logic state machine used to process events
*/
template <class LogicStateMachineT>
struct HoveringInternalActionFunctor_
: EventAgnosticActionFunctor<UAVSystem, LogicStateMachineT> {
/**
* @brief Checks for enough battery voltage and land if battery critical
*
* @param robot_system robot system to get sensor data
* @param logic_state_machine logic state machine to trigger events
*/
void run(UAVSystem &robot_system, LogicStateMachineT &logic_state_machine) {
parsernode::common::quaddata data = robot_system.getUAVData();
// Transition to hovering state once reached high altitude
// Can also use uav status here TODO (Gowtham)
if (data.batterypercent < 40) {
logic_state_machine.process_event(Land());
}
}
};
/**
* @brief Hovering state that uses internal action
*
* @tparam LogicStateMachineT Logic state machine used to process events
*/
template <class LogicStateMachineT>
using Hovering_ = BaseState<UAVSystem, LogicStateMachineT,
HoveringInternalActionFunctor_<LogicStateMachineT>>;
| Fix bug to avoid compilation failure | Fix bug to avoid compilation failure
The namespace basic_events is missing hovering_functors file
| C | mpl-2.0 | jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy |
9866c2c2d649fac485bc47aa77cffbc93d1c6c9e | gpu/include/GrGLConfig_chrome.h | gpu/include/GrGLConfig_chrome.h | #ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED
#define GR_SUPPORT_GLES2 1
// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer 0
#define GR_GL_PLATFORM_HEADER <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h>
#define GR_GL_FUNCTION_TYPE
#define GR_GL_PROC_ADDRESS(X) &X
// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT GR_BGRA
// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START 0
#endif
| #ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED
#define GR_SUPPORT_GLES2 1
// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer 0
#define GR_GL_PLATFORM_HEADER <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h>
#define GR_GL_FUNCTION_TYPE
#define GR_GL_PROC_ADDRESS(X) &X
// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT GR_GL_BGRA
// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START 0
#endif
| Fix macro in Chrome's GL config file | Fix macro in Chrome's GL config file
Review URL: http://codereview.appspot.com/4308041/
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@980 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | Cue/skia,Frankie-666/color-emoji.skia,MatChung/color-emoji.skia,Cue/skia,mrobinson/skia,metajack/skia,Frankie-666/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,metajack/skia,hbwhlklive/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,Cue/skia,Frankie-666/color-emoji.skia,mrobinson/skia,MatChung/color-emoji.skia,metajack/skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,Cue/skia,Frankie-666/color-emoji.skia,metajack/skia,mrobinson/skia,mrobinson/skia,mrobinson/skia |
226a53d3acd7c4cfd63cd391ae9189886c6744e9 | cint/inc/cintdictversion.h | cint/inc/cintdictversion.h | /***********************************************************************
* cint (C/C++ interpreter)
************************************************************************
* CINT header file cintdictversion.h
************************************************************************
* Description:
* definition of the dictionary API version
************************************************************************
* Copyright(c) 1995~2008 Masaharu Goto ([email protected])
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#ifndef INCLUDE_CINTDICTVERSION
#define INCLUDE_CINTDICTVERSION
#define G__CINTDICTVERSION 2008-01-21
#endif /* INCLUDE_CINTDICTVERSION */
| Add a tag (dummy) header file that will be updated whenever CINT's dictionaries need to be regenerated. | Add a tag (dummy) header file that will be updated whenever CINT's dictionaries need to be regenerated.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@21793 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | gganis/root,root-mirror/root,abhinavmoudgil95/root,vukasinmilosevic/root,gbitzes/root,bbockelm/root,zzxuanyuan/root,abhinavmoudgil95/root,karies/root,beniz/root,georgtroska/root,olifre/root,olifre/root,ffurano/root5,davidlt/root,lgiommi/root,zzxuanyuan/root-compressor-dummy,beniz/root,agarciamontoro/root,mkret2/root,tc3t/qoot,cxx-hep/root-cern,root-mirror/root,krafczyk/root,simonpf/root,sawenzel/root,simonpf/root,omazapa/root-old,sawenzel/root,sirinath/root,dfunke/root,vukasinmilosevic/root,mhuwiler/rootauto,Y--/root,gganis/root,Dr15Jones/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,mhuwiler/rootauto,cxx-hep/root-cern,olifre/root,cxx-hep/root-cern,arch1tect0r/root,lgiommi/root,vukasinmilosevic/root,mattkretz/root,cxx-hep/root-cern,BerserkerTroll/root,kirbyherm/root-r-tools,karies/root,tc3t/qoot,evgeny-boger/root,zzxuanyuan/root,gbitzes/root,agarciamontoro/root,Duraznos/root,olifre/root,0x0all/ROOT,strykejern/TTreeReader,bbockelm/root,olifre/root,dfunke/root,veprbl/root,cxx-hep/root-cern,esakellari/my_root_for_test,sirinath/root,esakellari/root,esakellari/root,sawenzel/root,evgeny-boger/root,Duraznos/root,mkret2/root,agarciamontoro/root,dfunke/root,omazapa/root,mkret2/root,Y--/root,omazapa/root,vukasinmilosevic/root,georgtroska/root,thomaskeck/root,jrtomps/root,buuck/root,smarinac/root,esakellari/my_root_for_test,sirinath/root,mattkretz/root,perovic/root,smarinac/root,sbinet/cxx-root,mattkretz/root,georgtroska/root,root-mirror/root,buuck/root,smarinac/root,abhinavmoudgil95/root,davidlt/root,esakellari/root,sawenzel/root,omazapa/root,satyarth934/root,bbockelm/root,krafczyk/root,lgiommi/root,krafczyk/root,davidlt/root,nilqed/root,zzxuanyuan/root-compressor-dummy,sbinet/cxx-root,mkret2/root,olifre/root,gbitzes/root,beniz/root,buuck/root,gganis/root,nilqed/root,buuck/root,krafczyk/root,olifre/root,agarciamontoro/root,nilqed/root,root-mirror/root,bbockelm/root,sbinet/cxx-root,karies/root,mhuwiler/rootauto,beniz/root,thomaskeck/root,esakellari/root,jrtomps/root,mattkretz/root,smarinac/root,jrtomps/root,Dr15Jones/root,jrtomps/root,georgtroska/root,kirbyherm/root-r-tools,Duraznos/root,agarciamontoro/root,Duraznos/root,omazapa/root-old,bbockelm/root,abhinavmoudgil95/root,omazapa/root-old,beniz/root,mhuwiler/rootauto,abhinavmoudgil95/root,sirinath/root,smarinac/root,jrtomps/root,sbinet/cxx-root,perovic/root,alexschlueter/cern-root,BerserkerTroll/root,arch1tect0r/root,CristinaCristescu/root,Duraznos/root,veprbl/root,davidlt/root,ffurano/root5,buuck/root,BerserkerTroll/root,CristinaCristescu/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,mkret2/root,jrtomps/root,vukasinmilosevic/root,sbinet/cxx-root,alexschlueter/cern-root,nilqed/root,0x0all/ROOT,beniz/root,Y--/root,lgiommi/root,veprbl/root,georgtroska/root,abhinavmoudgil95/root,sirinath/root,Y--/root,bbockelm/root,lgiommi/root,omazapa/root-old,davidlt/root,lgiommi/root,georgtroska/root,gganis/root,simonpf/root,BerserkerTroll/root,sawenzel/root,gbitzes/root,georgtroska/root,sbinet/cxx-root,abhinavmoudgil95/root,abhinavmoudgil95/root,arch1tect0r/root,sirinath/root,bbockelm/root,esakellari/my_root_for_test,BerserkerTroll/root,zzxuanyuan/root,Duraznos/root,Dr15Jones/root,gganis/root,Duraznos/root,sirinath/root,olifre/root,CristinaCristescu/root,cxx-hep/root-cern,thomaskeck/root,nilqed/root,omazapa/root,0x0all/ROOT,omazapa/root,gbitzes/root,buuck/root,pspe/root,krafczyk/root,beniz/root,root-mirror/root,davidlt/root,0x0all/ROOT,lgiommi/root,strykejern/TTreeReader,mkret2/root,omazapa/root-old,georgtroska/root,evgeny-boger/root,zzxuanyuan/root,gganis/root,jrtomps/root,sawenzel/root,bbockelm/root,lgiommi/root,0x0all/ROOT,davidlt/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,perovic/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,mattkretz/root,root-mirror/root,beniz/root,tc3t/qoot,ffurano/root5,mkret2/root,tc3t/qoot,evgeny-boger/root,abhinavmoudgil95/root,veprbl/root,gganis/root,sawenzel/root,esakellari/my_root_for_test,omazapa/root-old,kirbyherm/root-r-tools,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,jrtomps/root,kirbyherm/root-r-tools,mattkretz/root,beniz/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,tc3t/qoot,buuck/root,cxx-hep/root-cern,veprbl/root,jrtomps/root,satyarth934/root,omazapa/root-old,veprbl/root,esakellari/root,kirbyherm/root-r-tools,simonpf/root,smarinac/root,mhuwiler/rootauto,gbitzes/root,agarciamontoro/root,vukasinmilosevic/root,Y--/root,zzxuanyuan/root,zzxuanyuan/root,dfunke/root,olifre/root,sbinet/cxx-root,omazapa/root,arch1tect0r/root,thomaskeck/root,pspe/root,sbinet/cxx-root,mhuwiler/rootauto,sirinath/root,CristinaCristescu/root,mhuwiler/rootauto,BerserkerTroll/root,0x0all/ROOT,krafczyk/root,tc3t/qoot,kirbyherm/root-r-tools,simonpf/root,BerserkerTroll/root,sawenzel/root,buuck/root,lgiommi/root,gbitzes/root,0x0all/ROOT,omazapa/root-old,esakellari/my_root_for_test,krafczyk/root,zzxuanyuan/root,bbockelm/root,CristinaCristescu/root,zzxuanyuan/root,evgeny-boger/root,BerserkerTroll/root,mhuwiler/rootauto,tc3t/qoot,perovic/root,georgtroska/root,agarciamontoro/root,BerserkerTroll/root,evgeny-boger/root,CristinaCristescu/root,sbinet/cxx-root,karies/root,satyarth934/root,omazapa/root,esakellari/root,zzxuanyuan/root-compressor-dummy,simonpf/root,veprbl/root,dfunke/root,Dr15Jones/root,strykejern/TTreeReader,vukasinmilosevic/root,Y--/root,zzxuanyuan/root-compressor-dummy,gganis/root,nilqed/root,esakellari/root,root-mirror/root,veprbl/root,gbitzes/root,arch1tect0r/root,agarciamontoro/root,satyarth934/root,thomaskeck/root,Y--/root,dfunke/root,0x0all/ROOT,mattkretz/root,vukasinmilosevic/root,dfunke/root,veprbl/root,perovic/root,sbinet/cxx-root,thomaskeck/root,davidlt/root,tc3t/qoot,omazapa/root-old,satyarth934/root,beniz/root,pspe/root,simonpf/root,root-mirror/root,dfunke/root,root-mirror/root,esakellari/my_root_for_test,simonpf/root,beniz/root,simonpf/root,krafczyk/root,smarinac/root,pspe/root,smarinac/root,pspe/root,sbinet/cxx-root,pspe/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,alexschlueter/cern-root,karies/root,omazapa/root-old,agarciamontoro/root,bbockelm/root,georgtroska/root,perovic/root,arch1tect0r/root,alexschlueter/cern-root,gganis/root,smarinac/root,esakellari/my_root_for_test,ffurano/root5,gbitzes/root,abhinavmoudgil95/root,Dr15Jones/root,tc3t/qoot,mkret2/root,CristinaCristescu/root,esakellari/my_root_for_test,arch1tect0r/root,omazapa/root-old,root-mirror/root,dfunke/root,mattkretz/root,omazapa/root,Y--/root,karies/root,evgeny-boger/root,olifre/root,gbitzes/root,ffurano/root5,satyarth934/root,bbockelm/root,pspe/root,mattkretz/root,buuck/root,lgiommi/root,sirinath/root,zzxuanyuan/root,zzxuanyuan/root,agarciamontoro/root,evgeny-boger/root,smarinac/root,olifre/root,alexschlueter/cern-root,esakellari/my_root_for_test,nilqed/root,buuck/root,kirbyherm/root-r-tools,BerserkerTroll/root,thomaskeck/root,evgeny-boger/root,mkret2/root,karies/root,esakellari/root,strykejern/TTreeReader,ffurano/root5,satyarth934/root,mhuwiler/rootauto,zzxuanyuan/root,mattkretz/root,davidlt/root,arch1tect0r/root,gbitzes/root,sirinath/root,satyarth934/root,mhuwiler/rootauto,perovic/root,perovic/root,Duraznos/root,strykejern/TTreeReader,karies/root,evgeny-boger/root,pspe/root,veprbl/root,0x0all/ROOT,sirinath/root,alexschlueter/cern-root,davidlt/root,perovic/root,vukasinmilosevic/root,karies/root,alexschlueter/cern-root,satyarth934/root,esakellari/my_root_for_test,pspe/root,Dr15Jones/root,Dr15Jones/root,esakellari/root,buuck/root,CristinaCristescu/root,dfunke/root,omazapa/root,nilqed/root,Duraznos/root,mhuwiler/rootauto,krafczyk/root,Y--/root,cxx-hep/root-cern,davidlt/root,thomaskeck/root,perovic/root,karies/root,mkret2/root,agarciamontoro/root,esakellari/root,mattkretz/root,Y--/root,satyarth934/root,karies/root,simonpf/root,krafczyk/root,thomaskeck/root,dfunke/root,CristinaCristescu/root,Duraznos/root,sawenzel/root,georgtroska/root,Duraznos/root,pspe/root,jrtomps/root,vukasinmilosevic/root,krafczyk/root,veprbl/root,root-mirror/root,Y--/root,perovic/root,strykejern/TTreeReader,BerserkerTroll/root,sawenzel/root,nilqed/root,arch1tect0r/root,nilqed/root,gganis/root,jrtomps/root,gganis/root,vukasinmilosevic/root,ffurano/root5,omazapa/root,thomaskeck/root,pspe/root,lgiommi/root,omazapa/root,arch1tect0r/root,esakellari/root,simonpf/root,arch1tect0r/root,mkret2/root,CristinaCristescu/root,nilqed/root,strykejern/TTreeReader |
|
cfbfb1a84ddf81436e086c6f45cb6608b7c1b656 | include/lldb/Symbol/VerifyDecl.h | include/lldb/Symbol/VerifyDecl.h | //===-- VerifyDecl.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_VariableList_h_
#define lldb_VariableList_h_
#include "ClangForward.h"
namespace lldb_private
{
void VerifyDecl (clang::Decl *decl);
}
#endif
| //===-- VerifyDecl.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_VariableList_h_
#define lldb_VariableList_h_
#include "lldb/Core/ClangForward.h"
namespace lldb_private
{
void VerifyDecl (clang::Decl *decl);
}
#endif
| Use full path to ClangForward.h | Use full path to ClangForward.h
Fixes Linux build.
git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@143038 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb |
fbbb09cbea1e6544890a8bd417e424ee25411d39 | optional/capi/ext/proc_spec.c | optional/capi/ext/proc_spec.c | #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(val) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strcat(buffer, StringValuePtr(v));
strcat(buffer, "_");
}
buffer[strlen(buffer) - 1] = 0;
return rb_str_new2(buffer);
}
VALUE sp_underline_concat_proc(VALUE self) {
return rb_proc_new(concat_func, Qnil);
}
#endif
void Init_proc_spec() {
VALUE cls;
cls = rb_define_class("CApiProcSpecs", rb_cObject);
#ifdef HAVE_RB_PROC_NEW
rb_define_method(cls, "underline_concat_proc", sp_underline_concat_proc, 0);
#endif
}
#ifdef __cplusplus
}
#endif
| #include <string.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_PROC_NEW
VALUE concat_func(VALUE args) {
int i;
char buffer[500] = {0};
if (TYPE(args) != T_ARRAY) return Qnil;
for(i = 0; i < RARRAY_LEN(args); ++i) {
VALUE v = RARRAY_PTR(args)[i];
strcat(buffer, StringValuePtr(v));
strcat(buffer, "_");
}
buffer[strlen(buffer) - 1] = 0;
return rb_str_new2(buffer);
}
VALUE sp_underline_concat_proc(VALUE self) {
return rb_proc_new(concat_func, Qnil);
}
#endif
void Init_proc_spec() {
VALUE cls;
cls = rb_define_class("CApiProcSpecs", rb_cObject);
#ifdef HAVE_RB_PROC_NEW
rb_define_method(cls, "underline_concat_proc", sp_underline_concat_proc, 0);
#endif
}
#ifdef __cplusplus
}
#endif
| Fix typo in the commit a5312c77. | Fix typo in the commit a5312c77.
| C | mit | calavera/rubyspec,calavera/rubyspec |
41a35717e8ad8900b72dfc4d711954cb73096b50 | src/BlynkSimpleTinyGSM.h | src/BlynkSimpleTinyGSM.h | /**
* @file BlynkSimpleTinyGSM.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Nov 2016
* @brief
*
*/
#ifndef BlynkSimpleTinyGSM_h
#define BlynkSimpleTinyGSM_h
#ifndef BLYNK_INFO_CONNECTION
#define BLYNK_INFO_CONNECTION "TinyGSM"
#endif
#include <Adapters/BlynkGsmClient.h>
static BlynkArduinoClient _blynkTransport;
BlynkSIM Blynk(_blynkTransport);
#include <BlynkWidgets.h>
#endif
| /**
* @file BlynkSimpleTinyGSM.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Nov 2016
* @brief
*
*/
#ifndef BlynkSimpleTinyGSM_h
#define BlynkSimpleTinyGSM_h
#include <Adapters/BlynkGsmClient.h>
static BlynkArduinoClient _blynkTransport;
BlynkSIM Blynk(_blynkTransport);
#include <BlynkWidgets.h>
#endif
| Move conn. type detection to Adataper | Move conn. type detection to Adataper
| C | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
7e94213f86bd5eaae63a052c44f6e573a2c0a614 | tests/regression/00-sanity/26-strict-loop-enter.c | tests/regression/00-sanity/26-strict-loop-enter.c | //PARAM: --disable ana.int.def_exc --enable ana.int.interval --sets solver slr3tp
int g = 0;
int main() {
int x;
for(x=0; x < 50; x++){
g = 1;
}
// x = [50, 50] after narrow
if(x>50){ // live after widen, but dead after narrow
// node after Pos(x>50) is marked dead at the end
// but the loop is not with x = [51,2147483647]
for(int i=0; i<=0; i--){
g = 57;
}
}
} | //PARAM: --disable ana.int.def_exc --enable ana.int.interval --sets solver slr3tp --enable dbg.debug
// dbg.debug manually enabled since update_suite only enables it when it sees normal assertion (without NOWARN)
#include <assert.h>
int g = 0;
int main() {
int x;
for(x=0; x < 50; x++){
g = 1;
}
// x = [50, 50] after narrow
if(x>50){ // live after widen, but dead after narrow
// node after Pos(x>50) is marked dead at the end
// but the loop is not with x = [51,2147483647]
for(int i=0; i<=0; i--){
g = 57;
}
assert(1); // NOWARN (unreachable)
}
} | Add automatic check to sanity/strict-loop-enter | Add automatic check to sanity/strict-loop-enter
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
7f3d0c064183fb4eab39ce03f8b21c0efb183c17 | gavd/utils.c | gavd/utils.c | /* Copyright (c) 2011 The Chromium OS 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 "verbose.h"
#include "utils.h"
unsigned utils_execute_command(const char *cmd)
{
int result = system(cmd);
if (result == 0) {
verbose_log(0, LOG_WARNING, "%s: '%s' succeeded.",
__FUNCTION__, cmd);
return 1;
} else {
if (result == -1) {
verbose_log(0, LOG_WARNING,
"%s: Unable to invoke '%s'.", __FUNCTION__, cmd);
} else if (result != 0) {
verbose_log(0, LOG_WARNING,
"%s: '%s' failed. Return code: %d.",
__FUNCTION__, cmd, result);
}
return 0;
}
}
| /* Copyright (c) 2011 The Chromium OS 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 "verbose.h"
#include "utils.h"
unsigned utils_execute_command(const char *cmd)
{
int result = system(cmd);
if (result == 0) {
verbose_log(7, LOG_WARNING, "%s: '%s' succeeded.",
__FUNCTION__, cmd);
return 1;
} else {
if (result == -1) {
verbose_log(0, LOG_WARNING,
"%s: Unable to invoke '%s'.", __FUNCTION__, cmd);
} else if (result != 0) {
verbose_log(0, LOG_WARNING,
"%s: '%s' failed. Return code: %d.",
__FUNCTION__, cmd, result);
}
return 0;
}
}
| Reduce spew when using system(). | ADHD: Reduce spew when using system().
Details
Increase the verbosity which is required to output messages about
the successful use of 'system()'.
In short, we don't really care about success; if the command
executed, it's not really necessary to see each command which is
executed at verbosity 0.
Failures are still reported at verbosity 0.
Testing
Built ADHD on tegra2_aebl, x86-mario.
Visual inspection.
BUG=chromium-os:19558
TEST=See above.
Change-Id: Ib1743385e7fc54cb29a098b7e0912ca55a292503
Signed-off-by: Taylor Hutt <[email protected]>
| C | bsd-3-clause | drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd |
fc211a706f4b8a87bea164cff7c1f80b95791ba1 | src/apps/S3DAnalyzer/widgets/sliderdirectjump.h | src/apps/S3DAnalyzer/widgets/sliderdirectjump.h | #ifndef WIDGETS_SLIDERDIRECTJUMP_H
#define WIDGETS_SLIDERDIRECTJUMP_H
#include <QSlider>
class QMouseEvent;
class SliderDirectJump : public QSlider {
Q_OBJECT
public:
explicit SliderDirectJump(QWidget* parent = nullptr);
explicit SliderDirectJump(Qt::Orientation orientation, QWidget* parent = nullptr);
~SliderDirectJump() override;
bool isPressed();
signals:
void valueClicked(int value);
private:
void init();
protected:
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
int computeHorizontalValue(int x);
private:
bool m_isPressed;
int m_handleWidth{0};
};
#endif // WIDGETS_SLIDERDIRECTJUMP_H
| #ifndef WIDGETS_SLIDERDIRECTJUMP_H
#define WIDGETS_SLIDERDIRECTJUMP_H
#include <QSlider>
class QMouseEvent;
class SliderDirectJump : public QSlider {
Q_OBJECT
public:
explicit SliderDirectJump(QWidget* parent = nullptr);
explicit SliderDirectJump(Qt::Orientation orientation, QWidget* parent = nullptr);
~SliderDirectJump() override;
bool isPressed();
signals:
void valueClicked(int value);
private:
void init();
protected:
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
int computeHorizontalValue(int x);
private:
bool m_isPressed{false};
int m_handleWidth{0};
};
#endif // WIDGETS_SLIDERDIRECTJUMP_H
| Fix playback slider initially acting as pressed | Fix playback slider initially acting as pressed | C | bsd-3-clause | hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D |
65b1cd480ce57f66f2fdc8527b12b9a24a93f92f | test/periodic/NdbRadioMult.h | test/periodic/NdbRadioMult.h | #ifndef RADIOMULT_H
#define RADIOMULT_H
#include "NdbMF.h"
/* ========= NdbRadioMult ============ */
class NdbRad ioMult : public NdbMF
{
protected:
public:
NdbRadioMult()
: NdbMF(9, "Multiplicities for radioactive nuclide production") {}
~NdbRadioMult() {}
ClassDef(NdbRadioMult,1)
}; // NdbRadioMult
#endif
| #ifndef RADIOMULT_H
#define RADIOMULT_H
#include "NdbMF.h"
/* ========= NdbRadioMult ============ */
class NdbRadioMult : public NdbMF
{
protected:
public:
NdbRadioMult()
: NdbMF(9, "Multiplicities for radioactive nuclide production") {}
~NdbRadioMult() {}
ClassDef(NdbRadioMult,1)
}; // NdbRadioMult
#endif
| Fix typo in tab removal | Fix typo in tab removal
| C | lgpl-2.1 | tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot |
e03d1b21d1f8482072ff3a9db12197b401b3bc56 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.05.00.03-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 5
#define QLA_DRIVER_PATCH_VER 0
#define QLA_DRIVER_BETA_VER 0
| /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.06.00.08-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 6
#define QLA_DRIVER_PATCH_VER 0
#define QLA_DRIVER_BETA_VER 0
| Update the driver version to 8.06.00.08-k. | [SCSI] qla2xxx: Update the driver version to 8.06.00.08-k.
Signed-off-by: Giridhar Malavali <[email protected]>
Signed-off-by: Saurav Kashyap <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
6ef996a3b60c5e85621acb5f1ef9ccf7da6a1925 | src/consensus/consensus.h | src/consensus/consensus.h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
#define BITCOIN_CONSENSUS_CONSENSUS_H
/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_BLOCK_SIZE = 2000000;
/** The maximum allowed number of signature check operations in a block (network rule) */
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;
/** Flags for LockTime() */
enum {
/* Use GetMedianTimePast() instead of nTime for end point timestamp. */
LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
};
/** Used as the flags parameter to CheckFinalTx() in non-consensus code */
static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_MEDIAN_TIME_PAST;
#endif // BITCOIN_CONSENSUS_CONSENSUS_H
| // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
#define BITCOIN_CONSENSUS_CONSENSUS_H
/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_BLOCK_SIZE = 2000000;
/** The maximum allowed number of signature check operations in a block (network rule) */
static const unsigned int MAX_BLOCK_SIGOPS = 20000;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;
/** Flags for LockTime() */
enum {
/* Use GetMedianTimePast() instead of nTime for end point timestamp. */
LOCKTIME_MEDIAN_TIME_PAST = (1 << 1),
};
/** Used as the flags parameter to CheckFinalTx() in non-consensus code */
static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = LOCKTIME_MEDIAN_TIME_PAST;
#endif // BITCOIN_CONSENSUS_CONSENSUS_H
| Make sigop limit `20000` just as in Bitcoin, ignoring our change to the blocksize limit. | Make sigop limit `20000` just as in Bitcoin, ignoring our change to the blocksize limit.
| C | mit | bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash |
5952806e050a8494cdff3368b144de206def8780 | ldso/ldso/sh/dl-syscalls.h | ldso/ldso/sh/dl-syscalls.h | /* We can't use the real errno in ldso, since it has not yet
* been dynamicly linked in yet. */
#include "sys/syscall.h"
extern int _dl_errno;
#undef __set_errno
#define __set_errno(X) {(_dl_errno) = (X);}
#warning !!! __always_inline redefined waiting for the fixed gcc
#ifdef __always_inline
#undef __always_inline
#define __always_inline inline
#endif
| /* We can't use the real errno in ldso, since it has not yet
* been dynamicly linked in yet. */
#include "sys/syscall.h"
extern int _dl_errno;
#undef __set_errno
#define __set_errno(X) {(_dl_errno) = (X);}
#if __GNUC_PREREQ (4, 1)
#warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
# ifdef __always_inline
# undef __always_inline
# define __always_inline inline
# endif
#endif
| Make sh4 build works again adding a temporary work-around iby redefining __always_inline to inline until gcc 4.x.x will get fixed. | Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get
fixed.
Signed-off-by: Carmelo Amoroso <[email protected]>
| C | lgpl-2.1 | skristiansson/uClibc-or1k,waweber/uclibc-clang,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,OpenInkpot-archive/iplinux-uclibc,foss-xtensa/uClibc,hjl-tools/uClibc,hwoarang/uClibc,brgl/uclibc-ng,ysat0/uClibc,OpenInkpot-archive/iplinux-uclibc,ndmsystems/uClibc,m-labs/uclibc-lm32,czankel/xtensa-uclibc,ndmsystems/uClibc,foss-xtensa/uClibc,wbx-github/uclibc-ng,wbx-github/uclibc-ng,czankel/xtensa-uclibc,brgl/uclibc-ng,kraj/uclibc-ng,skristiansson/uClibc-or1k,groundwater/uClibc,ddcc/klee-uclibc-0.9.33.2,ddcc/klee-uclibc-0.9.33.2,kraj/uclibc-ng,hwoarang/uClibc,groundwater/uClibc,groundwater/uClibc,hwoarang/uClibc,skristiansson/uClibc-or1k,brgl/uclibc-ng,mephi42/uClibc,atgreen/uClibc-moxie,ysat0/uClibc,hjl-tools/uClibc,ffainelli/uClibc,m-labs/uclibc-lm32,ndmsystems/uClibc,gittup/uClibc,ddcc/klee-uclibc-0.9.33.2,atgreen/uClibc-moxie,mephi42/uClibc,ffainelli/uClibc,mephi42/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,hjl-tools/uClibc,wbx-github/uclibc-ng,majek/uclibc-vx32,ysat0/uClibc,m-labs/uclibc-lm32,waweber/uclibc-clang,atgreen/uClibc-moxie,czankel/xtensa-uclibc,hjl-tools/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,kraj/uClibc,ffainelli/uClibc,kraj/uClibc,foss-xtensa/uClibc,kraj/uclibc-ng,hwoarang/uClibc,kraj/uClibc,waweber/uclibc-clang,OpenInkpot-archive/iplinux-uclibc,ffainelli/uClibc,majek/uclibc-vx32,waweber/uclibc-clang,gittup/uClibc,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,brgl/uclibc-ng,groundwater/uClibc,kraj/uclibc-ng,mephi42/uClibc,hjl-tools/uClibc,ffainelli/uClibc,czankel/xtensa-uclibc,foss-for-synopsys-dwc-arc-processors/uClibc,ysat0/uClibc,kraj/uClibc,groundwater/uClibc,ndmsystems/uClibc,atgreen/uClibc-moxie,gittup/uClibc,skristiansson/uClibc-or1k,gittup/uClibc,OpenInkpot-archive/iplinux-uclibc,wbx-github/uclibc-ng,majek/uclibc-vx32 |
45e7904ad73a41660e38b2a5553e3a24fc1d1d06 | Classes/EPSPlayerViewModel.h | Classes/EPSPlayerViewModel.h | //
// EPSPlayerViewModel.h
// ReactiveAudioPlayer
//
// Created by Peter Stuart on 4/24/14.
// Copyright (c) 2014 Electric Peel, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ReactiveCocoa/ReactiveCocoa.h>
@interface EPSPlayerViewModel : NSObject
@property (nonatomic) NSURL *audioURL;
@property (readonly) NSTimeInterval duration;
@property (readonly) NSTimeInterval currentTime;
@property (readonly) NSString *elapsedTimeString;
@property (readonly) NSString *remainingTimeString;
@property (readonly, getter = isPlaying) BOOL playing;
// Commands
@property (readonly) RACCommand *playCommand;
@property (readonly) RACCommand *pauseCommand;
@property (readonly) RACCommand *togglePlayPauseCommand;
@property (nonatomic, getter = isSeeking) BOOL seeking;
- (void)seekToTime:(NSTimeInterval)time;
@end
| //
// EPSPlayerViewModel.h
// ReactiveAudioPlayer
//
// Created by Peter Stuart on 4/24/14.
// Copyright (c) 2014 Electric Peel, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ReactiveCocoa/ReactiveCocoa.h>
#import <AVFoundation/AVFoundation.h>
@interface EPSPlayerViewModel : NSObject
@property (nonatomic) NSURL *audioURL;
@property (readonly) AVPlayer *player;
@property (readonly) NSTimeInterval duration;
@property (readonly) NSTimeInterval currentTime;
@property (readonly) NSString *elapsedTimeString;
@property (readonly) NSString *remainingTimeString;
@property (readonly, getter = isPlaying) BOOL playing;
// Commands
@property (readonly) RACCommand *playCommand;
@property (readonly) RACCommand *pauseCommand;
@property (readonly) RACCommand *togglePlayPauseCommand;
@property (nonatomic, getter = isSeeking) BOOL seeking;
- (void)seekToTime:(NSTimeInterval)time;
@end
| Make the audio player a public property. | Make the audio player a public property.
| C | mit | ElectricPeelSoftware/EPSReactiveAudioPlayer |
51f81c9db6ebf9997c49b0a1a48d9ce26c8c303d | src/lib/miniaudio/miniaudio.c | src/lib/miniaudio/miniaudio.c | #define MINIAUDIO_IMPLEMENTATION
#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
#define MA_ENABLE_WASAPI
#define MA_ENABLE_PULSEAUDIO
#define MA_ENABLE_COREAUDIO
#define MA_ENABLE_AAUDIO
#define MA_ENABLE_WEBAUDIO
#define MA_NO_DECODING
#define MA_NO_ENCODING
#define MA_NO_GENERATION
#include "miniaudio.h"
| #define MINIAUDIO_IMPLEMENTATION
#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
#define MA_ENABLE_WASAPI
#define MA_ENABLE_ALSA
#define MA_ENABLE_COREAUDIO
#define MA_ENABLE_AAUDIO
#define MA_ENABLE_WEBAUDIO
#define MA_NO_DECODING
#define MA_NO_ENCODING
#define MA_NO_GENERATION
#include "miniaudio.h"
| Switch back to ALSA on Linux; | Switch back to ALSA on Linux;
| C | mit | bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr |
fe416fb745fe4293e889d5179707051c959af921 | tests/conform/test-conform-common.h | tests/conform/test-conform-common.h |
/* Stuff you put in here is setup once in main() and gets passed around to
* all test functions and fixture setup/teardown functions in the data
* argument */
typedef struct _TestConformSharedState
{
int *argc_addr;
char ***argv_addr;
} TestConformSharedState;
/* This fixture structure is allocated by glib, and before running each test
* the test_conform_simple_fixture_setup func (see below) is called to
* initialise it, and test_conform_simple_fixture_teardown is called when
* the test is finished. */
typedef struct _TestConformSimpleFixture
{
/**/
} TestConformSimpleFixture;
void test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
gconstpointer data);
void test_conform_simple_fixture_teardown (TestConformSimpleFixture *fixture,
gconstpointer data);
|
/* Stuff you put in here is setup once in main() and gets passed around to
* all test functions and fixture setup/teardown functions in the data
* argument */
typedef struct _TestConformSharedState
{
int *argc_addr;
char ***argv_addr;
} TestConformSharedState;
/* This fixture structure is allocated by glib, and before running each test
* the test_conform_simple_fixture_setup func (see below) is called to
* initialise it, and test_conform_simple_fixture_teardown is called when
* the test is finished. */
typedef struct _TestConformSimpleFixture
{
/**/
int dummy;
} TestConformSimpleFixture;
void test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
gconstpointer data);
void test_conform_simple_fixture_teardown (TestConformSimpleFixture *fixture,
gconstpointer data);
| Add int dummy; to empty struct TestConformSimpleFixture definition. | Add int dummy; to empty struct TestConformSimpleFixture definition.
| C | lgpl-2.1 | rkudiyarov/clutter_osx,djdeath/clutter,Distrotech/clutter,kerrickstaley/clutter-vala,dlespiau/clutter,spatulasnout/clutter,spatulasnout/clutter,heysion/clutter-clone,nobled/clutter,spatulasnout/clutter,Distrotech/clutter,jigpu/clutter,nobled/clutter,kerrickstaley/clutter-vala,djdeath/clutter,dlespiau/clutter,jigpu/clutter,ebassi/clutter,heysion/clutter-clone,kerrickstaley/clutter-vala,jigpu/clutter,ebassi/clutter,heysion/clutter-clone,GNOME/clutter,djdeath/clutter-android,collects/clutter,jigpu/clutter,ebassi/clutter,Distrotech/clutter,collects/clutter,djdeath/clutter-android,djdeath/clutter,djdeath/clutter-android,Distrotech/clutter,djdeath/clutter-android,Distrotech/clutter,djdeath/clutter-multithreaded,GNOME/clutter,spatulasnout/clutter,heysion/clutter-clone,rkudiyarov/clutter_osx,collects/clutter,nobled/clutter,djdeath/clutter-android,collects/clutter,GNOME/clutter,jigpu/clutter,kerrickstaley/clutter-vala,dlespiau/clutter,Distrotech/clutter,GNOME/clutter,heysion/clutter-clone,djdeath/clutter,rkudiyarov/clutter_osx,GNOME/clutter,djdeath/clutter,ebassi/clutter,rkudiyarov/clutter_osx,tardyp/clutter,tardyp/clutter,tardyp/clutter,collects/clutter,djdeath/clutter-multithreaded,spatulasnout/clutter,jigpu/clutter,djdeath/clutter-multithreaded,djdeath/clutter-multithreaded,djdeath/clutter,ebassi/clutter |
a77d6c28473b9f106d5fc2d1d5ca4914e466ac16 | test/simpletest_speed/speedtestplot.h | test/simpletest_speed/speedtestplot.h | #pragma once
#include <array>
#include <random>
#include "jkqtplotter/jkqtplotter.h"
#define NDATA 500
class SpeedTestPlot: public JKQtPlotter {
Q_OBJECT
protected:
std::array<double, NDATA> X, Y, Y2;
const double dx;
double x0;
std::chrono::system_clock::time_point t_lastplot;
public:
SpeedTestPlot();
virtual ~SpeedTestPlot();
public slots:
void plotNewData();
};
| #pragma once
#include <array>
#include <random>
#include <chrono>
#include "jkqtplotter/jkqtplotter.h"
#define NDATA 500
class SpeedTestPlot: public JKQtPlotter {
Q_OBJECT
protected:
std::array<double, NDATA> X, Y, Y2;
const double dx;
double x0;
std::chrono::system_clock::time_point t_lastplot;
public:
SpeedTestPlot();
virtual ~SpeedTestPlot();
public slots:
void plotNewData();
};
| Include <chrono> needed for chrono::system_clock | MSVC: Include <chrono> needed for chrono::system_clock
| C | lgpl-2.1 | jkriege2/JKQtPlotter,jkriege2/JKQtPlotter,jkriege2/JKQtPlotter |
38551576a35f1b48b6b359470d6e876c5b671ab6 | include/asm-mips/bugs.h | include/asm-mips/bugs.h | /*
* This is included by init/main.c to check for architecture-dependent bugs.
*
* Needs:
* void check_bugs(void);
*/
#ifndef _ASM_BUGS_H
#define _ASM_BUGS_H
#include <linux/config.h>
#include <asm/cpu.h>
#include <asm/cpu-info.h>
extern void check_bugs32(void);
extern void check_bugs64(void);
static inline void check_bugs(void)
{
unsigned int cpu = smp_processor_id();
cpu_data[cpu].udelay_val = loops_per_jiffy;
check_bugs32();
#ifdef CONFIG_64BIT
check_bugs64();
#endif
}
#endif /* _ASM_BUGS_H */
| /*
* This is included by init/main.c to check for architecture-dependent bugs.
*
* Needs:
* void check_bugs(void);
*/
#ifndef _ASM_BUGS_H
#define _ASM_BUGS_H
#include <linux/config.h>
#include <linux/delay.h>
#include <asm/cpu.h>
#include <asm/cpu-info.h>
extern void check_bugs32(void);
extern void check_bugs64(void);
static inline void check_bugs(void)
{
unsigned int cpu = smp_processor_id();
cpu_data[cpu].udelay_val = loops_per_jiffy;
check_bugs32();
#ifdef CONFIG_64BIT
check_bugs64();
#endif
}
#endif /* _ASM_BUGS_H */
| Build fix for certain configurations. | Build fix for certain configurations.
Signed-off-by: Ralf Baechle <[email protected]>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas |
0987af61d808c8e8756c2489a90827698d7a7429 | splaytree.h | splaytree.h | #pragma once
/*
* Splay tree - a self-Adjusting binary search tree,
* as first described by Daniel Dominic Sleator and Robert Endre Tarjan.
*
* https://www.cs.cmu.edu/~sleator/papers/self-adjusting.pdf
*/
templace<class T>
class SplayTree {
private:
struct Node {
Node* left;
Node* right;
Node* parent;
T data;
void rotateLeft() {}
void rotateRight() {}
void splay() {}
};
public:
void insert(const T& data) {}
void remove(const T& data) {}
Node* find(const T& data) {}
};
| Add skeleton for the splay tree implementation | Add skeleton for the splay tree implementation
| C | bsd-2-clause | culot/cpp-structs |
|
106f354f1fe8dc196665df581ea7b4e986b70ca6 | JavaScriptCore/wtf/unicode/Unicode.h | JavaScriptCore/wtf/unicode/Unicode.h | // -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2006 George Staikos <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef KJS_UNICODE_H
#define KJS_UNICODE_H
#include <wtf/Platform.h>
#if USE(QT4_UNICODE)
#include "qt4/UnicodeQt4.h"
#elif USE(ICU_UNICODE)
#include <wtf/icu/UnicodeIcu.h>
#else
#error "Unknown Unicode implementation"
#endif
#endif
// vim: ts=2 sw=2 et
| // -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2006 George Staikos <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef KJS_UNICODE_H
#define KJS_UNICODE_H
#include <wtf/Platform.h>
#if USE(QT4_UNICODE)
#include "qt4/UnicodeQt4.h"
#elif USE(ICU_UNICODE)
#include <wtf/unicode/icu/UnicodeIcu.h>
#else
#error "Unknown Unicode implementation"
#endif
#endif
// vim: ts=2 sw=2 et
| Fix mac bustage (more still). | Fix mac bustage (more still).
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@18103 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C | bsd-3-clause | primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs |
c66bc667f912f6144223b6d259061942221a6469 | src/slurp.c | src/slurp.c | #include <cgreen/slurp.h>
#include <stdlib.h>
#include <stdio.h>
static char *read_all(FILE *file, int gulp);
char *slurp(const char *file_name, int gulp) {
FILE *file = fopen(file_name, "r");
if (file == NULL) {
return NULL;
}
char *content = read_all(file, gulp);
fclose(file);
return content;
}
static char *read_all(FILE *file, int gulp) {
char *content = (char *)malloc((gulp + 1) * sizeof(char));
char *block = content;
for ( ; ; ) {
if (fgets(block, gulp + 1, file) == NULL) {
break;
}
block += gulp;
content = (char *)realloc(content, (block - content + 1) * sizeof(char));
}
return content;
}
| #include <cgreen/slurp.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
static char *read_all(FILE *file, int gulp);
char *slurp(const char *file_name, int gulp) {
FILE *file = fopen(file_name, "r");
if (file == NULL) {
return NULL;
}
char *content = read_all(file, gulp);
fclose(file);
return content;
}
static char *read_all(FILE *file, int gulp) {
char *content = (char *)malloc(0);
int sblock = (gulp + 1) * sizeof(char);
char *block = (char *)malloc(sblock);
int len = 0;
int add = 0;
char *p;
for ( ; ; ) {
if (fgets(block, sblock, file) == NULL) {
break;
}
len = strlen(block);
add += len;
p = (char *)realloc(content, add + 1);
if (p == NULL) {
exit(1);
}
content = p;
strncat(content, block, len);
}
content[add + 1] = '\0';
free(block);
return content;
}
| Fix read_all and return content without segment fault | Fix read_all and return content without segment fault | C | lgpl-2.1 | ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old |
363f0c512d06d9d428ffe9529a5089e929b7c174 | XCDYouTubeKit/XCDYouTubeKit.h | XCDYouTubeKit/XCDYouTubeKit.h | //
// Copyright (c) 2013-2015 Cédric Luthi. All rights reserved.
//
#import <Availability.h>
#import <XCDYouTubeKit/XCDYouTubeClient.h>
#import <XCDYouTubeKit/XCDYouTubeError.h>
#import <XCDYouTubeKit/XCDYouTubeOperation.h>
#import <XCDYouTubeKit/XCDYouTubeVideo.h>
#import <XCDYouTubeKit/XCDYouTubeVideoOperation.h>
#if TARGET_OS_IPHONE
#import <XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h>
#endif
| //
// Copyright (c) 2013-2015 Cédric Luthi. All rights reserved.
//
#import <TargetConditionals.h>
#import <XCDYouTubeKit/XCDYouTubeClient.h>
#import <XCDYouTubeKit/XCDYouTubeError.h>
#import <XCDYouTubeKit/XCDYouTubeOperation.h>
#import <XCDYouTubeKit/XCDYouTubeVideo.h>
#import <XCDYouTubeKit/XCDYouTubeVideoOperation.h>
#if TARGET_OS_IOS || (!defined(TARGET_OS_IOS) && TARGET_OS_IPHONE)
#import <XCDYouTubeKit/XCDYouTubeVideoPlayerViewController.h>
#endif
| Fix conditional import of XCDYouTubeVideoPlayerViewController.h | Fix conditional import of XCDYouTubeVideoPlayerViewController.h
TARGET_OS_IPHONE used to mean iOS (iPhone or iPad) device or simulator. With recent SDKs it means iOS or watchOS or tvOS.
| C | mit | c0unt0/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,morrisirrom/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,mingsai/XCDYouTubeVideoPlayerViewController,mingsai/XCDYouTubeVideoPlayerViewController,kumabook/XCDYouTubeKit,creationst/XCDYouTubeKit,creationst/XCDYouTubeKit,0xced/XCDYouTubeKit,kumabook/XCDYouTubeKit,itamaker/XCDYouTubeKit,c0unt0/XCDYouTubeKit,mingsai/XCDYouTubeVideoPlayerViewController,gshaviv/XCDYouTubeVideoPlayerViewController,0xced/XCDYouTubeKit,gshaviv/XCDYouTubeVideoPlayerViewController,gshaviv/XCDYouTubeVideoPlayerViewController,twobitlabs/XCDYouTubeKit,morrisirrom/XCDYouTubeKit,kumabook/XCDYouTubeKit,mingsai/XCDYouTubeVideoPlayerViewController,0xced/XCDYouTubeKit,creationst/XCDYouTubeKit,kumabook/XCDYouTubeKit,kumabook/XCDYouTubeKit,itamaker/XCDYouTubeKit,creationst/XCDYouTubeKit,gshaviv/XCDYouTubeVideoPlayerViewController,morrisirrom/XCDYouTubeKit,kumabook/XCDYouTubeKit,gshaviv/XCDYouTubeVideoPlayerViewController,gshaviv/XCDYouTubeVideoPlayerViewController,c0unt0/XCDYouTubeKit,c0unt0/XCDYouTubeKit,morrisirrom/XCDYouTubeKit,0xced/XCDYouTubeKit,c0unt0/XCDYouTubeKit,morrisirrom/XCDYouTubeKit |
9d357c7c8a3be7658385bd77aa9aec625c3df1f4 | Source/Sources/SVGKSourceLocalFile.h | Source/Sources/SVGKSourceLocalFile.h | /**
*/
#import "SVGKSource.h"
@interface SVGKSourceLocalFile : SVGKSource
@property (nonatomic, retain) NSString* filePath;
+ (SVGKSource*)sourceFromFilename:(NSString*)p;
@end
| /**
*/
#import "SVGKSource.h"
@interface SVGKSourceLocalFile : SVGKSource
@property (nonatomic, copy) NSString* filePath;
+ (SVGKSource*)sourceFromFilename:(NSString*)p;
@end
| Copy the file path, just in case the string was mutable. | Copy the file path, just in case the string was mutable.
| C | mit | MaddTheSane/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,MaddTheSane/SVGKit,MaddTheSane/SVGKit,seltzered/SVGKit,MaddTheSane/SVGKit,MaddTheSane/SVGKit |
bb773ca9335bbd031cf3bed7149d2927c713fff7 | test/execute/0004-operators4.c | test/execute/0004-operators4.c |
int
main()
{
int x;
int y;
x = 1;
y = 1;
x = y = 0;
if(x != 0)
return 1;
if(y != 0)
return 1;
return 0;
}
| Add test for assign as rval | Add test for assign as rval
| C | bsd-2-clause | xtao/c,andrewchambers/c,andrewchambers/c,xtao/c |
|
971bf2dec2bcf281059c8fe23885d8374571464d | ch05/atomapp/atomapp.c | ch05/atomapp/atomapp.c | // for exit, strtol, EXIT_SUCCESS, EXIT_FAILURE
#include <stdlib.h>
// for fprintf, stderr
#include <stdio.h>
// for bool, true, false
#include <stdbool.h>
/**
* Options from the command line.
*/
struct opts {
/** The filename. */
char * filename;
/** The number of bytes to write. */
int num_bytes;
/** Whether O_APPEND should be used. */
bool append;
};
/**
* Prints usage.
*/
static void usage(void)
{
fprintf(stderr, "Usage: atomic_append filename num-bytes [x]\n");
}
/**
* Reads command line options.
*/
static bool read_opts(struct opts * options, int argc, char * argv[])
{
char * end;
if (argc < 3 || argc > 4) {
// to few or many options supplied
return false;
}
options->filename = argv[1];
options->num_bytes = strtol(argv[2], &end, 10);
if (*end != '\0') {
// 2nd argument not a number
return false;
}
// use 3rd argument to ommit O_APPEND
options->append = argc != 4;
// success
return true;
}
int main(int argc, char * argv[])
{
struct opts options;
if (!read_opts(&options, argc, argv)) {
usage();
exit(EXIT_FAILURE);
}
printf("filename: %s\n", options.filename);
printf("num-bytes: %i\n", options.num_bytes);
printf("append: %s\n", options.append ? "yes" : "no");
return 0;
}
| Read and print command line options in 5-3 | Read and print command line options in 5-3
| C | mit | enil/tlpi-exercises,enil/tlpi-exercises,enil/tlpi-exercises |
|
7fe977dab356fbd7e86aa10bf83891761107c57c | arch/x86/kernel/sys_i386_32.c | arch/x86/kernel/sys_i386_32.c | /*
* This file contains various random system calls that
* have a non-standard calling sequence on the Linux/i386
* platform.
*/
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/smp.h>
#include <linux/sem.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include <linux/stat.h>
#include <linux/syscalls.h>
#include <linux/mman.h>
#include <linux/file.h>
#include <linux/utsname.h>
#include <linux/ipc.h>
#include <linux/uaccess.h>
#include <linux/unistd.h>
#include <asm/syscalls.h>
/*
* Do a system call from kernel instead of calling sys_execve so we
* end up with proper pt_regs.
*/
int kernel_execve(const char *filename,
const char *const argv[],
const char *const envp[])
{
long __res;
asm volatile ("push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx"
: "=a" (__res)
: "0" (__NR_execve), "ri" (filename), "c" (argv), "d" (envp) : "memory");
return __res;
}
| /*
* This file contains various random system calls that
* have a non-standard calling sequence on the Linux/i386
* platform.
*/
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/smp.h>
#include <linux/sem.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include <linux/stat.h>
#include <linux/syscalls.h>
#include <linux/mman.h>
#include <linux/file.h>
#include <linux/utsname.h>
#include <linux/ipc.h>
#include <linux/uaccess.h>
#include <linux/unistd.h>
#include <asm/syscalls.h>
/*
* Do a system call from kernel instead of calling sys_execve so we
* end up with proper pt_regs.
*/
int kernel_execve(const char *filename,
const char *const argv[],
const char *const envp[])
{
long __res;
asm volatile ("int $0x80"
: "=a" (__res)
: "0" (__NR_execve), "b" (filename), "c" (argv), "d" (envp) : "memory");
return __res;
}
| Make kernel_execve() suitable for stack unwinding | i386: Make kernel_execve() suitable for stack unwinding
The explicit saving and restoring of %ebx was confusing stack
unwind data consumers, and it is plain unnecessary to do this
within the asm(), since that was only introduced for PIC user
mode consumers of the original _syscall3() macro this was
derived from.
Signed-off-by: Jan Beulich <[email protected]>
Cc: Arnd Bergmann <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs |
9ada9b0d140398e624ddf2256dfd7d850312ffa3 | src/ee/common/UndoQuantumReleaseInterest.h | src/ee/common/UndoQuantumReleaseInterest.h | /* This file is part of VoltDB.
* Copyright (C) 2008-2019 VoltDB Inc.
*
* 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 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() {}
inline bool isNewReleaseInterest(int64_t currentUndoToken) {
if (m_lastSeenUndoToken == currentUndoToken) {
return false;
}
else {
m_lastSeenUndoToken = currentUndoToken;
return true;
}
}
private:
int64_t m_lastSeenUndoToken;
};
}
#endif /* UNDOQUANTUM_H_ */
| /* This file is part of VoltDB.
* Copyright (C) 2008-2019 VoltDB Inc.
*
* 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 VoltDB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UNDOQUANTUM_RELEASE_INTEREST_H_
#define UNDOQUANTUM_RELEASE_INTEREST_H_
namespace voltdb {
class UndoQuantumReleaseInterest {
public:
UndoQuantumReleaseInterest() : m_lastSeenUndoToken(-1);
virtual void notifyQuantumRelease() = 0;
virtual ~UndoQuantumReleaseInterest() {}
inline bool isNewReleaseInterest(int64_t currentUndoToken) {
if (m_lastSeenUndoToken == currentUndoToken) {
return false;
}
else {
m_lastSeenUndoToken = currentUndoToken;
return true;
}
}
private:
int64_t m_lastSeenUndoToken;
};
}
#endif /* UNDOQUANTUM_H_ */
| Fix Valgrind variable initialization issue. | ENG-15084:
Fix Valgrind variable initialization issue.
| C | agpl-3.0 | VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb |
c8a66e76734dc2f6066b113aba3085c20f34f00b | Settings/Controls/ProgressBar.h | Settings/Controls/ProgressBar.h | #pragma once
#include "Control.h"
#include "StatusCallback.h"
class ProgressBar : public Control, public StatusCallback {
public:
ProgressBar(int id, Dialog &parent, bool translate = true) :
Control(id, parent, translate) {
}
protected:
virtual IFACEMETHODIMP OnProgress(
unsigned long ulProgress,
unsigned long ulProgressMax,
unsigned long ulStatusCode,
LPCWSTR szStatusText
);
}; | #pragma once
#include "Control.h"
#include "StatusCallback.h"
#include <CommCtrl.h>
class ProgressBar : public Control, public StatusCallback {
public:
ProgressBar(int id, Dialog &parent, bool translate = true) :
Control(id, parent, translate) {
}
void Range(int min, int max) {
SendMessage(_hWnd, PBM_SETRANGE32, min, max);
}
void Position(int pos) {
SendMessage(_hWnd, PBM_SETPOS, pos, 0);
}
void Marquee(bool enabled, int refresh = 30) {
SendMessage(_hWnd, PBM_SETMARQUEE, enabled, refresh);
}
protected:
virtual IFACEMETHODIMP OnProgress(
unsigned long ulProgress,
unsigned long ulProgressMax,
unsigned long ulStatusCode,
LPCWSTR szStatusText
);
}; | Add basic implementation of progress bar methods | Add basic implementation of progress bar methods
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
0504744a68b12790189e00ea21289ced208f88e1 | src/imap/cmd-create.c | src/imap/cmd-create.c | /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(Client *client)
{
const char *mailbox;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
if (!client_verify_mailbox_name(client, mailbox, FALSE, TRUE))
return TRUE;
if (mailbox[strlen(mailbox)-1] == client->storage->hierarchy_sep) {
/* name ends with hierarchy separator - client is just
informing us that it wants to create a mailbox under
this name. we don't need that information. */
} else if (!client->storage->create_mailbox(client->storage, mailbox)) {
client_send_storage_error(client);
return TRUE;
}
client_send_tagline(client, "OK Create completed.");
return TRUE;
}
| /* Copyright (C) 2002 Timo Sirainen */
#include "common.h"
#include "commands.h"
int cmd_create(Client *client)
{
const char *mailbox;
int ignore;
/* <mailbox> */
if (!client_read_string_args(client, 1, &mailbox))
return FALSE;
ignore = mailbox[strlen(mailbox)-1] == client->storage->hierarchy_sep;
if (ignore) {
/* name ends with hierarchy separator - client is just
informing us that it wants to create a mailbox under
this name. we don't need that information, but verify
that the mailbox name is valid */
mailbox = t_strndup(mailbox, strlen(mailbox)-1);
}
if (!client_verify_mailbox_name(client, mailbox, FALSE, !ignore))
return TRUE;
if (!ignore &&
!client->storage->create_mailbox(client->storage, mailbox)) {
client_send_storage_error(client);
return TRUE;
}
client_send_tagline(client, "OK Create completed.");
return TRUE;
}
| CREATE mailbox<hierarchy separator> failed always. | CREATE mailbox<hierarchy separator> failed always.
--HG--
branch : HEAD
| C | mit | jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch |
37a5cee2b4362014d6c0f81c82b2f75d7a5204f6 | src/lib/str-sanitize.c | src/lib/str-sanitize.c | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if ((unsigned char)*p < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
for (; *p != '\0' && max_len > 0; p++, max_len--) {
if ((unsigned char)*p < 32)
str_append_c(dest, '?');
else
str_append_c(dest, *p);
}
if (*p != '\0') {
str_truncate(dest, str_len(dest)-3);
str_append(dest, "...");
}
}
const char *str_sanitize(const char *src, size_t max_len)
{
string_t *str;
str = t_str_new(I_MIN(max_len, 256));
str_sanitize_append(str, src, max_len);
return str_c(str);
}
| /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if (((unsigned char)*p & 0x7f) < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
for (; *p != '\0' && max_len > 0; p++, max_len--) {
if (((unsigned char)*p & 0x7f) < 32)
str_append_c(dest, '?');
else
str_append_c(dest, *p);
}
if (*p != '\0') {
str_truncate(dest, str_len(dest)-3);
str_append(dest, "...");
}
}
const char *str_sanitize(const char *src, size_t max_len)
{
string_t *str;
str = t_str_new(I_MIN(max_len, 256));
str_sanitize_append(str, src, max_len);
return str_c(str);
}
| Convert also 0x80..0x9f characters to '?' | Convert also 0x80..0x9f characters to '?'
--HG--
branch : HEAD
| C | mit | jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch |
c5f452b443b6e198d5ebeee9e2fa9b9efafcf61e | include/swift/Basic/Timer.h | include/swift/Basic/Timer.h | //===--- Timer.h - Shared timers for compilation phases ---------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_TIMER_H
#define SWIFT_BASIC_TIMER_H
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Support/Timer.h"
namespace swift {
/// A convenience class for declaring a timer that's part of the Swift
/// compilation timers group.
class SharedTimer {
enum class State {
Initial,
Skipped,
Enabled
};
static State CompilationTimersEnabled;
Optional<llvm::NamedRegionTimer> Timer;
public:
explicit SharedTimer(StringRef name) {
if (CompilationTimersEnabled == State::Enabled)
Timer.emplace(name, StringRef("Swift compilation"), StringRef("swift"),
StringRef("swift related timers"));
else
CompilationTimersEnabled = State::Skipped;
}
/// Must be called before any SharedTimers have been created.
static void enableCompilationTimers() {
assert(CompilationTimersEnabled != State::Skipped &&
"a timer has already been created");
CompilationTimersEnabled = State::Enabled;
}
};
} // end namespace swift
#endif // SWIFT_BASIC_TIMER_H
| //===--- Timer.h - Shared timers for compilation phases ---------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_TIMER_H
#define SWIFT_BASIC_TIMER_H
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Support/Timer.h"
namespace swift {
/// A convenience class for declaring a timer that's part of the Swift
/// compilation timers group.
class SharedTimer {
enum class State {
Initial,
Skipped,
Enabled
};
static State CompilationTimersEnabled;
Optional<llvm::NamedRegionTimer> Timer;
public:
explicit SharedTimer(StringRef name) {
if (CompilationTimersEnabled == State::Enabled)
Timer.emplace(name, name, "swift", "Swift compilation");
else
CompilationTimersEnabled = State::Skipped;
}
/// Must be called before any SharedTimers have been created.
static void enableCompilationTimers() {
assert(CompilationTimersEnabled != State::Skipped &&
"a timer has already been created");
CompilationTimersEnabled = State::Enabled;
}
};
} // end namespace swift
#endif // SWIFT_BASIC_TIMER_H
| Fix 2f21735 to actually distinguish phases. | -debug-time-compilation: Fix 2f21735 to actually distinguish phases.
https://bugs.swift.org/browse/SR-4100
| C | apache-2.0 | bitjammer/swift,brentdax/swift,natecook1000/swift,atrick/swift,frootloops/swift,karwa/swift,shahmishal/swift,return/swift,OscarSwanros/swift,devincoughlin/swift,frootloops/swift,jopamer/swift,bitjammer/swift,tkremenek/swift,airspeedswift/swift,tjw/swift,felix91gr/swift,jckarter/swift,milseman/swift,hooman/swift,xwu/swift,JGiola/swift,xedin/swift,jtbandes/swift,djwbrown/swift,CodaFi/swift,lorentey/swift,codestergit/swift,harlanhaskins/swift,xwu/swift,manavgabhawala/swift,jtbandes/swift,felix91gr/swift,codestergit/swift,devincoughlin/swift,tjw/swift,jckarter/swift,OscarSwanros/swift,jckarter/swift,bitjammer/swift,arvedviehweger/swift,jmgc/swift,airspeedswift/swift,frootloops/swift,practicalswift/swift,practicalswift/swift,djwbrown/swift,karwa/swift,calebd/swift,roambotics/swift,tkremenek/swift,hughbe/swift,gregomni/swift,xedin/swift,devincoughlin/swift,aschwaighofer/swift,danielmartin/swift,sschiau/swift,aschwaighofer/swift,stephentyrone/swift,Jnosh/swift,manavgabhawala/swift,jopamer/swift,natecook1000/swift,JGiola/swift,tkremenek/swift,danielmartin/swift,glessard/swift,jmgc/swift,xwu/swift,aschwaighofer/swift,ahoppen/swift,tkremenek/swift,milseman/swift,allevato/swift,Jnosh/swift,CodaFi/swift,swiftix/swift,swiftix/swift,Jnosh/swift,atrick/swift,huonw/swift,deyton/swift,roambotics/swift,gribozavr/swift,djwbrown/swift,hughbe/swift,glessard/swift,amraboelela/swift,xedin/swift,roambotics/swift,austinzheng/swift,sschiau/swift,felix91gr/swift,CodaFi/swift,stephentyrone/swift,shahmishal/swift,gregomni/swift,stephentyrone/swift,calebd/swift,jopamer/swift,uasys/swift,OscarSwanros/swift,manavgabhawala/swift,parkera/swift,Jnosh/swift,airspeedswift/swift,nathawes/swift,jopamer/swift,atrick/swift,alblue/swift,stephentyrone/swift,natecook1000/swift,Jnosh/swift,karwa/swift,shajrawi/swift,shahmishal/swift,amraboelela/swift,hooman/swift,tinysun212/swift-windows,arvedviehweger/swift,aschwaighofer/swift,deyton/swift,atrick/swift,milseman/swift,brentdax/swift,benlangmuir/swift,felix91gr/swift,gribozavr/swift,devincoughlin/swift,harlanhaskins/swift,shajrawi/swift,allevato/swift,CodaFi/swift,deyton/swift,apple/swift,roambotics/swift,practicalswift/swift,jmgc/swift,jmgc/swift,uasys/swift,frootloops/swift,jtbandes/swift,glessard/swift,CodaFi/swift,lorentey/swift,Jnosh/swift,tjw/swift,rudkx/swift,shahmishal/swift,huonw/swift,bitjammer/swift,jopamer/swift,natecook1000/swift,benlangmuir/swift,airspeedswift/swift,allevato/swift,karwa/swift,huonw/swift,ahoppen/swift,calebd/swift,jtbandes/swift,devincoughlin/swift,parkera/swift,rudkx/swift,benlangmuir/swift,danielmartin/swift,jckarter/swift,zisko/swift,hooman/swift,milseman/swift,airspeedswift/swift,alblue/swift,allevato/swift,harlanhaskins/swift,stephentyrone/swift,shahmishal/swift,arvedviehweger/swift,tinysun212/swift-windows,hughbe/swift,codestergit/swift,calebd/swift,return/swift,uasys/swift,karwa/swift,gribozavr/swift,parkera/swift,xedin/swift,benlangmuir/swift,return/swift,codestergit/swift,xedin/swift,gribozavr/swift,amraboelela/swift,rudkx/swift,glessard/swift,practicalswift/swift,austinzheng/swift,natecook1000/swift,ahoppen/swift,gribozavr/swift,hooman/swift,amraboelela/swift,shajrawi/swift,practicalswift/swift,gribozavr/swift,arvedviehweger/swift,bitjammer/swift,allevato/swift,alblue/swift,brentdax/swift,deyton/swift,nathawes/swift,bitjammer/swift,lorentey/swift,shajrawi/swift,parkera/swift,shahmishal/swift,tkremenek/swift,manavgabhawala/swift,austinzheng/swift,djwbrown/swift,huonw/swift,danielmartin/swift,hughbe/swift,parkera/swift,return/swift,jtbandes/swift,uasys/swift,lorentey/swift,parkera/swift,sschiau/swift,xwu/swift,swiftix/swift,milseman/swift,djwbrown/swift,devincoughlin/swift,rudkx/swift,glessard/swift,apple/swift,manavgabhawala/swift,tjw/swift,amraboelela/swift,sschiau/swift,milseman/swift,OscarSwanros/swift,danielmartin/swift,atrick/swift,xwu/swift,deyton/swift,sschiau/swift,OscarSwanros/swift,amraboelela/swift,rudkx/swift,return/swift,jckarter/swift,codestergit/swift,gregomni/swift,sschiau/swift,natecook1000/swift,jckarter/swift,felix91gr/swift,benlangmuir/swift,practicalswift/swift,karwa/swift,danielmartin/swift,jtbandes/swift,zisko/swift,hooman/swift,harlanhaskins/swift,lorentey/swift,tinysun212/swift-windows,arvedviehweger/swift,frootloops/swift,tinysun212/swift-windows,JGiola/swift,nathawes/swift,JGiola/swift,manavgabhawala/swift,codestergit/swift,apple/swift,apple/swift,glessard/swift,arvedviehweger/swift,zisko/swift,jckarter/swift,hughbe/swift,allevato/swift,xedin/swift,harlanhaskins/swift,uasys/swift,CodaFi/swift,calebd/swift,return/swift,rudkx/swift,lorentey/swift,sschiau/swift,apple/swift,brentdax/swift,brentdax/swift,lorentey/swift,zisko/swift,hooman/swift,nathawes/swift,devincoughlin/swift,alblue/swift,JGiola/swift,jtbandes/swift,xedin/swift,shahmishal/swift,lorentey/swift,shajrawi/swift,manavgabhawala/swift,danielmartin/swift,hooman/swift,swiftix/swift,hughbe/swift,tinysun212/swift-windows,tinysun212/swift-windows,shahmishal/swift,apple/swift,huonw/swift,huonw/swift,jmgc/swift,tinysun212/swift-windows,ahoppen/swift,codestergit/swift,amraboelela/swift,xwu/swift,harlanhaskins/swift,stephentyrone/swift,tkremenek/swift,milseman/swift,jopamer/swift,calebd/swift,zisko/swift,nathawes/swift,zisko/swift,austinzheng/swift,sschiau/swift,calebd/swift,tkremenek/swift,stephentyrone/swift,gregomni/swift,swiftix/swift,ahoppen/swift,uasys/swift,deyton/swift,gribozavr/swift,djwbrown/swift,austinzheng/swift,airspeedswift/swift,gregomni/swift,aschwaighofer/swift,alblue/swift,brentdax/swift,djwbrown/swift,austinzheng/swift,harlanhaskins/swift,tjw/swift,deyton/swift,karwa/swift,felix91gr/swift,natecook1000/swift,frootloops/swift,swiftix/swift,uasys/swift,airspeedswift/swift,shajrawi/swift,jmgc/swift,ahoppen/swift,felix91gr/swift,frootloops/swift,arvedviehweger/swift,nathawes/swift,tjw/swift,devincoughlin/swift,aschwaighofer/swift,CodaFi/swift,swiftix/swift,roambotics/swift,alblue/swift,bitjammer/swift,atrick/swift,gribozavr/swift,huonw/swift,JGiola/swift,hughbe/swift,benlangmuir/swift,practicalswift/swift,allevato/swift,zisko/swift,xwu/swift,OscarSwanros/swift,gregomni/swift,Jnosh/swift,alblue/swift,jopamer/swift,jmgc/swift,aschwaighofer/swift,karwa/swift,shajrawi/swift,shajrawi/swift,practicalswift/swift,roambotics/swift,nathawes/swift,austinzheng/swift,parkera/swift,parkera/swift,return/swift,xedin/swift,OscarSwanros/swift,brentdax/swift,tjw/swift |
9c77ab663af99b59a73e9698b8c69029c248b9e8 | Source/UnrealEnginePython/Public/UnrealEnginePython.h | Source/UnrealEnginePython/Public/UnrealEnginePython.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void StartupModule() override;
virtual void ShutdownModule() override;
void RunString(char *);
void RunFile(char *);
void RunFileSandboxed(char *);
private:
void *ue_python_gil;
// used by console
void *main_dict;
void *local_dict;
void *main_module;
};
struct FScopePythonGIL {
FScopePythonGIL()
{
#if defined(UEPY_THREADING)
UnrealEnginePythonModule = FModuleManager::LoadModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
safeForRelease = UnrealEnginePythonModule.PythonGILAcquire();
#endif
}
~FScopePythonGIL()
{
#if defined(UEPY_THREADING)
if (safeForRelease) {
UnrealEnginePythonModule.PythonGILRelease();
}
#endif
}
FUnrealEnginePythonModule UnrealEnginePythonModule;
bool safeForRelease;
};
| // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void StartupModule() override;
virtual void ShutdownModule() override;
void RunString(char *);
void RunFile(char *);
void RunFileSandboxed(char *);
private:
void *ue_python_gil;
// used by console
void *main_dict;
void *local_dict;
};
struct FScopePythonGIL {
FScopePythonGIL()
{
#if defined(UEPY_THREADING)
UnrealEnginePythonModule = FModuleManager::LoadModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
safeForRelease = UnrealEnginePythonModule.PythonGILAcquire();
#endif
}
~FScopePythonGIL()
{
#if defined(UEPY_THREADING)
if (safeForRelease) {
UnrealEnginePythonModule.PythonGILRelease();
}
#endif
}
FUnrealEnginePythonModule UnrealEnginePythonModule;
bool safeForRelease;
};
| Revert "Add support for the Python Stdout Log" | Revert "Add support for the Python Stdout Log"
This reverts commit 6dd58324c052cc893f6ce8f009903805185a71d1.
| C | mit | kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,kitelightning/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython |
308768c5b18790f8154396db181abefca65c699c | cbits/counter.c | cbits/counter.c | #include <stdlib.h>
#include "HsFFI.h"
StgInt* hs_counter_new(void) {
StgInt* counter = malloc(sizeof(StgInt));
*counter = 0;
return counter;
}
void hs_counter_add(volatile StgInt* counter, StgInt n) {
StgInt temp = n;
#if SIZEOF_VOID_P == 8
__asm__ __volatile__("lock; xaddq %0,%1"
#elif SIZEOF_VOID_P == 4
__asm__ __volatile__("lock; xaddl %0,%1"
#else
# error GHC untested on this architecture: sizeof(void *) != 4 or 8
#endif
: "+r" (temp), "+m" (*counter)
: : "cc", "memory");
}
StgInt hs_counter_read(volatile const StgInt* counter) {
return *counter;
}
| #include <stdlib.h>
#include "HsFFI.h"
StgInt* hs_counter_new(void) {
StgInt* counter = malloc(sizeof(StgInt));
*counter = 0;
return counter;
}
void hs_counter_add(volatile StgInt* counter, StgInt n) {
__sync_fetch_and_add(counter, n);
}
StgInt hs_counter_read(volatile const StgInt* counter) {
return *counter;
}
| Use GCC builtins instead of inline asm | Use GCC builtins instead of inline asm
| C | bsd-3-clause | sopvop/ekg,bitemyapp/ekg,seanparsons/ekg,sopvop/ekg,bitemyapp/ekg,seanparsons/ekg |
2faaefade94d1ded2d246a90081aca781d6ff56e | tests/torture.c | tests/torture.c | #include <stdio.h>
#include <libssh/libssh.h>
#include "torture.h"
static int verbosity = 0;
int torture_libssh_verbosity(void){
return verbosity;
}
int main(int argc, char **argv) {
int rc;
(void) argc;
(void) argv;
ssh_init();
rc = torture_run_tests();
ssh_finalize();
return rc;
}
| #include "torture.h"
#include <stdio.h>
static int verbosity = 0;
int torture_libssh_verbosity(void){
return verbosity;
}
int main(int argc, char **argv) {
(void) argc;
(void) argv;
return torture_run_tests();
}
| Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests." | Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests."
Reason: breaks test_rand, because threading has to be initialized
before ssh_init()
This reverts commit ef1866db76ed10d64bf8cf97111554b2b2eb1278.
| C | lgpl-2.1 | kedazo/libssh,sebadoom/libssh,bigcat26/libssh-mod,miloj/libssh-v0.5,sebadoom/libssh,pouete/libssh,mwgoldsmith/ssh,jahrome/libssh,taikoo/libssh,kedazo/libssh,Distrotech/libssh,DouglasHeriot/libssh,rofl0r/libssh,robxu9/libssh,sebadoom/libssh,taikoo/libssh,robxu9/libssh,DouglasHeriot/libssh,jt1/honeypot-libssh,nviennot/libssh,jt1/honeypot-libssh,mwgoldsmith/libssh,miloj/libssh-v0.5,pouete/libssh,robxu9/libssh,kedazo/libssh,nviennot/libssh,miloj/libssh-v0.5,rofl0r/libssh,jahrome/libssh,DouglasHeriot/libssh,robxu9/libssh,nviennot/libssh,taikoo/libssh,bigcat26/libssh-mod,jt1/honeypot-libssh,bigcat26/libssh-mod,miloj/libssh-v0.5,rofl0r/libssh,nviennot/libssh,elastichosts/libssh,Distrotech/libssh,mwgoldsmith/ssh,pouete/libssh,jahrome/libssh,mwgoldsmith/ssh,taikoo/libssh,sebadoom/libssh,DouglasHeriot/libssh,bigcat26/libssh-mod,substack/libssh,wangshawn/libssh,elastichosts/libssh,mwgoldsmith/libssh,elastichosts/libssh,substack/libssh,pouete/libssh,wangshawn/libssh,kedazo/libssh,mwgoldsmith/libssh,jt1/honeypot-libssh,Distrotech/libssh,Distrotech/libssh,jahrome/libssh,substack/libssh,mwgoldsmith/libssh,wangshawn/libssh,mwgoldsmith/ssh,rofl0r/libssh,wangshawn/libssh,substack/libssh |
4909c1c0f260f2fcae73dd48982e2a4f22025e99 | tests/test-x509.c | tests/test-x509.c | #include <mongoc.h>
#include <mongoc-openssl-private.h>
#include "TestSuite.h"
static void
test_extract_subject (void)
{
char *subject;
subject = _mongoc_openssl_extract_subject (BINARY_DIR"/../certificates/client.pem");
ASSERT (0 == strcmp (subject, "CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US"));
bson_free (subject);
}
void
test_x509_install (TestSuite *suite)
{
TestSuite_Add (suite, "/SSL/extract_subject", test_extract_subject);
}
| #include <mongoc.h>
#include <mongoc-openssl-private.h>
#include "TestSuite.h"
static void
test_extract_subject (void)
{
char *subject;
subject = mongoc_ssl_extract_subject (BINARY_DIR"/../certificates/client.pem");
ASSERT_CMPSTR (subject, "CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US");
bson_free (subject);
}
void
test_x509_install (TestSuite *suite)
{
TestSuite_Add (suite, "/SSL/extract_subject", test_extract_subject);
}
| Improve test output on failure | Improve test output on failure
| C | apache-2.0 | remicollet/mongo-c-driver,acmorrow/mongo-c-driver,christopherjwang/mongo-c-driver,mschoenlaub/mongo-c-driver,Convey-Compliance/mongo-c-driver,mongodb/mongo-c-driver,derickr/mongo-c-driver,jmikola/mongo-c-driver,Machyne/mongo-c-driver,Convey-Compliance/mongo-c-driver,remicollet/mongo-c-driver,bjori/mongo-c-driver,bjori/mongo-c-driver,beingmeta/mongo-c-driver,Convey-Compliance/mongo-c-driver,bjori/mongo-c-driver,jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver,Machyne/mongo-c-driver,beingmeta/mongo-c-driver,derickr/mongo-c-driver,bjori/mongo-c-driver,ajdavis/mongo-c-driver,malexzx/mongo-c-driver,remicollet/mongo-c-driver,beingmeta/mongo-c-driver,remicollet/mongo-c-driver,ac000/mongo-c-driver,acmorrow/mongo-c-driver,rcsanchez97/mongo-c-driver,ac000/mongo-c-driver,ajdavis/mongo-c-driver,mongodb/mongo-c-driver,jmikola/mongo-c-driver,jmikola/mongo-c-driver,bjori/mongo-c-driver,rcsanchez97/mongo-c-driver,ajdavis/mongo-c-driver,bjori/mongo-c-driver,derickr/mongo-c-driver,derickr/mongo-c-driver,christopherjwang/mongo-c-driver,ajdavis/mongo-c-driver,malexzx/mongo-c-driver,mongodb/mongo-c-driver,Machyne/mongo-c-driver,malexzx/mongo-c-driver,christopherjwang/mongo-c-driver,ajdavis/mongo-c-driver,remicollet/mongo-c-driver,jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver,Convey-Compliance/mongo-c-driver,acmorrow/mongo-c-driver,mschoenlaub/mongo-c-driver,ajdavis/mongo-c-driver,ac000/mongo-c-driver,rcsanchez97/mongo-c-driver,beingmeta/mongo-c-driver,acmorrow/mongo-c-driver,acmorrow/mongo-c-driver,remicollet/mongo-c-driver,Machyne/mongo-c-driver,beingmeta/mongo-c-driver,rcsanchez97/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,beingmeta/mongo-c-driver,acmorrow/mongo-c-driver,mongodb/mongo-c-driver,derickr/mongo-c-driver,Convey-Compliance/mongo-c-driver,christopherjwang/mongo-c-driver,bjori/mongo-c-driver,jmikola/mongo-c-driver,malexzx/mongo-c-driver,jmikola/mongo-c-driver,acmorrow/mongo-c-driver,beingmeta/mongo-c-driver,mschoenlaub/mongo-c-driver,ajdavis/mongo-c-driver,mschoenlaub/mongo-c-driver,mongodb/mongo-c-driver,remicollet/mongo-c-driver,derickr/mongo-c-driver,derickr/mongo-c-driver,rcsanchez97/mongo-c-driver,beingmeta/mongo-c-driver |
a6e34734d37e483cff850ab23f5541e259e68a5a | Specta/Specta/SpectaUtility.h | Specta/Specta/SpectaUtility.h | #import <Foundation/Foundation.h>
extern NSString * const spt_kCurrentTestSuiteKey;
extern NSString * const spt_kCurrentSpecKey;
#define SPTCurrentTestSuite [[NSThread currentThread] threadDictionary][spt_kCurrentTestSuiteKey]
#define SPTCurrentSpec [[NSThread currentThread] threadDictionary][spt_kCurrentSpecKey]
#define SPTCurrentGroup [SPTCurrentTestSuite currentGroup]
#define SPTGroupStack [SPTCurrentTestSuite groupStack]
#define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return;
#define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")]
BOOL spt_isSpecClass(Class aClass);
NSString *spt_underscorize(NSString *string);
NSArray *spt_map(NSArray *array, id (^block)(id obj, NSUInteger idx));
NSArray *spt_shuffle(NSArray *array);
unsigned int spt_seed(); | #import <Foundation/Foundation.h>
extern NSString * const spt_kCurrentTestSuiteKey;
extern NSString * const spt_kCurrentSpecKey;
#define SPTCurrentTestSuite [[NSThread mainThread] threadDictionary][spt_kCurrentTestSuiteKey]
#define SPTCurrentSpec [[NSThread mainThread] threadDictionary][spt_kCurrentSpecKey]
#define SPTCurrentGroup [SPTCurrentTestSuite currentGroup]
#define SPTGroupStack [SPTCurrentTestSuite groupStack]
#define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return;
#define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")]
BOOL spt_isSpecClass(Class aClass);
NSString *spt_underscorize(NSString *string);
NSArray *spt_map(NSArray *array, id (^block)(id obj, NSUInteger idx));
NSArray *spt_shuffle(NSArray *array);
unsigned int spt_seed(); | Fix for reporting specta/expecta failures on the main thread. | Fix for reporting specta/expecta failures on the main thread.
| C | mit | alvinvarghese/specta,jmoody/specta,lmtim/specta,specta/specta,ExtremeMan/specta,PatrykKaczmarek/specta,adamkaplan/specta,ernestopino/specta,flovilmart/specta,segiddins/specta,dbarden/specta,iosdev-republicofapps/specta,wessmith/specta,ShawnLeee/specta,Vungle/specta,hanangellove/specta,Lightricks/specta,Taptera/specta,rad3ks/specta,iguchunhui/specta,mickeyreiss/specta |
28897da572e0d9b63c40fd66cbd4335a7236feb5 | Artsy/Tooling/ARDispatchManager.h | Artsy/Tooling/ARDispatchManager.h | // Dispatches asyncronously unless ARPerformWorkSynchronously is set on the shared dispatch manager
extern void ar_dispatch_async(dispatch_block_t block);
// Dispatches to the main queue unless ARPerformWorkSynchronously is set on the shared dispatch manager
extern void ar_dispatch_main_queue(dispatch_block_t block);
// Dispatches to a queue unless ARPerformWorkSynchronously is set on the shared dispatch manager
extern void ar_dispatch_on_queue(dispatch_queue_t queue, dispatch_block_t block);
extern void ar_dispatch_after_on_queue(float seconds, dispatch_queue_t queue, dispatch_block_t block);
extern void ar_dispatch_after(float seconds, dispatch_block_t block);
@interface ARDispatchManager : NSObject
+ (instancetype)sharedManager;
@end
| extern void ar_dispatch_async(dispatch_block_t block);
extern void ar_dispatch_main_queue(dispatch_block_t block);
// Dispatches to a queue unless ARPerformWorkAsynchronously is set to false
extern void ar_dispatch_on_queue(dispatch_queue_t queue, dispatch_block_t block);
extern void ar_dispatch_after_on_queue(float seconds, dispatch_queue_t queue, dispatch_block_t block);
extern void ar_dispatch_after(float seconds, dispatch_block_t block);
@interface ARDispatchManager : NSObject
+ (instancetype)sharedManager;
@end
| Remove + fix erroneous comments | Remove + fix erroneous comments
| C | mit | gaurav1981/eigen,Shawn-WangDapeng/eigen,mbogh/eigen,neonichu/eigen,Havi4/eigen,ppamorim/eigen,ichu501/eigen,mbogh/eigen,ppamorim/eigen,Shawn-WangDapeng/eigen,artsy/eigen,gaurav1981/eigen,artsy/eigen,xxclouddd/eigen,ichu501/eigen,Havi4/eigen,gaurav1981/eigen,gaurav1981/eigen,xxclouddd/eigen,neonichu/eigen,zhuzhengwei/eigen,artsy/eigen,Shawn-WangDapeng/eigen,mbogh/eigen,neonichu/eigen,mbogh/eigen,xxclouddd/eigen,ichu501/eigen,ppamorim/eigen,orta/eigen,xxclouddd/eigen,neonichu/eigen,zhuzhengwei/eigen,artsy/eigen,ichu501/eigen,orta/eigen,artsy/eigen,artsy/eigen,orta/eigen,Havi4/eigen,orta/eigen,ichu501/eigen,gaurav1981/eigen,ppamorim/eigen,zhuzhengwei/eigen,Shawn-WangDapeng/eigen,artsy/eigen,Shawn-WangDapeng/eigen,xxclouddd/eigen,zhuzhengwei/eigen,Havi4/eigen,neonichu/eigen |
4f56d0f5119e9cf9ba2f3b0f1f8d1eb201e8ea7d | include/utils/SkNullCanvas.h | include/utils/SkNullCanvas.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkNullCanvas_DEFINED
#define SkNullCanvas_DEFINED
#include "SkBitmap.h"
class SkCanvas;
/**
* Creates a canvas that draws nothing. This is useful for performance testing.
*/
SkCanvas* SkCreateNullCanvas();
#endif
| /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkNullCanvas_DEFINED
#define SkNullCanvas_DEFINED
#include "SkBitmap.h"
class SkCanvas;
/**
* Creates a canvas that draws nothing. This is useful for performance testing.
*/
SK_API SkCanvas* SkCreateNullCanvas();
#endif
| Add SK_API to null canvas create method | Add SK_API to null canvas create method
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4221 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,Frankie-666/color-emoji.skia,MatChung/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,hbwhlklive/color-emoji.skia |
76dd5ddb7e99a02e4ac8bc3219faababdd34ad59 | core/metautils/src/complexLinkdef.h | core/metautils/src/complexLinkdef.h | #include <complex>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass std::complex<int>+;
#pragma create TClass std::complex<long>+;
#pragma create TClass std::complex<float>+;
#pragma create TClass std::complex<double>+;
#ifdef G__NATIVELONGLONG
#pragma create TClass std::complex<long long>+;
// #pragma create TClass std::complex<long double>+;
#endif | Add missing new files for revision 32092 | Add missing new files for revision 32092
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@32093 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT |
|
080d3dbd798a116fb4159a3dbce3433b6229628c | minisat/mtl/Rnd.h | minisat/mtl/Rnd.h | /*******************************************************************************************[Rnd.h]
Copyright (c) 2012, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**************************************************************************************************/
#ifndef Minisat_Rnd_h
#define Minisat_Rnd_h
#include "minisat/mtl/Vec.h"
namespace Minisat {
// Generate a random double:
static inline double drand(double& seed)
{
seed *= 1389796;
int q = (int)(seed / 2147483647);
seed -= (double)q * 2147483647;
return seed / 2147483647;
}
// Generate a random integer:
static inline int irand(double& seed, int size) { return (int)(drand(seed) * size); }
// Randomly shuffle the contents of a vector:
template<class T>
static void randomShuffle(double& seed, vec<T>& xs)
{
for (int i = 0; i < xs.size(); i++){
int pick = i + irand(seed, xs.size() - i);
T tmp = xs[i];
xs[i] = xs[pick];
xs[pick] = tmp;
}
}
// Randomly shuffle a vector of a vector (ugly)
template<class T>
static void randomShuffle(double& seed, vec<vec<T> >& xs)
{
for (int i = 0; i < xs.size(); i++){
int pick = i + irand(seed, xs.size() - i);
vec<T> tmp; xs[i].moveTo(tmp);
xs[pick].moveTo(xs[i]);
tmp.moveTo(xs[pick]);
}
}
//=================================================================================================
} // namespace Minisat
#endif
| Move the random-generator to a more generic location. | Move the random-generator to a more generic location.
| C | mit | jamesbornholt/minisat,meteor/minisat,meteor/minisat,niklasso/minisat,robertsami/minisat,jamesbornholt/minisat,robertsami/minisat,mabdula/minisat,meteor/minisat,mabdula/minisat,meteor/minisat,niklasso/minisat,mabdula/minisat |
|
c1aebf3ea9e5fc1881078b6f286049090766fdfa | test/default/cmptest.h | test/default/cmptest.h |
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#ifndef TEST_SRCDIR
#define TEST_SRCDIR "./"
#endif
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_res;
int xmain(void);
int main(void)
{
FILE *fp_out;
int c;
if ((fp_res = fopen(TEST_NAME_RES, "w+")) == NULL) {
perror("fopen(" TEST_NAME_RES ")");
return 99;
}
if (sodium_init() != 0) {
return 99;
}
if (xmain() != 0) {
return 99;
}
rewind(fp_res);
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
perror("fopen(" TEST_NAME_OUT ")");
return 99;
}
do {
if ((c = fgetc(fp_res)) != fgetc(fp_out)) {
return 99;
}
} while (c != EOF);
return 0;
}
#undef printf
#define printf(...) fprintf(fp_res, __VA_ARGS__)
#define main xmain
#endif
|
#ifndef __CMPTEST_H__
#define __CMPTEST_H__
#include <stdio.h>
#include "sodium.h"
#ifndef TEST_SRCDIR
# define TEST_SRCDIR "."
#endif
#define TEST_NAME_RES TEST_NAME ".res"
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
#ifdef HAVE_ARC4RANDOM
# undef rand
# define rand(X) arc4random(X)
#endif
FILE *fp_res;
int xmain(void);
int main(void)
{
FILE *fp_out;
int c;
if ((fp_res = fopen(TEST_NAME_RES, "w+")) == NULL) {
perror("fopen(" TEST_NAME_RES ")");
return 99;
}
if (sodium_init() != 0) {
return 99;
}
if (xmain() != 0) {
return 99;
}
rewind(fp_res);
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
perror("fopen(" TEST_NAME_OUT ")");
return 99;
}
do {
if ((c = fgetc(fp_res)) != fgetc(fp_out)) {
return 99;
}
} while (c != EOF);
return 0;
}
#undef printf
#define printf(...) fprintf(fp_res, __VA_ARGS__)
#define main xmain
#endif
| Add a default value for TEST_SRCDIR | Add a default value for TEST_SRCDIR
| C | isc | netroby/libsodium,tml/libsodium,SpiderOak/libsodium,optedoblivion/android_external_libsodium,Payshares/libsodium,tml/libsodium,Payshares/libsodium,rustyhorde/libsodium,JackWink/libsodium,zhuqling/libsodium,HappyYang/libsodium,Payshare/libsodium,akkakks/libsodium,pyparallel/libsodium,zhuqling/libsodium,zhuqling/libsodium,paragonie-scott/libsodium,GreatFruitOmsk/libsodium,eburkitt/libsodium,akkakks/libsodium,mvduin/libsodium,rustyhorde/libsodium,JackWink/libsodium,Payshare/libsodium,kytvi2p/libsodium,SpiderOak/libsodium,paragonie-scott/libsodium,mvduin/libsodium,Payshares/libsodium,pyparallel/libsodium,donpark/libsodium,paragonie-scott/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,pmienk/libsodium,kytvi2p/libsodium,SpiderOak/libsodium,rustyhorde/libsodium,pyparallel/libsodium,HappyYang/libsodium,kytvi2p/libsodium,soumith/libsodium,GreatFruitOmsk/libsodium,donpark/libsodium,eburkitt/libsodium,pmienk/libsodium,donpark/libsodium,eburkitt/libsodium,JackWink/libsodium,tml/libsodium,SpiderOak/libsodium,akkakks/libsodium,mvduin/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,GreatFruitOmsk/libsodium,netroby/libsodium,pmienk/libsodium,akkakks/libsodium,soumith/libsodium,optedoblivion/android_external_libsodium,HappyYang/libsodium,Payshare/libsodium,CyanogenMod/android_external_dnscrypt_libsodium,rustyhorde/libsodium,optedoblivion/android_external_libsodium,netroby/libsodium,soumith/libsodium |
d01ba2e824813f5ab4eb0b379caf77fe93d6911c | src/etc/mingw-fix-include/winsock2.h | src/etc/mingw-fix-include/winsock2.h | #ifndef _FIX_WINSOCK2_H
#define _FIX_WINSOCK2_H 1
#include_next <winsock2.h>
typedef struct pollfd {
SOCKET fd;
short events;
short revents;
} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
#endif
| #ifndef _FIX_WINSOCK2_H
#define _FIX_WINSOCK2_H 1
#include_next <winsock2.h>
// mingw 4.0.x has broken headers (#9246) but mingw-w64 does not.
#if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4
typedef struct pollfd {
SOCKET fd;
short events;
short revents;
} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
#endif
#endif // _FIX_WINSOCK2_H
| Define WSAPOLLFD only on mingw 4.x | Define WSAPOLLFD only on mingw 4.x
Fixes #10327
| C | apache-2.0 | Ryman/rust,andars/rust,KokaKiwi/rust,bhickey/rand,kimroen/rust,kwantam/rust,jbclements/rust,vhbit/rust,jbclements/rust,nham/rust,rohitjoshi/rust,AerialX/rust-rt-minimal,erickt/rust,GBGamer/rust,aepsil0n/rust,reem/rust,defuz/rust,nwin/rust,nham/rust,SiegeLord/rust,miniupnp/rust,rohitjoshi/rust,XMPPwocky/rust,pshc/rust,mihneadb/rust,mihneadb/rust,mdinger/rust,jashank/rust,ktossell/rust,michaelballantyne/rust-gpu,servo/rust,erickt/rust,philyoon/rust,krzysz00/rust,mdinger/rust,servo/rust,reem/rust,jbclements/rust,krzysz00/rust,kimroen/rust,SiegeLord/rust,servo/rust,mihneadb/rust,seanrivera/rust,emk/rust,kimroen/rust,victorvde/rust,nham/rust,ejjeong/rust,quornian/rust,untitaker/rust,ejjeong/rust,nham/rust,0x73/rust,barosl/rust,sae-bom/rust,michaelballantyne/rust-gpu,aneeshusa/rust,zaeleus/rust,jroesch/rust,Ryman/rust,miniupnp/rust,kimroen/rust,avdi/rust,aepsil0n/rust,mitsuhiko/rust,ebfull/rust,0x73/rust,graydon/rust,GBGamer/rust,robertg/rust,kimroen/rust,ebfull/rust,vhbit/rust,aidancully/rust,victorvde/rust,mahkoh/rust,kimroen/rust,GBGamer/rust,quornian/rust,pshc/rust,mdinger/rust,jbclements/rust,aepsil0n/rust,fabricedesre/rust,bluss/rand,pelmers/rust,untitaker/rust,vhbit/rust,AerialX/rust,untitaker/rust,ebfull/rust,robertg/rust,GBGamer/rust,zaeleus/rust,quornian/rust,graydon/rust,fabricedesre/rust,P1start/rust,mihneadb/rust,stepancheg/rust-ide-rust,nwin/rust,AerialX/rust,pythonesque/rust,KokaKiwi/rust,rprichard/rust,robertg/rust,avdi/rust,richo/rust,nwin/rust,mitsuhiko/rust,robertg/rust,l0kod/rust,hauleth/rust,servo/rust,rprichard/rust,Ryman/rust,carols10cents/rust,pythonesque/rust,mahkoh/rust,bombless/rust,graydon/rust,stepancheg/rust-ide-rust,jbclements/rust,mahkoh/rust,zachwick/rust,miniupnp/rust,ebfull/rust,emk/rust,carols10cents/rust,krzysz00/rust,andars/rust,l0kod/rust,KokaKiwi/rust,avdi/rust,zachwick/rust,0x73/rust,mitsuhiko/rust,sae-bom/rust,pczarn/rust,jashank/rust,AerialX/rust-rt-minimal,hauleth/rust,rprichard/rust,AerialX/rust-rt-minimal,cllns/rust,robertg/rust,seanrivera/rust,victorvde/rust,Ryman/rust,gifnksm/rust,stepancheg/rust-ide-rust,michaelballantyne/rust-gpu,jroesch/rust,barosl/rust,aturon/rust,AerialX/rust,defuz/rust,AerialX/rust-rt-minimal,zubron/rust,TheNeikos/rust,miniupnp/rust,dwillmer/rust,zubron/rust,Ryman/rust,nham/rust,XMPPwocky/rust,seanrivera/rust,jashank/rust,victorvde/rust,reem/rust,Ryman/rust,AerialX/rust-rt-minimal,kwantam/rust,miniupnp/rust,richo/rust,XMPPwocky/rust,nwin/rust,aturon/rust,aneeshusa/rust,graydon/rust,barosl/rust,waynenilsen/rand,TheNeikos/rust,graydon/rust,fabricedesre/rust,cllns/rust,dwillmer/rust,ruud-v-a/rust,aidancully/rust,kwantam/rust,seanrivera/rust,untitaker/rust,jroesch/rust,SiegeLord/rust,andars/rust,jroesch/rust,AerialX/rust,mdinger/rust,ktossell/rust,zubron/rust,GBGamer/rust,krzysz00/rust,pczarn/rust,omasanori/rust,ejjeong/rust,bombless/rust,GrahamDennis/rand,mitsuhiko/rust,seanrivera/rust,KokaKiwi/rust,vhbit/rust,pythonesque/rust,GBGamer/rust,jashank/rust,aturon/rust,P1start/rust,reem/rust,mvdnes/rust,pythonesque/rust,SiegeLord/rust,nham/rust,jashank/rust,sae-bom/rust,victorvde/rust,emk/rust,ktossell/rust,michaelballantyne/rust-gpu,cllns/rust,zaeleus/rust,dinfuehr/rust,zachwick/rust,untitaker/rust,richo/rust,rprichard/rust,huonw/rand,erickt/rust,pczarn/rust,dinfuehr/rust,mitsuhiko/rust,defuz/rust,cllns/rust,stepancheg/rust-ide-rust,AerialX/rust,mvdnes/rust,hauleth/rust,philyoon/rust,pythonesque/rust,victorvde/rust,pelmers/rust,bombless/rust,miniupnp/rust,SiegeLord/rust,XMPPwocky/rust,pshc/rust,rohitjoshi/rust,sae-bom/rust,philyoon/rust,zubron/rust,mitsuhiko/rust,dwillmer/rust,barosl/rust,l0kod/rust,defuz/rust,andars/rust,rohitjoshi/rust,vhbit/rust,kwantam/rust,mihneadb/rust,l0kod/rust,michaelballantyne/rust-gpu,gifnksm/rust,avdi/rust,mitsuhiko/rust,bombless/rust,zubron/rust,ebfull/rust,pczarn/rust,pelmers/rust,Ryman/rust,aneeshusa/rust,quornian/rust,mvdnes/rust,TheNeikos/rust,miniupnp/rust,SiegeLord/rust,rprichard/rust,ejjeong/rust,rohitjoshi/rust,kimroen/rust,rprichard/rust,TheNeikos/rust,0x73/rust,barosl/rust,nwin/rust,cllns/rust,KokaKiwi/rust,avdi/rust,nwin/rust,quornian/rust,jbclements/rust,avdi/rust,erickt/rust,aturon/rust,servo/rust,miniupnp/rust,aepsil0n/rust,fabricedesre/rust,emk/rust,stepancheg/rust-ide-rust,pshc/rust,jroesch/rust,quornian/rust,shepmaster/rand,pelmers/rust,aidancully/rust,erickt/rust,mvdnes/rust,carols10cents/rust,aepsil0n/rust,servo/rust,reem/rust,aturon/rust,sae-bom/rust,zaeleus/rust,barosl/rust,mihneadb/rust,XMPPwocky/rust,philyoon/rust,dinfuehr/rust,servo/rust,ktossell/rust,gifnksm/rust,jroesch/rust,P1start/rust,graydon/rust,kwantam/rust,omasanori/rust,mahkoh/rust,pczarn/rust,nwin/rust,dinfuehr/rust,hauleth/rust,hauleth/rust,krzysz00/rust,SiegeLord/rust,andars/rust,aidancully/rust,ktossell/rust,omasanori/rust,omasanori/rust,carols10cents/rust,0x73/rust,dinfuehr/rust,GBGamer/rust,pythonesque/rust,emk/rust,zaeleus/rust,pshc/rust,P1start/rust,ruud-v-a/rust,l0kod/rust,jashank/rust,ruud-v-a/rust,P1start/rust,zachwick/rust,fabricedesre/rust,omasanori/rust,mvdnes/rust,dinfuehr/rust,seanrivera/rust,jroesch/rust,arthurprs/rand,aepsil0n/rust,P1start/rust,pelmers/rust,zubron/rust,vhbit/rust,gifnksm/rust,hauleth/rust,pelmers/rust,mdinger/rust,pythonesque/rust,ejjeong/rust,jbclements/rust,zubron/rust,XMPPwocky/rust,reem/rust,aturon/rust,dwillmer/rust,carols10cents/rust,andars/rust,l0kod/rust,zachwick/rust,0x73/rust,nwin/rust,retep998/rand,defuz/rust,bombless/rust,fabricedesre/rust,zachwick/rust,P1start/rust,pczarn/rust,AerialX/rust,fabricedesre/rust,dwillmer/rust,dwillmer/rust,untitaker/rust,rohitjoshi/rust,barosl/rust,pshc/rust,ruud-v-a/rust,pshc/rust,richo/rust,KokaKiwi/rust,aturon/rust,emk/rust,TheNeikos/rust,robertg/rust,kwantam/rust,bombless/rust-docs-chinese,aneeshusa/rust,bombless/rust,aidancully/rust,jroesch/rust,dwillmer/rust,cllns/rust,pczarn/rust,omasanori/rust,philyoon/rust,mdinger/rust,ebfull/rand,vhbit/rust,krzysz00/rust,dwillmer/rust,jashank/rust,zaeleus/rust,pshc/rust,philyoon/rust,sae-bom/rust,ebfull/rust,jashank/rust,jbclements/rust,aneeshusa/rust,ktossell/rust,l0kod/rust,ktossell/rust,aneeshusa/rust,stepancheg/rust-ide-rust,carols10cents/rust,defuz/rust,zubron/rust,mahkoh/rust,erickt/rust,jbclements/rust,stepancheg/rust-ide-rust,l0kod/rust,mahkoh/rust,emk/rust,AerialX/rust-rt-minimal,aidancully/rust,gifnksm/rust,achanda/rand,michaelballantyne/rust-gpu,0x73/rust,nham/rust,GBGamer/rust,ejjeong/rust,ruud-v-a/rust,vhbit/rust,erickt/rust,ruud-v-a/rust,gifnksm/rust,michaelballantyne/rust-gpu,TheNeikos/rust,quornian/rust,richo/rust,mvdnes/rust,richo/rust |
f638f8ac83763778ac5cca5b74674a058ccc1a07 | Airship/Common/UAAction.h | Airship/Common/UAAction.h | /*
Copyright 2009-2013 Urban Airship Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binaryform must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided withthe distribution.
THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC``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 URBAN AIRSHIP INC 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.
*/
#import <Foundation/Foundation.h>
@interface UAAction : NSObject
@end
| /*
Copyright 2009-2013 Urban Airship Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binaryform must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided withthe distribution.
THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC``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 URBAN AIRSHIP INC 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.
*/
#import <Foundation/Foundation.h>
#import "UAActionArguments.h"
typedef BOOL (^UAActionPredicate)(UAActionArguments *);
@interface UAAction : NSObject
@end
| Add action predicate block typedef | Add action predicate block typedef
| C | bsd-2-clause | mikerowan/ios-library,ipmobiletech/ios-library,grosch/ios-library,manuyavuz/ios-library,ipmobiletech/ios-library,zhangqinghe/ios-library,mikerowan/ios-library,manuyavuz/ios-library,mikerowan/ios-library,manuyavuz/ios-library,ipmobiletech/ios-library,grosch/ios-library,zhangqinghe/ios-library,grosch/ios-library,zhangqinghe/ios-library |
37265a87c7aa9743a2b20069be85d03529b18534 | src/main/cpp/blaze_abrupt_exit.h | src/main/cpp/blaze_abrupt_exit.h | // Copyright 2016 The Bazel 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.
//
//
// blaze_abrupt_exit.h: Deals with abrupt exits of the Blaze server.
//
#ifndef THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
#define THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
namespace blaze {
class GlobalVariables;
// Returns the exit code to use for when the Blaze server exits abruptly.
int GetExitCodeForAbruptExit(const GlobalVariables& globals);
} // namespace blaze
#endif // THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
| // Copyright 2016 The Bazel 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.
//
//
// blaze_abrupt_exit.h: Deals with abrupt exits of the Blaze server.
//
#ifndef THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
#define THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
namespace blaze {
struct GlobalVariables;
// Returns the exit code to use for when the Blaze server exits abruptly.
int GetExitCodeForAbruptExit(const GlobalVariables& globals);
} // namespace blaze
#endif // THIRD_PARTY_BAZEL_SRC_MAIN_CPP_BLAZE_ABRUPT_EXIT_H_
| Fix compile warning for struct/class mismatch | Fix compile warning for struct/class mismatch
./compile.sh is giving:
$ ./compile.sh build bazel-bin/src/bazel
🍃 Building Bazel with Bazel.
INFO: Found 1 target...
INFO: From Compiling src/main/cpp/blaze.cc:
In file included from src/main/cpp/blaze.cc:58:
./src/main/cpp/blaze_globals.h:42:1: warning: 'GlobalVariables' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct GlobalVariables {
^
./src/main/cpp/blaze_abrupt_exit.h:23:1: note: did you mean struct here?
class GlobalVariables;
^~~~~
struct
1 warning generated.
--
MOS_MIGRATED_REVID=111863702
| C | apache-2.0 | meteorcloudy/bazel,mikelalcon/bazel,iamthearm/bazel,juhalindfors/bazel-patches,damienmg/bazel,kchodorow/bazel,juhalindfors/bazel-patches,iamthearm/bazel,davidzchen/bazel,LuminateWireless/bazel,dropbox/bazel,dslomov/bazel,mikelikespie/bazel,damienmg/bazel,safarmer/bazel,safarmer/bazel,hermione521/bazel,mikelikespie/bazel,iamthearm/bazel,safarmer/bazel,anupcshan/bazel,cushon/bazel,Asana/bazel,Asana/bazel,hermione521/bazel,akira-baruah/bazel,dslomov/bazel-windows,ulfjack/bazel,anupcshan/bazel,juhalindfors/bazel-patches,kchodorow/bazel,anupcshan/bazel,ulfjack/bazel,ulfjack/bazel,snnn/bazel,abergmeier-dsfishlabs/bazel,snnn/bazel,LuminateWireless/bazel,hhclam/bazel,Asana/bazel,rohitsaboo/bazel,dslomov/bazel,aehlig/bazel,abergmeier-dsfishlabs/bazel,damienmg/bazel,dropbox/bazel,mrdomino/bazel,mikelikespie/bazel,kchodorow/bazel,davidzchen/bazel,perezd/bazel,dropbox/bazel,davidzchen/bazel,cushon/bazel,dslomov/bazel,juhalindfors/bazel-patches,kchodorow/bazel-1,ButterflyNetwork/bazel,LuminateWireless/bazel,akira-baruah/bazel,mikelikespie/bazel,mbrukman/bazel,aehlig/bazel,juhalindfors/bazel-patches,iamthearm/bazel,mikelalcon/bazel,bazelbuild/bazel,ulfjack/bazel,snnn/bazel,cushon/bazel,werkt/bazel,aehlig/bazel,anupcshan/bazel,bazelbuild/bazel,mikelalcon/bazel,zhexuany/bazel,damienmg/bazel,werkt/bazel,variac/bazel,spxtr/bazel,rohitsaboo/bazel,snnn/bazel,variac/bazel,dslomov/bazel,UrbanCompass/bazel,zhexuany/bazel,iamthearm/bazel,werkt/bazel,mbrukman/bazel,aehlig/bazel,akira-baruah/bazel,dslomov/bazel-windows,akira-baruah/bazel,spxtr/bazel,meteorcloudy/bazel,davidzchen/bazel,kchodorow/bazel-1,ulfjack/bazel,dslomov/bazel-windows,whuwxl/bazel,kchodorow/bazel-1,mrdomino/bazel,variac/bazel,juhalindfors/bazel-patches,kchodorow/bazel,twitter-forks/bazel,LuminateWireless/bazel,UrbanCompass/bazel,abergmeier-dsfishlabs/bazel,juhalindfors/bazel-patches,variac/bazel,perezd/bazel,hermione521/bazel,perezd/bazel,UrbanCompass/bazel,spxtr/bazel,bazelbuild/bazel,perezd/bazel,aehlig/bazel,kchodorow/bazel-1,rohitsaboo/bazel,safarmer/bazel,kchodorow/bazel,mikelalcon/bazel,zhexuany/bazel,davidzchen/bazel,twitter-forks/bazel,UrbanCompass/bazel,LuminateWireless/bazel,zhexuany/bazel,variac/bazel,snnn/bazel,werkt/bazel,perezd/bazel,perezd/bazel,dslomov/bazel-windows,meteorcloudy/bazel,cushon/bazel,ButterflyNetwork/bazel,mbrukman/bazel,damienmg/bazel,variac/bazel,ulfjack/bazel,hhclam/bazel,mbrukman/bazel,twitter-forks/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,hermione521/bazel,katre/bazel,whuwxl/bazel,katre/bazel,twitter-forks/bazel,spxtr/bazel,mrdomino/bazel,mikelalcon/bazel,abergmeier-dsfishlabs/bazel,mrdomino/bazel,katre/bazel,dslomov/bazel,snnn/bazel,Asana/bazel,aehlig/bazel,akira-baruah/bazel,hhclam/bazel,hhclam/bazel,dropbox/bazel,dslomov/bazel-windows,LuminateWireless/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,aehlig/bazel,variac/bazel,rohitsaboo/bazel,damienmg/bazel,dslomov/bazel,meteorcloudy/bazel,katre/bazel,hhclam/bazel,meteorcloudy/bazel,cushon/bazel,davidzchen/bazel,kchodorow/bazel-1,whuwxl/bazel,bazelbuild/bazel,hermione521/bazel,mrdomino/bazel,bazelbuild/bazel,ulfjack/bazel,kchodorow/bazel,meteorcloudy/bazel,davidzchen/bazel,mikelalcon/bazel,perezd/bazel,safarmer/bazel,spxtr/bazel,damienmg/bazel,whuwxl/bazel,dropbox/bazel,mrdomino/bazel,hhclam/bazel,rohitsaboo/bazel,mikelikespie/bazel,katre/bazel,twitter-forks/bazel,mikelikespie/bazel,kchodorow/bazel,anupcshan/bazel,werkt/bazel,Asana/bazel,spxtr/bazel,UrbanCompass/bazel,whuwxl/bazel,bazelbuild/bazel,cushon/bazel,mbrukman/bazel,zhexuany/bazel,Asana/bazel,kchodorow/bazel-1,hermione521/bazel,twitter-forks/bazel,iamthearm/bazel,spxtr/bazel,dropbox/bazel,ButterflyNetwork/bazel,rohitsaboo/bazel,ButterflyNetwork/bazel,dslomov/bazel,safarmer/bazel,abergmeier-dsfishlabs/bazel,UrbanCompass/bazel,zhexuany/bazel,Asana/bazel,whuwxl/bazel,dslomov/bazel-windows,mbrukman/bazel,anupcshan/bazel,meteorcloudy/bazel,katre/bazel,snnn/bazel,werkt/bazel,abergmeier-dsfishlabs/bazel |
862f7bcae063e448d7cc7bb326e65705835d9d03 | include/cprtypes.h | include/cprtypes.h | #ifndef _CPR_TYPES_H_
#define _CPR_TYPES_H_
#include <map>
#include <string>
#include <curl/curl.h>
struct case_insensitive_compare
{
case_insensitive_compare() {}
bool operator()(const std::string& a, const std::string& b) const {
return to_lower(a) < to_lower(b);
}
static void char_to_lower(char& c) {
if (c >= 'A' && c <= 'Z')
c += ('a' - 'A');
}
static std::string to_lower(const std::string& a) {
std::string s(a);
std::for_each(s.begin(), s.end(), char_to_lower);
return s;
}
};
typedef std::map<std::string, std::string> Parameters;
typedef std::map<std::string, std::string, case_insensitive_compare> Header;
typedef std::string Url;
typedef std::map<std::string, std::string> Payload;
typedef long Timeout;
typedef struct {
CURL* handle;
struct curl_slist* chunk;
} CurlHolder;
#endif
| #ifndef _CPR_TYPES_H_
#define _CPR_TYPES_H_
#include <algorithm>
#include <map>
#include <string>
#include <curl/curl.h>
struct case_insensitive_compare
{
case_insensitive_compare() {}
bool operator()(const std::string& a, const std::string& b) const {
return to_lower(a) < to_lower(b);
}
static void char_to_lower(char& c) {
if (c >= 'A' && c <= 'Z')
c += ('a' - 'A');
}
static std::string to_lower(const std::string& a) {
std::string s(a);
std::for_each(s.begin(), s.end(), char_to_lower);
return s;
}
};
typedef std::map<std::string, std::string> Parameters;
typedef std::map<std::string, std::string, case_insensitive_compare> Header;
typedef std::string Url;
typedef std::map<std::string, std::string> Payload;
typedef long Timeout;
typedef struct {
CURL* handle;
struct curl_slist* chunk;
} CurlHolder;
#endif
| Include header where for_each is defined | Include header where for_each is defined
| C | mit | skystrife/cpr,msuvajac/cpr,aquilleph/cpr,SuperV1234/cpr,aquilleph/cpr,gruzovator/cpr,smiley/cpr,whoshuu/cpr,smiley/cpr,SuperV1234/cpr,whoshuu/cpr,whoshuu/cpr,skystrife/cpr,gruzovator/cpr,msuvajac/cpr,skystrife/cpr,msuvajac/cpr,SuperV1234/cpr |
07665aa311d6a157f18d36489de67f4a258811a0 | tensorflow/core/platform/default/cord.h | tensorflow/core/platform/default/cord.h | /* Copyright 2015 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 TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
#define TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
#if !defined(__CUDACC__)
// TODO(frankchn): Resolve compilation errors when building absl::Cord with CUDA
#include "absl/strings/cord.h"
#define TF_CORD_SUPPORT 1
#endif // __CUDACC__
#endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
| /* Copyright 2015 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 TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
#define TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
#include "absl/strings/cord.h"
#define TF_CORD_SUPPORT 1
#endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_CORD_H_
| Enable Cord in NVCC build. | Enable Cord in NVCC build.
PiperOrigin-RevId: 362322881
Change-Id: I49c24e6e961258b96c194812452de27678141300
| C | apache-2.0 | tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,karllessard/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,frreiss/tensorflow-fred,yongtang/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,petewarden/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model |
8361a0fa2c24bc58f43a48c77ed6ba9ad1819b63 | gpu/include/GrGLConfig_chrome.h | gpu/include/GrGLConfig_chrome.h | #ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED
#define GR_SUPPORT_GLES2 1
// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer 0
#define GR_GL_PLATFORM_HEADER <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h>
#define GR_GL_FUNCTION_TYPE
#define GR_GL_PROC_ADDRESS(X) &X
// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT GR_BGRA
// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START 0
#endif
| #ifndef GrGLConfig_chrome_DEFINED
#define GrGLConfig_chrome_DEFINED
#define GR_SUPPORT_GLES2 1
// gl2ext.h will define these extensions macros but Chrome doesn't provide
// prototypes.
#define GL_OES_mapbuffer 0
#define GR_GL_PLATFORM_HEADER <GLES2/gl2.h>
#define GR_GL_PLATFORM_HEADER_EXT <GLES2/gl2ext.h>
#define GR_GL_FUNCTION_TYPE
#define GR_GL_PROC_ADDRESS(X) &X
// chrome always assumes BGRA
#define GR_GL_32BPP_COLOR_FORMAT GR_GL_BGRA
// glGetError() forces a sync with gpu process on chrome
#define GR_GL_CHECK_ERROR_START 0
#endif
| Fix macro in Chrome's GL config file | Fix macro in Chrome's GL config file
Review URL: http://codereview.appspot.com/4308041/
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@980 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | geekboxzone/mmallow_external_skia,larsbergstrom/skia,sudosurootdev/external_skia,GladeRom/android_external_skia,rubenvb/skia,ominux/skia,MarshedOut/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,noselhq/skia,F-AOSP/platform_external_skia,MarshedOut/android_external_skia,UBERMALLOW/external_skia,suyouxin/android_external_skia,BrokenROM/external_skia,boulzordev/android_external_skia,shahrzadmn/skia,PAC-ROM/android_external_skia,TeslaOS/android_external_skia,geekboxzone/mmallow_external_skia,sigysmund/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,boulzordev/android_external_skia,suyouxin/android_external_skia,Tesla-Redux/android_external_skia,Igalia/skia,larsbergstrom/skia,InfinitiveOS/external_skia,shahrzadmn/skia,MyAOSP/external_chromium_org_third_party_skia,vanish87/skia,nfxosp/platform_external_skia,shahrzadmn/skia,xzzz9097/android_external_skia,rubenvb/skia,TeslaProject/external_skia,NamelessRom/android_external_skia,OptiPop/external_skia,Samsung/skia,sigysmund/platform_external_skia,MIPS/external-chromium_org-third_party-skia,sigysmund/platform_external_skia,MinimalOS/external_skia,Asteroid-Project/android_external_skia,aosp-mirror/platform_external_skia,MinimalOS-AOSP/platform_external_skia,ench0/external_skia,ench0/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,suyouxin/android_external_skia,amyvmiwei/skia,spezi77/android_external_skia,todotodoo/skia,sombree/android_external_skia,PAC-ROM/android_external_skia,Jichao/skia,RadonX-ROM/external_skia,invisiblek/android_external_skia,aospo/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,RadonX-ROM/external_skia,boulzordev/android_external_skia,TeamExodus/external_skia,Hikari-no-Tenshi/android_external_skia,ominux/skia,Fusion-Rom/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,tmpvar/skia.cc,tmpvar/skia.cc,Fusion-Rom/external_chromium_org_third_party_skia,byterom/android_external_skia,vvuk/skia,TeslaProject/external_skia,OneRom/external_skia,codeaurora-unoffical/platform-external-skia,Pure-Aosp/android_external_skia,akiss77/skia,akiss77/skia,amyvmiwei/skia,Android-AOSP/external_skia,byterom/android_external_skia,geekboxzone/lollipop_external_skia,Jichao/skia,Purity-Lollipop/platform_external_skia,aospo/platform_external_skia,temasek/android_external_skia,OptiPop/external_chromium_org_third_party_skia,AsteroidOS/android_external_skia,spezi77/android_external_skia,HealthyHoney/temasek_SKIA,UBERMALLOW/external_skia,Purity-Lollipop/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,VentureROM-L/android_external_skia,ctiao/platform-external-skia,MyAOSP/external_chromium_org_third_party_skia,TeamEOS/external_skia,Fusion-Rom/android_external_skia,DiamondLovesYou/skia-sys,AsteroidOS/android_external_skia,tmpvar/skia.cc,w3nd1go/android_external_skia,PAC-ROM/android_external_skia,Pure-Aosp/android_external_skia,HalCanary/skia-hc,houst0nn/external_skia,HalCanary/skia-hc,Plain-Andy/android_platform_external_skia,aosp-mirror/platform_external_skia,AOSPA-L/android_external_skia,MinimalOS/android_external_skia,sigysmund/platform_external_skia,AOSPA-L/android_external_skia,mydongistiny/android_external_skia,nox/skia,mozilla-b2g/external_skia,RadonX-ROM/external_skia,HealthyHoney/temasek_SKIA,android-ia/platform_external_skia,PAC-ROM/android_external_skia,HealthyHoney/temasek_SKIA,DiamondLovesYou/skia-sys,Infusion-OS/android_external_skia,RadonX-ROM/external_skia,w3nd1go/android_external_skia,houst0nn/external_skia,TeamExodus/external_skia,RadonX-ROM/external_skia,MinimalOS-AOSP/platform_external_skia,pacerom/external_skia,aosp-mirror/platform_external_skia,chenlian2015/skia_from_google,TeamEOS/external_skia,nfxosp/platform_external_skia,jtg-gg/skia,xin3liang/platform_external_chromium_org_third_party_skia,w3nd1go/android_external_skia,timduru/platform-external-skia,VentureROM-L/android_external_skia,qrealka/skia-hc,AOSPU/external_chromium_org_third_party_skia,nvoron23/skia,vanish87/skia,Fusion-Rom/android_external_skia,noselhq/skia,vvuk/skia,sudosurootdev/external_skia,boulzordev/android_external_skia,TeamEOS/external_skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS/external_skia,Igalia/skia,temasek/android_external_skia,noselhq/skia,DARKPOP/external_chromium_org_third_party_skia,android-ia/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,fire855/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,AOSPB/external_skia,mmatyas/skia,Euphoria-OS-Legacy/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,Infusion-OS/android_external_skia,GladeRom/android_external_skia,TeslaProject/external_skia,F-AOSP/platform_external_skia,MinimalOS/android_external_skia,HalCanary/skia-hc,ench0/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,suyouxin/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,byterom/android_external_skia,MonkeyZZZZ/platform_external_skia,boulzordev/android_external_skia,OneRom/external_skia,Omegaphora/external_chromium_org_third_party_skia,Euphoria-OS-Legacy/android_external_skia,OneRom/external_skia,qrealka/skia-hc,geekboxzone/lollipop_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,akiss77/skia,TeamEOS/external_chromium_org_third_party_skia,sigysmund/platform_external_skia,amyvmiwei/skia,TeamExodus/external_skia,Infinitive-OS/platform_external_skia,SlimSaber/android_external_skia,chenlian2015/skia_from_google,larsbergstrom/skia,TeslaProject/external_skia,MinimalOS-AOSP/platform_external_skia,amyvmiwei/skia,OneRom/external_skia,sudosurootdev/external_skia,byterom/android_external_skia,ench0/external_skia,Plain-Andy/android_platform_external_skia,AOSPA-L/android_external_skia,sombree/android_external_skia,SlimSaber/android_external_skia,MinimalOS/external_skia,YUPlayGodDev/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,Igalia/skia,android-ia/platform_external_skia,RadonX-ROM/external_skia,noselhq/skia,CyanogenMod/android_external_chromium_org_third_party_skia,MinimalOS/android_external_skia,YUPlayGodDev/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,aospo/platform_external_skia,Hybrid-Rom/external_skia,geekboxzone/mmallow_external_skia,ench0/external_chromium_org_third_party_skia,TeamExodus/external_skia,OptiPop/external_skia,scroggo/skia,Euphoria-OS-Legacy/android_external_skia,larsbergstrom/skia,MinimalOS-AOSP/platform_external_skia,FusionSP/android_external_skia,AsteroidOS/android_external_skia,codeaurora-unoffical/platform-external-skia,ominux/skia,MinimalOS/external_skia,Hybrid-Rom/external_skia,pcwalton/skia,pacerom/external_skia,MinimalOS/android_external_skia,geekboxzone/mmallow_external_skia,TeamEOS/external_skia,MyAOSP/external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,houst0nn/external_skia,android-ia/platform_external_chromium_org_third_party_skia,nox/skia,Hikari-no-Tenshi/android_external_skia,noselhq/skia,nox/skia,TeamEOS/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,shahrzadmn/skia,rubenvb/skia,ench0/external_chromium_org_third_party_skia,pacerom/external_skia,AndroidOpenDevelopment/android_external_skia,BrokenROM/external_skia,chenlian2015/skia_from_google,pacerom/external_skia,aosp-mirror/platform_external_skia,codeaurora-unoffical/platform-external-skia,Hybrid-Rom/external_skia,android-ia/platform_external_chromium_org_third_party_skia,ominux/skia,Infusion-OS/android_external_skia,ominux/skia,CyanogenMod/android_external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,MinimalOS/external_skia,GladeRom/android_external_skia,MIPS/external-chromium_org-third_party-skia,shahrzadmn/skia,TeslaOS/android_external_skia,Tesla-Redux/android_external_skia,nvoron23/skia,larsbergstrom/skia,Asteroid-Project/android_external_skia,AndroidOpenDevelopment/android_external_skia,VRToxin-AOSP/android_external_skia,mmatyas/skia,pcwalton/skia,xzzz9097/android_external_skia,w3nd1go/android_external_skia,nox/skia,tmpvar/skia.cc,mydongistiny/android_external_skia,OptiPop/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,temasek/android_external_skia,shahrzadmn/skia,nvoron23/skia,temasek/android_external_skia,todotodoo/skia,google/skia,AOSP-YU/platform_external_skia,w3nd1go/android_external_skia,google/skia,geekboxzone/mmallow_external_skia,larsbergstrom/skia,TeamExodus/external_skia,RadonX-ROM/external_skia,TeamEOS/external_chromium_org_third_party_skia,TeslaOS/android_external_skia,UBERMALLOW/external_skia,DARKPOP/external_chromium_org_third_party_skia,SlimSaber/android_external_skia,jtg-gg/skia,MinimalOS/android_external_skia,ctiao/platform-external-skia,TeamTwisted/external_skia,AOSP-YU/platform_external_skia,Asteroid-Project/android_external_skia,geekboxzone/lollipop_external_skia,Jichao/skia,Khaon/android_external_skia,ench0/external_chromium_org_third_party_skia,Tesla-Redux/android_external_skia,ench0/external_skia,DesolationStaging/android_external_skia,TeamBliss-LP/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,akiss77/skia,NamelessRom/android_external_skia,aosp-mirror/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,nfxosp/platform_external_skia,sudosurootdev/external_skia,TeamEOS/external_skia,google/skia,todotodoo/skia,AOSPB/external_skia,SlimSaber/android_external_skia,nvoron23/skia,Pure-Aosp/android_external_skia,sigysmund/platform_external_skia,wildermason/external_skia,geekboxzone/lollipop_external_skia,jtg-gg/skia,Jichao/skia,F-AOSP/platform_external_skia,timduru/platform-external-skia,chenlian2015/skia_from_google,byterom/android_external_skia,android-ia/platform_external_skia,HealthyHoney/temasek_SKIA,AndroidOpenDevelopment/android_external_skia,mmatyas/skia,Khaon/android_external_skia,suyouxin/android_external_skia,codeaurora-unoffical/platform-external-skia,w3nd1go/android_external_skia,qrealka/skia-hc,MonkeyZZZZ/platform_external_skia,spezi77/android_external_skia,rubenvb/skia,todotodoo/skia,NamelessRom/android_external_skia,NamelessRom/android_external_skia,Jichao/skia,nox/skia,temasek/android_external_skia,rubenvb/skia,ench0/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,FusionSP/android_external_skia,TeslaOS/android_external_skia,xzzz9097/android_external_skia,HealthyHoney/temasek_SKIA,Tesla-Redux/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,tmpvar/skia.cc,Infusion-OS/android_external_skia,VentureROM-L/android_external_skia,VentureROM-L/android_external_skia,ench0/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,HalCanary/skia-hc,Infinitive-OS/platform_external_skia,qrealka/skia-hc,AsteroidOS/android_external_skia,pcwalton/skia,HalCanary/skia-hc,MinimalOS/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,amyvmiwei/skia,AOSPU/external_chromium_org_third_party_skia,akiss77/skia,DesolationStaging/android_external_skia,sudosurootdev/external_skia,Fusion-Rom/android_external_skia,Hybrid-Rom/external_skia,houst0nn/external_skia,nfxosp/platform_external_skia,AndroidOpenDevelopment/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,Pure-Aosp/android_external_skia,YUPlayGodDev/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,MonkeyZZZZ/platform_external_skia,Samsung/skia,Omegaphora/external_skia,VRToxin-AOSP/android_external_skia,spezi77/android_external_skia,FusionSP/external_chromium_org_third_party_skia,vanish87/skia,akiss77/skia,AOSP-YU/platform_external_skia,Igalia/skia,Infusion-OS/android_external_skia,AndroidOpenDevelopment/android_external_skia,samuelig/skia,HalCanary/skia-hc,MarshedOut/android_external_skia,nox/skia,TeamTwisted/external_skia,mydongistiny/android_external_skia,VentureROM-L/android_external_skia,amyvmiwei/skia,google/skia,Tesla-Redux/android_external_skia,Hybrid-Rom/external_skia,aospo/platform_external_skia,xzzz9097/android_external_skia,InfinitiveOS/external_skia,fire855/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,tmpvar/skia.cc,vvuk/skia,zhaochengw/platform_external_skia,vanish87/skia,aospo/platform_external_skia,zhaochengw/platform_external_skia,ench0/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,ench0/external_skia,Samsung/skia,TeamEOS/external_chromium_org_third_party_skia,AOSPB/external_skia,invisiblek/android_external_skia,TeslaOS/android_external_skia,TeamEOS/external_skia,wildermason/external_skia,suyouxin/android_external_skia,samuelig/skia,AOSPA-L/android_external_skia,samuelig/skia,TeamBliss-LP/android_external_skia,google/skia,InfinitiveOS/external_skia,samuelig/skia,qrealka/skia-hc,FusionSP/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,TeamBliss-LP/android_external_skia,HealthyHoney/temasek_SKIA,OneRom/external_skia,VRToxin-AOSP/android_external_skia,TeamTwisted/external_skia,MyAOSP/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,larsbergstrom/skia,samuelig/skia,OptiPop/external_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/android_external_skia,Hikari-no-Tenshi/android_external_skia,android-ia/platform_external_skia,TeamBliss-LP/android_external_skia,samuelig/skia,Tesla-Redux/android_external_skia,Plain-Andy/android_platform_external_skia,Purity-Lollipop/platform_external_skia,DARKPOP/external_chromium_org_third_party_skia,akiss77/skia,scroggo/skia,houst0nn/external_skia,sigysmund/platform_external_skia,Omegaphora/external_skia,Omegaphora/external_skia,Infinitive-OS/platform_external_skia,Euphoria-OS-Legacy/android_external_skia,TeamExodus/external_skia,fire855/android_external_skia,SlimSaber/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,shahrzadmn/skia,AOSPA-L/android_external_skia,FusionSP/external_chromium_org_third_party_skia,sudosurootdev/external_skia,zhaochengw/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,Purity-Lollipop/platform_external_skia,fire855/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,houst0nn/external_skia,fire855/android_external_skia,HealthyHoney/temasek_SKIA,todotodoo/skia,Pure-Aosp/android_external_skia,Pure-Aosp/android_external_skia,spezi77/android_external_skia,MonkeyZZZZ/platform_external_skia,BrokenROM/external_skia,Android-AOSP/external_skia,Android-AOSP/external_skia,Jichao/skia,sombree/android_external_skia,ench0/external_chromium_org_third_party_skia,sombree/android_external_skia,MIPS/external-chromium_org-third_party-skia,rubenvb/skia,VRToxin-AOSP/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,aospo/platform_external_skia,Purity-Lollipop/platform_external_skia,noselhq/skia,MinimalOS-AOSP/platform_external_skia,qrealka/skia-hc,AOSPU/external_chromium_org_third_party_skia,boulzordev/android_external_skia,tmpvar/skia.cc,ominux/skia,AOSP-YU/platform_external_skia,DiamondLovesYou/skia-sys,TeslaOS/android_external_skia,Purity-Lollipop/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,Jichao/skia,todotodoo/skia,scroggo/skia,BrokenROM/external_skia,aosp-mirror/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,ctiao/platform-external-skia,chenlian2015/skia_from_google,NamelessRom/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,MIPS/external-chromium_org-third_party-skia,DiamondLovesYou/skia-sys,boulzordev/android_external_skia,Hikari-no-Tenshi/android_external_skia,MinimalOS/external_skia,Pure-Aosp/android_external_skia,TeamBliss-LP/android_external_skia,wildermason/external_skia,geekboxzone/mmallow_external_skia,Samsung/skia,Plain-Andy/android_platform_external_skia,PAC-ROM/android_external_skia,scroggo/skia,Omegaphora/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,DesolationStaging/android_external_skia,wildermason/external_skia,Khaon/android_external_skia,invisiblek/android_external_skia,UBERMALLOW/external_skia,VRToxin-AOSP/android_external_skia,AOSPU/external_chromium_org_third_party_skia,Android-AOSP/external_skia,PAC-ROM/android_external_skia,TeamTwisted/external_skia,Asteroid-Project/android_external_skia,HalCanary/skia-hc,invisiblek/android_external_skia,Igalia/skia,aospo/platform_external_skia,ench0/external_skia,Android-AOSP/external_skia,TeslaProject/external_skia,YUPlayGodDev/platform_external_skia,fire855/android_external_skia,TeamBliss-LP/android_external_skia,noselhq/skia,DiamondLovesYou/skia-sys,ctiao/platform-external-skia,w3nd1go/android_external_skia,InfinitiveOS/external_skia,DesolationStaging/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,Samsung/skia,MinimalOS/android_external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,pcwalton/skia,pcwalton/skia,geekboxzone/lollipop_external_skia,YUPlayGodDev/platform_external_skia,nox/skia,mydongistiny/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,Android-AOSP/external_skia,Igalia/skia,vanish87/skia,Omegaphora/external_chromium_org_third_party_skia,Asteroid-Project/android_external_skia,timduru/platform-external-skia,Purity-Lollipop/platform_external_skia,YUPlayGodDev/platform_external_skia,TeamEOS/external_skia,Hybrid-Rom/external_skia,Fusion-Rom/android_external_skia,AsteroidOS/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,xin3liang/platform_external_chromium_org_third_party_skia,HealthyHoney/temasek_SKIA,geekboxzone/lollipop_external_skia,xzzz9097/android_external_skia,pacerom/external_skia,nfxosp/platform_external_skia,F-AOSP/platform_external_skia,zhaochengw/platform_external_skia,Samsung/skia,sombree/android_external_skia,rubenvb/skia,sombree/android_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,VRToxin-AOSP/android_external_skia,aosp-mirror/platform_external_skia,nfxosp/platform_external_skia,boulzordev/android_external_skia,MinimalOS/android_external_skia,invisiblek/android_external_skia,amyvmiwei/skia,MinimalOS/external_skia,qrealka/skia-hc,MarshedOut/android_external_skia,byterom/android_external_skia,jtg-gg/skia,Hybrid-Rom/external_skia,mydongistiny/external_chromium_org_third_party_skia,todotodoo/skia,MinimalOS/android_external_skia,F-AOSP/platform_external_skia,AOSPB/external_skia,MIPS/external-chromium_org-third_party-skia,Hikari-no-Tenshi/android_external_skia,TeamBliss-LP/android_external_skia,Igalia/skia,samuelig/skia,Infinitive-OS/platform_external_skia,UBERMALLOW/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AndroidOpenDevelopment/android_external_skia,SlimSaber/android_external_skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,FusionSP/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,MIPS/external-chromium_org-third_party-skia,InfinitiveOS/external_skia,ominux/skia,UBERMALLOW/external_skia,VentureROM-L/android_external_skia,vvuk/skia,vanish87/skia,scroggo/skia,TeamTwisted/external_skia,suyouxin/android_external_skia,OneRom/external_skia,Purity-Lollipop/platform_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,nvoron23/skia,GladeRom/android_external_skia,mmatyas/skia,AOSPA-L/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_skia,MarshedOut/android_external_skia,wildermason/external_skia,codeaurora-unoffical/platform-external-skia,BrokenROM/external_skia,wildermason/external_skia,MinimalOS/android_external_skia,ominux/skia,Fusion-Rom/external_chromium_org_third_party_skia,BrokenROM/external_skia,mydongistiny/external_chromium_org_third_party_skia,samuelig/skia,MinimalOS/external_chromium_org_third_party_skia,DesolationStaging/android_external_skia,ctiao/platform-external-skia,pcwalton/skia,Tesla-Redux/android_external_skia,nfxosp/platform_external_skia,tmpvar/skia.cc,vvuk/skia,zhaochengw/platform_external_skia,sombree/android_external_skia,Euphoria-OS-Legacy/android_external_skia,HalCanary/skia-hc,mozilla-b2g/external_skia,fire855/android_external_skia,NamelessRom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamExodus/external_skia,OptiPop/external_skia,Jichao/skia,mozilla-b2g/external_skia,mmatyas/skia,MinimalOS/external_chromium_org_third_party_skia,timduru/platform-external-skia,chenlian2015/skia_from_google,MinimalOS/android_external_chromium_org_third_party_skia,google/skia,Omegaphora/external_chromium_org_third_party_skia,timduru/platform-external-skia,Omegaphora/external_skia,timduru/platform-external-skia,RadonX-ROM/external_skia,tmpvar/skia.cc,mozilla-b2g/external_skia,mydongistiny/android_external_skia,Infinitive-OS/platform_external_skia,OptiPop/external_skia,MinimalOS-AOSP/platform_external_skia,YUPlayGodDev/platform_external_skia,MonkeyZZZZ/platform_external_skia,geekboxzone/mmallow_external_skia,vanish87/skia,invisiblek/android_external_skia,todotodoo/skia,xin3liang/platform_external_chromium_org_third_party_skia,InfinitiveOS/external_skia,Infinitive-OS/platform_external_skia,VentureROM-L/android_external_skia,OptiPop/external_skia,UBERMALLOW/external_skia,jtg-gg/skia,wildermason/external_skia,android-ia/platform_external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,todotodoo/skia,AsteroidOS/android_external_skia,Samsung/skia,rubenvb/skia,AOSPA-L/android_external_skia,invisiblek/android_external_skia,Hybrid-Rom/external_skia,TeamTwisted/external_skia,scroggo/skia,OneRom/external_skia,Euphoria-OS-Legacy/android_external_skia,DesolationStaging/android_external_skia,Samsung/skia,Omegaphora/external_chromium_org_third_party_skia,qrealka/skia-hc,nvoron23/skia,larsbergstrom/skia,mmatyas/skia,FusionSP/external_chromium_org_third_party_skia,TeslaProject/external_skia,xzzz9097/android_external_skia,InfinitiveOS/external_skia,Khaon/android_external_skia,geekboxzone/mmallow_external_skia,YUPlayGodDev/platform_external_skia,MarshedOut/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,Khaon/android_external_skia,temasek/android_external_skia,shahrzadmn/skia,xzzz9097/android_external_skia,pcwalton/skia,Euphoria-OS-Legacy/android_external_skia,android-ia/platform_external_skia,Khaon/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,TeamTwisted/external_skia,vvuk/skia,fire855/android_external_skia,amyvmiwei/skia,geekboxzone/lollipop_external_skia,pcwalton/skia,BrokenROM/external_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/android_external_skia,Android-AOSP/external_skia,AOSPU/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,google/skia,PAC-ROM/android_external_skia,PAC-ROM/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,codeaurora-unoffical/platform-external-skia,invisiblek/android_external_skia,w3nd1go/android_external_skia,TeslaOS/android_external_skia,FusionSP/android_external_skia,AOSP-YU/platform_external_skia,xzzz9097/android_external_skia,Infusion-OS/android_external_skia,timduru/platform-external-skia,MinimalOS/android_external_chromium_org_third_party_skia,w3nd1go/android_external_skia,HalCanary/skia-hc,xin3liang/platform_external_chromium_org_third_party_skia,wildermason/external_skia,sigysmund/platform_external_skia,Omegaphora/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,F-AOSP/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,boulzordev/android_external_skia,codeaurora-unoffical/platform-external-skia,google/skia,mydongistiny/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,ctiao/platform-external-skia,MinimalOS-AOSP/platform_external_skia,android-ia/platform_external_skia,vanish87/skia,AOSP-YU/platform_external_skia,TeamExodus/external_skia,UBERMALLOW/external_skia,FusionSP/android_external_skia,vvuk/skia,temasek/android_external_skia,houst0nn/external_skia,ominux/skia,ench0/external_skia,OneRom/external_skia,pacerom/external_skia,zhaochengw/platform_external_skia,OneRom/external_skia,byterom/android_external_skia,sudosurootdev/external_skia,sombree/android_external_skia,spezi77/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,google/skia,mozilla-b2g/external_skia,mmatyas/skia,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,Plain-Andy/android_platform_external_skia,VRToxin-AOSP/android_external_skia,aosp-mirror/platform_external_skia,vanish87/skia,MinimalOS/android_external_chromium_org_third_party_skia,AsteroidOS/android_external_skia,pacerom/external_skia,MyAOSP/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,nox/skia,byterom/android_external_skia,TeslaProject/external_skia,InfinitiveOS/external_skia,geekboxzone/lollipop_external_skia,codeaurora-unoffical/platform-external-skia,YUPlayGodDev/platform_external_skia,MonkeyZZZZ/platform_external_skia,Fusion-Rom/android_external_skia,akiss77/skia,ctiao/platform-external-skia,vvuk/skia,larsbergstrom/skia,GladeRom/android_external_skia,PAC-ROM/android_external_skia,MonkeyZZZZ/platform_external_skia,mozilla-b2g/external_skia,Infusion-OS/android_external_skia,chenlian2015/skia_from_google,MinimalOS-AOSP/platform_external_skia,android-ia/platform_external_skia,Tesla-Redux/android_external_skia,AOSPB/external_skia,MonkeyZZZZ/platform_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,TeslaProject/external_skia,OptiPop/external_chromium_org_third_party_skia,GladeRom/android_external_skia,nvoron23/skia,Omegaphora/external_skia,GladeRom/android_external_skia,AOSPB/external_skia,aosp-mirror/platform_external_skia,NamelessRom/android_external_skia,AOSPB/external_skia,mozilla-b2g/external_skia,pcwalton/skia,vvuk/skia,nox/skia,SlimSaber/android_external_skia,F-AOSP/platform_external_skia,OptiPop/external_skia,shahrzadmn/skia,nvoron23/skia,Pure-Aosp/android_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,AOSPB/external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Omegaphora/external_skia,AOSP-YU/platform_external_skia,UBERMALLOW/external_skia,Khaon/android_external_skia,NamelessRom/android_external_skia,AOSPU/external_chromium_org_third_party_skia,akiss77/skia,mmatyas/skia,Igalia/skia,nfxosp/platform_external_skia,Jichao/skia,FusionSP/android_external_skia,jtg-gg/skia,DesolationStaging/android_external_skia,Asteroid-Project/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,mydongistiny/android_external_skia,SlimSaber/android_external_skia,nfxosp/platform_external_skia,DiamondLovesYou/skia-sys,OptiPop/external_skia,TeamTwisted/external_skia,TeamEOS/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,scroggo/skia,zhaochengw/platform_external_skia,zhaochengw/platform_external_skia,Infusion-OS/android_external_skia,noselhq/skia,TeslaOS/android_external_skia,F-AOSP/platform_external_skia,nvoron23/skia,VentureROM-L/android_external_skia,temasek/android_external_skia,AOSP-YU/platform_external_skia,aospo/platform_external_skia,MonkeyZZZZ/platform_external_skia,rubenvb/skia,TeamTwisted/external_skia,Infinitive-OS/platform_external_skia,mozilla-b2g/external_skia,jtg-gg/skia,TeamExodus/external_skia,sudosurootdev/external_skia,ench0/external_skia,scroggo/skia,geekboxzone/mmallow_external_skia,AOSPA-L/android_external_skia,Asteroid-Project/android_external_skia,Khaon/android_external_skia,Plain-Andy/android_platform_external_skia,Infinitive-OS/platform_external_skia,GladeRom/android_external_skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,mmatyas/skia,Plain-Andy/android_platform_external_skia,Omegaphora/external_skia,AsteroidOS/android_external_skia,noselhq/skia,AOSPU/external_chromium_org_third_party_skia,BrokenROM/external_skia,MinimalOS/external_skia,FusionSP/android_external_skia |
47991cacdb0e8951ff7d14c1c91c2bed4248ba32 | benchmarks/c/examples/simple_branch/main.c | benchmarks/c/examples/simple_branch/main.c | #ifdef KLEE
#include "klee/klee.h"
#endif
#include <assert.h>
#include <stdio.h>
int main() {
int a;
#ifdef KLEE
klee_make_symbolic(&a, sizeof(a), "a");
#endif
if (a == 0) {
printf("a is zero\n");
#ifdef BUG
assert(0);
#endif
} else {
printf("a is non-zero\n");
}
return 0;
}
| #ifdef KLEE
#include "klee/klee.h"
#endif
#include <assert.h>
#include <stdio.h>
int main() {
int a = 0;
#ifdef KLEE
klee_make_symbolic(&a, sizeof(a), "a");
#endif
if (a == 0) {
printf("a is zero\n");
#ifdef BUG
assert(0);
#endif
} else {
printf("a is non-zero\n");
}
return 0;
}
| Fix assignment in concrete case for example benchmark so that bug should be deterministic. | Fix assignment in concrete case for example benchmark so that
bug should be deterministic.
| C | bsd-3-clause | delcypher/fp-bench,delcypher/fp-bench,delcypher/fp-bench |
9cf71828ad696271568d0255138adf82383a9adc | AsyncDisplayKit/AsyncDisplayKit.h | AsyncDisplayKit/AsyncDisplayKit.h | /* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <AsyncDisplayKit/ASDisplayNode.h>
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
#import <AsyncDisplayKit/ASControlNode.h>
#import <AsyncDisplayKit/ASImageNode.h>
#import <AsyncDisplayKit/ASTextNode.h>
#import <AsyncDisplayKit/ASBasicImageDownloader.h>
#import <AsyncDisplayKit/ASMultiplexImageNode.h>
#import <AsyncDisplayKit/ASNetworkImageNode.h>
#import <AsyncDisplayKit/ASTableView.h>
#import <AsyncDisplayKit/ASCollectionView.h>
#import <AsyncDisplayKit/ASCellNode.h>
| /* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <AsyncDisplayKit/ASDisplayNode.h>
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
#import <AsyncDisplayKit/ASControlNode.h>
#import <AsyncDisplayKit/ASImageNode.h>
#import <AsyncDisplayKit/ASTextNode.h>
#import <AsyncDisplayKit/ASEditableTextNode.h>
#import <AsyncDisplayKit/ASBasicImageDownloader.h>
#import <AsyncDisplayKit/ASMultiplexImageNode.h>
#import <AsyncDisplayKit/ASNetworkImageNode.h>
#import <AsyncDisplayKit/ASTableView.h>
#import <AsyncDisplayKit/ASCollectionView.h>
#import <AsyncDisplayKit/ASCellNode.h>
| Include ASEditableTextNode in framework header. | Include ASEditableTextNode in framework header.
| C | bsd-3-clause | mtxs007/AsyncDisplayKit,meitianapp/AsyncDisplayKit,JetZou/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,george-gw/AsyncDisplayKit,steveram/AsyncDisplayKit,ppamorim/AsyncDisplayKit,wangjiangwen/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,kesiking/AsyncDisplayKit,paulyoung/AsyncDisplayKit,sabby3861/AsyncDisplayKit,supriyantomaftuh/AsyncDisplayKit,samhsiung/AsyncDisplayKit,skullacy/AsyncDisplayKit,PodsMakleso6/AsyncDisplayKit,paulyoung/AsyncDisplayKit,levi/AsyncDisplayKit,kesiking/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,k1ok3n/AsyncDisplayKit,frankenthumbs/AsyncDisplayKit,Cen92/AsyncDisplayKit,wangjiangwen/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,KacheFlowe/AsyncDisplayKit,TheoJL/AsyncDisplayKit,JetZou/AsyncDisplayKit,adamdahan/AsyncDisplayKit,harryworld/AsyncDisplayKit,treejames/AsyncDisplayKit,Xinchi/AsyncDisplayKit,benzguo/AsyncDisplayKit,meitianapp/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,hejunbinlan/AsyncDisplayKit,200895045/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,skullacy/AsyncDisplayKit,dvan001/AsyncDisplayKit,maicki/AsyncDisplayKit,samhsiung/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,rmls/AsyncDisplayKit,marmelroy/AsyncDisplayKit,bimawa/AsyncDisplayKit,zeitgeist7/AsyncDisplayKit,levi/AsyncDisplayKit,lappp9/AsyncDisplayKit,KacheFlowe/AsyncDisplayKit,codepython/AsyncDisplayKit,DanielAsher/AsyncDisplayKit,zeyang101909/AsyncDisplayKit,donpark/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,michaelvillar/AsyncDisplayKit,zeitgeist7/AsyncDisplayKit,bimawa/AsyncDisplayKit,jflinter/AsyncDisplayKit,angi2/AsyncDisplayKit,pytouzain/AsyncDisplayKit,treejames/AsyncDisplayKit,treejames/AsyncDisplayKit,tharhtet/AsyncDisplayKit,eeeyes/AsyncDisplayKit,hejunbinlan/AsyncDisplayKit,grgcombs/AsyncDisplayKit,DanielAsher/AsyncDisplayKit,donpark/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,jflinter/AsyncDisplayKit,zeyang101909/AsyncDisplayKit,nivanchikov/AsyncDisplayKit,xujim/AsyncDisplayKit,samhsiung/AsyncDisplayKit,zdw19840929/AsyncDisplayKit,flovouin/AsyncDisplayKit,KacheFlowe/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,zdw19840929/AsyncDisplayKit,eanagel/AsyncDisplayKit,21451061/AsyncDisplayKit,dskatz22/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,maicki/AsyncDisplayKit,michaelvillar/AsyncDisplayKit,JetZou/AsyncDisplayKit,Xinchi/AsyncDisplayKit,KacheFlowe/AsyncDisplayKit,zhangyabinzyb/AsyncDisplayKit,rcancro/AsyncDisplayKit,levi/AsyncDisplayKit,yangyangluoluo/AsyncDisplayKit,bimawa/AsyncDisplayKit,TheoJL/AsyncDisplayKit,zdw19840929/AsyncDisplayKit,owenwuef/AsyncDisplayKit,k1ok3n/AsyncDisplayKit,rmls/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,meitianapp/AsyncDisplayKit,ERussel/AsyncDisplayKit,todotodoo/AsyncDisplayKit,hejunbinlan/AsyncDisplayKit,meitianapp/AsyncDisplayKit,zdw19840929/AsyncDisplayKit,hbucius/AsyncDisplayKit,todotodoo/AsyncDisplayKit,Teino1978-Corp/Teino1978-Corp-AsyncDisplayKit,harryworld/AsyncDisplayKit,benzguo/AsyncDisplayKit,george-gw/AsyncDisplayKit,yufenglv/AsyncDisplayKit,msdgwzhy6/AsyncDisplayKit,angi2/AsyncDisplayKit,rcancro/AsyncDisplayKit,yangyangluoluo/AsyncDisplayKit,yangyangluoluo/AsyncDisplayKit,PodsMakleso6/AsyncDisplayKit,george-gw/AsyncDisplayKit,yufenglv/AsyncDisplayKit,grgcombs/AsyncDisplayKit,donpark/AsyncDisplayKit,levi/AsyncDisplayKit,supriyantomaftuh/AsyncDisplayKit,benzguo/AsyncDisplayKit,dskatz22/AsyncDisplayKit,k1ok3n/AsyncDisplayKit,Cen92/AsyncDisplayKit,programming086/AsyncDisplayKit,harryworld/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,zhangyabinzyb/AsyncDisplayKit,romyilano/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,Xinchi/AsyncDisplayKit,supriyantomaftuh/AsyncDisplayKit,flovouin/AsyncDisplayKit,200895045/AsyncDisplayKit,michaelvillar/AsyncDisplayKit,treejames/AsyncDisplayKit,JetZou/AsyncDisplayKit,yufenglv/AsyncDisplayKit,NghiaTranUIT/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,todotodoo/AsyncDisplayKit,programming086/AsyncDisplayKit,nivanchikov/AsyncDisplayKit,dvan001/AsyncDisplayKit,smyrgl/AsyncDisplayKit,eanagel/AsyncDisplayKit,maicki/AsyncDisplayKit,wangjiangwen/AsyncDisplayKit,Cen92/AsyncDisplayKit,angi2/AsyncDisplayKit,21451061/AsyncDisplayKit,kesiking/AsyncDisplayKit,gazreese/AsyncDisplayKit,gazreese/AsyncDisplayKit,NghiaTranUIT/AsyncDisplayKit,levi/AsyncDisplayKit,nivanchikov/AsyncDisplayKit,21451061/AsyncDisplayKit,donpark/AsyncDisplayKit,NghiaTranUIT/AsyncDisplayKit,200895045/AsyncDisplayKit,zeitgeist7/AsyncDisplayKit,frankenthumbs/AsyncDisplayKit,ppamorim/AsyncDisplayKit,ppamorim/AsyncDisplayKit,steveram/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,dvan001/AsyncDisplayKit,romyilano/AsyncDisplayKit,adamdahan/AsyncDisplayKit,angi2/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,frankenthumbs/AsyncDisplayKit,romyilano/AsyncDisplayKit,eeeyes/AsyncDisplayKit,hbucius/AsyncDisplayKit,maicki/AsyncDisplayKit,gazreese/AsyncDisplayKit,flovouin/AsyncDisplayKit,skullacy/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,codepython/AsyncDisplayKit,zeyang101909/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,eanagel/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,benzguo/AsyncDisplayKit,gazreese/AsyncDisplayKit,jflinter/AsyncDisplayKit,adamdahan/AsyncDisplayKit,dskatz22/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,wangjiangwen/AsyncDisplayKit,jflinter/AsyncDisplayKit,Teino1978-Corp/Teino1978-Corp-AsyncDisplayKit,tharhtet/AsyncDisplayKit,facebook/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,msdgwzhy6/AsyncDisplayKit,msdgwzhy6/AsyncDisplayKit,zeitgeist7/AsyncDisplayKit,pytouzain/AsyncDisplayKit,steveram/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,ERussel/AsyncDisplayKit,donpark/AsyncDisplayKit,george-gw/AsyncDisplayKit,21451061/AsyncDisplayKit,grgcombs/AsyncDisplayKit,hbucius/AsyncDisplayKit,ppamorim/AsyncDisplayKit,maicki/AsyncDisplayKit,xujim/AsyncDisplayKit,k1ok3n/AsyncDisplayKit,paulyoung/AsyncDisplayKit,rcancro/AsyncDisplayKit,skullacy/AsyncDisplayKit,sabby3861/AsyncDisplayKit,grgcombs/AsyncDisplayKit,todotodoo/AsyncDisplayKit,treejames/AsyncDisplayKit,adamdahan/AsyncDisplayKit,codepython/AsyncDisplayKit,tharhtet/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,TheoJL/AsyncDisplayKit,bimawa/AsyncDisplayKit,smyrgl/AsyncDisplayKit,lappp9/AsyncDisplayKit,skullacy/AsyncDisplayKit,yangyangluoluo/AsyncDisplayKit,zhangyabinzyb/AsyncDisplayKit,facebook/AsyncDisplayKit,smyrgl/AsyncDisplayKit,programming086/AsyncDisplayKit,zhangyabinzyb/AsyncDisplayKit,marmelroy/AsyncDisplayKit,smyrgl/AsyncDisplayKit,michaelvillar/AsyncDisplayKit,TheoJL/AsyncDisplayKit,rmls/AsyncDisplayKit,programming086/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,harryworld/AsyncDisplayKit,Cen92/AsyncDisplayKit,DanielAsher/AsyncDisplayKit,NghiaTranUIT/AsyncDisplayKit,owenwuef/AsyncDisplayKit,flovouin/AsyncDisplayKit,marmelroy/AsyncDisplayKit,nivanchikov/AsyncDisplayKit,JetZou/AsyncDisplayKit,ERussel/AsyncDisplayKit,msdgwzhy6/AsyncDisplayKit,mtxs007/AsyncDisplayKit,programming086/AsyncDisplayKit,kesiking/AsyncDisplayKit,jellenbogen/AsyncDisplayKit,dvan001/AsyncDisplayKit,Teino1978-Corp/Teino1978-Corp-AsyncDisplayKit,garrettmoon/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,zeyang101909/AsyncDisplayKit,facebook/AsyncDisplayKit,200895045/AsyncDisplayKit,pytouzain/AsyncDisplayKit,harryworld/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,zeyang101909/AsyncDisplayKit,eanagel/AsyncDisplayKit,hejunbinlan/AsyncDisplayKit,eeeyes/AsyncDisplayKit,yufenglv/AsyncDisplayKit,rcancro/AsyncDisplayKit,NghiaTranUIT/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,steveram/AsyncDisplayKit,xujim/AsyncDisplayKit,KacheFlowe/AsyncDisplayKit,pytouzain/AsyncDisplayKit,rmls/AsyncDisplayKit,Teino1978-Corp/Teino1978-Corp-AsyncDisplayKit,mtxs007/AsyncDisplayKit,michaelvillar/AsyncDisplayKit,dskatz22/AsyncDisplayKit,DanielAsher/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,Xinchi/AsyncDisplayKit,yufenglv/AsyncDisplayKit,frankenthumbs/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,romyilano/AsyncDisplayKit,dskatz22/AsyncDisplayKit,hbucius/AsyncDisplayKit,paulyoung/AsyncDisplayKit,yangyangluoluo/AsyncDisplayKit,nivanchikov/AsyncDisplayKit,rcancro/AsyncDisplayKit,sabby3861/AsyncDisplayKit,zdw19840929/AsyncDisplayKit,PodsMakleso6/AsyncDisplayKit,mtxs007/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,angi2/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,zeitgeist7/AsyncDisplayKit,Teino1978-Corp/Teino1978-Corp-AsyncDisplayKit,DanielAsher/AsyncDisplayKit,tharhtet/AsyncDisplayKit,k1ok3n/AsyncDisplayKit,eeeyes/AsyncDisplayKit,supriyantomaftuh/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,xujim/AsyncDisplayKit,PodsMakleso6/AsyncDisplayKit,paulyoung/AsyncDisplayKit,codepython/AsyncDisplayKit,marmelroy/AsyncDisplayKit,lappp9/AsyncDisplayKit,eanagel/AsyncDisplayKit,xujim/AsyncDisplayKit,facebook/AsyncDisplayKit,owenwuef/AsyncDisplayKit,samhsiung/AsyncDisplayKit,RuiAAPeres/AsyncDisplayKit,ERussel/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,sabby3861/AsyncDisplayKit,owenwuef/AsyncDisplayKit,rmls/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,lappp9/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,Xinchi/AsyncDisplayKit,frankenthumbs/AsyncDisplayKit,PodsMakleso6/AsyncDisplayKit,flovouin/AsyncDisplayKit |
3ec9a9720ad2808012da7cb61c61300a45c5d5cc | include/swift/Basic/SourceLoc.h | include/swift/Basic/SourceLoc.h | //===- SourceLoc.h - Source Locations and Ranges ----------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines types used to reason about source locations and ranges.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_SOURCELOC_H
#define SWIFT_SOURCELOC_H
#include "swift/AST/LLVM.h"
#include "llvm/Support/SMLoc.h"
namespace swift {
/// SourceLoc in swift is just an SMLoc. We define it as a different type
/// (instead of as a typedef) just to remove the "getFromPointer" methods and
/// enforce purity in the Swift codebase.
class SourceLoc {
public:
llvm::SMLoc Value;
SourceLoc() {}
explicit SourceLoc(llvm::SMLoc Value) : Value(Value) {}
bool isValid() const { return Value.isValid(); }
bool operator==(const SourceLoc &RHS) const { return RHS.Value == Value; }
bool operator!=(const SourceLoc &RHS) const { return RHS.Value != Value; }
/// getAdvanced - Return a source location advanced a specified number of
/// characters.
SourceLoc getAdvancedLoc(unsigned NumCharacters) const {
assert(isValid() && "Can't advance an invalid location");
return SourceLoc(llvm::SMLoc::getFromPointer(Value.getPointer() +
NumCharacters));
}
};
/// SourceRange in swift is a pair of locations. However, note that the end
/// location is the start of the last token in the range, not the last character
/// in the range. This is unlike SMRange, so we use a distinct type to make
/// sure that proper conversions happen where important.
class SourceRange {
public:
SourceLoc Start, End;
SourceRange() {}
SourceRange(SourceLoc Start, SourceLoc End) : Start(Start), End(End) {
assert(Start.isValid() == End.isValid() &&
"Start and end should either both be valid or both be invalid!");
}
bool isValid() const { return Start.isValid(); }
};
} // end namespace swift
#endif
| Add datatypes for swift to represent source locations and ranges, which are distinct from the SMXXX types. This is important because SMRange and SourceRange have subtly different semantics, and is also nice to isolate SMLoc from swift. | Add datatypes for swift to represent source locations and ranges, which are
distinct from the SMXXX types. This is important because SMRange and
SourceRange have subtly different semantics, and is also nice to isolate
SMLoc from swift.
Swift SVN r749
| C | apache-2.0 | stephentyrone/swift,airspeedswift/swift,jmgc/swift,KrishMunot/swift,nathawes/swift,khizkhiz/swift,emilstahl/swift,alblue/swift,shajrawi/swift,airspeedswift/swift,deyton/swift,swiftix/swift.old,huonw/swift,practicalswift/swift,mightydeveloper/swift,parkera/swift,amraboelela/swift,russbishop/swift,atrick/swift,therealbnut/swift,sdulal/swift,LeoShimonaka/swift,russbishop/swift,bitjammer/swift,shajrawi/swift,SwiftAndroid/swift,dduan/swift,gmilos/swift,swiftix/swift.old,slavapestov/swift,xwu/swift,benlangmuir/swift,danielmartin/swift,hooman/swift,dduan/swift,khizkhiz/swift,CodaFi/swift,hooman/swift,Ivacker/swift,dreamsxin/swift,natecook1000/swift,glessard/swift,CodaFi/swift,jmgc/swift,allevato/swift,tkremenek/swift,allevato/swift,tkremenek/swift,devincoughlin/swift,harlanhaskins/swift,airspeedswift/swift,manavgabhawala/swift,stephentyrone/swift,hughbe/swift,huonw/swift,sdulal/swift,danielmartin/swift,austinzheng/swift,lorentey/swift,frootloops/swift,emilstahl/swift,CodaFi/swift,nathawes/swift,practicalswift/swift,gmilos/swift,alblue/swift,cbrentharris/swift,Jnosh/swift,codestergit/swift,devincoughlin/swift,KrishMunot/swift,cbrentharris/swift,nathawes/swift,gregomni/swift,calebd/swift,danielmartin/swift,glessard/swift,xedin/swift,parkera/swift,practicalswift/swift,aschwaighofer/swift,lorentey/swift,brentdax/swift,LeoShimonaka/swift,sschiau/swift,dduan/swift,tardieu/swift,karwa/swift,kusl/swift,kentya6/swift,MukeshKumarS/Swift,uasys/swift,jckarter/swift,ahoppen/swift,swiftix/swift,OscarSwanros/swift,manavgabhawala/swift,harlanhaskins/swift,khizkhiz/swift,xedin/swift,gregomni/swift,felix91gr/swift,JaSpa/swift,frootloops/swift,calebd/swift,JaSpa/swift,milseman/swift,atrick/swift,apple/swift,manavgabhawala/swift,deyton/swift,swiftix/swift,swiftix/swift,deyton/swift,aschwaighofer/swift,glessard/swift,gmilos/swift,ken0nek/swift,slavapestov/swift,devincoughlin/swift,roambotics/swift,bitjammer/swift,tinysun212/swift-windows,tardieu/swift,hughbe/swift,bitjammer/swift,frootloops/swift,jmgc/swift,karwa/swift,brentdax/swift,xedin/swift,kstaring/swift,manavgabhawala/swift,xwu/swift,shahmishal/swift,kperryua/swift,huonw/swift,dduan/swift,sschiau/swift,alblue/swift,djwbrown/swift,shahmishal/swift,Jnosh/swift,allevato/swift,lorentey/swift,jopamer/swift,natecook1000/swift,atrick/swift,modocache/swift,arvedviehweger/swift,ken0nek/swift,lorentey/swift,kperryua/swift,Jnosh/swift,hooman/swift,apple/swift,dduan/swift,gribozavr/swift,benlangmuir/swift,OscarSwanros/swift,stephentyrone/swift,JGiola/swift,jtbandes/swift,arvedviehweger/swift,gottesmm/swift,glessard/swift,kusl/swift,stephentyrone/swift,austinzheng/swift,nathawes/swift,CodaFi/swift,zisko/swift,natecook1000/swift,johnno1962d/swift,KrishMunot/swift,IngmarStein/swift,tjw/swift,tjw/swift,CodaFi/swift,danielmartin/swift,IngmarStein/swift,gregomni/swift,natecook1000/swift,manavgabhawala/swift,benlangmuir/swift,IngmarStein/swift,return/swift,roambotics/swift,hughbe/swift,cbrentharris/swift,devincoughlin/swift,gottesmm/swift,gregomni/swift,brentdax/swift,zisko/swift,johnno1962d/swift,djwbrown/swift,xwu/swift,jopamer/swift,apple/swift,SwiftAndroid/swift,ken0nek/swift,codestergit/swift,felix91gr/swift,arvedviehweger/swift,nathawes/swift,KrishMunot/swift,modocache/swift,kusl/swift,shajrawi/swift,aschwaighofer/swift,LeoShimonaka/swift,arvedviehweger/swift,OscarSwanros/swift,amraboelela/swift,ben-ng/swift,sdulal/swift,roambotics/swift,gottesmm/swift,karwa/swift,airspeedswift/swift,emilstahl/swift,milseman/swift,LeoShimonaka/swift,allevato/swift,jckarter/swift,karwa/swift,Ivacker/swift,russbishop/swift,return/swift,tjw/swift,danielmartin/swift,sschiau/swift,ahoppen/swift,manavgabhawala/swift,mightydeveloper/swift,OscarSwanros/swift,JaSpa/swift,adrfer/swift,tkremenek/swift,milseman/swift,practicalswift/swift,tjw/swift,devincoughlin/swift,adrfer/swift,modocache/swift,practicalswift/swift,rudkx/swift,xedin/swift,ben-ng/swift,uasys/swift,MukeshKumarS/Swift,IngmarStein/swift,frootloops/swift,hughbe/swift,bitjammer/swift,deyton/swift,xedin/swift,stephentyrone/swift,Jnosh/swift,jopamer/swift,practicalswift/swift,kperryua/swift,shajrawi/swift,uasys/swift,sdulal/swift,IngmarStein/swift,kentya6/swift,tardieu/swift,shahmishal/swift,ken0nek/swift,CodaFi/swift,djwbrown/swift,felix91gr/swift,slavapestov/swift,Jnosh/swift,airspeedswift/swift,jckarter/swift,swiftix/swift.old,dduan/swift,kusl/swift,frootloops/swift,airspeedswift/swift,tjw/swift,MukeshKumarS/Swift,emilstahl/swift,kentya6/swift,ben-ng/swift,shahmishal/swift,kstaring/swift,kusl/swift,atrick/swift,kperryua/swift,Ivacker/swift,russbishop/swift,shajrawi/swift,sschiau/swift,emilstahl/swift,swiftix/swift.old,uasys/swift,codestergit/swift,danielmartin/swift,codestergit/swift,aschwaighofer/swift,zisko/swift,tardieu/swift,tkremenek/swift,harlanhaskins/swift,cbrentharris/swift,roambotics/swift,jmgc/swift,sdulal/swift,parkera/swift,parkera/swift,swiftix/swift,jtbandes/swift,Ivacker/swift,harlanhaskins/swift,alblue/swift,gribozavr/swift,gregomni/swift,hooman/swift,atrick/swift,devincoughlin/swift,gregomni/swift,KrishMunot/swift,ahoppen/swift,hooman/swift,khizkhiz/swift,emilstahl/swift,LeoShimonaka/swift,mightydeveloper/swift,ben-ng/swift,djwbrown/swift,djwbrown/swift,SwiftAndroid/swift,benlangmuir/swift,shajrawi/swift,JaSpa/swift,calebd/swift,russbishop/swift,IngmarStein/swift,aschwaighofer/swift,kentya6/swift,ken0nek/swift,ahoppen/swift,tkremenek/swift,atrick/swift,CodaFi/swift,tardieu/swift,codestergit/swift,jopamer/swift,amraboelela/swift,swiftix/swift,bitjammer/swift,gmilos/swift,gribozavr/swift,MukeshKumarS/Swift,swiftix/swift,shahmishal/swift,dreamsxin/swift,devincoughlin/swift,KrishMunot/swift,parkera/swift,IngmarStein/swift,milseman/swift,karwa/swift,uasys/swift,practicalswift/swift,ken0nek/swift,gribozavr/swift,sdulal/swift,MukeshKumarS/Swift,adrfer/swift,glessard/swift,JGiola/swift,uasys/swift,modocache/swift,sdulal/swift,rudkx/swift,jtbandes/swift,therealbnut/swift,lorentey/swift,benlangmuir/swift,codestergit/swift,rudkx/swift,bitjammer/swift,hughbe/swift,mightydeveloper/swift,natecook1000/swift,nathawes/swift,cbrentharris/swift,mightydeveloper/swift,OscarSwanros/swift,calebd/swift,khizkhiz/swift,frootloops/swift,shahmishal/swift,kstaring/swift,arvedviehweger/swift,JGiola/swift,zisko/swift,swiftix/swift.old,brentdax/swift,johnno1962d/swift,brentdax/swift,huonw/swift,zisko/swift,shajrawi/swift,return/swift,jmgc/swift,apple/swift,jtbandes/swift,Ivacker/swift,felix91gr/swift,lorentey/swift,jmgc/swift,austinzheng/swift,tinysun212/swift-windows,uasys/swift,gottesmm/swift,deyton/swift,adrfer/swift,ben-ng/swift,therealbnut/swift,austinzheng/swift,gmilos/swift,devincoughlin/swift,jopamer/swift,austinzheng/swift,hooman/swift,russbishop/swift,tardieu/swift,mightydeveloper/swift,amraboelela/swift,OscarSwanros/swift,djwbrown/swift,gribozavr/swift,rudkx/swift,aschwaighofer/swift,apple/swift,SwiftAndroid/swift,slavapestov/swift,jopamer/swift,johnno1962d/swift,LeoShimonaka/swift,dduan/swift,tjw/swift,amraboelela/swift,stephentyrone/swift,natecook1000/swift,return/swift,huonw/swift,therealbnut/swift,zisko/swift,MukeshKumarS/Swift,jopamer/swift,parkera/swift,gottesmm/swift,austinzheng/swift,rudkx/swift,Jnosh/swift,slavapestov/swift,JaSpa/swift,return/swift,xwu/swift,karwa/swift,parkera/swift,airspeedswift/swift,kusl/swift,hooman/swift,xwu/swift,xedin/swift,jckarter/swift,kperryua/swift,kusl/swift,shahmishal/swift,KrishMunot/swift,shahmishal/swift,gottesmm/swift,johnno1962d/swift,gottesmm/swift,huonw/swift,xedin/swift,amraboelela/swift,sschiau/swift,nathawes/swift,brentdax/swift,apple/swift,amraboelela/swift,alblue/swift,kperryua/swift,kstaring/swift,glessard/swift,johnno1962d/swift,adrfer/swift,JaSpa/swift,mightydeveloper/swift,adrfer/swift,zisko/swift,gmilos/swift,swiftix/swift.old,lorentey/swift,kperryua/swift,hughbe/swift,felix91gr/swift,kentya6/swift,deyton/swift,johnno1962d/swift,Jnosh/swift,codestergit/swift,swiftix/swift.old,Ivacker/swift,kstaring/swift,modocache/swift,xwu/swift,manavgabhawala/swift,deyton/swift,arvedviehweger/swift,russbishop/swift,Ivacker/swift,practicalswift/swift,bitjammer/swift,gribozavr/swift,harlanhaskins/swift,tinysun212/swift-windows,JGiola/swift,sschiau/swift,jckarter/swift,khizkhiz/swift,calebd/swift,natecook1000/swift,return/swift,hughbe/swift,shajrawi/swift,sdulal/swift,allevato/swift,khizkhiz/swift,therealbnut/swift,allevato/swift,return/swift,ahoppen/swift,SwiftAndroid/swift,kentya6/swift,ken0nek/swift,harlanhaskins/swift,arvedviehweger/swift,ben-ng/swift,tardieu/swift,OscarSwanros/swift,jtbandes/swift,austinzheng/swift,calebd/swift,lorentey/swift,tinysun212/swift-windows,emilstahl/swift,tkremenek/swift,alblue/swift,kentya6/swift,parkera/swift,slavapestov/swift,milseman/swift,mightydeveloper/swift,jmgc/swift,karwa/swift,emilstahl/swift,felix91gr/swift,huonw/swift,kstaring/swift,felix91gr/swift,modocache/swift,cbrentharris/swift,therealbnut/swift,cbrentharris/swift,roambotics/swift,adrfer/swift,roambotics/swift,SwiftAndroid/swift,sschiau/swift,slavapestov/swift,benlangmuir/swift,sschiau/swift,djwbrown/swift,kusl/swift,xedin/swift,xwu/swift,tinysun212/swift-windows,modocache/swift,calebd/swift,cbrentharris/swift,JaSpa/swift,gmilos/swift,kentya6/swift,tinysun212/swift-windows,jckarter/swift,LeoShimonaka/swift,jtbandes/swift,aschwaighofer/swift,milseman/swift,swiftix/swift.old,MukeshKumarS/Swift,danielmartin/swift,karwa/swift,Ivacker/swift,JGiola/swift,milseman/swift,tjw/swift,frootloops/swift,JGiola/swift,SwiftAndroid/swift,allevato/swift,LeoShimonaka/swift,jckarter/swift,gribozavr/swift,ben-ng/swift,ahoppen/swift,kstaring/swift,swiftix/swift,gribozavr/swift,tkremenek/swift,jtbandes/swift,therealbnut/swift,stephentyrone/swift,tinysun212/swift-windows,rudkx/swift,harlanhaskins/swift,brentdax/swift,alblue/swift |
|
b66be8ed628e2a467c5c230eb2b91899af1ba6ed | UsbDk/UsbTarget.h | UsbDk/UsbTarget.h | #pragma once
#include "ntddk.h"
#include "wdf.h"
#include "usb.h"
#include "UsbSpec.h"
#include "wdfusb.h"
#include "Alloc.h"
class CWdfUsbInterface;
class CWdfUsbTarget
{
public:
CWdfUsbTarget();
~CWdfUsbTarget();
NTSTATUS Create(WDFDEVICE Device);
void DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descriptor);
NTSTATUS ConfigurationDescriptor(UCHAR Index, PUSB_CONFIGURATION_DESCRIPTOR Descriptor, PULONG TotalLength);
NTSTATUS SetInterfaceAltSetting(UCHAR InterfaceIdx, UCHAR AltSettingIdx);
private:
WDFDEVICE m_Device = WDF_NO_HANDLE;
WDFUSBDEVICE m_UsbDevice = WDF_NO_HANDLE;
CObjHolder<CWdfUsbInterface> m_Interfaces;
UCHAR m_NumInterfaces = 0;
CWdfUsbTarget(const CWdfUsbTarget&) = delete;
CWdfUsbTarget& operator= (const CWdfUsbTarget&) = delete;
};
| #pragma once
#include "ntddk.h"
#include "wdf.h"
#include "usb.h"
#include "UsbSpec.h"
#include "wdfusb.h"
#include "Alloc.h"
class CWdfUsbInterface;
class CWdfUsbTarget
{
public:
CWdfUsbTarget();
~CWdfUsbTarget();
NTSTATUS Create(WDFDEVICE Device);
void DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descriptor);
NTSTATUS ConfigurationDescriptor(UCHAR Index, PUSB_CONFIGURATION_DESCRIPTOR Descriptor, PULONG TotalLength);
NTSTATUS SetInterfaceAltSetting(UCHAR InterfaceIdx, UCHAR AltSettingIdx);
operator WDFUSBDEVICE () const
{ return m_UsbDevice; }
private:
WDFDEVICE m_Device = WDF_NO_HANDLE;
WDFUSBDEVICE m_UsbDevice = WDF_NO_HANDLE;
CObjHolder<CWdfUsbInterface> m_Interfaces;
UCHAR m_NumInterfaces = 0;
CWdfUsbTarget(const CWdfUsbTarget&) = delete;
CWdfUsbTarget& operator= (const CWdfUsbTarget&) = delete;
};
| Introduce USB target raw device accessor | UsbDk: Introduce USB target raw device accessor
Signed-off-by: Dmitry Fleytman <[email protected]>
| C | apache-2.0 | freedesktop-unofficial-mirror/spice__win32__usbdk,SPICE/win32-usbdk,daynix/UsbDk,daynix/UsbDk,SPICE/win32-usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk |
584d2815becf4c8c5a69bf52ce44a73bb4db29b3 | src/ios/CDVBackgroundGeoLocation.h | src/ios/CDVBackgroundGeoLocation.h | //
// CDVBackgroundGeoLocation.h
//
// Created by Chris Scott <[email protected]>
//
#import <Cordova/CDVPlugin.h>
#import "CDVLocation.h"
#import <AudioToolbox/AudioToolbox.h>
@interface CDVBackgroundGeoLocation : CDVPlugin <CLLocationManagerDelegate>
@property (nonatomic, strong) NSString* syncCallbackId;
@property (nonatomic, strong) NSMutableArray* stationaryRegionListeners;
- (void) configure:(CDVInvokedUrlCommand*)command;
- (void) start:(CDVInvokedUrlCommand*)command;
- (void) stop:(CDVInvokedUrlCommand*)command;
- (void) finish:(CDVInvokedUrlCommand*)command;
- (void) onPaceChange:(CDVInvokedUrlCommand*)command;
- (void) setConfig:(CDVInvokedUrlCommand*)command;
- (void) onSuspend:(NSNotification *)notification;
- (void) onResume:(NSNotification *)notification;
@end
| //
// CDVBackgroundGeoLocation.h
//
// Created by Chris Scott <[email protected]>
//
#import <Cordova/CDVPlugin.h>
#import "CDVLocation.h"
#import <AudioToolbox/AudioToolbox.h>
@interface CDVBackgroundGeoLocation : CDVPlugin <CLLocationManagerDelegate>
@property (nonatomic, strong) NSString* syncCallbackId;
@property (nonatomic, strong) NSMutableArray* stationaryRegionListeners;
- (void) configure:(CDVInvokedUrlCommand*)command;
- (void) start:(CDVInvokedUrlCommand*)command;
- (void) stop:(CDVInvokedUrlCommand*)command;
- (void) finish:(CDVInvokedUrlCommand*)command;
- (void) onPaceChange:(CDVInvokedUrlCommand*)command;
- (void) setConfig:(CDVInvokedUrlCommand*)command;
- (void) onStationary:(CDVInvokedUrlCommand*)command;
- (void) getStationaryLocation:(CDVInvokedUrlCommand *)command;
- (void) onSuspend:(NSNotification *)notification;
- (void) onResume:(NSNotification *)notification;
@end
| Add 2 missing public methods to .h, including new onStationary method | Add 2 missing public methods to .h, including new onStationary method
| C | apache-2.0 | akserg/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,gkachru/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,tdenovan/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,tiangolo/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,redskyit/cordova-plugin-background-geolocation,bastian-meier/cordova-plugin-background-geolocation,redskyit/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1,AndresRojasIsaza/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1,huttj/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,AndresRojasIsaza/cordova-plugin-background-geolocation,finchen/cordova-plugin-background-geolocation-1,tiangolo/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,imranw/cordova-plugin-background-geolocation,bastian-meier/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,keesschollaart81/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,keesschollaart81/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,huttj/cordova-plugin-background-geolocation,danilab/cordova-plugin-background-geolocation-1,finchen/cordova-plugin-background-geolocation-1,svennerberg/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,GeoTob/cordova-plugin-background-geolocation,tdenovan/cordova-plugin-background-geolocation,mauron85/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,ZenCity/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,GeoTob/cordova-plugin-background-geolocation,tiangolo/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geolocation,akserg/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,tiangolo/cordova-plugin-background-geolocation,mauron85/cordova-plugin-mauron85-background-geolocation-phonegapbuild,keesschollaart81/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation,parmod-arora/cordova-plugin-background-geolocation,mauron85/cordova-plugin-background-geolocation,mauron85/cordova-plugin-background-geolocation,AndresRojasIsaza/cordova-plugin-background-geolocation,gkachru/cordova-plugin-background-geolocation,svennerberg/cordova-plugin-background-geolocation |
5f6c802acf18c69a74c7a9b84d5c33321d433893 | src/sass_context_wrapper.h | src/sass_context_wrapper.h | #include <nan.h>
#include <condition_variable>
#include "libsass/sass_context.h"
#ifdef __cplusplus
extern "C" {
#endif
using namespace v8;
void compile_data(struct Sass_Data_Context* dctx);
void compile_file(struct Sass_File_Context* fctx);
void compile_it(uv_work_t* req);
struct sass_context_wrapper {
// binding related
bool is_sync;
void* cookie;
const char* prev;
const char* file;
std::mutex* importer_mutex;
std::condition_variable* importer_condition_variable;
// libsass related
Sass_Import** imports;
Sass_Data_Context* dctx;
Sass_File_Context* fctx;
// libuv related
uv_async_t async;
uv_work_t request;
// v8 and nan related
Persistent<Object> result;
NanCallback* error_callback;
NanCallback* success_callback;
NanCallback* importer_callback;
};
struct sass_context_wrapper* sass_make_context_wrapper(void);
void sass_wrapper_dispose(struct sass_context_wrapper*, char*);
void sass_free_context_wrapper(struct sass_context_wrapper*);
#ifdef __cplusplus
}
#endif
| #include <stdlib.h>
#include <nan.h>
#include <condition_variable>
#include "libsass/sass_context.h"
#ifdef __cplusplus
extern "C" {
#endif
using namespace v8;
void compile_data(struct Sass_Data_Context* dctx);
void compile_file(struct Sass_File_Context* fctx);
void compile_it(uv_work_t* req);
struct sass_context_wrapper {
// binding related
bool is_sync;
void* cookie;
const char* prev;
const char* file;
std::mutex* importer_mutex;
std::condition_variable* importer_condition_variable;
// libsass related
Sass_Import** imports;
Sass_Data_Context* dctx;
Sass_File_Context* fctx;
// libuv related
uv_async_t async;
uv_work_t request;
// v8 and nan related
Persistent<Object> result;
NanCallback* error_callback;
NanCallback* success_callback;
NanCallback* importer_callback;
};
struct sass_context_wrapper* sass_make_context_wrapper(void);
void sass_wrapper_dispose(struct sass_context_wrapper*, char*);
void sass_free_context_wrapper(struct sass_context_wrapper*);
#ifdef __cplusplus
}
#endif
| Include <stdlib.h> for malloc related functions. | Include <stdlib.h> for malloc related functions.
| C | mit | gravityrail/node-sass,deanrather/node-sass,cvibhagool/node-sass,Smartbank/node-sass,SomeoneWeird/node-sass,xzyfer/node-sass,Smartbank/node-sass,sass/node-sass,xzyfer/node-sass,nfriedly/node-sass,greyhwndz/node-sass,greyhwndz/node-sass,glassdimly/node-sass,littlepoolshark/node-sass,FeodorFitsner/node-sass,paulcbetts/node-sass,nschonni/node-sass,xzyfer/node-sass,alanhogan/node-sass,jnbt/node-sass,kylecho/node-sass,greyhwndz/node-sass,nschonni/node-sass,nibblebot/node-sass,alanhogan/node-sass,plora/node-sass,eskygo/node-sass,SomeoneWeird/node-sass,justame/node-sass,JohnAlbin/node-sass,Cydrobolt/node-sass,besarthoxhaj/node-sass,cfebs/node-sass,davejachimiak/node-sass,FeodorFitsner/node-sass,quentinyang/node-sass,nibblebot/node-sass,am11/node-sass,Smartbank/node-sass,xzyfer/node-sass,alanhogan/node-sass,gdi2290/node-sass,saper/node-sass,JTKnox91/node-sass,Cydrobolt/node-sass,yanickouellet/node-sass,jnbt/node-sass,cfebs/node-sass,plora/node-sass,cvibhagool/node-sass,bigcommerce-labs/node-sass,saper/node-sass,chriseppstein/node-sass,sass/node-sass,saper/node-sass,quentinyang/node-sass,pmq20/node-sass,sass/node-sass,sass/node-sass,saper/node-sass,gravityrail/node-sass,cvibhagool/node-sass,glassdimly/node-sass,lwdgit/node-sass,deanrather/node-sass,gdi2290/node-sass,alanhogan/node-sass,glassdimly/node-sass,ankurp/node-sass,xzyfer/node-sass,EdwonLim/node-sass-china,glassdimly/node-sass,pmq20/node-sass,justame/node-sass,dazld/node-sass,JTKnox91/node-sass,paulcbetts/node-sass,FeodorFitsner/node-sass,nschonni/node-sass,quentinyang/node-sass,nschonni/node-sass,jnbt/node-sass,Vitogee/node-sass,Vitogee/node-sass,saper/node-sass,nschonni/node-sass,dazld/node-sass,sass/node-sass,EdwonLim/node-sass-china,sass/node-sass,nibblebot/node-sass,xzyfer/node-sass,justame/node-sass,quentinyang/node-sass,nfriedly/node-sass,ankurp/node-sass,lwdgit/node-sass,kylecho/node-sass,xzyfer/node-sass,besarthoxhaj/node-sass,deanrather/node-sass,saper/node-sass,nschonni/node-sass,kylecho/node-sass,Vitogee/node-sass,justame/node-sass,ekskimn/node-sass,Smartbank/node-sass,pmq20/node-sass,deanrather/node-sass,cvibhagool/node-sass,am11/node-sass,yanickouellet/node-sass,ekskimn/node-sass,chriseppstein/node-sass,sass/node-sass,nfriedly/node-sass,JTKnox91/node-sass,bigcommerce-labs/node-sass,Smartbank/node-sass,littlepoolshark/node-sass,littlepoolshark/node-sass,saper/node-sass,gravityrail/node-sass,gdi2290/node-sass,Cydrobolt/node-sass,am11/node-sass,Smartbank/node-sass,bigcommerce-labs/node-sass,Vitogee/node-sass,ankurp/node-sass,plora/node-sass,besarthoxhaj/node-sass,paulcbetts/node-sass,lwdgit/node-sass,nibblebot/node-sass,davejachimiak/node-sass,bigcommerce-labs/node-sass,JTKnox91/node-sass,greyhwndz/node-sass,cfebs/node-sass,gravityrail/node-sass,SomeoneWeird/node-sass,chriseppstein/node-sass,gdi2290/node-sass,ekskimn/node-sass,nschonni/node-sass,dazld/node-sass,ekskimn/node-sass,eskygo/node-sass,paulcbetts/node-sass,lwdgit/node-sass,JohnAlbin/node-sass,eskygo/node-sass,JohnAlbin/node-sass,chriseppstein/node-sass,Smartbank/node-sass,davejachimiak/node-sass,yanickouellet/node-sass,plora/node-sass,am11/node-sass,kylecho/node-sass,pmq20/node-sass,cfebs/node-sass,ankurp/node-sass,Cydrobolt/node-sass,FeodorFitsner/node-sass,EdwonLim/node-sass-china,dazld/node-sass,jnbt/node-sass |
b0c1b4beb324942040a5d9fd2abb617f8d83f612 | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(Debug)
SLTM(Error)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(BackendOpen)
SLTM(BackendXID)
SLTM(BackendReuse)
SLTM(BackendClose)
SLTM(HttpError)
SLTM(ClientAddr)
SLTM(Backend)
SLTM(Request)
SLTM(Response)
SLTM(Length)
SLTM(Status)
SLTM(URL)
SLTM(Protocol)
SLTM(Header)
SLTM(BldHdr)
SLTM(LostHeader)
SLTM(VCL_call)
SLTM(VCL_trace)
SLTM(VCL_return)
SLTM(XID)
SLTM(Hit)
SLTM(ExpBan)
SLTM(ExpPick)
SLTM(ExpKill)
SLTM(WorkThread)
| /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
* REMEMBER to update the documentation (especially the varnishlog(1) man
* page) whenever this list changes.
*/
SLTM(Debug)
SLTM(Error)
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionReuse)
SLTM(SessionClose)
SLTM(BackendOpen)
SLTM(BackendXID)
SLTM(BackendReuse)
SLTM(BackendClose)
SLTM(HttpError)
SLTM(ClientAddr)
SLTM(Backend)
SLTM(Request)
SLTM(Response)
SLTM(Length)
SLTM(Status)
SLTM(URL)
SLTM(Protocol)
SLTM(Header)
SLTM(BldHdr)
SLTM(LostHeader)
SLTM(VCL_call)
SLTM(VCL_trace)
SLTM(VCL_return)
SLTM(XID)
SLTM(Hit)
SLTM(ExpBan)
SLTM(ExpPick)
SLTM(ExpKill)
SLTM(WorkThread)
| Add a note to update varnishlog(1) whenever this list changes. | Add a note to update varnishlog(1) whenever this list changes.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@418 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish |
b4e78339970f151f04a8167e97c64bc6c8ae5eb7 | Framework/Lumberjack/CocoaLumberjack.h | Framework/Lumberjack/CocoaLumberjack.h | //
// CocoaLumberjack.h
// CocoaLumberjack
//
// Created by Andrew Mackenzie-Ross on 3/02/2015.
//
//
#import <Foundation/Foundation.h>
//! Project version number for CocoaLumberjack.
FOUNDATION_EXPORT double CocoaLumberjackVersionNumber;
//! Project version string for CocoaLumberjack.
FOUNDATION_EXPORT const unsigned char CocoaLumberjackVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <CocoaLumberjack/PublicHeader.h>
// Disable legacy macros
#ifndef DD_LEGACY_MACROS
#define DD_LEGACY_MACROS 0
#endif
// Core
#import <CocoaLumberjack/DDLog.h>
// Main macros
#import <CocoaLumberjack/DDLogMacros.h>
#import <CocoaLumberjack/DDAssertMacros.h>
// Capture ASL
#import <CocoaLumberjack/DDASLLogCapture.h>
// Loggers
#import <CocoaLumberjack/DDTTYLogger.h>
#import <CocoaLumberjack/DDASLLogger.h>
#import <CocoaLumberjack/DDFileLogger.h>
// CLI
#if defined(DD_CLI) || !__has_include(<AppKit/NSColor.h>)
#import <CocoaLumberjack/CLIColor.h>
#endif
| //
// CocoaLumberjack.h
// CocoaLumberjack
//
// Created by Andrew Mackenzie-Ross on 3/02/2015.
//
//
#import <Foundation/Foundation.h>
//! Project version number for CocoaLumberjack.
FOUNDATION_EXPORT double CocoaLumberjackVersionNumber;
//! Project version string for CocoaLumberjack.
FOUNDATION_EXPORT const unsigned char CocoaLumberjackVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <CocoaLumberjack/PublicHeader.h>
// Disable legacy macros
#ifndef DD_LEGACY_MACROS
#define DD_LEGACY_MACROS 0
#endif
// Core
#import <CocoaLumberjack/DDLog.h>
// Main macros
#import <CocoaLumberjack/DDLogMacros.h>
#import <CocoaLumberjack/DDAssertMacros.h>
// Capture ASL
#import <CocoaLumberjack/DDASLLogCapture.h>
// Loggers
#import <CocoaLumberjack/DDTTYLogger.h>
#import <CocoaLumberjack/DDASLLogger.h>
#import <CocoaLumberjack/DDFileLogger.h>
// CLI
#import <CocoaLumberjack/CLIColor.h>
| Revert "Conditionally include CLIColor in umbrella header" | Revert "Conditionally include CLIColor in umbrella header"
| C | bsd-3-clause | CocoaLumberjack/CocoaLumberjack,jum/CocoaLumberjack,sushichop/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjack,CocoaLumberjack/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjack,DD-P/CocoaLumberjack,CocoaLumberjack/CocoaLumberjack,DD-P/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjack,DD-P/CocoaLumberjack,CocoaLumberjack/CocoaLumberjack |
f7600a71bbdee8407a4eddee197e8d599f6d002b | include/vlc_memory.h | include/vlc_memory.h | /*****************************************************************************
* vlc_memory.h: Memory functions
*****************************************************************************
* Copyright (C) 2009 the VideoLAN team
*
* Authors: JP Dinger <jpd at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef VLC_MEMORY_H
#define VLC_MEMORY_H 1
/**
* \file
* This file deals with memory fixups
*/
/**
* \defgroup memory Memory
* @{
*/
/**
* This wrapper around realloc() will free the input pointer when
* realloc() returns NULL. The use case ptr = realloc(ptr, newsize) will
* cause a memory leak when ptr pointed to a heap allocation before,
* leaving the buffer allocated but unreferenced. vlc_realloc() is a
* drop-in replacement for that use case (and only that use case).
*/
static inline void *realloc_or_free( void *p, size_t sz )
{
void *n = realloc(p,sz);
if( !n )
free(p);
return n;
}
/**
* @}
*/
#endif
| Introduce realloc_or_free(), which does what realloc() does but will free the argument if the reallocation fails. This is useful in some, but not all, use cases of realloc(). | Introduce realloc_or_free(), which does what realloc() does but will free the argument if the reallocation fails. This is useful in some, but not all, use cases of realloc().
| C | lgpl-2.1 | xkfz007/vlc,jomanmuk/vlc-2.1,krichter722/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,xkfz007/vlc,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,krichter722/vlc,vlc-mirror/vlc,shyamalschandra/vlc,xkfz007/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,shyamalschandra/vlc,xkfz007/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,krichter722/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,krichter722/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,xkfz007/vlc,krichter722/vlc,krichter722/vlc |
|
d4a2104beb0d9aebf8fe2799430e7261387b08ef | tensorflow/lite/ios/TensorFlowLiteC.h | tensorflow/lite/ios/TensorFlowLiteC.h | /* Copyright 2022 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 TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
#define TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
#include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api.h"
#include "tensorflow/lite/c/c_api_experimental.h"
#include "tensorflow/lite/c/c_api_types.h"
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/c/c_api.h"
#include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h"
#endif // TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
| /* Copyright 2022 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 TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
#define TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
#include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api.h"
#include "tensorflow/lite/c/c_api_experimental.h"
#include "tensorflow/lite/c/c_api_types.h"
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/xnnpack/xnnpack_delegate.h"
#endif // TENSORFLOW_LITE_IOS_TENSORFLOWLITEC_H_
| Fix iOS nightly release. Exports the actual c api header instead of the shim header in the TensorflowLiteC framework | Fix iOS nightly release. Exports the actual c api header instead of the shim header in the TensorflowLiteC framework
PiperOrigin-RevId: 477905780
| C | apache-2.0 | tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow |
bb6235f7fe8957ba09ff8c557d8caf4844e9ff38 | common/network/WindowsInterfacePicker.h | common/network/WindowsInterfacePicker.h | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* WindowsInterfacePicker.h
* Choose an interface to listen on
* Copyright (C) 2005-2010 Simon Newton
*/
#ifndef COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
#define COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
#include <vector>
#include "ola/network/InterfacePicker.h"
/*
* The InterfacePicker for windows
*/
class WindowsInterfacePicker: public InterfacePicker {
public:
std::vector<Interface> GetInterfaces() const;
};
} // network
} // ola
#endif // COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
| /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* WindowsInterfacePicker.h
* Choose an interface to listen on
* Copyright (C) 2005-2010 Simon Newton
*/
#ifndef COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
#define COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
#include <vector>
#include "ola/network/InterfacePicker.h"
namespace ola {
namespace network {
/*
* The InterfacePicker for windows
*/
class WindowsInterfacePicker: public InterfacePicker {
public:
std::vector<Interface> GetInterfaces() const;
};
} // network
} // ola
#endif // COMMON_NETWORK_WINDOWSINTERFACEPICKER_H_
| Add the missing namespace bits | Add the missing namespace bits
| C | lgpl-2.1 | nip3o/open-lighting,emonty/ola,nip3o/open-lighting,mlba-team/open-lighting,emonty/ola,nip3o/open-lighting,ld3300/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola,mlba-team/open-lighting,mlba-team/open-lighting,ld3300/ola,nip3o/open-lighting,mlba-team/open-lighting,nightrune/ola,mlba-team/open-lighting,emonty/ola,nightrune/ola,ld3300/ola,nip3o/open-lighting,nightrune/ola,ld3300/ola,nightrune/ola,emonty/ola,ld3300/ola,nightrune/ola,emonty/ola,mlba-team/open-lighting,nip3o/open-lighting |
edc82eaff44802816280c90ffd40dbc69f59403a | tensorflow/compiler/xla/pjrt/pjrt_plugin_device_client.h | tensorflow/compiler/xla/pjrt/pjrt_plugin_device_client.h | /* Copyright 2022 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 TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
#define TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
namespace xla {
// Not implemented by default. It is the responsibility of the plugin device
// author to provide an implementation of this function.
StatusOr<std::unique_ptr<PjRtClient>> GetTfrtPluginDeviceClient();
}
#endif // TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
| /* Copyright 2022 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 TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
#define TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
namespace xla {
// Not implemented by default. It is the responsibility of the plugin device
// author to provide an implementation of this function. It is recommended to
// implement this in //tensorflow/compiler/plugin:plugin
StatusOr<std::unique_ptr<PjRtClient>> GetTfrtPluginDeviceClient();
} // namespace xla
#endif // TENSORFLOW_COMPILER_XLA_PJRT_PLUGIN_DEVICE_CLIENT_H_
| Add comment on `GetTfrtPluginDeviceClient` to explain where to put the implementation. | Add comment on `GetTfrtPluginDeviceClient` to explain where to put the implementation.
| C | apache-2.0 | Intel-tensorflow/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,karllessard/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,yongtang/tensorflow |
a9911bfeeb2fbc55e38cec50cd2f019510807077 | WebCore/platform/graphics/FontSmoothingMode.h | WebCore/platform/graphics/FontSmoothingMode.h | /*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef FontSmoothingMode_h
#define FontSmoothingMode_h
namespace WebCore {
enum FontSmoothingMode { AutoSmoothing, NoSmoothing, Antialiased, SubpixelAntialiased };
} // namespace WebCore
#endif // FontSmoothingMode_h
| Add file that was missing from the last change | Add file that was missing from the last change
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@48475 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C | bsd-3-clause | Pluto-tv/blink-crosswalk,nwjs/blink,ondra-novak/blink,modulexcite/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,nwjs/blink,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,modulexcite/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,modulexcite/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,nwjs/blink,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,ondra-novak/blink,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,ondra-novak/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,nwjs/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,nwjs/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,ondra-novak/blink,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,jtg-gg/blink,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,nwjs/blink,smishenk/blink-crosswalk,jtg-gg/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,nwjs/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,hgl888/blink-crosswalk-efl,ondra-novak/blink |
|
24864d048eec2c579346eb31a42c87be1c92644e | src/include/port/linux.h | src/include/port/linux.h | /* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
here or with -D compile options, but __ macros should be set and used by C
library macros, not Postgres code. __USE_POSIX is set by features.h,
__USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
be used.
*/
#define JMP_BUF
#define USE_POSIX_TIME
#if defined(__i386__)
typedef unsigned char slock_t;
#define HAS_TEST_AND_SET
#elif defined(__sparc__)
typedef unsigned char slock_t;
#define HAS_TEST_AND_SET
#elif defined(__powerpc__)
typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__alpha__)
typedef long int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__mips__)
typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#endif
#if defined(__GLIBC__) && (__GLIBC__ >= 2)
#ifdef HAVE_INT_TIMEZONE
#undef HAVE_INT_TIMEZONE
#endif
#endif
#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif
| /* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
here or with -D compile options, but __ macros should be set and used by C
library macros, not Postgres code. __USE_POSIX is set by features.h,
__USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
be used.
*/
#define JMP_BUF
#define USE_POSIX_TIME
#if defined(__i386__)
typedef unsigned char slock_t;
#define HAS_TEST_AND_SET
#elif defined(__sparc__)
typedef unsigned char slock_t;
#define HAS_TEST_AND_SET
#elif defined(__powerpc__)
typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__alpha__)
typedef long int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__mips__)
typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#elif defined(__arm__)
typedef unsigned char slock_t
#define HAS_TEST_AND_SET
#endif
#if defined(__GLIBC__) && (__GLIBC__ >= 2)
#ifdef HAVE_INT_TIMEZONE
#undef HAVE_INT_TIMEZONE
#endif
#endif
#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif
| Include information for armv4l from Mark Knox <[email protected]>. | Include information for armv4l from Mark Knox <[email protected]>.
| C | apache-2.0 | tangp3/gpdb,ashwinstar/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,lintzc/gpdb,lintzc/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,adam8157/gpdb,oberstet/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,xuegang/gpdb,Quikling/gpdb,postmind-net/postgres-xl,50wu/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,ovr/postgres-xl,kaknikhil/gpdb,yazun/postgres-xl,0x0FFF/gpdb,xinzweb/gpdb,lintzc/gpdb,ahachete/gpdb,kaknikhil/gpdb,rvs/gpdb,lintzc/gpdb,arcivanov/postgres-xl,jmcatamney/gpdb,zaksoup/gpdb,atris/gpdb,postmind-net/postgres-xl,lintzc/gpdb,ashwinstar/gpdb,Quikling/gpdb,arcivanov/postgres-xl,chrishajas/gpdb,rvs/gpdb,foyzur/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,chrishajas/gpdb,lintzc/gpdb,ahachete/gpdb,CraigHarris/gpdb,foyzur/gpdb,janebeckman/gpdb,yazun/postgres-xl,Chibin/gpdb,xinzweb/gpdb,ahachete/gpdb,kaknikhil/gpdb,chrishajas/gpdb,randomtask1155/gpdb,ovr/postgres-xl,CraigHarris/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,techdragon/Postgres-XL,Chibin/gpdb,Quikling/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,rvs/gpdb,yuanzhao/gpdb,snaga/postgres-xl,janebeckman/gpdb,xuegang/gpdb,tangp3/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,edespino/gpdb,postmind-net/postgres-xl,snaga/postgres-xl,snaga/postgres-xl,lisakowen/gpdb,rvs/gpdb,zeroae/postgres-xl,rubikloud/gpdb,tangp3/gpdb,rvs/gpdb,rubikloud/gpdb,ahachete/gpdb,jmcatamney/gpdb,tangp3/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,foyzur/gpdb,50wu/gpdb,royc1/gpdb,cjcjameson/gpdb,foyzur/gpdb,50wu/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,ahachete/gpdb,ashwinstar/gpdb,ahachete/gpdb,rvs/gpdb,zaksoup/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,yazun/postgres-xl,edespino/gpdb,Chibin/gpdb,zeroae/postgres-xl,edespino/gpdb,arcivanov/postgres-xl,edespino/gpdb,xinzweb/gpdb,yazun/postgres-xl,tangp3/gpdb,tangp3/gpdb,atris/gpdb,ashwinstar/gpdb,lisakowen/gpdb,edespino/gpdb,ovr/postgres-xl,Chibin/gpdb,lintzc/gpdb,jmcatamney/gpdb,kmjungersen/PostgresXL,50wu/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,0x0FFF/gpdb,chrishajas/gpdb,janebeckman/gpdb,pavanvd/postgres-xl,CraigHarris/gpdb,CraigHarris/gpdb,rubikloud/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,adam8157/gpdb,pavanvd/postgres-xl,cjcjameson/gpdb,adam8157/gpdb,chrishajas/gpdb,adam8157/gpdb,rubikloud/gpdb,yuanzhao/gpdb,adam8157/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,Quikling/gpdb,Quikling/gpdb,rvs/gpdb,ashwinstar/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,randomtask1155/gpdb,janebeckman/gpdb,edespino/gpdb,yuanzhao/gpdb,zaksoup/gpdb,lisakowen/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,edespino/gpdb,oberstet/postgres-xl,Quikling/gpdb,zeroae/postgres-xl,snaga/postgres-xl,zaksoup/gpdb,zaksoup/gpdb,foyzur/gpdb,xuegang/gpdb,zaksoup/gpdb,Quikling/gpdb,edespino/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,rvs/gpdb,lintzc/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,royc1/gpdb,lisakowen/gpdb,0x0FFF/gpdb,adam8157/gpdb,randomtask1155/gpdb,kmjungersen/PostgresXL,xuegang/gpdb,50wu/gpdb,atris/gpdb,royc1/gpdb,royc1/gpdb,CraigHarris/gpdb,ovr/postgres-xl,randomtask1155/gpdb,xinzweb/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,50wu/gpdb,chrishajas/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,rubikloud/gpdb,0x0FFF/gpdb,rvs/gpdb,pavanvd/postgres-xl,zeroae/postgres-xl,janebeckman/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,lpetrov-pivotal/gpdb,yazun/postgres-xl,pavanvd/postgres-xl,zeroae/postgres-xl,cjcjameson/gpdb,kaknikhil/gpdb,ahachete/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,snaga/postgres-xl,arcivanov/postgres-xl,greenplum-db/gpdb,royc1/gpdb,xinzweb/gpdb,CraigHarris/gpdb,chrishajas/gpdb,royc1/gpdb,xuegang/gpdb,tangp3/gpdb,ashwinstar/gpdb,edespino/gpdb,lintzc/gpdb,randomtask1155/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,greenplum-db/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,rvs/gpdb,foyzur/gpdb,postmind-net/postgres-xl,kaknikhil/gpdb,royc1/gpdb,chrishajas/gpdb,royc1/gpdb,Chibin/gpdb,xuegang/gpdb,atris/gpdb,janebeckman/gpdb,zaksoup/gpdb,lisakowen/gpdb,xinzweb/gpdb,yuanzhao/gpdb,arcivanov/postgres-xl,rubikloud/gpdb,0x0FFF/gpdb,lisakowen/gpdb,zaksoup/gpdb,kaknikhil/gpdb,ahachete/gpdb,randomtask1155/gpdb,lisakowen/gpdb,Quikling/gpdb,randomtask1155/gpdb,Chibin/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,ovr/postgres-xl,greenplum-db/gpdb,0x0FFF/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,cjcjameson/gpdb,Quikling/gpdb,cjcjameson/gpdb,atris/gpdb,oberstet/postgres-xl,postmind-net/postgres-xl,foyzur/gpdb,atris/gpdb,atris/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,rubikloud/gpdb,janebeckman/gpdb,janebeckman/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,janebeckman/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb |
254addb3e1f840f7a2ce98c75d7008c74b4521eb | include/ola/web/JsonParser.h | include/ola/web/JsonParser.h | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* JsonParser.h
* A class for Parsing Json data.
* See http://www.json.org/
* Copyright (C) 2013 Simon Newton
*/
/**
* @addtogroup json
* @{
* @file JsonParser.h
* @brief Header file for the JSON parser.
* The implementation does it's best to conform to
* http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf
* @}
*/
#ifndef INCLUDE_OLA_WEB_JSONPARSER_H_
#define INCLUDE_OLA_WEB_JSONPARSER_H_
#include <string>
namespace ola {
namespace web {
class JsonValue;
/**
* @addtogroup json
* @{
*/
/**
* @brief Parse a string containing Json data.
*/
class JsonParser {
public:
/**
* @brief Parse a string with json data
* @param input the input string
* @param error set to an error message if parsing fails.
* @return a JsonValue or NULL if parsing failed.
*/
static JsonValue* Parse(const std::string &input, std::string *error);
private:
static JsonValue* ParseRaw(const char *input, std::string *error);
};
/**@}*/
} // namespace web
} // namespace ola
#endif // INCLUDE_OLA_WEB_JSONPARSER_H_
| Add the missing Parser header file. | Add the missing Parser header file.
| C | lgpl-2.1 | ld3300/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola,ld3300/ola,ld3300/ola,ld3300/ola,ld3300/ola,nightrune/ola,nightrune/ola,nightrune/ola,nightrune/ola,nightrune/ola |
|
7470834ac6613c2e22626f9511384f025f16768e | src/types.h | src/types.h | #ifndef TYPES_H_90878954
#define TYPES_H_90878954
typedef enum {
false,
true
} bool_t;
#endif
| #ifndef TYPES_H_90878954
#define TYPES_H_90878954
#if __STDC_VERSION__ == 199901L
#include <stdbool.h>
typedef bool bool_t;
#else // __STDC_VERSION__
typedef enum {
false,
true
} bool_t;
#endif // __STDC_VERSION
#endif
| Use c99 standard bool when available | Use c99 standard bool when available
| C | bsd-3-clause | fmorgner/umurmur,snowblind/umurmur,doctaweeks/umurmur,troxor/umurmur,doctaweeks/umurmur,troxor/umurmur,snowblind/umurmur,fmorgner/umurmur,doctaweeks/umurmur |
b06ef71474c9f258d650727239b6d37064400813 | src/compositor/compositor.h | src/compositor/compositor.h | #ifndef _WLC_COMPOSITOR_H_
#define _WLC_COMPOSTIOR_H_
#include "visibility.h"
#include <stdbool.h>
#include <wayland-util.h>
struct wl_display;
struct wl_event_loop;
struct wl_event_source;
struct wlc_shell;
struct wlc_xdg_shell;
struct wlc_backend;
struct wlc_context;
struct wlc_render;
struct wlc_compositor {
struct wl_global *global;
struct wl_display *display;
struct wl_event_loop *event_loop;
struct wl_event_source *event_source;
struct wlc_seat *seat;
struct wlc_shell *shell;
struct wlc_xdg_shell *xdg_shell;
struct wlc_backend *backend;
struct wlc_context *context;
struct wlc_render *render;
struct wl_list surfaces;
struct wl_event_source *repaint_timer;
bool repaint_scheduled;
struct {
void (*schedule_repaint)(struct wlc_compositor *compositor);
uint32_t (*get_time)(void);
} api;
};
WLC_API void wlc_compositor_run(struct wlc_compositor *compositor);
WLC_API void wlc_compositor_free(struct wlc_compositor *compositor);
WLC_API struct wlc_compositor* wlc_compositor_new(void);
#endif /* _WLC_COMPOSITOR_H_ */
| #ifndef _WLC_COMPOSITOR_H_
#define _WLC_COMPOSITOR_H_
#include "visibility.h"
#include <stdbool.h>
#include <wayland-util.h>
struct wl_display;
struct wl_event_loop;
struct wl_event_source;
struct wlc_shell;
struct wlc_xdg_shell;
struct wlc_backend;
struct wlc_context;
struct wlc_render;
struct wlc_compositor {
struct wl_global *global;
struct wl_display *display;
struct wl_event_loop *event_loop;
struct wl_event_source *event_source;
struct wlc_seat *seat;
struct wlc_shell *shell;
struct wlc_xdg_shell *xdg_shell;
struct wlc_backend *backend;
struct wlc_context *context;
struct wlc_render *render;
struct wl_list surfaces;
struct wl_event_source *repaint_timer;
bool repaint_scheduled;
struct {
void (*schedule_repaint)(struct wlc_compositor *compositor);
uint32_t (*get_time)(void);
} api;
};
WLC_API void wlc_compositor_run(struct wlc_compositor *compositor);
WLC_API void wlc_compositor_free(struct wlc_compositor *compositor);
WLC_API struct wlc_compositor* wlc_compositor_new(void);
#endif /* _WLC_COMPOSITOR_H_ */
| Fix typo in header guard. | Fix typo in header guard.
| C | mit | UIKit0/wlc,Earnestly/wlc,vially/wlc,yohanesu75/wlc,SirCmpwn/wlc,lkundrak/wlc,UIKit0/wlc,gpyh/wlc,Cloudef/wlc,scarabeusiv/wlc,gpyh/wlc,Earnestly/wlc,vially/wlc,ammen99/wlc,Enerccio/ewlc,yohanesu75/wlc,ss1h2a3tw/wlc,ss1h2a3tw/wlc,lkundrak/wlc,SirCmpwn/wlc,scarabeusiv/wlc,Enerccio/ewlc,ammen99/wlc,Cloudef/wlc |
6f0c54bc6ceca7d2260fb711cee165408cf906b1 | OCCommunicationLib/OCCommunicationLib/Utils/OCConstants.h | OCCommunicationLib/OCCommunicationLib/Utils/OCConstants.h | //
// OCChunkInputStream.h
// Owncloud iOs Client
//
// Copyright (C) 2014 ownCloud Inc. (http://www.owncloud.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#define k_redirected_code_1 301
#define k_redirected_code_2 302
#define k_redirected_code_3 307
| //
// OCChunkInputStream.h
// Owncloud iOs Client
//
// Copyright (C) 2015 ownCloud Inc. (http://www.owncloud.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#define k_redirected_code_1 301
#define k_redirected_code_2 302
#define k_redirected_code_3 307
| Update the year of the Copyright | Update the year of the Copyright | C | mit | owncloud/ios-library,pd81999/ios-library,blueseaguo/ios-library |
0857928d5aeb4ac73e27ccb027e4e37d99643935 | test/cuda_array_mapper.h | test/cuda_array_mapper.h | #ifndef TEST_CUDA_ARRAY_MAPPER_H_
#define TEST_CUDA_ARRAY_MAPPER_H_
#include <vector>
#include <cuda_runtime.h>
#include "../src/utils/cuda_array_provider.h"
/**
* \brief
*
*
*/
template <class ElementType> class CudaArrayMapper : public CudaArrayProvider
{
public:
CudaArrayMapper(int width, int height, std::vector<ElementType> data,
cudaChannelFormatDesc channelFormat)
: width(width), height(height), data(data), channelFormat(channelFormat)
{
}
virtual void map()
{
HANDLE_ERROR(cudaMallocArray(&array, &channelFormat, width, height,
cudaArraySurfaceLoadStore));
HANDLE_ERROR(cudaMemcpyToArray(array, 0, 0, data.data(),
sizeof(ElementType) * data.size(),
cudaMemcpyHostToDevice));
}
virtual void unmap()
{
cudaFree(array);
}
virtual cudaChannelFormatDesc getChannelDesc()
{
return channelFormat;
}
virtual cudaArray_t getArray()
{
return array;
}
std::vector<ElementType> copyDataFromGpu()
{
std::vector<ElementType> result(width * height);
HANDLE_ERROR(cudaMemcpyFromArray(result.data(), array, 0, 0,
sizeof(ElementType) * width * height,
cudaMemcpyDeviceToHost));
return result;
}
private:
int width;
int height;
std::vector<ElementType> data;
cudaArray_t array;
cudaChannelFormatDesc channelFormat;
};
#endif // TEST_CUDA_ARRAY_MAPPER_H_
| Add implementation of CudaArrayProvider for tests named CudaArrayMapper. | Add implementation of CudaArrayProvider for tests named CudaArrayMapper.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
|
fd6986863ac96ac91b855f33e83ba0f03799da8c | MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h | MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h | //
// NSManagedObject+JSONHelpers.h
//
// Created by Saul Mora on 6/28/11.
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
//
#import <CoreData/CoreData.h>
extern NSString * const kMagicalRecordImportCustomDateFormatKey;
extern NSString * const kMagicalRecordImportDefaultDateFormatString;
extern NSString * const kMagicalRecordImportUnixTimeString;
extern NSString * const kMagicalRecordImportAttributeKeyMapKey;
extern NSString * const kMagicalRecordImportAttributeValueClassNameKey;
extern NSString * const kMagicalRecordImportRelationshipMapKey;
extern NSString * const kMagicalRecordImportRelationshipLinkedByKey;
extern NSString * const kMagicalRecordImportRelationshipTypeKey;
@interface NSManagedObject (MagicalRecord_DataImport)
+ (instancetype) MR_importFromObject:(id)data;
+ (instancetype) MR_importFromObject:(id)data inContext:(NSManagedObjectContext *)context;
+ (NSArray *) MR_importFromArray:(NSArray *)listOfObjectData;
+ (NSArray *) MR_importFromArray:(NSArray *)listOfObjectData inContext:(NSManagedObjectContext *)context;
@end
@interface NSManagedObject (MagicalRecord_DataImportControls)
- (BOOL) shouldImport:(id)data;
- (void) willImport:(id)data;
- (void) didImport:(id)data;
@end
| //
// NSManagedObject+JSONHelpers.h
//
// Created by Saul Mora on 6/28/11.
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
//
#import <CoreData/CoreData.h>
extern NSString * const kMagicalRecordImportCustomDateFormatKey;
extern NSString * const kMagicalRecordImportDefaultDateFormatString;
extern NSString * const kMagicalRecordImportUnixTimeString;
extern NSString * const kMagicalRecordImportAttributeKeyMapKey;
extern NSString * const kMagicalRecordImportAttributeValueClassNameKey;
extern NSString * const kMagicalRecordImportRelationshipMapKey;
extern NSString * const kMagicalRecordImportRelationshipLinkedByKey;
extern NSString * const kMagicalRecordImportRelationshipTypeKey;
@protocol MagicalRecordDataImportProtocol <NSObject>
@optional
- (BOOL) shouldImport:(id)data;
- (void) willImport:(id)data;
- (void) didImport:(id)data;
@end
@interface NSManagedObject (MagicalRecord_DataImport) <MagicalRecordDataImportProtocol>
+ (instancetype) MR_importFromObject:(id)data;
+ (instancetype) MR_importFromObject:(id)data inContext:(NSManagedObjectContext *)context;
+ (NSArray *) MR_importFromArray:(NSArray *)listOfObjectData;
+ (NSArray *) MR_importFromArray:(NSArray *)listOfObjectData inContext:(NSManagedObjectContext *)context;
@end
| Move the import controls into a formal protocol | Move the import controls into a formal protocol
| C | mit | PeterStudio/MagicalRecord,iosdevvivek/MagicalRecord,xxkkk/MagicalRecord,akaking/MagicalRecord,iosdevvivek/MagicalRecord,ondev/MagicalRecord,orta/MagicalRecord,qingsong-xu/MagicalRecord,Vincent8ziv/MagicalRecord,megawina/MagicalRecord,wongzigii/MagicalRecord,csotiriou/MagicalRecord,liufeigit/MagicalRecord,BlessNeo/MagicalRecord,simoncoulton/MagicalRecord,xb123456456/MagicalRecord,AnthonyMDev/MagicalRecord,spex-app/MagicalRecord,donvaughn/MagicalRecord,ziyabal/MagicalRecord,mmmilo/MagicalRecord,ruikong/MagicalRecord,z514306470/MagicalRecord,AnthonyMDev/MagicalRecord,zhaoguohui/MagicalRecord,sujeking/MagicalRecord,ruikong/MagicalRecord,hsoi/MagicalRecord,sburavtsov/MagicalRecord,lintaoSuper/MagicalRecord,kingloveyy/MagicalRecord,tranhoanganh/MagicalRecord,justinjing/MagicalRecord,kingloveyy/MagicalRecord,msdgwzhy6/MagicalRecord,Gaantz/MagicalRecord,spex-app/MagicalRecord,vascoorey/MagicalRecord,igroomgrim/MagicalRecord,tmacyml/MagicalRecord,mmmilo/MagicalRecord,ChinaPicture/MagicalRecord,donvaughn/MagicalRecord,pronebird/MagicalRecord,cnbin/MagicalRecord,TheGiantPixelCorporation/MagicalRecord,iosRookie/MagicalRecord,lifcio/MagicalRecord,diejmon/MagicalRecord,fhchina/MagicalRecord,tranhoanganh/MagicalRecord,csotiriou/MagicalRecord,yiplee/MagicalRecord,libiao88/MagicalRecord,caoer/MagicalRecord,ChinaPicture/MagicalRecord,cnbin/MagicalRecord,csotiriou/MagicalRecord,pengleelove/MagicalRecord,libiao88/MagicalRecord,liufeigit/MagicalRecord,zyncro/MagicalRecord,sburavtsov/MagicalRecord,megawina/MagicalRecord,hsoi/MagicalRecord,igroomgrim/MagicalRecord,sujeking/MagicalRecord,kidaa/MagicalRecord,hsoi/MagicalRecord,yanyuqingshi/MagicalRecord,spex-app/MagicalRecord,12207480/MagicalRecord,simoncoulton/MagicalRecord,AlanJN/MagicalRecord,tmacyml/MagicalRecord,lintaoSuper/MagicalRecord,xxkkk/MagicalRecord,iosRookie/MagicalRecord,avielg/MagicalRecord,pengleelove/MagicalRecord,yiplee/MagicalRecord,xb123456456/MagicalRecord,kidaa/MagicalRecord,vascoorey/MagicalRecord,akaking/MagicalRecord,ziyabal/MagicalRecord,happy201993/MagicalRecord,yanyuqingshi/MagicalRecord,caoer/MagicalRecord,diejmon/MagicalRecord,qingsong-xu/MagicalRecord,Vincent8ziv/MagicalRecord,orta/MagicalRecord,AlanJN/MagicalRecord,zhouwude/MagicalRecord,msdgwzhy6/MagicalRecord,TheGiantPixelCorporation/MagicalRecord,AnthonyMDev/MagicalRecord,justinjing/MagicalRecord,pronebird/MagicalRecord,zyncro/MagicalRecord,jiamaozheng/MagicalRecord,z514306470/MagicalRecord,PeterStudio/MagicalRecord,zhouwude/MagicalRecord,AmitaiB/MagicalRecord,Gaantz/MagicalRecord,igroomgrim/MagicalRecord,zezefamily/MagicalRecord,hanangellove/MagicalRecord,diejmon/MagicalRecord,AmitaiB/MagicalRecord,jiamaozheng/MagicalRecord,avielg/MagicalRecord,fhchina/MagicalRecord,wongzigii/MagicalRecord,orta/MagicalRecord,happy201993/MagicalRecord,12207480/MagicalRecord,lintaoSuper/MagicalRecord,zezefamily/MagicalRecord,lifcio/MagicalRecord,hanangellove/MagicalRecord,zhaoguohui/MagicalRecord,ondev/MagicalRecord,BlessNeo/MagicalRecord |
ade05c3a2896b49b876e910c94e292a77ddd7ac7 | include/libvarnish.h | include/libvarnish.h | /*
* $Id$
*/
#include <errno.h>
#include <time.h>
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char *);
/* from libvarnish/assert.c */
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)0)
#else /* WITH_ASSERTS */
#define assert(e) \
do { \
if (!(e)) \
lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0)
#endif
void lbv_assert(const char *, const char *, int, const char *, int);
/* Assert zero return value */
#define AZ(foo) do { assert((foo) == 0); } while (0)
| /*
* $Id$
*/
#include <errno.h>
#include <time.h>
#ifndef NULL
#define NULL ((void*)0)
#endif
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char *);
/* from libvarnish/assert.c */
/*
* assert(), AN() and AZ() are static checks that should not happen.
* xxxassert(), XXXAN() and XXXAZ() are markers for missing code.
*/
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)0)
#else /* WITH_ASSERTS */
#define assert(e) \
do { \
if (!(e)) \
lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0)
#endif
#define xxxassert(e) \
do { \
if (!(e)) \
lbv_assert("XXX:" __func__, __FILE__, __LINE__, #e, errno); \
} while (0)
void lbv_assert(const char *, const char *, int, const char *, int);
/* Assert zero return value */
#define AZ(foo) do { assert((foo) == 0); } while (0)
#define AN(foo) do { assert((foo) != NULL); } while (0)
#define XXXAZ(foo) do { xxxassert((foo) == 0); } while (0)
#define XXXAN(foo) do { xxxassert((foo) != NULL); } while (0)
| Split assert into "static check" and "missing code" variants. | Split assert into "static check" and "missing code" variants.
The "missing code" variants have xxx prefix
Introduce AN() (assert non-null) variant as well.
git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | 1HLtd/Varnish-Cache,franciscovg/Varnish-Cache,ajasty-cavium/Varnish-Cache,gauthier-delacroix/Varnish-Cache,zhoualbeart/Varnish-Cache,ajasty-cavium/Varnish-Cache,feld/Varnish-Cache,alarky/varnish-cache-doc-ja,varnish/Varnish-Cache,mrhmouse/Varnish-Cache,chrismoulton/Varnish-Cache,wikimedia/operations-debs-varnish,gquintard/Varnish-Cache,ajasty-cavium/Varnish-Cache,feld/Varnish-Cache,ajasty-cavium/Varnish-Cache,varnish/Varnish-Cache,zhoualbeart/Varnish-Cache,ssm/pkg-varnish,1HLtd/Varnish-Cache,drwilco/varnish-cache-drwilco,wikimedia/operations-debs-varnish,drwilco/varnish-cache-drwilco,gquintard/Varnish-Cache,zhoualbeart/Varnish-Cache,gauthier-delacroix/Varnish-Cache,mrhmouse/Varnish-Cache,varnish/Varnish-Cache,mrhmouse/Varnish-Cache,gquintard/Varnish-Cache,drwilco/varnish-cache-old,alarky/varnish-cache-doc-ja,wikimedia/operations-debs-varnish,alarky/varnish-cache-doc-ja,ambernetas/varnish-cache,varnish/Varnish-Cache,ambernetas/varnish-cache,mrhmouse/Varnish-Cache,alarky/varnish-cache-doc-ja,1HLtd/Varnish-Cache,gquintard/Varnish-Cache,feld/Varnish-Cache,1HLtd/Varnish-Cache,ajasty-cavium/Varnish-Cache,chrismoulton/Varnish-Cache,franciscovg/Varnish-Cache,zhoualbeart/Varnish-Cache,chrismoulton/Varnish-Cache,alarky/varnish-cache-doc-ja,gauthier-delacroix/Varnish-Cache,chrismoulton/Varnish-Cache,gauthier-delacroix/Varnish-Cache,mrhmouse/Varnish-Cache,drwilco/varnish-cache-old,zhoualbeart/Varnish-Cache,ssm/pkg-varnish,franciscovg/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,ambernetas/varnish-cache,chrismoulton/Varnish-Cache,gauthier-delacroix/Varnish-Cache,feld/Varnish-Cache,feld/Varnish-Cache,franciscovg/Varnish-Cache,drwilco/varnish-cache-drwilco,drwilco/varnish-cache-old,wikimedia/operations-debs-varnish,varnish/Varnish-Cache,ssm/pkg-varnish,franciscovg/Varnish-Cache,wikimedia/operations-debs-varnish |
97498f64ef097096b756c6b262f3ae38965e8685 | tensorflow/compiler/tf2xla/type_util.h | tensorflow/compiler/tf2xla/type_util.h | /* Copyright 2017 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 TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
#define TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
#include "tensorflow/compiler/xla/xla_data.pb.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/status.h"
namespace tensorflow {
// Converts a Tensorflow DataType to an XLA PrimitiveType.
Status DataTypeToPrimitiveType(DataType data_type, xla::PrimitiveType* type);
} // namespace tensorflow
#endif // TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
| /* Copyright 2017 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 TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
#define TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
#include "tensorflow/compiler/xla/xla_data.pb.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/status.h"
namespace tensorflow {
// Converts a Tensorflow DataType to an XLA PrimitiveType.
Status DataTypeToPrimitiveType(DataType data_type, xla::PrimitiveType* type);
// N.B.: there is intentionally no function to convert an XLA PrimitiveType to
// a TensorFlow DataType. The mapping from TF types to XLA types is not
// one-to-one: for example, both DT_INT8 and DT_QINT8 map to xla::S8. So the
// inverse would not be a well-defined function. If you find that you want the
// inverse mapping, then most likely you should be preserving the original
// TensorFlow type, rather than trying to convert an XLA type into a TensorFlow
// type.
} // namespace tensorflow
#endif // TENSORFLOW_COMPILER_TF2XLA_TYPE_UTIL_H_
| Add comment explaining why there is no PrimitiveTypeToDataType function. | [TF:XLA] Add comment explaining why there is no PrimitiveTypeToDataType function.
PiperOrigin-RevId: 214945748
| C | apache-2.0 | chemelnucfin/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,yongtang/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,girving/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,dancingdan/tensorflow,alsrgv/tensorflow,kobejean/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,jbedorf/tensorflow,asimshankar/tensorflow,sarvex/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,hehongliang/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,alshedivat/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,karllessard/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,jendap/tensorflow,hehongliang/tensorflow,ageron/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,hehongliang/tensorflow,apark263/tensorflow,ppwwyyxx/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,xzturn/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,ageron/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,seanli9jan/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,theflofly/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,kobejean/tensorflow,jendap/tensorflow,paolodedios/tensorflow,jbedorf/tensorflow,apark263/tensorflow,girving/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,dongjoon-hyun/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,aam-at/tensorflow,annarev/tensorflow,girving/tensorflow,arborh/tensorflow,ageron/tensorflow,alshedivat/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,petewarden/tensorflow,jhseu/tensorflow,asimshankar/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,karllessard/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,brchiu/tensorflow,arborh/tensorflow,cxxgtxy/tensorflow,seanli9jan/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,snnn/tensorflow,dancingdan/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,alshedivat/tensorflow,ppwwyyxx/tensorflow,seanli9jan/tensorflow,kevin-coder/tensorflow-fork,dongjoon-hyun/tensorflow,dancingdan/tensorflow,sarvex/tensorflow,ghchinoy/tensorflow,asimshankar/tensorflow,chemelnucfin/tensorflow,alsrgv/tensorflow,xzturn/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,renyi533/tensorflow,xzturn/tensorflow,aam-at/tensorflow,karllessard/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,yongtang/tensorflow,xzturn/tensorflow,dancingdan/tensorflow,theflofly/tensorflow,jhseu/tensorflow,theflofly/tensorflow,ageron/tensorflow,jhseu/tensorflow,brchiu/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,ghchinoy/tensorflow,arborh/tensorflow,Bismarrck/tensorflow,alshedivat/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,hehongliang/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,renyi533/tensorflow,arborh/tensorflow,gunan/tensorflow,girving/tensorflow,girving/tensorflow,girving/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,jhseu/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,hehongliang/tensorflow,alsrgv/tensorflow,asimshankar/tensorflow,Intel-tensorflow/tensorflow,chemelnucfin/tensorflow,adit-chandra/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,karllessard/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,yongtang/tensorflow,girving/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,yongtang/tensorflow,jendap/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,girving/tensorflow,aldian/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,jendap/tensorflow,karllessard/tensorflow,snnn/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,brchiu/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,jendap/tensorflow,brchiu/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,kobejean/tensorflow,paolodedios/tensorflow,Bismarrck/tensorflow,annarev/tensorflow,dongjoon-hyun/tensorflow,arborh/tensorflow,snnn/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,alsrgv/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,dancingdan/tensorflow,gunan/tensorflow,yongtang/tensorflow,annarev/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,arborh/tensorflow,arborh/tensorflow,alshedivat/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,seanli9jan/tensorflow,apark263/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,aldian/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,jbedorf/tensorflow,freedomtan/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,Bismarrck/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,Bismarrck/tensorflow,theflofly/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,dongjoon-hyun/tensorflow,ppwwyyxx/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,annarev/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,brchiu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jendap/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ageron/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,arborh/tensorflow,tensorflow/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jendap/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,jbedorf/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,hehongliang/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,snnn/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,gautam1858/tensorflow,dongjoon-hyun/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,kobejean/tensorflow,renyi533/tensorflow,apark263/tensorflow,hfp/tensorflow-xsmm,brchiu/tensorflow,adit-chandra/tensorflow,brchiu/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kevin-coder/tensorflow-fork,asimshankar/tensorflow,kobejean/tensorflow,snnn/tensorflow,tensorflow/tensorflow,gunan/tensorflow,annarev/tensorflow,renyi533/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,jbedorf/tensorflow,kevin-coder/tensorflow-fork,aldian/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,yongtang/tensorflow,seanli9jan/tensorflow,dancingdan/tensorflow,jhseu/tensorflow,xzturn/tensorflow,petewarden/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,karllessard/tensorflow,aam-at/tensorflow,dancingdan/tensorflow,freedomtan/tensorflow,hehongliang/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,jendap/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,xzturn/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,gunan/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,kobejean/tensorflow,petewarden/tensorflow,sarvex/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,paolodedios/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,hfp/tensorflow-xsmm,snnn/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,kobejean/tensorflow,brchiu/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,seanli9jan/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,ageron/tensorflow,jbedorf/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,ghchinoy/tensorflow,ppwwyyxx/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,asimshankar/tensorflow,Bismarrck/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,alshedivat/tensorflow,alshedivat/tensorflow,ageron/tensorflow,dongjoon-hyun/tensorflow,aam-at/tensorflow,apark263/tensorflow,jendap/tensorflow,girving/tensorflow,snnn/tensorflow,seanli9jan/tensorflow,jendap/tensorflow,Bismarrck/tensorflow,kobejean/tensorflow,ageron/tensorflow,ageron/tensorflow,aldian/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,theflofly/tensorflow,aldian/tensorflow,hfp/tensorflow-xsmm,kobejean/tensorflow,snnn/tensorflow,alsrgv/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,theflofly/tensorflow,apark263/tensorflow,alshedivat/tensorflow,alsrgv/tensorflow,Bismarrck/tensorflow,xzturn/tensorflow,theflofly/tensorflow,aldian/tensorflow,kevin-coder/tensorflow-fork,petewarden/tensorflow,chemelnucfin/tensorflow |
a41572918b5ca69cc925d9ce0714c03924857289 | include/libvarnish.h | include/libvarnish.h | /*
* $Id$
*/
#include <errno.h>
#include <time.h>
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char *);
/* from libvarnish/assert.c */
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)0)
#else /* WITH_ASSERTS */
#define assert(e) \
do { \
if (!(e)) \
lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0)
#endif
void lbv_assert(const char *, const char *, int, const char *, int);
/* Assert zero return value */
#define AZ(foo) do { assert((foo) == 0); } while (0)
| /*
* $Id$
*/
#include <errno.h>
#include <time.h>
#ifndef NULL
#define NULL ((void*)0)
#endif
/* from libvarnish/argv.c */
void FreeArgv(char **argv);
char **ParseArgv(const char *s, int comment);
/* from libvarnish/time.c */
void TIM_format(time_t t, char *p);
time_t TIM_parse(const char *p);
/* from libvarnish/version.c */
void varnish_version(const char *);
/* from libvarnish/assert.c */
/*
* assert(), AN() and AZ() are static checks that should not happen.
* xxxassert(), XXXAN() and XXXAZ() are markers for missing code.
*/
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)0)
#else /* WITH_ASSERTS */
#define assert(e) \
do { \
if (!(e)) \
lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0)
#endif
#define xxxassert(e) \
do { \
if (!(e)) \
lbv_assert("XXX:" __func__, __FILE__, __LINE__, #e, errno); \
} while (0)
void lbv_assert(const char *, const char *, int, const char *, int);
/* Assert zero return value */
#define AZ(foo) do { assert((foo) == 0); } while (0)
#define AN(foo) do { assert((foo) != NULL); } while (0)
#define XXXAZ(foo) do { xxxassert((foo) == 0); } while (0)
#define XXXAN(foo) do { xxxassert((foo) != NULL); } while (0)
| Split assert into "static check" and "missing code" variants. | Split assert into "static check" and "missing code" variants.
The "missing code" variants have xxx prefix
Introduce AN() (assert non-null) variant as well.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.