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
59e44a3ff36e0a67cd39c8e3149d2fdaa089b7d4
src/log_thread.h
src/log_thread.h
// // log_thread.h // #ifndef log_thread_h #define log_thread_h #include "queue_atomic.h" struct log_thread; typedef std::shared_ptr<log_thread> log_thread_ptr; #define LOG_BUFFER_SIZE 1024 struct log_thread : std::thread { static const bool debug; static const int flush_inter...
// // log_thread.h // #ifndef log_thread_h #define log_thread_h #include "queue_atomic.h" struct log_thread; typedef std::shared_ptr<log_thread> log_thread_ptr; #define LOG_BUFFER_SIZE 1024 struct log_thread : std::thread { static const bool debug; static const int flush_inter...
Fix thread initialisation race (thread sanitizer)
Fix thread initialisation race (thread sanitizer)
C
isc
metaparadigm/latypus,metaparadigm/latypus,metaparadigm/latypus,metaparadigm/latypus
b650f4bc8e04662493546c8ab2ab0fbca1081dac
iree/tools/init_xla_dialects.h
iree/tools/init_xla_dialects.h
// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // This files defines a helper to trigger the registration of dialects to // the system. #ifndef...
// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // This files defines a helper to trigger the registration of dialects to // the system. #ifndef...
Move the lhlo dialect into its own directory.
Move the lhlo dialect into its own directory. Also remove it from registerAllMhloDialects and make registrations explicit. PiperOrigin-RevId: 412411838
C
apache-2.0
iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree
57f2821f8ed183036e61f76a8b2fefcc1a1f1cbd
src/morphology/mainhelper2.h
src/morphology/mainhelper2.h
#include <iostream> #include <vector> #include <string> #include "erosion.h" #include "dilation.h" #include "opening.h" #include "closing.h" #include "gradient.h" /** run: A macro to call a function. */ #define run( function, ctype, dim ) \ if ( operation == #function ) \ { \ if ( componentType == #ctype && Dimens...
#include <iostream> #include <vector> #include <string> #include "erosion.h" #include "dilation.h" #include "opening.h" #include "closing.h" #include "gradient.h" /** run: A macro to call a function. */ #define run( function, ctype, dim ) \ if ( operation == #function ) \ { \ if ( componentType == #ctype && Dimens...
Fix backslash warning from missing blank line at end of file
Fix backslash warning from missing blank line at end of file
C
apache-2.0
ITKTools/ITKTools,ITKTools/ITKTools,ITKTools/ITKTools,sderaedt/ITKTools,sderaedt/ITKTools,sderaedt/ITKTools,sderaedt/ITKTools,sderaedt/ITKTools,ITKTools/ITKTools
a3e8d4a968060536e210ac5dc177cd097d7df774
lib/interception/interception_win.h
lib/interception/interception_win.h
//===-- interception_linux.h ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- interception_linux.h ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove one more reference to __interception::GetRealFunctionAddress (follow-up to r215707)
[ASan/Win] Remove one more reference to __interception::GetRealFunctionAddress (follow-up to r215707) git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@215722 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
40206332871e11ee28c6d163797cb374da2663e9
src/python/pylogger.h
src/python/pylogger.h
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
Fix Py_Logger to raise instances of Exception instead of strings
Fix Py_Logger to raise instances of Exception instead of strings Raising string exceptions was removed in Python 2.6 git-svn-id: e76dbe14710aecee1ad27675521492cea2578c83@1932 02a645c2-efd0-11dd-984d-ab748d24aa7e
C
bsd-3-clause
Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn,Cantera/cantera-svn
bc7bad10693b5c6616a424ff64278a6eeb8925da
folly/CompiledFormat.h
folly/CompiledFormat.h
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
Disable compiled format for GCC 8 & below
Disable compiled format for GCC 8 & below Summary: As per title, as fmt doesn't currently handle them well. Reviewed By: vitaut Differential Revision: D26004515 fbshipit-source-id: dbbd1e6550fa10c4a6fcb0fc5597887c9411ca70
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
7eae3515be77d87d54f7a1b42cc53cb936e3ede3
components/DataportTest/src/client.c
components/DataportTest/src/client.c
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <camkes.h> #include <stdio.h> #include <string.h> #include <sel4/sel4.h> i...
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #include <camkes.h> #include <stdio.h> #include <string.h> int run(void) { char...
Remove casting away of volatile and explicit call to seL4_Yield.
Remove casting away of volatile and explicit call to seL4_Yield. This commit removes some bad style in this example. In particular, calling a seL4 system call directly from a CAmkES component is not intended. Additionally this example cast away the volatility of the dataport pointer. From what I can see, the only reas...
C
bsd-2-clause
seL4/camkes-apps-dataport--devel
be3f8ddf0f51e601866dbcc1a3fcac6d0db14e39
gc_none.c
gc_none.c
#include "visibility.h" #include "objc/runtime.h" #include "gc_ops.h" #include "class.h" #include <stdlib.h> #include <stdio.h> static id allocate_class(Class cls, size_t extraBytes) { intptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1); return (id)(addr + 1); } static void free_object(id...
#include "visibility.h" #include "objc/runtime.h" #include "gc_ops.h" #include "class.h" #include <stdlib.h> #include <stdio.h> static id allocate_class(Class cls, size_t extraBytes) { intptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1); return (id)(addr + 1); } static void free_object(id...
Fix bug spotted by Justin Hibbits.
Fix bug spotted by Justin Hibbits.
C
mit
ngrewe/libobjc2,gnustep/libobjc2,davidchisnall/libobjc2,crystax/android-vendor-libobjc2,ngrewe/libobjc2,crystax/android-vendor-libobjc2,gnustep/libobjc2,darlinghq/darling-libobjc2,davidchisnall/libobjc2,darlinghq/darling-libobjc2
151e30567b407381af5134c9f5c3d782bf80c3e2
src/core/lib/security/security_connector/load_system_roots.h
src/core/lib/security/security_connector/load_system_roots.h
/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add newline to end of header
Add newline to end of header
C
apache-2.0
muxi/grpc,grpc/grpc,carl-mastrangelo/grpc,ejona86/grpc,vjpai/grpc,muxi/grpc,stanley-cheung/grpc,stanley-cheung/grpc,mehrdada/grpc,grpc/grpc,sreecha/grpc,jboeuf/grpc,jtattermusch/grpc,jboeuf/grpc,carl-mastrangelo/grpc,grpc/grpc,carl-mastrangelo/grpc,firebase/grpc,ejona86/grpc,ejona86/grpc,ctiller/grpc,ctiller/grpc,pszem...
58de6ed0ccc6b3749c3ddd0d7be44b81eb440cf9
inc/spu.h
inc/spu.h
#ifndef __SPU_H__ #define __SPU_H__ typedef enum { NONE, VOLUME, COMPRESSOR, DISTORTION, OVERDRIVE, DELAY, REVERB, FLANGER, EQULIZER, BACK, EFFECT_TYPE_NUM } EffectType_t; void SignalProcessingUnit(void const * argument); void attachNewEffect(uint32_t stage, EffectType_t e...
#ifndef __SPU_H__ #define __SPU_H__ typedef enum { NONE, VOLUME, COMPRESSOR, DISTORTION, OVERDRIVE, DELAY, REVERB, FLANGER, EQULIZER, EFFECT_TYPE_NUM } EffectType_t; void SignalProcessingUnit(void const * argument); void attachEffect(uint32_t stage, EffectType_t effectType); c...
Add Function to get avaliable Effect name
Add Function to get avaliable Effect name
C
mit
sonicyang/uRock,sonicyang/uRock,BeyondCloud/uRock,sonicyang/uRock,BeyondCloud/uRock,BeyondCloud/uRock,BeyondCloud/uRock,sonicyang/uRock
651603c57e8818a492b59cbaa49f8fc5a27d1566
main.c
main.c
#include "siphash.h" #include <stdio.h> int main(void) { uint64_t k0 = 0x0706050403020100ull; uint64_t k1 = 0x0f0e0d0c0b0a0908ull; uint8_t msg[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e}; ...
#include "siphash.h" #include <stdio.h> int main(void) { uint8_t key[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; uint64_t k0 = *(uint64_t*)(key + 0); uint64_t k1 = *(uint64_t*)(key + 8); uint8_t msg[] = {0x00, 0x01, 0x02, ...
Fix test key initialization to be endian-neutral
Fix test key initialization to be endian-neutral Signed-off-by: Gregory Petrosyan <60f6837da39a129899062fdb5e652b06dce7deb5@gmail.com>
C
mit
flyingmutant/siphash
3236ff1f1c85e35d99aba3c94092a665717964ef
lb_matrix.h
lb_matrix.h
#ifndef LB_MATRIX_INCLUDED typedef struct { double* data; unsigned int num_rows; unsigned int num_cols; } Matrix; Matrix lb_create_matrix(double* data, unsigned int num_rows, unsigned int num_cols); Matrix lb_allocate_matrix(unsigned int num_rows, unsigned int num_cols); #define lb_mat_element_ptr(A,i,j) (...
#ifndef LB_MATRIX_INCLUDED typedef struct { double* data; unsigned int num_rows; unsigned int num_cols; } Matrix; Matrix lb_create_matrix(double* data, unsigned int num_rows, unsigned int num_cols); Matrix lb_allocate_matrix(unsigned int num_rows, unsigned int num_cols); #define lb_mat_element_ptr(A,i,j) (...
Clarify row and column iterators
Clarify row and column iterators
C
apache-2.0
frenchrd/laid-back-lapack,frenchrd/laid-back-lapack
c89b58e65cce5113ba2d8d8ce531152da23670c9
lib/debug.c
lib/debug.c
#include <ctype.h> #include <stdio.h> #include "debug.h" #ifndef NDEBUG const char * const col[] = {MAG, RED, YEL, CYN, BLU, GRN}; regex_t _comp; // Initialize the regular expression used for restricting debug output static void __attribute__((constructor)) premain() { if (regcomp(&_comp, DCOMPONENT, REG_EXTE...
#include <ctype.h> #include <stdio.h> #include "debug.h" #ifndef NDEBUG const char * const col[] = {MAG, RED, YEL, CYN, BLU, GRN}; regex_t _comp; // Initialize the regular expression used for restricting debug output static void __attribute__((constructor)) premain() { if (regcomp(&_comp, DCOMPONENT, REG_EXTE...
Fix overflow bug introduced in f6b3328f
Fix overflow bug introduced in f6b3328f
C
bsd-2-clause
NTAP/quant,NTAP/quant,NTAP/quant
87dd7d92b3a2598eef4afdde3cda46e1fc23b6e8
test/CodeGen/2003-10-29-AsmRename.c
test/CodeGen/2003-10-29-AsmRename.c
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null struct foo { int X; }; struct bar { int Y; }; extern int Func(struct foo*) __asm__("Func64"); extern int Func64(struct bar*); int Func(struct foo *F) { return 1; } int Func64(struct bar* B) { return 0; } int test() { Func(0); /* should be renamed to call Fu...
// RUN: %clang_cc1 -emit-llvm %s -triple x86_64-apple-darwin -o /dev/null struct foo { int X; }; struct bar { int Y; }; extern int Func(struct foo*) __asm__("Func64"); extern int Func64(struct bar*); int Func(struct foo *F) { return 1; } int Func64(struct bar* B) { return 0; } int test() { Func(0); /* s...
Make this darwin only for now while investigating to clear up x86_64 Release+Asserts linux tests.
Make this darwin only for now while investigating to clear up x86_64 Release+Asserts linux tests. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136223 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
33701a61674753db0c9de7a294137e7dc4dd2d9b
test/Parser/traditional_arg_scope.c
test/Parser/traditional_arg_scope.c
// RUN: clang -fsyntax-only %s -verify x(a) int a; {return a;} y(b) int b; {return a;} // expected-error {{use of undeclared identifier}}
// RUN: clang -fsyntax-only %s -verify x(a) int a; {return a;} y(b) int b; {return a;} // expected-error {{use of undeclared identifier}} // PR2332 a(a)int a;{a=10;return a;}
Test from PR2332; bug already fixed by r51311.
Test from PR2332; bug already fixed by r51311. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@51316 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
93b6ed1dc37e1809b7a9dfa04171c34b7b6153ca
src/SE_GLFW3_Include.h
src/SE_GLFW3_Include.h
#pragma once #define GLFW_INCLUDE_GLU #if __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdocumentation" #endif #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpadded" # include <GLFW/glfw3.h> #pragma GCC diagnostic pop #if __clang__ #pragma clang diagnostic pop #endif
#pragma once #define GLFW_INCLUDE_GLU #if __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdocumentation" #pragma clang diagnostic ignored "-Wdocumentation-unknown-command" #endif #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpadded" # include <GLFW/glfw3.h> #pragma GCC d...
Disable another warning in GLFW.
Disable another warning in GLFW.
C
agpl-3.0
belkiss/SpeakEasy,belkiss/SpeakEasy
2e2d5d779fa18c98d6affc025dc5fcb122743f4c
test/Sema/2007-10-01-BuildArrayRef.c
test/Sema/2007-10-01-BuildArrayRef.c
// RUN: not %clang_cc1_only -c %s -o - > /dev/null // PR 1603 void func() { const int *arr; arr[0] = 1; // expected-error {{assignment of read-only location}} } struct foo { int bar; }; struct foo sfoo = { 0 }; int func2() { const struct foo *fp; fp = &sfoo; fp[0].bar = 1; // expected-error {{ assignm...
// RUN: %clang_cc1 -fsyntax-only -verify %s // PR 1603 void func() { const int *arr; arr[0] = 1; // expected-error {{read-only variable is not assignable}} } struct foo { int bar; }; struct foo sfoo = { 0 }; int func2() { const struct foo *fp; fp = &sfoo; fp[0].bar = 1; // expected-error {{read-only v...
Fix a test that hasn't worked since 2007
Fix a test that hasn't worked since 2007 Due to a missing -verify, 2007-10-01-BuildArrayRef.c was a no-op. The message was changed 5 years ago so also update the test to reflect the new wording. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@196729 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
05461a9fc72c303f611d0b37cde545c2b0c7bdc2
PolyMapGenerator/Map.h
PolyMapGenerator/Map.h
#ifndef MAP_H #define MAP_H #include <vector> #include <map> #include "DelaunayTriangulation.h" #include "Structure.h" #include "QuadTree.h" #endif
#ifndef MAP_H #define MAP_H #include <vector> #include <map> #include "DelaunayTriangulation.h" #include "Structure.h" #include "QuadTree.h" using pCenterQT = QuadTree<Center*>; // Forward Declaration class Vector2; namespace Noise { namespace Module { class Perlin; } } #endif
Define alias type, forward declaration
Define alias type, forward declaration
C
mit
utilForever/PolyMapGenerator
d2bf3b4d67fba2849f0d648c491fd2a4f808ce95
Code/LYRUIMediaAttachment.h
Code/LYRUIMediaAttachment.h
// // LYRUIMediaAttachment.h // LayerSample // // Created by Kevin Coleman on 9/12/14. // Copyright (c) 2014 Layer, Inc. All rights reserved. // #import <UIKit/UIKit.h> /** @abstract The `LYRUIMediaAttachment` class configures the appropriate size for an NSTextAttachment to comfortably fit inside of a LYRUIMess...
// // LYRUIMediaAttachment.h // LayerSample // // Created by Kevin Coleman on 9/12/14. // Copyright (c) 2014 Layer, Inc. All rights reserved. // #import <UIKit/UIKit.h> /** @abstract The `LYRUIMediaAttachment` class configures the appropriate size for an NSTextAttachment to comfortably fit inside of a `LYRUIMes...
Add missing backticks and period in media attachment header comment.
Add missing backticks and period in media attachment header comment.
C
apache-2.0
InterfaceInc/Atlas-iOS,drborges/Atlas-iOS,allensoberano/Atlas-iOS,fhchina/Atlas-iOS,AlexanderMazaletskiy/Atlas-iOS,hellosimplify/Atlas-iOS,joshleibsly/Atlas-iOS,grevolution/Atlas-iOS,acarella/Atlas-iOS,classic-chris/Atlas-iOS,Bluefieldscom/Atlas-iOS,xuzhenguo/Atlas-iOS,dvan001/Atlas-iOS,msdgwzhy6/Atlas-iOS,mohsinalimat...
648778df9610e63104914c7fd9a59a07c3016fe4
BraintreeCore/BTAPIClient_Internal.h
BraintreeCore/BTAPIClient_Internal.h
#import "BTAnalyticsService.h" #import "BTAPIClient.h" #import "BTClientMetadata.h" #import "BTClientToken.h" #import "BTHTTP.h" #import "BTJSON.h" NS_ASSUME_NONNULL_BEGIN @class BTPaymentMethodNonce; @interface BTAPIClient () @property (nonatomic, copy, nullable) NSString *tokenizationKey; @property (nonatomic, st...
#import "BTAnalyticsService.h" #import "BTAPIClient.h" #import "BTClientMetadata.h" #import "BTClientToken.h" #import "BTHTTP.h" #import "BTJSON.h" NS_ASSUME_NONNULL_BEGIN @class BTPaymentMethodNonce; @interface BTAPIClient () @property (nonatomic, copy, nullable) NSString *tokenizationKey; @property (nonatomic, st...
Update header documentation for BTAPIClient-Internal
Update header documentation for BTAPIClient-Internal
C
mit
braintree/braintree_ios,apascual/braintree_ios,billCTG/braintree_ios,apascual/braintree_ios,braintree/braintree_ios,billCTG/braintree_ios,billCTG/braintree_ios,billCTG/braintree_ios,braintree/braintree_ios,apascual/braintree_ios,apascual/braintree_ios,braintree/braintree_ios,billCTG/braintree_ios
1bd3551a0fbd8bc375a9bb7a60d8152ff641f3f9
tests/regression/36-apron/01-octagon_simple.c
tests/regression/36-apron/01-octagon_simple.c
// SKIP PARAM: --set solver td3 --enable ana.int.interval --set ana.base.arrays.domain partitioned --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy // Example from https://www-apr.lip6.fr/~mine/publi/arti...
// SKIP PARAM: --set solver td3 --enable ana.int.interval --set ana.base.arrays.domain partitioned --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper','apron']" --set ana.base.privatization none --set ana.apron.privatization dummy // Example from https://www-apr.lip6.fr/~mine/publi/arti...
Make assert in 36/01 stronger
Make assert in 36/01 stronger
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d922310020e7b97741a5f7e45e84c9ff840514fc
Code/CDAUtilities.h
Code/CDAUtilities.h
// // CDAUtilities.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <ContentfulDeliveryAPI/CDAClient.h> #import <Foundation/Foundation.h> NSString* CDACacheFileNameForQuery(CDAClient* client, CDAResourceType resourceType, NSDictionary* query); NSString* CDACacheFileNameForResource(CDARe...
// // CDAUtilities.h // ContentfulSDK // // Created by Boris Bügling on 04/03/14. // // #import <ContentfulDeliveryAPI/CDAClient.h> #import <Foundation/Foundation.h> NSString* CDACacheDirectory(); NSString* CDACacheFileNameForQuery(CDAClient* client, CDAResourceType resourceType, NSDictionary* query); NSString* CD...
Make the cache directory accessor public.
Make the cache directory accessor public.
C
mit
contentful/contentful.objc,contentful/contentful.objc,davidmdavis/contentful.objc,davidmdavis/contentful.objc,akfreas/contentful.objc,contentful/contentful.objc,danieleggert/contentful.objc,danieleggert/contentful.objc,akfreas/contentful.objc,danieleggert/contentful.objc,akfreas/contentful.objc,davidmdavis/contentful.o...
6fac7a106ada5c1428a629d9ef418f0482c01001
PHYKit/PHYKit/PHYGeometry.h
PHYKit/PHYKit/PHYGeometry.h
// // PHYGeometry.h // PHYKit // // Created by Nora Trapp on 8/1/13. // Copyright (c) 2013 Nora Trapp. All rights reserved. // #import <Box2D/Common/b2Math.h> #define kPointsToMeterRatio (32) #define PointsToMeters(points) (points / kPointsToMeterRatio) #define MetersToPoints(meters) (meters * kPointsToMet...
// // PHYGeometry.h // PHYKit // // Created by Nora Trapp on 8/1/13. // Copyright (c) 2013 Nora Trapp. All rights reserved. // #import <Box2D/Common/b2Math.h> #define kPointsToMeterRatio (32.0) #define PointsToMeters(points) (points / kPointsToMeterRatio) #define MetersToPoints(meters) (meters * kPointsToM...
Change PointsToMeters ratio to a float, so we doing floating point math
Change PointsToMeters ratio to a float, so we doing floating point math
C
mit
Imperiopolis/PHYKit
a5f1eb8cfa251cd56957cdbc434322f1a5406ee2
src/math/double/log.c
src/math/double/log.c
#include "kernel/log.h" #include "normalize.h" #include "../reinterpret.h" #include <math.h> static double _finite(int64_t i) { const double ln2[] = { 0x1.62e42fefa4p-1, -0x1.8432a1b0e2634p-43 }; int64_t exponent = (i - 0x3FE6A09E667F3BCD) >> 52; double x = reinterpret(double, i - (exponent << 52)) - 1; ...
#include "kernel/log.h" #include "normalize.h" #include "../reinterpret.h" #include <math.h> static double _finite(int64_t i) { const double ln2[] = { 0x1.62e42fefa4p-1, -0x1.8432a1b0e2634p-43 }; int64_t exponent = (i - 0x3FE6A09E667F3BCD) >> 52; double x = reinterpret(double, i - (exponent << 52)) - 1; ...
Reorder terms by expected size, though this does not affect calculation
Reorder terms by expected size, though this does not affect calculation
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
903787a5941c9eabcbfe597ee4d80843dc9c586f
src/modules/conf_randr/e_smart_monitor.h
src/modules/conf_randr/e_smart_monitor.h
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra...
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra...
Change monitor_grid_set function to also accept the grid geometry (used for virtual-->canvas coordinate functions).
Change monitor_grid_set function to also accept the grid geometry (used for virtual-->canvas coordinate functions). Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84169
C
bsd-2-clause
tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,rvandegrift/e,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment
e65030e7639fd0e21789ed18855b36720cdba09d
samples/fx_lpng/include/fx_png.h
samples/fx_lpng/include/fx_png.h
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../lpng_v163/png.h"
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../lpng_v163/png.h"
Convert all files on the master branch to unix line endings.
Convert all files on the master branch to unix line endings. Luckily, it's just one file. BUG=none R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1281923004 .
C
bsd-3-clause
was4444/pdfium,DrAlexx/pdfium,azunite/libpdfium,andoma/pdfium,andoma/pdfium,was4444/pdfium,DrAlexx/pdfium,azunite/libpdfium,was4444/pdfium,DrAlexx/pdfium,was4444/pdfium,andoma/pdfium,andoma/pdfium,azunite/libpdfium,DrAlexx/pdfium,azunite/libpdfium
7d2c8d0aed20b6d2b02c7bd79aed173664742a6e
src/condor_ckpt/condor_syscalls.h
src/condor_ckpt/condor_syscalls.h
#ifndef _CONDOR_SYSCALLS_H #define _CONDOR_SYSCALLS_H #if defined( AIX32) # include "syscall.aix32.h" #else # include <syscall.h> #endif typedef int BOOL; static const int SYS_LOCAL = 1; static const int SYS_REMOTE = 0; static const int SYS_RECORDED = 2; static const int SYS_MAPPED = 2; static const int SYS_UNRE...
#ifndef _CONDOR_SYSCALLS_H #define _CONDOR_SYSCALLS_H #if defined( AIX32) # include "syscall.aix32.h" #else # include <syscall.h> #endif typedef int BOOL; static const int SYS_LOCAL = 1; static const int SYS_REMOTE = 0; static const int SYS_RECORDED = 2; static const int SYS_MAPPED = 2; static const int SYS_UNRE...
Add SUNOS41 to an existing conditional compilation directive.
Add SUNOS41 to an existing conditional compilation directive.
C
apache-2.0
mambelli/osg-bosco-marco,zhangzhehust/htcondor,clalancette/condor-dcloud,htcondor/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mam...
295b8c8f866469181703c4c2e882dc6af955e9c7
K2Status-static-ImportExport/include/k2info.h
K2Status-static-ImportExport/include/k2info.h
#include "k2pktdef.h" #define TRACE2_STA_LEN 7 #define TRACE2_CHAN_LEN 9 /* 4 bytes plus padding for loc and version */ #define TRACE2_NET_LEN 9 #define TRACE2_LOC_LEN 3 #define K2INFO_TYPE_STRING "TYPE_K2INFO_PACKET" typedef struct { char net[TRACE2_NET_LEN]; /* Network name */ char sta[TRACE2_...
#include "k2pktdef.h" #define TRACE2_STA_LEN 7 #define TRACE2_CHAN_LEN 9 /* 4 bytes plus padding for loc and version */ #define TRACE2_NET_LEN 9 #define TRACE2_LOC_LEN 3 #define K2_TIME_CONV ((unsigned long)315532800) #define K2INFO_TYPE_STRING "TYPE_K2INFO_PACKET" typedef struct { char net[TRACE2_NET_LEN]...
Make 64Bit Friendly, NonStatic for Ubuntu 14.04 delete unneeded files
Make 64Bit Friendly, NonStatic for Ubuntu 14.04 delete unneeded files
C
lgpl-2.1
Fran89/K2Status,Fran89/K2Status
ec3bd3aa0c6b507e8819d58ac5282b7f97f0be28
libslax/slaxprofiler.h
libslax/slaxprofiler.h
/* * $Id$ * * Copyright (c) 2010-2011, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. */ /** * Called...
/* * Copyright (c) 2010-201e, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. */ /** * Called from the d...
Drop $Id$ and update copyright
Drop $Id$ and update copyright
C
bsd-3-clause
Juniper/libslax,Juniper/libslax,Juniper/libslax
5fd3d4cdd83c079b2f588380622b2b3348a67360
src/IDPDataKit.h
src/IDPDataKit.h
#import "IDPBlock.h" #import "IDPBufferArray.h" #import "IDPKVOContext.h" #import "IDPKVOMutableArray.h" #import "IDPKeyPathObserver.h" #import "IDPMachTimer.h" #import "IDPMutableArray.h" #import "IDPMutableDictionary.h" #import "IDPOCContext.h" #import "IDPOCImplementation.h" #import "IDPOCStack.h" #import "NSObject+...
#import "IDPBlock.h" #import "IDPBufferArray.h" #import "IDPKVOContext.h" #import "IDPKVOMutableArray.h" #import "IDPKeyPathObserver.h" #import "IDPMachTimer.h" #import "IDPMutableArray.h" #import "IDPMutableDictionary.h" #import "IDPOCContext.h" #import "IDPOCImplementation.h" #import "IDPOCStack.h" #import "NSObject+...
Add to header file IDPSingletonModel.
Add to header file IDPSingletonModel.
C
bsd-3-clause
idapgroup/DataKit,idapgroup/DataKit,idapgroup/DataKit,idapgroup/DataKit
67ce2b4d5e93bea3bbbb28f711f0de09228f9de9
src/unique_ptr.h
src/unique_ptr.h
// Copyright 2014 The open-vcdiff Authors. All Rights Reserved. // Author: Mostyn Bramley-Moore // // 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/L...
// Copyright 2014 The open-vcdiff Authors. All Rights Reserved. // Author: Mostyn Bramley-Moore // // 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/L...
Add an option to force use of auto_ptr for legacy STL implementations.
Add an option to force use of auto_ptr for legacy STL implementations.
C
apache-2.0
Steelskin/open-vcdiff,elly/open-vcdiff,Steelskin/open-vcdiff,google/open-vcdiff,elly/open-vcdiff,google/open-vcdiff,elly/open-vcdiff,google/open-vcdiff,Steelskin/open-vcdiff
ffbd18870f6fa2284884e6c425e51f00efe48cc2
src/util/files.c
src/util/files.c
// // Created by gravypod on 9/20/17. // #include "files.h" #include <sys/stat.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> long int fsize(const char *filename) { struct stat st; if (stat(filename, &st) == 0) return st.st_size; return -1; } char* read_file(const char* filename...
// // Created by gravypod on 9/20/17. // #include "files.h" #include <sys/stat.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> long int fsize(const char *filename) { struct stat st; if (stat(filename, &st) == 0) return st.st_size; return -1; } char* read_file(const char* filename...
Make sure file stat actually finished. Don't check a size_t for neg.
Make sure file stat actually finished. Don't check a size_t for neg.
C
mit
gravypod/solid-snake,gravypod/solid-snake,gravypod/solid-snake
681cc70a6305451ea1c85dbd239ea3cd38abe7b3
simulator/ghc_instruction.h
simulator/ghc_instruction.h
#include <vector> enum GHCMnemonic { MOV, INC, DEC, ADD, SUB, MUL, DIV, AND, OR, XOR, JLT, JEQ, JGT, INT, HLT }; enum GHCRegister { A = 0, B, C, D, E, F, G, H, PC }; enum GHCArgumentType { Constant, Register, Memory }; struct GHCArgument { GHCArgumentType type...
#include <vector> enum GHCMnemonic { MOV, INC, DEC, ADD, SUB, MUL, DIV, AND, OR, XOR, JLT, JEQ, JGT, INT, HLT }; enum GHCRegister { A = 0, B, C, D, E, F, G, H, PC }; enum GHCArgumentType { Constant, Register, Memory }; struct GHCArgument { GHCArgumentType type...
Add as_address on mnemonic argument.
Add as_address on mnemonic argument.
C
mit
fuqinho/icfpc2014,fuqinho/icfpc2014
b8c623d9a4331c20dd28220868bdc6d98b2bd4c4
examples/parsebuf.c
examples/parsebuf.c
/* Very simple example for parse buf example */ #include <string.h> #include <stdlib.h> #include "confuse.h" int main(void) { cfg_t *cfg; cfg_opt_t arg_opts[] = { CFG_STR("value", "default", CFGF_NONE), CFG_END() }; cfg_opt_t opts[] = { CFG_INT("delay", 3, CFGF_NONE), CFG_STR("message", "This is a message"...
/* Very simple example for parse buf example */ #include <errno.h> #include <string.h> #include <stdlib.h> #include "confuse.h" int main(void) { cfg_t *cfg; cfg_opt_t arg_opts[] = { CFG_STR("value", "default", CFGF_NONE), CFG_END() }; cfg_opt_t opts[] = { CFG_INT("delay", 3, CFGF_NONE), CFG_STR("message", ...
Add missing errno.h include for Linux/UNIX
Add missing errno.h include for Linux/UNIX Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>
C
isc
troglobit/libconfuse,westermo/libconfuse,peda-r/libconfuse,martinh/libconfuse,peda-r/libconfuse,troglobit/libconfuse,westermo/libconfuse,martinh/libconfuse
8323670661ff47298967bca382b360f50f878041
native-unpacker/kisskiss.h
native-unpacker/kisskiss.h
/* * kisskiss.h * * Tim "diff" Strazzere <strazz@gmail.com> */ #include <stdlib.h> #include <stdio.h> #include <sys/ptrace.h> #include <dirent.h> #include <fcntl.h> // open / O_RDONLY static const char* odex_magic = "dey\n036"; static const char* static_safe_location = "/data/local/tmp/"; static const char* suffi...
/* * kisskiss.h * * Tim "diff" Strazzere <strazz@gmail.com> */ #include <stdlib.h> #include <stdio.h> #include <sys/ptrace.h> #include <dirent.h> #include <fcntl.h> // open / O_RDONLY #include <unistd.h> // close #include <errno.h> // perror #include <string.h> // strlen static const char* odex_magic = "dey\n036"...
Reduce implicit calls, add fix for large memory sections
Reduce implicit calls, add fix for large memory sections
C
apache-2.0
strazzere/android-unpacker,strazzere/android-unpacker
86f56f6d510c533fe570fb6153b6c1f7b4b365a3
net/spdy/spdy_http_utils.h
net/spdy/spdy_http_utils.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 NET_SPDY_SPDY_HTTP_UTILS_H_ #define NET_SPDY_SPDY_HTTP_UTILS_H_ #pragma once #include "net/spdy/spdy_framer.h" namespace net { class HttpRe...
// 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 NET_SPDY_SPDY_HTTP_UTILS_H_ #define NET_SPDY_SPDY_HTTP_UTILS_H_ #pragma once #include "net/spdy/spdy_framer.h" namespace net { class HttpRe...
Change forward declaration of HttpRequestInfo from class to struct to fix build breakage.
Change forward declaration of HttpRequestInfo from class to struct to fix build breakage. BUG=none TEST=none git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@59584 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
zcbenz/cefode-chromium,zcbenz/cefode-chromium,anirudhSK/chromium,M4sse/chromium.src,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,anirudhSK/chromium,ltilve/chromium,markYoungH/chromium.src,ondra-novak/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,Pluto-...
507c3e1f7f594135e33dea40f1221957df129979
mserv/mp3info.h
mserv/mp3info.h
#define MP3ID3_TITLELEN NAMELEN #define MP3ID3_ARTISTLEN AUTHORLEN #define MP3ID3_ALBUMLEN 30 #define MP3ID3_YEARLEN 4 #define MP3ID3_COMMENTLEN 30 typedef struct { int present:1; char title[MP3ID3_TITLELEN+1]; char artist[MP3ID3_ARTISTLEN+1]; char album[MP3ID3_ALBUMLEN+1]; char year[MP3ID3_YEARLEN+1]; ch...
#define MP3ID3_TITLELEN 30 #define MP3ID3_ARTISTLEN 30 #define MP3ID3_ALBUMLEN 30 #define MP3ID3_YEARLEN 4 #define MP3ID3_COMMENTLEN 30 typedef struct { int present:1; char title[MP3ID3_TITLELEN+1]; char artist[MP3ID3_ARTISTLEN+1]; char album[MP3ID3_ALBUMLEN+1]; char year[MP3ID3_YEARLEN+1]; char comment[M...
Fix mp3 field size constants so that the ID3 information gets parsed correctly.
Fix mp3 field size constants so that the ID3 information gets parsed correctly.
C
isc
spigot/mserv,spigot/mserv
3dd0eb97ff69943b37d92932d0ac7b5b4324bbc8
source/config_lui.h
source/config_lui.h
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" #define EXPCL_LUI EXPORT_CLASS #define EXPTP_LUI EXPORT_TEMPL ConfigureDecl(config_lui, EXPCL_LUI, EXPTP_LUI); NotifyCategoryDecl(lui, ...
// Filename: config_lui.h // Created by: tobspr (28Aug14) // #ifndef CONFIG_LUI_H #define CONFIG_LUI_H #include "pandabase.h" #include "notifyCategoryProxy.h" #include "dconfig.h" #define EXPCL_LUI EXPORT_CLASS #define EXPTP_LUI EXPORT_TEMPL ConfigureDecl(config_lui, EXPCL_LUI, EXPTP_LUI); NotifyCategoryDecl(lui, ...
Fix build with modern Panda headers
Fix build with modern Panda headers Panda3D now no longer defines `using namespace std;` (see panda3d/panda3d#335) which the LUI code relied on; Panda3D headers provide unordered_map so the #define is actually preventing that header from being parsed correctly.
C
mit
tobspr/LUI,tobspr/LUI,tobspr/LUI
9cdc25c056d3da95035b7ed9c28b78f0c23a2222
libempathy/empathy-types.h
libempathy/empathy-types.h
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /* * Copyright (C) 2008 Collabora Ltd. * * 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 * vers...
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /* * Copyright (C) 2008 Collabora Ltd. * * 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 * vers...
Add newline at end of file
Add newline at end of file From: Olivier Crête <olivier.crete@collabora.co.uk> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2439
C
lgpl-2.1
Distrotech/telepathy-account-widgets,GNOME/telepathy-account-widgets,GNOME/telepathy-account-widgets,Distrotech/telepathy-account-widgets,GNOME/telepathy-account-widgets
950c1f5c6ed2c6b05d5cf2c1162454dccd011296
phonebook_opt.c
phonebook_opt.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "phonebook_opt.h" /* FILL YOUR OWN IMPLEMENTATION HERE! */ entry *findName(char lastname[], entry *pHead) { while (pHead != NULL) { if (strcasecmp(lastname, pHead->lastName) == 0) return pHead; pHead...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "phonebook_opt.h" entry *findName(char lastname[], entry *pHead) { while (pHead != NULL) { if (strcasecmp(lastname, pHead->lastName) == 0) return pHead; pHead = pHead->pNext; ...
Delete todo comments and add assert to avoid null entry
Delete todo comments and add assert to avoid null entry Delete the todo comments before the function findName. Use assert to avoid the condition of null pointer in the begining of function append.
C
bsd-2-clause
zeroplusone/phonebook,zeroplusone/phonebook
cfb065c8fc4730ea3ea371b2e9def448c5552ca5
src/core/include/iDynTree/Core/LinearForceVector3.h
src/core/include/iDynTree/Core/LinearForceVector3.h
/* * Copyright (C) Fondazione Istituto Italiano di Tecnologia * * Licensed under either the GNU Lesser General Public License v3.0 : * https://www.gnu.org/licenses/lgpl-3.0.html * or the GNU Lesser General Public License v2.1 : * https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * at your option. */ #ifn...
/* * Copyright (C) Fondazione Istituto Italiano di Tecnologia * * Licensed under either the GNU Lesser General Public License v3.0 : * https://www.gnu.org/licenses/lgpl-3.0.html * or the GNU Lesser General Public License v2.1 : * https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * at your option. */ #ifn...
Fix typo in deprecation message
Fix typo in deprecation message
C
lgpl-2.1
robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree
e6d89d26db671755353c06ed6b353af995a03dba
src/C/pyramid_of_numbers.c
src/C/pyramid_of_numbers.c
/* Pyramid of numbers Exercise #7 from my college Make a program that's receive a number and print it like a pyramid in descending order. Example with number 5 inputted. The output must be like that: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 */ #include <stdio.h> int main() { int number; printf("Type a number: "); scanf(...
/* Pyramid of numbers Exercise #7 from my college Make a program that's receive a number and print it like a pyramid in ascending order. Example with number 5 inputted. The output must be like that: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 */ #include <stdio.h> int main() { int number; printf("Type a number: "); scanf("...
Update pyramid of numbers in C language
Update pyramid of numbers in C language
C
mit
daltonmenezes/learning-C
80d912a5fedb401cf2e80584a398238f7f083812
log.h
log.h
// // Copyright (c) 2010-2012 Linaro Limited // // All rights reserved. This program and the accompanying materials // are made available under the terms of the MIT License which accompanies // this distribution, and is available at // http://www.opensource.org/licenses/mit-license.php // // Contributors: // Alexan...
// // Copyright (c) 2010-2012 Linaro Limited // // All rights reserved. This program and the accompanying materials // are made available under the terms of the MIT License which accompanies // this distribution, and is available at // http://www.opensource.org/licenses/mit-license.php // // Contributors: // Alexan...
Make sure to include string for the definiton of Log.
Make sure to include string for the definiton of Log.
C
mit
jessebarker/libmatrix,jessebarker/libmatrix
f8c381fff1a3c10e0f7f0c9f223f08e8d7dce0e3
include/clang/Lex/ExternalPreprocessorSource.h
include/clang/Lex/ExternalPreprocessorSource.h
//===- ExternalPreprocessorSource.h - Abstract Macro Interface --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- ExternalPreprocessorSource.h - Abstract Macro Interface --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add missing newline (which breaks MSVC build???)
Add missing newline (which breaks MSVC build???) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@92522 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
9c80f5b16d0752e1bc3f49f15b1a146b7345b9ee
Pod/Swift/APAddressBook-Bridging.h
Pod/Swift/APAddressBook-Bridging.h
// // APAddressBook-Bridging.h // APAddressBook // // Created by Alexey Belkevich on 7/31/14. // Copyright (c) 2014 alterplay. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "APAddressBook.h" #import "APContact.h" #import "APSocialProfile.h" #import "APAddress.h" #import...
// // APAddressBook-Bridging.h // APAddressBook // // Created by Alexey Belkevich on 7/31/14. // Copyright (c) 2014 alterplay. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "APAddressBook.h" #import "APContact.h" #import "APSocialProfile.h" #import "APAddress.h" #import...
Add APEmailWithLabel.h to the Swift bridging file.
Add APEmailWithLabel.h to the Swift bridging file.
C
mit
Alterplay/APAddressBook,Alterplay/APAddressBook,felix-dumit/APAddressBook,felix-dumit/APAddressBook
8ab3b68ef35411be456f26d1fc0dad1ebff87141
bluetooth/bdroid_buildcfg.h
bluetooth/bdroid_buildcfg.h
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Disable peripheral mode in N5
Disable peripheral mode in N5 bug 16545864 Change-Id: I2273716fbce151173c067b8441e749c78e17141e
C
apache-2.0
maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead
dd6e3b76a29da1f6979717e65faf652dde20be65
include/mindbw/Types.h
include/mindbw/Types.h
#ifndef MINDBW_TYPES_H #define MINDBW_TYPES_H namespace mindbw { enum class Operator { LT, LTE, GT, GTE, EQ, NEQ, }; } #endif
#ifndef MINDBW_TYPES_H #define MINDBW_TYPES_H #include <zephyr/CExport.h> Z_NS_START(mindbw) Z_ENUM_CLASS(mindbw, Operator) { LT, LTE, GT, GTE, EQ, NEQ, }; Z_NS_END #endif
Allow types in C includes
Allow types in C includes
C
mit
DeonPoncini/mindbw,DeonPoncini/mindbw
bb71227a64ed0b093e31e0bddab4fa4d4462a0b6
include/lld/ReaderWriter/YamlContext.h
include/lld/ReaderWriter/YamlContext.h
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Use C++11 non-static member initialization.
Use C++11 non-static member initialization. git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@234648 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
b493f25a14e51fa1648b6b84b2afd18326a561ca
src/bin/e_widget_iconsel.h
src/bin/e_widget_iconsel.h
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_WIDGET_BUTTON_H #define E_WIDGET_BUTTON_H EAPI Evas_Object *e_widget_iconsel_add(Evas *evas, Evas_Object *icon, Evas_Coord minw, Evas_Coord minh, void (*func) (void *data, void *data2), void *data, void *data2); EAPI Evas_Obj...
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_WIDGET_ICONSEL_H #define E_WIDGET_ICONSEL_H EAPI Evas_Object *e_widget_iconsel_add(Evas *evas, Evas_Object *icon, Evas_Coord minw, Evas_Coord minh, char **file); EAPI Evas_Object *e_widget_iconsel_add_from_file(Evas *evas, ch...
Correct define for this file. Fix function declarations.
Correct define for this file. Fix function declarations.
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
d655d71e6b85f7f07c738dbb1a22d6c29bb0bdbf
src/pwm.h
src/pwm.h
#ifndef PWM_H #define PWM_H void PwmInit(uint8_t channel); void PwmSetPeriod(uint8_t channel, uint32_t frequency); void PwmSetDuty(uint8_t channel, uint8_t duty); typedef struct { uint32_t frequency; uint8_t duty; } PwmOutput; #endif //PWM_H
#ifndef PWM_H #define PWM_H extern void PwmInit(uint8_t channel); extern void PwmSetPeriod(uint8_t channel, uint32_t frequency); extern void PwmSetDuty(uint8_t channel, uint8_t duty); typedef struct { uint32_t frequency; uint8_t duty; } PwmOutput; #endif //PWM_H
Update prototypes to make them more compliant.
Update prototypes to make them more compliant.
C
mit
jotux/LaunchLib,jotux/LaunchLib,jotux/LaunchLib
f5f8876e86a699dc1c43a1369c963916684ec8de
numpy/core/src/common/npy_ctypes.h
numpy/core/src/common/npy_ctypes.h
#ifndef NPY_CTYPES_H #define NPY_CTYPES_H #include <Python.h> #include "npy_import.h" /* * Check if a python type is a ctypes class. * * Works like the Py<type>_Check functions, returning true if the argument * looks like a ctypes object. * * This entire function is just a wrapper around the Python function of...
#ifndef NPY_CTYPES_H #define NPY_CTYPES_H #include <Python.h> #include "npy_import.h" /* * Check if a python type is a ctypes class. * * Works like the Py<type>_Check functions, returning true if the argument * looks like a ctypes object. * * This entire function is just a wrapper around the Python function of...
Add missing decref in ctypes check
BUG: Add missing decref in ctypes check
C
bsd-3-clause
jorisvandenbossche/numpy,endolith/numpy,numpy/numpy,seberg/numpy,ahaldane/numpy,rgommers/numpy,charris/numpy,jakirkham/numpy,endolith/numpy,mattip/numpy,madphysicist/numpy,madphysicist/numpy,pdebuyl/numpy,jakirkham/numpy,seberg/numpy,rgommers/numpy,jorisvandenbossche/numpy,grlee77/numpy,jakirkham/numpy,WarrenWeckesser/...
c78c827078ec7211971e4d42c7de8c7a0e16fd56
include/utils/ALDebug.h
include/utils/ALDebug.h
#ifndef ABSTRACT_LEARNING_DEBUG_H #define ABSTRACT_LEARNING_DEBUG_H #include <stdlib.h> #include <stdio.h> #include <assert.h> #define FUNC_PRINT(x) printf(#x"=%d in %s, %d \n",x, __func__, __LINE__); #define FUNC_PRINT_ALL(x, type) printf(#x"="#type"%"#type" in %s, %d \n",x, __func__, __LINE__); #define CHECK_POIN...
#ifndef ABSTRACT_LEARNING_DEBUG_H #define ABSTRACT_LEARNING_DEBUG_H #include <stdlib.h> #include <stdio.h> #include <assert.h> /*Print method*/ #ifdef BUILD_FOR_ANDROID #include <android/log.h> #define ALPRINT(format, ...) __android_log_print(ANDROID_LOG_INFO, "AL", format,##__VA_ARGS__) #define ALPRINT_FL(format,...)...
Add debug for android, solve all warning
Add debug for android, solve all warning
C
apache-2.0
jxt1234/Abstract_Learning,jxt1234/Abstract_Learning,jxt1234/Abstract_Learning
9be52ff3eb31ac0c1365f1f6e2a1c54c436a5dca
src/drivers/block_dev/stm32_sd/stm32f4_discovery_sd.h
src/drivers/block_dev/stm32_sd/stm32f4_discovery_sd.h
#ifndef STM32F4_DISCOVERY_SD_H_ #define STM32F4_DISCOVERY_SD_H_ #include <assert.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_sd.h" #include "stm324xg_eval_sd.h" #include <framework/mod/options.h> #define STM32_DMA_RX_IRQ OPTION_GET(NUMBER, dma_rx_irq) static_assert(STM32_DMA_RX_IRQ == DMA2_Stream3_IRQn);...
#ifndef STM32F4_DISCOVERY_SD_H_ #define STM32F4_DISCOVERY_SD_H_ #include <assert.h> #include "stm32f4xx_hal.h" #include "stm32f4xx_hal_sd.h" #include "stm324xg_eval_sd.h" #include <framework/mod/options.h> #define STM32_DMA_RX_IRQ OPTION_GET(NUMBER, dma_rx_irq) static_assert(STM32_DMA_RX_IRQ == DMA2_Stream3_IRQn);...
Work on stm32_sd for stm32f4_discovery
drivers: Work on stm32_sd for stm32f4_discovery
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
0bb9476c8bcf324b65715fd0c971616a7eb77b64
tests/regression/02-base/33-backwards-loop.c
tests/regression/02-base/33-backwards-loop.c
// PARAM: --sets solver td3 void main(void) { int x; int i = 41; while(i >= 12) { x = 0; i--; } }
// PARAM: --sets solver td3 void main(void) { int x; int i = 41; while(i >= 12) { x = 0; i--; } int y; int j = -40; while(-5 >= j) { y = 0; j++; } }
Add further problematic example where positive half is excluded
Def_Exc: Add further problematic example where positive half is excluded
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
162ae220b18ff32ee631202567ca85eb69823372
events/tests/UNITTESTS/doubles/equeue_stub.h
events/tests/UNITTESTS/doubles/equeue_stub.h
/* * Copyright (c) , Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
/* * Copyright (c) , Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
Enable use of stub from C++
equeue: Enable use of stub from C++ Add extern "C" to the equeue_stub declaration to avoid an error when a C file implements the equeue_stub symbol (as we do in equeue_stub.c). Undefined symbols for architecture x86_64: "_equeue_stub", referenced from: Test_LoRaWANTimer_start_Test::TestBody() in T...
C
apache-2.0
mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed
d73da12174d48ca0d9f5a574542bcace01b0bd6f
mongoc-config.h
mongoc-config.h
/* * Copyright 2013 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2013 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Fix warning when BINARY_DIR already defined
Fix warning when BINARY_DIR already defined
C
mit
alexeyvo/mongo-c-driver-build-headers,Convey-Compliance/mongo-c-driver-build-headers
c436708c65be210d2ab761a02df2b6c06bd0a85b
test/Lexer/block_cmt_end.c
test/Lexer/block_cmt_end.c
/* RUN: %clang_cc1 -E -trigraphs %s | grep bar RUN: %clang_cc1 -E -trigraphs %s | grep foo RUN: %clang_cc1 -E -trigraphs %s | not grep abc RUN: %clang_cc1 -E -trigraphs %s | not grep xyz RUN: %clang_cc1 -fsyntax-only -trigraphs -verify %s */ // This is a simple comment, /*/ does not end a comment, the trai...
/* RUN: %clang_cc1 -E -trigraphs %s | grep bar RUN: %clang_cc1 -E -trigraphs %s | grep foo RUN: %clang_cc1 -E -trigraphs %s | not grep qux RUN: %clang_cc1 -E -trigraphs %s | not grep xyz RUN: %clang_cc1 -fsyntax-only -trigraphs -verify %s */ // This is a simple comment, /*/ does not end a comment, the trai...
Change magic string "abc" to better magic string "qux".
Change magic string "abc" to better magic string "qux". Wait, what? So, we run Clang (and LLVM) tests in an environment where the md5sum of the input files becomes a component of the path. When testing the preprocessor, the path becomes part of the output (in line directives). In this test, we were grepping for the a...
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
1c243b427ec2605a45333ef855f698a21708452f
mojito/client-monitor.h
mojito/client-monitor.h
#include <glib-object.h> void client_monitor_add (char *sender, GObject *object); void client_monitor_remove (char *sender, GObject *object);
#include <glib-object.h> #include <dbus/dbus-glib.h> void client_monitor_init (DBusGConnection *connection); void client_monitor_add (char *sender, GObject *object); void client_monitor_remove (char *sender, GObject *object);
Add client_monitor_init to the header
Add client_monitor_init to the header
C
lgpl-2.1
GNOME/libsocialweb,lcp/mojito,lcp/mojito,ThomasBollmeier/libsocialweb-flickr-oauth,lcp/mojito,lcp/libsocialweb,GNOME/libsocialweb,lcp/libsocialweb,ThomasBollmeier/libsocialweb-flickr-oauth,GNOME/libsocialweb,ThomasBollmeier/libsocialweb-flickr-oauth,lcp/libsocialweb
4c8a566280ea16396f660ac75f30f20e515c4a18
test/native/float/common.h
test/native/float/common.h
#include "../../../src/math/reinterpret.h" #include <stdint.h> #include <float.h> #include <inttypes.h> #include <stdlib.h> #include <stdio.h> static inline _Bool approx(double x, double y) { const uint64_t mask = (1L << (DBL_MANT_DIG - FLT_MANT_DIG)) - 1; uint64_t a = reinterpret(uint64_t, x); uint64_t b ...
#include "../../../src/math/reinterpret.h" #include <stdint.h> #include <float.h> #include <inttypes.h> #include <stdio.h> static inline _Bool approx(double x, double y) { const uint64_t mask = (1L << (DBL_MANT_DIG - FLT_MANT_DIG)) - 1; uint64_t a = reinterpret(uint64_t, x); uint64_t b = reinterpret(uint64...
Test helper for complex functions
Test helper for complex functions
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
c458a1c32a0bfcb1ac77cb38a648efdc1e0696ad
include/response.h
include/response.h
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" #include "defines.h" #include "error.h" namespace cpr { class Response { public: Response() = default; template <typename TextType, typename HeaderType, typename UrlType, typename CookiesType, typena...
#ifndef CPR_RESPONSE_H #define CPR_RESPONSE_H #include <string> #include "cookies.h" #include "cprtypes.h" #include "defines.h" #include "error.h" namespace cpr { class Response { public: Response() = default; template <typename TextType, typename HeaderType, typename UrlType, typename CookiesType, typena...
Remove explanatory comment as it should be obvious what the member is
Remove explanatory comment as it should be obvious what the member is
C
mit
SuperV1234/cpr,SuperV1234/cpr,whoshuu/cpr,msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,SuperV1234/cpr,msuvajac/cpr,msuvajac/cpr
d152f432634b2a8fe378f24e8ffb05b6599881ec
scanner/scanner.h
scanner/scanner.h
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
Set default line and row to 1
Set default line and row to 1
C
mit
bisthebis/Boboscript,bisthebis/Boboscript
5c457b95ac29e548f50e0c36287016454d8ac076
pset2/Hacker/initials.c
pset2/Hacker/initials.c
/**************************************************************************** * initials.c * * Computer Science 50 * Problem Set 2 - Hacker Edition * * Return uppercase initials of name provided. ***************************************************************************/ #include <stdio.h> #include <string.h> ...
/**************************************************************************** * initials.c * * Computer Science 50 * Problem Set 2 - Hacker Edition * * Return uppercase initials of name provided. ***************************************************************************/ #include <stdio.h> #include <string.h> ...
Optimize pset2 hacker edition slightly.
Optimize pset2 hacker edition slightly.
C
mit
leeorb321/CS50,leeorb321/CS50,leeorb321/CS50,leeorb321/CS50,leeorb321/CS50
41c4603134c88859218d56a3680f45dfaa02b80a
src/C++/helpers.h
src/C++/helpers.h
#include <iostream> using std::cout; using std::cin; using std::endl; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDevices = get_numDevices(); cout << concol::RED << numDevices << " APS device" << (numDevices > 1 ? "s": "") << " found" << concol::R...
#include <iostream> #include <sstream> #include "concol.h" using std::cout; using std::cin; using std::endl; using std::string; string get_device_id() { cout << concol::RED << "Enumerating devices" << concol::RESET << endl; int numDevices = get_numDevices(); cout << concol::RED << numDevices << " APS devi...
Add necessary include to get_device_id helper
Add necessary include to get_device_id helper
C
apache-2.0
BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2,BBN-Q/libaps2
92843c3f7aa8cc483c5c2271489197c376d95d6f
src/Stdafx.h
src/Stdafx.h
#pragma once #include <future> #include <list> #include <map> #include <set> #include <Shlwapi.h> #include "../lib/foobar2000_sdk/foobar2000/SDK/foobar2000.h" #include "../lib/tinyxml2/tinyxml2.h" #define PLUGIN_NAME "WPL Playlist support" #define PLUGIN_VERSION "1.0.2" #define CONSOLE_HEADER "foo_wpl: "
#pragma once #include <future> #include <list> #include <map> #include <set> #include <Shlwapi.h> #include "../lib/foobar2000_sdk/foobar2000/SDK/foobar2000.h" #include "../lib/tinyxml2/tinyxml2.h" #define PLUGIN_NAME "WPL Playlist support" #define PLUGIN_VERSION "1.1" #define CONSOLE_HEADER "foo_wpl: "
Update plugin version to 1.1
Update plugin version to 1.1
C
bsd-3-clause
UrbanCMC/foo_wpl
618aa06fa17c1aed3cce18218c41b2c7e517c935
src/pyfont.h
src/pyfont.h
#ifndef PYFONT_H #define PYFONT_H #include <stdint.h> #include <stddef.h> struct PyFont { PyFont(uint8_t chars, uint8_t baseChar, const uint8_t* data, const uint16_t* offsets, const uint8_t* sizes): chars(chars), baseChar(baseChar), data(data), offsets(offsets), sizes(sizes) {} uint8_t chars; uin...
#ifndef PYFONT_H #define PYFONT_H #include <stdint.h> #include <stddef.h> struct PyFont { PyFont(uint8_t chars, uint8_t baseChar, const uint8_t* data, const uint16_t* offsets, const uint8_t* sizes): chars(chars), baseChar(baseChar), data(data), offsets(offsets), sizes(sizes) {} uint8_t chars; uin...
Fix for newlines and other non-printable chars in renderer
Fix for newlines and other non-printable chars in renderer
C
mit
bartoszbielawski/InfoClock,bartoszbielawski/InfoClock
589a9d66803e323c66ef78ebf499cc49a6b65fe7
Source/World/Block/BlockDatabase.h
Source/World/Block/BlockDatabase.h
#ifndef BlockDatabase_H_INCLUDED #define BlockDatabase_H_INCLUDED #include <memory> #include <array> #include "Types/BlockType.h" #include "BlockID.h" #include "../../Texture/Texture_Atlas.h" namespace Block { class Database { public: static Database& get(); Database(); ...
#ifndef BlockDatabase_H_INCLUDED #define BlockDatabase_H_INCLUDED #include <memory> #include <array> #include "Types/BlockType.h" #include "BlockID.h" #include "../../Texture/Texture_Atlas.h" namespace Block { class Database { public: static Database& get(); const BlockType&...
Fix the block database singleton
Fix the block database singleton
C
mit
Hopson97/HopsonCraft,Hopson97/HopsonCraft
56bde90e1ebe943fe005585662f93f6d65460bdd
src/lib/hex-dec.c
src/lib/hex-dec.c
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hex-dec.h" void dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size) { unsigned int i; for (i = 0; i < hexstr_size; i++) { unsigned int value = dec & 0x0f; if (value < 10) hexstr[hexstr...
Allow data to contain also lowercase hex characters.
hex2dec(): Allow data to contain also lowercase hex characters.
C
mit
jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch
99cbd5c8b2c4c6bdac752da4ec96249ad5165701
mama/c_cpp/src/c/bridge/qpid/io.h
mama/c_cpp/src/c/bridge/qpid/io.h
/* $Id$ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Technologies, Inc. * * 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....
/* $Id$ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Technologies, Inc. * * 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....
Fix IO header include issue
QPID: Fix IO header include issue Resolves an issue with QPID io.h, which should include mama/mama.h. Lack of include can cause issues with some build systems. Signed-off-by: Damian Maguire <21930bd10afdadbc1f53edcd2634e8f66a5e6d7a@nyx.com>
C
lgpl-2.1
cloudsmith-io/openmama,cloudsmith-io/openmama,MattMulhern/OpenMamaCassandra,cloudsmith-io/openmama,philippreston/OpenMAMA,dmaguire/OpenMAMA,vulcanft/openmama,dmaguire/OpenMAMA,vulcanft/openmama,vulcanft/openmama,dmaguire/OpenMAMA,jacobraj/MAMA,MattMulhern/OpenMAMA,dpauls/OpenMAMA,vulcanft/openmama,philippreston/OpenMAM...
f4c443646d35cad3a4b8cd83bd9ddf3cbf852c09
histogram/histogram.pencil.c
histogram/histogram.pencil.c
#include "histogram.pencil.h" #include <pencil.h> static void calcHist( const int rows , const int cols , const int step , const unsigned char image[static const restrict rows][step] , int hist[static const restrict HISTOGRAM_BINS] //ou...
#include "histogram.pencil.h" #include <pencil.h> void atomic_inc(int *v); #ifndef __PENCIL__ void atomic_inc(int *v) { (*v)++; } #endif static void calcHist( const int rows , const int cols , const int step , const unsigned char image[static const rest...
Use atomic_inc function in histogram instead of reductions (which are not supported by PPCG)
Use atomic_inc function in histogram instead of reductions (which are not supported by PPCG) Former-commit-id: ff28bc0ff228606ed66e2cc1214aeff7f7f84f3b
C
mit
rbaghdadi/pencil-benchmark,pencil-language/pencil-benchmark,dividiti/pencil-benchmark,pencil-language/pencil-benchmark,pencil-language/pencil-benchmark,dividiti/pencil-benchmark,dividiti/pencil-benchmark,rbaghdadi/pencil-benchmark,rbaghdadi/pencil-benchmark
e56c3f36194858d81ac2be3c9bf26cdb54df9dc1
emu/src/process.h
emu/src/process.h
#ifndef EMULATOR_PROCESS_H #include <pthread.h> #include <stdarg.h> #define MAX_ARGS 8 // A transputer process (more like a thread) typedef struct { pthread_t thread; void* args[MAX_ARGS]; void (*func)(); } Process; // Create a new process, with entry point 'func' and given stacksize. The // 'nargs' arg...
#ifndef EMULATOR_PROCESS_H #include <pthread.h> // OS X does not support pthread_yield(), only pthread_yield_np() #if defined(__APPLE__) || defined(__MACH__) #define pthread_yield() pthread_yield_np() #endif #include <stdarg.h> #define MAX_ARGS 8 // A transputer process (more like a thread) typedef struct { pth...
Fix pthread_yield() not supported by OS X
Fix pthread_yield() not supported by OS X See here for further reference: https://github.com/01org/ocr/issues/28 And here for the diff between pthread_yield() and pthread_yield_np(): http://www.linuxquestions.org/questions/programming-9/pthread_yield-vs-pthread_yield_np-469283/
C
mit
noqu/vbb,noqu/vbb
5c020deef2ee09fe0abe00ad533fba9a2411dd4a
include/siri/grammar/gramp.h
include/siri/grammar/gramp.h
/* * gramp.h - SiriDB Grammar Properties. * * Note: we need this file up-to-date with the grammar. The grammar has * keywords starting with K_ so the will all be sorted. * KW_OFFSET should be set to the first keyword and KW_COUNT needs the * last keyword in the grammar. * */ #ifndef SIRI_GRAMP...
/* * gramp.h - SiriDB Grammar Properties. * * Note: we need this file up-to-date with the grammar. The grammar has * keywords starting with K_ so the will all be sorted. * KW_OFFSET should be set to the first keyword and KW_COUNT needs the * last keyword in the grammar. * */ #ifndef SIRI_GRAMP...
Update compat with old libcleri
Update compat with old libcleri
C
mit
transceptor-technology/siridb-server,transceptor-technology/siridb-server,transceptor-technology/siridb-server,transceptor-technology/siridb-server
87ae35cd89a8176b9fef8d1848bc7f6ef2ff41d2
include/utils/SkNullCanvas.h
include/utils/SkNullCanvas.h
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
Add SK_API to null canvas create method
Add SK_API to null canvas create method
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
e3757fde740764ed5b1be40aefb5594e6aef4cfb
Core/include/TexCompTypes.h
Core/include/TexCompTypes.h
// Copyright 2012 (c) Pavel Krajcevski // BC7IntTypes.h // This file contains all of the various platform definitions for fixed width integers // on various platforms. // !FIXME! Still needs to be tested on Windows platforms. #ifndef _TEX_COMP_TYPES_H_ #define _TEX_COMP_TYPES_H_ // Windows? #ifdef _MSC_VER typedef ...
// Copyright 2012 (c) Pavel Krajcevski // BC7IntTypes.h // This file contains all of the various platform definitions for fixed width integers // on various platforms. // !FIXME! Still needs to be tested on Windows platforms. #ifndef _TEX_COMP_TYPES_H_ #define _TEX_COMP_TYPES_H_ // Windows? #ifdef _MSC_VER typedef ...
Fix MSVC interpretation of our types.
Fix MSVC interpretation of our types.
C
apache-2.0
GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC
206caf539d9e7e426dbfc3936e49a72601500375
test/CodeGen/statements.c
test/CodeGen/statements.c
// RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing: ; // PR5131 static long x = ...
// RUN: rm -f %S/statements.ll // RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only void test1(int x) { switch (x) { case 111111111111111111111111111111111111111: bar(); } } // Mismatched type between return and function result. int test2() { return; } void test3() { return 4; } void test4() { bar: baz: blong: bing:...
Clean up in buildbot directories.
Clean up in buildbot directories. This test created a statements.ll file until about a month ago. Some buildbots still have this file in their source dir. This is the easiest way to remove the file on all bots. Then I'll revert. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@113814 91177308-0d34-0410-b5e6-96231...
C
apache-2.0
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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
6ea796c6cae61f9c45d4a85e84ce619b83788934
libs/console/src/cons_fmt.c
libs/console/src/cons_fmt.c
/** * Copyright (c) 2015 Runtime Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
/** * Copyright (c) 2015 Runtime Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Add timestamp to output in the beginning of output.
Add timestamp to output in the beginning of output.
C
apache-2.0
mlaz/mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,wes3/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,wes3/incu...
700975bc9b076bd9095326bb1c0e19b8763584ff
include/llvm/Analysis/BasicAliasAnalysis.h
include/llvm/Analysis/BasicAliasAnalysis.h
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===// // // This file defines the default implementation of the Alias Analysis interface // that simply implements a few identities (two different globals cannot alias, // etc), but otherwise does no analysis. // //===---------------------------...
Convert BasicAA to be an immutable pass instead of a FunctionPass
Convert BasicAA to be an immutable pass instead of a FunctionPass git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3922 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,...
4ced8ab4d70ab9c420e0f22a2668f4a58fc76d40
spotify-fs.c
spotify-fs.c
#include <unistd.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include <errno.h> #include "spotify-fs.h" int main(int argc, char *argv[]) { int retval = 0; char *password = NULL; char *username = malloc(SPOTIFY_USERNAME_MAXLEN); if ((getuid() == 0) || (geteuid() == 0)) { fprintf(stderr, "Runnin...
#include <unistd.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include <errno.h> #include "spotify-fs.h" int main(int argc, char *argv[]) { int retval = 0; char *password = NULL; char *username = malloc(SPOTIFY_USERNAME_MAXLEN); if ((getuid() == 0) || (geteuid() == 0)) { fprintf(stderr, "Runnin...
Trim newline off of username
fs: Trim newline off of username Anton, be prepared to do cleanup commits after my mess. Signed-off-by: Carl Helmertz <d78a787955449ad50f586e5155db5f9260d297a8@gmail.com>
C
bsd-3-clause
raoulh/spotifile,chelmertz/spotifile,catharsis/spotifile,raoulh/spotifile,raoulh/spotifile,chelmertz/spotifile,catharsis/spotifile,catharsis/spotifile,chelmertz/spotifile
1d7cf43c8a668c22d053595702d241dc937c4142
src/animation/scene/duipageswitchanimation_p.h
src/animation/scene/duipageswitchanimation_p.h
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libdui. ** ** If you have questions regarding the use of this file, p...
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libdui. ** ** If you have questions regarding the use of this file, p...
Make DuiPageSwitchAnimation not use dangling pointers.
Changes: Make DuiPageSwitchAnimation not use dangling pointers. RevBy: TrustMe Details: That was causing a crash if it had pointers to pages that had been deleted.
C
lgpl-2.1
nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch
718ff1293ce15fe3f7deb0a6498b215f38704357
Pod/ILGClasses/ILGClasses.h
Pod/ILGClasses/ILGClasses.h
// // ILGClasses.h // Pods // // Created by Isaac Greenspan on 6/22/15. // // #import <Foundation/Foundation.h> typedef BOOL(^ILGClassesClassTestBlock)(__strong Class class); @interface ILGClasses : NSObject /** * Get a set of all of the classes passing a given test. * * @param test The block with which to ...
// // ILGClasses.h // Pods // // Created by Isaac Greenspan on 6/22/15. // // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef BOOL(^ILGClassesClassTestBlock)(__strong Class class); @interface ILGClasses : NSObject /** * Get a set of all of the classes passing a given test. * * @param test...
Add nullability annotations to classes header
Add nullability annotations to classes header
C
mit
designatednerd/ILGDynamicObjC,designatednerd/ILGDynamicObjC,designatednerd/ILGDynamicObjC
848692131a7081d789aa4e58e4cc5ec94c4f520a
src/include/commands/schemacmds.h
src/include/commands/schemacmds.h
/*------------------------------------------------------------------------- * * schemacmds.h * prototypes for schemacmds.c. * * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/com...
/*------------------------------------------------------------------------- * * schemacmds.h * prototypes for schemacmds.c. * * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/com...
Fix another const-decoration mismatch, per Magnus.
Fix another const-decoration mismatch, per Magnus.
C
apache-2.0
randomtask1155/gpdb,tangp3/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,rubikloud/gpdb,yazun/postgres-xl,tpostgres-projects/tPostgres,edespino/gpdb,foyzur/gpdb,xuegang/gpdb,adam8157/gpdb,foyzur/gpdb,xuegang/gpdb,ashwinstar/gpdb,janebeckman/gpdb,yazun/postgres-xl,0x0FFF/gpdb,janebeckman/gpdb,edespino/gpdb,tpostgres-project...
5e1e13c695494d5ff63c0f50e4b7641ae23144c3
sx_slentry.h
sx_slentry.h
#ifndef SX_SLENTRY_H_ #define SX_SLENTRY_H_ #if HAVE_SYS_QUEUE_H #include <sys/queue.h> #else #include "sys_queue.h" #endif #if HAVE_SYS_TREE_H #include <sys/tree.h> #else #include "sys_tree.h" #endif struct sx_slentry { STAILQ_ENTRY(sx_slentry) next; char* text; }; struct sx_slentry* sx_slentry_new(char* text);...
#ifndef SX_SLENTRY_H_ #define SX_SLENTRY_H_ #if HAVE_SYS_QUEUE_H #include <sys/queue.h> /* OpenBSD-current as of 2015-08-30 does not define STAILQ_ENTRY anymore */ #ifndef STAILQ_ENTRY #include "sys_queue.h" #endif #else #include "sys_queue.h" #endif #if HAVE_SYS_TREE_H #include <sys/tree.h> #else #include "sys_tree....
Check if sys/queue.h have STAILQ_ interface. At least OpenBSD's one does not...
Check if sys/queue.h have STAILQ_ interface. At least OpenBSD's one does not...
C
bsd-2-clause
ledeuns/bgpq3,kjniemi/bgpq3,ledeuns/bgpq3,ledeuns/bgpq3,kjniemi/bgpq3,kjniemi/bgpq3
de2899279eea8bf9500363738630d5afc27f05f8
features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h
features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h
/* * mbedtls_device.h ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the L...
/* * mbedtls_device.h ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the Li...
Move MBEDTLS_MD5_C from mbetdls_device.h to targets.json
Move MBEDTLS_MD5_C from mbetdls_device.h to targets.json
C
apache-2.0
CalSol/mbed,karsev/mbed-os,HeadsUpDisplayInc/mbed,svogl/mbed-os,catiedev/mbed-os,kjbracey-arm/mbed,mazimkhan/mbed-os,c1728p9/mbed-os,betzw/mbed-os,YarivCol/mbed-os,infinnovation/mbed-os,HeadsUpDisplayInc/mbed,ryankurte/mbed-os,ryankurte/mbed-os,c1728p9/mbed-os,mazimkhan/mbed-os,YarivCol/mbed-os,Archcady/mbed-os,mbedmic...
7c437002355eeda375cc4616e6cde5729a871b23
modules/luni/src/main/native/include/shared/exceptions.h
modules/luni/src/main/native/include/shared/exceptions.h
/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable * * 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...
/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable * * 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...
Fix C++ compilation on windows.
Fix C++ compilation on windows. svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=423414
C
apache-2.0
freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM
e454c0d607937d13dbd72e4b28b8fc76cc18c281
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. // //===--------...
Make this header file self-contained
Make this header file self-contained git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12480 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,chu...
ef8f03fe761ede729d5e1ee93f70ae6c40994bad
ir/be/ia32/ia32_optimize.h
ir/be/ia32/ia32_optimize.h
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Implements several optimizations for IA32. * @author Christian Wuerdig */ #ifndef FIRM_BE_IA32_IA32_OPTIMIZE_H #define FIRM_BE_IA32_IA32_OPTIMIZE_H #include "firm_types.h" /** * Prepares irg fo...
/* * This file is part of libFirm. * Copyright (C) 2012 University of Karlsruhe. */ /** * @file * @brief Implements several optimizations for IA32. * @author Christian Wuerdig */ #ifndef FIRM_BE_IA32_IA32_OPTIMIZE_H #define FIRM_BE_IA32_IA32_OPTIMIZE_H #include "firm_types.h" /** * Performs conv a...
Remove stale declaration of 'ia32_pre_transform_phase()'.
ia32: Remove stale declaration of 'ia32_pre_transform_phase()'. This function was deleted in 2007!
C
lgpl-2.1
jonashaag/libfirm,libfirm/libfirm,MatzeB/libfirm,libfirm/libfirm,jonashaag/libfirm,jonashaag/libfirm,jonashaag/libfirm,MatzeB/libfirm,jonashaag/libfirm,MatzeB/libfirm,libfirm/libfirm,jonashaag/libfirm,MatzeB/libfirm,libfirm/libfirm,MatzeB/libfirm,libfirm/libfirm,jonashaag/libfirm,MatzeB/libfirm,MatzeB/libfirm
0fe071307ac99f08e8160df36413065a3bafe1a6
arch/sparc/include/atomic.h
arch/sparc/include/atomic.h
/* $OpenBSD: atomic.h,v 1.2 2007/02/19 17:18:43 deraadt Exp $ */ /* Public Domain */ #ifndef __SPARC_ATOMIC_H__ #define __SPARC_ATOMIC_H__ #if defined(_KERNEL) static __inline void atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) { *uip |= v; } static __inline void atomic_clearbits_int(__volatile ...
/* $OpenBSD: atomic.h,v 1.3 2007/04/27 19:22:47 miod Exp $ */ /* Public Domain */ #ifndef __SPARC_ATOMIC_H__ #define __SPARC_ATOMIC_H__ #if defined(_KERNEL) static __inline void atomic_setbits_int(__volatile unsigned int *uip, unsigned int v) { int psr; psr = getpsr(); setpsr(psr | PSR_PIL); *uip |= v; setpsr...
Disable interrupts around bit operations; ok deraadt@
Disable interrupts around bit operations; ok deraadt@
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
060812dc5b6fe3c2f0005da3559af6694153fae5
base/macros.h
base/macros.h
// Please don't add a copyright notice to this file. It contains source code // owned by other copyright holders (used under license). #ifndef BASE_MACROS_H_ #define BASE_MACROS_H_ // From Google C++ Style Guide // http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml // Accessed February 8, 2013 // // A mac...
// Please don't add a copyright notice to this file. It contains source code // owned by other copyright holders (used under license). #ifndef BASE_MACROS_H_ #define BASE_MACROS_H_ // A macro to disallow the copy constructor and operator= functions. #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ TypeName(const TypeNa...
Modify the DISALLOW_COPY_AND_ASSIGN macro to use C++11's '= delete' syntax.
Modify the DISALLOW_COPY_AND_ASSIGN macro to use C++11's '= delete' syntax.
C
apache-2.0
snyderek/floating_temple,snyderek/floating_temple,snyderek/floating_temple
ebdb000f40a6a2a8f560314e15616000a3c56b7a
tmcd/decls.h
tmcd/decls.h
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2004 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14447 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2004 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14447 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
Update current version 18. Described in tmcd/tmcd.c commit 1.232.
Update current version 18. Described in tmcd/tmcd.c commit 1.232.
C
agpl-3.0
nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome
688f0e388bbb0ae4420c8e3145e83cb15d9b3829
ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h
ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h
#define MICROPY_HW_BOARD_NAME "Arduino MKR1300" #define MICROPY_HW_MCU_NAME "samd21g18" #define MICROPY_PORT_A (PORT_PA24 | PORT_PA25) #define MICROPY_PORT_B (0) #define MICROPY_PORT_C (0) #include "internal_flash.h" #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (0x00040000 - 0...
#define MICROPY_HW_BOARD_NAME "Arduino MKR1300" #define MICROPY_HW_MCU_NAME "samd21g18" #define MICROPY_PORT_A (0) #define MICROPY_PORT_B (0) #define MICROPY_PORT_C (0) #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000) #define DEFAULT_I2C_BUS_SCL (&...
Update MKR1300 board definition too
Update MKR1300 board definition too
C
mit
adafruit/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/circuitpython
4326070fe4b5f9f92c6dca263b9cfb53236537c8
fs/fs/src/fs_mkdir.c
fs/fs/src/fs_mkdir.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Update for compatibility with multiple FS
Update for compatibility with multiple FS
C
apache-2.0
mlaz/mynewt-core,andrzej-kaczmarek/apache-mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,IMGJulian/incubator-mynewt-core,andrzej-kaczmarek/incubator-mynewt-core,wes3/incubator-mynewt-core,andrzej-kaczmarek/apache-mynewt-core,mlaz/mynewt-core,wes3/incubator-mynewt-core,mlaz/mynewt-core,an...
b0daf7e3a2529dd9950d77a96a10233d68778f32
json-glib/json-glib.h
json-glib/json-glib.h
#ifndef __JSON_GLIB_H__ #define __JSON_GLIB_H__ #include <json-glib/json-types.h> #include <json-glib/json-scanner.h> #include <json-glib/json-generator.h> #include <json-glib/json-parser.h> #include <json-glib/json-version.h> #endif /* __JSON_GLIB_H__ */
#ifndef __JSON_GLIB_H__ #define __JSON_GLIB_H__ #include <json-glib/json-types.h> #include <json-glib/json-scanner.h> #include <json-glib/json-generator.h> #include <json-glib/json-parser.h> #include <json-glib/json-version.h> #include <json-glib/json-enum-types.h> #endif /* __JSON_GLIB_H__ */
Include the newly added json-enum-types.h header
Include the newly added json-enum-types.h header When including json-glib/json-glib.h we get everything json-glib expose as a public symbol.
C
lgpl-2.1
frida/json-glib,GNOME/json-glib,robtaylor/json-glib-gvariant,oerdnj/json-glib,ebassi/json-glib,robtaylor/json-glib-gvariant,frida/json-glib,GNOME/json-glib,Distrotech/json-glib,oerdnj/json-glib,oerdnj/json-glib,Distrotech/json-glib,brauliobo/json-glib,brauliobo/json-glib,oerdnj/json-glib,brauliobo/json-glib,ebassi/json...
a827c1facd4eba0f308796e9cda7a8815c06c7f8
3RVX/SettingsDefaults.h
3RVX/SettingsDefaults.h
#pragma once #include "MeterWnd/Animations/AnimationTypes.h" #include "Settings.h" class SettingsDefaults { public: /* Default settings */ static const bool OnTop = true; static const AnimationTypes::HideAnimation DefaultHideAnim = AnimationTypes::Fade; static const bool HideFullscreen = false...
#pragma once #include "MeterWnd/Animations/AnimationTypes.h" #include "Settings.h" class SettingsDefaults { public: /* String Constants*/ static constexpr const wchar_t *Language = L"English"; static constexpr const wchar_t *Skin = L"Classic"; static constexpr const wchar_t *MainAppName = L"3RVX.exe";...
Add string constants and reorganize defaults
Add string constants and reorganize defaults
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
1bf082ea8864b04f6bb15889fba66e092fd6b2f8
lib/shared/mem.h
lib/shared/mem.h
#ifndef MEM_H__ #define MEM_H__ #include <stdlib.h> #include "ocomm/o_log.h" void *xmalloc (size_t size); void *xcalloc (size_t count, size_t size); void *xrealloc (void *ptr, size_t size); size_t xmalloc_usable_size(void *ptr); char *xstralloc (size_t len); void *xmemdupz (const void *data, size_t len); char *xstrn...
#ifndef MEM_H__ #define MEM_H__ #include <stdlib.h> #include "ocomm/o_log.h" void *xmalloc (size_t size); void *xcalloc (size_t count, size_t size); void *xrealloc (void *ptr, size_t size); size_t xmalloc_usable_size(void *ptr); char *xstralloc (size_t len); void *xmemdupz (const void *data, size_t len); char *xstrn...
Add xstrdup as a convenience macro around xstrndup
Add xstrdup as a convenience macro around xstrndup Signed-off-by: Olivier Mehani <b6547e8761a9172c977da5c389270d45960e4aa0@ssji.net>
C
mit
alco90/soml,mytestbed/oml,lees0414/EUproject,mytestbed/oml,mytestbed/oml,lees0414/EUproject,lees0414/EUproject,mytestbed/oml,mytestbed/oml,alco90/soml,lees0414/EUproject,alco90/soml,lees0414/EUproject,alco90/soml,alco90/soml
79ad033eb47e12d5ea50015d10855c6ff3bc535b
src/ctypes/type_info_stubs.h
src/ctypes/type_info_stubs.h
/* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. */ #ifndef TYPE_INFO_STUBS_H #define TYPE_INFO_STUBS_H #include <caml/mlvalues.h> #include <caml/fail.h> #include <caml/callback.h> /* allocate_unpassable_struct_type_info ...
/* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. */ #ifndef TYPE_INFO_STUBS_H #define TYPE_INFO_STUBS_H #include <caml/mlvalues.h> /* Read a C value from a block of memory */ /* read : 'a prim -> offset:int -> raw_pointer...
Remove another obsolete function declaration.
Remove another obsolete function declaration.
C
mit
yallop/ocaml-ctypes,fdopen/ocaml-ctypes,dsheets/ocaml-ctypes,sjfloat/ocaml-ctypes,yallop/ocaml-ctypes,whitequark/ocaml-ctypes,whitequark/ocaml-ctypes,sjfloat/ocaml-ctypes,sjfloat/ocaml-ctypes,dsheets/ocaml-ctypes,fdopen/ocaml-ctypes,fdopen/ocaml-ctypes,whitequark/ocaml-ctypes,dsheets/ocaml-ctypes,ocamllabs/ocaml-ctypes...
d2ed7959a892af6dfe0fc07d772ee3e7bfc70235
src/systems/SimplePhysics.h
src/systems/SimplePhysics.h
#pragma once #include "../IFactory.h" #include "../ISystem.h" #include <string> #include <vector> #include <map> #include "../AABBTree.h" class Property; class IMoverComponent; class SimplePhysics : public Sigma::IFactory, public ISystem<IMoverComponent> { public: SimplePhysics() { } ~SimplePhysics() { }; /...
#pragma once #include "../IFactory.h" #include "../ISystem.h" #include <string> #include <vector> #include <map> #include "../AABBTree.h" class Property; class IMoverComponent; class SimplePhysics : public Sigma::IFactory, public ISystem<IMoverComponent> { public: SimplePhysics() { } ~SimplePhysics() { }; /...
Add the ability to get Colliders from SImplePhysics
Add the ability to get Colliders from SImplePhysics
C
mit
adam4813/Sigma,adam4813/Sigma
218edbbeb90d26f3c1a3934b8eae931ac972b957
PWGCF/PWGCFChaoticityLinkDef.h
PWGCF/PWGCFChaoticityLinkDef.h
#pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliChaoticity+; #pragma link C++ class AliThreePionRadii+; #pragma link C++ class AliChaoticityEventCollection+; #pragma link C++ class AliChaoticityEventStruct+; #pragma link C++ class AliChaoticityTrack...
#pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliChaoticity+; #pragma link C++ class AliThreePionRadii+; #pragma link C++ class AliChaoticityEventCollection+; #pragma link C++ class AliChaoticityEventStruct+; #pragma link C++ class AliChaoticityTrack...
Update compile code for 4-pion analysis
Update compile code for 4-pion analysis
C
bsd-3-clause
alisw/AliPhysics,jmargutt/AliPhysics,btrzecia/AliPhysics,btrzecia/AliPhysics,victor-gonzalez/AliPhysics,amaringarcia/AliPhysics,akubera/AliPhysics,fcolamar/AliPhysics,lcunquei/AliPhysics,dstocco/AliPhysics,sebaleh/AliPhysics,mkrzewic/AliPhysics,mazimm/AliPhysics,mazimm/AliPhysics,akubera/AliPhysics,nschmidtALICE/AliPhy...
ef7d0d8445f2f0953af9c87929e0a4d9859fa017
slave.h
slave.h
#include "modlib.h" #include "parser.h" #include "exception.h" //Types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct { ...
#include "modlib.h" #include "parser.h" #include "exception.h" //Types typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Response frame content } MODBUSResponseStatus; //Type containing information about frame that is set up at slave side typedef struct { ...
Add prototype of MODBUSException function
Add prototype of MODBUSException function
C
mit
Jacajack/modlib
ed4932362d20af4c06610592b0a13016df4aad16
sys/posix/include/sys/bytes.h
sys/posix/include/sys/bytes.h
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief ...
/* * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup posix_sockets */ /** * @{ * * @file * @brief ...
Revert "posix/osx: fix type conflict on OSX native"
Revert "posix/osx: fix type conflict on OSX native" This reverts commit dcebfb11bc5a861c711e58838eec5b0131d020e2.
C
lgpl-2.1
OlegHahm/RIOT,yogo1212/RIOT,toonst/RIOT,toonst/RIOT,josephnoir/RIOT,mfrey/RIOT,rfuentess/RIOT,avmelnikoff/RIOT,BytesGalore/RIOT,x3ro/RIOT,lazytech-org/RIOT,A-Paul/RIOT,toonst/RIOT,rfuentess/RIOT,biboc/RIOT,kbumsik/RIOT,BytesGalore/RIOT,aeneby/RIOT,smlng/RIOT,yogo1212/RIOT,kbumsik/RIOT,cladmi/RIOT,smlng/RIOT,kYc0o/RIOT,...
d5e8df788f3d98034edc66090d33eaeaa3179d23
ext/fast_stack/fast_stack.c
ext/fast_stack/fast_stack.c
#include <stdio.h> #include <ruby.h> #include <ruby/encoding.h> static VALUE profiler_start(VALUE module, VALUE usec) { struct itimerval timer; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = NUM2LONG(usec); timer.it_value = timer.it_interval; setitimer(ITIMER_PROF, &timer, 0); retur...
#include <stdio.h> #include <sys/time.h> #include <ruby.h> #include <ruby/encoding.h> static VALUE profiler_start(VALUE module, VALUE usec) { struct itimerval timer; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = NUM2LONG(usec); timer.it_value = timer.it_interval; setitimer(ITIMER_PROF, ...
Fix "storage size of 'timer' isn't known" on Debian Squeeze
Fix "storage size of 'timer' isn't known" on Debian Squeeze struct itimerval defined in sys/time.h
C
mit
SamSaffron/fast_stack,joshuaflanagan/fast_stack,lowjoel/fast_stack,lowjoel/fast_stack,joshuaflanagan/fast_stack,SamSaffron/fast_stack
dece25be6d34c098514ada240a52e13b6c8946c1
common/sdp-dummy.c
common/sdp-dummy.c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
Return NULL in case of the dummy XML parser
Return NULL in case of the dummy XML parser
C
lgpl-2.1
pstglia/external-bluetooth-bluez,ComputeCycles/bluez,silent-snowman/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,mapfau/bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pkarasev3/blue...