commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
3d2c4486a552db9d97ea32fd2235b2cc1358893a
src/shkutil/include/util/raii_helper.h
src/shkutil/include/util/raii_helper.h
#pragma once #include <utility> namespace shk { template< typename T, typename Return, Return (Free)(T), T EmptyValue = nullptr> class RAIIHelper { public: RAIIHelper(T obj) : _obj(obj) {} RAIIHelper(const RAIIHelper &) = delete; RAIIHelper &operator=(const RAIIHelper &) = delete; RA...
#pragma once #include <utility> namespace shk { template< typename T, typename Return, Return (Free)(T), T EmptyValue = nullptr> class RAIIHelper { public: explicit RAIIHelper(T obj) : _obj(obj) {} RAIIHelper(const RAIIHelper &) = delete; RAIIHelper &operator=(const RAIIHelper &) = dele...
Make it harder to accidentally steal ownership of a RAIIHelper resource
Make it harder to accidentally steal ownership of a RAIIHelper resource
C
apache-2.0
per-gron/shuriken,per-gron/shuriken,per-gron/shuriken,per-gron/shuriken
1f52f05b9d74c601e7642ec9bd64eb38cf1452f0
Pod/Classes/VOKMappableModel.h
Pod/Classes/VOKMappableModel.h
// // VOKMappableModel.h // VOKCoreData // #import "VOKCoreDataManager.h" /** * Any models that conform to this protocol will be automatically registered for mapping with the shared instance * of VOKCoreDataManager. */ @protocol VOKMappableModel <NSObject> ///@return an array of VOKManagedObjectMap objects m...
// // VOKMappableModel.h // VOKCoreData // #import "VOKCoreDataManager.h" /** * Any models that conform to this protocol will be automatically registered for mapping with the shared instance * of VOKCoreDataManager. * * Note that runtime protocol-conformance is based on declared conformance (the angle-brack...
Add note about how protocol conformance checking works.
Add note about how protocol conformance checking works.
C
mit
seanwolter/Vokoder,vokal-isaac/Vokoder,seanwolter/Vokoder,vokal/Vokoder,seanwolter/Vokoder,chillpop/Vokoder,seanwolter/Vokoder,vokal/Vokoder,chillpop/Vokoder,designatednerd/Vokoder,vokal-isaac/Vokoder,chillpop/Vokoder,vokal-isaac/Vokoder,vokal/Vokoder,designatednerd/Vokoder,brockboland/Vokoder,designatednerd/Vokoder,vo...
88ed9208bb1ea5b3a8d9792b497353c067915f0d
src/persistent.c
src/persistent.c
#include <stdio.h> #include <stdlib.h> #include "therm.h" /* Loads settings from persistent storage, returning the number of items read, or -1 on error. */ int persistent_load() { FILE *f = fopen(SAVEPATH, "r"); float pid[6]; int ret = 0; if(!f) { return -1; } ret += fread(&wanted_temperature, sizeof(want...
Add file for reading/writing settings. Oops.
[hotfix/0.4.2] Add file for reading/writing settings. Oops.
C
mit
Cat-Ion/raspberrypi-incubator,Cat-Ion/raspberrypi-incubator
d11c53b1a6573cccb0283a187ef3938614089621
test/Driver/unknown-arg.c
test/Driver/unknown-arg.c
// RUN: not %clang_cc1 %s -cake-is-lie -%0 -%d 2> %t.log // RUN: FileCheck %s -input-file=%t.log // CHECK: unknown argument // CHECK: unknown argument // CHECK: unknown argument // RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option -munknown-to-clang-optio // IGNORED: warning: argument un...
// RUN: not %clang_cc1 %s -cake-is-lie -%0 -%d 2> %t.log // RUN: FileCheck %s -input-file=%t.log // CHECK: unknown argument // CHECK: unknown argument // CHECK: unknown argument // RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option -munknown-to-clang-option 2>&1 | FileCheck --check-prefix=...
Fix an incomplete copy and paste in my previous patch.
Fix an incomplete copy and paste in my previous patch. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@191245 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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
26536e69151d5f8e083d8165421039b409c93ee3
src/rt/rust_unwind.h
src/rt/rust_unwind.h
// Unwinding stuff missing on some architectures (Mac OS X). #ifndef RUST_UNWIND_H #define RUST_UNWIND_H #ifdef __APPLE__ #include <libunwind.h> typedef int _Unwind_Action; typedef void _Unwind_Context; typedef void _Unwind_Exception; typedef int _Unwind_Reason_Code; #else #include <unwind.h> #endif #endif
// Unwinding stuff missing on some architectures (Mac OS X). #ifndef RUST_UNWIND_H #define RUST_UNWIND_H #ifdef __APPLE__ #include <libunwind.h> typedef void _Unwind_Context; typedef int _Unwind_Reason_Code; #else #include <unwind.h> #endif #if (defined __APPLE__) || (defined __clang__) typedef int _Unwind_Acti...
Fix build with clang on non-Mac
rt: Fix build with clang on non-Mac
C
apache-2.0
carols10cents/rust,fabricedesre/rust,bombless/rust,erickt/rust,michaelballantyne/rust-gpu,P1start/rust,erickt/rust,pczarn/rust,rohitjoshi/rust,waynenilsen/rand,jroesch/rust,AerialX/rust,GrahamDennis/rand,SiegeLord/rust,jroesch/rust,dinfuehr/rust,nham/rust,ktossell/rust,robertg/rust,zachwick/rust,richo/rust,servo/rust,G...
7042ad0836fa9fc7566bd6cad8b8a430f8e1ade2
tests/c/chfl_selections.c
tests/c/chfl_selections.c
#include "chemfiles.h" // Force NDEBUG to be undefined #undef NDEBUG #include <assert.h> #include <stdlib.h> int main() { CHFL_TOPOLOGY* topology = chfl_topology(); CHFL_ATOM* O = chfl_atom("O"); CHFL_ATOM* H = chfl_atom("H"); assert(topology != NULL); assert(H != NULL); assert(O != NULL); ...
Add test for the C API for selections
Add test for the C API for selections
C
bsd-3-clause
chemfiles/chemfiles,chemfiles/chemfiles,chemfiles/chemfiles,lscalfi/chemfiles,lscalfi/chemfiles,Luthaf/Chemharp,Luthaf/Chemharp,chemfiles/chemfiles,Luthaf/Chemharp,lscalfi/chemfiles,lscalfi/chemfiles
a99be7b255d1ba98fd5958b9adf3a94ee62ee20f
parse_obj.c
parse_obj.c
#include <stdlib.h> #include <stdio.h> #include <string.h> typedef struct vector3f { float x, y, z; }VECTOR3F; typedef struct triangle { int32_t v1, v2, v3; }TRIANGLE; typedef struct trianglemesh { int32_t id; TRIANGLE t; // vertices number VECTOR3F v[3]; // vertices coordinates }TRIANGLEMESH; ...
Create a utility to properly parse obj files.
Create a utility to properly parse obj files.
C
mit
svagionitis/CGShading
062b0492f34b5212704ff72eb9ebb0fe84d577b7
tests/sv-comp/basic/global_init_true-unreach-call.c
tests/sv-comp/basic/global_init_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: __VERIFIER_error(); } return; } int g = 1; int main() { __VERIFIER_assert(g == 1); return 0; }
Add global initializer SV-COMP test
Add global initializer SV-COMP test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
e00712b97423b86c1e8aa2eefe7c655e61d415f3
mudlib/mud/home/Text/sys/verb/wiz/ooc/object/touchall.c
mudlib/mud/home/Text/sys/verb/wiz/ooc/object/touchall.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...
Add verb to touch all clones of a given clonable
Add verb to touch all clones of a given clonable
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
28f190e88bf324798276e4e8d4f5792cf6919fa6
Location/BackgroundTaskManager.h
Location/BackgroundTaskManager.h
// // BackgroundTaskManager.h // // Created by Puru Shukla on 20/02/13. // Copyright (c) 2013 Puru Shukla. All rights reserved. // #import <Foundation/Foundation.h> @interface BackgroundTaskManager : NSObject +(instancetype)sharedBackgroundTaskManager; -(UIBackgroundTaskIdentifier)beginNewBackgroundTask; @end
// // BackgroundTaskManager.h // // Created by Puru Shukla on 20/02/13. // Copyright (c) 2013 Puru Shukla. All rights reserved. // #import <Foundation/Foundation.h> @interface BackgroundTaskManager : NSObject +(instancetype)sharedBackgroundTaskManager; -(UIBackgroundTaskIdentifier)beginNewBackgroundTask; -(void)...
Add endAllBackgroundTasks to the Public API
Add endAllBackgroundTasks to the Public API
C
mit
kevinnguy/Location
1656855c0467348823d4decdbd4131875381d2c9
searchcore/src/vespa/searchcore/bmcluster/bm_node_stats_reporter.h
searchcore/src/vespa/searchcore/bmcluster/bm_node_stats_reporter.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/threadstackexecutor.h> #include <chrono> #include <mutex> #include <condition_variable> namespace search::bmcluster { class BmCluster; class BmNodeStatsReporter { ...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/vespalib/util/threadstackexecutor.h> #include <chrono> #include <mutex> #include <condition_variable> namespace search::bmcluster { class BmCluster; /* * Class handling background ...
Add class comment for BmNodeStatsReporter.
Add class comment for BmNodeStatsReporter.
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
cd845e38761b52497ff4ad02d32490d2c7a4ac24
include/dirbrowserformaction.h
include/dirbrowserformaction.h
#ifndef NEWSBOAT_DIRBROWSERFORMACTION_H #define NEWSBOAT_DIRBROWSERFORMACTION_H #include <grp.h> #include "configcontainer.h" #include "formaction.h" namespace newsboat { class DirBrowserFormAction : public FormAction { public: DirBrowserFormAction(View*, std::string formstr, ConfigContainer* cfg); ~DirBrowse...
#ifndef NEWSBOAT_DIRBROWSERFORMACTION_H #define NEWSBOAT_DIRBROWSERFORMACTION_H #include <sys/stat.h> #include <grp.h> #include "configcontainer.h" #include "formaction.h" namespace newsboat { class DirBrowserFormAction : public FormAction { public: DirBrowserFormAction(View*, std::string formstr, ConfigContain...
Fix DirBrowserFormAction build on FreeBSD
Fix DirBrowserFormAction build on FreeBSD
C
mit
der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat
87c0785d81c31a969bbf8029363ea042fdd82587
src/tileset.h
src/tileset.h
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> //#define TILESET_ROW_LENGTH 8 typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* ...
#ifndef _TILESET_H_ #define _TILESET_H_ #include <SDL.h> typedef struct tileset { SDL_Surface *image; SDL_Rect *clip; int length; } tileset; int tilesetLoad(tileset *tSet, char *fileName, int width, int height, int rowLen, int length); void tilesetUnload(tileset *tSet); #endif /* _TILESET_H_ */
Remove redundant commended out code
Remove redundant commended out code
C
mit
zear/shisen-seki,zear/shisen-seki
34f818ebe0539bf77576f7b45d28a70160271754
program.c
program.c
/* Preprocessor defines added by opencl compiler * #define CONFIGS_PER_PROC */ __kernel void start_trampoline(__global char *match_configs, __global char *output) { __private unsigned int i; for (i = 0; i < 256; i++) { output[i] = CONFIGS_PER_PROC; } write_mem_fence(CLK_GLOBAL_MEM_FENCE); return; }
/* Preprocessor defines added by opencl compiler * #define CONFIGS_PER_PROC */ __kernel void start_trampoline(__global char *match_configs, __global char *output) { __private unsigned int i, startloc; // Per worker match configs. __private char local_match_configs[CONFIGS_PER_PROC * sizeof(char) * 4]; // Re...
Load match configs into each local proc.
Load match configs into each local proc.
C
bsd-2-clause
jmorse/worms,jmorse/worms
0b4900a73fb6206ad82511b2054843baec172618
gpm/spinner.c
gpm/spinner.c
// Calculates the 45th Fibonacci number with a visual indicator. #include <stdio.h> #include <assert.h> #include <libdill.h> // Calculates Fibonacci of x. static int fib(int x) { // Need to yield or spinner will not have any time to spin. int rc = yield(); assert(rc == 0); if (x < 2) return x; return fib(x - 1) ...
// Calculates the 45th Fibonacci number with a visual indicator. // Note: using yield() in fib() may allow the spinner to actually spin, but // fib() takes a lot longer to complete. E.g. Over 2 minutes with yield() // vs. 10 seconds without it. #include <stdio.h> #include <assert.h> #include <libdill.h> // Calculates ...
Add note about using yield().
Add note about using yield().
C
mit
jppunnett/libdill-tutorial
64c9fe48234cd49ae730f3d2f80a0b7eb3c6d897
Josh_Zane_Sebastian/src/parser/parser.c
Josh_Zane_Sebastian/src/parser/parser.c
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ struct call parseCall(char* statement); struct function parseFunction(char* statemen...
#include <stdlib.h> #include <stdio.h> #include types.c #include <string.h> /* We can: Set something equal to something Function calls Function definitions Returning things -- delimiter '<' Printing things Iffing */ struct call parseCall(char* statement); struct function parseFunction(char* statemen...
Refactor the space tokenizer to be its own function; parse() no longer exists.
Refactor the space tokenizer to be its own function; parse() no longer exists.
C
mit
aacoppa/final,aacoppa/final
02d72c81af73bdd765beb3af9b7915209e18a747
atom/common/common_message_generator.h
atom/common/common_message_generator.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // Multiply-included file, no traditional include guard. #include "atom/common/api/api_messages.h" #include "chrome/common/print_messages.h" #include "chrome/common/tts_messages.h" #i...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // Multiply-included file, no traditional include guard. #include "atom/common/api/api_messages.h" #include "chrome/common/print_messages.h" #include "chrome/common/tts_messages.h" #i...
Fix linking problem with IPC::MessageT
Fix linking problem with IPC::MessageT IPC::MessageT<ChromeUtilityHostMsg_ProcessStarted_Meta, std::__1::tuple<>, void>::MessageT(IPC::Routing)
C
mit
seanchas116/electron,shiftkey/electron,shiftkey/electron,Floato/electron,brenca/electron,thompsonemerson/electron,thomsonreuters/electron,jhen0409/electron,tinydew4/electron,twolfson/electron,tonyganch/electron,tonyganch/electron,aichingm/electron,kcrt/electron,stevekinney/electron,kokdemo/electron,the-ress/electron,st...
851b80ea96383be2e95f36b238f390e9c2f9880e
Include/boolobject.h
Include/boolobject.h
/* Boolean object interface */ typedef PyIntObject PyBoolObject; extern DL_IMPORT(PyTypeObject) PyBool_Type; #define PyBool_Check(x) ((x)->ob_type == &PyBool_Type) /* Py_False and Py_True are the only two bools in existence. Don't forget to apply Py_INCREF() when returning either!!! */ /* Don't use these directly ...
/* Boolean object interface */ #ifndef Py_BOOLOBJECT_H #define Py_BOOLOBJECT_H #ifdef __cplusplus extern "C" { #endif typedef PyIntObject PyBoolObject; extern DL_IMPORT(PyTypeObject) PyBool_Type; #define PyBool_Check(x) ((x)->ob_type == &PyBool_Type) /* Py_False and Py_True are the only two bools in existence. Do...
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
62e863f35270846b5cb74fd5425f9d041bcb659b
solutions/uri/1039/1039.c
solutions/uri/1039/1039.c
#include <math.h> #include <stdio.h> int main() { double r1, x1, y1, r2, x2, y2; double distance; while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2) != EOF) { distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); if (r1 >= distance + r2) { puts("RI...
Solve Fire Flowers in c
Solve Fire Flowers in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
aad15687e0b91cba541cb939df092a15dbf43ae5
src/core/kms-utils.c
src/core/kms-utils.c
#include <gst/gst.h> #include "kms-core.h" static GstElement *pipe = NULL; static G_LOCK_DEFINE(mutex); static gboolean init = FALSE; static gboolean bus_watch(GstBus *bus, GstMessage *message, gpointer data) { KMS_LOG_DEBUG("TODO: implement bus watcher\n"); return TRUE; } void kms_init(gint *argc, gchar **argv[])...
#include <gst/gst.h> #include "kms-core.h" static GstElement *pipe = NULL; static G_LOCK_DEFINE(mutex); static gboolean init = FALSE; static gpointer gstreamer_thread(gpointer data) { GMainLoop *loop; loop = g_main_loop_new(NULL, TRUE); g_main_loop_run(loop); return NULL; } void kms_init(gint *argc, gchar **argv...
Make all bus events to be signals
Make all bus events to be signals
C
lgpl-2.1
shelsonjava/kurento-media-server,mparis/kurento-media-server,todotobe1/kurento-media-server,todotobe1/kurento-media-server,lulufei/kurento-media-server,TribeMedia/kurento-media-server,shelsonjava/kurento-media-server,Kurento/kurento-media-server,lulufei/kurento-media-server,mparis/kurento-media-server,Kurento/kurento-m...
b817c6cc5a0231a0ad9bb1e71a69a15df05e4d80
cmacros/effectless.h
cmacros/effectless.h
#ifndef _EFFECTLESS #define EFFECTLESS /* Macros without multiple execution of side-effects. */ /* Generic min and max without double execution of side-effects: http://stackoverflow.com/questions/3437404/min-and-max-in-c */ #define _CHOOSE(boolop, a, b, uid) \ ({ \ decltype(a) _...
#ifndef _EFFECTLESS #define EFFECTLESS /* Macros without multiple execution of side-effects. */ /* Generic min and max without double execution of side-effects: http://stackoverflow.com/questions/3437404/min-and-max-in-c */ #define _CHOOSE(boolop, a, b, uid) \ ({ ...
Fix `_CHOOSE` to use the copies instead of double execution of side-effects (issue reported by tromp at bitcointalk.org)
Fix `_CHOOSE` to use the copies instead of double execution of side-effects (issue reported by tromp at bitcointalk.org)
C
unlicense
shelby3/cmacros,shelby3/cmacros
ab2bf7a582302431dec4de7ec7f1434fdac6ebac
mudlib/mud/home/Help/initd.c
mudlib/mud/home/Help/initd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2009, 2012, 2013, 2014 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...
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2009, 2012, 2013, 2014 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...
Make gutted help subsystem shut itself down on next upgrade
Make gutted help subsystem shut itself down on next upgrade
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
f93e670354840c8f31b1c4898329c219a4abb701
kernel/extra/debugpanel/dp_mem_chunks.c
kernel/extra/debugpanel/dp_mem_chunks.c
/* SPDX-License-Identifier: BSD-2-Clause */ #include <tilck/common/basic_defs.h> #include <tilck/common/string_util.h> #include <tilck/kernel/kmalloc.h> #include <tilck/kernel/cmdline.h> #include "termutil.h" #include "dp_int.h" static debug_kmalloc_chunk_stat chunks_arr[1024]; static void dp_show_chunks(void) { ...
Add the MemChunks screen [for kmalloc heavy stats]
[debugpanel] Add the MemChunks screen [for kmalloc heavy stats]
C
bsd-2-clause
vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs
76de586faadc195b372248b8f52e66568c31ec1a
src/port/getrusage.c
src/port/getrusage.c
#include "../sccs.h" #ifdef WIN32 #include <psapi.h> u64 maxrss(void) { PROCESS_MEMORY_COUNTERS cnt; if (GetProcessMemoryInfo(GetCurrentProcess(), &cnt, sizeof(cnt))) { return (cnt.PeakWorkingSetSize); } return (0); } #else #include <sys/resource.h> u64 maxrss(void) { struct rusage ru; if (!getrusage(RU...
#include "../sccs.h" #ifdef WIN32 #include <psapi.h> u64 maxrss(void) { PROCESS_MEMORY_COUNTERS cnt; if (GetProcessMemoryInfo(GetCurrentProcess(), &cnt, sizeof(cnt))) { return (cnt.PeakWorkingSetSize); } return (0); } #else #include <sys/resource.h> u64 maxrss(void) { struct rusage ru; #if defined(sun) i...
Adjust for the fact that MacOS X and Solaris report maxrss in different units.
Adjust for the fact that MacOS X and Solaris report maxrss in different units. bk: 5489ebbfQIN1Wbpf9Qa4aY-VK6F8xw
C
apache-2.0
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper
54d4ca4f7db1a12316b03a839710437765f5273a
src/ZeroField.h
src/ZeroField.h
#ifndef __ZERO_FIELD_H__ #define __ZERO_FIELD_H__ #include "Field.h" namespace cigma { class ZeroField; } class cigma::ZeroField : public cigma::Field { public: ZeroField(); ~ZeroField(); void set_shape(int dim, int rank); public: int n_dim() { return dim; } int n_rank() { return rank; } ...
#ifndef __ZERO_FIELD_H__ #define __ZERO_FIELD_H__ #include "UserField.h" namespace cigma { class ZeroField; } class cigma::ZeroField : public cigma::UserField { public: ZeroField(); ~ZeroField(); void set_shape(int dim, int rank); public: int n_dim() { return dim; } int n_rank() { return ran...
Make zero a user field
Make zero a user field
C
lgpl-2.1
geodynamics/cigma,geodynamics/cigma,geodynamics/cigma,geodynamics/cigma,geodynamics/cigma
ee6f262065dc3957de34372ca9d059c7190024ad
java/include/pstore-jni.h
java/include/pstore-jni.h
#ifndef PSTOREJNI_H #define PSTOREJNI_H #include <inttypes.h> #ifdef __i386__ #define LONG_TO_PTR(ptr) (void *) (uint32_t) ptr #elif __X86_64__ #define LONG_TO_PTR(ptr) (void *) ptr #endif #define PTR_TO_LONG(ptr) (long) ptr #endif
Add 'LONG_TO_PTR' and 'PTR_TO_LONG' macros
java: Add 'LONG_TO_PTR' and 'PTR_TO_LONG' macros Signed-off-by: Karim Osman <94396faf6cc817be76165477038b3cfa832e89a4@reaktor.fi> Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
C
lgpl-2.1
penberg/pstore,penberg/pstore,penberg/pstore,penberg/pstore
2f329161a12024e003427fc98e2ce6b7cfcfce48
MORK/MORK.h
MORK/MORK.h
// // MORK.h // MORK // // Created by Nolan Carroll on 4/23/15. // Copyright (c) 2015 Medidata Solutions. All rights reserved. // #import <UIKit/UIKit.h> #import "ORKTaskResult+MORK.h" #import "ORKQuestionResult+MORK.h" //! Project version number for MORK. FOUNDATION_EXPORT double MORKVersionNumber; //! Project ...
// // MORK.h // MORK // // Created by Nolan Carroll on 4/23/15. // Copyright (c) 2015 Medidata Solutions. All rights reserved. // #import <UIKit/UIKit.h> #import "ORKCollectionResult+MORK.h" #import "ORKQuestionResult+MORK.h" //! Project version number for MORK. FOUNDATION_EXPORT double MORKVersionNumber; //! Pr...
Update import in main header file
Update import in main header file
C
mit
mdsol/MORK,mdsol/MORK
cae22b0d5dbd38fff95f3730914ae03e12e7b5bd
core/metacling/inc/LinkDef.h
core/metacling/inc/LinkDef.h
/* @(#)root/meta:$Id: 4660ec009138a70261265c65fc5a10398706fbd1 $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/meta:$Id$ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Clean up versioning commit hash.
Clean up versioning commit hash.
C
lgpl-2.1
karies/root,root-mirror/root,agarciamontoro/root,bbockelm/root,zzxuanyuan/root,root-mirror/root,bbockelm/root,karies/root,gbitzes/root,zzxuanyuan/root,mhuwiler/rootauto,gbitzes/root,gganis/root,karies/root,zzxuanyuan/root,agarciamontoro/root,olifre/root,BerserkerTroll/root,buuck/root,karies/root,bbockelm/root,mhuwiler/...
ec47d75d7c8610c81b402d20885ecf2f5e80c784
test/CodeGen/forwarding-blocks-if.c
test/CodeGen/forwarding-blocks-if.c
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // Check that no empty blocks are generated for nested ifs. extern void func(); int f0(int val) { if (val == 0) { func(); } else if (val == 1) { func(); } return 0; } // CHECK-LABEL: define i32 @f0 // CHECK: call void {{.*}} @func // CHECK: call vo...
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // Check that no empty blocks are generated for nested ifs. extern void func(); int f0(int val) { if (val == 0) { func(); } else if (val == 1) { func(); } return 0; } // CHECK-LABEL: define {{.*}} i32 @f0 // CHECK: call void {{.*}} @func // CHECK: ...
Fix test submitted with r275115 (failed on ppc64 buildbots).
Fix test submitted with r275115 (failed on ppc64 buildbots). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@275127 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
3864a8322e66280ad9c142810b80f9ac645b9754
test_fft.c
test_fft.c
// Taken from: http://stackoverflow.com/a/14537855 #include <math.h> #include <stdio.h> #include <stdlib.h> #ifndef M_PI #define M_PI 3.14159265358979324 #endif #define N 16 #define kiss_fft_scalar double #include "kiss_fftr.h" void TestFftReal(const char *title, const kiss_fft_scalar in[N], kiss_...
Add a program to test Kiss FFT.
Add a program to test Kiss FFT.
C
mit
mpoullet/audio-tools,mpoullet/audio-tools,mpoullet/audio-tools,mpoullet/audio-tools,mpoullet/audio-tools
43835c1c83c36527a5c7fae307b4118509775fbe
tests/fake_readdir.c
tests/fake_readdir.c
/* Small library to test implementation of option -Z and FPART_PARTERRNO Inspired from: https://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00058.html $ cc -fPIC -shared -o libfake_readdir.so fake_readdir.c $ mkdir -p /tmp/test/a/b/c/d/e/f/g/h/i/j $ LD_PRELOAD=./libfake_readdir.so fpart -L -E -zz -Z -f 2 -vvv ...
Add a small wrapper to simulate readdir() errors
Add a small wrapper to simulate readdir() errors Useful to test recently-patched embedded fts and option -Z
C
bsd-2-clause
martymac/fpart,martymac/fpart
e4dfaad868cf5f29058a081422cdb4420d853311
7segments.c
7segments.c
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?124:32,y&u?95:32,y&u/2?124:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
#define L for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="w$]m.k{%\177o"[*c++-48])&u/4?33:32,y&u?95:32,y&u/2?33:32,*c?32:10);u*=8; main(int u,char**a){u=1;L;L;L}
Use ! instead of |, looks nicer also saves two bytes
Use ! instead of |, looks nicer also saves two bytes
C
mit
McZonk/7segements,McZonk/7segements
faf1826dc91d379da0258dc23adc115a5a42890d
texor.c
texor.c
#include <unistd.h> int main() { char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q'); return 0; }
#include <termios.h> #include <unistd.h> void enableRawMode() { struct termios raw; tcgetattr(STDIN_FILENO, &raw); raw.c_lflag &= ~(ECHO); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); } int main() { enableRawMode(); char c; while (read(STDIN_FILENO, &c, 1) == 1 && c!= 'q'); return 0; }
Enable raw mode in terminal
Enable raw mode in terminal
C
bsd-2-clause
kyletolle/texor
e9d185a4d126adf5ea6c27fc4d6dc1a55cb104e4
Python/strtod.c
Python/strtod.c
/* This is not a proper strtod() implementation, but sufficient for Python. Python won't detect floating point constant overflow, though. */ extern int strlen(); extern double atof(); double strtod(p, pp) char *p; char **pp; { if (pp) *pp = p + strlen(p); return atof(p); }
/* This is not a proper strtod() implementation, but sufficient for Python. Python won't detect floating point constant overflow, though. */ extern int errno; extern int strlen(); extern double atof(); double strtod(p, pp) char *p; char **pp; { double res; if (pp) *pp = p + strlen(p); res = atof(p); errn...
Clear errno, just to be sure.
Clear errno, just to be sure.
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
ad5f95a1151e450413b45f81eb1f8b9b70974e68
Sources/NimbleObjectiveC/NMBStringify.h
Sources/NimbleObjectiveC/NMBStringify.h
@class NSString; /** * Returns a string appropriate for displaying in test output * from the provided value. * * @param value A value that will show up in a test's output. * * @return The string that is returned can be * customized per type by conforming a type to the `TestOutputStringConvertible` * pr...
@class NSString; /** * Returns a string appropriate for displaying in test output * from the provided value. * * @param anyObject A value that will show up in a test's output. * * @return The string that is returned can be * customized per type by conforming a type to the `TestOutputStringConvertible` * ...
Fix documentation parameter name warnings
Fix documentation parameter name warnings value is not matching `anyObject`
C
apache-2.0
abbeycode/Nimble,Quick/Nimble,twobitlabs/Nimble,twobitlabs/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,phatblat/Nimble,Quick/Nimble,phatblat/Nimble,DanielAsher/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,Quick/Nimble,abbeycode/Nimble,twobitlabs/Nimble,DanielAsher/Nimble,abbeycode/Nimble,AnthonyMDev/Nimb...
82f655c48263612edfc4e145bc5da18ca25cf8ec
3RVX/DiskInfo.h
3RVX/DiskInfo.h
#pragma once #include <Windows.h> #include <string> class DiskInfo { public: DiskInfo(wchar_t driveLetter); static std::wstring DriveFileName(wchar_t &driveLetter); static std::wstring DriveFileName(std::wstring &driveLetter); private: HANDLE _devHandle; };
#pragma once #include <Windows.h> #include <string> class DiskInfo { public: DiskInfo(wchar_t driveLetter); static std::wstring DriveFileName(wchar_t &driveLetter); static std::wstring DriveFileName(std::wstring &driveLetter); private: HANDLE _devHandle; std::wstring _productId; std::wstrin...
Add member variables for storing disk info
Add member variables for storing disk info
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
9f59142ee7ca004fb39be638463ad0ef0ba3a713
alura/c/forca.c
alura/c/forca.c
#include <stdio.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); printf("%s\n", palavrasecreta); /* palavrasecreta[0] = 'M'; palavrasecreta[1] = 'E'; palavrasecreta[2] = 'L'; palavrasecreta[3] = 'A'; palavrasecreta[4] = 'N'; palavrasecreta[5] = 'C'; palavrasecreta[...
#include <stdio.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); printf("%s\n", palavrasecreta); /* palavrasecreta[0] = 'M'; palavrasecreta[1] = 'E'; palavrasecreta[2] = 'L'; palavrasecreta[3] = 'A'; palavrasecreta[4] = 'N'; palavrasecreta[5] = 'C'; palavrasecreta[...
Update files, Alura, Introdução a C - Parte 2, Aula 2.2
Update files, Alura, Introdução a C - Parte 2, Aula 2.2
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
b57aae70855946e5e6a223f10b29af082937e20c
BBBAPI/BBBAPI/Classes/BBAAPIErrors.h
BBBAPI/BBBAPI/Classes/BBAAPIErrors.h
// // BBAAPIErrors.h // BBAAPI // // Created by Owen Worley on 11/08/2014. // Copyright (c) 2014 Blinkbox Books. All rights reserved. // NS_ENUM(NSInteger, BBAAPIError) { /** * Used when needed parameter is not supplied to the method * or when object is supplied but it has wrong type or * fo...
// // BBAAPIErrors.h // BBAAPI // // Created by Owen Worley on 11/08/2014. // Copyright (c) 2014 Blinkbox Books. All rights reserved. // NS_ENUM(NSInteger, BBAAPIError) { /** * Used when needed parameter is not supplied to the method * or when object is supplied but it has wrong type or * fo...
Add Bad Request error code
Add Bad Request error code
C
mit
blinkboxbooks/blinkbox-network.objc,blinkboxbooks/blinkbox-network.objc
2d67979dc01cb98b74941246685e9853439dd4a8
blocklist.h
blocklist.h
#ifndef SQREDIR_BLOCKLIST_H #define SQREDIR_BLOCKLIST_H #include <cstdio> #include <string> using namespace std; // reads the given configuration file // returns: true/false for success/failure bool read_config(string filename); // tries to match the Squid request & writes the response to the output stream // inpu...
#ifndef SQREDIR_BLOCKLIST_H #define SQREDIR_BLOCKLIST_H #include <cstdio> #include <string> // reads the given configuration file // returns: true/false for success/failure bool read_config(std::string filename); // tries to match the Squid request & writes the response to the output stream // input: a request line...
Remove 'using' directive from header, explicitly qualify std namespace.
Remove 'using' directive from header, explicitly qualify std namespace.
C
apache-2.0
hhoffstaette/sqredir
b60ffe69ae77c59e05f2f3985955b0034ba93b7a
MC/JPetMCDecayTree/JPetMCDecayTree.h
MC/JPetMCDecayTree/JPetMCDecayTree.h
/** * @copyright Copyright 2018 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 2018 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 header guard name to do not colide with JPetMCHit
Change header guard name to do not colide with JPetMCHit
C
apache-2.0
JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework
0aad78ead3cc061a0cb6135ba8833ba5edc491d3
Sources/Mile/Components/ActorComponent.h
Sources/Mile/Components/ActorComponent.h
#pragma once #include "MileObject.h" namespace Mile { /** * ActorComponent Actor ߰ ִ ϴ Component ⺻ ŬԴϴ. */ class Actor; class MILE_API ActorComponent : public MileObject { friend Actor; public: ActorComponent( const MString& NewName ) : bIsTick( false ), ...
#pragma once #include "MileObject.h" namespace Mile { /** * ActorComponent Actor ߰ ִ ϴ Component ⺻ ŬԴϴ. */ class Actor; class MILE_API ActorComponent : public MileObject { friend Actor; public: ActorComponent( const MString& NewName ) : bIsTick( false ), ...
Delete TickComponent ( because of tick manager )
Delete TickComponent ( because of tick manager )
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
25955e1264eec2fec804d7786e2f640bf9e0d189
src/platforms/esp/32/led_sysdefs_esp32.h
src/platforms/esp/32/led_sysdefs_esp32.h
#pragma once #include "esp32-hal.h" #ifndef ESP32 #define ESP32 #endif #define FASTLED_ESP32 #if CONFIG_IDF_TARGET_ARCH_RISCV #define FASTLED_RISCV #endif #if CONFIG_IDF_TARGET_ARCH_XTENSA || CONFIG_XTENSA_IMPL #define FASTLED_XTENSA #endif // Use system millis timer #define FASTLED_HAS_MILLIS typedef volatile uin...
#pragma once #include "esp32-hal.h" #ifndef ESP32 #define ESP32 #endif #define FASTLED_ESP32 #if CONFIG_IDF_TARGET_ARCH_RISCV #define FASTLED_RISCV #else #define FASTLED_XTENSA #endif // Handling for older versions of ESP32 Arduino core #if !defined(ESP_IDF_VERSION) // Older versions of ESP_IDF only supported ESP32 ...
Improve compatibility with older ESP32 Arduino core versions
Improve compatibility with older ESP32 Arduino core versions
C
mit
FastLED/FastLED,FastLED/FastLED,FastLED/FastLED,FastLED/FastLED
72f1d4f87a8a107ceaddb455fca34c59737e1d33
mudlib/mud/home/Bigstruct/lib/base/node.c
mudlib/mud/home/Bigstruct/lib/base/node.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 another debug check to bigstructs
Add another debug check to bigstructs
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
dbc4a86f3cf652826ad0b0ad2528535273f581c3
core/core.h
core/core.h
#if defined(WIN32) || defined(_WIN32) || \ defined(__WIN32) && !defined(__CYGWIN__) #include <BaseTsd.h> #include <windows.h> typedef SSIZE_T ssize_t; #endif #ifndef _WIN32 #include <unistd.h> #endif #include <inttypes.h> typedef char *String; typedef char *Pattern; typedef int64_t Long; #if defined NDEBUG #defin...
#if defined(WIN32) || defined(_WIN32) || \ defined(__WIN32) && !defined(__CYGWIN__) #include <BaseTsd.h> #include <windows.h> typedef SSIZE_T ssize_t; #define SIZE_T_FORMAT_SPECIFIER "%ld" #endif #ifndef _WIN32 #include <unistd.h> #define SIZE_T_FORMAT_SPECIFIER "%zd" #endif #include <inttypes.h> typedef char *Str...
Use other format specifers on Windows.
Use other format specifers on Windows.
C
apache-2.0
carp-lang/Carp,eriksvedang/Carp,eriksvedang/Carp,carp-lang/Carp,carp-lang/Carp
49115b57cb9d260ddd49a6905ee87af63b3ab066
tools/android/SkBRDAllocator.h
tools/android/SkBRDAllocator.h
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmap.h" #include "SkCodec.h" /** * Abstract subclass of SkBitmap's allocator. * Allows the allocator to indicate if the memory it allocates * is zero init...
Add an Allocator interface that indicates if memory is zero init
Add an Allocator interface that indicates if memory is zero init This is the first step in a three part change: (1) Skia: Add SkBRDAllocator. (2) Android: Make JavaPixelAllocator and RecyclingClippingPixelAllocator implement SkBRDAllocator. (3) Skia: Change SkBitmapRegionDecoder to use SkBRDAllocator and ...
C
bsd-3-clause
google/skia,rubenvb/skia,google/skia,tmpvar/skia.cc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,google/skia,qrealka/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,qrealka/skia-hc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,qrealka/skia...
1afc2d2704568e5d587eb2ceb18802a4d9bdf7af
core/cortex-m0/config_core.h
core/cortex-m0/config_core.h
/* Copyright 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef __CROS_EC_CONFIG_CORE_H #define __CROS_EC_CONFIG_CORE_H /* Linker binary architecture and format */ #define BFD_ARCH arm #define BFD_FORMA...
/* Copyright 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef __CROS_EC_CONFIG_CORE_H #define __CROS_EC_CONFIG_CORE_H /* Linker binary architecture and format */ #define BFD_ARCH arm #define BFD_FORMA...
Use compiler_rt version of clz and ctz
core/cortex-m0: Use compiler_rt version of clz and ctz Use __clzsi2 and __ctzsi2 from compiler_rt instead of our own version. Using the compiler_rt versions result in a slightly smaller image. servo_micro before this change: RO: 18744 bytes in flash remaining RW: 23192 bytes in flash remaining servo_micro after this...
C
bsd-3-clause
coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec
173dee2eb85f7d8ea0ca491f3683382ae8754ca7
include/effects/SkStippleMaskFilter.h
include/effects/SkStippleMaskFilter.h
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ cla...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ cla...
Fix for compiler error in r4154
Fix for compiler error in r4154 git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
mrobinson/skia,mrobinson/skia,metajack/skia,metajack/skia,mrobinson/skia,mrobinson/skia,Cue/skia,Cue/skia,metajack/skia,mrobinson/skia,Cue/skia,metajack/skia,Cue/skia
f0fb14cade4f14185481851a739313bf81d4f8c6
include/samplers/stratified_sampler.h
include/samplers/stratified_sampler.h
#ifndef STRATIFIED_SAMPLER_H #define STRATIFIED_SAMPLER_H #include <random> #include <memory> #include <array> #include <vector> #include "sampler.h" /* * A stratified sampler, generates multipled jittered * samples per pixel in its sample region */ class StratifiedSampler : public Sampler { const int spp; std::...
#ifndef STRATIFIED_SAMPLER_H #define STRATIFIED_SAMPLER_H #include <random> #include <memory> #include <array> #include <vector> #include "sampler.h" /* * A stratified sampler, generates multipled jittered * samples per pixel in its sample region */ class StratifiedSampler : public Sampler { const int spp; std::...
Fix stratified sampler to use minstd_rand
Fix stratified sampler to use minstd_rand still unsure why mt19937 suddenly started segfaulting
C
mit
Twinklebear/tray,Twinklebear/tray
d536ccd55ebdcded7dddc53f93022b0366d6739c
OrbitGl/ThreadStateTrack.h
OrbitGl/ThreadStateTrack.h
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_GL_THREAD_STATE_TRACK_H_ #define ORBIT_GL_THREAD_STATE_TRACK_H_ #include "Track.h" // This is a track dedicated to displaying thread stat...
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_GL_THREAD_STATE_TRACK_H_ #define ORBIT_GL_THREAD_STATE_TRACK_H_ #include "Track.h" // This is a track dedicated to displaying thread stat...
Fix crash when dragging a thread state track
Fix crash when dragging a thread state track Only when you have enabled track_ordering_feature, this class inherit OnDrag from Track and crashed. Related to b/173093860.
C
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
27ce98404fc179d292bfc53f1c6b937b5b988461
oak/server/logging_channel.h
oak/server/logging_channel.h
/* * Copyright 2019 The Project Oak 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...
/* * Copyright 2019 The Project Oak 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...
Fix return value for logging channel write
Fix return value for logging channel write
C
apache-2.0
project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak,project-oak/oak
7883bff6a155c116fd60000f10a2d4dd4c06b411
src/Pythia/stdafx.h
src/Pythia/stdafx.h
#pragma once #ifdef _WIN32 #include <SDKDDKVer.h> //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Files: #include <windows.h> #define tstring std::wstring #define WidenHelper(x) L##x #define LITERAL(x) WidenHelper(x) #else // ifdef _WIN32 #define tstri...
#pragma once #ifdef _WIN32 #include <SDKDDKVer.h> //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Files: #include <windows.h> #define tstring std::wstring #define WidenHelper(x) L##x #define LITERAL(x) WidenHelper(x) #else // ifdef _WIN32 #define tstri...
Fix the spdlog issue on 32bit systems: Failed getting file size from fd
Fix the spdlog issue on 32bit systems: Failed getting file size from fd
C
mit
overfl0/Pythia,overfl0/Pythia,overfl0/Pythia,overfl0/Pythia
b010d64f92a5b1c17aff474a6a7fcc872cb747d5
test/CFrontend/2005-12-04-AttributeUsed.c
test/CFrontend/2005-12-04-AttributeUsed.c
// 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() {}
// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X int X __attribute__((used)); int Y; __attribute__((used)) void foo() {}
Adjust this to the wonky syntax that GCC expects.
Adjust this to the wonky syntax that GCC expects. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@30670 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Dri...
839be02ee16872973c68acfe3fad9e51c57c8c5e
src/backend/nodes/nodes.c
src/backend/nodes/nodes.c
/*------------------------------------------------------------------------- * * nodes.c * support code for nodes (now that we get rid of the home-brew * inheritance system, our support code for nodes get much simpler) * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyri...
/*------------------------------------------------------------------------- * * nodes.c * support code for nodes (now that we have removed the home-brew * inheritance system, our support code for nodes is much simpler) * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyr...
Fix grammatical error in comment.
Fix grammatical error in comment.
C
apache-2.0
lintzc/gpdb,Quikling/gpdb,ovr/postgres-xl,greenplum-db/gpdb,Postgres-XL/Postgres-XL,edespino/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,cjcjameson/gpdb,Chibin/gpdb,atris/gpdb,tpostgres-projects/tPostgres,postmind-net/postgres-xl,janebeckman/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,randomtask1155/gpdb,Chibin/gpdb,xueg...
9be737da6e5afe90306f7e66d72024b7507323dc
src/arch/relic_arch_avr.c
src/arch/relic_arch_avr.c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2011 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
Add missing file for ARCH = AVR.
Add missing file for ARCH = AVR.
C
lgpl-2.1
ukscone/relic,sruesch/relic,tfar/relic,OlegHahm/relic,ukscone/relic,ace0/relic,ukscone/relic,OlegHahm/relic,ace0/relic,sruesch/relic,ace0/relic,tfar/relic,ace0/relic,OlegHahm/relic,tfar/relic,sruesch/relic
76665d06735e1b15af877bcaceae645d77488b55
Source/Library/Object/HCThrowsException.h
Source/Library/Object/HCThrowsException.h
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCDiagnosingMatcher.h> /*! * @abstract Does executing a block throw an exception which satisfies a nested matcher? */ @interface HCThrowsException : HCDiagnosingMatcher - (id)initWithEx...
// OCHamcrest by Jon Reid, http://qualitycoding.org/about/ // Copyright 2015 hamcrest.org. See LICENSE.txt #import <OCHamcrest/HCDiagnosingMatcher.h> /*! * @abstract Does executing a block throw an exception which satisfies a nested matcher? */ @interface HCThrowsException : HCDiagnosingMatcher - (id)initWithEx...
Improve throwsException example to use hasProperty
Improve throwsException example to use hasProperty
C
bsd-2-clause
hamcrest/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest
2658baee614225bb6cc32a89843cbf455c1a5799
libyaul/common/internal_exception_show.c
libyaul/common/internal_exception_show.c
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <stdlib.h> #include <vdp1.h> #include <vdp2.h> #include <vdp2/tvmd.h> #include <vdp2/vram.h> #include <cons.h> void __noreturn internal_exception_show(const char *buffer) { /* Reset...
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <stdlib.h> #include <vdp1.h> #include <vdp2.h> #include <vdp2/tvmd.h> #include <vdp2/vram.h> #include <cons.h> void __noreturn internal_exception_show(const char *buffer) { /* Reset...
Hide VDP1 even if FB hasn't been erased and changed
Hide VDP1 even if FB hasn't been erased and changed
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
ccf5eaf49f000109d2d479156913154fd68c37b2
polygon.h
polygon.h
/** Author : Paul TREHIOU & Victor SENE * Date : November 2014 **/ /** * Declaration Point structure * x - real wich is the abscisse of the point * y - real wich is the ordinate of the point */ typedef struct { float x; float y; }Point; /** * Function wich create a point with a specified abscisse and...
/** Author : Paul TREHIOU & Victor SENE * Date : November 2014 **/ /** * Declaration Point structure * x - real wich is the abscisse of the point * y - real wich is the ordinate of the point */ typedef struct { float x; float y; }Point; /** * Function wich create a point with a specified abscisse and ...
Add some spaces and enters
Add some spaces and enters
C
mit
UTBroM/GeometricLib
cdcea87381a6ff1711d039dec46ec01a919acb8e
test/CodeGen/union-init2.c
test/CodeGen/union-init2.c
// RUN: clang-cc -emit-llvm %s -o - | not grep ptrtoint // Make sure we generate something sane instead of a ptrtoint union x {long long b;union x* a;} r = {.a = &r};
// RUN: clang-cc -emit-llvm %s -o - -triple i686-pc-linux-gnu | grep "bitcast (%0\* @r to %union.x\*), \[4 x i8\] zeroinitializer" // Make sure we generate something sane instead of a ptrtoint union x {long long b;union x* a;} r = {.a = &r};
Make test a bit more precise.
Make test a bit more precise. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79073 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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
b2187a9f743a7821ce764989f938916fe74ead06
Binart_Search_Tree_BST/BST_min_max.c
Binart_Search_Tree_BST/BST_min_max.c
#include <stdio.h> #include <stdlib.h> /* This is a code for binary search tree basic implementtion */ //Contains code for PreOrder, InOrder and PostOrder Traversals i.e. Depth First typedef struct node{ int data; struct node* left; struct node* right; } node; node* head; node* create(int data){ node* temp = (...
Add BST find min and max value node
Add BST find min and max value node
C
mit
anaghajoshi/C_DataStructures_Algorithms
9d58853f5797b062e68509c2afcfe5375309d145
Classes/GTDiffFile.h
Classes/GTDiffFile.h
// // GTDiffFile.h // ObjectiveGitFramework // // Created by Danny Greg on 30/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" // Flags which may be set on the file. // // See diff.h for individual documentation. typedef enum : git_diff_file_flag_t { GTDiffFileFlagValidOID = G...
// // GTDiffFile.h // ObjectiveGitFramework // // Created by Danny Greg on 30/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" // Flags which may be set on the file. // // See diff.h for individual documentation. typedef enum : git_diff_flag_t { GTDiffFileFlagValidOID = GIT_DI...
Remove some diff file flags
Remove some diff file flags
C
mit
libgit2/objective-git,TOMalley104/objective-git,alehed/objective-git,pietbrauer/objective-git,nerdishbynature/objective-git,c9s/objective-git,misterfifths/objective-git,dleehr/objective-git,Acidburn0zzz/objective-git,phatblat/objective-git,dleehr/objective-git,blackpixel/objective-git,slavikus/objective-git,slavikus/ob...
7aefbf7e8a5917cf482a097a1670153c7a4c893b
event/event_system.h
event/event_system.h
#ifndef EVENT_SYSTEM_H #define EVENT_SYSTEM_H #include <event/event_thread.h> /* * XXX * This is kind of an awful shim while we move * towards something thread-oriented. */ class EventSystem { EventThread td_; private: EventSystem(void) : td_() { } ~EventSystem() { } public: Action *poll(const EventPoll...
Add EventSystem shim missed in r588.
Add EventSystem shim missed in r588.
C
bsd-2-clause
wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy
d6ab18fa7eb560259922cdaaafc0804d6e42a05e
benchmarks/move_only.h
benchmarks/move_only.h
/* * The MIT License (MIT) * * Copyright (c) 2015 Morwenn * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
Add move-only type for testing/benchmarking.
Add move-only type for testing/benchmarking.
C
mit
Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort
9bb74efd41b19d80944a9769378421a148434283
sdch_request_context.h
sdch_request_context.h
// Copyright (c) 2015 Yandex LLC. All rights reserved. // Author: Vasily Chekalkin <bacek@yandex-team.ru> #ifndef SDCH_REQUEST_CONTEXT_H_ #define SDCH_REQUEST_CONTEXT_H_ extern "C" { #include <ngx_config.h> #include <nginx.h> #include <ngx_core.h> #include <ngx_http.h> } namespace sdch { class Handler; // Contex...
Add copy-pasted stub for future RequestContext
Add copy-pasted stub for future RequestContext
C
mit
yandex/sdch_module,yandex/sdch_module,yandex/sdch_module,yandex/sdch_module
07630a37beefe8e4401c602f04e3e5bcbba50b31
include/asm-powerpc/code-patching.h
include/asm-powerpc/code-patching.h
#ifndef _ASM_POWERPC_CODE_PATCHING_H #define _ASM_POWERPC_CODE_PATCHING_H /* * Copyright 2008, Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either v...
#ifndef _ASM_POWERPC_CODE_PATCHING_H #define _ASM_POWERPC_CODE_PATCHING_H /* * Copyright 2008, Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either v...
Add ppc_function_entry() which gets the entry point for a function
powerpc: Add ppc_function_entry() which gets the entry point for a function Because function pointers point to different things on 32-bit vs 64-bit, add a macro that deals with dereferencing the OPD on 64-bit. The soon to be merged ftrace wants this, as well as other code I am working on. Signed-off-by: Michael Elle...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist...
e3eaf3ba1da697344a1323715a0cd53c5163ba5f
include/exceptions/file_not_found.h
include/exceptions/file_not_found.h
#pragma once #include <stdexcept> namespace erebus { /** * This is a exception for the case a stated file doenst exist. */ class file_not_found : public std::runtime_error { public: /** * Constructor. */ explicit file_not_found(const std::string& msg) : std::runtime_error(msg) { } }; }
Add file not found exception
Add file not found exception
C
apache-2.0
GuardianRG/erebus,GuardianRG/erebus
05039aede1e3a411978e89c4683caa9909f23c55
libftl/posix/socket.c
libftl/posix/socket.c
/** * \file socket.c - Windows Socket Abstractions * * Copyright (c) 2015 Michael Casadevall * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitatio...
Add POSIX files, yay. Almost fixes compile
Add POSIX files, yay. Almost fixes compile
C
mit
WatchBeam/ftl-sdk,WatchBeam/ftl-sdk
b2a3bd280e31b194b9cff3e44915f6344e959bef
moses/TranslationModel/UG/generic/threading/ug_ref_counter.h
moses/TranslationModel/UG/generic/threading/ug_ref_counter.h
#include "ug_thread_safe_counter.h" #pragma once // obsolete once intrusive_ref_counter is available everywhere namespace Moses { class reference_counter { public: friend void intrusive_ptr_add_ref(reference_counter* p) { if (p) ++p->m_refcount; } friend void intrusive_ptr_release(referenc...
#include "ug_thread_safe_counter.h" #pragma once // obsolete once intrusive_ref_counter is available everywhere namespace Moses { class reference_counter { public: friend void intrusive_ptr_add_ref(reference_counter const* p) { if (p) ++p->m_refcount; } friend void intrusive_ptr_release(re...
Allow intrusive pointers to const objects.
Allow intrusive pointers to const objects.
C
lgpl-2.1
pjwilliams/mosesdecoder,KonceptGeek/mosesdecoder,tofula/mosesdecoder,pjwilliams/mosesdecoder,pjwilliams/mosesdecoder,KonceptGeek/mosesdecoder,tofula/mosesdecoder,moses-smt/mosesdecoder,alvations/mosesdecoder,KonceptGeek/mosesdecoder,moses-smt/mosesdecoder,pjwilliams/mosesdecoder,alvations/mosesdecoder,hychyc07/mosesdec...
dbb8a82f627267067dee720b38bdc77a7c83bcc1
src/tests/log_mock.c
src/tests/log_mock.c
#include "log.h" #include <stdio.h> #include <stdarg.h> void debug(const char* format, ...) { #ifdef __DEBUG__ va_list args; va_start(args, format); vprintf(format, args); va_end(args); #endif // __DEBUG__ } void initializeLogging() { }
#include "log.h" #include <stdio.h> #include <stdarg.h> void debugNoNewline(const char* format, ...) { #ifdef __DEBUG__ va_list args; va_start(args, format); vprintf(format, args); va_end(args); #endif // __DEBUG__ } void initializeLogging() { }
Rename test suite version of debug to match the header.
Rename test suite version of debug to match the header.
C
bsd-3-clause
mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware
7a02c1174d819be374c24fd8b406ff3d66c9bbab
src/util.h
src/util.h
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ALLOC_N(type, 1) #define ALLOC_N(type, n) ((type*) xmalloc(sizeof(type) * (n))) void *xmalloc(size_t); char *hextoa(const char *, int); #define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0) #endif /* UTIL_H */
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ALLOC_N(type, 1) #define ALLOC_N(type, n) ((type*) xmalloc(sizeof(type) * (n))) #define MEMCPY(dst, src, type) MEMCPY_N(dst, src, type, 1) #define MEMCPY_N(dst, src, type, n) (memcpy((dst), (src), sizeof(type) * (n))) void *xmalloc(size_t);...
Add MEMCPY and MEMCPY_N macros
Add MEMCPY and MEMCPY_N macros
C
apache-2.0
mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify
cb694769f0d0c1f6fb8c9dc806c0a68da1056055
arch/powerpc/include/asm/sparsemem.h
arch/powerpc/include/asm/sparsemem.h
#ifndef _ASM_POWERPC_SPARSEMEM_H #define _ASM_POWERPC_SPARSEMEM_H 1 #ifdef __KERNEL__ #ifdef CONFIG_SPARSEMEM /* * SECTION_SIZE_BITS 2^N: how big each section will be * MAX_PHYSADDR_BITS 2^N: how much physical address space we have * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space */ #define SEC...
#ifndef _ASM_POWERPC_SPARSEMEM_H #define _ASM_POWERPC_SPARSEMEM_H 1 #ifdef __KERNEL__ #ifdef CONFIG_SPARSEMEM /* * SECTION_SIZE_BITS 2^N: how big each section will be * MAX_PHYSADDR_BITS 2^N: how much physical address space we have * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space */ #define SEC...
Revert "powerpc/mm: Bump SECTION_SIZE_BITS from 16MB to 256MB"
Revert "powerpc/mm: Bump SECTION_SIZE_BITS from 16MB to 256MB" This reverts commit 7545ba6f82924d4523f8f8a2baf2e517a750265d. It breaks eHEA among other issues
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Program...
b59b6012f5562764a817aeb0670bbeda196adb84
c_src/erl_nif_compat.h
c_src/erl_nif_compat.h
#ifndef ERL_NIF_COMPAT_H_ #define ERL_NIF_COMPAT_H_ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "erl_nif.h" #if ERL_NIF_MAJOR_VERSION == 1 && ERL_NIF_MINOR_VERSION == 0 #define enif_open_resource_type_compat enif_open_resource_type #define enif_alloc_resource_compat enif_alloc_resource #define...
Add compatibility header and use compatibility macros to enable builds on both R13 and R14.
Add compatibility header and use compatibility macros to enable builds on both R13 and R14.
C
apache-2.0
beerriot/icu4e
933211fa8d30fba9c689b28f30e0aa353341c345
include/Information/GameModeWidget.h
include/Information/GameModeWidget.h
#ifndef GAMEMODEWIDGET_H #define GAMEMODEWIDGET_H #include <QtWidgets> #include "PlayerActivatedWidget.h" #include "PlayerControlModeWidget.h" #include "Game\Player.h" #include "Game\State.h" class GameModeWidget : public QWidget { public: GameModeWidget(QWidget * parent = 0); ~GameModeWidget(); Player currentP...
#ifndef GAMEMODEWIDGET_H #define GAMEMODEWIDGET_H #include <QtWidgets> #include "PlayerActivatedWidget.h" #include "PlayerControlModeWidget.h" #include "Game/Player.h" #include "Game/State.h" class GameModeWidget : public QWidget { public: GameModeWidget(QWidget * parent = 0); ~GameModeWidget(); Player currentP...
Update relative path of includes
Update relative path of includes
C
mit
Sytten/Scorch,Sytten/Scorch
df36a4196cfc8fd8b6a4ac8231d56b3c1a6b8edc
include/h2o/httpparser.h
include/h2o/httpparser.h
/* * Copyright (c) 2016 Domingo Alvarez Duarte * * The software is licensed under either the MIT License (below) or the Perl * license. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Softwa...
Add the h2o/httparser.h forgotten on previous commit
Add the h2o/httparser.h forgotten on previous commit
C
mit
mingodad/h2o,mingodad/h2o,mingodad/h2o,mingodad/h2o,mingodad/h2o,mingodad/h2o,mingodad/h2o,mingodad/h2o
c203f03fc14b048592445ee37620fa5c366b2251
views/view_constants.h
views/view_constants.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VIEWS_VIEW_CONSTANTS_H_ #define VIEWS_VIEW_CONSTANTS_H_ #pragma once #include "views/views_export.h" namespace views { // Size (width or he...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VIEWS_VIEW_CONSTANTS_H_ #define VIEWS_VIEW_CONSTANTS_H_ #pragma once #include "views/views_export.h" namespace views { // Size (width or he...
Add VIEWS_EXPORT to autoscroll constants.
Add VIEWS_EXPORT to autoscroll constants. Referenced by browser/bookmarks/bookmark_drop_info.cc, fixes link when in component and incremental linking on Windows. BUG= TEST=Links in Component build mode Review URL: http://codereview.chromium.org/7741017 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@98281 00...
C
bsd-3-clause
junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,robclark/chromium,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,keishi/chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,mogoweb/chrom...
f819adcbf7fac24094690db9f46c44727b4c1f81
program/driver/us100.c
program/driver/us100.c
/*==============================================================================================*/ /*==============================================================================================*/ #include "QuadCopterConfig.h" Ultrasonic_t Ultrasonic = { .lenHigh = 0, .lenLow = 0, .d = 0 }; /*====================...
/*==============================================================================================*/ /*==============================================================================================*/ #include "QuadCopterConfig.h" /* Connection methods of Ultrasonic */ #define ULT_USE_UART2 1 #define ULT_USE_PWM 0 Ultr...
Make US100 sensor get distance successfully.
Make US100 sensor get distance successfully.
C
mit
zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor
b5514486424d446e30afd645827c79101e28d096
src/lib/convenienceMap/mapPutIndividualContextEntityAttribute.h
src/lib/convenienceMap/mapPutIndividualContextEntityAttribute.h
#ifndef MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the t...
#ifndef MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H #define MAP_PUT_INDIVIDUAL_CONTEXT_ENTITY_ATTRIBUTE_H /* * * Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the t...
Change date of copyright notice
Change date of copyright notice
C
agpl-3.0
jmcanterafonseca/fiware-orion,Fiware/data.Orion,gavioto/fiware-orion,guerrerocarlos/fiware-orion,Fiware/data.Orion,Fiware/context.Orion,Fiware/data.Orion,fiwareulpgcmirror/fiware-orion,pacificIT/fiware-orion,gavioto/fiware-orion,telefonicaid/fiware-orion,McMutton/fiware-orion,Fiware/context.Orion,yalp/fiware-orion,McMu...
232073b0d97756ee4b3961c99050f4e20aa29a44
src/gallium/auxiliary/target-helpers/inline_debug_helper.h
src/gallium/auxiliary/target-helpers/inline_debug_helper.h
#ifndef INLINE_DEBUG_HELPER_H #define INLINE_DEBUG_HELPER_H #include "pipe/p_compiler.h" #include "util/u_debug.h" /* Helper function to wrap a screen with * one or more debug driver: rbug, trace. */ #ifdef GALLIUM_TRACE #include "trace/tr_public.h" #endif #ifdef GALLIUM_RBUG #include "rbug/rbug_public.h" #endi...
#ifndef INLINE_DEBUG_HELPER_H #define INLINE_DEBUG_HELPER_H #include "pipe/p_compiler.h" #include "util/u_debug.h" /* Helper function to wrap a screen with * one or more debug driver: rbug, trace. */ #ifdef DEBUG #ifdef GALLIUM_TRACE #include "trace/tr_public.h" #endif #ifdef GALLIUM_RBUG #include "rbug/rbug_p...
Enable debug helpers only on debug builds.
target-helpers: Enable debug helpers only on debug builds. Some of these helpers use debug_get_option, which works also on releases.
C
mit
mcanthony/glsl-optimizer,zz85/glsl-optimizer,metora/MesaGLSLCompiler,dellis1972/glsl-optimizer,zeux/glsl-optimizer,mcanthony/glsl-optimizer,dellis1972/glsl-optimizer,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,jbarczak/glsl-optimizer,dellis1972/glsl-optimizer,benaadams/glsl-optimizer,mcanthony/glsl-optimizer,benaad...
305cbdf45f2e9414d283abb7c7f4adcf1de546fc
samplecode/GMSampleView.h
samplecode/GMSampleView.h
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GMSampleView_DEFINED #define GMSampleView_DEFINED #include "SampleCode.h" #include "gm.h" class GMSampleView : public SampleView { private: typedef skiagm::GM ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GMSampleView_DEFINED #define GMSampleView_DEFINED #include "SampleCode.h" #include "gm.h" class GMSampleView : public SampleView { private: typedef skiagm::GM ...
Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
Use : as separator between "GM" and slide name in SampleApp. This makes it easier to jump to a GM slide using command line args on windows.
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
6647f18c6da873cfda4320efff02bf1aa28c2888
projects/PathosEngine/src/pathos/mesh/static_mesh_component.h
projects/PathosEngine/src/pathos/mesh/static_mesh_component.h
#pragma once #include "pathos/actor/scene_component.h" #include "badger/types/matrix_types.h" namespace pathos { class Mesh; class MeshGeometry; class Material; // #todo-renderer: Further decompose struct StaticMeshProxy : public SceneComponentProxy { uint32 doubleSided : 1; uint32 renderInternal : 1; ma...
#pragma once #include "pathos/actor/scene_component.h" #include "badger/types/matrix_types.h" namespace pathos { class Mesh; class MeshGeometry; class Material; // #todo-renderer: Further decompose struct StaticMeshProxy : public SceneComponentProxy { uint32 doubleSided : 1; uint32 renderInternal : 1; ma...
Set default value of StaticMeshComponent::mesh to nullptr
Set default value of StaticMeshComponent::mesh to nullptr
C
mit
codeonwort/pathosengine,codeonwort/pathosengine,codeonwort/pathosengine
2f92cee416aef4684471c539e370772824ae7854
tests/tgen-mstring.c
tests/tgen-mstring.c
/* * Copyright (c) 2017-2022, Patrick Pelissier * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * + Redistributions of source code must retain the above copyright * notice, this list of cond...
/* * Copyright (c) 2017-2022, Patrick Pelissier * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * + Redistributions of source code must retain the above copyright * notice, this list of cond...
Update code for generated asm analysis
Update code for generated asm analysis
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
d0d9cd60fdfb44d71e61dca4737fc6a2c70a266e
WebSocketTransport/WebSocketTransport.h
WebSocketTransport/WebSocketTransport.h
// // WebSocketTransport.h // WebSocketTransport // // Created by Paul Young on 27/08/2014. // Copyright (c) 2014 CocoaFlow. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for WebSocketTransport. FOUNDATION_EXPORT double WebSocketTransportVersionNumber; //! Project version s...
// // WebSocketTransport.h // WebSocketTransport // // Created by Paul Young on 27/08/2014. // Copyright (c) 2014 CocoaFlow. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for WebSocketTransport. FOUNDATION_EXPORT double WebSocketTransportVersionNumber; //! Project version s...
Make BLWebSocketsServer available in Swift.
Make BLWebSocketsServer available in Swift.
C
apache-2.0
CocoaFlow/WebSocketTransport
f48d179fc86c5fc1883738a9559bfb2f3c9995ac
ZDetailKit/ZDetailKit.h
ZDetailKit/ZDetailKit.h
// // ZDetailKit.h // // Created by Lukas Zeller on 15.02.13. // Copyright (c) 2013 plan44.ch. All rights reserved. // // common #import "ZDetailEditing.h" #import "ZDBGMacros.h" // ZUtils #import "ZCustomI8n.h" // controllers #import "ZDetailTableViewController.h" // cells #import "ZButtonCell.h" #import "ZSwi...
// // ZDetailKit.h // // Created by Lukas Zeller on 15.02.13. // Copyright (c) 2013 plan44.ch. All rights reserved. // // common #import "ZDetailEditing.h" #import "ZDBGMacros.h" // ZUtils #import "ZCustomI8n.h" // controllers #import "ZDetailTableViewController.h" // cells #import "ZButtonCell.h" #import "ZSwi...
Comment improvement: explain consequences of using ZLocationCell
Comment improvement: explain consequences of using ZLocationCell
C
mit
plan44/zdetailkit
1aafca50ae3f5050c05567b76d028e30711b2ba7
project_config/lmic_project_config.h
project_config/lmic_project_config.h
// project-specific definitions for otaa sensor //#define CFG_eu868 1 #define CFG_us915 1 //#define CFG_au921 1 //#define CFG_as923 1 //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS
// project-specific definitions //#define CFG_eu868 1 #define CFG_us915 1 //#define CFG_au921 1 //#define CFG_as923 1 // #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP /* for as923-JP */ //#define CFG_in866 1 #define CFG_sx1276_radio 1 //#define LMIC_USE_INTERRUPTS
Add example of how to select Japan country
Add example of how to select Japan country
C
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
892c39d588e9a16609b67177e912ac1564317838
libk/UVSE/screenTest.c
libk/UVSE/screenTest.c
#include "../libk.h" void screenTest(void) { int rows, cols; rows = glob.rows; cols = glob.cols; printf("%s", CursorToTopLeft ClearScreen );fflush(stdout); printf("Top of Screen: rows = %d cols = %d\n\r", rows,cols);fflush(stdout); int count; for (count = 2; count < rows; count ++) {prin...
#include "../libk.h" // function screenTest void screenTest(void) { // retrieve Screen rows and columns from struct glob int rows, cols; rows = glob.rows; cols = glob.cols; // Move Screen Cursor to Top Left, Then Clear Screen printf("%s", CursorToTopLeft ClearScreen );fflush(stdout); // Print the Screen He...
Add comments suit for formatting with idiom
Add comments suit for formatting with idiom
C
bsd-2-clause
eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood
0b062eb9d2908410674c2751bbcee5b9df464732
src/sensors/lmsensor.h
src/sensors/lmsensor.h
#ifndef LMSENSOR_H #define LMSENSOR_H #include <K3Process> #include <K3ProcIO> #include "sensor.h" /** * * Hans Karlsson **/ class SensorSensor : public Sensor { Q_OBJECT public: SensorSensor(int interval, char tempUnit); ~SensorSensor(); void update(); private: K3ShellProcess ksp; QS...
#ifndef LMSENSOR_H #define LMSENSOR_H #include <K3Process> #include <K3ProcIO> #include "sensor.h" /** * * Hans Karlsson **/ class SensorSensor : public Sensor { Q_OBJECT public: SensorSensor(int interval, char tempUnit); ~SensorSensor(); void update(); private: K3ShellProcess ksp; QS...
Fix knode superkaramba compilation on NetBSD. Patch by Mark Davies. BUG: 154730
Fix knode superkaramba compilation on NetBSD. Patch by Mark Davies. BUG: 154730 svn path=/trunk/KDE/kdeutils/superkaramba/; revision=753733
C
lgpl-2.1
KDE/superkaramba,KDE/superkaramba,KDE/superkaramba
bdb2ac5ba922fe59c0aa5326b2a667ee9be2a8f0
ir/be/test/fehler111.c
ir/be/test/fehler111.c
int x = 0; int main(int argc, char *argv[]) { int y; char *p = &x; *p = 23; y = x; x = 35; return y; }
int x = 0; int main(int argc, char *argv[]) { int y; char *p = &x; *p = 23; y = x; x = 35; return y != 23; }
Fix return value of main().
Fix return value of main(). [r19359]
C
lgpl-2.1
killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,8l/libfirm,davidgiven/libfirm,libfirm/libfirm,MatzeB/libfirm,killbug2004/libfirm,davidgiven/libfirm,jonashaag/libfirm,libfirm/libfirm,jonashaag/libfirm,jonashaag/libfirm,jonashaag/libfirm,killbug2004/libfirm,8l/libfirm,8l/libfirm,MatzeB/libfirm,MatzeB/libfirm,jonashaag/...
9aadb4378eb007d7116ffea50848f18f0b06a6da
test/TestPrologue.h
test/TestPrologue.h
#pragma once #include <TestFramework/TestFramework.h> #include <cal3d/streamops.h> #include <cal3d/vector4.h> #include <boost/shared_ptr.hpp> #include <boost/scoped_ptr.hpp> #include <boost/lexical_cast.hpp> #include <boost/scoped_array.hpp> using boost::scoped_ptr; using boost::shared_ptr; using boost::lexical_cast;...
#pragma once // The old version of clang currently used on the Mac builder requires some // operator<<() declarations to precede their use in the UnitTest++ // templates/macros. -- jlee - 2014-11-21 #include <cal3d/streamops.h> #include <TestFramework/TestFramework.h> #include <cal3d/vector4.h> #include <boost/shared...
Rearrange output operator declarations in tests to make old OSX clang happy
cal3d: Rearrange output operator declarations in tests to make old OSX clang happy Maybe fixing Mac buildbot. git-svn-id: febc42a3fd39fb08e5ae2b2182bc5ab0a583559c@207440 07c76cb3-cb09-0410-85de-c24d39f1912e
C
lgpl-2.1
imvu/cal3d,imvu/cal3d,imvu/cal3d,imvu/cal3d
b837d1dfefc4ec78d94ae211cc2c29efb67e18e6
Kirin/core/ios/KirinKit/KirinKit/Services/NetworkingBackend.h
Kirin/core/ios/KirinKit/KirinKit/Services/NetworkingBackend.h
/* Copyright 2011 Future Platforms Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
/* Copyright 2011 Future Platforms Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
Make Networking run on the main thread.
Make Networking run on the main thread.
C
apache-2.0
futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin,futureplatforms/Kirin,KirinJS/Kirin,futureplatforms/Kirin
a1e0a43a37dd80462bbfe054629e88958506e8cb
EYMaskedTextField/EYMaskedTextField.h
EYMaskedTextField/EYMaskedTextField.h
// // EYMaskedTextField.h // // // Created by Evgeniy Yurtaev on 10/09/15. // Copyright (c) 2015 Evgeniy Yurtaev. All rights reserved. // #import <UIKit/UIKit.h> @protocol EYMaskedTextFieldDelegate <UITextFieldDelegate> @optional - (BOOL)textField:(UITextField *)textField shouldChangeUnformattedText:(NSString *)u...
// // EYMaskedTextField.h // // // Created by Evgeniy Yurtaev on 10/09/15. // Copyright (c) 2015 Evgeniy Yurtaev. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol EYMaskedTextFieldDelegate <UITextFieldDelegate> @optional - (BOOL)textField:(nonnull UITextField *)textField shouldCh...
Add `nonnull` and `nullable` attributes
Add `nonnull` and `nullable` attributes
C
mit
seaburg/EYMaskedTextField
ce2aa429b587714faaec43f13b345a8be80765d5
dev/multiple_renderer_separate_schema/renderman/RendermanTypes.h
dev/multiple_renderer_separate_schema/renderman/RendermanTypes.h
#pragma once #include <ri.h> #include <vector> #include "Types.h" typedef std::vector<RtInt> RtIntContainer; typedef std::vector<RtFloat> RtFloatContainer; /*! * \remark Alembic does not support "holes" but to be safe, we are targeting * RiPointsGeneralPolygons to future proof our code * * RtVoid...
#pragma once #include <ri.h> #include <vector> #include "Types.h" typedef std::vector<RtInt> RtIntContainer; typedef std::vector<RtFloat> RtFloatContainer; /*! * \remark Alembic does not support "holes" but to be safe, we are targeting * RiPointsGeneralPolygons to future proof our code * * RtVoid...
Remove _constantwidth as there are other was to determine that via the length of the _width_data vector
Remove _constantwidth as there are other was to determine that via the length of the _width_data vector
C
apache-2.0
nyue/SegmentedInterpolativeMotionBlurAlembic,nyue/SegmentedInterpolativeMotionBlurAlembic
fc75c4c360b754efbe202c8f73327a2ddf7676f5
src/plugins/crypto/compile_gcrypt.c
src/plugins/crypto/compile_gcrypt.c
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> int main (void) { gcry_cipher_hd_t elektraCryptoHandle; return 0; }
/** * @file * * @brief tests if compilation works (include and build paths set correct, etc...) * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <gcrypt.h> gcry_cipher_hd_t nothing () { gcry_cipher_hd_t elektraCryptoHandle = NULL; return elektraCryptoHandle; } int main...
Fix detection of lib if we use `-Werror`
Gcrypt: Fix detection of lib if we use `-Werror` Before this update detecting Libgcrypt would fail, if we treated warnings as errors (`-Werror`). The cause of this problem was that compiling `compile_gcrypt.cpp` produced a warning about an unused variable.
C
bsd-3-clause
mpranj/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,e1528532/libelektra,mpranj/libelektra,e1528532/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,e1528532/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,Elektra...
2f2e68df8c5655a47efad28f180070e8e87760b7
jre_emul/Classes/java_lang_Thread.h
jre_emul/Classes/java_lang_Thread.h
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
Fix unintentional tentative definitions that result in duplicate symbol definitions when building with -fno-common
Fix unintentional tentative definitions that result in duplicate symbol definitions when building with -fno-common This primarily consists of adding missing `extern`s in front of declarations of global variables, and `typedef` in front of some `NS_ENUM`s. -fno-common is being turned on by default with Clang 11. This ...
C
apache-2.0
lukhnos/j2objc,google/j2objc,lukhnos/j2objc,mirego/j2objc,groschovskiy/j2objc,lukhnos/j2objc,lukhnos/j2objc,mirego/j2objc,groschovskiy/j2objc,google/j2objc,groschovskiy/j2objc,mirego/j2objc,mirego/j2objc,groschovskiy/j2objc,lukhnos/j2objc,mirego/j2objc,google/j2objc,mirego/j2objc,lukhnos/j2objc,groschovskiy/j2objc,gros...
7217135f6a8777fbdeb0ffe08abf5ccbd5b13efc
WebApiClient/Code/WebApiClient-Core.h
WebApiClient/Code/WebApiClient-Core.h
// // WebApiClient-Core.h // WebApiClient // // Created by Matt on 21/07/15. // Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #import <WebApiClient/FileWebApiResource.h> #import <WebApiClient/NSDictionary+WebApiClient.h> #import <WebApiClient/WebApiAuthorizati...
// // WebApiClient-Core.h // WebApiClient // // Created by Matt on 21/07/15. // Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0. // #import <WebApiClient/FileWebApiResource.h> #import <WebApiClient/NSDictionary+WebApiClient.h> #import <WebApiClient/WebApiAuthorizati...
Add new file to umbrella import.
Add new file to umbrella import.
C
apache-2.0
Blue-Rocket/WebApiClient,Blue-Rocket/WebApiClient
d9f5620b549466c9f4f5eff5b99265174f0fcc42
include/portable/pprintfp.h
include/portable/pprintfp.h
#ifndef PPRINTFP_H #define PPRINTFP_H /* * Grisu3 is not part of the portable lib per se, it must be in the * include path. Grisu3 provides much faster printing and parsing in the * typical case with fallback to sprintf for printing and strod for * parsing. * * Either define PORTABLE_USE_GRISU3, or include the ...
Add portable floating point printing with optional grisu3 support
Add portable floating point printing with optional grisu3 support
C
apache-2.0
dvidelabs/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc
59764c6d3621423c9d4e136e99a69078a79ca6f5
numpy/distutils/checks/cpu_popcnt.c
numpy/distutils/checks/cpu_popcnt.c
#ifdef _MSC_VER #include <nmmintrin.h> #else #include <popcntintrin.h> #endif int main(void) { long long a = 0; int b; #ifdef _MSC_VER #ifdef _M_X64 a = _mm_popcnt_u64(1); #endif b = _mm_popcnt_u32(1); #else #ifdef __x86_64__ a = __builtin_popcountll(1); #endif b = __bui...
#ifdef _MSC_VER #include <nmmintrin.h> #else #include <popcntintrin.h> #endif #include <stdlib.h> int main(void) { long long a = 0; int b; a = random(); b = random(); #ifdef _MSC_VER #ifdef _M_X64 a = _mm_popcnt_u64(a); #endif b = _mm_popcnt_u32(b); #else #ifdef...
Fix compile-time test of POPCNT
Fix compile-time test of POPCNT The compile-time test of POPCNT, cpu_popcnt.c produced code that would execute without error even if the machine didn't support the popcnt instruction. This patch attempts to use popcnt on random numbers so the compiler can't substitute the answer at compile time.
C
bsd-3-clause
seberg/numpy,anntzer/numpy,simongibbons/numpy,charris/numpy,mattip/numpy,mattip/numpy,mhvk/numpy,jakirkham/numpy,anntzer/numpy,numpy/numpy,rgommers/numpy,mhvk/numpy,seberg/numpy,pdebuyl/numpy,pdebuyl/numpy,endolith/numpy,mhvk/numpy,rgommers/numpy,mhvk/numpy,endolith/numpy,charris/numpy,anntzer/numpy,jakirkham/numpy,rgo...
da5a68aff87e0152a5058c070b634eecaddf1a27
3RVX/3RVX.h
3RVX/3RVX.h
#pragma once #define CLASS_3RVX L"3RVXv3" static const UINT WM_3RVX_CONTROL = RegisterWindowMessage(L"WM_3RVX_CONTROL"); static const UINT WM_3RVX_SETTINGSCTRL = RegisterWindowMessage(L"WM_3RVX_SETTINGSCTRL"); #define MSG_LOAD WM_APP + 100 #define MSG_SETTINGS WM_APP + 101 #define MSG_EXIT WM_APP + 1...
#pragma once #define CLASS_3RVX L"3RVXv3" #define CLASS_3RVX_SETTINGS L"3RVX-Settings" static const UINT WM_3RVX_CONTROL = RegisterWindowMessage(L"WM_3RVX_CONTROL"); static const UINT WM_3RVX_SETTINGSCTRL = RegisterWindowMessage(L"WM_3RVX_SETTINGSCTRL"); #define MSG_LOAD WM_APP + 100 #define MSG_SETTINGS...
Add a class for the settings dialog
Add a class for the settings dialog
C
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX
18a924e2f2c783dd18c1f8a47d8be7a4dbc7eae4
modules/audio_coding/codecs/ilbc/nearest_neighbor.c
modules/audio_coding/codecs/ilbc/nearest_neighbor.c
/* * Copyright (c) 2011 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2011 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Fix ChromeOS build (C99 break)
Fix ChromeOS build (C99 break) BUG=5016 TBR=henrik.lundin@webrtc.org Review URL: https://codereview.webrtc.org/1354163002 Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9992} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 2803a40fe335a29f9584911d1a528...
C
bsd-3-clause
jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,sippet/webrtc,sippet/webrtc,aleonliao/webrtc-trunk,sippe...
4ae50e81b9a7c35f26a10bb103b8d46bfb6cf290
test/Frontend/remove-file-on-signal.c
test/Frontend/remove-file-on-signal.c
// RUN: rm -rf %t && mkdir -p %t && cd %t // RUN: not --crash %clang_cc1 %s -emit-llvm -o foo.ll // RUN: ls . | FileCheck %s --allow-empty // CHECK-NOT: foo.ll #pragma clang __debug crash FOO
Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows
[Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows Summary: Tools like clang that use RemoveFileOnSignal on their output files weren't actually able to clean up their outputs before this change. Now the call to llvm::sys::fs::remove succeeds and the temporary file is deleted. This is a stop-gap to f...
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
1a05b79f5f21097de4d3d587cca3aed790c0e434
Include/KAI/Platform/GameController.h
Include/KAI/Platform/GameController.h
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H #define KAI_PLATFORM_GAME_CONTROLLER_H #include KAI_PLATFORM_INCLUDE(GameController.h) #endif // SHATTER_PLATFORM_GAME_CONTROLLER_H //EOF
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H #define KAI_PLATFORM_GAME_CONTROLLER_H #include KAI_PLATFORM_INCLUDE(GameController.h) #endif //EOF
Add some color for console output
Add some color for console output
C
mit
cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI
ee0cae69a5f65af3ccd5011f0430c087175e9869
cpu/msp430_common/mspgcc-supplement.c
cpu/msp430_common/mspgcc-supplement.c
/* * Copyright (C) 2016 Eistec AB * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu * @{ * * @file * @brief MSPGCC supplemental functions * * @author ...
Add supplemental __clzhi2, __ctzhi2, for old MSPGCC
msp430_common: Add supplemental __clzhi2, __ctzhi2, for old MSPGCC
C
lgpl-2.1
gebart/RIOT,jasonatran/RIOT,toonst/RIOT,ant9000/RIOT,jfischer-phytec-iot/RIOT,OTAkeys/RIOT,syin2/RIOT,x3ro/RIOT,immesys/RiSyn,kaspar030/RIOT,BytesGalore/RIOT,ks156/RIOT,kerneltask/RIOT,foss-for-synopsys-dwc-arc-processors/RIOT,rfuentess/RIOT,authmillenon/RIOT,adjih/RIOT,aeneby/RIOT,Hyungsin/RIOT-OS,miri64/RIOT,syin2/RI...