commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
702bc06cd7418160e2592cc2a5dae386c6faf227
snake.c
snake.c
#include <stdlib.h> /** * @author: Hendrik Werner */ #define BOARD_HEIGHT 50 #define BOARD_WIDTH 50 typedef struct Position { int row; int col; } Position; typedef enum Cell { EMPTY ,SNAKE ,FOOD } Cell; typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH]; typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;...
#include <stdlib.h> /** * @author: Hendrik Werner */ #define BOARD_HEIGHT 50 #define BOARD_WIDTH 50 typedef struct Position { int row; int col; } Position; typedef enum Cell { EMPTY ,SNAKE ,FOOD } Cell; typedef Cell Board[BOARD_HEIGHT][BOARD_WIDTH]; typedef enum Direction {LEFT, UP, RIGHT, DOWN} Direction;...
Add a function to stringify boards.
Add a function to stringify boards.
C
mit
Hendrikto/Snake
6f3db08828b139d50b6f91a8fd87e8b3b18fbf1f
stack.c
stack.c
#include "stack.h" struct Stack { size_t size; size_t top; void** e; } Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { retur...
#include "stack.h" struct Stack { size_t size; size_t top; void** e; }; Stack* Stack_Create(size_t n) { Stack* s = (Stack *)malloc(sizeof(Stack)); s->size = n; s->top = 0; s->e = (void**)malloc(sizeof(void*) * (n + 1)); return s; } int Stack_Empty(Stack* s) { if (s->top == 0) { return 1; } else { retu...
Fix missing ; in struct implementation
Fix missing ; in struct implementation
C
mit
MaxLikelihood/CADT
41886d53f3c007f5a23781361e3b638afb62ea6d
Include/node.h
Include/node.h
/* Parse tree node interface */ #ifndef Py_NODE_H #define Py_NODE_H #ifdef __cplusplus extern "C" { #endif typedef struct _node { short n_type; char *n_str; int n_lineno; int n_nchildren; struct _node *n_child; } node; extern DL_IMPORT(node *) PyNode_New(int type); extern DL_IMPORT(int) Py...
/* Parse tree node interface */ #ifndef Py_NODE_H #define Py_NODE_H #ifdef __cplusplus extern "C" { #endif typedef struct _node { short n_type; char *n_str; int n_lineno; int n_nchildren; struct _node *n_child; } node; extern DL_IMPORT(node *) PyNode_New(int type); extern DL_IMPORT(int) Py...
Use an assert() for the REQ() macro instead of making up our own assertion.
Use an assert() for the REQ() macro instead of making up our own assertion.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
810f19c8fd7b21a8ba65bc510b8b38e8b19f7aba
src/DGLCommon/gl-headers.h
src/DGLCommon/gl-headers.h
#ifndef GL_HEADERS_H #define GL_HEADERS_H #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define WINGDIAPI KHRONOS_APICALL #define APIENTRY KHRONOS_APIENTRY #endif #include <codegen/input/egl.h> #include <codegen/input/eglext.h> #include <codegen/input/GL.h> #include <codegen/input...
#ifndef GL_HEADERS_H #define GL_HEADERS_H #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #define WINGDIAPI KHRONOS_APICALL #define APIENTRY KHRONOS_APIENTRY #endif #include <codegen/input/egl.h> #include <codegen/input/eglext.h> #include <codegen/input/GL.h> #include <codegen/input...
Include glx as a gl-header
Include glx as a gl-header
C
apache-2.0
scygan/debugler,scygan/debugler,scygan/debugler,scygan/debugler
f1e39690cf85b947ed6ccb1c12315b79f83708bb
433Rx/Device.h
433Rx/Device.h
// Copyright 2014-2016 the project authors as listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by the // license that can be found in the LICENSE file. #ifndef _DEVICE #define _DEVICE #include "MessageQueue.h" #include "DeviceMessageHandler.h" typedef struct MessageHandlerList...
// Copyright 2014-2016 the project authors as listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by the // license that can be found in the LICENSE file. #ifndef _DEVICE #define _DEVICE #include "MessageQueue.h" #include "DeviceMessageHandler.h" #ifdef __arm__ #define INTERRUPT_...
Add back missing platform defines
Add back missing platform defines
C
mit
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
6ea747689679605c90dc4fa109a6988ccc10ff48
application/tools/linux/xwalk_tizen_user.c
application/tools/linux/xwalk_tizen_user.c
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <unistd.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <errno.h> #include <pwd.h> int xwalk_tiz...
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <unistd.h> #include <sys/types.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <errno.h> #include <p...
Fix warning about missing strcmp() definition
[Application][Tools] Fix warning about missing strcmp() definition The #include <string.h> directive was missing.
C
bsd-3-clause
jondwillis/crosswalk,ZhengXinCN/crosswalk,fujunwei/crosswalk,leonhsl/crosswalk,heke123/crosswalk,PeterWangIntel/crosswalk,hgl888/crosswalk,pk-sam/crosswalk,chuan9/crosswalk,minggangw/crosswalk,Pluto-tv/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,minggangw/crosswalk,dreamsxin/crosswalk,XiaosongWei/crosswalk,baleboy/cr...
aa5d17c0a52530b387ff6819b2cc5d2afd4eb38c
plugins/stardict/file.h
plugins/stardict/file.h
/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
Use the tenary operator instead of a simple if/else inside an inline function
Use the tenary operator instead of a simple if/else inside an inline function
C
lgpl-2.1
KDE/mula,KDE/mula
64dbdcce076a64f7bcfd83ddf7e6f6440c004556
types.h
types.h
#ifndef BFC_TYPES_H #define BFC_TYPES_H #ifndef __cplusplus # include <stdint.h> #else # include <cstdint> #endif typedef bfc_cell uint8_t; #endif /* !BFC_TYPES_H */
#ifndef BFC_TYPES_H #define BFC_TYPES_H #ifndef __cplusplus # include <stdint.h> #else # include <cstdint> #endif typedef bf_value uint8_t; #endif /* !BFC_TYPES_H */
Change basic cell type name to bf_value.
Change basic cell type name to bf_value.
C
mit
bassettmb/bfc,bassettmb/bfc
51f9648c1af205b9822a1dfe220c825eef07a2cc
test2/inline/static_local.c
test2/inline/static_local.c
// RUN: %check %s // extern extern inline int f() { static int i; return i++; } // static static inline int h() { static int i; return i++; } // neither inline int g() { static int i; // CHECK: warning: static variable in pure-inline function - may differ per file return i++; } // neither, but const inline 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
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
39f66ecf2685e1d7a4d0bbe16d8db87e08e91ed9
net/proxy/proxy_resolver_mac.h
net/proxy/proxy_resolver_mac.h
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
Fix a typo, that could cause a crash on mac.
Fix a typo, that could cause a crash on mac. BUG=50717 TBR=rvargas TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash. Review URL: http://codereview.chromium.org/3023030 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@54279 0039d316-1c4b-4281-b951-d872f2087c9...
C
bsd-3-clause
ropik/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/...
f2570192b6ea925e0db5957719525ebd144e0037
common/osdep.h
common/osdep.h
/***************************************************************************** * osdep.h: ***************************************************************************** * Copyright (C) 2010 L-SMASH project * * Authors: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com> * Takashi Hirata <silverfilain@gmail.co...
/***************************************************************************** * osdep.h: ***************************************************************************** * Copyright (C) 2010 L-SMASH project * * Authors: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com> * Takashi Hirata <silverfilain@gmail.co...
Remove redundant declaration of lsmash_fseek.
Remove redundant declaration of lsmash_fseek.
C
isc
mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,silverfilain/L-SMASH,canbal/l-smash,dwbuiten/l-smash,dwbuiten/l-smash,maki-rxrz/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,maki-rxrz/L-SMASH,l-smash/l-smash,canbal/l-smash
ece0b186333657c94cd50148fbf10802a052d214
debugger/tui.h
debugger/tui.h
#ifndef DEBUGGER_TUI_H #define DEBUGGER_TUI_H #include "asic.h" char **tui_parse_commandline(const char *, int *); void tui_tick(asic_t *asic); #endif
#ifndef DEBUGGER_TUI_H #define DEBUGGER_TUI_H #include "asic.h" char **tui_parse_commandline(const char *, int *); #ifndef EMSCRIPTEN void tui_tick(asic_t *asic); #endif #endif
Add ifs around TUI function not available in emscripten
Add ifs around TUI function not available in emscripten
C
mit
KnightOS/z80e,KnightOS/z80e
b0149a850e2209301304e67dd4fab34245fe0d70
include/perfetto/protozero/contiguous_memory_range.h
include/perfetto/protozero/contiguous_memory_range.h
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 Change-Id: Ib4ab16a01bcda43994c6d26f34d16e3579272cf6
C
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
13b6f22f0473917e11ed650282b9b118edb12b90
include/llvm/Analysis/BasicAliasAnalysis.h
include/llvm/Analysis/BasicAliasAnalysis.h
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
Tweak to work with new AA implementation
Tweak to work with new AA implementation git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5632 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/l...
ad2faeac06c7be527108d83cd8771b6c0f296257
tensorflow/cc/saved_model/tag_constants.h
tensorflow/cc/saved_model/tag_constants.h
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add SavedModel tag-constant for gpu.
Add SavedModel tag-constant for gpu. PiperOrigin-RevId: 159600621
C
apache-2.0
xodus7/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,jhseu/tensorflow,karllessard/tensorflow,unsiloai/syntaxnet-ops-hack,lukeiwanski/tensorflow,rabipanda/tensorflow,tensorflow/tensorflow-pywrap_saved_model,zycdragonball/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,zycdragonball/tensorflow,meteorcloudy/tensorfl...
f0705ea08c9c53f13113f60db2bea9786d7738bb
src/ee/common/UndoQuantumReleaseInterest.h
src/ee/common/UndoQuantumReleaseInterest.h
/* This file is part of VoltDB. * Copyright (C) 2008-2010 VoltDB Inc. * * VoltDB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
/* This file is part of VoltDB. * Copyright (C) 2008-2010 VoltDB Inc. * * VoltDB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
Fix compile error on CentOS
Fix compile error on CentOS
C
agpl-3.0
simonzhangsm/voltdb,flybird119/voltdb,kobronson/cs-voltdb,flybird119/voltdb,flybird119/voltdb,deerwalk/voltdb,wolffcm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,zuowang/voltdb,flybird119/voltdb,kumarrus/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,VoltDB/voltdb,zuowang/voltdb,migue/voltdb,simonzhangsm/voltdb,paulmart...
42078262c5a5a4203a3256d6b0ab16792c48a433
include/charset.h
include/charset.h
n/************************************************* * Character Set Handling Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_CHARSET_H__ #define BOTAN_CHARSET_H__ #include <botan/types.h> #include <botan/enums.h> #include <s...
/************************************************* * Character Set Handling Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_CHARSET_H__ #define BOTAN_CHARSET_H__ #include <botan/types.h> #include <botan/enums.h> #include <st...
Remove stray character introduced during merge
Remove stray character introduced during merge
C
bsd-2-clause
randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/b...
e0c021bfef7292524964b4ab61db5db65c49f6aa
atom/utility/atom_content_utility_client.h
atom/utility/atom_content_utility_client.h
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_ #define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_ #include <vector> #include "base/compiler_specific.h" #include "base/memory/sc...
// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_ #define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_ #include <vector> #include "base/compiler_specific.h" #include "base/memory/sc...
Fix compilation waring on Mac
Fix compilation waring on Mac
C
mit
shiftkey/electron,shiftkey/electron,the-ress/electron,renaesop/electron,rajatsingla28/electron,electron/electron,rreimann/electron,Floato/electron,renaesop/electron,tonyganch/electron,miniak/electron,brenca/electron,the-ress/electron,miniak/electron,tonyganch/electron,electron/electron,shiftkey/electron,renaesop/electr...
c7a41814a7f1a1519f107108233071646bd2fa6a
rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h
rosidl_typesupport_opensplice_cpp/include/rosidl_typesupport_opensplice_cpp/u__instanceHandle.h
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to TO_YEAR PrismTech * Limited, its affiliated companies and licensors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to TO_YEAR PrismTech * Limited, its affiliated companies and licensors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
Fix build issue on windows
Fix build issue on windows export function
C
apache-2.0
ros2/rmw_opensplice
b8e969093e83bccc053e2102674561776ef5ee44
evmjit/libevmjit/CompilerHelper.h
evmjit/libevmjit/CompilerHelper.h
#pragma once #include "preprocessor/llvm_includes_start.h" #include <llvm/IR/IRBuilder.h> #include "preprocessor/llvm_includes_end.h" namespace dev { namespace eth { namespace jit { class RuntimeManager; /// Base class for compiler helpers like Memory, GasMeter, etc. class CompilerHelper { protected: CompilerHelpe...
#pragma once #include "preprocessor/llvm_includes_start.h" #include <llvm/IR/IRBuilder.h> #include "preprocessor/llvm_includes_end.h" namespace dev { namespace eth { namespace jit { class RuntimeManager; /// Base class for compiler helpers like Memory, GasMeter, etc. class CompilerHelper { protected: CompilerHelpe...
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility.
Reimplement InsertPointGuard to avoid LLVM ABI incompatibility. In general, the NDEBUG flag should match cpp-ethereum and LLVM builds. But this is hard to satisfy as we usually have one system-wide build of LLVM and different builds of cpp-ethereum. This ABI incompatibility hit OSX only in release builds as LLVM is bu...
C
mit
johnpeter66/ethminer,smartbitcoin/cpp-ethereum,Sorceror32/.-git-clone-https-github.com-ethereum-cpp-ethereum,ethers/cpp-ethereum,expanse-project/cpp-expanse,yann300/cpp-ethereum,gluk256/cpp-ethereum,xeddmc/cpp-ethereum,PaulGrey30/.-git-clone-https-github.com-ethereum-cpp-ethereum,anthony-cros/cpp-ethereum,LefterisJP/we...
fd21da62c853499531eb95fc666cde55e70b1d41
Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h
Libs/PluginFramework/Testing/Cpp/ctkPluginFrameworkTestUtilExport.h
/*============================================================================= Library: CTK Copyright (c) 2010 German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
/*============================================================================= Library: CTK Copyright (c) 2010 German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
Fix export macro for plugin test utility library.
Fix export macro for plugin test utility library.
C
apache-2.0
commontk/CTK,finetjul/CTK,finetjul/CTK,sankhesh/CTK,CJGoch/CTK,commontk/CTK,msmolens/CTK,pieper/CTK,CJGoch/CTK,AndreasFetzer/CTK,rkhlebnikov/CTK,Sardge/CTK,jcfr/CTK,naucoin/CTK,rkhlebnikov/CTK,mehrtash/CTK,lassoan/CTK,151706061/CTK,mehrtash/CTK,commontk/CTK,espakm/CTK,SINTEFMedtek/CTK,pieper/CTK,danielknorr/CTK,jcfr/CT...
b3400badf022b4ff6f3545d1baa706affc22d93d
include/gpu/gl/SkMesaGLContext.h
include/gpu/gl/SkMesaGLContext.h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
Fix undefined GLint in Mac builds
Fix undefined GLint in Mac builds git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
geekboxzone/lollipop_external_chromium_org_third_party_skia,sombree/android_external_skia,rubenvb/skia,Purity-Lollipop/platform_external_skia,FusionSP/android_external_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,zhaochengw/platform_external_skia,aospo/platform_external...
b61ed65f563d19845a48554353ce46d79a39d44e
kode/kwsdl/wsdl/element.h
kode/kwsdl/wsdl/element.h
/* This file is part of KDE. Copyright (c) 2005 Tobias Koenig <tokoe@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
/* This file is part of KDE. Copyright (c) 2005 Tobias Koenig <tokoe@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at ...
Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721
Fix knode compilation on NetBSD. Patch by Mark Davies, thanks. BUG: 154721 svn path=/trunk/KDE/kdepim/; revision=753595
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
dfeaa08d905e605519683cb85d25976264941d61
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
Remove now somehow unnecessary empty mutex B section from 13/32
Remove now somehow unnecessary empty mutex B section from 13/32
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
163393732a9a781b6b057c39ee6b1e0c96b9d199
lib/Target/PowerPC/PPC32JITInfo.h
lib/Target/PowerPC/PPC32JITInfo.h
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------...
//===- PPC32JITInfo.h - PowerPC/Darwin JIT interface --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------...
Implement all of the methods
Implement all of the methods git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18142 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap...
730fae1f1d85b3fbe5c7cc35d89011228e441147
lib/objpipe/include/monsoon/objpipe/doc_.h
lib/objpipe/include/monsoon/objpipe/doc_.h
// Document groups and namespaces. ///\defgroup objpipe Object Pipes. /** * \defgroup objpipe_errors Object pipe error handling. * \ingroup objpipe */ /** * \defgroup objpipe_detail Object pipe implementation details. * \ingroup objpipe */ namespace monsooon { /** * \brief Namespace for object pipes. * * ...
// Document groups and namespaces. ///\defgroup objpipe Object Pipes /** * \defgroup objpipe_errors Object pipe error handling * \ingroup objpipe */ /** * \defgroup objpipe_detail Object pipe implementation details * \ingroup objpipe */ namespace monsooon { /** * \brief Namespace for object pipes. * * Obj...
Remove trailing dots in group definitions.
Remove trailing dots in group definitions.
C
bsd-2-clause
nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus
25910be18da219c4a5a6cd292e25eb8b1dd147ed
ipxe/local/general.h
ipxe/local/general.h
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define VLAN_CMD /* VLAN commands */
#define DIGEST_CMD /* Image crypto digest commands */ #define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ #define IMAGE_COMBOOT /* COMBOOT */ #define IMAGE_TRUST_CMD /* Image trust management commands */ #define NET_PROTO_IPV6 /* IPv6 protocol */ #define VLAN_CMD...
Add support for image trust commands
Add support for image trust commands
C
apache-2.0
antonym/netboot.xyz,antonym/netboot.xyz,Dedsec1/netboot.xyz,antonym/netboot.xyz,chris18890/netboot.xyz,chris18890/netboot.xyz,Dedsec1/netboot.xyz,Dedsec1/netboot.xyz
8b013deb4e9cd4130ece436909878b7ec7d90a60
src/shared/platform/win/nacl_exit.c
src/shared/platform/win/nacl_exit.c
/* * Copyright 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ #include <stdlib.h> #include <stdio.h> #include "native_client/src/include/portability.h" #include "native_client/src/shared/platform/nacl_ex...
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * be found in the LICENSE file. */ #include <stdlib.h> #include <stdio.h> #include "native_client/src/include/portability.h" #include "native_client/src/shared/platform/...
Remove printfs in exit path
Remove printfs in exit path Due to failures in Win7Atom I added printfs for debugging. This CL removes the printfs which should not be in the shipping code. TEST= all BUG= nacl1561 Review URL: http://codereview.chromium.org/6825057 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@4846 fcba33aa-ac0c-11dd-b9e7-8d...
C
bsd-3-clause
nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client
ac39ed3a80fd71af70de0222a9dd1545f4d59dea
implementation/Cuda/lbm_sailfish_hist/sim.h
implementation/Cuda/lbm_sailfish_hist/sim.h
#ifndef __SIM_H_ #define __SIM_H_ 1 #define GEO_FLUID 0 #define GEO_WALL 1 #define GEO_INFLOW 2 #define LAT_H 180 #define LAT_W 420 #define BLOCK_SIZE 64 struct Dist { float *fC, *fE, *fW, *fS, *fN, *fSE, *fSW, *fNE, *fNW; }; struct SimState { int *map, *dmap; // macroscopic quantities on the video card float ...
#ifndef __SIM_H_ #define __SIM_H_ 1 #define GEO_FLUID 0 #define GEO_WALL 1 #define GEO_INFLOW 2 #define LAT_H 180 #define LAT_W 420 #define BLOCK_SIZE 64 #ifdef USE_FLOATS #define double float #define __dadd_rn __fadd_rn #define __dmul_rn __fmul_rn #else #define float double #define __fadd_rn __dadd_rn #define __fmu...
Use doubles instead of floats ny default
Use doubles instead of floats ny default
C
mit
Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis,Dwii/Master-Thesis
729361e8dc2b79aee6c185a112b30fc0c99529ed
You-DataStore/internal/operation.h
You-DataStore/internal/operation.h
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: virtual ~IOperation(); ...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { namespace Internal { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: vir...
Move IOperation to Internal namespace
Move IOperation to Internal namespace
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
f1e2ac78eaa187d1ceabbb70883b2b9458580877
rest-extras/test-runner.c
rest-extras/test-runner.c
/* * librest - RESTful web services access * Copyright (C) 2009 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program ...
/* * librest - RESTful web services access * Copyright (C) 2009 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program ...
Add lastfm error handling to the test suite
Add lastfm error handling to the test suite
C
lgpl-2.1
GNOME/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,ThomasBollmeier/librest-oauth-proxy,Distrotech/librest,GNOME/librest,GNOME/librest
d7c9c58c7ef0b29fe6eb8c500e594aa99fbfdfef
security/nss/macbuild/NSSCommon.h
security/nss/macbuild/NSSCommon.h
/* Defines common to all versions of NSS */ #define NSPR20 1
/* Defines common to all versions of NSS */ #define NSPR20 1 #define MP_API_COMPATIBLE 1
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly.
Add the MP_API_COMPATIBLE for Mac builds so that MPI libraries build correctly.
C
mpl-2.0
nmav/nss,nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,nmav/nss
7c5ab46059bd8fa8bc1649a8dd6073161e703f9e
src/plat/win32/win32commandline.h
src/plat/win32/win32commandline.h
#ifndef __win32commandline_h__ #define __win32commandline_h__ #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <assert.h> #include "..\..\commandline.h" class CWin32CommandLine : public CCommandLine { public: CWin32CommandLine(); ~CWin32CommandLine(); public: virtu...
#ifndef __win32commandline_h__ #define __win32commandline_h__ #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <assert.h> #include "../../commandline.h" class CWin32CommandLine : public CCommandLine { public: CWin32CommandLine(); ~CWin32CommandLine(); public: virtu...
Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux
Replace backslashes in paths with slashes; should be compatible with both win32 compilers and mingw32 on linux
C
lgpl-2.1
MateuszSnamina/yacas,MateuszSnamina/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,martanoga/yacas,martanoga/yacas,martanoga/yacas,qwert2003/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,qwert2003/yacas,tomaszkrysiuk/yacas,grzeg...
0968bf9a8ad06572c068e0024fcc29bbf744ef04
demo/src/input.h
demo/src/input.h
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Move away from deprecated C++ APIs in the demo
Move away from deprecated C++ APIs in the demo A bit less cruft printed during tests which use it.
C
apache-2.0
google/autocxx,google/autocxx,google/autocxx,google/autocxx
9fd8c99a43beea140d4656bc5871ed2b0ea3328c
src/plugins/ccode/ccode.h
src/plugins/ccode/ccode.h
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #ifndef ELEKTRA_PLUGIN_CCODE_H #define ELEKTRA_PLUGIN_CCODE_H #include <kdbplugin.h> typedef struct { char encode[256]; char decode[256]; char escape; char * buf; size_t bufalloc; } CCodeData; ssize_t ke...
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #ifndef ELEKTRA_PLUGIN_CCODE_H #define ELEKTRA_PLUGIN_CCODE_H #include <kdbplugin.h> typedef struct { unsigned char encode[256]; unsigned char decode[256]; char escape; char * buf; size_t bufalloc; } CCod...
Use `unsigned char` for mapping
CCode: Use `unsigned char` for mapping
C
bsd-3-clause
e1528532/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,petermax2/libelektra,mpra...
cda59be9314833305fad936ca78f625d9e4e7de1
include/llvm/ExecutionEngine/Orc/JITSymbol.h
include/llvm/ExecutionEngine/Orc/JITSymbol.h
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===----------- JITSymbol.h - JIT symbol abstraction -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.
[Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@228564 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/ll...
f6f3aa060523c5f9b223e9d9665c266381cc2b6e
src/ios/GalleryAPI.h
src/ios/GalleryAPI.h
#import <AssetsLibrary/AssetsLibrary.h> #import <AssetsLibrary/ALAssetsGroup.h> #import <Cordova/CDVPlugin.h> @interface GalleryAPI : CDVPlugin - (void) getAlbums:(CDVInvokedUrlCommand*)command; - (void) getMedia:(CDVInvokedUrlCommand*)command; @end
#import <Photos/Photos.h> #import <Cordova/CDVPlugin.h> @interface GalleryAPI : CDVPlugin - (void) getAlbums:(CDVInvokedUrlCommand*)command; - (void) getMedia:(CDVInvokedUrlCommand*)command; @end
Move to new Photo API
[ios] Move to new Photo API
C
mit
subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api,subitolabs/cordova-gallery-api,subitolabs/cordova-gallery-api,SuryaL/cordova-gallery-api
c9200d420f8320a8d57437ae346b161dd092408a
kernel/x86/gdt.h
kernel/x86/gdt.h
#ifndef KERNEL_X86_GDT_H #define KERNEL_X86_GDT_H #define NULL_SEGMENT 0 #define KCODE_SEGMENT 1 #define KDATA_SEGMENT 2 #define SEGOFF(seg) (8 * seg) #ifndef ASM_FILE typedef struct GDTDesc GDTDesc; extern GDTDesc gdt_desc; void gdt_load(GDTDesc *); #endif #endif
#ifndef KERNEL_X86_GDT_H #define KERNEL_X86_GDT_H /** * Support for managing the Global Descriptor Table (GDT) * * GDT initialization in zero is trivial at runtime: the entire structure is * baked into the binary, ready to go, and the bringup code need only load the * GDT pointer. A simple call to: * * gdt_...
Add some comments to the GDT header.
Add some comments to the GDT header.
C
isc
zenhack/zero,zenhack/zero,zenhack/zero
05bf8903188764ffe423b03b72b8c2cb44eeb6b2
testmud/mud/home/Game/sys/subd.c
testmud/mud/home/Game/sys/subd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add difference delta measurement routine
Add difference delta measurement routine
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
33fbf34388889fb5e771f51f8c34ef39079f2aa3
micropython-1.5/stmhal/ledtask.c
micropython-1.5/stmhal/ledtask.c
#include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include STM32_HAL_H void LedTask(void *pvParameters) { /* GPIO structure */ GPIO_InitTypeDef GPIO_InitStructure; /* Configure I/O speed, mode, output type and pull */ GPIO_InitStructure.Pin = GPIO_PIN_5; GPIO_InitStructure.Mode = GPIO_MOD...
#include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include STM32_HAL_H void LedTask(void *pvParameters) { /* GPIO structure */ GPIO_InitTypeDef GPIO_InitStructure; /* Configure I/O speed, mode, output type and pull */ GPIO_InitStructure.Pin = GPIO_PIN_5; GPIO_InitStructure.Mode = GPIO_MOD...
Use HAL_Delay in LED Task
Use HAL_Delay in LED Task
C
mit
jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos,jaafarbarek/pyrtos
cebc280640017d412058c2bf40d31a5af3d82d32
Sources/Foundation/OCAFoundation.h
Sources/Foundation/OCAFoundation.h
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // /// Producers #import "OCAProducer.h" #import "OCACommand.h" #import "OCAHub.h" #import "OCAProperty.h" #import "OCAInvoker.h" #import "OCANotificator.h" #import "OCATimer...
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // /// Producers #import "OCAProducer.h" #import "OCACommand.h" #import "OCAHub.h" #import "OCAProperty.h" #import "OCATimer.h" #import "OCANotificator.h" /// Mediators #i...
Add missing classes to Foundation import
Add missing classes to Foundation import
C
mit
Tricertops/Objective-Chain,iMartinKiss/Objective-Chain
cde5e48b099ffafee3d30404f72871142959a494
test/test_trim.c
test/test_trim.c
#include <string_manip.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define TEST_STRS 4 char *test_strs_initial[TEST_STRS] = {" ", " a", "a ", " a "}; char *test_strs_correct[TEST_STRS] = {"", "a", "a", "a"}; int main() { int i; for(i = 0; i < TEST_STRS; i++) { char *dup...
#include <string_manip.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define TEST_STRS 6 char *test_strs_initial[TEST_STRS] = {"", " ", " a", "a ", " a ", " a a "}; char *test_strs_correct[TEST_STRS] = {"", "", "a", "a", "a", "a a"}; int main() { int i, result = 0; for(i = ...
Add more test cases to trim
Add more test cases to trim
C
mit
Coderlane/morse_translator
e682b4021995c43d257d0dda0a542723dfa35e68
src/common/timer.h
src/common/timer.h
#pragma once #include <boost/timer/timer.hpp> namespace marian { namespace timer { using Timer = boost::timer::cpu_timer; using AutoTimer = boost::timer::auto_cpu_timer; } }
#pragma once #include <boost/timer/timer.hpp> namespace marian { namespace timer { using Timer = boost::timer::cpu_timer; using AutoTimer = boost::timer::auto_cpu_timer; } }
Add new line at end
Add new line at end
C
mit
marian-nmt/marian-train,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,emjotde/Marian,emjotde/amunn,marian-nmt/marian-train,emjotde/amunn,amunmt/marian,amunmt/marian,emjotde/amunmt,emjotde/amunn,emjotde/Marian,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,marian-nmt/marian-train
2dc37817bc768b03dacbbe72503216f5e0c7f2a0
cpu/lm4f120/include/hwtimer_cpu.h
cpu/lm4f120/include/hwtimer_cpu.h
/* * Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa> * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup cpu_lm4f120 * @{ * * @file * @brief C...
/* * Copyright (C) 2015 Rakendra Thapa <rakendrathapa@gmail.coa> * * This file is subject to the terms and conditions of the GNU Lesser General * Public License v2.1. See the file LICENSE in the top level directory for more * details. */ /** * @ingroup cpu_lm4f120 * @{ * * @file * @brief C...
Modify to have C++ compatible header
Modify to have C++ compatible header
C
lgpl-2.1
stevenj/RIOT,rfuentess/RIOT,lebrush/RIOT,malosek/RIOT,adrianghc/RIOT,immesys/RiSyn,bartfaizoltan/RIOT,binarylemon/RIOT,jfischer-phytec-iot/RIOT,binarylemon/RIOT,avmelnikoff/RIOT,attdona/RIOT,abp719/RIOT,stevenj/RIOT,MonsterCode8000/RIOT,centurysys/RIOT,arvindpdmn/RIOT,RubikonAlpha/RIOT,DipSwitch/RIOT,adrianghc/RIOT,avm...
b6e07bbe538d0e7620b5f8c4786526f485e9c6fa
tests/addition_tests.c
tests/addition_tests.c
#include <check.h> #include "../src/roman_calculator.h" START_TEST(can_add_by_simple_repetition) { ck_assert_str_eq("II", roman_calculator_add("I", "I")); ck_assert_str_eq("III", roman_calculator_add("I", "II")); ck_assert_str_eq("XXX", roman_calculator_add("XX", "X")); ck_assert_str_eq("CC", roman_calculator_add...
#include <stdlib.h> #include <check.h> #include "../src/roman_calculator.h" void verify_addition(const char *left, const char *right, const char *expected_result) { char *actual_result = roman_calculator_add(left, right); ck_assert_msg( strcmp(expected_result, actual_result) == 0, "%s + %s: expected %s, but w...
Make sure to free memory in tests, and have better failure messages
Make sure to free memory in tests, and have better failure messages
C
mit
greghaskins/roman-calculator.c
231c752d99db285edc7cdfce77297ce63f23f34a
src/tconf.c
src/tconf.c
// Copyright 2017 Adam Cowdy // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2017 Adam Cowdy // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
Fix 'implicitly declaring library function 'malloc' ...' warning
Fix 'implicitly declaring library function 'malloc' ...' warning
C
apache-2.0
Acowdy/tconf
b36bf96bc95556d07cfa3c289beb51a998723d19
library/library_pch.h
library/library_pch.h
#pragma once #include "dependencies/tinyformat/tinyformat.h" #include <algorithm> #include <boost/algorithm/string/predicate.hpp> #include <boost/locale.hpp> #include <cstdint> #include <fstream> #include <glm/glm.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <iostream> #include <istream> #include <ite...
#pragma once #include "dependencies/tinyformat/tinyformat.h" #include <algorithm> #include <cstdint> #include <fstream> #include <glm/glm.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <map> #include <memory> #i...
Remove some rarely-used headers from library pch
Remove some rarely-used headers from library pch
C
mit
FranciscoDA/OpenApoc,Istrebitel/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc
c1289c7c8c4b373ca6682c3e33fa1f030b46685c
examples/blink_modular/Atm_blink.h
examples/blink_modular/Atm_blink.h
#ifndef Atm_blink_h #define Atm_blink_h #include <Automaton.h> class Atm_blink: public Machine { public: Atm_blink( void ) : Machine() { class_label = "BLNK"; }; short pin; atm_timer_millis timer; enum { LED_ON, LED_OFF } STATES; enum { EVT_TIMER, ELSE } EVENTS; enum { ACT_ON, ACT_OF...
#ifndef Atm_blink_h #define Atm_blink_h #include <Automaton.h> class Atm_blink: public Machine { public: Atm_blink( void ) : Machine() { class_label = "BLNK"; }; short pin; atm_timer_millis timer; enum { LED_ON, LED_OFF } STATES; enum { EVT_TIMER, ELSE } EVENTS; enum ...
Update blink_modular.ino: changed blinkrate argument to uint32_t
Update blink_modular.ino: changed blinkrate argument to uint32_t
C
mit
tinkerspy/Automaton,tinkerspy/Automaton
a0ff95bed586084cdbd693a3f71e902c7aafa7f2
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
Add restricted GPIO pins for FPGA testing
LPC55S69: Add restricted GPIO pins for FPGA testing
C
apache-2.0
kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed
9ff859ce71b1df689af6df4434ceddd7c107e8b1
apps/Empty/main.c
apps/Empty/main.c
/* * Copyright (c) 2008-2012 the MansOS team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of con...
/* * Copyright (c) 2008-2012 the MansOS team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of con...
Fix comment for Empty app
Fix comment for Empty app
C
mit
IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS,IECS/MansOS
f6cddeef0ef79460b257b86e6ffe5cb57534c28e
OneTimePasswordLegacy/OneTimePasswordLegacy.h
OneTimePasswordLegacy/OneTimePasswordLegacy.h
// // OneTimePasswordLegacy.h // OneTimePasswordLegacy // // Created by Matt Rubin on 7/10/14. // Copyright (c) 2014 Matt Rubin. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for OneTimePasswordLegacy. FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber; //! Project version s...
// // OneTimePasswordLegacy.h // OneTimePasswordLegacy // // Created by Matt Rubin on 7/10/14. // Copyright (c) 2014 Matt Rubin. All rights reserved. // @import Foundation; //! Project version number for OneTimePasswordLegacy. FOUNDATION_EXPORT double OneTimePasswordLegacyVersionNumber; //! Project version strin...
Remove unnecessary import of UIKit
Remove unnecessary import of UIKit
C
mit
mattrubin/onetimepassword,mattrubin/onetimepassword
4447cbac38eca7657a77e5d96a4c9f9d9710207c
src/main.c
src/main.c
/** * main.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "common.h" #include "argv.h" #include "daemon.h" #include "usage.h" int main (int argc, char *argv[]) { int i; /** * If the `--help` option was given, display usage details and exit */ if (in_array(GIT_STASHD_USAGE_OPT,...
/** * main.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "common.h" #include "argv.h" #include "daemon.h" #include "usage.h" int main (int argc, char *argv[]) { /** * If the `--help` option was given, display usage details and exit. */ if (in_array(GIT_STASHD_USAGE_OPT, argv, a...
Work on --daemon option handling
Work on --daemon option handling
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
cceede5a3cbe1b8b508b8193aafb75d44319d472
gps-transmitter/gps_transmitter/xbee_helpers.h
gps-transmitter/gps_transmitter/xbee_helpers.h
/* * */ typedef union { float floatingPoint; byte binary[4]; } binaryFloat; uint8_t setXBeePanId (uint16_t addr); uint8_t setXBeeMyAddress (uint16_t addr); uint8_t setXBeeChannel (uint8_t channel); uint8_t setXBeeHoppingChannel (uint8_t channel); uint8_t setXBeeChannelVerification (uint8_t mode); uint8_t setXBe...
/* * */ typedef union { float floatingPoint; byte binary[4]; } binaryFloat; uint8_t setXBeePanId (uint16_t addr); uint8_t setXBeeMyAddress (uint16_t addr); uint8_t setXBeeChannel (uint8_t channel); uint8_t setXBeeHoppingChannel (uint8_t channel); uint8_t setXBeeChannelVerification (uint8_t mode); uint8_t setXBe...
Make the declatarion match reality.
Make the declatarion match reality.
C
isc
lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker
c9df2beb473f7461797074c51789761e0dbc1567
cmake/utils/CheckJemallocBuilds.c
cmake/utils/CheckJemallocBuilds.c
#include <jemalloc.h> int main(int argc, char** argv) { (void)argv; return argc + (int)(malloc(42)); }
#include <jemalloc.h> int main(int argc, char** argv) { void *volatile dummyPtr = malloc(42); (void)argv; return argc; }
Fix a -Wpointer-to-int-cast when searching Jemalloc
[CMAKE] Fix a -Wpointer-to-int-cast when searching Jemalloc Summary: This would trigger failures when `-Werror` is enabled, such as: https://build.bitcoinabc.org/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=66573&guest=1#footer Test Plan: cmake -GNinja .. \ -DUSE_JEMALLOC_EXPERIMENTAL=O...
C
mit
cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc...
6d21ed0d97f5486c6508082c3646ad26024dc7a6
src/plugins/zlib/istream-bzlib.c
src/plugins/zlib/istream-bzlib.c
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gzread BZ2_bzread #de...
/* Copyright (c) 2005-2008 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "istream-internal.h" #include "istream-zlib.h" #ifdef HAVE_BZLIB #include <stdio.h> #include <bzlib.h> #define BZLIB_INCLUDE #define gzFile BZFILE #define gzdopen BZ2_bzdopen #define gzclose BZ2_bzclose #define gz...
Include stdio.h in case bzlib.h needs it.
bzlib: Include stdio.h in case bzlib.h needs it.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
3446ef49a05fe50bc1e6632983f9d78033af7be4
src/global_mapper/global_mapper.h
src/global_mapper/global_mapper.h
// Copyright 2017 Massachusetts Institute of Technology #pragma once #include <csignal> #include <deque> #include <vector> #include <mutex> #include "pcl_ros/point_cloud.h" namespace global_mapper { typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; class GlobalMapper { public: explicit GlobalMapper(volatile st...
// Copyright 2017 Massachusetts Institute of Technology #pragma once #include <csignal> #include <deque> #include <vector> #include <mutex> #include "pcl_ros/point_cloud.h" namespace global_mapper { typedef pcl::PointCloud<pcl::PointXYZ> PointCloud; class GlobalMapper { public: explicit GlobalMapper(volatile st...
Delete copy and move constructors.
Delete copy and move constructors.
C
mit
jakeware/global_mapper
0cd7be4c4d330aa4f8918986b59e104411bf107d
test/PCH/modified-header-crash.c
test/PCH/modified-header-crash.c
// Don't crash. // RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t // RUN: touch %S/modified-header-crash.h // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only void f(void) { foo = 3; }
// Don't crash. // RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t // RUN: touch %S/modified-header-crash.h // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only // FIXME: On Windows we don't detect that the header was modified ? // XFAIL: win32 void f(void) { foo = 3; }
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp.
Disable a test that fails on windows; for some reason we don't detect that the header has different timestamp. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@130204 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
467b5716d03b64dfe37c66769576ce9fe1d7fa62
tests/matcher_argument_run_tests.c
tests/matcher_argument_run_tests.c
// // Created by Jake Kinsella on 6/19/17. // #include <assert.h> #include "../src/matcher/matcher.h" int main(int argc, const char* argv[]) { return 0; }
// // Created by Jake Kinsella on 6/19/17. // #include <assert.h> #include "../src/matcher/matcher.h" #include "../src/registers.h" void dst_run(uint8_t *dst_register); void src_run(const uint8_t src_register); void rp_run(RegisterPair *dst_register_pair); void dst_src_run(uint8_t *dst_register, const uint8_t src_reg...
Create dummy functions for future matcher tests
Create dummy functions for future matcher tests
C
mit
TheLocust3/Intel-8080-Emulator,TheLocust3/Intel-8080-Emulator
c7b85c55569d65966601ba3fc1cdc709d1693fe7
src/qt/logging/messageboxlogger.h
src/qt/logging/messageboxlogger.h
/*Copyright 2010-2015 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/*Copyright 2010-2015 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger.
Allow to change the parent widget after construction. Sometimes your main widget changes and you don't want to make a new logger.
C
apache-2.0
karagog/gutil,karagog/gutil,karagog/gutil
496e639962fb8add9c62896cfd3c30096a1bdf08
src/libOL/Chunks.h
src/libOL/Chunks.h
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #ifndef __libol__Chunks__ #define __libol__Chunks__ #include <vector> #include <cstdint> namespace libol { namespace Chunks { static std::vector<uint8_t> decrypt(std::vector<uint8_t> bytes, std::vector<uint8_t> key); } } #e...
// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #ifndef __libol__Chunks__ #define __libol__Chunks__ #include <vector> #include <cstdint> namespace libol { namespace Chunks { std::vector<uint8_t> decryptAndDecompress(std::vector<uint8_t> bytes, std::vector<uint8_t> key); }...
Fix dumb header issue (didn't update implementation)
Fix dumb header issue (didn't update implementation)
C
mit
loldevs/libOL,loldevs/libOL
3306b3ed35a2501ad2b517e10b09940b85072d33
webkit/glue/webkit_constants.h
webkit/glue/webkit_constants.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
Increase the minimum interval for timers on background tabs to reduce their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility impact of this change. BUG=66078 TEST=none (tested manually with m...
C
bsd-3-clause
junmin-zhu/chromium-rivertrail,patrickm/chromium.src,Jonekee/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,littlstar/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,TheTyp...
037429a86d8cd163f2d0af608f6e415bdf891bab
webkit/glue/unittest_test_server.h
webkit/glue/unittest_test_server.h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #include "net/base/load_flags.h" #include "net/test/te...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__ #include "net/base/load_flags.h" #include "net/test/test_se...
Remove usage of a deprecated TestServer constructor.
Remove usage of a deprecated TestServer constructor. Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details: http://codereview.chromium.org/9369029/ A follow-up CL will remove the deprecated constructor: http://codereview.chromium.org/9431002/ BUG=114...
C
bsd-3-clause
adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,ado...
aa7e1ce0e564afd205acd5fc1323cd18232b0620
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_EMUL/test_pits.c
/* Copyright (c) 2018 ARM Limited * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
/* Copyright (c) 2018 ARM Limited * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
Fix its tests in non-psa targets
Fix its tests in non-psa targets
C
apache-2.0
mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed
0e52c608224046c8e6a737e13bf0ca258fea87e3
src/ConfirmationHandler.h
src/ConfirmationHandler.h
/* * This file is part of btag. * * © 2011 Fernando Tarlá Cardoso Lemos * * Refer to the LICENSE file for licensing information. * */ #ifndef CONFIRMATION_HANDLER_H #define CONFIRMATION_HANDLER_H #include <string> #include "BasicStringFilter.h" #include "InteractiveTerminal.h" class ConfirmationHandler { ...
/* * This file is part of btag. * * © 2011 Fernando Tarlá Cardoso Lemos * * Refer to the LICENSE file for licensing information. * */ #ifndef CONFIRMATION_HANDLER_H #define CONFIRMATION_HANDLER_H #include <string> #include "BasicStringFilter.h" #include "InteractiveTerminal.h" class ConfirmationHandler { ...
Remove unused private instance variable
Remove unused private instance variable btag now compiles again in OS X without warnings.
C
bsd-2-clause
fernandotcl/btag,fernandotcl/btag
44562efeedb317fecdcbe60b802d86ec361b6f61
ext/cool.io/ev_wrap.h
ext/cool.io/ev_wrap.h
#define EV_STANDALONE /* keeps ev from requiring config.h */ #ifdef _WIN32 # define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */ # define FD_SETSIZE 2048 /* wishful thinking, as msvcrt6 [?] seems to only allow 512 fd's and 256 sockets max */ #endif #include "../libev/ev.h"
#define EV_STANDALONE /* keeps ev from requiring config.h */ #ifdef _WIN32 #define EV_SELECT_IS_WINSOCKET 1 /* configure libev for windows select */ #define EV_USE_MONOTONIC 0 #define EV_USE_REALTIME 0 #endif #include "../libev/ev.h"
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
Remove unnecessary definition and disable EV_USE_MONOTONIC and EV_USE_REALTIME on windows
C
mit
nurse/cool.io,tarcieri/cool.io,nurse/cool.io,tarcieri/cool.io,tarcieri/cool.io,cosmo0920/cool.io,cosmo0920/cool.io
0b0347a7fded792024f223c7693bed7f7a91881c
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
ReactiveCocoaFramework/ReactiveCocoa/NSString+RACKeyPathUtilities.h
// // NSString+RACKeyPathUtilities.h // ReactiveCocoa // // Created by Uri Baghin on 05/05/2013. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (RACKeyPathUtilities) // Returns an array of the components of the receiver, or nil if the receiver is ...
// // NSString+RACKeyPathUtilities.h // ReactiveCocoa // // Created by Uri Baghin on 05/05/2013. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (RACKeyPathUtilities) // Returns an array of the components of the receiver. // // Calling this method ...
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
Change RACKeyPathUtilities to be undefined on strings that aren't key paths.
C
mit
KJin99/ReactiveCocoa,buildo/ReactiveCocoa,pzw224/ReactiveCocoa,paulyoung/ReactiveCocoa,terry408911/ReactiveCocoa,swizzlr/ReactiveCocoa,brightcove/ReactiveCocoa,tonyli508/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,Khan/ReactiveCocoa,calebd/ReactiveCocoa,Ethan89/ReactiveCocoa,loupman/ReactiveCocoa,llb1119/test,KuPai32G/Reac...
c938227b9fcbf43d079bfd3a1e12244da2b3b73c
include/psp2/update.h
include/psp2/update.h
/** * \usergroup{SceUpdateMgr} * \usage{psp2/update.h,SceSblSsUpdateMgr_stub} */ #ifndef _PSP2_UPDATE_MGR_H_ #define _PSP2_UPDATE_MGR_H_ #include <psp2/types.h> typedef char SceUpdateMode; #define SCE_UPDATE_MODE_SWU_GUI 0x10 #define SCE_UPDATE_MODE_SWU_CUI 0x30 /** * Getting system update mode on boot * * @...
/** * \usergroup{SceUpdateMgr} * \usage{psp2/update.h,SceSblSsUpdateMgr_stub} */ #ifndef _PSP2_UPDATE_MGR_H_ #define _PSP2_UPDATE_MGR_H_ #include <psp2/types.h> typedef char SceUpdateMode; #define SCE_UPDATE_MODE_SWU_GUI 0x10 #define SCE_UPDATE_MODE_SWU_CUI 0x30 /** * Getting system update mode on boot * * @...
Fix compatibility with some modules
Fix compatibility with some modules
C
mit
Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers
8969691343354bdd80eff5405a0f879edbf013d6
arch/x86/include/asm/jump_label.h
arch/x86/include/asm/jump_label.h
#ifndef _ASM_X86_JUMP_LABEL_H #define _ASM_X86_JUMP_LABEL_H #ifdef __KERNEL__ #include <linux/types.h> #include <asm/nops.h> #define JUMP_LABEL_NOP_SIZE 5 # define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t" # define JUMP_LABEL(key, label) \ do { \ asm goto("1:" \ JUMP_LABEL_INITIAL_NO...
#ifndef _ASM_X86_JUMP_LABEL_H #define _ASM_X86_JUMP_LABEL_H #ifdef __KERNEL__ #include <linux/types.h> #include <asm/nops.h> #define JUMP_LABEL_NOP_SIZE 5 # define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t" # define JUMP_LABEL(key, label) \ do { \ asm goto("1:" \ JUMP_LABEL_INITIAL_NO...
Fix jump label with RO/NX module protection crash
x86: Fix jump label with RO/NX module protection crash If we use jump table in module init, there are marked as removed in __jump_table section after init is done. But we already applied ro permissions on the module, so we can't modify a read only section (crash in remove_jump_label_module_init). Make the __jump_tab...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
ff4f57f38db46266b15f843aa65fb4eada76d9de
mod_xinerama/ls_xinerama.c
mod_xinerama/ls_xinerama.c
#include <X11/Xlib.h> #include <X11/extensions/Xinerama.h> #include <stdbool.h> #include <stdio.h> int main() { Display *dpy = XOpenDisplay(NULL); int xinerama_event_base; int xinerama_error_base; bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base); if (!xi...
#include <X11/Xlib.h> #include <X11/extensions/Xinerama.h> #include <stdbool.h> #include <stdio.h> int main() { Display *dpy = XOpenDisplay(NULL); int xinerama_event_base; int xinerama_error_base; bool xinerama_ready = XineramaQueryExtension(dpy,&xinerama_event_base, &xinerama_error_base); fprintf...
Document command to get even more details
Document command to get even more details
C
lgpl-2.1
knixeur/notion,neg-serg/notion,p5n/notion,dkogan/notion,raboof/notion,p5n/notion,dkogan/notion,p5n/notion,anoduck/notion,p5n/notion,dkogan/notion,neg-serg/notion,dkogan/notion.xfttest,knixeur/notion,anoduck/notion,raboof/notion,anoduck/notion,raboof/notion,p5n/notion,raboof/notion,anoduck/notion,neg-serg/notion,knixeur...
627c29bd229a5fb302087c4360d461079b59df9d
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
subprojects/testing-native/src/main/resources/org/gradle/nativeplatform/test/cunit/tasks/gradle_cunit_register.h
/* * Called by the Gradle CUnit launcher to register all CUnit tests. */ void gradle_cunit_register();
/* * Called by the Gradle CUnit launcher to register all CUnit tests. */ void gradle_cunit_register();
Add newline to end of generated cunit header file
Add newline to end of generated cunit header file
C
apache-2.0
blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,gradle/grad...
8b3bbb541d210883666ea58c21e0bd33de8ac96c
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); #endif
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); #endif
Add List destroy function declaration
Add List destroy function declaration
C
mit
MaxLikelihood/CADT
816bde39fe14670950bca6555adfb25d62aed147
chrome/nacl/nacl_broker_listener.h
chrome/nacl/nacl_broker_listener.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_NACL_NACL_BROKER_LISTENER_H_ #define CHROME_NACL_NACL_BROKER_LISTENER_H_ #pragma once #include "base/memory/scoped_ptr.h" #include "ba...
Remove declaration of non-existent method
NaCl: Remove declaration of non-existent method BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9592039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125431 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,keishi/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,hgl888/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacew...
be9a42d018015f8c8a2037884a9bfa1e1a240676
src/chemkit/vector3.h
src/chemkit/vector3.h
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** ** This file is part of chemkit. For more information see ** <http://www.chemkit.org>. ** ** chemkit is free software: you can redistribute it and/or modify ** it under the ...
/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** ** This file is part of chemkit. For more information see ** <http://www.chemkit.org>. ** ** chemkit is free software: you can redistribute it and/or modify ** it under the ...
Add documentation to Vector3 typedefs
Add documentation to Vector3 typedefs This adds documentation for the Vector3f and Vector3d typedefs.
C
bsd-3-clause
kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit
37267bfe7ecf46ce3a37b1156c51c6076815c16f
src/platform/assert.h
src/platform/assert.h
// Copyright (c) 2015, the scalloc project authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_PLATFORM_ASSERT_H_ #define SCALLOC_PLATFORM_ASSERT_H_ #include "log.h" #define DISALLOW...
// Copyright (c) 2015, the scalloc project authors. All rights reserved. // Please see the AUTHORS file for details. Use of this source code is governed // by a BSD license that can be found in the LICENSE file. #ifndef SCALLOC_PLATFORM_ASSERT_H_ #define SCALLOC_PLATFORM_ASSERT_H_ #include "log.h" #define DISALLOW...
Allow ScallocAssert() to be used in Release code
Allow ScallocAssert() to be used in Release code
C
bsd-2-clause
cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc
4319688dfb39444d9edcc384e4c56977967cda4b
src/includes/kernel/util.h
src/includes/kernel/util.h
/** arm-016-util.h */ #ifndef RPI_UTIL_H #define RPI_UTIL_H #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_DEPTH 24 /* 16 or 32-bit */ #define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */ #include <math.h> typedef struct { float r; float g; ...
/** arm-016-util.h */ #ifndef RPI_UTIL_H #define RPI_UTIL_H #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SCREEN_DEPTH 24 /* 16 or 32-bit */ #define COLOUR_DELTA 0.05 /* Float from 0 to 1 incremented by this amount */ #include <math.h> #include <stdlib.h> typedef struct { float...
Include stdlib.h and changed function declaration to extern
Include stdlib.h and changed function declaration to extern
C
mit
Neo-Desktop/bare-metal-pi,Neo-Desktop/bare-metal-pi
362fb9e62b878adae788b3120608418da057d522
arch/arm/core/irq_offload.c
arch/arm/core/irq_offload.c
/* * Copyright (c) 2015 Intel corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
/* * Copyright (c) 2015 Intel corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Fix irq offload inline asm memory ordering.
arm: Fix irq offload inline asm memory ordering. Add a "memory" clobber to inline asm SVC call to ensure the compiler does not reorder the instruction relative to other memory accesses. Issue found by inspect the source code. There is no evidence to suggest that this bug will manifest for any current ARM target usin...
C
apache-2.0
punitvara/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,Vudentz/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,ldts/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,kraj/zephyr,runchip/zephyr-cc3200,nashif/zephyr,runchip/zephyr-cc3220,kraj/zephyr,bigdinotech/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,r...
b0a84087556b24b9fa76306a80ed7fb59f2dac11
dtool/src/parser-inc/stdtypedefs.h
dtool/src/parser-inc/stdtypedefs.h
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file stdtypedefs.h * @autho...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file stdtypedefs.h * @autho...
Fix issue with Windows build
Fix issue with Windows build
C
bsd-3-clause
chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,tobspr/panda3d,tobspr/panda3d,grimfang/panda3d,tobspr/panda3d,chandler14362/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,grimfang/panda3d,t...
c960766f51d6ad7069f2ef0084f2f31fbdf20365
igor/parser/DEIgorParserException.h
igor/parser/DEIgorParserException.h
@interface DEIgorParserException : NSObject + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
@interface DEIgorParserException : NSException + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
Make Igor parser exception extend NSParserException
Make Igor parser exception extend NSParserException
C
mit
dhemery/igor,dhemery/igor,dhemery/igor
a302b82b8de5a2427baec8257b023fb65f9cd607
test/functionalities/process_attach/main.c
test/functionalities/process_attach/main.c
#include <stdio.h> #include <unistd.h> int main(int argc, char const *argv[]) { // Waiting to be attached by the debugger. int temp = 0; while (temp < 30) // Waiting to be attached... { sleep(1); temp++; } printf("Exiting now\n"); }
#include <stdio.h> #include <unistd.h> #if defined(__linux__) #include <sys/prctl.h> #endif int main(int argc, char const *argv[]) { int temp; #if defined(__linux__) // Immediately enable any ptracer so that we can allow the stub attach // operation to succeed. Some Linux kernels are locked down so that ...
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local.
Fix TestProcessAttach for Linux ptracer lock-down and llgs-local. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@220660 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
e88be22a0b19d365c3c20d45b50da8af88fd6960
static_ar_param.c
static_ar_param.c
int f(int x[static volatile /*const*/ 10]) { return *++x; } main() { int x[5]; x[1] = 2; f(x); //int y[1]; //int *y; //#define y (void *)0 //pipe(y); }
int f(int x[static /*const*/ 10]) { return *++x; } main() { int x[5]; x[1] = 2; f(x); //int y[1]; //int *y; //#define y (void *)0 //pipe(y); }
Remove volatile from test (decl_equal doesn't check properly for now)
Remove volatile from test (decl_equal doesn't check properly for now)
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
68772ba85b158325b82743a9df55d583cc547c48
bpf/netdev_config.h
bpf/netdev_config.h
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ /* * This is just a dummy header with dummy values to allow for test * compilation without the full code generation engine backend. */ #define DROP_NOTIFY #ifndef SKIP_DEBUG #define DEBUG #endif #define ENCAP_IFINDEX 1 #define SE...
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ /* * This is just a dummy header with dummy values to allow for test * compilation without the full code generation engine backend. */ #define DROP_NOTIFY #ifndef SKIP_DEBUG #define DEBUG #endif #define ENCAP_IFINDEX 1 #define SE...
Replace CALLS_MAP symbol in compile-tested binaries
bpf: Replace CALLS_MAP symbol in compile-tested binaries Because we don't define CALLS_MAP for several programs, the binaries end up with 'CALLS_MAP' as the actual map name: $ for f in $(ls bpf/*.o); do ( readelf -s $f | grep -q CALLS_MAP ) && echo $f; done bpf/bpf_alignchecker.o bpf/bpf_network.o bpf...
C
apache-2.0
cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,tklauser/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,tklauser/cilium,michi-covalent/ciliu...
f7c7267e99a50ece23ff4db05e6fdb5aead0fdbe
test/cpp-raw/os.h
test/cpp-raw/os.h
#define INTERCOM_FLATTEN_DECLARATIONS #include <intercom.h> #include "../../intercom-cpp/src/msdef.h" // Interface definitions. #ifdef _MSC_VER #include "msvc/import.h" #endif // Platform specific runtime initialization. void InitializeRuntime(); // Platform specific runtime uninitialization. void UninitializeRunt...
// Interface definitions. #ifdef _MSC_VER #include "msvc/import.h" #else // Include declarations on non-Windows platforms. #define INTERCOM_FLATTEN_DECLARATIONS #include <intercom.h> #include "../../intercom-cpp/src/msdef.h" #endif // Platform specific runtime initialization. void InitializeRuntime(); // Platform ...
Include specific declarations only on ńon-Windows platform
Include specific declarations only on ńon-Windows platform The "intercom.h" is not currently visible on Windows build chain.
C
mit
Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs
a9f39225c5502b7d8948dc195292db80a5814834
src/ent.c
src/ent.c
#include <ent/ent.h> #if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE) # include <unistd.h> # define getentropy_impl getentropy #elif defined __APPLE__ && defined __MACH__ # include <sys/random.h> # define getentropy_impl getentropy #else # error "Port: getentropy unimplemented" #endif int ent...
#include <ent/ent.h> #if defined __OPENBSD__ || (defined __linux__ && defined _DEFAULT_SOURCE) # include <unistd.h> # define getentropy_impl getentropy #elif defined __APPLE__ && defined __MACH__ # include <unistd.h> # include <sys/random.h> # define getentropy_impl getentropy #else # error "Port: getentropy unimpleme...
Fix build on OS X
Fix build on OS X
C
mit
jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,urbit/urbit,ngzax/urbit,ngzax/urbit,jfranklin9000/urbit,jfranklin9000/urbit,urbit/urbit,urbit/urbit,jfranklin9000/urbit,ngzax/urbit,urbit/urbit,ngzax/urbit,jfranklin9000/urbit
facd3c72a46b2a62ec347a1527583abc2bd529ab
block.h
block.h
#ifndef BLOCK_PAGE_SIZE # define BLOCK_PAGE_SIZE 65536 #endif #include <stddef.h> struct block { void **pages; size_t *offsets; size_t count; size_t size; }; struct block *block_new(void); void block_free(struct block*); void *block_alloc(struct block*, size_t bytes);
#ifndef BLOCK_PAGE_SIZE # define BLOCK_PAGE_SIZE 4096 #endif #include <stddef.h> struct block { void **pages; size_t *offsets; size_t count; size_t size; }; struct block *block_new(void); void block_free(struct block*); void *block_alloc(struct block*, size_t bytes);
Use 4KB as the default page size
Use 4KB as the default page size
C
mit
chriso/intern
ce976a1d0bfd1679fd9eef466f993216e88dc7e5
ann.c
ann.c
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[HIDDEN]; int output[OUTPUTS]; }...
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[ROWS - 3][HIDDEN]; int output[O...
Fix Neurons struct so that hidden is 2D
Fix Neurons struct so that hidden is 2D
C
mit
tysonzero/c-ann
169dc7b8de2f347edb54ce9007cfbf1c551be33a
Settings/Display.h
Settings/Display.h
#pragma once #include "Tab.h" class Display : public Tab { public: virtual void SaveSettings(); private: virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId); virtual DLGPROC Notification(NMHDR *nHdr); virtual void Initialize(); virtual void LoadSettings(); void OnPositionCh...
#pragma once #include "Tab.h" class Display : public Tab { public: virtual void SaveSettings(); private: virtual DLGPROC Command(unsigned short nCode, unsigned short ctrlId); virtual DLGPROC Notification(NMHDR *nHdr); virtual void Initialize(); virtual void LoadSettings(); void OnPositionCh...
Add strings (will be used for translation)
Add strings (will be used for translation)
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX
280ced6bd1aebd62b1288b3b55f70fe1d00e3b2f
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 94 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 95 #endif
Update Skia milestone to 95
Update Skia milestone to 95 Change-Id: I17a6adf5f14cfc160c13a2341453e9767ab39f0a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/439158 Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
C
bsd-3-clause
aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/pl...
673ab60ceb8dbb42bebd52241178741a57f5f7a0
main.c
main.c
int main() { printf("Hello World!\n"); return 0; }
#include <bwio.h> int main() { bwsetfifo(COM2, OFF); bwprintf(COM2, "Hello World!\n"); return 0; }
Add Makefile, bwio lib, headers and compile script
Add Makefile, bwio lib, headers and compile script
C
mit
gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel
204927c50f6ca2549092e422fe5377ae3aae1b63
Files/VelibModel.h
Files/VelibModel.h
// // Velib.h // Bicyclette // // Created by Nicolas on 09/10/10. // Copyright 2010 Nicolas Bouilleaud. All rights reserved. // #import "CoreDataManager.h" #import <MapKit/MapKit.h> #define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto" #define kVelibStationsStatusURL @"http://www.velib.paris...
// // Velib.h // Bicyclette // // Created by Nicolas on 09/10/10. // Copyright 2010 Nicolas Bouilleaud. All rights reserved. // #import "CoreDataManager.h" #import <MapKit/MapKit.h> #define kVelibStationsListURL @"http://www.velib.paris.fr/service/carto" #define kVelibStationsStatusURL @"http://www.velib.paris...
Fix stations details request url (webservices were updated)
Fix stations details request url (webservices were updated)
C
bsd-2-clause
durvalrafael/Bicyclette,n-b/Bicyclette,durvalrafael/Bicyclette,n-b/Bicyclette
265bbe4f8fed33baff0f6340ac0f36965b2f24ed
src/gba/renderers/video-software.h
src/gba/renderers/video-software.h
#ifndef VIDEO_SOFTWARE_H #define VIDEO_SOFTWARE_H #include "gba-video.h" #include <pthread.h> struct GBAVideoSoftwareRenderer { struct GBAVideoRenderer d; uint16_t* outputBuffer; unsigned outputBufferStride; union GBARegisterDISPCNT dispcnt; pthread_mutex_t mutex; pthread_cond_t cond; }; void GBAVideoSoftw...
#ifndef VIDEO_SOFTWARE_H #define VIDEO_SOFTWARE_H #include "gba-video.h" #include <pthread.h> struct GBAVideoSoftwareBackground { int index; int enabled; int priority; uint32_t charBase; int mosaic; int multipalette; uint32_t screenBase; int overflow; int size; uint16_t x; uint16_t y; uint32_t refx; uin...
Add struct for keeping track of background state
Add struct for keeping track of background state
C
mpl-2.0
Anty-Lemon/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,Iniquitatis/mgba,Touched/mgba,askotx/mgba,Anty-Lemon/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,jeremyherbert/mgba,askotx/mgba,askotx/mgba,fr500/mgba,AdmiralCurtiss/mgba,fr500/mgba,matthewbauer/mgba,Anty-Lemon/mgba,bentley/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,mg...
7558b9540b6c51b9822c63bbbdf42da282b1a7c1
src/include/cynara-creds-commons.h
src/include/cynara-creds-commons.h
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
Add enums for credentials acquire methods
Add enums for credentials acquire methods Change-Id: I5719a7622a78ae6d1ca86a7dcce986c69abb3e23
C
apache-2.0
Samsung/cynara,Samsung/cynara,pohly/cynara,pohly/cynara,pohly/cynara,Samsung/cynara
9c48a952435797ead8239b7e0c9d5eeda1d7f999
lib/libmid/errstr.c
lib/libmid/errstr.c
#include "../../include/mid.h" #include <SDL/SDL_error.h> #include <stdarg.h> #include <errno.h> #include <string.h> enum { Bufsz = 1024 }; static char curerr[Bufsz + 1]; void seterrstr(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vsnprintf(curerr, Bufsz + 1, fmt, ap); va_end(ap); } const char *miderr...
#include "../../include/mid.h" #include <SDL/SDL_error.h> #include <stdarg.h> #include <errno.h> #include <string.h> enum { Bufsz = 1024 }; static char curerr[Bufsz]; void seterrstr(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vsnprintf(curerr, Bufsz, fmt, ap); va_end(ap); } const char *miderrstr(void...
Change buffer sizes to ease stk5.
Change buffer sizes to ease stk5.
C
mit
velour/mid,velour/mid,velour/mid
c083b0c24035620ec14db062fff8e62bd689c237
test/Driver/compilation_database.c
test/Driver/compilation_database.c
// RUN: %clang -MD -MP -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s // RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s // CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "arguments": ["{{[^"]...
// RUN: %clang -MD -MP --sysroot=somewhere -c -x c %s -xc++ %s -Wall -MJ - 2>&1 | FileCheck %s // RUN: not %clang -c -x c %s -MJ %s/non-existant 2>&1 | FileCheck --check-prefix=ERROR %s // CHECK: { "directory": "[[CWD:[^"]+]]", "file": "[[SRC:[^"]+[/|\\]compilation_database.c]]", "output": "compilation_database.o", "...
Make test case slightly more robust by explicitly passing --sysroot. Otherwise it would change when DEFAULT_SYSROOT is provided.
Make test case slightly more robust by explicitly passing --sysroot. Otherwise it would change when DEFAULT_SYSROOT is provided. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@288823 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
79ecdd107f7531d36f69d6e7089b4a685a370312
src/graphics_tb.h
src/graphics_tb.h
#ifndef __GRAPHICS_TB_H__ #define __GRAPHICS_TB_H__ #include <termbox.h> #include "models.h" #include "graphics.h" typedef struct {} graphics_tb_t; // graphics_tb initialize the graphic module. graphics_tb_t *graphics_tb_init(); // graphics_tb_draw draws the given state on the screen. void graphics_tb_draw(void ...
#ifndef __GRAPHICS_TB_H__ #define __GRAPHICS_TB_H__ #include <termbox.h> #include "models.h" #include "graphics.h" typedef struct {} graphics_tb_t; // graphics_tb initializes the graphic module. graphics_tb_t *graphics_tb_init(); // graphics_tb_draw draws the given state on the screen. // // We do not use `graph...
Add an explanation for graphics_*_draw prototype
Add an explanation for graphics_*_draw prototype
C
mit
moverest/bagh-chal,moverest/bagh-chal,moverest/bagh-chal
d1e345a13ca28825b672aa8e75e9f5d0f48be1bd
overseer.c
overseer.c
// vim: sw=4 ts=4 et filetype=c #include <stdio.h> #include <stdlib.h> #include "overseer.h" #include "iface_lcd.h" #include "iface_uart.h" #include "iface_w1_gpio.h" int main() { sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array)); size_t actualsize = getSensorList(sensor_array)...
// vim: sw=4 ts=4 et filetype=c #include <stdio.h> #include <stdlib.h> #include <time.h> #include "overseer.h" #include "iface_lcd.h" #include "iface_uart.h" #include "iface_w1_gpio.h" int main() { sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array)); size_t actualsize = getSensor...
Adjust output to LCD and console
Adjust output to LCD and console Better kitchen usefulness w/ a timestamp. Also munin support!
C
mit
rtucker/raspi-fridge-overseer,rtucker/raspi-fridge-overseer
228304d144861aa3e13384835aea7dc51fae140f
include/lldb/Host/freebsd/HostInfoFreeBSD.h
include/lldb/Host/freebsd/HostInfoFreeBSD.h
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- HostInfoFreeBSD.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix FreeBSD build after r215992
Fix FreeBSD build after r215992 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@216021 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb
2044a19198c1a178b0994ece8db9286099586ed4
text_widget.c
text_widget.c
// Copyright 2017, Jeffrey E. Bedard #include "text_widget.h" #include "XSTextWidget.h" #include "font.h" #include "xdata.h" short xstatus_draw_text_widget(struct XSTextWidget * widget) { xcb_connection_t * xc = widget->connection; struct JBDim font_size = xstatus_get_font_size(); xcb_image_text_8(xc, widget->buffer...
// Copyright 2017, Jeffrey E. Bedard #include "text_widget.h" #include "XSTextWidget.h" #include "config.h" #include "font.h" #include "xdata.h" short xstatus_draw_text_widget(struct XSTextWidget * widget) { xcb_connection_t * xc = widget->connection; struct JBDim font_size = xstatus_get_font_size(); xcb_image_text_...
Include configured padding in offset calculation.
Include configured padding in offset calculation.
C
mit
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus
324243f6bb70687aeaeb2419193a335648c5869d
thrust/detail/config/cpp_dialect.h
thrust/detail/config/cpp_dialect.h
/* * Copyright 2018 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2018 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Revert "Handle MSVC's definition of __cplusplus"
Revert "Handle MSVC's definition of __cplusplus" This reverts commit 20e1c433e05c7147af5c267e0e0a38a781a6efb4.
C
apache-2.0
thrust/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,andrewcorrigan/thrust-multi-permutation-iterator,thrust/thrust,thrust/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrus...
2766579a314f92c3fdf3f87e7bb20e5a4e52c01b
JPetUnpacker/Unpacker2/TDCChannel.h
JPetUnpacker/Unpacker2/TDCChannel.h
#ifndef TDCChannel_h #define TDCChannel_h #include <fstream> #include <TObject.h> #include <TClonesArray.h> #include <iostream> #define MAX_FULL_HITS 100 class TDCChannel : public TObject { protected: Int_t channel; double leadTime1; double trailTime1; double tot1; double referenceDiff1; double leadTimes[M...
#ifndef TDCChannel_h #define TDCChannel_h #include <fstream> #include <TObject.h> #include <TClonesArray.h> #include <iostream> #define MAX_FULL_HITS 50 class TDCChannel : public TObject { protected: Int_t channel; double leadTime1; double trailTime1; double tot1; double referenceDiff1; double leadTimes[MA...
Change TDCHits array size from 100 to 50
Change TDCHits array size from 100 to 50 For consistency with the standalone version of the Unpacker.
C
apache-2.0
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework
f5eda040d34b33f438d562ae5cef8bf144d7f9fe
bin/varnishd/mgt.h
bin/varnishd/mgt.h
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); void mgt_start_child(void); void mgt_stop_child(void); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int m...
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int mgt_cli_askchild(int *status, char **resp, const char *f...
Remove prototypes for no longer existing functions
Remove prototypes for no longer existing functions git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@659 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,gauthier-delacroix/Varnish-Cache,ajasty-cavium/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,1HLtd/Varnish-Cache,ambernetas/varnish-cache,chrismoulton/Varnish-Cache,gauthier-delacroix/Varnish-Cache,zhoualbeart/Varnish-Cache,feld/Varnish-Ca...