commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
c031eb0a246c091c297009129b527e3e226027ef
tests/regression/49-expsplit/04-multi-split.c
tests/regression/49-expsplit/04-multi-split.c
// PARAM: --set ana.activated[+] expsplit #include <stddef.h> #include <assert.h> #include <goblint.h> int main() { int r, r2; // rand int x, y, z; __goblint_split_begin(x); __goblint_split_begin(y); if (r) { x = 1; if (r2) { y = 1; z = 1; } else { y = 2; z = 2; }...
Test expsplit with multiple simultaneous splits
Test expsplit with multiple simultaneous splits
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4aa31926c882067cf65c9230e9cfa61d575ae1aa
inc/cc.h
inc/cc.h
/* See LICENSE file for copyright and license details. */ #include <sys/types.h> #ifndef NDEBUG extern int debug; #define DBG(fmt, ...) dbg(fmt, __VA_ARGS__) #define DBGON() (debug = 1) #else #define DBG(...) #define DBGON() #endif #ifndef PREFIX #define PREFIX "/usr/local/" #endif #define TINT long long #def...
/* See LICENSE file for copyright and license details. */ #include <sys/types.h> #ifndef NDEBUG extern int debug; #define DBG(...) dbg(__VA_ARGS__) #define DBGON() (debug = 1) #else #define DBG(...) #define DBGON() #endif #ifndef PREFIX #define PREFIX "/usr/local/" #endif #define TINT long long #define TUINT ...
Remove first parameter of DBG()
Remove first parameter of DBG() This first parameter was disallowing use of DBG() without a second parameter.
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
0c746fc3c3b99b09d0a437f434bbade0640dc9c2
src/dict_example.c
src/dict_example.c
// cc dict_example.c dict.c #include <assert.h> #include <stdio.h> #include <string.h> #include "bool.h" #include "dict.h" int main(int argc, const char *argv[]) { /* allocate a new dict */ struct dict *dict = dict(); /* set key and values to dict */ char *key1 = "key1"; char *key2 = "key2"; c...
// cc dict_example.c dict.c md5.c #include <assert.h> #include <stdio.h> #include <string.h> #include "bool.h" #include "dict.h" int main(int argc, const char *argv[]) { /* allocate a new dict */ struct dict *dict = dict(); /* set key and values to dict */ char *key1 = "key1"; char *key2 = "key2";...
Fix void * casting to char * warning
Fix void * casting to char * warning
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
8c2a82270ecc5d88350ca75511ba68f21e42993a
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 100 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 101 #endif
Update Skia milestone to 101
Update Skia milestone to 101 Change-Id: I78fd07c10a8dd3ff76b6040109afdf4b47b69eb0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/510656 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Auto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Reviewe...
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia
bb0a2963f2d67428142b910abb2fd3168f7b0c44
BitManipulation/Lonely_Integer.c
BitManipulation/Lonely_Integer.c
/* Problem Statement There are N integers in an array A. All but one integer occur in pairs. Your task is to find the number that occurs only once. Input Format The first line of the input contains an integer N, indicating the number of integers. The next line contains N space-separated integers that form the array ...
Add Bit Manipulation to find lonely integer by XOR trick
Add Bit Manipulation to find lonely integer by XOR trick
C
mit
anaghajoshi/HackerRank
62eb7949cb5a593f262a881337474a3012fa8f1c
Source/Private.h
Source/Private.h
#ifndef BUGSNAG_PRIVATE_H #define BUGSNAG_PRIVATE_H #import "Bugsnag.h" #import "BugsnagBreadcrumb.h" @interface BugsnagBreadcrumbs () /** * Reads and return breadcrumb data currently stored on disk */ - (NSArray *_Nullable)cachedBreadcrumbs; @end @interface Bugsnag () /** Get the current Bugsnag configuration. ...
/** * Exposes non-public interfaces between the components of the library for * internal use */ #ifndef BUGSNAG_PRIVATE_H #define BUGSNAG_PRIVATE_H #import "Bugsnag.h" #import "BugsnagBreadcrumb.h" @interface BugsnagBreadcrumbs () /** * Reads and return breadcrumb data currently stored on disk */ - (NSArray *_Nu...
Add description to internal header
doc: Add description to internal header
C
mit
bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa
668205545defd3dea025c55c57f7a5da6ce0408a
HLSpriteKit/HLError.h
HLSpriteKit/HLError.h
// // HLError.h // HLSpriteKit // // Created by Karl Voskuil on 6/6/14. // Copyright (c) 2014 Hilo Games. All rights reserved. // #import <Foundation/Foundation.h> /** The error level for logging non-critical errors using `HLError()`. */ typedef NS_ENUM(NSInteger, HLErrorLevel) { /** Errors. */ HLLevelE...
// // HLError.h // HLSpriteKit // // Created by Karl Voskuil on 6/6/14. // Copyright (c) 2014 Hilo Games. All rights reserved. // #import <Foundation/Foundation.h> /** The error level for logging non-critical errors using `HLError()`. */ typedef NS_ENUM(NSInteger, HLErrorLevel) { /** Errors. */ HLLevelE...
Fix compiler warning for unused function.
Fix compiler warning for unused function.
C
mit
hilogames/HLSpriteKit,hilogames/HLSpriteKit
607a98e1038ac8cfda62e6b9b00d1e1387cfeca3
Set/Set.h
Set/Set.h
// // Set.h // Set // // Created by Rob Rix on 2014-06-22. // Copyright (c) 2014 Rob Rix. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for Set. FOUNDATION_EXPORT double SetVersionNumber; //! Project version string for Set. FOUNDATION_EXPORT const unsigned char SetVersionString[]; /...
// Copyright (c) 2014 Rob Rix. All rights reserved. /// Project version number for Set. extern double SetVersionNumber; /// Project version string for Set. extern const unsigned char SetVersionString[];
Tidy up the umbrella header.
Tidy up the umbrella header.
C
mit
IngmarStein/Set,IngmarStein/Set,madbat/Set,IngmarStein/Set,robrix/Set,robrix/Set,natecook1000/Set,natecook1000/Set,natecook1000/Set,madbat/Set,madbat/Set,robrix/Set
0359b53645d2e067d4b41cb1c41396946ad6de7c
src/core/types.c
src/core/types.c
#include <ljit/types.h> ljit_value ljit_new_value(ljit_types type) { ljit_value val = NULL; if ((val = malloc(sizeof(ljit_value))) == NULL) return NULL; val->type = type; val->is_cst = 0; val->is_tmp = 0; val->index = 0; val->data = NULL; return val; } void ljit_free_value(l...
#include <ljit/types.h> ljit_value ljit_new_value(ljit_types type) { ljit_value val = NULL; if ((val = malloc(sizeof(struct ljit_value_s))) == NULL) return NULL; val->type = type; val->is_cst = 0; val->is_tmp = 0; val->index = 0; val->data = NULL; return val; } void ljit_fre...
Fix allocation issues on ljit_new_value()
[CORE] Fix allocation issues on ljit_new_value()
C
mit
Nakrez/LiteJit,Nakrez/LiteJit
a9c85baedcdb73a4f72ec1dd7dc05a8a93ea56d9
src/binding.h
src/binding.h
/* Copyright (c) 2017 Rolf Timmermans */ #pragma once #include <napi.h> #include <zmq.h> #include <node.h> #include <cassert> #include <iostream> #include "inline/arguments.h" #include "inline/error.h" #include "inline/util.h" #ifdef __MSVC__ #define force_inline inline __forceinline #else #define force_inline inlin...
/* Copyright (c) 2017 Rolf Timmermans */ #pragma once #include <napi.h> #include <zmq.h> #if ZMQ_VERSION < ZMQ_MAKE_VERSION(4,1,0) # include <zmq_utils.h> #endif #include <node.h> #include <cassert> #include "inline/arguments.h" #include "inline/error.h" #include "inline/util.h" #ifdef __MSVC__ #define force_inl...
Include zmq utils if necessary.
Include zmq utils if necessary.
C
mit
rolftimmermans/zeromq-ng,rolftimmermans/zeromq-ng
64bd95f2799cdcaa44d58e2e1d3650477c2bd793
include/tasm/asm.h
include/tasm/asm.h
#pragma once #include <stddef.h> // size_t definition #include <tasm/bytes.h> #include <tasm/private/execute.h> #include <tasm/private/byte_string.h> #include <tasm/private/foldable.h> #include <tasm/private/label.h> #include <tasm/private/state.h> namespace tasm { /** Convert an Asm program into machine code. *...
#pragma once #include <stddef.h> // size_t definition #include <tasm/bytes.h> #include <tasm/private/execute.h> #include <tasm/private/byte_string.h> #include <tasm/private/foldable.h> #include <tasm/private/label.h> #include <tasm/private/state.h> namespace tasm { /** Convert an Asm program into machine code. *...
Fix remaining cast alignment warnings through the magic of casting
Fix remaining cast alignment warnings through the magic of casting
C
mit
mattbierner/Template-Assembly,mattbierner/Template-Assembly,izissise/Template-Assembly,izissise/Template-Assembly
ab2597957bad0f23068435799bcdfe246e1c8a61
SSPSolution/GraphicsDLL/GraphicsComponent.h
SSPSolution/GraphicsDLL/GraphicsComponent.h
#ifndef GRAPHICSDLL_GRAPHICSCOMPONENT_H #define GRAPHICSDLL_GRAPHICSCOMPONENT_H #include <DirectXMath.h> struct GraphicsComponent { int active = 0; int modelID = -1; DirectX::XMMATRIX worldMatrix; }; struct penis { int active = 0; int modelID = -1; int joints = 0; DirectX::XMMATRIX worldMatrix; DirectX::XMM...
#ifndef GRAPHICSDLL_GRAPHICSCOMPONENT_H #define GRAPHICSDLL_GRAPHICSCOMPONENT_H #include <d3d11.h> #include <DirectXMath.h> struct GraphicsComponent { int active = 0; int modelID = -1; DirectX::XMMATRIX worldMatrix; }; struct penis { int active = 0; int modelID = -1; int joints = 0; DirectX::XMMATRIX worldMat...
ADD clicked functionallity in UIComponent
ADD clicked functionallity in UIComponent
C
apache-2.0
Chringo/SSP,Chringo/SSP
1bdefe79332fc5c1b325b2ebe6e1a8dccebe026d
hecuba_core/src/debug.h
hecuba_core/src/debug.h
#ifndef __DEBUG_H__ #define __DEBUG_H__ #undef ENABLE_DEBUG #ifdef ENABLE_DEBUG #include <sstream> #define DBG(x...) \ do {\ std::cout<< "DBG " << x << std::endl;\ } while(0) #define DBGHEXTOSTRING(_b, _size) \ do { \ char *b = (char*)(_b);\ uint64_t size = (uint64_t) (...
#ifndef __DEBUG_H__ #define __DEBUG_H__ #undef ENABLE_DEBUG #ifdef ENABLE_DEBUG #include <sstream> #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 # define __func__ __FUNCTION__ # else # define __func__ "<unknown>" # endif #endif #define DBG(x...) \ do {\ std::cout<< "DBG " << __func__ << "...
Print function name at DBG
Print function name at DBG
C
apache-2.0
bsc-dd/hecuba,bsc-dd/hecuba,bsc-dd/hecuba,bsc-dd/hecuba
53359adda7580cb506970956b48062741da051cd
tests/regression/36-apron/71-td3-self-abort-complex.c
tests/regression/36-apron/71-td3-self-abort-complex.c
// SKIP PARAM: --set ana.activated[+] apron #include <pthread.h> #include <assert.h> int g = 1; int h = 1; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int x, y; // rand pthread_mutex_lock(&A); g = x; h = x; pthread_mutex_unlock(&A); pthread_mutex_lock(&A); pthread_mutex_unloc...
Add TD3 test where complex self-abort causes verify error
Add TD3 test where complex self-abort causes verify error
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
bcd31eb1e53d9008d0cb84032bfa7da7ba565f02
RosApp/app/src/main/jni/include/tango_helper.h
RosApp/app/src/main/jni/include/tango_helper.h
// Copyright 2016 Intermodalics All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
// Copyright 2016 Intermodalics All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
Add comment to explain need of separate helper functions
Add comment to explain need of separate helper functions
C
apache-2.0
Intermodalics/tango_ros,Intermodalics/tango_ros,Intermodalics/tango_ros,Intermodalics/tango_ros
28c25f82e59407a491bac10a4c53a322cfa9b0cc
tests/regression/13-privatized/52-refine-protected-loop2-small.c
tests/regression/13-privatized/52-refine-protected-loop2-small.c
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; void *worker(void *arg ) { while (1) { pthread_mutex_lock(&A); g = 1000; assert(g != 0); if (g > 0) { g--; } pthread_mutex_unlock(&A); ...
Add further simplification of 13/51
Add further simplification of 13/51
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
eb0d91cfa278bceba3ec9a3fdcbc7c47a2ed3a3f
src/core/SkExchange.h
src/core/SkExchange.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkExchange_DEFINED #define SkExchange_DEFINED #include <utility> namespace skstd { // std::exchange is in C++14 template<typename T, typename U = T> inline static T...
Add skstd version of std::exchange
Add skstd version of std::exchange BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2381793004 Review-Url: https://codereview.chromium.org/2381793004
C
bsd-3-clause
HalCanary/skia-hc,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,google/s...
359e5083fc07f2634112af82f48189cb49b30a01
src/util/serde.h
src/util/serde.h
#pragma once #include <cstddef> namespace util { // The interface is tuned for reuse and avoids boilerplate length calculations. // Looking at implementation examples helps understand the decisions behind it. // Serialization functions should not throw. // Upon success, serialize functions shall return end of seri...
#pragma once namespace util { namespace serde { // The interface is tuned for reuse and avoids boilerplate length calculations. // Looking at implementation examples helps understand the decisions behind it. // Serialization functions should not throw. // Upon success, serialize functions shall return end of serial...
Move serialization interface into sub namespace
Move serialization interface into sub namespace
C
mit
isrvoid/utilcpp,isrvoid/utilcpp
eef2154790600024c9ccc72da34392b841ff9f0d
tests/tests.h
tests/tests.h
//---------------------------- tests.h --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2004 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file deal.II/doc/license.ht...
Add a file with common definitions to be used by all testcases.
Add a file with common definitions to be used by all testcases. git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@8395 0785d39b-7218-0410-832d-ea1e28bc413d
C
lgpl-2.1
YongYang86/dealii,spco/dealii,Arezou-gh/dealii,gpitton/dealii,rrgrove6/dealii,mac-a/dealii,lue/dealii,ESeNonFossiIo/dealii,lpolster/dealii,ESeNonFossiIo/dealii,danshapero/dealii,mtezzele/dealii,nicolacavallini/dealii,sairajat/dealii,flow123d/dealii,JaeryunYim/dealii,YongYang86/dealii,andreamola/dealii,ibkim11/dealii,jo...
7aabc4f6c8893ba6c1480ae6064182fc6ceed04c
kernel/muen/muen-poll.c
kernel/muen/muen-poll.c
/* * Copyright (c) 2017 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a unikernel base layer. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and this permission no...
Add poll implementation for Muen
Add poll implementation for Muen
C
isc
djwillia/solo5,mato/solo5,djwillia/solo5,Solo5/solo5,Weichen81/solo5,Weichen81/solo5,mato/solo5,mato/solo5,Solo5/solo5,djwillia/solo5,Weichen81/solo5
7c966839040bd186a6239d6f6d7c21dc34b34436
include/Genes/Gene.h
include/Genes/Gene.h
#ifndef GENE_H #define GENE_H #include <map> #include <string> #include <iosfwd> class Board; class Piece_Strength_Gene; class Gene { public: Gene(); virtual ~Gene() = default; void read_from(std::istream& is); void mutate(); double evaluate(const Board& board) const; ...
#ifndef GENE_H #define GENE_H #include <map> #include <string> #include <iosfwd> class Board; class Piece_Strength_Gene; class Gene { public: Gene(); virtual ~Gene() = default; void read_from(std::istream& is); void mutate(); double evaluate(const Board& board) const; ...
Add [[noreturn]] to pure throwing method
Add [[noreturn]] to pure throwing method
C
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
1e5191053d844c86f21cd2b82e4bc09ae0340634
include/xglIntelExt.h
include/xglIntelExt.h
/* IN DEVELOPMENT. DO NOT SHIP. */ #ifndef __XGLINTELEXT_H__ #define __XGLINTELEXT_H__ #include <xcb/xcb.h> #include <xcb/randr.h> #include "xgl.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus typedef enum _XGL_INTEL_STRUCTURE_TYPE { XGL_INTEL_STRUCTURE_TYPE_SHADER_CREATE_INFO = 1000, } XG...
/* IN DEVELOPMENT. DO NOT SHIP. */ #ifndef __XGLINTELEXT_H__ #define __XGLINTELEXT_H__ #include <xcb/xcb.h> #include <xcb/randr.h> #include "xgl.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus typedef enum _XGL_INTEL_STRUCTURE_TYPE { XGL_INTEL_STRUCTURE_TYPE_SHADER_CREATE_INFO = 1000, } XG...
Add shader structure for GLSL compile extension
intel: Add shader structure for GLSL compile extension
C
apache-2.0
KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools
99e8bd7b02314af8fc801e1e1bb3eab4a3cb8ccd
Classes/LJSStop.h
Classes/LJSStop.h
// // LJSStop.h // LJSYourNextBus // // Created by Luke Stringer on 29/01/2014. // Copyright (c) 2014 Luke Stringer. All rights reserved. // #import <Foundation/Foundation.h> @interface LJSStop : NSObject <NSCopying> @property (nonatomic, copy, readonly) NSString *NaPTANCode; @property (nonatomic, copy, readonly...
// // LJSStop.h // LJSYourNextBus // // Created by Luke Stringer on 29/01/2014. // Copyright (c) 2014 Luke Stringer. All rights reserved. // #import <Foundation/Foundation.h> @interface LJSStop : NSObject <NSCopying> /** * An 8 digit stop number starting with e.g. 450 for West Yorkshire or 370 for South Yorksh...
Comment explaining what a valid NaPTAN code is.
Comment explaining what a valid NaPTAN code is.
C
mit
lukestringer90/LJSYourNextBus,lukestringer90/LJSYourNextBus
3305c8719532631857182b481fccdafa76142044
include/xglIntelExt.h
include/xglIntelExt.h
/* IN DEVELOPMENT. DO NOT SHIP. */ #ifndef __XGLINTELEXT_H__ #define __XGLINTELEXT_H__ #include <xcb/xcb.h> #include <xcb/randr.h> #include "xgl.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus typedef enum _XGL_INTEL_STRUCTURE_TYPE { XGL_INTEL_STRUCTURE_TYPE_SHADER_CREATE_INFO = 1000, } XG...
/* IN DEVELOPMENT. DO NOT SHIP. */ #ifndef __XGLINTELEXT_H__ #define __XGLINTELEXT_H__ #include <xcb/xcb.h> #include <xcb/randr.h> #include "xgl.h" #ifdef __cplusplus extern "C" { #endif // __cplusplus typedef enum _XGL_INTEL_STRUCTURE_TYPE { XGL_INTEL_STRUCTURE_TYPE_SHADER_CREATE_INFO = 1000, } XG...
Add shader structure for GLSL compile extension
intel: Add shader structure for GLSL compile extension
C
apache-2.0
KhronosGroup/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,Radamanthe/VulkanSamples,sashinde/VulkanTools,Radamanthe/VulkanSamples,KhronosGroup/Vulkan-LoaderAndValidationLayers,sashinde/VulkanTools,elongbug/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,critsec/Vulkan-LoaderAndValidationLayers,cri...
20182dd263312db9fad52042fc92c33331ec6904
base/metrics/histogram_functions.h
base/metrics/histogram_functions.h
// Copyright 2016 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 MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #define MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #include <string> // These are no-op...
// Copyright 2016 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 MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #define MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_FUNCTIONS_H_ #include <string> // These are no-op...
Add missing newline at EOF after d1943e187f47
Add missing newline at EOF after d1943e187f47 Change-Id: I7d7735791aa565edca162d8c683bd272bbcfaa52 Reviewed-on: https://chromium-review.googlesource.com/827592 Reviewed-by: Mark Mentovai <f1b5a91d4d6ad523f2610114591c007e75d15084@chromium.org>
C
bsd-3-clause
chromium/mini_chromium,chromium/mini_chromium,chromium/mini_chromium
64d0d495f19cf3b2e071001b0197758dbf53d7fc
util.h
util.h
#ifndef MICROPYTHON_WRAP_UTIL_H #define MICROPYTHON_WRAP_UTIL_H #include "detail/micropython.h" namespace upywrap { inline std::string ExceptionToString( mp_obj_t ex ) { std::string exMessage; const mp_print_t mp_my_print{ &exMessage, [] ( void* data, const char* str, mp_uint_t len ) { ( (std::st...
#ifndef MICROPYTHON_WRAP_UTIL_H #define MICROPYTHON_WRAP_UTIL_H #include "detail/micropython.h" namespace upywrap { inline mp_print_t PrintToString( std::string& dest ) { return mp_print_t{ &dest, [] ( void* data, const char* str, mp_uint_t len ) { ( (std::string*) data )->append( str, len ); } }; ...
Add function for getting a variable's string representation
Add function for getting a variable's string representation
C
mit
stinos/micropython-wrap,stinos/micropython-wrap,stinos/micropython-wrap
ac19a88b463c7899f3aeffd283d0a42923449e0e
src/explicit_scoped_lock.h
src/explicit_scoped_lock.h
// Copyright 2014 Tanel Lebedev #ifndef SRC_EXPLICIT_SCOPED_LOCK_H_ #define SRC_EXPLICIT_SCOPED_LOCK_H_ #include <string> #include <sstream> #include "Poco/Logger.h" namespace kopsik { class ExplicitScopedLock : public Poco::Mutex::ScopedLock { public: ExplicitScopedLock( const std::string context, ...
// Copyright 2014 Tanel Lebedev #ifndef SRC_EXPLICIT_SCOPED_LOCK_H_ #define SRC_EXPLICIT_SCOPED_LOCK_H_ #include <string> #include <sstream> #include "Poco/Logger.h" namespace kopsik { class ExplicitScopedLock : public Poco::Mutex::ScopedLock { public: ExplicitScopedLock( const std::string context, ...
Print out locking/unlocking with trace only
Print out locking/unlocking with trace only
C
bsd-3-clause
codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop
0c4922becbbc8b0eb63c4a5bbb3ae4b749eccd24
components/libc/compilers/minilibc/sys/types.h
components/libc/compilers/minilibc/sys/types.h
#ifndef __TYPES_H__ #define __TYPES_H__ typedef long off_t; typedef unsigned long size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; type...
#ifndef __TYPES_H__ #define __TYPES_H__ typedef long off_t; typedef unsigned long size_t; typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; type...
Add type 'clock_t' to minilibc.
[Libc][Minilibc] Add type 'clock_t' to minilibc.
C
apache-2.0
hezlog/rt-thread,yongli3/rt-thread,zhaojuntao/rt-thread,wolfgangz2013/rt-thread,FlyLu/rt-thread,ArdaFu/rt-thread,nongxiaoming/rt-thread,weety/rt-thread,igou/rt-thread,weiyuliang/rt-thread,gbcwbz/rt-thread,hezlog/rt-thread,hezlog/rt-thread,RT-Thread/rt-thread,weiyuliang/rt-thread,igou/rt-thread,armink/rt-thread,nongxiao...
565744c9e3a2e91119c7ebb3d6663e0569ed94e7
libevmjit-cpp/JitVM.h
libevmjit-cpp/JitVM.h
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final; private: jit::Runtime...
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final; private: jit::RuntimeData m_data; jit::E...
Change the way execution results are collected.
Change the way execution results are collected. Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
C
mit
d-das/cpp-ethereum,d-das/cpp-ethereum,expanse-org/cpp-expanse,karek314/cpp-ethereum,expanse-org/cpp-expanse,expanse-org/cpp-expanse,vaporry/webthree-umbrella,PaulGrey30/go-get--u-github.com-tools-godep,johnpeter66/ethminer,xeddmc/cpp-ethereum,PaulGrey30/go-get--u-github.com-tools-godep,ethers/cpp-ethereum,ethers/cpp-et...
8983b37067d80a462f9ff58b04f37832d5e06365
digital_clock.c
digital_clock.c
#include <wiringPi.h> #include <stdio.h> #include <stdlib.h> #include "PCD8544.h" int pin_sclk = 4; int pin_din = 3; int pin_dc = 2; int pin_rst = 0; int pin_ce = 1; // This is already tuned int lcd_contrast = 60; char timeString[9]; void cleanup(void) { pinMode(pin_sclk, INPUT); pinMode(pin_din, INPUT); ...
Add simple digital clock example
Add simple digital clock example
C
lgpl-2.1
JokerQyou/nlcd
d0a6e12ee14f1ae039a16d0f724846541a836cb5
src/md5.h
src/md5.h
/** * Copyright (c) 2015, Chao Wang <hit9@icloud.com> * * md5 hash function. */ /* * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. * MD5 Message-Digest Algorithm (RFC 1321). * * Homepage: http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 * * Author: A...
/** * Copyright (c) 2015, Chao Wang <hit9@icloud.com> * * md5 hash function. */ /* * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. * MD5 Message-Digest Algorithm (RFC 1321). * * Homepage: http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 * * Author: A...
Add missing header file `stdint.h`
Add missing header file `stdint.h`
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
adbab433f0df9179cd0ce060e55c5e1b3f9f094b
src/app/qmlvideofilter/QVideoFrameScopeMap.h
src/app/qmlvideofilter/QVideoFrameScopeMap.h
#ifndef Q_VIDEO_FRAME_SCOPE_MAP #define Q_VIDEO_FRAME_SCOPE_MAP 1 // TODO: move to QVideoFrameScope struct QVideoFrameScopeMap { QVideoFrameScopeMap(QVideoFrame *frame, QAbstractVideoBuffer::MapMode mode) : frame(frame) { if(frame) { status = frame->map(mode); if (!stat...
Move the QVideoFrame scope lock to a header file
Move the QVideoFrame scope lock to a header file
C
bsd-3-clause
headupinclouds/gatherer,headupinclouds/gatherer,headupinclouds/gatherer,headupinclouds/gatherer
beccc92af8ff19dacd41014d016af304b25eec3d
CNFGDriver.c
CNFGDriver.c
#if defined(WINDOWS) || defined(WIN32) || defined(WIN64) #include "CNFGWinDriver.c" #elif defined( __android__ ) #include "CNFGOGLEGLDriver.c" #else #include "CNFGXDriver.c" #endif
Add feature letting you include one .c file which automatically selects the driver.
Add feature letting you include one .c file which automatically selects the driver.
C
mit
cnlohr/rawdraw,cnlohr/rawdraw
870a9743819096103ca7906053650009c42e2dd1
ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h
ios/RNTrackPlayer/Support/RNTrackPlayer-Bridging-Header.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "STKAudioPlayer.h"
// // Use this file to import your target's public headers that you would like to expose to Swift. //
Remove old audio player header
[ios] Remove old audio player header
C
apache-2.0
react-native-kit/react-native-track-player,react-native-kit/react-native-track-player,react-native-kit/react-native-track-player,react-native-kit/react-native-track-player,react-native-kit/react-native-track-player
649203faa3438601081fa5ade1fc00d0d92bda88
test/asan/TestCases/Darwin/segv_read_write.c
test/asan/TestCases/Darwin/segv_read_write.c
// RUN: %clangxx_asan -std=c++11 -O0 %s -o %t // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=READ // RUN: not %run %t write 2>&1 | FileCheck %s --check-prefix=WRITE // REQUIRES: x86-target-arch #include <sys/mman.h> static volatile int sink; __attribute__((noinline)) void Read(int *ptr) { sink = *ptr; }...
// RUN: %clangxx_asan -std=c++11 -O0 %s -o %t // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=READ // RUN: not %run %t write 2>&1 | FileCheck %s --check-prefix=WRITE // REQUIRES: x86-target-arch #include <sys/mman.h> static volatile int sink; __attribute__((noinline)) void Read(int *ptr) { sink = *ptr; }...
Update a test case to work with old Darwin SDK's
[test/asan] Update a test case to work with old Darwin SDK's On Darwin, MAP_ANONYMOUS is a synonym for MAP_ANON. However, some SDK's don't define MAP_ANONYMOUS. Use MAP_ANON to work around this. (As a point of interest, the situation is exactly reversed on Linux.) git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7...
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
695404f5a490c36741886aefbc9fb076bc0e058d
samples/Demo/Customer.h
samples/Demo/Customer.h
#pragma once #include <string> #include <iostream> struct Customer { int id; std::string name; }; inline std::ostream& operator<<(std::ostream& os, const Customer& obj) { os << "Customer (id: " << obj.id << ", name: " << obj.name << ")"; return os; }
#pragma once #include <string> #include <iostream> struct Customer { int id; std::string name; }; inline std::ostream& operator<<(std::ostream& os, const Customer& obj) { os << "Customer (id: " << obj.id << ", name: " << obj.name << ")"; return os; }
Add a new line to satisfy clang.
Add a new line to satisfy clang.
C
mit
SergiusTheBest/plog,SergiusTheBest/plog
b2e29064ae246c4d8bbcd80434477b97d5c47be0
lib/libxpg4/fakelib.c
lib/libxpg4/fakelib.c
/* $FreeBSD$ */ static int ___fake_library___;
/* $FreeBSD$ */ /* libxpg4 is obsolete in FreeBSD 6 -- library has been merged into libc. */ #define OBSOLETE_IN_6 #include <sys/param.h> static int ___fake_library___;
Mark libxpg4 as OBSOLETE_IN_6: it has been empty since its contents were merged into libc in 4.5-RELEASE.
Mark libxpg4 as OBSOLETE_IN_6: it has been empty since its contents were merged into libc in 4.5-RELEASE.
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
188806ede0679466bb5890f3ec1b52736d7ccc49
Wikipedia/Code/WKScriptMessage+WMFScriptMessage.h
Wikipedia/Code/WKScriptMessage+WMFScriptMessage.h
#import <WebKit/WebKit.h> typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) { WMFWKScriptMessagePeek, WMFWKScriptMessageConsoleMessage, WMFWKScriptMessageClickLink, WMFWKScriptMessageClickImage, WMFWKScriptMessageClickReference, WMFWKScriptMessageClickEdit, WMFWKScriptMessageNonAnchorTouc...
#import <WebKit/WebKit.h> typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) { WMFWKScriptMessageUnknown, WMFWKScriptMessagePeek, WMFWKScriptMessageConsoleMessage, WMFWKScriptMessageClickLink, WMFWKScriptMessageClickImage, WMFWKScriptMessageClickReference, WMFWKScriptMessageClickEdit, ...
Move unknown enum entry to top.
Move unknown enum entry to top.
C
mit
anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,julienbodet/wikipedia-ios,anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,anirudh24seven/wikipedia-ios,...
1c4506e41bdaea86881bca3ee3e3100e2f0e7bcb
src/utils/random.c
src/utils/random.c
#include <limits.h> #include "utils/random.h" // A simple psuedorandom number generator static struct random_t rand_state = { 1 }; void random_seed(struct random_t *r, uint32_t seed) { r->seed = seed; } uint32_t random_get_seed(struct random_t *r) { return r->seed; } uint32_t random_int(struct random_t *r,...
#include <limits.h> #include "utils/random.h" // A simple psuedorandom number generator static struct random_t rand_state = { 1 }; void random_seed(struct random_t *r, uint32_t seed) { r->seed = seed; } uint32_t random_get_seed(struct random_t *r) { return r->seed; } uint32_t random_int(struct random_t *r,...
Fix build warning with clang 10.0.1
utils: Fix build warning with clang 10.0.1 --- /[...]/openomf/src/utils/random.c:26:38: warning: implicit conversion from 'unsigned int' to 'float' changes value from 4294967295 to 4294967296 [-Wimplicit-int-float-conversion] return (float)random_intmax(r) / UINT_MAX; ~ ^~~~~~~~ ...
C
mit
omf2097/openomf,omf2097/openomf,omf2097/openomf
b62006060ff1b9079f7d4a6771b6079a34399c83
include/parrot/trace.h
include/parrot/trace.h
/* trace.h * Copyright: (When this is determined...it will go here) * CVS Info * $Id$ * Overview: * Tracing support for runops_cores.c. * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_TRACE_H_GUARD #define PARROT_TRACE_H_GUARD #include "parrot/parrot.h" v...
/* trace.h * Copyright: (When this is determined...it will go here) * CVS Info * $Id$ * Overview: * Tracing support for runops_cores.c. * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_TRACE_H_GUARD #define PARROT_TRACE_H_GUARD #include "parrot/parrot.h" v...
Fix a typo in the argument type.
Fix a typo in the argument type. Patch from <daniel.ritz@gmx.ch> git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@1106 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
C
artistic-2.0
ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot
827a95e884addadb038b85f18890225c9f61943a
formats/custom-type.c
formats/custom-type.c
#include "custom-type.h" #include "cmd.h" #include "common.h" #include <string.h> #include <hiredis/hiredis.h> #include <hiredis/async.h> void custom_type_reply(redisAsyncContext *c, void *r, void *privdata) { redisReply *reply = r; struct cmd *cmd = privdata; (void)c; if(reply == NULL) { evhttp_send_reply(cm...
#include "custom-type.h" #include "cmd.h" #include "common.h" #include <string.h> #include <hiredis/hiredis.h> #include <hiredis/async.h> void custom_type_reply(redisAsyncContext *c, void *r, void *privdata) { redisReply *reply = r; struct cmd *cmd = privdata; (void)c; char int_buffer[50]; int int_len; if(rep...
Add text output for integers.
Add text output for integers.
C
bsd-2-clause
nicolasff/webdis,nicolasff/webdis,cauchycui/webdis,boothj5/webdis,cauchycui/webdis,cauchycui/webdis,mrkeng/webdis,mrkeng/webdis,cauchycui/webdis,mrkeng/webdis,boothj5/webdis,boothj5/webdis,nicolasff/webdis,boothj5/webdis,nicolasff/webdis,nicolasff/webdis,mrkeng/webdis
fb641024e72566afeea22f5ab0c546d596d3d780
includes/stdlib.c
includes/stdlib.c
#include <stddef.h> void qsort(void *ptr, size_t count, size_t size, int (*comp)(const void*, const void*)) { // call all possible compares first, before invalidating array elements for (size_t i = 0; i < count; i++) { for (size_t j = 0; j < count; j++) { comp(ptr + i * size, ptr + j * size); } } ...
#include <stddef.h> void qsort(void *ptr, size_t count, size_t size, int (*comp)(const void*, const void*)) { // call all possible compares first, before invalidating array elements for (size_t i = 0; i < count; i++) { for (size_t j = 0; j < count; j++) { comp(ptr + i * size, ptr + j * size); } } ...
Add analysis stub for bsearch
Add analysis stub for bsearch
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
7b2be204701d4876a19d8aec30df87af3db8fc72
tests/tests.c
tests/tests.c
#include <check.h> /* * Include test files below */ typedef Suite* (*suite_creator_f)(void); int main(void) { int nfailed = 0; Suite* s; SRunner* sr; suite_creator_f iter; /* * Insert suite creator functions here */ suite_creator_f suite_funcs[] = { NULL; }; f...
#include <check.h> /* * Include test files below */ typedef Suite* (*suite_creator_f)(void); int main(void) { int nfailed = 0; Suite* s; SRunner* sr; suite_creator_f iter; /* * Insert suite creator functions here */ suite_creator_f suite_funcs[] = { NULL }; fo...
Remove malicious semicolon from array constant
Remove malicious semicolon from array constant
C
lgpl-2.1
waysome/libreset,waysome/libreset
d24f8e8fef43aa9fc98ea7a5ae6eee0eed4cdc06
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.07-k6" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 7 #define...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.07-k7" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 7 #define...
Update version number to 8.01.07-k7.
[SCSI] qla2xxx: Update version number to 8.01.07-k7. Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program...
e60d436c3fcd3a24a52ae7ef20307ec47bab3538
tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.h
tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.h
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Include what you use fixes.
Include what you use fixes. Relying on transitive dependencies for what you are going to use is a bad idea because it can break on changes done by said transitive dependencies. This CL adds necessary headers for accessing gRPC. PiperOrigin-RevId: 240629991
C
apache-2.0
annarev/tensorflow,aldian/tensorflow,annarev/tensorflow,sarvex/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,xzturn/tensorflow,petewarden/tensorflow,paolodedios/tens...
cb3e0ca7865d920bd89997046641b48c040e2a36
chip/stm32/config-stm32f05x.h
chip/stm32/config-stm32f05x.h
/* Copyright 2015 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 #define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase ...
/* Copyright 2015 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Memory mapping */ #define CONFIG_FLASH_SIZE (64 * 1024) #define CONFIG_FLASH_BANK_SIZE 0x1000 #define CONFIG_FLASH_ERASE_SIZE 0x0400 /* erase ...
Use correct erase block size of 1kB
stm32f05x: Use correct erase block size of 1kB Change erase block size to the correct 1kB. BUG=chrome-os-partner:41959 BRANCH=none TEST=with following CL, test software sync to PD MCU on glados. Change-Id: I6252e6344e50f00249ab105a90febd15599c936f Signed-off-by: Alec Berg <1a4429eeda29095a12e19a73405f80f5b7f37a63@ch...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec
5df51532660f881a1c5f1122cd52410559780f17
benchmark/bench-result-set-raw.c
benchmark/bench-result-set-raw.c
/* Copyright (C) 2015-2019 Sutou Kouhei <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be use...
Add result set benchmark program without GLib
Add result set benchmark program without GLib
C
lgpl-2.1
komainu8/groonga,groonga/groonga,groonga/groonga,kenhys/groonga,groonga/groonga,komainu8/groonga,groonga/groonga,kenhys/groonga,kenhys/groonga,kenhys/groonga,groonga/groonga,naoa/groonga,komainu8/groonga,naoa/groonga,komainu8/groonga,kenhys/groonga,komainu8/groonga,kenhys/groonga,komainu8/groonga,kenhys/groonga,komainu...
2bc66f36fe9c019dceaa001aa9a5a061dae25abe
tests/regression/02-base/90-memcpy.c
tests/regression/02-base/90-memcpy.c
// Test case taken from sqlite3.c #include <string.h> typedef unsigned long u64; # define EXP754 (((u64)0x7ff)<<52) # define MAN754 ((((u64)1)<<52)-1) # define IsNaN(X) (((X)&EXP754)==EXP754 && ((X)&MAN754)!=0) static int sqlite3IsNaN(double x){ int rc; /* The value return */ u64 y; memcpy(&y,&x,sizeof(y))...
Add test case that makes goblint crash
Add test case that makes goblint crash
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
a9f037c1e95e9cc31a91b43be90ac0c44b09d835
DAKeyboardControl/DAKeyboardControl.h
DAKeyboardControl/DAKeyboardControl.h
// // DAKeyboardControl.h // DAKeyboardControlExample // // Created by Daniel Amitay on 7/14/12. // Copyright (c) 2012 Daniel Amitay. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^DAKeyboardDidMoveBlock)(CGRect keyboardFrameInView); @interface UIView (DAKeyboardControl) @property (nonatomic) CG...
// // DAKeyboardControl.h // DAKeyboardControlExample // // Created by Daniel Amitay on 7/14/12. // Copyright (c) 2012 Daniel Amitay. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^DAKeyboardDidMoveBlock)(CGRect keyboardFrameInView); /** DAKeyboardControl allows you to easily add keyboard awarene...
Add documentation to the headers
Add documentation to the headers
C
mit
AlexanderMazaletskiy/DAKeyboardControl,gaurav1981/DAKeyboardControl,jivesoftware/DAKeyboardControl,cnbin/DAKeyboardControl,Rusik/DAKeyboardControl,danielamitay/DAKeyboardControl
a023e3cc0b361824d896c5eeb56dccdaa4555b6b
fileops/filecreation.c
fileops/filecreation.c
/* * 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 * (at your option) any later version. * * This program is distributed in the hope that it will be use...
Add program to create a lot of files in a directory
Add program to create a lot of files in a directory Useful for testing file system performance Signed-off-by: Prashant P Shah <80f978b5ac27fb318171799f0fb6a277863f2bf5@gmail.com>
C
cc0-1.0
prashants/tools,prashants/tools,prashants/tools
94b6248c36aa9a16db2d45bd665376cd71d92108
safe-memory.c
safe-memory.c
#include "safe-memory.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { void* memory = malloc(size); if (!memory) { fprintf(stderr, "Error: not enough memory for malloc in function: %s", calling_fun...
#include "safe-memory.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void* safe_malloc_function(size_t size, const char* calling_function) { if (size == 0) { return NULL; } void* memory = malloc(size); if (!memory) { fprintf(stderr, "Error: not enough memory for...
Check if `size == 0` in `safe_malloc_function()`
Check if `size == 0` in `safe_malloc_function()` If the size passed to `safe_malloc` is zero, return NULL. This also prevents `safe_malloc` from exiting if zero is passed, while memory allocation succeeded.
C
mit
ErwinJanssen/elegan-c,VanJanssen/elegan-c,VanJanssen/safe-c
fc78907b913c85f749053e3ce4f6556e5885f3ad
arch/proc/IOResponseMultiplexer.h
arch/proc/IOResponseMultiplexer.h
#ifndef IORESPONSEMUX_H #define IORESPONSEMUX_H #ifndef PROCESSOR_H #error This file should be included in Processor.h #endif class IOResponseMultiplexer : public Object { private: RegisterFile& m_regFile; struct IOResponse { IODeviceID device; IOData data; }; ...
#ifndef IORESPONSEMUX_H #define IORESPONSEMUX_H #ifndef PROCESSOR_H #error This file should be included in Processor.h #endif class IOResponseMultiplexer : public Object { private: RegisterFile& m_regFile; struct IOResponse { IODeviceID device; IOData data; }; ...
Reduce the amount of process activity for incoming I/O read responses.
[mgsim-refactor] Reduce the amount of process activity for incoming I/O read responses. git-svn-id: c257622338fa90c299bfd3fbe1eee5dac8caa856@4465 e97e5017-a994-416e-809d-76780e9f78db
C
mit
Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim
0c93228d8a9028d03c22a122e464c51b57ff51a5
problem_003.c
problem_003.c
/* * he prime factors of 13195 are 5, 7, 13 and 29. * * What is the largest prime factor of the number 600851475143 ? */ #include <stdio.h> int main(int argc, char **argv) { long long int num = 600851475143; int x; for(x = 2; x < num; x++) { if(num % x == 0) { num /= x; ...
Add solution for problem 3
Add solution for problem 3
C
bsd-2-clause
skreuzer/euler
935972a87170e1e79de28573018e7588238c3d75
problem_009.c
problem_009.c
#include <stdio.h> #include <stdint.h> #include "euler.h" #define PROBLEM 9 #define ANSWER 31875000 int main(int argc, char **argv) { int a, b, c, a2, b2, c2; int product = 0; for(a = 1; a < 1000; a++) { for(b = 1; b < 1000; b++) { a2 = a * a; b2 = b * b; for(c ...
Add a solution for problem 9
Add a solution for problem 9
C
bsd-2-clause
skreuzer/euler
33e85ca6a9881e511a989e4396d4f5f861073c68
simple-thread.c
simple-thread.c
#include <stdio.h> #include <assert.h> #include "uv.h" static uv_thread_t thread; static void thread_cb(void* arg) { printf("hello thread!\n"); } int main() { int r = uv_thread_create(&thread, thread_cb, NULL); assert(r == 0); /* pause execution of this thread until the spawned thread has had * time t...
Add super simple thread creation case
Add super simple thread creation case
C
mit
trevnorris/libuv-examples
2ef8096728cecf6407e2e121027fb2da097a7b73
src/ExprGen.h
src/ExprGen.h
#include <string> #include "Type.h" class VarStack; enum ArithmeticOperator { NEGATE = 0, SUM, DIFFERENCE, MULTIPLY, DIVIDE }; #define NUM_ARITHMETIC_OPERATORS 5 enum LogicOperator { LESS_THAN = 0, LESS_THAN_OR_EQUAL, EQUAL, GREATER_THAN_OR_EQUAL, GREATER_THAN }; #define NUM_LOGIC_OPERATORS 5 class Exp...
#include <string> #include "Type.h" class VarStack; enum ArithmeticOperator { NEGATE = 0, SUM, DIFFERENCE, MULTIPLY, DIVIDE }; #define NUM_ARITHMETIC_OPERATORS 5 enum LogicOperator { LESS_THAN = 0, LESS_THAN_OR_EQUAL, EQUAL, GREATER_THAN_OR_EQUAL, GREATER_THAN }; #define NUM_LOGIC_OPERATORS 5 class Exp...
Add newline to end of file
Add newline to end of file
C
mit
m1c0l/RPG
86b46cab1683a68b3f34478d1e8465ebb1ea3a96
include/swift/ABI/Class.h
include/swift/ABI/Class.h
//===--- Class.h - Compiler/runtime class-metadata values -------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Add a file for some ObjC class ABI constants.
Add a file for some ObjC class ABI constants. Swift SVN r3474
C
apache-2.0
jtbandes/swift,lorentey/swift,JGiola/swift,ken0nek/swift,atrick/swift,austinzheng/swift,atrick/swift,sdulal/swift,swiftix/swift.old,MukeshKumarS/Swift,jtbandes/swift,dduan/swift,deyton/swift,uasys/swift,shajrawi/swift,zisko/swift,kstaring/swift,felix91gr/swift,karwa/swift,lorentey/swift,rudkx/swift,stephentyrone/swift,...
8668174b5db5a471a5da1dbf7c9816bd18e561c9
io/socket/simple_server.h
io/socket/simple_server.h
#ifndef IO_SOCKET_SIMPLE_SERVER_H #define IO_SOCKET_SIMPLE_SERVER_H #include <io/socket/socket.h> /* * XXX * This is just one level up from using macros. Would be nice to use abstract * base classes and something a bit tidier. */ template<typename A, typename C, typename L> class SimpleServer { LogHandle log_; ...
Add a simple server abstraction.
Add a simple server abstraction.
C
bsd-2-clause
wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy
75f9dacba8845a7fbca6a4f01432ec048bb7d478
thread_info.h
thread_info.h
typedef struct saved_thread_info { long thread_id; long record_num; } thread_info;
typedef struct saved_thread_info { long thread_id; long record_num; int fd; pthread_mutex_t * file_lock; } thread_info;
Add file descriptor and file mutex to thread info
Add file descriptor and file mutex to thread info
C
bsd-3-clause
russellfolk/Pthread_Power_Fault_Tester,russellfolk/Pthread_Power_Fault_Tester,russellfolk/Pthread_Power_Fault_Tester
4daf51b49667359b113d43fa859967cfe63858de
examples/badness.c
examples/badness.c
#include "rmc.h" extern int coin(void); // A test that should be really bad because exponents. // Only takes like a minute or so! void welp(int *p, int *q) { VEDGE(a, b); L(a, *p = 1); if (coin()){} if (coin()){} if (coin()){} if (coin()){} // 4 if (coin()){} if (coin()){} if...
Implement a test that demonstrates the exponential blowup of our system
Implement a test that demonstrates the exponential blowup of our system
C
mit
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
3e7ffd30eca811f0ab853c6ccb5dfd4c94050dbc
src/Config.h
src/Config.h
#ifndef CTCONFIG_H #define CTCONFIG_H #define ENABLE_ASSERT_CHECKS //#define CT_NODE_DEBUG //#define ENABLE_INTEGRITY_CHECK //#define ENABLE_COUNTERS //#define ENABLE_PAGING #endif // CTCONFIG_H
#ifndef CTCONFIG_H #define CTCONFIG_H //#define ENABLE_ASSERT_CHECKS //#define CT_NODE_DEBUG //#define ENABLE_INTEGRITY_CHECK //#define ENABLE_COUNTERS //#define ENABLE_PAGING #endif // CTCONFIG_H
Disable assert checks as default
Disable assert checks as default
C
mit
sopwithcamel/cbt,sopwithcamel/cbt
10fe49ad03b2732259162132eca2699db47ef995
TeamSnapSDK/SDK/DataTypes/Lineups/TSDKEventLineupEntry.h
TeamSnapSDK/SDK/DataTypes/Lineups/TSDKEventLineupEntry.h
// // TSDKEventLinupEntry.h // TeamSnapSDK // // Created by Jason Rahaim on 4/10/18. // Copyright © 2018 teamsnap. All rights reserved. // #import <TeamSnapSDK/TeamSnapSDK.h> @interface TSDKEventLineupEntry : TSDKCollectionObject @property (nonatomic, weak) NSString *_Nullable eventLineupId; @property (nonatomic...
// // TSDKEventLinupEntry.h // TeamSnapSDK // // Created by Jason Rahaim on 4/10/18. // Copyright © 2018 teamsnap. All rights reserved. // #import <TeamSnapSDK/TeamSnapSDK.h> @interface TSDKEventLineupEntry : TSDKCollectionObject @property (nonatomic, weak) NSString *_Nullable eventLineupId; @property (nonatomic...
Remove readonly from member name and availability so we can create entries locally.
Remove readonly from member name and availability so we can create entries locally.
C
mit
teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS,teamsnap/teamsnap-SDK-iOS
d1229c61a331405d3ddb39bab47225a4c6d876e6
code/tests/workq_bench.c
code/tests/workq_bench.c
#include "checks.h" #include "common.h" #include "layout.h" #include "workqueue.h" int main(int argc, char **argv) { adlb_code ac; // Workaround: disable debug logging to avoid calls to MPI_WTime xlb_debug_enabled = false; xlb_s.types_size = 1; int comm_size = 64; // TODO: need way to provide hostnames ...
#include "checks.h" #include "common.h" #include "layout.h" #include "workqueue.h" static void make_fake_hosts(const char **fake_hosts, int comm_size); int main(int argc, char **argv) { adlb_code ac; // Workaround: disable debug logging to avoid calls to MPI_WTime xlb_debug_enabled = false; xlb_s.types_size...
Create fake hostnames in test
Create fake hostnames in test git-svn-id: 51d371801c0de2a0625fbca80cd99d181c32913f@15044 dc4e9af1-7f46-4ead-bba6-71afc04862de
C
apache-2.0
swift-lang/swift-t,swift-lang/swift-t,swift-lang/swift-t,blue42u/swift-t,basheersubei/swift-t,JohnPJenkins/swift-t,basheersubei/swift-t,JohnPJenkins/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,swift-lang/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,basheersubei/swift-t,basheersubei/swift-t,blue42u/swift-t,bashee...
e42516dd75679263421b8d857ab9968eb1939f8a
src/fwd.h
src/fwd.h
#pragma once // Block data structures. class CBlock; class CBlockIndex;
#pragma once // Block data structures. class CBlock; class CBlockIndex; // Gridcoin struct MiningCPID; struct StructCPID; struct StructCPIDCache;
Add Gridcoin structs to forward file.
Add Gridcoin structs to forward file.
C
mit
Git-Jiro/Gridcoin-Research,theMarix/Gridcoin-Research,Lederstrumpf/Gridcoin-Research,fooforever/Gridcoin-Research,theMarix/Gridcoin-Research,Lederstrumpf/Gridcoin-Research,Git-Jiro/Gridcoin-Research,gridcoin/Gridcoin-Research,tomasbrod/Gridcoin-Research,fooforever/Gridcoin-Research,gridcoin/Gridcoin-Research,tomasbrod/...
0805cc34a1fb29ac933d536377281258e4b81fa0
src/kernel.c
src/kernel.c
#include <rose/screen.h> #include <rose/descriptor-tables.h> extern void protected_mode_start(void); void kmain(void) { screen_clear(); gdt_init(); protected_mode_start(); screen_write_string_at("Hello from rOSe (in protected mode!)", 0, 0); }
#include <rose/screen.h> #include <rose/stdint.h> #include <rose/descriptor-tables.h> extern void protected_mode_start(void); struct registers { uint32_t ds; uint32_t edi; uint32_t esi; uint32_t ebp; uint32_t esp; uint32_t ebx; uint32_t edx; uint32_t ecx; uint32_t eax; uint32_t...
Create a general interrupt handler
Create a general interrupt handler
C
mit
hoelzro/rose-kernel,hoelzro/rose-kernel
88b427fa738595364352560b66ec904b2b55f9ae
src/module.h
src/module.h
#define MODULE_NAME "fish" #include <irssi-config.h> #include <common.h> #include <core/servers.h> #include <core/settings.h> #include <core/levels.h> #include <core/signals.h> #include <core/commands.h> #include <core/queries.h> #include <core/channels.h> #include <core/recode.h> #include <core/servers.h> #include <...
#define MODULE_NAME "fish" #include <irssi-config.h> #include <common.h> #include <core/servers.h> #include <core/settings.h> #include <core/levels.h> #include <core/signals.h> #include <core/commands.h> #include <core/queries.h> #include <core/channels.h> #include <core/recode.h> #include <core/servers.h> #include <...
Convert tabs to spaces and indent
Convert tabs to spaces and indent
C
mit
falsovsky/FiSH-irssi
296d9ee9a6d0143c4ef3e60c13c798f592962c0a
include/gpu/gl/SkMesaGLContext.h
include/gpu/gl/SkMesaGLContext.h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkMesaGLContext_DEFINED #define SkMesaGLContext_DEFINED #include "SkGLContext.h" #if SK_MESA class SkMesaGLContext : public SkGLContext { private: typedef intpt...
Fix undefined GLint in Mac builds
Fix undefined GLint in Mac builds
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
8dafd5d540a8ed88465f6fdb32ebb219e2f82cd0
common/src/models/models.h
common/src/models/models.h
/* * Copyright 2021 The CFU-Playground Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/* * Copyright 2021 The CFU-Playground Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Add prototype to header file for compilation to succeed if no TFLM model included in Makefile
Add prototype to header file for compilation to succeed if no TFLM model included in Makefile Signed-off-by: ShvetankPrakash <1a565be4c7f481ed31060d5d811c95b3207c5b09@g.harvard.edu>
C
apache-2.0
google/CFU-Playground,google/CFU-Playground,google/CFU-Playground,google/CFU-Playground
89cbba52eea1a2ea2c806872b04a3b300f0004da
assembly/printconst.c
assembly/printconst.c
/* * printconst - Read a constant and print it * * Written in 2012 by Prashant P Shah <pshah.mumbai@gmail.com> * * To the extent possible under law, the author(s) have dedicated * all copyright and related and neighboring rights to this software * to the public domain worldwide. This software is distributed * ...
Copy a constant value to a variable and print it
Copy a constant value to a variable and print it Signed-off-by: Prashant Shah <80f978b5ac27fb318171799f0fb6a277863f2bf5@gmail.com>
C
cc0-1.0
prashants/c
4491397558ef396e81657cae7a2b9e6a4917a1ae
kernel/include/dennix/kernel/hashtable.h
kernel/include/dennix/kernel/hashtable.h
/* Copyright (c) 2021 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
Implement a hash table in the kernel.
Implement a hash table in the kernel.
C
isc
dennis95/dennix,dennis95/dennix,dennis95/dennix
4ef8edb2ea08f08fcaf8056909d014ccae1e6455
cc1/tests/test034.c
cc1/tests/test034.c
/* name: TEST034 description: Basic test for incomplete structures output: X3 S2 x F4 I E X5 F4 foo G6 F4 main { \ X7 S2 x r X7 'P #P0 !I } G5 F4 foo { \ X3 M9 .I #I0 :I r X3 M9 .I } */ extern struct X x; int foo(); int main() { extern struct X x; return &x != 0; } struct X {int v;}; int foo() { x.v = 0; re...
Add basic test for incomplete structs
Add basic test for incomplete structs
C
mit
8l/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/kcc,8l/scc,8l/scc,k0gaMSX/scc
2a24065dbbe6b88c21da66f588b913e5f3b403fa
test/Preprocessor/print_line_empty_file.c
test/Preprocessor/print_line_empty_file.c
// RUN: %clang -E %s | FileCheck %s #line 21 "" int foo() { return 42; } #line 4 "bug.c" int bar() { return 21; } // CHECK: # 21 "" // CHECK: int foo() { return 42; } // CHECK: # 4 "bug.c" // CHECK: int bar() { return 21; }
// RUN: %clang_cc1 -E %s | FileCheck %s #line 21 "" int foo() { return 42; } #line 4 "bug.c" int bar() { return 21; } // CHECK: # 21 "" // CHECK: int foo() { return 42; } // CHECK: # 4 "bug.c" // CHECK: int bar() { return 21; }
Fix this test to use -cc1.
Fix this test to use -cc1. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@114156 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
140311ab999dda019075b9f86661ebd51e0a144f
src/include/elektraprivate.h
src/include/elektraprivate.h
/** * @file * * @brief Private declarations. * * @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org) */ #ifndef ELEKTRAPRIVATE_H #define ELEKTRAPRIVATE_H #include "kdb.h" struct _ElektraError { int errorNr; const char * msg; }; struct _Elektra { KDB * kdb; KeySet * config;...
/** * @file * * @brief Private declarations. * * @copyright BSD License (see doc/LICENSE.md or http://www.libelektra.org) */ #ifndef ELEKTRAPRIVATE_H #define ELEKTRAPRIVATE_H #include "kdb.h" struct _ElektraError { int errorNr; const char * msg; }; struct _Elektra { KDB * kdb; KeySet * config;...
Remove error from Elektra struct
Remove error from Elektra struct
C
bsd-3-clause
mpranj/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,BernhardD...
de03609158f5e3d774bd519cfdd2a1de04854fa6
newbase/NFmiDictionaryFunction.h
newbase/NFmiDictionaryFunction.h
/*! NFmiDictionaryFunction.h * Tämä on Editorin käyttämä sana kirja funktio. * Kieli versiot stringeihin tulevat täältä. */ #ifndef NFMIDICTIONARYFUNCTION_H #define NFMIDICTIONARYFUNCTION_H #include <NFmiSettings.h> // HUOM! Tämä on kopio NFmiEditMapGeneralDataDoc-luokan metodista, kun en voinut antaa tänne // ...
/*! NFmiDictionaryFunction.h * Tämä on Editorin käyttämä sana kirja funktio. * Kieli versiot stringeihin tulevat täältä. */ #ifndef NFMIDICTIONARYFUNCTION_H #define NFMIDICTIONARYFUNCTION_H #include "NFmiSettings.h" // HUOM! Tämä on kopio NFmiEditMapGeneralDataDoc-luokan metodista, kun en voinut antaa tänne // ...
Use "" instead of <> for local includes
Use "" instead of <> for local includes
C
mit
fmidev/smartmet-library-newbase,fmidev/smartmet-library-newbase
266393a705ce2b6db982a4bd048bb536ec556a85
include/extensions.h
include/extensions.h
#ifndef _SWAY_EXTENSIONS_H #define _SWAY_EXTENSIONS_H #include <wayland-server-core.h> #include <wlc/wlc-wayland.h> #include "wayland-desktop-shell-server-protocol.h" #include "list.h" struct background_config { wlc_handle output; wlc_resource surface; struct wl_resource *resource; }; struct ...
#ifndef _SWAY_EXTENSIONS_H #define _SWAY_EXTENSIONS_H #include <wayland-server.h> #include <wlc/wlc-wayland.h> #include "wayland-desktop-shell-server-protocol.h" #include "list.h" struct background_config { wlc_handle output; wlc_resource surface; struct wl_resource *resource; }; struct panel...
Include wayland-server.h instead of -core.h
Include wayland-server.h instead of -core.h
C
mit
1ace/sway,1ace/sway,sleep-walker/sway,colemickens/sway,colemickens/sway,colemickens/sway,4e554c4c/sway,crondog/sway,ascent12/sway,4e554c4c/sway,ptMuta/sway,taiyu-len/sway,ascent12/sway,taiyu-len/sway,mikkeloscar/sway,mikkeloscar/sway,SirCmpwn/sway,taiyu-len/sway,crondog/sway,johalun/sway,ascent12/sway,1ace/sway,sleep-w...
283fd795b2c1d6f43de7ff88ef27167b24e46974
Code/ApplicationEngine/otbWrapperAddProcessToWatchEvent.h
Code/ApplicationEngine/otbWrapperAddProcessToWatchEvent.h
/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT ...
ADD : Class implementing an Event storing a pointer to a itk::ProcessObject and a string describing it.
ADD : Class implementing an Event storing a pointer to a itk::ProcessObject and a string describing it.
C
apache-2.0
orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB
f97be484d675f92b852a7f7d72fcfd13a9f166dd
mlpack/trunk/src/mlpack/core.h
mlpack/trunk/src/mlpack/core.h
/*** * @file mlpack_core.h * * Include all of the base components required to write MLPACK methods. */ #ifndef __MLPACK_CORE_H #define __MLPACK_CORE_H // First, standard includes. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <cmath> #include <math.h> #include <limits.h> #i...
/*** * @file mlpack_core.h * * Include all of the base components required to write MLPACK methods. */ #ifndef __MLPACK_CORE_H #define __MLPACK_CORE_H // First, standard includes. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <limits.h> #include <float.h> #include <stdint.h...
Make sure we include M_PI, and if the system does not define it for us, we'll give it our best shot.
Make sure we include M_PI, and if the system does not define it for us, we'll give it our best shot.
C
bsd-3-clause
darcyliu/mlpack,minhpqn/mlpack,bmswgnp/mlpack,trungda/mlpack,BookChan/mlpack,ajjl/mlpack,lezorich/mlpack,ersanliqiao/mlpack,palashahuja/mlpack,stereomatchingkiss/mlpack,datachand/mlpack,erubboli/mlpack,theranger/mlpack,datachand/mlpack,bmswgnp/mlpack,erubboli/mlpack,thirdwing/mlpack,theranger/mlpack,ajjl/mlpack,BookCha...
eab972c985f5abcf7f8ec3ebd155532f2e9e5f62
include/intellibot.h
include/intellibot.h
#if !defined(_INTELLIBOT_H) #define _INTELLIBOT_H #include <sys/types.h> #include <time.h> #include "queue.h" #include "sock.h" struct _intellibot; struct _server; struct _plugin; struct _plugin_ctx; struct _queue; #define SOCK_FLAG_DISCONNECTED 0 #define SOCK_FLAG_CONNECTED 1 #define SOCK_FLAG_REGISTERED 2 typede...
#if !defined(_INTELLIBOT_H) #define _INTELLIBOT_H #include <sys/types.h> #include <time.h> #include "queue.h" #include "sock.h" struct _intellibot; struct _server; struct _plugin; struct _plugin_ctx; struct _queue; #define SOCK_FLAG_DISCONNECTED 0 #define SOCK_FLAG_CONNECTED 1 #define SOCK_FLAG_REGISTERED 2 typede...
Add fields to the plugin struct
Add fields to the plugin struct
C
bsd-2-clause
lattera/intellibot
278ef644709f6e05938be329941e4cc2207dae41
hab/proxr/poll-arduino.c
hab/proxr/poll-arduino.c
#include "sim-hab.h" #include <stdlib.h> int poll_arduino() { char response[256]; uint32_t content; bionet_resource_t *res; bionet_node_t *node; node = bionet_hab_get_node_by_index(hab, 0); // send command 100. requests analog0's value // read value and set resource arduino_write(...
#include "sim-hab.h" #include <stdlib.h> int poll_arduino() { char response[256]; uint32_t content; bionet_resource_t *res; bionet_node_t *node; node = bionet_hab_get_node_by_index(hab, 0); // send command 100. requests analog0's value // read value and set resource arduino_write(...
Modify sim-hab so that the digital inputs are accounted for.
Modify sim-hab so that the digital inputs are accounted for.
C
lgpl-2.1
ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead
da939c53dac50093fc1227010652ab0560f08b45
net/socket/ssl_client_socket.h
net/socket/ssl_client_socket.h
// Copyright (c) 2006-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 NET_SOCKET_SSL_CLIENT_SOCKET_H_ #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ #include "net/socket/client_socket.h" namespace net { class SS...
// Copyright (c) 2006-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 NET_SOCKET_SSL_CLIENT_SOCKET_H_ #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ #include "net/socket/client_socket.h" namespace net { class SS...
Add static function to convert NPN strings to an enum.
Add static function to convert NPN strings to an enum. http://codereview.chromium.org/487012 git-svn-id: http://src.chromium.org/svn/trunk/src@34287 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 2a63eef748fa1910eddb0b772eb24344e6705fdc
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
a58c131cca2faedf386aa57b7f68b0ab0dd4f6b8
SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h
SmartDeviceLink-iOS/SmartDeviceLink/SDLAbstractProtocol.h
// SDLAbstractProtocol.h // @class SDLAbstractTransport; @class SDLRPCMessage; @class SDLRPCRequest; #import "SDLProtocolListener.h" #import "SDLTransportDelegate.h" @interface SDLAbstractProtocol : NSObject <SDLTransportDelegate> @property (strong) NSString *debugConsoleGroupName; @property (weak) SDLAbstractTra...
// SDLAbstractProtocol.h // @class SDLAbstractTransport; @class SDLRPCMessage; @class SDLRPCRequest; #import "SDLProtocolListener.h" #import "SDLTransportDelegate.h" @interface SDLAbstractProtocol : NSObject <SDLTransportDelegate> @property (strong) NSString *debugConsoleGroupName; @property (weak) SDLAbstractTra...
Fix SDLProtocol delegate table being released too early
Fix SDLProtocol delegate table being released too early
C
bsd-3-clause
FordDev/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,adein/sdl_ios,kshala-ford/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,FordDev/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,davidswi/sdl_ios,kshala-ford/sdl_ios,davidswi/sdl_ios,APCVSRepo/sdl_ios,FordDev/sdl_ios,FordDev/sdl_ios,smartdev...
30a6e87310245b6602c959b9e7b2280fb22caad6
solutions/uri/1028/1028.c
solutions/uri/1028/1028.c
#include <stdint.h> #include <stdio.h> int gcd(int a, int b) { int32_t x; while (b > 0) { x = b; b = a % b; a = x; } return a; } int main() { int32_t n, a, b; scanf("%d", &n); while (n--) { scanf("%d %d", &a, &b); printf("%d\n", gcd(a, b)); ...
Solve Collectable Cards in c
Solve Collectable Cards in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
77e2e9b890807560b3db5f1e277c7445cc5d74dd
lib/kernel/test/os_SUITE_data/my_echo.c
lib/kernel/test/os_SUITE_data/my_echo.c
#ifdef __WIN32__ #include <windows.h> int wmain(int argc, wchar_t **argv) { char* sep = ""; int len; /* * Echo all arguments separated with '::', so that we can check that * quotes are interpreted correctly. */ while (argc-- > 1) { char *utf8; len = WideCharToMultiByte(CP_UTF8, 0, ar...
#include <stdio.h> #ifdef __WIN32__ #include <windows.h> int wmain(int argc, wchar_t **argv) { char* sep = ""; int len; /* * Echo all arguments separated with '::', so that we can check that * quotes are interpreted correctly. */ while (argc-- > 1) { char *utf8; len = WideCharToMulti...
Fix os_SUITE compilation issue on win32
kernel: Fix os_SUITE compilation issue on win32
C
apache-2.0
rlipscombe/otp,bjorng/otp,dgud/otp,isvilen/otp,emacsmirror/erlang,bjorng/otp,g-andrade/otp,getong/otp,dgud/otp,isvilen/otp,potatosalad/otp,vinoski/otp,g-andrade/otp,jj1bdx/otp,emacsmirror/erlang,mikpe/otp,erlang/otp,lrascao/otp,erlang/otp,potatosalad/otp,getong/otp,rlipscombe/otp,emacsmirror/erlang,vinoski/otp,uabboli/...
48a000c2d136e1571a0732006b2bec2538a117a2
SSPSolution/SSPSolution/ComponentHandler.h
SSPSolution/SSPSolution/ComponentHandler.h
#ifndef SSPAPPLICATION_COMPONENTHANDLER_H #define SSPAPPLICATION_COMPONENTHANDLER_H #include "../GraphicsDLL/GraphicsHandler.h" //#include "ComponentStructs.h" #include "../GraphicsDLL/GraphicsHandler.h" #include "../physicsDLL/PhysicsHandler.h" #include "../AIDLL/AIHandler.h" class ComponentHandler { private: Graph...
#ifndef SSPAPPLICATION_COMPONENTHANDLER_H #define SSPAPPLICATION_COMPONENTHANDLER_H //#include "ComponentStructs.h" #include "../GraphicsDLL/GraphicsHandler.h" #include "../physicsDLL/PhysicsHandler.h" #include "../AIDLL/AIHandler.h" class ComponentHandler { private: GraphicsHandler* m_graphicsHandler; PhysicsHandl...
FIX duplicate includes of GraphicsHandler
FIX duplicate includes of GraphicsHandler
C
apache-2.0
Chringo/SSP,Chringo/SSP
ef460ae7e5836154d5e8e811af87491126de5487
src/host/string_hash.c
src/host/string_hash.c
/** * \file string_hash.c * \brief Computes a hash value for a string. * \author Copyright (c) 2012-2014 Jason Perkins and the Premake project */ #include "premake.h" #include <string.h> int string_hash(lua_State* L) { const char* str = luaL_checkstring(L, 1); unsigned long seed = luaL_optint(L, 2, 0); lua...
/** * \file string_hash.c * \brief Computes a hash value for a string. * \author Copyright (c) 2012-2014 Jason Perkins and the Premake project */ #include "premake.h" #include <string.h> int string_hash(lua_State* L) { const char* str = luaL_checkstring(L, 1); unsigned long seed = luaL_optint(L, 2, 0); lua...
Fix implicit conversion warning when building with floating point Lua
Fix implicit conversion warning when building with floating point Lua
C
bsd-3-clause
bravnsgaard/premake-core,noresources/premake-core,starkos/premake-core,noresources/premake-core,premake/premake-core,tvandijck/premake-core,Yhgenomics/premake-core,felipeprov/premake-core,jstewart-amd/premake-core,Meoo/premake-core,TurkeyMan/premake-core,martin-traverse/premake-core,jstewart-amd/premake-core,jstewart-a...
beba7f47d873abe0a532753556511d0dabbb41fa
test/Sema/PR3675.c
test/Sema/PR3675.c
// RUN: clang -verify %s // // This example was reduced from actual code in Wine 1.1.13. GCC accepts this // code, while the correct behavior is to reject it. // typedef struct _IRP { union { struct { union {} u; // expected-note{{previous declaration is here}} struct { union {} u; // expect...
Add test case for PR 3675.
Add test case for PR 3675. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@65635 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
972adb833389607a84e879e2df565e37451d4c60
test/CodeGen/arm_asm_clobber.c
test/CodeGen/arm_asm_clobber.c
// RUN: clang -ccc-host-triple armv6-unknown-unknown -emit-llvm -S -o %t %s void test0(void) { asm volatile("mov r0, r0" :: ); } void test1(void) { asm volatile("mov r0, r0" ::: "cc", "memory" ); } void test2(void) { asm volatile("mov r0, r0" ::: "r0", "r1", "r2", "r3"); asm volatile("mov r0, r0" ::: ...
// RUN: clang-cc -triple armv6-unknown-unknown -emit-llvm -o %t %s void test0(void) { asm volatile("mov r0, r0" :: ); } void test1(void) { asm volatile("mov r0, r0" ::: "cc", "memory" ); } void test2(void) { asm volatile("mov r0, r0" ::: "r0", "r1", "r2", "r3"); asm volatile("mov r0, r0" ::: "r4", "...
Use clang-cc in this test.
Use clang-cc in this test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@90872 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
d9e9a0a7122b881fd97b190ed615daf572731a2b
test/CodeGen/pragma-pack-1.c
test/CodeGen/pragma-pack-1.c
// RUN: %clang_cc1 -emit-llvm -o - %s // PR4610 #pragma pack(4) struct ref { struct ref *next; } refs;
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.0 -emit-llvm -o - %s | FileCheck %s // PR4610 #pragma pack(4) struct ref { struct ref *next; } refs; // PR13580 struct S { char a[3]; #pragma pack(1) struct T { char b; int c; } d; #pragma pack() struct T2 { char b; int c; } d2; ...
Add IRGen test case for r179743.
Add IRGen test case for r179743. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@179777 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
e695b928e43435d62ac2e4bc3133cbe6eae44bbe
include/api/ofp_odp_compat.h
include/api/ofp_odp_compat.h
/* Copyright (c) 2015, ENEA Software AB * Copyright (c) 2015, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #if ODP_VERSION < 105 typedef uint64_t odp_time_t; #endif /* ODP_VERSION < 105 */ #if ODP_VERSION < 104 && ODP_VERSION > 101 #define odp_cpumask_default_worker(cpumask, num_...
/* Copyright (c) 2015, ENEA Software AB * Copyright (c) 2015, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #if ODP_VERSION < 105 typedef uint64_t odp_time_t; #endif /* ODP_VERSION < 105 */ #if ODP_VERSION < 104 && ODP_VERSION > 101 #define odp_cpumask_default_worker(cpumask, num_...
Define ODP_THREAD_WORKER and ODP_THREAD_CONTROL for odp versions < 102.
Define ODP_THREAD_WORKER and ODP_THREAD_CONTROL for odp versions < 102. Signed-off-by: José Pekkarinen <d7cb8761fb0e75b1a78c2fda4f1daed76cd46cfe@nokia.com> Reviewed-and-tested-by: Sorin Vultureanu <8013ba55f8675034bc2ab0d6c3a1c9650437ca36@enea.com>
C
bsd-3-clause
TolikH/ofp,OpenFastPath/ofp,TolikH/ofp,TolikH/ofp,OpenFastPath/ofp,OpenFastPath/ofp,OpenFastPath/ofp
d37719c942a0eaa9b50d3b6e8e2fa4e8a852eecc
nwn2mdk-lib/cgmath.h
nwn2mdk-lib/cgmath.h
#pragma once template <typename T> class Vector3 { public: T x, y, z; Vector3(T x, T y, T z) { this->x = x; this->y = y; this->z = z; } Vector3() : Vector3(0, 0, 0) { } T &operator[](unsigned i) { return (&x)[i]; } }; static_assert(sizeof(Vector3<float>) == 12); template <typename T> class Vecto...
#pragma once template <typename T> class Vector3 { public: T x, y, z; Vector3(T x, T y, T z) { this->x = x; this->y = y; this->z = z; } Vector3() : Vector3(0, 0, 0) { } T &operator[](unsigned i) { return (&x)[i]; } bool operator==(const Vector3 &v) const { return x == v.x && y == v.y && z == ...
Add "equal to" operator to Vector3
Add "equal to" operator to Vector3
C
apache-2.0
Arbos/nwn2mdk,Arbos/nwn2mdk,Arbos/nwn2mdk
7ba252b469a2ebe78210b2791241f4709aef9cd4
misc/threadinfo/parasite.c
misc/threadinfo/parasite.c
#define _GNU_SOURCE #include <stdio.h> #include <unistd.h> #include <sched.h> #include <stdlib.h> #define CHILD_STACK_SIZE 16384 int variable; int do_something() { printf("Running...\n"); variable = 1337; _exit(0); } int main(int argc, char *argv[]) { char *child_stack; char *child_stack_top; chi...
Add test of clone syscall with CLONE_THREAD
Add test of clone syscall with CLONE_THREAD
C
mit
WesleyAC/toybox,WesleyAC/toybox,WesleyAC/toybox,WesleyAC/toybox,WesleyAC/toybox
4aa666a35dc30b7b912ece51249e011a46feddd9
MicroReasoner/SMRPreprocessor.h
MicroReasoner/SMRPreprocessor.h
// // SMRPreprocessor.h // MicroReasoner // // Created by Ivano Bilenchi on 05/05/16. // Copyright © 2016 SisInf Lab. All rights reserved. // #ifndef SMRPreprocessor_h #define SMRPreprocessor_h // Pseudo-abstract class convenience macros. #define ABSTRACT_METHOD {\ @throw [NSException exceptionWithName:NSInterna...
// // SMRPreprocessor.h // MicroReasoner // // Created by Ivano Bilenchi on 05/05/16. // Copyright © 2016 SisInf Lab. All rights reserved. // #ifndef SMRPreprocessor_h #define SMRPreprocessor_h /** * Use this directive to mark method implementations that should be overridden * by concrete subclasses. */ #defin...
Add lazy property synthesis directives
Add lazy property synthesis directives
C
epl-1.0
sisinflab-swot/OWL-API-for-iOS,sisinflab-swot/OWL-API-for-iOS,sisinflab-swot/OWL-API-for-iOS
273ed9870aa064992fb3c25a1f4d8973b10ad36e
test/Analysis/redefined_system.c
test/Analysis/redefined_system.c
// RUN: %clang_cc1 -analyze -analyzer-checker=unix,core,experimental.security.taint -w -verify %s // Make sure we don't crash when someone redefines a system function we reason about. char memmove (); char malloc(); char system(); char stdin(); char memccpy(); char free(); char strdup(); char atoi(); int foo () { ...
Test case for r154451 (redefining system functions).
[analyzer] Test case for r154451 (redefining system functions). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@154624 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
36db197d9cc6af1062902a1678caa6825eaa2e9f
Settings/Tabs/Tab.h
Settings/Tabs/Tab.h
#pragma once #include <Windows.h> #include <unordered_map> #include "../Controls/Control.h" #include "../Controls/Controls.h" class UIContext; #define INIT_CONTROL(ctrlId, ctrlType, var) { \ var = ctrlType(ctrlId, _hWnd); \ _controlMap[ctrlId] = &var; \ } /// <summary> /// Abstract class that encapsulates ...
#pragma once #include <Windows.h> #include <unordered_map> #include "../Controls/Control.h" #include "../Controls/Controls.h" #define INIT_CONTROL(ctrlId, ctrlType, var) { \ var = ctrlType(ctrlId, _hWnd); \ _controlMap[ctrlId] = &var; \ } /// <summary> /// Abstract class that encapsulates functionality for ...
Remove old UIContext class declaration
Remove old UIContext class declaration
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
6dd934fccccc45354cdae8feb50f89e4f8abac8f
include/jwtxx/ios.h
include/jwtxx/ios.h
#pragma once #include "jwt.h" #include <ostream> namespace JWTXX { std::ostream& operator<<(std::ostream& stream, const Algorithm& alg) { stream << algToString(alg); return stream; } }
Add separate header for stream operators.
Add separate header for stream operators.
C
mit
RealImage/jwtxx,RealImage/jwtxx,madf/jwtxx,madf/jwtxx
323c8ec8b6a8c6795ebe02d4d7d470567bf93981
objc/message.h
objc/message.h
#ifndef _OBJC_MESSAGE_H_ #define _OBJC_MESSAGE_H_ #if defined(__x86_64) || defined(__i386) || defined(__arm__) || \ defined(__mips_n64) || defined(__mips_n32) /** * Standard message sending function. This function must be cast to the * correct types for the function before use. The first argument is the * receiv...
Fix clang's stupid warning to work around a bug in OS X headers...
Fix clang's stupid warning to work around a bug in OS X headers... git-svn-id: a68838e7bd575144b7122a20f5a950e65beaf589@35962 72102866-910b-0410-8b05-ffd578937521
C
mit
itumashyk/ndk-objc-gs-libobjc2,itumashyk/ndk-objc-gs-libobjc2
37e51a20cc9f3ff9afebdabdcd3a82b9a08d3302
sway/commands/create_output.c
sway/commands/create_output.c
#include <wlr/backend/multi.h> #include <wlr/backend/wayland.h> #include <wlr/backend/x11.h> #include "sway/commands.h" #include "sway/server.h" #include "log.h" static void create_output(struct wlr_backend *backend, void *data) { bool *done = data; if (*done) { return; } if (wlr_backend_is_wl(backend)) { wlr...
#include <wlr/config.h> #include <wlr/backend/multi.h> #include <wlr/backend/wayland.h> #ifdef WLR_HAS_X11_BACKEND #include <wlr/backend/x11.h> #endif #include "sway/commands.h" #include "sway/server.h" #include "log.h" static void create_output(struct wlr_backend *backend, void *data) { bool *done = data; if (*done...
Fix compilation against wlroots without X11 backend
Fix compilation against wlroots without X11 backend
C
mit
ascent12/sway,1ace/sway,SirCmpwn/sway,ascent12/sway,1ace/sway,ascent12/sway,1ace/sway
003bca2cb254ad4712d4aad3bcf14ed62b48be19
RobotC/Headers/Helper.h
RobotC/Headers/Helper.h
#ifndef HELPER_H #define HELPER_H /*Helper function for calculating ABSOLUTE maximum of two floats Will return maximum absolute value (ignores sign) */ float helpFindMaxAbsFloat(float a, float b) { float aAbs = abs(a); float bAbs = abs(b); if (aAbs > bAbs) { return aAbs; } else { return bAbs; } } //Helper ...
#ifndef HELPER_H #define HELPER_H #pragma systemFile /*Helper function for calculating ABSOLUTE maximum of two floats Will return maximum absolute value (ignores sign) */ float helpFindMaxAbsFloat(float a, float b) { float aAbs = abs(a); float bAbs = abs(b); if (aAbs > bAbs) { return aAbs; } else { return bA...
Add systemFile declaration to helper library
Add systemFile declaration to helper library
C
mit
RMRobotics/FTC_5421_2014-2015,RMRobotics/FTC_5421_2014-2015
4220192f474cce95ed3a83f7dd79692fb5ca1432
MdeModulePkg/Library/ExtendedIfrSupportLib/LibraryInternal.h
MdeModulePkg/Library/ExtendedIfrSupportLib/LibraryInternal.h
/** @file The file contain all library function for Ifr Operations. Copyright (c) 2007 - 2008, Intel Corporation. <BR> All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The ful...
/** @file The file contain all library function for Ifr Operations. Copyright (c) 2007 - 2008, Intel Corporation. <BR> All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The ful...
Remove over specific header file.
Remove over specific header file. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@6393 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
0397724420b14c35c7cd88dc6580bf780c2509e4
rts/c/tuning.h
rts/c/tuning.h
// Start of tuning.h. static char* load_tuning_file(const char *fname, void *cfg, int (*set_size)(void*, const char*, size_t)) { const int max_line_len = 1024; char* line = (char*) malloc(max_line_len); FILE *f = fopen(fname, "r"); if (f == NULL) { ...
// Start of tuning.h. static char* load_tuning_file(const char *fname, void *cfg, int (*set_size)(void*, const char*, size_t)) { const int max_line_len = 1024; char* line = (char*) malloc(max_line_len); FILE *f = fopen(fname, "r"); if (f == NULL) { ...
Fix error for short names
Fix error for short names
C
isc
diku-dk/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,HIPERFIT/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark