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
2cb8f29ecd8d8864a2110ef72fed242c107ef1a5
test/CodeGen/stack-size-section.c
test/CodeGen/stack-size-section.c
// RUN: %clang_cc1 -triple x86_64-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT // CHECK-ABSENT-NOT: section .stack_sizes // RUN: %clang_cc1 -triple x86_64-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT // CHECK-PRESENT: section .stack_sizes int foo() { return 42; ...
// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT // CHECK-ABSENT-NOT: section .stack_sizes // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT // CHECK-PRESENT: section .stack_sizes int foo...
Fix test added in r321992 failing on some buildbots.
Fix test added in r321992 failing on some buildbots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@321995 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
f3b0fb14d7f8e28aeb4d96e587689fe7a8394c69
tensorflow/core/platform/stringpiece.h
tensorflow/core/platform/stringpiece.h
/* Copyright 2015 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 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add IWYU tags to headers TF is re-exporting.
Add IWYU tags to headers TF is re-exporting. PiperOrigin-RevId: 291557362 Change-Id: If78efc5e990f203d5a36777e9531207c573c651a
C
apache-2.0
tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,aldian/tensorflow,gunan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,gunan/tensorflow,k...
4263808b7481a04033d56c05a24b2a26635e45c8
include/utils/allocator.h
include/utils/allocator.h
#ifndef _ALLOCATOR_H #define _ALLOCATOR_H #include <stddef.h> typedef struct allocator_t { void (*cfree)(void *ptr); } allocator; #define omf_calloc(nmemb, size) \ omf_calloc_real((nmemb), (size), __FILE__, __LINE__) void *omf_calloc_real(size_t nmemb, size_t size, const char *file, int line); #define omf_...
#ifndef _ALLOCATOR_H #define _ALLOCATOR_H #include <stddef.h> typedef struct allocator_t { void (*cfree)(void *ptr); } allocator; #define omf_calloc(nmemb, size) \ omf_calloc_real((nmemb), (size), __FILE__, __LINE__) void *omf_calloc_real(size_t nmemb, size_t size, const char *file, int line); #define omf_...
Add omf_free() to NULL the argument after free()
utils: Add omf_free() to NULL the argument after free()
C
mit
omf2097/openomf,omf2097/openomf,omf2097/openomf
8bbaaabf9f3db24f387ba1f7bf7374c6ea73f8d3
libevmjit/Utils.h
libevmjit/Utils.h
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
#pragma once #include <iostream> // The same as assert, but expression is always evaluated and result returned #define CHECK(expr) (assert(expr), expr) #if !defined(NDEBUG) // Debug namespace dev { namespace evmjit { std::ostream& getLogStream(char const* _channel); } } #define DLOG(CHANNEL) ::dev::evmjit::getLo...
Reimplement no-op version of DLOG to avoid C++ compiler warning
Reimplement no-op version of DLOG to avoid C++ compiler warning
C
mit
ethcore/evmjit,debris/evmjit,debris/evmjit,ethcore/evmjit
e00a1a4ce49ad353e25b1ff9eeee2dafd854ddfc
src/python/helpers/python_wrap_const_shared_ptr.h
src/python/helpers/python_wrap_const_shared_ptr.h
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_CONST_SHARED_PTR_H #define VISTK_PYTHON_HELPERS_PYTH...
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_CONST_SHARED_PTR_H #define VISTK_PYTHON_HELPERS_PYTH...
Bring other get_pointer instances into the scope
Bring other get_pointer instances into the scope
C
bsd-3-clause
Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,mathstuf/sprokit
440744911043f1b09cd3f13172cf023c7e150dac
src/classes/Window.h
src/classes/Window.h
#ifndef WINDOW_H #define WINDOW_H #include <ncurses.h> #include <array> #include "../game.h" // Used to define a datatype for calls to wborder struct Border { chtype ls, rs, ts, bs; chtype tl, tr, bl, br; }; class Window { public: Window(rect dim); // ctor ~Window(); // dtor ...
#ifndef WINDOW_H #define WINDOW_H #include <ncurses.h> #include <string> #include <array> #include "../game.h" // Used to define a datatype for calls to wborder struct Border { chtype ls, rs, ts, bs; chtype tl, tr, bl, br; }; class Window { public: Window(rect dim); // ctor ~Window(); ...
Fix missing string in namespace std compiler error
Fix missing string in namespace std compiler error On some systems
C
mit
jm-janzen/termq,jm-janzen/termq,jm-janzen/termq
bbd0db9d8b3329cacffc55cdca9a5e63911ed510
pyroot/inc/LinkDef.h
pyroot/inc/LinkDef.h
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ function TPython::Exec; #pragma link C++ function TPython::Eval; #pragma link C++ function TPython::Bind; #pragma link C++ function TPython::Prompt; #endif
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class TPython; #endif
Declare the class TPython instead of the static functions. With this change, make map will add TPython in system.rootmap and it is possible to do directly root > TPython::Prompt()
Declare the class TPython instead of the static functions. With this change, make map will add TPython in system.rootmap and it is possible to do directly root > TPython::Prompt() git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@9107 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
Dr15Jones/root,vukasinmilosevic/root,gganis/root,simonpf/root,mkret2/root,pspe/root,alexschlueter/cern-root,veprbl/root,Y--/root,vukasinmilosevic/root,gbitzes/root,beniz/root,zzxuanyuan/root-compressor-dummy,davidlt/root,simonpf/root,sirinath/root,nilqed/root,root-mirror/root,sbinet/cxx-root,jrtomps/root,arch1tect0r/ro...
b28c037d64ac7cee7e2c7d9d33b128d62aa4df8a
src/gallium/drivers/r300/r300_public.h
src/gallium/drivers/r300/r300_public.h
#ifndef R300_PUBLIC_H #define R300_PUBLIC_H struct radeon_winsys; struct pipe_screen* r300_screen_create(struct radeon_winsys *rws); #endif
#ifndef R300_PUBLIC_H #define R300_PUBLIC_H #ifdef __cplusplus extern "C" { #endif struct radeon_winsys; struct pipe_screen* r300_screen_create(struct radeon_winsys *rws); #ifdef __cplusplus } // extern "C" #endif #endif
Fix build, invalid extern "C" around header inclusion.
r300g: Fix build, invalid extern "C" around header inclusion. A previous patch to fix header inclusion within extern "C" neglected to fix the occurences of this pattern in r300 files. When the helper to detect this issue was pushed to master, it broke the build for the r300 driver. This patch fixes the r300 build. ...
C
mit
metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler
2a84d0b7af1e2ff2d250f0569529e78868cf498b
include/stdlib.h
include/stdlib.h
#ifndef __STDLIB_H__ #define __STDLIB_H__ #include <types.h> #define abs(ival) (ival < 0? -ival : ival) void *malloc(size_t size); void free(void *addr); struct task; void __free(void *addr, struct task *task); void *memcpy(void *dst, const void *src, size_t len); void *memset(void *src, int c, size_t len); #endi...
#ifndef __STDLIB_H__ #define __STDLIB_H__ #include <types.h> #define abs(ival) ((ival) < 0? -(ival) : (ival)) void *malloc(size_t size); void free(void *addr); struct task; void __free(void *addr, struct task *task); void *memcpy(void *dst, const void *src, size_t len); void *memset(void *src, int c, size_t len); ...
Fix missing parenthesis in abs()
Fix missing parenthesis in abs()
C
apache-2.0
onkwon/yaos,onkwon/yaos,onkwon/yaos
03b7bc948016753bc2e80d9b6e85edfb30da571d
src/log.h
src/log.h
#ifndef LOG_H #define LOG_H enum log_level { LOG_LEVEL_DEBUG = 10, LOG_LEVEL_MSG = 20, LOG_LEVEL_WARN = 30, LOG_LEVEL_ERR = 40 }; void set_log_level(enum log_level threshold); void log_debug(const char *fmt, ...); void log_msg(const char *fmt, ...); void log_warn(const char *fmt, ...); void log_...
#ifndef LOG_H #define LOG_H #include <stdarg.h> enum log_level { LOG_LEVEL_DEBUG = 10, LOG_LEVEL_MSG = 20, LOG_LEVEL_WARN = 30, LOG_LEVEL_ERR = 40 }; void set_log_level(enum log_level threshold); void log_debug(const char *fmt, ...); void log_msg(const char *fmt, ...); void log_warn(const char ...
Fix an error on linux
Fix an error on linux
C
apache-2.0
bestwpw/the_silver_searcher,siadat/the_silver_searcher,godbyk/the_silver_searcher,vehar/the_silver_searcher,Arkanosis/the_silver_searcher,danielshahaf/the_silver_searcher,vehar/the_silver_searcher,nodakai/the_silver_searcher,bc-jaymendoza/the_silver_searcher,Arkanosis/the_silver_searcher,christer155/the_silver_searcher...
ca0d5d42bc9c7b8acb6038d3969a5defb2946942
third-party/lib/openlibm/impl.h
third-party/lib/openlibm/impl.h
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
#ifndef _OPENLIB_FINITE_H #define _OPENLIB_FINITE_H #include <sys/cdefs.h> #define __BSD_VISIBLE 1 #include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h> static inline int finite(double x) { return isfinite(x); } static inline int finitef(float x) { return isfinite(x); } static inline i...
Fix openlibm compilation without defined macro __STDC__
third-party: Fix openlibm compilation without defined macro __STDC__
C
bsd-2-clause
embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox
60e74265f056ba274aa4b81034bd687e89279a9a
lib/neatogen/poly.h
lib/neatogen/poly.h
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Fix the sep and esep attributes to allow additive margins in addition to scaled margins.
Fix the sep and esep attributes to allow additive margins in addition to scaled margins.
C
epl-1.0
MjAbuz/graphviz,pixelglow/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,ellson/graphviz,tkelman/graphviz,jho1965us/graphviz,kbrock/graphviz,ellson/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,jho1965us/graphviz,kbrock/graphviz,MjAbuz/graphviz,ellson/graphviz,tkelman/graphviz,tkelma...
038fd84030d172d7b94cfd8d84a5fcc274cb3d1f
lib/internal.h
lib/internal.h
/* internal.h Internal definitions used by Expat. This is not needed to compile client code. The following definitions are made: FASTCALL -- Used for most internal functions to specify that the fastest possible calling convention be used. inline -- Used for selected internal functio...
/* internal.h Internal definitions used by Expat. This is not needed to compile client code. The following definitions are made: FASTCALL -- Used for most internal functions to specify that the fastest possible calling convention be used. inline -- Used for selected internal functio...
Disable FASTCALL on Windows since it turned out not to be as effective as hoped. Leaving the definition in the file so we'll know what it was that didn't work, and hopefully find something better in the future.
Disable FASTCALL on Windows since it turned out not to be as effective as hoped. Leaving the definition in the file so we'll know what it was that didn't work, and hopefully find something better in the future.
C
mit
PKRoma/expat,PKRoma/expat,PKRoma/expat,PKRoma/expat
9f4f6bdacbc60fd318fb56c587467cf18b1375fb
demos/FPL_Console/fpl_console.c
demos/FPL_Console/fpl_console.c
/* ------------------------------------------------------------------------------- Name: FPL-Demo | Console Description: A Hello-World Console Application testing Console Output/Input Requirements: No requirements Author: Torsten Spaete Changelog: ## 2018-04-23: - Initial creation of this description block - Cha...
/* ------------------------------------------------------------------------------- Name: FPL-Demo | Console Description: A Hello-World Console Application testing Console Output/Input Requirements: No requirements Author: Torsten Spaete Changelog: ## 2018-04-23: - Initial creation of this description block - Cha...
Use fpl_null instead of NULL in console demo
Use fpl_null instead of NULL in console demo
C
mit
f1nalspace/final_game_tech,f1nalspace/final_game_tech,f1nalspace/final_game_tech
d9ae84898ef7e2e97aa4eecd8a9df8e383d15c67
test/CFrontend/2005-12-04-AttributeUsed.c
test/CFrontend/2005-12-04-AttributeUsed.c
// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X int X __attribute__((used)); int Y; void foo() __attribute__((used)); void foo() {}
// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X int X __attribute__((used)); int Y; void foo() __attribute__((used)); void foo() {}
Use the -emit-llvm switch to generate LLVM assembly that can be parsed by the test case.
Use the -emit-llvm switch to generate LLVM assembly that can be parsed by the test case. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@30654 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-D...
e3490baa8f45f1894326a5925159ebf123b20c51
source/builtin/optimization/fibonacci.h
source/builtin/optimization/fibonacci.h
#ifndef FIBONACCI_H #define FIBONACCI_H #include "../function.h" namespace BuiltIn { namespace Optimization { // Class for finding minimum of function with Fibonacci method class Fibonacci : public Function { public: Fibonacci(); Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArg...
#ifndef FIBONACCI_H #define FIBONACCI_H #include "../function.h" namespace BuiltIn { namespace Optimization { // Class for finding minimum of function with Fibonacci method class Fibonacci : public Function { public: Fibonacci(); Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArg...
Fix for impicit conversions from double to int and vise versa.
Fix for impicit conversions from double to int and vise versa.
C
bsd-3-clause
ming13/aequatio,ming13/aequatio
d1a6dd6ad96b5eb291976d3d0c949496af470762
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 60 #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 61 #endif
Update Skia milestone to 61
Update Skia milestone to 61 BUG=skia: Change-Id: I9602ddb0f5a08481365e7c74f1fc93836f7e5080 Reviewed-on: https://skia-review.googlesource.com/17920 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
C
bsd-3-clause
Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platfo...
3dfdf82baff2eea1b02fcba51ea71fbedb0987a4
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 7 #define CLIENT_VERSION_BUILD ...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 0 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD ...
Update client version number and set false for prerelease
Update client version number and set false for prerelease
C
mit
Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin
bbf5d9516d6fac481b97fa8fc08ead890236edd4
Interfaces/WorldLogicInterface.h
Interfaces/WorldLogicInterface.h
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file WorldLogicInterface.h * @brief */ #include "ServiceInterface.h" #ifndef incl_Interfaces_WorldLogicInterface_h #define incl_Interfaces_WorldLogicInterface_h #include "ForwardDefines.h" #include <QObject> class QS...
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file WorldLogicInterface.h * @brief */ #ifndef incl_Interfaces_WorldLogicInterface_h #define incl_Interfaces_WorldLogicInterface_h #include "ServiceInterface.h" #include "ForwardDefines.h" #include <QObject> class QSt...
Move include within include guards.
Move include within include guards.
C
apache-2.0
jesterKing/naali,realXtend/tundra,AlphaStaxLLC/tundra,jesterKing/naali,realXtend/tundra,jesterKing/naali,BogusCurry/tundra,pharos3d/tundra,jesterKing/naali,realXtend/tundra,realXtend/tundra,AlphaStaxLLC/tundra,pharos3d/tundra,BogusCurry/tundra,antont/tundra,pharos3d/tundra,pharos3d/tundra,realXtend/tundra,AlphaStaxLLC/...
f5180d98f775f5e56ce3ef250240e24995655472
lilthumb.h
lilthumb.h
#ifndef lilthumb #define lilthumb #include <ctime> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); return str; } } #defin...
#ifndef lilthumb #define lilthumb #include <ctime> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); return str; } } #defi...
Change macro to let user choose output stream
Change macro to let user choose output stream
C
apache-2.0
jeromevelut/lilthumb
0d7b37d846af64a22f99f8181d32c0b8ff632e8f
system/check.c
system/check.c
#include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = SysBase->LibNode.lib_Version >= 40; bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA); bool cpu68040...
#include <proto/dos.h> #include <proto/exec.h> #include <proto/graphics.h> #include <exec/execbase.h> #include <graphics/gfxbase.h> #include "system/check.h" bool SystemCheck() { bool kickv40 = SysBase->LibNode.lib_Version >= 40; bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA); bool cpu68040...
Break lines properly on serial console.
Break lines properly on serial console.
C
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
398f341668286bd3d82256aa22a5547dc32e0f50
tests/Test.h
tests/Test.h
#pragma once #include "Jitter.h" #define TEST_VERIFY(a) if(!(a)) { int* p = 0; (*p) = 0; } class CTest { public: virtual ~CTest() {} virtual void Run() = 0; virtual void Compile(Jitter::CJitter&) = 0; #ifdef _MSC_VER //Overload operator new and delete to make sure we get proper 16-byte ...
#pragma once #include "AlignedAlloc.h" #include "Jitter.h" #define TEST_VERIFY(a) if(!(a)) { int* p = 0; (*p) = 0; } class CTest { public: virtual ~CTest() {} virtual void Run() = 0; virtual void Compile(Jitter::CJitter&) = 0; void* operator new(size_t allocSize) { return framework_a...
Use aligned alloc for test allocation.
Use aligned alloc for test allocation.
C
bsd-2-clause
Alloyed/Play--CodeGen,Alloyed/Play--CodeGen,Alloyed/Play--CodeGen,Alloyed/Play--CodeGen
8f1e45e84583b476bd86de7fb2d23bf391a67f9a
main.c
main.c
#include <stdio.h> #include <string.h> #include <math.h> #include "calc.h" #include "input.h" int main(void) { while (1){ char input[65536]; double ans; read_line(input); if (strcmp(input, "exit") == 0 || strcmp(input, "quit") == 0){ break; } ans = calc...
#include <stdio.h> #include <string.h> #include <math.h> #include "calc.h" #include "input.h" int main(void) { while (1){ char input[65536]; double ans; read_line(input); if (strlen(input) == 0 || strcmp(input, "exit") == 0 || strcmp(input, "quit") == 0){ break; ...
Exit when input line is empty
Exit when input line is empty
C
mit
Roadagain/Calculator,Roadagain/Calculator
3201618e6105204892a52265ecd84372f6b7925b
CMake/TestQnanhibit.c
CMake/TestQnanhibit.c
#include <stdio.h> #include <float.h> int main(int argc, char *argv[]) { char *me; float qnan, zero; int i; me = argv[0]; if (sizeof(float) != sizeof(int)) { fprintf(stderr, "%s: MADNESS: sizeof(float)=%d != sizeof(int)=%d\n", me, (int)sizeof(float), (int)sizeof(int)); return -1; ...
#include <stdio.h> #include <float.h> #if defined(__BORLANDC__) # include <math.h> # include <float.h> #endif int main(int argc, char *argv[]) { #if defined(__BORLANDC__) // Disable floating point exceptions in Borland _control87(MCW_EM, MCW_EM); #endif // defined(__BORLANDC__) char *me; float qnan, zero; ...
Disable floating point exceptions on Borland compiler
FIX: Disable floating point exceptions on Borland compiler
C
apache-2.0
LucHermitte/ITK,cpatrick/ITK-RemoteIO,hendradarwin/ITK,PlutoniumHeart/ITK,blowekamp/ITK,InsightSoftwareConsortium/ITK,daviddoria/itkHoughTransform,biotrump/ITK,hendradarwin/ITK,LucHermitte/ITK,CapeDrew/DCMTK-ITK,CapeDrew/DCMTK-ITK,wkjeong/ITK,InsightSoftwareConsortium/ITK,eile/ITK,hinerm/ITK,GEHC-Surgery/ITK,paulnovo/I...
d3821b4d33b0ac75f5880c53ffdf960b3d7ea419
src/choices.h
src/choices.h
/** \file choices.h switches that control debugging in source code. * Uncomment the defines below to allow a specific type of compilation */ #ifndef __choices_h__ #define __choices_h__ /** Turn on YACAS_DEBUG if you want to see run-time statistics * after typing Exit() */ //#define YACAS_DEBUG /** Turn on USE_A...
/** \file choices.h switches that control debugging in source code. * Uncomment the defines below to allow a specific type of compilation */ #ifndef __choices_h__ #define __choices_h__ /** Turn on YACAS_DEBUG if you want to see run-time statistics * after typing Exit() */ //#define YACAS_DEBUG /** Turn on USE_A...
Use at least 32 bits long reference counters by default to avoid nasty, hard to track segfaults when calculations get larger
Use at least 32 bits long reference counters by default to avoid nasty, hard to track segfaults when calculations get larger
C
lgpl-2.1
grzegorzmazur/yacas,tomaszkrysiuk/yacas,MateuszSnamina/yacas,MateuszSnamina/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,martanoga/yacas,qwert2003/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,martanoga/yacas,M...
d53c524fde11a730c3f89d709980706ec93ce881
src/rtcmix/gen/fsize.c
src/rtcmix/gen/fsize.c
#include <ugens.h> #include <stdio.h> /* these 3 defined in makegen.c */ extern double *farrays[]; extern int sizeof_farray[]; extern int f_goto[]; int fsize(int genno) /* returns the size of function number genno */ { if(!sizeof_farray[f_goto[genno]]) { fprintf(stderr,"fsize: You haven't allocated functi...
#include <ugens.h> #include <stdio.h> /* these 3 defined in makegen.c */ extern double *farrays[]; extern int sizeof_farray[]; extern int f_goto[]; /* returns the size of function number genno */ int fsize(int genno) { if (!sizeof_farray[f_goto[genno]]) { die("fsize", "You haven't allocated function %d yet!", g...
Use die and return instead of exiting.
Use die and return instead of exiting.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
973ad55a32a58adc24d0d4f217a57cca3289e71a
src/main/cc/any_sketch/util/macros.h
src/main/cc/any_sketch/util/macros.h
#ifndef SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_ #define SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_ #define RETURN_IF_ERROR(status) \ do { \ Status _status = (status); \ if (!_status.ok()) return _status; \ } while (0) #endif // SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_...
/* * Copyright 2020 The Any Sketch Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Add LICENSE and source headers to any-sketch repo.
Add LICENSE and source headers to any-sketch repo. BUG=161899344 Change-Id: I201d5420c80f9e16b6832c1bc31adf6ca6ab8cb1
C
apache-2.0
world-federation-of-advertisers/common-cpp
e795d5fbcbb4658c49cb607694eb07ce85a10528
php_shmt.h
php_shmt.h
#ifndef PHP_SHMT_H #define PHP_SHMT_H #define PHP_SHMT_EXTNAME "SHMT" #define PHP_SHMT_EXTVER "1.0" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry shmt_module_entry; #define phpext_shmt_ptr &shmt_module_entry; #endif /* PHP_SHMT_H */
#ifndef PHP_SHMT_H #define PHP_SHMT_H #define PHP_SHMT_EXTNAME "SHMT" #define PHP_SHMT_EXTVER "1.0.1dev" #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ extern zend_module_entry shmt_module_entry; #define phpext_shmt_ptr &shmt_module_entry; #endif /* PHP_SHMT_H */
Modify the SHMT version to 1.0.1dev
Modify the SHMT version to 1.0.1dev
C
mit
sevenval/SHMT,sevenval/SHMT
192d8dbbd110766bf3c5c5bf39f1f08ffbe0760b
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { fr...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { fr...
Change methods in DataStore to non-static anymore (it is alr a singleton)
Change methods in DataStore to non-static anymore (it is alr a singleton)
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
06a8fac3e909e7df4bd888cbb76964479ae80abc
gtk/tests/accessible.c
gtk/tests/accessible.c
#include <gtk/gtk.h> static void test_type (GType t) { GtkWidget *w; AtkObject *a; if (g_type_is_a (t, GTK_TYPE_WIDGET)) { w = (GtkWidget *)g_object_new (t, NULL); a = gtk_widget_get_accessible (w); g_assert (GTK_IS_ACCESSIBLE (a)); g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL...
#include <gtk/gtk.h> static void test_type (GType t) { GtkWidget *w; AtkObject *a; if (g_type_is_a (t, GTK_TYPE_WIDGET)) { w = (GtkWidget *)g_object_new (t, NULL); a = gtk_widget_get_accessible (w); g_assert (GTK_IS_ACCESSIBLE (a)); g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL...
Use testing API instead of duplicating it
tests: Use testing API instead of duplicating it
C
lgpl-2.1
ebassi/gtk,ebassi/gtk,jigpu/gtk,chergert/gtk,ahodesuka/gtk,msteinert/gtk,Lyude/gtk-,bratsche/gtk-,Adamovskiy/gtk,davidgumberg/gtk,davidgumberg/gtk,alexlarsson/gtk,ahodesuka/gtk,msteinert/gtk,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxGtk,ahodesuka/gtk,jadahl/gtk,Lyude/gtk-,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxG...
aacc405f32026f676293f5ba64d50e9a70ef50a9
testmud/mud/home/Test/initd.c
testmud/mud/home/Test/initd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add global access to test subsystem
Add global access to test subsystem
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
c0cf830770eba3893b0c61317d8772f9e837ddbf
Example/SMPageControl/SMViewController.h
Example/SMPageControl/SMViewController.h
// // SMViewController.h // SMPageControl // // Created by Jerry Jones on 10/13/12. // Copyright (c) 2012 Spaceman Labs. All rights reserved. // #import <UIKit/UIKit.h> #import "SMPageControl.h" @interface SMViewController : UIViewController @property (nonatomic, readonly) IBOutlet UIScrollView *scrollview; @pro...
// // SMViewController.h // SMPageControl // // Created by Jerry Jones on 10/13/12. // Copyright (c) 2012 Spaceman Labs. All rights reserved. // #import <UIKit/UIKit.h> #import "SMPageControl.h" @interface SMViewController : UIViewController @property (nonatomic, weak) IBOutlet UIScrollView *scrollview; @propert...
Change IBOutlet attributes from readonly to weak
Change IBOutlet attributes from readonly to weak This fixes the warning "readonly IBOutlet property when auto-synthesized may not work correctly with 'nib' loader". Also, weak is better than assign when using weak references to objects, because weak prevents dangling pointers.
C
mit
doanhkisi/SMPageControl,CorzFree/SMPageControl,Spaceman-Labs/SMPageControl,HelloWilliam/SMPageControl
5ba364466dabf4e4d8809218197b5bd0761db881
IntelFrameworkPkg/Include/FrameworkDxe.h
IntelFrameworkPkg/Include/FrameworkDxe.h
/** @file Header file that supports Framework extension to UEFI/PI for DXE modules. This header file must include Framework extension definitions common to DXE modules. Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made avai...
/** @file Header file that supports Framework extension to UEFI/PI for DXE modules. This header file must include Framework extension definitions common to DXE modules. Copyright (c) 2007-2009, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made availab...
Update Copyright. Delete erroneous "Module Name" line.
Update Copyright. Delete erroneous "Module Name" line. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8673 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
590ed8f60ad02fe8f1ed66c086c04e3fe4ea29b5
src/lib/MarbleLocale.h
src/lib/MarbleLocale.h
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org> // Copyright 2007 Inge Wallin <ingwa@kde.o...
// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org> // Copyright 2007 Inge Wallin <ingwa@kde.o...
Remove simpleLanguageCode (unused and not implemented).
Remove simpleLanguageCode (unused and not implemented). svn path=/trunk/KDE/kdeedu/marble/; revision=1102505
C
lgpl-2.1
AndreiDuma/marble,tucnak/marble,utkuaydin/marble,Earthwings/marble,probonopd/marble,Earthwings/marble,adraghici/marble,AndreiDuma/marble,AndreiDuma/marble,utkuaydin/marble,rku/marble,probonopd/marble,oberluz/marble,probonopd/marble,AndreiDuma/marble,rku/marble,oberluz/marble,David-Gil/marble-dev,utkuaydin/marble,rku/ma...
bcdfda8195e5414119afebb64601f89b37cf04fc
src/ifdhandler.c
src/ifdhandler.c
#include <ifdhandler.h>
#include <ifdhandler.h> #include <stdio.h> RESPONSECODE IFDHCreateChannelByName(DWORD Lun, LPSTR DeviceName) { return IFD_NO_SUCH_DEVICE; } RESPONSECODE IFDHCreateChannel(DWORD Lun, DWORD Channel) { char buf[40]; snprintf(buf, sizeof(buf), "/dev/o2scr%d", Channel); return IFDHCreateChannelByName(Lun, buf); } RE...
Add empty dummy implementation of ifd handler
Add empty dummy implementation of ifd handler Signed-off-by: Dmitry Eremin-Solenikov <b6edad08270b2e4ffbcb0879e25a0e29a48c5275@gmail.com>
C
lgpl-2.1
lumag/o2scr-ifd
5c015c4a0da723ab62abcedc2a861daa1c320a00
tutorial/clock.h
tutorial/clock.h
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 extern "C" bool QueryPerformanceCounter(uint64_t *); extern "C" bool QueryPerformanceFrequency(uint64_t *); double current_time() { uint64_t t, freq; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq...
// A current_time function for use in the tests. Returns time in // milliseconds. #ifdef _WIN32 #include <Windows.h> double current_time() { LARGE_INTEGER freq, t; QueryPerformanceCounter(&t); QueryPerformanceFrequency(&freq); return (t.QuadPart * 1000.0) / freq.QuadPart; } // Gross, these come from W...
Fix build of tutorials that require libpng under Visual Studio.
Fix build of tutorials that require libpng under Visual Studio. Former-commit-id: ca864cc2e2063756ba8e48de390d1cf947f2efad
C
mit
Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide
61fbb5891d9dcde973da71de4011ba748948fca1
src/init.c
src/init.c
#include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include "common.h" static void reap(char *argv[]); static pid_t spawn(char *argv[]); extern void init(char *argv[]); int main(int argc, char *argv[]) { const char *name = getenv("PROCNAME"); if (name && *name) setpro...
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include "common.h" static void reap(char *argv[]); static pid_t spawn(char *argv[]); extern void init(char *argv[]); const char *path; int main(int argc, char *argv[]) { path = strdup(argv[0]); const ch...
Save program path before doing setprocname().
Save program path before doing setprocname().
C
bsd-2-clause
Shizmob/finite
c1e16b1a0d2179370ae26c8f567441e6be803294
ugeneric.h
ugeneric.h
#include "generic.h" #include "dict.h" #include "vector.h" #include "list.h" #include "htbl.h" #include "dsu.h" #include "heap.h" #include "bst.h" #include "sort.h" #include "heap.h" #include "queue.h" #include "mem.h" #include "bitmap.h" #include "string_utils.h" #include "file_utils.h"
#if defined(__cplusplus) extern "C" { #endif #include "generic.h" #include "dict.h" #include "vector.h" #include "list.h" #include "htbl.h" #include "dsu.h" #include "heap.h" #include "bst.h" #include "sort.h" #include "heap.h" #include "queue.h" #include "mem.h" #include "bitmap.h" #include "string_utils.h" #include ...
Add a little bit of c++ awareness to the main header
Add a little bit of c++ awareness to the main header
C
mit
vslapik/ugeneric,vslapik/ugeneric,vslapik/ugeneric
a91d1e7ba1332bad5a735c067c487ab0c9d0eb9d
src/laco.h
src/laco.h
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState; /** * Makes a new LacoState. * * param argument count (argc) * param arguments (argv) * * return a pointer to new LacoState. */ struct LacoState* laco_newLacoState(int, const char**); /** * ...
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState; /** * Makes a new LacoState. * * param argument count (argc) * param arguments (argv) * * return a pointer to new LacoState. */ struct LacoState* laco_newLacoState(int, const char**); /** * ...
Add documentation for new get and set functions
Add documentation for new get and set functions
C
bsd-2-clause
sourrust/laco
8e280cced6657669e8f47b19ee22f587ff91b721
Wikipedia/Code/WMFRelatedSearchResults.h
Wikipedia/Code/WMFRelatedSearchResults.h
#import <Foundation/Foundation.h> @class MWKSearchResult; @interface WMFRelatedSearchResults : NSObject @property (nonatomic, strong, readonly) NSURL *siteURL; @property (nonatomic, strong, readonly) NSArray<MWKSearchResult *> *results; - (instancetype)initWithURL:(NSURL *)URL results:(NSArray *)results; @end
#import <Mantle/Mantle.h> @class MWKSearchResult; @interface WMFRelatedSearchResults : MTLModel @property (nonatomic, strong, readonly) NSURL *siteURL; @property (nonatomic, strong, readonly) NSArray<MWKSearchResult *> *results; - (instancetype)initWithURL:(NSURL *)URL results:(NSArray *)results; @end
Make search results storable in database as metadata
Make search results storable in database as metadata Just need to inherit from MTLModel for NSCoding
C
mit
anirudh24seven/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,anirudh24seven/wikipedia-ios,anirudh24seven/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,wikimedia/apps-i...
7fb9042a91ebeeb34a622f73ff61c9feef891e8b
src/main.c
src/main.c
/* * Copyright 2015, Wink Saville * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. */ #include <sel4/printf.h> /** * No parameters are passed to main, the return * value is ignored a...
/* * Copyright 2015, Wink Saville * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. */ #include <sel4/printf.h> /** * No parameters are passed to main, the return * value is ignored a...
Change indent to 4 spaces.
Change indent to 4 spaces.
C
bsd-2-clause
winksaville/sel4-app-helloworld
7e3576d2e120fb69cc360c976341bf5491bbb633
src/port.h
src/port.h
// Copyright 2013 by Tetsuo Kiso // // 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 ...
// Copyright 2013 by Tetsuo Kiso // // 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 ...
Include the OS X specific header to use OS specific macros.
Include the OS X specific header to use OS specific macros.
C
apache-2.0
clab/fast_align,spanishdict/fast_align,LoreDema/fast_align,clab/fast_align,christianbuck/fast_align,LoreDema/fast_align,spanishdict/fast_align,christianbuck/fast_align
51f8c2e766d7d7110e073630b6a1885eb7d7cabc
bst.c
bst.c
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; }
#include "bst.h" static void BST_Transplant(BST* T, BSTNode* u, BSTNode* v); struct BSTNode { BSTNode* left; BSTNode* right; BSTNode* p; void* k; }; struct BST { BSTNode* root; }; BST* BST_Create(void) { BST* T = (BST* )malloc(sizeof(BST)); T->root = NULL; return T; } BSTNode* BSTNode_Create(void* k) { BS...
Add BSTNode create function implementation
Add BSTNode create function implementation
C
mit
MaxLikelihood/CADT
c80f71802443a6a352a7ed7c0f1dfbeda97d961a
bst.h
bst.h
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); void BST_Inorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Preorder_Tree_Walk(BST* T, void (f)(void*)); void BST_Postor...
Add BST Tree Root function declaration
Add BST Tree Root function declaration
C
mit
MaxLikelihood/CADT
8ae38b029c6566f18bcf7a8781c1235f2d57acbc
unique-characters/unique-characters/main.c
unique-characters/unique-characters/main.c
// // main.c // unique-characters // // Created by Jack Zuban on 8/20/17. // Copyright © 2017 Jack Zuban. All rights reserved. // #include <stdio.h> void printCharacters(char *inputString) { int dictinary[30] = {}; while (*inputString) { dictinary[(int) *inputString]++; printf("Current ch...
// // main.c // Check if a string has all unique characters by counting how many times each character appears using its ASCII code // // Created by Jack Zuban on 8/20/17. // Copyright © 2017 Jack Zuban. All rights reserved. // #include <stdio.h> _Bool isUniqueChars(char *str) { int frequencyDictionary[127] = ...
Check if a string has all unique characters algorithm
Check if a string has all unique characters algorithm
C
mit
jack-zuban/c-practice
d56b3dc386fbcc966e600b357768b078ceea550d
ios/RNFlurryAnalytics.h
ios/RNFlurryAnalytics.h
#import "RCTBridgeModule.h" @interface RNFlurryAnalytics : NSObject <RCTBridgeModule> @end
#import <React/RCTBridgeModule.h> @interface RNFlurryAnalytics : NSObject <RCTBridgeModule> @end
Update header include paths to support React Native 0.40
Update header include paths to support React Native 0.40
C
mit
xxsnakerxx/react-native-flurry-analytics,xxsnakerxx/react-native-flurry-analytics
77cea865bdef876d2745442ce2894ec8288d6cb3
kernel/kernel.c
kernel/kernel.c
#include <stddef.h> #include <stdint.h> #include "./arch/x86/idt.h" #include <terminal.h> #include <kabort.h> #include <kassert.h> void kernel_main() { term_initialize(); idt_install(); kputs("Interrupt?"); int i = 0; int b = 128; int d = 1; d = b / i; while (1) ; }
#include <stddef.h> #include <stdint.h> #include "./arch/x86/gdt.h" #include "./arch/x86/idt.h" #include <terminal.h> #include <kabort.h> #include <kassert.h> void kernel_main() { term_initialize(); gdt_install(); idt_install(); kputs("Hello kernel!"); while (1) { }; }
Install GDT and remove division by 0
Install GDT and remove division by 0
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth
57bd2cbba55e1dc808ac5daec0b8440d542eafbe
ios/src/TGGeoPoint.h
ios/src/TGGeoPoint.h
// // TGGeoPoint.h // tangram // // Created by Karim Naaji on 10/27/16. // // #ifndef TGGeoPoint_h #define TGGeoPoint_h struct TGGeoPoint { double longitude; double latitude; }; typedef struct TGGeoPoint TGGeoPoint; static inline TGGeoPoint TGGeoPointMake(double lat, double lon) { TGGeoPoint p; p...
// // TGGeoPoint.h // tangram // // Created by Karim Naaji on 10/27/16. // // #pragma once struct TGGeoPoint { double longitude; double latitude; }; typedef struct TGGeoPoint TGGeoPoint; static inline TGGeoPoint TGGeoPointMake(double lat, double lon) { TGGeoPoint p; p.latitude = lat; p.longit...
Update for pragma syntax - Only unsupported on older versions of GCC
Update for pragma syntax - Only unsupported on older versions of GCC
C
mit
quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,cleeus/tangram...
4be116f58417a5f94ea51babff4e1a06425ab37e
loopback_test.c
loopback_test.c
#include "usbdmx.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char ** argv) { int result; int set_value; int count = 0; TDMXArray dmx_out; TDMXArray dmx_in; // Open Interface in Mode 6 (PC Out -> DMX Out & DMX In -> PC In) // See head of this file for ...
#include "usbdmx.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char ** argv) { int result; int set_value; int count = 0; TDMXArray dmx_out; TDMXArray dmx_in; // Open Interface in Mode 6 (PC Out -> DMX Out & DMX In -> PC In) // See head of this file for ...
Fix typo dmx_out instead of dmx_in
Fix typo dmx_out instead of dmx_in
C
bsd-3-clause
DMXControl/usbdmx,DMXControl/usbdmx,DMXControl/usbdmx,fx5/usbdmx,fx5/usbdmx,fx5/usbdmx
f74c134dddc1b7307c24f98180256cd0fec1d316
Useful/FunTypes.h
Useful/FunTypes.h
#if defined TESTFLIGHT #define TESTFLIGHT YES #define DISTRIBUTION NO #elif defined DEBUG #define TESTFLIGHT NO #define DISTRIBUTION NO #else #define TESTFLIGHT NO #define DISTRIBUTION YES #endif #define CLIP(X,min,max) MIN(MAX(X, min), max) #define white [UIColor whiteColor] #define yellow [UIColor yellowColor] #def...
#define MODE_DEV 1 #define MODE_TESTFLIGHT 2 #define MODE_DISTRIBUTION 3 #if defined TESTFLIGHT #define MODE MODE_TESTFLIGHT #elif defined DEBUG #define MODE MODE_DEV #else #define MODE MODE_DISTRIBUTION #endif #define IS_DISTRIBUTION (MODE == MODE_DISTRIBUTION) #define CLIP(X,min,max) MIN(MAX(X, min), ma...
Add macro MODE and MODE_DEV, MODE_TESTFLIGHT, MODE_DISTRIBUTION
Add macro MODE and MODE_DEV, MODE_TESTFLIGHT, MODE_DISTRIBUTION
C
mit
ASAPPinc/fun-go,marcuswestin/fun-go,marcuswestin/FunGo
37a8410bea290d24e316a841d3fac2fe03815011
xftwidth.c
xftwidth.c
#include <X11/Xft/Xft.h> #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> #include <fontconfig/fontconfig.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { if (argc < 3) { printf("xftwidth font string\n"); return 1; } Display *dpy; XftFont *fn; ...
#include <X11/Xft/Xft.h> #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> #include <fontconfig/fontconfig.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { if (argc < 3) { printf("xftwidth font string\n"); return 1; } Display *dpy; XftFont *fn; ...
Fix wrong result caused by newline character.
Fix wrong result caused by newline character.
C
mit
vixus0/xftwidth
071d3ba3b99c9bd61b31eb08f7778afd094bd779
searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h
searchsummary/src/vespa/searchsummary/docsummary/slime_filler_filter.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vespa/vespalib/stllike/hash_map.h> #include <optional> namespace search::docsummary { /* * Class filtering which fields to render in a struct fi...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/stllike/string.h> #include <vespa/vespalib/stllike/hash_map.h> #include <optional> namespace search::docsummary { /* * Class filtering which fields to render in a struct fi...
Add comment describing semantics of return value from SlimeFillerFilter::get_filter().
Add comment describing semantics of return value from SlimeFillerFilter::get_filter().
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
3129fa53af679c2f869d0799c42bc8cf41465fda
common/spherical_coordinates.h
common/spherical_coordinates.h
#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H #define LAGER_COMMON_SPHERICAL_COORDINATES_H /* * Code based on: * http://stackoverflow.com/questions/17016175/c-unordered-map-using-a-custom-class-type-as-the-key */ struct SphericalCoordinates { int phi; int theta; bool operator==(const SphericalCoordinates &other)...
#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H #define LAGER_COMMON_SPHERICAL_COORDINATES_H #include <math.h> /* * Code based on: * http://stackoverflow.com/questions/17016175/c-unordered-map-using-a-custom-class-type-as-the-key */ struct SphericalCoordinates { int phi; int theta; bool operator==(const Spherical...
Add missing math.h include for M_PHI definition
Common: Add missing math.h include for M_PHI definition
C
mit
andresodio/lager,andresodio/lager,andresodio/lager,andresodio/lager
5a9f64253ca71c0923304c033d121d5f27dd69ad
document/src/vespa/document/serialization/annotationdeserializer.h
document/src/vespa/document/serialization/annotationdeserializer.h
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/annotation/span.h> #include <vespa/document/serialization/util.h> namespace vespalib { class nbostream; } namespace document { class AlternateSpanList; class An...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/annotation/span.h> #include <vespa/document/serialization/util.h> #include <vector> namespace vespalib { class nbostream; } namespace document { class Alternate...
Include what you need as gcc 6 provides less.
Include what you need as gcc 6 provides less.
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
35fac131d1331779d31a9de6d40b3ba1d8a4d5b9
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d, e, f, g) SL...
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(HD_Unknown) SLTM(HD_Lost) #define HTTPH(a, b, c, d,...
Add a Debug shmemlog tag.
Add a Debug shmemlog tag. git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@104 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
chrismoulton/Varnish-Cache,feld/Varnish-Cache,ambernetas/varnish-cache,drwilco/varnish-cache-drwilco,franciscovg/Varnish-Cache,drwilco/varnish-cache-old,ajasty-cavium/Varnish-Cache,varnish/Varnish-Cache,1HLtd/Varnish-Cache,ajasty-cavium/Varnish-Cache,drwilco/varnish-cache-old,franciscovg/Varnish-Cache,mrhmouse/Varnish-...
f7499f65a6149495f5750a1aade611d7ce44d9e9
src/common.h
src/common.h
#ifndef __COMMON_H__ #define __COMMON_H__ #if NODE_VERSION_AT_LEAST(0,11,0) #define __NODE_V0_11__ #endif #endif
#ifndef __COMMON_H__ #define __COMMON_H__ #ifdef NODE_VERSION_AT_LEAST #if NODE_VERSION_AT_LEAST(0,11,0) #define __NODE_V0_11__ #endif #endif #endif
Fix build under node.js 0.10.0
Fix build under node.js 0.10.0
C
lgpl-2.1
zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js,zenozeng/yapcduino.js
47f47c7d5a7c9bf8d222a1b6ecb62ebaa28617fc
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
Remove unnecessarily public method from interface
Remove unnecessarily public method from interface
C
mit
lifcio/MagicalRecord,akaking/MagicalRecord,csotiriou/MagicalRecord,donvaughn/MagicalRecord,BlessNeo/MagicalRecord,tmacyml/MagicalRecord,sujeking/MagicalRecord,zyncro/MagicalRecord,libiao88/MagicalRecord,lintaoSuper/MagicalRecord,zezefamily/MagicalRecord,kidaa/MagicalRecord,donvaughn/MagicalRecord,yanyuqingshi/MagicalRe...
dcc7db1fa3167c6dca1fef18dd38b820952faa49
CoreFoundation/Base.subproj/CFAsmMacros.h
CoreFoundation/Base.subproj/CFAsmMacros.h
// 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/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
// 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/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
Fix libFoundation.so being flagged as requiring executable stack
Fix libFoundation.so being flagged as requiring executable stack libFoundation.so is flagged as requiring an executable stack on Linux, although it does not. This is due to GNU as behavior. Please see discussion at https://bugs.swift.org/browse/SR-2700?jql=text%20~%20%22executable%20stack%22 This was already intended...
C
apache-2.0
ikesyo/swift-corelibs-foundation,JGiola/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,ikesyo/swift-corelibs-foundation,johnno1962b/swift-corelibs-foundation,parkera/swift-corelibs-foundation,alblue/swift-corelibs-foundation,amraboelela/swift-corelibs-foundation,apple/swift-corelibs-foundation,johnno19...
c3eea81ded78e7803b42f09697bc202e1b1aaf86
sbr/read_line.c
sbr/read_line.c
#include <h/mh.h> const char * read_line(void) { char *cp; static char line[BUFSIZ]; fflush(stdout); if (fgets(line, sizeof(line), stdin) == NULL) return NULL; if ((cp = strchr(line, '\n'))) *cp = 0; return line; }
#include <h/mh.h> #include <h/utils.h> const char * read_line(void) { static char line[BUFSIZ]; fflush(stdout); if (fgets(line, sizeof(line), stdin) == NULL) return NULL; TrimSuffixC(line, '\n'); return line; /* May not be a complete line. */ }
Replace strchr() condition with TrimSuffixC().
Replace strchr() condition with TrimSuffixC().
C
bsd-3-clause
mcr/nmh,mcr/nmh
dad599a4b721780c6b11122bf88c39bdda5c9eed
include/tiramisu/MainPage.h
include/tiramisu/MainPage.h
/** \file * This file only exists to contain the front-page of the documentation */ /** \mainpage Tiramisu Optimization Framework * Tiramisu is a library that is designed to simplify code optimization and code generation. The user can express his code in the Tiramisu intermediate representation (Tiramisu IR), he ...
/** \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/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/COLi
37dd8f83def8e85cdf1b71528832980021078d86
compat/linux/sys/user.h
compat/linux/sys/user.h
// Copyright 2018 The Crashpad 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 ...
// Copyright 2018 The Crashpad 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 ...
Fix compilation issue on arm64 with Debian's glibc 2.19
Fix compilation issue on arm64 with Debian's glibc 2.19 Fuchsia's glibc is derived from Debian so it's causing issues on Fuchsia. Change-Id: I46368eb08f7cc7338783f115869e5c761f35e465 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2630288 Reviewed-by: Joshua Peraza <f5809a5e35ec7e1bd0e25cb...
C
apache-2.0
chromium/crashpad,chromium/crashpad,chromium/crashpad
0bcab9dae52e680b345f83228a83370f370fc929
c_src/kinit.c
c_src/kinit.c
#include <erl_nif.h> static ERL_NIF_TERM kinit(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { return enif_make_atom(env, "true"); } static ErlNifFunc nif_funcs[] = { {"kinit", 2, kinit} }; ERL_NIF_INIT(kinit, nif_funcs, NULL, NULL, NULL, NULL)
#include <erl_nif.h> static ERL_NIF_TERM kinit(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { return enif_make_atom(env, "true"); } int noop(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info) { return 0; } static ErlNifFunc nif_funcs[] = { {"kinit", 2, kinit} }; ERL_...
Add a noop for upgrade so we don't get the warning.
Add a noop for upgrade so we don't get the warning.
C
bsd-3-clause
simmel/rabbitmq-auth-backend-kerberos
41e9e0c4988a92ba3cba90959622ae8673f7c1f7
src/rtcmix/io.c
src/rtcmix/io.c
#include <stdio.h> extern int print_is_on; double m_open(float *, short, double *); double m_input(float *p,short n_args,double *pp) { p[1] = (n_args > 1) ? p[1] : 0.; p[2] = 0; n_args = 3; if(print_is_on) fprintf(stderr,"Opening input file as unit %d\n",(int)p[1]); return m_open(p,n_args,pp); } double m_outp...
#include <globals.h> #include <stdio.h> extern double m_open(float *, short, double *); double m_input(float *p,short n_args,double *pp) { p[1] = (n_args > 1) ? p[1] : 0.; p[2] = 0; n_args = 3; if(print_is_on) fprintf(stderr,"Opening input file as unit %d\n",(int)p[1]); return m_open(p,n_args,pp); } double m_...
Move some globals to globals.h.
Move some globals to globals.h.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
198b1ef1cc1c23cb15f3cc880b93b9ca2d3fd232
src/shared.c
src/shared.c
#include <openssl/conf.h> #include <openssl/bio.h> #include <openssl/evp.h> #include <string.h> #include "shared.h" int base64_decode (char *src, bytes *dest) { BIO *bio, *b64; unsigned int max_len = strlen(src) * 0.75; dest->data = malloc(max_len); if (dest->data == NULL) return -1; b64 = BIO_new(BIO_f_base64(...
#include <openssl/conf.h> #include <openssl/bio.h> #include <openssl/evp.h> #include <string.h> #include <stdio.h> #include "shared.h" int base64_decode (char *src, bytes *dest) { BIO *bio, *b64; unsigned int max_len = strlen(src) * 3 / 4; dest->data = malloc(max_len); if (dest->data == NULL) return -1; FILE* s...
Fix overflow bug in OpenSSL
Fix overflow bug in OpenSSL
C
bsd-3-clause
undesktop/libopkeychain
27ebeb2662d52baeab1afd0e1b61fefa18eb40c3
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
Add a space to the terminating array entry
Add a space to the terminating array entry
C
bsd-2-clause
sourrust/laco
793b2d601c9cafff4f4d1284da6fcc39bf1023d2
common/log.h
common/log.h
/** * log.h - Header of log class * includes 2 methods to show warrnings and errors * @author Pavel Kryukov * Copyright 2017 MIPT-MIPS team */ #ifndef LOG_H #define LOG_H #include <iostream> #include <ostream> class LogOstream { const bool enable; std::ostream& stream; public: struct Critical { }; ...
/** * log.h - Header of log class * includes 2 methods to show warrnings and errors * @author Pavel Kryukov * Copyright 2017 MIPT-MIPS team */ #ifndef LOG_H #define LOG_H #include <iostream> #include <ostream> class LogOstream { const bool enable; std::ostream& stream; public: struct Critical { }; ...
Make serr and sout mutable to use them in const methods
Make serr and sout mutable to use them in const methods
C
mit
MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,gkorepanov/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015
8da70953568e44c46d7aebeea3147c029135a824
MRHexKeyboard.h
MRHexKeyboard.h
// // MRHexKeyboard.h // // Created by Mikk Rätsep on 02/10/13. // Copyright (c) 2013 Mikk Rätsep. All rights reserved. // @import UIKit; @interface MRHexKeyboard : UIView <UITextFieldDelegate> @property(nonatomic, assign) CGFloat height; @property(nonatomic, assign) BOOL display0xButton; @property(nonatomic, a...
// // MRHexKeyboard.h // // Created by Mikk Rätsep on 02/10/13. // Copyright (c) 2013 Mikk Rätsep. All rights reserved. // #import <UIKit/UIKit.h> @interface MRHexKeyboard : UIView <UITextFieldDelegate> @property(nonatomic, assign) CGFloat height; @property(nonatomic, assign) BOOL display0xButton; @property(non...
Switch to importing framework header
Switch to importing framework header Some Apps may not use modules
C
mit
doofyus/HexKeyboard
0163470450726394efaf11570daade9f34eb2f6e
util/util_export.h
util/util_export.h
// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. #ifndef UTIL_EXPORT_H_ #define UTIL_EXPORT_H_ #if !defined(ANGLE_...
// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols. #ifndef UTIL_EXPORT_H_ #define UTIL_EXPORT_H_ #if !defined(ANGLE_...
Revert "util: Always specify default visibility on exports."
Revert "util: Always specify default visibility on exports." This reverts commit 2bf23ea84e4f071c18f01b94748f3be7dccc4019. Reason for revert: Probably not the right fix. Will export all angle_utils symbols in places where they shouldn't be. Original change's description: > util: Always specify default visibility on ...
C
bsd-3-clause
ppy/angle,ppy/angle,ppy/angle,ppy/angle
40489836d8c58602f60a2f2fa7b564754d41d7ae
include/psp2/avconfig.h
include/psp2/avconfig.h
/** * \usergroup{SceAVConfig} * \usage{psp2/avconfig.h,SceAVConfig_stub} */ #ifndef _PSP2_AVCONFIG_H_ #define _PSP2_AVCONFIG_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif /*** * Get the maximum brightness. * * @param[out] maxBrightness - Maximum brightness. * * @return 0 on success, < 0...
/** * \usergroup{SceAVConfig} * \usage{psp2/avconfig.h,SceAVConfig_stub} */ #ifndef _PSP2_AVCONFIG_H_ #define _PSP2_AVCONFIG_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif /*** * Get the maximum brightness. * * @param[out] maxBrightness - Maximum brightness. * * @return 0 on success, < 0...
Add some sceAVConfig volume functions
Add some sceAVConfig volume functions
C
mit
Rinnegatamante/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers,vitasdk/vita-headers,vitasdk/vita-headers,Rinnegatamante/vita-headers
7cca2ec8a54c5bd937eaf08ceb49712f627d1c7a
lib/IRGen/CallingConvention.h
lib/IRGen/CallingConvention.h
//===--- CallingConvention.h - Calling conventions --------------*- 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...
//===--- CallingConvention.h - Calling conventions --------------*- 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...
Fix typo phsyical => physical
Fix typo phsyical => physical
C
apache-2.0
khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift
562bd95583a33d69e31b1e9bdea8f2076d8df46a
src/swganh/tre/visitors/objects/object_visitor-intl.h
src/swganh/tre/visitors/objects/object_visitor-intl.h
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once namespace swganh { namespace tre { template <class T> T ObjectVisitor::attribute(const std::string& key) { std::map<std::string, std::shared_ptr<boost::any>>::const_iterator i...
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include<stdexcept> namespace swganh { namespace tre { template <class T> T ObjectVisitor::attribute(const std::string& key) { std::map<std::string, std::shared_ptr<boost::any>...
Fix for missing include that vs studio forgot to complain about
Fix for missing include that vs studio forgot to complain about
C
mit
anhstudios/swganh,anhstudios/swganh,anhstudios/swganh
09d4f342619ac11e29128f044e3ab5c802ae7833
include/parrot/enums.h
include/parrot/enums.h
#if !defined(PARROT_ENUMS_H_GUARD) #define PARROT_ENUMS_H_GUARD typedef enum { NO_STACK_ENTRY_TYPE = 0, STACK_ENTRY_INT = 1, STACK_ENTRY_FLOAT = 2, STACK_ENTRY_STRING = 3, STACK_ENTRY_PMC = 4, STACK_ENTRY_POINTER = 5, STACK_ENTRY_DESTINATION = 6 } Stack_en...
/* enums.h * Copyright: 2001-2003 The Perl Foundation. All Rights Reserved. * Overview: * enums shared by much of the stack-handling code * Data Structure and Algorithms: * History: * Notes: * References: */ #if !defined(PARROT_ENUMS_H_GUARD) #define PARROT_ENUMS_H_GUARD typedef enum { NO_STAC...
Add header and footer comments
Add header and footer comments git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@3957 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
C
artistic-2.0
ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot
8c1ce215a8dbfb004a0d105d9bae637ed166d5c3
src/Console.h
src/Console.h
#ifndef CONSOLE_H #define CONSOLE_H #include <string> #include <Cart.h> #include <Controller.h> #include <CPU.h> #include <PPU.h> #include <APU.h> class Divider { public: Divider(int interval = 1) { setInterval(interval); } void setInterval(int interval) { this->interval = interval; clockCounter = int...
#ifndef CONSOLE_H #define CONSOLE_H #include <string> #include <Cart.h> #include <Controller.h> #include <CPU.h> #include <PPU.h> #include <APU.h> class Divider { public: Divider(int interval = 1) { setInterval(interval); } void setInterval(int interval) { this->interval = interval; clockCounter = int...
Make cart and apu members private
Make cart and apu members private
C
mit
scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES
44b95f9ebc976a6e5b521de7b6c44e0858b14ebf
tests/test_header.h
tests/test_header.h
#include <stdio.h> #include <stdlib.h> #include "../libcpsl.h" #include <signal.h> #define RUNTEST(x) ((CurrentTest = #x), x(), printf("Test \"%s\" passed.\n", #x)) static const char *CurrentTest = NULL; static void SigHandler(const int Signal); static inline void InitTestUnit(void) { CPSL_Configure(malloc, free, ...
#include <stdio.h> #include <stdlib.h> #include "../libcpsl.h" #include <signal.h> #define RUNTEST(x) ((CurrentTest = #x), x(), printf("Subtest \"%s\" passed.\n", #x)) static const char *CurrentTest = NULL; static void SigHandler(const int Signal); static inline void InitTestUnit(void) { CPSL_Configure(malloc, fre...
Fix some wording for unit tests.
Fix some wording for unit tests.
C
unlicense
Subsentient/libcpsl,Subsentient/libcpsl,Subsentient/libcpsl
187f9787c989c5ed8cf84a7daf010769cc3213c5
calc.c
calc.c
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> int calc(const char* p, int mul_div_flag) { int i; int ans; ans = atoi(p); i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++; } switch (p[i]){ case '+': ...
#include "calc.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> int calc(const char* p, int mul_div_flag) { int i; int ans; ans = atoi(p); if (p[0] != '(' && mul_div_flag == 1){ return (ans); } i = 0; while (p[i] != '\0'){ while (isdigit(p[i])){ i++...
Return answer when multiple or divide
Return answer when multiple or divide
C
mit
Roadagain/Calculator,Roadagain/Calculator
040a902e166dbe1c4daaa53080f920242cb9dc71
src/selector.h
src/selector.h
#pragma once #include <atomic> #include "util.h" namespace happyntrain { template <typename SelectorImpt> class Selector : NoCopy { SelectorImpt _selector; int64_t _id; public: template <typename... Vars> Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {} ~Selector() {} inline void Add...
#pragma once #include <atomic> #include "util.h" namespace happyntrain { const int kMaxSelectEvents = 2000; template <typename SelectorImpt> class Selector : NoCopy { SelectorImpt _selector; int64_t _id; public: template <typename... Vars> Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {}...
Add constants - max events
Add constants - max events
C
mit
emengjzs/happyntrain
2498c6a0ed3edffe5becc54b27ef86bbd33d4023
You-DataStore/internal/operation.h
You-DataStore/internal/operation.h
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: /// Executes the operat...
#pragma once #ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_ #define YOU_DATASTORE_INTERNAL_OPERATION_H_ #include <unordered_map> #include "../task_typedefs.h" namespace You { namespace DataStore { /// A pure virtual class of operations to be put into transaction stack class IOperation { public: virtual ~IOperation(); ...
Add back virtual dtor for IOperation
Add back virtual dtor for IOperation
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
3a41b9926ac545e4497fb2faf6cf7f22c05eb4b5
src/condor_utils/perf_counter.linux.h
src/condor_utils/perf_counter.linux.h
/*************************************************************** * * Copyright (C) 1990-2021, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may...
/*************************************************************** * * Copyright (C) 1990-2021, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may...
Fix typo in macro guard HTCONDOR-390
Fix typo in macro guard HTCONDOR-390
C
apache-2.0
htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor
0f427d7730b007e8740fff16d9a7b0dc5ebb692a
TMCache/TMCacheBackgroundTaskManager.h
TMCache/TMCacheBackgroundTaskManager.h
// // TMCacheBackgroundTaskManager.h // TMCache // // Created by Bryan Irace on 4/24/15. // Copyright (c) 2015 Tumblr. All rights reserved. // @import UIKit; /** A protocol that classes who can begin and end background tasks can conform to. This protocol provides an abstraction in order to avoid referencing `+ ...
// // TMCacheBackgroundTaskManager.h // TMCache // // Created by Bryan Irace on 4/24/15. // Copyright (c) 2015 Tumblr. All rights reserved. // @import UIKit; #ifndef __IPHONE_OS_VERSION_MIN_REQUIRED typedef NSUInteger UIBackgroundTaskIdentifier; #endif /** A protocol that classes who can begin and end backgroun...
Define UIBackgroundTaskIdentifier if on OS X
Define UIBackgroundTaskIdentifier if on OS X
C
apache-2.0
paulkite/TMCache,paulkite/TMCache
6f435b65aea63975a33c18e251654c56bacb38b5
private/TupleManipulation.h
private/TupleManipulation.h
#pragma once namespace TupleManipulation { template<int... Integers> struct sequence { }; template<int N, int... Integers> struct gen_sequence : public gen_sequence<N - 1, N - 1, Integers...> { }; template<int... Integers> struct gen_sequence<0, Integers...> : public sequence<Integers...> { }; ...
#pragma once namespace TupleManipulation { template<int... Integers> struct sequence { }; template<int N, int... Integers> struct gen_sequence : public gen_sequence<N - 1, N - 1, Integers...> { }; template<int... Integers> struct gen_sequence<0, Integers...> : public sequence<Integers...> { }; ...
Fix compiler warning in IAR
Fix compiler warning in IAR
C
mit
PabloMansanet/Panku,PabloMansanet/Panku
a721476360ad88fa3e28202b4a399af3e7da2259
src/Engine/windowManager.h
src/Engine/windowManager.h
#ifndef windowManager_H #define windowManager_H #include <iostream> // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> class windowManager { public: void init(); void windowManager::getScreenSize(); //Functions to return dimensions of window int getWindowHeight(); int getWindow...
#ifndef windowManager_H #define windowManager_H #include <iostream> // GLEW #define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> class windowManager { public: void init(); void getScreenSize(); //Functions to return dimensions of window int getWindowHeight(); int getWindowWidth(); GLFWw...
Fix building error on Linux
Fix building error on Linux
C
apache-2.0
Afrostie/Mopviewer
4b405904603ee76220a24b92d4fce1689592836f
plugins/solokey/fu-plugin-solokey.c
plugins/solokey/fu-plugin-solokey.c
/* * Copyright (C) 2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #include "config.h" #include "fu-plugin-vfuncs.h" #include "fu-solokey-device.h" void fu_plugin_init (FuPlugin *plugin) { fu_plugin_set_build_hash (plugin, FU_BUILD_HASH); fu_plugin_add_rule (plugin, FU_PLUG...
/* * Copyright (C) 2019 Richard Hughes <richard@hughsie.com> * * SPDX-License-Identifier: LGPL-2.1+ */ #include "config.h" #include "fu-plugin-vfuncs.h" #include "fu-solokey-device.h" #include "fu-solokey-firmware.h" void fu_plugin_init (FuPlugin *plugin) { fu_plugin_set_build_hash (plugin, FU_BUILD_HASH); fu...
Allow parsing firmware with fwupdtool
solokey: Allow parsing firmware with fwupdtool
C
lgpl-2.1
fwupd/fwupd,fwupd/fwupd,hughsie/fwupd,fwupd/fwupd,hughsie/fwupd,hughsie/fwupd,hughsie/fwupd,fwupd/fwupd
5929f9c0d0dd4510eb0a38f626b981666a179b78
bottleopener/shiftrConnector.h
bottleopener/shiftrConnector.h
#pragma once #include <YunMQTTClient.h> class ShiftrConnector { public : void sendCounter(int counter); void init(); void loop(); //default constructor ShiftrConnector() {}; private : YunMQTTClient client; void connect(); };
#pragma once //https://github.com/256dpi/arduino-mqtt #include <YunMQTTClient.h> class ShiftrConnector { public : void sendCounter(int counter); void init(); void loop(); //default constructor ShiftrConnector() {}; private : YunMQTTClient client; void connect(); };
Add link to the library
Add link to the library
C
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
52a4ae2b1dbc35f768406dc831ae980ca3f43244
snapshots/hacl-c-experimental/aead_chacha20_poly1305.h
snapshots/hacl-c-experimental/aead_chacha20_poly1305.h
#include "Chacha20.h" #include "Poly1305_64.h" void blit(uint8_t* src, uint32_t len, uint8_t* dest, uint32_t pos); void poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce); uint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len, ...
#include "Chacha20.h" #include "Poly1305_64.h" void poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce); uint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len, uint8_t *aad, uint32_t aad_len, ...
Remove exposed function from AEAD Chacha20 Poly1305 code
Remove exposed function from AEAD Chacha20 Poly1305 code
C
apache-2.0
mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star
d0a65bfeac62294ce218c3d4c2d57c7bfca6ad20
RandomNumbers.h
RandomNumbers.h
/*===- RandomNumbers.h - libSimulation -======================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef RANDOMNU...
/*===- RandomNumbers.h - libSimulation -======================================== * * DEMON * * This file is distributed under the BSD Open Source License. See LICENSE.TXT * for details. * *===-----------------------------------------------------------------------===*/ #ifndef RANDOMNU...
Change rand cache to a struct since everything is public. Add comment.
Change rand cache to a struct since everything is public. Add comment.
C
bsd-3-clause
leios/demonsimulationcode,leios/demonsimulationcode
867fea2c7e060a1ed593e6728042effbe7274f1b
iface.h
iface.h
#ifndef IFACE_H_INCLUDED #define IFACE_H_INCLUDED #include <fcntl.h> typedef struct funcs_t { unsigned char *(*get_mem_buf_hash)(unsigned char *mem_buf, unsigned long int mem_size); unsigned char *(*hash_to_str)(unsigned char *mem_hash); int (*is_mem_buf_dumped)(unsigned char *mem_hash); void (*dump_mem_buf)(unsi...
#ifndef IFACE_H_INCLUDED #define IFACE_H_INCLUDED #include <fcntl.h> typedef struct plugin_t { void *hndl; char *name; char *description; struct plugin_t *next; } plugin_t; #ifdef __cplusplus extern "C" plugin_t *init(); #endif #endif
Make plugins's init() function external C
Make plugins's init() function external C
C
unlicense
alexandernst/memory-dumper
f325ae16249c115a28ce6a92d179315085ed13b9
bacula/src/version.h
bacula/src/version.h
/* */ #undef VERSION #define VERSION "1.35.2" #define BDATE "28 August 2004" #define LSMDATE "28Aug04" /* Debug flags */ #undef DEBUG #define DEBUG 1 #define TRACEBACK 1 #define SMCHECK #define TRACE_FILE 1 /* Debug flags not normally turned on */ /* #define TRACE_JCR_CHAIN 1 */ /* #define TRACE_RES 1 */...
/* */ #undef VERSION #define VERSION "1.35.2" #define BDATE "30 August 2004" #define LSMDATE "30Aug04" /* Debug flags */ #undef DEBUG #define DEBUG 1 #define TRACEBACK 1 #define SMCHECK #define TRACE_FILE 1 /* Debug flags not normally turned on */ /* #define TRACE_JCR_CHAIN 1 */ /* #define TRACE_RES 1 */...
Update manual Fix CDROM script to handle non-existant files
Update manual Fix CDROM script to handle non-existant files git-svn-id: bb0627f6f70d46b61088c62c6186faa4b96a9496@1568 91ce42f0-d328-0410-95d8-f526ca767f89
C
agpl-3.0
rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula
c343de856dbe3f7049ad0193911216b3e7acdc54
PSET2/caesar.c
PSET2/caesar.c
#include <stdio.h> #include <cs50.h> int main(int argc, char *argv[]) { // check entered key if (argc != 2 || atoi(argv[1]) < 0) { printf("Usage: ./caesar k\nWhere k is a non negative integer.\n"); return 1; } int key = atoi(argv[1]); return 0; }
#include <stdio.h> #include <cs50.h> #include <string.h> #define ALPHA_NUM 26 int main(int argc, char *argv[]) { // check argument number and argument key to be greater than -1 if (argc != 2 || atoi(argv[1]) < 0) { printf("Usage (k >= 0):\n./caesar k \n"); return 1; } int key = atoi(a...
Add unfinished loop to encode message
Add unfinished loop to encode message
C
unlicense
Implaier/CS50,Implaier/CS50,Implaier/CS50,Implaier/CS50
c706f245992f760afdb7d41d3f40c60b3d85ee89
src/bgp/security_group/security_group.h
src/bgp/security_group/security_group.h
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" c...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_ #include <boost/array.hpp> #include <boost/system/error_code.hpp> #include <string> #include "base/parse_object.h" #include "bgp/bgp_common.h" c...
Update min/max global SGIDs values to match Schema Transformer
Update min/max global SGIDs values to match Schema Transformer Change-Id: I63d5634e9a374ce33e9e0e779caf499e8fbccdec Closes-Bug: 1381145
C
apache-2.0
rombie/contrail-controller,eonpatapon/contrail-controller,cloudwatt/contrail-controller,cloudwatt/contrail-controller,srajag/contrail-controller,DreamLab/contrail-controller,rombie/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-cont...
d3437f42ec20df8e99fdb6ff84bea6b64a3824b5
tests/regression/01-cpa/10-posneg.c
tests/regression/01-cpa/10-posneg.c
//PARAM: --enable ana.int.wrap_on_signed_overflow #include<stdio.h> #include<assert.h> int main() { int i,k,j; if (k == 5) { assert(k == 5); return 0; } assert(k != 5); // simple arithmetic i = k + 1; assert(i != 6); i = k - 1; assert(i != 4); i = k * 3; // multiplication with odd n...
//PARAM: --enable ana.int.wrap_on_signed_overflow // Enabling ana.int.wrap_on_signed_overflow here, to retain precision for cases when a signed overflow might occcur #include<stdio.h> #include<assert.h> int main() { int i,k,j; if (k == 5) { assert(k == 5); return 0; } assert(k != 5); // Signed over...
Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case
Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
f20b64d03463cbd35bcacea1d80848b19d15ea6a
KVODelegate/KVODelegate.h
KVODelegate/KVODelegate.h
// // KVODelegate.h // KVODelegate // // Created by Ian Gregory on 15-03-2017. // Copyright © 2017 ThatsJustCheesy. All rights reserved. // #import <Foundation/Foundation.h> #import <KVODelegate/KVOObservationDelegate.h> #import <KVODelegate/KVONotificationDelegate.h>
// // KVODelegate.h // KVODelegate // // Created by Ian Gregory on 15-03-2017. // Copyright © 2017 ThatsJustCheesy. All rights reserved. // #import <Foundation/Foundation.h> #import "KVOObservationDelegate.h" #import "KVONotificationDelegate.h"
Use quoted includes in umbrella header
Use quoted includes in umbrella header
C
mit
ThatsJustCheesy/KVODelegate,ThatsJustCheesy/KVODelegate
9f6244e43e007f27ccf02d8e4ebcdf12d182a39b
src/meat/math/abBlood.c
src/meat/math/abBlood.c
#include <math.h> #include "abBlood.h" void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->par...
#include <math.h> #include "abBlood.h" void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->par...
Add antibiotic concentration artificial minimum floor
Add antibiotic concentration artificial minimum floor
C
mit
bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters
4f5125e0b0ec6b3ddef8fa967b30ced19759fafa
drivers/spmi/spmi-dbgfs.h
drivers/spmi/spmi-dbgfs.h
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
Fix compilation error when debugfs is disabled
spmi: Fix compilation error when debugfs is disabled Code does not compile with debugfs disabled. Fix this. Change-Id: I11fa09401f29e9f2fb65d19668cae455253f6355 Signed-off-by: Olav Haugan <fbf4ddd114d5f0aa83cb721b7dacab8a264ccf22@codeaurora.org>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
56bddeda24adcb927dd5ceafd75f84ebc2eb4203
test/Sema/static-init.c
test/Sema/static-init.c
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s #include <stdint.h> static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t s...
// RUN: %clang_cc1 -fsyntax-only -verify %s typedef __typeof((int*) 0 - (int*) 0) intptr_t; static int f = 10; static int b = f; // expected-error {{initializer element is not a compile-time constant}} float r = (float) (intptr_t) &r; // expected-error {{initializer element is not a compile-time constant}} intptr_t...
Fix test to not force triple, and also to not need stdint.h.
Fix test to not force triple, and also to not need stdint.h. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@96499 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
b51602b1db901e46fd1fec4d76c669b31a538079
components/libc/compilers/common/nogcc/sys/types.h
components/libc/compilers/common/nogcc/sys/types.h
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-09-05 Meco Man fix bugs * 2020-12-16 Meco Man add useconds_t */ #ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ #include <stdint.h> #incl...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-09-05 Meco Man fix bugs * 2020-12-16 Meco Man add useconds_t */ #ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ #include <stdint.h> #incl...
Add a blank line at the end
[update] Add a blank line at the end
C
apache-2.0
nongxiaoming/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,hezlog/rt-thread,RT-Thread/rt-thread,RT-Thread/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,nongxiaoming/r...
aa075fd45fabc26875fb3ac5c34cce70fe3a7030
LargeBarrelAnalysis/EventCategorizerTools.h
LargeBarrelAnalysis/EventCategorizerTools.h
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable la...
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable la...
Change include to proper one
Change include to proper one
C
apache-2.0
JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples
b657af02c49fa95c889454f82609ed2a7672949a
kmail/kmversion.h
kmail/kmversion.h
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.9" #endif /*kmversion_h*/
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.10" #endif /*kmversion_h*/
Increase version number for KDE 3.5.10.
Increase version number for KDE 3.5.10. svn path=/branches/KDE/3.5/kdepim/; revision=846406
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
bbdf0450f0c99355a84db41a35d78f37a4879e16
include/program_options/item.h
include/program_options/item.h
/* * parser item * (c) Copyright 2015 Micooz * * Released under the Apache License. * See the LICENSE file or * http://www.apache.org/licenses/LICENSE-2.0.txt for more information. */ #ifndef PARSER_ITEM_H_ #define PARSER_ITEM_H_ #include <sstream> namespace program_options { class ParseItem { public: ParseItem(c...
/* * parser item * (c) Copyright 2015 Micooz * * Released under the Apache License. * See the LICENSE file or * http://www.apache.org/licenses/LICENSE-2.0.txt for more information. */ #ifndef PARSER_ITEM_H_ #define PARSER_ITEM_H_ #include <sstream> namespace program_options { class ParseItem { public: ParseItem(c...
Add a function of ParseItem which returns a c-style string directly.
Add a function of ParseItem which returns a c-style string directly.
C
apache-2.0
Micooz/program_options,Micooz/program_options,Micooz/program_options,Micooz/program_options
2a1b1a4cc8a1da74d35401adc5713f63ff93f5b6
bindings/ios/Private/MEGAHandleList+init.h
bindings/ios/Private/MEGAHandleList+init.h
/** * @file MEGAHandleList+init * @brief Private functions of MEGAHandleList * * (c) 2013-2017 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth ...
/** * @file MEGAHandleList+init * @brief Private functions of MEGAHandleList * * (c) 2013-2017 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth ...
Add the ctor for MEGAHandleList (Obj-C)
Add the ctor for MEGAHandleList (Obj-C)
C
bsd-2-clause
Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk
736a848b590fdebcdf1848eba11b19c0081269c3
Capu/include/capu/os/Windows/EnvironmentVariables.h
Capu/include/capu/os/Windows/EnvironmentVariables.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * 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 (C) 2015 BMW Car IT GmbH * * 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...
Fix enviroment variable getter on windows
Fix enviroment variable getter on windows found result was always true because condition only checked error code, not if there is really a value Change-Id: Ie8b8edab0419c629dd558ce9b5466a582de359f8
C
apache-2.0
bmwcarit/capu,bmwcarit/capu