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
8518e74f3e24b136c627534e30b0068836785575
include/llvm/Support/ValueHolder.h
include/llvm/Support/ValueHolder.h
//===-- llvm/Support/ValueHolder.h - Wrapper for Value's --------*- C++ -*-===// // // This class defines a simple subclass of User, which keeps a pointer to a // Value, which automatically updates when Value::replaceAllUsesWith is called. // This is useful when you have pointers to Value's in your pass, but the // poi...
//===-- llvm/Support/ValueHolder.h - Wrapper for Value's --------*- C++ -*-===// // // This class defines a simple subclass of User, which keeps a pointer to a // Value, which automatically updates when Value::replaceAllUsesWith is called. // This is useful when you have pointers to Value's in your pass, but the // poi...
Add more methods to be more value-like
Add more methods to be more value-like git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@8074 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,d...
999de3c3fd59c197df0b12e3c11581560a07bfd4
tls/gnutls/gnutls-module.c
tls/gnutls/gnutls-module.c
/* GIO - GLib Input, Output and Streaming Library * * Copyright 2010 Red Hat, 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 of the License, or (at your ...
/* GIO - GLib Input, Output and Streaming Library * * Copyright 2010 Red Hat, 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 of the License, or (at your ...
Fix unresolved symbol when pkcs11 is disabled
gnutls: Fix unresolved symbol when pkcs11 is disabled * Error would occur: libgiognutls.so: undefined symbol: \ g_tls_backend_gnutls_pkcs11_register
C
lgpl-2.1
Distrotech/glib-networking,GNOME/glib-networking,Distrotech/glib-networking,GNOME/glib-networking,GNOME/glib-networking,Distrotech/glib-networking
f34ee1e4aa493b3192226c77f6c7041efc47c6df
project/include/ByteArray.h
project/include/ByteArray.h
#ifndef NME_BYTE_ARRAY_H #define NME_BYTE_ARRAY_H #include <nme/Object.h> #include <nme/QuickVec.h> #include "Utils.h" namespace nme { // If you put this structure on the stack, then you do not have to worry about GC. // If you store this in a heap structure, then you will need to use GC roots for mValue... struct ...
#ifndef NME_BYTE_ARRAY_H #define NME_BYTE_ARRAY_H #include <nme/Object.h> #include <nme/QuickVec.h> #include "Utils.h" #include <hx/CFFI.h> namespace nme { // If you put this structure on the stack, then you do not have to worry about GC. // If you store this in a heap structure, then you will need to use GC roots ...
Use correct cffi type for 'value'
Use correct cffi type for 'value'
C
mit
thomasuster/NME,haxenme/nme,haxenme/nme,haxenme/nme,haxenme/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,madrazo/nme
122eaf409a0203d8f6e565e4cf361b7ca8f2844a
tests/sv-comp/observer/path_nofun_true-unreach-call.c
tests/sv-comp/observer/path_nofun_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
Remove phases command line from SV-COMP observer example
Remove phases command line from SV-COMP observer example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4cc782bd715a9202b2b6eb1190fbf66eaab3d8f1
yalex/src/demo.c
yalex/src/demo.c
#include <stdio.h> #include <string.h> #include "yalex.h" void replMessageCallback(const char* ptr) { if (ptr && strlen(ptr)>0) { printf("%s\n", ptr); } } int yalex(void) { yalex_world world; yalex_init(&world, replMessageCallback); replMessageCallback("welcome"); char word[256]; /**/ ...
#include <stdio.h> #include <string.h> #include "yalex.h" void replMessageCallback(const char* ptr) { if (ptr && strlen(ptr)>0) { printf("%s\n", ptr); } } int yalex(void) { yalex_world world; yalex_init(&world, replMessageCallback); replMessageCallback("welcome"); char word[256]; /**/ ...
Add register alias for verbosity and readability?
Add register alias for verbosity and readability?
C
mit
AlexanderBrevig/yalex
f2d28e13a2ddc7dba28f53e9a7e9dfe4edd85859
Runtime/Rendering/ConstantBufferDX11.h
Runtime/Rendering/ConstantBufferDX11.h
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); template <typename Buffer> ...
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); template <typename BufferType...
Modify constant buffer init method template type name
Modify constant buffer init method template type name
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
dd3ef21ed70fa4d34f6713f83089c821b2707a60
Application.h
Application.h
#pragma once #include <SDL2/SDL.h> #include <string> class Application { private: // Main loop flag bool quit; // The window SDL_Window* window; // The window renderer SDL_Renderer* renderer; // The background color SDL_Color backgroundColor; // Window properties std::string title...
#pragma once #include <SDL2/SDL.h> #include <string> class Application { private: // Main loop flag bool quit; // The window SDL_Window* window; // The window renderer SDL_Renderer* renderer; // The background color SDL_Color backgroundColor; // Window properties std::string title...
Add getters for window constants
Add getters for window constants
C
mit
gldraphael/SdlTemplate
76f99cdff282275195f86b132b2daab6470900df
CreamMonkey.h
CreamMonkey.h
#import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
/* * Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info> * This source code is released under the MIT license. */ #import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
Add copyright and license header.
Add copyright and license header.
C
mit
kzys/greasekit,sohocoke/greasekit,tbodt/greasekit,chrismessina/greasekit
181aa9e0febf808f95718c3eea1f74d9fdc0086c
QtVmbViewer.h
QtVmbViewer.h
#ifndef QTVMBVIEWER_H #define QTVMBVIEWER_H // Qt dependencies #include <QWidget> #include <QLabel> #include <QSlider> // Local dependency #include "VmbCamera.h" // Qt widget to display the images from an Allied Vision camera through the Vimba SDK class QtVmbViewer : public QWidget { // Macro to use Qt signals and s...
#ifndef QTVMBVIEWER_H #define QTVMBVIEWER_H // Qt dependencies #include <QWidget> #include <QLabel> #include <QSlider> // Local dependency #include "VmbCamera.h" // Qt widget to display the images from an Allied Vision camera through the Vimba SDK class QtVmbViewer : public QWidget { // Macro to use Qt signals and s...
Change to private Qt slots.
Change to private Qt slots.
C
mit
microy/QtVmbViewer
0374498753335e45920f20c1a3b224f430bb82f1
Sources/Faraday.h
Sources/Faraday.h
/* Faraday Faraday.h * * Copyright © 2015, 2016, Roy Ratcliffe, Pioneering Software, United Kingdom * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the “Software”), to deal * in the Software without restriction, including with...
/* Faraday Faraday.h * * Copyright © 2015, 2016, Roy Ratcliffe, Pioneering Software, United Kingdom * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the “Software”), to deal * in the Software without restriction, including with...
Use @import in Objective-C header
Use @import in Objective-C header
C
mit
royratcliffe/Faraday,royratcliffe/Faraday
bae6f787c319c9b2cafba0e5fd0027c5d3903fc6
src/gluonvarianttypes.h
src/gluonvarianttypes.h
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 version 3 of the License, or (...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 version 3 of the License, or (...
Make the varianttypes work more pleasantly - now you simply include the file, and stuff happens magically! (that is, Eigen::Vector3d is registered as a QVariant now... more to come!)
Make the varianttypes work more pleasantly - now you simply include the file, and stuff happens magically! (that is, Eigen::Vector3d is registered as a QVariant now... more to come!)
C
lgpl-2.1
pranavrc/example-gluon,cgaebel/gluon,cgaebel/gluon,cgaebel/gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,cgaebel/gluon,KDE/gluon
64dfbcfad0d2b4820c53110f9622ab6ca726a123
gram/rsl_assist/source/globus_rsl_assist.h
gram/rsl_assist/source/globus_rsl_assist.h
/****************************************************************************** globus_rsl_assist.h Description: This header contains the interface prototypes for the rsl_assist library. CVS Information: $Source$ $Date$ $Revision$ $Author$ ****************************************************...
/* * globus_rsl_assist.h * * Description: * * This header contains the interface prototypes for the rsl_assist library. * * CVS Information: * * $Source$ * $Date$ * $Revision$ * $Author$ ******************************************************************************/ #ifndef _GLOBUS_RSL_ASSIST_INCLUDE_G...
Make comment conform to coding standard...
Make comment conform to coding standard...
C
apache-2.0
gridcf/gct,globus/globus-toolkit,globus/globus-toolkit,gridcf/gct,globus/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,gridcf/gct,gridcf/gct,ellert/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,gridcf/gct,globus/globus-toolkit,gridcf/gct,globus/globu...
593c4ae13535e52dab15af80618dbee90a4f818c
tests/regression/29-svcomp/04-lustre-minimal.c
tests/regression/29-svcomp/04-lustre-minimal.c
// PARAM: --enable ana.int.interval --enable ana.int.def_exc // issue #120 #include <assert.h> int main() { // should be LP64 unsigned long n = 16; unsigned long size = 4912; assert(!(0xffffffffffffffffUL / size < n)); // UNKNOWN (for now) }
// PARAM: --enable ana.int.interval --enable ana.int.def_exc // issue #120 #include <assert.h> int main() { // should be LP64 unsigned long n = 16; unsigned long size = 4912; assert(!(0xffffffffffffffffUL / size < n)); }
Remove UNKNOWN annotation from assert that now succeeds
Testcase: Remove UNKNOWN annotation from assert that now succeeds
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
84d607040b1df3b151aabb226122bc2d29f2d74a
document/src/vespa/document/repo/document_type_repo_factory.h
document/src/vespa/document/repo/document_type_repo_factory.h
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> #include <mutex> #include <map> namespace document { namespace internal { class InternalDocumenttypesType; } class DocumentTypeRepo; /* * Factory class for doc...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> #include <mutex> #include <map> namespace document { namespace internal { class InternalDocumenttypesType; } class DocumentTypeRepo; /* * Factory class for doc...
Add comment for document::DocumentTypeRepoFactory::make method.
Add comment for document::DocumentTypeRepoFactory::make method.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
0ed54c92c849c3c62f6a61877472f1495ecd2025
Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c
Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c
#include "FreeRTOS.h" #include "Semphr.h" #include "task.h" /* The interrupt entry point. */ void vEMAC_ISR_Wrapper( void ) __attribute__((naked)); /* The handler that does the actual work. */ void vEMAC_ISR_Handler( void ); extern xSemaphoreHandle xEMACSemaphore; void vEMAC_ISR_Handler( void ) { po...
#include "FreeRTOS.h" #include "semphr.h" #include "task.h" /* The interrupt entry point. */ void vEMAC_ISR_Wrapper( void ) __attribute__((naked)); /* The handler that does the actual work. */ void vEMAC_ISR_Handler( void ); extern xSemaphoreHandle xEMACSemaphore; void vEMAC_ISR_Handler( void ) { po...
Correct case of include file to build on Linux.
Correct case of include file to build on Linux. git-svn-id: 43aea61533866f88f23079d48f4f5dc2d5288937@402 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
C
apache-2.0
Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos
e77d038d2bed3605d18c83152402a5ddfd7255dd
Classes/SloppySwiper.h
Classes/SloppySwiper.h
// // SloppySwiper.h // // Created by Arkadiusz on 29-05-14. // #import <Foundation/Foundation.h> @interface SloppySwiper : NSObject <UINavigationControllerDelegate> // Designated initializer if the class isn't set in the Interface Builder. - (instancetype)initWithNavigationController:(UINavigationController *)nav...
// // SloppySwiper.h // // Created by Arkadiusz on 29-05-14. // #import <Foundation/Foundation.h> @interface SloppySwiper : NSObject <UINavigationControllerDelegate> /// Gesture recognizer used to recognize swiping to the right. @property (weak, nonatomic) UIPanGestureRecognizer *panRecognizer; /// Designated ini...
Improve comments in the header file
Improve comments in the header file
C
mit
toc2menow/SloppySwiper,ssowonny/SloppySwiper,stephenbalaban/SloppySwiper,fastred/SloppySwiper,msdgwzhy6/SloppySwiper,igroomgrim/SloppySwiper,barrettj/SloppySwiper,yusuga/SloppySwiper,xuvw/SloppySwiper
ab734ec5a64b364fcf8aff3d91eea860887afc42
onnxruntime/core/framework/tensor_external_data_info.h
onnxruntime/core/framework/tensor_external_data_info.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <string> #include "core/common/status.h" #include "core/graph/onnx_protobuf.h" #include "core/session/onnxruntime_c_api.h" namespace onnxruntime { class ExternalDataInfo { private: std::basic_strin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <string> #include "core/common/status.h" #include "core/graph/onnx_protobuf.h" #include "core/session/onnxruntime_c_api.h" namespace onnxruntime { class ExternalDataInfo { private: std::basic_strin...
Fix a bug in ExternalDataInfo
Fix a bug in ExternalDataInfo
C
mit
microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime
ec2bf942662f8a8f1049b80208192691b64da6a5
React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h
React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <React/RCTViewComponentView.h> NS_ASSUME_NONNULL_BEGIN /** * UIView class for root <Shimmering...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <React/RCTViewComponentView.h> NS_ASSUME_NONNULL_BEGIN /** * UIView class for root <ActivityIn...
Fix incorrect information in comment
Fix incorrect information in comment Summary: `RCTActivityIndicatorViewComponentView` is a component for `ActivityIndicator` not for `ShimmeringView`. Reviewed By: cpojer Differential Revision: D16360505 fbshipit-source-id: d6f7685eea24060c9e1b43d5782a65396d6c375e
C
bsd-3-clause
exponentjs/react-native,javache/react-native,arthuralee/react-native,janicduplessis/react-native,janicduplessis/react-native,hoangpham95/react-native,javache/react-native,facebook/react-native,hammerandchisel/react-native,janicduplessis/react-native,facebook/react-native,myntra/react-native,exponent/react-native,facebo...
817f72d680828bb848099adf69fd35c14ff2e182
arch/m68k/include/asm/virtconvert.h
arch/m68k/include/asm/virtconvert.h
#ifndef __VIRT_CONVERT__ #define __VIRT_CONVERT__ /* * Macros used for converting between virtual and physical mappings. */ #ifdef __KERNEL__ #include <linux/compiler.h> #include <linux/mmzone.h> #include <asm/setup.h> #include <asm/page.h> /* * Change virtual addresses to physical addresses and vv. */ static i...
#ifndef __VIRT_CONVERT__ #define __VIRT_CONVERT__ /* * Macros used for converting between virtual and physical mappings. */ #ifdef __KERNEL__ #include <linux/compiler.h> #include <linux/mmzone.h> #include <asm/setup.h> #include <asm/page.h> /* * Change virtual addresses to physical addresses and vv. */ static i...
Correct page_to_phys when PAGE_OFFSET is non-zero.
m68knommu: Correct page_to_phys when PAGE_OFFSET is non-zero. The definition of page_to_phys for nommu produces an incorrect value when PAGE_OFFSET is non-zero. The nommu version of page_to_pfn works correctly for non-zero PAGE_OFFSET, so use that instead. Signed-off-by: Steven King <a01a09c207e33d02e60d4b67c9ce2ea5...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
ff7f701a95cc88bd107de6b9082e398106482111
include/Support/DataTypes.h
include/Support/DataTypes.h
//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// // // This file contains definitions to figure out the size of _HOST_ data types. // This file is important because different host OS's define different macros, // which makes portability tough. This file exports the following definitions...
//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// // // This file contains definitions to figure out the size of _HOST_ data types. // This file is important because different host OS's define different macros, // which makes portability tough. This file exports the following definitions...
Add better linux support by using the right macro. This still should be autoconfiscated, but for now this is sufficient.
Add better linux support by using the right macro. This still should be autoconfiscated, but for now this is sufficient. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3701 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,l...
b5ba1b31c793185d6e0ee62c1928c84bcff9818e
include/asm-sparc64/setup.h
include/asm-sparc64/setup.h
/* * Just a place holder. */ #ifndef _SPARC64_SETUP_H #define _SPARC64_SETUP_H #define COMMAND_LINE_SIZE 256 #endif /* _SPARC64_SETUP_H */
/* * Just a place holder. */ #ifndef _SPARC64_SETUP_H #define _SPARC64_SETUP_H #define COMMAND_LINE_SIZE 2048 #endif /* _SPARC64_SETUP_H */
Increase command line size to 2048 like other arches.
[SPARC64]: Increase command line size to 2048 like other arches. Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program...
ccf1eb48c779fc3ebeda4fdd90eef1132f8a9734
include/ygo/data/CardData.h
include/ygo/data/CardData.h
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
Clarify data in static card data
Clarify data in static card data
C
mit
DeonPoncini/ygodata
1d76413d676c592f8d0bd1eb288f0e69fff61f7e
pq-crypto/pq-random.c
pq-crypto/pq-random.c
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
Enable compiling with older versions of GCC
Enable compiling with older versions of GCC
C
apache-2.0
awslabs/s2n,colmmacc/s2n,wcs1only/s2n,colmmacc/s2n,PKRoma/s2n,gibson-compsci/s2n,wcs1only/s2n,awslabs/s2n,alexeblee/s2n,raycoll/s2n,PKRoma/s2n,wcs1only/s2n,gibson-compsci/s2n,raycoll/s2n,colmmacc/s2n,gibson-compsci/s2n,raycoll/s2n,awslabs/s2n,PKRoma/s2n,wcs1only/s2n,colmmacc/s2n,PKRoma/s2n,awslabs/s2n,raycoll/s2n,alexe...
de0afa4fa188b5659acf2859848e644e0864cdc5
hal1.h
hal1.h
#ifndef HAL1_H #define HAL1_H // Configurable constants extern int const MAIN_MOTOR_PWM_TOP; extern int const MAIN_MOTOR_BRAKE_SPEED; extern int const MAIN_MOTOR_MIN_SPEED; extern int const MAIN_MOTOR_MED_SPEED; extern int const MAIN_MOTOR_MAX_SPEED; extern int const MAGNET_OPEN_WAIT; void init(void); void main_mot...
#ifndef HAL1_H #define HAL1_H // Configurable constants extern int const MAIN_MOTOR_PWM_TOP; extern int const MAIN_MOTOR_BRAKE_SPEED; extern int const MAIN_MOTOR_MIN_SPEED; extern int const MAIN_MOTOR_MED_SPEED; extern int const MAIN_MOTOR_MAX_SPEED; extern int const MAGNET_OPEN_WAIT; void init(void); void main_mot...
Add speed to aux motor functions.
Add speed to aux motor functions.
C
unlicense
plzz/ovisysteemi,plzz/ovisysteemi
ebf93089a14d4ee802a317a78225361f6c61fe14
base_sheet.h
base_sheet.h
#include "helper.h" #include <string> // string #include <stdlib.h> // srand, rand #include <time.h> // time - for rand seed #include <algorithm> // sort using namespace std; class BaseSheet { protected: int _level; int _str; int _dex; int _con; int _int; int _wis; ...
#include "helper.h" #include <string> // string #include <stdlib.h> // srand, rand #include <time.h> // time - for rand seed #include <algorithm> // sort #include <functional> // std::greater for mac osx using namespace std; class BaseSheet { protected: int _level; int _str; int _dex; ...
Add include <functional> for osx
Add include <functional> for osx
C
mit
golddiamonds/character
245dbbfe13b1a31e5955106d58687c3b384dca66
dev/ic/i8237reg.h
dev/ic/i8237reg.h
/* $OpenBSD: i8237reg.h,v 1.2 1996/04/18 23:47:19 niklas Exp $ */ /* $NetBSD: i8237reg.h,v 1.5 1996/03/01 22:27:09 mycroft Exp $ */ /* * Intel 8237 DMA Controller */ #define DMA37MD_WRITE 0x04 /* read the device, write memory operation */ #define DMA37MD_READ 0x08 /* write the device, read memory operation */ #defi...
/* $OpenBSD: i8237reg.h,v 1.3 1999/08/04 23:07:49 niklas Exp $ */ /* $NetBSD: i8237reg.h,v 1.5 1996/03/01 22:27:09 mycroft Exp $ */ /* * Intel 8237 DMA Controller */ #define DMA37MD_DEMAND 0x00 /* demand mode */ #define DMA37MD_WRITE 0x04 /* read the device, write memory operation */ #define DMA37MD_READ 0x08 /* wr...
Add new manifest constant for demand mode DMA; form NetBSD
Add new manifest constant for demand mode DMA; form NetBSD
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
1ca47e1e88457d9bd9998e2cc2aae19495d4668b
examples/rmc-test.c
examples/rmc-test.c
#include "rmc.h" // Some test cases that required some bogosity to not have the branches get // optimized away. // // Also, if r doesn't get used usefully, that load gets optimized away. // I can't decide whether that is totally fucked or not. int global_p, global_q; int bogus_ctrl_dep1() { XEDGE(read, write); ...
#include "rmc.h" // Some test cases that required some bogosity to not have the branches get // optimized away. // // Also, if r doesn't get used usefully, that load gets optimized away. // I can't decide whether that is totally fucked or not. int global_p, global_q; int bogus_ctrl_dep1() { XEDGE(read, write); ...
Add another ctrl dep test that we get right!
Add another ctrl dep test that we get right!
C
mit
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
50dd6a56970747d566d2ce3eee4305e2e530a16d
src/bin/e_error.c
src/bin/e_error.c
#include "e.h" /* local subsystem functions */ /* local subsystem globals */ /* externally accessible functions */ EAPI void e_error_message_show_internal(char *txt) { /* FIXME: maybe log these to a file and display them at some point */ printf("<<<< Enlightenment Error >>>>\n" "%s\n", txt); } /* local ...
#include "e.h" /* local subsystem functions */ /* local subsystem globals */ /* externally accessible functions */ EAPI void e_error_message_show_internal(char *txt) { /* FIXME: maybe log these to a file and display them at some point */ printf("<<<< Enlightenment Error >>>>\n%s\n", txt); } /* local subsystem...
Fix formatting. (Really ??? 3 lines for something that can fit on one ?)
E: Fix formatting. (Really ??? 3 lines for something that can fit on one ?) SVN revision: 61614
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment
b54503d351bf638969a5dd9e7113f8bc419ee24f
tmcd/decls.h
tmcd/decls.h
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2002 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14443 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2002 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...
Change alternate port number; seemed to be taken already!
Change alternate port number; seemed to be taken already!
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
de7f24245a2b51af5ff3489d897ed490d8a0e776
BRScroller/BRScrollerUtilities.h
BRScroller/BRScrollerUtilities.h
// // BRScrollerUtilities.h // BRScroller // // Created by Matt on 7/11/13. // Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #ifndef BRScroller_BRScrollerUtilities_h #define BRScroller_BRScrollerUtilities_h #include <CoreFoundation/CoreFoundation.h> #include ...
// // BRScrollerUtilities.h // BRScroller // // Created by Matt on 7/11/13. // Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #ifndef BRScroller_BRScrollerUtilities_h #define BRScroller_BRScrollerUtilities_h #include <CoreGraphics/CoreGraphics.h> bool BRFloat...
Fix import to what's actually needed.
Fix import to what's actually needed.
C
apache-2.0
Blue-Rocket/BRScroller,Blue-Rocket/BRScroller
4c22fc7c302ac0e6a26c7113bef5c6d23cc1625a
test/studies/filerator/direnthelp.h
test/studies/filerator/direnthelp.h
#include "dirent.h" typedef DIR* DIRptr; typedef struct dirent* direntptr; #define chpl_rt_direntptr_getname(x) ((x)->d_name) // // Note: This is not portable; more generally, need to use lstat() or similar; // see the readdir() man page for notes // #define chpl_rt_direntptr_isDir(x) ((x)->d_type == DT_DIR)
#include "dirent.h" typedef DIR* DIRptr; #ifndef __USE_FILE_OFFSET64 typedef struct dirent* direntptr; #else #ifdef __REDIRECT typedef struct dirent* direntptr; #else typedef struct dirent64* direntptr; #endif #endif #define chpl_rt_direntptr_getname(x) ((x)->d_name) // // Note: This is not portable; more generally...
Make the filerator test more portable
Make the filerator test more portable For some reason that I haven't been able to determine, the return type of readdir() is sometimes dirent64* rather than dirent* as all the man pages and documentation that I can find suggest. This happens with prgenv-pgi and prgenv-cray compilers for example. Here, I'm guarding o...
C
apache-2.0
CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/cha...
d60caada8b9cad01a953981954856f26805674ec
include/llvm/TableGen/TableGenBackend.h
include/llvm/TableGen/TableGenBackend.h
//===- llvm/TableGen/TableGenBackend.h - Backend utilities ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/TableGen/TableGenBackend.h - Backend utilities ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove unnecessary include and just forward declare. NFC
[TableGen] Remove unnecessary include and just forward declare. NFC git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@238179 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl...
351c01d249e0b93f4d2805f5b93d6cb52fae8894
UIKitExtensions/UIView/Framing.h
UIKitExtensions/UIView/Framing.h
// UIKitExtensions // // UIKitExtensions/UIView/Framing.h // // Copyright (c) 2013 Stanislaw Pankevich // Released under the MIT license // // Inspired by FrameAccessor // https://github.com/AlexDenisov/FrameAccessor/ #import <UIKit/UIKit.h> @interface UIView (Framing) @property CGPoint viewOrigin; @property CGSize ...
// UIKitExtensions // // UIKitExtensions/UIView/Framing.h // // Copyright (c) 2013 Stanislaw Pankevich // Released under the MIT license // // Inspired by FrameAccessor // https://github.com/AlexDenisov/FrameAccessor/ #import <UIKit/UIKit.h> @interface UIView (Framing) // http://stackoverflow.com/questions/16118106/...
Add links to original problem
Add links to original problem
C
mit
stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions,stanislaw/UIKitExtensions
5422ab894dc9c35d94656d6879879e076fc9d0e0
hw/vpi/tenyr_vpi.h
hw/vpi/tenyr_vpi.h
#ifndef TENYR_VPI_ #define TENYR_VPI_ #include <vpi_user.h> struct tenyr_sim_state; typedef int tenyr_sim_cb(p_cb_data data); typedef int tenyr_sim_call(struct tenyr_sim_state *state, void *userdata); struct tenyr_sim_state { struct { tenyr_sim_call *genesis; ///< beginning of sim tenyr_sim...
#ifndef TENYR_VPI_ #define TENYR_VPI_ #include <vpi_user.h> struct tenyr_sim_state; typedef int tenyr_sim_cb(p_cb_data data); typedef int tenyr_sim_call(struct tenyr_sim_state *state, void *userdata); struct tenyr_sim_state { struct { tenyr_sim_call *genesis; ///< beginning of sim tenyr_sim...
Mend incorrect whitespace from 3103a58
Mend incorrect whitespace from 3103a58
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
7d6b667ae70747e9f111eedb98f66fca20c9f43e
value.h
value.h
#pragma once #include <stdio.h> #ifdef __cplusplus extern "C" { #endif enum Turbo_Type {TJ_Error, TJ_String, TJ_Number, TJ_Object, TJ_Array, TJ_Boolean, TJ_Null}; struct Turbo_Value{ enum Turbo_Type type; unsigned length; union{ double number; int boolean; const char *string; ...
#pragma once #include <stdio.h> #ifdef _MSC_VER #define __restrict__ __restrict #elif defined __WATCOMC__ #define __restrict__ #endif #ifdef __cplusplus extern "C" { #endif enum Turbo_Type {TJ_Error, TJ_String, TJ_Number, TJ_Object, TJ_Array, TJ_Boolean, TJ_Null}; struct Turbo_Value{ enum Turbo_Type type; u...
Handle restrict on Windows compilers
Handle restrict on Windows compilers
C
bsd-3-clause
FlyingJester/TurboJSON,FlyingJester/TurboJSON,FlyingJester/TurboJSON
7e3f73b484dce568b5cee7f4e3209181efdf5cc7
ppapi/tests/arch_dependent_sizes_64.h
ppapi/tests/arch_dependent_sizes_64.h
/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * This file has compile assertions for the sizes of types that are dependent * on the architecture for which they are compiled (i.e., 32-bit vs 64...
/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * This file has compile assertions for the sizes of types that are dependent * on the architecture for which they are compiled (i.e., 32-bit vs 64...
Disable GL sizes PPAPI tests
Disable GL sizes PPAPI tests The wrong size is defined for Win64. It needs a real fix, but first I need to unblock the builder. BUG=177779 Review URL: https://chromiumcodereview.appspot.com/12310080 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@184296 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
markYoungH/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chr...
4c54e21bfaf52047e4d0790623197df84a7410e4
src/sys/utsname.c
src/sys/utsname.c
/* $Id$ */ /* Copyright (c) 2006 The DeforaOS Project */ #include "../syscalls.h" #include "sys/utsname.h" /* uname */ #ifndef __NetBSD__ syscall1(int, uname, struct utsname *, utsname); #endif
/* $Id$ */ /* Copyright (c) 2007 The DeforaOS Project */ #include "../syscalls.h" #include "sys/utsname.h" /* uname */ #if !defined(__NetBSD__) || defined(NETBSD_USE_LINUX_EMULATION) syscall1(int, uname, struct utsname *, utsname); #endif
Allow uname() with linux emulation on NetBSD
Allow uname() with linux emulation on NetBSD
C
bsd-2-clause
DeforaOS/libc,DeforaOS/libc
3e23ab61c6fe1bfd219f94bae2857985ef50da69
Pod/Classes/CMHLoginViewController.h
Pod/Classes/CMHLoginViewController.h
#import <ResearchKit/ResearchKit.h> @class CMHLoginViewController; @protocol CMHLoginViewControllerDelegate <NSObject> @optional - (void)loginViewControllerCancelled:(CMHLoginViewController *_Nonnull)viewController; - (void)loginViewController:(CMHLoginViewController *_Nonnull)viewController didLogin:(BOOL)success er...
#import <ResearchKit/ResearchKit.h> @class CMHLoginViewController; @protocol CMHLoginViewControllerDelegate <NSObject> @optional - (void)loginViewControllerCancelled:(CMHLoginViewController *_Nonnull)viewController; - (void)loginViewController:(CMHLoginViewController *_Nonnull)viewController didLogin:(BOOL)success er...
Add nullability annotations to the custom login view controller's public interface
Add nullability annotations to the custom login view controller's public interface
C
mit
cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK-iOS,cloudmine/CMHealthSDK
5cc6bfb2caca2ecd95d4e152d70fc6c261cd31e1
ionCore/ionStandardLibrary.h
ionCore/ionStandardLibrary.h
#pragma once #include "ionTypes.h" #include <algorithm> #include <numeric> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> using std::move; using std::ifstream; template <typename T, typename U> U * ConditionalMapAccess(map<T, U *> & Map, T const Key) { auto Iterator...
#pragma once #include "ionTypes.h" #include <algorithm> #include <numeric> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> using std::move; using std::ifstream; template <typename T, typename U> U * ConditionalMapAccess(map<T, U *> & Map, T const Key) { auto Iterator...
Fix inappropriate move in ReadAsString
Fix inappropriate move in ReadAsString --HG-- branch : SceneOverhaul
C
mit
iondune/ionEngine,iondune/ionEngine
1f62a70bbf4f45f26c04145a5ad25e90b578db9b
lib/Runtime/ByteCode/ByteCodeCacheReleaseFileVersion.h
lib/Runtime/ByteCode/ByteCodeCacheReleaseFileVersion.h
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Update byte code ID for InitConst change
Update byte code ID for InitConst change
C
mit
Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore
b3fbc27c7a4130904f3cae41eb161832304b6b9d
src/condor_syscall_lib/syscall_mode.c
src/condor_syscall_lib/syscall_mode.c
/******************************************************************* ** ** Manage system call mode and do remote system calls. ** *******************************************************************/ #define _POSIX_SOURCE #include <stdio.h> #include "condor_syscall_mode.h" static int SyscallMode = 1; /* LOCAL and UNM...
/******************************************************************* ** ** Manage system call mode and do remote system calls. ** *******************************************************************/ #define _POSIX_SOURCE #include "condor_common.h" #include "condor_debug.h" #include "condor_syscall_mode.h" static int ...
Add DisplaySyscallMode() routine for debugging.
Add DisplaySyscallMode() routine for debugging.
C
apache-2.0
zhangzhehust/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,neurodebian/htcondor,clala...
d9041156f999342aab312dfb7ea6dfc21f7cbd08
SWXMLDateMapping.h
SWXMLDateMapping.h
// // SWXMLDateMapping.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 13/11/05. // Copyright 2005 Samuel Williams. All rights reserved. // #import "SWXMLMemberMapping.h" @class SWXMLMemberMapping; @interface SWXMLDateMapping : S...
// // SWXMLDateMapping.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 13/11/05. // Copyright 2005 Samuel Williams. All rights reserved. // #import "SWXMLMemberMapping.h" @class SWXMLMemberMapping; // Formats value attribute acco...
Comment regarding value serialization of date.
Comment regarding value serialization of date.
C
mit
oriontransfer/SWXMLMapping
44ff99d3d8e9bb89f9084fc0d6586f1a7f0e1277
ann.c
ann.c
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { Links weights; } ANN; int main(void) { return 0; }
#include <stdio.h> #define INPUTS 3 #define HIDDEN 5 #define OUTPUTS 2 #define ROWS 5 typedef struct { double input[HIDDEN][INPUTS]; double hidden[ROWS - 3][HIDDEN][HIDDEN]; double output[OUTPUTS][HIDDEN]; } Links; typedef struct { int input[INPUTS]; int hidden[HIDDEN]; int output[OUTPUTS]; }...
Allow neuron values (outputs) to be stored
Allow neuron values (outputs) to be stored
C
mit
tysonzero/c-ann
a998d0fcb5626b90c4b2cc92a25982b5407eba03
free.h
free.h
/* * free.h * Memory usage utility for Darwin & MacOS X (similar to 'free' under Linux) * * by: David Cantrell <david.l.cantrell@gmail.com> * Copyright (C) 2008, David Cantrell, Honolulu, HI, USA. * * Licensed under the GNU Lesser General Public License version 2.1 or later. * See COPYING.LIB for licensing det...
/* * free.h * Memory usage utility for Darwin & MacOS X (similar to 'free' under Linux) * * by: David Cantrell <david.l.cantrell@gmail.com> * Copyright (C) 2008, David Cantrell, Honolulu, HI, USA. * * Licensed under the GNU Lesser General Public License version 2.1 or later. * See COPYING.LIB for licensing det...
Make sure used unit constants are non-zero
Make sure used unit constants are non-zero
C
lgpl-2.1
dcantrell/darwin-free
47bf9fbde1fffc46171cdf225dbd685a5e0a7526
gtksourceview2.h
gtksourceview2.h
#include "gtk2hs_macros.h" #include <gtksourceview/gtksourcebuffer.h> #if GTK_MAJOR_VERSION < 3 #include <gtksourceview/gtksourceiter.h> #endif #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagemanager.h> #include <gtksourceview/gtksourcestyle.h> #include <gtksourceview/gtksourcestyl...
#ifdef __BLOCKS__ #undef __BLOCKS__ #endif #include "gtk2hs_macros.h" #include <gtksourceview/gtksourcebuffer.h> #if GTK_MAJOR_VERSION < 3 #include <gtksourceview/gtksourceiter.h> #endif #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagemanager.h> #include <gtksourceview/gtksourcesty...
Fix CPP issue on OS X
Fix CPP issue on OS X
C
lgpl-2.1
gtk2hs/gtksourceview,gtk2hs/gtksourceview
504d69fb848c13a69d7747f85f541b3ac3cf8019
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.47f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.48f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // incr...
Increase version to 1.48 in preparation for new release
Increase version to 1.48 in preparation for new release
C
apache-2.0
ariccio/UIforETW,google/UIforETW,mwinterb/UIforETW,google/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,mwinterb/UIforETW,google/UIforETW
ce2df60e506865768215d05489c5a52cbb6febcb
Classes/JLNRGravityImageView.h
Classes/JLNRGravityImageView.h
// // JLNRGravityImageView.h // JLNRGravityImageViewExample // // Created by Julian Raschke on 17.02.15. // Copyright (c) 2015 Julian Raschke. All rights reserved. // #import <UIKit/UIKit.h> IB_DESIGNABLE @interface JLNRGravityImageView : UIImageView @property (nonatomic) IBInspectable BOOL alignTop; @property ...
// // JLNRGravityImageView.h // JLNRGravityImageViewExample // // Created by Julian Raschke on 17.02.15. // Copyright (c) 2015 Julian Raschke. All rights reserved. // #import <UIKit/UIKit.h> // IB_DESIGNABLE does not work by default with CocoaPods: // https://github.com/CocoaPods/CocoaPods/issues/2792 #ifndef CO...
Disable IB_DESIGNABLE when using CocoaPods
Disable IB_DESIGNABLE when using CocoaPods
C
mit
jlnr/JLNRGravityImageView,lurado/LDOAlignedImageView
526b09b014c8219cfe3747170c6021fe92fb65d5
firmware/lm32/config.h
firmware/lm32/config.h
#ifndef __CONFIG_H #define __CONFIG_H enum { CONFIG_KEY_RESOLUTION = 0, CONFIG_KEY_BLEND_USER1, CONFIG_KEY_BLEND_USER2, CONFIG_KEY_BLEND_USER3, CONFIG_KEY_BLEND_USER4, CONFIG_KEY_COUNT }; #define CONFIG_DEFAULTS { 9, 1, 2, 3, 4 } void config_init(void); void config_write_all(void); unsigned char config_get(un...
#ifndef __CONFIG_H #define __CONFIG_H enum { CONFIG_KEY_RESOLUTION = 0, CONFIG_KEY_BLEND_USER1, CONFIG_KEY_BLEND_USER2, CONFIG_KEY_BLEND_USER3, CONFIG_KEY_BLEND_USER4, CONFIG_KEY_COUNT }; #ifdef BOARD_MINISPARTAN6 #define CONFIG_DEFAULTS { 5, 1, 2, 3, 4 } #else #define CONFIG_DEFAULTS { 9, 1, 2, 3, 4 } #endif ...
Make 800x600 the default mode for the minispartan6+
firmware/lm32: Make 800x600 the default mode for the minispartan6+
C
bsd-2-clause
mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware
9603de4489d4fb7b057e55402080544db0d75d99
src/lang-dutch.c
src/lang-dutch.c
#include "num2words.h" // Language strings for Dutch const Language LANG_DUTCH = { .hours = { "een", "twee", "drie", "vier", "vijf", "zes", "zeven", "acht", "negen", "tien", "elf", "twaalf" }, .phrases = { "*$1 uur ", "vijf over *$1 ", "tien over *$1 ", "kwart over *$1 ", "tien vo...
#include "num2words.h" // Language strings for Dutch const Language LANG_DUTCH = { .hours = { "een", "twee", "drie", "vier", "vijf", "zes", "zeven", "acht", "negen", "tien", "elf", "twaalf" }, .phrases = { "*$1 uur ", "vijf over *$1 ", "tien over *$1 ", "kwart over *$1 ", "tien vo...
Remove hyphens from dutch greetings as per recommendation from @eddyh
Remove hyphens from dutch greetings as per recommendation from @eddyh
C
mit
Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Fuzzy-Text-Watch-Plus
d496a2cb613d41095a25d1f8a8cf73fac2dd55b3
ouzel/Settings.h
ouzel/Settings.h
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "CompileConfig.h" namespace ouzel { struct Settings { video::Renderer::Driver driver = #if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS) || defined(OUZEL...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include "CompileConfig.h" namespace ouzel { struct Settings { video::Renderer::Driver driver = #if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS) || defined(OUZEL...
Add setting for MSAA sample count
Add setting for MSAA sample count
C
unlicense
elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel
c03ade8e87b3848bbb1d30d6e8a09633fbe22a7c
thcrap/src/log.h
thcrap/src/log.h
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Logging functions. * Log to both a file and, if requested, an on-screen console. * * As of now, we do not enforce char strings to be in UTF-8. */ #pragma once /// --------------- /// Standard output /// --------------- // Bas...
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Logging functions. * Log to both a file and, if requested, an on-screen console. * * As of now, we do not enforce char strings to be in UTF-8. */ #pragma once /// --------------- /// Standard output /// --------------- // Bas...
Use C99 __func__ instead of __FUNCTION__ when not compiling with Visual C++.
Use C99 __func__ instead of __FUNCTION__ when not compiling with Visual C++. Couldn't they standardize __FUNCTION__ instead? A string literal that can be concatenated with other string literals is much more flexible than a char[] variable.
C
unlicense
thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap
c3a6cadc3df8702f1f195f6cda53f023dfe7e6ae
robot_module.h
robot_module.h
/* * File: robots.h * Author: m79lol * */ #ifndef ROBOT_MODULE_H #define ROBOT_MODULE_H #define ROBOT_COMMAND_FREE 0 #define ROBOT_COMMAND_HAND_CONTROL_BEGIN -1 #define ROBOT_COMMAND_HAND_CONTROL_END -2 class Robot { protected: Robot() {} public: virtual FunctionResult* executeFunctio...
/* * File: robots.h * Author: m79lol * */ #ifndef ROBOT_MODULE_H #define ROBOT_MODULE_H #define ROBOT_COMMAND_FREE 0 #define ROBOT_COMMAND_HAND_CONTROL_BEGIN -1 #define ROBOT_COMMAND_HAND_CONTROL_END -2 typedef std::function<void(unsigned short int, const char*, va_list)> t_printf_color_module; class Robot {...
Prepare function added for Robot modules.
Prepare function added for Robot modules.
C
apache-2.0
RobotControlTechnologies/module_headers,iskinmike/module_headers
accec546d710228b9b2a5cc84557cde6624d7a89
include/tiramisu/MainPage.h
include/tiramisu/MainPage.h
/** \file * This file only exists to contain the front-page of the documentation */ /** \mainpage Documentation of the API if the Tiramisu Compiler * * Tiramisu provides few classes to enable users to represent their program: * - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio...
/** \file * This file only exists to contain the front-page of the documentation */ /** \mainpage Documentation of the API if the Tiramisu Compiler * * Tiramisu provides few classes to enable users to represent their program: * - The \ref tiramisu::function class: a function in Tiramisu is equivalent to a functio...
Fix the documentation main page
Fix the documentation main page
C
mit
rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/ISIR,rbaghdadi/COLi
edee7c36a226e74f53d66b57a1907bb148799599
targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis_nvic.c
targets/TARGET_NUVOTON/TARGET_NANO100/device/cmsis_nvic.c
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* mbed Microcontroller Library * Copyright (c) 2015-2017 Nuvoton * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Add guard code to prevent from relocating vector table
[NANO130] Add guard code to prevent from relocating vector table
C
apache-2.0
kjbracey-arm/mbed,svogl/mbed-os,karsev/mbed-os,ryankurte/mbed-os,svogl/mbed-os,CalSol/mbed,infinnovation/mbed-os,karsev/mbed-os,betzw/mbed-os,betzw/mbed-os,catiedev/mbed-os,HeadsUpDisplayInc/mbed,andcor02/mbed-os,c1728p9/mbed-os,ryankurte/mbed-os,catiedev/mbed-os,svogl/mbed-os,ryankurte/mbed-os,mbedmicro/mbed,catiedev/...
a394a676b804449c2c939a26ee394a025f7c325c
src/cpu/register.h
src/cpu/register.h
#ifndef EMULATOR_REGISTER_H #define EMULATOR_REGISTER_H #include <cstdint> template <typename T> class Register { public: Register() {}; void set(const T new_value) { val = new_value; }; T value() const { return val; }; void increment() { val += 1; }; void decrement() { val -= 1; }; private: ...
#ifndef EMULATOR_REGISTER_H #define EMULATOR_REGISTER_H #include <cstdint> template <typename T> class Register { public: Register() {}; void set(const T new_value) { val = new_value; }; T value() const { return val; }; void increment() { val += 1; }; void decrement() { val -= 1; }; private: ...
Add the mini offset utility class
Add the mini offset utility class
C
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
c02cabaab61367862776ad1d612161d4d623f7a0
src/DynamicMemory.h
src/DynamicMemory.h
// // Created by James Telfer on 30/07/2017. // #ifndef C_11_FEATURE_DEMO_DYNAMICMEMORY_H #define C_11_FEATURE_DEMO_DYNAMICMEMORY_H #include "Thing.h" class DynamicMemory { public: DynamicMemory(); void uniquePointers(); void sharedPointers(); void makeShared(); private: void outputThing(const T...
// // Created by James Telfer on 30/07/2017. // #ifndef C_11_FEATURE_DEMO_DYNAMICMEMORY_H #define C_11_FEATURE_DEMO_DYNAMICMEMORY_H #include <memory> #include "Thing.h" class DynamicMemory { public: DynamicMemory(); void uniquePointers(); void sharedPointers(); void makeShared(); private: void ou...
Add header for smart pointers
Add header for smart pointers
C
apache-2.0
jameswtelfer/c11_feature_demo
3f627077a9f2a5fd13234c208525aa61f645ae94
lesson10/app/src/main/jni/GLES2Lesson.h
lesson10/app/src/main/jni/GLES2Lesson.h
// // Created by monty on 23/11/15. // #ifndef LESSON02_GLES2LESSON_H #define LESSON02_GLES2LESSON_H namespace odb { class GLES2Lesson { void fetchShaderLocations(); void setPerspective(); void prepareShaderProgram(); void clearBuffers(); void resetTransformMatrices()...
// // Created by monty on 23/11/15. // #ifndef LESSON02_GLES2LESSON_H #define LESSON02_GLES2LESSON_H namespace odb { class GLES2Lesson { void fetchShaderLocations(); void setPerspective(); void prepareShaderProgram(); void clearBuffers(); void resetTransformMatrices()...
Make the constructor for the Lesson 10 explicit
Make the constructor for the Lesson 10 explicit While this has little effect here, it's a good practice worth getting used to. I still have to do the same with all the other classes.
C
bsd-2-clause
TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20
346e095d25d70cd81ece89e08a241b4f77ab9582
src/file/keydb.h
src/file/keydb.h
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { }, }; static const uint8_t internal_pk_list[][16] = { { }, }; static const uint8_t internal_hc_list[][112] = { { }, }; /* customize this function to "hide" the keys in the binary */...
/* encrypted keys */ static const uint32_t internal_device_number = 0; static const uint8_t internal_dk_list[][21] = { { 0 }, }; static const uint8_t internal_pk_list[][16] = { { 0 }, }; static const uint8_t internal_hc_list[][112] = { { 0 }, }; /* customize this function to "hide" the keys in the binary */...
Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
Fix MSVC error C2133 : unknown size of multi-dimensional static const arrays (despite supposed support of C99). Have not confirmed if this breaks anything yet.
C
lgpl-2.1
mwgoldsmith/aacs,mwgoldsmith/aacs
5d6e6d2e8f0edf69301bddd76ae3e0f651d037f1
src/native/log.h
src/native/log.h
#include <assert.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "const.h" extern void logop(int32_t, int32_t); extern void dbg_trace(void); #define dbg_log(...) { if(DEBUG) { printf(__VA_ARGS__); } } #define dbg_assert(condition) { if(DEBUG) { if(!(condition)) dbg_log(#condition); assert(con...
#include <assert.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "const.h" extern void logop(int32_t, int32_t); extern void dbg_trace(void); #define dbg_log(...) { if(DEBUG) { printf(__VA_ARGS__); } } #define dbg_trace(...) { if(DEBUG) { dbg_trace(__VA_ARGS__); } } #define dbg_assert(conditio...
Remove dbg_trace from non-debug builds
Remove dbg_trace from non-debug builds
C
bsd-2-clause
copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86
57f0cb6232cef023a352bd120a328c520da9f211
test2/inline/static_local.c
test2/inline/static_local.c
// RUN: %check %s // extern extern inline int f() { static int i; return i++; } // static static inline int h() { static int i; return i++; } // neither inline int g() { static int i; // CHECK: warning: static variable in pure-inline function - may differ per file return i++; } // neither, but const inline in...
// RUN: %check %s // extern extern inline int f() { static int i; return i++; } // static static inline int h() { static int i; return i++; } // neither inline int g() { static int i; // CHECK: warning: mutable static variable in pure-inline function - may differ per file return i++; } // neither, but const i...
Fix inline static local warning
Fix inline static local warning
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
b05adaf03b8889da09568b8cf9f1f93d90445f30
src/shared/log.h
src/shared/log.h
/* * This file is part of buxton. * * Copyright (C) 2013 Intel Corporation * * buxton is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any...
/* * This file is part of buxton. * * Copyright (C) 2013 Intel Corporation * * buxton is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any...
Add line and function details to buxton_debug()
Add line and function details to buxton_debug()
C
lgpl-2.1
sofar/buxton,sofar/buxton
40cb4828db633619fe71b721fa6440d26e0347bc
src/configuration.h
src/configuration.h
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 9 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "APM P...
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 9 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "APM P...
Change from 3drobotics to diydrones for COMPANYNAME
Change from 3drobotics to diydrones for COMPANYNAME
C
agpl-3.0
hejunbok/apm_planner,sutherlandm/apm_planner,LIKAIMO/apm_planner,sutherlandm/apm_planner,mirkix/apm_planner,abcdelf/apm_planner,xros/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,mirkix/apm_planner,diydrones/apm_planner,LittleBun/apm_planner,labtoast/apm...
8c968d0d3bcd83c42b056b290aae5aba9d229c1d
test/periodic/NdbRadioMult.h
test/periodic/NdbRadioMult.h
#ifndef RADIOMULT_H #define RADIOMULT_H #include "NdbMF.h" /* ========= NdbRadioMult ============ */ class NdbRad ioMult : public NdbMF { protected: public: NdbRadioMult() : NdbMF(9, "Multiplicities for radioactive nuclide production") {} ~NdbRadioMult() {} ClassDef(NdbRadioMult,1) }; // NdbRadioMul...
#ifndef RADIOMULT_H #define RADIOMULT_H #include "NdbMF.h" /* ========= NdbRadioMult ============ */ class NdbRadioMult : public NdbMF { protected: public: NdbRadioMult() : NdbMF(9, "Multiplicities for radioactive nuclide production") {} ~NdbRadioMult() {} ClassDef(NdbRadioMult,1) }; // NdbRadioMult ...
Fix typo in tab removal
Fix typo in tab removal
C
lgpl-2.1
CristinaCristescu/root,dfunke/root,abhinavmoudgil95/root,beniz/root,abhinavmoudgil95/root,jrtomps/root,zzxuanyuan/root,mhuwiler/rootauto,nilqed/root,0x0all/ROOT,pspe/root,buuck/root,gbitzes/root,esakellari/root,BerserkerTroll/root,abhinavmoudgil95/root,mkret2/root,satyarth934/root,omazapa/root,CristinaCristescu/root,ma...
428dd80dfb94c20ce6a69138f32c9727b4490a14
src/qt/modaloverlay.h
src/qt/modaloverlay.h
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_MODALOVERLAY_H #define BITCOIN_QT_MODALOVERLAY_H #include <QDateTime> #include <QWidget> //! The required del...
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_MODALOVERLAY_H #define BITCOIN_QT_MODALOVERLAY_H #include <QDateTime> #include <QWidget> #include <atomic> //...
Add a missing atomic include
Add a missing atomic include This prevent this error in Ubuntu xenial and trusty while compling bitcoin-qt: In file included from qt/modaloverlay.cpp:5:0: qt/modaloverlay.h:42:10: error: ‘atomic’ in namespace ‘std’ does not name a template type std::atomic<int> bestBlockHeight{0}; // best known height (based on ...
C
mit
BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited
85c15fe657b4bc21a1e39f192e03bc06a759f15d
ipcrypt.h
ipcrypt.h
#ifndef ipcrypt_H #define ipcrypt_H #define IPCRYPT_BYTES 4 #define IPCRYPT_KEYBYTES 16 int ipcrypt_encrypt(unsigned char out[IPCRYPT_BYTES], const unsigned char in[IPCRYPT_BYTES], const unsigned char key[IPCRYPT_KEYBYTES]); int ipcrypt_decrypt(unsigned char out[IPCRYPT_BYTES...
#ifndef ipcrypt_H #define ipcrypt_H #define IPCRYPT_BYTES 4 #define IPCRYPT_KEYBYTES 16 #ifdef __cplusplus extern "C" { #endif int ipcrypt_encrypt(unsigned char out[IPCRYPT_BYTES], const unsigned char in[IPCRYPT_BYTES], const unsigned char key[IPCRYPT_KEYBYTES]); int ipcrypt...
Make inclusion from C++ projects easier
Make inclusion from C++ projects easier This code adds a conditional extern "C" statement - which most C libraries do as a courtesy for C++ users.
C
isc
jedisct1/c-ipcrypt
1a6015e73fbbfef228b0aa91827a0ad2da3deba0
vm/vm_internal.h
vm/vm_internal.h
#ifndef _INCLUDE_VM_INTERNAL_H #define _INCLUDE_VM_INTERNAL_H #include "vm.h" #include "defs.h" #include "heap.h" typedef struct { vm_value reg[num_regs]; int return_address; int result_register; //TODO type for this should be heap_address int spilled_arguments; // Used for over-saturated calls. } stack_f...
#ifndef _INCLUDE_VM_INTERNAL_H #define _INCLUDE_VM_INTERNAL_H #include "vm.h" #include "defs.h" #include "heap.h" typedef struct { vm_value reg[num_regs]; int return_address; int result_register; heap_address spilled_arguments; // Used for over-saturated calls. } stack_frame ; typedef struct { stack_f...
Fix type for spilled arguments
Fix type for spilled arguments
C
mit
arne-schroppe/dash,arne-schroppe/dash
aaa0a5cd4e401bde4fb3691dd4e6c70a5c61e031
include/version.h
include/version.h
/* * Author: Brendan Le Foll <brendan.le.foll@intel.com> * Copyright (c) 2014 Intel Corporation. * * SPDX-License-Identifier: MIT */ #pragma once #ifdef __cplusplus extern "C" { #endif const char* gVERSION; const char* gVERSION_SHORT; #ifdef __cplusplus } #endif
/* * Author: Brendan Le Foll <brendan.le.foll@intel.com> * Copyright (c) 2014 Intel Corporation. * * SPDX-License-Identifier: MIT */ #pragma once #ifdef __cplusplus extern "C" { #endif extern const char* gVERSION; extern const char* gVERSION_SHORT; #ifdef __cplusplus } #endif
Declare gVERSION global as 'extern'.
include: Declare gVERSION global as 'extern'. Fixes build with '-fno-common'. Signed-off-by: Thomas Ingleby <bb80a585db4bdbe09547a7483d1a31841fd0e0e8@intel.com>
C
mit
g-vidal/mraa,g-vidal/mraa,g-vidal/mraa,g-vidal/mraa,g-vidal/mraa
13d6d4e18d98f7c2d496f3454216d96a4d8e95d1
WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h
WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h
#import <FBSnapshotTestCase/FBSnapshotTestCase.h> #import "UIApplication+VisualTestUtils.h" /** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyVi...
#import <FBSnapshotTestCase/FBSnapshotTestCase.h> #import "UIApplication+VisualTestUtils.h" /** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyVi...
Add slight tolerance for image differences to visual test macro.
Add slight tolerance for image differences to visual test macro.
C
mit
wikimedia/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbo...
1b91e278ae59e4f4f1f6a8fe37bd20e527a4975e
Analytics/Integrations/GoogleAnalytics/SEGGoogleAnalyticsIntegration.h
Analytics/Integrations/GoogleAnalytics/SEGGoogleAnalyticsIntegration.h
// GoogleAnalyticsIntegration.h // Copyright (c) 2014 Segment.io. All rights reserved. #import <Foundation/Foundation.h> #import "SEGAnalyticsIntegration.h" @interface SEGGoogleAnalyticsIntegration : SEGAnalyticsIntegration @property(nonatomic, copy) NSString *name; @property(nonatomic, assign) BOOL valid; @propert...
// GoogleAnalyticsIntegration.h // Copyright (c) 2014 Segment.io. All rights reserved. #import <Foundation/Foundation.h> #import "SEGAnalyticsIntegration.h" #import "SEGEcommerce.h" @interface SEGGoogleAnalyticsIntegration : SEGAnalyticsIntegration <SEGEcommerce> @property(nonatomic, copy) NSString *name; @property(...
Add ecommerce protocol to ga
Add ecommerce protocol to ga
C
mit
jtomson-mdsol/analytics-ios,jtomson-mdsol/analytics-ios,rudywen/analytics-ios,dbachrach/analytics-ios,graingert/analytics-ios,jonathannorris/analytics-ios,orta/analytics-ios,segmentio/analytics-ios,operator/analytics-ios,graingert/analytics-ios,djfink-carglass/analytics-ios,jonathannorris/analytics-ios,jlandon/analytic...
bafe09faaffee154ccc9225bacb526517e555882
process.h
process.h
// // process.h // Project3 // // Created by Stratton Aguilar on 7/3/14. // Copyright (c) 2014 Stratton Aguilar. All rights reserved. // #ifndef Project3_process_h #define Project3_process_h typedef struct { int processNum; int arrivalTime; int lifeTime; int memReq; } PROCESS; #endif
// // process.h // Project3 // // Created by Stratton Aguilar on 7/3/14. // Copyright (c) 2014 Stratton Aguilar. All rights reserved. // #ifndef Project3_process_h #define Project3_process_h typedef struct { int processNum; int arrivalTime; int lifeTime; int memReq; int time_left; int is_...
Add time_left and is_active to the proc struct
Add time_left and is_active to the proc struct
C
mit
ciarand/operating-systems-memory-management-assignment
f0daba127006281d2ff843f88a7e93928e336350
src/greuh_liberation.Default/meta/classnames/support/ammobox_nato_pacific.h
src/greuh_liberation.Default/meta/classnames/support/ammobox_nato_pacific.h
["Box_T_NATO_Wps_F",5,0,0], ["Box_T_NATO_WpsSpecial_F",5,0,0],
["Box_T_NATO_Wps_F",0,0,0], ["Box_T_NATO_WpsSpecial_F",0,0,0],
Remove cost from empty ammoboxes till they can be recycled
Remove cost from empty ammoboxes till they can be recycled
C
mit
fparma/liberation,fparma/liberation,fparma/liberation
1776b4704a26b3cf388e66e2e9f945dde1ba57cb
src/clock_posix.c
src/clock_posix.c
#include <time.h> #include "clock.h" #include "clock_type.h" extern int clock_init(struct SPDR_Clock **clockp, struct SPDR_Allocator *allocator) { struct timespec res; if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) { /* unknown clock or insufficient resolution */...
#include <time.h> #include "clock.h" #include "clock_type.h" extern int clock_init(struct SPDR_Clock **clockp, struct SPDR_Allocator *allocator) { struct timespec res; if (clock_getres(CLOCK_MONOTONIC, &res) != 0 || res.tv_nsec > 1000) { /* unknown clock or insu...
Fix signature of clock_init for posix
Fix signature of clock_init for posix
C
mit
uucidl/uu.spdr,uucidl/uu.spdr,uucidl/uu.spdr
0f4982691eaf60f6b23e9f7d02c63ee3b9cb0460
xlat.h
xlat.h
#ifndef STRACE_XLAT_H struct xlat { unsigned int val; const char *str; }; # define XLAT(val) { (unsigned)(val), #val } # define XLAT_PAIR(val, str) { (unsigned)(val), str } # define XLAT_END { 0, 0 } #endif
#ifndef STRACE_XLAT_H struct xlat { unsigned int val; const char *str; }; # define XLAT(val) { (unsigned)(val), #val } # define XLAT_PAIR(val, str) { (unsigned)(val), str } # define XLAT_TYPE(type, val) { (type)(val), #val } # define XLAT_TYPE_PAIR(val, str) { (type)(val), str } # define XLAT_END { ...
Introduce XLAT_TYPE and XLAT_TYPE_PAIR macros
Introduce XLAT_TYPE and XLAT_TYPE_PAIR macros * xlat.h (XLAT_TYPE): New macro, similar to XLAT but casts to the specified type instead of unsigned int. (XLAT_TYPE_PAIR): New macro, similar to XLAT_PAIR but casts to the specified type instead of unsigned int.
C
bsd-3-clause
Saruta/strace,Saruta/strace,cuviper/strace,Saruta/strace,Saruta/strace,cuviper/strace,Saruta/strace,cuviper/strace,cuviper/strace,cuviper/strace
37656881f6360da03ecf7c4cbcc51f7a0eae883c
Sensorama/Sensorama/SRDataModel.h
Sensorama/Sensorama/SRDataModel.h
// // SRDataModel.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 19/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #import <Foundation/Foundation.h> #import "Realm/Realm.h" @interface SRDataPoint : RLMObject @property NSNumber<RLMInt> *accX; @property NSNumber<RLMInt> *ac...
// // SRDataModel.h // Sensorama // // Created by Wojciech Adam Koszek (h) on 19/04/2016. // Copyright © 2016 Wojciech Adam Koszek. All rights reserved. // #import <Foundation/Foundation.h> #import "Realm/Realm.h" @interface SRDataPoint : RLMObject @property NSNumber<RLMInt> *accX; @property NSNumber<RLMInt> *ac...
Add arrays to the data model.
Add arrays to the data model.
C
bsd-2-clause
wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios
fa8de09edc9ec4e6d171df80f746174a0ec58afb
src/util/result.h
src/util/result.h
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_UTIL_RESULT_H #define BITCOIN_UTIL_RESULT_H #include <util/translation.h> #include <variant> /* * 'BResult' is...
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_UTIL_RESULT_H #define BITCOIN_UTIL_RESULT_H #include <util/translation.h> #include <variant> /* * 'BResult' i...
Prepare BResult for non-copyable types
Prepare BResult for non-copyable types
C
mit
fujicoin/fujicoin,lateminer/bitcoin,lateminer/bitcoin,jamesob/bitcoin,namecoin/namecore,lateminer/bitcoin,kallewoof/bitcoin,fujicoin/fujicoin,AkioNak/bitcoin,mruddy/bitcoin,jamesob/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,fanquake/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,namecoin/namecoin-core,fujicoin/fujicoin,partic...
2788f282bbd2e945c1e77c94bc45b8ece5f9b4db
src/Subtitles/paletteinfo.h
src/Subtitles/paletteinfo.h
/* * BDSup2Sub++ (C) 2012 Adam T. * Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef) * and Copyright 2012 Miklos Juhasz (mjuhasz) * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
/* * BDSup2Sub++ (C) 2012 Adam T. * Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef) * and Copyright 2012 Miklos Juhasz (mjuhasz) * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
Change default values to -1.
Change default values to -1.
C
apache-2.0
darealshinji/BDSup2SubPlusPlus,amichaelt/BDSup2SubPlusPlus,amichaelt/BDSup2SubPlusPlus,darealshinji/BDSup2SubPlusPlus
f94c619e73b934b8f32edf303cc8998670f7cc64
chrome/common/all_messages.h
chrome/common/all_messages.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Multiply-included file, hence no include guard. // Inclusion of all message files present in the system. Keep this file // up-to-date when adding ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Multiply-included file, hence no include guard. // Inclusion of all message files present in the system. Keep this file // up-to-date when adding ...
Fix build break from bad merge
Fix build break from bad merge git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@106741 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
hujiajie/pa-chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,dushu1203/chromium.src,robclark/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,keishi/chromium,...
2c5ea3c7a451cf4c0e4612be05ed67bdf6ae86e6
src/main/c/src/DeviceList.c
src/main/c/src/DeviceList.c
/* * Copyright (C) 2013 Klaus Reimer (k@ailis.de) * See COPYING file for copying conditions */ #include "DeviceList.h" #include "Device.h" void setDeviceList(JNIEnv* env, libusb_device** list, int size, jobject object) { SET_POINTER(env, list, object, "deviceListPointer"); jclass cls = (*env)->GetObjectCl...
/* * Copyright (C) 2013 Klaus Reimer (k@ailis.de) * See COPYING file for copying conditions */ #include "DeviceList.h" #include "Device.h" void setDeviceList(JNIEnv* env, libusb_device** list, int size, jobject object) { SET_POINTER(env, list, object, "deviceListPointer"); jclass cls = (*env)->GetObjectCl...
Set size to zero on reset. Else getting the size is incorrect, and later when checking in get() it would pass the check and you'd access a NULL ptr.
Set size to zero on reset. Else getting the size is incorrect, and later when checking in get() it would pass the check and you'd access a NULL ptr.
C
mit
zodsoft/usb4java,usb4java/usb4java
5b6d5b3f4b105ca4a7229e76895304e038457dcb
sys/dev/advansys/advmcode.h
sys/dev/advansys/advmcode.h
/* * Exported interface to downloadable microcode for AdvanSys SCSI Adapters * * $FreeBSD$ * * Obtained from: * * Copyright (c) 1995-1999 Advanced System Products, Inc. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/* * Exported interface to downloadable microcode for AdvanSys SCSI Adapters * * $FreeBSD$ * * Obtained from: * * Copyright (c) 1995-1999 Advanced System Products, Inc. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
Make the extern for adv_mcode match the reality: it's u_int8_t, but probably unendiansafely used as u_int16_t.
Make the extern for adv_mcode match the reality: it's u_int8_t, but probably unendiansafely used as u_int16_t.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
715c5e6ae0e5c693c168c8f65eb375c85b682887
append_seek_write.c
append_seek_write.c
/* Exercise 5-2 */ #include <unistd.h> #include <fcntl.h> #include "tlpi_hdr.h" int main (int argc, char *argv[]) { if (argc != 2) { usageErr("%s filename", argv[0]); } int fd = open(argv[1], O_WRONLY | O_APPEND | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); if (fd == -1) { errExit("open"); } char s[] = "abc...
/* Exercise 5-2 */ #include <unistd.h> #include <fcntl.h> #include "tlpi_hdr.h" int main (int argc, char *argv[]) { if (argc != 2) { usageErr("%s filename", argv[0]); } int fd = open(argv[1], O_WRONLY | O_APPEND | O_CREAT | O_TRUNC, S_IWUSR | S_IRUSR); if (fd == -1) { errExit("open"); } char s[] = "abc...
Add missing close for file descriptor
Add missing close for file descriptor
C
mit
timjb/tlpi-exercises,timjb/tlpi-exercises,dalleng/tlpi-exercises,dalleng/tlpi-exercises
b14ece116ed3e4b18d59b645e77b3449fac51137
tests/unit/test-unit-main.c
tests/unit/test-unit-main.c
#include <config.h> #include <dlfcn.h> #include <test-fixtures/test-unit.h> int main (int argc, char **argv) { const CoglUnitTest *unit_test; int i; if (argc != 2) { g_printerr ("usage %s UNIT_TEST\n", argv[0]); exit (1); } /* Just for convenience in case people try passing the wrapper ...
#include <config.h> #include <gmodule.h> #include <test-fixtures/test-unit.h> int main (int argc, char **argv) { GModule *main_module; const CoglUnitTest *unit_test; int i; if (argc != 2) { g_printerr ("usage %s UNIT_TEST\n", argv[0]); exit (1); } /* Just for convenience in case peopl...
Use GModule instead of libdl to load unit test symbols
Use GModule instead of libdl to load unit test symbols Previously the unit tests were using libdl without directly linking to it. It looks like this ends up working because one of Cogl's dependencies ends up pulling adding -ldl via libtool. However in some configurations it looks like this wasn't happening. To avoid ...
C
lgpl-2.1
gcampax/cogl,gcampax/cogl,djdeath/cogl,gcampax/cogl,djdeath/cogl,djdeath/cogl,gcampax/cogl
2354e794031cec8bcb654e676338bc0ddcbb71d6
storageapi/src/vespa/storageapi/mbusprot/protobuf_includes.h
storageapi/src/vespa/storageapi/mbusprot/protobuf_includes.h
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Disable warnings emitted by protoc generated files #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsuggest-override" #include "feed.pb.h" #include "visiting.pb.h" #include "maintenance.pb....
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once // Disable warnings emitted by protoc generated files #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsuggest-override" #include "feed.pb.h" #include "visiting.pb.h" #include "m...
Add missing header pragma directive
Add missing header pragma directive
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
ca35f85329122c44b55c97ffb99caac7fcff818d
chrome/app/scoped_ole_initializer.h
chrome/app/scoped_ole_initializer.h
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #define CHROME_APP_SCOPED_OLE_INITIALIZER_H_ // Wraps OLE initialization in a cross-platform class meant...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #define CHROME_APP_SCOPED_OLE_INITIALIZER_H_ #include "base/logging.h" #include "build/build_config.h" ...
Make ScopedOleInitializer work on windows if you aren't including build_config already.
Make ScopedOleInitializer work on windows if you aren't including build_config already. BUG=none TEST=none Review URL: http://codereview.chromium.org/19640 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@8835 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
ChromiumWebApps/chromium,rogerwang/chromium,M4sse/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chrom...
b311550d076fae4341d8ea73cd6227f1c37c3732
Headers/breakout.h
Headers/breakout.h
/* The Breakout class holds all of the game logic. It is derived from the QWidget class to allow it to display in a Qt window. It handles all input events, game updates, and painting events. It also handles the current game state. */ #ifndef BREAKOUT_H #define BREAKOUT_H #include "ball.h" #include "brick.h" #i...
/* The Breakout class holds all of the game logic. It is derived from the QWidget class to allow it to display in a Qt window. It handles all input events, game updates, and painting events. It also handles the current game state. */ #ifndef BREAKOUT_H #define BREAKOUT_H #include "ball.h" #include "brick.h" #i...
Convert bricks to a std::vector
Convert bricks to a std::vector
C
mit
maytim/Basic-Qt-Collision-Example
272ae9518abe3815f1651a730f14b8c1316f96f3
C/header.h
C/header.h
/*! * @brief Template C-header file * * This is a template C-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H #if defined(_MSC_VER) # define <+FILE_CAPITAL+>_DLLEXPORT __declspec(dllexport) #elif defined(__GNUC__...
/*! * @brief Template C-header file * * This is a template C-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H #if defined(_MSC_VER) # define <+FILE_CAPITAL+>_DLLEXPORT __declspec(dllexport) #elif defined(__GNUC__...
Add macro for DLL exportation
Add macro for DLL exportation
C
mit
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate
713c8327fadf0ea96a82a9f0216042e8b88609c0
eval/src/vespa/eval/instruction/simple_join_count.h
eval/src/vespa/eval/instruction/simple_join_count.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/eval/eval/tensor_function.h> namespace vespalib::eval { /** * Tensor function that will count the number of cells in the result * of a join between two tensors with full mapped ove...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/eval/eval/tensor_function.h> namespace vespalib::eval { /** * Tensor function that will count the number of cells in the result * of a join between two tensors with full mapped ove...
Adjust SimpleJoinCount constructor argument type.
Adjust SimpleJoinCount constructor argument type.
C
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
eaac4a2d7dd7663451775f0eeb72a800ad1f99f5
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Add flag to stage api change am: f83df73740
Add flag to stage api change am: f83df73740 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/skia/+/13451544 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2856cdd8b51312e17468c6b5c5cdd98798d72f60
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
af37feed18a95f15ca5ec798ab29e4351c8b335c
k-means/main.c
k-means/main.c
// // main.c // k-means // // Created by Jamie Bullock on 24/08/2014. // Copyright (c) 2014 Jamie Bullock. All rights reserved. // #include "km.h" #include <stdio.h> int main(int argc, const char * argv[]) { km_textfile textfile = km_textfile_new(); RETURN_ON_ERROR(km_textfile_init(textfile)); ...
// // main.c // k-means // // Created by Jamie Bullock on 24/08/2014. // Copyright (c) 2014 Jamie Bullock. All rights reserved. // #include "km.h" #include <stdio.h> enum cluster_id { Adam, Bob, Charley, David, Edward, km_num_cluster_ids_ }; void set_initial_cluster_centroids(km_pointlis...
Add setup code for initial centroids
Add setup code for initial centroids
C
mit
jamiebullock/k-means,jamiebullock/k-means
5251cdd753a244ce7e1b55d397831d31ad75934c
Matrix2D.h
Matrix2D.h
/* Copyright 2011 Michael Fortin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* Copyright 2011 Michael Fortin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
Multiply now member of class - link errors when included in multiple cpp files
Multiply now member of class - link errors when included in multiple cpp files
C
apache-2.0
mifortin/AgilePod,mifortin/AgilePod
31f6b273a304341c71bbae34ba4b665d59b3ab72
include/platform/time_mach.h
include/platform/time_mach.h
#ifndef __TIME_MACH_H__ #define __TIME_MACH_H__ #include "config.h" // macros, bool, uint[XX]_t #include <mach/clock.h> // clock_serv_t, mach_timespec_t, etc. #include <mach/mach.h> // mach_port_deallocate static inline uint64_t get_time(void) { static float adj_const = 0.0F; // Cache the value (it doesn't change...
#ifndef __TIME_MACH_H__ #define __TIME_MACH_H__ #include "config.h" // macros, bool, uint[XX]_t #include <mach/clock.h> // clock_serv_t, mach_timespec_t, etc. #include <mach/mach.h> // mach_port_deallocate #include <mach/mach_time.h> static inline uint64_t get_time(void) { static float adj_const = 0.0F; // Cache ...
Fix build on OS X.
Fix build on OS X.
C
bsd-3-clause
foxkit-us/supergameherm,supergameherm/supergameherm
905628048f5306cb5cc96e24eda40e86c6b44c62
src/dialogwindow.h
src/dialogwindow.h
#pragma once #include <nanogui/screen.h> #include <nanogui/window.h> #include <nanogui/theme.h> class EditorGUI; class Structure; class DialogWindow : public nanogui::Window { public: DialogWindow(EditorGUI *screen, nanogui::Theme *theme); nanogui::Window *getWindow() { return this; } Structure *structure() { re...
#pragma once #include <nanogui/screen.h> #include <nanogui/window.h> #include <nanogui/theme.h> class EditorGUI; class Structure; class DialogWindow : public nanogui::Window { public: DialogWindow(EditorGUI *screen, nanogui::Theme *theme); nanogui::Window *getWindow() { return this; } Structure *structure() { re...
Fix crash due to uninitialised pointer when displaying a dialog
Fix crash due to uninitialised pointer when displaying a dialog
C
bsd-3-clause
latproc/humid,latproc/humid
576dcaaa52ba9ca3550d887e358faa0e31c8cf6b
OrbitCaptureGgpClient/include/OrbitCaptureGgpClient/OrbitCaptureGgpClient.h
OrbitCaptureGgpClient/include/OrbitCaptureGgpClient/OrbitCaptureGgpClient.h
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_ #define ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_ #include <string> #include <ve...
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_ #define ORBIT_CAPTURE_GGP_CLIENT_ORBIT_CAPTURE_GGP_CLIENT_H_ #include <memory> #include <st...
Solve build error in presubmit
Solve build error in presubmit Missing include in file.
C
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
b08be4f10886231672844974d8671ddd47276dc7
generic/include/clc/clcfunc.h
generic/include/clc/clcfunc.h
#define _CLC_OVERLOAD __attribute__((overloadable)) #define _CLC_DECL #define _CLC_DEF __attribute__((always_inline)) #define _CLC_INLINE __attribute__((always_inline)) static inline
#define _CLC_OVERLOAD __attribute__((overloadable)) #define _CLC_DECL #define _CLC_DEF __attribute__((always_inline)) #define _CLC_INLINE __attribute__((always_inline)) inline
Remove the static keyword from the _CLC_INLINE macro
Remove the static keyword from the _CLC_INLINE macro static functions are not allowed in OpenCL C git-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@184986 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc,llvm-mirror/libclc
686d82dc92be619255669c99ad2d67eb3f8850b0
src/math/p_sinh.c
src/math/p_sinh.c
#include <pal.h> /* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z; p_exp_f32(&z, &exp_z, 1); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to...
#include <pal.h> #include "p_exp.h" /* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z = _p_exp(z); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer ...
Use the inline exponential function.
math:sinh: Use the inline exponential function. Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
C
apache-2.0
debug-de-su-ka/pal,mateunho/pal,Adamszk/pal3,olajep/pal,Adamszk/pal3,eliteraspberries/pal,aolofsson/pal,8l/pal,parallella/pal,eliteraspberries/pal,8l/pal,aolofsson/pal,aolofsson/pal,8l/pal,Adamszk/pal3,parallella/pal,aolofsson/pal,Adamszk/pal3,mateunho/pal,olajep/pal,olajep/pal,debug-de-su-ka/pal,olajep/pal,debug-de-su...
f3f4b0e1ab4904f6a1d9011d9abc7735e65b458c
nbdump.c
nbdump.c
#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <net/ethernet.h> #include <unistd.h> #include <arpa/inet.h> // The default size is enought to hold a whole ethernet frame (< 1524 bytes) #ifndef PACKET_BUFFER_SIZE #define PACKET_BUFFER_SIZE 2048 #endif static void print_p...
#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <net/ethernet.h> #include <unistd.h> #include <arpa/inet.h> // The default size is enought to hold a whole ethernet frame (< 1524 bytes) #ifndef PACKET_BUFFER_SIZE #define PACKET_BUFFER_SIZE 2048 #endif static void print_p...
Fix indentation by using tabs only
Fix indentation by using tabs only
C
mit
grn/netbox,grn/netbox
d4441a0e7d10767b97776fd3046382492132f407
src/Article.h
src/Article.h
#ifndef _ARTICLE_H #define _ARTICLE_H #include <string> #include <vector> /*! * represents a Wikipedia (Mediawiki) and its links */ class Article { public: typedef std::vector<Article*> ArticleLinkStorage; typedef std::vector<Article*>::const_iterator ArticleLinkIterator; /*! Create a n...
#ifndef _ARTICLE_H #define _ARTICLE_H #include <string> #include <vector> /*! * represents a Wikipedia (Mediawiki) and its links */ class Article { public: //! representation of links to other articles typedef std::vector<Article*> ArticleLinkStorage; //! representation of iterator over ...
Add modifying article link iterator typedef
Add modifying article link iterator typedef
C
mit
dueringa/WikiWalker
6b3e11bc4cf463b18cd091b5e083d80ec8458e78
src/logging.c
src/logging.c
#include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/time.h> void rsp_log(char* format, ...) { char without_ms[64]; char with_ms[64]; struct timeval tv; struct tm *tm; gettimeofday(&tv, NULL); if ((tm = localtime(&tv...
#include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/time.h> void rsp_log(char* format, ...) { char without_ms[64]; char with_ms[64]; struct timeval tv; struct tm *tm; gettimeofday(&tv, NULL); if ((tm = localtime(&tv...
Add a newline to the end of our log messages
Add a newline to the end of our log messages
C
mit
gpjt/rsp,gpjt/rsp,gpjt/rsp
95ee667503b8b3123951242e3f7b93598cb9f9b9
test/CodeGen/2003-08-18-SigSetJmp.c
test/CodeGen/2003-08-18-SigSetJmp.c
// RUN: %clang -S -emit-llvm %s -o /dev/null // XFAIL: mingw,win32 #include <setjmp.h> sigjmp_buf B; int foo() { sigsetjmp(B, 1); bar(); }
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o /dev/null #define _JBLEN ((9 * 2) + 3 + 16) typedef int sigjmp_buf[_JBLEN + 1]; int sigsetjmp(sigjmp_buf env, int savemask); sigjmp_buf B; int foo() { sigsetjmp(B, 1); bar(); }
Remove the need for a header and specify a triple so that the type sizes make sense.
Remove the need for a header and specify a triple so that the type sizes make sense. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136309 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
9be47d768eb967add11f6ac218ccb49973f9d5ee
src/main.c
src/main.c
int main() { return 0; }
#include <fcntl.h> #include <stdio.h> #include <unistd.h> const char usage[] = "Usage: %s <filenname>\n"; #define READ_SIZE 2048 int main(int argc, char *argv[]) { if (argc != 2) { printf(usage, argv[0]); return 1; } //FILE *file = fopen(argv[1], "r"); int fd = open(argv[1], O_RDONLY); char buf[READ_SIZE];...
Read file passed as argv[1]
Read file passed as argv[1]
C
mit
orodley/imgprint
070f63791af1c9190388ee715a2c9c0b68bc9b2c
machine/include/diag.h
machine/include/diag.h
#ifndef KERN_DIAG #define KERN_DIAG #include <stdarg.h> void panic(const char* diagnostic_message, ...); void shutdown() __attribute__((noreturn)); extern void hang_machine() __attribute__((noreturn)); #ifdef DEBUG #define assert(x) if (!(x)) panic("Assertion failed: " __FILE__ ":%u: " #x, __LINE__) #else #define a...
#ifndef KERN_DIAG #define KERN_DIAG #include <stdarg.h> void panic(const char* diagnostic_message, ...) __attribute__((noreturn)); void shutdown() __attribute__((noreturn)); extern void hang_machine() __attribute__((noreturn)); #ifdef DEBUG #define assert(x) if (!(x)) panic("Assertion failed: " __FILE__ ":%u: " #x,...
Declare panic function as noreturn
machine: Declare panic function as noreturn
C
bsd-2-clause
cksystemsteaching/selfie,cksystemsteaching/selfie,cksystemsteaching/selfie