commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
de7f24245a2b51af5ff3489d897ed490d8a0e776 | BRScroller/BRScrollerUtilities.h | BRScroller/BRScrollerUtilities.h | //
// BRScrollerUtilities.h
// BRScroller
//
// Created by Matt on 7/11/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#ifndef BRScroller_BRScrollerUtilities_h
#define BRScroller_BRScrollerUtilities_h
#include <CoreFoundation/CoreFoundation.h>
#include ... | //
// BRScrollerUtilities.h
// BRScroller
//
// Created by Matt on 7/11/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#ifndef BRScroller_BRScrollerUtilities_h
#define BRScroller_BRScrollerUtilities_h
#include <CoreGraphics/CoreGraphics.h>
bool BRFloat... | Fix import to what's actually needed. | Fix import to what's actually needed.
| C | apache-2.0 | Blue-Rocket/BRScroller,Blue-Rocket/BRScroller |
4c22fc7c302ac0e6a26c7113bef5c6d23cc1625a | test/studies/filerator/direnthelp.h | test/studies/filerator/direnthelp.h | #include "dirent.h"
typedef DIR* DIRptr;
typedef struct dirent* direntptr;
#define chpl_rt_direntptr_getname(x) ((x)->d_name)
//
// Note: This is not portable; more generally, need to use lstat() or similar;
// see the readdir() man page for notes
//
#define chpl_rt_direntptr_isDir(x) ((x)->d_type == DT_DIR)
| #include "dirent.h"
typedef DIR* DIRptr;
#ifndef __USE_FILE_OFFSET64
typedef struct dirent* direntptr;
#else
#ifdef __REDIRECT
typedef struct dirent* direntptr;
#else
typedef struct dirent64* direntptr;
#endif
#endif
#define chpl_rt_direntptr_getname(x) ((x)->d_name)
//
// Note: This is not portable; more generally... | Make the filerator test more portable | Make the filerator test more portable
For some reason that I haven't been able to determine, the return type of
readdir() is sometimes dirent64* rather than dirent* as all the man pages and
documentation that I can find suggest. This happens with prgenv-pgi and
prgenv-cray compilers for example. Here, I'm guarding o... | C | apache-2.0 | CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/cha... |
d60caada8b9cad01a953981954856f26805674ec | include/llvm/TableGen/TableGenBackend.h | include/llvm/TableGen/TableGenBackend.h | //===- llvm/TableGen/TableGenBackend.h - Backend utilities ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- llvm/TableGen/TableGenBackend.h - Backend utilities ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Remove unnecessary include and just forward declare. NFC | [TableGen] Remove unnecessary include and just forward declare. NFC
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@238179 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl... |
7513987860278927682945fc5f2d06c79bcac2ed | include/tma.h | include/tma.h | /* Copyright (c) 2011, Jon Maken
* License: 3-clause BSD
* Revision: 11/26/2011 7:57:44 PM
*/
#if defined(_WIN32)
# define TMA_CAPI(type) extern "C" __declspec(dllexport) type
#else
# define TMA_CAPI(type) extern "C" type
#endif
| Add custom code timing DLLs header | Add custom code timing DLLs header
| C | bsd-3-clause | jonforums/tma,jonforums/tma,jonforums/tma | |
351c01d249e0b93f4d2805f5b93d6cb52fae8894 | UIKitExtensions/UIView/Framing.h | UIKitExtensions/UIView/Framing.h | // UIKitExtensions
//
// UIKitExtensions/UIView/Framing.h
//
// Copyright (c) 2013 Stanislaw Pankevich
// Released under the MIT license
//
// Inspired by FrameAccessor
// https://github.com/AlexDenisov/FrameAccessor/
#import <UIKit/UIKit.h>
@interface UIView (Framing)
@property CGPoint viewOrigin;
@property CGSize ... | // UIKitExtensions
//
// UIKitExtensions/UIView/Framing.h
//
// Copyright (c) 2013 Stanislaw Pankevich
// Released under the MIT license
//
// Inspired by FrameAccessor
// https://github.com/AlexDenisov/FrameAccessor/
#import <UIKit/UIKit.h>
@interface UIView (Framing)
// http://stackoverflow.com/questions/16118106/... | Add links to original problem | Add links to original problem
| C | mit | stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions |
5422ab894dc9c35d94656d6879879e076fc9d0e0 | hw/vpi/tenyr_vpi.h | hw/vpi/tenyr_vpi.h | #ifndef TENYR_VPI_
#define TENYR_VPI_
#include <vpi_user.h>
struct tenyr_sim_state;
typedef int tenyr_sim_cb(p_cb_data data);
typedef int tenyr_sim_call(struct tenyr_sim_state *state, void *userdata);
struct tenyr_sim_state {
struct {
tenyr_sim_call *genesis; ///< beginning of sim
tenyr_sim... | #ifndef TENYR_VPI_
#define TENYR_VPI_
#include <vpi_user.h>
struct tenyr_sim_state;
typedef int tenyr_sim_cb(p_cb_data data);
typedef int tenyr_sim_call(struct tenyr_sim_state *state, void *userdata);
struct tenyr_sim_state {
struct {
tenyr_sim_call *genesis; ///< beginning of sim
tenyr_sim... | Mend incorrect whitespace from 3103a58 | Mend incorrect whitespace from 3103a58
| C | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
7d6b667ae70747e9f111eedb98f66fca20c9f43e | value.h | value.h | #pragma once
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
enum Turbo_Type {TJ_Error, TJ_String, TJ_Number, TJ_Object, TJ_Array, TJ_Boolean, TJ_Null};
struct Turbo_Value{
enum Turbo_Type type;
unsigned length;
union{
double number;
int boolean;
const char *string;
... | #pragma once
#include <stdio.h>
#ifdef _MSC_VER
#define __restrict__ __restrict
#elif defined __WATCOMC__
#define __restrict__
#endif
#ifdef __cplusplus
extern "C" {
#endif
enum Turbo_Type {TJ_Error, TJ_String, TJ_Number, TJ_Object, TJ_Array, TJ_Boolean, TJ_Null};
struct Turbo_Value{
enum Turbo_Type type;
u... | Handle restrict on Windows compilers | Handle restrict on Windows compilers
| C | bsd-3-clause | FlyingJester/TurboJSON,FlyingJester/TurboJSON,FlyingJester/TurboJSON |
7e3f73b484dce568b5cee7f4e3209181efdf5cc7 | ppapi/tests/arch_dependent_sizes_64.h | ppapi/tests/arch_dependent_sizes_64.h | /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* This file has compile assertions for the sizes of types that are dependent
* on the architecture for which they are compiled (i.e., 32-bit vs 64... | /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* This file has compile assertions for the sizes of types that are dependent
* on the architecture for which they are compiled (i.e., 32-bit vs 64... | Disable GL sizes PPAPI tests | Disable GL sizes PPAPI tests
The wrong size is defined for Win64. It needs a real fix, but first I need to unblock the builder.
BUG=177779
Review URL: https://chromiumcodereview.appspot.com/12310080
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@184296 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | markYoungH/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chr... |
4c54e21bfaf52047e4d0790623197df84a7410e4 | src/sys/utsname.c | src/sys/utsname.c | /* $Id$ */
/* Copyright (c) 2006 The DeforaOS Project */
#include "../syscalls.h"
#include "sys/utsname.h"
/* uname */
#ifndef __NetBSD__
syscall1(int, uname, struct utsname *, utsname);
#endif
| /* $Id$ */
/* Copyright (c) 2007 The DeforaOS Project */
#include "../syscalls.h"
#include "sys/utsname.h"
/* uname */
#if !defined(__NetBSD__) || defined(NETBSD_USE_LINUX_EMULATION)
syscall1(int, uname, struct utsname *, utsname);
#endif
| Allow uname() with linux emulation on NetBSD | Allow uname() with linux emulation on NetBSD
| C | bsd-2-clause | DeforaOS/libc,DeforaOS/libc |
3e23ab61c6fe1bfd219f94bae2857985ef50da69 | Pod/Classes/CMHLoginViewController.h | Pod/Classes/CMHLoginViewController.h | #import <ResearchKit/ResearchKit.h>
@class CMHLoginViewController;
@protocol CMHLoginViewControllerDelegate <NSObject>
@optional
- (void)loginViewControllerCancelled:(CMHLoginViewController *_Nonnull)viewController;
- (void)loginViewController:(CMHLoginViewController *_Nonnull)viewController didLogin:(BOOL)success er... | #import <ResearchKit/ResearchKit.h>
@class CMHLoginViewController;
@protocol CMHLoginViewControllerDelegate <NSObject>
@optional
- (void)loginViewControllerCancelled:(CMHLoginViewController *_Nonnull)viewController;
- (void)loginViewController:(CMHLoginViewController *_Nonnull)viewController didLogin:(BOOL)success er... | Add nullability annotations to the custom login view controller's public interface | Add nullability annotations to the custom login view controller's public interface
| C | mit | cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK |
5cc6bfb2caca2ecd95d4e152d70fc6c261cd31e1 | ionCore/ionStandardLibrary.h | ionCore/ionStandardLibrary.h |
#pragma once
#include "ionTypes.h"
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
using std::move;
using std::ifstream;
template <typename T, typename U>
U * ConditionalMapAccess(map<T, U *> & Map, T const Key)
{
auto Iterator... |
#pragma once
#include "ionTypes.h"
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
using std::move;
using std::ifstream;
template <typename T, typename U>
U * ConditionalMapAccess(map<T, U *> & Map, T const Key)
{
auto Iterator... | Fix inappropriate move in ReadAsString | Fix inappropriate move in ReadAsString
--HG--
branch : SceneOverhaul
| C | mit | iondune/ionEngine,iondune/ionEngine |
1f62a70bbf4f45f26c04145a5ad25e90b578db9b | lib/Runtime/ByteCode/ByteCodeCacheReleaseFileVersion.h | lib/Runtime/ByteCode/ByteCodeCacheReleaseFileVersion.h | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Update byte code ID for InitConst change | Update byte code ID for InitConst change
| C | mit | Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore |
b3fbc27c7a4130904f3cae41eb161832304b6b9d | src/condor_syscall_lib/syscall_mode.c | src/condor_syscall_lib/syscall_mode.c | /*******************************************************************
**
** Manage system call mode and do remote system calls.
**
*******************************************************************/
#define _POSIX_SOURCE
#include <stdio.h>
#include "condor_syscall_mode.h"
static int SyscallMode = 1; /* LOCAL and UNM... | /*******************************************************************
**
** Manage system call mode and do remote system calls.
**
*******************************************************************/
#define _POSIX_SOURCE
#include "condor_common.h"
#include "condor_debug.h"
#include "condor_syscall_mode.h"
static int ... | Add DisplaySyscallMode() routine for debugging. | Add DisplaySyscallMode() routine for debugging.
| C | apache-2.0 | zhangzhehust/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,clala... |
d9041156f999342aab312dfb7ea6dfc21f7cbd08 | SWXMLDateMapping.h | SWXMLDateMapping.h | //
// SWXMLDateMapping.h
// This file is part of the "SWXMLMapping" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 13/11/05.
// Copyright 2005 Samuel Williams. All rights reserved.
//
#import "SWXMLMemberMapping.h"
@class SWXMLMemberMapping;
@interface SWXMLDateMapping : S... | //
// SWXMLDateMapping.h
// This file is part of the "SWXMLMapping" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 13/11/05.
// Copyright 2005 Samuel Williams. All rights reserved.
//
#import "SWXMLMemberMapping.h"
@class SWXMLMemberMapping;
// Formats value attribute acco... | Comment regarding value serialization of date. | Comment regarding value serialization of date.
| C | mit | oriontransfer/SWXMLMapping |
626cf0008f095c5445636fb0b57156d43b715df7 | tests/regression/03-practical/22-nested-infinite-loops.c | tests/regression/03-practical/22-nested-infinite-loops.c | // https://github.com/goblint/analyzer/issues/231#issuecomment-868369123
int main(void) {
int x = 0;
while(1) {
while(1) {
x++;
}
x--;
}
x--;
return x;
} | Add nested infinite loops test | Add nested infinite loops test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
8d644ff0daeee58cbdf9585817b39354b56461f8 | tests/regression/27-inv_invariants/15-unknown-null-ptr.c | tests/regression/27-inv_invariants/15-unknown-null-ptr.c | #include <stddef.h>
int main() {
int *r; // rand
if (r == NULL)
assert(r == NULL);
else
assert(r != NULL); // TODO
if (r != NULL)
assert(r != NULL);
else
assert(r == NULL); // TODO
return 0;
}
| Add test for NULL pointer invariant refinement | Add test for NULL pointer invariant refinement
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
44ff99d3d8e9bb89f9084fc0d6586f1a7f0e1277 | ann.c | ann.c | #include <stdio.h>
#define INPUTS 3
#define HIDDEN 5
#define OUTPUTS 2
#define ROWS 5
typedef struct {
double input[HIDDEN][INPUTS];
double hidden[ROWS - 3][HIDDEN][HIDDEN];
double output[OUTPUTS][HIDDEN];
} Links;
typedef struct {
Links weights;
} ANN;
int main(void)
{
return 0;
}
| #include <stdio.h>
#define INPUTS 3
#define HIDDEN 5
#define OUTPUTS 2
#define ROWS 5
typedef struct {
double input[HIDDEN][INPUTS];
double hidden[ROWS - 3][HIDDEN][HIDDEN];
double output[OUTPUTS][HIDDEN];
} Links;
typedef struct {
int input[INPUTS];
int hidden[HIDDEN];
int output[OUTPUTS];
}... | Allow neuron values (outputs) to be stored | Allow neuron values (outputs) to be stored
| C | mit | tysonzero/c-ann |
a998d0fcb5626b90c4b2cc92a25982b5407eba03 | free.h | free.h | /*
* free.h
* Memory usage utility for Darwin & MacOS X (similar to 'free' under Linux)
*
* by: David Cantrell <david.l.cantrell@gmail.com>
* Copyright (C) 2008, David Cantrell, Honolulu, HI, USA.
*
* Licensed under the GNU Lesser General Public License version 2.1 or later.
* See COPYING.LIB for licensing det... | /*
* free.h
* Memory usage utility for Darwin & MacOS X (similar to 'free' under Linux)
*
* by: David Cantrell <david.l.cantrell@gmail.com>
* Copyright (C) 2008, David Cantrell, Honolulu, HI, USA.
*
* Licensed under the GNU Lesser General Public License version 2.1 or later.
* See COPYING.LIB for licensing det... | Make sure used unit constants are non-zero | Make sure used unit constants are non-zero
| C | lgpl-2.1 | dcantrell/darwin-free |
47bf9fbde1fffc46171cdf225dbd685a5e0a7526 | gtksourceview2.h | gtksourceview2.h | #include "gtk2hs_macros.h"
#include <gtksourceview/gtksourcebuffer.h>
#if GTK_MAJOR_VERSION < 3
#include <gtksourceview/gtksourceiter.h>
#endif
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcestyle.h>
#include <gtksourceview/gtksourcestyl... | #ifdef __BLOCKS__
#undef __BLOCKS__
#endif
#include "gtk2hs_macros.h"
#include <gtksourceview/gtksourcebuffer.h>
#if GTK_MAJOR_VERSION < 3
#include <gtksourceview/gtksourceiter.h>
#endif
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcesty... | Fix CPP issue on OS X | Fix CPP issue on OS X
| C | lgpl-2.1 | gtk2hs/gtksourceview,gtk2hs/gtksourceview |
504d69fb848c13a69d7747f85f541b3ac3cf8019 | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.47f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.48f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increase version to 1.48 in preparation for new release | Increase version to 1.48 in preparation for new release
| C | apache-2.0 | ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,google/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,google/UIforETW |
e92d5f3a593c656cc6b10f4a3a904a8121efb56e | Binary_Tree_Maximum_Path_Sum.c | Binary_Tree_Maximum_Path_Sum.c | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* struct TreeNode *left;
* struct TreeNode *right;
* };
*/
int max_v(int a, int b) {
return a > b ? a : b;
}
int max_value;
int DFS(struct TreeNode* root) {
int left_sum, right_sum;
int sum;
if (root == NULL... | Create Binary Tree Maximum Path Sum.c | Create Binary Tree Maximum Path Sum.c
| C | mit | fanyingming/leetcode,fanyingming/leetcode | |
ce2df60e506865768215d05489c5a52cbb6febcb | Classes/JLNRGravityImageView.h | Classes/JLNRGravityImageView.h | //
// JLNRGravityImageView.h
// JLNRGravityImageViewExample
//
// Created by Julian Raschke on 17.02.15.
// Copyright (c) 2015 Julian Raschke. All rights reserved.
//
#import <UIKit/UIKit.h>
IB_DESIGNABLE
@interface JLNRGravityImageView : UIImageView
@property (nonatomic) IBInspectable BOOL alignTop;
@property ... | //
// JLNRGravityImageView.h
// JLNRGravityImageViewExample
//
// Created by Julian Raschke on 17.02.15.
// Copyright (c) 2015 Julian Raschke. All rights reserved.
//
#import <UIKit/UIKit.h>
// IB_DESIGNABLE does not work by default with CocoaPods:
// https://github.com/CocoaPods/CocoaPods/issues/2792
#ifndef CO... | Disable IB_DESIGNABLE when using CocoaPods | Disable IB_DESIGNABLE when using CocoaPods
| C | mit | jlnr/JLNRGravityImageView,lurado/LDOAlignedImageView |
526b09b014c8219cfe3747170c6021fe92fb65d5 | firmware/lm32/config.h | firmware/lm32/config.h | #ifndef __CONFIG_H
#define __CONFIG_H
enum {
CONFIG_KEY_RESOLUTION = 0,
CONFIG_KEY_BLEND_USER1,
CONFIG_KEY_BLEND_USER2,
CONFIG_KEY_BLEND_USER3,
CONFIG_KEY_BLEND_USER4,
CONFIG_KEY_COUNT
};
#define CONFIG_DEFAULTS { 9, 1, 2, 3, 4 }
void config_init(void);
void config_write_all(void);
unsigned char config_get(un... | #ifndef __CONFIG_H
#define __CONFIG_H
enum {
CONFIG_KEY_RESOLUTION = 0,
CONFIG_KEY_BLEND_USER1,
CONFIG_KEY_BLEND_USER2,
CONFIG_KEY_BLEND_USER3,
CONFIG_KEY_BLEND_USER4,
CONFIG_KEY_COUNT
};
#ifdef BOARD_MINISPARTAN6
#define CONFIG_DEFAULTS { 5, 1, 2, 3, 4 }
#else
#define CONFIG_DEFAULTS { 9, 1, 2, 3, 4 }
#endif
... | Make 800x600 the default mode for the minispartan6+ | firmware/lm32: Make 800x600 the default mode for the minispartan6+
| C | bsd-2-clause | mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware |
9603de4489d4fb7b057e55402080544db0d75d99 | src/lang-dutch.c | src/lang-dutch.c | #include "num2words.h"
// Language strings for Dutch
const Language LANG_DUTCH = {
.hours = {
"een",
"twee",
"drie",
"vier",
"vijf",
"zes",
"zeven",
"acht",
"negen",
"tien",
"elf",
"twaalf"
},
.phrases = {
"*$1 uur ",
"vijf over *$1 ",
"tien over *$1 ",
"kwart over *$1 ",
"tien vo... | #include "num2words.h"
// Language strings for Dutch
const Language LANG_DUTCH = {
.hours = {
"een",
"twee",
"drie",
"vier",
"vijf",
"zes",
"zeven",
"acht",
"negen",
"tien",
"elf",
"twaalf"
},
.phrases = {
"*$1 uur ",
"vijf over *$1 ",
"tien over *$1 ",
"kwart over *$1 ",
"tien vo... | Remove hyphens from dutch greetings as per recommendation from @eddyh | Remove hyphens from dutch greetings as per recommendation from @eddyh
| C | mit | Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Fuzzy-Text-Watch-Plus |
d496a2cb613d41095a25d1f8a8cf73fac2dd55b3 | ouzel/Settings.h | ouzel/Settings.h | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include "CompileConfig.h"
namespace ouzel
{
struct Settings
{
video::Renderer::Driver driver =
#if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS) || defined(OUZEL... | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include "CompileConfig.h"
namespace ouzel
{
struct Settings
{
video::Renderer::Driver driver =
#if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS) || defined(OUZEL... | Add setting for MSAA sample count | Add setting for MSAA sample count
| C | unlicense | elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel |
c03ade8e87b3848bbb1d30d6e8a09633fbe22a7c | thcrap/src/log.h | thcrap/src/log.h | /**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Logging functions.
* Log to both a file and, if requested, an on-screen console.
*
* As of now, we do not enforce char strings to be in UTF-8.
*/
#pragma once
/// ---------------
/// Standard output
/// ---------------
// Bas... | /**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Logging functions.
* Log to both a file and, if requested, an on-screen console.
*
* As of now, we do not enforce char strings to be in UTF-8.
*/
#pragma once
/// ---------------
/// Standard output
/// ---------------
// Bas... | Use C99 __func__ instead of __FUNCTION__ when not compiling with Visual C++. | Use C99 __func__ instead of __FUNCTION__ when not compiling with Visual C++.
Couldn't they standardize __FUNCTION__ instead? A string literal that can be
concatenated with other string literals is much more flexible than a char[]
variable.
| C | unlicense | thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap |
c3a6cadc3df8702f1f195f6cda53f023dfe7e6ae | robot_module.h | robot_module.h | /*
* File: robots.h
* Author: m79lol
*
*/
#ifndef ROBOT_MODULE_H
#define ROBOT_MODULE_H
#define ROBOT_COMMAND_FREE 0
#define ROBOT_COMMAND_HAND_CONTROL_BEGIN -1
#define ROBOT_COMMAND_HAND_CONTROL_END -2
class Robot {
protected:
Robot() {}
public:
virtual FunctionResult* executeFunctio... | /*
* File: robots.h
* Author: m79lol
*
*/
#ifndef ROBOT_MODULE_H
#define ROBOT_MODULE_H
#define ROBOT_COMMAND_FREE 0
#define ROBOT_COMMAND_HAND_CONTROL_BEGIN -1
#define ROBOT_COMMAND_HAND_CONTROL_END -2
typedef std::function<void(unsigned short int, const char*, va_list)> t_printf_color_module;
class Robot {... | Prepare function added for Robot modules. | Prepare function added for Robot modules.
| C | apache-2.0 | RobotControlTechnologies/module_headers,iskinmike/module_headers |
01ccbd9b875b0ab9e21e8dca1501be249d13f451 | src/block_header.h | src/block_header.h | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#ifndef SCALLOC_BLOCK_HEADER_H_
#define SCALLOC_BLOCK_HEADER_H_
#include "common.h"
#include "freel... | Add definitions for block headers. | Add definitions for block headers.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc | |
dcabda08e5888edca40c1bd03265096fcda1a173 | tests/regression/36-octapron/28-combine-forget-fun-lval-imprecise.c | tests/regression/36-octapron/28-combine-forget-fun-lval-imprecise.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <assert.h>
int f(int x) {
return x + 1;
}
int main(void) {
int y, z;
z = y;
y = f(y);
// local is: y == z
// fun is: #ret == x' + 1
// fun args subst (x' -> y) is: #ret == y + 1
// local forget y is: top
// fun forget y is: top
// fun subs... | Add test for octApron combine where forgetting lval is too imprecise | Add test for octApron combine where forgetting lval is too imprecise
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
accec546d710228b9b2a5cc84557cde6624d7a89 | include/tiramisu/MainPage.h | include/tiramisu/MainPage.h | /** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the API if the Tiramisu Compiler
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio... | /** \file
* This file only exists to contain the front-page of the documentation
*/
/** \mainpage Documentation of the API if the Tiramisu Compiler
*
* Tiramisu provides few classes to enable users to represent their program:
* - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio... | Fix the documentation main page | Fix the documentation main page
| C | mit | rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/ISIR,rbaghdadi/COLi |
edee7c36a226e74f53d66b57a1907bb148799599 | targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis_nvic.c | targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis_nvic.c | /* mbed Microcontroller Library
* Copyright (c) 2015-2017 Nuvoton
*
* 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 requir... | /* mbed Microcontroller Library
* Copyright (c) 2015-2017 Nuvoton
*
* 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 requir... | Add guard code to prevent from relocating vector table | [NANO130] Add guard code to prevent from relocating vector table
| C | apache-2.0 | kjbracey-arm/mbed,svogl/mbed-os,karsev/mbed-os,ryankurte/mbed-os,svogl/mbed-os,CalSol/mbed,infinnovation/mbed-os,karsev/mbed-os,betzw/mbed-os,betzw/mbed-os,catiedev/mbed-os,HeadsUpDisplayInc/mbed,andcor02/mbed-os,c1728p9/mbed-os,ryankurte/mbed-os,catiedev/mbed-os,svogl/mbed-os,ryankurte/mbed-os,mbedmicro/mbed,catiedev/... |
a394a676b804449c2c939a26ee394a025f7c325c | src/cpu/register.h | src/cpu/register.h | #ifndef EMULATOR_REGISTER_H
#define EMULATOR_REGISTER_H
#include <cstdint>
template <typename T>
class Register {
public:
Register() {};
void set(const T new_value) { val = new_value; };
T value() const { return val; };
void increment() { val += 1; };
void decrement() { val -= 1; };
private:
... | #ifndef EMULATOR_REGISTER_H
#define EMULATOR_REGISTER_H
#include <cstdint>
template <typename T>
class Register {
public:
Register() {};
void set(const T new_value) { val = new_value; };
T value() const { return val; };
void increment() { val += 1; };
void decrement() { val -= 1; };
private:
... | Add the mini offset utility class | Add the mini offset utility class
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
c02cabaab61367862776ad1d612161d4d623f7a0 | src/DynamicMemory.h | src/DynamicMemory.h | //
// Created by James Telfer on 30/07/2017.
//
#ifndef C_11_FEATURE_DEMO_DYNAMICMEMORY_H
#define C_11_FEATURE_DEMO_DYNAMICMEMORY_H
#include "Thing.h"
class DynamicMemory {
public:
DynamicMemory();
void uniquePointers();
void sharedPointers();
void makeShared();
private:
void outputThing(const T... | //
// Created by James Telfer on 30/07/2017.
//
#ifndef C_11_FEATURE_DEMO_DYNAMICMEMORY_H
#define C_11_FEATURE_DEMO_DYNAMICMEMORY_H
#include <memory>
#include "Thing.h"
class DynamicMemory {
public:
DynamicMemory();
void uniquePointers();
void sharedPointers();
void makeShared();
private:
void ou... | Add header for smart pointers | Add header for smart pointers
| C | apache-2.0 | jameswtelfer/c11_feature_demo |
9217d50f561be24873e88f50b83cdaed111e2840 | wrapper-lib.c | wrapper-lib.c | /*
* Copyright (c) 2013 Thomas Adam <thomas@xteddy.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... | Add a wrapper lib for common functions | Add a wrapper lib for common functions
Certain functions such as malloc/realloc/asprintf need special handling for
their errors, often erroring out or providing the same error message, etc.
This therefore introduces such a wrapper. Not used too much at the moment.
| C | bsd-2-clause | ThomasAdam/lswm | |
3f627077a9f2a5fd13234c208525aa61f645ae94 | lesson10/app/src/main/jni/GLES2Lesson.h | lesson10/app/src/main/jni/GLES2Lesson.h | //
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
void resetTransformMatrices()... | //
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
void resetTransformMatrices()... | Make the constructor for the Lesson 10 explicit | Make the constructor for the Lesson 10 explicit
While this has little effect here, it's a good practice worth getting
used to. I still have to do the same with all the other classes.
| C | bsd-2-clause | TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20 |
346e095d25d70cd81ece89e08a241b4f77ab9582 | src/file/keydb.h | src/file/keydb.h |
/* encrypted keys */
static const uint32_t internal_device_number = 0;
static const uint8_t internal_dk_list[][21] = {
{
},
};
static const uint8_t internal_pk_list[][16] = {
{
},
};
static const uint8_t internal_hc_list[][112] = {
{
},
};
/* customize this function to "hide" the keys in the binary */... |
/* encrypted keys */
static const uint32_t internal_device_number = 0;
static const uint8_t internal_dk_list[][21] = {
{ 0 },
};
static const uint8_t internal_pk_list[][16] = {
{ 0 },
};
static const uint8_t internal_hc_list[][112] = {
{ 0 },
};
/* customize this function to "hide" the keys in the binary */... | Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet. | Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
| C | lgpl-2.1 | mwgoldsmith/aacs,mwgoldsmith/aacs |
5d6e6d2e8f0edf69301bddd76ae3e0f651d037f1 | src/native/log.h | src/native/log.h | #include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "const.h"
extern void logop(int32_t, int32_t);
extern void dbg_trace(void);
#define dbg_log(...) { if(DEBUG) { printf(__VA_ARGS__); } }
#define dbg_assert(condition) { if(DEBUG) { if(!(condition)) dbg_log(#condition); assert(con... | #include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "const.h"
extern void logop(int32_t, int32_t);
extern void dbg_trace(void);
#define dbg_log(...) { if(DEBUG) { printf(__VA_ARGS__); } }
#define dbg_trace(...) { if(DEBUG) { dbg_trace(__VA_ARGS__); } }
#define dbg_assert(conditio... | Remove dbg_trace from non-debug builds | Remove dbg_trace from non-debug builds
| C | bsd-2-clause | copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86 |
57f0cb6232cef023a352bd120a328c520da9f211 | test2/inline/static_local.c | test2/inline/static_local.c | // RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
inline in... | // RUN: %check %s
// extern
extern inline int f()
{
static int i;
return i++;
}
// static
static inline int h()
{
static int i;
return i++;
}
// neither
inline int g()
{
static int i; // CHECK: warning: mutable static variable in pure-inline function - may differ per file
return i++;
}
// neither, but const
i... | Fix inline static local warning | Fix inline static local warning
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
b05adaf03b8889da09568b8cf9f1f93d90445f30 | src/shared/log.h | src/shared/log.h | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any... | Add line and function details to buxton_debug() | Add line and function details to buxton_debug()
| C | lgpl-2.1 | sofar/buxton,sofar/buxton |
40cb4828db633619fe71b721fa6440d26e0347bc | src/configuration.h | src/configuration.h | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 9
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "APM P... | #ifndef QGC_CONFIGURATION_H
#define QGC_CONFIGURATION_H
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL 9
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "APM P... | Change from 3drobotics to diydrones for COMPANYNAME | Change from 3drobotics to diydrones for COMPANYNAME
| C | agpl-3.0 | hejunbok/apm_planner,sutherlandm/apm_planner,LIKAIMO/apm_planner,sutherlandm/apm_planner,mirkix/apm_planner,abcdelf/apm_planner,xros/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,mirkix/apm_planner,diydrones/apm_planner,LittleBun/apm_planner,labtoast/apm... |
8c968d0d3bcd83c42b056b290aae5aba9d229c1d | test/periodic/NdbRadioMult.h | test/periodic/NdbRadioMult.h | #ifndef RADIOMULT_H
#define RADIOMULT_H
#include "NdbMF.h"
/* ========= NdbRadioMult ============ */
class NdbRad ioMult : public NdbMF
{
protected:
public:
NdbRadioMult()
: NdbMF(9, "Multiplicities for radioactive nuclide production") {}
~NdbRadioMult() {}
ClassDef(NdbRadioMult,1)
}; // NdbRadioMul... | #ifndef RADIOMULT_H
#define RADIOMULT_H
#include "NdbMF.h"
/* ========= NdbRadioMult ============ */
class NdbRadioMult : public NdbMF
{
protected:
public:
NdbRadioMult()
: NdbMF(9, "Multiplicities for radioactive nuclide production") {}
~NdbRadioMult() {}
ClassDef(NdbRadioMult,1)
}; // NdbRadioMult
... | Fix typo in tab removal | Fix typo in tab removal
| C | lgpl-2.1 | CristinaCristescu/root,dfunke/root,abhinavmoudgil95/root,beniz/root,abhinavmoudgil95/root,jrtomps/root,zzxuanyuan/root,mhuwiler/rootauto,nilqed/root,0x0all/ROOT,pspe/root,buuck/root,gbitzes/root,esakellari/root,BerserkerTroll/root,abhinavmoudgil95/root,mkret2/root,satyarth934/root,omazapa/root,CristinaCristescu/root,ma... |
428dd80dfb94c20ce6a69138f32c9727b4490a14 | src/qt/modaloverlay.h | src/qt/modaloverlay.h | // Copyright (c) 2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_MODALOVERLAY_H
#define BITCOIN_QT_MODALOVERLAY_H
#include <QDateTime>
#include <QWidget>
//! The required del... | // Copyright (c) 2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_MODALOVERLAY_H
#define BITCOIN_QT_MODALOVERLAY_H
#include <QDateTime>
#include <QWidget>
#include <atomic>
//... | Add a missing atomic include | Add a missing atomic include
This prevent this error in Ubuntu xenial and trusty while compling bitcoin-qt:
In file included from qt/modaloverlay.cpp:5:0:
qt/modaloverlay.h:42:10: error: ‘atomic’ in namespace ‘std’ does not name a template type
std::atomic<int> bestBlockHeight{0}; // best known height (based on ... | C | mit | BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited |
85c15fe657b4bc21a1e39f192e03bc06a759f15d | ipcrypt.h | ipcrypt.h |
#ifndef ipcrypt_H
#define ipcrypt_H
#define IPCRYPT_BYTES 4
#define IPCRYPT_KEYBYTES 16
int ipcrypt_encrypt(unsigned char out[IPCRYPT_BYTES],
const unsigned char in[IPCRYPT_BYTES],
const unsigned char key[IPCRYPT_KEYBYTES]);
int ipcrypt_decrypt(unsigned char out[IPCRYPT_BYTES... |
#ifndef ipcrypt_H
#define ipcrypt_H
#define IPCRYPT_BYTES 4
#define IPCRYPT_KEYBYTES 16
#ifdef __cplusplus
extern "C" {
#endif
int ipcrypt_encrypt(unsigned char out[IPCRYPT_BYTES],
const unsigned char in[IPCRYPT_BYTES],
const unsigned char key[IPCRYPT_KEYBYTES]);
int ipcrypt... | Make inclusion from C++ projects easier | Make inclusion from C++ projects easier
This code adds a conditional extern "C" statement - which most C libraries do as a courtesy for C++ users. | C | isc | jedisct1/c-ipcrypt |
1a6015e73fbbfef228b0aa91827a0ad2da3deba0 | vm/vm_internal.h | vm/vm_internal.h | #ifndef _INCLUDE_VM_INTERNAL_H
#define _INCLUDE_VM_INTERNAL_H
#include "vm.h"
#include "defs.h"
#include "heap.h"
typedef struct {
vm_value reg[num_regs];
int return_address;
int result_register;
//TODO type for this should be heap_address
int spilled_arguments; // Used for over-saturated calls.
} stack_f... | #ifndef _INCLUDE_VM_INTERNAL_H
#define _INCLUDE_VM_INTERNAL_H
#include "vm.h"
#include "defs.h"
#include "heap.h"
typedef struct {
vm_value reg[num_regs];
int return_address;
int result_register;
heap_address spilled_arguments; // Used for over-saturated calls.
} stack_frame ;
typedef struct {
stack_f... | Fix type for spilled arguments | Fix type for spilled arguments
| C | mit | arne-schroppe/dash,arne-schroppe/dash |
ec108eb7dfc27271fe95608a8b8804ff573cb6e0 | src/win32/socket_win.c | src/win32/socket_win.c | /*
*The MIT License (MIT)
*
* Copyright (c) <2017> <Stephan Gatzka>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, co... | Add stub for windows socket implementation. | Add stub for windows socket implementation.
| C | mit | gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet | |
aaa0a5cd4e401bde4fb3691dd4e6c70a5c61e031 | include/version.h | include/version.h | /*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
const char* gVERSION;
const char* gVERSION_SHORT;
#ifdef __cplusplus
}
#endif
| /*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
extern const char* gVERSION;
extern const char* gVERSION_SHORT;
#ifdef __cplusplus
}
#endif
| Declare gVERSION global as 'extern'. | include: Declare gVERSION global as 'extern'.
Fixes build with '-fno-common'.
Signed-off-by: Thomas Ingleby <bb80a585db4bdbe09547a7483d1a31841fd0e0e8@intel.com>
| C | mit | g-vidal/mraa,g-vidal/mraa,g-vidal/mraa,g-vidal/mraa,g-vidal/mraa |
13d6d4e18d98f7c2d496f3454216d96a4d8e95d1 | WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h | WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h | #import <FBSnapshotTestCase/FBSnapshotTestCase.h>
#import "UIApplication+VisualTestUtils.h"
/**
* @function WMFSnapshotVerifyView
*
* Verify correct appearance of a given view.
*
* Search all folder suffixes, use default naming conventions.
*
* @param view The view to verify.
*/
#define WMFSnapshotVerifyVi... | #import <FBSnapshotTestCase/FBSnapshotTestCase.h>
#import "UIApplication+VisualTestUtils.h"
/**
* @function WMFSnapshotVerifyView
*
* Verify correct appearance of a given view.
*
* Search all folder suffixes, use default naming conventions.
*
* @param view The view to verify.
*/
#define WMFSnapshotVerifyVi... | Add slight tolerance for image differences to visual test macro. | Add slight tolerance for image differences to visual test macro.
| C | mit | wikimedia/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbo... |
1b91e278ae59e4f4f1f6a8fe37bd20e527a4975e | Analytics/Integrations/GoogleAnalytics/SEGGoogleAnalyticsIntegration.h | Analytics/Integrations/GoogleAnalytics/SEGGoogleAnalyticsIntegration.h | // GoogleAnalyticsIntegration.h
// Copyright (c) 2014 Segment.io. All rights reserved.
#import <Foundation/Foundation.h>
#import "SEGAnalyticsIntegration.h"
@interface SEGGoogleAnalyticsIntegration : SEGAnalyticsIntegration
@property(nonatomic, copy) NSString *name;
@property(nonatomic, assign) BOOL valid;
@propert... | // GoogleAnalyticsIntegration.h
// Copyright (c) 2014 Segment.io. All rights reserved.
#import <Foundation/Foundation.h>
#import "SEGAnalyticsIntegration.h"
#import "SEGEcommerce.h"
@interface SEGGoogleAnalyticsIntegration : SEGAnalyticsIntegration <SEGEcommerce>
@property(nonatomic, copy) NSString *name;
@property(... | Add ecommerce protocol to ga | Add ecommerce protocol to ga
| C | mit | jtomson-mdsol/analytics-ios,jtomson-mdsol/analytics-ios,rudywen/analytics-ios,dbachrach/analytics-ios,graingert/analytics-ios,jonathannorris/analytics-ios,orta/analytics-ios,segmentio/analytics-ios,operator/analytics-ios,graingert/analytics-ios,djfink-carglass/analytics-ios,jonathannorris/analytics-ios,jlandon/analytic... |
bafe09faaffee154ccc9225bacb526517e555882 | process.h | process.h | //
// process.h
// Project3
//
// Created by Stratton Aguilar on 7/3/14.
// Copyright (c) 2014 Stratton Aguilar. All rights reserved.
//
#ifndef Project3_process_h
#define Project3_process_h
typedef struct {
int processNum;
int arrivalTime;
int lifeTime;
int memReq;
} PROCESS;
#endif
| //
// process.h
// Project3
//
// Created by Stratton Aguilar on 7/3/14.
// Copyright (c) 2014 Stratton Aguilar. All rights reserved.
//
#ifndef Project3_process_h
#define Project3_process_h
typedef struct {
int processNum;
int arrivalTime;
int lifeTime;
int memReq;
int time_left;
int is_... | Add time_left and is_active to the proc struct | Add time_left and is_active to the proc struct
| C | mit | ciarand/operating-systems-memory-management-assignment |
f0daba127006281d2ff843f88a7e93928e336350 | src/greuh_liberation.Default/meta/classnames/support/ammobox_nato_pacific.h | src/greuh_liberation.Default/meta/classnames/support/ammobox_nato_pacific.h | ["Box_T_NATO_Wps_F",5,0,0],
["Box_T_NATO_WpsSpecial_F",5,0,0], | ["Box_T_NATO_Wps_F",0,0,0],
["Box_T_NATO_WpsSpecial_F",0,0,0], | Remove cost from empty ammoboxes till they can be recycled | Remove cost from empty ammoboxes till they can be recycled
| C | mit | fparma/liberation,fparma/liberation,fparma/liberation |
1776b4704a26b3cf388e66e2e9f945dde1ba57cb | src/clock_posix.c | src/clock_posix.c | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct SPDR_Clock **clockp, struct SPDR_Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insufficient resolution */... | #include <time.h>
#include "clock.h"
#include "clock_type.h"
extern int clock_init(struct SPDR_Clock **clockp,
struct SPDR_Allocator *allocator)
{
struct timespec res;
if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) {
/* unknown clock or insu... | Fix signature of clock_init for posix | Fix signature of clock_init for posix
| C | mit | uucidl/uu.spdr,uucidl/uu.spdr,uucidl/uu.spdr |
0f4982691eaf60f6b23e9f7d02c63ee3b9cb0460 | xlat.h | xlat.h | #ifndef STRACE_XLAT_H
struct xlat {
unsigned int val;
const char *str;
};
# define XLAT(val) { (unsigned)(val), #val }
# define XLAT_PAIR(val, str) { (unsigned)(val), str }
# define XLAT_END { 0, 0 }
#endif
| #ifndef STRACE_XLAT_H
struct xlat {
unsigned int val;
const char *str;
};
# define XLAT(val) { (unsigned)(val), #val }
# define XLAT_PAIR(val, str) { (unsigned)(val), str }
# define XLAT_TYPE(type, val) { (type)(val), #val }
# define XLAT_TYPE_PAIR(val, str) { (type)(val), str }
# define XLAT_END { ... | Introduce XLAT_TYPE and XLAT_TYPE_PAIR macros | Introduce XLAT_TYPE and XLAT_TYPE_PAIR macros
* xlat.h (XLAT_TYPE): New macro, similar to XLAT but casts
to the specified type instead of unsigned int.
(XLAT_TYPE_PAIR): New macro, similar to XLAT_PAIR but casts
to the specified type instead of unsigned int.
| C | bsd-3-clause | Saruta/strace,Saruta/strace,cuviper/strace,Saruta/strace,Saruta/strace,cuviper/strace,Saruta/strace,cuviper/strace,cuviper/strace,cuviper/strace |
37656881f6360da03ecf7c4cbcc51f7a0eae883c | Sensorama/Sensorama/SRDataModel.h | Sensorama/Sensorama/SRDataModel.h | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | Add arrays to the data model. | Add arrays to the data model.
| C | bsd-2-clause | wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios |
fa8de09edc9ec4e6d171df80f746174a0ec58afb | src/util/result.h | src/util/result.h | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_RESULT_H
#define BITCOIN_UTIL_RESULT_H
#include <util/translation.h>
#include <variant>
/*
* 'BResult' is... | // Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_RESULT_H
#define BITCOIN_UTIL_RESULT_H
#include <util/translation.h>
#include <variant>
/*
* 'BResult' i... | Prepare BResult for non-copyable types | Prepare BResult for non-copyable types
| C | mit | fujicoin/fujicoin,lateminer/bitcoin,lateminer/bitcoin,jamesob/bitcoin,namecoin/namecore,lateminer/bitcoin,kallewoof/bitcoin,fujicoin/fujicoin,AkioNak/bitcoin,mruddy/bitcoin,jamesob/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,fanquake/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,namecoin/namecoin-core,fujicoin/fujicoin,partic... |
2788f282bbd2e945c1e77c94bc45b8ece5f9b4db | src/Subtitles/paletteinfo.h | src/Subtitles/paletteinfo.h | /*
* BDSup2Sub++ (C) 2012 Adam T.
* Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef)
* and Copyright 2012 Miklos Juhasz (mjuhasz)
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | /*
* BDSup2Sub++ (C) 2012 Adam T.
* Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef)
* and Copyright 2012 Miklos Juhasz (mjuhasz)
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | Change default values to -1. | Change default values to -1.
| C | apache-2.0 | darealshinji/BDSup2SubPlusPlus,amichaelt/BDSup2SubPlusPlus,amichaelt/BDSup2SubPlusPlus,darealshinji/BDSup2SubPlusPlus |
261c3596a30b92539109894541f17d5f6b7c985a | IntelFrameworkModulePkg/Include/Guid/IntelFrameworkModulePkgTokenSpace.h | IntelFrameworkModulePkg/Include/Guid/IntelFrameworkModulePkgTokenSpace.h | /** @file
GUID for IntelFrameworkModulePkg PCD Token Space
Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the... | Add the missing Token Space Guid | Add the missing Token Space Guid
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8500 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 | |
f94c619e73b934b8f32edf303cc8998670f7cc64 | chrome/common/all_messages.h | chrome/common/all_messages.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.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | // 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.
// Multiply-included file, hence no include guard.
// Inclusion of all message files present in the system. Keep this file
// up-to-date when adding ... | Fix build break from bad merge | Fix build break from bad merge
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@106741 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | hujiajie/pa-chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,dushu1203/chromium.src,robclark/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,keishi/chromium,... |
2c5ea3c7a451cf4c0e4612be05ed67bdf6ae86e6 | src/main/c/src/DeviceList.c | src/main/c/src/DeviceList.c | /*
* Copyright (C) 2013 Klaus Reimer (k@ailis.de)
* See COPYING file for copying conditions
*/
#include "DeviceList.h"
#include "Device.h"
void setDeviceList(JNIEnv* env, libusb_device** list, int size, jobject object)
{
SET_POINTER(env, list, object, "deviceListPointer");
jclass cls = (*env)->GetObjectCl... | /*
* Copyright (C) 2013 Klaus Reimer (k@ailis.de)
* See COPYING file for copying conditions
*/
#include "DeviceList.h"
#include "Device.h"
void setDeviceList(JNIEnv* env, libusb_device** list, int size, jobject object)
{
SET_POINTER(env, list, object, "deviceListPointer");
jclass cls = (*env)->GetObjectCl... | Set size to zero on reset. Else getting the size is incorrect, and later when checking in get() it would pass the check and you'd access a NULL ptr. | Set size to zero on reset. Else getting the size is incorrect, and later when checking in get() it would pass the check and you'd access a NULL ptr.
| C | mit | zodsoft/usb4java,usb4java/usb4java |
5b6d5b3f4b105ca4a7229e76895304e038457dcb | sys/dev/advansys/advmcode.h | sys/dev/advansys/advmcode.h | /*
* Exported interface to downloadable microcode for AdvanSys SCSI Adapters
*
* $FreeBSD$
*
* Obtained from:
*
* Copyright (c) 1995-1999 Advanced System Products, Inc.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | /*
* Exported interface to downloadable microcode for AdvanSys SCSI Adapters
*
* $FreeBSD$
*
* Obtained from:
*
* Copyright (c) 1995-1999 Advanced System Products, Inc.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | Make the extern for adv_mcode match the reality: it's u_int8_t, but probably unendiansafely used as u_int16_t. | Make the extern for adv_mcode match the reality: it's u_int8_t, but
probably unendiansafely used as u_int16_t.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
7abb940384e7d5f7a30188d5b227cb6b1727800d | tests/regression/04-mutex/59-td3-self-abort.c | tests/regression/04-mutex/59-td3-self-abort.c | #include <pthread.h>
int myglobal;
void *t_fun(void *arg) {
myglobal=1; // RACE!
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
myglobal = myglobal+1; // RACE!
return 0;
}
| Add regression test where TD3 aborting with self-dependency and fixed switch to Narrow is unsound | Add regression test where TD3 aborting with self-dependency and fixed switch to Narrow is unsound
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
715c5e6ae0e5c693c168c8f65eb375c85b682887 | append_seek_write.c | append_seek_write.c | /* Exercise 5-2 */
#include <unistd.h>
#include <fcntl.h>
#include "tlpi_hdr.h"
int main (int argc, char *argv[]) {
if (argc != 2) {
usageErr("%s filename", argv[0]);
}
int fd = open(argv[1], O_WRONLY | O_APPEND | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
if (fd == -1) { errExit("open"); }
char s[] = "abc... | /* Exercise 5-2 */
#include <unistd.h>
#include <fcntl.h>
#include "tlpi_hdr.h"
int main (int argc, char *argv[]) {
if (argc != 2) {
usageErr("%s filename", argv[0]);
}
int fd = open(argv[1], O_WRONLY | O_APPEND | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR);
if (fd == -1) { errExit("open"); }
char s[] = "abc... | Add missing close for file descriptor | Add missing close for file descriptor
| C | mit | timjb/tlpi-exercises,timjb/tlpi-exercises,dalleng/tlpi-exercises,dalleng/tlpi-exercises |
b14ece116ed3e4b18d59b645e77b3449fac51137 | tests/unit/test-unit-main.c | tests/unit/test-unit-main.c | #include <config.h>
#include <dlfcn.h>
#include <test-fixtures/test-unit.h>
int
main (int argc, char **argv)
{
const CoglUnitTest *unit_test;
int i;
if (argc != 2)
{
g_printerr ("usage %s UNIT_TEST\n", argv[0]);
exit (1);
}
/* Just for convenience in case people try passing the wrapper
... | #include <config.h>
#include <gmodule.h>
#include <test-fixtures/test-unit.h>
int
main (int argc, char **argv)
{
GModule *main_module;
const CoglUnitTest *unit_test;
int i;
if (argc != 2)
{
g_printerr ("usage %s UNIT_TEST\n", argv[0]);
exit (1);
}
/* Just for convenience in case peopl... | Use GModule instead of libdl to load unit test symbols | Use GModule instead of libdl to load unit test symbols
Previously the unit tests were using libdl without directly linking to
it. It looks like this ends up working because one of Cogl's
dependencies ends up pulling adding -ldl via libtool. However in some
configurations it looks like this wasn't happening.
To avoid ... | C | lgpl-2.1 | gcampax/cogl,gcampax/cogl,djdeath/cogl,gcampax/cogl,djdeath/cogl,djdeath/cogl,gcampax/cogl |
2354e794031cec8bcb654e676338bc0ddcbb71d6 | storageapi/src/vespa/storageapi/mbusprot/protobuf_includes.h | storageapi/src/vespa/storageapi/mbusprot/protobuf_includes.h | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Disable warnings emitted by protoc generated files
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#include "feed.pb.h"
#include "visiting.pb.h"
#include "maintenance.pb.... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
// Disable warnings emitted by protoc generated files
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#include "feed.pb.h"
#include "visiting.pb.h"
#include "m... | Add missing header pragma directive | Add missing header pragma directive
| 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 |
ca35f85329122c44b55c97ffb99caac7fcff818d | chrome/app/scoped_ole_initializer.h | chrome/app/scoped_ole_initializer.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
// Wraps OLE initialization in a cross-platform class meant... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#define CHROME_APP_SCOPED_OLE_INITIALIZER_H_
#include "base/logging.h"
#include "build/build_config.h"
... | Make ScopedOleInitializer work on windows if you aren't including build_config already. | Make ScopedOleInitializer work on windows if you aren't including
build_config already.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/19640
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@8835 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | ChromiumWebApps/chromium,rogerwang/chromium,M4sse/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chrom... |
57fcc6c037a9cde10f80e3bc1b36175a3aa0ac5d | libgpmat/src/gp-proc.h | libgpmat/src/gp-proc.h | /* gp-proc.c -- Information extracted from /proc
-- Copyright (C) 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- 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 ... | Support to read and extract information from /proc/<pid>/maps | Support to read and extract information from /proc/<pid>/maps
| C | apache-2.0 | stcarrez/mat,stcarrez/mat,stcarrez/mat | |
b311550d076fae4341d8ea73cd6227f1c37c3732 | Headers/breakout.h | Headers/breakout.h | /*
The Breakout class holds all of the game logic. It is derived from the QWidget class to allow it to display in a Qt window.
It handles all input events, game updates, and painting events. It also handles the current game state.
*/
#ifndef BREAKOUT_H
#define BREAKOUT_H
#include "ball.h"
#include "brick.h"
#i... | /*
The Breakout class holds all of the game logic. It is derived from the QWidget class to allow it to display in a Qt window.
It handles all input events, game updates, and painting events. It also handles the current game state.
*/
#ifndef BREAKOUT_H
#define BREAKOUT_H
#include "ball.h"
#include "brick.h"
#i... | Convert bricks to a std::vector | Convert bricks to a std::vector | C | mit | maytim/Basic-Qt-Collision-Example |
272ae9518abe3815f1651a730f14b8c1316f96f3 | C/header.h | C/header.h | /*!
* @brief Template C-header file
*
* This is a template C-header file
* @author <+AUTHOR+>
* @date <+DATE+>
* @file <+FILE+>
* @version 0.1
*/
#ifndef <+FILE_CAPITAL+>_H
#define <+FILE_CAPITAL+>_H
#if defined(_MSC_VER)
# define <+FILE_CAPITAL+>_DLLEXPORT __declspec(dllexport)
#elif defined(__GNUC__... | /*!
* @brief Template C-header file
*
* This is a template C-header file
* @author <+AUTHOR+>
* @date <+DATE+>
* @file <+FILE+>
* @version 0.1
*/
#ifndef <+FILE_CAPITAL+>_H
#define <+FILE_CAPITAL+>_H
#if defined(_MSC_VER)
# define <+FILE_CAPITAL+>_DLLEXPORT __declspec(dllexport)
#elif defined(__GNUC__... | Add macro for DLL exportation | Add macro for DLL exportation
| C | mit | koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate |
713c8327fadf0ea96a82a9f0216042e8b88609c0 | eval/src/vespa/eval/instruction/simple_join_count.h | eval/src/vespa/eval/instruction/simple_join_count.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/eval/eval/tensor_function.h>
namespace vespalib::eval {
/**
* Tensor function that will count the number of cells in the result
* of a join between two tensors with full mapped ove... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/eval/eval/tensor_function.h>
namespace vespalib::eval {
/**
* Tensor function that will count the number of cells in the result
* of a join between two tensors with full mapped ove... | Adjust SimpleJoinCount constructor argument type. | Adjust SimpleJoinCount constructor argument type.
| 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 |
eaac4a2d7dd7663451775f0eeb72a800ad1f99f5 | include/config/SkUserConfigManual.h | include/config/SkUserConfigManual.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | Add flag to stage api change am: f83df73740 | Add flag to stage api change am: f83df73740
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/skia/+/13451544
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2856cdd8b51312e17468c6b5c5cdd98798d72f60
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-... |
af37feed18a95f15ca5ec798ab29e4351c8b335c | k-means/main.c | k-means/main.c | //
// main.c
// k-means
//
// Created by Jamie Bullock on 24/08/2014.
// Copyright (c) 2014 Jamie Bullock. All rights reserved.
//
#include "km.h"
#include <stdio.h>
int main(int argc, const char * argv[])
{
km_textfile textfile = km_textfile_new();
RETURN_ON_ERROR(km_textfile_init(textfile));
... | //
// main.c
// k-means
//
// Created by Jamie Bullock on 24/08/2014.
// Copyright (c) 2014 Jamie Bullock. All rights reserved.
//
#include "km.h"
#include <stdio.h>
enum cluster_id {
Adam,
Bob,
Charley,
David,
Edward,
km_num_cluster_ids_
};
void set_initial_cluster_centroids(km_pointlis... | Add setup code for initial centroids | Add setup code for initial centroids
| C | mit | jamiebullock/k-means,jamiebullock/k-means |
5251cdd753a244ce7e1b55d397831d31ad75934c | Matrix2D.h | Matrix2D.h | /*
Copyright 2011 Michael Fortin
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 wri... | /*
Copyright 2011 Michael Fortin
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 wri... | Multiply now member of class - link errors when included in multiple cpp files | Multiply now member of class - link errors when included in multiple cpp files
| C | apache-2.0 | mifortin/AgilePod,mifortin/AgilePod |
cedac29b3cb33833bb96f723661f0af0cc638ecc | chrome/common/notification_observer.h | chrome/common/notification_observer.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_NOTIFICATION_OBSERVER_H_
#define CHROME_COMMON_NOTIFICATION_OBSERVER_H_
class NotificationDetails;
class NotificationSo... | Add forgotted notification observer header. | Add forgotted notification observer header.
git-svn-id: http://src.chromium.org/svn/trunk/src@9021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: b3590333382a99d18cc057bc509052629f21e87a | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... | |
31f6b273a304341c71bbae34ba4b665d59b3ab72 | include/platform/time_mach.h | include/platform/time_mach.h | #ifndef __TIME_MACH_H__
#define __TIME_MACH_H__
#include "config.h" // macros, bool, uint[XX]_t
#include <mach/clock.h> // clock_serv_t, mach_timespec_t, etc.
#include <mach/mach.h> // mach_port_deallocate
static inline uint64_t get_time(void)
{
static float adj_const = 0.0F;
// Cache the value (it doesn't change... | #ifndef __TIME_MACH_H__
#define __TIME_MACH_H__
#include "config.h" // macros, bool, uint[XX]_t
#include <mach/clock.h> // clock_serv_t, mach_timespec_t, etc.
#include <mach/mach.h> // mach_port_deallocate
#include <mach/mach_time.h>
static inline uint64_t get_time(void)
{
static float adj_const = 0.0F;
// Cache ... | Fix build on OS X. | Fix build on OS X.
| C | bsd-3-clause | foxkit-us/supergameherm,supergameherm/supergameherm |
905628048f5306cb5cc96e24eda40e86c6b44c62 | src/dialogwindow.h | src/dialogwindow.h | #pragma once
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/theme.h>
class EditorGUI;
class Structure;
class DialogWindow : public nanogui::Window {
public:
DialogWindow(EditorGUI *screen, nanogui::Theme *theme);
nanogui::Window *getWindow() { return this; }
Structure *structure() { re... | #pragma once
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/theme.h>
class EditorGUI;
class Structure;
class DialogWindow : public nanogui::Window {
public:
DialogWindow(EditorGUI *screen, nanogui::Theme *theme);
nanogui::Window *getWindow() { return this; }
Structure *structure() { re... | Fix crash due to uninitialised pointer when displaying a dialog | Fix crash due to uninitialised pointer when displaying a dialog
| C | bsd-3-clause | latproc/humid,latproc/humid |
576dcaaa52ba9ca3550d887e358faa0e31c8cf6b | OrbitCaptureGgpClient/include/OrbitCaptureGgpClient/OrbitCaptureGgpClient.h | OrbitCaptureGgpClient/include/OrbitCaptureGgpClient/OrbitCaptureGgpClient.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_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_
#define ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_
#include <string>
#include <ve... | // 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_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_
#define ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_
#include <memory>
#include <st... | Solve build error in presubmit | Solve build error in presubmit
Missing include in file.
| C | bsd-2-clause | google/orbit,google/orbit,google/orbit,google/orbit |
b08be4f10886231672844974d8671ddd47276dc7 | generic/include/clc/clcfunc.h | generic/include/clc/clcfunc.h | #define _CLC_OVERLOAD __attribute__((overloadable))
#define _CLC_DECL
#define _CLC_DEF __attribute__((always_inline))
#define _CLC_INLINE __attribute__((always_inline)) static inline
| #define _CLC_OVERLOAD __attribute__((overloadable))
#define _CLC_DECL
#define _CLC_DEF __attribute__((always_inline))
#define _CLC_INLINE __attribute__((always_inline)) inline
| Remove the static keyword from the _CLC_INLINE macro | Remove the static keyword from the _CLC_INLINE macro
static functions are not allowed in OpenCL C
git-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@184986 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc |
686d82dc92be619255669c99ad2d67eb3f8850b0 | src/math/p_sinh.c | src/math/p_sinh.c | #include <pal.h>
/*
* sinh z = (exp z - exp(-z)) / 2
*/
static inline float _p_sinh(const float z)
{
float exp_z;
p_exp_f32(&z, &exp_z, 1);
return 0.5f * (exp_z - 1.f / exp_z);
}
/**
*
* Calculates the hyperbolic sine of the vector 'a'. Angles are specified
* in radians.
*
* @param a Pointer to... | #include <pal.h>
#include "p_exp.h"
/*
* sinh z = (exp z - exp(-z)) / 2
*/
static inline float _p_sinh(const float z)
{
float exp_z = _p_exp(z);
return 0.5f * (exp_z - 1.f / exp_z);
}
/**
*
* Calculates the hyperbolic sine of the vector 'a'. Angles are specified
* in radians.
*
* @param a Pointer ... | Use the inline exponential function. | math:sinh: Use the inline exponential function.
Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
| C | apache-2.0 | debug-de-su-ka/pal,mateunho/pal,Adamszk/pal3,olajep/pal,Adamszk/pal3,eliteraspberries/pal,aolofsson/pal,8l/pal,parallella/pal,eliteraspberries/pal,8l/pal,aolofsson/pal,aolofsson/pal,8l/pal,Adamszk/pal3,parallella/pal,aolofsson/pal,Adamszk/pal3,mateunho/pal,olajep/pal,olajep/pal,debug-de-su-ka/pal,olajep/pal,debug-de-su... |
f3f4b0e1ab4904f6a1d9011d9abc7735e65b458c | nbdump.c | nbdump.c | #include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/ethernet.h>
#include <unistd.h>
#include <arpa/inet.h>
// The default size is enought to hold a whole ethernet frame (< 1524 bytes)
#ifndef PACKET_BUFFER_SIZE
#define PACKET_BUFFER_SIZE 2048
#endif
static void print_p... | #include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/ethernet.h>
#include <unistd.h>
#include <arpa/inet.h>
// The default size is enought to hold a whole ethernet frame (< 1524 bytes)
#ifndef PACKET_BUFFER_SIZE
#define PACKET_BUFFER_SIZE 2048
#endif
static void print_p... | Fix indentation by using tabs only | Fix indentation by using tabs only
| C | mit | grn/netbox,grn/netbox |
497c4be23046de14c1a0c64a39abbbb0a0c19259 | firmware/2016/headers/pins.h | firmware/2016/headers/pins.h | #ifndef Pins_h
#define Pins_h
/*Motor pins*/
int PWMA = 9;
int AIN1 = 8;
int AIN2 = 7;
int PWMB = 10;
int BIN1 = 4;
int BIN2 = 5;
int STDBY = 6;
/*Encoder pins*/
int channelA = 3; //TX = 3
int channelB = 2; //RX = 2
/*Radio pins*/
int CE = A1; //pro micro
int CS = A0; //pro micro
//int CE = 3; //nano
//int CS = 2;... | Put all pin information in a single header. | Put all pin information in a single header.
| C | mit | unball/ieee-very-small,unball/ieee-very-small,unball/ieee-very-small,unball/ieee-very-small | |
d4441a0e7d10767b97776fd3046382492132f407 | src/Article.h | src/Article.h | #ifndef _ARTICLE_H
#define _ARTICLE_H
#include <string>
#include <vector>
/*!
* represents a Wikipedia (Mediawiki) and its links
*/
class Article
{
public:
typedef std::vector<Article*> ArticleLinkStorage;
typedef std::vector<Article*>::const_iterator ArticleLinkIterator;
/*! Create a n... | #ifndef _ARTICLE_H
#define _ARTICLE_H
#include <string>
#include <vector>
/*!
* represents a Wikipedia (Mediawiki) and its links
*/
class Article
{
public:
//! representation of links to other articles
typedef std::vector<Article*> ArticleLinkStorage;
//! representation of iterator over ... | Add modifying article link iterator typedef | Add modifying article link iterator typedef
| C | mit | dueringa/WikiWalker |
6b3e11bc4cf463b18cd091b5e083d80ec8458e78 | src/logging.c | src/logging.c | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
void rsp_log(char* format, ...)
{
char without_ms[64];
char with_ms[64];
struct timeval tv;
struct tm *tm;
gettimeofday(&tv, NULL);
if ((tm = localtime(&tv... | #include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
void rsp_log(char* format, ...)
{
char without_ms[64];
char with_ms[64];
struct timeval tv;
struct tm *tm;
gettimeofday(&tv, NULL);
if ((tm = localtime(&tv... | Add a newline to the end of our log messages | Add a newline to the end of our log messages
| C | mit | gpjt/rsp,gpjt/rsp,gpjt/rsp |
95ee667503b8b3123951242e3f7b93598cb9f9b9 | test/CodeGen/2003-08-18-SigSetJmp.c | test/CodeGen/2003-08-18-SigSetJmp.c | // RUN: %clang -S -emit-llvm %s -o /dev/null
// XFAIL: mingw,win32
#include <setjmp.h>
sigjmp_buf B;
int foo() {
sigsetjmp(B, 1);
bar();
}
| // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o /dev/null
#define _JBLEN ((9 * 2) + 3 + 16)
typedef int sigjmp_buf[_JBLEN + 1];
int sigsetjmp(sigjmp_buf env, int savemask);
sigjmp_buf B;
int foo() {
sigsetjmp(B, 1);
bar();
}
| Remove the need for a header and specify a triple so that the type sizes make sense. | Remove the need for a header and specify a triple so that the type
sizes make sense.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136309 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
ac74c205b0faa35640922b55095f27913fc2158c | misc/clang_cast_align.c | misc/clang_cast_align.c | #include <stdio.h>
#include <stdlib.h>
struct dummy {
double d;
};
int main(int argc, char *argv[]) {
struct dummy *d;
char *p;
(void) argc; (void) argv;
/* This causes a warning with clang -Wcast-align:
*
* clang_cast_align.c:13:6: warning: cast from 'char *' to 'struct dummy *' increases required alignme... | Add example of suppressing clang -Wcast-align | Add example of suppressing clang -Wcast-align
| C | mit | svaarala/duktape,reqshark/duktape,nivertech/duktape,kphillisjr/duktape,sloth4413/duktape,reqshark/duktape,sloth4413/duktape,svaarala/duktape,reqshark/duktape,zeropool/duktape,jmptrader/duktape,tassmjau/duktape,chenyaqiuqiu/duktape,zeropool/duktape,reqshark/duktape,harold-b/duktape,kphillisjr/duktape,harold-b/duktape,ma... | |
9be47d768eb967add11f6ac218ccb49973f9d5ee | src/main.c | src/main.c | int main()
{
return 0;
}
| #include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
const char usage[] = "Usage: %s <filenname>\n";
#define READ_SIZE 2048
int main(int argc, char *argv[])
{
if (argc != 2) {
printf(usage, argv[0]);
return 1;
}
//FILE *file = fopen(argv[1], "r");
int fd = open(argv[1], O_RDONLY);
char buf[READ_SIZE];... | Read file passed as argv[1] | Read file passed as argv[1]
| C | mit | orodley/imgprint |
070f63791af1c9190388ee715a2c9c0b68bc9b2c | machine/include/diag.h | machine/include/diag.h | #ifndef KERN_DIAG
#define KERN_DIAG
#include <stdarg.h>
void panic(const char* diagnostic_message, ...);
void shutdown() __attribute__((noreturn));
extern void hang_machine() __attribute__((noreturn));
#ifdef DEBUG
#define assert(x) if (!(x)) panic("Assertion failed: " __FILE__ ":%u: " #x, __LINE__)
#else
#define a... | #ifndef KERN_DIAG
#define KERN_DIAG
#include <stdarg.h>
void panic(const char* diagnostic_message, ...) __attribute__((noreturn));
void shutdown() __attribute__((noreturn));
extern void hang_machine() __attribute__((noreturn));
#ifdef DEBUG
#define assert(x) if (!(x)) panic("Assertion failed: " __FILE__ ":%u: " #x,... | Declare panic function as noreturn | machine: Declare panic function as noreturn
| C | bsd-2-clause | cksystemsteaching/selfie,cksystemsteaching/selfie,cksystemsteaching/selfie |
60890cc60ccfc7000791a47f1f3d69fdb8884dd7 | compat/win32mmap.c | compat/win32mmap.c | #include "../git-compat-util.h"
void *git_mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset)
{
HANDLE hmap;
void *temp;
size_t len;
struct stat st;
uint64_t o = offset;
uint32_t l = o & 0xFFFFFFFF;
uint32_t h = (o >> 32) & 0xFFFFFFFF;
if (!fstat(fd, &st))
len = xsize_t(st.st_size);
... | #include "../git-compat-util.h"
void *git_mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset)
{
HANDLE hmap;
void *temp;
off_t len;
struct stat st;
uint64_t o = offset;
uint32_t l = o & 0xFFFFFFFF;
uint32_t h = (o >> 32) & 0xFFFFFFFF;
if (!fstat(fd, &st))
len = st.st_size;
else
di... | Fix "Out of memory? mmap failed" for files larger than 4GB on Windows | Fix "Out of memory? mmap failed" for files larger than 4GB on Windows
The git_mmap implementation was broken for file sizes that wouldn't fit
into a size_t (32 bits). This was caused by intermediate variables that
were only 32 bits wide when they should be 64 bits.
Signed-off-by: Johannes Sixt <fd432345609ae4d58c1aa... | C | mit | destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git |
38c576c56e89b6dd232d3c072a1294cd1e519135 | test/CFrontend/2007-11-07-CopyAggregateAlign.c | test/CFrontend/2007-11-07-CopyAggregateAlign.c | // RUN: %llvmgcc -S %s -o - | grep "align 2" | count 6
struct A { char s, t, u, v; short a; };
void q() { struct A a, b; a = b; }
| Check that the first and third characters, s and u, are accessed with an alignment of 2 not 1. | Check that the first and third characters, s and u,
are accessed with an alignment of 2 not 1.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@43932 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/... | |
2964992cd8409df9870b8c38e95261c56b58145b | src/appjs_window.h | src/appjs_window.h | #ifndef APPJS_WINDOW_H
#define APPJS_WINDOW_H
#pragma once
#include "appjs.h"
// GTK+ binding for linux
#if defined(__LINUX__)
#include "linux/mainwindow.h"
#endif /* end of linux */
// GTK+ binding for linux
#if defined(__WIN__)
#include "linux/mainwindow.h"
#endif /* end of linux */
namespace appjs {
using ... | #ifndef APPJS_WINDOW_H
#define APPJS_WINDOW_H
#pragma once
#include "appjs.h"
// GTK+ binding for linux
#if defined(__LINUX__)
#include "linux/mainwindow.h"
#endif /* end of linux */
// Windows necessary files
#if defined(__WIN__)
#include "windows/mainwindow.h"
#endif /* end of windows */
namespace appjs {
u... | Copy paste always introduce bugs:| | Copy paste always introduce bugs:|
| C | mit | milani/appjs,appjs/appjs,milani/appjs,modulexcite/appjs,imshibaji/appjs,SaravananRajaraman/appjs,yuhangwang/appjs,eric-seekas/appjs,tempbottle/appjs,imshibaji/appjs,imshibaji/appjs,SaravananRajaraman/appjs,modulexcite/appjs,yuhangwang/appjs,tempbottle/appjs,reekoheek/appjs,SaravananRajaraman/appjs,yuhangwang/appjs,modu... |
06d59e057530edb17d4532fb92bdbf7599c98339 | Firmware/Src/board_id.c | Firmware/Src/board_id.c | #include "board_id.h"
//FIXME rm
#include "iprintf.h"
#include <stdint.h>
/**
* Returns an approximate GUID (in STM32 land) based on a bunch of fabrication-related metadata.
*
* See Technical Reference Manual pg933 ("Unique device ID register") for address and explanation.
* First 32 bits are wafer X Y coordinat... | #include "board_id.h"
//FIXME rm
#include "iprintf.h"
#include <stdint.h>
/**
* Returns an approximate GUID (in STM32 land) based on a bunch of fabrication-related metadata.
*
* See Technical Reference Manual pg933 ("Unique device ID register") for address and explanation.
* First 32 bits are wafer X Y coordinat... | Switch to wafer X/Y for board ID | Switch to wafer X/Y for board ID
| C | mit | borgel/sympetrum-v2,borgel/sympetrum-v2 |
a68fe89852145287bff6727effe9a7e7b680c017 | framework/include/base/MeshChangedInterface.h | framework/include/base/MeshChangedInterface.h | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | Remove unused header, switch header to fwd decl | Remove unused header, switch header to fwd decl
| C | lgpl-2.1 | bwspenc/moose,SudiptaBiswas/moose,dschwen/moose,laagesen/moose,dschwen/moose,yipenggao/moose,idaholab/moose,idaholab/moose,andrsd/moose,harterj/moose,bwspenc/moose,andrsd/moose,jessecarterMOOSE/moose,idaholab/moose,dschwen/moose,idaholab/moose,laagesen/moose,Chuban/moose,lindsayad/moose,lindsayad/moose,bwspenc/moose,Ya... |
a3c982089a1443e909ebf8d6cf9be88f23c1f452 | libutils/include/utils/assume.h | libutils/include/utils/assume.h | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _UTILS_ASSUME_H
#define _UTILS_ASSUME_H
#include <utils/builtin.h>
/* This... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef _UTILS_ASSUME_H
#define _UTILS_ASSUME_H
#include <utils/attribute.h>
#inclu... | Add dedicated macros to indicate hot and cold execution paths. | libutils: Add dedicated macros to indicate hot and cold execution paths.
| C | bsd-2-clause | agacek/util_libs,agacek/util_libs,agacek/util_libs,agacek/util_libs |
a69d4d917316e4123ec6510845d21ae53b3ecf45 | src/config.h | src/config.h | //===----------------------------- config.h -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//
// Defines macros used within the libc++a... | //===----------------------------- config.h -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//
// Defines macros used within the libc++a... | Allow LIBCXXABI_SINGLE_THREADED to be defined by build scripts | Allow LIBCXXABI_SINGLE_THREADED to be defined by build scripts
git-svn-id: 6a9f6578bdee8d959f0ed58970538b4ab6004734@216952 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi |
2de28b4ab779c0d530f4381ebc5dd48ed2ebc29b | android/jni/InteriorsExplorer/View/InteriorStreamingDialogView.h | android/jni/InteriorsExplorer/View/InteriorStreamingDialogView.h | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include "IInteriorStreamingDialogView.h"
#include "InteriorsExplorerViewIncludes.h"
#include "AndroidNativeState.h"
namespace ExampleApp
{
namespace InteriorsExplorer
{
namespace View
{
class InteriorStreamingDi... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#pragma once
#include "IInteriorStreamingDialogView.h"
#include "InteriorsExplorerViewIncludes.h"
#include "AndroidNativeState.h"
namespace ExampleApp
{
namespace InteriorsExplorer
{
namespace View
{
class InteriorStreamingDi... | Fix naming concern from previous commit. Buddy: Sam | Fix naming concern from previous commit. Buddy: Sam
| C | bsd-2-clause | wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/w... |
166d113686fd20cd8e0bf6e5b4f2ac92e24765a4 | interface/cecp_features.h | interface/cecp_features.h | #ifndef _CECP_FEATURES_H
#define _CECP_FEATURES_H
#include <stdio.h>
/* Features of the Chess Engine Communication Protocol supported by this program */
const char *cecp_features[] =
{
"done=0",
"usermove=1",
"time=0",
"draw=0",
"sigint=0",
"analyze=0",
"variants=\"\"",
"name=0",
"... | #ifndef _CECP_FEATURES_H
#define _CECP_FEATURES_H
#include <stdio.h>
/* Features of the Chess Engine Communication Protocol supported by this program */
const char *cecp_features[] =
{
"done=0",
"usermove=1",
"time=0",
"draw=0",
"sigint=0",
"analyze=0",
"variants=\"normal\"",
"colors=0... | Support variant 'normal' and don't expect xboard to send colors | Support variant 'normal' and don't expect xboard to send colors
| C | mit | gustafullberg/drosophila,gustafullberg/drosophila,gustafullberg/drosophila |
d4df4c06fc37543ddb37d47e70fa7a3fd7544212 | include/tesseract/platform.h | include/tesseract/platform.h | ///////////////////////////////////////////////////////////////////////
// File: platform.h
// Description: Place holder
//
// (C) Copyright 2006, 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... | ///////////////////////////////////////////////////////////////////////
// File: platform.h
// Description: Place holder
//
// (C) Copyright 2006, 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... | Add missing definition for TESS_API | Add missing definition for TESS_API
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | stweil/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,stweil/tesseract,tesseract-ocr/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,stweil/tesseract,UB-Ma... |
fecda7a99c7dc2d44e2652a9158dfa86b997afab | test/ASTMerge/codegen-body.c | test/ASTMerge/codegen-body.c | // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/body1.c
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/body2.c
// RUN: %clang_cc1 -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast %s
// expected-no-diagnostics
| // XFAIL: hexagon
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/body1.c
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/body2.c
// RUN: %clang_cc1 -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast %s
// expected-no-diagnostics
| Revert "[Hexagon] Test passes for hexagon target now that the backend correctly generates relocations." | Revert "[Hexagon] Test passes for hexagon target now that the backend correctly generates relocations."
This reverts commit r238754.
It depends on r238748, which was reverted.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@238773 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
915afec8f2eb56ad3fb89cedf8b6b6dda363164a | ui/app_list/app_list_export.h | ui/app_list/app_list_export.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_APP_LIST_APP_LIST_EXPORT_H_
#define UI_APP_LIST_APP_LIST_EXPORT_H_
#pragma once
// Defines APP_LIST_EXPORT so that functionality implement... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_APP_LIST_APP_LIST_EXPORT_H_
#define UI_APP_LIST_APP_LIST_EXPORT_H_
#pragma once
// Defines APP_LIST_EXPORT so that functionality implement... | Change the way _EXPORT macros look, app_list edition | Change the way _EXPORT macros look, app_list edition
I missed this in https://chromiumcodereview.appspot.com/10386108/ . Thanks to tfarina for noticing.
BUG=90078
TEST=none
TBR=ben
Review URL: https://chromiumcodereview.appspot.com/10377151
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@137221 0039d316-1c4b-4... | C | bsd-3-clause | mogoweb/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,anirudhSK/chromium,Chilledheart/chromium,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,keishi/chromium,axinging/chromium-crosswalk,M4sse... |
015f3526ea6d0b24900b72ad01c1abd730555136 | tests/mypaint-test-surface.h | tests/mypaint-test-surface.h | #ifndef MYPAINTTESTSURFACE_H
#define MYPAINTTESTSURFACE_H
#include <mypaint-surface.h>
typedef MyPaintSurface * (*MyPaintTestsSurfaceFactory)(gpointer user_data);
int
mypaint_test_surface_run(int argc, char **argv,
MyPaintTestsSurfaceFactory surface_factory,
gchar *title, ... | #ifndef MYPAINTTESTSURFACE_H
#define MYPAINTTESTSURFACE_H
#include <mypaint-surface.h>
#include <mypaint-glib-compat.h>
G_BEGIN_DECLS
typedef MyPaintSurface * (*MyPaintTestsSurfaceFactory)(gpointer user_data);
int
mypaint_test_surface_run(int argc, char **argv,
MyPaintTestsSurfaceFactory surfa... | Add missing extern "C" declaration to header | brushlib/test: Add missing extern "C" declaration to header
| C | isc | b3sigma/libmypaint,achadwick/libmypaint,b3sigma/libmypaint,achadwick/libmypaint,b3sigma/libmypaint,achadwick/libmypaint,achadwick/libmypaint |
25355d2169bb43eb07b9a60a2f9e4c0436cf906a | vm/external_libs/libtommath/bn_mp_exch.c | vm/external_libs/libtommath/bn_mp_exch.c | #include <tommath.h>
#ifdef BN_MP_EXCH_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
* LibTomMath is a library that provides multiple-precision
* integer arithmetic as well as number theoretic functionality.
*
* The library was designed directly after the MPI library by
* Michael Fromberge... | #include <tommath.h>
#ifdef BN_MP_EXCH_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
* LibTomMath is a library that provides multiple-precision
* integer arithmetic as well as number theoretic functionality.
*
* The library was designed directly after the MPI library by
* Michael Fromberge... | Fix argument order in mp_exch | Fix argument order in mp_exch
| C | bsd-3-clause | heftig/rubinius,Wirachmat/rubinius,dblock/rubinius,Azizou/rubinius,heftig/rubinius,Azizou/rubinius,ruipserra/rubinius,travis-repos/rubinius,jemc/rubinius,slawosz/rubinius,Wirachmat/rubinius,slawosz/rubinius,dblock/rubinius,pH14/rubinius,ngpestelos/rubinius,travis-repos/rubinius,benlovell/rubinius,lgierth/rubinius,pH14/... |
ddfc46de06300cd223ccd6503ff97a29af474303 | src/driver_control/dc_dump.c | src/driver_control/dc_dump.c | void dc_dump() {
if (vexRT[Btn7U])
dump_set(-127);
else if (vexRT[Btn7D])
dump_set(127);
else
dump_set(0);
}
| void dc_dump() {
if (vexRT[Btn6U])
dump_set(-127);
else if (vexRT[Btn6D])
dump_set(127);
else if (vexRT[Btn5U])
dump_set(-15);
else
dump_set(0);
}
| Change dump buttons and add hold button | Change dump buttons and add hold button
| C | mit | qsctr/vex-4194b-2016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.