commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
eb434c1c76cdad0f5f841487dc9568c5079c6fb8
ReactCommon/react/test_utils/MockSurfaceHandler.h
ReactCommon/react/test_utils/MockSurfaceHandler.h
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <gmock/gmock.h> #include <react/renderer/scheduler/SurfaceHandler.h> namespace facebook { namespace reac...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <gmock/gmock.h> #include <react/renderer/scheduler/SurfaceHandler.h> namespace facebook { namespace reac...
Revert D34351084: Migrate from googletest 1.8 to googletest 1.10
Revert D34351084: Migrate from googletest 1.8 to googletest 1.10 Differential Revision: D34351084 (https://github.com/facebook/react-native/commit/94891ab5f883efa55146dc42e1cd9705506794f3) Original commit changeset: 939b3985ab63 Original Phabricator Diff: D34351084 (https://github.com/facebook/react-native/commit/94...
C
mit
facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,javache/react-native,facebook/react-native,facebook/react-native,javache/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,janicduplessis/react-native,javache/react...
2e64f96d3b0de90550a375223dbb0f98be057a9f
keyglove/setup_board_atmega1280.h
keyglove/setup_board_atmega1280.h
// Keyglove controller source code - Special hardware setup file // 7/17/2011 by Jeff Rowberg <jeff@rowberg.net> /* ============================================ Controller code is placed under the MIT license Copyright (c) 2011 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy ...
Add board support for preliminary testing with Arduino Mega again
Add board support for preliminary testing with Arduino Mega again
C
mit
jrowberg/keyglove,jrowberg/keyglove,jrowberg/keyglove,jrowberg/keyglove,jrowberg/keyglove
0550c0c5192e009409d9a23f644419699c9eb500
libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c
libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c
/* * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) * * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. */ #include <../../../../../../../libc/sysdeps/linux/arc/sigaction.c>
/* * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) * * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. */ /* * ARC syscall ABI only has __NR_rt_sigaction, thus vanilla sigaction does * some SA_RESTORER tricks before calling __syscall_rt_sigaction. * However including that...
Fix __libc_sigaction redefinition with static links
ARC/NPTL: Fix __libc_sigaction redefinition with static links Signed-off-by: Vineet Gupta <af669d95a4c0de051445d4cafdbb2c5c4a2838be@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <ce1ac9e9ad16abccd7821f371ad381197b4768ac@gmail.com>
C
lgpl-2.1
majek/uclibc-vx32,brgl/uclibc-ng,kraj/uClibc,kraj/uclibc-ng,majek/uclibc-vx32,kraj/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,kraj/uClibc,wbx-github/uclibc-ng,wbx-github/uclibc-ng,brgl/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uClibc,kraj/uclibc-ng,majek/uclibc-vx32,foss-for-synopsys-dwc-arc-process...
4e874c8a3ec1d524e5ab0df04994fb25243e9c72
source/crate_demo/graphics_manager.h
source/crate_demo/graphics_manager.h
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef CRATE_DEMO_GRAPHICS_MANAGER_H #define CRATE_DEMO_GRAPHICS_MANAGER_H #include "common/graphics_manager_base.h" #include <d3d11.h> #include "DirectXMath...
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef CRATE_DEMO_GRAPHICS_MANAGER_H #define CRATE_DEMO_GRAPHICS_MANAGER_H #include "common/graphics_manager_base.h" #include <d3d11.h> #include "DirectXMath...
Create MatrixBufferType struct to hold current world, view, and projection matricies
CRATE_DEMO: Create MatrixBufferType struct to hold current world, view, and projection matricies
C
apache-2.0
RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject
c9c2c1696c1655ab178908e9f534d6c60da09539
SVPullToRefresh/SVPullToRefresh.h
SVPullToRefresh/SVPullToRefresh.h
// // SVPullToRefresh.h // SVPullToRefreshDemo // // Created by Sam Vermette on 23.04.12. // Copyright (c) 2012 samvermette.com. All rights reserved. // // https://github.com/samvermette/SVPullToRefresh // // this header file is provided for backwards compatibility and will be removed in the future // here's how you...
// // SVPullToRefresh.h // SVPullToRefreshDemo // // Created by Sam Vermette on 23.04.12. // Copyright (c) 2012 samvermette.com. All rights reserved. // // https://github.com/samvermette/SVPullToRefresh // // this header file is provided for backwards compatibility and will be removed in the future // here's how you...
Add loading view to SVPUllToRefresh header
Add loading view to SVPUllToRefresh header
C
mit
csutanyu/SVPullToRefresh
47f6c0599c0ba656c6e038c2259c09ae84d28483
drudge/canonpy.h
drudge/canonpy.h
/* vim: set filetype=cpp: */ /** Header file for canonpy. * * Currently it merely contains the definition of the object structure of the * classes defined in canonpy. They are put here in case a C API is intended * to be added for canonpy. */ #ifndef DRUDGE_CANONPY_H #define DRUDGE_CANONPY_H #include <Python.h...
/* vim: set filetype=cpp: */ /** Header file for canonpy. * * Currently it merely contains the definition of the object structure of the * classes defined in canonpy. They are put here in case a C API is intended * to be added for canonpy. */ #ifndef DRUDGE_CANONPY_H #define DRUDGE_CANONPY_H #include <Python.h...
Add object type for permutation groups
Add object type for permutation groups Inside a permutation group, the Sims transversal system is going to be stored.
C
mit
tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge
481aeecd9bf2e239c3fa911286bece5143246311
lottie-ios/Classes/PublicHeaders/Lottie.h
lottie-ios/Classes/PublicHeaders/Lottie.h
// // Lottie.h // Pods // // Created by brandon_withrow on 1/27/17. // // #if __has_feature(modules) @import Foundation; #else #import <Foundation/Foundation.h> #endif #ifndef Lottie_h #define Lottie_h //! Project version number for Lottie. FOUNDATION_EXPORT double LottieVersionNumber; //! Project version string...
// // Lottie.h // Pods // // Created by brandon_withrow on 1/27/17. // // #if __has_feature(modules) @import Foundation; #else #import <Foundation/Foundation.h> #endif #ifndef Lottie_h #define Lottie_h //! Project version number for Lottie. FOUNDATION_EXPORT double LottieVersionNumber; //! Project version string...
Fix public header for macOS
Fix public header for macOS
C
apache-2.0
airbnb/lottie-ios,airbnb/lottie-ios,airbnb/lottie-ios
e845dd43efb19a6af37ab2dbf1cbd119022ff885
hard_way/ex13.c
hard_way/ex13.c
#include <stdio.h> int main(int argc, char *argv[]){ if(argc != 2){ printf("You must supply one argument!\n"); //this is how you abort a program. return 1; } return 0; }
#include <stdio.h> int main(int argc, char *argv[]){ if(argc != 2){ printf("You must supply one argument!\n"); //this is how you abort a program. return 1; } int i = 0; for(i = 0; argv[1][i] != '\0'; i++){ char letter = argv[1][i]; switch(letter){ ...
Switch on vowels in argument
Switch on vowels in argument
C
mit
thewazir/learning_c
45f9522a638516520d39822f25c52d21c96b2923
ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h
ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h
#define MICROPY_HW_BOARD_NAME "iMX RT 1060 EVK" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" // If you change this, then make sure to update the linker scripts as well to // make sure you don't overwrite code #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (8 * 1024 * 1024) #define MICROPY_HW_LED_STAT...
#define MICROPY_HW_BOARD_NAME "iMX RT 1060 EVK" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" // If you change this, then make sure to update the linker scripts as well to // make sure you don't overwrite code #define CIRCUITPY_INTERNAL_NVM_SIZE 0 #define BOARD_FLASH_SIZE (8 * 1024 * 1024) #define MICROPY_HW_LED_STAT...
Fix EVK status led to be inverted
Fix EVK status led to be inverted
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
4655534302e6a3601c77eae70cc65b202609ab66
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 78 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 79 #endif
Update Skia milestone to 79
Update Skia milestone to 79 Change-Id: I248831c58b3c01d356942cd0de61447292720ccb Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239446 Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Auto-Su...
C
bsd-3-clause
HalCanary/skia-hc,google/skia,google/skia,google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_...
e3787b675f1a369697d97ba8e65bf6ba80ace51d
include/netpacket/packet.h
include/netpacket/packet.h
/* Definitions for use with Linux AF_PACKET sockets. Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 F...
Make pump happy. Add in this header. -Erik
Make pump happy. Add in this header. -Erik
C
lgpl-2.1
groundwater/uClibc,skristiansson/uClibc-or1k,hjl-tools/uClibc,klee/klee-uclibc,czankel/xtensa-uclibc,ffainelli/uClibc,ChickenRunjyd/klee-uclibc,hjl-tools/uClibc,groundwater/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,wbx-github/uclibc-ng,mephi42/uClibc,atgreen/uClibc-moxie,waweber/uclibc-clang,foss-for-synopsys-...
00f7b82571bef17086f65cd6c2f827c565eff40e
experiments.h
experiments.h
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Remove no longer used SkipEncodingUnusedStreams.
Remove no longer used SkipEncodingUnusedStreams. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18829004 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6753 4adac7df-926f-26a2-2b94-8c16560cd09d
C
bsd-3-clause
Alkalyne/webrtctrunk,xin3liang/platform_external_chromium_org_third_party_webrtc,geekboxzone/lollipop_external_chromium_org_third_party_webrtc,bpsinc-native/src_third_party_webrtc,svn2github/webrtc-Revision-8758,jgcaaprom/android_external_chromium_org_third_party_webrtc,xin3liang/platform_external_chromium_org_third_pa...
47102b35d644a8c5a1343f9ec05c29b5d1e0e1b0
plat/arm/common/aarch64/arm_pauth.c
plat/arm/common/aarch64/arm_pauth.c
/* * Copyright (c) 2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <cdefs.h> #include <stdint.h> /* * Instruction pointer authentication key A. The low 64-bit are at [0], and the * high bits at [1]. They are run-time constants so they are placed in the * rodata sec...
/* * Copyright (c) 2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <cdefs.h> #include <stdint.h> /* * Instruction pointer authentication key A. The low 64-bit are at [0], and the * high bits at [1]. */ uint64_t plat_apiakey[2]; /* * This is only a toy implementat...
Put Pointer Authentication key value in BSS section
Put Pointer Authentication key value in BSS section The dummy implementation of the plat_init_apiakey() platform API uses an internal 128-bit buffer to store the initial key value used for Pointer Authentication support. The intent - as stated in the file comments - was for this buffer to be write-protected by the MM...
C
bsd-3-clause
achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware
e989038c00cc0ef3885ed1cdcddbbbb0d87362a0
lib/haka/stat.c
lib/haka/stat.c
#include <stdio.h> #include <stdarg.h> #include <haka/stat.h> #include <haka/types.h> bool stat_printf(FILE *out, const char *format, ...) { va_list args; va_start(args, format); vfprintf(out, format, args); va_end(args); return true; } size_t format_bytes(size_t v, char *c) { if (v > (1 << 30)) { *c = 'g';...
#include <stdio.h> #include <stdarg.h> #include <haka/stat.h> #include <haka/types.h> bool stat_printf(FILE *out, const char *format, ...) { va_list args; va_start(args, format); vfprintf(out, format, args); va_end(args); return true; } size_t format_bytes(size_t v, char *c) { if (v > (1 << 30)) { *c = 'G';...
Use standard notations for mega (M) and giga (G)
Use standard notations for mega (M) and giga (G)
C
mpl-2.0
LubyRuffy/haka,nabilbendafi/haka,Wingless-Archangel/haka,haka-security/haka,nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,lcheylus/haka,LubyRuffy/haka,haka-security/haka,lcheylus/haka,nabilbendafi/haka,lcheylus/haka
5ac905c512d06fdbd443374f5f9fafef10bef0e1
test/CodeGen/debug-info-abspath.c
test/CodeGen/debug-info-abspath.c
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \ // RUN: %s -emit-llvm -o - | FileCheck %s // RUN: cp %s %t.c // RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \ // RUN: %t.c -emit-llvm -o - | FileCheck %s --check-prefix=INTREE void foo() {} // Since %s is an absolut...
// RUN: mkdir -p %t/UNIQUEISH_SENTINEL // RUN: cp %s %t/UNIQUEISH_SENTINEL/debug-info-abspath.c // RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \ // RUN: %t/UNIQUEISH_SENTINEL/debug-info-abspath.c -emit-llvm -o - \ // RUN: | FileCheck %s // RUN: cp %s %t.c // RUN: %clang_cc1 -debug-info-ki...
Make testcase more robust for completely-out-of-tree builds.
Make testcase more robust for completely-out-of-tree builds. Thats to Dave Zarzycki for reprorting this! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@348612 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
71fff3ac1cd1349b8cba13114ac6025d8e6eca73
tests/libfixmath_unittests/main.c
tests/libfixmath_unittests/main.c
/* * Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any l...
/* * Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any l...
Add message when tests are finished.
tests/libfixmath_unittests: Add message when tests are finished.
C
lgpl-2.1
gebart/RIOT,robixnai/RIOT,jbeyerstedt/RIOT-OTA-update,roberthartung/RIOT,asanka-code/RIOT,Lexandro92/RIOT-CoAP,rousselk/RIOT,arvindpdmn/RIOT,immesys/RiSyn,shady33/RIOT,attdona/RIOT,josephnoir/RIOT,wentaoshang/RIOT,immesys/RiSyn,msolters/RIOT,OTAkeys/RIOT,kb2ma/RIOT,authmillenon/RIOT,RBartz/RIOT,stevenj/RIOT,gbarnett/RI...
e6dedf514f1b16cffd6f17c9615fc65745ed2a47
MdePkg/Include/Library/PeiServicesTablePointerLib.h
MdePkg/Include/Library/PeiServicesTablePointerLib.h
/** @file PEI Services Table Pointer Library services Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the licen...
/** @file PEI Services Table Pointer Library services Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the licen...
Remove MigrateIDT interface from PeiServiceTableLib library class.
Remove MigrateIDT interface from PeiServiceTableLib library class. git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@5791 6f19259b-4bc3-4df7-8a09-765794883524
C
bsd-2-clause
MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2
ae056d53cc1566fdf3edd09d7e2612ae551c2a27
source/tools/IAudioSinkCallback.h
source/tools/IAudioSinkCallback.h
/* * Copyright (C) 2016 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) 2016 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...
Change protector macro to match the filename
Change protector macro to match the filename Test: builds OK Change-Id: I9d2ac3ee871a3380b32aecda6380b1b2da1dbed0
C
apache-2.0
google/synthmark,google/synthmark,google/synthmark,google/synthmark,google/synthmark
aaab81c1bbe221302ab0931f0700265932ecc18d
solutions/uri/1020/1020.c
solutions/uri/1020/1020.c
#include <stdio.h> int main() { int t, a = 0, m = 0, d = 0; while (scanf("%d", &t) != EOF) { if (t >= 365) { a = t / 365; t %= 365; } if (t >= 30) { m = t / 30; t %= 30; } d = t; printf("%d ano(s)\n", a); ...
Solve Age in Days in c
Solve Age in Days in c
C
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
91ee9e96426e8d3eb74869cfc965306f6f5603c9
src/rtcmix/command_line.c
src/rtcmix/command_line.c
/* command_line.c */ /* to return command line arguments */ #include "../H/ugens.h" #include "../Minc/defs.h" #include "../Minc/ext.h" extern int aargc; extern char *aargv[]; /* to pass commandline args to subroutines */ double f_arg(float *p, short n_args) { double atof(); return (((int)p[0]) < aargc - 1)...
/* command_line.c */ /* to return command line arguments */ #include <stdlib.h> #include <math.h> #include <ugens.h> #include "../Minc/ext.h" double f_arg(float *p, short n_args) { return (((int)p[0]) < aargc - 1) ? (atof(aargv[(int)p[0]])) : 0.0; } double i_arg(float *p, short n_args) { return (((int)p[0]) < aarg...
Delete some extern vars that were in ugens.h. Other minor cleanups.
Delete some extern vars that were in ugens.h. Other minor cleanups.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
a7ac1f5696d3f4e3e2136e86bf5f11a362d0f5e3
tree/ntuple/v7/test/CustomStructLinkDef.h
tree/ntuple/v7/test/CustomStructLinkDef.h
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class CustomStruct+; #pragma link C++ class DerivedA+; #pragma link C++ class DerivedA2+; #pragma link C++ class DerivedB+; #pragma link C++ class DerivedC+; #pragma link C++ class IAuxSetOpti...
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class CustomStruct+; #pragma link C++ class DerivedA+; #pragma link C++ class DerivedA2+; #pragma link C++ class DerivedB+; #pragma link C++ class DerivedC+; #pragma link C++ class IAuxSetOpti...
Remove warning `Warning: Unused class rule: PackedContainer`
[ntuple] Remove warning `Warning: Unused class rule: PackedContainer`
C
lgpl-2.1
olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root
0a5490e174e79614f4b8e98a8091ad3b86d043a2
test/Misc/thinlto.c
test/Misc/thinlto.c
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s // CHECK: <FUNCTION_SUMMARY_BLOCK // CHECK-NEXT: <PERMODULE_ENTRY // CHECK-NEXT: <PERMODULE_ENTRY // CHECK-NEXT: </FUNCTION_SUMMARY_BLOCK __attribute__((noinline)) void foo() {} int main() { foo(); }
// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s // CHECK: <GLOBALVAL_SUMMARY_BLOCK // CHECK-NEXT: <PERMODULE // CHECK-NEXT: <PERMODULE // CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK __attribute__((noinline)) void foo() {} int main() { foo(); }
Update test case for llvm summary format changes in D17592.
Update test case for llvm summary format changes in D17592. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@263276 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
f3b2812917a934a84c2c4db1b402e6cb2ef22f43
thingc/execution/Symbol.h
thingc/execution/Symbol.h
#pragma once #include <memory> #include "Opcode.h" class Symbol { public: Symbol(Opcode opcode) : opcode(opcode) {}; Symbol(Opcode opcode, unsigned int target) : opcode(opcode), target(target) {}; void execute(); private: Opcode opcode; unsigned int target; };
#pragma once #include <memory> #include "Opcode.h" class Symbol { public: Symbol(Opcode opcode) : opcode(opcode) {}; Symbol(Opcode opcode, unsigned int target) : opcode(opcode), target(target) {}; Symbol(Opcode opcode, unsigned int target, unsigned int secondary) : opcode(opcode), target(target), secondary(se...
Add optional secondary target argument
Add optional secondary target argument
C
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
cd58e2e8514d2f8abd4abbeb2003722adc10c883
knode/resource.h
knode/resource.h
/* resource.h KNode, the KDE newsreader Copyright (c) 1999-2005 the KNode authors. See file AUTHORS for details 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 ver...
/* resource.h KNode, the KDE newsreader Copyright (c) 1999-2005 the KNode authors. See file AUTHORS for details 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 ver...
Increment version number for the upcoming alpha release.
Increment version number for the upcoming alpha release. svn path=/branches/KDE/3.5/kdepim/; revision=442706
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
88f8bd2718d4941c67fbc0c7b7c8ab5750d9085d
obexd/src/plugin.h
obexd/src/plugin.h
/* * * OBEX Server * * Copyright (C) 2007-2009 Marcel Holtmann <marcel@holtmann.org> * * * 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 * (a...
/* * * OBEX Server * * Copyright (C) 2007-2009 Marcel Holtmann <marcel@holtmann.org> * * * 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 * (a...
Use GCC visibility for exporting symbols
obexd: Use GCC visibility for exporting symbols
C
lgpl-2.1
ComputeCycles/bluez,pkarasev3/bluez,ComputeCycles/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,silent-snowman/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,silent-snowman/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapf...
a45e44a9c9095cfa266647cd805e7301a9b06aab
cbits/timefuncs.c
cbits/timefuncs.c
#define _XOPEN_SOURCE #include <time.h> #include <locale.h> void set_c_locale() { setlocale(LC_TIME, "C"); } time_t c_parse_http_time(char* s) { struct tm dest; strptime(s, "%a, %d %b %Y %H:%M:%S GMT", &dest); return mktime(&dest); } void c_format_http_time(time_t src, char* dest) { struct tm t...
#define _XOPEN_SOURCE #include <time.h> #include <locale.h> void set_c_locale() { setlocale(LC_TIME, "C"); } time_t c_parse_http_time(char* s) { struct tm dest; strptime(s, "%a, %d %b %Y %H:%M:%S GMT", &dest); return timegm(&dest); } void c_format_http_time(time_t src, char* dest) { struct tm t...
Fix timezone issue -- call the correct C function
Fix timezone issue -- call the correct C function
C
bsd-3-clause
23Skidoo/snap-core,sopvop/snap-core,snapframework/snap-core,23Skidoo/snap-core,snapframework/snap-core,f-me/snap-core,sopvop/snap-core,snapframework/snap-core,23Skidoo/snap-core,sopvop/snap-core,f-me/snap-core,f-me/snap-core
3abdc74015406d1582439810f3cb5c052dded0c6
src/tincan/bussignaldef.h
src/tincan/bussignaldef.h
#ifndef TIN_BUSSIGNALDEF_H #define TIN_BUSSIGNALDEF_H #include <cstdint> #include <string> namespace tin { enum class Byte_order : std::uint8_t { Intel, Moto }; enum class Value_sign : std::uint8_t { Signed, Unsigned }; struct Bus_signal_def { bool multiplex_switch; Byte_order order; Value_sign sign; st...
#ifndef TIN_BUSSIGNALDEF_H #define TIN_BUSSIGNALDEF_H #include <cstdint> #include <string> #include <vector> namespace tin { enum class Byte_order : std::uint8_t { Intel, Moto }; enum class Value_sign : std::uint8_t { Signed, Unsigned }; struct Bus_signal_meta_data { std::int8_t factor_precision = 7; std::i...
Add receiver and meta data
Add receiver and meta data
C
mit
jwkpeter/tincan
5b8106e848d99433f62310dbf3cb80ef9812e572
include/msvc_compat/C99/stdbool.h
include/msvc_compat/C99/stdbool.h
#ifndef stdbool_h #define stdbool_h #include <wtypes.h> /* MSVC doesn't define _Bool or bool in C, but does have BOOL */ /* Note this doesn't pass autoconf's test because (bool) 0.5 != true */ typedef BOOL _Bool; #define bool _Bool #define true 1 #define false 0 #define __bool_true_false_are_defined 1 #endif /* st...
#ifndef stdbool_h #define stdbool_h #include <wtypes.h> /* MSVC doesn't define _Bool or bool in C, but does have BOOL */ /* Note this doesn't pass autoconf's test because (bool) 0.5 != true */ /* Clang-cl uses MSVC headers, so needs msvc_compat, but has _Bool as * a built-in type. */ #ifndef __clang__ typedef BOOL _...
Allow to build with clang-cl
Allow to build with clang-cl
C
bsd-2-clause
geekboxzone/lollipop_external_jemalloc,TeamExodus/external_jemalloc,TeamExodus/external_jemalloc,geekboxzone/mmallow_external_jemalloc,xin3liang/platform_external_jemalloc,VRToxin/android_external_jemalloc,geekboxzone/lollipop_external_jemalloc,CMRemix/android_external_jemalloc,sudosurootdev/external_jemalloc,CMRemix/a...
7143facc65a8e86649d874f1910442615d367524
test/Driver/aarch64-rdm.c
test/Driver/aarch64-rdm.c
// RUN: %clang -target aarch64-none-none-eabi -march=armv8a+rdm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s // RUN: %clang -target aarch64-none-none-eabi -mcpu=generic+rdm -### -c %s 2>&1 | FileCheck --check-prefix=CHECK-RDM %s // RUN: %clang -target aarch64-none-none-eabi -mcpu=falkor -### -c %s 2>&1 | Fil...
Add tests for RDM feature.
[Driver][AArch64] Add tests for RDM feature. Differential Revision: https://reviews.llvm.org/D37106 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@311660 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
030b5129d7f4693d8425740c0639a007c46902a7
code/Modules/Core/posix/precompiled.h
code/Modules/Core/posix/precompiled.h
#pragma once //------------------------------------------------------------------------------ /** @file core/posix/precompiled.h Standard includes for POSIX platforms. NOTE: keep as many headers out of here as possible, at least on compilers which don't have pre-compiled-headers turned on. ...
#pragma once //------------------------------------------------------------------------------ /** @file core/posix/precompiled.h Standard includes for POSIX platforms. NOTE: keep as many headers out of here as possible, at least on compilers which don't have pre-compiled-headers turned on. ...
Fix for compile error on Linux when using clang with GNU std c++ lib (__STRICT_ANSI__ is required)
Fix for compile error on Linux when using clang with GNU std c++ lib (__STRICT_ANSI__ is required)
C
mit
aonorin/oryol,floooh/oryol,aonorin/oryol,aonorin/oryol,aonorin/oryol,aonorin/oryol,aonorin/oryol,floooh/oryol,floooh/oryol,aonorin/oryol,floooh/oryol,floooh/oryol,floooh/oryol
8fc20aab3269a76b9791c98213a7eb3106da7a83
TJDropbox/TJDropboxAuthenticator.h
TJDropbox/TJDropboxAuthenticator.h
// // TJDropboxAuthenticator.h // Close-up // // Created by Tim Johnsen on 3/14/20. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(10.0)) @interface TJDropboxAuthenticator : NSObject + (void)authenticateWithClientIdentifier:(NSString *const)clientIdentifier by...
// // TJDropboxAuthenticator.h // Close-up // // Created by Tim Johnsen on 3/14/20. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(10.0)) @interface TJDropboxAuthenticator : NSObject /** * Invoke this to initiate auth * @param clientIdentifier Your registered Dropbox client iden...
Add docs to authenticator header.
Add docs to authenticator header.
C
bsd-3-clause
timonus/TJDropbox
8294d17917c0031ec37a25dd7de2d21cea0c2c66
src/unit_VEHICLE/models/generic/Generic_RackPinion.h
src/unit_VEHICLE/models/generic/Generic_RackPinion.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add a generic rack-pinion steering subsystem.
Add a generic rack-pinion steering subsystem.
C
bsd-3-clause
armanpazouki/chrono,jcmadsen/chrono,projectchrono/chrono,dariomangoni/chrono,Bryan-Peterson/chrono,Milad-Rakhsha/chrono,jcmadsen/chrono,Milad-Rakhsha/chrono,andrewseidl/chrono,Bryan-Peterson/chrono,dariomangoni/chrono,jcmadsen/chrono,rserban/chrono,rserban/chrono,tjolsen/chrono,jcmadsen/chrono,armanpazouki/chrono,proje...
a74363011638771c83555614cf2fafd1ef854bfd
hab/proxr/cb-set-resource.c
hab/proxr/cb-set-resource.c
#include <string.h> #include <stdlib.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { double data; double content; char number[3]; char *res_name = NULL; long int id; bionet_node_t *node; bionet_value_get_double(value...
#include <string.h> #include <stdlib.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { double data; double content; char number[3]; char *res_name = NULL; long int id; bionet_node_t *node; bionet_value_get_double(value...
Change how proxr resources are set. Previously it was given a value 0-255 which the proxr hardware uses to set the voltage. now just give it a voltage and do the conversion in the hab. also if a voltage supplied is out of range it snaps to nearest in range.
Change how proxr resources are set. Previously it was given a value 0-255 which the proxr hardware uses to set the voltage. now just give it a voltage and do the conversion in the hab. also if a voltage supplied is out of range it snaps to nearest in range.
C
lgpl-2.1
ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead
41df6d94b734a98f77b27794b9289be2391bc29b
src/compiler/util/result.h
src/compiler/util/result.h
#ifndef COMPILER_UTIL_RESULT_H_ #define COMPILER_UTIL_RESULT_H_ #include <string> namespace tree_sitter { namespace util { template <typename Value> struct Result { Value value; std::string error; inline Result() : error("Empty") {} inline Result(Value &&v) : value(v) {} inline Result(const std::string &m...
#ifndef COMPILER_UTIL_RESULT_H_ #define COMPILER_UTIL_RESULT_H_ #include <string> namespace tree_sitter { namespace util { template <typename Value> struct Result { Value value; std::string error; inline Result() : error("Empty") {} inline Result(const Value &v) : value(v) {} inline Result(Value &&v) : va...
Allow Result to be constructed with an l-value
Allow Result to be constructed with an l-value This fixes compile errors on old C++ compilers
C
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
3e69b820d360bd96ce3c8c6714835115847c49a4
source/m3_api_defs.h
source/m3_api_defs.h
// // m3_api_defs.h // // Created by Volodymyr Shymanskyy on 12/20/19. // Copyright © 2019 Volodymyr Shymanskyy. All rights reserved. // #ifndef m3_api_defs_h #define m3_api_defs_h #include "m3_core.h" #define m3ApiReturnType(TYPE) TYPE* raw_return = ((TYPE*) (_sp)); #define m3ApiGetArg(TYPE, NAME) TYPE N...
// // m3_api_defs.h // // Created by Volodymyr Shymanskyy on 12/20/19. // Copyright © 2019 Volodymyr Shymanskyy. All rights reserved. // #ifndef m3_api_defs_h #define m3_api_defs_h #include "m3_core.h" #define m3ApiReturnType(TYPE) TYPE* raw_return = ((TYPE*) (_sp)); #define m3ApiGetArg(TYPE, NAME) TYPE N...
Fix type missmatch (crucial for wasienv)
Fix type missmatch (crucial for wasienv)
C
mit
wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3
81ac9438c400140ea6d56ee30ded7ea74135a8b3
include/payload.h
include/payload.h
#ifndef CPR_PAYLOAD_H #define CPR_PAYLOAD_H #include <memory> #include <string> #include <initializer_list> namespace cpr { struct Pair { Pair(const std::string& key, const std::string& value) : key{key}, value{value} {} Pair(const std::string& key, const int& value) : key{key}, value{std::to_string(value)} ...
#ifndef CPR_PAYLOAD_H #define CPR_PAYLOAD_H #include <memory> #include <string> #include <initializer_list> namespace cpr { struct Pair { Pair(const std::string& key, const std::string& value) : key{key}, value{value} {} Pair(const std::string& key, const int& value) : key{key}, value{std::to_string(value)} ...
Remove unused and untested Payload constructor
Remove unused and untested Payload constructor
C
mit
skystrife/cpr,SuperV1234/cpr,whoshuu/cpr,msuvajac/cpr,skystrife/cpr,msuvajac/cpr,SuperV1234/cpr,SuperV1234/cpr,whoshuu/cpr,skystrife/cpr,msuvajac/cpr,whoshuu/cpr
e9cd0de60b2312738bd0e91fe7855b64f60dde73
libfxcg/misc/random.c
libfxcg/misc/random.c
static unsigned long next = 1; /* RAND_MAX assumed to be 32767 */ int sys_rand(void) { next = next * 1103515245 + 12345; return((unsigned)(next/65536) % 32768); } void sys_srand(unsigned seed) { next = seed; }
static unsigned long next = 1; /* RAND_MAX assumed to be 32767 */ int sys_rand(void) { next = next * 1103515245 + 12345; return((unsigned)(next/65536) % 32768); } void sys_srand(unsigned seed) { next = seed; } __attribute__((weak)) int rand(void) { return sys_rand(); } __attribute__((weak)) void srand(un...
Add alias to sys_rand and sys_srand
Add alias to sys_rand and sys_srand
C
bsd-3-clause
Jonimoose/libfxcg,Jonimoose/libfxcg,Jonimoose/libfxcg
fb8222b63dc2877b058db5483e6fa02ec6f53949
CwlSignal/CwlSignal.h
CwlSignal/CwlSignal.h
// // CwlSignal.h // CwlSignal // // Created by Matt Gallagher on 11/6/16. // Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for CwlSignal. FOUNDATION_EXPORT double CwlSignalVersionNumber; //! Project version string for Cwl...
// // CwlSignal.h // CwlSignal // // Created by Matt Gallagher on 11/6/16. // Copyright © 2016 Matt Gallagher ( http://cocoawithlove.com ). All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for CwlSignal. FOUNDATION_EXPORT double CwlSignalVersionNumber; //! Project version stri...
Remove needless include of Cocoa.
Remove needless include of Cocoa.
C
isc
mattgallagher/CwlSignal,monyschuk/CwlSignal,mattgallagher/CwlSignal
fb3b9d76611d1e7ac1d7896aff469a52d36b6078
src/include/utils/dynahash.h
src/include/utils/dynahash.h
/*------------------------------------------------------------------------- * * dynahash-- * POSTGRES dynahash.h file definitions * * * Copyright (c) 1994, Regents of the University of California * * $Id: dynahash.h,v 1.1 1996/11/09 05:48:28 momjian Exp $ * *------------------------------------------------...
/*------------------------------------------------------------------------- * * dynahash-- * POSTGRES dynahash.h file definitions * * * Copyright (c) 1994, Regents of the University of California * * $Id: dynahash.h,v 1.2 1996/11/14 20:06:39 scrappy Exp $ * *------------------------------------------------...
Fix a comment that wasn't commente'd out
Fix a comment that wasn't commente'd out Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
C
apache-2.0
adam8157/gpdb,Chibin/gpdb,adam8157/gpdb,rubikloud/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,zeroae/postgres-xl,adam8157/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,Quikling/gpdb,chrishajas/gpdb,chrishajas/gpdb,zaksoup/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,y...
dcaf7dfa9b3cc3ff2e0e3915d69cd846c1456ca1
include/portable/pparsefp.h
include/portable/pparsefp.h
#ifndef PPARSEFP_H #define PPARSEFP_H /* * Parses a float or double number and returns the length parsed if * successful. The length argument is of limited value due to dependency * on `strtod` - buf[len] must be accessible and must not be part of * a valid number, including hex float numbers.. * * Unlike strtod...
Add portable floating point parsing with optional grisu3 support
Add portable floating point parsing with optional grisu3 support
C
apache-2.0
skhoroshavin/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc,dvidelabs/flatcc,skhoroshavin/flatcc,dvidelabs/flatcc
fb096213f123f9f4b808e3d2ff57d0c984a27e63
libc/sysdeps/linux/arm/aeabi_memclr.c
libc/sysdeps/linux/arm/aeabi_memclr.c
/* Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
/* Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
Use memset instead of bzero
Use memset instead of bzero
C
lgpl-2.1
joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc
055d3f2df632ffe49a10bd83956755bb71dc1a61
src/lib/ioloop-notify-none.c
src/lib/ioloop-notify-none.c
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE struct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__, const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { r...
/* Copyright (C) 2003 Timo Sirainen */ #include "lib.h" #include "ioloop-internal.h" #ifdef IOLOOP_NOTIFY_NONE #undef io_add_notify struct io *io_add_notify(const char *path __attr_unused__, io_callback_t *callback __attr_unused__, void *context __attr_unused__) { return NULL; } void io_loop_notify_remove(...
Fix for building without notify
Fix for building without notify
C
mit
Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot
50e9733e3c0f5324e09e6b411f97838f9f782a0f
src/fname.h
src/fname.h
#ifndef FHASH_H #define FHASH_H /* Box the filename pointer in a struct, for added typechecking. */ typedef struct fname { char *name; } fname; set *fname_new_set(int sz_factor); fname *fname_new(char *n, size_t len); fname *fname_add(set *wt, fname *f); void fname_free(void *w); #endif
#ifndef FNAME_H #define FNAME_H /* Box the filename pointer in a struct, for added typechecking. */ typedef struct fname { char *name; } fname; set *fname_new_set(int sz_factor); fname *fname_new(char *n, size_t len); fname *fname_add(set *wt, fname *f); void fname_free(void *w); #endif
Fix guards for renamed header files.
Fix guards for renamed header files.
C
isc
silentbicycle/glean,kaostao/glean,kaostao/glean,kaostao/glean,silentbicycle/glean
9933e4bd7dc07943f62a9ae17dddb815c4901972
include/llvm/Transforms/IPO/InlinerPass.h
include/llvm/Transforms/IPO/InlinerPass.h
//===- InlinerPass.h - Code common to all inliners --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------...
Move inliner pass header file.
Move inliner pass header file. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@37664 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Driver...
25706992c211500250adb796b4e39ab7710326e0
include/visionaray/detail/spd/blackbody.h
include/visionaray/detail/spd/blackbody.h
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_DETAIL_SPD_BLACKBODY_H #define VSNRAY_DETAIL_SPD_BLACKBODY_H 1 #include <cmath> #include "../macros.h" namespace visionaray { //----------------------------------------------------------------------...
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_DETAIL_SPD_BLACKBODY_H #define VSNRAY_DETAIL_SPD_BLACKBODY_H 1 #include <cmath> #include "../macros.h" namespace visionaray { //----------------------------------------------------------------------...
Use class for non-trivial types
Use class for non-trivial types
C
mit
szellmann/visionaray,szellmann/visionaray
6def8cef8c661ed9b68974ccb4871645efdafa2b
src/DeviceInterfaces/Networking.Sntp/nf_networking_sntp.h
src/DeviceInterfaces/Networking.Sntp/nf_networking_sntp.h
// // Copyright (c) 2018 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #ifndef _NF_NETWORKING_SNTP_H_ #define _NF_NETWORKING_SNTP_H_ #include <nanoCLR_Interop.h> #include <nanoCLR_...
// // Copyright (c) 2018 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #ifndef _NF_NETWORKING_SNTP_H_ #define _NF_NETWORKING_SNTP_H_ #include <nanoCLR_Interop.h> #include <nanoCLR_...
Fix headers so SNTP builds on Esp32
Fix headers so SNTP builds on Esp32
C
mit
Eclo/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,nanoframework/nf-interpreter,nanoframework/nf-interpreter,nanoframework/nf-interpreter
7ae9b93a7d8f52dd01682b7c2e6df89f91a0cd29
include/llvm/Transforms/Instrumentation/TraceValues.h
include/llvm/Transforms/Instrumentation/TraceValues.h
//===- llvm/Transforms/Instrumentation/TraceValues.h - Tracing ---*- C++ -*--=// // // Support for inserting LLVM code to print values at basic block and method // exits. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H #define LL...
//===- llvm/Transforms/Instrumentation/TraceValues.h - Tracing ---*- C++ -*--=// // // Support for inserting LLVM code to print values at basic block and method // exits. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_TRACEVALUES_H #define LL...
Refactor trace values to work as a proper pass. Before it used to add methods while the pass was running which was a no no. Now it adds the printf method at pass initialization
Refactor trace values to work as a proper pass. Before it used to add methods while the pass was running which was a no no. Now it adds the printf method at pass initialization git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1456 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPU...
a0a4aa34596d60f28287fc386f598608c15ae680
webkit/support/webkit_support_gfx.h
webkit/support/webkit_support_gfx.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #include <string> #include <vector> // TODO(darin): Remove...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_ #include <string> #include <vector> namespace webkit_suppo...
Remove an include which has been upstreamed to ImageDiff.cpp.
Remove an include which has been upstreamed to ImageDiff.cpp. BUG=none TEST=none Review URL: http://codereview.chromium.org/8392031 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@107382 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,yi...
e1467dbfd5d1068c2dd69511f16bc218475a9396
test/Sema/align-arm-apcs-gnu.c
test/Sema/align-arm-apcs-gnu.c
// RUN: %clang_cc1 -triple arm-unknown-unknown -target-abi apcs-gnu -fsyntax-only -verify %s struct s0 { double f0; int f1; }; char chk0[__alignof__(struct s0) == 4 ? 1 : -1]; double g1; short chk1[__alignof__(g1) == 4 ? 1 : -1]; short chk2[__alignof__(double) == 4 ? 1 : -1]; long long g2; short chk1[__alignof__(g...
// RUN: %clang_cc1 -triple arm-unknown-unknown -target-abi apcs-gnu -fsyntax-only -verify %s struct s0 { double f0; int f1; }; char chk0[__alignof__(struct s0) == 4 ? 1 : -1];
Fix r135934. Rename was intended, but without additional tests for double.
Fix r135934. Rename was intended, but without additional tests for double. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@135935 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
254b2638962bd632aa52b3102caf418c43ac25b5
test/Driver/masm.c
test/Driver/masm.c
// REQUIRES: x86-registered-target // RUN: %clang -target i386-unknown-linux -masm=intel %s -S -o - | FileCheck --check-prefix=CHECK-INTEL %s // RUN: %clang -target i386-unknown-linux -masm=att %s -S -o - | FileCheck --check-prefix=CHECK-ATT %s // RUN: not %clang -target i386-unknown-linux -masm=somerequired %s -S -o -...
// RUN: %clang -target i386-unknown-linux -masm=intel -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-INTEL %s // RUN: %clang -target i386-unknown-linux -masm=att -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-ATT %s // RUN: %clang -target i386-unknown-linux -S -masm=somerequired %s -### 2>&1 | FileCheck --check-pre...
Make this test target independent.
Make this test target independent. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@208725 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
6474370f2e67ed392c4685c98f2eb88dce79cff6
src/python_threads.h
src/python_threads.h
#ifndef PYTHON_THREADS #define PYTHON_THREADS #ifdef __EMSCRIPTEN__ static inline void init_python_threads() { } #else #include "Python.h" static inline void init_python_threads() { PyEval_InitThreads(); } #endif #endif
#ifndef PYTHON_THREADS #define PYTHON_THREADS #ifdef __EMSCRIPTEN__ static inline void init_python_threads(void) { } #else #include "Python.h" static inline void init_python_threads(void) { PyEval_InitThreads(); } #endif #endif
Add prototype to prevent warning.
Add prototype to prevent warning.
C
lgpl-2.1
renpy/pygame_sdl2,renpy/pygame_sdl2,renpy/pygame_sdl2,renpy/pygame_sdl2
6cbea9ce7e6598d25648d09987309dafeb794179
shell/android/platform_view_android.h
shell/android/platform_view_android.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. #ifndef SKY_SHELL_PLATFORM_VIEW_ANDROID_H_ #define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_ #include "sky/shell/platform_view.h" struct ANativeWindow; namesp...
// 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. #ifndef SKY_SHELL_PLATFORM_VIEW_ANDROID_H_ #define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_ #include "sky/shell/platform_view.h" struct ANativeWindow; namesp...
Stop SkyShell from crashing on startup
Stop SkyShell from crashing on startup R=chinmaygarde@google.com Review URL: https://codereview.chromium.org/1178773002.
C
bsd-3-clause
aam/engine,flutter/engine,chinmaygarde/flutter_engine,tvolkert/engine,takaaptech/sky_engine,mxia/engine,chinmaygarde/flutter_engine,jason-simmons/flutter_engine,jason-simmons/flutter_engine,iansf/sky_engine,takaaptech/sky_engine,qiankunshe/sky_engine,mikejurka/engine,chinmaygarde/flutter_engine,krisgiesing/sky_engine,d...
dfc745d620ad31430ce88ba92007c1289061c0fc
libopenspotify/browse.h
libopenspotify/browse.h
#ifndef LIBOPENSPOTIFY_BROWSE_H #define LIBOPENSPOTIFY_BROWSE_H #include "buf.h" #include "sp_opaque.h" #define BROWSE_RETRY_TIMEOUT 30 int browse_process(sp_session *session, struct request *req); #endif
#ifndef LIBOPENSPOTIFY_BROWSE_H #define LIBOPENSPOTIFY_BROWSE_H #include <spotify/api.h> #include "buf.h" #include "request.h" #define BROWSE_RETRY_TIMEOUT 30 int browse_process(sp_session *session, struct request *req); #endif
Include spotify/api.h and request.h instead of sp_opaque.h
Include spotify/api.h and request.h instead of sp_opaque.h
C
bsd-2-clause
noahwilliamsson/openspotify,noahwilliamsson/openspotify
ee38cfbb3217cce85021efe883916823dbbd0f8d
tests/regression/24-octagon/18-problem-signed-unsigned-overflow.c
tests/regression/24-octagon/18-problem-signed-unsigned-overflow.c
// PARAM: --sets solver td3 --set ana.activated "['base','threadid','threadflag','mallocWrapper','octApron']" // Example from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/bitvector-regression/signextension-1.c #include "stdio.h" #include <assert.h> int main() { // This test is a part taken from of 24 13 ...
Add a test for octagon
Add a test for octagon
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
490fabb3cf7bd259a4d2a26cfece0c0c70564e37
src/loader.h
src/loader.h
/* * Copyright (c) 2014, 2016 Scott Bennett <scottb@fastmail.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS...
/* * Written by Scott Bennett. * Public domain. */ #ifndef LOADER_H #define LOADER_H #include "bool.h" bool load(const char * fileName); #endif /* LOADER_H */
Move this file into public domain; it's too simple to copyright...
Move this file into public domain; it's too simple to copyright...
C
isc
sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS
e2ef60a90646606999399bf1d7de7c189d6c62ca
test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c
test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c
// Ensure compatiblity of UBSan unreachable with ASan in the presence of // noreturn functions // RUN: %clang -O2 -fsanitize=address,unreachable %s -emit-llvm -S -o - | FileCheck %s // REQUIRES: ubsan-asan void bar(void) __attribute__((noreturn)); void foo() { bar(); } // CHECK-LABEL: define void @foo() // CHECK: ...
// Ensure compatiblity of UBSan unreachable with ASan in the presence of // noreturn functions // RUN: %clang -O2 -fPIC -fsanitize=address,unreachable %s -emit-llvm -S -o - | FileCheck %s // REQUIRES: ubsan-asan void bar(void) __attribute__((noreturn)); void foo() { bar(); } // CHECK-LABEL: define void @foo() // CH...
Fix test when isPICDefault() returns false after rCTE352003
[ubsan] Fix test when isPICDefault() returns false after rCTE352003 git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@352013 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
d31d8165f64cd4047a31ff5d5dd831829b1a4ad3
Sources/SPTPersistentCacheResponse+Private.h
Sources/SPTPersistentCacheResponse+Private.h
/* * Copyright (c) 2016 Spotify AB. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License,...
/* * Copyright (c) 2016 Spotify AB. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License,...
Add missing 'extern' when declaring NSStringFromSPTPersistentCacheResponseCode in header
Add missing 'extern' when declaring NSStringFromSPTPersistentCacheResponseCode in header
C
apache-2.0
chrisbtreats/SPTPersistentCache,FootballAddicts/SPTPersistentCache,iOSCowboy/SPTPersistentCache,iOSCowboy/SPTPersistentCache,FootballAddicts/SPTPersistentCache,chrisbtreats/SPTPersistentCache,spotify/SPTPersistentCache,spotify/SPTPersistentCache,chrisbtreats/SPTPersistentCache,FootballAddicts/SPTPersistentCache,spotify...
4d0af5772e2a6865ce246e4a191279663b70d70b
simulator/simulator.h
simulator/simulator.h
/* * simulator.h - interface for simulator * Copyright 2018 MIPT-MIPS */ #ifndef SIMULATOR_H #define SIMULATOR_H #include <memory.h> #include <infra/types.h> #include <infra/log.h> class Simulator : public Log { public: Simulator( bool log = false) : Log( log) {} virtual void run(const std::string& t...
/* * simulator.h - interface for simulator * Copyright 2018 MIPT-MIPS */ #ifndef SIMULATOR_H #define SIMULATOR_H #include <memory.h> #include <infra/types.h> #include <infra/log.h> class Simulator : public Log { public: explicit Simulator( bool log = false) : Log( log) {} virtual void run(const std::...
Add explicit specifier to Simulator ctor
Add explicit specifier to Simulator ctor
C
mit
MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015
30e94c0aed4e84bd6a04691329f396d89bd739fb
sys/sparc64/include/idprom.h
sys/sparc64/include/idprom.h
/* * Copyright (c) 1993 Adam Glass * 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 condition...
Add a structure defintion for the id prom contents.
Add a structure defintion for the id prom contents. Obtained from: NetBSD
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
ea3949ce981b558e47c28ca09a56095368ddf34a
src/memdumper.c
src/memdumper.c
#include <stdio.h> #include "memdumper.h" static const char HEX[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', }; void byteToHex(char byte, char* output) { output[0] = HEX[(byte >> 4) & 0x0F]; output[1] = HEX[byte & 0x0F]; } void dumpMemoryAsHex(char* da...
#include <stdio.h> #include "memdumper.h" static const char HEX[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', }; void byteToHex(char byte, char* output) { output[0] = HEX[(byte >> 4) & 0x0F]; output[1] = HEX[byte & 0x0F]; } void dumpMemoryAsHex(char* da...
Make hex string buffer guarantee a null terminator
Make hex string buffer guarantee a null terminator
C
mit
drdanick/apricos-fs-manager
8518e74f3e24b136c627534e30b0068836785575
include/llvm/Support/ValueHolder.h
include/llvm/Support/ValueHolder.h
//===-- llvm/Support/ValueHolder.h - Wrapper for Value's --------*- C++ -*-===// // // This class defines a simple subclass of User, which keeps a pointer to a // Value, which automatically updates when Value::replaceAllUsesWith is called. // This is useful when you have pointers to Value's in your pass, but the // poi...
//===-- llvm/Support/ValueHolder.h - Wrapper for Value's --------*- C++ -*-===// // // This class defines a simple subclass of User, which keeps a pointer to a // Value, which automatically updates when Value::replaceAllUsesWith is called. // This is useful when you have pointers to Value's in your pass, but the // poi...
Add more methods to be more value-like
Add more methods to be more value-like git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@8074 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,d...
999de3c3fd59c197df0b12e3c11581560a07bfd4
tls/gnutls/gnutls-module.c
tls/gnutls/gnutls-module.c
/* GIO - GLib Input, Output and Streaming Library * * Copyright 2010 Red Hat, Inc. * * 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 of the License, or (at your ...
/* GIO - GLib Input, Output and Streaming Library * * Copyright 2010 Red Hat, Inc. * * 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 of the License, or (at your ...
Fix unresolved symbol when pkcs11 is disabled
gnutls: Fix unresolved symbol when pkcs11 is disabled * Error would occur: libgiognutls.so: undefined symbol: \ g_tls_backend_gnutls_pkcs11_register
C
lgpl-2.1
Distrotech/glib-networking,GNOME/glib-networking,Distrotech/glib-networking,GNOME/glib-networking,GNOME/glib-networking,Distrotech/glib-networking
f34ee1e4aa493b3192226c77f6c7041efc47c6df
project/include/ByteArray.h
project/include/ByteArray.h
#ifndef NME_BYTE_ARRAY_H #define NME_BYTE_ARRAY_H #include <nme/Object.h> #include <nme/QuickVec.h> #include "Utils.h" namespace nme { // If you put this structure on the stack, then you do not have to worry about GC. // If you store this in a heap structure, then you will need to use GC roots for mValue... struct ...
#ifndef NME_BYTE_ARRAY_H #define NME_BYTE_ARRAY_H #include <nme/Object.h> #include <nme/QuickVec.h> #include "Utils.h" #include <hx/CFFI.h> namespace nme { // If you put this structure on the stack, then you do not have to worry about GC. // If you store this in a heap structure, then you will need to use GC roots ...
Use correct cffi type for 'value'
Use correct cffi type for 'value'
C
mit
thomasuster/NME,haxenme/nme,haxenme/nme,haxenme/nme,haxenme/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,madrazo/nme
1dab0d1203f99f5ee5d3d8aa4e2c683ec92e80ca
verification/global_ocean.cs32x15/code_ad/GMREDI_OPTIONS.h
verification/global_ocean.cs32x15/code_ad/GMREDI_OPTIONS.h
C $Header$ C $Name$ C CPP options file for GM/Redi package C C Use this file for selecting options within the GM/Redi package C #ifndef GMREDI_OPTIONS_H #define GMREDI_OPTIONS_H #include "PACKAGES_CONFIG.h" #ifdef ALLOW_GMREDI #include "CPP_OPTIONS.h" C Designed to simplify the Ajoint code: C exclude the clipping/...
Add a missing config header
Add a missing config header
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
122eaf409a0203d8f6e565e4cf361b7ca8f2844a
tests/sv-comp/observer/path_nofun_true-unreach-call.c
tests/sv-comp/observer/path_nofun_true-unreach-call.c
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern int __VERIFIER_nondet_int(); int main() { int x, y; if (__VERIFIER_nondet_int()) { x = 0; y = 1; } else { x = 1; y = 0; } // if (!(x + y == 1)) if (x + y != 1) __VERIFIER_e...
Remove phases command line from SV-COMP observer example
Remove phases command line from SV-COMP observer example
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4cc782bd715a9202b2b6eb1190fbf66eaab3d8f1
yalex/src/demo.c
yalex/src/demo.c
#include <stdio.h> #include <string.h> #include "yalex.h" void replMessageCallback(const char* ptr) { if (ptr && strlen(ptr)>0) { printf("%s\n", ptr); } } int yalex(void) { yalex_world world; yalex_init(&world, replMessageCallback); replMessageCallback("welcome"); char word[256]; /**/ ...
#include <stdio.h> #include <string.h> #include "yalex.h" void replMessageCallback(const char* ptr) { if (ptr && strlen(ptr)>0) { printf("%s\n", ptr); } } int yalex(void) { yalex_world world; yalex_init(&world, replMessageCallback); replMessageCallback("welcome"); char word[256]; /**/ ...
Add register alias for verbosity and readability?
Add register alias for verbosity and readability?
C
mit
AlexanderBrevig/yalex
f2d28e13a2ddc7dba28f53e9a7e9dfe4edd85859
Runtime/Rendering/ConstantBufferDX11.h
Runtime/Rendering/ConstantBufferDX11.h
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); template <typename Buffer> ...
#pragma once #include "Rendering/BufferDX11.h" #include "Rendering/ShaderDX11.h" namespace Mile { class MEAPI ConstantBufferDX11 : public BufferDX11 { public: ConstantBufferDX11(RendererDX11* renderer); ~ConstantBufferDX11(); bool Init(unsigned int size); template <typename BufferType...
Modify constant buffer init method template type name
Modify constant buffer init method template type name
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
dd3ef21ed70fa4d34f6713f83089c821b2707a60
Application.h
Application.h
#pragma once #include <SDL2/SDL.h> #include <string> class Application { private: // Main loop flag bool quit; // The window SDL_Window* window; // The window renderer SDL_Renderer* renderer; // The background color SDL_Color backgroundColor; // Window properties std::string title...
#pragma once #include <SDL2/SDL.h> #include <string> class Application { private: // Main loop flag bool quit; // The window SDL_Window* window; // The window renderer SDL_Renderer* renderer; // The background color SDL_Color backgroundColor; // Window properties std::string title...
Add getters for window constants
Add getters for window constants
C
mit
gldraphael/SdlTemplate
76f99cdff282275195f86b132b2daab6470900df
CreamMonkey.h
CreamMonkey.h
#import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
/* * Copyright (c) 2006 KATO Kazuyoshi <kzys@8-p.info> * This source code is released under the MIT license. */ #import <Cocoa/Cocoa.h> @interface CreamMonkey : NSObject { } @end
Add copyright and license header.
Add copyright and license header.
C
mit
kzys/greasekit,sohocoke/greasekit,tbodt/greasekit,chrismessina/greasekit
181aa9e0febf808f95718c3eea1f74d9fdc0086c
QtVmbViewer.h
QtVmbViewer.h
#ifndef QTVMBVIEWER_H #define QTVMBVIEWER_H // Qt dependencies #include <QWidget> #include <QLabel> #include <QSlider> // Local dependency #include "VmbCamera.h" // Qt widget to display the images from an Allied Vision camera through the Vimba SDK class QtVmbViewer : public QWidget { // Macro to use Qt signals and s...
#ifndef QTVMBVIEWER_H #define QTVMBVIEWER_H // Qt dependencies #include <QWidget> #include <QLabel> #include <QSlider> // Local dependency #include "VmbCamera.h" // Qt widget to display the images from an Allied Vision camera through the Vimba SDK class QtVmbViewer : public QWidget { // Macro to use Qt signals and s...
Change to private Qt slots.
Change to private Qt slots.
C
mit
microy/QtVmbViewer
0374498753335e45920f20c1a3b224f430bb82f1
Sources/Faraday.h
Sources/Faraday.h
/* Faraday Faraday.h * * Copyright © 2015, 2016, Roy Ratcliffe, Pioneering Software, United Kingdom * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the “Software”), to deal * in the Software without restriction, including with...
/* Faraday Faraday.h * * Copyright © 2015, 2016, Roy Ratcliffe, Pioneering Software, United Kingdom * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the “Software”), to deal * in the Software without restriction, including with...
Use @import in Objective-C header
Use @import in Objective-C header
C
mit
royratcliffe/Faraday,royratcliffe/Faraday
c7e71ee6111ca152d16c317965ffb29a404ad4c4
test/wasm/soft/float/floatunditf.c
test/wasm/soft/float/floatunditf.c
#include "src/math/reinterpret.h" #include <stdint.h> #include <assert.h> uint64_t __fixunstfdi(long double); static _Bool run(uint64_t a) { return a == __fixunstfdi(a); } int main(void) { const uint64_t delta = 0x0008D46BA87B5A22; for (uint64_t i = 0x3FFFFFFFFFFFFFFF; i < 0x4340000000000000; i += delta...
Test uint64_t -> long double
Test uint64_t -> long double
C
mit
jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic
908a9539d9beb242ab247b290a118dd1c1e6414f
backend/src/libocl/tmpl/ocl_defines.tmpl.h
backend/src/libocl/tmpl/ocl_defines.tmpl.h
#ifndef __OCL_COMMON_DEF_H__ #define __OCL_COMMON_DEF_H__ #define __OPENCL_VERSION__ 110 #define __CL_VERSION_1_0__ 100 #define __CL_VERSION_1_1__ 110 #define __ENDIAN_LITTLE__ 1 #define __IMAGE_SUPPORT__ 1 #define __kernel_exec(X, TYPE) __kernel __attribute__((work_group_size_hint(X,1,1))) \ ...
Add the ocl_defines header file into libocl
Add the ocl_defines header file into libocl This file will be used to define some common defines for both CL and the backend source code. Signed-off-by: Junyan He <8f73a735c668918c9613b750d3a88ebf2489599f@linux.intel.com> Reviewed-by: Zhigang Gong <e04a7b9b70b1e4c6318cf117dcd1a9056e14b97a@intel.com>
C
lgpl-2.1
wdv4758h/beignet,wdv4758h/beignet,zhenyw/beignet,zhenyw/beignet,wdv4758h/beignet,freedesktop-unofficial-mirror/beignet,zhenyw/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,zhenyw/beignet,wdv4758h/beignet
bae6f787c319c9b2cafba0e5fd0027c5d3903fc6
src/gluonvarianttypes.h
src/gluonvarianttypes.h
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 3 of the License, or (...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 3 of the License, or (...
Make the varianttypes work more pleasantly - now you simply include the file, and stuff happens magically! (that is, Eigen::Vector3d is registered as a QVariant now... more to come!)
Make the varianttypes work more pleasantly - now you simply include the file, and stuff happens magically! (that is, Eigen::Vector3d is registered as a QVariant now... more to come!)
C
lgpl-2.1
pranavrc/example-gluon,cgaebel/gluon,cgaebel/gluon,cgaebel/gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,cgaebel/gluon,KDE/gluon
66e5d79b94fc671581ad3ca63630d9462831a6fa
libyaul/scu/scu-internal.h
libyaul/scu/scu-internal.h
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <mrko@eecs.berkeley.edu> */ #ifndef _SCU_INTERNAL_H_ #define _SCU_INTERNAL_H_ #include <inttypes.h> #include <stddef.h> /* Write and read directly to specified address */ #define MEMORY_WRITE(t, x, y) (*(volatile uint ## t ##...
Add global SCU internal header file
Add global SCU internal header file
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
64dfbcfad0d2b4820c53110f9622ab6ca726a123
gram/rsl_assist/source/globus_rsl_assist.h
gram/rsl_assist/source/globus_rsl_assist.h
/****************************************************************************** globus_rsl_assist.h Description: This header contains the interface prototypes for the rsl_assist library. CVS Information: $Source$ $Date$ $Revision$ $Author$ ****************************************************...
/* * globus_rsl_assist.h * * Description: * * This header contains the interface prototypes for the rsl_assist library. * * CVS Information: * * $Source$ * $Date$ * $Revision$ * $Author$ ******************************************************************************/ #ifndef _GLOBUS_RSL_ASSIST_INCLUDE_G...
Make comment conform to coding standard...
Make comment conform to coding standard...
C
apache-2.0
gridcf/gct,globus/globus-toolkit,globus/globus-toolkit,gridcf/gct,globus/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,gridcf/gct,gridcf/gct,ellert/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,gridcf/gct,globus/globus-toolkit,gridcf/gct,globus/globu...
593c4ae13535e52dab15af80618dbee90a4f818c
tests/regression/29-svcomp/04-lustre-minimal.c
tests/regression/29-svcomp/04-lustre-minimal.c
// PARAM: --enable ana.int.interval --enable ana.int.def_exc // issue #120 #include <assert.h> int main() { // should be LP64 unsigned long n = 16; unsigned long size = 4912; assert(!(0xffffffffffffffffUL / size < n)); // UNKNOWN (for now) }
// PARAM: --enable ana.int.interval --enable ana.int.def_exc // issue #120 #include <assert.h> int main() { // should be LP64 unsigned long n = 16; unsigned long size = 4912; assert(!(0xffffffffffffffffUL / size < n)); }
Remove UNKNOWN annotation from assert that now succeeds
Testcase: Remove UNKNOWN annotation from assert that now succeeds
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d14bbc3782514a0488f776807005e40db82cc70f
subversion/libsvn_ra/util.c
subversion/libsvn_ra/util.c
/* * util.c: Repository access utility routines. * * ==================================================================== * Copyright (c) 2007 CollabNet. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The term...
Make 'svn mergeinfo' and its underlying APIs error out when talking to a pre-1.5 repository.
Make 'svn mergeinfo' and its underlying APIs error out when talking to a pre-1.5 repository. This change includes tests capable of being run against either a 1.4 or 1.5 server (and was run against both). [ Note: All but subversion/libsvn_ra/util.c was committed in r28172. ] * TODO-1.5-branch Remove TODO item comp...
C
apache-2.0
jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion
84d607040b1df3b151aabb226122bc2d29f2d74a
document/src/vespa/document/repo/document_type_repo_factory.h
document/src/vespa/document/repo/document_type_repo_factory.h
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> #include <mutex> #include <map> namespace document { namespace internal { class InternalDocumenttypesType; } class DocumentTypeRepo; /* * Factory class for doc...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <memory> #include <mutex> #include <map> namespace document { namespace internal { class InternalDocumenttypesType; } class DocumentTypeRepo; /* * Factory class for doc...
Add comment for document::DocumentTypeRepoFactory::make method.
Add comment for document::DocumentTypeRepoFactory::make method.
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
0ed54c92c849c3c62f6a61877472f1495ecd2025
Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c
Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/EMAC_ISR.c
#include "FreeRTOS.h" #include "Semphr.h" #include "task.h" /* The interrupt entry point. */ void vEMAC_ISR_Wrapper( void ) __attribute__((naked)); /* The handler that does the actual work. */ void vEMAC_ISR_Handler( void ); extern xSemaphoreHandle xEMACSemaphore; void vEMAC_ISR_Handler( void ) { po...
#include "FreeRTOS.h" #include "semphr.h" #include "task.h" /* The interrupt entry point. */ void vEMAC_ISR_Wrapper( void ) __attribute__((naked)); /* The handler that does the actual work. */ void vEMAC_ISR_Handler( void ); extern xSemaphoreHandle xEMACSemaphore; void vEMAC_ISR_Handler( void ) { po...
Correct case of include file to build on Linux.
Correct case of include file to build on Linux. git-svn-id: 43aea61533866f88f23079d48f4f5dc2d5288937@402 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
C
apache-2.0
Psykar/kubos,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos,kubostech/KubOS,Psykar/kubos,Psykar/kubos
e77d038d2bed3605d18c83152402a5ddfd7255dd
Classes/SloppySwiper.h
Classes/SloppySwiper.h
// // SloppySwiper.h // // Created by Arkadiusz on 29-05-14. // #import <Foundation/Foundation.h> @interface SloppySwiper : NSObject <UINavigationControllerDelegate> // Designated initializer if the class isn't set in the Interface Builder. - (instancetype)initWithNavigationController:(UINavigationController *)nav...
// // SloppySwiper.h // // Created by Arkadiusz on 29-05-14. // #import <Foundation/Foundation.h> @interface SloppySwiper : NSObject <UINavigationControllerDelegate> /// Gesture recognizer used to recognize swiping to the right. @property (weak, nonatomic) UIPanGestureRecognizer *panRecognizer; /// Designated ini...
Improve comments in the header file
Improve comments in the header file
C
mit
toc2menow/SloppySwiper,ssowonny/SloppySwiper,stephenbalaban/SloppySwiper,fastred/SloppySwiper,msdgwzhy6/SloppySwiper,igroomgrim/SloppySwiper,barrettj/SloppySwiper,yusuga/SloppySwiper,xuvw/SloppySwiper
ab734ec5a64b364fcf8aff3d91eea860887afc42
onnxruntime/core/framework/tensor_external_data_info.h
onnxruntime/core/framework/tensor_external_data_info.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <string> #include "core/common/status.h" #include "core/graph/onnx_protobuf.h" #include "core/session/onnxruntime_c_api.h" namespace onnxruntime { class ExternalDataInfo { private: std::basic_strin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <string> #include "core/common/status.h" #include "core/graph/onnx_protobuf.h" #include "core/session/onnxruntime_c_api.h" namespace onnxruntime { class ExternalDataInfo { private: std::basic_strin...
Fix a bug in ExternalDataInfo
Fix a bug in ExternalDataInfo
C
mit
microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime
ec2bf942662f8a8f1049b80208192691b64da6a5
React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h
React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <React/RCTViewComponentView.h> NS_ASSUME_NONNULL_BEGIN /** * UIView class for root <Shimmering...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <React/RCTViewComponentView.h> NS_ASSUME_NONNULL_BEGIN /** * UIView class for root <ActivityIn...
Fix incorrect information in comment
Fix incorrect information in comment Summary: `RCTActivityIndicatorViewComponentView` is a component for `ActivityIndicator` not for `ShimmeringView`. Reviewed By: cpojer Differential Revision: D16360505 fbshipit-source-id: d6f7685eea24060c9e1b43d5782a65396d6c375e
C
bsd-3-clause
exponentjs/react-native,javache/react-native,arthuralee/react-native,janicduplessis/react-native,janicduplessis/react-native,hoangpham95/react-native,javache/react-native,facebook/react-native,hammerandchisel/react-native,janicduplessis/react-native,facebook/react-native,myntra/react-native,exponent/react-native,facebo...
5bb717efd8b6fab5fa7bc324dce6b0a8e4261f86
cc1/tests/test006.c
cc1/tests/test006.c
/* name: TEST006 description: Basic test for if output: G1 M c F1 X2 F1 main G2 F1 main { - j L2 #I0 #I0 =I yI #I1 j L3 L2 j L4 #I0 #I0 =I j L5 L4 j L6 #I1 #I0 =I j L7 G1 MI #I0 =I yI #I1 j L8 L7 yI #I0 L8 j L9 L6 yI #I1 L9 L5 L3 yI #I1 } */ char c; int main() { if(0) { return 1; } else if(0) { /* ...
Add test of IF statement
Add test of IF statement
C
isc
k0gaMSX/scc,k0gaMSX/kcc,8l/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc
03a057fa63e6f59cab6180bdf530558516c9da8d
runtime/test/tasking/nested_task_creation.c
runtime/test/tasking/nested_task_creation.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <omp.h> #include "omp_my_sleep.h" /* * This test creates tasks that themselves create a new task. * The runtime has to take care that they are correctly freed. */ int main() { #pragma omp task { #pragma omp task { my_sleep( 0.1 ); } ...
Add test case for nested creation of tasks
Add test case for nested creation of tasks For discussion in D23115 git-svn-id: f99161ee8ccfe2101cbe1bdda2220bce2ed25485@277730 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp
817f72d680828bb848099adf69fd35c14ff2e182
arch/m68k/include/asm/virtconvert.h
arch/m68k/include/asm/virtconvert.h
#ifndef __VIRT_CONVERT__ #define __VIRT_CONVERT__ /* * Macros used for converting between virtual and physical mappings. */ #ifdef __KERNEL__ #include <linux/compiler.h> #include <linux/mmzone.h> #include <asm/setup.h> #include <asm/page.h> /* * Change virtual addresses to physical addresses and vv. */ static i...
#ifndef __VIRT_CONVERT__ #define __VIRT_CONVERT__ /* * Macros used for converting between virtual and physical mappings. */ #ifdef __KERNEL__ #include <linux/compiler.h> #include <linux/mmzone.h> #include <asm/setup.h> #include <asm/page.h> /* * Change virtual addresses to physical addresses and vv. */ static i...
Correct page_to_phys when PAGE_OFFSET is non-zero.
m68knommu: Correct page_to_phys when PAGE_OFFSET is non-zero. The definition of page_to_phys for nommu produces an incorrect value when PAGE_OFFSET is non-zero. The nommu version of page_to_pfn works correctly for non-zero PAGE_OFFSET, so use that instead. Signed-off-by: Steven King <a01a09c207e33d02e60d4b67c9ce2ea5...
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
ff7f701a95cc88bd107de6b9082e398106482111
include/Support/DataTypes.h
include/Support/DataTypes.h
//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// // // This file contains definitions to figure out the size of _HOST_ data types. // This file is important because different host OS's define different macros, // which makes portability tough. This file exports the following definitions...
//===-- include/Support/DataTypes.h - Define fixed size types ----*- C++ -*--=// // // This file contains definitions to figure out the size of _HOST_ data types. // This file is important because different host OS's define different macros, // which makes portability tough. This file exports the following definitions...
Add better linux support by using the right macro. This still should be autoconfiscated, but for now this is sufficient.
Add better linux support by using the right macro. This still should be autoconfiscated, but for now this is sufficient. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3701 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,l...
b5ba1b31c793185d6e0ee62c1928c84bcff9818e
include/asm-sparc64/setup.h
include/asm-sparc64/setup.h
/* * Just a place holder. */ #ifndef _SPARC64_SETUP_H #define _SPARC64_SETUP_H #define COMMAND_LINE_SIZE 256 #endif /* _SPARC64_SETUP_H */
/* * Just a place holder. */ #ifndef _SPARC64_SETUP_H #define _SPARC64_SETUP_H #define COMMAND_LINE_SIZE 2048 #endif /* _SPARC64_SETUP_H */
Increase command line size to 2048 like other arches.
[SPARC64]: Increase command line size to 2048 like other arches. Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,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/Program...
ccf1eb48c779fc3ebeda4fdd90eef1132f8a9734
include/ygo/data/CardData.h
include/ygo/data/CardData.h
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
#ifndef YGO_DATA_CARDDATA_H #define YGO_DATA_CARDDATA_H #include <string> #include "CardType.h" namespace ygo { namespace data { struct StaticCardData { std::string name; CardType cardType; // monster only Attribute attribute; MonsterType monsterType; Type type; MonsterType monsterAbilit...
Clarify data in static card data
Clarify data in static card data
C
mit
DeonPoncini/ygodata
0676fd9376ac95da74f5091fd21ac93769b2275f
arch/amiga/isa/isa_machdep.c
arch/amiga/isa/isa_machdep.c
/* $OpenBSD: isa_machdep.c,v 1.4 1999/03/05 19:17:44 niklas Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist * 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 sour...
Add forgotten file, espie@ has checked it compiles
Add forgotten file, espie@ has checked it compiles
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
1d76413d676c592f8d0bd1eb288f0e69fff61f7e
pq-crypto/pq-random.c
pq-crypto/pq-random.c
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
Enable compiling with older versions of GCC
Enable compiling with older versions of GCC
C
apache-2.0
awslabs/s2n,colmmacc/s2n,wcs1only/s2n,colmmacc/s2n,PKRoma/s2n,gibson-compsci/s2n,wcs1only/s2n,awslabs/s2n,alexeblee/s2n,raycoll/s2n,PKRoma/s2n,wcs1only/s2n,gibson-compsci/s2n,raycoll/s2n,colmmacc/s2n,gibson-compsci/s2n,raycoll/s2n,awslabs/s2n,PKRoma/s2n,wcs1only/s2n,colmmacc/s2n,PKRoma/s2n,awslabs/s2n,raycoll/s2n,alexe...
c3bc56209f8df216b4cfc6db86b36b1429fac35b
git_test.c
git_test.c
#include <git2.h> #include <stdio.h> int main(int argc, char const *argv[]) { git_libgit2_init(); const char *GIT_REPO_PATH = "."; git_repository *repo = NULL; git_repository_open(&repo, GIT_REPO_PATH); git_revwalk *walker = NULL; git_revwalk_new(&walker, repo); git_revwalk_sorting(walker, GIT_SORT_NONE); ...
Add libgit2 example to print all commit history inside current directory.
Add libgit2 example to print all commit history inside current directory. Compile with: gcc git_test.c -o git_test -lgit2
C
apache-2.0
tisma/ctorious,tisma/ctorious
de0afa4fa188b5659acf2859848e644e0864cdc5
hal1.h
hal1.h
#ifndef HAL1_H #define HAL1_H // Configurable constants extern int const MAIN_MOTOR_PWM_TOP; extern int const MAIN_MOTOR_BRAKE_SPEED; extern int const MAIN_MOTOR_MIN_SPEED; extern int const MAIN_MOTOR_MED_SPEED; extern int const MAIN_MOTOR_MAX_SPEED; extern int const MAGNET_OPEN_WAIT; void init(void); void main_mot...
#ifndef HAL1_H #define HAL1_H // Configurable constants extern int const MAIN_MOTOR_PWM_TOP; extern int const MAIN_MOTOR_BRAKE_SPEED; extern int const MAIN_MOTOR_MIN_SPEED; extern int const MAIN_MOTOR_MED_SPEED; extern int const MAIN_MOTOR_MAX_SPEED; extern int const MAGNET_OPEN_WAIT; void init(void); void main_mot...
Add speed to aux motor functions.
Add speed to aux motor functions.
C
unlicense
plzz/ovisysteemi,plzz/ovisysteemi
ebf93089a14d4ee802a317a78225361f6c61fe14
base_sheet.h
base_sheet.h
#include "helper.h" #include <string> // string #include <stdlib.h> // srand, rand #include <time.h> // time - for rand seed #include <algorithm> // sort using namespace std; class BaseSheet { protected: int _level; int _str; int _dex; int _con; int _int; int _wis; ...
#include "helper.h" #include <string> // string #include <stdlib.h> // srand, rand #include <time.h> // time - for rand seed #include <algorithm> // sort #include <functional> // std::greater for mac osx using namespace std; class BaseSheet { protected: int _level; int _str; int _dex; ...
Add include <functional> for osx
Add include <functional> for osx
C
mit
golddiamonds/character
245dbbfe13b1a31e5955106d58687c3b384dca66
dev/ic/i8237reg.h
dev/ic/i8237reg.h
/* $OpenBSD: i8237reg.h,v 1.2 1996/04/18 23:47:19 niklas Exp $ */ /* $NetBSD: i8237reg.h,v 1.5 1996/03/01 22:27:09 mycroft Exp $ */ /* * Intel 8237 DMA Controller */ #define DMA37MD_WRITE 0x04 /* read the device, write memory operation */ #define DMA37MD_READ 0x08 /* write the device, read memory operation */ #defi...
/* $OpenBSD: i8237reg.h,v 1.3 1999/08/04 23:07:49 niklas Exp $ */ /* $NetBSD: i8237reg.h,v 1.5 1996/03/01 22:27:09 mycroft Exp $ */ /* * Intel 8237 DMA Controller */ #define DMA37MD_DEMAND 0x00 /* demand mode */ #define DMA37MD_WRITE 0x04 /* read the device, write memory operation */ #define DMA37MD_READ 0x08 /* wr...
Add new manifest constant for demand mode DMA; form NetBSD
Add new manifest constant for demand mode DMA; form NetBSD
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
734e841eb3c657ecd5de0884b2aac2929d1bf28c
src/bin/e_randr.h
src/bin/e_randr.h
#ifdef E_TYPEDEFS typedef struct _E_Randr_Output_Config E_Randr_Output_Config; typedef struct _E_Randr_Crtc_Config E_Randr_Crtc_Config; typedef struct _E_Randr_Config E_Randr_Config; #else # ifndef E_RANDR_H # define E_RANDR_H #define E_RANDR_CONFIG_FILE_EPOCH 1 #define E_RANDR_CONFIG_FILE_GENERATION 1 #define E_RA...
Add new randr header file.
Add new randr header file. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84109
C
bsd-2-clause
rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment
1ca47e1e88457d9bd9998e2cc2aae19495d4668b
examples/rmc-test.c
examples/rmc-test.c
#include "rmc.h" // Some test cases that required some bogosity to not have the branches get // optimized away. // // Also, if r doesn't get used usefully, that load gets optimized away. // I can't decide whether that is totally fucked or not. int global_p, global_q; int bogus_ctrl_dep1() { XEDGE(read, write); ...
#include "rmc.h" // Some test cases that required some bogosity to not have the branches get // optimized away. // // Also, if r doesn't get used usefully, that load gets optimized away. // I can't decide whether that is totally fucked or not. int global_p, global_q; int bogus_ctrl_dep1() { XEDGE(read, write); ...
Add another ctrl dep test that we get right!
Add another ctrl dep test that we get right!
C
mit
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
f8203a77c906cc8e5991d46a3387b2273223a7b5
exercise109.c
exercise109.c
/* Exercise 1-8: Write a program to copy its input to its output, replacing * each string of one of more blanks with a single blank. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int16_t character, previous_character; while ((character = getchar()) != EOF) { ...
Add solution to Exercise 1-9.
Add solution to Exercise 1-9.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
50dd6a56970747d566d2ce3eee4305e2e530a16d
src/bin/e_error.c
src/bin/e_error.c
#include "e.h" /* local subsystem functions */ /* local subsystem globals */ /* externally accessible functions */ EAPI void e_error_message_show_internal(char *txt) { /* FIXME: maybe log these to a file and display them at some point */ printf("<<<< Enlightenment Error >>>>\n" "%s\n", txt); } /* local ...
#include "e.h" /* local subsystem functions */ /* local subsystem globals */ /* externally accessible functions */ EAPI void e_error_message_show_internal(char *txt) { /* FIXME: maybe log these to a file and display them at some point */ printf("<<<< Enlightenment Error >>>>\n%s\n", txt); } /* local subsystem...
Fix formatting. (Really ??? 3 lines for something that can fit on one ?)
E: Fix formatting. (Really ??? 3 lines for something that can fit on one ?) SVN revision: 61614
C
bsd-2-clause
tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment,rvandegrift/e,FlorentRevest/Enlightenment,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,rvandegrift/e,tizenorg/platform.upstream.enlightenment,rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment
b54503d351bf638969a5dd9e7113f8bc419ee24f
tmcd/decls.h
tmcd/decls.h
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2002 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14443 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
/* * EMULAB-COPYRIGHT * Copyright (c) 2000-2002 University of Utah and the Flux Group. * All rights reserved. */ #define TBSERVER_PORT 7777 #define TBSERVER_PORT2 14447 #define MYBUFSIZE 2048 #define BOSSNODE_FILENAME "bossnode" /* * As the tmcd changes, incompatable changes with older version of * the softw...
Change alternate port number; seemed to be taken already!
Change alternate port number; seemed to be taken already!
C
agpl-3.0
nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome