commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
f649dac8e0fa6e0a1db57e68ce7d664ddba8e053
asylo/platform/posix/include/sys/un.h
asylo/platform/posix/include/sys/un.h
/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Add missing include needed to define uint16_t
Add missing include needed to define uint16_t PiperOrigin-RevId: 228541302
C
apache-2.0
google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo
4fc2b73eb3053f687f4b72adb1c97b0e53283322
test/FrontendC/2006-01-16-BitCountIntrinsicsUnsigned.c
test/FrontendC/2006-01-16-BitCountIntrinsicsUnsigned.c
// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32( i32} | count 2 // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 1 unsigned t2(unsigned X) { return __builtin_clz(X); } int t1(int X) { return __builtin_clz(X); }
// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 2 // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 1 unsigned t2(unsigned X) { return __builtin_clz(X); } int t1(int X) { return __builtin_clz(X); }
Remove space that was forgotten.`
Remove space that was forgotten.` git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@56240 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/a...
0792e5040a588b10486cbb3c6e725e6e4c5012a0
include/nucleus/RefCounted.h
include/nucleus/RefCounted.h
#ifndef NUCLEUS_MEMORY_REF_COUNTED_H_ #define NUCLEUS_MEMORY_REF_COUNTED_H_ #include <atomic> #include "nucleus/Macros.h" namespace nu { namespace detail { class RefCountedBase { public: bool hasOneRef() const { return m_refCount.load(std::memory_order_release) == 1; } void addRef() const { m_refCo...
#ifndef NUCLEUS_MEMORY_REF_COUNTED_H_ #define NUCLEUS_MEMORY_REF_COUNTED_H_ #include <atomic> #include "nucleus/Macros.h" namespace nu { namespace detail { class RefCountedBase { public: COPY_DELETE(RefCountedBase); MOVE_DELETE(RefCountedBase); bool hasOneRef() const { return m_refCount.load(std::memor...
Fix bug in ref counting
Fix bug in ref counting
C
unknown
tiaanl/nucleus,fizixx/nucleus
4234d6329ed88911138b4db6a092239c7bb85417
AppFactory/Core/Class/Libs/BlocksKit/BlocksKit+MessageUI.h
AppFactory/Core/Class/Libs/BlocksKit/BlocksKit+MessageUI.h
// // BlocksKit+MessageUI // // The Objective-C block utilities you always wish you had. // // Copyright (c) 2011-2012, 2013-2014 Zachary Waldowski // Copyright (c) 2012-2013 Pandamonia LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docume...
// // BlocksKit+MessageUI // // The Objective-C block utilities you always wish you had. // // Copyright (c) 2011-2012, 2013-2014 Zachary Waldowski // Copyright (c) 2012-2013 Pandamonia LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docume...
Fix a bug from BlocksKit
Fix a bug from BlocksKit
C
mit
alanchen/AppFactory,alanchen/AppFactory
d850967c83e42523bd0a6d32fd8163c19b92ce7f
Mercury3/HgCamera.h
Mercury3/HgCamera.h
#pragma once #include <HgTypes.h> #ifdef __cplusplus extern "C" { #endif typedef struct HgCamera { point position; quaternion rotation; } HgCamera; vector3 ray_from_camera(HgCamera* c); #ifdef __cplusplus } #endif
#pragma once #include <HgTypes.h> #ifdef __cplusplus extern "C" { #endif typedef struct HgCamera { point position; quaternion rotation; vector3 direction; float speedMsec; } HgCamera; vector3 ray_from_camera(HgCamera* c); #ifdef __cplusplus } #endif
Add current direction and speed variable. Should probably be moved somewhere else.
Add current direction and speed variable. Should probably be moved somewhere else.
C
mit
axlecrusher/hgengine3,axlecrusher/hgengine3,axlecrusher/hgengine3
586336cfe52c6e626583dbe20dbaf8cd50d3608b
tests/regression/38-int-refinements/01-interval-congruence.c
tests/regression/38-int-refinements/01-interval-congruence.c
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence #include <assert.h> int main(){ int r = -103; for (int i = 0; i < 40; i++) { r = r + 5; } // At this point r in the congr. dom should be 2 + 5Z int k = r; if (k >= 3) { // After refinement ...
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --enable ana.int.congruence --enable ana.int.congruence_no_overflow --enable ana.int.refinement #include <assert.h> int main(){ int r = -103; for (int i = 0; i < 40; i++) { r = r + 5; } // At this point r in the congr. dom should be...
Add updated params to interval-congruence ref. reg test
Add updated params to interval-congruence ref. reg test
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
b73ea44442b2d7b27b8a04f7e531283dd6d66130
include/DataObjects/JPetEventType/JPetEventType.h
include/DataObjects/JPetEventType/JPetEventType.h
/** * @copyright Copyright 2018 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
/** * @copyright Copyright 2021 The J-PET Framework Authors. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may find a copy of the License in the LICENCE file. * * Unless required by applicable la...
Change enum to scoped enum
Change enum to scoped enum The change is due to the fact that in ROOT 6.20 there is a enum with the kUnknown value defined, which creates the conflict with our code.
C
apache-2.0
JPETTomography/j-pet-framework,JPETTomography/j-pet-framework,JPETTomography/j-pet-framework
306bf63728015d7171a5540d89a243f0f16389df
examples/ex08_materials/include/materials/ExampleMaterial.h
examples/ex08_materials/include/materials/ExampleMaterial.h
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
Move include statement inside include guards.
Move include statement inside include guards. r4098
C
lgpl-2.1
adamLange/moose,jinmm1992/moose,friedmud/moose,shanestafford/moose,idaholab/moose,laagesen/moose,markr622/moose,sapitts/moose,harterj/moose,jbair34/moose,tonkmr/moose,markr622/moose,permcody/moose,cpritam/moose,harterj/moose,laagesen/moose,idaholab/moose,wgapl/moose,backmari/moose,xy515258/moose,bwspenc/moose,jinmm1992...
9457c57020d586e9aaf5bf6b43dbefaaf5121d92
SDCAlertView/SDCAlertViewCoordinator.h
SDCAlertView/SDCAlertViewCoordinator.h
// // SDCAlertViewCoordinator.h // SDCAlertView // // Created by Scott Berrevoets on 1/25/14. // Copyright (c) 2014 Scotty Doesn't Code. All rights reserved. // #import <Foundation/Foundation.h> @class SDCAlertView; @interface SDCAlertViewCoordinator : NSObject @property (nonatomic, readonly) SDCAlertView *visi...
// // SDCAlertViewCoordinator.h // SDCAlertView // // Created by Scott Berrevoets on 1/25/14. // Copyright (c) 2014 Scotty Doesn't Code. All rights reserved. // #import <Foundation/Foundation.h> @class SDCAlertView; @interface SDCAlertViewCoordinator : NSObject @property (nonatomic, weak, readonly) SDCAlertView...
Change property reference to weak to match private reference
Change property reference to weak to match private reference
C
mit
sberrevoets/SDCAlertView,Nykho/SDCAlertView,winkapp/SDCAlertView,adamkaplan/SDCAlertView,Wurrly/SDCAlertView,badoo/SDCAlertView,HuylensHu/SDCAlertView,DeskConnect/SDCAlertView,DeskConnect/SDCAlertView,sberrevoets/SDCAlertView
d8fe5945a5ddd57b12b8e144fed2341e147eeef3
firmware/src/main.c
firmware/src/main.c
/** * @file main.c * @brief Main. * */ #include "stm32f4xx_conf.h" #include "FreeRTOS.h" int main(void) { // TODO while(1); return 0; }
/** * @file main.c * @brief Main. * */ #include "stm32f4xx_conf.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "FreeRTOS.h" #include "task.h" void hw_init(void) { GPIO_InitTypeDef gpio_led; GPIO_StructInit(&gpio_led); gpio_led.GPIO_Mode = GPIO_Mode_OUT; gpio_led.GPIO_Pin = ...
Add example LED blink task
Add example LED blink task
C
mit
BitBangedFF/odometry-module,BitBangedFF/odometry-module
9cda2d34bf812ecdfcd46e8983f47bbd937884dc
src/profiler/tracing/no_trace.c
src/profiler/tracing/no_trace.c
/** * @file * @brief * * @author Anton Kozlov * @date 29.04.2013 */ #include <stddef.h> #include <profiler/tracing/trace.h> time64_t trace_block_diff(struct __trace_block *tb) { return -1; } time64_t trace_block_get_time(struct __trace_block *tb) { return -1; } int trace_point_get_value(struct __trace_...
/** * @file * @brief * * @author Anton Kozlov * @date 29.04.2013 */ #include <stddef.h> #include <profiler/tracing/trace.h> time64_t trace_block_diff(struct __trace_block *tb) { return -1; } time64_t trace_block_get_time(struct __trace_block *tb) { return -1; } int trace_point_get_value(struct __trace_...
Fix build after merge with embox-profiler
Fix build after merge with embox-profiler
C
bsd-2-clause
gzoom13/embox,vrxfile/embox-trik,gzoom13/embox,Kefir0192/embox,abusalimov/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,embox/embox,gzoom13/embox,vrxfile/embox-trik,mike2390/embox,vrxfile/embox-trik,embox/emb...
29387545c66ff29097eb183d9ee7b64d28112159
libpolyml/version.h
libpolyml/version.h
/* Title: version.h Copyright (c) 2000-17 Cambridge University Technical Services Limited 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 o...
/* Title: version.h Copyright (c) 2000-17 Cambridge University Technical Services Limited 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 o...
Fix TextVersion still being 5.6
Fix TextVersion still being 5.6
C
lgpl-2.1
polyml/polyml,dcjm/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,polyml/polyml
6139be0f6486c9854c52e45d0d47bd6a5c01b3dd
app/src/main/jni/Interpreter/py_utils.h
app/src/main/jni/Interpreter/py_utils.h
#ifndef PY_UTILS_H #define PY_UTILS_H #include <stdio.h> extern FILE *stdin_writer; void setupPython(const char* pythonProgramPath, const char* pythonLibs, const char* pythonHostLibs, const char* pythonHome, const char* pythonTemp, const char* xdgBasePath); void setupStdinEmulation(void); void readF...
#ifndef PY_UTILS_H #define PY_UTILS_H #include <stdio.h> extern FILE *stdin_writer; void setupPython(const char* pythonProgramPath, const char* pythonLibs, const char* pythonHostLibs, const char* pythonHome, const char* pythonTemp, const char* xdgBasePath, const char* dataDir); void...
Fix missing change in header
Fix missing change in header
C
mit
Abestanis/APython,Abestanis/APython,Abestanis/APython
51d48572c2488981c3b1181392ae61d1cb4bf1a4
ModelExplorerPlugin/ScopeGuard.h
ModelExplorerPlugin/ScopeGuard.h
// // Copyright Renga Software LLC, 2017. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #pragma once class BoolGuard { public: explicit BoolGuard(b...
// // Copyright Renga Software LLC, 2017. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #pragma once class BoolGuard { public: explicit BoolGuard(b...
Fix after review: perfect forwarding used for callable object
Fix after review: perfect forwarding used for callable object
C
mit
RengaSoftware/ModelExplorer,RengaSoftware/ModelExplorer
a56699b59df45bbfe46a9527a59e3713736c5297
content/public/common/speech_recognition_result.h
content/public/common/speech_recognition_result.h
// Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #pragma once #include <vector> ...
// Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ #pragma once #include <vector> ...
Fix pass by value error in SpeechRecognitionHypothesis constructor.
Coverity: Fix pass by value error in SpeechRecognitionHypothesis constructor. CID=103455 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10386130 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@137171 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
ltilve/chromium,dushu1203/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,Just-D/chromium-1,fujunwei/chromium-crosswalk,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,junmi...
1341d104f298cc8bdf5ffae3f0d4199adf22e0a1
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 99 #define CLIENT_VERSION_BUILD...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 99 #define CLIENT_VERSION_BUILD...
Build number for OpenSSL bug fix
Build number for OpenSSL bug fix
C
mit
myriadteam/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,argentumproject/argentum,myriadteam/myriadcoin,argentumproject/argentum,myriadteam/myriadcoin,myriadcoin/myriadcoin,myriadcoin/myriadcoin,argentumproject/argentum,myriadcoin/myriadcoin,Richcoin-Project/RichCoin,Richcoin-Project/RichCoin,myriadcoin/myr...
3f9d1548236269530e441c996a6debbd88ec6cfd
src/modules/cpufreq/e_mod_main.h
src/modules/cpufreq/e_mod_main.h
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
#ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H typedef struct _Status Status; typedef struct _Config Config; struct _Status { Evas_List *frequencies; Evas_List *governors; int cur_frequency; int can_set_frequency; char *cur_governor; unsigned char activ...
Remove unused (and deprecated) declaration.
Remove unused (and deprecated) declaration. SVN revision: 32298
C
bsd-2-clause
FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment
5b72d74ce2fccca2a301de60f31b16ddf5c93984
arch/powerpc/platforms/pseries/offline_states.h
arch/powerpc/platforms/pseries/offline_states.h
#ifndef _OFFLINE_STATES_H_ #define _OFFLINE_STATES_H_ /* Cpu offline states go here */ enum cpu_state_vals { CPU_STATE_OFFLINE, CPU_STATE_INACTIVE, CPU_STATE_ONLINE, CPU_MAX_OFFLINE_STATES }; extern enum cpu_state_vals get_cpu_current_state(int cpu); extern void set_cpu_current_state(int cpu, enum cpu_state_vals ...
#ifndef _OFFLINE_STATES_H_ #define _OFFLINE_STATES_H_ /* Cpu offline states go here */ enum cpu_state_vals { CPU_STATE_OFFLINE, CPU_STATE_INACTIVE, CPU_STATE_ONLINE, CPU_MAX_OFFLINE_STATES }; #ifdef CONFIG_HOTPLUG_CPU extern enum cpu_state_vals get_cpu_current_state(int cpu); extern void set_cpu_current_state(int...
Fix SMP build with disabled CPU hotplugging.
powerpc: Fix SMP build with disabled CPU hotplugging. Compiling 2.6.33 with SMP enabled and HOTPLUG_CPU disabled gives me the following link errors: LD init/built-in.o LD .tmp_vmlinux1 arch/powerpc/platforms/built-in.o: In function `.smp_xics_setup_cpu': smp.c:(.devinit.text+0x88): undefined reference t...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
c4c76088f08a7539a5f4466ec4fe7f85a9a5bc6f
ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h
ios/RCTSpotlightSearch/RCTSpotlightSearch/RCTSpotlightSearch.h
// // RCTSpotlightSearch.h // RCTSpotlightSearch // // Created by James (Home) on 21/06/2016. // Copyright © 2016 James Munro. All rights reserved. // #import <Foundation/Foundation.h> #import "RCTBridgeModule.h" @interface RCTSpotlightSearch : NSObject <RCTBridgeModule> + (void)handleContinueUserActivity:(NSUse...
// // RCTSpotlightSearch.h // RCTSpotlightSearch // // Created by James (Home) on 21/06/2016. // Copyright © 2016 James Munro. All rights reserved. // #import <Foundation/Foundation.h> #import <React/RCTBridgeModule.h> @interface RCTSpotlightSearch : NSObject <RCTBridgeModule> + (void)handleContinueUserActivity:...
Fix import React/RCTBridgeModule.h, needed by RN 0.50
Fix import React/RCTBridgeModule.h, needed by RN 0.50
C
mit
jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search,jdmunro/react-native-spotlight-search
85d1e066e03030de91558746864dfd84ecd2f1bc
searchlib/src/vespa/searchlib/test/vector_buffer_writer.h
searchlib/src/vespa/searchlib/test/vector_buffer_writer.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/searchlib/util/bufferwriter.h> #include <vector> namespace search::test { class VectorBufferWriter : public BufferWriter { private: char tmp[1024]; public: std::vector<char> ...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/searchlib/util/bufferwriter.h> #include <vector> namespace search::test { class VectorBufferWriter : public BufferWriter { private: char tmp[1024]; public: std::vector<char> ...
Add override specifier for VectorBufferWriter destructor.
Add override specifier for VectorBufferWriter destructor.
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
f0b6c5101e4b1c88410e8e9d227266500497e031
list.c
list.c
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; } ListNode* ListNode_Create(void* k) { ListNode* n = (ListNode *)malloc(sizeof(ListNode)); n->prev = N...
#include "list.h" struct ListNode { ListNode* prev; ListNode* next; void* k; }; struct List { ListNode* head; }; List* List_Create(void) { List* l = (List *)malloc(sizeof(List)); l->head = NULL; return l; } ListNode* ListNode_Create(void* k) { ListNode* n = (ListNode *)malloc(sizeof(ListNode)); n->prev = N...
Add List Search function implementation
Add List Search function implementation
C
mit
MaxLikelihood/CADT
aa2916ff583a12e068251d36d0045c68e5895a5c
mudlib/mud/home/System/sys/extinguishd.c
mudlib/mud/home/System/sys/extinguishd.c
#include <status.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <kotaka/privilege.h> inherit SECOND_AUTO; void extinguish(string path) { ACCESS_CHECK(KADMIN()); call_out("purge", 0, path, status(ST_OTABSIZE)); } static void purge(string path, int quota) { int limit; limit = 200; if (quota % lim...
#include <status.h> #include <kotaka/paths.h> #include <kotaka/log.h> #include <kotaka/privilege.h> inherit SECOND_AUTO; void extinguish(string path) { if (!KADMIN()) { string opath; opath = object_name(previous_object()); ACCESS_CHECK(DRIVER->creator(opath)); ACCESS_CHECK(DRIVER->creator(opath) == DRIVER-...
Allow extinguishing of objects with the same creator as yourself.
Allow extinguishing of objects with the same creator as yourself.
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
112d20ad5ca06a9ec7237602ee33bef6fa881daa
drivers/gpu/drm/nouveau/nv04_mc.c
drivers/gpu/drm/nouveau/nv04_mc.c
#include "drmP.h" #include "drm.h" #include "nouveau_drv.h" #include "nouveau_drm.h" int nv04_mc_init(struct drm_device *dev) { /* Power up everything, resetting each individual unit will * be done later if needed. */ nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF); return 0; } void nv04_mc_takedown(struct drm_devi...
#include "drmP.h" #include "drm.h" #include "nouveau_drv.h" #include "nouveau_drm.h" int nv04_mc_init(struct drm_device *dev) { /* Power up everything, resetting each individual unit will * be done later if needed. */ nv_wr32(dev, NV03_PMC_ENABLE, 0xFFFFFFFF); /* Disable PROM access. */ nv_wr32(dev, NV_PBUS_...
Disable PROM access on init.
drm/nouveau: Disable PROM access on init. On older cards (<nv17) scanout gets blocked when the ROM is being accessed. PROM access usually comes out enabled from suspend, switch it off. Signed-off-by: Francisco Jerez <5906ff32bdd9fd8db196f6ba5ad3afd6f9257ea5@riseup.net> Signed-off-by: Ben Skeggs <d9f27fb07c1e9f131223a...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana...
77813adc0001c96511aa932ced1adc8500b3f280
example/ex-multi05.c
example/ex-multi05.c
#include <stdio.h> #include "m-array.h" #include "m-string.h" // Let's create an array of string_t and register it globaly ARRAY_DEF(vector_string, string_t) #define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST) int main(void) { // Let's define a new string named str M_LET(str, string_t)...
#include <stdio.h> #include "m-array.h" #include "m-string.h" // Let's create an array of string_t and register it globaly ARRAY_DEF(vector_string, string_t) #define M_OPL_vector_string_t() ARRAY_OPLIST(vector_string, STRING_OPLIST) int main(void) { // Let's define a new string named str M_LET(str, string_t)...
Add example of formatted C string for string in M_LET
Add example of formatted C string for string in M_LET
C
bsd-2-clause
P-p-H-d/mlib,P-p-H-d/mlib
aba2ec8c709b9bb5b2484e86d8f108b0ae0932d4
src/modules/illume-keyboard/e_mod_main.c
src/modules/illume-keyboard/e_mod_main.c
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
#include "e.h" #include "e_mod_main.h" #include "e_mod_config.h" #include "e_kbd_int.h" /* local variables */ static E_Kbd_Int *ki = NULL; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume Keyboard" }; EAPI void * e_modapi_init(E_Module *m) { if (!il_kbd_config_init(m)) return NULL; ki = e_kbd_int...
Use correct module directory when making keyboard. Previous commit fixed compiler warnings also.
Use correct module directory when making keyboard. Previous commit fixed compiler warnings also. git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@43875 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
02abf1a1f71cbd7db8b0e0e4d9e94ea1070d7d9a
doors.h
doors.h
#ifndef _DOORS_H_ #define _DOORS_H_ #ifndef NUMBER_OF_DOORS #define NUMBER_OF_DOORS 3 #endif typedef struct { unsigned int has_prize : 1; unsigned int currently_selected: 1; unsigned int revealed : 1; } door; /* * game status updates */ extern void set_doors(void); extern vo...
#ifndef _DOORS_H_ #define _DOORS_H_ #ifndef NUMBER_OF_DOORS #define NUMBER_OF_DOORS 3 #endif #include <limits.h> #if (NUMBER_OF_DOORS > UINT_MAX) #error (n) doors exceeds storage allocation limit for `unsigned int'. #endif typedef struct { unsigned int has_prize : 1; unsigned int currently_s...
Throw a fatal pre-processor error if (n > UINT_MAX).
Throw a fatal pre-processor error if (n > UINT_MAX).
C
cc0-1.0
cxd4/Monty-Hall,cxd4/Monty-Hall
246b6611122d65b4a7c5deef1d888ef0f88a14d9
Common/CoreLocation+MITAdditions.h
Common/CoreLocation+MITAdditions.h
#import <CoreLocation/CLLocation.h> #define DEGREES_PER_RADIAN 180.0 / M_PI #define RADIANS_PER_DEGREE M_PI / 180.0 #define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325) #define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006) // these are 1 and 2 miles respectively #define OUT_OF_BOUNDS_DISTA...
#import <CoreLocation/CLLocation.h> #import <CoreLocation/CoreLocation.h> #define DEGREES_PER_RADIAN 180.0 / M_PI #define RADIANS_PER_DEGREE M_PI / 180.0 #define DEFAULT_MAP_CENTER CLLocationCoordinate2DMake(42.35913,-71.09325) #define DEFAULT_MAP_SPAN MKCoordinateSpanMake(0.006, 0.006) // these are 1 and 2 miles re...
Add a convenience function to get an NSString from a CLLocationCoordinate2D object
Add a convenience function to get an NSString from a CLLocationCoordinate2D object
C
lgpl-2.1
MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,xNUTs/MIT-Mobile-for-iOS,MIT-Mobile/MIT-Mobile-for-iOS,smartcop/MIT-Mobile-for-iOS
34d2be5fddf51413062f0995bfcb3b9401ffcef1
utils.h
utils.h
#pragma once namespace me { template<class T> class Optional { T *m_object; public: Optional() : m_object(0) {} Optional(const T& other) : m_object(new T(other)) {} Optional& operator=(const T& other) { if (m_object != 0) { delete m_object; } m_object = new T(other); return...
#pragma once namespace me { // basic optional implementation. template<class T> class Optional { T *m_object; public: Optional() : m_object(0) { } // copy constructor Optional(const Optional<T>& other) : m_object(new T(*other)) { } // move constructor Optional(Optional<T>&& other) : m...
Use move semantics in Optional implementation.
Use move semantics in Optional implementation.
C
mit
ckarmann/TrackCommit,ckarmann/TrackCommit
1b5ab79b0bd0973de3a2b6ca256f7d1d4d4c1736
include/perfetto/protozero/contiguous_memory_range.h
include/perfetto/protozero/contiguous_memory_range.h
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
Mark ContiguousMemoryRange::size as const. am: f2c28cd765
Mark ContiguousMemoryRange::size as const. am: f2c28cd765 Change-Id: I8f62e95dd64516e3a99b3123c48b16fd88264f7e
C
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
708edbddabbe7f689839ff6a213fe350b565764e
Source/UnrealEnginePython/Public/UnrealEnginePython.h
Source/UnrealEnginePython/Public/UnrealEnginePython.h
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
Add support for the Python Stdout Log
Add support for the Python Stdout Log Support the print(' ') and help(' '), Can be used as the transition period.
C
mit
getnamo/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePyt...
18f0174b401852cc6fbef23d9f9b2f1fa6ed3f82
searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h
searchcore/src/apps/vespa-feed-bm/bm_storage_chain_builder.h
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/storage/common/storage_chain_builder.h> namespace feedbm { class BmStorageLinkContext; /* * Storage chain builder that inserts a BmStorageLink right below the * communicat...
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/storage/common/storage_chain_builder.h> namespace feedbm { struct BmStorageLinkContext; /* * Storage chain builder that inserts a BmStorageLink right below the * communica...
Fix forward declaration of BmStorageLinkContext.
Fix forward declaration of BmStorageLinkContext.
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
cf9b2331ac6fe98e3c0443853226f1ef76668f8e
src/tests/behaviour/dictionary/skip_list/test_behaviour_skip_list.c
src/tests/behaviour/dictionary/skip_list/test_behaviour_skip_list.c
/******************************************************************************/ /** @file @author Kris Wallperington @brief Behaviour tests for the skip list implementation. @copyright Copyright 2016 The University of British Columbia, IonDB Project Contributors (see AUTHORS.md) @par Licensed under the Ap...
/******************************************************************************/ /** @file @author Kris Wallperington @brief Behaviour tests for the skip list implementation. @copyright Copyright 2016 The University of British Columbia, IonDB Project Contributors (see AUTHORS.md) @par Licensed under the Ap...
Exclude skiplist string key tests from device
Exclude skiplist string key tests from device
C
bsd-3-clause
iondbproject/iondb,iondbproject/iondb
5cc3518924500882d85dfa5a6c9d9816d5d60f07
KLog/klog/basic_types.h
KLog/klog/basic_types.h
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; #else using PathChar = char; using PathString = std...
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; #define PATH_LITERAL(str) L##str #else using PathCh...
Introduce the macro `PATH_LITERAL` for helping construct `PathString`.
Introduce the macro `PATH_LITERAL` for helping construct `PathString`.
C
mit
kingsamchen/KLog
13c12a4e8ecdf3998cd2d89ade69f6f194819c95
arch/sh/include/asm/sections.h
arch/sh/include/asm/sections.h
#ifndef __ASM_SH_SECTIONS_H #define __ASM_SH_SECTIONS_H #include <asm-generic/sections.h> extern void __nosave_begin, __nosave_end; extern long __machvec_start, __machvec_end; extern char __uncached_start, __uncached_end; extern char _ebss[]; extern char __start_eh_frame[], __stop_eh_frame[]; #endif /* __ASM_SH_SECT...
#ifndef __ASM_SH_SECTIONS_H #define __ASM_SH_SECTIONS_H #include <asm-generic/sections.h> extern long __nosave_begin, __nosave_end; extern long __machvec_start, __machvec_end; extern char __uncached_start, __uncached_end; extern char _ebss[]; extern char __start_eh_frame[], __stop_eh_frame[]; #endif /* __ASM_SH_SECT...
Change __nosave_XXX symbols to long
sh: Change __nosave_XXX symbols to long This patch changes the: - __nosave_begin - __nosave_end symbols from 'void' to 'long' as required by the latest Gcc (4.5.2) which raises the compilation error: cc1: warnings being treated as errors arch/sh/kernel/swsusp.c: In function 'pfn_is_nosave': arch/sh/kernel/swsusp.c:...
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana...
13bae2a0c5e8a4ee9c0c4c483f8b222308d3479a
You-Controller-Tests/exclusions.h
You-Controller-Tests/exclusions.h
#pragma once #ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_ #define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_ // A local define since there is no way to test whether a header file exists. // If you have VS Premium, then add it to the project definition (user // properties) file #ifdef MS_CPP_CODECOVERAGE /// \file Exclusions fr...
#pragma once #ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_ #define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_ // A local define since there is no way to test whether a header file exists. // If you have VS Premium, then add it to the project definition (user // properties) file #ifdef MS_CPP_CODECOVERAGE /// \file Exclusions fr...
Exclude 3rd party code from the controller tests code coverage.
Exclude 3rd party code from the controller tests code coverage.
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
6f0b8edb8a65d983b444efd04b787f68938a66f1
sky/shell/ios/sky_surface.h
sky/shell/ios/sky_surface.h
// Copyright 2015 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. #import <UIKit/UIKit.h> #import "sky/shell/shell_view.h" @interface SkySurface : UIView -(instancetype) initWithShellView:(sky::shell::ShellView *) shel...
// Copyright 2015 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. #import <UIKit/UIKit.h> #import "sky/shell/shell_view.h" @interface SkySurface : UIView -(instancetype) initWithShellView:(sky::shell::ShellView *) shel...
Remove deleted header declaration for SaveFrameToSkPicture
Remove deleted header declaration for SaveFrameToSkPicture
C
bsd-3-clause
tvolkert/engine,jason-simmons/sky_engine,jamesr/sky_engine,jamesr/flutter_engine,cdotstout/sky_engine,lyceel/engine,tvolkert/engine,mpcomplete/engine,devoncarew/engine,devoncarew/sky_engine,flutter/engine,mikejurka/engine,chinmaygarde/flutter_engine,rmacnak-google/engine,mdakin/engine,abarth/sky_engine,tvolkert/engine,...
d6476e4f3c29fc64ddb0b6ac8db81162deff1a41
php_chdb.h
php_chdb.h
/* This module exposes to PHP the equivalent of: * // Creates a chdb file containing the key-value pairs specified in the * // array $data, or throws an exception in case of error. * function chdb_create($pathname, $data); * * // Represents a loaded chdb file. * class chdb * { * // Loads a...
/* This module exposes to PHP the equivalent of: * // Creates a chdb file containing the key-value pairs specified in the * // array $data, or throws an exception in case of error. * function chdb_create($pathname, $data); * * // Represents a loaded chdb file. * class chdb * { * // Loads a...
Change version to 0.1.0 to follow the PHP standard.
Change version to 0.1.0 to follow the PHP standard.
C
bsd-3-clause
lcastelli/chdb
745f0a06935763997083b714530421adc44f3452
src/global.h
src/global.h
#ifndef GLOBAL__H #define GLOBAL__H namespace qflex::global { // Default verbose level inline int verbose = 0; // Max allowed memory (default: 1GB) inline std::size_t memory_limit = 1L << 30; // Interval to track memory (default: 0) inline std::size_t track_memory_seconds = 0; } // namespace qflex::global #endif...
#ifndef GLOBAL__H #define GLOBAL__H #include <cstddef> namespace qflex::global { // Default verbose level inline int verbose = 0; // Max allowed memory (default: 1GB) inline std::size_t memory_limit = 1L << 30; // Interval to track memory (default: 0) inline std::size_t track_memory_seconds = 0; } // namespace q...
Add <cstddef> to use std::size_t.
Add <cstddef> to use std::size_t.
C
apache-2.0
ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex
59414b372770f32d94689711acde04b7c7d75fea
ReactiveCocoaFramework/ReactiveCocoa/RACDelegateProxy.h
ReactiveCocoaFramework/ReactiveCocoa/RACDelegateProxy.h
// // RACDelegateProxy.h // ReactiveCocoa // // Created by Cody Krieger on 5/19/12. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> // A delegate object suitable for using -rac_signalForSelector:fromProtocol: // upon. @interface RACDelegateProxy : NSObject // The dele...
// // RACDelegateProxy.h // ReactiveCocoa // // Created by Cody Krieger on 5/19/12. // Copyright (c) 2012 GitHub, Inc. All rights reserved. // #import <Foundation/Foundation.h> // A delegate object suitable for using -rac_signalForSelector:fromProtocol: // upon. @interface RACDelegateProxy : NSObject // The dele...
Use unsafe_unretained for delegates, to support OS X
Use unsafe_unretained for delegates, to support OS X
C
mit
zhigang1992/ReactiveCocoa,nickcheng/ReactiveCocoa,andersio/ReactiveCocoa,ShawnLeee/ReactiveCocoa,chieryw/ReactiveCocoa,msdgwzhy6/ReactiveCocoa,j364960953/ReactiveCocoa,zhukaixy/ReactiveCocoa,WEIBP/ReactiveCocoa,longv2go/ReactiveCocoa,Ray0218/ReactiveCocoa,mtxs007/ReactiveCocoa,zzqiltw/ReactiveCocoa,wpstarnice/ReactiveC...
64aff1d651f06206a181e9a3883da913edf43b77
arch/microblaze/include/asm/sections.h
arch/microblaze/include/asm/sections.h
/* * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> * Copyright (C) 2008-2009 PetaLogix * Copyright (C) 2006 Atmark Techno, Inc. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ ...
/* * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> * Copyright (C) 2008-2009 PetaLogix * Copyright (C) 2006 Atmark Techno, Inc. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ ...
Remove duplicate declarations of _stext[] and _etext[]
microblaze: Remove duplicate declarations of _stext[] and _etext[] They're already provided by <asm/sections.h>. Signed-off-by: Geert Uytterhoeven <0da414d9d963da4039c2a0525b1844228075aa58@linux-m68k.org> Cc: Michal Simek <3a191dd2be46e826fee926d532b136ed65cb5318@monstr.eu> Cc: 1969c2f5333fcd29c58e45a80778895ee5b1b5b...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
43c6135208bd4f7a182ac3d871039d804ecc0f88
include/aerial_autonomy/actions_guards/hovering_functors.h
include/aerial_autonomy/actions_guards/hovering_functors.h
#pragma once #include <aerial_autonomy/actions_guards/base_functors.h> #include <aerial_autonomy/basic_events.h> #include <aerial_autonomy/logic_states/base_state.h> #include <aerial_autonomy/robot_systems/uav_system.h> #include <parsernode/common.h> /** * @brief Internal action when hovering. * * @tparam LogicStateMa...
#pragma once #include <aerial_autonomy/actions_guards/base_functors.h> #include <aerial_autonomy/basic_events.h> #include <aerial_autonomy/logic_states/base_state.h> #include <aerial_autonomy/robot_systems/uav_system.h> #include <parsernode/common.h> using namespace basic_events; /** * @brief Internal action when hov...
Fix bug to avoid compilation failure
Fix bug to avoid compilation failure The namespace basic_events is missing hovering_functors file
C
mpl-2.0
jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy
9866c2c2d649fac485bc47aa77cffbc93d1c6c9e
gpu/include/GrGLConfig_chrome.h
gpu/include/GrGLConfig_chrome.h
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GR_GL_PLATFORM_HEADER <GLES2/gl2.h> #define GR_GL_PLATFORM_HEADER_E...
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GR_GL_PLATFORM_HEADER <GLES2/gl2.h> #define GR_GL_PLATFORM_HEADER_E...
Fix macro in Chrome's GL config file
Fix macro in Chrome's GL config file Review URL: http://codereview.appspot.com/4308041/ git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@980 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
Cue/skia,Frankie-666/color-emoji.skia,MatChung/color-emoji.skia,Cue/skia,mrobinson/skia,metajack/skia,Frankie-666/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,metajack/skia,hbwhlklive/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color...
cfbfb1a84ddf81436e086c6f45cb6608b7c1b656
include/lldb/Symbol/VerifyDecl.h
include/lldb/Symbol/VerifyDecl.h
//===-- VerifyDecl.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- VerifyDecl.h --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use full path to ClangForward.h
Use full path to ClangForward.h Fixes Linux build. git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@143038 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
fbbb09cbea1e6544890a8bd417e424ee25411d39
optional/capi/ext/proc_spec.c
optional/capi/ext/proc_spec.c
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(val) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strca...
#include <string.h> #include "ruby.h" #include "rubyspec.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_RB_PROC_NEW VALUE concat_func(VALUE args) { int i; char buffer[500] = {0}; if (TYPE(args) != T_ARRAY) return Qnil; for(i = 0; i < RARRAY_LEN(args); ++i) { VALUE v = RARRAY_PTR(args)[i]; strc...
Fix typo in the commit a5312c77.
Fix typo in the commit a5312c77.
C
mit
calavera/rubyspec,calavera/rubyspec
41a35717e8ad8900b72dfc4d711954cb73096b50
src/BlynkSimpleTinyGSM.h
src/BlynkSimpleTinyGSM.h
/** * @file BlynkSimpleTinyGSM.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Nov 2016 * @brief * */ #ifndef BlynkSimpleTinyGSM_h #define BlynkSimpleTinyGSM_h #ifndef BLYNK_INFO_C...
/** * @file BlynkSimpleTinyGSM.h * @author Volodymyr Shymanskyy * @license This project is released under the MIT License (MIT) * @copyright Copyright (c) 2015 Volodymyr Shymanskyy * @date Nov 2016 * @brief * */ #ifndef BlynkSimpleTinyGSM_h #define BlynkSimpleTinyGSM_h #include <Adapters/B...
Move conn. type detection to Adataper
Move conn. type detection to Adataper
C
mit
blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
7e94213f86bd5eaae63a052c44f6e573a2c0a614
tests/regression/00-sanity/26-strict-loop-enter.c
tests/regression/00-sanity/26-strict-loop-enter.c
//PARAM: --disable ana.int.def_exc --enable ana.int.interval --sets solver slr3tp int g = 0; int main() { int x; for(x=0; x < 50; x++){ g = 1; } // x = [50, 50] after narrow if(x>50){ // live after widen, but dead after narrow // node after Pos(x>50) is marked dead at the end // but the loop is...
//PARAM: --disable ana.int.def_exc --enable ana.int.interval --sets solver slr3tp --enable dbg.debug // dbg.debug manually enabled since update_suite only enables it when it sees normal assertion (without NOWARN) #include <assert.h> int g = 0; int main() { int x; for(x=0; x < 50; x++){ g = 1; } // x = [5...
Add automatic check to sanity/strict-loop-enter
Add automatic check to sanity/strict-loop-enter
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
7f3d0c064183fb4eab39ce03f8b21c0efb183c17
gavd/utils.c
gavd/utils.c
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdlib.h> #include "verbose.h" #include "utils.h" unsigned utils_execute_command(const char *cmd) { int result = system(cmd); ...
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdlib.h> #include "verbose.h" #include "utils.h" unsigned utils_execute_command(const char *cmd) { int result = system(cmd); ...
Reduce spew when using system().
ADHD: Reduce spew when using system(). Details Increase the verbosity which is required to output messages about the successful use of 'system()'. In short, we don't really care about success; if the command executed, it's not really necessary to see each command which is executed at verbosity 0. Failur...
C
bsd-3-clause
drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd,drinkcat/adhd
fc211a706f4b8a87bea164cff7c1f80b95791ba1
src/apps/S3DAnalyzer/widgets/sliderdirectjump.h
src/apps/S3DAnalyzer/widgets/sliderdirectjump.h
#ifndef WIDGETS_SLIDERDIRECTJUMP_H #define WIDGETS_SLIDERDIRECTJUMP_H #include <QSlider> class QMouseEvent; class SliderDirectJump : public QSlider { Q_OBJECT public: explicit SliderDirectJump(QWidget* parent = nullptr); explicit SliderDirectJump(Qt::Orientation orientation, QWidget* parent = nullptr); ~Sl...
#ifndef WIDGETS_SLIDERDIRECTJUMP_H #define WIDGETS_SLIDERDIRECTJUMP_H #include <QSlider> class QMouseEvent; class SliderDirectJump : public QSlider { Q_OBJECT public: explicit SliderDirectJump(QWidget* parent = nullptr); explicit SliderDirectJump(Qt::Orientation orientation, QWidget* parent = nullptr); ~Sl...
Fix playback slider initially acting as pressed
Fix playback slider initially acting as pressed
C
bsd-3-clause
hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D
65b1cd480ce57f66f2fdc8527b12b9a24a93f92f
test/periodic/NdbRadioMult.h
test/periodic/NdbRadioMult.h
#ifndef RADIOMULT_H #define RADIOMULT_H #include "NdbMF.h" /* ========= NdbRadioMult ============ */ class NdbRad ioMult : public NdbMF { protected: public: NdbRadioMult() : NdbMF(9, "Multiplicities for radioactive nuclide production") {} ~NdbRadioMult() {} ClassDef(NdbRadioMult,1) }; // NdbRadioMul...
#ifndef RADIOMULT_H #define RADIOMULT_H #include "NdbMF.h" /* ========= NdbRadioMult ============ */ class NdbRadioMult : public NdbMF { protected: public: NdbRadioMult() : NdbMF(9, "Multiplicities for radioactive nuclide production") {} ~NdbRadioMult() {} ClassDef(NdbRadioMult,1) }; // NdbRadioMult ...
Fix typo in tab removal
Fix typo in tab removal
C
lgpl-2.1
tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot
e03d1b21d1f8482072ff3a9db12197b401b3bc56
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.05.00.03-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 5 #define QLA_DRIVER_PATCH_VER 0 #defi...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.06.00.08-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 6 #define QLA_DRIVER_PATCH_VER 0 #defi...
Update the driver version to 8.06.00.08-k.
[SCSI] qla2xxx: Update the driver version to 8.06.00.08-k. Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com> Signed-off-by: Saurav Kashyap <88d6fd94e71a9ac276fc44f696256f466171a3c0@qlogic.com> Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
6ef996a3b60c5e85621acb5f1ef9ccf7da6a1925
src/consensus/consensus.h
src/consensus/consensus.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H /** ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H /** ...
Make sigop limit `20000` just as in Bitcoin, ignoring our change to the blocksize limit.
Make sigop limit `20000` just as in Bitcoin, ignoring our change to the blocksize limit.
C
mit
bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash
5952806e050a8494cdff3368b144de206def8780
ldso/ldso/sh/dl-syscalls.h
ldso/ldso/sh/dl-syscalls.h
/* We can't use the real errno in ldso, since it has not yet * been dynamicly linked in yet. */ #include "sys/syscall.h" extern int _dl_errno; #undef __set_errno #define __set_errno(X) {(_dl_errno) = (X);} #warning !!! __always_inline redefined waiting for the fixed gcc #ifdef __always_inline #undef __always_inline #d...
/* We can't use the real errno in ldso, since it has not yet * been dynamicly linked in yet. */ #include "sys/syscall.h" extern int _dl_errno; #undef __set_errno #define __set_errno(X) {(_dl_errno) = (X);} #if __GNUC_PREREQ (4, 1) #warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inlin...
Make sh4 build works again adding a temporary work-around iby redefining __always_inline to inline until gcc 4.x.x will get fixed.
Make sh4 build works again adding a temporary work-around iby redefining __always_inline to inline until gcc 4.x.x will get fixed. Signed-off-by: Carmelo Amoroso <532378793705a04edd56deb76ad8c0442834d55d@st.com>
C
lgpl-2.1
skristiansson/uClibc-or1k,waweber/uclibc-clang,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,OpenInkpot-archive/iplinux-uclibc,foss-xtensa/uClibc,hjl-tools/uClibc,hwoarang/uClibc,brgl/uclibc-ng,ysat0/uClibc,OpenInkpot-archive/iplinux-uclibc,ndmsystems/uClibc,m-labs/uclibc-lm32,czankel/xtensa-uclibc,ndm...
45e7904ad73a41660e38b2a5553e3a24fc1d1d06
Classes/EPSPlayerViewModel.h
Classes/EPSPlayerViewModel.h
// // EPSPlayerViewModel.h // ReactiveAudioPlayer // // Created by Peter Stuart on 4/24/14. // Copyright (c) 2014 Electric Peel, LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <ReactiveCocoa/ReactiveCocoa.h> @interface EPSPlayerViewModel : NSObject @property (nonatomic) NSURL *audioURL; ...
// // EPSPlayerViewModel.h // ReactiveAudioPlayer // // Created by Peter Stuart on 4/24/14. // Copyright (c) 2014 Electric Peel, LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <ReactiveCocoa/ReactiveCocoa.h> #import <AVFoundation/AVFoundation.h> @interface EPSPlayerViewModel : NSObject @p...
Make the audio player a public property.
Make the audio player a public property.
C
mit
ElectricPeelSoftware/EPSReactiveAudioPlayer
51f81c9db6ebf9997c49b0a1a48d9ce26c8c303d
src/lib/miniaudio/miniaudio.c
src/lib/miniaudio/miniaudio.c
#define MINIAUDIO_IMPLEMENTATION #define MA_ENABLE_ONLY_SPECIFIC_BACKENDS #define MA_ENABLE_WASAPI #define MA_ENABLE_PULSEAUDIO #define MA_ENABLE_COREAUDIO #define MA_ENABLE_AAUDIO #define MA_ENABLE_WEBAUDIO #define MA_NO_DECODING #define MA_NO_ENCODING #define MA_NO_GENERATION #include "miniaudio.h"
#define MINIAUDIO_IMPLEMENTATION #define MA_ENABLE_ONLY_SPECIFIC_BACKENDS #define MA_ENABLE_WASAPI #define MA_ENABLE_ALSA #define MA_ENABLE_COREAUDIO #define MA_ENABLE_AAUDIO #define MA_ENABLE_WEBAUDIO #define MA_NO_DECODING #define MA_NO_ENCODING #define MA_NO_GENERATION #include "miniaudio.h"
Switch back to ALSA on Linux;
Switch back to ALSA on Linux;
C
mit
bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr,bjornbytes/lovr
fe416fb745fe4293e889d5179707051c959af921
tests/conform/test-conform-common.h
tests/conform/test-conform-common.h
/* Stuff you put in here is setup once in main() and gets passed around to * all test functions and fixture setup/teardown functions in the data * argument */ typedef struct _TestConformSharedState { int *argc_addr; char ***argv_addr; } TestConformSharedState; /* This fixture structure is allocated by glib, a...
/* Stuff you put in here is setup once in main() and gets passed around to * all test functions and fixture setup/teardown functions in the data * argument */ typedef struct _TestConformSharedState { int *argc_addr; char ***argv_addr; } TestConformSharedState; /* This fixture structure is allocated by glib, a...
Add int dummy; to empty struct TestConformSimpleFixture definition.
Add int dummy; to empty struct TestConformSimpleFixture definition.
C
lgpl-2.1
rkudiyarov/clutter_osx,djdeath/clutter,Distrotech/clutter,kerrickstaley/clutter-vala,dlespiau/clutter,spatulasnout/clutter,spatulasnout/clutter,heysion/clutter-clone,nobled/clutter,spatulasnout/clutter,Distrotech/clutter,jigpu/clutter,nobled/clutter,kerrickstaley/clutter-vala,djdeath/clutter,dlespiau/clutter,jigpu/clut...
a77d6c28473b9f106d5fc2d1d5ca4914e466ac16
test/simpletest_speed/speedtestplot.h
test/simpletest_speed/speedtestplot.h
#pragma once #include <array> #include <random> #include "jkqtplotter/jkqtplotter.h" #define NDATA 500 class SpeedTestPlot: public JKQtPlotter { Q_OBJECT protected: std::array<double, NDATA> X, Y, Y2; const double dx; double x0; std::chrono::system_clock::tim...
#pragma once #include <array> #include <random> #include <chrono> #include "jkqtplotter/jkqtplotter.h" #define NDATA 500 class SpeedTestPlot: public JKQtPlotter { Q_OBJECT protected: std::array<double, NDATA> X, Y, Y2; const double dx; double x0; std::chro...
Include <chrono> needed for chrono::system_clock
MSVC: Include <chrono> needed for chrono::system_clock
C
lgpl-2.1
jkriege2/JKQtPlotter,jkriege2/JKQtPlotter,jkriege2/JKQtPlotter
38551576a35f1b48b6b359470d6e876c5b671ab6
include/asm-mips/bugs.h
include/asm-mips/bugs.h
/* * This is included by init/main.c to check for architecture-dependent bugs. * * Needs: * void check_bugs(void); */ #ifndef _ASM_BUGS_H #define _ASM_BUGS_H #include <linux/config.h> #include <asm/cpu.h> #include <asm/cpu-info.h> extern void check_bugs32(void); extern void check_bugs64(void); static inline voi...
/* * This is included by init/main.c to check for architecture-dependent bugs. * * Needs: * void check_bugs(void); */ #ifndef _ASM_BUGS_H #define _ASM_BUGS_H #include <linux/config.h> #include <linux/delay.h> #include <asm/cpu.h> #include <asm/cpu-info.h> extern void check_bugs32(void); extern void check_bugs64(...
Build fix for certain configurations.
Build fix for certain configurations. Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Program...
106f354f1fe8dc196665df581ea7b4e986b70ca6
JavaScriptCore/wtf/unicode/Unicode.h
JavaScriptCore/wtf/unicode/Unicode.h
// -*- c-basic-offset: 2 -*- /* * This file is part of the KDE libraries * Copyright (C) 2006 George Staikos <staikos@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation...
// -*- c-basic-offset: 2 -*- /* * This file is part of the KDE libraries * Copyright (C) 2006 George Staikos <staikos@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation...
Fix mac bustage (more still).
Fix mac bustage (more still). git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@18103 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C
bsd-3-clause
primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs
c66bc667f912f6144223b6d259061942221a6469
src/slurp.c
src/slurp.c
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fclose(file); return...
#include <cgreen/slurp.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> static char *read_all(FILE *file, int gulp); char *slurp(const char *file_name, int gulp) { FILE *file = fopen(file_name, "r"); if (file == NULL) { return NULL; } char *content = read_all(file, gulp); fcl...
Fix read_all and return content without segment fault
Fix read_all and return content without segment fault
C
lgpl-2.1
ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old,ykaliuta/cgreen-old
363f0c512d06d9d428ffe9529a5089e929b7c174
XCDYouTubeKit/XCDYouTubeKit.h
XCDYouTubeKit/XCDYouTubeKit.h
// // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // #import <Availability.h> #import <XCDYouTubeKit/XCDYouTubeClient.h> #import <XCDYouTubeKit/XCDYouTubeError.h> #import <XCDYouTubeKit/XCDYouTubeOperation.h> #import <XCDYouTubeKit/XCDYouTubeVideo.h> #import <XCDYouTubeKit/XCDYouTubeVideoOperation.h> ...
// // Copyright (c) 2013-2015 Cédric Luthi. All rights reserved. // #import <TargetConditionals.h> #import <XCDYouTubeKit/XCDYouTubeClient.h> #import <XCDYouTubeKit/XCDYouTubeError.h> #import <XCDYouTubeKit/XCDYouTubeOperation.h> #import <XCDYouTubeKit/XCDYouTubeVideo.h> #import <XCDYouTubeKit/XCDYouTubeVideoOperati...
Fix conditional import of XCDYouTubeVideoPlayerViewController.h
Fix conditional import of XCDYouTubeVideoPlayerViewController.h TARGET_OS_IPHONE used to mean iOS (iPhone or iPad) device or simulator. With recent SDKs it means iOS or watchOS or tvOS.
C
mit
c0unt0/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,morrisirrom/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,twobitlabs/XCDYouTubeKit,mingsai/XCDYouTubeVideoPlayerViewController,mingsai/XCDYouTubeVideoPlayerViewController,kumabook/XCDYouTubeKit,creationst/XCDYouTubeKit,creationst/XCDYouTubeKit,0xced/XCDYouTubeKit,kumabook/XCDYouTu...
9d357c7c8a3be7658385bd77aa9aec625c3df1f4
Source/Sources/SVGKSourceLocalFile.h
Source/Sources/SVGKSourceLocalFile.h
/** */ #import "SVGKSource.h" @interface SVGKSourceLocalFile : SVGKSource @property (nonatomic, retain) NSString* filePath; + (SVGKSource*)sourceFromFilename:(NSString*)p; @end
/** */ #import "SVGKSource.h" @interface SVGKSourceLocalFile : SVGKSource @property (nonatomic, copy) NSString* filePath; + (SVGKSource*)sourceFromFilename:(NSString*)p; @end
Copy the file path, just in case the string was mutable.
Copy the file path, just in case the string was mutable.
C
mit
MaddTheSane/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,seltzered/SVGKit,MaddTheSane/SVGKit,MaddTheSane/SVGKit,seltzered/SVGKit,MaddTheSane/SVGKit,MaddTheSane/SVGKit
7fe977dab356fbd7e86aa10bf83891761107c57c
arch/x86/kernel/sys_i386_32.c
arch/x86/kernel/sys_i386_32.c
/* * This file contains various random system calls that * have a non-standard calling sequence on the Linux/i386 * platform. */ #include <linux/errno.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/smp.h> #include <linux/sem.h> #include <linux/msg.h> #include <linux/shm.h> ...
/* * This file contains various random system calls that * have a non-standard calling sequence on the Linux/i386 * platform. */ #include <linux/errno.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/fs.h> #include <linux/smp.h> #include <linux/sem.h> #include <linux/msg.h> #include <linux/shm.h> ...
Make kernel_execve() suitable for stack unwinding
i386: Make kernel_execve() suitable for stack unwinding The explicit saving and restoring of %ebx was confusing stack unwind data consumers, and it is plain unnecessary to do this within the asm(), since that was only introduced for PIC user mode consumers of the original _syscall3() macro this was derived from. Sign...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k...
9ada9b0d140398e624ddf2256dfd7d850312ffa3
src/ee/common/UndoQuantumReleaseInterest.h
src/ee/common/UndoQuantumReleaseInterest.h
/* This file is part of VoltDB. * Copyright (C) 2008-2019 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
/* This file is part of VoltDB. * Copyright (C) 2008-2019 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any la...
Fix Valgrind variable initialization issue.
ENG-15084: Fix Valgrind variable initialization issue.
C
agpl-3.0
VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb,VoltDB/voltdb
c8a66e76734dc2f6066b113aba3085c20f34f00b
Settings/Controls/ProgressBar.h
Settings/Controls/ProgressBar.h
#pragma once #include "Control.h" #include "StatusCallback.h" class ProgressBar : public Control, public StatusCallback { public: ProgressBar(int id, Dialog &parent, bool translate = true) : Control(id, parent, translate) { } protected: virtual IFACEMETHODIMP OnProgress( unsigned long ulProg...
#pragma once #include "Control.h" #include "StatusCallback.h" #include <CommCtrl.h> class ProgressBar : public Control, public StatusCallback { public: ProgressBar(int id, Dialog &parent, bool translate = true) : Control(id, parent, translate) { } void Range(int min, int max) { SendMessage(_...
Add basic implementation of progress bar methods
Add basic implementation of progress bar methods
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
0504744a68b12790189e00ea21289ced208f88e1
src/imap/cmd-create.c
src/imap/cmd-create.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_create(Client *client) { const char *mailbox; /* <mailbox> */ if (!client_read_string_args(client, 1, &mailbox)) return FALSE; if (!client_verify_mailbox_name(client, mailbox, FALSE, TRUE)) return TRUE; if (mailbox[st...
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_create(Client *client) { const char *mailbox; int ignore; /* <mailbox> */ if (!client_read_string_args(client, 1, &mailbox)) return FALSE; ignore = mailbox[strlen(mailbox)-1] == client->storage->hierarchy_sep; if (ignor...
CREATE mailbox<hierarchy separator> failed always.
CREATE mailbox<hierarchy separator> failed always. --HG-- branch : HEAD
C
mit
jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,jwm/dovecot-notmuch
37a5cee2b4362014d6c0f81c82b2f75d7a5204f6
src/lib/str-sanitize.c
src/lib/str-sanitize.c
/* Copyright (c) 2004 Timo Sirainen */ #include "lib.h" #include "str.h" #include "str-sanitize.h" void str_sanitize_append(string_t *dest, const char *src, size_t max_len) { const char *p; for (p = src; *p != '\0'; p++) { if ((unsigned char)*p < 32) break; } str_append_n(dest, src, (size_t)(p - src)); fo...
/* Copyright (c) 2004 Timo Sirainen */ #include "lib.h" #include "str.h" #include "str-sanitize.h" void str_sanitize_append(string_t *dest, const char *src, size_t max_len) { const char *p; for (p = src; *p != '\0'; p++) { if (((unsigned char)*p & 0x7f) < 32) break; } str_append_n(dest, src, (size_t)(p - s...
Convert also 0x80..0x9f characters to '?'
Convert also 0x80..0x9f characters to '?' --HG-- branch : HEAD
C
mit
jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,jwm/dovecot-notmuch
c5f452b443b6e198d5ebeee9e2fa9b9efafcf61e
include/swift/Basic/Timer.h
include/swift/Basic/Timer.h
//===--- Timer.h - Shared timers for compilation phases ---------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//===--- Timer.h - Shared timers for compilation phases ---------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
Fix 2f21735 to actually distinguish phases.
-debug-time-compilation: Fix 2f21735 to actually distinguish phases. https://bugs.swift.org/browse/SR-4100
C
apache-2.0
bitjammer/swift,brentdax/swift,natecook1000/swift,atrick/swift,frootloops/swift,karwa/swift,shahmishal/swift,return/swift,OscarSwanros/swift,devincoughlin/swift,frootloops/swift,jopamer/swift,bitjammer/swift,tkremenek/swift,airspeedswift/swift,tjw/swift,felix91gr/swift,jckarter/swift,milseman/swift,hooman/swift,xwu/swi...
9c77ab663af99b59a73e9698b8c69029c248b9e8
Source/UnrealEnginePython/Public/UnrealEnginePython.h
Source/UnrealEnginePython/Public/UnrealEnginePython.h
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "ModuleManager.h" DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All); class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface { public: bool PythonGILAcquire(); void PythonGILRelease(); virtual void Start...
Revert "Add support for the Python Stdout Log"
Revert "Add support for the Python Stdout Log" This reverts commit 6dd58324c052cc893f6ce8f009903805185a71d1.
C
mit
kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,...
308768c5b18790f8154396db181abefca65c699c
cbits/counter.c
cbits/counter.c
#include <stdlib.h> #include "HsFFI.h" StgInt* hs_counter_new(void) { StgInt* counter = malloc(sizeof(StgInt)); *counter = 0; return counter; } void hs_counter_add(volatile StgInt* counter, StgInt n) { StgInt temp = n; #if SIZEOF_VOID_P == 8 __asm__ __volatile__("lock; xaddq %0,%1" #elif SIZEOF_VOID_P == 4 ...
#include <stdlib.h> #include "HsFFI.h" StgInt* hs_counter_new(void) { StgInt* counter = malloc(sizeof(StgInt)); *counter = 0; return counter; } void hs_counter_add(volatile StgInt* counter, StgInt n) { __sync_fetch_and_add(counter, n); } StgInt hs_counter_read(volatile const StgInt* counter) { return *count...
Use GCC builtins instead of inline asm
Use GCC builtins instead of inline asm
C
bsd-3-clause
sopvop/ekg,bitemyapp/ekg,seanparsons/ekg,sopvop/ekg,bitemyapp/ekg,seanparsons/ekg
2faaefade94d1ded2d246a90081aca781d6ff56e
tests/torture.c
tests/torture.c
#include <stdio.h> #include <libssh/libssh.h> #include "torture.h" static int verbosity = 0; int torture_libssh_verbosity(void){ return verbosity; } int main(int argc, char **argv) { int rc; (void) argc; (void) argv; ssh_init(); rc = torture_run_tests(); ssh_finalize(); return rc;...
#include "torture.h" #include <stdio.h> static int verbosity = 0; int torture_libssh_verbosity(void){ return verbosity; } int main(int argc, char **argv) { (void) argc; (void) argv; return torture_run_tests(); }
Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests."
Revert "tests: Call ssh_init() and ssh_finalize() before we run the tests." Reason: breaks test_rand, because threading has to be initialized before ssh_init() This reverts commit ef1866db76ed10d64bf8cf97111554b2b2eb1278.
C
lgpl-2.1
kedazo/libssh,sebadoom/libssh,bigcat26/libssh-mod,miloj/libssh-v0.5,sebadoom/libssh,pouete/libssh,mwgoldsmith/ssh,jahrome/libssh,taikoo/libssh,kedazo/libssh,Distrotech/libssh,DouglasHeriot/libssh,rofl0r/libssh,robxu9/libssh,sebadoom/libssh,taikoo/libssh,robxu9/libssh,DouglasHeriot/libssh,jt1/honeypot-libssh,nviennot/li...
4909c1c0f260f2fcae73dd48982e2a4f22025e99
tests/test-x509.c
tests/test-x509.c
#include <mongoc.h> #include <mongoc-openssl-private.h> #include "TestSuite.h" static void test_extract_subject (void) { char *subject; subject = _mongoc_openssl_extract_subject (BINARY_DIR"/../certificates/client.pem"); ASSERT (0 == strcmp (subject, "CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New ...
#include <mongoc.h> #include <mongoc-openssl-private.h> #include "TestSuite.h" static void test_extract_subject (void) { char *subject; subject = mongoc_ssl_extract_subject (BINARY_DIR"/../certificates/client.pem"); ASSERT_CMPSTR (subject, "CN=client,OU=kerneluser,O=10Gen,L=New York City,ST=New York,C=US")...
Improve test output on failure
Improve test output on failure
C
apache-2.0
remicollet/mongo-c-driver,acmorrow/mongo-c-driver,christopherjwang/mongo-c-driver,mschoenlaub/mongo-c-driver,Convey-Compliance/mongo-c-driver,mongodb/mongo-c-driver,derickr/mongo-c-driver,jmikola/mongo-c-driver,Machyne/mongo-c-driver,Convey-Compliance/mongo-c-driver,remicollet/mongo-c-driver,bjori/mongo-c-driver,bjori/...
a6e34734d37e483cff850ab23f5541e259e68a5a
Specta/Specta/SpectaUtility.h
Specta/Specta/SpectaUtility.h
#import <Foundation/Foundation.h> extern NSString * const spt_kCurrentTestSuiteKey; extern NSString * const spt_kCurrentSpecKey; #define SPTCurrentTestSuite [[NSThread currentThread] threadDictionary][spt_kCurrentTestSuiteKey] #define SPTCurrentSpec [[NSThread currentThread] threadDictionary][spt_kCurrentSpecKey] #d...
#import <Foundation/Foundation.h> extern NSString * const spt_kCurrentTestSuiteKey; extern NSString * const spt_kCurrentSpecKey; #define SPTCurrentTestSuite [[NSThread mainThread] threadDictionary][spt_kCurrentTestSuiteKey] #define SPTCurrentSpec [[NSThread mainThread] threadDictionary][spt_kCurrentSpecKey] #define ...
Fix for reporting specta/expecta failures on the main thread.
Fix for reporting specta/expecta failures on the main thread.
C
mit
alvinvarghese/specta,jmoody/specta,lmtim/specta,specta/specta,ExtremeMan/specta,PatrykKaczmarek/specta,adamkaplan/specta,ernestopino/specta,flovilmart/specta,segiddins/specta,dbarden/specta,iosdev-republicofapps/specta,wessmith/specta,ShawnLeee/specta,Vungle/specta,hanangellove/specta,Lightricks/specta,Taptera/specta,r...
28897da572e0d9b63c40fd66cbd4335a7236feb5
Artsy/Tooling/ARDispatchManager.h
Artsy/Tooling/ARDispatchManager.h
// Dispatches asyncronously unless ARPerformWorkSynchronously is set on the shared dispatch manager extern void ar_dispatch_async(dispatch_block_t block); // Dispatches to the main queue unless ARPerformWorkSynchronously is set on the shared dispatch manager extern void ar_dispatch_main_queue(dispatch_block_t block); ...
extern void ar_dispatch_async(dispatch_block_t block); extern void ar_dispatch_main_queue(dispatch_block_t block); // Dispatches to a queue unless ARPerformWorkAsynchronously is set to false extern void ar_dispatch_on_queue(dispatch_queue_t queue, dispatch_block_t block); extern void ar_dispatch_after_on_queue(float...
Remove + fix erroneous comments
Remove + fix erroneous comments
C
mit
gaurav1981/eigen,Shawn-WangDapeng/eigen,mbogh/eigen,neonichu/eigen,Havi4/eigen,ppamorim/eigen,ichu501/eigen,mbogh/eigen,ppamorim/eigen,Shawn-WangDapeng/eigen,artsy/eigen,gaurav1981/eigen,artsy/eigen,xxclouddd/eigen,ichu501/eigen,Havi4/eigen,gaurav1981/eigen,gaurav1981/eigen,xxclouddd/eigen,neonichu/eigen,zhuzhengwei/ei...
4f56d0f5119e9cf9ba2f3b0f1f8d1eb201e8ea7d
include/utils/SkNullCanvas.h
include/utils/SkNullCanvas.h
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkNullCanvas_DEFINED #define SkNullCanvas_DEFINED #include "SkBitmap.h" class SkCanvas; /** * Creates a canvas that draws nothing. This is useful for performance t...
Add SK_API to null canvas create method
Add SK_API to null canvas create method git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4221 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,MatC...
c1aebf3ea9e5fc1881078b6f286049090766fdfa
test/default/cmptest.h
test/default/cmptest.h
#ifndef __CMPTEST_H__ #define __CMPTEST_H__ #include <stdio.h> #include "sodium.h" #ifndef TEST_SRCDIR #define TEST_SRCDIR "./" #endif #define TEST_NAME_RES TEST_NAME ".res" #define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp" #ifdef HAVE_ARC4RANDOM # undef rand # define rand(X) arc4random(X) #endif FILE *fp_r...
#ifndef __CMPTEST_H__ #define __CMPTEST_H__ #include <stdio.h> #include "sodium.h" #ifndef TEST_SRCDIR # define TEST_SRCDIR "." #endif #define TEST_NAME_RES TEST_NAME ".res" #define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp" #ifdef HAVE_ARC4RANDOM # undef rand # define rand(X) arc4random(X) #endif FILE *fp_r...
Add a default value for TEST_SRCDIR
Add a default value for TEST_SRCDIR
C
isc
netroby/libsodium,tml/libsodium,SpiderOak/libsodium,optedoblivion/android_external_libsodium,Payshares/libsodium,tml/libsodium,Payshares/libsodium,rustyhorde/libsodium,JackWink/libsodium,zhuqling/libsodium,HappyYang/libsodium,Payshare/libsodium,akkakks/libsodium,pyparallel/libsodium,zhuqling/libsodium,zhuqling/libsodiu...
d01ba2e824813f5ab4eb0b379caf77fe93d6911c
src/etc/mingw-fix-include/winsock2.h
src/etc/mingw-fix-include/winsock2.h
#ifndef _FIX_WINSOCK2_H #define _FIX_WINSOCK2_H 1 #include_next <winsock2.h> typedef struct pollfd { SOCKET fd; short events; short revents; } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD; #endif
#ifndef _FIX_WINSOCK2_H #define _FIX_WINSOCK2_H 1 #include_next <winsock2.h> // mingw 4.0.x has broken headers (#9246) but mingw-w64 does not. #if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4 typedef struct pollfd { SOCKET fd; short events; short revents; } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLF...
Define WSAPOLLFD only on mingw 4.x
Define WSAPOLLFD only on mingw 4.x Fixes #10327
C
apache-2.0
Ryman/rust,andars/rust,KokaKiwi/rust,bhickey/rand,kimroen/rust,kwantam/rust,jbclements/rust,vhbit/rust,jbclements/rust,nham/rust,rohitjoshi/rust,AerialX/rust-rt-minimal,erickt/rust,GBGamer/rust,aepsil0n/rust,reem/rust,defuz/rust,nwin/rust,nham/rust,SiegeLord/rust,miniupnp/rust,rohitjoshi/rust,XMPPwocky/rust,pshc/rust,m...
f638f8ac83763778ac5cca5b74674a058ccc1a07
Airship/Common/UAAction.h
Airship/Common/UAAction.h
/* Copyright 2009-2013 Urban Airship Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
/* Copyright 2009-2013 Urban Airship Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
Add action predicate block typedef
Add action predicate block typedef
C
bsd-2-clause
mikerowan/ios-library,ipmobiletech/ios-library,grosch/ios-library,manuyavuz/ios-library,ipmobiletech/ios-library,zhangqinghe/ios-library,mikerowan/ios-library,manuyavuz/ios-library,mikerowan/ios-library,manuyavuz/ios-library,ipmobiletech/ios-library,grosch/ios-library,zhangqinghe/ios-library,grosch/ios-library,zhangqin...
37265a87c7aa9743a2b20069be85d03529b18534
src/main/cpp/blaze_abrupt_exit.h
src/main/cpp/blaze_abrupt_exit.h
// Copyright 2016 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
// Copyright 2016 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
Fix compile warning for struct/class mismatch
Fix compile warning for struct/class mismatch ./compile.sh is giving: $ ./compile.sh build bazel-bin/src/bazel 🍃 Building Bazel with Bazel. INFO: Found 1 target... INFO: From Compiling src/main/cpp/blaze.cc: In file included from src/main/cpp/blaze.cc:58: ./src/main/cpp/blaze_globals.h:42:1: warning: 'GlobalVariabl...
C
apache-2.0
meteorcloudy/bazel,mikelalcon/bazel,iamthearm/bazel,juhalindfors/bazel-patches,damienmg/bazel,kchodorow/bazel,juhalindfors/bazel-patches,iamthearm/bazel,davidzchen/bazel,LuminateWireless/bazel,dropbox/bazel,dslomov/bazel,mikelikespie/bazel,damienmg/bazel,safarmer/bazel,safarmer/bazel,hermione521/bazel,mikelikespie/baze...
862f7bcae063e448d7cc7bb326e65705835d9d03
include/cprtypes.h
include/cprtypes.h
#ifndef _CPR_TYPES_H_ #define _CPR_TYPES_H_ #include <map> #include <string> #include <curl/curl.h> struct case_insensitive_compare { case_insensitive_compare() {} bool operator()(const std::string& a, const std::string& b) const { return to_lower(a) < to_lower(b); } static void char_to_lo...
#ifndef _CPR_TYPES_H_ #define _CPR_TYPES_H_ #include <algorithm> #include <map> #include <string> #include <curl/curl.h> struct case_insensitive_compare { case_insensitive_compare() {} bool operator()(const std::string& a, const std::string& b) const { return to_lower(a) < to_lower(b); } s...
Include header where for_each is defined
Include header where for_each is defined
C
mit
skystrife/cpr,msuvajac/cpr,aquilleph/cpr,SuperV1234/cpr,aquilleph/cpr,gruzovator/cpr,smiley/cpr,whoshuu/cpr,smiley/cpr,SuperV1234/cpr,whoshuu/cpr,whoshuu/cpr,skystrife/cpr,gruzovator/cpr,msuvajac/cpr,skystrife/cpr,msuvajac/cpr,SuperV1234/cpr
07665aa311d6a157f18d36489de67f4a258811a0
tensorflow/core/platform/default/cord.h
tensorflow/core/platform/default/cord.h
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Enable Cord in NVCC build.
Enable Cord in NVCC build. PiperOrigin-RevId: 362322881 Change-Id: I49c24e6e961258b96c194812452de27678141300
C
apache-2.0
tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,frreiss/tensorflow-fred,gaut...
8361a0fa2c24bc58f43a48c77ed6ba9ad1819b63
gpu/include/GrGLConfig_chrome.h
gpu/include/GrGLConfig_chrome.h
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GR_GL_PLATFORM_HEADER <GLES2/gl2.h> #define GR_GL_PLATFORM_HEADER_E...
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GR_GL_PLATFORM_HEADER <GLES2/gl2.h> #define GR_GL_PLATFORM_HEADER_E...
Fix macro in Chrome's GL config file
Fix macro in Chrome's GL config file Review URL: http://codereview.appspot.com/4308041/ git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@980 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
geekboxzone/mmallow_external_skia,larsbergstrom/skia,sudosurootdev/external_skia,GladeRom/android_external_skia,rubenvb/skia,ominux/skia,MarshedOut/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,mydongistiny/android_external_skia,noselhq/skia,F-AOSP/platform_external_skia,MarshedOut/android_ext...
47991cacdb0e8951ff7d14c1c91c2bed4248ba32
benchmarks/c/examples/simple_branch/main.c
benchmarks/c/examples/simple_branch/main.c
#ifdef KLEE #include "klee/klee.h" #endif #include <assert.h> #include <stdio.h> int main() { int a; #ifdef KLEE klee_make_symbolic(&a, sizeof(a), "a"); #endif if (a == 0) { printf("a is zero\n"); #ifdef BUG assert(0); #endif } else { printf("a is non-zero\n"); } return 0; }
#ifdef KLEE #include "klee/klee.h" #endif #include <assert.h> #include <stdio.h> int main() { int a = 0; #ifdef KLEE klee_make_symbolic(&a, sizeof(a), "a"); #endif if (a == 0) { printf("a is zero\n"); #ifdef BUG assert(0); #endif } else { printf("a is non-zero\n"); } return 0; }
Fix assignment in concrete case for example benchmark so that bug should be deterministic.
Fix assignment in concrete case for example benchmark so that bug should be deterministic.
C
bsd-3-clause
delcypher/fp-bench,delcypher/fp-bench,delcypher/fp-bench
9cf71828ad696271568d0255138adf82383a9adc
AsyncDisplayKit/AsyncDisplayKit.h
AsyncDisplayKit/AsyncDisplayKit.h
/* Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Async...
/* Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Async...
Include ASEditableTextNode in framework header.
Include ASEditableTextNode in framework header.
C
bsd-3-clause
mtxs007/AsyncDisplayKit,meitianapp/AsyncDisplayKit,JetZou/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,george-gw/AsyncDisplayKit,steveram/AsyncDisplayKit,ppamorim/AsyncDisplayKit,wangjiangwen/AsyncDisplayKit,hannahmbanana/AsyncDisplayKit,nrcmedia/AsyncDisplayKit,kesiking/AsyncDisplayKit,paulyoung/AsyncDisplayKit,sabby3...
b66be8ed628e2a467c5c230eb2b91899af1ba6ed
UsbDk/UsbTarget.h
UsbDk/UsbTarget.h
#pragma once #include "ntddk.h" #include "wdf.h" #include "usb.h" #include "UsbSpec.h" #include "wdfusb.h" #include "Alloc.h" class CWdfUsbInterface; class CWdfUsbTarget { public: CWdfUsbTarget(); ~CWdfUsbTarget(); NTSTATUS Create(WDFDEVICE Device); void DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descr...
#pragma once #include "ntddk.h" #include "wdf.h" #include "usb.h" #include "UsbSpec.h" #include "wdfusb.h" #include "Alloc.h" class CWdfUsbInterface; class CWdfUsbTarget { public: CWdfUsbTarget(); ~CWdfUsbTarget(); NTSTATUS Create(WDFDEVICE Device); void DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descr...
Introduce USB target raw device accessor
UsbDk: Introduce USB target raw device accessor Signed-off-by: Dmitry Fleytman <f50f56ffad4b379c2a89812e98b14900ef87e9ea@redhat.com>
C
apache-2.0
freedesktop-unofficial-mirror/spice__win32__usbdk,SPICE/win32-usbdk,daynix/UsbDk,daynix/UsbDk,SPICE/win32-usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk
584d2815becf4c8c5a69bf52ce44a73bb4db29b3
src/ios/CDVBackgroundGeoLocation.h
src/ios/CDVBackgroundGeoLocation.h
// // CDVBackgroundGeoLocation.h // // Created by Chris Scott <chris@transistorsoft.com> // #import <Cordova/CDVPlugin.h> #import "CDVLocation.h" #import <AudioToolbox/AudioToolbox.h> @interface CDVBackgroundGeoLocation : CDVPlugin <CLLocationManagerDelegate> @property (nonatomic, strong) NSString* syncCallbackId;...
// // CDVBackgroundGeoLocation.h // // Created by Chris Scott <chris@transistorsoft.com> // #import <Cordova/CDVPlugin.h> #import "CDVLocation.h" #import <AudioToolbox/AudioToolbox.h> @interface CDVBackgroundGeoLocation : CDVPlugin <CLLocationManagerDelegate> @property (nonatomic, strong) NSString* syncCallbackId;...
Add 2 missing public methods to .h, including new onStationary method
Add 2 missing public methods to .h, including new onStationary method
C
apache-2.0
akserg/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,gkachru/cordova-plugin-background-geolocation,Anthbs/cordova-plugin-background-geolocation,KL-Moment/cordova-plugin-background-geolocation,imranw/cordova-plugin-background-geolocation,hydrogennz/cordova-plugin-background-geoloc...
5f6c802acf18c69a74c7a9b84d5c33321d433893
src/sass_context_wrapper.h
src/sass_context_wrapper.h
#include <nan.h> #include <condition_variable> #include "libsass/sass_context.h" #ifdef __cplusplus extern "C" { #endif using namespace v8; void compile_data(struct Sass_Data_Context* dctx); void compile_file(struct Sass_File_Context* fctx); void compile_it(uv_work_t* req); struct sass_context_wrapper { ...
#include <stdlib.h> #include <nan.h> #include <condition_variable> #include "libsass/sass_context.h" #ifdef __cplusplus extern "C" { #endif using namespace v8; void compile_data(struct Sass_Data_Context* dctx); void compile_file(struct Sass_File_Context* fctx); void compile_it(uv_work_t* req); struct sass...
Include <stdlib.h> for malloc related functions.
Include <stdlib.h> for malloc related functions.
C
mit
gravityrail/node-sass,deanrather/node-sass,cvibhagool/node-sass,Smartbank/node-sass,SomeoneWeird/node-sass,xzyfer/node-sass,Smartbank/node-sass,sass/node-sass,xzyfer/node-sass,nfriedly/node-sass,greyhwndz/node-sass,greyhwndz/node-sass,glassdimly/node-sass,littlepoolshark/node-sass,FeodorFitsner/node-sass,paulcbetts/nod...
b0c1b4beb324942040a5d9fd2abb617f8d83f612
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(SessionReuse) SLTM(SessionClose) SLTM(BackendOpen) SLTM(BackendXID) SLTM(BackendReuse) SLTM(BackendClose) SLTM(Htt...
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * * REMEMBER to update the documentation (especially the varnishlog(1) man * page) whenever this list changes. */ SLTM(Debug) SLTM(Error) SLTM(CLI) SLTM(SessionOpen) SLTM(Ses...
Add a note to update varnishlog(1) whenever this list changes.
Add a note to update varnishlog(1) whenever this list changes. git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@418 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish
b4e78339970f151f04a8167e97c64bc6c8ae5eb7
Framework/Lumberjack/CocoaLumberjack.h
Framework/Lumberjack/CocoaLumberjack.h
// // CocoaLumberjack.h // CocoaLumberjack // // Created by Andrew Mackenzie-Ross on 3/02/2015. // // #import <Foundation/Foundation.h> //! Project version number for CocoaLumberjack. FOUNDATION_EXPORT double CocoaLumberjackVersionNumber; //! Project version string for CocoaLumberjack. FOUNDATION_EXPORT const uns...
// // CocoaLumberjack.h // CocoaLumberjack // // Created by Andrew Mackenzie-Ross on 3/02/2015. // // #import <Foundation/Foundation.h> //! Project version number for CocoaLumberjack. FOUNDATION_EXPORT double CocoaLumberjackVersionNumber; //! Project version string for CocoaLumberjack. FOUNDATION_EXPORT const uns...
Revert "Conditionally include CLIColor in umbrella header"
Revert "Conditionally include CLIColor in umbrella header"
C
bsd-3-clause
CocoaLumberjack/CocoaLumberjack,jum/CocoaLumberjack,sushichop/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjack,CocoaLumberjack/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjack,DD-P/CocoaLumberjack,CocoaLumberjack/CocoaLumberjack,DD-P/CocoaLumberjack,sushichop/CocoaLumberjack,jum/CocoaLumberjac...
d4a2104beb0d9aebf8fe2799430e7261387b08ef
tensorflow/lite/ios/TensorFlowLiteC.h
tensorflow/lite/ios/TensorFlowLiteC.h
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Fix iOS nightly release. Exports the actual c api header instead of the shim header in the TensorflowLiteC framework
Fix iOS nightly release. Exports the actual c api header instead of the shim header in the TensorflowLiteC framework PiperOrigin-RevId: 477905780
C
apache-2.0
tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,yongtang/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensor...
bb6235f7fe8957ba09ff8c557d8caf4844e9ff38
common/network/WindowsInterfacePicker.h
common/network/WindowsInterfacePicker.h
/* * 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 b...
/* * 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 b...
Add the missing namespace bits
Add the missing namespace bits
C
lgpl-2.1
nip3o/open-lighting,emonty/ola,nip3o/open-lighting,mlba-team/open-lighting,emonty/ola,nip3o/open-lighting,ld3300/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola,mlba-team/open-lighting,mlba-team/open-lighting,ld3300/ola,nip3o/open-lighting,mlba-team/open-lighting,nightrune/ola,mlba-team/open-lighting,emonty/ola,n...
edc82eaff44802816280c90ffd40dbc69f59403a
tensorflow/compiler/xla/pjrt/pjrt_plugin_device_client.h
tensorflow/compiler/xla/pjrt/pjrt_plugin_device_client.h
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add comment on `GetTfrtPluginDeviceClient` to explain where to put the implementation.
Add comment on `GetTfrtPluginDeviceClient` to explain where to put the implementation.
C
apache-2.0
Intel-tensorflow/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_op...
24864d048eec2c579346eb31a42c87be1c92644e
src/include/port/linux.h
src/include/port/linux.h
/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either here or with -D compile options, but __ macros should be set and used by C library macros, not Postgres code. __USE_POSIX is set by features.h, __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to be used. */ #define...
/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either here or with -D compile options, but __ macros should be set and used by C library macros, not Postgres code. __USE_POSIX is set by features.h, __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to be used. */ #define...
Include information for armv4l from Mark Knox <segfault@hardline.org>.
Include information for armv4l from Mark Knox <segfault@hardline.org>.
C
apache-2.0
tangp3/gpdb,ashwinstar/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,lintzc/gpdb,lintzc/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,adam8157/gpdb,oberstet/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,xuegang/gpdb,Quikling/gpdb,postmind-net/postgres-xl,50wu/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,y...
7470834ac6613c2e22626f9511384f025f16768e
src/types.h
src/types.h
#ifndef TYPES_H_90878954 #define TYPES_H_90878954 typedef enum { false, true } bool_t; #endif
#ifndef TYPES_H_90878954 #define TYPES_H_90878954 #if __STDC_VERSION__ == 199901L #include <stdbool.h> typedef bool bool_t; #else // __STDC_VERSION__ typedef enum { false, true } bool_t; #endif // __STDC_VERSION #endif
Use c99 standard bool when available
Use c99 standard bool when available
C
bsd-3-clause
fmorgner/umurmur,snowblind/umurmur,doctaweeks/umurmur,troxor/umurmur,doctaweeks/umurmur,troxor/umurmur,snowblind/umurmur,fmorgner/umurmur,doctaweeks/umurmur
b06ef71474c9f258d650727239b6d37064400813
src/compositor/compositor.h
src/compositor/compositor.h
#ifndef _WLC_COMPOSITOR_H_ #define _WLC_COMPOSTIOR_H_ #include "visibility.h" #include <stdbool.h> #include <wayland-util.h> struct wl_display; struct wl_event_loop; struct wl_event_source; struct wlc_shell; struct wlc_xdg_shell; struct wlc_backend; struct wlc_context; struct wlc_render; struct wlc_compositor { s...
#ifndef _WLC_COMPOSITOR_H_ #define _WLC_COMPOSITOR_H_ #include "visibility.h" #include <stdbool.h> #include <wayland-util.h> struct wl_display; struct wl_event_loop; struct wl_event_source; struct wlc_shell; struct wlc_xdg_shell; struct wlc_backend; struct wlc_context; struct wlc_render; struct wlc_compositor { s...
Fix typo in header guard.
Fix typo in header guard.
C
mit
UIKit0/wlc,Earnestly/wlc,vially/wlc,yohanesu75/wlc,SirCmpwn/wlc,lkundrak/wlc,UIKit0/wlc,gpyh/wlc,Cloudef/wlc,scarabeusiv/wlc,gpyh/wlc,Earnestly/wlc,vially/wlc,ammen99/wlc,Enerccio/ewlc,yohanesu75/wlc,ss1h2a3tw/wlc,ss1h2a3tw/wlc,lkundrak/wlc,SirCmpwn/wlc,scarabeusiv/wlc,Enerccio/ewlc,ammen99/wlc,Cloudef/wlc
6f0c54bc6ceca7d2260fb711cee165408cf906b1
OCCommunicationLib/OCCommunicationLib/Utils/OCConstants.h
OCCommunicationLib/OCCommunicationLib/Utils/OCConstants.h
// // OCChunkInputStream.h // Owncloud iOs Client // // Copyright (C) 2014 ownCloud Inc. (http://www.owncloud.org/) // // 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...
// // OCChunkInputStream.h // Owncloud iOs Client // // Copyright (C) 2015 ownCloud Inc. (http://www.owncloud.org/) // // 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...
Update the year of the Copyright
Update the year of the Copyright
C
mit
owncloud/ios-library,pd81999/ios-library,blueseaguo/ios-library
fd6986863ac96ac91b855f33e83ba0f03799da8c
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalDataImport.h
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
// // NSManagedObject+JSONHelpers.h // // Created by Saul Mora on 6/28/11. // Copyright 2011 Magical Panda Software LLC. All rights reserved. // #import <CoreData/CoreData.h> extern NSString * const kMagicalRecordImportCustomDateFormatKey; extern NSString * const kMagicalRecordImportDefaultDateFormatString; extern...
Move the import controls into a formal protocol
Move the import controls into a formal protocol
C
mit
PeterStudio/MagicalRecord,iosdevvivek/MagicalRecord,xxkkk/MagicalRecord,akaking/MagicalRecord,iosdevvivek/MagicalRecord,ondev/MagicalRecord,orta/MagicalRecord,qingsong-xu/MagicalRecord,Vincent8ziv/MagicalRecord,megawina/MagicalRecord,wongzigii/MagicalRecord,csotiriou/MagicalRecord,liufeigit/MagicalRecord,BlessNeo/Magic...
ade05c3a2896b49b876e910c94e292a77ddd7ac7
include/libvarnish.h
include/libvarnish.h
/* * $Id$ */ #include <errno.h> #include <time.h> /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish/version.c */ void varnish_version(const char...
/* * $Id$ */ #include <errno.h> #include <time.h> #ifndef NULL #define NULL ((void*)0) #endif /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish...
Split assert into "static check" and "missing code" variants.
Split assert into "static check" and "missing code" variants. The "missing code" variants have xxx prefix Introduce AN() (assert non-null) variant as well. git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
1HLtd/Varnish-Cache,franciscovg/Varnish-Cache,ajasty-cavium/Varnish-Cache,gauthier-delacroix/Varnish-Cache,zhoualbeart/Varnish-Cache,ajasty-cavium/Varnish-Cache,feld/Varnish-Cache,alarky/varnish-cache-doc-ja,varnish/Varnish-Cache,mrhmouse/Varnish-Cache,chrismoulton/Varnish-Cache,wikimedia/operations-debs-varnish,gquint...
97498f64ef097096b756c6b262f3ae38965e8685
tensorflow/compiler/tf2xla/type_util.h
tensorflow/compiler/tf2xla/type_util.h
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add comment explaining why there is no PrimitiveTypeToDataType function.
[TF:XLA] Add comment explaining why there is no PrimitiveTypeToDataType function. PiperOrigin-RevId: 214945748
C
apache-2.0
chemelnucfin/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,yongtang/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,girving/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once...
a41572918b5ca69cc925d9ce0714c03924857289
include/libvarnish.h
include/libvarnish.h
/* * $Id$ */ #include <errno.h> #include <time.h> /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish/version.c */ void varnish_version(const char...
/* * $Id$ */ #include <errno.h> #include <time.h> #ifndef NULL #define NULL ((void*)0) #endif /* from libvarnish/argv.c */ void FreeArgv(char **argv); char **ParseArgv(const char *s, int comment); /* from libvarnish/time.c */ void TIM_format(time_t t, char *p); time_t TIM_parse(const char *p); /* from libvarnish...
Split assert into "static check" and "missing code" variants.
Split assert into "static check" and "missing code" variants. The "missing code" variants have xxx prefix Introduce AN() (assert non-null) variant as well. git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@911 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish
3ef98829f869fc94404894ef9ef315d673088608
test/number.c
test/number.c
// Copyright 2012 Rui Ueyama <rui314@gmail.com> // This program is free software licensed under the MIT license. #include "test.h" void testmain(void) { print("numeric constants"); expect(1, 0x1); expect(17, 0x11); expect(511, 0777); expect(11, 0b1011); // GNU extension expect(3, 3L); e...
// Copyright 2012 Rui Ueyama <rui314@gmail.com> // This program is free software licensed under the MIT license. #include "test.h" void testmain(void) { print("numeric constants"); expect(1, 0x1); expect(17, 0x11); expect(511, 0777); expect(11, 0b1011); // GNU extension expect(11, 0B1011); ...
Add a test for '0B' prefix.
Add a test for '0B' prefix.
C
mit
8l/8cc,rui314/8cc,gergo-/8cc,nobody1986/8cc,vastin/8cc,rui314/8cc,nobody1986/8cc,andrewchambers/8cc,vastin/8cc,8l/8cc,andrewchambers/8cc,vastin/8cc,8l/8cc,cpjreynolds/8cc,jtramm/8cc,abc00/8cc,8l/8cc,gergo-/8cc,gergo-/8cc,nobody1986/8cc,jtramm/8cc,andrewchambers/8cc,vastin/8cc,rui314/8cc,cpjreynolds/8cc,cpjreynolds/8cc,...