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
6d1b716753c1cc8a2f5c26338020941aa58ce9d7
unknown.c
unknown.c
#ifdef NO_PORT #include "mono/interpreter/interp.h" MonoPIFunc mono_create_trampoline (MonoMethod *method) { g_error ("Unsupported arch"); return NULL; } void * mono_create_method_pointer (MonoMethod *method) { g_error ("Unsupported arch"); return NULL; } #endif
#ifdef NO_PORT #include "mono/interpreter/interp.h" MonoPIFunc mono_create_trampoline (MonoMethodSignature *sig, gboolean string_ctor) { g_error ("Unsupported arch"); return NULL; } void * mono_create_method_pointer (MonoMethod *method) { g_error ("Unsupported arch"); return NULL; } #endif
Update to the API change of a while ago.
Update to the API change of a while ago. svn path=/trunk/mono/; revision=10545
C
bsd-3-clause
biotrump/ffts-tec,linkotec/mono_arch,linkotec/mono_arch,biotrump/ffts-tec,linkotec/mono_arch,biotrump/ffts-tec,biotrump/ffts-tec
33db8cda15b9aa8004078577063c3ea50c80b102
ui/message_center/base_format_view.h
ui/message_center/base_format_view.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #define UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #include "ui/message_center/message_view.h" #include "ui/...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #define UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #include "ui/message_center/message_view.h" #include "ui/...
Add a missing override from r167851. Hopefully this unbreaks the CrOS Clang build.
Add a missing override from r167851. Hopefully this unbreaks the CrOS Clang build. TBR=miket git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@167854 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
dushu1203/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,markYoungH/chromium.src,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,anirudhSK/chromium,M4sse/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,mohamed--abdel-makso...
f96642de25cc145286bc35825c3f4ecc4dcb248b
ports/atmel-samd/boards/adafruit_slide_trinkey_m0/pins.c
ports/atmel-samd/boards/adafruit_slide_trinkey_m0/pins.c
#include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_global_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA04) }, { MP_ROM_QSTR(MP_QSTR_POTENTIOMETER), MP_ROM_PTR(&pin_PA02) }, { MP_ROM_QSTR(MP_QSTR_TOUCH), MP_ROM_PTR(&pin_PA07) }, }; MP_DEFINE_CONST_DICT(bo...
#include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_global_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA04) }, { MP_ROM_QSTR(MP_QSTR_POTENTIOMETER), MP_ROM_PTR(&pin_PA02) }, { MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) }, { MP_ROM_QSTR(MP_QSTR_TOU...
Add A0 as alias to pot pin.
Add A0 as alias to pot pin.
C
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython
05a03b02ca0a0d80542a74d1e9cc55d794dca595
src/chrono/core/ChChrono.h
src/chrono/core/ChChrono.h
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
Add description of the `chrono::fea` namespace
Add description of the `chrono::fea` namespace
C
bsd-3-clause
rserban/chrono,projectchrono/chrono,projectchrono/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,rserban/chrono,projectchrono/chrono,rserban/chrono,rserban/chrono,rserban/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,rserban/chrono,projectchrono/chrono,dar...
77db605eec03df2e12b713639d63c9777161b309
testmud/mud/home/Text/sys/verb/wiz/pset.c
testmud/mud/home/Text/sys/verb/wiz/pset.c
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2012 Raymond Jennings * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundati...
Add prototype for property set command
Add prototype for property set command
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
811907fb84d45caad1376698b43316a18b96ed00
src/main.c
src/main.c
/* ***************************************************************************** * ___ _ _ _ _ * / _ \ __ _| |_| |__(_) |_ ___ * | (_) / _` | / / '_ \ | _(_-< * \___/\__,_|_\_\_.__/_|\__/__/ * Copyright (c) 201...
/* ***************************************************************************** * ___ _ _ _ _ * / _ \ __ _| |_| |__(_) |_ ___ * | (_) / _` | / / '_ \ | _(_-< * \___/\__,_|_\_\_.__/_|\__/__/ * Copyright (c) 201...
Add newline after printing flake
Add newline after printing flake
C
mit
MainRo/sysflake,MainRo/sysflake,MainRo/sysflake
bcfea9f14002e5a0746ff75469219beb785e3117
src/node.h
src/node.h
#ifndef SRC_NODE_H_ #define SRC_NODE_H_ #include "./render_data.h" /** * \brief * * */ class Node { public: virtual ~Node() { } virtual void render(const RenderData &renderData) = 0; protected: Node() { } }; #endif // SRC_NODE_H_
#ifndef SRC_NODE_H_ #define SRC_NODE_H_ #include "./render_data.h" #include <boost/serialization/serialization.hpp> #include <boost/serialization/access.hpp> #include <boost/serialization/nvp.hpp> /** * \brief * * */ class Node { public: virtual ~Node() { } virtual void render(const RenderData &renderD...
Add serialization to Node class.
Add serialization to Node class.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
331895c3947e67098189232b689c7943703988ac
CoconutKit/Sources/View/HLSTextView.h
CoconutKit/Sources/View/HLSTextView.h
// // HLSTextView.h // CoconutKit // // Created by Samuel Défago on 03.11.11. // Copyright (c) 2011 Hortis. All rights reserved. // // TODO: - move automatically with the keyboard // - dismiss when tapping outside @interface HLSTextView : UITextView /** * The text to be displayed when the text view is emp...
// // HLSTextView.h // CoconutKit // // Created by Samuel Défago on 03.11.11. // Copyright (c) 2011 Hortis. All rights reserved. // /** * Lightweight UITextView subclass providing more functionalities */ @interface HLSTextView : UITextView /** * The text to be displayed when the text view is empty. Default is ...
Add a small bit of documentation
Add a small bit of documentation
C
mit
cbdr/CoconutKit,cbdr/CoconutKit,cbdr/CoconutKit,cbdr/CoconutKit,cbdr/CoconutKit
fdc2808e4c51f5a1126af8906f596d6eb31cf996
arch/sgi/dev/iockbcvar.h
arch/sgi/dev/iockbcvar.h
/* $OpenBSD: iockbcvar.h,v 1.3 2010/12/03 18:29:56 shadchin Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in al...
/* $OpenBSD: iockbcvar.h,v 1.4 2010/12/04 11:23:43 jsing Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all c...
Make sgi port compile again.
Make sgi port compile again.
C
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
efc87d57b802c892907bcadeaf23cd65d597c7ce
cbits/fakekey.c
cbits/fakekey.c
//////////////////////////////////////////////////////////////////////////////// #ifdef __linux__ #include <stdio.h> #include <X11/Xlib.h> #include <X11/Intrinsic.h> #include <X11/extensions/XTest.h> Display *fakekey_dis; void fakekey_init(void) { fakekey_dis = XOpenDisplay(NULL); } void fakekey_press(int code)...
//////////////////////////////////////////////////////////////////////////////// #ifdef __linux__ #include <stdio.h> #include <X11/Xlib.h> #include <X11/Intrinsic.h> #include <X11/extensions/XTest.h> Display *fakekey_dis; void fakekey_init(void) { fakekey_dis = XOpenDisplay(NULL); } void fakekey_press(int keysy...
Use keysym to keycode mapping in C
Use keysym to keycode mapping in C
C
bsd-3-clause
bitonic/zurihac-plays,bitonic/zurihac-plays
d1c6a8062577f5ce58105afff2d0a1887bfff957
include/tgbot/net/TgLongPoll.h
include/tgbot/net/TgLongPoll.h
#ifndef TGBOT_TGLONGPOLL_H #define TGBOT_TGLONGPOLL_H #include "tgbot/Bot.h" #include "tgbot/Api.h" #include "tgbot/EventHandler.h" namespace TgBot { /** * @brief This class handles long polling and updates parsing. * * @ingroup net */ class TgLongPoll { public: TgLongPoll(const Api* api, const EventHandler...
#ifndef TGBOT_TGLONGPOLL_H #define TGBOT_TGLONGPOLL_H #include "tgbot/Bot.h" #include "tgbot/Api.h" #include "tgbot/EventHandler.h" namespace TgBot { /** * @brief This class handles long polling and updates parsing. * * @ingroup net */ class TgLongPoll { public: TgLongPoll(const Api* api, const EventHandler...
Fix too big timeout in long poller.
Fix too big timeout in long poller. Make it 10 seconds instead of 60. Old timeout made bots irresponsible.
C
mit
reo7sp/tgbot-cpp,JellyBrick/tgbot-cpp,JellyBrick/tgbot-cpp,reo7sp/tgbot-cpp,JellyBrick/tgbot-cpp,reo7sp/tgbot-cpp
bf63a3f52e6e47d50b74e9b770d839b2e56f6368
ios/RNS3/RNS3TransferUtility.h
ios/RNS3/RNS3TransferUtility.h
#import "RCTBridgeModule.h" #import "RCTEventDispatcher.h" #import <AWSCore/AWSCore.h> #import <AWSS3/AWSS3.h> typedef enum { BASIC, COGNITO } CredentialType; @interface RNS3TransferUtility : NSObject <RCTBridgeModule> + (NSMutableDictionary*)nativeCredentialsOptions; + (CredentialType)credentialType: (NSString *)t...
#import "RCTBridgeModule.h" #import "RCTEventDispatcher.h" #import <AWSCore/AWSCore.h> #import <AWSS3/AWSS3.h> typedef NS_ENUM(NSInteger, CredentialType) { BASIC, COGNITO }; @interface RNS3TransferUtility : NSObject <RCTBridgeModule> + (NSMutableDictionary*)nativeCredentialsOptions; + (CredentialType)credenti...
Define enum as NSInteger to fix a warning.
Define enum as NSInteger to fix a warning.
C
mit
nharlow89/react-native-s3,mybigday/react-native-s3,mybigday/react-native-s3,nharlow89/react-native-s3,mybigday/react-native-s3,mybigday/react-native-s3,nharlow89/react-native-s3,nharlow89/react-native-s3
bcd8289a0eb5e4005a2ad4e70216839291896c47
MOAspects/MOAspects.h
MOAspects/MOAspects.h
// // MOAspects.h // MOAspects // // Created by Hiromi Motodera on 2015/03/15. // Copyright (c) 2015年 MOAI. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, MOAspectsPosition) { MOAspectsPositionBefore, MOAspectsPositionAfter }; typedef NS_ENUM(NSInteger, MOAspectsHook...
// // MOAspects.h // MOAspects // // Created by Hiromi Motodera on 2015/03/15. // Copyright (c) 2015年 MOAI. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, MOAspectsPosition) { MOAspectsPositionBefore, MOAspectsPositionAfter }; typedef NS_ENUM(NSInteger, MOAspectsHook...
Change hook level parameter name to hookRange
Change hook level parameter name to hookRange
C
mit
MO-AI/MOAspects,MO-AI/MOAspects
8dcc2a8ce26fd3f97cc818ebf536bb0fe563d835
arduino/OpenROV/Settings.h
arduino/OpenROV/Settings.h
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #defin...
#ifndef __SETTINGS_H_ #define __SETTINGS_H_ #include <Arduino.h> #include "Device.h" // This section is for devices and their configuration //Kit: #define HAS_STD_LIGHTS (1) #define LIGHTS_PIN 5 #define HAS_STD_CAPE (1) #define HAS_STD_2X1_THRUSTERS (1) #define HAS_STD_PILOT (1) #define HAS_STD_CAMERAMOUNT (1) #defin...
Reset default settings to stock kit configuration
Reset default settings to stock kit configuration
C
mit
bmvakili/openrov-software,MysteriousChanger/burrito-cockpid,codewithpassion/openrov-software,bmvakili/openrov-software,BrianAdams/openrov-software,codewithpassion/openrov-software,LeeCheongAh/openrov-software,ZonaElka/testOpenROV,bmvakili/openrov-software,MysteriousChanger/burrito-cockpid,bmvakili/openrov-software,bmva...
5f44348e2126e13d50cf4f9f3195ae4979ab63c9
include/ethernet.h
include/ethernet.h
struct eth_hdr { unsigned char dst_mac[6]; unsigned char src_mac[6]; short ethertype; char* payload; }; struct eth_hdr* init_eth_hdr(char* buf); void print_eth_hdr(struct eth_hdr *ehdr);
#ifndef ETHERNET_H_ #define ETHERNET_H_ #include <linux/if_ether.h> struct eth_hdr { unsigned char dst_mac[6]; unsigned char src_mac[6]; unsigned short ethertype; unsigned char* payload; }; struct eth_hdr* init_eth_hdr(char* buf); void print_eth_hdr(struct eth_hdr *ehdr); #endif
Make eth header fields unsigned
Make eth header fields unsigned
C
mit
saminiir/level-ip,saminiir/level-ip
88c8743809cccd5d855599a9c37d3b19a849b465
percolation/io_helpers.c
percolation/io_helpers.c
#include "io_helpers.h" #include <stdio.h> void print_lattice(int * lattice, int rows, int columns, int with_borders) { int i, j; for (i = 0; i < rows; i++) { if (with_borders) { for (j = 0; j < columns; j++) { printf("------"); } printf("-\n"); ...
#include "io_helpers.h" #include <stdio.h> void print_lattice(int * lattice, int rows, int columns, int with_borders) { int i, j; for (i = 0; i < rows; i++) { if (with_borders) { for (j = 0; j < columns; j++) { printf("------"); } printf("-\n"); ...
Add a newline after printing the lattice
[percolation] Add a newline after printing the lattice
C
mit
cerisola/fiscomp,cerisola/fiscomp,cerisola/fiscomp
be4979026d5f3b966e1a7121f59714e1979cbf9d
tests/regression/02-base/50-unknown_func_array.c
tests/regression/02-base/50-unknown_func_array.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #define LENGTH 10 typedef struct arr { int *ptrs[LENGTH]; } arr_t; // int mutate_array(arr_t a){ // int t = rand(); // for(int i=0; i<LENGTH; i++) { // *(a.ptrs[i]) = t; // } // } int main(){ arr_t a; int xs[LENGTH]; for...
Add test case where array is passed to unknown function.
Add test case where array is passed to unknown function.
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
bef226437c591b50a40e01b905ce47131d9e1c30
tutorials/users/tutorial_01/wrapper_tutorial_01.h
tutorials/users/tutorial_01/wrapper_tutorial_01.h
#ifndef HALIDE__generated_pgm_h #define HALIDE__generated_pgm_h #include <tiramisu/utils.h> #ifdef __cplusplus extern "C" { #endif int function0(halide_buffer_t *_p0_buffer); #ifdef __cplusplus } // extern "C" #endif #endif
Add wrapper for user tuto 01
Add wrapper for user tuto 01
C
mit
rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu
476e707cf2b5192866827e532b10f25f58082a0b
src/GSvar/SequencingRunWidget.h
src/GSvar/SequencingRunWidget.h
#ifndef SEQUENCINGRUNWIDGET_H #define SEQUENCINGRUNWIDGET_H #include <QWidget> #include "NGSD.h" namespace Ui { class SequencingRunWidget; } class SequencingRunWidget : public QWidget { Q_OBJECT public: SequencingRunWidget(QWidget* parent, QString run_id); ~SequencingRunWidget(); signals: void openProcessedSam...
#ifndef SEQUENCINGRUNWIDGET_H #define SEQUENCINGRUNWIDGET_H #include <QWidget> #include <QAction> #include "NGSD.h" namespace Ui { class SequencingRunWidget; } class SequencingRunWidget : public QWidget { Q_OBJECT public: SequencingRunWidget(QWidget* parent, QString run_id); ~SequencingRunWidget(); signals: vo...
Fix missing include under OSX
[GSvar] Fix missing include under OSX
C
mit
imgag/ngs-bits,imgag/ngs-bits,imgag/ngs-bits,imgag/ngs-bits,imgag/ngs-bits,imgag/ngs-bits
829d693e3d1e519b837587adc51c940871666c13
decoder/dict.h
decoder/dict.h
#ifndef DICT_H_ #define DICT_H_ #include <cassert> #include <cstring> #include <tr1/unordered_map> #include <string> #include <vector> #include <boost/functional/hash.hpp> #include "wordid.h" class Dict { typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map; public: Dict() : b0_("...
#ifndef DICT_H_ #define DICT_H_ #include <cassert> #include <cstring> #include <tr1/unordered_map> #include <string> #include <vector> #include <boost/functional/hash.hpp> #include "wordid.h" class Dict { typedef std::tr1::unordered_map<std::string, WordID, boost::hash<std::string> > Map; public: Dict() : b0_(...
Update utility functions to work with pyp-topics.
Update utility functions to work with pyp-topics. git-svn-id: 357248c53bdac2d7b36f7ee045286eb205fcf757@49 ec762483-ff6d-05da-a07a-a48fb63a330f
C
apache-2.0
carhaas/cdec-semparse,m5w/atools,redpony/cdec,veer66/cdec,veer66/cdec,veer66/cdec,redpony/cdec,carhaas/cdec-semparse,carhaas/cdec-semparse,veer66/cdec,redpony/cdec,m5w/atools,veer66/cdec,pks/cdec-dtrain,pks/cdec-dtrain,carhaas/cdec-semparse,pks/cdec-dtrain,redpony/cdec,redpony/cdec,redpony/cdec,veer66/cdec,pks/cdec-dtr...
4e3d4683fedb59f6cdeaeefb04c96fa124463ed4
src/abuf.h
src/abuf.h
#ifndef ABUF_H #define ABUF_H #include <string.h> #define ABUF_INIT { NULL, 0} struct abuf{ char *b; int len; }; void abAppend(struct abuf*, const char*, int); void abFree(struct abuf*); #endif
#ifndef ABUF_H #define ABUF_H #include <stdlib.h> #include <string.h> #define ABUF_INIT { NULL, 0} struct abuf{ char *b; int len; }; void abAppend(struct abuf*, const char*, int); void abFree(struct abuf*); #endif
Include stdlib for free and realloc
Include stdlib for free and realloc
C
bsd-2-clause
JordanMajd/t
74ba99eab5d87b36e1c7809b395725d83d0ab1d6
src/scan.c
src/scan.c
/* scan: Esitmate length of a mpeg file and compare to length from exact scan. copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org initially written by Thomas Orgis */ #include "mpg123.h" int main(int argc, char *...
/* scan: Estimate length (sample count) of a mpeg file and compare to length from exact scan. copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org initially written by Thomas Orgis */ /* Note the lack of error check...
Add a note about error checking, fix description and include stdio.h .
Add a note about error checking, fix description and include stdio.h . git-svn-id: 793bb72743a407948e3701719c462b6a765bc435@1145 35dc7657-300d-0410-a2e5-dc2837fedb53
C
lgpl-2.1
Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123,Distrotech/mpg123
0c617bdade524779a41ecffc85cfb9d261700318
dev/database_connection.h
dev/database_connection.h
#pragma once #include <string> // std::string #include <sqlite3.h> #include <system_error> // std::error_code, std::system_error #include "error_code.h" namespace sqlite_orm { namespace internal { inline sqlite3 *open_db(std::string const&filename) { sqlite3 *result {nullptr}; if(...
#pragma once #include <string> // std::string #include <sqlite3.h> #include <system_error> // std::error_code, std::system_error #include "error_code.h" namespace sqlite_orm { namespace internal { inline sqlite3 *open_db(std::string const&filename) { sqlite3 *result {nullptr}...
Use the new throw function
Use the new throw function
C
agpl-3.0
fnc12/sqlite_orm,fnc12/sqlite_orm
1c719512a25876346c28ebaf0ecdad007fce0a99
src/Output/Output_def.h
src/Output/Output_def.h
/* $Id: Output_def.h,v 1.16 2007-10-18 20:30:58 phruksar Exp $ */ #ifndef _OUTPUT_DEF_H #define _OUTPUT_DEF_H #define OUTFMT_HEAD 0 #define OUTFMT_UNITS 1 #define OUTFMT_COMP 2 #define OUTFMT_NUM 4 #define OUTFMT_ACT 8 #define OUTFMT_HEAT 16 #define OUTFMT_ALPHA 32 #define OUTFMT_BETA 64...
/* $Id: Output_def.h,v 1.17 2008-07-31 18:08:50 phruksar Exp $ */ #ifndef _OUTPUT_DEF_H #define _OUTPUT_DEF_H #define OUTFMT_HEAD 0 #define OUTFMT_UNITS 1 #define OUTFMT_COMP 2 #define OUTFMT_NUM 4 #define OUTFMT_ACT 8 #define OUTFMT_HEAT 16 #define OUTFMT_ALPHA 32 #define OUTFMT_BETA 64...
Define new number for new exposure rate calc
Define new number for new exposure rate calc
C
bsd-3-clause
elliottbiondo/ALARA,elliottbiondo/ALARA,elliottbiondo/ALARA,elliottbiondo/ALARA,elliottbiondo/ALARA
22ecd57dc0d2fa3e82dc0d2a39250ac0f2a5db4b
rand.h
rand.h
/** * Copyright (c) 2013-2014 Tomas Dzetkulic * Copyright (c) 2013-2014 Pavol Rusnak * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation ...
/** * Copyright (c) 2013-2014 Tomas Dzetkulic * Copyright (c) 2013-2014 Pavol Rusnak * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation ...
Add stdlib.h to header. Needed for size_t
Add stdlib.h to header. Needed for size_t
C
mit
BWallet/bwallet-crypto,BWallet/bwallet-crypto,BWallet/bwallet-crypto,BWallet/bwallet-crypto,BWallet/bwallet-crypto
a7df3bb7cc898224bc9844fb160164ca29a237ef
scanner/scanner.h
scanner/scanner.h
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
#ifndef SCANNER_H #define SCANNER_H #include <QString> #include <QChar> #include <QVector> #include "token.h" /** * @class Scanner * @brief Class representing a scanner (lexical analyzer). It takes a file path as input and generates tokens, either lazily or as a QVector. */ class Scanner { public: Scanner(cons...
Set copy/move constructors to deleted
Set copy/move constructors to deleted
C
mit
bisthebis/Boboscript,bisthebis/Boboscript
501db4b8473b4906f8a78e18f97c9a7c66b180ee
Stripe/PublicHeaders/UINavigationBar+Stripe_Theme.h
Stripe/PublicHeaders/UINavigationBar+Stripe_Theme.h
// // UINavigationBar+Stripe_Theme.h // Stripe // // Created by Jack Flintermann on 5/17/16. // Copyright © 2016 Stripe, Inc. All rights reserved. // #import <UIKit/UIKit.h> #import "STPTheme.h" NS_ASSUME_NONNULL_BEGIN /** * This allows quickly setting the appearance of a `UINavigationBar` to match your applic...
// // UINavigationBar+Stripe_Theme.h // Stripe // // Created by Jack Flintermann on 5/17/16. // Copyright © 2016 Stripe, Inc. All rights reserved. // #import <UIKit/UIKit.h> #import "STPTheme.h" NS_ASSUME_NONNULL_BEGIN /** * This allows quickly setting the appearance of a `UINavigationBar` to match your applic...
Add documentation for new stp_theme property
Add documentation for new stp_theme property
C
mit
stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,NewAmsterdamLabs/stripe-ios,fbernardo/stripe-ios,fbernardo/stripe-ios,fbernardo/stripe-ios,NewAmsterdamLabs/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,fbernardo/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,NewAmsterdamLabs/stripe-ios
93873731f73e905d8714556f1ebe23acb32de0e1
src/math/numbertheory/reducer.h
src/math/numbertheory/reducer.h
/* * Modular Reducer * (C) 1999-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_MODULAR_REDUCER_H__ #define BOTAN_MODULAR_REDUCER_H__ #include <botan/numthry.h> namespace Botan { /* * Modular Reducer */ class BOTAN_DLL Modular_Reducer { public: BigInt reduce(const B...
/* * Modular Reducer * (C) 1999-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_MODULAR_REDUCER_H__ #define BOTAN_MODULAR_REDUCER_H__ #include <botan/numthry.h> namespace Botan { /* * Modular Reducer */ class BOTAN_DLL Modular_Reducer { public: const BigInt& get_mod...
Make the modulus visible in Modular_Reducer
Make the modulus visible in Modular_Reducer
C
bsd-2-clause
randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/...
64d3e89f9b9a25d56aa4a4f77f56656b14d7e03a
test/CodeGen/avx-cmp-builtins.c
test/CodeGen/avx-cmp-builtins.c
// RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +avx -emit-llvm -o - | FileCheck %s // Don't include mm_malloc.h, it's system specific. #define __MM_MALLOC_H #include <immintrin.h> // // Test LLVM IR codegen of cmpXY instructions // __m128d test_cmp_pd(__m128d a, __m128d b) { // Expects that...
Test case for some AVX builtins. Patch by Syoyo Fujita!
Test case for some AVX builtins. Patch by Syoyo Fujita! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@132518 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/cl...
16f44fcb1fabd5f79e3a508f467a7ba9aff71293
dashboard.h
dashboard.h
#ifndef DASHBOARD_H #define DASHBOARD_H #include <sys/types.h> #include "src/process/process.h" typedef struct { char *fieldbar; int max_x; int max_y; int prev_x; int prev_y; proc_t *process_list; } board_t; void print_usage(void); char set_sort_option(char *opt); void dashboard_mainl...
#ifndef DASHBOARD_H #define DASHBOARD_H #include <sys/types.h> #include "src/process/process.h" #define STAT_PATHMAX 32 typedef struct { uid_t euid; int max_x; int max_y; int prev_x; int prev_y; char path[STAT_PATHMAX]; char *fieldbar; long memtotal; proc_t *process_list; } boar...
Add in path field in board_t
Add in path field in board_t
C
mit
tijko/dashboard
88a704e430bbbc5d6f179a87e84a498b0d0529e1
master/mtypes.h
master/mtypes.h
#define _MASTERTYPES #include <inttypes.h> //Declarations for master types typedef enum { Register = 0, Coil = 1 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception occured uint8_t Co...
#define _MASTERTYPES #include <inttypes.h> //Declarations for master types typedef enum { Register = 0, Coil = 1, DiscreteInput = 2 } MODBUSDataType; //MODBUS data types enum (coil, register, input, etc.) typedef struct { uint8_t Address; //Device address uint8_t Function; //Function called, in which exception...
Add 'DiscreteImput' Modbus data type
Add 'DiscreteImput' Modbus data type
C
mit
Jacajack/modlib
7b40aa94c5dbe1f583687cf3b03604893b1d3ff1
src/tagger.h
src/tagger.h
#ifndef __TAGGER_H__ #define __TAGGER_H__ #include <v8.h> #include <node.h> #include <node_events.h> #include <mecab.h> #include <stdio.h> using namespace v8; namespace MeCabBinding { class Tagger : node::ObjectWrap { public: static void Initialize(const Handle<Object> target); bool initialized(); const ch...
#ifndef __TAGGER_H__ #define __TAGGER_H__ #include <v8.h> #include <node.h> #include <mecab.h> #include <stdio.h> using namespace v8; namespace MeCabBinding { class Tagger : node::ObjectWrap { public: static void Initialize(const Handle<Object> target); bool initialized(); const char* Parse(const char* inp...
Remove dependency to node_events.h. Because it removed from Node since v0.5.2
Remove dependency to node_events.h. Because it removed from Node since v0.5.2
C
mit
hakobera/node-mecab-binding,hakobera/node-mecab-binding,hakobera/node-mecab-binding
97849a174221f7adc9906e97c0dddf4ee4296615
ios/RNSoundPlayer.h
ios/RNSoundPlayer.h
// // RNSoundPlayer // // Created by Johnson Su on 2018-07-10. // #import <React/RCTBridgeModule.h> #import <AVFoundation/AVFoundation.h> #import <React/RCTEventEmitter.h> @interface RNSoundPlayer : RCTEventEmitter <RCTBridgeModule, AVAudioPlayerDelegate> @property (nonatomic, strong) AVAudioPlayer *player; @proper...
// // RNSoundPlayer // // Created by Johnson Su on 2018-07-10. // #import <React/RCTBridgeModule.h> #import <AVFoundation/AVFoundation.h> #import <React/RCTEventEmitter.h> @interface RNSoundPlayer : RCTEventEmitter <RCTBridgeModule, AVAudioPlayerDelegate> @property (nonatomic, strong) AVAudioPlayer *player; @proper...
Remove strong declaration from primitive type
Remove strong declaration from primitive type
C
mit
johnsonsu/react-native-sound-player,johnsonsu/react-native-sound-player,johnsonsu/react-native-sound-player
a7a006d248135451d1187aa3fe14162159e173a5
include/quid.h
include/quid.h
#ifndef QUID_H_INCLUDED #define QUID_H_INCLUDED #define UIDS_PER_TICK 1024 /* Generate identifiers per tick interval */ #define EPOCH_DIFF 11644473600LL /* Conversion needed for EPOCH to UTC */ #define RND_SEED_CYCLE 4096 /* Generate new random seed after interval */ /* * Identifier structure */ struct quid ...
#ifndef QUID_H_INCLUDED #define QUID_H_INCLUDED #define UIDS_PER_TICK 1024 /* Generate identifiers per tick interval */ #define EPOCH_DIFF 11644473600LL /* Conversion needed for EPOCH to UTC */ #define RND_SEED_CYCLE 4096 /* Generate new random seed after interval */ /* * Identifier structure */ struct quid ...
Add comment to public QUID functions
Add comment to public QUID functions
C
bsd-3-clause
yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica,yorickdewid/Quantica
af86cde8375d92cc310f16fd4bb0c2a87d6c4eb7
includes/LinearAllocator.h
includes/LinearAllocator.h
#include "Allocator.h" #ifndef LINEARALLOCATOR_H #define LINEARALLOCATOR_H class LinearAllocator : public Allocator { private: /* Offset from the start of the memory block */ long m_offset; public: /* Allocation of real memory */ LinearAllocator(const long totalSize); /* Frees all memory */ virtual ~LinearAllo...
#include "Allocator.h" #ifndef LINEARALLOCATOR_H #define LINEARALLOCATOR_H class LinearAllocator : public Allocator { protected: /* Offset from the start of the memory block */ long m_offset; public: /* Allocation of real memory */ LinearAllocator(const long totalSize); /* Frees all memory */ virtual ~LinearAl...
Make offset a protected var.
Make offset a protected var.
C
mit
mtrebi/memory-allocators
f673eab257109c23f290e22d472a8c156c2ef340
math/vecops/inc/LinkDef.h
math/vecops/inc/LinkDef.h
/************************************************************************* * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * Author: Danilo Pi...
/************************************************************************* * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * Author: Danilo Pi...
Update year in a copyright notice
[VecOps][NFC] Update year in a copyright notice
C
lgpl-2.1
olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root
ca0d17277fd101ce4878f92b398b6ab71fb2c287
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 */ #ifndef __ASSEMBLY__ extern void mcount(void); #define MCOUNT_ADDR ((long)(mcount)) #ifdef CONFIG_DYNAMIC_FTRACE #define CALLER_ADDR ((long)(ftrace_caller)) #define STUB_ADDR ((l...
#ifndef __ASM_SH_FTRACE_H #define __ASM_SH_FTRACE_H #ifdef CONFIG_FUNCTION_TRACER #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ #ifndef __ASSEMBLY__ extern void mcount(void); #define MCOUNT_ADDR ((long)(mcount)) #ifdef CONFIG_DYNAMIC_FTRACE #define CALL_ADDR ((long)(ftrace_call)) #define STUB_ADDR ((long)...
Fix the value of MCOUNT_INSN_OFFSET
sh: Fix the value of MCOUNT_INSN_OFFSET It seems that MCOUNT_INSN_OFFSET was calculating the distance between the wrong functions. The value that should have actually been computed is the distance between ftrace_call and ftrace_stub. I discovered this when I added some code to ftrace_caller. Signed-off-by: Matt Flemi...
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k...
d9b05e6ae11c5f17590d493ef7bff52239bed3bb
test2/type_propagation/expr_if_noreturn.c
test2/type_propagation/expr_if_noreturn.c
// RUN: %ocheck 0 %s _Noreturn void exit(int); void g(int i) { } int f(int p) { (p == 5 ? exit : g)(2); // this shouldn't be thought of as unreachable return 7; } main() { f(4); return 0; }
// RUN: %ucc -fsyntax-only %s _Noreturn void exit(int); __attribute((noreturn)) void exit2(int); void g(int i); _Static_assert( !__builtin_has_attribute(g, noreturn), ""); _Static_assert( __builtin_has_attribute(exit, noreturn), ""); _Static_assert( __builtin_has_attribute(exit2, noreturn), ""); _Stati...
Change noreturn attribute tests into static asserts
Change noreturn attribute tests into static asserts
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
46b69e3de1b7817f4d8ed46fe1975f4bf630f0ec
plat/arm/common/arm_err.c
plat/arm/common/arm_err.c
/* * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch_helpers.h> #include <board_arm_def.h> #include <console.h> #include <debug.h> #include <errno.h> #include <norflash.h> #include <platform.h> #include <stdint.h> /* * ARM co...
/* * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <arch_helpers.h> #include <console.h> #include <debug.h> #include <errno.h> #include <norflash.h> #include <platform.h> #include <platform_def.h> #include <stdint.h> /* * ARM com...
Include board_arm_def.h through the platform's header
Include board_arm_def.h through the platform's header The board_arm_def.h header file needs to be included via the platform definition header. Not doing so, results in a redefinition error of PLAT_ARM_MAX_BL31_SIZE macro, if defined in the platform definition file. Change-Id: I1d178f6e8a6a41461e7fbcab9f6813a2faa2d82b...
C
bsd-3-clause
achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware
aae7b4f35980df99477fb0ad43995610bc9a0b60
Clue/Classes/Protocols/CLUViewRecordableProperties.h
Clue/Classes/Protocols/CLUViewRecordableProperties.h
// // CLUViewRecordableProperties.h // Clue // // Created by Ahmed Sulaiman on 5/27/16. // Copyright © 2016 Ahmed Sulaiman. All rights reserved. // #import <Foundation/Foundation.h> @protocol CLUViewRecordableProperties <NSObject> @required - (NSMutableDictionary *)clue_viewPropertiesDictionary; @end
Add protocol for view to return readable properties dictionary (CLURecordableProperties) for View Structure recordable module
Add protocol for view to return readable properties dictionary (CLURecordableProperties) for View Structure recordable module
C
mit
Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue,Geek-1001/Clue
e4be4b7b996cc7fb279d74b5001ab0817b22b6c4
audio/null_audio_poller.h
audio/null_audio_poller.h
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Revert "Remove const from ThreadChecker in NullAudioPoller."
Revert "Remove const from ThreadChecker in NullAudioPoller." This reverts commit 54e41dd08a06f978a6d123f19f5bbe39370f04ea. Reason for revert: We are reverting also https://webrtc-review.googlesource.com/c/src/+/16180, so this CL will be included in the re-land of https://webrtc-review.googlesource.com/c/src/+/16180. ...
C
bsd-3-clause
ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc
3759e834f356d5de1f047d85d18ab401d653a7d5
source/Loader.h
source/Loader.h
#include <string> #include <fstream> #ifndef LOADER #define LOADER namespace lyrics { using std::string; using std::istream; class Loader { public: bool Load( const string name, char *&data, unsigned int &size ) { using std::ifstream; using std::ios; using std::ios_base; ifstream input( name, i...
#include <string> #include <fstream> #ifndef LOADER #define LOADER namespace lyrics { using std::string; using std::istream; class Loader { public: bool Load( const string name, char *&data, unsigned int &size ) { using std::ifstream; using std::ios; using std::ios_base; ifstream input( name, i...
Return type of tellg() is implementation defined
Return type of tellg() is implementation defined
C
artistic-2.0
fullnessfruit/Lyrics
4430925e23e7f2f38b89047512461eb08a520b2c
ATK/Dynamic/GainExpanderFilter.h
ATK/Dynamic/GainExpanderFilter.h
/** * \file GainExpanderFilter.h */ #ifndef ATK_DYNAMIC_GAINEXPANDERFILTER_H #define ATK_DYNAMIC_GAINEXPANDERFILTER_H #include <vector> #include <ATK/Dynamic/GainFilter.h> #include "config.h" namespace ATK { /** * Gain "expander". Computes a new amplitude/volume gain based on threshold, slope and the power o...
/** * \file GainExpanderFilter.h */ #ifndef ATK_DYNAMIC_GAINEXPANDERFILTER_H #define ATK_DYNAMIC_GAINEXPANDERFILTER_H #include <vector> #include <ATK/Dynamic/GainFilter.h> #include "config.h" namespace ATK { /** * Gain "expander". Computes a new amplitude/volume gain based on threshold, slope and the power o...
Fix default LUT size and precision for expander
Fix default LUT size and precision for expander
C
bsd-3-clause
mbrucher/AudioTK,mbrucher/AudioTK,mbrucher/AudioTK,mbrucher/AudioTK
8732619871bdd054e80e53b3adaa563bf4cb26d9
thrift/lib/cpp2/security/FizzPeeker.h
thrift/lib/cpp2/security/FizzPeeker.h
/* * Copyright 2014-present Facebook, Inc. * * 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 fizz peeker to thrift
Add fizz peeker to thrift Summary: Support fizz in `Cpp2Worker`; this is one step in the process. Reviewed By: yfeldblum Differential Revision: D10246496 fbshipit-source-id: 2f655ff49641a91338d2e0e2ab362886754f2ec2
C
apache-2.0
facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift
daaf5d744b26d5ead5c1dce175efbc0603f70655
csrc/main.c
csrc/main.c
/** * Main Program to shutdown the raspberry pi. This process needs to be run as root to allow this. * All this program does is to run the shutdown command. If the process has the setuid bit enabled and belongs to root this should work. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdl...
Add c program for shutting down the board.
Add c program for shutting down the board. The program disables the output and then shuts down the system
C
mit
bigdisp/scoreboard-php-api,bigdisp/scoreboard-php-api,bigdisp/scoreboard-php-api,bigdisp/scoreboard-php-api
ed49a4fc89281608f41bebd3d09b8e0e1f2ea4c8
Classes/Network/PonyDebugger/FLEXNetworkObserver.h
Classes/Network/PonyDebugger/FLEXNetworkObserver.h
// // FLEXNetworkObserver.h // Derived from: // // PDAFNetworkDomainController.h // PonyDebugger // // Created by Mike Lewis on 2/27/12. // // Licensed to Square, Inc. under one or more contributor license agreements. // See the LICENSE file distributed with this work for the terms under // which Square, Inc. l...
// // FLEXNetworkObserver.h // Derived from: // // PDAFNetworkDomainController.h // PonyDebugger // // Created by Mike Lewis on 2/27/12. // // Licensed to Square, Inc. under one or more contributor license agreements. // See the LICENSE file distributed with this work for the terms under // which Square, Inc. l...
Use FOUNDATION_EXTERN for global variable
Use FOUNDATION_EXTERN for global variable Global variables that can be accessed from both C (or Objective-C) and C++ (or Objective-C++) source files should be marked `extern "C"` when in C++ mode (which is what `FOUNDATION_EXTERN` does), to ensure consistent access across languages.
C
bsd-3-clause
Flipboard/FLEX,NSExceptional/FLEX,Xiaobin0860/FLEX,Flipboard/FLEX,NSExceptional/FLEX
01b2b933f6ec5dcfa72db6c3d338bbdeaf518f92
test/include/scheduler_mock.h
test/include/scheduler_mock.h
/** * @file testUtils.h * @author Konrad Zemek * @copyright (C) 2014 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in 'LICENSE.txt' */ #ifndef VEILHELPERS_SCHEDULER_MOCK_H #define VEILHELPERS_SCHEDULER_MOCK_H #include "scheduler.h" #include <gmock/gmock.h> class MockSched...
/** * @file testUtils.h * @author Konrad Zemek * @copyright (C) 2014 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in 'LICENSE.txt' */ #ifndef ONEHELPERS_SCHEDULER_MOCK_H #define ONEHELPERS_SCHEDULER_MOCK_H #include "scheduler.h" #include <gmock/gmock.h> class MockSchedul...
Rename namespaces in scheduler mock.
Rename namespaces in scheduler mock. Former-commit-id: 9f4df2e43ea192309775d59d00e2a0e2179b8664
C
mit
onedata/oneclient,onedata/oneclient,onedata/helpers,onedata/helpers,onedata/oneclient,onedata/oneclient
da8596b60b1c90a870c9610c2cef7f06a03b6cdc
SDKs/darwin/usr/include/string.h
SDKs/darwin/usr/include/string.h
/* ===-- string.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
/* ===-- string.h - stub SDK header for compiler-rt -------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===---------------------------------------...
Declare 'strerror' so that we can use it with errno.
Declare 'strerror' so that we can use it with errno. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@185105 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
4145de6df7bd46ab56c4be5edb302c0f52a26d63
broadcaster.c
broadcaster.c
#include <arpa/inet.h> #include <errno.h> #include <sys/socket.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> #include <unistd.h> #define BROADCAST_ADDRESS "255.255.255.255" void print_error(const char* message) { size_t message_length = strlen(message); ...
Add C version of broadcast client
Add C version of broadcast client
C
unlicense
mmurdoch/disco,mmurdoch/disco
71ba3bbdf668b4f6bff2c189395b913b79870002
test/oldstyle.c
test/oldstyle.c
// Copyright 2012 Rui Ueyama <rui314@gmail.com> // This program is free software licensed under the MIT license. #include "test.h" #ifdef __8cc__ #pragma disable_warning #endif void testmain(void) { print("K&R"); expect(3, no_declaration()); } int no_declaration() { return 3; }
Add tests for K&R-style functions.
Add tests for K&R-style functions.
C
mit
andrewchambers/8cc,rui314/8cc,andrewchambers/8cc,cpjreynolds/8cc,gergo-/8cc,abc00/8cc,rui314/8cc,vastin/8cc,8l/8cc,jtramm/8cc,cpjreynolds/8cc,8l/8cc,cpjreynolds/8cc,abc00/8cc,rui314/8cc,nobody1986/8cc,8l/8cc,andrewchambers/8cc,jtramm/8cc,jtramm/8cc,cpjreynolds/8cc,andrewchambers/8cc,gergo-/8cc,abc00/8cc,vastin/8cc,abc0...
bf647d807ab6770a831e0ef4fc09c870b756dd4a
src/argparse.c
src/argparse.c
#include "argparse.h" args *args_new() { args *args = NULL; args = malloc(sizeof(args)); if (!args) return NULL; args->opts = NULL; args->operandsc = 0; args->operands = NULL; return args; } void args_free(args *args) { if (args->opts) option_free(args->opts); a...
#include "argparse.h" args *args_new() { args *args = NULL; args = malloc(sizeof(args)); if (!args) return NULL; args->opts = NULL; args->operandsc = 0; args->operands = NULL; return args; } void args_free(args *args) { if (args->opts) option_free(args->opts); a...
Use strcmp instead of checking for pointer
Use strcmp instead of checking for pointer
C
mit
ntnn/libargparse,ntnn/libargparse
6274b10a9783f5c7e36bd43f25f5ceeb5b691a81
src/nanotime.h
src/nanotime.h
#ifndef NANOTIME_H #define NANOTIME_H #include <time.h> #ifdef __MACH__ #define NANO extern #else #define NANO #endif typedef enum { NANO_FAILURE = -1, NANO_SUCCESS = 0 } nano_return_t; #define NANO_EXPECTED(X) X == NANO_SUCCESS #define NANO_UNEXPECTED(X) X == NANO_FAILURE NANO nano_return_t nano_second(unsigned l...
#ifndef NANOTIME_H #define NANOTIME_H #include <time.h> #ifdef __MACH__ #define NANO extern #else #define NANO #endif typedef enum { NANO_FAILURE = -1, NANO_SUCCESS = 0 } nano_return_t; #define NANO_EXPECTED(X) (X) == NANO_SUCCESS #define NANO_UNEXPECTED(X) (X) != NANO_SUCCESS NANO nano_return_t nano_second(unsign...
Allow for further room in the return enum
Allow for further room in the return enum
C
mit
lstrojny/nanotime,lstrojny/nanotime
9a320dc49927cbcc910232dbeabb8999d3fb2896
core/editline/src/rlcurses.h
core/editline/src/rlcurses.h
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/editline:$Id$ // Author: Axel Naumann, 2009 /************************************************************************* * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix for solaris: declare tigetnum
Fix for solaris: declare tigetnum git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@30238 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
tc3t/qoot,zzxuanyuan/root-compressor-dummy,simonpf/root,ffurano/root5,veprbl/root,zzxuanyuan/root-compressor-dummy,Duraznos/root,CristinaCristescu/root,thomaskeck/root,olifre/root,perovic/root,evgeny-boger/root,perovic/root,CristinaCristescu/root,bbockelm/root,thomaskeck/root,beniz/root,abhinavmoudgil95/root,mattkretz/...
6c72b3e07b950bfc1a7d129cf80ef2ae06ce9fa2
test/test_all.c
test/test_all.c
#include <CuTest.h> #include <stdio.h> #include <util.h> CuSuite* StrUtilGetSuite(); CuSuite* make_regex_suite(); CuSuite* make_csv_suite(); void RunAllTests(void) { CuString *output = CuStringNew(); CuSuite* suite = CuSuiteNew(); CuSuiteAddSuite(suite, StrUtilGetSuite()); CuSuiteAddSuite(suite, make...
#include <CuTest.h> #include <stdio.h> #include <util.h> CuSuite* StrUtilGetSuite(); CuSuite* make_regex_suite(); CuSuite* make_csv_suite(); void RunAllTests(void) { CuString *output = CuStringNew(); CuSuite* suite = CuSuiteNew(); #if 1 CuSuiteAddSuite(suite, StrUtilGetSuite()); CuSuiteAddSuite(suite...
Add possibility to disable tests.
Add possibility to disable tests.
C
apache-2.0
Moddus/mpi_search,Moddus/mpi_search,Moddus/mpi_search,Moddus/mpi_search
0f2284c7545819484849b2afb39fa34dd2730545
tests/integration_tests.c
tests/integration_tests.c
#include "unity.h" #include <math.h> #include <stdlib.h> #include "quac.h" #include "operators.h" #include "solver.h" #include "dm_utilities.h" #include "quantum_gates.h" #include "petsc.h" #include "tests.h" void test_timedep(void) { double *populations; int num_pop; /* Initialize QuaC */ timedep_test(&popul...
#include "unity.h" #include <math.h> #include <stdlib.h> #include "quac.h" #include "operators.h" #include "solver.h" #include "dm_utilities.h" #include "quantum_gates.h" #include "petsc.h" #include "tests.h" void test_timedep(void) { double *populations; int num_pop; /* Initialize QuaC */ timedep_test(&popul...
Remove time_dep test for now - it is too dependent on exact conditions.
Remove time_dep test for now - it is too dependent on exact conditions.
C
mit
0tt3r/QuaC,0tt3r/QuaC,0tt3r/QuaC
e95e9a6f76556afe4f266b0b527e8e4a30459a9c
tests/regression/02-base/66-no-eval-on-write-multi.c
tests/regression/02-base/66-no-eval-on-write-multi.c
//PARAM: --enable ana.int.interval --enable ana.int.enums --exp.privatization "write" #include<pthread.h> // Test case that shows how avoiding reading integral globals can reduce the number of solver evaluations. // Avoiding to evaluate integral globals when setting them reduced the number of necessary evaluations fr...
//PARAM: --enable ana.int.interval --enable ana.int.enums --exp.privatization "write" #include<pthread.h> // Test case that shows how avoiding reading integral globals can reduce the number of solver evaluations. // Avoiding to evaluate integral globals when setting them reduced the number of necessary evaluations fr...
Fix test case to not fail due to imprecison of analysis
Fix test case to not fail due to imprecison of analysis
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
3f61a44c965c1acf6623b9e8502f077c5c997404
resource/c_common/windows/include/memmem.h
resource/c_common/windows/include/memmem.h
/* ***************************************************************** * * Copyright 2017 Microsoft * * * 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/LIC...
/* ***************************************************************** * * Copyright 2017 Microsoft * * * 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/LIC...
Fix a build break on Windows X86.
Fix a build break on Windows X86. The newly added memmem function uses size_t in the function definition. However size_t is not defined at the time memmem.h is included. Adding crtdefs.h into memmem.h to fix. Change-Id: I7a474e7befbf3bdc5dd8aa0bd4ca45d6bfa28d71 Signed-off-by: Mike Fenelon <765c1ea1ad8b7b919b9c046cb20...
C
apache-2.0
iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,rzr/iotivity,rzr/iotivity,rzr/iotivity,rzr/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity
7686f1b38b13a660ac14b799c62f453fa012b4d7
avahi-gobject/ga-error.h
avahi-gobject/ga-error.h
/* * ga-error.h - Header for Avahi error types * Copyright (C) 2005 Collabora Ltd. * Copyright (C) 2005 Nokia Corporation * * 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 ...
/* * ga-error.h - Header for Avahi error types * Copyright (C) 2005 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at you...
Remove C Nokia notice that actually remained from the copyright boilerplate
Remove C Nokia notice that actually remained from the copyright boilerplate git-svn-id: ff687e355030673c307e7da231f59639d58f56d5@1671 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
C
lgpl-2.1
lathiat/avahi,heftig/avahi,sunilghai/avahi-clone,Kisensum/xmDNS-avahi,gloryleague/avahi,heftig/avahi-1,Kisensum/xmDNS-avahi,heftig/avahi-1,everbase/catta,heftig/avahi,heftig/avahi,heftig/avahi,everbase/catta,gloryleague/avahi,Distrotech/avahi,lathiat/avahi,heftig/avahi-1,lathiat/avahi,lathiat/avahi,Distrotech/avahi,Dis...
fe70dac3a7a7e34b66fcfc5ef0c6844d37a594ed
include/tasks/clock_server.h
include/tasks/clock_server.h
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req;...
#ifndef __CLOCK_SERVER_H__ #define __CLOCK_SERVER_H__ #include <std.h> #include <scheduler.h> extern int clock_server_tid; typedef enum { CLOCK_NOTIFY = 1, CLOCK_DELAY = 2, CLOCK_TIME = 3, CLOCK_DELAY_UNTIL = 4 } clock_req_type; typedef struct { clock_req_type type; uint ticks; } clock_req;...
Fix warning given by Clang
Fix warning given by Clang
C
mit
ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme,ferrous26/cs452-flaming-meme
3a321900d4205ba7819fdc421a1efa3c8724d6b0
Opcodes/ftest.c
Opcodes/ftest.c
#include "csdl.h" #include <math.h> void tanhtable(FUNC *ftp, FGDATA *ff) { MYFLT *fp = ftp->ftable; MYFLT range = ff->e.p[5]; double step = (double)range/(ff->e.p[3]); int i; double x; for (i=0, x=FL(0.0); i<ff->e.p[3]; i++, x+=step) *fp++ = (MYFLT)tanh(x); } static void gentune(FUNC *f...
#include "csdl.h" #include <math.h> void tanhtable(FUNC *ftp, FGDATA *ff) { MYFLT *fp = ftp->ftable; MYFLT range = ff->e.p[5]; double step = (double)range/(ff->e.p[3]); int i; double x; for (i=0, x=FL(0.0); i<ff->e.p[3]; i++, x+=step) *fp++ = (MYFLT)tanh(x); } static NGFENS localfgens[]...
Remove gen from loadable code
Remove gen from loadable code
C
lgpl-2.1
audiokit/csound,nikhilsinghmus/csound,mcanthony/csound,audiokit/csound,nikhilsinghmus/csound,audiokit/csound,max-ilse/csound,audiokit/csound,audiokit/csound,audiokit/csound,audiokit/csound,nikhilsinghmus/csound,mcanthony/csound,nikhilsinghmus/csound,Angeldude/csound,max-ilse/csound,nikhilsinghmus/csound,Angeldude/csoun...
7b85805e58926dda017903ac9f6dff657279436d
bugs/gcc-vs-clang-struct-decl.c
bugs/gcc-vs-clang-struct-decl.c
struct A { int i; }; int main(void) { struct B { struct A; struct A a; }; struct B b; b.a.i = 3; return b.a.i; }
Add struct declaration bug - GCC mismatch with Clang
Add struct declaration bug - GCC mismatch with Clang
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
de8e4435d61cd4b5e23e80f53fc33bc00dcef1d4
test/Headers/tgmath.c
test/Headers/tgmath.c
// RUN: %clang -fsyntax-only %s #ifdef __STDC_HOSTED__ #include <tgmath.h> float f; double d; long double l; float complex fc; double complex dc; long double complex lc; // creal _Static_assert(sizeof(creal(f)) == sizeof(f), ""); _Static_assert(sizeof(creal(d)) == sizeof(d), ""); _Static_assert(sizeof(creal(l)) =...
Add testcase missed from r181527.
Add testcase missed from r181527. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@181531 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
c493ec3cd5cc9f0b662ebdbcf40a9d8ffddff2f3
Code/Network/Network.h
Code/Network/Network.h
// // Network.h // RestKit // // Created by Blake Watters on 9/30/10. // Copyright 2010 Two Toasters // // 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.or...
// // Network.h // RestKit // // Created by Blake Watters on 9/30/10. // Copyright 2010 Two Toasters // // 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.or...
Fix for missing rename on OAuth client
Fix for missing rename on OAuth client
C
apache-2.0
vilinskiy-playdayteam/RestKit,Gaantz/RestKit,sachin-khard/NucRestKit,DejaMi/RestKit,lmirosevic/RestKit,PonderProducts/RestKit,jrtaal/RestKit,thomaschristensen/RestKit,jonesgithub/RestKit,qingsong-xu/RestKit,DocuSignDev/RestKit,moritzh/RestKit,gauravstomar/RestKit,HarrisLee/RestKit,kevmeyer/RestKit,dx285/RestKit,mberube...
d33166e318318a9bb1e5e3855150d8d8ffe655b0
thrust/detail/casts.h
thrust/detail/casts.h
/* * Copyright 2008-2009 NVIDIA Corporation * * 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...
Add git r done version of detail::raw_pointer_cast
Add git r done version of detail::raw_pointer_cast --HG-- extra : convert_revision : svn%3A83215879-3e5a-4751-8c9d-778f44bb06a5/trunk%40150
C
apache-2.0
thvasilo/thrust,dachziegel/thrust,dachziegel/thrust,thrust/thrust,marksantos/thrust,jaredhoberock/thrust,zeryx/thrust,sarvex/thrust,xiongzhanblake/thrust,thrust/thrust,zeryx/thrust,arnabgho/thrust,sdalton1/thrust,sdalton1/thrust,arnabgho/thrust,marksantos/thrust,GrimDerp/thrust,andrewcorrigan/thrust-multi-permutation-i...
d14db182365578e79f5f60c5cf1052d5f9a0edef
lib/asan/output_tests/use-after-free.c
lib/asan/output_tests/use-after-free.c
#include <stdlib.h> int main() { char *x = (char*)malloc(10 * sizeof(char)); free(x); return x[5]; } // CHECK: heap-use-after-free // CHECKSLEEP: Sleeping for 1 second // CHECKSTRIP-NOT: #0 0x{{.*}} ({{[/].*}})
#include <stdlib.h> int main() { char *x = (char*)malloc(10 * sizeof(char)); free(x); return x[5]; } // CHECK: heap-use-after-free // CHECK: free // CHECK: main{{.*}}use-after-free.c:4 // CHECK: malloc // CHECK: main{{.*}}use-after-free.c:3 // CHECKSLEEP: Sleeping for 1 second // CHECKSTRIP-NOT: #0 0x{{.*}} ({{[...
Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries.
Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@161948 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
46c067da604293804aa900f784a0a419ed82b1e2
IA32ABI/xabicc.c
IA32ABI/xabicc.c
/* * xabicc.c - platform-agnostic root for ALien call-outs and callbacks. * * Support for Call-outs and Call-backs from the IA32ABI Plugin. * The plgin is misnamed. It should be the AlienPlugin, but its history * dictates otherwise. */ #if i386|i486|i586|i686 # include "ia32abicc.c" #elif powerpc|ppc # include ...
Add a processor-agnostic file to include the relevant processor-specific callout and callback support for the ALien plugin.
Add a processor-agnostic file to include the relevant processor-specific callout and callback support for the ALien plugin. git-svn-id: http://squeakvm.org/svn/squeak/trunk@3227 fa1542d4-bde8-0310-ad64-8ed1123d492a Former-commit-id: de732c745d80769e5a3541e07042f7ba8c112911
C
mit
peteruhnak/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,OpenSmalltal...
e98d0be00b0694bb4480cbc1e2aac77cd1b57cd5
source/common/hal/version.h
source/common/hal/version.h
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
Increment FW_BUILD. Initial release for kl26z_nrf51822_if with CDC support
Increment FW_BUILD. Initial release for kl26z_nrf51822_if with CDC support
C
apache-2.0
sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port,sg-/DAPLink,google/DAPLink-port
74f48a2f6d0f3589415963b1be8f75e5b6da7525
src/configuration.h
src/configuration.h
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 9 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
#ifndef QGC_CONFIGURATION_H #define QGC_CONFIGURATION_H #include <QString> /** @brief Polling interval in ms */ #define SERIAL_POLL_INTERVAL 5 /** @brief Heartbeat emission rate, in Hertz (times per second) */ #define MAVLINK_HEARTBEAT_DEFAULT_RATE 1 #define WITH_TEXT_TO_SPEECH 1 #define QGC_APPLICATION_NAME "QGrou...
Read UART faster to prevent buffer overflows
Read UART faster to prevent buffer overflows
C
agpl-3.0
josephlewis42/UDenverQGC2,greenoaktree/qgroundcontrol,catch-twenty-two/qgroundcontrol,remspoor/qgroundcontrol,RedoXyde/PX4_qGCS,fizzaly/qgroundcontrol,iidioter/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,cfelipesouza/qgroundcontrol,jy723/qgroundcontrol,CornerOfSkyline/qgroundcontrol,RedoXyde/PX4_qG...
55ca2704359dbd97169eeed03e258f9005d7336d
helloworld.c
helloworld.c
#include <stdio.h> int main() { /* hi this is a multi-line comment hi. */ // single-line comment printf ("Hello world!\n"); // this works too // some vars and control flow int numDaysInYear = 365; printf ("days per year: %d\n", numDaysInYear); if (numDaysInYear == 366) { printf ("Seems rea...
#include <stdio.h> int main() { /* hi this is a multi-line comment hi. */ // single-line comment printf ("Hello world!\n"); // this works too // some vars and control flow int numDaysInYear = 365; printf ("days per year: %d\n", numDaysInYear); if (numDaysInYear == 366) { printf ("Seems rea...
Add c pointer basic example
Add c pointer basic example
C
mit
oldhill/halloween,oldhill/halloween,oldhill/halloween,oldhill/halloween
a0d5875d501e07e7b55ea71f413951e8ec2318aa
plugin/xlib/gvplugin_xlib.c
plugin/xlib/gvplugin_xlib.c
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (...
Apply patch for C standards compliance: "All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined." (That's from ISO/IEC 9899:TC2 final committee draft, section 6.2.7.)
Apply patch for C standards compliance: "All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined." (That's from ISO/IEC 9899:TC2 final committee draft, section 6.2.7.) This doesn't trigger issues with most C implementations, but there is one im...
C
epl-1.0
MjAbuz/graphviz,jho1965us/graphviz,tkelman/graphviz,tkelman/graphviz,jho1965us/graphviz,tkelman/graphviz,BMJHayward/graphviz,ellson/graphviz,tkelman/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,ellson/graphviz,...
0519bdcd3d19063cd3640cabc9f25f6f11cbffb2
include/llvm/Intrinsics.h
include/llvm/Intrinsics.h
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // This file defines a set of enums which allow processing of intrinsic // functions. Values of these enum types are returned by // Function::getIntrinsicID. // //===---------------------------------------------------------------------...
//===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===// // // This file defines a set of enums which allow processing of intrinsic // functions. Values of these enum types are returned by // Function::getIntrinsicID. // //===---------------------------------------------------------------------...
Add comment for doxygen for namespace
Add comment for doxygen for namespace git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@6578 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPU...
329ff94d0a13fecb39abf68b7649dd3a397ee38d
src/engine/utils/include/halley/data_structures/maybe_ref.h
src/engine/utils/include/halley/data_structures/maybe_ref.h
#pragma once #include <gsl/gsl> namespace Halley { // Note: it's important that this class has the same layout and binary structure as a plain pointer template <typename T> class MaybeRef { public: MaybeRef() : pointer(nullptr) {} MaybeRef(T* pointer) : pointer(pointer) {} Mayb...
#pragma once #include <gsl/gsl> namespace Halley { // Note: it's important that this class has the same layout and binary structure as a plain pointer template <typename T> class MaybeRef { public: MaybeRef() : pointer(nullptr) {} MaybeRef(T* pointer) : pointer(pointer) {} Mayb...
Allow getting raw pointer from MaybeRef
Allow getting raw pointer from MaybeRef
C
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
ec43f8052c9d0783b0ac8ffd7ffe9054ea8b6f5f
test/FrontendC/2011-02-21-DATA-common.c
test/FrontendC/2011-02-21-DATA-common.c
// RUN: %llvmgcc -S %s -o /dev/null struct rtxc_snapshot { int a, b, c, d; }; __attribute__ ((section("__DATA, __common"))) static struct rtxc_snapshot rtxc_log_A[4];
Test case for r126127. Radar 9012638.
Test case for r126127. Radar 9012638. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@126131 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-D...
04c5a9c0838a9c44b55afb427169318ec4a44ec2
src/win32/mingw-compat.h
src/win32/mingw-compat.h
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_mingw_compat__ #define INCLUDE_mingw_compat__ #if defined(__MINGW32__) #undef stat #if...
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_mingw_compat__ #define INCLUDE_mingw_compat__ #if defined(__MINGW32__) #undef stat #if...
Add some missing definitions for mingw.org
Add some missing definitions for mingw.org these shouldn't be necessary if _WIN32_WINNT >= _WIN32_WINNT_VISTA
C
lgpl-2.1
whoisj/libgit2,chiayolin/libgit2,falqas/libgit2,swisspol/DEMO-libgit2,spraints/libgit2,rcorre/libgit2,Tousiph/Demo1,kenprice/libgit2,dleehr/libgit2,iankronquist/libgit2,swisspol/DEMO-libgit2,oaastest/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,yosefhackmon/libgit2,stewid/libgit2,leoyanggit/libgit2,leoyanggit/libgit...
b77f0a23e98d6e379ae66b494d0ccb15f434bac3
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
98009edde9aee61ccfe582febd990d2bd409b48d
Wangscape/Exp.h
Wangscape/Exp.h
#pragma once #include <noise/noise.h> #include <cmath> // This is similar to noise::module::Exp. // However, no rescaling is performed, // and no attempt is made to guard against invalid operations. // Make sure the range of the source module // is compatible with the base of the exponential! // This module names its ...
Make module^p and b^module modules
Make module^p and b^module modules
C
mit
Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape
f8d99a9dcc3c5a7bfd67dd8ad6da687a9302c504
api/binding/void_ptr.h
api/binding/void_ptr.h
/* * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #ifndef _KR_VOID_PTR_OBJECT_H_ #define _KR_VOID_PTR_OBJECT_H_ #include "../kroll.h" namespace kroll { /** * An objec...
Add missing VoidPtr implementation from last commit.
Add missing VoidPtr implementation from last commit.
C
apache-2.0
mital/kroll,mital/kroll,mital/kroll,mital/kroll,appcelerator/kroll,appcelerator/kroll,appcelerator/kroll
abd003aaf24b0f4e7d5d815e492282bca5ed70fb
Nimble/Nimble.h
Nimble/Nimble.h
#import <Foundation/Foundation.h> #import <Nimble/NMBExceptionCapture.h> #import <Nimble/DSL.h> FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
#import <Foundation/Foundation.h> #import "NMBExceptionCapture.h" #import "DSL.h" FOUNDATION_EXPORT double NimbleVersionNumber; FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
Convert module-based imports to relative
Convert module-based imports to relative
C
apache-2.0
dgdosen/Nimble,dgdosen/Nimble,Quick/Nimble,phatblat/Nimble,AnthonyMDev/Nimble,DanielAsher/Nimble,ashfurrow/Nimble,AnthonyMDev/Nimble,abbeycode/Nimble,phatblat/Nimble,feinstruktur/Nimble,ashfurrow/Nimble,phatblat/Nimble,ashfurrow/Nimble,jeffh/Nimble,twobitlabs/Nimble,abbeycode/Nimble,jeffh/Nimble,DanielAsher/Nimble,jeff...
8c55edb94221daa2b71ca122c959f9720128987d
src/world/Server/Packets/SmsgWeather.h
src/world/Server/Packets/SmsgWeather.h
/* Copyright (c) 2014-2018 AscEmu Team <http://www.ascemu.org> This file is released under the MIT license. See README-MIT for more information. */ #pragma once #include <cstdint> #include "ManagedPacket.h" namespace AscEmu { namespace Packets { class SmsgWeather : public ManagedPacket { #if VERSION_STRING !...
/* Copyright (c) 2014-2018 AscEmu Team <http://www.ascemu.org> This file is released under the MIT license. See README-MIT for more information. */ #pragma once #include <cstdint> #include "ManagedPacket.h" namespace AscEmu { namespace Packets { class SmsgWeather : public ManagedPacket { public: ...
Enable serialise packet for Cata
Enable serialise packet for Cata
C
agpl-3.0
AscEmu/AscEmu,master312/AscEmu,Appled/AscEmu,master312/AscEmu,master312/AscEmu,Appled/AscEmu,Appled/AscEmu,AscEmu/AscEmu,AscEmu/AscEmu,master312/AscEmu,master312/AscEmu,master312/AscEmu
72c4accefc3d2ac122d650f696d04b189abc43be
src/xml/ixmldeserializing.h
src/xml/ixmldeserializing.h
#ifndef QTXXML_IXMLDESERIALIZING_H #define QTXXML_IXMLDESERIALIZING_H #include "xmlglobal.h" #include <QtCore> QTX_BEGIN_NAMESPACE class IXmlDeserializing { public: virtual ~IXmlDeserializing() {}; virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer *deserializer, const QStringRef...
#ifndef QTXXML_IXMLDESERIALIZING_H #define QTXXML_IXMLDESERIALIZING_H #include "xmlglobal.h" #include <QtCore> QTX_BEGIN_NAMESPACE class IXmlDeserializing { public: virtual ~IXmlDeserializing() {}; virtual IXmlDeserializing *deserializeXmlStartElement(XmlDeserializer * deserializer, const QStringRe...
Add default implementations of IXmlDeserializing methods.
Add default implementations of IXmlDeserializing methods.
C
apache-2.0
jaredhanson/qtxxml,jaredhanson/qtxxml
70cc0d04e55e04eb9c0abe0f6f5e0f2877a5ca99
cgi/fcgi_hello.c
cgi/fcgi_hello.c
/** * Copyright 2006 Mike Tsao. All rights reserved. * * Hello World using FastCGI and ClearSilver. */ #include "ClearSilver.h" #include <string> #include <fcgi_stdio.h> #include <stdlib.h> #include <stdarg.h> #include <syslog.h> static bool quit = false; static int cs_printf(void *ctx, const char *s, va_list ar...
Add a very simple example which uses FastCGI, a stripped down version of one given by Mike Tsao.
Add a very simple example which uses FastCGI, a stripped down version of one given by Mike Tsao.
C
bsd-2-clause
hljyunxi/clearsilver,manuelluis/clearsilver,alisonjoe/clearsilver,WillYee/clearsilver,hljyunxi/clearsilver,hljyunxi/clearsilver,apfeltee/clearsilver,hobby/clearsilver,manuelluis/clearsilver,apfeltee/clearsilver,alisonjoe/clearsilver,hczhang/clearsilver,manuelluis/clearsilver,hongruiqi/clearsilver,manuelluis/clearsilver...
fcd8f70a51147c0664e7a5e87fea0dbfa6c05247
src/ui/UI.h
src/ui/UI.h
#pragma once //------------------------------------------------------------------------------ /** @class UI @brief imgui-based debugger UI */ #include "yakc/KC85Oryol.h" #include "ui/WindowBase.h" #include "ui/FileLoader.h" #include "Time/TimePoint.h" #include "Core/Containers/Array.h" #include "IMUI/IMUI.h" c...
#pragma once //------------------------------------------------------------------------------ /** @class UI @brief imgui-based debugger UI */ #include "yakc/KC85Oryol.h" #include "ui/WindowBase.h" #include "ui/FileLoader.h" #include "Time/TimePoint.h" #include "Core/Containers/Array.h" #include "IMUI/IMUI.h" c...
Switch off CRT-effect off by default (until fixed)
Switch off CRT-effect off by default (until fixed)
C
mit
floooh/yakc,floooh/yakc,floooh/yakc,floooh/yakc,floooh/yakc
23c59a06b001f447802f8a118203baca17ee2c5f
c/temperature.c
c/temperature.c
#include <stdio.h> // k&r farenheit to celcius table int main() { int fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; fahr = lower; while (fahr <= upper) { celsius = 5 * (fahr - 32) / 9; printf("%d\t%d\t\n", fahr, celsius); fahr = fahr + ...
#include <stdio.h> // k&r farenheit to celcius table int main() { float fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; // first print table header printf("%s %s\n", "Fahr", "Cels"); // then calculate values and print them to table fahr = lower; wh...
Use floats instead of ints, print table header
Use floats instead of ints, print table header
C
mit
oldhill/halloween,oldhill/halloween,oldhill/halloween,oldhill/halloween
2c3df4946ce8356a67acdeec9f084d2967f83cd8
native/src/main/native/traildb-java-static.h
native/src/main/native/traildb-java-static.h
typedef struct TrailDBMultiTrailFields { long timestamp; long num_items; long items; long db; long multi_cur; long cursor_idx; } TrailDBMultiTrailFields; typedef struct TrailDBTrailFields { long timestamp; long num_items; long items; long db; long cur; } TrailDBTrailFields;
Add static header file for fiels struct
Add static header file for fiels struct
C
mit
aholyoke/traildb-java,aholyoke/traildb-java
e7bfdc05fa5ff3e35d8480d75d9e9061498875a1
sdl2/libretro/libretro_params.h
sdl2/libretro/libretro_params.h
#ifndef LRPARAMS_ #define LRPARAMS_ #include "np2ver.h" #define LR_SCREENWIDTH 640 #define LR_SCREENHEIGHT 480 #define LR_SCREENASPECT 4.0 / 3.0 #define LR_SCREENFPS 56.4 #define LR_SOUNDRATE 44100.0 //#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame) #define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame...
#ifndef LRPARAMS_ #define LRPARAMS_ #include "np2ver.h" #define LR_SCREENWIDTH 640 #define LR_SCREENHEIGHT 480 #define LR_SCREENASPECT 4.0 / 3.0 #define LR_SCREENFPS 56.4 #define LR_SOUNDRATE 44100.0 //#define SNDSZ 735 //44100Hz/60fps=735 (sample/flame) #define SNDSZ 782 //44100Hz/56.4fps=781.9 (sample/flame...
Add 'kai' to core name
Add 'kai' to core name
C
mit
AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai
a293b49d5c09b0e54d3a75c9141d78d5ed990f02
You-DataStore/datastore.h
You-DataStore/datastore.h
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests {} class DataStore { pub...
#pragma once #ifndef YOU_DATASTORE_DATASTORE_H_ #define YOU_DATASTORE_DATASTORE_H_ #include <deque> #include <functional> #include "boost/variant.hpp" #include "task_typedefs.h" #include "internal/operation.h" #include "transaction.h" namespace You { namespace DataStore { namespace UnitTests { class DataStoreApiTest;...
Add unit test class declaration and friend class it in DataStore
Add unit test class declaration and friend class it in DataStore
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
8035865ed3eb0b6ef9842903887dc44d4d0e6310
zLib/Find.h
zLib/Find.h
/* * Copyright 2015 Samuel Ghineț * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2015 Samuel Ghineț * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Use a mock for class ZSearch
Use a mock for class ZSearch ZSearch now needs a ref to an interface, Zen::IFind&. The tests that check the functionality of ZSearch - ignoring of OS-specific issues - will need to provide a mock implementing IFind.
C
apache-2.0
Feoggou/zLib
65e4c1a76b1d37248de01d6b482a7781612c0ca5
stf/NBodylib/src/NBody/SwiftParticle.h
stf/NBodylib/src/NBody/SwiftParticle.h
/*! \file SwiftParticle.h * \brief header file for the SWIFT particle type. */ #ifndef SWIFT_PARTICLE_H #define SWIFT_PARTICLE_H #define SWIFT_STRUCT_ALIGNMENT 32 #define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT))) namespace Swift { /* The different types of particles a #gpart can li...
/*! \file SwiftParticle.h * \brief header file for the SWIFT particle type. */ #ifndef SWIFT_PARTICLE_H #define SWIFT_PARTICLE_H namespace Swift { /* Include some struct definitions from SWIFT. */ extern "C" { #include "align.h" #include "timeline.h" #include "part_type.h" #...
Include SWIFT struct definitions directly from SWIFT.
Include SWIFT struct definitions directly from SWIFT.
C
mit
pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF,pelahi/VELOCIraptor-STF
307fe534193aede6787f638e6c9c95f84cc30b15
Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h
Projects/MacOS/ProjectBuilder/XercesSamples/xerces_sample_prefix.h
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of sou...
Add prefix file for ProjectBuilder samples
Add prefix file for ProjectBuilder samples git-svn-id: 3ec853389310512053d525963cab269c063bb453@174526 13f79535-47bb-0310-9956-ffa450edef68
C
apache-2.0
AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces
69e291e4078480c133aa435394593e1ac37bc24c
include/features.h
include/features.h
#ifndef __FEATURES_H #define __FEATURES_H /* Major and minor version number of the uCLibc library package. Use these macros to test for features in specific releases. */ #define __UCLIBC__ 0 #define __UCLIBC_MAJOR__ 9 #define __UCLIBC_MINOR__ 1 #ifdef __STDC__ #define __P(x) x #define __const const /* Almo...
#ifndef __FEATURES_H #define __FEATURES_H /* Major and minor version number of the uCLibc library package. Use these macros to test for features in specific releases. */ #define __UCLIBC__ 0 #define __UCLIBC_MAJOR__ 9 #define __UCLIBC_MINOR__ 1 /* __restrict is known in EGCS 1.2 and above. */ #if !defined __G...
Remove __restrict when not supported -Erik
Remove __restrict when not supported -Erik
C
lgpl-2.1
gittup/uClibc,ffainelli/uClibc,wbx-github/uclibc-ng,ndmsystems/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ChickenRunjyd/klee-uclibc,kraj/uClibc,hjl-tools/uClibc,hjl-tools/uClibc,wbx-github/uclibc-ng,hwoarang/uClibc,ysat0/uClibc,ndmsystems/uClibc,ffainelli/uClibc,skristiansson/uClibc-or1k,mephi42/uClibc,kraj/ucl...
22bca278cabbaa9e873c5f40b16e094963e6b6c5
src/gf/linear_equation_system.h
src/gf/linear_equation_system.h
#pragma once #include "polynomial.h" template <typename Polytype> class linear_equation_system : public std::vector<Polytype> { std::vector<Polytype> rows; linear_equation_system reduced_echelon_form() const { std::vector<Polytype> nrows(*this); /* make sure rows are sorted with the left-most elements a...
Add linear equations system class template
Add linear equations system class template
C
bsd-3-clause
hannesweisbach/channelcoding
1efe7fa345f5ab9fb75ecf6f7109c2f1fd9ec4a0
src/tests/graphene-test-compat.h
src/tests/graphene-test-compat.h
#include <glib.h> #if !GLIB_CHECK_VERSION (2, 40, 0) # define g_assert_true(expr) g_assert ((expr)) # define g_assert_false(expr) g_assert (!(expr)) # define g_assert_null(expr) g_assert ((expr) == NULL) # define g_assert_nonnull(expr) g_assert ((expr) != NULL) #endif
#include <glib.h> #if !GLIB_CHECK_VERSION (2, 40, 0) # define g_assert_true(expr) g_assert ((expr)) # define g_assert_false(expr) g_assert (!(expr)) # define g_assert_null(expr) g_assert ((expr) == NULL) # define g_assert_nonnull(expr) g_assert ((expr) != NULL) #endif #define g...
Add a fuzzy comparison macro
tests: Add a fuzzy comparison macro We use something like this in the matrix test suite, but it's useful for other types.
C
mit
criptych/graphene,criptych/graphene,criptych/graphene,ebassi/graphene,ebassi/graphene,criptych/graphene
5582ce10e466a70c96b6c74288c07b54406c39c6
bindings/tcl/matrixInit.c
bindings/tcl/matrixInit.c
#include "tclMatrix.h" int Matrix_Init (Tcl_Interp*); int Matrix_Init( Tcl_Interp *interp ) { /* matrix -- matrix support command */ Tcl_CreateCommand(interp, "matrix", Tcl_MatrixCmd, (ClientData) NULL, (void (*)(ClientData)) NULL); Tcl_PkgProvide(interp, "Matrix", "0.1"); return TCL_OK; }
#include "tclMatrix.h" int Matrix_Init (Tcl_Interp*); int Matrix_Init( Tcl_Interp *interp ) { /* matrix -- matrix support command */ Tcl_CreateCommand(interp, "matrix", Tcl_MatrixCmd, (ClientData) NULL, (void (*)(ClientData)) NULL); Tcl_PkgProvide(interp, "Matrix", "0.1"); return TCL_OK; }
Add newline to make compiler happy.
Add newline to make compiler happy. svn path=/trunk/; revision=2015
C
lgpl-2.1
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
e1717bd771f51e3a2c370ffa64d50de6b8ee6ca6
common/base_clusterinfo.h
common/base_clusterinfo.h
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2021 gatecat <gatecat@ds0.me> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all c...
Add BaseClusterInfo for base implementation
Add BaseClusterInfo for base implementation Signed-off-by: gatecat <c690b4516f836771c8bd4e23cd8f1cebc83093a6@ds0.me>
C
isc
SymbiFlow/nextpnr,SymbiFlow/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr
570e125e5db1ec2bdf12c32b77f1169d2c6831e8
tests/system_tests/test_cases/test_reduction_2d.c
tests/system_tests/test_cases/test_reduction_2d.c
/* * TEST: Grid reduction OP=PS_SUM * DIM: 2 * PRIORITY: 1 */ #include <stdio.h> #include <stdlib.h> #include "physis/physis.h" #define N 4 #define REAL double #define PSGrid2D PSGrid2DDouble #define PSGrid2DNew PSGrid2DDoubleNew REAL reduce(REAL *g) { REAL v = 0.0; int i; for (i = 0; i < N*N; ++i) { v...
Add a test case for reduction of 2D grids.
Add a test case for reduction of 2D grids.
C
bsd-3-clause
naoyam/physis,naoyam/physis,naoyam/physis,naoyam/physis
f2b83f08d3ed35fd4a119d40b554ad651e7c6f3d
src/server/shttpd/compat_unix.h
src/server/shttpd/compat_unix.h
/* * Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com> * All rights reserved * * "THE BEER-WARE LICENSE" (Revision 42): * Sergey Lyubka wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can ...
/* * Copyright (c) 2004-2007 Sergey Lyubka <valenok@gmail.com> * All rights reserved * * "THE BEER-WARE LICENSE" (Revision 42): * Sergey Lyubka wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can ...
Allow to override SSL_LIB during build
Allow to override SSL_LIB during build SSL_LIB defaults to libssl.so which is only provided by a -devel package and hence not loadable dynamically during runtime.
C
bsd-3-clause
photron/openwsman,vcrhonek/openwsman,vcrhonek/openwsman,photron/openwsman,kolbma/openwsman,Openwsman/openwsman,photron/openwsman,photron/openwsman,vcrhonek/openwsman,kkaempf/openwsman,kolbma/openwsman,kkaempf/openwsman,kkaempf/openwsman,Openwsman/openwsman,kolbma/openwsman,vcrhonek/openwsman,photron/openwsman,Openwsman...
194ca80fdbb4e15db7527aaeff6ba1e36fd27fb0
lib/System/Unix/Unix.h
lib/System/Unix/Unix.h
//===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
//===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
Make this work with the ICC compiler, contributed by Bjørn Wennberg
Make this work with the ICC compiler, contributed by Bjørn Wennberg git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18626 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/...
c3de9524268cfcd2d04fbf464d3b1dafc20f3e7c
lib/System/Unix/Unix.h
lib/System/Unix/Unix.h
//===- llvm/System/Unix/Unix.h - Common Unix Include File -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------------------...
//===- llvm/System/Unix/Unix.h - Common Unix Include File -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
Include some additional header files. Fix the banner length.
Include some additional header files. Fix the banner length. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16086 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Driv...
ad11589eed6c299b36bd335a5e72e029897b05e5
test/Driver/integrated-as.c
test/Driver/integrated-as.c
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as // CHECK: -mrelax-all // RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS // FIAS: cc1as // RUN: %clang -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -check-prefix NOFI...
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as // CHECK: -mrelax-all // RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS // FIAS: cc1as // RUN: %clang -target none -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -chec...
Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true
Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@338553 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
172803b3b0c2c1194d34f3c27b69604179b3fcb4
Dev/Cpp/Effekseer/Effekseer/SIMD/Bridge_SSE.h
Dev/Cpp/Effekseer/Effekseer/SIMD/Bridge_SSE.h
 #ifndef __EFFEKSEER_SIMD_BRIDGE_SSE_H__ #define __EFFEKSEER_SIMD_BRIDGE_SSE_H__ #include "Float4_SSE.h" #include "Int4_SSE.h" #include "Base.h" #if defined(EFK_SIMD_SSE2) namespace Effekseer { namespace SIMD { inline Int4 Float4::Convert4i() const { return _mm_cvtps_epi32(s); } inline Int4 Float4::Cast4i() con...
 #ifndef __EFFEKSEER_SIMD_BRIDGE_SSE_H__ #define __EFFEKSEER_SIMD_BRIDGE_SSE_H__ #include "Float4_SSE.h" #include "Int4_SSE.h" #include "Base.h" #if defined(EFK_SIMD_SSE2) namespace Effekseer { namespace SIMD { inline Int4 Float4::Convert4i() const { return _mm_cvttps_epi32(s); } inline Int4 Float4::Cast4i() co...
Fix a SIMD instruction mistake that regarding integer rounding.
Fix a SIMD instruction mistake that regarding integer rounding.
C
mit
effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer,effekseer/Effekseer