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
216591596dfbb35c79674c18d0c6f28e1e040857
src/mb.h
src/mb.h
/* * mb.h - publicly accessible entry points for the memory buffer */ #ifndef _MB_H_ #define _MB_H_ #include "tuple.h" #include "table.h" #include "timestamp.h" void mb_init(); int mb_insert(unsigned char *buf, long len, Table *table); tstamp_t mb_insert_tuple(int ncols, char *vals[], Table *table); tstamp_t hea...
/* * Copyright (c) 2013, Court of the University of Glasgow * 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, * thi...
Add BSD 3-clause open source header
Add BSD 3-clause open source header
C
bsd-3-clause
jsventek/Cache,fergul/Cache,jsventek/Cache,jsventek/Cache,fergul/Cache,fergul/Cache
ea0ae0b3bb59a3687947d45816c3005f7f60eab6
include/version.h
include/version.h
/* * Super Entity Game Server * http://segs.sf.net/ * Copyright (c) 2006 Super Entity Game Server Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. * */ #define VersionString "segs v0.5.0 (The Unsilencer)"; #define CopyrightString "Super Entity G...
/* * Super Entity Game Server * http://segs.sf.net/ * Copyright (c) 2006 Super Entity Game Server Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. * */ #define ProjectName "SEGS" #define VersionNumber "0.5.0" #define VersionName "The Unsilencer"...
Split up VersionString, will be useful for WebUI
Split up VersionString, will be useful for WebUI
C
bsd-3-clause
nemerle/Segs,Segs/Segs,Segs/Segs,Segs/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,Segs/Segs,broxen/Segs,broxen/Segs,broxen/Segs,nemerle/Segs,broxen/Segs,nemerle/Segs,nemerle/Segs,broxen/Segs,Segs/Segs,Segs/Segs,Segs/Segs
8c89257b9b7b58dbdeb977295e95863793877b70
cpp/exit_status.h
cpp/exit_status.h
#ifndef BIOTOOL_EXIT_STATUS_H #define BIOTOOL_EXIT_STATUS_H typedef enum {Success=0, Error_command_line=1, Error_open_file=2, Error_parse_file=3} exit_status; #endif
#ifndef BIOTOOL_EXIT_STATUS_H #define BIOTOOL_EXIT_STATUS_H typedef enum {Success=0, Error_open_file=1, Error_command_line=2, Error_parse_file=3} exit_status; #endif
Correct c++ exit status values
Correct c++ exit status values
C
mit
bjpop/biotool,bjpop/biotool,drpowell/biotool,bjpop/biotool,supernifty/biotool,bjpop/biotool,bjpop/biotool,drpowell/biotool,biotool-paper/biotool,lonsbio/biotool,lonsbio/biotool,biotool-paper/biotool,bjpop/biotool,supernifty/biotool,drpowell/biotool,biotool-paper/biotool,drpowell/biotool,lonsbio/biotool,biotool-paper/bi...
8a868d3f7c3c7fa91b7439607adc7a21207f88cd
test/CodeGen/debug-dead-local-var.c
test/CodeGen/debug-dead-local-var.c
// FIXME: Check IR rather than asm, then triple is not needed. // RUN: %clang_cc1 -mllvm -asm-verbose -triple %itanium_abi_triple -S -O2 -g %s -o - | FileCheck %s // Radar 8122864 // Code is not generated for function foo, but preserve type information of // local variable xyz. static void foo() { // CHECK: DW_TAG_str...
// FIXME: Check IR rather than asm, then triple is not needed. // RUN: %clang_cc1 -triple %itanium_abi_triple -O2 -g -emit-llvm %s -o - | FileCheck %s // Radar 8122864 // Code is not generated for function foo, but preserve type information of // local variable xyz. static void foo() { // CHECK: DW_TAG_structure_type ...
Make this test emit llvm IR rather than assembly.
Make this test emit llvm IR rather than assembly. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@209255 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-cl...
982731bf91beaa2c697ab32b1d388054c78aa05f
sky/compositor/compositor_options.h
sky/compositor/compositor_options.h
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_ #define SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_ #include "base/macros.h" #include <vector> namespace sky { nam...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_ #define SKY_COMPOSITOR_COMPOSITOR_OPTIONS_H_ #include "base/macros.h" #include <vector> namespace sky { nam...
Make the single argument constructor to CompositorOptions explicit
Make the single argument constructor to CompositorOptions explicit
C
bsd-3-clause
mdakin/engine,jamesr/sky_engine,lyceel/engine,jason-simmons/flutter_engine,aam/engine,flutter/engine,chinmaygarde/sky_engine,jamesr/flutter_engine,abarth/sky_engine,chinmaygarde/sky_engine,mikejurka/engine,mpcomplete/engine,devoncarew/sky_engine,jason-simmons/sky_engine,jason-simmons/sky_engine,jason-simmons/sky_engine...
3190d0e00909383ef52ef56083a1c25396f597ae
OrbitQt/topdownwidget.h
OrbitQt/topdownwidget.h
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_QT_TOP_DOWN_WIDGET_H_ #define ORBIT_QT_TOP_DOWN_WIDGET_H_ #include <QSortFilterProxyModel> #include <memory> #include "TopDownView.h" #in...
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_QT_TOP_DOWN_WIDGET_H_ #define ORBIT_QT_TOP_DOWN_WIDGET_H_ #include <QSortFilterProxyModel> #include <memory> #include "TopDownView.h" #in...
Use Qt 5 signal-slot syntax in TopDownWidget
Use Qt 5 signal-slot syntax in TopDownWidget
C
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
0bedca3d5d44c2bd13218defeedade16fb30ba9f
modules/bot_admin.h
modules/bot_admin.h
class AdminHook : public Module { public: virtual ~AdminHook(); virtual std::vector<std::vector<std::string> > adminCommands(); virtual void onAdminCommand(std::string server, std::string nick, std::string command, std::string message, bool dcc, bool master); }; class AdminMod : public Module { public: virtu...
class AdminHook : public Module { public: virtual ~AdminHook(); virtual std::vector<std::vector<std::string> > adminCommands(); virtual void onAdminCommand(std::string server, std::string nick, std::string command, std::string message, bool dcc, bool master); }; class AdminMod { public: virtual ~AdminMod(); ...
Change this so it works. This may be tricky to work through when a lot of modules depend on a lot of other modules.
Change this so it works. This may be tricky to work through when a lot of modules depend on a lot of other modules.
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
9c6ae0d5642cf5979ea43112f134a7fb3c02f5b7
RIButtonItem.h
RIButtonItem.h
// // RIButtonItem.h // Shibui // // Created by Jiva DeVoe on 1/12/11. // Copyright 2011 Random Ideas, LLC. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^RISimpleAction)(); @interface RIButtonItem : NSObject { NSString *label; RISimpleAction action; } @property (retain, nonatom...
// // RIButtonItem.h // Shibui // // Created by Jiva DeVoe on 1/12/11. // Copyright 2011 Random Ideas, LLC. All rights reserved. // #import <Foundation/Foundation.h> @interface RIButtonItem : NSObject { NSString *label; void (^action)(); } @property (retain, nonatomic) NSString *label; @property (copy, no...
Replace typedef with literal type
Replace typedef with literal type Using the literal typedef makes Xcode's code sense give you a parameter stand-in that can be expanded with a shift-enter.
C
mit
Weever/UIAlertView-Blocks,200895045/UIAlertView-Blocks,jivadevoe/UIAlertView-Blocks,shanyimin/UIAlertView-Blocks,z8927623/UIAlertView-Blocks
097d6ccf7da44013c6d28fea7dce23708b77a044
tile.h
tile.h
#define VT_POINT 1 #define VT_LINE 2 #define VT_POLYGON 3 #define VT_END 0 #define VT_MOVETO 1 #define VT_LINETO 2 #define VT_CLOSEPATH 7 #define VT_STRING 1 #define VT_NUMBER 2 #define VT_BOOLEAN 7 struct pool; void deserialize_int(char **f, int *n); struct pool_val *deserialize_string(char **f, struct pool *p, in...
#define VT_POINT 1 #define VT_LINE 2 #define VT_POLYGON 3 #define VT_END 0 #define VT_MOVETO 1 #define VT_LINETO 2 #define VT_CLOSEPATH 7 #define VT_STRING 1 #define VT_NUMBER 2 #define VT_BOOLEAN 7 struct pool; void deserialize_int(char **f, int *n); struct pool_val *deserialize_string(char **f, struct pool *p, in...
Use a bitfield to make the index 2/3 the size, to save some disk churn
Use a bitfield to make the index 2/3 the size, to save some disk churn
C
bsd-2-clause
joykuotw/tippecanoe,mapbox/tippecanoe,mapbox/tippecanoe,joykuotw/tippecanoe,mapbox/tippecanoe,landsurveyorsunited/tippecanoe,mapbox/tippecanoe,landsurveyorsunited/tippecanoe
5232091bbc3b617f737db18bbd3bad97914f73fd
src/BrainTree.h
src/BrainTree.h
#pragma once #include "BehaviorTree.hpp" #include "Blackboard.hpp" #include "Composite.hpp" #include "Decorator.hpp" #include "Leaf.hpp" #include "Node.hpp" // CompositeS #include "Composites/MemSelector.hpp" #include "Composites/MemSequence.hpp" #include "Composites/ParallelSequence.hpp" #include "Composites/Selecto...
#pragma once #include "BehaviorTree.h" #include "Blackboard.h" #include "Composite.h" #include "Decorator.h" #include "Leaf.h" #include "Node.h" // Composites #include "composites/MemSelector.h" #include "composites/MemSequence.h" #include "composites/ParallelSequence.h" #include "composites/Selector.h" #include "com...
Change headers from *.hpp to *.h, and add LeafBuilder.
Change headers from *.hpp to *.h, and add LeafBuilder.
C
mit
arvidsson/bt
865b2206d1a409e2651919baadb6cf674b014950
GNETextSearch/GNETextSearchPrivate.h
GNETextSearch/GNETextSearchPrivate.h
// // GNETextSearchPrivate.h // GNETextSearch // // Created by Anthony Drendel on 11/14/15. // Copyright © 2015 Gone East LLC. All rights reserved. // #ifndef GNETextSearchPrivate_h #define GNETextSearchPrivate_h #ifdef __cplusplus extern "C" { #endif #ifndef TSEARCH_INLINE #if defined(_MSC_VER) && !defined(...
// // GNETextSearchPrivate.h // GNETextSearch // // Created by Anthony Drendel on 11/14/15. // Copyright © 2015 Gone East LLC. All rights reserved. // #ifndef GNETextSearchPrivate_h #define GNETextSearchPrivate_h #ifdef __cplusplus extern "C" { #endif #ifndef TSEARCH_INLINE #if defined(_MSC_VER) && !defined(...
Define TSEARCH_INLINE as static inline
Define TSEARCH_INLINE as static inline
C
bsd-2-clause
atdrendel/GNETextSearch,atdrendel/GNETextSearch
b5e45c4d0917a79ef02ba04b4c6c7bcba45193dc
examples/helloElektra.c
examples/helloElektra.c
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <kdb.h> #include <stdio.h> int main (void) { KeySet * config = ksNew (0, KS_END); Key * root = keyNew ("user/test", KEY_END); printf ("Open key database\n"); KDB * handle = kdbOpen (root); printf...
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <kdb.h> #include <stdio.h> int main (void) { KeySet * config = ksNew (0, KS_END); Key * root = keyNew ("user/test", KEY_END); printf ("Open key database\n"); KDB * handle = kdbOpen (root); printf...
Use more common technical term
Examples: Use more common technical term
C
bsd-3-clause
e1528532/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,e1528532/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra...
f332badaeb115c6db8d3f6b1cf97af6155df3cc7
include/vkalloc.h
include/vkalloc.h
#ifndef VKALLOC_VKALLOC_H #define VKALLOC_VKALLOC_H #include <stdlib.h> #include <stdint.h> #include <vulkan/vulkan.h> #ifndef VKA_ALLOC_SIZE #define VKA_ALLOC_SIZE 1024*1024*4 #endif struct VkAllocation { VkDeviceMemory deviceMemory; uint64_t offset; uint64_t size; }; void vkaInit(VkPhysicalDevice phys...
#ifndef VKALLOC_VKALLOC_H #define VKALLOC_VKALLOC_H #include <stdlib.h> #include <stdint.h> #include <vulkan/vulkan.h> #ifndef VKA_ALLOC_SIZE #define VKA_ALLOC_SIZE 1024*1024*4 #endif struct VkAllocation { VkDeviceMemory deviceMemory = VK_NULL_HANDLE; uint64_t offset = 0; uint64_t size = 0; }; void vkaI...
Add default values to VkAllocation
Add default values to VkAllocation
C
mit
rhynodegreat/VkAlloc,rhynodegreat/VkAlloc
fb75b2583eb82dc42cb8e5bd3c1eda1c661eb76d
test/Analysis/array-struct.c
test/Analysis/array-struct.c
// RUN: clang -checker-simple -verify %s && // RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; int data_array[10]; }; typedef struct { int data; } STYPE; void g1(struct s* p); void f(void) { int a[10]; int (*p)[10]; p = &a; (*p)[3] = 1; struct s d; struct s *q;...
// RUN: clang -checker-simple -verify %s && // RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; int data_array[10]; }; typedef struct { int data; } STYPE; void g1(struct s* p); void f(void) { int a[10]; int (*p)[10]; p = &a; (*p)[3] = 1; struct s d; struct s *q;...
Add test for incomplete struct pointer.
Add test for incomplete struct pointer. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59236 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
39332e3e060035ac6f4660a4e650ffb4b8da1c3c
test/CodeGen/dbg-const-int128.c
test/CodeGen/dbg-const-int128.c
// RUN: %clang_cc1 -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s // CHECK: !DIGlobalVariable({{.*}} // CHECK-NOT: expr: static const __uint128_t ro = 18446744073709551615; void bar(__uint128_t); void foo() { bar(ro); }
// RUN: %clang_cc1 -triple x86_64-unknown-linux -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s // CHECK: !DIGlobalVariable({{.*}} // CHECK-NOT: expr: static const __uint128_t ro = 18446744073709551615; void bar(__uint128_t); void foo() { bar(ro); }
Add explicit triple to test to fix arm bots.
Add explicit triple to test to fix arm bots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@290008 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
527e5429989782aef5411a18bf01cc9b4170fde1
test/Parser/pointer_promotion.c
test/Parser/pointer_promotion.c
// RUN: clang-cc -fsyntax-only -verify %s int test() { void *vp; int *ip; char *cp; struct foo *fp; struct bar *bp; short sint = 7; if (ip < cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}} if (cp < fp) {} // expected-warning {{comparison of distinct pointer t...
// RUN: clang-cc -fsyntax-only -verify %s void test() { void *vp; int *ip; char *cp; struct foo *fp; struct bar *bp; short sint = 7; if (ip < cp) {} // expected-warning {{comparison of distinct pointer types ('int *' and 'char *')}} if (cp < fp) {} // expected-warning {{comparison of distinct pointer ...
Fix test case, which has a control-reaches-end-of-non-void warning that was being masked by previous bug.
Fix test case, which has a control-reaches-end-of-non-void warning that was being masked by previous bug. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76858 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
ecf7875cffe04ce141d81c58ca296f2a3f813a6b
src/gfx/gfxShader.h
src/gfx/gfxShader.h
/* vim: set ts=4 sw=4 tw=79 et :*/ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef gfxShader_h__ #define gfxShader_h__ #include "GL/glew.h" class OpenGLS...
/* vim: set ts=4 sw=4 tw=79 et :*/ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef gfxShader_h__ #define gfxShader_h__ #include "GL/glew.h" class OpenGLS...
Make sure the memory is zero when initialising. This caused failing tests on Windows where mGLResource would already be populated with random stuff.
Make sure the memory is zero when initialising. This caused failing tests on Windows where mGLResource would already be populated with random stuff.
C
mpl-2.0
samgiles/grapl,samgiles/grapl,samgiles/grapl
fcec57fd225fb2fa84e2dd351d7fdebe78945738
src/models/tag.h
src/models/tag.h
#ifndef TAG_H #define TAG_H #include <QString> #include <QStringList> #include "favorite.h" #include "profile.h" class Tag { public: Tag(); explicit Tag(QString text, QString type = "unknown", int count = 1, QStringList related = QStringList()); ~Tag(); static Tag FromCapture(QStringList caps, QStringList o...
#ifndef TAG_H #define TAG_H #include <QString> #include <QStringList> #include "favorite.h" #include "profile.h" class Tag { public: Tag(); explicit Tag(QString text, QString type = "unknown", int count = 1, QStringList related = QStringList()); ~Tag(); static Tag FromCapture(QStringList caps, QStringList o...
Fix extra qualifier on Tag.FromRegexp breaking build
Fix extra qualifier on Tag.FromRegexp breaking build
C
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,YoukaiCat/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,YoukaiCat/imgbrd-grabber
cb3194f6aec438049fffe055fae64cfa21c31732
test/CodeGen/2009-02-13-zerosize-union-field-ppc.c
test/CodeGen/2009-02-13-zerosize-union-field-ppc.c
// RUN: %clang_cc1 %s -m32 -emit-llvm -o - | grep {i32 32} | count 3 // XFAIL: * // XTARGET: powerpc // Every printf has 'i32 0' for the GEP of the string; no point counting those. typedef unsigned int Foo __attribute__((aligned(32))); typedef union{Foo:0;}a; typedef union{int x; Foo:0;}b; extern int printf(const char...
// RUN: %clang_cc1 %s -triple powerpc-pc-linux -emit-llvm -o - | grep {i32 32} | count 3 // XFAIL: * // Every printf has 'i32 0' for the GEP of the string; no point counting those. typedef unsigned int Foo __attribute__((aligned(32))); typedef union{Foo:0;}a; typedef union{int x; Foo:0;}b; extern int printf(const char...
Fix test so that it XFAILs consistently.
Fix test so that it XFAILs consistently. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143771 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
c11244b155a6aa198b4d660286365e82698a6a2d
Math/include/Math/Utils.h
Math/include/Math/Utils.h
// // Copyright (c) 2012 Juan Palacios juan.palacios.puyana@gmail.com // This file is part of minimathlibs. // Subject to the BSD 2-Clause License // - see < http://opensource.org/licenses/BSD-2-Clause> // #ifndef MATH_UTILS_H__ #define MATH_UTILS_H__ namespace Math { template <typename T> struct CompareWithTole...
// // Copyright (c) 2012 Juan Palacios juan.palacios.puyana@gmail.com // This file is part of minimathlibs. // Subject to the BSD 2-Clause License // - see < http://opensource.org/licenses/BSD-2-Clause> // #ifndef MATH_UTILS_H_ #define MATH_UTILS_H_ #include <cstdlib> #include <cmath> namespace Math { template <...
Add missing includes for std::abs.
Add missing includes for std::abs.
C
bsd-2-clause
juanchopanza/minimathlibs,juanchopanza/minimathlibs
7ab834a58bb46c6b55035221328e5a72f0631907
third_party/hwloc/static-components.h
third_party/hwloc/static-components.h
/* Copyright 2019 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 2019 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...
Include Linux or FreeBSD symbols depending on OS we are compiling on.
hwloc: Include Linux or FreeBSD symbols depending on OS we are compiling on.
C
apache-2.0
tensorflow/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,annarev/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,arborh/tensorflow,tensorflow/tensorflow,DavidNorman/tensorflow,aam-at/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tens...
1700bafb8a0793a158f610b21efd4dcb822ddfba
src/ports/SkFontConfigInterface_direct.h
src/ports/SkFontConfigInterface_direct.h
/* * Copyright 2009-2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */ #include "SkFontConfigInterface.h" #include <fontconfig/fontconfig.h> class SkFontConfigInterf...
/* * Copyright 2009-2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */ #ifndef SKFONTCONFIGINTERFACE_DIRECT_H_ #define SKFONTCONFIGINTERFACE_DIRECT_H_ #include "SkFont...
Add include guard to SkFontConfigInterface.h
Add include guard to SkFontConfigInterface.h BUG=skia:7137 Change-Id: I29536a21211eae8b075d43984f3677f64ff9f481 Reviewed-on: https://skia-review.googlesource.com/57820 Reviewed-by: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@google.com> Commit-Queue: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@googl...
C
bsd-3-clause
google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,googl...
d961e95a724729129cc2fd9b26b0da136c445322
libc/sysdeps/linux/common/bits/uClibc_errno.h
libc/sysdeps/linux/common/bits/uClibc_errno.h
/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #ifndef _BITS_UCLIBC_ERRNO_H #define _BITS_UCLIBC_ERRNO_H 1 #ifdef IS_IN_rtld # undef errno # define errno _dl_errno extern int _dl_errno; // attribute_hidden; #elif defin...
/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #ifndef _BITS_UCLIBC_ERRNO_H #define _BITS_UCLIBC_ERRNO_H 1 #ifdef IS_IN_rtld # undef errno # define errno _dl_errno extern int _dl_errno; // attribute_hidden; #elif defin...
Fix typo in macro for tls access model
Fix typo in macro for tls access model
C
lgpl-2.1
brgl/uclibc-ng,czankel/xtensa-uclibc,hjl-tools/uClibc,kraj/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ysat0/uClibc,gittup/uClibc,OpenInkpot-archive/iplinux-uclibc,majek/uclibc-vx32,ddcc/klee-uclibc-0.9.33.2,wbx-github/uclibc-ng,kraj/uclibc-ng,hjl-tools/uClibc,majek/uclibc-vx32,mephi42/uClibc,mephi42/uClibc,foss...
bdaf36df79bb3f80c23988ea8a4884cba12dd39e
src/amx.h
src/amx.h
#if defined __clang__ #pragma clang push #pragma clang diagnostic ignored "-Wignored-attributes" #elif defined __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wattributes" #endif #include <amx/amx.h> #include <amx/amxaux.h> #include <amx/amxdbg.h> #if defined __clang_ #pragma clang pop #eli...
#if defined __clang__ #pragma clang push #pragma clang diagnostic ignored "-Wignored-attributes" #elif defined __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wattributes" #endif #ifdef _WIN32 #include <malloc.h> #endif #include <amx/amx.h> #include <amx/amxaux.h> #include <amx/amxdbg.h> #...
Fix alloca() redefinition warning on Windows
Fix alloca() redefinition warning on Windows
C
bsd-2-clause
Zeex/samp-plugin-crashdetect,Zeex/samp-plugin-crashdetect,Zeex/samp-plugin-crashdetect
9a5e3ffb2268504c98bcba77e44ec18071c52418
framework/Source/iOS/GPUImageView.h
framework/Source/iOS/GPUImageView.h
#import <UIKit/UIKit.h> #import "GPUImageContext.h" typedef enum { kGPUImageFillModeStretch, // Stretch to fill the full view, which may distort the image outside of its normal aspect ratio kGPUImageFillModePreserveAspectRatio, // Maintains the aspect ratio of the source image, ...
#import <UIKit/UIKit.h> #import "GPUImageContext.h" typedef NS_ENUM(NSUInteger, GPUImageFillModeType) { kGPUImageFillModeStretch, // Stretch to fill the full view, which may distort the image outside of its normal aspect ratio kGPUImageFillModePreserveAspectRatio, // Maintains t...
Update GPUImageFillModeType enum to use NS_ENUM
Update GPUImageFillModeType enum to use NS_ENUM
C
bsd-3-clause
duanhjlt/GPUImage,duanhjlt/GPUImage
5e943344594d9b670e09e44dadd780e91ddffd5b
ui/aura/event_filter.h
ui/aura/event_filter.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 UI_AURA_EVENT_FILTER_H_ #define UI_AURA_EVENT_FILTER_H_ #pragma once #include "base/logging.h" #include "ui/gfx/point.h" namespace aura { c...
// 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 UI_AURA_EVENT_FILTER_H_ #define UI_AURA_EVENT_FILTER_H_ #pragma once #include "base/basictypes.h" namespace aura { class Window; class Mous...
Include basictypes.h for DISALLOW macro.
aura: Include basictypes.h for DISALLOW macro. R=ben@chromium.org Review URL: http://codereview.chromium.org/7976010 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@101986 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,timopulkkinen/BubbleFish,rogerwang/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,bright-sparks/chr...
706d8d60091b30bc950be8877864f12aed1ab9c0
src/software/raw-adc-consumer/main.c
src/software/raw-adc-consumer/main.c
/*************************************************************************************** * MAIN.C * * Description: Converts raw ADC reads given via character device to time of flight * * (C) 2016 Visaoni * Licensed under the MIT License. ***************************************************************************...
/*************************************************************************************** * MAIN.C * * Description: Converts raw ADC reads given via character device to time of flight * * (C) 2016 Visaoni * Licensed under the MIT License. ***************************************************************************...
Set up basic processing framework
Set up basic processing framework Constructs read values from character device and passes it through the most basic processing to find time of flight.
C
mit
thetransformerr/beagle-sonic,Visaoni/beagle-sonic-anemometer,thetransformerr/beagle-sonic,Visaoni/beagle-sonic-anemometer,thetransformerr/beagle-sonic,thetransformerr/beagle-sonic,Visaoni/beagle-sonic-anemometer
087d365eb12943b25fab0f798832b817620be1ee
include/matrix_assignment_impl.h
include/matrix_assignment_impl.h
//----------------------------------------------------------------------------- // Assignments //----------------------------------------------------------------------------- template<class T> matrix<T>& matrix<T>::operator=( std::initializer_list<std::initializer_list<T>> init_list){ data_ = make_vector(init_li...
//----------------------------------------------------------------------------- // Assignments //----------------------------------------------------------------------------- template<class T> matrix<T>& matrix<T>::operator=( std::initializer_list<std::initializer_list<T>> init_list){ data_ = make_vector(init_li...
Add rows and cols assignment.
Add rows and cols assignment.
C
mit
actinium/cppMatrix,actinium/cppMatrix
21144972d185d3dfd47cd9641901ba8d34921e84
src/lib/eina_main.c
src/lib/eina_main.c
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
Remove warning and only include needed stuff.
Remove warning and only include needed stuff. git-svn-id: b99a075ee42e317ef7d0e499fd315684e5f6d838@35456 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
lgpl-2.1
OpenInkpot-archive/iplinux-eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,jordemort/eina
e32856d08454650f0aec60409125448a58ed6159
src/bin/e_error.h
src/bin/e_error.h
#ifdef E_TYPEDEFS #define e_error_message_show(args...) \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif
#ifdef E_TYPEDEFS #define e_error_message_show(args...) do \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } while (0) #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif...
Fix macro so it can be used as a statement
e: Fix macro so it can be used as a statement Should fix devilhorn's compile error. Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61783
C
bsd-2-clause
rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,rvandegrift/e,FlorentRevest/Enlightenment,tasn/enlightenment
c2f7955dca22540cfd1fa995967e0bc08fb92b2b
test/fixtures/external_scan.c
test/fixtures/external_scan.c
#include <tree_sitter/parser.h> enum { EXTERNAL_A, EXTERNAL_B }; void *tree_sitter_test_grammar_external_scanner_create() { return NULL; } void tree_sitter_test_grammar_external_scanner_destroy(void *payload) { } bool tree_sitter_test_grammar_external_scanner_scan(void *payload, TSLexer *lexer, const bool *va...
#include <tree_sitter/parser.h> enum { EXTERNAL_A, EXTERNAL_B }; void *tree_sitter_test_grammar_external_scanner_create() { return NULL; } void tree_sitter_test_grammar_external_scanner_destroy(void *payload) { } bool tree_sitter_test_grammar_external_scanner_scan(void *payload, TSLexer *lexer, const bool *va...
Fix signature of fixture external scanner functions
Fix signature of fixture external scanner functions
C
mit
tree-sitter/tree-sitter-cli,tree-sitter/node-tree-sitter-compiler,tree-sitter/node-tree-sitter-compiler,tree-sitter/tree-sitter-cli,tree-sitter/tree-sitter-cli,tree-sitter/node-tree-sitter-compiler,maxbrunsfeld/node-tree-sitter-compiler,tree-sitter/tree-sitter-cli,maxbrunsfeld/node-tree-sitter-compiler,maxbrunsfeld/nod...
10bdcdef15256a5cd9c181ae928c22b35ae77a58
source/glbinding/include/glbinding/nogl.h
source/glbinding/include/glbinding/nogl.h
#pragma once #ifdef __gl_h_ #error "glbinding is not compatible with gl.h" #else #define __gl_h_ #endif
#ifdef __gl_h_ #error "glbinding is not compatible with gl.h" #endif
Revert gl.h emulation using __gl_h_ include guard
Revert gl.h emulation using __gl_h_ include guard
C
mit
j-o/glbinding,mcleary/glbinding,hpicgs/glbinding,cginternals/glbinding,mcleary/glbinding,hpicgs/glbinding,j-o/glbinding,mcleary/glbinding,hpicgs/glbinding,j-o/glbinding,j-o/glbinding,mcleary/glbinding,cginternals/glbinding,hpicgs/glbinding
a93e50dba9a0528ba2bebe76601b933259b684d1
src/math/p_sinh.c
src/math/p_sinh.c
#include <pal.h> /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @return None * */ #include <math.h> void p_sinh_f32(const f...
#include <pal.h> /* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z; p_exp_f32(&z, &exp_z, 1); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to...
Implement the hyperbolic sine function.
math:sinh: Implement the hyperbolic sine function. Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
C
apache-2.0
mateunho/pal,eliteraspberries/pal,mateunho/pal,Adamszk/pal3,olajep/pal,eliteraspberries/pal,eliteraspberries/pal,aolofsson/pal,parallella/pal,mateunho/pal,8l/pal,parallella/pal,aolofsson/pal,8l/pal,Adamszk/pal3,debug-de-su-ka/pal,debug-de-su-ka/pal,eliteraspberries/pal,8l/pal,parallella/pal,debug-de-su-ka/pal,olajep/pa...
cd7dd0d229447082a6152623d4757470aeba29ad
examples/c-library/c-library.h
examples/c-library/c-library.h
/** * Example of a typical library providing a C-interface */ #pragma once #include "ivi-main-loop-c.h" #ifdef __cplusplus extern "C" { #endif static IVIMainLoop_EventSource_ReportStatus callbackMyCLibrary(const void *data) { printf("callbackMyCLibrary\n"); return IVI_MAIN_LOOP_KEEP_ENABLED; } /** * Ini...
/** * Example of a typical library providing a C-interface */ #pragma once #include "ivi-main-loop-c.h" #ifdef __cplusplus extern "C" { #endif static IVIMainLoop_EventSource_ReportStatus callbackMyCLibrary(const void *data) { printf("callbackMyCLibrary\n"); return IVI_MAIN_LOOP_KEEP_ENABLED; } /** * Ini...
Add missing static for inline functions (GCC 5)
Add missing static for inline functions (GCC 5)
C
mpl-2.0
Pelagicore/ivi-main-loop,Pelagicore/ivi-main-loop
34140265c404df02af11ed7684b7c087dfe5b8c8
chrome/browser/cocoa/objc_zombie.h
chrome/browser/cocoa/objc_zombie.h
// Copyright (c) 2010 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_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #pragma once #import <Foundation/Foundation.h> // Yo...
// Copyright (c) 2010 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_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #define CHROME_BROWSER_COCOA_NSOBJECT_ZOMBIE_H_ #pragma once #import <Foundation/Foundation.h> // Yo...
Add link to explanation of what we mean by zombie The person triaging / debugging a zombie crash may never have heard of this before.
Add link to explanation of what we mean by zombie The person triaging / debugging a zombie crash may never have heard of this before. BUG=None TEST=None Review URL: http://codereview.chromium.org/3763002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@62723 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,timopulkkinen/BubbleFish,rogerwang/chromium,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,robclark/chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,robclark/chromium,...
28745fcea6f0fe7e26f565ab756bdc2bbb174abc
Sub-Terra/include/Text.h
Sub-Terra/include/Text.h
#pragma once #include "Sprite.h" #include "FontAsset.h" class Text : public Sprite { private: std::shared_ptr<FontAsset> asset; std::string str; public: Text(std::shared_ptr<FontAsset> asset, const std::string str, const Point2 pos = Point2(0), const Origin origin = Origin::BottomLeft, const Point4 color = Point...
#pragma once #include "Sprite.h" #include "FontAsset.h" class Text : public Sprite { private: std::shared_ptr<FontAsset> asset; std::string str; public: Text(std::shared_ptr<FontAsset> asset, const std::string str, const Point2 pos = Point2(0), const Origin origin = Origin::BottomLeft, const Point4 color = Point...
Add black drop-shadow outline to text
Add black drop-shadow outline to text
C
mpl-2.0
shockkolate/polar4,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,polar-engine/polar,shockkolate/polar4
afa6a8d6434f31dc87242e42e2875f2efd4f9000
firmware/main/Wifi.h
firmware/main/Wifi.h
/* * Wifi.h * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef MAIN_WIFI_H_ #define MAIN_WIFI_H_ #include "esp_err.h" #include "esp_wifi.h" class Wifi { public: Wifi(); ...
/* * Wifi.h * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef MAIN_WIFI_H_ #define MAIN_WIFI_H_ #include "esp_err.h" #include "esp_wifi.h" class Wifi { public: Wifi(); ...
Change eventHandler to static member
Change eventHandler to static member
C
mit
ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid
7e56885dbd46d1eb53d2082e906a6e2e2d7972af
src/lcthw/list_algos.h
src/lcthw/list_algos.h
#ifndef lcthw_List_algos_h #define lcthw_List_algos_h #include <lcthw/list.h> typedef int (*List_compare)(void *a, void *b); int List_bubble_sort(List *list, List_compare cmp); List *List_merge_sort(List *list, List_compare cmp); #endif
#ifndef lcthw_List_algos_h #define lcthw_List_algos_h #include <lcthw/list.h> typedef int (*List_compare)(const void *a, const void *b); int List_bubble_sort(List *list, List_compare cmp); List *List_merge_sort(List *list, List_compare cmp); #endif
Make the compare const void.
Make the compare const void.
C
bsd-3-clause
HappyYang/liblcthw,HappyYang/liblcthw,HappyYang/liblcthw
a86329164a7d3c82cf04d1f3443b00e1fc6347e5
rt/cgen/cowgol-cgen.h
rt/cgen/cowgol-cgen.h
#ifndef COWGOL_CGEN_H #define COWGOL_CGEN_H #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> typedef uint8_t i1; typedef uint16_t i2; typedef uint32_t i4; typedef uint64_t i8; typedef ...
#ifndef COWGOL_CGEN_H #define COWGOL_CGEN_H #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <endian.h> #if BYTE_ORDER == BIG_ENDIAN #error "Sorry, cowgol cgen doesn't work on ...
Annotate that we don't work on big-endian systems yet..
Annotate that we don't work on big-endian systems yet..
C
bsd-2-clause
davidgiven/cowgol,davidgiven/cowgol
d9bcea381a69ebc6367aede7816b8e27d5fc9417
include/extensions.h
include/extensions.h
#ifndef _SWAY_EXTENSIONS_H #define _SWAY_EXTENSIONS_H #include <wayland-server.h> #include <wlc/wlc-wayland.h> #include "wayland-desktop-shell-server-protocol.h" #include "list.h" struct background_config { wlc_handle output; wlc_resource surface; // we need the wl_resource of the surface in t...
#ifndef _SWAY_EXTENSIONS_H #define _SWAY_EXTENSIONS_H #include <wayland-server.h> #include <wlc/wlc-wayland.h> #include "wayland-desktop-shell-server-protocol.h" #include "list.h" struct background_config { wlc_handle output; wlc_resource surface; // we need the wl_resource of the surface in the destructor struct...
Fix formatting guide violations (spaces instead of tabs)
Fix formatting guide violations (spaces instead of tabs)
C
mit
1ace/sway,sleep-walker/sway,mikkeloscar/sway,taiyu-len/sway,1ace/sway,ascent12/sway,ascent12/sway,4e554c4c/sway,ascent12/sway,mikkeloscar/sway,sleep-walker/sway,johalun/sway,SirCmpwn/sway,4e554c4c/sway,ptMuta/sway,1ace/sway,taiyu-len/sway,taiyu-len/sway
5651bcff404d3c6352c22f1bdc9f959a8c5efdb7
include/sys/select.h
include/sys/select.h
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_SYS_SELECT_H #define MINLIBC_SYS_SELECT_H #include <time.h> typedef struct {} fd_...
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_SYS_SELECT_H #define MINLIBC_SYS_SELECT_H #include <time.h> typedef struct {} fd_...
Add a definition for FD_SETSIZE.
Add a definition for FD_SETSIZE.
C
bsd-3-clause
GaloisInc/minlibc,GaloisInc/minlibc
7a9c7c2303dcd388acfc7467473f3cdc0facbd91
test/CodeGen/bool-convert.c
test/CodeGen/bool-convert.c
// RUN: %clang_cc1 -emit-llvm < %s | grep i1 | count 1 // All of these should uses the memory representation of _Bool struct teststruct1 {_Bool a, b;} test1; _Bool* test2; _Bool test3[10]; _Bool (*test4)[]; void f(int x) { _Bool test5; _Bool test6[x]; }
// RUN: %clang_cc1 -triple i686-pc-linux -emit-llvm < %s | FileCheck %s // All of these should uses the memory representation of _Bool // CHECK-LABEL: %struct.teststruct1 = type { i8, i8 } // CHECK-LABEL: @test1 = common global %struct.teststruct1 struct teststruct1 {_Bool a, b;} test1; // CHECK-LABEL: @test2 = commo...
Convert test to FileCheck and make it more strict.
Convert test to FileCheck and make it more strict. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@197248 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
404a921b9e5499eea8bc1bd5e77ce4bf572935db
kernel/port/include/kernel/port/bitwhack.h
kernel/port/include/kernel/port/bitwhack.h
#ifndef KERNEL_PORT_BITWHACK_H #define KERNEL_PORT_BITWHACK_H /* Helpers for bitwhacking. */ /** * Macros for constructing bit masks. * * When bitwise-anded with another value: * * MASK_LO(n) masks out the lowest n bits. * MASK_HI(n) masks out all but the lowest n bits. * MASK_RANGE(lo, hi) masks out all of th...
#ifndef KERNEL_PORT_BITWHACK_H #define KERNEL_PORT_BITWHACK_H /* Helpers for bitwhacking. */ /** * Macros for constructing bit masks. * * When bitwise-anded with another value: * * MASK_LO(n) masks out the lowest n bits. * MASK_HI(n) masks out all but the lowest n bits. * MASK_RANGE(lo, hi) masks out all of th...
Fix warning re: signed shift
Fix warning re: signed shift Clang complained that shifting a negative number is UB. So we make sure the constant is unsigned.
C
isc
zenhack/zero,zenhack/zero,zenhack/zero
852c5cd346c86778e7c37905f32887e179389a53
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.32f;
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.40f;
Increment version number from 1.32 to 1.40
Increment version number from 1.32 to 1.40 The code that checked for new versions was discarding the last digit of the version numbers that it read from the releases web page. This means that it wouldn't notice new versions until the 0.1 column changes. So I'm changing it. Apologies for the hack. The version checking ...
C
apache-2.0
google/UIforETW,google/UIforETW,MikeMarcin/UIforETW,MikeMarcin/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,mwinterb/UIforETW
8696d1a75abab568a0d5089f39fdafb2e447bd17
tree/treeplayer/inc/DataFrameLinkDef.h
tree/treeplayer/inc/DataFrameLinkDef.h
/************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing...
/************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing...
Add another autoload key for TDataFrameImpl'
[TDF] Add another autoload key for TDataFrameImpl'
C
lgpl-2.1
gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root,gganis/root
e2133c86896b2728ea97a9028b97a65cdb695973
test/Analysis/stats.c
test/Analysis/stats.c
// RUN: %clang_cc1 -analyze -analyzer-stats %s 2> FileCheck void foo() { ; } // CHECK: ... Statistics Collected ...
// RUN: %clang_cc1 -analyze -analyzer-stats %s 2>&1 | FileCheck %s // XFAIL: * void foo() { ; } // CHECK: ... Statistics Collected ...
Fix a test case that was added in r151570. The redirect of output was broken so no testing was actually done. Further, the commands produce no output. The redirection has been fixed and the test has been disabled.
Fix a test case that was added in r151570. The redirect of output was broken so no testing was actually done. Further, the commands produce no output. The redirection has been fixed and the test has been disabled. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@151591 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
f99cb2aca6b5d3999e4d6015ca9731e7041c0eba
libyaul/scu/bus/b/vdp2/vdp2_scrn_reduction_set.c
libyaul/scu/bus/b/vdp2/vdp2_scrn_reduction_set.c
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <vdp2/scrn.h> #include <assert.h> #include "vdp2-internal.h" void vdp2_scrn_reduction_set(uint8_t scrn, uint16_t horz_reduction) { #ifdef DEBUG /* Check if the background passed is ...
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <vdp2/scrn.h> #include <assert.h> #include "vdp2-internal.h" void vdp2_scrn_reduction_set(uint8_t scrn, uint16_t horz_reduction) { #ifdef DEBUG /* Check if the background passed is ...
Fix writing to wrong register
Fix writing to wrong register
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
11f88734c26a6b477c9715720aac5af8b455a605
SSPSolution/SSPSolution/LevelDirector.h
SSPSolution/SSPSolution/LevelDirector.h
#ifndef SSPAPPLICATION_AI_LEVELDIRECTOR_H #define SSPAPPLICATION_AI_LEVELDIRECTOR_H #include "Observer.h" #include <vector> class LevelDirector { private: // Variables /* TEMP STATE STRUCTURE */ static enum State { NONE = 0, START, DEFAULT, GOAL }; State m_currentState; State m_defaultState; //State m_go...
#ifndef SSPAPPLICATION_AI_LEVELDIRECTOR_H #define SSPAPPLICATION_AI_LEVELDIRECTOR_H #include "Observer.h" #include <vector> //#define NUMSTATES 3 namespace FSMEnvironment { #pragma region temp enum Hint { NONE = 0, EXAMPLE }; struct State { int stateID = -1; int timeDelay = -1; Hint hint = Hint::NONE; ...
FIX cleaned up header file to resemble FSM environment
FIX cleaned up header file to resemble FSM environment
C
apache-2.0
Chringo/SSP,Chringo/SSP
27326b71197a4f73e422f388d5aa3d1b3ea24bac
util/eprintf.c
util/eprintf.c
/* See LICENSE file for copyright and license details. */ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../util.h" static void venprintf(int, const char *, va_list); void eprintf(const char *fmt, ...) { va_list ap; va_start(ap, fmt); venprintf(EXIT_FAILURE, fmt, ap); ...
/* See LICENSE file for copyright and license details. */ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../util.h" static void venprintf(int, const char *, va_list); void eprintf(const char *fmt, ...) { va_list ap; va_start(ap, fmt); venprintf(EXIT_FAILURE, fmt, ap); v...
Mark venprintf() as static explicitly, not just in the decl
Mark venprintf() as static explicitly, not just in the decl
C
mit
ScoreUnder/fjinit,gdm85/sinit,henrysher/sinit
48f856a79a74748d1b2432ebab0b24e46bf082a8
utility/utility_toolkit.h
utility/utility_toolkit.h
#ifdef OS_WINDOWS #endif #ifdef LINUX #define SWAP(valX,valY) \ { \ typeof (valX) valZ; \ valZ = valX; \ valX = valY; ...
#ifdef OS_WINDOWS #endif #ifdef LINUX #define SWAP(valX,valY) \ { \ typeof (valX) valZ; \ valZ = valX; \ valX = valY; ...
Check system is big endian or little endian function added
Check system is big endian or little endian function added Check system is big endian or little endian?
C
apache-2.0
straceX/cprogrammingtoolkit
6a40a8ac4ceeef60737c6872877249477cdb5421
Pod/Classes/Constants.h
Pod/Classes/Constants.h
// // Constants.h // Pods // // Created by Danil Tulin on 1/30/16. // // @import Foundation; #ifndef Constants_h #define Constants_h const static NSString *defaultPrimaryColor = @"1A1A1C"; const static NSString *darkPrimaryColor = @"121315"; const static NSInteger bottomToolbarHeight = 50; const static CGFloat ...
// // Constants.h // Pods // // Created by Danil Tulin on 1/30/16. // // @import Foundation; #ifndef Constants_h #define Constants_h const static NSString *defaultPrimaryColor = @"1A1A1C"; const static NSString *darkPrimaryColor = @"121315"; const static NSInteger bottomToolbarHeight = 50; const static CGFloat ...
Add new constant for button
Add new constant for button
C
mit
tulindanil/SEUIKit
338133a98d34607b9b6ada6065b72c8c7d9f8790
CefSharp.Core/Internals/CefCallbackWrapper.h
CefSharp.Core/Internals/CefCallbackWrapper.h
// Copyright 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include\cef_callback.h" namespace CefSharp { public ref class CefCallbackWrapper : public ICallbac...
// Copyright 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "Stdafx.h" #include "include\cef_callback.h" namespace CefSharp { public ref class CefCallbackWrapper : public ICallbac...
Change 'if' style for null _callback check
Change 'if' style for null _callback check
C
bsd-3-clause
battewr/CefSharp,Haraguroicha/CefSharp,gregmartinhtc/CefSharp,rlmcneary2/CefSharp,battewr/CefSharp,joshvera/CefSharp,ruisebastiao/CefSharp,dga711/CefSharp,yoder/CefSharp,zhangjingpu/CefSharp,ITGlobal/CefSharp,Haraguroicha/CefSharp,illfang/CefSharp,gregmartinhtc/CefSharp,Livit/CefSharp,AJDev77/CefSharp,NumbersInternatio...
de4c5acd59de654cd1b16cf74ae94f1bd128652a
src/config.h
src/config.h
/* * Copyright 2013 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Copyright 2013 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Include platform.h instead of ifdef'ing
Include platform.h instead of ifdef'ing Change-Id: I23b3202563623b46d94c10459837581be231f58e Reviewed-on: http://review.couchbase.org/30386 Reviewed-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com> Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
C
apache-2.0
couchbase/cbsasl
86358c5e3310867aa65027e3407d9e0b090181aa
arch/hppa/include/spinlock.h
arch/hppa/include/spinlock.h
/* $OpenBSD: spinlock.h,v 1.1 1999/01/08 08:25:34 d Exp $ */ #ifndef _MACHINE_SPINLOCK_H_ #define _MACHINE_SPINLOCK_H_ #define _SPINLOCK_UNLOCKED (1) #define _SPINLOCK_LOCKED (0) typedef int _spinlock_lock_t; #endif
/* $OpenBSD: spinlock.h,v 1.2 2005/12/19 21:30:10 marco Exp $ */ #ifndef _MACHINE_SPINLOCK_H_ #define _MACHINE_SPINLOCK_H_ #define _SPINLOCK_UNLOCKED (1) #define _SPINLOCK_LOCKED (0) typedef int _spinlock_lock_t __attribute__((__aligned__(16))); #endif
Fix hppa ldcw alignment issue.
Fix hppa ldcw alignment issue. Help deraadt, tedu, kettenis Ok tedu, kettenis
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
af79d59c5288bd633834dd5bb1e67f9c7470b736
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
6f2ec515d9a2c56b0cea14172bf5691c068c0c65
test/CodeGen/2007-06-15-AnnotateAttribute.c
test/CodeGen/2007-06-15-AnnotateAttribute.c
// RUN: %clang_cc1 -emit-llvm %s -o - | grep llvm.global.annotations // RUN: %clang_cc1 -emit-llvm %s -o - | grep llvm.var.annotation | count 3 #include <stdio.h> /* Global variable with attribute */ int X __attribute__((annotate("GlobalValAnnotation"))); /* Function with attribute */ int foo(int y) __attribute__((a...
// RUN: %clang_cc1 -emit-llvm %s -o - | grep llvm.global.annotations // RUN: %clang_cc1 -emit-llvm %s -o - | grep llvm.var.annotation | count 3 /* Global variable with attribute */ int X __attribute__((annotate("GlobalValAnnotation"))); /* Function with attribute */ int foo(int y) __attribute__((annotate("GlobalValAn...
Make this test portable on Win32.
Make this test portable on Win32. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@139464 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
554f657af8c33be01a0300518bc313fa13e46d34
src/rx5808-pro-diversity/pstr_helper.h
src/rx5808-pro-diversity/pstr_helper.h
#ifndef PSTR_HELPER_H #define PSTR_HELPER_H #include <avr/pgmspace.h> // Modified PSTR that pushes string into a char* buffer for easy use. // // There is only one buffer so this will cause problems if you need to pass two // strings to one function. #define PSTR2(x) PSTRtoBuffer_P(PSTR(x)) #define PSTR2_BU...
#ifndef PSTR_HELPER_H #define PSTR_HELPER_H #include <avr/pgmspace.h> // Modified PSTR that pushes string into a char* buffer for easy use. // // There is only one buffer so this will cause problems if you need to pass two // strings to one function. #define PSTR2(x) PSTRtoBuffer_P(PSTR(x)) #define PSTR2_BU...
Increase PSTR2 buffer (fix broken calibration)
Increase PSTR2 buffer (fix broken calibration) - No idea how this didn't cause problems before. Luck?
C
mit
sheaivey/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity
d39a5652fcf904abc26ef2d7165df6d9ecfc68d8
chapter5/Game.h
chapter5/Game.h
#ifndef __GAME__ #define __GAME__ #include<vector> #include<SDL2/SDL.h> #include"GameObject.h" #include"GameStateMachine.h" class Game { public: static Game *getInstance() { if (!instance) { instance = new Game(); } return instance; } ...
#ifndef __GAME__ #define __GAME__ #include<vector> #include<SDL2/SDL.h> #include"GameObject.h" #include"GameStateMachine.h" class Game { public: static Game *getInstance() { if (!instance) { instance = new Game(); } return instance; } ...
Include method to return pointer to object gameStateMachine
Include method to return pointer to object gameStateMachine
C
bsd-2-clause
caiotava/SDLBook
9bf27e459fa470bccd07d64ee3e6aad9b49847f4
wangle/concurrent/NamedThreadFactory.h
wangle/concurrent/NamedThreadFactory.h
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
/* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
Revert D5012627: [FBCode] Switch various calls to folly::setThreadName to set the current thread's name
Revert D5012627: [FBCode] Switch various calls to folly::setThreadName to set the current thread's name Summary: This reverts commit a4e6e2c2cb5bd02b1ebea85c305eac59355a7d42 Differential Revision: D5012627 fbshipit-source-id: ff4b8ff94d5f5e76f0777b96d03975d3f7834a17
C
apache-2.0
facebook/wangle,facebook/wangle,facebook/wangle
57462517acbc6ee2cd669e7b8d3cb014c7cd9d3e
ImageLoader/ImageLoader.h
ImageLoader/ImageLoader.h
// // ImageLoader.h // ImageLoader // // Created by Hirohisa Kawasaki on 10/16/14. // Copyright (c) 2014 Hirohisa Kawasaki. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> FOUNDATION_EXPORT double ImageLoaderVersionNumber; FOUNDATION_EXPORT const unsigned char ImageLoaderVersionS...
// // ImageLoader.h // ImageLoader // // Created by Hirohisa Kawasaki on 10/16/14. // Copyright (c) 2014 Hirohisa Kawasaki. All rights reserved. // #import <Foundation/Foundation.h> FOUNDATION_EXPORT double ImageLoaderVersionNumber; FOUNDATION_EXPORT const unsigned char ImageLoaderVersionString[];
Remove import `UIKit` from header file
Remove import `UIKit` from header file
C
mit
glustful/ImageLoaderSwift,iAladdin/ImageLoaderSwift,oenius/ImageLoaderSwift,ton-katsu/ImageLoaderSwift,hirohisa/ImageLoaderSwift,etataurov/ImageLoaderSwift,valentinmaxime/ImageLoaderSwift,etataurov/ImageLoaderSwift,valentinmaxime/ImageLoaderSwift,oenius/ImageLoaderSwift,ton-katsu/ImageLoaderSwift,hirohisa/ImageLoaderSw...
d369548192882edab7331975fcad885c4e8e38e7
base/mutex.h
base/mutex.h
// Copyright (c) 2010 Timur Iskhodzhanov. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_MUTEX_H_ #define BASE_MUTEX_H_ #include <pthread.h> #include "base/common.h" namespace threading { class Mutex { public: Mutex(); ~...
// Copyright (c) 2010 Timur Iskhodzhanov. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_MUTEX_H_ #define BASE_MUTEX_H_ #include <pthread.h> #include "base/common.h" namespace threading { // OS-independent wrapper for mutex/c...
Add a comment with a 'TODO: add DCHECKS' for class Mutex
Add a comment with a 'TODO: add DCHECKS' for class Mutex
C
bsd-3-clause
denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course
f684a2d783bf2c4728e65f83e0f89ec654f40e79
crypto/ec/curve448/arch_64/arch_intrinsics.h
crypto/ec/curve448/arch_64/arch_intrinsics.h
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
/* * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016 Cryptography Research, Inc. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distributio...
Use constant time zero check function
curve448: Use constant time zero check function Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Tomas Mraz <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@openssl.org> Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14784)
C
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
791cf1f256c1c33d14a7270c83650b5c1ebc44e0
Modules/getpath.c
Modules/getpath.c
#include "Python.h" #include "osdefs.h" #ifndef PYTHONPATH #define PYTHONPATH ".:/usr/local/lib/python" #endif /* Return the initial python search path. This is called once from initsys() to initialize sys.path. The environment variable PYTHONPATH is fetched and the default path appended. The default pa...
#include "Python.h" #include "osdefs.h" #ifdef HAVE_STDLIB_H #include <stdlib.h> #else extern char *getenv Py_PROTO((const char *)); #endif #ifndef PYTHONPATH #define PYTHONPATH ".:/usr/local/lib/python" #endif /* Return the initial python search path. This is called once from initsys() to initialize sys.path....
Include stdlib.h or declare getenv
Include stdlib.h or declare getenv
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
e9e47963f55932d40c3883bf2ecc612ea0803fcc
source/tools/finite/opt.h
source/tools/finite/opt.h
// // Created by david on 2019-03-18. // #pragma once #include <general/eigen_tensor_fwd_decl.h> class class_state_finite; class class_model_finite; class class_edges_finite; class class_tensors_finite; class class_algorithm_status; class class_tic_toc; enum class OptSpace; enum class OptType; enum class OptMode; en...
// // Created by david on 2019-03-18. // #pragma once #include <general/eigen_tensor_fwd_decl.h> class class_state_finite; class class_model_finite; class class_edges_finite; class class_tensors_finite; class class_algorithm_status; class class_tic_toc; namespace eig {class solver;} enum class OptSpace; enum class O...
Use forward declarations to speed up compilation
Use forward declarations to speed up compilation Former-commit-id: 58cb24dbf6102d6be5cf36336ae6547d9b6b544e
C
mit
DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG
a9eb35469d1e69649a43426f0a832b7cca732409
src/modules/antifreeze.h
src/modules/antifreeze.h
/* * antifreeze.h * StatusSpec project * * Copyright (c) 2014-2015 Forward Command Post * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #pragma once #include "cdll_int.h" #include "vgui/VGUI.h" #include "../modules.h" class ConCommand; class ConVar; class IConVar; class KeyV...
/* * antifreeze.h * StatusSpec project * * Copyright (c) 2014-2015 Forward Command Post * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #pragma once #include "../modules.h" class ConCommand; class ConVar; class IConVar; class AntiFreeze : public Module { public: AntiFreeze(...
Remove unneeded declarations and headers.
Remove unneeded declarations and headers.
C
bsd-2-clause
fwdcp/StatusSpec,fwdcp/StatusSpec
160887b31b1794d15e14ce09bf11a1fa80b6f74c
copasi/copasiversion.h
copasi/copasiversion.h
/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/copasiversion.h,v $ $Revision: 1.3 $ $Name: $ $Author: shoops $ $Date: 2004/02/19 03:28:58 $ End CVS Header */ #ifndef COPASI_VERSION #define COPASI_VERSION #define COPASI_VERSION_MAJOR 4 #define COPASI_VERSION_MINOR 0 #...
/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/copasiversion.h,v $ $Revision: 1.4 $ $Name: $ $Author: shoops $ $Date: 2004/02/20 18:15:46 $ End CVS Header */ #ifndef COPASI_VERSION #define COPASI_VERSION #define COPASI_VERSION_MAJOR 4 #define COPASI_VERSION_MINOR 0 #...
Build number increased to 3.
Build number increased to 3.
C
artistic-2.0
copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI
00e8765b3a2db414e655021fadf86f420c11d4a5
srcs/testpath.c
srcs/testpath.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* testpath.c :+: :+: :+: ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* testpath.c :+: :+: :+: ...
Check dir have to be done
Check dir have to be done
C
mit
SuliacLEGUILLOU/minishell
74105155ca352765df67c735573f725ab89c269e
arch/octeon/include/param.h
arch/octeon/include/param.h
/* $OpenBSD: param.h,v 1.2 2010/10/11 15:51:06 syuu Exp $ */ /* public domain */ #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ #define MACHINE "octeon" #define _MACHINE octeon #define MACHINE_ARCH "mips64" #define _MACHINE_ARCH mips64 /* not the canonical endianness */ #define MACHINE_CPU "mips64" #define _MAC...
/* $OpenBSD: param.h,v 1.3 2011/06/25 19:38:47 miod Exp $ */ /* public domain */ #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ #define MACHINE "octeon" #define _MACHINE octeon #define MACHINE_ARCH "mips64" #define _MACHINE_ARCH mips64 #define MID_MACHINE MID_MIPS64 #define PAGE_SHIFT 14 #include <mips64/par...
Remove irrelevant comments borrowed from loongson.
Remove irrelevant comments borrowed from loongson.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
9899ff8cb4bd63601fc3dfa115b00d65c3388fff
ConfinementForce.h
ConfinementForce.h
/*===- ConfinementForce.h - libSimulation -===================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef CONFIN...
/*===- ConfinementForce.h - libSimulation -===================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef CONFIN...
Add virtual to methods that get overridden.
Add virtual to methods that get overridden.
C
bsd-3-clause
leios/demonsimulationcode,leios/demonsimulationcode
d8a0e9ab3b1189d994142a5adb1e144f378534c9
assembler/d16-main/main.c
assembler/d16-main/main.c
// // main.c // d16-asm // // Created by Michael Nolan on 6/17/16. // Copyright © 2016 Michael Nolan. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include "parser.h" #include "assembler.h" #include <string.h> #include "instruction.h" extern int yyparse (FILE* output_file); extern FILE* yyin; ex...
// // main.c // d16-asm // // Created by Michael Nolan on 6/17/16. // Copyright © 2016 Michael Nolan. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include "parser.h" #include "assembler.h" #include <string.h> #include "instruction.h" #include <unistd.h> extern int yyparse (FILE* output_file); ex...
Convert assembler to use getopt for arguments
Convert assembler to use getopt for arguments
C
mit
d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16,d16-processor/d16
ef1774c5b7f39291692a42b4aeced11abf8e7ace
util/util_optimization.h
util/util_optimization.h
/* * Copyright 2011-2013 Blender Foundation * * 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 ag...
/* * Copyright 2011-2013 Blender Foundation * * 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 ag...
Disable SSE41 kernel on 32bit, we don't use intrinsics here anyway. Also disable it for Visual Studio < 2012, broken blendv instruction.
Cycles: Disable SSE41 kernel on 32bit, we don't use intrinsics here anyway. Also disable it for Visual Studio < 2012, broken blendv instruction.
C
apache-2.0
pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird
dff2094cb79c6a0bbb2e2af74af488a106c033cc
lib/packet_queue.c
lib/packet_queue.c
#include "packet_queue.h" #include "error.h" #include "radio.h" #include <stdint.h> #include <stdlib.h> #include <string.h> uint32_t packet_queue_init(packet_queue_t * queue) { queue->head = 0; queue->tail = 0; return SUCCESS; } bool packet_queue_is_empty(packet_queue_t * queue) { return queue->he...
#include "packet_queue.h" #include "error.h" #include "radio.h" #include <stdint.h> #include <stdlib.h> #include <string.h> uint32_t packet_queue_init(packet_queue_t * queue) { queue->head = 0; queue->tail = 0; return SUCCESS; } bool packet_queue_is_empty(packet_queue_t * queue) { return queue->he...
Fix bug in add, copy size.
Fix bug in add, copy size.
C
bsd-3-clause
hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio
4a14e0945732e5c67aca01d6bd070d00d1697d9a
jsonpull.h
jsonpull.h
typedef enum json_type { JSON_HASH, JSON_ARRAY, JSON_NUMBER, JSON_STRING, JSON_TRUE, JSON_FALSE, JSON_NULL, JSON_COMMA, JSON_COLON, JSON_ITEM, JSON_KEY, JSON_VALUE, } json_type; typedef struct json_object { json_type type; struct json_object *parent; char *string; double number; struct json_object **array; s...
typedef enum json_type { // These types can be returned by json_parse() JSON_HASH, JSON_ARRAY, JSON_NUMBER, JSON_STRING, JSON_TRUE, JSON_FALSE, JSON_NULL, // These and JSON_HASH and JSON_ARRAY can be called back by json_parse_with_separators() JSON_COMMA, JSON_COLON, // These are only used internally as expectat...
Clarify what types are used where
Clarify what types are used where
C
bsd-2-clause
mapbox/tippecanoe,joykuotw/tippecanoe,landsurveyorsunited/tippecanoe,mapbox/tippecanoe,ericfischer/json-pull,mapbox/tippecanoe,landsurveyorsunited/tippecanoe,mapbox/tippecanoe,joykuotw/tippecanoe
2bb49affe3bc123a13cc0e05d94dd8c32ac087e1
src/main.h
src/main.h
#ifndef __ADR_MAIN_H__ #define __ADR_MAIN_H__ // Libraries // #include "craftable.h" #include "resource.h" #include "villager.h" #include "location.h" // Forward Declarations // struct adr_state { enum LOCATION adr_loc; enum FIRE_STATE adr_fire; enum ROOM_TEMP adr_temp; unsigned int adr_rs [ALIEN_ALLO...
#ifndef __ADR_MAIN_H__ #define __ADR_MAIN_H__ // Libraries // #include "craftable.h" #include "resource.h" #include "villager.h" #include "location.h" // Forward Declarations // struct adr_state { enum LOCATION loc; enum FIRE_STATE fire; enum ROOM_TEMP temp; unsigned int rs [ALIEN_ALLOY + 1]; unsi...
Remove unnecessary state variable adr_ prefixes
Remove unnecessary state variable adr_ prefixes
C
mpl-2.0
HalosGhost/adarcroom
7b2154cb6232a9d289a95ce79e70c590fee12d63
test/Frontend/optimization-remark-options.c
test/Frontend/optimization-remark-options.c
// RUN: %clang -O1 -fvectorize -Rpass-analysis=loop-vectorize -emit-llvm -S %s -o - 2>&1 | FileCheck %s // CHECK: {{.*}}:9:11: remark: loop not vectorized: vectorization requires changes in the order of operations, however IEEE 754 floating-point operations are not commutative; allow commutativity by specifying '#prag...
// RUN: %clang -O1 -fvectorize -target x86_64-unknown-unknown -Rpass-analysis=loop-vectorize -emit-llvm -S %s -o - 2>&1 | FileCheck %s // CHECK: {{.*}}:9:11: remark: loop not vectorized: vectorization requires changes in the order of operations, however IEEE 754 floating-point operations are not commutative; allow com...
Make frontend floating-point commutivity test X86 specific to avoid cost-model related problems on arm-thumb and hexagon.
Make frontend floating-point commutivity test X86 specific to avoid cost-model related problems on arm-thumb and hexagon. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@244517 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
37f07d9a6bcd16b9f3f461eeb1a4acdfd8643cc5
src/util/strext.h
src/util/strext.h
// Copyright 2015 Ben Trask // MIT licensed (see LICENSE for details) #include <stdarg.h> char *vaasprintf(char const *const fmt, va_list ap); char *aasprintf(char const *const fmt, ...) __attribute__((format(printf, 1, 2))); int time_iso8601(char *const out, size_t const max); void valogf(char const *const fmt, va...
// Copyright 2015 Ben Trask // MIT licensed (see LICENSE for details) #include <stdarg.h> char *vaasprintf(char const *const fmt, va_list ap); char *aasprintf(char const *const fmt, ...) __attribute__((format(printf, 1, 2))); int time_iso8601(char *const out, size_t const max); void valogf(char const *const fmt, va...
Add printf __attribute__ to log function.
Add printf __attribute__ to log function.
C
mit
btrask/stronglink,Ryezhang/stronglink,btrask/stronglink,Ryezhang/stronglink,Ryezhang/stronglink,btrask/stronglink,btrask/stronglink
5e994b1e9ba0ddbd27773825cb8bfe30ee2e69d2
gobject/gobject-autocleanups.h
gobject/gobject-autocleanups.h
/* * Copyright © 2015 Canonical Limited * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the licence, or (at your option) any later version. * * This librar...
/* * Copyright © 2015 Canonical Limited * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the licence, or (at your option) any later version. * * This librar...
Add missing autocleanup for GInitiallyUnowned
gobject: Add missing autocleanup for GInitiallyUnowned We are missing the auto cleanup function for this type, which means G_DECLARE_* macros won't work with classes inheriting from GInitiallyUnowned.
C
lgpl-2.1
ieei/glib,cention-sany/glib,MathieuDuponchelle/glib,endlessm/glib,lukasz-skalski/glib,tchakabam/glib,mzabaluev/glib,johne53/MB3Glib,krichter722/glib,johne53/MB3Glib,mzabaluev/glib,MathieuDuponchelle/glib,ieei/glib,krichter722/glib,mzabaluev/glib,krichter722/glib,tchakabam/glib,endlessm/glib,tamaskenez/glib,MathieuDupon...
c22a793cc1ea01e03a01dc86b1a82480e9d27f29
optional/capi/ext/mri.h
optional/capi/ext/mri.h
#ifndef RUBYSPEC_CAPI_MRI_H #define RUBYSPEC_CAPI_MRI_H /* #undef any HAVE_ defines that MRI does not have. */ #undef HAVE_RB_HASH_LOOKUP #undef HAVE_RB_HASH_SIZE #undef HAVE_RB_OBJ_FROZEN_P #undef HAVE_RB_STR_PTR #undef HAVE_RB_STR_PTR_READONLY #undef HAVE_THREAD_BLOCKING_REGION #ifdef RUBY_VERSION_IS_1_9 #undef ...
#ifndef RUBYSPEC_CAPI_MRI_H #define RUBYSPEC_CAPI_MRI_H /* #undef any HAVE_ defines that MRI does not have. */ #undef HAVE_RB_HASH_LOOKUP #undef HAVE_RB_HASH_SIZE #undef HAVE_RB_OBJ_FROZEN_P #undef HAVE_RB_STR_PTR #undef HAVE_RB_STR_PTR_READONLY #undef HAVE_THREAD_BLOCKING_REGION #ifdef RUBY_VERSION_IS_1_9 #undef ...
Add prototype of non public API of MRI.
Add prototype of non public API of MRI. RubySpec may want to test some APIs even if they are not declared as public API by MRI team. This commit is not to confirm they are public.
C
mit
BanzaiMan/rubyspec,bl4ckdu5t/rubyspec,sgarciac/spec,DavidEGrayson/rubyspec,DavidEGrayson/rubyspec,rkh/rubyspec,enricosada/rubyspec,ericmeyer/rubyspec,alexch/rubyspec,alex/rubyspec,yous/rubyspec,josedonizetti/rubyspec,metadave/rubyspec,julik/rubyspec,lucaspinto/rubyspec,MagLev/rubyspec,enricosada/rubyspec,rdp/rubyspec,m...
23e0a58c5a48802946cf0fbadef023179a443f05
include/llvm/Bytecode/Reader.h
include/llvm/Bytecode/Reader.h
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
//===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ----*- C++ -*--=// // // This functionality is implemented by the lib/Bytecode/Reader library. // This library is used to read VM bytecode files from an iostream. // // Note that performance of this library is _crucial_ for performance of the // JIT type app...
Add prototype to read .a files
Add prototype to read .a files git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5821 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpe...
40400617eba718214ec442d495ec9869c471f839
SWXSLTransform.h
SWXSLTransform.h
// // SWXSLTransform.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 23/02/12. // Copyright (c) 2012 Samuel Williams. All rights reserved. // #import <Foundation/Foundation.h> @interface SWXSLTransform : NSObject { NSURL * _baseU...
// // SWXSLTransform.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 23/02/12. // Copyright (c) 2012 Samuel Williams. All rights reserved. // #import <Foundation/Foundation.h> @interface SWXSLTransform : NSObject { NSURL * _baseU...
Mark init as being unavailable.
Mark init as being unavailable.
C
mit
oriontransfer/SWXMLMapping
425aa9921544bd60bd26f2429a41deb2e156bd34
Cpp/declare.h
Cpp/declare.h
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H /*! * @brief Template class */ class <+FILEBASE+> { private: public: <+FILEBASE+>() { <+CUR...
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H #include <iostream> /*! * @brief Template class */ class <+FILE_PASCAL+> { private: public: <+...
Enable to treat with std::cout and std::cin
Enable to treat with std::cout and std::cin
C
mit
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate
28f263f2eef862952af22e7668e7c1d0e0937c1f
libyaul/common/stack.c
libyaul/common/stack.c
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include "stack.h" char * stack_backtrace(void) { extern void *_text_start; extern void *_text_end; static char bu...
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include "stack.h" char * stack_backtrace(void) { extern void *_text_start; extern void *_text_end; static char bu...
Use snprintf() instead of sprintf()
Use snprintf() instead of sprintf()
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
a46b7fabdb79de949d0d795cf2ec0accc2a34a4b
Ndapi/Ndapi.h
Ndapi/Ndapi.h
#pragma once #include <ORATYPES.H> using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _st...
#pragma once #include <ORATYPES.H> using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _...
Use =delete to disallow copy
Use =delete to disallow copy
C
mit
felipebz/ndapi
3e2851f3711355d1db7c286b3738513f4adc3dca
OpenROV/Motors.h
OpenROV/Motors.h
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 128 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(...
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 90 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop()...
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
C
mit
binary42/openrov-software-arduino,OpenROV/openrov-software-arduino,johan--/openrov-software-arduino,dieface/openrov-software-arduino,spiderkeys/openrov-software-arduino,binary42/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,johan--/openrov-software-arduino,OpenROV/openrov-software-arduino,BrianAdams/ope...
a18de90de5ef80a1785dea6f2ca1be26e0fddc1d
rootx/src/rootcoreteam.h
rootx/src/rootcoreteam.h
#ifndef ROOT_ROOTCoreTeam #define ROOT_ROOTCoreTeam namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this he...
#ifndef ROOT_ROOTCoreTeam #define ROOT_ROOTCoreTeam namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The names are sorted in alphabetical order. //The string has an internal linkage (it has a definition here, not in ro...
Make it even simpler for a script to replace.
Make it even simpler for a script to replace.
C
lgpl-2.1
CristinaCristescu/root,esakellari/root,0x0all/ROOT,smarinac/root,pspe/root,lgiommi/root,davidlt/root,arch1tect0r/root,pspe/root,vukasinmilosevic/root,satyarth934/root,mhuwiler/rootauto,Y--/root,krafczyk/root,krafczyk/root,Y--/root,sawenzel/root,zzxuanyuan/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,sbinet/cx...
2259c582f031fefe09792543f89da286245f6a88
data/main.c
data/main.c
#include <stdio.h> int main() { printf("Hello, world!\n"); }
#include <stdio.h> int main() { printf("Hello, world!\n"); return 0; }
Add proper return code to test software.
Add proper return code to test software.
C
bsd-3-clause
jlisee/cbd,jlisee/cbd,jlisee/cbd
b8cfdf3f2e53241c12ef7adb49006e526ada3f37
MCSMKeychainItem.h
MCSMKeychainItem.h
// // MCSMKeychainItem.h // MCSMFoundation // // Created by Spencer MacDonald on 12/10/2011. // Copyright 2012 Square Bracket Software. All rights reserved. // #import <Foundation/Foundation.h> #if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR #import <Carbon/Carbon.h> #endif #import <Security/Security.h> @interface...
// // MCSMKeychainItem.h // MCSMFoundation // // Created by Spencer MacDonald on 12/10/2011. // Copyright 2012 Square Bracket Software. All rights reserved. // #import <Foundation/Foundation.h> #import <Security/Security.h> @interface MCSMKeychainItem : NSObject #if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR + ...
Remove the need for the Carbon Framework on OS X
Remove the need for the Carbon Framework on OS X The Carbon Framework was left in the header from previous versions.
C
bsd-3-clause
ObjColumnist/MCSMKeychainItem
f9f554b9710c0f5dfd758071d4a6272c2274add4
urbackupserver/server_ping.h
urbackupserver/server_ping.h
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void...
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void...
Copy clientname instead of reference
Copy clientname instead of reference
C
agpl-3.0
uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend
1213144d03d3bc69979ea50b32979ddd2b7f8dd2
scanner.def.h
scanner.def.h
#ifndef CALC_SCANNER_DEF_H_ #define CALC_SCANNER_DEF_H_ typedef union { int int_value; } YYSTYPE; typedef struct { int function; int result; YYSTYPE lhs; YYSTYPE rhs; } BinaryFunction; class ParserState { public: int result; int eval; ParserState() : result(0) { } }; #endif // CALC_SCANNER_D...
#ifndef CALC_SCANNER_DEF_H_ #define CALC_SCANNER_DEF_H_ typedef union { int int_value; } YYSTYPE; class ParserState { public: int result; int eval; ParserState() : result(0) { } }; #endif // CALC_SCANNER_DEF_H_
Remove silly struct that's silly
Remove silly struct that's silly
C
mit
nic0lette/lemony,nic0lette/lemony,nic0lette/lemony
a8a06367f849d7742c7dace0fa2d4a395b513a43
include/llvm/Transforms/Utils/FunctionUtils.h
include/llvm/Transforms/Utils/FunctionUtils.h
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- 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. // //===--------...
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- 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. // //===--------...
Add ability to extract a single basic block into a new function.
Add ability to extract a single basic block into a new function. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12052 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swi...
dac4534697ccd7250a4af3f573fafd040a3ca263
src/iotsaFS.h
src/iotsaFS.h
#ifndef _IOTSAFS_H_ #define _IOTSAFS_H_ // // SPIFFS/LittleFS choice is complex, also for include file differences on ESP32/ESP8266. // So put if all in a separate include file. // #include <FS.h> #ifdef IOTSA_WITH_LEGACY_SPIFFS #ifdef ESP32 #include <SPIFFS.h> #endif #define IOTSA_FS SPIFFS #define IOTSA_FS_NAME "SPI...
#ifndef _IOTSAFS_H_ #define _IOTSAFS_H_ // // SPIFFS/LittleFS choice is complex, also for include file differences on ESP32/ESP8266. // So put if all in a separate include file. // #include <FS.h> #ifdef IOTSA_WITH_LEGACY_SPIFFS #ifdef ESP32 #include <SPIFFS.h> #endif #define IOTSA_FS SPIFFS #define IOTSA_FS_NAME "SPI...
Undo change for LittleFS include name: Arduino uses the capitalized one.
Undo change for LittleFS include name: Arduino uses the capitalized one.
C
mit
cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa
ef201bebe5afc91a2b99b45dacc8c6dd88ca9e58
arch/sparc/include/asm/rwsem-const.h
arch/sparc/include/asm/rwsem-const.h
/* rwsem-const.h: RW semaphore counter constants. */ #ifndef _SPARC64_RWSEM_CONST_H #define _SPARC64_RWSEM_CONST_H #define RWSEM_UNLOCKED_VALUE 0x00000000 #define RWSEM_ACTIVE_BIAS 0x00000001 #define RWSEM_ACTIVE_MASK 0x0000ffff #define RWSEM_WAITING_BIAS 0xffff0000 #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BI...
/* rwsem-const.h: RW semaphore counter constants. */ #ifndef _SPARC64_RWSEM_CONST_H #define _SPARC64_RWSEM_CONST_H #define RWSEM_UNLOCKED_VALUE 0x00000000 #define RWSEM_ACTIVE_BIAS 0x00000001 #define RWSEM_ACTIVE_MASK 0x0000ffff #define RWSEM_WAITING_BIAS (-0x00010000) #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE...
Fix rwsem constant bug leading to hangs.
sparc64: Fix rwsem constant bug leading to hangs. As noticed by Linus, it is critical that some of the rwsem constants be signed. Yet, hex constants are unsigned unless explicitly casted or negated. The most critical one is RWSEM_WAITING_BIAS. This bug was exacerbated by commit 424acaaeb3a3932d64a9b4bd59df6cf72c22d...
C
mit
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,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
e067c269e4c9ac2bbc2d8b7691305aa6f78ba5b1
webkit/glue/plugins/ppb_private.h
webkit/glue/plugins/ppb_private.h
// Copyright (c) 2010 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_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB...
// Copyright (c) 2010 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_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_IN...
Add third_party/ prefix to ppapi include for checkdeps.
Add third_party/ prefix to ppapi include for checkdeps. The only users of this ppb should be inside chrome so this should work fine. TBR=jam@chromium.org Review URL: http://codereview.chromium.org/3019006 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@52766 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,dednal/chromium.src,jaruba/chromium.src,patrickm/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,robclark/chromium,littl...
8af989c23f030663c8b5a297e988970b4910b461
sandbox/linux/services/android_arm_ucontext.h
sandbox/linux/services/android_arm_ucontext.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ typedef long int greg_t; typedef unsigne...
// 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 SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #include <asm/sigcontext.h> typedef lo...
Fix for downstream android webview
Fix for downstream android webview Previously erros is struct sigcontext is not defined. Including the header file now. TBR=jln,markus Android only include change. Android trybots pass compile. NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/11636039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478...
C
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromi...
9d10ecc7460e73847079bd92234656cdff6fd6fe
src/devices.h
src/devices.h
/* Narcissus * © 2015 David Given * This file is redistributable under the terms of the two-clause BSD license; * see COPYING in the distribution root for the full text. */ #ifndef DEVICES_H #define DEVICES_H #include <X11/Xlib.h> struct button { int keycode; uint32_t button; }; struct chord { uint32_t butto...
/* Narcissus * © 2015 David Given * This file is redistributable under the terms of the two-clause BSD license; * see COPYING in the distribution root for the full text. */ #ifndef DEVICES_H #define DEVICES_H #include <X11/Xlib.h> struct button { int keycode; uint32_t button; }; struct chord { uint32_t butto...
Document that meta doesn't work.
Document that meta doesn't work.
C
bsd-2-clause
davidgiven/narcissus
22172bb584a97412e01d77f6cb3eb183aab06d56
boards/arm/cc3200_launchxl/board.h
boards/arm/cc3200_launchxl/board.h
/* * Copyright (c) 2016, Texas Instruments Incorporated * * 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 appl...
/* * Copyright (c) 2016, Texas Instruments Incorporated * * 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 appl...
Add generic definitions for LEDs and switches
cc3200: Add generic definitions for LEDs and switches Adds generic definitions for GPIO pins for onboard LEDs and switches to enable the basic blinky, button, and disco Zephyr examples for the TI CC3200 LaunchXL. Change-Id: Iac0ed2ad01285f9e84eea1fa7013771ddd8d3a78 Signed-off-by: Gil Pitney <477da50908f0a7963c2c490cc...
C
apache-2.0
zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,explora26/zephyr,punitvara/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,GiulianoFranchetto/zephyr,mbolivar/zephyr,explora26/zephyr,sharronliu/zephyr,sharronliu/zephyr,rsalveti...
7d51c07f00043f980050a06bd4e4a7b6983a78f6
JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h
JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h
#include <stdio.h> /* Interface to JPEG code */ #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2* error_ptr2; void error_exit (j_common_ptr cinfo); GLOBAL(void) jpeg_mem_sr...
#include <stdio.h> /* Interface to JPEG code */ #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2* error_ptr2; void error_exit (j_common_ptr cinfo); GLOBAL(void) jpeg_mem_sr...
Fix typo in method signature
Fix typo in method signature git-svn-id: http://squeakvm.org/svn/squeak/trunk@3745 fa1542d4-bde8-0310-ad64-8ed1123d492a Former-commit-id: 76afe8ba507e75296f2fbba2c2c20aaa29c41819
C
mit
bencoman/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,...
d9d5db9efedbf1ca9ddd11e0f2eff2a4b04afe90
stutterfuzz.c
stutterfuzz.c
#include <stdio.h> #include <stdint.h> #include "rand.h" static uint64_t sqrt64(uint64_t n) { uint64_t g = UINT64_C(1) << 31; for (uint64_t c = g; c; g |= c) { if (g * g > n) { g ^= c; } c >>= 1; } return g; } static uint64_t get_split(uint64_t len) { uint64_t rnd; rand_fill(&rnd, sizeof(rnd)...
#include <stdio.h> #include <stdint.h> #include "rand.h" static uint64_t get_split(uint64_t total_len, uint64_t remaining_len) { uint64_t rnd; rand_fill(&rnd, sizeof(rnd)); rnd %= total_len; return rnd > remaining_len ? remaining_len : rnd; } int main(int __attribute__ ((unused)) argc, char __attribute__ ((unuse...
Fix random algo to evenly distribute.
Fix random algo to evenly distribute.
C
apache-2.0
flamingcowtv/stutterfuzz
f007fbd9af3299d047f0b1dce1ffb2b625775133
src/include/impl/kernel/slab_static.h
src/include/impl/kernel/slab_static.h
/** * @file * @brief Internal implementation of static slab allocator * * @date 07.03.2011 * @author Kirill Tyushev */ #ifndef SLAB_STATIC_H_ # error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!" #endif /* SLAB_STATIC_H_ */ #include <util/binalign.h> /** cache descriptor */ struct...
/** * @file * @brief Internal implementation of static slab allocator * * @date 07.03.2011 * @author Kirill Tyushev */ #ifndef SLAB_STATIC_H_ # error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!" #endif /* SLAB_STATIC_H_ */ #include <util/binalign.h> /** cache descriptor */ struct...
Fix macro replacement: removal of conflict with __name_pool
Fix macro replacement: removal of conflict with __name_pool (using pasting)
C
bsd-2-clause
Kefir0192/embox,vrxfile/embox-trik,embox/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,Kefir0192/embox,embox/embox,Kefir0192/embox,vrxfile/embox-trik,mike2390/embox,mike2390/embox,abusalimov/embox,mike2390/embox,vrxfile/embox-trik,Kakadu/embox,mike2390/embox,vrxfile/...
9b662d66ce40ee91314cf392a73cf6991a654172
src/lib/ecore/Ecore_Str.h
src/lib/ecore/Ecore_Str.h
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI...
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI...
Fix doxygen comments for new header.
Fix doxygen comments for new header. SVN revision: 27891
C
bsd-2-clause
gfriloux/ecore,gfriloux/ecore,gfriloux/ecore