commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
3790101271d3fb24db76257b9ac491e7b6d4c4e4
CPDAcknowledgements/CPDStyle.h
CPDAcknowledgements/CPDStyle.h
@import Foundation; NS_ASSUME_NONNULL_BEGIN /// Allows you to customize the style for the the view /// controllers for your libraries. @interface CPDStyle : NSObject /// HTML provided to the view controller, it's nothing too fancy /// just a string which has a collection of string replacements on it. /// /// This i...
@import Foundation; NS_ASSUME_NONNULL_BEGIN /// Allows you to customize the style for the the view /// controllers for your libraries. @interface CPDStyle : NSObject /// HTML provided to the view controller, it's nothing too fancy /// just a string which has a collection of string replacements on it. /// /// This i...
Fix 'HTML start tag prematurely ended' warning
Fix 'HTML start tag prematurely ended' warning
C
mit
CocoaPods/CPDAcknowledgements
6bd246f7dc75101536a89c6b4ff776a05d8efb50
ST_HW_HC_SR04.h
ST_HW_HC_SR04.h
/* # # ST_HW_HC_SR04.h # # (C)2016-2017 Flávio monteiro # # 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 ...
/* # # ST_HW_HC_SR04.h # # (C)2016-2017 Flávio monteiro # # 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 ...
Fix include guard conflicting with the class name
Fix include guard conflicting with the class name
C
mit
Spaguetron/ST_HW_HC_SR04
6be828419968fa1f105f7362832b4eafb2157ab6
proctor/include/pcl/proctor/proposer.h
proctor/include/pcl/proctor/proposer.h
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; float votes; }; class Proposer { public: ...
#ifndef PROPOSER_H #define PROPOSER_H #include <boost/shared_ptr.hpp> #include <vector> #include <map> #include "proctor/detector.h" #include "proctor/database_entry.h" namespace pcl { namespace proctor { struct Candidate { std::string id; double votes; }; class Proposer { public:...
Change votes to use double.
Change votes to use double. git-svn-id: 1af002208e930b4d920e7c2b948d1e98a012c795@4320 a9d63959-f2ad-4865-b262-bf0e56cfafb6
C
bsd-3-clause
psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn
59ea31827fd5fde1f5a5899a186e6fa18c65d83e
Firmware/GPIO/main.c
Firmware/GPIO/main.c
#include <stm32f4xx.h> #include <stm32f4xx_gpio.h> void delay(uint32_t count) { while(count--); } void init_GPIO() { GPIO_InitTypeDef GPIO_InitStruct = { .GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_Speed = GPIO_Speed_50MHz, .GPIO_OType =GPIO_OType_PP,...
#include <stm32f4xx.h> #include <stm32f4xx_gpio.h> void delay(uint32_t count) { while(count--); } void init_GPIO() { GPIO_InitTypeDef GPIO_InitStruct = { .GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_Speed = GPIO_Speed_50MHz, .GPIO_OType =GPIO_OType_PP,...
Add the blink effect to the GPIO demo
Add the blink effect to the GPIO demo
C
mit
PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples,shengwen1997/stm32_pratice,PUCSIE-embedded-course/stm32f4-examples,PUCSIE-embedded-course/stm32f4-examples...
7b6feece93869c598a44f03470e2a1d7c5eac9b9
PHPHub/Constants/APIConstant.h
PHPHub/Constants/APIConstant.h
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
Change QR login guide url
Change QR login guide url
C
mit
Aufree/phphub-ios
92165a2024a4285f9df8a92fbfe19c91d77e74b4
Inc/project_config.h
Inc/project_config.h
#ifndef _PROJECT_CONFIG_H_ #define _PROJECT_CONFIG_H_ #ifdef USART_DEBUG // this happens by 'make USART_DEBUG=1' #undef THERMAL_DATA_UART #else #define USART_DEBUG #define THERMAL_DATA_UART #endif #define TMP007_OVERLAY #define SPLASHSCREEN_OVERLAY #define ENABLE_LEPTON_AGC // #define Y16 #ifndef Y16 // Values from L...
#ifndef _PROJECT_CONFIG_H_ #define _PROJECT_CONFIG_H_ #ifdef USART_DEBUG // this happens by 'make USART_DEBUG=1' #undef THERMAL_DATA_UART #else #define USART_DEBUG // #define THERMAL_DATA_UART #endif #define TMP007_OVERLAY #define SPLASHSCREEN_OVERLAY #define ENABLE_LEPTON_AGC // #define Y16 #ifndef Y16 // Values fro...
Disable THERMAL_DATA_UART by default. This is a big CPU sink, and is a pretty non-standard config.
Disable THERMAL_DATA_UART by default. This is a big CPU sink, and is a pretty non-standard config.
C
mit
groupgets/purethermal1-firmware,groupgets/purethermal1-firmware,groupgets/purethermal1-firmware,groupgets/purethermal1-firmware
e8938694357e4048322aae1819bea29c8ba59223
drivers/timer/sys_clock_init.c
drivers/timer/sys_clock_init.c
/* * Copyright (c) 2015 Wind River Systems, 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 ...
/* * Copyright (c) 2015 Wind River Systems, 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 ...
Revert "sys_clock: start the microkernel ticker in the MICROKERNEL init level"
Revert "sys_clock: start the microkernel ticker in the MICROKERNEL init level" This reverts commit 3c66686a43ffa78932aaa6b1e2338c2f3d347a13. That commit fixed announcing ticks before the microkernel was up, but prevented devices initializing before the MICROKERNEL level from having access to the hi-res part of the sy...
C
apache-2.0
runchip/zephyr-cc3220,holtmann/zephyr,kraj/zephyr,fractalclone/zephyr-riscv,sharronliu/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,bigdinotech/zephyr,pklazy/zephyr,erwango/zephyr,mirzak/zephyr-os,mbolivar/zephyr,runchip/zephyr-cc3200,aceofall/zephyr-iotos,galak...
978e851a0ea6e8c54d072f745bbd8d1cd0451e54
include/swift/Basic/Algorithm.h
include/swift/Basic/Algorithm.h
//===--- Algorithm.h - ------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- Algorithm.h - ------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Add constexpr version of maximum to algorithm
Add constexpr version of maximum to algorithm Add the constexpr version of max which is only available in std since c++14. Besides being a logical addition next to the already implemented constexpr version of min, there are actually other files, even in Swift/Basic itself, which re-implement this functionality, such ...
C
apache-2.0
jmgc/swift,lorentey/swift,aschwaighofer/swift,tinysun212/swift-windows,ken0nek/swift,xwu/swift,benlangmuir/swift,djwbrown/swift,nathawes/swift,natecook1000/swift,ahoppen/swift,huonw/swift,apple/swift,jckarter/swift,benlangmuir/swift,karwa/swift,russbishop/swift,apple/swift,devincoughlin/swift,jopamer/swift,felix91gr/sw...
dbab7e6e9385e42426ecfe79c4679b05cd4438d4
bgc/DIC_ATMOS.h
bgc/DIC_ATMOS.h
C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $ C $Name: $ COMMON /INTERACT_ATMOS_NEEDS/ & co2atmos, & total_atmos_carbon, total_ocean_carbon, & total_atmos_carbon_year, & total_ocean_carbon_year, ...
C $Header: /u/gcmpack/MITgcm/pkg/dic/DIC_ATMOS.h,v 1.4 2010/04/11 20:59:27 jmc Exp $ C $Name: $ COMMON /INTERACT_ATMOS_NEEDS/ & co2atmos, & total_atmos_carbon, total_ocean_carbon, & total_atmos_carbon_year, & total_ocean_carbon_year, ...
Update length of co2atmos variable
Update length of co2atmos variable
C
mit
seamanticscience/mitgcm_mods,seamanticscience/mitgcm_mods
246d5ce439738b24d9881ddcd03ea8e53f20609f
VPUQuickTimePlayback/VPUSupport.h
VPUQuickTimePlayback/VPUSupport.h
// // VPUSupport.h // QTMultiGPUTextureIssue // // Created by Tom Butterworth on 15/05/2012. // Copyright (c) 2012 Tom Butterworth. All rights reserved. // #ifndef QTMultiGPUTextureIssue_VPUSupport_h #define QTMultiGPUTextureIssue_VPUSupport_h #import <Foundation/Foundation.h> #import <QTKit/QTKit.h> #define kVP...
// // VPUSupport.h // QTMultiGPUTextureIssue // // Created by Tom Butterworth on 15/05/2012. // Copyright (c) 2012 Tom Butterworth. All rights reserved. // #ifndef QTMultiGPUTextureIssue_VPUSupport_h #define QTMultiGPUTextureIssue_VPUSupport_h #import <Foundation/Foundation.h> #import <QTKit/QTKit.h> #define kVP...
Update pixel format type for CoreVideo Scaled YCoCg DXT5 to match change in codec
Update pixel format type for CoreVideo Scaled YCoCg DXT5 to match change in codec
C
bsd-2-clause
Vidvox/hap-quicktime-playback-demo
f1360fc78e8b536000bb4abd5146d0394a7d2e3c
cpp11-migrate/LoopConvert/LoopConvert.h
cpp11-migrate/LoopConvert/LoopConvert.h
//===-- LoopConvert/LoopConvert.h - C++11 for-loop migration ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- LoopConvert/LoopConvert.h - C++11 for-loop migration ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix a -Wdocumentation warning (empty paragraph passed to '\brief' command)
Fix a -Wdocumentation warning (empty paragraph passed to '\brief' command) git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@172661 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
029422ddadc251b23cc2441bd42c46f8172a44b0
src/core/SkEdgeBuilder.h
src/core/SkEdgeBuilder.h
#ifndef SkEdgeBuilder_DEFINED #define SkEdgeBuilder_DEFINED #include "SkChunkAlloc.h" #include "SkRect.h" #include "SkTDArray.h" class SkEdge; class SkEdgeClipper; class SkPath; class SkEdgeBuilder { public: SkEdgeBuilder(); int build(const SkPath& path, const SkIRect* clip, int shiftUp); SkEdge** ...
#ifndef SkEdgeBuilder_DEFINED #define SkEdgeBuilder_DEFINED #include "SkChunkAlloc.h" #include "SkRect.h" #include "SkTDArray.h" struct SkEdge; class SkEdgeClipper; class SkPath; class SkEdgeBuilder { public: SkEdgeBuilder(); int build(const SkPath& path, const SkIRect* clip, int shiftUp); SkEdge**...
Fix warning (struct forward-declared as class).
Fix warning (struct forward-declared as class). Review URL: http://codereview.appspot.com/164061
C
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
3c7cc7cad858aaf4b656863f6ab405ef05a2d42e
src/qt/clicklabel.h
src/qt/clicklabel.h
#ifndef CLICKLABEL_H #define CLICKLABEL_H #include <QLabel> #include <QWidget> #include <Qt> class ClickLabel:public QLabel { Q_OBJECT public: explicit ClickLabel(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()); ~ClickLabel(); signals: void clicked(); protected: void mouseRelea...
#ifndef CLICKLABEL_H #define CLICKLABEL_H #include <QLabel> #include <QWidget> #include <Qt> class ClickLabel:public QLabel { Q_OBJECT public: explicit ClickLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); ~ClickLabel(); signals: void clicked(); protected: void mouseRelease...
Use nullptr to stay Qt4 compatible.
Use nullptr to stay Qt4 compatible.
C
mit
Git-Jiro/Gridcoin-Research,caraka/gridcoinresearch,theMarix/Gridcoin-Research,theMarix/Gridcoin-Research,TheCharlatan/Gridcoin-Research,TheCharlatan/Gridcoin-Research,TheCharlatan/Gridcoin-Research,caraka/gridcoinresearch,tomasbrod/Gridcoin-Research,theMarix/Gridcoin-Research,TheCharlatan/Gridcoin-Research,Git-Jiro/Gri...
139936b34a895520e9ee8b9a6d3f774754cdcc48
lib/libF77/d_lg10.c
lib/libF77/d_lg10.c
#include "f2c.h" #define log10e 0.43429448190325182765 #ifdef KR_headers double log(); double d_lg10(x) doublereal *x; #else #undef abs #include "math.h" double d_lg10(doublereal *x) #endif { return( log10e * log(*x) ); }
#include "f2c.h" #ifdef KR_headers double log10(); double d_lg10(x) doublereal *x; #else #undef abs #include "math.h" double d_lg10(doublereal *x) #endif { return( log10(*x) ); }
Use the C library version of log10() instead of the inaccurate formula log10(x) = log10e * log(x). This fixes some small (one or two ULP) inaccuracies.
Use the C library version of log10() instead of the inaccurate formula log10(x) = log10e * log(x). This fixes some small (one or two ULP) inaccuracies. Found by: ucbtest
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
cfdaffb8cf65ab0a934de2efb513e66989b4bad6
src/lib/elm_map_legacy.h
src/lib/elm_map_legacy.h
/** * Add a new map widget to the given parent Elementary (container) object. * * @param parent The parent object. * @return a new map widget handle or @c NULL, on errors. * * This function inserts a new map widget on the canvas. * * @ingroup Map */ EAPI Evas_Object *elm_map_add(Evas_Object *parent); ...
/** * Add a new map widget to the given parent Elementary (container) object. * * @param parent The parent object. * @return a new map widget handle or @c NULL, on errors. * * This function inserts a new map widget on the canvas. * * @ingroup Map */ EAPI Evas_Object *elm_map_add(Evas_Object *parent); ...
Add missing legacy API into legacy header
map: Add missing legacy API into legacy header Summary: @fix Reviewers: raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D1164
C
lgpl-2.1
FlorentRevest/Elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,rvandegrift/elementary
bc7ac5431ddd2dd96f0b7b25a3e7c94b40a6bbe1
src/lib/abstracthighlighter_p.h
src/lib/abstracthighlighter_p.h
/* Copyright (C) 2016 Volker Krause <vkrause@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
/* Copyright (C) 2016 Volker Krause <vkrause@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versio...
Fix typo in include guard
Fix typo in include guard Found by krazy.
C
lgpl-2.1
janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlighting,janusw/syntax-highlight...
4fa4c1d56adc1005ce856580848a11bc11598e09
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 "APM P...
#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 "APM P...
Change for alpha-RC1 version name
Change for alpha-RC1 version name
C
agpl-3.0
xros/apm_planner,sutherlandm/apm_planner,xros/apm_planner,LittleBun/apm_planner,labtoast/apm_planner,duststorm/apm_planner,hejunbok/apm_planner,mrpilot2/apm_planner,diydrones/apm_planner,LIKAIMO/apm_planner,mirkix/apm_planner,Icenowy/apm_planner,hejunbok/apm_planner,abcdelf/apm_planner,xros/apm_planner,LIKAIMO/apm_plan...
5475567b7f05fbc245cedb1b3ecdbc63ac671685
src/atoin.c
src/atoin.c
/* * Copyright (c) 1997-2004, Index Data * See the file LICENSE for details. * * $Id: atoin.c,v 1.4 2004-12-13 14:21:55 heikki Exp $ */ /** * \file atoin.c * \brief Implements atoi_n function. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <ctype.h> /** * atoi_n: like atoi b...
/* * Copyright (c) 1997-2004, Index Data * See the file LICENSE for details. * * $Id: atoin.c,v 1.5 2004-12-16 08:59:56 adam Exp $ */ /** * \file atoin.c * \brief Implements atoi_n function. */ #if HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <ctype.h> #include <yaz/marcdisp.h> /**...
Include marcdisp.h so that atoi_n gets public on WIN32
Include marcdisp.h so that atoi_n gets public on WIN32
C
bsd-3-clause
nla/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,dcrossleyau/yaz
ead111a8e26f98570cfdb9b3b849e5fac3ca7e7b
ext/rbuv/rbuv.c
ext/rbuv/rbuv.c
#include "rbuv.h" ID id_call; VALUE mRbuv; void Init_rbuv() { id_call = rb_intern("call"); mRbuv = rb_define_module("Rbuv"); Init_rbuv_error(); Init_rbuv_handle(); Init_rbuv_loop(); Init_rbuv_timer(); Init_rbuv_stream(); Init_rbuv_tcp(); Init_rbuv_signal(); }
#include "rbuv.h" ID id_call; VALUE mRbuv; VALUE rbuv_version(VALUE self); VALUE rbuv_version_string(VALUE self); void Init_rbuv() { id_call = rb_intern("call"); mRbuv = rb_define_module("Rbuv"); rb_define_singleton_method(mRbuv, "version", rbuv_version, 0); rb_define_singleton_method(mRbuv, "version_strin...
Add singleton methods to access libuv version
Add singleton methods to access libuv version
C
mit
arthurdandrea/rbuv,arthurdandrea/rbuv
eb70a569253926f60eab5a9c6d693908b3dd11b9
src/jcon/json_rpc_result.h
src/jcon/json_rpc_result.h
#pragma once #include "jcon.h" #include <QString> #include <QVariant> namespace jcon { class JCON_API JsonRpcResult { public: virtual ~JsonRpcResult() {} virtual bool isSuccess() const = 0; virtual QVariant result() const = 0; virtual QString toString() const = 0; }; }
#pragma once #include "jcon.h" #include <QString> #include <QVariant> namespace jcon { class JCON_API JsonRpcResult { public: virtual ~JsonRpcResult() {} operator bool() const { return isSuccess(); } virtual bool isSuccess() const = 0; virtual QVariant result() const = 0; virtual QString toStr...
Add conversion-to-bool operator to JsonRpcResult class
Add conversion-to-bool operator to JsonRpcResult class
C
mit
zeromem88/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon,joncol/jcon-cpp,joncol/jcon,joncol/jcon-cpp,joncol/jcon-cpp,zeromem88/jcon-cpp,joncol/jcon
4f172d10cffb59af5b7ef99bf18978462320cf6b
src/parse/stmt/parameter.c
src/parse/stmt/parameter.c
#include "../parse.h" unsigned parse_stmt_parameter( const sparse_t* src, const char* ptr, parse_debug_t* debug, parse_stmt_t* stmt) { unsigned dpos = parse_debug_position(debug); unsigned i = parse_keyword( src, ptr, debug, PARSE_KEYWORD_PARAMETER); if (i == 0) return 0; if (ptr[i++] != '(') { parse_...
#include "../parse.h" unsigned parse_stmt_parameter( const sparse_t* src, const char* ptr, parse_debug_t* debug, parse_stmt_t* stmt) { unsigned dpos = parse_debug_position(debug); unsigned i = parse_keyword( src, ptr, debug, PARSE_KEYWORD_PARAMETER); if (i == 0) return 0; bool has_brackets = (ptr[i] == '...
Support DEC style PARAMETER statements
Support DEC style PARAMETER statements This is a non-standard feature, but it's easy to support. http://fortranwiki.org/fortran/show/Modernizing+Old+Fortran
C
apache-2.0
CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc,CodethinkLabs/ofc
708004157299c728b304385f3f4255ffbd587f60
kernel/core/test.c
kernel/core/test.c
#include <arch/x64/port.h> #include <truth/panic.h> #define TEST_RESULT_PORT_NUMBER 0xf4 void test_shutdown_status(enum status status) { logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status); write_port(status, TEST_RESULT_PORT_NUMBER); //__asm__("movb $0x0, %al; outb %a...
#include <arch/x64/port.h> #include <truth/panic.h> #define TEST_RESULT_PORT_NUMBER 0xf4 void test_shutdown_status(enum status status) { logf(Log_Debug, "Test shutting down with status %s (%d)\n", status_message(status), status); write_port(status, TEST_RESULT_PORT_NUMBER); halt(); assert(Not_Reached)...
Remove debug messages and duplicate code
Remove debug messages and duplicate code
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
7f16d7067e11d2684b644c8af7c21cdc77b32723
lib/Headers/cpuid.h
lib/Headers/cpuid.h
/*===---- stddef.h - Basic type definitions --------------------------------=== * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
/*===---- cpuid.h - Basic type definitions ---------------------------------=== * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rig...
Fix file name in comments.
Fix file name in comments. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@145184 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
446affcc0b9fb45d67969d6f91d9adf221e055c5
libyaul/cons/vdp1.c
libyaul/cons/vdp1.c
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <mrko@eecs.berkeley.edu> */ #include "cons.h" typedef struct { } cons_vdp1_t; static struct cons_vdp1_t *cons_vdp1_new(void); static void cons_vdp1_write(struct cons *, int, uint8_t, uint8_t); void cons_vdp1_init(struct cons *...
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <mrko@eecs.berkeley.edu> */ #include <inttypes.h> #include <stdbool.h> #include <ctype.h> #include <string.h> #include "cons.h" typedef struct { } cons_vdp1_t; static cons_vdp1_t *cons_vdp1_new(void); static void cons_vdp1_res...
Change stubs for VDP1 cons driver
Change stubs for VDP1 cons driver
C
mit
ChillyWillyGuru/libyaul,ChillyWillyGuru/libyaul
a014838c02b0abb209e0a182c46574455ea5cd0b
kernel/kernel.c
kernel/kernel.c
#include <norby/colortest.h> #include <norby/gdt.h> #include <norby/idt.h> #include <norby/irq.h> #include <norby/isrs.h> #include <norby/kernel.h> #include <norby/keyboard.h> #include <norby/panic.h> #include <norby/version.h> #include <norby/vga.h> #include <stdio.h> #include <string.h> void kmain() { //Install des...
#include <norby/colortest.h> #include <norby/gdt.h> #include <norby/idt.h> #include <norby/irq.h> #include <norby/isrs.h> #include <norby/kernel.h> #include <norby/keyboard.h> #include <norby/panic.h> #include <norby/version.h> #include <norby/vga.h> #include <stdio.h> #include <string.h> void kmain() { //Install des...
Add "clear" command for clearing screen
Add "clear" command for clearing screen
C
mit
simon-andrews/norby,simon-andrews/norby,simon-andrews/norby
a9dbb6171167387492343a681a87558d047fb5b8
test/CodeGen/unwind-attr.c
test/CodeGen/unwind-attr.c
// RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 // RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1 int foo(void) { }
// RUN: clang -fexceptions -emit-llvm -o - %s | grep "@foo() {" | count 1 && // RUN: clang -emit-llvm -o - %s | grep "@foo() nounwind {" | count 1 int foo(void) { }
Fix test case RUN: line (thanks Argiris)
Fix test case RUN: line (thanks Argiris) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@54922 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
df16cf042b6085f68b4263e24f29ad61be71cea8
nsswitch-internal.h
nsswitch-internal.h
/* * nsswitch_internal.h * Prototypes for some internal glibc functions that we use. Shhh. */ #ifndef NSSWITCH_INTERNAL_H #define NSSWITCH_INTERNAL_H #include "config.h" /* glibc/config.h.in */ #if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__ # define internal_function __attribute__ ((r...
/* * nsswitch_internal.h * Prototypes for some internal glibc functions that we use. Shhh. */ #ifndef NSSWITCH_INTERNAL_H #define NSSWITCH_INTERNAL_H #include <features.h> #include "config.h" /* glibc/config.h.in */ #if __GLIBC_PREREQ(2, 27) # define internal_function #elif defined USE_REGPARMS && !defined PROF ...
Update internal glibc functions ABI for glibc 2.27
Update internal glibc functions ABI for glibc 2.27 Signed-off-by: Anders Kaseorg <087231934ba8fcf78bc142ce37d193b895ac03c4@mit.edu>
C
lgpl-2.1
andersk/nss_nonlocal,andersk/nss_nonlocal
9d9b91c4dfe47ef3d32ecc241461955d3c26b3bc
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 0 #define CLIENT_VERSION_REVISION 2 #define CLIENT_VERSION_BUILD 5 // Set to ...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 0 #define CLIENT_VERSION_REVISION 2 #define CLIENT_VERSION_BUILD 6 // Set to ...
Increase version to 1.0.2.6 r6
Increase version to 1.0.2.6 r6
C
mit
memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core,memeticproject/memetic-core
bf0d3c50784e0f7a1bb590a3979eba7c50726b1c
chap1/ftoc.c
chap1/ftoc.c
#include <stdio.h> /* print Fahrenheit to Celsius table * for Fahrenheit 0, 20, ..., 300 */ int main() { int fahr; int cel; int lower; int upper; int step; lower = 0; /* lower bound for the table */ upper = 300; /* upper bound for the table */ step = 20; /* amount to step by */ ...
#include <stdio.h> /* print Fahrenheit to Celsius table * for Fahrenheit 0, 20, ..., 300 */ int main() { float fahr; float cel; int lower; int upper; int step; lower = 0; /* lower bound for the table */ upper = 300; /* upper bound for the table */ step = 20; /* amount to step by */ ...
Change from `int` to `float`
Change from `int` to `float`
C
mit
jabocg/theclang
3d9b68a94760fa90e3d380525f5547fa8a945538
os/gl/gl_context.h
os/gl/gl_context.h
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { pu...
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { pu...
Make os::GLContext instantiable (isValid() returns false by default)
Make os::GLContext instantiable (isValid() returns false by default)
C
mit
aseprite/laf,aseprite/laf
5d4c2bb7b6f10ed33ea32ea97f070766a5ec6f2b
src/vistk/scoring/score_mask.h
src/vistk/scoring/score_mask.h
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_SCORING_SCORE_MASK_H #define VISTK_SCORING_SCORE_MASK_H #include "scoring-conf...
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_SCORING_SCORE_MASK_H #define VISTK_SCORING_SCORE_MASK_H #include "scoring-conf...
Use bytes for mask images
Use bytes for mask images
C
bsd-3-clause
linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit
8ebc25895f4832b73950ca32522dcb51e8ea8f5d
src/kernel/kernel.h
src/kernel/kernel.h
#ifndef KERNEL_H #define KERNEL_H void free_write(); extern unsigned int endkernel; #endif
#ifndef KERNEL_H #define KERNEL_H void free_write(); extern unsigned int endkernel; enum STATUS_CODE { // General GENERAL_SUCCESS, GENERAL_FAILURE } #endif
Create an enum for all posible function return status codes
Create an enum for all posible function return status codes
C
bsd-3-clause
TwoUnderscorez/DuckOS,TwoUnderscorez/DuckOS,TwoUnderscorez/DuckOS
68b56a8eb5f6b950fcd11b089f726bf7aaf7a311
tools/qb_blackbox.c
tools/qb_blackbox.c
/* * Copyright (C) 2012 Andrew Beekhof <andrew@beekhof.net> * * libqb is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 2.1 of the License, or * (at your option) any later version. *...
/* * Copyright (C) 2012 Andrew Beekhof <andrew@beekhof.net> * * libqb is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 2.1 of the License, or * (at your option) any later version. *...
Enable error logging for the blackbox reader
Enable error logging for the blackbox reader
C
lgpl-2.1
davidvossel/libqb,davidvossel/libqb,rubenk/libqb,ClusterLabs/libqb,kgaillot/libqb,kgaillot/libqb,kgaillot/libqb,gao-yan/libqb,ClusterLabs/libqb,ClusterLabs/libqb,gao-yan/libqb,rubenk/libqb
b17dbf109de8dae1f917302c383093485beefa10
ios/RNCallKit/RNCallKit.h
ios/RNCallKit/RNCallKit.h
// // RNCallKit.h // RNCallKit // // Created by Ian Yu-Hsun Lin on 12/22/16. // Copyright © 2016 Ian Yu-Hsun Lin. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <CallKit/CallKit.h> #import <Intents/Intents.h> //#import <AVFoundation/AVAudioSession.h> #import "RCTEventEmi...
// // RNCallKit.h // RNCallKit // // Created by Ian Yu-Hsun Lin on 12/22/16. // Copyright © 2016 Ian Yu-Hsun Lin. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <CallKit/CallKit.h> #import <Intents/Intents.h> //#import <AVFoundation/AVAudioSession.h> #import <React/RCTEv...
Fix incorrect import on React-Native >=0.40
Fix incorrect import on React-Native >=0.40 For reference, see here: https://github.com/facebook/react-native/commit/e1577df1fd70049ce7f288f91f6e2b18d512ff4d
C
isc
ianlin/react-native-callkit,ianlin/react-native-callkit,killian90/react-native-callkit
e7c1ac5d6e80b5def95a61fdb7eb79f4da9e45cb
Runtime/Rendering/ResourceDX11.h
Runtime/Rendering/ResourceDX11.h
#pragma once #include "Rendering/RendererDX11.h" namespace Mile { enum class ERenderResourceType { VertexBuffer, IndexBuffer, ConstantBuffer, StructuredBuffer, ByteAddressBuffer, IndirectArgumentsBuffer, Texture1D, Texture2D, Texture3D, RenderTarget, ...
#pragma once #include "Rendering/RendererDX11.h" #include "Core/Engine.h" namespace Mile { enum class ERenderResourceType { VertexBuffer, IndexBuffer, ConstantBuffer, StructuredBuffer, ByteAddressBuffer, IndirectArgumentsBuffer, Texture1D, Texture2D, Texture3...
Modify HasAvailableRenderer method to check actually matched with Engine owned renderer
Modify HasAvailableRenderer method to check actually matched with Engine owned renderer
C
mit
HoRangDev/MileEngine,HoRangDev/MileEngine
7efded33d1a46f193690b9efb70e033a43984e66
util/malloccache.h
util/malloccache.h
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { assert(m_blocksCached >= 0 && m_blocksCached <= blockCount); for (size_t i = 0; i < m_blocksCached; i...
#ifndef MALLOCCACHE_H #define MALLOCCACHE_H // no-op the cache, sometimes useful for debugging memory issues //#define MALLOCCACHE_PASSTHROUGH template <size_t blockSize, size_t blockCount> class MallocCache { public: MallocCache() : m_blocksCached(0) { } ~MallocCache() { #ifndef MALLOCCAC...
Add an ifdef to disable MallocCache for debugging.
Add an ifdef to disable MallocCache for debugging.
C
lgpl-2.1
KDE/dferry,KDE/dferry
9b4360b6b8e1ba4234f5b11b8217379faafcb3b7
app/src/adb_parser.h
app/src/adb_parser.h
#ifndef SC_ADB_PARSER_H #define SC_ADB_PARSER_H #include "common.h" #include "stddef.h" /** * Parse the ip from the output of `adb shell ip route` */ char * sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len); #endif
#ifndef SC_ADB_PARSER_H #define SC_ADB_PARSER_H #include "common.h" #include "stddef.h" /** * Parse the ip from the output of `adb shell ip route` * * Warning: this function modifies the buffer for optimization purposes. */ char * sc_adb_parse_device_ip_from_output(char *buf, size_t buf_len); #endif
Add warning in function documentation
Add warning in function documentation The function parsing "ip route" output modifies the input buffer to tokenize in place. This must be mentioned in the function documentation.
C
apache-2.0
Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy
d1ad3c1bfafd23a8e97f58de84cb609ded486c62
scripts/startclose/moreInfo.c
scripts/startclose/moreInfo.c
startclose: moreInfo New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ] Go to Layout [ “about” (tempSetup) ] Adjust Window [ Resize to Fit ] Pause/Resume Script [ Indefinitely ] January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
startclose: moreInfo New Window [ Name: "More Info"; Left: Get ( WindowDesktopWidth ) - (Get ( WindowDesktopWidth ) / 2 ) ] Go to Layout [ “moreinfo” (tempSetup) ] Adjust Window [ Resize to Fit ] Pause/Resume Script [ Indefinitely ] January 23, 平成26 3:39:22 Imagination Quality Management.fp7 - about -1-
Change more info window layout name
Change more info window layout name
C
apache-2.0
HelpGiveThanks/Library,HelpGiveThanks/Library
9dfa879c1264d0f10fb96915b04e2cc106abce3b
include/features.h
include/features.h
#ifndef __FEATURES_H #define __FEATURES_H #ifdef __STDC__ #define __P(x) x #define __const const /* Almost ansi */ #if __STDC__ != 1 #define const #define volatile #endif #else /* K&R */ #define __P(x) () #define __const #define const #define volatile #endif /* No C++ */ #define __BEGIN_DECLS #define __END_DECL...
#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...
Add in a version number so apps can tell uclib is being used. -Erik
Add in a version number so apps can tell uclib is being used. -Erik
C
lgpl-2.1
joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc
709e6f102189171dfd6b6e9349a741f29bc00660
xs/APR/OS/APR__OS.h
xs/APR/OS/APR__OS.h
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8. xs/APR/OS/APR__OS.h: In function 'mpxs_APR__OS_current_thread_id': xs/APR/OS/APR__OS.h:20: warning: cast from pointer to integer of different size Consistently cast this to an unsigned long. git-svn-id: b4be4a41b2a3352907de631eb6da1671a2f7b614@983068 13f...
C
apache-2.0
Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl,Distrotech/mod_perl
6ad9eb749dcae5a1b2e3d5a3b4cd783c9c8c7224
cqrs/artifact_view.h
cqrs/artifact_view.h
#pragma once #include "cqrs/artifact.h" namespace cddd { namespace cqrs { template<class> class basic_artifact_view; template<class DomainEventDispatcher, class DomainEventContainer> class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> { public: using id_type = typename basic_a...
#pragma once #include "cqrs/artifact.h" namespace cddd { namespace cqrs { template<class> class basic_artifact_view; template<class DomainEventDispatcher, class DomainEventContainer> class basic_artifact_view<basic_artifact<DomainEventDispatcher, DomainEventContainer>> { public: using id_type = typename basic_a...
Refactor artifact view to provide event pointer created by the artifact after applying a change
Refactor artifact view to provide event pointer created by the artifact after applying a change
C
mit
skizzay/cddd,skizzay/cddd
4cfc6fe9ed05af1bfc371bd78ad6945b62419e37
test/Sema/i-c-e3.c
test/Sema/i-c-e3.c
// RUN: clang %s -fsyntax-only -verify -pedantic-errors int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{null pointer expression is not an integer constant expression (but is allowed as an extension)}} // expected-note{{C does not permit evaluated commas in an integer constant expression}}
// RUN: clang %s -fsyntax-only -verify int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;}
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
Fix test. (0 && (a(),1)) is a valid I-C-E according to C99. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60331 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
fa99782c1eb60ffd73915fdd8a3f801a01b79a9d
src/bin/e_error.h
src/bin/e_error.h
#ifdef E_TYPEDEFS #define e_error_message_show(args...) \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif
#ifdef E_TYPEDEFS #define e_error_message_show(args...) do \ { \ char __tmpbuf[PATH_MAX]; \ \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ e_error_message_show_internal(__tmpbuf); \ } while (0) #else #ifndef E_ERROR_H #define E_ERROR_H EAPI void e_error_message_show_internal(char *txt); #endif #endif...
Fix macro so it can be used as a statement
e: Fix macro so it can be used as a statement Should fix devilhorn's compile error. Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> git-svn-id: 6ac5796aeae0cef97fb47bcc287d4ce899c6fa6e@61783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
938c9e965d14e6867f165b3be3391b0c15484bf5
src/util/string.h
src/util/string.h
#ifndef UTIL_STRING_H #define UTIL_STRING_H #include "util/common.h" char* strndup(const char* start, size_t len); char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif
#ifndef UTIL_STRING_H #define UTIL_STRING_H #include "util/common.h" #ifndef strndup // This is sometimes a macro char* strndup(const char* start, size_t len); #endif char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif
Fix build with strndup on some platforms
Util: Fix build with strndup on some platforms
C
mpl-2.0
mgba-emu/mgba,mgba-emu/mgba,libretro/mgba,nattthebear/mgba,MerryMage/mgba,AdmiralCurtiss/mgba,Iniquitatis/mgba,fr500/mgba,libretro/mgba,Anty-Lemon/mgba,matthewbauer/mgba,iracigt/mgba,cassos/mgba,askotx/mgba,nattthebear/mgba,fr500/mgba,sergiobenrocha2/mgba,sergiobenrocha2/mgba,Anty-Lemon/mgba,jeremyherbert/mgba,MerryMag...
980869bb3c0d627e6190ee90eef18b3d60d109ab
Sources/Ello-Bridging-Header.h
Sources/Ello-Bridging-Header.h
#import "MBProgressHUD.h" #import <SDWebImage/UIImageView+WebCache.h> #import "JTSImageViewController.h" #import "JTSImageInfo.h" #import "UITabBarController+NBUAdditions.h" #import "KINWebBrowserViewController.h" #import <SSPullToRefresh/SSPullToRefresh.h> #import "SVGKit/SVGKit.h"
#import "MBProgressHUD.h" #import <SDWebImage/UIImageView+WebCache.h> #import "JTSImageViewController.h" #import "JTSImageInfo.h" #import "UITabBarController+NBUAdditions.h" #import "KINWebBrowserViewController.h" #import <SSPullToRefresh/SSPullToRefresh.h> #import <SVGKit/SVGKit.h>
Update import statement for consistency.
Update import statement for consistency.
C
mit
ello/ello-ios,ello/ello-ios,ello/ello-ios,ello/ello-ios
b743e26e288da913ce62e96f74f73079c2f37299
fuzz/main.c
fuzz/main.c
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) cgltf_free(data); return 0; }
#define CGLTF_IMPLEMENTATION #include "../cgltf.h" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { cgltf_options options = {0}; cgltf_data* data = NULL; cgltf_result res = cgltf_parse(&options, Data, Size, &data); if (res == cgltf_result_success) { cgltf_validate(data); cgltf_free(data); } re...
Add validation to fuzz target
Add validation to fuzz target This make sure new validation code is robust by itself.
C
mit
jkuhlmann/cgltf,jkuhlmann/cgltf,jkuhlmann/cgltf
707924f97fc31d1e25e80e3e6df566dd1f7d4b02
src/common.h
src/common.h
/** \file common.h * \brief Project-wide definitions and macros. * * * SCL; 2012-2015 */ #ifndef COMMON_H #define COMMON_H #define GR1C_VERSION "0.10.2" #define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \ "California Institute of Technology\n\n" \ "This is free, open source software,...
/** \file common.h * \brief Project-wide definitions and macros. * * * SCL; 2012-2015 */ #ifndef COMMON_H #define COMMON_H #define GR1C_VERSION "0.10.3" #define GR1C_COPYRIGHT "Copyright (c) 2012-2015 by Scott C. Livingston,\n" \ "California Institute of Technology\n\n" \ "This is free, open source software,...
Bump version in preparation for next release.
Bump version in preparation for next release.
C
bsd-3-clause
slivingston/gr1c,slivingston/gr1c,slivingston/gr1c
18ef03a558c8f1786f18ee5be9f8a2648e73d608
OctoKit/OCTEntity.h
OctoKit/OCTEntity.h
// // OCTEntity.h // OctoKit // // Created by Josh Abernathy on 1/21/11. // Copyright 2011 GitHub. All rights reserved. // #import "OCTObject.h" @class OCTPlan; @class GHImageRequestOperation; // Represents any GitHub object which is capable of owning repositories. @interface OCTEntity : OCTObject // Returns `l...
// // OCTEntity.h // OctoKit // // Created by Josh Abernathy on 1/21/11. // Copyright 2011 GitHub. All rights reserved. // #import "OCTObject.h" @class OCTPlan; // Represents any GitHub object which is capable of owning repositories. @interface OCTEntity : OCTObject // Returns `login` if no name is explicitly s...
Remove old class forward declaration
Remove old class forward declaration
C
mit
daukantas/octokit.objc,jonesgithub/octokit.objc,Palleas/octokit.objc,CleanShavenApps/octokit.objc,GroundControl-Solutions/octokit.objc,CHNLiPeng/octokit.objc,daemonchen/octokit.objc,Acidburn0zzz/octokit.objc,wrcj12138aaa/octokit.objc,daukantas/octokit.objc,jonesgithub/octokit.objc,xantage/octokit.objc,yeahdongcn/octoki...
50d862bf9bdb359d71c0a13bb7dcb1cf2cd6016f
3/src/e/options.c
3/src/e/options.c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "options.h" static Options * _new() { Options *opts = (Options *)malloc(sizeof(Options)); if(opts) { memset(opts, 0, sizeof(Options)); } return opts; } static Options * make(int argc, char *argv[]) { Options *opts = _new(); int i = 1; fo...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "options.h" static Options * _new() { Options *opts = (Options *)malloc(sizeof(Options)); if(opts) { memset(opts, 0, sizeof(Options)); } return opts; } static Options * make(int argc, char *argv[]) { Options *opts = _new(); int i = 1; /*...
Rework the command line option defaults mechanism
e: Rework the command line option defaults mechanism
C
mpl-2.0
KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel
8c561b7c431ca247ef15f2dd59bc0f6efb963ef6
hello.c
hello.c
#include <stdio.h> int main() { puts("Hello, people!"); return 0; }
#include <stdio.h> int main() { puts("Hello, people!"); /* Preferred over printf */ return 0; }
Comment the main .c file
Comment the main .c file
C
bsd-3-clause
riuri/first,riuri/first
387ec6864a25317ff45f9001809c4752047e2637
src/os/Linux/findself.c
src/os/Linux/findself.c
#define _XOPEN_SOURCE 500 #include <unistd.h> #include <stdlib.h> char *os_find_self(void) { // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = realloc(path, size); used = readlink("/proc/self/ex...
#define _XOPEN_SOURCE 500 #include <unistd.h> #include <stdlib.h> char *os_find_self(void) { // PATH_MAX (used by readlink(2)) is not necessarily available size_t size = 2048, used = 0; char *path = NULL; do { size *= 2; path = realloc(path, size); used = readlink("/proc/self/ex...
Mend loop condition from 344aae0
Mend loop condition from 344aae0
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
855718c59f77594a0911f80592875daff05d8b8c
t_gc.h
t_gc.h
/* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */ #ifndef __T_GC__ #define __T_GC__ #ifdef PROF # define GC_INIT() 0 # define GC_MALLOC(s) malloc(s) # define GC_MALLOC_ATOMIC(s) malloc(s) #else # include <gc.h> #endif /* PROF */ #endif /* __T_GC__ */
/* $Id: t_gc.h,v 1.7 2011/09/04 13:00:54 mit-sato Exp $ */ #ifndef __T_GC__ #define __T_GC__ #ifdef PROF # define GC_INIT() 0 # define GC_MALLOC(s) malloc(s) # define GC_MALLOC_ATOMIC(s) malloc(s) # define GC_register_finalizer_ignore_self(o,f,c,x,y) 0 # define GC_add_roots(s,e) 0 #else # include <gc.h>...
Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots.
Add dummy macro GC_register_finalizer_ignore_self and GC_add_roots.
C
mit
mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume,mitchan0321/perfume
f8f7140dcb8c109ad0571b0c6c0f46c464c2ddad
mParticle-Apple-SDK/Kits/MPKitAPI.h
mParticle-Apple-SDK/Kits/MPKitAPI.h
#import <Foundation/Foundation.h> @class MPAttributionResult; @class FilteredMParticleUser; @protocol MPKitProtocol; @interface MPKitAPI : NSObject - (void)logError:(NSString *_Nullable)format, ...; - (void)logWarning:(NSString *_Nullable)format, ...; - (void)logDebug:(NSString *_Nullable)format, ...; - (void)logVer...
#import <Foundation/Foundation.h> @class MPAttributionResult; @class FilteredMParticleUser; @protocol MPKitProtocol; @interface MPKitAPI : NSObject - (void)logError:(NSString *_Nullable)format, ...; - (void)logWarning:(NSString *_Nullable)format, ...; - (void)logDebug:(NSString *_Nullable)format, ...; - (void)logVer...
Allow nil result in kit api attribution method
Allow nil result in kit api attribution method Closes #66.
C
apache-2.0
mParticle/mParticle-iOS-SDK,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mparticle-apple-sdk,mParticle/mParticle-iOS-SDK,mParticle/mparticle-apple-sdk
ac6d2c574d393bfbf1dcc1250c730550cd8c4150
src/augs/misc/time_utils.h
src/augs/misc/time_utils.h
#pragma once #include <ctime> #include <string> #include <chrono> #include "augs/filesystem/file_time_type.h" namespace augs { struct date_time { // GEN INTROSPECTOR struct augs::timestamp std::time_t t; // END GEN INTROSPECTOR date_time(); date_time(const std::time_t& t) : t(t) {} date_time(const std::c...
#pragma once #include <ctime> #include <string> #include <chrono> #include "augs/filesystem/file_time_type.h" namespace augs { struct date_time { // GEN INTROSPECTOR struct augs::timestamp std::time_t t; // END GEN INTROSPECTOR date_time(); date_time(const std::time_t& t) : t(t) {} date_time(const std::c...
Build error fix for Windows
Build error fix for Windows
C
agpl-3.0
TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia
76df39bdfbc3eaa67abde2a413b0610a29502520
USART.h
USART.h
/* * USART.h * * Created: 2016/9/10 16:30:30 * Author: dusch */ #ifndef USART_H_ #define USART_H_ #define BAUD 9600 #define F_CPU 12000000UL #include <avr/interrupt.h> void USART_Init(void); void USART_Transmit(unsigned char data); unsigned char USART_Receive(void); #endif /* USART_H_...
/* * USART.h * * Created: 2016/9/10 16:30:30 * Author: dusch */ #ifndef USART_H_ #define USART_H_ #define BAUD 9600 #define F_CPU 8000000UL #include <avr/interrupt.h> void USART_Init(void); void USART_Transmit(unsigned char data); unsigned char USART_Receive(void); #endif /* USART_H_ ...
Change default F_CPU from 12000000 to 8000000
Change default F_CPU from 12000000 to 8000000
C
bsd-3-clause
Schummacher/AVR_SCLib,Schummacher/AVR_SCLib
c894081a7f7ac467d6282b8955e32dd3ac040ef1
base/float_util.h
base/float_util.h
// Copyright (c) 2006-2008 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 BASE_FLOAT_UTIL_H_ #define BASE_FLOAT_UTIL_H_ #pragma once #include "build/build_config.h" #include <float.h> #include <math.h> #if de...
// 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 BASE_FLOAT_UTIL_H_ #define BASE_FLOAT_UTIL_H_ #pragma once #include "build/build_config.h" #include <float.h> #include <math.h> #if defined...
Use isfinite instead of finite on Mac
Use isfinite instead of finite on Mac According to math.h in the 10.6 SDK, finite is deprecated in favor of isfinite, and finite isn't available on iOS. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10704126 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@145876 0039d316-1c4b-4281-b951...
C
bsd-3-clause
dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,dednal/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,patrickm/chromium.src,keishi/chromium,axinging/c...
0d3b50ec8667ef96e6aa774e2617eb5a8c5f8034
test/CodeGen/writable-strings.c
test/CodeGen/writable-strings.c
// RUN: clang -emit-llvm -fwritable-string %s int main() { char *str = "abc"; str[0] = '1'; printf("%s", str); }
// RUN: clang -emit-llvm -fwritable-strings %s int main() { char *str = "abc"; str[0] = '1'; printf("%s", str); }
Fix typo in writable string test
Fix typo in writable string test git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@44398 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
7d9656b13d1425481e2af8656f7009ad1056e484
trace.h
trace.h
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else #define TRACE(fmt,arg...) ((void) 0) #endif #ifdef DEBUG #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg) #else #define ERROR(fmt,arg...) \ fprintf(stderr, "%s: "fmt...
#ifndef _TRACE_H_ #define _TRACE_H_ #include <stdio.h> #include <errno.h> #ifdef DEBUG #define TRACE ERROR #else static inline void TRACE(const char *fmt, ...) { } #endif #ifdef DEBUG #define ERROR(fmt,arg...) \ fprintf(stderr, "%s:%d: "fmt, __func__, __LINE__, ##arg) #else #define ERROR(fmt,arg...) \ fprintf(std...
Make TRACE() safe when DEBUG is disabled.
Make TRACE() safe when DEBUG is disabled.
C
lgpl-2.1
dimm0/tacc_stats,aaichsmn/tacc_stats,dimm0/tacc_stats,sdsc/xsede_stats,dimm0/tacc_stats,TACC/tacc_stats,sdsc/xsede_stats,ubccr/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,dimm0/tacc_stats,TACCProjects/tacc_stats,sdsc/xsede_stats,TACCProjects/tacc_stats,ubccr/tacc_stats,rtevans/tacc_stats...
754fbe3028dff6448a4d50ead35911578f91c7d8
test/test_encode_atom.c
test/test_encode_atom.c
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" #include <string.h> unsigned char output[6]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert_encoder_push did not add the magic byte"); } if (output[1] != BERT_ATOM) { test_fail("bert_encoder_pus...
#include <bert/encoder.h> #include <bert/magic.h> #include <bert/errno.h> #include "test.h" #include <string.h> #define EXPECTED_LENGTH 2 #define EXPECTED "id" #define OUTPUT_SIZE (1 + 1 + 2 + EXPECTED_LENGTH) unsigned char output[OUTPUT_SIZE]; void test_output() { if (output[0] != BERT_MAGIC) { test_fail("bert...
Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test.
Use EXPECTED/EXPECTED_LENGTH/OUTPUT_SIZE macros in the atom encoding test.
C
mit
postmodern/libBERT
9ab39d421665c1420afae6d8e006b01e7d0e6c61
modules/acct_csv/rtpp_csv_acct.c
modules/acct_csv/rtpp_csv_acct.c
#include <stdint.h> #include <stdlib.h> #include "rtpp_module.h" #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)} struct moduleinfo rtpp_module = { .name = "csv_acct", .ver = MI_VER_INIT(struct moduleinfo) };
#include <assert.h> #include <stdint.h> #include <stdlib.h> #include "rtpp_types.h" #include "rtpp_module.h" #define MI_VER_INIT(sname) {.rev = MODULE_API_REVISION, .mi_size = sizeof(sname)} struct rtpp_module_priv { int foo; }; static struct rtpp_module_priv *rtpp_csv_acct_ctor(struct rtpp_cfg_stable *); static...
Add simple constructor and destructor.
Add simple constructor and destructor.
C
bsd-2-clause
synety-jdebp/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,sippy/rtpproxy
94693767f1b911afa9b11b4b1fa5ffd1b2eaaac2
include/xiot/XIOTConfig.h
include/xiot/XIOTConfig.h
/*========================================================================= This file is part of the XIOT library. Copyright (C) 2008-2009 EDF R&D Author: Kristian Sons (xiot@actor3d.com) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser...
/*========================================================================= This file is part of the XIOT library. Copyright (C) 2008-2009 EDF R&D Author: Kristian Sons (xiot@actor3d.com) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser...
Disable secure function warnings via pragma
MSVC: Disable secure function warnings via pragma
C
lgpl-2.1
Supporting/xiot,Supporting/xiot,Supporting/xiot
66c950522a3563c96cb7d4aca0ba4e940b769462
includes/StackAllocator.h
includes/StackAllocator.h
#include "LinearAllocator.h" #ifndef STACKALLOCATOR_H #define STACKALLOCATOR_H class StackAllocator : public LinearAllocator { public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(co...
#include "Allocator.h" #ifndef STACKALLOCATOR_H #define STACKALLOCATOR_H class StackAllocator : public Allocator { protected: /* Offset from the start of the memory block */ std::size_t m_offset; public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~Stack...
Change parent class from LinearAllocator to Allocator.
Change parent class from LinearAllocator to Allocator.
C
mit
mtrebi/memory-allocators
e5410c25e5287699260ba3d3ecd188faaf30e499
cmd/lefty/display.h
cmd/lefty/display.h
/* $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 (...
Update with new lefty, fixing many bugs and supporting new features
Update with new lefty, fixing many bugs and supporting new features
C
epl-1.0
MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,tkelman/graphviz,kbrock/graphviz,jho1965us/graphviz,jho1965us/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,ellson/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,kbrock/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow...
05c6f77912696091da5bda1c47ca9b92d6b4aff7
AVOS/AVOSCloudLiveQuery/AVSubscription.h
AVOS/AVOSCloudLiveQuery/AVSubscription.h
// // AVSubscription.h // AVOS // // Created by Tang Tianyong on 15/05/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "AVQuery.h" #import "AVDynamicObject.h" NS_ASSUME_NONNULL_BEGIN @protocol AVSubscriptionDelegate <NSObject> @end @interface AVSubscri...
// // AVSubscription.h // AVOS // // Created by Tang Tianyong on 15/05/2017. // Copyright © 2017 LeanCloud Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "AVQuery.h" #import "AVDynamicObject.h" @class AVSubscription; NS_ASSUME_NONNULL_BEGIN @protocol AVSubscriptionDelegate <NSObject> - ...
Add callbacks for live query
Add callbacks for live query
C
apache-2.0
leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk,leancloud/objc-sdk
e949472d78298e2a2e5e6e47edfca99ffa6e6a17
quickpather/passabilityagent.h
quickpather/passabilityagent.h
#ifndef PASSABILITYAGENT_H #define PASSABILITYAGENT_H #include <QPointF> #include <QObject> #include "quickpather_global.h" class AbstractEntity; // Not pure abstract, because we want it to be usable in the Q_PROPERTY macro // and not force derived classes to multiply derive from it and QObject. class QUICKPATHERSH...
#ifndef PASSABILITYAGENT_H #define PASSABILITYAGENT_H #include <QPointF> #include <QObject> #include "quickpather_global.h" class AbstractEntity; // Not pure abstract, because we want it to be usable in the Q_PROPERTY macro // and not force derived classes to multiply derive from it and QObject. class QUICKPATHERSH...
Add missing Q_OBJECT to PassabilityAgent
Add missing Q_OBJECT to PassabilityAgent
C
unlicense
mitchcurtis/quickpather,mitchcurtis/quickpather
8ee124176690ed611c8851e3dd50a823c498a08b
ndb/src/common/portlib/NdbSleep.c
ndb/src/common/portlib/NdbSleep.c
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
/* Copyright (C) 2003 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
Use my_sleep instead of nanosleep for portability
Use my_sleep instead of nanosleep for portability
C
lgpl-2.1
natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,flynn1973/mariadb-aix,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,flynn1973/mariadb-aix,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,ollie314/server,ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,natsys/mariadb_10.2,...
b9e62a6c98648d2c0b722c0bdd1e77f6fe4a1604
cuser/acpica/acenv_header.h
cuser/acpica/acenv_header.h
#define ACPI_MACHINE_WIDTH 64 #define ACPI_SINGLE_THREADED #define ACPI_USE_LOCAL_CACHE #define ACPI_INLINE inline #define ACPI_USE_NATIVE_DIVIDE #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #ifdef ACPI_FULL_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DISASSEMBLER // Depends on threading support #define ACPI...
#define ACPI_MACHINE_WIDTH 64 #define ACPI_SINGLE_THREADED #define ACPI_USE_LOCAL_CACHE #define ACPI_INLINE inline #define ACPI_USE_NATIVE_DIVIDE #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #ifdef ACPI_FULL_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DISASSEMBLER // Depends on threading support #define ACPI...
Fix ACPICA word-size types - u64 didn't match UINT64
Fix ACPICA word-size types - u64 didn't match UINT64
C
mit
olsner/os,olsner/os,olsner/os,olsner/os
8ea9653b3dccad78a2bb9b91adf0589828bff327
src/core/matcher.h
src/core/matcher.h
#ifndef HAMCREST_MATCHER_H #define HAMCREST_MATCHER_H #include "selfdescribing.h" namespace Hamcrest { class Description; /** * A matcher over acceptable values. * A matcher is able to describe itself to give feedback when it fails. * * @see BaseMatcher */ template <typename T> class Matcher : public SelfDescr...
#ifndef HAMCREST_MATCHER_H #define HAMCREST_MATCHER_H #include "selfdescribing.h" namespace Hamcrest { class Description; /** * A matcher over acceptable values. * A matcher is able to describe itself to give feedback when it fails. * * @see BaseMatcher */ template <typename T> class Matcher : public SelfDescr...
Add virtual toString() to Matcher
Add virtual toString() to Matcher
C
bsd-3-clause
cloose/Hamcrest-Qt
37c5e9705435e2f23b6949047036504dcd215747
src/lib/blockdev.h
src/lib/blockdev.h
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" #include "plugin_apis/lvm.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin); #endif /* BD_L...
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" #include "plugin_apis/lvm.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin plugin); #endif ...
Add missing parameter name in bd_is_plugin_available protype
Add missing parameter name in bd_is_plugin_available protype
C
lgpl-2.1
atodorov/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,rhinstaller/libblockdev,rhinstaller/libblockdev,vpodzime/libblockdev,vpodzime/libblockdev,snbueno/libblockdev,atodorov/libblockdev,dashea/libblockdev,vpodzime/libblockdev,atodorov/libblockdev
88b6b07d8542216690a211419c148fda8ba1a4d7
tests/homebrew-acceptance-test.c
tests/homebrew-acceptance-test.c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ht...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ht...
Fix 'make distcheck' (homebrew acceptance test)
Fix 'make distcheck' (homebrew acceptance test) Change-Id: Ie61efb963f30a4548c97dfe63e261db36c2b66e2 Reviewed-on: http://review.couchbase.org/27533 Tested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com> Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
C
apache-2.0
couchbase/libcouchbase,signmotion/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,trondn/libcouchbase,avsej/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,trond...
c11130f26d609b78e88866c87275794c463171b8
net/quic/quic_utils.h
net/quic/quic_utils.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. // // Some helpers for quic #ifndef NET_QUIC_QUIC_UTILS_H_ #define NET_QUIC_QUIC_UTILS_H_ #include "net/base/int128.h" #include "net/base/net_export....
// 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. // // Some helpers for quic #ifndef NET_QUIC_QUIC_UTILS_H_ #define NET_QUIC_QUIC_UTILS_H_ #include "net/base/int128.h" #include "net/base/net_export....
Remove an unused forward declaration.
Remove an unused forward declaration. R=rch@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/11877024 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@176837 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,fujun...
6f805776fca1835477b730ced60fe72d9905f874
src/tests/marquise_init_test.c
src/tests/marquise_init_test.c
#include <glib.h> #include <stdlib.h> #include <string.h> #include "../marquise.h" void test_init() { marquise_ctx *ctx = marquise_init("test"); g_assert_nonnull(ctx); } int main(int argc, char **argv) { g_test_init(&argc, &argv, NULL); g_test_add_func("/marquise_init/init", test_init); return g_test_run(); }
#include <glib.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include "../marquise.h" void test_init() { setenv("MARQUISE_SPOOL_DIR", "/tmp", 1); mkdir("/tmp/marquisetest", 0700); marquise_ctx *ctx = marquise_init("marquisetest"); g_assert_nonnull(ctx); } int main(int argc, char **argv) { g_t...
Use a spool directory under /tmp for testing purposes
Use a spool directory under /tmp for testing purposes
C
bsd-3-clause
anchor/libmarquise,anchor/libmarquise
07a1f80eae2c8169f789da92ab6c17f829615d1a
ghighlighter/main.c
ghighlighter/main.c
#include <stdlib.h> #include <pwd.h> #include <string.h> #include <sys/stat.h> #include <gtk/gtk.h> #include "gh-datastore.h" #include "gh-main-window.h" char * data_dir_path () { uid_t uid = getuid (); struct passwd *pw = getpwuid (uid); char *home_dir = pw->pw_dir; char *data_dir = "/.ghighlighter-c"; in...
#include <stdlib.h> #include <pwd.h> #include <string.h> #include <sys/stat.h> #include <gtk/gtk.h> #include "gh-datastore.h" #include "gh-main-window.h" char * data_dir_path () { uid_t uid = getuid (); struct passwd *pw = getpwuid (uid); char *home_dir = pw->pw_dir; char *data_dir = "/.ghighlighter-c"; in...
Set null byte in allocated data dir path
Set null byte in allocated data dir path
C
mit
chdorner/ghighlighter-c
1af425ed1e08d00fd953d7e905f48610cc350b28
tests/cframework/tests_plugin.h
tests/cframework/tests_plugin.h
/** * @file * * @brief Some common functions operating on plugins. * * If you include this file you have full access to elektra's internals * and your test might not be ABI compatible with the next release. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <tests_internal.h...
/** * @file * * @brief Some common functions operating on plugins. * * If you include this file you have full access to elektra's internals * and your test might not be ABI compatible with the next release. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <tests_internal.h...
Remove trailing semicolons from macros
Test: Remove trailing semicolons from macros
C
bsd-3-clause
mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,mpranj/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/lib...
2794f6e44bac8a1b560d8894b1403ad874a0cd6c
viterbi/viterbi.h
viterbi/viterbi.h
#include <link-grammar/link-features.h> LINK_BEGIN_DECLS void viterbi_parse(const char * sentence, Dictionary dict); LINK_END_DECLS
#include "../link-grammar/link-features.h" LINK_BEGIN_DECLS void viterbi_parse(const char * sentence, Dictionary dict); LINK_END_DECLS
Fix include path so that make install doesn't screw it.
Fix include path so that make install doesn't screw it. git-svn-id: fc35eccb03ccef1c432fd0fcf5295fcceaca86a6@32171 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
C
lgpl-2.1
ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,MadBomber/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,MadBomber/link-grammar,MadBomber/link-grammar,linas/link-grammar,ampli/link-grammar,MadBomber/link-grammar,linas/link-grammar,MadBomber/lin...
2bc82f8ae834a09beda89ae236b1c5e9646f186d
igor/parser/DEIgorParserException.h
igor/parser/DEIgorParserException.h
@interface DEIgorParserException : NSObject + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
@interface DEIgorParserException : NSException + (NSException *)exceptionWithReason:(NSString *)reason scanner:(NSScanner *)scanner; @end
Make Igor parser exception extend NSException
Make Igor parser exception extend NSException
C
mit
dhemery/igor,dhemery/igor,dhemery/igor
e32f03922712ef3516cb7c2a346b3a2ab0ebda36
tests/chez/chez022/mkalloc.c
tests/chez/chez022/mkalloc.c
#include <malloc.h> #include <string.h> typedef struct { int val; char* str; } Stuff; Stuff* mkThing() { static int num = 0; Stuff* x = malloc(sizeof(Stuff)); x->val = num++; x->str = malloc(20); strcpy(x->str,"Hello"); return x; } char* getStr(Stuff* x) { return x->str; } void f...
#include <stdlib.h> #include <stdio.h> #include <string.h> typedef struct { int val; char* str; } Stuff; Stuff* mkThing() { static int num = 0; Stuff* x = malloc(sizeof(Stuff)); x->val = num++; x->str = malloc(20); strcpy(x->str,"Hello"); return x; } char* getStr(Stuff* x) { retur...
Fix includes in chez022 test
Fix includes in chez022 test
C
bsd-3-clause
mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm,mmhelloworld/idris-jvm
8c18581110925ebe9e2b3530d4d5fc4afefbc8b0
numpy/core/src/private/npy_import.h
numpy/core/src/private/npy_import.h
#ifndef NPY_IMPORT_H #define NPY_IMPORT_H #include <Python.h> #include <assert.h> /*! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NULL imports the Python function specified by * \a module and \a function, increments ...
#ifndef NPY_IMPORT_H #define NPY_IMPORT_H #include <Python.h> /*! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NULL imports the Python function specified by * \a module and \a function, increments its reference count,...
Fix npy_cache_pyfunc to properly implement inline.
BUG: Fix npy_cache_pyfunc to properly implement inline. The function was not static, which led to multiple definition errors.
C
bsd-3-clause
leifdenby/numpy,charris/numpy,sonnyhu/numpy,charris/numpy,has2k1/numpy,sinhrks/numpy,rhythmsosad/numpy,pdebuyl/numpy,jorisvandenbossche/numpy,mattip/numpy,stuarteberg/numpy,MaPePeR/numpy,Eric89GXL/numpy,MichaelAquilina/numpy,SiccarPoint/numpy,gmcastil/numpy,nguyentu1602/numpy,MSeifert04/numpy,maniteja123/numpy,mingwpy/...
d5b629639feb01dc7f7d15cc5393612acff8f01a
tests/test-driver-decode.c
tests/test-driver-decode.c
//!compile = {cc} {ccflags} -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "dbrew.h" int f1(int); // possible jump target int f2(int x) { return x; } int main() { // Decode...
//!compile = as -c -o {ofile} {infile} && {cc} {ccflags} -o {outfile} {ofile} {driver} ../libdbrew.a -I../include #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "dbrew.h" int f1(int); // possible jump target int f2(int x) { return x; } int main() { // Decode the functio...
Fix Travis for decoder tests
Fix Travis for decoder tests The assembler of clang-3.5 in the images used by Travis seems to have a bug with assembling the "test" instruction, resulting in machine code with reversed operands (this does not happen e.g. with clang-3.8). As decoder tests all use assembly files as input, we force use of the GNU assembl...
C
lgpl-2.1
lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew,lrr-tum/dbrew
f9b6386e1f69a8f5b4d69b0f1af75d242bcd71e9
src/game/detail/view_input/sound_effect_modifier.h
src/game/detail/view_input/sound_effect_modifier.h
#pragma once #include "augs/math/declare_math.h" #include "augs/audio/distance_model.h" struct sound_effect_modifier { // GEN INTROSPECTOR struct sound_effect_modifier real32 gain = 1.f; real32 pitch = 1.f; real32 max_distance = -1.f; real32 reference_distance = -1.f; real32 doppler_factor = 1.f; augs::distance...
#pragma once #include "augs/math/declare_math.h" #include "augs/audio/distance_model.h" struct sound_effect_modifier { // GEN INTROSPECTOR struct sound_effect_modifier real32 gain = 1.f; real32 pitch = 1.f; real32 max_distance = -1.f; real32 reference_distance = -1.f; real32 doppler_factor = 1.f; char repetitio...
FIx sound(..)modifier compaibility with old maps
FIx sound(..)modifier compaibility with old maps
C
agpl-3.0
TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia
7a5b85dacdc86ec8cf5d32aeea2312189a0a5587
src/forces/labeller_frame_data.h
src/forces/labeller_frame_data.h
#ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_ #define SRC_FORCES_LABELLER_FRAME_DATA_H_ #include <Eigen/Core> #include <iostream> namespace Forces { /** * \brief * * */ class LabellerFrameData { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW LabellerFrameData(double frameTime, Eigen::Matrix4f projection, ...
#ifndef SRC_FORCES_LABELLER_FRAME_DATA_H_ #define SRC_FORCES_LABELLER_FRAME_DATA_H_ #include "../eigen.h" #include <iostream> namespace Forces { /** * \brief * * */ class LabellerFrameData { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW LabellerFrameData(double frameTime, Eigen::Matrix4f projection, ...
Use new mul function in LabellerFrameData::project.
Use new mul function in LabellerFrameData::project.
C
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
58022a61d6882902b9dc22060638f1ac9a6b95bf
src/fs/driver/devfs/devfs_dvfs.c
src/fs/driver/devfs/devfs_dvfs.c
/** * @file devfs_dvfs.c * @brief * @author Denis Deryugin <deryugin.denis@gmail.com> * @version 0.1 * @date 2015-09-28 */ /* This is stub */
/** * @file devfs_dvfs.c * @brief * @author Denis Deryugin <deryugin.denis@gmail.com> * @version 0.1 * @date 2015-09-28 */ #include <fs/dvfs.h> #include <util/array.h> static int devfs_destroy_inode(struct inode *inode) { return 0; } static int devfs_iterate(struct inode *next, struct inode *parent, struct di...
Add fs-related structures and stub functions
devfs: Add fs-related structures and stub functions
C
bsd-2-clause
Kakadu/embox,Kakadu/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,mike2390/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,mike2390/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,embox/embox,embox/embox,Kakadu...
e5c5c31ef382af0620d4b9f8177e287e00a09fa0
src/tokenizer/gru_tokenizer_factory_trainer.h
src/tokenizer/gru_tokenizer_factory_trainer.h
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If...
Make tokenized_sentence a structure (i.e., all fields public).
Make tokenized_sentence a structure (i.e., all fields public).
C
mpl-2.0
ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita
64cc62d502eca5728de8d9aa431d7e76ce438467
test/Analysis/stack-addr-ps.c
test/Analysis/stack-addr-ps.c
// RUN: clang -checker-simple -verify %s int* f1() { int x = 0; return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} } int* f2(int y) { return &y; // expected-warning{{Addre...
// RUN: clang -checker-simple -verify %s int* f1() { int x = 0; return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} } int* f2(int y) { return &y; // expected-warning{{Addre...
Add missing "expected warning". Add compound literal with empty initializer (just to test the analyzer handles it).
Add missing "expected warning". Add compound literal with empty initializer (just to test the analyzer handles it). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58470 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
bade646d8e40457662c195d5b25ae41822c5f35b
safe.h
safe.h
#ifndef SAFE_H #define SAFE_H #include "debug.h" #ifndef DISABLE_SAFE #define SAFE_STRINGIFY(x) #x #define SAFE_TOSTRING(x) SAFE_STRINGIFY(x) #define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": " #define SAFE_ASSERT(cond) do { \ if (!(cond)) { \ DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \ DEBUG_BREAK(!(c...
#ifndef SAFE_H #define SAFE_H #include "debug.h" #ifndef DISABLE_SAFE #define SAFE_STRINGIFY(x) #x #define SAFE_TOSTRING(x) SAFE_STRINGIFY(x) #define SAFE_AT __FILE__ ":" SAFE_TOSTRING(__LINE__) ": " #define SAFE_ASSERT(cond) do { \ if (!(cond)) { \ DEBUG_DUMP(0, "error: " SAFE_AT "%m"); \ DEBUG_BREAK(!(c...
Add SAFE_RZCALL to wrap calls that returns zero.
Add SAFE_RZCALL to wrap calls that returns zero.
C
mit
chaoran/fibril,chaoran/fibril,chaoran/fibril
fa0a3d781ea01c0f790c3af40cc7429ad73af132
include/ParseNode.h
include/ParseNode.h
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
Make parent protected so that the child can know their parents
Make parent protected so that the child can know their parents
C
mit
vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic
894133a4b116abcde29ae9a92e5f823af6713083
include/libk/kmem.h
include/libk/kmem.h
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) // 1 GB #define PHYS_MEMORY_SIZE (1*1024*1024*1024) #define KHEAP_BLOCK...
#ifndef KMEM_H #define KMEM_H #include <stdbool.h> #include <stdint.h> #include <arch/x86/paging.h> #include <libk/kabort.h> #define KHEAP_PHYS_ROOT ((void*)0x100000) //#define KHEAP_PHYS_END ((void*)0xc1000000) #define KHEAP_END_SENTINEL (NULL) #define KHEAP_BLOCK_SLOP 32 struct kheap_metadata { size_t size; ...
Remove macros which now live in paging.h
Remove macros which now live in paging.h
C
mit
iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth
adf0978b3ac91823bf105e78aabb805aaa11e17a
src/gamemodel/Terrain.h
src/gamemodel/Terrain.h
#ifndef TERRAIN_H #define TERRAIN_H #include <util/Math.h> #include <util/Random.h> #include <vector> #include "Constants.h" class Terrain { public: Terrain( const float stepLength = constants::TERRAIN_STEP_LENGTH, const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE, const float...
#ifndef TERRAIN_H #define TERRAIN_H #include <util/Math.h> #include <util/Random.h> #include <vector> #include "Constants.h" class Terrain { public: Terrain( const float stepLength = constants::TERRAIN_STEP_LENGTH, const float amplitude = constants::TERRAIN_HEIGHT_VARIATION_AMPLITUDE, const float...
Fix compilation bug on linux
Fix compilation bug on linux
C
mit
GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker,GiGurra/drunken_walker
6d5fabbdb3b2f9e81ad75c93c0b238fa0a6e14fa
MWEditorAddOns/MTextAddOn.h
MWEditorAddOns/MTextAddOn.h
//================================================================== // MTextAddOn.h // Copyright 1996 Metrowerks Corporation, All Rights Reserved. //================================================================== // This is a proxy class used by Editor add_ons. It does not inherit from BView // but provides an ab...
// [zooey, 2005]: made MTextAddon really an abstract class //================================================================== // MTextAddOn.h // Copyright 1996 Metrowerks Corporation, All Rights Reserved. //================================================================== // This is a proxy class used by Editor add...
Replace BeIDE header by the Pe version
Replace BeIDE header by the Pe version We won't be building for BeIDE anyway...
C
mit
mmuman/dontworry,mmuman/dontworry
ed753c358e9b27571f6be5f33b25cbe0738f0e36
src/libc/utils/efopen.c
src/libc/utils/efopen.c
#include "system.h" FILE * efopen(char *env) { char *t, *p; int port, sock; unless (t = getenv(env)) return (0); if (IsFullPath(t)) return (fopen(t, "a")); if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) { *p = 0; sock = tcp_connect(t, port); return (fdopen(sock, "w")); } return (fopen(DEV_TTY, "w"...
#include "system.h" FILE * efopen(char *env) { char *t, *p; int port, sock; unless (t = getenv(env)) return (0); if (IsFullPath(t)) return (fopen(t, "a")); if ((p = strchr(t, ':')) && ((port = atoi(p+1)) > 0)) { *p = 0; sock = tcp_connect(t, port); *p = ':'; if (sock >= 0) return (fdopen(sock, "w")); } ...
Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC Also don't assume the socket connected.
Fix a bug where we stomp on the : in a host:port in BK_SHOWPROC Also don't assume the socket connected. bk: 44b822c06FCnb1Sd2dJJIybq98XuEw
C
apache-2.0
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper
4471aecefd4d31d1507968300b978c6a6237e157
src/config.h
src/config.h
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_SEE_Q_...
#ifndef _CONFIG_H #define _CONFIG_H #define ENABLE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_HISTORY 1 #define ENABLE_KILLERS 1 #define ENABLE_LMR 1 #define ENABLE_NNUE 0 #define ENABLE_NULL_MOVE_PRUNING 1 #define ENABLE_REVERSE_FUTILITY_DEPTH 1 // TODO: switch to at least 2 #define ENABLE_SEE_Q_...
Enable pruning losing captures in qsearch
Enable pruning losing captures in qsearch
C
bsd-3-clause
jwatzman/nameless-chessbot,jwatzman/nameless-chessbot
f1b1720769e346cc2a619f80191e380619421669
stdlib/public/SwiftShims/UIKitOverlayShims.h
stdlib/public/SwiftShims/UIKitOverlayShims.h
//===--- UIKitOverlayShims.h ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See h...
//===--- UIKitOverlayShims.h ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See h...
Make the UIKit shim function properly available
[overlay] Make the UIKit shim function properly available <rdar://problem/33789760>
C
apache-2.0
xwu/swift,lorentey/swift,swiftix/swift,practicalswift/swift,jckarter/swift,apple/swift,parkera/swift,shajrawi/swift,allevato/swift,harlanhaskins/swift,aschwaighofer/swift,gregomni/swift,shajrawi/swift,CodaFi/swift,lorentey/swift,xedin/swift,gregomni/swift,gregomni/swift,airspeedswift/swift,shajrawi/swift,practicalswift...
f1c1d7f0c28424d218fdff65705118b19d3681d8
src/Square.h
src/Square.h
#ifndef SQUARE_H_ #define SQUARE_H_ namespace flat2d { class Square { protected: int x, y, w, h; public: Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { } Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { } bool containsPoint(int, int) const; bool operator<(...
#ifndef SQUARE_H_ #define SQUARE_H_ namespace flat2d { class Square { protected: int x, y, w, h; public: Square(int px, int py, int dim) : x(px), y(py), w(dim), h(dim) { } Square(int px, int py, int pw, int ph) : x(px), y(py), w(pw), h(ph) { } bool containsPoint(int, int) const; bool operator<(...
Make square position and dimension accessible
Make square position and dimension accessible
C
mit
LiquidityC/flat
d582802aaf0400c4ca4a5832e63492860d8daa70
boards/wizzimote/include/periph_conf.h
boards/wizzimote/include/periph_conf.h
#ifndef PERIPH_CONF_H #define PERIPH_CONF_H #ifdef __cplusplus extern "C" { #endif /** * @brief Real Time Clock configuration */ #define RTC_NUMOF (1) #ifdef __cplusplus } #endif #endif /* PERIPH_CONF_H */
#ifndef PERIPH_CONF_H #define PERIPH_CONF_H #ifdef __cplusplus extern "C" { #endif /** * @brief Real Time Clock configuration * @{ */ #define RTC_NUMOF (1) /** @} */ /** * @brief Timer configuration * @{ */ #define TIMER_NUMOF (2U) #define TIMER_0_EN 1 #define TIMER_1_EN 1 ...
Update wizzimote timer periph config
Update wizzimote timer periph config
C
lgpl-2.1
ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT,ximus/RIOT
64df4991a93471c2862c2371c33cf30e55769f06
test/Misc/win32-macho.c
test/Misc/win32-macho.c
// Check that basic use of win32-macho targets works. // REQUIRES: x86-registered-target // RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s -o /dev/null
// Check that basic use of win32-macho targets works. // RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s
Remove dev/null redirect and x86 backend requirement from new test.
Remove dev/null redirect and x86 backend requirement from new test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@210699 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
65b68f641e684cedbd25bc7bceb33af21d534b87
pipbench/server/load_simulator.c
pipbench/server/load_simulator.c
#include <Python.h> static PyObject * simulate_install(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } char *p; p = (char *) malloc(mem_bytes); int j = 0; for (long i = 0; i < cpu_un...
#include <Python.h> static PyObject * simulate_install(PyObject *self, PyObject *args) { long cpu_units; long mem_bytes; if (!PyArg_ParseTuple(args, "LL", &cpu_units, &mem_bytes)) { return NULL; } char *p; p = (char *) malloc(mem_bytes); int j = 0; for (long i = 0; i < cpu_un...
Fix invalid heap issues with load simulator
Fix invalid heap issues with load simulator
C
apache-2.0
open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda,open-lambda/open-lambda
6871d2950ed49360b01aa83960689fc85e82ee24
LYCategory/_Foundation/_Work/NSString+Input.h
LYCategory/_Foundation/_Work/NSString+Input.h
// // NSString+Input.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Input) #pragma mark EMPTY - (BOOL)isEmpty; #pragma mark EMAIL - (BOOL)isEmail; #pragma mark SPACE - (NSString *)trimStartSp...
// // NSString+Input.h // LYCategory // // Created by Rick Luo on 11/25/13. // Copyright (c) 2013 Luo Yu. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Input) #pragma mark EMPTY - (BOOL)isEmpty; #pragma mark EMAIL - (BOOL)isEmail; #pragma mark ID - (BOOL)isIDNumber; #pragma...
Add : id number validation
Add : id number validation
C
mit
blodely/LYCategory,blodely/LYCategory,blodely/LYCategory,blodely/LYCategory
eb4808438d0feb7a25fc393da69dd8132ebed48c
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" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend cl...
#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" namespace You { namespace DataStore { namespace UnitTests {} class Transaction; class DataStore { friend cl...
Update reference to IOperation to include Internal namespace
Update reference to IOperation to include Internal namespace
C
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
bab54887404e9f7d4fc68ce2e41ad6bae8035f55
parser_tests.c
parser_tests.c
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (t...
#include "parser.h" #include "ast.h" #include "tests.h" void test_parse_number(); int main() { test_parse_number(); return 0; } struct token *make_token(enum token_type tk_type, char* str, double dbl, int number) { struct token *tk = malloc(sizeof(struct token)); tk->type = tk_type; if (t...
Fix typo in parser tests
Fix typo in parser tests
C
mit
iankronquist/yaz,iankronquist/yaz
244047b32d720d65be0b5ef0c832ae16acf8c26c
src/effect_layer.h
src/effect_layer.h
#pragma once #include <pebble.h> #include "effects.h" //number of supported effects on a single effect_layer (must be <= 255) #define MAX_EFFECTS 4 // structure of effect layer typedef struct { Layer* layer; effect_cb* effects[MAX_EFFECTS]; void* params[MAX_EFFECTS]; uint8_t next_effect;...
#pragma once #include <pebble.h> #include "effects.h" //number of supported effects on a single effect_layer (must be <= 255) #define MAX_EFFECTS 4 // structure of effect layer typedef struct { Layer* layer; effect_cb* effects[MAX_EFFECTS]; void* params[MAX_EFFECTS]; uint8_t next_effect;...
Add a few macros to support InverterLayer on BASALT
Add a few macros to support InverterLayer on BASALT Re-add support for InverterLayer in SDK3.0. Just include effect_layer.h in files using InverterLayer and it should work out of the box. Warning: This InverterLayer actually invert all colors, unlike the original InverterLayer that had a weird behavior on Basalt.
C
mit
n4ru/EffectLayer,clach04/EffectLayer,clach04/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,clach04/EffectLayer,nevraw/EffectLayer,nevraw/EffectLayer,ron064/EffectLayer,ron064/EffectLayer,nevraw/EffectLayer,gregoiresage/EffectLayer,n4ru/EffectLayer,gregoiresage/EffectLayer,ron064/EffectLayer