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
f86f4873e8aef4d54ea45abc70b5f45af204186a
fitz/stm_filter.c
fitz/stm_filter.c
#include "fitz_base.h" #include "fitz_stream.h" fz_error fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) { fz_error reason; unsigned char *oldrp; unsigned char *oldwp; assert(!out->eof); oldrp = in->rp; oldwp = out->wp; if (f->done) return fz_iodone; reason = f->process(f, in, out); assert(i...
#include "fitz_base.h" #include "fitz_stream.h" fz_error fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) { fz_error reason; unsigned char *oldrp; unsigned char *oldwp; oldrp = in->rp; oldwp = out->wp; if (f->done) return fz_iodone; assert(!out->eof); reason = f->process(f, in, out); assert(i...
Move assert test of EOF to after testing if a filter is done.
Move assert test of EOF to after testing if a filter is done.
C
agpl-3.0
tophyr/mupdf,PuzzleFlow/mupdf,derek-watson/mupdf,cgogolin/penandpdf,ArtifexSoftware/mupdf,asbloomf/mupdf,lamemate/mupdf,lolo32/mupdf-mirror,lolo32/mupdf-mirror,loungeup/mupdf,knielsen/mupdf,kobolabs/mupdf,asbloomf/mupdf,TamirEvan/mupdf,hjiayz/forkmupdf,hackqiang/mupdf,seagullua/MuPDF,MokiMobility/muPDF,nqv/mupdf,sebras...
6c3a9502f0f9d5523102545bf344b5bc2e2bfeb9
include/mpi-compat.h
include/mpi-compat.h
/* Author: Lisandro Dalcin */ /* Contact: dalcinl@gmail.com */ #ifndef MPI_COMPAT_H #define MPI_COMPAT_H #include <mpi.h> #if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message) typedef void *PyMPI_MPI_Message; #define MPI_Message PyMPI_MPI_Message #endif #endif/*MPI_COMPAT_H*/
/* Author: Lisandro Dalcin */ /* Contact: dalcinl@gmail.com */ #ifndef MPI_COMPAT_H #define MPI_COMPAT_H #include <mpi.h> #if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message) typedef void *PyMPI_MPI_Message; #define MPI_Message PyMPI_MPI_Message #endif #if (MPI_VERSION < 4) && !defined(PyMPI_HAVE_MPI_Sessio...
Define MPI_Session for compatibility with current mpi4py main branch
Define MPI_Session for compatibility with current mpi4py main branch
C
mit
Unidata/netcdf4-python,Unidata/netcdf4-python,Unidata/netcdf4-python
66be7388475932a5a2425e3bfd7ffc57f70dcd1c
tests/regression/13-privatized/66-mine-W-init.c
tests/regression/13-privatized/66-mine-W-init.c
#include <pthread.h> #include <assert.h> int g; void *t_fun(void *arg) { return NULL; } void main() { pthread_t id; pthread_create(&id, NULL, t_fun, NULL); g = 1; assert(g); // Mine's analysis would succeed, our mine-W doesn't }
#include <pthread.h> #include <assert.h> int g; void *t_fun(void *arg) { return NULL; } void main() { pthread_t id; pthread_create(&id, NULL, t_fun, NULL); g = 1; assert(g); // TODO (Mine's analysis would succeed, our mine-W doesn't) }
Mark Mine init privatization test TODO to make others pass
Mark Mine init privatization test TODO to make others pass
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
799188a34509000f87f139423a6ba52d93ee1f1d
test2/bitfields/init/pad_end.c
test2/bitfields/init/pad_end.c
// RUN: %layout_check %s struct A { int : 0; int a; int : 0; int b; int : 0; }; struct A a = { 1, 2 };
// RUN: %layout_check %s struct A { int : 0; int a; int : 0; int : 0; int : 0; int : 0; int b; int : 0; }; struct A a = { 1, 2 };
Add more zero-width fields to bitfield padding test
Add more zero-width fields to bitfield padding test
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
b79d3efea5f31ee74a5960522b0552fc9b43dc43
test/Parser/nullability.c
test/Parser/nullability.c
// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify _Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}} #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wnullability-extension" _Nonnull int *ptr2; // no-warning #prag...
// RUN: %clang_cc1 -fsyntax-only -std=c99 -Wno-nullability-declspec -pedantic %s -verify _Nonnull int *ptr; // expected-warning{{type nullability specifier '_Nonnull' is a Clang extension}} #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wnullability-extension" _Nonnull int *ptr2; // no-warning #prag...
Fix a test case broken by my previous commit.
Fix a test case broken by my previous commit. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@240977 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-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-cl...
ca005fb4d05df5ba680b20566baf4fac515f4fe3
Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h
Classes/Utility/Runtime/Objc/FLEXRuntimeSafety.h
// // FLEXRuntimeSafety.h // FLEX // // Created by Tanner on 3/25/17. // #import <Foundation/Foundation.h> #import <objc/runtime.h> #pragma mark - Classes extern NSUInteger const kFLEXKnownUnsafeClassCount; extern const Class * FLEXKnownUnsafeClassList(void); extern NSSet * FLEXKnownUnsafeClassNames(void); extern...
// // FLEXRuntimeSafety.h // FLEX // // Created by Tanner on 3/25/17. // #import <Foundation/Foundation.h> #import <objc/runtime.h> #pragma mark - Classes extern NSUInteger const kFLEXKnownUnsafeClassCount; extern const Class * FLEXKnownUnsafeClassList(void); extern NSSet * FLEXKnownUnsafeClassNames(void); extern...
Make FLEXClassIsSafe return NO for unknown root classes
Make FLEXClassIsSafe return NO for unknown root classes
C
bsd-3-clause
NSExceptional/FLEX,NSExceptional/FLEX,Flipboard/FLEX,Flipboard/FLEX
bf11d5ba74b8250248839cb48aad0840e9cfd357
hswebkit.h
hswebkit.h
/* * Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any late...
/* * Copyright (C) 2009 Cjacker Huang <jzhuang@redflag-linux.com>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any late...
Fix CPP issue on OS X
Fix CPP issue on OS X
C
lgpl-2.1
gtk2hs/webkit,gtk2hs/webkit,gtk2hs/webkit
437e9c5483751d62f8bbbbfb7a9f83b5888eada8
src/plugins/airplay/net_utils.h
src/plugins/airplay/net_utils.h
#ifndef _NET_UTILS_H #define _NET_UTILS_H #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> char *get_local_addr(int fd); int set_sock_nonblock(int sockfd); int tcp_open(); ...
#ifndef _NET_UTILS_H #define _NET_UTILS_H #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <fcntl.h> char *get_local_addr(int fd); int set_sock_nonblock(int sockfd); int tcp_open(void...
Fix function prototype in airplay plugin.
OTHER: Fix function prototype in airplay plugin.
C
lgpl-2.1
mantaraya36/xmms2-mantaraya36,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,xmms2/xmms2-stable,oneman/xmms2-oneman,theefer/xmms2,theeternalsw0rd/xmms2,mantaraya36/xmms2-mantaraya36,oneman/xmms2-oneman,dreamerc/xmms2,theeternalsw0rd/xmms2,oneman/xmms2-oneman,krad-radio/xmms2-krad,oneman/xmms2-oneman,theeternalsw0rd/xmms2,...
7d08034b9e6805682c6bad0abe53b84312030196
src/main.c
src/main.c
#include <stdlib.h> #include <event2/event.h> #include <event2/http.h> static void time_request_cb(struct evhttp_request *req, void *arg) { (void) arg; printf("Received request for %s\n", evhttp_request_get_uri(req)); evhttp_send_reply(req, 200, "OK", NULL); } int main(int argc, char **argv) { struct...
#include <stdlib.h> #include <time.h> #include <event2/buffer.h> #include <event2/event.h> #include <event2/http.h> static void time_request_cb(struct evhttp_request *req, void *arg) { (void) arg; struct evbuffer *evb = evbuffer_new(); printf("Received request for %s\n", evhttp_request_get_uri(req)); ...
Return local server time on request
Return local server time on request
C
mit
sfod/HTTP-server
63ed1676250ad8f8549716d60c8354ae800a12a3
sys/i386/svr4/svr4_genassym.c
sys/i386/svr4/svr4_genassym.c
/* $FreeBSD$ */ /* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */ #include <sys/param.h> #include <sys/assym.h> #include <compat/svr4/svr4_signal.h> #include <compat/svr4/svr4_ucontext.h> /* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should * fix the include files...
/* $FreeBSD$ */ /* Derived from: Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp */ #include <sys/param.h> #include <sys/assym.h> #include <sys/systm.h> #include <compat/svr4/svr4_signal.h> #include <compat/svr4/svr4_ucontext.h> /* XXX: This bit sucks rocks, but gets rid of compiler errors. Maybe I should ...
Include <sys/systm.h> for the definition of offsetof() instead of depending on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>.
Include <sys/systm.h> for the definition of offsetof() instead of depending on the definition being misplaced in <sys/types.h>. The definition probably belongs in <sys/stddef.h>.
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
dd78e0e41887642975af2fa9952aed4993c4565b
opencv_detector/src/lib/filter/background_extractor.h
opencv_detector/src/lib/filter/background_extractor.h
#pragma once #include "types/process_filter.h" namespace TooManyPeeps { class BackgroundExtractor : public ProcessFilter { private: static const bool TRACK_SHADOWS = false; private: cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor; public: BackgroundExtractor(const cv::Mat& or...
#pragma once #include "types/process_filter.h" namespace TooManyPeeps { class BackgroundExtractor : public ProcessFilter { private: static const bool TRACK_SHADOWS = true; private: cv::Ptr<cv::BackgroundSubtractor> backgroundExtractor; public: BackgroundExtractor(const cv::Mat& ori...
Allow mog to track shadows
Allow mog to track shadows
C
mit
99-bugs/toomanypeeps,99-bugs/toomanypeeps,99-bugs/toomanypeeps
9f0e132783fed48c41f762e8ec33388f6feb8784
kjchess/kjchess.h
kjchess/kjchess.h
// // kjchess.h // kjchess // // Created by Kristopher Johnson on 3/11/17. // Copyright © 2017 Kristopher Johnson. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for kjchess. FOUNDATION_EXPORT double kjchessVersionNumber; //! Project version string for kjchess. FOUNDATION_EXPORT const...
// // kjchess.h // kjchess // // Copyright © 2017 Kristopher Johnson. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for kjchess. FOUNDATION_EXPORT double kjchessVersionNumber; //! Project version string for kjchess. FOUNDATION_EXPORT const unsigned char kjchessVersionString[]; // In ...
Remove a "Created by" comment line
Remove a "Created by" comment line
C
mit
kristopherjohnson/kjchess,kristopherjohnson/kjchess
3efef59ae6fc987c6b05d677b91e0f30a694ccfa
lib/osx_cf_util.h
lib/osx_cf_util.h
void osx_cf_run_loop_run();
void osx_cf_run_loop_run(); CFRunLoopRunResult osx_cf_run_loop_run_in_mode (CFStringRef mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled);
Add run_in_mode prototype to util header
Add run_in_mode prototype to util header
C
isc
dsheets/ocaml-osx-cf
ac08fb9eb09123e22d33f513a7ed11e59f6df96d
internal.h
internal.h
/***************************************************************************** * internal.h: ***************************************************************************** * Copyright (C) 2010-2012 L-SMASH project * * Authors: Takashi Hirata <silverfilain@gmail.com> * * Permission to use, copy, modify, and/or di...
/***************************************************************************** * internal.h: ***************************************************************************** * Copyright (C) 2010-2012 L-SMASH project * * Authors: Takashi Hirata <silverfilain@gmail.com> * * Permission to use, copy, modify, and/or di...
Use ftello/fseeko instead of ftell/fseek
Use ftello/fseeko instead of ftell/fseek On 32-bit systems, fseek returns a long, which is 32-bits, and fseek takes its offset argument as a long, as well. In order to return and use 64-bit offsets, use ftello and fseeko, along which defining _FILE_OFFSET_BITS 64, which is already in osdep.h.
C
isc
maki-rxrz/L-SMASH,silverfilain/L-SMASH,dwbuiten/l-smash,mstorsjo/l-smash,canbal/l-smash,canbal/l-smash,l-smash/l-smash,maki-rxrz/L-SMASH,silverfilain/L-SMASH,mstorsjo/l-smash,silverfilain/L-SMASH,l-smash/l-smash,l-smash/l-smash,dwbuiten/l-smash
957004881ae4afbd1234f648b8419b5a2cde6434
src/main.c
src/main.c
#include <stdio.h> #include "main.h" int main(int argc, char *argv[]) { usage(argv[0]); } void usage(char *utilname) { printf("Usage: %s <input_file> <output_file> [options]\n", utilname); printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n"); printf("Options:\n"); //TODO: add optional arguments for each filt...
#include <stdio.h> #include "main.h" int main(int argc, char *argv[]) { usage(argv[0]); } void usage(char *utilname) { printf("Usage: %s <input_file> <output_file> [options]\n", utilname); printf("WARNING: UTILITY IS NOT FULLY FUNCTIONAL YET\n"); printf("Options:\n"); /* TODO: add optional arguments for each fil...
Convert to Linux kernel style
Convert to Linux kernel style
C
mit
TheUnderscores/qfilt
3735e6ade1f791994f7ee203feab3dbe233c3dad
src/main.h
src/main.h
#ifndef MAIN_H #define MAIN_H #include <cstdlib> #include <iostream> #include <tr1/unordered_map> #include <vector> #include <list> #include <set> #include <pthread.h> #endif
#ifndef MAIN_H #define MAIN_H #include <unistd.h> #include <cstdlib> #include <iostream> #include <tr1/unordered_map> #include <vector> #include <list> #include <set> #include <pthread.h> #endif
Fix compile on some systems
Fix compile on some systems
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
a9b6590ced1370537edad8dc60be32c044b2380e
include/asm-mips/mach-generic/dma-coherence.h
include/asm-mips/mach-generic/dma-coherence.h
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> * */ #ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H #define __ASM_MACH_GENERIC_DMA_CO...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org> * */ #ifndef __ASM_MACH_GENERIC_DMA_COHERENCE_H #define __ASM_MACH_GENERIC_DMA_CO...
Fix a bunch of warnings due to missing inline keywords.
[MIPS] DMA: Fix a bunch of warnings due to missing inline keywords. Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana...
d9e17f30737a71df4ccc6b784f237a15484803f4
libspell.h
libspell.h
#ifndef LIBSPELL_H #define LIBSPELL_H char *spell(sqlite3*, char *); char *get_suggestions(char *); #endif
#ifndef LIBSPELL_H #define LIBSPELL_H char *spell(char *); char *get_suggestions(char *); #endif
Remove sqlite3 * parameter from the spell function's declaration.
Remove sqlite3 * parameter from the spell function's declaration.
C
bsd-2-clause
abhinav-upadhyay/spell,abhinav-upadhyay/spell
003e6f400e495cbbae7ecf4aa908c37c78c7e15a
test/Driver/offloading-interoperability.c
test/Driver/offloading-interoperability.c
// REQUIRES: clang-driver // REQUIRES: powerpc-registered-target // REQUIRES: nvptx-registered-target // // Verify that CUDA device commands do not get OpenMP flags. // // RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \ // RUN: | FileCheck %s --check-pr...
// REQUIRES: clang-driver // REQUIRES: powerpc-registered-target // REQUIRES: nvptx-registered-target // // Verify that CUDA device commands do not get OpenMP flags. // // RUN: %clang -no-canonical-prefixes -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \ // RUN: | ...
Add missing '-no-canonical-prefixes' in test.
Add missing '-no-canonical-prefixes' in test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277141 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
f9b710224dadb8157a1cf76df91509db29946e0c
src/lib/array.h
src/lib/array.h
#pragma once #include <cassert> namespace Utilities { namespace Array { template <class T, class Size = unsigned int> class Array { public: Array(T* data, Size capacity) : data_(data), capacity_(capacity) { assert(data_); assert(capacity_ > 0); } T& operator[](Size index) { assert(index < capacity...
#pragma once #include <cassert> #include <functional> namespace Utilities { namespace Array { template <class T, class Size = unsigned int> class Array { public: Array(T*&& data, Size capacity, std::function<void(T**)>&& deleteData) : data_(std::move(data)), capacity_(capacity), deleteData_(s...
Add ability for Array to take ownership of its data
Add ability for Array to take ownership of its data
C
mit
dmorrill10/cpp_utilities
9f5f289c8cfc25ee4faac85cb4d13ac0668723e7
scene/Element.h
scene/Element.h
/* * Represents an element which can be rendered as part of a scene. * Author: Dino Wernli */ #ifndef ELEMENT_H_ #define ELEMENT_H_ #include <cstddef> class IntersectionData; class Ray; class Element { public: virtual ~Element(); bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0; }; #endif ...
/* * Represents an element which can be rendered as part of a scene. * Author: Dino Wernli */ #ifndef ELEMENT_H_ #define ELEMENT_H_ #include <cstddef> class IntersectionData; class Ray; class Element { public: virtual ~Element(); virtual bool Intersect(const Ray& ray, IntersectionData* data = NULL) = 0; }; ...
Fix build failure by adding virtual keyword.
Fix build failure by adding virtual keyword.
C
mit
dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer
f25dddb1b73261e7829554b764178077f1e2ccd2
AFNetworking/AFJSONUtilities.h
AFNetworking/AFJSONUtilities.h
// AFJSONUtilities.h // // Copyright (c) 2011 Gowalla (http://gowalla.com/) // // 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...
// AFJSONUtilities.h // // Copyright (c) 2011 Gowalla (http://gowalla.com/) // // 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...
Mark the AFJSON* functions as 'extern'.
Mark the AFJSON* functions as 'extern'.
C
mit
skillz/AFNetworking
5d31b2abeec8bb6247048e8371067b753ab3e8bf
test/Frontend/stdin-input.c
test/Frontend/stdin-input.c
// RUN: cat %s | %clang -emit-llvm -g -S \ // RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s // CHECK: ; ModuleID = 'test/foo.c' // CHECK: source_filename = "test/foo.c" // CHECK: !1 = !DIFile(filename: "test/foo.c" int main() {}
// RUN: cat %s | %clang -emit-llvm -g -S \ // RUN: -Xclang -main-file-name -Xclang test/foo.c -x c - -o - | FileCheck %s // CHECK: ; ModuleID = 'test/foo.c' // CHECK: source_filename = "test/foo.c" // CHECK: !DIFile(filename: "test/foo.c" int main() {}
Fix buildbot failure from r373217 (don't match metadata id exactly)
Fix buildbot failure from r373217 (don't match metadata id exactly) Fix this failure by ignoring the id of the metadata being checked: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/3046/consoleFull#-21332887158254eaf0-7326-4999-85b0-388101f2d404 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa...
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
e34bafc84fd5a61c8bb9aeba69d7b1ebf671f99b
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
// Copyright 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #include "native_client/src/inclu...
// 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #include "native_client/src/i...
Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
Declare PPB_Core as a struct, not a class. (Prevents Clang warning) Review URL: http://codereview.chromium.org/8002017 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@102565 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
adobe/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ad...
9ece315eb7a01d212072acf474b6407956c7172e
src/main/entity/components/ComponentManager.h
src/main/entity/components/ComponentManager.h
#ifndef COMPONENTMANAGER_H_ #define COMPONENTMANAGER_H_ #include "entity/Entity.h" /** * Enumeration for each of our types of components */ enum component_t { Position, Render }; /** * Base class for all Component Managers. */ class ComponentManager { public: /** * Check if the given Entity has this mana...
#ifndef COMPONENTMANAGER_H_ #define COMPONENTMANAGER_H_ #include "entity/Entity.h" /** * Enumeration for each of our types of components */ enum component_t { Position, Sprite }; /** * Base class for all Component Managers. */ class ComponentManager { public: /** * Check if the given Entity has this mana...
Rename Render component to Sprite
Rename Render component to Sprite The old name made no sense; the new isn't *entirely* accurate, though, although neither is it entirely inaccurate.
C
mit
Kromey/roglick
406f4f8e9f92f92803f1efba52537866c1eed873
pod_node.h
pod_node.h
#ifndef INCLUDE_POD_NODE_H #define INCLUDE_POD_NODE_H #include <stddef.h> // A node is a place on a list. It simplifies doubly linked lists because the // header is just another node. Everything in Pod is a node, potentially a // part of a list or map. Header nodes should be initialized to point to // themselves...
#ifndef INCLUDE_POD_NODE_H #define INCLUDE_POD_NODE_H #include <stddef.h> // A node is a place on a list. It simplifies doubly linked lists because the // header is just another node. Everything in Pod is a node, potentially a // part of a list or map. Header nodes should be initialized to point to // themselves...
Use "extern inline" in declarations (I think).
Use "extern inline" in declarations (I think).
C
bsd-2-clause
jamesabanks/Pod
53a441240ae0097d620e9717ee10d2205c1648e0
src/util/Timeout.h
src/util/Timeout.h
#pragma once #include <functional> #include <boost/asio.hpp> // This class abstracts the boost::asio timer in order to provide a generic // facility for timeouts. Once constructed, this class will wait a certain // amount of time and then call the function. The timeout must be canceled // with cancel() before you inva...
#pragma once #include <functional> #include <atomic> #include <memory> #include <boost/asio.hpp> // This class abstracts the boost::asio timer in order to provide a generic // facility for timeouts. Once constructed, this class will wait a certain // amount of time and then call the function. The timeout must be cance...
Add missing includes to fix Clang build.
util: Add missing includes to fix Clang build.
C
bsd-3-clause
blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron,blindsighttf2/Astron
78256b80780fb1a55effc03622e278df09bdb2b9
src/policy/rbf.h
src/policy/rbf.h
// Copyright (c) 2016-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SYSCOIN_POLICY_RBF_H #define SYSCOIN_POLICY_RBF_H #include <txmempool.h> enum class RBFTransactionState { UNKNO...
// Copyright (c) 2016-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SYSCOIN_POLICY_RBF_H #define SYSCOIN_POLICY_RBF_H #include <txmempool.h> /** The rbf state of unconfirmed transacti...
Add doxygen comment to IsRBFOptIn
doc: Add doxygen comment to IsRBFOptIn Former-commit-id: 9d51bef94ec279947bd1d28bbbc917d476da2f6e
C
mit
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin
f4bccc820b62e91af8f9bee26516c28e10476810
Source/Blu/Public/BluManager.h
Source/Blu/Public/BluManager.h
#pragma once #if PLATFORM_WINDOWS #include "AllowWindowsPlatformTypes.h" #endif #include "include/cef_client.h" #include "include/cef_app.h" #if PLATFORM_WINDOWS #include "HideWindowsPlatformTypes.h" #endif class BLU_API BluManager : public CefApp { public: BluManager(); static void doBluMessageLoop(); stat...
#pragma once #if PLATFORM_WINDOWS #include "AllowWindowsPlatformTypes.h" #endif #include "include/cef_client.h" #include "include/cef_app.h" #if PLATFORM_WINDOWS #include "HideWindowsPlatformTypes.h" #endif class BLU_API BluManager : public CefApp { public: BluManager(); static void doBluMessageLoop(); stat...
Allow user to pick render settings
Allow user to pick render settings
C
mit
AaronShea/BLUI,AaronShea/BLUI,AaronShea/BLUI,bemon/BLUI,jgagner92/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,csfinch/BLUI,marcthenarc/BLUI,marcthenarc/BLUI,csfinch/BLUI,csfinch/BLUI,brandonwamboldt/BLUI,bemon/BLUI,brandonwamboldt/BLUI,jgagner92/BLUI,marcthenarc/BLUI,bemon/BLUI
3b45e689708533c3f3ac61b831b8d8a238161ca2
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 74 #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 75 #endif
Update Skia milestone to 75
Update Skia milestone to 75 Bug: skia: Change-Id: I5f682b3685eb68f36e36bf3581d068069af67ba4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198604 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.c...
C
bsd-3-clause
rubenvb/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,...
16c5392030f8f27d6b41395ccb45194cfbca79ed
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
tests/regression/13-privatized/32-traces-mine-vs-oplus-vs-meet.c
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
#include <pthread.h> #include <assert.h> int g = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&A); pthread_mutex_lock(&C); pthread_mutex_lock(&B); g = 5; pthread_mut...
Fix 13/32 to fail Mine even with thread ID partitioning
Fix 13/32 to fail Mine even with thread ID partitioning
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
b1fc4c2cd37d6ea015a016aa80514de1355b4664
win32/PlatWin.h
win32/PlatWin.h
// Scintilla source code edit control /** @file PlatWin.h ** Implementation of platform facilities on Windows. **/ // Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. extern bool IsNT(); extern void Platform_Initi...
// Scintilla source code edit control /** @file PlatWin.h ** Implementation of platform facilities on Windows. **/ // Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. extern bool IsNT(); extern void Platform_Initi...
Allow choice of D2D on compiler command line.
Allow choice of D2D on compiler command line.
C
isc
R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone
cd6663b9bab8f725d1138946f1690e63ca440238
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
//===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=// // // This pass is used to ensure that methods have at most one return instruction // in them. It also holds onto the return instruction of the last unified // method. // //===--------------------------------------------------------------...
//===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=// // // This pass is used to ensure that methods have at most one return instruction // in them. It also holds onto the return instruction of the last unified // method. // //===--------------------------------------------------------------...
Add constructor for addition to opt program
Add constructor for addition to opt program git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1626 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llv...
5564e6c45401c37adb9444b6bf0ef8ce70b1fce8
test/Misc/dev-fd-fs.c
test/Misc/dev-fd-fs.c
// Check that we can operate on files from /dev/fd. // REQUIRES: dev-fd-fs // Check reading from named pipes. We cat the input here instead of redirecting // it to ensure that /dev/fd/0 is a named pipe, not just a redirected file. // // RUN: cat %s | %clang -x c /dev/fd/0 -E > %t // RUN: FileCheck --check-prefix DEV-...
// Check that we can operate on files from /dev/fd. // REQUIRES: dev-fd-fs // Check reading from named pipes. We cat the input here instead of redirecting // it to ensure that /dev/fd/0 is a named pipe, not just a redirected file. // // RUN: cat %s | %clang -x c /dev/fd/0 -E > %t // RUN: FileCheck --check-prefix DEV-...
Check that we can output to /dev/fd filesystem.
tests: Check that we can output to /dev/fd filesystem. - An LLVM unique_file() bug could cause us to infinite loop on the later test case. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@168082 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
478712e78ca63c1816adfdfc25ff323ab30df49d
src/quick_sort.h
src/quick_sort.h
// -*- mode: c++ -*- // Copyright (c) 2014 Olaf Dietsche #ifndef __quick_sort_h_included__ #define __quick_sort_h_included__ #include <functional> #include <iterator> #include <utility> template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp) { --last; T pivot = *last; while (fir...
// -*- mode: c++ -*- // Copyright (c) 2014 Olaf Dietsche #ifndef __quick_sort_h_included__ #define __quick_sort_h_included__ #include <functional> #include <iterator> #include <utility> template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp) { --last; T pivot = *last; while (fir...
Fix sort of second half
Fix sort of second half
C
mit
olafdietsche/algorithms
1f8ab6a78828996947893bef790d5fb7d24d8197
src/bin/test_panel.c
src/bin/test_panel.c
#include <Elementary.h> #ifndef ELM_LIB_QUICKLAUNCH void test_panel(void *data, Evas_Object *obj, void *event_info) { Evas_Object *win, *bg, *panel; win = elm_win_add(NULL, "panel", ELM_WIN_BASIC); elm_win_title_set(win, "Panel"); elm_win_autodel_set(win, 1); bg = elm_bg_add(win); elm_win_resize_...
#include <Elementary.h> #ifndef ELM_LIB_QUICKLAUNCH void test_panel(void *data, Evas_Object *obj, void *event_info) { Evas_Object *win, *bg, *panel; Evas_Object *list; win = elm_win_add(NULL, "panel", ELM_WIN_BASIC); elm_win_title_set(win, "Panel"); elm_win_autodel_set(win, 1); bg = elm_bg_add(wi...
Add a genlist to the panel test.
Add a genlist to the panel test. SVN revision: 43175
C
lgpl-2.1
FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary
abbeadabe96f0d17430bff01e9d01643fa54ca82
Classes/GTDiff.h
Classes/GTDiff.h
// // GTDiff.h // ObjectiveGitFramework // // Created by Danny Greg on 29/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" @class GTTree; @interface GTDiff : NSObject @property (nonatomic, readonly, assign) git_diff_list *git_diff_list; + (GTDiff *)diffOldTree:(GTTree *)oldT...
// // GTDiff.h // ObjectiveGitFramework // // Created by Danny Greg on 29/11/2012. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import "git2.h" @class GTTree; typedef enum : git_delta_t { GTDiffFileDeltaUnmodified = GIT_DELTA_UNMODIFIED, GTDiffFileDeltaAdded = GIT_DELTA_ADDED, GTDiffFileDeltaDe...
Declare an enum for git_delta_t
Declare an enum for git_delta_t
C
mit
phatblat/objective-git,c9s/objective-git,Acidburn0zzz/objective-git,dleehr/objective-git,tiennou/objective-git,libgit2/objective-git,misterfifths/objective-git,alehed/objective-git,blackpixel/objective-git,misterfifths/objective-git,c9s/objective-git,0x4a616e/objective-git,alehed/objective-git,TOMalley104/objective-git...
162924dad528b4b475150405038f507876e1634d
composite.c
composite.c
#include "composite.h" Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex) { CompositeData *d = data; if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) { } return canvas; }
#include "composite.h" Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex) { CompositeData *d = data; if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) { ex->severity = DrawError; return NULL; } return canvas; }
Return an error if CompositeImage fails
Return an error if CompositeImage fails
C
mit
etix/magick,rainycape/magick,zuriu/magick,zuriu/magick,500px/magick,500px/magick,rainycape/magick,zuriu/magick,500px/magick,etix/magick,etix/magick,rainycape/magick
57113e9209a110d6ee9743b01f396f14016b13f6
include/nbind/nbind.h
include/nbind/nbind.h
// This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__) #include "noconflict.h" #define function NBIND_FUNCTION #define multifunction NBIND_MU...
// This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__) #include "noconflict.h" #define function NBIND_FUNCTION #define multifunction NBIND_MU...
Fix build issue on Windows.
Fix build issue on Windows.
C
mit
charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind
b10f05e91dc5bd22105a4159e0ecf4f41f2d27f2
vsprojects/dummy.c
vsprojects/dummy.c
/* * * Copyright 2015, Google Inc. * 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 condi...
/* * * Copyright 2015, Google Inc. * 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 condi...
Fix newline at end of file
Fix newline at end of file
C
apache-2.0
malexzx/grpc,jtattermusch/grpc,kpayson64/grpc,grani/grpc,goldenbull/grpc,nicolasnoble/grpc,msiedlarek/grpc,ppietrasa/grpc,ipylypiv/grpc,goldenbull/grpc,donnadionne/grpc,Crevil/grpc,ppietrasa/grpc,ctiller/grpc,nicolasnoble/grpc,makdharma/grpc,greasypizza/grpc,ctiller/grpc,philcleveland/grpc,soltanmm/grpc,podsvirov/grpc,...
a84cee8127a0e9724b26e7d1d527f220c358c328
util/cast_util.h
util/cast_util.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). namespace rocksdb { // The helper function to assert the ...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once namespace rocksdb { // The helper function ...
Add a missing "once" in .h
Add a missing "once" in .h Summary: Closes https://github.com/facebook/rocksdb/pull/2670 Differential Revision: D5529018 Pulled By: siying fbshipit-source-id: 10a378933d509035d2dbe502247dd85fcea09789
C
bsd-3-clause
Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,bbiao/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,SunguckLee/RocksDB,Andymic/roc...
ad7dfb9776553aefa94360bcf87032bea8a069fa
helpers.h
helpers.h
#ifndef _HELPERS_H #define _HELPERS_H #include <stdarg.h> #include <stdio.h> #include <stdint.h> #define LENGTH(x) (sizeof(x) / sizeof(*x)) #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BOOLSTR(A) ((A) ? "true" : "false") #define MAXLEN 25...
#ifndef _HELPERS_H #define _HELPERS_H #include <stdarg.h> #include <stdio.h> #include <stdint.h> #define LENGTH(x) (sizeof(x) / sizeof(*x)) #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BOOLSTR(A) ((A) ? "true" : "false") #define MAXLEN 25...
Address the non-portability of the PRINTF macro
Address the non-portability of the PRINTF macro
C
bsd-2-clause
nfnty/bspwm,0re5ama/bspwm,netzverweigerer/bspwm,nfnty/bspwm,JBouron/bspwm,JBouron/bspwm,XiKuuKy/bspwm,JBouron/bspwm,medisun/bspwm,Stebalien/bspwm,jbalint/bspwm,jbalint/bspwm,nfnty/bspwm,baskerville/bspwm,0re5ama/bspwm,medisun/bspwm,medisun/bspwm,XiKuuKy/bspwm,ikn/bspwm,netzverweigerer/bspwm,baskerville/bspwm,0re5ama/bs...
7438c35b557fb834703ecc8c35acb20d2fd5abcc
include/rmd160.h
include/rmd160.h
#ifndef _RMD160_H_ #define _RMD160_H_ typedef struct { unsigned int rmd[5]; unsigned char buf[64]; unsigned int nbuf; } rmd160_context; void rmd160_init(rmd160_context *ctx); void rmd160_update(rmd160_context *ctx, const void *data, unsigned len); void rmd160_final(rmd160_context *ctx, void *digest); void rmd160_h...
#ifndef _RMD160_H_ #define _RMD160_H_ #include <stdint.h> typedef struct { uint64_t len; uint32_t rmd[5]; uint8_t buf[64]; uint32_t nbuf; } rmd160_context; void rmd160_init(rmd160_context *ctx); void rmd160_update(rmd160_context *ctx, const void *data, unsigned nbytes); void rmd160_final(rmd160_context *ctx, un...
Use C99 stdint types, update prototypes.
Use C99 stdint types, update prototypes.
C
bsd-2-clause
fmela/weecrypt,fmela/weecrypt
1f5f35cc0e89312c6b6aef13689ab0c821d36da6
src/modules/cpufreq/e_mod_main.h
src/modules/cpufreq/e_mod_main.h
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
Remove unused (and deprecated) declaration.
Remove unused (and deprecated) declaration. git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@32298 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
62a27af5a8c9e03a1bfbf6ec796917277ee263d1
src/main.c
src/main.c
#include "nrf_delay.h" #include "nrf_gpio.h" int main(void){ nrf_gpio_range_cfg_output(21,22); while(1){ nrf_gpio_pin_write(21,1); nrf_gpio_pin_write(22,1); nrf_delay_ms(80); nrf_gpio_pin_write(21, 1); nrf_gpio_pin_write(22, 1); nrf_delay_ms(80); }...
#include "nrf_delay.h" #include "nrf_gpio.h" int main(void){ nrf_gpio_range_cfg_output(21,22); while(1){ nrf_gpio_pin_write(21,1); nrf_gpio_pin_write(22,0); nrf_delay_ms(80); nrf_gpio_pin_write(21, 0); nrf_gpio_pin_write(22, 1); nrf_delay_ms(80); }...
Fix C program - Leds were not toggling anymore
Fix C program - Leds were not toggling anymore
C
mit
rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg,rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg
c60e3d16e8f405b2e56bf530aa550e6223fca0f7
src/main.c
src/main.c
#include "common.h" #include "arguments.h" TCHAR *get_version(void) { return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n"); } int _tmain(int argc, TCHAR *argv[]) { int result; initialize_arguments(); if(parse_arguments(argv) != ARGS_OK || arguments.error) { _tprintf(_T("%s"...
#include "common.h" #include "arguments.h" TCHAR *get_version(void) { return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n"); } TCHAR *get_copyright(void) { return _T(""); } int _tmain(int argc, TCHAR *argv[]) { int result; initialize_arguments(); if(parse_arguments(argv) != ...
Add stub for legal notice.
Add stub for legal notice.
C
bsd-2-clause
abenson/hostkit,abenson/hostkit
667e5c1daf0f5e6183361e8c6ff47b34bae3bea3
src/uart.c
src/uart.c
#include "uart.h" void uart_putchar(char c, FILE *stream) { if( c == '\n' ) uart_putchar( '\r', stream ); UDR0 = c; loop_until_bit_is_set(UCSR0A, TXC0); } static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE); void uart_init(void) { UBRR0L = BAUDRATE&0xFF; UBRR0H...
#include "uart.h" void uart_putchar(char c, FILE *stream) { if( c == '\n' ) uart_putchar('\r', stream); loop_until_bit_is_set(UCSR0A, UDRE0); UDR0 = c; } static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE); void uart_init(void) { UBRR0L = BAUDRATE&0xFF; UBRR0H ...
Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
C
mit
nathanhi/steep-beta,nathanhi/steep-beta
e95489710c532a005dec1eac1f742d2c794d14d3
lib/haka/regexp_module.c
lib/haka/regexp_module.c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <haka/error.h> #include <haka/regexp_module.h> struct regexp_module *regexp_module_load(const char *modu...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <haka/error.h> #include <haka/regexp_module.h> struct regexp_module *regexp_module_load(const char *modu...
Fix memory leak on regexp module load
Fix memory leak on regexp module load
C
mpl-2.0
nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,Wingless-Archangel/haka,lcheylus/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka
c3a30babd416d7c91ba0d187ff9e57df49930595
ouzel/input/linux/InputLinux.h
ouzel/input/linux/InputLinux.h
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include <X11/keysym.h> #include <X11/XKBlib.h> #include <X11/cursorfont.h> #include <X11/X.h> #include "input/Input.h" namespace ouzel { class Engine; namespace input { class InputLinux: public Input ...
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #pragma once #include <X11/keysym.h> #include <X11/XKBlib.h> #include <X11/cursorfont.h> #include <X11/X.h> #include "input/Input.h" namespace ouzel { class Engine; namespace input { class InputLinux: public Input ...
Fix the declaration of Cursor on Linux
Fix the declaration of Cursor on Linux
C
unlicense
Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel
20539f35218d24ec960e37b70927849f30c344f0
net/flip/flip_bitmasks.h
net/flip/flip_bitmasks.h
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_FLIP_FLIP_BITMASKS_H_ #define NET_FLIP_FLIP_BITMASKS_H_ namespace flip { const int kStreamIdMask = 0x7fffffff; // StreamId mask from th...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_FLIP_FLIP_BITMASKS_H_ #define NET_FLIP_FLIP_BITMASKS_H_ namespace flip { const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mas...
Fix signed vs unsigned issue
linux: Fix signed vs unsigned issue Review URL: http://codereview.chromium.org/297015 git-svn-id: http://src.chromium.org/svn/trunk/src@30099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 86a9c861257cd0e752a713d61f3f4a14473acfa2
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
f285f813cc3d270186ea4789da82cb8b8c9ff1f9
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 6 #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 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 7 #define CLIENT_VERSION_BUILD ...
Mark Devcoin release version 0.8.7.0.
Mark Devcoin release version 0.8.7.0.
C
mit
coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin
5ffcc6ae21937e80848d6e37b23734aa999ab6af
src/ucc/filemodes.h
src/ucc/filemodes.h
#define FILEMODES \ X(preproc, "c", 'i') \ X(compile, "cpp-output", 's') \ X(assemb, "assembler", 'o') \ ALIAS(assemb, "asm") \ X(assemb_with_cpp, "assembler-with-cpp", 'o') \ ALIAS(assemb_with_cpp, "asm-with-cpp") \
#ifndef FILEMODES_H #define FILEMODES_H #define FILEMODES \ X(preproc, "c", 'i') \ X(compile, "cpp-output", 's') \ X(assemb, "assembler", 'o') \ ALIAS(assemb, "asm") \ X(assemb_with_cpp, "assembler-with-cpp", 'o') \ ALIAS(assemb_with_cpp, "asm-with-cpp") #endif
Fix filesmodes multiple-inc and backslash-eof
Fix filesmodes multiple-inc and backslash-eof
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
6a5388550ed2d5d5efcce1e164391eafe528dba1
tree/ntuple/inc/LinkDef.h
tree/ntuple/inc/LinkDef.h
// Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix class name spelling in class rule
[ntuple] Fix class name spelling in class rule
C
lgpl-2.1
karies/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,kari...
6e3256887f14fd4b946d37318ddaa37c799dcd17
test/tsan/thread_exit.c
test/tsan/thread_exit.c
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s #include "test.h" int var; void *Thread(void *x) { pthread_exit(&var); return 0; } int main() { pthread_t t; pthread_create(&t, 0, Thread, 0); void *retval = 0; pthread_join(t, &retval); if (retval != &var) { fprintf(stderr, "Unexpecte...
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 // | FileCheck %s #include "test.h" int var; void *Thread(void *x) { fprintf(stderr, "Thread\n"); pthread_exit(&var); return 0; } int main() { fprintf(stderr, "MAIN\n"); pthread_t t; pthread_create(&t, 0, Thread, 0); void *retval = 0; fprintf(stderr, "...
Debug failing test on PPC bot
[tsan] Debug failing test on PPC bot git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@353617 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
822adf4743536e3c0fac1861fa23e57801ebf3aa
core/formats/nifti_utils.h
core/formats/nifti_utils.h
/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
Fix for short file names
Formats::is_nifti(): Fix for short file names
C
mpl-2.0
MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3
e050411af032f62ce4e4f5775b13607e3c754e4a
meta.h
meta.h
#pragma once #include "ffmpeg.h" #include <stddef.h> #include <stdint.h> struct Meta { char const* title; char const* artist; }; struct Meta retrieve_meta(AVFormatContext* ctx);
#pragma once #include "ffmpeg.h" #include <stddef.h> #include <stdint.h> struct Meta { const char const* title; const char const* artist; }; struct Meta retrieve_meta(AVFormatContext* ctx);
Fix incorrect const pointer marking.
Fix incorrect const pointer marking.
C
mit
bakape/thumbnailer,bakape/thumbnailer
43fc1531f877c2c7d5369a29b236aa48d6ebe08c
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #include "abstractformeditortool.h" namespace QmlDesigner { class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool { public: AbstractCustomTool(); void selectedItemsChang...
#ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H #include "abstractformeditortool.h" namespace QmlDesigner { class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool { public: AbstractCustomTool(); void selectedItemsChang...
Remove wrong override for wantHandleItem
QmlDesigner: Remove wrong override for wantHandleItem Change-Id: I283897f528e03df1d89200906f8d7d8f1066b6d3 Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@digia.com> Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
C
lgpl-2.1
duythanhphan/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,colede/qtcreator,duythanhphan/qt-creator,danimo/qt-c...
d8c93163ddf1e91bffe0449a66fed3bd47e8844e
test/CFrontend/2005-02-27-MarkGlobalConstant.c
test/CFrontend/2005-02-27-MarkGlobalConstant.c
// RUN: %llvmgcc -xc %s -S -o - | grep 'ctor_.* constant ' // The synthetic global made by the CFE for big initializer should be marked // constant. void bar(); void foo() { char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd"; bar(Blah); }
// RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant ' // The synthetic global made by the CFE for big initializer should be marked // constant. void bar(); void foo() { char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd"; bar(Blah); }
Fix this regex to match what llvmgcc4 produces also
Fix this regex to match what llvmgcc4 produces also git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27673 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,a...
953660c5630b5d3bdf4567b68ba6e51929395ee5
tensorflow/core/platform/default/stream_executor_util.h
tensorflow/core/platform/default/stream_executor_util.h
q /* Copyright 2015 Google Inc. 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 agreed...
/* Copyright 2015 Google Inc. 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 agreed to in ...
Fix build breakage from a typo. Change: 111528530
Fix build breakage from a typo. Change: 111528530
C
apache-2.0
manazhao/tf_recsys,martinwicke/tensorflow,manjunaths/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Carmezim/tensorflow,Kongsea/tensorflow,petewarden/tensorflow_makefile,ppries/tensorflow,rabipanda/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,arborh/tensorflow,Mistobaan/tensorflow,renyi533/tensorflow,X...
d456379d6c183b97b5fecae6f256fd6c931fcf04
include/rapidcheck-catch.h
include/rapidcheck-catch.h
#pragma once #include <rapidcheck.h> #include <sstream> namespace rc { /// For use with `catch.hpp`. Use this function wherever you would use a /// `SECTION` for convenient checking of properties. /// /// @param description A description of the property. /// @param testable The object that implements the prope...
#pragma once #include <rapidcheck.h> #include <sstream> namespace rc { /// For use with `catch.hpp`. Use this function wherever you would use a /// `SECTION` for convenient checking of properties. /// /// @param description A description of the property. /// @param testable The object that implements the prope...
Add printing of distribution to catch.hpp integration
Add printing of distribution to catch.hpp integration
C
bsd-2-clause
unapiedra/rapidfuzz,unapiedra/rapidfuzz,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck
6031c76c7967b748fa9f6fddf7d042bda3e2e5de
smbase/intstack.h
smbase/intstack.h
// intstack.h see license.txt for copyright and terms of use // stack of ints // quarl 2006-05-31 initial version based on sobjstack.h #ifndef INTSTACK_H #define INTSTACK_H #include "intlist.h" // IntList template <class T> class IntStack { private: // data // will implement the stack as a list...
// intstack.h see license.txt for copyright and terms of use // stack of ints // quarl 2006-05-31 initial version based on sobjstack.h #ifndef INTSTACK_H #define INTSTACK_H #include "intlist.h" // IntList template <class T> class IntStack { private: // data // will implement the stack as a list...
Add IntStack::nth() for peeking at Nth item
Add IntStack::nth() for peeking at Nth item
C
bsd-3-clause
angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar
85854585eba837646ecd0977e65c95be89c53818
firmlaunch.h
firmlaunch.h
#ifndef FIRMLAUNCH_H #define FIRMLAUNCH_H #include "types.h" int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2); void firmlaunch(u32* FIRM); int patch(u32* FIRM, u32* search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size); #endif
#ifndef FIRMLAUNCH_H #define FIRMLAUNCH_H #include "types.h" int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2); void firmlaunch(u32* FIRM); int patch(u32* FIRM, u32 search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size); #endif
Fix my stupid error :/
Fix my stupid error :/
C
mit
fox8091/libFirmlaunch,fox8091/libFirmlaunch
fa7c9bc2318b195aa8218e51e8f1c4b1f52ac43e
src/math/p_acos.c
src/math/p_acos.c
#include <pal.h> /** * * Computes the inverse cosine (arc cosine) of the input vector 'a'. Input * values to acos must be in the range -1 to 1. The result values are in the * range 0 to pi. The function does not check for illegal input values. * * @param a Pointer to input vector * * @param c Pointer t...
#include <math.h> #include <pal.h> static const float pi_2 = (float) M_PI / 2.f; /** * * Computes the inverse cosine (arc cosine) of the input vector 'a'. Input * values to acos must be in the range -1 to 1. The result values are in the * range 0 to pi. The function does not check for illegal input values. * * ...
Implement the inverse cosine function.
math:acos: Implement the inverse cosine function. Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
C
apache-2.0
debug-de-su-ka/pal,parallella/pal,eliteraspberries/pal,aolofsson/pal,aolofsson/pal,Adamszk/pal3,debug-de-su-ka/pal,eliteraspberries/pal,eliteraspberries/pal,parallella/pal,mateunho/pal,debug-de-su-ka/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,olajep/pal,8l/pal,Adamszk/pal3,8l/pal,parallella/pal,debug-de-su-ka/pal...
90da898d0f4e4b3e664a081be92141e61b28fc46
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <stack> #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Mod...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <stack> #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Mod...
Add const modifier to post and put method of DataStore
Add const modifier to post and put method of DataStore
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
75338467e66fd3c862a0a48363c3f4681f30180a
OCDSpec/OCDSpecDescriptionRunner.h
OCDSpec/OCDSpecDescriptionRunner.h
#import <Foundation/Foundation.h> #import "OCDSpec/Protocols/DescriptionRunner.h" #import "OCDSpec/OCDSpecDescription.h" #import "OCDSpec/OCDSpecSharedResults.h" #import "OCDSpec/AbstractDescriptionRunner.h" @interface OCDSpecDescriptionRunner : NSObject { Class *classes; int classCount; id ...
#import <Foundation/Foundation.h> #import "OCDSpec/Protocols/DescriptionRunner.h" #import "OCDSpec/OCDSpecDescription.h" #import "OCDSpec/OCDSpecSharedResults.h" #import "OCDSpec/Abstract/AbstractDescriptionRunner.h" @interface OCDSpecDescriptionRunner : NSObject { Class *classes; int classCount...
Correct the project for the move
Correct the project for the move
C
mit
paytonrules/OCDSpec,paytonrules/OCDSpec
0da6fb4d36a340b36f6153c66bcd432982abf1dd
src/python/pylogger.h
src/python/pylogger.h
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
#ifndef PYLOGGER_H #define PYLOGGER_H #include "Python.h" #include <string> #include "cantera/base/logger.h" namespace Cantera { /// Logger for Python. /// @ingroup textlogs class Py_Logger : public Logger { public: Py_Logger() { PyRun_SimpleString("import sys"); } virtual ~Py_Logger() {} vi...
Fix Py_Logger to raise instances of Exception instead of strings
Fix Py_Logger to raise instances of Exception instead of strings Raising string exceptions was removed in Python 2.6
C
bsd-3-clause
imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,Heathckliff/cantera,imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,Heathckliff/cantera
54ec1c1815f4ca6306eceac7b3297aa970962ec0
src/enums.h
src/enums.h
#ifndef ENUMS_H #define ENUMS_H #include <QtCore> enum MidiDataRole { MidiValueType = Qt::UserRole + 1, MidiValueMin, MidiValueMax }; enum MidiType { DefaultType, NoteType, ToggleType, StringType, ChannelType }; #endif
#ifndef ENUMS_H #define ENUMS_H #include <QtCore> enum MidiDataRole { MidiValueType = Qt::UserRole + 1, MidiValueMin, MidiValueMax, MidiValues }; enum MidiType { DefaultType, NoteType, ToggleType, StringType, ChannelType }; #endif
Add custom data role MidiValues
Add custom data role MidiValues
C
mit
charlesfleche/lpd8-editor,charlesfleche/lpd8-editor
b6a04637c81e41c348e985c78f3e9f3009a19826
hello_mpi.c
hello_mpi.c
#include <stdio.h> #include <mpi.h> #include "hello_mpi.h" int hello_mpi(void) { int numprocs, rank, namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; MPI_Init(NULL, NULL); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Get_processor_name(processor_nam...
#include <stdio.h> #include <mpi.h> #include <unistd.h> #include "hello_mpi.h" int hello_mpi(void) { int numprocs, rank, namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; MPI_Init(NULL, NULL); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Get_processo...
Convert from MPI_Send/Recv, to MPI_ISend/IRecv
Convert from MPI_Send/Recv, to MPI_ISend/IRecv
C
mit
Convolution-filter/convolution-filter-MPI
fe85b79dbc358dc3ecddf77f33621798541f358f
src/forces/label_state.h
src/forces/label_state.h
#ifndef SRC_FORCES_LABEL_STATE_H_ #define SRC_FORCES_LABEL_STATE_H_ #include <Eigen/Core> #include <string> #include <map> namespace Forces { class Force; /** * \brief Encapsulates state for a label necessary for the simulation * * This consists of label and anchor positions in 2D and 3D, as well as * the label...
#ifndef SRC_FORCES_LABEL_STATE_H_ #define SRC_FORCES_LABEL_STATE_H_ #include <Eigen/Core> #include <string> #include <map> namespace Forces { class Force; /** * \brief Encapsulates state for a label necessary for the simulation * * This consists of label and anchor positions in 2D and 3D, as well as * the label...
Remove const modifier from LabelState members.
Remove const modifier from LabelState members. This enables move and move assignment, which is necessary for containers.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
8532fe7dbbe4425a76bdd945a342714624f8673c
webkit/glue/webkit_constants.h
webkit/glue/webkit_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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
// 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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ #define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_ namespace webkit_glue { // Chromium sets the minimum interval timeou...
Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption.
Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. The new interval is 1000 ms, or once per second. We can easily adjust this value up or down, but this seems like a reasonable value to judge the compatibility ...
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
784e657183e783a2db4c42e18d1e2224e408b052
src/botansqlite3/botansqlite3.c
src/botansqlite3/botansqlite3.c
/* * (C) 2016 Daniel Seither (Kullo GmbH) * * Distributed under the terms of the Botan license */ #define SQLITE_HAS_CODEC 1 #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wcast-align" #pragma clang diagnostic ignored "-Wcast-qual" #pragma clang diagnostic ignored "-Wconversion" #pragma clang di...
/* * (C) 2016 Daniel Seither (Kullo GmbH) * * Distributed under the terms of the Botan license */ #define SQLITE_HAS_CODEC 1 #if defined __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wcast-align" #pragma clang diagnostic ignored "-Wcast-qual" #pragma clang diagnostic i...
Fix unknown pragma warnings on MSVC
Fix unknown pragma warnings on MSVC
C
bsd-3-clause
kullo/smartsqlite,kullo/smartsqlite,kullo/smartsqlite
c62a4efe9492d867e281c2c680e0b8c185d9669b
eg/inc/LinkDef.h
eg/inc/LinkDef.h
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000/09/06 15:15:18 brun Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000/09/08 16:42:12 brun Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Use option + for TAttParticle and TPrimary
Use option + for TAttParticle and TPrimary git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@932 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
nilqed/root,agarciamontoro/root,jrtomps/root,vukasinmilosevic/root,abhinavmoudgil95/root,zzxuanyuan/root,buuck/root,perovic/root,Dr15Jones/root,sawenzel/root,olifre/root,ffurano/root5,sawenzel/root,0x0all/ROOT,simonpf/root,agarciamontoro/root,sbinet/cxx-root,esakellari/root,omazapa/root,tc3t/qoot,mhuwiler/rootauto,ffur...
62f0dc07ed56e285e349a244ab402e20092b8eb0
frtstream/src/vespa/frtstream/frtserverstream.h
frtstream/src/vespa/frtstream/frtserverstream.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/frtstream/frtstream.h> namespace frtstream { class FrtServerStream : public FrtStream { FRT_RPCRequest* request; uint32_t _nextOutValue; FRT_Values& in() { ...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/frtstream/frtstream.h> namespace frtstream { class FrtServerStream : public FrtStream { FRT_RPCRequest* request; uint32_t _nextOutValue; FRT_Values& in() overrid...
Fix warnings hidden earlier due to including application headers as system includes
Fix warnings hidden earlier due to including application headers as system includes
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
ab4d30fe039870d8912855a3550bf4b52fb262f2
srtp.h
srtp.h
#ifndef SRTP_H #define SRTP_H #include <string.h> #include <stdlib.h> #include <stdio.h> #include "srtp2/srtp.h" typedef struct rtp_packet { void *data; int len; } rtp_packet; srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile); rtp_packet *srtp_decrypt_packet(srtp_t * sess,...
#ifndef SRTP_H #define SRTP_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include "srtp2/srtp.h" typedef struct rtp_packet { void *data; int len; } rtp_packet; srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile); rtp_packet *srtp_decrypt_packet(srtp_t *sess...
Add <stdlib.h> to GStreamer code
Add <stdlib.h> to GStreamer code Run clang-format on DTLS+SRTP
C
mit
pion/srtp
a1aadd55fb43e31407aecc4ebaf0258130a98238
include/asm-sparc64/kdebug.h
include/asm-sparc64/kdebug.h
#ifndef _SPARC64_KDEBUG_H #define _SPARC64_KDEBUG_H /* Nearly identical to x86_64/i386 code. */ #include <linux/notifier.h> struct pt_regs; /* * These are only here because kprobes.c wants them to implement a * blatant layering violation. Will hopefully go away soon once all * architectures are updated. */ sta...
#ifndef _SPARC64_KDEBUG_H #define _SPARC64_KDEBUG_H /* Nearly identical to x86_64/i386 code. */ #include <linux/notifier.h> struct pt_regs; /* * These are only here because kprobes.c wants them to implement a * blatant layering violation. Will hopefully go away soon once all * architectures are updated. */ sta...
Kill unused DIE_PAGE_FAULT enum value.
[SPARC64]: Kill unused DIE_PAGE_FAULT enum value. sparc64 got rid of the pagefault notifiers, so the enum value for them can go away aswell. Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de> Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program...
de4ecf75c925661e8543a95d9a98c76d1382b5b1
examples/hello.c
examples/hello.c
#define ZF_LOG_LEVEL ZF_LOG_INFO #define ZF_LOG_TAG "MAIN" #include <zf_log.h> int main(int argc, char *argv[]) { zf_log_set_tag_prefix("hello"); ZF_LOGI("You will see the number of arguments: %i", argc); ZF_LOGD("You will NOT see the first argument: %s", *argv); zf_log_set_output_level(ZF_LOG_WARN); ZF_LOGW("Y...
#define ZF_LOG_LEVEL ZF_LOG_INFO #define ZF_LOG_TAG "MAIN" #include <zf_log.h> int main(int argc, char *argv[]) { zf_log_set_tag_prefix("hello"); ZF_LOGI("You will see the number of arguments: %i", argc); ZF_LOGD("You will NOT see the first argument: %s", *argv); zf_log_set_output_level(ZF_LOG_WARN); ZF_LOGW("Y...
Add example for memory logging support
Add example for memory logging support
C
mit
wonder-mice/zf_log,wonder-mice/zf_log,wonder-mice/zf_log
a9865d3e8694bfe5f94e69fd87d6d90798578936
chapter-1/1-2-backslash-c.c
chapter-1/1-2-backslash-c.c
/** * Exercise 1-2 * * Experiment to find out what happens when prints's argument string contains \c, * where c is some character not listed above. * * The C Programming Language - the second edition * by Brian Kernighan and Dennis Ritchie * * Author: Li Zhineng <lizhineng@gmail.com> * URL: https://zhineng...
/** * Exercise 1-2 * * Experiment to find out what happens when printfs's argument string contains \c, * where c is some character not listed above. * * The C Programming Language - the second edition * by Brian Kernighan and Dennis Ritchie * * Author: Li Zhineng <lizhineng@gmail.com> * URL: https://zhinen...
Fix misspelling in execrise 2 in chapter 1
Fix misspelling in execrise 2 in chapter 1
C
mit
lizhineng/learning-the-c-programming-language
8bdf7b1d4d4534a373550ec20b6f4c8308094212
check_tests/eas_test_user.h
check_tests/eas_test_user.h
#ifndef __EAS_TEST_USER_H__ #define __EAS_TEST_USER_H__ #define TEST_ACCOUNT_ID ("good.user@cstylianou.com") // Password: "G00dP@55w0rd" #endif
#ifndef __EAS_TEST_USER_H__ #define __EAS_TEST_USER_H__ #define TEST_ACCOUNT_ID ("good.user@cstylianou.com") // Password: "G00dP@55w0rd" // #define TEST_ACCOUNT_ID ("bad.user@cstylianou.com") #endif
Add in a bad user option. Exists in GConf but not on the server.
Add in a bad user option. Exists in GConf but not on the server.
C
lgpl-2.1
simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync
d60451381ed2d582505d55c6a5dedb4d22e3c23a
AFImage/Pod/AFImageCache.h
AFImage/Pod/AFImageCache.h
#import "AFImageCacheOperation.h" #pragma mark Type Definitions // Block that transforms one image into another. typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform, NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock); #pragma mark Class Int...
#import "AFImageCacheOperation.h" #pragma mark Type Definitions // Block that transforms one image into another. typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform, NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock); #pragma mark Class Int...
Convert from id to instancetype
Convert from id to instancetype
C
mit
mlatham/AFImage
87fabd563cf81f09e61b006d07af03490b1092be
src/tests/eina_test_main.c
src/tests/eina_test_main.c
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
/* EINA - EFL data type library * Copyright (C) 2008 Cedric Bail * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later...
Fix test due to mempool internal change.
Fix test due to mempool internal change. git-svn-id: 02e3ca972ab3b5e6aa10db2b13bd0ff52712197b@36223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
lgpl-2.1
jordemort/eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,jordemort/eina
fa009912d9b1df5b73e5807a263e4541756b9dfb
1337-617.c
1337-617.c
#include <util.h> /* * _1n17 is leet for init. * This function initializes a 1337-617 repo. * Meaning it creates a directory with the passed name * In this directory it creates another one called `.1337-617` * There it makes the first commit for the repo creation */ int _1n17 (char *restrict repo_name) { retur...
#include <util.h> /* * _h45h stands for hash * it simply creates a random hash of the passed length */ int _h45h ( const int length, char *restrict hash ) { return 1; } /* * c3c0_h45h stands for check hash * Checks wether or not the passed hash has been used as a commit ID before */ int c3c0_h45h (const ...
Add definitons for some hash functions
Add definitons for some hash functions
C
mit
Kriegslustig/1337-617
d2508569281f2254caa9e12450010a50ab97e0a0
libkopete/kopeteversion.h
libkopete/kopeteversion.h
/* Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * * * This program is free software; you can redistribute it and/or modify * *...
/* Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * * * This program is free software; you can redistribute it and/or modify * *...
Update version string for next RC
Update version string for next RC svn path=/trunk/KDE/kdenetwork/kopete/; revision=745111
C
lgpl-2.1
Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
8d9e49ed14c4fe40bbee51d6ae28867b72ff5f07
PodioKitCore/Common/PodioKitCore.h
PodioKitCore/Common/PodioKitCore.h
// // PodioKitCore.h // PodioKitCore // // Created by Sebastian Rehnby on 12/02/15. // Copyright (c) 2015 Citrix Systems, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "PKCMacros.h" #import "PKCConstants.h" #import "PKCClient.h" #import "PKCRequest.h" #import "PKCResponse.h" #import "PKC...
// // PodioKitCore.h // PodioKitCore // // Created by Sebastian Rehnby on 12/02/15. // Copyright (c) 2015 Citrix Systems, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "PKCMacros.h" #import "PKCConstants.h" #import "PKCClient.h" #import "PKCRequest.h" #import "PKCResponse.h" #import "PKC...
Include PKCBaseAPI in umbrella header
Include PKCBaseAPI in umbrella header
C
mit
podio/podio-objc-core,podio/podio-objc-core,podio/podio-objc-core
513ee4a749193cc8ba80666c852062bd7c9d2bf4
ext/opengl/glimpl.h
ext/opengl/glimpl.h
#ifndef _GLIMPL_H_ #define _GLIMPL_H_ #ifndef GLFUNC_MAGIC_START #include "fptr_struct.h" #endif #define GET_GLIMPL_VARIABLE(_name_) \ (((struct glimpl *)DATA_PTR(obj))->_name_) #define SET_GLIMPL_VARIABLE(_name_,_val_) \ ((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_) /* at least GL_MAX_VERTEX_ATTRIBS - usu...
#ifndef _GLIMPL_H_ #define _GLIMPL_H_ #ifndef GLFUNC_MAGIC_START #include "fptr_struct.h" #endif #define GET_GLIMPL_VARIABLE(_name_) \ (((struct glimpl *)DATA_PTR(obj))->_name_) #define SET_GLIMPL_VARIABLE(_name_,_val_) \ ((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_) /* at least GL_MAX_VERTEX_ATTRIBS - usu...
Fix call convention for wglGetProcAddress on Windows-i686
Fix call convention for wglGetProcAddress on Windows-i686
C
mit
larskanis/opengl,larskanis/opengl
ffb3fd2e84d778386e5da7b6d975cc4895dc2bd6
AssimpKit/Code/Model/SCNScene+AssimpImport.h
AssimpKit/Code/Model/SCNScene+AssimpImport.h
// // SCNScene+AssimpImport.h // AssimpKit // // Created by Deepak Surti on 10/24/16. // // #include <GLKit/GLKit.h> #import <SceneKit/SceneKit.h> @interface SCNScene (AssimpImport) + (SCNScene*)assimpSceneNamed:(NSString*)name; @end
// // SCNScene+AssimpImport.h // AssimpKit // // Created by Deepak Surti on 10/24/16. // // #include <GLKit/GLKit.h> #import <SceneKit/SceneKit.h> @interface SCNScene (AssimpImport) + (instancetype)assimpSceneNamed:(NSString*)name; @end
Use instancetype keyword for assimp method
Use instancetype keyword for assimp method
C
bsd-3-clause
dmsurti/AssimpKit
5b7106db8763b164b199fd9381cff9ba3445b9ff
src/parse.h
src/parse.h
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #ifndef PARSE_H #define PARSE_H #include "expr.h" #define PARSE_SUCCESS (-1) // ParseResult contains the result of parsing text. The 'expr' field has a // meaningful value if and only if 'err_type' is PARSE_SUCCESS. struct ParseResult { size_t chars_re...
// Copyright 2016 Mitchell Kember. Subject to the MIT License. #ifndef PARSE_H #define PARSE_H #include "expr.h" // Constant indicating that a parse was successful. #define PARSE_SUCCESS (-1) // ParseResult contains the result of parsing text. The 'expr' field has a // meaningful value if and only if 'err_type' is ...
Add comment for constant PARSE_SUCCESS
Add comment for constant PARSE_SUCCESS
C
mit
mk12/eva,mk12/eva
c4194bbe0dbae028bb35d465c4f6342c1d87b486
src/substr.c
src/substr.c
// // substr.c // AnsiLove/C // // Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus. // All rights reserved. // // This source code is licensed under the BSD 3-Clause License. // See the file LICENSE for details. // #define _XOPEN_SOURCE 700 #include <string.h> char *substr(char *str, size_t ...
// // substr.c // AnsiLove/C // // Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus. // All rights reserved. // // This source code is licensed under the BSD 3-Clause License. // See the file LICENSE for details. // #define _XOPEN_SOURCE 700 #define _NETBSD_SOURCE #include <string.h> char *su...
Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
C
bsd-2-clause
ansilove/AnsiLove-C,ansilove/ansilove
fd8a853dfba813b54ddb0eeebee14f9dc9fa5961
include/pipe/algorithm/pipe.h
include/pipe/algorithm/pipe.h
#pragma once #include <utility> #include <pipe/traits.h> namespace pipe { namespace algorithm { template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type> auto operator|(Generator& gen, Algorithm algorithm) { return algorithm(std::move(gen)); } }} /...
#pragma once #include <utility> #include <pipe/traits.h> namespace pipe { namespace algorithm { namespace details { template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type> auto operator|(Generator& gen, Algorithm algorithm) { return algorithm(std:...
Move operator| in details namespace
Move operator| in details namespace
C
mit
vladris/pipe,vladris/pipe
d351c50c960d6bad2469b08fd547936512c58a08
uart_echo.c
uart_echo.c
#include <avr/interrupt.h> #include "uart.h" int main (void) { uart_enable(UM_Asynchronous); sei(); unsigned char c = 0; do { c = uart_receive(); uart_transmit(c); } while (c); return 0; }
#include <avr/interrupt.h> #include <util/delay.h> #include "uart.h" int main (void) { uart_enable(UM_Asynchronous); sei(); DDRB = 0xFF; unsigned char c = 0; do { c = uart_receive(); // Do some blinking if we receive a number between 1 and 9. if (c >= '1' && c <= '9') { for (int i = 0; ...
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
C
mpl-2.0
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
c905615f0dd9db449f32f9a4adff40676e84b8a2
Reactor/MTRReactiveEngine.h
Reactor/MTRReactiveEngine.h
// // MTRReactiveEngine.h // Reactor // // Created by Ty Cobb on 1/15/15. // Copyright (c) 2015 cobb. All rights reserved. // @import Foundation; @interface MTRReactiveEngine : NSObject /** @brief Adds reactivity to marked classes Sweeps the class list for classes adopting @c MTRReactive, and swizzles their ...
// // MTRReactiveEngine.h // Reactor // // Created by Ty Cobb on 1/15/15. // Copyright (c) 2015 cobb. All rights reserved. // @import Foundation; @protocol MTRReactive; @interface MTRReactiveEngine : NSObject /** @brief Adds reactivity to marked classes Sweeps the class list for classes adopting @c MTRReacti...
Add feature to on-demand reactify classes
Add feature to on-demand reactify classes
C
mit
wzrad/Reactor,derkis/Reactor,derkis/Reactor
95acf0f82a339ca56201730369a9b641e72a4b20
arc/arc/Plugin/PluginDelegate.h
arc/arc/Plugin/PluginDelegate.h
// // PluginDelegate.h // arc // // Created by Yong Michael on 6/4/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "ArcAttributedString.h" #import "File.h" typedef enum { kMCQSettingType, kRangeSettingType, kBoolSettingType } kSettingType; @prot...
// // PluginDelegate.h // arc // // Created by Yong Michael on 6/4/13. // Copyright (c) 2013 nus.cs3217. All rights reserved. // #import <Foundation/Foundation.h> #import "ArcAttributedString.h" #import "File.h" typedef enum { kMCQSettingType, kRangeSettingType, kBoolSettingType } kSettingType; @prot...
Update comment to reflect dictionary layout.
Update comment to reflect dictionary layout.
C
mit
BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc
316572d9a3274a18a8def23c087b139e27f99ac8
snake.c
snake.c
#include <stdlib.h> /** * @author: Hendrik Werner */ int main() { return EXIT_SUCCESS; }
#include <stdlib.h> /** * @author: Hendrik Werner */ typedef struct Position { int row; int col; } Position; int main() { return EXIT_SUCCESS; }
Define a struct to represent 2d positions.
Define a struct to represent 2d positions.
C
mit
Hendrikto/Snake
fca387c79a274d3da8d5abb97ee9b1765188abaa
eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h
eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "dense_tensor.h" namespace vespalib::tensor { /** * Class for building a dense tensor by inserting cell values directly into underlying array of cells. */ class DirectDenseT...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "dense_tensor.h" namespace vespalib::tensor { /** * Class for building a dense tensor by inserting cell values directly into underlying array of cells. */ class DirectDenseT...
Allow for building index on the outside.
Allow for building index on the outside.
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
0ef96b3c2dbf65fd92dd700e15689180af74d438
firmware/WidgetTerminal.h
firmware/WidgetTerminal.h
/** * @file WidgetTerminal.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Jan 2015 * @brief */ #ifndef WidgetTerminal_h #define WidgetTerminal_h #include <Print.h> #include <Blynk/...
/** * @file WidgetTerminal.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Jan 2015 * @brief */ #ifndef WidgetTerminal_h #define WidgetTerminal_h #include <Print.h> #if !defined(SP...
Fix terminal widget on Spark Core
Fix terminal widget on Spark Core
C
mit
yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark
d2afa9534fc413ca9bd4d84e3f2398e922aec7c0
meta/inc/TVirtualIsAProxy.h
meta/inc/TVirtualIsAProxy.h
// @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.1 2005/05/27 16:42:58 pcanal Exp $ // Author: Markus Frank 20/05/2005 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
// @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.2 2005/06/08 18:51:36 rdm Exp $ // Author: Markus Frank 20/05/2005 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
Add the necessary includes and forward declarations such that the class can be compiled independently.
Add the necessary includes and forward declarations such that the class can be compiled independently. git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@19581 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT
ba62f0d82dda609e9e01b84797944e9d18a989eb
KBSCloudApp.h
KBSCloudApp.h
// // KBSCloudApp.h // // Created by Keith Smiley // Copyright (c) 2013 Keith Smiley. All rights reserved. // #ifndef _KBSCLOUDAPP_ #define _KBSCLOUDAPP_ #import "KBSCloudAppUser.h" #import "KBSCloudAppAPI.h" NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) { KBSCloudAppNoUserOrPass, KBSCloudAppAPIInvalidUser, K...
// // KBSCloudApp.h // // Created by Keith Smiley // Copyright (c) 2013 Keith Smiley. All rights reserved. // #ifndef _KBSCLOUDAPP_ #define _KBSCLOUDAPP_ #import "KBSCloudAppUser.h" #import "KBSCloudAppAPI.h" #import "KBSCloudAppURL.h" NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) { KBSCloudAppNoUserOrPass, KBS...
Include URL in common includes
Include URL in common includes
C
mit
keith/KBSCloudAppAPI
2d02b4ce02e4ec00b773f193f06ba44f0e1d57a4
source/common/hal/freescale/k20dx/read_uid.c
source/common/hal/freescale/k20dx/read_uid.c
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
Use the full UUID for the K20DX
Use the full UUID for the K20DX Use all 4 words of the unique ID individually rather than xor ing them all together.
C
apache-2.0
sg-/DAPLink,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port
93fcae8ec3035b4b3f1b3a789ecfa15e20c00f8b
program/driver/us100.c
program/driver/us100.c
/*==============================================================================================*/ /*==============================================================================================*/ #include "QuadCopterConfig.h" /* Connection methods of Ultrasonic */ #define ULT_USE_UART2 1 #define ULT_USE_PWM 0 Ultr...
/*==============================================================================================*/ /*==============================================================================================*/ #include "QuadCopterConfig.h" /* Connection methods of Ultrasonic */ #define ULT_USE_UART2 1 #define ULT_USE_PWM 0 Ultr...
Fix speed of ultrasonic display
Fix speed of ultrasonic display
C
mit
zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor
3e17ed56780465cd5bc949d8eed9c1e8bb6522fe
src/input.c
src/input.c
// input.c #include "../include/simple2d.h" /* * Get the mouse coordinates relative to the viewport */ void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) { double scale; // viewport scale factor int w, h; // width and height of scaled viewport switch (window->viewport...
// input.c #include "../include/simple2d.h" /* * Get the mouse coordinates relative to the viewport */ void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) { double scale; // viewport scale factor int w, h; // width and height of scaled viewport switch (window->viewport...
Fix mouse position over an `S2D_FIXED` viewport
Fix mouse position over an `S2D_FIXED` viewport
C
mit
simple2d/simple2d,simple2d/simple2d
067bb0d1183573504aa10ac2132c37aa0dac4aa6
libraries/base/cbits/PrelIOUtils.c
libraries/base/cbits/PrelIOUtils.c
/* * (c) The University of Glasgow 2002 * * static versions of the inline functions in HsCore.h */ #define INLINE #ifdef __GLASGOW_HASKELL__ # include "Rts.h" #endif #include "HsBase.h" #ifdef __GLASGOW_HASKELL__ void errorBelch2(const char*s, char *t) { errorBelch(s,t); } void debugBelch2(const char*s, ...
/* * (c) The University of Glasgow 2002 * * static versions of the inline functions in HsBase.h */ #define INLINE #ifdef __GLASGOW_HASKELL__ # include "Rts.h" #endif #include "HsBase.h" #ifdef __GLASGOW_HASKELL__ void errorBelch2(const char*s, char *t) { errorBelch(s,t); } void debugBelch2(const char*s, ...
Update a comment in base cbits
Update a comment in base cbits
C
bsd-3-clause
ezyang/ghc,urbanslug/ghc,TomMD/ghc,shlevy/ghc,TomMD/ghc,tjakway/ghcjvm,sdiehl/ghc,mettekou/ghc,siddhanathan/ghc,TomMD/ghc,sgillespie/ghc,nathyong/microghc-ghc,jstolarek/ghc,nathyong/microghc-ghc,ezyang/ghc,gridaphobe/ghc,ml9951/ghc,mcschroeder/ghc,da-x/ghc,ml9951/ghc,oldmanmike/ghc,anton-dessiatov/ghc,sdiehl/ghc,nathyo...