commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
02d72c81af73bdd765beb3af9b7915209e18a747 | atom/common/common_message_generator.h | atom/common/common_message_generator.h | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#i... | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#i... | Fix linking problem with IPC::MessageT | Fix linking problem with IPC::MessageT
IPC::MessageT<ChromeUtilityHostMsg_ProcessStarted_Meta, std::__1::tuple<>, void>::MessageT(IPC::Routing)
| C | mit | seanchas116/electron,shiftkey/electron,shiftkey/electron,Floato/electron,brenca/electron,thompsonemerson/electron,thomsonreuters/electron,jhen0409/electron,tinydew4/electron,twolfson/electron,tonyganch/electron,tonyganch/electron,aichingm/electron,kcrt/electron,stevekinney/electron,kokdemo/electron,the-ress/electron,st... |
851b80ea96383be2e95f36b238f390e9c2f9880e | Include/boolobject.h | Include/boolobject.h | /* Boolean object interface */
typedef PyIntObject PyBoolObject;
extern DL_IMPORT(PyTypeObject) PyBool_Type;
#define PyBool_Check(x) ((x)->ob_type == &PyBool_Type)
/* Py_False and Py_True are the only two bools in existence.
Don't forget to apply Py_INCREF() when returning either!!! */
/* Don't use these directly ... | /* Boolean object interface */
#ifndef Py_BOOLOBJECT_H
#define Py_BOOLOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
typedef PyIntObject PyBoolObject;
extern DL_IMPORT(PyTypeObject) PyBool_Type;
#define PyBool_Check(x) ((x)->ob_type == &PyBool_Type)
/* Py_False and Py_True are the only two bools in existence.
Do... | Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs. | Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
aad15687e0b91cba541cb939df092a15dbf43ae5 | src/core/kms-utils.c | src/core/kms-utils.c | #include <gst/gst.h>
#include "kms-core.h"
static GstElement *pipe = NULL;
static G_LOCK_DEFINE(mutex);
static gboolean init = FALSE;
static gboolean
bus_watch(GstBus *bus, GstMessage *message, gpointer data) {
KMS_LOG_DEBUG("TODO: implement bus watcher\n");
return TRUE;
}
void
kms_init(gint *argc, gchar **argv[])... | #include <gst/gst.h>
#include "kms-core.h"
static GstElement *pipe = NULL;
static G_LOCK_DEFINE(mutex);
static gboolean init = FALSE;
static gpointer
gstreamer_thread(gpointer data) {
GMainLoop *loop;
loop = g_main_loop_new(NULL, TRUE);
g_main_loop_run(loop);
return NULL;
}
void
kms_init(gint *argc, gchar **argv... | Make all bus events to be signals | Make all bus events to be signals
| C | lgpl-2.1 | shelsonjava/kurento-media-server,mparis/kurento-media-server,todotobe1/kurento-media-server,todotobe1/kurento-media-server,lulufei/kurento-media-server,TribeMedia/kurento-media-server,shelsonjava/kurento-media-server,Kurento/kurento-media-server,lulufei/kurento-media-server,mparis/kurento-media-server,Kurento/kurento-m... |
b817c6cc5a0231a0ad9bb1e71a69a15df05e4d80 | cmacros/effectless.h | cmacros/effectless.h | #ifndef _EFFECTLESS
#define EFFECTLESS
/*
Macros without multiple execution of side-effects.
*/
/*
Generic min and max without double execution of side-effects:
http://stackoverflow.com/questions/3437404/min-and-max-in-c
*/
#define _CHOOSE(boolop, a, b, uid) \
({ \
decltype(a) _... | #ifndef _EFFECTLESS
#define EFFECTLESS
/*
Macros without multiple execution of side-effects.
*/
/*
Generic min and max without double execution of side-effects:
http://stackoverflow.com/questions/3437404/min-and-max-in-c
*/
#define _CHOOSE(boolop, a, b, uid) \
({ ... | Fix `_CHOOSE` to use the copies instead of double execution of side-effects (issue reported by tromp at bitcointalk.org) | Fix `_CHOOSE` to use the copies instead of double execution of side-effects (issue reported by tromp at bitcointalk.org)
| C | unlicense | shelby3/cmacros,shelby3/cmacros |
ab2bf7a582302431dec4de7ec7f1434fdac6ebac | mudlib/mud/home/Help/initd.c | mudlib/mud/home/Help/initd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2009, 2012, 2013, 2014 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2009, 2012, 2013, 2014 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free... | Make gutted help subsystem shut itself down on next upgrade | Make gutted help subsystem shut itself down on next upgrade
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
76de586faadc195b372248b8f52e66568c31ec1a | src/port/getrusage.c | src/port/getrusage.c | #include "../sccs.h"
#ifdef WIN32
#include <psapi.h>
u64
maxrss(void)
{
PROCESS_MEMORY_COUNTERS cnt;
if (GetProcessMemoryInfo(GetCurrentProcess(), &cnt, sizeof(cnt))) {
return (cnt.PeakWorkingSetSize);
}
return (0);
}
#else
#include <sys/resource.h>
u64
maxrss(void)
{
struct rusage ru;
if (!getrusage(RU... | #include "../sccs.h"
#ifdef WIN32
#include <psapi.h>
u64
maxrss(void)
{
PROCESS_MEMORY_COUNTERS cnt;
if (GetProcessMemoryInfo(GetCurrentProcess(), &cnt, sizeof(cnt))) {
return (cnt.PeakWorkingSetSize);
}
return (0);
}
#else
#include <sys/resource.h>
u64
maxrss(void)
{
struct rusage ru;
#if defined(sun)
i... | Adjust for the fact that MacOS X and Solaris report maxrss in different units. | Adjust for the fact that MacOS X and Solaris report maxrss in
different units.
bk: 5489ebbfQIN1Wbpf9Qa4aY-VK6F8xw | C | apache-2.0 | bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper |
54d4ca4f7db1a12316b03a839710437765f5273a | src/ZeroField.h | src/ZeroField.h | #ifndef __ZERO_FIELD_H__
#define __ZERO_FIELD_H__
#include "Field.h"
namespace cigma {
class ZeroField;
}
class cigma::ZeroField : public cigma::Field
{
public:
ZeroField();
~ZeroField();
void set_shape(int dim, int rank);
public:
int n_dim() { return dim; }
int n_rank() { return rank; }
... | #ifndef __ZERO_FIELD_H__
#define __ZERO_FIELD_H__
#include "UserField.h"
namespace cigma {
class ZeroField;
}
class cigma::ZeroField : public cigma::UserField
{
public:
ZeroField();
~ZeroField();
void set_shape(int dim, int rank);
public:
int n_dim() { return dim; }
int n_rank() { return ran... | Make zero a user field | Make zero a user field
| C | lgpl-2.1 | geodynamics/cigma,geodynamics/cigma,geodynamics/cigma,geodynamics/cigma,geodynamics/cigma |
2f329161a12024e003427fc98e2ce6b7cfcfce48 | MORK/MORK.h | MORK/MORK.h | //
// MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ORKTaskResult+MORK.h"
#import "ORKQuestionResult+MORK.h"
//! Project version number for MORK.
FOUNDATION_EXPORT double MORKVersionNumber;
//! Project ... | //
// MORK.h
// MORK
//
// Created by Nolan Carroll on 4/23/15.
// Copyright (c) 2015 Medidata Solutions. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ORKCollectionResult+MORK.h"
#import "ORKQuestionResult+MORK.h"
//! Project version number for MORK.
FOUNDATION_EXPORT double MORKVersionNumber;
//! Pr... | Update import in main header file | Update import in main header file
| C | mit | mdsol/MORK,mdsol/MORK |
cae22b0d5dbd38fff95f3730914ae03e12e7b5bd | core/metacling/inc/LinkDef.h | core/metacling/inc/LinkDef.h | /* @(#)root/meta:$Id: 4660ec009138a70261265c65fc5a10398706fbd1 $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | /* @(#)root/meta:$Id$ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Clean up versioning commit hash. | Clean up versioning commit hash.
| C | lgpl-2.1 | karies/root,root-mirror/root,agarciamontoro/root,bbockelm/root,zzxuanyuan/root,root-mirror/root,bbockelm/root,karies/root,gbitzes/root,zzxuanyuan/root,mhuwiler/rootauto,gbitzes/root,gganis/root,karies/root,zzxuanyuan/root,agarciamontoro/root,olifre/root,BerserkerTroll/root,buuck/root,karies/root,bbockelm/root,mhuwiler/... |
ec47d75d7c8610c81b402d20885ecf2f5e80c784 | test/CodeGen/forwarding-blocks-if.c | test/CodeGen/forwarding-blocks-if.c | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// Check that no empty blocks are generated for nested ifs.
extern void func();
int f0(int val) {
if (val == 0) {
func();
} else if (val == 1) {
func();
}
return 0;
}
// CHECK-LABEL: define i32 @f0
// CHECK: call void {{.*}} @func
// CHECK: call vo... | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// Check that no empty blocks are generated for nested ifs.
extern void func();
int f0(int val) {
if (val == 0) {
func();
} else if (val == 1) {
func();
}
return 0;
}
// CHECK-LABEL: define {{.*}} i32 @f0
// CHECK: call void {{.*}} @func
// CHECK: ... | Fix test submitted with r275115 (failed on ppc64 buildbots). | Fix test submitted with r275115 (failed on ppc64 buildbots).
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@275127 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
e4dfaad868cf5f29058a081422cdb4420d853311 | 7segments.c | 7segments.c | #define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?124:32,y&u?95:32,y&u/2?124:32,*c?32:10);u*=8;
main(int u,char**a){u=1;L;L;L} | #define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8;
main(int u,char**a){u=1;L;L;L} | Use ! instead of |, looks nicer also saves two bytes | Use ! instead of |, looks nicer also saves two bytes
| C | mit | McZonk/7segements,McZonk/7segements |
faf1826dc91d379da0258dc23adc115a5a42890d | texor.c | texor.c | #include <unistd.h>
int main() {
char c;
while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q');
return 0;
}
| #include <termios.h>
#include <unistd.h>
void enableRawMode() {
struct termios raw;
tcgetattr(STDIN_FILENO, &raw);
raw.c_lflag &= ~(ECHO);
tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
}
int main() {
enableRawMode();
char c;
while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q');
return 0;
}
| Enable raw mode in terminal | Enable raw mode in terminal
| C | bsd-2-clause | kyletolle/texor |
e9d185a4d126adf5ea6c27fc4d6dc1a55cb104e4 | Python/strtod.c | Python/strtod.c | /* This is not a proper strtod() implementation, but sufficient for Python.
Python won't detect floating point constant overflow, though. */
extern int strlen();
extern double atof();
double
strtod(p, pp)
char *p;
char **pp;
{
if (pp)
*pp = p + strlen(p);
return atof(p);
}
| /* This is not a proper strtod() implementation, but sufficient for Python.
Python won't detect floating point constant overflow, though. */
extern int errno;
extern int strlen();
extern double atof();
double
strtod(p, pp)
char *p;
char **pp;
{
double res;
if (pp)
*pp = p + strlen(p);
res = atof(p);
errn... | Clear errno, just to be sure. | Clear errno, just to be sure.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
ad5f95a1151e450413b45f81eb1f8b9b70974e68 | Sources/NimbleObjectiveC/NMBStringify.h | Sources/NimbleObjectiveC/NMBStringify.h | @class NSString;
/**
* Returns a string appropriate for displaying in test output
* from the provided value.
*
* @param value A value that will show up in a test's output.
*
* @return The string that is returned can be
* customized per type by conforming a type to the `TestOutputStringConvertible`
* pr... | @class NSString;
/**
* Returns a string appropriate for displaying in test output
* from the provided value.
*
* @param anyObject A value that will show up in a test's output.
*
* @return The string that is returned can be
* customized per type by conforming a type to the `TestOutputStringConvertible`
* ... | Fix documentation parameter name warnings | Fix documentation parameter name warnings
value is not matching `anyObject` | C | apache-2.0 | abbeycode/Nimble,Quick/Nimble,twobitlabs/Nimble,twobitlabs/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,phatblat/Nimble,Quick/Nimble,phatblat/Nimble,DanielAsher/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,Quick/Nimble,abbeycode/Nimble,twobitlabs/Nimble,DanielAsher/Nimble,abbeycode/Nimble,AnthonyMDev/Nimb... |
82f655c48263612edfc4e145bc5da18ca25cf8ec | 3RVX/DiskInfo.h | 3RVX/DiskInfo.h | #pragma once
#include <Windows.h>
#include <string>
class DiskInfo {
public:
DiskInfo(wchar_t driveLetter);
static std::wstring DriveFileName(wchar_t &driveLetter);
static std::wstring DriveFileName(std::wstring &driveLetter);
private:
HANDLE _devHandle;
}; | #pragma once
#include <Windows.h>
#include <string>
class DiskInfo {
public:
DiskInfo(wchar_t driveLetter);
static std::wstring DriveFileName(wchar_t &driveLetter);
static std::wstring DriveFileName(std::wstring &driveLetter);
private:
HANDLE _devHandle;
std::wstring _productId;
std::wstrin... | Add member variables for storing disk info | Add member variables for storing disk info
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
9f59142ee7ca004fb39be638463ad0ef0ba3a713 | alura/c/forca.c | alura/c/forca.c | #include <stdio.h>
int main() {
char palavrasecreta[20];
sprintf(palavrasecreta, "MELANCIA");
printf("%s\n", palavrasecreta);
/*
palavrasecreta[0] = 'M';
palavrasecreta[1] = 'E';
palavrasecreta[2] = 'L';
palavrasecreta[3] = 'A';
palavrasecreta[4] = 'N';
palavrasecreta[5] = 'C';
palavrasecreta[... | #include <stdio.h>
int main() {
char palavrasecreta[20];
sprintf(palavrasecreta, "MELANCIA");
printf("%s\n", palavrasecreta);
/*
palavrasecreta[0] = 'M';
palavrasecreta[1] = 'E';
palavrasecreta[2] = 'L';
palavrasecreta[3] = 'A';
palavrasecreta[4] = 'N';
palavrasecreta[5] = 'C';
palavrasecreta[... | Update files, Alura, Introdução a C - Parte 2, Aula 2.2 | Update files, Alura, Introdução a C - Parte 2, Aula 2.2
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
b57aae70855946e5e6a223f10b29af082937e20c | BBBAPI/BBBAPI/Classes/BBAAPIErrors.h | BBBAPI/BBBAPI/Classes/BBAAPIErrors.h | //
// BBAAPIErrors.h
// BBAAPI
//
// Created by Owen Worley on 11/08/2014.
// Copyright (c) 2014 Blinkbox Books. All rights reserved.
//
NS_ENUM(NSInteger, BBAAPIError) {
/**
* Used when needed parameter is not supplied to the method
* or when object is supplied but it has wrong type or
* fo... | //
// BBAAPIErrors.h
// BBAAPI
//
// Created by Owen Worley on 11/08/2014.
// Copyright (c) 2014 Blinkbox Books. All rights reserved.
//
NS_ENUM(NSInteger, BBAAPIError) {
/**
* Used when needed parameter is not supplied to the method
* or when object is supplied but it has wrong type or
* fo... | Add Bad Request error code | Add Bad Request error code
| C | mit | blinkboxbooks/blinkbox-network.objc,blinkboxbooks/blinkbox-network.objc |
2d67979dc01cb98b74941246685e9853439dd4a8 | blocklist.h | blocklist.h |
#ifndef SQREDIR_BLOCKLIST_H
#define SQREDIR_BLOCKLIST_H
#include <cstdio>
#include <string>
using namespace std;
// reads the given configuration file
// returns: true/false for success/failure
bool read_config(string filename);
// tries to match the Squid request & writes the response to the output stream
// inpu... |
#ifndef SQREDIR_BLOCKLIST_H
#define SQREDIR_BLOCKLIST_H
#include <cstdio>
#include <string>
// reads the given configuration file
// returns: true/false for success/failure
bool read_config(std::string filename);
// tries to match the Squid request & writes the response to the output stream
// input: a request line... | Remove 'using' directive from header, explicitly qualify std namespace. | Remove 'using' directive from header, explicitly qualify std namespace.
| C | apache-2.0 | hhoffstaette/sqredir |
b60ffe69ae77c59e05f2f3985955b0034ba93b7a | MC/JPetMCDecayTree/JPetMCDecayTree.h | MC/JPetMCDecayTree/JPetMCDecayTree.h | /**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Change header guard name to do not colide with JPetMCHit | Change header guard name to do not colide with JPetMCHit
| C | apache-2.0 | JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework |
0aad78ead3cc061a0cb6135ba8833ba5edc491d3 | Sources/Mile/Components/ActorComponent.h | Sources/Mile/Components/ActorComponent.h | #pragma once
#include "MileObject.h"
namespace Mile
{
/**
* ActorComponent Actor ߰ ִ ϴ Component ⺻ ŬԴϴ.
*/
class Actor;
class MILE_API ActorComponent : public MileObject
{
friend Actor;
public:
ActorComponent( const MString& NewName ) :
bIsTick( false ),
... | #pragma once
#include "MileObject.h"
namespace Mile
{
/**
* ActorComponent Actor ߰ ִ ϴ Component ⺻ ŬԴϴ.
*/
class Actor;
class MILE_API ActorComponent : public MileObject
{
friend Actor;
public:
ActorComponent( const MString& NewName ) :
bIsTick( false ),
... | Delete TickComponent ( because of tick manager ) | Delete TickComponent ( because of tick manager )
| C | mit | HoRangDev/MileEngine,HoRangDev/MileEngine |
25955e1264eec2fec804d7786e2f640bf9e0d189 | src/platforms/esp/32/led_sysdefs_esp32.h | src/platforms/esp/32/led_sysdefs_esp32.h | #pragma once
#include "esp32-hal.h"
#ifndef ESP32
#define ESP32
#endif
#define FASTLED_ESP32
#if CONFIG_IDF_TARGET_ARCH_RISCV
#define FASTLED_RISCV
#endif
#if CONFIG_IDF_TARGET_ARCH_XTENSA || CONFIG_XTENSA_IMPL
#define FASTLED_XTENSA
#endif
// Use system millis timer
#define FASTLED_HAS_MILLIS
typedef volatile uin... | #pragma once
#include "esp32-hal.h"
#ifndef ESP32
#define ESP32
#endif
#define FASTLED_ESP32
#if CONFIG_IDF_TARGET_ARCH_RISCV
#define FASTLED_RISCV
#else
#define FASTLED_XTENSA
#endif
// Handling for older versions of ESP32 Arduino core
#if !defined(ESP_IDF_VERSION)
// Older versions of ESP_IDF only supported ESP32
... | Improve compatibility with older ESP32 Arduino core versions | Improve compatibility with older ESP32 Arduino core versions
| C | mit | FastLED/FastLED,FastLED/FastLED,FastLED/FastLED,FastLED/FastLED |
72f1d4f87a8a107ceaddb455fca34c59737e1d33 | mudlib/mud/home/Bigstruct/lib/base/node.c | mudlib/mud/home/Bigstruct/lib/base/node.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add another debug check to bigstructs | Add another debug check to bigstructs
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
dbc4a86f3cf652826ad0b0ad2528535273f581c3 | core/core.h | core/core.h | #if defined(WIN32) || defined(_WIN32) || \
defined(__WIN32) && !defined(__CYGWIN__)
#include <BaseTsd.h>
#include <windows.h>
typedef SSIZE_T ssize_t;
#endif
#ifndef _WIN32
#include <unistd.h>
#endif
#include <inttypes.h>
typedef char *String;
typedef char *Pattern;
typedef int64_t Long;
#if defined NDEBUG
#defin... | #if defined(WIN32) || defined(_WIN32) || \
defined(__WIN32) && !defined(__CYGWIN__)
#include <BaseTsd.h>
#include <windows.h>
typedef SSIZE_T ssize_t;
#define SIZE_T_FORMAT_SPECIFIER "%ld"
#endif
#ifndef _WIN32
#include <unistd.h>
#define SIZE_T_FORMAT_SPECIFIER "%zd"
#endif
#include <inttypes.h>
typedef char *Str... | Use other format specifers on Windows. | Use other format specifers on Windows.
| C | apache-2.0 | carp-lang/Carp,eriksvedang/Carp,eriksvedang/Carp,carp-lang/Carp,carp-lang/Carp |
1afc2d2704568e5d587eb2ceb18802a4d9bdf7af | core/cortex-m0/config_core.h | core/cortex-m0/config_core.h | /* Copyright 2014 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.
*/
#ifndef __CROS_EC_CONFIG_CORE_H
#define __CROS_EC_CONFIG_CORE_H
/* Linker binary architecture and format */
#define BFD_ARCH arm
#define BFD_FORMA... | /* Copyright 2014 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.
*/
#ifndef __CROS_EC_CONFIG_CORE_H
#define __CROS_EC_CONFIG_CORE_H
/* Linker binary architecture and format */
#define BFD_ARCH arm
#define BFD_FORMA... | Use compiler_rt version of clz and ctz | core/cortex-m0: Use compiler_rt version of clz and ctz
Use __clzsi2 and __ctzsi2 from compiler_rt instead of our own version.
Using the compiler_rt versions result in a slightly smaller image.
servo_micro before this change:
RO: 18744 bytes in flash remaining
RW: 23192 bytes in flash remaining
servo_micro after this... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec |
173dee2eb85f7d8ea0ca491f3683382ae8754ca7 | include/effects/SkStippleMaskFilter.h | include/effects/SkStippleMaskFilter.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | Fix for compiler error in r4154 | Fix for compiler error in r4154
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | mrobinson/skia,mrobinson/skia,metajack/skia,metajack/skia,mrobinson/skia,mrobinson/skia,Cue/skia,Cue/skia,metajack/skia,mrobinson/skia,Cue/skia,metajack/skia,Cue/skia |
f0fb14cade4f14185481851a739313bf81d4f8c6 | include/samplers/stratified_sampler.h | include/samplers/stratified_sampler.h | #ifndef STRATIFIED_SAMPLER_H
#define STRATIFIED_SAMPLER_H
#include <random>
#include <memory>
#include <array>
#include <vector>
#include "sampler.h"
/*
* A stratified sampler, generates multipled jittered
* samples per pixel in its sample region
*/
class StratifiedSampler : public Sampler {
const int spp;
std::... | #ifndef STRATIFIED_SAMPLER_H
#define STRATIFIED_SAMPLER_H
#include <random>
#include <memory>
#include <array>
#include <vector>
#include "sampler.h"
/*
* A stratified sampler, generates multipled jittered
* samples per pixel in its sample region
*/
class StratifiedSampler : public Sampler {
const int spp;
std::... | Fix stratified sampler to use minstd_rand | Fix stratified sampler to use minstd_rand
still unsure why mt19937 suddenly started segfaulting
| C | mit | Twinklebear/tray,Twinklebear/tray |
d536ccd55ebdcded7dddc53f93022b0366d6739c | OrbitGl/ThreadStateTrack.h | OrbitGl/ThreadStateTrack.h | // Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ORBIT_GL_THREAD_STATE_TRACK_H_
#define ORBIT_GL_THREAD_STATE_TRACK_H_
#include "Track.h"
// This is a track dedicated to displaying thread stat... | // Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ORBIT_GL_THREAD_STATE_TRACK_H_
#define ORBIT_GL_THREAD_STATE_TRACK_H_
#include "Track.h"
// This is a track dedicated to displaying thread stat... | Fix crash when dragging a thread state track | Fix crash when dragging a thread state track
Only when you have enabled track_ordering_feature, this class inherit
OnDrag from Track and crashed.
Related to b/173093860.
| C | bsd-2-clause | google/orbit,google/orbit,google/orbit,google/orbit |
27ce98404fc179d292bfc53f1c6b937b5b988461 | oak/server/logging_channel.h | oak/server/logging_channel.h | /*
* Copyright 2019 The Project Oak Authors
*
* 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 o... | /*
* Copyright 2019 The Project Oak Authors
*
* 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 o... | Fix return value for logging channel write | Fix return value for logging channel write
| C | apache-2.0 | project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak |
7883bff6a155c116fd60000f10a2d4dd4c06b411 | src/Pythia/stdafx.h | src/Pythia/stdafx.h | #pragma once
#ifdef _WIN32
#include <SDKDDKVer.h>
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
#define tstring std::wstring
#define WidenHelper(x) L##x
#define LITERAL(x) WidenHelper(x)
#else // ifdef _WIN32
#define tstri... | #pragma once
#ifdef _WIN32
#include <SDKDDKVer.h>
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
#define tstring std::wstring
#define WidenHelper(x) L##x
#define LITERAL(x) WidenHelper(x)
#else // ifdef _WIN32
#define tstri... | Fix the spdlog issue on 32bit systems: Failed getting file size from fd | Fix the spdlog issue on 32bit systems: Failed getting file size from fd
| C | mit | overfl0/Pythia,overfl0/Pythia,overfl0/Pythia,overfl0/Pythia |
b010d64f92a5b1c17aff474a6a7fcc872cb747d5 | test/CFrontend/2005-12-04-AttributeUsed.c | test/CFrontend/2005-12-04-AttributeUsed.c | // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
int X __attribute__((used));
int Y;
void foo() __attribute__((used));
void foo() {}
| // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
int X __attribute__((used));
int Y;
__attribute__((used)) void foo() {}
| Adjust this to the wonky syntax that GCC expects. | Adjust this to the wonky syntax that GCC expects.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@30670 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Dri... |
839be02ee16872973c68acfe3fad9e51c57c8c5e | src/backend/nodes/nodes.c | src/backend/nodes/nodes.c | /*-------------------------------------------------------------------------
*
* nodes.c
* support code for nodes (now that we get rid of the home-brew
* inheritance system, our support code for nodes get much simpler)
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyri... | /*-------------------------------------------------------------------------
*
* nodes.c
* support code for nodes (now that we have removed the home-brew
* inheritance system, our support code for nodes is much simpler)
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyr... | Fix grammatical error in comment. | Fix grammatical error in comment.
| C | apache-2.0 | lintzc/gpdb,Quikling/gpdb,ovr/postgres-xl,greenplum-db/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,cjcjameson/gpdb,Chibin/gpdb,atris/gpdb,tpostgres-projects/tPostgres,postmind-net/postgres-xl,janebeckman/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,randomtask1155/gpdb,Chibin/gpdb,xueg... |
76665d06735e1b15af877bcaceae645d77488b55 | Source/Library/Object/HCThrowsException.h | Source/Library/Object/HCThrowsException.h | // OCHamcrest by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 hamcrest.org. See LICENSE.txt
#import <OCHamcrest/HCDiagnosingMatcher.h>
/*!
* @abstract Does executing a block throw an exception which satisfies a nested matcher?
*/
@interface HCThrowsException : HCDiagnosingMatcher
- (id)initWithEx... | // OCHamcrest by Jon Reid, http://qualitycoding.org/about/
// Copyright 2015 hamcrest.org. See LICENSE.txt
#import <OCHamcrest/HCDiagnosingMatcher.h>
/*!
* @abstract Does executing a block throw an exception which satisfies a nested matcher?
*/
@interface HCThrowsException : HCDiagnosingMatcher
- (id)initWithEx... | Improve throwsException example to use hasProperty | Improve throwsException example to use hasProperty
| C | bsd-2-clause | hamcrest/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest |
2658baee614225bb6cc32a89843cbf455c1a5799 | libyaul/common/internal_exception_show.c | libyaul/common/internal_exception_show.c | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <stdlib.h>
#include <vdp1.h>
#include <vdp2.h>
#include <vdp2/tvmd.h>
#include <vdp2/vram.h>
#include <cons.h>
void __noreturn
internal_exception_show(const char *buffer)
{
/* Reset... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#include <stdlib.h>
#include <vdp1.h>
#include <vdp2.h>
#include <vdp2/tvmd.h>
#include <vdp2/vram.h>
#include <cons.h>
void __noreturn
internal_exception_show(const char *buffer)
{
/* Reset... | Hide VDP1 even if FB hasn't been erased and changed | Hide VDP1 even if FB hasn't been erased and changed
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
ccf5eaf49f000109d2d479156913154fd68c37b2 | polygon.h | polygon.h | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Function wich create a point with a specified abscisse and... | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Function wich create a point with a specified abscisse and ... | Add some spaces and enters | Add some spaces and enters
| C | mit | UTBroM/GeometricLib |
cdcea87381a6ff1711d039dec46ec01a919acb8e | test/CodeGen/union-init2.c | test/CodeGen/union-init2.c | // RUN: clang-cc -emit-llvm %s -o - | not grep ptrtoint
// Make sure we generate something sane instead of a ptrtoint
union x {long long b;union x* a;} r = {.a = &r};
| // RUN: clang-cc -emit-llvm %s -o - -triple i686-pc-linux-gnu | grep "bitcast (%0\* @r to %union.x\*), \[4 x i8\] zeroinitializer"
// Make sure we generate something sane instead of a ptrtoint
union x {long long b;union x* a;} r = {.a = &r};
| Make test a bit more precise. | Make test a bit more precise.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79073 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
9d58853f5797b062e68509c2afcfe5375309d145 | Classes/GTDiffFile.h | Classes/GTDiffFile.h | //
// GTDiffFile.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 30/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
// Flags which may be set on the file.
//
// See diff.h for individual documentation.
typedef enum : git_diff_file_flag_t {
GTDiffFileFlagValidOID = G... | //
// GTDiffFile.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 30/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
// Flags which may be set on the file.
//
// See diff.h for individual documentation.
typedef enum : git_diff_flag_t {
GTDiffFileFlagValidOID = GIT_DI... | Remove some diff file flags | Remove some diff file flags
| C | mit | libgit2/objective-git,TOMalley104/objective-git,alehed/objective-git,pietbrauer/objective-git,nerdishbynature/objective-git,c9s/objective-git,misterfifths/objective-git,dleehr/objective-git,Acidburn0zzz/objective-git,phatblat/objective-git,dleehr/objective-git,blackpixel/objective-git,slavikus/objective-git,slavikus/ob... |
07630a37beefe8e4401c602f04e3e5bcbba50b31 | include/asm-powerpc/code-patching.h | include/asm-powerpc/code-patching.h | #ifndef _ASM_POWERPC_CODE_PATCHING_H
#define _ASM_POWERPC_CODE_PATCHING_H
/*
* Copyright 2008, Michael Ellerman, IBM Corporation.
*
* 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 v... | #ifndef _ASM_POWERPC_CODE_PATCHING_H
#define _ASM_POWERPC_CODE_PATCHING_H
/*
* Copyright 2008, Michael Ellerman, IBM Corporation.
*
* 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 v... | Add ppc_function_entry() which gets the entry point for a function | powerpc: Add ppc_function_entry() which gets the entry point for a function
Because function pointers point to different things on 32-bit vs 64-bit,
add a macro that deals with dereferencing the OPD on 64-bit. The soon to
be merged ftrace wants this, as well as other code I am working on.
Signed-off-by: Michael Elle... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
b2a3bd280e31b194b9cff3e44915f6344e959bef | moses/TranslationModel/UG/generic/threading/ug_ref_counter.h | moses/TranslationModel/UG/generic/threading/ug_ref_counter.h | #include "ug_thread_safe_counter.h"
#pragma once
// obsolete once intrusive_ref_counter is available everywhere
namespace Moses {
class reference_counter
{
public:
friend void intrusive_ptr_add_ref(reference_counter* p)
{
if (p) ++p->m_refcount;
}
friend void intrusive_ptr_release(referenc... | #include "ug_thread_safe_counter.h"
#pragma once
// obsolete once intrusive_ref_counter is available everywhere
namespace Moses {
class reference_counter
{
public:
friend void intrusive_ptr_add_ref(reference_counter const* p)
{
if (p) ++p->m_refcount;
}
friend void intrusive_ptr_release(re... | Allow intrusive pointers to const objects. | Allow intrusive pointers to const objects.
| C | lgpl-2.1 | pjwilliams/mosesdecoder,KonceptGeek/mosesdecoder,tofula/mosesdecoder,pjwilliams/mosesdecoder,pjwilliams/mosesdecoder,KonceptGeek/mosesdecoder,tofula/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,KonceptGeek/mosesdecoder,moses-smt/mosesdecoder,pjwilliams/mosesdecoder,alvations/mosesdecoder,hychyc07/mosesdec... |
dbb8a82f627267067dee720b38bdc77a7c83bcc1 | src/tests/log_mock.c | src/tests/log_mock.c | #include "log.h"
#include <stdio.h>
#include <stdarg.h>
void debug(const char* format, ...) {
#ifdef __DEBUG__
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
#endif // __DEBUG__
}
void initializeLogging() { }
| #include "log.h"
#include <stdio.h>
#include <stdarg.h>
void debugNoNewline(const char* format, ...) {
#ifdef __DEBUG__
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
#endif // __DEBUG__
}
void initializeLogging() { }
| Rename test suite version of debug to match the header. | Rename test suite version of debug to match the header.
| C | bsd-3-clause | mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware |
7a02c1174d819be374c24fd8b406ff3d66c9bbab | src/util.h | src/util.h | #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ALLOC_N(type, 1)
#define ALLOC_N(type, n) ((type*) xmalloc(sizeof(type) * (n)))
void *xmalloc(size_t);
char *hextoa(const char *, int);
#define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0)
#endif /* UTIL_H */
| #ifndef UTIL_H
#define UTIL_H
/*** Utility functions ***/
#define ALLOC(type) ALLOC_N(type, 1)
#define ALLOC_N(type, n) ((type*) xmalloc(sizeof(type) * (n)))
#define MEMCPY(dst, src, type) MEMCPY_N(dst, src, type, 1)
#define MEMCPY_N(dst, src, type, n) (memcpy((dst), (src), sizeof(type) * (n)))
void *xmalloc(size_t);... | Add MEMCPY and MEMCPY_N macros | Add MEMCPY and MEMCPY_N macros
| C | apache-2.0 | mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify |
cb694769f0d0c1f6fb8c9dc806c0a68da1056055 | arch/powerpc/include/asm/sparsemem.h | arch/powerpc/include/asm/sparsemem.h | #ifndef _ASM_POWERPC_SPARSEMEM_H
#define _ASM_POWERPC_SPARSEMEM_H 1
#ifdef __KERNEL__
#ifdef CONFIG_SPARSEMEM
/*
* SECTION_SIZE_BITS 2^N: how big each section will be
* MAX_PHYSADDR_BITS 2^N: how much physical address space we have
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
*/
#define SEC... | #ifndef _ASM_POWERPC_SPARSEMEM_H
#define _ASM_POWERPC_SPARSEMEM_H 1
#ifdef __KERNEL__
#ifdef CONFIG_SPARSEMEM
/*
* SECTION_SIZE_BITS 2^N: how big each section will be
* MAX_PHYSADDR_BITS 2^N: how much physical address space we have
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
*/
#define SEC... | Revert "powerpc/mm: Bump SECTION_SIZE_BITS from 16MB to 256MB" | Revert "powerpc/mm: Bump SECTION_SIZE_BITS from 16MB to 256MB"
This reverts commit 7545ba6f82924d4523f8f8a2baf2e517a750265d.
It breaks eHEA among other issues
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program... |
933211fa8d30fba9c689b28f30e0aa353341c345 | include/Information/GameModeWidget.h | include/Information/GameModeWidget.h | #ifndef GAMEMODEWIDGET_H
#define GAMEMODEWIDGET_H
#include <QtWidgets>
#include "PlayerActivatedWidget.h"
#include "PlayerControlModeWidget.h"
#include "Game\Player.h"
#include "Game\State.h"
class GameModeWidget : public QWidget
{
public:
GameModeWidget(QWidget * parent = 0);
~GameModeWidget();
Player currentP... | #ifndef GAMEMODEWIDGET_H
#define GAMEMODEWIDGET_H
#include <QtWidgets>
#include "PlayerActivatedWidget.h"
#include "PlayerControlModeWidget.h"
#include "Game/Player.h"
#include "Game/State.h"
class GameModeWidget : public QWidget
{
public:
GameModeWidget(QWidget * parent = 0);
~GameModeWidget();
Player currentP... | Update relative path of includes | Update relative path of includes
| C | mit | Sytten/Scorch,Sytten/Scorch |
c203f03fc14b048592445ee37620fa5c366b2251 | views/view_constants.h | views/view_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_VIEW_CONSTANTS_H_
#define VIEWS_VIEW_CONSTANTS_H_
#pragma once
#include "views/views_export.h"
namespace views {
// Size (width or he... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_VIEW_CONSTANTS_H_
#define VIEWS_VIEW_CONSTANTS_H_
#pragma once
#include "views/views_export.h"
namespace views {
// Size (width or he... | Add VIEWS_EXPORT to autoscroll constants. | Add VIEWS_EXPORT to autoscroll constants.
Referenced by browser/bookmarks/bookmark_drop_info.cc, fixes link when in
component and incremental linking on Windows.
BUG=
TEST=Links in Component build mode
Review URL: http://codereview.chromium.org/7741017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@98281 00... | C | bsd-3-clause | junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,robclark/chromium,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,keishi/chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chrom... |
f819adcbf7fac24094690db9f46c44727b4c1f81 | program/driver/us100.c | program/driver/us100.c | /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
Ultrasonic_t Ultrasonic = {
.lenHigh = 0,
.lenLow = 0,
.d = 0
};
/*====================... | /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultr... | Make US100 sensor get distance successfully. | Make US100 sensor get distance successfully.
| C | mit | zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor |
b5514486424d446e30afd645827c79101e28d096 | src/lib/convenienceMap/mapPutIndividualContextEntityAttribute.h | src/lib/convenienceMap/mapPutIndividualContextEntityAttribute.h | #ifndef MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H
#define MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H
/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the t... | #ifndef MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H
#define MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H
/*
*
* Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the t... | Change date of copyright notice | Change date of copyright notice | C | agpl-3.0 | jmcanterafonseca/fiware-orion,Fiware/data.Orion,gavioto/fiware-orion,guerrerocarlos/fiware-orion,Fiware/data.Orion,Fiware/context.Orion,Fiware/data.Orion,fiwareulpgcmirror/fiware-orion,pacificIT/fiware-orion,gavioto/fiware-orion,telefonicaid/fiware-orion,McMutton/fiware-orion,Fiware/context.Orion,yalp/fiware-orion,McMu... |
232073b0d97756ee4b3961c99050f4e20aa29a44 | src/gallium/auxiliary/target-helpers/inline_debug_helper.h | src/gallium/auxiliary/target-helpers/inline_debug_helper.h |
#ifndef INLINE_DEBUG_HELPER_H
#define INLINE_DEBUG_HELPER_H
#include "pipe/p_compiler.h"
#include "util/u_debug.h"
/* Helper function to wrap a screen with
* one or more debug driver: rbug, trace.
*/
#ifdef GALLIUM_TRACE
#include "trace/tr_public.h"
#endif
#ifdef GALLIUM_RBUG
#include "rbug/rbug_public.h"
#endi... |
#ifndef INLINE_DEBUG_HELPER_H
#define INLINE_DEBUG_HELPER_H
#include "pipe/p_compiler.h"
#include "util/u_debug.h"
/* Helper function to wrap a screen with
* one or more debug driver: rbug, trace.
*/
#ifdef DEBUG
#ifdef GALLIUM_TRACE
#include "trace/tr_public.h"
#endif
#ifdef GALLIUM_RBUG
#include "rbug/rbug_p... | Enable debug helpers only on debug builds. | target-helpers: Enable debug helpers only on debug builds.
Some of these helpers use debug_get_option, which works also on releases.
| C | mit | mcanthony/glsl-optimizer,zz85/glsl-optimizer,metora/MesaGLSLCompiler,dellis1972/glsl-optimizer,zeux/glsl-optimizer,mcanthony/glsl-optimizer,dellis1972/glsl-optimizer,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,jbarczak/glsl-optimizer,dellis1972/glsl-optimizer,benaadams/glsl-optimizer,mcanthony/glsl-optimizer,benaad... |
305cbdf45f2e9414d283abb7c7f4adcf1de546fc | samplecode/GMSampleView.h | samplecode/GMSampleView.h |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM ... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GMSampleView_DEFINED
#define GMSampleView_DEFINED
#include "SampleCode.h"
#include "gm.h"
class GMSampleView : public SampleView {
private:
typedef skiagm::GM ... | Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows. | Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
| C | bsd-3-clause | csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia |
6647f18c6da873cfda4320efff02bf1aa28c2888 | projects/PathosEngine/src/pathos/mesh/static_mesh_component.h | projects/PathosEngine/src/pathos/mesh/static_mesh_component.h | #pragma once
#include "pathos/actor/scene_component.h"
#include "badger/types/matrix_types.h"
namespace pathos {
class Mesh;
class MeshGeometry;
class Material;
// #todo-renderer: Further decompose
struct StaticMeshProxy : public SceneComponentProxy {
uint32 doubleSided : 1;
uint32 renderInternal : 1;
ma... | #pragma once
#include "pathos/actor/scene_component.h"
#include "badger/types/matrix_types.h"
namespace pathos {
class Mesh;
class MeshGeometry;
class Material;
// #todo-renderer: Further decompose
struct StaticMeshProxy : public SceneComponentProxy {
uint32 doubleSided : 1;
uint32 renderInternal : 1;
ma... | Set default value of StaticMeshComponent::mesh to nullptr | Set default value of StaticMeshComponent::mesh to nullptr
| C | mit | codeonwort/pathosengine,codeonwort/pathosengine,codeonwort/pathosengine |
2f92cee416aef4684471c539e370772824ae7854 | tests/tgen-mstring.c | tests/tgen-mstring.c | /*
* Copyright (c) 2017-2022, Patrick Pelissier
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* + Redistributions of source code must retain the above copyright
* notice, this list of cond... | /*
* Copyright (c) 2017-2022, Patrick Pelissier
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* + Redistributions of source code must retain the above copyright
* notice, this list of cond... | Update code for generated asm analysis | Update code for generated asm analysis
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
d0d9cd60fdfb44d71e61dca4737fc6a2c70a266e | WebSocketTransport/WebSocketTransport.h | WebSocketTransport/WebSocketTransport.h | //
// WebSocketTransport.h
// WebSocketTransport
//
// Created by Paul Young on 27/08/2014.
// Copyright (c) 2014 CocoaFlow. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for WebSocketTransport.
FOUNDATION_EXPORT double WebSocketTransportVersionNumber;
//! Project version s... | //
// WebSocketTransport.h
// WebSocketTransport
//
// Created by Paul Young on 27/08/2014.
// Copyright (c) 2014 CocoaFlow. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for WebSocketTransport.
FOUNDATION_EXPORT double WebSocketTransportVersionNumber;
//! Project version s... | Make BLWebSocketsServer available in Swift. | Make BLWebSocketsServer available in Swift.
| C | apache-2.0 | CocoaFlow/WebSocketTransport |
f48d179fc86c5fc1883738a9559bfb2f3c9995ac | ZDetailKit/ZDetailKit.h | ZDetailKit/ZDetailKit.h | //
// ZDetailKit.h
//
// Created by Lukas Zeller on 15.02.13.
// Copyright (c) 2013 plan44.ch. All rights reserved.
//
// common
#import "ZDetailEditing.h"
#import "ZDBGMacros.h"
// ZUtils
#import "ZCustomI8n.h"
// controllers
#import "ZDetailTableViewController.h"
// cells
#import "ZButtonCell.h"
#import "ZSwi... | //
// ZDetailKit.h
//
// Created by Lukas Zeller on 15.02.13.
// Copyright (c) 2013 plan44.ch. All rights reserved.
//
// common
#import "ZDetailEditing.h"
#import "ZDBGMacros.h"
// ZUtils
#import "ZCustomI8n.h"
// controllers
#import "ZDetailTableViewController.h"
// cells
#import "ZButtonCell.h"
#import "ZSwi... | Comment improvement: explain consequences of using ZLocationCell | Comment improvement: explain consequences of using ZLocationCell | C | mit | plan44/zdetailkit |
1aafca50ae3f5050c05567b76d028e30711b2ba7 | project_config/lmic_project_config.h | project_config/lmic_project_config.h | // project-specific definitions for otaa sensor
//#define CFG_eu868 1
#define CFG_us915 1
//#define CFG_au921 1
//#define CFG_as923 1
//#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS
| // project-specific definitions
//#define CFG_eu868 1
#define CFG_us915 1
//#define CFG_au921 1
//#define CFG_as923 1
// #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP /* for as923-JP */
//#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS
| Add example of how to select Japan country | Add example of how to select Japan country
| C | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
892c39d588e9a16609b67177e912ac1564317838 | libk/UVSE/screenTest.c | libk/UVSE/screenTest.c | #include "../libk.h"
void screenTest(void)
{
int rows, cols; rows = glob.rows; cols = glob.cols;
printf("%s", CursorToTopLeft ClearScreen );fflush(stdout);
printf("Top of Screen: rows = %d cols = %d\n\r", rows,cols);fflush(stdout);
int count;
for (count = 2; count < rows; count ++)
{prin... | #include "../libk.h"
// function screenTest
void screenTest(void)
{
// retrieve Screen rows and columns from struct glob
int rows, cols; rows = glob.rows; cols = glob.cols;
// Move Screen Cursor to Top Left, Then Clear Screen
printf("%s", CursorToTopLeft ClearScreen );fflush(stdout);
// Print the Screen He... | Add comments suit for formatting with idiom | Add comments suit for formatting with idiom
| C | bsd-2-clause | eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood |
0b062eb9d2908410674c2751bbcee5b9df464732 | src/sensors/lmsensor.h | src/sensors/lmsensor.h |
#ifndef LMSENSOR_H
#define LMSENSOR_H
#include <K3Process>
#include <K3ProcIO>
#include "sensor.h"
/**
*
* Hans Karlsson
**/
class SensorSensor : public Sensor
{
Q_OBJECT
public:
SensorSensor(int interval, char tempUnit);
~SensorSensor();
void update();
private:
K3ShellProcess ksp;
QS... |
#ifndef LMSENSOR_H
#define LMSENSOR_H
#include <K3Process>
#include <K3ProcIO>
#include "sensor.h"
/**
*
* Hans Karlsson
**/
class SensorSensor : public Sensor
{
Q_OBJECT
public:
SensorSensor(int interval, char tempUnit);
~SensorSensor();
void update();
private:
K3ShellProcess ksp;
QS... | Fix knode superkaramba compilation on NetBSD. Patch by Mark Davies. BUG: 154730 | Fix knode superkaramba compilation on NetBSD.
Patch by Mark Davies.
BUG: 154730
svn path=/trunk/KDE/kdeutils/superkaramba/; revision=753733
| C | lgpl-2.1 | KDE/superkaramba,KDE/superkaramba,KDE/superkaramba |
bdb2ac5ba922fe59c0aa5326b2a667ee9be2a8f0 | ir/be/test/fehler111.c | ir/be/test/fehler111.c | int x = 0;
int main(int argc, char *argv[]) {
int y;
char *p = &x;
*p = 23;
y = x;
x = 35;
return y;
}
| int x = 0;
int main(int argc, char *argv[]) {
int y;
char *p = &x;
*p = 23;
y = x;
x = 35;
return y != 23;
}
| Fix return value of main(). | Fix return value of main().
[r19359]
| C | lgpl-2.1 | killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,8l/libfirm,davidgiven/libfirm,libfirm/libfirm,MatzeB/libfirm,killbug2004/libfirm,davidgiven/libfirm,jonashaag/libfirm,libfirm/libfirm,jonashaag/libfirm,jonashaag/libfirm,jonashaag/libfirm,killbug2004/libfirm,8l/libfirm,8l/libfirm,MatzeB/libfirm,MatzeB/libfirm,jonashaag/... |
9aadb4378eb007d7116ffea50848f18f0b06a6da | test/TestPrologue.h | test/TestPrologue.h | #pragma once
#include <TestFramework/TestFramework.h>
#include <cal3d/streamops.h>
#include <cal3d/vector4.h>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/scoped_array.hpp>
using boost::scoped_ptr;
using boost::shared_ptr;
using boost::lexical_cast;... | #pragma once
// The old version of clang currently used on the Mac builder requires some
// operator<<() declarations to precede their use in the UnitTest++
// templates/macros. -- jlee - 2014-11-21
#include <cal3d/streamops.h>
#include <TestFramework/TestFramework.h>
#include <cal3d/vector4.h>
#include <boost/shared... | Rearrange output operator declarations in tests to make old OSX clang happy | cal3d: Rearrange output operator declarations in tests to make old OSX clang happy
Maybe fixing Mac buildbot.
git-svn-id: febc42a3fd39fb08e5ae2b2182bc5ab0a583559c@207440 07c76cb3-cb09-0410-85de-c24d39f1912e
| C | lgpl-2.1 | imvu/cal3d,imvu/cal3d,imvu/cal3d,imvu/cal3d |
b837d1dfefc4ec78d94ae211cc2c29efb67e18e6 | Kirin/core/ios/KirinKit/KirinKit/Services/NetworkingBackend.h | Kirin/core/ios/KirinKit/KirinKit/Services/NetworkingBackend.h | /*
Copyright 2011 Future Platforms
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 i... | /*
Copyright 2011 Future Platforms
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 i... | Make Networking run on the main thread. | Make Networking run on the main thread.
| C | apache-2.0 | futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin |
a1e0a43a37dd80462bbfe054629e88958506e8cb | EYMaskedTextField/EYMaskedTextField.h | EYMaskedTextField/EYMaskedTextField.h | //
// EYMaskedTextField.h
//
//
// Created by Evgeniy Yurtaev on 10/09/15.
// Copyright (c) 2015 Evgeniy Yurtaev. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol EYMaskedTextFieldDelegate <UITextFieldDelegate>
@optional
- (BOOL)textField:(UITextField *)textField shouldChangeUnformattedText:(NSString *)u... | //
// EYMaskedTextField.h
//
//
// Created by Evgeniy Yurtaev on 10/09/15.
// Copyright (c) 2015 Evgeniy Yurtaev. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol EYMaskedTextFieldDelegate <UITextFieldDelegate>
@optional
- (BOOL)textField:(nonnull UITextField *)textField shouldCh... | Add `nonnull` and `nullable` attributes | Add `nonnull` and `nullable` attributes
| C | mit | seaburg/EYMaskedTextField |
ce2aa429b587714faaec43f13b345a8be80765d5 | dev/multiple_renderer_separate_schema/renderman/RendermanTypes.h | dev/multiple_renderer_separate_schema/renderman/RendermanTypes.h | #pragma once
#include <ri.h>
#include <vector>
#include "Types.h"
typedef std::vector<RtInt> RtIntContainer;
typedef std::vector<RtFloat> RtFloatContainer;
/*!
* \remark Alembic does not support "holes" but to be safe, we are targeting
* RiPointsGeneralPolygons to future proof our code
*
* RtVoid... | #pragma once
#include <ri.h>
#include <vector>
#include "Types.h"
typedef std::vector<RtInt> RtIntContainer;
typedef std::vector<RtFloat> RtFloatContainer;
/*!
* \remark Alembic does not support "holes" but to be safe, we are targeting
* RiPointsGeneralPolygons to future proof our code
*
* RtVoid... | Remove _constantwidth as there are other was to determine that via the length of the _width_data vector | Remove _constantwidth as there are other was to determine that via
the length of the _width_data vector
| C | apache-2.0 | nyue/SegmentedInterpolativeMotionBlurAlembic,nyue/SegmentedInterpolativeMotionBlurAlembic |
fc75c4c360b754efbe202c8f73327a2ddf7676f5 | src/plugins/crypto/compile_gcrypt.c | src/plugins/crypto/compile_gcrypt.c | /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <gcrypt.h>
int main (void)
{
gcry_cipher_hd_t elektraCryptoHandle;
return 0;
}
| /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <gcrypt.h>
gcry_cipher_hd_t nothing ()
{
gcry_cipher_hd_t elektraCryptoHandle = NULL;
return elektraCryptoHandle;
}
int main... | Fix detection of lib if we use `-Werror` | Gcrypt: Fix detection of lib if we use `-Werror`
Before this update detecting Libgcrypt would fail, if we treated
warnings as errors (`-Werror`). The cause of this problem was that
compiling `compile_gcrypt.cpp` produced a warning about an unused
variable.
| C | bsd-3-clause | mpranj/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,e1528532/libelektra,mpranj/libelektra,e1528532/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,e1528532/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,Elektra... |
2f2e68df8c5655a47efad28f180070e8e87760b7 | jre_emul/Classes/java_lang_Thread.h | jre_emul/Classes/java_lang_Thread.h | /*
* 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 u... | /*
* 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 u... | Fix unintentional tentative definitions that result in duplicate symbol definitions when building with -fno-common | Fix unintentional tentative definitions that result in duplicate symbol definitions when building with -fno-common
This primarily consists of adding missing `extern`s in front of declarations of global variables, and `typedef` in front of some `NS_ENUM`s.
-fno-common is being turned on by default with Clang 11. This ... | C | apache-2.0 | lukhnos/j2objc,google/j2objc,lukhnos/j2objc,mirego/j2objc,groschovskiy/j2objc,lukhnos/j2objc,lukhnos/j2objc,mirego/j2objc,groschovskiy/j2objc,google/j2objc,groschovskiy/j2objc,mirego/j2objc,mirego/j2objc,groschovskiy/j2objc,lukhnos/j2objc,mirego/j2objc,google/j2objc,mirego/j2objc,lukhnos/j2objc,groschovskiy/j2objc,gros... |
7217135f6a8777fbdeb0ffe08abf5ccbd5b13efc | WebApiClient/Code/WebApiClient-Core.h | WebApiClient/Code/WebApiClient-Core.h | //
// WebApiClient-Core.h
// WebApiClient
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import <WebApiClient/FileWebApiResource.h>
#import <WebApiClient/NSDictionary+WebApiClient.h>
#import <WebApiClient/WebApiAuthorizati... | //
// WebApiClient-Core.h
// WebApiClient
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import <WebApiClient/FileWebApiResource.h>
#import <WebApiClient/NSDictionary+WebApiClient.h>
#import <WebApiClient/WebApiAuthorizati... | Add new file to umbrella import. | Add new file to umbrella import.
| C | apache-2.0 | Blue-Rocket/WebApiClient,Blue-Rocket/WebApiClient |
59764c6d3621423c9d4e136e99a69078a79ca6f5 | numpy/distutils/checks/cpu_popcnt.c | numpy/distutils/checks/cpu_popcnt.c | #ifdef _MSC_VER
#include <nmmintrin.h>
#else
#include <popcntintrin.h>
#endif
int main(void)
{
long long a = 0;
int b;
#ifdef _MSC_VER
#ifdef _M_X64
a = _mm_popcnt_u64(1);
#endif
b = _mm_popcnt_u32(1);
#else
#ifdef __x86_64__
a = __builtin_popcountll(1);
#endif
b = __bui... | #ifdef _MSC_VER
#include <nmmintrin.h>
#else
#include <popcntintrin.h>
#endif
#include <stdlib.h>
int main(void)
{
long long a = 0;
int b;
a = random();
b = random();
#ifdef _MSC_VER
#ifdef _M_X64
a = _mm_popcnt_u64(a);
#endif
b = _mm_popcnt_u32(b);
#else
#ifdef... | Fix compile-time test of POPCNT | Fix compile-time test of POPCNT
The compile-time test of POPCNT, cpu_popcnt.c produced code that would
execute without error even if the machine didn't support the popcnt
instruction. This patch attempts to use popcnt on random numbers so the
compiler can't substitute the answer at compile time.
| C | bsd-3-clause | seberg/numpy,anntzer/numpy,simongibbons/numpy,charris/numpy,mattip/numpy,mattip/numpy,mhvk/numpy,jakirkham/numpy,anntzer/numpy,numpy/numpy,rgommers/numpy,mhvk/numpy,seberg/numpy,pdebuyl/numpy,pdebuyl/numpy,endolith/numpy,mhvk/numpy,rgommers/numpy,mhvk/numpy,endolith/numpy,charris/numpy,anntzer/numpy,jakirkham/numpy,rgo... |
da5a68aff87e0152a5058c070b634eecaddf1a27 | 3RVX/3RVX.h | 3RVX/3RVX.h | #pragma once
#define CLASS_3RVX L"3RVXv3"
static const UINT WM_3RVX_CONTROL
= RegisterWindowMessage(L"WM_3RVX_CONTROL");
static const UINT WM_3RVX_SETTINGSCTRL
= RegisterWindowMessage(L"WM_3RVX_SETTINGSCTRL");
#define MSG_LOAD WM_APP + 100
#define MSG_SETTINGS WM_APP + 101
#define MSG_EXIT WM_APP + 1... | #pragma once
#define CLASS_3RVX L"3RVXv3"
#define CLASS_3RVX_SETTINGS L"3RVX-Settings"
static const UINT WM_3RVX_CONTROL
= RegisterWindowMessage(L"WM_3RVX_CONTROL");
static const UINT WM_3RVX_SETTINGSCTRL
= RegisterWindowMessage(L"WM_3RVX_SETTINGSCTRL");
#define MSG_LOAD WM_APP + 100
#define MSG_SETTINGS... | Add a class for the settings dialog | Add a class for the settings dialog
| C | bsd-2-clause | Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX |
18a924e2f2c783dd18c1f8a47d8be7a4dbc7eae4 | modules/audio_coding/codecs/ilbc/nearest_neighbor.c | modules/audio_coding/codecs/ilbc/nearest_neighbor.c | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Fix ChromeOS build (C99 break) | Fix ChromeOS build (C99 break)
BUG=5016
TBR=henrik.lundin@webrtc.org
Review URL: https://codereview.webrtc.org/1354163002
Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9992}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 2803a40fe335a29f9584911d1a528... | C | bsd-3-clause | jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,sippet/webrtc,sippet/webrtc,aleonliao/webrtc-trunk,sippe... |
1a05b79f5f21097de4d3d587cca3aed790c0e434 | Include/KAI/Platform/GameController.h | Include/KAI/Platform/GameController.h |
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif // SHATTER_PLATFORM_GAME_CONTROLLER_H
//EOF
|
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif
//EOF
| Add some color for console output | Add some color for console output
| C | mit | cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI |
7a276551f8349db28f32c36a68ab96c46c90517c | storage/src/vespa/storage/common/bucket_utils.h | storage/src/vespa/storage/common/bucket_utils.h | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketid.h>
#include <vespa/persistence/spi/bucket_limits.h>
#include <cassert>
namespace storage {
/**
* Returns the super bucket key of the given bucket id... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketid.h>
#include <vespa/persistence/spi/bucket_limits.h>
#include <cassert>
namespace storage {
/**
* Returns the super bucket key of the given bucket id... | Make function inline and noexcept. | Make function inline and noexcept.
| 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 |
ea0ceed76722247d83ec5ec1e6ae4b65a83a96b1 | tests/chardata.h | tests/chardata.h | /* chardata.h
*
*
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of chars, < 0 if not set */
XML_Char data[1024];
} CharData;
void CharData_Init(CharData... | /* chardata.h
Interface to some helper routines used to accumulate and check text
and attribute content.
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of c... | Add a small comment to tell what this is. | Add a small comment to tell what this is.
| C | mit | cgwalters/expat-git-mirror,cgwalters/expat-git-mirror,cgwalters/expat-git-mirror |
3f987b530fb7c6ef773d382bfa25e02064405f19 | direct/src/plugin/p3dReferenceCount.h | direct/src/plugin/p3dReferenceCount.h | // Filename: p3dReferenceCount.h
// Created by: drose (09Jul09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You s... | // Filename: p3dReferenceCount.h
// Created by: drose (09Jul09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You s... | Fix typo: "Pythong" -> "Python" ;-) | Fix typo: "Pythong" -> "Python" ;-)
| C | bsd-3-clause | brakhane/panda3d,hj3938/panda3d,ee08b397/panda3d,tobspr/panda3d,tobspr/panda3d,jjkoletar/panda3d,jjkoletar/panda3d,tobspr/panda3d,Wilee999/panda3d,hj3938/panda3d,Wilee999/panda3d,cc272309126/panda3d,brakhane/panda3d,cc272309126/panda3d,hj3938/panda3d,matthiascy/panda3d,cc272309126/panda3d,jjkoletar/panda3d,hj3938/panda... |
253ce6fd38f982fae6b0cf7f7bc4bf6fa36b8e9f | src/ast/node_counter.h | src/ast/node_counter.h | #pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node)
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
private:
s... | #pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node)
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
private:
s... | Fix printing bug in node-counter pass | Fix printing bug in node-counter pass
| C | apache-2.0 | iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace |
b4f4ec34d4632864e9b5738d2b47c272d22dd6e7 | 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 fr... | #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 fr... | Exclude data store from controller code coverage. | Exclude data store from controller code coverage.
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
ff862f1dea771feb087f9eade8534efa67f106f9 | SDLWrapper/__Plugin.h | SDLWrapper/__Plugin.h | #pragma once
#include "begin_code.h"
namespace _internal
{
/// This is just an empty class.
/// Most wrapper class regard this class as a friend class.
/// You can get/set raw pointers through this class.
class Plugin
{
public:
template<typename T>
decltype(auto) get(const T& obj)
{
return obj._get... | #pragma once
#include "begin_code.h"
namespace _internal
{
/// This is just an empty class.
/// Most wrapper class regard this class as a friend class.
/// You can get/set raw pointers through this class.
class Plugin
{
public:
template<typename T>
static decltype(auto) get(const T& obj)
{
return o... | Change Plugin methods to static | Change Plugin methods to static
| C | mit | Kiritow/MiniEngine,Kiritow/MiniEngine |
7c9ca7333acca5dab1e01fa282758038cf62b843 | tools/cgfx2json/stdafx.h | tools/cgfx2json/stdafx.h | // Copyright (c) 2009-2011 Turbulenz Limited
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#ifdef _MSC_VER
#pragma once
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or lat... | // Copyright (c) 2009-2011 Turbulenz Limited
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#ifdef _MSC_VER
#pragma once
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or lat... | Disable some compiler warnings on the boost library. | Disable some compiler warnings on the boost library.
| C | mit | sanyaade-teachings/turbulenz_engine,turbulenz/turbulenz_engine,changemypath/turbulenz_engine,turbulenz/turbulenz_engine,supriyantomaftuh/turbulenz_engine,tianyutingxy/turbulenz_engine,supriyantomaftuh/turbulenz_engine,turbulenz/turbulenz_engine,tianyutingxy/turbulenz_engine,sanyaade-teachings/turbulenz_engine,supriyant... |
c55c188e68975e57534a26cc75a823951169db08 | drivers/sensor/vl53l0x/vl53l0x_types.h | drivers/sensor/vl53l0x/vl53l0x_types.h | /* vl53l0x_types.h - Zephyr customization of ST vl53l0x library,
* basic type definition.
*/
/*
* Copyright (c) 2017 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
/* Zephyr provides st... | /* vl53l0x_types.h - Zephyr customization of ST vl53l0x library,
* basic type definition.
*/
/*
* Copyright (c) 2017 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
/* Zephyr provides st... | Remove unnecessary lib include check | drivers/sensor/vl53l0x: Remove unnecessary lib include check
vl53l0x driver is using an external library to build, located under:
ext/hal/st/lib/sensor/vl53l0x.
This library is expecting stdint.h lib to be available and to
secure this for driver library inclusion work, a stdint.h file
header check was done. This check... | C | apache-2.0 | galak/zephyr,ldts/zephyr,nashif/zephyr,Vudentz/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,Vudentz/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,GiulianoFranchet... |
0a5ffd4b837b57412f4943b9d62ce2d109315db3 | You-QueryEngine/api.h | You-QueryEngine/api.h | /// \file api.h
/// Defines the API for Query Engine.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_API_H_
#define YOU_QUERYENGINE_API_H_
#include <memory>
#include <boost/variant.hpp>
#include "task_model.h"
namespace You {
namespace QueryEngine {
/// A synthesized type for holding query responses
typ... | /// \file api.h
/// Defines the API for Query Engine.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_API_H_
#define YOU_QUERYENGINE_API_H_
#include <memory>
#include <boost/variant.hpp>
#include "task_model.h"
namespace You {
namespace QueryEngine {
/// A synthesized type for holding query responses
typ... | Add filter stub in header | Add filter stub in header
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
e6083cb7179c23930dc8aad4d05e05d410ed2dcd | alice4/software/libgl/event_service.h | alice4/software/libgl/event_service.h | #ifndef __EVENT_SERVICE_H__
#define __EVENT_SERVICE_H__
#include "basic_types.h"
int32_t events_winopen(char *title);
int32_t events_get_valuator(int32_t device);
void events_qdevice(int32_t device);
int32_t events_qread_start(int blocking);
int32_t events_qread_continue(int16_t *value);
void events_tie(int32_t butt... | #ifndef __EVENT_SERVICE_H__
#define __EVENT_SERVICE_H__
#include "basic_types.h"
int32_t events_winopen(char *title);
int32_t events_get_valuator(int32_t device);
void events_qdevice(int32_t device);
int32_t events_qread_start(int blocking);
int32_t events_qread_continue(int16_t *value);
void events_tie(int32_t butt... | Remove vi schmutz at EOF | Remove vi schmutz at EOF
| C | apache-2.0 | lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice |
dcdb76edb97d03a550f014c653c0cc1155fe9154 | src/runtime/encore/encore.c | src/runtime/encore/encore.c | #include <pony/pony.h>
#include "encore.h"
encore_actor_t *encore_create(encore_create_t *type)
{
return pony_create(type);
}
/// Allocate s bytes of memory, zeroed out
void *encore_alloc(size_t *s)
{
void *mem = pony_alloc(s);
memset(mem, 0, s);
return mem;
}
/// The starting point of all Encore programs
i... | #include <pony/pony.h>
#include "encore.h"
encore_actor_t *encore_create(encore_actor_t *type)
{
return pony_create(type);
}
/// Allocate s bytes of memory, zeroed out
void *encore_alloc(size_t *s)
{
void *mem = pony_alloc(s);
memset(mem, 0, s);
return mem;
}
/// The starting point of all Encore programs
in... | Fix also applied to corresponding C file | Fix also applied to corresponding C file
| C | bsd-3-clause | parapluu/encore,parapluu/encore,parapluu/encore |
d782e8b30435413a9f0eeffc6eb38980e4c03bda | src/rx5808-pro-diversity/receiver.h | src/rx5808-pro-diversity/receiver.h | #ifndef RECEIVER_H
#define RECEIVER_H
#include <stdint.h>
#include "settings.h"
#define RECEIVER_A 0
#ifdef USE_DIVERSITY
#define RECEIVER_B 1
#define RECEIVER_AUTO 2
#define DIVERSITY_AUTO 0
#define DIVERSITY_FORCE_A 1
#define DIVERSITY_FORCE_B 2
#endif
#define RECEIVER_LAST_DELAY 100
#define RECEIVER_... | #ifndef RECEIVER_H
#define RECEIVER_H
#include <stdint.h>
#include "settings.h"
#define RECEIVER_A 0
#ifdef USE_DIVERSITY
#define RECEIVER_B 1
#define RECEIVER_AUTO 2
#define DIVERSITY_AUTO 0
#define DIVERSITY_FORCE_A 1
#define DIVERSITY_FORCE_B 2
#endif
#define RECEIVER_LAST_DELAY 50
#define RECEIVER_L... | Tweak RSSI tracking speed/count for better graphs | Tweak RSSI tracking speed/count for better graphs
| C | mit | RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity |
3494e5de3a03d021845666f55340d35af44e3bfc | tests/asm-c-connect-1.c | tests/asm-c-connect-1.c | #include <stdio.h>
#if defined _WIN32 && !defined __TINYC__
# define U "_"
#else
# define U
#endif
const char str[] = "x1\n";
#ifdef __x86_64__
asm(U"x1: push %rbp; mov $"U"str, %rdi; call "U"printf; pop %rbp; ret");
#elif defined (__i386__)
asm(U"x1: push $"U"str; call "U"printf; pop %eax; ret");
#endif
int main(in... | #include <stdio.h>
#if defined _WIN32 && !defined __TINYC__
# define _ "_"
#else
# define _
#endif
static int x1_c(void)
{
printf("x1\n");
return 1;
}
asm(".text;"_"x1: call "_"x1_c; ret");
int main(int argc, char *argv[])
{
asm("call "_"x1");
asm("call "_"x2");
asm("call "_"x3");
return 0;
... | Adjust asm-c-connect testcase for Windows | Adjust asm-c-connect testcase for Windows
Calling conventions are different, let's use functions without
any arguments.
| C | lgpl-2.1 | mirror/tinycc,mirror/tinycc,avih/tinycc,mirror/tinycc,mingodad/tinycc,mingodad/tinycc,mingodad/tinycc,mirror/tinycc,avih/tinycc,avih/tinycc,avih/tinycc,mingodad/tinycc |
96430402b3226b71bcec689eb917ac1ec4bf49da | test/include/auxkernels/RadialAverageAux.h | test/include/auxkernels/RadialAverageAux.h | #pragma once
#include "AuxKernel.h"
#include "RadialAverage.h"
/**
* Auxkernel to output the averaged material value from RadialAverage
*/
class RadialAverageAux : public AuxKernel
{
public:
static InputParameters validParams();
RadialAverageAux(const InputParameters & parameters);
protected:
virtual Real co... | #pragma once
#include "AuxKernel.h"
#include "RadialAverage.h"
/**
* Auxkernel to output the averaged material value from RadialAverage
*/
class RadialAverageAux : public AuxKernel
{
public:
static InputParameters validParams();
RadialAverageAux(const InputParameters & parameters);
protected:
virtual Real co... | Update to add newline EOF | Update to add newline EOF | C | lgpl-2.1 | milljm/moose,milljm/moose,andrsd/moose,idaholab/moose,sapitts/moose,laagesen/moose,sapitts/moose,laagesen/moose,harterj/moose,idaholab/moose,milljm/moose,idaholab/moose,harterj/moose,sapitts/moose,andrsd/moose,sapitts/moose,dschwen/moose,laagesen/moose,milljm/moose,milljm/moose,dschwen/moose,harterj/moose,laagesen/moos... |
41ba36ca7801c77f55da0f0180d3a844e4286d80 | 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 Start... | // 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 Start... | Revert "Add support for the Python Stdout Log" | Revert "Add support for the Python Stdout Log"
This reverts commit 6dd58324c052cc893f6ce8f009903805185a71d1.
| C | mit | Orav/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,kitelightning/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePython,O... |
778092838a341f1b508b4f1013c9418902200725 | unittest/include_gunit.h | unittest/include_gunit.h | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | Add ARRAYSIZE macro for Google test environment | Add ARRAYSIZE macro for Google test environment
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,stweil/tesseract,UB-Mannheim/tesseract,... |
e22b221f8f12b2ec8348745d91836c236b206738 | lib/Target/PowerPC/PPCTargetStreamer.h | lib/Target/PowerPC/PPCTargetStreamer.h | //===-- PPCTargetStreamer.h - PPC Target Streamer --s-----------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix some Include What You Use warnings; other minor fixes (NFC). | [PowerPC] Fix some Include What You Use warnings; other minor fixes (NFC).
This is preparation to reduce MC headers dependencies.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@294368 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,app... |
39dbabe79a9f56fb068ce6e17f5b068eab4226ce | Source/YOChartImageKit/YOChartImageKit.h | Source/YOChartImageKit/YOChartImageKit.h | #import <UIKit/UIKit.h>
//! Project version number for YOChartImageKit.
FOUNDATION_EXPORT double YOChartImageKitVersionNumber;
//! Project version string for YOChartImageKit.
FOUNDATION_EXPORT const unsigned char YOChartImageKitVersionString[];
#import <YOChartImageKit/YODonutChartImage.h>
#import <YOChartImageKit/Y... | #import <UIKit/UIKit.h>
//! Project version number for YOChartImageKit.
FOUNDATION_EXPORT double YOChartImageKitVersionNumber;
//! Project version string for YOChartImageKit.
FOUNDATION_EXPORT const unsigned char YOChartImageKitVersionString[];
#import "YODonutChartImage.h"
#import "YOBarChartImage.h"
#import "YOLin... | Fix including framework headers' path | Fix including framework headers' path
| C | mit | yasuoza/YOChartImageKit,yasuoza/YOChartImageKit |
2a6f1ae84ba32a6ee78eb386412254de98f85d04 | chapter1/1-10/external-longest.c | chapter1/1-10/external-longest.c | //
// Created by matti on 16.9.2015.
//
#include <stdio.h>
#define MAXLINE 1000
int max;
char line[MAXLINE];
char longest[MAXLINE];
int getline(void);
void copy(void);
int main() {
int len;
extern int max;
extern char longest[];
max = 0;
while((len = getline()) > 0) {
if (len > max) {
... | //
// Created by matti on 16.9.2015.
//
#include <stdio.h>
#define MAXLINE 1000
int max;
char line[MAXLINE];
char longest[MAXLINE];
int getnewline(void);
void copy(void);
int main() {
int len;
extern int max;
extern char longest[];
max = 0;
while((len = getnewline()) > 0) {
if (len > m... | Add 1-10 external variable example | Add 1-10 external variable example
| C | mit | melonmanchan/k-and-r |
d1e8b49ce3fcca4707a5971c5f6c693e7cf6dea2 | glib/mypaint-brush.h | glib/mypaint-brush.h | #ifndef MYPAINTBRUSHGLIB_H
#define MYPAINTBRUSHGLIB_H
#include <glib-object.h>
#include <mypaint-config.h>
#if MYPAINT_CONFIG_USE_GLIB
#define MYPAINT_TYPE_BRUSH (mypaint_brush_get_type ())
#define MYPAINT_VALUE_HOLDS_BRUSH(value) (G_TYPE_CHECK_VALUE_TYPE ((value), MYPAINT_TYPE_BRUSH))
GType mypaint_b... | #ifndef MYPAINTBRUSHGLIB_H
#define MYPAINTBRUSHGLIB_H
#include <mypaint-config.h>
#if MYPAINT_CONFIG_USE_GLIB
#include <glib-object.h>
#define MYPAINT_TYPE_BRUSH (mypaint_brush_get_type ())
#define MYPAINT_VALUE_HOLDS_BRUSH(value) (G_TYPE_CHECK_VALUE_TYPE ((value), MYPAINT_TYPE_BRUSH))
GType mypaint_br... | Move glib-object.h include inside USE_GLIB conditional | brushlib: Move glib-object.h include inside USE_GLIB conditional
| C | isc | achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,b3sigma/libmypaint,b3sigma/libmypaint,b3sigma/libmypaint |
8ca7c103b616c4f773d9cf83ceb3c9a8098907b3 | src/math/float/cexpf.c | src/math/float/cexpf.c | #include "cisf.h"
#include "expf.h"
float _Complex cexpf(float _Complex z)
{
float x = z;
float y = cimagf(z);
if (y == 0)
return CMPLXF(expf_(x), y);
if (y - y) {
if (x == INFINITY)
return CMPLXF(x, y - y);
if (x == -INFINITY)
return 0;
}
ret... | #include "cisf.h"
#include "expf.h"
float _Complex cexpf(float _Complex z)
{
float x = z;
float y = cimagf(z);
double r = expf_(x);
if (y == 0)
return CMPLXF(r, y);
if (y - y) {
if (x == INFINITY)
return CMPLXF(x, y - y);
if (x == -INFINITY)
return... | Reduce compiled code size by storing a result of a likely-used common expression | Reduce compiled code size by storing a result of a likely-used common expression
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic |
edce59e1c03fdebc18649bbbc1ffcda3b62f101c | lb_vector.h | lb_vector.h | #ifndef LB_VECTOR_INCLUDED
#include "lb_scalar.h"
// Assume Vector to be n rows by 1 column
typedef struct {
Scalar* data;
unsigned int length;
} Vector;
Vector lb_create_vector(Scalar* data, unsigned int length);
Vector lb_allocate_vector(unsigned int length);
void lbdp(Vector a, Vector b, Scalar* result);... | #ifndef LB_VECTOR_INCLUDED
#include "lb_scalar.h"
// Assume Vector to be n rows by 1 column
typedef struct {
Scalar* data;
unsigned int length;
} Vector;
Vector lb_create_vector(Scalar* data, unsigned int length);
Vector lb_allocate_vector(unsigned int length);
void lbdp(Vector a, Vector b, Scalar* result);... | Make it easy to iterate a vector | Make it easy to iterate a vector
| C | apache-2.0 | frenchrd/laid-back-lapack,frenchrd/laid-back-lapack |
126ae8fc465f5077deb802e655c54cd2f253b623 | core/alsp_src/macos/mw_alspro_prefix.h | core/alsp_src/macos/mw_alspro_prefix.h | #include <MacHeaders.h>
#include <ansi_prefix.mac.h>
#pragma once off
#define HAVE_CONFIG_H
#define PORT 1
#define MACOS 1
#define CONFIGLESS 1
#include "prefix.h" | #include <MacHeaders.h>
//#include <ansi_prefix.mac.h>
#pragma once off
#define HAVE_CONFIG_H
#define PORT 1
#define MACOS 1
#define CONFIGLESS 1
#include "prefix.h" | Update prefix for CW Pro1 | Update prefix for CW Pro1
| C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
8fa7d5b367c2a24717d022242facced25ac381df | src/lib/c++/cxx_constructors_global.c | src/lib/c++/cxx_constructors_global.c | /*
* cxx_constructors_global.c
*
* Created on: 30 janv. 2013
* Author: fsulima
*/
#include <embox/unit.h>
EMBOX_UNIT_INIT(cxx_init);
EMBOX_UNIT_FINI(cxx_fini);
#include "cxx_invoke_constructors.h"
#include "cxx_invoke_destructors.h"
#include "cxx_app_startup_terminatioin.h"
static int cxx_init(void) {
... | /*
* cxx_constructors_global.c
*
* Created on: 30 janv. 2013
* Author: fsulima
*/
#include <embox/unit.h>
#include "cxx_invoke_constructors.h"
#include "cxx_invoke_destructors.h"
#include "cxx_app_startup_termination.h"
EMBOX_UNIT(cxx_init, cxx_fini);
static int cxx_init(void) {
cxx_invoke_constructors(... | Fix compilation of constructor_global module | qt-pro: Fix compilation of constructor_global module | C | bsd-2-clause | Kakadu/embox,vrxfile/embox-trik,embox/embox,gzoom13/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,embox/embox,gzoom13/embox,abusalimov/embox,mike2390/embox,abusalimov/embox,Kakadu/embox,mike2390/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,... |
41b1fefc4ecf7317d4e8ca4529edde1d5fad6ac0 | Menu/Code/UI.h | Menu/Code/UI.h | //
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BRMenuUIStyle.h>
| //
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuBackBarButtonItemView.h>
#import <BRMenu/UI/BRMenuBarButtonItemView.h>
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BR... | Include latest class additions in umbrella include. | Include latest class additions in umbrella include.
| C | apache-2.0 | Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu |
8de044c57cd709945db364a4ac403a6a8e017a8b | exercises/leap/src/example.h | exercises/leap/src/example.h | #ifndef _LEAP_H
#define _LEAP_H
#include <stdbool.h>
bool leap_year(int year);
#endif
| #ifndef _LEAP_H
#define _LEAP_H
#include <stdbool.h>
bool is_leap_year(int year);
#endif
| Fix compiler warning in Leap | Fix compiler warning in Leap
| C | mit | RealBarrettBrown/xc,RealBarrettBrown/xc,RealBarrettBrown/xc |
df574f0ac2acf774a874752f6421f1f6f85cb2cc | test/Preprocessor/warn-macro-unused.c | test/Preprocessor/warn-macro-unused.c | // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
#include "warn-macro-unused.h"
#define unused // expected-warning {{macro is not used}}
#define unused
unused
// rdar://9745065
#undef unused_from_header // no warning
| // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
// XFAIL: *
#include "warn-macro-unused.h"
#define unused // expected-warning {{macro is not used}}
#define unused
unused
// rdar://9745065
#undef unused_from_header // no warning
| Test is broken; XFAIL it until Argyrios gets a chance to look at it. | Test is broken; XFAIL it until Argyrios gets a chance to look at it.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@134925 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
ac62d9b1e647fa02437ea49336460e32988138b0 | HATransparentView/HATransparentView.h | HATransparentView/HATransparentView.h | //
// HATransparentView.h
// HATransparentView
//
// Created by Heberti Almeida on 13/09/13.
// Copyright (c) 2013 Heberti Almeida. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HATransparentView : UIView
@property (strong, nonatomic) UIColor *color;
@property (nonatomic) CGFloat *alpha;
- (void)op... | //
// HATransparentView.h
// HATransparentView
//
// Created by Heberti Almeida on 13/09/13.
// Copyright (c) 2013 Heberti Almeida. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HATransparentView : UIView
- (void)open;
- (void)close;
@end
| Fix disabled interaction on device | Fix disabled interaction on device
| C | mit | ernestopino/HATransparentView,hebertialmeida/HATransparentView,amannayak0007/HATransparentView |
f2a5890d0133c8c7a9a5d7a21ffc9c038e838698 | ios/RNInstabug/InstabugReactBridge.h | ios/RNInstabug/InstabugReactBridge.h | //
// InstabugReactBridge.h
// instabugDemo
//
// Created by Yousef Hamza on 9/29/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
@interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
@end
| //
// InstabugReactBridge.h
// instabugDemo
//
// Created by Yousef Hamza on 9/29/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import "RCTEventEmitter.h"
@interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
@end
| Fix the import in the bridge header file to account for changes in RN 0.48 | :pencil: Fix the import in the bridge header file to account for changes in RN 0.48
| C | mit | Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative |
8b32603f1492f8847ffecd683c1d666a528abbf2 | include/Athena-Physics/Prerequisites.h | include/Athena-Physics/Prerequisites.h | /** @file Prerequisites.h
@author Philip Abbet
Declaration of the types of the Athena-Physics module
*/
#ifndef _ATHENA_PHYSICS_PREREQUISITES_H_
#define _ATHENA_PHYSICS_PREREQUISITES_H_
#include <Athena-Core/Prerequisites.h>
#include <Athena-Physics/Config.h>
#include <Bullet/btConfig.h>
#include <btBu... | /** @file Prerequisites.h
@author Philip Abbet
Declaration of the types of the Athena-Physics module
*/
#ifndef _ATHENA_PHYSICS_PREREQUISITES_H_
#define _ATHENA_PHYSICS_PREREQUISITES_H_
#include <Athena-Core/Prerequisites.h>
#include <Athena-Physics/Config.h>
#include <Bullet/btConfig.h>
#include <btBu... | Fix the previous commit: the 'initialize()' function wasn't declared in the 'Athena::Physics' namespace | Fix the previous commit: the 'initialize()' function wasn't declared in the 'Athena::Physics' namespace
| C | mit | Kanma/Athena-Physics,Kanma/Athena-Physics |
d00dc21fdb784defab7376b8aa0c45db94be5c97 | src/gpu/vk/GrVkVulkan.h | src/gpu/vk/GrVkVulkan.h | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrVkVulkan_DEFINED
#define GrVkVulkan_DEFINED
#include "SkTypes.h"
#ifdef VULKAN_CORE_H_
#error "Skia's private vulkan header must be included before any other vulka... | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrVkVulkan_DEFINED
#define GrVkVulkan_DEFINED
#include "SkTypes.h"
#ifdef VULKAN_CORE_H_
#error "Skia's private vulkan header must be included before any other vulka... | Fix path to vulkan header. | Fix path to vulkan header.
Bug: skia:
Change-Id: I47cb8f67b378a51cefcb82864eda467ff6b48a7e
Reviewed-on: https://skia-review.googlesource.com/c/176969
Commit-Queue: Greg Daniel <39df0a804564ccb6cf75f18db79653821f37c1c5@google.com>
Commit-Queue: Mike Klein <14574f09dfa9b4e14759b88c3426a495a0e627b0@google.com>
Auto-Submi... | C | bsd-3-clause | HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,HalCanary/skia-hc,google/skia,aosp-mirror/platform_external_skia,Hikari-no-Ten... |
a97f2adb2fbfed37e1bf7706f57d22983936ba4d | src/kdf/pbkdf1/pbkdf1.h | src/kdf/pbkdf1/pbkdf1.h | /*************************************************
* PBKDF1 Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_PBKDF1_H__
#define BOTAN_PBKDF1_H__
#include <botan/s2k.h>
#include <botan/base.h>
namespace Botan ... | /*************************************************
* PBKDF1 Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_PBKDF1_H__
#define BOTAN_PBKDF1_H__
#include <botan/s2k.h>
#include <botan/base.h>
namespace Botan ... | Fix warning in PBKDF1 copy constructor | Fix warning in PBKDF1 copy constructor
| C | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/... |
2f2b637ef0a89c0483ff1f26f42452dbc210d7d2 | AppIconOverlay/config.h | AppIconOverlay/config.h | #ifndef AppIconOverlay_config_h
#define AppIconOverlay_config_h
#define DEBUG 1
#define DEFAULT_MIN_FONT_SIZE 6.0
#define DEFAULT_MAX_FONT_SIZE 18.0
#define DEFAULT_FONT_TO_USE "Arial-BoldMT"
#endif
| #ifndef AppIconOverlay_config_h
#define AppIconOverlay_config_h
#define DEBUG 1
#define DEFAULT_MIN_FONT_SIZE 6.0
#define DEFAULT_MAX_FONT_SIZE 18.0
#define DEFAULT_FONT_TO_USE @"Arial-BoldMT"
#endif
| Convert default font name into an NSString | Convert default font name into an NSString
| C | mit | carsonmcdonald/AppIconOverlay |
d84b1b8c58237023cf007e92202d96716254b1f0 | vp8/decoder/opencl/opencl_systemdependent.c | vp8/decoder/opencl/opencl_systemdependent.c | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | Remove unused external function definitions. | Remove unused external function definitions.
| C | bsd-3-clause | awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.