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 |
|---|---|---|---|---|---|---|---|---|---|
255a42b67118fc7ee69a5a1a139a87a9de1da98d | include/relay-exp.h | include/relay-exp.h | #ifndef _RELAY_EXP_H_
#define _RELAY_EXP_H_
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <onion-mcp23008-driver.h>
#define RELAY_EXP_ADDR_SWITCH_NUM 3
#define RELAY_EXP_ADDR_SWITCH_DEFAULT_VAL "000"
// type definitions
typedef enum e_RelayDriverChannels {
RELAY_EXP_CHANNE... | #ifndef _RELAY_EXP_H_
#define _RELAY_EXP_H_
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <onion-mcp23008-driver.h>
#define RELAY_EXP_ADDR_SWITCH_NUM 3
#define RELAY_EXP_ADDR_SWITCH_DEFAULT_VAL "000"
// type definitions
typedef enum e_RelayDriverChannels {
RELAY_EXP_CHANNE... | Fix typo on e_RelayDriverChannels declaration | Fix typo on e_RelayDriverChannels declaration
| C | agpl-3.0 | OnionIoT/i2c-exp-driver,OnionIoT/i2c-exp-driver,OnionIoT/i2c-exp-driver,OnionIoT/i2c-exp-driver,OnionIoT/i2c-exp-driver |
5b6bfd2202b9ad7a3eafd0585ce5c37dd6f5d91f | tests/test_queue.c | tests/test_queue.c | #include "mbb/test.h"
#include "mbb/queue.h"
#include "mbb/debug.h"
char *test_enqueue_dequeue()
{
int i;
MQUE_DEFINE_STRUCT(int, 5) queue;
MQUE_INITIALISE(&queue);
MUNT_ASSERT(MQUE_IS_EMPTY(&queue));
for (i = 1; i <= 5; i++) {
MUNT_ASSERT(!MQUE_IS_FULL(&queue));
MQUE_ENQUEUE(&queue, i);
}
for (i = 1; ... | #include "mbb/test.h"
#include "mbb/queue.h"
#include "mbb/debug.h"
char *test_enqueue_dequeue()
{
int i;
MQUE_DEFINE_STRUCT(int, 5) queue;
MQUE_INITIALISE(&queue);
MUNT_ASSERT(MQUE_IS_EMPTY(&queue));
for (i = 1; i <= 5; i++) {
MUNT_ASSERT(!MQUE_IS_FULL(&queue));
MQUE_ENQUEUE(&queue, i);
}
for (i = 1; ... | Check enqueued values in unit test | Check enqueued values in unit test
| C | mit | jawebada/libmbb,jawebada/libmbb,jawebada/libmbb,jawebada/libmbb |
623e78434cda7df52e88fd27521626dd5182021f | src/config.h | src/config.h | #pragma once
#include <pebble.h>
#define BG_COLOR GColorWhite
#ifdef PBL_ROUND
#define ACTION_BAR_WIDTH_WITH_GAP (ACTION_BAR_WIDTH + 12)
#else
#define ACTION_BAR_WIDTH_WITH_GAP (ACTION_BAR_WIDTH + 2)
#endif
#define BPM_DEFAULT_BPM_T 1200
#define BPM_FONT FONT_KEY_BITHAM_42_BOLD
#define BPM_FONT_HEIGHT 42
#define ... | #pragma once
#include <pebble.h>
#define BG_COLOR GColorWhite
#ifdef PBL_ROUND
#define ACTION_BAR_WIDTH_WITH_GAP (ACTION_BAR_WIDTH + 12)
#else
#define ACTION_BAR_WIDTH_WITH_GAP (ACTION_BAR_WIDTH + 2)
#endif
#define BPM_DEFAULT_BPM_T 1200
#define BPM_FONT FONT_KEY_BITHAM_42_BOLD
#define BPM_FONT_HEIGHT 42
#define ... | Fix font size on rectangular watches | Fix font size on rectangular watches
| C | mit | aarmea/bpm-pebble,aarmea/bpm-pebble,aarmea/bpm-pebble |
9930b7c47f8c4cac765be76436a69de4ba5664f7 | src/config.h | src/config.h | #ifndef _CONFIG_H
#define _CONFIG_H
#define ENABLE_COUNTERMOVE_HISTORY 0
#define ENABLE_LMP_MIN_MOVES 0
#define ENABLE_HISTORY_PRUNE_DEPTH 4
#define ENABLE_NNUE 0
#define ENABLE_NNUE_SIMD 0
#endif
| #ifndef _CONFIG_H
#define _CONFIG_H
#define ENABLE_COUNTERMOVE_HISTORY 0
#define ENABLE_LMP_MIN_MOVES 4
#define ENABLE_HISTORY_PRUNE_DEPTH 4
#define ENABLE_NNUE 0
#define ENABLE_NNUE_SIMD 0
#endif
| Enable late move pruning at min 4 | Enable late move pruning at min 4
| C | bsd-3-clause | jwatzman/nameless-chessbot,jwatzman/nameless-chessbot |
bc31fde05187299456c0b71bb89d8a6898420e47 | src/motion.c | src/motion.c | #include "motion.h"
//Utilities
int threshold(int value, int threshold);
void reset_I2C_sensors(void);
//Driving
void drive(int y, int t = 0){
//y - Forwards/Backwards
//t - Turning (optional parameter)
motor[driveLeftFront] = y+t;
motor[driveRightFront] = y-t;
}
//Mogo (mobile goal lift)
void mogo(int power){
... | #include "motion.h"
//Utilities
int threshold(int value, int threshold);
void reset_I2C_sensors(void);
//Driving
void drive(int y, int t = 0){
//y - Forwards/Backwards
//t - Turning (optional parameter)
motor[driveLeftFront] = y+t;
motor[driveRightFront] = y-t;
}
//Mogo (mobile goal lift)
void mogo(int power){
... | Make threshold function use absolute value of threshold value | Make threshold function use absolute value of threshold value
| C | mit | 18moorei/code-red-in-the-zone |
d22e80d0afb0433637234a9bcc1f40387e53a252 | firmware/digital_led_strip_gnu/inc/hal.h | firmware/digital_led_strip_gnu/inc/hal.h | #include <stdint.h>
#define STRIP_BLACK 0x8000
#define STRIP_PIXELS 50
#define USART_BAUD_RATE 115200
extern uint16_t* const strip_data;
void init();
void set_led(uint8_t state);
uint8_t get_button();
uint16_t get_voltage();
uint16_t get_current();
void strip_flush();
uint16_t pack_RGB(uint8_t red, uint8_t green,... | #include <stdint.h>
#define STRIP_BLACK 0x8000
#define STRIP_PIXELS 50
//#define USART_BAUD_RATE 115200
#define USART_BAUD_RATE 3000000
extern uint16_t* const strip_data;
void init();
void set_led(uint8_t state);
uint8_t get_button();
uint16_t get_voltage();
uint16_t get_current();
void strip_flush();
uint16_t pa... | Change baud rate to 3mbps | Change baud rate to 3mbps
| C | mit | zbanks/aurora,zbanks/aurora,zbanks/aurora,zbanks/aurora,zbanks/aurora,zbanks/aurora,zbanks/aurora |
12d24d16af71b1d0ff397f70648ed72d63d2c5d1 | Includes/libARSAL/ARSAL.h | Includes/libARSAL/ARSAL.h | /**
* @file libARSAL/ARSAL.h
* @brief Library global header for libARSAL
* @date 04/12/2013
* @author nicolas.brulez@parrot.com
*/
#ifndef _ARSAL_H_
#define _ARSAL_H_
#include <libARSAL/ARSAL_Endianness.h>
#include <libARSAL/ARSAL_Ftw.h>
#include <libARSAL/ARSAL_Mutex.h>
#include <libARSAL/ARSAL_Print.h>
#include... | /**
* @file libARSAL/ARSAL.h
* @brief Library global header for libARSAL
* @date 04/12/2013
* @author nicolas.brulez@parrot.com
*/
#ifndef _ARSAL_H_
#define _ARSAL_H_
#include <libARSAL/ARSAL_Endianness.h>
//#include <libARSAL/ARSAL_Ftw.h>
#include <libARSAL/ARSAL_Mutex.h>
#include <libARSAL/ARSAL_Print.h>
#inclu... | Comment file for the moment. | Comment file for the moment.
| C | bsd-3-clause | kradhub/libARSAL,kradhub/libARSAL,niavok/libARSAL,kradhub/libARSAL,Parrot-Developers/libARSAL,Parrot-Developers/libARSAL,niavok/libARSAL,kradhub/libARSAL,niavok/libARSAL,Parrot-Developers/libARSAL,niavok/libARSAL |
48220cfd521da329e20ffad5699d030d29313f71 | tests/sv-comp/observer/path_nofun_true-unreach-call.c | tests/sv-comp/observer/path_nofun_true-unreach-call.c | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int();
int main()
{
int x, y;
if (__VERIFIER_nondet_int())
{
x = 0;
y = 1;
}
else
{
x = 1;
y = 0;
}
// if (!(x + y == 1))
if (x + y != 1)
__VERIFIER_e... | Fix command in path_nofun SV-COMP example | Fix command in path_nofun SV-COMP example
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
56259f7f61084eabd4dc2d3d6cb3ea4cc161320f | ios/RNI18n.h | ios/RNI18n.h | #import <React/RCTBridgeModule.h>
@interface RNI18n : NSObject <RCTBridgeModule>
@end
| #if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
@interface RNI18n : NSObject <RCTBridgeModule>
@end
| Add support for react-native < 0.40 | Add support for react-native < 0.40
| C | mit | AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n |
637ba7dd055c6185c4e428b9328299b3e96de833 | asylo/platform/posix/include/sys/wait.h | asylo/platform/posix/include/sys/wait.h | /*
*
* Copyright 2018 Asylo authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
*
* Copyright 2018 Asylo authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Include sys/resource.h for struct rusage | Include sys/resource.h for struct rusage
Used in wait3 signature.
PiperOrigin-RevId: 269667008
Change-Id: Ie6e3a9b334861c78722bbae806352216d57ac437
| C | apache-2.0 | google/asylo,google/asylo,google/asylo,google/asylo,google/asylo,google/asylo |
b0afcb7cebb7b64f8e8c378ff3c5d117a2abb4cc | include/jive/arch/registers.h | include/jive/arch/registers.h | #ifndef JIVE_ARCH_REGISTERS_H
#define JIVE_ARCH_REGISTERS_H
typedef struct jive_cpureg jive_cpureg;
typedef struct jive_regcls jive_regcls;
struct jive_cpureg {
const char name[32];
};
#endif
| #ifndef JIVE_ARCH_REGISTERS_H
#define JIVE_ARCH_REGISTERS_H
typedef struct jive_cpureg jive_cpureg;
typedef struct jive_regcls jive_regcls;
struct jive_cpureg {
const jive_regcls * regcls;
const char name[32];
};
#endif
| Add reference to register class to cpureg | Add reference to register class to cpureg
Arch support is still incomplete, but this bit is required
for other target-independent code.
| C | lgpl-2.1 | phate/jive,phate/jive,phate/jive |
a758e727e602b5e05058271c990063baeeea3ccd | test/Driver/crash-diagnostics-dir.c | test/Driver/crash-diagnostics-dir.c | // RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s 2>&1 | FileCheck %s
#pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK: diagnostic msg: {{.*}}Output{{/|\\}}crash-diagnostics-dir.c.tmp{{(/|\\).*}}.c
| // RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: not %clang -fcrash-diagnostics-dir=%t -c %s -o - 2>&1 | FileCheck %s
#pragma clang __debug parser_crash
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
// CHECK: diagnostic msg: {{.*}}{{/|\\}}crash-diagnostics-dir.c.tmp{{(/|\\).*}}.c
| Update crash diagnostics test to avoid attempting to write into various directories if possible and to not require %t to have "Output" in the name. | Update crash diagnostics test to avoid attempting to write into various
directories if possible and to not require %t to have "Output" in the name.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@336630 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
cd8df932d894f3128c884e3ae1b2b484540513db | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k14"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2010 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k15"
| Update driver version to 5.02.00-k15 | [SCSI] qla4xxx: Update driver version to 5.02.00-k15
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
9e469bb71d97fb04c425c0955e27174841fe4ba8 | include/utils/builtin.h | include/utils/builtin.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 _UTILS_BUILTIN_H
#define _UTILS_BUILTIN_H
/* macros for accessing compiler b... | /*
* 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 _UTILS_BUILTIN_H
#define _UTILS_BUILTIN_H
/* macros for accessing compiler b... | Add likely and unlikely macros. | Add likely and unlikely macros.
| C | bsd-2-clause | agacek/util_libs,winksaville/libutils,agacek/util_libs,agacek/util_libs,seL4/libutils,agacek/util_libs |
55ad50b520fe4cd2a944ceabfd6508bd05b26813 | code/code/obj/obj_appliedsub.h | code/code/obj/obj_appliedsub.h | #ifndef __OBJ_APPLIED_SUB_H
#define __OBJ_APPLIED_SUB_H
#include "obj.h"
// stub object relating to ranger herbalism
class TASubstance : public TObj {
public:
virtual void assignFourValues(int, int, int, int) { }
virtual void getFourValues(int *a, int *b, int *c, int *d) const { *a = *b = *c = *d = 0; }
... | #ifndef __OBJ_APPLIED_SUB_H
#define __OBJ_APPLIED_SUB_H
#include "obj.h"
// stub object relating to ranger herbalism
class TASubstance : public TObj {
public:
virtual void assignFourValues(int, int, int, int) { }
virtual void getFourValues(int *a, int *b, int *c, int *d) const { *a = *b = *c = *d = 0; }
... | Remove empty constructors etc from TASubstance | Remove empty constructors etc from TASubstance
| C | agpl-3.0 | sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud |
6a18b24d29cd6b0d03bd3fbdf839ff6aaf6cd84c | bacula/src/version.h | bacula/src/version.h | /* */
#undef VERSION
#define VERSION "1.37.17"
#define BDATE "06 May 2005"
#define LSMDATE "06May05"
/* Debug flags */
#undef DEBUG
#define DEBUG 1
#define TRACEBACK 1
#define SMCHECK
#define TRACE_FILE 1
/* If this is set stdout will not be closed on startup */
#define DEVELOPER 1
/* Debug flags not normally ... | /* */
#undef VERSION
#define VERSION "1.37.17"
#define BDATE "07 May 2005"
#define LSMDATE "07May05"
/* Debug flags */
#undef DEBUG
#define DEBUG 1
#define TRACEBACK 1
#define SMCHECK
#define TRACE_FILE 1
/* If this is set stdout will not be closed on startup */
#define DEVELOPER 1
/* Debug flags not normally ... | Fix Win32 build for TLS | Fix Win32 build for TLS
git-svn-id: bb0627f6f70d46b61088c62c6186faa4b96a9496@2001 91ce42f0-d328-0410-95d8-f526ca767f89
| C | agpl-3.0 | rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula |
1761d9ffe718f5b9d7535ede67380a20187f9d90 | tests/regression/36-octapron/23-traces-write-centered-problem.c | tests/regression/36-octapron/23-traces-write-centered-problem.c | // SKIP PARAM: --sets ana.activated[+] octApron --sets exp.solver.td3.side_widen cycle_self
// requires cycle_self to pass with protection
#include <pthread.h>
#include <assert.h>
int g = 25; // matches write in main
int h = 12; // matches write in main
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void ... | Add relational traces example where write would fail | Add relational traces example where write would fail
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
29c7759d400dd2c46ef4ab02199fbba2d508a4d5 | kernel/libk/klog.c | kernel/libk/klog.c | #include <libk/klog.h>
void initialize_klog() {
initialize_serial_port(COM1);
kputs("initing");
write_serial_string(COM1, "Logger initialized\n");
kputs("inited");
}
void klog(char *message) {
write_serial_string(COM1, message);
}
| #include <libk/klog.h>
void initialize_klog() {
initialize_serial_port(COM1);
write_serial_string(COM1, "Logger initialized!\n");
}
void klog(char *message) {
write_serial_string(COM1, message);
}
| Remove debugging lines from kernel logger | Remove debugging lines from kernel logger
| C | mit | Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth |
af88a4da720094eb576f50664fa61d449eb005dd | include/rapidcheck/detail/Traits.h | include/rapidcheck/detail/Traits.h | #pragma once
#include <type_traits>
#include <iostream>
namespace rc {
namespace detail {
namespace sfinae {
template<typename T, typename = decltype(std::declval<T>() == std::declval<T>())>
std::true_type isEqualityComparable(const T &);
std::false_type isEqualityComparable(...);
template<typename T, typename = de... | #pragma once
#include <type_traits>
#include <iostream>
namespace rc {
namespace detail {
#define RC_SFINAE_TRAIT(Name, expression) \
namespace sfinae { \
template<typename T, typename = expression> \
... | Add macro to declare SFINAE based traits | Add macro to declare SFINAE based traits
| C | bsd-2-clause | unapiedra/rapidfuzz,whoshuu/rapidcheck,unapiedra/rapidfuzz,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,whoshuu/rapidcheck,emil-e/rapidcheck,emil-e/rapidcheck,tm604/rapidcheck,unapiedra/rapidfuzz |
4e16a115a9941f1a9f99a5a135414f8eb59da7c2 | mtp/backend/darwin/usb/call.h | mtp/backend/darwin/usb/call.h | /*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015 Vladimir Menshakov
Android File Transfer For Linux is free software: you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3... | /*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015 Vladimir Menshakov
Android File Transfer For Linux is free software: you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3... | Add DeviceNotFoundException throw on mac | Add DeviceNotFoundException throw on mac
| C | lgpl-2.1 | whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux |
09123fbb1e5deb2724ae7b41e567814d251ea98a | libphodav/phodav-path.h | libphodav/phodav-path.h | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* versi... | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* versi... | Fix the wrong comment on the header guard | libphodav: Fix the wrong comment on the header guard
| C | lgpl-2.1 | GNOME/phodav,GNOME/phodav |
9c5c5b5cecbff8a89b7813175e46e89696f06fd8 | src/exercise201.c | src/exercise201.c | /* A solution to Exercise 2-1 in The C Programming Language (Second Edition).
*/
#include <float.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Using macros from standard headers:");
printf(" Range of \"char\": %d to %d\n", SCHAR_MIN, SCHAR_MAX);
printf(" Range of \"unsi... | Add solution to Exercise 2-1. | Add solution to Exercise 2-1.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
2e7c8aee37e5a269e97e20ea8ebbc3a632c8c0eb | src/voxrnd/local-loop.c | src/voxrnd/local-loop.c | #include "local-loop.h"
#include "../voxtrees/search.h"
void vox_local_loop (struct vox_node *tree, int n, void (*action) (vox_rnd_context*), \
void (*inc) (vox_rnd_context*), vox_rnd_context *ctx)
{
int i, state, pn;
int depth = 1;
vox_tree_path path;
pn = vox_ray_tree_intersecti... | #include "local-loop.h"
#include "../voxtrees/search.h"
void vox_local_loop (struct vox_node *tree, int n, void (*action) (vox_rnd_context*), \
void (*inc) (vox_rnd_context*), vox_rnd_context *ctx)
{
int i, state, pn;
int depth = 1;
vox_tree_path path;
pn = vox_ray_tree_intersecti... | Make renderer to work properly | Make renderer to work properly
| C | bsd-2-clause | shamazmazum/voxvision,shamazmazum/voxvision |
e6077cd5fe8c9bab610f6fb3fe2437967f71f607 | build/sigfw.c | build/sigfw.c | /*
* This program handles SIGINT and forwards it to another process.
* It is intended to be run as PID 1.
*
* Docker starts processes with "docker run" as PID 1.
* On Linux, the default signal handler for PID 1 ignores any signals.
* Therefore Ctrl-C aka SIGINT is ignored per default.
*/
#include <signal.h>
#in... | /*
* This program handles SIGINT and forwards it to another process.
* It is intended to be run as PID 1.
*
* Docker starts processes with "docker run" as PID 1.
* On Linux, the default signal handler for PID 1 ignores any signals.
* Therefore Ctrl-C aka SIGINT is ignored per default.
*/
#include <unistd.h>
#in... | Add missing includes for fork() and perror() | Add missing includes for fork() and perror()
| C | mit | larskanis/rake-compiler-dock,rake-compiler/rake-compiler-dock,rake-compiler/rake-compiler-dock,larskanis/rake-compiler-dock,larskanis/rake-compiler-dock,rake-compiler/rake-compiler-dock,rake-compiler/rake-compiler-dock,rake-compiler/rake-compiler-dock |
59409c9a9eca18531d314a42d802a610617f4f1b | Src/Utils.c | Src/Utils.c | /**********************************************************************
*
* PROJECT: Platform library
* FILE: Utils.c
* LICENCE: See Licence.txt
* PURPOSE: Various platform independent utility functions.
*
* (c) Tuomo Jauhiainen 2013
*
***********************************************************... | /**********************************************************************
*
* PROJECT: Platform library
* FILE: Utils.c
* LICENCE: See Licence.txt
* PURPOSE: Various platform independent utility functions.
*
* (c) Tuomo Jauhiainen 2013
*
***********************************************************... | Fix warnings and errors brought up by VS2012 code analyzer. | Fix warnings and errors brought up by VS2012 code analyzer.
| C | mit | teejii88/platform,teejii88/platform |
bfa9ab6178e8ca11ff9db88f750f7b8ab2dd1bf6 | UIViewControllerTest/UIViewControllerTest/ViewController.h | UIViewControllerTest/UIViewControllerTest/ViewController.h | /**************************************************************************************************
* File name : ViewController.h
* Description : Define the ViewController class.
* Creator : Frederick Hsu
* Creation date: Thu. 23 Feb. 2017
* Copyright(C 2017 All rights reserved.
*
****************... | /**************************************************************************************************
* File name : ViewController.h
* Description : Define the ViewController class.
* Creator : Frederick Hsu
* Creation date: Thu. 23 Feb. 2017
* Copyright(C 2017 All rights reserved.
*
****************... | Insert 2 UILabel as property : *switchOnLabel, *switchOffLabel, allow the action function - (void)changeHint:(UISwitch *)userSwitch; to access them. | Insert 2 UILabel as property : *switchOnLabel, *switchOffLabel, allow the action function - (void)changeHint:(UISwitch *)userSwitch; to access them.
| C | apache-2.0 | Frederick-Hsu/iOS_Objective_C_Development,Frederick-Hsu/iOS_Objective_C_Development |
4c73133037265abea9f8c6706197fbed6326630b | Utilities/gdcm/Utilities/gdcm_zlib.h | Utilities/gdcm/Utilities/gdcm_zlib.h | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Module: $URL$
Copyright (c) 2006-2010 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is dist... | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Module: $URL$
Copyright (c) 2006-2010 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is dist... | Make sure to use proper name mangling | Make sure to use proper name mangling
| C | apache-2.0 | ajjl/ITK,vfonov/ITK,hinerm/ITK,richardbeare/ITK,LucHermitte/ITK,fedral/ITK,LucHermitte/ITK,atsnyder/ITK,spinicist/ITK,LucHermitte/ITK,blowekamp/ITK,rhgong/itk-with-dom,spinicist/ITK,LucasGandel/ITK,fuentesdt/InsightToolkit-dev,daviddoria/itkHoughTransform,heimdali/ITK,eile/ITK,jcfr/ITK,CapeDrew/DCMTK-ITK,fuentesdt/Insi... |
d1b620337221a069e3d13123cbb2fe891130101e | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
// Set to ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 1
// Set to ... | Update Client Version for New Code Base | Update Client Version for New Code Base | C | mit | summitcoindev/summitcoin,summitcoindev/summitcoin,summitcoin/summitcoin,summitcoin/summitcoin,summitcoin/summitcoin,summitcoindev/summitcoin,summitcoin/summitcoin,summitcoindev/summitcoin,summitcoindev/summitcoin,summitcoin/summitcoin |
7afe444fe1c4b1af6035f9d6b72276043eac35ab | 3RVX/OSD/OSD.h | 3RVX/OSD/OSD.h | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include "../HotkeyProcessor.h"
#include "../MeterWnd/MeterWnd.h"
#include "../Settings.h"
#include "../Window.h"
#include "OSDType.h"
class Monitor;
class OSD : Ho... | // Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#pragma once
#include <Windows.h>
#include "../HotkeyProcessor.h"
#include "../MeterWnd/MeterWnd.h"
#include "../Settings.h"
#include "../Window.h"
#include "OSDType.h"
class Monitor;
class OSD : Ho... | Add the interface method for OnDisplayChange | Add the interface method for OnDisplayChange
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,malensek/3RVX |
5d35cd534b02e5eee6d579a2af3b3cdc86b8de94 | common/user/capi.h | common/user/capi.h | // Harshad Kasture
//
// This file declares the user level message passing functions used in multithreaded applications
// for the multicore simulator.
#ifndef CAPI_H
#define CAPI_H
typedef int CAPI_return_t;
typedef int CAPI_endpoint_t;
// externed so the names don't get name-mangled
//extern "C" {
CAPI_retur... | // Harshad Kasture
//
// This file declares the user level message passing functions used in multithreaded applications
// for the multicore simulator.
#ifndef CAPI_H
#define CAPI_H
typedef int CAPI_return_t;
typedef int CAPI_endpoint_t;
#ifdef __cplusplus
// externed so the names don't get name-mangled
extern "C"... | Add guarded 'extern "C"' attributes so that this header files can be used from both C and C++ programs. | Add guarded 'extern "C"' attributes so that this header files can
be used from both C and C++ programs.
| C | mit | victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,fhijaz/Graphite,8l/Graphite,mit-carbon/Graphite,mit-carbon/Graphite,victorisildur/Graphite,8l/Graphite,fhijaz/Graphite,mit-carbon/Graphite-Cycle-Level,victorisildur/Graphite,nkawahara/Graphite,nkawahara/Graphite,mit-carbon/Graphite,nkawahara/Graphite,nkawahara/Grap... |
5686bec1d4979f9c75b05bd65d9db2f24c621245 | client/loop.c | client/loop.c | #include <stdio.h>
#include <sys/select.h>
/* pselect loop test */
int main(int argc, char *argv[])
{
struct timespec timeout;
fd_set readfds;
int fdcount;
while(1){
FD_ZERO(&readfds);
FD_SET(0, &readfds);
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
fdcount = pselect(1, &readfds, NULL, NULL, &timeout, NUL... | #include <stdio.h>
#include <sys/select.h>
/* pselect loop test */
int main(int argc, char *argv[])
{
struct timespec timeout;
fd_set readfds;
int fdcount;
char buf[1024];
while(1){
FD_ZERO(&readfds);
FD_SET(0, &readfds);
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
fdcount = pselect(1, &readfds, NULL, NU... | Watch for input from stdin and print it. | Watch for input from stdin and print it.
| C | bsd-3-clause | tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,zlargon/mosquitto,tempbottle/mosquitto,zlargon/mosquitto,zlargon/mosquitto,tempbottle/mosquitto,zlargon/mosquitto,zlargon/mosquitto |
619709fe771f9da087c2423331b0195f8e2bee91 | event/event_system.h | event/event_system.h | #ifndef EVENT_SYSTEM_H
#define EVENT_SYSTEM_H
#include <event/event_thread.h>
/*
* XXX
* This is kind of an awful shim while we move
* towards something thread-oriented.
*/
class EventSystem {
EventThread td_;
private:
EventSystem(void)
: td_()
{ }
~EventSystem()
{ }
public:
Action *poll(const EventPoll... | Add EventSystem shim missed in r588. | Add EventSystem shim missed in r588.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@589 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy,diegows/wanproxy | |
cd8ae2c486ec2e12f46a5009ff0cebb603093457 | iree/tools/init_translations.h | iree/tools/init_translations.h | // Copyright 2020 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Implement forked registerAllTranslations() as registerMlirTranslations() | Implement forked registerAllTranslations() as registerMlirTranslations()
With https://reviews.llvm.org/D77515, the need for static global ctors is removed from `mlir-translate` and thus can be also removed from `iree-translate`. This already forks the header file `mlir/include/mlir/InitAllTranslations.h` and removes t... | C | apache-2.0 | google/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree | |
2bbfb4564380f9e14b2056ad6cc3224927456430 | stack_linked.c | stack_linked.c | #include <stdio.h>
#include <stdlib.h>
typedef struct Node{
int val;
struct Node *next;
}Node;
Node* Push(Node *p, int val){
Node *temp = (struct Node*)malloc(sizeof(struct Node));
temp->val = val;
temp->next = p;
p = temp;
return p;
}
void Pop(Node *p){
if(p == NULL)
return;
printf("%p\n",p);
Node *temp ... | #include <stdio.h>
#include <stdlib.h>
typedef struct Node{
int val;
struct Node *next;
}Node;
Node* Push(Node *p, int val){
Node *temp = (struct Node*)malloc(sizeof(struct Node));
temp->val = val;
temp->next = p;
p = temp;
return p;
}
Node* Pop(Node *p){
if(p == NULL)
return;
Node *temp = p;
p = p->next;... | Implement stack with single linked list | Implement stack with single linked list
| C | apache-2.0 | kmongo/practice |
e2f862b2402a270b00334165521a7f838daf9ed1 | Classes/MBImageRequest.h | Classes/MBImageRequest.h | //
// MBImageRequest.h
// MBRequest
//
// Created by Sebastian Celis on 3/6/12.
// Copyright (c) 2012 Mobiata, LLC. All rights reserved.
//
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <UIKit/UIKit.h>
#elif __MAC_OS_X_VERSION_MIN_REQUIRED
#import <Cocoa/Cocoa.h>
#endif
#import "MBHTTPRequest.h"
#if __IPHONE_OS_V... | //
// MBImageRequest.h
// MBRequest
//
// Created by Sebastian Celis on 3/6/12.
// Copyright (c) 2012 Mobiata, LLC. All rights reserved.
//
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <UIKit/UIKit.h>
#elif __MAC_OS_X_VERSION_MIN_REQUIRED
#import <Cocoa/Cocoa.h>
#endif
#import "MBHTTPRequest.h"
#if __IPHONE_OS_V... | Fix reference to UIImage when compiled for OS X. | Fix reference to UIImage when compiled for OS X.
| C | bsd-3-clause | mobiata/MBRequest,gaurav1981/MBRequest |
c68e3206862f647117a46a73af76764d750c05bd | arch/sh/include/asm/ftrace.h | arch/sh/include/asm/ftrace.h | #ifndef __ASM_SH_FTRACE_H
#define __ASM_SH_FTRACE_H
#ifdef CONFIG_FUNCTION_TRACER
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)
#ifndef __ASSEMBLY__
extern void mcount(void);
#define MCOUNT_ADDR ((long)(mcount))
#ifdef CONFIG_DYNAMIC_FTRACE
#define CALL_ADDR ((l... | #ifndef __ASM_SH_FTRACE_H
#define __ASM_SH_FTRACE_H
#ifdef CONFIG_FUNCTION_TRACER
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
#define FTRACE_SYSCALL_MAX NR_syscalls
#ifndef __ASSEMBLY__
extern void mcount(void);
#define MCOUNT_ADDR ((long)(mcount))
#ifdef CONFIG_DYNAMIC_FTRACE
#define CALL_ADDR ((long)(f... | Fix an off-by-1 in FTRACE_SYSCALL_MAX. | sh: Fix an off-by-1 in FTRACE_SYSCALL_MAX.
This is supposed to be the equivalent of __NR_syscalls, not
__NR_syscalls -1. The x86 code this was based on had simply fallen
out of sync at the time this was implemented. Fix it up now.
As a result, tracing of __NR_perf_counter_open works as advertised.
Signed-off-by: Pau... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
20871640ea94ce3e1c1237d3d266c622624c5319 | LolayHttpClientGlobals.h | LolayHttpClientGlobals.h | //
// LolayHttpClientGlobals.h
// LolayHttpClientGlobals
//
// Created by Bruce Johnson on 5/9/14.
// Copyright (c) 2014 Lolay. All rights reserved.
//
#if DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
# define NSLog(...) NSLog(__VA_ARGS__)
#else
# define... | //
// LolayHttpClientGlobals.h
// LolayHttpClientGlobals
//
// Created by Bruce Johnson on 5/9/14.
// Copyright (c) 2014 Lolay. All rights reserved.
//
#ifndef DLog
#if DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
# define NSLog(...) NSLog(__VA_ARGS__)
#... | Add a check to see if DLog is already defined. | Add a check to see if DLog is already defined.
| C | mit | lolay/http-client,lolay/http-client |
7951b508e2f09bc5f1d886f45c83e751798ce824 | NumberTheory/GCD.c | NumberTheory/GCD.c | #include<stdio.h>
/* CALC GREATEST COMMON DIVISOR BY EUCLIDES ALGORITHM
* r -> remainder
* q -> quotient
*/
int calc_gcd(int n1, int n2, int r, int q){
if (r == 0)
return n2;
return calc_gcd(n2,r,n2 % r, n2 / r);
}
/* FIRE UP THE FUNCTION GCD
*/
int gcd(int n1, int n2){
if ( n1 > n2 )
... | #include<stdio.h>
/* CALC GREATEST COMMON DIVISOR BY EUCLIDES ALGORITHM
* r -> remainder
* q -> quotient
*/
int calc_gcd(int n1, int n2, int r, int q){
if (r == 0)
return n2;
return calc_gcd(n2,r,n2 % r, n2 / r);
}
/* FIRE UP THE FUNCTION GCD
*/
int gcd(int n1, int n2){
if ( n1 > n2 )
... | Comment the main for import as a library in the function of the least common divisor (LCD) | Comment the main for import as a library in the function of the least common divisor (LCD)
| C | mit | xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book |
ad32b2d00cfcd0fea8547270b0f7c98ea86cb0fb | tests/test_common.h | tests/test_common.h | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_TEST_TEST_COMMON_H
#define VISTK_TEST_TEST_COMMON_H
#define EXPECT_EXCEPTION(e... | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_TEST_TEST_COMMON_H
#define VISTK_TEST_TEST_COMMON_H
#define TEST_ERROR(msg) ... | Add macro for errors in tests | Add macro for errors in tests
| C | bsd-3-clause | mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,Kitware/sprokit,Kitware/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit |
ec6236a16d88eae7f079448946cb91b1484f92e5 | inc/JsonSerializer.h | inc/JsonSerializer.h | //! \file
#ifndef JSONSERIALIZER_H
#define JSONSERIALIZER_H
#include <iostream>
#include "ArticleCollection.h"
namespace WikiWalker
{
/*! Serialize AricleCollection from and to a custom JSON format
*/
class JsonSerializer
{
public:
/*! Serialize ArticleCollection to JSON in an output stream
* \p... | //! \file
#ifndef WIKIWALKER_JSONSERIALIZER_H
#define WIKIWALKER_JSONSERIALIZER_H
#include <iostream>
#include "ArticleCollection.h"
namespace WikiWalker
{
/*! Serialize AricleCollection from and to a custom JSON format
*/
class JsonSerializer
{
public:
/*! Serialize ArticleCollection to JSON in an o... | Apply prefix to include guard | Apply prefix to include guard
| C | mit | dueringa/WikiWalker |
b16e10bf8987b6e4278c17bedb552f49bf7e9461 | inc/math_container.h | inc/math_container.h | #ifndef MATH_CONTAINER
#define MATH_CONTAINER
#include <iostream>
#include <vector>
#include <complex>
#include <algorithm>
#include <cmath>
/********************************/
/*Find the index during the sort*/
/********************************/
template<typename T> class CompareIndicesByAnotherVectorValues
{
c... | #ifndef MATH_CONTAINER_H
#define MATH_CONTAINER_H
#include <iostream>
#include <vector>
#include <complex>
#include <algorithm>
#include <cmath>
/********************************/
/*Find the index during the sort*/
/********************************/
template<typename T> class CompareIndicesByAnotherVectorValues
{
... | Set the header protection to end with _H. | Set the header protection to end with _H.
| C | mit | hshi/math_lib_hao,hshi/math_lib_hao |
5cef25695718f2bbb2505ff63f1d2557d9429fcf | SchemeBasicTypes.h | SchemeBasicTypes.h | #ifndef SCHEME_BASIC_TYPES_H
#define SCHEME_BASIC_TYPES_H
#include "SchemeType.h"
extern const SchemeType SchemeBool;
extern const SchemeCons *const SchemeBoolTrue;
extern const SchemeCons *const SchemeBoolFalse;
extern const SchemeType SchemeTuple;
extern const SchemeCons *const SchemeTupleTuple;
extern const Scheme... | #ifndef SCHEME_BASIC_TYPES_H
#define SCHEME_BASIC_TYPES_H
#include "SchemeType.h"
extern const SchemeType SchemeBool;
extern const SchemeCons *const SchemeBoolTrue;
extern const SchemeCons *const SchemeBoolFalse;
extern const SchemeType SchemeTuple;
extern const SchemeCons *const SchemeTupleTuple;
extern const Scheme... | Add function for marshaling C booleans into Scheme. | Add function for marshaling C booleans into Scheme.
| C | mit | bassettmb/scheme |
84db8f7ea5126ae880a4dc73686a95bc66766020 | LRImageManager/LRImageOperation+Private.h | LRImageManager/LRImageOperation+Private.h | //
// LRImageOperation+Private.h
// iShows
//
// Created by Luis Recuenco on 19/05/13.
// Copyright (c) 2013 Luis Recuenco. All rights reserved.
//
#import "LRImageOperation.h"
@interface LRImageOperation (Private)
// Inputs
@property (nonatomic, strong, readonly) NSURL *url;
@property (nonatomic, assign, readon... | Move LRImageOperation inputs and outputs to an appropriate category | Move LRImageOperation inputs and outputs to an appropriate category
| C | mit | toto/LRImageManager,vhoto-dev/LRImageManager,vhoto-dev/LRImageManager,vhoto-dev/LRImageManager,luisrecuenco/LRImageManager,Wallapop/LRImageManager,luisrecuenco/LRImageManager,luisrecuenco/LRImageManager,toto/LRImageManager,toto/LRImageManager | |
690c2e22d48c37fa590e9e93595fc5c5ee0d1eab | include/clang/CodeGen/ModuleBuilder.h | include/clang/CodeGen/ModuleBuilder.h | //===--- CodeGen/ModuleBuilder.h - Build LLVM from ASTs ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- CodeGen/ModuleBuilder.h - Build LLVM from ASTs ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add a comment to mention the memory ownership situation. | Add a comment to mention the memory ownership situation.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@104886 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,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,apple/swift-clang,llvm-mirror/cl... |
9e5acfd583ee88d53cb77691f0d0a882c0fc2473 | MdePkg/Library/BaseLib/CpuDeadLoop.c | MdePkg/Library/BaseLib/CpuDeadLoop.c | /** @file
Base Library CPU Functions for all architectures.
Copyright (c) 2006 - 2008, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full ... | /** @file
Base Library CPU Functions for all architectures.
Copyright (c) 2006 - 2008, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full ... | Change style 0 == Index to Index == 0 | Change style 0 == Index to Index == 0
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@7493 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
2c2367e6c537aaf7a1f79c196aea98efdd6418c2 | src/svr/all.h | src/svr/all.h | #ifndef TLSCA_SVR__ALL_H_
#define TLSCA_SVR__ALL_H_
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <ft.h>
#include <tlsca.h>
#include <seacatcc.h>
struct sca_app;
extern struct sca_app sca_app;
#include "config.h"
#include "app.h"
#include "reactor.h"
#include "cntl.h"
#endif //TLSCA_SVR__ALL... | #ifndef TLSCA_SVR__ALL_H_
#define TLSCA_SVR__ALL_H_
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <ft.h>
#include <tlsca.h>
#include <seacatcc.h>
struct sca_app;
extern struct sca_app sca_app;
#include "config.h"
#include "app.h"
#include "reactor.h"
#include "cntl.h"
enum sca_frame_type
{
... | Add a new frame types. | Add a new frame types.
| C | bsd-3-clause | TeskaLabs/SeaCat.io-Agent,TeskaLabs/SeaCat.io-Agent |
4b1d156a39827af50072cf16abffc11dc822ade9 | Foundation/NSSortDescriptor+Essentials.h | Foundation/NSSortDescriptor+Essentials.h | //
// NSSortDescriptor+Essentials.h
// Essentials
//
// Created by Martin Kiss on 11.4.14.
// Copyright (c) 2014 iAdverti. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum : BOOL {
ESSSortDescending = NO,
ESSSortAscending = YES,
} ESSSort;
@interface NSSortDescriptor (Essentials... | //
// NSSortDescriptor+Essentials.h
// Essentials
//
// Created by Martin Kiss on 11.4.14.
// Copyright (c) 2014 iAdverti. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum : BOOL {
ESSSortDescending = NO,
ESSSortAscending = YES,
} ESSSort;
@interface NSSortDescriptor (Essentials... | Fix ESSSort to work with non-object properties | Fix ESSSort to work with non-object properties
| C | mit | Tricertops/Essentials,Tricertops/Essentials |
4e9639ecf891d6443a1a0fde3d14661106ccb2e8 | src/matchers/EXPMatchers+equal.h | src/matchers/EXPMatchers+equal.h | #import "Expecta.h"
EXPMatcherInterface(_equal, (id expected));
EXPMatcherInterface(equal, (id expected)); // to aid code completion
#define equal(expected) _equal(EXPObjectify((expected)))
| #import "Expecta.h"
EXPMatcherInterface(_equal, (id expected));
EXPMatcherInterface(equal, (id expected)); // to aid code completion
#define equal(...) _equal(EXPObjectify((__VA_ARGS__)))
| Make usage of NSArray literals a little bit simpler in equal() | Make usage of NSArray literals a little bit simpler in equal()
This allows to write something like expect(array).to.equal(@[ @"a", @"b", @"c" ]) without additional parentheses around the array literal. | C | mit | jmoody/expecta,iosdev-republicofapps/expecta,modocache/expecta,jmburges/expecta,tonyarnold/expecta,ashfurrow/expecta,tonyarnold/expecta,suxinde2009/expecta,modocache/expecta,PatrykKaczmarek/expecta,Bogon/expecta,suxinde2009/expecta,specta/expecta,iguchunhui/expecta,tonyarnold/expecta,PatrykKaczmarek/expecta,PatrykKaczm... |
1d62dd3d309d009ffa3f9a71cf141ab7689e1138 | Maze/src/maze/proceduralmaze.h | Maze/src/maze/proceduralmaze.h | #ifndef __PROCEDURALMAZE_H__
#define __PROCEDURALMAZE_H__
#include "maze.h"
#include <map>
class ProceduralMaze
{
private:
int width;
int height;
public:
std::map<std::tuple<int, int>, int> grid;
ProceduralMaze(int width, int height);
void generate();
void clearGrid();
std::vector<std::tuple<int, in... | #ifndef __PROCEDURALMAZE_H__
#define __PROCEDURALMAZE_H__
#include "maze.h"
#include <map>
class ProceduralMaze
{
private:
int width;
int height;
std::map<std::tuple<int, int>, int> grid;
void clearGrid();
std::vector<std::tuple<int, int>> getAdjCells(std::tuple<int, int> center, Tile tile_state);
publi... | Move some ProceduralMaze public methods to private | Move some ProceduralMaze public methods to private
| C | mit | gfceccon/Maze,gfceccon/Maze |
95a836693fb9b0e33427e75d0f96441daa15ed84 | c/challenges/30daysofcode/day-00.c | c/challenges/30daysofcode/day-00.c | #include <stdio.h>
int main() {
// Declare a variable named 'input_string' to hold our input.
char input_string[105];
// Read a full line of input from stdin and save it to our variable, input_string.
scanf("%[^\n]", input_string);
// Print a string literal saying "Hello, World." to stdout using ... | Add 30 Days of Code Day 0 in C. | Add 30 Days of Code Day 0 in C.
| C | mit | KoderDojo/hackerrank,KoderDojo/hackerrank | |
cad39e196f1663c40c054441fe0c56bb5a225cab | copasi/output/CNodeO.h | copasi/output/CNodeO.h | /*****************************************************************************
* PROGRAM NAME: CNodeO.h
* PROGRAMMER: Wei Sun wsun@vt.edu
* PURPOSE: Define the node object in user defined function
*****************************************************************************/
#ifndef COPASI_CNodeO
#define COPASI_CNodeO
... | Save each node in User Defined Functions | Save each node in User Defined Functions
| C | artistic-2.0 | jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI | |
26134a1b596b9763a6975f15bf296a580b141114 | test/Analysis/array-struct.c | test/Analysis/array-struct.c | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct s {
int data;
int data_array[10];
};
typedef struct {
int data;
} STYPE;
void g1(struct s* p);
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;... | Add test for unsigned array index. | Add test for unsigned array index.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59239 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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/cl... |
2dea6e6b3e25adf606db5d4085f5080f2e5057a1 | media/rx/video-rx.h | media/rx/video-rx.h | #ifndef __VIDEO_RX_H__
#define __VIDEO_RX_H__
#include "libavformat/avformat.h"
typedef struct DecodedFrame {
AVFrame* pFrameRGB;
uint8_t *buffer;
} DecodedFrame;
typedef struct FrameManager {
enum PixelFormat pix_fmt;
void (*put_video_frame_rx)(uint8_t *data, int with, int height, int nframe);
DecodedFrame* (*... | #ifndef __VIDEO_RX_H__
#define __VIDEO_RX_H__
#include "libavformat/avformat.h"
typedef struct DecodedFrame {
AVFrame* pFrameRGB;
uint8_t *buffer;
} DecodedFrame;
typedef struct FrameManager {
enum PixelFormat pix_fmt;
void (*put_video_frame_rx)(uint8_t *data, int width, int height, int nframe);
DecodedFrame* (... | Fix width param name in put_video_frame_rx function pointer. | Fix width param name in put_video_frame_rx function pointer.
| C | lgpl-2.1 | shelsonjava/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,Kurento/kc-media-native |
70d22f24048fde4c1eada353a666240b89f00ae7 | tests/test_bitblasting.c | tests/test_bitblasting.c | /* Unit tests for functions that implement aspects of bitblasting.
*
* SCL; 2016
*/
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include "ptree.h"
#include "tests_common.h"
int main( int argc, char **argv )
{
ptree_t *head = NULL;
head = var_to_bool( "x", 2 );
if (head == NULL) {
ERR... | /* Unit tests for functions that implement aspects of bitblasting.
*
* SCL; 2016
*/
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <string.h>
#include "ptree.h"
#include "tests_common.h"
int main( int argc, char **argv )
{
ptree_t *head = NULL;
head = var_to_bool( "x", 2 );
if (head ==... | Test more aspects of return value from var_to_bool | TEST: Test more aspects of return value from var_to_bool
| C | bsd-3-clause | slivingston/gr1c,slivingston/gr1c,slivingston/gr1c |
1e4a7ff20be308688e8b33cbd52c865e74ddd96d | linux/epoll/peer_testing.h | linux/epoll/peer_testing.h | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
#ifdef __cplusplus
}
#endif
#define READ fake_read
#define SEND fake_send
#define WRITEV fake_writ... | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusplus
}
#endif
#define ... | Add missing prototype for fake_writev(). | Add missing prototype for fake_writev().
| C | mit | mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet |
60dca868c576bf5e683a4173fec0ef710634570f | transmission_interface/include/transmission_interface/robot_transmissions.h | transmission_interface/include/transmission_interface/robot_transmissions.h | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013, PAL Robotics S.L.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must reta... | Add class for holding transmission interfaces. | Add class for holding transmission interfaces.
- Mirrors hardware_interface::RobotHW, but for transmissions.
| C | bsd-3-clause | ros-controls/ros_control,ros-controls/ros_control | |
d7d28c5f55d6022fbcbdb4005251303b8fd44c25 | spire_scirun/namespaces.h | spire_scirun/namespaces.h | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2013 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2013 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | Make include guard more specific. | Make include guard more specific.
| C | mit | iauns/spire-scirun,iauns/spire-scirun |
10e4ffc630f528a703eca019e0bd69cfe076480f | Sources/BraintreeVenmo/Public/BraintreeVenmo/BTVenmoAccountNonce.h | Sources/BraintreeVenmo/Public/BraintreeVenmo/BTVenmoAccountNonce.h | #if __has_include(<Braintree/BraintreeVenmo.h>)
#import <Braintree/BraintreeCore.h>
#else
#import <BraintreeCore/BraintreeCore.h>
#endif
/**
Contains information about a Venmo Account payment method
*/
@interface BTVenmoAccountNonce : BTPaymentMethodNonce
/**
The email associated with the Venmo account
*/
@propert... | #if __has_include(<Braintree/BraintreeVenmo.h>)
#import <Braintree/BraintreeCore.h>
#else
#import <BraintreeCore/BraintreeCore.h>
#endif
/**
Contains information about a Venmo Account payment method
*/
@interface BTVenmoAccountNonce : BTPaymentMethodNonce
/**
:nodoc:
The email associated with the Venmo account
*/... | Add nodoc for beta fields. | Add nodoc for beta fields.
| C | mit | braintree/braintree_ios,braintree/braintree_ios,braintree/braintree_ios,braintree/braintree_ios |
3f0dab82391600448b36b3d2daaf92933ff5f785 | src/http/requestdata.h | src/http/requestdata.h | #ifndef APIMOCK_REQUESTDATA_H
#define APIMOCK_REQUESTDATA_H
#include <string>
namespace ApiMock {
struct RequestData {
enum HTTP_VERSION {
HTTP_1_1,
} httpVersion;
enum METHOD {
GET,
POST,
PUT,
DELETE,
} method;
std::string requestUri;
};
}
#endif | #ifndef APIMOCK_REQUESTDATA_H
#define APIMOCK_REQUESTDATA_H
#include <string>
#include <unordered_map>
namespace ApiMock {
struct RequestData {
enum HTTP_VERSION {
HTTP_1_1,
} httpVersion;
enum METHOD {
GET,
POST,
PUT,
DELETE,
} method;
std::string requestUri;
std::unordered_map<std::str... | Add headers to request data | Add headers to request data
| C | mit | Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock,Lavesson/api-mock |
9766b5a197f355679321312e89819e41fa9bed81 | src/numbbo_c_runtime.c | src/numbbo_c_runtime.c | /*
* Generic NUMBBO runtime implementation.
*
* Other language interfaces might want to replace this so that memory
* allocation and error handling goes through the respective language
* runtime.
*/
#include <stdio.h>
#include <stdlib.h>
#include "numbbo.h"
void numbbo_error(const char *message) {
fprintf(... | /*
* Generic NUMBBO runtime implementation.
*
* Other language interfaces might want to replace this so that memory
* allocation and error handling go through the respective language
* runtime.
*/
#include <stdio.h>
#include <stdlib.h>
#include "numbbo.h"
void numbbo_error(const char *message) {
fprintf(st... | Fix grammar mistake in comment. | Fix grammar mistake in comment.
| C | bsd-3-clause | NDManh/numbbo,oaelhara/numbbo,oaelhara/numbbo,dtusar/coco,oaelhara/numbbo,NDManh/numbbo,oaelhara/numbbo,dtusar/coco,NDManh/numbbo,NDManh/numbbo,oaelhara/numbbo,dtusar/coco,oaelhara/numbbo,dtusar/coco,dtusar/coco,NDManh/numbbo,dtusar/coco,oaelhara/numbbo,NDManh/numbbo,dtusar/coco,NDManh/numbbo,dtusar/coco,NDManh/numbbo,... |
9e6ecae83a72982c5b1c611d5f95ce62fb3fc10b | exercise105.c | exercise105.c | /* Modify the temperature conversion program to print the table in reverse
* order, that is, from 300 degrees to 0. */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
printf("F\tC\n=============\n");
float i;
for (i = 300; i >= 0; i -= 20) {
printf("%3.0f\t%5.1f\n", i, (5.0 / 9.0)... | Add solution to Exercise 1-5. | Add solution to Exercise 1-5.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
52aecbec6fb24f9cf0491563674906a9a43170da | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 105
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 106
#endif
| Update Skia milestone to 106 | Update Skia milestone to 106
Change-Id: I079e17240d30e9e0be2417920d64e5e9ac22f5c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/561676
Reviewed-by: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia |
c9367d33dcb5d7a3387cbe64d1834da50b412cba | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 70
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 71
#endif
| Update Skia milestone to 71 | Update Skia milestone to 71
TBR:reed@google.com
NOTRY=true
Bug: skia:
Change-Id: Ic3a9b2511fed9a731867200e4f298f8f54eaf85b
Reviewed-on: https://skia-review.googlesource.com/150580
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,google/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,google/skia,Hikari-no-Tenshi/android_exte... |
9d2de4a05fa7e978d16dd6e35a12d432ee845c3c | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 62
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 63
#endif
| Update Skia milestone to 63 | Update Skia milestone to 63
TBR: reed
Change-Id: I0ae2640539d640227ede9b818793f220f2328832
Reviewed-on: https://skia-review.googlesource.com/41361
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_ext... |
caac0899b528102b88a7d49d3324d7b39d2ae88d | test/Analysis/casts.c | test/Analysis/casts.c | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region --verify %s
// Test if the 'storage' region gets properly initialized after it is cast to
// 'struct sockaddr *'.
#include <sys/types.h>
#include <sys/socket.h>
void f(int sock) {
struct sockaddr_storage storage;
struct sockaddr* sockaddr = (struct... | // RUN: clang-cc -triple x86_64-apple-darwin9 -analyze -checker-cfref -analyzer-store=region --verify %s
// Test if the 'storage' region gets properly initialized after it is cast to
// 'struct sockaddr *'.
typedef unsigned char __uint8_t;
typedef unsigned int __uint32_t;
typedef __uint32_t __darwin_socklen_t;
typed... | Make this test case more portable by removing its dependency on system header files. | Make this test case more portable by removing its dependency on system header files.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79511 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
5adfa9687fc3a70ad00918004f013e056f8d14b0 | test/Driver/noexecstack.c | test/Driver/noexecstack.c | // RUN: %clang -### %s -c -o tmp.o -triple i686-pc-linux-gnu -integrated-as -Wa,--noexecstack 2>&1 | grep "mnoexecstack"
| // RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -Wa,--noexecstack 2>&1 | FileCheck %s
// CHECK: "-cc1" {{.*}} "-mnoexecstack"
| Use -target instead of triple and use FileCheck. | Use -target instead of triple and use FileCheck.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@193502 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
65b96896c1a63ec40f21732e4b1777b0053d63c1 | test/Driver/aarch64-mte.c | test/Driver/aarch64-mte.c | // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+memtag %s 2>&1 | FileCheck %s
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+memtag %s 2>&1 | FileCheck %s
// CHECK: "-target-feature" "+mte"
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+nomemtag %s 2>&1 | File... | Test clang option for the Memory Tagging Extension | [AArch64][v8.5A] Test clang option for the Memory Tagging Extension
The implementation of this is in TargetParser, so we only need to add a
test for it in clang.
Patch by Pablo Barrio!
Differential revision: https://reviews.llvm.org/D52493
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@343566 91177308-0d34-... | C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
c1290ad36b0aff4ab1661233eae6e043858c2813 | libkoshka_mm.h | libkoshka_mm.h | typedef struct
{
unsigned long long int width,height;
long long int handle_x,handle_y;
GLuint texture;
SDL_Surface *surface;
GLuint mask;
} Image;
void bb_fatal_error(char *msg);
| typedef struct
{
long long int width,height;
long long int width_frames,height_frames;
long long int handle_x,handle_y;
GLuint *textures;
SDL_Surface *surface;
GLuint mask_color;
unsigned long long int **masks;
unsigned long long int mask_width;
unsigned long long int mask_height;
} ... | Change definition of Image struct so all width/height fields are signed integers. Add fields to Image struct that deal with collision masking. | Change definition of Image struct so all width/height fields are signed integers.
Add fields to Image struct that deal with collision masking.
| C | bsd-2-clause | clockworkdevstudio/Idlewild-Lang,clockworkdevstudio/Idlewild-Lang,clockworkdevstudio/Idlewild-Lang |
f269793b3350ed21c83d7c7ac456aa7743f5c9e9 | mount_slash/fuse_listener.h | mount_slash/fuse_listener.h | /* $Id$ */
/*
* %PSC_START_COPYRIGHT%
* -----------------------------------------------------------------------------
* Copyright (c) 2006-2010, Pittsburgh Supercomputing Center (PSC).
*
* Permission to use, copy, and modify this software and its documentation
* without fee for personal use or non-commercial use ... | /* $Id$ */
/*
* %PSC_START_COPYRIGHT%
* -----------------------------------------------------------------------------
* Copyright (c) 2006-2010, Pittsburgh Supercomputing Center (PSC).
*
* Permission to use, copy, and modify this software and its documentation
* without fee for personal use or non-commercial use ... | Add use_ino to see if it helps our rename replay bug. | Add use_ino to see if it helps our rename replay bug.
git-svn-id: ae92b08b608af1c8cefa3e10d2325ea527204e07@11960 3eda493b-6a19-0410-b2e0-ec8ea4dd8fda
| C | isc | pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable |
c00b719326a4055f203fa22b228452311d00d5f0 | Library/Pusher.h | Library/Pusher.h | //
// libPusher.h
// Pods
//
// Created by Alexander Schuch on 08/04/13.
//
//
#import <Pusher/PTPusher.h>
#import <Pusher/PTPusherServerBasedAuthorization.h>
#import <Pusher/PTPusherChannel.h>
#import <Pusher/PTPusherEvent.h>
#import <Pusher/PTPusherAPI.h>
#import <Pusher/PTPusherEventDispatcher.h>
| //
// libPusher.h
// Pods
//
// Created by Alexander Schuch on 08/04/13.
//
//
#import "PTPusher.h"
#import "PTPusherChannelServerBasedAuthorization.h"
#import "PTPusherChannel.h"
#import "PTPusherEvent.h"
#import "PTPusherAPI.h"
| Use quoted paths in global header. | Use quoted paths in global header. | C | mit | hamchapman/libPusher,hamchapman/libPusher,lukeredpath/libPusher,hamchapman/libPusher,hamchapman/libPusher,lukeredpath/libPusher,lukeredpath/libPusher,lukeredpath/libPusher |
ba84947c6085e4851198dc21b4e7abb477b7f20f | os/atNetwork.h | os/atNetwork.h |
#ifndef AT_NETWORK_H
#define AT_NETWORK_H
// Under Windows, define stuff that we need
#ifdef _MSC_VER
#include <winsock.h>
#define MAXHOSTNAMELEN 64
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define MSG_WAITALL 0
typedef SOCKET Socket;
typedef int ... |
#ifndef AT_NETWORK_H
#define AT_NETWORK_H
// Under Windows, define stuff that we need
#ifdef _MSC_VER
#include <winsock.h>
#define MAXHOSTNAMELEN 64
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define MSG_WAITALL 0
typedef SOCKET Socket;
typedef int ... | Add new typedef for values sent to setsockopt(). | Add new typedef for values sent to setsockopt().
| C | apache-2.0 | ucfistirl/atlas,ucfistirl/atlas |
ee1bd4be9c2f599bde27de707b61b2e19b1cc2b8 | src/mapraised.c | src/mapraised.c | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Maps and raises the specified window id (integer).
*/
#include <X11/Xlib.h>
#include <stdlib.h>
int main(int argc, char** argv) {
if (a... | /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Maps and raises the specified window id (integer).
*/
/* TODO: use XResizeWindow to do the +1 width ratpoison hack.
* And at this point, we... | Add TODO to replace ratpoison. | Add TODO to replace ratpoison.
| C | bsd-3-clause | tedm/crouton,mkasick/crouton,twmccart/crouton,tedm/crouton,fxcebx/crouton,fxcebx/crouton,tedm/crouton,taterbase/crouton,fxcebx/crouton,taterbase/crouton,rperce/chroagh,arbuztw/crouton,mkasick/crouton,stephen-soltesz/crouton,mkasick/crouton,DanDanBu/crouton,jamgregory/crouton,jamgregory/crouton,tonyxue/cruise,twmccart/c... |
7ca0689b9b3f085d398062f7f09059f7be691829 | test/CFrontend/2007-03-05-DataLayout.c | test/CFrontend/2007-03-05-DataLayout.c | // Testcase for PR1242
// RUN: %llvmgcc -c %s -o %t && lli --force-interpreter=1 %t
#include <stdlib.h>
#define NDIM 3
#define BODY 01
typedef double vector[NDIM];
typedef struct bnode* bodyptr;
// { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x
// double], double, \2 *, \2 * }
struct bnode {
... | Test to ensure that data layout is generated correctly for host platform. This is for PR1242. | Test to ensure that data layout is generated correctly for host platform.
This is for PR1242.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@34944 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,dsl... | |
659a95bf640de07acaa34a341033d581e4db0bd2 | chrome/browser/chromeos/login/mock_user_manager.h | chrome/browser/chromeos/login/mock_user_manager.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_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#pragma once
#include <string>
... | // 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_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
#pragma once
#include <string>
... | Fix clang warning in tests for Chrome OS | Fix clang warning in tests for Chrome OS
BUG=none
TEST=build with clang and gcc
Review URL: http://codereview.chromium.org/7002028
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@84970 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | Just-D/chromium-1,Fireblend/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,robclark/chromium,zcbenz/cefode-chromium,zcbenz/cefode-chromium,M4sse/chromium.src,littlstar/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,chuan9/chromium-cros... |
8891184b232879b80350fec7e2e7a6ce2f25c9fd | test/Lexer/digraph.c | test/Lexer/digraph.c | // RUN: clang -fsyntax-only %s
%:include <stdio.h>
%:ifndef BUFSIZE
%:define BUFSIZE 512
%:endif
void copy(char d<::>, const char s<::>, int len)
<%
while (len-- >= 0)
<%
d<:len:> = s<:len:>;
%>
%>
| // RUN: clang -fsyntax-only -verify < %s
%:include <stdio.h>
%:ifndef BUFSIZE
%:define BUFSIZE 512
%:endif
void copy(char d<::>, const char s<::>, int len)
<%
while (len-- >= 0)
<%
d<:len:> = s<:len:>;
%>
%>
| Fix the run line for this test. | Fix the run line for this test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@52169 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
672cb8ff4892b115e1aebda2713e6d37a3b31e61 | app/tx/main.c | app/tx/main.c | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "led.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_ST... | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "nrf51.h"
#include "nrf_delay.h"
#include "error.h"
#include "gpio.h"
#include "led.h"
#include "radio.h"
void error_handler(uint32_t err_code, uint32_t line_num, char * file_name)
{
while (1)
{
for (uint8_t i = LED_START; i < LED_ST... | Check error codes when sending. | Check error codes when sending.
| C | bsd-3-clause | hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio |
a6b59d5f22fc3329d3514094e43aa2b27271b632 | src/usdt.h | src/usdt.h | #pragma once
#include <string>
#include <vector>
struct usdt_probe_entry
{
std::string path;
std::string provider;
std::string name;
int num_locations;
};
typedef std::vector<usdt_probe_entry> usdt_probe_list;
class USDTHelper
{
public:
static usdt_probe_entry find(int pid,
... | #pragma once
#include <string>
#include <vector>
struct usdt_probe_entry
{
std::string path;
std::string provider;
std::string name;
int num_locations;
};
typedef std::vector<usdt_probe_entry> usdt_probe_list;
// Note this class is fully static because bcc_usdt_foreach takes a function
// pointer callback w... | Add comment for why USDTHelper is static | NFC: Add comment for why USDTHelper is static
| C | apache-2.0 | iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace |
b418fa6d7ccf3beb5f48c3873f3c8f4460e0c33a | include/HubFramework/HUBComponentImageDataBuilder.h | include/HubFramework/HUBComponentImageDataBuilder.h | #import <UIKit/UIKit.h>
#import "HUBComponentImageData.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol defining the public API for a builder that builds image data objects
*
* This builder acts like a mutable model counterpart for `HUBComponentImageData`, with the key
* difference that they are not related by inher... | #import <UIKit/UIKit.h>
#import "HUBComponentImageData.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Protocol defining the public API for a builder that builds image data objects
*
* This builder acts like a mutable model counterpart for `HUBComponentImageData`, with the key
* difference that they are not related by inher... | Use strong storage for component local image | Use strong storage for component local image | C | apache-2.0 | spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework |
1cbb50a8a9a4fe09ff43479236e89cab9ac3df17 | include/clang/Frontend/PCHDeserializationListener.h | include/clang/Frontend/PCHDeserializationListener.h | //===- PCHDeserializationListener.h - Decl/Type PCH Read Events -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- PCHDeserializationListener.h - Decl/Type PCH Read Events -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Make this destructor virtual to placate GCC's warnings. | Make this destructor virtual to placate GCC's warnings.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@108534 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
67506f9a3fd1800e040df26ae7a89c6343780402 | tools/test_apps/system/monitor_ide_integration/main/main.c | tools/test_apps/system/monitor_ide_integration/main/main.c | /* Monitor-IDE integration test
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include "fr... | /* Monitor-IDE integration test
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include "fr... | Increase the delay before producing exception in the Monitor IDE test app | Tools: Increase the delay before producing exception in the Monitor IDE test app
| C | apache-2.0 | espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf |
eaea595bb0310b19f41d1b2eece7fbe4d5dbf14e | src/trusted/service_runtime/nacl_syscall_asm_symbols.h | src/trusted/service_runtime/nacl_syscall_asm_symbols.h | /*
* Copyright 2008 The Native Client 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 SERVICE_RUNTIME_NACL_SYSCALL_H__
#define SERVICE_RUNTIME_NACL_SYSCALL_H__
#if !NACL_MACOSX || defined(NACL_STANDALONE)
extern int Na... | /*
* Copyright 2008 The Native Client 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 SERVICE_RUNTIME_NACL_SYSCALL_H__
#define SERVICE_RUNTIME_NACL_SYSCALL_H__
extern int NaClSyscallSeg();
#endif
| Remove unused special case for Mac OS X | Tidy: Remove unused special case for Mac OS X
The special case was dead code anyway because it tested the wrong preprocessor symbol (NACL_MACOSX instead of NACL_OSX).
Review URL: http://codereview.chromium.org/1051001
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@1792 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
| C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client |
df7f69f7a0f5268b3bf0dea2797bed8da774c003 | src/Version.h | src/Version.h | #include "SocketCommand.h"
class Version : public SocketCommand {
Q_OBJECT
public:
Version(WebPageManager *, QStringList &arguments, QObject *parent = 0);
virtual void start();
};
| #include "qtwebkitversion.h"
#include "SocketCommand.h"
class Version : public SocketCommand {
Q_OBJECT
public:
Version(WebPageManager *, QStringList &arguments, QObject *parent = 0);
virtual void start();
};
| Include qtwebkitversion.h to work in newer qtwebkit | Include qtwebkitversion.h to work in newer qtwebkit
This likely got pulled in automatically in a previous qtwebkit version, but now needs to be explicitly included. | C | mit | thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,thoughtbot/capybara-webkit,mhoran/capybara-webkit,twalpole/capybara-webkit,twalpole/capybara-webkit,mhoran/capybara-webkit,mhoran/capybara-webkit,mhoran/capybara-webkit,twalpole/capybara-webkit,twalpole/capybara-webkit |
8c3434c5cb94857dcc3b381d9ca5490643e18074 | AVOS/AVOSCloudIM/TypedMessages/AVIMRecalledMessage.h | AVOS/AVOSCloudIM/TypedMessages/AVIMRecalledMessage.h | //
// AVIMRecalledMessage.h
// AVOS
//
// Created by Tang Tianyong on 26/06/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import "AVIMTypedMessage.h"
NS_ASSUME_NONNULL_BEGIN
@interface AVIMRecalledMessage : AVIMTypedMessage <AVIMTypedMessageSubclassing>
@end
NS_ASSUME_NONNULL_END
| //
// AVIMRecalledMessage.h
// AVOS
//
// Created by Tang Tianyong on 26/06/2017.
// Copyright © 2017 LeanCloud Inc. All rights reserved.
//
#import "AVIMTypedMessage.h"
NS_ASSUME_NONNULL_BEGIN
/**
This class is a type of messages that have been recalled by its sender.
*/
@interface AVIMRecalledMessage : AVIMT... | Add comment for recalled message | Add comment for recalled message
| C | apache-2.0 | leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk |
9a674b55fe0a9e22bc7e324e09fff3ad188b08e0 | tests/regression/36-octapron/29-combine-arg-var-conflict.c | tests/regression/36-octapron/29-combine-arg-var-conflict.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <assert.h>
int f(int x) {
return x + 1;
}
int g(int x) {
int y;
y = f(x);
assert(y == x + 1);
return x;
}
int main(void) {
int z, w;
w = g(z);
assert(z == w);
return 0;
}
| Add test for octApron combine where arg vars conflict | Add test for octApron combine where arg vars conflict
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
a28adab74e7d55aa414829a03cedd20bd966eacf | interpreter/cling/include/cling/UserInterface/CompilationException.h | interpreter/cling/include/cling/UserInterface/CompilationException.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_COMPILATIONEXCEPTION_H
#define CLING_COMPILATIONEXCEPTION... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#ifndef CLING_COMPILATIONEXCEPTION_H
#define CLING_COMPILATIONEXCEPTION... | Add more rationale as to how this exception is different from others. | Add more rationale as to how this exception is different from others.
| C | lgpl-2.1 | karies/root,mkret2/root,omazapa/root,buuck/root,krafczyk/root,CristinaCristescu/root,thomaskeck/root,sbinet/cxx-root,gganis/root,nilqed/root,arch1tect0r/root,mattkretz/root,esakellari/my_root_for_test,esakellari/my_root_for_test,zzxuanyuan/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,mattkretz/... |
97c44a23a590b79c8538874798e140f1e1db559f | tests/sources/basic/30-mpi/src/main/c/addVector.c | tests/sources/basic/30-mpi/src/main/c/addVector.c | #include "mpi.h"
#include <stdio.h>
#include <math.h>
int main(int argc, char **argv) {
// Variables used per process
int myid, numprocs;
int myresult = 0;
// Global variables
int DATA_SIZE = argc;
int data[DATA_SIZE], result;
// Chunk control variables
int i, low, high, size;... | Add mpiCC source for MPI test | Add mpiCC source for MPI test
git-svn-id: 6cb0c57df7a4a7d32342646683f5f1b5f4d88845@2381 9ab3861e-6c05-4e1b-b5ef-99af60850597
| C | apache-2.0 | mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs | |
8bf24c66e6a41067fb4fb7b443fb6ea85dc96b8e | Demo/Classes/AppDelegate.h | Demo/Classes/AppDelegate.h | //
// SVProgressHUDAppDelegate.h
// SVProgressHUD
//
// Created by Sam Vermette on 27.03.11.
// Copyright 2011 Sam Vermette. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *__weak window;
ViewController *__weak v... | //
// SVProgressHUDAppDelegate.h
// SVProgressHUD
//
// Created by Sam Vermette on 27.03.11.
// Copyright 2011 Sam Vermette. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : NSObject <UIApplicationDelegate>
@property (strong, nonatomic) IBOutlet UIWindow *window;
@... | Fix ARC warning in demo project. | Fix ARC warning in demo project.
| C | mit | sdonly/SVProgressHUD,luxe-eng/valet-ios.SVProgressHUD,phildow/SVProgressHUD,ohyeslk/SVProgressHUD,Sunday4/SVProgressHUD,CoderJFCK/SVProgressHUD,cnzlh/SVProgressHUD,bertramdev/SVProgressHUD,lyndonChen/SVProgressHUD,wrcj12138aaa/SVProgressHUD,DramaFever/DFProgressHUD,CPF183/SVProgressHUD,PeeJWeeJ/SwiftyHUD,ddc391565320/S... |
667f1a5478e2196696554fc32993cd5ff2b718fa | You-DataStore/internal/operations/serialization_operation.h | You-DataStore/internal/operations/serialization_operation.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
#include "../operation.h"
namespace You {
namespace DataStore {
namespace Internal {
class SerializationOperation : public IOperation {
public:
/// Serialize task to... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATIONS_SERIALIZATION_OPERATION_H_
#include "../operation.h"
namespace You {
namespace DataStore {
namespace Internal {
class SerializationOperation : public IOperation {
public:
/// Serialize task to... | Remove unnecessary member variable in SerializationOperation | Remove unnecessary member variable in SerializationOperation
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
d5321842528dfb73f8254a48556b4adb1b6d1c5a | contrib/cube/cubedata.h | contrib/cube/cubedata.h | /* contrib/cube/cubedata.h */
#include "fmgr.h"
#define CUBE_MAX_DIM (100)
typedef struct NDBOX
{
int32 vl_len_; /* varlena header (do not touch directly!) */
unsigned int dim;
double x[1];
} NDBOX;
#define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x))
#define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATU... | /* contrib/cube/cubedata.h */
#define CUBE_MAX_DIM (100)
typedef struct NDBOX
{
int32 vl_len_; /* varlena header (do not touch directly!) */
unsigned int dim;
double x[1];
} NDBOX;
#define DatumGetNDBOX(x) ((NDBOX*)DatumGetPointer(x))
#define PG_GETARG_NDBOX(x) DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x... | Remove "fmgr.h" include in cube contrib --- caused crash on a Gentoo builfarm member. | Remove "fmgr.h" include in cube contrib --- caused crash on a Gentoo
builfarm member.
| C | mpl-2.0 | zeroae/postgres-xl,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,zeroae/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,adam8157/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,postmind-net/postgres-xl,oberstet/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,snaga/postgre... |
520cee1eeb88bae50e20c4b53c0eedf843269ba9 | tensorflow/core/platform/test_benchmark.h | tensorflow/core/platform/test_benchmark.h | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Add IWYU tags to headers TF is re-exporting. | Add IWYU tags to headers TF is re-exporting.
PiperOrigin-RevId: 291557790
Change-Id: Ic0268063ea1048bf6f22ba6aee1b9854d6420f30
| C | apache-2.0 | gunan/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,xzturn/tensorflow,yongtang/tensorflow,xzturn/tensorflow,aldian/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,a... |
d58efe12d8c0dcfcc7a2495682dbea864a8112fa | src/tinyarg.h | src/tinyarg.h | #ifndef __TINYARG_H__
#define __TINYARG_H__
struct tiny_args_t;
bool tiny_args_parse(struct tiny_args_t* args, int argc, const char* argv[]);
void tiny_args_add_bool(struct tiny_args_t** args,
char short_opt,
const char* long_opt,
bool* flag,
const char* desc);
void ... | #ifndef __TINYARG_H__
#define __TINYARG_H__
#ifdef __cplusplus
extern "C"
{
#endif
struct tiny_args_t;
bool tiny_args_parse(struct tiny_args_t* args, int argc, const char* argv[]);
void tiny_args_add_bool(struct tiny_args_t** args,
char short_opt,
const char* long_op... | Add externs for use in C++ code | Add externs for use in C++ code
| C | mit | yoink00/tinyarg |
8f117e00785bbf86d94df997e08a45ae06dd73b7 | src/bool.h | src/bool.h | /**
* File: bool.h
* Author: Cindy Norris
*/
#define TRUE 1
#define FALSE 0
typedef int bool;
| /*
* File: bool.h
* Author: Cindy Norris
*/
#define TRUE 1
#define FALSE 0
typedef int bool;
| Change file header to C style | Change file header to C style
| C | isc | sbennett1990/YESS,sbennett1990/YESS,sbennett1990/YESS |
29e868951da7348ffa021889bfd5719bab403308 | numpy/core/src/multiarray/multiarraymodule_onefile.c | numpy/core/src/multiarray/multiarraymodule_onefile.c | /*
* This file includes all the .c files needed for a complete multiarray module.
* This is used in the case where separate compilation is not enabled
*
* Note that the order of the includs matters
*/
#include "common.c"
#include "scalartypes.c"
#include "scalarapi.c"
#include "datetime.c"
#include "arraytypes.... | /*
* This file includes all the .c files needed for a complete multiarray module.
* This is used in the case where separate compilation is not enabled
*
* Note that the order of the includs matters
*/
#include "common.c"
#include "scalartypes.c"
#include "scalarapi.c"
#include "datetime.c"
#include "arraytypes.... | Add einsum to the one file build | BLD: Add einsum to the one file build
| C | bsd-3-clause | hainm/numpy,groutr/numpy,shoyer/numpy,njase/numpy,astrofrog/numpy,empeeu/numpy,numpy/numpy,ajdawson/numpy,gmcastil/numpy,mattip/numpy,ajdawson/numpy,maniteja123/numpy,SiccarPoint/numpy,groutr/numpy,jakirkham/numpy,rajathkumarmp/numpy,ewmoore/numpy,felipebetancur/numpy,utke1/numpy,CMartelLML/numpy,pyparallel/numpy,dwill... |
f1ab4741e908aef88a7ac7f0c375b75fe51c39b4 | packages/Python/lldbsuite/test/lang/c/inlines/main.c | packages/Python/lldbsuite/test/lang/c/inlines/main.c | #include <stdio.h>
void test1(int) __attribute__ ((always_inline));
void test2(int) __attribute__ ((always_inline));
void test2(int b) {
printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
}
void test1(int a) {
printf("test1(%d)\n", a);
test2(a+1);... | #include <stdio.h>
inline void test1(int) __attribute__ ((always_inline));
inline void test2(int) __attribute__ ((always_inline));
void test2(int b) {
printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
}
void test1(int a) {
printf("test1(%d)\n", a);
... | Make sure TestRedefinitionsInInlines.py actually inlines. | Make sure TestRedefinitionsInInlines.py actually inlines.
Reviewers: spyffe
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D20540
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@270493 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb |
2a60aff9425ba701f5669a6732412d30b89dd410 | components/esp8266/include/internal/esp_wifi_internal.h | components/esp8266/include/internal/esp_wifi_internal.h | // Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | Add feature to set/get WIFI rx data ram type | feat(esp8266): Add feature to set/get WIFI rx data ram type
Use iram to upload pbuf.
| C | apache-2.0 | espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK,espressif/ESP8266_RTOS_SDK | |
e157719757e4005148287de3831e4b585715ebfd | tests/regression/31-ikind-aware-ints/16-enums-compare.c | tests/regression/31-ikind-aware-ints/16-enums-compare.c | //PARAM: --enable ana.int.enums --disable ana.int.def_exc
int main(){
int top = rand();
int x,y;
if(top){
x = 1;
} else{
x = 0;
}
assert(x < 2);
assert(x < 1); // UNKNOWN!
assert(x < 0); // FAIL
assert(x <= 2);
assert(x <= 1);
assert(x <= 0); // UNKNOWN!
... | //PARAM: --enable ana.int.enums --disable ana.int.def_exc
int main(){
int top = rand();
int top2 = rand();
int x,y;
if(top){
x = 1;
} else{
x = 0;
}
if(top2){
y = 1;
} else{
y = 0;
}
assert(x < 2);
assert(x < 1); // UNKNOWN!
assert(x < 0... | Add more asserts for eq and ne in Enums | Add more asserts for eq and ne in Enums
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
23db9892b5bdf8493b86ff5676d5cc29f17588ab | Modules/OpenViewCore/include/QVTKFramebufferObjectRenderer.h | Modules/OpenViewCore/include/QVTKFramebufferObjectRenderer.h | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warr... | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warr... | Fix warnings in OpenViewCore module | Fix warnings in OpenViewCore module
| C | bsd-3-clause | MITK/MITK,fmilano/mitk,MITK/MITK,fmilano/mitk,fmilano/mitk,fmilano/mitk,MITK/MITK,MITK/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmilano/mitk,MITK/MITK |
adb4b9f67da9152584a958671ad8aac2aad28f0f | PG/app/AppConfiguration.h | PG/app/AppConfiguration.h | #pragma once
#include "PG/app/StyleSheet.h"
#include "PG/core/Size.h"
#include <string>
namespace PG {
//--------------------------------------------------------
struct AppConfiguration
{
std::string windowTitle;
Size windowSize;
int tileSize = 32;
std::string resourcesFilename;
StyleSheet styleSheet;
... | #pragma once
#include "PG/app/StyleSheet.h"
#include "PG/core/Size.h"
#include <string>
namespace PG {
//--------------------------------------------------------
struct AppConfiguration
{
std::string windowTitle;
Size windowSize;
int tileSize = 32;
StyleSheet styleSheet;
};
}
| Remove resourcesFilename as it's not required | Remove resourcesFilename as it's not required
| C | mit | mcdreamer/PG,mcdreamer/PG |
e808ebf62fcc63e1c21f9931ffec021604043d35 | libyaul/scu/bus/cpu/cpu.h | libyaul/scu/bus/cpu/cpu.h | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _CPU_H_
#define _CPU_H_
#include <cpu/cache.h>
#include <cpu/divu.h>
#include <cpu/dmac.h>
#include <cpu/dual.h>
#include <cpu/endian.h>
#include <cpu/frt.h>
#include <cpu/instructions.h>
#inc... | /*
* Copyright (c) 2012-2016 Israel Jacquez
* See LICENSE for details.
*
* Israel Jacquez <mrkotfw@gmail.com>
*/
#ifndef _CPU_H_
#define _CPU_H_
#include <cpu/cache.h>
#include <cpu/divu.h>
#include <cpu/dmac.h>
#include <cpu/dual.h>
#include <cpu/endian.h>
#include <cpu/frt.h>
#include <cpu/instructions.h>
#inc... | Remove prototypes for static methods | Remove prototypes for static methods | C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul |
11782c7860ced878fed5db2d68d8c8fe3bdfdd1d | 2018/clone/clone-vm-sample.c | 2018/clone/clone-vm-sample.c | #define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int child_func(void* arg) {
return 0;
}
int main(int argc, char** argv) {
// Stack for child.
const int STACK_SIZE = 65536;
char* stack =... | #define _GNU_SOURCE
#include <sched.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static int child_func(void* arg) {
char* buf = (char*)arg;
strcpy(buf, "hello");
return 0;
}
int main(int argc, char** argv) {
// Stack for child... | Clone with/without VM sample working now | Clone with/without VM sample working now
| C | unlicense | eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.