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
c938d475630c08a0d695f29b863250ae0ea73b5d
src/qt/macdockiconhandler.h
src/qt/macdockiconhandler.h
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; class objc_object; /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q_OBJECT public: ~MacDockIconHandler(); QMenu *dockMenu(); void se...
#ifndef MACDOCKICONHANDLER_H #define MACDOCKICONHANDLER_H #include <QtCore/QObject> class QMenu; class QIcon; class QWidget; #ifdef __OBJC__ @class DockIconClickEventHandler; #else class DockIconClickEventHandler; #endif /** Macintosh-specific dock icon handler. */ class MacDockIconHandler : public QObject { Q...
Fix for legacy QT compatibility
Fix for legacy QT compatibility
C
mit
koharjidan/sexcoin,lavajumper/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,koharjidan/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,lavajumper/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,sexcoin-project/sexcoin,koharjidan/sexcoin,lavaj...
77d8b067bf60caa27bddb974a4e1841287334a8c
features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h
features/cryptocell/FEATURE_CRYPTOCELL310/mbedtls_device.h
/* * mbedtls_device.h * * Copyright (C) 2018, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at *...
/* * mbedtls_device.h * * Copyright (C) 2018-2019, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License a...
Make the alternative cmac optional
Make the alternative cmac optional Have the alternative cmac undefined by default, in order not to break backwards compatability.
C
apache-2.0
andcor02/mbed-os,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed
fbb9d30f44ad3373b96ef0319a4fb404b60be5de
critical-mutex.c
critical-mutex.c
#include <stdio.h> #include <assert.h> #include <unistd.h> #include "uv.h" static uv_mutex_t mutex; static uv_thread_t thread; static int crit_data = 0; static void thread_cb(void* arg) { uv_mutex_lock(&mutex); printf("thread mutex start\n"); crit_data = 2; printf("thread mutex end\n"); uv_mutex_unlock(&...
#include <stdio.h> #include <assert.h> #include <unistd.h> #include "uv.h" static uv_mutex_t mutex; static uv_thread_t thread; static void thread_cb(void* arg) { printf("thread_cb\n"); uv_mutex_lock(&mutex); printf("thread mutex\n"); uv_mutex_unlock(&mutex); } int main() { assert(0 == uv_mutex_init(&mutex...
Make use of mutex easier to see
Make use of mutex easier to see With the access to the data, the use of the actual mutex could have been confused. By simply using the mutex the example is a lot more clear.
C
mit
trevnorris/libuv-examples
c79489d69b73dc523442fa797b5cc38a8c841f35
src/kernel/thread/signal/sigstd_stub.h
src/kernel/thread/signal/sigstd_stub.h
/** * @file * @brief Stubs for standard signals. * * @date 07.10.2013 * @author Eldar Abusalimov */ #ifndef KERNEL_THREAD_SIGSTD_STUB_H_ #define KERNEL_THREAD_SIGSTD_STUB_H_ #include <errno.h> #define SIGSTD_MIN 0 #define SIGSTD_MAX -1 struct sigstd_data { }; /* stub */ static inline struct sigstd_d...
/** * @file * @brief Stubs for standard signals. * * @date 07.10.2013 * @author Eldar Abusalimov */ #ifndef KERNEL_THREAD_SIGSTD_STUB_H_ #define KERNEL_THREAD_SIGSTD_STUB_H_ #include <errno.h> #include <signal.h> #define SIGSTD_MIN 0 #define SIGSTD_MAX -1 struct sigstd_data { }; /* stub */ static in...
Fix stub implementation (add missing sigaction decl)
signal: Fix stub implementation (add missing sigaction decl)
C
bsd-2-clause
mike2390/embox,Kefir0192/embox,mike2390/embox,Kakadu/embox,embox/embox,embox/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,embox/embox,abusalimov/embox,vrxfile/embox-trik,abusalimov/embox,mike2390/embox,Kefir0192/embox,gzoom13/embox,Kakadu/embox,vrxfile/embox-t...
99255bdc27f95eec652b0895fd63ed2aed9a619d
tests/checkTable.c
tests/checkTable.c
/* liblouis Braille Translation and Back-Translation Library Copyright (C) 2012 James Teh <jamie@nvaccess.org> Copyright (C) 2015 Davy Kager <mail@davykager.nl> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notic...
Add test based on getTable.c.
Add test based on getTable.c.
C
lgpl-2.1
liblouis/liblouis,hammera/liblouis,liblouis/liblouis,vsmontalvao/liblouis,liblouis/liblouis,IndexBraille/liblouis,BueVest/liblouis,BueVest/liblouis,liblouis/liblouis,IndexBraille/liblouis,liblouis/liblouis,vsmontalvao/liblouis,liblouis/liblouis,hammera/liblouis,BueVest/liblouis,BueVest/liblouis,BueVest/liblouis,IndexBr...
e971b9bcafa2d73d310a94ee1793163d6e1de14f
libsel4/include/sel4/macros.h
libsel4/include/sel4/macros.h
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #ifndef __LIBSEL4_MACROS_H #define __LIBSEL4_MACROS_H #include <autoconf.h> /* * ...
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #ifndef __LIBSEL4_MACROS_H #define __LIBSEL4_MACROS_H #include <autoconf.h> /* * ...
Make FORCE_LONG_ENUM actually force a long instead of an int
libsel4: Make FORCE_LONG_ENUM actually force a long instead of an int
C
bsd-2-clause
cmr/seL4,zhicheng/seL4,cmr/seL4,cmr/seL4,zhicheng/seL4,zhicheng/seL4
893b75e2bf2784f5b38837371cbcb33f884fee04
c/src/base/ByteStream.h
c/src/base/ByteStream.h
#ifndef C_BYTESTREAM_H #define C_BYTESTREAM_H #include "ByteListener.h" #include "ByteProducer.h" #include "ByteSubscription.h" typedef struct ByteStream { void (*add_listener) (struct ByteStream *self, ByteListener *listener); void (*remove_listener) (struct ByteStream *self, ByteListener *listener); void *(*s...
#ifndef C_BYTESTREAM_H #define C_BYTESTREAM_H #include "ByteListener.h" #include "ByteProducer.h" #include "ByteSubscription.h" #include "ByteListenerInternal.h" #include "ByteProducerInternal.h" #include "VariableLengthArray.h" typedef uint8_t Boolean; typedef Byte (*byte_steam_map_function) (Byte value); typedef B...
Add fuller definition of Stream<Byte>
Add fuller definition of Stream<Byte>
C
mit
artfuldev/RIoT
2c68ddc27ccc965b15ebc50159cae4d76ed5af2b
cbits/gradient_decent.c
cbits/gradient_decent.c
#include "gradient_decent.h" void decend_cpu(int len, double rate, double momentum, double regulariser, const double* weights, const double* gradient, const double* last, double* outputWeights, double* outputMomentum) { for (int i = 0; i <= len; i++) { outputMomentum[i] = momentum * last[i] - ...
#include "gradient_decent.h" void decend_cpu(int len, double rate, double momentum, double regulariser, const double* weights, const double* gradient, const double* last, double* outputWeights, double* outputMomentum) { for (int i = 0; i < len; i++) { outputMomentum[i] = momentum * last[i] - r...
Fix off-by-one error in C code
Fix off-by-one error in C code
C
bsd-2-clause
HuwCampbell/grenade,HuwCampbell/grenade
0aedae3932bef0b8d4bcd83e9681489073a0beb9
android_webview/common/devtools_instrumentation.h
android_webview/common/devtools_instrumentation.h
// Copyright 2014 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 ANDROID_WEBVIEW_COMMON_DEVTOOLS_INSTRUMENTATION_H_ #define ANDROID_WEBVIEW_COMMON_DEVTOOLS_INSTRUMENTATION_H_ #include "base/debug/trace_event.h"...
// Copyright 2014 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 ANDROID_WEBVIEW_COMMON_DEVTOOLS_INSTRUMENTATION_H_ #define ANDROID_WEBVIEW_COMMON_DEVTOOLS_INSTRUMENTATION_H_ #include "base/debug/trace_event.h"...
Add devtools trace events for Timeline EmbedderCallback notification
Add devtools trace events for Timeline EmbedderCallback notification This events will be used instead of existing implementation in InspectorTimelineAgent.cpp after switching Timeline to trace events as backend. BUG=361045 Review URL: https://codereview.chromium.org/254313002 git-svn-id: de016e52bd170d2d4f2344f9bf9...
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,ltilve/chromium,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,Fi...
0049997b699676539caf7d2ae52f690ba374123c
src/configuration.h
src/configuration.h
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 9 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 9 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
Increment version number, since the new AHRS would break setting loading
Increment version number, since the new AHRS would break setting loading
C
agpl-3.0
hejunbok/apm_planner,mihadyuk/qgroundcontrol,josephlewis42/UDenverQGC2,gpaes/apm_planner,iidioter/qgroundcontrol,ethz-asl/qgc_asl,dcarpy/apm_planner,TheIronBorn/qgroundcontrol,381426068/apm_planner,jy723/qgroundcontrol,BMP-TECH/qgroundcontrol,caoxiongkun/qgroundcontrol,labtoast/apm_planner,gpaes/apm_planner,duststorm/a...
57d1526e288953b4a419bcd2f32da885cdbebcf6
src/cpp2/expr_tok.h
src/cpp2/expr_tok.h
#ifndef EXPR_TOK_H #define EXPR_TOK_H extern expr_n tok_cur_num; extern enum tok { tok_ident = -1, tok_num = -2, tok_eof = 0, tok_lparen = '(', tok_rparen = ')', /* operators returned as char-value, * except for double-char ops */ /* binary */ tok_multiply = '*', tok_divide = '/', tok_modulus ...
#ifndef EXPR_TOK_H #define EXPR_TOK_H extern expr_n tok_cur_num; extern enum tok { tok_ident = -1, tok_num = -2, tok_eof = 0, tok_lparen = '(', tok_rparen = ')', /* operators returned as char-value, * except for double-char ops */ /* binary */ tok_multiply = '*', tok_divide = '/', tok_modulus ...
Fix clash in cpp tokens
Fix clash in cpp tokens
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
c4187c9c4b352f48252afe0ee30fa93d84e692a5
include/lib/cpus/aarch64/neoverse_e1.h
include/lib/cpus/aarch64/neoverse_e1.h
/* * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef NEOVERSE_E1_H #define NEOVERSE_E1_H #include <lib/utils_def.h> #define NEOVERSE_E1_MIDR U(0x410FD060) /**************************************************************************...
/* * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef NEOVERSE_E1_H #define NEOVERSE_E1_H #include <lib/utils_def.h> #define NEOVERSE_E1_MIDR U(0x410FD4A0) /**************************************************************************...
Fix wrong MIDR_EL1 value for Neoverse E1
Fix wrong MIDR_EL1 value for Neoverse E1 Change-Id: I75ee39d78c81ecb528a671c0cfadfc2fe7b5d818 Signed-off-by: John Tsichritzis <c5e6a94b5ed6b01ab911c6a4e005fdf814669fe4@arm.com>
C
bsd-3-clause
achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware
e6b9ebba53038ac4d1e2377ebdd15359c28368cb
lib/asan/interception/interception_linux.h
lib/asan/interception/interception_linux.h
//===-- interception_linux.h ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- interception_linux.h ------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix a wrong filename mentioned in a comment
[ASan] Fix a wrong filename mentioned in a comment git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@151145 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
d202d7b2059eb440c044477993a6e0d6aa4d5086
app/tests/test_device_msg_deserialize.c
app/tests/test_device_msg_deserialize.c
#include <assert.h> #include <string.h> #include "device_msg.h" #include <stdio.h> static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t ...
#include <assert.h> #include <string.h> #include "device_msg.h" #include <stdio.h> static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t...
Add unit test for big clipboard device message
Add unit test for big clipboard device message Test clipboard synchronization from the device to the computer.
C
apache-2.0
Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy
89f7600802d05329facf46d92910ad8b1bdc642d
libmue/tests/test_guest_tuple_iterator.h
libmue/tests/test_guest_tuple_iterator.h
#ifndef TEST_GUEST_TUPLE_ITERATOR_H #define TEST_GUEST_TUPLE_ITERATOR_H #include <cxxtest/TestSuite.h> #include <unordered_set> #include <vector> #include "teams.h" #include "guest_tuple_iterator.h" class TestSeenTable : public CxxTest::TestSuite { private: std::vector<mue::Team> make_testteams(int num) { st...
#ifndef TEST_GUEST_TUPLE_ITERATOR_H #define TEST_GUEST_TUPLE_ITERATOR_H #include <cxxtest/TestSuite.h> #include <unordered_set> #include <vector> #include "teams.h" #include "guest_tuple_iterator.h" class TestSeenTable : public CxxTest::TestSuite { public: void testFooBar(void) { } }; #endif
Clean skel for guest tuple iterator tests
Clean skel for guest tuple iterator tests Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
C
bsd-3-clause
janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,eXma/meet-and-eat-distribution-tool,janLo/meet-and-eat-distribution-tool
a7bbc288ca4149eb804a9e5152c33dbe07f431fe
src/rtcmix/funderflow.c
src/rtcmix/funderflow.c
#ifdef sgi #include <sys/fpu.h> /* THE FOLLOWING FUNCTION sets the special "flush zero" but (FS, bit 24) in the Control Status Register of the FPU of R4k and beyond so that the result of any underflowing operation will be clamped to zero, and no exception of any kind will be generated on the CPU. This has no effect o...
#ifdef sgi #include <sys/fpu.h> /* THE FOLLOWING FUNCTION sets the special "flush zero" but (FS, bit 24) in the Control Status Register of the FPU of R4k and beyond so that the result of any underflowing operation will be clamped to zero, and no exception of any kind will be generated on the CPU. This has no effect o...
Fix include from last checkin.
Fix include from last checkin.
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
a8037f55854706a8d4c66e71ab14f8f3628ae4ee
cc1/tests/test061.c
cc1/tests/test061.c
/* name: TEST061 description: Test for macros without arguments but with parenthesis error: output: G3 I F "main { \ h #I1 } */ #define X (2) #define L (0) #define H (1) #define Q(x) x int main(void) { return X == L + H + Q(1); }
Add test for non macro alike functions with paranthesis
[cc1] Add test for non macro alike functions with paranthesis
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
6541894e50b82b4f2f2dd5a875ee37c5645f6c85
JTFadingInfoViewController/JTFadingInfoViewController.h
JTFadingInfoViewController/JTFadingInfoViewController.h
// // JTFadingInfoViewController.h // JTFadingInfoViewController // // Created by DCL_JT on 2015/07/29. // Copyright (c) 2015年 Junichi Tsurukawa. All rights reserved. // #import <UIKit/UIKit.h> @interface JTFadingInfoViewController : UIViewController @end
// // JTFadingInfoViewController.h // JTFadingInfoViewController // // Created by DCL_JT on 2015/07/29. // Copyright (c) 2015年 Junichi Tsurukawa. All rights reserved. // #import <UIKit/UIKit.h> #pragma mark - Fade in/out options typedef enum { FadeInFromAbove = 1, FadeInFromBelow, FadeInFromLeft, FadeInFr...
Determine initial properties and functions
Determine initial properties and functions
C
mit
mohsinalimat/JTFadingInfoView,JunichiT/JTFadingInfoView,machelix/JTFadingInfoView,gaurav1981/JTFadingInfoView,carabina/JTFadingInfoView
1a10f81750d935eaf84b6ea02d39201471b5fa84
pmpa_internals.h
pmpa_internals.h
/* * pmpa_internals.h * Part of pmpa * Copyright (c) 2014 Philip Wernersbach * * Dual-Licensed under the Public Domain and the Unlicense. * Choose the one that you prefer. */ #ifndef HAVE_PMPA_INTERNALS_H #include <stdbool.h> #include <pmpa.h> typedef struct { pmpa_memory_int size; bool allocated; char dat...
/* * pmpa_internals.h * Part of pmpa * Copyright (c) 2014 Philip Wernersbach * * Dual-Licensed under the Public Domain and the Unlicense. * Choose the one that you prefer. */ #ifndef HAVE_PMPA_INTERNALS_H #include <stddef.h> #include <stdbool.h> #include <pmpa.h> typedef struct { pmpa_memory_int size; bool ...
Use offsetof() to compute the memory block header size.
Use offsetof() to compute the memory block header size. On compilers that don’t pad structs to alignment, this is equivalent to using the sizeof() method. On compilers that do pad structs to alignment, the sizeof() method will yield the wrong size, whereas this method will work.
C
unlicense
philip-wernersbach/memory-pool-allocator
de3c64e26ebd118771a85932b964a52acd7c7287
payload/Bmp180.h
payload/Bmp180.h
#ifndef RCR_LEVEL1PAYLOAD_BMP180_H_ #define RCR_LEVEL1PAYLOAD_BMP180_H_ #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WProgram.h" #endif namespace rcr { namespace level1payload { } // namespace level1_payload } // namespace rcr #endif // RCR_LEVEL1PAYLOAD_BMP180_H_
Add header for Bmp custom type
Add header for Bmp custom type
C
mit
nolanholden/geovis,nolanholden/geovis,nolanholden/geovis,nolanholden/payload-level1-rocket
a6b11e049ace86d58eb016015b598c5b8ed1655c
MagicalRecord/Categories/DataImport/MagicalImportFunctions.h
MagicalRecord/Categories/DataImport/MagicalImportFunctions.h
// // MagicalImportFunctions.h // Magical Record // // Created by Saul Mora on 3/7/12. // Copyright (c) 2012 Magical Panda Software LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h> NSDateFormatter * __MR_nonnull MR_dateFormatterWithFor...
// // MagicalImportFunctions.h // Magical Record // // Created by Saul Mora on 3/7/12. // Copyright (c) 2012 Magical Panda Software LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <MagicalRecord/MagicalRecordXcode7CompatibilityMacros.h> NSDateFormatter * __MR_nonnull MR_dateFormatterWithFor...
Add the missing nullability annotation
Add the missing nullability annotation
C
mit
yiplee/MagicalRecord,yiplee/MagicalRecord
9ebc8db0a72fd67a73e7a1e0c371d41b2b1f6bdf
main/main_gpio.c
main/main_gpio.c
#include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include "esp_wifi.h" #include "esp_system.h" void app_main(void) { gpio_set_direction(GPIO_NUM_5, GPIO_MODE_OUTPUT); int level = 0; while (true) { printf("Hello, world.\n"); gpio_set_level(GPIO_NUM_5, level); ...
#include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include "esp_wifi.h" #include "esp_system.h" void app_main(void) { gpio_set_direction(GPIO_NUM_5, GPIO_MODE_OUTPUT); int level = 0; while (true) { printf("Hello, world.\n"); gpio_set_level(GPIO_NUM_5, level); ...
Speed up default blink to disambiguate from default program on Sparkfun board.
Speed up default blink to disambiguate from default program on Sparkfun board.
C
apache-2.0
cmason1978/esp32-examples,cmason1978/esp32-examples
279443da2f3938554c2e99abf77ff00acb3ec889
test/Driver/at_file_missing.c
test/Driver/at_file_missing.c
// Make sure that arguments that begin with @ are left as is in the argument // stream, and also that @file arguments continue to be processed. // RUN: echo "%s -D FOO" > %t.args // RUN: %clang -rpath @executable_path/../lib @%t.args -### 2>&1 | FileCheck %s // CHECK: "-D" "FOO" // CHECK: "-rpath" "@executable_path/.....
Check that @ arguments that aren't files are handled
test/Driver: Check that @ arguments that aren't files are handled This tests the bug fix in llvm r196620. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@196621 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
ab28a98e50d0b686a4e4f2343459b2ff4a1812ec
include/aerial_autonomy/actions_guards/land_functors.h
include/aerial_autonomy/actions_guards/land_functors.h
#pragma once #include <aerial_autonomy/actions_guards/base_functors.h> #include <aerial_autonomy/logic_states/base_state.h> #include <aerial_autonomy/robot_systems/uav_system.h> #include <aerial_autonomy/basic_events.h> #include <aerial_autonomy/types/completed_event.h> #include <parsernode/common.h> using namespace b...
#pragma once #include <aerial_autonomy/actions_guards/base_functors.h> #include <aerial_autonomy/logic_states/base_state.h> #include <aerial_autonomy/robot_systems/uav_system.h> #include <aerial_autonomy/basic_events.h> #include <aerial_autonomy/types/completed_event.h> #include <parsernode/common.h> using namespace b...
Add tests for land, takeoff, position control funs
Add tests for land, takeoff, position control funs
C
mpl-2.0
jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy
68165f179e1e617702fe640ccbeccf2e9eb7b6c3
src/aker_mem.c
src/aker_mem.c
/** * Copyright 2017 Comcast Cable Communications Management, LLC * * 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 requir...
/** * Copyright 2017 Comcast Cable Communications Management, LLC * * 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 requir...
Correct error on previous commit.
Correct error on previous commit.
C
apache-2.0
Comcast/aker,Comcast/aker
dc8b63122e4941d7b80e524b95884f390319eb9e
tests/regression/32-loop-termination/08-counter_for.c
tests/regression/32-loop-termination/08-counter_for.c
// PARAM: --enable dbg.debug --enable ana.int.interval int main() { int t1 = 0, t2 = 0; int i; for (i = 0; i < 5; i++) { t1++; t2--; } assert(t1 == i); //SUCCESS! t1 = 5; t2 = 5; for (i = 5; i > 0; i--) { t1++; t2--; } assert(t2 == i); //SUCCESS!...
Add an example for simple loops
Add an example for simple loops
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
32c7bf1139fd00449de620d569c0b717cdeeb927
BDSKDragImageView.h
BDSKDragImageView.h
// // BDSKDragImageView.h // Bibdesk // // Created by Christiaan Hofman on 28/11/05. /* This software is Copyright (c) 2005,2006,2007 Christiaan Hofman. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
Copy dragImageView from bibdesk to skim
Copy dragImageView from bibdesk to skim
C
bsd-3-clause
JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim
0dc22e80a2b29f468249fc77945611a7283b8a32
tests/regression/27-inv_invariants/02-bot-during-condition.c
tests/regression/27-inv_invariants/02-bot-during-condition.c
int main () { int tmp; int p_9 = 60; tmp = (p_9 +1) % 0; if ((p_9 +1) % 0) { tmp = 1; } return (0); }
Add problematic example, bot in invariant
Add problematic example, bot in invariant
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
fad2a3cf8fd4c75268dc46bbc7dddb48baeddf14
src/datetime.c
src/datetime.c
/** * Copyright (c) 2015, Chao Wang <hit9@icloud.com> */ #include <time.h> #include <sys/time.h> /* Get timestamp (in milliseconds) for now. */ double datetime_stamp_now(void) { struct timeval tv; gettimeofday(&tv, NULL); return (1000000 * tv.tv_sec + tv.tv_usec) / 1000.0; }
/** * Copyright (c) 2015, Chao Wang <hit9@icloud.com> */ #include <assert.h> #include <time.h> #include <sys/time.h> /* Get timestamp (in milliseconds) for now. */ double datetime_stamp_now(void) { #if defined CLOCK_REALTIME struct timespec ts; int rc = clock_gettime(CLOCK_REALTIME, &ts); assert(rc == 0...
Use clock_gettime if have (linux/bsd but not apple)
Use clock_gettime if have (linux/bsd but not apple)
C
bsd-2-clause
hit9/C-Snip,hit9/C-Snip
d494380487e6ed926ea0ef8a74ec2772022e9bed
content/common/child_process_messages.h
content/common/child_process_messages.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. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #include ...
// 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. // Common IPC messages used for child processes. // Multiply-included message file, hence no include guard. #include "googleurl/src/gurl.h" #include ...
Add newline at end of file
Add newline at end of file git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@78227 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
adobe/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,Crystal...
1b74f41ca76ba09230cdc8d4196a7c6e98092ca9
testmud/mud/home/Game/sys/bulkd.c
testmud/mud/home/Game/sys/bulkd.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2013 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add bulk sync daemon back again
Add bulk sync daemon back again
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
b2a8283ef2108adcb67e40c8abd5283b59d2b14f
Source/MMMarkdown.h
Source/MMMarkdown.h
// // MMMarkdown.h // MMMarkdown // // Copyright (c) 2012 Matt Diephouse. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights...
// // MMMarkdown.h // MMMarkdown // // Copyright (c) 2012 Matt Diephouse. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights...
Add documentation that Xcode can find
Add documentation that Xcode can find
C
mit
jonesgithub/MMMarkdown,isaacroldan/MMMarkdown,mobilejazz/MMMarkdown,isaacroldan/AttributedMarkdown,albertbori/MMMarkdown,iosdev-republicofapps/MMMarkdown,gonefish/MMMarkdown,1aurabrown/MMMarkdown,1aurabrown/MMMarkdown,mdiep/MMMarkdown,isaacroldan/AttributedMarkdown,mobilejazz/MMMarkdown,AgileBits/MMMarkdown,isaacroldan...
ac59c3f410a9fbebed551cb0c05bfcf047adb2c4
TDTChocolate/TestingAdditions/XCTAssert+TDTAdditions.h
TDTChocolate/TestingAdditions/XCTAssert+TDTAdditions.h
#import <Foundation/Foundation.h> /** Custom asserts that provide better error messages when the assert fails. */ /** Assert that @p array contains @p object */ #define TDTXCTAssertContains(array, object) \ XCTAssertTrue([(array) containsObject:(object)], @"Expected %@ to contain %@", (array), (object)) /** Ass...
#import <Foundation/Foundation.h> /** Custom asserts that provide better error messages when the assert fails. */ /** Assert that @p array contains @p object */ #define TDTXCTAssertContains(array, object) \ XCTAssertTrue([(array) containsObject:(object)], @"Expected %@ to contain %@", (array), (object)) /** Ass...
Rename the custom assert name to reflect the underlying method
Rename the custom assert name to reflect the underlying method
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
c72770ef3ba510bd83746aadbc3aa1b7e6b328bf
src/math/p_inv.c
src/math/p_inv.c
#include <pal.h> /** * * Element wise inversion (reciprocal) of elements in 'a'. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @param p Number of processor to use (task parallelism) * * @param team Team to work with ...
#include <pal.h> /** * * Element wise inversion (reciprocal) of elements in 'a'. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @param p Number of processor to use (task parallelism) * * @param team Team to work with ...
Use spaces instead of tabs
Use spaces instead of tabs
C
apache-2.0
debug-de-su-ka/pal,parallella/pal,Adamszk/pal3,Adamszk/pal3,olajep/pal,Adamszk/pal3,parallella/pal,mateunho/pal,8l/pal,aolofsson/pal,RafaelRMA/pal,debug-de-su-ka/pal,eliteraspberries/pal,mateunho/pal,mateunho/pal,aolofsson/pal,mateunho/pal,eliteraspberries/pal,debug-de-su-ka/pal,aolofsson/pal,eliteraspberries/pal,paral...
0cd7de8ba17d298d89e6dd8680982607c49239b7
include/orvibo.h
include/orvibo.h
#ifndef ORVIBO_H #define ORVIBO_H #include <net/ethernet.h> #include <stdbool.h> enum orvibo_event { ORVIBO_EVENT_DISCOVER, ORVIBO_EVENT_SUBSCRIBE, ORVIBO_EVENT_UNSUBSCRIBE, ORVIBO_EVENT_OFF, ORVIBO_EVENT_ON }; enum orvibo_state { ORVIBO_STATE_UNKNOWN, ORVIBO_STATE_OFF, ORVIBO_STATE_O...
Add header file for public interface
Add header file for public interface
C
bsd-3-clause
OllieDay/orvibo,OllieDay/orvibo
7ca370ebec19fe07ddee0dbea32c99c386ac7078
Sources/SPTPersistentCacheFileManager+Private.h
Sources/SPTPersistentCacheFileManager+Private.h
#import "SPTPersistentCacheFileManager.h" #import <SPTPersistentCache/SPTPersistentCacheOptions.h> NS_ASSUME_NONNULL_BEGIN /// Private interface exposed for testability. @interface SPTPersistentCacheFileManager () @property (nonatomic, copy, readonly) SPTPersistentCacheOptions *options; @property (nonatomic, copy, r...
/* * 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 license header to private file manager header
Add license header to private file manager header
C
apache-2.0
FootballAddicts/SPTPersistentCache,FootballAddicts/SPTPersistentCache,chrisbtreats/SPTPersistentCache,chrisbtreats/SPTPersistentCache,spotify/SPTPersistentCache,FootballAddicts/SPTPersistentCache,spotify/SPTPersistentCache,spotify/SPTPersistentCache,chrisbtreats/SPTPersistentCache,FootballAddicts/SPTPersistentCache,chr...
00e405ede61e419754bb4a82f0c4c384301db9d1
runtime/test/ompt/misc/unset_callback.c
runtime/test/ompt/misc/unset_callback.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { #pragma omp parallel num_threads(1) { } ompt_set_callback(ompt_callback_parallel_begin, NULL); #pragma omp parallel num_threads(1) { } // Check if libomp supports the callbacks for th...
Add missing test case from D41171 commit
Add missing test case from D41171 commit git-svn-id: f99161ee8ccfe2101cbe1bdda2220bce2ed25485@321270 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp,llvm-mirror/openmp
c4551d3d21053281cb36d89796948c9957b708b4
include/llvm/System/Atomic.h
include/llvm/System/Atomic.h
//===- llvm/System/Atomic.h - Atomic Operations -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/System/Atomic.h - Atomic Operations -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use DataTypes.h instead of stdint.h.
Use DataTypes.h instead of stdint.h. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@72201 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/as...
7c043e3049a6ec1b718208221ea4eed0d74e1ecd
bindings/f95/plflt.c
bindings/f95/plflt.c
/* Auxiliary program: write the include file for determining PLplot's floating-point type */ #include <stdio.h> #include <stdlib.h> #include "plConfig.h" main(int argc, char *argv[] ) { FILE *outfile; char *kind; outfile = fopen( "plflt.inc", "w" ) ; #ifdef PL_DOUBLE kind = "1.0d0"; #else kind = "1...
/* Auxiliary program: write the include file for determining PLplot's floating-point type */ #include <stdio.h> #include <stdlib.h> #include "plConfig.h" main(int argc, char *argv[] ) { FILE *outfile; char *kind; outfile = fopen( "plflt.inc", "w" ) ; #ifdef PL_DOUBLE kind = "1.0d0"; #else kind = "1...
Transform the fortran result of this executable to free form.
Transform the fortran result of this executable to free form. svn path=/trunk/; revision=6513
C
lgpl-2.1
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
9ed71f0c0945ecdfc7f49919ab4168a48b08cd94
ports/atmel-samd/boards/cytron_maker_zero_samd21/mpconfigboard.h
ports/atmel-samd/boards/cytron_maker_zero_samd21/mpconfigboard.h
#define MICROPY_HW_BOARD_NAME "Cytron Maker Zero SAMD21" #define MICROPY_HW_MCU_NAME "samd21g18" #define MICROPY_HW_LED_TX &pin_PA27 #define MICROPY_HW_LED_RX &pin_PB03 #define DEFAULT_I2C_BUS_SCL (&pin_PA23) #define DEFAULT_I2C_BUS_SDA (&pin_PA22) #define DEFAULT_SPI_BUS_SCK (&pin_PB11) #define DEFAULT_SPI_BUS_...
Add Cytron Maker Zero SAMD21
Add Cytron Maker Zero SAMD21
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
5394589f53072a71942a11695470d7ca97ab7a70
tests/testTime.c
tests/testTime.c
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include <unistd.h> int main(int argc, char **argv) { struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm = localtime(&tv.tv_sec); char timestr[128]; size_...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include <unistd.h> #include "../../bluez-5.28/lib/bluetooth.h" int main(int argc, char **argv) { struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm = localtime(&t...
Test long size and timeval to long conversion
Test long size and timeval to long conversion
C
apache-2.0
starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser,starksm64/NativeRaspberryPiBeaconParser
53ed2c4576f6e25c3c409d61c1f59b7221631554
Source/Core/Helpers/HCReturnTypeHandler.h
Source/Core/Helpers/HCReturnTypeHandler.h
// // OCHamcrest - HCReturnTypeHandler.h // Copyright 2014 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import <Foundation/Foundation.h> @interface HCReturnTypeHandler : N...
// // OCHamcrest - HCReturnTypeHandler.h // Copyright 2014 hamcrest.org. See LICENSE.txt // // Created by: Jon Reid, http://qualitycoding.org/ // Docs: http://hamcrest.github.com/OCHamcrest/ // Source: https://github.com/hamcrest/OCHamcrest // #import <Foundation/Foundation.h> /** Chain-of-responsibility for h...
Add comment to explicitly identify Chain of Responsibility
Add comment to explicitly identify Chain of Responsibility
C
bsd-2-clause
hamcrest/OCHamcrest,hamcrest/OCHamcrest,klundberg/OCHamcrest,klundberg/OCHamcrest,hamcrest/OCHamcrest
f90bb76d0ea96d1a6115fec0f5a922832b02759c
Interfaces/WorldLogicInterface.h
Interfaces/WorldLogicInterface.h
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file WorldLogicInterface.h * @brief */ #include "ServiceInterface.h" #ifndef incl_Interfaces_WorldLogicInterface_h #define incl_Interfaces_WorldLogicInterface_h #include "ForwardDefines.h" #include <QObject> class QS...
/** * For conditions of distribution and use, see copyright notice in license.txt * * @file WorldLogicInterface.h * @brief */ #ifndef incl_Interfaces_WorldLogicInterface_h #define incl_Interfaces_WorldLogicInterface_h #include "ServiceInterface.h" #include "ForwardDefines.h" #include <QObject> class QSt...
Move include within include guards.
Move include within include guards.
C
apache-2.0
antont/tundra,jesterKing/naali,antont/tundra,realXtend/tundra,BogusCurry/tundra,realXtend/tundra,pharos3d/tundra,pharos3d/tundra,BogusCurry/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,jesterKing/naali,antont/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,jesterKing/naali,realXtend/tundra,BogusCurry/tundra,pharos3d/tundr...
b6656313eafd4a1742b9449c9886624f5a83d5aa
content/browser/renderer_host/quota_dispatcher_host.h
content/browser/renderer_host/quota_dispatcher_host.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 CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #include "base/basictyp...
// 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 CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_ #include "base/basictyp...
Fix clang build that have been broken by 81364.
Fix clang build that have been broken by 81364. BUG=none TEST=green tree TBR=jam Review URL: http://codereview.chromium.org/6838008 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@81368 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,Crystalnix...
27cf500cbbf4672c98f4d31442bfba689cd0d508
stag.c
stag.c
// stdio for file I/O #include <stdio.h> int main(int argc, char *argv[]) { int status = 1; float value; while(status != EOF) { status = fscanf(stdin, "%f\n", &value); if(status == 1) fprintf(stdout, "%f\n", value); else fprintf(stdout, "Error reading data (%d)\n", status); } }
// stdio for file I/O #include <stdio.h> #define HISTORY_SIZE 5 void print_values(float *values, int current_i) { // Print values to stdout, starting from one after newest (oldest) and // circle around to newest int i = current_i; for(i = current_i; i < current_i + HISTORY_SIZE; i++) { fprintf(stdout, "%....
Save value history as circular array, print function for debug
Save value history as circular array, print function for debug
C
bsd-3-clause
seenaburns/stag
a07bd876a0486a1adfcf319dc39001d73183db9f
grantlee_defaultfilters/join.h
grantlee_defaultfilters/join.h
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef JOINFILTER_H #define JOINFILTER_H #include "filter.h" using namespace Grantlee; class GRANTLEE_EXPORT JoinFilter : public Filter { Q_OBJECT public: JoinFilter(QObject *parent = 0); Grantlee::SafeString doFilter(const QVariant &input, con...
/* Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> */ #ifndef JOINFILTER_H #define JOINFILTER_H #include "filter.h" using namespace Grantlee; class GRANTLEE_EXPORT JoinFilter : public Filter { Q_OBJECT public: JoinFilter(QObject *parent = 0); Grantlee::SafeString doFilter(const QVariant &input, con...
Join is a safe filter.
Join is a safe filter.
C
lgpl-2.1
simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee
e0891a9816316b5e05fd5b0453ffe9fd6a56f489
include/asm-generic/getorder.h
include/asm-generic/getorder.h
#ifndef __ASM_GENERIC_GETORDER_H #define __ASM_GENERIC_GETORDER_H #ifndef __ASSEMBLY__ #include <linux/compiler.h> /* Pure 2^n version of get_order */ static inline __attribute_const__ int get_order(unsigned long size) { int order; size = (size - 1) >> (PAGE_SHIFT - 1); order = -1; do { size >>= 1; order++;...
#ifndef __ASM_GENERIC_GETORDER_H #define __ASM_GENERIC_GETORDER_H #ifndef __ASSEMBLY__ #include <linux/compiler.h> /** * get_order - Determine the allocation order of a memory size * @size: The size for which to get the order * * Determine the allocation order of a particular sized block of memory. This * is o...
Adjust the comment on get_order() to describe the size==0 case
bitops: Adjust the comment on get_order() to describe the size==0 case Adjust the comment on get_order() to note that the result of passing a size of 0 results in an undefined value. Signed-off-by: David Howells <ebac1d06c1688626821bb0e574a037a7a5354e49@redhat.com> Link: bda992bc1329f96689c6a1f1fe8e9514639fac43@warth...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,Krist...
bb1883ff25f52e7f65b31ea9582842b18af0c336
file4.c
file4.c
file4.c - r1 Test checkin in master1-updated Test checkin in master2
file4.c - r1 Test checkin in master1-updated - updated_by_master Test checkin in master2 Test checkin in master3 Test checkin in master4
Test commit in master4 branch
Test commit in master4 branch
C
apache-2.0
shahedmolla/test
410ddc6b7c4c652769e924bb66fa9d5fd1221cea
PDKTModelBuilder/CoreData/NSManagedObject+PDKTModelBuilder.h
PDKTModelBuilder/CoreData/NSManagedObject+PDKTModelBuilder.h
// // NSManagedObject+PDKTUtils.h // PDKTModelBuilder // // Created by Daniel García García on 31/08/14. // Copyright (c) 2014 Produkt. All rights reserved. // #import <CoreData/CoreData.h> #import "PDKTModelBuilderEntity.h" @protocol PDKTModelBuilderCoreDataEntity <PDKTModelBuilderEntity> @optional @property (st...
// // NSManagedObject+PDKTUtils.h // PDKTModelBuilder // // Created by Daniel García García on 31/08/14. // Copyright (c) 2014 Produkt. All rights reserved. // #import <CoreData/CoreData.h> #import "PDKTModelBuilderEntity.h" @protocol PDKTModelBuilderCoreDataEntity <PDKTModelBuilderEntity> @optional @property (st...
Add order property to protocol
Add order property to protocol
C
mit
antjimar/PDKTModelBuilder
2f0d82a50ba16300dff596f6ddc7c957f803179a
ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h
ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h
#define MICROPY_HW_BOARD_NAME "Challenger NB RP2040 WiFi" #define MICROPY_HW_MCU_NAME "rp2040" #define DEFAULT_UART_BUS_TX (&pin_GPIO16) #define DEFAULT_UART_BUS_RX (&pin_GPIO17) #define DEFAULT_I2C_BUS_SDA (&pin_GPIO0) #define DEFAULT_I2C_BUS_SCL (&pin_GPIO1) #define DEFAULT_SPI_BUS_SCK (&pin_GPIO22) #defin...
#define MICROPY_HW_BOARD_NAME "Challenger NB RP2040 WiFi" #define MICROPY_HW_MCU_NAME "rp2040" #define DEFAULT_UART_BUS_TX (&pin_GPIO16) #define DEFAULT_UART_BUS_RX (&pin_GPIO17) #define DEFAULT_I2C_BUS_SDA (&pin_GPIO0) #define DEFAULT_I2C_BUS_SCL (&pin_GPIO1)
Disable board.SPI() for Challenger NB RP2040 WiFi
Disable board.SPI() for Challenger NB RP2040 WiFi This was done as a result of an issue with the SPI pin mappings. Please refer to the following for additional information: https://ilabs.se/challenger-rp2040-wifi-spi-bug
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
a8904687f65f794ab5d01c58c6f9beeda5742325
kernel/libc/newlib/newlib_isatty.c
kernel/libc/newlib/newlib_isatty.c
/* KallistiOS ##version## newlib_isatty.c Copyright (C)2004 Dan Potter */ #include <sys/reent.h> int isatty(int fd) { return 0; } int _isatty_r(struct _reent *reent, int fd) { return 0; }
/* KallistiOS ##version## newlib_isatty.c Copyright (C) 2004 Dan Potter Copyright (C) 2012 Lawrence Sebald */ #include <sys/reent.h> int isatty(int fd) { /* Make sure that stdin, stdout, and stderr are shown as ttys, otherwise they won't be set as line-buffered. */ if(fd >= 0 && fd <= 2) { ...
Make it so that stdin/stdout/stderr will be set as line buffered (newlib has to think they're ttys if we have fcntl, which we do now).
Make it so that stdin/stdout/stderr will be set as line buffered (newlib has to think they're ttys if we have fcntl, which we do now).
C
bsd-3-clause
DreamcastSDK/kos,DreamcastSDK/kos,DreamcastSDK/kos
3cc120b985c7134fd6c3d2a40bab85711b2da4ee
Runtime/Rendering/LightingPass.h
Runtime/Rendering/LightingPass.h
#pragma once #include "Rendering/RenderingPass.h" #include "Math/Vector3.h" namespace Mile { class GBuffer; class BlendState; class MEAPI LightingPass : public RenderingPass { DEFINE_CONSTANT_BUFFER(CameraParamsConstantBuffer) { Vector3 CameraPos; }; DEFINE_CONSTANT_BUFFER...
#pragma once #include "Rendering/RenderingPass.h" #include "Math/Vector3.h" namespace Mile { class GBuffer; class BlendState; class MEAPI LightingPass : public RenderingPass { DEFINE_CONSTANT_BUFFER(CameraParamsConstantBuffer) { Vector3 CameraPos; }; DEFINE_CONSTANT_BUFFER...
Reorder light params buffer struct
Reorder light params buffer struct
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
e9148261b2105762119d5fecae3ef88d653d519f
src/condor_includes/condor_fix_timeval.h
src/condor_includes/condor_fix_timeval.h
#ifndef TIMEVAL_H #define TIMEVAL_H #if defined(ULTRIX42) || defined(ULTRIX43) || defined(HPUX9) #if !defined(_ALL_SOURCE) struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval ...
#ifndef TIMEVAL_H #define TIMEVAL_H #if defined(ULTRIX43) && !defined(_ALL_SOURCE) struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; #el...
Simplify a bit as special treatment is no longer needed for HPUX.
Simplify a bit as special treatment is no longer needed for HPUX.
C
apache-2.0
zhangzhehust/htcondor,htcondor/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,djw8605/htcondor,djw8605/condor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,mambelli/osg-bosco-marco,neurodebian/htcondor,zhangzhehust/htcondor,htcondor/htcondor,neurodebian/htcondor,neurodebian/htcondor,neurodebian/htco...
c0d5cbad61bdde819a3d6c04e5b174fc85384343
src/modules/conf_randr/e_smart_monitor.h
src/modules/conf_randr/e_smart_monitor.h
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra...
#ifdef E_TYPEDEFS #else # ifndef E_SMART_MONITOR_H # define E_SMART_MONITOR_H Evas_Object *e_smart_monitor_add(Evas *evas); void e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch); void e_smart_monitor_output_set(Evas_Object *obj, Ecore_X_Ra...
Add function prototype for setting current geometry. Rename function prototype for grid virtual size set.
Add function prototype for setting current geometry. Rename function prototype for grid virtual size set. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84195
C
bsd-2-clause
FlorentRevest/Enlightenment,rvandegrift/e,tasn/enlightenment,FlorentRevest/Enlightenment,rvandegrift/e,rvandegrift/e,tizenorg/platform.upstream.enlightenment,tasn/enlightenment,tizenorg/platform.upstream.enlightenment,tizenorg/platform.upstream.enlightenment,FlorentRevest/Enlightenment,tasn/enlightenment
6ce734489e2bef9002541cc45c29aad582e08f32
Analytics/SEGEcommerce.h
Analytics/SEGEcommerce.h
// // SEGEcommerce.h // Analytics // // Created by Travis Jeffery on 7/17/14. // Copyright (c) 2014 Segment.io. All rights reserved. // #import <Foundation/Foundation.h> @protocol SEGEcommerce <NSObject> - (void)viewedProduct; - (void)removedProduct; - (void)addedProduct; - (void)completedOrder; @end
// // SEGEcommerce.h // Analytics // // Created by Travis Jeffery on 7/17/14. // Copyright (c) 2014 Segment.io. All rights reserved. // #import <Foundation/Foundation.h> @protocol SEGEcommerce <NSObject> @optional - (void)viewedProduct:(NSDictionary *)properties; - (void)removedProduct:(NSDictionary *)properties;...
Fix ecommerce methods to take properties dictionary
Fix ecommerce methods to take properties dictionary Acked-by: Travis Jeffery <546b05909706652891a87f7bfe385ae147f61f91@travisjeffery.com>
C
mit
rudywen/analytics-ios,jlandon/analytics-ios,jtomson-mdsol/analytics-ios,hzalaz/analytics-ios,cfraz89/analytics-ios,jlandon/analytics-ios,operator/analytics-ios,orta/analytics-ios,hzalaz/analytics-ios,abodo-dev/analytics-ios,segmentio/analytics-ios,dbachrach/analytics-ios,dcaunt/analytics-ios,string-team/analytics-ios,l...
0ae1522b36e4f7fbea3770d108a10d4bc784d26f
include/franka/lowpass_filter.h
include/franka/lowpass_filter.h
// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #pragma once #include <cmath> /** * @file lowpass_filter.h * Contains functions for filtering signals with a low-pass filter. */ namespace franka { /** * Maximum cutoff frequency */ constexpr do...
// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #pragma once #include <cmath> /** * @file lowpass_filter.h * Contains functions for filtering signals with a low-pass filter. */ namespace franka { /** * Maximum cutoff frequency */ constexpr do...
Add NaN/Inf check for low-pass filter.
Add NaN/Inf check for low-pass filter.
C
apache-2.0
frankaemika/libfranka,frankaemika/libfranka,frankaemika/libfranka
22a04f32bae2446bd7ca32386592b386cbc5fe38
lib/gibber/gibber-namespaces.h
lib/gibber/gibber-namespaces.h
#define GIBBER_XMPP_NS_STREAM \ (const gchar *)"http://etherx.jabber.org/streams" #define GIBBER_XMPP_NS_TLS \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-tls" #define GIBBER_XMPP_NS_SASL_AUTH \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-sasl"
#define GIBBER_XMPP_NS_STREAM \ (const gchar *)"http://etherx.jabber.org/streams" #define GIBBER_XMPP_NS_TLS \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-tls" #define GIBBER_XMPP_NS_SASL_AUTH \ (const gchar *)"urn:ietf:params:xml:ns:xmpp-sasl" #define GIBBER_XMPP_NS_XHTML_IM \ (const gchar *)"http://jabber...
Add xhtml-im and w3c xhtml namespace
Add xhtml-im and w3c xhtml namespace 20070316212630-93b9a-bcdbd042585561b0f20076b5e7f5f1c41c1e2867.gz
C
lgpl-2.1
freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut
53da162a421fb6135dad4cfc197397bf527a9d6a
tests/regression/36-octapron/27-combine-forget-fun-lval.c
tests/regression/36-octapron/27-combine-forget-fun-lval.c
// SKIP PARAM: --sets ana.activated[+] octApron #include <assert.h> int f(int x) { return x + 1; } int main(void) { int y = 42; y = f(y); // combine should forget callee's y after substituting arg vars with args to avoid bottom in #ret substitute assert(y); return 0; }
Add test for octApron combine forgetting return assign in function
Add test for octApron combine forgetting return assign in function
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
7798b4a999726f6804a9968bc24f61365da7b1e0
ext/cap2/cap2.c
ext/cap2/cap2.c
#include <ruby.h> #include <errno.h> #include <sys/capability.h> static VALUE cap2_getpcaps(VALUE self, VALUE pid) { cap_t cap_d; ssize_t length; char *caps; VALUE result; Check_Type(pid, T_FIXNUM); cap_d = cap_get_pid(FIX2INT(pid)); if (cap_d == NULL) { rb_raise( rb_eRuntimeError, "Fa...
#include <ruby.h> #include <errno.h> #include <sys/capability.h> static VALUE cap2_getpcaps(VALUE self, VALUE pid) { cap_t cap_d; ssize_t length; char *caps; VALUE result; Check_Type(pid, T_FIXNUM); cap_d = cap_get_pid(FIX2INT(pid)); if (cap_d == NULL) { rb_raise( rb_eRuntimeError, "Fa...
Update error text in Cap2.getpcaps
Update error text in Cap2.getpcaps
C
mit
lmars/cap2,lmars/cap2
0a604550e4f39b0d40732bf6cefe143ddcd00091
alura/c/forca.c
alura/c/forca.c
#include <stdio.h> #include <string.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentati...
#include <stdio.h> #include <string.h> int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentati...
Update files, Alura, Introdução a C - Parte 2, Aula 2.6
Update files, Alura, Introdução a C - Parte 2, Aula 2.6
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
4b62610ef39e999c1328e884b01cc14c7dcd9591
core/alsp_src/generic/fpbasis.c
core/alsp_src/generic/fpbasis.c
/*===========================================================================* | fpbasis.c | Copyright (c) 1996-97 Applied Logic Systems, Inc. | | -- Floating point math abstractions | *===========================================================================*/ #include "defs.h" #include ...
/*===========================================================================* | fpbasis.c | Copyright (c) 1996-97 Applied Logic Systems, Inc. | | -- Floating point math abstractions | *===========================================================================*/ #include "defs.h" #include ...
Change for new config system
Change for new config system
C
mit
AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog
2baa46afd5b7156da9087010d41f05031d121dd8
conceitos/basicos/gerais/0x07_loops/while/example_while.c
conceitos/basicos/gerais/0x07_loops/while/example_while.c
/* * Author: Jhonatan Casale (jhc) * * Contact : jhonatan@jhonatancasale.com * : casale.jhon@gmail.com * : https://github.com/jhonatancasale * : https://twitter.com/jhonatancasale * : http://jhonatancasale.github.io/ * * Create date Wed 1 Mar 01:51:51 BRT 2017 * */ #include ...
Add while loop examples, really
Add while loop examples, really
C
apache-2.0
jhonatancasale/learning-c,jhonatancasale/learning-c,klaussjhc/learning-c
c5949064707026e60dd7f370870fd76be5f2c78a
gpu/include/GrGLConfig_chrome.h
gpu/include/GrGLConfig_chrome.h
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GL_IMG_multisampled_render_to_texture 0 #include <GLES2/gl2.h> #include <...
#ifndef GrGLConfig_chrome_DEFINED #define GrGLConfig_chrome_DEFINED #define GR_SUPPORT_GLES2 1 // gl2ext.h will define these extensions macros but Chrome doesn't provide // prototypes. #define GL_OES_mapbuffer 0 #define GL_IMG_multisampled_render_to_texture 0 #include <GLES2/gl2.h> #include <...
Make chrome use the static square vb when drawing rects.
Make chrome use the static square vb when drawing rects. Review URL: http://codereview.appspot.com/4280053/
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
f749ea43d24a3ee328ee77c6de3838f3fef11d30
beaksh.c
beaksh.c
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include "linenoise.h" char* findPrompt(); void executeCommand(const char *text); int main() { int childPid; int child_status; char *line; char *prompt; prompt = findPrompt(); while((line = linenoise(prompt)) != NULL) { i...
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/param.h> #include "linenoise.h" #define HISTORY_FILE ".beaksh_history" char* findPrompt(); char* getHistoryPath(); void executeCommand(const char *text); int main() { int childPid; int child_status; char *line; char ...
Add persistent history to shell
Add persistent history to shell Closes #3.
C
mit
futureperfect/beaksh
df0776acc394cf21bac9f0d67d01250d04ba2f1a
Epicness.c
Epicness.c
#pragma config(Sensor, dgtl4, LeftEncoder, sensorQuadEncoder) #pragma config(Sensor, dgtl11, RightEncoder, sensorQuadEncoder) #pragma config(Motor, port8, Shooter8, tmotorVex393_MC29, openLoop) #pragma config(Motor, port9, Shooter9, tmotorVex393_MC29, openLoop, reversed) //*!!Code ...
Add a shooter program, and speed reader.
Add a shooter program, and speed reader.
C
mit
UpperPerkRobotics/test-repo
43c33cfb95bd6b94e459b1ee64449a787b92a0aa
test/com/facebook/buck/features/rust/testdata/cxx_with_rust_dep/main.c
test/com/facebook/buck/features/rust/testdata/cxx_with_rust_dep/main.c
#include <stdio.h> extern void helloer(void); int main() { printf("Calling helloer\n"); helloer(); printf("Helloer called\n"); }
#include <stdio.h> extern void helloer(void); int main() { printf("Calling helloer\n"); helloer(); printf("Helloer called\n"); return 0; }
Fix test failures with GCC
rust: Fix test failures with GCC Summary: GCC 4.8.5 (and likely other versions of GCC) compiles C code as C89 (-std=gnu89) by default. In C89, if main does not explicitly return, the program's exit code is unspecified. This means the hello program in cxx_with_rust_dep can return non-zero on success. Many of Buck's te...
C
apache-2.0
brettwooldridge/buck,romanoid/buck,brettwooldridge/buck,SeleniumHQ/buck,facebook/buck,JoelMarcey/buck,Addepar/buck,SeleniumHQ/buck,romanoid/buck,rmaz/buck,romanoid/buck,brettwooldridge/buck,nguyentruongtho/buck,zpao/buck,facebook/buck,JoelMarcey/buck,nguyentruongtho/buck,Addepar/buck,brettwooldridge/buck,rmaz/buck,Sele...
06be45bd2a250ccba120c46c673b7e4a5242947e
api/inc/tour.h
api/inc/tour.h
#ifndef __TOURH__ #define __TOURH__ #include <stdio.h> #include <stdlib.h> #define tour int* #define city int //initializes a new tour tour create_tour(int ncities); //returns true if the tour t is shorter than //a distance indicated by dist int is_shtr(tour t, int dist); //defines the starter point of a tour voi...
#ifndef __TOURH__ #define __TOURH__ #include <stdio.h> #include <stdlib.h> typedef int* tour; typedef int city; //inicializa um tour tour create_tour(int ncities); //popula um tour pre-definido com cidades void populate_tour(tour t, int ncities); //retorna true se a distancia total do //tour t for menor que dist i...
Change type creation from define to typedef.
Change type creation from define to typedef.
C
apache-2.0
frila/caixeiro
53c85fb989a60ef015bbbe3a2541b9ff1020ef15
components/libc/dlib/sys/types.h
components/libc/dlib/sys/types.h
#ifndef __TYPES_H__ #define __TYPES_H__ #include <stdint.h> #include <rtthread.h> typedef rt_int32_t clockid_t; typedef rt_int32_t key_t; /* Used for interprocess communication. */ typedef rt_int32_t pid_t; /* Used for process IDs and process group IDs. */ typedef signed long ssize_t; /* Used for a cou...
#ifndef __TYPES_H__ #define __TYPES_H__ #include <stdint.h> #include <rtthread.h> typedef rt_int32_t clockid_t; typedef rt_int32_t key_t; /* Used for interprocess communication. */ typedef rt_int32_t pid_t; /* Used for process IDs and process group IDs. */ typedef signed long ssize_t; /* Used for a cou...
Add missing definition of mode_t
[libc][dlib] Add missing definition of mode_t For using pthread with IAR tool chain
C
apache-2.0
ArdaFu/rt-thread,ArdaFu/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,FlyLu/rt-thread,FlyLu/rt-thread,yongli3/rt-thread,yongli3/rt-thread,FlyLu/rt-thread,gbcwbz/rt-thread,FlyLu/rt-thread,FlyLu/rt-thread,wolfgangz2013/rt-thread,weety/rt-thread,AubrCool/rt-thread,AubrCool/rt-thread,AubrCool/rt-thread,yongli3/rt-thre...
3059f29d3aca2555583bd8c15e94a5840eaba11b
src/condor_includes/condor_fix_stdio.h
src/condor_includes/condor_fix_stdio.h
#ifndef FIX_STDIO_H #define FIX_STDIO_H #include <stdio.h> /* For some reason the stdio.h on Ultrix 4.3 fails to provide a prototype for pclose() if _POSIX_SOURCE is defined - even though it does provide a prototype for popen(). */ #if defined(ULTRIX43) #if defined(__cplusplus) extern "C" { #endif #if define...
#ifndef FIX_STDIO_H #define FIX_STDIO_H #include <stdio.h> #if defined(__cplusplus) extern "C" { #endif /* For some reason the stdio.h on OSF1 fails to provide prototypes for popen() and pclose() if _POSIX_SOURCE is defined. */ #if defined(OSF1) #if defined(__STDC__) || defined(__cplusplus) FILE *popen( char ...
Add prototypes for popen()/pclose() for OSF1 machines.
Add prototypes for popen()/pclose() for OSF1 machines.
C
apache-2.0
djw8605/htcondor,clalancette/condor-dcloud,bbockelm/condor-network-accounting,htcondor/htcondor,htcondor/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,djw8605/condor,mambelli/osg-bosco-marco,neurodebian/htcondor,neurodebian/htcondor,djw8605/condor,htcondor/htcondor,clalancette/condor-dcloud,...
7f4192ca175b3d5fc718d4d9c49ce658bc8f3deb
src/auth/userdb-passwd.c
src/auth/userdb-passwd.c
/* Copyright (C) 2002-2003 Timo Sirainen */ #include "config.h" #undef HAVE_CONFIG_H #ifdef USERDB_PASSWD #include "common.h" #include "userdb.h" #include <pwd.h> static void passwd_lookup(const char *user, userdb_callback_t *callback, void *context) { struct user_data data; struct passwd *pw; pw = getpwn...
/* Copyright (C) 2002-2003 Timo Sirainen */ #include "config.h" #undef HAVE_CONFIG_H #ifdef USERDB_PASSWD #include "common.h" #include "userdb.h" #include <pwd.h> static void passwd_lookup(const char *user, userdb_callback_t *callback, void *context) { struct user_data data; struct passwd *pw; size_t len; ...
Support wu-ftpd-like chrooting in /etc/passwd. If home directory ends with "/./", it's chrooted to.
Support wu-ftpd-like chrooting in /etc/passwd. If home directory ends with "/./", it's chrooted to.
C
mit
Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,LTD-Beget/dovecot
e16b6dec212a86fb65db026ddcfcdd89efd30ec5
master.c
master.c
#include "master.h" //Master configurations MODBUSMasterStatus MODBUSMaster; void MODBUSParseResponse( uint8_t *Frame, uint8_t FrameLength ) { //This function parses response from master //Calling it will lead to losing all data and exceptions stored in MODBUSMaster (space will be reallocated) //Allocate memory f...
#include "master.h" //Master configurations MODBUSMasterStatus MODBUSMaster; void MODBUSParseException( union MODBUSParser *Parser ) { //Parse exception frame and write data to MODBUSMaster structure //Allocate memory for exception parser union MODBUSException *Exception = malloc( sizeof( union MODBUSException ) ...
Add exceptions parsing (not tested yet)
Add exceptions parsing (not tested yet)
C
mit
Jacajack/modlib
687d7dd560c87624776c33d62b4646b6824bf3c4
Arduino/libraries/MavlinkForArduino/MavlinkForArduino.h
Arduino/libraries/MavlinkForArduino/MavlinkForArduino.h
//Move this directory to ~/sketchbook/libraries // and clone https://github.com/mavlink/c_library.git inside // git clone https://github.com/mavlink/c_library.git ~/sketchbook/libraries/MavlinkForArduino #include "c_library/ardupilotmega/mavlink.h"
//Move this directory to ~/sketchbook/libraries // and clone https://github.com/mavlink/c_library_v2.git inside // git clone https://github.com/mavlink/c_library_V2.git ~/Arduino/libraries/MavlinkForArduino/c_library_v2 #include "c_library_v2/ardupilotmega/mavlink.h"
Use updated mavlink library v2
Use updated mavlink library v2
C
mit
baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite
04ebbdd9ecb46461d3a04c4c5c010136aeb6a3ba
Include/allobjects.h
Include/allobjects.h
/* "allobjects.c" -- Source for precompiled header "allobjects.h" */ #include <stdio.h> #include "string.h" #include "PROTO.h" #include "object.h" #include "objimpl.h" #include "intobject.h" #include "floatobject.h" #include "stringobject.h" #include "tupleobject.h" #include "listobject.h" #include "dictobject.h" #...
/* "allobjects.c" -- Source for precompiled header "allobjects.h" */ #include <stdio.h> #include <string.h> #include "PROTO.h" #include "object.h" #include "objimpl.h" #include "intobject.h" #include "floatobject.h" #include "stringobject.h" #include "tupleobject.h" #include "listobject.h" #include "dictobject.h" #...
Include <string.h> instead of "string.h".
Include <string.h> instead of "string.h".
C
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
d02f1c16e441c48e450d05ac145c53282ebd4aa4
mordor/streams/limited.h
mordor/streams/limited.h
#ifndef __MORDOR_LIMITED_STREAM_H__ #define __MORDOR_LIMITED_STREAM_H__ // Copyright (c) 2009 - Mozy, Inc. #include "filter.h" namespace Mordor { class LimitedStream : public MutatingFilterStream { public: typedef boost::shared_ptr<LimitedStream> ptr; public: LimitedStream(Stream::ptr parent, long long size...
#ifndef __MORDOR_LIMITED_STREAM_H__ #define __MORDOR_LIMITED_STREAM_H__ // Copyright (c) 2009 - Mozy, Inc. #include "filter.h" namespace Mordor { class LimitedStream : public MutatingFilterStream { public: typedef boost::shared_ptr<LimitedStream> ptr; public: LimitedStream(Stream::ptr parent, long long size...
Support for resetting a LimitedStream
Support for resetting a LimitedStream Both current position, and total length. Change-Id: Ia484e8b91e98d8cd2153496cbb1d5b183dacb14f Reviewed-on: https://gerrit.dechocorp.com/8980 Reviewed-by: Punky Brewster (labs admin) <4fefd66e0791c836d3da15985fe778b56ecb4b1b@example.com> Reviewed-by: Jeremy Stanley <b3f594e10a9edc...
C
bsd-3-clause
mozy/mordor,cgaebel/mordor,ccutrer/mordor,cgaebel/mordor,adfin/mordor,ccutrer/mordor,mtanski/mordor,mozy/mordor,mtanski/mordor,adfin/mordor,ccutrer/mordor,mtanski/mordor,mozy/mordor,adfin/mordor
cd6ab8cc43ee0171d90bf6a0b94b19e12fb831c5
test/CodeGen/2004-02-13-Memset.c
test/CodeGen/2004-02-13-Memset.c
// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3 #ifndef memset void *memset(void*, int, unsigned long); #endif #ifndef bzero void bzero(void*, unsigned long); #endif void test(int* X, char *Y) { // CHECK: call i8* llvm.memset memset(X, 4, 1000); // CHECK: call void bzero bzero(Y, 100); }
// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3 typedef __SIZE_TYPE__ size_t; void *memset(void*, int, size_t); void bzero(void*, size_t); void test(int* X, char *Y) { // CHECK: call i8* llvm.memset memset(X, 4, 1000); // CHECK: call void bzero bzero(Y, 100); }
Use the correct definition for memset.
Use the correct definition for memset. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@136188 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
d3e7c3a0a39b8214b7c015566b67acba8ae3bfa7
src/ufrn_bti_itp/recursividade_e_modularizacao/q3_occurrences.c
src/ufrn_bti_itp/recursividade_e_modularizacao/q3_occurrences.c
#include <stdio.h> int ssearch(int number, int target){ if (number == 0) if (target == 0) return 1; else return 0; else return ssearch(number/10, target) + (number % 10 == target); } int main(){ printf("%d\n", ssearch(762021192, 2)); return 0; }
Resolve q3 (pythonic way? so close)
Resolve q3 (pythonic way? so close)
C
unknown
Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs
32e9ffa0d946ff15494526ef91a3c6ca6dd5b4e4
Pod/VOKAlertHelper/VOKAlertHelper.h
Pod/VOKAlertHelper/VOKAlertHelper.h
// // VOKAlertHelper.h // VOKUtilities // // Created by Rachel Hyman on 6/15/15. // Copyright (c) 2015 Vokal. All rights reserved. // #import <UIKit/UIKit.h> #import <VOKAlertAction.h> typedef void(^VOKAlertHelperActionBlock)(void); NS_ASSUME_NONNULL_BEGIN @interface VOKAlertHelper : NSObject /** * Displays...
// // VOKAlertHelper.h // VOKUtilities // // Created by Rachel Hyman on 6/15/15. // Copyright (c) 2015 Vokal. All rights reserved. // #import <UIKit/UIKit.h> #import "VOKAlertAction.h" typedef void(^VOKAlertHelperActionBlock)(void); NS_ASSUME_NONNULL_BEGIN @interface VOKAlertHelper : NSObject /** * Displays...
Use quotes for local include
Use quotes for local include
C
mit
designatednerd/VOKUtilities,vokal/VOKUtilities,designatednerd/VOKUtilities,designatednerd/VOKUtilities,brockboland/VOKUtilities,brockboland/VOKUtilities,vokal/VOKUtilities,vokal/VOKUtilities,brockboland/VOKUtilities
8d066a64a7a835e3b5b173fa637b2d66e2c3e2c2
WikipediaUnitTests/Code/WMFDisambiguationPagesViewController.h
WikipediaUnitTests/Code/WMFDisambiguationPagesViewController.h
#import "WMFArticleListTableViewController.h" @interface WMFDisambiguationPagesViewController : WMFArticleListTableViewController @property (nonatomic, strong, readonly) MWKArticle* article; - (instancetype)initWithArticle:(MWKArticle*)article dataStore:(MWKDataStore*)dataStore; @end
#import "WMFArticleListDataSourceTableViewController.h" @interface WMFDisambiguationPagesViewController : WMFArticleListDataSourceTableViewController @property (nonatomic, strong, readonly) MWKArticle* article; - (instancetype)initWithArticle:(MWKArticle*)article dataStore:(MWKDataStore*)dataStore; @end
Update disambiguation VC base class
Update disambiguation VC base class
C
mit
montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,anirudh24seven/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,mo...
63257791efa4c36b614386ab3e32f8d5f0e3a715
DataSet.h
DataSet.h
#ifndef DATASET_H #define DATASET_H #include "Record.h" #include "Filter.h" #include "RIVVector.h" #include <map> #include <string> #include <vector> template<typename... Ts> class RIVDataSet { public: RIVVector<RIVRecord<Ts...>> records; RIVVector<Filter*> filters; }; //class RIVDataSet //{ //private ...
#ifndef DATASET_H #define DATASET_H #include "Record.h" #include "Filter.h" #include "RIVVector.h" #include <map> #include <string> #include <vector> template<typename... Ts> class RIVDataSet { public: RIVVector<RIVRecord<Ts...>> records; }; //class RIVDataSet //{ //private : // //map<string,vector<int>> int_re...
Revert "Introduced a neat vector class"
Revert "Introduced a neat vector class" This reverts commit 15b0b1147ad0f2f77ae9b485ceb323c84f8d439f.
C
mit
gerardsimons/pbr-visualizer,gerardsimons/pbr-visualizer,gerardsimons/pbr-visualizer,gerardsimons/pbr-visualizer
46033b0be1cce8f444eb8e80e1b26677f161194f
test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c
test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c
typedef struct { union { struct { } __attribute((packed)); }; } fenv_t; const fenv_t _FE_DFL_ENV = {{{ 0, 0, 0, 0 }}};
// RUN: %llvmgcc -S %s typedef struct { union { struct { } __attribute((packed)); }; } fenv_t; const fenv_t _FE_DFL_ENV = {{{ 0, 0, 0, 0 }}};
Add a RUN line to the test case to make it functional. <rdar://problem/9055247>
Add a RUN line to the test case to make it functional. <rdar://problem/9055247> git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@127312 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbym...
571d83314ae9424b23d35ef1b7c3efce6403aad3
sha/sha.h
sha/sha.h
/***************************************************************************/ /* sha.h */ /* */ /* SHA-1 code header file. */ /* Taken from the public domain implementation by Peter C. Gutmann */ /* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */ /***************************...
/***************************************************************************/ /* sha.h */ /* */ /* SHA-1 code header file. */ /* Taken from the public domain implementation by Peter C. Gutmann */ /* on 2 Sep 1992, modified by Carl Ellison to be SHA-1. */ /***************************...
Use uint8_t and uint32_t in SHA-1 implementation.
Use uint8_t and uint32_t in SHA-1 implementation.
C
bsd-3-clause
wilx/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg,rogerapras/apg,rogerapras/apg,wilx/apg
8b00f90e146db2f555897d7aa66bc7a403883f74
src/diskusage.h
src/diskusage.h
#pragma once #include <cstdint> #include <string> class SystemError { public: SystemError(int errorno, const std::string& syscall, const std::string& message, const std::string& path) : m_errorno(errorno), m_syscall(syscall), m_message(message), m_path(path) {} int errorno() const { return m_erro...
#pragma once #include <stdint.h> #include <string> class SystemError { public: SystemError(int errorno, const std::string& syscall, const std::string& message, const std::string& path) : m_errorno(errorno), m_syscall(syscall), m_message(message), m_path(path) {} int errorno() const { return m_err...
Use stdint.h instead of cstdint
Use stdint.h instead of cstdint Fixes #16.
C
mit
jduncanator/node-diskusage,jduncanator/node-diskusage,jduncanator/node-diskusage
b5ae6109ae7151d1fb91009a205bd3d470323f24
src/hpctoolkit/csprof/unwind/x86-family/x86-unwind-support.c
src/hpctoolkit/csprof/unwind/x86-family/x86-unwind-support.c
#include <ucontext.h> #include "x86-decoder.h" #include "unwind.h" void unw_init_arch(void) { x86_family_decoder_init(); } void unw_init_cursor_arch(ucontext_t* context, unw_cursor_t *cursor) { mcontext_t * mctxt = &(context->uc_mcontext); #ifdef __CRAYXT_CATAMOUNT_TARGET cursor->pc = (void *) mctxt->sc_ri...
#include <ucontext.h> #include <assert.h> #include "x86-decoder.h" #include "unwind.h" void unw_init_arch(void) { x86_family_decoder_init(); } void unw_init_cursor_arch(ucontext_t* context, unw_cursor_t *cursor) { mcontext_t * mctxt = &(context->uc_mcontext); #ifdef __CRAYXT_CATAMOUNT_TARGET cursor->pc = (v...
Include <assert.h> to prevent linking error (unknown symbol 'assert').
Include <assert.h> to prevent linking error (unknown symbol 'assert').
C
bsd-3-clause
zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit111,zc...
c12e2945e24c544883ce43c49803e5f16b66a96b
Sample/SampleApp/ViewController.h
Sample/SampleApp/ViewController.h
#import <UIKit/UIKit.h> @interface ViewController : UIViewController <UIAlertViewDelegate, UIActionSheetDelegate> @property (nonatomic, strong) Class alertControllerClass; @property (nonatomic, strong) IBOutlet UIButton *showAlertButton; @property (nonatomic, strong) IBOutlet UIButton *showActionSheetButton; @propert...
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, strong) Class alertControllerClass; @property (nonatomic, strong) IBOutlet UIButton *showAlertButton; @property (nonatomic, strong) IBOutlet UIButton *showActionSheetButton; @property (nonatomic, assign) BOOL alertDefaultAction...
Remove unused protocol conformance from sample
Remove unused protocol conformance from sample
C
mit
foulkesjohn/MockUIAlertController,yas375/MockUIAlertController,carabina/MockUIAlertController
9d4a59f2cab4179f3ff5b73477044f2f9289d5b8
thread/future.h
thread/future.h
#ifndef FUTURE_H_INCLUDED #define FUTURE_H_INCLUDED #include <boost/thread/thread.hpp> #include <boost/thread/future.hpp> #include <boost/shared_ptr.hpp> #include <boost/utility/result_of.hpp> namespace thread { template<typename Func> boost::shared_future<typename boost::result_of<Func()>::type> submit_task(Func ...
#ifndef FUTURE_H_INCLUDED #define FUTURE_H_INCLUDED #include <boost/thread/thread.hpp> #include <boost/thread/future.hpp> #include <boost/shared_ptr.hpp> #include <boost/utility/result_of.hpp> namespace thread { template<typename Func> boost::shared_future<typename boost::result_of<Func()>::type> submit_t...
Use boost::move rather than std::move which seems to hate some versions ofr G++
Use boost::move rather than std::move which seems to hate some versions ofr G++
C
bsd-2-clause
Kazade/kazbase,Kazade/kazbase
b7d35893186564bf8c4e706e5d05df06b23d2dc7
test/CodeGen/functions.c
test/CodeGen/functions.c
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s int g(); int foo(int i) { return g(i); } int g(int i) { return g(i); } // rdar://6110827 typedef void T(void); void test3(T f) { f(); } int a(int); int a() {return 1;} // RUN: grep 'define void @f0()' %t void f0() {} void f1(); // RUN: grep 'call void @f...
// RUN: %clang_cc1 %s -emit-llvm -o - -verify | FileCheck %s int g(); int foo(int i) { return g(i); } int g(int i) { return g(i); } // rdar://6110827 typedef void T(void); void test3(T f) { f(); } int a(int); int a() {return 1;} void f0() {} // CHECK: define void @f0() void f1(); void f2(void) { // CHECK: ...
Fix test case and convert fully to FileCheck.
Fix test case and convert fully to FileCheck. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97032 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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
fcc92cf5633589068313897d39036686ec32e875
src/driver/utility.h
src/driver/utility.h
#pragma once #include <fstream> #include <llvm/ADT/StringRef.h> inline std::ostream& operator<<(std::ostream& stream, llvm::StringRef string) { return stream.write(string.data(), string.size()); } template<typename... Args> [[noreturn]] inline void error(SrcLoc srcLoc, Args&&... args) { std::cout << srcLoc.f...
#pragma once #include <fstream> #include <llvm/ADT/StringRef.h> inline std::ostream& operator<<(std::ostream& stream, llvm::StringRef string) { return stream.write(string.data(), string.size()); } template<typename... Args> [[noreturn]] inline void error(SrcLoc srcLoc, Args&&... args) { if (srcLoc.file) { ...
Fix error() if srcLoc.file is null or !srcLoc.isValid()
Fix error() if srcLoc.file is null or !srcLoc.isValid()
C
mit
emlai/delta,emlai/delta,emlai/delta,emlai/delta,delta-lang/delta,delta-lang/delta,delta-lang/delta,delta-lang/delta
0e8f41582505e156243a37100568f94f158ec978
modules/electromagnetics/test/include/functions/MMSTestFunc.h
modules/electromagnetics/test/include/functions/MMSTestFunc.h
#ifndef MMSTESTFUNC_H #define MMSTESTFUNC_H #include "Function.h" #include "FunctionInterface.h" class MMSTestFunc; template <> InputParameters validParams<MMSTestFunc>(); /** * Function of RHS for manufactured solution in spatial_constant_helmholtz test */ class MMSTestFunc : public Function, public FunctionInt...
#pragma once #include "Function.h" #include "FunctionInterface.h" class MMSTestFunc; template <> InputParameters validParams<MMSTestFunc>(); /** * Function of RHS for manufactured solution in spatial_constant_helmholtz test */ class MMSTestFunc : public Function, public FunctionInterface { public: MMSTestFunc(...
Convert to pragma once in test functions
Convert to pragma once in test functions refs #21085
C
lgpl-2.1
laagesen/moose,harterj/moose,andrsd/moose,sapitts/moose,milljm/moose,milljm/moose,idaholab/moose,lindsayad/moose,harterj/moose,idaholab/moose,andrsd/moose,sapitts/moose,harterj/moose,sapitts/moose,dschwen/moose,andrsd/moose,dschwen/moose,milljm/moose,sapitts/moose,dschwen/moose,laagesen/moose,lindsayad/moose,andrsd/moo...
2ec53d6f185a4a3e91ea6a2b879089eeac7896dd
storage/src/vespa/storage/bucketdb/minimumusedbitstracker.h
storage/src/vespa/storage/bucketdb/minimumusedbitstracker.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <algorithm> #include <vespa/document/bucket/bucketid.h> namespace storage { /** * Utility class for keeping track of the lowest used bits count seen * across a set of buckets. * * Not th...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/bucket/bucketid.h> #include <atomic> namespace storage { /** * Utility class for keeping track of the lowest used bits count seen * across a set of buckets. * * Thread sa...
Make MinimumUsedBitsTracker thread safe for both reads and writes
Make MinimumUsedBitsTracker thread safe for both reads and writes
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
03cb0d30b60c3702edc0752fe535abb1ae41a32d
src/controllers/chooseyourcat.c
src/controllers/chooseyourcat.c
#include "debug.h" #include "input.h" #include "scene.h" #include "sound.h" #include "controller.h" #include "controllers/chooseyourcat.h" #include <stdio.h> #include <stdlib.h> #include <stdbool.h> NEW_CONTROLLER(ChooseYourCat); static void p1_confirm() { Sound_playSE(FX_SELECT); Scene_close(); Scene_l...
#include "debug.h" #include "input.h" #include "scene.h" #include "sound.h" #include "controller.h" #include "scenes/chooseyourcat.h" #include "controllers/chooseyourcat.h" #include <stdio.h> #include <stdlib.h> #include <stdbool.h> static int P1_HAS_CHOSEN = false; /* false -> P1 escolhe o gato; true -> P2 esc...
Add step for each player on choose your cat scene
Add step for each player on choose your cat scene
C
mit
OrenjiAkira/spacegame,OrenjiAkira/spacegame,OrenjiAkira/spacegame
2240e7ad952671f460d73f1edcb3052d6cd84b5a
chrome/browser/extensions/convert_web_app.h
chrome/browser/extensions/convert_web_app.h
// Copyright (c) 2010 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 CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ #define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ #pragma once #include <string> #include "b...
// Copyright (c) 2010 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 CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ #define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ #pragma once #include <string> #include "b...
Revert 64847 - Clang fix.
Revert 64847 - Clang fix. TBR=evan@chromium.org Review URL: http://codereview.chromium.org/4300003 git-svn-id: http://src.chromium.org/svn/trunk/src@64850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 61481afd2d1e81e91b533a55dc544a62738ba663
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
ba9708cea07eea6ea71d4ae97f417b2ad11a68f4
examples/clients/TrackerState.c
examples/clients/TrackerState.c
/** @file @brief Implementation @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ /* // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) */ /* Internal Includes */ #include <...
Add c version of trackerstate example
Add c version of trackerstate example
C
apache-2.0
feilen/OSVR-Core,leemichaelRazer/OSVR-Core,Armada651/OSVR-Core,leemichaelRazer/OSVR-Core,OSVR/OSVR-Core,leemichaelRazer/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,d235j/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,Armada651/O...
c216edbcc760e7b2dc7cb652f179f96b0bcde17c
test/CodeGen/parameter-passing.c
test/CodeGen/parameter-passing.c
// Check the various ways in which the three classes of values // (scalar, complex, aggregate) interact with parameter passing // (function entry, function return, call argument, call result). // RUN: clang %s -triple i386-unknown-unknown -O3 -emit-llvm -o %t && // RUN: not grep '@g0' %t && // FIXME: Enable once PR34...
Add bare bones test that parameter passing is consistent for scalar/complex/aggregate cases. - Currently disabled for x86_64, triggering a misoptimization (PR3489).
Add bare bones test that parameter passing is consistent for scalar/complex/aggregate cases. - Currently disabled for x86_64, triggering a misoptimization (PR3489). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@63864 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
97fb6f33f7ff850c2ce8a52e1f2ad9eb520d71e0
test/CodeGen/arm-vector-align.c
test/CodeGen/arm-vector-align.c
// RUN: %clang_cc1 -triple thumbv7-apple-darwin \ // RUN: -target-abi apcs-gnu \ // RUN: -target-cpu cortex-a8 \ // RUN: -mfloat-abi soft \ // RUN: -target-feature +soft-float-abi \ // RUN: -ffreestanding \ // RUN: -emit-llvm -w -o - %s | FileCheck %s #include <arm_neon.h> // Radar 9311427: Check that ali...
Add a testcase for svn r129964 (Neon load/store intrinsic alignments).
Add a testcase for svn r129964 (Neon load/store intrinsic alignments). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@129979 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
f8c16eb52a703986b5448c23fd02838af152978a
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h
// Copyright 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #include "native_client/src/inclu...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_ #include "native_client/src/i...
Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
Declare PPB_Core as a struct, not a class. (Prevents Clang warning) Review URL: http://codereview.chromium.org/8002017 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@102565 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
robclark/chromium,hujiajie/pa-chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,robclark/chromium,anirudhSK/chromium,littlstar/chromium.src,dednal/chromium.src,Chilledheart/chromium,dednal/chromium.src,dednal/chromium.src,keishi/chromium,patrickm/chromium.src,ChromiumWebApps/chromiu...
dbb4fc6fb1f9967305f5490969a2b05c659d4b51
Problem039/C/solution_1.c
Problem039/C/solution_1.c
#include <stdio.h> #define MAX 1000 int main() { int i, j, k, maxP; int ps[1001]; for(i = 1; i <= MAX; i++) { for(j = i;j <= MAX; j++) { for(k = j; (k * k) < (i * i + j * j); k++); if((i * i + j * j) == (k * k) && (i + j + k) <= MAX) { ps[i+j+k]++; ...
#include <stdio.h> #define MAX 1000 int main() { int i, j , k, maxP = 1; int ps[1001]; for (i=0; i <= MAX; ps[++i] =0); for(i = 1; i <= MAX; i++) { for(j = i;j <= MAX; j++) { for(k = j; (k * k) < (i * i + j * j); k++); if((i * i + j * j) == (k * k) && (i + j + k) <= MA...
Fix C solution for Problem039
Fix C solution for Problem039 The Author forgot to explicitily initialize the vector elements with zeros. On my computer, without this, I get the wrong answer. BTW, if maxP is not defined before, I don't even get a wrong answer. A beatiful segmentation fault is raised.
C
mit
DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectEuler,DestructHub/ProjectE...
a6b6814f07cfb18f2203584c015a5a93da8ad9d5
LYCategory/Classes/_Foundation/_Work/NSString+Convert.h
LYCategory/Classes/_Foundation/_Work/NSString+Convert.h
// // NSString+Convert.h // LYCATEGORY // // CREATED BY LUO YU ON 2016-11-04. // COPYRIGHT (C) 2016 LUO YU. ALL RIGHTS RESERVED. // #import <Foundation/Foundation.h> @interface NSString (Convert) - (NSString *)encodingURL; @end
// // NSString+Convert.h // LYCATEGORY // // CREATED BY LUO YU ON 2016-11-04. // COPYRIGHT (C) 2016 LUO YU. ALL RIGHTS RESERVED. // #import <Foundation/Foundation.h> @interface NSString (Convert) - (NSString *)encodingURL; - (NSString *)pinyin; @end
Add : string convert to pinyin
Add : string convert to pinyin
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
b0411affebefe3ed78dbeb60637d9730159a5d99
tools/cncframework/templates/unified_c_api/common/StepFunc.c
tools/cncframework/templates/unified_c_api/common/StepFunc.c
{% import "common_macros.inc.c" as util with context -%} {% set stepfun = g.stepFunctions[targetStep] -%} #include "{{g.name}}.h" /** * Step function defintion for "{{stepfun.collName}}" */ void {{util.qualified_step_name(stepfun)}}({{ util.print_tag(stepfun.tag, typed=True) }}{{ util.print_bindings(stepfun...
{% import "common_macros.inc.c" as util with context -%} {% set stepfun = g.stepFunctions[targetStep] -%} #include "{{g.name}}.h" /** * Step function definition for "{{stepfun.collName}}" */ void {{util.qualified_step_name(stepfun)}}({{ util.print_tag(stepfun.tag, typed=True) }}{{ util.print_bindings(stepfu...
Fix typo in step function comment
Fix typo in step function comment
C
bsd-3-clause
habanero-rice/cnc-framework,habanero-rice/cnc-framework,chamibuddhika/cnc-framework,habanero-rice/cnc-framework,habanero-rice/cnc-framework,chamibuddhika/cnc-framework,habanero-rice/cnc-framework,habanero-rice/cnc-framework
fc512aaf3562cf8434e63b64c0555e0e6e8d2888
src/exercise118.c
src/exercise118.c
/* Exercise 2-18: Write a program to remove trailing blanks and tabs from each * line of input, and to delete entirely blank lines. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> struct buffer_node { int32_t data; struct buffer_node *next_node; }; void deleteBuffer(struct buffer_node **buffer_hea...
Add solution to Exercise 1-18.
Add solution to Exercise 1-18.
C
unlicense
damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions
7208a32b3dfb6cdd73c509add8378a20b31bb5a7
libyaul/scu/bus/cpu/cpu_slave.c
libyaul/scu/bus/cpu/cpu_slave.c
/* * Copyright (c) 2012-2016 * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com */ #include <sys/cdefs.h> #include <smpc/smc.h> #include <cpu/instructions.h> #include <cpu/frt.h> #include <cpu/intc.h> #include <cpu/map.h> #include <cpu/slave.h> static void _slave_entry(void); static void _default...
/* * Copyright (c) 2012-2016 * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com */ #include <sys/cdefs.h> #include <smpc/smc.h> #include <cpu/instructions.h> #include <cpu/frt.h> #include <cpu/intc.h> #include <cpu/map.h> #include <cpu/slave.h> static void _slave_entry(void); static void _defaul...
Mark _slave_entry to never return
Mark _slave_entry to never return
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul